1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for Quagga 0.99.24. 4# 5# Report bugs to <https://bugzilla.quagga.net>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://bugzilla.quagga.net about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='Quagga' 592PACKAGE_TARNAME='quagga' 593PACKAGE_VERSION='0.99.24' 594PACKAGE_STRING='Quagga 0.99.24' 595PACKAGE_BUGREPORT='https://bugzilla.quagga.net' 596PACKAGE_URL='' 597 598ac_unique_file="lib/zebra.h" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_header_list= 636ac_func_list= 637ac_subst_vars='am__EXEEXT_FALSE 638am__EXEEXT_TRUE 639LTLIBOBJS 640quagga_statedir 641RUNTESTDEFAULTFLAGS 642DEJAGNU 643PILDFLAGS 644PICFLAGS 645CONFDATE 646WEAK_ALIAS_CROSSFILE 647WEAK_ALIAS 648LIBCAP 649NETSNMP_CONFIG 650LIB_REGEX 651HAVE_LIBPCREPOSIX 652OSPFAPI 653OSPFCLIENT 654CURSES 655VTYSH 656SOLARIS 657PIMD 658ISISD 659WATCHQUAGGA 660BABELD 661OSPF6D 662OSPFD 663RIPNGD 664RIPD 665BGPD 666ZEBRA 667DOC 668PIMD_FALSE 669PIMD_TRUE 670ISISD_FALSE 671ISISD_TRUE 672OSPF6D_FALSE 673OSPF6D_TRUE 674RIPNGD_FALSE 675RIPNGD_TRUE 676OSPFCLIENT_FALSE 677OSPFCLIENT_TRUE 678WATCHQUAGGA_FALSE 679WATCHQUAGGA_TRUE 680BABELD_FALSE 681BABELD_TRUE 682OSPFD_FALSE 683OSPFD_TRUE 684RIPD_FALSE 685RIPD_TRUE 686BGPD_FALSE 687BGPD_TRUE 688ZEBRA_FALSE 689ZEBRA_TRUE 690IPFORWARD 691IOCTL_METHOD 692IF_METHOD 693RTREAD_METHOD 694HAVE_NETLINK_FALSE 695HAVE_NETLINK_TRUE 696KERNEL_METHOD 697RT_METHOD 698LIBM 699LIBOBJS 700LIBPAM 701VTYSH_FALSE 702VTYSH_TRUE 703LIBREADLINE 704GIT_VERSION_FALSE 705GIT_VERSION_TRUE 706MULTIPATH_NUM 707enable_vty_group 708enable_group 709enable_user 710ISIS_TOPOLOGY_LIB 711ISIS_TOPOLOGY_DIR 712ISIS_TOPOLOGY_INCLUDES 713LT_SYS_LIBRARY_PATH 714OTOOL64 715OTOOL 716LIPO 717NMEDIT 718DSYMUTIL 719MANIFEST_TOOL 720RANLIB 721ac_ct_AR 722DLLTOOL 723OBJDUMP 724NM 725ac_ct_DUMPBIN 726DUMPBIN 727LD 728FGREP 729LIBTOOL 730AR 731LN_S 732HAVE_LATEX_FALSE 733HAVE_LATEX_TRUE 734LATEXMK 735PDFLATEX 736SED 737EGREP 738GREP 739CPP 740am__fastdepCC_FALSE 741am__fastdepCC_TRUE 742CCDEPMODE 743am__nodep 744AMDEPBACKSLASH 745AMDEP_FALSE 746AMDEP_TRUE 747am__quote 748am__include 749DEPDIR 750OBJEXT 751EXEEXT 752ac_ct_CC 753CPPFLAGS 754LDFLAGS 755CFLAGS 756CC 757pkgsrcrcdir 758pkgsrcdir 759exampledir 760GAWK 761PERL 762MAINT 763MAINTAINER_MODE_FALSE 764MAINTAINER_MODE_TRUE 765AM_BACKSLASH 766AM_DEFAULT_VERBOSITY 767AM_DEFAULT_V 768AM_V 769am__untar 770am__tar 771AMTAR 772am__leading_dot 773SET_MAKE 774AWK 775mkdir_p 776MKDIR_P 777INSTALL_STRIP_PROGRAM 778STRIP 779install_sh 780MAKEINFO 781AUTOHEADER 782AUTOMAKE 783AUTOCONF 784ACLOCAL 785VERSION 786PACKAGE 787CYGPATH_W 788am__isrc 789INSTALL_DATA 790INSTALL_SCRIPT 791INSTALL_PROGRAM 792target_os 793target_vendor 794target_cpu 795target 796host_os 797host_vendor 798host_cpu 799host 800build_os 801build_vendor 802build_cpu 803build 804CONFIG_ARGS 805target_alias 806host_alias 807build_alias 808LIBS 809ECHO_T 810ECHO_N 811ECHO_C 812DEFS 813mandir 814localedir 815libdir 816psdir 817pdfdir 818dvidir 819htmldir 820infodir 821docdir 822oldincludedir 823includedir 824localstatedir 825sharedstatedir 826sysconfdir 827datadir 828datarootdir 829libexecdir 830sbindir 831bindir 832program_transform_name 833prefix 834exec_prefix 835PACKAGE_URL 836PACKAGE_BUGREPORT 837PACKAGE_STRING 838PACKAGE_VERSION 839PACKAGE_TARNAME 840PACKAGE_NAME 841PATH_SEPARATOR 842SHELL' 843ac_subst_files='' 844ac_user_opts=' 845enable_option_checking 846enable_silent_rules 847enable_maintainer_mode 848enable_exampledir 849enable_pkgsrcrcdir 850with_cflags 851enable_dependency_tracking 852enable_shared 853enable_static 854with_pic 855enable_fast_install 856with_aix_soname 857with_gnu_ld 858with_sysroot 859enable_libtool_lock 860with_pkg_extra_version 861with_pkg_git_version 862enable_vtysh 863enable_doc 864enable_zebra 865enable_bgpd 866enable_ripd 867enable_ripngd 868enable_ospfd 869enable_ospf6d 870enable_babeld 871enable_watchquagga 872enable_isisd 873enable_pimd 874enable_bgp_announce 875enable_snmp 876with_libpam 877enable_tcp_zebra 878enable_opaque_lsa 879enable_ospfapi 880enable_ospfclient 881enable_ospf_te 882enable_multipath 883enable_user 884enable_group 885enable_vty_group 886enable_configfile_mask 887enable_logfile_mask 888enable_rtadv 889enable_irdp 890enable_isis_topology 891enable_capabilities 892enable_rusage 893enable_gcc_ultra_verbose 894enable_linux24_tcp_md5 895enable_gcc_rdynamic 896enable_backtrace 897enable_time_check 898enable_pcreposix 899enable_fpm 900enable_largefile 901enable_pie 902' 903 ac_precious_vars='build_alias 904host_alias 905target_alias 906GAWK 907CC 908CFLAGS 909LDFLAGS 910LIBS 911CPPFLAGS 912CPP 913LT_SYS_LIBRARY_PATH' 914 915 916# Initialize some variables set by options. 917ac_init_help= 918ac_init_version=false 919ac_unrecognized_opts= 920ac_unrecognized_sep= 921# The variables have the same names as the options, with 922# dashes changed to underlines. 923cache_file=/dev/null 924exec_prefix=NONE 925no_create= 926no_recursion= 927prefix=NONE 928program_prefix=NONE 929program_suffix=NONE 930program_transform_name=s,x,x, 931silent= 932site= 933srcdir= 934verbose= 935x_includes=NONE 936x_libraries=NONE 937 938# Installation directory options. 939# These are left unexpanded so users can "make install exec_prefix=/foo" 940# and all the variables that are supposed to be based on exec_prefix 941# by default will actually change. 942# Use braces instead of parens because sh, perl, etc. also accept them. 943# (The list follows the same order as the GNU Coding Standards.) 944bindir='${exec_prefix}/bin' 945sbindir='${exec_prefix}/sbin' 946libexecdir='${exec_prefix}/libexec' 947datarootdir='${prefix}/share' 948datadir='${datarootdir}' 949sysconfdir='${prefix}/etc' 950sharedstatedir='${prefix}/com' 951localstatedir='${prefix}/var' 952includedir='${prefix}/include' 953oldincludedir='/usr/include' 954docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 955infodir='${datarootdir}/info' 956htmldir='${docdir}' 957dvidir='${docdir}' 958pdfdir='${docdir}' 959psdir='${docdir}' 960libdir='${exec_prefix}/lib' 961localedir='${datarootdir}/locale' 962mandir='${datarootdir}/man' 963 964ac_prev= 965ac_dashdash= 966for ac_option 967do 968 # If the previous option needs an argument, assign it. 969 if test -n "$ac_prev"; then 970 eval $ac_prev=\$ac_option 971 ac_prev= 972 continue 973 fi 974 975 case $ac_option in 976 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 977 *=) ac_optarg= ;; 978 *) ac_optarg=yes ;; 979 esac 980 981 # Accept the important Cygnus configure options, so we can diagnose typos. 982 983 case $ac_dashdash$ac_option in 984 --) 985 ac_dashdash=yes ;; 986 987 -bindir | --bindir | --bindi | --bind | --bin | --bi) 988 ac_prev=bindir ;; 989 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 990 bindir=$ac_optarg ;; 991 992 -build | --build | --buil | --bui | --bu) 993 ac_prev=build_alias ;; 994 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 995 build_alias=$ac_optarg ;; 996 997 -cache-file | --cache-file | --cache-fil | --cache-fi \ 998 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 999 ac_prev=cache_file ;; 1000 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1001 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1002 cache_file=$ac_optarg ;; 1003 1004 --config-cache | -C) 1005 cache_file=config.cache ;; 1006 1007 -datadir | --datadir | --datadi | --datad) 1008 ac_prev=datadir ;; 1009 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1010 datadir=$ac_optarg ;; 1011 1012 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1013 | --dataroo | --dataro | --datar) 1014 ac_prev=datarootdir ;; 1015 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1016 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1017 datarootdir=$ac_optarg ;; 1018 1019 -disable-* | --disable-*) 1020 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1021 # Reject names that are not valid shell variable names. 1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1023 as_fn_error $? "invalid feature name: $ac_useropt" 1024 ac_useropt_orig=$ac_useropt 1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1026 case $ac_user_opts in 1027 *" 1028"enable_$ac_useropt" 1029"*) ;; 1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1031 ac_unrecognized_sep=', ';; 1032 esac 1033 eval enable_$ac_useropt=no ;; 1034 1035 -docdir | --docdir | --docdi | --doc | --do) 1036 ac_prev=docdir ;; 1037 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1038 docdir=$ac_optarg ;; 1039 1040 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1041 ac_prev=dvidir ;; 1042 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1043 dvidir=$ac_optarg ;; 1044 1045 -enable-* | --enable-*) 1046 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1047 # Reject names that are not valid shell variable names. 1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1049 as_fn_error $? "invalid feature name: $ac_useropt" 1050 ac_useropt_orig=$ac_useropt 1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1052 case $ac_user_opts in 1053 *" 1054"enable_$ac_useropt" 1055"*) ;; 1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1057 ac_unrecognized_sep=', ';; 1058 esac 1059 eval enable_$ac_useropt=\$ac_optarg ;; 1060 1061 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1062 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1063 | --exec | --exe | --ex) 1064 ac_prev=exec_prefix ;; 1065 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1066 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1067 | --exec=* | --exe=* | --ex=*) 1068 exec_prefix=$ac_optarg ;; 1069 1070 -gas | --gas | --ga | --g) 1071 # Obsolete; use --with-gas. 1072 with_gas=yes ;; 1073 1074 -help | --help | --hel | --he | -h) 1075 ac_init_help=long ;; 1076 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1077 ac_init_help=recursive ;; 1078 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1079 ac_init_help=short ;; 1080 1081 -host | --host | --hos | --ho) 1082 ac_prev=host_alias ;; 1083 -host=* | --host=* | --hos=* | --ho=*) 1084 host_alias=$ac_optarg ;; 1085 1086 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1087 ac_prev=htmldir ;; 1088 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1089 | --ht=*) 1090 htmldir=$ac_optarg ;; 1091 1092 -includedir | --includedir | --includedi | --included | --include \ 1093 | --includ | --inclu | --incl | --inc) 1094 ac_prev=includedir ;; 1095 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1096 | --includ=* | --inclu=* | --incl=* | --inc=*) 1097 includedir=$ac_optarg ;; 1098 1099 -infodir | --infodir | --infodi | --infod | --info | --inf) 1100 ac_prev=infodir ;; 1101 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1102 infodir=$ac_optarg ;; 1103 1104 -libdir | --libdir | --libdi | --libd) 1105 ac_prev=libdir ;; 1106 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1107 libdir=$ac_optarg ;; 1108 1109 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1110 | --libexe | --libex | --libe) 1111 ac_prev=libexecdir ;; 1112 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1113 | --libexe=* | --libex=* | --libe=*) 1114 libexecdir=$ac_optarg ;; 1115 1116 -localedir | --localedir | --localedi | --localed | --locale) 1117 ac_prev=localedir ;; 1118 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1119 localedir=$ac_optarg ;; 1120 1121 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1122 | --localstate | --localstat | --localsta | --localst | --locals) 1123 ac_prev=localstatedir ;; 1124 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1125 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1126 localstatedir=$ac_optarg ;; 1127 1128 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1129 ac_prev=mandir ;; 1130 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1131 mandir=$ac_optarg ;; 1132 1133 -nfp | --nfp | --nf) 1134 # Obsolete; use --without-fp. 1135 with_fp=no ;; 1136 1137 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1138 | --no-cr | --no-c | -n) 1139 no_create=yes ;; 1140 1141 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1142 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1143 no_recursion=yes ;; 1144 1145 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1146 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1147 | --oldin | --oldi | --old | --ol | --o) 1148 ac_prev=oldincludedir ;; 1149 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1150 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1151 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1152 oldincludedir=$ac_optarg ;; 1153 1154 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1155 ac_prev=prefix ;; 1156 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1157 prefix=$ac_optarg ;; 1158 1159 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1160 | --program-pre | --program-pr | --program-p) 1161 ac_prev=program_prefix ;; 1162 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1163 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1164 program_prefix=$ac_optarg ;; 1165 1166 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1167 | --program-suf | --program-su | --program-s) 1168 ac_prev=program_suffix ;; 1169 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1170 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1171 program_suffix=$ac_optarg ;; 1172 1173 -program-transform-name | --program-transform-name \ 1174 | --program-transform-nam | --program-transform-na \ 1175 | --program-transform-n | --program-transform- \ 1176 | --program-transform | --program-transfor \ 1177 | --program-transfo | --program-transf \ 1178 | --program-trans | --program-tran \ 1179 | --progr-tra | --program-tr | --program-t) 1180 ac_prev=program_transform_name ;; 1181 -program-transform-name=* | --program-transform-name=* \ 1182 | --program-transform-nam=* | --program-transform-na=* \ 1183 | --program-transform-n=* | --program-transform-=* \ 1184 | --program-transform=* | --program-transfor=* \ 1185 | --program-transfo=* | --program-transf=* \ 1186 | --program-trans=* | --program-tran=* \ 1187 | --progr-tra=* | --program-tr=* | --program-t=*) 1188 program_transform_name=$ac_optarg ;; 1189 1190 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1191 ac_prev=pdfdir ;; 1192 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1193 pdfdir=$ac_optarg ;; 1194 1195 -psdir | --psdir | --psdi | --psd | --ps) 1196 ac_prev=psdir ;; 1197 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1198 psdir=$ac_optarg ;; 1199 1200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1201 | -silent | --silent | --silen | --sile | --sil) 1202 silent=yes ;; 1203 1204 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1205 ac_prev=sbindir ;; 1206 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1207 | --sbi=* | --sb=*) 1208 sbindir=$ac_optarg ;; 1209 1210 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1211 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1212 | --sharedst | --shareds | --shared | --share | --shar \ 1213 | --sha | --sh) 1214 ac_prev=sharedstatedir ;; 1215 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1216 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1217 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1218 | --sha=* | --sh=*) 1219 sharedstatedir=$ac_optarg ;; 1220 1221 -site | --site | --sit) 1222 ac_prev=site ;; 1223 -site=* | --site=* | --sit=*) 1224 site=$ac_optarg ;; 1225 1226 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1227 ac_prev=srcdir ;; 1228 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1229 srcdir=$ac_optarg ;; 1230 1231 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1232 | --syscon | --sysco | --sysc | --sys | --sy) 1233 ac_prev=sysconfdir ;; 1234 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1235 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1236 sysconfdir=$ac_optarg ;; 1237 1238 -target | --target | --targe | --targ | --tar | --ta | --t) 1239 ac_prev=target_alias ;; 1240 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1241 target_alias=$ac_optarg ;; 1242 1243 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1244 verbose=yes ;; 1245 1246 -version | --version | --versio | --versi | --vers | -V) 1247 ac_init_version=: ;; 1248 1249 -with-* | --with-*) 1250 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1251 # Reject names that are not valid shell variable names. 1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1253 as_fn_error $? "invalid package name: $ac_useropt" 1254 ac_useropt_orig=$ac_useropt 1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1256 case $ac_user_opts in 1257 *" 1258"with_$ac_useropt" 1259"*) ;; 1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1261 ac_unrecognized_sep=', ';; 1262 esac 1263 eval with_$ac_useropt=\$ac_optarg ;; 1264 1265 -without-* | --without-*) 1266 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1267 # Reject names that are not valid shell variable names. 1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1269 as_fn_error $? "invalid package name: $ac_useropt" 1270 ac_useropt_orig=$ac_useropt 1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1272 case $ac_user_opts in 1273 *" 1274"with_$ac_useropt" 1275"*) ;; 1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1277 ac_unrecognized_sep=', ';; 1278 esac 1279 eval with_$ac_useropt=no ;; 1280 1281 --x) 1282 # Obsolete; use --with-x. 1283 with_x=yes ;; 1284 1285 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1286 | --x-incl | --x-inc | --x-in | --x-i) 1287 ac_prev=x_includes ;; 1288 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1289 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1290 x_includes=$ac_optarg ;; 1291 1292 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1293 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1294 ac_prev=x_libraries ;; 1295 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1296 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1297 x_libraries=$ac_optarg ;; 1298 1299 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1300Try \`$0 --help' for more information" 1301 ;; 1302 1303 *=*) 1304 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1305 # Reject names that are not valid shell variable names. 1306 case $ac_envvar in #( 1307 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1308 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1309 esac 1310 eval $ac_envvar=\$ac_optarg 1311 export $ac_envvar ;; 1312 1313 *) 1314 # FIXME: should be removed in autoconf 3.0. 1315 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1316 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1317 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1318 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1319 ;; 1320 1321 esac 1322done 1323 1324if test -n "$ac_prev"; then 1325 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1326 as_fn_error $? "missing argument to $ac_option" 1327fi 1328 1329if test -n "$ac_unrecognized_opts"; then 1330 case $enable_option_checking in 1331 no) ;; 1332 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1333 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1334 esac 1335fi 1336 1337# Check all directory arguments for consistency. 1338for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1339 datadir sysconfdir sharedstatedir localstatedir includedir \ 1340 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1341 libdir localedir mandir 1342do 1343 eval ac_val=\$$ac_var 1344 # Remove trailing slashes. 1345 case $ac_val in 1346 */ ) 1347 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1348 eval $ac_var=\$ac_val;; 1349 esac 1350 # Be sure to have absolute directory names. 1351 case $ac_val in 1352 [\\/$]* | ?:[\\/]* ) continue;; 1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1354 esac 1355 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1356done 1357 1358# There might be people who depend on the old broken behavior: `$host' 1359# used to hold the argument of --host etc. 1360# FIXME: To remove some day. 1361build=$build_alias 1362host=$host_alias 1363target=$target_alias 1364 1365# FIXME: To remove some day. 1366if test "x$host_alias" != x; then 1367 if test "x$build_alias" = x; then 1368 cross_compiling=maybe 1369 elif test "x$build_alias" != "x$host_alias"; then 1370 cross_compiling=yes 1371 fi 1372fi 1373 1374ac_tool_prefix= 1375test -n "$host_alias" && ac_tool_prefix=$host_alias- 1376 1377test "$silent" = yes && exec 6>/dev/null 1378 1379 1380ac_pwd=`pwd` && test -n "$ac_pwd" && 1381ac_ls_di=`ls -di .` && 1382ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1383 as_fn_error $? "working directory cannot be determined" 1384test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1385 as_fn_error $? "pwd does not report name of working directory" 1386 1387 1388# Find the source files, if location was not specified. 1389if test -z "$srcdir"; then 1390 ac_srcdir_defaulted=yes 1391 # Try the directory containing this script, then the parent directory. 1392 ac_confdir=`$as_dirname -- "$as_myself" || 1393$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1394 X"$as_myself" : 'X\(//\)[^/]' \| \ 1395 X"$as_myself" : 'X\(//\)$' \| \ 1396 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1397$as_echo X"$as_myself" | 1398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1399 s//\1/ 1400 q 1401 } 1402 /^X\(\/\/\)[^/].*/{ 1403 s//\1/ 1404 q 1405 } 1406 /^X\(\/\/\)$/{ 1407 s//\1/ 1408 q 1409 } 1410 /^X\(\/\).*/{ 1411 s//\1/ 1412 q 1413 } 1414 s/.*/./; q'` 1415 srcdir=$ac_confdir 1416 if test ! -r "$srcdir/$ac_unique_file"; then 1417 srcdir=.. 1418 fi 1419else 1420 ac_srcdir_defaulted=no 1421fi 1422if test ! -r "$srcdir/$ac_unique_file"; then 1423 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1424 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1425fi 1426ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1427ac_abs_confdir=`( 1428 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1429 pwd)` 1430# When building in place, set srcdir=. 1431if test "$ac_abs_confdir" = "$ac_pwd"; then 1432 srcdir=. 1433fi 1434# Remove unnecessary trailing slashes from srcdir. 1435# Double slashes in file names in object file debugging info 1436# mess up M-x gdb in Emacs. 1437case $srcdir in 1438*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1439esac 1440for ac_var in $ac_precious_vars; do 1441 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1442 eval ac_env_${ac_var}_value=\$${ac_var} 1443 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1444 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1445done 1446 1447# 1448# Report the --help message. 1449# 1450if test "$ac_init_help" = "long"; then 1451 # Omit some internal or obsolete options to make the list less imposing. 1452 # This message is too long to be a string in the A/UX 3.1 sh. 1453 cat <<_ACEOF 1454\`configure' configures Quagga 0.99.24 to adapt to many kinds of systems. 1455 1456Usage: $0 [OPTION]... [VAR=VALUE]... 1457 1458To assign environment variables (e.g., CC, CFLAGS...), specify them as 1459VAR=VALUE. See below for descriptions of some of the useful variables. 1460 1461Defaults for the options are specified in brackets. 1462 1463Configuration: 1464 -h, --help display this help and exit 1465 --help=short display options specific to this package 1466 --help=recursive display the short help of all the included packages 1467 -V, --version display version information and exit 1468 -q, --quiet, --silent do not print \`checking ...' messages 1469 --cache-file=FILE cache test results in FILE [disabled] 1470 -C, --config-cache alias for \`--cache-file=config.cache' 1471 -n, --no-create do not create output files 1472 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1473 1474Installation directories: 1475 --prefix=PREFIX install architecture-independent files in PREFIX 1476 [$ac_default_prefix] 1477 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1478 [PREFIX] 1479 1480By default, \`make install' will install all the files in 1481\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1482an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1483for instance \`--prefix=\$HOME'. 1484 1485For better control, use the options below. 1486 1487Fine tuning of the installation directories: 1488 --bindir=DIR user executables [EPREFIX/bin] 1489 --sbindir=DIR system admin executables [EPREFIX/sbin] 1490 --libexecdir=DIR program executables [EPREFIX/libexec] 1491 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1492 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1493 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1494 --libdir=DIR object code libraries [EPREFIX/lib] 1495 --includedir=DIR C header files [PREFIX/include] 1496 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1497 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1498 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1499 --infodir=DIR info documentation [DATAROOTDIR/info] 1500 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1501 --mandir=DIR man documentation [DATAROOTDIR/man] 1502 --docdir=DIR documentation root [DATAROOTDIR/doc/quagga] 1503 --htmldir=DIR html documentation [DOCDIR] 1504 --dvidir=DIR dvi documentation [DOCDIR] 1505 --pdfdir=DIR pdf documentation [DOCDIR] 1506 --psdir=DIR ps documentation [DOCDIR] 1507_ACEOF 1508 1509 cat <<\_ACEOF 1510 1511Program names: 1512 --program-prefix=PREFIX prepend PREFIX to installed program names 1513 --program-suffix=SUFFIX append SUFFIX to installed program names 1514 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1515 1516System types: 1517 --build=BUILD configure for building on BUILD [guessed] 1518 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1519 --target=TARGET configure for building compilers for TARGET [HOST] 1520_ACEOF 1521fi 1522 1523if test -n "$ac_init_help"; then 1524 case $ac_init_help in 1525 short | recursive ) echo "Configuration of Quagga 0.99.24:";; 1526 esac 1527 cat <<\_ACEOF 1528 1529Optional Features: 1530 --disable-option-checking ignore unrecognized --enable/--with options 1531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1533 --enable-silent-rules less verbose build output (undo: "make V=1") 1534 --disable-silent-rules verbose build output (undo: "make V=0") 1535 --enable-maintainer-mode 1536 enable make rules and dependencies not useful (and 1537 sometimes confusing) to the casual installer 1538 --enable-exampledir specify alternate directory for examples 1539 --enable-pkgsrcrcdir specify directory for rc.d scripts 1540 --enable-dependency-tracking 1541 do not reject slow dependency extractors 1542 --disable-dependency-tracking 1543 speeds up one-time build 1544 --enable-shared[=PKGS] build shared libraries [default=yes] 1545 --enable-static[=PKGS] build static libraries [default=yes] 1546 --enable-fast-install[=PKGS] 1547 optimize for fast installation [default=yes] 1548 --disable-libtool-lock avoid locking (might break parallel builds) 1549 --enable-vtysh include integrated vty shell for Quagga 1550 --disable-doc do not build docs 1551 --disable-zebra do not build zebra daemon 1552 --disable-bgpd do not build bgpd 1553 --disable-ripd do not build ripd 1554 --disable-ripngd do not build ripngd 1555 --disable-ospfd do not build ospfd 1556 --disable-ospf6d do not build ospf6d 1557 --disable-babeld do not build babeld 1558 --disable-watchquagga do not build watchquagga 1559 --disable-isisd do not build isisd 1560 --enable-pimd build pimd 1561 --disable-bgp-announce, turn off BGP route announcement 1562 --enable-snmp=ARG enable SNMP support (smux or agentx) 1563 --enable-tcp-zebra enable TCP/IP socket connection between zebra and 1564 protocol daemon 1565 --disable-opaque-lsa do not build OSPF Opaque-LSA with OSPFAPI support 1566 (RFC2370) 1567 --disable-ospfapi do not build OSPFAPI to access the OSPF LSA Database 1568 --disable-ospfclient do not build OSPFAPI client for OSPFAPI, (this is 1569 the default if --disable-ospfapi is set) 1570 --disable-ospf-te disable Traffic Engineering Extension to OSPF 1571 --enable-multipath=ARG enable multipath function, ARG must be digit 1572 --enable-user=USER user to run Quagga suite as (default quagga) 1573 --enable-group=GROUP group to run Quagga suite as (default quagga) 1574 --enable-vty-group=ARG set vty sockets to have specified group as owner 1575 --enable-configfile-mask=ARG 1576 set mask for config files 1577 --enable-logfile-mask=ARG 1578 set mask for log files 1579 --disable-rtadv disable IPV6 router advertisement feature 1580 --enable-irdp enable IRDP server support in zebra 1581 --enable-isis-topology enable IS-IS topology generator 1582 --disable-capabilities disable using POSIX capabilities 1583 --disable-rusage disable using getrusage 1584 --enable-gcc-ultra-verbose 1585 enable ultra verbose GCC warnings 1586 --enable-linux24-tcp-md5 1587 enable support for old, Linux-2.4 RFC2385 patch 1588 --enable-gcc-rdynamic enable linking with -rdynamic for better backtraces 1589 (default if gcc) 1590 --disable-backtrace, disable crash backtraces (default autodetect) 1591 --disable-time-check disable slow thread warning messages 1592 --enable-pcreposix enable using PCRE Posix libs for regex functions 1593 --enable-fpm enable Forwarding Plane Manager support 1594 --disable-largefile omit support for large files 1595 --disable-pie Do not build tools as a Position Independent 1596 Executables 1597 1598Optional Packages: 1599 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1600 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1601 --with-cflags Set CFLAGS for use in compilation. 1602 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1603 both] 1604 --with-aix-soname=aix|svr4|both 1605 shared library versioning (aka "SONAME") variant to 1606 provide on AIX, [default=aix]. 1607 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1608 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1609 compiler's sysroot if not specified). 1610 --with-pkg-extra-version=VER 1611 add extra version field, for packagers/distributions 1612 --with-pkg-git-version add git information to MOTD and build version string 1613 --with-libpam use libpam for PAM support in vtysh 1614 1615Some influential environment variables: 1616 GAWK GNU AWK 1617 CC C compiler command 1618 CFLAGS C compiler flags 1619 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1620 nonstandard directory <lib dir> 1621 LIBS libraries to pass to the linker, e.g. -l<library> 1622 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1623 you have headers in a nonstandard directory <include dir> 1624 CPP C preprocessor 1625 LT_SYS_LIBRARY_PATH 1626 User-defined run-time library search path. 1627 1628Use these variables to override the choices made by `configure' or to help 1629it to find libraries and programs with nonstandard names/locations. 1630 1631Report bugs to <https://bugzilla.quagga.net>. 1632_ACEOF 1633ac_status=$? 1634fi 1635 1636if test "$ac_init_help" = "recursive"; then 1637 # If there are subdirs, report their specific --help. 1638 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1639 test -d "$ac_dir" || 1640 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1641 continue 1642 ac_builddir=. 1643 1644case "$ac_dir" in 1645.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1646*) 1647 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1648 # A ".." for each directory in $ac_dir_suffix. 1649 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1650 case $ac_top_builddir_sub in 1651 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1652 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1653 esac ;; 1654esac 1655ac_abs_top_builddir=$ac_pwd 1656ac_abs_builddir=$ac_pwd$ac_dir_suffix 1657# for backward compatibility: 1658ac_top_builddir=$ac_top_build_prefix 1659 1660case $srcdir in 1661 .) # We are building in place. 1662 ac_srcdir=. 1663 ac_top_srcdir=$ac_top_builddir_sub 1664 ac_abs_top_srcdir=$ac_pwd ;; 1665 [\\/]* | ?:[\\/]* ) # Absolute name. 1666 ac_srcdir=$srcdir$ac_dir_suffix; 1667 ac_top_srcdir=$srcdir 1668 ac_abs_top_srcdir=$srcdir ;; 1669 *) # Relative name. 1670 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1671 ac_top_srcdir=$ac_top_build_prefix$srcdir 1672 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1673esac 1674ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1675 1676 cd "$ac_dir" || { ac_status=$?; continue; } 1677 # Check for guested configure. 1678 if test -f "$ac_srcdir/configure.gnu"; then 1679 echo && 1680 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1681 elif test -f "$ac_srcdir/configure"; then 1682 echo && 1683 $SHELL "$ac_srcdir/configure" --help=recursive 1684 else 1685 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1686 fi || ac_status=$? 1687 cd "$ac_pwd" || { ac_status=$?; break; } 1688 done 1689fi 1690 1691test -n "$ac_init_help" && exit $ac_status 1692if $ac_init_version; then 1693 cat <<\_ACEOF 1694Quagga configure 0.99.24 1695generated by GNU Autoconf 2.69 1696 1697Copyright (C) 2012 Free Software Foundation, Inc. 1698This configure script is free software; the Free Software Foundation 1699gives unlimited permission to copy, distribute and modify it. 1700_ACEOF 1701 exit 1702fi 1703 1704## ------------------------ ## 1705## Autoconf initialization. ## 1706## ------------------------ ## 1707 1708# ac_fn_c_try_compile LINENO 1709# -------------------------- 1710# Try to compile conftest.$ac_ext, and return whether this succeeded. 1711ac_fn_c_try_compile () 1712{ 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 rm -f conftest.$ac_objext 1715 if { { ac_try="$ac_compile" 1716case "(($ac_try" in 1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1718 *) ac_try_echo=$ac_try;; 1719esac 1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1721$as_echo "$ac_try_echo"; } >&5 1722 (eval "$ac_compile") 2>conftest.err 1723 ac_status=$? 1724 if test -s conftest.err; then 1725 grep -v '^ *+' conftest.err >conftest.er1 1726 cat conftest.er1 >&5 1727 mv -f conftest.er1 conftest.err 1728 fi 1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1730 test $ac_status = 0; } && { 1731 test -z "$ac_c_werror_flag" || 1732 test ! -s conftest.err 1733 } && test -s conftest.$ac_objext; then : 1734 ac_retval=0 1735else 1736 $as_echo "$as_me: failed program was:" >&5 1737sed 's/^/| /' conftest.$ac_ext >&5 1738 1739 ac_retval=1 1740fi 1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1742 as_fn_set_status $ac_retval 1743 1744} # ac_fn_c_try_compile 1745 1746# ac_fn_c_try_cpp LINENO 1747# ---------------------- 1748# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1749ac_fn_c_try_cpp () 1750{ 1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1752 if { { ac_try="$ac_cpp conftest.$ac_ext" 1753case "(($ac_try" in 1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1755 *) ac_try_echo=$ac_try;; 1756esac 1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1758$as_echo "$ac_try_echo"; } >&5 1759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1760 ac_status=$? 1761 if test -s conftest.err; then 1762 grep -v '^ *+' conftest.err >conftest.er1 1763 cat conftest.er1 >&5 1764 mv -f conftest.er1 conftest.err 1765 fi 1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1767 test $ac_status = 0; } > conftest.i && { 1768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1769 test ! -s conftest.err 1770 }; then : 1771 ac_retval=0 1772else 1773 $as_echo "$as_me: failed program was:" >&5 1774sed 's/^/| /' conftest.$ac_ext >&5 1775 1776 ac_retval=1 1777fi 1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1779 as_fn_set_status $ac_retval 1780 1781} # ac_fn_c_try_cpp 1782 1783# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1784# ------------------------------------------------------- 1785# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1786# the include files in INCLUDES and setting the cache variable VAR 1787# accordingly. 1788ac_fn_c_check_header_mongrel () 1789{ 1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1791 if eval \${$3+:} false; then : 1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1793$as_echo_n "checking for $2... " >&6; } 1794if eval \${$3+:} false; then : 1795 $as_echo_n "(cached) " >&6 1796fi 1797eval ac_res=\$$3 1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1799$as_echo "$ac_res" >&6; } 1800else 1801 # Is the header compilable? 1802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1803$as_echo_n "checking $2 usability... " >&6; } 1804cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1805/* end confdefs.h. */ 1806$4 1807#include <$2> 1808_ACEOF 1809if ac_fn_c_try_compile "$LINENO"; then : 1810 ac_header_compiler=yes 1811else 1812 ac_header_compiler=no 1813fi 1814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1816$as_echo "$ac_header_compiler" >&6; } 1817 1818# Is the header present? 1819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1820$as_echo_n "checking $2 presence... " >&6; } 1821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1822/* end confdefs.h. */ 1823#include <$2> 1824_ACEOF 1825if ac_fn_c_try_cpp "$LINENO"; then : 1826 ac_header_preproc=yes 1827else 1828 ac_header_preproc=no 1829fi 1830rm -f conftest.err conftest.i conftest.$ac_ext 1831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1832$as_echo "$ac_header_preproc" >&6; } 1833 1834# So? What about this header? 1835case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1836 yes:no: ) 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1838$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1840$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1841 ;; 1842 no:yes:* ) 1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1844$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1846$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1848$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1850$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1852$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1853( $as_echo "## ------------------------------------------ ## 1854## Report this to https://bugzilla.quagga.net ## 1855## ------------------------------------------ ##" 1856 ) | sed "s/^/$as_me: WARNING: /" >&2 1857 ;; 1858esac 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1860$as_echo_n "checking for $2... " >&6; } 1861if eval \${$3+:} false; then : 1862 $as_echo_n "(cached) " >&6 1863else 1864 eval "$3=\$ac_header_compiler" 1865fi 1866eval ac_res=\$$3 1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1868$as_echo "$ac_res" >&6; } 1869fi 1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1871 1872} # ac_fn_c_check_header_mongrel 1873 1874# ac_fn_c_try_run LINENO 1875# ---------------------- 1876# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1877# that executables *can* be run. 1878ac_fn_c_try_run () 1879{ 1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1881 if { { ac_try="$ac_link" 1882case "(($ac_try" in 1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1884 *) ac_try_echo=$ac_try;; 1885esac 1886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1887$as_echo "$ac_try_echo"; } >&5 1888 (eval "$ac_link") 2>&5 1889 ac_status=$? 1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1891 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1892 { { case "(($ac_try" in 1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1894 *) ac_try_echo=$ac_try;; 1895esac 1896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1897$as_echo "$ac_try_echo"; } >&5 1898 (eval "$ac_try") 2>&5 1899 ac_status=$? 1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1901 test $ac_status = 0; }; }; then : 1902 ac_retval=0 1903else 1904 $as_echo "$as_me: program exited with status $ac_status" >&5 1905 $as_echo "$as_me: failed program was:" >&5 1906sed 's/^/| /' conftest.$ac_ext >&5 1907 1908 ac_retval=$ac_status 1909fi 1910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1912 as_fn_set_status $ac_retval 1913 1914} # ac_fn_c_try_run 1915 1916# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1917# ------------------------------------------------------- 1918# Tests whether HEADER exists and can be compiled using the include files in 1919# INCLUDES, setting the cache variable VAR accordingly. 1920ac_fn_c_check_header_compile () 1921{ 1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1924$as_echo_n "checking for $2... " >&6; } 1925if eval \${$3+:} false; then : 1926 $as_echo_n "(cached) " >&6 1927else 1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1929/* end confdefs.h. */ 1930$4 1931#include <$2> 1932_ACEOF 1933if ac_fn_c_try_compile "$LINENO"; then : 1934 eval "$3=yes" 1935else 1936 eval "$3=no" 1937fi 1938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1939fi 1940eval ac_res=\$$3 1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1942$as_echo "$ac_res" >&6; } 1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1944 1945} # ac_fn_c_check_header_compile 1946 1947# ac_fn_c_try_link LINENO 1948# ----------------------- 1949# Try to link conftest.$ac_ext, and return whether this succeeded. 1950ac_fn_c_try_link () 1951{ 1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1953 rm -f conftest.$ac_objext conftest$ac_exeext 1954 if { { ac_try="$ac_link" 1955case "(($ac_try" in 1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1957 *) ac_try_echo=$ac_try;; 1958esac 1959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1960$as_echo "$ac_try_echo"; } >&5 1961 (eval "$ac_link") 2>conftest.err 1962 ac_status=$? 1963 if test -s conftest.err; then 1964 grep -v '^ *+' conftest.err >conftest.er1 1965 cat conftest.er1 >&5 1966 mv -f conftest.er1 conftest.err 1967 fi 1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1969 test $ac_status = 0; } && { 1970 test -z "$ac_c_werror_flag" || 1971 test ! -s conftest.err 1972 } && test -s conftest$ac_exeext && { 1973 test "$cross_compiling" = yes || 1974 test -x conftest$ac_exeext 1975 }; then : 1976 ac_retval=0 1977else 1978 $as_echo "$as_me: failed program was:" >&5 1979sed 's/^/| /' conftest.$ac_ext >&5 1980 1981 ac_retval=1 1982fi 1983 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1984 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1985 # interfere with the next link command; also delete a directory that is 1986 # left behind by Apple's compiler. We do this before executing the actions. 1987 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1989 as_fn_set_status $ac_retval 1990 1991} # ac_fn_c_try_link 1992 1993# ac_fn_c_check_func LINENO FUNC VAR 1994# ---------------------------------- 1995# Tests whether FUNC exists, setting the cache variable VAR accordingly 1996ac_fn_c_check_func () 1997{ 1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2000$as_echo_n "checking for $2... " >&6; } 2001if eval \${$3+:} false; then : 2002 $as_echo_n "(cached) " >&6 2003else 2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2005/* end confdefs.h. */ 2006/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2007 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2008#define $2 innocuous_$2 2009 2010/* System header to define __stub macros and hopefully few prototypes, 2011 which can conflict with char $2 (); below. 2012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2013 <limits.h> exists even on freestanding compilers. */ 2014 2015#ifdef __STDC__ 2016# include <limits.h> 2017#else 2018# include <assert.h> 2019#endif 2020 2021#undef $2 2022 2023/* Override any GCC internal prototype to avoid an error. 2024 Use char because int might match the return type of a GCC 2025 builtin and then its argument prototype would still apply. */ 2026#ifdef __cplusplus 2027extern "C" 2028#endif 2029char $2 (); 2030/* The GNU C library defines this for functions which it implements 2031 to always fail with ENOSYS. Some functions are actually named 2032 something starting with __ and the normal name is an alias. */ 2033#if defined __stub_$2 || defined __stub___$2 2034choke me 2035#endif 2036 2037int 2038main () 2039{ 2040return $2 (); 2041 ; 2042 return 0; 2043} 2044_ACEOF 2045if ac_fn_c_try_link "$LINENO"; then : 2046 eval "$3=yes" 2047else 2048 eval "$3=no" 2049fi 2050rm -f core conftest.err conftest.$ac_objext \ 2051 conftest$ac_exeext conftest.$ac_ext 2052fi 2053eval ac_res=\$$3 2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2055$as_echo "$ac_res" >&6; } 2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2057 2058} # ac_fn_c_check_func 2059 2060# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2061# ------------------------------------------- 2062# Tests whether TYPE exists after having included INCLUDES, setting cache 2063# variable VAR accordingly. 2064ac_fn_c_check_type () 2065{ 2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2068$as_echo_n "checking for $2... " >&6; } 2069if eval \${$3+:} false; then : 2070 $as_echo_n "(cached) " >&6 2071else 2072 eval "$3=no" 2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2074/* end confdefs.h. */ 2075$4 2076int 2077main () 2078{ 2079if (sizeof ($2)) 2080 return 0; 2081 ; 2082 return 0; 2083} 2084_ACEOF 2085if ac_fn_c_try_compile "$LINENO"; then : 2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2087/* end confdefs.h. */ 2088$4 2089int 2090main () 2091{ 2092if (sizeof (($2))) 2093 return 0; 2094 ; 2095 return 0; 2096} 2097_ACEOF 2098if ac_fn_c_try_compile "$LINENO"; then : 2099 2100else 2101 eval "$3=yes" 2102fi 2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2104fi 2105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2106fi 2107eval ac_res=\$$3 2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2109$as_echo "$ac_res" >&6; } 2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2111 2112} # ac_fn_c_check_type 2113 2114# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2115# ---------------------------------------------------- 2116# Tries to find if the field MEMBER exists in type AGGR, after including 2117# INCLUDES, setting cache variable VAR accordingly. 2118ac_fn_c_check_member () 2119{ 2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2122$as_echo_n "checking for $2.$3... " >&6; } 2123if eval \${$4+:} false; then : 2124 $as_echo_n "(cached) " >&6 2125else 2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2127/* end confdefs.h. */ 2128$5 2129int 2130main () 2131{ 2132static $2 ac_aggr; 2133if (ac_aggr.$3) 2134return 0; 2135 ; 2136 return 0; 2137} 2138_ACEOF 2139if ac_fn_c_try_compile "$LINENO"; then : 2140 eval "$4=yes" 2141else 2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2143/* end confdefs.h. */ 2144$5 2145int 2146main () 2147{ 2148static $2 ac_aggr; 2149if (sizeof ac_aggr.$3) 2150return 0; 2151 ; 2152 return 0; 2153} 2154_ACEOF 2155if ac_fn_c_try_compile "$LINENO"; then : 2156 eval "$4=yes" 2157else 2158 eval "$4=no" 2159fi 2160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2161fi 2162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2163fi 2164eval ac_res=\$$4 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2166$as_echo "$ac_res" >&6; } 2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2168 2169} # ac_fn_c_check_member 2170 2171# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2172# --------------------------------------------- 2173# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2174# accordingly. 2175ac_fn_c_check_decl () 2176{ 2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2178 as_decl_name=`echo $2|sed 's/ *(.*//'` 2179 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2181$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2182if eval \${$3+:} false; then : 2183 $as_echo_n "(cached) " >&6 2184else 2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2186/* end confdefs.h. */ 2187$4 2188int 2189main () 2190{ 2191#ifndef $as_decl_name 2192#ifdef __cplusplus 2193 (void) $as_decl_use; 2194#else 2195 (void) $as_decl_name; 2196#endif 2197#endif 2198 2199 ; 2200 return 0; 2201} 2202_ACEOF 2203if ac_fn_c_try_compile "$LINENO"; then : 2204 eval "$3=yes" 2205else 2206 eval "$3=no" 2207fi 2208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2209fi 2210eval ac_res=\$$3 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2212$as_echo "$ac_res" >&6; } 2213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2214 2215} # ac_fn_c_check_decl 2216cat >config.log <<_ACEOF 2217This file contains any messages produced by compilers while 2218running configure, to aid debugging if configure makes a mistake. 2219 2220It was created by Quagga $as_me 0.99.24, which was 2221generated by GNU Autoconf 2.69. Invocation command line was 2222 2223 $ $0 $@ 2224 2225_ACEOF 2226exec 5>>config.log 2227{ 2228cat <<_ASUNAME 2229## --------- ## 2230## Platform. ## 2231## --------- ## 2232 2233hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2234uname -m = `(uname -m) 2>/dev/null || echo unknown` 2235uname -r = `(uname -r) 2>/dev/null || echo unknown` 2236uname -s = `(uname -s) 2>/dev/null || echo unknown` 2237uname -v = `(uname -v) 2>/dev/null || echo unknown` 2238 2239/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2240/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2241 2242/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2243/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2244/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2245/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2246/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2247/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2248/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2249 2250_ASUNAME 2251 2252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2253for as_dir in $PATH 2254do 2255 IFS=$as_save_IFS 2256 test -z "$as_dir" && as_dir=. 2257 $as_echo "PATH: $as_dir" 2258 done 2259IFS=$as_save_IFS 2260 2261} >&5 2262 2263cat >&5 <<_ACEOF 2264 2265 2266## ----------- ## 2267## Core tests. ## 2268## ----------- ## 2269 2270_ACEOF 2271 2272 2273# Keep a trace of the command line. 2274# Strip out --no-create and --no-recursion so they do not pile up. 2275# Strip out --silent because we don't want to record it for future runs. 2276# Also quote any args containing shell meta-characters. 2277# Make two passes to allow for proper duplicate-argument suppression. 2278ac_configure_args= 2279ac_configure_args0= 2280ac_configure_args1= 2281ac_must_keep_next=false 2282for ac_pass in 1 2 2283do 2284 for ac_arg 2285 do 2286 case $ac_arg in 2287 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2289 | -silent | --silent | --silen | --sile | --sil) 2290 continue ;; 2291 *\'*) 2292 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2293 esac 2294 case $ac_pass in 2295 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2296 2) 2297 as_fn_append ac_configure_args1 " '$ac_arg'" 2298 if test $ac_must_keep_next = true; then 2299 ac_must_keep_next=false # Got value, back to normal. 2300 else 2301 case $ac_arg in 2302 *=* | --config-cache | -C | -disable-* | --disable-* \ 2303 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2304 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2305 | -with-* | --with-* | -without-* | --without-* | --x) 2306 case "$ac_configure_args0 " in 2307 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2308 esac 2309 ;; 2310 -* ) ac_must_keep_next=true ;; 2311 esac 2312 fi 2313 as_fn_append ac_configure_args " '$ac_arg'" 2314 ;; 2315 esac 2316 done 2317done 2318{ ac_configure_args0=; unset ac_configure_args0;} 2319{ ac_configure_args1=; unset ac_configure_args1;} 2320 2321# When interrupted or exit'd, cleanup temporary files, and complete 2322# config.log. We remove comments because anyway the quotes in there 2323# would cause problems or look ugly. 2324# WARNING: Use '\'' to represent an apostrophe within the trap. 2325# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2326trap 'exit_status=$? 2327 # Save into config.log some information that might help in debugging. 2328 { 2329 echo 2330 2331 $as_echo "## ---------------- ## 2332## Cache variables. ## 2333## ---------------- ##" 2334 echo 2335 # The following way of writing the cache mishandles newlines in values, 2336( 2337 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2338 eval ac_val=\$$ac_var 2339 case $ac_val in #( 2340 *${as_nl}*) 2341 case $ac_var in #( 2342 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2343$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2344 esac 2345 case $ac_var in #( 2346 _ | IFS | as_nl) ;; #( 2347 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2348 *) { eval $ac_var=; unset $ac_var;} ;; 2349 esac ;; 2350 esac 2351 done 2352 (set) 2>&1 | 2353 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2354 *${as_nl}ac_space=\ *) 2355 sed -n \ 2356 "s/'\''/'\''\\\\'\'''\''/g; 2357 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2358 ;; #( 2359 *) 2360 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2361 ;; 2362 esac | 2363 sort 2364) 2365 echo 2366 2367 $as_echo "## ----------------- ## 2368## Output variables. ## 2369## ----------------- ##" 2370 echo 2371 for ac_var in $ac_subst_vars 2372 do 2373 eval ac_val=\$$ac_var 2374 case $ac_val in 2375 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2376 esac 2377 $as_echo "$ac_var='\''$ac_val'\''" 2378 done | sort 2379 echo 2380 2381 if test -n "$ac_subst_files"; then 2382 $as_echo "## ------------------- ## 2383## File substitutions. ## 2384## ------------------- ##" 2385 echo 2386 for ac_var in $ac_subst_files 2387 do 2388 eval ac_val=\$$ac_var 2389 case $ac_val in 2390 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2391 esac 2392 $as_echo "$ac_var='\''$ac_val'\''" 2393 done | sort 2394 echo 2395 fi 2396 2397 if test -s confdefs.h; then 2398 $as_echo "## ----------- ## 2399## confdefs.h. ## 2400## ----------- ##" 2401 echo 2402 cat confdefs.h 2403 echo 2404 fi 2405 test "$ac_signal" != 0 && 2406 $as_echo "$as_me: caught signal $ac_signal" 2407 $as_echo "$as_me: exit $exit_status" 2408 } >&5 2409 rm -f core *.core core.conftest.* && 2410 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2411 exit $exit_status 2412' 0 2413for ac_signal in 1 2 13 15; do 2414 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2415done 2416ac_signal=0 2417 2418# confdefs.h avoids OS command line length limits that DEFS can exceed. 2419rm -f -r conftest* confdefs.h 2420 2421$as_echo "/* confdefs.h */" > confdefs.h 2422 2423# Predefined preprocessor variables. 2424 2425cat >>confdefs.h <<_ACEOF 2426#define PACKAGE_NAME "$PACKAGE_NAME" 2427_ACEOF 2428 2429cat >>confdefs.h <<_ACEOF 2430#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2431_ACEOF 2432 2433cat >>confdefs.h <<_ACEOF 2434#define PACKAGE_VERSION "$PACKAGE_VERSION" 2435_ACEOF 2436 2437cat >>confdefs.h <<_ACEOF 2438#define PACKAGE_STRING "$PACKAGE_STRING" 2439_ACEOF 2440 2441cat >>confdefs.h <<_ACEOF 2442#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2443_ACEOF 2444 2445cat >>confdefs.h <<_ACEOF 2446#define PACKAGE_URL "$PACKAGE_URL" 2447_ACEOF 2448 2449 2450# Let the site file select an alternate cache file if it wants to. 2451# Prefer an explicitly selected file to automatically selected ones. 2452ac_site_file1=NONE 2453ac_site_file2=NONE 2454if test -n "$CONFIG_SITE"; then 2455 # We do not want a PATH search for config.site. 2456 case $CONFIG_SITE in #(( 2457 -*) ac_site_file1=./$CONFIG_SITE;; 2458 */*) ac_site_file1=$CONFIG_SITE;; 2459 *) ac_site_file1=./$CONFIG_SITE;; 2460 esac 2461elif test "x$prefix" != xNONE; then 2462 ac_site_file1=$prefix/share/config.site 2463 ac_site_file2=$prefix/etc/config.site 2464else 2465 ac_site_file1=$ac_default_prefix/share/config.site 2466 ac_site_file2=$ac_default_prefix/etc/config.site 2467fi 2468for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2469do 2470 test "x$ac_site_file" = xNONE && continue 2471 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2472 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2473$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2474 sed 's/^/| /' "$ac_site_file" >&5 2475 . "$ac_site_file" \ 2476 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2478as_fn_error $? "failed to load site script $ac_site_file 2479See \`config.log' for more details" "$LINENO" 5; } 2480 fi 2481done 2482 2483if test -r "$cache_file"; then 2484 # Some versions of bash will fail to source /dev/null (special files 2485 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2486 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2488$as_echo "$as_me: loading cache $cache_file" >&6;} 2489 case $cache_file in 2490 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2491 *) . "./$cache_file";; 2492 esac 2493 fi 2494else 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2496$as_echo "$as_me: creating cache $cache_file" >&6;} 2497 >$cache_file 2498fi 2499 2500as_fn_append ac_header_list " sys/time.h" 2501as_fn_append ac_header_list " unistd.h" 2502as_fn_append ac_func_list " alarm" 2503# Check that the precious variables saved in the cache have kept the same 2504# value. 2505ac_cache_corrupted=false 2506for ac_var in $ac_precious_vars; do 2507 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2508 eval ac_new_set=\$ac_env_${ac_var}_set 2509 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2510 eval ac_new_val=\$ac_env_${ac_var}_value 2511 case $ac_old_set,$ac_new_set in 2512 set,) 2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2514$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2515 ac_cache_corrupted=: ;; 2516 ,set) 2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2518$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2519 ac_cache_corrupted=: ;; 2520 ,);; 2521 *) 2522 if test "x$ac_old_val" != "x$ac_new_val"; then 2523 # differences in whitespace do not lead to failure. 2524 ac_old_val_w=`echo x $ac_old_val` 2525 ac_new_val_w=`echo x $ac_new_val` 2526 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2528$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2529 ac_cache_corrupted=: 2530 else 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2532$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2533 eval $ac_var=\$ac_old_val 2534 fi 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2536$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2538$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2539 fi;; 2540 esac 2541 # Pass precious variables to config.status. 2542 if test "$ac_new_set" = set; then 2543 case $ac_new_val in 2544 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2545 *) ac_arg=$ac_var=$ac_new_val ;; 2546 esac 2547 case " $ac_configure_args " in 2548 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2549 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2550 esac 2551 fi 2552done 2553if $ac_cache_corrupted; then 2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2557$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2558 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2559fi 2560## -------------------- ## 2561## Main body of script. ## 2562## -------------------- ## 2563 2564ac_ext=c 2565ac_cpp='$CPP $CPPFLAGS' 2566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2568ac_compiler_gnu=$ac_cv_c_compiler_gnu 2569 2570 2571CONFIG_ARGS="$*" 2572 2573 2574 2575 2576ac_aux_dir= 2577for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2578 if test -f "$ac_dir/install-sh"; then 2579 ac_aux_dir=$ac_dir 2580 ac_install_sh="$ac_aux_dir/install-sh -c" 2581 break 2582 elif test -f "$ac_dir/install.sh"; then 2583 ac_aux_dir=$ac_dir 2584 ac_install_sh="$ac_aux_dir/install.sh -c" 2585 break 2586 elif test -f "$ac_dir/shtool"; then 2587 ac_aux_dir=$ac_dir 2588 ac_install_sh="$ac_aux_dir/shtool install -c" 2589 break 2590 fi 2591done 2592if test -z "$ac_aux_dir"; then 2593 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2594fi 2595 2596# These three variables are undocumented and unsupported, 2597# and are intended to be withdrawn in a future Autoconf release. 2598# They can cause serious problems if a builder's source tree is in a directory 2599# whose full name contains unusual characters. 2600ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2601ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2602ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2603 2604 2605# Make sure we can run config.sub. 2606$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2607 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2608 2609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2610$as_echo_n "checking build system type... " >&6; } 2611if ${ac_cv_build+:} false; then : 2612 $as_echo_n "(cached) " >&6 2613else 2614 ac_build_alias=$build_alias 2615test "x$ac_build_alias" = x && 2616 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2617test "x$ac_build_alias" = x && 2618 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2619ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2620 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2621 2622fi 2623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2624$as_echo "$ac_cv_build" >&6; } 2625case $ac_cv_build in 2626*-*-*) ;; 2627*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2628esac 2629build=$ac_cv_build 2630ac_save_IFS=$IFS; IFS='-' 2631set x $ac_cv_build 2632shift 2633build_cpu=$1 2634build_vendor=$2 2635shift; shift 2636# Remember, the first character of IFS is used to create $*, 2637# except with old shells: 2638build_os=$* 2639IFS=$ac_save_IFS 2640case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2641 2642 2643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2644$as_echo_n "checking host system type... " >&6; } 2645if ${ac_cv_host+:} false; then : 2646 $as_echo_n "(cached) " >&6 2647else 2648 if test "x$host_alias" = x; then 2649 ac_cv_host=$ac_cv_build 2650else 2651 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2652 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2653fi 2654 2655fi 2656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2657$as_echo "$ac_cv_host" >&6; } 2658case $ac_cv_host in 2659*-*-*) ;; 2660*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2661esac 2662host=$ac_cv_host 2663ac_save_IFS=$IFS; IFS='-' 2664set x $ac_cv_host 2665shift 2666host_cpu=$1 2667host_vendor=$2 2668shift; shift 2669# Remember, the first character of IFS is used to create $*, 2670# except with old shells: 2671host_os=$* 2672IFS=$ac_save_IFS 2673case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2674 2675 2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2677$as_echo_n "checking target system type... " >&6; } 2678if ${ac_cv_target+:} false; then : 2679 $as_echo_n "(cached) " >&6 2680else 2681 if test "x$target_alias" = x; then 2682 ac_cv_target=$ac_cv_host 2683else 2684 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2685 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2686fi 2687 2688fi 2689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2690$as_echo "$ac_cv_target" >&6; } 2691case $ac_cv_target in 2692*-*-*) ;; 2693*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2694esac 2695target=$ac_cv_target 2696ac_save_IFS=$IFS; IFS='-' 2697set x $ac_cv_target 2698shift 2699target_cpu=$1 2700target_vendor=$2 2701shift; shift 2702# Remember, the first character of IFS is used to create $*, 2703# except with old shells: 2704target_os=$* 2705IFS=$ac_save_IFS 2706case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2707 2708 2709# The aliases save the names the user supplied, while $host etc. 2710# will get canonicalized. 2711test -n "$target_alias" && 2712 test "$program_prefix$program_suffix$program_transform_name" = \ 2713 NONENONEs,x,x, && 2714 program_prefix=${target_alias}- 2715 2716am__api_version='1.15' 2717 2718# Find a good install program. We prefer a C program (faster), 2719# so one script is as good as another. But avoid the broken or 2720# incompatible versions: 2721# SysV /etc/install, /usr/sbin/install 2722# SunOS /usr/etc/install 2723# IRIX /sbin/install 2724# AIX /bin/install 2725# AmigaOS /C/install, which installs bootblocks on floppy discs 2726# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2727# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2728# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2729# OS/2's system install, which has a completely different semantic 2730# ./install, which can be erroneously created by make from ./install.sh. 2731# Reject install programs that cannot install multiple files. 2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2733$as_echo_n "checking for a BSD-compatible install... " >&6; } 2734if test -z "$INSTALL"; then 2735if ${ac_cv_path_install+:} false; then : 2736 $as_echo_n "(cached) " >&6 2737else 2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2739for as_dir in $PATH 2740do 2741 IFS=$as_save_IFS 2742 test -z "$as_dir" && as_dir=. 2743 # Account for people who put trailing slashes in PATH elements. 2744case $as_dir/ in #(( 2745 ./ | .// | /[cC]/* | \ 2746 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2747 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2748 /usr/ucb/* ) ;; 2749 *) 2750 # OSF1 and SCO ODT 3.0 have their own names for install. 2751 # Don't use installbsd from OSF since it installs stuff as root 2752 # by default. 2753 for ac_prog in ginstall scoinst install; do 2754 for ac_exec_ext in '' $ac_executable_extensions; do 2755 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2756 if test $ac_prog = install && 2757 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2758 # AIX install. It has an incompatible calling convention. 2759 : 2760 elif test $ac_prog = install && 2761 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2762 # program-specific install script used by HP pwplus--don't use. 2763 : 2764 else 2765 rm -rf conftest.one conftest.two conftest.dir 2766 echo one > conftest.one 2767 echo two > conftest.two 2768 mkdir conftest.dir 2769 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2770 test -s conftest.one && test -s conftest.two && 2771 test -s conftest.dir/conftest.one && 2772 test -s conftest.dir/conftest.two 2773 then 2774 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2775 break 3 2776 fi 2777 fi 2778 fi 2779 done 2780 done 2781 ;; 2782esac 2783 2784 done 2785IFS=$as_save_IFS 2786 2787rm -rf conftest.one conftest.two conftest.dir 2788 2789fi 2790 if test "${ac_cv_path_install+set}" = set; then 2791 INSTALL=$ac_cv_path_install 2792 else 2793 # As a last resort, use the slow shell script. Don't cache a 2794 # value for INSTALL within a source directory, because that will 2795 # break other packages using the cache if that directory is 2796 # removed, or if the value is a relative name. 2797 INSTALL=$ac_install_sh 2798 fi 2799fi 2800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2801$as_echo "$INSTALL" >&6; } 2802 2803# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2804# It thinks the first close brace ends the variable substitution. 2805test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2806 2807test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2808 2809test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2810 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2812$as_echo_n "checking whether build environment is sane... " >&6; } 2813# Reject unsafe characters in $srcdir or the absolute working directory 2814# name. Accept space and tab only in the latter. 2815am_lf=' 2816' 2817case `pwd` in 2818 *[\\\"\#\$\&\'\`$am_lf]*) 2819 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2820esac 2821case $srcdir in 2822 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2823 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2824esac 2825 2826# Do 'set' in a subshell so we don't clobber the current shell's 2827# arguments. Must try -L first in case configure is actually a 2828# symlink; some systems play weird games with the mod time of symlinks 2829# (eg FreeBSD returns the mod time of the symlink's containing 2830# directory). 2831if ( 2832 am_has_slept=no 2833 for am_try in 1 2; do 2834 echo "timestamp, slept: $am_has_slept" > conftest.file 2835 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2836 if test "$*" = "X"; then 2837 # -L didn't work. 2838 set X `ls -t "$srcdir/configure" conftest.file` 2839 fi 2840 if test "$*" != "X $srcdir/configure conftest.file" \ 2841 && test "$*" != "X conftest.file $srcdir/configure"; then 2842 2843 # If neither matched, then we have a broken ls. This can happen 2844 # if, for instance, CONFIG_SHELL is bash and it inherits a 2845 # broken ls alias from the environment. This has actually 2846 # happened. Such a system could not be considered "sane". 2847 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2848 alias in your environment" "$LINENO" 5 2849 fi 2850 if test "$2" = conftest.file || test $am_try -eq 2; then 2851 break 2852 fi 2853 # Just in case. 2854 sleep 1 2855 am_has_slept=yes 2856 done 2857 test "$2" = conftest.file 2858 ) 2859then 2860 # Ok. 2861 : 2862else 2863 as_fn_error $? "newly created file is older than distributed files! 2864Check your system clock" "$LINENO" 5 2865fi 2866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2867$as_echo "yes" >&6; } 2868# If we didn't sleep, we still need to ensure time stamps of config.status and 2869# generated files are strictly newer. 2870am_sleep_pid= 2871if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2872 ( sleep 1 ) & 2873 am_sleep_pid=$! 2874fi 2875 2876rm -f conftest.file 2877 2878test "$program_prefix" != NONE && 2879 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2880# Use a double $ so make ignores it. 2881test "$program_suffix" != NONE && 2882 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2883# Double any \ or $. 2884# By default was `s,x,x', remove it if useless. 2885ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2886program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2887 2888# Expand $ac_aux_dir to an absolute path. 2889am_aux_dir=`cd "$ac_aux_dir" && pwd` 2890 2891if test x"${MISSING+set}" != xset; then 2892 case $am_aux_dir in 2893 *\ * | *\ *) 2894 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2895 *) 2896 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2897 esac 2898fi 2899# Use eval to expand $SHELL 2900if eval "$MISSING --is-lightweight"; then 2901 am_missing_run="$MISSING " 2902else 2903 am_missing_run= 2904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2905$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2906fi 2907 2908if test x"${install_sh+set}" != xset; then 2909 case $am_aux_dir in 2910 *\ * | *\ *) 2911 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2912 *) 2913 install_sh="\${SHELL} $am_aux_dir/install-sh" 2914 esac 2915fi 2916 2917# Installed binaries are usually stripped using 'strip' when the user 2918# run "make install-strip". However 'strip' might not be the right 2919# tool to use in cross-compilation environments, therefore Automake 2920# will honor the 'STRIP' environment variable to overrule this program. 2921if test "$cross_compiling" != no; then 2922 if test -n "$ac_tool_prefix"; then 2923 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2924set dummy ${ac_tool_prefix}strip; ac_word=$2 2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2926$as_echo_n "checking for $ac_word... " >&6; } 2927if ${ac_cv_prog_STRIP+:} false; then : 2928 $as_echo_n "(cached) " >&6 2929else 2930 if test -n "$STRIP"; then 2931 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2932else 2933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2934for as_dir in $PATH 2935do 2936 IFS=$as_save_IFS 2937 test -z "$as_dir" && as_dir=. 2938 for ac_exec_ext in '' $ac_executable_extensions; do 2939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2940 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2942 break 2 2943 fi 2944done 2945 done 2946IFS=$as_save_IFS 2947 2948fi 2949fi 2950STRIP=$ac_cv_prog_STRIP 2951if test -n "$STRIP"; then 2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2953$as_echo "$STRIP" >&6; } 2954else 2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2956$as_echo "no" >&6; } 2957fi 2958 2959 2960fi 2961if test -z "$ac_cv_prog_STRIP"; then 2962 ac_ct_STRIP=$STRIP 2963 # Extract the first word of "strip", so it can be a program name with args. 2964set dummy strip; ac_word=$2 2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2966$as_echo_n "checking for $ac_word... " >&6; } 2967if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2968 $as_echo_n "(cached) " >&6 2969else 2970 if test -n "$ac_ct_STRIP"; then 2971 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2972else 2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2974for as_dir in $PATH 2975do 2976 IFS=$as_save_IFS 2977 test -z "$as_dir" && as_dir=. 2978 for ac_exec_ext in '' $ac_executable_extensions; do 2979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2980 ac_cv_prog_ac_ct_STRIP="strip" 2981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2982 break 2 2983 fi 2984done 2985 done 2986IFS=$as_save_IFS 2987 2988fi 2989fi 2990ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2991if test -n "$ac_ct_STRIP"; then 2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2993$as_echo "$ac_ct_STRIP" >&6; } 2994else 2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2996$as_echo "no" >&6; } 2997fi 2998 2999 if test "x$ac_ct_STRIP" = x; then 3000 STRIP=":" 3001 else 3002 case $cross_compiling:$ac_tool_warned in 3003yes:) 3004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3006ac_tool_warned=yes ;; 3007esac 3008 STRIP=$ac_ct_STRIP 3009 fi 3010else 3011 STRIP="$ac_cv_prog_STRIP" 3012fi 3013 3014fi 3015INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3016 3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3018$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3019if test -z "$MKDIR_P"; then 3020 if ${ac_cv_path_mkdir+:} false; then : 3021 $as_echo_n "(cached) " >&6 3022else 3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3024for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3025do 3026 IFS=$as_save_IFS 3027 test -z "$as_dir" && as_dir=. 3028 for ac_prog in mkdir gmkdir; do 3029 for ac_exec_ext in '' $ac_executable_extensions; do 3030 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3031 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3032 'mkdir (GNU coreutils) '* | \ 3033 'mkdir (coreutils) '* | \ 3034 'mkdir (fileutils) '4.1*) 3035 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3036 break 3;; 3037 esac 3038 done 3039 done 3040 done 3041IFS=$as_save_IFS 3042 3043fi 3044 3045 test -d ./--version && rmdir ./--version 3046 if test "${ac_cv_path_mkdir+set}" = set; then 3047 MKDIR_P="$ac_cv_path_mkdir -p" 3048 else 3049 # As a last resort, use the slow shell script. Don't cache a 3050 # value for MKDIR_P within a source directory, because that will 3051 # break other packages using the cache if that directory is 3052 # removed, or if the value is a relative name. 3053 MKDIR_P="$ac_install_sh -d" 3054 fi 3055fi 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3057$as_echo "$MKDIR_P" >&6; } 3058 3059for ac_prog in gawk mawk nawk awk 3060do 3061 # Extract the first word of "$ac_prog", so it can be a program name with args. 3062set dummy $ac_prog; ac_word=$2 3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3064$as_echo_n "checking for $ac_word... " >&6; } 3065if ${ac_cv_prog_AWK+:} false; then : 3066 $as_echo_n "(cached) " >&6 3067else 3068 if test -n "$AWK"; then 3069 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3070else 3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3072for as_dir in $PATH 3073do 3074 IFS=$as_save_IFS 3075 test -z "$as_dir" && as_dir=. 3076 for ac_exec_ext in '' $ac_executable_extensions; do 3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3078 ac_cv_prog_AWK="$ac_prog" 3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3080 break 2 3081 fi 3082done 3083 done 3084IFS=$as_save_IFS 3085 3086fi 3087fi 3088AWK=$ac_cv_prog_AWK 3089if test -n "$AWK"; then 3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3091$as_echo "$AWK" >&6; } 3092else 3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3094$as_echo "no" >&6; } 3095fi 3096 3097 3098 test -n "$AWK" && break 3099done 3100 3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3102$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3103set x ${MAKE-make} 3104ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3105if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3106 $as_echo_n "(cached) " >&6 3107else 3108 cat >conftest.make <<\_ACEOF 3109SHELL = /bin/sh 3110all: 3111 @echo '@@@%%%=$(MAKE)=@@@%%%' 3112_ACEOF 3113# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3114case `${MAKE-make} -f conftest.make 2>/dev/null` in 3115 *@@@%%%=?*=@@@%%%*) 3116 eval ac_cv_prog_make_${ac_make}_set=yes;; 3117 *) 3118 eval ac_cv_prog_make_${ac_make}_set=no;; 3119esac 3120rm -f conftest.make 3121fi 3122if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3124$as_echo "yes" >&6; } 3125 SET_MAKE= 3126else 3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3128$as_echo "no" >&6; } 3129 SET_MAKE="MAKE=${MAKE-make}" 3130fi 3131 3132rm -rf .tst 2>/dev/null 3133mkdir .tst 2>/dev/null 3134if test -d .tst; then 3135 am__leading_dot=. 3136else 3137 am__leading_dot=_ 3138fi 3139rmdir .tst 2>/dev/null 3140 3141# Check whether --enable-silent-rules was given. 3142if test "${enable_silent_rules+set}" = set; then : 3143 enableval=$enable_silent_rules; 3144fi 3145 3146case $enable_silent_rules in # ((( 3147 yes) AM_DEFAULT_VERBOSITY=0;; 3148 no) AM_DEFAULT_VERBOSITY=1;; 3149 *) AM_DEFAULT_VERBOSITY=1;; 3150esac 3151am_make=${MAKE-make} 3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3153$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3154if ${am_cv_make_support_nested_variables+:} false; then : 3155 $as_echo_n "(cached) " >&6 3156else 3157 if $as_echo 'TRUE=$(BAR$(V)) 3158BAR0=false 3159BAR1=true 3160V=1 3161am__doit: 3162 @$(TRUE) 3163.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3164 am_cv_make_support_nested_variables=yes 3165else 3166 am_cv_make_support_nested_variables=no 3167fi 3168fi 3169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3170$as_echo "$am_cv_make_support_nested_variables" >&6; } 3171if test $am_cv_make_support_nested_variables = yes; then 3172 AM_V='$(V)' 3173 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3174else 3175 AM_V=$AM_DEFAULT_VERBOSITY 3176 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3177fi 3178AM_BACKSLASH='\' 3179 3180if test "`cd $srcdir && pwd`" != "`pwd`"; then 3181 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3182 # is not polluted with repeated "-I." 3183 am__isrc=' -I$(srcdir)' 3184 # test to see if srcdir already configured 3185 if test -f $srcdir/config.status; then 3186 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3187 fi 3188fi 3189 3190# test whether we have cygpath 3191if test -z "$CYGPATH_W"; then 3192 if (cygpath --version) >/dev/null 2>/dev/null; then 3193 CYGPATH_W='cygpath -w' 3194 else 3195 CYGPATH_W=echo 3196 fi 3197fi 3198 3199 3200# Define the identity of the package. 3201 PACKAGE='quagga' 3202 VERSION='0.99.24' 3203 3204 3205cat >>confdefs.h <<_ACEOF 3206#define PACKAGE "$PACKAGE" 3207_ACEOF 3208 3209 3210cat >>confdefs.h <<_ACEOF 3211#define VERSION "$VERSION" 3212_ACEOF 3213 3214# Some tools Automake needs. 3215 3216ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3217 3218 3219AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3220 3221 3222AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3223 3224 3225AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3226 3227 3228MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3229 3230# For better backward compatibility. To be removed once Automake 1.9.x 3231# dies out for good. For more background, see: 3232# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3233# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3234mkdir_p='$(MKDIR_P)' 3235 3236# We need awk for the "check" target (and possibly the TAP driver). The 3237# system "awk" is bad on some platforms. 3238# Always define AMTAR for backward compatibility. Yes, it's still used 3239# in the wild :-( We should find a proper way to deprecate it ... 3240AMTAR='$${TAR-tar}' 3241 3242 3243# We'll loop over all known methods to create a tar archive until one works. 3244_am_tools='gnutar pax cpio none' 3245 3246am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3247 3248 3249 3250 3251 3252 3253# POSIX will say in a future version that running "rm -f" with no argument 3254# is OK; and we want to be able to make that assumption in our Makefile 3255# recipes. So use an aggressive probe to check that the usage we want is 3256# actually supported "in the wild" to an acceptable degree. 3257# See automake bug#10828. 3258# To make any issue more visible, cause the running configure to be aborted 3259# by default if the 'rm' program in use doesn't match our expectations; the 3260# user can still override this though. 3261if rm -f && rm -fr && rm -rf; then : OK; else 3262 cat >&2 <<'END' 3263Oops! 3264 3265Your 'rm' program seems unable to run without file operands specified 3266on the command line, even when the '-f' option is present. This is contrary 3267to the behaviour of most rm programs out there, and not conforming with 3268the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3269 3270Please tell bug-automake@gnu.org about your system, including the value 3271of your $PATH and any error possibly output before this message. This 3272can help us improve future automake versions. 3273 3274END 3275 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3276 echo 'Configuration will proceed anyway, since you have set the' >&2 3277 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3278 echo >&2 3279 else 3280 cat >&2 <<'END' 3281Aborting the configuration process, to ensure you take notice of the issue. 3282 3283You can download and install GNU coreutils to get an 'rm' implementation 3284that behaves properly: <http://www.gnu.org/software/coreutils/>. 3285 3286If you want to complete the configuration process using your problematic 3287'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3288to "yes", and re-run configure. 3289 3290END 3291 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3292 fi 3293fi 3294 3295# Check whether --enable-silent-rules was given. 3296if test "${enable_silent_rules+set}" = set; then : 3297 enableval=$enable_silent_rules; 3298fi 3299 3300case $enable_silent_rules in # ((( 3301 yes) AM_DEFAULT_VERBOSITY=0;; 3302 no) AM_DEFAULT_VERBOSITY=1;; 3303 *) AM_DEFAULT_VERBOSITY=0;; 3304esac 3305am_make=${MAKE-make} 3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3307$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3308if ${am_cv_make_support_nested_variables+:} false; then : 3309 $as_echo_n "(cached) " >&6 3310else 3311 if $as_echo 'TRUE=$(BAR$(V)) 3312BAR0=false 3313BAR1=true 3314V=1 3315am__doit: 3316 @$(TRUE) 3317.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3318 am_cv_make_support_nested_variables=yes 3319else 3320 am_cv_make_support_nested_variables=no 3321fi 3322fi 3323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3324$as_echo "$am_cv_make_support_nested_variables" >&6; } 3325if test $am_cv_make_support_nested_variables = yes; then 3326 AM_V='$(V)' 3327 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3328else 3329 AM_V=$AM_DEFAULT_VERBOSITY 3330 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3331fi 3332AM_BACKSLASH='\' 3333 3334 3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3336$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3337 # Check whether --enable-maintainer-mode was given. 3338if test "${enable_maintainer_mode+set}" = set; then : 3339 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3340else 3341 USE_MAINTAINER_MODE=no 3342fi 3343 3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3345$as_echo "$USE_MAINTAINER_MODE" >&6; } 3346 if test $USE_MAINTAINER_MODE = yes; then 3347 MAINTAINER_MODE_TRUE= 3348 MAINTAINER_MODE_FALSE='#' 3349else 3350 MAINTAINER_MODE_TRUE='#' 3351 MAINTAINER_MODE_FALSE= 3352fi 3353 3354 MAINT=$MAINTAINER_MODE_TRUE 3355 3356 3357ac_config_headers="$ac_config_headers config.h" 3358 3359 3360# Extract the first word of "perl", so it can be a program name with args. 3361set dummy perl; ac_word=$2 3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3363$as_echo_n "checking for $ac_word... " >&6; } 3364if ${ac_cv_path_PERL+:} false; then : 3365 $as_echo_n "(cached) " >&6 3366else 3367 case $PERL in 3368 [\\/]* | ?:[\\/]*) 3369 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 3370 ;; 3371 *) 3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3373for as_dir in $PATH 3374do 3375 IFS=$as_save_IFS 3376 test -z "$as_dir" && as_dir=. 3377 for ac_exec_ext in '' $ac_executable_extensions; do 3378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3379 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3381 break 2 3382 fi 3383done 3384 done 3385IFS=$as_save_IFS 3386 3387 ;; 3388esac 3389fi 3390PERL=$ac_cv_path_PERL 3391if test -n "$PERL"; then 3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 3393$as_echo "$PERL" >&6; } 3394else 3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3396$as_echo "no" >&6; } 3397fi 3398 3399 3400# Extract the first word of "gawk", so it can be a program name with args. 3401set dummy gawk; ac_word=$2 3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3403$as_echo_n "checking for $ac_word... " >&6; } 3404if ${ac_cv_prog_GAWK+:} false; then : 3405 $as_echo_n "(cached) " >&6 3406else 3407 if test -n "$GAWK"; then 3408 ac_cv_prog_GAWK="$GAWK" # Let the user override the test. 3409else 3410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3411for as_dir in $PATH 3412do 3413 IFS=$as_save_IFS 3414 test -z "$as_dir" && as_dir=. 3415 for ac_exec_ext in '' $ac_executable_extensions; do 3416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3417 ac_cv_prog_GAWK="gawk" 3418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3419 break 2 3420 fi 3421done 3422 done 3423IFS=$as_save_IFS 3424 3425 test -z "$ac_cv_prog_GAWK" && ac_cv_prog_GAWK="not-in-PATH" 3426fi 3427fi 3428GAWK=$ac_cv_prog_GAWK 3429if test -n "$GAWK"; then 3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAWK" >&5 3431$as_echo "$GAWK" >&6; } 3432else 3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3434$as_echo "no" >&6; } 3435fi 3436 3437 3438if test "x$GAWK" = "xnot-in-PATH" ; then 3439 as_fn_error $? "GNU awk is required for lib/memtype.h made by memtypes.awk. 3440BSD awk complains: awk: gensub doesn't support backreferences (subst \"\1\") " "$LINENO" 5 3441fi 3442 3443 3444exampledir=${sysconfdir} 3445# Check whether --enable-exampledir was given. 3446if test "${enable_exampledir+set}" = set; then : 3447 enableval=$enable_exampledir; exampledir="$enableval" 3448fi 3449 3450 3451 3452pkgsrcrcdir="" 3453pkgsrcdir="" 3454# Check whether --enable-pkgsrcrcdir was given. 3455if test "${enable_pkgsrcrcdir+set}" = set; then : 3456 enableval=$enable_pkgsrcrcdir; pkgsrcrcdir="$enableval"; pkgsrcdir="pkgsrc" 3457fi 3458 3459 3460 3461 3462 3463# Check whether --with-cflags was given. 3464if test "${with_cflags+set}" = set; then : 3465 withval=$with_cflags; 3466fi 3467 3468if test "x$with_cflags" != "x" ; then 3469 CFLAGS="$with_cflags" ; cflags_specified=yes ; 3470elif test -n "$CFLAGS" ; then 3471 cflags_specified=yes ; 3472fi 3473 3474ac_ext=c 3475ac_cpp='$CPP $CPPFLAGS' 3476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3478ac_compiler_gnu=$ac_cv_c_compiler_gnu 3479 3480ac_ext=c 3481ac_cpp='$CPP $CPPFLAGS' 3482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3484ac_compiler_gnu=$ac_cv_c_compiler_gnu 3485if test -n "$ac_tool_prefix"; then 3486 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3487set dummy ${ac_tool_prefix}gcc; ac_word=$2 3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3489$as_echo_n "checking for $ac_word... " >&6; } 3490if ${ac_cv_prog_CC+:} false; then : 3491 $as_echo_n "(cached) " >&6 3492else 3493 if test -n "$CC"; then 3494 ac_cv_prog_CC="$CC" # Let the user override the test. 3495else 3496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3497for as_dir in $PATH 3498do 3499 IFS=$as_save_IFS 3500 test -z "$as_dir" && as_dir=. 3501 for ac_exec_ext in '' $ac_executable_extensions; do 3502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3503 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3505 break 2 3506 fi 3507done 3508 done 3509IFS=$as_save_IFS 3510 3511fi 3512fi 3513CC=$ac_cv_prog_CC 3514if test -n "$CC"; then 3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3516$as_echo "$CC" >&6; } 3517else 3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3519$as_echo "no" >&6; } 3520fi 3521 3522 3523fi 3524if test -z "$ac_cv_prog_CC"; then 3525 ac_ct_CC=$CC 3526 # Extract the first word of "gcc", so it can be a program name with args. 3527set dummy gcc; ac_word=$2 3528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3529$as_echo_n "checking for $ac_word... " >&6; } 3530if ${ac_cv_prog_ac_ct_CC+:} false; then : 3531 $as_echo_n "(cached) " >&6 3532else 3533 if test -n "$ac_ct_CC"; then 3534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3535else 3536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3537for as_dir in $PATH 3538do 3539 IFS=$as_save_IFS 3540 test -z "$as_dir" && as_dir=. 3541 for ac_exec_ext in '' $ac_executable_extensions; do 3542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3543 ac_cv_prog_ac_ct_CC="gcc" 3544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3545 break 2 3546 fi 3547done 3548 done 3549IFS=$as_save_IFS 3550 3551fi 3552fi 3553ac_ct_CC=$ac_cv_prog_ac_ct_CC 3554if test -n "$ac_ct_CC"; then 3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3556$as_echo "$ac_ct_CC" >&6; } 3557else 3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3559$as_echo "no" >&6; } 3560fi 3561 3562 if test "x$ac_ct_CC" = x; then 3563 CC="" 3564 else 3565 case $cross_compiling:$ac_tool_warned in 3566yes:) 3567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3569ac_tool_warned=yes ;; 3570esac 3571 CC=$ac_ct_CC 3572 fi 3573else 3574 CC="$ac_cv_prog_CC" 3575fi 3576 3577if test -z "$CC"; then 3578 if test -n "$ac_tool_prefix"; then 3579 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3580set dummy ${ac_tool_prefix}cc; ac_word=$2 3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3582$as_echo_n "checking for $ac_word... " >&6; } 3583if ${ac_cv_prog_CC+:} false; then : 3584 $as_echo_n "(cached) " >&6 3585else 3586 if test -n "$CC"; then 3587 ac_cv_prog_CC="$CC" # Let the user override the test. 3588else 3589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3590for as_dir in $PATH 3591do 3592 IFS=$as_save_IFS 3593 test -z "$as_dir" && as_dir=. 3594 for ac_exec_ext in '' $ac_executable_extensions; do 3595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3596 ac_cv_prog_CC="${ac_tool_prefix}cc" 3597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3598 break 2 3599 fi 3600done 3601 done 3602IFS=$as_save_IFS 3603 3604fi 3605fi 3606CC=$ac_cv_prog_CC 3607if test -n "$CC"; then 3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3609$as_echo "$CC" >&6; } 3610else 3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3612$as_echo "no" >&6; } 3613fi 3614 3615 3616 fi 3617fi 3618if test -z "$CC"; then 3619 # Extract the first word of "cc", so it can be a program name with args. 3620set dummy cc; ac_word=$2 3621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3622$as_echo_n "checking for $ac_word... " >&6; } 3623if ${ac_cv_prog_CC+:} false; then : 3624 $as_echo_n "(cached) " >&6 3625else 3626 if test -n "$CC"; then 3627 ac_cv_prog_CC="$CC" # Let the user override the test. 3628else 3629 ac_prog_rejected=no 3630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3631for as_dir in $PATH 3632do 3633 IFS=$as_save_IFS 3634 test -z "$as_dir" && as_dir=. 3635 for ac_exec_ext in '' $ac_executable_extensions; do 3636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3637 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3638 ac_prog_rejected=yes 3639 continue 3640 fi 3641 ac_cv_prog_CC="cc" 3642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3643 break 2 3644 fi 3645done 3646 done 3647IFS=$as_save_IFS 3648 3649if test $ac_prog_rejected = yes; then 3650 # We found a bogon in the path, so make sure we never use it. 3651 set dummy $ac_cv_prog_CC 3652 shift 3653 if test $# != 0; then 3654 # We chose a different compiler from the bogus one. 3655 # However, it has the same basename, so the bogon will be chosen 3656 # first if we set CC to just the basename; use the full file name. 3657 shift 3658 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3659 fi 3660fi 3661fi 3662fi 3663CC=$ac_cv_prog_CC 3664if test -n "$CC"; then 3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3666$as_echo "$CC" >&6; } 3667else 3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3669$as_echo "no" >&6; } 3670fi 3671 3672 3673fi 3674if test -z "$CC"; then 3675 if test -n "$ac_tool_prefix"; then 3676 for ac_prog in cl.exe 3677 do 3678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3679set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3681$as_echo_n "checking for $ac_word... " >&6; } 3682if ${ac_cv_prog_CC+:} false; then : 3683 $as_echo_n "(cached) " >&6 3684else 3685 if test -n "$CC"; then 3686 ac_cv_prog_CC="$CC" # Let the user override the test. 3687else 3688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3689for as_dir in $PATH 3690do 3691 IFS=$as_save_IFS 3692 test -z "$as_dir" && as_dir=. 3693 for ac_exec_ext in '' $ac_executable_extensions; do 3694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3695 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3697 break 2 3698 fi 3699done 3700 done 3701IFS=$as_save_IFS 3702 3703fi 3704fi 3705CC=$ac_cv_prog_CC 3706if test -n "$CC"; then 3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3708$as_echo "$CC" >&6; } 3709else 3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3711$as_echo "no" >&6; } 3712fi 3713 3714 3715 test -n "$CC" && break 3716 done 3717fi 3718if test -z "$CC"; then 3719 ac_ct_CC=$CC 3720 for ac_prog in cl.exe 3721do 3722 # Extract the first word of "$ac_prog", so it can be a program name with args. 3723set dummy $ac_prog; ac_word=$2 3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3725$as_echo_n "checking for $ac_word... " >&6; } 3726if ${ac_cv_prog_ac_ct_CC+:} false; then : 3727 $as_echo_n "(cached) " >&6 3728else 3729 if test -n "$ac_ct_CC"; then 3730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3731else 3732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3733for as_dir in $PATH 3734do 3735 IFS=$as_save_IFS 3736 test -z "$as_dir" && as_dir=. 3737 for ac_exec_ext in '' $ac_executable_extensions; do 3738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3739 ac_cv_prog_ac_ct_CC="$ac_prog" 3740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3741 break 2 3742 fi 3743done 3744 done 3745IFS=$as_save_IFS 3746 3747fi 3748fi 3749ac_ct_CC=$ac_cv_prog_ac_ct_CC 3750if test -n "$ac_ct_CC"; then 3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3752$as_echo "$ac_ct_CC" >&6; } 3753else 3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3755$as_echo "no" >&6; } 3756fi 3757 3758 3759 test -n "$ac_ct_CC" && break 3760done 3761 3762 if test "x$ac_ct_CC" = x; then 3763 CC="" 3764 else 3765 case $cross_compiling:$ac_tool_warned in 3766yes:) 3767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3769ac_tool_warned=yes ;; 3770esac 3771 CC=$ac_ct_CC 3772 fi 3773fi 3774 3775fi 3776 3777 3778test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3779$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3780as_fn_error $? "no acceptable C compiler found in \$PATH 3781See \`config.log' for more details" "$LINENO" 5; } 3782 3783# Provide some information about the compiler. 3784$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3785set X $ac_compile 3786ac_compiler=$2 3787for ac_option in --version -v -V -qversion; do 3788 { { ac_try="$ac_compiler $ac_option >&5" 3789case "(($ac_try" in 3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3791 *) ac_try_echo=$ac_try;; 3792esac 3793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3794$as_echo "$ac_try_echo"; } >&5 3795 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3796 ac_status=$? 3797 if test -s conftest.err; then 3798 sed '10a\ 3799... rest of stderr output deleted ... 3800 10q' conftest.err >conftest.er1 3801 cat conftest.er1 >&5 3802 fi 3803 rm -f conftest.er1 conftest.err 3804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3805 test $ac_status = 0; } 3806done 3807 3808cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3809/* end confdefs.h. */ 3810 3811int 3812main () 3813{ 3814 3815 ; 3816 return 0; 3817} 3818_ACEOF 3819ac_clean_files_save=$ac_clean_files 3820ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3821# Try to create an executable without -o first, disregard a.out. 3822# It will help us diagnose broken compilers, and finding out an intuition 3823# of exeext. 3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3825$as_echo_n "checking whether the C compiler works... " >&6; } 3826ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3827 3828# The possible output files: 3829ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3830 3831ac_rmfiles= 3832for ac_file in $ac_files 3833do 3834 case $ac_file in 3835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3836 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3837 esac 3838done 3839rm -f $ac_rmfiles 3840 3841if { { ac_try="$ac_link_default" 3842case "(($ac_try" in 3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3844 *) ac_try_echo=$ac_try;; 3845esac 3846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3847$as_echo "$ac_try_echo"; } >&5 3848 (eval "$ac_link_default") 2>&5 3849 ac_status=$? 3850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3851 test $ac_status = 0; }; then : 3852 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3853# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3854# in a Makefile. We should not override ac_cv_exeext if it was cached, 3855# so that the user can short-circuit this test for compilers unknown to 3856# Autoconf. 3857for ac_file in $ac_files '' 3858do 3859 test -f "$ac_file" || continue 3860 case $ac_file in 3861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3862 ;; 3863 [ab].out ) 3864 # We found the default executable, but exeext='' is most 3865 # certainly right. 3866 break;; 3867 *.* ) 3868 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3869 then :; else 3870 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3871 fi 3872 # We set ac_cv_exeext here because the later test for it is not 3873 # safe: cross compilers may not add the suffix if given an `-o' 3874 # argument, so we may need to know it at that point already. 3875 # Even if this section looks crufty: it has the advantage of 3876 # actually working. 3877 break;; 3878 * ) 3879 break;; 3880 esac 3881done 3882test "$ac_cv_exeext" = no && ac_cv_exeext= 3883 3884else 3885 ac_file='' 3886fi 3887if test -z "$ac_file"; then : 3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3889$as_echo "no" >&6; } 3890$as_echo "$as_me: failed program was:" >&5 3891sed 's/^/| /' conftest.$ac_ext >&5 3892 3893{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3895as_fn_error 77 "C compiler cannot create executables 3896See \`config.log' for more details" "$LINENO" 5; } 3897else 3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3899$as_echo "yes" >&6; } 3900fi 3901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3902$as_echo_n "checking for C compiler default output file name... " >&6; } 3903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3904$as_echo "$ac_file" >&6; } 3905ac_exeext=$ac_cv_exeext 3906 3907rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3908ac_clean_files=$ac_clean_files_save 3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3910$as_echo_n "checking for suffix of executables... " >&6; } 3911if { { ac_try="$ac_link" 3912case "(($ac_try" in 3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3914 *) ac_try_echo=$ac_try;; 3915esac 3916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3917$as_echo "$ac_try_echo"; } >&5 3918 (eval "$ac_link") 2>&5 3919 ac_status=$? 3920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3921 test $ac_status = 0; }; then : 3922 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3923# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3924# work properly (i.e., refer to `conftest.exe'), while it won't with 3925# `rm'. 3926for ac_file in conftest.exe conftest conftest.*; do 3927 test -f "$ac_file" || continue 3928 case $ac_file in 3929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3931 break;; 3932 * ) break;; 3933 esac 3934done 3935else 3936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3938as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3939See \`config.log' for more details" "$LINENO" 5; } 3940fi 3941rm -f conftest conftest$ac_cv_exeext 3942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3943$as_echo "$ac_cv_exeext" >&6; } 3944 3945rm -f conftest.$ac_ext 3946EXEEXT=$ac_cv_exeext 3947ac_exeext=$EXEEXT 3948cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3949/* end confdefs.h. */ 3950#include <stdio.h> 3951int 3952main () 3953{ 3954FILE *f = fopen ("conftest.out", "w"); 3955 return ferror (f) || fclose (f) != 0; 3956 3957 ; 3958 return 0; 3959} 3960_ACEOF 3961ac_clean_files="$ac_clean_files conftest.out" 3962# Check that the compiler produces executables we can run. If not, either 3963# the compiler is broken, or we cross compile. 3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3965$as_echo_n "checking whether we are cross compiling... " >&6; } 3966if test "$cross_compiling" != yes; then 3967 { { ac_try="$ac_link" 3968case "(($ac_try" in 3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3970 *) ac_try_echo=$ac_try;; 3971esac 3972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3973$as_echo "$ac_try_echo"; } >&5 3974 (eval "$ac_link") 2>&5 3975 ac_status=$? 3976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3977 test $ac_status = 0; } 3978 if { ac_try='./conftest$ac_cv_exeext' 3979 { { case "(($ac_try" in 3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3981 *) ac_try_echo=$ac_try;; 3982esac 3983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3984$as_echo "$ac_try_echo"; } >&5 3985 (eval "$ac_try") 2>&5 3986 ac_status=$? 3987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3988 test $ac_status = 0; }; }; then 3989 cross_compiling=no 3990 else 3991 if test "$cross_compiling" = maybe; then 3992 cross_compiling=yes 3993 else 3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3996as_fn_error $? "cannot run C compiled programs. 3997If you meant to cross compile, use \`--host'. 3998See \`config.log' for more details" "$LINENO" 5; } 3999 fi 4000 fi 4001fi 4002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4003$as_echo "$cross_compiling" >&6; } 4004 4005rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4006ac_clean_files=$ac_clean_files_save 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4008$as_echo_n "checking for suffix of object files... " >&6; } 4009if ${ac_cv_objext+:} false; then : 4010 $as_echo_n "(cached) " >&6 4011else 4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4013/* end confdefs.h. */ 4014 4015int 4016main () 4017{ 4018 4019 ; 4020 return 0; 4021} 4022_ACEOF 4023rm -f conftest.o conftest.obj 4024if { { ac_try="$ac_compile" 4025case "(($ac_try" in 4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4027 *) ac_try_echo=$ac_try;; 4028esac 4029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4030$as_echo "$ac_try_echo"; } >&5 4031 (eval "$ac_compile") 2>&5 4032 ac_status=$? 4033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4034 test $ac_status = 0; }; then : 4035 for ac_file in conftest.o conftest.obj conftest.*; do 4036 test -f "$ac_file" || continue; 4037 case $ac_file in 4038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4039 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4040 break;; 4041 esac 4042done 4043else 4044 $as_echo "$as_me: failed program was:" >&5 4045sed 's/^/| /' conftest.$ac_ext >&5 4046 4047{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4049as_fn_error $? "cannot compute suffix of object files: cannot compile 4050See \`config.log' for more details" "$LINENO" 5; } 4051fi 4052rm -f conftest.$ac_cv_objext conftest.$ac_ext 4053fi 4054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4055$as_echo "$ac_cv_objext" >&6; } 4056OBJEXT=$ac_cv_objext 4057ac_objext=$OBJEXT 4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4059$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4060if ${ac_cv_c_compiler_gnu+:} false; then : 4061 $as_echo_n "(cached) " >&6 4062else 4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4064/* end confdefs.h. */ 4065 4066int 4067main () 4068{ 4069#ifndef __GNUC__ 4070 choke me 4071#endif 4072 4073 ; 4074 return 0; 4075} 4076_ACEOF 4077if ac_fn_c_try_compile "$LINENO"; then : 4078 ac_compiler_gnu=yes 4079else 4080 ac_compiler_gnu=no 4081fi 4082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4083ac_cv_c_compiler_gnu=$ac_compiler_gnu 4084 4085fi 4086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4087$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4088if test $ac_compiler_gnu = yes; then 4089 GCC=yes 4090else 4091 GCC= 4092fi 4093ac_test_CFLAGS=${CFLAGS+set} 4094ac_save_CFLAGS=$CFLAGS 4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4096$as_echo_n "checking whether $CC accepts -g... " >&6; } 4097if ${ac_cv_prog_cc_g+:} false; then : 4098 $as_echo_n "(cached) " >&6 4099else 4100 ac_save_c_werror_flag=$ac_c_werror_flag 4101 ac_c_werror_flag=yes 4102 ac_cv_prog_cc_g=no 4103 CFLAGS="-g" 4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4105/* end confdefs.h. */ 4106 4107int 4108main () 4109{ 4110 4111 ; 4112 return 0; 4113} 4114_ACEOF 4115if ac_fn_c_try_compile "$LINENO"; then : 4116 ac_cv_prog_cc_g=yes 4117else 4118 CFLAGS="" 4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4120/* end confdefs.h. */ 4121 4122int 4123main () 4124{ 4125 4126 ; 4127 return 0; 4128} 4129_ACEOF 4130if ac_fn_c_try_compile "$LINENO"; then : 4131 4132else 4133 ac_c_werror_flag=$ac_save_c_werror_flag 4134 CFLAGS="-g" 4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4136/* end confdefs.h. */ 4137 4138int 4139main () 4140{ 4141 4142 ; 4143 return 0; 4144} 4145_ACEOF 4146if ac_fn_c_try_compile "$LINENO"; then : 4147 ac_cv_prog_cc_g=yes 4148fi 4149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4150fi 4151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4152fi 4153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4154 ac_c_werror_flag=$ac_save_c_werror_flag 4155fi 4156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4157$as_echo "$ac_cv_prog_cc_g" >&6; } 4158if test "$ac_test_CFLAGS" = set; then 4159 CFLAGS=$ac_save_CFLAGS 4160elif test $ac_cv_prog_cc_g = yes; then 4161 if test "$GCC" = yes; then 4162 CFLAGS="-g -O2" 4163 else 4164 CFLAGS="-g" 4165 fi 4166else 4167 if test "$GCC" = yes; then 4168 CFLAGS="-O2" 4169 else 4170 CFLAGS= 4171 fi 4172fi 4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4174$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4175if ${ac_cv_prog_cc_c89+:} false; then : 4176 $as_echo_n "(cached) " >&6 4177else 4178 ac_cv_prog_cc_c89=no 4179ac_save_CC=$CC 4180cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4181/* end confdefs.h. */ 4182#include <stdarg.h> 4183#include <stdio.h> 4184struct stat; 4185/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4186struct buf { int x; }; 4187FILE * (*rcsopen) (struct buf *, struct stat *, int); 4188static char *e (p, i) 4189 char **p; 4190 int i; 4191{ 4192 return p[i]; 4193} 4194static char *f (char * (*g) (char **, int), char **p, ...) 4195{ 4196 char *s; 4197 va_list v; 4198 va_start (v,p); 4199 s = g (p, va_arg (v,int)); 4200 va_end (v); 4201 return s; 4202} 4203 4204/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4205 function prototypes and stuff, but not '\xHH' hex character constants. 4206 These don't provoke an error unfortunately, instead are silently treated 4207 as 'x'. The following induces an error, until -std is added to get 4208 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4209 array size at least. It's necessary to write '\x00'==0 to get something 4210 that's true only with -std. */ 4211int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4212 4213/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4214 inside strings and character constants. */ 4215#define FOO(x) 'x' 4216int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4217 4218int test (int i, double x); 4219struct s1 {int (*f) (int a);}; 4220struct s2 {int (*f) (double a);}; 4221int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4222int argc; 4223char **argv; 4224int 4225main () 4226{ 4227return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4228 ; 4229 return 0; 4230} 4231_ACEOF 4232for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4233 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4234do 4235 CC="$ac_save_CC $ac_arg" 4236 if ac_fn_c_try_compile "$LINENO"; then : 4237 ac_cv_prog_cc_c89=$ac_arg 4238fi 4239rm -f core conftest.err conftest.$ac_objext 4240 test "x$ac_cv_prog_cc_c89" != "xno" && break 4241done 4242rm -f conftest.$ac_ext 4243CC=$ac_save_CC 4244 4245fi 4246# AC_CACHE_VAL 4247case "x$ac_cv_prog_cc_c89" in 4248 x) 4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4250$as_echo "none needed" >&6; } ;; 4251 xno) 4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4253$as_echo "unsupported" >&6; } ;; 4254 *) 4255 CC="$CC $ac_cv_prog_cc_c89" 4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4257$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4258esac 4259if test "x$ac_cv_prog_cc_c89" != xno; then : 4260 4261fi 4262 4263ac_ext=c 4264ac_cpp='$CPP $CPPFLAGS' 4265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4267ac_compiler_gnu=$ac_cv_c_compiler_gnu 4268 4269ac_ext=c 4270ac_cpp='$CPP $CPPFLAGS' 4271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4273ac_compiler_gnu=$ac_cv_c_compiler_gnu 4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4275$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4276if ${am_cv_prog_cc_c_o+:} false; then : 4277 $as_echo_n "(cached) " >&6 4278else 4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4280/* end confdefs.h. */ 4281 4282int 4283main () 4284{ 4285 4286 ; 4287 return 0; 4288} 4289_ACEOF 4290 # Make sure it works both with $CC and with simple cc. 4291 # Following AC_PROG_CC_C_O, we do the test twice because some 4292 # compilers refuse to overwrite an existing .o file with -o, 4293 # though they will create one. 4294 am_cv_prog_cc_c_o=yes 4295 for am_i in 1 2; do 4296 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4297 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4298 ac_status=$? 4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4300 (exit $ac_status); } \ 4301 && test -f conftest2.$ac_objext; then 4302 : OK 4303 else 4304 am_cv_prog_cc_c_o=no 4305 break 4306 fi 4307 done 4308 rm -f core conftest* 4309 unset am_i 4310fi 4311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4312$as_echo "$am_cv_prog_cc_c_o" >&6; } 4313if test "$am_cv_prog_cc_c_o" != yes; then 4314 # Losing compiler, so override with the script. 4315 # FIXME: It is wrong to rewrite CC. 4316 # But if we don't then we get into trouble of one sort or another. 4317 # A longer-term fix would be to have automake use am__CC in this case, 4318 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4319 CC="$am_aux_dir/compile $CC" 4320fi 4321ac_ext=c 4322ac_cpp='$CPP $CPPFLAGS' 4323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4325ac_compiler_gnu=$ac_cv_c_compiler_gnu 4326 4327DEPDIR="${am__leading_dot}deps" 4328 4329ac_config_commands="$ac_config_commands depfiles" 4330 4331 4332am_make=${MAKE-make} 4333cat > confinc << 'END' 4334am__doit: 4335 @echo this is the am__doit target 4336.PHONY: am__doit 4337END 4338# If we don't find an include directive, just comment out the code. 4339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4340$as_echo_n "checking for style of include used by $am_make... " >&6; } 4341am__include="#" 4342am__quote= 4343_am_result=none 4344# First try GNU make style include. 4345echo "include confinc" > confmf 4346# Ignore all kinds of additional output from 'make'. 4347case `$am_make -s -f confmf 2> /dev/null` in #( 4348*the\ am__doit\ target*) 4349 am__include=include 4350 am__quote= 4351 _am_result=GNU 4352 ;; 4353esac 4354# Now try BSD make style include. 4355if test "$am__include" = "#"; then 4356 echo '.include "confinc"' > confmf 4357 case `$am_make -s -f confmf 2> /dev/null` in #( 4358 *the\ am__doit\ target*) 4359 am__include=.include 4360 am__quote="\"" 4361 _am_result=BSD 4362 ;; 4363 esac 4364fi 4365 4366 4367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4368$as_echo "$_am_result" >&6; } 4369rm -f confinc confmf 4370 4371# Check whether --enable-dependency-tracking was given. 4372if test "${enable_dependency_tracking+set}" = set; then : 4373 enableval=$enable_dependency_tracking; 4374fi 4375 4376if test "x$enable_dependency_tracking" != xno; then 4377 am_depcomp="$ac_aux_dir/depcomp" 4378 AMDEPBACKSLASH='\' 4379 am__nodep='_no' 4380fi 4381 if test "x$enable_dependency_tracking" != xno; then 4382 AMDEP_TRUE= 4383 AMDEP_FALSE='#' 4384else 4385 AMDEP_TRUE='#' 4386 AMDEP_FALSE= 4387fi 4388 4389 4390 4391depcc="$CC" am_compiler_list= 4392 4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4394$as_echo_n "checking dependency style of $depcc... " >&6; } 4395if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4396 $as_echo_n "(cached) " >&6 4397else 4398 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4399 # We make a subdir and do the tests there. Otherwise we can end up 4400 # making bogus files that we don't know about and never remove. For 4401 # instance it was reported that on HP-UX the gcc test will end up 4402 # making a dummy file named 'D' -- because '-MD' means "put the output 4403 # in D". 4404 rm -rf conftest.dir 4405 mkdir conftest.dir 4406 # Copy depcomp to subdir because otherwise we won't find it if we're 4407 # using a relative directory. 4408 cp "$am_depcomp" conftest.dir 4409 cd conftest.dir 4410 # We will build objects and dependencies in a subdirectory because 4411 # it helps to detect inapplicable dependency modes. For instance 4412 # both Tru64's cc and ICC support -MD to output dependencies as a 4413 # side effect of compilation, but ICC will put the dependencies in 4414 # the current directory while Tru64 will put them in the object 4415 # directory. 4416 mkdir sub 4417 4418 am_cv_CC_dependencies_compiler_type=none 4419 if test "$am_compiler_list" = ""; then 4420 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4421 fi 4422 am__universal=false 4423 case " $depcc " in #( 4424 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4425 esac 4426 4427 for depmode in $am_compiler_list; do 4428 # Setup a source with many dependencies, because some compilers 4429 # like to wrap large dependency lists on column 80 (with \), and 4430 # we should not choose a depcomp mode which is confused by this. 4431 # 4432 # We need to recreate these files for each test, as the compiler may 4433 # overwrite some of them when testing with obscure command lines. 4434 # This happens at least with the AIX C compiler. 4435 : > sub/conftest.c 4436 for i in 1 2 3 4 5 6; do 4437 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4438 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4439 # Solaris 10 /bin/sh. 4440 echo '/* dummy */' > sub/conftst$i.h 4441 done 4442 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4443 4444 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4445 # mode. It turns out that the SunPro C++ compiler does not properly 4446 # handle '-M -o', and we need to detect this. Also, some Intel 4447 # versions had trouble with output in subdirs. 4448 am__obj=sub/conftest.${OBJEXT-o} 4449 am__minus_obj="-o $am__obj" 4450 case $depmode in 4451 gcc) 4452 # This depmode causes a compiler race in universal mode. 4453 test "$am__universal" = false || continue 4454 ;; 4455 nosideeffect) 4456 # After this tag, mechanisms are not by side-effect, so they'll 4457 # only be used when explicitly requested. 4458 if test "x$enable_dependency_tracking" = xyes; then 4459 continue 4460 else 4461 break 4462 fi 4463 ;; 4464 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4465 # This compiler won't grok '-c -o', but also, the minuso test has 4466 # not run yet. These depmodes are late enough in the game, and 4467 # so weak that their functioning should not be impacted. 4468 am__obj=conftest.${OBJEXT-o} 4469 am__minus_obj= 4470 ;; 4471 none) break ;; 4472 esac 4473 if depmode=$depmode \ 4474 source=sub/conftest.c object=$am__obj \ 4475 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4476 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4477 >/dev/null 2>conftest.err && 4478 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4479 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4480 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4481 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4482 # icc doesn't choke on unknown options, it will just issue warnings 4483 # or remarks (even with -Werror). So we grep stderr for any message 4484 # that says an option was ignored or not supported. 4485 # When given -MP, icc 7.0 and 7.1 complain thusly: 4486 # icc: Command line warning: ignoring option '-M'; no argument required 4487 # The diagnosis changed in icc 8.0: 4488 # icc: Command line remark: option '-MP' not supported 4489 if (grep 'ignoring option' conftest.err || 4490 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4491 am_cv_CC_dependencies_compiler_type=$depmode 4492 break 4493 fi 4494 fi 4495 done 4496 4497 cd .. 4498 rm -rf conftest.dir 4499else 4500 am_cv_CC_dependencies_compiler_type=none 4501fi 4502 4503fi 4504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4505$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4506CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4507 4508 if 4509 test "x$enable_dependency_tracking" != xno \ 4510 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4511 am__fastdepCC_TRUE= 4512 am__fastdepCC_FALSE='#' 4513else 4514 am__fastdepCC_TRUE='#' 4515 am__fastdepCC_FALSE= 4516fi 4517 4518 4519ac_ext=c 4520ac_cpp='$CPP $CPPFLAGS' 4521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4523ac_compiler_gnu=$ac_cv_c_compiler_gnu 4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4525$as_echo_n "checking how to run the C preprocessor... " >&6; } 4526# On Suns, sometimes $CPP names a directory. 4527if test -n "$CPP" && test -d "$CPP"; then 4528 CPP= 4529fi 4530if test -z "$CPP"; then 4531 if ${ac_cv_prog_CPP+:} false; then : 4532 $as_echo_n "(cached) " >&6 4533else 4534 # Double quotes because CPP needs to be expanded 4535 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4536 do 4537 ac_preproc_ok=false 4538for ac_c_preproc_warn_flag in '' yes 4539do 4540 # Use a header file that comes with gcc, so configuring glibc 4541 # with a fresh cross-compiler works. 4542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4543 # <limits.h> exists even on freestanding compilers. 4544 # On the NeXT, cc -E runs the code through the compiler's parser, 4545 # not just through cpp. "Syntax error" is here to catch this case. 4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4547/* end confdefs.h. */ 4548#ifdef __STDC__ 4549# include <limits.h> 4550#else 4551# include <assert.h> 4552#endif 4553 Syntax error 4554_ACEOF 4555if ac_fn_c_try_cpp "$LINENO"; then : 4556 4557else 4558 # Broken: fails on valid input. 4559continue 4560fi 4561rm -f conftest.err conftest.i conftest.$ac_ext 4562 4563 # OK, works on sane cases. Now check whether nonexistent headers 4564 # can be detected and how. 4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4566/* end confdefs.h. */ 4567#include <ac_nonexistent.h> 4568_ACEOF 4569if ac_fn_c_try_cpp "$LINENO"; then : 4570 # Broken: success on invalid input. 4571continue 4572else 4573 # Passes both tests. 4574ac_preproc_ok=: 4575break 4576fi 4577rm -f conftest.err conftest.i conftest.$ac_ext 4578 4579done 4580# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4581rm -f conftest.i conftest.err conftest.$ac_ext 4582if $ac_preproc_ok; then : 4583 break 4584fi 4585 4586 done 4587 ac_cv_prog_CPP=$CPP 4588 4589fi 4590 CPP=$ac_cv_prog_CPP 4591else 4592 ac_cv_prog_CPP=$CPP 4593fi 4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4595$as_echo "$CPP" >&6; } 4596ac_preproc_ok=false 4597for ac_c_preproc_warn_flag in '' yes 4598do 4599 # Use a header file that comes with gcc, so configuring glibc 4600 # with a fresh cross-compiler works. 4601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4602 # <limits.h> exists even on freestanding compilers. 4603 # On the NeXT, cc -E runs the code through the compiler's parser, 4604 # not just through cpp. "Syntax error" is here to catch this case. 4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4606/* end confdefs.h. */ 4607#ifdef __STDC__ 4608# include <limits.h> 4609#else 4610# include <assert.h> 4611#endif 4612 Syntax error 4613_ACEOF 4614if ac_fn_c_try_cpp "$LINENO"; then : 4615 4616else 4617 # Broken: fails on valid input. 4618continue 4619fi 4620rm -f conftest.err conftest.i conftest.$ac_ext 4621 4622 # OK, works on sane cases. Now check whether nonexistent headers 4623 # can be detected and how. 4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4625/* end confdefs.h. */ 4626#include <ac_nonexistent.h> 4627_ACEOF 4628if ac_fn_c_try_cpp "$LINENO"; then : 4629 # Broken: success on invalid input. 4630continue 4631else 4632 # Passes both tests. 4633ac_preproc_ok=: 4634break 4635fi 4636rm -f conftest.err conftest.i conftest.$ac_ext 4637 4638done 4639# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4640rm -f conftest.i conftest.err conftest.$ac_ext 4641if $ac_preproc_ok; then : 4642 4643else 4644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4646as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4647See \`config.log' for more details" "$LINENO" 5; } 4648fi 4649 4650ac_ext=c 4651ac_cpp='$CPP $CPPFLAGS' 4652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4654ac_compiler_gnu=$ac_cv_c_compiler_gnu 4655 4656 4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4658$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4659if ${ac_cv_path_GREP+:} false; then : 4660 $as_echo_n "(cached) " >&6 4661else 4662 if test -z "$GREP"; then 4663 ac_path_GREP_found=false 4664 # Loop through the user's path and test for each of PROGNAME-LIST 4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4666for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4667do 4668 IFS=$as_save_IFS 4669 test -z "$as_dir" && as_dir=. 4670 for ac_prog in grep ggrep; do 4671 for ac_exec_ext in '' $ac_executable_extensions; do 4672 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4673 as_fn_executable_p "$ac_path_GREP" || continue 4674# Check for GNU ac_path_GREP and select it if it is found. 4675 # Check for GNU $ac_path_GREP 4676case `"$ac_path_GREP" --version 2>&1` in 4677*GNU*) 4678 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4679*) 4680 ac_count=0 4681 $as_echo_n 0123456789 >"conftest.in" 4682 while : 4683 do 4684 cat "conftest.in" "conftest.in" >"conftest.tmp" 4685 mv "conftest.tmp" "conftest.in" 4686 cp "conftest.in" "conftest.nl" 4687 $as_echo 'GREP' >> "conftest.nl" 4688 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4690 as_fn_arith $ac_count + 1 && ac_count=$as_val 4691 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4692 # Best one so far, save it but keep looking for a better one 4693 ac_cv_path_GREP="$ac_path_GREP" 4694 ac_path_GREP_max=$ac_count 4695 fi 4696 # 10*(2^10) chars as input seems more than enough 4697 test $ac_count -gt 10 && break 4698 done 4699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4700esac 4701 4702 $ac_path_GREP_found && break 3 4703 done 4704 done 4705 done 4706IFS=$as_save_IFS 4707 if test -z "$ac_cv_path_GREP"; then 4708 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4709 fi 4710else 4711 ac_cv_path_GREP=$GREP 4712fi 4713 4714fi 4715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4716$as_echo "$ac_cv_path_GREP" >&6; } 4717 GREP="$ac_cv_path_GREP" 4718 4719 4720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4721$as_echo_n "checking for egrep... " >&6; } 4722if ${ac_cv_path_EGREP+:} false; then : 4723 $as_echo_n "(cached) " >&6 4724else 4725 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4726 then ac_cv_path_EGREP="$GREP -E" 4727 else 4728 if test -z "$EGREP"; then 4729 ac_path_EGREP_found=false 4730 # Loop through the user's path and test for each of PROGNAME-LIST 4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4732for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4733do 4734 IFS=$as_save_IFS 4735 test -z "$as_dir" && as_dir=. 4736 for ac_prog in egrep; do 4737 for ac_exec_ext in '' $ac_executable_extensions; do 4738 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4739 as_fn_executable_p "$ac_path_EGREP" || continue 4740# Check for GNU ac_path_EGREP and select it if it is found. 4741 # Check for GNU $ac_path_EGREP 4742case `"$ac_path_EGREP" --version 2>&1` in 4743*GNU*) 4744 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4745*) 4746 ac_count=0 4747 $as_echo_n 0123456789 >"conftest.in" 4748 while : 4749 do 4750 cat "conftest.in" "conftest.in" >"conftest.tmp" 4751 mv "conftest.tmp" "conftest.in" 4752 cp "conftest.in" "conftest.nl" 4753 $as_echo 'EGREP' >> "conftest.nl" 4754 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4756 as_fn_arith $ac_count + 1 && ac_count=$as_val 4757 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4758 # Best one so far, save it but keep looking for a better one 4759 ac_cv_path_EGREP="$ac_path_EGREP" 4760 ac_path_EGREP_max=$ac_count 4761 fi 4762 # 10*(2^10) chars as input seems more than enough 4763 test $ac_count -gt 10 && break 4764 done 4765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4766esac 4767 4768 $ac_path_EGREP_found && break 3 4769 done 4770 done 4771 done 4772IFS=$as_save_IFS 4773 if test -z "$ac_cv_path_EGREP"; then 4774 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4775 fi 4776else 4777 ac_cv_path_EGREP=$EGREP 4778fi 4779 4780 fi 4781fi 4782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4783$as_echo "$ac_cv_path_EGREP" >&6; } 4784 EGREP="$ac_cv_path_EGREP" 4785 4786 4787 4788# Extract the first word of "sed", so it can be a program name with args. 4789set dummy sed; ac_word=$2 4790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4791$as_echo_n "checking for $ac_word... " >&6; } 4792if ${ac_cv_prog_SED+:} false; then : 4793 $as_echo_n "(cached) " >&6 4794else 4795 if test -n "$SED"; then 4796 ac_cv_prog_SED="$SED" # Let the user override the test. 4797else 4798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4799for as_dir in $PATH 4800do 4801 IFS=$as_save_IFS 4802 test -z "$as_dir" && as_dir=. 4803 for ac_exec_ext in '' $ac_executable_extensions; do 4804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4805 ac_cv_prog_SED="sed" 4806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4807 break 2 4808 fi 4809done 4810 done 4811IFS=$as_save_IFS 4812 4813 test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="/bin/false" 4814fi 4815fi 4816SED=$ac_cv_prog_SED 4817if test -n "$SED"; then 4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 4819$as_echo "$SED" >&6; } 4820else 4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4822$as_echo "no" >&6; } 4823fi 4824 4825 4826 4827# Extract the first word of "pdflatex", so it can be a program name with args. 4828set dummy pdflatex; ac_word=$2 4829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4830$as_echo_n "checking for $ac_word... " >&6; } 4831if ${ac_cv_prog_PDFLATEX+:} false; then : 4832 $as_echo_n "(cached) " >&6 4833else 4834 if test -n "$PDFLATEX"; then 4835 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test. 4836else 4837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4838for as_dir in $PATH 4839do 4840 IFS=$as_save_IFS 4841 test -z "$as_dir" && as_dir=. 4842 for ac_exec_ext in '' $ac_executable_extensions; do 4843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4844 ac_cv_prog_PDFLATEX="pdflatex" 4845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4846 break 2 4847 fi 4848done 4849 done 4850IFS=$as_save_IFS 4851 4852 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX="/bin/false" 4853fi 4854fi 4855PDFLATEX=$ac_cv_prog_PDFLATEX 4856if test -n "$PDFLATEX"; then 4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5 4858$as_echo "$PDFLATEX" >&6; } 4859else 4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4861$as_echo "no" >&6; } 4862fi 4863 4864 4865# Extract the first word of "latexmk", so it can be a program name with args. 4866set dummy latexmk; ac_word=$2 4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4868$as_echo_n "checking for $ac_word... " >&6; } 4869if ${ac_cv_prog_LATEXMK+:} false; then : 4870 $as_echo_n "(cached) " >&6 4871else 4872 if test -n "$LATEXMK"; then 4873 ac_cv_prog_LATEXMK="$LATEXMK" # Let the user override the test. 4874else 4875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4876for as_dir in $PATH 4877do 4878 IFS=$as_save_IFS 4879 test -z "$as_dir" && as_dir=. 4880 for ac_exec_ext in '' $ac_executable_extensions; do 4881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4882 ac_cv_prog_LATEXMK="latexmk" 4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4884 break 2 4885 fi 4886done 4887 done 4888IFS=$as_save_IFS 4889 4890 test -z "$ac_cv_prog_LATEXMK" && ac_cv_prog_LATEXMK="/bin/false" 4891fi 4892fi 4893LATEXMK=$ac_cv_prog_LATEXMK 4894if test -n "$LATEXMK"; then 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEXMK" >&5 4896$as_echo "$LATEXMK" >&6; } 4897else 4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4899$as_echo "no" >&6; } 4900fi 4901 4902 4903if test "x$PDFLATEX" = "x/bin/false" -o "x$LATEXMK" = "x/bin/false"; then 4904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will not be able to make PDF versions of TeX documents" >&5 4905$as_echo "$as_me: WARNING: Will not be able to make PDF versions of TeX documents" >&2;} 4906else 4907 HAVE_LATEX=true 4908fi 4909 if test "x$HAVE_LATEX" = "xtrue"; then 4910 HAVE_LATEX_TRUE= 4911 HAVE_LATEX_FALSE='#' 4912else 4913 HAVE_LATEX_TRUE='#' 4914 HAVE_LATEX_FALSE= 4915fi 4916 4917 4918if test "x${GCC}" = "xyes" ; then 4919 COMPILER="GCC" 4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Intel compiler" >&5 4921$as_echo_n "checking whether we are using the Intel compiler... " >&6; } 4922 4923 4924cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4925/* end confdefs.h. */ 4926__INTEL_COMPILER 4927_ACEOF 4928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4929 $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then : 4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4931$as_echo "no" >&6; } 4932else 4933 COMPILER="ICC" 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4935$as_echo "yes" >&6; } 4936 4937fi 4938rm -f conftest* 4939 4940else 4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SunPro compiler" >&5 4942$as_echo_n "checking whether we are using SunPro compiler... " >&6; } 4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4944/* end confdefs.h. */ 4945"__SUNPRO_C" __SUNPRO_C 4946_ACEOF 4947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4948 $EGREP "^__SUNPRO_C.*0x5(7|8|9)" >/dev/null 2>&1; then : 4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4950$as_echo "no" >&6; } 4951else 4952 COMPILER="SUNPRO" 4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4954$as_echo "yes" >&6; } 4955 4956fi 4957rm -f conftest* 4958 4959fi 4960 4961 4962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set a default CFLAGS" >&5 4963$as_echo_n "checking whether to set a default CFLAGS... " >&6; } 4964if test "x${cflags_specified}" = "x" ; then 4965 case ${COMPILER} in 4966 "ICC") 4967 CFLAGS="-Os -g -Wall" 4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Intel default" >&5 4969$as_echo "Intel default" >&6; } 4970 ;; 4971 "GCC") 4972 CFLAGS="-Os -fno-omit-frame-pointer -g -std=gnu99 -Wall" 4973 CFLAGS="${CFLAGS} -Wsign-compare -Wpointer-arith" 4974 CFLAGS="${CFLAGS} -Wbad-function-cast -Wwrite-strings" 4975 CFLAGS="${CFLAGS} -Wmissing-prototypes -Wmissing-declarations" 4976 CFLAGS="${CFLAGS} -Wchar-subscripts -Wcast-qual" 4977 # TODO: conditionally addd -Wpacked if handled 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc default" >&5 4979$as_echo "gcc default" >&6; } 4980 ;; 4981 "SUNPRO") 4982 CFLAGS="-xO4 -v -g -xspace -xcode=pic32 -xstrconst -xc99" 4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunPro default" >&5 4984$as_echo "SunPro default" >&6; } 4985 ;; 4986 *) 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown compiler" >&5 4988$as_echo "unknown compiler" >&6; } 4989 ;; 4990 esac 4991else 4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CFLAGS supplied by user" >&5 4993$as_echo "CFLAGS supplied by user" >&6; } 4994fi 4995 4996 4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4998$as_echo_n "checking whether ln -s works... " >&6; } 4999LN_S=$as_ln_s 5000if test "$LN_S" = "ln -s"; then 5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5002$as_echo "yes" >&6; } 5003else 5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5005$as_echo "no, using $LN_S" >&6; } 5006fi 5007 5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5009$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5010set x ${MAKE-make} 5011ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5012if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 5013 $as_echo_n "(cached) " >&6 5014else 5015 cat >conftest.make <<\_ACEOF 5016SHELL = /bin/sh 5017all: 5018 @echo '@@@%%%=$(MAKE)=@@@%%%' 5019_ACEOF 5020# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5021case `${MAKE-make} -f conftest.make 2>/dev/null` in 5022 *@@@%%%=?*=@@@%%%*) 5023 eval ac_cv_prog_make_${ac_make}_set=yes;; 5024 *) 5025 eval ac_cv_prog_make_${ac_make}_set=no;; 5026esac 5027rm -f conftest.make 5028fi 5029if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5031$as_echo "yes" >&6; } 5032 SET_MAKE= 5033else 5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5035$as_echo "no" >&6; } 5036 SET_MAKE="MAKE=${MAKE-make}" 5037fi 5038 5039if test -n "$ac_tool_prefix"; then 5040 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5041set dummy ${ac_tool_prefix}ar; ac_word=$2 5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5043$as_echo_n "checking for $ac_word... " >&6; } 5044if ${ac_cv_prog_AR+:} false; then : 5045 $as_echo_n "(cached) " >&6 5046else 5047 if test -n "$AR"; then 5048 ac_cv_prog_AR="$AR" # Let the user override the test. 5049else 5050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5051for as_dir in $PATH 5052do 5053 IFS=$as_save_IFS 5054 test -z "$as_dir" && as_dir=. 5055 for ac_exec_ext in '' $ac_executable_extensions; do 5056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5057 ac_cv_prog_AR="${ac_tool_prefix}ar" 5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5059 break 2 5060 fi 5061done 5062 done 5063IFS=$as_save_IFS 5064 5065fi 5066fi 5067AR=$ac_cv_prog_AR 5068if test -n "$AR"; then 5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5070$as_echo "$AR" >&6; } 5071else 5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5073$as_echo "no" >&6; } 5074fi 5075 5076 5077fi 5078if test -z "$ac_cv_prog_AR"; then 5079 ac_ct_AR=$AR 5080 # Extract the first word of "ar", so it can be a program name with args. 5081set dummy ar; ac_word=$2 5082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5083$as_echo_n "checking for $ac_word... " >&6; } 5084if ${ac_cv_prog_ac_ct_AR+:} false; then : 5085 $as_echo_n "(cached) " >&6 5086else 5087 if test -n "$ac_ct_AR"; then 5088 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5089else 5090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5091for as_dir in $PATH 5092do 5093 IFS=$as_save_IFS 5094 test -z "$as_dir" && as_dir=. 5095 for ac_exec_ext in '' $ac_executable_extensions; do 5096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5097 ac_cv_prog_ac_ct_AR="ar" 5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5099 break 2 5100 fi 5101done 5102 done 5103IFS=$as_save_IFS 5104 5105fi 5106fi 5107ac_ct_AR=$ac_cv_prog_ac_ct_AR 5108if test -n "$ac_ct_AR"; then 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5110$as_echo "$ac_ct_AR" >&6; } 5111else 5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5113$as_echo "no" >&6; } 5114fi 5115 5116 if test "x$ac_ct_AR" = x; then 5117 AR="" 5118 else 5119 case $cross_compiling:$ac_tool_warned in 5120yes:) 5121{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5123ac_tool_warned=yes ;; 5124esac 5125 AR=$ac_ct_AR 5126 fi 5127else 5128 AR="$ac_cv_prog_AR" 5129fi 5130 5131 5132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE-make} is GNU make" >&5 5133$as_echo_n "checking if ${MAKE-make} is GNU make... " >&6; } 5134if ${quagga_cv_gnu_make+:} false; then : 5135 $as_echo_n "(cached) " >&6 5136else 5137 quagga_cv_gnu_make=no 5138 if ${MAKE-make} --version 2>/dev/null | \ 5139 grep '^GNU Make ' >/dev/null ; then 5140 quagga_cv_gnu_make=yes; 5141 fi 5142 5143 5144fi 5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quagga_cv_gnu_make" >&5 5146$as_echo "$quagga_cv_gnu_make" >&6; } 5147 5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5149$as_echo_n "checking for ANSI C header files... " >&6; } 5150if ${ac_cv_header_stdc+:} false; then : 5151 $as_echo_n "(cached) " >&6 5152else 5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5154/* end confdefs.h. */ 5155#include <stdlib.h> 5156#include <stdarg.h> 5157#include <string.h> 5158#include <float.h> 5159 5160int 5161main () 5162{ 5163 5164 ; 5165 return 0; 5166} 5167_ACEOF 5168if ac_fn_c_try_compile "$LINENO"; then : 5169 ac_cv_header_stdc=yes 5170else 5171 ac_cv_header_stdc=no 5172fi 5173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5174 5175if test $ac_cv_header_stdc = yes; then 5176 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5178/* end confdefs.h. */ 5179#include <string.h> 5180 5181_ACEOF 5182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5183 $EGREP "memchr" >/dev/null 2>&1; then : 5184 5185else 5186 ac_cv_header_stdc=no 5187fi 5188rm -f conftest* 5189 5190fi 5191 5192if test $ac_cv_header_stdc = yes; then 5193 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5195/* end confdefs.h. */ 5196#include <stdlib.h> 5197 5198_ACEOF 5199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5200 $EGREP "free" >/dev/null 2>&1; then : 5201 5202else 5203 ac_cv_header_stdc=no 5204fi 5205rm -f conftest* 5206 5207fi 5208 5209if test $ac_cv_header_stdc = yes; then 5210 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5211 if test "$cross_compiling" = yes; then : 5212 : 5213else 5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5215/* end confdefs.h. */ 5216#include <ctype.h> 5217#include <stdlib.h> 5218#if ((' ' & 0x0FF) == 0x020) 5219# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5220# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5221#else 5222# define ISLOWER(c) \ 5223 (('a' <= (c) && (c) <= 'i') \ 5224 || ('j' <= (c) && (c) <= 'r') \ 5225 || ('s' <= (c) && (c) <= 'z')) 5226# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5227#endif 5228 5229#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5230int 5231main () 5232{ 5233 int i; 5234 for (i = 0; i < 256; i++) 5235 if (XOR (islower (i), ISLOWER (i)) 5236 || toupper (i) != TOUPPER (i)) 5237 return 2; 5238 return 0; 5239} 5240_ACEOF 5241if ac_fn_c_try_run "$LINENO"; then : 5242 5243else 5244 ac_cv_header_stdc=no 5245fi 5246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5247 conftest.$ac_objext conftest.beam conftest.$ac_ext 5248fi 5249 5250fi 5251fi 5252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5253$as_echo "$ac_cv_header_stdc" >&6; } 5254if test $ac_cv_header_stdc = yes; then 5255 5256$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5257 5258fi 5259 5260# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5261for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5262 inttypes.h stdint.h unistd.h 5263do : 5264 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5265ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5266" 5267if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5268 cat >>confdefs.h <<_ACEOF 5269#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5270_ACEOF 5271 5272fi 5273 5274done 5275 5276 5277 5278 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5279if test "x$ac_cv_header_minix_config_h" = xyes; then : 5280 MINIX=yes 5281else 5282 MINIX= 5283fi 5284 5285 5286 if test "$MINIX" = yes; then 5287 5288$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5289 5290 5291$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5292 5293 5294$as_echo "#define _MINIX 1" >>confdefs.h 5295 5296 fi 5297 5298 5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5300$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5301if ${ac_cv_safe_to_define___extensions__+:} false; then : 5302 $as_echo_n "(cached) " >&6 5303else 5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5305/* end confdefs.h. */ 5306 5307# define __EXTENSIONS__ 1 5308 $ac_includes_default 5309int 5310main () 5311{ 5312 5313 ; 5314 return 0; 5315} 5316_ACEOF 5317if ac_fn_c_try_compile "$LINENO"; then : 5318 ac_cv_safe_to_define___extensions__=yes 5319else 5320 ac_cv_safe_to_define___extensions__=no 5321fi 5322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5323fi 5324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5325$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5326 test $ac_cv_safe_to_define___extensions__ = yes && 5327 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5328 5329 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5330 5331 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5332 5333 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5334 5335 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5336 5337 5338 5339 5340case `pwd` in 5341 *\ * | *\ *) 5342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5343$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5344esac 5345 5346 5347 5348macro_version='2.4.6' 5349macro_revision='2.4.6' 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363ltmain=$ac_aux_dir/ltmain.sh 5364 5365# Backslashify metacharacters that are still active within 5366# double-quoted strings. 5367sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5368 5369# Same as above, but do not quote variable references. 5370double_quote_subst='s/\(["`\\]\)/\\\1/g' 5371 5372# Sed substitution to delay expansion of an escaped shell variable in a 5373# double_quote_subst'ed string. 5374delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5375 5376# Sed substitution to delay expansion of an escaped single quote. 5377delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5378 5379# Sed substitution to avoid accidental globbing in evaled expressions 5380no_glob_subst='s/\*/\\\*/g' 5381 5382ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5383ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5384ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5385 5386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5387$as_echo_n "checking how to print strings... " >&6; } 5388# Test print first, because it will be a builtin if present. 5389if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5390 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5391 ECHO='print -r --' 5392elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5393 ECHO='printf %s\n' 5394else 5395 # Use this function as a fallback that always works. 5396 func_fallback_echo () 5397 { 5398 eval 'cat <<_LTECHO_EOF 5399$1 5400_LTECHO_EOF' 5401 } 5402 ECHO='func_fallback_echo' 5403fi 5404 5405# func_echo_all arg... 5406# Invoke $ECHO with all args, space-separated. 5407func_echo_all () 5408{ 5409 $ECHO "" 5410} 5411 5412case $ECHO in 5413 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5414$as_echo "printf" >&6; } ;; 5415 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5416$as_echo "print -r" >&6; } ;; 5417 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5418$as_echo "cat" >&6; } ;; 5419esac 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5435$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5436if ${ac_cv_path_SED+:} false; then : 5437 $as_echo_n "(cached) " >&6 5438else 5439 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5440 for ac_i in 1 2 3 4 5 6 7; do 5441 ac_script="$ac_script$as_nl$ac_script" 5442 done 5443 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5444 { ac_script=; unset ac_script;} 5445 if test -z "$SED"; then 5446 ac_path_SED_found=false 5447 # Loop through the user's path and test for each of PROGNAME-LIST 5448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5449for as_dir in $PATH 5450do 5451 IFS=$as_save_IFS 5452 test -z "$as_dir" && as_dir=. 5453 for ac_prog in sed gsed; do 5454 for ac_exec_ext in '' $ac_executable_extensions; do 5455 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5456 as_fn_executable_p "$ac_path_SED" || continue 5457# Check for GNU ac_path_SED and select it if it is found. 5458 # Check for GNU $ac_path_SED 5459case `"$ac_path_SED" --version 2>&1` in 5460*GNU*) 5461 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5462*) 5463 ac_count=0 5464 $as_echo_n 0123456789 >"conftest.in" 5465 while : 5466 do 5467 cat "conftest.in" "conftest.in" >"conftest.tmp" 5468 mv "conftest.tmp" "conftest.in" 5469 cp "conftest.in" "conftest.nl" 5470 $as_echo '' >> "conftest.nl" 5471 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5472 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5473 as_fn_arith $ac_count + 1 && ac_count=$as_val 5474 if test $ac_count -gt ${ac_path_SED_max-0}; then 5475 # Best one so far, save it but keep looking for a better one 5476 ac_cv_path_SED="$ac_path_SED" 5477 ac_path_SED_max=$ac_count 5478 fi 5479 # 10*(2^10) chars as input seems more than enough 5480 test $ac_count -gt 10 && break 5481 done 5482 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5483esac 5484 5485 $ac_path_SED_found && break 3 5486 done 5487 done 5488 done 5489IFS=$as_save_IFS 5490 if test -z "$ac_cv_path_SED"; then 5491 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5492 fi 5493else 5494 ac_cv_path_SED=$SED 5495fi 5496 5497fi 5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5499$as_echo "$ac_cv_path_SED" >&6; } 5500 SED="$ac_cv_path_SED" 5501 rm -f conftest.sed 5502 5503test -z "$SED" && SED=sed 5504Xsed="$SED -e 1s/^X//" 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5517$as_echo_n "checking for fgrep... " >&6; } 5518if ${ac_cv_path_FGREP+:} false; then : 5519 $as_echo_n "(cached) " >&6 5520else 5521 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5522 then ac_cv_path_FGREP="$GREP -F" 5523 else 5524 if test -z "$FGREP"; then 5525 ac_path_FGREP_found=false 5526 # Loop through the user's path and test for each of PROGNAME-LIST 5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5528for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5529do 5530 IFS=$as_save_IFS 5531 test -z "$as_dir" && as_dir=. 5532 for ac_prog in fgrep; do 5533 for ac_exec_ext in '' $ac_executable_extensions; do 5534 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5535 as_fn_executable_p "$ac_path_FGREP" || continue 5536# Check for GNU ac_path_FGREP and select it if it is found. 5537 # Check for GNU $ac_path_FGREP 5538case `"$ac_path_FGREP" --version 2>&1` in 5539*GNU*) 5540 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5541*) 5542 ac_count=0 5543 $as_echo_n 0123456789 >"conftest.in" 5544 while : 5545 do 5546 cat "conftest.in" "conftest.in" >"conftest.tmp" 5547 mv "conftest.tmp" "conftest.in" 5548 cp "conftest.in" "conftest.nl" 5549 $as_echo 'FGREP' >> "conftest.nl" 5550 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5551 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5552 as_fn_arith $ac_count + 1 && ac_count=$as_val 5553 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5554 # Best one so far, save it but keep looking for a better one 5555 ac_cv_path_FGREP="$ac_path_FGREP" 5556 ac_path_FGREP_max=$ac_count 5557 fi 5558 # 10*(2^10) chars as input seems more than enough 5559 test $ac_count -gt 10 && break 5560 done 5561 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5562esac 5563 5564 $ac_path_FGREP_found && break 3 5565 done 5566 done 5567 done 5568IFS=$as_save_IFS 5569 if test -z "$ac_cv_path_FGREP"; then 5570 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5571 fi 5572else 5573 ac_cv_path_FGREP=$FGREP 5574fi 5575 5576 fi 5577fi 5578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5579$as_echo "$ac_cv_path_FGREP" >&6; } 5580 FGREP="$ac_cv_path_FGREP" 5581 5582 5583test -z "$GREP" && GREP=grep 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603# Check whether --with-gnu-ld was given. 5604if test "${with_gnu_ld+set}" = set; then : 5605 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5606else 5607 with_gnu_ld=no 5608fi 5609 5610ac_prog=ld 5611if test yes = "$GCC"; then 5612 # Check if gcc -print-prog-name=ld gives a path. 5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5614$as_echo_n "checking for ld used by $CC... " >&6; } 5615 case $host in 5616 *-*-mingw*) 5617 # gcc leaves a trailing carriage return, which upsets mingw 5618 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5619 *) 5620 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5621 esac 5622 case $ac_prog in 5623 # Accept absolute paths. 5624 [\\/]* | ?:[\\/]*) 5625 re_direlt='/[^/][^/]*/\.\./' 5626 # Canonicalize the pathname of ld 5627 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5628 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5629 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5630 done 5631 test -z "$LD" && LD=$ac_prog 5632 ;; 5633 "") 5634 # If it fails, then pretend we aren't using GCC. 5635 ac_prog=ld 5636 ;; 5637 *) 5638 # If it is relative, then search for the first ld in PATH. 5639 with_gnu_ld=unknown 5640 ;; 5641 esac 5642elif test yes = "$with_gnu_ld"; then 5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5644$as_echo_n "checking for GNU ld... " >&6; } 5645else 5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5647$as_echo_n "checking for non-GNU ld... " >&6; } 5648fi 5649if ${lt_cv_path_LD+:} false; then : 5650 $as_echo_n "(cached) " >&6 5651else 5652 if test -z "$LD"; then 5653 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5654 for ac_dir in $PATH; do 5655 IFS=$lt_save_ifs 5656 test -z "$ac_dir" && ac_dir=. 5657 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5658 lt_cv_path_LD=$ac_dir/$ac_prog 5659 # Check to see if the program is GNU ld. I'd rather use --version, 5660 # but apparently some variants of GNU ld only accept -v. 5661 # Break only if it was the GNU/non-GNU ld that we prefer. 5662 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5663 *GNU* | *'with BFD'*) 5664 test no != "$with_gnu_ld" && break 5665 ;; 5666 *) 5667 test yes != "$with_gnu_ld" && break 5668 ;; 5669 esac 5670 fi 5671 done 5672 IFS=$lt_save_ifs 5673else 5674 lt_cv_path_LD=$LD # Let the user override the test with a path. 5675fi 5676fi 5677 5678LD=$lt_cv_path_LD 5679if test -n "$LD"; then 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5681$as_echo "$LD" >&6; } 5682else 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5684$as_echo "no" >&6; } 5685fi 5686test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5688$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5689if ${lt_cv_prog_gnu_ld+:} false; then : 5690 $as_echo_n "(cached) " >&6 5691else 5692 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5693case `$LD -v 2>&1 </dev/null` in 5694*GNU* | *'with BFD'*) 5695 lt_cv_prog_gnu_ld=yes 5696 ;; 5697*) 5698 lt_cv_prog_gnu_ld=no 5699 ;; 5700esac 5701fi 5702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5703$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5704with_gnu_ld=$lt_cv_prog_gnu_ld 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5715$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5716if ${lt_cv_path_NM+:} false; then : 5717 $as_echo_n "(cached) " >&6 5718else 5719 if test -n "$NM"; then 5720 # Let the user override the test. 5721 lt_cv_path_NM=$NM 5722else 5723 lt_nm_to_check=${ac_tool_prefix}nm 5724 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5725 lt_nm_to_check="$lt_nm_to_check nm" 5726 fi 5727 for lt_tmp_nm in $lt_nm_to_check; do 5728 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5729 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5730 IFS=$lt_save_ifs 5731 test -z "$ac_dir" && ac_dir=. 5732 tmp_nm=$ac_dir/$lt_tmp_nm 5733 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5734 # Check to see if the nm accepts a BSD-compat flag. 5735 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5736 # nm: unknown option "B" ignored 5737 # Tru64's nm complains that /dev/null is an invalid object file 5738 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5739 case $build_os in 5740 mingw*) lt_bad_file=conftest.nm/nofile ;; 5741 *) lt_bad_file=/dev/null ;; 5742 esac 5743 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5744 *$lt_bad_file* | *'Invalid file or object type'*) 5745 lt_cv_path_NM="$tmp_nm -B" 5746 break 2 5747 ;; 5748 *) 5749 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5750 */dev/null*) 5751 lt_cv_path_NM="$tmp_nm -p" 5752 break 2 5753 ;; 5754 *) 5755 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5756 continue # so that we can try to find one that supports BSD flags 5757 ;; 5758 esac 5759 ;; 5760 esac 5761 fi 5762 done 5763 IFS=$lt_save_ifs 5764 done 5765 : ${lt_cv_path_NM=no} 5766fi 5767fi 5768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5769$as_echo "$lt_cv_path_NM" >&6; } 5770if test no != "$lt_cv_path_NM"; then 5771 NM=$lt_cv_path_NM 5772else 5773 # Didn't find any BSD compatible name lister, look for dumpbin. 5774 if test -n "$DUMPBIN"; then : 5775 # Let the user override the test. 5776 else 5777 if test -n "$ac_tool_prefix"; then 5778 for ac_prog in dumpbin "link -dump" 5779 do 5780 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5781set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5783$as_echo_n "checking for $ac_word... " >&6; } 5784if ${ac_cv_prog_DUMPBIN+:} false; then : 5785 $as_echo_n "(cached) " >&6 5786else 5787 if test -n "$DUMPBIN"; then 5788 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5789else 5790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5791for as_dir in $PATH 5792do 5793 IFS=$as_save_IFS 5794 test -z "$as_dir" && as_dir=. 5795 for ac_exec_ext in '' $ac_executable_extensions; do 5796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5797 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5799 break 2 5800 fi 5801done 5802 done 5803IFS=$as_save_IFS 5804 5805fi 5806fi 5807DUMPBIN=$ac_cv_prog_DUMPBIN 5808if test -n "$DUMPBIN"; then 5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5810$as_echo "$DUMPBIN" >&6; } 5811else 5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5813$as_echo "no" >&6; } 5814fi 5815 5816 5817 test -n "$DUMPBIN" && break 5818 done 5819fi 5820if test -z "$DUMPBIN"; then 5821 ac_ct_DUMPBIN=$DUMPBIN 5822 for ac_prog in dumpbin "link -dump" 5823do 5824 # Extract the first word of "$ac_prog", so it can be a program name with args. 5825set dummy $ac_prog; ac_word=$2 5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5827$as_echo_n "checking for $ac_word... " >&6; } 5828if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5829 $as_echo_n "(cached) " >&6 5830else 5831 if test -n "$ac_ct_DUMPBIN"; then 5832 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5833else 5834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5835for as_dir in $PATH 5836do 5837 IFS=$as_save_IFS 5838 test -z "$as_dir" && as_dir=. 5839 for ac_exec_ext in '' $ac_executable_extensions; do 5840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5841 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5843 break 2 5844 fi 5845done 5846 done 5847IFS=$as_save_IFS 5848 5849fi 5850fi 5851ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5852if test -n "$ac_ct_DUMPBIN"; then 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5854$as_echo "$ac_ct_DUMPBIN" >&6; } 5855else 5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5857$as_echo "no" >&6; } 5858fi 5859 5860 5861 test -n "$ac_ct_DUMPBIN" && break 5862done 5863 5864 if test "x$ac_ct_DUMPBIN" = x; then 5865 DUMPBIN=":" 5866 else 5867 case $cross_compiling:$ac_tool_warned in 5868yes:) 5869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5871ac_tool_warned=yes ;; 5872esac 5873 DUMPBIN=$ac_ct_DUMPBIN 5874 fi 5875fi 5876 5877 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5878 *COFF*) 5879 DUMPBIN="$DUMPBIN -symbols -headers" 5880 ;; 5881 *) 5882 DUMPBIN=: 5883 ;; 5884 esac 5885 fi 5886 5887 if test : != "$DUMPBIN"; then 5888 NM=$DUMPBIN 5889 fi 5890fi 5891test -z "$NM" && NM=nm 5892 5893 5894 5895 5896 5897 5898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5899$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5900if ${lt_cv_nm_interface+:} false; then : 5901 $as_echo_n "(cached) " >&6 5902else 5903 lt_cv_nm_interface="BSD nm" 5904 echo "int some_variable = 0;" > conftest.$ac_ext 5905 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5906 (eval "$ac_compile" 2>conftest.err) 5907 cat conftest.err >&5 5908 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5909 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5910 cat conftest.err >&5 5911 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5912 cat conftest.out >&5 5913 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5914 lt_cv_nm_interface="MS dumpbin" 5915 fi 5916 rm -f conftest* 5917fi 5918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5919$as_echo "$lt_cv_nm_interface" >&6; } 5920 5921# find the maximum length of command line arguments 5922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5923$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5924if ${lt_cv_sys_max_cmd_len+:} false; then : 5925 $as_echo_n "(cached) " >&6 5926else 5927 i=0 5928 teststring=ABCD 5929 5930 case $build_os in 5931 msdosdjgpp*) 5932 # On DJGPP, this test can blow up pretty badly due to problems in libc 5933 # (any single argument exceeding 2000 bytes causes a buffer overrun 5934 # during glob expansion). Even if it were fixed, the result of this 5935 # check would be larger than it should be. 5936 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5937 ;; 5938 5939 gnu*) 5940 # Under GNU Hurd, this test is not required because there is 5941 # no limit to the length of command line arguments. 5942 # Libtool will interpret -1 as no limit whatsoever 5943 lt_cv_sys_max_cmd_len=-1; 5944 ;; 5945 5946 cygwin* | mingw* | cegcc*) 5947 # On Win9x/ME, this test blows up -- it succeeds, but takes 5948 # about 5 minutes as the teststring grows exponentially. 5949 # Worse, since 9x/ME are not pre-emptively multitasking, 5950 # you end up with a "frozen" computer, even though with patience 5951 # the test eventually succeeds (with a max line length of 256k). 5952 # Instead, let's just punt: use the minimum linelength reported by 5953 # all of the supported platforms: 8192 (on NT/2K/XP). 5954 lt_cv_sys_max_cmd_len=8192; 5955 ;; 5956 5957 mint*) 5958 # On MiNT this can take a long time and run out of memory. 5959 lt_cv_sys_max_cmd_len=8192; 5960 ;; 5961 5962 amigaos*) 5963 # On AmigaOS with pdksh, this test takes hours, literally. 5964 # So we just punt and use a minimum line length of 8192. 5965 lt_cv_sys_max_cmd_len=8192; 5966 ;; 5967 5968 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5969 # This has been around since 386BSD, at least. Likely further. 5970 if test -x /sbin/sysctl; then 5971 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5972 elif test -x /usr/sbin/sysctl; then 5973 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5974 else 5975 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5976 fi 5977 # And add a safety zone 5978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5979 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5980 ;; 5981 5982 interix*) 5983 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5984 lt_cv_sys_max_cmd_len=196608 5985 ;; 5986 5987 os2*) 5988 # The test takes a long time on OS/2. 5989 lt_cv_sys_max_cmd_len=8192 5990 ;; 5991 5992 osf*) 5993 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5994 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5995 # nice to cause kernel panics so lets avoid the loop below. 5996 # First set a reasonable default. 5997 lt_cv_sys_max_cmd_len=16384 5998 # 5999 if test -x /sbin/sysconfig; then 6000 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6001 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6002 esac 6003 fi 6004 ;; 6005 sco3.2v5*) 6006 lt_cv_sys_max_cmd_len=102400 6007 ;; 6008 sysv5* | sco5v6* | sysv4.2uw2*) 6009 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6010 if test -n "$kargmax"; then 6011 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6012 else 6013 lt_cv_sys_max_cmd_len=32768 6014 fi 6015 ;; 6016 *) 6017 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6018 if test -n "$lt_cv_sys_max_cmd_len" && \ 6019 test undefined != "$lt_cv_sys_max_cmd_len"; then 6020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6022 else 6023 # Make teststring a little bigger before we do anything with it. 6024 # a 1K string should be a reasonable start. 6025 for i in 1 2 3 4 5 6 7 8; do 6026 teststring=$teststring$teststring 6027 done 6028 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6029 # If test is not a shell built-in, we'll probably end up computing a 6030 # maximum length that is only half of the actual maximum length, but 6031 # we can't tell. 6032 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6033 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6034 test 17 != "$i" # 1/2 MB should be enough 6035 do 6036 i=`expr $i + 1` 6037 teststring=$teststring$teststring 6038 done 6039 # Only check the string length outside the loop. 6040 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6041 teststring= 6042 # Add a significant safety factor because C++ compilers can tack on 6043 # massive amounts of additional arguments before passing them to the 6044 # linker. It appears as though 1/2 is a usable value. 6045 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6046 fi 6047 ;; 6048 esac 6049 6050fi 6051 6052if test -n "$lt_cv_sys_max_cmd_len"; then 6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6054$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6055else 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6057$as_echo "none" >&6; } 6058fi 6059max_cmd_len=$lt_cv_sys_max_cmd_len 6060 6061 6062 6063 6064 6065 6066: ${CP="cp -f"} 6067: ${MV="mv -f"} 6068: ${RM="rm -f"} 6069 6070if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6071 lt_unset=unset 6072else 6073 lt_unset=false 6074fi 6075 6076 6077 6078 6079 6080# test EBCDIC or ASCII 6081case `echo X|tr X '\101'` in 6082 A) # ASCII based system 6083 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6084 lt_SP2NL='tr \040 \012' 6085 lt_NL2SP='tr \015\012 \040\040' 6086 ;; 6087 *) # EBCDIC based system 6088 lt_SP2NL='tr \100 \n' 6089 lt_NL2SP='tr \r\n \100\100' 6090 ;; 6091esac 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6102$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6103if ${lt_cv_to_host_file_cmd+:} false; then : 6104 $as_echo_n "(cached) " >&6 6105else 6106 case $host in 6107 *-*-mingw* ) 6108 case $build in 6109 *-*-mingw* ) # actually msys 6110 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6111 ;; 6112 *-*-cygwin* ) 6113 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6114 ;; 6115 * ) # otherwise, assume *nix 6116 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6117 ;; 6118 esac 6119 ;; 6120 *-*-cygwin* ) 6121 case $build in 6122 *-*-mingw* ) # actually msys 6123 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6124 ;; 6125 *-*-cygwin* ) 6126 lt_cv_to_host_file_cmd=func_convert_file_noop 6127 ;; 6128 * ) # otherwise, assume *nix 6129 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6130 ;; 6131 esac 6132 ;; 6133 * ) # unhandled hosts (and "normal" native builds) 6134 lt_cv_to_host_file_cmd=func_convert_file_noop 6135 ;; 6136esac 6137 6138fi 6139 6140to_host_file_cmd=$lt_cv_to_host_file_cmd 6141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6142$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6143 6144 6145 6146 6147 6148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6149$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6150if ${lt_cv_to_tool_file_cmd+:} false; then : 6151 $as_echo_n "(cached) " >&6 6152else 6153 #assume ordinary cross tools, or native build. 6154lt_cv_to_tool_file_cmd=func_convert_file_noop 6155case $host in 6156 *-*-mingw* ) 6157 case $build in 6158 *-*-mingw* ) # actually msys 6159 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6160 ;; 6161 esac 6162 ;; 6163esac 6164 6165fi 6166 6167to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6169$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6170 6171 6172 6173 6174 6175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6176$as_echo_n "checking for $LD option to reload object files... " >&6; } 6177if ${lt_cv_ld_reload_flag+:} false; then : 6178 $as_echo_n "(cached) " >&6 6179else 6180 lt_cv_ld_reload_flag='-r' 6181fi 6182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6183$as_echo "$lt_cv_ld_reload_flag" >&6; } 6184reload_flag=$lt_cv_ld_reload_flag 6185case $reload_flag in 6186"" | " "*) ;; 6187*) reload_flag=" $reload_flag" ;; 6188esac 6189reload_cmds='$LD$reload_flag -o $output$reload_objs' 6190case $host_os in 6191 cygwin* | mingw* | pw32* | cegcc*) 6192 if test yes != "$GCC"; then 6193 reload_cmds=false 6194 fi 6195 ;; 6196 darwin*) 6197 if test yes = "$GCC"; then 6198 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6199 else 6200 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6201 fi 6202 ;; 6203esac 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213if test -n "$ac_tool_prefix"; then 6214 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6215set dummy ${ac_tool_prefix}objdump; ac_word=$2 6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6217$as_echo_n "checking for $ac_word... " >&6; } 6218if ${ac_cv_prog_OBJDUMP+:} false; then : 6219 $as_echo_n "(cached) " >&6 6220else 6221 if test -n "$OBJDUMP"; then 6222 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6223else 6224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6225for as_dir in $PATH 6226do 6227 IFS=$as_save_IFS 6228 test -z "$as_dir" && as_dir=. 6229 for ac_exec_ext in '' $ac_executable_extensions; do 6230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6231 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6233 break 2 6234 fi 6235done 6236 done 6237IFS=$as_save_IFS 6238 6239fi 6240fi 6241OBJDUMP=$ac_cv_prog_OBJDUMP 6242if test -n "$OBJDUMP"; then 6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6244$as_echo "$OBJDUMP" >&6; } 6245else 6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6247$as_echo "no" >&6; } 6248fi 6249 6250 6251fi 6252if test -z "$ac_cv_prog_OBJDUMP"; then 6253 ac_ct_OBJDUMP=$OBJDUMP 6254 # Extract the first word of "objdump", so it can be a program name with args. 6255set dummy objdump; ac_word=$2 6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6257$as_echo_n "checking for $ac_word... " >&6; } 6258if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6259 $as_echo_n "(cached) " >&6 6260else 6261 if test -n "$ac_ct_OBJDUMP"; then 6262 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6263else 6264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6265for as_dir in $PATH 6266do 6267 IFS=$as_save_IFS 6268 test -z "$as_dir" && as_dir=. 6269 for ac_exec_ext in '' $ac_executable_extensions; do 6270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6271 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6273 break 2 6274 fi 6275done 6276 done 6277IFS=$as_save_IFS 6278 6279fi 6280fi 6281ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6282if test -n "$ac_ct_OBJDUMP"; then 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6284$as_echo "$ac_ct_OBJDUMP" >&6; } 6285else 6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6287$as_echo "no" >&6; } 6288fi 6289 6290 if test "x$ac_ct_OBJDUMP" = x; then 6291 OBJDUMP="false" 6292 else 6293 case $cross_compiling:$ac_tool_warned in 6294yes:) 6295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6297ac_tool_warned=yes ;; 6298esac 6299 OBJDUMP=$ac_ct_OBJDUMP 6300 fi 6301else 6302 OBJDUMP="$ac_cv_prog_OBJDUMP" 6303fi 6304 6305test -z "$OBJDUMP" && OBJDUMP=objdump 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6316$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6317if ${lt_cv_deplibs_check_method+:} false; then : 6318 $as_echo_n "(cached) " >&6 6319else 6320 lt_cv_file_magic_cmd='$MAGIC_CMD' 6321lt_cv_file_magic_test_file= 6322lt_cv_deplibs_check_method='unknown' 6323# Need to set the preceding variable on all platforms that support 6324# interlibrary dependencies. 6325# 'none' -- dependencies not supported. 6326# 'unknown' -- same as none, but documents that we really don't know. 6327# 'pass_all' -- all dependencies passed with no checks. 6328# 'test_compile' -- check by making test program. 6329# 'file_magic [[regex]]' -- check by looking for files in library path 6330# that responds to the $file_magic_cmd with a given extended regex. 6331# If you have 'file' or equivalent on your system and you're not sure 6332# whether 'pass_all' will *always* work, you probably want this one. 6333 6334case $host_os in 6335aix[4-9]*) 6336 lt_cv_deplibs_check_method=pass_all 6337 ;; 6338 6339beos*) 6340 lt_cv_deplibs_check_method=pass_all 6341 ;; 6342 6343bsdi[45]*) 6344 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6345 lt_cv_file_magic_cmd='/usr/bin/file -L' 6346 lt_cv_file_magic_test_file=/shlib/libc.so 6347 ;; 6348 6349cygwin*) 6350 # func_win32_libid is a shell function defined in ltmain.sh 6351 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6352 lt_cv_file_magic_cmd='func_win32_libid' 6353 ;; 6354 6355mingw* | pw32*) 6356 # Base MSYS/MinGW do not provide the 'file' command needed by 6357 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6358 # unless we find 'file', for example because we are cross-compiling. 6359 if ( file / ) >/dev/null 2>&1; then 6360 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6361 lt_cv_file_magic_cmd='func_win32_libid' 6362 else 6363 # Keep this pattern in sync with the one in func_win32_libid. 6364 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6365 lt_cv_file_magic_cmd='$OBJDUMP -f' 6366 fi 6367 ;; 6368 6369cegcc*) 6370 # use the weaker test based on 'objdump'. See mingw*. 6371 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6372 lt_cv_file_magic_cmd='$OBJDUMP -f' 6373 ;; 6374 6375darwin* | rhapsody*) 6376 lt_cv_deplibs_check_method=pass_all 6377 ;; 6378 6379freebsd* | dragonfly*) 6380 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6381 case $host_cpu in 6382 i*86 ) 6383 # Not sure whether the presence of OpenBSD here was a mistake. 6384 # Let's accept both of them until this is cleared up. 6385 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6386 lt_cv_file_magic_cmd=/usr/bin/file 6387 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6388 ;; 6389 esac 6390 else 6391 lt_cv_deplibs_check_method=pass_all 6392 fi 6393 ;; 6394 6395haiku*) 6396 lt_cv_deplibs_check_method=pass_all 6397 ;; 6398 6399hpux10.20* | hpux11*) 6400 lt_cv_file_magic_cmd=/usr/bin/file 6401 case $host_cpu in 6402 ia64*) 6403 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6404 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6405 ;; 6406 hppa*64*) 6407 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 6408 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6409 ;; 6410 *) 6411 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6412 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6413 ;; 6414 esac 6415 ;; 6416 6417interix[3-9]*) 6418 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6420 ;; 6421 6422irix5* | irix6* | nonstopux*) 6423 case $LD in 6424 *-32|*"-32 ") libmagic=32-bit;; 6425 *-n32|*"-n32 ") libmagic=N32;; 6426 *-64|*"-64 ") libmagic=64-bit;; 6427 *) libmagic=never-match;; 6428 esac 6429 lt_cv_deplibs_check_method=pass_all 6430 ;; 6431 6432# This must be glibc/ELF. 6433linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6434 lt_cv_deplibs_check_method=pass_all 6435 ;; 6436 6437netbsd*) 6438 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6440 else 6441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6442 fi 6443 ;; 6444 6445newos6*) 6446 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6447 lt_cv_file_magic_cmd=/usr/bin/file 6448 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6449 ;; 6450 6451*nto* | *qnx*) 6452 lt_cv_deplibs_check_method=pass_all 6453 ;; 6454 6455openbsd* | bitrig*) 6456 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6458 else 6459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6460 fi 6461 ;; 6462 6463osf3* | osf4* | osf5*) 6464 lt_cv_deplibs_check_method=pass_all 6465 ;; 6466 6467rdos*) 6468 lt_cv_deplibs_check_method=pass_all 6469 ;; 6470 6471solaris*) 6472 lt_cv_deplibs_check_method=pass_all 6473 ;; 6474 6475sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6476 lt_cv_deplibs_check_method=pass_all 6477 ;; 6478 6479sysv4 | sysv4.3*) 6480 case $host_vendor in 6481 motorola) 6482 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]' 6483 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6484 ;; 6485 ncr) 6486 lt_cv_deplibs_check_method=pass_all 6487 ;; 6488 sequent) 6489 lt_cv_file_magic_cmd='/bin/file' 6490 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6491 ;; 6492 sni) 6493 lt_cv_file_magic_cmd='/bin/file' 6494 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6495 lt_cv_file_magic_test_file=/lib/libc.so 6496 ;; 6497 siemens) 6498 lt_cv_deplibs_check_method=pass_all 6499 ;; 6500 pc) 6501 lt_cv_deplibs_check_method=pass_all 6502 ;; 6503 esac 6504 ;; 6505 6506tpf*) 6507 lt_cv_deplibs_check_method=pass_all 6508 ;; 6509os2*) 6510 lt_cv_deplibs_check_method=pass_all 6511 ;; 6512esac 6513 6514fi 6515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6516$as_echo "$lt_cv_deplibs_check_method" >&6; } 6517 6518file_magic_glob= 6519want_nocaseglob=no 6520if test "$build" = "$host"; then 6521 case $host_os in 6522 mingw* | pw32*) 6523 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6524 want_nocaseglob=yes 6525 else 6526 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6527 fi 6528 ;; 6529 esac 6530fi 6531 6532file_magic_cmd=$lt_cv_file_magic_cmd 6533deplibs_check_method=$lt_cv_deplibs_check_method 6534test -z "$deplibs_check_method" && deplibs_check_method=unknown 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557if test -n "$ac_tool_prefix"; then 6558 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6559set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6561$as_echo_n "checking for $ac_word... " >&6; } 6562if ${ac_cv_prog_DLLTOOL+:} false; then : 6563 $as_echo_n "(cached) " >&6 6564else 6565 if test -n "$DLLTOOL"; then 6566 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6567else 6568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6569for as_dir in $PATH 6570do 6571 IFS=$as_save_IFS 6572 test -z "$as_dir" && as_dir=. 6573 for ac_exec_ext in '' $ac_executable_extensions; do 6574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6575 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6577 break 2 6578 fi 6579done 6580 done 6581IFS=$as_save_IFS 6582 6583fi 6584fi 6585DLLTOOL=$ac_cv_prog_DLLTOOL 6586if test -n "$DLLTOOL"; then 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6588$as_echo "$DLLTOOL" >&6; } 6589else 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6591$as_echo "no" >&6; } 6592fi 6593 6594 6595fi 6596if test -z "$ac_cv_prog_DLLTOOL"; then 6597 ac_ct_DLLTOOL=$DLLTOOL 6598 # Extract the first word of "dlltool", so it can be a program name with args. 6599set dummy dlltool; ac_word=$2 6600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6601$as_echo_n "checking for $ac_word... " >&6; } 6602if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6603 $as_echo_n "(cached) " >&6 6604else 6605 if test -n "$ac_ct_DLLTOOL"; then 6606 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6607else 6608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6609for as_dir in $PATH 6610do 6611 IFS=$as_save_IFS 6612 test -z "$as_dir" && as_dir=. 6613 for ac_exec_ext in '' $ac_executable_extensions; do 6614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6615 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6617 break 2 6618 fi 6619done 6620 done 6621IFS=$as_save_IFS 6622 6623fi 6624fi 6625ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6626if test -n "$ac_ct_DLLTOOL"; then 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6628$as_echo "$ac_ct_DLLTOOL" >&6; } 6629else 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6631$as_echo "no" >&6; } 6632fi 6633 6634 if test "x$ac_ct_DLLTOOL" = x; then 6635 DLLTOOL="false" 6636 else 6637 case $cross_compiling:$ac_tool_warned in 6638yes:) 6639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6641ac_tool_warned=yes ;; 6642esac 6643 DLLTOOL=$ac_ct_DLLTOOL 6644 fi 6645else 6646 DLLTOOL="$ac_cv_prog_DLLTOOL" 6647fi 6648 6649test -z "$DLLTOOL" && DLLTOOL=dlltool 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6661$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6662if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6663 $as_echo_n "(cached) " >&6 6664else 6665 lt_cv_sharedlib_from_linklib_cmd='unknown' 6666 6667case $host_os in 6668cygwin* | mingw* | pw32* | cegcc*) 6669 # two different shell functions defined in ltmain.sh; 6670 # decide which one to use based on capabilities of $DLLTOOL 6671 case `$DLLTOOL --help 2>&1` in 6672 *--identify-strict*) 6673 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6674 ;; 6675 *) 6676 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6677 ;; 6678 esac 6679 ;; 6680*) 6681 # fallback: assume linklib IS sharedlib 6682 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6683 ;; 6684esac 6685 6686fi 6687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6688$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6689sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6690test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6691 6692 6693 6694 6695 6696 6697 6698if test -n "$ac_tool_prefix"; then 6699 for ac_prog in ar 6700 do 6701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6702set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6704$as_echo_n "checking for $ac_word... " >&6; } 6705if ${ac_cv_prog_AR+:} false; then : 6706 $as_echo_n "(cached) " >&6 6707else 6708 if test -n "$AR"; then 6709 ac_cv_prog_AR="$AR" # Let the user override the test. 6710else 6711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6712for as_dir in $PATH 6713do 6714 IFS=$as_save_IFS 6715 test -z "$as_dir" && as_dir=. 6716 for ac_exec_ext in '' $ac_executable_extensions; do 6717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6718 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6720 break 2 6721 fi 6722done 6723 done 6724IFS=$as_save_IFS 6725 6726fi 6727fi 6728AR=$ac_cv_prog_AR 6729if test -n "$AR"; then 6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6731$as_echo "$AR" >&6; } 6732else 6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6734$as_echo "no" >&6; } 6735fi 6736 6737 6738 test -n "$AR" && break 6739 done 6740fi 6741if test -z "$AR"; then 6742 ac_ct_AR=$AR 6743 for ac_prog in ar 6744do 6745 # Extract the first word of "$ac_prog", so it can be a program name with args. 6746set dummy $ac_prog; ac_word=$2 6747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6748$as_echo_n "checking for $ac_word... " >&6; } 6749if ${ac_cv_prog_ac_ct_AR+:} false; then : 6750 $as_echo_n "(cached) " >&6 6751else 6752 if test -n "$ac_ct_AR"; then 6753 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6754else 6755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6756for as_dir in $PATH 6757do 6758 IFS=$as_save_IFS 6759 test -z "$as_dir" && as_dir=. 6760 for ac_exec_ext in '' $ac_executable_extensions; do 6761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6762 ac_cv_prog_ac_ct_AR="$ac_prog" 6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6764 break 2 6765 fi 6766done 6767 done 6768IFS=$as_save_IFS 6769 6770fi 6771fi 6772ac_ct_AR=$ac_cv_prog_ac_ct_AR 6773if test -n "$ac_ct_AR"; then 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6775$as_echo "$ac_ct_AR" >&6; } 6776else 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6778$as_echo "no" >&6; } 6779fi 6780 6781 6782 test -n "$ac_ct_AR" && break 6783done 6784 6785 if test "x$ac_ct_AR" = x; then 6786 AR="false" 6787 else 6788 case $cross_compiling:$ac_tool_warned in 6789yes:) 6790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6792ac_tool_warned=yes ;; 6793esac 6794 AR=$ac_ct_AR 6795 fi 6796fi 6797 6798: ${AR=ar} 6799: ${AR_FLAGS=cru} 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6812$as_echo_n "checking for archiver @FILE support... " >&6; } 6813if ${lt_cv_ar_at_file+:} false; then : 6814 $as_echo_n "(cached) " >&6 6815else 6816 lt_cv_ar_at_file=no 6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6818/* end confdefs.h. */ 6819 6820int 6821main () 6822{ 6823 6824 ; 6825 return 0; 6826} 6827_ACEOF 6828if ac_fn_c_try_compile "$LINENO"; then : 6829 echo conftest.$ac_objext > conftest.lst 6830 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6832 (eval $lt_ar_try) 2>&5 6833 ac_status=$? 6834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6835 test $ac_status = 0; } 6836 if test 0 -eq "$ac_status"; then 6837 # Ensure the archiver fails upon bogus file names. 6838 rm -f conftest.$ac_objext libconftest.a 6839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6840 (eval $lt_ar_try) 2>&5 6841 ac_status=$? 6842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6843 test $ac_status = 0; } 6844 if test 0 -ne "$ac_status"; then 6845 lt_cv_ar_at_file=@ 6846 fi 6847 fi 6848 rm -f conftest.* libconftest.a 6849 6850fi 6851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6852 6853fi 6854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6855$as_echo "$lt_cv_ar_at_file" >&6; } 6856 6857if test no = "$lt_cv_ar_at_file"; then 6858 archiver_list_spec= 6859else 6860 archiver_list_spec=$lt_cv_ar_at_file 6861fi 6862 6863 6864 6865 6866 6867 6868 6869if test -n "$ac_tool_prefix"; then 6870 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6871set dummy ${ac_tool_prefix}strip; ac_word=$2 6872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6873$as_echo_n "checking for $ac_word... " >&6; } 6874if ${ac_cv_prog_STRIP+:} false; then : 6875 $as_echo_n "(cached) " >&6 6876else 6877 if test -n "$STRIP"; then 6878 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6879else 6880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6881for as_dir in $PATH 6882do 6883 IFS=$as_save_IFS 6884 test -z "$as_dir" && as_dir=. 6885 for ac_exec_ext in '' $ac_executable_extensions; do 6886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6887 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6889 break 2 6890 fi 6891done 6892 done 6893IFS=$as_save_IFS 6894 6895fi 6896fi 6897STRIP=$ac_cv_prog_STRIP 6898if test -n "$STRIP"; then 6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6900$as_echo "$STRIP" >&6; } 6901else 6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6903$as_echo "no" >&6; } 6904fi 6905 6906 6907fi 6908if test -z "$ac_cv_prog_STRIP"; then 6909 ac_ct_STRIP=$STRIP 6910 # Extract the first word of "strip", so it can be a program name with args. 6911set dummy strip; ac_word=$2 6912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6913$as_echo_n "checking for $ac_word... " >&6; } 6914if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6915 $as_echo_n "(cached) " >&6 6916else 6917 if test -n "$ac_ct_STRIP"; then 6918 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6919else 6920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6921for as_dir in $PATH 6922do 6923 IFS=$as_save_IFS 6924 test -z "$as_dir" && as_dir=. 6925 for ac_exec_ext in '' $ac_executable_extensions; do 6926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6927 ac_cv_prog_ac_ct_STRIP="strip" 6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6929 break 2 6930 fi 6931done 6932 done 6933IFS=$as_save_IFS 6934 6935fi 6936fi 6937ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6938if test -n "$ac_ct_STRIP"; then 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6940$as_echo "$ac_ct_STRIP" >&6; } 6941else 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6943$as_echo "no" >&6; } 6944fi 6945 6946 if test "x$ac_ct_STRIP" = x; then 6947 STRIP=":" 6948 else 6949 case $cross_compiling:$ac_tool_warned in 6950yes:) 6951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6953ac_tool_warned=yes ;; 6954esac 6955 STRIP=$ac_ct_STRIP 6956 fi 6957else 6958 STRIP="$ac_cv_prog_STRIP" 6959fi 6960 6961test -z "$STRIP" && STRIP=: 6962 6963 6964 6965 6966 6967 6968if test -n "$ac_tool_prefix"; then 6969 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6970set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6972$as_echo_n "checking for $ac_word... " >&6; } 6973if ${ac_cv_prog_RANLIB+:} false; then : 6974 $as_echo_n "(cached) " >&6 6975else 6976 if test -n "$RANLIB"; then 6977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6978else 6979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6980for as_dir in $PATH 6981do 6982 IFS=$as_save_IFS 6983 test -z "$as_dir" && as_dir=. 6984 for ac_exec_ext in '' $ac_executable_extensions; do 6985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6986 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6988 break 2 6989 fi 6990done 6991 done 6992IFS=$as_save_IFS 6993 6994fi 6995fi 6996RANLIB=$ac_cv_prog_RANLIB 6997if test -n "$RANLIB"; then 6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6999$as_echo "$RANLIB" >&6; } 7000else 7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7002$as_echo "no" >&6; } 7003fi 7004 7005 7006fi 7007if test -z "$ac_cv_prog_RANLIB"; then 7008 ac_ct_RANLIB=$RANLIB 7009 # Extract the first word of "ranlib", so it can be a program name with args. 7010set dummy ranlib; ac_word=$2 7011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7012$as_echo_n "checking for $ac_word... " >&6; } 7013if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7014 $as_echo_n "(cached) " >&6 7015else 7016 if test -n "$ac_ct_RANLIB"; then 7017 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7018else 7019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7020for as_dir in $PATH 7021do 7022 IFS=$as_save_IFS 7023 test -z "$as_dir" && as_dir=. 7024 for ac_exec_ext in '' $ac_executable_extensions; do 7025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7026 ac_cv_prog_ac_ct_RANLIB="ranlib" 7027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7028 break 2 7029 fi 7030done 7031 done 7032IFS=$as_save_IFS 7033 7034fi 7035fi 7036ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7037if test -n "$ac_ct_RANLIB"; then 7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7039$as_echo "$ac_ct_RANLIB" >&6; } 7040else 7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7042$as_echo "no" >&6; } 7043fi 7044 7045 if test "x$ac_ct_RANLIB" = x; then 7046 RANLIB=":" 7047 else 7048 case $cross_compiling:$ac_tool_warned in 7049yes:) 7050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7052ac_tool_warned=yes ;; 7053esac 7054 RANLIB=$ac_ct_RANLIB 7055 fi 7056else 7057 RANLIB="$ac_cv_prog_RANLIB" 7058fi 7059 7060test -z "$RANLIB" && RANLIB=: 7061 7062 7063 7064 7065 7066 7067# Determine commands to create old-style static archives. 7068old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7069old_postinstall_cmds='chmod 644 $oldlib' 7070old_postuninstall_cmds= 7071 7072if test -n "$RANLIB"; then 7073 case $host_os in 7074 bitrig* | openbsd*) 7075 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7076 ;; 7077 *) 7078 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7079 ;; 7080 esac 7081 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7082fi 7083 7084case $host_os in 7085 darwin*) 7086 lock_old_archive_extraction=yes ;; 7087 *) 7088 lock_old_archive_extraction=no ;; 7089esac 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129# If no C compiler was specified, use CC. 7130LTCC=${LTCC-"$CC"} 7131 7132# If no C compiler flags were specified, use CFLAGS. 7133LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7134 7135# Allow CC to be a program name with arguments. 7136compiler=$CC 7137 7138 7139# Check for command to grab the raw symbol name followed by C symbol from nm. 7140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7141$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7142if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7143 $as_echo_n "(cached) " >&6 7144else 7145 7146# These are sane defaults that work on at least a few old systems. 7147# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7148 7149# Character class describing NM global symbol codes. 7150symcode='[BCDEGRST]' 7151 7152# Regexp to match symbols that can be accessed directly from C. 7153sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7154 7155# Define system-specific variables. 7156case $host_os in 7157aix*) 7158 symcode='[BCDT]' 7159 ;; 7160cygwin* | mingw* | pw32* | cegcc*) 7161 symcode='[ABCDGISTW]' 7162 ;; 7163hpux*) 7164 if test ia64 = "$host_cpu"; then 7165 symcode='[ABCDEGRST]' 7166 fi 7167 ;; 7168irix* | nonstopux*) 7169 symcode='[BCDEGRST]' 7170 ;; 7171osf*) 7172 symcode='[BCDEGQRST]' 7173 ;; 7174solaris*) 7175 symcode='[BDRT]' 7176 ;; 7177sco3.2v5*) 7178 symcode='[DT]' 7179 ;; 7180sysv4.2uw2*) 7181 symcode='[DT]' 7182 ;; 7183sysv5* | sco5v6* | unixware* | OpenUNIX*) 7184 symcode='[ABDT]' 7185 ;; 7186sysv4) 7187 symcode='[DFNSTU]' 7188 ;; 7189esac 7190 7191# If we're using GNU nm, then use its standard symbol codes. 7192case `$NM -V 2>&1` in 7193*GNU* | *'with BFD'*) 7194 symcode='[ABCDGIRSTW]' ;; 7195esac 7196 7197if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7198 # Gets list of data symbols to import. 7199 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7200 # Adjust the below global symbol transforms to fixup imported variables. 7201 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7202 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7203 lt_c_name_lib_hook="\ 7204 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7205 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7206else 7207 # Disable hooks by default. 7208 lt_cv_sys_global_symbol_to_import= 7209 lt_cdecl_hook= 7210 lt_c_name_hook= 7211 lt_c_name_lib_hook= 7212fi 7213 7214# Transform an extracted symbol line into a proper C declaration. 7215# Some systems (esp. on ia64) link data and code symbols differently, 7216# so use this general approach. 7217lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7218$lt_cdecl_hook\ 7219" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7220" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7221 7222# Transform an extracted symbol line into symbol name and symbol address 7223lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7224$lt_c_name_hook\ 7225" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7226" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7227 7228# Transform an extracted symbol line into symbol name with lib prefix and 7229# symbol address. 7230lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7231$lt_c_name_lib_hook\ 7232" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7233" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7234" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7235 7236# Handle CRLF in mingw tool chain 7237opt_cr= 7238case $build_os in 7239mingw*) 7240 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7241 ;; 7242esac 7243 7244# Try without a prefix underscore, then with it. 7245for ac_symprfx in "" "_"; do 7246 7247 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7248 symxfrm="\\1 $ac_symprfx\\2 \\2" 7249 7250 # Write the raw and C identifiers. 7251 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7252 # Fake it for dumpbin and say T for any non-static function, 7253 # D for any global variable and I for any imported variable. 7254 # Also find C++ and __fastcall symbols from MSVC++, 7255 # which start with @ or ?. 7256 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7257" {last_section=section; section=\$ 3};"\ 7258" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7259" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7260" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7261" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7262" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7263" \$ 0!~/External *\|/{next};"\ 7264" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7265" {if(hide[section]) next};"\ 7266" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7267" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7268" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7269" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7270" ' prfx=^$ac_symprfx" 7271 else 7272 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7273 fi 7274 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7275 7276 # Check to see that the pipe works correctly. 7277 pipe_works=no 7278 7279 rm -f conftest* 7280 cat > conftest.$ac_ext <<_LT_EOF 7281#ifdef __cplusplus 7282extern "C" { 7283#endif 7284char nm_test_var; 7285void nm_test_func(void); 7286void nm_test_func(void){} 7287#ifdef __cplusplus 7288} 7289#endif 7290int main(){nm_test_var='a';nm_test_func();return(0);} 7291_LT_EOF 7292 7293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7294 (eval $ac_compile) 2>&5 7295 ac_status=$? 7296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7297 test $ac_status = 0; }; then 7298 # Now try to grab the symbols. 7299 nlist=conftest.nm 7300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7301 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7302 ac_status=$? 7303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7304 test $ac_status = 0; } && test -s "$nlist"; then 7305 # Try sorting and uniquifying the output. 7306 if sort "$nlist" | uniq > "$nlist"T; then 7307 mv -f "$nlist"T "$nlist" 7308 else 7309 rm -f "$nlist"T 7310 fi 7311 7312 # Make sure that we snagged all the symbols we need. 7313 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7314 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7315 cat <<_LT_EOF > conftest.$ac_ext 7316/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7317#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7318/* DATA imports from DLLs on WIN32 can't be const, because runtime 7319 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7320# define LT_DLSYM_CONST 7321#elif defined __osf__ 7322/* This system does not cope well with relocations in const data. */ 7323# define LT_DLSYM_CONST 7324#else 7325# define LT_DLSYM_CONST const 7326#endif 7327 7328#ifdef __cplusplus 7329extern "C" { 7330#endif 7331 7332_LT_EOF 7333 # Now generate the symbol file. 7334 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7335 7336 cat <<_LT_EOF >> conftest.$ac_ext 7337 7338/* The mapping between symbol names and symbols. */ 7339LT_DLSYM_CONST struct { 7340 const char *name; 7341 void *address; 7342} 7343lt__PROGRAM__LTX_preloaded_symbols[] = 7344{ 7345 { "@PROGRAM@", (void *) 0 }, 7346_LT_EOF 7347 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7348 cat <<\_LT_EOF >> conftest.$ac_ext 7349 {0, (void *) 0} 7350}; 7351 7352/* This works around a problem in FreeBSD linker */ 7353#ifdef FREEBSD_WORKAROUND 7354static const void *lt_preloaded_setup() { 7355 return lt__PROGRAM__LTX_preloaded_symbols; 7356} 7357#endif 7358 7359#ifdef __cplusplus 7360} 7361#endif 7362_LT_EOF 7363 # Now try linking the two files. 7364 mv conftest.$ac_objext conftstm.$ac_objext 7365 lt_globsym_save_LIBS=$LIBS 7366 lt_globsym_save_CFLAGS=$CFLAGS 7367 LIBS=conftstm.$ac_objext 7368 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7370 (eval $ac_link) 2>&5 7371 ac_status=$? 7372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7373 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7374 pipe_works=yes 7375 fi 7376 LIBS=$lt_globsym_save_LIBS 7377 CFLAGS=$lt_globsym_save_CFLAGS 7378 else 7379 echo "cannot find nm_test_func in $nlist" >&5 7380 fi 7381 else 7382 echo "cannot find nm_test_var in $nlist" >&5 7383 fi 7384 else 7385 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7386 fi 7387 else 7388 echo "$progname: failed program was:" >&5 7389 cat conftest.$ac_ext >&5 7390 fi 7391 rm -rf conftest* conftst* 7392 7393 # Do not use the global_symbol_pipe unless it works. 7394 if test yes = "$pipe_works"; then 7395 break 7396 else 7397 lt_cv_sys_global_symbol_pipe= 7398 fi 7399done 7400 7401fi 7402 7403if test -z "$lt_cv_sys_global_symbol_pipe"; then 7404 lt_cv_sys_global_symbol_to_cdecl= 7405fi 7406if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7408$as_echo "failed" >&6; } 7409else 7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7411$as_echo "ok" >&6; } 7412fi 7413 7414# Response file support. 7415if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7416 nm_file_list_spec='@' 7417elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7418 nm_file_list_spec='@' 7419fi 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7458$as_echo_n "checking for sysroot... " >&6; } 7459 7460# Check whether --with-sysroot was given. 7461if test "${with_sysroot+set}" = set; then : 7462 withval=$with_sysroot; 7463else 7464 with_sysroot=no 7465fi 7466 7467 7468lt_sysroot= 7469case $with_sysroot in #( 7470 yes) 7471 if test yes = "$GCC"; then 7472 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7473 fi 7474 ;; #( 7475 /*) 7476 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7477 ;; #( 7478 no|'') 7479 ;; #( 7480 *) 7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7482$as_echo "$with_sysroot" >&6; } 7483 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7484 ;; 7485esac 7486 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7488$as_echo "${lt_sysroot:-no}" >&6; } 7489 7490 7491 7492 7493 7494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7495$as_echo_n "checking for a working dd... " >&6; } 7496if ${ac_cv_path_lt_DD+:} false; then : 7497 $as_echo_n "(cached) " >&6 7498else 7499 printf 0123456789abcdef0123456789abcdef >conftest.i 7500cat conftest.i conftest.i >conftest2.i 7501: ${lt_DD:=$DD} 7502if test -z "$lt_DD"; then 7503 ac_path_lt_DD_found=false 7504 # Loop through the user's path and test for each of PROGNAME-LIST 7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7506for as_dir in $PATH 7507do 7508 IFS=$as_save_IFS 7509 test -z "$as_dir" && as_dir=. 7510 for ac_prog in dd; do 7511 for ac_exec_ext in '' $ac_executable_extensions; do 7512 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7513 as_fn_executable_p "$ac_path_lt_DD" || continue 7514if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7515 cmp -s conftest.i conftest.out \ 7516 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7517fi 7518 $ac_path_lt_DD_found && break 3 7519 done 7520 done 7521 done 7522IFS=$as_save_IFS 7523 if test -z "$ac_cv_path_lt_DD"; then 7524 : 7525 fi 7526else 7527 ac_cv_path_lt_DD=$lt_DD 7528fi 7529 7530rm -f conftest.i conftest2.i conftest.out 7531fi 7532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7533$as_echo "$ac_cv_path_lt_DD" >&6; } 7534 7535 7536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7537$as_echo_n "checking how to truncate binary pipes... " >&6; } 7538if ${lt_cv_truncate_bin+:} false; then : 7539 $as_echo_n "(cached) " >&6 7540else 7541 printf 0123456789abcdef0123456789abcdef >conftest.i 7542cat conftest.i conftest.i >conftest2.i 7543lt_cv_truncate_bin= 7544if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7545 cmp -s conftest.i conftest.out \ 7546 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7547fi 7548rm -f conftest.i conftest2.i conftest.out 7549test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7550fi 7551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7552$as_echo "$lt_cv_truncate_bin" >&6; } 7553 7554 7555 7556 7557 7558 7559 7560# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7561func_cc_basename () 7562{ 7563 for cc_temp in $*""; do 7564 case $cc_temp in 7565 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7566 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7567 \-*) ;; 7568 *) break;; 7569 esac 7570 done 7571 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7572} 7573 7574# Check whether --enable-libtool-lock was given. 7575if test "${enable_libtool_lock+set}" = set; then : 7576 enableval=$enable_libtool_lock; 7577fi 7578 7579test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7580 7581# Some flags need to be propagated to the compiler or linker for good 7582# libtool support. 7583case $host in 7584ia64-*-hpux*) 7585 # Find out what ABI is being produced by ac_compile, and set mode 7586 # options accordingly. 7587 echo 'int i;' > conftest.$ac_ext 7588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7589 (eval $ac_compile) 2>&5 7590 ac_status=$? 7591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7592 test $ac_status = 0; }; then 7593 case `/usr/bin/file conftest.$ac_objext` in 7594 *ELF-32*) 7595 HPUX_IA64_MODE=32 7596 ;; 7597 *ELF-64*) 7598 HPUX_IA64_MODE=64 7599 ;; 7600 esac 7601 fi 7602 rm -rf conftest* 7603 ;; 7604*-*-irix6*) 7605 # Find out what ABI is being produced by ac_compile, and set linker 7606 # options accordingly. 7607 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7609 (eval $ac_compile) 2>&5 7610 ac_status=$? 7611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7612 test $ac_status = 0; }; then 7613 if test yes = "$lt_cv_prog_gnu_ld"; then 7614 case `/usr/bin/file conftest.$ac_objext` in 7615 *32-bit*) 7616 LD="${LD-ld} -melf32bsmip" 7617 ;; 7618 *N32*) 7619 LD="${LD-ld} -melf32bmipn32" 7620 ;; 7621 *64-bit*) 7622 LD="${LD-ld} -melf64bmip" 7623 ;; 7624 esac 7625 else 7626 case `/usr/bin/file conftest.$ac_objext` in 7627 *32-bit*) 7628 LD="${LD-ld} -32" 7629 ;; 7630 *N32*) 7631 LD="${LD-ld} -n32" 7632 ;; 7633 *64-bit*) 7634 LD="${LD-ld} -64" 7635 ;; 7636 esac 7637 fi 7638 fi 7639 rm -rf conftest* 7640 ;; 7641 7642mips64*-*linux*) 7643 # Find out what ABI is being produced by ac_compile, and set linker 7644 # options accordingly. 7645 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7647 (eval $ac_compile) 2>&5 7648 ac_status=$? 7649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7650 test $ac_status = 0; }; then 7651 emul=elf 7652 case `/usr/bin/file conftest.$ac_objext` in 7653 *32-bit*) 7654 emul="${emul}32" 7655 ;; 7656 *64-bit*) 7657 emul="${emul}64" 7658 ;; 7659 esac 7660 case `/usr/bin/file conftest.$ac_objext` in 7661 *MSB*) 7662 emul="${emul}btsmip" 7663 ;; 7664 *LSB*) 7665 emul="${emul}ltsmip" 7666 ;; 7667 esac 7668 case `/usr/bin/file conftest.$ac_objext` in 7669 *N32*) 7670 emul="${emul}n32" 7671 ;; 7672 esac 7673 LD="${LD-ld} -m $emul" 7674 fi 7675 rm -rf conftest* 7676 ;; 7677 7678x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7679s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7680 # Find out what ABI is being produced by ac_compile, and set linker 7681 # options accordingly. Note that the listed cases only cover the 7682 # situations where additional linker options are needed (such as when 7683 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7684 # vice versa); the common cases where no linker options are needed do 7685 # not appear in the list. 7686 echo 'int i;' > conftest.$ac_ext 7687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7688 (eval $ac_compile) 2>&5 7689 ac_status=$? 7690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7691 test $ac_status = 0; }; then 7692 case `/usr/bin/file conftest.o` in 7693 *32-bit*) 7694 case $host in 7695 x86_64-*kfreebsd*-gnu) 7696 LD="${LD-ld} -m elf_i386_fbsd" 7697 ;; 7698 x86_64-*linux*) 7699 case `/usr/bin/file conftest.o` in 7700 *x86-64*) 7701 LD="${LD-ld} -m elf32_x86_64" 7702 ;; 7703 *) 7704 LD="${LD-ld} -m elf_i386" 7705 ;; 7706 esac 7707 ;; 7708 powerpc64le-*linux*) 7709 LD="${LD-ld} -m elf32lppclinux" 7710 ;; 7711 powerpc64-*linux*) 7712 LD="${LD-ld} -m elf32ppclinux" 7713 ;; 7714 s390x-*linux*) 7715 LD="${LD-ld} -m elf_s390" 7716 ;; 7717 sparc64-*linux*) 7718 LD="${LD-ld} -m elf32_sparc" 7719 ;; 7720 esac 7721 ;; 7722 *64-bit*) 7723 case $host in 7724 x86_64-*kfreebsd*-gnu) 7725 LD="${LD-ld} -m elf_x86_64_fbsd" 7726 ;; 7727 x86_64-*linux*) 7728 LD="${LD-ld} -m elf_x86_64" 7729 ;; 7730 powerpcle-*linux*) 7731 LD="${LD-ld} -m elf64lppc" 7732 ;; 7733 powerpc-*linux*) 7734 LD="${LD-ld} -m elf64ppc" 7735 ;; 7736 s390*-*linux*|s390*-*tpf*) 7737 LD="${LD-ld} -m elf64_s390" 7738 ;; 7739 sparc*-*linux*) 7740 LD="${LD-ld} -m elf64_sparc" 7741 ;; 7742 esac 7743 ;; 7744 esac 7745 fi 7746 rm -rf conftest* 7747 ;; 7748 7749*-*-sco3.2v5*) 7750 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7751 SAVE_CFLAGS=$CFLAGS 7752 CFLAGS="$CFLAGS -belf" 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7754$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7755if ${lt_cv_cc_needs_belf+:} false; then : 7756 $as_echo_n "(cached) " >&6 7757else 7758 ac_ext=c 7759ac_cpp='$CPP $CPPFLAGS' 7760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7762ac_compiler_gnu=$ac_cv_c_compiler_gnu 7763 7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7765/* end confdefs.h. */ 7766 7767int 7768main () 7769{ 7770 7771 ; 7772 return 0; 7773} 7774_ACEOF 7775if ac_fn_c_try_link "$LINENO"; then : 7776 lt_cv_cc_needs_belf=yes 7777else 7778 lt_cv_cc_needs_belf=no 7779fi 7780rm -f core conftest.err conftest.$ac_objext \ 7781 conftest$ac_exeext conftest.$ac_ext 7782 ac_ext=c 7783ac_cpp='$CPP $CPPFLAGS' 7784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7786ac_compiler_gnu=$ac_cv_c_compiler_gnu 7787 7788fi 7789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7790$as_echo "$lt_cv_cc_needs_belf" >&6; } 7791 if test yes != "$lt_cv_cc_needs_belf"; then 7792 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7793 CFLAGS=$SAVE_CFLAGS 7794 fi 7795 ;; 7796*-*solaris*) 7797 # Find out what ABI is being produced by ac_compile, and set linker 7798 # options accordingly. 7799 echo 'int i;' > conftest.$ac_ext 7800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7801 (eval $ac_compile) 2>&5 7802 ac_status=$? 7803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7804 test $ac_status = 0; }; then 7805 case `/usr/bin/file conftest.o` in 7806 *64-bit*) 7807 case $lt_cv_prog_gnu_ld in 7808 yes*) 7809 case $host in 7810 i?86-*-solaris*|x86_64-*-solaris*) 7811 LD="${LD-ld} -m elf_x86_64" 7812 ;; 7813 sparc*-*-solaris*) 7814 LD="${LD-ld} -m elf64_sparc" 7815 ;; 7816 esac 7817 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7818 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7819 LD=${LD-ld}_sol2 7820 fi 7821 ;; 7822 *) 7823 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7824 LD="${LD-ld} -64" 7825 fi 7826 ;; 7827 esac 7828 ;; 7829 esac 7830 fi 7831 rm -rf conftest* 7832 ;; 7833esac 7834 7835need_locks=$enable_libtool_lock 7836 7837if test -n "$ac_tool_prefix"; then 7838 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7839set dummy ${ac_tool_prefix}mt; ac_word=$2 7840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7841$as_echo_n "checking for $ac_word... " >&6; } 7842if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7843 $as_echo_n "(cached) " >&6 7844else 7845 if test -n "$MANIFEST_TOOL"; then 7846 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7847else 7848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7849for as_dir in $PATH 7850do 7851 IFS=$as_save_IFS 7852 test -z "$as_dir" && as_dir=. 7853 for ac_exec_ext in '' $ac_executable_extensions; do 7854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7855 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7857 break 2 7858 fi 7859done 7860 done 7861IFS=$as_save_IFS 7862 7863fi 7864fi 7865MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7866if test -n "$MANIFEST_TOOL"; then 7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7868$as_echo "$MANIFEST_TOOL" >&6; } 7869else 7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7871$as_echo "no" >&6; } 7872fi 7873 7874 7875fi 7876if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7877 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7878 # Extract the first word of "mt", so it can be a program name with args. 7879set dummy mt; ac_word=$2 7880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7881$as_echo_n "checking for $ac_word... " >&6; } 7882if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7883 $as_echo_n "(cached) " >&6 7884else 7885 if test -n "$ac_ct_MANIFEST_TOOL"; then 7886 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7887else 7888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7889for as_dir in $PATH 7890do 7891 IFS=$as_save_IFS 7892 test -z "$as_dir" && as_dir=. 7893 for ac_exec_ext in '' $ac_executable_extensions; do 7894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7895 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7897 break 2 7898 fi 7899done 7900 done 7901IFS=$as_save_IFS 7902 7903fi 7904fi 7905ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7906if test -n "$ac_ct_MANIFEST_TOOL"; then 7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7908$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7909else 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7911$as_echo "no" >&6; } 7912fi 7913 7914 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7915 MANIFEST_TOOL=":" 7916 else 7917 case $cross_compiling:$ac_tool_warned in 7918yes:) 7919{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7921ac_tool_warned=yes ;; 7922esac 7923 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7924 fi 7925else 7926 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7927fi 7928 7929test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7931$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7932if ${lt_cv_path_mainfest_tool+:} false; then : 7933 $as_echo_n "(cached) " >&6 7934else 7935 lt_cv_path_mainfest_tool=no 7936 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7937 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7938 cat conftest.err >&5 7939 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7940 lt_cv_path_mainfest_tool=yes 7941 fi 7942 rm -f conftest* 7943fi 7944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7945$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7946if test yes != "$lt_cv_path_mainfest_tool"; then 7947 MANIFEST_TOOL=: 7948fi 7949 7950 7951 7952 7953 7954 7955 case $host_os in 7956 rhapsody* | darwin*) 7957 if test -n "$ac_tool_prefix"; then 7958 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7959set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7961$as_echo_n "checking for $ac_word... " >&6; } 7962if ${ac_cv_prog_DSYMUTIL+:} false; then : 7963 $as_echo_n "(cached) " >&6 7964else 7965 if test -n "$DSYMUTIL"; then 7966 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7967else 7968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7969for as_dir in $PATH 7970do 7971 IFS=$as_save_IFS 7972 test -z "$as_dir" && as_dir=. 7973 for ac_exec_ext in '' $ac_executable_extensions; do 7974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7975 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7977 break 2 7978 fi 7979done 7980 done 7981IFS=$as_save_IFS 7982 7983fi 7984fi 7985DSYMUTIL=$ac_cv_prog_DSYMUTIL 7986if test -n "$DSYMUTIL"; then 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7988$as_echo "$DSYMUTIL" >&6; } 7989else 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7991$as_echo "no" >&6; } 7992fi 7993 7994 7995fi 7996if test -z "$ac_cv_prog_DSYMUTIL"; then 7997 ac_ct_DSYMUTIL=$DSYMUTIL 7998 # Extract the first word of "dsymutil", so it can be a program name with args. 7999set dummy dsymutil; ac_word=$2 8000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8001$as_echo_n "checking for $ac_word... " >&6; } 8002if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8003 $as_echo_n "(cached) " >&6 8004else 8005 if test -n "$ac_ct_DSYMUTIL"; then 8006 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8007else 8008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8009for as_dir in $PATH 8010do 8011 IFS=$as_save_IFS 8012 test -z "$as_dir" && as_dir=. 8013 for ac_exec_ext in '' $ac_executable_extensions; do 8014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8015 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8017 break 2 8018 fi 8019done 8020 done 8021IFS=$as_save_IFS 8022 8023fi 8024fi 8025ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8026if test -n "$ac_ct_DSYMUTIL"; then 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8028$as_echo "$ac_ct_DSYMUTIL" >&6; } 8029else 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8031$as_echo "no" >&6; } 8032fi 8033 8034 if test "x$ac_ct_DSYMUTIL" = x; then 8035 DSYMUTIL=":" 8036 else 8037 case $cross_compiling:$ac_tool_warned in 8038yes:) 8039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8041ac_tool_warned=yes ;; 8042esac 8043 DSYMUTIL=$ac_ct_DSYMUTIL 8044 fi 8045else 8046 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8047fi 8048 8049 if test -n "$ac_tool_prefix"; then 8050 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8051set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8053$as_echo_n "checking for $ac_word... " >&6; } 8054if ${ac_cv_prog_NMEDIT+:} false; then : 8055 $as_echo_n "(cached) " >&6 8056else 8057 if test -n "$NMEDIT"; then 8058 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8059else 8060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8061for as_dir in $PATH 8062do 8063 IFS=$as_save_IFS 8064 test -z "$as_dir" && as_dir=. 8065 for ac_exec_ext in '' $ac_executable_extensions; do 8066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8067 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8069 break 2 8070 fi 8071done 8072 done 8073IFS=$as_save_IFS 8074 8075fi 8076fi 8077NMEDIT=$ac_cv_prog_NMEDIT 8078if test -n "$NMEDIT"; then 8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8080$as_echo "$NMEDIT" >&6; } 8081else 8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8083$as_echo "no" >&6; } 8084fi 8085 8086 8087fi 8088if test -z "$ac_cv_prog_NMEDIT"; then 8089 ac_ct_NMEDIT=$NMEDIT 8090 # Extract the first word of "nmedit", so it can be a program name with args. 8091set dummy nmedit; ac_word=$2 8092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8093$as_echo_n "checking for $ac_word... " >&6; } 8094if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8095 $as_echo_n "(cached) " >&6 8096else 8097 if test -n "$ac_ct_NMEDIT"; then 8098 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8099else 8100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8101for as_dir in $PATH 8102do 8103 IFS=$as_save_IFS 8104 test -z "$as_dir" && as_dir=. 8105 for ac_exec_ext in '' $ac_executable_extensions; do 8106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8107 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8109 break 2 8110 fi 8111done 8112 done 8113IFS=$as_save_IFS 8114 8115fi 8116fi 8117ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8118if test -n "$ac_ct_NMEDIT"; then 8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8120$as_echo "$ac_ct_NMEDIT" >&6; } 8121else 8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8123$as_echo "no" >&6; } 8124fi 8125 8126 if test "x$ac_ct_NMEDIT" = x; then 8127 NMEDIT=":" 8128 else 8129 case $cross_compiling:$ac_tool_warned in 8130yes:) 8131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8133ac_tool_warned=yes ;; 8134esac 8135 NMEDIT=$ac_ct_NMEDIT 8136 fi 8137else 8138 NMEDIT="$ac_cv_prog_NMEDIT" 8139fi 8140 8141 if test -n "$ac_tool_prefix"; then 8142 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8143set dummy ${ac_tool_prefix}lipo; ac_word=$2 8144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8145$as_echo_n "checking for $ac_word... " >&6; } 8146if ${ac_cv_prog_LIPO+:} false; then : 8147 $as_echo_n "(cached) " >&6 8148else 8149 if test -n "$LIPO"; then 8150 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8151else 8152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8153for as_dir in $PATH 8154do 8155 IFS=$as_save_IFS 8156 test -z "$as_dir" && as_dir=. 8157 for ac_exec_ext in '' $ac_executable_extensions; do 8158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8159 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8161 break 2 8162 fi 8163done 8164 done 8165IFS=$as_save_IFS 8166 8167fi 8168fi 8169LIPO=$ac_cv_prog_LIPO 8170if test -n "$LIPO"; then 8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8172$as_echo "$LIPO" >&6; } 8173else 8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8175$as_echo "no" >&6; } 8176fi 8177 8178 8179fi 8180if test -z "$ac_cv_prog_LIPO"; then 8181 ac_ct_LIPO=$LIPO 8182 # Extract the first word of "lipo", so it can be a program name with args. 8183set dummy lipo; ac_word=$2 8184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8185$as_echo_n "checking for $ac_word... " >&6; } 8186if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8187 $as_echo_n "(cached) " >&6 8188else 8189 if test -n "$ac_ct_LIPO"; then 8190 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8191else 8192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8193for as_dir in $PATH 8194do 8195 IFS=$as_save_IFS 8196 test -z "$as_dir" && as_dir=. 8197 for ac_exec_ext in '' $ac_executable_extensions; do 8198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8199 ac_cv_prog_ac_ct_LIPO="lipo" 8200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8201 break 2 8202 fi 8203done 8204 done 8205IFS=$as_save_IFS 8206 8207fi 8208fi 8209ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8210if test -n "$ac_ct_LIPO"; then 8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8212$as_echo "$ac_ct_LIPO" >&6; } 8213else 8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8215$as_echo "no" >&6; } 8216fi 8217 8218 if test "x$ac_ct_LIPO" = x; then 8219 LIPO=":" 8220 else 8221 case $cross_compiling:$ac_tool_warned in 8222yes:) 8223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8225ac_tool_warned=yes ;; 8226esac 8227 LIPO=$ac_ct_LIPO 8228 fi 8229else 8230 LIPO="$ac_cv_prog_LIPO" 8231fi 8232 8233 if test -n "$ac_tool_prefix"; then 8234 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8235set dummy ${ac_tool_prefix}otool; ac_word=$2 8236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8237$as_echo_n "checking for $ac_word... " >&6; } 8238if ${ac_cv_prog_OTOOL+:} false; then : 8239 $as_echo_n "(cached) " >&6 8240else 8241 if test -n "$OTOOL"; then 8242 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8243else 8244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8245for as_dir in $PATH 8246do 8247 IFS=$as_save_IFS 8248 test -z "$as_dir" && as_dir=. 8249 for ac_exec_ext in '' $ac_executable_extensions; do 8250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8251 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8253 break 2 8254 fi 8255done 8256 done 8257IFS=$as_save_IFS 8258 8259fi 8260fi 8261OTOOL=$ac_cv_prog_OTOOL 8262if test -n "$OTOOL"; then 8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8264$as_echo "$OTOOL" >&6; } 8265else 8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8267$as_echo "no" >&6; } 8268fi 8269 8270 8271fi 8272if test -z "$ac_cv_prog_OTOOL"; then 8273 ac_ct_OTOOL=$OTOOL 8274 # Extract the first word of "otool", so it can be a program name with args. 8275set dummy otool; ac_word=$2 8276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8277$as_echo_n "checking for $ac_word... " >&6; } 8278if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8279 $as_echo_n "(cached) " >&6 8280else 8281 if test -n "$ac_ct_OTOOL"; then 8282 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8283else 8284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8285for as_dir in $PATH 8286do 8287 IFS=$as_save_IFS 8288 test -z "$as_dir" && as_dir=. 8289 for ac_exec_ext in '' $ac_executable_extensions; do 8290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8291 ac_cv_prog_ac_ct_OTOOL="otool" 8292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8293 break 2 8294 fi 8295done 8296 done 8297IFS=$as_save_IFS 8298 8299fi 8300fi 8301ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8302if test -n "$ac_ct_OTOOL"; then 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8304$as_echo "$ac_ct_OTOOL" >&6; } 8305else 8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8307$as_echo "no" >&6; } 8308fi 8309 8310 if test "x$ac_ct_OTOOL" = x; then 8311 OTOOL=":" 8312 else 8313 case $cross_compiling:$ac_tool_warned in 8314yes:) 8315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8317ac_tool_warned=yes ;; 8318esac 8319 OTOOL=$ac_ct_OTOOL 8320 fi 8321else 8322 OTOOL="$ac_cv_prog_OTOOL" 8323fi 8324 8325 if test -n "$ac_tool_prefix"; then 8326 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8327set dummy ${ac_tool_prefix}otool64; ac_word=$2 8328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8329$as_echo_n "checking for $ac_word... " >&6; } 8330if ${ac_cv_prog_OTOOL64+:} false; then : 8331 $as_echo_n "(cached) " >&6 8332else 8333 if test -n "$OTOOL64"; then 8334 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8335else 8336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8337for as_dir in $PATH 8338do 8339 IFS=$as_save_IFS 8340 test -z "$as_dir" && as_dir=. 8341 for ac_exec_ext in '' $ac_executable_extensions; do 8342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8343 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8345 break 2 8346 fi 8347done 8348 done 8349IFS=$as_save_IFS 8350 8351fi 8352fi 8353OTOOL64=$ac_cv_prog_OTOOL64 8354if test -n "$OTOOL64"; then 8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8356$as_echo "$OTOOL64" >&6; } 8357else 8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8359$as_echo "no" >&6; } 8360fi 8361 8362 8363fi 8364if test -z "$ac_cv_prog_OTOOL64"; then 8365 ac_ct_OTOOL64=$OTOOL64 8366 # Extract the first word of "otool64", so it can be a program name with args. 8367set dummy otool64; ac_word=$2 8368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8369$as_echo_n "checking for $ac_word... " >&6; } 8370if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8371 $as_echo_n "(cached) " >&6 8372else 8373 if test -n "$ac_ct_OTOOL64"; then 8374 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8375else 8376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8377for as_dir in $PATH 8378do 8379 IFS=$as_save_IFS 8380 test -z "$as_dir" && as_dir=. 8381 for ac_exec_ext in '' $ac_executable_extensions; do 8382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8383 ac_cv_prog_ac_ct_OTOOL64="otool64" 8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8385 break 2 8386 fi 8387done 8388 done 8389IFS=$as_save_IFS 8390 8391fi 8392fi 8393ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8394if test -n "$ac_ct_OTOOL64"; then 8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8396$as_echo "$ac_ct_OTOOL64" >&6; } 8397else 8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8399$as_echo "no" >&6; } 8400fi 8401 8402 if test "x$ac_ct_OTOOL64" = x; then 8403 OTOOL64=":" 8404 else 8405 case $cross_compiling:$ac_tool_warned in 8406yes:) 8407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8409ac_tool_warned=yes ;; 8410esac 8411 OTOOL64=$ac_ct_OTOOL64 8412 fi 8413else 8414 OTOOL64="$ac_cv_prog_OTOOL64" 8415fi 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8444$as_echo_n "checking for -single_module linker flag... " >&6; } 8445if ${lt_cv_apple_cc_single_mod+:} false; then : 8446 $as_echo_n "(cached) " >&6 8447else 8448 lt_cv_apple_cc_single_mod=no 8449 if test -z "$LT_MULTI_MODULE"; then 8450 # By default we will add the -single_module flag. You can override 8451 # by either setting the environment variable LT_MULTI_MODULE 8452 # non-empty at configure time, or by adding -multi_module to the 8453 # link flags. 8454 rm -rf libconftest.dylib* 8455 echo "int foo(void){return 1;}" > conftest.c 8456 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8457-dynamiclib -Wl,-single_module conftest.c" >&5 8458 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8459 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8460 _lt_result=$? 8461 # If there is a non-empty error log, and "single_module" 8462 # appears in it, assume the flag caused a linker warning 8463 if test -s conftest.err && $GREP single_module conftest.err; then 8464 cat conftest.err >&5 8465 # Otherwise, if the output was created with a 0 exit code from 8466 # the compiler, it worked. 8467 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8468 lt_cv_apple_cc_single_mod=yes 8469 else 8470 cat conftest.err >&5 8471 fi 8472 rm -rf libconftest.dylib* 8473 rm -f conftest.* 8474 fi 8475fi 8476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8477$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8478 8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8480$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8481if ${lt_cv_ld_exported_symbols_list+:} false; then : 8482 $as_echo_n "(cached) " >&6 8483else 8484 lt_cv_ld_exported_symbols_list=no 8485 save_LDFLAGS=$LDFLAGS 8486 echo "_main" > conftest.sym 8487 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8489/* end confdefs.h. */ 8490 8491int 8492main () 8493{ 8494 8495 ; 8496 return 0; 8497} 8498_ACEOF 8499if ac_fn_c_try_link "$LINENO"; then : 8500 lt_cv_ld_exported_symbols_list=yes 8501else 8502 lt_cv_ld_exported_symbols_list=no 8503fi 8504rm -f core conftest.err conftest.$ac_objext \ 8505 conftest$ac_exeext conftest.$ac_ext 8506 LDFLAGS=$save_LDFLAGS 8507 8508fi 8509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8510$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8511 8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8513$as_echo_n "checking for -force_load linker flag... " >&6; } 8514if ${lt_cv_ld_force_load+:} false; then : 8515 $as_echo_n "(cached) " >&6 8516else 8517 lt_cv_ld_force_load=no 8518 cat > conftest.c << _LT_EOF 8519int forced_loaded() { return 2;} 8520_LT_EOF 8521 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8522 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8523 echo "$AR cru libconftest.a conftest.o" >&5 8524 $AR cru libconftest.a conftest.o 2>&5 8525 echo "$RANLIB libconftest.a" >&5 8526 $RANLIB libconftest.a 2>&5 8527 cat > conftest.c << _LT_EOF 8528int main() { return 0;} 8529_LT_EOF 8530 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8531 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8532 _lt_result=$? 8533 if test -s conftest.err && $GREP force_load conftest.err; then 8534 cat conftest.err >&5 8535 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8536 lt_cv_ld_force_load=yes 8537 else 8538 cat conftest.err >&5 8539 fi 8540 rm -f conftest.err libconftest.a conftest conftest.c 8541 rm -rf conftest.dSYM 8542 8543fi 8544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8545$as_echo "$lt_cv_ld_force_load" >&6; } 8546 case $host_os in 8547 rhapsody* | darwin1.[012]) 8548 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8549 darwin1.*) 8550 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8551 darwin*) # darwin 5.x on 8552 # if running on 10.5 or later, the deployment target defaults 8553 # to the OS version, if on x86, and 10.4, the deployment 8554 # target defaults to 10.4. Don't you love it? 8555 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8556 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8557 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8558 10.[012][,.]*) 8559 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8560 10.*) 8561 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8562 esac 8563 ;; 8564 esac 8565 if test yes = "$lt_cv_apple_cc_single_mod"; then 8566 _lt_dar_single_mod='$single_module' 8567 fi 8568 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8569 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8570 else 8571 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8572 fi 8573 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8574 _lt_dsymutil='~$DSYMUTIL $lib || :' 8575 else 8576 _lt_dsymutil= 8577 fi 8578 ;; 8579 esac 8580 8581# func_munge_path_list VARIABLE PATH 8582# ----------------------------------- 8583# VARIABLE is name of variable containing _space_ separated list of 8584# directories to be munged by the contents of PATH, which is string 8585# having a format: 8586# "DIR[:DIR]:" 8587# string "DIR[ DIR]" will be prepended to VARIABLE 8588# ":DIR[:DIR]" 8589# string "DIR[ DIR]" will be appended to VARIABLE 8590# "DIRP[:DIRP]::[DIRA:]DIRA" 8591# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8592# "DIRA[ DIRA]" will be appended to VARIABLE 8593# "DIR[:DIR]" 8594# VARIABLE will be replaced by "DIR[ DIR]" 8595func_munge_path_list () 8596{ 8597 case x$2 in 8598 x) 8599 ;; 8600 *:) 8601 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8602 ;; 8603 x:*) 8604 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8605 ;; 8606 *::*) 8607 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8608 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8609 ;; 8610 *) 8611 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8612 ;; 8613 esac 8614} 8615 8616for ac_header in dlfcn.h 8617do : 8618 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8619" 8620if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8621 cat >>confdefs.h <<_ACEOF 8622#define HAVE_DLFCN_H 1 8623_ACEOF 8624 8625fi 8626 8627done 8628 8629 8630 8631 8632 8633# Set options 8634 8635 8636 8637 enable_dlopen=no 8638 8639 8640 enable_win32_dll=no 8641 8642 8643 # Check whether --enable-shared was given. 8644if test "${enable_shared+set}" = set; then : 8645 enableval=$enable_shared; p=${PACKAGE-default} 8646 case $enableval in 8647 yes) enable_shared=yes ;; 8648 no) enable_shared=no ;; 8649 *) 8650 enable_shared=no 8651 # Look at the argument we got. We use all the common list separators. 8652 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8653 for pkg in $enableval; do 8654 IFS=$lt_save_ifs 8655 if test "X$pkg" = "X$p"; then 8656 enable_shared=yes 8657 fi 8658 done 8659 IFS=$lt_save_ifs 8660 ;; 8661 esac 8662else 8663 enable_shared=yes 8664fi 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 # Check whether --enable-static was given. 8675if test "${enable_static+set}" = set; then : 8676 enableval=$enable_static; p=${PACKAGE-default} 8677 case $enableval in 8678 yes) enable_static=yes ;; 8679 no) enable_static=no ;; 8680 *) 8681 enable_static=no 8682 # Look at the argument we got. We use all the common list separators. 8683 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8684 for pkg in $enableval; do 8685 IFS=$lt_save_ifs 8686 if test "X$pkg" = "X$p"; then 8687 enable_static=yes 8688 fi 8689 done 8690 IFS=$lt_save_ifs 8691 ;; 8692 esac 8693else 8694 enable_static=yes 8695fi 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706# Check whether --with-pic was given. 8707if test "${with_pic+set}" = set; then : 8708 withval=$with_pic; lt_p=${PACKAGE-default} 8709 case $withval in 8710 yes|no) pic_mode=$withval ;; 8711 *) 8712 pic_mode=default 8713 # Look at the argument we got. We use all the common list separators. 8714 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8715 for lt_pkg in $withval; do 8716 IFS=$lt_save_ifs 8717 if test "X$lt_pkg" = "X$lt_p"; then 8718 pic_mode=yes 8719 fi 8720 done 8721 IFS=$lt_save_ifs 8722 ;; 8723 esac 8724else 8725 pic_mode=default 8726fi 8727 8728 8729 8730 8731 8732 8733 8734 8735 # Check whether --enable-fast-install was given. 8736if test "${enable_fast_install+set}" = set; then : 8737 enableval=$enable_fast_install; p=${PACKAGE-default} 8738 case $enableval in 8739 yes) enable_fast_install=yes ;; 8740 no) enable_fast_install=no ;; 8741 *) 8742 enable_fast_install=no 8743 # Look at the argument we got. We use all the common list separators. 8744 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8745 for pkg in $enableval; do 8746 IFS=$lt_save_ifs 8747 if test "X$pkg" = "X$p"; then 8748 enable_fast_install=yes 8749 fi 8750 done 8751 IFS=$lt_save_ifs 8752 ;; 8753 esac 8754else 8755 enable_fast_install=yes 8756fi 8757 8758 8759 8760 8761 8762 8763 8764 8765 shared_archive_member_spec= 8766case $host,$enable_shared in 8767power*-*-aix[5-9]*,yes) 8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8769$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8770 8771# Check whether --with-aix-soname was given. 8772if test "${with_aix_soname+set}" = set; then : 8773 withval=$with_aix_soname; case $withval in 8774 aix|svr4|both) 8775 ;; 8776 *) 8777 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8778 ;; 8779 esac 8780 lt_cv_with_aix_soname=$with_aix_soname 8781else 8782 if ${lt_cv_with_aix_soname+:} false; then : 8783 $as_echo_n "(cached) " >&6 8784else 8785 lt_cv_with_aix_soname=aix 8786fi 8787 8788 with_aix_soname=$lt_cv_with_aix_soname 8789fi 8790 8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8792$as_echo "$with_aix_soname" >&6; } 8793 if test aix != "$with_aix_soname"; then 8794 # For the AIX way of multilib, we name the shared archive member 8795 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8796 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8797 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8798 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8799 if test 64 = "${OBJECT_MODE-32}"; then 8800 shared_archive_member_spec=shr_64 8801 else 8802 shared_archive_member_spec=shr 8803 fi 8804 fi 8805 ;; 8806*) 8807 with_aix_soname=aix 8808 ;; 8809esac 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820# This can be used to rebuild libtool when needed 8821LIBTOOL_DEPS=$ltmain 8822 8823# Always use our own libtool. 8824LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855test -z "$LN_S" && LN_S="ln -s" 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870if test -n "${ZSH_VERSION+set}"; then 8871 setopt NO_GLOB_SUBST 8872fi 8873 8874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8875$as_echo_n "checking for objdir... " >&6; } 8876if ${lt_cv_objdir+:} false; then : 8877 $as_echo_n "(cached) " >&6 8878else 8879 rm -f .libs 2>/dev/null 8880mkdir .libs 2>/dev/null 8881if test -d .libs; then 8882 lt_cv_objdir=.libs 8883else 8884 # MS-DOS does not allow filenames that begin with a dot. 8885 lt_cv_objdir=_libs 8886fi 8887rmdir .libs 2>/dev/null 8888fi 8889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8890$as_echo "$lt_cv_objdir" >&6; } 8891objdir=$lt_cv_objdir 8892 8893 8894 8895 8896 8897cat >>confdefs.h <<_ACEOF 8898#define LT_OBJDIR "$lt_cv_objdir/" 8899_ACEOF 8900 8901 8902 8903 8904case $host_os in 8905aix3*) 8906 # AIX sometimes has problems with the GCC collect2 program. For some 8907 # reason, if we set the COLLECT_NAMES environment variable, the problems 8908 # vanish in a puff of smoke. 8909 if test set != "${COLLECT_NAMES+set}"; then 8910 COLLECT_NAMES= 8911 export COLLECT_NAMES 8912 fi 8913 ;; 8914esac 8915 8916# Global variables: 8917ofile=libtool 8918can_build_shared=yes 8919 8920# All known linkers require a '.a' archive for static linking (except MSVC, 8921# which needs '.lib'). 8922libext=a 8923 8924with_gnu_ld=$lt_cv_prog_gnu_ld 8925 8926old_CC=$CC 8927old_CFLAGS=$CFLAGS 8928 8929# Set sane defaults for various variables 8930test -z "$CC" && CC=cc 8931test -z "$LTCC" && LTCC=$CC 8932test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8933test -z "$LD" && LD=ld 8934test -z "$ac_objext" && ac_objext=o 8935 8936func_cc_basename $compiler 8937cc_basename=$func_cc_basename_result 8938 8939 8940# Only perform the check for file, if the check method requires it 8941test -z "$MAGIC_CMD" && MAGIC_CMD=file 8942case $deplibs_check_method in 8943file_magic*) 8944 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8946$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8947if ${lt_cv_path_MAGIC_CMD+:} false; then : 8948 $as_echo_n "(cached) " >&6 8949else 8950 case $MAGIC_CMD in 8951[\\/*] | ?:[\\/]*) 8952 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8953 ;; 8954*) 8955 lt_save_MAGIC_CMD=$MAGIC_CMD 8956 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8957 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8958 for ac_dir in $ac_dummy; do 8959 IFS=$lt_save_ifs 8960 test -z "$ac_dir" && ac_dir=. 8961 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8962 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8963 if test -n "$file_magic_test_file"; then 8964 case $deplibs_check_method in 8965 "file_magic "*) 8966 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8967 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8968 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8969 $EGREP "$file_magic_regex" > /dev/null; then 8970 : 8971 else 8972 cat <<_LT_EOF 1>&2 8973 8974*** Warning: the command libtool uses to detect shared libraries, 8975*** $file_magic_cmd, produces output that libtool cannot recognize. 8976*** The result is that libtool may fail to recognize shared libraries 8977*** as such. This will affect the creation of libtool libraries that 8978*** depend on shared libraries, but programs linked with such libtool 8979*** libraries will work regardless of this problem. Nevertheless, you 8980*** may want to report the problem to your system manager and/or to 8981*** bug-libtool@gnu.org 8982 8983_LT_EOF 8984 fi ;; 8985 esac 8986 fi 8987 break 8988 fi 8989 done 8990 IFS=$lt_save_ifs 8991 MAGIC_CMD=$lt_save_MAGIC_CMD 8992 ;; 8993esac 8994fi 8995 8996MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8997if test -n "$MAGIC_CMD"; then 8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8999$as_echo "$MAGIC_CMD" >&6; } 9000else 9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9002$as_echo "no" >&6; } 9003fi 9004 9005 9006 9007 9008 9009if test -z "$lt_cv_path_MAGIC_CMD"; then 9010 if test -n "$ac_tool_prefix"; then 9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9012$as_echo_n "checking for file... " >&6; } 9013if ${lt_cv_path_MAGIC_CMD+:} false; then : 9014 $as_echo_n "(cached) " >&6 9015else 9016 case $MAGIC_CMD in 9017[\\/*] | ?:[\\/]*) 9018 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9019 ;; 9020*) 9021 lt_save_MAGIC_CMD=$MAGIC_CMD 9022 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9023 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9024 for ac_dir in $ac_dummy; do 9025 IFS=$lt_save_ifs 9026 test -z "$ac_dir" && ac_dir=. 9027 if test -f "$ac_dir/file"; then 9028 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9029 if test -n "$file_magic_test_file"; then 9030 case $deplibs_check_method in 9031 "file_magic "*) 9032 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9033 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9034 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9035 $EGREP "$file_magic_regex" > /dev/null; then 9036 : 9037 else 9038 cat <<_LT_EOF 1>&2 9039 9040*** Warning: the command libtool uses to detect shared libraries, 9041*** $file_magic_cmd, produces output that libtool cannot recognize. 9042*** The result is that libtool may fail to recognize shared libraries 9043*** as such. This will affect the creation of libtool libraries that 9044*** depend on shared libraries, but programs linked with such libtool 9045*** libraries will work regardless of this problem. Nevertheless, you 9046*** may want to report the problem to your system manager and/or to 9047*** bug-libtool@gnu.org 9048 9049_LT_EOF 9050 fi ;; 9051 esac 9052 fi 9053 break 9054 fi 9055 done 9056 IFS=$lt_save_ifs 9057 MAGIC_CMD=$lt_save_MAGIC_CMD 9058 ;; 9059esac 9060fi 9061 9062MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9063if test -n "$MAGIC_CMD"; then 9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9065$as_echo "$MAGIC_CMD" >&6; } 9066else 9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9068$as_echo "no" >&6; } 9069fi 9070 9071 9072 else 9073 MAGIC_CMD=: 9074 fi 9075fi 9076 9077 fi 9078 ;; 9079esac 9080 9081# Use C for the default configuration in the libtool script 9082 9083lt_save_CC=$CC 9084ac_ext=c 9085ac_cpp='$CPP $CPPFLAGS' 9086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9088ac_compiler_gnu=$ac_cv_c_compiler_gnu 9089 9090 9091# Source file extension for C test sources. 9092ac_ext=c 9093 9094# Object file extension for compiled C test sources. 9095objext=o 9096objext=$objext 9097 9098# Code to be used in simple compile tests 9099lt_simple_compile_test_code="int some_variable = 0;" 9100 9101# Code to be used in simple link tests 9102lt_simple_link_test_code='int main(){return(0);}' 9103 9104 9105 9106 9107 9108 9109 9110# If no C compiler was specified, use CC. 9111LTCC=${LTCC-"$CC"} 9112 9113# If no C compiler flags were specified, use CFLAGS. 9114LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9115 9116# Allow CC to be a program name with arguments. 9117compiler=$CC 9118 9119# Save the default compiler, since it gets overwritten when the other 9120# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9121compiler_DEFAULT=$CC 9122 9123# save warnings/boilerplate of simple test code 9124ac_outfile=conftest.$ac_objext 9125echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9126eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9127_lt_compiler_boilerplate=`cat conftest.err` 9128$RM conftest* 9129 9130ac_outfile=conftest.$ac_objext 9131echo "$lt_simple_link_test_code" >conftest.$ac_ext 9132eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9133_lt_linker_boilerplate=`cat conftest.err` 9134$RM -r conftest* 9135 9136 9137## CAVEAT EMPTOR: 9138## There is no encapsulation within the following macros, do not change 9139## the running order or otherwise move them around unless you know exactly 9140## what you are doing... 9141if test -n "$compiler"; then 9142 9143lt_prog_compiler_no_builtin_flag= 9144 9145if test yes = "$GCC"; then 9146 case $cc_basename in 9147 nvcc*) 9148 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9149 *) 9150 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9151 esac 9152 9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9154$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9155if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9156 $as_echo_n "(cached) " >&6 9157else 9158 lt_cv_prog_compiler_rtti_exceptions=no 9159 ac_outfile=conftest.$ac_objext 9160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9161 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9162 # Insert the option either (1) after the last *FLAGS variable, or 9163 # (2) before a word containing "conftest.", or (3) at the end. 9164 # Note that $ac_compile itself does not contain backslashes and begins 9165 # with a dollar sign (not a hyphen), so the echo should work correctly. 9166 # The option is referenced via a variable to avoid confusing sed. 9167 lt_compile=`echo "$ac_compile" | $SED \ 9168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9170 -e 's:$: $lt_compiler_flag:'` 9171 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9172 (eval "$lt_compile" 2>conftest.err) 9173 ac_status=$? 9174 cat conftest.err >&5 9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9176 if (exit $ac_status) && test -s "$ac_outfile"; then 9177 # The compiler can only warn and ignore the option if not recognized 9178 # So say no if there are warnings other than the usual output. 9179 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9181 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9182 lt_cv_prog_compiler_rtti_exceptions=yes 9183 fi 9184 fi 9185 $RM conftest* 9186 9187fi 9188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9189$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9190 9191if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9192 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9193else 9194 : 9195fi 9196 9197fi 9198 9199 9200 9201 9202 9203 9204 lt_prog_compiler_wl= 9205lt_prog_compiler_pic= 9206lt_prog_compiler_static= 9207 9208 9209 if test yes = "$GCC"; then 9210 lt_prog_compiler_wl='-Wl,' 9211 lt_prog_compiler_static='-static' 9212 9213 case $host_os in 9214 aix*) 9215 # All AIX code is PIC. 9216 if test ia64 = "$host_cpu"; then 9217 # AIX 5 now supports IA64 processor 9218 lt_prog_compiler_static='-Bstatic' 9219 fi 9220 lt_prog_compiler_pic='-fPIC' 9221 ;; 9222 9223 amigaos*) 9224 case $host_cpu in 9225 powerpc) 9226 # see comment about AmigaOS4 .so support 9227 lt_prog_compiler_pic='-fPIC' 9228 ;; 9229 m68k) 9230 # FIXME: we need at least 68020 code to build shared libraries, but 9231 # adding the '-m68020' flag to GCC prevents building anything better, 9232 # like '-m68040'. 9233 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9234 ;; 9235 esac 9236 ;; 9237 9238 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9239 # PIC is the default for these OSes. 9240 ;; 9241 9242 mingw* | cygwin* | pw32* | os2* | cegcc*) 9243 # This hack is so that the source file can tell whether it is being 9244 # built for inclusion in a dll (and should export symbols for example). 9245 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9246 # (--disable-auto-import) libraries 9247 lt_prog_compiler_pic='-DDLL_EXPORT' 9248 case $host_os in 9249 os2*) 9250 lt_prog_compiler_static='$wl-static' 9251 ;; 9252 esac 9253 ;; 9254 9255 darwin* | rhapsody*) 9256 # PIC is the default on this platform 9257 # Common symbols not allowed in MH_DYLIB files 9258 lt_prog_compiler_pic='-fno-common' 9259 ;; 9260 9261 haiku*) 9262 # PIC is the default for Haiku. 9263 # The "-static" flag exists, but is broken. 9264 lt_prog_compiler_static= 9265 ;; 9266 9267 hpux*) 9268 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9269 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9270 # sets the default TLS model and affects inlining. 9271 case $host_cpu in 9272 hppa*64*) 9273 # +Z the default 9274 ;; 9275 *) 9276 lt_prog_compiler_pic='-fPIC' 9277 ;; 9278 esac 9279 ;; 9280 9281 interix[3-9]*) 9282 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9283 # Instead, we relocate shared libraries at runtime. 9284 ;; 9285 9286 msdosdjgpp*) 9287 # Just because we use GCC doesn't mean we suddenly get shared libraries 9288 # on systems that don't support them. 9289 lt_prog_compiler_can_build_shared=no 9290 enable_shared=no 9291 ;; 9292 9293 *nto* | *qnx*) 9294 # QNX uses GNU C++, but need to define -shared option too, otherwise 9295 # it will coredump. 9296 lt_prog_compiler_pic='-fPIC -shared' 9297 ;; 9298 9299 sysv4*MP*) 9300 if test -d /usr/nec; then 9301 lt_prog_compiler_pic=-Kconform_pic 9302 fi 9303 ;; 9304 9305 *) 9306 lt_prog_compiler_pic='-fPIC' 9307 ;; 9308 esac 9309 9310 case $cc_basename in 9311 nvcc*) # Cuda Compiler Driver 2.2 9312 lt_prog_compiler_wl='-Xlinker ' 9313 if test -n "$lt_prog_compiler_pic"; then 9314 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9315 fi 9316 ;; 9317 esac 9318 else 9319 # PORTME Check for flag to pass linker flags through the system compiler. 9320 case $host_os in 9321 aix*) 9322 lt_prog_compiler_wl='-Wl,' 9323 if test ia64 = "$host_cpu"; then 9324 # AIX 5 now supports IA64 processor 9325 lt_prog_compiler_static='-Bstatic' 9326 else 9327 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9328 fi 9329 ;; 9330 9331 darwin* | rhapsody*) 9332 # PIC is the default on this platform 9333 # Common symbols not allowed in MH_DYLIB files 9334 lt_prog_compiler_pic='-fno-common' 9335 case $cc_basename in 9336 nagfor*) 9337 # NAG Fortran compiler 9338 lt_prog_compiler_wl='-Wl,-Wl,,' 9339 lt_prog_compiler_pic='-PIC' 9340 lt_prog_compiler_static='-Bstatic' 9341 ;; 9342 esac 9343 ;; 9344 9345 mingw* | cygwin* | pw32* | os2* | cegcc*) 9346 # This hack is so that the source file can tell whether it is being 9347 # built for inclusion in a dll (and should export symbols for example). 9348 lt_prog_compiler_pic='-DDLL_EXPORT' 9349 case $host_os in 9350 os2*) 9351 lt_prog_compiler_static='$wl-static' 9352 ;; 9353 esac 9354 ;; 9355 9356 hpux9* | hpux10* | hpux11*) 9357 lt_prog_compiler_wl='-Wl,' 9358 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9359 # not for PA HP-UX. 9360 case $host_cpu in 9361 hppa*64*|ia64*) 9362 # +Z the default 9363 ;; 9364 *) 9365 lt_prog_compiler_pic='+Z' 9366 ;; 9367 esac 9368 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9369 lt_prog_compiler_static='$wl-a ${wl}archive' 9370 ;; 9371 9372 irix5* | irix6* | nonstopux*) 9373 lt_prog_compiler_wl='-Wl,' 9374 # PIC (with -KPIC) is the default. 9375 lt_prog_compiler_static='-non_shared' 9376 ;; 9377 9378 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9379 case $cc_basename in 9380 # old Intel for x86_64, which still supported -KPIC. 9381 ecc*) 9382 lt_prog_compiler_wl='-Wl,' 9383 lt_prog_compiler_pic='-KPIC' 9384 lt_prog_compiler_static='-static' 9385 ;; 9386 # icc used to be incompatible with GCC. 9387 # ICC 10 doesn't accept -KPIC any more. 9388 icc* | ifort*) 9389 lt_prog_compiler_wl='-Wl,' 9390 lt_prog_compiler_pic='-fPIC' 9391 lt_prog_compiler_static='-static' 9392 ;; 9393 # Lahey Fortran 8.1. 9394 lf95*) 9395 lt_prog_compiler_wl='-Wl,' 9396 lt_prog_compiler_pic='--shared' 9397 lt_prog_compiler_static='--static' 9398 ;; 9399 nagfor*) 9400 # NAG Fortran compiler 9401 lt_prog_compiler_wl='-Wl,-Wl,,' 9402 lt_prog_compiler_pic='-PIC' 9403 lt_prog_compiler_static='-Bstatic' 9404 ;; 9405 tcc*) 9406 # Fabrice Bellard et al's Tiny C Compiler 9407 lt_prog_compiler_wl='-Wl,' 9408 lt_prog_compiler_pic='-fPIC' 9409 lt_prog_compiler_static='-static' 9410 ;; 9411 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9412 # Portland Group compilers (*not* the Pentium gcc compiler, 9413 # which looks to be a dead project) 9414 lt_prog_compiler_wl='-Wl,' 9415 lt_prog_compiler_pic='-fpic' 9416 lt_prog_compiler_static='-Bstatic' 9417 ;; 9418 ccc*) 9419 lt_prog_compiler_wl='-Wl,' 9420 # All Alpha code is PIC. 9421 lt_prog_compiler_static='-non_shared' 9422 ;; 9423 xl* | bgxl* | bgf* | mpixl*) 9424 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9425 lt_prog_compiler_wl='-Wl,' 9426 lt_prog_compiler_pic='-qpic' 9427 lt_prog_compiler_static='-qstaticlink' 9428 ;; 9429 *) 9430 case `$CC -V 2>&1 | sed 5q` in 9431 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9432 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9433 lt_prog_compiler_pic='-KPIC' 9434 lt_prog_compiler_static='-Bstatic' 9435 lt_prog_compiler_wl='' 9436 ;; 9437 *Sun\ F* | *Sun*Fortran*) 9438 lt_prog_compiler_pic='-KPIC' 9439 lt_prog_compiler_static='-Bstatic' 9440 lt_prog_compiler_wl='-Qoption ld ' 9441 ;; 9442 *Sun\ C*) 9443 # Sun C 5.9 9444 lt_prog_compiler_pic='-KPIC' 9445 lt_prog_compiler_static='-Bstatic' 9446 lt_prog_compiler_wl='-Wl,' 9447 ;; 9448 *Intel*\ [CF]*Compiler*) 9449 lt_prog_compiler_wl='-Wl,' 9450 lt_prog_compiler_pic='-fPIC' 9451 lt_prog_compiler_static='-static' 9452 ;; 9453 *Portland\ Group*) 9454 lt_prog_compiler_wl='-Wl,' 9455 lt_prog_compiler_pic='-fpic' 9456 lt_prog_compiler_static='-Bstatic' 9457 ;; 9458 esac 9459 ;; 9460 esac 9461 ;; 9462 9463 newsos6) 9464 lt_prog_compiler_pic='-KPIC' 9465 lt_prog_compiler_static='-Bstatic' 9466 ;; 9467 9468 *nto* | *qnx*) 9469 # QNX uses GNU C++, but need to define -shared option too, otherwise 9470 # it will coredump. 9471 lt_prog_compiler_pic='-fPIC -shared' 9472 ;; 9473 9474 osf3* | osf4* | osf5*) 9475 lt_prog_compiler_wl='-Wl,' 9476 # All OSF/1 code is PIC. 9477 lt_prog_compiler_static='-non_shared' 9478 ;; 9479 9480 rdos*) 9481 lt_prog_compiler_static='-non_shared' 9482 ;; 9483 9484 solaris*) 9485 lt_prog_compiler_pic='-KPIC' 9486 lt_prog_compiler_static='-Bstatic' 9487 case $cc_basename in 9488 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9489 lt_prog_compiler_wl='-Qoption ld ';; 9490 *) 9491 lt_prog_compiler_wl='-Wl,';; 9492 esac 9493 ;; 9494 9495 sunos4*) 9496 lt_prog_compiler_wl='-Qoption ld ' 9497 lt_prog_compiler_pic='-PIC' 9498 lt_prog_compiler_static='-Bstatic' 9499 ;; 9500 9501 sysv4 | sysv4.2uw2* | sysv4.3*) 9502 lt_prog_compiler_wl='-Wl,' 9503 lt_prog_compiler_pic='-KPIC' 9504 lt_prog_compiler_static='-Bstatic' 9505 ;; 9506 9507 sysv4*MP*) 9508 if test -d /usr/nec; then 9509 lt_prog_compiler_pic='-Kconform_pic' 9510 lt_prog_compiler_static='-Bstatic' 9511 fi 9512 ;; 9513 9514 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9515 lt_prog_compiler_wl='-Wl,' 9516 lt_prog_compiler_pic='-KPIC' 9517 lt_prog_compiler_static='-Bstatic' 9518 ;; 9519 9520 unicos*) 9521 lt_prog_compiler_wl='-Wl,' 9522 lt_prog_compiler_can_build_shared=no 9523 ;; 9524 9525 uts4*) 9526 lt_prog_compiler_pic='-pic' 9527 lt_prog_compiler_static='-Bstatic' 9528 ;; 9529 9530 *) 9531 lt_prog_compiler_can_build_shared=no 9532 ;; 9533 esac 9534 fi 9535 9536case $host_os in 9537 # For platforms that do not support PIC, -DPIC is meaningless: 9538 *djgpp*) 9539 lt_prog_compiler_pic= 9540 ;; 9541 *) 9542 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9543 ;; 9544esac 9545 9546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9547$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9548if ${lt_cv_prog_compiler_pic+:} false; then : 9549 $as_echo_n "(cached) " >&6 9550else 9551 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9552fi 9553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9554$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9555lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9556 9557# 9558# Check to make sure the PIC flag actually works. 9559# 9560if test -n "$lt_prog_compiler_pic"; then 9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9562$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9563if ${lt_cv_prog_compiler_pic_works+:} false; then : 9564 $as_echo_n "(cached) " >&6 9565else 9566 lt_cv_prog_compiler_pic_works=no 9567 ac_outfile=conftest.$ac_objext 9568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9569 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9570 # Insert the option either (1) after the last *FLAGS variable, or 9571 # (2) before a word containing "conftest.", or (3) at the end. 9572 # Note that $ac_compile itself does not contain backslashes and begins 9573 # with a dollar sign (not a hyphen), so the echo should work correctly. 9574 # The option is referenced via a variable to avoid confusing sed. 9575 lt_compile=`echo "$ac_compile" | $SED \ 9576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9578 -e 's:$: $lt_compiler_flag:'` 9579 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9580 (eval "$lt_compile" 2>conftest.err) 9581 ac_status=$? 9582 cat conftest.err >&5 9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9584 if (exit $ac_status) && test -s "$ac_outfile"; then 9585 # The compiler can only warn and ignore the option if not recognized 9586 # So say no if there are warnings other than the usual output. 9587 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9588 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9589 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9590 lt_cv_prog_compiler_pic_works=yes 9591 fi 9592 fi 9593 $RM conftest* 9594 9595fi 9596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9597$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9598 9599if test yes = "$lt_cv_prog_compiler_pic_works"; then 9600 case $lt_prog_compiler_pic in 9601 "" | " "*) ;; 9602 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9603 esac 9604else 9605 lt_prog_compiler_pic= 9606 lt_prog_compiler_can_build_shared=no 9607fi 9608 9609fi 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621# 9622# Check to make sure the static flag actually works. 9623# 9624wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9626$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9627if ${lt_cv_prog_compiler_static_works+:} false; then : 9628 $as_echo_n "(cached) " >&6 9629else 9630 lt_cv_prog_compiler_static_works=no 9631 save_LDFLAGS=$LDFLAGS 9632 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9633 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9634 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9635 # The linker can only warn and ignore the option if not recognized 9636 # So say no if there are warnings 9637 if test -s conftest.err; then 9638 # Append any errors to the config.log. 9639 cat conftest.err 1>&5 9640 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9642 if diff conftest.exp conftest.er2 >/dev/null; then 9643 lt_cv_prog_compiler_static_works=yes 9644 fi 9645 else 9646 lt_cv_prog_compiler_static_works=yes 9647 fi 9648 fi 9649 $RM -r conftest* 9650 LDFLAGS=$save_LDFLAGS 9651 9652fi 9653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9654$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9655 9656if test yes = "$lt_cv_prog_compiler_static_works"; then 9657 : 9658else 9659 lt_prog_compiler_static= 9660fi 9661 9662 9663 9664 9665 9666 9667 9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9669$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9670if ${lt_cv_prog_compiler_c_o+:} false; then : 9671 $as_echo_n "(cached) " >&6 9672else 9673 lt_cv_prog_compiler_c_o=no 9674 $RM -r conftest 2>/dev/null 9675 mkdir conftest 9676 cd conftest 9677 mkdir out 9678 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9679 9680 lt_compiler_flag="-o out/conftest2.$ac_objext" 9681 # Insert the option either (1) after the last *FLAGS variable, or 9682 # (2) before a word containing "conftest.", or (3) at the end. 9683 # Note that $ac_compile itself does not contain backslashes and begins 9684 # with a dollar sign (not a hyphen), so the echo should work correctly. 9685 lt_compile=`echo "$ac_compile" | $SED \ 9686 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9687 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9688 -e 's:$: $lt_compiler_flag:'` 9689 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9690 (eval "$lt_compile" 2>out/conftest.err) 9691 ac_status=$? 9692 cat out/conftest.err >&5 9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9694 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9695 then 9696 # The compiler can only warn and ignore the option if not recognized 9697 # So say no if there are warnings 9698 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9699 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9700 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9701 lt_cv_prog_compiler_c_o=yes 9702 fi 9703 fi 9704 chmod u+w . 2>&5 9705 $RM conftest* 9706 # SGI C++ compiler will create directory out/ii_files/ for 9707 # template instantiation 9708 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9709 $RM out/* && rmdir out 9710 cd .. 9711 $RM -r conftest 9712 $RM conftest* 9713 9714fi 9715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9716$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9717 9718 9719 9720 9721 9722 9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9724$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9725if ${lt_cv_prog_compiler_c_o+:} false; then : 9726 $as_echo_n "(cached) " >&6 9727else 9728 lt_cv_prog_compiler_c_o=no 9729 $RM -r conftest 2>/dev/null 9730 mkdir conftest 9731 cd conftest 9732 mkdir out 9733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9734 9735 lt_compiler_flag="-o out/conftest2.$ac_objext" 9736 # Insert the option either (1) after the last *FLAGS variable, or 9737 # (2) before a word containing "conftest.", or (3) at the end. 9738 # Note that $ac_compile itself does not contain backslashes and begins 9739 # with a dollar sign (not a hyphen), so the echo should work correctly. 9740 lt_compile=`echo "$ac_compile" | $SED \ 9741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9743 -e 's:$: $lt_compiler_flag:'` 9744 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9745 (eval "$lt_compile" 2>out/conftest.err) 9746 ac_status=$? 9747 cat out/conftest.err >&5 9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9749 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9750 then 9751 # The compiler can only warn and ignore the option if not recognized 9752 # So say no if there are warnings 9753 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9754 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9755 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9756 lt_cv_prog_compiler_c_o=yes 9757 fi 9758 fi 9759 chmod u+w . 2>&5 9760 $RM conftest* 9761 # SGI C++ compiler will create directory out/ii_files/ for 9762 # template instantiation 9763 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9764 $RM out/* && rmdir out 9765 cd .. 9766 $RM -r conftest 9767 $RM conftest* 9768 9769fi 9770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9771$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9772 9773 9774 9775 9776hard_links=nottested 9777if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9778 # do not overwrite the value of need_locks provided by the user 9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9780$as_echo_n "checking if we can lock with hard links... " >&6; } 9781 hard_links=yes 9782 $RM conftest* 9783 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9784 touch conftest.a 9785 ln conftest.a conftest.b 2>&5 || hard_links=no 9786 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9788$as_echo "$hard_links" >&6; } 9789 if test no = "$hard_links"; then 9790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9791$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9792 need_locks=warn 9793 fi 9794else 9795 need_locks=no 9796fi 9797 9798 9799 9800 9801 9802 9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9804$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9805 9806 runpath_var= 9807 allow_undefined_flag= 9808 always_export_symbols=no 9809 archive_cmds= 9810 archive_expsym_cmds= 9811 compiler_needs_object=no 9812 enable_shared_with_static_runtimes=no 9813 export_dynamic_flag_spec= 9814 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9815 hardcode_automatic=no 9816 hardcode_direct=no 9817 hardcode_direct_absolute=no 9818 hardcode_libdir_flag_spec= 9819 hardcode_libdir_separator= 9820 hardcode_minus_L=no 9821 hardcode_shlibpath_var=unsupported 9822 inherit_rpath=no 9823 link_all_deplibs=unknown 9824 module_cmds= 9825 module_expsym_cmds= 9826 old_archive_from_new_cmds= 9827 old_archive_from_expsyms_cmds= 9828 thread_safe_flag_spec= 9829 whole_archive_flag_spec= 9830 # include_expsyms should be a list of space-separated symbols to be *always* 9831 # included in the symbol list 9832 include_expsyms= 9833 # exclude_expsyms can be an extended regexp of symbols to exclude 9834 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9835 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9836 # as well as any symbol that contains 'd'. 9837 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9838 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9839 # platforms (ab)use it in PIC code, but their linkers get confused if 9840 # the symbol is explicitly referenced. Since portable code cannot 9841 # rely on this symbol name, it's probably fine to never include it in 9842 # preloaded symbol tables. 9843 # Exclude shared library initialization/finalization symbols. 9844 extract_expsyms_cmds= 9845 9846 case $host_os in 9847 cygwin* | mingw* | pw32* | cegcc*) 9848 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9849 # When not using gcc, we currently assume that we are using 9850 # Microsoft Visual C++. 9851 if test yes != "$GCC"; then 9852 with_gnu_ld=no 9853 fi 9854 ;; 9855 interix*) 9856 # we just hope/assume this is gcc and not c89 (= MSVC++) 9857 with_gnu_ld=yes 9858 ;; 9859 openbsd* | bitrig*) 9860 with_gnu_ld=no 9861 ;; 9862 esac 9863 9864 ld_shlibs=yes 9865 9866 # On some targets, GNU ld is compatible enough with the native linker 9867 # that we're better off using the native interface for both. 9868 lt_use_gnu_ld_interface=no 9869 if test yes = "$with_gnu_ld"; then 9870 case $host_os in 9871 aix*) 9872 # The AIX port of GNU ld has always aspired to compatibility 9873 # with the native linker. However, as the warning in the GNU ld 9874 # block says, versions before 2.19.5* couldn't really create working 9875 # shared libraries, regardless of the interface used. 9876 case `$LD -v 2>&1` in 9877 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9878 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9879 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9880 *) 9881 lt_use_gnu_ld_interface=yes 9882 ;; 9883 esac 9884 ;; 9885 *) 9886 lt_use_gnu_ld_interface=yes 9887 ;; 9888 esac 9889 fi 9890 9891 if test yes = "$lt_use_gnu_ld_interface"; then 9892 # If archive_cmds runs LD, not CC, wlarc should be empty 9893 wlarc='$wl' 9894 9895 # Set some defaults for GNU ld with shared library support. These 9896 # are reset later if shared libraries are not supported. Putting them 9897 # here allows them to be overridden if necessary. 9898 runpath_var=LD_RUN_PATH 9899 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9900 export_dynamic_flag_spec='$wl--export-dynamic' 9901 # ancient GNU ld didn't support --whole-archive et. al. 9902 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9903 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9904 else 9905 whole_archive_flag_spec= 9906 fi 9907 supports_anon_versioning=no 9908 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9909 *GNU\ gold*) supports_anon_versioning=yes ;; 9910 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9911 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9912 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9913 *\ 2.11.*) ;; # other 2.11 versions 9914 *) supports_anon_versioning=yes ;; 9915 esac 9916 9917 # See if GNU ld supports shared libraries. 9918 case $host_os in 9919 aix[3-9]*) 9920 # On AIX/PPC, the GNU linker is very broken 9921 if test ia64 != "$host_cpu"; then 9922 ld_shlibs=no 9923 cat <<_LT_EOF 1>&2 9924 9925*** Warning: the GNU linker, at least up to release 2.19, is reported 9926*** to be unable to reliably create shared libraries on AIX. 9927*** Therefore, libtool is disabling shared libraries support. If you 9928*** really care for shared libraries, you may want to install binutils 9929*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9930*** You will then need to restart the configuration process. 9931 9932_LT_EOF 9933 fi 9934 ;; 9935 9936 amigaos*) 9937 case $host_cpu in 9938 powerpc) 9939 # see comment about AmigaOS4 .so support 9940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9941 archive_expsym_cmds='' 9942 ;; 9943 m68k) 9944 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)' 9945 hardcode_libdir_flag_spec='-L$libdir' 9946 hardcode_minus_L=yes 9947 ;; 9948 esac 9949 ;; 9950 9951 beos*) 9952 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9953 allow_undefined_flag=unsupported 9954 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9955 # support --undefined. This deserves some investigation. FIXME 9956 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9957 else 9958 ld_shlibs=no 9959 fi 9960 ;; 9961 9962 cygwin* | mingw* | pw32* | cegcc*) 9963 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9964 # as there is no search path for DLLs. 9965 hardcode_libdir_flag_spec='-L$libdir' 9966 export_dynamic_flag_spec='$wl--export-all-symbols' 9967 allow_undefined_flag=unsupported 9968 always_export_symbols=no 9969 enable_shared_with_static_runtimes=yes 9970 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9971 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9972 9973 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9974 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9975 # If the export-symbols file already is a .def file, use it as 9976 # is; otherwise, prepend EXPORTS... 9977 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9978 cp $export_symbols $output_objdir/$soname.def; 9979 else 9980 echo EXPORTS > $output_objdir/$soname.def; 9981 cat $export_symbols >> $output_objdir/$soname.def; 9982 fi~ 9983 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9984 else 9985 ld_shlibs=no 9986 fi 9987 ;; 9988 9989 haiku*) 9990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9991 link_all_deplibs=yes 9992 ;; 9993 9994 os2*) 9995 hardcode_libdir_flag_spec='-L$libdir' 9996 hardcode_minus_L=yes 9997 allow_undefined_flag=unsupported 9998 shrext_cmds=.dll 9999 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10000 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10001 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10002 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10003 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10004 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10005 emximp -o $lib $output_objdir/$libname.def' 10006 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10007 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10008 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10009 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10010 prefix_cmds="$SED"~ 10011 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10012 prefix_cmds="$prefix_cmds -e 1d"; 10013 fi~ 10014 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10015 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10016 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10017 emximp -o $lib $output_objdir/$libname.def' 10018 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10019 enable_shared_with_static_runtimes=yes 10020 ;; 10021 10022 interix[3-9]*) 10023 hardcode_direct=no 10024 hardcode_shlibpath_var=no 10025 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10026 export_dynamic_flag_spec='$wl-E' 10027 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10028 # Instead, shared libraries are loaded at an image base (0x10000000 by 10029 # default) and relocated if they conflict, which is a slow very memory 10030 # consuming and fragmenting process. To avoid this, we pick a random, 10031 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10032 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10033 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10034 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' 10035 ;; 10036 10037 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10038 tmp_diet=no 10039 if test linux-dietlibc = "$host_os"; then 10040 case $cc_basename in 10041 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10042 esac 10043 fi 10044 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10045 && test no = "$tmp_diet" 10046 then 10047 tmp_addflag=' $pic_flag' 10048 tmp_sharedflag='-shared' 10049 case $cc_basename,$host_cpu in 10050 pgcc*) # Portland Group C compiler 10051 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10052 tmp_addflag=' $pic_flag' 10053 ;; 10054 pgf77* | pgf90* | pgf95* | pgfortran*) 10055 # Portland Group f77 and f90 compilers 10056 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10057 tmp_addflag=' $pic_flag -Mnomain' ;; 10058 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10059 tmp_addflag=' -i_dynamic' ;; 10060 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10061 tmp_addflag=' -i_dynamic -nofor_main' ;; 10062 ifc* | ifort*) # Intel Fortran compiler 10063 tmp_addflag=' -nofor_main' ;; 10064 lf95*) # Lahey Fortran 8.1 10065 whole_archive_flag_spec= 10066 tmp_sharedflag='--shared' ;; 10067 nagfor*) # NAGFOR 5.3 10068 tmp_sharedflag='-Wl,-shared' ;; 10069 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10070 tmp_sharedflag='-qmkshrobj' 10071 tmp_addflag= ;; 10072 nvcc*) # Cuda Compiler Driver 2.2 10073 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10074 compiler_needs_object=yes 10075 ;; 10076 esac 10077 case `$CC -V 2>&1 | sed 5q` in 10078 *Sun\ C*) # Sun C 5.9 10079 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10080 compiler_needs_object=yes 10081 tmp_sharedflag='-G' ;; 10082 *Sun\ F*) # Sun Fortran 8.3 10083 tmp_sharedflag='-G' ;; 10084 esac 10085 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10086 10087 if test yes = "$supports_anon_versioning"; then 10088 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10089 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10090 echo "local: *; };" >> $output_objdir/$libname.ver~ 10091 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10092 fi 10093 10094 case $cc_basename in 10095 tcc*) 10096 export_dynamic_flag_spec='-rdynamic' 10097 ;; 10098 xlf* | bgf* | bgxlf* | mpixlf*) 10099 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10100 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10101 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10102 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10103 if test yes = "$supports_anon_versioning"; then 10104 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10105 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10106 echo "local: *; };" >> $output_objdir/$libname.ver~ 10107 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10108 fi 10109 ;; 10110 esac 10111 else 10112 ld_shlibs=no 10113 fi 10114 ;; 10115 10116 netbsd*) 10117 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10118 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10119 wlarc= 10120 else 10121 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10122 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10123 fi 10124 ;; 10125 10126 solaris*) 10127 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10128 ld_shlibs=no 10129 cat <<_LT_EOF 1>&2 10130 10131*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10132*** create shared libraries on Solaris systems. Therefore, libtool 10133*** is disabling shared libraries support. We urge you to upgrade GNU 10134*** binutils to release 2.9.1 or newer. Another option is to modify 10135*** your PATH or compiler configuration so that the native linker is 10136*** used, and then restart. 10137 10138_LT_EOF 10139 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10140 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10141 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10142 else 10143 ld_shlibs=no 10144 fi 10145 ;; 10146 10147 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10148 case `$LD -v 2>&1` in 10149 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10150 ld_shlibs=no 10151 cat <<_LT_EOF 1>&2 10152 10153*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10154*** reliably create shared libraries on SCO systems. Therefore, libtool 10155*** is disabling shared libraries support. We urge you to upgrade GNU 10156*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10157*** your PATH or compiler configuration so that the native linker is 10158*** used, and then restart. 10159 10160_LT_EOF 10161 ;; 10162 *) 10163 # For security reasons, it is highly recommended that you always 10164 # use absolute paths for naming shared libraries, and exclude the 10165 # DT_RUNPATH tag from executables and libraries. But doing so 10166 # requires that you compile everything twice, which is a pain. 10167 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10168 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10169 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10170 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10171 else 10172 ld_shlibs=no 10173 fi 10174 ;; 10175 esac 10176 ;; 10177 10178 sunos4*) 10179 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10180 wlarc= 10181 hardcode_direct=yes 10182 hardcode_shlibpath_var=no 10183 ;; 10184 10185 *) 10186 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10187 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10188 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10189 else 10190 ld_shlibs=no 10191 fi 10192 ;; 10193 esac 10194 10195 if test no = "$ld_shlibs"; then 10196 runpath_var= 10197 hardcode_libdir_flag_spec= 10198 export_dynamic_flag_spec= 10199 whole_archive_flag_spec= 10200 fi 10201 else 10202 # PORTME fill in a description of your system's linker (not GNU ld) 10203 case $host_os in 10204 aix3*) 10205 allow_undefined_flag=unsupported 10206 always_export_symbols=yes 10207 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' 10208 # Note: this linker hardcodes the directories in LIBPATH if there 10209 # are no directories specified by -L. 10210 hardcode_minus_L=yes 10211 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10212 # Neither direct hardcoding nor static linking is supported with a 10213 # broken collect2. 10214 hardcode_direct=unsupported 10215 fi 10216 ;; 10217 10218 aix[4-9]*) 10219 if test ia64 = "$host_cpu"; then 10220 # On IA64, the linker does run time linking by default, so we don't 10221 # have to do anything special. 10222 aix_use_runtimelinking=no 10223 exp_sym_flag='-Bexport' 10224 no_entry_flag= 10225 else 10226 # If we're using GNU nm, then we don't want the "-C" option. 10227 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10228 # Without the "-l" option, or with the "-B" option, AIX nm treats 10229 # weak defined symbols like other global defined symbols, whereas 10230 # GNU nm marks them as "W". 10231 # While the 'weak' keyword is ignored in the Export File, we need 10232 # it in the Import File for the 'aix-soname' feature, so we have 10233 # to replace the "-B" option with "-P" for AIX nm. 10234 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10235 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10236 else 10237 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10238 fi 10239 aix_use_runtimelinking=no 10240 10241 # Test if we are trying to use run time linking or normal 10242 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10243 # have runtime linking enabled, and use it for executables. 10244 # For shared libraries, we enable/disable runtime linking 10245 # depending on the kind of the shared library created - 10246 # when "with_aix_soname,aix_use_runtimelinking" is: 10247 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10248 # "aix,yes" lib.so shared, rtl:yes, for executables 10249 # lib.a static archive 10250 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10251 # lib.a(lib.so.V) shared, rtl:no, for executables 10252 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10253 # lib.a(lib.so.V) shared, rtl:no 10254 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10255 # lib.a static archive 10256 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10257 for ld_flag in $LDFLAGS; do 10258 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10259 aix_use_runtimelinking=yes 10260 break 10261 fi 10262 done 10263 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10264 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10265 # so we don't have lib.a shared libs to link our executables. 10266 # We have to force runtime linking in this case. 10267 aix_use_runtimelinking=yes 10268 LDFLAGS="$LDFLAGS -Wl,-brtl" 10269 fi 10270 ;; 10271 esac 10272 10273 exp_sym_flag='-bexport' 10274 no_entry_flag='-bnoentry' 10275 fi 10276 10277 # When large executables or shared objects are built, AIX ld can 10278 # have problems creating the table of contents. If linking a library 10279 # or program results in "error TOC overflow" add -mminimal-toc to 10280 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10281 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10282 10283 archive_cmds='' 10284 hardcode_direct=yes 10285 hardcode_direct_absolute=yes 10286 hardcode_libdir_separator=':' 10287 link_all_deplibs=yes 10288 file_list_spec='$wl-f,' 10289 case $with_aix_soname,$aix_use_runtimelinking in 10290 aix,*) ;; # traditional, no import file 10291 svr4,* | *,yes) # use import file 10292 # The Import File defines what to hardcode. 10293 hardcode_direct=no 10294 hardcode_direct_absolute=no 10295 ;; 10296 esac 10297 10298 if test yes = "$GCC"; then 10299 case $host_os in aix4.[012]|aix4.[012].*) 10300 # We only want to do this on AIX 4.2 and lower, the check 10301 # below for broken collect2 doesn't work under 4.3+ 10302 collect2name=`$CC -print-prog-name=collect2` 10303 if test -f "$collect2name" && 10304 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10305 then 10306 # We have reworked collect2 10307 : 10308 else 10309 # We have old collect2 10310 hardcode_direct=unsupported 10311 # It fails to find uninstalled libraries when the uninstalled 10312 # path is not listed in the libpath. Setting hardcode_minus_L 10313 # to unsupported forces relinking 10314 hardcode_minus_L=yes 10315 hardcode_libdir_flag_spec='-L$libdir' 10316 hardcode_libdir_separator= 10317 fi 10318 ;; 10319 esac 10320 shared_flag='-shared' 10321 if test yes = "$aix_use_runtimelinking"; then 10322 shared_flag="$shared_flag "'$wl-G' 10323 fi 10324 # Need to ensure runtime linking is disabled for the traditional 10325 # shared library, or the linker may eventually find shared libraries 10326 # /with/ Import File - we do not want to mix them. 10327 shared_flag_aix='-shared' 10328 shared_flag_svr4='-shared $wl-G' 10329 else 10330 # not using gcc 10331 if test ia64 = "$host_cpu"; then 10332 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10333 # chokes on -Wl,-G. The following line is correct: 10334 shared_flag='-G' 10335 else 10336 if test yes = "$aix_use_runtimelinking"; then 10337 shared_flag='$wl-G' 10338 else 10339 shared_flag='$wl-bM:SRE' 10340 fi 10341 shared_flag_aix='$wl-bM:SRE' 10342 shared_flag_svr4='$wl-G' 10343 fi 10344 fi 10345 10346 export_dynamic_flag_spec='$wl-bexpall' 10347 # It seems that -bexpall does not export symbols beginning with 10348 # underscore (_), so it is better to generate a list of symbols to export. 10349 always_export_symbols=yes 10350 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10351 # Warning - without using the other runtime loading flags (-brtl), 10352 # -berok will link without error, but may produce a broken library. 10353 allow_undefined_flag='-berok' 10354 # Determine the default libpath from the value encoded in an 10355 # empty executable. 10356 if test set = "${lt_cv_aix_libpath+set}"; then 10357 aix_libpath=$lt_cv_aix_libpath 10358else 10359 if ${lt_cv_aix_libpath_+:} false; then : 10360 $as_echo_n "(cached) " >&6 10361else 10362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10363/* end confdefs.h. */ 10364 10365int 10366main () 10367{ 10368 10369 ; 10370 return 0; 10371} 10372_ACEOF 10373if ac_fn_c_try_link "$LINENO"; then : 10374 10375 lt_aix_libpath_sed=' 10376 /Import File Strings/,/^$/ { 10377 /^0/ { 10378 s/^0 *\([^ ]*\) *$/\1/ 10379 p 10380 } 10381 }' 10382 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10383 # Check for a 64-bit object if we didn't find anything. 10384 if test -z "$lt_cv_aix_libpath_"; then 10385 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10386 fi 10387fi 10388rm -f core conftest.err conftest.$ac_objext \ 10389 conftest$ac_exeext conftest.$ac_ext 10390 if test -z "$lt_cv_aix_libpath_"; then 10391 lt_cv_aix_libpath_=/usr/lib:/lib 10392 fi 10393 10394fi 10395 10396 aix_libpath=$lt_cv_aix_libpath_ 10397fi 10398 10399 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10400 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10401 else 10402 if test ia64 = "$host_cpu"; then 10403 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10404 allow_undefined_flag="-z nodefs" 10405 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" 10406 else 10407 # Determine the default libpath from the value encoded in an 10408 # empty executable. 10409 if test set = "${lt_cv_aix_libpath+set}"; then 10410 aix_libpath=$lt_cv_aix_libpath 10411else 10412 if ${lt_cv_aix_libpath_+:} false; then : 10413 $as_echo_n "(cached) " >&6 10414else 10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10416/* end confdefs.h. */ 10417 10418int 10419main () 10420{ 10421 10422 ; 10423 return 0; 10424} 10425_ACEOF 10426if ac_fn_c_try_link "$LINENO"; then : 10427 10428 lt_aix_libpath_sed=' 10429 /Import File Strings/,/^$/ { 10430 /^0/ { 10431 s/^0 *\([^ ]*\) *$/\1/ 10432 p 10433 } 10434 }' 10435 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10436 # Check for a 64-bit object if we didn't find anything. 10437 if test -z "$lt_cv_aix_libpath_"; then 10438 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10439 fi 10440fi 10441rm -f core conftest.err conftest.$ac_objext \ 10442 conftest$ac_exeext conftest.$ac_ext 10443 if test -z "$lt_cv_aix_libpath_"; then 10444 lt_cv_aix_libpath_=/usr/lib:/lib 10445 fi 10446 10447fi 10448 10449 aix_libpath=$lt_cv_aix_libpath_ 10450fi 10451 10452 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10453 # Warning - without using the other run time loading flags, 10454 # -berok will link without error, but may produce a broken library. 10455 no_undefined_flag=' $wl-bernotok' 10456 allow_undefined_flag=' $wl-berok' 10457 if test yes = "$with_gnu_ld"; then 10458 # We only use this code for GNU lds that support --whole-archive. 10459 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10460 else 10461 # Exported symbols can be pulled into shared objects from archives 10462 whole_archive_flag_spec='$convenience' 10463 fi 10464 archive_cmds_need_lc=yes 10465 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10466 # -brtl affects multiple linker settings, -berok does not and is overridden later 10467 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10468 if test svr4 != "$with_aix_soname"; then 10469 # This is similar to how AIX traditionally builds its shared libraries. 10470 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10471 fi 10472 if test aix != "$with_aix_soname"; then 10473 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10474 else 10475 # used by -dlpreopen to get the symbols 10476 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10477 fi 10478 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10479 fi 10480 fi 10481 ;; 10482 10483 amigaos*) 10484 case $host_cpu in 10485 powerpc) 10486 # see comment about AmigaOS4 .so support 10487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10488 archive_expsym_cmds='' 10489 ;; 10490 m68k) 10491 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)' 10492 hardcode_libdir_flag_spec='-L$libdir' 10493 hardcode_minus_L=yes 10494 ;; 10495 esac 10496 ;; 10497 10498 bsdi[45]*) 10499 export_dynamic_flag_spec=-rdynamic 10500 ;; 10501 10502 cygwin* | mingw* | pw32* | cegcc*) 10503 # When not using gcc, we currently assume that we are using 10504 # Microsoft Visual C++. 10505 # hardcode_libdir_flag_spec is actually meaningless, as there is 10506 # no search path for DLLs. 10507 case $cc_basename in 10508 cl*) 10509 # Native MSVC 10510 hardcode_libdir_flag_spec=' ' 10511 allow_undefined_flag=unsupported 10512 always_export_symbols=yes 10513 file_list_spec='@' 10514 # Tell ltmain to make .lib files, not .a files. 10515 libext=lib 10516 # Tell ltmain to make .dll files, not .so files. 10517 shrext_cmds=.dll 10518 # FIXME: Setting linknames here is a bad hack. 10519 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10520 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10521 cp "$export_symbols" "$output_objdir/$soname.def"; 10522 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10523 else 10524 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10525 fi~ 10526 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10527 linknames=' 10528 # The linker will not automatically build a static lib if we build a DLL. 10529 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10530 enable_shared_with_static_runtimes=yes 10531 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10532 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10533 # Don't use ranlib 10534 old_postinstall_cmds='chmod 644 $oldlib' 10535 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10536 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10537 case $lt_outputfile in 10538 *.exe|*.EXE) ;; 10539 *) 10540 lt_outputfile=$lt_outputfile.exe 10541 lt_tool_outputfile=$lt_tool_outputfile.exe 10542 ;; 10543 esac~ 10544 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10545 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10546 $RM "$lt_outputfile.manifest"; 10547 fi' 10548 ;; 10549 *) 10550 # Assume MSVC wrapper 10551 hardcode_libdir_flag_spec=' ' 10552 allow_undefined_flag=unsupported 10553 # Tell ltmain to make .lib files, not .a files. 10554 libext=lib 10555 # Tell ltmain to make .dll files, not .so files. 10556 shrext_cmds=.dll 10557 # FIXME: Setting linknames here is a bad hack. 10558 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10559 # The linker will automatically build a .lib file if we build a DLL. 10560 old_archive_from_new_cmds='true' 10561 # FIXME: Should let the user specify the lib program. 10562 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10563 enable_shared_with_static_runtimes=yes 10564 ;; 10565 esac 10566 ;; 10567 10568 darwin* | rhapsody*) 10569 10570 10571 archive_cmds_need_lc=no 10572 hardcode_direct=no 10573 hardcode_automatic=yes 10574 hardcode_shlibpath_var=unsupported 10575 if test yes = "$lt_cv_ld_force_load"; then 10576 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 10577 10578 else 10579 whole_archive_flag_spec='' 10580 fi 10581 link_all_deplibs=yes 10582 allow_undefined_flag=$_lt_dar_allow_undefined 10583 case $cc_basename in 10584 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10585 *) _lt_dar_can_shared=$GCC ;; 10586 esac 10587 if test yes = "$_lt_dar_can_shared"; then 10588 output_verbose_link_cmd=func_echo_all 10589 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10590 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10591 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" 10592 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" 10593 10594 else 10595 ld_shlibs=no 10596 fi 10597 10598 ;; 10599 10600 dgux*) 10601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10602 hardcode_libdir_flag_spec='-L$libdir' 10603 hardcode_shlibpath_var=no 10604 ;; 10605 10606 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10607 # support. Future versions do this automatically, but an explicit c++rt0.o 10608 # does not break anything, and helps significantly (at the cost of a little 10609 # extra space). 10610 freebsd2.2*) 10611 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10612 hardcode_libdir_flag_spec='-R$libdir' 10613 hardcode_direct=yes 10614 hardcode_shlibpath_var=no 10615 ;; 10616 10617 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10618 freebsd2.*) 10619 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10620 hardcode_direct=yes 10621 hardcode_minus_L=yes 10622 hardcode_shlibpath_var=no 10623 ;; 10624 10625 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10626 freebsd* | dragonfly*) 10627 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10628 hardcode_libdir_flag_spec='-R$libdir' 10629 hardcode_direct=yes 10630 hardcode_shlibpath_var=no 10631 ;; 10632 10633 hpux9*) 10634 if test yes = "$GCC"; then 10635 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10636 else 10637 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10638 fi 10639 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10640 hardcode_libdir_separator=: 10641 hardcode_direct=yes 10642 10643 # hardcode_minus_L: Not really in the search PATH, 10644 # but as the default location of the library. 10645 hardcode_minus_L=yes 10646 export_dynamic_flag_spec='$wl-E' 10647 ;; 10648 10649 hpux10*) 10650 if test yes,no = "$GCC,$with_gnu_ld"; then 10651 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10652 else 10653 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10654 fi 10655 if test no = "$with_gnu_ld"; then 10656 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10657 hardcode_libdir_separator=: 10658 hardcode_direct=yes 10659 hardcode_direct_absolute=yes 10660 export_dynamic_flag_spec='$wl-E' 10661 # hardcode_minus_L: Not really in the search PATH, 10662 # but as the default location of the library. 10663 hardcode_minus_L=yes 10664 fi 10665 ;; 10666 10667 hpux11*) 10668 if test yes,no = "$GCC,$with_gnu_ld"; then 10669 case $host_cpu in 10670 hppa*64*) 10671 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10672 ;; 10673 ia64*) 10674 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10675 ;; 10676 *) 10677 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10678 ;; 10679 esac 10680 else 10681 case $host_cpu in 10682 hppa*64*) 10683 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10684 ;; 10685 ia64*) 10686 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10687 ;; 10688 *) 10689 10690 # Older versions of the 11.00 compiler do not understand -b yet 10691 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10693$as_echo_n "checking if $CC understands -b... " >&6; } 10694if ${lt_cv_prog_compiler__b+:} false; then : 10695 $as_echo_n "(cached) " >&6 10696else 10697 lt_cv_prog_compiler__b=no 10698 save_LDFLAGS=$LDFLAGS 10699 LDFLAGS="$LDFLAGS -b" 10700 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10701 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10702 # The linker can only warn and ignore the option if not recognized 10703 # So say no if there are warnings 10704 if test -s conftest.err; then 10705 # Append any errors to the config.log. 10706 cat conftest.err 1>&5 10707 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10709 if diff conftest.exp conftest.er2 >/dev/null; then 10710 lt_cv_prog_compiler__b=yes 10711 fi 10712 else 10713 lt_cv_prog_compiler__b=yes 10714 fi 10715 fi 10716 $RM -r conftest* 10717 LDFLAGS=$save_LDFLAGS 10718 10719fi 10720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10721$as_echo "$lt_cv_prog_compiler__b" >&6; } 10722 10723if test yes = "$lt_cv_prog_compiler__b"; then 10724 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10725else 10726 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10727fi 10728 10729 ;; 10730 esac 10731 fi 10732 if test no = "$with_gnu_ld"; then 10733 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10734 hardcode_libdir_separator=: 10735 10736 case $host_cpu in 10737 hppa*64*|ia64*) 10738 hardcode_direct=no 10739 hardcode_shlibpath_var=no 10740 ;; 10741 *) 10742 hardcode_direct=yes 10743 hardcode_direct_absolute=yes 10744 export_dynamic_flag_spec='$wl-E' 10745 10746 # hardcode_minus_L: Not really in the search PATH, 10747 # but as the default location of the library. 10748 hardcode_minus_L=yes 10749 ;; 10750 esac 10751 fi 10752 ;; 10753 10754 irix5* | irix6* | nonstopux*) 10755 if test yes = "$GCC"; then 10756 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10757 # Try to use the -exported_symbol ld option, if it does not 10758 # work, assume that -exports_file does not work either and 10759 # implicitly export all symbols. 10760 # This should be the same for all languages, so no per-tag cache variable. 10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10762$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10763if ${lt_cv_irix_exported_symbol+:} false; then : 10764 $as_echo_n "(cached) " >&6 10765else 10766 save_LDFLAGS=$LDFLAGS 10767 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10769/* end confdefs.h. */ 10770int foo (void) { return 0; } 10771_ACEOF 10772if ac_fn_c_try_link "$LINENO"; then : 10773 lt_cv_irix_exported_symbol=yes 10774else 10775 lt_cv_irix_exported_symbol=no 10776fi 10777rm -f core conftest.err conftest.$ac_objext \ 10778 conftest$ac_exeext conftest.$ac_ext 10779 LDFLAGS=$save_LDFLAGS 10780fi 10781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10782$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10783 if test yes = "$lt_cv_irix_exported_symbol"; then 10784 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 10785 fi 10786 else 10787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10788 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 10789 fi 10790 archive_cmds_need_lc='no' 10791 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10792 hardcode_libdir_separator=: 10793 inherit_rpath=yes 10794 link_all_deplibs=yes 10795 ;; 10796 10797 linux*) 10798 case $cc_basename in 10799 tcc*) 10800 # Fabrice Bellard et al's Tiny C Compiler 10801 ld_shlibs=yes 10802 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10803 ;; 10804 esac 10805 ;; 10806 10807 netbsd*) 10808 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10809 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10810 else 10811 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10812 fi 10813 hardcode_libdir_flag_spec='-R$libdir' 10814 hardcode_direct=yes 10815 hardcode_shlibpath_var=no 10816 ;; 10817 10818 newsos6) 10819 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10820 hardcode_direct=yes 10821 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10822 hardcode_libdir_separator=: 10823 hardcode_shlibpath_var=no 10824 ;; 10825 10826 *nto* | *qnx*) 10827 ;; 10828 10829 openbsd* | bitrig*) 10830 if test -f /usr/libexec/ld.so; then 10831 hardcode_direct=yes 10832 hardcode_shlibpath_var=no 10833 hardcode_direct_absolute=yes 10834 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10835 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10836 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10837 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10838 export_dynamic_flag_spec='$wl-E' 10839 else 10840 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10841 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10842 fi 10843 else 10844 ld_shlibs=no 10845 fi 10846 ;; 10847 10848 os2*) 10849 hardcode_libdir_flag_spec='-L$libdir' 10850 hardcode_minus_L=yes 10851 allow_undefined_flag=unsupported 10852 shrext_cmds=.dll 10853 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10854 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10855 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10856 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10857 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10858 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10859 emximp -o $lib $output_objdir/$libname.def' 10860 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10861 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10862 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10863 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10864 prefix_cmds="$SED"~ 10865 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10866 prefix_cmds="$prefix_cmds -e 1d"; 10867 fi~ 10868 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10869 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10870 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10871 emximp -o $lib $output_objdir/$libname.def' 10872 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10873 enable_shared_with_static_runtimes=yes 10874 ;; 10875 10876 osf3*) 10877 if test yes = "$GCC"; then 10878 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10879 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10880 else 10881 allow_undefined_flag=' -expect_unresolved \*' 10882 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10883 fi 10884 archive_cmds_need_lc='no' 10885 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10886 hardcode_libdir_separator=: 10887 ;; 10888 10889 osf4* | osf5*) # as osf3* with the addition of -msym flag 10890 if test yes = "$GCC"; then 10891 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10892 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10893 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10894 else 10895 allow_undefined_flag=' -expect_unresolved \*' 10896 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10897 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 10898 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 10899 10900 # Both c and cxx compiler support -rpath directly 10901 hardcode_libdir_flag_spec='-rpath $libdir' 10902 fi 10903 archive_cmds_need_lc='no' 10904 hardcode_libdir_separator=: 10905 ;; 10906 10907 solaris*) 10908 no_undefined_flag=' -z defs' 10909 if test yes = "$GCC"; then 10910 wlarc='$wl' 10911 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10912 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10913 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10914 else 10915 case `$CC -V 2>&1` in 10916 *"Compilers 5.0"*) 10917 wlarc='' 10918 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10919 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10920 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10921 ;; 10922 *) 10923 wlarc='$wl' 10924 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10925 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10926 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10927 ;; 10928 esac 10929 fi 10930 hardcode_libdir_flag_spec='-R$libdir' 10931 hardcode_shlibpath_var=no 10932 case $host_os in 10933 solaris2.[0-5] | solaris2.[0-5].*) ;; 10934 *) 10935 # The compiler driver will combine and reorder linker options, 10936 # but understands '-z linker_flag'. GCC discards it without '$wl', 10937 # but is careful enough not to reorder. 10938 # Supported since Solaris 2.6 (maybe 2.5.1?) 10939 if test yes = "$GCC"; then 10940 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10941 else 10942 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10943 fi 10944 ;; 10945 esac 10946 link_all_deplibs=yes 10947 ;; 10948 10949 sunos4*) 10950 if test sequent = "$host_vendor"; then 10951 # Use $CC to link under sequent, because it throws in some extra .o 10952 # files that make .init and .fini sections work. 10953 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10954 else 10955 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10956 fi 10957 hardcode_libdir_flag_spec='-L$libdir' 10958 hardcode_direct=yes 10959 hardcode_minus_L=yes 10960 hardcode_shlibpath_var=no 10961 ;; 10962 10963 sysv4) 10964 case $host_vendor in 10965 sni) 10966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10967 hardcode_direct=yes # is this really true??? 10968 ;; 10969 siemens) 10970 ## LD is ld it makes a PLAMLIB 10971 ## CC just makes a GrossModule. 10972 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10973 reload_cmds='$CC -r -o $output$reload_objs' 10974 hardcode_direct=no 10975 ;; 10976 motorola) 10977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10978 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10979 ;; 10980 esac 10981 runpath_var='LD_RUN_PATH' 10982 hardcode_shlibpath_var=no 10983 ;; 10984 10985 sysv4.3*) 10986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10987 hardcode_shlibpath_var=no 10988 export_dynamic_flag_spec='-Bexport' 10989 ;; 10990 10991 sysv4*MP*) 10992 if test -d /usr/nec; then 10993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10994 hardcode_shlibpath_var=no 10995 runpath_var=LD_RUN_PATH 10996 hardcode_runpath_var=yes 10997 ld_shlibs=yes 10998 fi 10999 ;; 11000 11001 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11002 no_undefined_flag='$wl-z,text' 11003 archive_cmds_need_lc=no 11004 hardcode_shlibpath_var=no 11005 runpath_var='LD_RUN_PATH' 11006 11007 if test yes = "$GCC"; then 11008 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11009 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11010 else 11011 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11012 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11013 fi 11014 ;; 11015 11016 sysv5* | sco3.2v5* | sco5v6*) 11017 # Note: We CANNOT use -z defs as we might desire, because we do not 11018 # link with -lc, and that would cause any symbols used from libc to 11019 # always be unresolved, which means just about no library would 11020 # ever link correctly. If we're not using GNU ld we use -z text 11021 # though, which does catch some bad symbols but isn't as heavy-handed 11022 # as -z defs. 11023 no_undefined_flag='$wl-z,text' 11024 allow_undefined_flag='$wl-z,nodefs' 11025 archive_cmds_need_lc=no 11026 hardcode_shlibpath_var=no 11027 hardcode_libdir_flag_spec='$wl-R,$libdir' 11028 hardcode_libdir_separator=':' 11029 link_all_deplibs=yes 11030 export_dynamic_flag_spec='$wl-Bexport' 11031 runpath_var='LD_RUN_PATH' 11032 11033 if test yes = "$GCC"; then 11034 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11035 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11036 else 11037 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11038 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11039 fi 11040 ;; 11041 11042 uts4*) 11043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11044 hardcode_libdir_flag_spec='-L$libdir' 11045 hardcode_shlibpath_var=no 11046 ;; 11047 11048 *) 11049 ld_shlibs=no 11050 ;; 11051 esac 11052 11053 if test sni = "$host_vendor"; then 11054 case $host in 11055 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11056 export_dynamic_flag_spec='$wl-Blargedynsym' 11057 ;; 11058 esac 11059 fi 11060 fi 11061 11062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11063$as_echo "$ld_shlibs" >&6; } 11064test no = "$ld_shlibs" && can_build_shared=no 11065 11066with_gnu_ld=$with_gnu_ld 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082# 11083# Do we need to explicitly link libc? 11084# 11085case "x$archive_cmds_need_lc" in 11086x|xyes) 11087 # Assume -lc should be added 11088 archive_cmds_need_lc=yes 11089 11090 if test yes,yes = "$GCC,$enable_shared"; then 11091 case $archive_cmds in 11092 *'~'*) 11093 # FIXME: we may have to deal with multi-command sequences. 11094 ;; 11095 '$CC '*) 11096 # Test whether the compiler implicitly links with -lc since on some 11097 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11098 # to ld, don't add -lc before -lgcc. 11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11100$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11101if ${lt_cv_archive_cmds_need_lc+:} false; then : 11102 $as_echo_n "(cached) " >&6 11103else 11104 $RM conftest* 11105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11106 11107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11108 (eval $ac_compile) 2>&5 11109 ac_status=$? 11110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11111 test $ac_status = 0; } 2>conftest.err; then 11112 soname=conftest 11113 lib=conftest 11114 libobjs=conftest.$ac_objext 11115 deplibs= 11116 wl=$lt_prog_compiler_wl 11117 pic_flag=$lt_prog_compiler_pic 11118 compiler_flags=-v 11119 linker_flags=-v 11120 verstring= 11121 output_objdir=. 11122 libname=conftest 11123 lt_save_allow_undefined_flag=$allow_undefined_flag 11124 allow_undefined_flag= 11125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11126 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11127 ac_status=$? 11128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11129 test $ac_status = 0; } 11130 then 11131 lt_cv_archive_cmds_need_lc=no 11132 else 11133 lt_cv_archive_cmds_need_lc=yes 11134 fi 11135 allow_undefined_flag=$lt_save_allow_undefined_flag 11136 else 11137 cat conftest.err 1>&5 11138 fi 11139 $RM conftest* 11140 11141fi 11142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11143$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11144 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11145 ;; 11146 esac 11147 fi 11148 ;; 11149esac 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11303$as_echo_n "checking dynamic linker characteristics... " >&6; } 11304 11305if test yes = "$GCC"; then 11306 case $host_os in 11307 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11308 *) lt_awk_arg='/^libraries:/' ;; 11309 esac 11310 case $host_os in 11311 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11312 *) lt_sed_strip_eq='s|=/|/|g' ;; 11313 esac 11314 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11315 case $lt_search_path_spec in 11316 *\;*) 11317 # if the path contains ";" then we assume it to be the separator 11318 # otherwise default to the standard path separator (i.e. ":") - it is 11319 # assumed that no part of a normal pathname contains ";" but that should 11320 # okay in the real world where ";" in dirpaths is itself problematic. 11321 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11322 ;; 11323 *) 11324 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11325 ;; 11326 esac 11327 # Ok, now we have the path, separated by spaces, we can step through it 11328 # and add multilib dir if necessary... 11329 lt_tmp_lt_search_path_spec= 11330 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11331 # ...but if some path component already ends with the multilib dir we assume 11332 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11333 case "$lt_multi_os_dir; $lt_search_path_spec " in 11334 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11335 lt_multi_os_dir= 11336 ;; 11337 esac 11338 for lt_sys_path in $lt_search_path_spec; do 11339 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11340 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11341 elif test -n "$lt_multi_os_dir"; then 11342 test -d "$lt_sys_path" && \ 11343 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11344 fi 11345 done 11346 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11347BEGIN {RS = " "; FS = "/|\n";} { 11348 lt_foo = ""; 11349 lt_count = 0; 11350 for (lt_i = NF; lt_i > 0; lt_i--) { 11351 if ($lt_i != "" && $lt_i != ".") { 11352 if ($lt_i == "..") { 11353 lt_count++; 11354 } else { 11355 if (lt_count == 0) { 11356 lt_foo = "/" $lt_i lt_foo; 11357 } else { 11358 lt_count--; 11359 } 11360 } 11361 } 11362 } 11363 if (lt_foo != "") { lt_freq[lt_foo]++; } 11364 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11365}'` 11366 # AWK program above erroneously prepends '/' to C:/dos/paths 11367 # for these hosts. 11368 case $host_os in 11369 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11370 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11371 esac 11372 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11373else 11374 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11375fi 11376library_names_spec= 11377libname_spec='lib$name' 11378soname_spec= 11379shrext_cmds=.so 11380postinstall_cmds= 11381postuninstall_cmds= 11382finish_cmds= 11383finish_eval= 11384shlibpath_var= 11385shlibpath_overrides_runpath=unknown 11386version_type=none 11387dynamic_linker="$host_os ld.so" 11388sys_lib_dlsearch_path_spec="/lib /usr/lib" 11389need_lib_prefix=unknown 11390hardcode_into_libs=no 11391 11392# when you set need_version to no, make sure it does not cause -set_version 11393# flags to be left without arguments 11394need_version=unknown 11395 11396 11397 11398case $host_os in 11399aix3*) 11400 version_type=linux # correct to gnu/linux during the next big refactor 11401 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11402 shlibpath_var=LIBPATH 11403 11404 # AIX 3 has no versioning support, so we append a major version to the name. 11405 soname_spec='$libname$release$shared_ext$major' 11406 ;; 11407 11408aix[4-9]*) 11409 version_type=linux # correct to gnu/linux during the next big refactor 11410 need_lib_prefix=no 11411 need_version=no 11412 hardcode_into_libs=yes 11413 if test ia64 = "$host_cpu"; then 11414 # AIX 5 supports IA64 11415 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11416 shlibpath_var=LD_LIBRARY_PATH 11417 else 11418 # With GCC up to 2.95.x, collect2 would create an import file 11419 # for dependence libraries. The import file would start with 11420 # the line '#! .'. This would cause the generated library to 11421 # depend on '.', always an invalid library. This was fixed in 11422 # development snapshots of GCC prior to 3.0. 11423 case $host_os in 11424 aix4 | aix4.[01] | aix4.[01].*) 11425 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11426 echo ' yes ' 11427 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11428 : 11429 else 11430 can_build_shared=no 11431 fi 11432 ;; 11433 esac 11434 # Using Import Files as archive members, it is possible to support 11435 # filename-based versioning of shared library archives on AIX. While 11436 # this would work for both with and without runtime linking, it will 11437 # prevent static linking of such archives. So we do filename-based 11438 # shared library versioning with .so extension only, which is used 11439 # when both runtime linking and shared linking is enabled. 11440 # Unfortunately, runtime linking may impact performance, so we do 11441 # not want this to be the default eventually. Also, we use the 11442 # versioned .so libs for executables only if there is the -brtl 11443 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11444 # To allow for filename-based versioning support, we need to create 11445 # libNAME.so.V as an archive file, containing: 11446 # *) an Import File, referring to the versioned filename of the 11447 # archive as well as the shared archive member, telling the 11448 # bitwidth (32 or 64) of that shared object, and providing the 11449 # list of exported symbols of that shared object, eventually 11450 # decorated with the 'weak' keyword 11451 # *) the shared object with the F_LOADONLY flag set, to really avoid 11452 # it being seen by the linker. 11453 # At run time we better use the real file rather than another symlink, 11454 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11455 11456 case $with_aix_soname,$aix_use_runtimelinking in 11457 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11458 # soname into executable. Probably we can add versioning support to 11459 # collect2, so additional links can be useful in future. 11460 aix,yes) # traditional libtool 11461 dynamic_linker='AIX unversionable lib.so' 11462 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11463 # instead of lib<name>.a to let people know that these are not 11464 # typical AIX shared libraries. 11465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11466 ;; 11467 aix,no) # traditional AIX only 11468 dynamic_linker='AIX lib.a(lib.so.V)' 11469 # We preserve .a as extension for shared libraries through AIX4.2 11470 # and later when we are not doing run time linking. 11471 library_names_spec='$libname$release.a $libname.a' 11472 soname_spec='$libname$release$shared_ext$major' 11473 ;; 11474 svr4,*) # full svr4 only 11475 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11476 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11477 # We do not specify a path in Import Files, so LIBPATH fires. 11478 shlibpath_overrides_runpath=yes 11479 ;; 11480 *,yes) # both, prefer svr4 11481 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11482 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11483 # unpreferred sharedlib libNAME.a needs extra handling 11484 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11485 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11486 # We do not specify a path in Import Files, so LIBPATH fires. 11487 shlibpath_overrides_runpath=yes 11488 ;; 11489 *,no) # both, prefer aix 11490 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11491 library_names_spec='$libname$release.a $libname.a' 11492 soname_spec='$libname$release$shared_ext$major' 11493 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11494 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11495 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11496 ;; 11497 esac 11498 shlibpath_var=LIBPATH 11499 fi 11500 ;; 11501 11502amigaos*) 11503 case $host_cpu in 11504 powerpc) 11505 # Since July 2007 AmigaOS4 officially supports .so libraries. 11506 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11508 ;; 11509 m68k) 11510 library_names_spec='$libname.ixlibrary $libname.a' 11511 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11512 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 11513 ;; 11514 esac 11515 ;; 11516 11517beos*) 11518 library_names_spec='$libname$shared_ext' 11519 dynamic_linker="$host_os ld.so" 11520 shlibpath_var=LIBRARY_PATH 11521 ;; 11522 11523bsdi[45]*) 11524 version_type=linux # correct to gnu/linux during the next big refactor 11525 need_version=no 11526 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11527 soname_spec='$libname$release$shared_ext$major' 11528 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11529 shlibpath_var=LD_LIBRARY_PATH 11530 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11531 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11532 # the default ld.so.conf also contains /usr/contrib/lib and 11533 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11534 # libtool to hard-code these into programs 11535 ;; 11536 11537cygwin* | mingw* | pw32* | cegcc*) 11538 version_type=windows 11539 shrext_cmds=.dll 11540 need_version=no 11541 need_lib_prefix=no 11542 11543 case $GCC,$cc_basename in 11544 yes,*) 11545 # gcc 11546 library_names_spec='$libname.dll.a' 11547 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11548 postinstall_cmds='base_file=`basename \$file`~ 11549 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11550 dldir=$destdir/`dirname \$dlpath`~ 11551 test -d \$dldir || mkdir -p \$dldir~ 11552 $install_prog $dir/$dlname \$dldir/$dlname~ 11553 chmod a+x \$dldir/$dlname~ 11554 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11555 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11556 fi' 11557 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11558 dlpath=$dir/\$dldll~ 11559 $RM \$dlpath' 11560 shlibpath_overrides_runpath=yes 11561 11562 case $host_os in 11563 cygwin*) 11564 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11565 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11566 11567 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11568 ;; 11569 mingw* | cegcc*) 11570 # MinGW DLLs use traditional 'lib' prefix 11571 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11572 ;; 11573 pw32*) 11574 # pw32 DLLs use 'pw' prefix rather than 'lib' 11575 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11576 ;; 11577 esac 11578 dynamic_linker='Win32 ld.exe' 11579 ;; 11580 11581 *,cl*) 11582 # Native MSVC 11583 libname_spec='$name' 11584 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11585 library_names_spec='$libname.dll.lib' 11586 11587 case $build_os in 11588 mingw*) 11589 sys_lib_search_path_spec= 11590 lt_save_ifs=$IFS 11591 IFS=';' 11592 for lt_path in $LIB 11593 do 11594 IFS=$lt_save_ifs 11595 # Let DOS variable expansion print the short 8.3 style file name. 11596 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11597 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11598 done 11599 IFS=$lt_save_ifs 11600 # Convert to MSYS style. 11601 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11602 ;; 11603 cygwin*) 11604 # Convert to unix form, then to dos form, then back to unix form 11605 # but this time dos style (no spaces!) so that the unix form looks 11606 # like /cygdrive/c/PROGRA~1:/cygdr... 11607 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11608 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11609 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11610 ;; 11611 *) 11612 sys_lib_search_path_spec=$LIB 11613 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11614 # It is most probably a Windows format PATH. 11615 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11616 else 11617 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11618 fi 11619 # FIXME: find the short name or the path components, as spaces are 11620 # common. (e.g. "Program Files" -> "PROGRA~1") 11621 ;; 11622 esac 11623 11624 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11625 postinstall_cmds='base_file=`basename \$file`~ 11626 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11627 dldir=$destdir/`dirname \$dlpath`~ 11628 test -d \$dldir || mkdir -p \$dldir~ 11629 $install_prog $dir/$dlname \$dldir/$dlname' 11630 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11631 dlpath=$dir/\$dldll~ 11632 $RM \$dlpath' 11633 shlibpath_overrides_runpath=yes 11634 dynamic_linker='Win32 link.exe' 11635 ;; 11636 11637 *) 11638 # Assume MSVC wrapper 11639 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11640 dynamic_linker='Win32 ld.exe' 11641 ;; 11642 esac 11643 # FIXME: first we should search . and the directory the executable is in 11644 shlibpath_var=PATH 11645 ;; 11646 11647darwin* | rhapsody*) 11648 dynamic_linker="$host_os dyld" 11649 version_type=darwin 11650 need_lib_prefix=no 11651 need_version=no 11652 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11653 soname_spec='$libname$release$major$shared_ext' 11654 shlibpath_overrides_runpath=yes 11655 shlibpath_var=DYLD_LIBRARY_PATH 11656 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11657 11658 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11659 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11660 ;; 11661 11662dgux*) 11663 version_type=linux # correct to gnu/linux during the next big refactor 11664 need_lib_prefix=no 11665 need_version=no 11666 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11667 soname_spec='$libname$release$shared_ext$major' 11668 shlibpath_var=LD_LIBRARY_PATH 11669 ;; 11670 11671freebsd* | dragonfly*) 11672 # DragonFly does not have aout. When/if they implement a new 11673 # versioning mechanism, adjust this. 11674 if test -x /usr/bin/objformat; then 11675 objformat=`/usr/bin/objformat` 11676 else 11677 case $host_os in 11678 freebsd[23].*) objformat=aout ;; 11679 *) objformat=elf ;; 11680 esac 11681 fi 11682 version_type=freebsd-$objformat 11683 case $version_type in 11684 freebsd-elf*) 11685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11686 soname_spec='$libname$release$shared_ext$major' 11687 need_version=no 11688 need_lib_prefix=no 11689 ;; 11690 freebsd-*) 11691 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11692 need_version=yes 11693 ;; 11694 esac 11695 shlibpath_var=LD_LIBRARY_PATH 11696 case $host_os in 11697 freebsd2.*) 11698 shlibpath_overrides_runpath=yes 11699 ;; 11700 freebsd3.[01]* | freebsdelf3.[01]*) 11701 shlibpath_overrides_runpath=yes 11702 hardcode_into_libs=yes 11703 ;; 11704 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11705 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11706 shlibpath_overrides_runpath=no 11707 hardcode_into_libs=yes 11708 ;; 11709 *) # from 4.6 on, and DragonFly 11710 shlibpath_overrides_runpath=yes 11711 hardcode_into_libs=yes 11712 ;; 11713 esac 11714 ;; 11715 11716haiku*) 11717 version_type=linux # correct to gnu/linux during the next big refactor 11718 need_lib_prefix=no 11719 need_version=no 11720 dynamic_linker="$host_os runtime_loader" 11721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11722 soname_spec='$libname$release$shared_ext$major' 11723 shlibpath_var=LIBRARY_PATH 11724 shlibpath_overrides_runpath=no 11725 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11726 hardcode_into_libs=yes 11727 ;; 11728 11729hpux9* | hpux10* | hpux11*) 11730 # Give a soname corresponding to the major version so that dld.sl refuses to 11731 # link against other versions. 11732 version_type=sunos 11733 need_lib_prefix=no 11734 need_version=no 11735 case $host_cpu in 11736 ia64*) 11737 shrext_cmds='.so' 11738 hardcode_into_libs=yes 11739 dynamic_linker="$host_os dld.so" 11740 shlibpath_var=LD_LIBRARY_PATH 11741 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11743 soname_spec='$libname$release$shared_ext$major' 11744 if test 32 = "$HPUX_IA64_MODE"; then 11745 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11746 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11747 else 11748 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11749 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11750 fi 11751 ;; 11752 hppa*64*) 11753 shrext_cmds='.sl' 11754 hardcode_into_libs=yes 11755 dynamic_linker="$host_os dld.sl" 11756 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11757 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11759 soname_spec='$libname$release$shared_ext$major' 11760 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11761 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11762 ;; 11763 *) 11764 shrext_cmds='.sl' 11765 dynamic_linker="$host_os dld.sl" 11766 shlibpath_var=SHLIB_PATH 11767 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11769 soname_spec='$libname$release$shared_ext$major' 11770 ;; 11771 esac 11772 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11773 postinstall_cmds='chmod 555 $lib' 11774 # or fails outright, so override atomically: 11775 install_override_mode=555 11776 ;; 11777 11778interix[3-9]*) 11779 version_type=linux # correct to gnu/linux during the next big refactor 11780 need_lib_prefix=no 11781 need_version=no 11782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11783 soname_spec='$libname$release$shared_ext$major' 11784 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11785 shlibpath_var=LD_LIBRARY_PATH 11786 shlibpath_overrides_runpath=no 11787 hardcode_into_libs=yes 11788 ;; 11789 11790irix5* | irix6* | nonstopux*) 11791 case $host_os in 11792 nonstopux*) version_type=nonstopux ;; 11793 *) 11794 if test yes = "$lt_cv_prog_gnu_ld"; then 11795 version_type=linux # correct to gnu/linux during the next big refactor 11796 else 11797 version_type=irix 11798 fi ;; 11799 esac 11800 need_lib_prefix=no 11801 need_version=no 11802 soname_spec='$libname$release$shared_ext$major' 11803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11804 case $host_os in 11805 irix5* | nonstopux*) 11806 libsuff= shlibsuff= 11807 ;; 11808 *) 11809 case $LD in # libtool.m4 will add one of these switches to LD 11810 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11811 libsuff= shlibsuff= libmagic=32-bit;; 11812 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11813 libsuff=32 shlibsuff=N32 libmagic=N32;; 11814 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11815 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11816 *) libsuff= shlibsuff= libmagic=never-match;; 11817 esac 11818 ;; 11819 esac 11820 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11821 shlibpath_overrides_runpath=no 11822 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11823 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11824 hardcode_into_libs=yes 11825 ;; 11826 11827# No shared lib support for Linux oldld, aout, or coff. 11828linux*oldld* | linux*aout* | linux*coff*) 11829 dynamic_linker=no 11830 ;; 11831 11832linux*android*) 11833 version_type=none # Android doesn't support versioned libraries. 11834 need_lib_prefix=no 11835 need_version=no 11836 library_names_spec='$libname$release$shared_ext' 11837 soname_spec='$libname$release$shared_ext' 11838 finish_cmds= 11839 shlibpath_var=LD_LIBRARY_PATH 11840 shlibpath_overrides_runpath=yes 11841 11842 # This implies no fast_install, which is unacceptable. 11843 # Some rework will be needed to allow for fast_install 11844 # before this can be enabled. 11845 hardcode_into_libs=yes 11846 11847 dynamic_linker='Android linker' 11848 # Don't embed -rpath directories since the linker doesn't support them. 11849 hardcode_libdir_flag_spec='-L$libdir' 11850 ;; 11851 11852# This must be glibc/ELF. 11853linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11854 version_type=linux # correct to gnu/linux during the next big refactor 11855 need_lib_prefix=no 11856 need_version=no 11857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11858 soname_spec='$libname$release$shared_ext$major' 11859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11860 shlibpath_var=LD_LIBRARY_PATH 11861 shlibpath_overrides_runpath=no 11862 11863 # Some binutils ld are patched to set DT_RUNPATH 11864 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11865 $as_echo_n "(cached) " >&6 11866else 11867 lt_cv_shlibpath_overrides_runpath=no 11868 save_LDFLAGS=$LDFLAGS 11869 save_libdir=$libdir 11870 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11871 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11873/* end confdefs.h. */ 11874 11875int 11876main () 11877{ 11878 11879 ; 11880 return 0; 11881} 11882_ACEOF 11883if ac_fn_c_try_link "$LINENO"; then : 11884 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11885 lt_cv_shlibpath_overrides_runpath=yes 11886fi 11887fi 11888rm -f core conftest.err conftest.$ac_objext \ 11889 conftest$ac_exeext conftest.$ac_ext 11890 LDFLAGS=$save_LDFLAGS 11891 libdir=$save_libdir 11892 11893fi 11894 11895 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11896 11897 # This implies no fast_install, which is unacceptable. 11898 # Some rework will be needed to allow for fast_install 11899 # before this can be enabled. 11900 hardcode_into_libs=yes 11901 11902 # Ideally, we could use ldconfig to report *all* directores which are 11903 # searched for libraries, however this is still not possible. Aside from not 11904 # being certain /sbin/ldconfig is available, command 11905 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11906 # even though it is searched at run-time. Try to do the best guess by 11907 # appending ld.so.conf contents (and includes) to the search path. 11908 if test -f /etc/ld.so.conf; then 11909 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;s/"//g;/^$/d' | tr '\n' ' '` 11910 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11911 fi 11912 11913 # We used to test for /lib/ld.so.1 and disable shared libraries on 11914 # powerpc, because MkLinux only supported shared libraries with the 11915 # GNU dynamic linker. Since this was broken with cross compilers, 11916 # most powerpc-linux boxes support dynamic linking these days and 11917 # people can always --disable-shared, the test was removed, and we 11918 # assume the GNU/Linux dynamic linker is in use. 11919 dynamic_linker='GNU/Linux ld.so' 11920 ;; 11921 11922netbsd*) 11923 version_type=sunos 11924 need_lib_prefix=no 11925 need_version=no 11926 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11927 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11929 dynamic_linker='NetBSD (a.out) ld.so' 11930 else 11931 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11932 soname_spec='$libname$release$shared_ext$major' 11933 dynamic_linker='NetBSD ld.elf_so' 11934 fi 11935 shlibpath_var=LD_LIBRARY_PATH 11936 shlibpath_overrides_runpath=yes 11937 hardcode_into_libs=yes 11938 ;; 11939 11940newsos6) 11941 version_type=linux # correct to gnu/linux during the next big refactor 11942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11943 shlibpath_var=LD_LIBRARY_PATH 11944 shlibpath_overrides_runpath=yes 11945 ;; 11946 11947*nto* | *qnx*) 11948 version_type=qnx 11949 need_lib_prefix=no 11950 need_version=no 11951 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11952 soname_spec='$libname$release$shared_ext$major' 11953 shlibpath_var=LD_LIBRARY_PATH 11954 shlibpath_overrides_runpath=no 11955 hardcode_into_libs=yes 11956 dynamic_linker='ldqnx.so' 11957 ;; 11958 11959openbsd* | bitrig*) 11960 version_type=sunos 11961 sys_lib_dlsearch_path_spec=/usr/lib 11962 need_lib_prefix=no 11963 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11964 need_version=no 11965 else 11966 need_version=yes 11967 fi 11968 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11970 shlibpath_var=LD_LIBRARY_PATH 11971 shlibpath_overrides_runpath=yes 11972 ;; 11973 11974os2*) 11975 libname_spec='$name' 11976 version_type=windows 11977 shrext_cmds=.dll 11978 need_version=no 11979 need_lib_prefix=no 11980 # OS/2 can only load a DLL with a base name of 8 characters or less. 11981 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11982 v=$($ECHO $release$versuffix | tr -d .-); 11983 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11984 $ECHO $n$v`$shared_ext' 11985 library_names_spec='${libname}_dll.$libext' 11986 dynamic_linker='OS/2 ld.exe' 11987 shlibpath_var=BEGINLIBPATH 11988 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11989 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11990 postinstall_cmds='base_file=`basename \$file`~ 11991 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11992 dldir=$destdir/`dirname \$dlpath`~ 11993 test -d \$dldir || mkdir -p \$dldir~ 11994 $install_prog $dir/$dlname \$dldir/$dlname~ 11995 chmod a+x \$dldir/$dlname~ 11996 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11997 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11998 fi' 11999 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12000 dlpath=$dir/\$dldll~ 12001 $RM \$dlpath' 12002 ;; 12003 12004osf3* | osf4* | osf5*) 12005 version_type=osf 12006 need_lib_prefix=no 12007 need_version=no 12008 soname_spec='$libname$release$shared_ext$major' 12009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12010 shlibpath_var=LD_LIBRARY_PATH 12011 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12012 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12013 ;; 12014 12015rdos*) 12016 dynamic_linker=no 12017 ;; 12018 12019solaris*) 12020 version_type=linux # correct to gnu/linux during the next big refactor 12021 need_lib_prefix=no 12022 need_version=no 12023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12024 soname_spec='$libname$release$shared_ext$major' 12025 shlibpath_var=LD_LIBRARY_PATH 12026 shlibpath_overrides_runpath=yes 12027 hardcode_into_libs=yes 12028 # ldd complains unless libraries are executable 12029 postinstall_cmds='chmod +x $lib' 12030 ;; 12031 12032sunos4*) 12033 version_type=sunos 12034 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12035 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12036 shlibpath_var=LD_LIBRARY_PATH 12037 shlibpath_overrides_runpath=yes 12038 if test yes = "$with_gnu_ld"; then 12039 need_lib_prefix=no 12040 fi 12041 need_version=yes 12042 ;; 12043 12044sysv4 | sysv4.3*) 12045 version_type=linux # correct to gnu/linux during the next big refactor 12046 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12047 soname_spec='$libname$release$shared_ext$major' 12048 shlibpath_var=LD_LIBRARY_PATH 12049 case $host_vendor in 12050 sni) 12051 shlibpath_overrides_runpath=no 12052 need_lib_prefix=no 12053 runpath_var=LD_RUN_PATH 12054 ;; 12055 siemens) 12056 need_lib_prefix=no 12057 ;; 12058 motorola) 12059 need_lib_prefix=no 12060 need_version=no 12061 shlibpath_overrides_runpath=no 12062 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12063 ;; 12064 esac 12065 ;; 12066 12067sysv4*MP*) 12068 if test -d /usr/nec; then 12069 version_type=linux # correct to gnu/linux during the next big refactor 12070 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12071 soname_spec='$libname$shared_ext.$major' 12072 shlibpath_var=LD_LIBRARY_PATH 12073 fi 12074 ;; 12075 12076sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12077 version_type=sco 12078 need_lib_prefix=no 12079 need_version=no 12080 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12081 soname_spec='$libname$release$shared_ext$major' 12082 shlibpath_var=LD_LIBRARY_PATH 12083 shlibpath_overrides_runpath=yes 12084 hardcode_into_libs=yes 12085 if test yes = "$with_gnu_ld"; then 12086 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12087 else 12088 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12089 case $host_os in 12090 sco3.2v5*) 12091 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12092 ;; 12093 esac 12094 fi 12095 sys_lib_dlsearch_path_spec='/usr/lib' 12096 ;; 12097 12098tpf*) 12099 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12100 version_type=linux # correct to gnu/linux during the next big refactor 12101 need_lib_prefix=no 12102 need_version=no 12103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12104 shlibpath_var=LD_LIBRARY_PATH 12105 shlibpath_overrides_runpath=no 12106 hardcode_into_libs=yes 12107 ;; 12108 12109uts4*) 12110 version_type=linux # correct to gnu/linux during the next big refactor 12111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12112 soname_spec='$libname$release$shared_ext$major' 12113 shlibpath_var=LD_LIBRARY_PATH 12114 ;; 12115 12116*) 12117 dynamic_linker=no 12118 ;; 12119esac 12120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12121$as_echo "$dynamic_linker" >&6; } 12122test no = "$dynamic_linker" && can_build_shared=no 12123 12124variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12125if test yes = "$GCC"; then 12126 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12127fi 12128 12129if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12130 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12131fi 12132 12133if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12134 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12135fi 12136 12137# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12138configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12139 12140# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12141func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12142 12143# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12144configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12243$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12244hardcode_action= 12245if test -n "$hardcode_libdir_flag_spec" || 12246 test -n "$runpath_var" || 12247 test yes = "$hardcode_automatic"; then 12248 12249 # We can hardcode non-existent directories. 12250 if test no != "$hardcode_direct" && 12251 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12252 # have to relink, otherwise we might link with an installed library 12253 # when we should be linking with a yet-to-be-installed one 12254 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12255 test no != "$hardcode_minus_L"; then 12256 # Linking always hardcodes the temporary library directory. 12257 hardcode_action=relink 12258 else 12259 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12260 hardcode_action=immediate 12261 fi 12262else 12263 # We cannot hardcode anything, or else we can only hardcode existing 12264 # directories. 12265 hardcode_action=unsupported 12266fi 12267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12268$as_echo "$hardcode_action" >&6; } 12269 12270if test relink = "$hardcode_action" || 12271 test yes = "$inherit_rpath"; then 12272 # Fast installation is not supported 12273 enable_fast_install=no 12274elif test yes = "$shlibpath_overrides_runpath" || 12275 test no = "$enable_shared"; then 12276 # Fast installation is not necessary 12277 enable_fast_install=needless 12278fi 12279 12280 12281 12282 12283 12284 12285 if test yes != "$enable_dlopen"; then 12286 enable_dlopen=unknown 12287 enable_dlopen_self=unknown 12288 enable_dlopen_self_static=unknown 12289else 12290 lt_cv_dlopen=no 12291 lt_cv_dlopen_libs= 12292 12293 case $host_os in 12294 beos*) 12295 lt_cv_dlopen=load_add_on 12296 lt_cv_dlopen_libs= 12297 lt_cv_dlopen_self=yes 12298 ;; 12299 12300 mingw* | pw32* | cegcc*) 12301 lt_cv_dlopen=LoadLibrary 12302 lt_cv_dlopen_libs= 12303 ;; 12304 12305 cygwin*) 12306 lt_cv_dlopen=dlopen 12307 lt_cv_dlopen_libs= 12308 ;; 12309 12310 darwin*) 12311 # if libdl is installed we need to link against it 12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12313$as_echo_n "checking for dlopen in -ldl... " >&6; } 12314if ${ac_cv_lib_dl_dlopen+:} false; then : 12315 $as_echo_n "(cached) " >&6 12316else 12317 ac_check_lib_save_LIBS=$LIBS 12318LIBS="-ldl $LIBS" 12319cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12320/* end confdefs.h. */ 12321 12322/* Override any GCC internal prototype to avoid an error. 12323 Use char because int might match the return type of a GCC 12324 builtin and then its argument prototype would still apply. */ 12325#ifdef __cplusplus 12326extern "C" 12327#endif 12328char dlopen (); 12329int 12330main () 12331{ 12332return dlopen (); 12333 ; 12334 return 0; 12335} 12336_ACEOF 12337if ac_fn_c_try_link "$LINENO"; then : 12338 ac_cv_lib_dl_dlopen=yes 12339else 12340 ac_cv_lib_dl_dlopen=no 12341fi 12342rm -f core conftest.err conftest.$ac_objext \ 12343 conftest$ac_exeext conftest.$ac_ext 12344LIBS=$ac_check_lib_save_LIBS 12345fi 12346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12347$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12348if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12349 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12350else 12351 12352 lt_cv_dlopen=dyld 12353 lt_cv_dlopen_libs= 12354 lt_cv_dlopen_self=yes 12355 12356fi 12357 12358 ;; 12359 12360 tpf*) 12361 # Don't try to run any link tests for TPF. We know it's impossible 12362 # because TPF is a cross-compiler, and we know how we open DSOs. 12363 lt_cv_dlopen=dlopen 12364 lt_cv_dlopen_libs= 12365 lt_cv_dlopen_self=no 12366 ;; 12367 12368 *) 12369 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12370if test "x$ac_cv_func_shl_load" = xyes; then : 12371 lt_cv_dlopen=shl_load 12372else 12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12374$as_echo_n "checking for shl_load in -ldld... " >&6; } 12375if ${ac_cv_lib_dld_shl_load+:} false; then : 12376 $as_echo_n "(cached) " >&6 12377else 12378 ac_check_lib_save_LIBS=$LIBS 12379LIBS="-ldld $LIBS" 12380cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12381/* end confdefs.h. */ 12382 12383/* Override any GCC internal prototype to avoid an error. 12384 Use char because int might match the return type of a GCC 12385 builtin and then its argument prototype would still apply. */ 12386#ifdef __cplusplus 12387extern "C" 12388#endif 12389char shl_load (); 12390int 12391main () 12392{ 12393return shl_load (); 12394 ; 12395 return 0; 12396} 12397_ACEOF 12398if ac_fn_c_try_link "$LINENO"; then : 12399 ac_cv_lib_dld_shl_load=yes 12400else 12401 ac_cv_lib_dld_shl_load=no 12402fi 12403rm -f core conftest.err conftest.$ac_objext \ 12404 conftest$ac_exeext conftest.$ac_ext 12405LIBS=$ac_check_lib_save_LIBS 12406fi 12407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12408$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12409if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12410 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12411else 12412 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12413if test "x$ac_cv_func_dlopen" = xyes; then : 12414 lt_cv_dlopen=dlopen 12415else 12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12417$as_echo_n "checking for dlopen in -ldl... " >&6; } 12418if ${ac_cv_lib_dl_dlopen+:} false; then : 12419 $as_echo_n "(cached) " >&6 12420else 12421 ac_check_lib_save_LIBS=$LIBS 12422LIBS="-ldl $LIBS" 12423cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12424/* end confdefs.h. */ 12425 12426/* Override any GCC internal prototype to avoid an error. 12427 Use char because int might match the return type of a GCC 12428 builtin and then its argument prototype would still apply. */ 12429#ifdef __cplusplus 12430extern "C" 12431#endif 12432char dlopen (); 12433int 12434main () 12435{ 12436return dlopen (); 12437 ; 12438 return 0; 12439} 12440_ACEOF 12441if ac_fn_c_try_link "$LINENO"; then : 12442 ac_cv_lib_dl_dlopen=yes 12443else 12444 ac_cv_lib_dl_dlopen=no 12445fi 12446rm -f core conftest.err conftest.$ac_objext \ 12447 conftest$ac_exeext conftest.$ac_ext 12448LIBS=$ac_check_lib_save_LIBS 12449fi 12450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12451$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12452if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12453 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12454else 12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12456$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12457if ${ac_cv_lib_svld_dlopen+:} false; then : 12458 $as_echo_n "(cached) " >&6 12459else 12460 ac_check_lib_save_LIBS=$LIBS 12461LIBS="-lsvld $LIBS" 12462cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12463/* end confdefs.h. */ 12464 12465/* Override any GCC internal prototype to avoid an error. 12466 Use char because int might match the return type of a GCC 12467 builtin and then its argument prototype would still apply. */ 12468#ifdef __cplusplus 12469extern "C" 12470#endif 12471char dlopen (); 12472int 12473main () 12474{ 12475return dlopen (); 12476 ; 12477 return 0; 12478} 12479_ACEOF 12480if ac_fn_c_try_link "$LINENO"; then : 12481 ac_cv_lib_svld_dlopen=yes 12482else 12483 ac_cv_lib_svld_dlopen=no 12484fi 12485rm -f core conftest.err conftest.$ac_objext \ 12486 conftest$ac_exeext conftest.$ac_ext 12487LIBS=$ac_check_lib_save_LIBS 12488fi 12489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12490$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12491if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12492 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12493else 12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12495$as_echo_n "checking for dld_link in -ldld... " >&6; } 12496if ${ac_cv_lib_dld_dld_link+:} false; then : 12497 $as_echo_n "(cached) " >&6 12498else 12499 ac_check_lib_save_LIBS=$LIBS 12500LIBS="-ldld $LIBS" 12501cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12502/* end confdefs.h. */ 12503 12504/* Override any GCC internal prototype to avoid an error. 12505 Use char because int might match the return type of a GCC 12506 builtin and then its argument prototype would still apply. */ 12507#ifdef __cplusplus 12508extern "C" 12509#endif 12510char dld_link (); 12511int 12512main () 12513{ 12514return dld_link (); 12515 ; 12516 return 0; 12517} 12518_ACEOF 12519if ac_fn_c_try_link "$LINENO"; then : 12520 ac_cv_lib_dld_dld_link=yes 12521else 12522 ac_cv_lib_dld_dld_link=no 12523fi 12524rm -f core conftest.err conftest.$ac_objext \ 12525 conftest$ac_exeext conftest.$ac_ext 12526LIBS=$ac_check_lib_save_LIBS 12527fi 12528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12529$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12530if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12531 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12532fi 12533 12534 12535fi 12536 12537 12538fi 12539 12540 12541fi 12542 12543 12544fi 12545 12546 12547fi 12548 12549 ;; 12550 esac 12551 12552 if test no = "$lt_cv_dlopen"; then 12553 enable_dlopen=no 12554 else 12555 enable_dlopen=yes 12556 fi 12557 12558 case $lt_cv_dlopen in 12559 dlopen) 12560 save_CPPFLAGS=$CPPFLAGS 12561 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12562 12563 save_LDFLAGS=$LDFLAGS 12564 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12565 12566 save_LIBS=$LIBS 12567 LIBS="$lt_cv_dlopen_libs $LIBS" 12568 12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12570$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12571if ${lt_cv_dlopen_self+:} false; then : 12572 $as_echo_n "(cached) " >&6 12573else 12574 if test yes = "$cross_compiling"; then : 12575 lt_cv_dlopen_self=cross 12576else 12577 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12578 lt_status=$lt_dlunknown 12579 cat > conftest.$ac_ext <<_LT_EOF 12580#line $LINENO "configure" 12581#include "confdefs.h" 12582 12583#if HAVE_DLFCN_H 12584#include <dlfcn.h> 12585#endif 12586 12587#include <stdio.h> 12588 12589#ifdef RTLD_GLOBAL 12590# define LT_DLGLOBAL RTLD_GLOBAL 12591#else 12592# ifdef DL_GLOBAL 12593# define LT_DLGLOBAL DL_GLOBAL 12594# else 12595# define LT_DLGLOBAL 0 12596# endif 12597#endif 12598 12599/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12600 find out it does not work in some platform. */ 12601#ifndef LT_DLLAZY_OR_NOW 12602# ifdef RTLD_LAZY 12603# define LT_DLLAZY_OR_NOW RTLD_LAZY 12604# else 12605# ifdef DL_LAZY 12606# define LT_DLLAZY_OR_NOW DL_LAZY 12607# else 12608# ifdef RTLD_NOW 12609# define LT_DLLAZY_OR_NOW RTLD_NOW 12610# else 12611# ifdef DL_NOW 12612# define LT_DLLAZY_OR_NOW DL_NOW 12613# else 12614# define LT_DLLAZY_OR_NOW 0 12615# endif 12616# endif 12617# endif 12618# endif 12619#endif 12620 12621/* When -fvisibility=hidden is used, assume the code has been annotated 12622 correspondingly for the symbols needed. */ 12623#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12624int fnord () __attribute__((visibility("default"))); 12625#endif 12626 12627int fnord () { return 42; } 12628int main () 12629{ 12630 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12631 int status = $lt_dlunknown; 12632 12633 if (self) 12634 { 12635 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12636 else 12637 { 12638 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12639 else puts (dlerror ()); 12640 } 12641 /* dlclose (self); */ 12642 } 12643 else 12644 puts (dlerror ()); 12645 12646 return status; 12647} 12648_LT_EOF 12649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12650 (eval $ac_link) 2>&5 12651 ac_status=$? 12652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12653 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12654 (./conftest; exit; ) >&5 2>/dev/null 12655 lt_status=$? 12656 case x$lt_status in 12657 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12658 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12659 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12660 esac 12661 else : 12662 # compilation failed 12663 lt_cv_dlopen_self=no 12664 fi 12665fi 12666rm -fr conftest* 12667 12668 12669fi 12670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12671$as_echo "$lt_cv_dlopen_self" >&6; } 12672 12673 if test yes = "$lt_cv_dlopen_self"; then 12674 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12676$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12677if ${lt_cv_dlopen_self_static+:} false; then : 12678 $as_echo_n "(cached) " >&6 12679else 12680 if test yes = "$cross_compiling"; then : 12681 lt_cv_dlopen_self_static=cross 12682else 12683 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12684 lt_status=$lt_dlunknown 12685 cat > conftest.$ac_ext <<_LT_EOF 12686#line $LINENO "configure" 12687#include "confdefs.h" 12688 12689#if HAVE_DLFCN_H 12690#include <dlfcn.h> 12691#endif 12692 12693#include <stdio.h> 12694 12695#ifdef RTLD_GLOBAL 12696# define LT_DLGLOBAL RTLD_GLOBAL 12697#else 12698# ifdef DL_GLOBAL 12699# define LT_DLGLOBAL DL_GLOBAL 12700# else 12701# define LT_DLGLOBAL 0 12702# endif 12703#endif 12704 12705/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12706 find out it does not work in some platform. */ 12707#ifndef LT_DLLAZY_OR_NOW 12708# ifdef RTLD_LAZY 12709# define LT_DLLAZY_OR_NOW RTLD_LAZY 12710# else 12711# ifdef DL_LAZY 12712# define LT_DLLAZY_OR_NOW DL_LAZY 12713# else 12714# ifdef RTLD_NOW 12715# define LT_DLLAZY_OR_NOW RTLD_NOW 12716# else 12717# ifdef DL_NOW 12718# define LT_DLLAZY_OR_NOW DL_NOW 12719# else 12720# define LT_DLLAZY_OR_NOW 0 12721# endif 12722# endif 12723# endif 12724# endif 12725#endif 12726 12727/* When -fvisibility=hidden is used, assume the code has been annotated 12728 correspondingly for the symbols needed. */ 12729#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12730int fnord () __attribute__((visibility("default"))); 12731#endif 12732 12733int fnord () { return 42; } 12734int main () 12735{ 12736 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12737 int status = $lt_dlunknown; 12738 12739 if (self) 12740 { 12741 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12742 else 12743 { 12744 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12745 else puts (dlerror ()); 12746 } 12747 /* dlclose (self); */ 12748 } 12749 else 12750 puts (dlerror ()); 12751 12752 return status; 12753} 12754_LT_EOF 12755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12756 (eval $ac_link) 2>&5 12757 ac_status=$? 12758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12759 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12760 (./conftest; exit; ) >&5 2>/dev/null 12761 lt_status=$? 12762 case x$lt_status in 12763 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12764 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12765 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12766 esac 12767 else : 12768 # compilation failed 12769 lt_cv_dlopen_self_static=no 12770 fi 12771fi 12772rm -fr conftest* 12773 12774 12775fi 12776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12777$as_echo "$lt_cv_dlopen_self_static" >&6; } 12778 fi 12779 12780 CPPFLAGS=$save_CPPFLAGS 12781 LDFLAGS=$save_LDFLAGS 12782 LIBS=$save_LIBS 12783 ;; 12784 esac 12785 12786 case $lt_cv_dlopen_self in 12787 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12788 *) enable_dlopen_self=unknown ;; 12789 esac 12790 12791 case $lt_cv_dlopen_self_static in 12792 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12793 *) enable_dlopen_self_static=unknown ;; 12794 esac 12795fi 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813striplib= 12814old_striplib= 12815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12816$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12817if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12818 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12819 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12821$as_echo "yes" >&6; } 12822else 12823# FIXME - insert some real tests, host_os isn't really good enough 12824 case $host_os in 12825 darwin*) 12826 if test -n "$STRIP"; then 12827 striplib="$STRIP -x" 12828 old_striplib="$STRIP -S" 12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12830$as_echo "yes" >&6; } 12831 else 12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12833$as_echo "no" >&6; } 12834 fi 12835 ;; 12836 *) 12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12838$as_echo "no" >&6; } 12839 ;; 12840 esac 12841fi 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 # Report what library types will actually be built 12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12856$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12858$as_echo "$can_build_shared" >&6; } 12859 12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12861$as_echo_n "checking whether to build shared libraries... " >&6; } 12862 test no = "$can_build_shared" && enable_shared=no 12863 12864 # On AIX, shared libraries and static libraries use the same namespace, and 12865 # are all built from PIC. 12866 case $host_os in 12867 aix3*) 12868 test yes = "$enable_shared" && enable_static=no 12869 if test -n "$RANLIB"; then 12870 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12871 postinstall_cmds='$RANLIB $lib' 12872 fi 12873 ;; 12874 12875 aix[4-9]*) 12876 if test ia64 != "$host_cpu"; then 12877 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12878 yes,aix,yes) ;; # shared object as lib.so file only 12879 yes,svr4,*) ;; # shared object as lib.so archive member only 12880 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12881 esac 12882 fi 12883 ;; 12884 esac 12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12886$as_echo "$enable_shared" >&6; } 12887 12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12889$as_echo_n "checking whether to build static libraries... " >&6; } 12890 # Make sure either enable_shared or enable_static is yes. 12891 test yes = "$enable_shared" || enable_static=yes 12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12893$as_echo "$enable_static" >&6; } 12894 12895 12896 12897 12898fi 12899ac_ext=c 12900ac_cpp='$CPP $CPPFLAGS' 12901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12903ac_compiler_gnu=$ac_cv_c_compiler_gnu 12904 12905CC=$lt_save_CC 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 ac_config_commands="$ac_config_commands libtool" 12922 12923 12924 12925 12926# Only expand once: 12927 12928 12929 12930 12931# Check whether --with-pkg-extra-version was given. 12932if test "${with_pkg_extra_version+set}" = set; then : 12933 withval=$with_pkg_extra_version; EXTRAVERSION=$withval 12934fi 12935 12936 12937# Check whether --with-pkg-git-version was given. 12938if test "${with_pkg_git_version+set}" = set; then : 12939 withval=$with_pkg_git_version; test "x$withval" != "xno" && with_pkg_git_version="yes" 12940fi 12941 12942# Check whether --enable-vtysh was given. 12943if test "${enable_vtysh+set}" = set; then : 12944 enableval=$enable_vtysh; 12945fi 12946 12947# Check whether --enable-doc was given. 12948if test "${enable_doc+set}" = set; then : 12949 enableval=$enable_doc; 12950fi 12951 12952# Check whether --enable-zebra was given. 12953if test "${enable_zebra+set}" = set; then : 12954 enableval=$enable_zebra; 12955fi 12956 12957# Check whether --enable-bgpd was given. 12958if test "${enable_bgpd+set}" = set; then : 12959 enableval=$enable_bgpd; 12960fi 12961 12962# Check whether --enable-ripd was given. 12963if test "${enable_ripd+set}" = set; then : 12964 enableval=$enable_ripd; 12965fi 12966 12967# Check whether --enable-ripngd was given. 12968if test "${enable_ripngd+set}" = set; then : 12969 enableval=$enable_ripngd; 12970fi 12971 12972# Check whether --enable-ospfd was given. 12973if test "${enable_ospfd+set}" = set; then : 12974 enableval=$enable_ospfd; 12975fi 12976 12977# Check whether --enable-ospf6d was given. 12978if test "${enable_ospf6d+set}" = set; then : 12979 enableval=$enable_ospf6d; 12980fi 12981 12982# Check whether --enable-babeld was given. 12983if test "${enable_babeld+set}" = set; then : 12984 enableval=$enable_babeld; 12985fi 12986 12987# Check whether --enable-watchquagga was given. 12988if test "${enable_watchquagga+set}" = set; then : 12989 enableval=$enable_watchquagga; 12990fi 12991 12992# Check whether --enable-isisd was given. 12993if test "${enable_isisd+set}" = set; then : 12994 enableval=$enable_isisd; 12995fi 12996 12997# Check whether --enable-pimd was given. 12998if test "${enable_pimd+set}" = set; then : 12999 enableval=$enable_pimd; 13000fi 13001 13002# Check whether --enable-bgp-announce was given. 13003if test "${enable_bgp_announce+set}" = set; then : 13004 enableval=$enable_bgp_announce; 13005fi 13006 13007# Check whether --enable-snmp was given. 13008if test "${enable_snmp+set}" = set; then : 13009 enableval=$enable_snmp; 13010fi 13011 13012 13013# Check whether --with-libpam was given. 13014if test "${with_libpam+set}" = set; then : 13015 withval=$with_libpam; 13016fi 13017 13018# Check whether --enable-tcp-zebra was given. 13019if test "${enable_tcp_zebra+set}" = set; then : 13020 enableval=$enable_tcp_zebra; 13021fi 13022 13023# Check whether --enable-opaque-lsa was given. 13024if test "${enable_opaque_lsa+set}" = set; then : 13025 enableval=$enable_opaque_lsa; 13026fi 13027 13028# Check whether --enable-ospfapi was given. 13029if test "${enable_ospfapi+set}" = set; then : 13030 enableval=$enable_ospfapi; 13031fi 13032 13033# Check whether --enable-ospfclient was given. 13034if test "${enable_ospfclient+set}" = set; then : 13035 enableval=$enable_ospfclient; 13036fi 13037 13038# Check whether --enable-ospf-te was given. 13039if test "${enable_ospf_te+set}" = set; then : 13040 enableval=$enable_ospf_te; 13041fi 13042 13043# Check whether --enable-multipath was given. 13044if test "${enable_multipath+set}" = set; then : 13045 enableval=$enable_multipath; 13046fi 13047 13048# Check whether --enable-user was given. 13049if test "${enable_user+set}" = set; then : 13050 enableval=$enable_user; 13051fi 13052 13053# Check whether --enable-group was given. 13054if test "${enable_group+set}" = set; then : 13055 enableval=$enable_group; 13056fi 13057 13058# Check whether --enable-vty_group was given. 13059if test "${enable_vty_group+set}" = set; then : 13060 enableval=$enable_vty_group; 13061fi 13062 13063# Check whether --enable-configfile_mask was given. 13064if test "${enable_configfile_mask+set}" = set; then : 13065 enableval=$enable_configfile_mask; 13066fi 13067 13068# Check whether --enable-logfile_mask was given. 13069if test "${enable_logfile_mask+set}" = set; then : 13070 enableval=$enable_logfile_mask; 13071fi 13072 13073 13074# Check whether --enable-rtadv was given. 13075if test "${enable_rtadv+set}" = set; then : 13076 enableval=$enable_rtadv; 13077fi 13078 13079# Check whether --enable-irdp was given. 13080if test "${enable_irdp+set}" = set; then : 13081 enableval=$enable_irdp; 13082fi 13083 13084# Check whether --enable-isis_topology was given. 13085if test "${enable_isis_topology+set}" = set; then : 13086 enableval=$enable_isis_topology; 13087fi 13088 13089# Check whether --enable-capabilities was given. 13090if test "${enable_capabilities+set}" = set; then : 13091 enableval=$enable_capabilities; 13092fi 13093 13094# Check whether --enable-rusage was given. 13095if test "${enable_rusage+set}" = set; then : 13096 enableval=$enable_rusage; 13097fi 13098 13099# Check whether --enable-gcc_ultra_verbose was given. 13100if test "${enable_gcc_ultra_verbose+set}" = set; then : 13101 enableval=$enable_gcc_ultra_verbose; 13102fi 13103 13104# Check whether --enable-linux24_tcp_md5 was given. 13105if test "${enable_linux24_tcp_md5+set}" = set; then : 13106 enableval=$enable_linux24_tcp_md5; 13107fi 13108 13109# Check whether --enable-gcc-rdynamic was given. 13110if test "${enable_gcc_rdynamic+set}" = set; then : 13111 enableval=$enable_gcc_rdynamic; 13112fi 13113 13114# Check whether --enable-backtrace was given. 13115if test "${enable_backtrace+set}" = set; then : 13116 enableval=$enable_backtrace; 13117fi 13118 13119# Check whether --enable-time-check was given. 13120if test "${enable_time_check+set}" = set; then : 13121 enableval=$enable_time_check; 13122fi 13123 13124# Check whether --enable-pcreposix was given. 13125if test "${enable_pcreposix+set}" = set; then : 13126 enableval=$enable_pcreposix; 13127fi 13128 13129# Check whether --enable-fpm was given. 13130if test "${enable_fpm+set}" = set; then : 13131 enableval=$enable_fpm; 13132fi 13133 13134 13135if test x"${enable_gcc_ultra_verbose}" = x"yes" ; then 13136 CFLAGS="${CFLAGS} -W -Wcast-qual -Wstrict-prototypes" 13137 CFLAGS="${CFLAGS} -Wmissing-declarations -Wmissing-noreturn" 13138 CFLAGS="${CFLAGS} -Wmissing-format-attribute -Wunreachable-code" 13139 CFLAGS="${CFLAGS} -Wpacked -Wpadded" 13140fi 13141 13142if test x"${enable_gcc_rdynamic}" != x"no" ; then 13143 if test x"${enable_gcc_rdynamic}" = x"yes" -o x"$COMPILER" = x"GCC"; then 13144 LDFLAGS="${LDFLAGS} -rdynamic" 13145 fi 13146fi 13147 13148if test x"${enable_time_check}" != x"no" ; then 13149 if test x"${enable_time_check}" = x"yes" -o x"${enable_time_check}" = x ; then 13150 13151$as_echo "#define CONSUMED_TIME_CHECK 5000000" >>confdefs.h 13152 13153 else 13154 13155cat >>confdefs.h <<_ACEOF 13156#define CONSUMED_TIME_CHECK $enable_time_check 13157_ACEOF 13158 13159 fi 13160fi 13161 13162if test "${enable_fpm}" = "yes"; then 13163 13164$as_echo "#define HAVE_FPM /**/" >>confdefs.h 13165 13166fi 13167 13168if test "${enable_tcp_zebra}" = "yes"; then 13169 13170$as_echo "#define HAVE_TCP_ZEBRA /**/" >>confdefs.h 13171 13172fi 13173 13174if test "${enable_opaque_lsa}" != "no"; then 13175 13176$as_echo "#define HAVE_OPAQUE_LSA /**/" >>confdefs.h 13177 13178fi 13179 13180if test "${enable_ospf_te}" != "no"; then 13181 13182$as_echo "#define HAVE_OPAQUE_LSA /**/" >>confdefs.h 13183 13184 13185$as_echo "#define HAVE_OSPF_TE /**/" >>confdefs.h 13186 13187fi 13188 13189if test "${enable_linux24_tcp_md5}" = "yes"; then 13190 13191$as_echo "#define HAVE_TCP_MD5_LINUX24 /**/" >>confdefs.h 13192 13193fi 13194 13195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if zebra should be configurable to send Route Advertisements" >&5 13196$as_echo_n "checking if zebra should be configurable to send Route Advertisements... " >&6; } 13197if test "${enable_rtadv}" != "no"; then 13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13199$as_echo "yes" >&6; } 13200 13201$as_echo "#define HAVE_RTADV /**/" >>confdefs.h 13202 13203else 13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13205$as_echo "no" >&6; } 13206fi 13207 13208if test "${enable_irdp}" = "yes"; then 13209 13210$as_echo "#define HAVE_IRDP /**/" >>confdefs.h 13211 13212fi 13213 13214if test "${enable_isisd}" != "no" && test "${enable_isis_topology}" = yes; then 13215 13216$as_echo "#define TOPOLOGY_GENERATE /**/" >>confdefs.h 13217 13218 ISIS_TOPOLOGY_INCLUDES="-I\$(srcdir)/topology" 13219 ISIS_TOPOLOGY_DIR="topology" 13220 ISIS_TOPOLOGY_LIB="./topology/libtopology.a" 13221fi 13222 13223 13224 13225 13226 13227if test "${enable_user}" = "yes" || test x"${enable_user}" = x""; then 13228 enable_user="quagga" 13229elif test "${enable_user}" = "no"; then 13230 enable_user="root" 13231fi 13232 13233if test "${enable_group}" = "yes" || test x"${enable_group}" = x""; then 13234 enable_group="quagga" 13235elif test "${enable_group}" = "no"; then 13236 enable_group="root" 13237fi 13238 13239if test x"${enable_vty_group}" = x"yes" ; then 13240 as_fn_error $? "--enable-vty-group requires a group as argument, not yes" "$LINENO" 5 13241elif test x"${enable_vty_group}" != x""; then 13242 if test x"${enable_vty_group}" != x"no"; then 13243 13244cat >>confdefs.h <<_ACEOF 13245#define VTY_GROUP "${enable_vty_group}" 13246_ACEOF 13247 13248 fi 13249fi 13250 13251 13252 13253 13254cat >>confdefs.h <<_ACEOF 13255#define QUAGGA_USER "${enable_user}" 13256_ACEOF 13257 13258 13259cat >>confdefs.h <<_ACEOF 13260#define QUAGGA_GROUP "${enable_group}" 13261_ACEOF 13262 13263 13264enable_configfile_mask=${enable_configfile_mask:-0600} 13265 13266cat >>confdefs.h <<_ACEOF 13267#define CONFIGFILE_MASK ${enable_configfile_mask} 13268_ACEOF 13269 13270 13271enable_logfile_mask=${enable_logfile_mask:-0600} 13272 13273cat >>confdefs.h <<_ACEOF 13274#define LOGFILE_MASK ${enable_logfile_mask} 13275_ACEOF 13276 13277 13278MULTIPATH_NUM=1 13279 13280case "${enable_multipath}" in 13281 [0-9]|[1-9][0-9]) 13282 MULTIPATH_NUM="${enable_multipath}" 13283 ;; 13284 "") 13285 ;; 13286 *) 13287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13289as_fn_error $? "Please specify digit to enable multipath ARG 13290See \`config.log' for more details" "$LINENO" 5; } 13291 ;; 13292esac 13293 13294 13295 13296if test "x${EXTRAVERSION}" != "x" ; then 13297 VERSION="${VERSION}${EXTRAVERSION}" 13298 PACKAGE_VERSION="${PACKAGE_VERSION}${EXTRAVERSION}" 13299 PACKAGE_STRING="${PACKAGE_STRING}${EXTRAVERSION}" 13300fi 13301 13302if test "x$with_pkg_git_version" = "xyes"; then 13303 if test -d "${srcdir}/.git"; then 13304 13305$as_echo "#define GIT_VERSION 1" >>confdefs.h 13306 13307 else with_pkg_git_version="no" 13308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pkg-git-version given, but this is not a git checkout" >&5 13309$as_echo "$as_me: WARNING: --with-pkg-git-version given, but this is not a git checkout" >&2;} 13310 fi 13311fi 13312 if test "x$with_pkg_git_version" = "xyes"; then 13313 GIT_VERSION_TRUE= 13314 GIT_VERSION_FALSE='#' 13315else 13316 GIT_VERSION_TRUE='#' 13317 GIT_VERSION_FALSE= 13318fi 13319 13320 13321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13322$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13323if ${ac_cv_c_const+:} false; then : 13324 $as_echo_n "(cached) " >&6 13325else 13326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13327/* end confdefs.h. */ 13328 13329int 13330main () 13331{ 13332 13333#ifndef __cplusplus 13334 /* Ultrix mips cc rejects this sort of thing. */ 13335 typedef int charset[2]; 13336 const charset cs = { 0, 0 }; 13337 /* SunOS 4.1.1 cc rejects this. */ 13338 char const *const *pcpcc; 13339 char **ppc; 13340 /* NEC SVR4.0.2 mips cc rejects this. */ 13341 struct point {int x, y;}; 13342 static struct point const zero = {0,0}; 13343 /* AIX XL C 1.02.0.0 rejects this. 13344 It does not let you subtract one const X* pointer from another in 13345 an arm of an if-expression whose if-part is not a constant 13346 expression */ 13347 const char *g = "string"; 13348 pcpcc = &g + (g ? g-g : 0); 13349 /* HPUX 7.0 cc rejects these. */ 13350 ++pcpcc; 13351 ppc = (char**) pcpcc; 13352 pcpcc = (char const *const *) ppc; 13353 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13354 char tx; 13355 char *t = &tx; 13356 char const *s = 0 ? (char *) 0 : (char const *) 0; 13357 13358 *t++ = 0; 13359 if (s) return 0; 13360 } 13361 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13362 int x[] = {25, 17}; 13363 const int *foo = &x[0]; 13364 ++foo; 13365 } 13366 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13367 typedef const int *iptr; 13368 iptr p = 0; 13369 ++p; 13370 } 13371 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13372 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13373 struct s { int j; const int *ap[3]; } bx; 13374 struct s *b = &bx; b->j = 5; 13375 } 13376 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13377 const int foo = 10; 13378 if (!foo) return 0; 13379 } 13380 return !cs[0] && !zero.x; 13381#endif 13382 13383 ; 13384 return 0; 13385} 13386_ACEOF 13387if ac_fn_c_try_compile "$LINENO"; then : 13388 ac_cv_c_const=yes 13389else 13390 ac_cv_c_const=no 13391fi 13392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13393fi 13394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13395$as_echo "$ac_cv_c_const" >&6; } 13396if test $ac_cv_c_const = no; then 13397 13398$as_echo "#define const /**/" >>confdefs.h 13399 13400fi 13401 13402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 13403$as_echo_n "checking for inline... " >&6; } 13404if ${ac_cv_c_inline+:} false; then : 13405 $as_echo_n "(cached) " >&6 13406else 13407 ac_cv_c_inline=no 13408for ac_kw in inline __inline__ __inline; do 13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13410/* end confdefs.h. */ 13411#ifndef __cplusplus 13412typedef int foo_t; 13413static $ac_kw foo_t static_foo () {return 0; } 13414$ac_kw foo_t foo () {return 0; } 13415#endif 13416 13417_ACEOF 13418if ac_fn_c_try_compile "$LINENO"; then : 13419 ac_cv_c_inline=$ac_kw 13420fi 13421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13422 test "$ac_cv_c_inline" != no && break 13423done 13424 13425fi 13426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 13427$as_echo "$ac_cv_c_inline" >&6; } 13428 13429case $ac_cv_c_inline in 13430 inline | yes) ;; 13431 *) 13432 case $ac_cv_c_inline in 13433 no) ac_val=;; 13434 *) ac_val=$ac_cv_c_inline;; 13435 esac 13436 cat >>confdefs.h <<_ACEOF 13437#ifndef __cplusplus 13438#define inline $ac_val 13439#endif 13440_ACEOF 13441 ;; 13442esac 13443 13444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 13445$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 13446if ${ac_cv_c_restrict+:} false; then : 13447 $as_echo_n "(cached) " >&6 13448else 13449 ac_cv_c_restrict=no 13450 # The order here caters to the fact that C++ does not require restrict. 13451 for ac_kw in __restrict __restrict__ _Restrict restrict; do 13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13453/* end confdefs.h. */ 13454typedef int * int_ptr; 13455 int foo (int_ptr $ac_kw ip) { 13456 return ip[0]; 13457 } 13458int 13459main () 13460{ 13461int s[1]; 13462 int * $ac_kw t = s; 13463 t[0] = 0; 13464 return foo(t) 13465 ; 13466 return 0; 13467} 13468_ACEOF 13469if ac_fn_c_try_compile "$LINENO"; then : 13470 ac_cv_c_restrict=$ac_kw 13471fi 13472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13473 test "$ac_cv_c_restrict" != no && break 13474 done 13475 13476fi 13477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 13478$as_echo "$ac_cv_c_restrict" >&6; } 13479 13480 case $ac_cv_c_restrict in 13481 restrict) ;; 13482 no) $as_echo "#define restrict /**/" >>confdefs.h 13483 ;; 13484 *) cat >>confdefs.h <<_ACEOF 13485#define restrict $ac_cv_c_restrict 13486_ACEOF 13487 ;; 13488 esac 13489 13490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 13491$as_echo_n "checking for working volatile... " >&6; } 13492if ${ac_cv_c_volatile+:} false; then : 13493 $as_echo_n "(cached) " >&6 13494else 13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13496/* end confdefs.h. */ 13497 13498int 13499main () 13500{ 13501 13502volatile int x; 13503int * volatile y = (int *) 0; 13504return !x && !y; 13505 ; 13506 return 0; 13507} 13508_ACEOF 13509if ac_fn_c_try_compile "$LINENO"; then : 13510 ac_cv_c_volatile=yes 13511else 13512 ac_cv_c_volatile=no 13513fi 13514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13515fi 13516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 13517$as_echo "$ac_cv_c_volatile" >&6; } 13518if test $ac_cv_c_volatile = no; then 13519 13520$as_echo "#define volatile /**/" >>confdefs.h 13521 13522fi 13523 13524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 13525$as_echo_n "checking for ANSI C header files... " >&6; } 13526if ${ac_cv_header_stdc+:} false; then : 13527 $as_echo_n "(cached) " >&6 13528else 13529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13530/* end confdefs.h. */ 13531#include <stdlib.h> 13532#include <stdarg.h> 13533#include <string.h> 13534#include <float.h> 13535 13536int 13537main () 13538{ 13539 13540 ; 13541 return 0; 13542} 13543_ACEOF 13544if ac_fn_c_try_compile "$LINENO"; then : 13545 ac_cv_header_stdc=yes 13546else 13547 ac_cv_header_stdc=no 13548fi 13549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13550 13551if test $ac_cv_header_stdc = yes; then 13552 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13554/* end confdefs.h. */ 13555#include <string.h> 13556 13557_ACEOF 13558if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13559 $EGREP "memchr" >/dev/null 2>&1; then : 13560 13561else 13562 ac_cv_header_stdc=no 13563fi 13564rm -f conftest* 13565 13566fi 13567 13568if test $ac_cv_header_stdc = yes; then 13569 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13571/* end confdefs.h. */ 13572#include <stdlib.h> 13573 13574_ACEOF 13575if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13576 $EGREP "free" >/dev/null 2>&1; then : 13577 13578else 13579 ac_cv_header_stdc=no 13580fi 13581rm -f conftest* 13582 13583fi 13584 13585if test $ac_cv_header_stdc = yes; then 13586 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13587 if test "$cross_compiling" = yes; then : 13588 : 13589else 13590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13591/* end confdefs.h. */ 13592#include <ctype.h> 13593#include <stdlib.h> 13594#if ((' ' & 0x0FF) == 0x020) 13595# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13596# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13597#else 13598# define ISLOWER(c) \ 13599 (('a' <= (c) && (c) <= 'i') \ 13600 || ('j' <= (c) && (c) <= 'r') \ 13601 || ('s' <= (c) && (c) <= 'z')) 13602# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13603#endif 13604 13605#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13606int 13607main () 13608{ 13609 int i; 13610 for (i = 0; i < 256; i++) 13611 if (XOR (islower (i), ISLOWER (i)) 13612 || toupper (i) != TOUPPER (i)) 13613 return 2; 13614 return 0; 13615} 13616_ACEOF 13617if ac_fn_c_try_run "$LINENO"; then : 13618 13619else 13620 ac_cv_header_stdc=no 13621fi 13622rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13623 conftest.$ac_objext conftest.beam conftest.$ac_ext 13624fi 13625 13626fi 13627fi 13628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13629$as_echo "$ac_cv_header_stdc" >&6; } 13630if test $ac_cv_header_stdc = yes; then 13631 13632$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13633 13634fi 13635 13636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 13637$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 13638if ${ac_cv_header_time+:} false; then : 13639 $as_echo_n "(cached) " >&6 13640else 13641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13642/* end confdefs.h. */ 13643#include <sys/types.h> 13644#include <sys/time.h> 13645#include <time.h> 13646 13647int 13648main () 13649{ 13650if ((struct tm *) 0) 13651return 0; 13652 ; 13653 return 0; 13654} 13655_ACEOF 13656if ac_fn_c_try_compile "$LINENO"; then : 13657 ac_cv_header_time=yes 13658else 13659 ac_cv_header_time=no 13660fi 13661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13662fi 13663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 13664$as_echo "$ac_cv_header_time" >&6; } 13665if test $ac_cv_header_time = yes; then 13666 13667$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 13668 13669fi 13670 13671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 13672$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 13673if ${ac_cv_header_sys_wait_h+:} false; then : 13674 $as_echo_n "(cached) " >&6 13675else 13676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13677/* end confdefs.h. */ 13678#include <sys/types.h> 13679#include <sys/wait.h> 13680#ifndef WEXITSTATUS 13681# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 13682#endif 13683#ifndef WIFEXITED 13684# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 13685#endif 13686 13687int 13688main () 13689{ 13690 int s; 13691 wait (&s); 13692 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 13693 ; 13694 return 0; 13695} 13696_ACEOF 13697if ac_fn_c_try_compile "$LINENO"; then : 13698 ac_cv_header_sys_wait_h=yes 13699else 13700 ac_cv_header_sys_wait_h=no 13701fi 13702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13703fi 13704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 13705$as_echo "$ac_cv_header_sys_wait_h" >&6; } 13706if test $ac_cv_header_sys_wait_h = yes; then 13707 13708$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 13709 13710fi 13711 13712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 13713$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 13714if ${ac_cv_type_uid_t+:} false; then : 13715 $as_echo_n "(cached) " >&6 13716else 13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13718/* end confdefs.h. */ 13719#include <sys/types.h> 13720 13721_ACEOF 13722if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13723 $EGREP "uid_t" >/dev/null 2>&1; then : 13724 ac_cv_type_uid_t=yes 13725else 13726 ac_cv_type_uid_t=no 13727fi 13728rm -f conftest* 13729 13730fi 13731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 13732$as_echo "$ac_cv_type_uid_t" >&6; } 13733if test $ac_cv_type_uid_t = no; then 13734 13735$as_echo "#define uid_t int" >>confdefs.h 13736 13737 13738$as_echo "#define gid_t int" >>confdefs.h 13739 13740fi 13741 13742ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 13743if test "x$ac_cv_type_mode_t" = xyes; then : 13744 13745else 13746 13747cat >>confdefs.h <<_ACEOF 13748#define mode_t int 13749_ACEOF 13750 13751fi 13752 13753ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13754if test "x$ac_cv_type_size_t" = xyes; then : 13755 13756else 13757 13758cat >>confdefs.h <<_ACEOF 13759#define size_t unsigned int 13760_ACEOF 13761 13762fi 13763 13764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 13765$as_echo_n "checking return type of signal handlers... " >&6; } 13766if ${ac_cv_type_signal+:} false; then : 13767 $as_echo_n "(cached) " >&6 13768else 13769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13770/* end confdefs.h. */ 13771#include <sys/types.h> 13772#include <signal.h> 13773 13774int 13775main () 13776{ 13777return *(signal (0, 0)) (0) == 1; 13778 ; 13779 return 0; 13780} 13781_ACEOF 13782if ac_fn_c_try_compile "$LINENO"; then : 13783 ac_cv_type_signal=int 13784else 13785 ac_cv_type_signal=void 13786fi 13787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13788fi 13789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 13790$as_echo "$ac_cv_type_signal" >&6; } 13791 13792cat >>confdefs.h <<_ACEOF 13793#define RETSIGTYPE $ac_cv_type_signal 13794_ACEOF 13795 13796 13797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 13798$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 13799if ${ac_cv_struct_tm+:} false; then : 13800 $as_echo_n "(cached) " >&6 13801else 13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13803/* end confdefs.h. */ 13804#include <sys/types.h> 13805#include <time.h> 13806 13807int 13808main () 13809{ 13810struct tm tm; 13811 int *p = &tm.tm_sec; 13812 return !p; 13813 ; 13814 return 0; 13815} 13816_ACEOF 13817if ac_fn_c_try_compile "$LINENO"; then : 13818 ac_cv_struct_tm=time.h 13819else 13820 ac_cv_struct_tm=sys/time.h 13821fi 13822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13823fi 13824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 13825$as_echo "$ac_cv_struct_tm" >&6; } 13826if test $ac_cv_struct_tm = sys/time.h; then 13827 13828$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 13829 13830fi 13831 13832 13833for ac_header in stropts.h sys/ksym.h sys/times.h sys/select.h \ 13834 sys/types.h linux/version.h netdb.h asm/types.h \ 13835 sys/cdefs.h sys/param.h limits.h signal.h \ 13836 sys/socket.h netinet/in.h time.h sys/time.h 13837do : 13838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13839ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13840if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13841 cat >>confdefs.h <<_ACEOF 13842#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13843_ACEOF 13844 13845fi 13846 13847done 13848 13849 13850 13851 13852for ac_header in net/if.h 13853do : 13854 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef SUNOS_5 13855#define _XPG4_2 13856#define __EXTENSIONS__ 13857#endif 13858#include <stdio.h> 13859#if STDC_HEADERS 13860# include <stdlib.h> 13861# include <stddef.h> 13862#else 13863# if HAVE_STDLIB_H 13864# include <stdlib.h> 13865# endif 13866#endif 13867#if HAVE_SYS_TYPES_H 13868# include <sys/types.h> 13869#endif 13870/* sys/conf.h depends on param.h on FBSD at least */ 13871#if HAVE_SYS_PARAM_H 13872# include <sys/param.h> 13873#endif 13874/* Required for MAXSIG */ 13875#if HAVE_SIGNAL_H 13876# include <signal.h> 13877#endif 13878#if HAVE_SYS_SOCKET_H 13879# include <sys/socket.h> 13880#endif 13881#ifdef __APPLE__ 13882# define __APPLE_USE_RFC_3542 13883#endif 13884#if HAVE_NETINET_IN_H 13885# include <netinet/in.h> 13886#endif 13887#ifdef TIME_WITH_SYS_TIME 13888# include <sys/time.h> 13889# include <time.h> 13890#else 13891# ifdef HAVE_SYS_TIME_H 13892# include <sys/time.h> 13893# else 13894# include <time.h> 13895# endif 13896#endif /* TIME_WITH_SYS_TIME */ 13897 13898" 13899if test "x$ac_cv_header_net_if_h" = xyes; then : 13900 cat >>confdefs.h <<_ACEOF 13901#define HAVE_NET_IF_H 1 13902_ACEOF 13903 13904fi 13905 13906done 13907 13908 13909 13910 13911for ac_header in net/if_var.h 13912do : 13913 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "#ifdef SUNOS_5 13914#define _XPG4_2 13915#define __EXTENSIONS__ 13916#endif 13917#include <stdio.h> 13918#if STDC_HEADERS 13919# include <stdlib.h> 13920# include <stddef.h> 13921#else 13922# if HAVE_STDLIB_H 13923# include <stdlib.h> 13924# endif 13925#endif 13926#if HAVE_SYS_TYPES_H 13927# include <sys/types.h> 13928#endif 13929/* sys/conf.h depends on param.h on FBSD at least */ 13930#if HAVE_SYS_PARAM_H 13931# include <sys/param.h> 13932#endif 13933/* Required for MAXSIG */ 13934#if HAVE_SIGNAL_H 13935# include <signal.h> 13936#endif 13937#if HAVE_SYS_SOCKET_H 13938# include <sys/socket.h> 13939#endif 13940#ifdef __APPLE__ 13941# define __APPLE_USE_RFC_3542 13942#endif 13943#if HAVE_NETINET_IN_H 13944# include <netinet/in.h> 13945#endif 13946#ifdef TIME_WITH_SYS_TIME 13947# include <sys/time.h> 13948# include <time.h> 13949#else 13950# ifdef HAVE_SYS_TIME_H 13951# include <sys/time.h> 13952# else 13953# include <time.h> 13954# endif 13955#endif /* TIME_WITH_SYS_TIME */ 13956 13957#if HAVE_NET_IF_H 13958# include <net/if.h> 13959#endif 13960 13961" 13962if test "x$ac_cv_header_net_if_var_h" = xyes; then : 13963 cat >>confdefs.h <<_ACEOF 13964#define HAVE_NET_IF_VAR_H 1 13965_ACEOF 13966 13967fi 13968 13969done 13970 13971 13972 13973for ac_header in sys/un.h netinet/in_systm.h netinet/in_var.h \ 13974 net/if_dl.h net/netopt.h net/route.h \ 13975 inet/nd.h arpa/inet.h netinet/ip_icmp.h \ 13976 fcntl.h stddef.h sys/ioctl.h syslog.h wchar.h wctype.h \ 13977 sys/sysctl.h sys/sockio.h kvm.h sys/conf.h 13978do : 13979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13980ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef SUNOS_5 13981#define _XPG4_2 13982#define __EXTENSIONS__ 13983#endif 13984#include <stdio.h> 13985#if STDC_HEADERS 13986# include <stdlib.h> 13987# include <stddef.h> 13988#else 13989# if HAVE_STDLIB_H 13990# include <stdlib.h> 13991# endif 13992#endif 13993#if HAVE_SYS_TYPES_H 13994# include <sys/types.h> 13995#endif 13996/* sys/conf.h depends on param.h on FBSD at least */ 13997#if HAVE_SYS_PARAM_H 13998# include <sys/param.h> 13999#endif 14000/* Required for MAXSIG */ 14001#if HAVE_SIGNAL_H 14002# include <signal.h> 14003#endif 14004#if HAVE_SYS_SOCKET_H 14005# include <sys/socket.h> 14006#endif 14007#ifdef __APPLE__ 14008# define __APPLE_USE_RFC_3542 14009#endif 14010#if HAVE_NETINET_IN_H 14011# include <netinet/in.h> 14012#endif 14013#ifdef TIME_WITH_SYS_TIME 14014# include <sys/time.h> 14015# include <time.h> 14016#else 14017# ifdef HAVE_SYS_TIME_H 14018# include <sys/time.h> 14019# else 14020# include <time.h> 14021# endif 14022#endif /* TIME_WITH_SYS_TIME */ 14023 14024#if HAVE_NET_IF_H 14025# include <net/if.h> 14026#endif 14027 14028#if HAVE_NET_IF_VAR_H 14029# include <net/if_var.h> 14030#endif 14031 14032" 14033if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14034 cat >>confdefs.h <<_ACEOF 14035#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14036_ACEOF 14037 14038fi 14039 14040done 14041 14042 14043for ac_header in ucontext.h 14044do : 14045 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#ifndef __USE_GNU 14046#define __USE_GNU 14047#endif /* __USE_GNU */ 14048#ifdef SUNOS_5 14049#define _XPG4_2 14050#define __EXTENSIONS__ 14051#endif 14052#include <stdio.h> 14053#if STDC_HEADERS 14054# include <stdlib.h> 14055# include <stddef.h> 14056#else 14057# if HAVE_STDLIB_H 14058# include <stdlib.h> 14059# endif 14060#endif 14061#if HAVE_SYS_TYPES_H 14062# include <sys/types.h> 14063#endif 14064/* sys/conf.h depends on param.h on FBSD at least */ 14065#if HAVE_SYS_PARAM_H 14066# include <sys/param.h> 14067#endif 14068/* Required for MAXSIG */ 14069#if HAVE_SIGNAL_H 14070# include <signal.h> 14071#endif 14072#if HAVE_SYS_SOCKET_H 14073# include <sys/socket.h> 14074#endif 14075#ifdef __APPLE__ 14076# define __APPLE_USE_RFC_3542 14077#endif 14078#if HAVE_NETINET_IN_H 14079# include <netinet/in.h> 14080#endif 14081#ifdef TIME_WITH_SYS_TIME 14082# include <sys/time.h> 14083# include <time.h> 14084#else 14085# ifdef HAVE_SYS_TIME_H 14086# include <sys/time.h> 14087# else 14088# include <time.h> 14089# endif 14090#endif /* TIME_WITH_SYS_TIME */ 14091 14092#if HAVE_NET_IF_H 14093# include <net/if.h> 14094#endif 14095 14096#if HAVE_NET_IF_VAR_H 14097# include <net/if_var.h> 14098#endif 14099 14100 14101" 14102if test "x$ac_cv_header_ucontext_h" = xyes; then : 14103 cat >>confdefs.h <<_ACEOF 14104#define HAVE_UCONTEXT_H 1 14105_ACEOF 14106 14107fi 14108 14109done 14110 14111 14112 14113ac_fn_c_check_member "$LINENO" "ucontext_t" "uc_mcontext.uc_regs" "ac_cv_member_ucontext_t_uc_mcontext_uc_regs" "#include <ucontext.h> 14114" 14115if test "x$ac_cv_member_ucontext_t_uc_mcontext_uc_regs" = xyes; then : 14116 14117cat >>confdefs.h <<_ACEOF 14118#define HAVE_UCONTEXT_T_UC_MCONTEXT_UC_REGS 1 14119_ACEOF 14120 14121 14122fi 14123 14124ac_fn_c_check_member "$LINENO" "ucontext_t" "uc_mcontext.regs" "ac_cv_member_ucontext_t_uc_mcontext_regs" "#include <ucontext.h> 14125" 14126if test "x$ac_cv_member_ucontext_t_uc_mcontext_regs" = xyes; then : 14127 14128cat >>confdefs.h <<_ACEOF 14129#define HAVE_UCONTEXT_T_UC_MCONTEXT_REGS 1 14130_ACEOF 14131 14132ac_fn_c_check_member "$LINENO" "ucontext_t" "uc_mcontext.regs.nip" "ac_cv_member_ucontext_t_uc_mcontext_regs_nip" "#include <ucontext.h> 14133" 14134if test "x$ac_cv_member_ucontext_t_uc_mcontext_regs_nip" = xyes; then : 14135 14136cat >>confdefs.h <<_ACEOF 14137#define HAVE_UCONTEXT_T_UC_MCONTEXT_REGS_NIP 1 14138_ACEOF 14139 14140 14141fi 14142 14143fi 14144 14145ac_fn_c_check_member "$LINENO" "ucontext_t" "uc_mcontext.gregs" "ac_cv_member_ucontext_t_uc_mcontext_gregs" "#include <ucontext.h> 14146" 14147if test "x$ac_cv_member_ucontext_t_uc_mcontext_gregs" = xyes; then : 14148 14149cat >>confdefs.h <<_ACEOF 14150#define HAVE_UCONTEXT_T_UC_MCONTEXT_GREGS 1 14151_ACEOF 14152 14153 14154fi 14155 14156 14157 14158 14159case "$host" in 14160 *-sunos5.[6-7]* | *-solaris2.[6-7]*) 14161 opsys=sol2-6 14162 14163$as_echo "#define SUNOS_56 1" >>confdefs.h 14164 14165 14166$as_echo "#define SUNOS_5 1" >>confdefs.h 14167 14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lxnet" >&5 14169$as_echo_n "checking for main in -lxnet... " >&6; } 14170if ${ac_cv_lib_xnet_main+:} false; then : 14171 $as_echo_n "(cached) " >&6 14172else 14173 ac_check_lib_save_LIBS=$LIBS 14174LIBS="-lxnet $LIBS" 14175cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14176/* end confdefs.h. */ 14177 14178 14179int 14180main () 14181{ 14182return main (); 14183 ; 14184 return 0; 14185} 14186_ACEOF 14187if ac_fn_c_try_link "$LINENO"; then : 14188 ac_cv_lib_xnet_main=yes 14189else 14190 ac_cv_lib_xnet_main=no 14191fi 14192rm -f core conftest.err conftest.$ac_objext \ 14193 conftest$ac_exeext conftest.$ac_ext 14194LIBS=$ac_check_lib_save_LIBS 14195fi 14196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_main" >&5 14197$as_echo "$ac_cv_lib_xnet_main" >&6; } 14198if test "x$ac_cv_lib_xnet_main" = xyes; then : 14199 cat >>confdefs.h <<_ACEOF 14200#define HAVE_LIBXNET 1 14201_ACEOF 14202 14203 LIBS="-lxnet $LIBS" 14204 14205fi 14206 14207 CURSES=-lcurses 14208 SOLARIS="solaris" 14209 ;; 14210 *-sunos5.[8-9] \ 14211 | *-sunos5.1[0-9] \ 14212 | *-sunos5.1[0-9].[0-9] \ 14213 | *-solaris2.[8-9] \ 14214 | *-solaris2.1[0-9] \ 14215 | *-solaris2.1[0-9].[0-9]) 14216 opsys=sol8 14217 14218$as_echo "#define SUNOS_59 1" >>confdefs.h 14219 14220 14221$as_echo "#define SUNOS_5 1" >>confdefs.h 14222 14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5 14224$as_echo_n "checking for main in -lsocket... " >&6; } 14225if ${ac_cv_lib_socket_main+:} false; then : 14226 $as_echo_n "(cached) " >&6 14227else 14228 ac_check_lib_save_LIBS=$LIBS 14229LIBS="-lsocket $LIBS" 14230cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14231/* end confdefs.h. */ 14232 14233 14234int 14235main () 14236{ 14237return main (); 14238 ; 14239 return 0; 14240} 14241_ACEOF 14242if ac_fn_c_try_link "$LINENO"; then : 14243 ac_cv_lib_socket_main=yes 14244else 14245 ac_cv_lib_socket_main=no 14246fi 14247rm -f core conftest.err conftest.$ac_objext \ 14248 conftest$ac_exeext conftest.$ac_ext 14249LIBS=$ac_check_lib_save_LIBS 14250fi 14251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5 14252$as_echo "$ac_cv_lib_socket_main" >&6; } 14253if test "x$ac_cv_lib_socket_main" = xyes; then : 14254 cat >>confdefs.h <<_ACEOF 14255#define HAVE_LIBSOCKET 1 14256_ACEOF 14257 14258 LIBS="-lsocket $LIBS" 14259 14260fi 14261 14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5 14263$as_echo_n "checking for main in -lnsl... " >&6; } 14264if ${ac_cv_lib_nsl_main+:} false; then : 14265 $as_echo_n "(cached) " >&6 14266else 14267 ac_check_lib_save_LIBS=$LIBS 14268LIBS="-lnsl $LIBS" 14269cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14270/* end confdefs.h. */ 14271 14272 14273int 14274main () 14275{ 14276return main (); 14277 ; 14278 return 0; 14279} 14280_ACEOF 14281if ac_fn_c_try_link "$LINENO"; then : 14282 ac_cv_lib_nsl_main=yes 14283else 14284 ac_cv_lib_nsl_main=no 14285fi 14286rm -f core conftest.err conftest.$ac_objext \ 14287 conftest$ac_exeext conftest.$ac_ext 14288LIBS=$ac_check_lib_save_LIBS 14289fi 14290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5 14291$as_echo "$ac_cv_lib_nsl_main" >&6; } 14292if test "x$ac_cv_lib_nsl_main" = xyes; then : 14293 cat >>confdefs.h <<_ACEOF 14294#define HAVE_LIBNSL 1 14295_ACEOF 14296 14297 LIBS="-lnsl $LIBS" 14298 14299fi 14300 14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lumem" >&5 14302$as_echo_n "checking for main in -lumem... " >&6; } 14303if ${ac_cv_lib_umem_main+:} false; then : 14304 $as_echo_n "(cached) " >&6 14305else 14306 ac_check_lib_save_LIBS=$LIBS 14307LIBS="-lumem $LIBS" 14308cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14309/* end confdefs.h. */ 14310 14311 14312int 14313main () 14314{ 14315return main (); 14316 ; 14317 return 0; 14318} 14319_ACEOF 14320if ac_fn_c_try_link "$LINENO"; then : 14321 ac_cv_lib_umem_main=yes 14322else 14323 ac_cv_lib_umem_main=no 14324fi 14325rm -f core conftest.err conftest.$ac_objext \ 14326 conftest$ac_exeext conftest.$ac_ext 14327LIBS=$ac_check_lib_save_LIBS 14328fi 14329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_main" >&5 14330$as_echo "$ac_cv_lib_umem_main" >&6; } 14331if test "x$ac_cv_lib_umem_main" = xyes; then : 14332 cat >>confdefs.h <<_ACEOF 14333#define HAVE_LIBUMEM 1 14334_ACEOF 14335 14336 LIBS="-lumem $LIBS" 14337 14338fi 14339 14340 for ac_func in printstack 14341do : 14342 ac_fn_c_check_func "$LINENO" "printstack" "ac_cv_func_printstack" 14343if test "x$ac_cv_func_printstack" = xyes; then : 14344 cat >>confdefs.h <<_ACEOF 14345#define HAVE_PRINTSTACK 1 14346_ACEOF 14347 14348$as_echo "#define HAVE_PRINTSTACK 1" >>confdefs.h 14349 14350 14351$as_echo "#define HAVE_STACK_TRACE 1" >>confdefs.h 14352 14353 14354fi 14355done 14356 14357 CURSES=-lcurses 14358 SOLARIS="solaris" 14359 ;; 14360 *-sunos5* | *-solaris2*) 14361 14362$as_echo "#define SUNOS_5 /**/" >>confdefs.h 14363 14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5 14365$as_echo_n "checking for main in -lsocket... " >&6; } 14366if ${ac_cv_lib_socket_main+:} false; then : 14367 $as_echo_n "(cached) " >&6 14368else 14369 ac_check_lib_save_LIBS=$LIBS 14370LIBS="-lsocket $LIBS" 14371cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14372/* end confdefs.h. */ 14373 14374 14375int 14376main () 14377{ 14378return main (); 14379 ; 14380 return 0; 14381} 14382_ACEOF 14383if ac_fn_c_try_link "$LINENO"; then : 14384 ac_cv_lib_socket_main=yes 14385else 14386 ac_cv_lib_socket_main=no 14387fi 14388rm -f core conftest.err conftest.$ac_objext \ 14389 conftest$ac_exeext conftest.$ac_ext 14390LIBS=$ac_check_lib_save_LIBS 14391fi 14392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5 14393$as_echo "$ac_cv_lib_socket_main" >&6; } 14394if test "x$ac_cv_lib_socket_main" = xyes; then : 14395 cat >>confdefs.h <<_ACEOF 14396#define HAVE_LIBSOCKET 1 14397_ACEOF 14398 14399 LIBS="-lsocket $LIBS" 14400 14401fi 14402 14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5 14404$as_echo_n "checking for main in -lnsl... " >&6; } 14405if ${ac_cv_lib_nsl_main+:} false; then : 14406 $as_echo_n "(cached) " >&6 14407else 14408 ac_check_lib_save_LIBS=$LIBS 14409LIBS="-lnsl $LIBS" 14410cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14411/* end confdefs.h. */ 14412 14413 14414int 14415main () 14416{ 14417return main (); 14418 ; 14419 return 0; 14420} 14421_ACEOF 14422if ac_fn_c_try_link "$LINENO"; then : 14423 ac_cv_lib_nsl_main=yes 14424else 14425 ac_cv_lib_nsl_main=no 14426fi 14427rm -f core conftest.err conftest.$ac_objext \ 14428 conftest$ac_exeext conftest.$ac_ext 14429LIBS=$ac_check_lib_save_LIBS 14430fi 14431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5 14432$as_echo "$ac_cv_lib_nsl_main" >&6; } 14433if test "x$ac_cv_lib_nsl_main" = xyes; then : 14434 cat >>confdefs.h <<_ACEOF 14435#define HAVE_LIBNSL 1 14436_ACEOF 14437 14438 LIBS="-lnsl $LIBS" 14439 14440fi 14441 14442 CURSES=-lcurses 14443 SOLARIS="solaris" 14444 ;; 14445 *-linux*) 14446 opsys=gnu-linux 14447 14448$as_echo "#define GNU_LINUX /**/" >>confdefs.h 14449 14450 ;; 14451 *-openbsd*) 14452 opsys=openbsd 14453 14454$as_echo "#define OPEN_BSD /**/" >>confdefs.h 14455 14456 ;; 14457esac 14458 14459# Check whether --enable-largefile was given. 14460if test "${enable_largefile+set}" = set; then : 14461 enableval=$enable_largefile; 14462fi 14463 14464if test "$enable_largefile" != no; then 14465 14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 14467$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 14468if ${ac_cv_sys_largefile_CC+:} false; then : 14469 $as_echo_n "(cached) " >&6 14470else 14471 ac_cv_sys_largefile_CC=no 14472 if test "$GCC" != yes; then 14473 ac_save_CC=$CC 14474 while :; do 14475 # IRIX 6.2 and later do not support large files by default, 14476 # so use the C compiler's -n32 option if that helps. 14477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14478/* end confdefs.h. */ 14479#include <sys/types.h> 14480 /* Check that off_t can represent 2**63 - 1 correctly. 14481 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14482 since some C++ compilers masquerading as C compilers 14483 incorrectly reject 9223372036854775807. */ 14484#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14485 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14486 && LARGE_OFF_T % 2147483647 == 1) 14487 ? 1 : -1]; 14488int 14489main () 14490{ 14491 14492 ; 14493 return 0; 14494} 14495_ACEOF 14496 if ac_fn_c_try_compile "$LINENO"; then : 14497 break 14498fi 14499rm -f core conftest.err conftest.$ac_objext 14500 CC="$CC -n32" 14501 if ac_fn_c_try_compile "$LINENO"; then : 14502 ac_cv_sys_largefile_CC=' -n32'; break 14503fi 14504rm -f core conftest.err conftest.$ac_objext 14505 break 14506 done 14507 CC=$ac_save_CC 14508 rm -f conftest.$ac_ext 14509 fi 14510fi 14511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 14512$as_echo "$ac_cv_sys_largefile_CC" >&6; } 14513 if test "$ac_cv_sys_largefile_CC" != no; then 14514 CC=$CC$ac_cv_sys_largefile_CC 14515 fi 14516 14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 14518$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 14519if ${ac_cv_sys_file_offset_bits+:} false; then : 14520 $as_echo_n "(cached) " >&6 14521else 14522 while :; do 14523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14524/* end confdefs.h. */ 14525#include <sys/types.h> 14526 /* Check that off_t can represent 2**63 - 1 correctly. 14527 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14528 since some C++ compilers masquerading as C compilers 14529 incorrectly reject 9223372036854775807. */ 14530#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14531 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14532 && LARGE_OFF_T % 2147483647 == 1) 14533 ? 1 : -1]; 14534int 14535main () 14536{ 14537 14538 ; 14539 return 0; 14540} 14541_ACEOF 14542if ac_fn_c_try_compile "$LINENO"; then : 14543 ac_cv_sys_file_offset_bits=no; break 14544fi 14545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14547/* end confdefs.h. */ 14548#define _FILE_OFFSET_BITS 64 14549#include <sys/types.h> 14550 /* Check that off_t can represent 2**63 - 1 correctly. 14551 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14552 since some C++ compilers masquerading as C compilers 14553 incorrectly reject 9223372036854775807. */ 14554#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14555 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14556 && LARGE_OFF_T % 2147483647 == 1) 14557 ? 1 : -1]; 14558int 14559main () 14560{ 14561 14562 ; 14563 return 0; 14564} 14565_ACEOF 14566if ac_fn_c_try_compile "$LINENO"; then : 14567 ac_cv_sys_file_offset_bits=64; break 14568fi 14569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14570 ac_cv_sys_file_offset_bits=unknown 14571 break 14572done 14573fi 14574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 14575$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 14576case $ac_cv_sys_file_offset_bits in #( 14577 no | unknown) ;; 14578 *) 14579cat >>confdefs.h <<_ACEOF 14580#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 14581_ACEOF 14582;; 14583esac 14584rm -rf conftest* 14585 if test $ac_cv_sys_file_offset_bits = unknown; then 14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 14587$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 14588if ${ac_cv_sys_large_files+:} false; then : 14589 $as_echo_n "(cached) " >&6 14590else 14591 while :; do 14592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14593/* end confdefs.h. */ 14594#include <sys/types.h> 14595 /* Check that off_t can represent 2**63 - 1 correctly. 14596 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14597 since some C++ compilers masquerading as C compilers 14598 incorrectly reject 9223372036854775807. */ 14599#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14600 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14601 && LARGE_OFF_T % 2147483647 == 1) 14602 ? 1 : -1]; 14603int 14604main () 14605{ 14606 14607 ; 14608 return 0; 14609} 14610_ACEOF 14611if ac_fn_c_try_compile "$LINENO"; then : 14612 ac_cv_sys_large_files=no; break 14613fi 14614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14616/* end confdefs.h. */ 14617#define _LARGE_FILES 1 14618#include <sys/types.h> 14619 /* Check that off_t can represent 2**63 - 1 correctly. 14620 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14621 since some C++ compilers masquerading as C compilers 14622 incorrectly reject 9223372036854775807. */ 14623#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14625 && LARGE_OFF_T % 2147483647 == 1) 14626 ? 1 : -1]; 14627int 14628main () 14629{ 14630 14631 ; 14632 return 0; 14633} 14634_ACEOF 14635if ac_fn_c_try_compile "$LINENO"; then : 14636 ac_cv_sys_large_files=1; break 14637fi 14638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14639 ac_cv_sys_large_files=unknown 14640 break 14641done 14642fi 14643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 14644$as_echo "$ac_cv_sys_large_files" >&6; } 14645case $ac_cv_sys_large_files in #( 14646 no | unknown) ;; 14647 *) 14648cat >>confdefs.h <<_ACEOF 14649#define _LARGE_FILES $ac_cv_sys_large_files 14650_ACEOF 14651;; 14652esac 14653rm -rf conftest* 14654 fi 14655 14656 14657fi 14658 14659 14660case "${enable_vtysh}" in 14661 "yes") VTYSH="vtysh"; 14662 14663$as_echo "#define VTYSH /**/" >>confdefs.h 14664 14665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -ltermcap" >&5 14666$as_echo_n "checking for tputs in -ltermcap... " >&6; } 14667if ${ac_cv_lib_termcap_tputs+:} false; then : 14668 $as_echo_n "(cached) " >&6 14669else 14670 ac_check_lib_save_LIBS=$LIBS 14671LIBS="-ltermcap $LIBS" 14672cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14673/* end confdefs.h. */ 14674 14675/* Override any GCC internal prototype to avoid an error. 14676 Use char because int might match the return type of a GCC 14677 builtin and then its argument prototype would still apply. */ 14678#ifdef __cplusplus 14679extern "C" 14680#endif 14681char tputs (); 14682int 14683main () 14684{ 14685return tputs (); 14686 ; 14687 return 0; 14688} 14689_ACEOF 14690if ac_fn_c_try_link "$LINENO"; then : 14691 ac_cv_lib_termcap_tputs=yes 14692else 14693 ac_cv_lib_termcap_tputs=no 14694fi 14695rm -f core conftest.err conftest.$ac_objext \ 14696 conftest$ac_exeext conftest.$ac_ext 14697LIBS=$ac_check_lib_save_LIBS 14698fi 14699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tputs" >&5 14700$as_echo "$ac_cv_lib_termcap_tputs" >&6; } 14701if test "x$ac_cv_lib_termcap_tputs" = xyes; then : 14702 LIBREADLINE="$LIBREADLINE -ltermcap" 14703else 14704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -ltinfo" >&5 14705$as_echo_n "checking for tputs in -ltinfo... " >&6; } 14706if ${ac_cv_lib_tinfo_tputs+:} false; then : 14707 $as_echo_n "(cached) " >&6 14708else 14709 ac_check_lib_save_LIBS=$LIBS 14710LIBS="-ltinfo $LIBS" 14711cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14712/* end confdefs.h. */ 14713 14714/* Override any GCC internal prototype to avoid an error. 14715 Use char because int might match the return type of a GCC 14716 builtin and then its argument prototype would still apply. */ 14717#ifdef __cplusplus 14718extern "C" 14719#endif 14720char tputs (); 14721int 14722main () 14723{ 14724return tputs (); 14725 ; 14726 return 0; 14727} 14728_ACEOF 14729if ac_fn_c_try_link "$LINENO"; then : 14730 ac_cv_lib_tinfo_tputs=yes 14731else 14732 ac_cv_lib_tinfo_tputs=no 14733fi 14734rm -f core conftest.err conftest.$ac_objext \ 14735 conftest$ac_exeext conftest.$ac_ext 14736LIBS=$ac_check_lib_save_LIBS 14737fi 14738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tputs" >&5 14739$as_echo "$ac_cv_lib_tinfo_tputs" >&6; } 14740if test "x$ac_cv_lib_tinfo_tputs" = xyes; then : 14741 LIBREADLINE="$LIBREADLINE -ltinfo" 14742else 14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lcurses" >&5 14744$as_echo_n "checking for tputs in -lcurses... " >&6; } 14745if ${ac_cv_lib_curses_tputs+:} false; then : 14746 $as_echo_n "(cached) " >&6 14747else 14748 ac_check_lib_save_LIBS=$LIBS 14749LIBS="-lcurses $LIBS" 14750cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14751/* end confdefs.h. */ 14752 14753/* Override any GCC internal prototype to avoid an error. 14754 Use char because int might match the return type of a GCC 14755 builtin and then its argument prototype would still apply. */ 14756#ifdef __cplusplus 14757extern "C" 14758#endif 14759char tputs (); 14760int 14761main () 14762{ 14763return tputs (); 14764 ; 14765 return 0; 14766} 14767_ACEOF 14768if ac_fn_c_try_link "$LINENO"; then : 14769 ac_cv_lib_curses_tputs=yes 14770else 14771 ac_cv_lib_curses_tputs=no 14772fi 14773rm -f core conftest.err conftest.$ac_objext \ 14774 conftest$ac_exeext conftest.$ac_ext 14775LIBS=$ac_check_lib_save_LIBS 14776fi 14777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tputs" >&5 14778$as_echo "$ac_cv_lib_curses_tputs" >&6; } 14779if test "x$ac_cv_lib_curses_tputs" = xyes; then : 14780 LIBREADLINE="$LIBREADLINE -lcurses" 14781else 14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lncurses" >&5 14783$as_echo_n "checking for tputs in -lncurses... " >&6; } 14784if ${ac_cv_lib_ncurses_tputs+:} false; then : 14785 $as_echo_n "(cached) " >&6 14786else 14787 ac_check_lib_save_LIBS=$LIBS 14788LIBS="-lncurses $LIBS" 14789cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14790/* end confdefs.h. */ 14791 14792/* Override any GCC internal prototype to avoid an error. 14793 Use char because int might match the return type of a GCC 14794 builtin and then its argument prototype would still apply. */ 14795#ifdef __cplusplus 14796extern "C" 14797#endif 14798char tputs (); 14799int 14800main () 14801{ 14802return tputs (); 14803 ; 14804 return 0; 14805} 14806_ACEOF 14807if ac_fn_c_try_link "$LINENO"; then : 14808 ac_cv_lib_ncurses_tputs=yes 14809else 14810 ac_cv_lib_ncurses_tputs=no 14811fi 14812rm -f core conftest.err conftest.$ac_objext \ 14813 conftest$ac_exeext conftest.$ac_ext 14814LIBS=$ac_check_lib_save_LIBS 14815fi 14816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tputs" >&5 14817$as_echo "$ac_cv_lib_ncurses_tputs" >&6; } 14818if test "x$ac_cv_lib_ncurses_tputs" = xyes; then : 14819 LIBREADLINE="$LIBREADLINE -lncurses" 14820fi 14821 14822 14823fi 14824 14825 14826fi 14827 14828 14829fi 14830 14831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5 14832$as_echo_n "checking for main in -lreadline... " >&6; } 14833if ${ac_cv_lib_readline_main+:} false; then : 14834 $as_echo_n "(cached) " >&6 14835else 14836 ac_check_lib_save_LIBS=$LIBS 14837LIBS="-lreadline "$LIBREADLINE" $LIBS" 14838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14839/* end confdefs.h. */ 14840 14841 14842int 14843main () 14844{ 14845return main (); 14846 ; 14847 return 0; 14848} 14849_ACEOF 14850if ac_fn_c_try_link "$LINENO"; then : 14851 ac_cv_lib_readline_main=yes 14852else 14853 ac_cv_lib_readline_main=no 14854fi 14855rm -f core conftest.err conftest.$ac_objext \ 14856 conftest$ac_exeext conftest.$ac_ext 14857LIBS=$ac_check_lib_save_LIBS 14858fi 14859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5 14860$as_echo "$ac_cv_lib_readline_main" >&6; } 14861if test "x$ac_cv_lib_readline_main" = xyes; then : 14862 LIBREADLINE="$LIBREADLINE -lreadline" 14863fi 14864 14865 if test $ac_cv_lib_readline_main = no; then 14866 as_fn_error $? "vtysh needs libreadline but was not found and usable on your system." "$LINENO" 5 14867 fi 14868 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default" 14869if test "x$ac_cv_header_readline_history_h" = xyes; then : 14870 14871fi 14872 14873 14874 if test $ac_cv_header_readline_history_h = no;then 14875 as_fn_error $? "readline is too old to have readline/history.h, please update to the latest readline library." "$LINENO" 5 14876 fi 14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 14878$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } 14879if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : 14880 $as_echo_n "(cached) " >&6 14881else 14882 ac_check_lib_save_LIBS=$LIBS 14883LIBS="-lreadline "$LIBREADLINE" $LIBS" 14884cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14885/* end confdefs.h. */ 14886 14887/* Override any GCC internal prototype to avoid an error. 14888 Use char because int might match the return type of a GCC 14889 builtin and then its argument prototype would still apply. */ 14890#ifdef __cplusplus 14891extern "C" 14892#endif 14893char rl_completion_matches (); 14894int 14895main () 14896{ 14897return rl_completion_matches (); 14898 ; 14899 return 0; 14900} 14901_ACEOF 14902if ac_fn_c_try_link "$LINENO"; then : 14903 ac_cv_lib_readline_rl_completion_matches=yes 14904else 14905 ac_cv_lib_readline_rl_completion_matches=no 14906fi 14907rm -f core conftest.err conftest.$ac_objext \ 14908 conftest$ac_exeext conftest.$ac_ext 14909LIBS=$ac_check_lib_save_LIBS 14910fi 14911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 14912$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } 14913if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then : 14914 LIBREADLINE="$LIBREADLINE" 14915fi 14916 14917 if test $ac_cv_lib_readline_rl_completion_matches = no; then 14918 14919$as_echo "#define rl_completion_matches completion_matches" >>confdefs.h 14920 14921 fi 14922 ;; 14923 "no" ) VTYSH="";; 14924 * ) ;; 14925esac 14926 14927 if test "x$VTYSH" = "xvtysh"; then 14928 VTYSH_TRUE= 14929 VTYSH_FALSE='#' 14930else 14931 VTYSH_TRUE='#' 14932 VTYSH_FALSE= 14933fi 14934 14935 14936if test "$with_libpam" = "yes"; then 14937 ac_fn_c_check_header_compile "$LINENO" "security/pam_misc.h" "ac_cv_header_security_pam_misc_h" "#ifdef SUNOS_5 14938#define _XPG4_2 14939#define __EXTENSIONS__ 14940#endif 14941#include <stdio.h> 14942#if STDC_HEADERS 14943# include <stdlib.h> 14944# include <stddef.h> 14945#else 14946# if HAVE_STDLIB_H 14947# include <stdlib.h> 14948# endif 14949#endif 14950#if HAVE_SYS_TYPES_H 14951# include <sys/types.h> 14952#endif 14953/* sys/conf.h depends on param.h on FBSD at least */ 14954#if HAVE_SYS_PARAM_H 14955# include <sys/param.h> 14956#endif 14957/* Required for MAXSIG */ 14958#if HAVE_SIGNAL_H 14959# include <signal.h> 14960#endif 14961#if HAVE_SYS_SOCKET_H 14962# include <sys/socket.h> 14963#endif 14964#ifdef __APPLE__ 14965# define __APPLE_USE_RFC_3542 14966#endif 14967#if HAVE_NETINET_IN_H 14968# include <netinet/in.h> 14969#endif 14970#ifdef TIME_WITH_SYS_TIME 14971# include <sys/time.h> 14972# include <time.h> 14973#else 14974# ifdef HAVE_SYS_TIME_H 14975# include <sys/time.h> 14976# else 14977# include <time.h> 14978# endif 14979#endif /* TIME_WITH_SYS_TIME */ 14980 14981#if HAVE_NET_IF_H 14982# include <net/if.h> 14983#endif 14984 14985#if HAVE_NET_IF_VAR_H 14986# include <net/if_var.h> 14987#endif 14988 14989#if HAVE_SYS_UN_H 14990# include <sys/un.h> 14991#endif 14992#if HAVE_NETINET_IN_SYSTM_H 14993# include <netinet/in_systm.h> 14994#endif 14995#if HAVE_NETINET_IN_VAR_H 14996# include <netinet/in_var.h> 14997#endif 14998#if HAVE_NET_IF_DL_H 14999# include <net/if_dl.h> 15000#endif 15001#if HAVE_NET_NETOPT_H 15002# include <net/netopt.h> 15003#endif 15004#if HAVE_NET_ROUTE_H 15005# include <net/route.h> 15006#endif 15007#if HAVE_INET_ND_H 15008# include <inet/nd.h> 15009#endif 15010#if HAVE_ARPA_INET_H 15011# include <arpa/inet.h> 15012#endif 15013/* Required for IDRP */ 15014#if HAVE_NETINET_IP_ICMP_H 15015# include <netinet/ip_icmp.h> 15016#endif 15017 15018" 15019if test "x$ac_cv_header_security_pam_misc_h" = xyes; then : 15020 15021$as_echo "#define HAVE_PAM_MISC_H /**/" >>confdefs.h 15022 15023 15024$as_echo "#define PAM_CONV_FUNC misc_conv" >>confdefs.h 15025 15026 pam_conv_func="misc_conv" 15027 15028fi 15029 15030 15031 ac_fn_c_check_header_compile "$LINENO" "security/openpam.h" "ac_cv_header_security_openpam_h" "#ifdef SUNOS_5 15032#define _XPG4_2 15033#define __EXTENSIONS__ 15034#endif 15035#include <stdio.h> 15036#if STDC_HEADERS 15037# include <stdlib.h> 15038# include <stddef.h> 15039#else 15040# if HAVE_STDLIB_H 15041# include <stdlib.h> 15042# endif 15043#endif 15044#if HAVE_SYS_TYPES_H 15045# include <sys/types.h> 15046#endif 15047/* sys/conf.h depends on param.h on FBSD at least */ 15048#if HAVE_SYS_PARAM_H 15049# include <sys/param.h> 15050#endif 15051/* Required for MAXSIG */ 15052#if HAVE_SIGNAL_H 15053# include <signal.h> 15054#endif 15055#if HAVE_SYS_SOCKET_H 15056# include <sys/socket.h> 15057#endif 15058#ifdef __APPLE__ 15059# define __APPLE_USE_RFC_3542 15060#endif 15061#if HAVE_NETINET_IN_H 15062# include <netinet/in.h> 15063#endif 15064#ifdef TIME_WITH_SYS_TIME 15065# include <sys/time.h> 15066# include <time.h> 15067#else 15068# ifdef HAVE_SYS_TIME_H 15069# include <sys/time.h> 15070# else 15071# include <time.h> 15072# endif 15073#endif /* TIME_WITH_SYS_TIME */ 15074 15075#if HAVE_NET_IF_H 15076# include <net/if.h> 15077#endif 15078 15079#if HAVE_NET_IF_VAR_H 15080# include <net/if_var.h> 15081#endif 15082 15083#if HAVE_SYS_UN_H 15084# include <sys/un.h> 15085#endif 15086#if HAVE_NETINET_IN_SYSTM_H 15087# include <netinet/in_systm.h> 15088#endif 15089#if HAVE_NETINET_IN_VAR_H 15090# include <netinet/in_var.h> 15091#endif 15092#if HAVE_NET_IF_DL_H 15093# include <net/if_dl.h> 15094#endif 15095#if HAVE_NET_NETOPT_H 15096# include <net/netopt.h> 15097#endif 15098#if HAVE_NET_ROUTE_H 15099# include <net/route.h> 15100#endif 15101#if HAVE_INET_ND_H 15102# include <inet/nd.h> 15103#endif 15104#if HAVE_ARPA_INET_H 15105# include <arpa/inet.h> 15106#endif 15107/* Required for IDRP */ 15108#if HAVE_NETINET_IP_ICMP_H 15109# include <netinet/ip_icmp.h> 15110#endif 15111#include <security/pam_appl.h> 15112" 15113if test "x$ac_cv_header_security_openpam_h" = xyes; then : 15114 15115$as_echo "#define HAVE_OPENPAM_H /**/" >>confdefs.h 15116 15117 15118$as_echo "#define PAM_CONV_FUNC openpam_ttyconv" >>confdefs.h 15119 15120 pam_conv_func="openpam_ttyconv" 15121 15122fi 15123 15124 15125 if test -z "$ac_cv_header_security_pam_misc_h$ac_cv_header_security_openpam_h" ; then 15126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** pam support will not be built ***" >&5 15127$as_echo "$as_me: WARNING: *** pam support will not be built ***" >&2;} 15128 with_libpam="no" 15129 fi 15130fi 15131 15132if test "$with_libpam" = "yes"; then 15133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 15134$as_echo_n "checking for pam_start in -lpam... " >&6; } 15135if ${ac_cv_lib_pam_pam_start+:} false; then : 15136 $as_echo_n "(cached) " >&6 15137else 15138 ac_check_lib_save_LIBS=$LIBS 15139LIBS="-lpam $LIBS" 15140cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15141/* end confdefs.h. */ 15142 15143/* Override any GCC internal prototype to avoid an error. 15144 Use char because int might match the return type of a GCC 15145 builtin and then its argument prototype would still apply. */ 15146#ifdef __cplusplus 15147extern "C" 15148#endif 15149char pam_start (); 15150int 15151main () 15152{ 15153return pam_start (); 15154 ; 15155 return 0; 15156} 15157_ACEOF 15158if ac_fn_c_try_link "$LINENO"; then : 15159 ac_cv_lib_pam_pam_start=yes 15160else 15161 ac_cv_lib_pam_pam_start=no 15162fi 15163rm -f core conftest.err conftest.$ac_objext \ 15164 conftest$ac_exeext conftest.$ac_ext 15165LIBS=$ac_check_lib_save_LIBS 15166fi 15167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 15168$as_echo "$ac_cv_lib_pam_pam_start" >&6; } 15169if test "x$ac_cv_lib_pam_pam_start" = xyes; then : 15170 as_ac_Lib=`$as_echo "ac_cv_lib_pam_$pam_conv_func" | $as_tr_sh` 15171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pam_conv_func in -lpam" >&5 15172$as_echo_n "checking for $pam_conv_func in -lpam... " >&6; } 15173if eval \${$as_ac_Lib+:} false; then : 15174 $as_echo_n "(cached) " >&6 15175else 15176 ac_check_lib_save_LIBS=$LIBS 15177LIBS="-lpam $LIBS" 15178cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15179/* end confdefs.h. */ 15180 15181/* Override any GCC internal prototype to avoid an error. 15182 Use char because int might match the return type of a GCC 15183 builtin and then its argument prototype would still apply. */ 15184#ifdef __cplusplus 15185extern "C" 15186#endif 15187char $pam_conv_func (); 15188int 15189main () 15190{ 15191return $pam_conv_func (); 15192 ; 15193 return 0; 15194} 15195_ACEOF 15196if ac_fn_c_try_link "$LINENO"; then : 15197 eval "$as_ac_Lib=yes" 15198else 15199 eval "$as_ac_Lib=no" 15200fi 15201rm -f core conftest.err conftest.$ac_objext \ 15202 conftest$ac_exeext conftest.$ac_ext 15203LIBS=$ac_check_lib_save_LIBS 15204fi 15205eval ac_res=\$$as_ac_Lib 15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15207$as_echo "$ac_res" >&6; } 15208if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 15209 15210$as_echo "#define USE_PAM /**/" >>confdefs.h 15211 15212 LIBPAM="-lpam" 15213else 15214 15215$as_echo "#define USE_PAM /**/" >>confdefs.h 15216 15217 LIBPAM="-lpam -lpam_misc" 15218 15219fi 15220 15221 15222else 15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_end in -lpam" >&5 15224$as_echo_n "checking for pam_end in -lpam... " >&6; } 15225if ${ac_cv_lib_pam_pam_end+:} false; then : 15226 $as_echo_n "(cached) " >&6 15227else 15228 ac_check_lib_save_LIBS=$LIBS 15229LIBS="-lpam -ldl $LIBS" 15230cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15231/* end confdefs.h. */ 15232 15233/* Override any GCC internal prototype to avoid an error. 15234 Use char because int might match the return type of a GCC 15235 builtin and then its argument prototype would still apply. */ 15236#ifdef __cplusplus 15237extern "C" 15238#endif 15239char pam_end (); 15240int 15241main () 15242{ 15243return pam_end (); 15244 ; 15245 return 0; 15246} 15247_ACEOF 15248if ac_fn_c_try_link "$LINENO"; then : 15249 ac_cv_lib_pam_pam_end=yes 15250else 15251 ac_cv_lib_pam_pam_end=no 15252fi 15253rm -f core conftest.err conftest.$ac_objext \ 15254 conftest$ac_exeext conftest.$ac_ext 15255LIBS=$ac_check_lib_save_LIBS 15256fi 15257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_end" >&5 15258$as_echo "$ac_cv_lib_pam_pam_end" >&6; } 15259if test "x$ac_cv_lib_pam_pam_end" = xyes; then : 15260 as_ac_Lib=`$as_echo "ac_cv_lib_pam_$pam_conv_func" | $as_tr_sh` 15261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pam_conv_func in -lpam" >&5 15262$as_echo_n "checking for $pam_conv_func in -lpam... " >&6; } 15263if eval \${$as_ac_Lib+:} false; then : 15264 $as_echo_n "(cached) " >&6 15265else 15266 ac_check_lib_save_LIBS=$LIBS 15267LIBS="-lpam $LIBS" 15268cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15269/* end confdefs.h. */ 15270 15271/* Override any GCC internal prototype to avoid an error. 15272 Use char because int might match the return type of a GCC 15273 builtin and then its argument prototype would still apply. */ 15274#ifdef __cplusplus 15275extern "C" 15276#endif 15277char $pam_conv_func (); 15278int 15279main () 15280{ 15281return $pam_conv_func (); 15282 ; 15283 return 0; 15284} 15285_ACEOF 15286if ac_fn_c_try_link "$LINENO"; then : 15287 eval "$as_ac_Lib=yes" 15288else 15289 eval "$as_ac_Lib=no" 15290fi 15291rm -f core conftest.err conftest.$ac_objext \ 15292 conftest$ac_exeext conftest.$ac_ext 15293LIBS=$ac_check_lib_save_LIBS 15294fi 15295eval ac_res=\$$as_ac_Lib 15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15297$as_echo "$ac_res" >&6; } 15298if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 15299 15300$as_echo "#define USE_PAM /**/" >>confdefs.h 15301 15302 LIBPAM="-lpam -ldl" 15303else 15304 15305$as_echo "#define USE_PAM /**/" >>confdefs.h 15306 15307 LIBPAM="-lpam -ldl -lpam_misc" 15308 15309fi 15310 15311 15312else 15313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** pam support will not be built ***" >&5 15314$as_echo "$as_me: WARNING: *** pam support will not be built ***" >&2;} 15315fi 15316 15317 15318 15319fi 15320 15321fi 15322 15323 15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 15325$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 15326if ${ac_cv_c_bigendian+:} false; then : 15327 $as_echo_n "(cached) " >&6 15328else 15329 ac_cv_c_bigendian=unknown 15330 # See if we're dealing with a universal compiler. 15331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15332/* end confdefs.h. */ 15333#ifndef __APPLE_CC__ 15334 not a universal capable compiler 15335 #endif 15336 typedef int dummy; 15337 15338_ACEOF 15339if ac_fn_c_try_compile "$LINENO"; then : 15340 15341 # Check for potential -arch flags. It is not universal unless 15342 # there are at least two -arch flags with different values. 15343 ac_arch= 15344 ac_prev= 15345 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 15346 if test -n "$ac_prev"; then 15347 case $ac_word in 15348 i?86 | x86_64 | ppc | ppc64) 15349 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 15350 ac_arch=$ac_word 15351 else 15352 ac_cv_c_bigendian=universal 15353 break 15354 fi 15355 ;; 15356 esac 15357 ac_prev= 15358 elif test "x$ac_word" = "x-arch"; then 15359 ac_prev=arch 15360 fi 15361 done 15362fi 15363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15364 if test $ac_cv_c_bigendian = unknown; then 15365 # See if sys/param.h defines the BYTE_ORDER macro. 15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15367/* end confdefs.h. */ 15368#include <sys/types.h> 15369 #include <sys/param.h> 15370 15371int 15372main () 15373{ 15374#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 15375 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 15376 && LITTLE_ENDIAN) 15377 bogus endian macros 15378 #endif 15379 15380 ; 15381 return 0; 15382} 15383_ACEOF 15384if ac_fn_c_try_compile "$LINENO"; then : 15385 # It does; now see whether it defined to BIG_ENDIAN or not. 15386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15387/* end confdefs.h. */ 15388#include <sys/types.h> 15389 #include <sys/param.h> 15390 15391int 15392main () 15393{ 15394#if BYTE_ORDER != BIG_ENDIAN 15395 not big endian 15396 #endif 15397 15398 ; 15399 return 0; 15400} 15401_ACEOF 15402if ac_fn_c_try_compile "$LINENO"; then : 15403 ac_cv_c_bigendian=yes 15404else 15405 ac_cv_c_bigendian=no 15406fi 15407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15408fi 15409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15410 fi 15411 if test $ac_cv_c_bigendian = unknown; then 15412 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 15413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15414/* end confdefs.h. */ 15415#include <limits.h> 15416 15417int 15418main () 15419{ 15420#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 15421 bogus endian macros 15422 #endif 15423 15424 ; 15425 return 0; 15426} 15427_ACEOF 15428if ac_fn_c_try_compile "$LINENO"; then : 15429 # It does; now see whether it defined to _BIG_ENDIAN or not. 15430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15431/* end confdefs.h. */ 15432#include <limits.h> 15433 15434int 15435main () 15436{ 15437#ifndef _BIG_ENDIAN 15438 not big endian 15439 #endif 15440 15441 ; 15442 return 0; 15443} 15444_ACEOF 15445if ac_fn_c_try_compile "$LINENO"; then : 15446 ac_cv_c_bigendian=yes 15447else 15448 ac_cv_c_bigendian=no 15449fi 15450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15451fi 15452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15453 fi 15454 if test $ac_cv_c_bigendian = unknown; then 15455 # Compile a test program. 15456 if test "$cross_compiling" = yes; then : 15457 # Try to guess by grepping values from an object file. 15458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15459/* end confdefs.h. */ 15460short int ascii_mm[] = 15461 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 15462 short int ascii_ii[] = 15463 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 15464 int use_ascii (int i) { 15465 return ascii_mm[i] + ascii_ii[i]; 15466 } 15467 short int ebcdic_ii[] = 15468 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 15469 short int ebcdic_mm[] = 15470 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 15471 int use_ebcdic (int i) { 15472 return ebcdic_mm[i] + ebcdic_ii[i]; 15473 } 15474 extern int foo; 15475 15476int 15477main () 15478{ 15479return use_ascii (foo) == use_ebcdic (foo); 15480 ; 15481 return 0; 15482} 15483_ACEOF 15484if ac_fn_c_try_compile "$LINENO"; then : 15485 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 15486 ac_cv_c_bigendian=yes 15487 fi 15488 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 15489 if test "$ac_cv_c_bigendian" = unknown; then 15490 ac_cv_c_bigendian=no 15491 else 15492 # finding both strings is unlikely to happen, but who knows? 15493 ac_cv_c_bigendian=unknown 15494 fi 15495 fi 15496fi 15497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15498else 15499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15500/* end confdefs.h. */ 15501$ac_includes_default 15502int 15503main () 15504{ 15505 15506 /* Are we little or big endian? From Harbison&Steele. */ 15507 union 15508 { 15509 long int l; 15510 char c[sizeof (long int)]; 15511 } u; 15512 u.l = 1; 15513 return u.c[sizeof (long int) - 1] == 1; 15514 15515 ; 15516 return 0; 15517} 15518_ACEOF 15519if ac_fn_c_try_run "$LINENO"; then : 15520 ac_cv_c_bigendian=no 15521else 15522 ac_cv_c_bigendian=yes 15523fi 15524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15525 conftest.$ac_objext conftest.beam conftest.$ac_ext 15526fi 15527 15528 fi 15529fi 15530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 15531$as_echo "$ac_cv_c_bigendian" >&6; } 15532 case $ac_cv_c_bigendian in #( 15533 yes) 15534 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 15535;; #( 15536 no) 15537 ;; #( 15538 universal) 15539 15540$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 15541 15542 ;; #( 15543 *) 15544 as_fn_error $? "unknown endianness 15545 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 15546 esac 15547 15548 15549 15550for ac_header in unistd.h 15551do : 15552 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 15553if test "x$ac_cv_header_unistd_h" = xyes; then : 15554 cat >>confdefs.h <<_ACEOF 15555#define HAVE_UNISTD_H 1 15556_ACEOF 15557 15558fi 15559 15560done 15561 15562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 15563$as_echo_n "checking for working chown... " >&6; } 15564if ${ac_cv_func_chown_works+:} false; then : 15565 $as_echo_n "(cached) " >&6 15566else 15567 if test "$cross_compiling" = yes; then : 15568 ac_cv_func_chown_works=no 15569else 15570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15571/* end confdefs.h. */ 15572$ac_includes_default 15573#include <fcntl.h> 15574 15575int 15576main () 15577{ 15578 char *f = "conftest.chown"; 15579 struct stat before, after; 15580 15581 if (creat (f, 0600) < 0) 15582 return 1; 15583 if (stat (f, &before) < 0) 15584 return 1; 15585 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 15586 return 1; 15587 if (stat (f, &after) < 0) 15588 return 1; 15589 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 15590 15591 ; 15592 return 0; 15593} 15594_ACEOF 15595if ac_fn_c_try_run "$LINENO"; then : 15596 ac_cv_func_chown_works=yes 15597else 15598 ac_cv_func_chown_works=no 15599fi 15600rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15601 conftest.$ac_objext conftest.beam conftest.$ac_ext 15602fi 15603 15604rm -f conftest.chown 15605 15606fi 15607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 15608$as_echo "$ac_cv_func_chown_works" >&6; } 15609if test $ac_cv_func_chown_works = yes; then 15610 15611$as_echo "#define HAVE_CHOWN 1" >>confdefs.h 15612 15613fi 15614 15615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5 15616$as_echo_n "checking for working POSIX fnmatch... " >&6; } 15617if ${ac_cv_func_fnmatch_works+:} false; then : 15618 $as_echo_n "(cached) " >&6 15619else 15620 # Some versions of Solaris, SCO, and the GNU C Library 15621 # have a broken or incompatible fnmatch. 15622 # So we run a test program. If we are cross-compiling, take no chance. 15623 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test. 15624 if test "$cross_compiling" = yes; then : 15625 ac_cv_func_fnmatch_works=cross 15626else 15627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15628/* end confdefs.h. */ 15629#include <fnmatch.h> 15630# define y(a, b, c) (fnmatch (a, b, c) == 0) 15631# define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH) 15632 15633int 15634main () 15635{ 15636return 15637 (!(y ("a*", "abc", 0) 15638 && n ("d*/*1", "d/s/1", FNM_PATHNAME) 15639 && y ("a\\\\bc", "abc", 0) 15640 && n ("a\\\\bc", "abc", FNM_NOESCAPE) 15641 && y ("*x", ".x", 0) 15642 && n ("*x", ".x", FNM_PERIOD) 15643 && 1)); 15644 ; 15645 return 0; 15646} 15647_ACEOF 15648if ac_fn_c_try_run "$LINENO"; then : 15649 ac_cv_func_fnmatch_works=yes 15650else 15651 ac_cv_func_fnmatch_works=no 15652fi 15653rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15654 conftest.$ac_objext conftest.beam conftest.$ac_ext 15655fi 15656 15657fi 15658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5 15659$as_echo "$ac_cv_func_fnmatch_works" >&6; } 15660if test $ac_cv_func_fnmatch_works = yes; then : 15661 15662$as_echo "#define HAVE_FNMATCH 1" >>confdefs.h 15663 15664fi 15665 15666 15667ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 15668if test "x$ac_cv_type_pid_t" = xyes; then : 15669 15670else 15671 15672cat >>confdefs.h <<_ACEOF 15673#define pid_t int 15674_ACEOF 15675 15676fi 15677 15678for ac_header in vfork.h 15679do : 15680 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 15681if test "x$ac_cv_header_vfork_h" = xyes; then : 15682 cat >>confdefs.h <<_ACEOF 15683#define HAVE_VFORK_H 1 15684_ACEOF 15685 15686fi 15687 15688done 15689 15690for ac_func in fork vfork 15691do : 15692 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15693ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15694if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15695 cat >>confdefs.h <<_ACEOF 15696#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15697_ACEOF 15698 15699fi 15700done 15701 15702if test "x$ac_cv_func_fork" = xyes; then 15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 15704$as_echo_n "checking for working fork... " >&6; } 15705if ${ac_cv_func_fork_works+:} false; then : 15706 $as_echo_n "(cached) " >&6 15707else 15708 if test "$cross_compiling" = yes; then : 15709 ac_cv_func_fork_works=cross 15710else 15711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15712/* end confdefs.h. */ 15713$ac_includes_default 15714int 15715main () 15716{ 15717 15718 /* By Ruediger Kuhlmann. */ 15719 return fork () < 0; 15720 15721 ; 15722 return 0; 15723} 15724_ACEOF 15725if ac_fn_c_try_run "$LINENO"; then : 15726 ac_cv_func_fork_works=yes 15727else 15728 ac_cv_func_fork_works=no 15729fi 15730rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15731 conftest.$ac_objext conftest.beam conftest.$ac_ext 15732fi 15733 15734fi 15735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 15736$as_echo "$ac_cv_func_fork_works" >&6; } 15737 15738else 15739 ac_cv_func_fork_works=$ac_cv_func_fork 15740fi 15741if test "x$ac_cv_func_fork_works" = xcross; then 15742 case $host in 15743 *-*-amigaos* | *-*-msdosdjgpp*) 15744 # Override, as these systems have only a dummy fork() stub 15745 ac_cv_func_fork_works=no 15746 ;; 15747 *) 15748 ac_cv_func_fork_works=yes 15749 ;; 15750 esac 15751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 15752$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 15753fi 15754ac_cv_func_vfork_works=$ac_cv_func_vfork 15755if test "x$ac_cv_func_vfork" = xyes; then 15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 15757$as_echo_n "checking for working vfork... " >&6; } 15758if ${ac_cv_func_vfork_works+:} false; then : 15759 $as_echo_n "(cached) " >&6 15760else 15761 if test "$cross_compiling" = yes; then : 15762 ac_cv_func_vfork_works=cross 15763else 15764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15765/* end confdefs.h. */ 15766/* Thanks to Paul Eggert for this test. */ 15767$ac_includes_default 15768#include <sys/wait.h> 15769#ifdef HAVE_VFORK_H 15770# include <vfork.h> 15771#endif 15772/* On some sparc systems, changes by the child to local and incoming 15773 argument registers are propagated back to the parent. The compiler 15774 is told about this with #include <vfork.h>, but some compilers 15775 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 15776 static variable whose address is put into a register that is 15777 clobbered by the vfork. */ 15778static void 15779#ifdef __cplusplus 15780sparc_address_test (int arg) 15781# else 15782sparc_address_test (arg) int arg; 15783#endif 15784{ 15785 static pid_t child; 15786 if (!child) { 15787 child = vfork (); 15788 if (child < 0) { 15789 perror ("vfork"); 15790 _exit(2); 15791 } 15792 if (!child) { 15793 arg = getpid(); 15794 write(-1, "", 0); 15795 _exit (arg); 15796 } 15797 } 15798} 15799 15800int 15801main () 15802{ 15803 pid_t parent = getpid (); 15804 pid_t child; 15805 15806 sparc_address_test (0); 15807 15808 child = vfork (); 15809 15810 if (child == 0) { 15811 /* Here is another test for sparc vfork register problems. This 15812 test uses lots of local variables, at least as many local 15813 variables as main has allocated so far including compiler 15814 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 15815 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 15816 reuse the register of parent for one of the local variables, 15817 since it will think that parent can't possibly be used any more 15818 in this routine. Assigning to the local variable will thus 15819 munge parent in the parent process. */ 15820 pid_t 15821 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 15822 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 15823 /* Convince the compiler that p..p7 are live; otherwise, it might 15824 use the same hardware register for all 8 local variables. */ 15825 if (p != p1 || p != p2 || p != p3 || p != p4 15826 || p != p5 || p != p6 || p != p7) 15827 _exit(1); 15828 15829 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 15830 from child file descriptors. If the child closes a descriptor 15831 before it execs or exits, this munges the parent's descriptor 15832 as well. Test for this by closing stdout in the child. */ 15833 _exit(close(fileno(stdout)) != 0); 15834 } else { 15835 int status; 15836 struct stat st; 15837 15838 while (wait(&status) != child) 15839 ; 15840 return ( 15841 /* Was there some problem with vforking? */ 15842 child < 0 15843 15844 /* Did the child fail? (This shouldn't happen.) */ 15845 || status 15846 15847 /* Did the vfork/compiler bug occur? */ 15848 || parent != getpid() 15849 15850 /* Did the file descriptor bug occur? */ 15851 || fstat(fileno(stdout), &st) != 0 15852 ); 15853 } 15854} 15855_ACEOF 15856if ac_fn_c_try_run "$LINENO"; then : 15857 ac_cv_func_vfork_works=yes 15858else 15859 ac_cv_func_vfork_works=no 15860fi 15861rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15862 conftest.$ac_objext conftest.beam conftest.$ac_ext 15863fi 15864 15865fi 15866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 15867$as_echo "$ac_cv_func_vfork_works" >&6; } 15868 15869fi; 15870if test "x$ac_cv_func_fork_works" = xcross; then 15871 ac_cv_func_vfork_works=$ac_cv_func_vfork 15872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 15873$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 15874fi 15875 15876if test "x$ac_cv_func_vfork_works" = xyes; then 15877 15878$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 15879 15880else 15881 15882$as_echo "#define vfork fork" >>confdefs.h 15883 15884fi 15885if test "x$ac_cv_func_fork_works" = xyes; then 15886 15887$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 15888 15889fi 15890 15891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 15892$as_echo_n "checking for working memcmp... " >&6; } 15893if ${ac_cv_func_memcmp_working+:} false; then : 15894 $as_echo_n "(cached) " >&6 15895else 15896 if test "$cross_compiling" = yes; then : 15897 ac_cv_func_memcmp_working=no 15898else 15899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15900/* end confdefs.h. */ 15901$ac_includes_default 15902int 15903main () 15904{ 15905 15906 /* Some versions of memcmp are not 8-bit clean. */ 15907 char c0 = '\100', c1 = '\200', c2 = '\201'; 15908 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 15909 return 1; 15910 15911 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 15912 or more and with at least one buffer not starting on a 4-byte boundary. 15913 William Lewis provided this test program. */ 15914 { 15915 char foo[21]; 15916 char bar[21]; 15917 int i; 15918 for (i = 0; i < 4; i++) 15919 { 15920 char *a = foo + i; 15921 char *b = bar + i; 15922 strcpy (a, "--------01111111"); 15923 strcpy (b, "--------10000000"); 15924 if (memcmp (a, b, 16) >= 0) 15925 return 1; 15926 } 15927 return 0; 15928 } 15929 15930 ; 15931 return 0; 15932} 15933_ACEOF 15934if ac_fn_c_try_run "$LINENO"; then : 15935 ac_cv_func_memcmp_working=yes 15936else 15937 ac_cv_func_memcmp_working=no 15938fi 15939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15940 conftest.$ac_objext conftest.beam conftest.$ac_ext 15941fi 15942 15943fi 15944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 15945$as_echo "$ac_cv_func_memcmp_working" >&6; } 15946test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 15947 *" memcmp.$ac_objext "* ) ;; 15948 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 15949 ;; 15950esac 15951 15952 15953 15954 15955 15956 for ac_header in $ac_header_list 15957do : 15958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15959ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 15960" 15961if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15962 cat >>confdefs.h <<_ACEOF 15963#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15964_ACEOF 15965 15966fi 15967 15968done 15969 15970 15971 15972 15973 15974 15975 15976 15977 for ac_func in $ac_func_list 15978do : 15979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15980ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15981if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15982 cat >>confdefs.h <<_ACEOF 15983#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15984_ACEOF 15985 15986fi 15987done 15988 15989 15990 15991 15992 15993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 15994$as_echo_n "checking for working mktime... " >&6; } 15995if ${ac_cv_func_working_mktime+:} false; then : 15996 $as_echo_n "(cached) " >&6 15997else 15998 if test "$cross_compiling" = yes; then : 15999 ac_cv_func_working_mktime=no 16000else 16001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16002/* end confdefs.h. */ 16003/* Test program from Paul Eggert and Tony Leneis. */ 16004#ifdef TIME_WITH_SYS_TIME 16005# include <sys/time.h> 16006# include <time.h> 16007#else 16008# ifdef HAVE_SYS_TIME_H 16009# include <sys/time.h> 16010# else 16011# include <time.h> 16012# endif 16013#endif 16014 16015#include <limits.h> 16016#include <stdlib.h> 16017 16018#ifdef HAVE_UNISTD_H 16019# include <unistd.h> 16020#endif 16021 16022#ifndef HAVE_ALARM 16023# define alarm(X) /* empty */ 16024#endif 16025 16026/* Work around redefinition to rpl_putenv by other config tests. */ 16027#undef putenv 16028 16029static time_t time_t_max; 16030static time_t time_t_min; 16031 16032/* Values we'll use to set the TZ environment variable. */ 16033static const char *tz_strings[] = { 16034 (const char *) 0, "TZ=GMT0", "TZ=JST-9", 16035 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" 16036}; 16037#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) 16038 16039/* Return 0 if mktime fails to convert a date in the spring-forward gap. 16040 Based on a problem report from Andreas Jaeger. */ 16041static int 16042spring_forward_gap () 16043{ 16044 /* glibc (up to about 1998-10-07) failed this test. */ 16045 struct tm tm; 16046 16047 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" 16048 instead of "TZ=America/Vancouver" in order to detect the bug even 16049 on systems that don't support the Olson extension, or don't have the 16050 full zoneinfo tables installed. */ 16051 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0"); 16052 16053 tm.tm_year = 98; 16054 tm.tm_mon = 3; 16055 tm.tm_mday = 5; 16056 tm.tm_hour = 2; 16057 tm.tm_min = 0; 16058 tm.tm_sec = 0; 16059 tm.tm_isdst = -1; 16060 return mktime (&tm) != (time_t) -1; 16061} 16062 16063static int 16064mktime_test1 (time_t now) 16065{ 16066 struct tm *lt; 16067 return ! (lt = localtime (&now)) || mktime (lt) == now; 16068} 16069 16070static int 16071mktime_test (time_t now) 16072{ 16073 return (mktime_test1 (now) 16074 && mktime_test1 ((time_t) (time_t_max - now)) 16075 && mktime_test1 ((time_t) (time_t_min + now))); 16076} 16077 16078static int 16079irix_6_4_bug () 16080{ 16081 /* Based on code from Ariel Faigon. */ 16082 struct tm tm; 16083 tm.tm_year = 96; 16084 tm.tm_mon = 3; 16085 tm.tm_mday = 0; 16086 tm.tm_hour = 0; 16087 tm.tm_min = 0; 16088 tm.tm_sec = 0; 16089 tm.tm_isdst = -1; 16090 mktime (&tm); 16091 return tm.tm_mon == 2 && tm.tm_mday == 31; 16092} 16093 16094static int 16095bigtime_test (int j) 16096{ 16097 struct tm tm; 16098 time_t now; 16099 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; 16100 now = mktime (&tm); 16101 if (now != (time_t) -1) 16102 { 16103 struct tm *lt = localtime (&now); 16104 if (! (lt 16105 && lt->tm_year == tm.tm_year 16106 && lt->tm_mon == tm.tm_mon 16107 && lt->tm_mday == tm.tm_mday 16108 && lt->tm_hour == tm.tm_hour 16109 && lt->tm_min == tm.tm_min 16110 && lt->tm_sec == tm.tm_sec 16111 && lt->tm_yday == tm.tm_yday 16112 && lt->tm_wday == tm.tm_wday 16113 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) 16114 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) 16115 return 0; 16116 } 16117 return 1; 16118} 16119 16120static int 16121year_2050_test () 16122{ 16123 /* The correct answer for 2050-02-01 00:00:00 in Pacific time, 16124 ignoring leap seconds. */ 16125 unsigned long int answer = 2527315200UL; 16126 16127 struct tm tm; 16128 time_t t; 16129 tm.tm_year = 2050 - 1900; 16130 tm.tm_mon = 2 - 1; 16131 tm.tm_mday = 1; 16132 tm.tm_hour = tm.tm_min = tm.tm_sec = 0; 16133 tm.tm_isdst = -1; 16134 16135 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" 16136 instead of "TZ=America/Vancouver" in order to detect the bug even 16137 on systems that don't support the Olson extension, or don't have the 16138 full zoneinfo tables installed. */ 16139 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0"); 16140 16141 t = mktime (&tm); 16142 16143 /* Check that the result is either a failure, or close enough 16144 to the correct answer that we can assume the discrepancy is 16145 due to leap seconds. */ 16146 return (t == (time_t) -1 16147 || (0 < t && answer - 120 <= t && t <= answer + 120)); 16148} 16149 16150int 16151main () 16152{ 16153 time_t t, delta; 16154 int i, j; 16155 16156 /* This test makes some buggy mktime implementations loop. 16157 Give up after 60 seconds; a mktime slower than that 16158 isn't worth using anyway. */ 16159 alarm (60); 16160 16161 for (;;) 16162 { 16163 t = (time_t_max << 1) + 1; 16164 if (t <= time_t_max) 16165 break; 16166 time_t_max = t; 16167 } 16168 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max; 16169 16170 delta = time_t_max / 997; /* a suitable prime number */ 16171 for (i = 0; i < N_STRINGS; i++) 16172 { 16173 if (tz_strings[i]) 16174 putenv ((char*) tz_strings[i]); 16175 16176 for (t = 0; t <= time_t_max - delta; t += delta) 16177 if (! mktime_test (t)) 16178 return 1; 16179 if (! (mktime_test ((time_t) 1) 16180 && mktime_test ((time_t) (60 * 60)) 16181 && mktime_test ((time_t) (60 * 60 * 24)))) 16182 return 1; 16183 16184 for (j = 1; ; j <<= 1) 16185 if (! bigtime_test (j)) 16186 return 1; 16187 else if (INT_MAX / 2 < j) 16188 break; 16189 if (! bigtime_test (INT_MAX)) 16190 return 1; 16191 } 16192 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 16193} 16194_ACEOF 16195if ac_fn_c_try_run "$LINENO"; then : 16196 ac_cv_func_working_mktime=yes 16197else 16198 ac_cv_func_working_mktime=no 16199fi 16200rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16201 conftest.$ac_objext conftest.beam conftest.$ac_ext 16202fi 16203 16204fi 16205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5 16206$as_echo "$ac_cv_func_working_mktime" >&6; } 16207if test $ac_cv_func_working_mktime = no; then 16208 case " $LIBOBJS " in 16209 *" mktime.$ac_objext "* ) ;; 16210 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" 16211 ;; 16212esac 16213 16214fi 16215 16216for ac_func in strftime 16217do : 16218 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 16219if test "x$ac_cv_func_strftime" = xyes; then : 16220 cat >>confdefs.h <<_ACEOF 16221#define HAVE_STRFTIME 1 16222_ACEOF 16223 16224else 16225 # strftime is in -lintl on SCO UNIX. 16226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 16227$as_echo_n "checking for strftime in -lintl... " >&6; } 16228if ${ac_cv_lib_intl_strftime+:} false; then : 16229 $as_echo_n "(cached) " >&6 16230else 16231 ac_check_lib_save_LIBS=$LIBS 16232LIBS="-lintl $LIBS" 16233cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16234/* end confdefs.h. */ 16235 16236/* Override any GCC internal prototype to avoid an error. 16237 Use char because int might match the return type of a GCC 16238 builtin and then its argument prototype would still apply. */ 16239#ifdef __cplusplus 16240extern "C" 16241#endif 16242char strftime (); 16243int 16244main () 16245{ 16246return strftime (); 16247 ; 16248 return 0; 16249} 16250_ACEOF 16251if ac_fn_c_try_link "$LINENO"; then : 16252 ac_cv_lib_intl_strftime=yes 16253else 16254 ac_cv_lib_intl_strftime=no 16255fi 16256rm -f core conftest.err conftest.$ac_objext \ 16257 conftest$ac_exeext conftest.$ac_ext 16258LIBS=$ac_check_lib_save_LIBS 16259fi 16260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 16261$as_echo "$ac_cv_lib_intl_strftime" >&6; } 16262if test "x$ac_cv_lib_intl_strftime" = xyes; then : 16263 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 16264 16265LIBS="-lintl $LIBS" 16266fi 16267 16268fi 16269done 16270 16271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 16272$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 16273if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : 16274 $as_echo_n "(cached) " >&6 16275else 16276 rm -f conftest.sym conftest.file 16277echo >conftest.file 16278if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 16279 if test "$cross_compiling" = yes; then : 16280 ac_cv_func_lstat_dereferences_slashed_symlink=no 16281else 16282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16283/* end confdefs.h. */ 16284$ac_includes_default 16285int 16286main () 16287{ 16288struct stat sbuf; 16289 /* Linux will dereference the symlink and fail, as required by POSIX. 16290 That is better in the sense that it means we will not 16291 have to compile and use the lstat wrapper. */ 16292 return lstat ("conftest.sym/", &sbuf) == 0; 16293 ; 16294 return 0; 16295} 16296_ACEOF 16297if ac_fn_c_try_run "$LINENO"; then : 16298 ac_cv_func_lstat_dereferences_slashed_symlink=yes 16299else 16300 ac_cv_func_lstat_dereferences_slashed_symlink=no 16301fi 16302rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16303 conftest.$ac_objext conftest.beam conftest.$ac_ext 16304fi 16305 16306else 16307 # If the `ln -s' command failed, then we probably don't even 16308 # have an lstat function. 16309 ac_cv_func_lstat_dereferences_slashed_symlink=no 16310fi 16311rm -f conftest.sym conftest.file 16312 16313fi 16314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 16315$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 16316 16317test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 16318 16319cat >>confdefs.h <<_ACEOF 16320#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 16321_ACEOF 16322 16323 16324if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then 16325 case " $LIBOBJS " in 16326 *" lstat.$ac_objext "* ) ;; 16327 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 16328 ;; 16329esac 16330 16331fi 16332 16333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 16334$as_echo_n "checking whether stat accepts an empty string... " >&6; } 16335if ${ac_cv_func_stat_empty_string_bug+:} false; then : 16336 $as_echo_n "(cached) " >&6 16337else 16338 if test "$cross_compiling" = yes; then : 16339 ac_cv_func_stat_empty_string_bug=yes 16340else 16341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16342/* end confdefs.h. */ 16343$ac_includes_default 16344int 16345main () 16346{ 16347struct stat sbuf; 16348 return stat ("", &sbuf) == 0; 16349 ; 16350 return 0; 16351} 16352_ACEOF 16353if ac_fn_c_try_run "$LINENO"; then : 16354 ac_cv_func_stat_empty_string_bug=no 16355else 16356 ac_cv_func_stat_empty_string_bug=yes 16357fi 16358rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16359 conftest.$ac_objext conftest.beam conftest.$ac_ext 16360fi 16361 16362fi 16363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 16364$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } 16365if test $ac_cv_func_stat_empty_string_bug = yes; then 16366 case " $LIBOBJS " in 16367 *" stat.$ac_objext "* ) ;; 16368 *) LIBOBJS="$LIBOBJS stat.$ac_objext" 16369 ;; 16370esac 16371 16372 16373cat >>confdefs.h <<_ACEOF 16374#define HAVE_STAT_EMPTY_STRING_BUG 1 16375_ACEOF 16376 16377fi 16378 16379for ac_header in sys/select.h sys/socket.h 16380do : 16381 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16382ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16383if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16384 cat >>confdefs.h <<_ACEOF 16385#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16386_ACEOF 16387 16388fi 16389 16390done 16391 16392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 16393$as_echo_n "checking types of arguments for select... " >&6; } 16394if ${ac_cv_func_select_args+:} false; then : 16395 $as_echo_n "(cached) " >&6 16396else 16397 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 16398 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 16399 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 16400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16401/* end confdefs.h. */ 16402$ac_includes_default 16403#ifdef HAVE_SYS_SELECT_H 16404# include <sys/select.h> 16405#endif 16406#ifdef HAVE_SYS_SOCKET_H 16407# include <sys/socket.h> 16408#endif 16409 16410int 16411main () 16412{ 16413extern int select ($ac_arg1, 16414 $ac_arg234, $ac_arg234, $ac_arg234, 16415 $ac_arg5); 16416 ; 16417 return 0; 16418} 16419_ACEOF 16420if ac_fn_c_try_compile "$LINENO"; then : 16421 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 16422fi 16423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16424 done 16425 done 16426done 16427# Provide a safe default value. 16428: "${ac_cv_func_select_args=int,int *,struct timeval *}" 16429 16430fi 16431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 16432$as_echo "$ac_cv_func_select_args" >&6; } 16433ac_save_IFS=$IFS; IFS=',' 16434set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 16435IFS=$ac_save_IFS 16436shift 16437 16438cat >>confdefs.h <<_ACEOF 16439#define SELECT_TYPE_ARG1 $1 16440_ACEOF 16441 16442 16443cat >>confdefs.h <<_ACEOF 16444#define SELECT_TYPE_ARG234 ($2) 16445_ACEOF 16446 16447 16448cat >>confdefs.h <<_ACEOF 16449#define SELECT_TYPE_ARG5 ($3) 16450_ACEOF 16451 16452rm -f conftest* 16453 16454for ac_func in strftime 16455do : 16456 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 16457if test "x$ac_cv_func_strftime" = xyes; then : 16458 cat >>confdefs.h <<_ACEOF 16459#define HAVE_STRFTIME 1 16460_ACEOF 16461 16462else 16463 # strftime is in -lintl on SCO UNIX. 16464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 16465$as_echo_n "checking for strftime in -lintl... " >&6; } 16466if ${ac_cv_lib_intl_strftime+:} false; then : 16467 $as_echo_n "(cached) " >&6 16468else 16469 ac_check_lib_save_LIBS=$LIBS 16470LIBS="-lintl $LIBS" 16471cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16472/* end confdefs.h. */ 16473 16474/* Override any GCC internal prototype to avoid an error. 16475 Use char because int might match the return type of a GCC 16476 builtin and then its argument prototype would still apply. */ 16477#ifdef __cplusplus 16478extern "C" 16479#endif 16480char strftime (); 16481int 16482main () 16483{ 16484return strftime (); 16485 ; 16486 return 0; 16487} 16488_ACEOF 16489if ac_fn_c_try_link "$LINENO"; then : 16490 ac_cv_lib_intl_strftime=yes 16491else 16492 ac_cv_lib_intl_strftime=no 16493fi 16494rm -f core conftest.err conftest.$ac_objext \ 16495 conftest$ac_exeext conftest.$ac_ext 16496LIBS=$ac_check_lib_save_LIBS 16497fi 16498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 16499$as_echo "$ac_cv_lib_intl_strftime" >&6; } 16500if test "x$ac_cv_lib_intl_strftime" = xyes; then : 16501 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 16502 16503LIBS="-lintl $LIBS" 16504fi 16505 16506fi 16507done 16508 16509for ac_func in vprintf 16510do : 16511 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 16512if test "x$ac_cv_func_vprintf" = xyes; then : 16513 cat >>confdefs.h <<_ACEOF 16514#define HAVE_VPRINTF 1 16515_ACEOF 16516 16517ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 16518if test "x$ac_cv_func__doprnt" = xyes; then : 16519 16520$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 16521 16522fi 16523 16524fi 16525done 16526 16527 16528 16529TMPLIBS="$LIBS" 16530ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default" 16531if test "x$ac_cv_header_math_h" = xyes; then : 16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 16533$as_echo_n "checking for pow in -lm... " >&6; } 16534if ${ac_cv_lib_m_pow+:} false; then : 16535 $as_echo_n "(cached) " >&6 16536else 16537 ac_check_lib_save_LIBS=$LIBS 16538LIBS="-lm $LIBS" 16539cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16540/* end confdefs.h. */ 16541 16542/* Override any GCC internal prototype to avoid an error. 16543 Use char because int might match the return type of a GCC 16544 builtin and then its argument prototype would still apply. */ 16545#ifdef __cplusplus 16546extern "C" 16547#endif 16548char pow (); 16549int 16550main () 16551{ 16552return pow (); 16553 ; 16554 return 0; 16555} 16556_ACEOF 16557if ac_fn_c_try_link "$LINENO"; then : 16558 ac_cv_lib_m_pow=yes 16559else 16560 ac_cv_lib_m_pow=no 16561fi 16562rm -f core conftest.err conftest.$ac_objext \ 16563 conftest$ac_exeext conftest.$ac_ext 16564LIBS=$ac_check_lib_save_LIBS 16565fi 16566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 16567$as_echo "$ac_cv_lib_m_pow" >&6; } 16568if test "x$ac_cv_lib_m_pow" = xyes; then : 16569 LIBM="-lm" 16570 LIBS="$LIBS $LIBM" 16571 16572$as_echo "#define HAVE_LIBM /**/" >>confdefs.h 16573 16574 for ac_func in pow 16575do : 16576 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" 16577if test "x$ac_cv_func_pow" = xyes; then : 16578 cat >>confdefs.h <<_ACEOF 16579#define HAVE_POW 1 16580_ACEOF 16581 16582else 16583 LIBM="" 16584fi 16585done 16586 16587 16588fi 16589 16590 16591fi 16592 16593 16594if test x"$LIBM" = x ; then 16595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find working pow function - bgpd may not link" >&5 16596$as_echo "$as_me: WARNING: Unable to find working pow function - bgpd may not link" >&2;} 16597fi 16598LIBS="$TMPLIBS" 16599 16600 16601for ac_func in dup2 ftruncate getcwd gethostbyname getpagesize gettimeofday \ 16602 inet_ntoa inet_aton strnlen \ 16603 memchr memmove memset select socket \ 16604 strcasecmp strchr strcspn strdup strerror \ 16605 strncasecmp strndup strrchr strspn strstr \ 16606 strtol strtoul strlcat strlcpy \ 16607 daemon snprintf vsnprintf \ 16608 if_nametoindex if_indextoname getifaddrs \ 16609 uname fcntl 16610do : 16611 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16612ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16613if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16614 cat >>confdefs.h <<_ACEOF 16615#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16616_ACEOF 16617 16618fi 16619done 16620 16621 16622for ac_func in setproctitle 16623do : 16624 ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle" 16625if test "x$ac_cv_func_setproctitle" = xyes; then : 16626 cat >>confdefs.h <<_ACEOF 16627#define HAVE_SETPROCTITLE 1 16628_ACEOF 16629 16630else 16631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5 16632$as_echo_n "checking for setproctitle in -lutil... " >&6; } 16633if ${ac_cv_lib_util_setproctitle+:} false; then : 16634 $as_echo_n "(cached) " >&6 16635else 16636 ac_check_lib_save_LIBS=$LIBS 16637LIBS="-lutil $LIBS" 16638cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16639/* end confdefs.h. */ 16640 16641/* Override any GCC internal prototype to avoid an error. 16642 Use char because int might match the return type of a GCC 16643 builtin and then its argument prototype would still apply. */ 16644#ifdef __cplusplus 16645extern "C" 16646#endif 16647char setproctitle (); 16648int 16649main () 16650{ 16651return setproctitle (); 16652 ; 16653 return 0; 16654} 16655_ACEOF 16656if ac_fn_c_try_link "$LINENO"; then : 16657 ac_cv_lib_util_setproctitle=yes 16658else 16659 ac_cv_lib_util_setproctitle=no 16660fi 16661rm -f core conftest.err conftest.$ac_objext \ 16662 conftest$ac_exeext conftest.$ac_ext 16663LIBS=$ac_check_lib_save_LIBS 16664fi 16665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5 16666$as_echo "$ac_cv_lib_util_setproctitle" >&6; } 16667if test "x$ac_cv_lib_util_setproctitle" = xyes; then : 16668 LIBS="$LIBS -lutil" 16669 16670$as_echo "#define HAVE_SETPROCTITLE /**/" >>confdefs.h 16671 16672 16673 16674fi 16675 16676 16677 16678fi 16679done 16680 16681 16682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking zebra between kernel interface method" >&5 16683$as_echo_n "checking zebra between kernel interface method... " >&6; } 16684if test x"$opsys" = x"gnu-linux"; then 16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: netlink" >&5 16686$as_echo "netlink" >&6; } 16687 RT_METHOD=rt_netlink.o 16688 16689$as_echo "#define HAVE_NETLINK /**/" >>confdefs.h 16690 16691 netlink=yes 16692else 16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Route socket" >&5 16694$as_echo "Route socket" >&6; } 16695 KERNEL_METHOD="kernel_socket.o" 16696 RT_METHOD="rt_socket.o" 16697fi 16698 16699 16700 if test "x$netlink" = "xyes"; then 16701 HAVE_NETLINK_TRUE= 16702 HAVE_NETLINK_FALSE='#' 16703else 16704 HAVE_NETLINK_TRUE='#' 16705 HAVE_NETLINK_FALSE= 16706fi 16707 16708 16709 16710$as_echo "#define ISIS_METHOD_PFPACKET 1" >>confdefs.h 16711 16712 16713$as_echo "#define ISIS_METHOD_DLPI 2" >>confdefs.h 16714 16715 16716$as_echo "#define ISIS_METHOD_BPF 3" >>confdefs.h 16717 16718ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default" 16719if test "x$ac_cv_header_net_bpf_h" = xyes; then : 16720 16721fi 16722 16723 16724ac_fn_c_check_header_mongrel "$LINENO" "sys/dlpi.h" "ac_cv_header_sys_dlpi_h" "$ac_includes_default" 16725if test "x$ac_cv_header_sys_dlpi_h" = xyes; then : 16726 16727fi 16728 16729 16730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking zebra IS-IS I/O method" >&5 16731$as_echo_n "checking zebra IS-IS I/O method... " >&6; } 16732if test x"$opsys" = x"gnu-linux"; then 16733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pfpacket" >&5 16734$as_echo "pfpacket" >&6; } 16735 ISIS_METHOD_MACRO="ISIS_METHOD_PFPACKET" 16736elif test x"$opsys" = x"sol2-6" -o x"$opsys" = x"sol8"; then 16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLPI" >&5 16738$as_echo "DLPI" >&6; } 16739 ISIS_METHOD_MACRO="ISIS_METHOD_DLPI" 16740else 16741 if test $ac_cv_header_net_bpf_h = no; then 16742 if test $ac_cv_header_sys_dlpi_h = no; then 16743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 16744$as_echo "none" >&6; } 16745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** IS-IS support will not be built ***" >&5 16746$as_echo "$as_me: WARNING: *** IS-IS support will not be built ***" >&2;} 16747 ISISD="" 16748 else 16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLPI" >&5 16750$as_echo "DLPI" >&6; } 16751 fi 16752 ISIS_METHOD_MACRO="ISIS_METHOD_DLPI" 16753 else 16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: BPF" >&5 16755$as_echo "BPF" >&6; } 16756 ISIS_METHOD_MACRO="ISIS_METHOD_BPF" 16757 fi 16758fi 16759 16760cat >>confdefs.h <<_ACEOF 16761#define ISIS_METHOD $ISIS_METHOD_MACRO 16762_ACEOF 16763 16764 16765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken CMSG_FIRSTHDR" >&5 16766$as_echo_n "checking for broken CMSG_FIRSTHDR... " >&6; } 16767if test "$cross_compiling" = yes; then : 16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16769$as_echo "no" >&6; } 16770else 16771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16772/* end confdefs.h. */ 16773 16774#ifdef SUNOS_5 16775#define _XPG4_2 16776#define __EXTENSIONS__ 16777#endif 16778#ifdef HAVE_STDLIB_H 16779# include <stdlib.h> 16780#endif 16781#ifdef HAVE_SYS_TYPES_H 16782#include <sys/types.h> 16783#endif 16784#ifdef HAVE_SYS_SOCKET_H 16785#include <sys/socket.h> 16786#endif 16787 16788main() 16789{ 16790 struct msghdr msg; 16791 char buf[4]; 16792 16793 msg.msg_control = buf; 16794 msg.msg_controllen = 0; 16795 16796 if (CMSG_FIRSTHDR(&msg) != NULL) 16797 exit(0); 16798 exit (1); 16799} 16800_ACEOF 16801if ac_fn_c_try_run "$LINENO"; then : 16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - using workaround" >&5 16803$as_echo "yes - using workaround" >&6; } 16804$as_echo "#define HAVE_BROKEN_CMSG_FIRSTHDR /**/" >>confdefs.h 16805 16806else 16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16808$as_echo "no" >&6; } 16809fi 16810rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16811 conftest.$ac_objext conftest.beam conftest.$ac_ext 16812fi 16813 16814 16815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking route read method" >&5 16816$as_echo_n "checking route read method... " >&6; } 16817if ${quagga_cv_rtread_method+:} false; then : 16818 $as_echo_n "(cached) " >&6 16819else 16820 if test "x$netlink" = xyes; then 16821 quagga_cv_rtread_method="netlink" 16822else 16823for quagga_cv_rtread_method in /dev/ip /dev/null; 16824do 16825 test x`ls $quagga_cv_rtread_method 2>/dev/null` = x"$quagga_cv_rtread_method" && break 16826done 16827case $quagga_cv_rtread_method in 16828 "/dev/ip") 16829 case "$host" in 16830 *-freebsd*) quagga_cv_rtread_method="sysctl";; 16831 *) quagga_cv_rtread_method="getmsg";; 16832 esac;; 16833 *) 16834 quagga_cv_rtread_method="sysctl";; 16835esac 16836fi 16837fi 16838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quagga_cv_rtread_method" >&5 16839$as_echo "$quagga_cv_rtread_method" >&6; } 16840RTREAD_METHOD=rtread_${quagga_cv_rtread_method}.o 16841 16842 16843IOCTL_METHOD=ioctl.o 16844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking interface looking up method" >&5 16845$as_echo_n "checking interface looking up method... " >&6; } 16846if test "$netlink" = yes; then 16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: netlink" >&5 16848$as_echo "netlink" >&6; } 16849 IF_METHOD=if_netlink.o 16850elif test "$opsys" = "sol2-6";then 16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris GIF" >&5 16852$as_echo "Solaris GIF" >&6; } 16853 IF_METHOD=if_ioctl.o 16854elif test "$opsys" = "sol8";then 16855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris GLIF" >&5 16856$as_echo "Solaris GLIF" >&6; } 16857 IF_METHOD=if_ioctl_solaris.o 16858 IOCTL_METHOD=ioctl_solaris.o 16859elif test "$opsys" = "openbsd";then 16860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: openbsd" >&5 16861$as_echo "openbsd" >&6; } 16862 IF_METHOD=if_ioctl.o 16863elif grep NET_RT_IFLIST /usr/include/sys/socket.h >/dev/null 2>&1; then 16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sysctl" >&5 16865$as_echo "sysctl" >&6; } 16866 IF_METHOD=if_sysctl.o 16867 16868$as_echo "#define HAVE_NET_RT_IFLIST /**/" >>confdefs.h 16869 16870else 16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ioctl" >&5 16872$as_echo "ioctl" >&6; } 16873 IF_METHOD=if_ioctl.o 16874fi 16875 16876 16877 16878ac_fn_c_check_member "$LINENO" "struct ip_mreqn" "imr_ifindex" "ac_cv_member_struct_ip_mreqn_imr_ifindex" "#ifdef SUNOS_5 16879#define _XPG4_2 16880#define __EXTENSIONS__ 16881#endif 16882#include <stdio.h> 16883#if STDC_HEADERS 16884# include <stdlib.h> 16885# include <stddef.h> 16886#else 16887# if HAVE_STDLIB_H 16888# include <stdlib.h> 16889# endif 16890#endif 16891#if HAVE_SYS_TYPES_H 16892# include <sys/types.h> 16893#endif 16894/* sys/conf.h depends on param.h on FBSD at least */ 16895#if HAVE_SYS_PARAM_H 16896# include <sys/param.h> 16897#endif 16898/* Required for MAXSIG */ 16899#if HAVE_SIGNAL_H 16900# include <signal.h> 16901#endif 16902#if HAVE_SYS_SOCKET_H 16903# include <sys/socket.h> 16904#endif 16905#ifdef __APPLE__ 16906# define __APPLE_USE_RFC_3542 16907#endif 16908#if HAVE_NETINET_IN_H 16909# include <netinet/in.h> 16910#endif 16911#ifdef TIME_WITH_SYS_TIME 16912# include <sys/time.h> 16913# include <time.h> 16914#else 16915# ifdef HAVE_SYS_TIME_H 16916# include <sys/time.h> 16917# else 16918# include <time.h> 16919# endif 16920#endif /* TIME_WITH_SYS_TIME */ 16921 16922#if HAVE_NET_IF_H 16923# include <net/if.h> 16924#endif 16925 16926#if HAVE_NET_IF_VAR_H 16927# include <net/if_var.h> 16928#endif 16929 16930#if HAVE_SYS_UN_H 16931# include <sys/un.h> 16932#endif 16933#if HAVE_NETINET_IN_SYSTM_H 16934# include <netinet/in_systm.h> 16935#endif 16936#if HAVE_NETINET_IN_VAR_H 16937# include <netinet/in_var.h> 16938#endif 16939#if HAVE_NET_IF_DL_H 16940# include <net/if_dl.h> 16941#endif 16942#if HAVE_NET_NETOPT_H 16943# include <net/netopt.h> 16944#endif 16945#if HAVE_NET_ROUTE_H 16946# include <net/route.h> 16947#endif 16948#if HAVE_INET_ND_H 16949# include <inet/nd.h> 16950#endif 16951#if HAVE_ARPA_INET_H 16952# include <arpa/inet.h> 16953#endif 16954/* Required for IDRP */ 16955#if HAVE_NETINET_IP_ICMP_H 16956# include <netinet/ip_icmp.h> 16957#endif 16958 16959" 16960if test "x$ac_cv_member_struct_ip_mreqn_imr_ifindex" = xyes; then : 16961 16962cat >>confdefs.h <<_ACEOF 16963#define HAVE_STRUCT_IP_MREQN_IMR_IFINDEX 1 16964_ACEOF 16965 16966 16967fi 16968 16969 16970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD struct ip_mreq hack" >&5 16971$as_echo_n "checking for BSD struct ip_mreq hack... " >&6; } 16972cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16973/* end confdefs.h. */ 16974#ifdef HAVE_SYS_PARAM_H 16975#include <sys/param.h> 16976#endif 16977int 16978main () 16979{ 16980#if (defined(__FreeBSD__) && ((__FreeBSD_version >= 500022 && __FreeBSD_version < 700000) || (__FreeBSD_version < 500000 && __FreeBSD_version >= 440000))) || (defined(__NetBSD__) && defined(__NetBSD_Version__) && __NetBSD_Version__ >= 106010000) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__DragonFly__) || defined(__sun) 16981 return (0); 16982#else 16983 #error No support for BSD struct ip_mreq hack detected 16984#endif 16985 ; 16986 return 0; 16987} 16988_ACEOF 16989if ac_fn_c_try_compile "$LINENO"; then : 16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16991$as_echo "yes" >&6; } 16992 16993$as_echo "#define HAVE_BSD_STRUCT_IP_MREQ_HACK /**/" >>confdefs.h 16994 16995else 16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16997$as_echo "no" >&6; } 16998fi 16999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17000 17001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC3678 protocol-independed API" >&5 17002$as_echo_n "checking for RFC3678 protocol-independed API... " >&6; } 17003cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17004/* end confdefs.h. */ 17005 17006#include <sys/types.h> 17007#include <netinet/in.h> 17008 17009int 17010main () 17011{ 17012struct group_req gr; int sock; setsockopt(sock, IPPROTO_IP, MCAST_JOIN_GROUP, (void*)&gr, sizeof(gr)); 17013 17014 ; 17015 return 0; 17016} 17017_ACEOF 17018if ac_fn_c_try_compile "$LINENO"; then : 17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17020$as_echo "yes" >&6; } 17021 17022$as_echo "#define HAVE_RFC3678 1" >>confdefs.h 17023 17024else 17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17026$as_echo "no" >&6; } 17027fi 17028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17029 17030ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef SUNOS_5 17031#define _XPG4_2 17032#define __EXTENSIONS__ 17033#endif 17034#include <stdio.h> 17035#if STDC_HEADERS 17036# include <stdlib.h> 17037# include <stddef.h> 17038#else 17039# if HAVE_STDLIB_H 17040# include <stdlib.h> 17041# endif 17042#endif 17043#if HAVE_SYS_TYPES_H 17044# include <sys/types.h> 17045#endif 17046/* sys/conf.h depends on param.h on FBSD at least */ 17047#if HAVE_SYS_PARAM_H 17048# include <sys/param.h> 17049#endif 17050/* Required for MAXSIG */ 17051#if HAVE_SIGNAL_H 17052# include <signal.h> 17053#endif 17054#if HAVE_SYS_SOCKET_H 17055# include <sys/socket.h> 17056#endif 17057#ifdef __APPLE__ 17058# define __APPLE_USE_RFC_3542 17059#endif 17060#if HAVE_NETINET_IN_H 17061# include <netinet/in.h> 17062#endif 17063#ifdef TIME_WITH_SYS_TIME 17064# include <sys/time.h> 17065# include <time.h> 17066#else 17067# ifdef HAVE_SYS_TIME_H 17068# include <sys/time.h> 17069# else 17070# include <time.h> 17071# endif 17072#endif /* TIME_WITH_SYS_TIME */ 17073 17074#if HAVE_NET_IF_H 17075# include <net/if.h> 17076#endif 17077 17078#if HAVE_NET_IF_VAR_H 17079# include <net/if_var.h> 17080#endif 17081 17082#if HAVE_SYS_UN_H 17083# include <sys/un.h> 17084#endif 17085#if HAVE_NETINET_IN_SYSTM_H 17086# include <netinet/in_systm.h> 17087#endif 17088#if HAVE_NETINET_IN_VAR_H 17089# include <netinet/in_var.h> 17090#endif 17091#if HAVE_NET_IF_DL_H 17092# include <net/if_dl.h> 17093#endif 17094#if HAVE_NET_NETOPT_H 17095# include <net/netopt.h> 17096#endif 17097#if HAVE_NET_ROUTE_H 17098# include <net/route.h> 17099#endif 17100#if HAVE_INET_ND_H 17101# include <inet/nd.h> 17102#endif 17103#if HAVE_ARPA_INET_H 17104# include <arpa/inet.h> 17105#endif 17106/* Required for IDRP */ 17107#if HAVE_NETINET_IP_ICMP_H 17108# include <netinet/ip_icmp.h> 17109#endif 17110 17111" 17112if test "x$ac_cv_header_net_if_h" = xyes; then : 17113 ac_fn_c_check_header_compile "$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "#ifdef SUNOS_5 17114#define _XPG4_2 17115#define __EXTENSIONS__ 17116#endif 17117#include <stdio.h> 17118#if STDC_HEADERS 17119# include <stdlib.h> 17120# include <stddef.h> 17121#else 17122# if HAVE_STDLIB_H 17123# include <stdlib.h> 17124# endif 17125#endif 17126#if HAVE_SYS_TYPES_H 17127# include <sys/types.h> 17128#endif 17129/* sys/conf.h depends on param.h on FBSD at least */ 17130#if HAVE_SYS_PARAM_H 17131# include <sys/param.h> 17132#endif 17133/* Required for MAXSIG */ 17134#if HAVE_SIGNAL_H 17135# include <signal.h> 17136#endif 17137#if HAVE_SYS_SOCKET_H 17138# include <sys/socket.h> 17139#endif 17140#ifdef __APPLE__ 17141# define __APPLE_USE_RFC_3542 17142#endif 17143#if HAVE_NETINET_IN_H 17144# include <netinet/in.h> 17145#endif 17146#ifdef TIME_WITH_SYS_TIME 17147# include <sys/time.h> 17148# include <time.h> 17149#else 17150# ifdef HAVE_SYS_TIME_H 17151# include <sys/time.h> 17152# else 17153# include <time.h> 17154# endif 17155#endif /* TIME_WITH_SYS_TIME */ 17156 17157#if HAVE_NET_IF_H 17158# include <net/if.h> 17159#endif 17160 17161#if HAVE_NET_IF_VAR_H 17162# include <net/if_var.h> 17163#endif 17164 17165#if HAVE_SYS_UN_H 17166# include <sys/un.h> 17167#endif 17168#if HAVE_NETINET_IN_SYSTM_H 17169# include <netinet/in_systm.h> 17170#endif 17171#if HAVE_NETINET_IN_VAR_H 17172# include <netinet/in_var.h> 17173#endif 17174#if HAVE_NET_IF_DL_H 17175# include <net/if_dl.h> 17176#endif 17177#if HAVE_NET_NETOPT_H 17178# include <net/netopt.h> 17179#endif 17180#if HAVE_NET_ROUTE_H 17181# include <net/route.h> 17182#endif 17183#if HAVE_INET_ND_H 17184# include <inet/nd.h> 17185#endif 17186#if HAVE_ARPA_INET_H 17187# include <arpa/inet.h> 17188#endif 17189/* Required for IDRP */ 17190#if HAVE_NETINET_IP_ICMP_H 17191# include <netinet/ip_icmp.h> 17192#endif 17193 17194" 17195if test "x$ac_cv_header_net_if_media_h" = xyes; then : 17196 17197 ac_fn_c_check_member "$LINENO" "struct ifmediareq" "ifm_status" "ac_cv_member_struct_ifmediareq_ifm_status" "#ifdef SUNOS_5 17198#define _XPG4_2 17199#define __EXTENSIONS__ 17200#endif 17201#include <stdio.h> 17202#if STDC_HEADERS 17203# include <stdlib.h> 17204# include <stddef.h> 17205#else 17206# if HAVE_STDLIB_H 17207# include <stdlib.h> 17208# endif 17209#endif 17210#if HAVE_SYS_TYPES_H 17211# include <sys/types.h> 17212#endif 17213/* sys/conf.h depends on param.h on FBSD at least */ 17214#if HAVE_SYS_PARAM_H 17215# include <sys/param.h> 17216#endif 17217/* Required for MAXSIG */ 17218#if HAVE_SIGNAL_H 17219# include <signal.h> 17220#endif 17221#if HAVE_SYS_SOCKET_H 17222# include <sys/socket.h> 17223#endif 17224#ifdef __APPLE__ 17225# define __APPLE_USE_RFC_3542 17226#endif 17227#if HAVE_NETINET_IN_H 17228# include <netinet/in.h> 17229#endif 17230#ifdef TIME_WITH_SYS_TIME 17231# include <sys/time.h> 17232# include <time.h> 17233#else 17234# ifdef HAVE_SYS_TIME_H 17235# include <sys/time.h> 17236# else 17237# include <time.h> 17238# endif 17239#endif /* TIME_WITH_SYS_TIME */ 17240 17241#if HAVE_NET_IF_H 17242# include <net/if.h> 17243#endif 17244 17245#if HAVE_NET_IF_VAR_H 17246# include <net/if_var.h> 17247#endif 17248 17249#if HAVE_SYS_UN_H 17250# include <sys/un.h> 17251#endif 17252#if HAVE_NETINET_IN_SYSTM_H 17253# include <netinet/in_systm.h> 17254#endif 17255#if HAVE_NETINET_IN_VAR_H 17256# include <netinet/in_var.h> 17257#endif 17258#if HAVE_NET_IF_DL_H 17259# include <net/if_dl.h> 17260#endif 17261#if HAVE_NET_NETOPT_H 17262# include <net/netopt.h> 17263#endif 17264#if HAVE_NET_ROUTE_H 17265# include <net/route.h> 17266#endif 17267#if HAVE_INET_ND_H 17268# include <inet/nd.h> 17269#endif 17270#if HAVE_ARPA_INET_H 17271# include <arpa/inet.h> 17272#endif 17273/* Required for IDRP */ 17274#if HAVE_NETINET_IP_ICMP_H 17275# include <netinet/ip_icmp.h> 17276#endif 17277 17278 #include <net/if_media.h> 17279 17280" 17281if test "x$ac_cv_member_struct_ifmediareq_ifm_status" = xyes; then : 17282 17283cat >>confdefs.h <<_ACEOF 17284#define HAVE_STRUCT_IFMEDIAREQ_IFM_STATUS 1 17285_ACEOF 17286 17287 17288$as_echo "#define HAVE_BSD_LINK_DETECT /**/" >>confdefs.h 17289 17290fi 17291 17292fi 17293 17294 17295fi 17296 17297 17298 17299ac_fn_c_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default" 17300if test "x$ac_cv_header_net_if_h" = xyes; then : 17301 ac_fn_c_check_member "$LINENO" "struct if_data" "ifi_link_state" "ac_cv_member_struct_if_data_ifi_link_state" "#ifdef SUNOS_5 17302#define _XPG4_2 17303#define __EXTENSIONS__ 17304#endif 17305#include <stdio.h> 17306#if STDC_HEADERS 17307# include <stdlib.h> 17308# include <stddef.h> 17309#else 17310# if HAVE_STDLIB_H 17311# include <stdlib.h> 17312# endif 17313#endif 17314#if HAVE_SYS_TYPES_H 17315# include <sys/types.h> 17316#endif 17317/* sys/conf.h depends on param.h on FBSD at least */ 17318#if HAVE_SYS_PARAM_H 17319# include <sys/param.h> 17320#endif 17321/* Required for MAXSIG */ 17322#if HAVE_SIGNAL_H 17323# include <signal.h> 17324#endif 17325#if HAVE_SYS_SOCKET_H 17326# include <sys/socket.h> 17327#endif 17328#ifdef __APPLE__ 17329# define __APPLE_USE_RFC_3542 17330#endif 17331#if HAVE_NETINET_IN_H 17332# include <netinet/in.h> 17333#endif 17334#ifdef TIME_WITH_SYS_TIME 17335# include <sys/time.h> 17336# include <time.h> 17337#else 17338# ifdef HAVE_SYS_TIME_H 17339# include <sys/time.h> 17340# else 17341# include <time.h> 17342# endif 17343#endif /* TIME_WITH_SYS_TIME */ 17344 17345#if HAVE_NET_IF_H 17346# include <net/if.h> 17347#endif 17348 17349#if HAVE_NET_IF_VAR_H 17350# include <net/if_var.h> 17351#endif 17352 17353#if HAVE_SYS_UN_H 17354# include <sys/un.h> 17355#endif 17356#if HAVE_NETINET_IN_SYSTM_H 17357# include <netinet/in_systm.h> 17358#endif 17359#if HAVE_NETINET_IN_VAR_H 17360# include <netinet/in_var.h> 17361#endif 17362#if HAVE_NET_IF_DL_H 17363# include <net/if_dl.h> 17364#endif 17365#if HAVE_NET_NETOPT_H 17366# include <net/netopt.h> 17367#endif 17368#if HAVE_NET_ROUTE_H 17369# include <net/route.h> 17370#endif 17371#if HAVE_INET_ND_H 17372# include <inet/nd.h> 17373#endif 17374#if HAVE_ARPA_INET_H 17375# include <arpa/inet.h> 17376#endif 17377/* Required for IDRP */ 17378#if HAVE_NETINET_IP_ICMP_H 17379# include <netinet/ip_icmp.h> 17380#endif 17381 17382" 17383if test "x$ac_cv_member_struct_if_data_ifi_link_state" = xyes; then : 17384 17385cat >>confdefs.h <<_ACEOF 17386#define HAVE_STRUCT_IF_DATA_IFI_LINK_STATE 1 17387_ACEOF 17388 17389 17390$as_echo "#define HAVE_BSD_IFI_LINK_STATE /**/" >>confdefs.h 17391 17392fi 17393 17394fi 17395 17396 17397 17398 17399ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "#ifdef SUNOS_5 17400#define _XPG4_2 17401#define __EXTENSIONS__ 17402#endif 17403#include <stdio.h> 17404#if STDC_HEADERS 17405# include <stdlib.h> 17406# include <stddef.h> 17407#else 17408# if HAVE_STDLIB_H 17409# include <stdlib.h> 17410# endif 17411#endif 17412#if HAVE_SYS_TYPES_H 17413# include <sys/types.h> 17414#endif 17415/* sys/conf.h depends on param.h on FBSD at least */ 17416#if HAVE_SYS_PARAM_H 17417# include <sys/param.h> 17418#endif 17419/* Required for MAXSIG */ 17420#if HAVE_SIGNAL_H 17421# include <signal.h> 17422#endif 17423#if HAVE_SYS_SOCKET_H 17424# include <sys/socket.h> 17425#endif 17426#ifdef __APPLE__ 17427# define __APPLE_USE_RFC_3542 17428#endif 17429#if HAVE_NETINET_IN_H 17430# include <netinet/in.h> 17431#endif 17432#ifdef TIME_WITH_SYS_TIME 17433# include <sys/time.h> 17434# include <time.h> 17435#else 17436# ifdef HAVE_SYS_TIME_H 17437# include <sys/time.h> 17438# else 17439# include <time.h> 17440# endif 17441#endif /* TIME_WITH_SYS_TIME */ 17442 17443#if HAVE_NET_IF_H 17444# include <net/if.h> 17445#endif 17446 17447#if HAVE_NET_IF_VAR_H 17448# include <net/if_var.h> 17449#endif 17450 17451#if HAVE_SYS_UN_H 17452# include <sys/un.h> 17453#endif 17454#if HAVE_NETINET_IN_SYSTM_H 17455# include <netinet/in_systm.h> 17456#endif 17457#if HAVE_NETINET_IN_VAR_H 17458# include <netinet/in_var.h> 17459#endif 17460#if HAVE_NET_IF_DL_H 17461# include <net/if_dl.h> 17462#endif 17463#if HAVE_NET_NETOPT_H 17464# include <net/netopt.h> 17465#endif 17466#if HAVE_NET_ROUTE_H 17467# include <net/route.h> 17468#endif 17469#if HAVE_INET_ND_H 17470# include <inet/nd.h> 17471#endif 17472#if HAVE_ARPA_INET_H 17473# include <arpa/inet.h> 17474#endif 17475/* Required for IDRP */ 17476#if HAVE_NETINET_IP_ICMP_H 17477# include <netinet/ip_icmp.h> 17478#endif 17479 17480" 17481if test "x$ac_cv_header_netinet_tcp_h" = xyes; then : 17482 17483 ac_fn_c_check_decl "$LINENO" "TCP_MD5SIG" "ac_cv_have_decl_TCP_MD5SIG" "#ifdef SUNOS_5 17484#define _XPG4_2 17485#define __EXTENSIONS__ 17486#endif 17487#include <stdio.h> 17488#if STDC_HEADERS 17489# include <stdlib.h> 17490# include <stddef.h> 17491#else 17492# if HAVE_STDLIB_H 17493# include <stdlib.h> 17494# endif 17495#endif 17496#if HAVE_SYS_TYPES_H 17497# include <sys/types.h> 17498#endif 17499/* sys/conf.h depends on param.h on FBSD at least */ 17500#if HAVE_SYS_PARAM_H 17501# include <sys/param.h> 17502#endif 17503/* Required for MAXSIG */ 17504#if HAVE_SIGNAL_H 17505# include <signal.h> 17506#endif 17507#if HAVE_SYS_SOCKET_H 17508# include <sys/socket.h> 17509#endif 17510#ifdef __APPLE__ 17511# define __APPLE_USE_RFC_3542 17512#endif 17513#if HAVE_NETINET_IN_H 17514# include <netinet/in.h> 17515#endif 17516#ifdef TIME_WITH_SYS_TIME 17517# include <sys/time.h> 17518# include <time.h> 17519#else 17520# ifdef HAVE_SYS_TIME_H 17521# include <sys/time.h> 17522# else 17523# include <time.h> 17524# endif 17525#endif /* TIME_WITH_SYS_TIME */ 17526 17527#if HAVE_NET_IF_H 17528# include <net/if.h> 17529#endif 17530 17531#if HAVE_NET_IF_VAR_H 17532# include <net/if_var.h> 17533#endif 17534 17535#if HAVE_SYS_UN_H 17536# include <sys/un.h> 17537#endif 17538#if HAVE_NETINET_IN_SYSTM_H 17539# include <netinet/in_systm.h> 17540#endif 17541#if HAVE_NETINET_IN_VAR_H 17542# include <netinet/in_var.h> 17543#endif 17544#if HAVE_NET_IF_DL_H 17545# include <net/if_dl.h> 17546#endif 17547#if HAVE_NET_NETOPT_H 17548# include <net/netopt.h> 17549#endif 17550#if HAVE_NET_ROUTE_H 17551# include <net/route.h> 17552#endif 17553#if HAVE_INET_ND_H 17554# include <inet/nd.h> 17555#endif 17556#if HAVE_ARPA_INET_H 17557# include <arpa/inet.h> 17558#endif 17559/* Required for IDRP */ 17560#if HAVE_NETINET_IP_ICMP_H 17561# include <netinet/ip_icmp.h> 17562#endif 17563 17564 #include <netinet/tcp.h> 17565 17566" 17567if test "x$ac_cv_have_decl_TCP_MD5SIG" = xyes; then : 17568 ac_have_decl=1 17569else 17570 ac_have_decl=0 17571fi 17572 17573cat >>confdefs.h <<_ACEOF 17574#define HAVE_DECL_TCP_MD5SIG $ac_have_decl 17575_ACEOF 17576 17577fi 17578 17579 17580if test $ac_cv_have_decl_TCP_MD5SIG = no; then 17581 ac_fn_c_check_header_mongrel "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "$ac_includes_default" 17582if test "x$ac_cv_header_linux_tcp_h" = xyes; then : 17583 17584 ac_fn_c_check_decl "$LINENO" "TCP_MD5SIG" "ac_cv_have_decl_TCP_MD5SIG" "#ifdef SUNOS_5 17585#define _XPG4_2 17586#define __EXTENSIONS__ 17587#endif 17588#include <stdio.h> 17589#if STDC_HEADERS 17590# include <stdlib.h> 17591# include <stddef.h> 17592#else 17593# if HAVE_STDLIB_H 17594# include <stdlib.h> 17595# endif 17596#endif 17597#if HAVE_SYS_TYPES_H 17598# include <sys/types.h> 17599#endif 17600/* sys/conf.h depends on param.h on FBSD at least */ 17601#if HAVE_SYS_PARAM_H 17602# include <sys/param.h> 17603#endif 17604/* Required for MAXSIG */ 17605#if HAVE_SIGNAL_H 17606# include <signal.h> 17607#endif 17608#if HAVE_SYS_SOCKET_H 17609# include <sys/socket.h> 17610#endif 17611#ifdef __APPLE__ 17612# define __APPLE_USE_RFC_3542 17613#endif 17614#if HAVE_NETINET_IN_H 17615# include <netinet/in.h> 17616#endif 17617#ifdef TIME_WITH_SYS_TIME 17618# include <sys/time.h> 17619# include <time.h> 17620#else 17621# ifdef HAVE_SYS_TIME_H 17622# include <sys/time.h> 17623# else 17624# include <time.h> 17625# endif 17626#endif /* TIME_WITH_SYS_TIME */ 17627 17628#if HAVE_NET_IF_H 17629# include <net/if.h> 17630#endif 17631 17632#if HAVE_NET_IF_VAR_H 17633# include <net/if_var.h> 17634#endif 17635 17636#if HAVE_SYS_UN_H 17637# include <sys/un.h> 17638#endif 17639#if HAVE_NETINET_IN_SYSTM_H 17640# include <netinet/in_systm.h> 17641#endif 17642#if HAVE_NETINET_IN_VAR_H 17643# include <netinet/in_var.h> 17644#endif 17645#if HAVE_NET_IF_DL_H 17646# include <net/if_dl.h> 17647#endif 17648#if HAVE_NET_NETOPT_H 17649# include <net/netopt.h> 17650#endif 17651#if HAVE_NET_ROUTE_H 17652# include <net/route.h> 17653#endif 17654#if HAVE_INET_ND_H 17655# include <inet/nd.h> 17656#endif 17657#if HAVE_ARPA_INET_H 17658# include <arpa/inet.h> 17659#endif 17660/* Required for IDRP */ 17661#if HAVE_NETINET_IP_ICMP_H 17662# include <netinet/ip_icmp.h> 17663#endif 17664 17665 #include <linux/tcp.h> 17666 17667" 17668if test "x$ac_cv_have_decl_TCP_MD5SIG" = xyes; then : 17669 ac_have_decl=1 17670else 17671 ac_have_decl=0 17672fi 17673 17674cat >>confdefs.h <<_ACEOF 17675#define HAVE_DECL_TCP_MD5SIG $ac_have_decl 17676_ACEOF 17677 17678fi 17679 17680 17681fi 17682 17683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ipforward method" >&5 17684$as_echo_n "checking ipforward method... " >&6; } 17685if ${quagga_cv_ipforward_method+:} false; then : 17686 $as_echo_n "(cached) " >&6 17687else 17688 if test x$cross_compiling = xyes; then 17689 if test x"$opsys" = x"gnu-linux"; then 17690 quagga_cv_ipforward_method=/proc/net/snmp 17691 else 17692 quagga_cv_ipforward_method=/dev/ip 17693 fi 17694else 17695 for quagga_cv_ipforward_method in /proc/net/snmp /dev/ip /dev/null; 17696 do 17697 test x`ls $quagga_cv_ipforward_method 2>/dev/null` = x"$quagga_cv_ipforward_method" && break 17698 done 17699fi 17700case $quagga_cv_ipforward_method in 17701 "/proc/net/snmp") quagga_cv_ipforward_method="proc";; 17702 "/dev/ip") 17703 case "$host" in 17704 *-freebsd*) quagga_cv_ipforward_method="sysctl";; 17705 *) quagga_cv_ipforward_method="solaris";; 17706 esac;; 17707 *) quagga_cv_ipforward_method="sysctl";; 17708esac 17709fi 17710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quagga_cv_ipforward_method" >&5 17711$as_echo "$quagga_cv_ipforward_method" >&6; } 17712IPFORWARD=ipforward_${quagga_cv_ipforward_method}.o 17713 17714 17715for ac_func in getaddrinfo 17716do : 17717 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 17718if test "x$ac_cv_func_getaddrinfo" = xyes; then : 17719 cat >>confdefs.h <<_ACEOF 17720#define HAVE_GETADDRINFO 1 17721_ACEOF 17722 have_getaddrinfo=yes 17723else 17724 have_getaddrinfo=no 17725fi 17726done 17727 17728 17729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether does this OS have IPv6 stack" >&5 17730$as_echo_n "checking whether does this OS have IPv6 stack... " >&6; } 17731 if grep WIDE /usr/include/netinet6/in6.h >/dev/null 2>&1; then 17732 17733$as_echo "#define KAME 1" >>confdefs.h 17734 17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: KAME" >&5 17736$as_echo "KAME" >&6; } 17737 elif test x"$opsys" = x"sol8"; then 17738 17739$as_echo "#define SOLARIS_IPV6 1" >>confdefs.h 17740 17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris IPv6" >&5 17742$as_echo "Solaris IPv6" >&6; } 17743 elif test x"$opsys" = x"gnu-linux"; then 17744 17745$as_echo "#define LINUX_IPV6 1" >>confdefs.h 17746 17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux IPv6" >&5 17748$as_echo "Linux IPv6" >&6; } 17749 else 17750 as_fn_error $? "Failed to detect IPv6 stack" "$LINENO" 5 17751 fi 17752 17753 17754$as_echo "#define HAVE_IPV6 1" >>confdefs.h 17755 17756 17757for ac_header in netinet6/in6.h netinet/in6_var.h netinet/icmp6.h \ 17758 netinet6/in6_var.h netinet6/nd6.h 17759do : 17760 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17761ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef SUNOS_5 17762#define _XPG4_2 17763#define __EXTENSIONS__ 17764#endif 17765#include <stdio.h> 17766#if STDC_HEADERS 17767# include <stdlib.h> 17768# include <stddef.h> 17769#else 17770# if HAVE_STDLIB_H 17771# include <stdlib.h> 17772# endif 17773#endif 17774#if HAVE_SYS_TYPES_H 17775# include <sys/types.h> 17776#endif 17777/* sys/conf.h depends on param.h on FBSD at least */ 17778#if HAVE_SYS_PARAM_H 17779# include <sys/param.h> 17780#endif 17781/* Required for MAXSIG */ 17782#if HAVE_SIGNAL_H 17783# include <signal.h> 17784#endif 17785#if HAVE_SYS_SOCKET_H 17786# include <sys/socket.h> 17787#endif 17788#ifdef __APPLE__ 17789# define __APPLE_USE_RFC_3542 17790#endif 17791#if HAVE_NETINET_IN_H 17792# include <netinet/in.h> 17793#endif 17794#ifdef TIME_WITH_SYS_TIME 17795# include <sys/time.h> 17796# include <time.h> 17797#else 17798# ifdef HAVE_SYS_TIME_H 17799# include <sys/time.h> 17800# else 17801# include <time.h> 17802# endif 17803#endif /* TIME_WITH_SYS_TIME */ 17804 17805#if HAVE_NET_IF_H 17806# include <net/if.h> 17807#endif 17808 17809#if HAVE_NET_IF_VAR_H 17810# include <net/if_var.h> 17811#endif 17812 17813#if HAVE_SYS_UN_H 17814# include <sys/un.h> 17815#endif 17816#if HAVE_NETINET_IN_SYSTM_H 17817# include <netinet/in_systm.h> 17818#endif 17819#if HAVE_NETINET_IN_VAR_H 17820# include <netinet/in_var.h> 17821#endif 17822#if HAVE_NET_IF_DL_H 17823# include <net/if_dl.h> 17824#endif 17825#if HAVE_NET_NETOPT_H 17826# include <net/netopt.h> 17827#endif 17828#if HAVE_NET_ROUTE_H 17829# include <net/route.h> 17830#endif 17831#if HAVE_INET_ND_H 17832# include <inet/nd.h> 17833#endif 17834#if HAVE_ARPA_INET_H 17835# include <arpa/inet.h> 17836#endif 17837/* Required for IDRP */ 17838#if HAVE_NETINET_IP_ICMP_H 17839# include <netinet/ip_icmp.h> 17840#endif 17841 17842" 17843if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17844 cat >>confdefs.h <<_ACEOF 17845#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17846_ACEOF 17847 17848fi 17849 17850done 17851 17852 17853 17854if test "${enable_doc}" = "no";then 17855 DOC="" 17856else 17857 DOC="doc" 17858fi 17859 17860if test "${enable_zebra}" = "no";then 17861 ZEBRA="" 17862else 17863 ZEBRA="zebra" 17864fi 17865 if test "x$ZEBRA" = "xzebra"; then 17866 ZEBRA_TRUE= 17867 ZEBRA_FALSE='#' 17868else 17869 ZEBRA_TRUE='#' 17870 ZEBRA_FALSE= 17871fi 17872 17873 17874if test "${enable_bgpd}" = "no";then 17875 BGPD="" 17876else 17877 BGPD="bgpd" 17878fi 17879 if test "x$BGPD" = "xbgpd"; then 17880 BGPD_TRUE= 17881 BGPD_FALSE='#' 17882else 17883 BGPD_TRUE='#' 17884 BGPD_FALSE= 17885fi 17886 17887 17888if test "${enable_ripd}" = "no";then 17889 RIPD="" 17890else 17891 RIPD="ripd" 17892fi 17893 if test "x$RIPD" = "xripd"; then 17894 RIPD_TRUE= 17895 RIPD_FALSE='#' 17896else 17897 RIPD_TRUE='#' 17898 RIPD_FALSE= 17899fi 17900 17901 17902if test "${enable_ospfd}" = "no";then 17903 OSPFD="" 17904else 17905 OSPFD="ospfd" 17906fi 17907 if test "x$OSPFD" = "xospfd"; then 17908 OSPFD_TRUE= 17909 OSPFD_FALSE='#' 17910else 17911 OSPFD_TRUE='#' 17912 OSPFD_FALSE= 17913fi 17914 17915 17916if test "${enable_babeld}" = "no";then 17917 BABELD="" 17918else 17919 BABELD="babeld" 17920fi 17921 if test "x$BABELD" = "xbabeld"; then 17922 BABELD_TRUE= 17923 BABELD_FALSE='#' 17924else 17925 BABELD_TRUE='#' 17926 BABELD_FALSE= 17927fi 17928 17929 17930if test "${enable_watchquagga}" = "no";then 17931 WATCHQUAGGA="" 17932else 17933 WATCHQUAGGA="watchquagga" 17934fi 17935 if test "x$WATCHQUAGGA" = "xwatchquagga"; then 17936 WATCHQUAGGA_TRUE= 17937 WATCHQUAGGA_FALSE='#' 17938else 17939 WATCHQUAGGA_TRUE='#' 17940 WATCHQUAGGA_FALSE= 17941fi 17942 17943 17944OSPFCLIENT="" 17945if test "${enable_opaque_lsa}" != "no"; then 17946 if test "${enable_ospfapi}" != "no";then 17947 17948$as_echo "#define SUPPORT_OSPF_API /**/" >>confdefs.h 17949 17950 17951 if test "${enable_ospfclient}" != "no";then 17952 OSPFCLIENT="ospfclient" 17953 fi 17954 fi 17955 17956fi 17957 if test "x$OSPFCLIENT" = "xospfclient"; then 17958 OSPFCLIENT_TRUE= 17959 OSPFCLIENT_FALSE='#' 17960else 17961 OSPFCLIENT_TRUE='#' 17962 OSPFCLIENT_FALSE= 17963fi 17964 17965 17966case "${enable_ripngd}" in 17967 "no" ) RIPNGD="";; 17968 * ) RIPNGD="ripngd";; 17969esac 17970 if test "x$RIPNGD" = "xripngd"; then 17971 RIPNGD_TRUE= 17972 RIPNGD_FALSE='#' 17973else 17974 RIPNGD_TRUE='#' 17975 RIPNGD_FALSE= 17976fi 17977 17978 17979case "${enable_ospf6d}" in 17980 "no" ) OSPF6D="";; 17981 * ) OSPF6D="ospf6d";; 17982esac 17983 if test "x$OSPF6D" = "xospf6d"; then 17984 OSPF6D_TRUE= 17985 OSPF6D_FALSE='#' 17986else 17987 OSPF6D_TRUE='#' 17988 OSPF6D_FALSE= 17989fi 17990 17991 17992case "${enable_isisd}" in 17993 "no" ) ISISD="";; 17994 * ) ISISD="isisd";; 17995esac 17996 if test "x$ISISD" = "xisisd"; then 17997 ISISD_TRUE= 17998 ISISD_FALSE='#' 17999else 18000 ISISD_TRUE='#' 18001 ISISD_FALSE= 18002fi 18003 18004 18005case "${enable_pimd}" in 18006 "yes") PIMD="pimd";; 18007 "no" ) PIMD="";; 18008 * ) ;; 18009esac 18010 if test "x$PIMD" = "xpimd"; then 18011 PIMD_TRUE= 18012 PIMD_FALSE='#' 18013else 18014 PIMD_TRUE='#' 18015 PIMD_FALSE= 18016fi 18017 18018 18019if test "${enable_bgp_announce}" = "no";then 18020 18021$as_echo "#define DISABLE_BGP_ANNOUNCE 1" >>confdefs.h 18022 18023else 18024 18025$as_echo "#define DISABLE_BGP_ANNOUNCE 0" >>confdefs.h 18026 18027fi 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -lc" >&5 18046$as_echo_n "checking for inet_ntop in -lc... " >&6; } 18047if ${ac_cv_lib_c_inet_ntop+:} false; then : 18048 $as_echo_n "(cached) " >&6 18049else 18050 ac_check_lib_save_LIBS=$LIBS 18051LIBS="-lc $LIBS" 18052cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18053/* end confdefs.h. */ 18054 18055/* Override any GCC internal prototype to avoid an error. 18056 Use char because int might match the return type of a GCC 18057 builtin and then its argument prototype would still apply. */ 18058#ifdef __cplusplus 18059extern "C" 18060#endif 18061char inet_ntop (); 18062int 18063main () 18064{ 18065return inet_ntop (); 18066 ; 18067 return 0; 18068} 18069_ACEOF 18070if ac_fn_c_try_link "$LINENO"; then : 18071 ac_cv_lib_c_inet_ntop=yes 18072else 18073 ac_cv_lib_c_inet_ntop=no 18074fi 18075rm -f core conftest.err conftest.$ac_objext \ 18076 conftest$ac_exeext conftest.$ac_ext 18077LIBS=$ac_check_lib_save_LIBS 18078fi 18079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_ntop" >&5 18080$as_echo "$ac_cv_lib_c_inet_ntop" >&6; } 18081if test "x$ac_cv_lib_c_inet_ntop" = xyes; then : 18082 18083$as_echo "#define HAVE_INET_NTOP /**/" >>confdefs.h 18084 18085fi 18086 18087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton in -lc" >&5 18088$as_echo_n "checking for inet_pton in -lc... " >&6; } 18089if ${ac_cv_lib_c_inet_pton+:} false; then : 18090 $as_echo_n "(cached) " >&6 18091else 18092 ac_check_lib_save_LIBS=$LIBS 18093LIBS="-lc $LIBS" 18094cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18095/* end confdefs.h. */ 18096 18097/* Override any GCC internal prototype to avoid an error. 18098 Use char because int might match the return type of a GCC 18099 builtin and then its argument prototype would still apply. */ 18100#ifdef __cplusplus 18101extern "C" 18102#endif 18103char inet_pton (); 18104int 18105main () 18106{ 18107return inet_pton (); 18108 ; 18109 return 0; 18110} 18111_ACEOF 18112if ac_fn_c_try_link "$LINENO"; then : 18113 ac_cv_lib_c_inet_pton=yes 18114else 18115 ac_cv_lib_c_inet_pton=no 18116fi 18117rm -f core conftest.err conftest.$ac_objext \ 18118 conftest$ac_exeext conftest.$ac_ext 18119LIBS=$ac_check_lib_save_LIBS 18120fi 18121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_pton" >&5 18122$as_echo "$ac_cv_lib_c_inet_pton" >&6; } 18123if test "x$ac_cv_lib_c_inet_pton" = xyes; then : 18124 18125$as_echo "#define HAVE_INET_PTON /**/" >>confdefs.h 18126 18127fi 18128 18129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 18130$as_echo_n "checking for crypt in -lcrypt... " >&6; } 18131if ${ac_cv_lib_crypt_crypt+:} false; then : 18132 $as_echo_n "(cached) " >&6 18133else 18134 ac_check_lib_save_LIBS=$LIBS 18135LIBS="-lcrypt $LIBS" 18136cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18137/* end confdefs.h. */ 18138 18139/* Override any GCC internal prototype to avoid an error. 18140 Use char because int might match the return type of a GCC 18141 builtin and then its argument prototype would still apply. */ 18142#ifdef __cplusplus 18143extern "C" 18144#endif 18145char crypt (); 18146int 18147main () 18148{ 18149return crypt (); 18150 ; 18151 return 0; 18152} 18153_ACEOF 18154if ac_fn_c_try_link "$LINENO"; then : 18155 ac_cv_lib_crypt_crypt=yes 18156else 18157 ac_cv_lib_crypt_crypt=no 18158fi 18159rm -f core conftest.err conftest.$ac_objext \ 18160 conftest$ac_exeext conftest.$ac_ext 18161LIBS=$ac_check_lib_save_LIBS 18162fi 18163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 18164$as_echo "$ac_cv_lib_crypt_crypt" >&6; } 18165if test "x$ac_cv_lib_crypt_crypt" = xyes; then : 18166 cat >>confdefs.h <<_ACEOF 18167#define HAVE_LIBCRYPT 1 18168_ACEOF 18169 18170 LIBS="-lcrypt $LIBS" 18171 18172fi 18173 18174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init in -lresolv" >&5 18175$as_echo_n "checking for res_init in -lresolv... " >&6; } 18176if ${ac_cv_lib_resolv_res_init+:} false; then : 18177 $as_echo_n "(cached) " >&6 18178else 18179 ac_check_lib_save_LIBS=$LIBS 18180LIBS="-lresolv $LIBS" 18181cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18182/* end confdefs.h. */ 18183 18184/* Override any GCC internal prototype to avoid an error. 18185 Use char because int might match the return type of a GCC 18186 builtin and then its argument prototype would still apply. */ 18187#ifdef __cplusplus 18188extern "C" 18189#endif 18190char res_init (); 18191int 18192main () 18193{ 18194return res_init (); 18195 ; 18196 return 0; 18197} 18198_ACEOF 18199if ac_fn_c_try_link "$LINENO"; then : 18200 ac_cv_lib_resolv_res_init=yes 18201else 18202 ac_cv_lib_resolv_res_init=no 18203fi 18204rm -f core conftest.err conftest.$ac_objext \ 18205 conftest$ac_exeext conftest.$ac_ext 18206LIBS=$ac_check_lib_save_LIBS 18207fi 18208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_init" >&5 18209$as_echo "$ac_cv_lib_resolv_res_init" >&6; } 18210if test "x$ac_cv_lib_resolv_res_init" = xyes; then : 18211 cat >>confdefs.h <<_ACEOF 18212#define HAVE_LIBRESOLV 1 18213_ACEOF 18214 18215 LIBS="-lresolv $LIBS" 18216 18217fi 18218 18219 18220if test "x$enable_pcreposix" = "xyes"; then 18221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix_regexec in -lpcreposix" >&5 18222$as_echo_n "checking for pcreposix_regexec in -lpcreposix... " >&6; } 18223if ${ac_cv_lib_pcreposix_pcreposix_regexec+:} false; then : 18224 $as_echo_n "(cached) " >&6 18225else 18226 ac_check_lib_save_LIBS=$LIBS 18227LIBS="-lpcreposix $LIBS" 18228cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18229/* end confdefs.h. */ 18230 18231/* Override any GCC internal prototype to avoid an error. 18232 Use char because int might match the return type of a GCC 18233 builtin and then its argument prototype would still apply. */ 18234#ifdef __cplusplus 18235extern "C" 18236#endif 18237char pcreposix_regexec (); 18238int 18239main () 18240{ 18241return pcreposix_regexec (); 18242 ; 18243 return 0; 18244} 18245_ACEOF 18246if ac_fn_c_try_link "$LINENO"; then : 18247 ac_cv_lib_pcreposix_pcreposix_regexec=yes 18248else 18249 ac_cv_lib_pcreposix_pcreposix_regexec=no 18250fi 18251rm -f core conftest.err conftest.$ac_objext \ 18252 conftest$ac_exeext conftest.$ac_ext 18253LIBS=$ac_check_lib_save_LIBS 18254fi 18255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcreposix_pcreposix_regexec" >&5 18256$as_echo "$ac_cv_lib_pcreposix_pcreposix_regexec" >&6; } 18257if test "x$ac_cv_lib_pcreposix_pcreposix_regexec" = xyes; then : 18258 cat >>confdefs.h <<_ACEOF 18259#define HAVE_LIBPCREPOSIX 1 18260_ACEOF 18261 18262 LIBS="-lpcreposix $LIBS" 18263 18264else 18265 enable_pcreposix=no 18266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** falling back to other regex library ***" >&5 18267$as_echo "$as_me: WARNING: *** falling back to other regex library ***" >&2;} 18268fi 18269 18270fi 18271 18272if test "x$enable_pcreposix" != "xyes"; then 18273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system has GNU regex" >&5 18274$as_echo_n "checking whether system has GNU regex... " >&6; } 18275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lc" >&5 18276$as_echo_n "checking for regexec in -lc... " >&6; } 18277if ${ac_cv_lib_c_regexec+:} false; then : 18278 $as_echo_n "(cached) " >&6 18279else 18280 ac_check_lib_save_LIBS=$LIBS 18281LIBS="-lc $LIBS" 18282cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18283/* end confdefs.h. */ 18284 18285/* Override any GCC internal prototype to avoid an error. 18286 Use char because int might match the return type of a GCC 18287 builtin and then its argument prototype would still apply. */ 18288#ifdef __cplusplus 18289extern "C" 18290#endif 18291char regexec (); 18292int 18293main () 18294{ 18295return regexec (); 18296 ; 18297 return 0; 18298} 18299_ACEOF 18300if ac_fn_c_try_link "$LINENO"; then : 18301 ac_cv_lib_c_regexec=yes 18302else 18303 ac_cv_lib_c_regexec=no 18304fi 18305rm -f core conftest.err conftest.$ac_objext \ 18306 conftest$ac_exeext conftest.$ac_ext 18307LIBS=$ac_check_lib_save_LIBS 18308fi 18309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_regexec" >&5 18310$as_echo "$ac_cv_lib_c_regexec" >&6; } 18311if test "x$ac_cv_lib_c_regexec" = xyes; then : 18312 18313$as_echo "#define HAVE_GNU_REGEX /**/" >>confdefs.h 18314 18315 LIB_REGEX="" 18316else 18317 LIB_REGEX="regex.o" 18318fi 18319 18320fi 18321 18322 18323 18324if test "${enable_snmp}" != ""; then 18325 if test -n "$ac_tool_prefix"; then 18326 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args. 18327set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2 18328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18329$as_echo_n "checking for $ac_word... " >&6; } 18330if ${ac_cv_path_NETSNMP_CONFIG+:} false; then : 18331 $as_echo_n "(cached) " >&6 18332else 18333 case $NETSNMP_CONFIG in 18334 [\\/]* | ?:[\\/]*) 18335 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path. 18336 ;; 18337 *) 18338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18339for as_dir in $PATH 18340do 18341 IFS=$as_save_IFS 18342 test -z "$as_dir" && as_dir=. 18343 for ac_exec_ext in '' $ac_executable_extensions; do 18344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18345 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18347 break 2 18348 fi 18349done 18350 done 18351IFS=$as_save_IFS 18352 18353 ;; 18354esac 18355fi 18356NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG 18357if test -n "$NETSNMP_CONFIG"; then 18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSNMP_CONFIG" >&5 18359$as_echo "$NETSNMP_CONFIG" >&6; } 18360else 18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18362$as_echo "no" >&6; } 18363fi 18364 18365 18366fi 18367if test -z "$ac_cv_path_NETSNMP_CONFIG"; then 18368 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG 18369 # Extract the first word of "net-snmp-config", so it can be a program name with args. 18370set dummy net-snmp-config; ac_word=$2 18371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18372$as_echo_n "checking for $ac_word... " >&6; } 18373if ${ac_cv_path_ac_pt_NETSNMP_CONFIG+:} false; then : 18374 $as_echo_n "(cached) " >&6 18375else 18376 case $ac_pt_NETSNMP_CONFIG in 18377 [\\/]* | ?:[\\/]*) 18378 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path. 18379 ;; 18380 *) 18381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18382for as_dir in $PATH 18383do 18384 IFS=$as_save_IFS 18385 test -z "$as_dir" && as_dir=. 18386 for ac_exec_ext in '' $ac_executable_extensions; do 18387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18388 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18390 break 2 18391 fi 18392done 18393 done 18394IFS=$as_save_IFS 18395 18396 ;; 18397esac 18398fi 18399ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG 18400if test -n "$ac_pt_NETSNMP_CONFIG"; then 18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_NETSNMP_CONFIG" >&5 18402$as_echo "$ac_pt_NETSNMP_CONFIG" >&6; } 18403else 18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18405$as_echo "no" >&6; } 18406fi 18407 18408 if test "x$ac_pt_NETSNMP_CONFIG" = x; then 18409 NETSNMP_CONFIG="no" 18410 else 18411 case $cross_compiling:$ac_tool_warned in 18412yes:) 18413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18415ac_tool_warned=yes ;; 18416esac 18417 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG 18418 fi 18419else 18420 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG" 18421fi 18422 18423 if test x"$NETSNMP_CONFIG" = x"no"; then 18424 as_fn_error $? "--enable-snmp given but unable to find net-snmp-config" "$LINENO" 5 18425 fi 18426 LIBS="$LIBS `${NETSNMP_CONFIG} --agent-libs`" 18427 CFLAGS="`${NETSNMP_CONFIG} --base-cflags` $CFLAGS" 18428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link to Net-SNMP" >&5 18429$as_echo_n "checking whether we can link to Net-SNMP... " >&6; } 18430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18431/* end confdefs.h. */ 18432 18433int main(void); 18434 18435int 18436main () 18437{ 18438 18439{ 18440 return 0; 18441} 18442 18443 ; 18444 return 0; 18445} 18446_ACEOF 18447if ac_fn_c_try_link "$LINENO"; then : 18448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18449$as_echo "yes" >&6; } 18450else 18451 18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18453$as_echo "no" >&6; } 18454 as_fn_error $? "--enable-snmp given but not usable" "$LINENO" 5 18455fi 18456rm -f core conftest.err conftest.$ac_objext \ 18457 conftest$ac_exeext conftest.$ac_ext 18458 18459$as_echo "#define HAVE_SNMP /**/" >>confdefs.h 18460 18461 case "${enable_snmp}" in 18462 yes) 18463 SNMP_METHOD=agentx 18464 ;; 18465 smux|agentx) 18466 SNMP_METHOD="${enable_snmp}" 18467 ;; 18468 *) 18469 as_fn_error $? "--enable-snmp given with an unknown method (${enable_snmp}). Use smux or agentx" "$LINENO" 5 18470 ;; 18471 esac 18472 18473 18474 18475cat >>confdefs.h <<_ACEOF 18476#define `$as_echo "SNMP_${SNMP_METHOD}" | $as_tr_cpp` /**/ 18477_ACEOF 18478 18479fi 18480 18481ac_fn_c_check_type "$LINENO" "struct sockaddr" "ac_cv_type_struct_sockaddr" "#ifdef SUNOS_5 18482#define _XPG4_2 18483#define __EXTENSIONS__ 18484#endif 18485#include <stdio.h> 18486#if STDC_HEADERS 18487# include <stdlib.h> 18488# include <stddef.h> 18489#else 18490# if HAVE_STDLIB_H 18491# include <stdlib.h> 18492# endif 18493#endif 18494#if HAVE_SYS_TYPES_H 18495# include <sys/types.h> 18496#endif 18497/* sys/conf.h depends on param.h on FBSD at least */ 18498#if HAVE_SYS_PARAM_H 18499# include <sys/param.h> 18500#endif 18501/* Required for MAXSIG */ 18502#if HAVE_SIGNAL_H 18503# include <signal.h> 18504#endif 18505#if HAVE_SYS_SOCKET_H 18506# include <sys/socket.h> 18507#endif 18508#ifdef __APPLE__ 18509# define __APPLE_USE_RFC_3542 18510#endif 18511#if HAVE_NETINET_IN_H 18512# include <netinet/in.h> 18513#endif 18514#ifdef TIME_WITH_SYS_TIME 18515# include <sys/time.h> 18516# include <time.h> 18517#else 18518# ifdef HAVE_SYS_TIME_H 18519# include <sys/time.h> 18520# else 18521# include <time.h> 18522# endif 18523#endif /* TIME_WITH_SYS_TIME */ 18524 18525#if HAVE_NET_IF_H 18526# include <net/if.h> 18527#endif 18528 18529#if HAVE_NET_IF_VAR_H 18530# include <net/if_var.h> 18531#endif 18532 18533#if HAVE_SYS_UN_H 18534# include <sys/un.h> 18535#endif 18536#if HAVE_NETINET_IN_SYSTM_H 18537# include <netinet/in_systm.h> 18538#endif 18539#if HAVE_NETINET_IN_VAR_H 18540# include <netinet/in_var.h> 18541#endif 18542#if HAVE_NET_IF_DL_H 18543# include <net/if_dl.h> 18544#endif 18545#if HAVE_NET_NETOPT_H 18546# include <net/netopt.h> 18547#endif 18548#if HAVE_NET_ROUTE_H 18549# include <net/route.h> 18550#endif 18551#if HAVE_INET_ND_H 18552# include <inet/nd.h> 18553#endif 18554#if HAVE_ARPA_INET_H 18555# include <arpa/inet.h> 18556#endif 18557/* Required for IDRP */ 18558#if HAVE_NETINET_IP_ICMP_H 18559# include <netinet/ip_icmp.h> 18560#endif 18561 18562#if HAVE_NETINET6_IN6_H 18563#include <netinet6/in6.h> 18564#endif 18565#if HAVE_NETINET_IN6_VAR_H 18566#include <netinet/in6_var.h> 18567#endif 18568#if HAVE_NETINET_ICMP6_H 18569# include <netinet/icmp6.h> 18570#endif 18571#if HAVE_NETINET6_IN6_VAR_H 18572# include <netinet6/in6_var.h> 18573#endif 18574#if HAVE_NETINET6_ND6_H 18575# include <netinet6/nd6.h> 18576#endif 18577 18578" 18579if test "x$ac_cv_type_struct_sockaddr" = xyes; then : 18580 18581cat >>confdefs.h <<_ACEOF 18582#define HAVE_STRUCT_SOCKADDR 1 18583_ACEOF 18584 18585 18586fi 18587ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#ifdef SUNOS_5 18588#define _XPG4_2 18589#define __EXTENSIONS__ 18590#endif 18591#include <stdio.h> 18592#if STDC_HEADERS 18593# include <stdlib.h> 18594# include <stddef.h> 18595#else 18596# if HAVE_STDLIB_H 18597# include <stdlib.h> 18598# endif 18599#endif 18600#if HAVE_SYS_TYPES_H 18601# include <sys/types.h> 18602#endif 18603/* sys/conf.h depends on param.h on FBSD at least */ 18604#if HAVE_SYS_PARAM_H 18605# include <sys/param.h> 18606#endif 18607/* Required for MAXSIG */ 18608#if HAVE_SIGNAL_H 18609# include <signal.h> 18610#endif 18611#if HAVE_SYS_SOCKET_H 18612# include <sys/socket.h> 18613#endif 18614#ifdef __APPLE__ 18615# define __APPLE_USE_RFC_3542 18616#endif 18617#if HAVE_NETINET_IN_H 18618# include <netinet/in.h> 18619#endif 18620#ifdef TIME_WITH_SYS_TIME 18621# include <sys/time.h> 18622# include <time.h> 18623#else 18624# ifdef HAVE_SYS_TIME_H 18625# include <sys/time.h> 18626# else 18627# include <time.h> 18628# endif 18629#endif /* TIME_WITH_SYS_TIME */ 18630 18631#if HAVE_NET_IF_H 18632# include <net/if.h> 18633#endif 18634 18635#if HAVE_NET_IF_VAR_H 18636# include <net/if_var.h> 18637#endif 18638 18639#if HAVE_SYS_UN_H 18640# include <sys/un.h> 18641#endif 18642#if HAVE_NETINET_IN_SYSTM_H 18643# include <netinet/in_systm.h> 18644#endif 18645#if HAVE_NETINET_IN_VAR_H 18646# include <netinet/in_var.h> 18647#endif 18648#if HAVE_NET_IF_DL_H 18649# include <net/if_dl.h> 18650#endif 18651#if HAVE_NET_NETOPT_H 18652# include <net/netopt.h> 18653#endif 18654#if HAVE_NET_ROUTE_H 18655# include <net/route.h> 18656#endif 18657#if HAVE_INET_ND_H 18658# include <inet/nd.h> 18659#endif 18660#if HAVE_ARPA_INET_H 18661# include <arpa/inet.h> 18662#endif 18663/* Required for IDRP */ 18664#if HAVE_NETINET_IP_ICMP_H 18665# include <netinet/ip_icmp.h> 18666#endif 18667 18668#if HAVE_NETINET6_IN6_H 18669#include <netinet6/in6.h> 18670#endif 18671#if HAVE_NETINET_IN6_VAR_H 18672#include <netinet/in6_var.h> 18673#endif 18674#if HAVE_NETINET_ICMP6_H 18675# include <netinet/icmp6.h> 18676#endif 18677#if HAVE_NETINET6_IN6_VAR_H 18678# include <netinet6/in6_var.h> 18679#endif 18680#if HAVE_NETINET6_ND6_H 18681# include <netinet6/nd6.h> 18682#endif 18683 18684" 18685if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then : 18686 18687cat >>confdefs.h <<_ACEOF 18688#define HAVE_STRUCT_SOCKADDR_IN 1 18689_ACEOF 18690 18691 18692fi 18693ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#ifdef SUNOS_5 18694#define _XPG4_2 18695#define __EXTENSIONS__ 18696#endif 18697#include <stdio.h> 18698#if STDC_HEADERS 18699# include <stdlib.h> 18700# include <stddef.h> 18701#else 18702# if HAVE_STDLIB_H 18703# include <stdlib.h> 18704# endif 18705#endif 18706#if HAVE_SYS_TYPES_H 18707# include <sys/types.h> 18708#endif 18709/* sys/conf.h depends on param.h on FBSD at least */ 18710#if HAVE_SYS_PARAM_H 18711# include <sys/param.h> 18712#endif 18713/* Required for MAXSIG */ 18714#if HAVE_SIGNAL_H 18715# include <signal.h> 18716#endif 18717#if HAVE_SYS_SOCKET_H 18718# include <sys/socket.h> 18719#endif 18720#ifdef __APPLE__ 18721# define __APPLE_USE_RFC_3542 18722#endif 18723#if HAVE_NETINET_IN_H 18724# include <netinet/in.h> 18725#endif 18726#ifdef TIME_WITH_SYS_TIME 18727# include <sys/time.h> 18728# include <time.h> 18729#else 18730# ifdef HAVE_SYS_TIME_H 18731# include <sys/time.h> 18732# else 18733# include <time.h> 18734# endif 18735#endif /* TIME_WITH_SYS_TIME */ 18736 18737#if HAVE_NET_IF_H 18738# include <net/if.h> 18739#endif 18740 18741#if HAVE_NET_IF_VAR_H 18742# include <net/if_var.h> 18743#endif 18744 18745#if HAVE_SYS_UN_H 18746# include <sys/un.h> 18747#endif 18748#if HAVE_NETINET_IN_SYSTM_H 18749# include <netinet/in_systm.h> 18750#endif 18751#if HAVE_NETINET_IN_VAR_H 18752# include <netinet/in_var.h> 18753#endif 18754#if HAVE_NET_IF_DL_H 18755# include <net/if_dl.h> 18756#endif 18757#if HAVE_NET_NETOPT_H 18758# include <net/netopt.h> 18759#endif 18760#if HAVE_NET_ROUTE_H 18761# include <net/route.h> 18762#endif 18763#if HAVE_INET_ND_H 18764# include <inet/nd.h> 18765#endif 18766#if HAVE_ARPA_INET_H 18767# include <arpa/inet.h> 18768#endif 18769/* Required for IDRP */ 18770#if HAVE_NETINET_IP_ICMP_H 18771# include <netinet/ip_icmp.h> 18772#endif 18773 18774#if HAVE_NETINET6_IN6_H 18775#include <netinet6/in6.h> 18776#endif 18777#if HAVE_NETINET_IN6_VAR_H 18778#include <netinet/in6_var.h> 18779#endif 18780#if HAVE_NETINET_ICMP6_H 18781# include <netinet/icmp6.h> 18782#endif 18783#if HAVE_NETINET6_IN6_VAR_H 18784# include <netinet6/in6_var.h> 18785#endif 18786#if HAVE_NETINET6_ND6_H 18787# include <netinet6/nd6.h> 18788#endif 18789 18790" 18791if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : 18792 18793cat >>confdefs.h <<_ACEOF 18794#define HAVE_STRUCT_SOCKADDR_IN6 1 18795_ACEOF 18796 18797 18798fi 18799ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#ifdef SUNOS_5 18800#define _XPG4_2 18801#define __EXTENSIONS__ 18802#endif 18803#include <stdio.h> 18804#if STDC_HEADERS 18805# include <stdlib.h> 18806# include <stddef.h> 18807#else 18808# if HAVE_STDLIB_H 18809# include <stdlib.h> 18810# endif 18811#endif 18812#if HAVE_SYS_TYPES_H 18813# include <sys/types.h> 18814#endif 18815/* sys/conf.h depends on param.h on FBSD at least */ 18816#if HAVE_SYS_PARAM_H 18817# include <sys/param.h> 18818#endif 18819/* Required for MAXSIG */ 18820#if HAVE_SIGNAL_H 18821# include <signal.h> 18822#endif 18823#if HAVE_SYS_SOCKET_H 18824# include <sys/socket.h> 18825#endif 18826#ifdef __APPLE__ 18827# define __APPLE_USE_RFC_3542 18828#endif 18829#if HAVE_NETINET_IN_H 18830# include <netinet/in.h> 18831#endif 18832#ifdef TIME_WITH_SYS_TIME 18833# include <sys/time.h> 18834# include <time.h> 18835#else 18836# ifdef HAVE_SYS_TIME_H 18837# include <sys/time.h> 18838# else 18839# include <time.h> 18840# endif 18841#endif /* TIME_WITH_SYS_TIME */ 18842 18843#if HAVE_NET_IF_H 18844# include <net/if.h> 18845#endif 18846 18847#if HAVE_NET_IF_VAR_H 18848# include <net/if_var.h> 18849#endif 18850 18851#if HAVE_SYS_UN_H 18852# include <sys/un.h> 18853#endif 18854#if HAVE_NETINET_IN_SYSTM_H 18855# include <netinet/in_systm.h> 18856#endif 18857#if HAVE_NETINET_IN_VAR_H 18858# include <netinet/in_var.h> 18859#endif 18860#if HAVE_NET_IF_DL_H 18861# include <net/if_dl.h> 18862#endif 18863#if HAVE_NET_NETOPT_H 18864# include <net/netopt.h> 18865#endif 18866#if HAVE_NET_ROUTE_H 18867# include <net/route.h> 18868#endif 18869#if HAVE_INET_ND_H 18870# include <inet/nd.h> 18871#endif 18872#if HAVE_ARPA_INET_H 18873# include <arpa/inet.h> 18874#endif 18875/* Required for IDRP */ 18876#if HAVE_NETINET_IP_ICMP_H 18877# include <netinet/ip_icmp.h> 18878#endif 18879 18880#if HAVE_NETINET6_IN6_H 18881#include <netinet6/in6.h> 18882#endif 18883#if HAVE_NETINET_IN6_VAR_H 18884#include <netinet/in6_var.h> 18885#endif 18886#if HAVE_NETINET_ICMP6_H 18887# include <netinet/icmp6.h> 18888#endif 18889#if HAVE_NETINET6_IN6_VAR_H 18890# include <netinet6/in6_var.h> 18891#endif 18892#if HAVE_NETINET6_ND6_H 18893# include <netinet6/nd6.h> 18894#endif 18895 18896" 18897if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then : 18898 18899cat >>confdefs.h <<_ACEOF 18900#define HAVE_STRUCT_SOCKADDR_UN 1 18901_ACEOF 18902 18903 18904fi 18905ac_fn_c_check_type "$LINENO" "struct sockaddr_dl" "ac_cv_type_struct_sockaddr_dl" "#ifdef SUNOS_5 18906#define _XPG4_2 18907#define __EXTENSIONS__ 18908#endif 18909#include <stdio.h> 18910#if STDC_HEADERS 18911# include <stdlib.h> 18912# include <stddef.h> 18913#else 18914# if HAVE_STDLIB_H 18915# include <stdlib.h> 18916# endif 18917#endif 18918#if HAVE_SYS_TYPES_H 18919# include <sys/types.h> 18920#endif 18921/* sys/conf.h depends on param.h on FBSD at least */ 18922#if HAVE_SYS_PARAM_H 18923# include <sys/param.h> 18924#endif 18925/* Required for MAXSIG */ 18926#if HAVE_SIGNAL_H 18927# include <signal.h> 18928#endif 18929#if HAVE_SYS_SOCKET_H 18930# include <sys/socket.h> 18931#endif 18932#ifdef __APPLE__ 18933# define __APPLE_USE_RFC_3542 18934#endif 18935#if HAVE_NETINET_IN_H 18936# include <netinet/in.h> 18937#endif 18938#ifdef TIME_WITH_SYS_TIME 18939# include <sys/time.h> 18940# include <time.h> 18941#else 18942# ifdef HAVE_SYS_TIME_H 18943# include <sys/time.h> 18944# else 18945# include <time.h> 18946# endif 18947#endif /* TIME_WITH_SYS_TIME */ 18948 18949#if HAVE_NET_IF_H 18950# include <net/if.h> 18951#endif 18952 18953#if HAVE_NET_IF_VAR_H 18954# include <net/if_var.h> 18955#endif 18956 18957#if HAVE_SYS_UN_H 18958# include <sys/un.h> 18959#endif 18960#if HAVE_NETINET_IN_SYSTM_H 18961# include <netinet/in_systm.h> 18962#endif 18963#if HAVE_NETINET_IN_VAR_H 18964# include <netinet/in_var.h> 18965#endif 18966#if HAVE_NET_IF_DL_H 18967# include <net/if_dl.h> 18968#endif 18969#if HAVE_NET_NETOPT_H 18970# include <net/netopt.h> 18971#endif 18972#if HAVE_NET_ROUTE_H 18973# include <net/route.h> 18974#endif 18975#if HAVE_INET_ND_H 18976# include <inet/nd.h> 18977#endif 18978#if HAVE_ARPA_INET_H 18979# include <arpa/inet.h> 18980#endif 18981/* Required for IDRP */ 18982#if HAVE_NETINET_IP_ICMP_H 18983# include <netinet/ip_icmp.h> 18984#endif 18985 18986#if HAVE_NETINET6_IN6_H 18987#include <netinet6/in6.h> 18988#endif 18989#if HAVE_NETINET_IN6_VAR_H 18990#include <netinet/in6_var.h> 18991#endif 18992#if HAVE_NETINET_ICMP6_H 18993# include <netinet/icmp6.h> 18994#endif 18995#if HAVE_NETINET6_IN6_VAR_H 18996# include <netinet6/in6_var.h> 18997#endif 18998#if HAVE_NETINET6_ND6_H 18999# include <netinet6/nd6.h> 19000#endif 19001 19002" 19003if test "x$ac_cv_type_struct_sockaddr_dl" = xyes; then : 19004 19005cat >>confdefs.h <<_ACEOF 19006#define HAVE_STRUCT_SOCKADDR_DL 1 19007_ACEOF 19008 19009 19010fi 19011ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#ifdef SUNOS_5 19012#define _XPG4_2 19013#define __EXTENSIONS__ 19014#endif 19015#include <stdio.h> 19016#if STDC_HEADERS 19017# include <stdlib.h> 19018# include <stddef.h> 19019#else 19020# if HAVE_STDLIB_H 19021# include <stdlib.h> 19022# endif 19023#endif 19024#if HAVE_SYS_TYPES_H 19025# include <sys/types.h> 19026#endif 19027/* sys/conf.h depends on param.h on FBSD at least */ 19028#if HAVE_SYS_PARAM_H 19029# include <sys/param.h> 19030#endif 19031/* Required for MAXSIG */ 19032#if HAVE_SIGNAL_H 19033# include <signal.h> 19034#endif 19035#if HAVE_SYS_SOCKET_H 19036# include <sys/socket.h> 19037#endif 19038#ifdef __APPLE__ 19039# define __APPLE_USE_RFC_3542 19040#endif 19041#if HAVE_NETINET_IN_H 19042# include <netinet/in.h> 19043#endif 19044#ifdef TIME_WITH_SYS_TIME 19045# include <sys/time.h> 19046# include <time.h> 19047#else 19048# ifdef HAVE_SYS_TIME_H 19049# include <sys/time.h> 19050# else 19051# include <time.h> 19052# endif 19053#endif /* TIME_WITH_SYS_TIME */ 19054 19055#if HAVE_NET_IF_H 19056# include <net/if.h> 19057#endif 19058 19059#if HAVE_NET_IF_VAR_H 19060# include <net/if_var.h> 19061#endif 19062 19063#if HAVE_SYS_UN_H 19064# include <sys/un.h> 19065#endif 19066#if HAVE_NETINET_IN_SYSTM_H 19067# include <netinet/in_systm.h> 19068#endif 19069#if HAVE_NETINET_IN_VAR_H 19070# include <netinet/in_var.h> 19071#endif 19072#if HAVE_NET_IF_DL_H 19073# include <net/if_dl.h> 19074#endif 19075#if HAVE_NET_NETOPT_H 19076# include <net/netopt.h> 19077#endif 19078#if HAVE_NET_ROUTE_H 19079# include <net/route.h> 19080#endif 19081#if HAVE_INET_ND_H 19082# include <inet/nd.h> 19083#endif 19084#if HAVE_ARPA_INET_H 19085# include <arpa/inet.h> 19086#endif 19087/* Required for IDRP */ 19088#if HAVE_NETINET_IP_ICMP_H 19089# include <netinet/ip_icmp.h> 19090#endif 19091 19092#if HAVE_NETINET6_IN6_H 19093#include <netinet6/in6.h> 19094#endif 19095#if HAVE_NETINET_IN6_VAR_H 19096#include <netinet/in6_var.h> 19097#endif 19098#if HAVE_NETINET_ICMP6_H 19099# include <netinet/icmp6.h> 19100#endif 19101#if HAVE_NETINET6_IN6_VAR_H 19102# include <netinet6/in6_var.h> 19103#endif 19104#if HAVE_NETINET6_ND6_H 19105# include <netinet6/nd6.h> 19106#endif 19107 19108" 19109if test "x$ac_cv_type_socklen_t" = xyes; then : 19110 19111cat >>confdefs.h <<_ACEOF 19112#define HAVE_SOCKLEN_T 1 19113_ACEOF 19114 19115 19116fi 19117ac_fn_c_check_type "$LINENO" "struct vifctl" "ac_cv_type_struct_vifctl" "#ifdef SUNOS_5 19118#define _XPG4_2 19119#define __EXTENSIONS__ 19120#endif 19121#include <stdio.h> 19122#if STDC_HEADERS 19123# include <stdlib.h> 19124# include <stddef.h> 19125#else 19126# if HAVE_STDLIB_H 19127# include <stdlib.h> 19128# endif 19129#endif 19130#if HAVE_SYS_TYPES_H 19131# include <sys/types.h> 19132#endif 19133/* sys/conf.h depends on param.h on FBSD at least */ 19134#if HAVE_SYS_PARAM_H 19135# include <sys/param.h> 19136#endif 19137/* Required for MAXSIG */ 19138#if HAVE_SIGNAL_H 19139# include <signal.h> 19140#endif 19141#if HAVE_SYS_SOCKET_H 19142# include <sys/socket.h> 19143#endif 19144#ifdef __APPLE__ 19145# define __APPLE_USE_RFC_3542 19146#endif 19147#if HAVE_NETINET_IN_H 19148# include <netinet/in.h> 19149#endif 19150#ifdef TIME_WITH_SYS_TIME 19151# include <sys/time.h> 19152# include <time.h> 19153#else 19154# ifdef HAVE_SYS_TIME_H 19155# include <sys/time.h> 19156# else 19157# include <time.h> 19158# endif 19159#endif /* TIME_WITH_SYS_TIME */ 19160 19161#if HAVE_NET_IF_H 19162# include <net/if.h> 19163#endif 19164 19165#if HAVE_NET_IF_VAR_H 19166# include <net/if_var.h> 19167#endif 19168 19169#if HAVE_SYS_UN_H 19170# include <sys/un.h> 19171#endif 19172#if HAVE_NETINET_IN_SYSTM_H 19173# include <netinet/in_systm.h> 19174#endif 19175#if HAVE_NETINET_IN_VAR_H 19176# include <netinet/in_var.h> 19177#endif 19178#if HAVE_NET_IF_DL_H 19179# include <net/if_dl.h> 19180#endif 19181#if HAVE_NET_NETOPT_H 19182# include <net/netopt.h> 19183#endif 19184#if HAVE_NET_ROUTE_H 19185# include <net/route.h> 19186#endif 19187#if HAVE_INET_ND_H 19188# include <inet/nd.h> 19189#endif 19190#if HAVE_ARPA_INET_H 19191# include <arpa/inet.h> 19192#endif 19193/* Required for IDRP */ 19194#if HAVE_NETINET_IP_ICMP_H 19195# include <netinet/ip_icmp.h> 19196#endif 19197 19198#if HAVE_NETINET6_IN6_H 19199#include <netinet6/in6.h> 19200#endif 19201#if HAVE_NETINET_IN6_VAR_H 19202#include <netinet/in6_var.h> 19203#endif 19204#if HAVE_NETINET_ICMP6_H 19205# include <netinet/icmp6.h> 19206#endif 19207#if HAVE_NETINET6_IN6_VAR_H 19208# include <netinet6/in6_var.h> 19209#endif 19210#if HAVE_NETINET6_ND6_H 19211# include <netinet6/nd6.h> 19212#endif 19213 19214" 19215if test "x$ac_cv_type_struct_vifctl" = xyes; then : 19216 19217cat >>confdefs.h <<_ACEOF 19218#define HAVE_STRUCT_VIFCTL 1 19219_ACEOF 19220 19221 19222fi 19223ac_fn_c_check_type "$LINENO" "struct mfcctl" "ac_cv_type_struct_mfcctl" "#ifdef SUNOS_5 19224#define _XPG4_2 19225#define __EXTENSIONS__ 19226#endif 19227#include <stdio.h> 19228#if STDC_HEADERS 19229# include <stdlib.h> 19230# include <stddef.h> 19231#else 19232# if HAVE_STDLIB_H 19233# include <stdlib.h> 19234# endif 19235#endif 19236#if HAVE_SYS_TYPES_H 19237# include <sys/types.h> 19238#endif 19239/* sys/conf.h depends on param.h on FBSD at least */ 19240#if HAVE_SYS_PARAM_H 19241# include <sys/param.h> 19242#endif 19243/* Required for MAXSIG */ 19244#if HAVE_SIGNAL_H 19245# include <signal.h> 19246#endif 19247#if HAVE_SYS_SOCKET_H 19248# include <sys/socket.h> 19249#endif 19250#ifdef __APPLE__ 19251# define __APPLE_USE_RFC_3542 19252#endif 19253#if HAVE_NETINET_IN_H 19254# include <netinet/in.h> 19255#endif 19256#ifdef TIME_WITH_SYS_TIME 19257# include <sys/time.h> 19258# include <time.h> 19259#else 19260# ifdef HAVE_SYS_TIME_H 19261# include <sys/time.h> 19262# else 19263# include <time.h> 19264# endif 19265#endif /* TIME_WITH_SYS_TIME */ 19266 19267#if HAVE_NET_IF_H 19268# include <net/if.h> 19269#endif 19270 19271#if HAVE_NET_IF_VAR_H 19272# include <net/if_var.h> 19273#endif 19274 19275#if HAVE_SYS_UN_H 19276# include <sys/un.h> 19277#endif 19278#if HAVE_NETINET_IN_SYSTM_H 19279# include <netinet/in_systm.h> 19280#endif 19281#if HAVE_NETINET_IN_VAR_H 19282# include <netinet/in_var.h> 19283#endif 19284#if HAVE_NET_IF_DL_H 19285# include <net/if_dl.h> 19286#endif 19287#if HAVE_NET_NETOPT_H 19288# include <net/netopt.h> 19289#endif 19290#if HAVE_NET_ROUTE_H 19291# include <net/route.h> 19292#endif 19293#if HAVE_INET_ND_H 19294# include <inet/nd.h> 19295#endif 19296#if HAVE_ARPA_INET_H 19297# include <arpa/inet.h> 19298#endif 19299/* Required for IDRP */ 19300#if HAVE_NETINET_IP_ICMP_H 19301# include <netinet/ip_icmp.h> 19302#endif 19303 19304#if HAVE_NETINET6_IN6_H 19305#include <netinet6/in6.h> 19306#endif 19307#if HAVE_NETINET_IN6_VAR_H 19308#include <netinet/in6_var.h> 19309#endif 19310#if HAVE_NETINET_ICMP6_H 19311# include <netinet/icmp6.h> 19312#endif 19313#if HAVE_NETINET6_IN6_VAR_H 19314# include <netinet6/in6_var.h> 19315#endif 19316#if HAVE_NETINET6_ND6_H 19317# include <netinet6/nd6.h> 19318#endif 19319 19320" 19321if test "x$ac_cv_type_struct_mfcctl" = xyes; then : 19322 19323cat >>confdefs.h <<_ACEOF 19324#define HAVE_STRUCT_MFCCTL 1 19325_ACEOF 19326 19327 19328fi 19329ac_fn_c_check_type "$LINENO" "struct sioc_sg_req" "ac_cv_type_struct_sioc_sg_req" "#ifdef SUNOS_5 19330#define _XPG4_2 19331#define __EXTENSIONS__ 19332#endif 19333#include <stdio.h> 19334#if STDC_HEADERS 19335# include <stdlib.h> 19336# include <stddef.h> 19337#else 19338# if HAVE_STDLIB_H 19339# include <stdlib.h> 19340# endif 19341#endif 19342#if HAVE_SYS_TYPES_H 19343# include <sys/types.h> 19344#endif 19345/* sys/conf.h depends on param.h on FBSD at least */ 19346#if HAVE_SYS_PARAM_H 19347# include <sys/param.h> 19348#endif 19349/* Required for MAXSIG */ 19350#if HAVE_SIGNAL_H 19351# include <signal.h> 19352#endif 19353#if HAVE_SYS_SOCKET_H 19354# include <sys/socket.h> 19355#endif 19356#ifdef __APPLE__ 19357# define __APPLE_USE_RFC_3542 19358#endif 19359#if HAVE_NETINET_IN_H 19360# include <netinet/in.h> 19361#endif 19362#ifdef TIME_WITH_SYS_TIME 19363# include <sys/time.h> 19364# include <time.h> 19365#else 19366# ifdef HAVE_SYS_TIME_H 19367# include <sys/time.h> 19368# else 19369# include <time.h> 19370# endif 19371#endif /* TIME_WITH_SYS_TIME */ 19372 19373#if HAVE_NET_IF_H 19374# include <net/if.h> 19375#endif 19376 19377#if HAVE_NET_IF_VAR_H 19378# include <net/if_var.h> 19379#endif 19380 19381#if HAVE_SYS_UN_H 19382# include <sys/un.h> 19383#endif 19384#if HAVE_NETINET_IN_SYSTM_H 19385# include <netinet/in_systm.h> 19386#endif 19387#if HAVE_NETINET_IN_VAR_H 19388# include <netinet/in_var.h> 19389#endif 19390#if HAVE_NET_IF_DL_H 19391# include <net/if_dl.h> 19392#endif 19393#if HAVE_NET_NETOPT_H 19394# include <net/netopt.h> 19395#endif 19396#if HAVE_NET_ROUTE_H 19397# include <net/route.h> 19398#endif 19399#if HAVE_INET_ND_H 19400# include <inet/nd.h> 19401#endif 19402#if HAVE_ARPA_INET_H 19403# include <arpa/inet.h> 19404#endif 19405/* Required for IDRP */ 19406#if HAVE_NETINET_IP_ICMP_H 19407# include <netinet/ip_icmp.h> 19408#endif 19409 19410#if HAVE_NETINET6_IN6_H 19411#include <netinet6/in6.h> 19412#endif 19413#if HAVE_NETINET_IN6_VAR_H 19414#include <netinet/in6_var.h> 19415#endif 19416#if HAVE_NETINET_ICMP6_H 19417# include <netinet/icmp6.h> 19418#endif 19419#if HAVE_NETINET6_IN6_VAR_H 19420# include <netinet6/in6_var.h> 19421#endif 19422#if HAVE_NETINET6_ND6_H 19423# include <netinet6/nd6.h> 19424#endif 19425 19426" 19427if test "x$ac_cv_type_struct_sioc_sg_req" = xyes; then : 19428 19429cat >>confdefs.h <<_ACEOF 19430#define HAVE_STRUCT_SIOC_SG_REQ 1 19431_ACEOF 19432 19433 19434fi 19435ac_fn_c_check_type "$LINENO" "vifi_t" "ac_cv_type_vifi_t" "#ifdef SUNOS_5 19436#define _XPG4_2 19437#define __EXTENSIONS__ 19438#endif 19439#include <stdio.h> 19440#if STDC_HEADERS 19441# include <stdlib.h> 19442# include <stddef.h> 19443#else 19444# if HAVE_STDLIB_H 19445# include <stdlib.h> 19446# endif 19447#endif 19448#if HAVE_SYS_TYPES_H 19449# include <sys/types.h> 19450#endif 19451/* sys/conf.h depends on param.h on FBSD at least */ 19452#if HAVE_SYS_PARAM_H 19453# include <sys/param.h> 19454#endif 19455/* Required for MAXSIG */ 19456#if HAVE_SIGNAL_H 19457# include <signal.h> 19458#endif 19459#if HAVE_SYS_SOCKET_H 19460# include <sys/socket.h> 19461#endif 19462#ifdef __APPLE__ 19463# define __APPLE_USE_RFC_3542 19464#endif 19465#if HAVE_NETINET_IN_H 19466# include <netinet/in.h> 19467#endif 19468#ifdef TIME_WITH_SYS_TIME 19469# include <sys/time.h> 19470# include <time.h> 19471#else 19472# ifdef HAVE_SYS_TIME_H 19473# include <sys/time.h> 19474# else 19475# include <time.h> 19476# endif 19477#endif /* TIME_WITH_SYS_TIME */ 19478 19479#if HAVE_NET_IF_H 19480# include <net/if.h> 19481#endif 19482 19483#if HAVE_NET_IF_VAR_H 19484# include <net/if_var.h> 19485#endif 19486 19487#if HAVE_SYS_UN_H 19488# include <sys/un.h> 19489#endif 19490#if HAVE_NETINET_IN_SYSTM_H 19491# include <netinet/in_systm.h> 19492#endif 19493#if HAVE_NETINET_IN_VAR_H 19494# include <netinet/in_var.h> 19495#endif 19496#if HAVE_NET_IF_DL_H 19497# include <net/if_dl.h> 19498#endif 19499#if HAVE_NET_NETOPT_H 19500# include <net/netopt.h> 19501#endif 19502#if HAVE_NET_ROUTE_H 19503# include <net/route.h> 19504#endif 19505#if HAVE_INET_ND_H 19506# include <inet/nd.h> 19507#endif 19508#if HAVE_ARPA_INET_H 19509# include <arpa/inet.h> 19510#endif 19511/* Required for IDRP */ 19512#if HAVE_NETINET_IP_ICMP_H 19513# include <netinet/ip_icmp.h> 19514#endif 19515 19516#if HAVE_NETINET6_IN6_H 19517#include <netinet6/in6.h> 19518#endif 19519#if HAVE_NETINET_IN6_VAR_H 19520#include <netinet/in6_var.h> 19521#endif 19522#if HAVE_NETINET_ICMP6_H 19523# include <netinet/icmp6.h> 19524#endif 19525#if HAVE_NETINET6_IN6_VAR_H 19526# include <netinet6/in6_var.h> 19527#endif 19528#if HAVE_NETINET6_ND6_H 19529# include <netinet6/nd6.h> 19530#endif 19531 19532" 19533if test "x$ac_cv_type_vifi_t" = xyes; then : 19534 19535cat >>confdefs.h <<_ACEOF 19536#define HAVE_VIFI_T 1 19537_ACEOF 19538 19539 19540fi 19541ac_fn_c_check_type "$LINENO" "struct sioc_vif_req" "ac_cv_type_struct_sioc_vif_req" "#ifdef SUNOS_5 19542#define _XPG4_2 19543#define __EXTENSIONS__ 19544#endif 19545#include <stdio.h> 19546#if STDC_HEADERS 19547# include <stdlib.h> 19548# include <stddef.h> 19549#else 19550# if HAVE_STDLIB_H 19551# include <stdlib.h> 19552# endif 19553#endif 19554#if HAVE_SYS_TYPES_H 19555# include <sys/types.h> 19556#endif 19557/* sys/conf.h depends on param.h on FBSD at least */ 19558#if HAVE_SYS_PARAM_H 19559# include <sys/param.h> 19560#endif 19561/* Required for MAXSIG */ 19562#if HAVE_SIGNAL_H 19563# include <signal.h> 19564#endif 19565#if HAVE_SYS_SOCKET_H 19566# include <sys/socket.h> 19567#endif 19568#ifdef __APPLE__ 19569# define __APPLE_USE_RFC_3542 19570#endif 19571#if HAVE_NETINET_IN_H 19572# include <netinet/in.h> 19573#endif 19574#ifdef TIME_WITH_SYS_TIME 19575# include <sys/time.h> 19576# include <time.h> 19577#else 19578# ifdef HAVE_SYS_TIME_H 19579# include <sys/time.h> 19580# else 19581# include <time.h> 19582# endif 19583#endif /* TIME_WITH_SYS_TIME */ 19584 19585#if HAVE_NET_IF_H 19586# include <net/if.h> 19587#endif 19588 19589#if HAVE_NET_IF_VAR_H 19590# include <net/if_var.h> 19591#endif 19592 19593#if HAVE_SYS_UN_H 19594# include <sys/un.h> 19595#endif 19596#if HAVE_NETINET_IN_SYSTM_H 19597# include <netinet/in_systm.h> 19598#endif 19599#if HAVE_NETINET_IN_VAR_H 19600# include <netinet/in_var.h> 19601#endif 19602#if HAVE_NET_IF_DL_H 19603# include <net/if_dl.h> 19604#endif 19605#if HAVE_NET_NETOPT_H 19606# include <net/netopt.h> 19607#endif 19608#if HAVE_NET_ROUTE_H 19609# include <net/route.h> 19610#endif 19611#if HAVE_INET_ND_H 19612# include <inet/nd.h> 19613#endif 19614#if HAVE_ARPA_INET_H 19615# include <arpa/inet.h> 19616#endif 19617/* Required for IDRP */ 19618#if HAVE_NETINET_IP_ICMP_H 19619# include <netinet/ip_icmp.h> 19620#endif 19621 19622#if HAVE_NETINET6_IN6_H 19623#include <netinet6/in6.h> 19624#endif 19625#if HAVE_NETINET_IN6_VAR_H 19626#include <netinet/in6_var.h> 19627#endif 19628#if HAVE_NETINET_ICMP6_H 19629# include <netinet/icmp6.h> 19630#endif 19631#if HAVE_NETINET6_IN6_VAR_H 19632# include <netinet6/in6_var.h> 19633#endif 19634#if HAVE_NETINET6_ND6_H 19635# include <netinet6/nd6.h> 19636#endif 19637 19638" 19639if test "x$ac_cv_type_struct_sioc_vif_req" = xyes; then : 19640 19641cat >>confdefs.h <<_ACEOF 19642#define HAVE_STRUCT_SIOC_VIF_REQ 1 19643_ACEOF 19644 19645 19646fi 19647ac_fn_c_check_type "$LINENO" "struct igmpmsg" "ac_cv_type_struct_igmpmsg" "#ifdef SUNOS_5 19648#define _XPG4_2 19649#define __EXTENSIONS__ 19650#endif 19651#include <stdio.h> 19652#if STDC_HEADERS 19653# include <stdlib.h> 19654# include <stddef.h> 19655#else 19656# if HAVE_STDLIB_H 19657# include <stdlib.h> 19658# endif 19659#endif 19660#if HAVE_SYS_TYPES_H 19661# include <sys/types.h> 19662#endif 19663/* sys/conf.h depends on param.h on FBSD at least */ 19664#if HAVE_SYS_PARAM_H 19665# include <sys/param.h> 19666#endif 19667/* Required for MAXSIG */ 19668#if HAVE_SIGNAL_H 19669# include <signal.h> 19670#endif 19671#if HAVE_SYS_SOCKET_H 19672# include <sys/socket.h> 19673#endif 19674#ifdef __APPLE__ 19675# define __APPLE_USE_RFC_3542 19676#endif 19677#if HAVE_NETINET_IN_H 19678# include <netinet/in.h> 19679#endif 19680#ifdef TIME_WITH_SYS_TIME 19681# include <sys/time.h> 19682# include <time.h> 19683#else 19684# ifdef HAVE_SYS_TIME_H 19685# include <sys/time.h> 19686# else 19687# include <time.h> 19688# endif 19689#endif /* TIME_WITH_SYS_TIME */ 19690 19691#if HAVE_NET_IF_H 19692# include <net/if.h> 19693#endif 19694 19695#if HAVE_NET_IF_VAR_H 19696# include <net/if_var.h> 19697#endif 19698 19699#if HAVE_SYS_UN_H 19700# include <sys/un.h> 19701#endif 19702#if HAVE_NETINET_IN_SYSTM_H 19703# include <netinet/in_systm.h> 19704#endif 19705#if HAVE_NETINET_IN_VAR_H 19706# include <netinet/in_var.h> 19707#endif 19708#if HAVE_NET_IF_DL_H 19709# include <net/if_dl.h> 19710#endif 19711#if HAVE_NET_NETOPT_H 19712# include <net/netopt.h> 19713#endif 19714#if HAVE_NET_ROUTE_H 19715# include <net/route.h> 19716#endif 19717#if HAVE_INET_ND_H 19718# include <inet/nd.h> 19719#endif 19720#if HAVE_ARPA_INET_H 19721# include <arpa/inet.h> 19722#endif 19723/* Required for IDRP */ 19724#if HAVE_NETINET_IP_ICMP_H 19725# include <netinet/ip_icmp.h> 19726#endif 19727 19728#if HAVE_NETINET6_IN6_H 19729#include <netinet6/in6.h> 19730#endif 19731#if HAVE_NETINET_IN6_VAR_H 19732#include <netinet/in6_var.h> 19733#endif 19734#if HAVE_NETINET_ICMP6_H 19735# include <netinet/icmp6.h> 19736#endif 19737#if HAVE_NETINET6_IN6_VAR_H 19738# include <netinet6/in6_var.h> 19739#endif 19740#if HAVE_NETINET6_ND6_H 19741# include <netinet6/nd6.h> 19742#endif 19743 19744" 19745if test "x$ac_cv_type_struct_igmpmsg" = xyes; then : 19746 19747cat >>confdefs.h <<_ACEOF 19748#define HAVE_STRUCT_IGMPMSG 1 19749_ACEOF 19750 19751 19752fi 19753ac_fn_c_check_type "$LINENO" "struct ifaliasreq" "ac_cv_type_struct_ifaliasreq" "#ifdef SUNOS_5 19754#define _XPG4_2 19755#define __EXTENSIONS__ 19756#endif 19757#include <stdio.h> 19758#if STDC_HEADERS 19759# include <stdlib.h> 19760# include <stddef.h> 19761#else 19762# if HAVE_STDLIB_H 19763# include <stdlib.h> 19764# endif 19765#endif 19766#if HAVE_SYS_TYPES_H 19767# include <sys/types.h> 19768#endif 19769/* sys/conf.h depends on param.h on FBSD at least */ 19770#if HAVE_SYS_PARAM_H 19771# include <sys/param.h> 19772#endif 19773/* Required for MAXSIG */ 19774#if HAVE_SIGNAL_H 19775# include <signal.h> 19776#endif 19777#if HAVE_SYS_SOCKET_H 19778# include <sys/socket.h> 19779#endif 19780#ifdef __APPLE__ 19781# define __APPLE_USE_RFC_3542 19782#endif 19783#if HAVE_NETINET_IN_H 19784# include <netinet/in.h> 19785#endif 19786#ifdef TIME_WITH_SYS_TIME 19787# include <sys/time.h> 19788# include <time.h> 19789#else 19790# ifdef HAVE_SYS_TIME_H 19791# include <sys/time.h> 19792# else 19793# include <time.h> 19794# endif 19795#endif /* TIME_WITH_SYS_TIME */ 19796 19797#if HAVE_NET_IF_H 19798# include <net/if.h> 19799#endif 19800 19801#if HAVE_NET_IF_VAR_H 19802# include <net/if_var.h> 19803#endif 19804 19805#if HAVE_SYS_UN_H 19806# include <sys/un.h> 19807#endif 19808#if HAVE_NETINET_IN_SYSTM_H 19809# include <netinet/in_systm.h> 19810#endif 19811#if HAVE_NETINET_IN_VAR_H 19812# include <netinet/in_var.h> 19813#endif 19814#if HAVE_NET_IF_DL_H 19815# include <net/if_dl.h> 19816#endif 19817#if HAVE_NET_NETOPT_H 19818# include <net/netopt.h> 19819#endif 19820#if HAVE_NET_ROUTE_H 19821# include <net/route.h> 19822#endif 19823#if HAVE_INET_ND_H 19824# include <inet/nd.h> 19825#endif 19826#if HAVE_ARPA_INET_H 19827# include <arpa/inet.h> 19828#endif 19829/* Required for IDRP */ 19830#if HAVE_NETINET_IP_ICMP_H 19831# include <netinet/ip_icmp.h> 19832#endif 19833 19834#if HAVE_NETINET6_IN6_H 19835#include <netinet6/in6.h> 19836#endif 19837#if HAVE_NETINET_IN6_VAR_H 19838#include <netinet/in6_var.h> 19839#endif 19840#if HAVE_NETINET_ICMP6_H 19841# include <netinet/icmp6.h> 19842#endif 19843#if HAVE_NETINET6_IN6_VAR_H 19844# include <netinet6/in6_var.h> 19845#endif 19846#if HAVE_NETINET6_ND6_H 19847# include <netinet6/nd6.h> 19848#endif 19849 19850" 19851if test "x$ac_cv_type_struct_ifaliasreq" = xyes; then : 19852 19853cat >>confdefs.h <<_ACEOF 19854#define HAVE_STRUCT_IFALIASREQ 1 19855_ACEOF 19856 19857 19858fi 19859ac_fn_c_check_type "$LINENO" "struct if6_aliasreq" "ac_cv_type_struct_if6_aliasreq" "#ifdef SUNOS_5 19860#define _XPG4_2 19861#define __EXTENSIONS__ 19862#endif 19863#include <stdio.h> 19864#if STDC_HEADERS 19865# include <stdlib.h> 19866# include <stddef.h> 19867#else 19868# if HAVE_STDLIB_H 19869# include <stdlib.h> 19870# endif 19871#endif 19872#if HAVE_SYS_TYPES_H 19873# include <sys/types.h> 19874#endif 19875/* sys/conf.h depends on param.h on FBSD at least */ 19876#if HAVE_SYS_PARAM_H 19877# include <sys/param.h> 19878#endif 19879/* Required for MAXSIG */ 19880#if HAVE_SIGNAL_H 19881# include <signal.h> 19882#endif 19883#if HAVE_SYS_SOCKET_H 19884# include <sys/socket.h> 19885#endif 19886#ifdef __APPLE__ 19887# define __APPLE_USE_RFC_3542 19888#endif 19889#if HAVE_NETINET_IN_H 19890# include <netinet/in.h> 19891#endif 19892#ifdef TIME_WITH_SYS_TIME 19893# include <sys/time.h> 19894# include <time.h> 19895#else 19896# ifdef HAVE_SYS_TIME_H 19897# include <sys/time.h> 19898# else 19899# include <time.h> 19900# endif 19901#endif /* TIME_WITH_SYS_TIME */ 19902 19903#if HAVE_NET_IF_H 19904# include <net/if.h> 19905#endif 19906 19907#if HAVE_NET_IF_VAR_H 19908# include <net/if_var.h> 19909#endif 19910 19911#if HAVE_SYS_UN_H 19912# include <sys/un.h> 19913#endif 19914#if HAVE_NETINET_IN_SYSTM_H 19915# include <netinet/in_systm.h> 19916#endif 19917#if HAVE_NETINET_IN_VAR_H 19918# include <netinet/in_var.h> 19919#endif 19920#if HAVE_NET_IF_DL_H 19921# include <net/if_dl.h> 19922#endif 19923#if HAVE_NET_NETOPT_H 19924# include <net/netopt.h> 19925#endif 19926#if HAVE_NET_ROUTE_H 19927# include <net/route.h> 19928#endif 19929#if HAVE_INET_ND_H 19930# include <inet/nd.h> 19931#endif 19932#if HAVE_ARPA_INET_H 19933# include <arpa/inet.h> 19934#endif 19935/* Required for IDRP */ 19936#if HAVE_NETINET_IP_ICMP_H 19937# include <netinet/ip_icmp.h> 19938#endif 19939 19940#if HAVE_NETINET6_IN6_H 19941#include <netinet6/in6.h> 19942#endif 19943#if HAVE_NETINET_IN6_VAR_H 19944#include <netinet/in6_var.h> 19945#endif 19946#if HAVE_NETINET_ICMP6_H 19947# include <netinet/icmp6.h> 19948#endif 19949#if HAVE_NETINET6_IN6_VAR_H 19950# include <netinet6/in6_var.h> 19951#endif 19952#if HAVE_NETINET6_ND6_H 19953# include <netinet6/nd6.h> 19954#endif 19955 19956" 19957if test "x$ac_cv_type_struct_if6_aliasreq" = xyes; then : 19958 19959cat >>confdefs.h <<_ACEOF 19960#define HAVE_STRUCT_IF6_ALIASREQ 1 19961_ACEOF 19962 19963 19964fi 19965ac_fn_c_check_type "$LINENO" "struct in6_aliasreq" "ac_cv_type_struct_in6_aliasreq" "#ifdef SUNOS_5 19966#define _XPG4_2 19967#define __EXTENSIONS__ 19968#endif 19969#include <stdio.h> 19970#if STDC_HEADERS 19971# include <stdlib.h> 19972# include <stddef.h> 19973#else 19974# if HAVE_STDLIB_H 19975# include <stdlib.h> 19976# endif 19977#endif 19978#if HAVE_SYS_TYPES_H 19979# include <sys/types.h> 19980#endif 19981/* sys/conf.h depends on param.h on FBSD at least */ 19982#if HAVE_SYS_PARAM_H 19983# include <sys/param.h> 19984#endif 19985/* Required for MAXSIG */ 19986#if HAVE_SIGNAL_H 19987# include <signal.h> 19988#endif 19989#if HAVE_SYS_SOCKET_H 19990# include <sys/socket.h> 19991#endif 19992#ifdef __APPLE__ 19993# define __APPLE_USE_RFC_3542 19994#endif 19995#if HAVE_NETINET_IN_H 19996# include <netinet/in.h> 19997#endif 19998#ifdef TIME_WITH_SYS_TIME 19999# include <sys/time.h> 20000# include <time.h> 20001#else 20002# ifdef HAVE_SYS_TIME_H 20003# include <sys/time.h> 20004# else 20005# include <time.h> 20006# endif 20007#endif /* TIME_WITH_SYS_TIME */ 20008 20009#if HAVE_NET_IF_H 20010# include <net/if.h> 20011#endif 20012 20013#if HAVE_NET_IF_VAR_H 20014# include <net/if_var.h> 20015#endif 20016 20017#if HAVE_SYS_UN_H 20018# include <sys/un.h> 20019#endif 20020#if HAVE_NETINET_IN_SYSTM_H 20021# include <netinet/in_systm.h> 20022#endif 20023#if HAVE_NETINET_IN_VAR_H 20024# include <netinet/in_var.h> 20025#endif 20026#if HAVE_NET_IF_DL_H 20027# include <net/if_dl.h> 20028#endif 20029#if HAVE_NET_NETOPT_H 20030# include <net/netopt.h> 20031#endif 20032#if HAVE_NET_ROUTE_H 20033# include <net/route.h> 20034#endif 20035#if HAVE_INET_ND_H 20036# include <inet/nd.h> 20037#endif 20038#if HAVE_ARPA_INET_H 20039# include <arpa/inet.h> 20040#endif 20041/* Required for IDRP */ 20042#if HAVE_NETINET_IP_ICMP_H 20043# include <netinet/ip_icmp.h> 20044#endif 20045 20046#if HAVE_NETINET6_IN6_H 20047#include <netinet6/in6.h> 20048#endif 20049#if HAVE_NETINET_IN6_VAR_H 20050#include <netinet/in6_var.h> 20051#endif 20052#if HAVE_NETINET_ICMP6_H 20053# include <netinet/icmp6.h> 20054#endif 20055#if HAVE_NETINET6_IN6_VAR_H 20056# include <netinet6/in6_var.h> 20057#endif 20058#if HAVE_NETINET6_ND6_H 20059# include <netinet6/nd6.h> 20060#endif 20061 20062" 20063if test "x$ac_cv_type_struct_in6_aliasreq" = xyes; then : 20064 20065cat >>confdefs.h <<_ACEOF 20066#define HAVE_STRUCT_IN6_ALIASREQ 1 20067_ACEOF 20068 20069 20070fi 20071ac_fn_c_check_type "$LINENO" "struct nd_opt_adv_interval" "ac_cv_type_struct_nd_opt_adv_interval" "#ifdef SUNOS_5 20072#define _XPG4_2 20073#define __EXTENSIONS__ 20074#endif 20075#include <stdio.h> 20076#if STDC_HEADERS 20077# include <stdlib.h> 20078# include <stddef.h> 20079#else 20080# if HAVE_STDLIB_H 20081# include <stdlib.h> 20082# endif 20083#endif 20084#if HAVE_SYS_TYPES_H 20085# include <sys/types.h> 20086#endif 20087/* sys/conf.h depends on param.h on FBSD at least */ 20088#if HAVE_SYS_PARAM_H 20089# include <sys/param.h> 20090#endif 20091/* Required for MAXSIG */ 20092#if HAVE_SIGNAL_H 20093# include <signal.h> 20094#endif 20095#if HAVE_SYS_SOCKET_H 20096# include <sys/socket.h> 20097#endif 20098#ifdef __APPLE__ 20099# define __APPLE_USE_RFC_3542 20100#endif 20101#if HAVE_NETINET_IN_H 20102# include <netinet/in.h> 20103#endif 20104#ifdef TIME_WITH_SYS_TIME 20105# include <sys/time.h> 20106# include <time.h> 20107#else 20108# ifdef HAVE_SYS_TIME_H 20109# include <sys/time.h> 20110# else 20111# include <time.h> 20112# endif 20113#endif /* TIME_WITH_SYS_TIME */ 20114 20115#if HAVE_NET_IF_H 20116# include <net/if.h> 20117#endif 20118 20119#if HAVE_NET_IF_VAR_H 20120# include <net/if_var.h> 20121#endif 20122 20123#if HAVE_SYS_UN_H 20124# include <sys/un.h> 20125#endif 20126#if HAVE_NETINET_IN_SYSTM_H 20127# include <netinet/in_systm.h> 20128#endif 20129#if HAVE_NETINET_IN_VAR_H 20130# include <netinet/in_var.h> 20131#endif 20132#if HAVE_NET_IF_DL_H 20133# include <net/if_dl.h> 20134#endif 20135#if HAVE_NET_NETOPT_H 20136# include <net/netopt.h> 20137#endif 20138#if HAVE_NET_ROUTE_H 20139# include <net/route.h> 20140#endif 20141#if HAVE_INET_ND_H 20142# include <inet/nd.h> 20143#endif 20144#if HAVE_ARPA_INET_H 20145# include <arpa/inet.h> 20146#endif 20147/* Required for IDRP */ 20148#if HAVE_NETINET_IP_ICMP_H 20149# include <netinet/ip_icmp.h> 20150#endif 20151 20152#if HAVE_NETINET6_IN6_H 20153#include <netinet6/in6.h> 20154#endif 20155#if HAVE_NETINET_IN6_VAR_H 20156#include <netinet/in6_var.h> 20157#endif 20158#if HAVE_NETINET_ICMP6_H 20159# include <netinet/icmp6.h> 20160#endif 20161#if HAVE_NETINET6_IN6_VAR_H 20162# include <netinet6/in6_var.h> 20163#endif 20164#if HAVE_NETINET6_ND6_H 20165# include <netinet6/nd6.h> 20166#endif 20167 20168" 20169if test "x$ac_cv_type_struct_nd_opt_adv_interval" = xyes; then : 20170 20171cat >>confdefs.h <<_ACEOF 20172#define HAVE_STRUCT_ND_OPT_ADV_INTERVAL 1 20173_ACEOF 20174 20175 20176fi 20177ac_fn_c_check_type "$LINENO" "struct rt_addrinfo" "ac_cv_type_struct_rt_addrinfo" "#ifdef SUNOS_5 20178#define _XPG4_2 20179#define __EXTENSIONS__ 20180#endif 20181#include <stdio.h> 20182#if STDC_HEADERS 20183# include <stdlib.h> 20184# include <stddef.h> 20185#else 20186# if HAVE_STDLIB_H 20187# include <stdlib.h> 20188# endif 20189#endif 20190#if HAVE_SYS_TYPES_H 20191# include <sys/types.h> 20192#endif 20193/* sys/conf.h depends on param.h on FBSD at least */ 20194#if HAVE_SYS_PARAM_H 20195# include <sys/param.h> 20196#endif 20197/* Required for MAXSIG */ 20198#if HAVE_SIGNAL_H 20199# include <signal.h> 20200#endif 20201#if HAVE_SYS_SOCKET_H 20202# include <sys/socket.h> 20203#endif 20204#ifdef __APPLE__ 20205# define __APPLE_USE_RFC_3542 20206#endif 20207#if HAVE_NETINET_IN_H 20208# include <netinet/in.h> 20209#endif 20210#ifdef TIME_WITH_SYS_TIME 20211# include <sys/time.h> 20212# include <time.h> 20213#else 20214# ifdef HAVE_SYS_TIME_H 20215# include <sys/time.h> 20216# else 20217# include <time.h> 20218# endif 20219#endif /* TIME_WITH_SYS_TIME */ 20220 20221#if HAVE_NET_IF_H 20222# include <net/if.h> 20223#endif 20224 20225#if HAVE_NET_IF_VAR_H 20226# include <net/if_var.h> 20227#endif 20228 20229#if HAVE_SYS_UN_H 20230# include <sys/un.h> 20231#endif 20232#if HAVE_NETINET_IN_SYSTM_H 20233# include <netinet/in_systm.h> 20234#endif 20235#if HAVE_NETINET_IN_VAR_H 20236# include <netinet/in_var.h> 20237#endif 20238#if HAVE_NET_IF_DL_H 20239# include <net/if_dl.h> 20240#endif 20241#if HAVE_NET_NETOPT_H 20242# include <net/netopt.h> 20243#endif 20244#if HAVE_NET_ROUTE_H 20245# include <net/route.h> 20246#endif 20247#if HAVE_INET_ND_H 20248# include <inet/nd.h> 20249#endif 20250#if HAVE_ARPA_INET_H 20251# include <arpa/inet.h> 20252#endif 20253/* Required for IDRP */ 20254#if HAVE_NETINET_IP_ICMP_H 20255# include <netinet/ip_icmp.h> 20256#endif 20257 20258#if HAVE_NETINET6_IN6_H 20259#include <netinet6/in6.h> 20260#endif 20261#if HAVE_NETINET_IN6_VAR_H 20262#include <netinet/in6_var.h> 20263#endif 20264#if HAVE_NETINET_ICMP6_H 20265# include <netinet/icmp6.h> 20266#endif 20267#if HAVE_NETINET6_IN6_VAR_H 20268# include <netinet6/in6_var.h> 20269#endif 20270#if HAVE_NETINET6_ND6_H 20271# include <netinet6/nd6.h> 20272#endif 20273 20274" 20275if test "x$ac_cv_type_struct_rt_addrinfo" = xyes; then : 20276 20277cat >>confdefs.h <<_ACEOF 20278#define HAVE_STRUCT_RT_ADDRINFO 1 20279_ACEOF 20280 20281 20282fi 20283ac_fn_c_check_type "$LINENO" "struct nd_opt_homeagent_info" "ac_cv_type_struct_nd_opt_homeagent_info" "#ifdef SUNOS_5 20284#define _XPG4_2 20285#define __EXTENSIONS__ 20286#endif 20287#include <stdio.h> 20288#if STDC_HEADERS 20289# include <stdlib.h> 20290# include <stddef.h> 20291#else 20292# if HAVE_STDLIB_H 20293# include <stdlib.h> 20294# endif 20295#endif 20296#if HAVE_SYS_TYPES_H 20297# include <sys/types.h> 20298#endif 20299/* sys/conf.h depends on param.h on FBSD at least */ 20300#if HAVE_SYS_PARAM_H 20301# include <sys/param.h> 20302#endif 20303/* Required for MAXSIG */ 20304#if HAVE_SIGNAL_H 20305# include <signal.h> 20306#endif 20307#if HAVE_SYS_SOCKET_H 20308# include <sys/socket.h> 20309#endif 20310#ifdef __APPLE__ 20311# define __APPLE_USE_RFC_3542 20312#endif 20313#if HAVE_NETINET_IN_H 20314# include <netinet/in.h> 20315#endif 20316#ifdef TIME_WITH_SYS_TIME 20317# include <sys/time.h> 20318# include <time.h> 20319#else 20320# ifdef HAVE_SYS_TIME_H 20321# include <sys/time.h> 20322# else 20323# include <time.h> 20324# endif 20325#endif /* TIME_WITH_SYS_TIME */ 20326 20327#if HAVE_NET_IF_H 20328# include <net/if.h> 20329#endif 20330 20331#if HAVE_NET_IF_VAR_H 20332# include <net/if_var.h> 20333#endif 20334 20335#if HAVE_SYS_UN_H 20336# include <sys/un.h> 20337#endif 20338#if HAVE_NETINET_IN_SYSTM_H 20339# include <netinet/in_systm.h> 20340#endif 20341#if HAVE_NETINET_IN_VAR_H 20342# include <netinet/in_var.h> 20343#endif 20344#if HAVE_NET_IF_DL_H 20345# include <net/if_dl.h> 20346#endif 20347#if HAVE_NET_NETOPT_H 20348# include <net/netopt.h> 20349#endif 20350#if HAVE_NET_ROUTE_H 20351# include <net/route.h> 20352#endif 20353#if HAVE_INET_ND_H 20354# include <inet/nd.h> 20355#endif 20356#if HAVE_ARPA_INET_H 20357# include <arpa/inet.h> 20358#endif 20359/* Required for IDRP */ 20360#if HAVE_NETINET_IP_ICMP_H 20361# include <netinet/ip_icmp.h> 20362#endif 20363 20364#if HAVE_NETINET6_IN6_H 20365#include <netinet6/in6.h> 20366#endif 20367#if HAVE_NETINET_IN6_VAR_H 20368#include <netinet/in6_var.h> 20369#endif 20370#if HAVE_NETINET_ICMP6_H 20371# include <netinet/icmp6.h> 20372#endif 20373#if HAVE_NETINET6_IN6_VAR_H 20374# include <netinet6/in6_var.h> 20375#endif 20376#if HAVE_NETINET6_ND6_H 20377# include <netinet6/nd6.h> 20378#endif 20379 20380" 20381if test "x$ac_cv_type_struct_nd_opt_homeagent_info" = xyes; then : 20382 20383cat >>confdefs.h <<_ACEOF 20384#define HAVE_STRUCT_ND_OPT_HOMEAGENT_INFO 1 20385_ACEOF 20386 20387 20388fi 20389ac_fn_c_check_type "$LINENO" "struct nd_opt_adv_interval" "ac_cv_type_struct_nd_opt_adv_interval" "#ifdef SUNOS_5 20390#define _XPG4_2 20391#define __EXTENSIONS__ 20392#endif 20393#include <stdio.h> 20394#if STDC_HEADERS 20395# include <stdlib.h> 20396# include <stddef.h> 20397#else 20398# if HAVE_STDLIB_H 20399# include <stdlib.h> 20400# endif 20401#endif 20402#if HAVE_SYS_TYPES_H 20403# include <sys/types.h> 20404#endif 20405/* sys/conf.h depends on param.h on FBSD at least */ 20406#if HAVE_SYS_PARAM_H 20407# include <sys/param.h> 20408#endif 20409/* Required for MAXSIG */ 20410#if HAVE_SIGNAL_H 20411# include <signal.h> 20412#endif 20413#if HAVE_SYS_SOCKET_H 20414# include <sys/socket.h> 20415#endif 20416#ifdef __APPLE__ 20417# define __APPLE_USE_RFC_3542 20418#endif 20419#if HAVE_NETINET_IN_H 20420# include <netinet/in.h> 20421#endif 20422#ifdef TIME_WITH_SYS_TIME 20423# include <sys/time.h> 20424# include <time.h> 20425#else 20426# ifdef HAVE_SYS_TIME_H 20427# include <sys/time.h> 20428# else 20429# include <time.h> 20430# endif 20431#endif /* TIME_WITH_SYS_TIME */ 20432 20433#if HAVE_NET_IF_H 20434# include <net/if.h> 20435#endif 20436 20437#if HAVE_NET_IF_VAR_H 20438# include <net/if_var.h> 20439#endif 20440 20441#if HAVE_SYS_UN_H 20442# include <sys/un.h> 20443#endif 20444#if HAVE_NETINET_IN_SYSTM_H 20445# include <netinet/in_systm.h> 20446#endif 20447#if HAVE_NETINET_IN_VAR_H 20448# include <netinet/in_var.h> 20449#endif 20450#if HAVE_NET_IF_DL_H 20451# include <net/if_dl.h> 20452#endif 20453#if HAVE_NET_NETOPT_H 20454# include <net/netopt.h> 20455#endif 20456#if HAVE_NET_ROUTE_H 20457# include <net/route.h> 20458#endif 20459#if HAVE_INET_ND_H 20460# include <inet/nd.h> 20461#endif 20462#if HAVE_ARPA_INET_H 20463# include <arpa/inet.h> 20464#endif 20465/* Required for IDRP */ 20466#if HAVE_NETINET_IP_ICMP_H 20467# include <netinet/ip_icmp.h> 20468#endif 20469 20470#if HAVE_NETINET6_IN6_H 20471#include <netinet6/in6.h> 20472#endif 20473#if HAVE_NETINET_IN6_VAR_H 20474#include <netinet/in6_var.h> 20475#endif 20476#if HAVE_NETINET_ICMP6_H 20477# include <netinet/icmp6.h> 20478#endif 20479#if HAVE_NETINET6_IN6_VAR_H 20480# include <netinet6/in6_var.h> 20481#endif 20482#if HAVE_NETINET6_ND6_H 20483# include <netinet6/nd6.h> 20484#endif 20485 20486" 20487if test "x$ac_cv_type_struct_nd_opt_adv_interval" = xyes; then : 20488 20489cat >>confdefs.h <<_ACEOF 20490#define HAVE_STRUCT_ND_OPT_ADV_INTERVAL 1 20491_ACEOF 20492 20493 20494fi 20495 20496 20497ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#ifdef SUNOS_5 20498#define _XPG4_2 20499#define __EXTENSIONS__ 20500#endif 20501#include <stdio.h> 20502#if STDC_HEADERS 20503# include <stdlib.h> 20504# include <stddef.h> 20505#else 20506# if HAVE_STDLIB_H 20507# include <stdlib.h> 20508# endif 20509#endif 20510#if HAVE_SYS_TYPES_H 20511# include <sys/types.h> 20512#endif 20513/* sys/conf.h depends on param.h on FBSD at least */ 20514#if HAVE_SYS_PARAM_H 20515# include <sys/param.h> 20516#endif 20517/* Required for MAXSIG */ 20518#if HAVE_SIGNAL_H 20519# include <signal.h> 20520#endif 20521#if HAVE_SYS_SOCKET_H 20522# include <sys/socket.h> 20523#endif 20524#ifdef __APPLE__ 20525# define __APPLE_USE_RFC_3542 20526#endif 20527#if HAVE_NETINET_IN_H 20528# include <netinet/in.h> 20529#endif 20530#ifdef TIME_WITH_SYS_TIME 20531# include <sys/time.h> 20532# include <time.h> 20533#else 20534# ifdef HAVE_SYS_TIME_H 20535# include <sys/time.h> 20536# else 20537# include <time.h> 20538# endif 20539#endif /* TIME_WITH_SYS_TIME */ 20540 20541#if HAVE_NET_IF_H 20542# include <net/if.h> 20543#endif 20544 20545#if HAVE_NET_IF_VAR_H 20546# include <net/if_var.h> 20547#endif 20548 20549#if HAVE_SYS_UN_H 20550# include <sys/un.h> 20551#endif 20552#if HAVE_NETINET_IN_SYSTM_H 20553# include <netinet/in_systm.h> 20554#endif 20555#if HAVE_NETINET_IN_VAR_H 20556# include <netinet/in_var.h> 20557#endif 20558#if HAVE_NET_IF_DL_H 20559# include <net/if_dl.h> 20560#endif 20561#if HAVE_NET_NETOPT_H 20562# include <net/netopt.h> 20563#endif 20564#if HAVE_NET_ROUTE_H 20565# include <net/route.h> 20566#endif 20567#if HAVE_INET_ND_H 20568# include <inet/nd.h> 20569#endif 20570#if HAVE_ARPA_INET_H 20571# include <arpa/inet.h> 20572#endif 20573/* Required for IDRP */ 20574#if HAVE_NETINET_IP_ICMP_H 20575# include <netinet/ip_icmp.h> 20576#endif 20577 20578#if HAVE_NETINET6_IN6_H 20579#include <netinet6/in6.h> 20580#endif 20581#if HAVE_NETINET_IN6_VAR_H 20582#include <netinet/in6_var.h> 20583#endif 20584#if HAVE_NETINET_ICMP6_H 20585# include <netinet/icmp6.h> 20586#endif 20587#if HAVE_NETINET6_IN6_VAR_H 20588# include <netinet6/in6_var.h> 20589#endif 20590#if HAVE_NETINET6_ND6_H 20591# include <netinet6/nd6.h> 20592#endif 20593 20594" 20595if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : 20596 20597cat >>confdefs.h <<_ACEOF 20598#define HAVE_STRUCT_SOCKADDR_SA_LEN 1 20599_ACEOF 20600 20601 20602fi 20603ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#ifdef SUNOS_5 20604#define _XPG4_2 20605#define __EXTENSIONS__ 20606#endif 20607#include <stdio.h> 20608#if STDC_HEADERS 20609# include <stdlib.h> 20610# include <stddef.h> 20611#else 20612# if HAVE_STDLIB_H 20613# include <stdlib.h> 20614# endif 20615#endif 20616#if HAVE_SYS_TYPES_H 20617# include <sys/types.h> 20618#endif 20619/* sys/conf.h depends on param.h on FBSD at least */ 20620#if HAVE_SYS_PARAM_H 20621# include <sys/param.h> 20622#endif 20623/* Required for MAXSIG */ 20624#if HAVE_SIGNAL_H 20625# include <signal.h> 20626#endif 20627#if HAVE_SYS_SOCKET_H 20628# include <sys/socket.h> 20629#endif 20630#ifdef __APPLE__ 20631# define __APPLE_USE_RFC_3542 20632#endif 20633#if HAVE_NETINET_IN_H 20634# include <netinet/in.h> 20635#endif 20636#ifdef TIME_WITH_SYS_TIME 20637# include <sys/time.h> 20638# include <time.h> 20639#else 20640# ifdef HAVE_SYS_TIME_H 20641# include <sys/time.h> 20642# else 20643# include <time.h> 20644# endif 20645#endif /* TIME_WITH_SYS_TIME */ 20646 20647#if HAVE_NET_IF_H 20648# include <net/if.h> 20649#endif 20650 20651#if HAVE_NET_IF_VAR_H 20652# include <net/if_var.h> 20653#endif 20654 20655#if HAVE_SYS_UN_H 20656# include <sys/un.h> 20657#endif 20658#if HAVE_NETINET_IN_SYSTM_H 20659# include <netinet/in_systm.h> 20660#endif 20661#if HAVE_NETINET_IN_VAR_H 20662# include <netinet/in_var.h> 20663#endif 20664#if HAVE_NET_IF_DL_H 20665# include <net/if_dl.h> 20666#endif 20667#if HAVE_NET_NETOPT_H 20668# include <net/netopt.h> 20669#endif 20670#if HAVE_NET_ROUTE_H 20671# include <net/route.h> 20672#endif 20673#if HAVE_INET_ND_H 20674# include <inet/nd.h> 20675#endif 20676#if HAVE_ARPA_INET_H 20677# include <arpa/inet.h> 20678#endif 20679/* Required for IDRP */ 20680#if HAVE_NETINET_IP_ICMP_H 20681# include <netinet/ip_icmp.h> 20682#endif 20683 20684#if HAVE_NETINET6_IN6_H 20685#include <netinet6/in6.h> 20686#endif 20687#if HAVE_NETINET_IN6_VAR_H 20688#include <netinet/in6_var.h> 20689#endif 20690#if HAVE_NETINET_ICMP6_H 20691# include <netinet/icmp6.h> 20692#endif 20693#if HAVE_NETINET6_IN6_VAR_H 20694# include <netinet6/in6_var.h> 20695#endif 20696#if HAVE_NETINET6_ND6_H 20697# include <netinet6/nd6.h> 20698#endif 20699 20700" 20701if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 20702 20703cat >>confdefs.h <<_ACEOF 20704#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1 20705_ACEOF 20706 20707 20708fi 20709ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#ifdef SUNOS_5 20710#define _XPG4_2 20711#define __EXTENSIONS__ 20712#endif 20713#include <stdio.h> 20714#if STDC_HEADERS 20715# include <stdlib.h> 20716# include <stddef.h> 20717#else 20718# if HAVE_STDLIB_H 20719# include <stdlib.h> 20720# endif 20721#endif 20722#if HAVE_SYS_TYPES_H 20723# include <sys/types.h> 20724#endif 20725/* sys/conf.h depends on param.h on FBSD at least */ 20726#if HAVE_SYS_PARAM_H 20727# include <sys/param.h> 20728#endif 20729/* Required for MAXSIG */ 20730#if HAVE_SIGNAL_H 20731# include <signal.h> 20732#endif 20733#if HAVE_SYS_SOCKET_H 20734# include <sys/socket.h> 20735#endif 20736#ifdef __APPLE__ 20737# define __APPLE_USE_RFC_3542 20738#endif 20739#if HAVE_NETINET_IN_H 20740# include <netinet/in.h> 20741#endif 20742#ifdef TIME_WITH_SYS_TIME 20743# include <sys/time.h> 20744# include <time.h> 20745#else 20746# ifdef HAVE_SYS_TIME_H 20747# include <sys/time.h> 20748# else 20749# include <time.h> 20750# endif 20751#endif /* TIME_WITH_SYS_TIME */ 20752 20753#if HAVE_NET_IF_H 20754# include <net/if.h> 20755#endif 20756 20757#if HAVE_NET_IF_VAR_H 20758# include <net/if_var.h> 20759#endif 20760 20761#if HAVE_SYS_UN_H 20762# include <sys/un.h> 20763#endif 20764#if HAVE_NETINET_IN_SYSTM_H 20765# include <netinet/in_systm.h> 20766#endif 20767#if HAVE_NETINET_IN_VAR_H 20768# include <netinet/in_var.h> 20769#endif 20770#if HAVE_NET_IF_DL_H 20771# include <net/if_dl.h> 20772#endif 20773#if HAVE_NET_NETOPT_H 20774# include <net/netopt.h> 20775#endif 20776#if HAVE_NET_ROUTE_H 20777# include <net/route.h> 20778#endif 20779#if HAVE_INET_ND_H 20780# include <inet/nd.h> 20781#endif 20782#if HAVE_ARPA_INET_H 20783# include <arpa/inet.h> 20784#endif 20785/* Required for IDRP */ 20786#if HAVE_NETINET_IP_ICMP_H 20787# include <netinet/ip_icmp.h> 20788#endif 20789 20790#if HAVE_NETINET6_IN6_H 20791#include <netinet6/in6.h> 20792#endif 20793#if HAVE_NETINET_IN6_VAR_H 20794#include <netinet/in6_var.h> 20795#endif 20796#if HAVE_NETINET_ICMP6_H 20797# include <netinet/icmp6.h> 20798#endif 20799#if HAVE_NETINET6_IN6_VAR_H 20800# include <netinet6/in6_var.h> 20801#endif 20802#if HAVE_NETINET6_ND6_H 20803# include <netinet6/nd6.h> 20804#endif 20805 20806" 20807if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then : 20808 20809cat >>confdefs.h <<_ACEOF 20810#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 20811_ACEOF 20812 20813 20814fi 20815ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "#ifdef SUNOS_5 20816#define _XPG4_2 20817#define __EXTENSIONS__ 20818#endif 20819#include <stdio.h> 20820#if STDC_HEADERS 20821# include <stdlib.h> 20822# include <stddef.h> 20823#else 20824# if HAVE_STDLIB_H 20825# include <stdlib.h> 20826# endif 20827#endif 20828#if HAVE_SYS_TYPES_H 20829# include <sys/types.h> 20830#endif 20831/* sys/conf.h depends on param.h on FBSD at least */ 20832#if HAVE_SYS_PARAM_H 20833# include <sys/param.h> 20834#endif 20835/* Required for MAXSIG */ 20836#if HAVE_SIGNAL_H 20837# include <signal.h> 20838#endif 20839#if HAVE_SYS_SOCKET_H 20840# include <sys/socket.h> 20841#endif 20842#ifdef __APPLE__ 20843# define __APPLE_USE_RFC_3542 20844#endif 20845#if HAVE_NETINET_IN_H 20846# include <netinet/in.h> 20847#endif 20848#ifdef TIME_WITH_SYS_TIME 20849# include <sys/time.h> 20850# include <time.h> 20851#else 20852# ifdef HAVE_SYS_TIME_H 20853# include <sys/time.h> 20854# else 20855# include <time.h> 20856# endif 20857#endif /* TIME_WITH_SYS_TIME */ 20858 20859#if HAVE_NET_IF_H 20860# include <net/if.h> 20861#endif 20862 20863#if HAVE_NET_IF_VAR_H 20864# include <net/if_var.h> 20865#endif 20866 20867#if HAVE_SYS_UN_H 20868# include <sys/un.h> 20869#endif 20870#if HAVE_NETINET_IN_SYSTM_H 20871# include <netinet/in_systm.h> 20872#endif 20873#if HAVE_NETINET_IN_VAR_H 20874# include <netinet/in_var.h> 20875#endif 20876#if HAVE_NET_IF_DL_H 20877# include <net/if_dl.h> 20878#endif 20879#if HAVE_NET_NETOPT_H 20880# include <net/netopt.h> 20881#endif 20882#if HAVE_NET_ROUTE_H 20883# include <net/route.h> 20884#endif 20885#if HAVE_INET_ND_H 20886# include <inet/nd.h> 20887#endif 20888#if HAVE_ARPA_INET_H 20889# include <arpa/inet.h> 20890#endif 20891/* Required for IDRP */ 20892#if HAVE_NETINET_IP_ICMP_H 20893# include <netinet/ip_icmp.h> 20894#endif 20895 20896#if HAVE_NETINET6_IN6_H 20897#include <netinet6/in6.h> 20898#endif 20899#if HAVE_NETINET_IN6_VAR_H 20900#include <netinet/in6_var.h> 20901#endif 20902#if HAVE_NETINET_ICMP6_H 20903# include <netinet/icmp6.h> 20904#endif 20905#if HAVE_NETINET6_IN6_VAR_H 20906# include <netinet6/in6_var.h> 20907#endif 20908#if HAVE_NETINET6_ND6_H 20909# include <netinet6/nd6.h> 20910#endif 20911 20912" 20913if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then : 20914 20915cat >>confdefs.h <<_ACEOF 20916#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 20917_ACEOF 20918 20919 20920fi 20921ac_fn_c_check_member "$LINENO" "struct sockaddr_dl" "sdl_len" "ac_cv_member_struct_sockaddr_dl_sdl_len" "#ifdef SUNOS_5 20922#define _XPG4_2 20923#define __EXTENSIONS__ 20924#endif 20925#include <stdio.h> 20926#if STDC_HEADERS 20927# include <stdlib.h> 20928# include <stddef.h> 20929#else 20930# if HAVE_STDLIB_H 20931# include <stdlib.h> 20932# endif 20933#endif 20934#if HAVE_SYS_TYPES_H 20935# include <sys/types.h> 20936#endif 20937/* sys/conf.h depends on param.h on FBSD at least */ 20938#if HAVE_SYS_PARAM_H 20939# include <sys/param.h> 20940#endif 20941/* Required for MAXSIG */ 20942#if HAVE_SIGNAL_H 20943# include <signal.h> 20944#endif 20945#if HAVE_SYS_SOCKET_H 20946# include <sys/socket.h> 20947#endif 20948#ifdef __APPLE__ 20949# define __APPLE_USE_RFC_3542 20950#endif 20951#if HAVE_NETINET_IN_H 20952# include <netinet/in.h> 20953#endif 20954#ifdef TIME_WITH_SYS_TIME 20955# include <sys/time.h> 20956# include <time.h> 20957#else 20958# ifdef HAVE_SYS_TIME_H 20959# include <sys/time.h> 20960# else 20961# include <time.h> 20962# endif 20963#endif /* TIME_WITH_SYS_TIME */ 20964 20965#if HAVE_NET_IF_H 20966# include <net/if.h> 20967#endif 20968 20969#if HAVE_NET_IF_VAR_H 20970# include <net/if_var.h> 20971#endif 20972 20973#if HAVE_SYS_UN_H 20974# include <sys/un.h> 20975#endif 20976#if HAVE_NETINET_IN_SYSTM_H 20977# include <netinet/in_systm.h> 20978#endif 20979#if HAVE_NETINET_IN_VAR_H 20980# include <netinet/in_var.h> 20981#endif 20982#if HAVE_NET_IF_DL_H 20983# include <net/if_dl.h> 20984#endif 20985#if HAVE_NET_NETOPT_H 20986# include <net/netopt.h> 20987#endif 20988#if HAVE_NET_ROUTE_H 20989# include <net/route.h> 20990#endif 20991#if HAVE_INET_ND_H 20992# include <inet/nd.h> 20993#endif 20994#if HAVE_ARPA_INET_H 20995# include <arpa/inet.h> 20996#endif 20997/* Required for IDRP */ 20998#if HAVE_NETINET_IP_ICMP_H 20999# include <netinet/ip_icmp.h> 21000#endif 21001 21002#if HAVE_NETINET6_IN6_H 21003#include <netinet6/in6.h> 21004#endif 21005#if HAVE_NETINET_IN6_VAR_H 21006#include <netinet/in6_var.h> 21007#endif 21008#if HAVE_NETINET_ICMP6_H 21009# include <netinet/icmp6.h> 21010#endif 21011#if HAVE_NETINET6_IN6_VAR_H 21012# include <netinet6/in6_var.h> 21013#endif 21014#if HAVE_NETINET6_ND6_H 21015# include <netinet6/nd6.h> 21016#endif 21017 21018" 21019if test "x$ac_cv_member_struct_sockaddr_dl_sdl_len" = xyes; then : 21020 21021cat >>confdefs.h <<_ACEOF 21022#define HAVE_STRUCT_SOCKADDR_DL_SDL_LEN 1 21023_ACEOF 21024 21025 21026fi 21027ac_fn_c_check_member "$LINENO" "struct if6_aliasreq" "ifra_lifetime" "ac_cv_member_struct_if6_aliasreq_ifra_lifetime" "#ifdef SUNOS_5 21028#define _XPG4_2 21029#define __EXTENSIONS__ 21030#endif 21031#include <stdio.h> 21032#if STDC_HEADERS 21033# include <stdlib.h> 21034# include <stddef.h> 21035#else 21036# if HAVE_STDLIB_H 21037# include <stdlib.h> 21038# endif 21039#endif 21040#if HAVE_SYS_TYPES_H 21041# include <sys/types.h> 21042#endif 21043/* sys/conf.h depends on param.h on FBSD at least */ 21044#if HAVE_SYS_PARAM_H 21045# include <sys/param.h> 21046#endif 21047/* Required for MAXSIG */ 21048#if HAVE_SIGNAL_H 21049# include <signal.h> 21050#endif 21051#if HAVE_SYS_SOCKET_H 21052# include <sys/socket.h> 21053#endif 21054#ifdef __APPLE__ 21055# define __APPLE_USE_RFC_3542 21056#endif 21057#if HAVE_NETINET_IN_H 21058# include <netinet/in.h> 21059#endif 21060#ifdef TIME_WITH_SYS_TIME 21061# include <sys/time.h> 21062# include <time.h> 21063#else 21064# ifdef HAVE_SYS_TIME_H 21065# include <sys/time.h> 21066# else 21067# include <time.h> 21068# endif 21069#endif /* TIME_WITH_SYS_TIME */ 21070 21071#if HAVE_NET_IF_H 21072# include <net/if.h> 21073#endif 21074 21075#if HAVE_NET_IF_VAR_H 21076# include <net/if_var.h> 21077#endif 21078 21079#if HAVE_SYS_UN_H 21080# include <sys/un.h> 21081#endif 21082#if HAVE_NETINET_IN_SYSTM_H 21083# include <netinet/in_systm.h> 21084#endif 21085#if HAVE_NETINET_IN_VAR_H 21086# include <netinet/in_var.h> 21087#endif 21088#if HAVE_NET_IF_DL_H 21089# include <net/if_dl.h> 21090#endif 21091#if HAVE_NET_NETOPT_H 21092# include <net/netopt.h> 21093#endif 21094#if HAVE_NET_ROUTE_H 21095# include <net/route.h> 21096#endif 21097#if HAVE_INET_ND_H 21098# include <inet/nd.h> 21099#endif 21100#if HAVE_ARPA_INET_H 21101# include <arpa/inet.h> 21102#endif 21103/* Required for IDRP */ 21104#if HAVE_NETINET_IP_ICMP_H 21105# include <netinet/ip_icmp.h> 21106#endif 21107 21108#if HAVE_NETINET6_IN6_H 21109#include <netinet6/in6.h> 21110#endif 21111#if HAVE_NETINET_IN6_VAR_H 21112#include <netinet/in6_var.h> 21113#endif 21114#if HAVE_NETINET_ICMP6_H 21115# include <netinet/icmp6.h> 21116#endif 21117#if HAVE_NETINET6_IN6_VAR_H 21118# include <netinet6/in6_var.h> 21119#endif 21120#if HAVE_NETINET6_ND6_H 21121# include <netinet6/nd6.h> 21122#endif 21123 21124" 21125if test "x$ac_cv_member_struct_if6_aliasreq_ifra_lifetime" = xyes; then : 21126 21127cat >>confdefs.h <<_ACEOF 21128#define HAVE_STRUCT_IF6_ALIASREQ_IFRA_LIFETIME 1 21129_ACEOF 21130 21131 21132fi 21133ac_fn_c_check_member "$LINENO" "struct nd_opt_adv_interval" "nd_opt_ai_type" "ac_cv_member_struct_nd_opt_adv_interval_nd_opt_ai_type" "#ifdef SUNOS_5 21134#define _XPG4_2 21135#define __EXTENSIONS__ 21136#endif 21137#include <stdio.h> 21138#if STDC_HEADERS 21139# include <stdlib.h> 21140# include <stddef.h> 21141#else 21142# if HAVE_STDLIB_H 21143# include <stdlib.h> 21144# endif 21145#endif 21146#if HAVE_SYS_TYPES_H 21147# include <sys/types.h> 21148#endif 21149/* sys/conf.h depends on param.h on FBSD at least */ 21150#if HAVE_SYS_PARAM_H 21151# include <sys/param.h> 21152#endif 21153/* Required for MAXSIG */ 21154#if HAVE_SIGNAL_H 21155# include <signal.h> 21156#endif 21157#if HAVE_SYS_SOCKET_H 21158# include <sys/socket.h> 21159#endif 21160#ifdef __APPLE__ 21161# define __APPLE_USE_RFC_3542 21162#endif 21163#if HAVE_NETINET_IN_H 21164# include <netinet/in.h> 21165#endif 21166#ifdef TIME_WITH_SYS_TIME 21167# include <sys/time.h> 21168# include <time.h> 21169#else 21170# ifdef HAVE_SYS_TIME_H 21171# include <sys/time.h> 21172# else 21173# include <time.h> 21174# endif 21175#endif /* TIME_WITH_SYS_TIME */ 21176 21177#if HAVE_NET_IF_H 21178# include <net/if.h> 21179#endif 21180 21181#if HAVE_NET_IF_VAR_H 21182# include <net/if_var.h> 21183#endif 21184 21185#if HAVE_SYS_UN_H 21186# include <sys/un.h> 21187#endif 21188#if HAVE_NETINET_IN_SYSTM_H 21189# include <netinet/in_systm.h> 21190#endif 21191#if HAVE_NETINET_IN_VAR_H 21192# include <netinet/in_var.h> 21193#endif 21194#if HAVE_NET_IF_DL_H 21195# include <net/if_dl.h> 21196#endif 21197#if HAVE_NET_NETOPT_H 21198# include <net/netopt.h> 21199#endif 21200#if HAVE_NET_ROUTE_H 21201# include <net/route.h> 21202#endif 21203#if HAVE_INET_ND_H 21204# include <inet/nd.h> 21205#endif 21206#if HAVE_ARPA_INET_H 21207# include <arpa/inet.h> 21208#endif 21209/* Required for IDRP */ 21210#if HAVE_NETINET_IP_ICMP_H 21211# include <netinet/ip_icmp.h> 21212#endif 21213 21214#if HAVE_NETINET6_IN6_H 21215#include <netinet6/in6.h> 21216#endif 21217#if HAVE_NETINET_IN6_VAR_H 21218#include <netinet/in6_var.h> 21219#endif 21220#if HAVE_NETINET_ICMP6_H 21221# include <netinet/icmp6.h> 21222#endif 21223#if HAVE_NETINET6_IN6_VAR_H 21224# include <netinet6/in6_var.h> 21225#endif 21226#if HAVE_NETINET6_ND6_H 21227# include <netinet6/nd6.h> 21228#endif 21229 21230" 21231if test "x$ac_cv_member_struct_nd_opt_adv_interval_nd_opt_ai_type" = xyes; then : 21232 21233cat >>confdefs.h <<_ACEOF 21234#define HAVE_STRUCT_ND_OPT_ADV_INTERVAL_ND_OPT_AI_TYPE 1 21235_ACEOF 21236 21237 21238fi 21239 21240 21241ac_fn_c_check_type "$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" "#ifdef SUNOS_5 21242#define _XPG4_2 21243#define __EXTENSIONS__ 21244#endif 21245#include <stdio.h> 21246#if STDC_HEADERS 21247# include <stdlib.h> 21248# include <stddef.h> 21249#else 21250# if HAVE_STDLIB_H 21251# include <stdlib.h> 21252# endif 21253#endif 21254#if HAVE_SYS_TYPES_H 21255# include <sys/types.h> 21256#endif 21257/* sys/conf.h depends on param.h on FBSD at least */ 21258#if HAVE_SYS_PARAM_H 21259# include <sys/param.h> 21260#endif 21261/* Required for MAXSIG */ 21262#if HAVE_SIGNAL_H 21263# include <signal.h> 21264#endif 21265#if HAVE_SYS_SOCKET_H 21266# include <sys/socket.h> 21267#endif 21268#ifdef __APPLE__ 21269# define __APPLE_USE_RFC_3542 21270#endif 21271#if HAVE_NETINET_IN_H 21272# include <netinet/in.h> 21273#endif 21274#ifdef TIME_WITH_SYS_TIME 21275# include <sys/time.h> 21276# include <time.h> 21277#else 21278# ifdef HAVE_SYS_TIME_H 21279# include <sys/time.h> 21280# else 21281# include <time.h> 21282# endif 21283#endif /* TIME_WITH_SYS_TIME */ 21284 21285#if HAVE_NET_IF_H 21286# include <net/if.h> 21287#endif 21288 21289#if HAVE_NET_IF_VAR_H 21290# include <net/if_var.h> 21291#endif 21292 21293#if HAVE_SYS_UN_H 21294# include <sys/un.h> 21295#endif 21296#if HAVE_NETINET_IN_SYSTM_H 21297# include <netinet/in_systm.h> 21298#endif 21299#if HAVE_NETINET_IN_VAR_H 21300# include <netinet/in_var.h> 21301#endif 21302#if HAVE_NET_IF_DL_H 21303# include <net/if_dl.h> 21304#endif 21305#if HAVE_NET_NETOPT_H 21306# include <net/netopt.h> 21307#endif 21308#if HAVE_NET_ROUTE_H 21309# include <net/route.h> 21310#endif 21311#if HAVE_INET_ND_H 21312# include <inet/nd.h> 21313#endif 21314#if HAVE_ARPA_INET_H 21315# include <arpa/inet.h> 21316#endif 21317/* Required for IDRP */ 21318#if HAVE_NETINET_IP_ICMP_H 21319# include <netinet/ip_icmp.h> 21320#endif 21321 21322#if HAVE_NETINET6_IN6_H 21323#include <netinet6/in6.h> 21324#endif 21325#if HAVE_NETINET_IN6_VAR_H 21326#include <netinet/in6_var.h> 21327#endif 21328#if HAVE_NETINET_ICMP6_H 21329# include <netinet/icmp6.h> 21330#endif 21331#if HAVE_NETINET6_IN6_VAR_H 21332# include <netinet6/in6_var.h> 21333#endif 21334#if HAVE_NETINET6_ND6_H 21335# include <netinet6/nd6.h> 21336#endif 21337 21338" 21339if test "x$ac_cv_type_struct_in_pktinfo" = xyes; then : 21340 21341cat >>confdefs.h <<_ACEOF 21342#define HAVE_STRUCT_IN_PKTINFO 1 21343_ACEOF 21344 21345ac_fn_c_check_type "$LINENO" "struct icmphdr" "ac_cv_type_struct_icmphdr" "#ifdef SUNOS_5 21346#define _XPG4_2 21347#define __EXTENSIONS__ 21348#endif 21349#include <stdio.h> 21350#if STDC_HEADERS 21351# include <stdlib.h> 21352# include <stddef.h> 21353#else 21354# if HAVE_STDLIB_H 21355# include <stdlib.h> 21356# endif 21357#endif 21358#if HAVE_SYS_TYPES_H 21359# include <sys/types.h> 21360#endif 21361/* sys/conf.h depends on param.h on FBSD at least */ 21362#if HAVE_SYS_PARAM_H 21363# include <sys/param.h> 21364#endif 21365/* Required for MAXSIG */ 21366#if HAVE_SIGNAL_H 21367# include <signal.h> 21368#endif 21369#if HAVE_SYS_SOCKET_H 21370# include <sys/socket.h> 21371#endif 21372#ifdef __APPLE__ 21373# define __APPLE_USE_RFC_3542 21374#endif 21375#if HAVE_NETINET_IN_H 21376# include <netinet/in.h> 21377#endif 21378#ifdef TIME_WITH_SYS_TIME 21379# include <sys/time.h> 21380# include <time.h> 21381#else 21382# ifdef HAVE_SYS_TIME_H 21383# include <sys/time.h> 21384# else 21385# include <time.h> 21386# endif 21387#endif /* TIME_WITH_SYS_TIME */ 21388 21389#if HAVE_NET_IF_H 21390# include <net/if.h> 21391#endif 21392 21393#if HAVE_NET_IF_VAR_H 21394# include <net/if_var.h> 21395#endif 21396 21397#if HAVE_SYS_UN_H 21398# include <sys/un.h> 21399#endif 21400#if HAVE_NETINET_IN_SYSTM_H 21401# include <netinet/in_systm.h> 21402#endif 21403#if HAVE_NETINET_IN_VAR_H 21404# include <netinet/in_var.h> 21405#endif 21406#if HAVE_NET_IF_DL_H 21407# include <net/if_dl.h> 21408#endif 21409#if HAVE_NET_NETOPT_H 21410# include <net/netopt.h> 21411#endif 21412#if HAVE_NET_ROUTE_H 21413# include <net/route.h> 21414#endif 21415#if HAVE_INET_ND_H 21416# include <inet/nd.h> 21417#endif 21418#if HAVE_ARPA_INET_H 21419# include <arpa/inet.h> 21420#endif 21421/* Required for IDRP */ 21422#if HAVE_NETINET_IP_ICMP_H 21423# include <netinet/ip_icmp.h> 21424#endif 21425 21426#if HAVE_NETINET6_IN6_H 21427#include <netinet6/in6.h> 21428#endif 21429#if HAVE_NETINET_IN6_VAR_H 21430#include <netinet/in6_var.h> 21431#endif 21432#if HAVE_NETINET_ICMP6_H 21433# include <netinet/icmp6.h> 21434#endif 21435#if HAVE_NETINET6_IN6_VAR_H 21436# include <netinet6/in6_var.h> 21437#endif 21438#if HAVE_NETINET6_ND6_H 21439# include <netinet6/nd6.h> 21440#endif 21441 21442" 21443if test "x$ac_cv_type_struct_icmphdr" = xyes; then : 21444 21445cat >>confdefs.h <<_ACEOF 21446#define HAVE_STRUCT_ICMPHDR 1 21447_ACEOF 21448 21449if test "${enable_irdp}" != "no"; then 21450 21451$as_echo "#define HAVE_IRDP /**/" >>confdefs.h 21452 21453 fi 21454else 21455 if test "${enable_irdp}" = "yes"; then 21456 as_fn_error $? "'IRDP requires in_pktinfo at the moment!'" "$LINENO" 5 21457 fi 21458fi 21459 21460else 21461 if test "${enable_irdp}" = "yes"; then 21462 as_fn_error $? "'IRDP requires in_pktinfo at the moment!'" "$LINENO" 5 21463 fi 21464fi 21465 21466 21467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_PKTINFO" >&5 21468$as_echo_n "checking for IP_PKTINFO... " >&6; } 21469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21470/* end confdefs.h. */ 21471#include <netdb.h> 21472int 21473main () 21474{ 21475 21476 int opt = IP_PKTINFO; 21477 21478 ; 21479 return 0; 21480} 21481_ACEOF 21482if ac_fn_c_try_compile "$LINENO"; then : 21483 21484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21485$as_echo "yes" >&6; } 21486 21487$as_echo "#define HAVE_IP_PKTINFO 1" >>confdefs.h 21488 21489 21490else 21491 21492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21493$as_echo "no" >&6; } 21494 21495fi 21496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21497 21498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_RECVDSTADDR" >&5 21499$as_echo_n "checking for IP_RECVDSTADDR... " >&6; } 21500cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21501/* end confdefs.h. */ 21502#include <netinet/in.h> 21503int 21504main () 21505{ 21506 21507 int opt = IP_RECVDSTADDR; 21508 21509 ; 21510 return 0; 21511} 21512_ACEOF 21513if ac_fn_c_try_compile "$LINENO"; then : 21514 21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21516$as_echo "yes" >&6; } 21517 21518$as_echo "#define HAVE_IP_RECVDSTADDR 1" >>confdefs.h 21519 21520 21521else 21522 21523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21524$as_echo "no" >&6; } 21525 21526fi 21527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21528 21529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_RECVIF" >&5 21530$as_echo_n "checking for IP_RECVIF... " >&6; } 21531cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21532/* end confdefs.h. */ 21533#include <netinet/in.h> 21534int 21535main () 21536{ 21537 21538 int opt = IP_RECVIF; 21539 21540 ; 21541 return 0; 21542} 21543_ACEOF 21544if ac_fn_c_try_compile "$LINENO"; then : 21545 21546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21547$as_echo "yes" >&6; } 21548 21549$as_echo "#define HAVE_IP_RECVIF 1" >>confdefs.h 21550 21551 21552else 21553 21554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21555$as_echo "no" >&6; } 21556 21557fi 21558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21559 21560if test "${enable_rusage}" != "no"; then 21561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getrusage is available" >&5 21562$as_echo_n "checking whether getrusage is available... " >&6; } 21563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21564/* end confdefs.h. */ 21565#include <sys/resource.h> 21566int 21567main () 21568{ 21569struct rusage ac_x; getrusage (RUSAGE_SELF, &ac_x); 21570 ; 21571 return 0; 21572} 21573_ACEOF 21574if ac_fn_c_try_compile "$LINENO"; then : 21575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21576$as_echo "yes" >&6; } 21577 21578$as_echo "#define HAVE_RUSAGE /**/" >>confdefs.h 21579 21580else 21581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21582$as_echo "no" >&6; } 21583fi 21584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21585fi 21586 21587ac_fn_c_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#ifdef SUNOS_5 21588#define _XPG4_2 21589#define __EXTENSIONS__ 21590#endif 21591#include <stdio.h> 21592#if STDC_HEADERS 21593# include <stdlib.h> 21594# include <stddef.h> 21595#else 21596# if HAVE_STDLIB_H 21597# include <stdlib.h> 21598# endif 21599#endif 21600#if HAVE_SYS_TYPES_H 21601# include <sys/types.h> 21602#endif 21603/* sys/conf.h depends on param.h on FBSD at least */ 21604#if HAVE_SYS_PARAM_H 21605# include <sys/param.h> 21606#endif 21607/* Required for MAXSIG */ 21608#if HAVE_SIGNAL_H 21609# include <signal.h> 21610#endif 21611#if HAVE_SYS_SOCKET_H 21612# include <sys/socket.h> 21613#endif 21614#ifdef __APPLE__ 21615# define __APPLE_USE_RFC_3542 21616#endif 21617#if HAVE_NETINET_IN_H 21618# include <netinet/in.h> 21619#endif 21620#ifdef TIME_WITH_SYS_TIME 21621# include <sys/time.h> 21622# include <time.h> 21623#else 21624# ifdef HAVE_SYS_TIME_H 21625# include <sys/time.h> 21626# else 21627# include <time.h> 21628# endif 21629#endif /* TIME_WITH_SYS_TIME */ 21630 21631#if HAVE_NET_IF_H 21632# include <net/if.h> 21633#endif 21634 21635#if HAVE_NET_IF_VAR_H 21636# include <net/if_var.h> 21637#endif 21638 21639#if HAVE_SYS_UN_H 21640# include <sys/un.h> 21641#endif 21642#if HAVE_NETINET_IN_SYSTM_H 21643# include <netinet/in_systm.h> 21644#endif 21645#if HAVE_NETINET_IN_VAR_H 21646# include <netinet/in_var.h> 21647#endif 21648#if HAVE_NET_IF_DL_H 21649# include <net/if_dl.h> 21650#endif 21651#if HAVE_NET_NETOPT_H 21652# include <net/netopt.h> 21653#endif 21654#if HAVE_NET_ROUTE_H 21655# include <net/route.h> 21656#endif 21657#if HAVE_INET_ND_H 21658# include <inet/nd.h> 21659#endif 21660#if HAVE_ARPA_INET_H 21661# include <arpa/inet.h> 21662#endif 21663/* Required for IDRP */ 21664#if HAVE_NETINET_IP_ICMP_H 21665# include <netinet/ip_icmp.h> 21666#endif 21667 21668#if HAVE_NETINET6_IN6_H 21669#include <netinet6/in6.h> 21670#endif 21671#if HAVE_NETINET_IN6_VAR_H 21672#include <netinet/in6_var.h> 21673#endif 21674#if HAVE_NETINET_ICMP6_H 21675# include <netinet/icmp6.h> 21676#endif 21677#if HAVE_NETINET6_IN6_VAR_H 21678# include <netinet6/in6_var.h> 21679#endif 21680#if HAVE_NETINET6_ND6_H 21681# include <netinet6/nd6.h> 21682#endif 21683 21684" 21685if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes; then : 21686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 21687$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 21688if ${ac_cv_lib_rt_clock_gettime+:} false; then : 21689 $as_echo_n "(cached) " >&6 21690else 21691 ac_check_lib_save_LIBS=$LIBS 21692LIBS="-lrt $LIBS" 21693cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21694/* end confdefs.h. */ 21695 21696/* Override any GCC internal prototype to avoid an error. 21697 Use char because int might match the return type of a GCC 21698 builtin and then its argument prototype would still apply. */ 21699#ifdef __cplusplus 21700extern "C" 21701#endif 21702char clock_gettime (); 21703int 21704main () 21705{ 21706return clock_gettime (); 21707 ; 21708 return 0; 21709} 21710_ACEOF 21711if ac_fn_c_try_link "$LINENO"; then : 21712 ac_cv_lib_rt_clock_gettime=yes 21713else 21714 ac_cv_lib_rt_clock_gettime=no 21715fi 21716rm -f core conftest.err conftest.$ac_objext \ 21717 conftest$ac_exeext conftest.$ac_ext 21718LIBS=$ac_check_lib_save_LIBS 21719fi 21720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 21721$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 21722if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 21723 LIBS="$LIBS -lrt" 21724fi 21725 21726 21727$as_echo "#define HAVE_CLOCK_MONOTONIC /**/" >>confdefs.h 21728 21729 21730else 21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21732$as_echo "no" >&6; } 21733fi 21734 21735 21736if test "${enable_capabilities}" != "no"; then 21737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prctl PR_SET_KEEPCAPS is available" >&5 21738$as_echo_n "checking whether prctl PR_SET_KEEPCAPS is available... " >&6; } 21739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21740/* end confdefs.h. */ 21741#include <sys/prctl.h> 21742int 21743main () 21744{ 21745prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0); 21746 ; 21747 return 0; 21748} 21749_ACEOF 21750if ac_fn_c_try_compile "$LINENO"; then : 21751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21752$as_echo "yes" >&6; } 21753 21754$as_echo "#define HAVE_PR_SET_KEEPCAPS /**/" >>confdefs.h 21755 21756 quagga_ac_keepcaps="yes" 21757else 21758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21759$as_echo "no" >&6; } 21760 21761fi 21762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21763 if test x"${quagga_ac_keepcaps}" = x"yes"; then 21764 for ac_header in sys/capability.h 21765do : 21766 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default" 21767if test "x$ac_cv_header_sys_capability_h" = xyes; then : 21768 cat >>confdefs.h <<_ACEOF 21769#define HAVE_SYS_CAPABILITY_H 1 21770_ACEOF 21771 21772fi 21773 21774done 21775 21776 fi 21777 if test x"${ac_cv_header_sys_capability_h}" = x"yes"; then 21778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5 21779$as_echo_n "checking for cap_init in -lcap... " >&6; } 21780if ${ac_cv_lib_cap_cap_init+:} false; then : 21781 $as_echo_n "(cached) " >&6 21782else 21783 ac_check_lib_save_LIBS=$LIBS 21784LIBS="-lcap $LIBS" 21785cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21786/* end confdefs.h. */ 21787 21788/* Override any GCC internal prototype to avoid an error. 21789 Use char because int might match the return type of a GCC 21790 builtin and then its argument prototype would still apply. */ 21791#ifdef __cplusplus 21792extern "C" 21793#endif 21794char cap_init (); 21795int 21796main () 21797{ 21798return cap_init (); 21799 ; 21800 return 0; 21801} 21802_ACEOF 21803if ac_fn_c_try_link "$LINENO"; then : 21804 ac_cv_lib_cap_cap_init=yes 21805else 21806 ac_cv_lib_cap_cap_init=no 21807fi 21808rm -f core conftest.err conftest.$ac_objext \ 21809 conftest$ac_exeext conftest.$ac_ext 21810LIBS=$ac_check_lib_save_LIBS 21811fi 21812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5 21813$as_echo "$ac_cv_lib_cap_cap_init" >&6; } 21814if test "x$ac_cv_lib_cap_cap_init" = xyes; then : 21815 21816$as_echo "#define HAVE_LCAPS 1" >>confdefs.h 21817 21818 LIBCAP="-lcap" 21819 quagga_ac_lcaps="yes" 21820 21821fi 21822 21823 else 21824 for ac_header in priv.h 21825do : 21826 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default" 21827if test "x$ac_cv_header_priv_h" = xyes; then : 21828 cat >>confdefs.h <<_ACEOF 21829#define HAVE_PRIV_H 1 21830_ACEOF 21831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris style privileges are available" >&5 21832$as_echo_n "checking Solaris style privileges are available... " >&6; } 21833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21834/* end confdefs.h. */ 21835#include <priv.h> 21836int 21837main () 21838{ 21839getpflags(PRIV_AWARE); 21840 ; 21841 return 0; 21842} 21843_ACEOF 21844if ac_fn_c_try_compile "$LINENO"; then : 21845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21846$as_echo "yes" >&6; } 21847 21848$as_echo "#define HAVE_SOLARIS_CAPABILITIES 1" >>confdefs.h 21849 21850 quagga_ac_scaps="yes" 21851else 21852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21853$as_echo "no" >&6; } 21854 21855fi 21856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21857 21858 21859fi 21860 21861done 21862 21863 fi 21864 if test x"${quagga_ac_scaps}" = x"yes" \ 21865 -o x"${quagga_ac_lcaps}" = x"yes"; then 21866 21867$as_echo "#define HAVE_CAPABILITIES 1" >>confdefs.h 21868 21869 fi 21870fi 21871 21872 21873 21874 # starting point: no aliasing scheme yet... 21875 ax_sys_weak_alias=no 21876 21877 # Figure out what kind of aliasing may be supported... 21878 # Test whether compiler accepts __attribute__ form of weak aliasing 21879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts function __attribute__((weak,alias()))" >&5 21880$as_echo_n "checking whether $CC accepts function __attribute__((weak,alias()))... " >&6; } 21881if ${ax_cv_sys_weak_alias_attribute+:} false; then : 21882 $as_echo_n "(cached) " >&6 21883else 21884 21885 # We add -Werror if it's gcc to force an error exit if the weak attribute 21886 # isn't understood 21887 if test $GCC = yes; then : 21888 21889 save_CFLAGS=$CFLAGS 21890 CFLAGS=-Werror 21891fi 21892 21893 # Try linking with a weak alias... 21894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21895/* end confdefs.h. */ 21896 21897 21898void __weakf(int c) {} 21899void weakf(int c) __attribute__((weak, alias("__weakf"))); 21900int 21901main () 21902{ 21903weakf(0) 21904 ; 21905 return 0; 21906} 21907_ACEOF 21908if ac_fn_c_try_link "$LINENO"; then : 21909 ax_cv_sys_weak_alias_attribute=yes 21910else 21911 ax_cv_sys_weak_alias_attribute=no 21912fi 21913rm -f core conftest.err conftest.$ac_objext \ 21914 conftest$ac_exeext conftest.$ac_ext 21915 21916 # Restore original CFLAGS 21917 if test $GCC = yes; then : 21918 21919 CFLAGS=$save_CFLAGS 21920fi 21921 21922fi 21923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias_attribute" >&5 21924$as_echo "$ax_cv_sys_weak_alias_attribute" >&6; } 21925 21926 # What was the result of the test? 21927 if test $ax_cv_sys_weak_alias_attribute = yes; then : 21928 21929 test $ax_sys_weak_alias = no && ax_sys_weak_alias=attribute 21930 21931$as_echo "#define HAVE_SYS_WEAK_ALIAS_ATTRIBUTE 1" >>confdefs.h 21932 21933 21934fi 21935 21936 # Test whether compiler accepts #pragma form of weak aliasing 21937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports #pragma weak" >&5 21938$as_echo_n "checking whether $CC supports #pragma weak... " >&6; } 21939if ${ax_cv_sys_weak_alias_pragma+:} false; then : 21940 $as_echo_n "(cached) " >&6 21941else 21942 21943 21944 # Try linking with a weak alias... 21945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21946/* end confdefs.h. */ 21947 21948 21949extern void weakf(int c); 21950#pragma weak weakf = __weakf 21951void __weakf(int c) {} 21952int 21953main () 21954{ 21955weakf(0) 21956 ; 21957 return 0; 21958} 21959_ACEOF 21960if ac_fn_c_try_link "$LINENO"; then : 21961 ax_cv_sys_weak_alias_pragma=yes 21962else 21963 ax_cv_sys_weak_alias_pragma=no 21964fi 21965rm -f core conftest.err conftest.$ac_objext \ 21966 conftest$ac_exeext conftest.$ac_ext 21967 21968fi 21969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias_pragma" >&5 21970$as_echo "$ax_cv_sys_weak_alias_pragma" >&6; } 21971 21972 # What was the result of the test? 21973 if test $ax_cv_sys_weak_alias_pragma = yes; then : 21974 21975 test $ax_sys_weak_alias = no && ax_sys_weak_alias=pragma 21976 21977$as_echo "#define HAVE_SYS_WEAK_ALIAS_PRAGMA 1" >>confdefs.h 21978 21979 21980fi 21981 21982 # Test whether compiler accepts _HP_SECONDARY_DEF pragma from HP... 21983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports #pragma _HP_SECONDARY_DEF" >&5 21984$as_echo_n "checking whether $CC supports #pragma _HP_SECONDARY_DEF... " >&6; } 21985if ${ax_cv_sys_weak_alias_hpsecondary+:} false; then : 21986 $as_echo_n "(cached) " >&6 21987else 21988 21989 21990 # Try linking with a weak alias... 21991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21992/* end confdefs.h. */ 21993 21994 21995extern void weakf(int c); 21996#pragma _HP_SECONDARY_DEF __weakf weakf 21997void __weakf(int c) {} 21998int 21999main () 22000{ 22001weakf(0) 22002 ; 22003 return 0; 22004} 22005_ACEOF 22006if ac_fn_c_try_link "$LINENO"; then : 22007 ax_cv_sys_weak_alias_hpsecondary=yes 22008else 22009 ax_cv_sys_weak_alias_hpsecondary=no 22010fi 22011rm -f core conftest.err conftest.$ac_objext \ 22012 conftest$ac_exeext conftest.$ac_ext 22013 22014fi 22015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias_hpsecondary" >&5 22016$as_echo "$ax_cv_sys_weak_alias_hpsecondary" >&6; } 22017 22018 # What was the result of the test? 22019 if test $ax_cv_sys_weak_alias_hpsecondary = yes; then : 22020 22021 test $ax_sys_weak_alias = no && ax_sys_weak_alias=hpsecondary 22022 22023$as_echo "#define HAVE_SYS_WEAK_ALIAS_HPSECONDARY 1" >>confdefs.h 22024 22025 22026fi 22027 22028 # Test whether compiler accepts "_CRI duplicate" pragma from Cray 22029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports #pragma _CRI duplicate" >&5 22030$as_echo_n "checking whether $CC supports #pragma _CRI duplicate... " >&6; } 22031if ${ax_cv_sys_weak_alias_criduplicate+:} false; then : 22032 $as_echo_n "(cached) " >&6 22033else 22034 22035 22036 # Try linking with a weak alias... 22037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22038/* end confdefs.h. */ 22039 22040 22041extern void weakf(int c); 22042#pragma _CRI duplicate weakf as __weakf 22043void __weakf(int c) {} 22044int 22045main () 22046{ 22047weakf(0) 22048 ; 22049 return 0; 22050} 22051_ACEOF 22052if ac_fn_c_try_link "$LINENO"; then : 22053 ax_cv_sys_weak_alias_criduplicate=yes 22054else 22055 ax_cv_sys_weak_alias_criduplicate=no 22056fi 22057rm -f core conftest.err conftest.$ac_objext \ 22058 conftest$ac_exeext conftest.$ac_ext 22059 22060fi 22061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias_criduplicate" >&5 22062$as_echo "$ax_cv_sys_weak_alias_criduplicate" >&6; } 22063 22064 # What was the result of the test? 22065 if test $ax_cv_sys_weak_alias_criduplicate = yes; then : 22066 22067 test $ax_sys_weak_alias = no && ax_sys_weak_alias=criduplicate 22068 22069$as_echo "#define HAVE_SYS_WEAK_ALIAS_CRIDUPLICATE 1" >>confdefs.h 22070 22071 22072fi 22073 22074 22075 # Do we actually support aliasing? 22076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create weak aliases with $CC" >&5 22077$as_echo_n "checking how to create weak aliases with $CC... " >&6; } 22078if ${ax_cv_sys_weak_alias+:} false; then : 22079 $as_echo_n "(cached) " >&6 22080else 22081 ax_cv_sys_weak_alias=$ax_sys_weak_alias 22082fi 22083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias" >&5 22084$as_echo "$ax_cv_sys_weak_alias" >&6; } 22085 22086 # OK, set a #define 22087 if test $ax_cv_sys_weak_alias != no; then : 22088 22089 22090$as_echo "#define HAVE_SYS_WEAK_ALIAS 1" >>confdefs.h 22091 22092 22093fi 22094 22095 # Can aliases cross object file boundaries? 22096 # Check to see if weak aliases can cross object file boundaries 22097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports weak aliases across object file boundaries" >&5 22098$as_echo_n "checking whether $CC supports weak aliases across object file boundaries... " >&6; } 22099if ${ax_cv_sys_weak_alias_crossfile+:} false; then : 22100 $as_echo_n "(cached) " >&6 22101else 22102 22103 if test $ax_cv_sys_weak_alias = no; then : 22104 ax_cv_sys_weak_alias_crossfile=no 22105else 22106 22107 # conftest1 contains our weak alias definition... 22108 cat >conftest1.$ac_ext <<_ACEOF 22109/* confdefs.h. */ 22110_ACEOF 22111 cat confdefs.h >>conftest1.$ac_ext 22112 cat >>conftest1.$ac_ext <<_ACEOF 22113/* end confdefs.h. */ 22114 22115#ifndef HAVE_SYS_WEAK_ALIAS_ATTRIBUTE 22116extern void weakf(int c); 22117#if defined(HAVE_SYS_WEAK_ALIAS_PRAGMA) 22118#pragma weak weakf = __weakf 22119#elif defined(HAVE_SYS_WEAK_ALIAS_HPSECONDARY) 22120#pragma _HP_SECONDARY_DEF __weakf weakf 22121#elif defined(HAVE_SYS_WEAK_ALIAS_CRIDUPLICATE) 22122#pragma _CRI duplicate weakf as __weakf 22123#endif 22124#endif 22125void __weakf(int c) {} 22126#ifdef HAVE_SYS_WEAK_ALIAS_ATTRIBUTE 22127void weakf(int c) __attribute((weak, alias("__weakf"))); 22128#endif 22129_ACEOF 22130 # And conftest2 contains our main routine that calls it 22131 cat >conftest2.$ac_ext <<_ACEOF 22132/* confdefs.h. */ 22133_ACEOF 22134 cat confdefs.h >> conftest2.$ac_ext 22135 cat >>conftest2.$ac_ext <<_ACEOF 22136/* end confdefs.h. */ 22137 22138extern void weakf(int c); 22139int 22140main () 22141{ 22142 weakf(0); 22143 return 0; 22144} 22145_ACEOF 22146 # We must remove the object files (if any) ourselves... 22147 rm -f conftest2.$ac_objext conftest$ac_exeext 22148 22149 # Change ac_link to compile *2* files together 22150 save_aclink=$ac_link 22151 ac_link=`echo "$ac_link" | \ 22152 sed -e 's/conftest\(\.\$ac_ext\)/conftest1\1 conftest2\1/'` 22153 # Since we created the files ourselves, don't use SOURCE argument 22154 if ac_fn_c_try_link "$LINENO"; then : 22155 ax_cv_sys_weak_alias_crossfile=yes 22156else 22157 ax_cv_sys_weak_alias_crossfile=no 22158fi 22159rm -f core conftest.err conftest.$ac_objext \ 22160 conftest$ac_exeext 22161 # Restore ac_link 22162 ac_link=$save_aclink 22163 22164 # We must remove the object files (if any) and C files ourselves... 22165 rm -f conftest1.$ac_ext conftest2.$ac_ext \ 22166 conftest1.$ac_objext conftest2.$ac_objext 22167 22168fi 22169 22170fi 22171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias_crossfile" >&5 22172$as_echo "$ax_cv_sys_weak_alias_crossfile" >&6; } 22173 22174 # What were the results of the test? 22175 if test $ax_cv_sys_weak_alias_crossfile = yes; then : 22176 22177 22178$as_echo "#define HAVE_SYS_WEAK_ALIAS_CROSSFILE 1" >>confdefs.h 22179 22180 22181fi 22182 22183 22184 # OK, remember the results 22185 WEAK_ALIAS=$ax_cv_sys_weak_alias 22186 22187 WEAK_ALIAS_CROSSFILE=$ax_cv_sys_weak_alias_crossfile 22188 22189 22190 22191if test x"${enable_backtrace}" != x"no" ; then 22192 backtrace_ok=no 22193 ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" 22194if test "x$ac_cv_header_execinfo_h" = xyes; then : 22195 22196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5 22197$as_echo_n "checking for library containing backtrace... " >&6; } 22198if ${ac_cv_search_backtrace+:} false; then : 22199 $as_echo_n "(cached) " >&6 22200else 22201 ac_func_search_save_LIBS=$LIBS 22202cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22203/* end confdefs.h. */ 22204 22205/* Override any GCC internal prototype to avoid an error. 22206 Use char because int might match the return type of a GCC 22207 builtin and then its argument prototype would still apply. */ 22208#ifdef __cplusplus 22209extern "C" 22210#endif 22211char backtrace (); 22212int 22213main () 22214{ 22215return backtrace (); 22216 ; 22217 return 0; 22218} 22219_ACEOF 22220for ac_lib in '' execinfo; do 22221 if test -z "$ac_lib"; then 22222 ac_res="none required" 22223 else 22224 ac_res=-l$ac_lib 22225 LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS" 22226 fi 22227 if ac_fn_c_try_link "$LINENO"; then : 22228 ac_cv_search_backtrace=$ac_res 22229fi 22230rm -f core conftest.err conftest.$ac_objext \ 22231 conftest$ac_exeext 22232 if ${ac_cv_search_backtrace+:} false; then : 22233 break 22234fi 22235done 22236if ${ac_cv_search_backtrace+:} false; then : 22237 22238else 22239 ac_cv_search_backtrace=no 22240fi 22241rm conftest.$ac_ext 22242LIBS=$ac_func_search_save_LIBS 22243fi 22244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5 22245$as_echo "$ac_cv_search_backtrace" >&6; } 22246ac_res=$ac_cv_search_backtrace 22247if test "$ac_res" != no; then : 22248 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22249 22250 22251$as_echo "#define HAVE_GLIBC_BACKTRACE /**/" >>confdefs.h 22252 22253 22254$as_echo "#define HAVE_STACK_TRACE /**/" >>confdefs.h 22255 22256 backtrace_ok=yes 22257 22258fi 22259 22260 22261fi 22262 22263 22264 22265 if test x"${enable_backtrace}" = x"yes" -a x"${backtrace_ok}" = x"no"; then 22266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22268as_fn_error $? "failed to find backtrace support 22269See \`config.log' for more details" "$LINENO" 5; } 22270 fi 22271fi 22272 22273ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "#ifdef SUNOS_5 22274#define _XPG4_2 22275#define __EXTENSIONS__ 22276#endif 22277#include <stdio.h> 22278#if STDC_HEADERS 22279# include <stdlib.h> 22280# include <stddef.h> 22281#else 22282# if HAVE_STDLIB_H 22283# include <stdlib.h> 22284# endif 22285#endif 22286#if HAVE_SYS_TYPES_H 22287# include <sys/types.h> 22288#endif 22289/* sys/conf.h depends on param.h on FBSD at least */ 22290#if HAVE_SYS_PARAM_H 22291# include <sys/param.h> 22292#endif 22293/* Required for MAXSIG */ 22294#if HAVE_SIGNAL_H 22295# include <signal.h> 22296#endif 22297#if HAVE_SYS_SOCKET_H 22298# include <sys/socket.h> 22299#endif 22300#ifdef __APPLE__ 22301# define __APPLE_USE_RFC_3542 22302#endif 22303#if HAVE_NETINET_IN_H 22304# include <netinet/in.h> 22305#endif 22306#ifdef TIME_WITH_SYS_TIME 22307# include <sys/time.h> 22308# include <time.h> 22309#else 22310# ifdef HAVE_SYS_TIME_H 22311# include <sys/time.h> 22312# else 22313# include <time.h> 22314# endif 22315#endif /* TIME_WITH_SYS_TIME */ 22316 22317#if HAVE_NET_IF_H 22318# include <net/if.h> 22319#endif 22320 22321#if HAVE_NET_IF_VAR_H 22322# include <net/if_var.h> 22323#endif 22324 22325#if HAVE_SYS_UN_H 22326# include <sys/un.h> 22327#endif 22328#if HAVE_NETINET_IN_SYSTM_H 22329# include <netinet/in_systm.h> 22330#endif 22331#if HAVE_NETINET_IN_VAR_H 22332# include <netinet/in_var.h> 22333#endif 22334#if HAVE_NET_IF_DL_H 22335# include <net/if_dl.h> 22336#endif 22337#if HAVE_NET_NETOPT_H 22338# include <net/netopt.h> 22339#endif 22340#if HAVE_NET_ROUTE_H 22341# include <net/route.h> 22342#endif 22343#if HAVE_INET_ND_H 22344# include <inet/nd.h> 22345#endif 22346#if HAVE_ARPA_INET_H 22347# include <arpa/inet.h> 22348#endif 22349/* Required for IDRP */ 22350#if HAVE_NETINET_IP_ICMP_H 22351# include <netinet/ip_icmp.h> 22352#endif 22353 22354#if HAVE_NETINET6_IN6_H 22355#include <netinet6/in6.h> 22356#endif 22357#if HAVE_NETINET_IN6_VAR_H 22358#include <netinet/in6_var.h> 22359#endif 22360#if HAVE_NETINET_ICMP6_H 22361# include <netinet/icmp6.h> 22362#endif 22363#if HAVE_NETINET6_IN6_VAR_H 22364# include <netinet6/in6_var.h> 22365#endif 22366#if HAVE_NETINET6_ND6_H 22367# include <netinet6/nd6.h> 22368#endif 22369 22370" 22371if test "x$ac_cv_header_malloc_h" = xyes; then : 22372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mallinfo is available" >&5 22373$as_echo_n "checking whether mallinfo is available... " >&6; } 22374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22375/* end confdefs.h. */ 22376#include <malloc.h> 22377int 22378main () 22379{ 22380struct mallinfo ac_x; ac_x = mallinfo (); 22381 ; 22382 return 0; 22383} 22384_ACEOF 22385if ac_fn_c_try_link "$LINENO"; then : 22386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22387$as_echo "yes" >&6; } 22388 22389$as_echo "#define HAVE_MALLINFO /**/" >>confdefs.h 22390 22391else 22392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22393$as_echo "no" >&6; } 22394 22395fi 22396rm -f core conftest.err conftest.$ac_objext \ 22397 conftest$ac_exeext conftest.$ac_ext 22398 22399fi 22400 22401 22402 22403CONFDATE=`date '+%Y%m%d'` 22404 22405 22406# Check whether --enable-pie was given. 22407if test "${enable_pie+set}" = set; then : 22408 enableval=$enable_pie; 22409fi 22410 22411if test "$enable_pie" != "no"; then 22412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts PIE flags" >&5 22413$as_echo_n "checking whether $CC accepts PIE flags... " >&6; } 22414if ${ap_cv_cc_pie+:} false; then : 22415 $as_echo_n "(cached) " >&6 22416else 22417 22418 save_CFLAGS=$CFLAGS 22419 save_LDFLAGS=$LDFLAGS 22420 CFLAGS="$CFLAGS -fPIE" 22421 LDFLAGS="$LDFLAGS -pie" 22422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22423/* end confdefs.h. */ 22424static int foo[30000]; int main () { return 0; } 22425_ACEOF 22426if ac_fn_c_try_link "$LINENO"; then : 22427 ap_cv_cc_pie=yes 22428else 22429 ap_cv_cc_pie=no 22430 22431fi 22432rm -f core conftest.err conftest.$ac_objext \ 22433 conftest$ac_exeext conftest.$ac_ext 22434 CFLAGS=$save_CFLAGS 22435 LDFLAGS=$save_LDFLAGS 22436 22437fi 22438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_cc_pie" >&5 22439$as_echo "$ap_cv_cc_pie" >&6; } 22440 if test "$ap_cv_cc_pie" = "yes"; then 22441 PICFLAGS="-fPIE" 22442 PILDFLAGS="-pie" 22443 fi 22444fi 22445 22446 22447 22448 22449if test x"$DEJAGNU" = x 22450then 22451 DEJAGNU="\$(top_srcdir)/tests/global-conf.exp" 22452fi 22453RUNTESTDEFAULTFLAGS="-x --tool \$\$tool" 22454 22455 22456 22457 22458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking directory to use for state file" >&5 22459$as_echo_n "checking directory to use for state file... " >&6; } 22460if test "${prefix}" = "NONE"; then 22461 quagga_statedir_prefix=""; 22462else 22463 quagga_statedir_prefix=${prefix} 22464fi 22465if test "${localstatedir}" = '${prefix}/var'; then 22466 for QUAGGA_STATE_DIR in ${quagga_statedir_prefix}/var/run ${quagga_statedir_prefix}/var/adm ${quagga_statedir_prefix}/etc /var/run /var/adm /etc /dev/null; 22467 do 22468 test -d $QUAGGA_STATE_DIR && break 22469 done 22470 quagga_statedir=$QUAGGA_STATE_DIR 22471else 22472 quagga_statedir=${localstatedir} 22473fi 22474if test $quagga_statedir = "/dev/null"; then 22475 as_fn_error $? "'STATE DIRECTORY NOT FOUND! FIX OR SPECIFY --localstatedir!'" "$LINENO" 5 22476fi 22477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${quagga_statedir}" >&5 22478$as_echo "${quagga_statedir}" >&6; } 22479 22480 22481 22482cat >>confdefs.h <<_ACEOF 22483#define PATH_ZEBRA_PID "$quagga_statedir/zebra.pid" 22484_ACEOF 22485 22486 22487cat >>confdefs.h <<_ACEOF 22488#define PATH_RIPD_PID "$quagga_statedir/ripd.pid" 22489_ACEOF 22490 22491 22492cat >>confdefs.h <<_ACEOF 22493#define PATH_RIPNGD_PID "$quagga_statedir/ripngd.pid" 22494_ACEOF 22495 22496 22497cat >>confdefs.h <<_ACEOF 22498#define PATH_BGPD_PID "$quagga_statedir/bgpd.pid" 22499_ACEOF 22500 22501 22502cat >>confdefs.h <<_ACEOF 22503#define PATH_OSPFD_PID "$quagga_statedir/ospfd.pid" 22504_ACEOF 22505 22506 22507cat >>confdefs.h <<_ACEOF 22508#define PATH_OSPF6D_PID "$quagga_statedir/ospf6d.pid" 22509_ACEOF 22510 22511 22512cat >>confdefs.h <<_ACEOF 22513#define PATH_BABELD_PID "$quagga_statedir/babeld.pid" 22514_ACEOF 22515 22516 22517cat >>confdefs.h <<_ACEOF 22518#define PATH_ISISD_PID "$quagga_statedir/isisd.pid" 22519_ACEOF 22520 22521 22522cat >>confdefs.h <<_ACEOF 22523#define PATH_PIMD_PID "$quagga_statedir/pimd.pid" 22524_ACEOF 22525 22526 22527cat >>confdefs.h <<_ACEOF 22528#define PATH_WATCHQUAGGA_PID "$quagga_statedir/watchquagga.pid" 22529_ACEOF 22530 22531 22532cat >>confdefs.h <<_ACEOF 22533#define ZEBRA_SERV_PATH "$quagga_statedir/zserv.api" 22534_ACEOF 22535 22536 22537cat >>confdefs.h <<_ACEOF 22538#define ZEBRA_VTYSH_PATH "$quagga_statedir/zebra.vty" 22539_ACEOF 22540 22541 22542cat >>confdefs.h <<_ACEOF 22543#define RIP_VTYSH_PATH "$quagga_statedir/ripd.vty" 22544_ACEOF 22545 22546 22547cat >>confdefs.h <<_ACEOF 22548#define RIPNG_VTYSH_PATH "$quagga_statedir/ripngd.vty" 22549_ACEOF 22550 22551 22552cat >>confdefs.h <<_ACEOF 22553#define BGP_VTYSH_PATH "$quagga_statedir/bgpd.vty" 22554_ACEOF 22555 22556 22557cat >>confdefs.h <<_ACEOF 22558#define OSPF_VTYSH_PATH "$quagga_statedir/ospfd.vty" 22559_ACEOF 22560 22561 22562cat >>confdefs.h <<_ACEOF 22563#define OSPF6_VTYSH_PATH "$quagga_statedir/ospf6d.vty" 22564_ACEOF 22565 22566 22567cat >>confdefs.h <<_ACEOF 22568#define BABEL_VTYSH_PATH "$quagga_statedir/babeld.vty" 22569_ACEOF 22570 22571 22572cat >>confdefs.h <<_ACEOF 22573#define ISIS_VTYSH_PATH "$quagga_statedir/isisd.vty" 22574_ACEOF 22575 22576 22577cat >>confdefs.h <<_ACEOF 22578#define PIM_VTYSH_PATH "$quagga_statedir/pimd.vty" 22579_ACEOF 22580 22581 22582cat >>confdefs.h <<_ACEOF 22583#define DAEMON_VTY_DIR "$quagga_statedir" 22584_ACEOF 22585 22586 22587 22588$as_echo "#define QUAGGA_NO_DEPRECATED_INTERFACES 1" >>confdefs.h 22589 22590 22591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working htonl" >&5 22592$as_echo_n "checking for working htonl... " >&6; } 22593if ${ac_cv_htonl_works+:} false; then : 22594 $as_echo_n "(cached) " >&6 22595else 22596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22597/* end confdefs.h. */ 22598#ifdef SUNOS_5 22599#define _XPG4_2 22600#define __EXTENSIONS__ 22601#endif 22602#include <stdio.h> 22603#if STDC_HEADERS 22604# include <stdlib.h> 22605# include <stddef.h> 22606#else 22607# if HAVE_STDLIB_H 22608# include <stdlib.h> 22609# endif 22610#endif 22611#if HAVE_SYS_TYPES_H 22612# include <sys/types.h> 22613#endif 22614/* sys/conf.h depends on param.h on FBSD at least */ 22615#if HAVE_SYS_PARAM_H 22616# include <sys/param.h> 22617#endif 22618/* Required for MAXSIG */ 22619#if HAVE_SIGNAL_H 22620# include <signal.h> 22621#endif 22622#if HAVE_SYS_SOCKET_H 22623# include <sys/socket.h> 22624#endif 22625#ifdef __APPLE__ 22626# define __APPLE_USE_RFC_3542 22627#endif 22628#if HAVE_NETINET_IN_H 22629# include <netinet/in.h> 22630#endif 22631#ifdef TIME_WITH_SYS_TIME 22632# include <sys/time.h> 22633# include <time.h> 22634#else 22635# ifdef HAVE_SYS_TIME_H 22636# include <sys/time.h> 22637# else 22638# include <time.h> 22639# endif 22640#endif /* TIME_WITH_SYS_TIME */ 22641 22642#if HAVE_NET_IF_H 22643# include <net/if.h> 22644#endif 22645 22646#if HAVE_NET_IF_VAR_H 22647# include <net/if_var.h> 22648#endif 22649 22650#if HAVE_SYS_UN_H 22651# include <sys/un.h> 22652#endif 22653#if HAVE_NETINET_IN_SYSTM_H 22654# include <netinet/in_systm.h> 22655#endif 22656#if HAVE_NETINET_IN_VAR_H 22657# include <netinet/in_var.h> 22658#endif 22659#if HAVE_NET_IF_DL_H 22660# include <net/if_dl.h> 22661#endif 22662#if HAVE_NET_NETOPT_H 22663# include <net/netopt.h> 22664#endif 22665#if HAVE_NET_ROUTE_H 22666# include <net/route.h> 22667#endif 22668#if HAVE_INET_ND_H 22669# include <inet/nd.h> 22670#endif 22671#if HAVE_ARPA_INET_H 22672# include <arpa/inet.h> 22673#endif 22674/* Required for IDRP */ 22675#if HAVE_NETINET_IP_ICMP_H 22676# include <netinet/ip_icmp.h> 22677#endif 22678 22679#if HAVE_NETINET6_IN6_H 22680#include <netinet6/in6.h> 22681#endif 22682#if HAVE_NETINET_IN6_VAR_H 22683#include <netinet/in6_var.h> 22684#endif 22685#if HAVE_NETINET_ICMP6_H 22686# include <netinet/icmp6.h> 22687#endif 22688#if HAVE_NETINET6_IN6_VAR_H 22689# include <netinet6/in6_var.h> 22690#endif 22691#if HAVE_NETINET6_ND6_H 22692# include <netinet6/nd6.h> 22693#endif 22694 22695int 22696main () 22697{ 22698htonl (0); 22699 ; 22700 return 0; 22701} 22702_ACEOF 22703if ac_fn_c_try_link "$LINENO"; then : 22704 ac_cv_htonl_works=yes 22705else 22706 ac_cv_htonl_works=no 22707fi 22708rm -f core conftest.err conftest.$ac_objext \ 22709 conftest$ac_exeext conftest.$ac_ext 22710 22711 22712fi 22713 22714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_htonl_works" >&5 22715$as_echo "$ac_cv_htonl_works" >&6; } 22716 22717ac_config_files="$ac_config_files Makefile lib/Makefile zebra/Makefile ripd/Makefile ripngd/Makefile bgpd/Makefile ospfd/Makefile watchquagga/Makefile ospf6d/Makefile isisd/Makefile babeld/Makefile vtysh/Makefile doc/Makefile ospfclient/Makefile tests/Makefile m4/Makefile pimd/Makefile tests/bgpd.tests/Makefile tests/libzebra.tests/Makefile redhat/Makefile pkgsrc/Makefile redhat/quagga.spec lib/version.h doc/defines.texi isisd/topology/Makefile pkgsrc/bgpd.sh pkgsrc/ospf6d.sh pkgsrc/ospfd.sh pkgsrc/ripd.sh pkgsrc/ripngd.sh pkgsrc/zebra.sh" 22718 22719ac_config_files="$ac_config_files solaris/Makefile" 22720 22721 22722ac_config_files="$ac_config_files vtysh/extract.pl" 22723 22724## Hack, but working solution to avoid rebuilding of quagga.info. 22725## It's already in CVS until texinfo 4.7 is more common. 22726cat >confcache <<\_ACEOF 22727# This file is a shell script that caches the results of configure 22728# tests run on this system so they can be shared between configure 22729# scripts and configure runs, see configure's option --config-cache. 22730# It is not useful on other systems. If it contains results you don't 22731# want to keep, you may remove or edit it. 22732# 22733# config.status only pays attention to the cache file if you give it 22734# the --recheck option to rerun configure. 22735# 22736# `ac_cv_env_foo' variables (set or unset) will be overridden when 22737# loading this file, other *unset* `ac_cv_foo' will be assigned the 22738# following values. 22739 22740_ACEOF 22741 22742# The following way of writing the cache mishandles newlines in values, 22743# but we know of no workaround that is simple, portable, and efficient. 22744# So, we kill variables containing newlines. 22745# Ultrix sh set writes to stderr and can't be redirected directly, 22746# and sets the high bit in the cache file unless we assign to the vars. 22747( 22748 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22749 eval ac_val=\$$ac_var 22750 case $ac_val in #( 22751 *${as_nl}*) 22752 case $ac_var in #( 22753 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 22754$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 22755 esac 22756 case $ac_var in #( 22757 _ | IFS | as_nl) ;; #( 22758 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 22759 *) { eval $ac_var=; unset $ac_var;} ;; 22760 esac ;; 22761 esac 22762 done 22763 22764 (set) 2>&1 | 22765 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22766 *${as_nl}ac_space=\ *) 22767 # `set' does not quote correctly, so add quotes: double-quote 22768 # substitution turns \\\\ into \\, and sed turns \\ into \. 22769 sed -n \ 22770 "s/'/'\\\\''/g; 22771 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22772 ;; #( 22773 *) 22774 # `set' quotes correctly as required by POSIX, so do not add quotes. 22775 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22776 ;; 22777 esac | 22778 sort 22779) | 22780 sed ' 22781 /^ac_cv_env_/b end 22782 t clear 22783 :clear 22784 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22785 t end 22786 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22787 :end' >>confcache 22788if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22789 if test -w "$cache_file"; then 22790 if test "x$cache_file" != "x/dev/null"; then 22791 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 22792$as_echo "$as_me: updating cache $cache_file" >&6;} 22793 if test ! -f "$cache_file" || test -h "$cache_file"; then 22794 cat confcache >"$cache_file" 22795 else 22796 case $cache_file in #( 22797 */* | ?:*) 22798 mv -f confcache "$cache_file"$$ && 22799 mv -f "$cache_file"$$ "$cache_file" ;; #( 22800 *) 22801 mv -f confcache "$cache_file" ;; 22802 esac 22803 fi 22804 fi 22805 else 22806 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 22807$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22808 fi 22809fi 22810rm -f confcache 22811 22812test "x$prefix" = xNONE && prefix=$ac_default_prefix 22813# Let make expand exec_prefix. 22814test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22815 22816DEFS=-DHAVE_CONFIG_H 22817 22818ac_libobjs= 22819ac_ltlibobjs= 22820U= 22821for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22822 # 1. Remove the extension, and $U if already installed. 22823 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22824 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 22825 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22826 # will be set to the directory where LIBOBJS objects are built. 22827 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22828 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 22829done 22830LIBOBJS=$ac_libobjs 22831 22832LTLIBOBJS=$ac_ltlibobjs 22833 22834 22835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 22836$as_echo_n "checking that generated files are newer than configure... " >&6; } 22837 if test -n "$am_sleep_pid"; then 22838 # Hide warnings about reused PIDs. 22839 wait $am_sleep_pid 2>/dev/null 22840 fi 22841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 22842$as_echo "done" >&6; } 22843 if test -n "$EXEEXT"; then 22844 am__EXEEXT_TRUE= 22845 am__EXEEXT_FALSE='#' 22846else 22847 am__EXEEXT_TRUE='#' 22848 am__EXEEXT_FALSE= 22849fi 22850 22851if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 22852 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 22853Usually this means the macro was only invoked conditionally." "$LINENO" 5 22854fi 22855if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22856 as_fn_error $? "conditional \"AMDEP\" was never defined. 22857Usually this means the macro was only invoked conditionally." "$LINENO" 5 22858fi 22859if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22860 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 22861Usually this means the macro was only invoked conditionally." "$LINENO" 5 22862fi 22863if test -z "${HAVE_LATEX_TRUE}" && test -z "${HAVE_LATEX_FALSE}"; then 22864 as_fn_error $? "conditional \"HAVE_LATEX\" was never defined. 22865Usually this means the macro was only invoked conditionally." "$LINENO" 5 22866fi 22867if test -z "${GIT_VERSION_TRUE}" && test -z "${GIT_VERSION_FALSE}"; then 22868 as_fn_error $? "conditional \"GIT_VERSION\" was never defined. 22869Usually this means the macro was only invoked conditionally." "$LINENO" 5 22870fi 22871if test -z "${VTYSH_TRUE}" && test -z "${VTYSH_FALSE}"; then 22872 as_fn_error $? "conditional \"VTYSH\" was never defined. 22873Usually this means the macro was only invoked conditionally." "$LINENO" 5 22874fi 22875 22876if test -z "${HAVE_NETLINK_TRUE}" && test -z "${HAVE_NETLINK_FALSE}"; then 22877 as_fn_error $? "conditional \"HAVE_NETLINK\" was never defined. 22878Usually this means the macro was only invoked conditionally." "$LINENO" 5 22879fi 22880if test -z "${ZEBRA_TRUE}" && test -z "${ZEBRA_FALSE}"; then 22881 as_fn_error $? "conditional \"ZEBRA\" was never defined. 22882Usually this means the macro was only invoked conditionally." "$LINENO" 5 22883fi 22884if test -z "${BGPD_TRUE}" && test -z "${BGPD_FALSE}"; then 22885 as_fn_error $? "conditional \"BGPD\" was never defined. 22886Usually this means the macro was only invoked conditionally." "$LINENO" 5 22887fi 22888if test -z "${RIPD_TRUE}" && test -z "${RIPD_FALSE}"; then 22889 as_fn_error $? "conditional \"RIPD\" was never defined. 22890Usually this means the macro was only invoked conditionally." "$LINENO" 5 22891fi 22892if test -z "${OSPFD_TRUE}" && test -z "${OSPFD_FALSE}"; then 22893 as_fn_error $? "conditional \"OSPFD\" was never defined. 22894Usually this means the macro was only invoked conditionally." "$LINENO" 5 22895fi 22896if test -z "${BABELD_TRUE}" && test -z "${BABELD_FALSE}"; then 22897 as_fn_error $? "conditional \"BABELD\" was never defined. 22898Usually this means the macro was only invoked conditionally." "$LINENO" 5 22899fi 22900if test -z "${WATCHQUAGGA_TRUE}" && test -z "${WATCHQUAGGA_FALSE}"; then 22901 as_fn_error $? "conditional \"WATCHQUAGGA\" was never defined. 22902Usually this means the macro was only invoked conditionally." "$LINENO" 5 22903fi 22904if test -z "${OSPFCLIENT_TRUE}" && test -z "${OSPFCLIENT_FALSE}"; then 22905 as_fn_error $? "conditional \"OSPFCLIENT\" was never defined. 22906Usually this means the macro was only invoked conditionally." "$LINENO" 5 22907fi 22908if test -z "${RIPNGD_TRUE}" && test -z "${RIPNGD_FALSE}"; then 22909 as_fn_error $? "conditional \"RIPNGD\" was never defined. 22910Usually this means the macro was only invoked conditionally." "$LINENO" 5 22911fi 22912if test -z "${OSPF6D_TRUE}" && test -z "${OSPF6D_FALSE}"; then 22913 as_fn_error $? "conditional \"OSPF6D\" was never defined. 22914Usually this means the macro was only invoked conditionally." "$LINENO" 5 22915fi 22916if test -z "${ISISD_TRUE}" && test -z "${ISISD_FALSE}"; then 22917 as_fn_error $? "conditional \"ISISD\" was never defined. 22918Usually this means the macro was only invoked conditionally." "$LINENO" 5 22919fi 22920if test -z "${PIMD_TRUE}" && test -z "${PIMD_FALSE}"; then 22921 as_fn_error $? "conditional \"PIMD\" was never defined. 22922Usually this means the macro was only invoked conditionally." "$LINENO" 5 22923fi 22924 22925: "${CONFIG_STATUS=./config.status}" 22926ac_write_fail=0 22927ac_clean_files_save=$ac_clean_files 22928ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22929{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 22930$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 22931as_write_fail=0 22932cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 22933#! $SHELL 22934# Generated by $as_me. 22935# Run this file to recreate the current configuration. 22936# Compiler output produced by configure, useful for debugging 22937# configure, is in config.log if it exists. 22938 22939debug=false 22940ac_cs_recheck=false 22941ac_cs_silent=false 22942 22943SHELL=\${CONFIG_SHELL-$SHELL} 22944export SHELL 22945_ASEOF 22946cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 22947## -------------------- ## 22948## M4sh Initialization. ## 22949## -------------------- ## 22950 22951# Be more Bourne compatible 22952DUALCASE=1; export DUALCASE # for MKS sh 22953if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22954 emulate sh 22955 NULLCMD=: 22956 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22957 # is contrary to our usage. Disable this feature. 22958 alias -g '${1+"$@"}'='"$@"' 22959 setopt NO_GLOB_SUBST 22960else 22961 case `(set -o) 2>/dev/null` in #( 22962 *posix*) : 22963 set -o posix ;; #( 22964 *) : 22965 ;; 22966esac 22967fi 22968 22969 22970as_nl=' 22971' 22972export as_nl 22973# Printing a long string crashes Solaris 7 /usr/bin/printf. 22974as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22975as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22976as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22977# Prefer a ksh shell builtin over an external printf program on Solaris, 22978# but without wasting forks for bash or zsh. 22979if test -z "$BASH_VERSION$ZSH_VERSION" \ 22980 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 22981 as_echo='print -r --' 22982 as_echo_n='print -rn --' 22983elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22984 as_echo='printf %s\n' 22985 as_echo_n='printf %s' 22986else 22987 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22988 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22989 as_echo_n='/usr/ucb/echo -n' 22990 else 22991 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22992 as_echo_n_body='eval 22993 arg=$1; 22994 case $arg in #( 22995 *"$as_nl"*) 22996 expr "X$arg" : "X\\(.*\\)$as_nl"; 22997 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22998 esac; 22999 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 23000 ' 23001 export as_echo_n_body 23002 as_echo_n='sh -c $as_echo_n_body as_echo' 23003 fi 23004 export as_echo_body 23005 as_echo='sh -c $as_echo_body as_echo' 23006fi 23007 23008# The user is always right. 23009if test "${PATH_SEPARATOR+set}" != set; then 23010 PATH_SEPARATOR=: 23011 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 23012 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 23013 PATH_SEPARATOR=';' 23014 } 23015fi 23016 23017 23018# IFS 23019# We need space, tab and new line, in precisely that order. Quoting is 23020# there to prevent editors from complaining about space-tab. 23021# (If _AS_PATH_WALK were called with IFS unset, it would disable word 23022# splitting by setting IFS to empty value.) 23023IFS=" "" $as_nl" 23024 23025# Find who we are. Look in the path if we contain no directory separator. 23026as_myself= 23027case $0 in #(( 23028 *[\\/]* ) as_myself=$0 ;; 23029 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23030for as_dir in $PATH 23031do 23032 IFS=$as_save_IFS 23033 test -z "$as_dir" && as_dir=. 23034 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23035 done 23036IFS=$as_save_IFS 23037 23038 ;; 23039esac 23040# We did not find ourselves, most probably we were run as `sh COMMAND' 23041# in which case we are not to be found in the path. 23042if test "x$as_myself" = x; then 23043 as_myself=$0 23044fi 23045if test ! -f "$as_myself"; then 23046 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 23047 exit 1 23048fi 23049 23050# Unset variables that we do not need and which cause bugs (e.g. in 23051# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 23052# suppresses any "Segmentation fault" message there. '((' could 23053# trigger a bug in pdksh 5.2.14. 23054for as_var in BASH_ENV ENV MAIL MAILPATH 23055do eval test x\${$as_var+set} = xset \ 23056 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 23057done 23058PS1='$ ' 23059PS2='> ' 23060PS4='+ ' 23061 23062# NLS nuisances. 23063LC_ALL=C 23064export LC_ALL 23065LANGUAGE=C 23066export LANGUAGE 23067 23068# CDPATH. 23069(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 23070 23071 23072# as_fn_error STATUS ERROR [LINENO LOG_FD] 23073# ---------------------------------------- 23074# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 23075# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 23076# script with STATUS, using 1 if that was 0. 23077as_fn_error () 23078{ 23079 as_status=$1; test $as_status -eq 0 && as_status=1 23080 if test "$4"; then 23081 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 23082 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 23083 fi 23084 $as_echo "$as_me: error: $2" >&2 23085 as_fn_exit $as_status 23086} # as_fn_error 23087 23088 23089# as_fn_set_status STATUS 23090# ----------------------- 23091# Set $? to STATUS, without forking. 23092as_fn_set_status () 23093{ 23094 return $1 23095} # as_fn_set_status 23096 23097# as_fn_exit STATUS 23098# ----------------- 23099# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 23100as_fn_exit () 23101{ 23102 set +e 23103 as_fn_set_status $1 23104 exit $1 23105} # as_fn_exit 23106 23107# as_fn_unset VAR 23108# --------------- 23109# Portably unset VAR. 23110as_fn_unset () 23111{ 23112 { eval $1=; unset $1;} 23113} 23114as_unset=as_fn_unset 23115# as_fn_append VAR VALUE 23116# ---------------------- 23117# Append the text in VALUE to the end of the definition contained in VAR. Take 23118# advantage of any shell optimizations that allow amortized linear growth over 23119# repeated appends, instead of the typical quadratic growth present in naive 23120# implementations. 23121if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 23122 eval 'as_fn_append () 23123 { 23124 eval $1+=\$2 23125 }' 23126else 23127 as_fn_append () 23128 { 23129 eval $1=\$$1\$2 23130 } 23131fi # as_fn_append 23132 23133# as_fn_arith ARG... 23134# ------------------ 23135# Perform arithmetic evaluation on the ARGs, and store the result in the 23136# global $as_val. Take advantage of shells that can avoid forks. The arguments 23137# must be portable across $(()) and expr. 23138if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 23139 eval 'as_fn_arith () 23140 { 23141 as_val=$(( $* )) 23142 }' 23143else 23144 as_fn_arith () 23145 { 23146 as_val=`expr "$@" || test $? -eq 1` 23147 } 23148fi # as_fn_arith 23149 23150 23151if expr a : '\(a\)' >/dev/null 2>&1 && 23152 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23153 as_expr=expr 23154else 23155 as_expr=false 23156fi 23157 23158if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 23159 as_basename=basename 23160else 23161 as_basename=false 23162fi 23163 23164if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 23165 as_dirname=dirname 23166else 23167 as_dirname=false 23168fi 23169 23170as_me=`$as_basename -- "$0" || 23171$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23172 X"$0" : 'X\(//\)$' \| \ 23173 X"$0" : 'X\(/\)' \| . 2>/dev/null || 23174$as_echo X/"$0" | 23175 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23176 s//\1/ 23177 q 23178 } 23179 /^X\/\(\/\/\)$/{ 23180 s//\1/ 23181 q 23182 } 23183 /^X\/\(\/\).*/{ 23184 s//\1/ 23185 q 23186 } 23187 s/.*/./; q'` 23188 23189# Avoid depending upon Character Ranges. 23190as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23191as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23192as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23193as_cr_digits='0123456789' 23194as_cr_alnum=$as_cr_Letters$as_cr_digits 23195 23196ECHO_C= ECHO_N= ECHO_T= 23197case `echo -n x` in #((((( 23198-n*) 23199 case `echo 'xy\c'` in 23200 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 23201 xy) ECHO_C='\c';; 23202 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 23203 ECHO_T=' ';; 23204 esac;; 23205*) 23206 ECHO_N='-n';; 23207esac 23208 23209rm -f conf$$ conf$$.exe conf$$.file 23210if test -d conf$$.dir; then 23211 rm -f conf$$.dir/conf$$.file 23212else 23213 rm -f conf$$.dir 23214 mkdir conf$$.dir 2>/dev/null 23215fi 23216if (echo >conf$$.file) 2>/dev/null; then 23217 if ln -s conf$$.file conf$$ 2>/dev/null; then 23218 as_ln_s='ln -s' 23219 # ... but there are two gotchas: 23220 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23221 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23222 # In both cases, we have to default to `cp -pR'. 23223 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23224 as_ln_s='cp -pR' 23225 elif ln conf$$.file conf$$ 2>/dev/null; then 23226 as_ln_s=ln 23227 else 23228 as_ln_s='cp -pR' 23229 fi 23230else 23231 as_ln_s='cp -pR' 23232fi 23233rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23234rmdir conf$$.dir 2>/dev/null 23235 23236 23237# as_fn_mkdir_p 23238# ------------- 23239# Create "$as_dir" as a directory, including parents if necessary. 23240as_fn_mkdir_p () 23241{ 23242 23243 case $as_dir in #( 23244 -*) as_dir=./$as_dir;; 23245 esac 23246 test -d "$as_dir" || eval $as_mkdir_p || { 23247 as_dirs= 23248 while :; do 23249 case $as_dir in #( 23250 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23251 *) as_qdir=$as_dir;; 23252 esac 23253 as_dirs="'$as_qdir' $as_dirs" 23254 as_dir=`$as_dirname -- "$as_dir" || 23255$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23256 X"$as_dir" : 'X\(//\)[^/]' \| \ 23257 X"$as_dir" : 'X\(//\)$' \| \ 23258 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23259$as_echo X"$as_dir" | 23260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23261 s//\1/ 23262 q 23263 } 23264 /^X\(\/\/\)[^/].*/{ 23265 s//\1/ 23266 q 23267 } 23268 /^X\(\/\/\)$/{ 23269 s//\1/ 23270 q 23271 } 23272 /^X\(\/\).*/{ 23273 s//\1/ 23274 q 23275 } 23276 s/.*/./; q'` 23277 test -d "$as_dir" && break 23278 done 23279 test -z "$as_dirs" || eval "mkdir $as_dirs" 23280 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 23281 23282 23283} # as_fn_mkdir_p 23284if mkdir -p . 2>/dev/null; then 23285 as_mkdir_p='mkdir -p "$as_dir"' 23286else 23287 test -d ./-p && rmdir ./-p 23288 as_mkdir_p=false 23289fi 23290 23291 23292# as_fn_executable_p FILE 23293# ----------------------- 23294# Test if FILE is an executable regular file. 23295as_fn_executable_p () 23296{ 23297 test -f "$1" && test -x "$1" 23298} # as_fn_executable_p 23299as_test_x='test -x' 23300as_executable_p=as_fn_executable_p 23301 23302# Sed expression to map a string onto a valid CPP name. 23303as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23304 23305# Sed expression to map a string onto a valid variable name. 23306as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23307 23308 23309exec 6>&1 23310## ----------------------------------- ## 23311## Main body of $CONFIG_STATUS script. ## 23312## ----------------------------------- ## 23313_ASEOF 23314test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 23315 23316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23317# Save the log message, to keep $0 and so on meaningful, and to 23318# report actual input values of CONFIG_FILES etc. instead of their 23319# values after options handling. 23320ac_log=" 23321This file was extended by Quagga $as_me 0.99.24, which was 23322generated by GNU Autoconf 2.69. Invocation command line was 23323 23324 CONFIG_FILES = $CONFIG_FILES 23325 CONFIG_HEADERS = $CONFIG_HEADERS 23326 CONFIG_LINKS = $CONFIG_LINKS 23327 CONFIG_COMMANDS = $CONFIG_COMMANDS 23328 $ $0 $@ 23329 23330on `(hostname || uname -n) 2>/dev/null | sed 1q` 23331" 23332 23333_ACEOF 23334 23335case $ac_config_files in *" 23336"*) set x $ac_config_files; shift; ac_config_files=$*;; 23337esac 23338 23339case $ac_config_headers in *" 23340"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 23341esac 23342 23343 23344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23345# Files that config.status was made for. 23346config_files="$ac_config_files" 23347config_headers="$ac_config_headers" 23348config_commands="$ac_config_commands" 23349 23350_ACEOF 23351 23352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23353ac_cs_usage="\ 23354\`$as_me' instantiates files and other configuration actions 23355from templates according to the current configuration. Unless the files 23356and actions are specified as TAGs, all are instantiated by default. 23357 23358Usage: $0 [OPTION]... [TAG]... 23359 23360 -h, --help print this help, then exit 23361 -V, --version print version number and configuration settings, then exit 23362 --config print configuration, then exit 23363 -q, --quiet, --silent 23364 do not print progress messages 23365 -d, --debug don't remove temporary files 23366 --recheck update $as_me by reconfiguring in the same conditions 23367 --file=FILE[:TEMPLATE] 23368 instantiate the configuration file FILE 23369 --header=FILE[:TEMPLATE] 23370 instantiate the configuration header FILE 23371 23372Configuration files: 23373$config_files 23374 23375Configuration headers: 23376$config_headers 23377 23378Configuration commands: 23379$config_commands 23380 23381Report bugs to <https://bugzilla.quagga.net>." 23382 23383_ACEOF 23384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23385ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 23386ac_cs_version="\\ 23387Quagga config.status 0.99.24 23388configured by $0, generated by GNU Autoconf 2.69, 23389 with options \\"\$ac_cs_config\\" 23390 23391Copyright (C) 2012 Free Software Foundation, Inc. 23392This config.status script is free software; the Free Software Foundation 23393gives unlimited permission to copy, distribute and modify it." 23394 23395ac_pwd='$ac_pwd' 23396srcdir='$srcdir' 23397INSTALL='$INSTALL' 23398MKDIR_P='$MKDIR_P' 23399AWK='$AWK' 23400test -n "\$AWK" || AWK=awk 23401_ACEOF 23402 23403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23404# The default lists apply if the user does not specify any file. 23405ac_need_defaults=: 23406while test $# != 0 23407do 23408 case $1 in 23409 --*=?*) 23410 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23411 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23412 ac_shift=: 23413 ;; 23414 --*=) 23415 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23416 ac_optarg= 23417 ac_shift=: 23418 ;; 23419 *) 23420 ac_option=$1 23421 ac_optarg=$2 23422 ac_shift=shift 23423 ;; 23424 esac 23425 23426 case $ac_option in 23427 # Handling of the options. 23428 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23429 ac_cs_recheck=: ;; 23430 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23431 $as_echo "$ac_cs_version"; exit ;; 23432 --config | --confi | --conf | --con | --co | --c ) 23433 $as_echo "$ac_cs_config"; exit ;; 23434 --debug | --debu | --deb | --de | --d | -d ) 23435 debug=: ;; 23436 --file | --fil | --fi | --f ) 23437 $ac_shift 23438 case $ac_optarg in 23439 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23440 '') as_fn_error $? "missing file argument" ;; 23441 esac 23442 as_fn_append CONFIG_FILES " '$ac_optarg'" 23443 ac_need_defaults=false;; 23444 --header | --heade | --head | --hea ) 23445 $ac_shift 23446 case $ac_optarg in 23447 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23448 esac 23449 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 23450 ac_need_defaults=false;; 23451 --he | --h) 23452 # Conflict between --help and --header 23453 as_fn_error $? "ambiguous option: \`$1' 23454Try \`$0 --help' for more information.";; 23455 --help | --hel | -h ) 23456 $as_echo "$ac_cs_usage"; exit ;; 23457 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23458 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23459 ac_cs_silent=: ;; 23460 23461 # This is an error. 23462 -*) as_fn_error $? "unrecognized option: \`$1' 23463Try \`$0 --help' for more information." ;; 23464 23465 *) as_fn_append ac_config_targets " $1" 23466 ac_need_defaults=false ;; 23467 23468 esac 23469 shift 23470done 23471 23472ac_configure_extra_args= 23473 23474if $ac_cs_silent; then 23475 exec 6>/dev/null 23476 ac_configure_extra_args="$ac_configure_extra_args --silent" 23477fi 23478 23479_ACEOF 23480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23481if \$ac_cs_recheck; then 23482 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23483 shift 23484 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 23485 CONFIG_SHELL='$SHELL' 23486 export CONFIG_SHELL 23487 exec "\$@" 23488fi 23489 23490_ACEOF 23491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23492exec 5>>config.log 23493{ 23494 echo 23495 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23496## Running $as_me. ## 23497_ASBOX 23498 $as_echo "$ac_log" 23499} >&5 23500 23501_ACEOF 23502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23503# 23504# INIT-COMMANDS 23505# 23506AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23507 23508 23509# The HP-UX ksh and POSIX shell print the target directory to stdout 23510# if CDPATH is set. 23511(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 23512 23513sed_quote_subst='$sed_quote_subst' 23514double_quote_subst='$double_quote_subst' 23515delay_variable_subst='$delay_variable_subst' 23516macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 23517macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 23518enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 23519enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 23520pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 23521enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 23522shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 23523SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 23524ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 23525PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 23526host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 23527host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 23528host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 23529build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 23530build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 23531build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 23532SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 23533Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 23534GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 23535EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 23536FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 23537LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 23538NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 23539LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 23540max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 23541ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 23542exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 23543lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 23544lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 23545lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 23546lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 23547lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 23548reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 23549reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 23550OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 23551deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 23552file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 23553file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 23554want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 23555DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 23556sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 23557AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 23558AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 23559archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 23560STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 23561RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 23562old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23563old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23564old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 23565lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 23566CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 23567CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 23568compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 23569GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 23570lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 23571lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 23572lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 23573lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 23574lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 23575lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 23576nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 23577lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 23578lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 23579objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 23580MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 23581lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 23582lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 23583lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 23584lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 23585lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 23586need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 23587MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 23588DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 23589NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 23590LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 23591OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 23592OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 23593libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 23594shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 23595extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23596archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 23597enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 23598export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 23599whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 23600compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 23601old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 23602old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23603archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 23604archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23605module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 23606module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23607with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 23608allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 23609no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 23610hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 23611hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 23612hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 23613hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 23614hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 23615hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 23616hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 23617inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 23618link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 23619always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 23620export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 23621exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 23622include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 23623prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 23624postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 23625file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 23626variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 23627need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 23628need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 23629version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 23630runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 23631shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 23632shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 23633libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 23634library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 23635soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 23636install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 23637postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23638postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23639finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 23640finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 23641hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 23642sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 23643configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 23644configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 23645hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 23646enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 23647enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 23648enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 23649old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 23650striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 23651 23652LTCC='$LTCC' 23653LTCFLAGS='$LTCFLAGS' 23654compiler='$compiler_DEFAULT' 23655 23656# A function that is used when there is no print builtin or printf. 23657func_fallback_echo () 23658{ 23659 eval 'cat <<_LTECHO_EOF 23660\$1 23661_LTECHO_EOF' 23662} 23663 23664# Quote evaled strings. 23665for var in SHELL \ 23666ECHO \ 23667PATH_SEPARATOR \ 23668SED \ 23669GREP \ 23670EGREP \ 23671FGREP \ 23672LD \ 23673NM \ 23674LN_S \ 23675lt_SP2NL \ 23676lt_NL2SP \ 23677reload_flag \ 23678OBJDUMP \ 23679deplibs_check_method \ 23680file_magic_cmd \ 23681file_magic_glob \ 23682want_nocaseglob \ 23683DLLTOOL \ 23684sharedlib_from_linklib_cmd \ 23685AR \ 23686AR_FLAGS \ 23687archiver_list_spec \ 23688STRIP \ 23689RANLIB \ 23690CC \ 23691CFLAGS \ 23692compiler \ 23693lt_cv_sys_global_symbol_pipe \ 23694lt_cv_sys_global_symbol_to_cdecl \ 23695lt_cv_sys_global_symbol_to_import \ 23696lt_cv_sys_global_symbol_to_c_name_address \ 23697lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 23698lt_cv_nm_interface \ 23699nm_file_list_spec \ 23700lt_cv_truncate_bin \ 23701lt_prog_compiler_no_builtin_flag \ 23702lt_prog_compiler_pic \ 23703lt_prog_compiler_wl \ 23704lt_prog_compiler_static \ 23705lt_cv_prog_compiler_c_o \ 23706need_locks \ 23707MANIFEST_TOOL \ 23708DSYMUTIL \ 23709NMEDIT \ 23710LIPO \ 23711OTOOL \ 23712OTOOL64 \ 23713shrext_cmds \ 23714export_dynamic_flag_spec \ 23715whole_archive_flag_spec \ 23716compiler_needs_object \ 23717with_gnu_ld \ 23718allow_undefined_flag \ 23719no_undefined_flag \ 23720hardcode_libdir_flag_spec \ 23721hardcode_libdir_separator \ 23722exclude_expsyms \ 23723include_expsyms \ 23724file_list_spec \ 23725variables_saved_for_relink \ 23726libname_spec \ 23727library_names_spec \ 23728soname_spec \ 23729install_override_mode \ 23730finish_eval \ 23731old_striplib \ 23732striplib; do 23733 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23734 *[\\\\\\\`\\"\\\$]*) 23735 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23736 ;; 23737 *) 23738 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23739 ;; 23740 esac 23741done 23742 23743# Double-quote double-evaled strings. 23744for var in reload_cmds \ 23745old_postinstall_cmds \ 23746old_postuninstall_cmds \ 23747old_archive_cmds \ 23748extract_expsyms_cmds \ 23749old_archive_from_new_cmds \ 23750old_archive_from_expsyms_cmds \ 23751archive_cmds \ 23752archive_expsym_cmds \ 23753module_cmds \ 23754module_expsym_cmds \ 23755export_symbols_cmds \ 23756prelink_cmds \ 23757postlink_cmds \ 23758postinstall_cmds \ 23759postuninstall_cmds \ 23760finish_cmds \ 23761sys_lib_search_path_spec \ 23762configure_time_dlsearch_path \ 23763configure_time_lt_sys_library_path; do 23764 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23765 *[\\\\\\\`\\"\\\$]*) 23766 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23767 ;; 23768 *) 23769 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23770 ;; 23771 esac 23772done 23773 23774ac_aux_dir='$ac_aux_dir' 23775 23776# See if we are running on zsh, and set the options that allow our 23777# commands through without removal of \ escapes INIT. 23778if test -n "\${ZSH_VERSION+set}"; then 23779 setopt NO_GLOB_SUBST 23780fi 23781 23782 23783 PACKAGE='$PACKAGE' 23784 VERSION='$VERSION' 23785 RM='$RM' 23786 ofile='$ofile' 23787 23788 23789 23790 23791_ACEOF 23792 23793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23794 23795# Handling of arguments. 23796for ac_config_target in $ac_config_targets 23797do 23798 case $ac_config_target in 23799 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 23800 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23801 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 23802 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23803 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 23804 "zebra/Makefile") CONFIG_FILES="$CONFIG_FILES zebra/Makefile" ;; 23805 "ripd/Makefile") CONFIG_FILES="$CONFIG_FILES ripd/Makefile" ;; 23806 "ripngd/Makefile") CONFIG_FILES="$CONFIG_FILES ripngd/Makefile" ;; 23807 "bgpd/Makefile") CONFIG_FILES="$CONFIG_FILES bgpd/Makefile" ;; 23808 "ospfd/Makefile") CONFIG_FILES="$CONFIG_FILES ospfd/Makefile" ;; 23809 "watchquagga/Makefile") CONFIG_FILES="$CONFIG_FILES watchquagga/Makefile" ;; 23810 "ospf6d/Makefile") CONFIG_FILES="$CONFIG_FILES ospf6d/Makefile" ;; 23811 "isisd/Makefile") CONFIG_FILES="$CONFIG_FILES isisd/Makefile" ;; 23812 "babeld/Makefile") CONFIG_FILES="$CONFIG_FILES babeld/Makefile" ;; 23813 "vtysh/Makefile") CONFIG_FILES="$CONFIG_FILES vtysh/Makefile" ;; 23814 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 23815 "ospfclient/Makefile") CONFIG_FILES="$CONFIG_FILES ospfclient/Makefile" ;; 23816 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 23817 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 23818 "pimd/Makefile") CONFIG_FILES="$CONFIG_FILES pimd/Makefile" ;; 23819 "tests/bgpd.tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bgpd.tests/Makefile" ;; 23820 "tests/libzebra.tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libzebra.tests/Makefile" ;; 23821 "redhat/Makefile") CONFIG_FILES="$CONFIG_FILES redhat/Makefile" ;; 23822 "pkgsrc/Makefile") CONFIG_FILES="$CONFIG_FILES pkgsrc/Makefile" ;; 23823 "redhat/quagga.spec") CONFIG_FILES="$CONFIG_FILES redhat/quagga.spec" ;; 23824 "lib/version.h") CONFIG_FILES="$CONFIG_FILES lib/version.h" ;; 23825 "doc/defines.texi") CONFIG_FILES="$CONFIG_FILES doc/defines.texi" ;; 23826 "isisd/topology/Makefile") CONFIG_FILES="$CONFIG_FILES isisd/topology/Makefile" ;; 23827 "pkgsrc/bgpd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/bgpd.sh" ;; 23828 "pkgsrc/ospf6d.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ospf6d.sh" ;; 23829 "pkgsrc/ospfd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ospfd.sh" ;; 23830 "pkgsrc/ripd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ripd.sh" ;; 23831 "pkgsrc/ripngd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ripngd.sh" ;; 23832 "pkgsrc/zebra.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/zebra.sh" ;; 23833 "solaris/Makefile") CONFIG_FILES="$CONFIG_FILES solaris/Makefile" ;; 23834 "vtysh/extract.pl") CONFIG_FILES="$CONFIG_FILES vtysh/extract.pl" ;; 23835 23836 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 23837 esac 23838done 23839 23840 23841# If the user did not use the arguments to specify the items to instantiate, 23842# then the envvar interface is used. Set only those that are not. 23843# We use the long form for the default assignment because of an extremely 23844# bizarre bug on SunOS 4.1.3. 23845if $ac_need_defaults; then 23846 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23847 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23848 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23849fi 23850 23851# Have a temporary directory for convenience. Make it in the build tree 23852# simply because there is no reason against having it here, and in addition, 23853# creating and moving files from /tmp can sometimes cause problems. 23854# Hook for its removal unless debugging. 23855# Note that there is a small window in which the directory will not be cleaned: 23856# after its creation but before its name has been assigned to `$tmp'. 23857$debug || 23858{ 23859 tmp= ac_tmp= 23860 trap 'exit_status=$? 23861 : "${ac_tmp:=$tmp}" 23862 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 23863' 0 23864 trap 'as_fn_exit 1' 1 2 13 15 23865} 23866# Create a (secure) tmp directory for tmp files. 23867 23868{ 23869 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23870 test -d "$tmp" 23871} || 23872{ 23873 tmp=./conf$$-$RANDOM 23874 (umask 077 && mkdir "$tmp") 23875} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 23876ac_tmp=$tmp 23877 23878# Set up the scripts for CONFIG_FILES section. 23879# No need to generate them if there are no CONFIG_FILES. 23880# This happens for instance with `./config.status config.h'. 23881if test -n "$CONFIG_FILES"; then 23882 23883 23884ac_cr=`echo X | tr X '\015'` 23885# On cygwin, bash can eat \r inside `` if the user requested igncr. 23886# But we know of no other shell where ac_cr would be empty at this 23887# point, so we can use a bashism as a fallback. 23888if test "x$ac_cr" = x; then 23889 eval ac_cr=\$\'\\r\' 23890fi 23891ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23892if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23893 ac_cs_awk_cr='\\r' 23894else 23895 ac_cs_awk_cr=$ac_cr 23896fi 23897 23898echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 23899_ACEOF 23900 23901 23902{ 23903 echo "cat >conf$$subs.awk <<_ACEOF" && 23904 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23905 echo "_ACEOF" 23906} >conf$$subs.sh || 23907 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23908ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 23909ac_delim='%!_!# ' 23910for ac_last_try in false false false false false :; do 23911 . ./conf$$subs.sh || 23912 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23913 23914 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23915 if test $ac_delim_n = $ac_delim_num; then 23916 break 23917 elif $ac_last_try; then 23918 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23919 else 23920 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23921 fi 23922done 23923rm -f conf$$subs.sh 23924 23925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23926cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 23927_ACEOF 23928sed -n ' 23929h 23930s/^/S["/; s/!.*/"]=/ 23931p 23932g 23933s/^[^!]*!// 23934:repl 23935t repl 23936s/'"$ac_delim"'$// 23937t delim 23938:nl 23939h 23940s/\(.\{148\}\)..*/\1/ 23941t more1 23942s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23943p 23944n 23945b repl 23946:more1 23947s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23948p 23949g 23950s/.\{148\}// 23951t nl 23952:delim 23953h 23954s/\(.\{148\}\)..*/\1/ 23955t more2 23956s/["\\]/\\&/g; s/^/"/; s/$/"/ 23957p 23958b 23959:more2 23960s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23961p 23962g 23963s/.\{148\}// 23964t delim 23965' <conf$$subs.awk | sed ' 23966/^[^""]/{ 23967 N 23968 s/\n// 23969} 23970' >>$CONFIG_STATUS || ac_write_fail=1 23971rm -f conf$$subs.awk 23972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23973_ACAWK 23974cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 23975 for (key in S) S_is_set[key] = 1 23976 FS = "" 23977 23978} 23979{ 23980 line = $ 0 23981 nfields = split(line, field, "@") 23982 substed = 0 23983 len = length(field[1]) 23984 for (i = 2; i < nfields; i++) { 23985 key = field[i] 23986 keylen = length(key) 23987 if (S_is_set[key]) { 23988 value = S[key] 23989 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23990 len += length(value) + length(field[++i]) 23991 substed = 1 23992 } else 23993 len += 1 + keylen 23994 } 23995 23996 print line 23997} 23998 23999_ACAWK 24000_ACEOF 24001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24002if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 24003 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 24004else 24005 cat 24006fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 24007 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 24008_ACEOF 24009 24010# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 24011# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 24012# trailing colons and then remove the whole line if VPATH becomes empty 24013# (actually we leave an empty line to preserve line numbers). 24014if test "x$srcdir" = x.; then 24015 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 24016h 24017s/// 24018s/^/:/ 24019s/[ ]*$/:/ 24020s/:\$(srcdir):/:/g 24021s/:\${srcdir}:/:/g 24022s/:@srcdir@:/:/g 24023s/^:*// 24024s/:*$// 24025x 24026s/\(=[ ]*\).*/\1/ 24027G 24028s/\n// 24029s/^[^=]*=[ ]*$// 24030}' 24031fi 24032 24033cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24034fi # test -n "$CONFIG_FILES" 24035 24036# Set up the scripts for CONFIG_HEADERS section. 24037# No need to generate them if there are no CONFIG_HEADERS. 24038# This happens for instance with `./config.status Makefile'. 24039if test -n "$CONFIG_HEADERS"; then 24040cat >"$ac_tmp/defines.awk" <<\_ACAWK || 24041BEGIN { 24042_ACEOF 24043 24044# Transform confdefs.h into an awk script `defines.awk', embedded as 24045# here-document in config.status, that substitutes the proper values into 24046# config.h.in to produce config.h. 24047 24048# Create a delimiter string that does not exist in confdefs.h, to ease 24049# handling of long lines. 24050ac_delim='%!_!# ' 24051for ac_last_try in false false :; do 24052 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 24053 if test -z "$ac_tt"; then 24054 break 24055 elif $ac_last_try; then 24056 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 24057 else 24058 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24059 fi 24060done 24061 24062# For the awk script, D is an array of macro values keyed by name, 24063# likewise P contains macro parameters if any. Preserve backslash 24064# newline sequences. 24065 24066ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 24067sed -n ' 24068s/.\{148\}/&'"$ac_delim"'/g 24069t rset 24070:rset 24071s/^[ ]*#[ ]*define[ ][ ]*/ / 24072t def 24073d 24074:def 24075s/\\$// 24076t bsnl 24077s/["\\]/\\&/g 24078s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24079D["\1"]=" \3"/p 24080s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 24081d 24082:bsnl 24083s/["\\]/\\&/g 24084s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24085D["\1"]=" \3\\\\\\n"\\/p 24086t cont 24087s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 24088t cont 24089d 24090:cont 24091n 24092s/.\{148\}/&'"$ac_delim"'/g 24093t clear 24094:clear 24095s/\\$// 24096t bsnlc 24097s/["\\]/\\&/g; s/^/"/; s/$/"/p 24098d 24099:bsnlc 24100s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 24101b cont 24102' <confdefs.h | sed ' 24103s/'"$ac_delim"'/"\\\ 24104"/g' >>$CONFIG_STATUS || ac_write_fail=1 24105 24106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24107 for (key in D) D_is_set[key] = 1 24108 FS = "" 24109} 24110/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 24111 line = \$ 0 24112 split(line, arg, " ") 24113 if (arg[1] == "#") { 24114 defundef = arg[2] 24115 mac1 = arg[3] 24116 } else { 24117 defundef = substr(arg[1], 2) 24118 mac1 = arg[2] 24119 } 24120 split(mac1, mac2, "(") #) 24121 macro = mac2[1] 24122 prefix = substr(line, 1, index(line, defundef) - 1) 24123 if (D_is_set[macro]) { 24124 # Preserve the white space surrounding the "#". 24125 print prefix "define", macro P[macro] D[macro] 24126 next 24127 } else { 24128 # Replace #undef with comments. This is necessary, for example, 24129 # in the case of _POSIX_SOURCE, which is predefined and required 24130 # on some systems where configure will not decide to define it. 24131 if (defundef == "undef") { 24132 print "/*", prefix defundef, macro, "*/" 24133 next 24134 } 24135 } 24136} 24137{ print } 24138_ACAWK 24139_ACEOF 24140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24141 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 24142fi # test -n "$CONFIG_HEADERS" 24143 24144 24145eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 24146shift 24147for ac_tag 24148do 24149 case $ac_tag in 24150 :[FHLC]) ac_mode=$ac_tag; continue;; 24151 esac 24152 case $ac_mode$ac_tag in 24153 :[FHL]*:*);; 24154 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 24155 :[FH]-) ac_tag=-:-;; 24156 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 24157 esac 24158 ac_save_IFS=$IFS 24159 IFS=: 24160 set x $ac_tag 24161 IFS=$ac_save_IFS 24162 shift 24163 ac_file=$1 24164 shift 24165 24166 case $ac_mode in 24167 :L) ac_source=$1;; 24168 :[FH]) 24169 ac_file_inputs= 24170 for ac_f 24171 do 24172 case $ac_f in 24173 -) ac_f="$ac_tmp/stdin";; 24174 *) # Look for the file first in the build tree, then in the source tree 24175 # (if the path is not absolute). The absolute path cannot be DOS-style, 24176 # because $ac_f cannot contain `:'. 24177 test -f "$ac_f" || 24178 case $ac_f in 24179 [\\/$]*) false;; 24180 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 24181 esac || 24182 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 24183 esac 24184 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 24185 as_fn_append ac_file_inputs " '$ac_f'" 24186 done 24187 24188 # Let's still pretend it is `configure' which instantiates (i.e., don't 24189 # use $as_me), people would be surprised to read: 24190 # /* config.h. Generated by config.status. */ 24191 configure_input='Generated from '` 24192 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 24193 `' by configure.' 24194 if test x"$ac_file" != x-; then 24195 configure_input="$ac_file. $configure_input" 24196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 24197$as_echo "$as_me: creating $ac_file" >&6;} 24198 fi 24199 # Neutralize special characters interpreted by sed in replacement strings. 24200 case $configure_input in #( 24201 *\&* | *\|* | *\\* ) 24202 ac_sed_conf_input=`$as_echo "$configure_input" | 24203 sed 's/[\\\\&|]/\\\\&/g'`;; #( 24204 *) ac_sed_conf_input=$configure_input;; 24205 esac 24206 24207 case $ac_tag in 24208 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 24209 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 24210 esac 24211 ;; 24212 esac 24213 24214 ac_dir=`$as_dirname -- "$ac_file" || 24215$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24216 X"$ac_file" : 'X\(//\)[^/]' \| \ 24217 X"$ac_file" : 'X\(//\)$' \| \ 24218 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 24219$as_echo X"$ac_file" | 24220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24221 s//\1/ 24222 q 24223 } 24224 /^X\(\/\/\)[^/].*/{ 24225 s//\1/ 24226 q 24227 } 24228 /^X\(\/\/\)$/{ 24229 s//\1/ 24230 q 24231 } 24232 /^X\(\/\).*/{ 24233 s//\1/ 24234 q 24235 } 24236 s/.*/./; q'` 24237 as_dir="$ac_dir"; as_fn_mkdir_p 24238 ac_builddir=. 24239 24240case "$ac_dir" in 24241.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24242*) 24243 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 24244 # A ".." for each directory in $ac_dir_suffix. 24245 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 24246 case $ac_top_builddir_sub in 24247 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24248 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24249 esac ;; 24250esac 24251ac_abs_top_builddir=$ac_pwd 24252ac_abs_builddir=$ac_pwd$ac_dir_suffix 24253# for backward compatibility: 24254ac_top_builddir=$ac_top_build_prefix 24255 24256case $srcdir in 24257 .) # We are building in place. 24258 ac_srcdir=. 24259 ac_top_srcdir=$ac_top_builddir_sub 24260 ac_abs_top_srcdir=$ac_pwd ;; 24261 [\\/]* | ?:[\\/]* ) # Absolute name. 24262 ac_srcdir=$srcdir$ac_dir_suffix; 24263 ac_top_srcdir=$srcdir 24264 ac_abs_top_srcdir=$srcdir ;; 24265 *) # Relative name. 24266 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24267 ac_top_srcdir=$ac_top_build_prefix$srcdir 24268 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24269esac 24270ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24271 24272 24273 case $ac_mode in 24274 :F) 24275 # 24276 # CONFIG_FILE 24277 # 24278 24279 case $INSTALL in 24280 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24281 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 24282 esac 24283 ac_MKDIR_P=$MKDIR_P 24284 case $MKDIR_P in 24285 [\\/$]* | ?:[\\/]* ) ;; 24286 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 24287 esac 24288_ACEOF 24289 24290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24291# If the template does not know about datarootdir, expand it. 24292# FIXME: This hack should be removed a few years after 2.60. 24293ac_datarootdir_hack=; ac_datarootdir_seen= 24294ac_sed_dataroot=' 24295/datarootdir/ { 24296 p 24297 q 24298} 24299/@datadir@/p 24300/@docdir@/p 24301/@infodir@/p 24302/@localedir@/p 24303/@mandir@/p' 24304case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 24305*datarootdir*) ac_datarootdir_seen=yes;; 24306*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24308$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24309_ACEOF 24310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24311 ac_datarootdir_hack=' 24312 s&@datadir@&$datadir&g 24313 s&@docdir@&$docdir&g 24314 s&@infodir@&$infodir&g 24315 s&@localedir@&$localedir&g 24316 s&@mandir@&$mandir&g 24317 s&\\\${datarootdir}&$datarootdir&g' ;; 24318esac 24319_ACEOF 24320 24321# Neutralize VPATH when `$srcdir' = `.'. 24322# Shell code in configure.ac might set extrasub. 24323# FIXME: do we really want to maintain this feature? 24324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24325ac_sed_extra="$ac_vpsub 24326$extrasub 24327_ACEOF 24328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24329:t 24330/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24331s|@configure_input@|$ac_sed_conf_input|;t t 24332s&@top_builddir@&$ac_top_builddir_sub&;t t 24333s&@top_build_prefix@&$ac_top_build_prefix&;t t 24334s&@srcdir@&$ac_srcdir&;t t 24335s&@abs_srcdir@&$ac_abs_srcdir&;t t 24336s&@top_srcdir@&$ac_top_srcdir&;t t 24337s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24338s&@builddir@&$ac_builddir&;t t 24339s&@abs_builddir@&$ac_abs_builddir&;t t 24340s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24341s&@INSTALL@&$ac_INSTALL&;t t 24342s&@MKDIR_P@&$ac_MKDIR_P&;t t 24343$ac_datarootdir_hack 24344" 24345eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 24346 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24347 24348test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24349 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 24350 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 24351 "$ac_tmp/out"`; test -z "$ac_out"; } && 24352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24353which seems to be undefined. Please make sure it is defined" >&5 24354$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24355which seems to be undefined. Please make sure it is defined" >&2;} 24356 24357 rm -f "$ac_tmp/stdin" 24358 case $ac_file in 24359 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 24360 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 24361 esac \ 24362 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24363 ;; 24364 :H) 24365 # 24366 # CONFIG_HEADER 24367 # 24368 if test x"$ac_file" != x-; then 24369 { 24370 $as_echo "/* $configure_input */" \ 24371 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 24372 } >"$ac_tmp/config.h" \ 24373 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24374 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 24375 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 24376$as_echo "$as_me: $ac_file is unchanged" >&6;} 24377 else 24378 rm -f "$ac_file" 24379 mv "$ac_tmp/config.h" "$ac_file" \ 24380 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24381 fi 24382 else 24383 $as_echo "/* $configure_input */" \ 24384 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 24385 || as_fn_error $? "could not create -" "$LINENO" 5 24386 fi 24387# Compute "$ac_file"'s index in $config_headers. 24388_am_arg="$ac_file" 24389_am_stamp_count=1 24390for _am_header in $config_headers :; do 24391 case $_am_header in 24392 $_am_arg | $_am_arg:* ) 24393 break ;; 24394 * ) 24395 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24396 esac 24397done 24398echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 24399$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24400 X"$_am_arg" : 'X\(//\)[^/]' \| \ 24401 X"$_am_arg" : 'X\(//\)$' \| \ 24402 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 24403$as_echo X"$_am_arg" | 24404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24405 s//\1/ 24406 q 24407 } 24408 /^X\(\/\/\)[^/].*/{ 24409 s//\1/ 24410 q 24411 } 24412 /^X\(\/\/\)$/{ 24413 s//\1/ 24414 q 24415 } 24416 /^X\(\/\).*/{ 24417 s//\1/ 24418 q 24419 } 24420 s/.*/./; q'`/stamp-h$_am_stamp_count 24421 ;; 24422 24423 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 24424$as_echo "$as_me: executing $ac_file commands" >&6;} 24425 ;; 24426 esac 24427 24428 24429 case $ac_file$ac_mode in 24430 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 24431 # Older Autoconf quotes --file arguments for eval, but not when files 24432 # are listed without --file. Let's play safe and only enable the eval 24433 # if we detect the quoting. 24434 case $CONFIG_FILES in 24435 *\'*) eval set x "$CONFIG_FILES" ;; 24436 *) set x $CONFIG_FILES ;; 24437 esac 24438 shift 24439 for mf 24440 do 24441 # Strip MF so we end up with the name of the file. 24442 mf=`echo "$mf" | sed -e 's/:.*$//'` 24443 # Check whether this is an Automake generated Makefile or not. 24444 # We used to match only the files named 'Makefile.in', but 24445 # some people rename them; so instead we look at the file content. 24446 # Grep'ing the first line is not enough: some people post-process 24447 # each Makefile.in and add a new line on top of each file to say so. 24448 # Grep'ing the whole file is not good either: AIX grep has a line 24449 # limit of 2048, but all sed's we know have understand at least 4000. 24450 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 24451 dirpart=`$as_dirname -- "$mf" || 24452$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24453 X"$mf" : 'X\(//\)[^/]' \| \ 24454 X"$mf" : 'X\(//\)$' \| \ 24455 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 24456$as_echo X"$mf" | 24457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24458 s//\1/ 24459 q 24460 } 24461 /^X\(\/\/\)[^/].*/{ 24462 s//\1/ 24463 q 24464 } 24465 /^X\(\/\/\)$/{ 24466 s//\1/ 24467 q 24468 } 24469 /^X\(\/\).*/{ 24470 s//\1/ 24471 q 24472 } 24473 s/.*/./; q'` 24474 else 24475 continue 24476 fi 24477 # Extract the definition of DEPDIR, am__include, and am__quote 24478 # from the Makefile without running 'make'. 24479 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 24480 test -z "$DEPDIR" && continue 24481 am__include=`sed -n 's/^am__include = //p' < "$mf"` 24482 test -z "$am__include" && continue 24483 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 24484 # Find all dependency output files, they are included files with 24485 # $(DEPDIR) in their names. We invoke sed twice because it is the 24486 # simplest approach to changing $(DEPDIR) to its actual value in the 24487 # expansion. 24488 for file in `sed -n " 24489 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 24490 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 24491 # Make sure the directory exists. 24492 test -f "$dirpart/$file" && continue 24493 fdir=`$as_dirname -- "$file" || 24494$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24495 X"$file" : 'X\(//\)[^/]' \| \ 24496 X"$file" : 'X\(//\)$' \| \ 24497 X"$file" : 'X\(/\)' \| . 2>/dev/null || 24498$as_echo X"$file" | 24499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24500 s//\1/ 24501 q 24502 } 24503 /^X\(\/\/\)[^/].*/{ 24504 s//\1/ 24505 q 24506 } 24507 /^X\(\/\/\)$/{ 24508 s//\1/ 24509 q 24510 } 24511 /^X\(\/\).*/{ 24512 s//\1/ 24513 q 24514 } 24515 s/.*/./; q'` 24516 as_dir=$dirpart/$fdir; as_fn_mkdir_p 24517 # echo "creating $dirpart/$file" 24518 echo '# dummy' > "$dirpart/$file" 24519 done 24520 done 24521} 24522 ;; 24523 "libtool":C) 24524 24525 # See if we are running on zsh, and set the options that allow our 24526 # commands through without removal of \ escapes. 24527 if test -n "${ZSH_VERSION+set}"; then 24528 setopt NO_GLOB_SUBST 24529 fi 24530 24531 cfgfile=${ofile}T 24532 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 24533 $RM "$cfgfile" 24534 24535 cat <<_LT_EOF >> "$cfgfile" 24536#! $SHELL 24537# Generated automatically by $as_me ($PACKAGE) $VERSION 24538# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 24539# NOTE: Changes made to this file will be lost: look at ltmain.sh. 24540 24541# Provide generalized library-building support services. 24542# Written by Gordon Matzigkeit, 1996 24543 24544# Copyright (C) 2014 Free Software Foundation, Inc. 24545# This is free software; see the source for copying conditions. There is NO 24546# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 24547 24548# GNU Libtool is free software; you can redistribute it and/or modify 24549# it under the terms of the GNU General Public License as published by 24550# the Free Software Foundation; either version 2 of of the License, or 24551# (at your option) any later version. 24552# 24553# As a special exception to the GNU General Public License, if you 24554# distribute this file as part of a program or library that is built 24555# using GNU Libtool, you may include this file under the same 24556# distribution terms that you use for the rest of that program. 24557# 24558# GNU Libtool is distributed in the hope that it will be useful, but 24559# WITHOUT ANY WARRANTY; without even the implied warranty of 24560# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24561# GNU General Public License for more details. 24562# 24563# You should have received a copy of the GNU General Public License 24564# along with this program. If not, see <http://www.gnu.org/licenses/>. 24565 24566 24567# The names of the tagged configurations supported by this script. 24568available_tags='' 24569 24570# Configured defaults for sys_lib_dlsearch_path munging. 24571: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 24572 24573# ### BEGIN LIBTOOL CONFIG 24574 24575# Which release of libtool.m4 was used? 24576macro_version=$macro_version 24577macro_revision=$macro_revision 24578 24579# Whether or not to build shared libraries. 24580build_libtool_libs=$enable_shared 24581 24582# Whether or not to build static libraries. 24583build_old_libs=$enable_static 24584 24585# What type of objects to build. 24586pic_mode=$pic_mode 24587 24588# Whether or not to optimize for fast installation. 24589fast_install=$enable_fast_install 24590 24591# Shared archive member basename,for filename based shared library versioning on AIX. 24592shared_archive_member_spec=$shared_archive_member_spec 24593 24594# Shell to use when invoking shell scripts. 24595SHELL=$lt_SHELL 24596 24597# An echo program that protects backslashes. 24598ECHO=$lt_ECHO 24599 24600# The PATH separator for the build system. 24601PATH_SEPARATOR=$lt_PATH_SEPARATOR 24602 24603# The host system. 24604host_alias=$host_alias 24605host=$host 24606host_os=$host_os 24607 24608# The build system. 24609build_alias=$build_alias 24610build=$build 24611build_os=$build_os 24612 24613# A sed program that does not truncate output. 24614SED=$lt_SED 24615 24616# Sed that helps us avoid accidentally triggering echo(1) options like -n. 24617Xsed="\$SED -e 1s/^X//" 24618 24619# A grep program that handles long lines. 24620GREP=$lt_GREP 24621 24622# An ERE matcher. 24623EGREP=$lt_EGREP 24624 24625# A literal string matcher. 24626FGREP=$lt_FGREP 24627 24628# A BSD- or MS-compatible name lister. 24629NM=$lt_NM 24630 24631# Whether we need soft or hard links. 24632LN_S=$lt_LN_S 24633 24634# What is the maximum length of a command? 24635max_cmd_len=$max_cmd_len 24636 24637# Object file suffix (normally "o"). 24638objext=$ac_objext 24639 24640# Executable file suffix (normally ""). 24641exeext=$exeext 24642 24643# whether the shell understands "unset". 24644lt_unset=$lt_unset 24645 24646# turn spaces into newlines. 24647SP2NL=$lt_lt_SP2NL 24648 24649# turn newlines into spaces. 24650NL2SP=$lt_lt_NL2SP 24651 24652# convert \$build file names to \$host format. 24653to_host_file_cmd=$lt_cv_to_host_file_cmd 24654 24655# convert \$build files to toolchain format. 24656to_tool_file_cmd=$lt_cv_to_tool_file_cmd 24657 24658# An object symbol dumper. 24659OBJDUMP=$lt_OBJDUMP 24660 24661# Method to check whether dependent libraries are shared objects. 24662deplibs_check_method=$lt_deplibs_check_method 24663 24664# Command to use when deplibs_check_method = "file_magic". 24665file_magic_cmd=$lt_file_magic_cmd 24666 24667# How to find potential files when deplibs_check_method = "file_magic". 24668file_magic_glob=$lt_file_magic_glob 24669 24670# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 24671want_nocaseglob=$lt_want_nocaseglob 24672 24673# DLL creation program. 24674DLLTOOL=$lt_DLLTOOL 24675 24676# Command to associate shared and link libraries. 24677sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 24678 24679# The archiver. 24680AR=$lt_AR 24681 24682# Flags to create an archive. 24683AR_FLAGS=$lt_AR_FLAGS 24684 24685# How to feed a file listing to the archiver. 24686archiver_list_spec=$lt_archiver_list_spec 24687 24688# A symbol stripping program. 24689STRIP=$lt_STRIP 24690 24691# Commands used to install an old-style archive. 24692RANLIB=$lt_RANLIB 24693old_postinstall_cmds=$lt_old_postinstall_cmds 24694old_postuninstall_cmds=$lt_old_postuninstall_cmds 24695 24696# Whether to use a lock for old archive extraction. 24697lock_old_archive_extraction=$lock_old_archive_extraction 24698 24699# A C compiler. 24700LTCC=$lt_CC 24701 24702# LTCC compiler flags. 24703LTCFLAGS=$lt_CFLAGS 24704 24705# Take the output of nm and produce a listing of raw symbols and C names. 24706global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 24707 24708# Transform the output of nm in a proper C declaration. 24709global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 24710 24711# Transform the output of nm into a list of symbols to manually relocate. 24712global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 24713 24714# Transform the output of nm in a C name address pair. 24715global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 24716 24717# Transform the output of nm in a C name address pair when lib prefix is needed. 24718global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 24719 24720# The name lister interface. 24721nm_interface=$lt_lt_cv_nm_interface 24722 24723# Specify filename containing input files for \$NM. 24724nm_file_list_spec=$lt_nm_file_list_spec 24725 24726# The root where to search for dependent libraries,and where our libraries should be installed. 24727lt_sysroot=$lt_sysroot 24728 24729# Command to truncate a binary pipe. 24730lt_truncate_bin=$lt_lt_cv_truncate_bin 24731 24732# The name of the directory that contains temporary libtool files. 24733objdir=$objdir 24734 24735# Used to examine libraries when file_magic_cmd begins with "file". 24736MAGIC_CMD=$MAGIC_CMD 24737 24738# Must we lock files when doing compilation? 24739need_locks=$lt_need_locks 24740 24741# Manifest tool. 24742MANIFEST_TOOL=$lt_MANIFEST_TOOL 24743 24744# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 24745DSYMUTIL=$lt_DSYMUTIL 24746 24747# Tool to change global to local symbols on Mac OS X. 24748NMEDIT=$lt_NMEDIT 24749 24750# Tool to manipulate fat objects and archives on Mac OS X. 24751LIPO=$lt_LIPO 24752 24753# ldd/readelf like tool for Mach-O binaries on Mac OS X. 24754OTOOL=$lt_OTOOL 24755 24756# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 24757OTOOL64=$lt_OTOOL64 24758 24759# Old archive suffix (normally "a"). 24760libext=$libext 24761 24762# Shared library suffix (normally ".so"). 24763shrext_cmds=$lt_shrext_cmds 24764 24765# The commands to extract the exported symbol list from a shared archive. 24766extract_expsyms_cmds=$lt_extract_expsyms_cmds 24767 24768# Variables whose values should be saved in libtool wrapper scripts and 24769# restored at link time. 24770variables_saved_for_relink=$lt_variables_saved_for_relink 24771 24772# Do we need the "lib" prefix for modules? 24773need_lib_prefix=$need_lib_prefix 24774 24775# Do we need a version for libraries? 24776need_version=$need_version 24777 24778# Library versioning type. 24779version_type=$version_type 24780 24781# Shared library runtime path variable. 24782runpath_var=$runpath_var 24783 24784# Shared library path variable. 24785shlibpath_var=$shlibpath_var 24786 24787# Is shlibpath searched before the hard-coded library search path? 24788shlibpath_overrides_runpath=$shlibpath_overrides_runpath 24789 24790# Format of library name prefix. 24791libname_spec=$lt_libname_spec 24792 24793# List of archive names. First name is the real one, the rest are links. 24794# The last name is the one that the linker finds with -lNAME 24795library_names_spec=$lt_library_names_spec 24796 24797# The coded name of the library, if different from the real name. 24798soname_spec=$lt_soname_spec 24799 24800# Permission mode override for installation of shared libraries. 24801install_override_mode=$lt_install_override_mode 24802 24803# Command to use after installation of a shared archive. 24804postinstall_cmds=$lt_postinstall_cmds 24805 24806# Command to use after uninstallation of a shared archive. 24807postuninstall_cmds=$lt_postuninstall_cmds 24808 24809# Commands used to finish a libtool library installation in a directory. 24810finish_cmds=$lt_finish_cmds 24811 24812# As "finish_cmds", except a single script fragment to be evaled but 24813# not shown. 24814finish_eval=$lt_finish_eval 24815 24816# Whether we should hardcode library paths into libraries. 24817hardcode_into_libs=$hardcode_into_libs 24818 24819# Compile-time system search path for libraries. 24820sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 24821 24822# Detected run-time system search path for libraries. 24823sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 24824 24825# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 24826configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 24827 24828# Whether dlopen is supported. 24829dlopen_support=$enable_dlopen 24830 24831# Whether dlopen of programs is supported. 24832dlopen_self=$enable_dlopen_self 24833 24834# Whether dlopen of statically linked programs is supported. 24835dlopen_self_static=$enable_dlopen_self_static 24836 24837# Commands to strip libraries. 24838old_striplib=$lt_old_striplib 24839striplib=$lt_striplib 24840 24841 24842# The linker used to build libraries. 24843LD=$lt_LD 24844 24845# How to create reloadable object files. 24846reload_flag=$lt_reload_flag 24847reload_cmds=$lt_reload_cmds 24848 24849# Commands used to build an old-style archive. 24850old_archive_cmds=$lt_old_archive_cmds 24851 24852# A language specific compiler. 24853CC=$lt_compiler 24854 24855# Is the compiler the GNU compiler? 24856with_gcc=$GCC 24857 24858# Compiler flag to turn off builtin functions. 24859no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 24860 24861# Additional compiler flags for building library objects. 24862pic_flag=$lt_lt_prog_compiler_pic 24863 24864# How to pass a linker flag through the compiler. 24865wl=$lt_lt_prog_compiler_wl 24866 24867# Compiler flag to prevent dynamic linking. 24868link_static_flag=$lt_lt_prog_compiler_static 24869 24870# Does compiler simultaneously support -c and -o options? 24871compiler_c_o=$lt_lt_cv_prog_compiler_c_o 24872 24873# Whether or not to add -lc for building shared libraries. 24874build_libtool_need_lc=$archive_cmds_need_lc 24875 24876# Whether or not to disallow shared libs when runtime libs are static. 24877allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 24878 24879# Compiler flag to allow reflexive dlopens. 24880export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 24881 24882# Compiler flag to generate shared objects directly from archives. 24883whole_archive_flag_spec=$lt_whole_archive_flag_spec 24884 24885# Whether the compiler copes with passing no objects directly. 24886compiler_needs_object=$lt_compiler_needs_object 24887 24888# Create an old-style archive from a shared archive. 24889old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 24890 24891# Create a temporary old-style archive to link instead of a shared archive. 24892old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 24893 24894# Commands used to build a shared archive. 24895archive_cmds=$lt_archive_cmds 24896archive_expsym_cmds=$lt_archive_expsym_cmds 24897 24898# Commands used to build a loadable module if different from building 24899# a shared archive. 24900module_cmds=$lt_module_cmds 24901module_expsym_cmds=$lt_module_expsym_cmds 24902 24903# Whether we are building with GNU ld or not. 24904with_gnu_ld=$lt_with_gnu_ld 24905 24906# Flag that allows shared libraries with undefined symbols to be built. 24907allow_undefined_flag=$lt_allow_undefined_flag 24908 24909# Flag that enforces no undefined symbols. 24910no_undefined_flag=$lt_no_undefined_flag 24911 24912# Flag to hardcode \$libdir into a binary during linking. 24913# This must work even if \$libdir does not exist 24914hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 24915 24916# Whether we need a single "-rpath" flag with a separated argument. 24917hardcode_libdir_separator=$lt_hardcode_libdir_separator 24918 24919# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24920# DIR into the resulting binary. 24921hardcode_direct=$hardcode_direct 24922 24923# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24924# DIR into the resulting binary and the resulting library dependency is 24925# "absolute",i.e impossible to change by setting \$shlibpath_var if the 24926# library is relocated. 24927hardcode_direct_absolute=$hardcode_direct_absolute 24928 24929# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24930# into the resulting binary. 24931hardcode_minus_L=$hardcode_minus_L 24932 24933# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24934# into the resulting binary. 24935hardcode_shlibpath_var=$hardcode_shlibpath_var 24936 24937# Set to "yes" if building a shared library automatically hardcodes DIR 24938# into the library and all subsequent libraries and executables linked 24939# against it. 24940hardcode_automatic=$hardcode_automatic 24941 24942# Set to yes if linker adds runtime paths of dependent libraries 24943# to runtime path list. 24944inherit_rpath=$inherit_rpath 24945 24946# Whether libtool must link a program against all its dependency libraries. 24947link_all_deplibs=$link_all_deplibs 24948 24949# Set to "yes" if exported symbols are required. 24950always_export_symbols=$always_export_symbols 24951 24952# The commands to list exported symbols. 24953export_symbols_cmds=$lt_export_symbols_cmds 24954 24955# Symbols that should not be listed in the preloaded symbols. 24956exclude_expsyms=$lt_exclude_expsyms 24957 24958# Symbols that must always be exported. 24959include_expsyms=$lt_include_expsyms 24960 24961# Commands necessary for linking programs (against libraries) with templates. 24962prelink_cmds=$lt_prelink_cmds 24963 24964# Commands necessary for finishing linking programs. 24965postlink_cmds=$lt_postlink_cmds 24966 24967# Specify filename containing input files. 24968file_list_spec=$lt_file_list_spec 24969 24970# How to hardcode a shared library path into an executable. 24971hardcode_action=$hardcode_action 24972 24973# ### END LIBTOOL CONFIG 24974 24975_LT_EOF 24976 24977 cat <<'_LT_EOF' >> "$cfgfile" 24978 24979# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 24980 24981# func_munge_path_list VARIABLE PATH 24982# ----------------------------------- 24983# VARIABLE is name of variable containing _space_ separated list of 24984# directories to be munged by the contents of PATH, which is string 24985# having a format: 24986# "DIR[:DIR]:" 24987# string "DIR[ DIR]" will be prepended to VARIABLE 24988# ":DIR[:DIR]" 24989# string "DIR[ DIR]" will be appended to VARIABLE 24990# "DIRP[:DIRP]::[DIRA:]DIRA" 24991# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 24992# "DIRA[ DIRA]" will be appended to VARIABLE 24993# "DIR[:DIR]" 24994# VARIABLE will be replaced by "DIR[ DIR]" 24995func_munge_path_list () 24996{ 24997 case x$2 in 24998 x) 24999 ;; 25000 *:) 25001 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 25002 ;; 25003 x:*) 25004 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 25005 ;; 25006 *::*) 25007 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 25008 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 25009 ;; 25010 *) 25011 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 25012 ;; 25013 esac 25014} 25015 25016 25017# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 25018func_cc_basename () 25019{ 25020 for cc_temp in $*""; do 25021 case $cc_temp in 25022 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 25023 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 25024 \-*) ;; 25025 *) break;; 25026 esac 25027 done 25028 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 25029} 25030 25031 25032# ### END FUNCTIONS SHARED WITH CONFIGURE 25033 25034_LT_EOF 25035 25036 case $host_os in 25037 aix3*) 25038 cat <<\_LT_EOF >> "$cfgfile" 25039# AIX sometimes has problems with the GCC collect2 program. For some 25040# reason, if we set the COLLECT_NAMES environment variable, the problems 25041# vanish in a puff of smoke. 25042if test set != "${COLLECT_NAMES+set}"; then 25043 COLLECT_NAMES= 25044 export COLLECT_NAMES 25045fi 25046_LT_EOF 25047 ;; 25048 esac 25049 25050 25051ltmain=$ac_aux_dir/ltmain.sh 25052 25053 25054 # We use sed instead of cat because bash on DJGPP gets confused if 25055 # if finds mixed CR/LF and LF-only lines. Since sed operates in 25056 # text mode, it properly converts lines to CR/LF. This bash problem 25057 # is reportedly fixed, but why not run on old versions too? 25058 sed '$q' "$ltmain" >> "$cfgfile" \ 25059 || (rm -f "$cfgfile"; exit 1) 25060 25061 mv -f "$cfgfile" "$ofile" || 25062 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 25063 chmod +x "$ofile" 25064 25065 ;; 25066 "vtysh/extract.pl":F) chmod +x vtysh/extract.pl ;; 25067 25068 esac 25069done # for ac_tag 25070 25071 25072as_fn_exit 0 25073_ACEOF 25074ac_clean_files=$ac_clean_files_save 25075 25076test $ac_write_fail = 0 || 25077 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 25078 25079 25080# configure is writing to config.log, and then calls config.status. 25081# config.status does its own redirection, appending to config.log. 25082# Unfortunately, on DOS this fails, as config.log is still kept open 25083# by configure, so config.status won't be able to write to it; its 25084# output is simply discarded. So we exec the FD to /dev/null, 25085# effectively closing config.log, so it can be properly (re)opened and 25086# appended to by config.status. When coming back to configure, we 25087# need to make the FD available again. 25088if test "$no_create" != yes; then 25089 ac_cs_success=: 25090 ac_config_status_args= 25091 test "$silent" = yes && 25092 ac_config_status_args="$ac_config_status_args --quiet" 25093 exec 5>/dev/null 25094 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25095 exec 5>>config.log 25096 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25097 # would make configure fail if this is the last instruction. 25098 $ac_cs_success || as_fn_exit 1 25099fi 25100if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 25101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 25102$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 25103fi 25104 25105 25106echo " 25107Quagga configuration 25108-------------------- 25109quagga version : ${PACKAGE_VERSION} 25110host operating system : ${host_os} 25111source code location : ${srcdir} 25112compiler : ${CC} 25113compiler flags : ${CFLAGS} 25114make : ${MAKE-make} 25115linker flags : ${LDFLAGS} ${LIBS} ${LIBCAP} ${LIBREADLINE} ${LIBM} 25116state file directory : ${quagga_statedir} 25117config file directory : `eval echo \`echo ${sysconfdir}\`` 25118example directory : `eval echo \`echo ${exampledir}\`` 25119user to run as : ${enable_user} 25120group to run as : ${enable_group} 25121group for vty sockets : ${enable_vty_group} 25122config file mask : ${enable_configfile_mask} 25123log file mask : ${enable_logfile_mask} 25124 25125The above user and group must have read/write access to the state file 25126directory and to the config files in the config file directory." 25127 25128if test x"$quagga_cv_gnu_make" = x"no"; then echo " 25129Warning: The ${MAKE-make} programme detected, either in your path or 25130via the MAKE variable, is not GNU Make. GNU make may be installed as 25131gmake on some systems. and is required to complete a build of Quagga 25132" > /dev/stderr 25133fi 25134