configure revision 555991fd
1126a8a12Smrg#! /bin/sh 2126a8a12Smrg# Guess values for system-dependent variables and create Makefiles. 3555991fdSmrg# Generated by GNU Autoconf 2.68 for libSM 1.2.0. 4126a8a12Smrg# 5126a8a12Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6126a8a12Smrg# 7555991fdSmrg# 8126a8a12Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9555991fdSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10555991fdSmrg# Foundation, Inc. 11555991fdSmrg# 12555991fdSmrg# 13126a8a12Smrg# This configure script is free software; the Free Software Foundation 14126a8a12Smrg# gives unlimited permission to copy, distribute and modify it. 15555991fdSmrg## -------------------- ## 16555991fdSmrg## M4sh Initialization. ## 17555991fdSmrg## -------------------- ## 18126a8a12Smrg 19126a8a12Smrg# Be more Bourne compatible 20126a8a12SmrgDUALCASE=1; export DUALCASE # for MKS sh 21555991fdSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22126a8a12Smrg emulate sh 23126a8a12Smrg NULLCMD=: 24d656433aSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25126a8a12Smrg # is contrary to our usage. Disable this feature. 26126a8a12Smrg alias -g '${1+"$@"}'='"$@"' 27126a8a12Smrg setopt NO_GLOB_SUBST 28126a8a12Smrgelse 29555991fdSmrg case `(set -o) 2>/dev/null` in #( 30555991fdSmrg *posix*) : 31555991fdSmrg set -o posix ;; #( 32555991fdSmrg *) : 33555991fdSmrg ;; 34126a8a12Smrgesac 35126a8a12Smrgfi 36126a8a12Smrg 37126a8a12Smrg 38d656433aSmrgas_nl=' 39d656433aSmrg' 40d656433aSmrgexport as_nl 41d656433aSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 42d656433aSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43d656433aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44d656433aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45555991fdSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 46555991fdSmrg# but without wasting forks for bash or zsh. 47555991fdSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 48555991fdSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49555991fdSmrg as_echo='print -r --' 50555991fdSmrg as_echo_n='print -rn --' 51555991fdSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52d656433aSmrg as_echo='printf %s\n' 53d656433aSmrg as_echo_n='printf %s' 54d656433aSmrgelse 55d656433aSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56d656433aSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57d656433aSmrg as_echo_n='/usr/ucb/echo -n' 58d656433aSmrg else 59d656433aSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60d656433aSmrg as_echo_n_body='eval 61d656433aSmrg arg=$1; 62555991fdSmrg case $arg in #( 63d656433aSmrg *"$as_nl"*) 64d656433aSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 65d656433aSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66d656433aSmrg esac; 67d656433aSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68d656433aSmrg ' 69d656433aSmrg export as_echo_n_body 70d656433aSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 71d656433aSmrg fi 72d656433aSmrg export as_echo_body 73d656433aSmrg as_echo='sh -c $as_echo_body as_echo' 74d656433aSmrgfi 75d656433aSmrg 76126a8a12Smrg# The user is always right. 77126a8a12Smrgif test "${PATH_SEPARATOR+set}" != set; then 78d656433aSmrg PATH_SEPARATOR=: 79d656433aSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80d656433aSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81d656433aSmrg PATH_SEPARATOR=';' 82d656433aSmrg } 83126a8a12Smrgfi 84126a8a12Smrg 85126a8a12Smrg 86126a8a12Smrg# IFS 87126a8a12Smrg# We need space, tab and new line, in precisely that order. Quoting is 88126a8a12Smrg# there to prevent editors from complaining about space-tab. 89126a8a12Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90126a8a12Smrg# splitting by setting IFS to empty value.) 91126a8a12SmrgIFS=" "" $as_nl" 92126a8a12Smrg 93126a8a12Smrg# Find who we are. Look in the path if we contain no directory separator. 94555991fdSmrgas_myself= 95555991fdSmrgcase $0 in #(( 96126a8a12Smrg *[\\/]* ) as_myself=$0 ;; 97126a8a12Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98126a8a12Smrgfor as_dir in $PATH 99126a8a12Smrgdo 100126a8a12Smrg IFS=$as_save_IFS 101126a8a12Smrg test -z "$as_dir" && as_dir=. 102555991fdSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103555991fdSmrg done 104126a8a12SmrgIFS=$as_save_IFS 105126a8a12Smrg 106126a8a12Smrg ;; 107126a8a12Smrgesac 108126a8a12Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 109126a8a12Smrg# in which case we are not to be found in the path. 110126a8a12Smrgif test "x$as_myself" = x; then 111126a8a12Smrg as_myself=$0 112126a8a12Smrgfi 113126a8a12Smrgif test ! -f "$as_myself"; then 114d656433aSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115555991fdSmrg exit 1 116126a8a12Smrgfi 117126a8a12Smrg 118555991fdSmrg# Unset variables that we do not need and which cause bugs (e.g. in 119555991fdSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120555991fdSmrg# suppresses any "Segmentation fault" message there. '((' could 121555991fdSmrg# trigger a bug in pdksh 5.2.14. 122555991fdSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 123555991fdSmrgdo eval test x\${$as_var+set} = xset \ 124555991fdSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125126a8a12Smrgdone 126126a8a12SmrgPS1='$ ' 127126a8a12SmrgPS2='> ' 128126a8a12SmrgPS4='+ ' 129126a8a12Smrg 130126a8a12Smrg# NLS nuisances. 131d656433aSmrgLC_ALL=C 132d656433aSmrgexport LC_ALL 133d656433aSmrgLANGUAGE=C 134d656433aSmrgexport LANGUAGE 135126a8a12Smrg 136555991fdSmrg# CDPATH. 137555991fdSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138555991fdSmrg 139555991fdSmrgif test "x$CONFIG_SHELL" = x; then 140555991fdSmrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141555991fdSmrg emulate sh 142555991fdSmrg NULLCMD=: 143555991fdSmrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144555991fdSmrg # is contrary to our usage. Disable this feature. 145555991fdSmrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 146555991fdSmrg setopt NO_GLOB_SUBST 147555991fdSmrgelse 148555991fdSmrg case \`(set -o) 2>/dev/null\` in #( 149555991fdSmrg *posix*) : 150555991fdSmrg set -o posix ;; #( 151555991fdSmrg *) : 152555991fdSmrg ;; 153555991fdSmrgesac 154555991fdSmrgfi 155555991fdSmrg" 156555991fdSmrg as_required="as_fn_return () { (exit \$1); } 157555991fdSmrgas_fn_success () { as_fn_return 0; } 158555991fdSmrgas_fn_failure () { as_fn_return 1; } 159555991fdSmrgas_fn_ret_success () { return 0; } 160555991fdSmrgas_fn_ret_failure () { return 1; } 161555991fdSmrg 162555991fdSmrgexitcode=0 163555991fdSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 164555991fdSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165555991fdSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166555991fdSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167555991fdSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168555991fdSmrg 169555991fdSmrgelse 170555991fdSmrg exitcode=1; echo positional parameters were not saved. 171555991fdSmrgfi 172555991fdSmrgtest x\$exitcode = x0 || exit 1" 173555991fdSmrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174555991fdSmrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175555991fdSmrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176555991fdSmrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177555991fdSmrgtest \$(( 1 + 1 )) = 2 || exit 1 178555991fdSmrg 179555991fdSmrg test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 180555991fdSmrg ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 181555991fdSmrg ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182555991fdSmrg ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 183555991fdSmrg PATH=/empty FPATH=/empty; export PATH FPATH 184555991fdSmrg test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 185555991fdSmrg || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 186555991fdSmrg if (eval "$as_required") 2>/dev/null; then : 187555991fdSmrg as_have_required=yes 188555991fdSmrgelse 189555991fdSmrg as_have_required=no 190555991fdSmrgfi 191555991fdSmrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192555991fdSmrg 193555991fdSmrgelse 194555991fdSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195555991fdSmrgas_found=false 196555991fdSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197555991fdSmrgdo 198555991fdSmrg IFS=$as_save_IFS 199555991fdSmrg test -z "$as_dir" && as_dir=. 200555991fdSmrg as_found=: 201555991fdSmrg case $as_dir in #( 202555991fdSmrg /*) 203555991fdSmrg for as_base in sh bash ksh sh5; do 204555991fdSmrg # Try only shells that exist, to save several forks. 205555991fdSmrg as_shell=$as_dir/$as_base 206555991fdSmrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207555991fdSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208555991fdSmrg CONFIG_SHELL=$as_shell as_have_required=yes 209555991fdSmrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210555991fdSmrg break 2 211555991fdSmrgfi 212555991fdSmrgfi 213555991fdSmrg done;; 214555991fdSmrg esac 215555991fdSmrg as_found=false 216555991fdSmrgdone 217555991fdSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218555991fdSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219555991fdSmrg CONFIG_SHELL=$SHELL as_have_required=yes 220555991fdSmrgfi; } 221555991fdSmrgIFS=$as_save_IFS 222555991fdSmrg 223555991fdSmrg 224555991fdSmrg if test "x$CONFIG_SHELL" != x; then : 225555991fdSmrg # We cannot yet assume a decent shell, so we have to provide a 226555991fdSmrg # neutralization value for shells without unset; and this also 227555991fdSmrg # works around shells that cannot unset nonexistent variables. 228555991fdSmrg # Preserve -v and -x to the replacement shell. 229555991fdSmrg BASH_ENV=/dev/null 230555991fdSmrg ENV=/dev/null 231555991fdSmrg (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232555991fdSmrg export CONFIG_SHELL 233555991fdSmrg case $- in # (((( 234555991fdSmrg *v*x* | *x*v* ) as_opts=-vx ;; 235555991fdSmrg *v* ) as_opts=-v ;; 236555991fdSmrg *x* ) as_opts=-x ;; 237555991fdSmrg * ) as_opts= ;; 238555991fdSmrg esac 239555991fdSmrg exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240555991fdSmrgfi 241555991fdSmrg 242555991fdSmrg if test x$as_have_required = xno; then : 243555991fdSmrg $as_echo "$0: This script requires a shell more modern than all" 244555991fdSmrg $as_echo "$0: the shells that I found on your system." 245555991fdSmrg if test x${ZSH_VERSION+set} = xset ; then 246555991fdSmrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247555991fdSmrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248555991fdSmrg else 249555991fdSmrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 250555991fdSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 251555991fdSmrg$0: about your system, including any error possibly output 252555991fdSmrg$0: before this message. Then install a modern shell, or 253555991fdSmrg$0: manually run the script under such a shell if you do 254555991fdSmrg$0: have one." 255555991fdSmrg fi 256555991fdSmrg exit 1 257555991fdSmrgfi 258555991fdSmrgfi 259555991fdSmrgfi 260555991fdSmrgSHELL=${CONFIG_SHELL-/bin/sh} 261555991fdSmrgexport SHELL 262555991fdSmrg# Unset more variables known to interfere with behavior of common tools. 263555991fdSmrgCLICOLOR_FORCE= GREP_OPTIONS= 264555991fdSmrgunset CLICOLOR_FORCE GREP_OPTIONS 265555991fdSmrg 266555991fdSmrg## --------------------- ## 267555991fdSmrg## M4sh Shell Functions. ## 268555991fdSmrg## --------------------- ## 269555991fdSmrg# as_fn_unset VAR 270555991fdSmrg# --------------- 271555991fdSmrg# Portably unset VAR. 272555991fdSmrgas_fn_unset () 273555991fdSmrg{ 274555991fdSmrg { eval $1=; unset $1;} 275555991fdSmrg} 276555991fdSmrgas_unset=as_fn_unset 277555991fdSmrg 278555991fdSmrg# as_fn_set_status STATUS 279555991fdSmrg# ----------------------- 280555991fdSmrg# Set $? to STATUS, without forking. 281555991fdSmrgas_fn_set_status () 282555991fdSmrg{ 283555991fdSmrg return $1 284555991fdSmrg} # as_fn_set_status 285555991fdSmrg 286555991fdSmrg# as_fn_exit STATUS 287555991fdSmrg# ----------------- 288555991fdSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 289555991fdSmrgas_fn_exit () 290555991fdSmrg{ 291555991fdSmrg set +e 292555991fdSmrg as_fn_set_status $1 293555991fdSmrg exit $1 294555991fdSmrg} # as_fn_exit 295555991fdSmrg 296555991fdSmrg# as_fn_mkdir_p 297555991fdSmrg# ------------- 298555991fdSmrg# Create "$as_dir" as a directory, including parents if necessary. 299555991fdSmrgas_fn_mkdir_p () 300555991fdSmrg{ 301555991fdSmrg 302555991fdSmrg case $as_dir in #( 303555991fdSmrg -*) as_dir=./$as_dir;; 304555991fdSmrg esac 305555991fdSmrg test -d "$as_dir" || eval $as_mkdir_p || { 306555991fdSmrg as_dirs= 307555991fdSmrg while :; do 308555991fdSmrg case $as_dir in #( 309555991fdSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 310555991fdSmrg *) as_qdir=$as_dir;; 311555991fdSmrg esac 312555991fdSmrg as_dirs="'$as_qdir' $as_dirs" 313555991fdSmrg as_dir=`$as_dirname -- "$as_dir" || 314555991fdSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 315555991fdSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 316555991fdSmrg X"$as_dir" : 'X\(//\)$' \| \ 317555991fdSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 318555991fdSmrg$as_echo X"$as_dir" | 319555991fdSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 320555991fdSmrg s//\1/ 321555991fdSmrg q 322555991fdSmrg } 323555991fdSmrg /^X\(\/\/\)[^/].*/{ 324555991fdSmrg s//\1/ 325555991fdSmrg q 326555991fdSmrg } 327555991fdSmrg /^X\(\/\/\)$/{ 328555991fdSmrg s//\1/ 329555991fdSmrg q 330555991fdSmrg } 331555991fdSmrg /^X\(\/\).*/{ 332555991fdSmrg s//\1/ 333555991fdSmrg q 334555991fdSmrg } 335555991fdSmrg s/.*/./; q'` 336555991fdSmrg test -d "$as_dir" && break 337555991fdSmrg done 338555991fdSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 339555991fdSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 340555991fdSmrg 341555991fdSmrg 342555991fdSmrg} # as_fn_mkdir_p 343555991fdSmrg# as_fn_append VAR VALUE 344555991fdSmrg# ---------------------- 345555991fdSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 346555991fdSmrg# advantage of any shell optimizations that allow amortized linear growth over 347555991fdSmrg# repeated appends, instead of the typical quadratic growth present in naive 348555991fdSmrg# implementations. 349555991fdSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 350555991fdSmrg eval 'as_fn_append () 351555991fdSmrg { 352555991fdSmrg eval $1+=\$2 353555991fdSmrg }' 354555991fdSmrgelse 355555991fdSmrg as_fn_append () 356555991fdSmrg { 357555991fdSmrg eval $1=\$$1\$2 358555991fdSmrg } 359555991fdSmrgfi # as_fn_append 360555991fdSmrg 361555991fdSmrg# as_fn_arith ARG... 362555991fdSmrg# ------------------ 363555991fdSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 364555991fdSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 365555991fdSmrg# must be portable across $(()) and expr. 366555991fdSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 367555991fdSmrg eval 'as_fn_arith () 368555991fdSmrg { 369555991fdSmrg as_val=$(( $* )) 370555991fdSmrg }' 371555991fdSmrgelse 372555991fdSmrg as_fn_arith () 373555991fdSmrg { 374555991fdSmrg as_val=`expr "$@" || test $? -eq 1` 375555991fdSmrg } 376555991fdSmrgfi # as_fn_arith 377555991fdSmrg 378555991fdSmrg 379555991fdSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 380555991fdSmrg# ---------------------------------------- 381555991fdSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 382555991fdSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 383555991fdSmrg# script with STATUS, using 1 if that was 0. 384555991fdSmrgas_fn_error () 385555991fdSmrg{ 386555991fdSmrg as_status=$1; test $as_status -eq 0 && as_status=1 387555991fdSmrg if test "$4"; then 388555991fdSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 389555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 390555991fdSmrg fi 391555991fdSmrg $as_echo "$as_me: error: $2" >&2 392555991fdSmrg as_fn_exit $as_status 393555991fdSmrg} # as_fn_error 394555991fdSmrg 395126a8a12Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 396126a8a12Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 397126a8a12Smrg as_expr=expr 398126a8a12Smrgelse 399126a8a12Smrg as_expr=false 400126a8a12Smrgfi 401126a8a12Smrg 402126a8a12Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 403126a8a12Smrg as_basename=basename 404126a8a12Smrgelse 405126a8a12Smrg as_basename=false 406126a8a12Smrgfi 407126a8a12Smrg 408555991fdSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 409555991fdSmrg as_dirname=dirname 410555991fdSmrgelse 411555991fdSmrg as_dirname=false 412555991fdSmrgfi 413126a8a12Smrg 414126a8a12Smrgas_me=`$as_basename -- "$0" || 415126a8a12Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 416126a8a12Smrg X"$0" : 'X\(//\)$' \| \ 417126a8a12Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 418d656433aSmrg$as_echo X/"$0" | 419126a8a12Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 420126a8a12Smrg s//\1/ 421126a8a12Smrg q 422126a8a12Smrg } 423126a8a12Smrg /^X\/\(\/\/\)$/{ 424126a8a12Smrg s//\1/ 425126a8a12Smrg q 426126a8a12Smrg } 427126a8a12Smrg /^X\/\(\/\).*/{ 428126a8a12Smrg s//\1/ 429126a8a12Smrg q 430126a8a12Smrg } 431126a8a12Smrg s/.*/./; q'` 432126a8a12Smrg 433555991fdSmrg# Avoid depending upon Character Ranges. 434555991fdSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 435555991fdSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 436555991fdSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 437555991fdSmrgas_cr_digits='0123456789' 438555991fdSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 439126a8a12Smrg 440126a8a12Smrg 441555991fdSmrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 442555991fdSmrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 443555991fdSmrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 444555991fdSmrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 445555991fdSmrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 446555991fdSmrg sed -n ' 447555991fdSmrg p 448555991fdSmrg /[$]LINENO/= 449555991fdSmrg ' <$as_myself | 450555991fdSmrg sed ' 451555991fdSmrg s/[$]LINENO.*/&-/ 452555991fdSmrg t lineno 453555991fdSmrg b 454555991fdSmrg :lineno 455555991fdSmrg N 456555991fdSmrg :loop 457555991fdSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 458555991fdSmrg t loop 459555991fdSmrg s/-\n.*// 460555991fdSmrg ' >$as_me.lineno && 461555991fdSmrg chmod +x "$as_me.lineno" || 462555991fdSmrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 463126a8a12Smrg 464555991fdSmrg # Don't try to exec as it changes $[0], causing all sort of problems 465555991fdSmrg # (the dirname of $[0] is not the place where we might find the 466555991fdSmrg # original and so on. Autoconf is especially sensitive to this). 467555991fdSmrg . "./$as_me.lineno" 468555991fdSmrg # Exit status is that of the last command. 469555991fdSmrg exit 470126a8a12Smrg} 471126a8a12Smrg 472555991fdSmrgECHO_C= ECHO_N= ECHO_T= 473555991fdSmrgcase `echo -n x` in #((((( 474555991fdSmrg-n*) 475555991fdSmrg case `echo 'xy\c'` in 476555991fdSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477555991fdSmrg xy) ECHO_C='\c';; 478555991fdSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 479555991fdSmrg ECHO_T=' ';; 480555991fdSmrg esac;; 481555991fdSmrg*) 482555991fdSmrg ECHO_N='-n';; 483555991fdSmrgesac 484126a8a12Smrg 485555991fdSmrgrm -f conf$$ conf$$.exe conf$$.file 486555991fdSmrgif test -d conf$$.dir; then 487555991fdSmrg rm -f conf$$.dir/conf$$.file 488555991fdSmrgelse 489555991fdSmrg rm -f conf$$.dir 490555991fdSmrg mkdir conf$$.dir 2>/dev/null 491126a8a12Smrgfi 492555991fdSmrgif (echo >conf$$.file) 2>/dev/null; then 493555991fdSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 494555991fdSmrg as_ln_s='ln -s' 495555991fdSmrg # ... but there are two gotchas: 496555991fdSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 497555991fdSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 498555991fdSmrg # In both cases, we have to default to `cp -p'. 499555991fdSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 500555991fdSmrg as_ln_s='cp -p' 501555991fdSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 502555991fdSmrg as_ln_s=ln 503555991fdSmrg else 504555991fdSmrg as_ln_s='cp -p' 505555991fdSmrg fi 506126a8a12Smrgelse 507555991fdSmrg as_ln_s='cp -p' 508126a8a12Smrgfi 509555991fdSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510555991fdSmrgrmdir conf$$.dir 2>/dev/null 511126a8a12Smrg 512555991fdSmrgif mkdir -p . 2>/dev/null; then 513555991fdSmrg as_mkdir_p='mkdir -p "$as_dir"' 514555991fdSmrgelse 515555991fdSmrg test -d ./-p && rmdir ./-p 516555991fdSmrg as_mkdir_p=false 517126a8a12Smrgfi 518126a8a12Smrg 519555991fdSmrgif test -x / >/dev/null 2>&1; then 520555991fdSmrg as_test_x='test -x' 521126a8a12Smrgelse 522555991fdSmrg if ls -dL / >/dev/null 2>&1; then 523555991fdSmrg as_ls_L_option=L 524555991fdSmrg else 525555991fdSmrg as_ls_L_option= 526555991fdSmrg fi 527555991fdSmrg as_test_x=' 528555991fdSmrg eval sh -c '\'' 529555991fdSmrg if test -d "$1"; then 530555991fdSmrg test -d "$1/."; 531555991fdSmrg else 532555991fdSmrg case $1 in #( 533555991fdSmrg -*)set "./$1";; 534555991fdSmrg esac; 535555991fdSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 536555991fdSmrg ???[sx]*):;;*)false;;esac;fi 537555991fdSmrg '\'' sh 538555991fdSmrg ' 539126a8a12Smrgfi 540555991fdSmrgas_executable_p=$as_test_x 541126a8a12Smrg 542555991fdSmrg# Sed expression to map a string onto a valid CPP name. 543555991fdSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 544126a8a12Smrg 545555991fdSmrg# Sed expression to map a string onto a valid variable name. 546555991fdSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 547126a8a12Smrg 548555991fdSmrgas_awk_strverscmp=' 549555991fdSmrg # Use only awk features that work with 7th edition Unix awk (1978). 550555991fdSmrg # My, what an old awk you have, Mr. Solaris! 551555991fdSmrg END { 552555991fdSmrg while (length(v1) && length(v2)) { 553555991fdSmrg # Set d1 to be the next thing to compare from v1, and likewise for d2. 554555991fdSmrg # Normally this is a single character, but if v1 and v2 contain digits, 555555991fdSmrg # compare them as integers and fractions as strverscmp does. 556555991fdSmrg if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 557555991fdSmrg # Split v1 and v2 into their leading digit string components d1 and d2, 558555991fdSmrg # and advance v1 and v2 past the leading digit strings. 559555991fdSmrg for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 560555991fdSmrg for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 561555991fdSmrg d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 562555991fdSmrg d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 563555991fdSmrg if (d1 ~ /^0/) { 564555991fdSmrg if (d2 ~ /^0/) { 565555991fdSmrg # Compare two fractions. 566555991fdSmrg while (d1 ~ /^0/ && d2 ~ /^0/) { 567555991fdSmrg d1 = substr(d1, 2); len1-- 568555991fdSmrg d2 = substr(d2, 2); len2-- 569555991fdSmrg } 570555991fdSmrg if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 571555991fdSmrg # The two components differ in length, and the common prefix 572555991fdSmrg # contains only leading zeros. Consider the longer to be less. 573555991fdSmrg d1 = -len1 574555991fdSmrg d2 = -len2 575555991fdSmrg } else { 576555991fdSmrg # Otherwise, compare as strings. 577555991fdSmrg d1 = "x" d1 578555991fdSmrg d2 = "x" d2 579555991fdSmrg } 580555991fdSmrg } else { 581555991fdSmrg # A fraction is less than an integer. 582555991fdSmrg exit 1 583555991fdSmrg } 584555991fdSmrg } else { 585555991fdSmrg if (d2 ~ /^0/) { 586555991fdSmrg # An integer is greater than a fraction. 587555991fdSmrg exit 2 588555991fdSmrg } else { 589555991fdSmrg # Compare two integers. 590555991fdSmrg d1 += 0 591555991fdSmrg d2 += 0 592555991fdSmrg } 593555991fdSmrg } 594555991fdSmrg } else { 595555991fdSmrg # The normal case, without worrying about digits. 596555991fdSmrg d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 597555991fdSmrg d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 598555991fdSmrg } 599555991fdSmrg if (d1 < d2) exit 1 600555991fdSmrg if (d1 > d2) exit 2 601555991fdSmrg } 602555991fdSmrg # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 603555991fdSmrg # which mishandles some comparisons of empty strings to integers. 604555991fdSmrg if (length(v2)) exit 1 605555991fdSmrg if (length(v1)) exit 2 606555991fdSmrg } 607555991fdSmrg' 608555991fdSmrgSHELL=${CONFIG_SHELL-/bin/sh} 609126a8a12Smrg 610126a8a12Smrg 611555991fdSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null 612555991fdSmrgexec 6>&1 613126a8a12Smrg 614555991fdSmrg# Name of the host. 615555991fdSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 616555991fdSmrg# so uname gets run too. 617555991fdSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 618126a8a12Smrg 619555991fdSmrg# 620555991fdSmrg# Initializations. 621555991fdSmrg# 622555991fdSmrgac_default_prefix=/usr/local 623555991fdSmrgac_clean_files= 624555991fdSmrgac_config_libobj_dir=. 625555991fdSmrgLIBOBJS= 626555991fdSmrgcross_compiling=no 627555991fdSmrgsubdirs= 628555991fdSmrgMFLAGS= 629555991fdSmrgMAKEFLAGS= 630126a8a12Smrg 631555991fdSmrg# Identity of this package. 632555991fdSmrgPACKAGE_NAME='libSM' 633555991fdSmrgPACKAGE_TARNAME='libSM' 634555991fdSmrgPACKAGE_VERSION='1.2.0' 635555991fdSmrgPACKAGE_STRING='libSM 1.2.0' 636555991fdSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 637555991fdSmrgPACKAGE_URL='' 638126a8a12Smrg 639555991fdSmrgac_unique_file="Makefile.am" 640555991fdSmrg# Factoring default headers for most tests. 641555991fdSmrgac_includes_default="\ 642555991fdSmrg#include <stdio.h> 643555991fdSmrg#ifdef HAVE_SYS_TYPES_H 644555991fdSmrg# include <sys/types.h> 645555991fdSmrg#endif 646555991fdSmrg#ifdef HAVE_SYS_STAT_H 647555991fdSmrg# include <sys/stat.h> 648555991fdSmrg#endif 649555991fdSmrg#ifdef STDC_HEADERS 650555991fdSmrg# include <stdlib.h> 651555991fdSmrg# include <stddef.h> 652555991fdSmrg#else 653555991fdSmrg# ifdef HAVE_STDLIB_H 654555991fdSmrg# include <stdlib.h> 655555991fdSmrg# endif 656555991fdSmrg#endif 657555991fdSmrg#ifdef HAVE_STRING_H 658555991fdSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 659555991fdSmrg# include <memory.h> 660555991fdSmrg# endif 661555991fdSmrg# include <string.h> 662555991fdSmrg#endif 663555991fdSmrg#ifdef HAVE_STRINGS_H 664555991fdSmrg# include <strings.h> 665555991fdSmrg#endif 666555991fdSmrg#ifdef HAVE_INTTYPES_H 667555991fdSmrg# include <inttypes.h> 668555991fdSmrg#endif 669555991fdSmrg#ifdef HAVE_STDINT_H 670555991fdSmrg# include <stdint.h> 671555991fdSmrg#endif 672555991fdSmrg#ifdef HAVE_UNISTD_H 673555991fdSmrg# include <unistd.h> 674555991fdSmrg#endif" 675126a8a12Smrg 676555991fdSmrgac_subst_vars='am__EXEEXT_FALSE 677555991fdSmrgam__EXEEXT_TRUE 678555991fdSmrgLTLIBOBJS 679555991fdSmrgLIBOBJS 680555991fdSmrgWITH_LIBUUID_FALSE 681555991fdSmrgWITH_LIBUUID_TRUE 682555991fdSmrgLIBUUID_LIBS 683555991fdSmrgLIBUUID_CFLAGS 684555991fdSmrgXTRANS_LIBS 685555991fdSmrgXTRANS_CFLAGS 686555991fdSmrgSM_LIBS 687555991fdSmrgSM_CFLAGS 688555991fdSmrgOTOOL64 689555991fdSmrgOTOOL 690555991fdSmrgLIPO 691555991fdSmrgNMEDIT 692555991fdSmrgDSYMUTIL 693555991fdSmrgRANLIB 694555991fdSmrgAR 695555991fdSmrgOBJDUMP 696555991fdSmrgLN_S 697555991fdSmrgNM 698555991fdSmrgac_ct_DUMPBIN 699555991fdSmrgDUMPBIN 700555991fdSmrgLD 701555991fdSmrgFGREP 702555991fdSmrgLIBTOOL 703555991fdSmrgHAVE_STYLESHEETS_FALSE 704555991fdSmrgHAVE_STYLESHEETS_TRUE 705555991fdSmrgXSL_STYLESHEET 706555991fdSmrgSTYLESHEET_SRCDIR 707555991fdSmrgXORG_SGML_PATH 708555991fdSmrgHAVE_FOP_FALSE 709555991fdSmrgHAVE_FOP_TRUE 710555991fdSmrgFOP 711555991fdSmrgHAVE_XMLTO_FALSE 712555991fdSmrgHAVE_XMLTO_TRUE 713555991fdSmrgHAVE_XMLTO_TEXT_FALSE 714555991fdSmrgHAVE_XMLTO_TEXT_TRUE 715555991fdSmrgXMLTO 716555991fdSmrgENABLE_DOCS_FALSE 717555991fdSmrgENABLE_DOCS_TRUE 718555991fdSmrgAM_BACKSLASH 719555991fdSmrgAM_DEFAULT_VERBOSITY 720555991fdSmrgMAN_SUBSTS 721555991fdSmrgXORG_MAN_PAGE 722555991fdSmrgADMIN_MAN_DIR 723555991fdSmrgDRIVER_MAN_DIR 724555991fdSmrgMISC_MAN_DIR 725555991fdSmrgFILE_MAN_DIR 726555991fdSmrgLIB_MAN_DIR 727555991fdSmrgAPP_MAN_DIR 728555991fdSmrgADMIN_MAN_SUFFIX 729555991fdSmrgDRIVER_MAN_SUFFIX 730555991fdSmrgMISC_MAN_SUFFIX 731555991fdSmrgFILE_MAN_SUFFIX 732555991fdSmrgLIB_MAN_SUFFIX 733555991fdSmrgAPP_MAN_SUFFIX 734555991fdSmrgSED 735555991fdSmrghost_os 736555991fdSmrghost_vendor 737555991fdSmrghost_cpu 738555991fdSmrghost 739555991fdSmrgbuild_os 740555991fdSmrgbuild_vendor 741555991fdSmrgbuild_cpu 742555991fdSmrgbuild 743555991fdSmrgINSTALL_CMD 744555991fdSmrgPKG_CONFIG 745555991fdSmrgCHANGELOG_CMD 746555991fdSmrgCWARNFLAGS 747555991fdSmrgEGREP 748555991fdSmrgGREP 749555991fdSmrgCPP 750555991fdSmrgam__fastdepCC_FALSE 751555991fdSmrgam__fastdepCC_TRUE 752555991fdSmrgCCDEPMODE 753555991fdSmrgAMDEPBACKSLASH 754555991fdSmrgAMDEP_FALSE 755555991fdSmrgAMDEP_TRUE 756555991fdSmrgam__quote 757555991fdSmrgam__include 758555991fdSmrgDEPDIR 759555991fdSmrgOBJEXT 760555991fdSmrgEXEEXT 761555991fdSmrgac_ct_CC 762555991fdSmrgCPPFLAGS 763555991fdSmrgLDFLAGS 764555991fdSmrgCFLAGS 765555991fdSmrgCC 766555991fdSmrgMAINT 767555991fdSmrgMAINTAINER_MODE_FALSE 768555991fdSmrgMAINTAINER_MODE_TRUE 769555991fdSmrgam__untar 770555991fdSmrgam__tar 771555991fdSmrgAMTAR 772555991fdSmrgam__leading_dot 773555991fdSmrgSET_MAKE 774555991fdSmrgAWK 775555991fdSmrgmkdir_p 776555991fdSmrgMKDIR_P 777555991fdSmrgINSTALL_STRIP_PROGRAM 778555991fdSmrgSTRIP 779555991fdSmrginstall_sh 780555991fdSmrgMAKEINFO 781555991fdSmrgAUTOHEADER 782555991fdSmrgAUTOMAKE 783555991fdSmrgAUTOCONF 784555991fdSmrgACLOCAL 785555991fdSmrgVERSION 786555991fdSmrgPACKAGE 787555991fdSmrgCYGPATH_W 788555991fdSmrgam__isrc 789555991fdSmrgINSTALL_DATA 790555991fdSmrgINSTALL_SCRIPT 791555991fdSmrgINSTALL_PROGRAM 792555991fdSmrgtarget_alias 793555991fdSmrghost_alias 794555991fdSmrgbuild_alias 795555991fdSmrgLIBS 796555991fdSmrgECHO_T 797555991fdSmrgECHO_N 798555991fdSmrgECHO_C 799555991fdSmrgDEFS 800555991fdSmrgmandir 801555991fdSmrglocaledir 802555991fdSmrglibdir 803555991fdSmrgpsdir 804555991fdSmrgpdfdir 805555991fdSmrgdvidir 806555991fdSmrghtmldir 807555991fdSmrginfodir 808555991fdSmrgdocdir 809555991fdSmrgoldincludedir 810555991fdSmrgincludedir 811555991fdSmrglocalstatedir 812555991fdSmrgsharedstatedir 813555991fdSmrgsysconfdir 814555991fdSmrgdatadir 815555991fdSmrgdatarootdir 816555991fdSmrglibexecdir 817555991fdSmrgsbindir 818555991fdSmrgbindir 819555991fdSmrgprogram_transform_name 820555991fdSmrgprefix 821555991fdSmrgexec_prefix 822555991fdSmrgPACKAGE_URL 823555991fdSmrgPACKAGE_BUGREPORT 824555991fdSmrgPACKAGE_STRING 825555991fdSmrgPACKAGE_VERSION 826555991fdSmrgPACKAGE_TARNAME 827555991fdSmrgPACKAGE_NAME 828555991fdSmrgPATH_SEPARATOR 829555991fdSmrgSHELL' 830555991fdSmrgac_subst_files='' 831555991fdSmrgac_user_opts=' 832555991fdSmrgenable_option_checking 833555991fdSmrgenable_maintainer_mode 834555991fdSmrgenable_dependency_tracking 835555991fdSmrgenable_strict_compilation 836555991fdSmrgenable_silent_rules 837555991fdSmrgenable_docs 838555991fdSmrgwith_xmlto 839555991fdSmrgwith_fop 840555991fdSmrgenable_shared 841555991fdSmrgenable_static 842555991fdSmrgwith_pic 843555991fdSmrgenable_fast_install 844555991fdSmrgwith_gnu_ld 845555991fdSmrgenable_libtool_lock 846555991fdSmrgenable_unix_transport 847555991fdSmrgenable_tcp_transport 848555991fdSmrgenable_ipv6 849555991fdSmrgenable_local_transport 850555991fdSmrgwith_libuuid 851555991fdSmrg' 852555991fdSmrg ac_precious_vars='build_alias 853555991fdSmrghost_alias 854555991fdSmrgtarget_alias 855555991fdSmrgCC 856555991fdSmrgCFLAGS 857555991fdSmrgLDFLAGS 858555991fdSmrgLIBS 859555991fdSmrgCPPFLAGS 860555991fdSmrgCPP 861555991fdSmrgPKG_CONFIG 862555991fdSmrgXMLTO 863555991fdSmrgFOP 864555991fdSmrgSM_CFLAGS 865555991fdSmrgSM_LIBS 866555991fdSmrgXTRANS_CFLAGS 867555991fdSmrgXTRANS_LIBS 868555991fdSmrgLIBUUID_CFLAGS 869555991fdSmrgLIBUUID_LIBS' 870126a8a12Smrg 871126a8a12Smrg 872555991fdSmrg# Initialize some variables set by options. 873555991fdSmrgac_init_help= 874555991fdSmrgac_init_version=false 875555991fdSmrgac_unrecognized_opts= 876555991fdSmrgac_unrecognized_sep= 877555991fdSmrg# The variables have the same names as the options, with 878555991fdSmrg# dashes changed to underlines. 879555991fdSmrgcache_file=/dev/null 880555991fdSmrgexec_prefix=NONE 881555991fdSmrgno_create= 882555991fdSmrgno_recursion= 883555991fdSmrgprefix=NONE 884555991fdSmrgprogram_prefix=NONE 885555991fdSmrgprogram_suffix=NONE 886555991fdSmrgprogram_transform_name=s,x,x, 887555991fdSmrgsilent= 888555991fdSmrgsite= 889555991fdSmrgsrcdir= 890555991fdSmrgverbose= 891555991fdSmrgx_includes=NONE 892555991fdSmrgx_libraries=NONE 893126a8a12Smrg 894555991fdSmrg# Installation directory options. 895555991fdSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 896555991fdSmrg# and all the variables that are supposed to be based on exec_prefix 897555991fdSmrg# by default will actually change. 898555991fdSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 899555991fdSmrg# (The list follows the same order as the GNU Coding Standards.) 900555991fdSmrgbindir='${exec_prefix}/bin' 901555991fdSmrgsbindir='${exec_prefix}/sbin' 902555991fdSmrglibexecdir='${exec_prefix}/libexec' 903555991fdSmrgdatarootdir='${prefix}/share' 904555991fdSmrgdatadir='${datarootdir}' 905555991fdSmrgsysconfdir='${prefix}/etc' 906555991fdSmrgsharedstatedir='${prefix}/com' 907555991fdSmrglocalstatedir='${prefix}/var' 908555991fdSmrgincludedir='${prefix}/include' 909555991fdSmrgoldincludedir='/usr/include' 910555991fdSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 911555991fdSmrginfodir='${datarootdir}/info' 912555991fdSmrghtmldir='${docdir}' 913555991fdSmrgdvidir='${docdir}' 914555991fdSmrgpdfdir='${docdir}' 915555991fdSmrgpsdir='${docdir}' 916555991fdSmrglibdir='${exec_prefix}/lib' 917555991fdSmrglocaledir='${datarootdir}/locale' 918555991fdSmrgmandir='${datarootdir}/man' 919126a8a12Smrg 920555991fdSmrgac_prev= 921555991fdSmrgac_dashdash= 922555991fdSmrgfor ac_option 923555991fdSmrgdo 924555991fdSmrg # If the previous option needs an argument, assign it. 925555991fdSmrg if test -n "$ac_prev"; then 926555991fdSmrg eval $ac_prev=\$ac_option 927555991fdSmrg ac_prev= 928555991fdSmrg continue 929555991fdSmrg fi 930126a8a12Smrg 931555991fdSmrg case $ac_option in 932555991fdSmrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 933555991fdSmrg *=) ac_optarg= ;; 934555991fdSmrg *) ac_optarg=yes ;; 935555991fdSmrg esac 936d656433aSmrg 937555991fdSmrg # Accept the important Cygnus configure options, so we can diagnose typos. 938126a8a12Smrg 939555991fdSmrg case $ac_dashdash$ac_option in 940555991fdSmrg --) 941555991fdSmrg ac_dashdash=yes ;; 942126a8a12Smrg 943555991fdSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 944555991fdSmrg ac_prev=bindir ;; 945555991fdSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 946555991fdSmrg bindir=$ac_optarg ;; 947126a8a12Smrg 948555991fdSmrg -build | --build | --buil | --bui | --bu) 949555991fdSmrg ac_prev=build_alias ;; 950555991fdSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 951555991fdSmrg build_alias=$ac_optarg ;; 952126a8a12Smrg 953555991fdSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 954555991fdSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 955555991fdSmrg ac_prev=cache_file ;; 956555991fdSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 957555991fdSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 958555991fdSmrg cache_file=$ac_optarg ;; 959126a8a12Smrg 960555991fdSmrg --config-cache | -C) 961555991fdSmrg cache_file=config.cache ;; 962126a8a12Smrg 963555991fdSmrg -datadir | --datadir | --datadi | --datad) 964555991fdSmrg ac_prev=datadir ;; 965555991fdSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 966555991fdSmrg datadir=$ac_optarg ;; 967126a8a12Smrg 968555991fdSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 969555991fdSmrg | --dataroo | --dataro | --datar) 970555991fdSmrg ac_prev=datarootdir ;; 971555991fdSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 972555991fdSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 973555991fdSmrg datarootdir=$ac_optarg ;; 974126a8a12Smrg 975555991fdSmrg -disable-* | --disable-*) 976555991fdSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 977555991fdSmrg # Reject names that are not valid shell variable names. 978555991fdSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 979555991fdSmrg as_fn_error $? "invalid feature name: $ac_useropt" 980555991fdSmrg ac_useropt_orig=$ac_useropt 981555991fdSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 982555991fdSmrg case $ac_user_opts in 983555991fdSmrg *" 984555991fdSmrg"enable_$ac_useropt" 985555991fdSmrg"*) ;; 986555991fdSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 987555991fdSmrg ac_unrecognized_sep=', ';; 988555991fdSmrg esac 989555991fdSmrg eval enable_$ac_useropt=no ;; 990126a8a12Smrg 991555991fdSmrg -docdir | --docdir | --docdi | --doc | --do) 992555991fdSmrg ac_prev=docdir ;; 993555991fdSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 994555991fdSmrg docdir=$ac_optarg ;; 995126a8a12Smrg 996555991fdSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 997555991fdSmrg ac_prev=dvidir ;; 998555991fdSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 999555991fdSmrg dvidir=$ac_optarg ;; 1000126a8a12Smrg 1001555991fdSmrg -enable-* | --enable-*) 1002555991fdSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1003555991fdSmrg # Reject names that are not valid shell variable names. 1004555991fdSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1005555991fdSmrg as_fn_error $? "invalid feature name: $ac_useropt" 1006555991fdSmrg ac_useropt_orig=$ac_useropt 1007555991fdSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1008555991fdSmrg case $ac_user_opts in 1009555991fdSmrg *" 1010555991fdSmrg"enable_$ac_useropt" 1011555991fdSmrg"*) ;; 1012555991fdSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1013555991fdSmrg ac_unrecognized_sep=', ';; 1014555991fdSmrg esac 1015555991fdSmrg eval enable_$ac_useropt=\$ac_optarg ;; 1016126a8a12Smrg 1017555991fdSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1018555991fdSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1019555991fdSmrg | --exec | --exe | --ex) 1020555991fdSmrg ac_prev=exec_prefix ;; 1021555991fdSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1022555991fdSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1023555991fdSmrg | --exec=* | --exe=* | --ex=*) 1024555991fdSmrg exec_prefix=$ac_optarg ;; 1025126a8a12Smrg 1026555991fdSmrg -gas | --gas | --ga | --g) 1027555991fdSmrg # Obsolete; use --with-gas. 1028555991fdSmrg with_gas=yes ;; 1029d656433aSmrg 1030555991fdSmrg -help | --help | --hel | --he | -h) 1031555991fdSmrg ac_init_help=long ;; 1032555991fdSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1033555991fdSmrg ac_init_help=recursive ;; 1034555991fdSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1035555991fdSmrg ac_init_help=short ;; 1036d656433aSmrg 1037555991fdSmrg -host | --host | --hos | --ho) 1038555991fdSmrg ac_prev=host_alias ;; 1039555991fdSmrg -host=* | --host=* | --hos=* | --ho=*) 1040555991fdSmrg host_alias=$ac_optarg ;; 1041d656433aSmrg 1042555991fdSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1043555991fdSmrg ac_prev=htmldir ;; 1044555991fdSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1045555991fdSmrg | --ht=*) 1046555991fdSmrg htmldir=$ac_optarg ;; 1047d656433aSmrg 1048555991fdSmrg -includedir | --includedir | --includedi | --included | --include \ 1049555991fdSmrg | --includ | --inclu | --incl | --inc) 1050555991fdSmrg ac_prev=includedir ;; 1051555991fdSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1052555991fdSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 1053555991fdSmrg includedir=$ac_optarg ;; 1054d656433aSmrg 1055555991fdSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 1056555991fdSmrg ac_prev=infodir ;; 1057555991fdSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1058555991fdSmrg infodir=$ac_optarg ;; 1059d656433aSmrg 1060555991fdSmrg -libdir | --libdir | --libdi | --libd) 1061555991fdSmrg ac_prev=libdir ;; 1062555991fdSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 1063555991fdSmrg libdir=$ac_optarg ;; 1064d656433aSmrg 1065555991fdSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1066555991fdSmrg | --libexe | --libex | --libe) 1067555991fdSmrg ac_prev=libexecdir ;; 1068555991fdSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1069555991fdSmrg | --libexe=* | --libex=* | --libe=*) 1070555991fdSmrg libexecdir=$ac_optarg ;; 1071d656433aSmrg 1072555991fdSmrg -localedir | --localedir | --localedi | --localed | --locale) 1073555991fdSmrg ac_prev=localedir ;; 1074555991fdSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1075555991fdSmrg localedir=$ac_optarg ;; 1076d656433aSmrg 1077555991fdSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 1078555991fdSmrg | --localstate | --localstat | --localsta | --localst | --locals) 1079555991fdSmrg ac_prev=localstatedir ;; 1080555991fdSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1081555991fdSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1082555991fdSmrg localstatedir=$ac_optarg ;; 1083d656433aSmrg 1084555991fdSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1085555991fdSmrg ac_prev=mandir ;; 1086555991fdSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1087555991fdSmrg mandir=$ac_optarg ;; 1088d656433aSmrg 1089555991fdSmrg -nfp | --nfp | --nf) 1090555991fdSmrg # Obsolete; use --without-fp. 1091555991fdSmrg with_fp=no ;; 1092d656433aSmrg 1093555991fdSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1094555991fdSmrg | --no-cr | --no-c | -n) 1095555991fdSmrg no_create=yes ;; 1096d656433aSmrg 1097555991fdSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1098555991fdSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1099555991fdSmrg no_recursion=yes ;; 1100d656433aSmrg 1101555991fdSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1102555991fdSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1103555991fdSmrg | --oldin | --oldi | --old | --ol | --o) 1104555991fdSmrg ac_prev=oldincludedir ;; 1105555991fdSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1106555991fdSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1107555991fdSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1108555991fdSmrg oldincludedir=$ac_optarg ;; 1109d656433aSmrg 1110555991fdSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1111555991fdSmrg ac_prev=prefix ;; 1112555991fdSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1113555991fdSmrg prefix=$ac_optarg ;; 1114d656433aSmrg 1115555991fdSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1116555991fdSmrg | --program-pre | --program-pr | --program-p) 1117555991fdSmrg ac_prev=program_prefix ;; 1118555991fdSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1119555991fdSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1120555991fdSmrg program_prefix=$ac_optarg ;; 1121d656433aSmrg 1122555991fdSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1123555991fdSmrg | --program-suf | --program-su | --program-s) 1124555991fdSmrg ac_prev=program_suffix ;; 1125555991fdSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1126555991fdSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1127555991fdSmrg program_suffix=$ac_optarg ;; 1128d656433aSmrg 1129555991fdSmrg -program-transform-name | --program-transform-name \ 1130555991fdSmrg | --program-transform-nam | --program-transform-na \ 1131555991fdSmrg | --program-transform-n | --program-transform- \ 1132555991fdSmrg | --program-transform | --program-transfor \ 1133555991fdSmrg | --program-transfo | --program-transf \ 1134555991fdSmrg | --program-trans | --program-tran \ 1135555991fdSmrg | --progr-tra | --program-tr | --program-t) 1136555991fdSmrg ac_prev=program_transform_name ;; 1137555991fdSmrg -program-transform-name=* | --program-transform-name=* \ 1138555991fdSmrg | --program-transform-nam=* | --program-transform-na=* \ 1139555991fdSmrg | --program-transform-n=* | --program-transform-=* \ 1140555991fdSmrg | --program-transform=* | --program-transfor=* \ 1141555991fdSmrg | --program-transfo=* | --program-transf=* \ 1142555991fdSmrg | --program-trans=* | --program-tran=* \ 1143555991fdSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 1144555991fdSmrg program_transform_name=$ac_optarg ;; 1145d656433aSmrg 1146555991fdSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1147555991fdSmrg ac_prev=pdfdir ;; 1148555991fdSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1149555991fdSmrg pdfdir=$ac_optarg ;; 1150d656433aSmrg 1151555991fdSmrg -psdir | --psdir | --psdi | --psd | --ps) 1152555991fdSmrg ac_prev=psdir ;; 1153555991fdSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1154555991fdSmrg psdir=$ac_optarg ;; 1155d656433aSmrg 1156555991fdSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1157555991fdSmrg | -silent | --silent | --silen | --sile | --sil) 1158555991fdSmrg silent=yes ;; 1159d656433aSmrg 1160555991fdSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1161555991fdSmrg ac_prev=sbindir ;; 1162555991fdSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1163555991fdSmrg | --sbi=* | --sb=*) 1164555991fdSmrg sbindir=$ac_optarg ;; 1165126a8a12Smrg 1166555991fdSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1167555991fdSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1168555991fdSmrg | --sharedst | --shareds | --shared | --share | --shar \ 1169555991fdSmrg | --sha | --sh) 1170555991fdSmrg ac_prev=sharedstatedir ;; 1171555991fdSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1172555991fdSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1173555991fdSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1174555991fdSmrg | --sha=* | --sh=*) 1175555991fdSmrg sharedstatedir=$ac_optarg ;; 1176126a8a12Smrg 1177555991fdSmrg -site | --site | --sit) 1178555991fdSmrg ac_prev=site ;; 1179555991fdSmrg -site=* | --site=* | --sit=*) 1180555991fdSmrg site=$ac_optarg ;; 1181126a8a12Smrg 1182555991fdSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1183555991fdSmrg ac_prev=srcdir ;; 1184555991fdSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1185555991fdSmrg srcdir=$ac_optarg ;; 1186126a8a12Smrg 1187555991fdSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1188555991fdSmrg | --syscon | --sysco | --sysc | --sys | --sy) 1189555991fdSmrg ac_prev=sysconfdir ;; 1190555991fdSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1191555991fdSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1192555991fdSmrg sysconfdir=$ac_optarg ;; 1193126a8a12Smrg 1194555991fdSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 1195555991fdSmrg ac_prev=target_alias ;; 1196555991fdSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1197555991fdSmrg target_alias=$ac_optarg ;; 1198126a8a12Smrg 1199555991fdSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 1200555991fdSmrg verbose=yes ;; 1201126a8a12Smrg 1202555991fdSmrg -version | --version | --versio | --versi | --vers | -V) 1203555991fdSmrg ac_init_version=: ;; 1204126a8a12Smrg 1205555991fdSmrg -with-* | --with-*) 1206555991fdSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1207555991fdSmrg # Reject names that are not valid shell variable names. 1208555991fdSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1209555991fdSmrg as_fn_error $? "invalid package name: $ac_useropt" 1210555991fdSmrg ac_useropt_orig=$ac_useropt 1211555991fdSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1212555991fdSmrg case $ac_user_opts in 1213555991fdSmrg *" 1214555991fdSmrg"with_$ac_useropt" 1215555991fdSmrg"*) ;; 1216555991fdSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1217555991fdSmrg ac_unrecognized_sep=', ';; 1218555991fdSmrg esac 1219555991fdSmrg eval with_$ac_useropt=\$ac_optarg ;; 1220126a8a12Smrg 1221555991fdSmrg -without-* | --without-*) 1222555991fdSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1223555991fdSmrg # Reject names that are not valid shell variable names. 1224555991fdSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1225555991fdSmrg as_fn_error $? "invalid package name: $ac_useropt" 1226555991fdSmrg ac_useropt_orig=$ac_useropt 1227555991fdSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1228555991fdSmrg case $ac_user_opts in 1229555991fdSmrg *" 1230555991fdSmrg"with_$ac_useropt" 1231555991fdSmrg"*) ;; 1232555991fdSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1233555991fdSmrg ac_unrecognized_sep=', ';; 1234555991fdSmrg esac 1235555991fdSmrg eval with_$ac_useropt=no ;; 1236126a8a12Smrg 1237555991fdSmrg --x) 1238555991fdSmrg # Obsolete; use --with-x. 1239555991fdSmrg with_x=yes ;; 1240126a8a12Smrg 1241555991fdSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1242555991fdSmrg | --x-incl | --x-inc | --x-in | --x-i) 1243555991fdSmrg ac_prev=x_includes ;; 1244555991fdSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1245555991fdSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1246555991fdSmrg x_includes=$ac_optarg ;; 1247126a8a12Smrg 1248555991fdSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1249555991fdSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1250555991fdSmrg ac_prev=x_libraries ;; 1251555991fdSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1252555991fdSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1253555991fdSmrg x_libraries=$ac_optarg ;; 1254126a8a12Smrg 1255555991fdSmrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 1256555991fdSmrgTry \`$0 --help' for more information" 1257555991fdSmrg ;; 1258126a8a12Smrg 1259555991fdSmrg *=*) 1260555991fdSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1261555991fdSmrg # Reject names that are not valid shell variable names. 1262555991fdSmrg case $ac_envvar in #( 1263555991fdSmrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 1264555991fdSmrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1265555991fdSmrg esac 1266555991fdSmrg eval $ac_envvar=\$ac_optarg 1267555991fdSmrg export $ac_envvar ;; 1268126a8a12Smrg 1269555991fdSmrg *) 1270555991fdSmrg # FIXME: should be removed in autoconf 3.0. 1271555991fdSmrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1272555991fdSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1273555991fdSmrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1274555991fdSmrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1275555991fdSmrg ;; 1276126a8a12Smrg 1277555991fdSmrg esac 1278126a8a12Smrgdone 1279126a8a12Smrg 1280555991fdSmrgif test -n "$ac_prev"; then 1281555991fdSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1282555991fdSmrg as_fn_error $? "missing argument to $ac_option" 1283126a8a12Smrgfi 1284126a8a12Smrg 1285555991fdSmrgif test -n "$ac_unrecognized_opts"; then 1286555991fdSmrg case $enable_option_checking in 1287555991fdSmrg no) ;; 1288555991fdSmrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1289555991fdSmrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1290555991fdSmrg esac 1291126a8a12Smrgfi 1292555991fdSmrg 1293555991fdSmrg# Check all directory arguments for consistency. 1294555991fdSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1295555991fdSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1296555991fdSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1297555991fdSmrg libdir localedir mandir 1298126a8a12Smrgdo 1299555991fdSmrg eval ac_val=\$$ac_var 1300555991fdSmrg # Remove trailing slashes. 1301555991fdSmrg case $ac_val in 1302555991fdSmrg */ ) 1303555991fdSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1304555991fdSmrg eval $ac_var=\$ac_val;; 1305555991fdSmrg esac 1306555991fdSmrg # Be sure to have absolute directory names. 1307555991fdSmrg case $ac_val in 1308555991fdSmrg [\\/$]* | ?:[\\/]* ) continue;; 1309555991fdSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1310555991fdSmrg esac 1311555991fdSmrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1312126a8a12Smrgdone 1313126a8a12Smrg 1314555991fdSmrg# There might be people who depend on the old broken behavior: `$host' 1315555991fdSmrg# used to hold the argument of --host etc. 1316555991fdSmrg# FIXME: To remove some day. 1317555991fdSmrgbuild=$build_alias 1318555991fdSmrghost=$host_alias 1319555991fdSmrgtarget=$target_alias 1320126a8a12Smrg 1321555991fdSmrg# FIXME: To remove some day. 1322555991fdSmrgif test "x$host_alias" != x; then 1323555991fdSmrg if test "x$build_alias" = x; then 1324555991fdSmrg cross_compiling=maybe 1325555991fdSmrg $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1326555991fdSmrg If a cross compiler is detected then cross compile mode will be used" >&2 1327555991fdSmrg elif test "x$build_alias" != "x$host_alias"; then 1328555991fdSmrg cross_compiling=yes 1329126a8a12Smrg fi 1330126a8a12Smrgfi 1331126a8a12Smrg 1332555991fdSmrgac_tool_prefix= 1333555991fdSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 1334555991fdSmrg 1335555991fdSmrgtest "$silent" = yes && exec 6>/dev/null 1336555991fdSmrg 1337555991fdSmrg 1338555991fdSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 1339555991fdSmrgac_ls_di=`ls -di .` && 1340555991fdSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1341555991fdSmrg as_fn_error $? "working directory cannot be determined" 1342555991fdSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1343555991fdSmrg as_fn_error $? "pwd does not report name of working directory" 1344555991fdSmrg 1345126a8a12Smrg 1346555991fdSmrg# Find the source files, if location was not specified. 1347555991fdSmrgif test -z "$srcdir"; then 1348555991fdSmrg ac_srcdir_defaulted=yes 1349555991fdSmrg # Try the directory containing this script, then the parent directory. 1350555991fdSmrg ac_confdir=`$as_dirname -- "$as_myself" || 1351555991fdSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1352555991fdSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1353555991fdSmrg X"$as_myself" : 'X\(//\)$' \| \ 1354555991fdSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1355555991fdSmrg$as_echo X"$as_myself" | 1356555991fdSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1357555991fdSmrg s//\1/ 1358555991fdSmrg q 1359555991fdSmrg } 1360555991fdSmrg /^X\(\/\/\)[^/].*/{ 1361555991fdSmrg s//\1/ 1362555991fdSmrg q 1363555991fdSmrg } 1364555991fdSmrg /^X\(\/\/\)$/{ 1365555991fdSmrg s//\1/ 1366555991fdSmrg q 1367555991fdSmrg } 1368555991fdSmrg /^X\(\/\).*/{ 1369555991fdSmrg s//\1/ 1370555991fdSmrg q 1371555991fdSmrg } 1372555991fdSmrg s/.*/./; q'` 1373555991fdSmrg srcdir=$ac_confdir 1374555991fdSmrg if test ! -r "$srcdir/$ac_unique_file"; then 1375555991fdSmrg srcdir=.. 1376555991fdSmrg fi 1377555991fdSmrgelse 1378555991fdSmrg ac_srcdir_defaulted=no 1379126a8a12Smrgfi 1380555991fdSmrgif test ! -r "$srcdir/$ac_unique_file"; then 1381555991fdSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1382555991fdSmrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1383126a8a12Smrgfi 1384555991fdSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1385555991fdSmrgac_abs_confdir=`( 1386555991fdSmrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1387555991fdSmrg pwd)` 1388555991fdSmrg# When building in place, set srcdir=. 1389555991fdSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1390555991fdSmrg srcdir=. 1391126a8a12Smrgfi 1392555991fdSmrg# Remove unnecessary trailing slashes from srcdir. 1393555991fdSmrg# Double slashes in file names in object file debugging info 1394555991fdSmrg# mess up M-x gdb in Emacs. 1395555991fdSmrgcase $srcdir in 1396555991fdSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1397555991fdSmrgesac 1398555991fdSmrgfor ac_var in $ac_precious_vars; do 1399555991fdSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1400555991fdSmrg eval ac_env_${ac_var}_value=\$${ac_var} 1401555991fdSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1402555991fdSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1403555991fdSmrgdone 1404555991fdSmrg 1405555991fdSmrg# 1406555991fdSmrg# Report the --help message. 1407555991fdSmrg# 1408555991fdSmrgif test "$ac_init_help" = "long"; then 1409555991fdSmrg # Omit some internal or obsolete options to make the list less imposing. 1410555991fdSmrg # This message is too long to be a string in the A/UX 3.1 sh. 1411555991fdSmrg cat <<_ACEOF 1412555991fdSmrg\`configure' configures libSM 1.2.0 to adapt to many kinds of systems. 1413555991fdSmrg 1414555991fdSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 1415555991fdSmrg 1416555991fdSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1417555991fdSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 1418555991fdSmrg 1419555991fdSmrgDefaults for the options are specified in brackets. 1420555991fdSmrg 1421555991fdSmrgConfiguration: 1422555991fdSmrg -h, --help display this help and exit 1423555991fdSmrg --help=short display options specific to this package 1424555991fdSmrg --help=recursive display the short help of all the included packages 1425555991fdSmrg -V, --version display version information and exit 1426555991fdSmrg -q, --quiet, --silent do not print \`checking ...' messages 1427555991fdSmrg --cache-file=FILE cache test results in FILE [disabled] 1428555991fdSmrg -C, --config-cache alias for \`--cache-file=config.cache' 1429555991fdSmrg -n, --no-create do not create output files 1430555991fdSmrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1431555991fdSmrg 1432555991fdSmrgInstallation directories: 1433555991fdSmrg --prefix=PREFIX install architecture-independent files in PREFIX 1434555991fdSmrg [$ac_default_prefix] 1435555991fdSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1436555991fdSmrg [PREFIX] 1437555991fdSmrg 1438555991fdSmrgBy default, \`make install' will install all the files in 1439555991fdSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1440555991fdSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1441555991fdSmrgfor instance \`--prefix=\$HOME'. 1442555991fdSmrg 1443555991fdSmrgFor better control, use the options below. 1444555991fdSmrg 1445555991fdSmrgFine tuning of the installation directories: 1446555991fdSmrg --bindir=DIR user executables [EPREFIX/bin] 1447555991fdSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1448555991fdSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 1449555991fdSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1450555991fdSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1451555991fdSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1452555991fdSmrg --libdir=DIR object code libraries [EPREFIX/lib] 1453555991fdSmrg --includedir=DIR C header files [PREFIX/include] 1454555991fdSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1455555991fdSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1456555991fdSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1457555991fdSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 1458555991fdSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1459555991fdSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 1460555991fdSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/libSM] 1461555991fdSmrg --htmldir=DIR html documentation [DOCDIR] 1462555991fdSmrg --dvidir=DIR dvi documentation [DOCDIR] 1463555991fdSmrg --pdfdir=DIR pdf documentation [DOCDIR] 1464555991fdSmrg --psdir=DIR ps documentation [DOCDIR] 1465555991fdSmrg_ACEOF 1466126a8a12Smrg 1467555991fdSmrg cat <<\_ACEOF 1468126a8a12Smrg 1469555991fdSmrgProgram names: 1470555991fdSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 1471555991fdSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 1472555991fdSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1473126a8a12Smrg 1474555991fdSmrgSystem types: 1475555991fdSmrg --build=BUILD configure for building on BUILD [guessed] 1476555991fdSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 1477555991fdSmrg_ACEOF 1478126a8a12Smrgfi 1479126a8a12Smrg 1480555991fdSmrgif test -n "$ac_init_help"; then 1481555991fdSmrg case $ac_init_help in 1482555991fdSmrg short | recursive ) echo "Configuration of libSM 1.2.0:";; 1483555991fdSmrg esac 1484555991fdSmrg cat <<\_ACEOF 1485126a8a12Smrg 1486555991fdSmrgOptional Features: 1487555991fdSmrg --disable-option-checking ignore unrecognized --enable/--with options 1488555991fdSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1489555991fdSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1490555991fdSmrg --enable-maintainer-mode enable make rules and dependencies not useful 1491555991fdSmrg (and sometimes confusing) to the casual installer 1492555991fdSmrg --disable-dependency-tracking speeds up one-time build 1493555991fdSmrg --enable-dependency-tracking do not reject slow dependency extractors 1494555991fdSmrg --enable-strict-compilation 1495555991fdSmrg Enable all warnings from compiler and make them 1496555991fdSmrg errors (default: disabled) 1497555991fdSmrg --enable-silent-rules less verbose build output (undo: `make V=1') 1498555991fdSmrg --disable-silent-rules verbose build output (undo: `make V=0') 1499555991fdSmrg --enable-docs Enable building the documentation (default: yes) 1500555991fdSmrg --enable-shared[=PKGS] build shared libraries [default=yes] 1501555991fdSmrg --enable-static[=PKGS] build static libraries [default=yes] 1502555991fdSmrg --enable-fast-install[=PKGS] 1503555991fdSmrg optimize for fast installation [default=yes] 1504555991fdSmrg --disable-libtool-lock avoid locking (might break parallel builds) 1505555991fdSmrg --enable-unix-transport Enable UNIX domain socket transport 1506555991fdSmrg --enable-tcp-transport Enable TCP socket transport 1507555991fdSmrg --enable-ipv6 Enable IPv6 support 1508555991fdSmrg --enable-local-transport 1509555991fdSmrg Enable os-specific local transport 1510126a8a12Smrg 1511555991fdSmrgOptional Packages: 1512555991fdSmrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1513555991fdSmrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1514555991fdSmrg --with-xmlto Use xmlto to regenerate documentation (default: yes, 1515555991fdSmrg if installed) 1516555991fdSmrg --with-fop Use fop to regenerate documentation (default: yes, 1517555991fdSmrg if installed) 1518555991fdSmrg --with-pic try to use only PIC/non-PIC objects [default=use 1519555991fdSmrg both] 1520555991fdSmrg --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1521555991fdSmrg --with-libuuid Build with libuuid support for client IDs 1522126a8a12Smrg 1523555991fdSmrgSome influential environment variables: 1524555991fdSmrg CC C compiler command 1525555991fdSmrg CFLAGS C compiler flags 1526555991fdSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1527555991fdSmrg nonstandard directory <lib dir> 1528555991fdSmrg LIBS libraries to pass to the linker, e.g. -l<library> 1529555991fdSmrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1530555991fdSmrg you have headers in a nonstandard directory <include dir> 1531555991fdSmrg CPP C preprocessor 1532555991fdSmrg PKG_CONFIG path to pkg-config utility 1533555991fdSmrg XMLTO Path to xmlto command 1534555991fdSmrg FOP Path to fop command 1535555991fdSmrg SM_CFLAGS C compiler flags for SM, overriding pkg-config 1536555991fdSmrg SM_LIBS linker flags for SM, overriding pkg-config 1537555991fdSmrg XTRANS_CFLAGS 1538555991fdSmrg C compiler flags for XTRANS, overriding pkg-config 1539555991fdSmrg XTRANS_LIBS linker flags for XTRANS, overriding pkg-config 1540555991fdSmrg LIBUUID_CFLAGS 1541555991fdSmrg C compiler flags for LIBUUID, overriding pkg-config 1542555991fdSmrg LIBUUID_LIBS 1543555991fdSmrg linker flags for LIBUUID, overriding pkg-config 1544126a8a12Smrg 1545555991fdSmrgUse these variables to override the choices made by `configure' or to help 1546555991fdSmrgit to find libraries and programs with nonstandard names/locations. 1547126a8a12Smrg 1548555991fdSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1549555991fdSmrg_ACEOF 1550555991fdSmrgac_status=$? 1551126a8a12Smrgfi 1552126a8a12Smrg 1553555991fdSmrgif test "$ac_init_help" = "recursive"; then 1554555991fdSmrg # If there are subdirs, report their specific --help. 1555555991fdSmrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1556555991fdSmrg test -d "$ac_dir" || 1557555991fdSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1558555991fdSmrg continue 1559555991fdSmrg ac_builddir=. 1560126a8a12Smrg 1561555991fdSmrgcase "$ac_dir" in 1562555991fdSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1563555991fdSmrg*) 1564555991fdSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1565555991fdSmrg # A ".." for each directory in $ac_dir_suffix. 1566555991fdSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1567555991fdSmrg case $ac_top_builddir_sub in 1568555991fdSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1569555991fdSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1570555991fdSmrg esac ;; 1571555991fdSmrgesac 1572555991fdSmrgac_abs_top_builddir=$ac_pwd 1573555991fdSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1574555991fdSmrg# for backward compatibility: 1575555991fdSmrgac_top_builddir=$ac_top_build_prefix 1576126a8a12Smrg 1577555991fdSmrgcase $srcdir in 1578555991fdSmrg .) # We are building in place. 1579555991fdSmrg ac_srcdir=. 1580555991fdSmrg ac_top_srcdir=$ac_top_builddir_sub 1581555991fdSmrg ac_abs_top_srcdir=$ac_pwd ;; 1582555991fdSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 1583555991fdSmrg ac_srcdir=$srcdir$ac_dir_suffix; 1584555991fdSmrg ac_top_srcdir=$srcdir 1585555991fdSmrg ac_abs_top_srcdir=$srcdir ;; 1586555991fdSmrg *) # Relative name. 1587555991fdSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1588555991fdSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1589555991fdSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1590126a8a12Smrgesac 1591555991fdSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1592555991fdSmrg 1593555991fdSmrg cd "$ac_dir" || { ac_status=$?; continue; } 1594555991fdSmrg # Check for guested configure. 1595555991fdSmrg if test -f "$ac_srcdir/configure.gnu"; then 1596555991fdSmrg echo && 1597555991fdSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1598555991fdSmrg elif test -f "$ac_srcdir/configure"; then 1599555991fdSmrg echo && 1600555991fdSmrg $SHELL "$ac_srcdir/configure" --help=recursive 1601555991fdSmrg else 1602555991fdSmrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1603555991fdSmrg fi || ac_status=$? 1604555991fdSmrg cd "$ac_pwd" || { ac_status=$?; break; } 1605555991fdSmrg done 1606126a8a12Smrgfi 1607126a8a12Smrg 1608555991fdSmrgtest -n "$ac_init_help" && exit $ac_status 1609555991fdSmrgif $ac_init_version; then 1610555991fdSmrg cat <<\_ACEOF 1611555991fdSmrglibSM configure 1.2.0 1612555991fdSmrggenerated by GNU Autoconf 2.68 1613555991fdSmrg 1614555991fdSmrgCopyright (C) 2010 Free Software Foundation, Inc. 1615555991fdSmrgThis configure script is free software; the Free Software Foundation 1616555991fdSmrggives unlimited permission to copy, distribute and modify it. 1617555991fdSmrg_ACEOF 1618555991fdSmrg exit 1619126a8a12Smrgfi 1620126a8a12Smrg 1621555991fdSmrg## ------------------------ ## 1622555991fdSmrg## Autoconf initialization. ## 1623555991fdSmrg## ------------------------ ## 1624126a8a12Smrg 1625555991fdSmrg# ac_fn_c_try_compile LINENO 1626555991fdSmrg# -------------------------- 1627555991fdSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 1628555991fdSmrgac_fn_c_try_compile () 1629555991fdSmrg{ 1630555991fdSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1631555991fdSmrg rm -f conftest.$ac_objext 1632555991fdSmrg if { { ac_try="$ac_compile" 1633126a8a12Smrgcase "(($ac_try" in 1634126a8a12Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1635126a8a12Smrg *) ac_try_echo=$ac_try;; 1636126a8a12Smrgesac 1637555991fdSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1638555991fdSmrg$as_echo "$ac_try_echo"; } >&5 1639555991fdSmrg (eval "$ac_compile") 2>conftest.err 1640126a8a12Smrg ac_status=$? 1641555991fdSmrg if test -s conftest.err; then 1642555991fdSmrg grep -v '^ *+' conftest.err >conftest.er1 1643555991fdSmrg cat conftest.er1 >&5 1644555991fdSmrg mv -f conftest.er1 conftest.err 1645555991fdSmrg fi 1646555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1647555991fdSmrg test $ac_status = 0; } && { 1648555991fdSmrg test -z "$ac_c_werror_flag" || 1649555991fdSmrg test ! -s conftest.err 1650555991fdSmrg } && test -s conftest.$ac_objext; then : 1651555991fdSmrg ac_retval=0 1652555991fdSmrgelse 1653555991fdSmrg $as_echo "$as_me: failed program was:" >&5 1654555991fdSmrgsed 's/^/| /' conftest.$ac_ext >&5 1655126a8a12Smrg 1656555991fdSmrg ac_retval=1 1657555991fdSmrgfi 1658555991fdSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1659555991fdSmrg as_fn_set_status $ac_retval 1660126a8a12Smrg 1661555991fdSmrg} # ac_fn_c_try_compile 1662555991fdSmrg 1663555991fdSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1664555991fdSmrg# --------------------------------------------- 1665555991fdSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1666555991fdSmrg# accordingly. 1667555991fdSmrgac_fn_c_check_decl () 1668555991fdSmrg{ 1669555991fdSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670555991fdSmrg as_decl_name=`echo $2|sed 's/ *(.*//'` 1671555991fdSmrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1672555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1673555991fdSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1674555991fdSmrgif eval \${$3+:} false; then : 1675555991fdSmrg $as_echo_n "(cached) " >&6 1676555991fdSmrgelse 1677555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1678555991fdSmrg/* end confdefs.h. */ 1679555991fdSmrg$4 1680126a8a12Smrgint 1681126a8a12Smrgmain () 1682126a8a12Smrg{ 1683555991fdSmrg#ifndef $as_decl_name 1684555991fdSmrg#ifdef __cplusplus 1685555991fdSmrg (void) $as_decl_use; 1686555991fdSmrg#else 1687555991fdSmrg (void) $as_decl_name; 1688555991fdSmrg#endif 1689555991fdSmrg#endif 1690126a8a12Smrg 1691126a8a12Smrg ; 1692126a8a12Smrg return 0; 1693126a8a12Smrg} 1694126a8a12Smrg_ACEOF 1695555991fdSmrgif ac_fn_c_try_compile "$LINENO"; then : 1696555991fdSmrg eval "$3=yes" 1697555991fdSmrgelse 1698555991fdSmrg eval "$3=no" 1699555991fdSmrgfi 1700555991fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1701555991fdSmrgfi 1702555991fdSmrgeval ac_res=\$$3 1703555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1704555991fdSmrg$as_echo "$ac_res" >&6; } 1705555991fdSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1706d656433aSmrg 1707555991fdSmrg} # ac_fn_c_check_decl 1708126a8a12Smrg 1709555991fdSmrg# ac_fn_c_try_cpp LINENO 1710555991fdSmrg# ---------------------- 1711555991fdSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1712555991fdSmrgac_fn_c_try_cpp () 1713555991fdSmrg{ 1714555991fdSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1715555991fdSmrg if { { ac_try="$ac_cpp conftest.$ac_ext" 1716126a8a12Smrgcase "(($ac_try" in 1717126a8a12Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1718126a8a12Smrg *) ac_try_echo=$ac_try;; 1719126a8a12Smrgesac 1720555991fdSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1721555991fdSmrg$as_echo "$ac_try_echo"; } >&5 1722555991fdSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1723126a8a12Smrg ac_status=$? 1724555991fdSmrg if test -s conftest.err; then 1725555991fdSmrg grep -v '^ *+' conftest.err >conftest.er1 1726555991fdSmrg cat conftest.er1 >&5 1727555991fdSmrg mv -f conftest.er1 conftest.err 1728555991fdSmrg fi 1729555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1730555991fdSmrg test $ac_status = 0; } > conftest.i && { 1731555991fdSmrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1732555991fdSmrg test ! -s conftest.err 1733555991fdSmrg }; then : 1734555991fdSmrg ac_retval=0 1735126a8a12Smrgelse 1736d656433aSmrg $as_echo "$as_me: failed program was:" >&5 1737126a8a12Smrgsed 's/^/| /' conftest.$ac_ext >&5 1738126a8a12Smrg 1739555991fdSmrg ac_retval=1 1740126a8a12Smrgfi 1741555991fdSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1742555991fdSmrg as_fn_set_status $ac_retval 1743126a8a12Smrg 1744555991fdSmrg} # ac_fn_c_try_cpp 1745126a8a12Smrg 1746555991fdSmrg# ac_fn_c_try_run LINENO 1747555991fdSmrg# ---------------------- 1748555991fdSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1749555991fdSmrg# that executables *can* be run. 1750555991fdSmrgac_fn_c_try_run () 1751555991fdSmrg{ 1752555991fdSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1753555991fdSmrg if { { ac_try="$ac_link" 1754555991fdSmrgcase "(($ac_try" in 1755555991fdSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1756555991fdSmrg *) ac_try_echo=$ac_try;; 1757555991fdSmrgesac 1758555991fdSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1759555991fdSmrg$as_echo "$ac_try_echo"; } >&5 1760555991fdSmrg (eval "$ac_link") 2>&5 1761555991fdSmrg ac_status=$? 1762555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1763555991fdSmrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1764555991fdSmrg { { case "(($ac_try" in 1765126a8a12Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1766126a8a12Smrg *) ac_try_echo=$ac_try;; 1767126a8a12Smrgesac 1768555991fdSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1769555991fdSmrg$as_echo "$ac_try_echo"; } >&5 1770126a8a12Smrg (eval "$ac_try") 2>&5 1771126a8a12Smrg ac_status=$? 1772555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1773555991fdSmrg test $ac_status = 0; }; }; then : 1774555991fdSmrg ac_retval=0 1775555991fdSmrgelse 1776555991fdSmrg $as_echo "$as_me: program exited with status $ac_status" >&5 1777555991fdSmrg $as_echo "$as_me: failed program was:" >&5 1778555991fdSmrgsed 's/^/| /' conftest.$ac_ext >&5 1779555991fdSmrg 1780555991fdSmrg ac_retval=$ac_status 1781126a8a12Smrgfi 1782555991fdSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1783555991fdSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1784555991fdSmrg as_fn_set_status $ac_retval 1785126a8a12Smrg 1786555991fdSmrg} # ac_fn_c_try_run 1787126a8a12Smrg 1788555991fdSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1789555991fdSmrg# ------------------------------------------------------- 1790555991fdSmrg# Tests whether HEADER exists and can be compiled using the include files in 1791555991fdSmrg# INCLUDES, setting the cache variable VAR accordingly. 1792555991fdSmrgac_fn_c_check_header_compile () 1793555991fdSmrg{ 1794555991fdSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1795555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1796555991fdSmrg$as_echo_n "checking for $2... " >&6; } 1797555991fdSmrgif eval \${$3+:} false; then : 1798555991fdSmrg $as_echo_n "(cached) " >&6 1799555991fdSmrgelse 1800555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1801555991fdSmrg/* end confdefs.h. */ 1802555991fdSmrg$4 1803555991fdSmrg#include <$2> 1804555991fdSmrg_ACEOF 1805555991fdSmrgif ac_fn_c_try_compile "$LINENO"; then : 1806555991fdSmrg eval "$3=yes" 1807555991fdSmrgelse 1808555991fdSmrg eval "$3=no" 1809555991fdSmrgfi 1810555991fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1811555991fdSmrgfi 1812555991fdSmrgeval ac_res=\$$3 1813555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1814555991fdSmrg$as_echo "$ac_res" >&6; } 1815555991fdSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1816555991fdSmrg 1817555991fdSmrg} # ac_fn_c_check_header_compile 1818555991fdSmrg 1819555991fdSmrg# ac_fn_c_try_link LINENO 1820555991fdSmrg# ----------------------- 1821555991fdSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. 1822555991fdSmrgac_fn_c_try_link () 1823555991fdSmrg{ 1824555991fdSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1825555991fdSmrg rm -f conftest.$ac_objext conftest$ac_exeext 1826555991fdSmrg if { { ac_try="$ac_link" 1827126a8a12Smrgcase "(($ac_try" in 1828126a8a12Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1829126a8a12Smrg *) ac_try_echo=$ac_try;; 1830126a8a12Smrgesac 1831555991fdSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1832555991fdSmrg$as_echo "$ac_try_echo"; } >&5 1833555991fdSmrg (eval "$ac_link") 2>conftest.err 1834126a8a12Smrg ac_status=$? 1835555991fdSmrg if test -s conftest.err; then 1836555991fdSmrg grep -v '^ *+' conftest.err >conftest.er1 1837555991fdSmrg cat conftest.er1 >&5 1838555991fdSmrg mv -f conftest.er1 conftest.err 1839555991fdSmrg fi 1840555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1841555991fdSmrg test $ac_status = 0; } && { 1842555991fdSmrg test -z "$ac_c_werror_flag" || 1843555991fdSmrg test ! -s conftest.err 1844555991fdSmrg } && test -s conftest$ac_exeext && { 1845555991fdSmrg test "$cross_compiling" = yes || 1846555991fdSmrg $as_test_x conftest$ac_exeext 1847555991fdSmrg }; then : 1848555991fdSmrg ac_retval=0 1849126a8a12Smrgelse 1850555991fdSmrg $as_echo "$as_me: failed program was:" >&5 1851555991fdSmrgsed 's/^/| /' conftest.$ac_ext >&5 1852555991fdSmrg 1853555991fdSmrg ac_retval=1 1854126a8a12Smrgfi 1855555991fdSmrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1856555991fdSmrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1857555991fdSmrg # interfere with the next link command; also delete a directory that is 1858555991fdSmrg # left behind by Apple's compiler. We do this before executing the actions. 1859555991fdSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1860555991fdSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1861555991fdSmrg as_fn_set_status $ac_retval 1862126a8a12Smrg 1863555991fdSmrg} # ac_fn_c_try_link 1864126a8a12Smrg 1865555991fdSmrg# ac_fn_c_check_func LINENO FUNC VAR 1866555991fdSmrg# ---------------------------------- 1867555991fdSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 1868555991fdSmrgac_fn_c_check_func () 1869555991fdSmrg{ 1870555991fdSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1871555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1872555991fdSmrg$as_echo_n "checking for $2... " >&6; } 1873555991fdSmrgif eval \${$3+:} false; then : 1874d656433aSmrg $as_echo_n "(cached) " >&6 1875126a8a12Smrgelse 1876555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1877126a8a12Smrg/* end confdefs.h. */ 1878555991fdSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1879555991fdSmrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1880555991fdSmrg#define $2 innocuous_$2 1881555991fdSmrg 1882555991fdSmrg/* System header to define __stub macros and hopefully few prototypes, 1883555991fdSmrg which can conflict with char $2 (); below. 1884555991fdSmrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1885555991fdSmrg <limits.h> exists even on freestanding compilers. */ 1886555991fdSmrg 1887555991fdSmrg#ifdef __STDC__ 1888555991fdSmrg# include <limits.h> 1889555991fdSmrg#else 1890555991fdSmrg# include <assert.h> 1891555991fdSmrg#endif 1892555991fdSmrg 1893555991fdSmrg#undef $2 1894555991fdSmrg 1895555991fdSmrg/* Override any GCC internal prototype to avoid an error. 1896555991fdSmrg Use char because int might match the return type of a GCC 1897555991fdSmrg builtin and then its argument prototype would still apply. */ 1898555991fdSmrg#ifdef __cplusplus 1899555991fdSmrgextern "C" 1900555991fdSmrg#endif 1901555991fdSmrgchar $2 (); 1902555991fdSmrg/* The GNU C library defines this for functions which it implements 1903555991fdSmrg to always fail with ENOSYS. Some functions are actually named 1904555991fdSmrg something starting with __ and the normal name is an alias. */ 1905555991fdSmrg#if defined __stub_$2 || defined __stub___$2 1906555991fdSmrgchoke me 1907555991fdSmrg#endif 1908126a8a12Smrg 1909126a8a12Smrgint 1910126a8a12Smrgmain () 1911126a8a12Smrg{ 1912555991fdSmrgreturn $2 (); 1913126a8a12Smrg ; 1914126a8a12Smrg return 0; 1915126a8a12Smrg} 1916126a8a12Smrg_ACEOF 1917555991fdSmrgif ac_fn_c_try_link "$LINENO"; then : 1918555991fdSmrg eval "$3=yes" 1919126a8a12Smrgelse 1920555991fdSmrg eval "$3=no" 1921126a8a12Smrgfi 1922555991fdSmrgrm -f core conftest.err conftest.$ac_objext \ 1923555991fdSmrg conftest$ac_exeext conftest.$ac_ext 1924126a8a12Smrgfi 1925555991fdSmrgeval ac_res=\$$3 1926555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1927555991fdSmrg$as_echo "$ac_res" >&6; } 1928555991fdSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1929555991fdSmrg 1930555991fdSmrg} # ac_fn_c_check_func 1931555991fdSmrg 1932555991fdSmrg# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1933555991fdSmrg# ---------------------------------------------------- 1934555991fdSmrg# Tries to find if the field MEMBER exists in type AGGR, after including 1935555991fdSmrg# INCLUDES, setting cache variable VAR accordingly. 1936555991fdSmrgac_fn_c_check_member () 1937555991fdSmrg{ 1938555991fdSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1939555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1940555991fdSmrg$as_echo_n "checking for $2.$3... " >&6; } 1941555991fdSmrgif eval \${$4+:} false; then : 1942d656433aSmrg $as_echo_n "(cached) " >&6 1943126a8a12Smrgelse 1944555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1945126a8a12Smrg/* end confdefs.h. */ 1946555991fdSmrg$5 1947126a8a12Smrgint 1948126a8a12Smrgmain () 1949126a8a12Smrg{ 1950555991fdSmrgstatic $2 ac_aggr; 1951555991fdSmrgif (ac_aggr.$3) 1952555991fdSmrgreturn 0; 1953126a8a12Smrg ; 1954126a8a12Smrg return 0; 1955126a8a12Smrg} 1956126a8a12Smrg_ACEOF 1957555991fdSmrgif ac_fn_c_try_compile "$LINENO"; then : 1958555991fdSmrg eval "$4=yes" 1959555991fdSmrgelse 1960555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1961555991fdSmrg/* end confdefs.h. */ 1962555991fdSmrg$5 1963555991fdSmrgint 1964555991fdSmrgmain () 1965555991fdSmrg{ 1966555991fdSmrgstatic $2 ac_aggr; 1967555991fdSmrgif (sizeof ac_aggr.$3) 1968555991fdSmrgreturn 0; 1969555991fdSmrg ; 1970555991fdSmrg return 0; 1971555991fdSmrg} 1972555991fdSmrg_ACEOF 1973555991fdSmrgif ac_fn_c_try_compile "$LINENO"; then : 1974555991fdSmrg eval "$4=yes" 1975126a8a12Smrgelse 1976555991fdSmrg eval "$4=no" 1977126a8a12Smrgfi 1978126a8a12Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1979126a8a12Smrgfi 1980555991fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1981d656433aSmrgfi 1982555991fdSmrgeval ac_res=\$$4 1983555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1984555991fdSmrg$as_echo "$ac_res" >&6; } 1985555991fdSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1986555991fdSmrg 1987555991fdSmrg} # ac_fn_c_check_member 1988555991fdSmrg 1989555991fdSmrg# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1990555991fdSmrg# ------------------------------------------- 1991555991fdSmrg# Tests whether TYPE exists after having included INCLUDES, setting cache 1992555991fdSmrg# variable VAR accordingly. 1993555991fdSmrgac_fn_c_check_type () 1994555991fdSmrg{ 1995555991fdSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1996555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1997555991fdSmrg$as_echo_n "checking for $2... " >&6; } 1998555991fdSmrgif eval \${$3+:} false; then : 1999d656433aSmrg $as_echo_n "(cached) " >&6 2000126a8a12Smrgelse 2001555991fdSmrg eval "$3=no" 2002555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2003126a8a12Smrg/* end confdefs.h. */ 2004555991fdSmrg$4 2005126a8a12Smrgint 2006126a8a12Smrgmain () 2007126a8a12Smrg{ 2008555991fdSmrgif (sizeof ($2)) 2009555991fdSmrg return 0; 2010126a8a12Smrg ; 2011126a8a12Smrg return 0; 2012126a8a12Smrg} 2013126a8a12Smrg_ACEOF 2014555991fdSmrgif ac_fn_c_try_compile "$LINENO"; then : 2015555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2016126a8a12Smrg/* end confdefs.h. */ 2017555991fdSmrg$4 2018126a8a12Smrgint 2019126a8a12Smrgmain () 2020126a8a12Smrg{ 2021555991fdSmrgif (sizeof (($2))) 2022555991fdSmrg return 0; 2023126a8a12Smrg ; 2024126a8a12Smrg return 0; 2025126a8a12Smrg} 2026126a8a12Smrg_ACEOF 2027555991fdSmrgif ac_fn_c_try_compile "$LINENO"; then : 2028555991fdSmrg 2029555991fdSmrgelse 2030555991fdSmrg eval "$3=yes" 2031555991fdSmrgfi 2032555991fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2033555991fdSmrgfi 2034555991fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2035555991fdSmrgfi 2036555991fdSmrgeval ac_res=\$$3 2037555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2038555991fdSmrg$as_echo "$ac_res" >&6; } 2039555991fdSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2040555991fdSmrg 2041555991fdSmrg} # ac_fn_c_check_type 2042555991fdSmrgcat >config.log <<_ACEOF 2043555991fdSmrgThis file contains any messages produced by compilers while 2044555991fdSmrgrunning configure, to aid debugging if configure makes a mistake. 2045555991fdSmrg 2046555991fdSmrgIt was created by libSM $as_me 1.2.0, which was 2047555991fdSmrggenerated by GNU Autoconf 2.68. Invocation command line was 2048555991fdSmrg 2049555991fdSmrg $ $0 $@ 2050555991fdSmrg 2051555991fdSmrg_ACEOF 2052555991fdSmrgexec 5>>config.log 2053555991fdSmrg{ 2054555991fdSmrgcat <<_ASUNAME 2055555991fdSmrg## --------- ## 2056555991fdSmrg## Platform. ## 2057555991fdSmrg## --------- ## 2058555991fdSmrg 2059555991fdSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2060555991fdSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 2061555991fdSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 2062555991fdSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 2063555991fdSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 2064555991fdSmrg 2065555991fdSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2066555991fdSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2067555991fdSmrg 2068555991fdSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2069555991fdSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2070555991fdSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2071555991fdSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2072555991fdSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2073555991fdSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2074555991fdSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2075555991fdSmrg 2076555991fdSmrg_ASUNAME 2077555991fdSmrg 2078555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2079555991fdSmrgfor as_dir in $PATH 2080555991fdSmrgdo 2081555991fdSmrg IFS=$as_save_IFS 2082555991fdSmrg test -z "$as_dir" && as_dir=. 2083555991fdSmrg $as_echo "PATH: $as_dir" 2084555991fdSmrg done 2085555991fdSmrgIFS=$as_save_IFS 2086555991fdSmrg 2087555991fdSmrg} >&5 2088555991fdSmrg 2089555991fdSmrgcat >&5 <<_ACEOF 2090555991fdSmrg 2091555991fdSmrg 2092555991fdSmrg## ----------- ## 2093555991fdSmrg## Core tests. ## 2094555991fdSmrg## ----------- ## 2095555991fdSmrg 2096555991fdSmrg_ACEOF 2097555991fdSmrg 2098555991fdSmrg 2099555991fdSmrg# Keep a trace of the command line. 2100555991fdSmrg# Strip out --no-create and --no-recursion so they do not pile up. 2101555991fdSmrg# Strip out --silent because we don't want to record it for future runs. 2102555991fdSmrg# Also quote any args containing shell meta-characters. 2103555991fdSmrg# Make two passes to allow for proper duplicate-argument suppression. 2104555991fdSmrgac_configure_args= 2105555991fdSmrgac_configure_args0= 2106555991fdSmrgac_configure_args1= 2107555991fdSmrgac_must_keep_next=false 2108555991fdSmrgfor ac_pass in 1 2 2109555991fdSmrgdo 2110555991fdSmrg for ac_arg 2111555991fdSmrg do 2112555991fdSmrg case $ac_arg in 2113555991fdSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2114555991fdSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2115555991fdSmrg | -silent | --silent | --silen | --sile | --sil) 2116555991fdSmrg continue ;; 2117555991fdSmrg *\'*) 2118555991fdSmrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2119555991fdSmrg esac 2120555991fdSmrg case $ac_pass in 2121555991fdSmrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2122555991fdSmrg 2) 2123555991fdSmrg as_fn_append ac_configure_args1 " '$ac_arg'" 2124555991fdSmrg if test $ac_must_keep_next = true; then 2125555991fdSmrg ac_must_keep_next=false # Got value, back to normal. 2126555991fdSmrg else 2127555991fdSmrg case $ac_arg in 2128555991fdSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 2129555991fdSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2130555991fdSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2131555991fdSmrg | -with-* | --with-* | -without-* | --without-* | --x) 2132555991fdSmrg case "$ac_configure_args0 " in 2133555991fdSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2134555991fdSmrg esac 2135555991fdSmrg ;; 2136555991fdSmrg -* ) ac_must_keep_next=true ;; 2137555991fdSmrg esac 2138555991fdSmrg fi 2139555991fdSmrg as_fn_append ac_configure_args " '$ac_arg'" 2140555991fdSmrg ;; 2141555991fdSmrg esac 2142555991fdSmrg done 2143555991fdSmrgdone 2144555991fdSmrg{ ac_configure_args0=; unset ac_configure_args0;} 2145555991fdSmrg{ ac_configure_args1=; unset ac_configure_args1;} 2146555991fdSmrg 2147555991fdSmrg# When interrupted or exit'd, cleanup temporary files, and complete 2148555991fdSmrg# config.log. We remove comments because anyway the quotes in there 2149555991fdSmrg# would cause problems or look ugly. 2150555991fdSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 2151555991fdSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2152555991fdSmrgtrap 'exit_status=$? 2153555991fdSmrg # Save into config.log some information that might help in debugging. 2154555991fdSmrg { 2155555991fdSmrg echo 2156555991fdSmrg 2157555991fdSmrg $as_echo "## ---------------- ## 2158555991fdSmrg## Cache variables. ## 2159555991fdSmrg## ---------------- ##" 2160555991fdSmrg echo 2161555991fdSmrg # The following way of writing the cache mishandles newlines in values, 2162555991fdSmrg( 2163555991fdSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2164555991fdSmrg eval ac_val=\$$ac_var 2165555991fdSmrg case $ac_val in #( 2166555991fdSmrg *${as_nl}*) 2167555991fdSmrg case $ac_var in #( 2168555991fdSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2169555991fdSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2170555991fdSmrg esac 2171555991fdSmrg case $ac_var in #( 2172555991fdSmrg _ | IFS | as_nl) ;; #( 2173555991fdSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2174555991fdSmrg *) { eval $ac_var=; unset $ac_var;} ;; 2175555991fdSmrg esac ;; 2176555991fdSmrg esac 2177555991fdSmrg done 2178555991fdSmrg (set) 2>&1 | 2179555991fdSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2180555991fdSmrg *${as_nl}ac_space=\ *) 2181555991fdSmrg sed -n \ 2182555991fdSmrg "s/'\''/'\''\\\\'\'''\''/g; 2183555991fdSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2184555991fdSmrg ;; #( 2185555991fdSmrg *) 2186555991fdSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2187555991fdSmrg ;; 2188555991fdSmrg esac | 2189555991fdSmrg sort 2190555991fdSmrg) 2191555991fdSmrg echo 2192555991fdSmrg 2193555991fdSmrg $as_echo "## ----------------- ## 2194555991fdSmrg## Output variables. ## 2195555991fdSmrg## ----------------- ##" 2196555991fdSmrg echo 2197555991fdSmrg for ac_var in $ac_subst_vars 2198555991fdSmrg do 2199555991fdSmrg eval ac_val=\$$ac_var 2200555991fdSmrg case $ac_val in 2201555991fdSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2202555991fdSmrg esac 2203555991fdSmrg $as_echo "$ac_var='\''$ac_val'\''" 2204555991fdSmrg done | sort 2205555991fdSmrg echo 2206555991fdSmrg 2207555991fdSmrg if test -n "$ac_subst_files"; then 2208555991fdSmrg $as_echo "## ------------------- ## 2209555991fdSmrg## File substitutions. ## 2210555991fdSmrg## ------------------- ##" 2211555991fdSmrg echo 2212555991fdSmrg for ac_var in $ac_subst_files 2213555991fdSmrg do 2214555991fdSmrg eval ac_val=\$$ac_var 2215555991fdSmrg case $ac_val in 2216555991fdSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2217555991fdSmrg esac 2218555991fdSmrg $as_echo "$ac_var='\''$ac_val'\''" 2219555991fdSmrg done | sort 2220555991fdSmrg echo 2221555991fdSmrg fi 2222555991fdSmrg 2223555991fdSmrg if test -s confdefs.h; then 2224555991fdSmrg $as_echo "## ----------- ## 2225555991fdSmrg## confdefs.h. ## 2226555991fdSmrg## ----------- ##" 2227555991fdSmrg echo 2228555991fdSmrg cat confdefs.h 2229555991fdSmrg echo 2230555991fdSmrg fi 2231555991fdSmrg test "$ac_signal" != 0 && 2232555991fdSmrg $as_echo "$as_me: caught signal $ac_signal" 2233555991fdSmrg $as_echo "$as_me: exit $exit_status" 2234555991fdSmrg } >&5 2235555991fdSmrg rm -f core *.core core.conftest.* && 2236555991fdSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2237555991fdSmrg exit $exit_status 2238555991fdSmrg' 0 2239555991fdSmrgfor ac_signal in 1 2 13 15; do 2240555991fdSmrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2241555991fdSmrgdone 2242555991fdSmrgac_signal=0 2243555991fdSmrg 2244555991fdSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 2245555991fdSmrgrm -f -r conftest* confdefs.h 2246555991fdSmrg 2247555991fdSmrg$as_echo "/* confdefs.h */" > confdefs.h 2248555991fdSmrg 2249555991fdSmrg# Predefined preprocessor variables. 2250555991fdSmrg 2251555991fdSmrgcat >>confdefs.h <<_ACEOF 2252555991fdSmrg#define PACKAGE_NAME "$PACKAGE_NAME" 2253555991fdSmrg_ACEOF 2254555991fdSmrg 2255555991fdSmrgcat >>confdefs.h <<_ACEOF 2256555991fdSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2257555991fdSmrg_ACEOF 2258555991fdSmrg 2259555991fdSmrgcat >>confdefs.h <<_ACEOF 2260555991fdSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 2261555991fdSmrg_ACEOF 2262126a8a12Smrg 2263555991fdSmrgcat >>confdefs.h <<_ACEOF 2264555991fdSmrg#define PACKAGE_STRING "$PACKAGE_STRING" 2265126a8a12Smrg_ACEOF 2266126a8a12Smrg 2267555991fdSmrgcat >>confdefs.h <<_ACEOF 2268555991fdSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2269555991fdSmrg_ACEOF 2270126a8a12Smrg 2271555991fdSmrgcat >>confdefs.h <<_ACEOF 2272555991fdSmrg#define PACKAGE_URL "$PACKAGE_URL" 2273126a8a12Smrg_ACEOF 2274126a8a12Smrg 2275126a8a12Smrg 2276555991fdSmrg# Let the site file select an alternate cache file if it wants to. 2277555991fdSmrg# Prefer an explicitly selected file to automatically selected ones. 2278555991fdSmrgac_site_file1=NONE 2279555991fdSmrgac_site_file2=NONE 2280555991fdSmrgif test -n "$CONFIG_SITE"; then 2281555991fdSmrg # We do not want a PATH search for config.site. 2282555991fdSmrg case $CONFIG_SITE in #(( 2283555991fdSmrg -*) ac_site_file1=./$CONFIG_SITE;; 2284555991fdSmrg */*) ac_site_file1=$CONFIG_SITE;; 2285555991fdSmrg *) ac_site_file1=./$CONFIG_SITE;; 2286555991fdSmrg esac 2287555991fdSmrgelif test "x$prefix" != xNONE; then 2288555991fdSmrg ac_site_file1=$prefix/share/config.site 2289555991fdSmrg ac_site_file2=$prefix/etc/config.site 2290555991fdSmrgelse 2291555991fdSmrg ac_site_file1=$ac_default_prefix/share/config.site 2292555991fdSmrg ac_site_file2=$ac_default_prefix/etc/config.site 2293126a8a12Smrgfi 2294555991fdSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 2295555991fdSmrgdo 2296555991fdSmrg test "x$ac_site_file" = xNONE && continue 2297555991fdSmrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2298555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2299555991fdSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2300555991fdSmrg sed 's/^/| /' "$ac_site_file" >&5 2301555991fdSmrg . "$ac_site_file" \ 2302555991fdSmrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2303555991fdSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2304555991fdSmrgas_fn_error $? "failed to load site script $ac_site_file 2305555991fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 2306555991fdSmrg fi 2307555991fdSmrgdone 2308126a8a12Smrg 2309555991fdSmrgif test -r "$cache_file"; then 2310555991fdSmrg # Some versions of bash will fail to source /dev/null (special files 2311555991fdSmrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2312555991fdSmrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2313555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2314555991fdSmrg$as_echo "$as_me: loading cache $cache_file" >&6;} 2315555991fdSmrg case $cache_file in 2316555991fdSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 2317555991fdSmrg *) . "./$cache_file";; 2318555991fdSmrg esac 2319555991fdSmrg fi 2320555991fdSmrgelse 2321555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2322555991fdSmrg$as_echo "$as_me: creating cache $cache_file" >&6;} 2323555991fdSmrg >$cache_file 2324126a8a12Smrgfi 2325126a8a12Smrg 2326555991fdSmrg# Check that the precious variables saved in the cache have kept the same 2327555991fdSmrg# value. 2328555991fdSmrgac_cache_corrupted=false 2329555991fdSmrgfor ac_var in $ac_precious_vars; do 2330555991fdSmrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 2331555991fdSmrg eval ac_new_set=\$ac_env_${ac_var}_set 2332555991fdSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 2333555991fdSmrg eval ac_new_val=\$ac_env_${ac_var}_value 2334555991fdSmrg case $ac_old_set,$ac_new_set in 2335555991fdSmrg set,) 2336555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2337555991fdSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2338555991fdSmrg ac_cache_corrupted=: ;; 2339555991fdSmrg ,set) 2340555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2341555991fdSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2342555991fdSmrg ac_cache_corrupted=: ;; 2343555991fdSmrg ,);; 2344555991fdSmrg *) 2345555991fdSmrg if test "x$ac_old_val" != "x$ac_new_val"; then 2346555991fdSmrg # differences in whitespace do not lead to failure. 2347555991fdSmrg ac_old_val_w=`echo x $ac_old_val` 2348555991fdSmrg ac_new_val_w=`echo x $ac_new_val` 2349555991fdSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 2350555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2351555991fdSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2352555991fdSmrg ac_cache_corrupted=: 2353555991fdSmrg else 2354555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2355555991fdSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2356555991fdSmrg eval $ac_var=\$ac_old_val 2357555991fdSmrg fi 2358555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2359555991fdSmrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2360555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2361555991fdSmrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2362555991fdSmrg fi;; 2363555991fdSmrg esac 2364555991fdSmrg # Pass precious variables to config.status. 2365555991fdSmrg if test "$ac_new_set" = set; then 2366555991fdSmrg case $ac_new_val in 2367555991fdSmrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2368555991fdSmrg *) ac_arg=$ac_var=$ac_new_val ;; 2369555991fdSmrg esac 2370555991fdSmrg case " $ac_configure_args " in 2371555991fdSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2372555991fdSmrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2373555991fdSmrg esac 2374555991fdSmrg fi 2375555991fdSmrgdone 2376555991fdSmrgif $ac_cache_corrupted; then 2377555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2378555991fdSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2379555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2380555991fdSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2381555991fdSmrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2382126a8a12Smrgfi 2383555991fdSmrg## -------------------- ## 2384555991fdSmrg## Main body of script. ## 2385555991fdSmrg## -------------------- ## 2386126a8a12Smrg 2387555991fdSmrgac_ext=c 2388555991fdSmrgac_cpp='$CPP $CPPFLAGS' 2389555991fdSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2390555991fdSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2391555991fdSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2392555991fdSmrg 2393555991fdSmrg 2394555991fdSmrg 2395555991fdSmrg 2396555991fdSmrgam__api_version='1.11' 2397555991fdSmrg 2398555991fdSmrgac_aux_dir= 2399555991fdSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2400555991fdSmrg if test -f "$ac_dir/install-sh"; then 2401555991fdSmrg ac_aux_dir=$ac_dir 2402555991fdSmrg ac_install_sh="$ac_aux_dir/install-sh -c" 2403555991fdSmrg break 2404555991fdSmrg elif test -f "$ac_dir/install.sh"; then 2405555991fdSmrg ac_aux_dir=$ac_dir 2406555991fdSmrg ac_install_sh="$ac_aux_dir/install.sh -c" 2407555991fdSmrg break 2408555991fdSmrg elif test -f "$ac_dir/shtool"; then 2409555991fdSmrg ac_aux_dir=$ac_dir 2410555991fdSmrg ac_install_sh="$ac_aux_dir/shtool install -c" 2411555991fdSmrg break 2412126a8a12Smrg fi 2413555991fdSmrgdone 2414555991fdSmrgif test -z "$ac_aux_dir"; then 2415555991fdSmrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2416126a8a12Smrgfi 2417126a8a12Smrg 2418555991fdSmrg# These three variables are undocumented and unsupported, 2419555991fdSmrg# and are intended to be withdrawn in a future Autoconf release. 2420555991fdSmrg# They can cause serious problems if a builder's source tree is in a directory 2421555991fdSmrg# whose full name contains unusual characters. 2422555991fdSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2423555991fdSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2424555991fdSmrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2425126a8a12Smrg 2426126a8a12Smrg 2427555991fdSmrg# Find a good install program. We prefer a C program (faster), 2428555991fdSmrg# so one script is as good as another. But avoid the broken or 2429555991fdSmrg# incompatible versions: 2430555991fdSmrg# SysV /etc/install, /usr/sbin/install 2431555991fdSmrg# SunOS /usr/etc/install 2432555991fdSmrg# IRIX /sbin/install 2433555991fdSmrg# AIX /bin/install 2434555991fdSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs 2435555991fdSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2436555991fdSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2437555991fdSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2438555991fdSmrg# OS/2's system install, which has a completely different semantic 2439555991fdSmrg# ./install, which can be erroneously created by make from ./install.sh. 2440555991fdSmrg# Reject install programs that cannot install multiple files. 2441555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2442555991fdSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 2443555991fdSmrgif test -z "$INSTALL"; then 2444555991fdSmrgif ${ac_cv_path_install+:} false; then : 2445555991fdSmrg $as_echo_n "(cached) " >&6 2446555991fdSmrgelse 2447555991fdSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2448555991fdSmrgfor as_dir in $PATH 2449126a8a12Smrgdo 2450555991fdSmrg IFS=$as_save_IFS 2451555991fdSmrg test -z "$as_dir" && as_dir=. 2452555991fdSmrg # Account for people who put trailing slashes in PATH elements. 2453555991fdSmrgcase $as_dir/ in #(( 2454555991fdSmrg ./ | .// | /[cC]/* | \ 2455555991fdSmrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2456555991fdSmrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2457555991fdSmrg /usr/ucb/* ) ;; 2458555991fdSmrg *) 2459555991fdSmrg # OSF1 and SCO ODT 3.0 have their own names for install. 2460555991fdSmrg # Don't use installbsd from OSF since it installs stuff as root 2461555991fdSmrg # by default. 2462555991fdSmrg for ac_prog in ginstall scoinst install; do 2463555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2464555991fdSmrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2465555991fdSmrg if test $ac_prog = install && 2466555991fdSmrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2467555991fdSmrg # AIX install. It has an incompatible calling convention. 2468555991fdSmrg : 2469555991fdSmrg elif test $ac_prog = install && 2470555991fdSmrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2471555991fdSmrg # program-specific install script used by HP pwplus--don't use. 2472555991fdSmrg : 2473555991fdSmrg else 2474555991fdSmrg rm -rf conftest.one conftest.two conftest.dir 2475555991fdSmrg echo one > conftest.one 2476555991fdSmrg echo two > conftest.two 2477555991fdSmrg mkdir conftest.dir 2478555991fdSmrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2479555991fdSmrg test -s conftest.one && test -s conftest.two && 2480555991fdSmrg test -s conftest.dir/conftest.one && 2481555991fdSmrg test -s conftest.dir/conftest.two 2482555991fdSmrg then 2483555991fdSmrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2484555991fdSmrg break 3 2485555991fdSmrg fi 2486555991fdSmrg fi 2487555991fdSmrg fi 2488555991fdSmrg done 2489555991fdSmrg done 2490555991fdSmrg ;; 2491126a8a12Smrgesac 2492126a8a12Smrg 2493555991fdSmrg done 2494555991fdSmrgIFS=$as_save_IFS 2495555991fdSmrg 2496555991fdSmrgrm -rf conftest.one conftest.two conftest.dir 2497126a8a12Smrg 2498126a8a12Smrgfi 2499555991fdSmrg if test "${ac_cv_path_install+set}" = set; then 2500555991fdSmrg INSTALL=$ac_cv_path_install 2501555991fdSmrg else 2502555991fdSmrg # As a last resort, use the slow shell script. Don't cache a 2503555991fdSmrg # value for INSTALL within a source directory, because that will 2504555991fdSmrg # break other packages using the cache if that directory is 2505555991fdSmrg # removed, or if the value is a relative name. 2506555991fdSmrg INSTALL=$ac_install_sh 2507555991fdSmrg fi 2508555991fdSmrgfi 2509555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2510555991fdSmrg$as_echo "$INSTALL" >&6; } 2511126a8a12Smrg 2512555991fdSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2513555991fdSmrg# It thinks the first close brace ends the variable substitution. 2514555991fdSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2515126a8a12Smrg 2516555991fdSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2517126a8a12Smrg 2518555991fdSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2519126a8a12Smrg 2520555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2521555991fdSmrg$as_echo_n "checking whether build environment is sane... " >&6; } 2522555991fdSmrg# Just in case 2523555991fdSmrgsleep 1 2524555991fdSmrgecho timestamp > conftest.file 2525555991fdSmrg# Reject unsafe characters in $srcdir or the absolute working directory 2526555991fdSmrg# name. Accept space and tab only in the latter. 2527555991fdSmrgam_lf=' 2528555991fdSmrg' 2529555991fdSmrgcase `pwd` in 2530555991fdSmrg *[\\\"\#\$\&\'\`$am_lf]*) 2531555991fdSmrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2532555991fdSmrgesac 2533555991fdSmrgcase $srcdir in 2534555991fdSmrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2535555991fdSmrg as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2536555991fdSmrgesac 2537126a8a12Smrg 2538555991fdSmrg# Do `set' in a subshell so we don't clobber the current shell's 2539555991fdSmrg# arguments. Must try -L first in case configure is actually a 2540555991fdSmrg# symlink; some systems play weird games with the mod time of symlinks 2541555991fdSmrg# (eg FreeBSD returns the mod time of the symlink's containing 2542555991fdSmrg# directory). 2543555991fdSmrgif ( 2544555991fdSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2545555991fdSmrg if test "$*" = "X"; then 2546555991fdSmrg # -L didn't work. 2547555991fdSmrg set X `ls -t "$srcdir/configure" conftest.file` 2548555991fdSmrg fi 2549555991fdSmrg rm -f conftest.file 2550555991fdSmrg if test "$*" != "X $srcdir/configure conftest.file" \ 2551555991fdSmrg && test "$*" != "X conftest.file $srcdir/configure"; then 2552126a8a12Smrg 2553555991fdSmrg # If neither matched, then we have a broken ls. This can happen 2554555991fdSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 2555555991fdSmrg # broken ls alias from the environment. This has actually 2556555991fdSmrg # happened. Such a system could not be considered "sane". 2557555991fdSmrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2558555991fdSmrgalias in your environment" "$LINENO" 5 2559555991fdSmrg fi 2560555991fdSmrg 2561555991fdSmrg test "$2" = conftest.file 2562555991fdSmrg ) 2563555991fdSmrgthen 2564555991fdSmrg # Ok. 2565555991fdSmrg : 2566126a8a12Smrgelse 2567555991fdSmrg as_fn_error $? "newly created file is older than distributed files! 2568555991fdSmrgCheck your system clock" "$LINENO" 5 2569555991fdSmrgfi 2570555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2571555991fdSmrg$as_echo "yes" >&6; } 2572555991fdSmrgtest "$program_prefix" != NONE && 2573555991fdSmrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 2574555991fdSmrg# Use a double $ so make ignores it. 2575555991fdSmrgtest "$program_suffix" != NONE && 2576555991fdSmrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2577555991fdSmrg# Double any \ or $. 2578555991fdSmrg# By default was `s,x,x', remove it if useless. 2579555991fdSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2580555991fdSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2581126a8a12Smrg 2582555991fdSmrg# expand $ac_aux_dir to an absolute path 2583555991fdSmrgam_aux_dir=`cd $ac_aux_dir && pwd` 2584d656433aSmrg 2585555991fdSmrgif test x"${MISSING+set}" != xset; then 2586555991fdSmrg case $am_aux_dir in 2587555991fdSmrg *\ * | *\ *) 2588555991fdSmrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2589555991fdSmrg *) 2590555991fdSmrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 2591555991fdSmrg esac 2592555991fdSmrgfi 2593555991fdSmrg# Use eval to expand $SHELL 2594555991fdSmrgif eval "$MISSING --run true"; then 2595555991fdSmrg am_missing_run="$MISSING --run " 2596555991fdSmrgelse 2597555991fdSmrg am_missing_run= 2598555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2599555991fdSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2600555991fdSmrgfi 2601126a8a12Smrg 2602555991fdSmrgif test x"${install_sh}" != xset; then 2603555991fdSmrg case $am_aux_dir in 2604555991fdSmrg *\ * | *\ *) 2605555991fdSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2606555991fdSmrg *) 2607555991fdSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 2608555991fdSmrg esac 2609555991fdSmrgfi 2610555991fdSmrg 2611555991fdSmrg# Installed binaries are usually stripped using `strip' when the user 2612555991fdSmrg# run `make install-strip'. However `strip' might not be the right 2613555991fdSmrg# tool to use in cross-compilation environments, therefore Automake 2614555991fdSmrg# will honor the `STRIP' environment variable to overrule this program. 2615555991fdSmrgif test "$cross_compiling" != no; then 2616555991fdSmrg if test -n "$ac_tool_prefix"; then 2617555991fdSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2618555991fdSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 2619555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2620555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 2621555991fdSmrgif ${ac_cv_prog_STRIP+:} false; then : 2622555991fdSmrg $as_echo_n "(cached) " >&6 2623555991fdSmrgelse 2624555991fdSmrg if test -n "$STRIP"; then 2625555991fdSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2626555991fdSmrgelse 2627555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2628555991fdSmrgfor as_dir in $PATH 2629555991fdSmrgdo 2630555991fdSmrg IFS=$as_save_IFS 2631555991fdSmrg test -z "$as_dir" && as_dir=. 2632555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2633555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2634555991fdSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2635555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2636555991fdSmrg break 2 2637555991fdSmrg fi 2638555991fdSmrgdone 2639126a8a12Smrg done 2640555991fdSmrgIFS=$as_save_IFS 2641126a8a12Smrg 2642555991fdSmrgfi 2643555991fdSmrgfi 2644555991fdSmrgSTRIP=$ac_cv_prog_STRIP 2645555991fdSmrgif test -n "$STRIP"; then 2646555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2647555991fdSmrg$as_echo "$STRIP" >&6; } 2648126a8a12Smrgelse 2649555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2650555991fdSmrg$as_echo "no" >&6; } 2651126a8a12Smrgfi 2652126a8a12Smrg 2653555991fdSmrg 2654126a8a12Smrgfi 2655555991fdSmrgif test -z "$ac_cv_prog_STRIP"; then 2656555991fdSmrg ac_ct_STRIP=$STRIP 2657555991fdSmrg # Extract the first word of "strip", so it can be a program name with args. 2658555991fdSmrgset dummy strip; ac_word=$2 2659555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2660555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 2661555991fdSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2662555991fdSmrg $as_echo_n "(cached) " >&6 2663555991fdSmrgelse 2664555991fdSmrg if test -n "$ac_ct_STRIP"; then 2665555991fdSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2666555991fdSmrgelse 2667555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2668555991fdSmrgfor as_dir in $PATH 2669555991fdSmrgdo 2670555991fdSmrg IFS=$as_save_IFS 2671555991fdSmrg test -z "$as_dir" && as_dir=. 2672555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2673555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2674555991fdSmrg ac_cv_prog_ac_ct_STRIP="strip" 2675555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2676555991fdSmrg break 2 2677555991fdSmrg fi 2678555991fdSmrgdone 2679555991fdSmrg done 2680555991fdSmrgIFS=$as_save_IFS 2681126a8a12Smrg 2682555991fdSmrgfi 2683555991fdSmrgfi 2684555991fdSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2685555991fdSmrgif test -n "$ac_ct_STRIP"; then 2686555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2687555991fdSmrg$as_echo "$ac_ct_STRIP" >&6; } 2688126a8a12Smrgelse 2689555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2690555991fdSmrg$as_echo "no" >&6; } 2691555991fdSmrgfi 2692555991fdSmrg 2693555991fdSmrg if test "x$ac_ct_STRIP" = x; then 2694555991fdSmrg STRIP=":" 2695555991fdSmrg else 2696555991fdSmrg case $cross_compiling:$ac_tool_warned in 2697555991fdSmrgyes:) 2698555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2699555991fdSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2700555991fdSmrgac_tool_warned=yes ;; 2701555991fdSmrgesac 2702555991fdSmrg STRIP=$ac_ct_STRIP 2703555991fdSmrg fi 2704555991fdSmrgelse 2705555991fdSmrg STRIP="$ac_cv_prog_STRIP" 2706126a8a12Smrgfi 2707126a8a12Smrg 2708555991fdSmrgfi 2709555991fdSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2710126a8a12Smrg 2711555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2712555991fdSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2713555991fdSmrgif test -z "$MKDIR_P"; then 2714555991fdSmrg if ${ac_cv_path_mkdir+:} false; then : 2715d656433aSmrg $as_echo_n "(cached) " >&6 2716126a8a12Smrgelse 2717d656433aSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2718555991fdSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2719555991fdSmrgdo 2720555991fdSmrg IFS=$as_save_IFS 2721555991fdSmrg test -z "$as_dir" && as_dir=. 2722555991fdSmrg for ac_prog in mkdir gmkdir; do 2723555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2724555991fdSmrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2725555991fdSmrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2726555991fdSmrg 'mkdir (GNU coreutils) '* | \ 2727555991fdSmrg 'mkdir (coreutils) '* | \ 2728555991fdSmrg 'mkdir (fileutils) '4.1*) 2729555991fdSmrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2730555991fdSmrg break 3;; 2731555991fdSmrg esac 2732555991fdSmrg done 2733555991fdSmrg done 2734555991fdSmrg done 2735555991fdSmrgIFS=$as_save_IFS 2736555991fdSmrg 2737555991fdSmrgfi 2738555991fdSmrg 2739555991fdSmrg test -d ./--version && rmdir ./--version 2740555991fdSmrg if test "${ac_cv_path_mkdir+set}" = set; then 2741555991fdSmrg MKDIR_P="$ac_cv_path_mkdir -p" 2742555991fdSmrg else 2743555991fdSmrg # As a last resort, use the slow shell script. Don't cache a 2744555991fdSmrg # value for MKDIR_P within a source directory, because that will 2745555991fdSmrg # break other packages using the cache if that directory is 2746555991fdSmrg # removed, or if the value is a relative name. 2747555991fdSmrg MKDIR_P="$ac_install_sh -d" 2748555991fdSmrg fi 2749555991fdSmrgfi 2750555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2751555991fdSmrg$as_echo "$MKDIR_P" >&6; } 2752555991fdSmrg 2753555991fdSmrgmkdir_p="$MKDIR_P" 2754555991fdSmrgcase $mkdir_p in 2755555991fdSmrg [\\/$]* | ?:[\\/]*) ;; 2756555991fdSmrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2757555991fdSmrgesac 2758555991fdSmrg 2759555991fdSmrgfor ac_prog in gawk mawk nawk awk 2760555991fdSmrgdo 2761555991fdSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2762555991fdSmrgset dummy $ac_prog; ac_word=$2 2763555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2764555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 2765555991fdSmrgif ${ac_cv_prog_AWK+:} false; then : 2766555991fdSmrg $as_echo_n "(cached) " >&6 2767555991fdSmrgelse 2768555991fdSmrg if test -n "$AWK"; then 2769555991fdSmrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 2770555991fdSmrgelse 2771555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2772126a8a12Smrgfor as_dir in $PATH 2773126a8a12Smrgdo 2774126a8a12Smrg IFS=$as_save_IFS 2775126a8a12Smrg test -z "$as_dir" && as_dir=. 2776126a8a12Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2777555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2778555991fdSmrg ac_cv_prog_AWK="$ac_prog" 2779555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2780555991fdSmrg break 2 2781555991fdSmrg fi 2782555991fdSmrgdone 2783d656433aSmrg done 2784555991fdSmrgIFS=$as_save_IFS 2785555991fdSmrg 2786555991fdSmrgfi 2787555991fdSmrgfi 2788555991fdSmrgAWK=$ac_cv_prog_AWK 2789555991fdSmrgif test -n "$AWK"; then 2790555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2791555991fdSmrg$as_echo "$AWK" >&6; } 2792555991fdSmrgelse 2793555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2794555991fdSmrg$as_echo "no" >&6; } 2795555991fdSmrgfi 2796555991fdSmrg 2797555991fdSmrg 2798555991fdSmrg test -n "$AWK" && break 2799555991fdSmrgdone 2800555991fdSmrg 2801555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2802555991fdSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2803555991fdSmrgset x ${MAKE-make} 2804555991fdSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2805555991fdSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2806555991fdSmrg $as_echo_n "(cached) " >&6 2807555991fdSmrgelse 2808555991fdSmrg cat >conftest.make <<\_ACEOF 2809555991fdSmrgSHELL = /bin/sh 2810555991fdSmrgall: 2811555991fdSmrg @echo '@@@%%%=$(MAKE)=@@@%%%' 2812555991fdSmrg_ACEOF 2813555991fdSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2814555991fdSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2815555991fdSmrg *@@@%%%=?*=@@@%%%*) 2816555991fdSmrg eval ac_cv_prog_make_${ac_make}_set=yes;; 2817555991fdSmrg *) 2818555991fdSmrg eval ac_cv_prog_make_${ac_make}_set=no;; 2819d656433aSmrgesac 2820555991fdSmrgrm -f conftest.make 2821555991fdSmrgfi 2822555991fdSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2823555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2824555991fdSmrg$as_echo "yes" >&6; } 2825555991fdSmrg SET_MAKE= 2826555991fdSmrgelse 2827555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2828555991fdSmrg$as_echo "no" >&6; } 2829555991fdSmrg SET_MAKE="MAKE=${MAKE-make}" 2830555991fdSmrgfi 2831555991fdSmrg 2832555991fdSmrgrm -rf .tst 2>/dev/null 2833555991fdSmrgmkdir .tst 2>/dev/null 2834555991fdSmrgif test -d .tst; then 2835555991fdSmrg am__leading_dot=. 2836555991fdSmrgelse 2837555991fdSmrg am__leading_dot=_ 2838555991fdSmrgfi 2839555991fdSmrgrmdir .tst 2>/dev/null 2840555991fdSmrg 2841555991fdSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 2842555991fdSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2843555991fdSmrg # is not polluted with repeated "-I." 2844555991fdSmrg am__isrc=' -I$(srcdir)' 2845555991fdSmrg # test to see if srcdir already configured 2846555991fdSmrg if test -f $srcdir/config.status; then 2847555991fdSmrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2848555991fdSmrg fi 2849555991fdSmrgfi 2850555991fdSmrg 2851555991fdSmrg# test whether we have cygpath 2852555991fdSmrgif test -z "$CYGPATH_W"; then 2853555991fdSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 2854555991fdSmrg CYGPATH_W='cygpath -w' 2855555991fdSmrg else 2856555991fdSmrg CYGPATH_W=echo 2857555991fdSmrg fi 2858555991fdSmrgfi 2859555991fdSmrg 2860555991fdSmrg 2861555991fdSmrg# Define the identity of the package. 2862555991fdSmrg PACKAGE='libSM' 2863555991fdSmrg VERSION='1.2.0' 2864555991fdSmrg 2865555991fdSmrg 2866555991fdSmrgcat >>confdefs.h <<_ACEOF 2867555991fdSmrg#define PACKAGE "$PACKAGE" 2868555991fdSmrg_ACEOF 2869555991fdSmrg 2870555991fdSmrg 2871555991fdSmrgcat >>confdefs.h <<_ACEOF 2872555991fdSmrg#define VERSION "$VERSION" 2873555991fdSmrg_ACEOF 2874d656433aSmrg 2875555991fdSmrg# Some tools Automake needs. 2876126a8a12Smrg 2877555991fdSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2878d656433aSmrg 2879126a8a12Smrg 2880555991fdSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2881126a8a12Smrg 2882d656433aSmrg 2883555991fdSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2884d656433aSmrg 2885d656433aSmrg 2886555991fdSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2887d656433aSmrg 2888d656433aSmrg 2889555991fdSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2890d656433aSmrg 2891555991fdSmrg# We need awk for the "check" target. The system "awk" is bad on 2892555991fdSmrg# some platforms. 2893555991fdSmrg# Always define AMTAR for backward compatibility. 2894d656433aSmrg 2895555991fdSmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 2896d656433aSmrg 2897555991fdSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2898d656433aSmrg 2899126a8a12Smrg 2900126a8a12Smrg 2901126a8a12Smrg 2902126a8a12Smrg 2903126a8a12Smrg 2904555991fdSmrg 2905555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2906555991fdSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2907555991fdSmrg # Check whether --enable-maintainer-mode was given. 2908555991fdSmrgif test "${enable_maintainer_mode+set}" = set; then : 2909555991fdSmrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2910d656433aSmrgelse 2911555991fdSmrg USE_MAINTAINER_MODE=no 2912126a8a12Smrgfi 2913126a8a12Smrg 2914555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2915555991fdSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 2916555991fdSmrg if test $USE_MAINTAINER_MODE = yes; then 2917555991fdSmrg MAINTAINER_MODE_TRUE= 2918555991fdSmrg MAINTAINER_MODE_FALSE='#' 2919555991fdSmrgelse 2920555991fdSmrg MAINTAINER_MODE_TRUE='#' 2921555991fdSmrg MAINTAINER_MODE_FALSE= 2922126a8a12Smrgfi 2923d656433aSmrg 2924555991fdSmrg MAINT=$MAINTAINER_MODE_TRUE 2925126a8a12Smrg 2926126a8a12Smrg 2927126a8a12Smrg 2928555991fdSmrg# Require xorg-macros minimum of 1.10 for DocBook XML documentation 2929d656433aSmrg 2930d656433aSmrg 2931d656433aSmrg 2932d656433aSmrg 2933d656433aSmrg 2934d656433aSmrg 2935d656433aSmrg 2936d656433aSmrg 2937d656433aSmrg 2938d656433aSmrg 2939d656433aSmrg 2940555991fdSmrgDEPDIR="${am__leading_dot}deps" 2941d656433aSmrg 2942555991fdSmrgac_config_commands="$ac_config_commands depfiles" 2943d656433aSmrg 2944d656433aSmrg 2945555991fdSmrgam_make=${MAKE-make} 2946555991fdSmrgcat > confinc << 'END' 2947555991fdSmrgam__doit: 2948555991fdSmrg @echo this is the am__doit target 2949555991fdSmrg.PHONY: am__doit 2950555991fdSmrgEND 2951555991fdSmrg# If we don't find an include directive, just comment out the code. 2952555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2953555991fdSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 2954555991fdSmrgam__include="#" 2955555991fdSmrgam__quote= 2956555991fdSmrg_am_result=none 2957555991fdSmrg# First try GNU make style include. 2958555991fdSmrgecho "include confinc" > confmf 2959555991fdSmrg# Ignore all kinds of additional output from `make'. 2960555991fdSmrgcase `$am_make -s -f confmf 2> /dev/null` in #( 2961555991fdSmrg*the\ am__doit\ target*) 2962555991fdSmrg am__include=include 2963555991fdSmrg am__quote= 2964555991fdSmrg _am_result=GNU 2965555991fdSmrg ;; 2966555991fdSmrgesac 2967555991fdSmrg# Now try BSD make style include. 2968555991fdSmrgif test "$am__include" = "#"; then 2969555991fdSmrg echo '.include "confinc"' > confmf 2970555991fdSmrg case `$am_make -s -f confmf 2> /dev/null` in #( 2971555991fdSmrg *the\ am__doit\ target*) 2972555991fdSmrg am__include=.include 2973555991fdSmrg am__quote="\"" 2974555991fdSmrg _am_result=BSD 2975555991fdSmrg ;; 2976555991fdSmrg esac 2977555991fdSmrgfi 2978d656433aSmrg 2979d656433aSmrg 2980555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2981555991fdSmrg$as_echo "$_am_result" >&6; } 2982555991fdSmrgrm -f confinc confmf 2983d656433aSmrg 2984555991fdSmrg# Check whether --enable-dependency-tracking was given. 2985555991fdSmrgif test "${enable_dependency_tracking+set}" = set; then : 2986555991fdSmrg enableval=$enable_dependency_tracking; 2987555991fdSmrgfi 2988d656433aSmrg 2989555991fdSmrgif test "x$enable_dependency_tracking" != xno; then 2990555991fdSmrg am_depcomp="$ac_aux_dir/depcomp" 2991555991fdSmrg AMDEPBACKSLASH='\' 2992555991fdSmrgfi 2993555991fdSmrg if test "x$enable_dependency_tracking" != xno; then 2994555991fdSmrg AMDEP_TRUE= 2995555991fdSmrg AMDEP_FALSE='#' 2996555991fdSmrgelse 2997555991fdSmrg AMDEP_TRUE='#' 2998555991fdSmrg AMDEP_FALSE= 2999555991fdSmrgfi 3000126a8a12Smrg 3001126a8a12Smrg 3002555991fdSmrgac_ext=c 3003555991fdSmrgac_cpp='$CPP $CPPFLAGS' 3004555991fdSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3005555991fdSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3006555991fdSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3007555991fdSmrgif test -n "$ac_tool_prefix"; then 3008555991fdSmrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3009555991fdSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 3010555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3011555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 3012555991fdSmrgif ${ac_cv_prog_CC+:} false; then : 3013555991fdSmrg $as_echo_n "(cached) " >&6 3014555991fdSmrgelse 3015555991fdSmrg if test -n "$CC"; then 3016555991fdSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 3017555991fdSmrgelse 3018555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3019555991fdSmrgfor as_dir in $PATH 3020555991fdSmrgdo 3021555991fdSmrg IFS=$as_save_IFS 3022555991fdSmrg test -z "$as_dir" && as_dir=. 3023555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3024555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3025555991fdSmrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 3026555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3027555991fdSmrg break 2 3028555991fdSmrg fi 3029555991fdSmrgdone 3030555991fdSmrg done 3031555991fdSmrgIFS=$as_save_IFS 3032126a8a12Smrg 3033555991fdSmrgfi 3034555991fdSmrgfi 3035555991fdSmrgCC=$ac_cv_prog_CC 3036555991fdSmrgif test -n "$CC"; then 3037555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3038555991fdSmrg$as_echo "$CC" >&6; } 3039126a8a12Smrgelse 3040555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3041555991fdSmrg$as_echo "no" >&6; } 3042126a8a12Smrgfi 3043126a8a12Smrg 3044555991fdSmrg 3045126a8a12Smrgfi 3046555991fdSmrgif test -z "$ac_cv_prog_CC"; then 3047555991fdSmrg ac_ct_CC=$CC 3048555991fdSmrg # Extract the first word of "gcc", so it can be a program name with args. 3049555991fdSmrgset dummy gcc; ac_word=$2 3050555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3051555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 3052555991fdSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 3053d656433aSmrg $as_echo_n "(cached) " >&6 3054126a8a12Smrgelse 3055555991fdSmrg if test -n "$ac_ct_CC"; then 3056555991fdSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3057126a8a12Smrgelse 3058555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3059555991fdSmrgfor as_dir in $PATH 3060555991fdSmrgdo 3061555991fdSmrg IFS=$as_save_IFS 3062555991fdSmrg test -z "$as_dir" && as_dir=. 3063555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3064555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3065555991fdSmrg ac_cv_prog_ac_ct_CC="gcc" 3066555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3067555991fdSmrg break 2 3068555991fdSmrg fi 3069555991fdSmrgdone 3070555991fdSmrg done 3071555991fdSmrgIFS=$as_save_IFS 3072555991fdSmrg 3073126a8a12Smrgfi 3074126a8a12Smrgfi 3075555991fdSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 3076555991fdSmrgif test -n "$ac_ct_CC"; then 3077555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3078555991fdSmrg$as_echo "$ac_ct_CC" >&6; } 3079126a8a12Smrgelse 3080555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3081d656433aSmrg$as_echo "no" >&6; } 3082126a8a12Smrgfi 3083555991fdSmrg 3084555991fdSmrg if test "x$ac_ct_CC" = x; then 3085555991fdSmrg CC="" 3086555991fdSmrg else 3087555991fdSmrg case $cross_compiling:$ac_tool_warned in 3088555991fdSmrgyes:) 3089555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3090555991fdSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3091555991fdSmrgac_tool_warned=yes ;; 3092126a8a12Smrgesac 3093555991fdSmrg CC=$ac_ct_CC 3094555991fdSmrg fi 3095555991fdSmrgelse 3096555991fdSmrg CC="$ac_cv_prog_CC" 3097126a8a12Smrgfi 3098d656433aSmrg 3099555991fdSmrgif test -z "$CC"; then 3100555991fdSmrg if test -n "$ac_tool_prefix"; then 3101555991fdSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3102555991fdSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2 3103555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3104555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 3105555991fdSmrgif ${ac_cv_prog_CC+:} false; then : 3106555991fdSmrg $as_echo_n "(cached) " >&6 3107555991fdSmrgelse 3108555991fdSmrg if test -n "$CC"; then 3109555991fdSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 3110555991fdSmrgelse 3111555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3112555991fdSmrgfor as_dir in $PATH 3113555991fdSmrgdo 3114555991fdSmrg IFS=$as_save_IFS 3115555991fdSmrg test -z "$as_dir" && as_dir=. 3116555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3117555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3118555991fdSmrg ac_cv_prog_CC="${ac_tool_prefix}cc" 3119555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3120555991fdSmrg break 2 3121555991fdSmrg fi 3122555991fdSmrgdone 3123555991fdSmrg done 3124555991fdSmrgIFS=$as_save_IFS 3125d656433aSmrg 3126555991fdSmrgfi 3127555991fdSmrgfi 3128555991fdSmrgCC=$ac_cv_prog_CC 3129555991fdSmrgif test -n "$CC"; then 3130555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3131555991fdSmrg$as_echo "$CC" >&6; } 3132555991fdSmrgelse 3133555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3134555991fdSmrg$as_echo "no" >&6; } 3135555991fdSmrgfi 3136d656433aSmrg 3137d656433aSmrg 3138555991fdSmrg fi 3139555991fdSmrgfi 3140555991fdSmrgif test -z "$CC"; then 3141555991fdSmrg # Extract the first word of "cc", so it can be a program name with args. 3142555991fdSmrgset dummy cc; ac_word=$2 3143555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3144555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 3145555991fdSmrgif ${ac_cv_prog_CC+:} false; then : 3146d656433aSmrg $as_echo_n "(cached) " >&6 3147126a8a12Smrgelse 3148555991fdSmrg if test -n "$CC"; then 3149555991fdSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 3150126a8a12Smrgelse 3151555991fdSmrg ac_prog_rejected=no 3152555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3153555991fdSmrgfor as_dir in $PATH 3154555991fdSmrgdo 3155555991fdSmrg IFS=$as_save_IFS 3156555991fdSmrg test -z "$as_dir" && as_dir=. 3157555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3158555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3159555991fdSmrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3160555991fdSmrg ac_prog_rejected=yes 3161555991fdSmrg continue 3162555991fdSmrg fi 3163555991fdSmrg ac_cv_prog_CC="cc" 3164555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3165555991fdSmrg break 2 3166126a8a12Smrg fi 3167555991fdSmrgdone 3168126a8a12Smrg done 3169555991fdSmrgIFS=$as_save_IFS 3170555991fdSmrg 3171555991fdSmrgif test $ac_prog_rejected = yes; then 3172555991fdSmrg # We found a bogon in the path, so make sure we never use it. 3173555991fdSmrg set dummy $ac_cv_prog_CC 3174555991fdSmrg shift 3175555991fdSmrg if test $# != 0; then 3176555991fdSmrg # We chose a different compiler from the bogus one. 3177555991fdSmrg # However, it has the same basename, so the bogon will be chosen 3178555991fdSmrg # first if we set CC to just the basename; use the full file name. 3179555991fdSmrg shift 3180555991fdSmrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3181555991fdSmrg fi 3182126a8a12Smrgfi 3183126a8a12Smrgfi 3184555991fdSmrgfi 3185555991fdSmrgCC=$ac_cv_prog_CC 3186555991fdSmrgif test -n "$CC"; then 3187555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3188555991fdSmrg$as_echo "$CC" >&6; } 3189d656433aSmrgelse 3190555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3191555991fdSmrg$as_echo "no" >&6; } 3192555991fdSmrgfi 3193555991fdSmrg 3194555991fdSmrg 3195555991fdSmrgfi 3196555991fdSmrgif test -z "$CC"; then 3197d656433aSmrg if test -n "$ac_tool_prefix"; then 3198555991fdSmrg for ac_prog in cl.exe 3199d656433aSmrg do 3200d656433aSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3201d656433aSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 3202555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3203d656433aSmrg$as_echo_n "checking for $ac_word... " >&6; } 3204555991fdSmrgif ${ac_cv_prog_CC+:} false; then : 3205d656433aSmrg $as_echo_n "(cached) " >&6 3206d656433aSmrgelse 3207555991fdSmrg if test -n "$CC"; then 3208555991fdSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 3209d656433aSmrgelse 3210d656433aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3211d656433aSmrgfor as_dir in $PATH 3212d656433aSmrgdo 3213d656433aSmrg IFS=$as_save_IFS 3214d656433aSmrg test -z "$as_dir" && as_dir=. 3215555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3216d656433aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3217555991fdSmrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3218555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3219d656433aSmrg break 2 3220d656433aSmrg fi 3221d656433aSmrgdone 3222555991fdSmrg done 3223d656433aSmrgIFS=$as_save_IFS 3224126a8a12Smrg 3225d656433aSmrgfi 3226d656433aSmrgfi 3227555991fdSmrgCC=$ac_cv_prog_CC 3228555991fdSmrgif test -n "$CC"; then 3229555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3230555991fdSmrg$as_echo "$CC" >&6; } 3231126a8a12Smrgelse 3232555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3233d656433aSmrg$as_echo "no" >&6; } 3234126a8a12Smrgfi 3235126a8a12Smrg 3236126a8a12Smrg 3237555991fdSmrg test -n "$CC" && break 3238d656433aSmrg done 3239d656433aSmrgfi 3240555991fdSmrgif test -z "$CC"; then 3241555991fdSmrg ac_ct_CC=$CC 3242555991fdSmrg for ac_prog in cl.exe 3243d656433aSmrgdo 3244d656433aSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 3245d656433aSmrgset dummy $ac_prog; ac_word=$2 3246555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3247d656433aSmrg$as_echo_n "checking for $ac_word... " >&6; } 3248555991fdSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 3249d656433aSmrg $as_echo_n "(cached) " >&6 3250d656433aSmrgelse 3251555991fdSmrg if test -n "$ac_ct_CC"; then 3252555991fdSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3253d656433aSmrgelse 3254d656433aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3255d656433aSmrgfor as_dir in $PATH 3256d656433aSmrgdo 3257d656433aSmrg IFS=$as_save_IFS 3258d656433aSmrg test -z "$as_dir" && as_dir=. 3259555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3260d656433aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3261555991fdSmrg ac_cv_prog_ac_ct_CC="$ac_prog" 3262555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3263d656433aSmrg break 2 3264d656433aSmrg fi 3265d656433aSmrgdone 3266555991fdSmrg done 3267d656433aSmrgIFS=$as_save_IFS 3268126a8a12Smrg 3269d656433aSmrgfi 3270d656433aSmrgfi 3271555991fdSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 3272555991fdSmrgif test -n "$ac_ct_CC"; then 3273555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3274555991fdSmrg$as_echo "$ac_ct_CC" >&6; } 3275d656433aSmrgelse 3276555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3277d656433aSmrg$as_echo "no" >&6; } 3278d656433aSmrgfi 3279126a8a12Smrg 3280126a8a12Smrg 3281555991fdSmrg test -n "$ac_ct_CC" && break 3282d656433aSmrgdone 3283126a8a12Smrg 3284555991fdSmrg if test "x$ac_ct_CC" = x; then 3285555991fdSmrg CC="" 3286d656433aSmrg else 3287d656433aSmrg case $cross_compiling:$ac_tool_warned in 3288d656433aSmrgyes:) 3289555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3290d656433aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3291d656433aSmrgac_tool_warned=yes ;; 3292d656433aSmrgesac 3293555991fdSmrg CC=$ac_ct_CC 3294126a8a12Smrg fi 3295d656433aSmrgfi 3296126a8a12Smrg 3297d656433aSmrgfi 3298126a8a12Smrg 3299126a8a12Smrg 3300555991fdSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3301555991fdSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3302555991fdSmrgas_fn_error $? "no acceptable C compiler found in \$PATH 3303555991fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 3304126a8a12Smrg 3305555991fdSmrg# Provide some information about the compiler. 3306555991fdSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3307555991fdSmrgset X $ac_compile 3308555991fdSmrgac_compiler=$2 3309555991fdSmrgfor ac_option in --version -v -V -qversion; do 3310555991fdSmrg { { ac_try="$ac_compiler $ac_option >&5" 3311555991fdSmrgcase "(($ac_try" in 3312555991fdSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3313555991fdSmrg *) ac_try_echo=$ac_try;; 3314555991fdSmrgesac 3315555991fdSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3316555991fdSmrg$as_echo "$ac_try_echo"; } >&5 3317555991fdSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3318555991fdSmrg ac_status=$? 3319555991fdSmrg if test -s conftest.err; then 3320555991fdSmrg sed '10a\ 3321555991fdSmrg... rest of stderr output deleted ... 3322555991fdSmrg 10q' conftest.err >conftest.er1 3323555991fdSmrg cat conftest.er1 >&5 3324555991fdSmrg fi 3325555991fdSmrg rm -f conftest.er1 conftest.err 3326555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3327555991fdSmrg test $ac_status = 0; } 3328555991fdSmrgdone 3329126a8a12Smrg 3330555991fdSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3331555991fdSmrg/* end confdefs.h. */ 3332126a8a12Smrg 3333555991fdSmrgint 3334555991fdSmrgmain () 3335555991fdSmrg{ 3336126a8a12Smrg 3337555991fdSmrg ; 3338555991fdSmrg return 0; 3339555991fdSmrg} 3340555991fdSmrg_ACEOF 3341555991fdSmrgac_clean_files_save=$ac_clean_files 3342555991fdSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3343555991fdSmrg# Try to create an executable without -o first, disregard a.out. 3344555991fdSmrg# It will help us diagnose broken compilers, and finding out an intuition 3345555991fdSmrg# of exeext. 3346555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3347555991fdSmrg$as_echo_n "checking whether the C compiler works... " >&6; } 3348555991fdSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3349d656433aSmrg 3350555991fdSmrg# The possible output files: 3351555991fdSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3352d656433aSmrg 3353555991fdSmrgac_rmfiles= 3354555991fdSmrgfor ac_file in $ac_files 3355555991fdSmrgdo 3356555991fdSmrg case $ac_file in 3357555991fdSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3358555991fdSmrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3359555991fdSmrg esac 3360555991fdSmrgdone 3361555991fdSmrgrm -f $ac_rmfiles 3362d656433aSmrg 3363555991fdSmrgif { { ac_try="$ac_link_default" 3364555991fdSmrgcase "(($ac_try" in 3365555991fdSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3366555991fdSmrg *) ac_try_echo=$ac_try;; 3367555991fdSmrgesac 3368555991fdSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3369555991fdSmrg$as_echo "$ac_try_echo"; } >&5 3370555991fdSmrg (eval "$ac_link_default") 2>&5 3371555991fdSmrg ac_status=$? 3372555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3373555991fdSmrg test $ac_status = 0; }; then : 3374555991fdSmrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3375555991fdSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3376555991fdSmrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 3377555991fdSmrg# so that the user can short-circuit this test for compilers unknown to 3378555991fdSmrg# Autoconf. 3379555991fdSmrgfor ac_file in $ac_files '' 3380555991fdSmrgdo 3381555991fdSmrg test -f "$ac_file" || continue 3382555991fdSmrg case $ac_file in 3383555991fdSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3384555991fdSmrg ;; 3385555991fdSmrg [ab].out ) 3386555991fdSmrg # We found the default executable, but exeext='' is most 3387555991fdSmrg # certainly right. 3388555991fdSmrg break;; 3389555991fdSmrg *.* ) 3390555991fdSmrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3391555991fdSmrg then :; else 3392555991fdSmrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3393555991fdSmrg fi 3394555991fdSmrg # We set ac_cv_exeext here because the later test for it is not 3395555991fdSmrg # safe: cross compilers may not add the suffix if given an `-o' 3396555991fdSmrg # argument, so we may need to know it at that point already. 3397555991fdSmrg # Even if this section looks crufty: it has the advantage of 3398555991fdSmrg # actually working. 3399555991fdSmrg break;; 3400555991fdSmrg * ) 3401555991fdSmrg break;; 3402126a8a12Smrg esac 3403555991fdSmrgdone 3404555991fdSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 3405126a8a12Smrg 3406555991fdSmrgelse 3407555991fdSmrg ac_file='' 3408d656433aSmrgfi 3409555991fdSmrgif test -z "$ac_file"; then : 3410555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3411555991fdSmrg$as_echo "no" >&6; } 3412555991fdSmrg$as_echo "$as_me: failed program was:" >&5 3413555991fdSmrgsed 's/^/| /' conftest.$ac_ext >&5 3414126a8a12Smrg 3415555991fdSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3416555991fdSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3417555991fdSmrgas_fn_error 77 "C compiler cannot create executables 3418555991fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 3419d656433aSmrgelse 3420555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3421555991fdSmrg$as_echo "yes" >&6; } 3422126a8a12Smrgfi 3423555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3424555991fdSmrg$as_echo_n "checking for C compiler default output file name... " >&6; } 3425555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3426555991fdSmrg$as_echo "$ac_file" >&6; } 3427555991fdSmrgac_exeext=$ac_cv_exeext 3428126a8a12Smrg 3429555991fdSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3430555991fdSmrgac_clean_files=$ac_clean_files_save 3431555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3432555991fdSmrg$as_echo_n "checking for suffix of executables... " >&6; } 3433555991fdSmrgif { { ac_try="$ac_link" 3434555991fdSmrgcase "(($ac_try" in 3435555991fdSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3436555991fdSmrg *) ac_try_echo=$ac_try;; 3437555991fdSmrgesac 3438555991fdSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3439555991fdSmrg$as_echo "$ac_try_echo"; } >&5 3440555991fdSmrg (eval "$ac_link") 2>&5 3441555991fdSmrg ac_status=$? 3442555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3443555991fdSmrg test $ac_status = 0; }; then : 3444555991fdSmrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 3445555991fdSmrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3446555991fdSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with 3447555991fdSmrg# `rm'. 3448555991fdSmrgfor ac_file in conftest.exe conftest conftest.*; do 3449555991fdSmrg test -f "$ac_file" || continue 3450555991fdSmrg case $ac_file in 3451555991fdSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3452555991fdSmrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3453555991fdSmrg break;; 3454555991fdSmrg * ) break;; 3455555991fdSmrg esac 3456555991fdSmrgdone 3457555991fdSmrgelse 3458555991fdSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3459555991fdSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3460555991fdSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 3461555991fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 3462555991fdSmrgfi 3463555991fdSmrgrm -f conftest conftest$ac_cv_exeext 3464555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3465555991fdSmrg$as_echo "$ac_cv_exeext" >&6; } 3466126a8a12Smrg 3467555991fdSmrgrm -f conftest.$ac_ext 3468555991fdSmrgEXEEXT=$ac_cv_exeext 3469555991fdSmrgac_exeext=$EXEEXT 3470555991fdSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3471555991fdSmrg/* end confdefs.h. */ 3472555991fdSmrg#include <stdio.h> 3473555991fdSmrgint 3474555991fdSmrgmain () 3475555991fdSmrg{ 3476555991fdSmrgFILE *f = fopen ("conftest.out", "w"); 3477555991fdSmrg return ferror (f) || fclose (f) != 0; 3478126a8a12Smrg 3479555991fdSmrg ; 3480555991fdSmrg return 0; 3481555991fdSmrg} 3482555991fdSmrg_ACEOF 3483555991fdSmrgac_clean_files="$ac_clean_files conftest.out" 3484555991fdSmrg# Check that the compiler produces executables we can run. If not, either 3485555991fdSmrg# the compiler is broken, or we cross compile. 3486555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3487555991fdSmrg$as_echo_n "checking whether we are cross compiling... " >&6; } 3488555991fdSmrgif test "$cross_compiling" != yes; then 3489555991fdSmrg { { ac_try="$ac_link" 3490555991fdSmrgcase "(($ac_try" in 3491555991fdSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3492555991fdSmrg *) ac_try_echo=$ac_try;; 3493555991fdSmrgesac 3494555991fdSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3495555991fdSmrg$as_echo "$ac_try_echo"; } >&5 3496555991fdSmrg (eval "$ac_link") 2>&5 3497555991fdSmrg ac_status=$? 3498555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3499555991fdSmrg test $ac_status = 0; } 3500555991fdSmrg if { ac_try='./conftest$ac_cv_exeext' 3501555991fdSmrg { { case "(($ac_try" in 3502555991fdSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3503555991fdSmrg *) ac_try_echo=$ac_try;; 3504555991fdSmrgesac 3505555991fdSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3506555991fdSmrg$as_echo "$ac_try_echo"; } >&5 3507555991fdSmrg (eval "$ac_try") 2>&5 3508555991fdSmrg ac_status=$? 3509555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3510555991fdSmrg test $ac_status = 0; }; }; then 3511555991fdSmrg cross_compiling=no 3512555991fdSmrg else 3513555991fdSmrg if test "$cross_compiling" = maybe; then 3514555991fdSmrg cross_compiling=yes 3515555991fdSmrg else 3516555991fdSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3517555991fdSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3518555991fdSmrgas_fn_error $? "cannot run C compiled programs. 3519555991fdSmrgIf you meant to cross compile, use \`--host'. 3520555991fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 3521555991fdSmrg fi 3522555991fdSmrg fi 3523555991fdSmrgfi 3524555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3525555991fdSmrg$as_echo "$cross_compiling" >&6; } 3526126a8a12Smrg 3527555991fdSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3528555991fdSmrgac_clean_files=$ac_clean_files_save 3529555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3530555991fdSmrg$as_echo_n "checking for suffix of object files... " >&6; } 3531555991fdSmrgif ${ac_cv_objext+:} false; then : 3532555991fdSmrg $as_echo_n "(cached) " >&6 3533555991fdSmrgelse 3534555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3535555991fdSmrg/* end confdefs.h. */ 3536126a8a12Smrg 3537555991fdSmrgint 3538555991fdSmrgmain () 3539555991fdSmrg{ 3540126a8a12Smrg 3541555991fdSmrg ; 3542555991fdSmrg return 0; 3543555991fdSmrg} 3544555991fdSmrg_ACEOF 3545555991fdSmrgrm -f conftest.o conftest.obj 3546555991fdSmrgif { { ac_try="$ac_compile" 3547555991fdSmrgcase "(($ac_try" in 3548555991fdSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3549555991fdSmrg *) ac_try_echo=$ac_try;; 3550555991fdSmrgesac 3551555991fdSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3552555991fdSmrg$as_echo "$ac_try_echo"; } >&5 3553555991fdSmrg (eval "$ac_compile") 2>&5 3554555991fdSmrg ac_status=$? 3555555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3556555991fdSmrg test $ac_status = 0; }; then : 3557555991fdSmrg for ac_file in conftest.o conftest.obj conftest.*; do 3558555991fdSmrg test -f "$ac_file" || continue; 3559555991fdSmrg case $ac_file in 3560555991fdSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3561555991fdSmrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3562555991fdSmrg break;; 3563555991fdSmrg esac 3564555991fdSmrgdone 3565555991fdSmrgelse 3566555991fdSmrg $as_echo "$as_me: failed program was:" >&5 3567555991fdSmrgsed 's/^/| /' conftest.$ac_ext >&5 3568d656433aSmrg 3569555991fdSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3570555991fdSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3571555991fdSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile 3572555991fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 3573555991fdSmrgfi 3574555991fdSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 3575555991fdSmrgfi 3576555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3577555991fdSmrg$as_echo "$ac_cv_objext" >&6; } 3578555991fdSmrgOBJEXT=$ac_cv_objext 3579555991fdSmrgac_objext=$OBJEXT 3580555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3581555991fdSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3582555991fdSmrgif ${ac_cv_c_compiler_gnu+:} false; then : 3583555991fdSmrg $as_echo_n "(cached) " >&6 3584555991fdSmrgelse 3585555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3586555991fdSmrg/* end confdefs.h. */ 3587d656433aSmrg 3588555991fdSmrgint 3589555991fdSmrgmain () 3590555991fdSmrg{ 3591555991fdSmrg#ifndef __GNUC__ 3592555991fdSmrg choke me 3593555991fdSmrg#endif 3594d656433aSmrg 3595555991fdSmrg ; 3596555991fdSmrg return 0; 3597555991fdSmrg} 3598555991fdSmrg_ACEOF 3599555991fdSmrgif ac_fn_c_try_compile "$LINENO"; then : 3600555991fdSmrg ac_compiler_gnu=yes 3601d656433aSmrgelse 3602555991fdSmrg ac_compiler_gnu=no 3603126a8a12Smrgfi 3604555991fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3605555991fdSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu 3606126a8a12Smrg 3607555991fdSmrgfi 3608555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3609555991fdSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3610555991fdSmrgif test $ac_compiler_gnu = yes; then 3611555991fdSmrg GCC=yes 3612555991fdSmrgelse 3613555991fdSmrg GCC= 3614555991fdSmrgfi 3615555991fdSmrgac_test_CFLAGS=${CFLAGS+set} 3616555991fdSmrgac_save_CFLAGS=$CFLAGS 3617555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3618555991fdSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 3619555991fdSmrgif ${ac_cv_prog_cc_g+:} false; then : 3620555991fdSmrg $as_echo_n "(cached) " >&6 3621555991fdSmrgelse 3622555991fdSmrg ac_save_c_werror_flag=$ac_c_werror_flag 3623555991fdSmrg ac_c_werror_flag=yes 3624555991fdSmrg ac_cv_prog_cc_g=no 3625555991fdSmrg CFLAGS="-g" 3626555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3627555991fdSmrg/* end confdefs.h. */ 3628126a8a12Smrg 3629555991fdSmrgint 3630555991fdSmrgmain () 3631555991fdSmrg{ 3632d656433aSmrg 3633555991fdSmrg ; 3634555991fdSmrg return 0; 3635555991fdSmrg} 3636555991fdSmrg_ACEOF 3637555991fdSmrgif ac_fn_c_try_compile "$LINENO"; then : 3638555991fdSmrg ac_cv_prog_cc_g=yes 3639555991fdSmrgelse 3640555991fdSmrg CFLAGS="" 3641555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3642555991fdSmrg/* end confdefs.h. */ 3643d656433aSmrg 3644555991fdSmrgint 3645555991fdSmrgmain () 3646555991fdSmrg{ 3647d656433aSmrg 3648555991fdSmrg ; 3649555991fdSmrg return 0; 3650555991fdSmrg} 3651555991fdSmrg_ACEOF 3652555991fdSmrgif ac_fn_c_try_compile "$LINENO"; then : 3653126a8a12Smrg 3654555991fdSmrgelse 3655555991fdSmrg ac_c_werror_flag=$ac_save_c_werror_flag 3656555991fdSmrg CFLAGS="-g" 3657555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3658555991fdSmrg/* end confdefs.h. */ 3659126a8a12Smrg 3660555991fdSmrgint 3661555991fdSmrgmain () 3662555991fdSmrg{ 3663126a8a12Smrg 3664555991fdSmrg ; 3665555991fdSmrg return 0; 3666555991fdSmrg} 3667555991fdSmrg_ACEOF 3668555991fdSmrgif ac_fn_c_try_compile "$LINENO"; then : 3669555991fdSmrg ac_cv_prog_cc_g=yes 3670555991fdSmrgfi 3671555991fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3672555991fdSmrgfi 3673555991fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3674555991fdSmrgfi 3675555991fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3676555991fdSmrg ac_c_werror_flag=$ac_save_c_werror_flag 3677555991fdSmrgfi 3678555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3679555991fdSmrg$as_echo "$ac_cv_prog_cc_g" >&6; } 3680555991fdSmrgif test "$ac_test_CFLAGS" = set; then 3681555991fdSmrg CFLAGS=$ac_save_CFLAGS 3682555991fdSmrgelif test $ac_cv_prog_cc_g = yes; then 3683555991fdSmrg if test "$GCC" = yes; then 3684555991fdSmrg CFLAGS="-g -O2" 3685555991fdSmrg else 3686555991fdSmrg CFLAGS="-g" 3687555991fdSmrg fi 3688d656433aSmrgelse 3689555991fdSmrg if test "$GCC" = yes; then 3690555991fdSmrg CFLAGS="-O2" 3691555991fdSmrg else 3692555991fdSmrg CFLAGS= 3693555991fdSmrg fi 3694126a8a12Smrgfi 3695555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3696555991fdSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3697555991fdSmrgif ${ac_cv_prog_cc_c89+:} false; then : 3698555991fdSmrg $as_echo_n "(cached) " >&6 3699555991fdSmrgelse 3700555991fdSmrg ac_cv_prog_cc_c89=no 3701555991fdSmrgac_save_CC=$CC 3702555991fdSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3703555991fdSmrg/* end confdefs.h. */ 3704555991fdSmrg#include <stdarg.h> 3705555991fdSmrg#include <stdio.h> 3706555991fdSmrg#include <sys/types.h> 3707555991fdSmrg#include <sys/stat.h> 3708555991fdSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3709555991fdSmrgstruct buf { int x; }; 3710555991fdSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 3711555991fdSmrgstatic char *e (p, i) 3712555991fdSmrg char **p; 3713555991fdSmrg int i; 3714555991fdSmrg{ 3715555991fdSmrg return p[i]; 3716555991fdSmrg} 3717555991fdSmrgstatic char *f (char * (*g) (char **, int), char **p, ...) 3718555991fdSmrg{ 3719555991fdSmrg char *s; 3720555991fdSmrg va_list v; 3721555991fdSmrg va_start (v,p); 3722555991fdSmrg s = g (p, va_arg (v,int)); 3723555991fdSmrg va_end (v); 3724555991fdSmrg return s; 3725555991fdSmrg} 3726d656433aSmrg 3727555991fdSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3728555991fdSmrg function prototypes and stuff, but not '\xHH' hex character constants. 3729555991fdSmrg These don't provoke an error unfortunately, instead are silently treated 3730555991fdSmrg as 'x'. The following induces an error, until -std is added to get 3731555991fdSmrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3732555991fdSmrg array size at least. It's necessary to write '\x00'==0 to get something 3733555991fdSmrg that's true only with -std. */ 3734555991fdSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3735d656433aSmrg 3736555991fdSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3737555991fdSmrg inside strings and character constants. */ 3738555991fdSmrg#define FOO(x) 'x' 3739555991fdSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3740d656433aSmrg 3741555991fdSmrgint test (int i, double x); 3742555991fdSmrgstruct s1 {int (*f) (int a);}; 3743555991fdSmrgstruct s2 {int (*f) (double a);}; 3744555991fdSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3745555991fdSmrgint argc; 3746555991fdSmrgchar **argv; 3747555991fdSmrgint 3748555991fdSmrgmain () 3749555991fdSmrg{ 3750555991fdSmrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3751555991fdSmrg ; 3752555991fdSmrg return 0; 3753555991fdSmrg} 3754555991fdSmrg_ACEOF 3755555991fdSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3756555991fdSmrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3757d656433aSmrgdo 3758555991fdSmrg CC="$ac_save_CC $ac_arg" 3759555991fdSmrg if ac_fn_c_try_compile "$LINENO"; then : 3760555991fdSmrg ac_cv_prog_cc_c89=$ac_arg 3761555991fdSmrgfi 3762555991fdSmrgrm -f core conftest.err conftest.$ac_objext 3763555991fdSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 3764d656433aSmrgdone 3765555991fdSmrgrm -f conftest.$ac_ext 3766555991fdSmrgCC=$ac_save_CC 3767126a8a12Smrg 3768d656433aSmrgfi 3769555991fdSmrg# AC_CACHE_VAL 3770555991fdSmrgcase "x$ac_cv_prog_cc_c89" in 3771555991fdSmrg x) 3772555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3773555991fdSmrg$as_echo "none needed" >&6; } ;; 3774555991fdSmrg xno) 3775555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3776555991fdSmrg$as_echo "unsupported" >&6; } ;; 3777555991fdSmrg *) 3778555991fdSmrg CC="$CC $ac_cv_prog_cc_c89" 3779555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3780555991fdSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3781555991fdSmrgesac 3782555991fdSmrgif test "x$ac_cv_prog_cc_c89" != xno; then : 3783555991fdSmrg 3784d656433aSmrgfi 3785126a8a12Smrg 3786555991fdSmrgac_ext=c 3787555991fdSmrgac_cpp='$CPP $CPPFLAGS' 3788555991fdSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3789555991fdSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3790555991fdSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3791555991fdSmrg 3792555991fdSmrgdepcc="$CC" am_compiler_list= 3793126a8a12Smrg 3794555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3795555991fdSmrg$as_echo_n "checking dependency style of $depcc... " >&6; } 3796555991fdSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 3797d656433aSmrg $as_echo_n "(cached) " >&6 3798d656433aSmrgelse 3799555991fdSmrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3800555991fdSmrg # We make a subdir and do the tests there. Otherwise we can end up 3801555991fdSmrg # making bogus files that we don't know about and never remove. For 3802555991fdSmrg # instance it was reported that on HP-UX the gcc test will end up 3803555991fdSmrg # making a dummy file named `D' -- because `-MD' means `put the output 3804555991fdSmrg # in D'. 3805555991fdSmrg mkdir conftest.dir 3806555991fdSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 3807555991fdSmrg # using a relative directory. 3808555991fdSmrg cp "$am_depcomp" conftest.dir 3809555991fdSmrg cd conftest.dir 3810555991fdSmrg # We will build objects and dependencies in a subdirectory because 3811555991fdSmrg # it helps to detect inapplicable dependency modes. For instance 3812555991fdSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 3813555991fdSmrg # side effect of compilation, but ICC will put the dependencies in 3814555991fdSmrg # the current directory while Tru64 will put them in the object 3815555991fdSmrg # directory. 3816555991fdSmrg mkdir sub 3817555991fdSmrg 3818555991fdSmrg am_cv_CC_dependencies_compiler_type=none 3819555991fdSmrg if test "$am_compiler_list" = ""; then 3820555991fdSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3821d656433aSmrg fi 3822555991fdSmrg am__universal=false 3823555991fdSmrg case " $depcc " in #( 3824555991fdSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 3825555991fdSmrg esac 3826126a8a12Smrg 3827555991fdSmrg for depmode in $am_compiler_list; do 3828555991fdSmrg # Setup a source with many dependencies, because some compilers 3829555991fdSmrg # like to wrap large dependency lists on column 80 (with \), and 3830555991fdSmrg # we should not choose a depcomp mode which is confused by this. 3831555991fdSmrg # 3832555991fdSmrg # We need to recreate these files for each test, as the compiler may 3833555991fdSmrg # overwrite some of them when testing with obscure command lines. 3834555991fdSmrg # This happens at least with the AIX C compiler. 3835555991fdSmrg : > sub/conftest.c 3836555991fdSmrg for i in 1 2 3 4 5 6; do 3837555991fdSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 3838555991fdSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3839555991fdSmrg # Solaris 8's {/usr,}/bin/sh. 3840555991fdSmrg touch sub/conftst$i.h 3841555991fdSmrg done 3842555991fdSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3843555991fdSmrg 3844555991fdSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 3845555991fdSmrg # mode. It turns out that the SunPro C++ compiler does not properly 3846555991fdSmrg # handle `-M -o', and we need to detect this. Also, some Intel 3847555991fdSmrg # versions had trouble with output in subdirs 3848555991fdSmrg am__obj=sub/conftest.${OBJEXT-o} 3849555991fdSmrg am__minus_obj="-o $am__obj" 3850555991fdSmrg case $depmode in 3851555991fdSmrg gcc) 3852555991fdSmrg # This depmode causes a compiler race in universal mode. 3853555991fdSmrg test "$am__universal" = false || continue 3854555991fdSmrg ;; 3855555991fdSmrg nosideeffect) 3856555991fdSmrg # after this tag, mechanisms are not by side-effect, so they'll 3857555991fdSmrg # only be used when explicitly requested 3858555991fdSmrg if test "x$enable_dependency_tracking" = xyes; then 3859555991fdSmrg continue 3860555991fdSmrg else 3861555991fdSmrg break 3862555991fdSmrg fi 3863555991fdSmrg ;; 3864555991fdSmrg msvisualcpp | msvcmsys) 3865555991fdSmrg # This compiler won't grok `-c -o', but also, the minuso test has 3866555991fdSmrg # not run yet. These depmodes are late enough in the game, and 3867555991fdSmrg # so weak that their functioning should not be impacted. 3868555991fdSmrg am__obj=conftest.${OBJEXT-o} 3869555991fdSmrg am__minus_obj= 3870555991fdSmrg ;; 3871555991fdSmrg none) break ;; 3872555991fdSmrg esac 3873555991fdSmrg if depmode=$depmode \ 3874555991fdSmrg source=sub/conftest.c object=$am__obj \ 3875555991fdSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3876555991fdSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3877555991fdSmrg >/dev/null 2>conftest.err && 3878555991fdSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3879555991fdSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3880555991fdSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3881555991fdSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3882555991fdSmrg # icc doesn't choke on unknown options, it will just issue warnings 3883555991fdSmrg # or remarks (even with -Werror). So we grep stderr for any message 3884555991fdSmrg # that says an option was ignored or not supported. 3885555991fdSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 3886555991fdSmrg # icc: Command line warning: ignoring option '-M'; no argument required 3887555991fdSmrg # The diagnosis changed in icc 8.0: 3888555991fdSmrg # icc: Command line remark: option '-MP' not supported 3889555991fdSmrg if (grep 'ignoring option' conftest.err || 3890555991fdSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3891555991fdSmrg am_cv_CC_dependencies_compiler_type=$depmode 3892555991fdSmrg break 3893555991fdSmrg fi 3894555991fdSmrg fi 3895555991fdSmrg done 3896d656433aSmrg 3897555991fdSmrg cd .. 3898555991fdSmrg rm -rf conftest.dir 3899126a8a12Smrgelse 3900555991fdSmrg am_cv_CC_dependencies_compiler_type=none 3901126a8a12Smrgfi 3902126a8a12Smrg 3903555991fdSmrgfi 3904555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3905555991fdSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3906555991fdSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3907126a8a12Smrg 3908555991fdSmrg if 3909555991fdSmrg test "x$enable_dependency_tracking" != xno \ 3910555991fdSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3911555991fdSmrg am__fastdepCC_TRUE= 3912555991fdSmrg am__fastdepCC_FALSE='#' 3913555991fdSmrgelse 3914555991fdSmrg am__fastdepCC_TRUE='#' 3915555991fdSmrg am__fastdepCC_FALSE= 3916555991fdSmrgfi 3917126a8a12Smrg 3918126a8a12Smrg 3919555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3920555991fdSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3921555991fdSmrgif ${ac_cv_prog_cc_c99+:} false; then : 3922d656433aSmrg $as_echo_n "(cached) " >&6 3923126a8a12Smrgelse 3924555991fdSmrg ac_cv_prog_cc_c99=no 3925555991fdSmrgac_save_CC=$CC 3926555991fdSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3927555991fdSmrg/* end confdefs.h. */ 3928555991fdSmrg#include <stdarg.h> 3929555991fdSmrg#include <stdbool.h> 3930555991fdSmrg#include <stdlib.h> 3931555991fdSmrg#include <wchar.h> 3932555991fdSmrg#include <stdio.h> 3933126a8a12Smrg 3934555991fdSmrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 3935555991fdSmrg#define debug(...) fprintf (stderr, __VA_ARGS__) 3936555991fdSmrg#define showlist(...) puts (#__VA_ARGS__) 3937555991fdSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3938555991fdSmrgstatic void 3939555991fdSmrgtest_varargs_macros (void) 3940555991fdSmrg{ 3941555991fdSmrg int x = 1234; 3942555991fdSmrg int y = 5678; 3943555991fdSmrg debug ("Flag"); 3944555991fdSmrg debug ("X = %d\n", x); 3945555991fdSmrg showlist (The first, second, and third items.); 3946555991fdSmrg report (x>y, "x is %d but y is %d", x, y); 3947555991fdSmrg} 3948126a8a12Smrg 3949555991fdSmrg// Check long long types. 3950555991fdSmrg#define BIG64 18446744073709551615ull 3951555991fdSmrg#define BIG32 4294967295ul 3952555991fdSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3953555991fdSmrg#if !BIG_OK 3954555991fdSmrg your preprocessor is broken; 3955555991fdSmrg#endif 3956555991fdSmrg#if BIG_OK 3957555991fdSmrg#else 3958555991fdSmrg your preprocessor is broken; 3959555991fdSmrg#endif 3960555991fdSmrgstatic long long int bignum = -9223372036854775807LL; 3961555991fdSmrgstatic unsigned long long int ubignum = BIG64; 3962126a8a12Smrg 3963555991fdSmrgstruct incomplete_array 3964555991fdSmrg{ 3965555991fdSmrg int datasize; 3966555991fdSmrg double data[]; 3967555991fdSmrg}; 3968126a8a12Smrg 3969555991fdSmrgstruct named_init { 3970555991fdSmrg int number; 3971555991fdSmrg const wchar_t *name; 3972555991fdSmrg double average; 3973555991fdSmrg}; 3974126a8a12Smrg 3975555991fdSmrgtypedef const char *ccp; 3976126a8a12Smrg 3977555991fdSmrgstatic inline int 3978555991fdSmrgtest_restrict (ccp restrict text) 3979555991fdSmrg{ 3980555991fdSmrg // See if C++-style comments work. 3981555991fdSmrg // Iterate through items via the restricted pointer. 3982555991fdSmrg // Also check for declarations in for loops. 3983555991fdSmrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3984555991fdSmrg continue; 3985555991fdSmrg return 0; 3986555991fdSmrg} 3987126a8a12Smrg 3988555991fdSmrg// Check varargs and va_copy. 3989555991fdSmrgstatic void 3990555991fdSmrgtest_varargs (const char *format, ...) 3991555991fdSmrg{ 3992555991fdSmrg va_list args; 3993555991fdSmrg va_start (args, format); 3994555991fdSmrg va_list args_copy; 3995555991fdSmrg va_copy (args_copy, args); 3996126a8a12Smrg 3997555991fdSmrg const char *str; 3998555991fdSmrg int number; 3999555991fdSmrg float fnumber; 4000126a8a12Smrg 4001555991fdSmrg while (*format) 4002555991fdSmrg { 4003555991fdSmrg switch (*format++) 4004555991fdSmrg { 4005555991fdSmrg case 's': // string 4006555991fdSmrg str = va_arg (args_copy, const char *); 4007555991fdSmrg break; 4008555991fdSmrg case 'd': // int 4009555991fdSmrg number = va_arg (args_copy, int); 4010555991fdSmrg break; 4011555991fdSmrg case 'f': // float 4012555991fdSmrg fnumber = va_arg (args_copy, double); 4013555991fdSmrg break; 4014555991fdSmrg default: 4015555991fdSmrg break; 4016555991fdSmrg } 4017555991fdSmrg } 4018555991fdSmrg va_end (args_copy); 4019555991fdSmrg va_end (args); 4020555991fdSmrg} 4021126a8a12Smrg 4022555991fdSmrgint 4023555991fdSmrgmain () 4024555991fdSmrg{ 4025126a8a12Smrg 4026555991fdSmrg // Check bool. 4027555991fdSmrg _Bool success = false; 4028126a8a12Smrg 4029555991fdSmrg // Check restrict. 4030555991fdSmrg if (test_restrict ("String literal") == 0) 4031555991fdSmrg success = true; 4032555991fdSmrg char *restrict newvar = "Another string"; 4033126a8a12Smrg 4034555991fdSmrg // Check varargs. 4035555991fdSmrg test_varargs ("s, d' f .", "string", 65, 34.234); 4036555991fdSmrg test_varargs_macros (); 4037126a8a12Smrg 4038555991fdSmrg // Check flexible array members. 4039555991fdSmrg struct incomplete_array *ia = 4040555991fdSmrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4041555991fdSmrg ia->datasize = 10; 4042555991fdSmrg for (int i = 0; i < ia->datasize; ++i) 4043555991fdSmrg ia->data[i] = i * 1.234; 4044126a8a12Smrg 4045555991fdSmrg // Check named initializers. 4046555991fdSmrg struct named_init ni = { 4047555991fdSmrg .number = 34, 4048555991fdSmrg .name = L"Test wide string", 4049555991fdSmrg .average = 543.34343, 4050555991fdSmrg }; 4051126a8a12Smrg 4052555991fdSmrg ni.number = 58; 4053126a8a12Smrg 4054555991fdSmrg int dynamic_array[ni.number]; 4055555991fdSmrg dynamic_array[ni.number - 1] = 543; 4056126a8a12Smrg 4057555991fdSmrg // work around unused variable warnings 4058555991fdSmrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4059555991fdSmrg || dynamic_array[ni.number - 1] != 543); 4060126a8a12Smrg 4061555991fdSmrg ; 4062555991fdSmrg return 0; 4063555991fdSmrg} 4064555991fdSmrg_ACEOF 4065555991fdSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4066555991fdSmrgdo 4067555991fdSmrg CC="$ac_save_CC $ac_arg" 4068555991fdSmrg if ac_fn_c_try_compile "$LINENO"; then : 4069555991fdSmrg ac_cv_prog_cc_c99=$ac_arg 4070555991fdSmrgfi 4071555991fdSmrgrm -f core conftest.err conftest.$ac_objext 4072555991fdSmrg test "x$ac_cv_prog_cc_c99" != "xno" && break 4073555991fdSmrgdone 4074555991fdSmrgrm -f conftest.$ac_ext 4075555991fdSmrgCC=$ac_save_CC 4076126a8a12Smrg 4077555991fdSmrgfi 4078555991fdSmrg# AC_CACHE_VAL 4079555991fdSmrgcase "x$ac_cv_prog_cc_c99" in 4080555991fdSmrg x) 4081555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4082555991fdSmrg$as_echo "none needed" >&6; } ;; 4083555991fdSmrg xno) 4084555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4085555991fdSmrg$as_echo "unsupported" >&6; } ;; 4086555991fdSmrg *) 4087555991fdSmrg CC="$CC $ac_cv_prog_cc_c99" 4088555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4089555991fdSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4090555991fdSmrgesac 4091555991fdSmrgif test "x$ac_cv_prog_cc_c99" != xno; then : 4092126a8a12Smrg 4093555991fdSmrgfi 4094126a8a12Smrg 4095126a8a12Smrg 4096126a8a12Smrg 4097555991fdSmrgac_ext=c 4098555991fdSmrgac_cpp='$CPP $CPPFLAGS' 4099555991fdSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4100555991fdSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4101555991fdSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 4102555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4103555991fdSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 4104555991fdSmrg# On Suns, sometimes $CPP names a directory. 4105555991fdSmrgif test -n "$CPP" && test -d "$CPP"; then 4106555991fdSmrg CPP= 4107555991fdSmrgfi 4108555991fdSmrgif test -z "$CPP"; then 4109555991fdSmrg if ${ac_cv_prog_CPP+:} false; then : 4110555991fdSmrg $as_echo_n "(cached) " >&6 4111555991fdSmrgelse 4112555991fdSmrg # Double quotes because CPP needs to be expanded 4113555991fdSmrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4114555991fdSmrg do 4115555991fdSmrg ac_preproc_ok=false 4116555991fdSmrgfor ac_c_preproc_warn_flag in '' yes 4117555991fdSmrgdo 4118555991fdSmrg # Use a header file that comes with gcc, so configuring glibc 4119555991fdSmrg # with a fresh cross-compiler works. 4120555991fdSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4121555991fdSmrg # <limits.h> exists even on freestanding compilers. 4122555991fdSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 4123555991fdSmrg # not just through cpp. "Syntax error" is here to catch this case. 4124555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4125555991fdSmrg/* end confdefs.h. */ 4126555991fdSmrg#ifdef __STDC__ 4127555991fdSmrg# include <limits.h> 4128555991fdSmrg#else 4129555991fdSmrg# include <assert.h> 4130555991fdSmrg#endif 4131555991fdSmrg Syntax error 4132555991fdSmrg_ACEOF 4133555991fdSmrgif ac_fn_c_try_cpp "$LINENO"; then : 4134555991fdSmrg 4135555991fdSmrgelse 4136555991fdSmrg # Broken: fails on valid input. 4137555991fdSmrgcontinue 4138126a8a12Smrgfi 4139555991fdSmrgrm -f conftest.err conftest.i conftest.$ac_ext 4140126a8a12Smrg 4141555991fdSmrg # OK, works on sane cases. Now check whether nonexistent headers 4142555991fdSmrg # can be detected and how. 4143555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4144555991fdSmrg/* end confdefs.h. */ 4145555991fdSmrg#include <ac_nonexistent.h> 4146555991fdSmrg_ACEOF 4147555991fdSmrgif ac_fn_c_try_cpp "$LINENO"; then : 4148555991fdSmrg # Broken: success on invalid input. 4149555991fdSmrgcontinue 4150555991fdSmrgelse 4151555991fdSmrg # Passes both tests. 4152555991fdSmrgac_preproc_ok=: 4153555991fdSmrgbreak 4154555991fdSmrgfi 4155555991fdSmrgrm -f conftest.err conftest.i conftest.$ac_ext 4156126a8a12Smrg 4157555991fdSmrgdone 4158555991fdSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4159555991fdSmrgrm -f conftest.i conftest.err conftest.$ac_ext 4160555991fdSmrgif $ac_preproc_ok; then : 4161555991fdSmrg break 4162555991fdSmrgfi 4163126a8a12Smrg 4164555991fdSmrg done 4165555991fdSmrg ac_cv_prog_CPP=$CPP 4166126a8a12Smrg 4167555991fdSmrgfi 4168555991fdSmrg CPP=$ac_cv_prog_CPP 4169555991fdSmrgelse 4170555991fdSmrg ac_cv_prog_CPP=$CPP 4171555991fdSmrgfi 4172555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4173555991fdSmrg$as_echo "$CPP" >&6; } 4174555991fdSmrgac_preproc_ok=false 4175555991fdSmrgfor ac_c_preproc_warn_flag in '' yes 4176555991fdSmrgdo 4177555991fdSmrg # Use a header file that comes with gcc, so configuring glibc 4178555991fdSmrg # with a fresh cross-compiler works. 4179555991fdSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4180555991fdSmrg # <limits.h> exists even on freestanding compilers. 4181555991fdSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 4182555991fdSmrg # not just through cpp. "Syntax error" is here to catch this case. 4183555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4184555991fdSmrg/* end confdefs.h. */ 4185555991fdSmrg#ifdef __STDC__ 4186555991fdSmrg# include <limits.h> 4187555991fdSmrg#else 4188555991fdSmrg# include <assert.h> 4189555991fdSmrg#endif 4190555991fdSmrg Syntax error 4191555991fdSmrg_ACEOF 4192555991fdSmrgif ac_fn_c_try_cpp "$LINENO"; then : 4193126a8a12Smrg 4194555991fdSmrgelse 4195555991fdSmrg # Broken: fails on valid input. 4196555991fdSmrgcontinue 4197555991fdSmrgfi 4198555991fdSmrgrm -f conftest.err conftest.i conftest.$ac_ext 4199126a8a12Smrg 4200555991fdSmrg # OK, works on sane cases. Now check whether nonexistent headers 4201555991fdSmrg # can be detected and how. 4202555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4203555991fdSmrg/* end confdefs.h. */ 4204555991fdSmrg#include <ac_nonexistent.h> 4205555991fdSmrg_ACEOF 4206555991fdSmrgif ac_fn_c_try_cpp "$LINENO"; then : 4207555991fdSmrg # Broken: success on invalid input. 4208555991fdSmrgcontinue 4209555991fdSmrgelse 4210555991fdSmrg # Passes both tests. 4211555991fdSmrgac_preproc_ok=: 4212555991fdSmrgbreak 4213555991fdSmrgfi 4214555991fdSmrgrm -f conftest.err conftest.i conftest.$ac_ext 4215126a8a12Smrg 4216555991fdSmrgdone 4217555991fdSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4218555991fdSmrgrm -f conftest.i conftest.err conftest.$ac_ext 4219555991fdSmrgif $ac_preproc_ok; then : 4220126a8a12Smrg 4221555991fdSmrgelse 4222555991fdSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4223555991fdSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4224555991fdSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4225555991fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 4226555991fdSmrgfi 4227126a8a12Smrg 4228555991fdSmrgac_ext=c 4229555991fdSmrgac_cpp='$CPP $CPPFLAGS' 4230555991fdSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4231555991fdSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4232555991fdSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 4233126a8a12Smrg 4234126a8a12Smrg 4235555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4236555991fdSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4237555991fdSmrgif ${ac_cv_path_GREP+:} false; then : 4238d656433aSmrg $as_echo_n "(cached) " >&6 4239126a8a12Smrgelse 4240555991fdSmrg if test -z "$GREP"; then 4241555991fdSmrg ac_path_GREP_found=false 4242555991fdSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4243555991fdSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4244555991fdSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4245126a8a12Smrgdo 4246126a8a12Smrg IFS=$as_save_IFS 4247126a8a12Smrg test -z "$as_dir" && as_dir=. 4248555991fdSmrg for ac_prog in grep ggrep; do 4249555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4250555991fdSmrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4251555991fdSmrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4252555991fdSmrg# Check for GNU ac_path_GREP and select it if it is found. 4253555991fdSmrg # Check for GNU $ac_path_GREP 4254555991fdSmrgcase `"$ac_path_GREP" --version 2>&1` in 4255555991fdSmrg*GNU*) 4256555991fdSmrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4257555991fdSmrg*) 4258555991fdSmrg ac_count=0 4259555991fdSmrg $as_echo_n 0123456789 >"conftest.in" 4260555991fdSmrg while : 4261555991fdSmrg do 4262555991fdSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4263555991fdSmrg mv "conftest.tmp" "conftest.in" 4264555991fdSmrg cp "conftest.in" "conftest.nl" 4265555991fdSmrg $as_echo 'GREP' >> "conftest.nl" 4266555991fdSmrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4267555991fdSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4268555991fdSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4269555991fdSmrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 4270555991fdSmrg # Best one so far, save it but keep looking for a better one 4271555991fdSmrg ac_cv_path_GREP="$ac_path_GREP" 4272555991fdSmrg ac_path_GREP_max=$ac_count 4273555991fdSmrg fi 4274555991fdSmrg # 10*(2^10) chars as input seems more than enough 4275555991fdSmrg test $ac_count -gt 10 && break 4276555991fdSmrg done 4277555991fdSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4278555991fdSmrgesac 4279126a8a12Smrg 4280555991fdSmrg $ac_path_GREP_found && break 3 4281555991fdSmrg done 4282555991fdSmrg done 4283555991fdSmrg done 4284555991fdSmrgIFS=$as_save_IFS 4285555991fdSmrg if test -z "$ac_cv_path_GREP"; then 4286555991fdSmrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4287555991fdSmrg fi 4288126a8a12Smrgelse 4289555991fdSmrg ac_cv_path_GREP=$GREP 4290126a8a12Smrgfi 4291126a8a12Smrg 4292126a8a12Smrgfi 4293555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4294555991fdSmrg$as_echo "$ac_cv_path_GREP" >&6; } 4295555991fdSmrg GREP="$ac_cv_path_GREP" 4296555991fdSmrg 4297555991fdSmrg 4298555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4299555991fdSmrg$as_echo_n "checking for egrep... " >&6; } 4300555991fdSmrgif ${ac_cv_path_EGREP+:} false; then : 4301d656433aSmrg $as_echo_n "(cached) " >&6 4302126a8a12Smrgelse 4303555991fdSmrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4304555991fdSmrg then ac_cv_path_EGREP="$GREP -E" 4305555991fdSmrg else 4306555991fdSmrg if test -z "$EGREP"; then 4307555991fdSmrg ac_path_EGREP_found=false 4308555991fdSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4309555991fdSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4310555991fdSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4311126a8a12Smrgdo 4312126a8a12Smrg IFS=$as_save_IFS 4313126a8a12Smrg test -z "$as_dir" && as_dir=. 4314555991fdSmrg for ac_prog in egrep; do 4315555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4316555991fdSmrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4317555991fdSmrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4318555991fdSmrg# Check for GNU ac_path_EGREP and select it if it is found. 4319555991fdSmrg # Check for GNU $ac_path_EGREP 4320555991fdSmrgcase `"$ac_path_EGREP" --version 2>&1` in 4321555991fdSmrg*GNU*) 4322555991fdSmrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4323555991fdSmrg*) 4324555991fdSmrg ac_count=0 4325555991fdSmrg $as_echo_n 0123456789 >"conftest.in" 4326555991fdSmrg while : 4327555991fdSmrg do 4328555991fdSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4329555991fdSmrg mv "conftest.tmp" "conftest.in" 4330555991fdSmrg cp "conftest.in" "conftest.nl" 4331555991fdSmrg $as_echo 'EGREP' >> "conftest.nl" 4332555991fdSmrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4333555991fdSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4334555991fdSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4335555991fdSmrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4336555991fdSmrg # Best one so far, save it but keep looking for a better one 4337555991fdSmrg ac_cv_path_EGREP="$ac_path_EGREP" 4338555991fdSmrg ac_path_EGREP_max=$ac_count 4339555991fdSmrg fi 4340555991fdSmrg # 10*(2^10) chars as input seems more than enough 4341555991fdSmrg test $ac_count -gt 10 && break 4342555991fdSmrg done 4343555991fdSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4344126a8a12Smrgesac 4345555991fdSmrg 4346555991fdSmrg $ac_path_EGREP_found && break 3 4347555991fdSmrg done 4348555991fdSmrg done 4349555991fdSmrg done 4350555991fdSmrgIFS=$as_save_IFS 4351555991fdSmrg if test -z "$ac_cv_path_EGREP"; then 4352555991fdSmrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4353126a8a12Smrg fi 4354126a8a12Smrgelse 4355555991fdSmrg ac_cv_path_EGREP=$EGREP 4356d656433aSmrgfi 4357126a8a12Smrg 4358555991fdSmrg fi 4359555991fdSmrgfi 4360555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4361555991fdSmrg$as_echo "$ac_cv_path_EGREP" >&6; } 4362555991fdSmrg EGREP="$ac_cv_path_EGREP" 4363126a8a12Smrg 4364126a8a12Smrg 4365555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4366555991fdSmrg$as_echo_n "checking for ANSI C header files... " >&6; } 4367555991fdSmrgif ${ac_cv_header_stdc+:} false; then : 4368555991fdSmrg $as_echo_n "(cached) " >&6 4369555991fdSmrgelse 4370555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4371555991fdSmrg/* end confdefs.h. */ 4372555991fdSmrg#include <stdlib.h> 4373555991fdSmrg#include <stdarg.h> 4374555991fdSmrg#include <string.h> 4375555991fdSmrg#include <float.h> 4376126a8a12Smrg 4377555991fdSmrgint 4378555991fdSmrgmain () 4379555991fdSmrg{ 4380126a8a12Smrg 4381555991fdSmrg ; 4382555991fdSmrg return 0; 4383555991fdSmrg} 4384555991fdSmrg_ACEOF 4385555991fdSmrgif ac_fn_c_try_compile "$LINENO"; then : 4386555991fdSmrg ac_cv_header_stdc=yes 4387555991fdSmrgelse 4388555991fdSmrg ac_cv_header_stdc=no 4389555991fdSmrgfi 4390555991fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4391126a8a12Smrg 4392555991fdSmrgif test $ac_cv_header_stdc = yes; then 4393555991fdSmrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4394555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4395555991fdSmrg/* end confdefs.h. */ 4396555991fdSmrg#include <string.h> 4397126a8a12Smrg 4398555991fdSmrg_ACEOF 4399555991fdSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4400555991fdSmrg $EGREP "memchr" >/dev/null 2>&1; then : 4401126a8a12Smrg 4402555991fdSmrgelse 4403555991fdSmrg ac_cv_header_stdc=no 4404555991fdSmrgfi 4405555991fdSmrgrm -f conftest* 4406126a8a12Smrg 4407555991fdSmrgfi 4408126a8a12Smrg 4409555991fdSmrgif test $ac_cv_header_stdc = yes; then 4410555991fdSmrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4411555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4412555991fdSmrg/* end confdefs.h. */ 4413555991fdSmrg#include <stdlib.h> 4414126a8a12Smrg 4415555991fdSmrg_ACEOF 4416555991fdSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4417555991fdSmrg $EGREP "free" >/dev/null 2>&1; then : 4418126a8a12Smrg 4419126a8a12Smrgelse 4420555991fdSmrg ac_cv_header_stdc=no 4421126a8a12Smrgfi 4422555991fdSmrgrm -f conftest* 4423555991fdSmrg 4424126a8a12Smrgfi 4425555991fdSmrg 4426555991fdSmrgif test $ac_cv_header_stdc = yes; then 4427555991fdSmrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4428555991fdSmrg if test "$cross_compiling" = yes; then : 4429555991fdSmrg : 4430d656433aSmrgelse 4431555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4432555991fdSmrg/* end confdefs.h. */ 4433555991fdSmrg#include <ctype.h> 4434555991fdSmrg#include <stdlib.h> 4435555991fdSmrg#if ((' ' & 0x0FF) == 0x020) 4436555991fdSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4437555991fdSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4438555991fdSmrg#else 4439555991fdSmrg# define ISLOWER(c) \ 4440555991fdSmrg (('a' <= (c) && (c) <= 'i') \ 4441555991fdSmrg || ('j' <= (c) && (c) <= 'r') \ 4442555991fdSmrg || ('s' <= (c) && (c) <= 'z')) 4443555991fdSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4444555991fdSmrg#endif 4445126a8a12Smrg 4446555991fdSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4447555991fdSmrgint 4448555991fdSmrgmain () 4449555991fdSmrg{ 4450555991fdSmrg int i; 4451555991fdSmrg for (i = 0; i < 256; i++) 4452555991fdSmrg if (XOR (islower (i), ISLOWER (i)) 4453555991fdSmrg || toupper (i) != TOUPPER (i)) 4454555991fdSmrg return 2; 4455555991fdSmrg return 0; 4456555991fdSmrg} 4457555991fdSmrg_ACEOF 4458555991fdSmrgif ac_fn_c_try_run "$LINENO"; then : 4459d656433aSmrg 4460126a8a12Smrgelse 4461555991fdSmrg ac_cv_header_stdc=no 4462d656433aSmrgfi 4463555991fdSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4464555991fdSmrg conftest.$ac_objext conftest.beam conftest.$ac_ext 4465555991fdSmrgfi 4466555991fdSmrg 4467d656433aSmrgfi 4468d656433aSmrgfi 4469555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4470555991fdSmrg$as_echo "$ac_cv_header_stdc" >&6; } 4471555991fdSmrgif test $ac_cv_header_stdc = yes; then 4472555991fdSmrg 4473555991fdSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4474126a8a12Smrg 4475126a8a12Smrgfi 4476126a8a12Smrg 4477555991fdSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4478555991fdSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4479555991fdSmrg inttypes.h stdint.h unistd.h 4480555991fdSmrgdo : 4481555991fdSmrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4482555991fdSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4483555991fdSmrg" 4484555991fdSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4485555991fdSmrg cat >>confdefs.h <<_ACEOF 4486555991fdSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4487555991fdSmrg_ACEOF 4488126a8a12Smrg 4489555991fdSmrgfi 4490126a8a12Smrg 4491555991fdSmrgdone 4492126a8a12Smrg 4493126a8a12Smrg 4494126a8a12Smrg 4495d656433aSmrg 4496555991fdSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4497555991fdSmrg if test -n "$ac_tool_prefix"; then 4498555991fdSmrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4499555991fdSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4500555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4501d656433aSmrg$as_echo_n "checking for $ac_word... " >&6; } 4502555991fdSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 4503d656433aSmrg $as_echo_n "(cached) " >&6 4504126a8a12Smrgelse 4505555991fdSmrg case $PKG_CONFIG in 4506555991fdSmrg [\\/]* | ?:[\\/]*) 4507555991fdSmrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4508555991fdSmrg ;; 4509555991fdSmrg *) 4510555991fdSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4511d656433aSmrgfor as_dir in $PATH 4512d656433aSmrgdo 4513d656433aSmrg IFS=$as_save_IFS 4514d656433aSmrg test -z "$as_dir" && as_dir=. 4515555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4516d656433aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4517555991fdSmrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4518555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4519d656433aSmrg break 2 4520d656433aSmrg fi 4521d656433aSmrgdone 4522555991fdSmrg done 4523d656433aSmrgIFS=$as_save_IFS 4524126a8a12Smrg 4525555991fdSmrg ;; 4526555991fdSmrgesac 4527126a8a12Smrgfi 4528555991fdSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 4529555991fdSmrgif test -n "$PKG_CONFIG"; then 4530555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4531555991fdSmrg$as_echo "$PKG_CONFIG" >&6; } 4532126a8a12Smrgelse 4533555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4534d656433aSmrg$as_echo "no" >&6; } 4535126a8a12Smrgfi 4536126a8a12Smrg 4537126a8a12Smrg 4538126a8a12Smrgfi 4539555991fdSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then 4540555991fdSmrg ac_pt_PKG_CONFIG=$PKG_CONFIG 4541555991fdSmrg # Extract the first word of "pkg-config", so it can be a program name with args. 4542555991fdSmrgset dummy pkg-config; ac_word=$2 4543555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4544d656433aSmrg$as_echo_n "checking for $ac_word... " >&6; } 4545555991fdSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4546d656433aSmrg $as_echo_n "(cached) " >&6 4547d656433aSmrgelse 4548555991fdSmrg case $ac_pt_PKG_CONFIG in 4549555991fdSmrg [\\/]* | ?:[\\/]*) 4550555991fdSmrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4551555991fdSmrg ;; 4552555991fdSmrg *) 4553555991fdSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4554d656433aSmrgfor as_dir in $PATH 4555d656433aSmrgdo 4556d656433aSmrg IFS=$as_save_IFS 4557d656433aSmrg test -z "$as_dir" && as_dir=. 4558555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4559d656433aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4560555991fdSmrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4561555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4562d656433aSmrg break 2 4563d656433aSmrg fi 4564d656433aSmrgdone 4565555991fdSmrg done 4566d656433aSmrgIFS=$as_save_IFS 4567126a8a12Smrg 4568555991fdSmrg ;; 4569555991fdSmrgesac 4570126a8a12Smrgfi 4571555991fdSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4572555991fdSmrgif test -n "$ac_pt_PKG_CONFIG"; then 4573555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4574555991fdSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4575126a8a12Smrgelse 4576555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4577d656433aSmrg$as_echo "no" >&6; } 4578126a8a12Smrgfi 4579d656433aSmrg 4580555991fdSmrg if test "x$ac_pt_PKG_CONFIG" = x; then 4581555991fdSmrg PKG_CONFIG="" 4582d656433aSmrg else 4583d656433aSmrg case $cross_compiling:$ac_tool_warned in 4584d656433aSmrgyes:) 4585555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4586d656433aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4587d656433aSmrgac_tool_warned=yes ;; 4588126a8a12Smrgesac 4589555991fdSmrg PKG_CONFIG=$ac_pt_PKG_CONFIG 4590d656433aSmrg fi 4591126a8a12Smrgelse 4592555991fdSmrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4593555991fdSmrgfi 4594126a8a12Smrg 4595555991fdSmrgfi 4596555991fdSmrgif test -n "$PKG_CONFIG"; then 4597555991fdSmrg _pkg_min_version=0.9.0 4598555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4599555991fdSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4600555991fdSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4601555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4602555991fdSmrg$as_echo "yes" >&6; } 4603555991fdSmrg else 4604555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4605555991fdSmrg$as_echo "no" >&6; } 4606555991fdSmrg PKG_CONFIG="" 4607555991fdSmrg fi 4608126a8a12Smrg 4609555991fdSmrgfi 4610555991fdSmrg# Make sure we can run config.sub. 4611555991fdSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4612555991fdSmrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4613126a8a12Smrg 4614555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4615555991fdSmrg$as_echo_n "checking build system type... " >&6; } 4616555991fdSmrgif ${ac_cv_build+:} false; then : 4617555991fdSmrg $as_echo_n "(cached) " >&6 4618555991fdSmrgelse 4619555991fdSmrg ac_build_alias=$build_alias 4620555991fdSmrgtest "x$ac_build_alias" = x && 4621555991fdSmrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4622555991fdSmrgtest "x$ac_build_alias" = x && 4623555991fdSmrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4624555991fdSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4625555991fdSmrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4626126a8a12Smrg 4627555991fdSmrgfi 4628555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4629555991fdSmrg$as_echo "$ac_cv_build" >&6; } 4630555991fdSmrgcase $ac_cv_build in 4631555991fdSmrg*-*-*) ;; 4632555991fdSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4633555991fdSmrgesac 4634555991fdSmrgbuild=$ac_cv_build 4635555991fdSmrgac_save_IFS=$IFS; IFS='-' 4636555991fdSmrgset x $ac_cv_build 4637555991fdSmrgshift 4638555991fdSmrgbuild_cpu=$1 4639555991fdSmrgbuild_vendor=$2 4640555991fdSmrgshift; shift 4641555991fdSmrg# Remember, the first character of IFS is used to create $*, 4642555991fdSmrg# except with old shells: 4643555991fdSmrgbuild_os=$* 4644555991fdSmrgIFS=$ac_save_IFS 4645555991fdSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4646126a8a12Smrg 4647126a8a12Smrg 4648555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4649555991fdSmrg$as_echo_n "checking host system type... " >&6; } 4650555991fdSmrgif ${ac_cv_host+:} false; then : 4651555991fdSmrg $as_echo_n "(cached) " >&6 4652555991fdSmrgelse 4653555991fdSmrg if test "x$host_alias" = x; then 4654555991fdSmrg ac_cv_host=$ac_cv_build 4655555991fdSmrgelse 4656555991fdSmrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4657555991fdSmrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4658555991fdSmrgfi 4659126a8a12Smrg 4660555991fdSmrgfi 4661555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4662555991fdSmrg$as_echo "$ac_cv_host" >&6; } 4663555991fdSmrgcase $ac_cv_host in 4664555991fdSmrg*-*-*) ;; 4665555991fdSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4666555991fdSmrgesac 4667555991fdSmrghost=$ac_cv_host 4668555991fdSmrgac_save_IFS=$IFS; IFS='-' 4669555991fdSmrgset x $ac_cv_host 4670555991fdSmrgshift 4671555991fdSmrghost_cpu=$1 4672555991fdSmrghost_vendor=$2 4673555991fdSmrgshift; shift 4674555991fdSmrg# Remember, the first character of IFS is used to create $*, 4675555991fdSmrg# except with old shells: 4676555991fdSmrghost_os=$* 4677555991fdSmrgIFS=$ac_save_IFS 4678555991fdSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4679126a8a12Smrg 4680126a8a12Smrg 4681555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4682555991fdSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4683555991fdSmrgif ${ac_cv_path_SED+:} false; then : 4684555991fdSmrg $as_echo_n "(cached) " >&6 4685555991fdSmrgelse 4686555991fdSmrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4687555991fdSmrg for ac_i in 1 2 3 4 5 6 7; do 4688555991fdSmrg ac_script="$ac_script$as_nl$ac_script" 4689555991fdSmrg done 4690555991fdSmrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4691555991fdSmrg { ac_script=; unset ac_script;} 4692555991fdSmrg if test -z "$SED"; then 4693555991fdSmrg ac_path_SED_found=false 4694555991fdSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4695555991fdSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4696555991fdSmrgfor as_dir in $PATH 4697555991fdSmrgdo 4698555991fdSmrg IFS=$as_save_IFS 4699555991fdSmrg test -z "$as_dir" && as_dir=. 4700555991fdSmrg for ac_prog in sed gsed; do 4701555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4702555991fdSmrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4703555991fdSmrg { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4704555991fdSmrg# Check for GNU ac_path_SED and select it if it is found. 4705555991fdSmrg # Check for GNU $ac_path_SED 4706555991fdSmrgcase `"$ac_path_SED" --version 2>&1` in 4707555991fdSmrg*GNU*) 4708555991fdSmrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4709555991fdSmrg*) 4710555991fdSmrg ac_count=0 4711555991fdSmrg $as_echo_n 0123456789 >"conftest.in" 4712555991fdSmrg while : 4713555991fdSmrg do 4714555991fdSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4715555991fdSmrg mv "conftest.tmp" "conftest.in" 4716555991fdSmrg cp "conftest.in" "conftest.nl" 4717555991fdSmrg $as_echo '' >> "conftest.nl" 4718555991fdSmrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4719555991fdSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4720555991fdSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4721555991fdSmrg if test $ac_count -gt ${ac_path_SED_max-0}; then 4722555991fdSmrg # Best one so far, save it but keep looking for a better one 4723555991fdSmrg ac_cv_path_SED="$ac_path_SED" 4724555991fdSmrg ac_path_SED_max=$ac_count 4725555991fdSmrg fi 4726555991fdSmrg # 10*(2^10) chars as input seems more than enough 4727555991fdSmrg test $ac_count -gt 10 && break 4728555991fdSmrg done 4729555991fdSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4730555991fdSmrgesac 4731126a8a12Smrg 4732555991fdSmrg $ac_path_SED_found && break 3 4733555991fdSmrg done 4734555991fdSmrg done 4735555991fdSmrg done 4736555991fdSmrgIFS=$as_save_IFS 4737555991fdSmrg if test -z "$ac_cv_path_SED"; then 4738555991fdSmrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4739555991fdSmrg fi 4740555991fdSmrgelse 4741555991fdSmrg ac_cv_path_SED=$SED 4742555991fdSmrgfi 4743126a8a12Smrg 4744555991fdSmrgfi 4745555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4746555991fdSmrg$as_echo "$ac_cv_path_SED" >&6; } 4747555991fdSmrg SED="$ac_cv_path_SED" 4748555991fdSmrg rm -f conftest.sed 4749126a8a12Smrg 4750126a8a12Smrg 4751126a8a12Smrg 4752126a8a12Smrg 4753126a8a12Smrg 4754555991fdSmrgif test "x$GCC" = xyes ; then 4755555991fdSmrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4756555991fdSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4757555991fdSmrg-Wbad-function-cast -Wformat=2" 4758555991fdSmrg case `$CC -dumpversion` in 4759555991fdSmrg 3.4.* | 4.*) 4760555991fdSmrg CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4761555991fdSmrg ;; 4762555991fdSmrg esac 4763555991fdSmrgelse 4764555991fdSmrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4765555991fdSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4766555991fdSmrg SUNCC="yes" 4767555991fdSmrgelse 4768555991fdSmrg SUNCC="no" 4769555991fdSmrgfi 4770126a8a12Smrg 4771555991fdSmrg if test "x$SUNCC" = "xyes"; then 4772555991fdSmrg CWARNFLAGS="-v" 4773555991fdSmrg fi 4774555991fdSmrgfi 4775126a8a12Smrg 4776126a8a12Smrg 4777126a8a12Smrg 4778555991fdSmrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 4779126a8a12Smrg 4780126a8a12Smrg 4781126a8a12Smrg 4782555991fdSmrg# Check whether --enable-strict-compilation was given. 4783555991fdSmrgif test "${enable_strict_compilation+set}" = set; then : 4784555991fdSmrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4785126a8a12Smrgelse 4786555991fdSmrg STRICT_COMPILE=no 4787555991fdSmrgfi 4788126a8a12Smrg 4789555991fdSmrgif test "x$STRICT_COMPILE" = "xyes"; then 4790555991fdSmrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4791555991fdSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4792555991fdSmrg SUNCC="yes" 4793555991fdSmrgelse 4794555991fdSmrg SUNCC="no" 4795555991fdSmrgfi 4796126a8a12Smrg 4797555991fdSmrg ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4798555991fdSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4799555991fdSmrg INTELCC="yes" 4800555991fdSmrgelse 4801555991fdSmrg INTELCC="no" 4802555991fdSmrgfi 4803126a8a12Smrg 4804555991fdSmrg if test "x$GCC" = xyes ; then 4805555991fdSmrg STRICT_CFLAGS="-pedantic -Werror" 4806555991fdSmrg elif test "x$SUNCC" = "xyes"; then 4807555991fdSmrg STRICT_CFLAGS="-errwarn" 4808555991fdSmrg elif test "x$INTELCC" = "xyes"; then 4809555991fdSmrg STRICT_CFLAGS="-Werror" 4810555991fdSmrg fi 4811555991fdSmrgfi 4812555991fdSmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4813126a8a12Smrg 4814d656433aSmrg 4815d656433aSmrg 4816d656433aSmrg 4817555991fdSmrgcat >>confdefs.h <<_ACEOF 4818555991fdSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4819555991fdSmrg_ACEOF 4820126a8a12Smrg 4821555991fdSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4822555991fdSmrg if test "x$PVM" = "x"; then 4823555991fdSmrg PVM="0" 4824555991fdSmrg fi 4825126a8a12Smrg 4826555991fdSmrgcat >>confdefs.h <<_ACEOF 4827555991fdSmrg#define PACKAGE_VERSION_MINOR $PVM 4828555991fdSmrg_ACEOF 4829126a8a12Smrg 4830555991fdSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4831555991fdSmrg if test "x$PVP" = "x"; then 4832555991fdSmrg PVP="0" 4833555991fdSmrg fi 4834126a8a12Smrg 4835555991fdSmrgcat >>confdefs.h <<_ACEOF 4836555991fdSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 4837555991fdSmrg_ACEOF 4838126a8a12Smrg 4839126a8a12Smrg 4840126a8a12Smrg 4841555991fdSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4842555991fdSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4843555991fdSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 4844555991fdSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 4845126a8a12Smrg 4846126a8a12Smrg 4847126a8a12Smrg 4848126a8a12Smrg 4849555991fdSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 4850555991fdSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 4851555991fdSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 4852555991fdSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 4853555991fdSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 4854555991fdSmrg 4855555991fdSmrg 4856d656433aSmrg 4857126a8a12Smrg 4858126a8a12Smrg 4859555991fdSmrg 4860555991fdSmrgif test x$APP_MAN_SUFFIX = x ; then 4861555991fdSmrg APP_MAN_SUFFIX=1 4862555991fdSmrgfi 4863555991fdSmrgif test x$APP_MAN_DIR = x ; then 4864555991fdSmrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4865126a8a12Smrgfi 4866126a8a12Smrg 4867555991fdSmrgif test x$LIB_MAN_SUFFIX = x ; then 4868555991fdSmrg LIB_MAN_SUFFIX=3 4869126a8a12Smrgfi 4870555991fdSmrgif test x$LIB_MAN_DIR = x ; then 4871555991fdSmrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4872126a8a12Smrgfi 4873126a8a12Smrg 4874555991fdSmrgif test x$FILE_MAN_SUFFIX = x ; then 4875555991fdSmrg case $host_os in 4876555991fdSmrg solaris*) FILE_MAN_SUFFIX=4 ;; 4877555991fdSmrg *) FILE_MAN_SUFFIX=5 ;; 4878555991fdSmrg esac 4879555991fdSmrgfi 4880555991fdSmrgif test x$FILE_MAN_DIR = x ; then 4881555991fdSmrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4882555991fdSmrgfi 4883126a8a12Smrg 4884555991fdSmrgif test x$MISC_MAN_SUFFIX = x ; then 4885555991fdSmrg case $host_os in 4886555991fdSmrg solaris*) MISC_MAN_SUFFIX=5 ;; 4887555991fdSmrg *) MISC_MAN_SUFFIX=7 ;; 4888555991fdSmrg esac 4889555991fdSmrgfi 4890555991fdSmrgif test x$MISC_MAN_DIR = x ; then 4891555991fdSmrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4892555991fdSmrgfi 4893126a8a12Smrg 4894555991fdSmrgif test x$DRIVER_MAN_SUFFIX = x ; then 4895555991fdSmrg case $host_os in 4896555991fdSmrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 4897555991fdSmrg *) DRIVER_MAN_SUFFIX=4 ;; 4898555991fdSmrg esac 4899555991fdSmrgfi 4900555991fdSmrgif test x$DRIVER_MAN_DIR = x ; then 4901555991fdSmrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4902555991fdSmrgfi 4903126a8a12Smrg 4904555991fdSmrgif test x$ADMIN_MAN_SUFFIX = x ; then 4905555991fdSmrg case $host_os in 4906555991fdSmrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 4907555991fdSmrg *) ADMIN_MAN_SUFFIX=8 ;; 4908555991fdSmrg esac 4909555991fdSmrgfi 4910555991fdSmrgif test x$ADMIN_MAN_DIR = x ; then 4911555991fdSmrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4912555991fdSmrgfi 4913126a8a12Smrg 4914126a8a12Smrg 4915126a8a12Smrg 4916126a8a12Smrg 4917126a8a12Smrg 4918126a8a12Smrg 4919126a8a12Smrg 4920126a8a12Smrg 4921126a8a12Smrg 4922126a8a12Smrg 4923126a8a12Smrg 4924126a8a12Smrg 4925126a8a12Smrg 4926126a8a12Smrg 4927126a8a12Smrg 4928555991fdSmrgXORG_MAN_PAGE="X Version 11" 4929126a8a12Smrg 4930555991fdSmrgMAN_SUBSTS="\ 4931555991fdSmrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4932555991fdSmrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4933555991fdSmrg -e 's|__xservername__|Xorg|g' \ 4934555991fdSmrg -e 's|__xconfigfile__|xorg.conf|g' \ 4935555991fdSmrg -e 's|__projectroot__|\$(prefix)|g' \ 4936555991fdSmrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 4937555991fdSmrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 4938555991fdSmrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 4939555991fdSmrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 4940555991fdSmrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 4941555991fdSmrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 4942555991fdSmrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 4943126a8a12Smrg 4944126a8a12Smrg 4945126a8a12Smrg 4946555991fdSmrg# Check whether --enable-silent-rules was given. 4947555991fdSmrgif test "${enable_silent_rules+set}" = set; then : 4948555991fdSmrg enableval=$enable_silent_rules; 4949126a8a12Smrgfi 4950d656433aSmrg 4951555991fdSmrgcase $enable_silent_rules in 4952555991fdSmrgyes) AM_DEFAULT_VERBOSITY=0;; 4953555991fdSmrgno) AM_DEFAULT_VERBOSITY=1;; 4954555991fdSmrg*) AM_DEFAULT_VERBOSITY=0;; 4955555991fdSmrgesac 4956555991fdSmrgAM_BACKSLASH='\' 4957d656433aSmrg 4958d656433aSmrg 4959555991fdSmrg 4960555991fdSmrgdefault= 4961555991fdSmrgif test "x$default" = x ; then 4962555991fdSmrg default="yes" 4963555991fdSmrgfi 4964555991fdSmrg# Check whether --enable-docs was given. 4965555991fdSmrgif test "${enable_docs+set}" = set; then : 4966555991fdSmrg enableval=$enable_docs; build_docs=$enableval 4967555991fdSmrgelse 4968555991fdSmrg build_docs=$default 4969555991fdSmrgfi 4970555991fdSmrg 4971555991fdSmrg if test x$build_docs = xyes; then 4972555991fdSmrg ENABLE_DOCS_TRUE= 4973555991fdSmrg ENABLE_DOCS_FALSE='#' 4974555991fdSmrgelse 4975555991fdSmrg ENABLE_DOCS_TRUE='#' 4976555991fdSmrg ENABLE_DOCS_FALSE= 4977555991fdSmrgfi 4978555991fdSmrg 4979555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 4980555991fdSmrg$as_echo_n "checking whether to build documentation... " >&6; } 4981555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 4982555991fdSmrg$as_echo "$build_docs" >&6; } 4983555991fdSmrg 4984555991fdSmrg 4985555991fdSmrg 4986555991fdSmrg 4987555991fdSmrg# Check whether --with-xmlto was given. 4988555991fdSmrgif test "${with_xmlto+set}" = set; then : 4989555991fdSmrg withval=$with_xmlto; use_xmlto=$withval 4990555991fdSmrgelse 4991555991fdSmrg use_xmlto=auto 4992555991fdSmrgfi 4993555991fdSmrg 4994555991fdSmrg 4995555991fdSmrgif test "x$use_xmlto" = x"auto"; then 4996555991fdSmrg # Extract the first word of "xmlto", so it can be a program name with args. 4997555991fdSmrgset dummy xmlto; ac_word=$2 4998555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4999555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 5000555991fdSmrgif ${ac_cv_path_XMLTO+:} false; then : 5001555991fdSmrg $as_echo_n "(cached) " >&6 5002555991fdSmrgelse 5003555991fdSmrg case $XMLTO in 5004555991fdSmrg [\\/]* | ?:[\\/]*) 5005555991fdSmrg ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 5006555991fdSmrg ;; 5007555991fdSmrg *) 5008555991fdSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5009555991fdSmrgfor as_dir in $PATH 5010555991fdSmrgdo 5011555991fdSmrg IFS=$as_save_IFS 5012555991fdSmrg test -z "$as_dir" && as_dir=. 5013555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5014555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5015555991fdSmrg ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 5016555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5017555991fdSmrg break 2 5018d656433aSmrg fi 5019555991fdSmrgdone 5020555991fdSmrg done 5021555991fdSmrgIFS=$as_save_IFS 5022555991fdSmrg 5023d656433aSmrg ;; 5024555991fdSmrgesac 5025555991fdSmrgfi 5026555991fdSmrgXMLTO=$ac_cv_path_XMLTO 5027555991fdSmrgif test -n "$XMLTO"; then 5028555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 5029555991fdSmrg$as_echo "$XMLTO" >&6; } 5030555991fdSmrgelse 5031555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5032555991fdSmrg$as_echo "no" >&6; } 5033555991fdSmrgfi 5034d656433aSmrg 5035555991fdSmrg 5036555991fdSmrg if test "x$XMLTO" = "x"; then 5037555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 5038555991fdSmrg$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 5039555991fdSmrg have_xmlto=no 5040555991fdSmrg else 5041555991fdSmrg have_xmlto=yes 5042555991fdSmrg fi 5043555991fdSmrgelif test "x$use_xmlto" = x"yes" ; then 5044555991fdSmrg # Extract the first word of "xmlto", so it can be a program name with args. 5045555991fdSmrgset dummy xmlto; ac_word=$2 5046555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5047555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 5048555991fdSmrgif ${ac_cv_path_XMLTO+:} false; then : 5049d656433aSmrg $as_echo_n "(cached) " >&6 5050d656433aSmrgelse 5051555991fdSmrg case $XMLTO in 5052555991fdSmrg [\\/]* | ?:[\\/]*) 5053555991fdSmrg ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 5054555991fdSmrg ;; 5055555991fdSmrg *) 5056555991fdSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5057555991fdSmrgfor as_dir in $PATH 5058555991fdSmrgdo 5059555991fdSmrg IFS=$as_save_IFS 5060555991fdSmrg test -z "$as_dir" && as_dir=. 5061555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5062555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5063555991fdSmrg ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 5064555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5065555991fdSmrg break 2 5066555991fdSmrg fi 5067555991fdSmrgdone 5068555991fdSmrg done 5069555991fdSmrgIFS=$as_save_IFS 5070d656433aSmrg 5071555991fdSmrg ;; 5072555991fdSmrgesac 5073555991fdSmrgfi 5074555991fdSmrgXMLTO=$ac_cv_path_XMLTO 5075555991fdSmrgif test -n "$XMLTO"; then 5076555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 5077555991fdSmrg$as_echo "$XMLTO" >&6; } 5078555991fdSmrgelse 5079555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5080555991fdSmrg$as_echo "no" >&6; } 5081555991fdSmrgfi 5082d656433aSmrg 5083d656433aSmrg 5084555991fdSmrg if test "x$XMLTO" = "x"; then 5085555991fdSmrg as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 5086555991fdSmrg fi 5087555991fdSmrg have_xmlto=yes 5088555991fdSmrgelif test "x$use_xmlto" = x"no" ; then 5089555991fdSmrg if test "x$XMLTO" != "x"; then 5090555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 5091555991fdSmrg$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 5092555991fdSmrg fi 5093555991fdSmrg have_xmlto=no 5094555991fdSmrgelse 5095555991fdSmrg as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 5096555991fdSmrgfi 5097555991fdSmrg 5098555991fdSmrg# Test for a minimum version of xmlto, if provided. 5099555991fdSmrgif test "$have_xmlto" = yes; then 5100555991fdSmrg # scrape the xmlto version 5101555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 5102555991fdSmrg$as_echo_n "checking the xmlto version... " >&6; } 5103555991fdSmrg xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 5104555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 5105555991fdSmrg$as_echo "$xmlto_version" >&6; } 5106555991fdSmrg as_arg_v1=$xmlto_version 5107555991fdSmrgas_arg_v2=0.0.20 5108555991fdSmrgawk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 5109555991fdSmrgcase $? in #( 5110555991fdSmrg 1) : 5111555991fdSmrg if test "x$use_xmlto" = xauto; then 5112555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 5113555991fdSmrg$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} 5114555991fdSmrg have_xmlto=no 5115555991fdSmrg else 5116555991fdSmrg as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 5117555991fdSmrg fi ;; #( 5118555991fdSmrg 0) : 5119555991fdSmrg ;; #( 5120555991fdSmrg 2) : 5121555991fdSmrg ;; #( 5122555991fdSmrg *) : 5123555991fdSmrg ;; 5124d656433aSmrgesac 5125555991fdSmrgfi 5126555991fdSmrg 5127555991fdSmrg# Test for the ability of xmlto to generate a text target 5128555991fdSmrghave_xmlto_text=no 5129555991fdSmrgcat > conftest.xml << "EOF" 5130555991fdSmrgEOF 5131555991fdSmrgif test "$have_xmlto" = yes; then : 5132555991fdSmrg if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 5133555991fdSmrg have_xmlto_text=yes 5134d656433aSmrgelse 5135555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 5136555991fdSmrg$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 5137555991fdSmrgfi 5138555991fdSmrgfi 5139555991fdSmrgrm -f conftest.xml 5140555991fdSmrg if test $have_xmlto_text = yes; then 5141555991fdSmrg HAVE_XMLTO_TEXT_TRUE= 5142555991fdSmrg HAVE_XMLTO_TEXT_FALSE='#' 5143555991fdSmrgelse 5144555991fdSmrg HAVE_XMLTO_TEXT_TRUE='#' 5145555991fdSmrg HAVE_XMLTO_TEXT_FALSE= 5146555991fdSmrgfi 5147d656433aSmrg 5148555991fdSmrg if test "$have_xmlto" = yes; then 5149555991fdSmrg HAVE_XMLTO_TRUE= 5150555991fdSmrg HAVE_XMLTO_FALSE='#' 5151555991fdSmrgelse 5152555991fdSmrg HAVE_XMLTO_TRUE='#' 5153555991fdSmrg HAVE_XMLTO_FALSE= 5154d656433aSmrgfi 5155d656433aSmrg 5156d656433aSmrg 5157d656433aSmrg 5158d656433aSmrg 5159d656433aSmrg 5160555991fdSmrg# Check whether --with-fop was given. 5161555991fdSmrgif test "${with_fop+set}" = set; then : 5162555991fdSmrg withval=$with_fop; use_fop=$withval 5163555991fdSmrgelse 5164555991fdSmrg use_fop=auto 5165555991fdSmrgfi 5166555991fdSmrg 5167555991fdSmrg 5168555991fdSmrgif test "x$use_fop" = x"auto"; then 5169555991fdSmrg # Extract the first word of "fop", so it can be a program name with args. 5170555991fdSmrgset dummy fop; ac_word=$2 5171555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5172d656433aSmrg$as_echo_n "checking for $ac_word... " >&6; } 5173555991fdSmrgif ${ac_cv_path_FOP+:} false; then : 5174d656433aSmrg $as_echo_n "(cached) " >&6 5175d656433aSmrgelse 5176555991fdSmrg case $FOP in 5177555991fdSmrg [\\/]* | ?:[\\/]*) 5178555991fdSmrg ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 5179555991fdSmrg ;; 5180555991fdSmrg *) 5181555991fdSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5182d656433aSmrgfor as_dir in $PATH 5183d656433aSmrgdo 5184d656433aSmrg IFS=$as_save_IFS 5185d656433aSmrg test -z "$as_dir" && as_dir=. 5186555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5187d656433aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5188555991fdSmrg ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 5189555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5190d656433aSmrg break 2 5191d656433aSmrg fi 5192126a8a12Smrgdone 5193555991fdSmrg done 5194126a8a12SmrgIFS=$as_save_IFS 5195126a8a12Smrg 5196555991fdSmrg ;; 5197555991fdSmrgesac 5198126a8a12Smrgfi 5199555991fdSmrgFOP=$ac_cv_path_FOP 5200555991fdSmrgif test -n "$FOP"; then 5201555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 5202555991fdSmrg$as_echo "$FOP" >&6; } 5203126a8a12Smrgelse 5204555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5205d656433aSmrg$as_echo "no" >&6; } 5206126a8a12Smrgfi 5207126a8a12Smrg 5208d656433aSmrg 5209555991fdSmrg if test "x$FOP" = "x"; then 5210555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 5211555991fdSmrg$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 5212555991fdSmrg have_fop=no 5213555991fdSmrg else 5214555991fdSmrg have_fop=yes 5215555991fdSmrg fi 5216555991fdSmrgelif test "x$use_fop" = x"yes" ; then 5217555991fdSmrg # Extract the first word of "fop", so it can be a program name with args. 5218555991fdSmrgset dummy fop; ac_word=$2 5219555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5220d656433aSmrg$as_echo_n "checking for $ac_word... " >&6; } 5221555991fdSmrgif ${ac_cv_path_FOP+:} false; then : 5222d656433aSmrg $as_echo_n "(cached) " >&6 5223d656433aSmrgelse 5224555991fdSmrg case $FOP in 5225555991fdSmrg [\\/]* | ?:[\\/]*) 5226555991fdSmrg ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 5227555991fdSmrg ;; 5228555991fdSmrg *) 5229555991fdSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5230d656433aSmrgfor as_dir in $PATH 5231d656433aSmrgdo 5232d656433aSmrg IFS=$as_save_IFS 5233d656433aSmrg test -z "$as_dir" && as_dir=. 5234555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5235d656433aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5236555991fdSmrg ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 5237555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5238d656433aSmrg break 2 5239d656433aSmrg fi 5240d656433aSmrgdone 5241555991fdSmrg done 5242d656433aSmrgIFS=$as_save_IFS 5243d656433aSmrg 5244555991fdSmrg ;; 5245555991fdSmrgesac 5246555991fdSmrgfi 5247555991fdSmrgFOP=$ac_cv_path_FOP 5248555991fdSmrgif test -n "$FOP"; then 5249555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 5250555991fdSmrg$as_echo "$FOP" >&6; } 5251555991fdSmrgelse 5252555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5253555991fdSmrg$as_echo "no" >&6; } 5254555991fdSmrgfi 5255555991fdSmrg 5256555991fdSmrg 5257555991fdSmrg if test "x$FOP" = "x"; then 5258555991fdSmrg as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 5259555991fdSmrg fi 5260555991fdSmrg have_fop=yes 5261555991fdSmrgelif test "x$use_fop" = x"no" ; then 5262555991fdSmrg if test "x$FOP" != "x"; then 5263555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 5264555991fdSmrg$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 5265555991fdSmrg fi 5266555991fdSmrg have_fop=no 5267555991fdSmrgelse 5268555991fdSmrg as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 5269d656433aSmrgfi 5270555991fdSmrg if test "$have_fop" = yes; then 5271555991fdSmrg HAVE_FOP_TRUE= 5272555991fdSmrg HAVE_FOP_FALSE='#' 5273555991fdSmrgelse 5274555991fdSmrg HAVE_FOP_TRUE='#' 5275555991fdSmrg HAVE_FOP_FALSE= 5276d656433aSmrgfi 5277555991fdSmrg 5278555991fdSmrg 5279555991fdSmrg 5280555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5 5281555991fdSmrg$as_echo_n "checking for X.Org SGML entities >= 1.5... " >&6; } 5282555991fdSmrgXORG_SGML_PATH= 5283555991fdSmrgif test -n "$PKG_CONFIG" && \ 5284555991fdSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5 5285555991fdSmrg ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5 5286555991fdSmrg ac_status=$? 5287555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5288555991fdSmrg test $ac_status = 0; }; then 5289555991fdSmrg XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 5290d656433aSmrgelse 5291555991fdSmrg : 5292555991fdSmrg 5293555991fdSmrgfi 5294555991fdSmrg 5295555991fdSmrg# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 5296555991fdSmrg# the path and the name of the doc stylesheet 5297555991fdSmrgif test "x$XORG_SGML_PATH" != "x" ; then 5298555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 5299555991fdSmrg$as_echo "$XORG_SGML_PATH" >&6; } 5300555991fdSmrg STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 5301555991fdSmrg XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 5302555991fdSmrgelse 5303555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5304d656433aSmrg$as_echo "no" >&6; } 5305d656433aSmrgfi 5306d656433aSmrg 5307555991fdSmrg 5308555991fdSmrg 5309555991fdSmrg 5310555991fdSmrg if test "x$XSL_STYLESHEET" != "x"; then 5311555991fdSmrg HAVE_STYLESHEETS_TRUE= 5312555991fdSmrg HAVE_STYLESHEETS_FALSE='#' 5313126a8a12Smrgelse 5314555991fdSmrg HAVE_STYLESHEETS_TRUE='#' 5315555991fdSmrg HAVE_STYLESHEETS_FALSE= 5316555991fdSmrgfi 5317555991fdSmrg 5318555991fdSmrg 5319555991fdSmrg 5320555991fdSmrgac_config_headers="$ac_config_headers config.h" 5321555991fdSmrg 5322555991fdSmrg 5323555991fdSmrg# Checks for programs. 5324555991fdSmrgcase `pwd` in 5325555991fdSmrg *\ * | *\ *) 5326555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5327555991fdSmrg$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5328555991fdSmrgesac 5329555991fdSmrg 5330555991fdSmrg 5331555991fdSmrg 5332555991fdSmrgmacro_version='2.2.10' 5333555991fdSmrgmacro_revision='1.3175' 5334555991fdSmrg 5335555991fdSmrg 5336555991fdSmrg 5337555991fdSmrg 5338555991fdSmrg 5339555991fdSmrg 5340555991fdSmrg 5341555991fdSmrg 5342555991fdSmrg 5343555991fdSmrg 5344555991fdSmrg 5345555991fdSmrg 5346555991fdSmrg 5347555991fdSmrgltmain="$ac_aux_dir/ltmain.sh" 5348555991fdSmrg 5349555991fdSmrg# Backslashify metacharacters that are still active within 5350555991fdSmrg# double-quoted strings. 5351555991fdSmrgsed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5352555991fdSmrg 5353555991fdSmrg# Same as above, but do not quote variable references. 5354555991fdSmrgdouble_quote_subst='s/\(["`\\]\)/\\\1/g' 5355555991fdSmrg 5356555991fdSmrg# Sed substitution to delay expansion of an escaped shell variable in a 5357555991fdSmrg# double_quote_subst'ed string. 5358555991fdSmrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5359555991fdSmrg 5360555991fdSmrg# Sed substitution to delay expansion of an escaped single quote. 5361555991fdSmrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5362555991fdSmrg 5363555991fdSmrg# Sed substitution to avoid accidental globbing in evaled expressions 5364555991fdSmrgno_glob_subst='s/\*/\\\*/g' 5365555991fdSmrg 5366555991fdSmrgECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5367555991fdSmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5368555991fdSmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5369555991fdSmrg 5370555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5371555991fdSmrg$as_echo_n "checking how to print strings... " >&6; } 5372555991fdSmrg# Test print first, because it will be a builtin if present. 5373555991fdSmrgif test "X`print -r -- -n 2>/dev/null`" = X-n && \ 5374555991fdSmrg test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5375555991fdSmrg ECHO='print -r --' 5376555991fdSmrgelif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5377555991fdSmrg ECHO='printf %s\n' 5378555991fdSmrgelse 5379555991fdSmrg # Use this function as a fallback that always works. 5380555991fdSmrg func_fallback_echo () 5381555991fdSmrg { 5382555991fdSmrg eval 'cat <<_LTECHO_EOF 5383555991fdSmrg$1 5384555991fdSmrg_LTECHO_EOF' 5385555991fdSmrg } 5386555991fdSmrg ECHO='func_fallback_echo' 5387126a8a12Smrgfi 5388126a8a12Smrg 5389555991fdSmrg# func_echo_all arg... 5390555991fdSmrg# Invoke $ECHO with all args, space-separated. 5391555991fdSmrgfunc_echo_all () 5392555991fdSmrg{ 5393555991fdSmrg $ECHO "" 5394555991fdSmrg} 5395555991fdSmrg 5396555991fdSmrgcase "$ECHO" in 5397555991fdSmrg printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5398555991fdSmrg$as_echo "printf" >&6; } ;; 5399555991fdSmrg print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5400555991fdSmrg$as_echo "print -r" >&6; } ;; 5401555991fdSmrg *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5402555991fdSmrg$as_echo "cat" >&6; } ;; 5403555991fdSmrgesac 5404555991fdSmrg 5405555991fdSmrg 5406555991fdSmrg 5407555991fdSmrg 5408555991fdSmrg 5409555991fdSmrg 5410555991fdSmrg 5411555991fdSmrg 5412555991fdSmrg 5413555991fdSmrg 5414555991fdSmrg 5415555991fdSmrg 5416555991fdSmrg 5417555991fdSmrg 5418555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5419555991fdSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5420555991fdSmrgif ${ac_cv_path_SED+:} false; then : 5421d656433aSmrg $as_echo_n "(cached) " >&6 5422126a8a12Smrgelse 5423555991fdSmrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5424555991fdSmrg for ac_i in 1 2 3 4 5 6 7; do 5425555991fdSmrg ac_script="$ac_script$as_nl$ac_script" 5426555991fdSmrg done 5427555991fdSmrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5428555991fdSmrg { ac_script=; unset ac_script;} 5429555991fdSmrg if test -z "$SED"; then 5430555991fdSmrg ac_path_SED_found=false 5431555991fdSmrg # Loop through the user's path and test for each of PROGNAME-LIST 5432555991fdSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5433126a8a12Smrgfor as_dir in $PATH 5434126a8a12Smrgdo 5435126a8a12Smrg IFS=$as_save_IFS 5436126a8a12Smrg test -z "$as_dir" && as_dir=. 5437555991fdSmrg for ac_prog in sed gsed; do 5438555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5439555991fdSmrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5440555991fdSmrg { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5441555991fdSmrg# Check for GNU ac_path_SED and select it if it is found. 5442555991fdSmrg # Check for GNU $ac_path_SED 5443555991fdSmrgcase `"$ac_path_SED" --version 2>&1` in 5444555991fdSmrg*GNU*) 5445555991fdSmrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5446555991fdSmrg*) 5447555991fdSmrg ac_count=0 5448555991fdSmrg $as_echo_n 0123456789 >"conftest.in" 5449555991fdSmrg while : 5450555991fdSmrg do 5451555991fdSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 5452555991fdSmrg mv "conftest.tmp" "conftest.in" 5453555991fdSmrg cp "conftest.in" "conftest.nl" 5454555991fdSmrg $as_echo '' >> "conftest.nl" 5455555991fdSmrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5456555991fdSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5457555991fdSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 5458555991fdSmrg if test $ac_count -gt ${ac_path_SED_max-0}; then 5459555991fdSmrg # Best one so far, save it but keep looking for a better one 5460555991fdSmrg ac_cv_path_SED="$ac_path_SED" 5461555991fdSmrg ac_path_SED_max=$ac_count 5462555991fdSmrg fi 5463555991fdSmrg # 10*(2^10) chars as input seems more than enough 5464555991fdSmrg test $ac_count -gt 10 && break 5465555991fdSmrg done 5466555991fdSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5467555991fdSmrgesac 5468126a8a12Smrg 5469555991fdSmrg $ac_path_SED_found && break 3 5470555991fdSmrg done 5471555991fdSmrg done 5472555991fdSmrg done 5473555991fdSmrgIFS=$as_save_IFS 5474555991fdSmrg if test -z "$ac_cv_path_SED"; then 5475555991fdSmrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5476555991fdSmrg fi 5477126a8a12Smrgelse 5478555991fdSmrg ac_cv_path_SED=$SED 5479126a8a12Smrgfi 5480126a8a12Smrg 5481126a8a12Smrgfi 5482555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5483555991fdSmrg$as_echo "$ac_cv_path_SED" >&6; } 5484555991fdSmrg SED="$ac_cv_path_SED" 5485555991fdSmrg rm -f conftest.sed 5486555991fdSmrg 5487555991fdSmrgtest -z "$SED" && SED=sed 5488555991fdSmrgXsed="$SED -e 1s/^X//" 5489555991fdSmrg 5490555991fdSmrg 5491555991fdSmrg 5492555991fdSmrg 5493555991fdSmrg 5494555991fdSmrg 5495555991fdSmrg 5496555991fdSmrg 5497555991fdSmrg 5498555991fdSmrg 5499555991fdSmrg 5500555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5501555991fdSmrg$as_echo_n "checking for fgrep... " >&6; } 5502555991fdSmrgif ${ac_cv_path_FGREP+:} false; then : 5503d656433aSmrg $as_echo_n "(cached) " >&6 5504126a8a12Smrgelse 5505555991fdSmrg if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5506555991fdSmrg then ac_cv_path_FGREP="$GREP -F" 5507555991fdSmrg else 5508555991fdSmrg if test -z "$FGREP"; then 5509555991fdSmrg ac_path_FGREP_found=false 5510555991fdSmrg # Loop through the user's path and test for each of PROGNAME-LIST 5511555991fdSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5512555991fdSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5513126a8a12Smrgdo 5514126a8a12Smrg IFS=$as_save_IFS 5515126a8a12Smrg test -z "$as_dir" && as_dir=. 5516555991fdSmrg for ac_prog in fgrep; do 5517555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5518555991fdSmrg ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5519555991fdSmrg { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5520555991fdSmrg# Check for GNU ac_path_FGREP and select it if it is found. 5521555991fdSmrg # Check for GNU $ac_path_FGREP 5522555991fdSmrgcase `"$ac_path_FGREP" --version 2>&1` in 5523555991fdSmrg*GNU*) 5524555991fdSmrg ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5525555991fdSmrg*) 5526555991fdSmrg ac_count=0 5527555991fdSmrg $as_echo_n 0123456789 >"conftest.in" 5528555991fdSmrg while : 5529555991fdSmrg do 5530555991fdSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 5531555991fdSmrg mv "conftest.tmp" "conftest.in" 5532555991fdSmrg cp "conftest.in" "conftest.nl" 5533555991fdSmrg $as_echo 'FGREP' >> "conftest.nl" 5534555991fdSmrg "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5535555991fdSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5536555991fdSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 5537555991fdSmrg if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5538555991fdSmrg # Best one so far, save it but keep looking for a better one 5539555991fdSmrg ac_cv_path_FGREP="$ac_path_FGREP" 5540555991fdSmrg ac_path_FGREP_max=$ac_count 5541555991fdSmrg fi 5542555991fdSmrg # 10*(2^10) chars as input seems more than enough 5543555991fdSmrg test $ac_count -gt 10 && break 5544555991fdSmrg done 5545555991fdSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5546555991fdSmrgesac 5547126a8a12Smrg 5548555991fdSmrg $ac_path_FGREP_found && break 3 5549555991fdSmrg done 5550555991fdSmrg done 5551555991fdSmrg done 5552555991fdSmrgIFS=$as_save_IFS 5553555991fdSmrg if test -z "$ac_cv_path_FGREP"; then 5554555991fdSmrg as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5555555991fdSmrg fi 5556555991fdSmrgelse 5557555991fdSmrg ac_cv_path_FGREP=$FGREP 5558126a8a12Smrgfi 5559555991fdSmrg 5560555991fdSmrg fi 5561126a8a12Smrgfi 5562555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5563555991fdSmrg$as_echo "$ac_cv_path_FGREP" >&6; } 5564555991fdSmrg FGREP="$ac_cv_path_FGREP" 5565555991fdSmrg 5566555991fdSmrg 5567555991fdSmrgtest -z "$GREP" && GREP=grep 5568555991fdSmrg 5569555991fdSmrg 5570555991fdSmrg 5571555991fdSmrg 5572555991fdSmrg 5573555991fdSmrg 5574555991fdSmrg 5575555991fdSmrg 5576555991fdSmrg 5577555991fdSmrg 5578555991fdSmrg 5579555991fdSmrg 5580555991fdSmrg 5581555991fdSmrg 5582555991fdSmrg 5583555991fdSmrg 5584555991fdSmrg 5585555991fdSmrg 5586555991fdSmrg 5587555991fdSmrg# Check whether --with-gnu-ld was given. 5588555991fdSmrgif test "${with_gnu_ld+set}" = set; then : 5589555991fdSmrg withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5590126a8a12Smrgelse 5591555991fdSmrg with_gnu_ld=no 5592126a8a12Smrgfi 5593126a8a12Smrg 5594555991fdSmrgac_prog=ld 5595555991fdSmrgif test "$GCC" = yes; then 5596555991fdSmrg # Check if gcc -print-prog-name=ld gives a path. 5597555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5598555991fdSmrg$as_echo_n "checking for ld used by $CC... " >&6; } 5599555991fdSmrg case $host in 5600555991fdSmrg *-*-mingw*) 5601555991fdSmrg # gcc leaves a trailing carriage return which upsets mingw 5602555991fdSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5603555991fdSmrg *) 5604555991fdSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5605555991fdSmrg esac 5606555991fdSmrg case $ac_prog in 5607555991fdSmrg # Accept absolute paths. 5608555991fdSmrg [\\/]* | ?:[\\/]*) 5609555991fdSmrg re_direlt='/[^/][^/]*/\.\./' 5610555991fdSmrg # Canonicalize the pathname of ld 5611555991fdSmrg ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5612555991fdSmrg while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5613555991fdSmrg ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5614555991fdSmrg done 5615555991fdSmrg test -z "$LD" && LD="$ac_prog" 5616555991fdSmrg ;; 5617555991fdSmrg "") 5618555991fdSmrg # If it fails, then pretend we aren't using GCC. 5619555991fdSmrg ac_prog=ld 5620555991fdSmrg ;; 5621555991fdSmrg *) 5622555991fdSmrg # If it is relative, then search for the first ld in PATH. 5623555991fdSmrg with_gnu_ld=unknown 5624555991fdSmrg ;; 5625555991fdSmrg esac 5626555991fdSmrgelif test "$with_gnu_ld" = yes; then 5627555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5628555991fdSmrg$as_echo_n "checking for GNU ld... " >&6; } 5629126a8a12Smrgelse 5630555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5631555991fdSmrg$as_echo_n "checking for non-GNU ld... " >&6; } 5632126a8a12Smrgfi 5633555991fdSmrgif ${lt_cv_path_LD+:} false; then : 5634d656433aSmrg $as_echo_n "(cached) " >&6 5635d656433aSmrgelse 5636555991fdSmrg if test -z "$LD"; then 5637555991fdSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5638555991fdSmrg for ac_dir in $PATH; do 5639555991fdSmrg IFS="$lt_save_ifs" 5640555991fdSmrg test -z "$ac_dir" && ac_dir=. 5641555991fdSmrg if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5642555991fdSmrg lt_cv_path_LD="$ac_dir/$ac_prog" 5643555991fdSmrg # Check to see if the program is GNU ld. I'd rather use --version, 5644555991fdSmrg # but apparently some variants of GNU ld only accept -v. 5645555991fdSmrg # Break only if it was the GNU/non-GNU ld that we prefer. 5646555991fdSmrg case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5647555991fdSmrg *GNU* | *'with BFD'*) 5648555991fdSmrg test "$with_gnu_ld" != no && break 5649555991fdSmrg ;; 5650555991fdSmrg *) 5651555991fdSmrg test "$with_gnu_ld" != yes && break 5652555991fdSmrg ;; 5653555991fdSmrg esac 5654555991fdSmrg fi 5655555991fdSmrg done 5656555991fdSmrg IFS="$lt_save_ifs" 5657d656433aSmrgelse 5658555991fdSmrg lt_cv_path_LD="$LD" # Let the user override the test with a path. 5659d656433aSmrgfi 5660d656433aSmrgfi 5661555991fdSmrg 5662555991fdSmrgLD="$lt_cv_path_LD" 5663555991fdSmrgif test -n "$LD"; then 5664555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5665555991fdSmrg$as_echo "$LD" >&6; } 5666d656433aSmrgelse 5667555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5668d656433aSmrg$as_echo "no" >&6; } 5669d656433aSmrgfi 5670555991fdSmrgtest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5671555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5672555991fdSmrg$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5673555991fdSmrgif ${lt_cv_prog_gnu_ld+:} false; then : 5674555991fdSmrg $as_echo_n "(cached) " >&6 5675555991fdSmrgelse 5676555991fdSmrg # I'd rather use --version here, but apparently some GNU lds only accept -v. 5677555991fdSmrgcase `$LD -v 2>&1 </dev/null` in 5678555991fdSmrg*GNU* | *'with BFD'*) 5679555991fdSmrg lt_cv_prog_gnu_ld=yes 5680555991fdSmrg ;; 5681555991fdSmrg*) 5682555991fdSmrg lt_cv_prog_gnu_ld=no 5683555991fdSmrg ;; 5684555991fdSmrgesac 5685555991fdSmrgfi 5686555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5687555991fdSmrg$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5688555991fdSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld 5689126a8a12Smrg 5690126a8a12Smrg 5691555991fdSmrg 5692555991fdSmrg 5693555991fdSmrg 5694555991fdSmrg 5695555991fdSmrg 5696555991fdSmrg 5697555991fdSmrg 5698555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5699555991fdSmrg$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5700555991fdSmrgif ${lt_cv_path_NM+:} false; then : 5701d656433aSmrg $as_echo_n "(cached) " >&6 5702d656433aSmrgelse 5703555991fdSmrg if test -n "$NM"; then 5704555991fdSmrg # Let the user override the test. 5705555991fdSmrg lt_cv_path_NM="$NM" 5706d656433aSmrgelse 5707555991fdSmrg lt_nm_to_check="${ac_tool_prefix}nm" 5708555991fdSmrg if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5709555991fdSmrg lt_nm_to_check="$lt_nm_to_check nm" 5710d656433aSmrg fi 5711555991fdSmrg for lt_tmp_nm in $lt_nm_to_check; do 5712555991fdSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5713555991fdSmrg for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5714555991fdSmrg IFS="$lt_save_ifs" 5715555991fdSmrg test -z "$ac_dir" && ac_dir=. 5716555991fdSmrg tmp_nm="$ac_dir/$lt_tmp_nm" 5717555991fdSmrg if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5718555991fdSmrg # Check to see if the nm accepts a BSD-compat flag. 5719555991fdSmrg # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5720555991fdSmrg # nm: unknown option "B" ignored 5721555991fdSmrg # Tru64's nm complains that /dev/null is an invalid object file 5722555991fdSmrg case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5723555991fdSmrg */dev/null* | *'Invalid file or object type'*) 5724555991fdSmrg lt_cv_path_NM="$tmp_nm -B" 5725555991fdSmrg break 5726555991fdSmrg ;; 5727555991fdSmrg *) 5728555991fdSmrg case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5729555991fdSmrg */dev/null*) 5730555991fdSmrg lt_cv_path_NM="$tmp_nm -p" 5731555991fdSmrg break 5732555991fdSmrg ;; 5733555991fdSmrg *) 5734555991fdSmrg lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5735555991fdSmrg continue # so that we can try to find one that supports BSD flags 5736555991fdSmrg ;; 5737555991fdSmrg esac 5738555991fdSmrg ;; 5739555991fdSmrg esac 5740555991fdSmrg fi 5741555991fdSmrg done 5742555991fdSmrg IFS="$lt_save_ifs" 5743555991fdSmrg done 5744555991fdSmrg : ${lt_cv_path_NM=no} 5745d656433aSmrgfi 5746d656433aSmrgfi 5747555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5748555991fdSmrg$as_echo "$lt_cv_path_NM" >&6; } 5749555991fdSmrgif test "$lt_cv_path_NM" != "no"; then 5750555991fdSmrg NM="$lt_cv_path_NM" 5751126a8a12Smrgelse 5752555991fdSmrg # Didn't find any BSD compatible name lister, look for dumpbin. 5753555991fdSmrg if test -n "$DUMPBIN"; then : 5754555991fdSmrg # Let the user override the test. 5755d656433aSmrg else 5756d656433aSmrg if test -n "$ac_tool_prefix"; then 5757555991fdSmrg for ac_prog in dumpbin "link -dump" 5758555991fdSmrg do 5759555991fdSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5760555991fdSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 5761555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5762d656433aSmrg$as_echo_n "checking for $ac_word... " >&6; } 5763555991fdSmrgif ${ac_cv_prog_DUMPBIN+:} false; then : 5764d656433aSmrg $as_echo_n "(cached) " >&6 5765126a8a12Smrgelse 5766555991fdSmrg if test -n "$DUMPBIN"; then 5767555991fdSmrg ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5768d656433aSmrgelse 5769d656433aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5770d656433aSmrgfor as_dir in $PATH 5771d656433aSmrgdo 5772d656433aSmrg IFS=$as_save_IFS 5773d656433aSmrg test -z "$as_dir" && as_dir=. 5774555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5775d656433aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5776555991fdSmrg ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5777555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5778d656433aSmrg break 2 5779d656433aSmrg fi 5780d656433aSmrgdone 5781555991fdSmrg done 5782d656433aSmrgIFS=$as_save_IFS 5783126a8a12Smrg 5784d656433aSmrgfi 5785d656433aSmrgfi 5786555991fdSmrgDUMPBIN=$ac_cv_prog_DUMPBIN 5787555991fdSmrgif test -n "$DUMPBIN"; then 5788555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5789555991fdSmrg$as_echo "$DUMPBIN" >&6; } 5790126a8a12Smrgelse 5791555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5792d656433aSmrg$as_echo "no" >&6; } 5793d656433aSmrgfi 5794126a8a12Smrg 5795126a8a12Smrg 5796555991fdSmrg test -n "$DUMPBIN" && break 5797555991fdSmrg done 5798126a8a12Smrgfi 5799555991fdSmrgif test -z "$DUMPBIN"; then 5800555991fdSmrg ac_ct_DUMPBIN=$DUMPBIN 5801555991fdSmrg for ac_prog in dumpbin "link -dump" 5802555991fdSmrgdo 5803555991fdSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 5804555991fdSmrgset dummy $ac_prog; ac_word=$2 5805555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5806d656433aSmrg$as_echo_n "checking for $ac_word... " >&6; } 5807555991fdSmrgif ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5808d656433aSmrg $as_echo_n "(cached) " >&6 5809d656433aSmrgelse 5810555991fdSmrg if test -n "$ac_ct_DUMPBIN"; then 5811555991fdSmrg ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5812d656433aSmrgelse 5813d656433aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5814d656433aSmrgfor as_dir in $PATH 5815d656433aSmrgdo 5816d656433aSmrg IFS=$as_save_IFS 5817d656433aSmrg test -z "$as_dir" && as_dir=. 5818555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5819d656433aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5820555991fdSmrg ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5821555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5822d656433aSmrg break 2 5823d656433aSmrg fi 5824d656433aSmrgdone 5825555991fdSmrg done 5826d656433aSmrgIFS=$as_save_IFS 5827126a8a12Smrg 5828d656433aSmrgfi 5829d656433aSmrgfi 5830555991fdSmrgac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5831555991fdSmrgif test -n "$ac_ct_DUMPBIN"; then 5832555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5833555991fdSmrg$as_echo "$ac_ct_DUMPBIN" >&6; } 5834126a8a12Smrgelse 5835555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5836d656433aSmrg$as_echo "no" >&6; } 5837126a8a12Smrgfi 5838126a8a12Smrg 5839555991fdSmrg 5840555991fdSmrg test -n "$ac_ct_DUMPBIN" && break 5841555991fdSmrgdone 5842555991fdSmrg 5843555991fdSmrg if test "x$ac_ct_DUMPBIN" = x; then 5844555991fdSmrg DUMPBIN=":" 5845126a8a12Smrg else 5846d656433aSmrg case $cross_compiling:$ac_tool_warned in 5847d656433aSmrgyes:) 5848555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5849d656433aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5850d656433aSmrgac_tool_warned=yes ;; 5851d656433aSmrgesac 5852555991fdSmrg DUMPBIN=$ac_ct_DUMPBIN 5853126a8a12Smrg fi 5854126a8a12Smrgfi 5855126a8a12Smrg 5856555991fdSmrg case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5857555991fdSmrg *COFF*) 5858555991fdSmrg DUMPBIN="$DUMPBIN -symbols" 5859555991fdSmrg ;; 5860555991fdSmrg *) 5861555991fdSmrg DUMPBIN=: 5862555991fdSmrg ;; 5863555991fdSmrg esac 5864d656433aSmrg fi 5865126a8a12Smrg 5866555991fdSmrg if test "$DUMPBIN" != ":"; then 5867555991fdSmrg NM="$DUMPBIN" 5868d656433aSmrg fi 5869d656433aSmrgfi 5870555991fdSmrgtest -z "$NM" && NM=nm 5871555991fdSmrg 5872555991fdSmrg 5873126a8a12Smrg 5874126a8a12Smrg 5875126a8a12Smrg 5876126a8a12Smrg 5877555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5878555991fdSmrg$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5879555991fdSmrgif ${lt_cv_nm_interface+:} false; then : 5880555991fdSmrg $as_echo_n "(cached) " >&6 5881555991fdSmrgelse 5882555991fdSmrg lt_cv_nm_interface="BSD nm" 5883555991fdSmrg echo "int some_variable = 0;" > conftest.$ac_ext 5884555991fdSmrg (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5885555991fdSmrg (eval "$ac_compile" 2>conftest.err) 5886555991fdSmrg cat conftest.err >&5 5887555991fdSmrg (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5888555991fdSmrg (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5889555991fdSmrg cat conftest.err >&5 5890555991fdSmrg (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5891555991fdSmrg cat conftest.out >&5 5892555991fdSmrg if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5893555991fdSmrg lt_cv_nm_interface="MS dumpbin" 5894555991fdSmrg fi 5895555991fdSmrg rm -f conftest* 5896555991fdSmrgfi 5897555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5898555991fdSmrg$as_echo "$lt_cv_nm_interface" >&6; } 5899126a8a12Smrg 5900555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5901555991fdSmrg$as_echo_n "checking whether ln -s works... " >&6; } 5902555991fdSmrgLN_S=$as_ln_s 5903555991fdSmrgif test "$LN_S" = "ln -s"; then 5904555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5905555991fdSmrg$as_echo "yes" >&6; } 5906555991fdSmrgelse 5907555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5908555991fdSmrg$as_echo "no, using $LN_S" >&6; } 5909555991fdSmrgfi 5910126a8a12Smrg 5911555991fdSmrg# find the maximum length of command line arguments 5912555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5913555991fdSmrg$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5914555991fdSmrgif ${lt_cv_sys_max_cmd_len+:} false; then : 5915555991fdSmrg $as_echo_n "(cached) " >&6 5916555991fdSmrgelse 5917555991fdSmrg i=0 5918555991fdSmrg teststring="ABCD" 5919126a8a12Smrg 5920555991fdSmrg case $build_os in 5921555991fdSmrg msdosdjgpp*) 5922555991fdSmrg # On DJGPP, this test can blow up pretty badly due to problems in libc 5923555991fdSmrg # (any single argument exceeding 2000 bytes causes a buffer overrun 5924555991fdSmrg # during glob expansion). Even if it were fixed, the result of this 5925555991fdSmrg # check would be larger than it should be. 5926555991fdSmrg lt_cv_sys_max_cmd_len=12288; # 12K is about right 5927555991fdSmrg ;; 5928126a8a12Smrg 5929555991fdSmrg gnu*) 5930555991fdSmrg # Under GNU Hurd, this test is not required because there is 5931555991fdSmrg # no limit to the length of command line arguments. 5932555991fdSmrg # Libtool will interpret -1 as no limit whatsoever 5933555991fdSmrg lt_cv_sys_max_cmd_len=-1; 5934555991fdSmrg ;; 5935126a8a12Smrg 5936555991fdSmrg cygwin* | mingw* | cegcc*) 5937555991fdSmrg # On Win9x/ME, this test blows up -- it succeeds, but takes 5938555991fdSmrg # about 5 minutes as the teststring grows exponentially. 5939555991fdSmrg # Worse, since 9x/ME are not pre-emptively multitasking, 5940555991fdSmrg # you end up with a "frozen" computer, even though with patience 5941555991fdSmrg # the test eventually succeeds (with a max line length of 256k). 5942555991fdSmrg # Instead, let's just punt: use the minimum linelength reported by 5943555991fdSmrg # all of the supported platforms: 8192 (on NT/2K/XP). 5944555991fdSmrg lt_cv_sys_max_cmd_len=8192; 5945555991fdSmrg ;; 5946126a8a12Smrg 5947555991fdSmrg mint*) 5948555991fdSmrg # On MiNT this can take a long time and run out of memory. 5949555991fdSmrg lt_cv_sys_max_cmd_len=8192; 5950555991fdSmrg ;; 5951126a8a12Smrg 5952555991fdSmrg amigaos*) 5953555991fdSmrg # On AmigaOS with pdksh, this test takes hours, literally. 5954555991fdSmrg # So we just punt and use a minimum line length of 8192. 5955555991fdSmrg lt_cv_sys_max_cmd_len=8192; 5956555991fdSmrg ;; 5957126a8a12Smrg 5958555991fdSmrg netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5959555991fdSmrg # This has been around since 386BSD, at least. Likely further. 5960555991fdSmrg if test -x /sbin/sysctl; then 5961555991fdSmrg lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5962555991fdSmrg elif test -x /usr/sbin/sysctl; then 5963555991fdSmrg lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5964555991fdSmrg else 5965555991fdSmrg lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5966555991fdSmrg fi 5967555991fdSmrg # And add a safety zone 5968555991fdSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5969555991fdSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5970555991fdSmrg ;; 5971126a8a12Smrg 5972555991fdSmrg interix*) 5973555991fdSmrg # We know the value 262144 and hardcode it with a safety zone (like BSD) 5974555991fdSmrg lt_cv_sys_max_cmd_len=196608 5975555991fdSmrg ;; 5976126a8a12Smrg 5977555991fdSmrg osf*) 5978555991fdSmrg # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5979555991fdSmrg # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5980555991fdSmrg # nice to cause kernel panics so lets avoid the loop below. 5981555991fdSmrg # First set a reasonable default. 5982555991fdSmrg lt_cv_sys_max_cmd_len=16384 5983555991fdSmrg # 5984555991fdSmrg if test -x /sbin/sysconfig; then 5985555991fdSmrg case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5986555991fdSmrg *1*) lt_cv_sys_max_cmd_len=-1 ;; 5987555991fdSmrg esac 5988555991fdSmrg fi 5989555991fdSmrg ;; 5990555991fdSmrg sco3.2v5*) 5991555991fdSmrg lt_cv_sys_max_cmd_len=102400 5992555991fdSmrg ;; 5993555991fdSmrg sysv5* | sco5v6* | sysv4.2uw2*) 5994555991fdSmrg kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5995555991fdSmrg if test -n "$kargmax"; then 5996555991fdSmrg lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5997555991fdSmrg else 5998555991fdSmrg lt_cv_sys_max_cmd_len=32768 5999555991fdSmrg fi 6000555991fdSmrg ;; 6001555991fdSmrg *) 6002555991fdSmrg lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6003555991fdSmrg if test -n "$lt_cv_sys_max_cmd_len"; then 6004555991fdSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6005555991fdSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6006555991fdSmrg else 6007555991fdSmrg # Make teststring a little bigger before we do anything with it. 6008555991fdSmrg # a 1K string should be a reasonable start. 6009555991fdSmrg for i in 1 2 3 4 5 6 7 8 ; do 6010555991fdSmrg teststring=$teststring$teststring 6011555991fdSmrg done 6012555991fdSmrg SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6013555991fdSmrg # If test is not a shell built-in, we'll probably end up computing a 6014555991fdSmrg # maximum length that is only half of the actual maximum length, but 6015555991fdSmrg # we can't tell. 6016555991fdSmrg while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 6017555991fdSmrg = "X$teststring$teststring"; } >/dev/null 2>&1 && 6018555991fdSmrg test $i != 17 # 1/2 MB should be enough 6019555991fdSmrg do 6020555991fdSmrg i=`expr $i + 1` 6021555991fdSmrg teststring=$teststring$teststring 6022555991fdSmrg done 6023555991fdSmrg # Only check the string length outside the loop. 6024555991fdSmrg lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6025555991fdSmrg teststring= 6026555991fdSmrg # Add a significant safety factor because C++ compilers can tack on 6027555991fdSmrg # massive amounts of additional arguments before passing them to the 6028555991fdSmrg # linker. It appears as though 1/2 is a usable value. 6029555991fdSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6030555991fdSmrg fi 6031555991fdSmrg ;; 6032555991fdSmrg esac 6033126a8a12Smrg 6034555991fdSmrgfi 6035126a8a12Smrg 6036555991fdSmrgif test -n $lt_cv_sys_max_cmd_len ; then 6037555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6038555991fdSmrg$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6039555991fdSmrgelse 6040555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6041555991fdSmrg$as_echo "none" >&6; } 6042555991fdSmrgfi 6043555991fdSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len 6044126a8a12Smrg 6045126a8a12Smrg 6046126a8a12Smrg 6047126a8a12Smrg 6048126a8a12Smrg 6049126a8a12Smrg 6050555991fdSmrg: ${CP="cp -f"} 6051555991fdSmrg: ${MV="mv -f"} 6052555991fdSmrg: ${RM="rm -f"} 6053126a8a12Smrg 6054555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6055555991fdSmrg$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6056555991fdSmrg# Try some XSI features 6057555991fdSmrgxsi_shell=no 6058555991fdSmrg( _lt_dummy="a/b/c" 6059555991fdSmrg test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6060555991fdSmrg = c,a/b,, \ 6061555991fdSmrg && eval 'test $(( 1 + 1 )) -eq 2 \ 6062555991fdSmrg && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6063555991fdSmrg && xsi_shell=yes 6064555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6065555991fdSmrg$as_echo "$xsi_shell" >&6; } 6066126a8a12Smrg 6067126a8a12Smrg 6068555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6069555991fdSmrg$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6070555991fdSmrglt_shell_append=no 6071555991fdSmrg( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6072555991fdSmrg >/dev/null 2>&1 \ 6073555991fdSmrg && lt_shell_append=yes 6074555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6075555991fdSmrg$as_echo "$lt_shell_append" >&6; } 6076126a8a12Smrg 6077d656433aSmrg 6078555991fdSmrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6079555991fdSmrg lt_unset=unset 6080d656433aSmrgelse 6081555991fdSmrg lt_unset=false 6082d656433aSmrgfi 6083126a8a12Smrg 6084126a8a12Smrg 6085555991fdSmrg 6086555991fdSmrg 6087555991fdSmrg 6088555991fdSmrg# test EBCDIC or ASCII 6089555991fdSmrgcase `echo X|tr X '\101'` in 6090555991fdSmrg A) # ASCII based system 6091555991fdSmrg # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6092555991fdSmrg lt_SP2NL='tr \040 \012' 6093555991fdSmrg lt_NL2SP='tr \015\012 \040\040' 6094555991fdSmrg ;; 6095555991fdSmrg *) # EBCDIC based system 6096555991fdSmrg lt_SP2NL='tr \100 \n' 6097555991fdSmrg lt_NL2SP='tr \r\n \100\100' 6098555991fdSmrg ;; 6099d656433aSmrgesac 6100126a8a12Smrg 6101126a8a12Smrg 6102126a8a12Smrg 6103555991fdSmrg 6104555991fdSmrg 6105555991fdSmrg 6106555991fdSmrg 6107555991fdSmrg 6108555991fdSmrg 6109555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6110555991fdSmrg$as_echo_n "checking for $LD option to reload object files... " >&6; } 6111555991fdSmrgif ${lt_cv_ld_reload_flag+:} false; then : 6112555991fdSmrg $as_echo_n "(cached) " >&6 6113555991fdSmrgelse 6114555991fdSmrg lt_cv_ld_reload_flag='-r' 6115d656433aSmrgfi 6116555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6117555991fdSmrg$as_echo "$lt_cv_ld_reload_flag" >&6; } 6118555991fdSmrgreload_flag=$lt_cv_ld_reload_flag 6119555991fdSmrgcase $reload_flag in 6120555991fdSmrg"" | " "*) ;; 6121555991fdSmrg*) reload_flag=" $reload_flag" ;; 6122555991fdSmrgesac 6123555991fdSmrgreload_cmds='$LD$reload_flag -o $output$reload_objs' 6124555991fdSmrgcase $host_os in 6125555991fdSmrg darwin*) 6126555991fdSmrg if test "$GCC" = yes; then 6127555991fdSmrg reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6128d656433aSmrg else 6129555991fdSmrg reload_cmds='$LD$reload_flag -o $output$reload_objs' 6130d656433aSmrg fi 6131d656433aSmrg ;; 6132555991fdSmrgesac 6133126a8a12Smrg 6134555991fdSmrg 6135555991fdSmrg 6136555991fdSmrg 6137555991fdSmrg 6138555991fdSmrg 6139555991fdSmrg 6140555991fdSmrg 6141555991fdSmrg 6142555991fdSmrgif test -n "$ac_tool_prefix"; then 6143555991fdSmrg # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6144555991fdSmrgset dummy ${ac_tool_prefix}objdump; ac_word=$2 6145555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6146555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 6147555991fdSmrgif ${ac_cv_prog_OBJDUMP+:} false; then : 6148d656433aSmrg $as_echo_n "(cached) " >&6 6149d656433aSmrgelse 6150555991fdSmrg if test -n "$OBJDUMP"; then 6151555991fdSmrg ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6152d656433aSmrgelse 6153555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6154555991fdSmrgfor as_dir in $PATH 6155555991fdSmrgdo 6156555991fdSmrg IFS=$as_save_IFS 6157555991fdSmrg test -z "$as_dir" && as_dir=. 6158555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6159555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6160555991fdSmrg ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6161555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6162555991fdSmrg break 2 6163555991fdSmrg fi 6164555991fdSmrgdone 6165555991fdSmrg done 6166555991fdSmrgIFS=$as_save_IFS 6167126a8a12Smrg 6168d656433aSmrgfi 6169555991fdSmrgfi 6170555991fdSmrgOBJDUMP=$ac_cv_prog_OBJDUMP 6171555991fdSmrgif test -n "$OBJDUMP"; then 6172555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6173555991fdSmrg$as_echo "$OBJDUMP" >&6; } 6174d656433aSmrgelse 6175555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6176555991fdSmrg$as_echo "no" >&6; } 6177d656433aSmrgfi 6178126a8a12Smrg 6179126a8a12Smrg 6180d656433aSmrgfi 6181555991fdSmrgif test -z "$ac_cv_prog_OBJDUMP"; then 6182555991fdSmrg ac_ct_OBJDUMP=$OBJDUMP 6183555991fdSmrg # Extract the first word of "objdump", so it can be a program name with args. 6184555991fdSmrgset dummy objdump; ac_word=$2 6185555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6186555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 6187555991fdSmrgif ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6188555991fdSmrg $as_echo_n "(cached) " >&6 6189555991fdSmrgelse 6190555991fdSmrg if test -n "$ac_ct_OBJDUMP"; then 6191555991fdSmrg ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6192555991fdSmrgelse 6193555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6194555991fdSmrgfor as_dir in $PATH 6195555991fdSmrgdo 6196555991fdSmrg IFS=$as_save_IFS 6197555991fdSmrg test -z "$as_dir" && as_dir=. 6198555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6199555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6200555991fdSmrg ac_cv_prog_ac_ct_OBJDUMP="objdump" 6201555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6202555991fdSmrg break 2 6203555991fdSmrg fi 6204555991fdSmrgdone 6205555991fdSmrg done 6206555991fdSmrgIFS=$as_save_IFS 6207126a8a12Smrg 6208d656433aSmrgfi 6209555991fdSmrgfi 6210555991fdSmrgac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6211555991fdSmrgif test -n "$ac_ct_OBJDUMP"; then 6212555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6213555991fdSmrg$as_echo "$ac_ct_OBJDUMP" >&6; } 6214d656433aSmrgelse 6215555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6216555991fdSmrg$as_echo "no" >&6; } 6217d656433aSmrgfi 6218555991fdSmrg 6219555991fdSmrg if test "x$ac_ct_OBJDUMP" = x; then 6220555991fdSmrg OBJDUMP="false" 6221555991fdSmrg else 6222555991fdSmrg case $cross_compiling:$ac_tool_warned in 6223555991fdSmrgyes:) 6224555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6225555991fdSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6226555991fdSmrgac_tool_warned=yes ;; 6227d656433aSmrgesac 6228555991fdSmrg OBJDUMP=$ac_ct_OBJDUMP 6229555991fdSmrg fi 6230d656433aSmrgelse 6231555991fdSmrg OBJDUMP="$ac_cv_prog_OBJDUMP" 6232d656433aSmrgfi 6233126a8a12Smrg 6234555991fdSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump 6235555991fdSmrg 6236555991fdSmrg 6237555991fdSmrg 6238555991fdSmrg 6239555991fdSmrg 6240555991fdSmrg 6241555991fdSmrg 6242555991fdSmrg 6243555991fdSmrg 6244555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6245555991fdSmrg$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6246555991fdSmrgif ${lt_cv_deplibs_check_method+:} false; then : 6247555991fdSmrg $as_echo_n "(cached) " >&6 6248555991fdSmrgelse 6249555991fdSmrg lt_cv_file_magic_cmd='$MAGIC_CMD' 6250555991fdSmrglt_cv_file_magic_test_file= 6251555991fdSmrglt_cv_deplibs_check_method='unknown' 6252555991fdSmrg# Need to set the preceding variable on all platforms that support 6253555991fdSmrg# interlibrary dependencies. 6254555991fdSmrg# 'none' -- dependencies not supported. 6255555991fdSmrg# `unknown' -- same as none, but documents that we really don't know. 6256555991fdSmrg# 'pass_all' -- all dependencies passed with no checks. 6257555991fdSmrg# 'test_compile' -- check by making test program. 6258555991fdSmrg# 'file_magic [[regex]]' -- check by looking for files in library path 6259555991fdSmrg# which responds to the $file_magic_cmd with a given extended regex. 6260555991fdSmrg# If you have `file' or equivalent on your system and you're not sure 6261555991fdSmrg# whether `pass_all' will *always* work, you probably want this one. 6262555991fdSmrg 6263555991fdSmrgcase $host_os in 6264555991fdSmrgaix[4-9]*) 6265555991fdSmrg lt_cv_deplibs_check_method=pass_all 6266555991fdSmrg ;; 6267555991fdSmrg 6268555991fdSmrgbeos*) 6269555991fdSmrg lt_cv_deplibs_check_method=pass_all 6270555991fdSmrg ;; 6271126a8a12Smrg 6272555991fdSmrgbsdi[45]*) 6273555991fdSmrg lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6274555991fdSmrg lt_cv_file_magic_cmd='/usr/bin/file -L' 6275555991fdSmrg lt_cv_file_magic_test_file=/shlib/libc.so 6276555991fdSmrg ;; 6277126a8a12Smrg 6278555991fdSmrgcygwin*) 6279555991fdSmrg # func_win32_libid is a shell function defined in ltmain.sh 6280555991fdSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6281555991fdSmrg lt_cv_file_magic_cmd='func_win32_libid' 6282555991fdSmrg ;; 6283126a8a12Smrg 6284555991fdSmrgmingw* | pw32*) 6285555991fdSmrg # Base MSYS/MinGW do not provide the 'file' command needed by 6286555991fdSmrg # func_win32_libid shell function, so use a weaker test based on 'objdump', 6287555991fdSmrg # unless we find 'file', for example because we are cross-compiling. 6288555991fdSmrg # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6289555991fdSmrg if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6290555991fdSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6291555991fdSmrg lt_cv_file_magic_cmd='func_win32_libid' 6292555991fdSmrg else 6293555991fdSmrg # Keep this pattern in sync with the one in func_win32_libid. 6294555991fdSmrg lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6295555991fdSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 6296555991fdSmrg fi 6297555991fdSmrg ;; 6298126a8a12Smrg 6299555991fdSmrgcegcc*) 6300555991fdSmrg # use the weaker test based on 'objdump'. See mingw*. 6301555991fdSmrg lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6302555991fdSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 6303555991fdSmrg ;; 6304126a8a12Smrg 6305555991fdSmrgdarwin* | rhapsody*) 6306555991fdSmrg lt_cv_deplibs_check_method=pass_all 6307555991fdSmrg ;; 6308126a8a12Smrg 6309555991fdSmrgfreebsd* | dragonfly*) 6310555991fdSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6311555991fdSmrg case $host_cpu in 6312555991fdSmrg i*86 ) 6313555991fdSmrg # Not sure whether the presence of OpenBSD here was a mistake. 6314555991fdSmrg # Let's accept both of them until this is cleared up. 6315555991fdSmrg lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6316555991fdSmrg lt_cv_file_magic_cmd=/usr/bin/file 6317555991fdSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6318555991fdSmrg ;; 6319555991fdSmrg esac 6320555991fdSmrg else 6321555991fdSmrg lt_cv_deplibs_check_method=pass_all 6322555991fdSmrg fi 6323555991fdSmrg ;; 6324126a8a12Smrg 6325555991fdSmrggnu*) 6326555991fdSmrg lt_cv_deplibs_check_method=pass_all 6327555991fdSmrg ;; 6328126a8a12Smrg 6329555991fdSmrghaiku*) 6330555991fdSmrg lt_cv_deplibs_check_method=pass_all 6331555991fdSmrg ;; 6332126a8a12Smrg 6333555991fdSmrghpux10.20* | hpux11*) 6334555991fdSmrg lt_cv_file_magic_cmd=/usr/bin/file 6335555991fdSmrg case $host_cpu in 6336555991fdSmrg ia64*) 6337555991fdSmrg lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6338555991fdSmrg lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6339555991fdSmrg ;; 6340555991fdSmrg hppa*64*) 6341555991fdSmrg 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]' 6342555991fdSmrg lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6343555991fdSmrg ;; 6344555991fdSmrg *) 6345555991fdSmrg lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6346555991fdSmrg lt_cv_file_magic_test_file=/usr/lib/libc.sl 6347555991fdSmrg ;; 6348555991fdSmrg esac 6349555991fdSmrg ;; 6350126a8a12Smrg 6351555991fdSmrginterix[3-9]*) 6352555991fdSmrg # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6353555991fdSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6354555991fdSmrg ;; 6355126a8a12Smrg 6356555991fdSmrgirix5* | irix6* | nonstopux*) 6357555991fdSmrg case $LD in 6358555991fdSmrg *-32|*"-32 ") libmagic=32-bit;; 6359555991fdSmrg *-n32|*"-n32 ") libmagic=N32;; 6360555991fdSmrg *-64|*"-64 ") libmagic=64-bit;; 6361555991fdSmrg *) libmagic=never-match;; 6362555991fdSmrg esac 6363555991fdSmrg lt_cv_deplibs_check_method=pass_all 6364555991fdSmrg ;; 6365126a8a12Smrg 6366555991fdSmrg# This must be Linux ELF. 6367555991fdSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu) 6368555991fdSmrg lt_cv_deplibs_check_method=pass_all 6369555991fdSmrg ;; 6370126a8a12Smrg 6371555991fdSmrgnetbsd*) 6372555991fdSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6373555991fdSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6374555991fdSmrg else 6375555991fdSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6376555991fdSmrg fi 6377555991fdSmrg ;; 6378126a8a12Smrg 6379555991fdSmrgnewos6*) 6380555991fdSmrg lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6381555991fdSmrg lt_cv_file_magic_cmd=/usr/bin/file 6382555991fdSmrg lt_cv_file_magic_test_file=/usr/lib/libnls.so 6383555991fdSmrg ;; 6384126a8a12Smrg 6385555991fdSmrg*nto* | *qnx*) 6386555991fdSmrg lt_cv_deplibs_check_method=pass_all 6387555991fdSmrg ;; 6388d656433aSmrg 6389555991fdSmrgopenbsd*) 6390555991fdSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6391555991fdSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6392555991fdSmrg else 6393555991fdSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6394555991fdSmrg fi 6395555991fdSmrg ;; 6396126a8a12Smrg 6397555991fdSmrgosf3* | osf4* | osf5*) 6398555991fdSmrg lt_cv_deplibs_check_method=pass_all 6399555991fdSmrg ;; 6400126a8a12Smrg 6401555991fdSmrgrdos*) 6402555991fdSmrg lt_cv_deplibs_check_method=pass_all 6403555991fdSmrg ;; 6404126a8a12Smrg 6405555991fdSmrgsolaris*) 6406555991fdSmrg lt_cv_deplibs_check_method=pass_all 6407555991fdSmrg ;; 6408126a8a12Smrg 6409555991fdSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6410555991fdSmrg lt_cv_deplibs_check_method=pass_all 6411555991fdSmrg ;; 6412555991fdSmrg 6413555991fdSmrgsysv4 | sysv4.3*) 6414555991fdSmrg case $host_vendor in 6415555991fdSmrg motorola) 6416555991fdSmrg 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]' 6417555991fdSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6418555991fdSmrg ;; 6419555991fdSmrg ncr) 6420555991fdSmrg lt_cv_deplibs_check_method=pass_all 6421555991fdSmrg ;; 6422555991fdSmrg sequent) 6423555991fdSmrg lt_cv_file_magic_cmd='/bin/file' 6424555991fdSmrg lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6425555991fdSmrg ;; 6426555991fdSmrg sni) 6427555991fdSmrg lt_cv_file_magic_cmd='/bin/file' 6428555991fdSmrg lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6429555991fdSmrg lt_cv_file_magic_test_file=/lib/libc.so 6430555991fdSmrg ;; 6431555991fdSmrg siemens) 6432555991fdSmrg lt_cv_deplibs_check_method=pass_all 6433555991fdSmrg ;; 6434555991fdSmrg pc) 6435555991fdSmrg lt_cv_deplibs_check_method=pass_all 6436555991fdSmrg ;; 6437555991fdSmrg esac 6438555991fdSmrg ;; 6439126a8a12Smrg 6440555991fdSmrgtpf*) 6441555991fdSmrg lt_cv_deplibs_check_method=pass_all 6442555991fdSmrg ;; 6443555991fdSmrgesac 6444126a8a12Smrg 6445126a8a12Smrgfi 6446555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6447555991fdSmrg$as_echo "$lt_cv_deplibs_check_method" >&6; } 6448555991fdSmrgfile_magic_cmd=$lt_cv_file_magic_cmd 6449555991fdSmrgdeplibs_check_method=$lt_cv_deplibs_check_method 6450555991fdSmrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown 6451126a8a12Smrg 6452126a8a12Smrg 6453126a8a12Smrg 6454126a8a12Smrg 6455126a8a12Smrg 6456126a8a12Smrg 6457126a8a12Smrg 6458126a8a12Smrg 6459126a8a12Smrg 6460126a8a12Smrg 6461126a8a12Smrg 6462126a8a12Smrg 6463555991fdSmrgif test -n "$ac_tool_prefix"; then 6464555991fdSmrg # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6465555991fdSmrgset dummy ${ac_tool_prefix}ar; ac_word=$2 6466555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6467555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 6468555991fdSmrgif ${ac_cv_prog_AR+:} false; then : 6469d656433aSmrg $as_echo_n "(cached) " >&6 6470d656433aSmrgelse 6471555991fdSmrg if test -n "$AR"; then 6472555991fdSmrg ac_cv_prog_AR="$AR" # Let the user override the test. 6473d656433aSmrgelse 6474555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6475555991fdSmrgfor as_dir in $PATH 6476555991fdSmrgdo 6477555991fdSmrg IFS=$as_save_IFS 6478555991fdSmrg test -z "$as_dir" && as_dir=. 6479555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6480555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6481555991fdSmrg ac_cv_prog_AR="${ac_tool_prefix}ar" 6482555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6483555991fdSmrg break 2 6484555991fdSmrg fi 6485555991fdSmrgdone 6486555991fdSmrg done 6487555991fdSmrgIFS=$as_save_IFS 6488126a8a12Smrg 6489d656433aSmrgfi 6490d656433aSmrgfi 6491555991fdSmrgAR=$ac_cv_prog_AR 6492555991fdSmrgif test -n "$AR"; then 6493555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6494555991fdSmrg$as_echo "$AR" >&6; } 6495555991fdSmrgelse 6496555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6497555991fdSmrg$as_echo "no" >&6; } 6498d656433aSmrgfi 6499126a8a12Smrg 6500126a8a12Smrg 6501555991fdSmrgfi 6502555991fdSmrgif test -z "$ac_cv_prog_AR"; then 6503555991fdSmrg ac_ct_AR=$AR 6504555991fdSmrg # Extract the first word of "ar", so it can be a program name with args. 6505555991fdSmrgset dummy ar; ac_word=$2 6506555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6507555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 6508555991fdSmrgif ${ac_cv_prog_ac_ct_AR+:} false; then : 6509d656433aSmrg $as_echo_n "(cached) " >&6 6510d656433aSmrgelse 6511555991fdSmrg if test -n "$ac_ct_AR"; then 6512555991fdSmrg ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6513d656433aSmrgelse 6514555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6515555991fdSmrgfor as_dir in $PATH 6516555991fdSmrgdo 6517555991fdSmrg IFS=$as_save_IFS 6518555991fdSmrg test -z "$as_dir" && as_dir=. 6519555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6520555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6521555991fdSmrg ac_cv_prog_ac_ct_AR="ar" 6522555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6523555991fdSmrg break 2 6524555991fdSmrg fi 6525555991fdSmrgdone 6526555991fdSmrg done 6527555991fdSmrgIFS=$as_save_IFS 6528126a8a12Smrg 6529d656433aSmrgfi 6530d656433aSmrgfi 6531555991fdSmrgac_ct_AR=$ac_cv_prog_ac_ct_AR 6532555991fdSmrgif test -n "$ac_ct_AR"; then 6533555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6534555991fdSmrg$as_echo "$ac_ct_AR" >&6; } 6535555991fdSmrgelse 6536555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6537555991fdSmrg$as_echo "no" >&6; } 6538d656433aSmrgfi 6539126a8a12Smrg 6540555991fdSmrg if test "x$ac_ct_AR" = x; then 6541555991fdSmrg AR="false" 6542555991fdSmrg else 6543555991fdSmrg case $cross_compiling:$ac_tool_warned in 6544555991fdSmrgyes:) 6545555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6546555991fdSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6547555991fdSmrgac_tool_warned=yes ;; 6548555991fdSmrgesac 6549555991fdSmrg AR=$ac_ct_AR 6550555991fdSmrg fi 6551555991fdSmrgelse 6552555991fdSmrg AR="$ac_cv_prog_AR" 6553555991fdSmrgfi 6554126a8a12Smrg 6555555991fdSmrgtest -z "$AR" && AR=ar 6556555991fdSmrgtest -z "$AR_FLAGS" && AR_FLAGS=cru 6557126a8a12Smrg 6558126a8a12Smrg 6559126a8a12Smrg 6560126a8a12Smrg 6561126a8a12Smrg 6562126a8a12Smrg 6563126a8a12Smrg 6564126a8a12Smrg 6565126a8a12Smrg 6566126a8a12Smrg 6567126a8a12Smrg 6568555991fdSmrgif test -n "$ac_tool_prefix"; then 6569555991fdSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6570555991fdSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 6571555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6572555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 6573555991fdSmrgif ${ac_cv_prog_STRIP+:} false; then : 6574555991fdSmrg $as_echo_n "(cached) " >&6 6575555991fdSmrgelse 6576555991fdSmrg if test -n "$STRIP"; then 6577555991fdSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6578555991fdSmrgelse 6579555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6580555991fdSmrgfor as_dir in $PATH 6581555991fdSmrgdo 6582555991fdSmrg IFS=$as_save_IFS 6583555991fdSmrg test -z "$as_dir" && as_dir=. 6584555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6585555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6586555991fdSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6587555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6588555991fdSmrg break 2 6589555991fdSmrg fi 6590555991fdSmrgdone 6591555991fdSmrg done 6592555991fdSmrgIFS=$as_save_IFS 6593126a8a12Smrg 6594555991fdSmrgfi 6595555991fdSmrgfi 6596555991fdSmrgSTRIP=$ac_cv_prog_STRIP 6597555991fdSmrgif test -n "$STRIP"; then 6598555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6599555991fdSmrg$as_echo "$STRIP" >&6; } 6600555991fdSmrgelse 6601555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6602555991fdSmrg$as_echo "no" >&6; } 6603555991fdSmrgfi 6604126a8a12Smrg 6605126a8a12Smrg 6606555991fdSmrgfi 6607555991fdSmrgif test -z "$ac_cv_prog_STRIP"; then 6608555991fdSmrg ac_ct_STRIP=$STRIP 6609555991fdSmrg # Extract the first word of "strip", so it can be a program name with args. 6610555991fdSmrgset dummy strip; ac_word=$2 6611555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6612555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 6613555991fdSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6614555991fdSmrg $as_echo_n "(cached) " >&6 6615555991fdSmrgelse 6616555991fdSmrg if test -n "$ac_ct_STRIP"; then 6617555991fdSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6618555991fdSmrgelse 6619555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6620555991fdSmrgfor as_dir in $PATH 6621555991fdSmrgdo 6622555991fdSmrg IFS=$as_save_IFS 6623555991fdSmrg test -z "$as_dir" && as_dir=. 6624555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6625555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6626555991fdSmrg ac_cv_prog_ac_ct_STRIP="strip" 6627555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6628555991fdSmrg break 2 6629555991fdSmrg fi 6630555991fdSmrgdone 6631555991fdSmrg done 6632555991fdSmrgIFS=$as_save_IFS 6633126a8a12Smrg 6634555991fdSmrgfi 6635555991fdSmrgfi 6636555991fdSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6637555991fdSmrgif test -n "$ac_ct_STRIP"; then 6638555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6639555991fdSmrg$as_echo "$ac_ct_STRIP" >&6; } 6640d656433aSmrgelse 6641555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6642555991fdSmrg$as_echo "no" >&6; } 6643d656433aSmrgfi 6644126a8a12Smrg 6645555991fdSmrg if test "x$ac_ct_STRIP" = x; then 6646555991fdSmrg STRIP=":" 6647555991fdSmrg else 6648555991fdSmrg case $cross_compiling:$ac_tool_warned in 6649555991fdSmrgyes:) 6650555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6651555991fdSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6652555991fdSmrgac_tool_warned=yes ;; 6653555991fdSmrgesac 6654555991fdSmrg STRIP=$ac_ct_STRIP 6655555991fdSmrg fi 6656555991fdSmrgelse 6657555991fdSmrg STRIP="$ac_cv_prog_STRIP" 6658555991fdSmrgfi 6659126a8a12Smrg 6660555991fdSmrgtest -z "$STRIP" && STRIP=: 6661126a8a12Smrg 6662126a8a12Smrg 6663126a8a12Smrg 6664126a8a12Smrg 6665126a8a12Smrg 6666126a8a12Smrg 6667555991fdSmrgif test -n "$ac_tool_prefix"; then 6668555991fdSmrg # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6669555991fdSmrgset dummy ${ac_tool_prefix}ranlib; ac_word=$2 6670555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6671555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 6672555991fdSmrgif ${ac_cv_prog_RANLIB+:} false; then : 6673555991fdSmrg $as_echo_n "(cached) " >&6 6674555991fdSmrgelse 6675555991fdSmrg if test -n "$RANLIB"; then 6676555991fdSmrg ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6677555991fdSmrgelse 6678555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6679555991fdSmrgfor as_dir in $PATH 6680555991fdSmrgdo 6681555991fdSmrg IFS=$as_save_IFS 6682555991fdSmrg test -z "$as_dir" && as_dir=. 6683555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6684555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6685555991fdSmrg ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6686555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6687555991fdSmrg break 2 6688555991fdSmrg fi 6689555991fdSmrgdone 6690555991fdSmrg done 6691555991fdSmrgIFS=$as_save_IFS 6692126a8a12Smrg 6693555991fdSmrgfi 6694555991fdSmrgfi 6695555991fdSmrgRANLIB=$ac_cv_prog_RANLIB 6696555991fdSmrgif test -n "$RANLIB"; then 6697555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6698555991fdSmrg$as_echo "$RANLIB" >&6; } 6699d656433aSmrgelse 6700555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6701555991fdSmrg$as_echo "no" >&6; } 6702d656433aSmrgfi 6703126a8a12Smrg 6704126a8a12Smrg 6705555991fdSmrgfi 6706555991fdSmrgif test -z "$ac_cv_prog_RANLIB"; then 6707555991fdSmrg ac_ct_RANLIB=$RANLIB 6708555991fdSmrg # Extract the first word of "ranlib", so it can be a program name with args. 6709555991fdSmrgset dummy ranlib; ac_word=$2 6710555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6711555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 6712555991fdSmrgif ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6713555991fdSmrg $as_echo_n "(cached) " >&6 6714555991fdSmrgelse 6715555991fdSmrg if test -n "$ac_ct_RANLIB"; then 6716555991fdSmrg ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6717555991fdSmrgelse 6718555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6719555991fdSmrgfor as_dir in $PATH 6720555991fdSmrgdo 6721555991fdSmrg IFS=$as_save_IFS 6722555991fdSmrg test -z "$as_dir" && as_dir=. 6723555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6724555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6725555991fdSmrg ac_cv_prog_ac_ct_RANLIB="ranlib" 6726555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6727555991fdSmrg break 2 6728555991fdSmrg fi 6729555991fdSmrgdone 6730555991fdSmrg done 6731555991fdSmrgIFS=$as_save_IFS 6732126a8a12Smrg 6733555991fdSmrgfi 6734555991fdSmrgfi 6735555991fdSmrgac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6736555991fdSmrgif test -n "$ac_ct_RANLIB"; then 6737555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6738555991fdSmrg$as_echo "$ac_ct_RANLIB" >&6; } 6739555991fdSmrgelse 6740555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6741555991fdSmrg$as_echo "no" >&6; } 6742555991fdSmrgfi 6743126a8a12Smrg 6744555991fdSmrg if test "x$ac_ct_RANLIB" = x; then 6745555991fdSmrg RANLIB=":" 6746555991fdSmrg else 6747555991fdSmrg case $cross_compiling:$ac_tool_warned in 6748555991fdSmrgyes:) 6749555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6750555991fdSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6751555991fdSmrgac_tool_warned=yes ;; 6752555991fdSmrgesac 6753555991fdSmrg RANLIB=$ac_ct_RANLIB 6754555991fdSmrg fi 6755d656433aSmrgelse 6756555991fdSmrg RANLIB="$ac_cv_prog_RANLIB" 6757d656433aSmrgfi 6758126a8a12Smrg 6759555991fdSmrgtest -z "$RANLIB" && RANLIB=: 6760126a8a12Smrg 6761126a8a12Smrg 6762126a8a12Smrg 6763126a8a12Smrg 6764126a8a12Smrg 6765126a8a12Smrg 6766555991fdSmrg# Determine commands to create old-style static archives. 6767555991fdSmrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6768555991fdSmrgold_postinstall_cmds='chmod 644 $oldlib' 6769555991fdSmrgold_postuninstall_cmds= 6770126a8a12Smrg 6771555991fdSmrgif test -n "$RANLIB"; then 6772555991fdSmrg case $host_os in 6773555991fdSmrg openbsd*) 6774555991fdSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6775555991fdSmrg ;; 6776555991fdSmrg *) 6777555991fdSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6778555991fdSmrg ;; 6779555991fdSmrg esac 6780555991fdSmrg old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6781555991fdSmrgfi 6782126a8a12Smrg 6783555991fdSmrgcase $host_os in 6784555991fdSmrg darwin*) 6785555991fdSmrg lock_old_archive_extraction=yes ;; 6786555991fdSmrg *) 6787555991fdSmrg lock_old_archive_extraction=no ;; 6788555991fdSmrgesac 6789126a8a12Smrg 6790126a8a12Smrg 6791126a8a12Smrg 6792126a8a12Smrg 6793126a8a12Smrg 6794126a8a12Smrg 6795126a8a12Smrg 6796126a8a12Smrg 6797126a8a12Smrg 6798126a8a12Smrg 6799126a8a12Smrg 6800126a8a12Smrg 6801126a8a12Smrg 6802d656433aSmrg 6803d656433aSmrg 6804d656433aSmrg 6805d656433aSmrg 6806d656433aSmrg 6807d656433aSmrg 6808d656433aSmrg 6809d656433aSmrg 6810d656433aSmrg 6811d656433aSmrg 6812d656433aSmrg 6813d656433aSmrg 6814d656433aSmrg 6815d656433aSmrg 6816d656433aSmrg 6817d656433aSmrg 6818d656433aSmrg 6819d656433aSmrg 6820d656433aSmrg 6821d656433aSmrg 6822d656433aSmrg 6823d656433aSmrg 6824d656433aSmrg 6825d656433aSmrg 6826d656433aSmrg 6827d656433aSmrg 6828555991fdSmrg# If no C compiler was specified, use CC. 6829555991fdSmrgLTCC=${LTCC-"$CC"} 6830d656433aSmrg 6831555991fdSmrg# If no C compiler flags were specified, use CFLAGS. 6832555991fdSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6833d656433aSmrg 6834555991fdSmrg# Allow CC to be a program name with arguments. 6835555991fdSmrgcompiler=$CC 6836d656433aSmrg 6837d656433aSmrg 6838555991fdSmrg# Check for command to grab the raw symbol name followed by C symbol from nm. 6839555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6840555991fdSmrg$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6841555991fdSmrgif ${lt_cv_sys_global_symbol_pipe+:} false; then : 6842d656433aSmrg $as_echo_n "(cached) " >&6 6843126a8a12Smrgelse 6844d656433aSmrg 6845555991fdSmrg# These are sane defaults that work on at least a few old systems. 6846555991fdSmrg# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6847d656433aSmrg 6848555991fdSmrg# Character class describing NM global symbol codes. 6849555991fdSmrgsymcode='[BCDEGRST]' 6850d656433aSmrg 6851555991fdSmrg# Regexp to match symbols that can be accessed directly from C. 6852555991fdSmrgsympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6853d656433aSmrg 6854555991fdSmrg# Define system-specific variables. 6855d656433aSmrgcase $host_os in 6856555991fdSmrgaix*) 6857555991fdSmrg symcode='[BCDT]' 6858555991fdSmrg ;; 6859555991fdSmrgcygwin* | mingw* | pw32* | cegcc*) 6860555991fdSmrg symcode='[ABCDGISTW]' 6861555991fdSmrg ;; 6862555991fdSmrghpux*) 6863555991fdSmrg if test "$host_cpu" = ia64; then 6864555991fdSmrg symcode='[ABCDEGRST]' 6865d656433aSmrg fi 6866126a8a12Smrg ;; 6867555991fdSmrgirix* | nonstopux*) 6868555991fdSmrg symcode='[BCDEGRST]' 6869555991fdSmrg ;; 6870555991fdSmrgosf*) 6871555991fdSmrg symcode='[BCDEGQRST]' 6872555991fdSmrg ;; 6873555991fdSmrgsolaris*) 6874555991fdSmrg symcode='[BDRT]' 6875555991fdSmrg ;; 6876555991fdSmrgsco3.2v5*) 6877555991fdSmrg symcode='[DT]' 6878555991fdSmrg ;; 6879555991fdSmrgsysv4.2uw2*) 6880555991fdSmrg symcode='[DT]' 6881555991fdSmrg ;; 6882555991fdSmrgsysv5* | sco5v6* | unixware* | OpenUNIX*) 6883555991fdSmrg symcode='[ABDT]' 6884555991fdSmrg ;; 6885555991fdSmrgsysv4) 6886555991fdSmrg symcode='[DFNSTU]' 6887555991fdSmrg ;; 6888d656433aSmrgesac 6889126a8a12Smrg 6890555991fdSmrg# If we're using GNU nm, then use its standard symbol codes. 6891555991fdSmrgcase `$NM -V 2>&1` in 6892555991fdSmrg*GNU* | *'with BFD'*) 6893555991fdSmrg symcode='[ABCDGIRSTW]' ;; 6894555991fdSmrgesac 6895126a8a12Smrg 6896555991fdSmrg# Transform an extracted symbol line into a proper C declaration. 6897555991fdSmrg# Some systems (esp. on ia64) link data and code symbols differently, 6898555991fdSmrg# so use this general approach. 6899555991fdSmrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6900126a8a12Smrg 6901555991fdSmrg# Transform an extracted symbol line into symbol name and symbol address 6902555991fdSmrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6903555991fdSmrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6904126a8a12Smrg 6905555991fdSmrg# Handle CRLF in mingw tool chain 6906555991fdSmrgopt_cr= 6907555991fdSmrgcase $build_os in 6908555991fdSmrgmingw*) 6909555991fdSmrg opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6910555991fdSmrg ;; 6911555991fdSmrgesac 6912126a8a12Smrg 6913555991fdSmrg# Try without a prefix underscore, then with it. 6914555991fdSmrgfor ac_symprfx in "" "_"; do 6915126a8a12Smrg 6916555991fdSmrg # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6917555991fdSmrg symxfrm="\\1 $ac_symprfx\\2 \\2" 6918126a8a12Smrg 6919555991fdSmrg # Write the raw and C identifiers. 6920555991fdSmrg if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6921555991fdSmrg # Fake it for dumpbin and say T for any non-static function 6922555991fdSmrg # and D for any global variable. 6923555991fdSmrg # Also find C++ and __fastcall symbols from MSVC++, 6924555991fdSmrg # which start with @ or ?. 6925555991fdSmrg lt_cv_sys_global_symbol_pipe="$AWK '"\ 6926555991fdSmrg" {last_section=section; section=\$ 3};"\ 6927555991fdSmrg" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6928555991fdSmrg" \$ 0!~/External *\|/{next};"\ 6929555991fdSmrg" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6930555991fdSmrg" {if(hide[section]) next};"\ 6931555991fdSmrg" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6932555991fdSmrg" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6933555991fdSmrg" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6934555991fdSmrg" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6935555991fdSmrg" ' prfx=^$ac_symprfx" 6936555991fdSmrg else 6937555991fdSmrg lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6938555991fdSmrg fi 6939126a8a12Smrg 6940555991fdSmrg # Check to see that the pipe works correctly. 6941555991fdSmrg pipe_works=no 6942126a8a12Smrg 6943555991fdSmrg rm -f conftest* 6944555991fdSmrg cat > conftest.$ac_ext <<_LT_EOF 6945555991fdSmrg#ifdef __cplusplus 6946555991fdSmrgextern "C" { 6947555991fdSmrg#endif 6948555991fdSmrgchar nm_test_var; 6949555991fdSmrgvoid nm_test_func(void); 6950555991fdSmrgvoid nm_test_func(void){} 6951555991fdSmrg#ifdef __cplusplus 6952555991fdSmrg} 6953555991fdSmrg#endif 6954555991fdSmrgint main(){nm_test_var='a';nm_test_func();return(0);} 6955d656433aSmrg_LT_EOF 6956126a8a12Smrg 6957555991fdSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6958555991fdSmrg (eval $ac_compile) 2>&5 6959555991fdSmrg ac_status=$? 6960555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6961555991fdSmrg test $ac_status = 0; }; then 6962555991fdSmrg # Now try to grab the symbols. 6963555991fdSmrg nlist=conftest.nm 6964555991fdSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6965555991fdSmrg (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6966555991fdSmrg ac_status=$? 6967555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6968555991fdSmrg test $ac_status = 0; } && test -s "$nlist"; then 6969555991fdSmrg # Try sorting and uniquifying the output. 6970555991fdSmrg if sort "$nlist" | uniq > "$nlist"T; then 6971555991fdSmrg mv -f "$nlist"T "$nlist" 6972555991fdSmrg else 6973555991fdSmrg rm -f "$nlist"T 6974555991fdSmrg fi 6975126a8a12Smrg 6976555991fdSmrg # Make sure that we snagged all the symbols we need. 6977555991fdSmrg if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6978555991fdSmrg if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6979555991fdSmrg cat <<_LT_EOF > conftest.$ac_ext 6980555991fdSmrg#ifdef __cplusplus 6981555991fdSmrgextern "C" { 6982555991fdSmrg#endif 6983126a8a12Smrg 6984555991fdSmrg_LT_EOF 6985555991fdSmrg # Now generate the symbol file. 6986555991fdSmrg eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6987126a8a12Smrg 6988555991fdSmrg cat <<_LT_EOF >> conftest.$ac_ext 6989126a8a12Smrg 6990555991fdSmrg/* The mapping between symbol names and symbols. */ 6991555991fdSmrgconst struct { 6992555991fdSmrg const char *name; 6993555991fdSmrg void *address; 6994555991fdSmrg} 6995555991fdSmrglt__PROGRAM__LTX_preloaded_symbols[] = 6996555991fdSmrg{ 6997555991fdSmrg { "@PROGRAM@", (void *) 0 }, 6998555991fdSmrg_LT_EOF 6999555991fdSmrg $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7000555991fdSmrg cat <<\_LT_EOF >> conftest.$ac_ext 7001555991fdSmrg {0, (void *) 0} 7002555991fdSmrg}; 7003126a8a12Smrg 7004555991fdSmrg/* This works around a problem in FreeBSD linker */ 7005555991fdSmrg#ifdef FREEBSD_WORKAROUND 7006555991fdSmrgstatic const void *lt_preloaded_setup() { 7007555991fdSmrg return lt__PROGRAM__LTX_preloaded_symbols; 7008555991fdSmrg} 7009555991fdSmrg#endif 7010126a8a12Smrg 7011555991fdSmrg#ifdef __cplusplus 7012555991fdSmrg} 7013555991fdSmrg#endif 7014d656433aSmrg_LT_EOF 7015555991fdSmrg # Now try linking the two files. 7016555991fdSmrg mv conftest.$ac_objext conftstm.$ac_objext 7017555991fdSmrg lt_save_LIBS="$LIBS" 7018555991fdSmrg lt_save_CFLAGS="$CFLAGS" 7019555991fdSmrg LIBS="conftstm.$ac_objext" 7020555991fdSmrg CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7021555991fdSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7022555991fdSmrg (eval $ac_link) 2>&5 7023555991fdSmrg ac_status=$? 7024555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7025555991fdSmrg test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7026555991fdSmrg pipe_works=yes 7027555991fdSmrg fi 7028555991fdSmrg LIBS="$lt_save_LIBS" 7029555991fdSmrg CFLAGS="$lt_save_CFLAGS" 7030555991fdSmrg else 7031555991fdSmrg echo "cannot find nm_test_func in $nlist" >&5 7032555991fdSmrg fi 7033555991fdSmrg else 7034555991fdSmrg echo "cannot find nm_test_var in $nlist" >&5 7035d656433aSmrg fi 7036555991fdSmrg else 7037555991fdSmrg echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7038d656433aSmrg fi 7039555991fdSmrg else 7040555991fdSmrg echo "$progname: failed program was:" >&5 7041555991fdSmrg cat conftest.$ac_ext >&5 7042555991fdSmrg fi 7043555991fdSmrg rm -rf conftest* conftst* 7044555991fdSmrg 7045555991fdSmrg # Do not use the global_symbol_pipe unless it works. 7046555991fdSmrg if test "$pipe_works" = yes; then 7047555991fdSmrg break 7048555991fdSmrg else 7049555991fdSmrg lt_cv_sys_global_symbol_pipe= 7050555991fdSmrg fi 7051555991fdSmrgdone 7052555991fdSmrg 7053555991fdSmrgfi 7054555991fdSmrg 7055555991fdSmrgif test -z "$lt_cv_sys_global_symbol_pipe"; then 7056555991fdSmrg lt_cv_sys_global_symbol_to_cdecl= 7057d656433aSmrgfi 7058555991fdSmrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7059555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7060555991fdSmrg$as_echo "failed" >&6; } 7061d656433aSmrgelse 7062555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7063555991fdSmrg$as_echo "ok" >&6; } 7064d656433aSmrgfi 7065126a8a12Smrg 7066126a8a12Smrg 7067126a8a12Smrg 7068d656433aSmrg 7069126a8a12Smrg 7070126a8a12Smrg 7071126a8a12Smrg 7072126a8a12Smrg 7073126a8a12Smrg 7074126a8a12Smrg 7075d656433aSmrg 7076d656433aSmrg 7077d656433aSmrg 7078d656433aSmrg 7079d656433aSmrg 7080126a8a12Smrg 7081126a8a12Smrg 7082126a8a12Smrg 7083126a8a12Smrg 7084126a8a12Smrg 7085126a8a12Smrg 7086126a8a12Smrg 7087555991fdSmrg# Check whether --enable-libtool-lock was given. 7088555991fdSmrgif test "${enable_libtool_lock+set}" = set; then : 7089555991fdSmrg enableval=$enable_libtool_lock; 7090555991fdSmrgfi 7091126a8a12Smrg 7092555991fdSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7093126a8a12Smrg 7094555991fdSmrg# Some flags need to be propagated to the compiler or linker for good 7095555991fdSmrg# libtool support. 7096555991fdSmrgcase $host in 7097555991fdSmrgia64-*-hpux*) 7098555991fdSmrg # Find out which ABI we are using. 7099555991fdSmrg echo 'int i;' > conftest.$ac_ext 7100555991fdSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7101555991fdSmrg (eval $ac_compile) 2>&5 7102555991fdSmrg ac_status=$? 7103555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7104555991fdSmrg test $ac_status = 0; }; then 7105555991fdSmrg case `/usr/bin/file conftest.$ac_objext` in 7106555991fdSmrg *ELF-32*) 7107555991fdSmrg HPUX_IA64_MODE="32" 7108555991fdSmrg ;; 7109555991fdSmrg *ELF-64*) 7110555991fdSmrg HPUX_IA64_MODE="64" 7111555991fdSmrg ;; 7112555991fdSmrg esac 7113555991fdSmrg fi 7114555991fdSmrg rm -rf conftest* 7115555991fdSmrg ;; 7116555991fdSmrg*-*-irix6*) 7117555991fdSmrg # Find out which ABI we are using. 7118555991fdSmrg echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7119555991fdSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7120555991fdSmrg (eval $ac_compile) 2>&5 7121555991fdSmrg ac_status=$? 7122555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7123555991fdSmrg test $ac_status = 0; }; then 7124555991fdSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 7125555991fdSmrg case `/usr/bin/file conftest.$ac_objext` in 7126555991fdSmrg *32-bit*) 7127555991fdSmrg LD="${LD-ld} -melf32bsmip" 7128555991fdSmrg ;; 7129555991fdSmrg *N32*) 7130555991fdSmrg LD="${LD-ld} -melf32bmipn32" 7131555991fdSmrg ;; 7132555991fdSmrg *64-bit*) 7133555991fdSmrg LD="${LD-ld} -melf64bmip" 7134555991fdSmrg ;; 7135555991fdSmrg esac 7136555991fdSmrg else 7137555991fdSmrg case `/usr/bin/file conftest.$ac_objext` in 7138555991fdSmrg *32-bit*) 7139555991fdSmrg LD="${LD-ld} -32" 7140555991fdSmrg ;; 7141555991fdSmrg *N32*) 7142555991fdSmrg LD="${LD-ld} -n32" 7143555991fdSmrg ;; 7144555991fdSmrg *64-bit*) 7145555991fdSmrg LD="${LD-ld} -64" 7146555991fdSmrg ;; 7147555991fdSmrg esac 7148555991fdSmrg fi 7149555991fdSmrg fi 7150555991fdSmrg rm -rf conftest* 7151555991fdSmrg ;; 7152126a8a12Smrg 7153555991fdSmrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7154555991fdSmrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7155555991fdSmrg # Find out which ABI we are using. 7156555991fdSmrg echo 'int i;' > conftest.$ac_ext 7157555991fdSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7158555991fdSmrg (eval $ac_compile) 2>&5 7159555991fdSmrg ac_status=$? 7160555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7161555991fdSmrg test $ac_status = 0; }; then 7162555991fdSmrg case `/usr/bin/file conftest.o` in 7163555991fdSmrg *32-bit*) 7164555991fdSmrg case $host in 7165555991fdSmrg x86_64-*kfreebsd*-gnu) 7166555991fdSmrg LD="${LD-ld} -m elf_i386_fbsd" 7167555991fdSmrg ;; 7168555991fdSmrg x86_64-*linux*) 7169555991fdSmrg LD="${LD-ld} -m elf_i386" 7170555991fdSmrg ;; 7171555991fdSmrg ppc64-*linux*|powerpc64-*linux*) 7172555991fdSmrg LD="${LD-ld} -m elf32ppclinux" 7173555991fdSmrg ;; 7174555991fdSmrg s390x-*linux*) 7175555991fdSmrg LD="${LD-ld} -m elf_s390" 7176555991fdSmrg ;; 7177555991fdSmrg sparc64-*linux*) 7178555991fdSmrg LD="${LD-ld} -m elf32_sparc" 7179555991fdSmrg ;; 7180555991fdSmrg esac 7181555991fdSmrg ;; 7182555991fdSmrg *64-bit*) 7183555991fdSmrg case $host in 7184555991fdSmrg x86_64-*kfreebsd*-gnu) 7185555991fdSmrg LD="${LD-ld} -m elf_x86_64_fbsd" 7186555991fdSmrg ;; 7187555991fdSmrg x86_64-*linux*) 7188555991fdSmrg LD="${LD-ld} -m elf_x86_64" 7189555991fdSmrg ;; 7190555991fdSmrg ppc*-*linux*|powerpc*-*linux*) 7191555991fdSmrg LD="${LD-ld} -m elf64ppc" 7192555991fdSmrg ;; 7193555991fdSmrg s390*-*linux*|s390*-*tpf*) 7194555991fdSmrg LD="${LD-ld} -m elf64_s390" 7195555991fdSmrg ;; 7196555991fdSmrg sparc*-*linux*) 7197555991fdSmrg LD="${LD-ld} -m elf64_sparc" 7198555991fdSmrg ;; 7199555991fdSmrg esac 7200555991fdSmrg ;; 7201555991fdSmrg esac 7202555991fdSmrg fi 7203555991fdSmrg rm -rf conftest* 7204555991fdSmrg ;; 7205126a8a12Smrg 7206555991fdSmrg*-*-sco3.2v5*) 7207555991fdSmrg # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7208555991fdSmrg SAVE_CFLAGS="$CFLAGS" 7209555991fdSmrg CFLAGS="$CFLAGS -belf" 7210555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7211555991fdSmrg$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7212555991fdSmrgif ${lt_cv_cc_needs_belf+:} false; then : 7213555991fdSmrg $as_echo_n "(cached) " >&6 7214555991fdSmrgelse 7215555991fdSmrg ac_ext=c 7216555991fdSmrgac_cpp='$CPP $CPPFLAGS' 7217555991fdSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7218555991fdSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7219555991fdSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 7220126a8a12Smrg 7221555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7222555991fdSmrg/* end confdefs.h. */ 7223555991fdSmrg 7224555991fdSmrgint 7225555991fdSmrgmain () 7226555991fdSmrg{ 7227555991fdSmrg 7228555991fdSmrg ; 7229555991fdSmrg return 0; 7230555991fdSmrg} 7231555991fdSmrg_ACEOF 7232555991fdSmrgif ac_fn_c_try_link "$LINENO"; then : 7233555991fdSmrg lt_cv_cc_needs_belf=yes 7234555991fdSmrgelse 7235555991fdSmrg lt_cv_cc_needs_belf=no 7236555991fdSmrgfi 7237555991fdSmrgrm -f core conftest.err conftest.$ac_objext \ 7238555991fdSmrg conftest$ac_exeext conftest.$ac_ext 7239555991fdSmrg ac_ext=c 7240555991fdSmrgac_cpp='$CPP $CPPFLAGS' 7241555991fdSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7242555991fdSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7243555991fdSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 7244555991fdSmrg 7245555991fdSmrgfi 7246555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7247555991fdSmrg$as_echo "$lt_cv_cc_needs_belf" >&6; } 7248555991fdSmrg if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7249555991fdSmrg # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7250555991fdSmrg CFLAGS="$SAVE_CFLAGS" 7251555991fdSmrg fi 7252555991fdSmrg ;; 7253555991fdSmrgsparc*-*solaris*) 7254555991fdSmrg # Find out which ABI we are using. 7255555991fdSmrg echo 'int i;' > conftest.$ac_ext 7256555991fdSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7257555991fdSmrg (eval $ac_compile) 2>&5 7258555991fdSmrg ac_status=$? 7259555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7260555991fdSmrg test $ac_status = 0; }; then 7261555991fdSmrg case `/usr/bin/file conftest.o` in 7262555991fdSmrg *64-bit*) 7263555991fdSmrg case $lt_cv_prog_gnu_ld in 7264555991fdSmrg yes*) LD="${LD-ld} -m elf64_sparc" ;; 7265555991fdSmrg *) 7266555991fdSmrg if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7267555991fdSmrg LD="${LD-ld} -64" 7268555991fdSmrg fi 7269555991fdSmrg ;; 7270555991fdSmrg esac 7271555991fdSmrg ;; 7272555991fdSmrg esac 7273555991fdSmrg fi 7274555991fdSmrg rm -rf conftest* 7275555991fdSmrg ;; 7276555991fdSmrgesac 7277555991fdSmrg 7278555991fdSmrgneed_locks="$enable_libtool_lock" 7279555991fdSmrg 7280555991fdSmrg 7281555991fdSmrg case $host_os in 7282555991fdSmrg rhapsody* | darwin*) 7283555991fdSmrg if test -n "$ac_tool_prefix"; then 7284555991fdSmrg # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7285555991fdSmrgset dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7286555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7287555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 7288555991fdSmrgif ${ac_cv_prog_DSYMUTIL+:} false; then : 7289d656433aSmrg $as_echo_n "(cached) " >&6 7290126a8a12Smrgelse 7291555991fdSmrg if test -n "$DSYMUTIL"; then 7292555991fdSmrg ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7293555991fdSmrgelse 7294555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7295555991fdSmrgfor as_dir in $PATH 7296555991fdSmrgdo 7297555991fdSmrg IFS=$as_save_IFS 7298555991fdSmrg test -z "$as_dir" && as_dir=. 7299555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 7300555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7301555991fdSmrg ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7302555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7303555991fdSmrg break 2 7304555991fdSmrg fi 7305555991fdSmrgdone 7306555991fdSmrg done 7307555991fdSmrgIFS=$as_save_IFS 7308126a8a12Smrg 7309126a8a12Smrgfi 7310126a8a12Smrgfi 7311555991fdSmrgDSYMUTIL=$ac_cv_prog_DSYMUTIL 7312555991fdSmrgif test -n "$DSYMUTIL"; then 7313555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7314555991fdSmrg$as_echo "$DSYMUTIL" >&6; } 7315555991fdSmrgelse 7316555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7317555991fdSmrg$as_echo "no" >&6; } 7318126a8a12Smrgfi 7319126a8a12Smrg 7320126a8a12Smrg 7321555991fdSmrgfi 7322555991fdSmrgif test -z "$ac_cv_prog_DSYMUTIL"; then 7323555991fdSmrg ac_ct_DSYMUTIL=$DSYMUTIL 7324555991fdSmrg # Extract the first word of "dsymutil", so it can be a program name with args. 7325555991fdSmrgset dummy dsymutil; ac_word=$2 7326555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7327555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 7328555991fdSmrgif ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7329555991fdSmrg $as_echo_n "(cached) " >&6 7330555991fdSmrgelse 7331555991fdSmrg if test -n "$ac_ct_DSYMUTIL"; then 7332555991fdSmrg ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7333555991fdSmrgelse 7334555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7335555991fdSmrgfor as_dir in $PATH 7336555991fdSmrgdo 7337555991fdSmrg IFS=$as_save_IFS 7338555991fdSmrg test -z "$as_dir" && as_dir=. 7339555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 7340555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7341555991fdSmrg ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7342555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7343555991fdSmrg break 2 7344555991fdSmrg fi 7345555991fdSmrgdone 7346555991fdSmrg done 7347555991fdSmrgIFS=$as_save_IFS 7348d656433aSmrg 7349555991fdSmrgfi 7350555991fdSmrgfi 7351555991fdSmrgac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7352555991fdSmrgif test -n "$ac_ct_DSYMUTIL"; then 7353555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7354555991fdSmrg$as_echo "$ac_ct_DSYMUTIL" >&6; } 7355555991fdSmrgelse 7356555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7357555991fdSmrg$as_echo "no" >&6; } 7358555991fdSmrgfi 7359d656433aSmrg 7360555991fdSmrg if test "x$ac_ct_DSYMUTIL" = x; then 7361555991fdSmrg DSYMUTIL=":" 7362555991fdSmrg else 7363555991fdSmrg case $cross_compiling:$ac_tool_warned in 7364555991fdSmrgyes:) 7365555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7366555991fdSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7367555991fdSmrgac_tool_warned=yes ;; 7368555991fdSmrgesac 7369555991fdSmrg DSYMUTIL=$ac_ct_DSYMUTIL 7370555991fdSmrg fi 7371555991fdSmrgelse 7372555991fdSmrg DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7373555991fdSmrgfi 7374d656433aSmrg 7375555991fdSmrg if test -n "$ac_tool_prefix"; then 7376555991fdSmrg # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7377555991fdSmrgset dummy ${ac_tool_prefix}nmedit; ac_word=$2 7378555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7379555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 7380555991fdSmrgif ${ac_cv_prog_NMEDIT+:} false; then : 7381555991fdSmrg $as_echo_n "(cached) " >&6 7382555991fdSmrgelse 7383555991fdSmrg if test -n "$NMEDIT"; then 7384555991fdSmrg ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7385555991fdSmrgelse 7386555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7387555991fdSmrgfor as_dir in $PATH 7388555991fdSmrgdo 7389555991fdSmrg IFS=$as_save_IFS 7390555991fdSmrg test -z "$as_dir" && as_dir=. 7391555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 7392555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7393555991fdSmrg ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7394555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7395555991fdSmrg break 2 7396555991fdSmrg fi 7397555991fdSmrgdone 7398555991fdSmrg done 7399555991fdSmrgIFS=$as_save_IFS 7400d656433aSmrg 7401555991fdSmrgfi 7402555991fdSmrgfi 7403555991fdSmrgNMEDIT=$ac_cv_prog_NMEDIT 7404555991fdSmrgif test -n "$NMEDIT"; then 7405555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7406555991fdSmrg$as_echo "$NMEDIT" >&6; } 7407555991fdSmrgelse 7408555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7409555991fdSmrg$as_echo "no" >&6; } 7410555991fdSmrgfi 7411126a8a12Smrg 7412126a8a12Smrg 7413555991fdSmrgfi 7414555991fdSmrgif test -z "$ac_cv_prog_NMEDIT"; then 7415555991fdSmrg ac_ct_NMEDIT=$NMEDIT 7416555991fdSmrg # Extract the first word of "nmedit", so it can be a program name with args. 7417555991fdSmrgset dummy nmedit; ac_word=$2 7418555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7419555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 7420555991fdSmrgif ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7421555991fdSmrg $as_echo_n "(cached) " >&6 7422555991fdSmrgelse 7423555991fdSmrg if test -n "$ac_ct_NMEDIT"; then 7424555991fdSmrg ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7425555991fdSmrgelse 7426555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7427555991fdSmrgfor as_dir in $PATH 7428555991fdSmrgdo 7429555991fdSmrg IFS=$as_save_IFS 7430555991fdSmrg test -z "$as_dir" && as_dir=. 7431555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 7432555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7433555991fdSmrg ac_cv_prog_ac_ct_NMEDIT="nmedit" 7434555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7435555991fdSmrg break 2 7436555991fdSmrg fi 7437555991fdSmrgdone 7438555991fdSmrg done 7439555991fdSmrgIFS=$as_save_IFS 7440126a8a12Smrg 7441555991fdSmrgfi 7442555991fdSmrgfi 7443555991fdSmrgac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7444555991fdSmrgif test -n "$ac_ct_NMEDIT"; then 7445555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7446555991fdSmrg$as_echo "$ac_ct_NMEDIT" >&6; } 7447555991fdSmrgelse 7448555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7449555991fdSmrg$as_echo "no" >&6; } 7450555991fdSmrgfi 7451126a8a12Smrg 7452555991fdSmrg if test "x$ac_ct_NMEDIT" = x; then 7453555991fdSmrg NMEDIT=":" 7454555991fdSmrg else 7455555991fdSmrg case $cross_compiling:$ac_tool_warned in 7456555991fdSmrgyes:) 7457555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7458555991fdSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7459555991fdSmrgac_tool_warned=yes ;; 7460555991fdSmrgesac 7461555991fdSmrg NMEDIT=$ac_ct_NMEDIT 7462555991fdSmrg fi 7463555991fdSmrgelse 7464555991fdSmrg NMEDIT="$ac_cv_prog_NMEDIT" 7465555991fdSmrgfi 7466d656433aSmrg 7467555991fdSmrg if test -n "$ac_tool_prefix"; then 7468555991fdSmrg # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7469555991fdSmrgset dummy ${ac_tool_prefix}lipo; ac_word=$2 7470555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7471555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 7472555991fdSmrgif ${ac_cv_prog_LIPO+:} false; then : 7473555991fdSmrg $as_echo_n "(cached) " >&6 7474555991fdSmrgelse 7475555991fdSmrg if test -n "$LIPO"; then 7476555991fdSmrg ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7477555991fdSmrgelse 7478555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7479555991fdSmrgfor as_dir in $PATH 7480555991fdSmrgdo 7481555991fdSmrg IFS=$as_save_IFS 7482555991fdSmrg test -z "$as_dir" && as_dir=. 7483555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 7484555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7485555991fdSmrg ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7486555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7487555991fdSmrg break 2 7488555991fdSmrg fi 7489555991fdSmrgdone 7490555991fdSmrg done 7491555991fdSmrgIFS=$as_save_IFS 7492126a8a12Smrg 7493555991fdSmrgfi 7494555991fdSmrgfi 7495555991fdSmrgLIPO=$ac_cv_prog_LIPO 7496555991fdSmrgif test -n "$LIPO"; then 7497555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7498555991fdSmrg$as_echo "$LIPO" >&6; } 7499555991fdSmrgelse 7500555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7501555991fdSmrg$as_echo "no" >&6; } 7502555991fdSmrgfi 7503126a8a12Smrg 7504126a8a12Smrg 7505555991fdSmrgfi 7506555991fdSmrgif test -z "$ac_cv_prog_LIPO"; then 7507555991fdSmrg ac_ct_LIPO=$LIPO 7508555991fdSmrg # Extract the first word of "lipo", so it can be a program name with args. 7509555991fdSmrgset dummy lipo; ac_word=$2 7510555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7511555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 7512555991fdSmrgif ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7513555991fdSmrg $as_echo_n "(cached) " >&6 7514555991fdSmrgelse 7515555991fdSmrg if test -n "$ac_ct_LIPO"; then 7516555991fdSmrg ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7517555991fdSmrgelse 7518555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7519555991fdSmrgfor as_dir in $PATH 7520555991fdSmrgdo 7521555991fdSmrg IFS=$as_save_IFS 7522555991fdSmrg test -z "$as_dir" && as_dir=. 7523555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 7524555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7525555991fdSmrg ac_cv_prog_ac_ct_LIPO="lipo" 7526555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7527555991fdSmrg break 2 7528555991fdSmrg fi 7529555991fdSmrgdone 7530555991fdSmrg done 7531555991fdSmrgIFS=$as_save_IFS 7532d656433aSmrg 7533555991fdSmrgfi 7534555991fdSmrgfi 7535555991fdSmrgac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7536555991fdSmrgif test -n "$ac_ct_LIPO"; then 7537555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7538555991fdSmrg$as_echo "$ac_ct_LIPO" >&6; } 7539555991fdSmrgelse 7540555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7541555991fdSmrg$as_echo "no" >&6; } 7542555991fdSmrgfi 7543126a8a12Smrg 7544555991fdSmrg if test "x$ac_ct_LIPO" = x; then 7545555991fdSmrg LIPO=":" 7546126a8a12Smrg else 7547555991fdSmrg case $cross_compiling:$ac_tool_warned in 7548555991fdSmrgyes:) 7549555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7550555991fdSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7551555991fdSmrgac_tool_warned=yes ;; 7552555991fdSmrgesac 7553555991fdSmrg LIPO=$ac_ct_LIPO 7554555991fdSmrg fi 7555555991fdSmrgelse 7556555991fdSmrg LIPO="$ac_cv_prog_LIPO" 7557555991fdSmrgfi 7558126a8a12Smrg 7559555991fdSmrg if test -n "$ac_tool_prefix"; then 7560555991fdSmrg # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7561555991fdSmrgset dummy ${ac_tool_prefix}otool; ac_word=$2 7562555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7563555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 7564555991fdSmrgif ${ac_cv_prog_OTOOL+:} false; then : 7565555991fdSmrg $as_echo_n "(cached) " >&6 7566555991fdSmrgelse 7567555991fdSmrg if test -n "$OTOOL"; then 7568555991fdSmrg ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7569555991fdSmrgelse 7570555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7571555991fdSmrgfor as_dir in $PATH 7572555991fdSmrgdo 7573555991fdSmrg IFS=$as_save_IFS 7574555991fdSmrg test -z "$as_dir" && as_dir=. 7575555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 7576555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7577555991fdSmrg ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7578555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7579555991fdSmrg break 2 7580555991fdSmrg fi 7581555991fdSmrgdone 7582555991fdSmrg done 7583555991fdSmrgIFS=$as_save_IFS 7584126a8a12Smrg 7585555991fdSmrgfi 7586555991fdSmrgfi 7587555991fdSmrgOTOOL=$ac_cv_prog_OTOOL 7588555991fdSmrgif test -n "$OTOOL"; then 7589555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7590555991fdSmrg$as_echo "$OTOOL" >&6; } 7591555991fdSmrgelse 7592555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7593555991fdSmrg$as_echo "no" >&6; } 7594555991fdSmrgfi 7595126a8a12Smrg 7596d656433aSmrg 7597555991fdSmrgfi 7598555991fdSmrgif test -z "$ac_cv_prog_OTOOL"; then 7599555991fdSmrg ac_ct_OTOOL=$OTOOL 7600555991fdSmrg # Extract the first word of "otool", so it can be a program name with args. 7601555991fdSmrgset dummy otool; ac_word=$2 7602555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7603555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 7604555991fdSmrgif ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7605555991fdSmrg $as_echo_n "(cached) " >&6 7606555991fdSmrgelse 7607555991fdSmrg if test -n "$ac_ct_OTOOL"; then 7608555991fdSmrg ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7609555991fdSmrgelse 7610555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7611555991fdSmrgfor as_dir in $PATH 7612555991fdSmrgdo 7613555991fdSmrg IFS=$as_save_IFS 7614555991fdSmrg test -z "$as_dir" && as_dir=. 7615555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 7616555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7617555991fdSmrg ac_cv_prog_ac_ct_OTOOL="otool" 7618555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7619555991fdSmrg break 2 7620555991fdSmrg fi 7621555991fdSmrgdone 7622555991fdSmrg done 7623555991fdSmrgIFS=$as_save_IFS 7624d656433aSmrg 7625555991fdSmrgfi 7626555991fdSmrgfi 7627555991fdSmrgac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7628555991fdSmrgif test -n "$ac_ct_OTOOL"; then 7629555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7630555991fdSmrg$as_echo "$ac_ct_OTOOL" >&6; } 7631555991fdSmrgelse 7632555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7633555991fdSmrg$as_echo "no" >&6; } 7634555991fdSmrgfi 7635d656433aSmrg 7636555991fdSmrg if test "x$ac_ct_OTOOL" = x; then 7637555991fdSmrg OTOOL=":" 7638555991fdSmrg else 7639555991fdSmrg case $cross_compiling:$ac_tool_warned in 7640555991fdSmrgyes:) 7641555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7642555991fdSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7643555991fdSmrgac_tool_warned=yes ;; 7644555991fdSmrgesac 7645555991fdSmrg OTOOL=$ac_ct_OTOOL 7646555991fdSmrg fi 7647555991fdSmrgelse 7648555991fdSmrg OTOOL="$ac_cv_prog_OTOOL" 7649555991fdSmrgfi 7650126a8a12Smrg 7651555991fdSmrg if test -n "$ac_tool_prefix"; then 7652555991fdSmrg # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7653555991fdSmrgset dummy ${ac_tool_prefix}otool64; ac_word=$2 7654555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7655555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 7656555991fdSmrgif ${ac_cv_prog_OTOOL64+:} false; then : 7657555991fdSmrg $as_echo_n "(cached) " >&6 7658555991fdSmrgelse 7659555991fdSmrg if test -n "$OTOOL64"; then 7660555991fdSmrg ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7661555991fdSmrgelse 7662555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7663555991fdSmrgfor as_dir in $PATH 7664555991fdSmrgdo 7665555991fdSmrg IFS=$as_save_IFS 7666555991fdSmrg test -z "$as_dir" && as_dir=. 7667555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 7668555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7669555991fdSmrg ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7670555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7671555991fdSmrg break 2 7672555991fdSmrg fi 7673555991fdSmrgdone 7674555991fdSmrg done 7675555991fdSmrgIFS=$as_save_IFS 7676126a8a12Smrg 7677555991fdSmrgfi 7678555991fdSmrgfi 7679555991fdSmrgOTOOL64=$ac_cv_prog_OTOOL64 7680555991fdSmrgif test -n "$OTOOL64"; then 7681555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7682555991fdSmrg$as_echo "$OTOOL64" >&6; } 7683555991fdSmrgelse 7684555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7685555991fdSmrg$as_echo "no" >&6; } 7686555991fdSmrgfi 7687126a8a12Smrg 7688126a8a12Smrg 7689555991fdSmrgfi 7690555991fdSmrgif test -z "$ac_cv_prog_OTOOL64"; then 7691555991fdSmrg ac_ct_OTOOL64=$OTOOL64 7692555991fdSmrg # Extract the first word of "otool64", so it can be a program name with args. 7693555991fdSmrgset dummy otool64; ac_word=$2 7694555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7695555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 7696555991fdSmrgif ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7697555991fdSmrg $as_echo_n "(cached) " >&6 7698555991fdSmrgelse 7699555991fdSmrg if test -n "$ac_ct_OTOOL64"; then 7700555991fdSmrg ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7701555991fdSmrgelse 7702555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7703555991fdSmrgfor as_dir in $PATH 7704555991fdSmrgdo 7705555991fdSmrg IFS=$as_save_IFS 7706555991fdSmrg test -z "$as_dir" && as_dir=. 7707555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 7708555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7709555991fdSmrg ac_cv_prog_ac_ct_OTOOL64="otool64" 7710555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7711555991fdSmrg break 2 7712555991fdSmrg fi 7713555991fdSmrgdone 7714555991fdSmrg done 7715555991fdSmrgIFS=$as_save_IFS 7716126a8a12Smrg 7717555991fdSmrgfi 7718555991fdSmrgfi 7719555991fdSmrgac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7720555991fdSmrgif test -n "$ac_ct_OTOOL64"; then 7721555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7722555991fdSmrg$as_echo "$ac_ct_OTOOL64" >&6; } 7723555991fdSmrgelse 7724555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7725555991fdSmrg$as_echo "no" >&6; } 7726555991fdSmrgfi 7727126a8a12Smrg 7728555991fdSmrg if test "x$ac_ct_OTOOL64" = x; then 7729555991fdSmrg OTOOL64=":" 7730555991fdSmrg else 7731555991fdSmrg case $cross_compiling:$ac_tool_warned in 7732555991fdSmrgyes:) 7733555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7734555991fdSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7735555991fdSmrgac_tool_warned=yes ;; 7736555991fdSmrgesac 7737555991fdSmrg OTOOL64=$ac_ct_OTOOL64 7738555991fdSmrg fi 7739555991fdSmrgelse 7740555991fdSmrg OTOOL64="$ac_cv_prog_OTOOL64" 7741555991fdSmrgfi 7742126a8a12Smrg 7743126a8a12Smrg 7744126a8a12Smrg 7745d656433aSmrg 7746d656433aSmrg 7747d656433aSmrg 7748d656433aSmrg 7749d656433aSmrg 7750126a8a12Smrg 7751126a8a12Smrg 7752126a8a12Smrg 7753126a8a12Smrg 7754d656433aSmrg 7755d656433aSmrg 7756d656433aSmrg 7757d656433aSmrg 7758d656433aSmrg 7759126a8a12Smrg 7760126a8a12Smrg 7761126a8a12Smrg 7762d656433aSmrg 7763d656433aSmrg 7764d656433aSmrg 7765d656433aSmrg 7766d656433aSmrg 7767d656433aSmrg 7768d656433aSmrg 7769555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7770555991fdSmrg$as_echo_n "checking for -single_module linker flag... " >&6; } 7771555991fdSmrgif ${lt_cv_apple_cc_single_mod+:} false; then : 7772d656433aSmrg $as_echo_n "(cached) " >&6 7773d656433aSmrgelse 7774555991fdSmrg lt_cv_apple_cc_single_mod=no 7775555991fdSmrg if test -z "${LT_MULTI_MODULE}"; then 7776555991fdSmrg # By default we will add the -single_module flag. You can override 7777555991fdSmrg # by either setting the environment variable LT_MULTI_MODULE 7778555991fdSmrg # non-empty at configure time, or by adding -multi_module to the 7779555991fdSmrg # link flags. 7780555991fdSmrg rm -rf libconftest.dylib* 7781555991fdSmrg echo "int foo(void){return 1;}" > conftest.c 7782555991fdSmrg echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7783555991fdSmrg-dynamiclib -Wl,-single_module conftest.c" >&5 7784555991fdSmrg $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7785555991fdSmrg -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7786555991fdSmrg _lt_result=$? 7787555991fdSmrg if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7788555991fdSmrg lt_cv_apple_cc_single_mod=yes 7789555991fdSmrg else 7790555991fdSmrg cat conftest.err >&5 7791555991fdSmrg fi 7792555991fdSmrg rm -rf libconftest.dylib* 7793555991fdSmrg rm -f conftest.* 7794555991fdSmrg fi 7795555991fdSmrgfi 7796555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7797555991fdSmrg$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7798555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7799555991fdSmrg$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7800555991fdSmrgif ${lt_cv_ld_exported_symbols_list+:} false; then : 7801555991fdSmrg $as_echo_n "(cached) " >&6 7802555991fdSmrgelse 7803555991fdSmrg lt_cv_ld_exported_symbols_list=no 7804555991fdSmrg save_LDFLAGS=$LDFLAGS 7805555991fdSmrg echo "_main" > conftest.sym 7806555991fdSmrg LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7807555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7808555991fdSmrg/* end confdefs.h. */ 7809d656433aSmrg 7810555991fdSmrgint 7811555991fdSmrgmain () 7812555991fdSmrg{ 7813d656433aSmrg 7814555991fdSmrg ; 7815555991fdSmrg return 0; 7816555991fdSmrg} 7817555991fdSmrg_ACEOF 7818555991fdSmrgif ac_fn_c_try_link "$LINENO"; then : 7819555991fdSmrg lt_cv_ld_exported_symbols_list=yes 7820555991fdSmrgelse 7821555991fdSmrg lt_cv_ld_exported_symbols_list=no 7822126a8a12Smrgfi 7823555991fdSmrgrm -f core conftest.err conftest.$ac_objext \ 7824555991fdSmrg conftest$ac_exeext conftest.$ac_ext 7825555991fdSmrg LDFLAGS="$save_LDFLAGS" 7826d656433aSmrg 7827555991fdSmrgfi 7828555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7829555991fdSmrg$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7830555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7831555991fdSmrg$as_echo_n "checking for -force_load linker flag... " >&6; } 7832555991fdSmrgif ${lt_cv_ld_force_load+:} false; then : 7833555991fdSmrg $as_echo_n "(cached) " >&6 7834555991fdSmrgelse 7835555991fdSmrg lt_cv_ld_force_load=no 7836555991fdSmrg cat > conftest.c << _LT_EOF 7837555991fdSmrgint forced_loaded() { return 2;} 7838555991fdSmrg_LT_EOF 7839555991fdSmrg echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7840555991fdSmrg $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7841555991fdSmrg echo "$AR cru libconftest.a conftest.o" >&5 7842555991fdSmrg $AR cru libconftest.a conftest.o 2>&5 7843555991fdSmrg echo "$RANLIB libconftest.a" >&5 7844555991fdSmrg $RANLIB libconftest.a 2>&5 7845555991fdSmrg cat > conftest.c << _LT_EOF 7846555991fdSmrgint main() { return 0;} 7847555991fdSmrg_LT_EOF 7848555991fdSmrg echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7849555991fdSmrg $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7850555991fdSmrg _lt_result=$? 7851555991fdSmrg if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7852555991fdSmrg lt_cv_ld_force_load=yes 7853555991fdSmrg else 7854555991fdSmrg cat conftest.err >&5 7855555991fdSmrg fi 7856555991fdSmrg rm -f conftest.err libconftest.a conftest conftest.c 7857555991fdSmrg rm -rf conftest.dSYM 7858d656433aSmrg 7859555991fdSmrgfi 7860555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7861555991fdSmrg$as_echo "$lt_cv_ld_force_load" >&6; } 7862555991fdSmrg case $host_os in 7863555991fdSmrg rhapsody* | darwin1.[012]) 7864555991fdSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7865555991fdSmrg darwin1.*) 7866555991fdSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7867555991fdSmrg darwin*) # darwin 5.x on 7868555991fdSmrg # if running on 10.5 or later, the deployment target defaults 7869555991fdSmrg # to the OS version, if on x86, and 10.4, the deployment 7870555991fdSmrg # target defaults to 10.4. Don't you love it? 7871555991fdSmrg case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7872555991fdSmrg 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7873555991fdSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7874555991fdSmrg 10.[012]*) 7875555991fdSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7876555991fdSmrg 10.*) 7877555991fdSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7878555991fdSmrg esac 7879555991fdSmrg ;; 7880555991fdSmrg esac 7881555991fdSmrg if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7882555991fdSmrg _lt_dar_single_mod='$single_module' 7883555991fdSmrg fi 7884555991fdSmrg if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7885555991fdSmrg _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7886555991fdSmrg else 7887555991fdSmrg _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7888555991fdSmrg fi 7889555991fdSmrg if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7890555991fdSmrg _lt_dsymutil='~$DSYMUTIL $lib || :' 7891555991fdSmrg else 7892555991fdSmrg _lt_dsymutil= 7893555991fdSmrg fi 7894555991fdSmrg ;; 7895555991fdSmrg esac 7896126a8a12Smrg 7897555991fdSmrgfor ac_header in dlfcn.h 7898555991fdSmrgdo : 7899555991fdSmrg ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7900555991fdSmrg" 7901555991fdSmrgif test "x$ac_cv_header_dlfcn_h" = xyes; then : 7902555991fdSmrg cat >>confdefs.h <<_ACEOF 7903555991fdSmrg#define HAVE_DLFCN_H 1 7904555991fdSmrg_ACEOF 7905126a8a12Smrg 7906555991fdSmrgfi 7907d656433aSmrg 7908555991fdSmrgdone 7909d656433aSmrg 7910126a8a12Smrg 7911d656433aSmrg 7912d656433aSmrg 7913126a8a12Smrg 7914555991fdSmrg# Set options 7915126a8a12Smrg 7916126a8a12Smrg 7917126a8a12Smrg 7918555991fdSmrg enable_dlopen=no 7919d656433aSmrg 7920d656433aSmrg 7921555991fdSmrg enable_win32_dll=no 7922d656433aSmrg 7923d656433aSmrg 7924555991fdSmrg # Check whether --enable-shared was given. 7925555991fdSmrgif test "${enable_shared+set}" = set; then : 7926555991fdSmrg enableval=$enable_shared; p=${PACKAGE-default} 7927555991fdSmrg case $enableval in 7928555991fdSmrg yes) enable_shared=yes ;; 7929555991fdSmrg no) enable_shared=no ;; 7930555991fdSmrg *) 7931555991fdSmrg enable_shared=no 7932555991fdSmrg # Look at the argument we got. We use all the common list separators. 7933555991fdSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7934555991fdSmrg for pkg in $enableval; do 7935555991fdSmrg IFS="$lt_save_ifs" 7936555991fdSmrg if test "X$pkg" = "X$p"; then 7937555991fdSmrg enable_shared=yes 7938555991fdSmrg fi 7939555991fdSmrg done 7940555991fdSmrg IFS="$lt_save_ifs" 7941555991fdSmrg ;; 7942555991fdSmrg esac 7943555991fdSmrgelse 7944555991fdSmrg enable_shared=yes 7945555991fdSmrgfi 7946d656433aSmrg 7947126a8a12Smrg 7948126a8a12Smrg 7949126a8a12Smrg 7950126a8a12Smrg 7951126a8a12Smrg 7952126a8a12Smrg 7953126a8a12Smrg 7954126a8a12Smrg 7955555991fdSmrg # Check whether --enable-static was given. 7956555991fdSmrgif test "${enable_static+set}" = set; then : 7957555991fdSmrg enableval=$enable_static; p=${PACKAGE-default} 7958555991fdSmrg case $enableval in 7959555991fdSmrg yes) enable_static=yes ;; 7960555991fdSmrg no) enable_static=no ;; 7961555991fdSmrg *) 7962555991fdSmrg enable_static=no 7963555991fdSmrg # Look at the argument we got. We use all the common list separators. 7964555991fdSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7965555991fdSmrg for pkg in $enableval; do 7966555991fdSmrg IFS="$lt_save_ifs" 7967555991fdSmrg if test "X$pkg" = "X$p"; then 7968555991fdSmrg enable_static=yes 7969555991fdSmrg fi 7970555991fdSmrg done 7971555991fdSmrg IFS="$lt_save_ifs" 7972126a8a12Smrg ;; 7973555991fdSmrg esac 7974555991fdSmrgelse 7975555991fdSmrg enable_static=yes 7976555991fdSmrgfi 7977126a8a12Smrg 7978126a8a12Smrg 7979d656433aSmrg 7980126a8a12Smrg 7981126a8a12Smrg 7982126a8a12Smrg 7983d656433aSmrg 7984126a8a12Smrg 7985126a8a12Smrg 7986126a8a12Smrg 7987555991fdSmrg# Check whether --with-pic was given. 7988555991fdSmrgif test "${with_pic+set}" = set; then : 7989555991fdSmrg withval=$with_pic; pic_mode="$withval" 7990555991fdSmrgelse 7991555991fdSmrg pic_mode=default 7992555991fdSmrgfi 7993555991fdSmrg 7994555991fdSmrg 7995555991fdSmrgtest -z "$pic_mode" && pic_mode=default 7996126a8a12Smrg 7997126a8a12Smrg 7998126a8a12Smrg 7999126a8a12Smrg 8000126a8a12Smrg 8001126a8a12Smrg 8002555991fdSmrg 8003555991fdSmrg # Check whether --enable-fast-install was given. 8004555991fdSmrgif test "${enable_fast_install+set}" = set; then : 8005555991fdSmrg enableval=$enable_fast_install; p=${PACKAGE-default} 8006555991fdSmrg case $enableval in 8007555991fdSmrg yes) enable_fast_install=yes ;; 8008555991fdSmrg no) enable_fast_install=no ;; 8009126a8a12Smrg *) 8010555991fdSmrg enable_fast_install=no 8011555991fdSmrg # Look at the argument we got. We use all the common list separators. 8012555991fdSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8013555991fdSmrg for pkg in $enableval; do 8014555991fdSmrg IFS="$lt_save_ifs" 8015555991fdSmrg if test "X$pkg" = "X$p"; then 8016555991fdSmrg enable_fast_install=yes 8017555991fdSmrg fi 8018555991fdSmrg done 8019555991fdSmrg IFS="$lt_save_ifs" 8020126a8a12Smrg ;; 8021126a8a12Smrg esac 8022555991fdSmrgelse 8023555991fdSmrg enable_fast_install=yes 8024555991fdSmrgfi 8025126a8a12Smrg 8026126a8a12Smrg 8027126a8a12Smrg 8028126a8a12Smrg 8029126a8a12Smrg 8030126a8a12Smrg 8031126a8a12Smrg 8032126a8a12Smrg 8033126a8a12Smrg 8034126a8a12Smrg 8035126a8a12Smrg 8036555991fdSmrg# This can be used to rebuild libtool when needed 8037555991fdSmrgLIBTOOL_DEPS="$ltmain" 8038555991fdSmrg 8039555991fdSmrg# Always use our own libtool. 8040555991fdSmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool' 8041555991fdSmrg 8042555991fdSmrg 8043555991fdSmrg 8044555991fdSmrg 8045555991fdSmrg 8046555991fdSmrg 8047555991fdSmrg 8048555991fdSmrg 8049555991fdSmrg 8050126a8a12Smrg 8051126a8a12Smrg 8052126a8a12Smrg 8053126a8a12Smrg 8054126a8a12Smrg 8055126a8a12Smrg 8056126a8a12Smrg 8057126a8a12Smrg 8058126a8a12Smrg 8059126a8a12Smrg 8060126a8a12Smrg 8061126a8a12Smrg 8062126a8a12Smrg 8063126a8a12Smrg 8064126a8a12Smrg 8065d656433aSmrg 8066d656433aSmrg 8067555991fdSmrgtest -z "$LN_S" && LN_S="ln -s" 8068555991fdSmrg 8069555991fdSmrg 8070555991fdSmrg 8071555991fdSmrg 8072d656433aSmrg 8073d656433aSmrg 8074126a8a12Smrg 8075126a8a12Smrg 8076126a8a12Smrg 8077126a8a12Smrg 8078126a8a12Smrg 8079126a8a12Smrg 8080126a8a12Smrg 8081126a8a12Smrg 8082555991fdSmrgif test -n "${ZSH_VERSION+set}" ; then 8083555991fdSmrg setopt NO_GLOB_SUBST 8084555991fdSmrgfi 8085126a8a12Smrg 8086555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8087555991fdSmrg$as_echo_n "checking for objdir... " >&6; } 8088555991fdSmrgif ${lt_cv_objdir+:} false; then : 8089555991fdSmrg $as_echo_n "(cached) " >&6 8090555991fdSmrgelse 8091555991fdSmrg rm -f .libs 2>/dev/null 8092555991fdSmrgmkdir .libs 2>/dev/null 8093555991fdSmrgif test -d .libs; then 8094555991fdSmrg lt_cv_objdir=.libs 8095555991fdSmrgelse 8096555991fdSmrg # MS-DOS does not allow filenames that begin with a dot. 8097555991fdSmrg lt_cv_objdir=_libs 8098555991fdSmrgfi 8099555991fdSmrgrmdir .libs 2>/dev/null 8100555991fdSmrgfi 8101555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8102555991fdSmrg$as_echo "$lt_cv_objdir" >&6; } 8103555991fdSmrgobjdir=$lt_cv_objdir 8104126a8a12Smrg 8105126a8a12Smrg 8106126a8a12Smrg 8107555991fdSmrg 8108555991fdSmrg 8109555991fdSmrgcat >>confdefs.h <<_ACEOF 8110555991fdSmrg#define LT_OBJDIR "$lt_cv_objdir/" 8111d656433aSmrg_ACEOF 8112d656433aSmrg 8113d656433aSmrg 8114d656433aSmrg 8115d656433aSmrg 8116555991fdSmrgcase $host_os in 8117555991fdSmrgaix3*) 8118555991fdSmrg # AIX sometimes has problems with the GCC collect2 program. For some 8119555991fdSmrg # reason, if we set the COLLECT_NAMES environment variable, the problems 8120555991fdSmrg # vanish in a puff of smoke. 8121555991fdSmrg if test "X${COLLECT_NAMES+set}" != Xset; then 8122555991fdSmrg COLLECT_NAMES= 8123555991fdSmrg export COLLECT_NAMES 8124555991fdSmrg fi 8125555991fdSmrg ;; 8126555991fdSmrgesac 8127126a8a12Smrg 8128555991fdSmrg# Global variables: 8129555991fdSmrgofile=libtool 8130555991fdSmrgcan_build_shared=yes 8131126a8a12Smrg 8132555991fdSmrg# All known linkers require a `.a' archive for static linking (except MSVC, 8133555991fdSmrg# which needs '.lib'). 8134555991fdSmrglibext=a 8135d656433aSmrg 8136555991fdSmrgwith_gnu_ld="$lt_cv_prog_gnu_ld" 8137126a8a12Smrg 8138555991fdSmrgold_CC="$CC" 8139555991fdSmrgold_CFLAGS="$CFLAGS" 8140126a8a12Smrg 8141555991fdSmrg# Set sane defaults for various variables 8142555991fdSmrgtest -z "$CC" && CC=cc 8143555991fdSmrgtest -z "$LTCC" && LTCC=$CC 8144555991fdSmrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8145555991fdSmrgtest -z "$LD" && LD=ld 8146555991fdSmrgtest -z "$ac_objext" && ac_objext=o 8147126a8a12Smrg 8148555991fdSmrgfor cc_temp in $compiler""; do 8149555991fdSmrg case $cc_temp in 8150555991fdSmrg compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8151555991fdSmrg distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8152555991fdSmrg \-*) ;; 8153555991fdSmrg *) break;; 8154555991fdSmrg esac 8155555991fdSmrgdone 8156555991fdSmrgcc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8157126a8a12Smrg 8158126a8a12Smrg 8159555991fdSmrg# Only perform the check for file, if the check method requires it 8160555991fdSmrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file 8161555991fdSmrgcase $deplibs_check_method in 8162555991fdSmrgfile_magic*) 8163555991fdSmrg if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8164555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8165555991fdSmrg$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8166555991fdSmrgif ${lt_cv_path_MAGIC_CMD+:} false; then : 8167555991fdSmrg $as_echo_n "(cached) " >&6 8168555991fdSmrgelse 8169555991fdSmrg case $MAGIC_CMD in 8170555991fdSmrg[\\/*] | ?:[\\/]*) 8171555991fdSmrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8172555991fdSmrg ;; 8173555991fdSmrg*) 8174555991fdSmrg lt_save_MAGIC_CMD="$MAGIC_CMD" 8175555991fdSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8176555991fdSmrg ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8177555991fdSmrg for ac_dir in $ac_dummy; do 8178555991fdSmrg IFS="$lt_save_ifs" 8179555991fdSmrg test -z "$ac_dir" && ac_dir=. 8180555991fdSmrg if test -f $ac_dir/${ac_tool_prefix}file; then 8181555991fdSmrg lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8182555991fdSmrg if test -n "$file_magic_test_file"; then 8183555991fdSmrg case $deplibs_check_method in 8184555991fdSmrg "file_magic "*) 8185555991fdSmrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8186555991fdSmrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8187555991fdSmrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8188555991fdSmrg $EGREP "$file_magic_regex" > /dev/null; then 8189555991fdSmrg : 8190555991fdSmrg else 8191555991fdSmrg cat <<_LT_EOF 1>&2 8192555991fdSmrg 8193555991fdSmrg*** Warning: the command libtool uses to detect shared libraries, 8194555991fdSmrg*** $file_magic_cmd, produces output that libtool cannot recognize. 8195555991fdSmrg*** The result is that libtool may fail to recognize shared libraries 8196555991fdSmrg*** as such. This will affect the creation of libtool libraries that 8197555991fdSmrg*** depend on shared libraries, but programs linked with such libtool 8198555991fdSmrg*** libraries will work regardless of this problem. Nevertheless, you 8199555991fdSmrg*** may want to report the problem to your system manager and/or to 8200555991fdSmrg*** bug-libtool@gnu.org 8201126a8a12Smrg 8202555991fdSmrg_LT_EOF 8203555991fdSmrg fi ;; 8204d656433aSmrg esac 8205126a8a12Smrg fi 8206555991fdSmrg break 8207555991fdSmrg fi 8208555991fdSmrg done 8209555991fdSmrg IFS="$lt_save_ifs" 8210555991fdSmrg MAGIC_CMD="$lt_save_MAGIC_CMD" 8211555991fdSmrg ;; 8212555991fdSmrgesac 8213555991fdSmrgfi 8214126a8a12Smrg 8215555991fdSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8216555991fdSmrgif test -n "$MAGIC_CMD"; then 8217555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8218555991fdSmrg$as_echo "$MAGIC_CMD" >&6; } 8219555991fdSmrgelse 8220555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8221555991fdSmrg$as_echo "no" >&6; } 8222555991fdSmrgfi 8223126a8a12Smrg 8224126a8a12Smrg 8225126a8a12Smrg 8226126a8a12Smrg 8227126a8a12Smrg 8228555991fdSmrgif test -z "$lt_cv_path_MAGIC_CMD"; then 8229555991fdSmrg if test -n "$ac_tool_prefix"; then 8230555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8231555991fdSmrg$as_echo_n "checking for file... " >&6; } 8232555991fdSmrgif ${lt_cv_path_MAGIC_CMD+:} false; then : 8233555991fdSmrg $as_echo_n "(cached) " >&6 8234555991fdSmrgelse 8235555991fdSmrg case $MAGIC_CMD in 8236555991fdSmrg[\\/*] | ?:[\\/]*) 8237555991fdSmrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8238555991fdSmrg ;; 8239555991fdSmrg*) 8240555991fdSmrg lt_save_MAGIC_CMD="$MAGIC_CMD" 8241555991fdSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8242555991fdSmrg ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8243555991fdSmrg for ac_dir in $ac_dummy; do 8244555991fdSmrg IFS="$lt_save_ifs" 8245555991fdSmrg test -z "$ac_dir" && ac_dir=. 8246555991fdSmrg if test -f $ac_dir/file; then 8247555991fdSmrg lt_cv_path_MAGIC_CMD="$ac_dir/file" 8248555991fdSmrg if test -n "$file_magic_test_file"; then 8249555991fdSmrg case $deplibs_check_method in 8250555991fdSmrg "file_magic "*) 8251555991fdSmrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8252555991fdSmrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8253555991fdSmrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8254555991fdSmrg $EGREP "$file_magic_regex" > /dev/null; then 8255555991fdSmrg : 8256555991fdSmrg else 8257555991fdSmrg cat <<_LT_EOF 1>&2 8258126a8a12Smrg 8259555991fdSmrg*** Warning: the command libtool uses to detect shared libraries, 8260555991fdSmrg*** $file_magic_cmd, produces output that libtool cannot recognize. 8261555991fdSmrg*** The result is that libtool may fail to recognize shared libraries 8262555991fdSmrg*** as such. This will affect the creation of libtool libraries that 8263555991fdSmrg*** depend on shared libraries, but programs linked with such libtool 8264555991fdSmrg*** libraries will work regardless of this problem. Nevertheless, you 8265555991fdSmrg*** may want to report the problem to your system manager and/or to 8266555991fdSmrg*** bug-libtool@gnu.org 8267126a8a12Smrg 8268555991fdSmrg_LT_EOF 8269555991fdSmrg fi ;; 8270555991fdSmrg esac 8271126a8a12Smrg fi 8272555991fdSmrg break 8273555991fdSmrg fi 8274555991fdSmrg done 8275555991fdSmrg IFS="$lt_save_ifs" 8276555991fdSmrg MAGIC_CMD="$lt_save_MAGIC_CMD" 8277555991fdSmrg ;; 8278555991fdSmrgesac 8279555991fdSmrgfi 8280126a8a12Smrg 8281555991fdSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8282555991fdSmrgif test -n "$MAGIC_CMD"; then 8283555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8284555991fdSmrg$as_echo "$MAGIC_CMD" >&6; } 8285555991fdSmrgelse 8286555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8287555991fdSmrg$as_echo "no" >&6; } 8288555991fdSmrgfi 8289126a8a12Smrg 8290d656433aSmrg 8291555991fdSmrg else 8292555991fdSmrg MAGIC_CMD=: 8293126a8a12Smrg fi 8294555991fdSmrgfi 8295126a8a12Smrg 8296555991fdSmrg fi 8297555991fdSmrg ;; 8298555991fdSmrgesac 8299d656433aSmrg 8300555991fdSmrg# Use C for the default configuration in the libtool script 8301555991fdSmrg 8302555991fdSmrglt_save_CC="$CC" 8303555991fdSmrgac_ext=c 8304555991fdSmrgac_cpp='$CPP $CPPFLAGS' 8305555991fdSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8306555991fdSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8307555991fdSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 8308555991fdSmrg 8309555991fdSmrg 8310555991fdSmrg# Source file extension for C test sources. 8311555991fdSmrgac_ext=c 8312d656433aSmrg 8313555991fdSmrg# Object file extension for compiled C test sources. 8314555991fdSmrgobjext=o 8315555991fdSmrgobjext=$objext 8316d656433aSmrg 8317555991fdSmrg# Code to be used in simple compile tests 8318555991fdSmrglt_simple_compile_test_code="int some_variable = 0;" 8319d656433aSmrg 8320555991fdSmrg# Code to be used in simple link tests 8321555991fdSmrglt_simple_link_test_code='int main(){return(0);}' 8322d656433aSmrg 8323d656433aSmrg 8324d656433aSmrg 8325d656433aSmrg 8326d656433aSmrg 8327d656433aSmrg 8328d656433aSmrg 8329555991fdSmrg# If no C compiler was specified, use CC. 8330555991fdSmrgLTCC=${LTCC-"$CC"} 8331d656433aSmrg 8332555991fdSmrg# If no C compiler flags were specified, use CFLAGS. 8333555991fdSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8334d656433aSmrg 8335555991fdSmrg# Allow CC to be a program name with arguments. 8336555991fdSmrgcompiler=$CC 8337d656433aSmrg 8338555991fdSmrg# Save the default compiler, since it gets overwritten when the other 8339555991fdSmrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8340555991fdSmrgcompiler_DEFAULT=$CC 8341d656433aSmrg 8342555991fdSmrg# save warnings/boilerplate of simple test code 8343555991fdSmrgac_outfile=conftest.$ac_objext 8344555991fdSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext 8345555991fdSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8346555991fdSmrg_lt_compiler_boilerplate=`cat conftest.err` 8347555991fdSmrg$RM conftest* 8348126a8a12Smrg 8349555991fdSmrgac_outfile=conftest.$ac_objext 8350555991fdSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext 8351555991fdSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8352555991fdSmrg_lt_linker_boilerplate=`cat conftest.err` 8353555991fdSmrg$RM -r conftest* 8354126a8a12Smrg 8355126a8a12Smrg 8356555991fdSmrgif test -n "$compiler"; then 8357126a8a12Smrg 8358555991fdSmrglt_prog_compiler_no_builtin_flag= 8359d656433aSmrg 8360555991fdSmrgif test "$GCC" = yes; then 8361555991fdSmrg case $cc_basename in 8362555991fdSmrg nvcc*) 8363555991fdSmrg lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8364555991fdSmrg *) 8365555991fdSmrg lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8366555991fdSmrg esac 8367d656433aSmrg 8368555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8369555991fdSmrg$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8370555991fdSmrgif ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8371555991fdSmrg $as_echo_n "(cached) " >&6 8372555991fdSmrgelse 8373555991fdSmrg lt_cv_prog_compiler_rtti_exceptions=no 8374555991fdSmrg ac_outfile=conftest.$ac_objext 8375555991fdSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8376555991fdSmrg lt_compiler_flag="-fno-rtti -fno-exceptions" 8377555991fdSmrg # Insert the option either (1) after the last *FLAGS variable, or 8378555991fdSmrg # (2) before a word containing "conftest.", or (3) at the end. 8379555991fdSmrg # Note that $ac_compile itself does not contain backslashes and begins 8380555991fdSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 8381555991fdSmrg # The option is referenced via a variable to avoid confusing sed. 8382555991fdSmrg lt_compile=`echo "$ac_compile" | $SED \ 8383555991fdSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8384555991fdSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8385555991fdSmrg -e 's:$: $lt_compiler_flag:'` 8386555991fdSmrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8387555991fdSmrg (eval "$lt_compile" 2>conftest.err) 8388555991fdSmrg ac_status=$? 8389555991fdSmrg cat conftest.err >&5 8390555991fdSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 8391555991fdSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 8392555991fdSmrg # The compiler can only warn and ignore the option if not recognized 8393555991fdSmrg # So say no if there are warnings other than the usual output. 8394555991fdSmrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8395555991fdSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8396555991fdSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8397555991fdSmrg lt_cv_prog_compiler_rtti_exceptions=yes 8398555991fdSmrg fi 8399555991fdSmrg fi 8400555991fdSmrg $RM conftest* 8401d656433aSmrg 8402555991fdSmrgfi 8403555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8404555991fdSmrg$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8405d656433aSmrg 8406555991fdSmrgif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8407555991fdSmrg lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8408555991fdSmrgelse 8409555991fdSmrg : 8410555991fdSmrgfi 8411d656433aSmrg 8412555991fdSmrgfi 8413d656433aSmrg 8414d656433aSmrg 8415d656433aSmrg 8416d656433aSmrg 8417d656433aSmrg 8418d656433aSmrg 8419555991fdSmrg lt_prog_compiler_wl= 8420555991fdSmrglt_prog_compiler_pic= 8421555991fdSmrglt_prog_compiler_static= 8422d656433aSmrg 8423555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8424555991fdSmrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8425d656433aSmrg 8426555991fdSmrg if test "$GCC" = yes; then 8427555991fdSmrg lt_prog_compiler_wl='-Wl,' 8428555991fdSmrg lt_prog_compiler_static='-static' 8429d656433aSmrg 8430555991fdSmrg case $host_os in 8431555991fdSmrg aix*) 8432555991fdSmrg # All AIX code is PIC. 8433555991fdSmrg if test "$host_cpu" = ia64; then 8434555991fdSmrg # AIX 5 now supports IA64 processor 8435555991fdSmrg lt_prog_compiler_static='-Bstatic' 8436555991fdSmrg fi 8437555991fdSmrg ;; 8438d656433aSmrg 8439555991fdSmrg amigaos*) 8440555991fdSmrg case $host_cpu in 8441555991fdSmrg powerpc) 8442555991fdSmrg # see comment about AmigaOS4 .so support 8443555991fdSmrg lt_prog_compiler_pic='-fPIC' 8444555991fdSmrg ;; 8445555991fdSmrg m68k) 8446555991fdSmrg # FIXME: we need at least 68020 code to build shared libraries, but 8447555991fdSmrg # adding the `-m68020' flag to GCC prevents building anything better, 8448555991fdSmrg # like `-m68040'. 8449555991fdSmrg lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8450555991fdSmrg ;; 8451555991fdSmrg esac 8452555991fdSmrg ;; 8453d656433aSmrg 8454555991fdSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8455555991fdSmrg # PIC is the default for these OSes. 8456555991fdSmrg ;; 8457d656433aSmrg 8458555991fdSmrg mingw* | cygwin* | pw32* | os2* | cegcc*) 8459555991fdSmrg # This hack is so that the source file can tell whether it is being 8460555991fdSmrg # built for inclusion in a dll (and should export symbols for example). 8461555991fdSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 8462555991fdSmrg # (--disable-auto-import) libraries 8463555991fdSmrg lt_prog_compiler_pic='-DDLL_EXPORT' 8464555991fdSmrg ;; 8465d656433aSmrg 8466555991fdSmrg darwin* | rhapsody*) 8467555991fdSmrg # PIC is the default on this platform 8468555991fdSmrg # Common symbols not allowed in MH_DYLIB files 8469555991fdSmrg lt_prog_compiler_pic='-fno-common' 8470555991fdSmrg ;; 8471d656433aSmrg 8472555991fdSmrg haiku*) 8473555991fdSmrg # PIC is the default for Haiku. 8474555991fdSmrg # The "-static" flag exists, but is broken. 8475555991fdSmrg lt_prog_compiler_static= 8476555991fdSmrg ;; 8477d656433aSmrg 8478555991fdSmrg hpux*) 8479555991fdSmrg # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8480555991fdSmrg # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8481555991fdSmrg # sets the default TLS model and affects inlining. 8482555991fdSmrg case $host_cpu in 8483555991fdSmrg hppa*64*) 8484555991fdSmrg # +Z the default 8485555991fdSmrg ;; 8486555991fdSmrg *) 8487555991fdSmrg lt_prog_compiler_pic='-fPIC' 8488555991fdSmrg ;; 8489555991fdSmrg esac 8490555991fdSmrg ;; 8491d656433aSmrg 8492555991fdSmrg interix[3-9]*) 8493555991fdSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8494555991fdSmrg # Instead, we relocate shared libraries at runtime. 8495555991fdSmrg ;; 8496d656433aSmrg 8497555991fdSmrg msdosdjgpp*) 8498555991fdSmrg # Just because we use GCC doesn't mean we suddenly get shared libraries 8499555991fdSmrg # on systems that don't support them. 8500555991fdSmrg lt_prog_compiler_can_build_shared=no 8501555991fdSmrg enable_shared=no 8502555991fdSmrg ;; 8503d656433aSmrg 8504555991fdSmrg *nto* | *qnx*) 8505555991fdSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 8506555991fdSmrg # it will coredump. 8507555991fdSmrg lt_prog_compiler_pic='-fPIC -shared' 8508555991fdSmrg ;; 8509d656433aSmrg 8510555991fdSmrg sysv4*MP*) 8511555991fdSmrg if test -d /usr/nec; then 8512555991fdSmrg lt_prog_compiler_pic=-Kconform_pic 8513555991fdSmrg fi 8514555991fdSmrg ;; 8515d656433aSmrg 8516555991fdSmrg *) 8517555991fdSmrg lt_prog_compiler_pic='-fPIC' 8518555991fdSmrg ;; 8519555991fdSmrg esac 8520d656433aSmrg 8521555991fdSmrg case $cc_basename in 8522555991fdSmrg nvcc*) # Cuda Compiler Driver 2.2 8523555991fdSmrg lt_prog_compiler_wl='-Xlinker ' 8524555991fdSmrg lt_prog_compiler_pic='-Xcompiler -fPIC' 8525555991fdSmrg ;; 8526555991fdSmrg esac 8527555991fdSmrg else 8528555991fdSmrg # PORTME Check for flag to pass linker flags through the system compiler. 8529555991fdSmrg case $host_os in 8530555991fdSmrg aix*) 8531555991fdSmrg lt_prog_compiler_wl='-Wl,' 8532555991fdSmrg if test "$host_cpu" = ia64; then 8533555991fdSmrg # AIX 5 now supports IA64 processor 8534555991fdSmrg lt_prog_compiler_static='-Bstatic' 8535555991fdSmrg else 8536555991fdSmrg lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8537555991fdSmrg fi 8538555991fdSmrg ;; 8539d656433aSmrg 8540555991fdSmrg mingw* | cygwin* | pw32* | os2* | cegcc*) 8541555991fdSmrg # This hack is so that the source file can tell whether it is being 8542555991fdSmrg # built for inclusion in a dll (and should export symbols for example). 8543555991fdSmrg lt_prog_compiler_pic='-DDLL_EXPORT' 8544555991fdSmrg ;; 8545d656433aSmrg 8546555991fdSmrg hpux9* | hpux10* | hpux11*) 8547555991fdSmrg lt_prog_compiler_wl='-Wl,' 8548555991fdSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8549555991fdSmrg # not for PA HP-UX. 8550555991fdSmrg case $host_cpu in 8551555991fdSmrg hppa*64*|ia64*) 8552555991fdSmrg # +Z the default 8553555991fdSmrg ;; 8554555991fdSmrg *) 8555555991fdSmrg lt_prog_compiler_pic='+Z' 8556555991fdSmrg ;; 8557555991fdSmrg esac 8558555991fdSmrg # Is there a better lt_prog_compiler_static that works with the bundled CC? 8559555991fdSmrg lt_prog_compiler_static='${wl}-a ${wl}archive' 8560555991fdSmrg ;; 8561d656433aSmrg 8562555991fdSmrg irix5* | irix6* | nonstopux*) 8563555991fdSmrg lt_prog_compiler_wl='-Wl,' 8564555991fdSmrg # PIC (with -KPIC) is the default. 8565555991fdSmrg lt_prog_compiler_static='-non_shared' 8566555991fdSmrg ;; 8567d656433aSmrg 8568555991fdSmrg linux* | k*bsd*-gnu | kopensolaris*-gnu) 8569555991fdSmrg case $cc_basename in 8570555991fdSmrg # old Intel for x86_64 which still supported -KPIC. 8571555991fdSmrg ecc*) 8572555991fdSmrg lt_prog_compiler_wl='-Wl,' 8573555991fdSmrg lt_prog_compiler_pic='-KPIC' 8574555991fdSmrg lt_prog_compiler_static='-static' 8575555991fdSmrg ;; 8576555991fdSmrg # icc used to be incompatible with GCC. 8577555991fdSmrg # ICC 10 doesn't accept -KPIC any more. 8578555991fdSmrg icc* | ifort*) 8579555991fdSmrg lt_prog_compiler_wl='-Wl,' 8580555991fdSmrg lt_prog_compiler_pic='-fPIC' 8581555991fdSmrg lt_prog_compiler_static='-static' 8582555991fdSmrg ;; 8583555991fdSmrg # Lahey Fortran 8.1. 8584555991fdSmrg lf95*) 8585555991fdSmrg lt_prog_compiler_wl='-Wl,' 8586555991fdSmrg lt_prog_compiler_pic='--shared' 8587555991fdSmrg lt_prog_compiler_static='--static' 8588555991fdSmrg ;; 8589555991fdSmrg pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8590555991fdSmrg # Portland Group compilers (*not* the Pentium gcc compiler, 8591555991fdSmrg # which looks to be a dead project) 8592555991fdSmrg lt_prog_compiler_wl='-Wl,' 8593555991fdSmrg lt_prog_compiler_pic='-fpic' 8594555991fdSmrg lt_prog_compiler_static='-Bstatic' 8595555991fdSmrg ;; 8596555991fdSmrg ccc*) 8597555991fdSmrg lt_prog_compiler_wl='-Wl,' 8598555991fdSmrg # All Alpha code is PIC. 8599555991fdSmrg lt_prog_compiler_static='-non_shared' 8600555991fdSmrg ;; 8601555991fdSmrg xl* | bgxl* | bgf* | mpixl*) 8602555991fdSmrg # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8603555991fdSmrg lt_prog_compiler_wl='-Wl,' 8604555991fdSmrg lt_prog_compiler_pic='-qpic' 8605555991fdSmrg lt_prog_compiler_static='-qstaticlink' 8606555991fdSmrg ;; 8607555991fdSmrg *) 8608555991fdSmrg case `$CC -V 2>&1 | sed 5q` in 8609555991fdSmrg *Sun\ F* | *Sun*Fortran*) 8610555991fdSmrg # Sun Fortran 8.3 passes all unrecognized flags to the linker 8611555991fdSmrg lt_prog_compiler_pic='-KPIC' 8612555991fdSmrg lt_prog_compiler_static='-Bstatic' 8613555991fdSmrg lt_prog_compiler_wl='' 8614555991fdSmrg ;; 8615555991fdSmrg *Sun\ C*) 8616555991fdSmrg # Sun C 5.9 8617555991fdSmrg lt_prog_compiler_pic='-KPIC' 8618555991fdSmrg lt_prog_compiler_static='-Bstatic' 8619555991fdSmrg lt_prog_compiler_wl='-Wl,' 8620555991fdSmrg ;; 8621555991fdSmrg esac 8622555991fdSmrg ;; 8623555991fdSmrg esac 8624555991fdSmrg ;; 8625d656433aSmrg 8626555991fdSmrg newsos6) 8627555991fdSmrg lt_prog_compiler_pic='-KPIC' 8628555991fdSmrg lt_prog_compiler_static='-Bstatic' 8629555991fdSmrg ;; 8630d656433aSmrg 8631555991fdSmrg *nto* | *qnx*) 8632555991fdSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 8633555991fdSmrg # it will coredump. 8634555991fdSmrg lt_prog_compiler_pic='-fPIC -shared' 8635555991fdSmrg ;; 8636d656433aSmrg 8637555991fdSmrg osf3* | osf4* | osf5*) 8638555991fdSmrg lt_prog_compiler_wl='-Wl,' 8639555991fdSmrg # All OSF/1 code is PIC. 8640555991fdSmrg lt_prog_compiler_static='-non_shared' 8641555991fdSmrg ;; 8642d656433aSmrg 8643555991fdSmrg rdos*) 8644555991fdSmrg lt_prog_compiler_static='-non_shared' 8645555991fdSmrg ;; 8646d656433aSmrg 8647555991fdSmrg solaris*) 8648555991fdSmrg lt_prog_compiler_pic='-KPIC' 8649555991fdSmrg lt_prog_compiler_static='-Bstatic' 8650555991fdSmrg case $cc_basename in 8651555991fdSmrg f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8652555991fdSmrg lt_prog_compiler_wl='-Qoption ld ';; 8653555991fdSmrg *) 8654555991fdSmrg lt_prog_compiler_wl='-Wl,';; 8655555991fdSmrg esac 8656555991fdSmrg ;; 8657d656433aSmrg 8658555991fdSmrg sunos4*) 8659555991fdSmrg lt_prog_compiler_wl='-Qoption ld ' 8660555991fdSmrg lt_prog_compiler_pic='-PIC' 8661555991fdSmrg lt_prog_compiler_static='-Bstatic' 8662555991fdSmrg ;; 8663d656433aSmrg 8664555991fdSmrg sysv4 | sysv4.2uw2* | sysv4.3*) 8665555991fdSmrg lt_prog_compiler_wl='-Wl,' 8666555991fdSmrg lt_prog_compiler_pic='-KPIC' 8667555991fdSmrg lt_prog_compiler_static='-Bstatic' 8668555991fdSmrg ;; 8669d656433aSmrg 8670555991fdSmrg sysv4*MP*) 8671555991fdSmrg if test -d /usr/nec ;then 8672555991fdSmrg lt_prog_compiler_pic='-Kconform_pic' 8673555991fdSmrg lt_prog_compiler_static='-Bstatic' 8674555991fdSmrg fi 8675555991fdSmrg ;; 8676d656433aSmrg 8677555991fdSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8678555991fdSmrg lt_prog_compiler_wl='-Wl,' 8679555991fdSmrg lt_prog_compiler_pic='-KPIC' 8680555991fdSmrg lt_prog_compiler_static='-Bstatic' 8681555991fdSmrg ;; 8682d656433aSmrg 8683555991fdSmrg unicos*) 8684555991fdSmrg lt_prog_compiler_wl='-Wl,' 8685555991fdSmrg lt_prog_compiler_can_build_shared=no 8686555991fdSmrg ;; 8687d656433aSmrg 8688555991fdSmrg uts4*) 8689555991fdSmrg lt_prog_compiler_pic='-pic' 8690555991fdSmrg lt_prog_compiler_static='-Bstatic' 8691555991fdSmrg ;; 8692d656433aSmrg 8693555991fdSmrg *) 8694555991fdSmrg lt_prog_compiler_can_build_shared=no 8695555991fdSmrg ;; 8696555991fdSmrg esac 8697555991fdSmrg fi 8698d656433aSmrg 8699555991fdSmrgcase $host_os in 8700555991fdSmrg # For platforms which do not support PIC, -DPIC is meaningless: 8701555991fdSmrg *djgpp*) 8702555991fdSmrg lt_prog_compiler_pic= 8703555991fdSmrg ;; 8704555991fdSmrg *) 8705555991fdSmrg lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8706555991fdSmrg ;; 8707555991fdSmrgesac 8708555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8709555991fdSmrg$as_echo "$lt_prog_compiler_pic" >&6; } 8710d656433aSmrg 8711d656433aSmrg 8712d656433aSmrg 8713d656433aSmrg 8714d656433aSmrg 8715d656433aSmrg 8716555991fdSmrg# 8717555991fdSmrg# Check to make sure the PIC flag actually works. 8718555991fdSmrg# 8719555991fdSmrgif test -n "$lt_prog_compiler_pic"; then 8720555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8721555991fdSmrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8722555991fdSmrgif ${lt_cv_prog_compiler_pic_works+:} false; then : 8723555991fdSmrg $as_echo_n "(cached) " >&6 8724555991fdSmrgelse 8725555991fdSmrg lt_cv_prog_compiler_pic_works=no 8726555991fdSmrg ac_outfile=conftest.$ac_objext 8727555991fdSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8728555991fdSmrg lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8729555991fdSmrg # Insert the option either (1) after the last *FLAGS variable, or 8730555991fdSmrg # (2) before a word containing "conftest.", or (3) at the end. 8731555991fdSmrg # Note that $ac_compile itself does not contain backslashes and begins 8732555991fdSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 8733555991fdSmrg # The option is referenced via a variable to avoid confusing sed. 8734555991fdSmrg lt_compile=`echo "$ac_compile" | $SED \ 8735555991fdSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8736555991fdSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8737555991fdSmrg -e 's:$: $lt_compiler_flag:'` 8738555991fdSmrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8739555991fdSmrg (eval "$lt_compile" 2>conftest.err) 8740555991fdSmrg ac_status=$? 8741555991fdSmrg cat conftest.err >&5 8742555991fdSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 8743555991fdSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 8744555991fdSmrg # The compiler can only warn and ignore the option if not recognized 8745555991fdSmrg # So say no if there are warnings other than the usual output. 8746555991fdSmrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8747555991fdSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8748555991fdSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8749555991fdSmrg lt_cv_prog_compiler_pic_works=yes 8750555991fdSmrg fi 8751555991fdSmrg fi 8752555991fdSmrg $RM conftest* 8753d656433aSmrg 8754555991fdSmrgfi 8755555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8756555991fdSmrg$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8757d656433aSmrg 8758555991fdSmrgif test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8759555991fdSmrg case $lt_prog_compiler_pic in 8760555991fdSmrg "" | " "*) ;; 8761555991fdSmrg *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8762555991fdSmrg esac 8763555991fdSmrgelse 8764555991fdSmrg lt_prog_compiler_pic= 8765555991fdSmrg lt_prog_compiler_can_build_shared=no 8766555991fdSmrgfi 8767d656433aSmrg 8768555991fdSmrgfi 8769d656433aSmrg 8770d656433aSmrg 8771d656433aSmrg 8772d656433aSmrg 8773d656433aSmrg 8774d656433aSmrg 8775555991fdSmrg# 8776555991fdSmrg# Check to make sure the static flag actually works. 8777555991fdSmrg# 8778555991fdSmrgwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8779555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8780555991fdSmrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8781555991fdSmrgif ${lt_cv_prog_compiler_static_works+:} false; then : 8782555991fdSmrg $as_echo_n "(cached) " >&6 8783555991fdSmrgelse 8784555991fdSmrg lt_cv_prog_compiler_static_works=no 8785555991fdSmrg save_LDFLAGS="$LDFLAGS" 8786555991fdSmrg LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8787555991fdSmrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 8788555991fdSmrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8789555991fdSmrg # The linker can only warn and ignore the option if not recognized 8790555991fdSmrg # So say no if there are warnings 8791555991fdSmrg if test -s conftest.err; then 8792555991fdSmrg # Append any errors to the config.log. 8793555991fdSmrg cat conftest.err 1>&5 8794555991fdSmrg $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8795555991fdSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8796555991fdSmrg if diff conftest.exp conftest.er2 >/dev/null; then 8797555991fdSmrg lt_cv_prog_compiler_static_works=yes 8798555991fdSmrg fi 8799555991fdSmrg else 8800555991fdSmrg lt_cv_prog_compiler_static_works=yes 8801555991fdSmrg fi 8802555991fdSmrg fi 8803555991fdSmrg $RM -r conftest* 8804555991fdSmrg LDFLAGS="$save_LDFLAGS" 8805d656433aSmrg 8806555991fdSmrgfi 8807555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8808555991fdSmrg$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8809d656433aSmrg 8810555991fdSmrgif test x"$lt_cv_prog_compiler_static_works" = xyes; then 8811555991fdSmrg : 8812555991fdSmrgelse 8813555991fdSmrg lt_prog_compiler_static= 8814555991fdSmrgfi 8815d656433aSmrg 8816d656433aSmrg 8817d656433aSmrg 8818d656433aSmrg 8819d656433aSmrg 8820d656433aSmrg 8821d656433aSmrg 8822555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8823555991fdSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8824555991fdSmrgif ${lt_cv_prog_compiler_c_o+:} false; then : 8825555991fdSmrg $as_echo_n "(cached) " >&6 8826555991fdSmrgelse 8827555991fdSmrg lt_cv_prog_compiler_c_o=no 8828555991fdSmrg $RM -r conftest 2>/dev/null 8829555991fdSmrg mkdir conftest 8830555991fdSmrg cd conftest 8831555991fdSmrg mkdir out 8832555991fdSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8833d656433aSmrg 8834555991fdSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 8835555991fdSmrg # Insert the option either (1) after the last *FLAGS variable, or 8836555991fdSmrg # (2) before a word containing "conftest.", or (3) at the end. 8837555991fdSmrg # Note that $ac_compile itself does not contain backslashes and begins 8838555991fdSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 8839555991fdSmrg lt_compile=`echo "$ac_compile" | $SED \ 8840555991fdSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8841555991fdSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8842555991fdSmrg -e 's:$: $lt_compiler_flag:'` 8843555991fdSmrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8844555991fdSmrg (eval "$lt_compile" 2>out/conftest.err) 8845555991fdSmrg ac_status=$? 8846555991fdSmrg cat out/conftest.err >&5 8847555991fdSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 8848555991fdSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 8849555991fdSmrg then 8850555991fdSmrg # The compiler can only warn and ignore the option if not recognized 8851555991fdSmrg # So say no if there are warnings 8852555991fdSmrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8853555991fdSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8854555991fdSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8855555991fdSmrg lt_cv_prog_compiler_c_o=yes 8856555991fdSmrg fi 8857555991fdSmrg fi 8858555991fdSmrg chmod u+w . 2>&5 8859555991fdSmrg $RM conftest* 8860555991fdSmrg # SGI C++ compiler will create directory out/ii_files/ for 8861555991fdSmrg # template instantiation 8862555991fdSmrg test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8863555991fdSmrg $RM out/* && rmdir out 8864555991fdSmrg cd .. 8865555991fdSmrg $RM -r conftest 8866555991fdSmrg $RM conftest* 8867d656433aSmrg 8868555991fdSmrgfi 8869555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8870555991fdSmrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8871d656433aSmrg 8872d656433aSmrg 8873d656433aSmrg 8874d656433aSmrg 8875d656433aSmrg 8876d656433aSmrg 8877555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8878555991fdSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8879555991fdSmrgif ${lt_cv_prog_compiler_c_o+:} false; then : 8880555991fdSmrg $as_echo_n "(cached) " >&6 8881555991fdSmrgelse 8882555991fdSmrg lt_cv_prog_compiler_c_o=no 8883555991fdSmrg $RM -r conftest 2>/dev/null 8884555991fdSmrg mkdir conftest 8885555991fdSmrg cd conftest 8886555991fdSmrg mkdir out 8887555991fdSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8888d656433aSmrg 8889555991fdSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 8890555991fdSmrg # Insert the option either (1) after the last *FLAGS variable, or 8891555991fdSmrg # (2) before a word containing "conftest.", or (3) at the end. 8892555991fdSmrg # Note that $ac_compile itself does not contain backslashes and begins 8893555991fdSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 8894555991fdSmrg lt_compile=`echo "$ac_compile" | $SED \ 8895555991fdSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8896555991fdSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8897555991fdSmrg -e 's:$: $lt_compiler_flag:'` 8898555991fdSmrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8899555991fdSmrg (eval "$lt_compile" 2>out/conftest.err) 8900555991fdSmrg ac_status=$? 8901555991fdSmrg cat out/conftest.err >&5 8902555991fdSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 8903555991fdSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 8904555991fdSmrg then 8905555991fdSmrg # The compiler can only warn and ignore the option if not recognized 8906555991fdSmrg # So say no if there are warnings 8907555991fdSmrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8908555991fdSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8909555991fdSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8910555991fdSmrg lt_cv_prog_compiler_c_o=yes 8911555991fdSmrg fi 8912555991fdSmrg fi 8913555991fdSmrg chmod u+w . 2>&5 8914555991fdSmrg $RM conftest* 8915555991fdSmrg # SGI C++ compiler will create directory out/ii_files/ for 8916555991fdSmrg # template instantiation 8917555991fdSmrg test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8918555991fdSmrg $RM out/* && rmdir out 8919555991fdSmrg cd .. 8920555991fdSmrg $RM -r conftest 8921555991fdSmrg $RM conftest* 8922d656433aSmrg 8923555991fdSmrgfi 8924555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8925555991fdSmrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8926d656433aSmrg 8927d656433aSmrg 8928d656433aSmrg 8929d656433aSmrg 8930555991fdSmrghard_links="nottested" 8931555991fdSmrgif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8932555991fdSmrg # do not overwrite the value of need_locks provided by the user 8933555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8934555991fdSmrg$as_echo_n "checking if we can lock with hard links... " >&6; } 8935555991fdSmrg hard_links=yes 8936555991fdSmrg $RM conftest* 8937555991fdSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 8938555991fdSmrg touch conftest.a 8939555991fdSmrg ln conftest.a conftest.b 2>&5 || hard_links=no 8940555991fdSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 8941555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8942555991fdSmrg$as_echo "$hard_links" >&6; } 8943555991fdSmrg if test "$hard_links" = no; then 8944555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8945555991fdSmrg$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8946555991fdSmrg need_locks=warn 8947555991fdSmrg fi 8948555991fdSmrgelse 8949555991fdSmrg need_locks=no 8950555991fdSmrgfi 8951d656433aSmrg 8952d656433aSmrg 8953d656433aSmrg 8954d656433aSmrg 8955d656433aSmrg 8956d656433aSmrg 8957555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8958555991fdSmrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8959d656433aSmrg 8960555991fdSmrg runpath_var= 8961555991fdSmrg allow_undefined_flag= 8962555991fdSmrg always_export_symbols=no 8963555991fdSmrg archive_cmds= 8964555991fdSmrg archive_expsym_cmds= 8965555991fdSmrg compiler_needs_object=no 8966555991fdSmrg enable_shared_with_static_runtimes=no 8967555991fdSmrg export_dynamic_flag_spec= 8968555991fdSmrg export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8969555991fdSmrg hardcode_automatic=no 8970555991fdSmrg hardcode_direct=no 8971555991fdSmrg hardcode_direct_absolute=no 8972555991fdSmrg hardcode_libdir_flag_spec= 8973555991fdSmrg hardcode_libdir_flag_spec_ld= 8974555991fdSmrg hardcode_libdir_separator= 8975555991fdSmrg hardcode_minus_L=no 8976555991fdSmrg hardcode_shlibpath_var=unsupported 8977555991fdSmrg inherit_rpath=no 8978555991fdSmrg link_all_deplibs=unknown 8979555991fdSmrg module_cmds= 8980555991fdSmrg module_expsym_cmds= 8981555991fdSmrg old_archive_from_new_cmds= 8982555991fdSmrg old_archive_from_expsyms_cmds= 8983555991fdSmrg thread_safe_flag_spec= 8984555991fdSmrg whole_archive_flag_spec= 8985555991fdSmrg # include_expsyms should be a list of space-separated symbols to be *always* 8986555991fdSmrg # included in the symbol list 8987555991fdSmrg include_expsyms= 8988555991fdSmrg # exclude_expsyms can be an extended regexp of symbols to exclude 8989555991fdSmrg # it will be wrapped by ` (' and `)$', so one must not match beginning or 8990555991fdSmrg # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8991555991fdSmrg # as well as any symbol that contains `d'. 8992555991fdSmrg exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8993555991fdSmrg # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8994555991fdSmrg # platforms (ab)use it in PIC code, but their linkers get confused if 8995555991fdSmrg # the symbol is explicitly referenced. Since portable code cannot 8996555991fdSmrg # rely on this symbol name, it's probably fine to never include it in 8997555991fdSmrg # preloaded symbol tables. 8998555991fdSmrg # Exclude shared library initialization/finalization symbols. 8999555991fdSmrg extract_expsyms_cmds= 9000d656433aSmrg 9001555991fdSmrg case $host_os in 9002555991fdSmrg cygwin* | mingw* | pw32* | cegcc*) 9003555991fdSmrg # FIXME: the MSVC++ port hasn't been tested in a loooong time 9004555991fdSmrg # When not using gcc, we currently assume that we are using 9005555991fdSmrg # Microsoft Visual C++. 9006555991fdSmrg if test "$GCC" != yes; then 9007555991fdSmrg with_gnu_ld=no 9008555991fdSmrg fi 9009555991fdSmrg ;; 9010555991fdSmrg interix*) 9011555991fdSmrg # we just hope/assume this is gcc and not c89 (= MSVC++) 9012555991fdSmrg with_gnu_ld=yes 9013555991fdSmrg ;; 9014555991fdSmrg openbsd*) 9015555991fdSmrg with_gnu_ld=no 9016555991fdSmrg ;; 9017555991fdSmrg esac 9018d656433aSmrg 9019555991fdSmrg ld_shlibs=yes 9020d656433aSmrg 9021555991fdSmrg # On some targets, GNU ld is compatible enough with the native linker 9022555991fdSmrg # that we're better off using the native interface for both. 9023555991fdSmrg lt_use_gnu_ld_interface=no 9024555991fdSmrg if test "$with_gnu_ld" = yes; then 9025555991fdSmrg case $host_os in 9026555991fdSmrg aix*) 9027555991fdSmrg # The AIX port of GNU ld has always aspired to compatibility 9028555991fdSmrg # with the native linker. However, as the warning in the GNU ld 9029555991fdSmrg # block says, versions before 2.19.5* couldn't really create working 9030555991fdSmrg # shared libraries, regardless of the interface used. 9031555991fdSmrg case `$LD -v 2>&1` in 9032555991fdSmrg *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9033555991fdSmrg *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9034555991fdSmrg *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9035555991fdSmrg *) 9036555991fdSmrg lt_use_gnu_ld_interface=yes 9037555991fdSmrg ;; 9038555991fdSmrg esac 9039555991fdSmrg ;; 9040555991fdSmrg *) 9041555991fdSmrg lt_use_gnu_ld_interface=yes 9042555991fdSmrg ;; 9043555991fdSmrg esac 9044555991fdSmrg fi 9045d656433aSmrg 9046555991fdSmrg if test "$lt_use_gnu_ld_interface" = yes; then 9047555991fdSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 9048555991fdSmrg wlarc='${wl}' 9049d656433aSmrg 9050555991fdSmrg # Set some defaults for GNU ld with shared library support. These 9051555991fdSmrg # are reset later if shared libraries are not supported. Putting them 9052555991fdSmrg # here allows them to be overridden if necessary. 9053555991fdSmrg runpath_var=LD_RUN_PATH 9054555991fdSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9055555991fdSmrg export_dynamic_flag_spec='${wl}--export-dynamic' 9056555991fdSmrg # ancient GNU ld didn't support --whole-archive et. al. 9057555991fdSmrg if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9058555991fdSmrg whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9059555991fdSmrg else 9060555991fdSmrg whole_archive_flag_spec= 9061555991fdSmrg fi 9062555991fdSmrg supports_anon_versioning=no 9063555991fdSmrg case `$LD -v 2>&1` in 9064555991fdSmrg *GNU\ gold*) supports_anon_versioning=yes ;; 9065555991fdSmrg *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9066555991fdSmrg *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9067555991fdSmrg *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9068555991fdSmrg *\ 2.11.*) ;; # other 2.11 versions 9069555991fdSmrg *) supports_anon_versioning=yes ;; 9070555991fdSmrg esac 9071d656433aSmrg 9072555991fdSmrg # See if GNU ld supports shared libraries. 9073555991fdSmrg case $host_os in 9074555991fdSmrg aix[3-9]*) 9075555991fdSmrg # On AIX/PPC, the GNU linker is very broken 9076555991fdSmrg if test "$host_cpu" != ia64; then 9077555991fdSmrg ld_shlibs=no 9078555991fdSmrg cat <<_LT_EOF 1>&2 9079d656433aSmrg 9080555991fdSmrg*** Warning: the GNU linker, at least up to release 2.19, is reported 9081555991fdSmrg*** to be unable to reliably create shared libraries on AIX. 9082555991fdSmrg*** Therefore, libtool is disabling shared libraries support. If you 9083555991fdSmrg*** really care for shared libraries, you may want to install binutils 9084555991fdSmrg*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9085555991fdSmrg*** You will then need to restart the configuration process. 9086d656433aSmrg 9087555991fdSmrg_LT_EOF 9088555991fdSmrg fi 9089555991fdSmrg ;; 9090d656433aSmrg 9091555991fdSmrg amigaos*) 9092555991fdSmrg case $host_cpu in 9093555991fdSmrg powerpc) 9094555991fdSmrg # see comment about AmigaOS4 .so support 9095555991fdSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9096555991fdSmrg archive_expsym_cmds='' 9097555991fdSmrg ;; 9098555991fdSmrg m68k) 9099555991fdSmrg 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)' 9100555991fdSmrg hardcode_libdir_flag_spec='-L$libdir' 9101555991fdSmrg hardcode_minus_L=yes 9102555991fdSmrg ;; 9103555991fdSmrg esac 9104555991fdSmrg ;; 9105d656433aSmrg 9106555991fdSmrg beos*) 9107555991fdSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9108555991fdSmrg allow_undefined_flag=unsupported 9109555991fdSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9110555991fdSmrg # support --undefined. This deserves some investigation. FIXME 9111555991fdSmrg archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9112555991fdSmrg else 9113555991fdSmrg ld_shlibs=no 9114555991fdSmrg fi 9115555991fdSmrg ;; 9116d656433aSmrg 9117555991fdSmrg cygwin* | mingw* | pw32* | cegcc*) 9118555991fdSmrg # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9119555991fdSmrg # as there is no search path for DLLs. 9120555991fdSmrg hardcode_libdir_flag_spec='-L$libdir' 9121555991fdSmrg export_dynamic_flag_spec='${wl}--export-all-symbols' 9122555991fdSmrg allow_undefined_flag=unsupported 9123555991fdSmrg always_export_symbols=no 9124555991fdSmrg enable_shared_with_static_runtimes=yes 9125555991fdSmrg export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9126d656433aSmrg 9127555991fdSmrg if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9128555991fdSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9129555991fdSmrg # If the export-symbols file already is a .def file (1st line 9130555991fdSmrg # is EXPORTS), use it as is; otherwise, prepend... 9131555991fdSmrg archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9132555991fdSmrg cp $export_symbols $output_objdir/$soname.def; 9133555991fdSmrg else 9134555991fdSmrg echo EXPORTS > $output_objdir/$soname.def; 9135555991fdSmrg cat $export_symbols >> $output_objdir/$soname.def; 9136555991fdSmrg fi~ 9137555991fdSmrg $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9138555991fdSmrg else 9139555991fdSmrg ld_shlibs=no 9140555991fdSmrg fi 9141555991fdSmrg ;; 9142d656433aSmrg 9143555991fdSmrg haiku*) 9144555991fdSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9145555991fdSmrg link_all_deplibs=yes 9146555991fdSmrg ;; 9147d656433aSmrg 9148555991fdSmrg interix[3-9]*) 9149555991fdSmrg hardcode_direct=no 9150555991fdSmrg hardcode_shlibpath_var=no 9151555991fdSmrg hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9152555991fdSmrg export_dynamic_flag_spec='${wl}-E' 9153555991fdSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9154555991fdSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 9155555991fdSmrg # default) and relocated if they conflict, which is a slow very memory 9156555991fdSmrg # consuming and fragmenting process. To avoid this, we pick a random, 9157555991fdSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9158555991fdSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9159555991fdSmrg archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9160555991fdSmrg 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' 9161555991fdSmrg ;; 9162d656433aSmrg 9163555991fdSmrg gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9164555991fdSmrg tmp_diet=no 9165555991fdSmrg if test "$host_os" = linux-dietlibc; then 9166555991fdSmrg case $cc_basename in 9167555991fdSmrg diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9168555991fdSmrg esac 9169555991fdSmrg fi 9170555991fdSmrg if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9171555991fdSmrg && test "$tmp_diet" = no 9172555991fdSmrg then 9173555991fdSmrg tmp_addflag= 9174555991fdSmrg tmp_sharedflag='-shared' 9175555991fdSmrg case $cc_basename,$host_cpu in 9176555991fdSmrg pgcc*) # Portland Group C compiler 9177555991fdSmrg 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' 9178555991fdSmrg tmp_addflag=' $pic_flag' 9179555991fdSmrg ;; 9180555991fdSmrg pgf77* | pgf90* | pgf95* | pgfortran*) 9181555991fdSmrg # Portland Group f77 and f90 compilers 9182555991fdSmrg 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' 9183555991fdSmrg tmp_addflag=' $pic_flag -Mnomain' ;; 9184555991fdSmrg ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9185555991fdSmrg tmp_addflag=' -i_dynamic' ;; 9186555991fdSmrg efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9187555991fdSmrg tmp_addflag=' -i_dynamic -nofor_main' ;; 9188555991fdSmrg ifc* | ifort*) # Intel Fortran compiler 9189555991fdSmrg tmp_addflag=' -nofor_main' ;; 9190555991fdSmrg lf95*) # Lahey Fortran 8.1 9191555991fdSmrg whole_archive_flag_spec= 9192555991fdSmrg tmp_sharedflag='--shared' ;; 9193555991fdSmrg xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9194555991fdSmrg tmp_sharedflag='-qmkshrobj' 9195555991fdSmrg tmp_addflag= ;; 9196555991fdSmrg nvcc*) # Cuda Compiler Driver 2.2 9197555991fdSmrg 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' 9198555991fdSmrg compiler_needs_object=yes 9199555991fdSmrg ;; 9200555991fdSmrg esac 9201555991fdSmrg case `$CC -V 2>&1 | sed 5q` in 9202555991fdSmrg *Sun\ C*) # Sun C 5.9 9203555991fdSmrg 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' 9204555991fdSmrg compiler_needs_object=yes 9205555991fdSmrg tmp_sharedflag='-G' ;; 9206555991fdSmrg *Sun\ F*) # Sun Fortran 8.3 9207555991fdSmrg tmp_sharedflag='-G' ;; 9208555991fdSmrg esac 9209555991fdSmrg archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9210d656433aSmrg 9211555991fdSmrg if test "x$supports_anon_versioning" = xyes; then 9212555991fdSmrg archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9213555991fdSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9214555991fdSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 9215555991fdSmrg $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9216555991fdSmrg fi 9217d656433aSmrg 9218555991fdSmrg case $cc_basename in 9219555991fdSmrg xlf* | bgf* | bgxlf* | mpixlf*) 9220555991fdSmrg # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9221555991fdSmrg whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9222555991fdSmrg hardcode_libdir_flag_spec= 9223555991fdSmrg hardcode_libdir_flag_spec_ld='-rpath $libdir' 9224555991fdSmrg archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9225555991fdSmrg if test "x$supports_anon_versioning" = xyes; then 9226555991fdSmrg archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9227555991fdSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9228555991fdSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 9229555991fdSmrg $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9230555991fdSmrg fi 9231555991fdSmrg ;; 9232555991fdSmrg esac 9233555991fdSmrg else 9234555991fdSmrg ld_shlibs=no 9235555991fdSmrg fi 9236555991fdSmrg ;; 9237d656433aSmrg 9238555991fdSmrg netbsd*) 9239555991fdSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9240555991fdSmrg archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9241555991fdSmrg wlarc= 9242555991fdSmrg else 9243555991fdSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9244555991fdSmrg archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9245555991fdSmrg fi 9246555991fdSmrg ;; 9247d656433aSmrg 9248555991fdSmrg solaris*) 9249555991fdSmrg if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9250555991fdSmrg ld_shlibs=no 9251555991fdSmrg cat <<_LT_EOF 1>&2 9252d656433aSmrg 9253555991fdSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9254555991fdSmrg*** create shared libraries on Solaris systems. Therefore, libtool 9255555991fdSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 9256555991fdSmrg*** binutils to release 2.9.1 or newer. Another option is to modify 9257555991fdSmrg*** your PATH or compiler configuration so that the native linker is 9258555991fdSmrg*** used, and then restart. 9259d656433aSmrg 9260555991fdSmrg_LT_EOF 9261555991fdSmrg elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9262555991fdSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9263555991fdSmrg archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9264555991fdSmrg else 9265555991fdSmrg ld_shlibs=no 9266555991fdSmrg fi 9267555991fdSmrg ;; 9268d656433aSmrg 9269555991fdSmrg sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9270555991fdSmrg case `$LD -v 2>&1` in 9271555991fdSmrg *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9272555991fdSmrg ld_shlibs=no 9273555991fdSmrg cat <<_LT_EOF 1>&2 9274d656433aSmrg 9275555991fdSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9276555991fdSmrg*** reliably create shared libraries on SCO systems. Therefore, libtool 9277555991fdSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 9278555991fdSmrg*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9279555991fdSmrg*** your PATH or compiler configuration so that the native linker is 9280555991fdSmrg*** used, and then restart. 9281d656433aSmrg 9282555991fdSmrg_LT_EOF 9283555991fdSmrg ;; 9284555991fdSmrg *) 9285555991fdSmrg # For security reasons, it is highly recommended that you always 9286555991fdSmrg # use absolute paths for naming shared libraries, and exclude the 9287555991fdSmrg # DT_RUNPATH tag from executables and libraries. But doing so 9288555991fdSmrg # requires that you compile everything twice, which is a pain. 9289555991fdSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9290555991fdSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9291555991fdSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9292555991fdSmrg archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9293555991fdSmrg else 9294555991fdSmrg ld_shlibs=no 9295555991fdSmrg fi 9296555991fdSmrg ;; 9297555991fdSmrg esac 9298555991fdSmrg ;; 9299d656433aSmrg 9300555991fdSmrg sunos4*) 9301555991fdSmrg archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9302555991fdSmrg wlarc= 9303555991fdSmrg hardcode_direct=yes 9304555991fdSmrg hardcode_shlibpath_var=no 9305555991fdSmrg ;; 9306d656433aSmrg 9307555991fdSmrg *) 9308555991fdSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9309555991fdSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9310555991fdSmrg archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9311555991fdSmrg else 9312555991fdSmrg ld_shlibs=no 9313555991fdSmrg fi 9314555991fdSmrg ;; 9315555991fdSmrg esac 9316d656433aSmrg 9317555991fdSmrg if test "$ld_shlibs" = no; then 9318555991fdSmrg runpath_var= 9319555991fdSmrg hardcode_libdir_flag_spec= 9320555991fdSmrg export_dynamic_flag_spec= 9321555991fdSmrg whole_archive_flag_spec= 9322555991fdSmrg fi 9323555991fdSmrg else 9324555991fdSmrg # PORTME fill in a description of your system's linker (not GNU ld) 9325555991fdSmrg case $host_os in 9326555991fdSmrg aix3*) 9327555991fdSmrg allow_undefined_flag=unsupported 9328555991fdSmrg always_export_symbols=yes 9329555991fdSmrg 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' 9330555991fdSmrg # Note: this linker hardcodes the directories in LIBPATH if there 9331555991fdSmrg # are no directories specified by -L. 9332555991fdSmrg hardcode_minus_L=yes 9333555991fdSmrg if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9334555991fdSmrg # Neither direct hardcoding nor static linking is supported with a 9335555991fdSmrg # broken collect2. 9336555991fdSmrg hardcode_direct=unsupported 9337555991fdSmrg fi 9338555991fdSmrg ;; 9339d656433aSmrg 9340555991fdSmrg aix[4-9]*) 9341555991fdSmrg if test "$host_cpu" = ia64; then 9342555991fdSmrg # On IA64, the linker does run time linking by default, so we don't 9343555991fdSmrg # have to do anything special. 9344555991fdSmrg aix_use_runtimelinking=no 9345555991fdSmrg exp_sym_flag='-Bexport' 9346555991fdSmrg no_entry_flag="" 9347555991fdSmrg else 9348555991fdSmrg # If we're using GNU nm, then we don't want the "-C" option. 9349555991fdSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 9350555991fdSmrg # Also, AIX nm treats weak defined symbols like other global 9351555991fdSmrg # defined symbols, whereas GNU nm marks them as "W". 9352555991fdSmrg if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9353555991fdSmrg export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9354555991fdSmrg else 9355555991fdSmrg export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9356555991fdSmrg fi 9357555991fdSmrg aix_use_runtimelinking=no 9358d656433aSmrg 9359555991fdSmrg # Test if we are trying to use run time linking or normal 9360555991fdSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9361555991fdSmrg # need to do runtime linking. 9362555991fdSmrg case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9363555991fdSmrg for ld_flag in $LDFLAGS; do 9364555991fdSmrg if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9365555991fdSmrg aix_use_runtimelinking=yes 9366555991fdSmrg break 9367555991fdSmrg fi 9368555991fdSmrg done 9369555991fdSmrg ;; 9370555991fdSmrg esac 9371d656433aSmrg 9372555991fdSmrg exp_sym_flag='-bexport' 9373555991fdSmrg no_entry_flag='-bnoentry' 9374555991fdSmrg fi 9375d656433aSmrg 9376555991fdSmrg # When large executables or shared objects are built, AIX ld can 9377555991fdSmrg # have problems creating the table of contents. If linking a library 9378555991fdSmrg # or program results in "error TOC overflow" add -mminimal-toc to 9379555991fdSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9380555991fdSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9381d656433aSmrg 9382555991fdSmrg archive_cmds='' 9383555991fdSmrg hardcode_direct=yes 9384555991fdSmrg hardcode_direct_absolute=yes 9385555991fdSmrg hardcode_libdir_separator=':' 9386555991fdSmrg link_all_deplibs=yes 9387555991fdSmrg file_list_spec='${wl}-f,' 9388d656433aSmrg 9389555991fdSmrg if test "$GCC" = yes; then 9390555991fdSmrg case $host_os in aix4.[012]|aix4.[012].*) 9391555991fdSmrg # We only want to do this on AIX 4.2 and lower, the check 9392555991fdSmrg # below for broken collect2 doesn't work under 4.3+ 9393555991fdSmrg collect2name=`${CC} -print-prog-name=collect2` 9394555991fdSmrg if test -f "$collect2name" && 9395555991fdSmrg strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9396555991fdSmrg then 9397555991fdSmrg # We have reworked collect2 9398555991fdSmrg : 9399555991fdSmrg else 9400555991fdSmrg # We have old collect2 9401555991fdSmrg hardcode_direct=unsupported 9402555991fdSmrg # It fails to find uninstalled libraries when the uninstalled 9403555991fdSmrg # path is not listed in the libpath. Setting hardcode_minus_L 9404555991fdSmrg # to unsupported forces relinking 9405555991fdSmrg hardcode_minus_L=yes 9406555991fdSmrg hardcode_libdir_flag_spec='-L$libdir' 9407555991fdSmrg hardcode_libdir_separator= 9408555991fdSmrg fi 9409555991fdSmrg ;; 9410555991fdSmrg esac 9411555991fdSmrg shared_flag='-shared' 9412555991fdSmrg if test "$aix_use_runtimelinking" = yes; then 9413555991fdSmrg shared_flag="$shared_flag "'${wl}-G' 9414555991fdSmrg fi 9415555991fdSmrg else 9416555991fdSmrg # not using gcc 9417555991fdSmrg if test "$host_cpu" = ia64; then 9418555991fdSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9419555991fdSmrg # chokes on -Wl,-G. The following line is correct: 9420555991fdSmrg shared_flag='-G' 9421555991fdSmrg else 9422555991fdSmrg if test "$aix_use_runtimelinking" = yes; then 9423555991fdSmrg shared_flag='${wl}-G' 9424555991fdSmrg else 9425555991fdSmrg shared_flag='${wl}-bM:SRE' 9426555991fdSmrg fi 9427555991fdSmrg fi 9428555991fdSmrg fi 9429d656433aSmrg 9430555991fdSmrg export_dynamic_flag_spec='${wl}-bexpall' 9431555991fdSmrg # It seems that -bexpall does not export symbols beginning with 9432555991fdSmrg # underscore (_), so it is better to generate a list of symbols to export. 9433555991fdSmrg always_export_symbols=yes 9434555991fdSmrg if test "$aix_use_runtimelinking" = yes; then 9435555991fdSmrg # Warning - without using the other runtime loading flags (-brtl), 9436555991fdSmrg # -berok will link without error, but may produce a broken library. 9437555991fdSmrg allow_undefined_flag='-berok' 9438555991fdSmrg # Determine the default libpath from the value encoded in an 9439555991fdSmrg # empty executable. 9440555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9441555991fdSmrg/* end confdefs.h. */ 9442d656433aSmrg 9443555991fdSmrgint 9444555991fdSmrgmain () 9445555991fdSmrg{ 9446d656433aSmrg 9447555991fdSmrg ; 9448555991fdSmrg return 0; 9449555991fdSmrg} 9450555991fdSmrg_ACEOF 9451555991fdSmrgif ac_fn_c_try_link "$LINENO"; then : 9452d656433aSmrg 9453555991fdSmrglt_aix_libpath_sed=' 9454555991fdSmrg /Import File Strings/,/^$/ { 9455555991fdSmrg /^0/ { 9456555991fdSmrg s/^0 *\(.*\)$/\1/ 9457555991fdSmrg p 9458555991fdSmrg } 9459555991fdSmrg }' 9460555991fdSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9461555991fdSmrg# Check for a 64-bit object if we didn't find anything. 9462555991fdSmrgif test -z "$aix_libpath"; then 9463555991fdSmrg aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9464555991fdSmrgfi 9465555991fdSmrgfi 9466555991fdSmrgrm -f core conftest.err conftest.$ac_objext \ 9467555991fdSmrg conftest$ac_exeext conftest.$ac_ext 9468555991fdSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9469d656433aSmrg 9470555991fdSmrg hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9471555991fdSmrg archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9472555991fdSmrg else 9473555991fdSmrg if test "$host_cpu" = ia64; then 9474555991fdSmrg hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9475555991fdSmrg allow_undefined_flag="-z nodefs" 9476555991fdSmrg 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" 9477555991fdSmrg else 9478555991fdSmrg # Determine the default libpath from the value encoded in an 9479555991fdSmrg # empty executable. 9480555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9481555991fdSmrg/* end confdefs.h. */ 9482d656433aSmrg 9483555991fdSmrgint 9484555991fdSmrgmain () 9485555991fdSmrg{ 9486d656433aSmrg 9487555991fdSmrg ; 9488555991fdSmrg return 0; 9489555991fdSmrg} 9490555991fdSmrg_ACEOF 9491555991fdSmrgif ac_fn_c_try_link "$LINENO"; then : 9492d656433aSmrg 9493555991fdSmrglt_aix_libpath_sed=' 9494555991fdSmrg /Import File Strings/,/^$/ { 9495555991fdSmrg /^0/ { 9496555991fdSmrg s/^0 *\(.*\)$/\1/ 9497555991fdSmrg p 9498555991fdSmrg } 9499555991fdSmrg }' 9500555991fdSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9501555991fdSmrg# Check for a 64-bit object if we didn't find anything. 9502555991fdSmrgif test -z "$aix_libpath"; then 9503555991fdSmrg aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9504555991fdSmrgfi 9505555991fdSmrgfi 9506555991fdSmrgrm -f core conftest.err conftest.$ac_objext \ 9507555991fdSmrg conftest$ac_exeext conftest.$ac_ext 9508555991fdSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9509d656433aSmrg 9510555991fdSmrg hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9511555991fdSmrg # Warning - without using the other run time loading flags, 9512555991fdSmrg # -berok will link without error, but may produce a broken library. 9513555991fdSmrg no_undefined_flag=' ${wl}-bernotok' 9514555991fdSmrg allow_undefined_flag=' ${wl}-berok' 9515555991fdSmrg if test "$with_gnu_ld" = yes; then 9516555991fdSmrg # We only use this code for GNU lds that support --whole-archive. 9517555991fdSmrg whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9518555991fdSmrg else 9519555991fdSmrg # Exported symbols can be pulled into shared objects from archives 9520555991fdSmrg whole_archive_flag_spec='$convenience' 9521555991fdSmrg fi 9522555991fdSmrg archive_cmds_need_lc=yes 9523555991fdSmrg # This is similar to how AIX traditionally builds its shared libraries. 9524555991fdSmrg archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9525555991fdSmrg fi 9526555991fdSmrg fi 9527555991fdSmrg ;; 9528d656433aSmrg 9529555991fdSmrg amigaos*) 9530555991fdSmrg case $host_cpu in 9531555991fdSmrg powerpc) 9532555991fdSmrg # see comment about AmigaOS4 .so support 9533555991fdSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9534555991fdSmrg archive_expsym_cmds='' 9535555991fdSmrg ;; 9536555991fdSmrg m68k) 9537555991fdSmrg 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)' 9538555991fdSmrg hardcode_libdir_flag_spec='-L$libdir' 9539555991fdSmrg hardcode_minus_L=yes 9540555991fdSmrg ;; 9541555991fdSmrg esac 9542555991fdSmrg ;; 9543d656433aSmrg 9544555991fdSmrg bsdi[45]*) 9545555991fdSmrg export_dynamic_flag_spec=-rdynamic 9546555991fdSmrg ;; 9547d656433aSmrg 9548555991fdSmrg cygwin* | mingw* | pw32* | cegcc*) 9549555991fdSmrg # When not using gcc, we currently assume that we are using 9550555991fdSmrg # Microsoft Visual C++. 9551555991fdSmrg # hardcode_libdir_flag_spec is actually meaningless, as there is 9552555991fdSmrg # no search path for DLLs. 9553555991fdSmrg hardcode_libdir_flag_spec=' ' 9554555991fdSmrg allow_undefined_flag=unsupported 9555555991fdSmrg # Tell ltmain to make .lib files, not .a files. 9556555991fdSmrg libext=lib 9557555991fdSmrg # Tell ltmain to make .dll files, not .so files. 9558555991fdSmrg shrext_cmds=".dll" 9559555991fdSmrg # FIXME: Setting linknames here is a bad hack. 9560555991fdSmrg archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9561555991fdSmrg # The linker will automatically build a .lib file if we build a DLL. 9562555991fdSmrg old_archive_from_new_cmds='true' 9563555991fdSmrg # FIXME: Should let the user specify the lib program. 9564555991fdSmrg old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9565555991fdSmrg fix_srcfile_path='`cygpath -w "$srcfile"`' 9566555991fdSmrg enable_shared_with_static_runtimes=yes 9567555991fdSmrg ;; 9568d656433aSmrg 9569555991fdSmrg darwin* | rhapsody*) 9570d656433aSmrg 9571d656433aSmrg 9572555991fdSmrg archive_cmds_need_lc=no 9573555991fdSmrg hardcode_direct=no 9574555991fdSmrg hardcode_automatic=yes 9575555991fdSmrg hardcode_shlibpath_var=unsupported 9576555991fdSmrg if test "$lt_cv_ld_force_load" = "yes"; then 9577555991fdSmrg 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\"`' 9578555991fdSmrg else 9579555991fdSmrg whole_archive_flag_spec='' 9580555991fdSmrg fi 9581555991fdSmrg link_all_deplibs=yes 9582555991fdSmrg allow_undefined_flag="$_lt_dar_allow_undefined" 9583555991fdSmrg case $cc_basename in 9584555991fdSmrg ifort*) _lt_dar_can_shared=yes ;; 9585555991fdSmrg *) _lt_dar_can_shared=$GCC ;; 9586555991fdSmrg esac 9587555991fdSmrg if test "$_lt_dar_can_shared" = "yes"; then 9588555991fdSmrg output_verbose_link_cmd=func_echo_all 9589555991fdSmrg archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9590555991fdSmrg module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9591555991fdSmrg 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}" 9592555991fdSmrg 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}" 9593d656433aSmrg 9594555991fdSmrg else 9595555991fdSmrg ld_shlibs=no 9596555991fdSmrg fi 9597d656433aSmrg 9598555991fdSmrg ;; 9599d656433aSmrg 9600555991fdSmrg dgux*) 9601555991fdSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9602555991fdSmrg hardcode_libdir_flag_spec='-L$libdir' 9603555991fdSmrg hardcode_shlibpath_var=no 9604555991fdSmrg ;; 9605d656433aSmrg 9606555991fdSmrg freebsd1*) 9607555991fdSmrg ld_shlibs=no 9608555991fdSmrg ;; 9609d656433aSmrg 9610555991fdSmrg # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9611555991fdSmrg # support. Future versions do this automatically, but an explicit c++rt0.o 9612555991fdSmrg # does not break anything, and helps significantly (at the cost of a little 9613555991fdSmrg # extra space). 9614555991fdSmrg freebsd2.2*) 9615555991fdSmrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9616555991fdSmrg hardcode_libdir_flag_spec='-R$libdir' 9617555991fdSmrg hardcode_direct=yes 9618555991fdSmrg hardcode_shlibpath_var=no 9619555991fdSmrg ;; 9620d656433aSmrg 9621555991fdSmrg # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9622555991fdSmrg freebsd2*) 9623555991fdSmrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9624555991fdSmrg hardcode_direct=yes 9625555991fdSmrg hardcode_minus_L=yes 9626555991fdSmrg hardcode_shlibpath_var=no 9627555991fdSmrg ;; 9628d656433aSmrg 9629555991fdSmrg # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9630555991fdSmrg freebsd* | dragonfly*) 9631555991fdSmrg archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9632555991fdSmrg hardcode_libdir_flag_spec='-R$libdir' 9633555991fdSmrg hardcode_direct=yes 9634555991fdSmrg hardcode_shlibpath_var=no 9635555991fdSmrg ;; 9636d656433aSmrg 9637555991fdSmrg hpux9*) 9638555991fdSmrg if test "$GCC" = yes; then 9639555991fdSmrg archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9640555991fdSmrg else 9641555991fdSmrg archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9642555991fdSmrg fi 9643555991fdSmrg hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9644555991fdSmrg hardcode_libdir_separator=: 9645555991fdSmrg hardcode_direct=yes 9646d656433aSmrg 9647555991fdSmrg # hardcode_minus_L: Not really in the search PATH, 9648555991fdSmrg # but as the default location of the library. 9649555991fdSmrg hardcode_minus_L=yes 9650555991fdSmrg export_dynamic_flag_spec='${wl}-E' 9651555991fdSmrg ;; 9652d656433aSmrg 9653555991fdSmrg hpux10*) 9654555991fdSmrg if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9655555991fdSmrg archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9656555991fdSmrg else 9657555991fdSmrg archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9658555991fdSmrg fi 9659555991fdSmrg if test "$with_gnu_ld" = no; then 9660555991fdSmrg hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9661555991fdSmrg hardcode_libdir_flag_spec_ld='+b $libdir' 9662555991fdSmrg hardcode_libdir_separator=: 9663555991fdSmrg hardcode_direct=yes 9664555991fdSmrg hardcode_direct_absolute=yes 9665555991fdSmrg export_dynamic_flag_spec='${wl}-E' 9666555991fdSmrg # hardcode_minus_L: Not really in the search PATH, 9667555991fdSmrg # but as the default location of the library. 9668555991fdSmrg hardcode_minus_L=yes 9669555991fdSmrg fi 9670555991fdSmrg ;; 9671d656433aSmrg 9672555991fdSmrg hpux11*) 9673555991fdSmrg if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9674555991fdSmrg case $host_cpu in 9675555991fdSmrg hppa*64*) 9676555991fdSmrg archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9677555991fdSmrg ;; 9678555991fdSmrg ia64*) 9679555991fdSmrg archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9680555991fdSmrg ;; 9681555991fdSmrg *) 9682555991fdSmrg archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9683555991fdSmrg ;; 9684555991fdSmrg esac 9685555991fdSmrg else 9686555991fdSmrg case $host_cpu in 9687555991fdSmrg hppa*64*) 9688555991fdSmrg archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9689555991fdSmrg ;; 9690555991fdSmrg ia64*) 9691555991fdSmrg archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9692555991fdSmrg ;; 9693555991fdSmrg *) 9694d656433aSmrg 9695555991fdSmrg # Older versions of the 11.00 compiler do not understand -b yet 9696555991fdSmrg # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9697555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9698555991fdSmrg$as_echo_n "checking if $CC understands -b... " >&6; } 9699555991fdSmrgif ${lt_cv_prog_compiler__b+:} false; then : 9700555991fdSmrg $as_echo_n "(cached) " >&6 9701555991fdSmrgelse 9702555991fdSmrg lt_cv_prog_compiler__b=no 9703555991fdSmrg save_LDFLAGS="$LDFLAGS" 9704555991fdSmrg LDFLAGS="$LDFLAGS -b" 9705555991fdSmrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 9706555991fdSmrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9707555991fdSmrg # The linker can only warn and ignore the option if not recognized 9708555991fdSmrg # So say no if there are warnings 9709555991fdSmrg if test -s conftest.err; then 9710555991fdSmrg # Append any errors to the config.log. 9711555991fdSmrg cat conftest.err 1>&5 9712555991fdSmrg $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9713555991fdSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9714555991fdSmrg if diff conftest.exp conftest.er2 >/dev/null; then 9715555991fdSmrg lt_cv_prog_compiler__b=yes 9716555991fdSmrg fi 9717555991fdSmrg else 9718555991fdSmrg lt_cv_prog_compiler__b=yes 9719555991fdSmrg fi 9720555991fdSmrg fi 9721555991fdSmrg $RM -r conftest* 9722555991fdSmrg LDFLAGS="$save_LDFLAGS" 9723d656433aSmrg 9724555991fdSmrgfi 9725555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9726555991fdSmrg$as_echo "$lt_cv_prog_compiler__b" >&6; } 9727d656433aSmrg 9728555991fdSmrgif test x"$lt_cv_prog_compiler__b" = xyes; then 9729555991fdSmrg archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9730555991fdSmrgelse 9731555991fdSmrg archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9732555991fdSmrgfi 9733d656433aSmrg 9734555991fdSmrg ;; 9735555991fdSmrg esac 9736555991fdSmrg fi 9737555991fdSmrg if test "$with_gnu_ld" = no; then 9738555991fdSmrg hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9739555991fdSmrg hardcode_libdir_separator=: 9740d656433aSmrg 9741555991fdSmrg case $host_cpu in 9742555991fdSmrg hppa*64*|ia64*) 9743555991fdSmrg hardcode_direct=no 9744555991fdSmrg hardcode_shlibpath_var=no 9745555991fdSmrg ;; 9746555991fdSmrg *) 9747555991fdSmrg hardcode_direct=yes 9748555991fdSmrg hardcode_direct_absolute=yes 9749555991fdSmrg export_dynamic_flag_spec='${wl}-E' 9750d656433aSmrg 9751555991fdSmrg # hardcode_minus_L: Not really in the search PATH, 9752555991fdSmrg # but as the default location of the library. 9753555991fdSmrg hardcode_minus_L=yes 9754555991fdSmrg ;; 9755555991fdSmrg esac 9756555991fdSmrg fi 9757555991fdSmrg ;; 9758d656433aSmrg 9759555991fdSmrg irix5* | irix6* | nonstopux*) 9760555991fdSmrg if test "$GCC" = yes; then 9761555991fdSmrg archive_cmds='$CC -shared $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' 9762555991fdSmrg # Try to use the -exported_symbol ld option, if it does not 9763555991fdSmrg # work, assume that -exports_file does not work either and 9764555991fdSmrg # implicitly export all symbols. 9765555991fdSmrg save_LDFLAGS="$LDFLAGS" 9766555991fdSmrg LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9767555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9768555991fdSmrg/* end confdefs.h. */ 9769555991fdSmrgint foo(void) {} 9770555991fdSmrg_ACEOF 9771555991fdSmrgif ac_fn_c_try_link "$LINENO"; then : 9772555991fdSmrg archive_expsym_cmds='$CC -shared $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' 9773d656433aSmrg 9774555991fdSmrgfi 9775555991fdSmrgrm -f core conftest.err conftest.$ac_objext \ 9776555991fdSmrg conftest$ac_exeext conftest.$ac_ext 9777555991fdSmrg LDFLAGS="$save_LDFLAGS" 9778555991fdSmrg else 9779555991fdSmrg 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' 9780555991fdSmrg 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' 9781555991fdSmrg fi 9782555991fdSmrg archive_cmds_need_lc='no' 9783555991fdSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9784555991fdSmrg hardcode_libdir_separator=: 9785555991fdSmrg inherit_rpath=yes 9786555991fdSmrg link_all_deplibs=yes 9787555991fdSmrg ;; 9788d656433aSmrg 9789555991fdSmrg netbsd*) 9790555991fdSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9791555991fdSmrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9792555991fdSmrg else 9793555991fdSmrg archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9794555991fdSmrg fi 9795555991fdSmrg hardcode_libdir_flag_spec='-R$libdir' 9796555991fdSmrg hardcode_direct=yes 9797555991fdSmrg hardcode_shlibpath_var=no 9798555991fdSmrg ;; 9799d656433aSmrg 9800555991fdSmrg newsos6) 9801555991fdSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9802555991fdSmrg hardcode_direct=yes 9803555991fdSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9804555991fdSmrg hardcode_libdir_separator=: 9805555991fdSmrg hardcode_shlibpath_var=no 9806555991fdSmrg ;; 9807126a8a12Smrg 9808555991fdSmrg *nto* | *qnx*) 9809555991fdSmrg ;; 9810126a8a12Smrg 9811555991fdSmrg openbsd*) 9812555991fdSmrg if test -f /usr/libexec/ld.so; then 9813555991fdSmrg hardcode_direct=yes 9814555991fdSmrg hardcode_shlibpath_var=no 9815555991fdSmrg hardcode_direct_absolute=yes 9816555991fdSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9817555991fdSmrg archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9818555991fdSmrg archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9819555991fdSmrg hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9820555991fdSmrg export_dynamic_flag_spec='${wl}-E' 9821555991fdSmrg else 9822555991fdSmrg case $host_os in 9823555991fdSmrg openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9824555991fdSmrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9825555991fdSmrg hardcode_libdir_flag_spec='-R$libdir' 9826555991fdSmrg ;; 9827555991fdSmrg *) 9828555991fdSmrg archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9829555991fdSmrg hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9830555991fdSmrg ;; 9831555991fdSmrg esac 9832555991fdSmrg fi 9833555991fdSmrg else 9834555991fdSmrg ld_shlibs=no 9835555991fdSmrg fi 9836555991fdSmrg ;; 9837126a8a12Smrg 9838555991fdSmrg os2*) 9839555991fdSmrg hardcode_libdir_flag_spec='-L$libdir' 9840555991fdSmrg hardcode_minus_L=yes 9841555991fdSmrg allow_undefined_flag=unsupported 9842555991fdSmrg archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9843555991fdSmrg old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9844555991fdSmrg ;; 9845126a8a12Smrg 9846555991fdSmrg osf3*) 9847555991fdSmrg if test "$GCC" = yes; then 9848555991fdSmrg allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9849555991fdSmrg 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' 9850126a8a12Smrg else 9851555991fdSmrg allow_undefined_flag=' -expect_unresolved \*' 9852555991fdSmrg 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' 9853126a8a12Smrg fi 9854555991fdSmrg archive_cmds_need_lc='no' 9855555991fdSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9856555991fdSmrg hardcode_libdir_separator=: 9857126a8a12Smrg ;; 9858126a8a12Smrg 9859555991fdSmrg osf4* | osf5*) # as osf3* with the addition of -msym flag 9860555991fdSmrg if test "$GCC" = yes; then 9861555991fdSmrg allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9862555991fdSmrg archive_cmds='$CC -shared${allow_undefined_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' 9863555991fdSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9864555991fdSmrg else 9865555991fdSmrg allow_undefined_flag=' -expect_unresolved \*' 9866555991fdSmrg 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' 9867555991fdSmrg 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~ 9868555991fdSmrg $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' 9869126a8a12Smrg 9870555991fdSmrg # Both c and cxx compiler support -rpath directly 9871555991fdSmrg hardcode_libdir_flag_spec='-rpath $libdir' 9872555991fdSmrg fi 9873555991fdSmrg archive_cmds_need_lc='no' 9874555991fdSmrg hardcode_libdir_separator=: 9875555991fdSmrg ;; 9876126a8a12Smrg 9877555991fdSmrg solaris*) 9878555991fdSmrg no_undefined_flag=' -z defs' 9879555991fdSmrg if test "$GCC" = yes; then 9880555991fdSmrg wlarc='${wl}' 9881555991fdSmrg archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9882555991fdSmrg archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9883555991fdSmrg $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9884555991fdSmrg else 9885555991fdSmrg case `$CC -V 2>&1` in 9886555991fdSmrg *"Compilers 5.0"*) 9887555991fdSmrg wlarc='' 9888555991fdSmrg archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9889555991fdSmrg archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9890555991fdSmrg $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9891555991fdSmrg ;; 9892555991fdSmrg *) 9893555991fdSmrg wlarc='${wl}' 9894555991fdSmrg archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9895555991fdSmrg archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9896555991fdSmrg $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9897555991fdSmrg ;; 9898555991fdSmrg esac 9899555991fdSmrg fi 9900555991fdSmrg hardcode_libdir_flag_spec='-R$libdir' 9901555991fdSmrg hardcode_shlibpath_var=no 9902555991fdSmrg case $host_os in 9903555991fdSmrg solaris2.[0-5] | solaris2.[0-5].*) ;; 9904555991fdSmrg *) 9905555991fdSmrg # The compiler driver will combine and reorder linker options, 9906555991fdSmrg # but understands `-z linker_flag'. GCC discards it without `$wl', 9907555991fdSmrg # but is careful enough not to reorder. 9908555991fdSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 9909555991fdSmrg if test "$GCC" = yes; then 9910555991fdSmrg whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9911555991fdSmrg else 9912555991fdSmrg whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9913555991fdSmrg fi 9914555991fdSmrg ;; 9915555991fdSmrg esac 9916555991fdSmrg link_all_deplibs=yes 9917555991fdSmrg ;; 9918126a8a12Smrg 9919555991fdSmrg sunos4*) 9920555991fdSmrg if test "x$host_vendor" = xsequent; then 9921555991fdSmrg # Use $CC to link under sequent, because it throws in some extra .o 9922555991fdSmrg # files that make .init and .fini sections work. 9923555991fdSmrg archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9924555991fdSmrg else 9925555991fdSmrg archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9926555991fdSmrg fi 9927555991fdSmrg hardcode_libdir_flag_spec='-L$libdir' 9928555991fdSmrg hardcode_direct=yes 9929555991fdSmrg hardcode_minus_L=yes 9930555991fdSmrg hardcode_shlibpath_var=no 9931555991fdSmrg ;; 9932126a8a12Smrg 9933555991fdSmrg sysv4) 9934555991fdSmrg case $host_vendor in 9935555991fdSmrg sni) 9936555991fdSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9937555991fdSmrg hardcode_direct=yes # is this really true??? 9938555991fdSmrg ;; 9939555991fdSmrg siemens) 9940555991fdSmrg ## LD is ld it makes a PLAMLIB 9941555991fdSmrg ## CC just makes a GrossModule. 9942555991fdSmrg archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9943555991fdSmrg reload_cmds='$CC -r -o $output$reload_objs' 9944555991fdSmrg hardcode_direct=no 9945555991fdSmrg ;; 9946555991fdSmrg motorola) 9947555991fdSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9948555991fdSmrg hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9949555991fdSmrg ;; 9950555991fdSmrg esac 9951555991fdSmrg runpath_var='LD_RUN_PATH' 9952555991fdSmrg hardcode_shlibpath_var=no 9953555991fdSmrg ;; 9954126a8a12Smrg 9955555991fdSmrg sysv4.3*) 9956555991fdSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9957555991fdSmrg hardcode_shlibpath_var=no 9958555991fdSmrg export_dynamic_flag_spec='-Bexport' 9959555991fdSmrg ;; 9960555991fdSmrg 9961555991fdSmrg sysv4*MP*) 9962555991fdSmrg if test -d /usr/nec; then 9963555991fdSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9964555991fdSmrg hardcode_shlibpath_var=no 9965555991fdSmrg runpath_var=LD_RUN_PATH 9966555991fdSmrg hardcode_runpath_var=yes 9967555991fdSmrg ld_shlibs=yes 9968555991fdSmrg fi 9969555991fdSmrg ;; 9970555991fdSmrg 9971555991fdSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9972555991fdSmrg no_undefined_flag='${wl}-z,text' 9973555991fdSmrg archive_cmds_need_lc=no 9974555991fdSmrg hardcode_shlibpath_var=no 9975555991fdSmrg runpath_var='LD_RUN_PATH' 9976555991fdSmrg 9977555991fdSmrg if test "$GCC" = yes; then 9978555991fdSmrg archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9979555991fdSmrg archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9980555991fdSmrg else 9981555991fdSmrg archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9982555991fdSmrg archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9983555991fdSmrg fi 9984126a8a12Smrg ;; 9985555991fdSmrg 9986555991fdSmrg sysv5* | sco3.2v5* | sco5v6*) 9987555991fdSmrg # Note: We can NOT use -z defs as we might desire, because we do not 9988555991fdSmrg # link with -lc, and that would cause any symbols used from libc to 9989555991fdSmrg # always be unresolved, which means just about no library would 9990555991fdSmrg # ever link correctly. If we're not using GNU ld we use -z text 9991555991fdSmrg # though, which does catch some bad symbols but isn't as heavy-handed 9992555991fdSmrg # as -z defs. 9993555991fdSmrg no_undefined_flag='${wl}-z,text' 9994555991fdSmrg allow_undefined_flag='${wl}-z,nodefs' 9995555991fdSmrg archive_cmds_need_lc=no 9996555991fdSmrg hardcode_shlibpath_var=no 9997555991fdSmrg hardcode_libdir_flag_spec='${wl}-R,$libdir' 9998555991fdSmrg hardcode_libdir_separator=':' 9999555991fdSmrg link_all_deplibs=yes 10000555991fdSmrg export_dynamic_flag_spec='${wl}-Bexport' 10001555991fdSmrg runpath_var='LD_RUN_PATH' 10002555991fdSmrg 10003555991fdSmrg if test "$GCC" = yes; then 10004555991fdSmrg archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10005555991fdSmrg archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10006126a8a12Smrg else 10007555991fdSmrg archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10008555991fdSmrg archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10009126a8a12Smrg fi 10010126a8a12Smrg ;; 10011555991fdSmrg 10012555991fdSmrg uts4*) 10013555991fdSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10014555991fdSmrg hardcode_libdir_flag_spec='-L$libdir' 10015555991fdSmrg hardcode_shlibpath_var=no 10016555991fdSmrg ;; 10017555991fdSmrg 10018555991fdSmrg *) 10019555991fdSmrg ld_shlibs=no 10020126a8a12Smrg ;; 10021126a8a12Smrg esac 10022126a8a12Smrg 10023555991fdSmrg if test x$host_vendor = xsni; then 10024555991fdSmrg case $host in 10025555991fdSmrg sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10026555991fdSmrg export_dynamic_flag_spec='${wl}-Blargedynsym' 10027555991fdSmrg ;; 10028555991fdSmrg esac 10029555991fdSmrg fi 10030555991fdSmrg fi 10031126a8a12Smrg 10032555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10033555991fdSmrg$as_echo "$ld_shlibs" >&6; } 10034555991fdSmrgtest "$ld_shlibs" = no && can_build_shared=no 10035d656433aSmrg 10036555991fdSmrgwith_gnu_ld=$with_gnu_ld 10037126a8a12Smrg 10038126a8a12Smrg 10039126a8a12Smrg 10040d656433aSmrg 10041126a8a12Smrg 10042126a8a12Smrg 10043126a8a12Smrg 10044126a8a12Smrg 10045555991fdSmrg 10046555991fdSmrg 10047555991fdSmrg 10048555991fdSmrg 10049555991fdSmrg 10050555991fdSmrg 10051555991fdSmrg 10052555991fdSmrg# 10053555991fdSmrg# Do we need to explicitly link libc? 10054555991fdSmrg# 10055555991fdSmrgcase "x$archive_cmds_need_lc" in 10056555991fdSmrgx|xyes) 10057555991fdSmrg # Assume -lc should be added 10058555991fdSmrg archive_cmds_need_lc=yes 10059555991fdSmrg 10060555991fdSmrg if test "$enable_shared" = yes && test "$GCC" = yes; then 10061555991fdSmrg case $archive_cmds in 10062555991fdSmrg *'~'*) 10063555991fdSmrg # FIXME: we may have to deal with multi-command sequences. 10064555991fdSmrg ;; 10065555991fdSmrg '$CC '*) 10066555991fdSmrg # Test whether the compiler implicitly links with -lc since on some 10067555991fdSmrg # systems, -lgcc has to come before -lc. If gcc already passes -lc 10068555991fdSmrg # to ld, don't add -lc before -lgcc. 10069555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10070555991fdSmrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10071555991fdSmrgif ${lt_cv_archive_cmds_need_lc+:} false; then : 10072555991fdSmrg $as_echo_n "(cached) " >&6 10073555991fdSmrgelse 10074555991fdSmrg $RM conftest* 10075555991fdSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10076555991fdSmrg 10077555991fdSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10078555991fdSmrg (eval $ac_compile) 2>&5 10079555991fdSmrg ac_status=$? 10080555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10081555991fdSmrg test $ac_status = 0; } 2>conftest.err; then 10082555991fdSmrg soname=conftest 10083555991fdSmrg lib=conftest 10084555991fdSmrg libobjs=conftest.$ac_objext 10085555991fdSmrg deplibs= 10086555991fdSmrg wl=$lt_prog_compiler_wl 10087555991fdSmrg pic_flag=$lt_prog_compiler_pic 10088555991fdSmrg compiler_flags=-v 10089555991fdSmrg linker_flags=-v 10090555991fdSmrg verstring= 10091555991fdSmrg output_objdir=. 10092555991fdSmrg libname=conftest 10093555991fdSmrg lt_save_allow_undefined_flag=$allow_undefined_flag 10094555991fdSmrg allow_undefined_flag= 10095555991fdSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10096555991fdSmrg (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10097555991fdSmrg ac_status=$? 10098555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10099555991fdSmrg test $ac_status = 0; } 10100555991fdSmrg then 10101555991fdSmrg lt_cv_archive_cmds_need_lc=no 10102555991fdSmrg else 10103555991fdSmrg lt_cv_archive_cmds_need_lc=yes 10104555991fdSmrg fi 10105555991fdSmrg allow_undefined_flag=$lt_save_allow_undefined_flag 10106555991fdSmrg else 10107555991fdSmrg cat conftest.err 1>&5 10108555991fdSmrg fi 10109555991fdSmrg $RM conftest* 10110555991fdSmrg 10111555991fdSmrgfi 10112555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10113555991fdSmrg$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10114555991fdSmrg archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10115555991fdSmrg ;; 10116126a8a12Smrg esac 10117555991fdSmrg fi 10118126a8a12Smrg ;; 10119555991fdSmrgesac 10120555991fdSmrg 10121555991fdSmrg 10122555991fdSmrg 10123555991fdSmrg 10124555991fdSmrg 10125555991fdSmrg 10126555991fdSmrg 10127555991fdSmrg 10128555991fdSmrg 10129555991fdSmrg 10130555991fdSmrg 10131555991fdSmrg 10132555991fdSmrg 10133555991fdSmrg 10134555991fdSmrg 10135555991fdSmrg 10136555991fdSmrg 10137555991fdSmrg 10138555991fdSmrg 10139555991fdSmrg 10140555991fdSmrg 10141555991fdSmrg 10142126a8a12Smrg 10143d656433aSmrg 10144d656433aSmrg 10145d656433aSmrg 10146d656433aSmrg 10147d656433aSmrg 10148d656433aSmrg 10149d656433aSmrg 10150d656433aSmrg 10151d656433aSmrg 10152d656433aSmrg 10153d656433aSmrg 10154d656433aSmrg 10155d656433aSmrg 10156d656433aSmrg 10157d656433aSmrg 10158d656433aSmrg 10159d656433aSmrg 10160d656433aSmrg 10161d656433aSmrg 10162d656433aSmrg 10163d656433aSmrg 10164126a8a12Smrg 10165126a8a12Smrg 10166126a8a12Smrg 10167126a8a12Smrg 10168d656433aSmrg 10169d656433aSmrg 10170d656433aSmrg 10171d656433aSmrg 10172d656433aSmrg 10173d656433aSmrg 10174d656433aSmrg 10175d656433aSmrg 10176d656433aSmrg 10177d656433aSmrg 10178d656433aSmrg 10179d656433aSmrg 10180d656433aSmrg 10181d656433aSmrg 10182d656433aSmrg 10183d656433aSmrg 10184d656433aSmrg 10185d656433aSmrg 10186d656433aSmrg 10187d656433aSmrg 10188d656433aSmrg 10189d656433aSmrg 10190d656433aSmrg 10191d656433aSmrg 10192d656433aSmrg 10193d656433aSmrg 10194d656433aSmrg 10195d656433aSmrg 10196d656433aSmrg 10197d656433aSmrg 10198d656433aSmrg 10199d656433aSmrg 10200d656433aSmrg 10201d656433aSmrg 10202d656433aSmrg 10203d656433aSmrg 10204d656433aSmrg 10205d656433aSmrg 10206d656433aSmrg 10207d656433aSmrg 10208d656433aSmrg 10209d656433aSmrg 10210d656433aSmrg 10211d656433aSmrg 10212d656433aSmrg 10213d656433aSmrg 10214d656433aSmrg 10215d656433aSmrg 10216d656433aSmrg 10217d656433aSmrg 10218d656433aSmrg 10219d656433aSmrg 10220d656433aSmrg 10221d656433aSmrg 10222d656433aSmrg 10223d656433aSmrg 10224d656433aSmrg 10225d656433aSmrg 10226d656433aSmrg 10227d656433aSmrg 10228d656433aSmrg 10229d656433aSmrg 10230d656433aSmrg 10231d656433aSmrg 10232d656433aSmrg 10233d656433aSmrg 10234d656433aSmrg 10235d656433aSmrg 10236d656433aSmrg 10237d656433aSmrg 10238d656433aSmrg 10239d656433aSmrg 10240d656433aSmrg 10241d656433aSmrg 10242d656433aSmrg 10243d656433aSmrg 10244d656433aSmrg 10245d656433aSmrg 10246d656433aSmrg 10247d656433aSmrg 10248d656433aSmrg 10249d656433aSmrg 10250d656433aSmrg 10251d656433aSmrg 10252d656433aSmrg 10253d656433aSmrg 10254d656433aSmrg 10255d656433aSmrg 10256d656433aSmrg 10257d656433aSmrg 10258d656433aSmrg 10259d656433aSmrg 10260d656433aSmrg 10261d656433aSmrg 10262d656433aSmrg 10263d656433aSmrg 10264d656433aSmrg 10265d656433aSmrg 10266d656433aSmrg 10267d656433aSmrg 10268d656433aSmrg 10269d656433aSmrg 10270d656433aSmrg 10271126a8a12Smrg 10272126a8a12Smrg 10273126a8a12Smrg 10274555991fdSmrg 10275555991fdSmrg 10276555991fdSmrg 10277555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10278555991fdSmrg$as_echo_n "checking dynamic linker characteristics... " >&6; } 10279555991fdSmrg 10280555991fdSmrgif test "$GCC" = yes; then 10281555991fdSmrg case $host_os in 10282555991fdSmrg darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10283555991fdSmrg *) lt_awk_arg="/^libraries:/" ;; 10284555991fdSmrg esac 10285555991fdSmrg case $host_os in 10286555991fdSmrg mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10287555991fdSmrg *) lt_sed_strip_eq="s,=/,/,g" ;; 10288555991fdSmrg esac 10289555991fdSmrg lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10290555991fdSmrg case $lt_search_path_spec in 10291555991fdSmrg *\;*) 10292555991fdSmrg # if the path contains ";" then we assume it to be the separator 10293555991fdSmrg # otherwise default to the standard path separator (i.e. ":") - it is 10294555991fdSmrg # assumed that no part of a normal pathname contains ";" but that should 10295555991fdSmrg # okay in the real world where ";" in dirpaths is itself problematic. 10296555991fdSmrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10297555991fdSmrg ;; 10298555991fdSmrg *) 10299555991fdSmrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10300555991fdSmrg ;; 10301555991fdSmrg esac 10302555991fdSmrg # Ok, now we have the path, separated by spaces, we can step through it 10303555991fdSmrg # and add multilib dir if necessary. 10304555991fdSmrg lt_tmp_lt_search_path_spec= 10305555991fdSmrg lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10306555991fdSmrg for lt_sys_path in $lt_search_path_spec; do 10307555991fdSmrg if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10308555991fdSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10309555991fdSmrg else 10310555991fdSmrg test -d "$lt_sys_path" && \ 10311555991fdSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10312555991fdSmrg fi 10313555991fdSmrg done 10314555991fdSmrg lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10315555991fdSmrgBEGIN {RS=" "; FS="/|\n";} { 10316555991fdSmrg lt_foo=""; 10317555991fdSmrg lt_count=0; 10318555991fdSmrg for (lt_i = NF; lt_i > 0; lt_i--) { 10319555991fdSmrg if ($lt_i != "" && $lt_i != ".") { 10320555991fdSmrg if ($lt_i == "..") { 10321555991fdSmrg lt_count++; 10322555991fdSmrg } else { 10323555991fdSmrg if (lt_count == 0) { 10324555991fdSmrg lt_foo="/" $lt_i lt_foo; 10325555991fdSmrg } else { 10326555991fdSmrg lt_count--; 10327555991fdSmrg } 10328555991fdSmrg } 10329555991fdSmrg } 10330555991fdSmrg } 10331555991fdSmrg if (lt_foo != "") { lt_freq[lt_foo]++; } 10332555991fdSmrg if (lt_freq[lt_foo] == 1) { print lt_foo; } 10333555991fdSmrg}'` 10334555991fdSmrg # AWK program above erroneously prepends '/' to C:/dos/paths 10335555991fdSmrg # for these hosts. 10336555991fdSmrg case $host_os in 10337555991fdSmrg mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10338555991fdSmrg $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10339555991fdSmrg esac 10340555991fdSmrg sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10341555991fdSmrgelse 10342555991fdSmrg sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10343d656433aSmrgfi 10344555991fdSmrglibrary_names_spec= 10345555991fdSmrglibname_spec='lib$name' 10346555991fdSmrgsoname_spec= 10347555991fdSmrgshrext_cmds=".so" 10348555991fdSmrgpostinstall_cmds= 10349555991fdSmrgpostuninstall_cmds= 10350555991fdSmrgfinish_cmds= 10351555991fdSmrgfinish_eval= 10352555991fdSmrgshlibpath_var= 10353555991fdSmrgshlibpath_overrides_runpath=unknown 10354555991fdSmrgversion_type=none 10355555991fdSmrgdynamic_linker="$host_os ld.so" 10356555991fdSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib" 10357555991fdSmrgneed_lib_prefix=unknown 10358555991fdSmrghardcode_into_libs=no 10359555991fdSmrg 10360555991fdSmrg# when you set need_version to no, make sure it does not cause -set_version 10361555991fdSmrg# flags to be left without arguments 10362555991fdSmrgneed_version=unknown 10363555991fdSmrg 10364555991fdSmrgcase $host_os in 10365555991fdSmrgaix3*) 10366555991fdSmrg version_type=linux 10367555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10368555991fdSmrg shlibpath_var=LIBPATH 10369555991fdSmrg 10370555991fdSmrg # AIX 3 has no versioning support, so we append a major version to the name. 10371555991fdSmrg soname_spec='${libname}${release}${shared_ext}$major' 10372555991fdSmrg ;; 10373555991fdSmrg 10374555991fdSmrgaix[4-9]*) 10375555991fdSmrg version_type=linux 10376555991fdSmrg need_lib_prefix=no 10377555991fdSmrg need_version=no 10378555991fdSmrg hardcode_into_libs=yes 10379555991fdSmrg if test "$host_cpu" = ia64; then 10380555991fdSmrg # AIX 5 supports IA64 10381555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10382555991fdSmrg shlibpath_var=LD_LIBRARY_PATH 10383555991fdSmrg else 10384555991fdSmrg # With GCC up to 2.95.x, collect2 would create an import file 10385555991fdSmrg # for dependence libraries. The import file would start with 10386555991fdSmrg # the line `#! .'. This would cause the generated library to 10387555991fdSmrg # depend on `.', always an invalid library. This was fixed in 10388555991fdSmrg # development snapshots of GCC prior to 3.0. 10389555991fdSmrg case $host_os in 10390555991fdSmrg aix4 | aix4.[01] | aix4.[01].*) 10391555991fdSmrg if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10392555991fdSmrg echo ' yes ' 10393555991fdSmrg echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10394555991fdSmrg : 10395555991fdSmrg else 10396555991fdSmrg can_build_shared=no 10397555991fdSmrg fi 10398555991fdSmrg ;; 10399555991fdSmrg esac 10400555991fdSmrg # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10401555991fdSmrg # soname into executable. Probably we can add versioning support to 10402555991fdSmrg # collect2, so additional links can be useful in future. 10403555991fdSmrg if test "$aix_use_runtimelinking" = yes; then 10404555991fdSmrg # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10405555991fdSmrg # instead of lib<name>.a to let people know that these are not 10406555991fdSmrg # typical AIX shared libraries. 10407555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10408555991fdSmrg else 10409555991fdSmrg # We preserve .a as extension for shared libraries through AIX4.2 10410555991fdSmrg # and later when we are not doing run time linking. 10411555991fdSmrg library_names_spec='${libname}${release}.a $libname.a' 10412555991fdSmrg soname_spec='${libname}${release}${shared_ext}$major' 10413555991fdSmrg fi 10414555991fdSmrg shlibpath_var=LIBPATH 10415555991fdSmrg fi 10416555991fdSmrg ;; 10417126a8a12Smrg 10418555991fdSmrgamigaos*) 10419555991fdSmrg case $host_cpu in 10420555991fdSmrg powerpc) 10421555991fdSmrg # Since July 2007 AmigaOS4 officially supports .so libraries. 10422555991fdSmrg # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10423555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10424d656433aSmrg ;; 10425555991fdSmrg m68k) 10426555991fdSmrg library_names_spec='$libname.ixlibrary $libname.a' 10427555991fdSmrg # Create ${libname}_ixlibrary.a entries in /sys/libs. 10428555991fdSmrg finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10429555991fdSmrg ;; 10430555991fdSmrg esac 10431555991fdSmrg ;; 10432126a8a12Smrg 10433555991fdSmrgbeos*) 10434555991fdSmrg library_names_spec='${libname}${shared_ext}' 10435555991fdSmrg dynamic_linker="$host_os ld.so" 10436555991fdSmrg shlibpath_var=LIBRARY_PATH 10437555991fdSmrg ;; 10438126a8a12Smrg 10439555991fdSmrgbsdi[45]*) 10440555991fdSmrg version_type=linux 10441555991fdSmrg need_version=no 10442555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10443555991fdSmrg soname_spec='${libname}${release}${shared_ext}$major' 10444555991fdSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10445555991fdSmrg shlibpath_var=LD_LIBRARY_PATH 10446555991fdSmrg sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10447555991fdSmrg sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10448555991fdSmrg # the default ld.so.conf also contains /usr/contrib/lib and 10449555991fdSmrg # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10450555991fdSmrg # libtool to hard-code these into programs 10451555991fdSmrg ;; 10452126a8a12Smrg 10453555991fdSmrgcygwin* | mingw* | pw32* | cegcc*) 10454555991fdSmrg version_type=windows 10455555991fdSmrg shrext_cmds=".dll" 10456555991fdSmrg need_version=no 10457555991fdSmrg need_lib_prefix=no 10458126a8a12Smrg 10459555991fdSmrg case $GCC,$host_os in 10460555991fdSmrg yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10461555991fdSmrg library_names_spec='$libname.dll.a' 10462555991fdSmrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 10463555991fdSmrg postinstall_cmds='base_file=`basename \${file}`~ 10464555991fdSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10465555991fdSmrg dldir=$destdir/`dirname \$dlpath`~ 10466555991fdSmrg test -d \$dldir || mkdir -p \$dldir~ 10467555991fdSmrg $install_prog $dir/$dlname \$dldir/$dlname~ 10468555991fdSmrg chmod a+x \$dldir/$dlname~ 10469555991fdSmrg if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10470555991fdSmrg eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10471555991fdSmrg fi' 10472555991fdSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10473555991fdSmrg dlpath=$dir/\$dldll~ 10474555991fdSmrg $RM \$dlpath' 10475555991fdSmrg shlibpath_overrides_runpath=yes 10476126a8a12Smrg 10477555991fdSmrg case $host_os in 10478555991fdSmrg cygwin*) 10479555991fdSmrg # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10480555991fdSmrg soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10481126a8a12Smrg 10482555991fdSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10483555991fdSmrg ;; 10484555991fdSmrg mingw* | cegcc*) 10485555991fdSmrg # MinGW DLLs use traditional 'lib' prefix 10486555991fdSmrg soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10487555991fdSmrg ;; 10488555991fdSmrg pw32*) 10489555991fdSmrg # pw32 DLLs use 'pw' prefix rather than 'lib' 10490555991fdSmrg library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10491555991fdSmrg ;; 10492555991fdSmrg esac 10493555991fdSmrg ;; 10494126a8a12Smrg 10495555991fdSmrg *) 10496555991fdSmrg library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10497555991fdSmrg ;; 10498555991fdSmrg esac 10499555991fdSmrg dynamic_linker='Win32 ld.exe' 10500555991fdSmrg # FIXME: first we should search . and the directory the executable is in 10501555991fdSmrg shlibpath_var=PATH 10502555991fdSmrg ;; 10503126a8a12Smrg 10504555991fdSmrgdarwin* | rhapsody*) 10505555991fdSmrg dynamic_linker="$host_os dyld" 10506555991fdSmrg version_type=darwin 10507555991fdSmrg need_lib_prefix=no 10508555991fdSmrg need_version=no 10509555991fdSmrg library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10510555991fdSmrg soname_spec='${libname}${release}${major}$shared_ext' 10511555991fdSmrg shlibpath_overrides_runpath=yes 10512555991fdSmrg shlibpath_var=DYLD_LIBRARY_PATH 10513555991fdSmrg shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10514126a8a12Smrg 10515555991fdSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10516555991fdSmrg sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10517555991fdSmrg ;; 10518126a8a12Smrg 10519555991fdSmrgdgux*) 10520555991fdSmrg version_type=linux 10521555991fdSmrg need_lib_prefix=no 10522555991fdSmrg need_version=no 10523555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10524555991fdSmrg soname_spec='${libname}${release}${shared_ext}$major' 10525555991fdSmrg shlibpath_var=LD_LIBRARY_PATH 10526555991fdSmrg ;; 10527126a8a12Smrg 10528555991fdSmrgfreebsd1*) 10529555991fdSmrg dynamic_linker=no 10530555991fdSmrg ;; 10531126a8a12Smrg 10532555991fdSmrgfreebsd* | dragonfly*) 10533555991fdSmrg # DragonFly does not have aout. When/if they implement a new 10534555991fdSmrg # versioning mechanism, adjust this. 10535555991fdSmrg if test -x /usr/bin/objformat; then 10536555991fdSmrg objformat=`/usr/bin/objformat` 10537555991fdSmrg else 10538555991fdSmrg case $host_os in 10539555991fdSmrg freebsd[123]*) objformat=aout ;; 10540555991fdSmrg *) objformat=elf ;; 10541555991fdSmrg esac 10542555991fdSmrg fi 10543555991fdSmrg version_type=freebsd-$objformat 10544555991fdSmrg case $version_type in 10545555991fdSmrg freebsd-elf*) 10546555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10547555991fdSmrg need_version=no 10548555991fdSmrg need_lib_prefix=no 10549555991fdSmrg ;; 10550555991fdSmrg freebsd-*) 10551555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10552555991fdSmrg need_version=yes 10553555991fdSmrg ;; 10554555991fdSmrg esac 10555555991fdSmrg shlibpath_var=LD_LIBRARY_PATH 10556555991fdSmrg case $host_os in 10557555991fdSmrg freebsd2*) 10558555991fdSmrg shlibpath_overrides_runpath=yes 10559555991fdSmrg ;; 10560555991fdSmrg freebsd3.[01]* | freebsdelf3.[01]*) 10561555991fdSmrg shlibpath_overrides_runpath=yes 10562555991fdSmrg hardcode_into_libs=yes 10563555991fdSmrg ;; 10564555991fdSmrg freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10565555991fdSmrg freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10566555991fdSmrg shlibpath_overrides_runpath=no 10567555991fdSmrg hardcode_into_libs=yes 10568555991fdSmrg ;; 10569555991fdSmrg *) # from 4.6 on, and DragonFly 10570555991fdSmrg shlibpath_overrides_runpath=yes 10571555991fdSmrg hardcode_into_libs=yes 10572555991fdSmrg ;; 10573555991fdSmrg esac 10574555991fdSmrg ;; 10575126a8a12Smrg 10576555991fdSmrggnu*) 10577555991fdSmrg version_type=linux 10578555991fdSmrg need_lib_prefix=no 10579555991fdSmrg need_version=no 10580555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10581555991fdSmrg soname_spec='${libname}${release}${shared_ext}$major' 10582555991fdSmrg shlibpath_var=LD_LIBRARY_PATH 10583555991fdSmrg hardcode_into_libs=yes 10584555991fdSmrg ;; 10585126a8a12Smrg 10586555991fdSmrghaiku*) 10587555991fdSmrg version_type=linux 10588555991fdSmrg need_lib_prefix=no 10589555991fdSmrg need_version=no 10590555991fdSmrg dynamic_linker="$host_os runtime_loader" 10591555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10592555991fdSmrg soname_spec='${libname}${release}${shared_ext}$major' 10593555991fdSmrg shlibpath_var=LIBRARY_PATH 10594555991fdSmrg shlibpath_overrides_runpath=yes 10595555991fdSmrg sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10596555991fdSmrg hardcode_into_libs=yes 10597555991fdSmrg ;; 10598126a8a12Smrg 10599555991fdSmrghpux9* | hpux10* | hpux11*) 10600555991fdSmrg # Give a soname corresponding to the major version so that dld.sl refuses to 10601555991fdSmrg # link against other versions. 10602555991fdSmrg version_type=sunos 10603555991fdSmrg need_lib_prefix=no 10604555991fdSmrg need_version=no 10605555991fdSmrg case $host_cpu in 10606555991fdSmrg ia64*) 10607555991fdSmrg shrext_cmds='.so' 10608555991fdSmrg hardcode_into_libs=yes 10609555991fdSmrg dynamic_linker="$host_os dld.so" 10610555991fdSmrg shlibpath_var=LD_LIBRARY_PATH 10611555991fdSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10612555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10613555991fdSmrg soname_spec='${libname}${release}${shared_ext}$major' 10614555991fdSmrg if test "X$HPUX_IA64_MODE" = X32; then 10615555991fdSmrg sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10616555991fdSmrg else 10617555991fdSmrg sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10618555991fdSmrg fi 10619555991fdSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10620555991fdSmrg ;; 10621555991fdSmrg hppa*64*) 10622555991fdSmrg shrext_cmds='.sl' 10623555991fdSmrg hardcode_into_libs=yes 10624555991fdSmrg dynamic_linker="$host_os dld.sl" 10625555991fdSmrg shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10626555991fdSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10627555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10628555991fdSmrg soname_spec='${libname}${release}${shared_ext}$major' 10629555991fdSmrg sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10630555991fdSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10631555991fdSmrg ;; 10632555991fdSmrg *) 10633555991fdSmrg shrext_cmds='.sl' 10634555991fdSmrg dynamic_linker="$host_os dld.sl" 10635555991fdSmrg shlibpath_var=SHLIB_PATH 10636555991fdSmrg shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10637555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10638555991fdSmrg soname_spec='${libname}${release}${shared_ext}$major' 10639555991fdSmrg ;; 10640555991fdSmrg esac 10641555991fdSmrg # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10642555991fdSmrg postinstall_cmds='chmod 555 $lib' 10643555991fdSmrg # or fails outright, so override atomically: 10644555991fdSmrg install_override_mode=555 10645555991fdSmrg ;; 10646126a8a12Smrg 10647555991fdSmrginterix[3-9]*) 10648555991fdSmrg version_type=linux 10649555991fdSmrg need_lib_prefix=no 10650555991fdSmrg need_version=no 10651555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10652555991fdSmrg soname_spec='${libname}${release}${shared_ext}$major' 10653555991fdSmrg dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10654555991fdSmrg shlibpath_var=LD_LIBRARY_PATH 10655555991fdSmrg shlibpath_overrides_runpath=no 10656555991fdSmrg hardcode_into_libs=yes 10657555991fdSmrg ;; 10658126a8a12Smrg 10659555991fdSmrgirix5* | irix6* | nonstopux*) 10660555991fdSmrg case $host_os in 10661555991fdSmrg nonstopux*) version_type=nonstopux ;; 10662555991fdSmrg *) 10663555991fdSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 10664555991fdSmrg version_type=linux 10665555991fdSmrg else 10666555991fdSmrg version_type=irix 10667555991fdSmrg fi ;; 10668555991fdSmrg esac 10669555991fdSmrg need_lib_prefix=no 10670555991fdSmrg need_version=no 10671555991fdSmrg soname_spec='${libname}${release}${shared_ext}$major' 10672555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10673555991fdSmrg case $host_os in 10674555991fdSmrg irix5* | nonstopux*) 10675555991fdSmrg libsuff= shlibsuff= 10676555991fdSmrg ;; 10677555991fdSmrg *) 10678555991fdSmrg case $LD in # libtool.m4 will add one of these switches to LD 10679555991fdSmrg *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10680555991fdSmrg libsuff= shlibsuff= libmagic=32-bit;; 10681555991fdSmrg *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10682555991fdSmrg libsuff=32 shlibsuff=N32 libmagic=N32;; 10683555991fdSmrg *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10684555991fdSmrg libsuff=64 shlibsuff=64 libmagic=64-bit;; 10685555991fdSmrg *) libsuff= shlibsuff= libmagic=never-match;; 10686555991fdSmrg esac 10687555991fdSmrg ;; 10688555991fdSmrg esac 10689555991fdSmrg shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10690555991fdSmrg shlibpath_overrides_runpath=no 10691555991fdSmrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10692555991fdSmrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10693555991fdSmrg hardcode_into_libs=yes 10694555991fdSmrg ;; 10695126a8a12Smrg 10696555991fdSmrg# No shared lib support for Linux oldld, aout, or coff. 10697555991fdSmrglinux*oldld* | linux*aout* | linux*coff*) 10698555991fdSmrg dynamic_linker=no 10699555991fdSmrg ;; 10700126a8a12Smrg 10701555991fdSmrg# This must be Linux ELF. 10702555991fdSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu) 10703555991fdSmrg version_type=linux 10704555991fdSmrg need_lib_prefix=no 10705555991fdSmrg need_version=no 10706555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10707555991fdSmrg soname_spec='${libname}${release}${shared_ext}$major' 10708555991fdSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10709555991fdSmrg shlibpath_var=LD_LIBRARY_PATH 10710555991fdSmrg shlibpath_overrides_runpath=no 10711126a8a12Smrg 10712555991fdSmrg # Some binutils ld are patched to set DT_RUNPATH 10713555991fdSmrg if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10714d656433aSmrg $as_echo_n "(cached) " >&6 10715d656433aSmrgelse 10716555991fdSmrg lt_cv_shlibpath_overrides_runpath=no 10717555991fdSmrg save_LDFLAGS=$LDFLAGS 10718555991fdSmrg save_libdir=$libdir 10719555991fdSmrg eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10720555991fdSmrg LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10721555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10722d656433aSmrg/* end confdefs.h. */ 10723126a8a12Smrg 10724d656433aSmrgint 10725d656433aSmrgmain () 10726d656433aSmrg{ 10727555991fdSmrg 10728d656433aSmrg ; 10729d656433aSmrg return 0; 10730d656433aSmrg} 10731d656433aSmrg_ACEOF 10732555991fdSmrgif ac_fn_c_try_link "$LINENO"; then : 10733555991fdSmrg if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10734555991fdSmrg lt_cv_shlibpath_overrides_runpath=yes 10735d656433aSmrgfi 10736d656433aSmrgfi 10737555991fdSmrgrm -f core conftest.err conftest.$ac_objext \ 10738555991fdSmrg conftest$ac_exeext conftest.$ac_ext 10739555991fdSmrg LDFLAGS=$save_LDFLAGS 10740555991fdSmrg libdir=$save_libdir 10741555991fdSmrg 10742d656433aSmrgfi 10743126a8a12Smrg 10744555991fdSmrg shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10745126a8a12Smrg 10746555991fdSmrg # This implies no fast_install, which is unacceptable. 10747555991fdSmrg # Some rework will be needed to allow for fast_install 10748555991fdSmrg # before this can be enabled. 10749555991fdSmrg hardcode_into_libs=yes 10750126a8a12Smrg 10751555991fdSmrg # Append ld.so.conf contents to the search path 10752555991fdSmrg if test -f /etc/ld.so.conf; then 10753555991fdSmrg 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' ' '` 10754555991fdSmrg sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10755555991fdSmrg fi 10756126a8a12Smrg 10757555991fdSmrg # We used to test for /lib/ld.so.1 and disable shared libraries on 10758555991fdSmrg # powerpc, because MkLinux only supported shared libraries with the 10759555991fdSmrg # GNU dynamic linker. Since this was broken with cross compilers, 10760555991fdSmrg # most powerpc-linux boxes support dynamic linking these days and 10761555991fdSmrg # people can always --disable-shared, the test was removed, and we 10762555991fdSmrg # assume the GNU/Linux dynamic linker is in use. 10763555991fdSmrg dynamic_linker='GNU/Linux ld.so' 10764555991fdSmrg ;; 10765126a8a12Smrg 10766555991fdSmrgnetbsd*) 10767555991fdSmrg version_type=sunos 10768555991fdSmrg need_lib_prefix=no 10769555991fdSmrg need_version=no 10770555991fdSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10771555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10772555991fdSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10773555991fdSmrg dynamic_linker='NetBSD (a.out) ld.so' 10774555991fdSmrg else 10775555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10776555991fdSmrg soname_spec='${libname}${release}${shared_ext}$major' 10777555991fdSmrg dynamic_linker='NetBSD ld.elf_so' 10778555991fdSmrg fi 10779555991fdSmrg shlibpath_var=LD_LIBRARY_PATH 10780555991fdSmrg shlibpath_overrides_runpath=yes 10781555991fdSmrg hardcode_into_libs=yes 10782555991fdSmrg ;; 10783126a8a12Smrg 10784555991fdSmrgnewsos6) 10785555991fdSmrg version_type=linux 10786555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10787555991fdSmrg shlibpath_var=LD_LIBRARY_PATH 10788555991fdSmrg shlibpath_overrides_runpath=yes 10789555991fdSmrg ;; 10790126a8a12Smrg 10791555991fdSmrg*nto* | *qnx*) 10792555991fdSmrg version_type=qnx 10793555991fdSmrg need_lib_prefix=no 10794555991fdSmrg need_version=no 10795555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10796555991fdSmrg soname_spec='${libname}${release}${shared_ext}$major' 10797555991fdSmrg shlibpath_var=LD_LIBRARY_PATH 10798555991fdSmrg shlibpath_overrides_runpath=no 10799555991fdSmrg hardcode_into_libs=yes 10800555991fdSmrg dynamic_linker='ldqnx.so' 10801555991fdSmrg ;; 10802126a8a12Smrg 10803555991fdSmrgopenbsd*) 10804555991fdSmrg version_type=sunos 10805555991fdSmrg sys_lib_dlsearch_path_spec="/usr/lib" 10806555991fdSmrg need_lib_prefix=no 10807555991fdSmrg # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10808555991fdSmrg case $host_os in 10809555991fdSmrg openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10810555991fdSmrg *) need_version=no ;; 10811555991fdSmrg esac 10812555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10813555991fdSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10814555991fdSmrg shlibpath_var=LD_LIBRARY_PATH 10815555991fdSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10816555991fdSmrg case $host_os in 10817555991fdSmrg openbsd2.[89] | openbsd2.[89].*) 10818555991fdSmrg shlibpath_overrides_runpath=no 10819555991fdSmrg ;; 10820555991fdSmrg *) 10821555991fdSmrg shlibpath_overrides_runpath=yes 10822555991fdSmrg ;; 10823555991fdSmrg esac 10824555991fdSmrg else 10825555991fdSmrg shlibpath_overrides_runpath=yes 10826555991fdSmrg fi 10827555991fdSmrg ;; 10828126a8a12Smrg 10829555991fdSmrgos2*) 10830555991fdSmrg libname_spec='$name' 10831555991fdSmrg shrext_cmds=".dll" 10832555991fdSmrg need_lib_prefix=no 10833555991fdSmrg library_names_spec='$libname${shared_ext} $libname.a' 10834555991fdSmrg dynamic_linker='OS/2 ld.exe' 10835555991fdSmrg shlibpath_var=LIBPATH 10836555991fdSmrg ;; 10837126a8a12Smrg 10838555991fdSmrgosf3* | osf4* | osf5*) 10839555991fdSmrg version_type=osf 10840555991fdSmrg need_lib_prefix=no 10841555991fdSmrg need_version=no 10842555991fdSmrg soname_spec='${libname}${release}${shared_ext}$major' 10843555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10844555991fdSmrg shlibpath_var=LD_LIBRARY_PATH 10845555991fdSmrg sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10846555991fdSmrg sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10847555991fdSmrg ;; 10848126a8a12Smrg 10849555991fdSmrgrdos*) 10850555991fdSmrg dynamic_linker=no 10851555991fdSmrg ;; 10852555991fdSmrg 10853555991fdSmrgsolaris*) 10854555991fdSmrg version_type=linux 10855555991fdSmrg need_lib_prefix=no 10856555991fdSmrg need_version=no 10857555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10858555991fdSmrg soname_spec='${libname}${release}${shared_ext}$major' 10859555991fdSmrg shlibpath_var=LD_LIBRARY_PATH 10860555991fdSmrg shlibpath_overrides_runpath=yes 10861555991fdSmrg hardcode_into_libs=yes 10862555991fdSmrg # ldd complains unless libraries are executable 10863555991fdSmrg postinstall_cmds='chmod +x $lib' 10864555991fdSmrg ;; 10865555991fdSmrg 10866555991fdSmrgsunos4*) 10867555991fdSmrg version_type=sunos 10868555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10869555991fdSmrg finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10870555991fdSmrg shlibpath_var=LD_LIBRARY_PATH 10871555991fdSmrg shlibpath_overrides_runpath=yes 10872555991fdSmrg if test "$with_gnu_ld" = yes; then 10873555991fdSmrg need_lib_prefix=no 10874555991fdSmrg fi 10875555991fdSmrg need_version=yes 10876555991fdSmrg ;; 10877555991fdSmrg 10878555991fdSmrgsysv4 | sysv4.3*) 10879555991fdSmrg version_type=linux 10880555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10881555991fdSmrg soname_spec='${libname}${release}${shared_ext}$major' 10882555991fdSmrg shlibpath_var=LD_LIBRARY_PATH 10883555991fdSmrg case $host_vendor in 10884555991fdSmrg sni) 10885555991fdSmrg shlibpath_overrides_runpath=no 10886555991fdSmrg need_lib_prefix=no 10887555991fdSmrg runpath_var=LD_RUN_PATH 10888555991fdSmrg ;; 10889555991fdSmrg siemens) 10890555991fdSmrg need_lib_prefix=no 10891555991fdSmrg ;; 10892555991fdSmrg motorola) 10893555991fdSmrg need_lib_prefix=no 10894555991fdSmrg need_version=no 10895555991fdSmrg shlibpath_overrides_runpath=no 10896555991fdSmrg sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10897555991fdSmrg ;; 10898d656433aSmrg esac 10899555991fdSmrg ;; 10900126a8a12Smrg 10901555991fdSmrgsysv4*MP*) 10902555991fdSmrg if test -d /usr/nec ;then 10903555991fdSmrg version_type=linux 10904555991fdSmrg library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10905555991fdSmrg soname_spec='$libname${shared_ext}.$major' 10906555991fdSmrg shlibpath_var=LD_LIBRARY_PATH 10907555991fdSmrg fi 10908555991fdSmrg ;; 10909555991fdSmrg 10910555991fdSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10911555991fdSmrg version_type=freebsd-elf 10912555991fdSmrg need_lib_prefix=no 10913555991fdSmrg need_version=no 10914555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10915555991fdSmrg soname_spec='${libname}${release}${shared_ext}$major' 10916555991fdSmrg shlibpath_var=LD_LIBRARY_PATH 10917555991fdSmrg shlibpath_overrides_runpath=yes 10918555991fdSmrg hardcode_into_libs=yes 10919555991fdSmrg if test "$with_gnu_ld" = yes; then 10920555991fdSmrg sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10921d656433aSmrg else 10922555991fdSmrg sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10923555991fdSmrg case $host_os in 10924555991fdSmrg sco3.2v5*) 10925555991fdSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10926555991fdSmrg ;; 10927555991fdSmrg esac 10928d656433aSmrg fi 10929555991fdSmrg sys_lib_dlsearch_path_spec='/usr/lib' 10930555991fdSmrg ;; 10931555991fdSmrg 10932555991fdSmrgtpf*) 10933555991fdSmrg # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10934555991fdSmrg version_type=linux 10935555991fdSmrg need_lib_prefix=no 10936555991fdSmrg need_version=no 10937555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10938555991fdSmrg shlibpath_var=LD_LIBRARY_PATH 10939555991fdSmrg shlibpath_overrides_runpath=no 10940555991fdSmrg hardcode_into_libs=yes 10941555991fdSmrg ;; 10942555991fdSmrg 10943555991fdSmrguts4*) 10944555991fdSmrg version_type=linux 10945555991fdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10946555991fdSmrg soname_spec='${libname}${release}${shared_ext}$major' 10947555991fdSmrg shlibpath_var=LD_LIBRARY_PATH 10948555991fdSmrg ;; 10949555991fdSmrg 10950555991fdSmrg*) 10951555991fdSmrg dynamic_linker=no 10952555991fdSmrg ;; 10953555991fdSmrgesac 10954555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10955555991fdSmrg$as_echo "$dynamic_linker" >&6; } 10956555991fdSmrgtest "$dynamic_linker" = no && can_build_shared=no 10957555991fdSmrg 10958555991fdSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10959555991fdSmrgif test "$GCC" = yes; then 10960555991fdSmrg variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10961555991fdSmrgfi 10962555991fdSmrg 10963555991fdSmrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10964555991fdSmrg sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10965555991fdSmrgfi 10966555991fdSmrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10967555991fdSmrg sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10968555991fdSmrgfi 10969555991fdSmrg 10970555991fdSmrg 10971555991fdSmrg 10972555991fdSmrg 10973555991fdSmrg 10974126a8a12Smrg 10975126a8a12Smrg 10976126a8a12Smrg 10977126a8a12Smrg 10978126a8a12Smrg 10979126a8a12Smrg 10980126a8a12Smrg 10981126a8a12Smrg 10982126a8a12Smrg 10983126a8a12Smrg 10984126a8a12Smrg 10985126a8a12Smrg 10986126a8a12Smrg 10987126a8a12Smrg 10988126a8a12Smrg 10989126a8a12Smrg 10990126a8a12Smrg 10991126a8a12Smrg 10992126a8a12Smrg 10993126a8a12Smrg 10994126a8a12Smrg 10995126a8a12Smrg 10996126a8a12Smrg 10997126a8a12Smrg 10998126a8a12Smrg 10999126a8a12Smrg 11000126a8a12Smrg 11001126a8a12Smrg 11002126a8a12Smrg 11003126a8a12Smrg 11004126a8a12Smrg 11005126a8a12Smrg 11006126a8a12Smrg 11007126a8a12Smrg 11008126a8a12Smrg 11009126a8a12Smrg 11010126a8a12Smrg 11011126a8a12Smrg 11012126a8a12Smrg 11013126a8a12Smrg 11014126a8a12Smrg 11015126a8a12Smrg 11016126a8a12Smrg 11017126a8a12Smrg 11018126a8a12Smrg 11019126a8a12Smrg 11020126a8a12Smrg 11021126a8a12Smrg 11022126a8a12Smrg 11023126a8a12Smrg 11024126a8a12Smrg 11025126a8a12Smrg 11026126a8a12Smrg 11027126a8a12Smrg 11028126a8a12Smrg 11029126a8a12Smrg 11030126a8a12Smrg 11031126a8a12Smrg 11032126a8a12Smrg 11033126a8a12Smrg 11034126a8a12Smrg 11035126a8a12Smrg 11036126a8a12Smrg 11037126a8a12Smrg 11038126a8a12Smrg 11039126a8a12Smrg 11040126a8a12Smrg 11041126a8a12Smrg 11042126a8a12Smrg 11043126a8a12Smrg 11044126a8a12Smrg 11045126a8a12Smrg 11046126a8a12Smrg 11047126a8a12Smrg 11048126a8a12Smrg 11049126a8a12Smrg 11050126a8a12Smrg 11051126a8a12Smrg 11052126a8a12Smrg 11053126a8a12Smrg 11054126a8a12Smrg 11055126a8a12Smrg 11056126a8a12Smrg 11057126a8a12Smrg 11058126a8a12Smrg 11059126a8a12Smrg 11060126a8a12Smrg 11061555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11062555991fdSmrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11063555991fdSmrghardcode_action= 11064555991fdSmrgif test -n "$hardcode_libdir_flag_spec" || 11065555991fdSmrg test -n "$runpath_var" || 11066555991fdSmrg test "X$hardcode_automatic" = "Xyes" ; then 11067126a8a12Smrg 11068555991fdSmrg # We can hardcode non-existent directories. 11069555991fdSmrg if test "$hardcode_direct" != no && 11070555991fdSmrg # If the only mechanism to avoid hardcoding is shlibpath_var, we 11071555991fdSmrg # have to relink, otherwise we might link with an installed library 11072555991fdSmrg # when we should be linking with a yet-to-be-installed one 11073555991fdSmrg ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11074555991fdSmrg test "$hardcode_minus_L" != no; then 11075555991fdSmrg # Linking always hardcodes the temporary library directory. 11076555991fdSmrg hardcode_action=relink 11077d656433aSmrg else 11078555991fdSmrg # We can link without hardcoding, and we can hardcode nonexisting dirs. 11079555991fdSmrg hardcode_action=immediate 11080d656433aSmrg fi 11081d656433aSmrgelse 11082555991fdSmrg # We cannot hardcode anything, or else we can only hardcode existing 11083555991fdSmrg # directories. 11084555991fdSmrg hardcode_action=unsupported 11085d656433aSmrgfi 11086555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11087555991fdSmrg$as_echo "$hardcode_action" >&6; } 11088126a8a12Smrg 11089555991fdSmrgif test "$hardcode_action" = relink || 11090555991fdSmrg test "$inherit_rpath" = yes; then 11091555991fdSmrg # Fast installation is not supported 11092555991fdSmrg enable_fast_install=no 11093555991fdSmrgelif test "$shlibpath_overrides_runpath" = yes || 11094555991fdSmrg test "$enable_shared" = no; then 11095555991fdSmrg # Fast installation is not necessary 11096555991fdSmrg enable_fast_install=needless 11097d656433aSmrgfi 11098555991fdSmrg 11099555991fdSmrg 11100555991fdSmrg 11101555991fdSmrg 11102555991fdSmrg 11103555991fdSmrg 11104555991fdSmrg if test "x$enable_dlopen" != xyes; then 11105555991fdSmrg enable_dlopen=unknown 11106555991fdSmrg enable_dlopen_self=unknown 11107555991fdSmrg enable_dlopen_self_static=unknown 11108d656433aSmrgelse 11109555991fdSmrg lt_cv_dlopen=no 11110555991fdSmrg lt_cv_dlopen_libs= 11111126a8a12Smrg 11112555991fdSmrg case $host_os in 11113555991fdSmrg beos*) 11114555991fdSmrg lt_cv_dlopen="load_add_on" 11115555991fdSmrg lt_cv_dlopen_libs= 11116555991fdSmrg lt_cv_dlopen_self=yes 11117555991fdSmrg ;; 11118126a8a12Smrg 11119555991fdSmrg mingw* | pw32* | cegcc*) 11120555991fdSmrg lt_cv_dlopen="LoadLibrary" 11121555991fdSmrg lt_cv_dlopen_libs= 11122555991fdSmrg ;; 11123555991fdSmrg 11124555991fdSmrg cygwin*) 11125555991fdSmrg lt_cv_dlopen="dlopen" 11126555991fdSmrg lt_cv_dlopen_libs= 11127555991fdSmrg ;; 11128555991fdSmrg 11129555991fdSmrg darwin*) 11130555991fdSmrg # if libdl is installed we need to link against it 11131555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11132555991fdSmrg$as_echo_n "checking for dlopen in -ldl... " >&6; } 11133555991fdSmrgif ${ac_cv_lib_dl_dlopen+:} false; then : 11134d656433aSmrg $as_echo_n "(cached) " >&6 11135d656433aSmrgelse 11136555991fdSmrg ac_check_lib_save_LIBS=$LIBS 11137555991fdSmrgLIBS="-ldl $LIBS" 11138555991fdSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 11139555991fdSmrg/* end confdefs.h. */ 11140126a8a12Smrg 11141555991fdSmrg/* Override any GCC internal prototype to avoid an error. 11142555991fdSmrg Use char because int might match the return type of a GCC 11143555991fdSmrg builtin and then its argument prototype would still apply. */ 11144555991fdSmrg#ifdef __cplusplus 11145555991fdSmrgextern "C" 11146555991fdSmrg#endif 11147555991fdSmrgchar dlopen (); 11148555991fdSmrgint 11149555991fdSmrgmain () 11150555991fdSmrg{ 11151555991fdSmrgreturn dlopen (); 11152555991fdSmrg ; 11153555991fdSmrg return 0; 11154555991fdSmrg} 11155555991fdSmrg_ACEOF 11156555991fdSmrgif ac_fn_c_try_link "$LINENO"; then : 11157555991fdSmrg ac_cv_lib_dl_dlopen=yes 11158555991fdSmrgelse 11159555991fdSmrg ac_cv_lib_dl_dlopen=no 11160d656433aSmrgfi 11161555991fdSmrgrm -f core conftest.err conftest.$ac_objext \ 11162555991fdSmrg conftest$ac_exeext conftest.$ac_ext 11163555991fdSmrgLIBS=$ac_check_lib_save_LIBS 11164d656433aSmrgfi 11165555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11166555991fdSmrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11167555991fdSmrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11168555991fdSmrg lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11169d656433aSmrgelse 11170126a8a12Smrg 11171555991fdSmrg lt_cv_dlopen="dyld" 11172555991fdSmrg lt_cv_dlopen_libs= 11173555991fdSmrg lt_cv_dlopen_self=yes 11174126a8a12Smrg 11175d656433aSmrgfi 11176555991fdSmrg 11177555991fdSmrg ;; 11178555991fdSmrg 11179555991fdSmrg *) 11180555991fdSmrg ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11181555991fdSmrgif test "x$ac_cv_func_shl_load" = xyes; then : 11182555991fdSmrg lt_cv_dlopen="shl_load" 11183d656433aSmrgelse 11184555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11185555991fdSmrg$as_echo_n "checking for shl_load in -ldld... " >&6; } 11186555991fdSmrgif ${ac_cv_lib_dld_shl_load+:} false; then : 11187555991fdSmrg $as_echo_n "(cached) " >&6 11188d656433aSmrgelse 11189555991fdSmrg ac_check_lib_save_LIBS=$LIBS 11190555991fdSmrgLIBS="-ldld $LIBS" 11191555991fdSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 11192555991fdSmrg/* end confdefs.h. */ 11193126a8a12Smrg 11194555991fdSmrg/* Override any GCC internal prototype to avoid an error. 11195555991fdSmrg Use char because int might match the return type of a GCC 11196555991fdSmrg builtin and then its argument prototype would still apply. */ 11197555991fdSmrg#ifdef __cplusplus 11198555991fdSmrgextern "C" 11199555991fdSmrg#endif 11200555991fdSmrgchar shl_load (); 11201555991fdSmrgint 11202555991fdSmrgmain () 11203555991fdSmrg{ 11204555991fdSmrgreturn shl_load (); 11205555991fdSmrg ; 11206555991fdSmrg return 0; 11207555991fdSmrg} 11208555991fdSmrg_ACEOF 11209555991fdSmrgif ac_fn_c_try_link "$LINENO"; then : 11210555991fdSmrg ac_cv_lib_dld_shl_load=yes 11211d656433aSmrgelse 11212555991fdSmrg ac_cv_lib_dld_shl_load=no 11213d656433aSmrgfi 11214555991fdSmrgrm -f core conftest.err conftest.$ac_objext \ 11215555991fdSmrg conftest$ac_exeext conftest.$ac_ext 11216555991fdSmrgLIBS=$ac_check_lib_save_LIBS 11217d656433aSmrgfi 11218555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11219555991fdSmrg$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11220555991fdSmrgif test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11221555991fdSmrg lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11222d656433aSmrgelse 11223555991fdSmrg ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11224555991fdSmrgif test "x$ac_cv_func_dlopen" = xyes; then : 11225555991fdSmrg lt_cv_dlopen="dlopen" 11226d656433aSmrgelse 11227555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11228555991fdSmrg$as_echo_n "checking for dlopen in -ldl... " >&6; } 11229555991fdSmrgif ${ac_cv_lib_dl_dlopen+:} false; then : 11230555991fdSmrg $as_echo_n "(cached) " >&6 11231d656433aSmrgelse 11232555991fdSmrg ac_check_lib_save_LIBS=$LIBS 11233555991fdSmrgLIBS="-ldl $LIBS" 11234555991fdSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 11235555991fdSmrg/* end confdefs.h. */ 11236126a8a12Smrg 11237555991fdSmrg/* Override any GCC internal prototype to avoid an error. 11238555991fdSmrg Use char because int might match the return type of a GCC 11239555991fdSmrg builtin and then its argument prototype would still apply. */ 11240555991fdSmrg#ifdef __cplusplus 11241555991fdSmrgextern "C" 11242555991fdSmrg#endif 11243555991fdSmrgchar dlopen (); 11244555991fdSmrgint 11245555991fdSmrgmain () 11246555991fdSmrg{ 11247555991fdSmrgreturn dlopen (); 11248555991fdSmrg ; 11249555991fdSmrg return 0; 11250555991fdSmrg} 11251555991fdSmrg_ACEOF 11252555991fdSmrgif ac_fn_c_try_link "$LINENO"; then : 11253555991fdSmrg ac_cv_lib_dl_dlopen=yes 11254555991fdSmrgelse 11255555991fdSmrg ac_cv_lib_dl_dlopen=no 11256d656433aSmrgfi 11257555991fdSmrgrm -f core conftest.err conftest.$ac_objext \ 11258555991fdSmrg conftest$ac_exeext conftest.$ac_ext 11259555991fdSmrgLIBS=$ac_check_lib_save_LIBS 11260d656433aSmrgfi 11261555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11262555991fdSmrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11263555991fdSmrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11264555991fdSmrg lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11265555991fdSmrgelse 11266555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11267555991fdSmrg$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11268555991fdSmrgif ${ac_cv_lib_svld_dlopen+:} false; then : 11269d656433aSmrg $as_echo_n "(cached) " >&6 11270d656433aSmrgelse 11271555991fdSmrg ac_check_lib_save_LIBS=$LIBS 11272555991fdSmrgLIBS="-lsvld $LIBS" 11273555991fdSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 11274d656433aSmrg/* end confdefs.h. */ 11275126a8a12Smrg 11276555991fdSmrg/* Override any GCC internal prototype to avoid an error. 11277555991fdSmrg Use char because int might match the return type of a GCC 11278555991fdSmrg builtin and then its argument prototype would still apply. */ 11279555991fdSmrg#ifdef __cplusplus 11280555991fdSmrgextern "C" 11281555991fdSmrg#endif 11282555991fdSmrgchar dlopen (); 11283d656433aSmrgint 11284d656433aSmrgmain () 11285d656433aSmrg{ 11286555991fdSmrgreturn dlopen (); 11287d656433aSmrg ; 11288d656433aSmrg return 0; 11289d656433aSmrg} 11290d656433aSmrg_ACEOF 11291555991fdSmrgif ac_fn_c_try_link "$LINENO"; then : 11292555991fdSmrg ac_cv_lib_svld_dlopen=yes 11293d656433aSmrgelse 11294555991fdSmrg ac_cv_lib_svld_dlopen=no 11295d656433aSmrgfi 11296555991fdSmrgrm -f core conftest.err conftest.$ac_objext \ 11297555991fdSmrg conftest$ac_exeext conftest.$ac_ext 11298555991fdSmrgLIBS=$ac_check_lib_save_LIBS 11299d656433aSmrgfi 11300555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11301555991fdSmrg$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11302555991fdSmrgif test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11303555991fdSmrg lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11304d656433aSmrgelse 11305555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11306555991fdSmrg$as_echo_n "checking for dld_link in -ldld... " >&6; } 11307555991fdSmrgif ${ac_cv_lib_dld_dld_link+:} false; then : 11308d656433aSmrg $as_echo_n "(cached) " >&6 11309d656433aSmrgelse 11310555991fdSmrg ac_check_lib_save_LIBS=$LIBS 11311555991fdSmrgLIBS="-ldld $LIBS" 11312555991fdSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 11313d656433aSmrg/* end confdefs.h. */ 11314126a8a12Smrg 11315555991fdSmrg/* Override any GCC internal prototype to avoid an error. 11316555991fdSmrg Use char because int might match the return type of a GCC 11317555991fdSmrg builtin and then its argument prototype would still apply. */ 11318555991fdSmrg#ifdef __cplusplus 11319555991fdSmrgextern "C" 11320555991fdSmrg#endif 11321555991fdSmrgchar dld_link (); 11322d656433aSmrgint 11323d656433aSmrgmain () 11324d656433aSmrg{ 11325555991fdSmrgreturn dld_link (); 11326d656433aSmrg ; 11327d656433aSmrg return 0; 11328d656433aSmrg} 11329d656433aSmrg_ACEOF 11330555991fdSmrgif ac_fn_c_try_link "$LINENO"; then : 11331555991fdSmrg ac_cv_lib_dld_dld_link=yes 11332d656433aSmrgelse 11333555991fdSmrg ac_cv_lib_dld_dld_link=no 11334555991fdSmrgfi 11335555991fdSmrgrm -f core conftest.err conftest.$ac_objext \ 11336555991fdSmrg conftest$ac_exeext conftest.$ac_ext 11337555991fdSmrgLIBS=$ac_check_lib_save_LIBS 11338555991fdSmrgfi 11339555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11340555991fdSmrg$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11341555991fdSmrgif test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11342555991fdSmrg lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11343555991fdSmrgfi 11344555991fdSmrg 11345555991fdSmrg 11346555991fdSmrgfi 11347555991fdSmrg 11348555991fdSmrg 11349555991fdSmrgfi 11350555991fdSmrg 11351555991fdSmrg 11352555991fdSmrgfi 11353555991fdSmrg 11354555991fdSmrg 11355555991fdSmrgfi 11356555991fdSmrg 11357555991fdSmrg 11358555991fdSmrgfi 11359555991fdSmrg 11360555991fdSmrg ;; 11361555991fdSmrg esac 11362555991fdSmrg 11363555991fdSmrg if test "x$lt_cv_dlopen" != xno; then 11364555991fdSmrg enable_dlopen=yes 11365555991fdSmrg else 11366555991fdSmrg enable_dlopen=no 11367555991fdSmrg fi 11368555991fdSmrg 11369555991fdSmrg case $lt_cv_dlopen in 11370555991fdSmrg dlopen) 11371555991fdSmrg save_CPPFLAGS="$CPPFLAGS" 11372555991fdSmrg test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11373555991fdSmrg 11374555991fdSmrg save_LDFLAGS="$LDFLAGS" 11375555991fdSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11376555991fdSmrg 11377555991fdSmrg save_LIBS="$LIBS" 11378555991fdSmrg LIBS="$lt_cv_dlopen_libs $LIBS" 11379555991fdSmrg 11380555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11381555991fdSmrg$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11382555991fdSmrgif ${lt_cv_dlopen_self+:} false; then : 11383555991fdSmrg $as_echo_n "(cached) " >&6 11384555991fdSmrgelse 11385555991fdSmrg if test "$cross_compiling" = yes; then : 11386555991fdSmrg lt_cv_dlopen_self=cross 11387555991fdSmrgelse 11388555991fdSmrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11389555991fdSmrg lt_status=$lt_dlunknown 11390555991fdSmrg cat > conftest.$ac_ext <<_LT_EOF 11391555991fdSmrg#line $LINENO "configure" 11392555991fdSmrg#include "confdefs.h" 11393555991fdSmrg 11394555991fdSmrg#if HAVE_DLFCN_H 11395555991fdSmrg#include <dlfcn.h> 11396555991fdSmrg#endif 11397555991fdSmrg 11398555991fdSmrg#include <stdio.h> 11399555991fdSmrg 11400555991fdSmrg#ifdef RTLD_GLOBAL 11401555991fdSmrg# define LT_DLGLOBAL RTLD_GLOBAL 11402555991fdSmrg#else 11403555991fdSmrg# ifdef DL_GLOBAL 11404555991fdSmrg# define LT_DLGLOBAL DL_GLOBAL 11405555991fdSmrg# else 11406555991fdSmrg# define LT_DLGLOBAL 0 11407555991fdSmrg# endif 11408555991fdSmrg#endif 11409555991fdSmrg 11410555991fdSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11411555991fdSmrg find out it does not work in some platform. */ 11412555991fdSmrg#ifndef LT_DLLAZY_OR_NOW 11413555991fdSmrg# ifdef RTLD_LAZY 11414555991fdSmrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 11415555991fdSmrg# else 11416555991fdSmrg# ifdef DL_LAZY 11417555991fdSmrg# define LT_DLLAZY_OR_NOW DL_LAZY 11418555991fdSmrg# else 11419555991fdSmrg# ifdef RTLD_NOW 11420555991fdSmrg# define LT_DLLAZY_OR_NOW RTLD_NOW 11421555991fdSmrg# else 11422555991fdSmrg# ifdef DL_NOW 11423555991fdSmrg# define LT_DLLAZY_OR_NOW DL_NOW 11424555991fdSmrg# else 11425555991fdSmrg# define LT_DLLAZY_OR_NOW 0 11426555991fdSmrg# endif 11427555991fdSmrg# endif 11428555991fdSmrg# endif 11429555991fdSmrg# endif 11430555991fdSmrg#endif 11431126a8a12Smrg 11432555991fdSmrg/* When -fvisbility=hidden is used, assume the code has been annotated 11433555991fdSmrg correspondingly for the symbols needed. */ 11434555991fdSmrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11435555991fdSmrgvoid fnord () __attribute__((visibility("default"))); 11436555991fdSmrg#endif 11437126a8a12Smrg 11438555991fdSmrgvoid fnord () { int i=42; } 11439555991fdSmrgint main () 11440d656433aSmrg{ 11441555991fdSmrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11442555991fdSmrg int status = $lt_dlunknown; 11443126a8a12Smrg 11444555991fdSmrg if (self) 11445555991fdSmrg { 11446555991fdSmrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11447555991fdSmrg else 11448555991fdSmrg { 11449555991fdSmrg if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11450555991fdSmrg else puts (dlerror ()); 11451555991fdSmrg } 11452555991fdSmrg /* dlclose (self); */ 11453555991fdSmrg } 11454555991fdSmrg else 11455555991fdSmrg puts (dlerror ()); 11456126a8a12Smrg 11457555991fdSmrg return status; 11458d656433aSmrg} 11459555991fdSmrg_LT_EOF 11460555991fdSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11461555991fdSmrg (eval $ac_link) 2>&5 11462d656433aSmrg ac_status=$? 11463555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11464555991fdSmrg test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11465555991fdSmrg (./conftest; exit; ) >&5 2>/dev/null 11466555991fdSmrg lt_status=$? 11467555991fdSmrg case x$lt_status in 11468555991fdSmrg x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11469555991fdSmrg x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11470555991fdSmrg x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11471555991fdSmrg esac 11472555991fdSmrg else : 11473555991fdSmrg # compilation failed 11474555991fdSmrg lt_cv_dlopen_self=no 11475555991fdSmrg fi 11476d656433aSmrgfi 11477555991fdSmrgrm -fr conftest* 11478126a8a12Smrg 11479126a8a12Smrg 11480d656433aSmrgfi 11481555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11482555991fdSmrg$as_echo "$lt_cv_dlopen_self" >&6; } 11483126a8a12Smrg 11484555991fdSmrg if test "x$lt_cv_dlopen_self" = xyes; then 11485555991fdSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11486555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11487555991fdSmrg$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11488555991fdSmrgif ${lt_cv_dlopen_self_static+:} false; then : 11489d656433aSmrg $as_echo_n "(cached) " >&6 11490d656433aSmrgelse 11491555991fdSmrg if test "$cross_compiling" = yes; then : 11492555991fdSmrg lt_cv_dlopen_self_static=cross 11493555991fdSmrgelse 11494555991fdSmrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11495555991fdSmrg lt_status=$lt_dlunknown 11496555991fdSmrg cat > conftest.$ac_ext <<_LT_EOF 11497555991fdSmrg#line $LINENO "configure" 11498555991fdSmrg#include "confdefs.h" 11499555991fdSmrg 11500555991fdSmrg#if HAVE_DLFCN_H 11501555991fdSmrg#include <dlfcn.h> 11502555991fdSmrg#endif 11503555991fdSmrg 11504d656433aSmrg#include <stdio.h> 11505126a8a12Smrg 11506555991fdSmrg#ifdef RTLD_GLOBAL 11507555991fdSmrg# define LT_DLGLOBAL RTLD_GLOBAL 11508555991fdSmrg#else 11509555991fdSmrg# ifdef DL_GLOBAL 11510555991fdSmrg# define LT_DLGLOBAL DL_GLOBAL 11511555991fdSmrg# else 11512555991fdSmrg# define LT_DLGLOBAL 0 11513555991fdSmrg# endif 11514555991fdSmrg#endif 11515126a8a12Smrg 11516555991fdSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11517555991fdSmrg find out it does not work in some platform. */ 11518555991fdSmrg#ifndef LT_DLLAZY_OR_NOW 11519555991fdSmrg# ifdef RTLD_LAZY 11520555991fdSmrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 11521555991fdSmrg# else 11522555991fdSmrg# ifdef DL_LAZY 11523555991fdSmrg# define LT_DLLAZY_OR_NOW DL_LAZY 11524555991fdSmrg# else 11525555991fdSmrg# ifdef RTLD_NOW 11526555991fdSmrg# define LT_DLLAZY_OR_NOW RTLD_NOW 11527555991fdSmrg# else 11528555991fdSmrg# ifdef DL_NOW 11529555991fdSmrg# define LT_DLLAZY_OR_NOW DL_NOW 11530555991fdSmrg# else 11531555991fdSmrg# define LT_DLLAZY_OR_NOW 0 11532555991fdSmrg# endif 11533555991fdSmrg# endif 11534555991fdSmrg# endif 11535555991fdSmrg# endif 11536555991fdSmrg#endif 11537126a8a12Smrg 11538555991fdSmrg/* When -fvisbility=hidden is used, assume the code has been annotated 11539555991fdSmrg correspondingly for the symbols needed. */ 11540555991fdSmrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11541555991fdSmrgvoid fnord () __attribute__((visibility("default"))); 11542555991fdSmrg#endif 11543555991fdSmrg 11544555991fdSmrgvoid fnord () { int i=42; } 11545555991fdSmrgint main () 11546d656433aSmrg{ 11547555991fdSmrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11548555991fdSmrg int status = $lt_dlunknown; 11549555991fdSmrg 11550555991fdSmrg if (self) 11551555991fdSmrg { 11552555991fdSmrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11553555991fdSmrg else 11554555991fdSmrg { 11555555991fdSmrg if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11556555991fdSmrg else puts (dlerror ()); 11557555991fdSmrg } 11558555991fdSmrg /* dlclose (self); */ 11559555991fdSmrg } 11560555991fdSmrg else 11561555991fdSmrg puts (dlerror ()); 11562555991fdSmrg 11563555991fdSmrg return status; 11564d656433aSmrg} 11565555991fdSmrg_LT_EOF 11566555991fdSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11567555991fdSmrg (eval $ac_link) 2>&5 11568d656433aSmrg ac_status=$? 11569555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11570555991fdSmrg test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11571555991fdSmrg (./conftest; exit; ) >&5 2>/dev/null 11572555991fdSmrg lt_status=$? 11573555991fdSmrg case x$lt_status in 11574555991fdSmrg x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11575555991fdSmrg x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11576555991fdSmrg x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11577555991fdSmrg esac 11578555991fdSmrg else : 11579555991fdSmrg # compilation failed 11580555991fdSmrg lt_cv_dlopen_self_static=no 11581555991fdSmrg fi 11582555991fdSmrgfi 11583555991fdSmrgrm -fr conftest* 11584555991fdSmrg 11585555991fdSmrg 11586555991fdSmrgfi 11587555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11588555991fdSmrg$as_echo "$lt_cv_dlopen_self_static" >&6; } 11589555991fdSmrg fi 11590126a8a12Smrg 11591555991fdSmrg CPPFLAGS="$save_CPPFLAGS" 11592555991fdSmrg LDFLAGS="$save_LDFLAGS" 11593555991fdSmrg LIBS="$save_LIBS" 11594555991fdSmrg ;; 11595555991fdSmrg esac 11596555991fdSmrg 11597555991fdSmrg case $lt_cv_dlopen_self in 11598555991fdSmrg yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11599555991fdSmrg *) enable_dlopen_self=unknown ;; 11600555991fdSmrg esac 11601126a8a12Smrg 11602555991fdSmrg case $lt_cv_dlopen_self_static in 11603555991fdSmrg yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11604555991fdSmrg *) enable_dlopen_self_static=unknown ;; 11605555991fdSmrg esac 11606d656433aSmrgfi 11607126a8a12Smrg 11608126a8a12Smrg 11609126a8a12Smrg 11610126a8a12Smrg 11611126a8a12Smrg 11612126a8a12Smrg 11613126a8a12Smrg 11614126a8a12Smrg 11615126a8a12Smrg 11616126a8a12Smrg 11617126a8a12Smrg 11618126a8a12Smrg 11619555991fdSmrg 11620555991fdSmrg 11621555991fdSmrg 11622555991fdSmrg 11623555991fdSmrg 11624555991fdSmrgstriplib= 11625555991fdSmrgold_striplib= 11626555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11627555991fdSmrg$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11628555991fdSmrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11629555991fdSmrg test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11630555991fdSmrg test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11631555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11632555991fdSmrg$as_echo "yes" >&6; } 11633d656433aSmrgelse 11634555991fdSmrg# FIXME - insert some real tests, host_os isn't really good enough 11635555991fdSmrg case $host_os in 11636555991fdSmrg darwin*) 11637555991fdSmrg if test -n "$STRIP" ; then 11638555991fdSmrg striplib="$STRIP -x" 11639555991fdSmrg old_striplib="$STRIP -S" 11640555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11641555991fdSmrg$as_echo "yes" >&6; } 11642555991fdSmrg else 11643555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11644555991fdSmrg$as_echo "no" >&6; } 11645555991fdSmrg fi 11646555991fdSmrg ;; 11647555991fdSmrg *) 11648555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11649555991fdSmrg$as_echo "no" >&6; } 11650555991fdSmrg ;; 11651555991fdSmrg esac 11652d656433aSmrgfi 11653126a8a12Smrg 11654126a8a12Smrg 11655126a8a12Smrg 11656126a8a12Smrg 11657126a8a12Smrg 11658126a8a12Smrg 11659126a8a12Smrg 11660126a8a12Smrg 11661126a8a12Smrg 11662126a8a12Smrg 11663126a8a12Smrg 11664555991fdSmrg 11665555991fdSmrg # Report which library types will actually be built 11666555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11667555991fdSmrg$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11668555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11669555991fdSmrg$as_echo "$can_build_shared" >&6; } 11670555991fdSmrg 11671555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11672555991fdSmrg$as_echo_n "checking whether to build shared libraries... " >&6; } 11673555991fdSmrg test "$can_build_shared" = "no" && enable_shared=no 11674555991fdSmrg 11675555991fdSmrg # On AIX, shared libraries and static libraries use the same namespace, and 11676555991fdSmrg # are all built from PIC. 11677555991fdSmrg case $host_os in 11678555991fdSmrg aix3*) 11679555991fdSmrg test "$enable_shared" = yes && enable_static=no 11680555991fdSmrg if test -n "$RANLIB"; then 11681555991fdSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 11682555991fdSmrg postinstall_cmds='$RANLIB $lib' 11683555991fdSmrg fi 11684555991fdSmrg ;; 11685555991fdSmrg 11686555991fdSmrg aix[4-9]*) 11687555991fdSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11688555991fdSmrg test "$enable_shared" = yes && enable_static=no 11689555991fdSmrg fi 11690555991fdSmrg ;; 11691555991fdSmrg esac 11692555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11693555991fdSmrg$as_echo "$enable_shared" >&6; } 11694555991fdSmrg 11695555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11696555991fdSmrg$as_echo_n "checking whether to build static libraries... " >&6; } 11697555991fdSmrg # Make sure either enable_shared or enable_static is yes. 11698555991fdSmrg test "$enable_shared" = yes || enable_static=yes 11699555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11700555991fdSmrg$as_echo "$enable_static" >&6; } 11701555991fdSmrg 11702555991fdSmrg 11703555991fdSmrg 11704555991fdSmrg 11705555991fdSmrgfi 11706555991fdSmrgac_ext=c 11707555991fdSmrgac_cpp='$CPP $CPPFLAGS' 11708555991fdSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11709555991fdSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11710555991fdSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 11711555991fdSmrg 11712555991fdSmrgCC="$lt_save_CC" 11713555991fdSmrg 11714555991fdSmrg 11715555991fdSmrg 11716555991fdSmrg 11717555991fdSmrg 11718555991fdSmrg 11719126a8a12Smrg 11720126a8a12Smrg 11721555991fdSmrg 11722555991fdSmrg 11723555991fdSmrg 11724555991fdSmrg 11725555991fdSmrg 11726555991fdSmrg ac_config_commands="$ac_config_commands libtool" 11727555991fdSmrg 11728555991fdSmrg 11729555991fdSmrg 11730555991fdSmrg 11731555991fdSmrg# Only expand once: 11732555991fdSmrg 11733555991fdSmrg 11734555991fdSmrgac_ext=c 11735555991fdSmrgac_cpp='$CPP $CPPFLAGS' 11736555991fdSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11737555991fdSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11738555991fdSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 11739555991fdSmrgif test -n "$ac_tool_prefix"; then 11740555991fdSmrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11741555991fdSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 11742555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11743d656433aSmrg$as_echo_n "checking for $ac_word... " >&6; } 11744555991fdSmrgif ${ac_cv_prog_CC+:} false; then : 11745d656433aSmrg $as_echo_n "(cached) " >&6 11746d656433aSmrgelse 11747555991fdSmrg if test -n "$CC"; then 11748555991fdSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 11749555991fdSmrgelse 11750555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11751d656433aSmrgfor as_dir in $PATH 11752d656433aSmrgdo 11753d656433aSmrg IFS=$as_save_IFS 11754d656433aSmrg test -z "$as_dir" && as_dir=. 11755555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 11756d656433aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11757555991fdSmrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 11758555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11759d656433aSmrg break 2 11760d656433aSmrg fi 11761d656433aSmrgdone 11762555991fdSmrg done 11763d656433aSmrgIFS=$as_save_IFS 11764126a8a12Smrg 11765d656433aSmrgfi 11766555991fdSmrgfi 11767555991fdSmrgCC=$ac_cv_prog_CC 11768555991fdSmrgif test -n "$CC"; then 11769555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11770555991fdSmrg$as_echo "$CC" >&6; } 11771d656433aSmrgelse 11772555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11773d656433aSmrg$as_echo "no" >&6; } 11774d656433aSmrgfi 11775126a8a12Smrg 11776126a8a12Smrg 11777d656433aSmrgfi 11778555991fdSmrgif test -z "$ac_cv_prog_CC"; then 11779555991fdSmrg ac_ct_CC=$CC 11780555991fdSmrg # Extract the first word of "gcc", so it can be a program name with args. 11781555991fdSmrgset dummy gcc; ac_word=$2 11782555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11783d656433aSmrg$as_echo_n "checking for $ac_word... " >&6; } 11784555991fdSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 11785d656433aSmrg $as_echo_n "(cached) " >&6 11786d656433aSmrgelse 11787555991fdSmrg if test -n "$ac_ct_CC"; then 11788555991fdSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11789555991fdSmrgelse 11790555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11791d656433aSmrgfor as_dir in $PATH 11792d656433aSmrgdo 11793d656433aSmrg IFS=$as_save_IFS 11794d656433aSmrg test -z "$as_dir" && as_dir=. 11795555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 11796d656433aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11797555991fdSmrg ac_cv_prog_ac_ct_CC="gcc" 11798555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11799d656433aSmrg break 2 11800d656433aSmrg fi 11801d656433aSmrgdone 11802555991fdSmrg done 11803d656433aSmrgIFS=$as_save_IFS 11804126a8a12Smrg 11805d656433aSmrgfi 11806555991fdSmrgfi 11807555991fdSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 11808555991fdSmrgif test -n "$ac_ct_CC"; then 11809555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11810555991fdSmrg$as_echo "$ac_ct_CC" >&6; } 11811d656433aSmrgelse 11812555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11813d656433aSmrg$as_echo "no" >&6; } 11814d656433aSmrgfi 11815126a8a12Smrg 11816555991fdSmrg if test "x$ac_ct_CC" = x; then 11817555991fdSmrg CC="" 11818d656433aSmrg else 11819d656433aSmrg case $cross_compiling:$ac_tool_warned in 11820d656433aSmrgyes:) 11821555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11822d656433aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11823d656433aSmrgac_tool_warned=yes ;; 11824d656433aSmrgesac 11825555991fdSmrg CC=$ac_ct_CC 11826d656433aSmrg fi 11827d656433aSmrgelse 11828555991fdSmrg CC="$ac_cv_prog_CC" 11829d656433aSmrgfi 11830126a8a12Smrg 11831555991fdSmrgif test -z "$CC"; then 11832555991fdSmrg if test -n "$ac_tool_prefix"; then 11833555991fdSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11834555991fdSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2 11835555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11836555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 11837555991fdSmrgif ${ac_cv_prog_CC+:} false; then : 11838555991fdSmrg $as_echo_n "(cached) " >&6 11839555991fdSmrgelse 11840555991fdSmrg if test -n "$CC"; then 11841555991fdSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 11842555991fdSmrgelse 11843555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11844555991fdSmrgfor as_dir in $PATH 11845555991fdSmrgdo 11846555991fdSmrg IFS=$as_save_IFS 11847555991fdSmrg test -z "$as_dir" && as_dir=. 11848555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 11849555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11850555991fdSmrg ac_cv_prog_CC="${ac_tool_prefix}cc" 11851555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11852555991fdSmrg break 2 11853555991fdSmrg fi 11854555991fdSmrgdone 11855555991fdSmrg done 11856555991fdSmrgIFS=$as_save_IFS 11857555991fdSmrg 11858d656433aSmrgfi 11859555991fdSmrgfi 11860555991fdSmrgCC=$ac_cv_prog_CC 11861555991fdSmrgif test -n "$CC"; then 11862555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11863555991fdSmrg$as_echo "$CC" >&6; } 11864555991fdSmrgelse 11865555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11866d656433aSmrg$as_echo "no" >&6; } 11867555991fdSmrgfi 11868555991fdSmrg 11869555991fdSmrg 11870555991fdSmrg fi 11871555991fdSmrgfi 11872555991fdSmrgif test -z "$CC"; then 11873555991fdSmrg # Extract the first word of "cc", so it can be a program name with args. 11874555991fdSmrgset dummy cc; ac_word=$2 11875555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11876555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 11877555991fdSmrgif ${ac_cv_prog_CC+:} false; then : 11878555991fdSmrg $as_echo_n "(cached) " >&6 11879555991fdSmrgelse 11880555991fdSmrg if test -n "$CC"; then 11881555991fdSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 11882555991fdSmrgelse 11883555991fdSmrg ac_prog_rejected=no 11884555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11885555991fdSmrgfor as_dir in $PATH 11886555991fdSmrgdo 11887555991fdSmrg IFS=$as_save_IFS 11888555991fdSmrg test -z "$as_dir" && as_dir=. 11889555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 11890555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11891555991fdSmrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11892555991fdSmrg ac_prog_rejected=yes 11893555991fdSmrg continue 11894555991fdSmrg fi 11895555991fdSmrg ac_cv_prog_CC="cc" 11896555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11897555991fdSmrg break 2 11898555991fdSmrg fi 11899555991fdSmrgdone 11900555991fdSmrg done 11901555991fdSmrgIFS=$as_save_IFS 11902126a8a12Smrg 11903555991fdSmrgif test $ac_prog_rejected = yes; then 11904555991fdSmrg # We found a bogon in the path, so make sure we never use it. 11905555991fdSmrg set dummy $ac_cv_prog_CC 11906555991fdSmrg shift 11907555991fdSmrg if test $# != 0; then 11908555991fdSmrg # We chose a different compiler from the bogus one. 11909555991fdSmrg # However, it has the same basename, so the bogon will be chosen 11910555991fdSmrg # first if we set CC to just the basename; use the full file name. 11911555991fdSmrg shift 11912555991fdSmrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11913555991fdSmrg fi 11914555991fdSmrgfi 11915555991fdSmrgfi 11916555991fdSmrgfi 11917555991fdSmrgCC=$ac_cv_prog_CC 11918555991fdSmrgif test -n "$CC"; then 11919555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11920555991fdSmrg$as_echo "$CC" >&6; } 11921555991fdSmrgelse 11922555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11923555991fdSmrg$as_echo "no" >&6; } 11924d656433aSmrgfi 11925126a8a12Smrg 11926d656433aSmrg 11927d656433aSmrgfi 11928555991fdSmrgif test -z "$CC"; then 11929555991fdSmrg if test -n "$ac_tool_prefix"; then 11930555991fdSmrg for ac_prog in cl.exe 11931555991fdSmrg do 11932555991fdSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11933555991fdSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 11934555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11935555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 11936555991fdSmrgif ${ac_cv_prog_CC+:} false; then : 11937555991fdSmrg $as_echo_n "(cached) " >&6 11938555991fdSmrgelse 11939555991fdSmrg if test -n "$CC"; then 11940555991fdSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 11941555991fdSmrgelse 11942555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11943555991fdSmrgfor as_dir in $PATH 11944555991fdSmrgdo 11945555991fdSmrg IFS=$as_save_IFS 11946555991fdSmrg test -z "$as_dir" && as_dir=. 11947555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 11948555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11949555991fdSmrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11950555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11951555991fdSmrg break 2 11952555991fdSmrg fi 11953555991fdSmrgdone 11954555991fdSmrg done 11955555991fdSmrgIFS=$as_save_IFS 11956555991fdSmrg 11957555991fdSmrgfi 11958555991fdSmrgfi 11959555991fdSmrgCC=$ac_cv_prog_CC 11960555991fdSmrgif test -n "$CC"; then 11961555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11962555991fdSmrg$as_echo "$CC" >&6; } 11963555991fdSmrgelse 11964555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11965555991fdSmrg$as_echo "no" >&6; } 11966555991fdSmrgfi 11967555991fdSmrg 11968555991fdSmrg 11969555991fdSmrg test -n "$CC" && break 11970555991fdSmrg done 11971555991fdSmrgfi 11972555991fdSmrgif test -z "$CC"; then 11973555991fdSmrg ac_ct_CC=$CC 11974555991fdSmrg for ac_prog in cl.exe 11975555991fdSmrgdo 11976555991fdSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 11977555991fdSmrgset dummy $ac_prog; ac_word=$2 11978555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11979555991fdSmrg$as_echo_n "checking for $ac_word... " >&6; } 11980555991fdSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 11981555991fdSmrg $as_echo_n "(cached) " >&6 11982555991fdSmrgelse 11983555991fdSmrg if test -n "$ac_ct_CC"; then 11984555991fdSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11985555991fdSmrgelse 11986555991fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11987555991fdSmrgfor as_dir in $PATH 11988555991fdSmrgdo 11989555991fdSmrg IFS=$as_save_IFS 11990555991fdSmrg test -z "$as_dir" && as_dir=. 11991555991fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 11992555991fdSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11993555991fdSmrg ac_cv_prog_ac_ct_CC="$ac_prog" 11994555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11995555991fdSmrg break 2 11996555991fdSmrg fi 11997555991fdSmrgdone 11998555991fdSmrg done 11999555991fdSmrgIFS=$as_save_IFS 12000555991fdSmrg 12001555991fdSmrgfi 12002d656433aSmrgfi 12003555991fdSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 12004555991fdSmrgif test -n "$ac_ct_CC"; then 12005555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12006555991fdSmrg$as_echo "$ac_ct_CC" >&6; } 12007d656433aSmrgelse 12008555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12009555991fdSmrg$as_echo "no" >&6; } 12010d656433aSmrgfi 12011126a8a12Smrg 12012126a8a12Smrg 12013555991fdSmrg test -n "$ac_ct_CC" && break 12014555991fdSmrgdone 12015126a8a12Smrg 12016555991fdSmrg if test "x$ac_ct_CC" = x; then 12017555991fdSmrg CC="" 12018555991fdSmrg else 12019555991fdSmrg case $cross_compiling:$ac_tool_warned in 12020555991fdSmrgyes:) 12021555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12022555991fdSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12023555991fdSmrgac_tool_warned=yes ;; 12024555991fdSmrgesac 12025555991fdSmrg CC=$ac_ct_CC 12026555991fdSmrg fi 12027d656433aSmrgfi 12028126a8a12Smrg 12029555991fdSmrgfi 12030126a8a12Smrg 12031126a8a12Smrg 12032555991fdSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12033d656433aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12034555991fdSmrgas_fn_error $? "no acceptable C compiler found in \$PATH 12035555991fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 12036126a8a12Smrg 12037555991fdSmrg# Provide some information about the compiler. 12038555991fdSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12039555991fdSmrgset X $ac_compile 12040555991fdSmrgac_compiler=$2 12041555991fdSmrgfor ac_option in --version -v -V -qversion; do 12042555991fdSmrg { { ac_try="$ac_compiler $ac_option >&5" 12043555991fdSmrgcase "(($ac_try" in 12044555991fdSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12045555991fdSmrg *) ac_try_echo=$ac_try;; 12046555991fdSmrgesac 12047555991fdSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12048555991fdSmrg$as_echo "$ac_try_echo"; } >&5 12049555991fdSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12050555991fdSmrg ac_status=$? 12051555991fdSmrg if test -s conftest.err; then 12052555991fdSmrg sed '10a\ 12053555991fdSmrg... rest of stderr output deleted ... 12054555991fdSmrg 10q' conftest.err >conftest.er1 12055555991fdSmrg cat conftest.er1 >&5 12056555991fdSmrg fi 12057555991fdSmrg rm -f conftest.er1 conftest.err 12058555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12059555991fdSmrg test $ac_status = 0; } 12060555991fdSmrgdone 12061126a8a12Smrg 12062555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12063555991fdSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12064555991fdSmrgif ${ac_cv_c_compiler_gnu+:} false; then : 12065555991fdSmrg $as_echo_n "(cached) " >&6 12066126a8a12Smrgelse 12067555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12068555991fdSmrg/* end confdefs.h. */ 12069126a8a12Smrg 12070555991fdSmrgint 12071555991fdSmrgmain () 12072555991fdSmrg{ 12073555991fdSmrg#ifndef __GNUC__ 12074555991fdSmrg choke me 12075555991fdSmrg#endif 12076d656433aSmrg 12077555991fdSmrg ; 12078555991fdSmrg return 0; 12079555991fdSmrg} 12080555991fdSmrg_ACEOF 12081555991fdSmrgif ac_fn_c_try_compile "$LINENO"; then : 12082555991fdSmrg ac_compiler_gnu=yes 12083d656433aSmrgelse 12084555991fdSmrg ac_compiler_gnu=no 12085d656433aSmrgfi 12086555991fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12087555991fdSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu 12088555991fdSmrg 12089d656433aSmrgfi 12090555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12091555991fdSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12092555991fdSmrgif test $ac_compiler_gnu = yes; then 12093555991fdSmrg GCC=yes 12094d656433aSmrgelse 12095555991fdSmrg GCC= 12096126a8a12Smrgfi 12097555991fdSmrgac_test_CFLAGS=${CFLAGS+set} 12098555991fdSmrgac_save_CFLAGS=$CFLAGS 12099555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12100555991fdSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 12101555991fdSmrgif ${ac_cv_prog_cc_g+:} false; then : 12102555991fdSmrg $as_echo_n "(cached) " >&6 12103d656433aSmrgelse 12104555991fdSmrg ac_save_c_werror_flag=$ac_c_werror_flag 12105555991fdSmrg ac_c_werror_flag=yes 12106555991fdSmrg ac_cv_prog_cc_g=no 12107555991fdSmrg CFLAGS="-g" 12108555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12109555991fdSmrg/* end confdefs.h. */ 12110126a8a12Smrg 12111555991fdSmrgint 12112555991fdSmrgmain () 12113555991fdSmrg{ 12114126a8a12Smrg 12115555991fdSmrg ; 12116555991fdSmrg return 0; 12117555991fdSmrg} 12118555991fdSmrg_ACEOF 12119555991fdSmrgif ac_fn_c_try_compile "$LINENO"; then : 12120555991fdSmrg ac_cv_prog_cc_g=yes 12121555991fdSmrgelse 12122555991fdSmrg CFLAGS="" 12123555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12124555991fdSmrg/* end confdefs.h. */ 12125126a8a12Smrg 12126555991fdSmrgint 12127555991fdSmrgmain () 12128555991fdSmrg{ 12129126a8a12Smrg 12130555991fdSmrg ; 12131555991fdSmrg return 0; 12132555991fdSmrg} 12133555991fdSmrg_ACEOF 12134555991fdSmrgif ac_fn_c_try_compile "$LINENO"; then : 12135126a8a12Smrg 12136555991fdSmrgelse 12137555991fdSmrg ac_c_werror_flag=$ac_save_c_werror_flag 12138555991fdSmrg CFLAGS="-g" 12139555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12140555991fdSmrg/* end confdefs.h. */ 12141126a8a12Smrg 12142555991fdSmrgint 12143555991fdSmrgmain () 12144555991fdSmrg{ 12145126a8a12Smrg 12146555991fdSmrg ; 12147555991fdSmrg return 0; 12148555991fdSmrg} 12149555991fdSmrg_ACEOF 12150555991fdSmrgif ac_fn_c_try_compile "$LINENO"; then : 12151555991fdSmrg ac_cv_prog_cc_g=yes 12152555991fdSmrgfi 12153555991fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12154555991fdSmrgfi 12155555991fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12156555991fdSmrgfi 12157555991fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12158555991fdSmrg ac_c_werror_flag=$ac_save_c_werror_flag 12159555991fdSmrgfi 12160555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12161555991fdSmrg$as_echo "$ac_cv_prog_cc_g" >&6; } 12162555991fdSmrgif test "$ac_test_CFLAGS" = set; then 12163555991fdSmrg CFLAGS=$ac_save_CFLAGS 12164555991fdSmrgelif test $ac_cv_prog_cc_g = yes; then 12165555991fdSmrg if test "$GCC" = yes; then 12166555991fdSmrg CFLAGS="-g -O2" 12167555991fdSmrg else 12168555991fdSmrg CFLAGS="-g" 12169555991fdSmrg fi 12170d656433aSmrgelse 12171555991fdSmrg if test "$GCC" = yes; then 12172555991fdSmrg CFLAGS="-O2" 12173555991fdSmrg else 12174555991fdSmrg CFLAGS= 12175555991fdSmrg fi 12176d656433aSmrgfi 12177555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12178555991fdSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12179555991fdSmrgif ${ac_cv_prog_cc_c89+:} false; then : 12180d656433aSmrg $as_echo_n "(cached) " >&6 12181d656433aSmrgelse 12182555991fdSmrg ac_cv_prog_cc_c89=no 12183555991fdSmrgac_save_CC=$CC 12184555991fdSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 12185d656433aSmrg/* end confdefs.h. */ 12186d656433aSmrg#include <stdarg.h> 12187555991fdSmrg#include <stdio.h> 12188555991fdSmrg#include <sys/types.h> 12189555991fdSmrg#include <sys/stat.h> 12190555991fdSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12191555991fdSmrgstruct buf { int x; }; 12192555991fdSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 12193555991fdSmrgstatic char *e (p, i) 12194555991fdSmrg char **p; 12195555991fdSmrg int i; 12196555991fdSmrg{ 12197555991fdSmrg return p[i]; 12198555991fdSmrg} 12199555991fdSmrgstatic char *f (char * (*g) (char **, int), char **p, ...) 12200555991fdSmrg{ 12201555991fdSmrg char *s; 12202555991fdSmrg va_list v; 12203555991fdSmrg va_start (v,p); 12204555991fdSmrg s = g (p, va_arg (v,int)); 12205555991fdSmrg va_end (v); 12206555991fdSmrg return s; 12207555991fdSmrg} 12208555991fdSmrg 12209555991fdSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12210555991fdSmrg function prototypes and stuff, but not '\xHH' hex character constants. 12211555991fdSmrg These don't provoke an error unfortunately, instead are silently treated 12212555991fdSmrg as 'x'. The following induces an error, until -std is added to get 12213555991fdSmrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12214555991fdSmrg array size at least. It's necessary to write '\x00'==0 to get something 12215555991fdSmrg that's true only with -std. */ 12216555991fdSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12217555991fdSmrg 12218555991fdSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12219555991fdSmrg inside strings and character constants. */ 12220555991fdSmrg#define FOO(x) 'x' 12221555991fdSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12222126a8a12Smrg 12223555991fdSmrgint test (int i, double x); 12224555991fdSmrgstruct s1 {int (*f) (int a);}; 12225555991fdSmrgstruct s2 {int (*f) (double a);}; 12226555991fdSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12227555991fdSmrgint argc; 12228555991fdSmrgchar **argv; 12229d656433aSmrgint 12230d656433aSmrgmain () 12231d656433aSmrg{ 12232555991fdSmrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12233d656433aSmrg ; 12234d656433aSmrg return 0; 12235d656433aSmrg} 12236d656433aSmrg_ACEOF 12237555991fdSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12238555991fdSmrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12239555991fdSmrgdo 12240555991fdSmrg CC="$ac_save_CC $ac_arg" 12241555991fdSmrg if ac_fn_c_try_compile "$LINENO"; then : 12242555991fdSmrg ac_cv_prog_cc_c89=$ac_arg 12243d656433aSmrgfi 12244555991fdSmrgrm -f core conftest.err conftest.$ac_objext 12245555991fdSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 12246555991fdSmrgdone 12247555991fdSmrgrm -f conftest.$ac_ext 12248555991fdSmrgCC=$ac_save_CC 12249126a8a12Smrg 12250126a8a12Smrgfi 12251555991fdSmrg# AC_CACHE_VAL 12252555991fdSmrgcase "x$ac_cv_prog_cc_c89" in 12253555991fdSmrg x) 12254555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12255555991fdSmrg$as_echo "none needed" >&6; } ;; 12256555991fdSmrg xno) 12257555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12258555991fdSmrg$as_echo "unsupported" >&6; } ;; 12259555991fdSmrg *) 12260555991fdSmrg CC="$CC $ac_cv_prog_cc_c89" 12261555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12262555991fdSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12263555991fdSmrgesac 12264555991fdSmrgif test "x$ac_cv_prog_cc_c89" != xno; then : 12265d656433aSmrg 12266126a8a12Smrgfi 12267d656433aSmrg 12268555991fdSmrgac_ext=c 12269555991fdSmrgac_cpp='$CPP $CPPFLAGS' 12270555991fdSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12271555991fdSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12272555991fdSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 12273d656433aSmrg 12274555991fdSmrgdepcc="$CC" am_compiler_list= 12275555991fdSmrg 12276555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12277555991fdSmrg$as_echo_n "checking dependency style of $depcc... " >&6; } 12278555991fdSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 12279555991fdSmrg $as_echo_n "(cached) " >&6 12280126a8a12Smrgelse 12281555991fdSmrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12282555991fdSmrg # We make a subdir and do the tests there. Otherwise we can end up 12283555991fdSmrg # making bogus files that we don't know about and never remove. For 12284555991fdSmrg # instance it was reported that on HP-UX the gcc test will end up 12285555991fdSmrg # making a dummy file named `D' -- because `-MD' means `put the output 12286555991fdSmrg # in D'. 12287555991fdSmrg mkdir conftest.dir 12288555991fdSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 12289555991fdSmrg # using a relative directory. 12290555991fdSmrg cp "$am_depcomp" conftest.dir 12291555991fdSmrg cd conftest.dir 12292555991fdSmrg # We will build objects and dependencies in a subdirectory because 12293555991fdSmrg # it helps to detect inapplicable dependency modes. For instance 12294555991fdSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 12295555991fdSmrg # side effect of compilation, but ICC will put the dependencies in 12296555991fdSmrg # the current directory while Tru64 will put them in the object 12297555991fdSmrg # directory. 12298555991fdSmrg mkdir sub 12299126a8a12Smrg 12300555991fdSmrg am_cv_CC_dependencies_compiler_type=none 12301555991fdSmrg if test "$am_compiler_list" = ""; then 12302555991fdSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12303555991fdSmrg fi 12304555991fdSmrg am__universal=false 12305555991fdSmrg case " $depcc " in #( 12306555991fdSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 12307555991fdSmrg esac 12308d656433aSmrg 12309555991fdSmrg for depmode in $am_compiler_list; do 12310555991fdSmrg # Setup a source with many dependencies, because some compilers 12311555991fdSmrg # like to wrap large dependency lists on column 80 (with \), and 12312555991fdSmrg # we should not choose a depcomp mode which is confused by this. 12313555991fdSmrg # 12314555991fdSmrg # We need to recreate these files for each test, as the compiler may 12315555991fdSmrg # overwrite some of them when testing with obscure command lines. 12316555991fdSmrg # This happens at least with the AIX C compiler. 12317555991fdSmrg : > sub/conftest.c 12318555991fdSmrg for i in 1 2 3 4 5 6; do 12319555991fdSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 12320555991fdSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 12321555991fdSmrg # Solaris 8's {/usr,}/bin/sh. 12322555991fdSmrg touch sub/conftst$i.h 12323555991fdSmrg done 12324555991fdSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12325d656433aSmrg 12326555991fdSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 12327555991fdSmrg # mode. It turns out that the SunPro C++ compiler does not properly 12328555991fdSmrg # handle `-M -o', and we need to detect this. Also, some Intel 12329555991fdSmrg # versions had trouble with output in subdirs 12330555991fdSmrg am__obj=sub/conftest.${OBJEXT-o} 12331555991fdSmrg am__minus_obj="-o $am__obj" 12332555991fdSmrg case $depmode in 12333555991fdSmrg gcc) 12334555991fdSmrg # This depmode causes a compiler race in universal mode. 12335555991fdSmrg test "$am__universal" = false || continue 12336555991fdSmrg ;; 12337555991fdSmrg nosideeffect) 12338555991fdSmrg # after this tag, mechanisms are not by side-effect, so they'll 12339555991fdSmrg # only be used when explicitly requested 12340555991fdSmrg if test "x$enable_dependency_tracking" = xyes; then 12341555991fdSmrg continue 12342555991fdSmrg else 12343555991fdSmrg break 12344555991fdSmrg fi 12345555991fdSmrg ;; 12346555991fdSmrg msvisualcpp | msvcmsys) 12347555991fdSmrg # This compiler won't grok `-c -o', but also, the minuso test has 12348555991fdSmrg # not run yet. These depmodes are late enough in the game, and 12349555991fdSmrg # so weak that their functioning should not be impacted. 12350555991fdSmrg am__obj=conftest.${OBJEXT-o} 12351555991fdSmrg am__minus_obj= 12352555991fdSmrg ;; 12353555991fdSmrg none) break ;; 12354555991fdSmrg esac 12355555991fdSmrg if depmode=$depmode \ 12356555991fdSmrg source=sub/conftest.c object=$am__obj \ 12357555991fdSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12358555991fdSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12359555991fdSmrg >/dev/null 2>conftest.err && 12360555991fdSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12361555991fdSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12362555991fdSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12363555991fdSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12364555991fdSmrg # icc doesn't choke on unknown options, it will just issue warnings 12365555991fdSmrg # or remarks (even with -Werror). So we grep stderr for any message 12366555991fdSmrg # that says an option was ignored or not supported. 12367555991fdSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 12368555991fdSmrg # icc: Command line warning: ignoring option '-M'; no argument required 12369555991fdSmrg # The diagnosis changed in icc 8.0: 12370555991fdSmrg # icc: Command line remark: option '-MP' not supported 12371555991fdSmrg if (grep 'ignoring option' conftest.err || 12372555991fdSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12373555991fdSmrg am_cv_CC_dependencies_compiler_type=$depmode 12374555991fdSmrg break 12375555991fdSmrg fi 12376555991fdSmrg fi 12377555991fdSmrg done 12378126a8a12Smrg 12379555991fdSmrg cd .. 12380555991fdSmrg rm -rf conftest.dir 12381555991fdSmrgelse 12382555991fdSmrg am_cv_CC_dependencies_compiler_type=none 12383126a8a12Smrgfi 12384126a8a12Smrg 12385126a8a12Smrgfi 12386555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 12387555991fdSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 12388555991fdSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 12389555991fdSmrg 12390555991fdSmrg if 12391555991fdSmrg test "x$enable_dependency_tracking" != xno \ 12392555991fdSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 12393555991fdSmrg am__fastdepCC_TRUE= 12394555991fdSmrg am__fastdepCC_FALSE='#' 12395555991fdSmrgelse 12396555991fdSmrg am__fastdepCC_TRUE='#' 12397555991fdSmrg am__fastdepCC_FALSE= 12398126a8a12Smrgfi 12399126a8a12Smrg 12400126a8a12Smrg 12401d656433aSmrg 12402555991fdSmrg# Checks for pkg-config packages 12403d656433aSmrg 12404555991fdSmrgpkg_failed=no 12405555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SM" >&5 12406555991fdSmrg$as_echo_n "checking for SM... " >&6; } 12407d656433aSmrg 12408555991fdSmrgif test -n "$SM_CFLAGS"; then 12409555991fdSmrg pkg_cv_SM_CFLAGS="$SM_CFLAGS" 12410555991fdSmrg elif test -n "$PKG_CONFIG"; then 12411555991fdSmrg if test -n "$PKG_CONFIG" && \ 12412555991fdSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ice >= 1.0.5 xproto\""; } >&5 12413555991fdSmrg ($PKG_CONFIG --exists --print-errors "ice >= 1.0.5 xproto") 2>&5 12414d656433aSmrg ac_status=$? 12415555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12416555991fdSmrg test $ac_status = 0; }; then 12417555991fdSmrg pkg_cv_SM_CFLAGS=`$PKG_CONFIG --cflags "ice >= 1.0.5 xproto" 2>/dev/null` 12418126a8a12Smrgelse 12419555991fdSmrg pkg_failed=yes 12420126a8a12Smrgfi 12421555991fdSmrg else 12422555991fdSmrg pkg_failed=untried 12423555991fdSmrgfi 12424555991fdSmrgif test -n "$SM_LIBS"; then 12425555991fdSmrg pkg_cv_SM_LIBS="$SM_LIBS" 12426555991fdSmrg elif test -n "$PKG_CONFIG"; then 12427555991fdSmrg if test -n "$PKG_CONFIG" && \ 12428555991fdSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ice >= 1.0.5 xproto\""; } >&5 12429555991fdSmrg ($PKG_CONFIG --exists --print-errors "ice >= 1.0.5 xproto") 2>&5 12430555991fdSmrg ac_status=$? 12431555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12432555991fdSmrg test $ac_status = 0; }; then 12433555991fdSmrg pkg_cv_SM_LIBS=`$PKG_CONFIG --libs "ice >= 1.0.5 xproto" 2>/dev/null` 12434555991fdSmrgelse 12435555991fdSmrg pkg_failed=yes 12436555991fdSmrgfi 12437555991fdSmrg else 12438555991fdSmrg pkg_failed=untried 12439126a8a12Smrgfi 12440d656433aSmrg 12441d656433aSmrg 12442d656433aSmrg 12443555991fdSmrgif test $pkg_failed = yes; then 12444d656433aSmrg 12445555991fdSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12446555991fdSmrg _pkg_short_errors_supported=yes 12447126a8a12Smrgelse 12448555991fdSmrg _pkg_short_errors_supported=no 12449126a8a12Smrgfi 12450555991fdSmrg if test $_pkg_short_errors_supported = yes; then 12451555991fdSmrg SM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ice >= 1.0.5 xproto" 2>&1` 12452555991fdSmrg else 12453555991fdSmrg SM_PKG_ERRORS=`$PKG_CONFIG --print-errors "ice >= 1.0.5 xproto" 2>&1` 12454555991fdSmrg fi 12455555991fdSmrg # Put the nasty error message in config.log where it belongs 12456555991fdSmrg echo "$SM_PKG_ERRORS" >&5 12457126a8a12Smrg 12458555991fdSmrg as_fn_error $? "Package requirements (ice >= 1.0.5 xproto) were not met: 12459126a8a12Smrg 12460555991fdSmrg$SM_PKG_ERRORS 12461126a8a12Smrg 12462555991fdSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 12463555991fdSmrginstalled software in a non-standard prefix. 12464555991fdSmrg 12465555991fdSmrgAlternatively, you may set the environment variables SM_CFLAGS 12466555991fdSmrgand SM_LIBS to avoid the need to call pkg-config. 12467555991fdSmrgSee the pkg-config man page for more details. 12468555991fdSmrg" "$LINENO" 5 12469555991fdSmrgelif test $pkg_failed = untried; then 12470555991fdSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12471555991fdSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12472555991fdSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12473555991fdSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 12474555991fdSmrgpath to pkg-config. 12475555991fdSmrg 12476555991fdSmrgAlternatively, you may set the environment variables SM_CFLAGS 12477555991fdSmrgand SM_LIBS to avoid the need to call pkg-config. 12478555991fdSmrgSee the pkg-config man page for more details. 12479555991fdSmrg 12480555991fdSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 12481555991fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 12482126a8a12Smrgelse 12483555991fdSmrg SM_CFLAGS=$pkg_cv_SM_CFLAGS 12484555991fdSmrg SM_LIBS=$pkg_cv_SM_LIBS 12485555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12486555991fdSmrg$as_echo "yes" >&6; } 12487555991fdSmrg : 12488126a8a12Smrgfi 12489126a8a12Smrg 12490126a8a12Smrg 12491d656433aSmrg 12492d656433aSmrg 12493555991fdSmrgpkg_failed=no 12494555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTRANS" >&5 12495555991fdSmrg$as_echo_n "checking for XTRANS... " >&6; } 12496d656433aSmrg 12497555991fdSmrgif test -n "$XTRANS_CFLAGS"; then 12498555991fdSmrg pkg_cv_XTRANS_CFLAGS="$XTRANS_CFLAGS" 12499555991fdSmrg elif test -n "$PKG_CONFIG"; then 12500555991fdSmrg if test -n "$PKG_CONFIG" && \ 12501555991fdSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtrans\""; } >&5 12502555991fdSmrg ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5 12503d656433aSmrg ac_status=$? 12504555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12505555991fdSmrg test $ac_status = 0; }; then 12506555991fdSmrg pkg_cv_XTRANS_CFLAGS=`$PKG_CONFIG --cflags "xtrans" 2>/dev/null` 12507d656433aSmrgelse 12508555991fdSmrg pkg_failed=yes 12509126a8a12Smrgfi 12510555991fdSmrg else 12511555991fdSmrg pkg_failed=untried 12512126a8a12Smrgfi 12513555991fdSmrgif test -n "$XTRANS_LIBS"; then 12514555991fdSmrg pkg_cv_XTRANS_LIBS="$XTRANS_LIBS" 12515555991fdSmrg elif test -n "$PKG_CONFIG"; then 12516555991fdSmrg if test -n "$PKG_CONFIG" && \ 12517555991fdSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtrans\""; } >&5 12518555991fdSmrg ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5 12519555991fdSmrg ac_status=$? 12520555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12521555991fdSmrg test $ac_status = 0; }; then 12522555991fdSmrg pkg_cv_XTRANS_LIBS=`$PKG_CONFIG --libs "xtrans" 2>/dev/null` 12523126a8a12Smrgelse 12524555991fdSmrg pkg_failed=yes 12525d656433aSmrgfi 12526555991fdSmrg else 12527555991fdSmrg pkg_failed=untried 12528126a8a12Smrgfi 12529126a8a12Smrg 12530126a8a12Smrg 12531126a8a12Smrg 12532555991fdSmrgif test $pkg_failed = yes; then 12533555991fdSmrg 12534555991fdSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12535555991fdSmrg _pkg_short_errors_supported=yes 12536d656433aSmrgelse 12537555991fdSmrg _pkg_short_errors_supported=no 12538555991fdSmrgfi 12539555991fdSmrg if test $_pkg_short_errors_supported = yes; then 12540555991fdSmrg XTRANS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xtrans" 2>&1` 12541555991fdSmrg else 12542555991fdSmrg XTRANS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xtrans" 2>&1` 12543555991fdSmrg fi 12544555991fdSmrg # Put the nasty error message in config.log where it belongs 12545555991fdSmrg echo "$XTRANS_PKG_ERRORS" >&5 12546d656433aSmrg 12547555991fdSmrg as_fn_error $? "Package requirements (xtrans) were not met: 12548d656433aSmrg 12549555991fdSmrg$XTRANS_PKG_ERRORS 12550126a8a12Smrg 12551555991fdSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 12552555991fdSmrginstalled software in a non-standard prefix. 12553555991fdSmrg 12554555991fdSmrgAlternatively, you may set the environment variables XTRANS_CFLAGS 12555555991fdSmrgand XTRANS_LIBS to avoid the need to call pkg-config. 12556555991fdSmrgSee the pkg-config man page for more details. 12557555991fdSmrg" "$LINENO" 5 12558555991fdSmrgelif test $pkg_failed = untried; then 12559555991fdSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12560555991fdSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12561555991fdSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12562555991fdSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 12563555991fdSmrgpath to pkg-config. 12564555991fdSmrg 12565555991fdSmrgAlternatively, you may set the environment variables XTRANS_CFLAGS 12566555991fdSmrgand XTRANS_LIBS to avoid the need to call pkg-config. 12567555991fdSmrgSee the pkg-config man page for more details. 12568555991fdSmrg 12569555991fdSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 12570555991fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 12571d656433aSmrgelse 12572555991fdSmrg XTRANS_CFLAGS=$pkg_cv_XTRANS_CFLAGS 12573555991fdSmrg XTRANS_LIBS=$pkg_cv_XTRANS_LIBS 12574555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12575555991fdSmrg$as_echo "yes" >&6; } 12576555991fdSmrg : 12577d656433aSmrgfi 12578126a8a12Smrg 12579126a8a12Smrg 12580126a8a12Smrg 12581555991fdSmrg# Checks for libraries. 12582555991fdSmrg 12583555991fdSmrg# Checks for header files. 12584555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12585555991fdSmrg$as_echo_n "checking for ANSI C header files... " >&6; } 12586555991fdSmrgif ${ac_cv_header_stdc+:} false; then : 12587d656433aSmrg $as_echo_n "(cached) " >&6 12588d656433aSmrgelse 12589555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12590d656433aSmrg/* end confdefs.h. */ 12591555991fdSmrg#include <stdlib.h> 12592555991fdSmrg#include <stdarg.h> 12593555991fdSmrg#include <string.h> 12594555991fdSmrg#include <float.h> 12595d656433aSmrg 12596d656433aSmrgint 12597d656433aSmrgmain () 12598d656433aSmrg{ 12599555991fdSmrg 12600d656433aSmrg ; 12601d656433aSmrg return 0; 12602d656433aSmrg} 12603d656433aSmrg_ACEOF 12604555991fdSmrgif ac_fn_c_try_compile "$LINENO"; then : 12605555991fdSmrg ac_cv_header_stdc=yes 12606d656433aSmrgelse 12607555991fdSmrg ac_cv_header_stdc=no 12608d656433aSmrgfi 12609555991fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12610d656433aSmrg 12611555991fdSmrgif test $ac_cv_header_stdc = yes; then 12612555991fdSmrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12613555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12614555991fdSmrg/* end confdefs.h. */ 12615555991fdSmrg#include <string.h> 12616d656433aSmrg 12617555991fdSmrg_ACEOF 12618555991fdSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12619555991fdSmrg $EGREP "memchr" >/dev/null 2>&1; then : 12620d656433aSmrg 12621555991fdSmrgelse 12622555991fdSmrg ac_cv_header_stdc=no 12623d656433aSmrgfi 12624555991fdSmrgrm -f conftest* 12625d656433aSmrg 12626555991fdSmrgfi 12627d656433aSmrg 12628555991fdSmrgif test $ac_cv_header_stdc = yes; then 12629555991fdSmrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12630555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12631126a8a12Smrg/* end confdefs.h. */ 12632555991fdSmrg#include <stdlib.h> 12633d656433aSmrg 12634555991fdSmrg_ACEOF 12635555991fdSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12636555991fdSmrg $EGREP "free" >/dev/null 2>&1; then : 12637d656433aSmrg 12638555991fdSmrgelse 12639555991fdSmrg ac_cv_header_stdc=no 12640555991fdSmrgfi 12641555991fdSmrgrm -f conftest* 12642d656433aSmrg 12643555991fdSmrgfi 12644d656433aSmrg 12645555991fdSmrgif test $ac_cv_header_stdc = yes; then 12646555991fdSmrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12647555991fdSmrg if test "$cross_compiling" = yes; then : 12648555991fdSmrg : 12649555991fdSmrgelse 12650555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12651555991fdSmrg/* end confdefs.h. */ 12652555991fdSmrg#include <ctype.h> 12653555991fdSmrg#include <stdlib.h> 12654555991fdSmrg#if ((' ' & 0x0FF) == 0x020) 12655555991fdSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12656555991fdSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12657555991fdSmrg#else 12658555991fdSmrg# define ISLOWER(c) \ 12659555991fdSmrg (('a' <= (c) && (c) <= 'i') \ 12660555991fdSmrg || ('j' <= (c) && (c) <= 'r') \ 12661555991fdSmrg || ('s' <= (c) && (c) <= 'z')) 12662555991fdSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12663d656433aSmrg#endif 12664126a8a12Smrg 12665555991fdSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12666126a8a12Smrgint 12667126a8a12Smrgmain () 12668126a8a12Smrg{ 12669555991fdSmrg int i; 12670555991fdSmrg for (i = 0; i < 256; i++) 12671555991fdSmrg if (XOR (islower (i), ISLOWER (i)) 12672555991fdSmrg || toupper (i) != TOUPPER (i)) 12673555991fdSmrg return 2; 12674126a8a12Smrg return 0; 12675126a8a12Smrg} 12676126a8a12Smrg_ACEOF 12677555991fdSmrgif ac_fn_c_try_run "$LINENO"; then : 12678126a8a12Smrg 12679d656433aSmrgelse 12680555991fdSmrg ac_cv_header_stdc=no 12681555991fdSmrgfi 12682555991fdSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12683555991fdSmrg conftest.$ac_objext conftest.beam conftest.$ac_ext 12684d656433aSmrgfi 12685126a8a12Smrg 12686126a8a12Smrgfi 12687555991fdSmrgfi 12688555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12689555991fdSmrg$as_echo "$ac_cv_header_stdc" >&6; } 12690555991fdSmrgif test $ac_cv_header_stdc = yes; then 12691d656433aSmrg 12692555991fdSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12693d656433aSmrg 12694555991fdSmrgfi 12695d656433aSmrg 12696d656433aSmrg 12697555991fdSmrg# Needed to check for TCP & IPv6 support and set flags appropriately 12698555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 12699555991fdSmrg$as_echo_n "checking return type of signal handlers... " >&6; } 12700555991fdSmrgif ${ac_cv_type_signal+:} false; then : 12701d656433aSmrg $as_echo_n "(cached) " >&6 12702126a8a12Smrgelse 12703555991fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12704126a8a12Smrg/* end confdefs.h. */ 12705d656433aSmrg#include <sys/types.h> 12706555991fdSmrg#include <signal.h> 12707d656433aSmrg 12708126a8a12Smrgint 12709126a8a12Smrgmain () 12710126a8a12Smrg{ 12711555991fdSmrgreturn *(signal (0, 0)) (0) == 1; 12712126a8a12Smrg ; 12713126a8a12Smrg return 0; 12714126a8a12Smrg} 12715126a8a12Smrg_ACEOF 12716555991fdSmrgif ac_fn_c_try_compile "$LINENO"; then : 12717555991fdSmrg ac_cv_type_signal=int 12718126a8a12Smrgelse 12719555991fdSmrg ac_cv_type_signal=void 12720555991fdSmrgfi 12721555991fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12722555991fdSmrgfi 12723555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 12724555991fdSmrg$as_echo "$ac_cv_type_signal" >&6; } 12725126a8a12Smrg 12726555991fdSmrgcat >>confdefs.h <<_ACEOF 12727555991fdSmrg#define RETSIGTYPE $ac_cv_type_signal 12728126a8a12Smrg_ACEOF 12729126a8a12Smrg 12730d656433aSmrg 12731d656433aSmrg 12732555991fdSmrg 12733555991fdSmrg 12734555991fdSmrg case $host_os in 12735555991fdSmrg mingw*) unixdef="no" ;; 12736555991fdSmrg *) unixdef="yes" ;; 12737555991fdSmrg esac 12738555991fdSmrg # Check whether --enable-unix-transport was given. 12739555991fdSmrgif test "${enable_unix_transport+set}" = set; then : 12740555991fdSmrg enableval=$enable_unix_transport; UNIXCONN=$enableval 12741555991fdSmrgelse 12742555991fdSmrg UNIXCONN=$unixdef 12743555991fdSmrgfi 12744555991fdSmrg 12745555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 12746555991fdSmrg$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 12747555991fdSmrg if test "$UNIXCONN" = "yes"; then 12748555991fdSmrg 12749555991fdSmrg$as_echo "#define UNIXCONN 1" >>confdefs.h 12750555991fdSmrg 12751555991fdSmrg fi 12752555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 12753555991fdSmrg$as_echo "$UNIXCONN" >&6; } 12754555991fdSmrg # Check whether --enable-tcp-transport was given. 12755555991fdSmrgif test "${enable_tcp_transport+set}" = set; then : 12756555991fdSmrg enableval=$enable_tcp_transport; TCPCONN=$enableval 12757555991fdSmrgelse 12758555991fdSmrg TCPCONN=yes 12759555991fdSmrgfi 12760555991fdSmrg 12761555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 12762555991fdSmrg$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 12763555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 12764555991fdSmrg$as_echo "$TCPCONN" >&6; } 12765555991fdSmrg if test "$TCPCONN" = "yes"; then 12766555991fdSmrg 12767555991fdSmrg$as_echo "#define TCPCONN 1" >>confdefs.h 12768555991fdSmrg 12769555991fdSmrg 12770555991fdSmrg # SVR4 hides these in libraries other than libc 12771555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 12772555991fdSmrg$as_echo_n "checking for library containing socket... " >&6; } 12773555991fdSmrgif ${ac_cv_search_socket+:} false; then : 12774555991fdSmrg $as_echo_n "(cached) " >&6 12775555991fdSmrgelse 12776555991fdSmrg ac_func_search_save_LIBS=$LIBS 12777555991fdSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 12778555991fdSmrg/* end confdefs.h. */ 12779555991fdSmrg 12780555991fdSmrg/* Override any GCC internal prototype to avoid an error. 12781555991fdSmrg Use char because int might match the return type of a GCC 12782555991fdSmrg builtin and then its argument prototype would still apply. */ 12783555991fdSmrg#ifdef __cplusplus 12784555991fdSmrgextern "C" 12785555991fdSmrg#endif 12786555991fdSmrgchar socket (); 12787126a8a12Smrgint 12788126a8a12Smrgmain () 12789126a8a12Smrg{ 12790555991fdSmrgreturn socket (); 12791126a8a12Smrg ; 12792126a8a12Smrg return 0; 12793126a8a12Smrg} 12794126a8a12Smrg_ACEOF 12795555991fdSmrgfor ac_lib in '' socket; do 12796555991fdSmrg if test -z "$ac_lib"; then 12797555991fdSmrg ac_res="none required" 12798555991fdSmrg else 12799555991fdSmrg ac_res=-l$ac_lib 12800555991fdSmrg LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12801555991fdSmrg fi 12802555991fdSmrg if ac_fn_c_try_link "$LINENO"; then : 12803555991fdSmrg ac_cv_search_socket=$ac_res 12804d656433aSmrgfi 12805555991fdSmrgrm -f core conftest.err conftest.$ac_objext \ 12806555991fdSmrg conftest$ac_exeext 12807555991fdSmrg if ${ac_cv_search_socket+:} false; then : 12808555991fdSmrg break 12809d656433aSmrgfi 12810555991fdSmrgdone 12811555991fdSmrgif ${ac_cv_search_socket+:} false; then : 12812d656433aSmrg 12813555991fdSmrgelse 12814555991fdSmrg ac_cv_search_socket=no 12815d656433aSmrgfi 12816555991fdSmrgrm conftest.$ac_ext 12817555991fdSmrgLIBS=$ac_func_search_save_LIBS 12818d656433aSmrgfi 12819555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 12820555991fdSmrg$as_echo "$ac_cv_search_socket" >&6; } 12821555991fdSmrgac_res=$ac_cv_search_socket 12822555991fdSmrgif test "$ac_res" != no; then : 12823555991fdSmrg test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12824d656433aSmrg 12825555991fdSmrgfi 12826d656433aSmrg 12827555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 12828555991fdSmrg$as_echo_n "checking for library containing gethostbyname... " >&6; } 12829555991fdSmrgif ${ac_cv_search_gethostbyname+:} false; then : 12830d656433aSmrg $as_echo_n "(cached) " >&6 12831d656433aSmrgelse 12832555991fdSmrg ac_func_search_save_LIBS=$LIBS 12833555991fdSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 12834126a8a12Smrg/* end confdefs.h. */ 12835126a8a12Smrg 12836555991fdSmrg/* Override any GCC internal prototype to avoid an error. 12837555991fdSmrg Use char because int might match the return type of a GCC 12838555991fdSmrg builtin and then its argument prototype would still apply. */ 12839555991fdSmrg#ifdef __cplusplus 12840555991fdSmrgextern "C" 12841555991fdSmrg#endif 12842555991fdSmrgchar gethostbyname (); 12843126a8a12Smrgint 12844126a8a12Smrgmain () 12845126a8a12Smrg{ 12846555991fdSmrgreturn gethostbyname (); 12847126a8a12Smrg ; 12848126a8a12Smrg return 0; 12849126a8a12Smrg} 12850126a8a12Smrg_ACEOF 12851555991fdSmrgfor ac_lib in '' nsl; do 12852555991fdSmrg if test -z "$ac_lib"; then 12853555991fdSmrg ac_res="none required" 12854555991fdSmrg else 12855555991fdSmrg ac_res=-l$ac_lib 12856555991fdSmrg LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12857555991fdSmrg fi 12858555991fdSmrg if ac_fn_c_try_link "$LINENO"; then : 12859555991fdSmrg ac_cv_search_gethostbyname=$ac_res 12860555991fdSmrgfi 12861555991fdSmrgrm -f core conftest.err conftest.$ac_objext \ 12862555991fdSmrg conftest$ac_exeext 12863555991fdSmrg if ${ac_cv_search_gethostbyname+:} false; then : 12864555991fdSmrg break 12865555991fdSmrgfi 12866555991fdSmrgdone 12867555991fdSmrgif ${ac_cv_search_gethostbyname+:} false; then : 12868555991fdSmrg 12869555991fdSmrgelse 12870555991fdSmrg ac_cv_search_gethostbyname=no 12871555991fdSmrgfi 12872555991fdSmrgrm conftest.$ac_ext 12873555991fdSmrgLIBS=$ac_func_search_save_LIBS 12874555991fdSmrgfi 12875555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 12876555991fdSmrg$as_echo "$ac_cv_search_gethostbyname" >&6; } 12877555991fdSmrgac_res=$ac_cv_search_gethostbyname 12878555991fdSmrgif test "$ac_res" != no; then : 12879555991fdSmrg test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12880555991fdSmrg 12881555991fdSmrgfi 12882555991fdSmrg 12883555991fdSmrg if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 12884555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 12885555991fdSmrg$as_echo_n "checking for main in -lws2_32... " >&6; } 12886555991fdSmrgif ${ac_cv_lib_ws2_32_main+:} false; then : 12887555991fdSmrg $as_echo_n "(cached) " >&6 12888555991fdSmrgelse 12889555991fdSmrg ac_check_lib_save_LIBS=$LIBS 12890555991fdSmrgLIBS="-lws2_32 $LIBS" 12891555991fdSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 12892126a8a12Smrg/* end confdefs.h. */ 12893126a8a12Smrg 12894126a8a12Smrg 12895126a8a12Smrgint 12896126a8a12Smrgmain () 12897126a8a12Smrg{ 12898555991fdSmrgreturn main (); 12899126a8a12Smrg ; 12900126a8a12Smrg return 0; 12901126a8a12Smrg} 12902126a8a12Smrg_ACEOF 12903555991fdSmrgif ac_fn_c_try_link "$LINENO"; then : 12904555991fdSmrg ac_cv_lib_ws2_32_main=yes 12905126a8a12Smrgelse 12906555991fdSmrg ac_cv_lib_ws2_32_main=no 12907555991fdSmrgfi 12908555991fdSmrgrm -f core conftest.err conftest.$ac_objext \ 12909555991fdSmrg conftest$ac_exeext conftest.$ac_ext 12910555991fdSmrgLIBS=$ac_check_lib_save_LIBS 12911555991fdSmrgfi 12912555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 12913555991fdSmrg$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 12914555991fdSmrgif test "x$ac_cv_lib_ws2_32_main" = xyes; then : 12915555991fdSmrg cat >>confdefs.h <<_ACEOF 12916555991fdSmrg#define HAVE_LIBWS2_32 1 12917555991fdSmrg_ACEOF 12918555991fdSmrg 12919555991fdSmrg LIBS="-lws2_32 $LIBS" 12920126a8a12Smrg 12921126a8a12Smrgfi 12922555991fdSmrgac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 12923126a8a12Smrg 12924555991fdSmrg fi 12925126a8a12Smrg 12926555991fdSmrg # Needs to come after above checks for libsocket & libnsl for SVR4 systems 12927555991fdSmrg # Check whether --enable-ipv6 was given. 12928555991fdSmrgif test "${enable_ipv6+set}" = set; then : 12929555991fdSmrg enableval=$enable_ipv6; IPV6CONN=$enableval 12930555991fdSmrgelse 12931555991fdSmrg ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 12932555991fdSmrgif test "x$ac_cv_func_getaddrinfo" = xyes; then : 12933555991fdSmrg IPV6CONN=yes 12934555991fdSmrgelse 12935555991fdSmrg IPV6CONN=no 12936555991fdSmrgfi 12937126a8a12Smrg 12938d656433aSmrgfi 12939126a8a12Smrg 12940555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 12941555991fdSmrg$as_echo_n "checking if IPv6 support should be built... " >&6; } 12942555991fdSmrg if test "$IPV6CONN" = "yes"; then 12943555991fdSmrg 12944555991fdSmrg$as_echo "#define IPv6 1" >>confdefs.h 12945555991fdSmrg 12946555991fdSmrg fi 12947555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 12948555991fdSmrg$as_echo "$IPV6CONN" >&6; } 12949555991fdSmrg 12950555991fdSmrg # 4.3BSD-Reno added a new member to struct sockaddr_in 12951555991fdSmrg ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 12952555991fdSmrg#include <sys/types.h> 12953555991fdSmrg#include <sys/socket.h> 12954555991fdSmrg#include <netinet/in.h> 12955555991fdSmrg 12956555991fdSmrg" 12957555991fdSmrgif test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 12958555991fdSmrg 12959555991fdSmrg$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 12960555991fdSmrg 12961126a8a12Smrgfi 12962555991fdSmrg 12963555991fdSmrg 12964555991fdSmrg # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 12965555991fdSmrg ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 12966555991fdSmrg$ac_includes_default 12967555991fdSmrg#include <sys/socket.h> 12968555991fdSmrg" 12969555991fdSmrgif test "x$ac_cv_type_socklen_t" = xyes; then : 12970d656433aSmrg 12971d656433aSmrgcat >>confdefs.h <<_ACEOF 12972d656433aSmrg#define HAVE_SOCKLEN_T 1 12973d656433aSmrg_ACEOF 12974d656433aSmrg 12975126a8a12Smrg 12976126a8a12Smrgfi 12977126a8a12Smrg 12978d656433aSmrg 12979d656433aSmrg 12980d656433aSmrg fi 12981d656433aSmrg case $host_os in 12982d656433aSmrg solaris*|sco*|sysv4*) localdef="yes" ;; 12983d656433aSmrg *) localdef="no" ;; 12984d656433aSmrg esac 12985d656433aSmrg # Check whether --enable-local-transport was given. 12986555991fdSmrgif test "${enable_local_transport+set}" = set; then : 12987d656433aSmrg enableval=$enable_local_transport; LOCALCONN=$enableval 12988126a8a12Smrgelse 12989d656433aSmrg LOCALCONN=$localdef 12990126a8a12Smrgfi 12991126a8a12Smrg 12992555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 12993d656433aSmrg$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 12994555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 12995d656433aSmrg$as_echo "$LOCALCONN" >&6; } 12996d656433aSmrg if test "$LOCALCONN" = "yes"; then 12997126a8a12Smrg 12998555991fdSmrg$as_echo "#define LOCALCONN 1" >>confdefs.h 12999126a8a12Smrg 13000d656433aSmrg fi 13001126a8a12Smrg 13002126a8a12Smrg 13003126a8a12Smrg 13004d656433aSmrg 13005d656433aSmrg# Check whether --with-libuuid was given. 13006555991fdSmrgif test "${with_libuuid+set}" = set; then : 13007d656433aSmrg withval=$with_libuuid; 13008126a8a12Smrgfi 13009126a8a12Smrg 13010126a8a12Smrg 13011d656433aSmrgfor ac_func in uuid_create 13012555991fdSmrgdo : 13013555991fdSmrg ac_fn_c_check_func "$LINENO" "uuid_create" "ac_cv_func_uuid_create" 13014555991fdSmrgif test "x$ac_cv_func_uuid_create" = xyes; then : 13015d656433aSmrg cat >>confdefs.h <<_ACEOF 13016555991fdSmrg#define HAVE_UUID_CREATE 1 13017d656433aSmrg_ACEOF 13018126a8a12Smrg 13019d656433aSmrgelse 13020126a8a12Smrg 13021d656433aSmrg if test x"$with_libuuid" != xno && test x"$have_system_uuid" != xyes; then 13022d656433aSmrg 13023d656433aSmrgpkg_failed=no 13024555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUUID" >&5 13025d656433aSmrg$as_echo_n "checking for LIBUUID... " >&6; } 13026d656433aSmrg 13027d656433aSmrgif test -n "$LIBUUID_CFLAGS"; then 13028d656433aSmrg pkg_cv_LIBUUID_CFLAGS="$LIBUUID_CFLAGS" 13029d656433aSmrg elif test -n "$PKG_CONFIG"; then 13030d656433aSmrg if test -n "$PKG_CONFIG" && \ 13031555991fdSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5 13032d656433aSmrg ($PKG_CONFIG --exists --print-errors "uuid") 2>&5 13033126a8a12Smrg ac_status=$? 13034555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13035555991fdSmrg test $ac_status = 0; }; then 13036d656433aSmrg pkg_cv_LIBUUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null` 13037126a8a12Smrgelse 13038126a8a12Smrg pkg_failed=yes 13039126a8a12Smrgfi 13040d656433aSmrg else 13041d656433aSmrg pkg_failed=untried 13042126a8a12Smrgfi 13043d656433aSmrgif test -n "$LIBUUID_LIBS"; then 13044d656433aSmrg pkg_cv_LIBUUID_LIBS="$LIBUUID_LIBS" 13045d656433aSmrg elif test -n "$PKG_CONFIG"; then 13046d656433aSmrg if test -n "$PKG_CONFIG" && \ 13047555991fdSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5 13048d656433aSmrg ($PKG_CONFIG --exists --print-errors "uuid") 2>&5 13049126a8a12Smrg ac_status=$? 13050555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13051555991fdSmrg test $ac_status = 0; }; then 13052d656433aSmrg pkg_cv_LIBUUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null` 13053126a8a12Smrgelse 13054126a8a12Smrg pkg_failed=yes 13055126a8a12Smrgfi 13056d656433aSmrg else 13057d656433aSmrg pkg_failed=untried 13058126a8a12Smrgfi 13059126a8a12Smrg 13060126a8a12Smrg 13061126a8a12Smrg 13062126a8a12Smrgif test $pkg_failed = yes; then 13063126a8a12Smrg 13064126a8a12Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13065126a8a12Smrg _pkg_short_errors_supported=yes 13066126a8a12Smrgelse 13067126a8a12Smrg _pkg_short_errors_supported=no 13068126a8a12Smrgfi 13069126a8a12Smrg if test $_pkg_short_errors_supported = yes; then 13070d656433aSmrg LIBUUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "uuid" 2>&1` 13071126a8a12Smrg else 13072d656433aSmrg LIBUUID_PKG_ERRORS=`$PKG_CONFIG --print-errors "uuid" 2>&1` 13073126a8a12Smrg fi 13074126a8a12Smrg # Put the nasty error message in config.log where it belongs 13075d656433aSmrg echo "$LIBUUID_PKG_ERRORS" >&5 13076126a8a12Smrg 13077555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13078d656433aSmrg$as_echo "no" >&6; } 13079d656433aSmrg HAVE_LIBUUID=no 13080126a8a12Smrgelif test $pkg_failed = untried; then 13081d656433aSmrg HAVE_LIBUUID=no 13082d656433aSmrgelse 13083d656433aSmrg LIBUUID_CFLAGS=$pkg_cv_LIBUUID_CFLAGS 13084d656433aSmrg LIBUUID_LIBS=$pkg_cv_LIBUUID_LIBS 13085555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13086d656433aSmrg$as_echo "yes" >&6; } 13087d656433aSmrg HAVE_LIBUUID=yes 13088d656433aSmrgfi 13089d656433aSmrg fi 13090d656433aSmrg if test x"$with_libuuid" = xyes && test x"$HAVE_LIBUUID" = xno; then 13091555991fdSmrg as_fn_error $? "requested libuuid support but uuid.pc not found" "$LINENO" 5 13092d656433aSmrg fi 13093126a8a12Smrg 13094d656433aSmrgfi 13095d656433aSmrgdone 13096126a8a12Smrg 13097126a8a12Smrg 13098d656433aSmrg if test x"$HAVE_LIBUUID" = xyes; then 13099d656433aSmrg WITH_LIBUUID_TRUE= 13100d656433aSmrg WITH_LIBUUID_FALSE='#' 13101126a8a12Smrgelse 13102d656433aSmrg WITH_LIBUUID_TRUE='#' 13103d656433aSmrg WITH_LIBUUID_FALSE= 13104126a8a12Smrgfi 13105126a8a12Smrg 13106126a8a12Smrg 13107555991fdSmrgac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile sm.pc" 13108126a8a12Smrg 13109d656433aSmrgcat >confcache <<\_ACEOF 13110d656433aSmrg# This file is a shell script that caches the results of configure 13111d656433aSmrg# tests run on this system so they can be shared between configure 13112d656433aSmrg# scripts and configure runs, see configure's option --config-cache. 13113d656433aSmrg# It is not useful on other systems. If it contains results you don't 13114d656433aSmrg# want to keep, you may remove or edit it. 13115d656433aSmrg# 13116d656433aSmrg# config.status only pays attention to the cache file if you give it 13117d656433aSmrg# the --recheck option to rerun configure. 13118d656433aSmrg# 13119d656433aSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 13120d656433aSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 13121d656433aSmrg# following values. 13122126a8a12Smrg 13123d656433aSmrg_ACEOF 13124126a8a12Smrg 13125d656433aSmrg# The following way of writing the cache mishandles newlines in values, 13126d656433aSmrg# but we know of no workaround that is simple, portable, and efficient. 13127d656433aSmrg# So, we kill variables containing newlines. 13128d656433aSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 13129d656433aSmrg# and sets the high bit in the cache file unless we assign to the vars. 13130d656433aSmrg( 13131d656433aSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13132d656433aSmrg eval ac_val=\$$ac_var 13133d656433aSmrg case $ac_val in #( 13134d656433aSmrg *${as_nl}*) 13135d656433aSmrg case $ac_var in #( 13136555991fdSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13137d656433aSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13138d656433aSmrg esac 13139d656433aSmrg case $ac_var in #( 13140d656433aSmrg _ | IFS | as_nl) ;; #( 13141d656433aSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13142555991fdSmrg *) { eval $ac_var=; unset $ac_var;} ;; 13143d656433aSmrg esac ;; 13144d656433aSmrg esac 13145d656433aSmrg done 13146126a8a12Smrg 13147d656433aSmrg (set) 2>&1 | 13148d656433aSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 13149d656433aSmrg *${as_nl}ac_space=\ *) 13150555991fdSmrg # `set' does not quote correctly, so add quotes: double-quote 13151555991fdSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 13152d656433aSmrg sed -n \ 13153d656433aSmrg "s/'/'\\\\''/g; 13154d656433aSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13155d656433aSmrg ;; #( 13156d656433aSmrg *) 13157d656433aSmrg # `set' quotes correctly as required by POSIX, so do not add quotes. 13158d656433aSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13159d656433aSmrg ;; 13160d656433aSmrg esac | 13161d656433aSmrg sort 13162d656433aSmrg) | 13163d656433aSmrg sed ' 13164d656433aSmrg /^ac_cv_env_/b end 13165d656433aSmrg t clear 13166d656433aSmrg :clear 13167d656433aSmrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13168d656433aSmrg t end 13169d656433aSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13170d656433aSmrg :end' >>confcache 13171d656433aSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13172d656433aSmrg if test -w "$cache_file"; then 13173555991fdSmrg if test "x$cache_file" != "x/dev/null"; then 13174555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13175d656433aSmrg$as_echo "$as_me: updating cache $cache_file" >&6;} 13176555991fdSmrg if test ! -f "$cache_file" || test -h "$cache_file"; then 13177555991fdSmrg cat confcache >"$cache_file" 13178555991fdSmrg else 13179555991fdSmrg case $cache_file in #( 13180555991fdSmrg */* | ?:*) 13181555991fdSmrg mv -f confcache "$cache_file"$$ && 13182555991fdSmrg mv -f "$cache_file"$$ "$cache_file" ;; #( 13183555991fdSmrg *) 13184555991fdSmrg mv -f confcache "$cache_file" ;; 13185555991fdSmrg esac 13186555991fdSmrg fi 13187555991fdSmrg fi 13188d656433aSmrg else 13189555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13190d656433aSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13191d656433aSmrg fi 13192126a8a12Smrgfi 13193d656433aSmrgrm -f confcache 13194126a8a12Smrg 13195d656433aSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 13196d656433aSmrg# Let make expand exec_prefix. 13197d656433aSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13198126a8a12Smrg 13199d656433aSmrgDEFS=-DHAVE_CONFIG_H 13200126a8a12Smrg 13201d656433aSmrgac_libobjs= 13202d656433aSmrgac_ltlibobjs= 13203555991fdSmrgU= 13204d656433aSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13205d656433aSmrg # 1. Remove the extension, and $U if already installed. 13206d656433aSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13207d656433aSmrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13208d656433aSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13209d656433aSmrg # will be set to the directory where LIBOBJS objects are built. 13210555991fdSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13211555991fdSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13212d656433aSmrgdone 13213d656433aSmrgLIBOBJS=$ac_libobjs 13214126a8a12Smrg 13215d656433aSmrgLTLIBOBJS=$ac_ltlibobjs 13216126a8a12Smrg 13217126a8a12Smrg 13218d656433aSmrg if test -n "$EXEEXT"; then 13219d656433aSmrg am__EXEEXT_TRUE= 13220d656433aSmrg am__EXEEXT_FALSE='#' 13221126a8a12Smrgelse 13222d656433aSmrg am__EXEEXT_TRUE='#' 13223d656433aSmrg am__EXEEXT_FALSE= 13224d656433aSmrgfi 13225126a8a12Smrg 13226d656433aSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13227555991fdSmrg as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 13228555991fdSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 13229555991fdSmrgfi 13230555991fdSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13231555991fdSmrg as_fn_error $? "conditional \"AMDEP\" was never defined. 13232555991fdSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 13233555991fdSmrgfi 13234555991fdSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13235555991fdSmrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13236555991fdSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 13237555991fdSmrgfi 13238555991fdSmrgif test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 13239555991fdSmrg as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 13240555991fdSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 13241555991fdSmrgfi 13242555991fdSmrgif test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 13243555991fdSmrg as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 13244555991fdSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 13245555991fdSmrgfi 13246555991fdSmrgif test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 13247555991fdSmrg as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 13248555991fdSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 13249d656433aSmrgfi 13250555991fdSmrgif test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 13251555991fdSmrg as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 13252555991fdSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 13253d656433aSmrgfi 13254555991fdSmrgif test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 13255555991fdSmrg as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 13256555991fdSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 13257d656433aSmrgfi 13258d656433aSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13259555991fdSmrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13260555991fdSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 13261d656433aSmrgfi 13262d656433aSmrgif test -z "${WITH_LIBUUID_TRUE}" && test -z "${WITH_LIBUUID_FALSE}"; then 13263555991fdSmrg as_fn_error $? "conditional \"WITH_LIBUUID\" was never defined. 13264555991fdSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 13265126a8a12Smrgfi 13266126a8a12Smrg 13267555991fdSmrg: "${CONFIG_STATUS=./config.status}" 13268d656433aSmrgac_write_fail=0 13269d656433aSmrgac_clean_files_save=$ac_clean_files 13270d656433aSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 13271555991fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13272d656433aSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13273555991fdSmrgas_write_fail=0 13274555991fdSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13275d656433aSmrg#! $SHELL 13276d656433aSmrg# Generated by $as_me. 13277d656433aSmrg# Run this file to recreate the current configuration. 13278d656433aSmrg# Compiler output produced by configure, useful for debugging 13279d656433aSmrg# configure, is in config.log if it exists. 13280126a8a12Smrg 13281d656433aSmrgdebug=false 13282d656433aSmrgac_cs_recheck=false 13283d656433aSmrgac_cs_silent=false 13284126a8a12Smrg 13285555991fdSmrgSHELL=\${CONFIG_SHELL-$SHELL} 13286555991fdSmrgexport SHELL 13287555991fdSmrg_ASEOF 13288555991fdSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13289555991fdSmrg## -------------------- ## 13290555991fdSmrg## M4sh Initialization. ## 13291555991fdSmrg## -------------------- ## 13292d656433aSmrg 13293d656433aSmrg# Be more Bourne compatible 13294d656433aSmrgDUALCASE=1; export DUALCASE # for MKS sh 13295555991fdSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13296d656433aSmrg emulate sh 13297d656433aSmrg NULLCMD=: 13298d656433aSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13299d656433aSmrg # is contrary to our usage. Disable this feature. 13300d656433aSmrg alias -g '${1+"$@"}'='"$@"' 13301d656433aSmrg setopt NO_GLOB_SUBST 13302126a8a12Smrgelse 13303555991fdSmrg case `(set -o) 2>/dev/null` in #( 13304555991fdSmrg *posix*) : 13305555991fdSmrg set -o posix ;; #( 13306555991fdSmrg *) : 13307555991fdSmrg ;; 13308d656433aSmrgesac 13309126a8a12Smrgfi 13310126a8a12Smrg 13311d656433aSmrg 13312d656433aSmrgas_nl=' 13313d656433aSmrg' 13314d656433aSmrgexport as_nl 13315d656433aSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 13316d656433aSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13317d656433aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13318d656433aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13319555991fdSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 13320555991fdSmrg# but without wasting forks for bash or zsh. 13321555991fdSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 13322555991fdSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13323555991fdSmrg as_echo='print -r --' 13324555991fdSmrg as_echo_n='print -rn --' 13325555991fdSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13326d656433aSmrg as_echo='printf %s\n' 13327d656433aSmrg as_echo_n='printf %s' 13328d656433aSmrgelse 13329d656433aSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13330d656433aSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13331d656433aSmrg as_echo_n='/usr/ucb/echo -n' 13332d656433aSmrg else 13333d656433aSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13334d656433aSmrg as_echo_n_body='eval 13335d656433aSmrg arg=$1; 13336555991fdSmrg case $arg in #( 13337d656433aSmrg *"$as_nl"*) 13338d656433aSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 13339d656433aSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13340d656433aSmrg esac; 13341d656433aSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13342d656433aSmrg ' 13343d656433aSmrg export as_echo_n_body 13344d656433aSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 13345d656433aSmrg fi 13346d656433aSmrg export as_echo_body 13347d656433aSmrg as_echo='sh -c $as_echo_body as_echo' 13348126a8a12Smrgfi 13349126a8a12Smrg 13350d656433aSmrg# The user is always right. 13351d656433aSmrgif test "${PATH_SEPARATOR+set}" != set; then 13352d656433aSmrg PATH_SEPARATOR=: 13353d656433aSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13354d656433aSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13355d656433aSmrg PATH_SEPARATOR=';' 13356d656433aSmrg } 13357d656433aSmrgfi 13358126a8a12Smrg 13359126a8a12Smrg 13360d656433aSmrg# IFS 13361d656433aSmrg# We need space, tab and new line, in precisely that order. Quoting is 13362d656433aSmrg# there to prevent editors from complaining about space-tab. 13363d656433aSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13364d656433aSmrg# splitting by setting IFS to empty value.) 13365d656433aSmrgIFS=" "" $as_nl" 13366126a8a12Smrg 13367d656433aSmrg# Find who we are. Look in the path if we contain no directory separator. 13368555991fdSmrgas_myself= 13369555991fdSmrgcase $0 in #(( 13370d656433aSmrg *[\\/]* ) as_myself=$0 ;; 13371d656433aSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13372d656433aSmrgfor as_dir in $PATH 13373d656433aSmrgdo 13374d656433aSmrg IFS=$as_save_IFS 13375d656433aSmrg test -z "$as_dir" && as_dir=. 13376555991fdSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13377555991fdSmrg done 13378d656433aSmrgIFS=$as_save_IFS 13379126a8a12Smrg 13380d656433aSmrg ;; 13381d656433aSmrgesac 13382d656433aSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 13383d656433aSmrg# in which case we are not to be found in the path. 13384d656433aSmrgif test "x$as_myself" = x; then 13385d656433aSmrg as_myself=$0 13386126a8a12Smrgfi 13387d656433aSmrgif test ! -f "$as_myself"; then 13388d656433aSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13389555991fdSmrg exit 1 13390126a8a12Smrgfi 13391126a8a12Smrg 13392555991fdSmrg# Unset variables that we do not need and which cause bugs (e.g. in 13393555991fdSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13394555991fdSmrg# suppresses any "Segmentation fault" message there. '((' could 13395555991fdSmrg# trigger a bug in pdksh 5.2.14. 13396555991fdSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 13397555991fdSmrgdo eval test x\${$as_var+set} = xset \ 13398555991fdSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13399d656433aSmrgdone 13400d656433aSmrgPS1='$ ' 13401d656433aSmrgPS2='> ' 13402d656433aSmrgPS4='+ ' 13403d656433aSmrg 13404d656433aSmrg# NLS nuisances. 13405d656433aSmrgLC_ALL=C 13406d656433aSmrgexport LC_ALL 13407d656433aSmrgLANGUAGE=C 13408d656433aSmrgexport LANGUAGE 13409126a8a12Smrg 13410555991fdSmrg# CDPATH. 13411555991fdSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13412555991fdSmrg 13413555991fdSmrg 13414555991fdSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 13415555991fdSmrg# ---------------------------------------- 13416555991fdSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13417555991fdSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13418555991fdSmrg# script with STATUS, using 1 if that was 0. 13419555991fdSmrgas_fn_error () 13420555991fdSmrg{ 13421555991fdSmrg as_status=$1; test $as_status -eq 0 && as_status=1 13422555991fdSmrg if test "$4"; then 13423555991fdSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13424555991fdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13425555991fdSmrg fi 13426555991fdSmrg $as_echo "$as_me: error: $2" >&2 13427555991fdSmrg as_fn_exit $as_status 13428555991fdSmrg} # as_fn_error 13429555991fdSmrg 13430555991fdSmrg 13431555991fdSmrg# as_fn_set_status STATUS 13432555991fdSmrg# ----------------------- 13433555991fdSmrg# Set $? to STATUS, without forking. 13434555991fdSmrgas_fn_set_status () 13435555991fdSmrg{ 13436555991fdSmrg return $1 13437555991fdSmrg} # as_fn_set_status 13438555991fdSmrg 13439555991fdSmrg# as_fn_exit STATUS 13440555991fdSmrg# ----------------- 13441555991fdSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13442555991fdSmrgas_fn_exit () 13443555991fdSmrg{ 13444555991fdSmrg set +e 13445555991fdSmrg as_fn_set_status $1 13446555991fdSmrg exit $1 13447555991fdSmrg} # as_fn_exit 13448555991fdSmrg 13449555991fdSmrg# as_fn_unset VAR 13450555991fdSmrg# --------------- 13451555991fdSmrg# Portably unset VAR. 13452555991fdSmrgas_fn_unset () 13453555991fdSmrg{ 13454555991fdSmrg { eval $1=; unset $1;} 13455555991fdSmrg} 13456555991fdSmrgas_unset=as_fn_unset 13457555991fdSmrg# as_fn_append VAR VALUE 13458555991fdSmrg# ---------------------- 13459555991fdSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 13460555991fdSmrg# advantage of any shell optimizations that allow amortized linear growth over 13461555991fdSmrg# repeated appends, instead of the typical quadratic growth present in naive 13462555991fdSmrg# implementations. 13463555991fdSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13464555991fdSmrg eval 'as_fn_append () 13465555991fdSmrg { 13466555991fdSmrg eval $1+=\$2 13467555991fdSmrg }' 13468555991fdSmrgelse 13469555991fdSmrg as_fn_append () 13470555991fdSmrg { 13471555991fdSmrg eval $1=\$$1\$2 13472555991fdSmrg } 13473555991fdSmrgfi # as_fn_append 13474555991fdSmrg 13475555991fdSmrg# as_fn_arith ARG... 13476555991fdSmrg# ------------------ 13477555991fdSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 13478555991fdSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 13479555991fdSmrg# must be portable across $(()) and expr. 13480555991fdSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13481555991fdSmrg eval 'as_fn_arith () 13482555991fdSmrg { 13483555991fdSmrg as_val=$(( $* )) 13484555991fdSmrg }' 13485555991fdSmrgelse 13486555991fdSmrg as_fn_arith () 13487555991fdSmrg { 13488555991fdSmrg as_val=`expr "$@" || test $? -eq 1` 13489555991fdSmrg } 13490555991fdSmrgfi # as_fn_arith 13491555991fdSmrg 13492555991fdSmrg 13493d656433aSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 13494d656433aSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 13495d656433aSmrg as_expr=expr 13496d656433aSmrgelse 13497d656433aSmrg as_expr=false 13498126a8a12Smrgfi 13499d656433aSmrg 13500d656433aSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13501d656433aSmrg as_basename=basename 13502d656433aSmrgelse 13503d656433aSmrg as_basename=false 13504126a8a12Smrgfi 13505126a8a12Smrg 13506555991fdSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13507555991fdSmrg as_dirname=dirname 13508555991fdSmrgelse 13509555991fdSmrg as_dirname=false 13510555991fdSmrgfi 13511126a8a12Smrg 13512d656433aSmrgas_me=`$as_basename -- "$0" || 13513d656433aSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13514d656433aSmrg X"$0" : 'X\(//\)$' \| \ 13515d656433aSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 13516d656433aSmrg$as_echo X/"$0" | 13517d656433aSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 13518d656433aSmrg s//\1/ 13519d656433aSmrg q 13520d656433aSmrg } 13521d656433aSmrg /^X\/\(\/\/\)$/{ 13522d656433aSmrg s//\1/ 13523d656433aSmrg q 13524d656433aSmrg } 13525d656433aSmrg /^X\/\(\/\).*/{ 13526d656433aSmrg s//\1/ 13527d656433aSmrg q 13528d656433aSmrg } 13529d656433aSmrg s/.*/./; q'` 13530126a8a12Smrg 13531555991fdSmrg# Avoid depending upon Character Ranges. 13532555991fdSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 13533555991fdSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13534555991fdSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 13535555991fdSmrgas_cr_digits='0123456789' 13536555991fdSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 13537d656433aSmrg 13538d656433aSmrgECHO_C= ECHO_N= ECHO_T= 13539555991fdSmrgcase `echo -n x` in #((((( 13540d656433aSmrg-n*) 13541555991fdSmrg case `echo 'xy\c'` in 13542d656433aSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13543555991fdSmrg xy) ECHO_C='\c';; 13544555991fdSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13545555991fdSmrg ECHO_T=' ';; 13546d656433aSmrg esac;; 13547d656433aSmrg*) 13548d656433aSmrg ECHO_N='-n';; 13549126a8a12Smrgesac 13550d656433aSmrg 13551d656433aSmrgrm -f conf$$ conf$$.exe conf$$.file 13552d656433aSmrgif test -d conf$$.dir; then 13553d656433aSmrg rm -f conf$$.dir/conf$$.file 13554d656433aSmrgelse 13555d656433aSmrg rm -f conf$$.dir 13556d656433aSmrg mkdir conf$$.dir 2>/dev/null 13557d656433aSmrgfi 13558d656433aSmrgif (echo >conf$$.file) 2>/dev/null; then 13559d656433aSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 13560d656433aSmrg as_ln_s='ln -s' 13561d656433aSmrg # ... but there are two gotchas: 13562d656433aSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13563d656433aSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13564d656433aSmrg # In both cases, we have to default to `cp -p'. 13565d656433aSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13566d656433aSmrg as_ln_s='cp -p' 13567d656433aSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 13568d656433aSmrg as_ln_s=ln 13569d656433aSmrg else 13570d656433aSmrg as_ln_s='cp -p' 13571d656433aSmrg fi 13572126a8a12Smrgelse 13573d656433aSmrg as_ln_s='cp -p' 13574126a8a12Smrgfi 13575d656433aSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13576d656433aSmrgrmdir conf$$.dir 2>/dev/null 13577126a8a12Smrg 13578555991fdSmrg 13579555991fdSmrg# as_fn_mkdir_p 13580555991fdSmrg# ------------- 13581555991fdSmrg# Create "$as_dir" as a directory, including parents if necessary. 13582555991fdSmrgas_fn_mkdir_p () 13583555991fdSmrg{ 13584555991fdSmrg 13585555991fdSmrg case $as_dir in #( 13586555991fdSmrg -*) as_dir=./$as_dir;; 13587555991fdSmrg esac 13588555991fdSmrg test -d "$as_dir" || eval $as_mkdir_p || { 13589555991fdSmrg as_dirs= 13590555991fdSmrg while :; do 13591555991fdSmrg case $as_dir in #( 13592555991fdSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13593555991fdSmrg *) as_qdir=$as_dir;; 13594555991fdSmrg esac 13595555991fdSmrg as_dirs="'$as_qdir' $as_dirs" 13596555991fdSmrg as_dir=`$as_dirname -- "$as_dir" || 13597555991fdSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13598555991fdSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 13599555991fdSmrg X"$as_dir" : 'X\(//\)$' \| \ 13600555991fdSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13601555991fdSmrg$as_echo X"$as_dir" | 13602555991fdSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13603555991fdSmrg s//\1/ 13604555991fdSmrg q 13605555991fdSmrg } 13606555991fdSmrg /^X\(\/\/\)[^/].*/{ 13607555991fdSmrg s//\1/ 13608555991fdSmrg q 13609555991fdSmrg } 13610555991fdSmrg /^X\(\/\/\)$/{ 13611555991fdSmrg s//\1/ 13612555991fdSmrg q 13613555991fdSmrg } 13614555991fdSmrg /^X\(\/\).*/{ 13615555991fdSmrg s//\1/ 13616555991fdSmrg q 13617555991fdSmrg } 13618555991fdSmrg s/.*/./; q'` 13619555991fdSmrg test -d "$as_dir" && break 13620555991fdSmrg done 13621555991fdSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 13622555991fdSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13623555991fdSmrg 13624555991fdSmrg 13625555991fdSmrg} # as_fn_mkdir_p 13626d656433aSmrgif mkdir -p . 2>/dev/null; then 13627555991fdSmrg as_mkdir_p='mkdir -p "$as_dir"' 13628d656433aSmrgelse 13629d656433aSmrg test -d ./-p && rmdir ./-p 13630d656433aSmrg as_mkdir_p=false 13631126a8a12Smrgfi 13632126a8a12Smrg 13633d656433aSmrgif test -x / >/dev/null 2>&1; then 13634d656433aSmrg as_test_x='test -x' 13635d656433aSmrgelse 13636d656433aSmrg if ls -dL / >/dev/null 2>&1; then 13637d656433aSmrg as_ls_L_option=L 13638d656433aSmrg else 13639d656433aSmrg as_ls_L_option= 13640d656433aSmrg fi 13641d656433aSmrg as_test_x=' 13642d656433aSmrg eval sh -c '\'' 13643d656433aSmrg if test -d "$1"; then 13644d656433aSmrg test -d "$1/."; 13645d656433aSmrg else 13646555991fdSmrg case $1 in #( 13647d656433aSmrg -*)set "./$1";; 13648d656433aSmrg esac; 13649555991fdSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 13650d656433aSmrg ???[sx]*):;;*)false;;esac;fi 13651d656433aSmrg '\'' sh 13652d656433aSmrg ' 13653d656433aSmrgfi 13654d656433aSmrgas_executable_p=$as_test_x 13655126a8a12Smrg 13656d656433aSmrg# Sed expression to map a string onto a valid CPP name. 13657d656433aSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13658126a8a12Smrg 13659d656433aSmrg# Sed expression to map a string onto a valid variable name. 13660d656433aSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13661126a8a12Smrg 13662126a8a12Smrg 13663d656433aSmrgexec 6>&1 13664555991fdSmrg## ----------------------------------- ## 13665555991fdSmrg## Main body of $CONFIG_STATUS script. ## 13666555991fdSmrg## ----------------------------------- ## 13667555991fdSmrg_ASEOF 13668555991fdSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13669126a8a12Smrg 13670555991fdSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13671555991fdSmrg# Save the log message, to keep $0 and so on meaningful, and to 13672d656433aSmrg# report actual input values of CONFIG_FILES etc. instead of their 13673d656433aSmrg# values after options handling. 13674d656433aSmrgac_log=" 13675555991fdSmrgThis file was extended by libSM $as_me 1.2.0, which was 13676555991fdSmrggenerated by GNU Autoconf 2.68. Invocation command line was 13677126a8a12Smrg 13678d656433aSmrg CONFIG_FILES = $CONFIG_FILES 13679d656433aSmrg CONFIG_HEADERS = $CONFIG_HEADERS 13680d656433aSmrg CONFIG_LINKS = $CONFIG_LINKS 13681d656433aSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 13682d656433aSmrg $ $0 $@ 13683126a8a12Smrg 13684d656433aSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 13685d656433aSmrg" 13686126a8a12Smrg 13687126a8a12Smrg_ACEOF 13688126a8a12Smrg 13689d656433aSmrgcase $ac_config_files in *" 13690d656433aSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 13691d656433aSmrgesac 13692126a8a12Smrg 13693d656433aSmrgcase $ac_config_headers in *" 13694d656433aSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13695d656433aSmrgesac 13696126a8a12Smrg 13697126a8a12Smrg 13698d656433aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13699d656433aSmrg# Files that config.status was made for. 13700d656433aSmrgconfig_files="$ac_config_files" 13701d656433aSmrgconfig_headers="$ac_config_headers" 13702d656433aSmrgconfig_commands="$ac_config_commands" 13703126a8a12Smrg 13704126a8a12Smrg_ACEOF 13705126a8a12Smrg 13706d656433aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13707d656433aSmrgac_cs_usage="\ 13708555991fdSmrg\`$as_me' instantiates files and other configuration actions 13709555991fdSmrgfrom templates according to the current configuration. Unless the files 13710555991fdSmrgand actions are specified as TAGs, all are instantiated by default. 13711d656433aSmrg 13712555991fdSmrgUsage: $0 [OPTION]... [TAG]... 13713126a8a12Smrg 13714d656433aSmrg -h, --help print this help, then exit 13715d656433aSmrg -V, --version print version number and configuration settings, then exit 13716555991fdSmrg --config print configuration, then exit 13717d656433aSmrg -q, --quiet, --silent 13718d656433aSmrg do not print progress messages 13719d656433aSmrg -d, --debug don't remove temporary files 13720d656433aSmrg --recheck update $as_me by reconfiguring in the same conditions 13721d656433aSmrg --file=FILE[:TEMPLATE] 13722d656433aSmrg instantiate the configuration file FILE 13723d656433aSmrg --header=FILE[:TEMPLATE] 13724d656433aSmrg instantiate the configuration header FILE 13725126a8a12Smrg 13726d656433aSmrgConfiguration files: 13727d656433aSmrg$config_files 13728126a8a12Smrg 13729d656433aSmrgConfiguration headers: 13730d656433aSmrg$config_headers 13731d656433aSmrg 13732d656433aSmrgConfiguration commands: 13733d656433aSmrg$config_commands 13734d656433aSmrg 13735555991fdSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 13736126a8a12Smrg 13737126a8a12Smrg_ACEOF 13738d656433aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13739555991fdSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13740d656433aSmrgac_cs_version="\\ 13741555991fdSmrglibSM config.status 1.2.0 13742555991fdSmrgconfigured by $0, generated by GNU Autoconf 2.68, 13743555991fdSmrg with options \\"\$ac_cs_config\\" 13744126a8a12Smrg 13745555991fdSmrgCopyright (C) 2010 Free Software Foundation, Inc. 13746d656433aSmrgThis config.status script is free software; the Free Software Foundation 13747d656433aSmrggives unlimited permission to copy, distribute and modify it." 13748d656433aSmrg 13749d656433aSmrgac_pwd='$ac_pwd' 13750d656433aSmrgsrcdir='$srcdir' 13751d656433aSmrgINSTALL='$INSTALL' 13752d656433aSmrgMKDIR_P='$MKDIR_P' 13753d656433aSmrgAWK='$AWK' 13754d656433aSmrgtest -n "\$AWK" || AWK=awk 13755126a8a12Smrg_ACEOF 13756126a8a12Smrg 13757d656433aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13758d656433aSmrg# The default lists apply if the user does not specify any file. 13759d656433aSmrgac_need_defaults=: 13760d656433aSmrgwhile test $# != 0 13761d656433aSmrgdo 13762d656433aSmrg case $1 in 13763555991fdSmrg --*=?*) 13764d656433aSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 13765d656433aSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13766d656433aSmrg ac_shift=: 13767d656433aSmrg ;; 13768555991fdSmrg --*=) 13769555991fdSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 13770555991fdSmrg ac_optarg= 13771555991fdSmrg ac_shift=: 13772555991fdSmrg ;; 13773d656433aSmrg *) 13774d656433aSmrg ac_option=$1 13775d656433aSmrg ac_optarg=$2 13776d656433aSmrg ac_shift=shift 13777d656433aSmrg ;; 13778d656433aSmrg esac 13779d656433aSmrg 13780d656433aSmrg case $ac_option in 13781d656433aSmrg # Handling of the options. 13782d656433aSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13783d656433aSmrg ac_cs_recheck=: ;; 13784d656433aSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13785d656433aSmrg $as_echo "$ac_cs_version"; exit ;; 13786555991fdSmrg --config | --confi | --conf | --con | --co | --c ) 13787555991fdSmrg $as_echo "$ac_cs_config"; exit ;; 13788d656433aSmrg --debug | --debu | --deb | --de | --d | -d ) 13789d656433aSmrg debug=: ;; 13790d656433aSmrg --file | --fil | --fi | --f ) 13791d656433aSmrg $ac_shift 13792d656433aSmrg case $ac_optarg in 13793d656433aSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13794555991fdSmrg '') as_fn_error $? "missing file argument" ;; 13795d656433aSmrg esac 13796555991fdSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 13797d656433aSmrg ac_need_defaults=false;; 13798d656433aSmrg --header | --heade | --head | --hea ) 13799d656433aSmrg $ac_shift 13800d656433aSmrg case $ac_optarg in 13801d656433aSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13802d656433aSmrg esac 13803555991fdSmrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13804d656433aSmrg ac_need_defaults=false;; 13805d656433aSmrg --he | --h) 13806d656433aSmrg # Conflict between --help and --header 13807555991fdSmrg as_fn_error $? "ambiguous option: \`$1' 13808555991fdSmrgTry \`$0 --help' for more information.";; 13809d656433aSmrg --help | --hel | -h ) 13810d656433aSmrg $as_echo "$ac_cs_usage"; exit ;; 13811d656433aSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13812d656433aSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 13813d656433aSmrg ac_cs_silent=: ;; 13814d656433aSmrg 13815d656433aSmrg # This is an error. 13816555991fdSmrg -*) as_fn_error $? "unrecognized option: \`$1' 13817555991fdSmrgTry \`$0 --help' for more information." ;; 13818126a8a12Smrg 13819555991fdSmrg *) as_fn_append ac_config_targets " $1" 13820d656433aSmrg ac_need_defaults=false ;; 13821126a8a12Smrg 13822d656433aSmrg esac 13823d656433aSmrg shift 13824126a8a12Smrgdone 13825d656433aSmrg 13826d656433aSmrgac_configure_extra_args= 13827d656433aSmrg 13828d656433aSmrgif $ac_cs_silent; then 13829d656433aSmrg exec 6>/dev/null 13830d656433aSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 13831126a8a12Smrgfi 13832126a8a12Smrg 13833d656433aSmrg_ACEOF 13834d656433aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13835d656433aSmrgif \$ac_cs_recheck; then 13836d656433aSmrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13837d656433aSmrg shift 13838d656433aSmrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13839d656433aSmrg CONFIG_SHELL='$SHELL' 13840d656433aSmrg export CONFIG_SHELL 13841d656433aSmrg exec "\$@" 13842126a8a12Smrgfi 13843126a8a12Smrg 13844d656433aSmrg_ACEOF 13845d656433aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13846d656433aSmrgexec 5>>config.log 13847d656433aSmrg{ 13848d656433aSmrg echo 13849d656433aSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13850d656433aSmrg## Running $as_me. ## 13851d656433aSmrg_ASBOX 13852d656433aSmrg $as_echo "$ac_log" 13853d656433aSmrg} >&5 13854126a8a12Smrg 13855126a8a12Smrg_ACEOF 13856d656433aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13857d656433aSmrg# 13858d656433aSmrg# INIT-COMMANDS 13859d656433aSmrg# 13860d656433aSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13861126a8a12Smrg 13862126a8a12Smrg 13863d656433aSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 13864d656433aSmrg# if CDPATH is set. 13865d656433aSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13866126a8a12Smrg 13867d656433aSmrgsed_quote_subst='$sed_quote_subst' 13868d656433aSmrgdouble_quote_subst='$double_quote_subst' 13869d656433aSmrgdelay_variable_subst='$delay_variable_subst' 13870555991fdSmrgmacro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13871555991fdSmrgmacro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13872555991fdSmrgenable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13873555991fdSmrgenable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13874555991fdSmrgpic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13875555991fdSmrgenable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13876555991fdSmrgSHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13877555991fdSmrgECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13878555991fdSmrghost_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13879555991fdSmrghost='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13880555991fdSmrghost_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13881555991fdSmrgbuild_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13882555991fdSmrgbuild='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13883555991fdSmrgbuild_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13884555991fdSmrgSED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13885555991fdSmrgXsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13886555991fdSmrgGREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13887555991fdSmrgEGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13888555991fdSmrgFGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13889555991fdSmrgLD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13890555991fdSmrgNM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13891555991fdSmrgLN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13892555991fdSmrgmax_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13893555991fdSmrgac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13894555991fdSmrgexeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13895555991fdSmrglt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13896555991fdSmrglt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13897555991fdSmrglt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13898555991fdSmrgreload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13899555991fdSmrgreload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13900555991fdSmrgOBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13901555991fdSmrgdeplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13902555991fdSmrgfile_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13903555991fdSmrgAR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13904555991fdSmrgAR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13905555991fdSmrgSTRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13906555991fdSmrgRANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13907555991fdSmrgold_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13908555991fdSmrgold_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13909555991fdSmrgold_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13910555991fdSmrglock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13911555991fdSmrgCC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13912555991fdSmrgCFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13913555991fdSmrgcompiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13914555991fdSmrgGCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13915555991fdSmrglt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13916555991fdSmrglt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13917555991fdSmrglt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13918555991fdSmrglt_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"`' 13919555991fdSmrgobjdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13920555991fdSmrgMAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13921555991fdSmrglt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13922555991fdSmrglt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13923555991fdSmrglt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13924555991fdSmrglt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13925555991fdSmrglt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13926555991fdSmrgneed_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13927555991fdSmrgDSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13928555991fdSmrgNMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13929555991fdSmrgLIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13930555991fdSmrgOTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13931555991fdSmrgOTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13932555991fdSmrglibext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13933555991fdSmrgshrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13934555991fdSmrgextract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13935555991fdSmrgarchive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13936555991fdSmrgenable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13937555991fdSmrgexport_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13938555991fdSmrgwhole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13939555991fdSmrgcompiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13940555991fdSmrgold_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13941555991fdSmrgold_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13942555991fdSmrgarchive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13943555991fdSmrgarchive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13944555991fdSmrgmodule_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13945555991fdSmrgmodule_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13946555991fdSmrgwith_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13947555991fdSmrgallow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13948555991fdSmrgno_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13949555991fdSmrghardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13950555991fdSmrghardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 13951555991fdSmrghardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13952555991fdSmrghardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13953555991fdSmrghardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13954555991fdSmrghardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13955555991fdSmrghardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13956555991fdSmrghardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13957555991fdSmrginherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13958555991fdSmrglink_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13959555991fdSmrgfix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 13960555991fdSmrgalways_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13961555991fdSmrgexport_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13962555991fdSmrgexclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13963555991fdSmrginclude_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13964555991fdSmrgprelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13965555991fdSmrgfile_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13966555991fdSmrgvariables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13967555991fdSmrgneed_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13968555991fdSmrgneed_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13969555991fdSmrgversion_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13970555991fdSmrgrunpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13971555991fdSmrgshlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13972555991fdSmrgshlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13973555991fdSmrglibname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13974555991fdSmrglibrary_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13975555991fdSmrgsoname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13976555991fdSmrginstall_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13977555991fdSmrgpostinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13978555991fdSmrgpostuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13979555991fdSmrgfinish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13980555991fdSmrgfinish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13981555991fdSmrghardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13982555991fdSmrgsys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13983555991fdSmrgsys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 13984555991fdSmrghardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13985555991fdSmrgenable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13986555991fdSmrgenable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13987555991fdSmrgenable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13988555991fdSmrgold_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13989555991fdSmrgstriplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13990d656433aSmrg 13991d656433aSmrgLTCC='$LTCC' 13992d656433aSmrgLTCFLAGS='$LTCFLAGS' 13993d656433aSmrgcompiler='$compiler_DEFAULT' 13994d656433aSmrg 13995555991fdSmrg# A function that is used when there is no print builtin or printf. 13996555991fdSmrgfunc_fallback_echo () 13997555991fdSmrg{ 13998555991fdSmrg eval 'cat <<_LTECHO_EOF 13999555991fdSmrg\$1 14000555991fdSmrg_LTECHO_EOF' 14001555991fdSmrg} 14002555991fdSmrg 14003d656433aSmrg# Quote evaled strings. 14004555991fdSmrgfor var in SHELL \ 14005555991fdSmrgECHO \ 14006555991fdSmrgSED \ 14007d656433aSmrgGREP \ 14008d656433aSmrgEGREP \ 14009d656433aSmrgFGREP \ 14010d656433aSmrgLD \ 14011d656433aSmrgNM \ 14012d656433aSmrgLN_S \ 14013d656433aSmrglt_SP2NL \ 14014d656433aSmrglt_NL2SP \ 14015d656433aSmrgreload_flag \ 14016d656433aSmrgOBJDUMP \ 14017d656433aSmrgdeplibs_check_method \ 14018d656433aSmrgfile_magic_cmd \ 14019d656433aSmrgAR \ 14020d656433aSmrgAR_FLAGS \ 14021d656433aSmrgSTRIP \ 14022d656433aSmrgRANLIB \ 14023d656433aSmrgCC \ 14024d656433aSmrgCFLAGS \ 14025d656433aSmrgcompiler \ 14026d656433aSmrglt_cv_sys_global_symbol_pipe \ 14027d656433aSmrglt_cv_sys_global_symbol_to_cdecl \ 14028d656433aSmrglt_cv_sys_global_symbol_to_c_name_address \ 14029d656433aSmrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14030d656433aSmrglt_prog_compiler_no_builtin_flag \ 14031d656433aSmrglt_prog_compiler_wl \ 14032d656433aSmrglt_prog_compiler_pic \ 14033d656433aSmrglt_prog_compiler_static \ 14034d656433aSmrglt_cv_prog_compiler_c_o \ 14035d656433aSmrgneed_locks \ 14036d656433aSmrgDSYMUTIL \ 14037d656433aSmrgNMEDIT \ 14038d656433aSmrgLIPO \ 14039d656433aSmrgOTOOL \ 14040d656433aSmrgOTOOL64 \ 14041d656433aSmrgshrext_cmds \ 14042d656433aSmrgexport_dynamic_flag_spec \ 14043d656433aSmrgwhole_archive_flag_spec \ 14044d656433aSmrgcompiler_needs_object \ 14045d656433aSmrgwith_gnu_ld \ 14046d656433aSmrgallow_undefined_flag \ 14047d656433aSmrgno_undefined_flag \ 14048d656433aSmrghardcode_libdir_flag_spec \ 14049d656433aSmrghardcode_libdir_flag_spec_ld \ 14050d656433aSmrghardcode_libdir_separator \ 14051d656433aSmrgfix_srcfile_path \ 14052d656433aSmrgexclude_expsyms \ 14053d656433aSmrginclude_expsyms \ 14054d656433aSmrgfile_list_spec \ 14055d656433aSmrgvariables_saved_for_relink \ 14056d656433aSmrglibname_spec \ 14057d656433aSmrglibrary_names_spec \ 14058d656433aSmrgsoname_spec \ 14059555991fdSmrginstall_override_mode \ 14060d656433aSmrgfinish_eval \ 14061d656433aSmrgold_striplib \ 14062d656433aSmrgstriplib; do 14063555991fdSmrg case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14064d656433aSmrg *[\\\\\\\`\\"\\\$]*) 14065555991fdSmrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14066d656433aSmrg ;; 14067d656433aSmrg *) 14068d656433aSmrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14069d656433aSmrg ;; 14070d656433aSmrg esac 14071d656433aSmrgdone 14072126a8a12Smrg 14073d656433aSmrg# Double-quote double-evaled strings. 14074d656433aSmrgfor var in reload_cmds \ 14075d656433aSmrgold_postinstall_cmds \ 14076d656433aSmrgold_postuninstall_cmds \ 14077d656433aSmrgold_archive_cmds \ 14078d656433aSmrgextract_expsyms_cmds \ 14079d656433aSmrgold_archive_from_new_cmds \ 14080d656433aSmrgold_archive_from_expsyms_cmds \ 14081d656433aSmrgarchive_cmds \ 14082d656433aSmrgarchive_expsym_cmds \ 14083d656433aSmrgmodule_cmds \ 14084d656433aSmrgmodule_expsym_cmds \ 14085d656433aSmrgexport_symbols_cmds \ 14086d656433aSmrgprelink_cmds \ 14087d656433aSmrgpostinstall_cmds \ 14088d656433aSmrgpostuninstall_cmds \ 14089d656433aSmrgfinish_cmds \ 14090d656433aSmrgsys_lib_search_path_spec \ 14091d656433aSmrgsys_lib_dlsearch_path_spec; do 14092555991fdSmrg case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14093d656433aSmrg *[\\\\\\\`\\"\\\$]*) 14094555991fdSmrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14095d656433aSmrg ;; 14096d656433aSmrg *) 14097d656433aSmrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14098d656433aSmrg ;; 14099d656433aSmrg esac 14100d656433aSmrgdone 14101126a8a12Smrg 14102d656433aSmrgac_aux_dir='$ac_aux_dir' 14103d656433aSmrgxsi_shell='$xsi_shell' 14104d656433aSmrglt_shell_append='$lt_shell_append' 14105126a8a12Smrg 14106d656433aSmrg# See if we are running on zsh, and set the options which allow our 14107d656433aSmrg# commands through without removal of \ escapes INIT. 14108d656433aSmrgif test -n "\${ZSH_VERSION+set}" ; then 14109d656433aSmrg setopt NO_GLOB_SUBST 14110126a8a12Smrgfi 14111126a8a12Smrg 14112126a8a12Smrg 14113d656433aSmrg PACKAGE='$PACKAGE' 14114d656433aSmrg VERSION='$VERSION' 14115d656433aSmrg TIMESTAMP='$TIMESTAMP' 14116d656433aSmrg RM='$RM' 14117d656433aSmrg ofile='$ofile' 14118d656433aSmrg 14119126a8a12Smrg 14120126a8a12Smrg 14121126a8a12Smrg 14122126a8a12Smrg_ACEOF 14123126a8a12Smrg 14124d656433aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14125126a8a12Smrg 14126d656433aSmrg# Handling of arguments. 14127d656433aSmrgfor ac_config_target in $ac_config_targets 14128d656433aSmrgdo 14129d656433aSmrg case $ac_config_target in 14130d656433aSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14131555991fdSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14132d656433aSmrg "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14133d656433aSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14134555991fdSmrg "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14135d656433aSmrg "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14136d656433aSmrg "sm.pc") CONFIG_FILES="$CONFIG_FILES sm.pc" ;; 14137126a8a12Smrg 14138555991fdSmrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14139d656433aSmrg esac 14140d656433aSmrgdone 14141d656433aSmrg 14142d656433aSmrg 14143d656433aSmrg# If the user did not use the arguments to specify the items to instantiate, 14144d656433aSmrg# then the envvar interface is used. Set only those that are not. 14145d656433aSmrg# We use the long form for the default assignment because of an extremely 14146d656433aSmrg# bizarre bug on SunOS 4.1.3. 14147d656433aSmrgif $ac_need_defaults; then 14148d656433aSmrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14149d656433aSmrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14150d656433aSmrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14151d656433aSmrgfi 14152d656433aSmrg 14153d656433aSmrg# Have a temporary directory for convenience. Make it in the build tree 14154d656433aSmrg# simply because there is no reason against having it here, and in addition, 14155d656433aSmrg# creating and moving files from /tmp can sometimes cause problems. 14156d656433aSmrg# Hook for its removal unless debugging. 14157d656433aSmrg# Note that there is a small window in which the directory will not be cleaned: 14158d656433aSmrg# after its creation but before its name has been assigned to `$tmp'. 14159d656433aSmrg$debug || 14160126a8a12Smrg{ 14161555991fdSmrg tmp= ac_tmp= 14162d656433aSmrg trap 'exit_status=$? 14163555991fdSmrg : "${ac_tmp:=$tmp}" 14164555991fdSmrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14165d656433aSmrg' 0 14166555991fdSmrg trap 'as_fn_exit 1' 1 2 13 15 14167126a8a12Smrg} 14168d656433aSmrg# Create a (secure) tmp directory for tmp files. 14169d656433aSmrg 14170d656433aSmrg{ 14171d656433aSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14172555991fdSmrg test -d "$tmp" 14173d656433aSmrg} || 14174d656433aSmrg{ 14175d656433aSmrg tmp=./conf$$-$RANDOM 14176d656433aSmrg (umask 077 && mkdir "$tmp") 14177555991fdSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14178555991fdSmrgac_tmp=$tmp 14179d656433aSmrg 14180d656433aSmrg# Set up the scripts for CONFIG_FILES section. 14181d656433aSmrg# No need to generate them if there are no CONFIG_FILES. 14182d656433aSmrg# This happens for instance with `./config.status config.h'. 14183d656433aSmrgif test -n "$CONFIG_FILES"; then 14184d656433aSmrg 14185d656433aSmrg 14186555991fdSmrgac_cr=`echo X | tr X '\015'` 14187555991fdSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 14188555991fdSmrg# But we know of no other shell where ac_cr would be empty at this 14189555991fdSmrg# point, so we can use a bashism as a fallback. 14190555991fdSmrgif test "x$ac_cr" = x; then 14191555991fdSmrg eval ac_cr=\$\'\\r\' 14192555991fdSmrgfi 14193d656433aSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14194d656433aSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14195d656433aSmrg ac_cs_awk_cr='\\r' 14196126a8a12Smrgelse 14197d656433aSmrg ac_cs_awk_cr=$ac_cr 14198d656433aSmrgfi 14199126a8a12Smrg 14200555991fdSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 14201126a8a12Smrg_ACEOF 14202126a8a12Smrg 14203126a8a12Smrg 14204126a8a12Smrg{ 14205d656433aSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 14206d656433aSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14207d656433aSmrg echo "_ACEOF" 14208d656433aSmrg} >conf$$subs.sh || 14209555991fdSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14210555991fdSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14211d656433aSmrgac_delim='%!_!# ' 14212d656433aSmrgfor ac_last_try in false false false false false :; do 14213d656433aSmrg . ./conf$$subs.sh || 14214555991fdSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14215d656433aSmrg 14216d656433aSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14217d656433aSmrg if test $ac_delim_n = $ac_delim_num; then 14218d656433aSmrg break 14219d656433aSmrg elif $ac_last_try; then 14220555991fdSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14221d656433aSmrg else 14222d656433aSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14223d656433aSmrg fi 14224d656433aSmrgdone 14225d656433aSmrgrm -f conf$$subs.sh 14226d656433aSmrg 14227d656433aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14228555991fdSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14229d656433aSmrg_ACEOF 14230d656433aSmrgsed -n ' 14231d656433aSmrgh 14232d656433aSmrgs/^/S["/; s/!.*/"]=/ 14233d656433aSmrgp 14234d656433aSmrgg 14235d656433aSmrgs/^[^!]*!// 14236d656433aSmrg:repl 14237d656433aSmrgt repl 14238d656433aSmrgs/'"$ac_delim"'$// 14239d656433aSmrgt delim 14240d656433aSmrg:nl 14241d656433aSmrgh 14242555991fdSmrgs/\(.\{148\}\)..*/\1/ 14243d656433aSmrgt more1 14244d656433aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14245d656433aSmrgp 14246d656433aSmrgn 14247d656433aSmrgb repl 14248d656433aSmrg:more1 14249d656433aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14250d656433aSmrgp 14251d656433aSmrgg 14252d656433aSmrgs/.\{148\}// 14253d656433aSmrgt nl 14254d656433aSmrg:delim 14255d656433aSmrgh 14256555991fdSmrgs/\(.\{148\}\)..*/\1/ 14257d656433aSmrgt more2 14258d656433aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 14259d656433aSmrgp 14260d656433aSmrgb 14261d656433aSmrg:more2 14262d656433aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14263d656433aSmrgp 14264d656433aSmrgg 14265d656433aSmrgs/.\{148\}// 14266d656433aSmrgt delim 14267d656433aSmrg' <conf$$subs.awk | sed ' 14268d656433aSmrg/^[^""]/{ 14269d656433aSmrg N 14270d656433aSmrg s/\n// 14271d656433aSmrg} 14272d656433aSmrg' >>$CONFIG_STATUS || ac_write_fail=1 14273d656433aSmrgrm -f conf$$subs.awk 14274d656433aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14275d656433aSmrg_ACAWK 14276555991fdSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14277d656433aSmrg for (key in S) S_is_set[key] = 1 14278d656433aSmrg FS = "" 14279d656433aSmrg 14280d656433aSmrg} 14281d656433aSmrg{ 14282d656433aSmrg line = $ 0 14283d656433aSmrg nfields = split(line, field, "@") 14284d656433aSmrg substed = 0 14285d656433aSmrg len = length(field[1]) 14286d656433aSmrg for (i = 2; i < nfields; i++) { 14287d656433aSmrg key = field[i] 14288d656433aSmrg keylen = length(key) 14289d656433aSmrg if (S_is_set[key]) { 14290d656433aSmrg value = S[key] 14291d656433aSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14292d656433aSmrg len += length(value) + length(field[++i]) 14293d656433aSmrg substed = 1 14294d656433aSmrg } else 14295d656433aSmrg len += 1 + keylen 14296d656433aSmrg } 14297d656433aSmrg 14298d656433aSmrg print line 14299126a8a12Smrg} 14300d656433aSmrg 14301d656433aSmrg_ACAWK 14302126a8a12Smrg_ACEOF 14303d656433aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14304d656433aSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14305d656433aSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14306126a8a12Smrgelse 14307d656433aSmrg cat 14308555991fdSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14309555991fdSmrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14310d656433aSmrg_ACEOF 14311126a8a12Smrg 14312555991fdSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14313555991fdSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14314d656433aSmrg# trailing colons and then remove the whole line if VPATH becomes empty 14315d656433aSmrg# (actually we leave an empty line to preserve line numbers). 14316d656433aSmrgif test "x$srcdir" = x.; then 14317555991fdSmrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14318555991fdSmrgh 14319555991fdSmrgs/// 14320555991fdSmrgs/^/:/ 14321555991fdSmrgs/[ ]*$/:/ 14322555991fdSmrgs/:\$(srcdir):/:/g 14323555991fdSmrgs/:\${srcdir}:/:/g 14324555991fdSmrgs/:@srcdir@:/:/g 14325555991fdSmrgs/^:*// 14326d656433aSmrgs/:*$// 14327555991fdSmrgx 14328555991fdSmrgs/\(=[ ]*\).*/\1/ 14329555991fdSmrgG 14330555991fdSmrgs/\n// 14331d656433aSmrgs/^[^=]*=[ ]*$// 14332d656433aSmrg}' 14333126a8a12Smrgfi 14334126a8a12Smrg 14335d656433aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14336d656433aSmrgfi # test -n "$CONFIG_FILES" 14337126a8a12Smrg 14338d656433aSmrg# Set up the scripts for CONFIG_HEADERS section. 14339d656433aSmrg# No need to generate them if there are no CONFIG_HEADERS. 14340d656433aSmrg# This happens for instance with `./config.status Makefile'. 14341d656433aSmrgif test -n "$CONFIG_HEADERS"; then 14342555991fdSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 14343d656433aSmrgBEGIN { 14344d656433aSmrg_ACEOF 14345126a8a12Smrg 14346d656433aSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 14347d656433aSmrg# here-document in config.status, that substitutes the proper values into 14348d656433aSmrg# config.h.in to produce config.h. 14349d656433aSmrg 14350d656433aSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 14351d656433aSmrg# handling of long lines. 14352d656433aSmrgac_delim='%!_!# ' 14353d656433aSmrgfor ac_last_try in false false :; do 14354555991fdSmrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14355555991fdSmrg if test -z "$ac_tt"; then 14356d656433aSmrg break 14357d656433aSmrg elif $ac_last_try; then 14358555991fdSmrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14359d656433aSmrg else 14360d656433aSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14361d656433aSmrg fi 14362d656433aSmrgdone 14363d656433aSmrg 14364d656433aSmrg# For the awk script, D is an array of macro values keyed by name, 14365d656433aSmrg# likewise P contains macro parameters if any. Preserve backslash 14366d656433aSmrg# newline sequences. 14367d656433aSmrg 14368d656433aSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14369d656433aSmrgsed -n ' 14370d656433aSmrgs/.\{148\}/&'"$ac_delim"'/g 14371d656433aSmrgt rset 14372d656433aSmrg:rset 14373d656433aSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 14374d656433aSmrgt def 14375d656433aSmrgd 14376d656433aSmrg:def 14377d656433aSmrgs/\\$// 14378d656433aSmrgt bsnl 14379d656433aSmrgs/["\\]/\\&/g 14380d656433aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14381d656433aSmrgD["\1"]=" \3"/p 14382d656433aSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14383d656433aSmrgd 14384d656433aSmrg:bsnl 14385d656433aSmrgs/["\\]/\\&/g 14386d656433aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14387d656433aSmrgD["\1"]=" \3\\\\\\n"\\/p 14388d656433aSmrgt cont 14389d656433aSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14390d656433aSmrgt cont 14391d656433aSmrgd 14392d656433aSmrg:cont 14393d656433aSmrgn 14394d656433aSmrgs/.\{148\}/&'"$ac_delim"'/g 14395d656433aSmrgt clear 14396d656433aSmrg:clear 14397d656433aSmrgs/\\$// 14398d656433aSmrgt bsnlc 14399d656433aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 14400d656433aSmrgd 14401d656433aSmrg:bsnlc 14402d656433aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14403d656433aSmrgb cont 14404d656433aSmrg' <confdefs.h | sed ' 14405d656433aSmrgs/'"$ac_delim"'/"\\\ 14406d656433aSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 14407d656433aSmrg 14408d656433aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14409d656433aSmrg for (key in D) D_is_set[key] = 1 14410d656433aSmrg FS = "" 14411d656433aSmrg} 14412d656433aSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14413d656433aSmrg line = \$ 0 14414d656433aSmrg split(line, arg, " ") 14415d656433aSmrg if (arg[1] == "#") { 14416d656433aSmrg defundef = arg[2] 14417d656433aSmrg mac1 = arg[3] 14418d656433aSmrg } else { 14419d656433aSmrg defundef = substr(arg[1], 2) 14420d656433aSmrg mac1 = arg[2] 14421d656433aSmrg } 14422d656433aSmrg split(mac1, mac2, "(") #) 14423d656433aSmrg macro = mac2[1] 14424d656433aSmrg prefix = substr(line, 1, index(line, defundef) - 1) 14425d656433aSmrg if (D_is_set[macro]) { 14426d656433aSmrg # Preserve the white space surrounding the "#". 14427d656433aSmrg print prefix "define", macro P[macro] D[macro] 14428d656433aSmrg next 14429d656433aSmrg } else { 14430d656433aSmrg # Replace #undef with comments. This is necessary, for example, 14431d656433aSmrg # in the case of _POSIX_SOURCE, which is predefined and required 14432d656433aSmrg # on some systems where configure will not decide to define it. 14433d656433aSmrg if (defundef == "undef") { 14434d656433aSmrg print "/*", prefix defundef, macro, "*/" 14435d656433aSmrg next 14436d656433aSmrg } 14437d656433aSmrg } 14438d656433aSmrg} 14439d656433aSmrg{ print } 14440d656433aSmrg_ACAWK 14441126a8a12Smrg_ACEOF 14442d656433aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14443555991fdSmrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14444d656433aSmrgfi # test -n "$CONFIG_HEADERS" 14445126a8a12Smrg 14446126a8a12Smrg 14447d656433aSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14448d656433aSmrgshift 14449d656433aSmrgfor ac_tag 14450d656433aSmrgdo 14451d656433aSmrg case $ac_tag in 14452d656433aSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 14453d656433aSmrg esac 14454d656433aSmrg case $ac_mode$ac_tag in 14455d656433aSmrg :[FHL]*:*);; 14456555991fdSmrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14457d656433aSmrg :[FH]-) ac_tag=-:-;; 14458d656433aSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14459d656433aSmrg esac 14460d656433aSmrg ac_save_IFS=$IFS 14461d656433aSmrg IFS=: 14462d656433aSmrg set x $ac_tag 14463d656433aSmrg IFS=$ac_save_IFS 14464d656433aSmrg shift 14465d656433aSmrg ac_file=$1 14466d656433aSmrg shift 14467126a8a12Smrg 14468d656433aSmrg case $ac_mode in 14469d656433aSmrg :L) ac_source=$1;; 14470d656433aSmrg :[FH]) 14471d656433aSmrg ac_file_inputs= 14472d656433aSmrg for ac_f 14473d656433aSmrg do 14474d656433aSmrg case $ac_f in 14475555991fdSmrg -) ac_f="$ac_tmp/stdin";; 14476d656433aSmrg *) # Look for the file first in the build tree, then in the source tree 14477d656433aSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 14478d656433aSmrg # because $ac_f cannot contain `:'. 14479d656433aSmrg test -f "$ac_f" || 14480d656433aSmrg case $ac_f in 14481d656433aSmrg [\\/$]*) false;; 14482d656433aSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14483d656433aSmrg esac || 14484555991fdSmrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14485d656433aSmrg esac 14486d656433aSmrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14487555991fdSmrg as_fn_append ac_file_inputs " '$ac_f'" 14488d656433aSmrg done 14489126a8a12Smrg 14490d656433aSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 14491d656433aSmrg # use $as_me), people would be surprised to read: 14492d656433aSmrg # /* config.h. Generated by config.status. */ 14493d656433aSmrg configure_input='Generated from '` 14494d656433aSmrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14495d656433aSmrg `' by configure.' 14496d656433aSmrg if test x"$ac_file" != x-; then 14497d656433aSmrg configure_input="$ac_file. $configure_input" 14498555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14499d656433aSmrg$as_echo "$as_me: creating $ac_file" >&6;} 14500d656433aSmrg fi 14501d656433aSmrg # Neutralize special characters interpreted by sed in replacement strings. 14502d656433aSmrg case $configure_input in #( 14503d656433aSmrg *\&* | *\|* | *\\* ) 14504d656433aSmrg ac_sed_conf_input=`$as_echo "$configure_input" | 14505d656433aSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 14506d656433aSmrg *) ac_sed_conf_input=$configure_input;; 14507d656433aSmrg esac 14508126a8a12Smrg 14509d656433aSmrg case $ac_tag in 14510555991fdSmrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14511555991fdSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14512d656433aSmrg esac 14513d656433aSmrg ;; 14514d656433aSmrg esac 14515126a8a12Smrg 14516d656433aSmrg ac_dir=`$as_dirname -- "$ac_file" || 14517d656433aSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14518d656433aSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 14519d656433aSmrg X"$ac_file" : 'X\(//\)$' \| \ 14520d656433aSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14521d656433aSmrg$as_echo X"$ac_file" | 14522d656433aSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14523d656433aSmrg s//\1/ 14524d656433aSmrg q 14525d656433aSmrg } 14526d656433aSmrg /^X\(\/\/\)[^/].*/{ 14527d656433aSmrg s//\1/ 14528d656433aSmrg q 14529d656433aSmrg } 14530d656433aSmrg /^X\(\/\/\)$/{ 14531d656433aSmrg s//\1/ 14532d656433aSmrg q 14533d656433aSmrg } 14534d656433aSmrg /^X\(\/\).*/{ 14535d656433aSmrg s//\1/ 14536d656433aSmrg q 14537d656433aSmrg } 14538d656433aSmrg s/.*/./; q'` 14539555991fdSmrg as_dir="$ac_dir"; as_fn_mkdir_p 14540d656433aSmrg ac_builddir=. 14541126a8a12Smrg 14542d656433aSmrgcase "$ac_dir" in 14543d656433aSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14544d656433aSmrg*) 14545d656433aSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14546d656433aSmrg # A ".." for each directory in $ac_dir_suffix. 14547d656433aSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14548d656433aSmrg case $ac_top_builddir_sub in 14549d656433aSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14550d656433aSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14551d656433aSmrg esac ;; 14552d656433aSmrgesac 14553d656433aSmrgac_abs_top_builddir=$ac_pwd 14554d656433aSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 14555d656433aSmrg# for backward compatibility: 14556d656433aSmrgac_top_builddir=$ac_top_build_prefix 14557126a8a12Smrg 14558d656433aSmrgcase $srcdir in 14559d656433aSmrg .) # We are building in place. 14560d656433aSmrg ac_srcdir=. 14561d656433aSmrg ac_top_srcdir=$ac_top_builddir_sub 14562d656433aSmrg ac_abs_top_srcdir=$ac_pwd ;; 14563d656433aSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 14564d656433aSmrg ac_srcdir=$srcdir$ac_dir_suffix; 14565d656433aSmrg ac_top_srcdir=$srcdir 14566d656433aSmrg ac_abs_top_srcdir=$srcdir ;; 14567d656433aSmrg *) # Relative name. 14568d656433aSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14569d656433aSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 14570d656433aSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14571d656433aSmrgesac 14572d656433aSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14573126a8a12Smrg 14574126a8a12Smrg 14575d656433aSmrg case $ac_mode in 14576d656433aSmrg :F) 14577d656433aSmrg # 14578d656433aSmrg # CONFIG_FILE 14579d656433aSmrg # 14580126a8a12Smrg 14581d656433aSmrg case $INSTALL in 14582d656433aSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14583d656433aSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14584d656433aSmrg esac 14585d656433aSmrg ac_MKDIR_P=$MKDIR_P 14586d656433aSmrg case $MKDIR_P in 14587d656433aSmrg [\\/$]* | ?:[\\/]* ) ;; 14588d656433aSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14589d656433aSmrg esac 14590d656433aSmrg_ACEOF 14591126a8a12Smrg 14592d656433aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14593d656433aSmrg# If the template does not know about datarootdir, expand it. 14594d656433aSmrg# FIXME: This hack should be removed a few years after 2.60. 14595d656433aSmrgac_datarootdir_hack=; ac_datarootdir_seen= 14596d656433aSmrgac_sed_dataroot=' 14597d656433aSmrg/datarootdir/ { 14598d656433aSmrg p 14599d656433aSmrg q 14600d656433aSmrg} 14601d656433aSmrg/@datadir@/p 14602d656433aSmrg/@docdir@/p 14603d656433aSmrg/@infodir@/p 14604d656433aSmrg/@localedir@/p 14605555991fdSmrg/@mandir@/p' 14606d656433aSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14607d656433aSmrg*datarootdir*) ac_datarootdir_seen=yes;; 14608d656433aSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14609555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14610d656433aSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14611d656433aSmrg_ACEOF 14612d656433aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14613d656433aSmrg ac_datarootdir_hack=' 14614d656433aSmrg s&@datadir@&$datadir&g 14615d656433aSmrg s&@docdir@&$docdir&g 14616d656433aSmrg s&@infodir@&$infodir&g 14617d656433aSmrg s&@localedir@&$localedir&g 14618d656433aSmrg s&@mandir@&$mandir&g 14619555991fdSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 14620d656433aSmrgesac 14621d656433aSmrg_ACEOF 14622126a8a12Smrg 14623d656433aSmrg# Neutralize VPATH when `$srcdir' = `.'. 14624d656433aSmrg# Shell code in configure.ac might set extrasub. 14625d656433aSmrg# FIXME: do we really want to maintain this feature? 14626d656433aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14627d656433aSmrgac_sed_extra="$ac_vpsub 14628d656433aSmrg$extrasub 14629126a8a12Smrg_ACEOF 14630d656433aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14631d656433aSmrg:t 14632d656433aSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14633d656433aSmrgs|@configure_input@|$ac_sed_conf_input|;t t 14634d656433aSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 14635d656433aSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 14636d656433aSmrgs&@srcdir@&$ac_srcdir&;t t 14637d656433aSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 14638d656433aSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 14639d656433aSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14640d656433aSmrgs&@builddir@&$ac_builddir&;t t 14641d656433aSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 14642d656433aSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14643d656433aSmrgs&@INSTALL@&$ac_INSTALL&;t t 14644d656433aSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 14645d656433aSmrg$ac_datarootdir_hack 14646d656433aSmrg" 14647555991fdSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14648555991fdSmrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14649126a8a12Smrg 14650d656433aSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14651555991fdSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14652555991fdSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14653555991fdSmrg "$ac_tmp/out"`; test -z "$ac_out"; } && 14654555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14655555991fdSmrgwhich seems to be undefined. Please make sure it is defined" >&5 14656d656433aSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14657555991fdSmrgwhich seems to be undefined. Please make sure it is defined" >&2;} 14658126a8a12Smrg 14659555991fdSmrg rm -f "$ac_tmp/stdin" 14660d656433aSmrg case $ac_file in 14661555991fdSmrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14662555991fdSmrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14663d656433aSmrg esac \ 14664555991fdSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14665d656433aSmrg ;; 14666d656433aSmrg :H) 14667d656433aSmrg # 14668d656433aSmrg # CONFIG_HEADER 14669d656433aSmrg # 14670d656433aSmrg if test x"$ac_file" != x-; then 14671d656433aSmrg { 14672d656433aSmrg $as_echo "/* $configure_input */" \ 14673555991fdSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14674555991fdSmrg } >"$ac_tmp/config.h" \ 14675555991fdSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14676555991fdSmrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14677555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14678d656433aSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 14679d656433aSmrg else 14680d656433aSmrg rm -f "$ac_file" 14681555991fdSmrg mv "$ac_tmp/config.h" "$ac_file" \ 14682555991fdSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14683d656433aSmrg fi 14684d656433aSmrg else 14685d656433aSmrg $as_echo "/* $configure_input */" \ 14686555991fdSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14687555991fdSmrg || as_fn_error $? "could not create -" "$LINENO" 5 14688d656433aSmrg fi 14689d656433aSmrg# Compute "$ac_file"'s index in $config_headers. 14690d656433aSmrg_am_arg="$ac_file" 14691d656433aSmrg_am_stamp_count=1 14692d656433aSmrgfor _am_header in $config_headers :; do 14693d656433aSmrg case $_am_header in 14694d656433aSmrg $_am_arg | $_am_arg:* ) 14695d656433aSmrg break ;; 14696d656433aSmrg * ) 14697d656433aSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14698d656433aSmrg esac 14699d656433aSmrgdone 14700d656433aSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14701d656433aSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14702d656433aSmrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 14703d656433aSmrg X"$_am_arg" : 'X\(//\)$' \| \ 14704d656433aSmrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14705d656433aSmrg$as_echo X"$_am_arg" | 14706d656433aSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14707d656433aSmrg s//\1/ 14708d656433aSmrg q 14709d656433aSmrg } 14710d656433aSmrg /^X\(\/\/\)[^/].*/{ 14711d656433aSmrg s//\1/ 14712d656433aSmrg q 14713d656433aSmrg } 14714d656433aSmrg /^X\(\/\/\)$/{ 14715d656433aSmrg s//\1/ 14716d656433aSmrg q 14717d656433aSmrg } 14718d656433aSmrg /^X\(\/\).*/{ 14719d656433aSmrg s//\1/ 14720d656433aSmrg q 14721d656433aSmrg } 14722d656433aSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 14723d656433aSmrg ;; 14724126a8a12Smrg 14725555991fdSmrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14726d656433aSmrg$as_echo "$as_me: executing $ac_file commands" >&6;} 14727d656433aSmrg ;; 14728d656433aSmrg esac 14729126a8a12Smrg 14730126a8a12Smrg 14731d656433aSmrg case $ac_file$ac_mode in 14732d656433aSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14733d656433aSmrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 14734d656433aSmrg # are listed without --file. Let's play safe and only enable the eval 14735d656433aSmrg # if we detect the quoting. 14736d656433aSmrg case $CONFIG_FILES in 14737d656433aSmrg *\'*) eval set x "$CONFIG_FILES" ;; 14738d656433aSmrg *) set x $CONFIG_FILES ;; 14739d656433aSmrg esac 14740d656433aSmrg shift 14741d656433aSmrg for mf 14742d656433aSmrg do 14743d656433aSmrg # Strip MF so we end up with the name of the file. 14744d656433aSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 14745d656433aSmrg # Check whether this is an Automake generated Makefile or not. 14746d656433aSmrg # We used to match only the files named `Makefile.in', but 14747d656433aSmrg # some people rename them; so instead we look at the file content. 14748d656433aSmrg # Grep'ing the first line is not enough: some people post-process 14749d656433aSmrg # each Makefile.in and add a new line on top of each file to say so. 14750d656433aSmrg # Grep'ing the whole file is not good either: AIX grep has a line 14751d656433aSmrg # limit of 2048, but all sed's we know have understand at least 4000. 14752d656433aSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14753d656433aSmrg dirpart=`$as_dirname -- "$mf" || 14754d656433aSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14755d656433aSmrg X"$mf" : 'X\(//\)[^/]' \| \ 14756d656433aSmrg X"$mf" : 'X\(//\)$' \| \ 14757d656433aSmrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14758d656433aSmrg$as_echo X"$mf" | 14759d656433aSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14760d656433aSmrg s//\1/ 14761d656433aSmrg q 14762d656433aSmrg } 14763d656433aSmrg /^X\(\/\/\)[^/].*/{ 14764d656433aSmrg s//\1/ 14765d656433aSmrg q 14766d656433aSmrg } 14767d656433aSmrg /^X\(\/\/\)$/{ 14768d656433aSmrg s//\1/ 14769d656433aSmrg q 14770d656433aSmrg } 14771d656433aSmrg /^X\(\/\).*/{ 14772d656433aSmrg s//\1/ 14773d656433aSmrg q 14774d656433aSmrg } 14775d656433aSmrg s/.*/./; q'` 14776d656433aSmrg else 14777d656433aSmrg continue 14778d656433aSmrg fi 14779d656433aSmrg # Extract the definition of DEPDIR, am__include, and am__quote 14780d656433aSmrg # from the Makefile without running `make'. 14781d656433aSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14782d656433aSmrg test -z "$DEPDIR" && continue 14783d656433aSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 14784d656433aSmrg test -z "am__include" && continue 14785d656433aSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14786d656433aSmrg # When using ansi2knr, U may be empty or an underscore; expand it 14787d656433aSmrg U=`sed -n 's/^U = //p' < "$mf"` 14788d656433aSmrg # Find all dependency output files, they are included files with 14789d656433aSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 14790d656433aSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 14791d656433aSmrg # expansion. 14792d656433aSmrg for file in `sed -n " 14793d656433aSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14794d656433aSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14795d656433aSmrg # Make sure the directory exists. 14796d656433aSmrg test -f "$dirpart/$file" && continue 14797d656433aSmrg fdir=`$as_dirname -- "$file" || 14798d656433aSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14799d656433aSmrg X"$file" : 'X\(//\)[^/]' \| \ 14800d656433aSmrg X"$file" : 'X\(//\)$' \| \ 14801d656433aSmrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 14802d656433aSmrg$as_echo X"$file" | 14803d656433aSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14804d656433aSmrg s//\1/ 14805d656433aSmrg q 14806d656433aSmrg } 14807d656433aSmrg /^X\(\/\/\)[^/].*/{ 14808d656433aSmrg s//\1/ 14809d656433aSmrg q 14810d656433aSmrg } 14811d656433aSmrg /^X\(\/\/\)$/{ 14812d656433aSmrg s//\1/ 14813d656433aSmrg q 14814d656433aSmrg } 14815d656433aSmrg /^X\(\/\).*/{ 14816d656433aSmrg s//\1/ 14817d656433aSmrg q 14818d656433aSmrg } 14819d656433aSmrg s/.*/./; q'` 14820555991fdSmrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 14821d656433aSmrg # echo "creating $dirpart/$file" 14822d656433aSmrg echo '# dummy' > "$dirpart/$file" 14823d656433aSmrg done 14824d656433aSmrg done 14825d656433aSmrg} 14826d656433aSmrg ;; 14827d656433aSmrg "libtool":C) 14828d656433aSmrg 14829d656433aSmrg # See if we are running on zsh, and set the options which allow our 14830d656433aSmrg # commands through without removal of \ escapes. 14831d656433aSmrg if test -n "${ZSH_VERSION+set}" ; then 14832d656433aSmrg setopt NO_GLOB_SUBST 14833d656433aSmrg fi 14834126a8a12Smrg 14835d656433aSmrg cfgfile="${ofile}T" 14836d656433aSmrg trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14837d656433aSmrg $RM "$cfgfile" 14838126a8a12Smrg 14839d656433aSmrg cat <<_LT_EOF >> "$cfgfile" 14840d656433aSmrg#! $SHELL 14841126a8a12Smrg 14842d656433aSmrg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14843d656433aSmrg# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14844d656433aSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14845d656433aSmrg# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14846126a8a12Smrg# 14847d656433aSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14848555991fdSmrg# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 14849555991fdSmrg# Inc. 14850d656433aSmrg# Written by Gordon Matzigkeit, 1996 14851126a8a12Smrg# 14852d656433aSmrg# This file is part of GNU Libtool. 14853d656433aSmrg# 14854d656433aSmrg# GNU Libtool is free software; you can redistribute it and/or 14855d656433aSmrg# modify it under the terms of the GNU General Public License as 14856d656433aSmrg# published by the Free Software Foundation; either version 2 of 14857d656433aSmrg# the License, or (at your option) any later version. 14858d656433aSmrg# 14859d656433aSmrg# As a special exception to the GNU General Public License, 14860d656433aSmrg# if you distribute this file as part of a program or library that 14861d656433aSmrg# is built using GNU Libtool, you may include this file under the 14862d656433aSmrg# same distribution terms that you use for the rest of that program. 14863d656433aSmrg# 14864d656433aSmrg# GNU Libtool is distributed in the hope that it will be useful, 14865d656433aSmrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 14866d656433aSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14867d656433aSmrg# GNU General Public License for more details. 14868d656433aSmrg# 14869d656433aSmrg# You should have received a copy of the GNU General Public License 14870d656433aSmrg# along with GNU Libtool; see the file COPYING. If not, a copy 14871d656433aSmrg# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14872d656433aSmrg# obtained by writing to the Free Software Foundation, Inc., 14873d656433aSmrg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14874126a8a12Smrg 14875126a8a12Smrg 14876d656433aSmrg# The names of the tagged configurations supported by this script. 14877d656433aSmrgavailable_tags="" 14878126a8a12Smrg 14879d656433aSmrg# ### BEGIN LIBTOOL CONFIG 14880126a8a12Smrg 14881d656433aSmrg# Which release of libtool.m4 was used? 14882d656433aSmrgmacro_version=$macro_version 14883d656433aSmrgmacro_revision=$macro_revision 14884126a8a12Smrg 14885d656433aSmrg# Whether or not to build shared libraries. 14886d656433aSmrgbuild_libtool_libs=$enable_shared 14887126a8a12Smrg 14888d656433aSmrg# Whether or not to build static libraries. 14889d656433aSmrgbuild_old_libs=$enable_static 14890126a8a12Smrg 14891d656433aSmrg# What type of objects to build. 14892d656433aSmrgpic_mode=$pic_mode 14893126a8a12Smrg 14894d656433aSmrg# Whether or not to optimize for fast installation. 14895d656433aSmrgfast_install=$enable_fast_install 14896126a8a12Smrg 14897555991fdSmrg# Shell to use when invoking shell scripts. 14898555991fdSmrgSHELL=$lt_SHELL 14899555991fdSmrg 14900555991fdSmrg# An echo program that protects backslashes. 14901555991fdSmrgECHO=$lt_ECHO 14902555991fdSmrg 14903d656433aSmrg# The host system. 14904d656433aSmrghost_alias=$host_alias 14905d656433aSmrghost=$host 14906d656433aSmrghost_os=$host_os 14907126a8a12Smrg 14908d656433aSmrg# The build system. 14909d656433aSmrgbuild_alias=$build_alias 14910d656433aSmrgbuild=$build 14911d656433aSmrgbuild_os=$build_os 14912126a8a12Smrg 14913d656433aSmrg# A sed program that does not truncate output. 14914d656433aSmrgSED=$lt_SED 14915126a8a12Smrg 14916d656433aSmrg# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14917d656433aSmrgXsed="\$SED -e 1s/^X//" 14918126a8a12Smrg 14919d656433aSmrg# A grep program that handles long lines. 14920d656433aSmrgGREP=$lt_GREP 14921126a8a12Smrg 14922d656433aSmrg# An ERE matcher. 14923d656433aSmrgEGREP=$lt_EGREP 14924126a8a12Smrg 14925d656433aSmrg# A literal string matcher. 14926d656433aSmrgFGREP=$lt_FGREP 14927126a8a12Smrg 14928d656433aSmrg# A BSD- or MS-compatible name lister. 14929d656433aSmrgNM=$lt_NM 14930126a8a12Smrg 14931d656433aSmrg# Whether we need soft or hard links. 14932d656433aSmrgLN_S=$lt_LN_S 14933126a8a12Smrg 14934d656433aSmrg# What is the maximum length of a command? 14935d656433aSmrgmax_cmd_len=$max_cmd_len 14936126a8a12Smrg 14937d656433aSmrg# Object file suffix (normally "o"). 14938d656433aSmrgobjext=$ac_objext 14939126a8a12Smrg 14940d656433aSmrg# Executable file suffix (normally ""). 14941d656433aSmrgexeext=$exeext 14942126a8a12Smrg 14943d656433aSmrg# whether the shell understands "unset". 14944d656433aSmrglt_unset=$lt_unset 14945126a8a12Smrg 14946d656433aSmrg# turn spaces into newlines. 14947d656433aSmrgSP2NL=$lt_lt_SP2NL 14948126a8a12Smrg 14949d656433aSmrg# turn newlines into spaces. 14950d656433aSmrgNL2SP=$lt_lt_NL2SP 14951126a8a12Smrg 14952d656433aSmrg# An object symbol dumper. 14953d656433aSmrgOBJDUMP=$lt_OBJDUMP 14954126a8a12Smrg 14955d656433aSmrg# Method to check whether dependent libraries are shared objects. 14956d656433aSmrgdeplibs_check_method=$lt_deplibs_check_method 14957126a8a12Smrg 14958d656433aSmrg# Command to use when deplibs_check_method == "file_magic". 14959d656433aSmrgfile_magic_cmd=$lt_file_magic_cmd 14960126a8a12Smrg 14961d656433aSmrg# The archiver. 14962d656433aSmrgAR=$lt_AR 14963d656433aSmrgAR_FLAGS=$lt_AR_FLAGS 14964126a8a12Smrg 14965d656433aSmrg# A symbol stripping program. 14966d656433aSmrgSTRIP=$lt_STRIP 14967126a8a12Smrg 14968d656433aSmrg# Commands used to install an old-style archive. 14969d656433aSmrgRANLIB=$lt_RANLIB 14970d656433aSmrgold_postinstall_cmds=$lt_old_postinstall_cmds 14971d656433aSmrgold_postuninstall_cmds=$lt_old_postuninstall_cmds 14972126a8a12Smrg 14973555991fdSmrg# Whether to use a lock for old archive extraction. 14974555991fdSmrglock_old_archive_extraction=$lock_old_archive_extraction 14975555991fdSmrg 14976d656433aSmrg# A C compiler. 14977d656433aSmrgLTCC=$lt_CC 14978126a8a12Smrg 14979d656433aSmrg# LTCC compiler flags. 14980d656433aSmrgLTCFLAGS=$lt_CFLAGS 14981126a8a12Smrg 14982d656433aSmrg# Take the output of nm and produce a listing of raw symbols and C names. 14983d656433aSmrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14984126a8a12Smrg 14985d656433aSmrg# Transform the output of nm in a proper C declaration. 14986d656433aSmrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14987126a8a12Smrg 14988d656433aSmrg# Transform the output of nm in a C name address pair. 14989d656433aSmrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14990d656433aSmrg 14991d656433aSmrg# Transform the output of nm in a C name address pair when lib prefix is needed. 14992d656433aSmrgglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14993d656433aSmrg 14994d656433aSmrg# The name of the directory that contains temporary libtool files. 14995d656433aSmrgobjdir=$objdir 14996d656433aSmrg 14997d656433aSmrg# Used to examine libraries when file_magic_cmd begins with "file". 14998d656433aSmrgMAGIC_CMD=$MAGIC_CMD 14999d656433aSmrg 15000d656433aSmrg# Must we lock files when doing compilation? 15001d656433aSmrgneed_locks=$lt_need_locks 15002126a8a12Smrg 15003d656433aSmrg# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15004d656433aSmrgDSYMUTIL=$lt_DSYMUTIL 15005126a8a12Smrg 15006d656433aSmrg# Tool to change global to local symbols on Mac OS X. 15007d656433aSmrgNMEDIT=$lt_NMEDIT 15008126a8a12Smrg 15009d656433aSmrg# Tool to manipulate fat objects and archives on Mac OS X. 15010d656433aSmrgLIPO=$lt_LIPO 15011126a8a12Smrg 15012d656433aSmrg# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15013d656433aSmrgOTOOL=$lt_OTOOL 15014126a8a12Smrg 15015d656433aSmrg# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15016d656433aSmrgOTOOL64=$lt_OTOOL64 15017126a8a12Smrg 15018d656433aSmrg# Old archive suffix (normally "a"). 15019d656433aSmrglibext=$libext 15020126a8a12Smrg 15021d656433aSmrg# Shared library suffix (normally ".so"). 15022d656433aSmrgshrext_cmds=$lt_shrext_cmds 15023126a8a12Smrg 15024d656433aSmrg# The commands to extract the exported symbol list from a shared archive. 15025d656433aSmrgextract_expsyms_cmds=$lt_extract_expsyms_cmds 15026126a8a12Smrg 15027d656433aSmrg# Variables whose values should be saved in libtool wrapper scripts and 15028d656433aSmrg# restored at link time. 15029d656433aSmrgvariables_saved_for_relink=$lt_variables_saved_for_relink 15030126a8a12Smrg 15031d656433aSmrg# Do we need the "lib" prefix for modules? 15032d656433aSmrgneed_lib_prefix=$need_lib_prefix 15033126a8a12Smrg 15034d656433aSmrg# Do we need a version for libraries? 15035d656433aSmrgneed_version=$need_version 15036126a8a12Smrg 15037d656433aSmrg# Library versioning type. 15038d656433aSmrgversion_type=$version_type 15039126a8a12Smrg 15040d656433aSmrg# Shared library runtime path variable. 15041d656433aSmrgrunpath_var=$runpath_var 15042126a8a12Smrg 15043d656433aSmrg# Shared library path variable. 15044d656433aSmrgshlibpath_var=$shlibpath_var 15045126a8a12Smrg 15046d656433aSmrg# Is shlibpath searched before the hard-coded library search path? 15047d656433aSmrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath 15048126a8a12Smrg 15049d656433aSmrg# Format of library name prefix. 15050d656433aSmrglibname_spec=$lt_libname_spec 15051126a8a12Smrg 15052d656433aSmrg# List of archive names. First name is the real one, the rest are links. 15053d656433aSmrg# The last name is the one that the linker finds with -lNAME 15054d656433aSmrglibrary_names_spec=$lt_library_names_spec 15055126a8a12Smrg 15056d656433aSmrg# The coded name of the library, if different from the real name. 15057d656433aSmrgsoname_spec=$lt_soname_spec 15058126a8a12Smrg 15059555991fdSmrg# Permission mode override for installation of shared libraries. 15060555991fdSmrginstall_override_mode=$lt_install_override_mode 15061555991fdSmrg 15062d656433aSmrg# Command to use after installation of a shared archive. 15063d656433aSmrgpostinstall_cmds=$lt_postinstall_cmds 15064126a8a12Smrg 15065d656433aSmrg# Command to use after uninstallation of a shared archive. 15066d656433aSmrgpostuninstall_cmds=$lt_postuninstall_cmds 15067126a8a12Smrg 15068d656433aSmrg# Commands used to finish a libtool library installation in a directory. 15069d656433aSmrgfinish_cmds=$lt_finish_cmds 15070126a8a12Smrg 15071d656433aSmrg# As "finish_cmds", except a single script fragment to be evaled but 15072d656433aSmrg# not shown. 15073d656433aSmrgfinish_eval=$lt_finish_eval 15074126a8a12Smrg 15075d656433aSmrg# Whether we should hardcode library paths into libraries. 15076d656433aSmrghardcode_into_libs=$hardcode_into_libs 15077126a8a12Smrg 15078d656433aSmrg# Compile-time system search path for libraries. 15079d656433aSmrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15080126a8a12Smrg 15081d656433aSmrg# Run-time system search path for libraries. 15082d656433aSmrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15083126a8a12Smrg 15084d656433aSmrg# Whether dlopen is supported. 15085d656433aSmrgdlopen_support=$enable_dlopen 15086126a8a12Smrg 15087d656433aSmrg# Whether dlopen of programs is supported. 15088d656433aSmrgdlopen_self=$enable_dlopen_self 15089126a8a12Smrg 15090d656433aSmrg# Whether dlopen of statically linked programs is supported. 15091d656433aSmrgdlopen_self_static=$enable_dlopen_self_static 15092126a8a12Smrg 15093d656433aSmrg# Commands to strip libraries. 15094d656433aSmrgold_striplib=$lt_old_striplib 15095d656433aSmrgstriplib=$lt_striplib 15096126a8a12Smrg 15097126a8a12Smrg 15098d656433aSmrg# The linker used to build libraries. 15099d656433aSmrgLD=$lt_LD 15100126a8a12Smrg 15101555991fdSmrg# How to create reloadable object files. 15102555991fdSmrgreload_flag=$lt_reload_flag 15103555991fdSmrgreload_cmds=$lt_reload_cmds 15104555991fdSmrg 15105d656433aSmrg# Commands used to build an old-style archive. 15106d656433aSmrgold_archive_cmds=$lt_old_archive_cmds 15107126a8a12Smrg 15108d656433aSmrg# A language specific compiler. 15109d656433aSmrgCC=$lt_compiler 15110126a8a12Smrg 15111d656433aSmrg# Is the compiler the GNU compiler? 15112d656433aSmrgwith_gcc=$GCC 15113126a8a12Smrg 15114d656433aSmrg# Compiler flag to turn off builtin functions. 15115d656433aSmrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15116126a8a12Smrg 15117d656433aSmrg# How to pass a linker flag through the compiler. 15118d656433aSmrgwl=$lt_lt_prog_compiler_wl 15119126a8a12Smrg 15120d656433aSmrg# Additional compiler flags for building library objects. 15121d656433aSmrgpic_flag=$lt_lt_prog_compiler_pic 15122126a8a12Smrg 15123d656433aSmrg# Compiler flag to prevent dynamic linking. 15124d656433aSmrglink_static_flag=$lt_lt_prog_compiler_static 15125d656433aSmrg 15126d656433aSmrg# Does compiler simultaneously support -c and -o options? 15127d656433aSmrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o 15128126a8a12Smrg 15129d656433aSmrg# Whether or not to add -lc for building shared libraries. 15130d656433aSmrgbuild_libtool_need_lc=$archive_cmds_need_lc 15131126a8a12Smrg 15132d656433aSmrg# Whether or not to disallow shared libs when runtime libs are static. 15133d656433aSmrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15134126a8a12Smrg 15135d656433aSmrg# Compiler flag to allow reflexive dlopens. 15136d656433aSmrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15137126a8a12Smrg 15138d656433aSmrg# Compiler flag to generate shared objects directly from archives. 15139d656433aSmrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec 15140126a8a12Smrg 15141d656433aSmrg# Whether the compiler copes with passing no objects directly. 15142d656433aSmrgcompiler_needs_object=$lt_compiler_needs_object 15143d656433aSmrg 15144d656433aSmrg# Create an old-style archive from a shared archive. 15145d656433aSmrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15146126a8a12Smrg 15147d656433aSmrg# Create a temporary old-style archive to link instead of a shared archive. 15148d656433aSmrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15149126a8a12Smrg 15150d656433aSmrg# Commands used to build a shared archive. 15151d656433aSmrgarchive_cmds=$lt_archive_cmds 15152d656433aSmrgarchive_expsym_cmds=$lt_archive_expsym_cmds 15153126a8a12Smrg 15154d656433aSmrg# Commands used to build a loadable module if different from building 15155d656433aSmrg# a shared archive. 15156d656433aSmrgmodule_cmds=$lt_module_cmds 15157d656433aSmrgmodule_expsym_cmds=$lt_module_expsym_cmds 15158126a8a12Smrg 15159d656433aSmrg# Whether we are building with GNU ld or not. 15160d656433aSmrgwith_gnu_ld=$lt_with_gnu_ld 15161126a8a12Smrg 15162d656433aSmrg# Flag that allows shared libraries with undefined symbols to be built. 15163d656433aSmrgallow_undefined_flag=$lt_allow_undefined_flag 15164126a8a12Smrg 15165d656433aSmrg# Flag that enforces no undefined symbols. 15166d656433aSmrgno_undefined_flag=$lt_no_undefined_flag 15167126a8a12Smrg 15168d656433aSmrg# Flag to hardcode \$libdir into a binary during linking. 15169d656433aSmrg# This must work even if \$libdir does not exist 15170d656433aSmrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15171126a8a12Smrg 15172d656433aSmrg# If ld is used when linking, flag to hardcode \$libdir into a binary 15173d656433aSmrg# during linking. This must work even if \$libdir does not exist. 15174d656433aSmrghardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15175126a8a12Smrg 15176d656433aSmrg# Whether we need a single "-rpath" flag with a separated argument. 15177d656433aSmrghardcode_libdir_separator=$lt_hardcode_libdir_separator 15178126a8a12Smrg 15179d656433aSmrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15180d656433aSmrg# DIR into the resulting binary. 15181d656433aSmrghardcode_direct=$hardcode_direct 15182126a8a12Smrg 15183d656433aSmrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15184d656433aSmrg# DIR into the resulting binary and the resulting library dependency is 15185d656433aSmrg# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15186d656433aSmrg# library is relocated. 15187d656433aSmrghardcode_direct_absolute=$hardcode_direct_absolute 15188126a8a12Smrg 15189d656433aSmrg# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15190d656433aSmrg# into the resulting binary. 15191d656433aSmrghardcode_minus_L=$hardcode_minus_L 15192126a8a12Smrg 15193d656433aSmrg# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15194d656433aSmrg# into the resulting binary. 15195d656433aSmrghardcode_shlibpath_var=$hardcode_shlibpath_var 15196126a8a12Smrg 15197d656433aSmrg# Set to "yes" if building a shared library automatically hardcodes DIR 15198d656433aSmrg# into the library and all subsequent libraries and executables linked 15199d656433aSmrg# against it. 15200d656433aSmrghardcode_automatic=$hardcode_automatic 15201126a8a12Smrg 15202d656433aSmrg# Set to yes if linker adds runtime paths of dependent libraries 15203d656433aSmrg# to runtime path list. 15204d656433aSmrginherit_rpath=$inherit_rpath 15205126a8a12Smrg 15206d656433aSmrg# Whether libtool must link a program against all its dependency libraries. 15207d656433aSmrglink_all_deplibs=$link_all_deplibs 15208126a8a12Smrg 15209d656433aSmrg# Fix the shell variable \$srcfile for the compiler. 15210d656433aSmrgfix_srcfile_path=$lt_fix_srcfile_path 15211126a8a12Smrg 15212d656433aSmrg# Set to "yes" if exported symbols are required. 15213d656433aSmrgalways_export_symbols=$always_export_symbols 15214126a8a12Smrg 15215d656433aSmrg# The commands to list exported symbols. 15216d656433aSmrgexport_symbols_cmds=$lt_export_symbols_cmds 15217126a8a12Smrg 15218d656433aSmrg# Symbols that should not be listed in the preloaded symbols. 15219d656433aSmrgexclude_expsyms=$lt_exclude_expsyms 15220126a8a12Smrg 15221d656433aSmrg# Symbols that must always be exported. 15222d656433aSmrginclude_expsyms=$lt_include_expsyms 15223126a8a12Smrg 15224d656433aSmrg# Commands necessary for linking programs (against libraries) with templates. 15225d656433aSmrgprelink_cmds=$lt_prelink_cmds 15226126a8a12Smrg 15227d656433aSmrg# Specify filename containing input files. 15228d656433aSmrgfile_list_spec=$lt_file_list_spec 15229126a8a12Smrg 15230d656433aSmrg# How to hardcode a shared library path into an executable. 15231d656433aSmrghardcode_action=$hardcode_action 15232126a8a12Smrg 15233d656433aSmrg# ### END LIBTOOL CONFIG 15234d656433aSmrg 15235d656433aSmrg_LT_EOF 15236d656433aSmrg 15237d656433aSmrg case $host_os in 15238d656433aSmrg aix3*) 15239d656433aSmrg cat <<\_LT_EOF >> "$cfgfile" 15240d656433aSmrg# AIX sometimes has problems with the GCC collect2 program. For some 15241d656433aSmrg# reason, if we set the COLLECT_NAMES environment variable, the problems 15242d656433aSmrg# vanish in a puff of smoke. 15243d656433aSmrgif test "X${COLLECT_NAMES+set}" != Xset; then 15244d656433aSmrg COLLECT_NAMES= 15245d656433aSmrg export COLLECT_NAMES 15246d656433aSmrgfi 15247d656433aSmrg_LT_EOF 15248d656433aSmrg ;; 15249126a8a12Smrg esac 15250126a8a12Smrg 15251126a8a12Smrg 15252d656433aSmrgltmain="$ac_aux_dir/ltmain.sh" 15253126a8a12Smrg 15254126a8a12Smrg 15255d656433aSmrg # We use sed instead of cat because bash on DJGPP gets confused if 15256d656433aSmrg # if finds mixed CR/LF and LF-only lines. Since sed operates in 15257d656433aSmrg # text mode, it properly converts lines to CR/LF. This bash problem 15258d656433aSmrg # is reportedly fixed, but why not run on old versions too? 15259d656433aSmrg sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15260d656433aSmrg || (rm -f "$cfgfile"; exit 1) 15261126a8a12Smrg 15262d656433aSmrg case $xsi_shell in 15263d656433aSmrg yes) 15264d656433aSmrg cat << \_LT_EOF >> "$cfgfile" 15265d656433aSmrg 15266d656433aSmrg# func_dirname file append nondir_replacement 15267d656433aSmrg# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15268d656433aSmrg# otherwise set result to NONDIR_REPLACEMENT. 15269d656433aSmrgfunc_dirname () 15270d656433aSmrg{ 15271d656433aSmrg case ${1} in 15272d656433aSmrg */*) func_dirname_result="${1%/*}${2}" ;; 15273d656433aSmrg * ) func_dirname_result="${3}" ;; 15274126a8a12Smrg esac 15275d656433aSmrg} 15276126a8a12Smrg 15277d656433aSmrg# func_basename file 15278d656433aSmrgfunc_basename () 15279d656433aSmrg{ 15280d656433aSmrg func_basename_result="${1##*/}" 15281d656433aSmrg} 15282126a8a12Smrg 15283d656433aSmrg# func_dirname_and_basename file append nondir_replacement 15284d656433aSmrg# perform func_basename and func_dirname in a single function 15285d656433aSmrg# call: 15286d656433aSmrg# dirname: Compute the dirname of FILE. If nonempty, 15287d656433aSmrg# add APPEND to the result, otherwise set result 15288d656433aSmrg# to NONDIR_REPLACEMENT. 15289d656433aSmrg# value returned in "$func_dirname_result" 15290d656433aSmrg# basename: Compute filename of FILE. 15291d656433aSmrg# value retuned in "$func_basename_result" 15292d656433aSmrg# Implementation must be kept synchronized with func_dirname 15293d656433aSmrg# and func_basename. For efficiency, we do not delegate to 15294d656433aSmrg# those functions but instead duplicate the functionality here. 15295d656433aSmrgfunc_dirname_and_basename () 15296d656433aSmrg{ 15297d656433aSmrg case ${1} in 15298d656433aSmrg */*) func_dirname_result="${1%/*}${2}" ;; 15299d656433aSmrg * ) func_dirname_result="${3}" ;; 15300d656433aSmrg esac 15301d656433aSmrg func_basename_result="${1##*/}" 15302126a8a12Smrg} 15303126a8a12Smrg 15304d656433aSmrg# func_stripname prefix suffix name 15305d656433aSmrg# strip PREFIX and SUFFIX off of NAME. 15306d656433aSmrg# PREFIX and SUFFIX must not contain globbing or regex special 15307d656433aSmrg# characters, hashes, percent signs, but SUFFIX may contain a leading 15308d656433aSmrg# dot (in which case that matches only a dot). 15309d656433aSmrgfunc_stripname () 15310d656433aSmrg{ 15311d656433aSmrg # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15312d656433aSmrg # positional parameters, so assign one to ordinary parameter first. 15313d656433aSmrg func_stripname_result=${3} 15314d656433aSmrg func_stripname_result=${func_stripname_result#"${1}"} 15315d656433aSmrg func_stripname_result=${func_stripname_result%"${2}"} 15316d656433aSmrg} 15317126a8a12Smrg 15318d656433aSmrg# func_opt_split 15319d656433aSmrgfunc_opt_split () 15320d656433aSmrg{ 15321d656433aSmrg func_opt_split_opt=${1%%=*} 15322d656433aSmrg func_opt_split_arg=${1#*=} 15323d656433aSmrg} 15324126a8a12Smrg 15325d656433aSmrg# func_lo2o object 15326d656433aSmrgfunc_lo2o () 15327d656433aSmrg{ 15328d656433aSmrg case ${1} in 15329d656433aSmrg *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15330d656433aSmrg *) func_lo2o_result=${1} ;; 15331126a8a12Smrg esac 15332d656433aSmrg} 15333126a8a12Smrg 15334d656433aSmrg# func_xform libobj-or-source 15335d656433aSmrgfunc_xform () 15336d656433aSmrg{ 15337d656433aSmrg func_xform_result=${1%.*}.lo 15338d656433aSmrg} 15339126a8a12Smrg 15340d656433aSmrg# func_arith arithmetic-term... 15341d656433aSmrgfunc_arith () 15342d656433aSmrg{ 15343d656433aSmrg func_arith_result=$(( $* )) 15344d656433aSmrg} 15345d656433aSmrg 15346d656433aSmrg# func_len string 15347d656433aSmrg# STRING may not start with a hyphen. 15348d656433aSmrgfunc_len () 15349d656433aSmrg{ 15350d656433aSmrg func_len_result=${#1} 15351d656433aSmrg} 15352d656433aSmrg 15353d656433aSmrg_LT_EOF 15354d656433aSmrg ;; 15355d656433aSmrg *) # Bourne compatible functions. 15356d656433aSmrg cat << \_LT_EOF >> "$cfgfile" 15357d656433aSmrg 15358d656433aSmrg# func_dirname file append nondir_replacement 15359d656433aSmrg# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15360d656433aSmrg# otherwise set result to NONDIR_REPLACEMENT. 15361d656433aSmrgfunc_dirname () 15362d656433aSmrg{ 15363d656433aSmrg # Extract subdirectory from the argument. 15364555991fdSmrg func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 15365d656433aSmrg if test "X$func_dirname_result" = "X${1}"; then 15366d656433aSmrg func_dirname_result="${3}" 15367126a8a12Smrg else 15368d656433aSmrg func_dirname_result="$func_dirname_result${2}" 15369126a8a12Smrg fi 15370d656433aSmrg} 15371126a8a12Smrg 15372d656433aSmrg# func_basename file 15373d656433aSmrgfunc_basename () 15374d656433aSmrg{ 15375555991fdSmrg func_basename_result=`$ECHO "${1}" | $SED "$basename"` 15376d656433aSmrg} 15377d656433aSmrg 15378d656433aSmrg 15379d656433aSmrg# func_stripname prefix suffix name 15380d656433aSmrg# strip PREFIX and SUFFIX off of NAME. 15381d656433aSmrg# PREFIX and SUFFIX must not contain globbing or regex special 15382d656433aSmrg# characters, hashes, percent signs, but SUFFIX may contain a leading 15383d656433aSmrg# dot (in which case that matches only a dot). 15384d656433aSmrg# func_strip_suffix prefix name 15385d656433aSmrgfunc_stripname () 15386d656433aSmrg{ 15387d656433aSmrg case ${2} in 15388555991fdSmrg .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 15389555991fdSmrg *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 15390126a8a12Smrg esac 15391d656433aSmrg} 15392126a8a12Smrg 15393d656433aSmrg# sed scripts: 15394d656433aSmrgmy_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15395d656433aSmrgmy_sed_long_arg='1s/^-[^=]*=//' 15396126a8a12Smrg 15397d656433aSmrg# func_opt_split 15398d656433aSmrgfunc_opt_split () 15399d656433aSmrg{ 15400555991fdSmrg func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 15401555991fdSmrg func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 15402d656433aSmrg} 15403d656433aSmrg 15404d656433aSmrg# func_lo2o object 15405d656433aSmrgfunc_lo2o () 15406d656433aSmrg{ 15407555991fdSmrg func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 15408d656433aSmrg} 15409d656433aSmrg 15410d656433aSmrg# func_xform libobj-or-source 15411d656433aSmrgfunc_xform () 15412d656433aSmrg{ 15413555991fdSmrg func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 15414d656433aSmrg} 15415d656433aSmrg 15416d656433aSmrg# func_arith arithmetic-term... 15417d656433aSmrgfunc_arith () 15418d656433aSmrg{ 15419d656433aSmrg func_arith_result=`expr "$@"` 15420d656433aSmrg} 15421d656433aSmrg 15422d656433aSmrg# func_len string 15423d656433aSmrg# STRING may not start with a hyphen. 15424d656433aSmrgfunc_len () 15425d656433aSmrg{ 15426d656433aSmrg func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15427d656433aSmrg} 15428d656433aSmrg 15429d656433aSmrg_LT_EOF 15430d656433aSmrgesac 15431d656433aSmrg 15432d656433aSmrgcase $lt_shell_append in 15433d656433aSmrg yes) 15434d656433aSmrg cat << \_LT_EOF >> "$cfgfile" 15435d656433aSmrg 15436d656433aSmrg# func_append var value 15437d656433aSmrg# Append VALUE to the end of shell variable VAR. 15438d656433aSmrgfunc_append () 15439d656433aSmrg{ 15440d656433aSmrg eval "$1+=\$2" 15441d656433aSmrg} 15442d656433aSmrg_LT_EOF 15443d656433aSmrg ;; 15444d656433aSmrg *) 15445d656433aSmrg cat << \_LT_EOF >> "$cfgfile" 15446d656433aSmrg 15447d656433aSmrg# func_append var value 15448d656433aSmrg# Append VALUE to the end of shell variable VAR. 15449d656433aSmrgfunc_append () 15450d656433aSmrg{ 15451d656433aSmrg eval "$1=\$$1\$2" 15452d656433aSmrg} 15453d656433aSmrg 15454d656433aSmrg_LT_EOF 15455d656433aSmrg ;; 15456126a8a12Smrg esac 15457d656433aSmrg 15458d656433aSmrg 15459d656433aSmrg sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15460d656433aSmrg || (rm -f "$cfgfile"; exit 1) 15461d656433aSmrg 15462d656433aSmrg mv -f "$cfgfile" "$ofile" || 15463d656433aSmrg (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15464d656433aSmrg chmod +x "$ofile" 15465d656433aSmrg 15466126a8a12Smrg ;; 15467126a8a12Smrg 15468126a8a12Smrg esac 15469126a8a12Smrgdone # for ac_tag 15470126a8a12Smrg 15471126a8a12Smrg 15472555991fdSmrgas_fn_exit 0 15473126a8a12Smrg_ACEOF 15474126a8a12Smrgac_clean_files=$ac_clean_files_save 15475126a8a12Smrg 15476d656433aSmrgtest $ac_write_fail = 0 || 15477555991fdSmrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15478d656433aSmrg 15479126a8a12Smrg 15480126a8a12Smrg# configure is writing to config.log, and then calls config.status. 15481126a8a12Smrg# config.status does its own redirection, appending to config.log. 15482126a8a12Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 15483126a8a12Smrg# by configure, so config.status won't be able to write to it; its 15484126a8a12Smrg# output is simply discarded. So we exec the FD to /dev/null, 15485126a8a12Smrg# effectively closing config.log, so it can be properly (re)opened and 15486126a8a12Smrg# appended to by config.status. When coming back to configure, we 15487126a8a12Smrg# need to make the FD available again. 15488126a8a12Smrgif test "$no_create" != yes; then 15489126a8a12Smrg ac_cs_success=: 15490126a8a12Smrg ac_config_status_args= 15491126a8a12Smrg test "$silent" = yes && 15492126a8a12Smrg ac_config_status_args="$ac_config_status_args --quiet" 15493126a8a12Smrg exec 5>/dev/null 15494126a8a12Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15495126a8a12Smrg exec 5>>config.log 15496126a8a12Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15497126a8a12Smrg # would make configure fail if this is the last instruction. 15498555991fdSmrg $ac_cs_success || as_fn_exit 1 15499126a8a12Smrgfi 15500d656433aSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15501555991fdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15502d656433aSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15503d656433aSmrgfi 15504126a8a12Smrg 15505