1ecce36beSmrg#! /bin/sh 2ecce36beSmrg# Guess values for system-dependent variables and create Makefiles. 3ecce36beSmrg# Generated by GNU Autoconf 2.64 for xcb-util 0.3.6. 4ecce36beSmrg# 5ecce36beSmrg# Report bugs to <xcb@lists.freedesktop.org>. 6ecce36beSmrg# 7ecce36beSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8ecce36beSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 9ecce36beSmrg# Foundation, Inc. 10ecce36beSmrg# 11ecce36beSmrg# This configure script is free software; the Free Software Foundation 12ecce36beSmrg# gives unlimited permission to copy, distribute and modify it. 13ecce36beSmrg## -------------------- ## 14ecce36beSmrg## M4sh Initialization. ## 15ecce36beSmrg## -------------------- ## 16ecce36beSmrg 17ecce36beSmrg# Be more Bourne compatible 18ecce36beSmrgDUALCASE=1; export DUALCASE # for MKS sh 19ecce36beSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20ecce36beSmrg emulate sh 21ecce36beSmrg NULLCMD=: 22ecce36beSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23ecce36beSmrg # is contrary to our usage. Disable this feature. 24ecce36beSmrg alias -g '${1+"$@"}'='"$@"' 25ecce36beSmrg setopt NO_GLOB_SUBST 26ecce36beSmrgelse 27ecce36beSmrg case `(set -o) 2>/dev/null` in #( 28ecce36beSmrg *posix*) : 29ecce36beSmrg set -o posix ;; #( 30ecce36beSmrg *) : 31ecce36beSmrg ;; 32ecce36beSmrgesac 33ecce36beSmrgfi 34ecce36beSmrg 35ecce36beSmrg 36ecce36beSmrgas_nl=' 37ecce36beSmrg' 38ecce36beSmrgexport as_nl 39ecce36beSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 40ecce36beSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41ecce36beSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42ecce36beSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43ecce36beSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 44ecce36beSmrg# but without wasting forks for bash or zsh. 45ecce36beSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 46ecce36beSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47ecce36beSmrg as_echo='print -r --' 48ecce36beSmrg as_echo_n='print -rn --' 49ecce36beSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50ecce36beSmrg as_echo='printf %s\n' 51ecce36beSmrg as_echo_n='printf %s' 52ecce36beSmrgelse 53ecce36beSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54ecce36beSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55ecce36beSmrg as_echo_n='/usr/ucb/echo -n' 56ecce36beSmrg else 57ecce36beSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58ecce36beSmrg as_echo_n_body='eval 59ecce36beSmrg arg=$1; 60ecce36beSmrg case $arg in #( 61ecce36beSmrg *"$as_nl"*) 62ecce36beSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 63ecce36beSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64ecce36beSmrg esac; 65ecce36beSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66ecce36beSmrg ' 67ecce36beSmrg export as_echo_n_body 68ecce36beSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 69ecce36beSmrg fi 70ecce36beSmrg export as_echo_body 71ecce36beSmrg as_echo='sh -c $as_echo_body as_echo' 72ecce36beSmrgfi 73ecce36beSmrg 74ecce36beSmrg# The user is always right. 75ecce36beSmrgif test "${PATH_SEPARATOR+set}" != set; then 76ecce36beSmrg PATH_SEPARATOR=: 77ecce36beSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78ecce36beSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79ecce36beSmrg PATH_SEPARATOR=';' 80ecce36beSmrg } 81ecce36beSmrgfi 82ecce36beSmrg 83ecce36beSmrg 84ecce36beSmrg# IFS 85ecce36beSmrg# We need space, tab and new line, in precisely that order. Quoting is 86ecce36beSmrg# there to prevent editors from complaining about space-tab. 87ecce36beSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88ecce36beSmrg# splitting by setting IFS to empty value.) 89ecce36beSmrgIFS=" "" $as_nl" 90ecce36beSmrg 91ecce36beSmrg# Find who we are. Look in the path if we contain no directory separator. 92ecce36beSmrgcase $0 in #(( 93ecce36beSmrg *[\\/]* ) as_myself=$0 ;; 94ecce36beSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95ecce36beSmrgfor as_dir in $PATH 96ecce36beSmrgdo 97ecce36beSmrg IFS=$as_save_IFS 98ecce36beSmrg test -z "$as_dir" && as_dir=. 99ecce36beSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100ecce36beSmrg done 101ecce36beSmrgIFS=$as_save_IFS 102ecce36beSmrg 103ecce36beSmrg ;; 104ecce36beSmrgesac 105ecce36beSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 106ecce36beSmrg# in which case we are not to be found in the path. 107ecce36beSmrgif test "x$as_myself" = x; then 108ecce36beSmrg as_myself=$0 109ecce36beSmrgfi 110ecce36beSmrgif test ! -f "$as_myself"; then 111ecce36beSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112ecce36beSmrg exit 1 113ecce36beSmrgfi 114ecce36beSmrg 115ecce36beSmrg# Unset variables that we do not need and which cause bugs (e.g. in 116ecce36beSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117ecce36beSmrg# suppresses any "Segmentation fault" message there. '((' could 118ecce36beSmrg# trigger a bug in pdksh 5.2.14. 119ecce36beSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 120ecce36beSmrgdo eval test x\${$as_var+set} = xset \ 121ecce36beSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122ecce36beSmrgdone 123ecce36beSmrgPS1='$ ' 124ecce36beSmrgPS2='> ' 125ecce36beSmrgPS4='+ ' 126ecce36beSmrg 127ecce36beSmrg# NLS nuisances. 128ecce36beSmrgLC_ALL=C 129ecce36beSmrgexport LC_ALL 130ecce36beSmrgLANGUAGE=C 131ecce36beSmrgexport LANGUAGE 132ecce36beSmrg 133ecce36beSmrg# CDPATH. 134ecce36beSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135ecce36beSmrg 136ecce36beSmrgif test "x$CONFIG_SHELL" = x; then 137ecce36beSmrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138ecce36beSmrg emulate sh 139ecce36beSmrg NULLCMD=: 140ecce36beSmrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141ecce36beSmrg # is contrary to our usage. Disable this feature. 142ecce36beSmrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 143ecce36beSmrg setopt NO_GLOB_SUBST 144ecce36beSmrgelse 145ecce36beSmrg case \`(set -o) 2>/dev/null\` in #( 146ecce36beSmrg *posix*) : 147ecce36beSmrg set -o posix ;; #( 148ecce36beSmrg *) : 149ecce36beSmrg ;; 150ecce36beSmrgesac 151ecce36beSmrgfi 152ecce36beSmrg" 153ecce36beSmrg as_required="as_fn_return () { (exit \$1); } 154ecce36beSmrgas_fn_success () { as_fn_return 0; } 155ecce36beSmrgas_fn_failure () { as_fn_return 1; } 156ecce36beSmrgas_fn_ret_success () { return 0; } 157ecce36beSmrgas_fn_ret_failure () { return 1; } 158ecce36beSmrg 159ecce36beSmrgexitcode=0 160ecce36beSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 161ecce36beSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162ecce36beSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163ecce36beSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164ecce36beSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165ecce36beSmrg 166ecce36beSmrgelse 167ecce36beSmrg exitcode=1; echo positional parameters were not saved. 168ecce36beSmrgfi 169ecce36beSmrgtest x\$exitcode = x0 || exit 1" 170ecce36beSmrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171ecce36beSmrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172ecce36beSmrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173ecce36beSmrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174ecce36beSmrgtest \$(( 1 + 1 )) = 2 || exit 1" 175ecce36beSmrg if (eval "$as_required") 2>/dev/null; then : 176ecce36beSmrg as_have_required=yes 177ecce36beSmrgelse 178ecce36beSmrg as_have_required=no 179ecce36beSmrgfi 180ecce36beSmrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 181ecce36beSmrg 182ecce36beSmrgelse 183ecce36beSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184ecce36beSmrgas_found=false 185ecce36beSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 186ecce36beSmrgdo 187ecce36beSmrg IFS=$as_save_IFS 188ecce36beSmrg test -z "$as_dir" && as_dir=. 189ecce36beSmrg as_found=: 190ecce36beSmrg case $as_dir in #( 191ecce36beSmrg /*) 192ecce36beSmrg for as_base in sh bash ksh sh5; do 193ecce36beSmrg # Try only shells that exist, to save several forks. 194ecce36beSmrg as_shell=$as_dir/$as_base 195ecce36beSmrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 196ecce36beSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 197ecce36beSmrg CONFIG_SHELL=$as_shell as_have_required=yes 198ecce36beSmrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 199ecce36beSmrg break 2 200ecce36beSmrgfi 201ecce36beSmrgfi 202ecce36beSmrg done;; 203ecce36beSmrg esac 204ecce36beSmrg as_found=false 205ecce36beSmrgdone 206ecce36beSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 207ecce36beSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 208ecce36beSmrg CONFIG_SHELL=$SHELL as_have_required=yes 209ecce36beSmrgfi; } 210ecce36beSmrgIFS=$as_save_IFS 211ecce36beSmrg 212ecce36beSmrg 213ecce36beSmrg if test "x$CONFIG_SHELL" != x; then : 214ecce36beSmrg # We cannot yet assume a decent shell, so we have to provide a 215ecce36beSmrg # neutralization value for shells without unset; and this also 216ecce36beSmrg # works around shells that cannot unset nonexistent variables. 217ecce36beSmrg BASH_ENV=/dev/null 218ecce36beSmrg ENV=/dev/null 219ecce36beSmrg (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220ecce36beSmrg export CONFIG_SHELL 221ecce36beSmrg exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 222ecce36beSmrgfi 223ecce36beSmrg 224ecce36beSmrg if test x$as_have_required = xno; then : 225ecce36beSmrg $as_echo "$0: This script requires a shell more modern than all" 226ecce36beSmrg $as_echo "$0: the shells that I found on your system." 227ecce36beSmrg if test x${ZSH_VERSION+set} = xset ; then 228ecce36beSmrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 229ecce36beSmrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 230ecce36beSmrg else 231ecce36beSmrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 232ecce36beSmrg$0: xcb@lists.freedesktop.org about your system, including 233ecce36beSmrg$0: any error possibly output before this message. Then 234ecce36beSmrg$0: install a modern shell, or manually run the script 235ecce36beSmrg$0: under such a shell if you do have one." 236ecce36beSmrg fi 237ecce36beSmrg exit 1 238ecce36beSmrgfi 239ecce36beSmrgfi 240ecce36beSmrgfi 241ecce36beSmrgSHELL=${CONFIG_SHELL-/bin/sh} 242ecce36beSmrgexport SHELL 243ecce36beSmrg# Unset more variables known to interfere with behavior of common tools. 244ecce36beSmrgCLICOLOR_FORCE= GREP_OPTIONS= 245ecce36beSmrgunset CLICOLOR_FORCE GREP_OPTIONS 246ecce36beSmrg 247ecce36beSmrg## --------------------- ## 248ecce36beSmrg## M4sh Shell Functions. ## 249ecce36beSmrg## --------------------- ## 250ecce36beSmrg# as_fn_unset VAR 251ecce36beSmrg# --------------- 252ecce36beSmrg# Portably unset VAR. 253ecce36beSmrgas_fn_unset () 254ecce36beSmrg{ 255ecce36beSmrg { eval $1=; unset $1;} 256ecce36beSmrg} 257ecce36beSmrgas_unset=as_fn_unset 258ecce36beSmrg 259ecce36beSmrg# as_fn_set_status STATUS 260ecce36beSmrg# ----------------------- 261ecce36beSmrg# Set $? to STATUS, without forking. 262ecce36beSmrgas_fn_set_status () 263ecce36beSmrg{ 264ecce36beSmrg return $1 265ecce36beSmrg} # as_fn_set_status 266ecce36beSmrg 267ecce36beSmrg# as_fn_exit STATUS 268ecce36beSmrg# ----------------- 269ecce36beSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 270ecce36beSmrgas_fn_exit () 271ecce36beSmrg{ 272ecce36beSmrg set +e 273ecce36beSmrg as_fn_set_status $1 274ecce36beSmrg exit $1 275ecce36beSmrg} # as_fn_exit 276ecce36beSmrg 277ecce36beSmrg# as_fn_mkdir_p 278ecce36beSmrg# ------------- 279ecce36beSmrg# Create "$as_dir" as a directory, including parents if necessary. 280ecce36beSmrgas_fn_mkdir_p () 281ecce36beSmrg{ 282ecce36beSmrg 283ecce36beSmrg case $as_dir in #( 284ecce36beSmrg -*) as_dir=./$as_dir;; 285ecce36beSmrg esac 286ecce36beSmrg test -d "$as_dir" || eval $as_mkdir_p || { 287ecce36beSmrg as_dirs= 288ecce36beSmrg while :; do 289ecce36beSmrg case $as_dir in #( 290ecce36beSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 291ecce36beSmrg *) as_qdir=$as_dir;; 292ecce36beSmrg esac 293ecce36beSmrg as_dirs="'$as_qdir' $as_dirs" 294ecce36beSmrg as_dir=`$as_dirname -- "$as_dir" || 295ecce36beSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 296ecce36beSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 297ecce36beSmrg X"$as_dir" : 'X\(//\)$' \| \ 298ecce36beSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 299ecce36beSmrg$as_echo X"$as_dir" | 300ecce36beSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 301ecce36beSmrg s//\1/ 302ecce36beSmrg q 303ecce36beSmrg } 304ecce36beSmrg /^X\(\/\/\)[^/].*/{ 305ecce36beSmrg s//\1/ 306ecce36beSmrg q 307ecce36beSmrg } 308ecce36beSmrg /^X\(\/\/\)$/{ 309ecce36beSmrg s//\1/ 310ecce36beSmrg q 311ecce36beSmrg } 312ecce36beSmrg /^X\(\/\).*/{ 313ecce36beSmrg s//\1/ 314ecce36beSmrg q 315ecce36beSmrg } 316ecce36beSmrg s/.*/./; q'` 317ecce36beSmrg test -d "$as_dir" && break 318ecce36beSmrg done 319ecce36beSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 320ecce36beSmrg } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 321ecce36beSmrg 322ecce36beSmrg 323ecce36beSmrg} # as_fn_mkdir_p 324ecce36beSmrg# as_fn_append VAR VALUE 325ecce36beSmrg# ---------------------- 326ecce36beSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 327ecce36beSmrg# advantage of any shell optimizations that allow amortized linear growth over 328ecce36beSmrg# repeated appends, instead of the typical quadratic growth present in naive 329ecce36beSmrg# implementations. 330ecce36beSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 331ecce36beSmrg eval 'as_fn_append () 332ecce36beSmrg { 333ecce36beSmrg eval $1+=\$2 334ecce36beSmrg }' 335ecce36beSmrgelse 336ecce36beSmrg as_fn_append () 337ecce36beSmrg { 338ecce36beSmrg eval $1=\$$1\$2 339ecce36beSmrg } 340ecce36beSmrgfi # as_fn_append 341ecce36beSmrg 342ecce36beSmrg# as_fn_arith ARG... 343ecce36beSmrg# ------------------ 344ecce36beSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 345ecce36beSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 346ecce36beSmrg# must be portable across $(()) and expr. 347ecce36beSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 348ecce36beSmrg eval 'as_fn_arith () 349ecce36beSmrg { 350ecce36beSmrg as_val=$(( $* )) 351ecce36beSmrg }' 352ecce36beSmrgelse 353ecce36beSmrg as_fn_arith () 354ecce36beSmrg { 355ecce36beSmrg as_val=`expr "$@" || test $? -eq 1` 356ecce36beSmrg } 357ecce36beSmrgfi # as_fn_arith 358ecce36beSmrg 359ecce36beSmrg 360ecce36beSmrg# as_fn_error ERROR [LINENO LOG_FD] 361ecce36beSmrg# --------------------------------- 362ecce36beSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 363ecce36beSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 364ecce36beSmrg# script with status $?, using 1 if that was 0. 365ecce36beSmrgas_fn_error () 366ecce36beSmrg{ 367ecce36beSmrg as_status=$?; test $as_status -eq 0 && as_status=1 368ecce36beSmrg if test "$3"; then 369ecce36beSmrg as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 370ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 371ecce36beSmrg fi 372ecce36beSmrg $as_echo "$as_me: error: $1" >&2 373ecce36beSmrg as_fn_exit $as_status 374ecce36beSmrg} # as_fn_error 375ecce36beSmrg 376ecce36beSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 377ecce36beSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 378ecce36beSmrg as_expr=expr 379ecce36beSmrgelse 380ecce36beSmrg as_expr=false 381ecce36beSmrgfi 382ecce36beSmrg 383ecce36beSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 384ecce36beSmrg as_basename=basename 385ecce36beSmrgelse 386ecce36beSmrg as_basename=false 387ecce36beSmrgfi 388ecce36beSmrg 389ecce36beSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 390ecce36beSmrg as_dirname=dirname 391ecce36beSmrgelse 392ecce36beSmrg as_dirname=false 393ecce36beSmrgfi 394ecce36beSmrg 395ecce36beSmrgas_me=`$as_basename -- "$0" || 396ecce36beSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 397ecce36beSmrg X"$0" : 'X\(//\)$' \| \ 398ecce36beSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 399ecce36beSmrg$as_echo X/"$0" | 400ecce36beSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 401ecce36beSmrg s//\1/ 402ecce36beSmrg q 403ecce36beSmrg } 404ecce36beSmrg /^X\/\(\/\/\)$/{ 405ecce36beSmrg s//\1/ 406ecce36beSmrg q 407ecce36beSmrg } 408ecce36beSmrg /^X\/\(\/\).*/{ 409ecce36beSmrg s//\1/ 410ecce36beSmrg q 411ecce36beSmrg } 412ecce36beSmrg s/.*/./; q'` 413ecce36beSmrg 414ecce36beSmrg# Avoid depending upon Character Ranges. 415ecce36beSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 416ecce36beSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 417ecce36beSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 418ecce36beSmrgas_cr_digits='0123456789' 419ecce36beSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 420ecce36beSmrg 421ecce36beSmrg 422ecce36beSmrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 423ecce36beSmrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 424ecce36beSmrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 425ecce36beSmrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 426ecce36beSmrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 427ecce36beSmrg sed -n ' 428ecce36beSmrg p 429ecce36beSmrg /[$]LINENO/= 430ecce36beSmrg ' <$as_myself | 431ecce36beSmrg sed ' 432ecce36beSmrg s/[$]LINENO.*/&-/ 433ecce36beSmrg t lineno 434ecce36beSmrg b 435ecce36beSmrg :lineno 436ecce36beSmrg N 437ecce36beSmrg :loop 438ecce36beSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 439ecce36beSmrg t loop 440ecce36beSmrg s/-\n.*// 441ecce36beSmrg ' >$as_me.lineno && 442ecce36beSmrg chmod +x "$as_me.lineno" || 443ecce36beSmrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 444ecce36beSmrg 445ecce36beSmrg # Don't try to exec as it changes $[0], causing all sort of problems 446ecce36beSmrg # (the dirname of $[0] is not the place where we might find the 447ecce36beSmrg # original and so on. Autoconf is especially sensitive to this). 448ecce36beSmrg . "./$as_me.lineno" 449ecce36beSmrg # Exit status is that of the last command. 450ecce36beSmrg exit 451ecce36beSmrg} 452ecce36beSmrg 453ecce36beSmrgECHO_C= ECHO_N= ECHO_T= 454ecce36beSmrgcase `echo -n x` in #((((( 455ecce36beSmrg-n*) 456ecce36beSmrg case `echo 'xy\c'` in 457ecce36beSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 458ecce36beSmrg xy) ECHO_C='\c';; 459ecce36beSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 460ecce36beSmrg ECHO_T=' ';; 461ecce36beSmrg esac;; 462ecce36beSmrg*) 463ecce36beSmrg ECHO_N='-n';; 464ecce36beSmrgesac 465ecce36beSmrg 466ecce36beSmrgrm -f conf$$ conf$$.exe conf$$.file 467ecce36beSmrgif test -d conf$$.dir; then 468ecce36beSmrg rm -f conf$$.dir/conf$$.file 469ecce36beSmrgelse 470ecce36beSmrg rm -f conf$$.dir 471ecce36beSmrg mkdir conf$$.dir 2>/dev/null 472ecce36beSmrgfi 473ecce36beSmrgif (echo >conf$$.file) 2>/dev/null; then 474ecce36beSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 475ecce36beSmrg as_ln_s='ln -s' 476ecce36beSmrg # ... but there are two gotchas: 477ecce36beSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 478ecce36beSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 479ecce36beSmrg # In both cases, we have to default to `cp -p'. 480ecce36beSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 481ecce36beSmrg as_ln_s='cp -p' 482ecce36beSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 483ecce36beSmrg as_ln_s=ln 484ecce36beSmrg else 485ecce36beSmrg as_ln_s='cp -p' 486ecce36beSmrg fi 487ecce36beSmrgelse 488ecce36beSmrg as_ln_s='cp -p' 489ecce36beSmrgfi 490ecce36beSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 491ecce36beSmrgrmdir conf$$.dir 2>/dev/null 492ecce36beSmrg 493ecce36beSmrgif mkdir -p . 2>/dev/null; then 494ecce36beSmrg as_mkdir_p='mkdir -p "$as_dir"' 495ecce36beSmrgelse 496ecce36beSmrg test -d ./-p && rmdir ./-p 497ecce36beSmrg as_mkdir_p=false 498ecce36beSmrgfi 499ecce36beSmrg 500ecce36beSmrgif test -x / >/dev/null 2>&1; then 501ecce36beSmrg as_test_x='test -x' 502ecce36beSmrgelse 503ecce36beSmrg if ls -dL / >/dev/null 2>&1; then 504ecce36beSmrg as_ls_L_option=L 505ecce36beSmrg else 506ecce36beSmrg as_ls_L_option= 507ecce36beSmrg fi 508ecce36beSmrg as_test_x=' 509ecce36beSmrg eval sh -c '\'' 510ecce36beSmrg if test -d "$1"; then 511ecce36beSmrg test -d "$1/."; 512ecce36beSmrg else 513ecce36beSmrg case $1 in #( 514ecce36beSmrg -*)set "./$1";; 515ecce36beSmrg esac; 516ecce36beSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 517ecce36beSmrg ???[sx]*):;;*)false;;esac;fi 518ecce36beSmrg '\'' sh 519ecce36beSmrg ' 520ecce36beSmrgfi 521ecce36beSmrgas_executable_p=$as_test_x 522ecce36beSmrg 523ecce36beSmrg# Sed expression to map a string onto a valid CPP name. 524ecce36beSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 525ecce36beSmrg 526ecce36beSmrg# Sed expression to map a string onto a valid variable name. 527ecce36beSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 528ecce36beSmrg 529ecce36beSmrg 530ecce36beSmrg 531ecce36beSmrg# Check that we are running under the correct shell. 532ecce36beSmrgSHELL=${CONFIG_SHELL-/bin/sh} 533ecce36beSmrg 534ecce36beSmrgcase X$lt_ECHO in 535ecce36beSmrgX*--fallback-echo) 536ecce36beSmrg # Remove one level of quotation (which was required for Make). 537ecce36beSmrg ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 538ecce36beSmrg ;; 539ecce36beSmrgesac 540ecce36beSmrg 541ecce36beSmrgECHO=${lt_ECHO-echo} 542ecce36beSmrgif test "X$1" = X--no-reexec; then 543ecce36beSmrg # Discard the --no-reexec flag, and continue. 544ecce36beSmrg shift 545ecce36beSmrgelif test "X$1" = X--fallback-echo; then 546ecce36beSmrg # Avoid inline document here, it may be left over 547ecce36beSmrg : 548ecce36beSmrgelif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 549ecce36beSmrg # Yippee, $ECHO works! 550ecce36beSmrg : 551ecce36beSmrgelse 552ecce36beSmrg # Restart under the correct shell. 553ecce36beSmrg exec $SHELL "$0" --no-reexec ${1+"$@"} 554ecce36beSmrgfi 555ecce36beSmrg 556ecce36beSmrgif test "X$1" = X--fallback-echo; then 557ecce36beSmrg # used as fallback echo 558ecce36beSmrg shift 559ecce36beSmrg cat <<_LT_EOF 560ecce36beSmrg$* 561ecce36beSmrg_LT_EOF 562ecce36beSmrg exit 0 563ecce36beSmrgfi 564ecce36beSmrg 565ecce36beSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 566ecce36beSmrg# if CDPATH is set. 567ecce36beSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 568ecce36beSmrg 569ecce36beSmrgif test -z "$lt_ECHO"; then 570ecce36beSmrg if test "X${echo_test_string+set}" != Xset; then 571ecce36beSmrg # find a string as large as possible, as long as the shell can cope with it 572ecce36beSmrg for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 573ecce36beSmrg # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 574ecce36beSmrg if { echo_test_string=`eval $cmd`; } 2>/dev/null && 575ecce36beSmrg { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 576ecce36beSmrg then 577ecce36beSmrg break 578ecce36beSmrg fi 579ecce36beSmrg done 580ecce36beSmrg fi 581ecce36beSmrg 582ecce36beSmrg if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 583ecce36beSmrg echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 584ecce36beSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 585ecce36beSmrg : 586ecce36beSmrg else 587ecce36beSmrg # The Solaris, AIX, and Digital Unix default echo programs unquote 588ecce36beSmrg # backslashes. This makes it impossible to quote backslashes using 589ecce36beSmrg # echo "$something" | sed 's/\\/\\\\/g' 590ecce36beSmrg # 591ecce36beSmrg # So, first we look for a working echo in the user's PATH. 592ecce36beSmrg 593ecce36beSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 594ecce36beSmrg for dir in $PATH /usr/ucb; do 595ecce36beSmrg IFS="$lt_save_ifs" 596ecce36beSmrg if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 597ecce36beSmrg test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 598ecce36beSmrg echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 599ecce36beSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 600ecce36beSmrg ECHO="$dir/echo" 601ecce36beSmrg break 602ecce36beSmrg fi 603ecce36beSmrg done 604ecce36beSmrg IFS="$lt_save_ifs" 605ecce36beSmrg 606ecce36beSmrg if test "X$ECHO" = Xecho; then 607ecce36beSmrg # We didn't find a better echo, so look for alternatives. 608ecce36beSmrg if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 609ecce36beSmrg echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 610ecce36beSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 611ecce36beSmrg # This shell has a builtin print -r that does the trick. 612ecce36beSmrg ECHO='print -r' 613ecce36beSmrg elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 614ecce36beSmrg test "X$CONFIG_SHELL" != X/bin/ksh; then 615ecce36beSmrg # If we have ksh, try running configure again with it. 616ecce36beSmrg ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 617ecce36beSmrg export ORIGINAL_CONFIG_SHELL 618ecce36beSmrg CONFIG_SHELL=/bin/ksh 619ecce36beSmrg export CONFIG_SHELL 620ecce36beSmrg exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 621ecce36beSmrg else 622ecce36beSmrg # Try using printf. 623ecce36beSmrg ECHO='printf %s\n' 624ecce36beSmrg if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 625ecce36beSmrg echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 626ecce36beSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 627ecce36beSmrg # Cool, printf works 628ecce36beSmrg : 629ecce36beSmrg elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 630ecce36beSmrg test "X$echo_testing_string" = 'X\t' && 631ecce36beSmrg echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 632ecce36beSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 633ecce36beSmrg CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 634ecce36beSmrg export CONFIG_SHELL 635ecce36beSmrg SHELL="$CONFIG_SHELL" 636ecce36beSmrg export SHELL 637ecce36beSmrg ECHO="$CONFIG_SHELL $0 --fallback-echo" 638ecce36beSmrg elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 639ecce36beSmrg test "X$echo_testing_string" = 'X\t' && 640ecce36beSmrg echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 641ecce36beSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 642ecce36beSmrg ECHO="$CONFIG_SHELL $0 --fallback-echo" 643ecce36beSmrg else 644ecce36beSmrg # maybe with a smaller string... 645ecce36beSmrg prev=: 646ecce36beSmrg 647ecce36beSmrg for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 648ecce36beSmrg if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 649ecce36beSmrg then 650ecce36beSmrg break 651ecce36beSmrg fi 652ecce36beSmrg prev="$cmd" 653ecce36beSmrg done 654ecce36beSmrg 655ecce36beSmrg if test "$prev" != 'sed 50q "$0"'; then 656ecce36beSmrg echo_test_string=`eval $prev` 657ecce36beSmrg export echo_test_string 658ecce36beSmrg exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 659ecce36beSmrg else 660ecce36beSmrg # Oops. We lost completely, so just stick with echo. 661ecce36beSmrg ECHO=echo 662ecce36beSmrg fi 663ecce36beSmrg fi 664ecce36beSmrg fi 665ecce36beSmrg fi 666ecce36beSmrg fi 667ecce36beSmrgfi 668ecce36beSmrg 669ecce36beSmrg# Copy echo and quote the copy suitably for passing to libtool from 670ecce36beSmrg# the Makefile, instead of quoting the original, which is used later. 671ecce36beSmrglt_ECHO=$ECHO 672ecce36beSmrgif test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 673ecce36beSmrg lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 674ecce36beSmrgfi 675ecce36beSmrg 676ecce36beSmrg 677ecce36beSmrg 678ecce36beSmrg 679ecce36beSmrgexec 7<&0 </dev/null 6>&1 680ecce36beSmrg 681ecce36beSmrg# Name of the host. 682ecce36beSmrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 683ecce36beSmrg# so uname gets run too. 684ecce36beSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 685ecce36beSmrg 686ecce36beSmrg# 687ecce36beSmrg# Initializations. 688ecce36beSmrg# 689ecce36beSmrgac_default_prefix=/usr/local 690ecce36beSmrgac_clean_files= 691ecce36beSmrgac_config_libobj_dir=. 692ecce36beSmrgLIBOBJS= 693ecce36beSmrgcross_compiling=no 694ecce36beSmrgsubdirs= 695ecce36beSmrgMFLAGS= 696ecce36beSmrgMAKEFLAGS= 697ecce36beSmrg 698ecce36beSmrg# Identity of this package. 699ecce36beSmrgPACKAGE_NAME='xcb-util' 700ecce36beSmrgPACKAGE_TARNAME='xcb-util' 701ecce36beSmrgPACKAGE_VERSION='0.3.6' 702ecce36beSmrgPACKAGE_STRING='xcb-util 0.3.6' 703ecce36beSmrgPACKAGE_BUGREPORT='xcb@lists.freedesktop.org' 704ecce36beSmrgPACKAGE_URL='' 705ecce36beSmrg 706ecce36beSmrgac_unique_file="Makefile.am" 707ecce36beSmrg# Factoring default headers for most tests. 708ecce36beSmrgac_includes_default="\ 709ecce36beSmrg#include <stdio.h> 710ecce36beSmrg#ifdef HAVE_SYS_TYPES_H 711ecce36beSmrg# include <sys/types.h> 712ecce36beSmrg#endif 713ecce36beSmrg#ifdef HAVE_SYS_STAT_H 714ecce36beSmrg# include <sys/stat.h> 715ecce36beSmrg#endif 716ecce36beSmrg#ifdef STDC_HEADERS 717ecce36beSmrg# include <stdlib.h> 718ecce36beSmrg# include <stddef.h> 719ecce36beSmrg#else 720ecce36beSmrg# ifdef HAVE_STDLIB_H 721ecce36beSmrg# include <stdlib.h> 722ecce36beSmrg# endif 723ecce36beSmrg#endif 724ecce36beSmrg#ifdef HAVE_STRING_H 725ecce36beSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 726ecce36beSmrg# include <memory.h> 727ecce36beSmrg# endif 728ecce36beSmrg# include <string.h> 729ecce36beSmrg#endif 730ecce36beSmrg#ifdef HAVE_STRINGS_H 731ecce36beSmrg# include <strings.h> 732ecce36beSmrg#endif 733ecce36beSmrg#ifdef HAVE_INTTYPES_H 734ecce36beSmrg# include <inttypes.h> 735ecce36beSmrg#endif 736ecce36beSmrg#ifdef HAVE_STDINT_H 737ecce36beSmrg# include <stdint.h> 738ecce36beSmrg#endif 739ecce36beSmrg#ifdef HAVE_UNISTD_H 740ecce36beSmrg# include <unistd.h> 741ecce36beSmrg#endif" 742ecce36beSmrg 743ecce36beSmrgac_func_list= 744ecce36beSmrgac_subst_vars='am__EXEEXT_FALSE 745ecce36beSmrgam__EXEEXT_TRUE 746ecce36beSmrgLTLIBOBJS 747ecce36beSmrgLIBOBJS 748ecce36beSmrgXCB_ICCCM_LIBS 749ecce36beSmrgXCB_ICCCM_CFLAGS 750ecce36beSmrgXCB_PROPERTY_LIBS 751ecce36beSmrgXCB_PROPERTY_CFLAGS 752ecce36beSmrgXCB_EVENT_LIBS 753ecce36beSmrgXCB_EVENT_CFLAGS 754ecce36beSmrgXCB_ATOM_LIBS 755ecce36beSmrgXCB_ATOM_CFLAGS 756ecce36beSmrgXCB_AUX_LIBS 757ecce36beSmrgXCB_AUX_CFLAGS 758ecce36beSmrgXPROTO_LIBS 759ecce36beSmrgXPROTO_CFLAGS 760ecce36beSmrgXCB_RENDER_LIBS 761ecce36beSmrgXCB_RENDER_CFLAGS 762ecce36beSmrgXCB_SHM_LIBS 763ecce36beSmrgXCB_SHM_CFLAGS 764ecce36beSmrgXCB_LIBS 765ecce36beSmrgXCB_CFLAGS 766ecce36beSmrgPKG_CONFIG 767ecce36beSmrgpkgconfigdir 768ecce36beSmrgxcbincludedir 769ecce36beSmrgCWARNFLAGS 770ecce36beSmrgCPP 771ecce36beSmrgOTOOL64 772ecce36beSmrgOTOOL 773ecce36beSmrgLIPO 774ecce36beSmrgNMEDIT 775ecce36beSmrgDSYMUTIL 776ecce36beSmrglt_ECHO 777ecce36beSmrgRANLIB 778ecce36beSmrgAR 779ecce36beSmrgOBJDUMP 780ecce36beSmrgLN_S 781ecce36beSmrgNM 782ecce36beSmrgac_ct_DUMPBIN 783ecce36beSmrgDUMPBIN 784ecce36beSmrgLD 785ecce36beSmrgFGREP 786ecce36beSmrgEGREP 787ecce36beSmrgGREP 788ecce36beSmrgSED 789ecce36beSmrghost_os 790ecce36beSmrghost_vendor 791ecce36beSmrghost_cpu 792ecce36beSmrghost 793ecce36beSmrgbuild_os 794ecce36beSmrgbuild_vendor 795ecce36beSmrgbuild_cpu 796ecce36beSmrgbuild 797ecce36beSmrgLIBTOOL 798ecce36beSmrgam__fastdepCC_FALSE 799ecce36beSmrgam__fastdepCC_TRUE 800ecce36beSmrgCCDEPMODE 801ecce36beSmrgAMDEPBACKSLASH 802ecce36beSmrgAMDEP_FALSE 803ecce36beSmrgAMDEP_TRUE 804ecce36beSmrgam__quote 805ecce36beSmrgam__include 806ecce36beSmrgDEPDIR 807ecce36beSmrgOBJEXT 808ecce36beSmrgEXEEXT 809ecce36beSmrgac_ct_CC 810ecce36beSmrgCPPFLAGS 811ecce36beSmrgLDFLAGS 812ecce36beSmrgCFLAGS 813ecce36beSmrgCC 814ecce36beSmrgGPERF 815ecce36beSmrgGNUM4 816ecce36beSmrgGM4 817ecce36beSmrgM4 818ecce36beSmrgam__untar 819ecce36beSmrgam__tar 820ecce36beSmrgAMTAR 821ecce36beSmrgam__leading_dot 822ecce36beSmrgSET_MAKE 823ecce36beSmrgAWK 824ecce36beSmrgmkdir_p 825ecce36beSmrgMKDIR_P 826ecce36beSmrgINSTALL_STRIP_PROGRAM 827ecce36beSmrgSTRIP 828ecce36beSmrginstall_sh 829ecce36beSmrgMAKEINFO 830ecce36beSmrgAUTOHEADER 831ecce36beSmrgAUTOMAKE 832ecce36beSmrgAUTOCONF 833ecce36beSmrgACLOCAL 834ecce36beSmrgVERSION 835ecce36beSmrgPACKAGE 836ecce36beSmrgCYGPATH_W 837ecce36beSmrgam__isrc 838ecce36beSmrgINSTALL_DATA 839ecce36beSmrgINSTALL_SCRIPT 840ecce36beSmrgINSTALL_PROGRAM 841ecce36beSmrgtarget_alias 842ecce36beSmrghost_alias 843ecce36beSmrgbuild_alias 844ecce36beSmrgLIBS 845ecce36beSmrgECHO_T 846ecce36beSmrgECHO_N 847ecce36beSmrgECHO_C 848ecce36beSmrgDEFS 849ecce36beSmrgmandir 850ecce36beSmrglocaledir 851ecce36beSmrglibdir 852ecce36beSmrgpsdir 853ecce36beSmrgpdfdir 854ecce36beSmrgdvidir 855ecce36beSmrghtmldir 856ecce36beSmrginfodir 857ecce36beSmrgdocdir 858ecce36beSmrgoldincludedir 859ecce36beSmrgincludedir 860ecce36beSmrglocalstatedir 861ecce36beSmrgsharedstatedir 862ecce36beSmrgsysconfdir 863ecce36beSmrgdatadir 864ecce36beSmrgdatarootdir 865ecce36beSmrglibexecdir 866ecce36beSmrgsbindir 867ecce36beSmrgbindir 868ecce36beSmrgprogram_transform_name 869ecce36beSmrgprefix 870ecce36beSmrgexec_prefix 871ecce36beSmrgPACKAGE_URL 872ecce36beSmrgPACKAGE_BUGREPORT 873ecce36beSmrgPACKAGE_STRING 874ecce36beSmrgPACKAGE_VERSION 875ecce36beSmrgPACKAGE_TARNAME 876ecce36beSmrgPACKAGE_NAME 877ecce36beSmrgPATH_SEPARATOR 878ecce36beSmrgSHELL' 879ecce36beSmrgac_subst_files='' 880ecce36beSmrgac_user_opts=' 881ecce36beSmrgenable_option_checking 882ecce36beSmrgenable_dependency_tracking 883ecce36beSmrgenable_shared 884ecce36beSmrgenable_static 885ecce36beSmrgwith_pic 886ecce36beSmrgenable_fast_install 887ecce36beSmrgwith_gnu_ld 888ecce36beSmrgenable_libtool_lock 889ecce36beSmrg' 890ecce36beSmrg ac_precious_vars='build_alias 891ecce36beSmrghost_alias 892ecce36beSmrgtarget_alias 893ecce36beSmrgCC 894ecce36beSmrgCFLAGS 895ecce36beSmrgLDFLAGS 896ecce36beSmrgLIBS 897ecce36beSmrgCPPFLAGS 898ecce36beSmrgCPP 899ecce36beSmrgPKG_CONFIG 900ecce36beSmrgXCB_CFLAGS 901ecce36beSmrgXCB_LIBS 902ecce36beSmrgXCB_SHM_CFLAGS 903ecce36beSmrgXCB_SHM_LIBS 904ecce36beSmrgXCB_RENDER_CFLAGS 905ecce36beSmrgXCB_RENDER_LIBS 906ecce36beSmrgXPROTO_CFLAGS 907ecce36beSmrgXPROTO_LIBS' 908ecce36beSmrg 909ecce36beSmrg 910ecce36beSmrg# Initialize some variables set by options. 911ecce36beSmrgac_init_help= 912ecce36beSmrgac_init_version=false 913ecce36beSmrgac_unrecognized_opts= 914ecce36beSmrgac_unrecognized_sep= 915ecce36beSmrg# The variables have the same names as the options, with 916ecce36beSmrg# dashes changed to underlines. 917ecce36beSmrgcache_file=/dev/null 918ecce36beSmrgexec_prefix=NONE 919ecce36beSmrgno_create= 920ecce36beSmrgno_recursion= 921ecce36beSmrgprefix=NONE 922ecce36beSmrgprogram_prefix=NONE 923ecce36beSmrgprogram_suffix=NONE 924ecce36beSmrgprogram_transform_name=s,x,x, 925ecce36beSmrgsilent= 926ecce36beSmrgsite= 927ecce36beSmrgsrcdir= 928ecce36beSmrgverbose= 929ecce36beSmrgx_includes=NONE 930ecce36beSmrgx_libraries=NONE 931ecce36beSmrg 932ecce36beSmrg# Installation directory options. 933ecce36beSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 934ecce36beSmrg# and all the variables that are supposed to be based on exec_prefix 935ecce36beSmrg# by default will actually change. 936ecce36beSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 937ecce36beSmrg# (The list follows the same order as the GNU Coding Standards.) 938ecce36beSmrgbindir='${exec_prefix}/bin' 939ecce36beSmrgsbindir='${exec_prefix}/sbin' 940ecce36beSmrglibexecdir='${exec_prefix}/libexec' 941ecce36beSmrgdatarootdir='${prefix}/share' 942ecce36beSmrgdatadir='${datarootdir}' 943ecce36beSmrgsysconfdir='${prefix}/etc' 944ecce36beSmrgsharedstatedir='${prefix}/com' 945ecce36beSmrglocalstatedir='${prefix}/var' 946ecce36beSmrgincludedir='${prefix}/include' 947ecce36beSmrgoldincludedir='/usr/include' 948ecce36beSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 949ecce36beSmrginfodir='${datarootdir}/info' 950ecce36beSmrghtmldir='${docdir}' 951ecce36beSmrgdvidir='${docdir}' 952ecce36beSmrgpdfdir='${docdir}' 953ecce36beSmrgpsdir='${docdir}' 954ecce36beSmrglibdir='${exec_prefix}/lib' 955ecce36beSmrglocaledir='${datarootdir}/locale' 956ecce36beSmrgmandir='${datarootdir}/man' 957ecce36beSmrg 958ecce36beSmrgac_prev= 959ecce36beSmrgac_dashdash= 960ecce36beSmrgfor ac_option 961ecce36beSmrgdo 962ecce36beSmrg # If the previous option needs an argument, assign it. 963ecce36beSmrg if test -n "$ac_prev"; then 964ecce36beSmrg eval $ac_prev=\$ac_option 965ecce36beSmrg ac_prev= 966ecce36beSmrg continue 967ecce36beSmrg fi 968ecce36beSmrg 969ecce36beSmrg case $ac_option in 970ecce36beSmrg *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 971ecce36beSmrg *) ac_optarg=yes ;; 972ecce36beSmrg esac 973ecce36beSmrg 974ecce36beSmrg # Accept the important Cygnus configure options, so we can diagnose typos. 975ecce36beSmrg 976ecce36beSmrg case $ac_dashdash$ac_option in 977ecce36beSmrg --) 978ecce36beSmrg ac_dashdash=yes ;; 979ecce36beSmrg 980ecce36beSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 981ecce36beSmrg ac_prev=bindir ;; 982ecce36beSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 983ecce36beSmrg bindir=$ac_optarg ;; 984ecce36beSmrg 985ecce36beSmrg -build | --build | --buil | --bui | --bu) 986ecce36beSmrg ac_prev=build_alias ;; 987ecce36beSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 988ecce36beSmrg build_alias=$ac_optarg ;; 989ecce36beSmrg 990ecce36beSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 991ecce36beSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 992ecce36beSmrg ac_prev=cache_file ;; 993ecce36beSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 994ecce36beSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 995ecce36beSmrg cache_file=$ac_optarg ;; 996ecce36beSmrg 997ecce36beSmrg --config-cache | -C) 998ecce36beSmrg cache_file=config.cache ;; 999ecce36beSmrg 1000ecce36beSmrg -datadir | --datadir | --datadi | --datad) 1001ecce36beSmrg ac_prev=datadir ;; 1002ecce36beSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 1003ecce36beSmrg datadir=$ac_optarg ;; 1004ecce36beSmrg 1005ecce36beSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1006ecce36beSmrg | --dataroo | --dataro | --datar) 1007ecce36beSmrg ac_prev=datarootdir ;; 1008ecce36beSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1009ecce36beSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1010ecce36beSmrg datarootdir=$ac_optarg ;; 1011ecce36beSmrg 1012ecce36beSmrg -disable-* | --disable-*) 1013ecce36beSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1014ecce36beSmrg # Reject names that are not valid shell variable names. 1015ecce36beSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1016ecce36beSmrg as_fn_error "invalid feature name: $ac_useropt" 1017ecce36beSmrg ac_useropt_orig=$ac_useropt 1018ecce36beSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1019ecce36beSmrg case $ac_user_opts in 1020ecce36beSmrg *" 1021ecce36beSmrg"enable_$ac_useropt" 1022ecce36beSmrg"*) ;; 1023ecce36beSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1024ecce36beSmrg ac_unrecognized_sep=', ';; 1025ecce36beSmrg esac 1026ecce36beSmrg eval enable_$ac_useropt=no ;; 1027ecce36beSmrg 1028ecce36beSmrg -docdir | --docdir | --docdi | --doc | --do) 1029ecce36beSmrg ac_prev=docdir ;; 1030ecce36beSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1031ecce36beSmrg docdir=$ac_optarg ;; 1032ecce36beSmrg 1033ecce36beSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1034ecce36beSmrg ac_prev=dvidir ;; 1035ecce36beSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1036ecce36beSmrg dvidir=$ac_optarg ;; 1037ecce36beSmrg 1038ecce36beSmrg -enable-* | --enable-*) 1039ecce36beSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1040ecce36beSmrg # Reject names that are not valid shell variable names. 1041ecce36beSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1042ecce36beSmrg as_fn_error "invalid feature name: $ac_useropt" 1043ecce36beSmrg ac_useropt_orig=$ac_useropt 1044ecce36beSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1045ecce36beSmrg case $ac_user_opts in 1046ecce36beSmrg *" 1047ecce36beSmrg"enable_$ac_useropt" 1048ecce36beSmrg"*) ;; 1049ecce36beSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1050ecce36beSmrg ac_unrecognized_sep=', ';; 1051ecce36beSmrg esac 1052ecce36beSmrg eval enable_$ac_useropt=\$ac_optarg ;; 1053ecce36beSmrg 1054ecce36beSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1055ecce36beSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1056ecce36beSmrg | --exec | --exe | --ex) 1057ecce36beSmrg ac_prev=exec_prefix ;; 1058ecce36beSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1059ecce36beSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1060ecce36beSmrg | --exec=* | --exe=* | --ex=*) 1061ecce36beSmrg exec_prefix=$ac_optarg ;; 1062ecce36beSmrg 1063ecce36beSmrg -gas | --gas | --ga | --g) 1064ecce36beSmrg # Obsolete; use --with-gas. 1065ecce36beSmrg with_gas=yes ;; 1066ecce36beSmrg 1067ecce36beSmrg -help | --help | --hel | --he | -h) 1068ecce36beSmrg ac_init_help=long ;; 1069ecce36beSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1070ecce36beSmrg ac_init_help=recursive ;; 1071ecce36beSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1072ecce36beSmrg ac_init_help=short ;; 1073ecce36beSmrg 1074ecce36beSmrg -host | --host | --hos | --ho) 1075ecce36beSmrg ac_prev=host_alias ;; 1076ecce36beSmrg -host=* | --host=* | --hos=* | --ho=*) 1077ecce36beSmrg host_alias=$ac_optarg ;; 1078ecce36beSmrg 1079ecce36beSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1080ecce36beSmrg ac_prev=htmldir ;; 1081ecce36beSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1082ecce36beSmrg | --ht=*) 1083ecce36beSmrg htmldir=$ac_optarg ;; 1084ecce36beSmrg 1085ecce36beSmrg -includedir | --includedir | --includedi | --included | --include \ 1086ecce36beSmrg | --includ | --inclu | --incl | --inc) 1087ecce36beSmrg ac_prev=includedir ;; 1088ecce36beSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1089ecce36beSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 1090ecce36beSmrg includedir=$ac_optarg ;; 1091ecce36beSmrg 1092ecce36beSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 1093ecce36beSmrg ac_prev=infodir ;; 1094ecce36beSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1095ecce36beSmrg infodir=$ac_optarg ;; 1096ecce36beSmrg 1097ecce36beSmrg -libdir | --libdir | --libdi | --libd) 1098ecce36beSmrg ac_prev=libdir ;; 1099ecce36beSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 1100ecce36beSmrg libdir=$ac_optarg ;; 1101ecce36beSmrg 1102ecce36beSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1103ecce36beSmrg | --libexe | --libex | --libe) 1104ecce36beSmrg ac_prev=libexecdir ;; 1105ecce36beSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1106ecce36beSmrg | --libexe=* | --libex=* | --libe=*) 1107ecce36beSmrg libexecdir=$ac_optarg ;; 1108ecce36beSmrg 1109ecce36beSmrg -localedir | --localedir | --localedi | --localed | --locale) 1110ecce36beSmrg ac_prev=localedir ;; 1111ecce36beSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1112ecce36beSmrg localedir=$ac_optarg ;; 1113ecce36beSmrg 1114ecce36beSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 1115ecce36beSmrg | --localstate | --localstat | --localsta | --localst | --locals) 1116ecce36beSmrg ac_prev=localstatedir ;; 1117ecce36beSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1118ecce36beSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1119ecce36beSmrg localstatedir=$ac_optarg ;; 1120ecce36beSmrg 1121ecce36beSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1122ecce36beSmrg ac_prev=mandir ;; 1123ecce36beSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1124ecce36beSmrg mandir=$ac_optarg ;; 1125ecce36beSmrg 1126ecce36beSmrg -nfp | --nfp | --nf) 1127ecce36beSmrg # Obsolete; use --without-fp. 1128ecce36beSmrg with_fp=no ;; 1129ecce36beSmrg 1130ecce36beSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1131ecce36beSmrg | --no-cr | --no-c | -n) 1132ecce36beSmrg no_create=yes ;; 1133ecce36beSmrg 1134ecce36beSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1135ecce36beSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1136ecce36beSmrg no_recursion=yes ;; 1137ecce36beSmrg 1138ecce36beSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1139ecce36beSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1140ecce36beSmrg | --oldin | --oldi | --old | --ol | --o) 1141ecce36beSmrg ac_prev=oldincludedir ;; 1142ecce36beSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1143ecce36beSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1144ecce36beSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1145ecce36beSmrg oldincludedir=$ac_optarg ;; 1146ecce36beSmrg 1147ecce36beSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1148ecce36beSmrg ac_prev=prefix ;; 1149ecce36beSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1150ecce36beSmrg prefix=$ac_optarg ;; 1151ecce36beSmrg 1152ecce36beSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1153ecce36beSmrg | --program-pre | --program-pr | --program-p) 1154ecce36beSmrg ac_prev=program_prefix ;; 1155ecce36beSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1156ecce36beSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1157ecce36beSmrg program_prefix=$ac_optarg ;; 1158ecce36beSmrg 1159ecce36beSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1160ecce36beSmrg | --program-suf | --program-su | --program-s) 1161ecce36beSmrg ac_prev=program_suffix ;; 1162ecce36beSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1163ecce36beSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1164ecce36beSmrg program_suffix=$ac_optarg ;; 1165ecce36beSmrg 1166ecce36beSmrg -program-transform-name | --program-transform-name \ 1167ecce36beSmrg | --program-transform-nam | --program-transform-na \ 1168ecce36beSmrg | --program-transform-n | --program-transform- \ 1169ecce36beSmrg | --program-transform | --program-transfor \ 1170ecce36beSmrg | --program-transfo | --program-transf \ 1171ecce36beSmrg | --program-trans | --program-tran \ 1172ecce36beSmrg | --progr-tra | --program-tr | --program-t) 1173ecce36beSmrg ac_prev=program_transform_name ;; 1174ecce36beSmrg -program-transform-name=* | --program-transform-name=* \ 1175ecce36beSmrg | --program-transform-nam=* | --program-transform-na=* \ 1176ecce36beSmrg | --program-transform-n=* | --program-transform-=* \ 1177ecce36beSmrg | --program-transform=* | --program-transfor=* \ 1178ecce36beSmrg | --program-transfo=* | --program-transf=* \ 1179ecce36beSmrg | --program-trans=* | --program-tran=* \ 1180ecce36beSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 1181ecce36beSmrg program_transform_name=$ac_optarg ;; 1182ecce36beSmrg 1183ecce36beSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1184ecce36beSmrg ac_prev=pdfdir ;; 1185ecce36beSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1186ecce36beSmrg pdfdir=$ac_optarg ;; 1187ecce36beSmrg 1188ecce36beSmrg -psdir | --psdir | --psdi | --psd | --ps) 1189ecce36beSmrg ac_prev=psdir ;; 1190ecce36beSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1191ecce36beSmrg psdir=$ac_optarg ;; 1192ecce36beSmrg 1193ecce36beSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1194ecce36beSmrg | -silent | --silent | --silen | --sile | --sil) 1195ecce36beSmrg silent=yes ;; 1196ecce36beSmrg 1197ecce36beSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1198ecce36beSmrg ac_prev=sbindir ;; 1199ecce36beSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1200ecce36beSmrg | --sbi=* | --sb=*) 1201ecce36beSmrg sbindir=$ac_optarg ;; 1202ecce36beSmrg 1203ecce36beSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1204ecce36beSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1205ecce36beSmrg | --sharedst | --shareds | --shared | --share | --shar \ 1206ecce36beSmrg | --sha | --sh) 1207ecce36beSmrg ac_prev=sharedstatedir ;; 1208ecce36beSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1209ecce36beSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1210ecce36beSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1211ecce36beSmrg | --sha=* | --sh=*) 1212ecce36beSmrg sharedstatedir=$ac_optarg ;; 1213ecce36beSmrg 1214ecce36beSmrg -site | --site | --sit) 1215ecce36beSmrg ac_prev=site ;; 1216ecce36beSmrg -site=* | --site=* | --sit=*) 1217ecce36beSmrg site=$ac_optarg ;; 1218ecce36beSmrg 1219ecce36beSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1220ecce36beSmrg ac_prev=srcdir ;; 1221ecce36beSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1222ecce36beSmrg srcdir=$ac_optarg ;; 1223ecce36beSmrg 1224ecce36beSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1225ecce36beSmrg | --syscon | --sysco | --sysc | --sys | --sy) 1226ecce36beSmrg ac_prev=sysconfdir ;; 1227ecce36beSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1228ecce36beSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1229ecce36beSmrg sysconfdir=$ac_optarg ;; 1230ecce36beSmrg 1231ecce36beSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 1232ecce36beSmrg ac_prev=target_alias ;; 1233ecce36beSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1234ecce36beSmrg target_alias=$ac_optarg ;; 1235ecce36beSmrg 1236ecce36beSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 1237ecce36beSmrg verbose=yes ;; 1238ecce36beSmrg 1239ecce36beSmrg -version | --version | --versio | --versi | --vers | -V) 1240ecce36beSmrg ac_init_version=: ;; 1241ecce36beSmrg 1242ecce36beSmrg -with-* | --with-*) 1243ecce36beSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1244ecce36beSmrg # Reject names that are not valid shell variable names. 1245ecce36beSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1246ecce36beSmrg as_fn_error "invalid package name: $ac_useropt" 1247ecce36beSmrg ac_useropt_orig=$ac_useropt 1248ecce36beSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1249ecce36beSmrg case $ac_user_opts in 1250ecce36beSmrg *" 1251ecce36beSmrg"with_$ac_useropt" 1252ecce36beSmrg"*) ;; 1253ecce36beSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1254ecce36beSmrg ac_unrecognized_sep=', ';; 1255ecce36beSmrg esac 1256ecce36beSmrg eval with_$ac_useropt=\$ac_optarg ;; 1257ecce36beSmrg 1258ecce36beSmrg -without-* | --without-*) 1259ecce36beSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1260ecce36beSmrg # Reject names that are not valid shell variable names. 1261ecce36beSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1262ecce36beSmrg as_fn_error "invalid package name: $ac_useropt" 1263ecce36beSmrg ac_useropt_orig=$ac_useropt 1264ecce36beSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1265ecce36beSmrg case $ac_user_opts in 1266ecce36beSmrg *" 1267ecce36beSmrg"with_$ac_useropt" 1268ecce36beSmrg"*) ;; 1269ecce36beSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1270ecce36beSmrg ac_unrecognized_sep=', ';; 1271ecce36beSmrg esac 1272ecce36beSmrg eval with_$ac_useropt=no ;; 1273ecce36beSmrg 1274ecce36beSmrg --x) 1275ecce36beSmrg # Obsolete; use --with-x. 1276ecce36beSmrg with_x=yes ;; 1277ecce36beSmrg 1278ecce36beSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1279ecce36beSmrg | --x-incl | --x-inc | --x-in | --x-i) 1280ecce36beSmrg ac_prev=x_includes ;; 1281ecce36beSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1282ecce36beSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1283ecce36beSmrg x_includes=$ac_optarg ;; 1284ecce36beSmrg 1285ecce36beSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1286ecce36beSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1287ecce36beSmrg ac_prev=x_libraries ;; 1288ecce36beSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1289ecce36beSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1290ecce36beSmrg x_libraries=$ac_optarg ;; 1291ecce36beSmrg 1292ecce36beSmrg -*) as_fn_error "unrecognized option: \`$ac_option' 1293ecce36beSmrgTry \`$0 --help' for more information." 1294ecce36beSmrg ;; 1295ecce36beSmrg 1296ecce36beSmrg *=*) 1297ecce36beSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1298ecce36beSmrg # Reject names that are not valid shell variable names. 1299ecce36beSmrg case $ac_envvar in #( 1300ecce36beSmrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 1301ecce36beSmrg as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1302ecce36beSmrg esac 1303ecce36beSmrg eval $ac_envvar=\$ac_optarg 1304ecce36beSmrg export $ac_envvar ;; 1305ecce36beSmrg 1306ecce36beSmrg *) 1307ecce36beSmrg # FIXME: should be removed in autoconf 3.0. 1308ecce36beSmrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1309ecce36beSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1310ecce36beSmrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1311ecce36beSmrg : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1312ecce36beSmrg ;; 1313ecce36beSmrg 1314ecce36beSmrg esac 1315ecce36beSmrgdone 1316ecce36beSmrg 1317ecce36beSmrgif test -n "$ac_prev"; then 1318ecce36beSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1319ecce36beSmrg as_fn_error "missing argument to $ac_option" 1320ecce36beSmrgfi 1321ecce36beSmrg 1322ecce36beSmrgif test -n "$ac_unrecognized_opts"; then 1323ecce36beSmrg case $enable_option_checking in 1324ecce36beSmrg no) ;; 1325ecce36beSmrg fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1326ecce36beSmrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1327ecce36beSmrg esac 1328ecce36beSmrgfi 1329ecce36beSmrg 1330ecce36beSmrg# Check all directory arguments for consistency. 1331ecce36beSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1332ecce36beSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1333ecce36beSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1334ecce36beSmrg libdir localedir mandir 1335ecce36beSmrgdo 1336ecce36beSmrg eval ac_val=\$$ac_var 1337ecce36beSmrg # Remove trailing slashes. 1338ecce36beSmrg case $ac_val in 1339ecce36beSmrg */ ) 1340ecce36beSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1341ecce36beSmrg eval $ac_var=\$ac_val;; 1342ecce36beSmrg esac 1343ecce36beSmrg # Be sure to have absolute directory names. 1344ecce36beSmrg case $ac_val in 1345ecce36beSmrg [\\/$]* | ?:[\\/]* ) continue;; 1346ecce36beSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1347ecce36beSmrg esac 1348ecce36beSmrg as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1349ecce36beSmrgdone 1350ecce36beSmrg 1351ecce36beSmrg# There might be people who depend on the old broken behavior: `$host' 1352ecce36beSmrg# used to hold the argument of --host etc. 1353ecce36beSmrg# FIXME: To remove some day. 1354ecce36beSmrgbuild=$build_alias 1355ecce36beSmrghost=$host_alias 1356ecce36beSmrgtarget=$target_alias 1357ecce36beSmrg 1358ecce36beSmrg# FIXME: To remove some day. 1359ecce36beSmrgif test "x$host_alias" != x; then 1360ecce36beSmrg if test "x$build_alias" = x; then 1361ecce36beSmrg cross_compiling=maybe 1362ecce36beSmrg $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1363ecce36beSmrg If a cross compiler is detected then cross compile mode will be used." >&2 1364ecce36beSmrg elif test "x$build_alias" != "x$host_alias"; then 1365ecce36beSmrg cross_compiling=yes 1366ecce36beSmrg fi 1367ecce36beSmrgfi 1368ecce36beSmrg 1369ecce36beSmrgac_tool_prefix= 1370ecce36beSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 1371ecce36beSmrg 1372ecce36beSmrgtest "$silent" = yes && exec 6>/dev/null 1373ecce36beSmrg 1374ecce36beSmrg 1375ecce36beSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 1376ecce36beSmrgac_ls_di=`ls -di .` && 1377ecce36beSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1378ecce36beSmrg as_fn_error "working directory cannot be determined" 1379ecce36beSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1380ecce36beSmrg as_fn_error "pwd does not report name of working directory" 1381ecce36beSmrg 1382ecce36beSmrg 1383ecce36beSmrg# Find the source files, if location was not specified. 1384ecce36beSmrgif test -z "$srcdir"; then 1385ecce36beSmrg ac_srcdir_defaulted=yes 1386ecce36beSmrg # Try the directory containing this script, then the parent directory. 1387ecce36beSmrg ac_confdir=`$as_dirname -- "$as_myself" || 1388ecce36beSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1389ecce36beSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1390ecce36beSmrg X"$as_myself" : 'X\(//\)$' \| \ 1391ecce36beSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1392ecce36beSmrg$as_echo X"$as_myself" | 1393ecce36beSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1394ecce36beSmrg s//\1/ 1395ecce36beSmrg q 1396ecce36beSmrg } 1397ecce36beSmrg /^X\(\/\/\)[^/].*/{ 1398ecce36beSmrg s//\1/ 1399ecce36beSmrg q 1400ecce36beSmrg } 1401ecce36beSmrg /^X\(\/\/\)$/{ 1402ecce36beSmrg s//\1/ 1403ecce36beSmrg q 1404ecce36beSmrg } 1405ecce36beSmrg /^X\(\/\).*/{ 1406ecce36beSmrg s//\1/ 1407ecce36beSmrg q 1408ecce36beSmrg } 1409ecce36beSmrg s/.*/./; q'` 1410ecce36beSmrg srcdir=$ac_confdir 1411ecce36beSmrg if test ! -r "$srcdir/$ac_unique_file"; then 1412ecce36beSmrg srcdir=.. 1413ecce36beSmrg fi 1414ecce36beSmrgelse 1415ecce36beSmrg ac_srcdir_defaulted=no 1416ecce36beSmrgfi 1417ecce36beSmrgif test ! -r "$srcdir/$ac_unique_file"; then 1418ecce36beSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1419ecce36beSmrg as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1420ecce36beSmrgfi 1421ecce36beSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1422ecce36beSmrgac_abs_confdir=`( 1423ecce36beSmrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1424ecce36beSmrg pwd)` 1425ecce36beSmrg# When building in place, set srcdir=. 1426ecce36beSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1427ecce36beSmrg srcdir=. 1428ecce36beSmrgfi 1429ecce36beSmrg# Remove unnecessary trailing slashes from srcdir. 1430ecce36beSmrg# Double slashes in file names in object file debugging info 1431ecce36beSmrg# mess up M-x gdb in Emacs. 1432ecce36beSmrgcase $srcdir in 1433ecce36beSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1434ecce36beSmrgesac 1435ecce36beSmrgfor ac_var in $ac_precious_vars; do 1436ecce36beSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1437ecce36beSmrg eval ac_env_${ac_var}_value=\$${ac_var} 1438ecce36beSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1439ecce36beSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1440ecce36beSmrgdone 1441ecce36beSmrg 1442ecce36beSmrg# 1443ecce36beSmrg# Report the --help message. 1444ecce36beSmrg# 1445ecce36beSmrgif test "$ac_init_help" = "long"; then 1446ecce36beSmrg # Omit some internal or obsolete options to make the list less imposing. 1447ecce36beSmrg # This message is too long to be a string in the A/UX 3.1 sh. 1448ecce36beSmrg cat <<_ACEOF 1449ecce36beSmrg\`configure' configures xcb-util 0.3.6 to adapt to many kinds of systems. 1450ecce36beSmrg 1451ecce36beSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 1452ecce36beSmrg 1453ecce36beSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1454ecce36beSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 1455ecce36beSmrg 1456ecce36beSmrgDefaults for the options are specified in brackets. 1457ecce36beSmrg 1458ecce36beSmrgConfiguration: 1459ecce36beSmrg -h, --help display this help and exit 1460ecce36beSmrg --help=short display options specific to this package 1461ecce36beSmrg --help=recursive display the short help of all the included packages 1462ecce36beSmrg -V, --version display version information and exit 1463ecce36beSmrg -q, --quiet, --silent do not print \`checking...' messages 1464ecce36beSmrg --cache-file=FILE cache test results in FILE [disabled] 1465ecce36beSmrg -C, --config-cache alias for \`--cache-file=config.cache' 1466ecce36beSmrg -n, --no-create do not create output files 1467ecce36beSmrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1468ecce36beSmrg 1469ecce36beSmrgInstallation directories: 1470ecce36beSmrg --prefix=PREFIX install architecture-independent files in PREFIX 1471ecce36beSmrg [$ac_default_prefix] 1472ecce36beSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1473ecce36beSmrg [PREFIX] 1474ecce36beSmrg 1475ecce36beSmrgBy default, \`make install' will install all the files in 1476ecce36beSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1477ecce36beSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1478ecce36beSmrgfor instance \`--prefix=\$HOME'. 1479ecce36beSmrg 1480ecce36beSmrgFor better control, use the options below. 1481ecce36beSmrg 1482ecce36beSmrgFine tuning of the installation directories: 1483ecce36beSmrg --bindir=DIR user executables [EPREFIX/bin] 1484ecce36beSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1485ecce36beSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 1486ecce36beSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1487ecce36beSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1488ecce36beSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1489ecce36beSmrg --libdir=DIR object code libraries [EPREFIX/lib] 1490ecce36beSmrg --includedir=DIR C header files [PREFIX/include] 1491ecce36beSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1492ecce36beSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1493ecce36beSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1494ecce36beSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 1495ecce36beSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1496ecce36beSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 1497ecce36beSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/xcb-util] 1498ecce36beSmrg --htmldir=DIR html documentation [DOCDIR] 1499ecce36beSmrg --dvidir=DIR dvi documentation [DOCDIR] 1500ecce36beSmrg --pdfdir=DIR pdf documentation [DOCDIR] 1501ecce36beSmrg --psdir=DIR ps documentation [DOCDIR] 1502ecce36beSmrg_ACEOF 1503ecce36beSmrg 1504ecce36beSmrg cat <<\_ACEOF 1505ecce36beSmrg 1506ecce36beSmrgProgram names: 1507ecce36beSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 1508ecce36beSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 1509ecce36beSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1510ecce36beSmrg 1511ecce36beSmrgSystem types: 1512ecce36beSmrg --build=BUILD configure for building on BUILD [guessed] 1513ecce36beSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 1514ecce36beSmrg_ACEOF 1515ecce36beSmrgfi 1516ecce36beSmrg 1517ecce36beSmrgif test -n "$ac_init_help"; then 1518ecce36beSmrg case $ac_init_help in 1519ecce36beSmrg short | recursive ) echo "Configuration of xcb-util 0.3.6:";; 1520ecce36beSmrg esac 1521ecce36beSmrg cat <<\_ACEOF 1522ecce36beSmrg 1523ecce36beSmrgOptional Features: 1524ecce36beSmrg --disable-option-checking ignore unrecognized --enable/--with options 1525ecce36beSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1526ecce36beSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1527ecce36beSmrg --disable-dependency-tracking speeds up one-time build 1528ecce36beSmrg --enable-dependency-tracking do not reject slow dependency extractors 1529ecce36beSmrg --enable-shared[=PKGS] build shared libraries [default=yes] 1530ecce36beSmrg --enable-static[=PKGS] build static libraries [default=yes] 1531ecce36beSmrg --enable-fast-install[=PKGS] 1532ecce36beSmrg optimize for fast installation [default=yes] 1533ecce36beSmrg --disable-libtool-lock avoid locking (might break parallel builds) 1534ecce36beSmrg 1535ecce36beSmrgOptional Packages: 1536ecce36beSmrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1537ecce36beSmrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1538ecce36beSmrg --with-pic try to use only PIC/non-PIC objects [default=use 1539ecce36beSmrg both] 1540ecce36beSmrg --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1541ecce36beSmrg 1542ecce36beSmrgSome influential environment variables: 1543ecce36beSmrg CC C compiler command 1544ecce36beSmrg CFLAGS C compiler flags 1545ecce36beSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1546ecce36beSmrg nonstandard directory <lib dir> 1547ecce36beSmrg LIBS libraries to pass to the linker, e.g. -l<library> 1548ecce36beSmrg CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1549ecce36beSmrg you have headers in a nonstandard directory <include dir> 1550ecce36beSmrg CPP C preprocessor 1551ecce36beSmrg PKG_CONFIG path to pkg-config utility 1552ecce36beSmrg XCB_CFLAGS C compiler flags for XCB, overriding pkg-config 1553ecce36beSmrg XCB_LIBS linker flags for XCB, overriding pkg-config 1554ecce36beSmrg XCB_SHM_CFLAGS 1555ecce36beSmrg C compiler flags for XCB_SHM, overriding pkg-config 1556ecce36beSmrg XCB_SHM_LIBS 1557ecce36beSmrg linker flags for XCB_SHM, overriding pkg-config 1558ecce36beSmrg XCB_RENDER_CFLAGS 1559ecce36beSmrg C compiler flags for XCB_RENDER, overriding pkg-config 1560ecce36beSmrg XCB_RENDER_LIBS 1561ecce36beSmrg linker flags for XCB_RENDER, overriding pkg-config 1562ecce36beSmrg XPROTO_CFLAGS 1563ecce36beSmrg C compiler flags for XPROTO, overriding pkg-config 1564ecce36beSmrg XPROTO_LIBS linker flags for XPROTO, overriding pkg-config 1565ecce36beSmrg 1566ecce36beSmrgUse these variables to override the choices made by `configure' or to help 1567ecce36beSmrgit to find libraries and programs with nonstandard names/locations. 1568ecce36beSmrg 1569ecce36beSmrgReport bugs to <xcb@lists.freedesktop.org>. 1570ecce36beSmrg_ACEOF 1571ecce36beSmrgac_status=$? 1572ecce36beSmrgfi 1573ecce36beSmrg 1574ecce36beSmrgif test "$ac_init_help" = "recursive"; then 1575ecce36beSmrg # If there are subdirs, report their specific --help. 1576ecce36beSmrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1577ecce36beSmrg test -d "$ac_dir" || 1578ecce36beSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1579ecce36beSmrg continue 1580ecce36beSmrg ac_builddir=. 1581ecce36beSmrg 1582ecce36beSmrgcase "$ac_dir" in 1583ecce36beSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1584ecce36beSmrg*) 1585ecce36beSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1586ecce36beSmrg # A ".." for each directory in $ac_dir_suffix. 1587ecce36beSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1588ecce36beSmrg case $ac_top_builddir_sub in 1589ecce36beSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1590ecce36beSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1591ecce36beSmrg esac ;; 1592ecce36beSmrgesac 1593ecce36beSmrgac_abs_top_builddir=$ac_pwd 1594ecce36beSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1595ecce36beSmrg# for backward compatibility: 1596ecce36beSmrgac_top_builddir=$ac_top_build_prefix 1597ecce36beSmrg 1598ecce36beSmrgcase $srcdir in 1599ecce36beSmrg .) # We are building in place. 1600ecce36beSmrg ac_srcdir=. 1601ecce36beSmrg ac_top_srcdir=$ac_top_builddir_sub 1602ecce36beSmrg ac_abs_top_srcdir=$ac_pwd ;; 1603ecce36beSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 1604ecce36beSmrg ac_srcdir=$srcdir$ac_dir_suffix; 1605ecce36beSmrg ac_top_srcdir=$srcdir 1606ecce36beSmrg ac_abs_top_srcdir=$srcdir ;; 1607ecce36beSmrg *) # Relative name. 1608ecce36beSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1609ecce36beSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1610ecce36beSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1611ecce36beSmrgesac 1612ecce36beSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1613ecce36beSmrg 1614ecce36beSmrg cd "$ac_dir" || { ac_status=$?; continue; } 1615ecce36beSmrg # Check for guested configure. 1616ecce36beSmrg if test -f "$ac_srcdir/configure.gnu"; then 1617ecce36beSmrg echo && 1618ecce36beSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1619ecce36beSmrg elif test -f "$ac_srcdir/configure"; then 1620ecce36beSmrg echo && 1621ecce36beSmrg $SHELL "$ac_srcdir/configure" --help=recursive 1622ecce36beSmrg else 1623ecce36beSmrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1624ecce36beSmrg fi || ac_status=$? 1625ecce36beSmrg cd "$ac_pwd" || { ac_status=$?; break; } 1626ecce36beSmrg done 1627ecce36beSmrgfi 1628ecce36beSmrg 1629ecce36beSmrgtest -n "$ac_init_help" && exit $ac_status 1630ecce36beSmrgif $ac_init_version; then 1631ecce36beSmrg cat <<\_ACEOF 1632ecce36beSmrgxcb-util configure 0.3.6 1633ecce36beSmrggenerated by GNU Autoconf 2.64 1634ecce36beSmrg 1635ecce36beSmrgCopyright (C) 2009 Free Software Foundation, Inc. 1636ecce36beSmrgThis configure script is free software; the Free Software Foundation 1637ecce36beSmrggives unlimited permission to copy, distribute and modify it. 1638ecce36beSmrg_ACEOF 1639ecce36beSmrg exit 1640ecce36beSmrgfi 1641ecce36beSmrg 1642ecce36beSmrg## ------------------------ ## 1643ecce36beSmrg## Autoconf initialization. ## 1644ecce36beSmrg## ------------------------ ## 1645ecce36beSmrg 1646ecce36beSmrg# ac_fn_c_try_compile LINENO 1647ecce36beSmrg# -------------------------- 1648ecce36beSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 1649ecce36beSmrgac_fn_c_try_compile () 1650ecce36beSmrg{ 1651ecce36beSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1652ecce36beSmrg rm -f conftest.$ac_objext 1653ecce36beSmrg if { { ac_try="$ac_compile" 1654ecce36beSmrgcase "(($ac_try" in 1655ecce36beSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1656ecce36beSmrg *) ac_try_echo=$ac_try;; 1657ecce36beSmrgesac 1658ecce36beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1659ecce36beSmrg$as_echo "$ac_try_echo"; } >&5 1660ecce36beSmrg (eval "$ac_compile") 2>conftest.err 1661ecce36beSmrg ac_status=$? 1662ecce36beSmrg if test -s conftest.err; then 1663ecce36beSmrg grep -v '^ *+' conftest.err >conftest.er1 1664ecce36beSmrg cat conftest.er1 >&5 1665ecce36beSmrg mv -f conftest.er1 conftest.err 1666ecce36beSmrg fi 1667ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1668ecce36beSmrg test $ac_status = 0; } && { 1669ecce36beSmrg test -z "$ac_c_werror_flag" || 1670ecce36beSmrg test ! -s conftest.err 1671ecce36beSmrg } && test -s conftest.$ac_objext; then : 1672ecce36beSmrg ac_retval=0 1673ecce36beSmrgelse 1674ecce36beSmrg $as_echo "$as_me: failed program was:" >&5 1675ecce36beSmrgsed 's/^/| /' conftest.$ac_ext >&5 1676ecce36beSmrg 1677ecce36beSmrg ac_retval=1 1678ecce36beSmrgfi 1679ecce36beSmrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1680ecce36beSmrg return $ac_retval 1681ecce36beSmrg 1682ecce36beSmrg} # ac_fn_c_try_compile 1683ecce36beSmrg 1684ecce36beSmrg# ac_fn_c_try_link LINENO 1685ecce36beSmrg# ----------------------- 1686ecce36beSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. 1687ecce36beSmrgac_fn_c_try_link () 1688ecce36beSmrg{ 1689ecce36beSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690ecce36beSmrg rm -f conftest.$ac_objext conftest$ac_exeext 1691ecce36beSmrg if { { ac_try="$ac_link" 1692ecce36beSmrgcase "(($ac_try" in 1693ecce36beSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1694ecce36beSmrg *) ac_try_echo=$ac_try;; 1695ecce36beSmrgesac 1696ecce36beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1697ecce36beSmrg$as_echo "$ac_try_echo"; } >&5 1698ecce36beSmrg (eval "$ac_link") 2>conftest.err 1699ecce36beSmrg ac_status=$? 1700ecce36beSmrg if test -s conftest.err; then 1701ecce36beSmrg grep -v '^ *+' conftest.err >conftest.er1 1702ecce36beSmrg cat conftest.er1 >&5 1703ecce36beSmrg mv -f conftest.er1 conftest.err 1704ecce36beSmrg fi 1705ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1706ecce36beSmrg test $ac_status = 0; } && { 1707ecce36beSmrg test -z "$ac_c_werror_flag" || 1708ecce36beSmrg test ! -s conftest.err 1709ecce36beSmrg } && test -s conftest$ac_exeext && { 1710ecce36beSmrg test "$cross_compiling" = yes || 1711ecce36beSmrg $as_test_x conftest$ac_exeext 1712ecce36beSmrg }; then : 1713ecce36beSmrg ac_retval=0 1714ecce36beSmrgelse 1715ecce36beSmrg $as_echo "$as_me: failed program was:" >&5 1716ecce36beSmrgsed 's/^/| /' conftest.$ac_ext >&5 1717ecce36beSmrg 1718ecce36beSmrg ac_retval=1 1719ecce36beSmrgfi 1720ecce36beSmrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1721ecce36beSmrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1722ecce36beSmrg # interfere with the next link command; also delete a directory that is 1723ecce36beSmrg # left behind by Apple's compiler. We do this before executing the actions. 1724ecce36beSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1725ecce36beSmrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1726ecce36beSmrg return $ac_retval 1727ecce36beSmrg 1728ecce36beSmrg} # ac_fn_c_try_link 1729ecce36beSmrg 1730ecce36beSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1731ecce36beSmrg# ------------------------------------------------------- 1732ecce36beSmrg# Tests whether HEADER exists and can be compiled using the include files in 1733ecce36beSmrg# INCLUDES, setting the cache variable VAR accordingly. 1734ecce36beSmrgac_fn_c_check_header_compile () 1735ecce36beSmrg{ 1736ecce36beSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1737ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1738ecce36beSmrg$as_echo_n "checking for $2... " >&6; } 1739ecce36beSmrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1740ecce36beSmrg $as_echo_n "(cached) " >&6 1741ecce36beSmrgelse 1742ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1743ecce36beSmrg/* end confdefs.h. */ 1744ecce36beSmrg$4 1745ecce36beSmrg#include <$2> 1746ecce36beSmrg_ACEOF 1747ecce36beSmrgif ac_fn_c_try_compile "$LINENO"; then : 1748ecce36beSmrg eval "$3=yes" 1749ecce36beSmrgelse 1750ecce36beSmrg eval "$3=no" 1751ecce36beSmrgfi 1752ecce36beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1753ecce36beSmrgfi 1754ecce36beSmrgeval ac_res=\$$3 1755ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1756ecce36beSmrg$as_echo "$ac_res" >&6; } 1757ecce36beSmrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1758ecce36beSmrg 1759ecce36beSmrg} # ac_fn_c_check_header_compile 1760ecce36beSmrg 1761ecce36beSmrg# ac_fn_c_try_cpp LINENO 1762ecce36beSmrg# ---------------------- 1763ecce36beSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1764ecce36beSmrgac_fn_c_try_cpp () 1765ecce36beSmrg{ 1766ecce36beSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1767ecce36beSmrg if { { ac_try="$ac_cpp conftest.$ac_ext" 1768ecce36beSmrgcase "(($ac_try" in 1769ecce36beSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1770ecce36beSmrg *) ac_try_echo=$ac_try;; 1771ecce36beSmrgesac 1772ecce36beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1773ecce36beSmrg$as_echo "$ac_try_echo"; } >&5 1774ecce36beSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1775ecce36beSmrg ac_status=$? 1776ecce36beSmrg if test -s conftest.err; then 1777ecce36beSmrg grep -v '^ *+' conftest.err >conftest.er1 1778ecce36beSmrg cat conftest.er1 >&5 1779ecce36beSmrg mv -f conftest.er1 conftest.err 1780ecce36beSmrg fi 1781ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1782ecce36beSmrg test $ac_status = 0; } >/dev/null && { 1783ecce36beSmrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1784ecce36beSmrg test ! -s conftest.err 1785ecce36beSmrg }; then : 1786ecce36beSmrg ac_retval=0 1787ecce36beSmrgelse 1788ecce36beSmrg $as_echo "$as_me: failed program was:" >&5 1789ecce36beSmrgsed 's/^/| /' conftest.$ac_ext >&5 1790ecce36beSmrg 1791ecce36beSmrg ac_retval=1 1792ecce36beSmrgfi 1793ecce36beSmrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1794ecce36beSmrg return $ac_retval 1795ecce36beSmrg 1796ecce36beSmrg} # ac_fn_c_try_cpp 1797ecce36beSmrg 1798ecce36beSmrg# ac_fn_c_try_run LINENO 1799ecce36beSmrg# ---------------------- 1800ecce36beSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1801ecce36beSmrg# that executables *can* be run. 1802ecce36beSmrgac_fn_c_try_run () 1803ecce36beSmrg{ 1804ecce36beSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1805ecce36beSmrg if { { ac_try="$ac_link" 1806ecce36beSmrgcase "(($ac_try" in 1807ecce36beSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1808ecce36beSmrg *) ac_try_echo=$ac_try;; 1809ecce36beSmrgesac 1810ecce36beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1811ecce36beSmrg$as_echo "$ac_try_echo"; } >&5 1812ecce36beSmrg (eval "$ac_link") 2>&5 1813ecce36beSmrg ac_status=$? 1814ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1815ecce36beSmrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1816ecce36beSmrg { { case "(($ac_try" in 1817ecce36beSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1818ecce36beSmrg *) ac_try_echo=$ac_try;; 1819ecce36beSmrgesac 1820ecce36beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1821ecce36beSmrg$as_echo "$ac_try_echo"; } >&5 1822ecce36beSmrg (eval "$ac_try") 2>&5 1823ecce36beSmrg ac_status=$? 1824ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1825ecce36beSmrg test $ac_status = 0; }; }; then : 1826ecce36beSmrg ac_retval=0 1827ecce36beSmrgelse 1828ecce36beSmrg $as_echo "$as_me: program exited with status $ac_status" >&5 1829ecce36beSmrg $as_echo "$as_me: failed program was:" >&5 1830ecce36beSmrgsed 's/^/| /' conftest.$ac_ext >&5 1831ecce36beSmrg 1832ecce36beSmrg ac_retval=$ac_status 1833ecce36beSmrgfi 1834ecce36beSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1835ecce36beSmrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1836ecce36beSmrg return $ac_retval 1837ecce36beSmrg 1838ecce36beSmrg} # ac_fn_c_try_run 1839ecce36beSmrg 1840ecce36beSmrg# ac_fn_c_check_func LINENO FUNC VAR 1841ecce36beSmrg# ---------------------------------- 1842ecce36beSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 1843ecce36beSmrgac_fn_c_check_func () 1844ecce36beSmrg{ 1845ecce36beSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1846ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1847ecce36beSmrg$as_echo_n "checking for $2... " >&6; } 1848ecce36beSmrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1849ecce36beSmrg $as_echo_n "(cached) " >&6 1850ecce36beSmrgelse 1851ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1852ecce36beSmrg/* end confdefs.h. */ 1853ecce36beSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1854ecce36beSmrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1855ecce36beSmrg#define $2 innocuous_$2 1856ecce36beSmrg 1857ecce36beSmrg/* System header to define __stub macros and hopefully few prototypes, 1858ecce36beSmrg which can conflict with char $2 (); below. 1859ecce36beSmrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1860ecce36beSmrg <limits.h> exists even on freestanding compilers. */ 1861ecce36beSmrg 1862ecce36beSmrg#ifdef __STDC__ 1863ecce36beSmrg# include <limits.h> 1864ecce36beSmrg#else 1865ecce36beSmrg# include <assert.h> 1866ecce36beSmrg#endif 1867ecce36beSmrg 1868ecce36beSmrg#undef $2 1869ecce36beSmrg 1870ecce36beSmrg/* Override any GCC internal prototype to avoid an error. 1871ecce36beSmrg Use char because int might match the return type of a GCC 1872ecce36beSmrg builtin and then its argument prototype would still apply. */ 1873ecce36beSmrg#ifdef __cplusplus 1874ecce36beSmrgextern "C" 1875ecce36beSmrg#endif 1876ecce36beSmrgchar $2 (); 1877ecce36beSmrg/* The GNU C library defines this for functions which it implements 1878ecce36beSmrg to always fail with ENOSYS. Some functions are actually named 1879ecce36beSmrg something starting with __ and the normal name is an alias. */ 1880ecce36beSmrg#if defined __stub_$2 || defined __stub___$2 1881ecce36beSmrgchoke me 1882ecce36beSmrg#endif 1883ecce36beSmrg 1884ecce36beSmrgint 1885ecce36beSmrgmain () 1886ecce36beSmrg{ 1887ecce36beSmrgreturn $2 (); 1888ecce36beSmrg ; 1889ecce36beSmrg return 0; 1890ecce36beSmrg} 1891ecce36beSmrg_ACEOF 1892ecce36beSmrgif ac_fn_c_try_link "$LINENO"; then : 1893ecce36beSmrg eval "$3=yes" 1894ecce36beSmrgelse 1895ecce36beSmrg eval "$3=no" 1896ecce36beSmrgfi 1897ecce36beSmrgrm -f core conftest.err conftest.$ac_objext \ 1898ecce36beSmrg conftest$ac_exeext conftest.$ac_ext 1899ecce36beSmrgfi 1900ecce36beSmrgeval ac_res=\$$3 1901ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1902ecce36beSmrg$as_echo "$ac_res" >&6; } 1903ecce36beSmrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1904ecce36beSmrg 1905ecce36beSmrg} # ac_fn_c_check_func 1906ecce36beSmrg 1907ecce36beSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR 1908ecce36beSmrg# ------------------------------------ 1909ecce36beSmrg# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 1910ecce36beSmrgac_fn_c_check_decl () 1911ecce36beSmrg{ 1912ecce36beSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1913ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 1914ecce36beSmrg$as_echo_n "checking whether $2 is declared... " >&6; } 1915ecce36beSmrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1916ecce36beSmrg $as_echo_n "(cached) " >&6 1917ecce36beSmrgelse 1918ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1919ecce36beSmrg/* end confdefs.h. */ 1920ecce36beSmrg$4 1921ecce36beSmrgint 1922ecce36beSmrgmain () 1923ecce36beSmrg{ 1924ecce36beSmrg#ifndef $2 1925ecce36beSmrg (void) $2; 1926ecce36beSmrg#endif 1927ecce36beSmrg 1928ecce36beSmrg ; 1929ecce36beSmrg return 0; 1930ecce36beSmrg} 1931ecce36beSmrg_ACEOF 1932ecce36beSmrgif ac_fn_c_try_compile "$LINENO"; then : 1933ecce36beSmrg eval "$3=yes" 1934ecce36beSmrgelse 1935ecce36beSmrg eval "$3=no" 1936ecce36beSmrgfi 1937ecce36beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1938ecce36beSmrgfi 1939ecce36beSmrgeval ac_res=\$$3 1940ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1941ecce36beSmrg$as_echo "$ac_res" >&6; } 1942ecce36beSmrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1943ecce36beSmrg 1944ecce36beSmrg} # ac_fn_c_check_decl 1945ecce36beSmrg 1946ecce36beSmrg# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1947ecce36beSmrg# ------------------------------------------- 1948ecce36beSmrg# Tests whether TYPE exists after having included INCLUDES, setting cache 1949ecce36beSmrg# variable VAR accordingly. 1950ecce36beSmrgac_fn_c_check_type () 1951ecce36beSmrg{ 1952ecce36beSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1953ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1954ecce36beSmrg$as_echo_n "checking for $2... " >&6; } 1955ecce36beSmrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1956ecce36beSmrg $as_echo_n "(cached) " >&6 1957ecce36beSmrgelse 1958ecce36beSmrg eval "$3=no" 1959ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1960ecce36beSmrg/* end confdefs.h. */ 1961ecce36beSmrg$4 1962ecce36beSmrgint 1963ecce36beSmrgmain () 1964ecce36beSmrg{ 1965ecce36beSmrgif (sizeof ($2)) 1966ecce36beSmrg return 0; 1967ecce36beSmrg ; 1968ecce36beSmrg return 0; 1969ecce36beSmrg} 1970ecce36beSmrg_ACEOF 1971ecce36beSmrgif ac_fn_c_try_compile "$LINENO"; then : 1972ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1973ecce36beSmrg/* end confdefs.h. */ 1974ecce36beSmrg$4 1975ecce36beSmrgint 1976ecce36beSmrgmain () 1977ecce36beSmrg{ 1978ecce36beSmrgif (sizeof (($2))) 1979ecce36beSmrg return 0; 1980ecce36beSmrg ; 1981ecce36beSmrg return 0; 1982ecce36beSmrg} 1983ecce36beSmrg_ACEOF 1984ecce36beSmrgif ac_fn_c_try_compile "$LINENO"; then : 1985ecce36beSmrg 1986ecce36beSmrgelse 1987ecce36beSmrg eval "$3=yes" 1988ecce36beSmrgfi 1989ecce36beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1990ecce36beSmrgfi 1991ecce36beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1992ecce36beSmrgfi 1993ecce36beSmrgeval ac_res=\$$3 1994ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1995ecce36beSmrg$as_echo "$ac_res" >&6; } 1996ecce36beSmrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1997ecce36beSmrg 1998ecce36beSmrg} # ac_fn_c_check_type 1999ecce36beSmrgcat >config.log <<_ACEOF 2000ecce36beSmrgThis file contains any messages produced by compilers while 2001ecce36beSmrgrunning configure, to aid debugging if configure makes a mistake. 2002ecce36beSmrg 2003ecce36beSmrgIt was created by xcb-util $as_me 0.3.6, which was 2004ecce36beSmrggenerated by GNU Autoconf 2.64. Invocation command line was 2005ecce36beSmrg 2006ecce36beSmrg $ $0 $@ 2007ecce36beSmrg 2008ecce36beSmrg_ACEOF 2009ecce36beSmrgexec 5>>config.log 2010ecce36beSmrg{ 2011ecce36beSmrgcat <<_ASUNAME 2012ecce36beSmrg## --------- ## 2013ecce36beSmrg## Platform. ## 2014ecce36beSmrg## --------- ## 2015ecce36beSmrg 2016ecce36beSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2017ecce36beSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 2018ecce36beSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 2019ecce36beSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 2020ecce36beSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 2021ecce36beSmrg 2022ecce36beSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2023ecce36beSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2024ecce36beSmrg 2025ecce36beSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2026ecce36beSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2027ecce36beSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2028ecce36beSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2029ecce36beSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2030ecce36beSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2031ecce36beSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2032ecce36beSmrg 2033ecce36beSmrg_ASUNAME 2034ecce36beSmrg 2035ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2036ecce36beSmrgfor as_dir in $PATH 2037ecce36beSmrgdo 2038ecce36beSmrg IFS=$as_save_IFS 2039ecce36beSmrg test -z "$as_dir" && as_dir=. 2040ecce36beSmrg $as_echo "PATH: $as_dir" 2041ecce36beSmrg done 2042ecce36beSmrgIFS=$as_save_IFS 2043ecce36beSmrg 2044ecce36beSmrg} >&5 2045ecce36beSmrg 2046ecce36beSmrgcat >&5 <<_ACEOF 2047ecce36beSmrg 2048ecce36beSmrg 2049ecce36beSmrg## ----------- ## 2050ecce36beSmrg## Core tests. ## 2051ecce36beSmrg## ----------- ## 2052ecce36beSmrg 2053ecce36beSmrg_ACEOF 2054ecce36beSmrg 2055ecce36beSmrg 2056ecce36beSmrg# Keep a trace of the command line. 2057ecce36beSmrg# Strip out --no-create and --no-recursion so they do not pile up. 2058ecce36beSmrg# Strip out --silent because we don't want to record it for future runs. 2059ecce36beSmrg# Also quote any args containing shell meta-characters. 2060ecce36beSmrg# Make two passes to allow for proper duplicate-argument suppression. 2061ecce36beSmrgac_configure_args= 2062ecce36beSmrgac_configure_args0= 2063ecce36beSmrgac_configure_args1= 2064ecce36beSmrgac_must_keep_next=false 2065ecce36beSmrgfor ac_pass in 1 2 2066ecce36beSmrgdo 2067ecce36beSmrg for ac_arg 2068ecce36beSmrg do 2069ecce36beSmrg case $ac_arg in 2070ecce36beSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2071ecce36beSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2072ecce36beSmrg | -silent | --silent | --silen | --sile | --sil) 2073ecce36beSmrg continue ;; 2074ecce36beSmrg *\'*) 2075ecce36beSmrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2076ecce36beSmrg esac 2077ecce36beSmrg case $ac_pass in 2078ecce36beSmrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2079ecce36beSmrg 2) 2080ecce36beSmrg as_fn_append ac_configure_args1 " '$ac_arg'" 2081ecce36beSmrg if test $ac_must_keep_next = true; then 2082ecce36beSmrg ac_must_keep_next=false # Got value, back to normal. 2083ecce36beSmrg else 2084ecce36beSmrg case $ac_arg in 2085ecce36beSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 2086ecce36beSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2087ecce36beSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2088ecce36beSmrg | -with-* | --with-* | -without-* | --without-* | --x) 2089ecce36beSmrg case "$ac_configure_args0 " in 2090ecce36beSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2091ecce36beSmrg esac 2092ecce36beSmrg ;; 2093ecce36beSmrg -* ) ac_must_keep_next=true ;; 2094ecce36beSmrg esac 2095ecce36beSmrg fi 2096ecce36beSmrg as_fn_append ac_configure_args " '$ac_arg'" 2097ecce36beSmrg ;; 2098ecce36beSmrg esac 2099ecce36beSmrg done 2100ecce36beSmrgdone 2101ecce36beSmrg{ ac_configure_args0=; unset ac_configure_args0;} 2102ecce36beSmrg{ ac_configure_args1=; unset ac_configure_args1;} 2103ecce36beSmrg 2104ecce36beSmrg# When interrupted or exit'd, cleanup temporary files, and complete 2105ecce36beSmrg# config.log. We remove comments because anyway the quotes in there 2106ecce36beSmrg# would cause problems or look ugly. 2107ecce36beSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 2108ecce36beSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2109ecce36beSmrgtrap 'exit_status=$? 2110ecce36beSmrg # Save into config.log some information that might help in debugging. 2111ecce36beSmrg { 2112ecce36beSmrg echo 2113ecce36beSmrg 2114ecce36beSmrg cat <<\_ASBOX 2115ecce36beSmrg## ---------------- ## 2116ecce36beSmrg## Cache variables. ## 2117ecce36beSmrg## ---------------- ## 2118ecce36beSmrg_ASBOX 2119ecce36beSmrg echo 2120ecce36beSmrg # The following way of writing the cache mishandles newlines in values, 2121ecce36beSmrg( 2122ecce36beSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2123ecce36beSmrg eval ac_val=\$$ac_var 2124ecce36beSmrg case $ac_val in #( 2125ecce36beSmrg *${as_nl}*) 2126ecce36beSmrg case $ac_var in #( 2127ecce36beSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2128ecce36beSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2129ecce36beSmrg esac 2130ecce36beSmrg case $ac_var in #( 2131ecce36beSmrg _ | IFS | as_nl) ;; #( 2132ecce36beSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2133ecce36beSmrg *) { eval $ac_var=; unset $ac_var;} ;; 2134ecce36beSmrg esac ;; 2135ecce36beSmrg esac 2136ecce36beSmrg done 2137ecce36beSmrg (set) 2>&1 | 2138ecce36beSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2139ecce36beSmrg *${as_nl}ac_space=\ *) 2140ecce36beSmrg sed -n \ 2141ecce36beSmrg "s/'\''/'\''\\\\'\'''\''/g; 2142ecce36beSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2143ecce36beSmrg ;; #( 2144ecce36beSmrg *) 2145ecce36beSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2146ecce36beSmrg ;; 2147ecce36beSmrg esac | 2148ecce36beSmrg sort 2149ecce36beSmrg) 2150ecce36beSmrg echo 2151ecce36beSmrg 2152ecce36beSmrg cat <<\_ASBOX 2153ecce36beSmrg## ----------------- ## 2154ecce36beSmrg## Output variables. ## 2155ecce36beSmrg## ----------------- ## 2156ecce36beSmrg_ASBOX 2157ecce36beSmrg echo 2158ecce36beSmrg for ac_var in $ac_subst_vars 2159ecce36beSmrg do 2160ecce36beSmrg eval ac_val=\$$ac_var 2161ecce36beSmrg case $ac_val in 2162ecce36beSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2163ecce36beSmrg esac 2164ecce36beSmrg $as_echo "$ac_var='\''$ac_val'\''" 2165ecce36beSmrg done | sort 2166ecce36beSmrg echo 2167ecce36beSmrg 2168ecce36beSmrg if test -n "$ac_subst_files"; then 2169ecce36beSmrg cat <<\_ASBOX 2170ecce36beSmrg## ------------------- ## 2171ecce36beSmrg## File substitutions. ## 2172ecce36beSmrg## ------------------- ## 2173ecce36beSmrg_ASBOX 2174ecce36beSmrg echo 2175ecce36beSmrg for ac_var in $ac_subst_files 2176ecce36beSmrg do 2177ecce36beSmrg eval ac_val=\$$ac_var 2178ecce36beSmrg case $ac_val in 2179ecce36beSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2180ecce36beSmrg esac 2181ecce36beSmrg $as_echo "$ac_var='\''$ac_val'\''" 2182ecce36beSmrg done | sort 2183ecce36beSmrg echo 2184ecce36beSmrg fi 2185ecce36beSmrg 2186ecce36beSmrg if test -s confdefs.h; then 2187ecce36beSmrg cat <<\_ASBOX 2188ecce36beSmrg## ----------- ## 2189ecce36beSmrg## confdefs.h. ## 2190ecce36beSmrg## ----------- ## 2191ecce36beSmrg_ASBOX 2192ecce36beSmrg echo 2193ecce36beSmrg cat confdefs.h 2194ecce36beSmrg echo 2195ecce36beSmrg fi 2196ecce36beSmrg test "$ac_signal" != 0 && 2197ecce36beSmrg $as_echo "$as_me: caught signal $ac_signal" 2198ecce36beSmrg $as_echo "$as_me: exit $exit_status" 2199ecce36beSmrg } >&5 2200ecce36beSmrg rm -f core *.core core.conftest.* && 2201ecce36beSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2202ecce36beSmrg exit $exit_status 2203ecce36beSmrg' 0 2204ecce36beSmrgfor ac_signal in 1 2 13 15; do 2205ecce36beSmrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2206ecce36beSmrgdone 2207ecce36beSmrgac_signal=0 2208ecce36beSmrg 2209ecce36beSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 2210ecce36beSmrgrm -f -r conftest* confdefs.h 2211ecce36beSmrg 2212ecce36beSmrg$as_echo "/* confdefs.h */" > confdefs.h 2213ecce36beSmrg 2214ecce36beSmrg# Predefined preprocessor variables. 2215ecce36beSmrg 2216ecce36beSmrgcat >>confdefs.h <<_ACEOF 2217ecce36beSmrg#define PACKAGE_NAME "$PACKAGE_NAME" 2218ecce36beSmrg_ACEOF 2219ecce36beSmrg 2220ecce36beSmrgcat >>confdefs.h <<_ACEOF 2221ecce36beSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2222ecce36beSmrg_ACEOF 2223ecce36beSmrg 2224ecce36beSmrgcat >>confdefs.h <<_ACEOF 2225ecce36beSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 2226ecce36beSmrg_ACEOF 2227ecce36beSmrg 2228ecce36beSmrgcat >>confdefs.h <<_ACEOF 2229ecce36beSmrg#define PACKAGE_STRING "$PACKAGE_STRING" 2230ecce36beSmrg_ACEOF 2231ecce36beSmrg 2232ecce36beSmrgcat >>confdefs.h <<_ACEOF 2233ecce36beSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2234ecce36beSmrg_ACEOF 2235ecce36beSmrg 2236ecce36beSmrgcat >>confdefs.h <<_ACEOF 2237ecce36beSmrg#define PACKAGE_URL "$PACKAGE_URL" 2238ecce36beSmrg_ACEOF 2239ecce36beSmrg 2240ecce36beSmrg 2241ecce36beSmrg# Let the site file select an alternate cache file if it wants to. 2242ecce36beSmrg# Prefer an explicitly selected file to automatically selected ones. 2243ecce36beSmrgac_site_file1=NONE 2244ecce36beSmrgac_site_file2=NONE 2245ecce36beSmrgif test -n "$CONFIG_SITE"; then 2246ecce36beSmrg ac_site_file1=$CONFIG_SITE 2247ecce36beSmrgelif test "x$prefix" != xNONE; then 2248ecce36beSmrg ac_site_file1=$prefix/share/config.site 2249ecce36beSmrg ac_site_file2=$prefix/etc/config.site 2250ecce36beSmrgelse 2251ecce36beSmrg ac_site_file1=$ac_default_prefix/share/config.site 2252ecce36beSmrg ac_site_file2=$ac_default_prefix/etc/config.site 2253ecce36beSmrgfi 2254ecce36beSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 2255ecce36beSmrgdo 2256ecce36beSmrg test "x$ac_site_file" = xNONE && continue 2257ecce36beSmrg if test -r "$ac_site_file"; then 2258ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2259ecce36beSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2260ecce36beSmrg sed 's/^/| /' "$ac_site_file" >&5 2261ecce36beSmrg . "$ac_site_file" 2262ecce36beSmrg fi 2263ecce36beSmrgdone 2264ecce36beSmrg 2265ecce36beSmrgif test -r "$cache_file"; then 2266ecce36beSmrg # Some versions of bash will fail to source /dev/null (special 2267ecce36beSmrg # files actually), so we avoid doing that. 2268ecce36beSmrg if test -f "$cache_file"; then 2269ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2270ecce36beSmrg$as_echo "$as_me: loading cache $cache_file" >&6;} 2271ecce36beSmrg case $cache_file in 2272ecce36beSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 2273ecce36beSmrg *) . "./$cache_file";; 2274ecce36beSmrg esac 2275ecce36beSmrg fi 2276ecce36beSmrgelse 2277ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2278ecce36beSmrg$as_echo "$as_me: creating cache $cache_file" >&6;} 2279ecce36beSmrg >$cache_file 2280ecce36beSmrgfi 2281ecce36beSmrg 2282ecce36beSmrgas_fn_append ac_func_list " vasprintf" 2283ecce36beSmrg# Check that the precious variables saved in the cache have kept the same 2284ecce36beSmrg# value. 2285ecce36beSmrgac_cache_corrupted=false 2286ecce36beSmrgfor ac_var in $ac_precious_vars; do 2287ecce36beSmrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 2288ecce36beSmrg eval ac_new_set=\$ac_env_${ac_var}_set 2289ecce36beSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 2290ecce36beSmrg eval ac_new_val=\$ac_env_${ac_var}_value 2291ecce36beSmrg case $ac_old_set,$ac_new_set in 2292ecce36beSmrg set,) 2293ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2294ecce36beSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2295ecce36beSmrg ac_cache_corrupted=: ;; 2296ecce36beSmrg ,set) 2297ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2298ecce36beSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2299ecce36beSmrg ac_cache_corrupted=: ;; 2300ecce36beSmrg ,);; 2301ecce36beSmrg *) 2302ecce36beSmrg if test "x$ac_old_val" != "x$ac_new_val"; then 2303ecce36beSmrg # differences in whitespace do not lead to failure. 2304ecce36beSmrg ac_old_val_w=`echo x $ac_old_val` 2305ecce36beSmrg ac_new_val_w=`echo x $ac_new_val` 2306ecce36beSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 2307ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2308ecce36beSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2309ecce36beSmrg ac_cache_corrupted=: 2310ecce36beSmrg else 2311ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2312ecce36beSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2313ecce36beSmrg eval $ac_var=\$ac_old_val 2314ecce36beSmrg fi 2315ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2316ecce36beSmrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2317ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2318ecce36beSmrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2319ecce36beSmrg fi;; 2320ecce36beSmrg esac 2321ecce36beSmrg # Pass precious variables to config.status. 2322ecce36beSmrg if test "$ac_new_set" = set; then 2323ecce36beSmrg case $ac_new_val in 2324ecce36beSmrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2325ecce36beSmrg *) ac_arg=$ac_var=$ac_new_val ;; 2326ecce36beSmrg esac 2327ecce36beSmrg case " $ac_configure_args " in 2328ecce36beSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2329ecce36beSmrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2330ecce36beSmrg esac 2331ecce36beSmrg fi 2332ecce36beSmrgdone 2333ecce36beSmrgif $ac_cache_corrupted; then 2334ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2335ecce36beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2336ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2337ecce36beSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2338ecce36beSmrg as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2339ecce36beSmrgfi 2340ecce36beSmrg## -------------------- ## 2341ecce36beSmrg## Main body of script. ## 2342ecce36beSmrg## -------------------- ## 2343ecce36beSmrg 2344ecce36beSmrgac_ext=c 2345ecce36beSmrgac_cpp='$CPP $CPPFLAGS' 2346ecce36beSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2347ecce36beSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2348ecce36beSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2349ecce36beSmrg 2350ecce36beSmrg 2351ecce36beSmrg 2352ecce36beSmrgam__api_version='1.11' 2353ecce36beSmrg 2354ecce36beSmrgac_aux_dir= 2355ecce36beSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2356ecce36beSmrg for ac_t in install-sh install.sh shtool; do 2357ecce36beSmrg if test -f "$ac_dir/$ac_t"; then 2358ecce36beSmrg ac_aux_dir=$ac_dir 2359ecce36beSmrg ac_install_sh="$ac_aux_dir/$ac_t -c" 2360ecce36beSmrg break 2 2361ecce36beSmrg fi 2362ecce36beSmrg done 2363ecce36beSmrgdone 2364ecce36beSmrgif test -z "$ac_aux_dir"; then 2365ecce36beSmrg as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2366ecce36beSmrgfi 2367ecce36beSmrg 2368ecce36beSmrg# These three variables are undocumented and unsupported, 2369ecce36beSmrg# and are intended to be withdrawn in a future Autoconf release. 2370ecce36beSmrg# They can cause serious problems if a builder's source tree is in a directory 2371ecce36beSmrg# whose full name contains unusual characters. 2372ecce36beSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2373ecce36beSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2374ecce36beSmrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2375ecce36beSmrg 2376ecce36beSmrg 2377ecce36beSmrg# Find a good install program. We prefer a C program (faster), 2378ecce36beSmrg# so one script is as good as another. But avoid the broken or 2379ecce36beSmrg# incompatible versions: 2380ecce36beSmrg# SysV /etc/install, /usr/sbin/install 2381ecce36beSmrg# SunOS /usr/etc/install 2382ecce36beSmrg# IRIX /sbin/install 2383ecce36beSmrg# AIX /bin/install 2384ecce36beSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs 2385ecce36beSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2386ecce36beSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2387ecce36beSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2388ecce36beSmrg# OS/2's system install, which has a completely different semantic 2389ecce36beSmrg# ./install, which can be erroneously created by make from ./install.sh. 2390ecce36beSmrg# Reject install programs that cannot install multiple files. 2391ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2392ecce36beSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 2393ecce36beSmrgif test -z "$INSTALL"; then 2394ecce36beSmrgif test "${ac_cv_path_install+set}" = set; then : 2395ecce36beSmrg $as_echo_n "(cached) " >&6 2396ecce36beSmrgelse 2397ecce36beSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2398ecce36beSmrgfor as_dir in $PATH 2399ecce36beSmrgdo 2400ecce36beSmrg IFS=$as_save_IFS 2401ecce36beSmrg test -z "$as_dir" && as_dir=. 2402ecce36beSmrg # Account for people who put trailing slashes in PATH elements. 2403ecce36beSmrgcase $as_dir/ in #(( 2404ecce36beSmrg ./ | .// | /[cC]/* | \ 2405ecce36beSmrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2406ecce36beSmrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2407ecce36beSmrg /usr/ucb/* ) ;; 2408ecce36beSmrg *) 2409ecce36beSmrg # OSF1 and SCO ODT 3.0 have their own names for install. 2410ecce36beSmrg # Don't use installbsd from OSF since it installs stuff as root 2411ecce36beSmrg # by default. 2412ecce36beSmrg for ac_prog in ginstall scoinst install; do 2413ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2414ecce36beSmrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2415ecce36beSmrg if test $ac_prog = install && 2416ecce36beSmrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2417ecce36beSmrg # AIX install. It has an incompatible calling convention. 2418ecce36beSmrg : 2419ecce36beSmrg elif test $ac_prog = install && 2420ecce36beSmrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2421ecce36beSmrg # program-specific install script used by HP pwplus--don't use. 2422ecce36beSmrg : 2423ecce36beSmrg else 2424ecce36beSmrg rm -rf conftest.one conftest.two conftest.dir 2425ecce36beSmrg echo one > conftest.one 2426ecce36beSmrg echo two > conftest.two 2427ecce36beSmrg mkdir conftest.dir 2428ecce36beSmrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2429ecce36beSmrg test -s conftest.one && test -s conftest.two && 2430ecce36beSmrg test -s conftest.dir/conftest.one && 2431ecce36beSmrg test -s conftest.dir/conftest.two 2432ecce36beSmrg then 2433ecce36beSmrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2434ecce36beSmrg break 3 2435ecce36beSmrg fi 2436ecce36beSmrg fi 2437ecce36beSmrg fi 2438ecce36beSmrg done 2439ecce36beSmrg done 2440ecce36beSmrg ;; 2441ecce36beSmrgesac 2442ecce36beSmrg 2443ecce36beSmrg done 2444ecce36beSmrgIFS=$as_save_IFS 2445ecce36beSmrg 2446ecce36beSmrgrm -rf conftest.one conftest.two conftest.dir 2447ecce36beSmrg 2448ecce36beSmrgfi 2449ecce36beSmrg if test "${ac_cv_path_install+set}" = set; then 2450ecce36beSmrg INSTALL=$ac_cv_path_install 2451ecce36beSmrg else 2452ecce36beSmrg # As a last resort, use the slow shell script. Don't cache a 2453ecce36beSmrg # value for INSTALL within a source directory, because that will 2454ecce36beSmrg # break other packages using the cache if that directory is 2455ecce36beSmrg # removed, or if the value is a relative name. 2456ecce36beSmrg INSTALL=$ac_install_sh 2457ecce36beSmrg fi 2458ecce36beSmrgfi 2459ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2460ecce36beSmrg$as_echo "$INSTALL" >&6; } 2461ecce36beSmrg 2462ecce36beSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2463ecce36beSmrg# It thinks the first close brace ends the variable substitution. 2464ecce36beSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2465ecce36beSmrg 2466ecce36beSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2467ecce36beSmrg 2468ecce36beSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2469ecce36beSmrg 2470ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2471ecce36beSmrg$as_echo_n "checking whether build environment is sane... " >&6; } 2472ecce36beSmrg# Just in case 2473ecce36beSmrgsleep 1 2474ecce36beSmrgecho timestamp > conftest.file 2475ecce36beSmrg# Reject unsafe characters in $srcdir or the absolute working directory 2476ecce36beSmrg# name. Accept space and tab only in the latter. 2477ecce36beSmrgam_lf=' 2478ecce36beSmrg' 2479ecce36beSmrgcase `pwd` in 2480ecce36beSmrg *[\\\"\#\$\&\'\`$am_lf]*) 2481ecce36beSmrg as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2482ecce36beSmrgesac 2483ecce36beSmrgcase $srcdir in 2484ecce36beSmrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2485ecce36beSmrg as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2486ecce36beSmrgesac 2487ecce36beSmrg 2488ecce36beSmrg# Do `set' in a subshell so we don't clobber the current shell's 2489ecce36beSmrg# arguments. Must try -L first in case configure is actually a 2490ecce36beSmrg# symlink; some systems play weird games with the mod time of symlinks 2491ecce36beSmrg# (eg FreeBSD returns the mod time of the symlink's containing 2492ecce36beSmrg# directory). 2493ecce36beSmrgif ( 2494ecce36beSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2495ecce36beSmrg if test "$*" = "X"; then 2496ecce36beSmrg # -L didn't work. 2497ecce36beSmrg set X `ls -t "$srcdir/configure" conftest.file` 2498ecce36beSmrg fi 2499ecce36beSmrg rm -f conftest.file 2500ecce36beSmrg if test "$*" != "X $srcdir/configure conftest.file" \ 2501ecce36beSmrg && test "$*" != "X conftest.file $srcdir/configure"; then 2502ecce36beSmrg 2503ecce36beSmrg # If neither matched, then we have a broken ls. This can happen 2504ecce36beSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 2505ecce36beSmrg # broken ls alias from the environment. This has actually 2506ecce36beSmrg # happened. Such a system could not be considered "sane". 2507ecce36beSmrg as_fn_error "ls -t appears to fail. Make sure there is not a broken 2508ecce36beSmrgalias in your environment" "$LINENO" 5 2509ecce36beSmrg fi 2510ecce36beSmrg 2511ecce36beSmrg test "$2" = conftest.file 2512ecce36beSmrg ) 2513ecce36beSmrgthen 2514ecce36beSmrg # Ok. 2515ecce36beSmrg : 2516ecce36beSmrgelse 2517ecce36beSmrg as_fn_error "newly created file is older than distributed files! 2518ecce36beSmrgCheck your system clock" "$LINENO" 5 2519ecce36beSmrgfi 2520ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2521ecce36beSmrg$as_echo "yes" >&6; } 2522ecce36beSmrgtest "$program_prefix" != NONE && 2523ecce36beSmrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 2524ecce36beSmrg# Use a double $ so make ignores it. 2525ecce36beSmrgtest "$program_suffix" != NONE && 2526ecce36beSmrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2527ecce36beSmrg# Double any \ or $. 2528ecce36beSmrg# By default was `s,x,x', remove it if useless. 2529ecce36beSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2530ecce36beSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2531ecce36beSmrg 2532ecce36beSmrg# expand $ac_aux_dir to an absolute path 2533ecce36beSmrgam_aux_dir=`cd $ac_aux_dir && pwd` 2534ecce36beSmrg 2535ecce36beSmrgif test x"${MISSING+set}" != xset; then 2536ecce36beSmrg case $am_aux_dir in 2537ecce36beSmrg *\ * | *\ *) 2538ecce36beSmrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2539ecce36beSmrg *) 2540ecce36beSmrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 2541ecce36beSmrg esac 2542ecce36beSmrgfi 2543ecce36beSmrg# Use eval to expand $SHELL 2544ecce36beSmrgif eval "$MISSING --run true"; then 2545ecce36beSmrg am_missing_run="$MISSING --run " 2546ecce36beSmrgelse 2547ecce36beSmrg am_missing_run= 2548ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2549ecce36beSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2550ecce36beSmrgfi 2551ecce36beSmrg 2552ecce36beSmrgif test x"${install_sh}" != xset; then 2553ecce36beSmrg case $am_aux_dir in 2554ecce36beSmrg *\ * | *\ *) 2555ecce36beSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2556ecce36beSmrg *) 2557ecce36beSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 2558ecce36beSmrg esac 2559ecce36beSmrgfi 2560ecce36beSmrg 2561ecce36beSmrg# Installed binaries are usually stripped using `strip' when the user 2562ecce36beSmrg# run `make install-strip'. However `strip' might not be the right 2563ecce36beSmrg# tool to use in cross-compilation environments, therefore Automake 2564ecce36beSmrg# will honor the `STRIP' environment variable to overrule this program. 2565ecce36beSmrgif test "$cross_compiling" != no; then 2566ecce36beSmrg if test -n "$ac_tool_prefix"; then 2567ecce36beSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2568ecce36beSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 2569ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2570ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 2571ecce36beSmrgif test "${ac_cv_prog_STRIP+set}" = set; then : 2572ecce36beSmrg $as_echo_n "(cached) " >&6 2573ecce36beSmrgelse 2574ecce36beSmrg if test -n "$STRIP"; then 2575ecce36beSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2576ecce36beSmrgelse 2577ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2578ecce36beSmrgfor as_dir in $PATH 2579ecce36beSmrgdo 2580ecce36beSmrg IFS=$as_save_IFS 2581ecce36beSmrg test -z "$as_dir" && as_dir=. 2582ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2583ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2584ecce36beSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2585ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2586ecce36beSmrg break 2 2587ecce36beSmrg fi 2588ecce36beSmrgdone 2589ecce36beSmrg done 2590ecce36beSmrgIFS=$as_save_IFS 2591ecce36beSmrg 2592ecce36beSmrgfi 2593ecce36beSmrgfi 2594ecce36beSmrgSTRIP=$ac_cv_prog_STRIP 2595ecce36beSmrgif test -n "$STRIP"; then 2596ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2597ecce36beSmrg$as_echo "$STRIP" >&6; } 2598ecce36beSmrgelse 2599ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2600ecce36beSmrg$as_echo "no" >&6; } 2601ecce36beSmrgfi 2602ecce36beSmrg 2603ecce36beSmrg 2604ecce36beSmrgfi 2605ecce36beSmrgif test -z "$ac_cv_prog_STRIP"; then 2606ecce36beSmrg ac_ct_STRIP=$STRIP 2607ecce36beSmrg # Extract the first word of "strip", so it can be a program name with args. 2608ecce36beSmrgset dummy strip; ac_word=$2 2609ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2610ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 2611ecce36beSmrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2612ecce36beSmrg $as_echo_n "(cached) " >&6 2613ecce36beSmrgelse 2614ecce36beSmrg if test -n "$ac_ct_STRIP"; then 2615ecce36beSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2616ecce36beSmrgelse 2617ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2618ecce36beSmrgfor as_dir in $PATH 2619ecce36beSmrgdo 2620ecce36beSmrg IFS=$as_save_IFS 2621ecce36beSmrg test -z "$as_dir" && as_dir=. 2622ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2623ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2624ecce36beSmrg ac_cv_prog_ac_ct_STRIP="strip" 2625ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2626ecce36beSmrg break 2 2627ecce36beSmrg fi 2628ecce36beSmrgdone 2629ecce36beSmrg done 2630ecce36beSmrgIFS=$as_save_IFS 2631ecce36beSmrg 2632ecce36beSmrgfi 2633ecce36beSmrgfi 2634ecce36beSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2635ecce36beSmrgif test -n "$ac_ct_STRIP"; then 2636ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2637ecce36beSmrg$as_echo "$ac_ct_STRIP" >&6; } 2638ecce36beSmrgelse 2639ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2640ecce36beSmrg$as_echo "no" >&6; } 2641ecce36beSmrgfi 2642ecce36beSmrg 2643ecce36beSmrg if test "x$ac_ct_STRIP" = x; then 2644ecce36beSmrg STRIP=":" 2645ecce36beSmrg else 2646ecce36beSmrg case $cross_compiling:$ac_tool_warned in 2647ecce36beSmrgyes:) 2648ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2649ecce36beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2650ecce36beSmrgac_tool_warned=yes ;; 2651ecce36beSmrgesac 2652ecce36beSmrg STRIP=$ac_ct_STRIP 2653ecce36beSmrg fi 2654ecce36beSmrgelse 2655ecce36beSmrg STRIP="$ac_cv_prog_STRIP" 2656ecce36beSmrgfi 2657ecce36beSmrg 2658ecce36beSmrgfi 2659ecce36beSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2660ecce36beSmrg 2661ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2662ecce36beSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2663ecce36beSmrgif test -z "$MKDIR_P"; then 2664ecce36beSmrg if test "${ac_cv_path_mkdir+set}" = set; then : 2665ecce36beSmrg $as_echo_n "(cached) " >&6 2666ecce36beSmrgelse 2667ecce36beSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2668ecce36beSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2669ecce36beSmrgdo 2670ecce36beSmrg IFS=$as_save_IFS 2671ecce36beSmrg test -z "$as_dir" && as_dir=. 2672ecce36beSmrg for ac_prog in mkdir gmkdir; do 2673ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2674ecce36beSmrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2675ecce36beSmrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2676ecce36beSmrg 'mkdir (GNU coreutils) '* | \ 2677ecce36beSmrg 'mkdir (coreutils) '* | \ 2678ecce36beSmrg 'mkdir (fileutils) '4.1*) 2679ecce36beSmrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2680ecce36beSmrg break 3;; 2681ecce36beSmrg esac 2682ecce36beSmrg done 2683ecce36beSmrg done 2684ecce36beSmrg done 2685ecce36beSmrgIFS=$as_save_IFS 2686ecce36beSmrg 2687ecce36beSmrgfi 2688ecce36beSmrg 2689ecce36beSmrg if test "${ac_cv_path_mkdir+set}" = set; then 2690ecce36beSmrg MKDIR_P="$ac_cv_path_mkdir -p" 2691ecce36beSmrg else 2692ecce36beSmrg # As a last resort, use the slow shell script. Don't cache a 2693ecce36beSmrg # value for MKDIR_P within a source directory, because that will 2694ecce36beSmrg # break other packages using the cache if that directory is 2695ecce36beSmrg # removed, or if the value is a relative name. 2696ecce36beSmrg test -d ./--version && rmdir ./--version 2697ecce36beSmrg MKDIR_P="$ac_install_sh -d" 2698ecce36beSmrg fi 2699ecce36beSmrgfi 2700ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2701ecce36beSmrg$as_echo "$MKDIR_P" >&6; } 2702ecce36beSmrg 2703ecce36beSmrgmkdir_p="$MKDIR_P" 2704ecce36beSmrgcase $mkdir_p in 2705ecce36beSmrg [\\/$]* | ?:[\\/]*) ;; 2706ecce36beSmrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2707ecce36beSmrgesac 2708ecce36beSmrg 2709ecce36beSmrgfor ac_prog in gawk mawk nawk awk 2710ecce36beSmrgdo 2711ecce36beSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2712ecce36beSmrgset dummy $ac_prog; ac_word=$2 2713ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2714ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 2715ecce36beSmrgif test "${ac_cv_prog_AWK+set}" = set; then : 2716ecce36beSmrg $as_echo_n "(cached) " >&6 2717ecce36beSmrgelse 2718ecce36beSmrg if test -n "$AWK"; then 2719ecce36beSmrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 2720ecce36beSmrgelse 2721ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2722ecce36beSmrgfor as_dir in $PATH 2723ecce36beSmrgdo 2724ecce36beSmrg IFS=$as_save_IFS 2725ecce36beSmrg test -z "$as_dir" && as_dir=. 2726ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2727ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2728ecce36beSmrg ac_cv_prog_AWK="$ac_prog" 2729ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2730ecce36beSmrg break 2 2731ecce36beSmrg fi 2732ecce36beSmrgdone 2733ecce36beSmrg done 2734ecce36beSmrgIFS=$as_save_IFS 2735ecce36beSmrg 2736ecce36beSmrgfi 2737ecce36beSmrgfi 2738ecce36beSmrgAWK=$ac_cv_prog_AWK 2739ecce36beSmrgif test -n "$AWK"; then 2740ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2741ecce36beSmrg$as_echo "$AWK" >&6; } 2742ecce36beSmrgelse 2743ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2744ecce36beSmrg$as_echo "no" >&6; } 2745ecce36beSmrgfi 2746ecce36beSmrg 2747ecce36beSmrg 2748ecce36beSmrg test -n "$AWK" && break 2749ecce36beSmrgdone 2750ecce36beSmrg 2751ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2752ecce36beSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2753ecce36beSmrgset x ${MAKE-make} 2754ecce36beSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2755ecce36beSmrgif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2756ecce36beSmrg $as_echo_n "(cached) " >&6 2757ecce36beSmrgelse 2758ecce36beSmrg cat >conftest.make <<\_ACEOF 2759ecce36beSmrgSHELL = /bin/sh 2760ecce36beSmrgall: 2761ecce36beSmrg @echo '@@@%%%=$(MAKE)=@@@%%%' 2762ecce36beSmrg_ACEOF 2763ecce36beSmrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2764ecce36beSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2765ecce36beSmrg *@@@%%%=?*=@@@%%%*) 2766ecce36beSmrg eval ac_cv_prog_make_${ac_make}_set=yes;; 2767ecce36beSmrg *) 2768ecce36beSmrg eval ac_cv_prog_make_${ac_make}_set=no;; 2769ecce36beSmrgesac 2770ecce36beSmrgrm -f conftest.make 2771ecce36beSmrgfi 2772ecce36beSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2773ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2774ecce36beSmrg$as_echo "yes" >&6; } 2775ecce36beSmrg SET_MAKE= 2776ecce36beSmrgelse 2777ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2778ecce36beSmrg$as_echo "no" >&6; } 2779ecce36beSmrg SET_MAKE="MAKE=${MAKE-make}" 2780ecce36beSmrgfi 2781ecce36beSmrg 2782ecce36beSmrgrm -rf .tst 2>/dev/null 2783ecce36beSmrgmkdir .tst 2>/dev/null 2784ecce36beSmrgif test -d .tst; then 2785ecce36beSmrg am__leading_dot=. 2786ecce36beSmrgelse 2787ecce36beSmrg am__leading_dot=_ 2788ecce36beSmrgfi 2789ecce36beSmrgrmdir .tst 2>/dev/null 2790ecce36beSmrg 2791ecce36beSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 2792ecce36beSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2793ecce36beSmrg # is not polluted with repeated "-I." 2794ecce36beSmrg am__isrc=' -I$(srcdir)' 2795ecce36beSmrg # test to see if srcdir already configured 2796ecce36beSmrg if test -f $srcdir/config.status; then 2797ecce36beSmrg as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2798ecce36beSmrg fi 2799ecce36beSmrgfi 2800ecce36beSmrg 2801ecce36beSmrg# test whether we have cygpath 2802ecce36beSmrgif test -z "$CYGPATH_W"; then 2803ecce36beSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 2804ecce36beSmrg CYGPATH_W='cygpath -w' 2805ecce36beSmrg else 2806ecce36beSmrg CYGPATH_W=echo 2807ecce36beSmrg fi 2808ecce36beSmrgfi 2809ecce36beSmrg 2810ecce36beSmrg 2811ecce36beSmrg# Define the identity of the package. 2812ecce36beSmrg PACKAGE='xcb-util' 2813ecce36beSmrg VERSION='0.3.6' 2814ecce36beSmrg 2815ecce36beSmrg 2816ecce36beSmrgcat >>confdefs.h <<_ACEOF 2817ecce36beSmrg#define PACKAGE "$PACKAGE" 2818ecce36beSmrg_ACEOF 2819ecce36beSmrg 2820ecce36beSmrg 2821ecce36beSmrgcat >>confdefs.h <<_ACEOF 2822ecce36beSmrg#define VERSION "$VERSION" 2823ecce36beSmrg_ACEOF 2824ecce36beSmrg 2825ecce36beSmrg# Some tools Automake needs. 2826ecce36beSmrg 2827ecce36beSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2828ecce36beSmrg 2829ecce36beSmrg 2830ecce36beSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2831ecce36beSmrg 2832ecce36beSmrg 2833ecce36beSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2834ecce36beSmrg 2835ecce36beSmrg 2836ecce36beSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2837ecce36beSmrg 2838ecce36beSmrg 2839ecce36beSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2840ecce36beSmrg 2841ecce36beSmrg# We need awk for the "check" target. The system "awk" is bad on 2842ecce36beSmrg# some platforms. 2843ecce36beSmrg# Always define AMTAR for backward compatibility. 2844ecce36beSmrg 2845ecce36beSmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 2846ecce36beSmrg 2847ecce36beSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2848ecce36beSmrg 2849ecce36beSmrg 2850ecce36beSmrg 2851ecce36beSmrg 2852ecce36beSmrg 2853ecce36beSmrg 2854ecce36beSmrgfor ac_prog in m4 gm4 2855ecce36beSmrgdo 2856ecce36beSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2857ecce36beSmrgset dummy $ac_prog; ac_word=$2 2858ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2859ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 2860ecce36beSmrgif test "${ac_cv_prog_M4+set}" = set; then : 2861ecce36beSmrg $as_echo_n "(cached) " >&6 2862ecce36beSmrgelse 2863ecce36beSmrg if test -n "$M4"; then 2864ecce36beSmrg ac_cv_prog_M4="$M4" # Let the user override the test. 2865ecce36beSmrgelse 2866ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2867ecce36beSmrgfor as_dir in $PATH 2868ecce36beSmrgdo 2869ecce36beSmrg IFS=$as_save_IFS 2870ecce36beSmrg test -z "$as_dir" && as_dir=. 2871ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2872ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2873ecce36beSmrg ac_cv_prog_M4="$ac_prog" 2874ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2875ecce36beSmrg break 2 2876ecce36beSmrg fi 2877ecce36beSmrgdone 2878ecce36beSmrg done 2879ecce36beSmrgIFS=$as_save_IFS 2880ecce36beSmrg 2881ecce36beSmrgfi 2882ecce36beSmrgfi 2883ecce36beSmrgM4=$ac_cv_prog_M4 2884ecce36beSmrgif test -n "$M4"; then 2885ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 2886ecce36beSmrg$as_echo "$M4" >&6; } 2887ecce36beSmrgelse 2888ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2889ecce36beSmrg$as_echo "no" >&6; } 2890ecce36beSmrgfi 2891ecce36beSmrg 2892ecce36beSmrg 2893ecce36beSmrg test -n "$M4" && break 2894ecce36beSmrgdone 2895ecce36beSmrgtest -n "$M4" || M4="no" 2896ecce36beSmrg 2897ecce36beSmrgif test $M4 != "no" ; then 2898ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $M4 supports -I" >&5 2899ecce36beSmrg$as_echo_n "checking if $M4 supports -I... " >&6; } 2900ecce36beSmrg if $M4 -I. /dev/null > /dev/null 2>&1 ; then 2901ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2902ecce36beSmrg$as_echo "yes" >&6; } 2903ecce36beSmrg else 2904ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2905ecce36beSmrg$as_echo "no" >&6; } 2906ecce36beSmrg # Try finding the gnu version 2907ecce36beSmrg for ac_prog in gm4 2908ecce36beSmrgdo 2909ecce36beSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2910ecce36beSmrgset dummy $ac_prog; ac_word=$2 2911ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2912ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 2913ecce36beSmrgif test "${ac_cv_prog_GM4+set}" = set; then : 2914ecce36beSmrg $as_echo_n "(cached) " >&6 2915ecce36beSmrgelse 2916ecce36beSmrg if test -n "$GM4"; then 2917ecce36beSmrg ac_cv_prog_GM4="$GM4" # Let the user override the test. 2918ecce36beSmrgelse 2919ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2920ecce36beSmrgfor as_dir in $PATH 2921ecce36beSmrgdo 2922ecce36beSmrg IFS=$as_save_IFS 2923ecce36beSmrg test -z "$as_dir" && as_dir=. 2924ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2925ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2926ecce36beSmrg ac_cv_prog_GM4="$ac_prog" 2927ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2928ecce36beSmrg break 2 2929ecce36beSmrg fi 2930ecce36beSmrgdone 2931ecce36beSmrg done 2932ecce36beSmrgIFS=$as_save_IFS 2933ecce36beSmrg 2934ecce36beSmrgfi 2935ecce36beSmrgfi 2936ecce36beSmrgGM4=$ac_cv_prog_GM4 2937ecce36beSmrgif test -n "$GM4"; then 2938ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM4" >&5 2939ecce36beSmrg$as_echo "$GM4" >&6; } 2940ecce36beSmrgelse 2941ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2942ecce36beSmrg$as_echo "no" >&6; } 2943ecce36beSmrgfi 2944ecce36beSmrg 2945ecce36beSmrg 2946ecce36beSmrg test -n "$GM4" && break 2947ecce36beSmrgdone 2948ecce36beSmrgtest -n "$GM4" || GM4="no" 2949ecce36beSmrg 2950ecce36beSmrg if test $GM4 = "no" ; then 2951ecce36beSmrg for ac_prog in m4 2952ecce36beSmrgdo 2953ecce36beSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2954ecce36beSmrgset dummy $ac_prog; ac_word=$2 2955ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2956ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 2957ecce36beSmrgif test "${ac_cv_path_GNUM4+set}" = set; then : 2958ecce36beSmrg $as_echo_n "(cached) " >&6 2959ecce36beSmrgelse 2960ecce36beSmrg case $GNUM4 in 2961ecce36beSmrg [\\/]* | ?:[\\/]*) 2962ecce36beSmrg ac_cv_path_GNUM4="$GNUM4" # Let the user override the test with a path. 2963ecce36beSmrg ;; 2964ecce36beSmrg *) 2965ecce36beSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2966ecce36beSmrgfor as_dir in /usr/gnu/bin 2967ecce36beSmrgdo 2968ecce36beSmrg IFS=$as_save_IFS 2969ecce36beSmrg test -z "$as_dir" && as_dir=. 2970ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2971ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2972ecce36beSmrg ac_cv_path_GNUM4="$as_dir/$ac_word$ac_exec_ext" 2973ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2974ecce36beSmrg break 2 2975ecce36beSmrg fi 2976ecce36beSmrgdone 2977ecce36beSmrg done 2978ecce36beSmrgIFS=$as_save_IFS 2979ecce36beSmrg 2980ecce36beSmrg ;; 2981ecce36beSmrgesac 2982ecce36beSmrgfi 2983ecce36beSmrgGNUM4=$ac_cv_path_GNUM4 2984ecce36beSmrgif test -n "$GNUM4"; then 2985ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUM4" >&5 2986ecce36beSmrg$as_echo "$GNUM4" >&6; } 2987ecce36beSmrgelse 2988ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2989ecce36beSmrg$as_echo "no" >&6; } 2990ecce36beSmrgfi 2991ecce36beSmrg 2992ecce36beSmrg 2993ecce36beSmrg test -n "$GNUM4" && break 2994ecce36beSmrgdone 2995ecce36beSmrgtest -n "$GNUM4" || GNUM4="no" 2996ecce36beSmrg 2997ecce36beSmrg M4="$GNUM4" 2998ecce36beSmrg else 2999ecce36beSmrg M4="$GM4" 3000ecce36beSmrg fi 3001ecce36beSmrg fi 3002ecce36beSmrgfi 3003ecce36beSmrgif test $M4 = "no"; then 3004ecce36beSmrg as_fn_error "Can't find usable m4, please install it and try again" "$LINENO" 5 3005ecce36beSmrgfi 3006ecce36beSmrgfor ac_prog in gperf 3007ecce36beSmrgdo 3008ecce36beSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 3009ecce36beSmrgset dummy $ac_prog; ac_word=$2 3010ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3011ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 3012ecce36beSmrgif test "${ac_cv_prog_GPERF+set}" = set; then : 3013ecce36beSmrg $as_echo_n "(cached) " >&6 3014ecce36beSmrgelse 3015ecce36beSmrg if test -n "$GPERF"; then 3016ecce36beSmrg ac_cv_prog_GPERF="$GPERF" # Let the user override the test. 3017ecce36beSmrgelse 3018ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3019ecce36beSmrgfor as_dir in $PATH 3020ecce36beSmrgdo 3021ecce36beSmrg IFS=$as_save_IFS 3022ecce36beSmrg test -z "$as_dir" && as_dir=. 3023ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3024ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3025ecce36beSmrg ac_cv_prog_GPERF="$ac_prog" 3026ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3027ecce36beSmrg break 2 3028ecce36beSmrg fi 3029ecce36beSmrgdone 3030ecce36beSmrg done 3031ecce36beSmrgIFS=$as_save_IFS 3032ecce36beSmrg 3033ecce36beSmrgfi 3034ecce36beSmrgfi 3035ecce36beSmrgGPERF=$ac_cv_prog_GPERF 3036ecce36beSmrgif test -n "$GPERF"; then 3037ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5 3038ecce36beSmrg$as_echo "$GPERF" >&6; } 3039ecce36beSmrgelse 3040ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3041ecce36beSmrg$as_echo "no" >&6; } 3042ecce36beSmrgfi 3043ecce36beSmrg 3044ecce36beSmrg 3045ecce36beSmrg test -n "$GPERF" && break 3046ecce36beSmrgdone 3047ecce36beSmrgtest -n "$GPERF" || GPERF="no" 3048ecce36beSmrg 3049ecce36beSmrgif test $GPERF = "no"; then 3050ecce36beSmrg as_fn_error "Can't find gperf, please install it and try again" "$LINENO" 5 3051ecce36beSmrgfi 3052ecce36beSmrgac_ext=c 3053ecce36beSmrgac_cpp='$CPP $CPPFLAGS' 3054ecce36beSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3055ecce36beSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3056ecce36beSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3057ecce36beSmrgif test -n "$ac_tool_prefix"; then 3058ecce36beSmrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3059ecce36beSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 3060ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3061ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 3062ecce36beSmrgif test "${ac_cv_prog_CC+set}" = set; then : 3063ecce36beSmrg $as_echo_n "(cached) " >&6 3064ecce36beSmrgelse 3065ecce36beSmrg if test -n "$CC"; then 3066ecce36beSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 3067ecce36beSmrgelse 3068ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3069ecce36beSmrgfor as_dir in $PATH 3070ecce36beSmrgdo 3071ecce36beSmrg IFS=$as_save_IFS 3072ecce36beSmrg test -z "$as_dir" && as_dir=. 3073ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3074ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3075ecce36beSmrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 3076ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3077ecce36beSmrg break 2 3078ecce36beSmrg fi 3079ecce36beSmrgdone 3080ecce36beSmrg done 3081ecce36beSmrgIFS=$as_save_IFS 3082ecce36beSmrg 3083ecce36beSmrgfi 3084ecce36beSmrgfi 3085ecce36beSmrgCC=$ac_cv_prog_CC 3086ecce36beSmrgif test -n "$CC"; then 3087ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3088ecce36beSmrg$as_echo "$CC" >&6; } 3089ecce36beSmrgelse 3090ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3091ecce36beSmrg$as_echo "no" >&6; } 3092ecce36beSmrgfi 3093ecce36beSmrg 3094ecce36beSmrg 3095ecce36beSmrgfi 3096ecce36beSmrgif test -z "$ac_cv_prog_CC"; then 3097ecce36beSmrg ac_ct_CC=$CC 3098ecce36beSmrg # Extract the first word of "gcc", so it can be a program name with args. 3099ecce36beSmrgset dummy gcc; ac_word=$2 3100ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3101ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 3102ecce36beSmrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3103ecce36beSmrg $as_echo_n "(cached) " >&6 3104ecce36beSmrgelse 3105ecce36beSmrg if test -n "$ac_ct_CC"; then 3106ecce36beSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3107ecce36beSmrgelse 3108ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3109ecce36beSmrgfor as_dir in $PATH 3110ecce36beSmrgdo 3111ecce36beSmrg IFS=$as_save_IFS 3112ecce36beSmrg test -z "$as_dir" && as_dir=. 3113ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3114ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3115ecce36beSmrg ac_cv_prog_ac_ct_CC="gcc" 3116ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3117ecce36beSmrg break 2 3118ecce36beSmrg fi 3119ecce36beSmrgdone 3120ecce36beSmrg done 3121ecce36beSmrgIFS=$as_save_IFS 3122ecce36beSmrg 3123ecce36beSmrgfi 3124ecce36beSmrgfi 3125ecce36beSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 3126ecce36beSmrgif test -n "$ac_ct_CC"; then 3127ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3128ecce36beSmrg$as_echo "$ac_ct_CC" >&6; } 3129ecce36beSmrgelse 3130ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3131ecce36beSmrg$as_echo "no" >&6; } 3132ecce36beSmrgfi 3133ecce36beSmrg 3134ecce36beSmrg if test "x$ac_ct_CC" = x; then 3135ecce36beSmrg CC="" 3136ecce36beSmrg else 3137ecce36beSmrg case $cross_compiling:$ac_tool_warned in 3138ecce36beSmrgyes:) 3139ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3140ecce36beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3141ecce36beSmrgac_tool_warned=yes ;; 3142ecce36beSmrgesac 3143ecce36beSmrg CC=$ac_ct_CC 3144ecce36beSmrg fi 3145ecce36beSmrgelse 3146ecce36beSmrg CC="$ac_cv_prog_CC" 3147ecce36beSmrgfi 3148ecce36beSmrg 3149ecce36beSmrgif test -z "$CC"; then 3150ecce36beSmrg if test -n "$ac_tool_prefix"; then 3151ecce36beSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3152ecce36beSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2 3153ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3154ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 3155ecce36beSmrgif test "${ac_cv_prog_CC+set}" = set; then : 3156ecce36beSmrg $as_echo_n "(cached) " >&6 3157ecce36beSmrgelse 3158ecce36beSmrg if test -n "$CC"; then 3159ecce36beSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 3160ecce36beSmrgelse 3161ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3162ecce36beSmrgfor as_dir in $PATH 3163ecce36beSmrgdo 3164ecce36beSmrg IFS=$as_save_IFS 3165ecce36beSmrg test -z "$as_dir" && as_dir=. 3166ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3167ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3168ecce36beSmrg ac_cv_prog_CC="${ac_tool_prefix}cc" 3169ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3170ecce36beSmrg break 2 3171ecce36beSmrg fi 3172ecce36beSmrgdone 3173ecce36beSmrg done 3174ecce36beSmrgIFS=$as_save_IFS 3175ecce36beSmrg 3176ecce36beSmrgfi 3177ecce36beSmrgfi 3178ecce36beSmrgCC=$ac_cv_prog_CC 3179ecce36beSmrgif test -n "$CC"; then 3180ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3181ecce36beSmrg$as_echo "$CC" >&6; } 3182ecce36beSmrgelse 3183ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3184ecce36beSmrg$as_echo "no" >&6; } 3185ecce36beSmrgfi 3186ecce36beSmrg 3187ecce36beSmrg 3188ecce36beSmrg fi 3189ecce36beSmrgfi 3190ecce36beSmrgif test -z "$CC"; then 3191ecce36beSmrg # Extract the first word of "cc", so it can be a program name with args. 3192ecce36beSmrgset dummy cc; ac_word=$2 3193ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3194ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 3195ecce36beSmrgif test "${ac_cv_prog_CC+set}" = set; then : 3196ecce36beSmrg $as_echo_n "(cached) " >&6 3197ecce36beSmrgelse 3198ecce36beSmrg if test -n "$CC"; then 3199ecce36beSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 3200ecce36beSmrgelse 3201ecce36beSmrg ac_prog_rejected=no 3202ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3203ecce36beSmrgfor as_dir in $PATH 3204ecce36beSmrgdo 3205ecce36beSmrg IFS=$as_save_IFS 3206ecce36beSmrg test -z "$as_dir" && as_dir=. 3207ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3208ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3209ecce36beSmrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3210ecce36beSmrg ac_prog_rejected=yes 3211ecce36beSmrg continue 3212ecce36beSmrg fi 3213ecce36beSmrg ac_cv_prog_CC="cc" 3214ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3215ecce36beSmrg break 2 3216ecce36beSmrg fi 3217ecce36beSmrgdone 3218ecce36beSmrg done 3219ecce36beSmrgIFS=$as_save_IFS 3220ecce36beSmrg 3221ecce36beSmrgif test $ac_prog_rejected = yes; then 3222ecce36beSmrg # We found a bogon in the path, so make sure we never use it. 3223ecce36beSmrg set dummy $ac_cv_prog_CC 3224ecce36beSmrg shift 3225ecce36beSmrg if test $# != 0; then 3226ecce36beSmrg # We chose a different compiler from the bogus one. 3227ecce36beSmrg # However, it has the same basename, so the bogon will be chosen 3228ecce36beSmrg # first if we set CC to just the basename; use the full file name. 3229ecce36beSmrg shift 3230ecce36beSmrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3231ecce36beSmrg fi 3232ecce36beSmrgfi 3233ecce36beSmrgfi 3234ecce36beSmrgfi 3235ecce36beSmrgCC=$ac_cv_prog_CC 3236ecce36beSmrgif test -n "$CC"; then 3237ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3238ecce36beSmrg$as_echo "$CC" >&6; } 3239ecce36beSmrgelse 3240ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3241ecce36beSmrg$as_echo "no" >&6; } 3242ecce36beSmrgfi 3243ecce36beSmrg 3244ecce36beSmrg 3245ecce36beSmrgfi 3246ecce36beSmrgif test -z "$CC"; then 3247ecce36beSmrg if test -n "$ac_tool_prefix"; then 3248ecce36beSmrg for ac_prog in cl.exe 3249ecce36beSmrg do 3250ecce36beSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3251ecce36beSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 3252ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3253ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 3254ecce36beSmrgif test "${ac_cv_prog_CC+set}" = set; then : 3255ecce36beSmrg $as_echo_n "(cached) " >&6 3256ecce36beSmrgelse 3257ecce36beSmrg if test -n "$CC"; then 3258ecce36beSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 3259ecce36beSmrgelse 3260ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3261ecce36beSmrgfor as_dir in $PATH 3262ecce36beSmrgdo 3263ecce36beSmrg IFS=$as_save_IFS 3264ecce36beSmrg test -z "$as_dir" && as_dir=. 3265ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3266ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3267ecce36beSmrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3268ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3269ecce36beSmrg break 2 3270ecce36beSmrg fi 3271ecce36beSmrgdone 3272ecce36beSmrg done 3273ecce36beSmrgIFS=$as_save_IFS 3274ecce36beSmrg 3275ecce36beSmrgfi 3276ecce36beSmrgfi 3277ecce36beSmrgCC=$ac_cv_prog_CC 3278ecce36beSmrgif test -n "$CC"; then 3279ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3280ecce36beSmrg$as_echo "$CC" >&6; } 3281ecce36beSmrgelse 3282ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3283ecce36beSmrg$as_echo "no" >&6; } 3284ecce36beSmrgfi 3285ecce36beSmrg 3286ecce36beSmrg 3287ecce36beSmrg test -n "$CC" && break 3288ecce36beSmrg done 3289ecce36beSmrgfi 3290ecce36beSmrgif test -z "$CC"; then 3291ecce36beSmrg ac_ct_CC=$CC 3292ecce36beSmrg for ac_prog in cl.exe 3293ecce36beSmrgdo 3294ecce36beSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 3295ecce36beSmrgset dummy $ac_prog; ac_word=$2 3296ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3297ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 3298ecce36beSmrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3299ecce36beSmrg $as_echo_n "(cached) " >&6 3300ecce36beSmrgelse 3301ecce36beSmrg if test -n "$ac_ct_CC"; then 3302ecce36beSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3303ecce36beSmrgelse 3304ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3305ecce36beSmrgfor as_dir in $PATH 3306ecce36beSmrgdo 3307ecce36beSmrg IFS=$as_save_IFS 3308ecce36beSmrg test -z "$as_dir" && as_dir=. 3309ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3310ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3311ecce36beSmrg ac_cv_prog_ac_ct_CC="$ac_prog" 3312ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3313ecce36beSmrg break 2 3314ecce36beSmrg fi 3315ecce36beSmrgdone 3316ecce36beSmrg done 3317ecce36beSmrgIFS=$as_save_IFS 3318ecce36beSmrg 3319ecce36beSmrgfi 3320ecce36beSmrgfi 3321ecce36beSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 3322ecce36beSmrgif test -n "$ac_ct_CC"; then 3323ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3324ecce36beSmrg$as_echo "$ac_ct_CC" >&6; } 3325ecce36beSmrgelse 3326ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3327ecce36beSmrg$as_echo "no" >&6; } 3328ecce36beSmrgfi 3329ecce36beSmrg 3330ecce36beSmrg 3331ecce36beSmrg test -n "$ac_ct_CC" && break 3332ecce36beSmrgdone 3333ecce36beSmrg 3334ecce36beSmrg if test "x$ac_ct_CC" = x; then 3335ecce36beSmrg CC="" 3336ecce36beSmrg else 3337ecce36beSmrg case $cross_compiling:$ac_tool_warned in 3338ecce36beSmrgyes:) 3339ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3340ecce36beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3341ecce36beSmrgac_tool_warned=yes ;; 3342ecce36beSmrgesac 3343ecce36beSmrg CC=$ac_ct_CC 3344ecce36beSmrg fi 3345ecce36beSmrgfi 3346ecce36beSmrg 3347ecce36beSmrgfi 3348ecce36beSmrg 3349ecce36beSmrg 3350ecce36beSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3351ecce36beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3352ecce36beSmrgas_fn_error "no acceptable C compiler found in \$PATH 3353ecce36beSmrgSee \`config.log' for more details." "$LINENO" 5; } 3354ecce36beSmrg 3355ecce36beSmrg# Provide some information about the compiler. 3356ecce36beSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3357ecce36beSmrgset X $ac_compile 3358ecce36beSmrgac_compiler=$2 3359ecce36beSmrgfor ac_option in --version -v -V -qversion; do 3360ecce36beSmrg { { ac_try="$ac_compiler $ac_option >&5" 3361ecce36beSmrgcase "(($ac_try" in 3362ecce36beSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3363ecce36beSmrg *) ac_try_echo=$ac_try;; 3364ecce36beSmrgesac 3365ecce36beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3366ecce36beSmrg$as_echo "$ac_try_echo"; } >&5 3367ecce36beSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3368ecce36beSmrg ac_status=$? 3369ecce36beSmrg if test -s conftest.err; then 3370ecce36beSmrg sed '10a\ 3371ecce36beSmrg... rest of stderr output deleted ... 3372ecce36beSmrg 10q' conftest.err >conftest.er1 3373ecce36beSmrg cat conftest.er1 >&5 3374ecce36beSmrg rm -f conftest.er1 conftest.err 3375ecce36beSmrg fi 3376ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3377ecce36beSmrg test $ac_status = 0; } 3378ecce36beSmrgdone 3379ecce36beSmrg 3380ecce36beSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3381ecce36beSmrg/* end confdefs.h. */ 3382ecce36beSmrg#include <stdio.h> 3383ecce36beSmrgint 3384ecce36beSmrgmain () 3385ecce36beSmrg{ 3386ecce36beSmrgFILE *f = fopen ("conftest.out", "w"); 3387ecce36beSmrg return ferror (f) || fclose (f) != 0; 3388ecce36beSmrg 3389ecce36beSmrg ; 3390ecce36beSmrg return 0; 3391ecce36beSmrg} 3392ecce36beSmrg_ACEOF 3393ecce36beSmrgac_clean_files_save=$ac_clean_files 3394ecce36beSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 3395ecce36beSmrg# Try to create an executable without -o first, disregard a.out. 3396ecce36beSmrg# It will help us diagnose broken compilers, and finding out an intuition 3397ecce36beSmrg# of exeext. 3398ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3399ecce36beSmrg$as_echo_n "checking for C compiler default output file name... " >&6; } 3400ecce36beSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3401ecce36beSmrg 3402ecce36beSmrg# The possible output files: 3403ecce36beSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3404ecce36beSmrg 3405ecce36beSmrgac_rmfiles= 3406ecce36beSmrgfor ac_file in $ac_files 3407ecce36beSmrgdo 3408ecce36beSmrg case $ac_file in 3409ecce36beSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3410ecce36beSmrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3411ecce36beSmrg esac 3412ecce36beSmrgdone 3413ecce36beSmrgrm -f $ac_rmfiles 3414ecce36beSmrg 3415ecce36beSmrgif { { ac_try="$ac_link_default" 3416ecce36beSmrgcase "(($ac_try" in 3417ecce36beSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3418ecce36beSmrg *) ac_try_echo=$ac_try;; 3419ecce36beSmrgesac 3420ecce36beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3421ecce36beSmrg$as_echo "$ac_try_echo"; } >&5 3422ecce36beSmrg (eval "$ac_link_default") 2>&5 3423ecce36beSmrg ac_status=$? 3424ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3425ecce36beSmrg test $ac_status = 0; }; then : 3426ecce36beSmrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3427ecce36beSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3428ecce36beSmrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 3429ecce36beSmrg# so that the user can short-circuit this test for compilers unknown to 3430ecce36beSmrg# Autoconf. 3431ecce36beSmrgfor ac_file in $ac_files '' 3432ecce36beSmrgdo 3433ecce36beSmrg test -f "$ac_file" || continue 3434ecce36beSmrg case $ac_file in 3435ecce36beSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3436ecce36beSmrg ;; 3437ecce36beSmrg [ab].out ) 3438ecce36beSmrg # We found the default executable, but exeext='' is most 3439ecce36beSmrg # certainly right. 3440ecce36beSmrg break;; 3441ecce36beSmrg *.* ) 3442ecce36beSmrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3443ecce36beSmrg then :; else 3444ecce36beSmrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3445ecce36beSmrg fi 3446ecce36beSmrg # We set ac_cv_exeext here because the later test for it is not 3447ecce36beSmrg # safe: cross compilers may not add the suffix if given an `-o' 3448ecce36beSmrg # argument, so we may need to know it at that point already. 3449ecce36beSmrg # Even if this section looks crufty: it has the advantage of 3450ecce36beSmrg # actually working. 3451ecce36beSmrg break;; 3452ecce36beSmrg * ) 3453ecce36beSmrg break;; 3454ecce36beSmrg esac 3455ecce36beSmrgdone 3456ecce36beSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 3457ecce36beSmrg 3458ecce36beSmrgelse 3459ecce36beSmrg ac_file='' 3460ecce36beSmrgfi 3461ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3462ecce36beSmrg$as_echo "$ac_file" >&6; } 3463ecce36beSmrgif test -z "$ac_file"; then : 3464ecce36beSmrg $as_echo "$as_me: failed program was:" >&5 3465ecce36beSmrgsed 's/^/| /' conftest.$ac_ext >&5 3466ecce36beSmrg 3467ecce36beSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3468ecce36beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3469ecce36beSmrg{ as_fn_set_status 77 3470ecce36beSmrgas_fn_error "C compiler cannot create executables 3471ecce36beSmrgSee \`config.log' for more details." "$LINENO" 5; }; } 3472ecce36beSmrgfi 3473ecce36beSmrgac_exeext=$ac_cv_exeext 3474ecce36beSmrg 3475ecce36beSmrg# Check that the compiler produces executables we can run. If not, either 3476ecce36beSmrg# the compiler is broken, or we cross compile. 3477ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3478ecce36beSmrg$as_echo_n "checking whether the C compiler works... " >&6; } 3479ecce36beSmrg# If not cross compiling, check that we can run a simple program. 3480ecce36beSmrgif test "$cross_compiling" != yes; then 3481ecce36beSmrg if { ac_try='./$ac_file' 3482ecce36beSmrg { { case "(($ac_try" in 3483ecce36beSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3484ecce36beSmrg *) ac_try_echo=$ac_try;; 3485ecce36beSmrgesac 3486ecce36beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3487ecce36beSmrg$as_echo "$ac_try_echo"; } >&5 3488ecce36beSmrg (eval "$ac_try") 2>&5 3489ecce36beSmrg ac_status=$? 3490ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3491ecce36beSmrg test $ac_status = 0; }; }; then 3492ecce36beSmrg cross_compiling=no 3493ecce36beSmrg else 3494ecce36beSmrg if test "$cross_compiling" = maybe; then 3495ecce36beSmrg cross_compiling=yes 3496ecce36beSmrg else 3497ecce36beSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3498ecce36beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3499ecce36beSmrgas_fn_error "cannot run C compiled programs. 3500ecce36beSmrgIf you meant to cross compile, use \`--host'. 3501ecce36beSmrgSee \`config.log' for more details." "$LINENO" 5; } 3502ecce36beSmrg fi 3503ecce36beSmrg fi 3504ecce36beSmrgfi 3505ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3506ecce36beSmrg$as_echo "yes" >&6; } 3507ecce36beSmrg 3508ecce36beSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3509ecce36beSmrgac_clean_files=$ac_clean_files_save 3510ecce36beSmrg# Check that the compiler produces executables we can run. If not, either 3511ecce36beSmrg# the compiler is broken, or we cross compile. 3512ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3513ecce36beSmrg$as_echo_n "checking whether we are cross compiling... " >&6; } 3514ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3515ecce36beSmrg$as_echo "$cross_compiling" >&6; } 3516ecce36beSmrg 3517ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3518ecce36beSmrg$as_echo_n "checking for suffix of executables... " >&6; } 3519ecce36beSmrgif { { ac_try="$ac_link" 3520ecce36beSmrgcase "(($ac_try" in 3521ecce36beSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3522ecce36beSmrg *) ac_try_echo=$ac_try;; 3523ecce36beSmrgesac 3524ecce36beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3525ecce36beSmrg$as_echo "$ac_try_echo"; } >&5 3526ecce36beSmrg (eval "$ac_link") 2>&5 3527ecce36beSmrg ac_status=$? 3528ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3529ecce36beSmrg test $ac_status = 0; }; then : 3530ecce36beSmrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 3531ecce36beSmrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3532ecce36beSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with 3533ecce36beSmrg# `rm'. 3534ecce36beSmrgfor ac_file in conftest.exe conftest conftest.*; do 3535ecce36beSmrg test -f "$ac_file" || continue 3536ecce36beSmrg case $ac_file in 3537ecce36beSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3538ecce36beSmrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3539ecce36beSmrg break;; 3540ecce36beSmrg * ) break;; 3541ecce36beSmrg esac 3542ecce36beSmrgdone 3543ecce36beSmrgelse 3544ecce36beSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3545ecce36beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3546ecce36beSmrgas_fn_error "cannot compute suffix of executables: cannot compile and link 3547ecce36beSmrgSee \`config.log' for more details." "$LINENO" 5; } 3548ecce36beSmrgfi 3549ecce36beSmrgrm -f conftest$ac_cv_exeext 3550ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3551ecce36beSmrg$as_echo "$ac_cv_exeext" >&6; } 3552ecce36beSmrg 3553ecce36beSmrgrm -f conftest.$ac_ext 3554ecce36beSmrgEXEEXT=$ac_cv_exeext 3555ecce36beSmrgac_exeext=$EXEEXT 3556ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3557ecce36beSmrg$as_echo_n "checking for suffix of object files... " >&6; } 3558ecce36beSmrgif test "${ac_cv_objext+set}" = set; then : 3559ecce36beSmrg $as_echo_n "(cached) " >&6 3560ecce36beSmrgelse 3561ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3562ecce36beSmrg/* end confdefs.h. */ 3563ecce36beSmrg 3564ecce36beSmrgint 3565ecce36beSmrgmain () 3566ecce36beSmrg{ 3567ecce36beSmrg 3568ecce36beSmrg ; 3569ecce36beSmrg return 0; 3570ecce36beSmrg} 3571ecce36beSmrg_ACEOF 3572ecce36beSmrgrm -f conftest.o conftest.obj 3573ecce36beSmrgif { { ac_try="$ac_compile" 3574ecce36beSmrgcase "(($ac_try" in 3575ecce36beSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3576ecce36beSmrg *) ac_try_echo=$ac_try;; 3577ecce36beSmrgesac 3578ecce36beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3579ecce36beSmrg$as_echo "$ac_try_echo"; } >&5 3580ecce36beSmrg (eval "$ac_compile") 2>&5 3581ecce36beSmrg ac_status=$? 3582ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3583ecce36beSmrg test $ac_status = 0; }; then : 3584ecce36beSmrg for ac_file in conftest.o conftest.obj conftest.*; do 3585ecce36beSmrg test -f "$ac_file" || continue; 3586ecce36beSmrg case $ac_file in 3587ecce36beSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3588ecce36beSmrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3589ecce36beSmrg break;; 3590ecce36beSmrg esac 3591ecce36beSmrgdone 3592ecce36beSmrgelse 3593ecce36beSmrg $as_echo "$as_me: failed program was:" >&5 3594ecce36beSmrgsed 's/^/| /' conftest.$ac_ext >&5 3595ecce36beSmrg 3596ecce36beSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3597ecce36beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3598ecce36beSmrgas_fn_error "cannot compute suffix of object files: cannot compile 3599ecce36beSmrgSee \`config.log' for more details." "$LINENO" 5; } 3600ecce36beSmrgfi 3601ecce36beSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 3602ecce36beSmrgfi 3603ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3604ecce36beSmrg$as_echo "$ac_cv_objext" >&6; } 3605ecce36beSmrgOBJEXT=$ac_cv_objext 3606ecce36beSmrgac_objext=$OBJEXT 3607ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3608ecce36beSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3609ecce36beSmrgif test "${ac_cv_c_compiler_gnu+set}" = set; then : 3610ecce36beSmrg $as_echo_n "(cached) " >&6 3611ecce36beSmrgelse 3612ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3613ecce36beSmrg/* end confdefs.h. */ 3614ecce36beSmrg 3615ecce36beSmrgint 3616ecce36beSmrgmain () 3617ecce36beSmrg{ 3618ecce36beSmrg#ifndef __GNUC__ 3619ecce36beSmrg choke me 3620ecce36beSmrg#endif 3621ecce36beSmrg 3622ecce36beSmrg ; 3623ecce36beSmrg return 0; 3624ecce36beSmrg} 3625ecce36beSmrg_ACEOF 3626ecce36beSmrgif ac_fn_c_try_compile "$LINENO"; then : 3627ecce36beSmrg ac_compiler_gnu=yes 3628ecce36beSmrgelse 3629ecce36beSmrg ac_compiler_gnu=no 3630ecce36beSmrgfi 3631ecce36beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3632ecce36beSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu 3633ecce36beSmrg 3634ecce36beSmrgfi 3635ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3636ecce36beSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3637ecce36beSmrgif test $ac_compiler_gnu = yes; then 3638ecce36beSmrg GCC=yes 3639ecce36beSmrgelse 3640ecce36beSmrg GCC= 3641ecce36beSmrgfi 3642ecce36beSmrgac_test_CFLAGS=${CFLAGS+set} 3643ecce36beSmrgac_save_CFLAGS=$CFLAGS 3644ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3645ecce36beSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 3646ecce36beSmrgif test "${ac_cv_prog_cc_g+set}" = set; then : 3647ecce36beSmrg $as_echo_n "(cached) " >&6 3648ecce36beSmrgelse 3649ecce36beSmrg ac_save_c_werror_flag=$ac_c_werror_flag 3650ecce36beSmrg ac_c_werror_flag=yes 3651ecce36beSmrg ac_cv_prog_cc_g=no 3652ecce36beSmrg CFLAGS="-g" 3653ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3654ecce36beSmrg/* end confdefs.h. */ 3655ecce36beSmrg 3656ecce36beSmrgint 3657ecce36beSmrgmain () 3658ecce36beSmrg{ 3659ecce36beSmrg 3660ecce36beSmrg ; 3661ecce36beSmrg return 0; 3662ecce36beSmrg} 3663ecce36beSmrg_ACEOF 3664ecce36beSmrgif ac_fn_c_try_compile "$LINENO"; then : 3665ecce36beSmrg ac_cv_prog_cc_g=yes 3666ecce36beSmrgelse 3667ecce36beSmrg CFLAGS="" 3668ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3669ecce36beSmrg/* end confdefs.h. */ 3670ecce36beSmrg 3671ecce36beSmrgint 3672ecce36beSmrgmain () 3673ecce36beSmrg{ 3674ecce36beSmrg 3675ecce36beSmrg ; 3676ecce36beSmrg return 0; 3677ecce36beSmrg} 3678ecce36beSmrg_ACEOF 3679ecce36beSmrgif ac_fn_c_try_compile "$LINENO"; then : 3680ecce36beSmrg 3681ecce36beSmrgelse 3682ecce36beSmrg ac_c_werror_flag=$ac_save_c_werror_flag 3683ecce36beSmrg CFLAGS="-g" 3684ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3685ecce36beSmrg/* end confdefs.h. */ 3686ecce36beSmrg 3687ecce36beSmrgint 3688ecce36beSmrgmain () 3689ecce36beSmrg{ 3690ecce36beSmrg 3691ecce36beSmrg ; 3692ecce36beSmrg return 0; 3693ecce36beSmrg} 3694ecce36beSmrg_ACEOF 3695ecce36beSmrgif ac_fn_c_try_compile "$LINENO"; then : 3696ecce36beSmrg ac_cv_prog_cc_g=yes 3697ecce36beSmrgfi 3698ecce36beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3699ecce36beSmrgfi 3700ecce36beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3701ecce36beSmrgfi 3702ecce36beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3703ecce36beSmrg ac_c_werror_flag=$ac_save_c_werror_flag 3704ecce36beSmrgfi 3705ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3706ecce36beSmrg$as_echo "$ac_cv_prog_cc_g" >&6; } 3707ecce36beSmrgif test "$ac_test_CFLAGS" = set; then 3708ecce36beSmrg CFLAGS=$ac_save_CFLAGS 3709ecce36beSmrgelif test $ac_cv_prog_cc_g = yes; then 3710ecce36beSmrg if test "$GCC" = yes; then 3711ecce36beSmrg CFLAGS="-g -O2" 3712ecce36beSmrg else 3713ecce36beSmrg CFLAGS="-g" 3714ecce36beSmrg fi 3715ecce36beSmrgelse 3716ecce36beSmrg if test "$GCC" = yes; then 3717ecce36beSmrg CFLAGS="-O2" 3718ecce36beSmrg else 3719ecce36beSmrg CFLAGS= 3720ecce36beSmrg fi 3721ecce36beSmrgfi 3722ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3723ecce36beSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3724ecce36beSmrgif test "${ac_cv_prog_cc_c89+set}" = set; then : 3725ecce36beSmrg $as_echo_n "(cached) " >&6 3726ecce36beSmrgelse 3727ecce36beSmrg ac_cv_prog_cc_c89=no 3728ecce36beSmrgac_save_CC=$CC 3729ecce36beSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3730ecce36beSmrg/* end confdefs.h. */ 3731ecce36beSmrg#include <stdarg.h> 3732ecce36beSmrg#include <stdio.h> 3733ecce36beSmrg#include <sys/types.h> 3734ecce36beSmrg#include <sys/stat.h> 3735ecce36beSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3736ecce36beSmrgstruct buf { int x; }; 3737ecce36beSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 3738ecce36beSmrgstatic char *e (p, i) 3739ecce36beSmrg char **p; 3740ecce36beSmrg int i; 3741ecce36beSmrg{ 3742ecce36beSmrg return p[i]; 3743ecce36beSmrg} 3744ecce36beSmrgstatic char *f (char * (*g) (char **, int), char **p, ...) 3745ecce36beSmrg{ 3746ecce36beSmrg char *s; 3747ecce36beSmrg va_list v; 3748ecce36beSmrg va_start (v,p); 3749ecce36beSmrg s = g (p, va_arg (v,int)); 3750ecce36beSmrg va_end (v); 3751ecce36beSmrg return s; 3752ecce36beSmrg} 3753ecce36beSmrg 3754ecce36beSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3755ecce36beSmrg function prototypes and stuff, but not '\xHH' hex character constants. 3756ecce36beSmrg These don't provoke an error unfortunately, instead are silently treated 3757ecce36beSmrg as 'x'. The following induces an error, until -std is added to get 3758ecce36beSmrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3759ecce36beSmrg array size at least. It's necessary to write '\x00'==0 to get something 3760ecce36beSmrg that's true only with -std. */ 3761ecce36beSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3762ecce36beSmrg 3763ecce36beSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3764ecce36beSmrg inside strings and character constants. */ 3765ecce36beSmrg#define FOO(x) 'x' 3766ecce36beSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3767ecce36beSmrg 3768ecce36beSmrgint test (int i, double x); 3769ecce36beSmrgstruct s1 {int (*f) (int a);}; 3770ecce36beSmrgstruct s2 {int (*f) (double a);}; 3771ecce36beSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3772ecce36beSmrgint argc; 3773ecce36beSmrgchar **argv; 3774ecce36beSmrgint 3775ecce36beSmrgmain () 3776ecce36beSmrg{ 3777ecce36beSmrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3778ecce36beSmrg ; 3779ecce36beSmrg return 0; 3780ecce36beSmrg} 3781ecce36beSmrg_ACEOF 3782ecce36beSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3783ecce36beSmrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3784ecce36beSmrgdo 3785ecce36beSmrg CC="$ac_save_CC $ac_arg" 3786ecce36beSmrg if ac_fn_c_try_compile "$LINENO"; then : 3787ecce36beSmrg ac_cv_prog_cc_c89=$ac_arg 3788ecce36beSmrgfi 3789ecce36beSmrgrm -f core conftest.err conftest.$ac_objext 3790ecce36beSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 3791ecce36beSmrgdone 3792ecce36beSmrgrm -f conftest.$ac_ext 3793ecce36beSmrgCC=$ac_save_CC 3794ecce36beSmrg 3795ecce36beSmrgfi 3796ecce36beSmrg# AC_CACHE_VAL 3797ecce36beSmrgcase "x$ac_cv_prog_cc_c89" in 3798ecce36beSmrg x) 3799ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3800ecce36beSmrg$as_echo "none needed" >&6; } ;; 3801ecce36beSmrg xno) 3802ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3803ecce36beSmrg$as_echo "unsupported" >&6; } ;; 3804ecce36beSmrg *) 3805ecce36beSmrg CC="$CC $ac_cv_prog_cc_c89" 3806ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3807ecce36beSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3808ecce36beSmrgesac 3809ecce36beSmrgif test "x$ac_cv_prog_cc_c89" != xno; then : 3810ecce36beSmrg 3811ecce36beSmrgfi 3812ecce36beSmrg 3813ecce36beSmrgac_ext=c 3814ecce36beSmrgac_cpp='$CPP $CPPFLAGS' 3815ecce36beSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3816ecce36beSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3817ecce36beSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3818ecce36beSmrgDEPDIR="${am__leading_dot}deps" 3819ecce36beSmrg 3820ecce36beSmrgac_config_commands="$ac_config_commands depfiles" 3821ecce36beSmrg 3822ecce36beSmrg 3823ecce36beSmrgam_make=${MAKE-make} 3824ecce36beSmrgcat > confinc << 'END' 3825ecce36beSmrgam__doit: 3826ecce36beSmrg @echo this is the am__doit target 3827ecce36beSmrg.PHONY: am__doit 3828ecce36beSmrgEND 3829ecce36beSmrg# If we don't find an include directive, just comment out the code. 3830ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3831ecce36beSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 3832ecce36beSmrgam__include="#" 3833ecce36beSmrgam__quote= 3834ecce36beSmrg_am_result=none 3835ecce36beSmrg# First try GNU make style include. 3836ecce36beSmrgecho "include confinc" > confmf 3837ecce36beSmrg# Ignore all kinds of additional output from `make'. 3838ecce36beSmrgcase `$am_make -s -f confmf 2> /dev/null` in #( 3839ecce36beSmrg*the\ am__doit\ target*) 3840ecce36beSmrg am__include=include 3841ecce36beSmrg am__quote= 3842ecce36beSmrg _am_result=GNU 3843ecce36beSmrg ;; 3844ecce36beSmrgesac 3845ecce36beSmrg# Now try BSD make style include. 3846ecce36beSmrgif test "$am__include" = "#"; then 3847ecce36beSmrg echo '.include "confinc"' > confmf 3848ecce36beSmrg case `$am_make -s -f confmf 2> /dev/null` in #( 3849ecce36beSmrg *the\ am__doit\ target*) 3850ecce36beSmrg am__include=.include 3851ecce36beSmrg am__quote="\"" 3852ecce36beSmrg _am_result=BSD 3853ecce36beSmrg ;; 3854ecce36beSmrg esac 3855ecce36beSmrgfi 3856ecce36beSmrg 3857ecce36beSmrg 3858ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3859ecce36beSmrg$as_echo "$_am_result" >&6; } 3860ecce36beSmrgrm -f confinc confmf 3861ecce36beSmrg 3862ecce36beSmrg# Check whether --enable-dependency-tracking was given. 3863ecce36beSmrgif test "${enable_dependency_tracking+set}" = set; then : 3864ecce36beSmrg enableval=$enable_dependency_tracking; 3865ecce36beSmrgfi 3866ecce36beSmrg 3867ecce36beSmrgif test "x$enable_dependency_tracking" != xno; then 3868ecce36beSmrg am_depcomp="$ac_aux_dir/depcomp" 3869ecce36beSmrg AMDEPBACKSLASH='\' 3870ecce36beSmrgfi 3871ecce36beSmrg if test "x$enable_dependency_tracking" != xno; then 3872ecce36beSmrg AMDEP_TRUE= 3873ecce36beSmrg AMDEP_FALSE='#' 3874ecce36beSmrgelse 3875ecce36beSmrg AMDEP_TRUE='#' 3876ecce36beSmrg AMDEP_FALSE= 3877ecce36beSmrgfi 3878ecce36beSmrg 3879ecce36beSmrg 3880ecce36beSmrg 3881ecce36beSmrgdepcc="$CC" am_compiler_list= 3882ecce36beSmrg 3883ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3884ecce36beSmrg$as_echo_n "checking dependency style of $depcc... " >&6; } 3885ecce36beSmrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3886ecce36beSmrg $as_echo_n "(cached) " >&6 3887ecce36beSmrgelse 3888ecce36beSmrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3889ecce36beSmrg # We make a subdir and do the tests there. Otherwise we can end up 3890ecce36beSmrg # making bogus files that we don't know about and never remove. For 3891ecce36beSmrg # instance it was reported that on HP-UX the gcc test will end up 3892ecce36beSmrg # making a dummy file named `D' -- because `-MD' means `put the output 3893ecce36beSmrg # in D'. 3894ecce36beSmrg mkdir conftest.dir 3895ecce36beSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 3896ecce36beSmrg # using a relative directory. 3897ecce36beSmrg cp "$am_depcomp" conftest.dir 3898ecce36beSmrg cd conftest.dir 3899ecce36beSmrg # We will build objects and dependencies in a subdirectory because 3900ecce36beSmrg # it helps to detect inapplicable dependency modes. For instance 3901ecce36beSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 3902ecce36beSmrg # side effect of compilation, but ICC will put the dependencies in 3903ecce36beSmrg # the current directory while Tru64 will put them in the object 3904ecce36beSmrg # directory. 3905ecce36beSmrg mkdir sub 3906ecce36beSmrg 3907ecce36beSmrg am_cv_CC_dependencies_compiler_type=none 3908ecce36beSmrg if test "$am_compiler_list" = ""; then 3909ecce36beSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3910ecce36beSmrg fi 3911ecce36beSmrg am__universal=false 3912ecce36beSmrg case " $depcc " in #( 3913ecce36beSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 3914ecce36beSmrg esac 3915ecce36beSmrg 3916ecce36beSmrg for depmode in $am_compiler_list; do 3917ecce36beSmrg # Setup a source with many dependencies, because some compilers 3918ecce36beSmrg # like to wrap large dependency lists on column 80 (with \), and 3919ecce36beSmrg # we should not choose a depcomp mode which is confused by this. 3920ecce36beSmrg # 3921ecce36beSmrg # We need to recreate these files for each test, as the compiler may 3922ecce36beSmrg # overwrite some of them when testing with obscure command lines. 3923ecce36beSmrg # This happens at least with the AIX C compiler. 3924ecce36beSmrg : > sub/conftest.c 3925ecce36beSmrg for i in 1 2 3 4 5 6; do 3926ecce36beSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 3927ecce36beSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3928ecce36beSmrg # Solaris 8's {/usr,}/bin/sh. 3929ecce36beSmrg touch sub/conftst$i.h 3930ecce36beSmrg done 3931ecce36beSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3932ecce36beSmrg 3933ecce36beSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 3934ecce36beSmrg # mode. It turns out that the SunPro C++ compiler does not properly 3935ecce36beSmrg # handle `-M -o', and we need to detect this. Also, some Intel 3936ecce36beSmrg # versions had trouble with output in subdirs 3937ecce36beSmrg am__obj=sub/conftest.${OBJEXT-o} 3938ecce36beSmrg am__minus_obj="-o $am__obj" 3939ecce36beSmrg case $depmode in 3940ecce36beSmrg gcc) 3941ecce36beSmrg # This depmode causes a compiler race in universal mode. 3942ecce36beSmrg test "$am__universal" = false || continue 3943ecce36beSmrg ;; 3944ecce36beSmrg nosideeffect) 3945ecce36beSmrg # after this tag, mechanisms are not by side-effect, so they'll 3946ecce36beSmrg # only be used when explicitly requested 3947ecce36beSmrg if test "x$enable_dependency_tracking" = xyes; then 3948ecce36beSmrg continue 3949ecce36beSmrg else 3950ecce36beSmrg break 3951ecce36beSmrg fi 3952ecce36beSmrg ;; 3953ecce36beSmrg msvisualcpp | msvcmsys) 3954ecce36beSmrg # This compiler won't grok `-c -o', but also, the minuso test has 3955ecce36beSmrg # not run yet. These depmodes are late enough in the game, and 3956ecce36beSmrg # so weak that their functioning should not be impacted. 3957ecce36beSmrg am__obj=conftest.${OBJEXT-o} 3958ecce36beSmrg am__minus_obj= 3959ecce36beSmrg ;; 3960ecce36beSmrg none) break ;; 3961ecce36beSmrg esac 3962ecce36beSmrg if depmode=$depmode \ 3963ecce36beSmrg source=sub/conftest.c object=$am__obj \ 3964ecce36beSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3965ecce36beSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3966ecce36beSmrg >/dev/null 2>conftest.err && 3967ecce36beSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3968ecce36beSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3969ecce36beSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3970ecce36beSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3971ecce36beSmrg # icc doesn't choke on unknown options, it will just issue warnings 3972ecce36beSmrg # or remarks (even with -Werror). So we grep stderr for any message 3973ecce36beSmrg # that says an option was ignored or not supported. 3974ecce36beSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 3975ecce36beSmrg # icc: Command line warning: ignoring option '-M'; no argument required 3976ecce36beSmrg # The diagnosis changed in icc 8.0: 3977ecce36beSmrg # icc: Command line remark: option '-MP' not supported 3978ecce36beSmrg if (grep 'ignoring option' conftest.err || 3979ecce36beSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3980ecce36beSmrg am_cv_CC_dependencies_compiler_type=$depmode 3981ecce36beSmrg break 3982ecce36beSmrg fi 3983ecce36beSmrg fi 3984ecce36beSmrg done 3985ecce36beSmrg 3986ecce36beSmrg cd .. 3987ecce36beSmrg rm -rf conftest.dir 3988ecce36beSmrgelse 3989ecce36beSmrg am_cv_CC_dependencies_compiler_type=none 3990ecce36beSmrgfi 3991ecce36beSmrg 3992ecce36beSmrgfi 3993ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3994ecce36beSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3995ecce36beSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3996ecce36beSmrg 3997ecce36beSmrg if 3998ecce36beSmrg test "x$enable_dependency_tracking" != xno \ 3999ecce36beSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4000ecce36beSmrg am__fastdepCC_TRUE= 4001ecce36beSmrg am__fastdepCC_FALSE='#' 4002ecce36beSmrgelse 4003ecce36beSmrg am__fastdepCC_TRUE='#' 4004ecce36beSmrg am__fastdepCC_FALSE= 4005ecce36beSmrgfi 4006ecce36beSmrg 4007ecce36beSmrg 4008ecce36beSmrgcase `pwd` in 4009ecce36beSmrg *\ * | *\ *) 4010ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4011ecce36beSmrg$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4012ecce36beSmrgesac 4013ecce36beSmrg 4014ecce36beSmrg 4015ecce36beSmrg 4016ecce36beSmrgmacro_version='2.2.6' 4017ecce36beSmrgmacro_revision='1.3012' 4018ecce36beSmrg 4019ecce36beSmrg 4020ecce36beSmrg 4021ecce36beSmrg 4022ecce36beSmrg 4023ecce36beSmrg 4024ecce36beSmrg 4025ecce36beSmrg 4026ecce36beSmrg 4027ecce36beSmrg 4028ecce36beSmrg 4029ecce36beSmrg 4030ecce36beSmrg 4031ecce36beSmrgltmain="$ac_aux_dir/ltmain.sh" 4032ecce36beSmrg 4033ecce36beSmrg# Make sure we can run config.sub. 4034ecce36beSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4035ecce36beSmrg as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4036ecce36beSmrg 4037ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4038ecce36beSmrg$as_echo_n "checking build system type... " >&6; } 4039ecce36beSmrgif test "${ac_cv_build+set}" = set; then : 4040ecce36beSmrg $as_echo_n "(cached) " >&6 4041ecce36beSmrgelse 4042ecce36beSmrg ac_build_alias=$build_alias 4043ecce36beSmrgtest "x$ac_build_alias" = x && 4044ecce36beSmrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4045ecce36beSmrgtest "x$ac_build_alias" = x && 4046ecce36beSmrg as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 4047ecce36beSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4048ecce36beSmrg as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4049ecce36beSmrg 4050ecce36beSmrgfi 4051ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4052ecce36beSmrg$as_echo "$ac_cv_build" >&6; } 4053ecce36beSmrgcase $ac_cv_build in 4054ecce36beSmrg*-*-*) ;; 4055ecce36beSmrg*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 4056ecce36beSmrgesac 4057ecce36beSmrgbuild=$ac_cv_build 4058ecce36beSmrgac_save_IFS=$IFS; IFS='-' 4059ecce36beSmrgset x $ac_cv_build 4060ecce36beSmrgshift 4061ecce36beSmrgbuild_cpu=$1 4062ecce36beSmrgbuild_vendor=$2 4063ecce36beSmrgshift; shift 4064ecce36beSmrg# Remember, the first character of IFS is used to create $*, 4065ecce36beSmrg# except with old shells: 4066ecce36beSmrgbuild_os=$* 4067ecce36beSmrgIFS=$ac_save_IFS 4068ecce36beSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4069ecce36beSmrg 4070ecce36beSmrg 4071ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4072ecce36beSmrg$as_echo_n "checking host system type... " >&6; } 4073ecce36beSmrgif test "${ac_cv_host+set}" = set; then : 4074ecce36beSmrg $as_echo_n "(cached) " >&6 4075ecce36beSmrgelse 4076ecce36beSmrg if test "x$host_alias" = x; then 4077ecce36beSmrg ac_cv_host=$ac_cv_build 4078ecce36beSmrgelse 4079ecce36beSmrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4080ecce36beSmrg as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4081ecce36beSmrgfi 4082ecce36beSmrg 4083ecce36beSmrgfi 4084ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4085ecce36beSmrg$as_echo "$ac_cv_host" >&6; } 4086ecce36beSmrgcase $ac_cv_host in 4087ecce36beSmrg*-*-*) ;; 4088ecce36beSmrg*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 4089ecce36beSmrgesac 4090ecce36beSmrghost=$ac_cv_host 4091ecce36beSmrgac_save_IFS=$IFS; IFS='-' 4092ecce36beSmrgset x $ac_cv_host 4093ecce36beSmrgshift 4094ecce36beSmrghost_cpu=$1 4095ecce36beSmrghost_vendor=$2 4096ecce36beSmrgshift; shift 4097ecce36beSmrg# Remember, the first character of IFS is used to create $*, 4098ecce36beSmrg# except with old shells: 4099ecce36beSmrghost_os=$* 4100ecce36beSmrgIFS=$ac_save_IFS 4101ecce36beSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4102ecce36beSmrg 4103ecce36beSmrg 4104ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4105ecce36beSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4106ecce36beSmrgif test "${ac_cv_path_SED+set}" = set; then : 4107ecce36beSmrg $as_echo_n "(cached) " >&6 4108ecce36beSmrgelse 4109ecce36beSmrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4110ecce36beSmrg for ac_i in 1 2 3 4 5 6 7; do 4111ecce36beSmrg ac_script="$ac_script$as_nl$ac_script" 4112ecce36beSmrg done 4113ecce36beSmrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4114ecce36beSmrg { ac_script=; unset ac_script;} 4115ecce36beSmrg if test -z "$SED"; then 4116ecce36beSmrg ac_path_SED_found=false 4117ecce36beSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4118ecce36beSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4119ecce36beSmrgfor as_dir in $PATH 4120ecce36beSmrgdo 4121ecce36beSmrg IFS=$as_save_IFS 4122ecce36beSmrg test -z "$as_dir" && as_dir=. 4123ecce36beSmrg for ac_prog in sed gsed; do 4124ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4125ecce36beSmrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4126ecce36beSmrg { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4127ecce36beSmrg# Check for GNU ac_path_SED and select it if it is found. 4128ecce36beSmrg # Check for GNU $ac_path_SED 4129ecce36beSmrgcase `"$ac_path_SED" --version 2>&1` in 4130ecce36beSmrg*GNU*) 4131ecce36beSmrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4132ecce36beSmrg*) 4133ecce36beSmrg ac_count=0 4134ecce36beSmrg $as_echo_n 0123456789 >"conftest.in" 4135ecce36beSmrg while : 4136ecce36beSmrg do 4137ecce36beSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4138ecce36beSmrg mv "conftest.tmp" "conftest.in" 4139ecce36beSmrg cp "conftest.in" "conftest.nl" 4140ecce36beSmrg $as_echo '' >> "conftest.nl" 4141ecce36beSmrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4142ecce36beSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4143ecce36beSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4144ecce36beSmrg if test $ac_count -gt ${ac_path_SED_max-0}; then 4145ecce36beSmrg # Best one so far, save it but keep looking for a better one 4146ecce36beSmrg ac_cv_path_SED="$ac_path_SED" 4147ecce36beSmrg ac_path_SED_max=$ac_count 4148ecce36beSmrg fi 4149ecce36beSmrg # 10*(2^10) chars as input seems more than enough 4150ecce36beSmrg test $ac_count -gt 10 && break 4151ecce36beSmrg done 4152ecce36beSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4153ecce36beSmrgesac 4154ecce36beSmrg 4155ecce36beSmrg $ac_path_SED_found && break 3 4156ecce36beSmrg done 4157ecce36beSmrg done 4158ecce36beSmrg done 4159ecce36beSmrgIFS=$as_save_IFS 4160ecce36beSmrg if test -z "$ac_cv_path_SED"; then 4161ecce36beSmrg as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4162ecce36beSmrg fi 4163ecce36beSmrgelse 4164ecce36beSmrg ac_cv_path_SED=$SED 4165ecce36beSmrgfi 4166ecce36beSmrg 4167ecce36beSmrgfi 4168ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4169ecce36beSmrg$as_echo "$ac_cv_path_SED" >&6; } 4170ecce36beSmrg SED="$ac_cv_path_SED" 4171ecce36beSmrg rm -f conftest.sed 4172ecce36beSmrg 4173ecce36beSmrgtest -z "$SED" && SED=sed 4174ecce36beSmrgXsed="$SED -e 1s/^X//" 4175ecce36beSmrg 4176ecce36beSmrg 4177ecce36beSmrg 4178ecce36beSmrg 4179ecce36beSmrg 4180ecce36beSmrg 4181ecce36beSmrg 4182ecce36beSmrg 4183ecce36beSmrg 4184ecce36beSmrg 4185ecce36beSmrg 4186ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4187ecce36beSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4188ecce36beSmrgif test "${ac_cv_path_GREP+set}" = set; then : 4189ecce36beSmrg $as_echo_n "(cached) " >&6 4190ecce36beSmrgelse 4191ecce36beSmrg if test -z "$GREP"; then 4192ecce36beSmrg ac_path_GREP_found=false 4193ecce36beSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4194ecce36beSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4195ecce36beSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4196ecce36beSmrgdo 4197ecce36beSmrg IFS=$as_save_IFS 4198ecce36beSmrg test -z "$as_dir" && as_dir=. 4199ecce36beSmrg for ac_prog in grep ggrep; do 4200ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4201ecce36beSmrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4202ecce36beSmrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4203ecce36beSmrg# Check for GNU ac_path_GREP and select it if it is found. 4204ecce36beSmrg # Check for GNU $ac_path_GREP 4205ecce36beSmrgcase `"$ac_path_GREP" --version 2>&1` in 4206ecce36beSmrg*GNU*) 4207ecce36beSmrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4208ecce36beSmrg*) 4209ecce36beSmrg ac_count=0 4210ecce36beSmrg $as_echo_n 0123456789 >"conftest.in" 4211ecce36beSmrg while : 4212ecce36beSmrg do 4213ecce36beSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4214ecce36beSmrg mv "conftest.tmp" "conftest.in" 4215ecce36beSmrg cp "conftest.in" "conftest.nl" 4216ecce36beSmrg $as_echo 'GREP' >> "conftest.nl" 4217ecce36beSmrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4218ecce36beSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4219ecce36beSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4220ecce36beSmrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 4221ecce36beSmrg # Best one so far, save it but keep looking for a better one 4222ecce36beSmrg ac_cv_path_GREP="$ac_path_GREP" 4223ecce36beSmrg ac_path_GREP_max=$ac_count 4224ecce36beSmrg fi 4225ecce36beSmrg # 10*(2^10) chars as input seems more than enough 4226ecce36beSmrg test $ac_count -gt 10 && break 4227ecce36beSmrg done 4228ecce36beSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4229ecce36beSmrgesac 4230ecce36beSmrg 4231ecce36beSmrg $ac_path_GREP_found && break 3 4232ecce36beSmrg done 4233ecce36beSmrg done 4234ecce36beSmrg done 4235ecce36beSmrgIFS=$as_save_IFS 4236ecce36beSmrg if test -z "$ac_cv_path_GREP"; then 4237ecce36beSmrg as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4238ecce36beSmrg fi 4239ecce36beSmrgelse 4240ecce36beSmrg ac_cv_path_GREP=$GREP 4241ecce36beSmrgfi 4242ecce36beSmrg 4243ecce36beSmrgfi 4244ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4245ecce36beSmrg$as_echo "$ac_cv_path_GREP" >&6; } 4246ecce36beSmrg GREP="$ac_cv_path_GREP" 4247ecce36beSmrg 4248ecce36beSmrg 4249ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4250ecce36beSmrg$as_echo_n "checking for egrep... " >&6; } 4251ecce36beSmrgif test "${ac_cv_path_EGREP+set}" = set; then : 4252ecce36beSmrg $as_echo_n "(cached) " >&6 4253ecce36beSmrgelse 4254ecce36beSmrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4255ecce36beSmrg then ac_cv_path_EGREP="$GREP -E" 4256ecce36beSmrg else 4257ecce36beSmrg if test -z "$EGREP"; then 4258ecce36beSmrg ac_path_EGREP_found=false 4259ecce36beSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4260ecce36beSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4261ecce36beSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4262ecce36beSmrgdo 4263ecce36beSmrg IFS=$as_save_IFS 4264ecce36beSmrg test -z "$as_dir" && as_dir=. 4265ecce36beSmrg for ac_prog in egrep; do 4266ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4267ecce36beSmrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4268ecce36beSmrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4269ecce36beSmrg# Check for GNU ac_path_EGREP and select it if it is found. 4270ecce36beSmrg # Check for GNU $ac_path_EGREP 4271ecce36beSmrgcase `"$ac_path_EGREP" --version 2>&1` in 4272ecce36beSmrg*GNU*) 4273ecce36beSmrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4274ecce36beSmrg*) 4275ecce36beSmrg ac_count=0 4276ecce36beSmrg $as_echo_n 0123456789 >"conftest.in" 4277ecce36beSmrg while : 4278ecce36beSmrg do 4279ecce36beSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4280ecce36beSmrg mv "conftest.tmp" "conftest.in" 4281ecce36beSmrg cp "conftest.in" "conftest.nl" 4282ecce36beSmrg $as_echo 'EGREP' >> "conftest.nl" 4283ecce36beSmrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4284ecce36beSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4285ecce36beSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4286ecce36beSmrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4287ecce36beSmrg # Best one so far, save it but keep looking for a better one 4288ecce36beSmrg ac_cv_path_EGREP="$ac_path_EGREP" 4289ecce36beSmrg ac_path_EGREP_max=$ac_count 4290ecce36beSmrg fi 4291ecce36beSmrg # 10*(2^10) chars as input seems more than enough 4292ecce36beSmrg test $ac_count -gt 10 && break 4293ecce36beSmrg done 4294ecce36beSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4295ecce36beSmrgesac 4296ecce36beSmrg 4297ecce36beSmrg $ac_path_EGREP_found && break 3 4298ecce36beSmrg done 4299ecce36beSmrg done 4300ecce36beSmrg done 4301ecce36beSmrgIFS=$as_save_IFS 4302ecce36beSmrg if test -z "$ac_cv_path_EGREP"; then 4303ecce36beSmrg as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4304ecce36beSmrg fi 4305ecce36beSmrgelse 4306ecce36beSmrg ac_cv_path_EGREP=$EGREP 4307ecce36beSmrgfi 4308ecce36beSmrg 4309ecce36beSmrg fi 4310ecce36beSmrgfi 4311ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4312ecce36beSmrg$as_echo "$ac_cv_path_EGREP" >&6; } 4313ecce36beSmrg EGREP="$ac_cv_path_EGREP" 4314ecce36beSmrg 4315ecce36beSmrg 4316ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4317ecce36beSmrg$as_echo_n "checking for fgrep... " >&6; } 4318ecce36beSmrgif test "${ac_cv_path_FGREP+set}" = set; then : 4319ecce36beSmrg $as_echo_n "(cached) " >&6 4320ecce36beSmrgelse 4321ecce36beSmrg if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4322ecce36beSmrg then ac_cv_path_FGREP="$GREP -F" 4323ecce36beSmrg else 4324ecce36beSmrg if test -z "$FGREP"; then 4325ecce36beSmrg ac_path_FGREP_found=false 4326ecce36beSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4327ecce36beSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4328ecce36beSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4329ecce36beSmrgdo 4330ecce36beSmrg IFS=$as_save_IFS 4331ecce36beSmrg test -z "$as_dir" && as_dir=. 4332ecce36beSmrg for ac_prog in fgrep; do 4333ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4334ecce36beSmrg ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4335ecce36beSmrg { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4336ecce36beSmrg# Check for GNU ac_path_FGREP and select it if it is found. 4337ecce36beSmrg # Check for GNU $ac_path_FGREP 4338ecce36beSmrgcase `"$ac_path_FGREP" --version 2>&1` in 4339ecce36beSmrg*GNU*) 4340ecce36beSmrg ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4341ecce36beSmrg*) 4342ecce36beSmrg ac_count=0 4343ecce36beSmrg $as_echo_n 0123456789 >"conftest.in" 4344ecce36beSmrg while : 4345ecce36beSmrg do 4346ecce36beSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4347ecce36beSmrg mv "conftest.tmp" "conftest.in" 4348ecce36beSmrg cp "conftest.in" "conftest.nl" 4349ecce36beSmrg $as_echo 'FGREP' >> "conftest.nl" 4350ecce36beSmrg "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4351ecce36beSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4352ecce36beSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4353ecce36beSmrg if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4354ecce36beSmrg # Best one so far, save it but keep looking for a better one 4355ecce36beSmrg ac_cv_path_FGREP="$ac_path_FGREP" 4356ecce36beSmrg ac_path_FGREP_max=$ac_count 4357ecce36beSmrg fi 4358ecce36beSmrg # 10*(2^10) chars as input seems more than enough 4359ecce36beSmrg test $ac_count -gt 10 && break 4360ecce36beSmrg done 4361ecce36beSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4362ecce36beSmrgesac 4363ecce36beSmrg 4364ecce36beSmrg $ac_path_FGREP_found && break 3 4365ecce36beSmrg done 4366ecce36beSmrg done 4367ecce36beSmrg done 4368ecce36beSmrgIFS=$as_save_IFS 4369ecce36beSmrg if test -z "$ac_cv_path_FGREP"; then 4370ecce36beSmrg as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4371ecce36beSmrg fi 4372ecce36beSmrgelse 4373ecce36beSmrg ac_cv_path_FGREP=$FGREP 4374ecce36beSmrgfi 4375ecce36beSmrg 4376ecce36beSmrg fi 4377ecce36beSmrgfi 4378ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4379ecce36beSmrg$as_echo "$ac_cv_path_FGREP" >&6; } 4380ecce36beSmrg FGREP="$ac_cv_path_FGREP" 4381ecce36beSmrg 4382ecce36beSmrg 4383ecce36beSmrgtest -z "$GREP" && GREP=grep 4384ecce36beSmrg 4385ecce36beSmrg 4386ecce36beSmrg 4387ecce36beSmrg 4388ecce36beSmrg 4389ecce36beSmrg 4390ecce36beSmrg 4391ecce36beSmrg 4392ecce36beSmrg 4393ecce36beSmrg 4394ecce36beSmrg 4395ecce36beSmrg 4396ecce36beSmrg 4397ecce36beSmrg 4398ecce36beSmrg 4399ecce36beSmrg 4400ecce36beSmrg 4401ecce36beSmrg 4402ecce36beSmrg 4403ecce36beSmrg# Check whether --with-gnu-ld was given. 4404ecce36beSmrgif test "${with_gnu_ld+set}" = set; then : 4405ecce36beSmrg withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4406ecce36beSmrgelse 4407ecce36beSmrg with_gnu_ld=no 4408ecce36beSmrgfi 4409ecce36beSmrg 4410ecce36beSmrgac_prog=ld 4411ecce36beSmrgif test "$GCC" = yes; then 4412ecce36beSmrg # Check if gcc -print-prog-name=ld gives a path. 4413ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4414ecce36beSmrg$as_echo_n "checking for ld used by $CC... " >&6; } 4415ecce36beSmrg case $host in 4416ecce36beSmrg *-*-mingw*) 4417ecce36beSmrg # gcc leaves a trailing carriage return which upsets mingw 4418ecce36beSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4419ecce36beSmrg *) 4420ecce36beSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4421ecce36beSmrg esac 4422ecce36beSmrg case $ac_prog in 4423ecce36beSmrg # Accept absolute paths. 4424ecce36beSmrg [\\/]* | ?:[\\/]*) 4425ecce36beSmrg re_direlt='/[^/][^/]*/\.\./' 4426ecce36beSmrg # Canonicalize the pathname of ld 4427ecce36beSmrg ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4428ecce36beSmrg while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4429ecce36beSmrg ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4430ecce36beSmrg done 4431ecce36beSmrg test -z "$LD" && LD="$ac_prog" 4432ecce36beSmrg ;; 4433ecce36beSmrg "") 4434ecce36beSmrg # If it fails, then pretend we aren't using GCC. 4435ecce36beSmrg ac_prog=ld 4436ecce36beSmrg ;; 4437ecce36beSmrg *) 4438ecce36beSmrg # If it is relative, then search for the first ld in PATH. 4439ecce36beSmrg with_gnu_ld=unknown 4440ecce36beSmrg ;; 4441ecce36beSmrg esac 4442ecce36beSmrgelif test "$with_gnu_ld" = yes; then 4443ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4444ecce36beSmrg$as_echo_n "checking for GNU ld... " >&6; } 4445ecce36beSmrgelse 4446ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4447ecce36beSmrg$as_echo_n "checking for non-GNU ld... " >&6; } 4448ecce36beSmrgfi 4449ecce36beSmrgif test "${lt_cv_path_LD+set}" = set; then : 4450ecce36beSmrg $as_echo_n "(cached) " >&6 4451ecce36beSmrgelse 4452ecce36beSmrg if test -z "$LD"; then 4453ecce36beSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4454ecce36beSmrg for ac_dir in $PATH; do 4455ecce36beSmrg IFS="$lt_save_ifs" 4456ecce36beSmrg test -z "$ac_dir" && ac_dir=. 4457ecce36beSmrg if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4458ecce36beSmrg lt_cv_path_LD="$ac_dir/$ac_prog" 4459ecce36beSmrg # Check to see if the program is GNU ld. I'd rather use --version, 4460ecce36beSmrg # but apparently some variants of GNU ld only accept -v. 4461ecce36beSmrg # Break only if it was the GNU/non-GNU ld that we prefer. 4462ecce36beSmrg case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4463ecce36beSmrg *GNU* | *'with BFD'*) 4464ecce36beSmrg test "$with_gnu_ld" != no && break 4465ecce36beSmrg ;; 4466ecce36beSmrg *) 4467ecce36beSmrg test "$with_gnu_ld" != yes && break 4468ecce36beSmrg ;; 4469ecce36beSmrg esac 4470ecce36beSmrg fi 4471ecce36beSmrg done 4472ecce36beSmrg IFS="$lt_save_ifs" 4473ecce36beSmrgelse 4474ecce36beSmrg lt_cv_path_LD="$LD" # Let the user override the test with a path. 4475ecce36beSmrgfi 4476ecce36beSmrgfi 4477ecce36beSmrg 4478ecce36beSmrgLD="$lt_cv_path_LD" 4479ecce36beSmrgif test -n "$LD"; then 4480ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4481ecce36beSmrg$as_echo "$LD" >&6; } 4482ecce36beSmrgelse 4483ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4484ecce36beSmrg$as_echo "no" >&6; } 4485ecce36beSmrgfi 4486ecce36beSmrgtest -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 4487ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4488ecce36beSmrg$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4489ecce36beSmrgif test "${lt_cv_prog_gnu_ld+set}" = set; then : 4490ecce36beSmrg $as_echo_n "(cached) " >&6 4491ecce36beSmrgelse 4492ecce36beSmrg # I'd rather use --version here, but apparently some GNU lds only accept -v. 4493ecce36beSmrgcase `$LD -v 2>&1 </dev/null` in 4494ecce36beSmrg*GNU* | *'with BFD'*) 4495ecce36beSmrg lt_cv_prog_gnu_ld=yes 4496ecce36beSmrg ;; 4497ecce36beSmrg*) 4498ecce36beSmrg lt_cv_prog_gnu_ld=no 4499ecce36beSmrg ;; 4500ecce36beSmrgesac 4501ecce36beSmrgfi 4502ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4503ecce36beSmrg$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4504ecce36beSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld 4505ecce36beSmrg 4506ecce36beSmrg 4507ecce36beSmrg 4508ecce36beSmrg 4509ecce36beSmrg 4510ecce36beSmrg 4511ecce36beSmrg 4512ecce36beSmrg 4513ecce36beSmrg 4514ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4515ecce36beSmrg$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4516ecce36beSmrgif test "${lt_cv_path_NM+set}" = set; then : 4517ecce36beSmrg $as_echo_n "(cached) " >&6 4518ecce36beSmrgelse 4519ecce36beSmrg if test -n "$NM"; then 4520ecce36beSmrg # Let the user override the test. 4521ecce36beSmrg lt_cv_path_NM="$NM" 4522ecce36beSmrgelse 4523ecce36beSmrg lt_nm_to_check="${ac_tool_prefix}nm" 4524ecce36beSmrg if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4525ecce36beSmrg lt_nm_to_check="$lt_nm_to_check nm" 4526ecce36beSmrg fi 4527ecce36beSmrg for lt_tmp_nm in $lt_nm_to_check; do 4528ecce36beSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4529ecce36beSmrg for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4530ecce36beSmrg IFS="$lt_save_ifs" 4531ecce36beSmrg test -z "$ac_dir" && ac_dir=. 4532ecce36beSmrg tmp_nm="$ac_dir/$lt_tmp_nm" 4533ecce36beSmrg if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4534ecce36beSmrg # Check to see if the nm accepts a BSD-compat flag. 4535ecce36beSmrg # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4536ecce36beSmrg # nm: unknown option "B" ignored 4537ecce36beSmrg # Tru64's nm complains that /dev/null is an invalid object file 4538ecce36beSmrg case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4539ecce36beSmrg */dev/null* | *'Invalid file or object type'*) 4540ecce36beSmrg lt_cv_path_NM="$tmp_nm -B" 4541ecce36beSmrg break 4542ecce36beSmrg ;; 4543ecce36beSmrg *) 4544ecce36beSmrg case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4545ecce36beSmrg */dev/null*) 4546ecce36beSmrg lt_cv_path_NM="$tmp_nm -p" 4547ecce36beSmrg break 4548ecce36beSmrg ;; 4549ecce36beSmrg *) 4550ecce36beSmrg lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4551ecce36beSmrg continue # so that we can try to find one that supports BSD flags 4552ecce36beSmrg ;; 4553ecce36beSmrg esac 4554ecce36beSmrg ;; 4555ecce36beSmrg esac 4556ecce36beSmrg fi 4557ecce36beSmrg done 4558ecce36beSmrg IFS="$lt_save_ifs" 4559ecce36beSmrg done 4560ecce36beSmrg : ${lt_cv_path_NM=no} 4561ecce36beSmrgfi 4562ecce36beSmrgfi 4563ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4564ecce36beSmrg$as_echo "$lt_cv_path_NM" >&6; } 4565ecce36beSmrgif test "$lt_cv_path_NM" != "no"; then 4566ecce36beSmrg NM="$lt_cv_path_NM" 4567ecce36beSmrgelse 4568ecce36beSmrg # Didn't find any BSD compatible name lister, look for dumpbin. 4569ecce36beSmrg if test -n "$ac_tool_prefix"; then 4570ecce36beSmrg for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4571ecce36beSmrg do 4572ecce36beSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4573ecce36beSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 4574ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4575ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 4576ecce36beSmrgif test "${ac_cv_prog_DUMPBIN+set}" = set; then : 4577ecce36beSmrg $as_echo_n "(cached) " >&6 4578ecce36beSmrgelse 4579ecce36beSmrg if test -n "$DUMPBIN"; then 4580ecce36beSmrg ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4581ecce36beSmrgelse 4582ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4583ecce36beSmrgfor as_dir in $PATH 4584ecce36beSmrgdo 4585ecce36beSmrg IFS=$as_save_IFS 4586ecce36beSmrg test -z "$as_dir" && as_dir=. 4587ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4588ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4589ecce36beSmrg ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4590ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4591ecce36beSmrg break 2 4592ecce36beSmrg fi 4593ecce36beSmrgdone 4594ecce36beSmrg done 4595ecce36beSmrgIFS=$as_save_IFS 4596ecce36beSmrg 4597ecce36beSmrgfi 4598ecce36beSmrgfi 4599ecce36beSmrgDUMPBIN=$ac_cv_prog_DUMPBIN 4600ecce36beSmrgif test -n "$DUMPBIN"; then 4601ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4602ecce36beSmrg$as_echo "$DUMPBIN" >&6; } 4603ecce36beSmrgelse 4604ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4605ecce36beSmrg$as_echo "no" >&6; } 4606ecce36beSmrgfi 4607ecce36beSmrg 4608ecce36beSmrg 4609ecce36beSmrg test -n "$DUMPBIN" && break 4610ecce36beSmrg done 4611ecce36beSmrgfi 4612ecce36beSmrgif test -z "$DUMPBIN"; then 4613ecce36beSmrg ac_ct_DUMPBIN=$DUMPBIN 4614ecce36beSmrg for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4615ecce36beSmrgdo 4616ecce36beSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 4617ecce36beSmrgset dummy $ac_prog; ac_word=$2 4618ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4619ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 4620ecce36beSmrgif test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 4621ecce36beSmrg $as_echo_n "(cached) " >&6 4622ecce36beSmrgelse 4623ecce36beSmrg if test -n "$ac_ct_DUMPBIN"; then 4624ecce36beSmrg ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4625ecce36beSmrgelse 4626ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4627ecce36beSmrgfor as_dir in $PATH 4628ecce36beSmrgdo 4629ecce36beSmrg IFS=$as_save_IFS 4630ecce36beSmrg test -z "$as_dir" && as_dir=. 4631ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4632ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4633ecce36beSmrg ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4634ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4635ecce36beSmrg break 2 4636ecce36beSmrg fi 4637ecce36beSmrgdone 4638ecce36beSmrg done 4639ecce36beSmrgIFS=$as_save_IFS 4640ecce36beSmrg 4641ecce36beSmrgfi 4642ecce36beSmrgfi 4643ecce36beSmrgac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4644ecce36beSmrgif test -n "$ac_ct_DUMPBIN"; then 4645ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4646ecce36beSmrg$as_echo "$ac_ct_DUMPBIN" >&6; } 4647ecce36beSmrgelse 4648ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4649ecce36beSmrg$as_echo "no" >&6; } 4650ecce36beSmrgfi 4651ecce36beSmrg 4652ecce36beSmrg 4653ecce36beSmrg test -n "$ac_ct_DUMPBIN" && break 4654ecce36beSmrgdone 4655ecce36beSmrg 4656ecce36beSmrg if test "x$ac_ct_DUMPBIN" = x; then 4657ecce36beSmrg DUMPBIN=":" 4658ecce36beSmrg else 4659ecce36beSmrg case $cross_compiling:$ac_tool_warned in 4660ecce36beSmrgyes:) 4661ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4662ecce36beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4663ecce36beSmrgac_tool_warned=yes ;; 4664ecce36beSmrgesac 4665ecce36beSmrg DUMPBIN=$ac_ct_DUMPBIN 4666ecce36beSmrg fi 4667ecce36beSmrgfi 4668ecce36beSmrg 4669ecce36beSmrg 4670ecce36beSmrg if test "$DUMPBIN" != ":"; then 4671ecce36beSmrg NM="$DUMPBIN" 4672ecce36beSmrg fi 4673ecce36beSmrgfi 4674ecce36beSmrgtest -z "$NM" && NM=nm 4675ecce36beSmrg 4676ecce36beSmrg 4677ecce36beSmrg 4678ecce36beSmrg 4679ecce36beSmrg 4680ecce36beSmrg 4681ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4682ecce36beSmrg$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4683ecce36beSmrgif test "${lt_cv_nm_interface+set}" = set; then : 4684ecce36beSmrg $as_echo_n "(cached) " >&6 4685ecce36beSmrgelse 4686ecce36beSmrg lt_cv_nm_interface="BSD nm" 4687ecce36beSmrg echo "int some_variable = 0;" > conftest.$ac_ext 4688ecce36beSmrg (eval echo "\"\$as_me:4688: $ac_compile\"" >&5) 4689ecce36beSmrg (eval "$ac_compile" 2>conftest.err) 4690ecce36beSmrg cat conftest.err >&5 4691ecce36beSmrg (eval echo "\"\$as_me:4691: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4692ecce36beSmrg (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4693ecce36beSmrg cat conftest.err >&5 4694ecce36beSmrg (eval echo "\"\$as_me:4694: output\"" >&5) 4695ecce36beSmrg cat conftest.out >&5 4696ecce36beSmrg if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4697ecce36beSmrg lt_cv_nm_interface="MS dumpbin" 4698ecce36beSmrg fi 4699ecce36beSmrg rm -f conftest* 4700ecce36beSmrgfi 4701ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4702ecce36beSmrg$as_echo "$lt_cv_nm_interface" >&6; } 4703ecce36beSmrg 4704ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4705ecce36beSmrg$as_echo_n "checking whether ln -s works... " >&6; } 4706ecce36beSmrgLN_S=$as_ln_s 4707ecce36beSmrgif test "$LN_S" = "ln -s"; then 4708ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4709ecce36beSmrg$as_echo "yes" >&6; } 4710ecce36beSmrgelse 4711ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4712ecce36beSmrg$as_echo "no, using $LN_S" >&6; } 4713ecce36beSmrgfi 4714ecce36beSmrg 4715ecce36beSmrg# find the maximum length of command line arguments 4716ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4717ecce36beSmrg$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4718ecce36beSmrgif test "${lt_cv_sys_max_cmd_len+set}" = set; then : 4719ecce36beSmrg $as_echo_n "(cached) " >&6 4720ecce36beSmrgelse 4721ecce36beSmrg i=0 4722ecce36beSmrg teststring="ABCD" 4723ecce36beSmrg 4724ecce36beSmrg case $build_os in 4725ecce36beSmrg msdosdjgpp*) 4726ecce36beSmrg # On DJGPP, this test can blow up pretty badly due to problems in libc 4727ecce36beSmrg # (any single argument exceeding 2000 bytes causes a buffer overrun 4728ecce36beSmrg # during glob expansion). Even if it were fixed, the result of this 4729ecce36beSmrg # check would be larger than it should be. 4730ecce36beSmrg lt_cv_sys_max_cmd_len=12288; # 12K is about right 4731ecce36beSmrg ;; 4732ecce36beSmrg 4733ecce36beSmrg gnu*) 4734ecce36beSmrg # Under GNU Hurd, this test is not required because there is 4735ecce36beSmrg # no limit to the length of command line arguments. 4736ecce36beSmrg # Libtool will interpret -1 as no limit whatsoever 4737ecce36beSmrg lt_cv_sys_max_cmd_len=-1; 4738ecce36beSmrg ;; 4739ecce36beSmrg 4740ecce36beSmrg cygwin* | mingw* | cegcc*) 4741ecce36beSmrg # On Win9x/ME, this test blows up -- it succeeds, but takes 4742ecce36beSmrg # about 5 minutes as the teststring grows exponentially. 4743ecce36beSmrg # Worse, since 9x/ME are not pre-emptively multitasking, 4744ecce36beSmrg # you end up with a "frozen" computer, even though with patience 4745ecce36beSmrg # the test eventually succeeds (with a max line length of 256k). 4746ecce36beSmrg # Instead, let's just punt: use the minimum linelength reported by 4747ecce36beSmrg # all of the supported platforms: 8192 (on NT/2K/XP). 4748ecce36beSmrg lt_cv_sys_max_cmd_len=8192; 4749ecce36beSmrg ;; 4750ecce36beSmrg 4751ecce36beSmrg amigaos*) 4752ecce36beSmrg # On AmigaOS with pdksh, this test takes hours, literally. 4753ecce36beSmrg # So we just punt and use a minimum line length of 8192. 4754ecce36beSmrg lt_cv_sys_max_cmd_len=8192; 4755ecce36beSmrg ;; 4756ecce36beSmrg 4757ecce36beSmrg netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4758ecce36beSmrg # This has been around since 386BSD, at least. Likely further. 4759ecce36beSmrg if test -x /sbin/sysctl; then 4760ecce36beSmrg lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4761ecce36beSmrg elif test -x /usr/sbin/sysctl; then 4762ecce36beSmrg lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4763ecce36beSmrg else 4764ecce36beSmrg lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4765ecce36beSmrg fi 4766ecce36beSmrg # And add a safety zone 4767ecce36beSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4768ecce36beSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4769ecce36beSmrg ;; 4770ecce36beSmrg 4771ecce36beSmrg interix*) 4772ecce36beSmrg # We know the value 262144 and hardcode it with a safety zone (like BSD) 4773ecce36beSmrg lt_cv_sys_max_cmd_len=196608 4774ecce36beSmrg ;; 4775ecce36beSmrg 4776ecce36beSmrg osf*) 4777ecce36beSmrg # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4778ecce36beSmrg # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4779ecce36beSmrg # nice to cause kernel panics so lets avoid the loop below. 4780ecce36beSmrg # First set a reasonable default. 4781ecce36beSmrg lt_cv_sys_max_cmd_len=16384 4782ecce36beSmrg # 4783ecce36beSmrg if test -x /sbin/sysconfig; then 4784ecce36beSmrg case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4785ecce36beSmrg *1*) lt_cv_sys_max_cmd_len=-1 ;; 4786ecce36beSmrg esac 4787ecce36beSmrg fi 4788ecce36beSmrg ;; 4789ecce36beSmrg sco3.2v5*) 4790ecce36beSmrg lt_cv_sys_max_cmd_len=102400 4791ecce36beSmrg ;; 4792ecce36beSmrg sysv5* | sco5v6* | sysv4.2uw2*) 4793ecce36beSmrg kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4794ecce36beSmrg if test -n "$kargmax"; then 4795ecce36beSmrg lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4796ecce36beSmrg else 4797ecce36beSmrg lt_cv_sys_max_cmd_len=32768 4798ecce36beSmrg fi 4799ecce36beSmrg ;; 4800ecce36beSmrg *) 4801ecce36beSmrg lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4802ecce36beSmrg if test -n "$lt_cv_sys_max_cmd_len"; then 4803ecce36beSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4804ecce36beSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4805ecce36beSmrg else 4806ecce36beSmrg # Make teststring a little bigger before we do anything with it. 4807ecce36beSmrg # a 1K string should be a reasonable start. 4808ecce36beSmrg for i in 1 2 3 4 5 6 7 8 ; do 4809ecce36beSmrg teststring=$teststring$teststring 4810ecce36beSmrg done 4811ecce36beSmrg SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4812ecce36beSmrg # If test is not a shell built-in, we'll probably end up computing a 4813ecce36beSmrg # maximum length that is only half of the actual maximum length, but 4814ecce36beSmrg # we can't tell. 4815ecce36beSmrg while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4816ecce36beSmrg = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4817ecce36beSmrg test $i != 17 # 1/2 MB should be enough 4818ecce36beSmrg do 4819ecce36beSmrg i=`expr $i + 1` 4820ecce36beSmrg teststring=$teststring$teststring 4821ecce36beSmrg done 4822ecce36beSmrg # Only check the string length outside the loop. 4823ecce36beSmrg lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4824ecce36beSmrg teststring= 4825ecce36beSmrg # Add a significant safety factor because C++ compilers can tack on 4826ecce36beSmrg # massive amounts of additional arguments before passing them to the 4827ecce36beSmrg # linker. It appears as though 1/2 is a usable value. 4828ecce36beSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4829ecce36beSmrg fi 4830ecce36beSmrg ;; 4831ecce36beSmrg esac 4832ecce36beSmrg 4833ecce36beSmrgfi 4834ecce36beSmrg 4835ecce36beSmrgif test -n $lt_cv_sys_max_cmd_len ; then 4836ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4837ecce36beSmrg$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4838ecce36beSmrgelse 4839ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4840ecce36beSmrg$as_echo "none" >&6; } 4841ecce36beSmrgfi 4842ecce36beSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len 4843ecce36beSmrg 4844ecce36beSmrg 4845ecce36beSmrg 4846ecce36beSmrg 4847ecce36beSmrg 4848ecce36beSmrg 4849ecce36beSmrg: ${CP="cp -f"} 4850ecce36beSmrg: ${MV="mv -f"} 4851ecce36beSmrg: ${RM="rm -f"} 4852ecce36beSmrg 4853ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4854ecce36beSmrg$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4855ecce36beSmrg# Try some XSI features 4856ecce36beSmrgxsi_shell=no 4857ecce36beSmrg( _lt_dummy="a/b/c" 4858ecce36beSmrg test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4859ecce36beSmrg = c,a/b,, \ 4860ecce36beSmrg && eval 'test $(( 1 + 1 )) -eq 2 \ 4861ecce36beSmrg && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4862ecce36beSmrg && xsi_shell=yes 4863ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4864ecce36beSmrg$as_echo "$xsi_shell" >&6; } 4865ecce36beSmrg 4866ecce36beSmrg 4867ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4868ecce36beSmrg$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4869ecce36beSmrglt_shell_append=no 4870ecce36beSmrg( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4871ecce36beSmrg >/dev/null 2>&1 \ 4872ecce36beSmrg && lt_shell_append=yes 4873ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4874ecce36beSmrg$as_echo "$lt_shell_append" >&6; } 4875ecce36beSmrg 4876ecce36beSmrg 4877ecce36beSmrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4878ecce36beSmrg lt_unset=unset 4879ecce36beSmrgelse 4880ecce36beSmrg lt_unset=false 4881ecce36beSmrgfi 4882ecce36beSmrg 4883ecce36beSmrg 4884ecce36beSmrg 4885ecce36beSmrg 4886ecce36beSmrg 4887ecce36beSmrg# test EBCDIC or ASCII 4888ecce36beSmrgcase `echo X|tr X '\101'` in 4889ecce36beSmrg A) # ASCII based system 4890ecce36beSmrg # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4891ecce36beSmrg lt_SP2NL='tr \040 \012' 4892ecce36beSmrg lt_NL2SP='tr \015\012 \040\040' 4893ecce36beSmrg ;; 4894ecce36beSmrg *) # EBCDIC based system 4895ecce36beSmrg lt_SP2NL='tr \100 \n' 4896ecce36beSmrg lt_NL2SP='tr \r\n \100\100' 4897ecce36beSmrg ;; 4898ecce36beSmrgesac 4899ecce36beSmrg 4900ecce36beSmrg 4901ecce36beSmrg 4902ecce36beSmrg 4903ecce36beSmrg 4904ecce36beSmrg 4905ecce36beSmrg 4906ecce36beSmrg 4907ecce36beSmrg 4908ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4909ecce36beSmrg$as_echo_n "checking for $LD option to reload object files... " >&6; } 4910ecce36beSmrgif test "${lt_cv_ld_reload_flag+set}" = set; then : 4911ecce36beSmrg $as_echo_n "(cached) " >&6 4912ecce36beSmrgelse 4913ecce36beSmrg lt_cv_ld_reload_flag='-r' 4914ecce36beSmrgfi 4915ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4916ecce36beSmrg$as_echo "$lt_cv_ld_reload_flag" >&6; } 4917ecce36beSmrgreload_flag=$lt_cv_ld_reload_flag 4918ecce36beSmrgcase $reload_flag in 4919ecce36beSmrg"" | " "*) ;; 4920ecce36beSmrg*) reload_flag=" $reload_flag" ;; 4921ecce36beSmrgesac 4922ecce36beSmrgreload_cmds='$LD$reload_flag -o $output$reload_objs' 4923ecce36beSmrgcase $host_os in 4924ecce36beSmrg darwin*) 4925ecce36beSmrg if test "$GCC" = yes; then 4926ecce36beSmrg reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4927ecce36beSmrg else 4928ecce36beSmrg reload_cmds='$LD$reload_flag -o $output$reload_objs' 4929ecce36beSmrg fi 4930ecce36beSmrg ;; 4931ecce36beSmrgesac 4932ecce36beSmrg 4933ecce36beSmrg 4934ecce36beSmrg 4935ecce36beSmrg 4936ecce36beSmrg 4937ecce36beSmrg 4938ecce36beSmrg 4939ecce36beSmrg 4940ecce36beSmrg 4941ecce36beSmrgif test -n "$ac_tool_prefix"; then 4942ecce36beSmrg # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4943ecce36beSmrgset dummy ${ac_tool_prefix}objdump; ac_word=$2 4944ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4945ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 4946ecce36beSmrgif test "${ac_cv_prog_OBJDUMP+set}" = set; then : 4947ecce36beSmrg $as_echo_n "(cached) " >&6 4948ecce36beSmrgelse 4949ecce36beSmrg if test -n "$OBJDUMP"; then 4950ecce36beSmrg ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4951ecce36beSmrgelse 4952ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4953ecce36beSmrgfor as_dir in $PATH 4954ecce36beSmrgdo 4955ecce36beSmrg IFS=$as_save_IFS 4956ecce36beSmrg test -z "$as_dir" && as_dir=. 4957ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4958ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4959ecce36beSmrg ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4960ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4961ecce36beSmrg break 2 4962ecce36beSmrg fi 4963ecce36beSmrgdone 4964ecce36beSmrg done 4965ecce36beSmrgIFS=$as_save_IFS 4966ecce36beSmrg 4967ecce36beSmrgfi 4968ecce36beSmrgfi 4969ecce36beSmrgOBJDUMP=$ac_cv_prog_OBJDUMP 4970ecce36beSmrgif test -n "$OBJDUMP"; then 4971ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4972ecce36beSmrg$as_echo "$OBJDUMP" >&6; } 4973ecce36beSmrgelse 4974ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4975ecce36beSmrg$as_echo "no" >&6; } 4976ecce36beSmrgfi 4977ecce36beSmrg 4978ecce36beSmrg 4979ecce36beSmrgfi 4980ecce36beSmrgif test -z "$ac_cv_prog_OBJDUMP"; then 4981ecce36beSmrg ac_ct_OBJDUMP=$OBJDUMP 4982ecce36beSmrg # Extract the first word of "objdump", so it can be a program name with args. 4983ecce36beSmrgset dummy objdump; ac_word=$2 4984ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4985ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 4986ecce36beSmrgif test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 4987ecce36beSmrg $as_echo_n "(cached) " >&6 4988ecce36beSmrgelse 4989ecce36beSmrg if test -n "$ac_ct_OBJDUMP"; then 4990ecce36beSmrg ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4991ecce36beSmrgelse 4992ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4993ecce36beSmrgfor as_dir in $PATH 4994ecce36beSmrgdo 4995ecce36beSmrg IFS=$as_save_IFS 4996ecce36beSmrg test -z "$as_dir" && as_dir=. 4997ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4998ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4999ecce36beSmrg ac_cv_prog_ac_ct_OBJDUMP="objdump" 5000ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5001ecce36beSmrg break 2 5002ecce36beSmrg fi 5003ecce36beSmrgdone 5004ecce36beSmrg done 5005ecce36beSmrgIFS=$as_save_IFS 5006ecce36beSmrg 5007ecce36beSmrgfi 5008ecce36beSmrgfi 5009ecce36beSmrgac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5010ecce36beSmrgif test -n "$ac_ct_OBJDUMP"; then 5011ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5012ecce36beSmrg$as_echo "$ac_ct_OBJDUMP" >&6; } 5013ecce36beSmrgelse 5014ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5015ecce36beSmrg$as_echo "no" >&6; } 5016ecce36beSmrgfi 5017ecce36beSmrg 5018ecce36beSmrg if test "x$ac_ct_OBJDUMP" = x; then 5019ecce36beSmrg OBJDUMP="false" 5020ecce36beSmrg else 5021ecce36beSmrg case $cross_compiling:$ac_tool_warned in 5022ecce36beSmrgyes:) 5023ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5024ecce36beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5025ecce36beSmrgac_tool_warned=yes ;; 5026ecce36beSmrgesac 5027ecce36beSmrg OBJDUMP=$ac_ct_OBJDUMP 5028ecce36beSmrg fi 5029ecce36beSmrgelse 5030ecce36beSmrg OBJDUMP="$ac_cv_prog_OBJDUMP" 5031ecce36beSmrgfi 5032ecce36beSmrg 5033ecce36beSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump 5034ecce36beSmrg 5035ecce36beSmrg 5036ecce36beSmrg 5037ecce36beSmrg 5038ecce36beSmrg 5039ecce36beSmrg 5040ecce36beSmrg 5041ecce36beSmrg 5042ecce36beSmrg 5043ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5044ecce36beSmrg$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5045ecce36beSmrgif test "${lt_cv_deplibs_check_method+set}" = set; then : 5046ecce36beSmrg $as_echo_n "(cached) " >&6 5047ecce36beSmrgelse 5048ecce36beSmrg lt_cv_file_magic_cmd='$MAGIC_CMD' 5049ecce36beSmrglt_cv_file_magic_test_file= 5050ecce36beSmrglt_cv_deplibs_check_method='unknown' 5051ecce36beSmrg# Need to set the preceding variable on all platforms that support 5052ecce36beSmrg# interlibrary dependencies. 5053ecce36beSmrg# 'none' -- dependencies not supported. 5054ecce36beSmrg# `unknown' -- same as none, but documents that we really don't know. 5055ecce36beSmrg# 'pass_all' -- all dependencies passed with no checks. 5056ecce36beSmrg# 'test_compile' -- check by making test program. 5057ecce36beSmrg# 'file_magic [[regex]]' -- check by looking for files in library path 5058ecce36beSmrg# which responds to the $file_magic_cmd with a given extended regex. 5059ecce36beSmrg# If you have `file' or equivalent on your system and you're not sure 5060ecce36beSmrg# whether `pass_all' will *always* work, you probably want this one. 5061ecce36beSmrg 5062ecce36beSmrgcase $host_os in 5063ecce36beSmrgaix[4-9]*) 5064ecce36beSmrg lt_cv_deplibs_check_method=pass_all 5065ecce36beSmrg ;; 5066ecce36beSmrg 5067ecce36beSmrgbeos*) 5068ecce36beSmrg lt_cv_deplibs_check_method=pass_all 5069ecce36beSmrg ;; 5070ecce36beSmrg 5071ecce36beSmrgbsdi[45]*) 5072ecce36beSmrg lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5073ecce36beSmrg lt_cv_file_magic_cmd='/usr/bin/file -L' 5074ecce36beSmrg lt_cv_file_magic_test_file=/shlib/libc.so 5075ecce36beSmrg ;; 5076ecce36beSmrg 5077ecce36beSmrgcygwin*) 5078ecce36beSmrg # func_win32_libid is a shell function defined in ltmain.sh 5079ecce36beSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5080ecce36beSmrg lt_cv_file_magic_cmd='func_win32_libid' 5081ecce36beSmrg ;; 5082ecce36beSmrg 5083ecce36beSmrgmingw* | pw32*) 5084ecce36beSmrg # Base MSYS/MinGW do not provide the 'file' command needed by 5085ecce36beSmrg # func_win32_libid shell function, so use a weaker test based on 'objdump', 5086ecce36beSmrg # unless we find 'file', for example because we are cross-compiling. 5087ecce36beSmrg if ( file / ) >/dev/null 2>&1; then 5088ecce36beSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5089ecce36beSmrg lt_cv_file_magic_cmd='func_win32_libid' 5090ecce36beSmrg else 5091ecce36beSmrg lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5092ecce36beSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 5093ecce36beSmrg fi 5094ecce36beSmrg ;; 5095ecce36beSmrg 5096ecce36beSmrgcegcc) 5097ecce36beSmrg # use the weaker test based on 'objdump'. See mingw*. 5098ecce36beSmrg lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5099ecce36beSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 5100ecce36beSmrg ;; 5101ecce36beSmrg 5102ecce36beSmrgdarwin* | rhapsody*) 5103ecce36beSmrg lt_cv_deplibs_check_method=pass_all 5104ecce36beSmrg ;; 5105ecce36beSmrg 5106ecce36beSmrgfreebsd* | dragonfly*) 5107ecce36beSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5108ecce36beSmrg case $host_cpu in 5109ecce36beSmrg i*86 ) 5110ecce36beSmrg # Not sure whether the presence of OpenBSD here was a mistake. 5111ecce36beSmrg # Let's accept both of them until this is cleared up. 5112ecce36beSmrg lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5113ecce36beSmrg lt_cv_file_magic_cmd=/usr/bin/file 5114ecce36beSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5115ecce36beSmrg ;; 5116ecce36beSmrg esac 5117ecce36beSmrg else 5118ecce36beSmrg lt_cv_deplibs_check_method=pass_all 5119ecce36beSmrg fi 5120ecce36beSmrg ;; 5121ecce36beSmrg 5122ecce36beSmrggnu*) 5123ecce36beSmrg lt_cv_deplibs_check_method=pass_all 5124ecce36beSmrg ;; 5125ecce36beSmrg 5126ecce36beSmrghpux10.20* | hpux11*) 5127ecce36beSmrg lt_cv_file_magic_cmd=/usr/bin/file 5128ecce36beSmrg case $host_cpu in 5129ecce36beSmrg ia64*) 5130ecce36beSmrg lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5131ecce36beSmrg lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5132ecce36beSmrg ;; 5133ecce36beSmrg hppa*64*) 5134ecce36beSmrg lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 5135ecce36beSmrg lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5136ecce36beSmrg ;; 5137ecce36beSmrg *) 5138ecce36beSmrg lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5139ecce36beSmrg lt_cv_file_magic_test_file=/usr/lib/libc.sl 5140ecce36beSmrg ;; 5141ecce36beSmrg esac 5142ecce36beSmrg ;; 5143ecce36beSmrg 5144ecce36beSmrginterix[3-9]*) 5145ecce36beSmrg # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5146ecce36beSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5147ecce36beSmrg ;; 5148ecce36beSmrg 5149ecce36beSmrgirix5* | irix6* | nonstopux*) 5150ecce36beSmrg case $LD in 5151ecce36beSmrg *-32|*"-32 ") libmagic=32-bit;; 5152ecce36beSmrg *-n32|*"-n32 ") libmagic=N32;; 5153ecce36beSmrg *-64|*"-64 ") libmagic=64-bit;; 5154ecce36beSmrg *) libmagic=never-match;; 5155ecce36beSmrg esac 5156ecce36beSmrg lt_cv_deplibs_check_method=pass_all 5157ecce36beSmrg ;; 5158ecce36beSmrg 5159ecce36beSmrg# This must be Linux ELF. 5160ecce36beSmrglinux* | k*bsd*-gnu) 5161ecce36beSmrg lt_cv_deplibs_check_method=pass_all 5162ecce36beSmrg ;; 5163ecce36beSmrg 5164ecce36beSmrgnetbsd* | netbsdelf*-gnu) 5165ecce36beSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5166ecce36beSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5167ecce36beSmrg else 5168ecce36beSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5169ecce36beSmrg fi 5170ecce36beSmrg ;; 5171ecce36beSmrg 5172ecce36beSmrgnewos6*) 5173ecce36beSmrg lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5174ecce36beSmrg lt_cv_file_magic_cmd=/usr/bin/file 5175ecce36beSmrg lt_cv_file_magic_test_file=/usr/lib/libnls.so 5176ecce36beSmrg ;; 5177ecce36beSmrg 5178ecce36beSmrg*nto* | *qnx*) 5179ecce36beSmrg lt_cv_deplibs_check_method=pass_all 5180ecce36beSmrg ;; 5181ecce36beSmrg 5182ecce36beSmrgopenbsd*) 5183ecce36beSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5184ecce36beSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5185ecce36beSmrg else 5186ecce36beSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5187ecce36beSmrg fi 5188ecce36beSmrg ;; 5189ecce36beSmrg 5190ecce36beSmrgosf3* | osf4* | osf5*) 5191ecce36beSmrg lt_cv_deplibs_check_method=pass_all 5192ecce36beSmrg ;; 5193ecce36beSmrg 5194ecce36beSmrgrdos*) 5195ecce36beSmrg lt_cv_deplibs_check_method=pass_all 5196ecce36beSmrg ;; 5197ecce36beSmrg 5198ecce36beSmrgsolaris*) 5199ecce36beSmrg lt_cv_deplibs_check_method=pass_all 5200ecce36beSmrg ;; 5201ecce36beSmrg 5202ecce36beSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5203ecce36beSmrg lt_cv_deplibs_check_method=pass_all 5204ecce36beSmrg ;; 5205ecce36beSmrg 5206ecce36beSmrgsysv4 | sysv4.3*) 5207ecce36beSmrg case $host_vendor in 5208ecce36beSmrg motorola) 5209ecce36beSmrg 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]' 5210ecce36beSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5211ecce36beSmrg ;; 5212ecce36beSmrg ncr) 5213ecce36beSmrg lt_cv_deplibs_check_method=pass_all 5214ecce36beSmrg ;; 5215ecce36beSmrg sequent) 5216ecce36beSmrg lt_cv_file_magic_cmd='/bin/file' 5217ecce36beSmrg lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5218ecce36beSmrg ;; 5219ecce36beSmrg sni) 5220ecce36beSmrg lt_cv_file_magic_cmd='/bin/file' 5221ecce36beSmrg lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5222ecce36beSmrg lt_cv_file_magic_test_file=/lib/libc.so 5223ecce36beSmrg ;; 5224ecce36beSmrg siemens) 5225ecce36beSmrg lt_cv_deplibs_check_method=pass_all 5226ecce36beSmrg ;; 5227ecce36beSmrg pc) 5228ecce36beSmrg lt_cv_deplibs_check_method=pass_all 5229ecce36beSmrg ;; 5230ecce36beSmrg esac 5231ecce36beSmrg ;; 5232ecce36beSmrg 5233ecce36beSmrgtpf*) 5234ecce36beSmrg lt_cv_deplibs_check_method=pass_all 5235ecce36beSmrg ;; 5236ecce36beSmrgesac 5237ecce36beSmrg 5238ecce36beSmrgfi 5239ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5240ecce36beSmrg$as_echo "$lt_cv_deplibs_check_method" >&6; } 5241ecce36beSmrgfile_magic_cmd=$lt_cv_file_magic_cmd 5242ecce36beSmrgdeplibs_check_method=$lt_cv_deplibs_check_method 5243ecce36beSmrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown 5244ecce36beSmrg 5245ecce36beSmrg 5246ecce36beSmrg 5247ecce36beSmrg 5248ecce36beSmrg 5249ecce36beSmrg 5250ecce36beSmrg 5251ecce36beSmrg 5252ecce36beSmrg 5253ecce36beSmrg 5254ecce36beSmrg 5255ecce36beSmrg 5256ecce36beSmrgif test -n "$ac_tool_prefix"; then 5257ecce36beSmrg # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5258ecce36beSmrgset dummy ${ac_tool_prefix}ar; ac_word=$2 5259ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5260ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 5261ecce36beSmrgif test "${ac_cv_prog_AR+set}" = set; then : 5262ecce36beSmrg $as_echo_n "(cached) " >&6 5263ecce36beSmrgelse 5264ecce36beSmrg if test -n "$AR"; then 5265ecce36beSmrg ac_cv_prog_AR="$AR" # Let the user override the test. 5266ecce36beSmrgelse 5267ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5268ecce36beSmrgfor as_dir in $PATH 5269ecce36beSmrgdo 5270ecce36beSmrg IFS=$as_save_IFS 5271ecce36beSmrg test -z "$as_dir" && as_dir=. 5272ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5273ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5274ecce36beSmrg ac_cv_prog_AR="${ac_tool_prefix}ar" 5275ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5276ecce36beSmrg break 2 5277ecce36beSmrg fi 5278ecce36beSmrgdone 5279ecce36beSmrg done 5280ecce36beSmrgIFS=$as_save_IFS 5281ecce36beSmrg 5282ecce36beSmrgfi 5283ecce36beSmrgfi 5284ecce36beSmrgAR=$ac_cv_prog_AR 5285ecce36beSmrgif test -n "$AR"; then 5286ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5287ecce36beSmrg$as_echo "$AR" >&6; } 5288ecce36beSmrgelse 5289ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5290ecce36beSmrg$as_echo "no" >&6; } 5291ecce36beSmrgfi 5292ecce36beSmrg 5293ecce36beSmrg 5294ecce36beSmrgfi 5295ecce36beSmrgif test -z "$ac_cv_prog_AR"; then 5296ecce36beSmrg ac_ct_AR=$AR 5297ecce36beSmrg # Extract the first word of "ar", so it can be a program name with args. 5298ecce36beSmrgset dummy ar; ac_word=$2 5299ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5300ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 5301ecce36beSmrgif test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5302ecce36beSmrg $as_echo_n "(cached) " >&6 5303ecce36beSmrgelse 5304ecce36beSmrg if test -n "$ac_ct_AR"; then 5305ecce36beSmrg ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5306ecce36beSmrgelse 5307ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5308ecce36beSmrgfor as_dir in $PATH 5309ecce36beSmrgdo 5310ecce36beSmrg IFS=$as_save_IFS 5311ecce36beSmrg test -z "$as_dir" && as_dir=. 5312ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5313ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5314ecce36beSmrg ac_cv_prog_ac_ct_AR="ar" 5315ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5316ecce36beSmrg break 2 5317ecce36beSmrg fi 5318ecce36beSmrgdone 5319ecce36beSmrg done 5320ecce36beSmrgIFS=$as_save_IFS 5321ecce36beSmrg 5322ecce36beSmrgfi 5323ecce36beSmrgfi 5324ecce36beSmrgac_ct_AR=$ac_cv_prog_ac_ct_AR 5325ecce36beSmrgif test -n "$ac_ct_AR"; then 5326ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5327ecce36beSmrg$as_echo "$ac_ct_AR" >&6; } 5328ecce36beSmrgelse 5329ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5330ecce36beSmrg$as_echo "no" >&6; } 5331ecce36beSmrgfi 5332ecce36beSmrg 5333ecce36beSmrg if test "x$ac_ct_AR" = x; then 5334ecce36beSmrg AR="false" 5335ecce36beSmrg else 5336ecce36beSmrg case $cross_compiling:$ac_tool_warned in 5337ecce36beSmrgyes:) 5338ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5339ecce36beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5340ecce36beSmrgac_tool_warned=yes ;; 5341ecce36beSmrgesac 5342ecce36beSmrg AR=$ac_ct_AR 5343ecce36beSmrg fi 5344ecce36beSmrgelse 5345ecce36beSmrg AR="$ac_cv_prog_AR" 5346ecce36beSmrgfi 5347ecce36beSmrg 5348ecce36beSmrgtest -z "$AR" && AR=ar 5349ecce36beSmrgtest -z "$AR_FLAGS" && AR_FLAGS=cru 5350ecce36beSmrg 5351ecce36beSmrg 5352ecce36beSmrg 5353ecce36beSmrg 5354ecce36beSmrg 5355ecce36beSmrg 5356ecce36beSmrg 5357ecce36beSmrg 5358ecce36beSmrg 5359ecce36beSmrg 5360ecce36beSmrg 5361ecce36beSmrgif test -n "$ac_tool_prefix"; then 5362ecce36beSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5363ecce36beSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 5364ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5365ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 5366ecce36beSmrgif test "${ac_cv_prog_STRIP+set}" = set; then : 5367ecce36beSmrg $as_echo_n "(cached) " >&6 5368ecce36beSmrgelse 5369ecce36beSmrg if test -n "$STRIP"; then 5370ecce36beSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5371ecce36beSmrgelse 5372ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5373ecce36beSmrgfor as_dir in $PATH 5374ecce36beSmrgdo 5375ecce36beSmrg IFS=$as_save_IFS 5376ecce36beSmrg test -z "$as_dir" && as_dir=. 5377ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5378ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5379ecce36beSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5380ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5381ecce36beSmrg break 2 5382ecce36beSmrg fi 5383ecce36beSmrgdone 5384ecce36beSmrg done 5385ecce36beSmrgIFS=$as_save_IFS 5386ecce36beSmrg 5387ecce36beSmrgfi 5388ecce36beSmrgfi 5389ecce36beSmrgSTRIP=$ac_cv_prog_STRIP 5390ecce36beSmrgif test -n "$STRIP"; then 5391ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5392ecce36beSmrg$as_echo "$STRIP" >&6; } 5393ecce36beSmrgelse 5394ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5395ecce36beSmrg$as_echo "no" >&6; } 5396ecce36beSmrgfi 5397ecce36beSmrg 5398ecce36beSmrg 5399ecce36beSmrgfi 5400ecce36beSmrgif test -z "$ac_cv_prog_STRIP"; then 5401ecce36beSmrg ac_ct_STRIP=$STRIP 5402ecce36beSmrg # Extract the first word of "strip", so it can be a program name with args. 5403ecce36beSmrgset dummy strip; ac_word=$2 5404ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5405ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 5406ecce36beSmrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5407ecce36beSmrg $as_echo_n "(cached) " >&6 5408ecce36beSmrgelse 5409ecce36beSmrg if test -n "$ac_ct_STRIP"; then 5410ecce36beSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5411ecce36beSmrgelse 5412ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5413ecce36beSmrgfor as_dir in $PATH 5414ecce36beSmrgdo 5415ecce36beSmrg IFS=$as_save_IFS 5416ecce36beSmrg test -z "$as_dir" && as_dir=. 5417ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5418ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5419ecce36beSmrg ac_cv_prog_ac_ct_STRIP="strip" 5420ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5421ecce36beSmrg break 2 5422ecce36beSmrg fi 5423ecce36beSmrgdone 5424ecce36beSmrg done 5425ecce36beSmrgIFS=$as_save_IFS 5426ecce36beSmrg 5427ecce36beSmrgfi 5428ecce36beSmrgfi 5429ecce36beSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5430ecce36beSmrgif test -n "$ac_ct_STRIP"; then 5431ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5432ecce36beSmrg$as_echo "$ac_ct_STRIP" >&6; } 5433ecce36beSmrgelse 5434ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5435ecce36beSmrg$as_echo "no" >&6; } 5436ecce36beSmrgfi 5437ecce36beSmrg 5438ecce36beSmrg if test "x$ac_ct_STRIP" = x; then 5439ecce36beSmrg STRIP=":" 5440ecce36beSmrg else 5441ecce36beSmrg case $cross_compiling:$ac_tool_warned in 5442ecce36beSmrgyes:) 5443ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5444ecce36beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5445ecce36beSmrgac_tool_warned=yes ;; 5446ecce36beSmrgesac 5447ecce36beSmrg STRIP=$ac_ct_STRIP 5448ecce36beSmrg fi 5449ecce36beSmrgelse 5450ecce36beSmrg STRIP="$ac_cv_prog_STRIP" 5451ecce36beSmrgfi 5452ecce36beSmrg 5453ecce36beSmrgtest -z "$STRIP" && STRIP=: 5454ecce36beSmrg 5455ecce36beSmrg 5456ecce36beSmrg 5457ecce36beSmrg 5458ecce36beSmrg 5459ecce36beSmrg 5460ecce36beSmrgif test -n "$ac_tool_prefix"; then 5461ecce36beSmrg # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5462ecce36beSmrgset dummy ${ac_tool_prefix}ranlib; ac_word=$2 5463ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5464ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 5465ecce36beSmrgif test "${ac_cv_prog_RANLIB+set}" = set; then : 5466ecce36beSmrg $as_echo_n "(cached) " >&6 5467ecce36beSmrgelse 5468ecce36beSmrg if test -n "$RANLIB"; then 5469ecce36beSmrg ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5470ecce36beSmrgelse 5471ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5472ecce36beSmrgfor as_dir in $PATH 5473ecce36beSmrgdo 5474ecce36beSmrg IFS=$as_save_IFS 5475ecce36beSmrg test -z "$as_dir" && as_dir=. 5476ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5477ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5478ecce36beSmrg ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5479ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5480ecce36beSmrg break 2 5481ecce36beSmrg fi 5482ecce36beSmrgdone 5483ecce36beSmrg done 5484ecce36beSmrgIFS=$as_save_IFS 5485ecce36beSmrg 5486ecce36beSmrgfi 5487ecce36beSmrgfi 5488ecce36beSmrgRANLIB=$ac_cv_prog_RANLIB 5489ecce36beSmrgif test -n "$RANLIB"; then 5490ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5491ecce36beSmrg$as_echo "$RANLIB" >&6; } 5492ecce36beSmrgelse 5493ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5494ecce36beSmrg$as_echo "no" >&6; } 5495ecce36beSmrgfi 5496ecce36beSmrg 5497ecce36beSmrg 5498ecce36beSmrgfi 5499ecce36beSmrgif test -z "$ac_cv_prog_RANLIB"; then 5500ecce36beSmrg ac_ct_RANLIB=$RANLIB 5501ecce36beSmrg # Extract the first word of "ranlib", so it can be a program name with args. 5502ecce36beSmrgset dummy ranlib; ac_word=$2 5503ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5504ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 5505ecce36beSmrgif test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5506ecce36beSmrg $as_echo_n "(cached) " >&6 5507ecce36beSmrgelse 5508ecce36beSmrg if test -n "$ac_ct_RANLIB"; then 5509ecce36beSmrg ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5510ecce36beSmrgelse 5511ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5512ecce36beSmrgfor as_dir in $PATH 5513ecce36beSmrgdo 5514ecce36beSmrg IFS=$as_save_IFS 5515ecce36beSmrg test -z "$as_dir" && as_dir=. 5516ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5517ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5518ecce36beSmrg ac_cv_prog_ac_ct_RANLIB="ranlib" 5519ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5520ecce36beSmrg break 2 5521ecce36beSmrg fi 5522ecce36beSmrgdone 5523ecce36beSmrg done 5524ecce36beSmrgIFS=$as_save_IFS 5525ecce36beSmrg 5526ecce36beSmrgfi 5527ecce36beSmrgfi 5528ecce36beSmrgac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5529ecce36beSmrgif test -n "$ac_ct_RANLIB"; then 5530ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5531ecce36beSmrg$as_echo "$ac_ct_RANLIB" >&6; } 5532ecce36beSmrgelse 5533ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5534ecce36beSmrg$as_echo "no" >&6; } 5535ecce36beSmrgfi 5536ecce36beSmrg 5537ecce36beSmrg if test "x$ac_ct_RANLIB" = x; then 5538ecce36beSmrg RANLIB=":" 5539ecce36beSmrg else 5540ecce36beSmrg case $cross_compiling:$ac_tool_warned in 5541ecce36beSmrgyes:) 5542ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5543ecce36beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5544ecce36beSmrgac_tool_warned=yes ;; 5545ecce36beSmrgesac 5546ecce36beSmrg RANLIB=$ac_ct_RANLIB 5547ecce36beSmrg fi 5548ecce36beSmrgelse 5549ecce36beSmrg RANLIB="$ac_cv_prog_RANLIB" 5550ecce36beSmrgfi 5551ecce36beSmrg 5552ecce36beSmrgtest -z "$RANLIB" && RANLIB=: 5553ecce36beSmrg 5554ecce36beSmrg 5555ecce36beSmrg 5556ecce36beSmrg 5557ecce36beSmrg 5558ecce36beSmrg 5559ecce36beSmrg# Determine commands to create old-style static archives. 5560ecce36beSmrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5561ecce36beSmrgold_postinstall_cmds='chmod 644 $oldlib' 5562ecce36beSmrgold_postuninstall_cmds= 5563ecce36beSmrg 5564ecce36beSmrgif test -n "$RANLIB"; then 5565ecce36beSmrg case $host_os in 5566ecce36beSmrg openbsd*) 5567ecce36beSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5568ecce36beSmrg ;; 5569ecce36beSmrg *) 5570ecce36beSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5571ecce36beSmrg ;; 5572ecce36beSmrg esac 5573ecce36beSmrg old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5574ecce36beSmrgfi 5575ecce36beSmrg 5576ecce36beSmrg 5577ecce36beSmrg 5578ecce36beSmrg 5579ecce36beSmrg 5580ecce36beSmrg 5581ecce36beSmrg 5582ecce36beSmrg 5583ecce36beSmrg 5584ecce36beSmrg 5585ecce36beSmrg 5586ecce36beSmrg 5587ecce36beSmrg 5588ecce36beSmrg 5589ecce36beSmrg 5590ecce36beSmrg 5591ecce36beSmrg 5592ecce36beSmrg 5593ecce36beSmrg 5594ecce36beSmrg 5595ecce36beSmrg 5596ecce36beSmrg 5597ecce36beSmrg 5598ecce36beSmrg 5599ecce36beSmrg 5600ecce36beSmrg 5601ecce36beSmrg 5602ecce36beSmrg 5603ecce36beSmrg 5604ecce36beSmrg 5605ecce36beSmrg 5606ecce36beSmrg 5607ecce36beSmrg 5608ecce36beSmrg 5609ecce36beSmrg# If no C compiler was specified, use CC. 5610ecce36beSmrgLTCC=${LTCC-"$CC"} 5611ecce36beSmrg 5612ecce36beSmrg# If no C compiler flags were specified, use CFLAGS. 5613ecce36beSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5614ecce36beSmrg 5615ecce36beSmrg# Allow CC to be a program name with arguments. 5616ecce36beSmrgcompiler=$CC 5617ecce36beSmrg 5618ecce36beSmrg 5619ecce36beSmrg# Check for command to grab the raw symbol name followed by C symbol from nm. 5620ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5621ecce36beSmrg$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5622ecce36beSmrgif test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 5623ecce36beSmrg $as_echo_n "(cached) " >&6 5624ecce36beSmrgelse 5625ecce36beSmrg 5626ecce36beSmrg# These are sane defaults that work on at least a few old systems. 5627ecce36beSmrg# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5628ecce36beSmrg 5629ecce36beSmrg# Character class describing NM global symbol codes. 5630ecce36beSmrgsymcode='[BCDEGRST]' 5631ecce36beSmrg 5632ecce36beSmrg# Regexp to match symbols that can be accessed directly from C. 5633ecce36beSmrgsympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5634ecce36beSmrg 5635ecce36beSmrg# Define system-specific variables. 5636ecce36beSmrgcase $host_os in 5637ecce36beSmrgaix*) 5638ecce36beSmrg symcode='[BCDT]' 5639ecce36beSmrg ;; 5640ecce36beSmrgcygwin* | mingw* | pw32* | cegcc*) 5641ecce36beSmrg symcode='[ABCDGISTW]' 5642ecce36beSmrg ;; 5643ecce36beSmrghpux*) 5644ecce36beSmrg if test "$host_cpu" = ia64; then 5645ecce36beSmrg symcode='[ABCDEGRST]' 5646ecce36beSmrg fi 5647ecce36beSmrg ;; 5648ecce36beSmrgirix* | nonstopux*) 5649ecce36beSmrg symcode='[BCDEGRST]' 5650ecce36beSmrg ;; 5651ecce36beSmrgosf*) 5652ecce36beSmrg symcode='[BCDEGQRST]' 5653ecce36beSmrg ;; 5654ecce36beSmrgsolaris*) 5655ecce36beSmrg symcode='[BDRT]' 5656ecce36beSmrg ;; 5657ecce36beSmrgsco3.2v5*) 5658ecce36beSmrg symcode='[DT]' 5659ecce36beSmrg ;; 5660ecce36beSmrgsysv4.2uw2*) 5661ecce36beSmrg symcode='[DT]' 5662ecce36beSmrg ;; 5663ecce36beSmrgsysv5* | sco5v6* | unixware* | OpenUNIX*) 5664ecce36beSmrg symcode='[ABDT]' 5665ecce36beSmrg ;; 5666ecce36beSmrgsysv4) 5667ecce36beSmrg symcode='[DFNSTU]' 5668ecce36beSmrg ;; 5669ecce36beSmrgesac 5670ecce36beSmrg 5671ecce36beSmrg# If we're using GNU nm, then use its standard symbol codes. 5672ecce36beSmrgcase `$NM -V 2>&1` in 5673ecce36beSmrg*GNU* | *'with BFD'*) 5674ecce36beSmrg symcode='[ABCDGIRSTW]' ;; 5675ecce36beSmrgesac 5676ecce36beSmrg 5677ecce36beSmrg# Transform an extracted symbol line into a proper C declaration. 5678ecce36beSmrg# Some systems (esp. on ia64) link data and code symbols differently, 5679ecce36beSmrg# so use this general approach. 5680ecce36beSmrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5681ecce36beSmrg 5682ecce36beSmrg# Transform an extracted symbol line into symbol name and symbol address 5683ecce36beSmrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5684ecce36beSmrglt_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'" 5685ecce36beSmrg 5686ecce36beSmrg# Handle CRLF in mingw tool chain 5687ecce36beSmrgopt_cr= 5688ecce36beSmrgcase $build_os in 5689ecce36beSmrgmingw*) 5690ecce36beSmrg opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5691ecce36beSmrg ;; 5692ecce36beSmrgesac 5693ecce36beSmrg 5694ecce36beSmrg# Try without a prefix underscore, then with it. 5695ecce36beSmrgfor ac_symprfx in "" "_"; do 5696ecce36beSmrg 5697ecce36beSmrg # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5698ecce36beSmrg symxfrm="\\1 $ac_symprfx\\2 \\2" 5699ecce36beSmrg 5700ecce36beSmrg # Write the raw and C identifiers. 5701ecce36beSmrg if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5702ecce36beSmrg # Fake it for dumpbin and say T for any non-static function 5703ecce36beSmrg # and D for any global variable. 5704ecce36beSmrg # Also find C++ and __fastcall symbols from MSVC++, 5705ecce36beSmrg # which start with @ or ?. 5706ecce36beSmrg lt_cv_sys_global_symbol_pipe="$AWK '"\ 5707ecce36beSmrg" {last_section=section; section=\$ 3};"\ 5708ecce36beSmrg" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5709ecce36beSmrg" \$ 0!~/External *\|/{next};"\ 5710ecce36beSmrg" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5711ecce36beSmrg" {if(hide[section]) next};"\ 5712ecce36beSmrg" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5713ecce36beSmrg" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5714ecce36beSmrg" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5715ecce36beSmrg" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5716ecce36beSmrg" ' prfx=^$ac_symprfx" 5717ecce36beSmrg else 5718ecce36beSmrg lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5719ecce36beSmrg fi 5720ecce36beSmrg 5721ecce36beSmrg # Check to see that the pipe works correctly. 5722ecce36beSmrg pipe_works=no 5723ecce36beSmrg 5724ecce36beSmrg rm -f conftest* 5725ecce36beSmrg cat > conftest.$ac_ext <<_LT_EOF 5726ecce36beSmrg#ifdef __cplusplus 5727ecce36beSmrgextern "C" { 5728ecce36beSmrg#endif 5729ecce36beSmrgchar nm_test_var; 5730ecce36beSmrgvoid nm_test_func(void); 5731ecce36beSmrgvoid nm_test_func(void){} 5732ecce36beSmrg#ifdef __cplusplus 5733ecce36beSmrg} 5734ecce36beSmrg#endif 5735ecce36beSmrgint main(){nm_test_var='a';nm_test_func();return(0);} 5736ecce36beSmrg_LT_EOF 5737ecce36beSmrg 5738ecce36beSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5739ecce36beSmrg (eval $ac_compile) 2>&5 5740ecce36beSmrg ac_status=$? 5741ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5742ecce36beSmrg test $ac_status = 0; }; then 5743ecce36beSmrg # Now try to grab the symbols. 5744ecce36beSmrg nlist=conftest.nm 5745ecce36beSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 5746ecce36beSmrg (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5747ecce36beSmrg ac_status=$? 5748ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5749ecce36beSmrg test $ac_status = 0; } && test -s "$nlist"; then 5750ecce36beSmrg # Try sorting and uniquifying the output. 5751ecce36beSmrg if sort "$nlist" | uniq > "$nlist"T; then 5752ecce36beSmrg mv -f "$nlist"T "$nlist" 5753ecce36beSmrg else 5754ecce36beSmrg rm -f "$nlist"T 5755ecce36beSmrg fi 5756ecce36beSmrg 5757ecce36beSmrg # Make sure that we snagged all the symbols we need. 5758ecce36beSmrg if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5759ecce36beSmrg if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5760ecce36beSmrg cat <<_LT_EOF > conftest.$ac_ext 5761ecce36beSmrg#ifdef __cplusplus 5762ecce36beSmrgextern "C" { 5763ecce36beSmrg#endif 5764ecce36beSmrg 5765ecce36beSmrg_LT_EOF 5766ecce36beSmrg # Now generate the symbol file. 5767ecce36beSmrg eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5768ecce36beSmrg 5769ecce36beSmrg cat <<_LT_EOF >> conftest.$ac_ext 5770ecce36beSmrg 5771ecce36beSmrg/* The mapping between symbol names and symbols. */ 5772ecce36beSmrgconst struct { 5773ecce36beSmrg const char *name; 5774ecce36beSmrg void *address; 5775ecce36beSmrg} 5776ecce36beSmrglt__PROGRAM__LTX_preloaded_symbols[] = 5777ecce36beSmrg{ 5778ecce36beSmrg { "@PROGRAM@", (void *) 0 }, 5779ecce36beSmrg_LT_EOF 5780ecce36beSmrg $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5781ecce36beSmrg cat <<\_LT_EOF >> conftest.$ac_ext 5782ecce36beSmrg {0, (void *) 0} 5783ecce36beSmrg}; 5784ecce36beSmrg 5785ecce36beSmrg/* This works around a problem in FreeBSD linker */ 5786ecce36beSmrg#ifdef FREEBSD_WORKAROUND 5787ecce36beSmrgstatic const void *lt_preloaded_setup() { 5788ecce36beSmrg return lt__PROGRAM__LTX_preloaded_symbols; 5789ecce36beSmrg} 5790ecce36beSmrg#endif 5791ecce36beSmrg 5792ecce36beSmrg#ifdef __cplusplus 5793ecce36beSmrg} 5794ecce36beSmrg#endif 5795ecce36beSmrg_LT_EOF 5796ecce36beSmrg # Now try linking the two files. 5797ecce36beSmrg mv conftest.$ac_objext conftstm.$ac_objext 5798ecce36beSmrg lt_save_LIBS="$LIBS" 5799ecce36beSmrg lt_save_CFLAGS="$CFLAGS" 5800ecce36beSmrg LIBS="conftstm.$ac_objext" 5801ecce36beSmrg CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5802ecce36beSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5803ecce36beSmrg (eval $ac_link) 2>&5 5804ecce36beSmrg ac_status=$? 5805ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5806ecce36beSmrg test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5807ecce36beSmrg pipe_works=yes 5808ecce36beSmrg fi 5809ecce36beSmrg LIBS="$lt_save_LIBS" 5810ecce36beSmrg CFLAGS="$lt_save_CFLAGS" 5811ecce36beSmrg else 5812ecce36beSmrg echo "cannot find nm_test_func in $nlist" >&5 5813ecce36beSmrg fi 5814ecce36beSmrg else 5815ecce36beSmrg echo "cannot find nm_test_var in $nlist" >&5 5816ecce36beSmrg fi 5817ecce36beSmrg else 5818ecce36beSmrg echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5819ecce36beSmrg fi 5820ecce36beSmrg else 5821ecce36beSmrg echo "$progname: failed program was:" >&5 5822ecce36beSmrg cat conftest.$ac_ext >&5 5823ecce36beSmrg fi 5824ecce36beSmrg rm -rf conftest* conftst* 5825ecce36beSmrg 5826ecce36beSmrg # Do not use the global_symbol_pipe unless it works. 5827ecce36beSmrg if test "$pipe_works" = yes; then 5828ecce36beSmrg break 5829ecce36beSmrg else 5830ecce36beSmrg lt_cv_sys_global_symbol_pipe= 5831ecce36beSmrg fi 5832ecce36beSmrgdone 5833ecce36beSmrg 5834ecce36beSmrgfi 5835ecce36beSmrg 5836ecce36beSmrgif test -z "$lt_cv_sys_global_symbol_pipe"; then 5837ecce36beSmrg lt_cv_sys_global_symbol_to_cdecl= 5838ecce36beSmrgfi 5839ecce36beSmrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5840ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5841ecce36beSmrg$as_echo "failed" >&6; } 5842ecce36beSmrgelse 5843ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5844ecce36beSmrg$as_echo "ok" >&6; } 5845ecce36beSmrgfi 5846ecce36beSmrg 5847ecce36beSmrg 5848ecce36beSmrg 5849ecce36beSmrg 5850ecce36beSmrg 5851ecce36beSmrg 5852ecce36beSmrg 5853ecce36beSmrg 5854ecce36beSmrg 5855ecce36beSmrg 5856ecce36beSmrg 5857ecce36beSmrg 5858ecce36beSmrg 5859ecce36beSmrg 5860ecce36beSmrg 5861ecce36beSmrg 5862ecce36beSmrg 5863ecce36beSmrg 5864ecce36beSmrg 5865ecce36beSmrg 5866ecce36beSmrg 5867ecce36beSmrg 5868ecce36beSmrg 5869ecce36beSmrg# Check whether --enable-libtool-lock was given. 5870ecce36beSmrgif test "${enable_libtool_lock+set}" = set; then : 5871ecce36beSmrg enableval=$enable_libtool_lock; 5872ecce36beSmrgfi 5873ecce36beSmrg 5874ecce36beSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5875ecce36beSmrg 5876ecce36beSmrg# Some flags need to be propagated to the compiler or linker for good 5877ecce36beSmrg# libtool support. 5878ecce36beSmrgcase $host in 5879ecce36beSmrgia64-*-hpux*) 5880ecce36beSmrg # Find out which ABI we are using. 5881ecce36beSmrg echo 'int i;' > conftest.$ac_ext 5882ecce36beSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5883ecce36beSmrg (eval $ac_compile) 2>&5 5884ecce36beSmrg ac_status=$? 5885ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5886ecce36beSmrg test $ac_status = 0; }; then 5887ecce36beSmrg case `/usr/bin/file conftest.$ac_objext` in 5888ecce36beSmrg *ELF-32*) 5889ecce36beSmrg HPUX_IA64_MODE="32" 5890ecce36beSmrg ;; 5891ecce36beSmrg *ELF-64*) 5892ecce36beSmrg HPUX_IA64_MODE="64" 5893ecce36beSmrg ;; 5894ecce36beSmrg esac 5895ecce36beSmrg fi 5896ecce36beSmrg rm -rf conftest* 5897ecce36beSmrg ;; 5898ecce36beSmrg*-*-irix6*) 5899ecce36beSmrg # Find out which ABI we are using. 5900ecce36beSmrg echo '#line 5900 "configure"' > conftest.$ac_ext 5901ecce36beSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5902ecce36beSmrg (eval $ac_compile) 2>&5 5903ecce36beSmrg ac_status=$? 5904ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5905ecce36beSmrg test $ac_status = 0; }; then 5906ecce36beSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 5907ecce36beSmrg case `/usr/bin/file conftest.$ac_objext` in 5908ecce36beSmrg *32-bit*) 5909ecce36beSmrg LD="${LD-ld} -melf32bsmip" 5910ecce36beSmrg ;; 5911ecce36beSmrg *N32*) 5912ecce36beSmrg LD="${LD-ld} -melf32bmipn32" 5913ecce36beSmrg ;; 5914ecce36beSmrg *64-bit*) 5915ecce36beSmrg LD="${LD-ld} -melf64bmip" 5916ecce36beSmrg ;; 5917ecce36beSmrg esac 5918ecce36beSmrg else 5919ecce36beSmrg case `/usr/bin/file conftest.$ac_objext` in 5920ecce36beSmrg *32-bit*) 5921ecce36beSmrg LD="${LD-ld} -32" 5922ecce36beSmrg ;; 5923ecce36beSmrg *N32*) 5924ecce36beSmrg LD="${LD-ld} -n32" 5925ecce36beSmrg ;; 5926ecce36beSmrg *64-bit*) 5927ecce36beSmrg LD="${LD-ld} -64" 5928ecce36beSmrg ;; 5929ecce36beSmrg esac 5930ecce36beSmrg fi 5931ecce36beSmrg fi 5932ecce36beSmrg rm -rf conftest* 5933ecce36beSmrg ;; 5934ecce36beSmrg 5935ecce36beSmrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5936ecce36beSmrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5937ecce36beSmrg # Find out which ABI we are using. 5938ecce36beSmrg echo 'int i;' > conftest.$ac_ext 5939ecce36beSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5940ecce36beSmrg (eval $ac_compile) 2>&5 5941ecce36beSmrg ac_status=$? 5942ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5943ecce36beSmrg test $ac_status = 0; }; then 5944ecce36beSmrg case `/usr/bin/file conftest.o` in 5945ecce36beSmrg *32-bit*) 5946ecce36beSmrg case $host in 5947ecce36beSmrg x86_64-*kfreebsd*-gnu) 5948ecce36beSmrg LD="${LD-ld} -m elf_i386_fbsd" 5949ecce36beSmrg ;; 5950ecce36beSmrg x86_64-*linux*) 5951ecce36beSmrg LD="${LD-ld} -m elf_i386" 5952ecce36beSmrg ;; 5953ecce36beSmrg ppc64-*linux*|powerpc64-*linux*) 5954ecce36beSmrg LD="${LD-ld} -m elf32ppclinux" 5955ecce36beSmrg ;; 5956ecce36beSmrg s390x-*linux*) 5957ecce36beSmrg LD="${LD-ld} -m elf_s390" 5958ecce36beSmrg ;; 5959ecce36beSmrg sparc64-*linux*) 5960ecce36beSmrg LD="${LD-ld} -m elf32_sparc" 5961ecce36beSmrg ;; 5962ecce36beSmrg esac 5963ecce36beSmrg ;; 5964ecce36beSmrg *64-bit*) 5965ecce36beSmrg case $host in 5966ecce36beSmrg x86_64-*kfreebsd*-gnu) 5967ecce36beSmrg LD="${LD-ld} -m elf_x86_64_fbsd" 5968ecce36beSmrg ;; 5969ecce36beSmrg x86_64-*linux*) 5970ecce36beSmrg LD="${LD-ld} -m elf_x86_64" 5971ecce36beSmrg ;; 5972ecce36beSmrg ppc*-*linux*|powerpc*-*linux*) 5973ecce36beSmrg LD="${LD-ld} -m elf64ppc" 5974ecce36beSmrg ;; 5975ecce36beSmrg s390*-*linux*|s390*-*tpf*) 5976ecce36beSmrg LD="${LD-ld} -m elf64_s390" 5977ecce36beSmrg ;; 5978ecce36beSmrg sparc*-*linux*) 5979ecce36beSmrg LD="${LD-ld} -m elf64_sparc" 5980ecce36beSmrg ;; 5981ecce36beSmrg esac 5982ecce36beSmrg ;; 5983ecce36beSmrg esac 5984ecce36beSmrg fi 5985ecce36beSmrg rm -rf conftest* 5986ecce36beSmrg ;; 5987ecce36beSmrg 5988ecce36beSmrg*-*-sco3.2v5*) 5989ecce36beSmrg # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5990ecce36beSmrg SAVE_CFLAGS="$CFLAGS" 5991ecce36beSmrg CFLAGS="$CFLAGS -belf" 5992ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 5993ecce36beSmrg$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5994ecce36beSmrgif test "${lt_cv_cc_needs_belf+set}" = set; then : 5995ecce36beSmrg $as_echo_n "(cached) " >&6 5996ecce36beSmrgelse 5997ecce36beSmrg ac_ext=c 5998ecce36beSmrgac_cpp='$CPP $CPPFLAGS' 5999ecce36beSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6000ecce36beSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6001ecce36beSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 6002ecce36beSmrg 6003ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6004ecce36beSmrg/* end confdefs.h. */ 6005ecce36beSmrg 6006ecce36beSmrgint 6007ecce36beSmrgmain () 6008ecce36beSmrg{ 6009ecce36beSmrg 6010ecce36beSmrg ; 6011ecce36beSmrg return 0; 6012ecce36beSmrg} 6013ecce36beSmrg_ACEOF 6014ecce36beSmrgif ac_fn_c_try_link "$LINENO"; then : 6015ecce36beSmrg lt_cv_cc_needs_belf=yes 6016ecce36beSmrgelse 6017ecce36beSmrg lt_cv_cc_needs_belf=no 6018ecce36beSmrgfi 6019ecce36beSmrgrm -f core conftest.err conftest.$ac_objext \ 6020ecce36beSmrg conftest$ac_exeext conftest.$ac_ext 6021ecce36beSmrg ac_ext=c 6022ecce36beSmrgac_cpp='$CPP $CPPFLAGS' 6023ecce36beSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6024ecce36beSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6025ecce36beSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 6026ecce36beSmrg 6027ecce36beSmrgfi 6028ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6029ecce36beSmrg$as_echo "$lt_cv_cc_needs_belf" >&6; } 6030ecce36beSmrg if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6031ecce36beSmrg # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6032ecce36beSmrg CFLAGS="$SAVE_CFLAGS" 6033ecce36beSmrg fi 6034ecce36beSmrg ;; 6035ecce36beSmrgsparc*-*solaris*) 6036ecce36beSmrg # Find out which ABI we are using. 6037ecce36beSmrg echo 'int i;' > conftest.$ac_ext 6038ecce36beSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6039ecce36beSmrg (eval $ac_compile) 2>&5 6040ecce36beSmrg ac_status=$? 6041ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6042ecce36beSmrg test $ac_status = 0; }; then 6043ecce36beSmrg case `/usr/bin/file conftest.o` in 6044ecce36beSmrg *64-bit*) 6045ecce36beSmrg case $lt_cv_prog_gnu_ld in 6046ecce36beSmrg yes*) LD="${LD-ld} -m elf64_sparc" ;; 6047ecce36beSmrg *) 6048ecce36beSmrg if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6049ecce36beSmrg LD="${LD-ld} -64" 6050ecce36beSmrg fi 6051ecce36beSmrg ;; 6052ecce36beSmrg esac 6053ecce36beSmrg ;; 6054ecce36beSmrg esac 6055ecce36beSmrg fi 6056ecce36beSmrg rm -rf conftest* 6057ecce36beSmrg ;; 6058ecce36beSmrgesac 6059ecce36beSmrg 6060ecce36beSmrgneed_locks="$enable_libtool_lock" 6061ecce36beSmrg 6062ecce36beSmrg 6063ecce36beSmrg case $host_os in 6064ecce36beSmrg rhapsody* | darwin*) 6065ecce36beSmrg if test -n "$ac_tool_prefix"; then 6066ecce36beSmrg # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6067ecce36beSmrgset dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6068ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6069ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 6070ecce36beSmrgif test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6071ecce36beSmrg $as_echo_n "(cached) " >&6 6072ecce36beSmrgelse 6073ecce36beSmrg if test -n "$DSYMUTIL"; then 6074ecce36beSmrg ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6075ecce36beSmrgelse 6076ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6077ecce36beSmrgfor as_dir in $PATH 6078ecce36beSmrgdo 6079ecce36beSmrg IFS=$as_save_IFS 6080ecce36beSmrg test -z "$as_dir" && as_dir=. 6081ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6082ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6083ecce36beSmrg ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6084ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6085ecce36beSmrg break 2 6086ecce36beSmrg fi 6087ecce36beSmrgdone 6088ecce36beSmrg done 6089ecce36beSmrgIFS=$as_save_IFS 6090ecce36beSmrg 6091ecce36beSmrgfi 6092ecce36beSmrgfi 6093ecce36beSmrgDSYMUTIL=$ac_cv_prog_DSYMUTIL 6094ecce36beSmrgif test -n "$DSYMUTIL"; then 6095ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6096ecce36beSmrg$as_echo "$DSYMUTIL" >&6; } 6097ecce36beSmrgelse 6098ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6099ecce36beSmrg$as_echo "no" >&6; } 6100ecce36beSmrgfi 6101ecce36beSmrg 6102ecce36beSmrg 6103ecce36beSmrgfi 6104ecce36beSmrgif test -z "$ac_cv_prog_DSYMUTIL"; then 6105ecce36beSmrg ac_ct_DSYMUTIL=$DSYMUTIL 6106ecce36beSmrg # Extract the first word of "dsymutil", so it can be a program name with args. 6107ecce36beSmrgset dummy dsymutil; ac_word=$2 6108ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6109ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 6110ecce36beSmrgif test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6111ecce36beSmrg $as_echo_n "(cached) " >&6 6112ecce36beSmrgelse 6113ecce36beSmrg if test -n "$ac_ct_DSYMUTIL"; then 6114ecce36beSmrg ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6115ecce36beSmrgelse 6116ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6117ecce36beSmrgfor as_dir in $PATH 6118ecce36beSmrgdo 6119ecce36beSmrg IFS=$as_save_IFS 6120ecce36beSmrg test -z "$as_dir" && as_dir=. 6121ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6122ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6123ecce36beSmrg ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6124ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6125ecce36beSmrg break 2 6126ecce36beSmrg fi 6127ecce36beSmrgdone 6128ecce36beSmrg done 6129ecce36beSmrgIFS=$as_save_IFS 6130ecce36beSmrg 6131ecce36beSmrgfi 6132ecce36beSmrgfi 6133ecce36beSmrgac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6134ecce36beSmrgif test -n "$ac_ct_DSYMUTIL"; then 6135ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6136ecce36beSmrg$as_echo "$ac_ct_DSYMUTIL" >&6; } 6137ecce36beSmrgelse 6138ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6139ecce36beSmrg$as_echo "no" >&6; } 6140ecce36beSmrgfi 6141ecce36beSmrg 6142ecce36beSmrg if test "x$ac_ct_DSYMUTIL" = x; then 6143ecce36beSmrg DSYMUTIL=":" 6144ecce36beSmrg else 6145ecce36beSmrg case $cross_compiling:$ac_tool_warned in 6146ecce36beSmrgyes:) 6147ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6148ecce36beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6149ecce36beSmrgac_tool_warned=yes ;; 6150ecce36beSmrgesac 6151ecce36beSmrg DSYMUTIL=$ac_ct_DSYMUTIL 6152ecce36beSmrg fi 6153ecce36beSmrgelse 6154ecce36beSmrg DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6155ecce36beSmrgfi 6156ecce36beSmrg 6157ecce36beSmrg if test -n "$ac_tool_prefix"; then 6158ecce36beSmrg # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6159ecce36beSmrgset dummy ${ac_tool_prefix}nmedit; ac_word=$2 6160ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6161ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 6162ecce36beSmrgif test "${ac_cv_prog_NMEDIT+set}" = set; then : 6163ecce36beSmrg $as_echo_n "(cached) " >&6 6164ecce36beSmrgelse 6165ecce36beSmrg if test -n "$NMEDIT"; then 6166ecce36beSmrg ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6167ecce36beSmrgelse 6168ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6169ecce36beSmrgfor as_dir in $PATH 6170ecce36beSmrgdo 6171ecce36beSmrg IFS=$as_save_IFS 6172ecce36beSmrg test -z "$as_dir" && as_dir=. 6173ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6174ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6175ecce36beSmrg ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6176ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6177ecce36beSmrg break 2 6178ecce36beSmrg fi 6179ecce36beSmrgdone 6180ecce36beSmrg done 6181ecce36beSmrgIFS=$as_save_IFS 6182ecce36beSmrg 6183ecce36beSmrgfi 6184ecce36beSmrgfi 6185ecce36beSmrgNMEDIT=$ac_cv_prog_NMEDIT 6186ecce36beSmrgif test -n "$NMEDIT"; then 6187ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6188ecce36beSmrg$as_echo "$NMEDIT" >&6; } 6189ecce36beSmrgelse 6190ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6191ecce36beSmrg$as_echo "no" >&6; } 6192ecce36beSmrgfi 6193ecce36beSmrg 6194ecce36beSmrg 6195ecce36beSmrgfi 6196ecce36beSmrgif test -z "$ac_cv_prog_NMEDIT"; then 6197ecce36beSmrg ac_ct_NMEDIT=$NMEDIT 6198ecce36beSmrg # Extract the first word of "nmedit", so it can be a program name with args. 6199ecce36beSmrgset dummy nmedit; ac_word=$2 6200ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6201ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 6202ecce36beSmrgif test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6203ecce36beSmrg $as_echo_n "(cached) " >&6 6204ecce36beSmrgelse 6205ecce36beSmrg if test -n "$ac_ct_NMEDIT"; then 6206ecce36beSmrg ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6207ecce36beSmrgelse 6208ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6209ecce36beSmrgfor as_dir in $PATH 6210ecce36beSmrgdo 6211ecce36beSmrg IFS=$as_save_IFS 6212ecce36beSmrg test -z "$as_dir" && as_dir=. 6213ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6214ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6215ecce36beSmrg ac_cv_prog_ac_ct_NMEDIT="nmedit" 6216ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6217ecce36beSmrg break 2 6218ecce36beSmrg fi 6219ecce36beSmrgdone 6220ecce36beSmrg done 6221ecce36beSmrgIFS=$as_save_IFS 6222ecce36beSmrg 6223ecce36beSmrgfi 6224ecce36beSmrgfi 6225ecce36beSmrgac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6226ecce36beSmrgif test -n "$ac_ct_NMEDIT"; then 6227ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6228ecce36beSmrg$as_echo "$ac_ct_NMEDIT" >&6; } 6229ecce36beSmrgelse 6230ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6231ecce36beSmrg$as_echo "no" >&6; } 6232ecce36beSmrgfi 6233ecce36beSmrg 6234ecce36beSmrg if test "x$ac_ct_NMEDIT" = x; then 6235ecce36beSmrg NMEDIT=":" 6236ecce36beSmrg else 6237ecce36beSmrg case $cross_compiling:$ac_tool_warned in 6238ecce36beSmrgyes:) 6239ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6240ecce36beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6241ecce36beSmrgac_tool_warned=yes ;; 6242ecce36beSmrgesac 6243ecce36beSmrg NMEDIT=$ac_ct_NMEDIT 6244ecce36beSmrg fi 6245ecce36beSmrgelse 6246ecce36beSmrg NMEDIT="$ac_cv_prog_NMEDIT" 6247ecce36beSmrgfi 6248ecce36beSmrg 6249ecce36beSmrg if test -n "$ac_tool_prefix"; then 6250ecce36beSmrg # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6251ecce36beSmrgset dummy ${ac_tool_prefix}lipo; ac_word=$2 6252ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6253ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 6254ecce36beSmrgif test "${ac_cv_prog_LIPO+set}" = set; then : 6255ecce36beSmrg $as_echo_n "(cached) " >&6 6256ecce36beSmrgelse 6257ecce36beSmrg if test -n "$LIPO"; then 6258ecce36beSmrg ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6259ecce36beSmrgelse 6260ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6261ecce36beSmrgfor as_dir in $PATH 6262ecce36beSmrgdo 6263ecce36beSmrg IFS=$as_save_IFS 6264ecce36beSmrg test -z "$as_dir" && as_dir=. 6265ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6266ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6267ecce36beSmrg ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6268ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6269ecce36beSmrg break 2 6270ecce36beSmrg fi 6271ecce36beSmrgdone 6272ecce36beSmrg done 6273ecce36beSmrgIFS=$as_save_IFS 6274ecce36beSmrg 6275ecce36beSmrgfi 6276ecce36beSmrgfi 6277ecce36beSmrgLIPO=$ac_cv_prog_LIPO 6278ecce36beSmrgif test -n "$LIPO"; then 6279ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6280ecce36beSmrg$as_echo "$LIPO" >&6; } 6281ecce36beSmrgelse 6282ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6283ecce36beSmrg$as_echo "no" >&6; } 6284ecce36beSmrgfi 6285ecce36beSmrg 6286ecce36beSmrg 6287ecce36beSmrgfi 6288ecce36beSmrgif test -z "$ac_cv_prog_LIPO"; then 6289ecce36beSmrg ac_ct_LIPO=$LIPO 6290ecce36beSmrg # Extract the first word of "lipo", so it can be a program name with args. 6291ecce36beSmrgset dummy lipo; ac_word=$2 6292ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6293ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 6294ecce36beSmrgif test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6295ecce36beSmrg $as_echo_n "(cached) " >&6 6296ecce36beSmrgelse 6297ecce36beSmrg if test -n "$ac_ct_LIPO"; then 6298ecce36beSmrg ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6299ecce36beSmrgelse 6300ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6301ecce36beSmrgfor as_dir in $PATH 6302ecce36beSmrgdo 6303ecce36beSmrg IFS=$as_save_IFS 6304ecce36beSmrg test -z "$as_dir" && as_dir=. 6305ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6306ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6307ecce36beSmrg ac_cv_prog_ac_ct_LIPO="lipo" 6308ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6309ecce36beSmrg break 2 6310ecce36beSmrg fi 6311ecce36beSmrgdone 6312ecce36beSmrg done 6313ecce36beSmrgIFS=$as_save_IFS 6314ecce36beSmrg 6315ecce36beSmrgfi 6316ecce36beSmrgfi 6317ecce36beSmrgac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6318ecce36beSmrgif test -n "$ac_ct_LIPO"; then 6319ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6320ecce36beSmrg$as_echo "$ac_ct_LIPO" >&6; } 6321ecce36beSmrgelse 6322ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6323ecce36beSmrg$as_echo "no" >&6; } 6324ecce36beSmrgfi 6325ecce36beSmrg 6326ecce36beSmrg if test "x$ac_ct_LIPO" = x; then 6327ecce36beSmrg LIPO=":" 6328ecce36beSmrg else 6329ecce36beSmrg case $cross_compiling:$ac_tool_warned in 6330ecce36beSmrgyes:) 6331ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6332ecce36beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6333ecce36beSmrgac_tool_warned=yes ;; 6334ecce36beSmrgesac 6335ecce36beSmrg LIPO=$ac_ct_LIPO 6336ecce36beSmrg fi 6337ecce36beSmrgelse 6338ecce36beSmrg LIPO="$ac_cv_prog_LIPO" 6339ecce36beSmrgfi 6340ecce36beSmrg 6341ecce36beSmrg if test -n "$ac_tool_prefix"; then 6342ecce36beSmrg # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6343ecce36beSmrgset dummy ${ac_tool_prefix}otool; ac_word=$2 6344ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6345ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 6346ecce36beSmrgif test "${ac_cv_prog_OTOOL+set}" = set; then : 6347ecce36beSmrg $as_echo_n "(cached) " >&6 6348ecce36beSmrgelse 6349ecce36beSmrg if test -n "$OTOOL"; then 6350ecce36beSmrg ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6351ecce36beSmrgelse 6352ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6353ecce36beSmrgfor as_dir in $PATH 6354ecce36beSmrgdo 6355ecce36beSmrg IFS=$as_save_IFS 6356ecce36beSmrg test -z "$as_dir" && as_dir=. 6357ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6358ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6359ecce36beSmrg ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6360ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6361ecce36beSmrg break 2 6362ecce36beSmrg fi 6363ecce36beSmrgdone 6364ecce36beSmrg done 6365ecce36beSmrgIFS=$as_save_IFS 6366ecce36beSmrg 6367ecce36beSmrgfi 6368ecce36beSmrgfi 6369ecce36beSmrgOTOOL=$ac_cv_prog_OTOOL 6370ecce36beSmrgif test -n "$OTOOL"; then 6371ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6372ecce36beSmrg$as_echo "$OTOOL" >&6; } 6373ecce36beSmrgelse 6374ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6375ecce36beSmrg$as_echo "no" >&6; } 6376ecce36beSmrgfi 6377ecce36beSmrg 6378ecce36beSmrg 6379ecce36beSmrgfi 6380ecce36beSmrgif test -z "$ac_cv_prog_OTOOL"; then 6381ecce36beSmrg ac_ct_OTOOL=$OTOOL 6382ecce36beSmrg # Extract the first word of "otool", so it can be a program name with args. 6383ecce36beSmrgset dummy otool; ac_word=$2 6384ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6385ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 6386ecce36beSmrgif test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 6387ecce36beSmrg $as_echo_n "(cached) " >&6 6388ecce36beSmrgelse 6389ecce36beSmrg if test -n "$ac_ct_OTOOL"; then 6390ecce36beSmrg ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6391ecce36beSmrgelse 6392ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6393ecce36beSmrgfor as_dir in $PATH 6394ecce36beSmrgdo 6395ecce36beSmrg IFS=$as_save_IFS 6396ecce36beSmrg test -z "$as_dir" && as_dir=. 6397ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6398ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6399ecce36beSmrg ac_cv_prog_ac_ct_OTOOL="otool" 6400ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6401ecce36beSmrg break 2 6402ecce36beSmrg fi 6403ecce36beSmrgdone 6404ecce36beSmrg done 6405ecce36beSmrgIFS=$as_save_IFS 6406ecce36beSmrg 6407ecce36beSmrgfi 6408ecce36beSmrgfi 6409ecce36beSmrgac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6410ecce36beSmrgif test -n "$ac_ct_OTOOL"; then 6411ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6412ecce36beSmrg$as_echo "$ac_ct_OTOOL" >&6; } 6413ecce36beSmrgelse 6414ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6415ecce36beSmrg$as_echo "no" >&6; } 6416ecce36beSmrgfi 6417ecce36beSmrg 6418ecce36beSmrg if test "x$ac_ct_OTOOL" = x; then 6419ecce36beSmrg OTOOL=":" 6420ecce36beSmrg else 6421ecce36beSmrg case $cross_compiling:$ac_tool_warned in 6422ecce36beSmrgyes:) 6423ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6424ecce36beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6425ecce36beSmrgac_tool_warned=yes ;; 6426ecce36beSmrgesac 6427ecce36beSmrg OTOOL=$ac_ct_OTOOL 6428ecce36beSmrg fi 6429ecce36beSmrgelse 6430ecce36beSmrg OTOOL="$ac_cv_prog_OTOOL" 6431ecce36beSmrgfi 6432ecce36beSmrg 6433ecce36beSmrg if test -n "$ac_tool_prefix"; then 6434ecce36beSmrg # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6435ecce36beSmrgset dummy ${ac_tool_prefix}otool64; ac_word=$2 6436ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6437ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 6438ecce36beSmrgif test "${ac_cv_prog_OTOOL64+set}" = set; then : 6439ecce36beSmrg $as_echo_n "(cached) " >&6 6440ecce36beSmrgelse 6441ecce36beSmrg if test -n "$OTOOL64"; then 6442ecce36beSmrg ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6443ecce36beSmrgelse 6444ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6445ecce36beSmrgfor as_dir in $PATH 6446ecce36beSmrgdo 6447ecce36beSmrg IFS=$as_save_IFS 6448ecce36beSmrg test -z "$as_dir" && as_dir=. 6449ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6450ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6451ecce36beSmrg ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6452ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6453ecce36beSmrg break 2 6454ecce36beSmrg fi 6455ecce36beSmrgdone 6456ecce36beSmrg done 6457ecce36beSmrgIFS=$as_save_IFS 6458ecce36beSmrg 6459ecce36beSmrgfi 6460ecce36beSmrgfi 6461ecce36beSmrgOTOOL64=$ac_cv_prog_OTOOL64 6462ecce36beSmrgif test -n "$OTOOL64"; then 6463ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6464ecce36beSmrg$as_echo "$OTOOL64" >&6; } 6465ecce36beSmrgelse 6466ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6467ecce36beSmrg$as_echo "no" >&6; } 6468ecce36beSmrgfi 6469ecce36beSmrg 6470ecce36beSmrg 6471ecce36beSmrgfi 6472ecce36beSmrgif test -z "$ac_cv_prog_OTOOL64"; then 6473ecce36beSmrg ac_ct_OTOOL64=$OTOOL64 6474ecce36beSmrg # Extract the first word of "otool64", so it can be a program name with args. 6475ecce36beSmrgset dummy otool64; ac_word=$2 6476ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6477ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 6478ecce36beSmrgif test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 6479ecce36beSmrg $as_echo_n "(cached) " >&6 6480ecce36beSmrgelse 6481ecce36beSmrg if test -n "$ac_ct_OTOOL64"; then 6482ecce36beSmrg ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6483ecce36beSmrgelse 6484ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6485ecce36beSmrgfor as_dir in $PATH 6486ecce36beSmrgdo 6487ecce36beSmrg IFS=$as_save_IFS 6488ecce36beSmrg test -z "$as_dir" && as_dir=. 6489ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6490ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6491ecce36beSmrg ac_cv_prog_ac_ct_OTOOL64="otool64" 6492ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6493ecce36beSmrg break 2 6494ecce36beSmrg fi 6495ecce36beSmrgdone 6496ecce36beSmrg done 6497ecce36beSmrgIFS=$as_save_IFS 6498ecce36beSmrg 6499ecce36beSmrgfi 6500ecce36beSmrgfi 6501ecce36beSmrgac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6502ecce36beSmrgif test -n "$ac_ct_OTOOL64"; then 6503ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6504ecce36beSmrg$as_echo "$ac_ct_OTOOL64" >&6; } 6505ecce36beSmrgelse 6506ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6507ecce36beSmrg$as_echo "no" >&6; } 6508ecce36beSmrgfi 6509ecce36beSmrg 6510ecce36beSmrg if test "x$ac_ct_OTOOL64" = x; then 6511ecce36beSmrg OTOOL64=":" 6512ecce36beSmrg else 6513ecce36beSmrg case $cross_compiling:$ac_tool_warned in 6514ecce36beSmrgyes:) 6515ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6516ecce36beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6517ecce36beSmrgac_tool_warned=yes ;; 6518ecce36beSmrgesac 6519ecce36beSmrg OTOOL64=$ac_ct_OTOOL64 6520ecce36beSmrg fi 6521ecce36beSmrgelse 6522ecce36beSmrg OTOOL64="$ac_cv_prog_OTOOL64" 6523ecce36beSmrgfi 6524ecce36beSmrg 6525ecce36beSmrg 6526ecce36beSmrg 6527ecce36beSmrg 6528ecce36beSmrg 6529ecce36beSmrg 6530ecce36beSmrg 6531ecce36beSmrg 6532ecce36beSmrg 6533ecce36beSmrg 6534ecce36beSmrg 6535ecce36beSmrg 6536ecce36beSmrg 6537ecce36beSmrg 6538ecce36beSmrg 6539ecce36beSmrg 6540ecce36beSmrg 6541ecce36beSmrg 6542ecce36beSmrg 6543ecce36beSmrg 6544ecce36beSmrg 6545ecce36beSmrg 6546ecce36beSmrg 6547ecce36beSmrg 6548ecce36beSmrg 6549ecce36beSmrg 6550ecce36beSmrg 6551ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6552ecce36beSmrg$as_echo_n "checking for -single_module linker flag... " >&6; } 6553ecce36beSmrgif test "${lt_cv_apple_cc_single_mod+set}" = set; then : 6554ecce36beSmrg $as_echo_n "(cached) " >&6 6555ecce36beSmrgelse 6556ecce36beSmrg lt_cv_apple_cc_single_mod=no 6557ecce36beSmrg if test -z "${LT_MULTI_MODULE}"; then 6558ecce36beSmrg # By default we will add the -single_module flag. You can override 6559ecce36beSmrg # by either setting the environment variable LT_MULTI_MODULE 6560ecce36beSmrg # non-empty at configure time, or by adding -multi_module to the 6561ecce36beSmrg # link flags. 6562ecce36beSmrg rm -rf libconftest.dylib* 6563ecce36beSmrg echo "int foo(void){return 1;}" > conftest.c 6564ecce36beSmrg echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6565ecce36beSmrg-dynamiclib -Wl,-single_module conftest.c" >&5 6566ecce36beSmrg $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6567ecce36beSmrg -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6568ecce36beSmrg _lt_result=$? 6569ecce36beSmrg if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6570ecce36beSmrg lt_cv_apple_cc_single_mod=yes 6571ecce36beSmrg else 6572ecce36beSmrg cat conftest.err >&5 6573ecce36beSmrg fi 6574ecce36beSmrg rm -rf libconftest.dylib* 6575ecce36beSmrg rm -f conftest.* 6576ecce36beSmrg fi 6577ecce36beSmrgfi 6578ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6579ecce36beSmrg$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6580ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6581ecce36beSmrg$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6582ecce36beSmrgif test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 6583ecce36beSmrg $as_echo_n "(cached) " >&6 6584ecce36beSmrgelse 6585ecce36beSmrg lt_cv_ld_exported_symbols_list=no 6586ecce36beSmrg save_LDFLAGS=$LDFLAGS 6587ecce36beSmrg echo "_main" > conftest.sym 6588ecce36beSmrg LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6589ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6590ecce36beSmrg/* end confdefs.h. */ 6591ecce36beSmrg 6592ecce36beSmrgint 6593ecce36beSmrgmain () 6594ecce36beSmrg{ 6595ecce36beSmrg 6596ecce36beSmrg ; 6597ecce36beSmrg return 0; 6598ecce36beSmrg} 6599ecce36beSmrg_ACEOF 6600ecce36beSmrgif ac_fn_c_try_link "$LINENO"; then : 6601ecce36beSmrg lt_cv_ld_exported_symbols_list=yes 6602ecce36beSmrgelse 6603ecce36beSmrg lt_cv_ld_exported_symbols_list=no 6604ecce36beSmrgfi 6605ecce36beSmrgrm -f core conftest.err conftest.$ac_objext \ 6606ecce36beSmrg conftest$ac_exeext conftest.$ac_ext 6607ecce36beSmrg LDFLAGS="$save_LDFLAGS" 6608ecce36beSmrg 6609ecce36beSmrgfi 6610ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6611ecce36beSmrg$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6612ecce36beSmrg case $host_os in 6613ecce36beSmrg rhapsody* | darwin1.[012]) 6614ecce36beSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6615ecce36beSmrg darwin1.*) 6616ecce36beSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6617ecce36beSmrg darwin*) # darwin 5.x on 6618ecce36beSmrg # if running on 10.5 or later, the deployment target defaults 6619ecce36beSmrg # to the OS version, if on x86, and 10.4, the deployment 6620ecce36beSmrg # target defaults to 10.4. Don't you love it? 6621ecce36beSmrg case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6622ecce36beSmrg 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6623ecce36beSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6624ecce36beSmrg 10.[012]*) 6625ecce36beSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6626ecce36beSmrg 10.*) 6627ecce36beSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6628ecce36beSmrg esac 6629ecce36beSmrg ;; 6630ecce36beSmrg esac 6631ecce36beSmrg if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6632ecce36beSmrg _lt_dar_single_mod='$single_module' 6633ecce36beSmrg fi 6634ecce36beSmrg if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6635ecce36beSmrg _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6636ecce36beSmrg else 6637ecce36beSmrg _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6638ecce36beSmrg fi 6639ecce36beSmrg if test "$DSYMUTIL" != ":"; then 6640ecce36beSmrg _lt_dsymutil='~$DSYMUTIL $lib || :' 6641ecce36beSmrg else 6642ecce36beSmrg _lt_dsymutil= 6643ecce36beSmrg fi 6644ecce36beSmrg ;; 6645ecce36beSmrg esac 6646ecce36beSmrg 6647ecce36beSmrgac_ext=c 6648ecce36beSmrgac_cpp='$CPP $CPPFLAGS' 6649ecce36beSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6650ecce36beSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6651ecce36beSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 6652ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6653ecce36beSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 6654ecce36beSmrg# On Suns, sometimes $CPP names a directory. 6655ecce36beSmrgif test -n "$CPP" && test -d "$CPP"; then 6656ecce36beSmrg CPP= 6657ecce36beSmrgfi 6658ecce36beSmrgif test -z "$CPP"; then 6659ecce36beSmrg if test "${ac_cv_prog_CPP+set}" = set; then : 6660ecce36beSmrg $as_echo_n "(cached) " >&6 6661ecce36beSmrgelse 6662ecce36beSmrg # Double quotes because CPP needs to be expanded 6663ecce36beSmrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6664ecce36beSmrg do 6665ecce36beSmrg ac_preproc_ok=false 6666ecce36beSmrgfor ac_c_preproc_warn_flag in '' yes 6667ecce36beSmrgdo 6668ecce36beSmrg # Use a header file that comes with gcc, so configuring glibc 6669ecce36beSmrg # with a fresh cross-compiler works. 6670ecce36beSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6671ecce36beSmrg # <limits.h> exists even on freestanding compilers. 6672ecce36beSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 6673ecce36beSmrg # not just through cpp. "Syntax error" is here to catch this case. 6674ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6675ecce36beSmrg/* end confdefs.h. */ 6676ecce36beSmrg#ifdef __STDC__ 6677ecce36beSmrg# include <limits.h> 6678ecce36beSmrg#else 6679ecce36beSmrg# include <assert.h> 6680ecce36beSmrg#endif 6681ecce36beSmrg Syntax error 6682ecce36beSmrg_ACEOF 6683ecce36beSmrgif ac_fn_c_try_cpp "$LINENO"; then : 6684ecce36beSmrg 6685ecce36beSmrgelse 6686ecce36beSmrg # Broken: fails on valid input. 6687ecce36beSmrgcontinue 6688ecce36beSmrgfi 6689ecce36beSmrgrm -f conftest.err conftest.$ac_ext 6690ecce36beSmrg 6691ecce36beSmrg # OK, works on sane cases. Now check whether nonexistent headers 6692ecce36beSmrg # can be detected and how. 6693ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6694ecce36beSmrg/* end confdefs.h. */ 6695ecce36beSmrg#include <ac_nonexistent.h> 6696ecce36beSmrg_ACEOF 6697ecce36beSmrgif ac_fn_c_try_cpp "$LINENO"; then : 6698ecce36beSmrg # Broken: success on invalid input. 6699ecce36beSmrgcontinue 6700ecce36beSmrgelse 6701ecce36beSmrg # Passes both tests. 6702ecce36beSmrgac_preproc_ok=: 6703ecce36beSmrgbreak 6704ecce36beSmrgfi 6705ecce36beSmrgrm -f conftest.err conftest.$ac_ext 6706ecce36beSmrg 6707ecce36beSmrgdone 6708ecce36beSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6709ecce36beSmrgrm -f conftest.err conftest.$ac_ext 6710ecce36beSmrgif $ac_preproc_ok; then : 6711ecce36beSmrg break 6712ecce36beSmrgfi 6713ecce36beSmrg 6714ecce36beSmrg done 6715ecce36beSmrg ac_cv_prog_CPP=$CPP 6716ecce36beSmrg 6717ecce36beSmrgfi 6718ecce36beSmrg CPP=$ac_cv_prog_CPP 6719ecce36beSmrgelse 6720ecce36beSmrg ac_cv_prog_CPP=$CPP 6721ecce36beSmrgfi 6722ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6723ecce36beSmrg$as_echo "$CPP" >&6; } 6724ecce36beSmrgac_preproc_ok=false 6725ecce36beSmrgfor ac_c_preproc_warn_flag in '' yes 6726ecce36beSmrgdo 6727ecce36beSmrg # Use a header file that comes with gcc, so configuring glibc 6728ecce36beSmrg # with a fresh cross-compiler works. 6729ecce36beSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6730ecce36beSmrg # <limits.h> exists even on freestanding compilers. 6731ecce36beSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 6732ecce36beSmrg # not just through cpp. "Syntax error" is here to catch this case. 6733ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6734ecce36beSmrg/* end confdefs.h. */ 6735ecce36beSmrg#ifdef __STDC__ 6736ecce36beSmrg# include <limits.h> 6737ecce36beSmrg#else 6738ecce36beSmrg# include <assert.h> 6739ecce36beSmrg#endif 6740ecce36beSmrg Syntax error 6741ecce36beSmrg_ACEOF 6742ecce36beSmrgif ac_fn_c_try_cpp "$LINENO"; then : 6743ecce36beSmrg 6744ecce36beSmrgelse 6745ecce36beSmrg # Broken: fails on valid input. 6746ecce36beSmrgcontinue 6747ecce36beSmrgfi 6748ecce36beSmrgrm -f conftest.err conftest.$ac_ext 6749ecce36beSmrg 6750ecce36beSmrg # OK, works on sane cases. Now check whether nonexistent headers 6751ecce36beSmrg # can be detected and how. 6752ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6753ecce36beSmrg/* end confdefs.h. */ 6754ecce36beSmrg#include <ac_nonexistent.h> 6755ecce36beSmrg_ACEOF 6756ecce36beSmrgif ac_fn_c_try_cpp "$LINENO"; then : 6757ecce36beSmrg # Broken: success on invalid input. 6758ecce36beSmrgcontinue 6759ecce36beSmrgelse 6760ecce36beSmrg # Passes both tests. 6761ecce36beSmrgac_preproc_ok=: 6762ecce36beSmrgbreak 6763ecce36beSmrgfi 6764ecce36beSmrgrm -f conftest.err conftest.$ac_ext 6765ecce36beSmrg 6766ecce36beSmrgdone 6767ecce36beSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6768ecce36beSmrgrm -f conftest.err conftest.$ac_ext 6769ecce36beSmrgif $ac_preproc_ok; then : 6770ecce36beSmrg 6771ecce36beSmrgelse 6772ecce36beSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6773ecce36beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6774ecce36beSmrgas_fn_error "C preprocessor \"$CPP\" fails sanity check 6775ecce36beSmrgSee \`config.log' for more details." "$LINENO" 5; } 6776ecce36beSmrgfi 6777ecce36beSmrg 6778ecce36beSmrgac_ext=c 6779ecce36beSmrgac_cpp='$CPP $CPPFLAGS' 6780ecce36beSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6781ecce36beSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6782ecce36beSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 6783ecce36beSmrg 6784ecce36beSmrg 6785ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6786ecce36beSmrg$as_echo_n "checking for ANSI C header files... " >&6; } 6787ecce36beSmrgif test "${ac_cv_header_stdc+set}" = set; then : 6788ecce36beSmrg $as_echo_n "(cached) " >&6 6789ecce36beSmrgelse 6790ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6791ecce36beSmrg/* end confdefs.h. */ 6792ecce36beSmrg#include <stdlib.h> 6793ecce36beSmrg#include <stdarg.h> 6794ecce36beSmrg#include <string.h> 6795ecce36beSmrg#include <float.h> 6796ecce36beSmrg 6797ecce36beSmrgint 6798ecce36beSmrgmain () 6799ecce36beSmrg{ 6800ecce36beSmrg 6801ecce36beSmrg ; 6802ecce36beSmrg return 0; 6803ecce36beSmrg} 6804ecce36beSmrg_ACEOF 6805ecce36beSmrgif ac_fn_c_try_compile "$LINENO"; then : 6806ecce36beSmrg ac_cv_header_stdc=yes 6807ecce36beSmrgelse 6808ecce36beSmrg ac_cv_header_stdc=no 6809ecce36beSmrgfi 6810ecce36beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6811ecce36beSmrg 6812ecce36beSmrgif test $ac_cv_header_stdc = yes; then 6813ecce36beSmrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6814ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6815ecce36beSmrg/* end confdefs.h. */ 6816ecce36beSmrg#include <string.h> 6817ecce36beSmrg 6818ecce36beSmrg_ACEOF 6819ecce36beSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6820ecce36beSmrg $EGREP "memchr" >/dev/null 2>&1; then : 6821ecce36beSmrg 6822ecce36beSmrgelse 6823ecce36beSmrg ac_cv_header_stdc=no 6824ecce36beSmrgfi 6825ecce36beSmrgrm -f conftest* 6826ecce36beSmrg 6827ecce36beSmrgfi 6828ecce36beSmrg 6829ecce36beSmrgif test $ac_cv_header_stdc = yes; then 6830ecce36beSmrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6831ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6832ecce36beSmrg/* end confdefs.h. */ 6833ecce36beSmrg#include <stdlib.h> 6834ecce36beSmrg 6835ecce36beSmrg_ACEOF 6836ecce36beSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6837ecce36beSmrg $EGREP "free" >/dev/null 2>&1; then : 6838ecce36beSmrg 6839ecce36beSmrgelse 6840ecce36beSmrg ac_cv_header_stdc=no 6841ecce36beSmrgfi 6842ecce36beSmrgrm -f conftest* 6843ecce36beSmrg 6844ecce36beSmrgfi 6845ecce36beSmrg 6846ecce36beSmrgif test $ac_cv_header_stdc = yes; then 6847ecce36beSmrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6848ecce36beSmrg if test "$cross_compiling" = yes; then : 6849ecce36beSmrg : 6850ecce36beSmrgelse 6851ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6852ecce36beSmrg/* end confdefs.h. */ 6853ecce36beSmrg#include <ctype.h> 6854ecce36beSmrg#include <stdlib.h> 6855ecce36beSmrg#if ((' ' & 0x0FF) == 0x020) 6856ecce36beSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6857ecce36beSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6858ecce36beSmrg#else 6859ecce36beSmrg# define ISLOWER(c) \ 6860ecce36beSmrg (('a' <= (c) && (c) <= 'i') \ 6861ecce36beSmrg || ('j' <= (c) && (c) <= 'r') \ 6862ecce36beSmrg || ('s' <= (c) && (c) <= 'z')) 6863ecce36beSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6864ecce36beSmrg#endif 6865ecce36beSmrg 6866ecce36beSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6867ecce36beSmrgint 6868ecce36beSmrgmain () 6869ecce36beSmrg{ 6870ecce36beSmrg int i; 6871ecce36beSmrg for (i = 0; i < 256; i++) 6872ecce36beSmrg if (XOR (islower (i), ISLOWER (i)) 6873ecce36beSmrg || toupper (i) != TOUPPER (i)) 6874ecce36beSmrg return 2; 6875ecce36beSmrg return 0; 6876ecce36beSmrg} 6877ecce36beSmrg_ACEOF 6878ecce36beSmrgif ac_fn_c_try_run "$LINENO"; then : 6879ecce36beSmrg 6880ecce36beSmrgelse 6881ecce36beSmrg ac_cv_header_stdc=no 6882ecce36beSmrgfi 6883ecce36beSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6884ecce36beSmrg conftest.$ac_objext conftest.beam conftest.$ac_ext 6885ecce36beSmrgfi 6886ecce36beSmrg 6887ecce36beSmrgfi 6888ecce36beSmrgfi 6889ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6890ecce36beSmrg$as_echo "$ac_cv_header_stdc" >&6; } 6891ecce36beSmrgif test $ac_cv_header_stdc = yes; then 6892ecce36beSmrg 6893ecce36beSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6894ecce36beSmrg 6895ecce36beSmrgfi 6896ecce36beSmrg 6897ecce36beSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6898ecce36beSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6899ecce36beSmrg inttypes.h stdint.h unistd.h 6900ecce36beSmrgdo : 6901ecce36beSmrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6902ecce36beSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6903ecce36beSmrg" 6904ecce36beSmrgeval as_val=\$$as_ac_Header 6905ecce36beSmrg if test "x$as_val" = x""yes; then : 6906ecce36beSmrg cat >>confdefs.h <<_ACEOF 6907ecce36beSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6908ecce36beSmrg_ACEOF 6909ecce36beSmrg 6910ecce36beSmrgfi 6911ecce36beSmrg 6912ecce36beSmrgdone 6913ecce36beSmrg 6914ecce36beSmrg 6915ecce36beSmrgfor ac_header in dlfcn.h 6916ecce36beSmrgdo : 6917ecce36beSmrg ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 6918ecce36beSmrg" 6919ecce36beSmrgif test "x$ac_cv_header_dlfcn_h" = x""yes; then : 6920ecce36beSmrg cat >>confdefs.h <<_ACEOF 6921ecce36beSmrg#define HAVE_DLFCN_H 1 6922ecce36beSmrg_ACEOF 6923ecce36beSmrg 6924ecce36beSmrgfi 6925ecce36beSmrg 6926ecce36beSmrgdone 6927ecce36beSmrg 6928ecce36beSmrg 6929ecce36beSmrg 6930ecce36beSmrg# Set options 6931ecce36beSmrg 6932ecce36beSmrg 6933ecce36beSmrg 6934ecce36beSmrg enable_dlopen=no 6935ecce36beSmrg 6936ecce36beSmrg 6937ecce36beSmrg enable_win32_dll=no 6938ecce36beSmrg 6939ecce36beSmrg 6940ecce36beSmrg # Check whether --enable-shared was given. 6941ecce36beSmrgif test "${enable_shared+set}" = set; then : 6942ecce36beSmrg enableval=$enable_shared; p=${PACKAGE-default} 6943ecce36beSmrg case $enableval in 6944ecce36beSmrg yes) enable_shared=yes ;; 6945ecce36beSmrg no) enable_shared=no ;; 6946ecce36beSmrg *) 6947ecce36beSmrg enable_shared=no 6948ecce36beSmrg # Look at the argument we got. We use all the common list separators. 6949ecce36beSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6950ecce36beSmrg for pkg in $enableval; do 6951ecce36beSmrg IFS="$lt_save_ifs" 6952ecce36beSmrg if test "X$pkg" = "X$p"; then 6953ecce36beSmrg enable_shared=yes 6954ecce36beSmrg fi 6955ecce36beSmrg done 6956ecce36beSmrg IFS="$lt_save_ifs" 6957ecce36beSmrg ;; 6958ecce36beSmrg esac 6959ecce36beSmrgelse 6960ecce36beSmrg enable_shared=yes 6961ecce36beSmrgfi 6962ecce36beSmrg 6963ecce36beSmrg 6964ecce36beSmrg 6965ecce36beSmrg 6966ecce36beSmrg 6967ecce36beSmrg 6968ecce36beSmrg 6969ecce36beSmrg 6970ecce36beSmrg 6971ecce36beSmrg # Check whether --enable-static was given. 6972ecce36beSmrgif test "${enable_static+set}" = set; then : 6973ecce36beSmrg enableval=$enable_static; p=${PACKAGE-default} 6974ecce36beSmrg case $enableval in 6975ecce36beSmrg yes) enable_static=yes ;; 6976ecce36beSmrg no) enable_static=no ;; 6977ecce36beSmrg *) 6978ecce36beSmrg enable_static=no 6979ecce36beSmrg # Look at the argument we got. We use all the common list separators. 6980ecce36beSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6981ecce36beSmrg for pkg in $enableval; do 6982ecce36beSmrg IFS="$lt_save_ifs" 6983ecce36beSmrg if test "X$pkg" = "X$p"; then 6984ecce36beSmrg enable_static=yes 6985ecce36beSmrg fi 6986ecce36beSmrg done 6987ecce36beSmrg IFS="$lt_save_ifs" 6988ecce36beSmrg ;; 6989ecce36beSmrg esac 6990ecce36beSmrgelse 6991ecce36beSmrg enable_static=yes 6992ecce36beSmrgfi 6993ecce36beSmrg 6994ecce36beSmrg 6995ecce36beSmrg 6996ecce36beSmrg 6997ecce36beSmrg 6998ecce36beSmrg 6999ecce36beSmrg 7000ecce36beSmrg 7001ecce36beSmrg 7002ecce36beSmrg 7003ecce36beSmrg# Check whether --with-pic was given. 7004ecce36beSmrgif test "${with_pic+set}" = set; then : 7005ecce36beSmrg withval=$with_pic; pic_mode="$withval" 7006ecce36beSmrgelse 7007ecce36beSmrg pic_mode=default 7008ecce36beSmrgfi 7009ecce36beSmrg 7010ecce36beSmrg 7011ecce36beSmrgtest -z "$pic_mode" && pic_mode=default 7012ecce36beSmrg 7013ecce36beSmrg 7014ecce36beSmrg 7015ecce36beSmrg 7016ecce36beSmrg 7017ecce36beSmrg 7018ecce36beSmrg 7019ecce36beSmrg # Check whether --enable-fast-install was given. 7020ecce36beSmrgif test "${enable_fast_install+set}" = set; then : 7021ecce36beSmrg enableval=$enable_fast_install; p=${PACKAGE-default} 7022ecce36beSmrg case $enableval in 7023ecce36beSmrg yes) enable_fast_install=yes ;; 7024ecce36beSmrg no) enable_fast_install=no ;; 7025ecce36beSmrg *) 7026ecce36beSmrg enable_fast_install=no 7027ecce36beSmrg # Look at the argument we got. We use all the common list separators. 7028ecce36beSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7029ecce36beSmrg for pkg in $enableval; do 7030ecce36beSmrg IFS="$lt_save_ifs" 7031ecce36beSmrg if test "X$pkg" = "X$p"; then 7032ecce36beSmrg enable_fast_install=yes 7033ecce36beSmrg fi 7034ecce36beSmrg done 7035ecce36beSmrg IFS="$lt_save_ifs" 7036ecce36beSmrg ;; 7037ecce36beSmrg esac 7038ecce36beSmrgelse 7039ecce36beSmrg enable_fast_install=yes 7040ecce36beSmrgfi 7041ecce36beSmrg 7042ecce36beSmrg 7043ecce36beSmrg 7044ecce36beSmrg 7045ecce36beSmrg 7046ecce36beSmrg 7047ecce36beSmrg 7048ecce36beSmrg 7049ecce36beSmrg 7050ecce36beSmrg 7051ecce36beSmrg 7052ecce36beSmrg# This can be used to rebuild libtool when needed 7053ecce36beSmrgLIBTOOL_DEPS="$ltmain" 7054ecce36beSmrg 7055ecce36beSmrg# Always use our own libtool. 7056ecce36beSmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool' 7057ecce36beSmrg 7058ecce36beSmrg 7059ecce36beSmrg 7060ecce36beSmrg 7061ecce36beSmrg 7062ecce36beSmrg 7063ecce36beSmrg 7064ecce36beSmrg 7065ecce36beSmrg 7066ecce36beSmrg 7067ecce36beSmrg 7068ecce36beSmrg 7069ecce36beSmrg 7070ecce36beSmrg 7071ecce36beSmrg 7072ecce36beSmrg 7073ecce36beSmrg 7074ecce36beSmrg 7075ecce36beSmrg 7076ecce36beSmrg 7077ecce36beSmrg 7078ecce36beSmrg 7079ecce36beSmrg 7080ecce36beSmrg 7081ecce36beSmrg 7082ecce36beSmrgtest -z "$LN_S" && LN_S="ln -s" 7083ecce36beSmrg 7084ecce36beSmrg 7085ecce36beSmrg 7086ecce36beSmrg 7087ecce36beSmrg 7088ecce36beSmrg 7089ecce36beSmrg 7090ecce36beSmrg 7091ecce36beSmrg 7092ecce36beSmrg 7093ecce36beSmrg 7094ecce36beSmrg 7095ecce36beSmrg 7096ecce36beSmrg 7097ecce36beSmrgif test -n "${ZSH_VERSION+set}" ; then 7098ecce36beSmrg setopt NO_GLOB_SUBST 7099ecce36beSmrgfi 7100ecce36beSmrg 7101ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7102ecce36beSmrg$as_echo_n "checking for objdir... " >&6; } 7103ecce36beSmrgif test "${lt_cv_objdir+set}" = set; then : 7104ecce36beSmrg $as_echo_n "(cached) " >&6 7105ecce36beSmrgelse 7106ecce36beSmrg rm -f .libs 2>/dev/null 7107ecce36beSmrgmkdir .libs 2>/dev/null 7108ecce36beSmrgif test -d .libs; then 7109ecce36beSmrg lt_cv_objdir=.libs 7110ecce36beSmrgelse 7111ecce36beSmrg # MS-DOS does not allow filenames that begin with a dot. 7112ecce36beSmrg lt_cv_objdir=_libs 7113ecce36beSmrgfi 7114ecce36beSmrgrmdir .libs 2>/dev/null 7115ecce36beSmrgfi 7116ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7117ecce36beSmrg$as_echo "$lt_cv_objdir" >&6; } 7118ecce36beSmrgobjdir=$lt_cv_objdir 7119ecce36beSmrg 7120ecce36beSmrg 7121ecce36beSmrg 7122ecce36beSmrg 7123ecce36beSmrg 7124ecce36beSmrgcat >>confdefs.h <<_ACEOF 7125ecce36beSmrg#define LT_OBJDIR "$lt_cv_objdir/" 7126ecce36beSmrg_ACEOF 7127ecce36beSmrg 7128ecce36beSmrg 7129ecce36beSmrg 7130ecce36beSmrg 7131ecce36beSmrg 7132ecce36beSmrg 7133ecce36beSmrg 7134ecce36beSmrg 7135ecce36beSmrg 7136ecce36beSmrg 7137ecce36beSmrg 7138ecce36beSmrg 7139ecce36beSmrg 7140ecce36beSmrg 7141ecce36beSmrg 7142ecce36beSmrg 7143ecce36beSmrg 7144ecce36beSmrgcase $host_os in 7145ecce36beSmrgaix3*) 7146ecce36beSmrg # AIX sometimes has problems with the GCC collect2 program. For some 7147ecce36beSmrg # reason, if we set the COLLECT_NAMES environment variable, the problems 7148ecce36beSmrg # vanish in a puff of smoke. 7149ecce36beSmrg if test "X${COLLECT_NAMES+set}" != Xset; then 7150ecce36beSmrg COLLECT_NAMES= 7151ecce36beSmrg export COLLECT_NAMES 7152ecce36beSmrg fi 7153ecce36beSmrg ;; 7154ecce36beSmrgesac 7155ecce36beSmrg 7156ecce36beSmrg# Sed substitution that helps us do robust quoting. It backslashifies 7157ecce36beSmrg# metacharacters that are still active within double-quoted strings. 7158ecce36beSmrgsed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7159ecce36beSmrg 7160ecce36beSmrg# Same as above, but do not quote variable references. 7161ecce36beSmrgdouble_quote_subst='s/\(["`\\]\)/\\\1/g' 7162ecce36beSmrg 7163ecce36beSmrg# Sed substitution to delay expansion of an escaped shell variable in a 7164ecce36beSmrg# double_quote_subst'ed string. 7165ecce36beSmrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7166ecce36beSmrg 7167ecce36beSmrg# Sed substitution to delay expansion of an escaped single quote. 7168ecce36beSmrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7169ecce36beSmrg 7170ecce36beSmrg# Sed substitution to avoid accidental globbing in evaled expressions 7171ecce36beSmrgno_glob_subst='s/\*/\\\*/g' 7172ecce36beSmrg 7173ecce36beSmrg# Global variables: 7174ecce36beSmrgofile=libtool 7175ecce36beSmrgcan_build_shared=yes 7176ecce36beSmrg 7177ecce36beSmrg# All known linkers require a `.a' archive for static linking (except MSVC, 7178ecce36beSmrg# which needs '.lib'). 7179ecce36beSmrglibext=a 7180ecce36beSmrg 7181ecce36beSmrgwith_gnu_ld="$lt_cv_prog_gnu_ld" 7182ecce36beSmrg 7183ecce36beSmrgold_CC="$CC" 7184ecce36beSmrgold_CFLAGS="$CFLAGS" 7185ecce36beSmrg 7186ecce36beSmrg# Set sane defaults for various variables 7187ecce36beSmrgtest -z "$CC" && CC=cc 7188ecce36beSmrgtest -z "$LTCC" && LTCC=$CC 7189ecce36beSmrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7190ecce36beSmrgtest -z "$LD" && LD=ld 7191ecce36beSmrgtest -z "$ac_objext" && ac_objext=o 7192ecce36beSmrg 7193ecce36beSmrgfor cc_temp in $compiler""; do 7194ecce36beSmrg case $cc_temp in 7195ecce36beSmrg compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7196ecce36beSmrg distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7197ecce36beSmrg \-*) ;; 7198ecce36beSmrg *) break;; 7199ecce36beSmrg esac 7200ecce36beSmrgdone 7201ecce36beSmrgcc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7202ecce36beSmrg 7203ecce36beSmrg 7204ecce36beSmrg# Only perform the check for file, if the check method requires it 7205ecce36beSmrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file 7206ecce36beSmrgcase $deplibs_check_method in 7207ecce36beSmrgfile_magic*) 7208ecce36beSmrg if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7209ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7210ecce36beSmrg$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7211ecce36beSmrgif test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7212ecce36beSmrg $as_echo_n "(cached) " >&6 7213ecce36beSmrgelse 7214ecce36beSmrg case $MAGIC_CMD in 7215ecce36beSmrg[\\/*] | ?:[\\/]*) 7216ecce36beSmrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7217ecce36beSmrg ;; 7218ecce36beSmrg*) 7219ecce36beSmrg lt_save_MAGIC_CMD="$MAGIC_CMD" 7220ecce36beSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7221ecce36beSmrg ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7222ecce36beSmrg for ac_dir in $ac_dummy; do 7223ecce36beSmrg IFS="$lt_save_ifs" 7224ecce36beSmrg test -z "$ac_dir" && ac_dir=. 7225ecce36beSmrg if test -f $ac_dir/${ac_tool_prefix}file; then 7226ecce36beSmrg lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7227ecce36beSmrg if test -n "$file_magic_test_file"; then 7228ecce36beSmrg case $deplibs_check_method in 7229ecce36beSmrg "file_magic "*) 7230ecce36beSmrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7231ecce36beSmrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7232ecce36beSmrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7233ecce36beSmrg $EGREP "$file_magic_regex" > /dev/null; then 7234ecce36beSmrg : 7235ecce36beSmrg else 7236ecce36beSmrg cat <<_LT_EOF 1>&2 7237ecce36beSmrg 7238ecce36beSmrg*** Warning: the command libtool uses to detect shared libraries, 7239ecce36beSmrg*** $file_magic_cmd, produces output that libtool cannot recognize. 7240ecce36beSmrg*** The result is that libtool may fail to recognize shared libraries 7241ecce36beSmrg*** as such. This will affect the creation of libtool libraries that 7242ecce36beSmrg*** depend on shared libraries, but programs linked with such libtool 7243ecce36beSmrg*** libraries will work regardless of this problem. Nevertheless, you 7244ecce36beSmrg*** may want to report the problem to your system manager and/or to 7245ecce36beSmrg*** bug-libtool@gnu.org 7246ecce36beSmrg 7247ecce36beSmrg_LT_EOF 7248ecce36beSmrg fi ;; 7249ecce36beSmrg esac 7250ecce36beSmrg fi 7251ecce36beSmrg break 7252ecce36beSmrg fi 7253ecce36beSmrg done 7254ecce36beSmrg IFS="$lt_save_ifs" 7255ecce36beSmrg MAGIC_CMD="$lt_save_MAGIC_CMD" 7256ecce36beSmrg ;; 7257ecce36beSmrgesac 7258ecce36beSmrgfi 7259ecce36beSmrg 7260ecce36beSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7261ecce36beSmrgif test -n "$MAGIC_CMD"; then 7262ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7263ecce36beSmrg$as_echo "$MAGIC_CMD" >&6; } 7264ecce36beSmrgelse 7265ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7266ecce36beSmrg$as_echo "no" >&6; } 7267ecce36beSmrgfi 7268ecce36beSmrg 7269ecce36beSmrg 7270ecce36beSmrg 7271ecce36beSmrg 7272ecce36beSmrg 7273ecce36beSmrgif test -z "$lt_cv_path_MAGIC_CMD"; then 7274ecce36beSmrg if test -n "$ac_tool_prefix"; then 7275ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7276ecce36beSmrg$as_echo_n "checking for file... " >&6; } 7277ecce36beSmrgif test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7278ecce36beSmrg $as_echo_n "(cached) " >&6 7279ecce36beSmrgelse 7280ecce36beSmrg case $MAGIC_CMD in 7281ecce36beSmrg[\\/*] | ?:[\\/]*) 7282ecce36beSmrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7283ecce36beSmrg ;; 7284ecce36beSmrg*) 7285ecce36beSmrg lt_save_MAGIC_CMD="$MAGIC_CMD" 7286ecce36beSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7287ecce36beSmrg ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7288ecce36beSmrg for ac_dir in $ac_dummy; do 7289ecce36beSmrg IFS="$lt_save_ifs" 7290ecce36beSmrg test -z "$ac_dir" && ac_dir=. 7291ecce36beSmrg if test -f $ac_dir/file; then 7292ecce36beSmrg lt_cv_path_MAGIC_CMD="$ac_dir/file" 7293ecce36beSmrg if test -n "$file_magic_test_file"; then 7294ecce36beSmrg case $deplibs_check_method in 7295ecce36beSmrg "file_magic "*) 7296ecce36beSmrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7297ecce36beSmrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7298ecce36beSmrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7299ecce36beSmrg $EGREP "$file_magic_regex" > /dev/null; then 7300ecce36beSmrg : 7301ecce36beSmrg else 7302ecce36beSmrg cat <<_LT_EOF 1>&2 7303ecce36beSmrg 7304ecce36beSmrg*** Warning: the command libtool uses to detect shared libraries, 7305ecce36beSmrg*** $file_magic_cmd, produces output that libtool cannot recognize. 7306ecce36beSmrg*** The result is that libtool may fail to recognize shared libraries 7307ecce36beSmrg*** as such. This will affect the creation of libtool libraries that 7308ecce36beSmrg*** depend on shared libraries, but programs linked with such libtool 7309ecce36beSmrg*** libraries will work regardless of this problem. Nevertheless, you 7310ecce36beSmrg*** may want to report the problem to your system manager and/or to 7311ecce36beSmrg*** bug-libtool@gnu.org 7312ecce36beSmrg 7313ecce36beSmrg_LT_EOF 7314ecce36beSmrg fi ;; 7315ecce36beSmrg esac 7316ecce36beSmrg fi 7317ecce36beSmrg break 7318ecce36beSmrg fi 7319ecce36beSmrg done 7320ecce36beSmrg IFS="$lt_save_ifs" 7321ecce36beSmrg MAGIC_CMD="$lt_save_MAGIC_CMD" 7322ecce36beSmrg ;; 7323ecce36beSmrgesac 7324ecce36beSmrgfi 7325ecce36beSmrg 7326ecce36beSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7327ecce36beSmrgif test -n "$MAGIC_CMD"; then 7328ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7329ecce36beSmrg$as_echo "$MAGIC_CMD" >&6; } 7330ecce36beSmrgelse 7331ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7332ecce36beSmrg$as_echo "no" >&6; } 7333ecce36beSmrgfi 7334ecce36beSmrg 7335ecce36beSmrg 7336ecce36beSmrg else 7337ecce36beSmrg MAGIC_CMD=: 7338ecce36beSmrg fi 7339ecce36beSmrgfi 7340ecce36beSmrg 7341ecce36beSmrg fi 7342ecce36beSmrg ;; 7343ecce36beSmrgesac 7344ecce36beSmrg 7345ecce36beSmrg# Use C for the default configuration in the libtool script 7346ecce36beSmrg 7347ecce36beSmrglt_save_CC="$CC" 7348ecce36beSmrgac_ext=c 7349ecce36beSmrgac_cpp='$CPP $CPPFLAGS' 7350ecce36beSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7351ecce36beSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7352ecce36beSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 7353ecce36beSmrg 7354ecce36beSmrg 7355ecce36beSmrg# Source file extension for C test sources. 7356ecce36beSmrgac_ext=c 7357ecce36beSmrg 7358ecce36beSmrg# Object file extension for compiled C test sources. 7359ecce36beSmrgobjext=o 7360ecce36beSmrgobjext=$objext 7361ecce36beSmrg 7362ecce36beSmrg# Code to be used in simple compile tests 7363ecce36beSmrglt_simple_compile_test_code="int some_variable = 0;" 7364ecce36beSmrg 7365ecce36beSmrg# Code to be used in simple link tests 7366ecce36beSmrglt_simple_link_test_code='int main(){return(0);}' 7367ecce36beSmrg 7368ecce36beSmrg 7369ecce36beSmrg 7370ecce36beSmrg 7371ecce36beSmrg 7372ecce36beSmrg 7373ecce36beSmrg 7374ecce36beSmrg# If no C compiler was specified, use CC. 7375ecce36beSmrgLTCC=${LTCC-"$CC"} 7376ecce36beSmrg 7377ecce36beSmrg# If no C compiler flags were specified, use CFLAGS. 7378ecce36beSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7379ecce36beSmrg 7380ecce36beSmrg# Allow CC to be a program name with arguments. 7381ecce36beSmrgcompiler=$CC 7382ecce36beSmrg 7383ecce36beSmrg# Save the default compiler, since it gets overwritten when the other 7384ecce36beSmrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7385ecce36beSmrgcompiler_DEFAULT=$CC 7386ecce36beSmrg 7387ecce36beSmrg# save warnings/boilerplate of simple test code 7388ecce36beSmrgac_outfile=conftest.$ac_objext 7389ecce36beSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext 7390ecce36beSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7391ecce36beSmrg_lt_compiler_boilerplate=`cat conftest.err` 7392ecce36beSmrg$RM conftest* 7393ecce36beSmrg 7394ecce36beSmrgac_outfile=conftest.$ac_objext 7395ecce36beSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext 7396ecce36beSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7397ecce36beSmrg_lt_linker_boilerplate=`cat conftest.err` 7398ecce36beSmrg$RM -r conftest* 7399ecce36beSmrg 7400ecce36beSmrg 7401ecce36beSmrgif test -n "$compiler"; then 7402ecce36beSmrg 7403ecce36beSmrglt_prog_compiler_no_builtin_flag= 7404ecce36beSmrg 7405ecce36beSmrgif test "$GCC" = yes; then 7406ecce36beSmrg lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7407ecce36beSmrg 7408ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7409ecce36beSmrg$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7410ecce36beSmrgif test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7411ecce36beSmrg $as_echo_n "(cached) " >&6 7412ecce36beSmrgelse 7413ecce36beSmrg lt_cv_prog_compiler_rtti_exceptions=no 7414ecce36beSmrg ac_outfile=conftest.$ac_objext 7415ecce36beSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7416ecce36beSmrg lt_compiler_flag="-fno-rtti -fno-exceptions" 7417ecce36beSmrg # Insert the option either (1) after the last *FLAGS variable, or 7418ecce36beSmrg # (2) before a word containing "conftest.", or (3) at the end. 7419ecce36beSmrg # Note that $ac_compile itself does not contain backslashes and begins 7420ecce36beSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 7421ecce36beSmrg # The option is referenced via a variable to avoid confusing sed. 7422ecce36beSmrg lt_compile=`echo "$ac_compile" | $SED \ 7423ecce36beSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7424ecce36beSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7425ecce36beSmrg -e 's:$: $lt_compiler_flag:'` 7426ecce36beSmrg (eval echo "\"\$as_me:7426: $lt_compile\"" >&5) 7427ecce36beSmrg (eval "$lt_compile" 2>conftest.err) 7428ecce36beSmrg ac_status=$? 7429ecce36beSmrg cat conftest.err >&5 7430ecce36beSmrg echo "$as_me:7430: \$? = $ac_status" >&5 7431ecce36beSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 7432ecce36beSmrg # The compiler can only warn and ignore the option if not recognized 7433ecce36beSmrg # So say no if there are warnings other than the usual output. 7434ecce36beSmrg $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7435ecce36beSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7436ecce36beSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7437ecce36beSmrg lt_cv_prog_compiler_rtti_exceptions=yes 7438ecce36beSmrg fi 7439ecce36beSmrg fi 7440ecce36beSmrg $RM conftest* 7441ecce36beSmrg 7442ecce36beSmrgfi 7443ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7444ecce36beSmrg$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7445ecce36beSmrg 7446ecce36beSmrgif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7447ecce36beSmrg lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7448ecce36beSmrgelse 7449ecce36beSmrg : 7450ecce36beSmrgfi 7451ecce36beSmrg 7452ecce36beSmrgfi 7453ecce36beSmrg 7454ecce36beSmrg 7455ecce36beSmrg 7456ecce36beSmrg 7457ecce36beSmrg 7458ecce36beSmrg 7459ecce36beSmrg lt_prog_compiler_wl= 7460ecce36beSmrglt_prog_compiler_pic= 7461ecce36beSmrglt_prog_compiler_static= 7462ecce36beSmrg 7463ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7464ecce36beSmrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7465ecce36beSmrg 7466ecce36beSmrg if test "$GCC" = yes; then 7467ecce36beSmrg lt_prog_compiler_wl='-Wl,' 7468ecce36beSmrg lt_prog_compiler_static='-static' 7469ecce36beSmrg 7470ecce36beSmrg case $host_os in 7471ecce36beSmrg aix*) 7472ecce36beSmrg # All AIX code is PIC. 7473ecce36beSmrg if test "$host_cpu" = ia64; then 7474ecce36beSmrg # AIX 5 now supports IA64 processor 7475ecce36beSmrg lt_prog_compiler_static='-Bstatic' 7476ecce36beSmrg fi 7477ecce36beSmrg ;; 7478ecce36beSmrg 7479ecce36beSmrg amigaos*) 7480ecce36beSmrg case $host_cpu in 7481ecce36beSmrg powerpc) 7482ecce36beSmrg # see comment about AmigaOS4 .so support 7483ecce36beSmrg lt_prog_compiler_pic='-fPIC' 7484ecce36beSmrg ;; 7485ecce36beSmrg m68k) 7486ecce36beSmrg # FIXME: we need at least 68020 code to build shared libraries, but 7487ecce36beSmrg # adding the `-m68020' flag to GCC prevents building anything better, 7488ecce36beSmrg # like `-m68040'. 7489ecce36beSmrg lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7490ecce36beSmrg ;; 7491ecce36beSmrg esac 7492ecce36beSmrg ;; 7493ecce36beSmrg 7494ecce36beSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7495ecce36beSmrg # PIC is the default for these OSes. 7496ecce36beSmrg ;; 7497ecce36beSmrg 7498ecce36beSmrg mingw* | cygwin* | pw32* | os2* | cegcc*) 7499ecce36beSmrg # This hack is so that the source file can tell whether it is being 7500ecce36beSmrg # built for inclusion in a dll (and should export symbols for example). 7501ecce36beSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 7502ecce36beSmrg # (--disable-auto-import) libraries 7503ecce36beSmrg lt_prog_compiler_pic='-DDLL_EXPORT' 7504ecce36beSmrg ;; 7505ecce36beSmrg 7506ecce36beSmrg darwin* | rhapsody*) 7507ecce36beSmrg # PIC is the default on this platform 7508ecce36beSmrg # Common symbols not allowed in MH_DYLIB files 7509ecce36beSmrg lt_prog_compiler_pic='-fno-common' 7510ecce36beSmrg ;; 7511ecce36beSmrg 7512ecce36beSmrg hpux*) 7513ecce36beSmrg # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7514ecce36beSmrg # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7515ecce36beSmrg # sets the default TLS model and affects inlining. 7516ecce36beSmrg case $host_cpu in 7517ecce36beSmrg hppa*64*) 7518ecce36beSmrg # +Z the default 7519ecce36beSmrg ;; 7520ecce36beSmrg *) 7521ecce36beSmrg lt_prog_compiler_pic='-fPIC' 7522ecce36beSmrg ;; 7523ecce36beSmrg esac 7524ecce36beSmrg ;; 7525ecce36beSmrg 7526ecce36beSmrg interix[3-9]*) 7527ecce36beSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7528ecce36beSmrg # Instead, we relocate shared libraries at runtime. 7529ecce36beSmrg ;; 7530ecce36beSmrg 7531ecce36beSmrg msdosdjgpp*) 7532ecce36beSmrg # Just because we use GCC doesn't mean we suddenly get shared libraries 7533ecce36beSmrg # on systems that don't support them. 7534ecce36beSmrg lt_prog_compiler_can_build_shared=no 7535ecce36beSmrg enable_shared=no 7536ecce36beSmrg ;; 7537ecce36beSmrg 7538ecce36beSmrg *nto* | *qnx*) 7539ecce36beSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 7540ecce36beSmrg # it will coredump. 7541ecce36beSmrg lt_prog_compiler_pic='-fPIC -shared' 7542ecce36beSmrg ;; 7543ecce36beSmrg 7544ecce36beSmrg sysv4*MP*) 7545ecce36beSmrg if test -d /usr/nec; then 7546ecce36beSmrg lt_prog_compiler_pic=-Kconform_pic 7547ecce36beSmrg fi 7548ecce36beSmrg ;; 7549ecce36beSmrg 7550ecce36beSmrg *) 7551ecce36beSmrg lt_prog_compiler_pic='-fPIC' 7552ecce36beSmrg ;; 7553ecce36beSmrg esac 7554ecce36beSmrg else 7555ecce36beSmrg # PORTME Check for flag to pass linker flags through the system compiler. 7556ecce36beSmrg case $host_os in 7557ecce36beSmrg aix*) 7558ecce36beSmrg lt_prog_compiler_wl='-Wl,' 7559ecce36beSmrg if test "$host_cpu" = ia64; then 7560ecce36beSmrg # AIX 5 now supports IA64 processor 7561ecce36beSmrg lt_prog_compiler_static='-Bstatic' 7562ecce36beSmrg else 7563ecce36beSmrg lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7564ecce36beSmrg fi 7565ecce36beSmrg ;; 7566ecce36beSmrg 7567ecce36beSmrg mingw* | cygwin* | pw32* | os2* | cegcc*) 7568ecce36beSmrg # This hack is so that the source file can tell whether it is being 7569ecce36beSmrg # built for inclusion in a dll (and should export symbols for example). 7570ecce36beSmrg lt_prog_compiler_pic='-DDLL_EXPORT' 7571ecce36beSmrg ;; 7572ecce36beSmrg 7573ecce36beSmrg hpux9* | hpux10* | hpux11*) 7574ecce36beSmrg lt_prog_compiler_wl='-Wl,' 7575ecce36beSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7576ecce36beSmrg # not for PA HP-UX. 7577ecce36beSmrg case $host_cpu in 7578ecce36beSmrg hppa*64*|ia64*) 7579ecce36beSmrg # +Z the default 7580ecce36beSmrg ;; 7581ecce36beSmrg *) 7582ecce36beSmrg lt_prog_compiler_pic='+Z' 7583ecce36beSmrg ;; 7584ecce36beSmrg esac 7585ecce36beSmrg # Is there a better lt_prog_compiler_static that works with the bundled CC? 7586ecce36beSmrg lt_prog_compiler_static='${wl}-a ${wl}archive' 7587ecce36beSmrg ;; 7588ecce36beSmrg 7589ecce36beSmrg irix5* | irix6* | nonstopux*) 7590ecce36beSmrg lt_prog_compiler_wl='-Wl,' 7591ecce36beSmrg # PIC (with -KPIC) is the default. 7592ecce36beSmrg lt_prog_compiler_static='-non_shared' 7593ecce36beSmrg ;; 7594ecce36beSmrg 7595ecce36beSmrg linux* | k*bsd*-gnu) 7596ecce36beSmrg case $cc_basename in 7597ecce36beSmrg # old Intel for x86_64 which still supported -KPIC. 7598ecce36beSmrg ecc*) 7599ecce36beSmrg lt_prog_compiler_wl='-Wl,' 7600ecce36beSmrg lt_prog_compiler_pic='-KPIC' 7601ecce36beSmrg lt_prog_compiler_static='-static' 7602ecce36beSmrg ;; 7603ecce36beSmrg # icc used to be incompatible with GCC. 7604ecce36beSmrg # ICC 10 doesn't accept -KPIC any more. 7605ecce36beSmrg icc* | ifort*) 7606ecce36beSmrg lt_prog_compiler_wl='-Wl,' 7607ecce36beSmrg lt_prog_compiler_pic='-fPIC' 7608ecce36beSmrg lt_prog_compiler_static='-static' 7609ecce36beSmrg ;; 7610ecce36beSmrg # Lahey Fortran 8.1. 7611ecce36beSmrg lf95*) 7612ecce36beSmrg lt_prog_compiler_wl='-Wl,' 7613ecce36beSmrg lt_prog_compiler_pic='--shared' 7614ecce36beSmrg lt_prog_compiler_static='--static' 7615ecce36beSmrg ;; 7616ecce36beSmrg pgcc* | pgf77* | pgf90* | pgf95*) 7617ecce36beSmrg # Portland Group compilers (*not* the Pentium gcc compiler, 7618ecce36beSmrg # which looks to be a dead project) 7619ecce36beSmrg lt_prog_compiler_wl='-Wl,' 7620ecce36beSmrg lt_prog_compiler_pic='-fpic' 7621ecce36beSmrg lt_prog_compiler_static='-Bstatic' 7622ecce36beSmrg ;; 7623ecce36beSmrg ccc*) 7624ecce36beSmrg lt_prog_compiler_wl='-Wl,' 7625ecce36beSmrg # All Alpha code is PIC. 7626ecce36beSmrg lt_prog_compiler_static='-non_shared' 7627ecce36beSmrg ;; 7628ecce36beSmrg xl*) 7629ecce36beSmrg # IBM XL C 8.0/Fortran 10.1 on PPC 7630ecce36beSmrg lt_prog_compiler_wl='-Wl,' 7631ecce36beSmrg lt_prog_compiler_pic='-qpic' 7632ecce36beSmrg lt_prog_compiler_static='-qstaticlink' 7633ecce36beSmrg ;; 7634ecce36beSmrg *) 7635ecce36beSmrg case `$CC -V 2>&1 | sed 5q` in 7636ecce36beSmrg *Sun\ C*) 7637ecce36beSmrg # Sun C 5.9 7638ecce36beSmrg lt_prog_compiler_pic='-KPIC' 7639ecce36beSmrg lt_prog_compiler_static='-Bstatic' 7640ecce36beSmrg lt_prog_compiler_wl='-Wl,' 7641ecce36beSmrg ;; 7642ecce36beSmrg *Sun\ F*) 7643ecce36beSmrg # Sun Fortran 8.3 passes all unrecognized flags to the linker 7644ecce36beSmrg lt_prog_compiler_pic='-KPIC' 7645ecce36beSmrg lt_prog_compiler_static='-Bstatic' 7646ecce36beSmrg lt_prog_compiler_wl='' 7647ecce36beSmrg ;; 7648ecce36beSmrg esac 7649ecce36beSmrg ;; 7650ecce36beSmrg esac 7651ecce36beSmrg ;; 7652ecce36beSmrg 7653ecce36beSmrg newsos6) 7654ecce36beSmrg lt_prog_compiler_pic='-KPIC' 7655ecce36beSmrg lt_prog_compiler_static='-Bstatic' 7656ecce36beSmrg ;; 7657ecce36beSmrg 7658ecce36beSmrg *nto* | *qnx*) 7659ecce36beSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 7660ecce36beSmrg # it will coredump. 7661ecce36beSmrg lt_prog_compiler_pic='-fPIC -shared' 7662ecce36beSmrg ;; 7663ecce36beSmrg 7664ecce36beSmrg osf3* | osf4* | osf5*) 7665ecce36beSmrg lt_prog_compiler_wl='-Wl,' 7666ecce36beSmrg # All OSF/1 code is PIC. 7667ecce36beSmrg lt_prog_compiler_static='-non_shared' 7668ecce36beSmrg ;; 7669ecce36beSmrg 7670ecce36beSmrg rdos*) 7671ecce36beSmrg lt_prog_compiler_static='-non_shared' 7672ecce36beSmrg ;; 7673ecce36beSmrg 7674ecce36beSmrg solaris*) 7675ecce36beSmrg lt_prog_compiler_pic='-KPIC' 7676ecce36beSmrg lt_prog_compiler_static='-Bstatic' 7677ecce36beSmrg case $cc_basename in 7678ecce36beSmrg f77* | f90* | f95*) 7679ecce36beSmrg lt_prog_compiler_wl='-Qoption ld ';; 7680ecce36beSmrg *) 7681ecce36beSmrg lt_prog_compiler_wl='-Wl,';; 7682ecce36beSmrg esac 7683ecce36beSmrg ;; 7684ecce36beSmrg 7685ecce36beSmrg sunos4*) 7686ecce36beSmrg lt_prog_compiler_wl='-Qoption ld ' 7687ecce36beSmrg lt_prog_compiler_pic='-PIC' 7688ecce36beSmrg lt_prog_compiler_static='-Bstatic' 7689ecce36beSmrg ;; 7690ecce36beSmrg 7691ecce36beSmrg sysv4 | sysv4.2uw2* | sysv4.3*) 7692ecce36beSmrg lt_prog_compiler_wl='-Wl,' 7693ecce36beSmrg lt_prog_compiler_pic='-KPIC' 7694ecce36beSmrg lt_prog_compiler_static='-Bstatic' 7695ecce36beSmrg ;; 7696ecce36beSmrg 7697ecce36beSmrg sysv4*MP*) 7698ecce36beSmrg if test -d /usr/nec ;then 7699ecce36beSmrg lt_prog_compiler_pic='-Kconform_pic' 7700ecce36beSmrg lt_prog_compiler_static='-Bstatic' 7701ecce36beSmrg fi 7702ecce36beSmrg ;; 7703ecce36beSmrg 7704ecce36beSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7705ecce36beSmrg lt_prog_compiler_wl='-Wl,' 7706ecce36beSmrg lt_prog_compiler_pic='-KPIC' 7707ecce36beSmrg lt_prog_compiler_static='-Bstatic' 7708ecce36beSmrg ;; 7709ecce36beSmrg 7710ecce36beSmrg unicos*) 7711ecce36beSmrg lt_prog_compiler_wl='-Wl,' 7712ecce36beSmrg lt_prog_compiler_can_build_shared=no 7713ecce36beSmrg ;; 7714ecce36beSmrg 7715ecce36beSmrg uts4*) 7716ecce36beSmrg lt_prog_compiler_pic='-pic' 7717ecce36beSmrg lt_prog_compiler_static='-Bstatic' 7718ecce36beSmrg ;; 7719ecce36beSmrg 7720ecce36beSmrg *) 7721ecce36beSmrg lt_prog_compiler_can_build_shared=no 7722ecce36beSmrg ;; 7723ecce36beSmrg esac 7724ecce36beSmrg fi 7725ecce36beSmrg 7726ecce36beSmrgcase $host_os in 7727ecce36beSmrg # For platforms which do not support PIC, -DPIC is meaningless: 7728ecce36beSmrg *djgpp*) 7729ecce36beSmrg lt_prog_compiler_pic= 7730ecce36beSmrg ;; 7731ecce36beSmrg *) 7732ecce36beSmrg lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7733ecce36beSmrg ;; 7734ecce36beSmrgesac 7735ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7736ecce36beSmrg$as_echo "$lt_prog_compiler_pic" >&6; } 7737ecce36beSmrg 7738ecce36beSmrg 7739ecce36beSmrg 7740ecce36beSmrg 7741ecce36beSmrg 7742ecce36beSmrg 7743ecce36beSmrg# 7744ecce36beSmrg# Check to make sure the PIC flag actually works. 7745ecce36beSmrg# 7746ecce36beSmrgif test -n "$lt_prog_compiler_pic"; then 7747ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7748ecce36beSmrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7749ecce36beSmrgif test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 7750ecce36beSmrg $as_echo_n "(cached) " >&6 7751ecce36beSmrgelse 7752ecce36beSmrg lt_cv_prog_compiler_pic_works=no 7753ecce36beSmrg ac_outfile=conftest.$ac_objext 7754ecce36beSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7755ecce36beSmrg lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7756ecce36beSmrg # Insert the option either (1) after the last *FLAGS variable, or 7757ecce36beSmrg # (2) before a word containing "conftest.", or (3) at the end. 7758ecce36beSmrg # Note that $ac_compile itself does not contain backslashes and begins 7759ecce36beSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 7760ecce36beSmrg # The option is referenced via a variable to avoid confusing sed. 7761ecce36beSmrg lt_compile=`echo "$ac_compile" | $SED \ 7762ecce36beSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7763ecce36beSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7764ecce36beSmrg -e 's:$: $lt_compiler_flag:'` 7765ecce36beSmrg (eval echo "\"\$as_me:7765: $lt_compile\"" >&5) 7766ecce36beSmrg (eval "$lt_compile" 2>conftest.err) 7767ecce36beSmrg ac_status=$? 7768ecce36beSmrg cat conftest.err >&5 7769ecce36beSmrg echo "$as_me:7769: \$? = $ac_status" >&5 7770ecce36beSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 7771ecce36beSmrg # The compiler can only warn and ignore the option if not recognized 7772ecce36beSmrg # So say no if there are warnings other than the usual output. 7773ecce36beSmrg $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7774ecce36beSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7775ecce36beSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7776ecce36beSmrg lt_cv_prog_compiler_pic_works=yes 7777ecce36beSmrg fi 7778ecce36beSmrg fi 7779ecce36beSmrg $RM conftest* 7780ecce36beSmrg 7781ecce36beSmrgfi 7782ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7783ecce36beSmrg$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7784ecce36beSmrg 7785ecce36beSmrgif test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7786ecce36beSmrg case $lt_prog_compiler_pic in 7787ecce36beSmrg "" | " "*) ;; 7788ecce36beSmrg *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7789ecce36beSmrg esac 7790ecce36beSmrgelse 7791ecce36beSmrg lt_prog_compiler_pic= 7792ecce36beSmrg lt_prog_compiler_can_build_shared=no 7793ecce36beSmrgfi 7794ecce36beSmrg 7795ecce36beSmrgfi 7796ecce36beSmrg 7797ecce36beSmrg 7798ecce36beSmrg 7799ecce36beSmrg 7800ecce36beSmrg 7801ecce36beSmrg 7802ecce36beSmrg# 7803ecce36beSmrg# Check to make sure the static flag actually works. 7804ecce36beSmrg# 7805ecce36beSmrgwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7806ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7807ecce36beSmrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7808ecce36beSmrgif test "${lt_cv_prog_compiler_static_works+set}" = set; then : 7809ecce36beSmrg $as_echo_n "(cached) " >&6 7810ecce36beSmrgelse 7811ecce36beSmrg lt_cv_prog_compiler_static_works=no 7812ecce36beSmrg save_LDFLAGS="$LDFLAGS" 7813ecce36beSmrg LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7814ecce36beSmrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 7815ecce36beSmrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7816ecce36beSmrg # The linker can only warn and ignore the option if not recognized 7817ecce36beSmrg # So say no if there are warnings 7818ecce36beSmrg if test -s conftest.err; then 7819ecce36beSmrg # Append any errors to the config.log. 7820ecce36beSmrg cat conftest.err 1>&5 7821ecce36beSmrg $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7822ecce36beSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7823ecce36beSmrg if diff conftest.exp conftest.er2 >/dev/null; then 7824ecce36beSmrg lt_cv_prog_compiler_static_works=yes 7825ecce36beSmrg fi 7826ecce36beSmrg else 7827ecce36beSmrg lt_cv_prog_compiler_static_works=yes 7828ecce36beSmrg fi 7829ecce36beSmrg fi 7830ecce36beSmrg $RM -r conftest* 7831ecce36beSmrg LDFLAGS="$save_LDFLAGS" 7832ecce36beSmrg 7833ecce36beSmrgfi 7834ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7835ecce36beSmrg$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7836ecce36beSmrg 7837ecce36beSmrgif test x"$lt_cv_prog_compiler_static_works" = xyes; then 7838ecce36beSmrg : 7839ecce36beSmrgelse 7840ecce36beSmrg lt_prog_compiler_static= 7841ecce36beSmrgfi 7842ecce36beSmrg 7843ecce36beSmrg 7844ecce36beSmrg 7845ecce36beSmrg 7846ecce36beSmrg 7847ecce36beSmrg 7848ecce36beSmrg 7849ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7850ecce36beSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7851ecce36beSmrgif test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7852ecce36beSmrg $as_echo_n "(cached) " >&6 7853ecce36beSmrgelse 7854ecce36beSmrg lt_cv_prog_compiler_c_o=no 7855ecce36beSmrg $RM -r conftest 2>/dev/null 7856ecce36beSmrg mkdir conftest 7857ecce36beSmrg cd conftest 7858ecce36beSmrg mkdir out 7859ecce36beSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7860ecce36beSmrg 7861ecce36beSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 7862ecce36beSmrg # Insert the option either (1) after the last *FLAGS variable, or 7863ecce36beSmrg # (2) before a word containing "conftest.", or (3) at the end. 7864ecce36beSmrg # Note that $ac_compile itself does not contain backslashes and begins 7865ecce36beSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 7866ecce36beSmrg lt_compile=`echo "$ac_compile" | $SED \ 7867ecce36beSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7868ecce36beSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7869ecce36beSmrg -e 's:$: $lt_compiler_flag:'` 7870ecce36beSmrg (eval echo "\"\$as_me:7870: $lt_compile\"" >&5) 7871ecce36beSmrg (eval "$lt_compile" 2>out/conftest.err) 7872ecce36beSmrg ac_status=$? 7873ecce36beSmrg cat out/conftest.err >&5 7874ecce36beSmrg echo "$as_me:7874: \$? = $ac_status" >&5 7875ecce36beSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 7876ecce36beSmrg then 7877ecce36beSmrg # The compiler can only warn and ignore the option if not recognized 7878ecce36beSmrg # So say no if there are warnings 7879ecce36beSmrg $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7880ecce36beSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7881ecce36beSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7882ecce36beSmrg lt_cv_prog_compiler_c_o=yes 7883ecce36beSmrg fi 7884ecce36beSmrg fi 7885ecce36beSmrg chmod u+w . 2>&5 7886ecce36beSmrg $RM conftest* 7887ecce36beSmrg # SGI C++ compiler will create directory out/ii_files/ for 7888ecce36beSmrg # template instantiation 7889ecce36beSmrg test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7890ecce36beSmrg $RM out/* && rmdir out 7891ecce36beSmrg cd .. 7892ecce36beSmrg $RM -r conftest 7893ecce36beSmrg $RM conftest* 7894ecce36beSmrg 7895ecce36beSmrgfi 7896ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7897ecce36beSmrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7898ecce36beSmrg 7899ecce36beSmrg 7900ecce36beSmrg 7901ecce36beSmrg 7902ecce36beSmrg 7903ecce36beSmrg 7904ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7905ecce36beSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7906ecce36beSmrgif test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7907ecce36beSmrg $as_echo_n "(cached) " >&6 7908ecce36beSmrgelse 7909ecce36beSmrg lt_cv_prog_compiler_c_o=no 7910ecce36beSmrg $RM -r conftest 2>/dev/null 7911ecce36beSmrg mkdir conftest 7912ecce36beSmrg cd conftest 7913ecce36beSmrg mkdir out 7914ecce36beSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7915ecce36beSmrg 7916ecce36beSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 7917ecce36beSmrg # Insert the option either (1) after the last *FLAGS variable, or 7918ecce36beSmrg # (2) before a word containing "conftest.", or (3) at the end. 7919ecce36beSmrg # Note that $ac_compile itself does not contain backslashes and begins 7920ecce36beSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 7921ecce36beSmrg lt_compile=`echo "$ac_compile" | $SED \ 7922ecce36beSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7923ecce36beSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7924ecce36beSmrg -e 's:$: $lt_compiler_flag:'` 7925ecce36beSmrg (eval echo "\"\$as_me:7925: $lt_compile\"" >&5) 7926ecce36beSmrg (eval "$lt_compile" 2>out/conftest.err) 7927ecce36beSmrg ac_status=$? 7928ecce36beSmrg cat out/conftest.err >&5 7929ecce36beSmrg echo "$as_me:7929: \$? = $ac_status" >&5 7930ecce36beSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 7931ecce36beSmrg then 7932ecce36beSmrg # The compiler can only warn and ignore the option if not recognized 7933ecce36beSmrg # So say no if there are warnings 7934ecce36beSmrg $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7935ecce36beSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7936ecce36beSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7937ecce36beSmrg lt_cv_prog_compiler_c_o=yes 7938ecce36beSmrg fi 7939ecce36beSmrg fi 7940ecce36beSmrg chmod u+w . 2>&5 7941ecce36beSmrg $RM conftest* 7942ecce36beSmrg # SGI C++ compiler will create directory out/ii_files/ for 7943ecce36beSmrg # template instantiation 7944ecce36beSmrg test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7945ecce36beSmrg $RM out/* && rmdir out 7946ecce36beSmrg cd .. 7947ecce36beSmrg $RM -r conftest 7948ecce36beSmrg $RM conftest* 7949ecce36beSmrg 7950ecce36beSmrgfi 7951ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7952ecce36beSmrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7953ecce36beSmrg 7954ecce36beSmrg 7955ecce36beSmrg 7956ecce36beSmrg 7957ecce36beSmrghard_links="nottested" 7958ecce36beSmrgif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7959ecce36beSmrg # do not overwrite the value of need_locks provided by the user 7960ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 7961ecce36beSmrg$as_echo_n "checking if we can lock with hard links... " >&6; } 7962ecce36beSmrg hard_links=yes 7963ecce36beSmrg $RM conftest* 7964ecce36beSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 7965ecce36beSmrg touch conftest.a 7966ecce36beSmrg ln conftest.a conftest.b 2>&5 || hard_links=no 7967ecce36beSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 7968ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 7969ecce36beSmrg$as_echo "$hard_links" >&6; } 7970ecce36beSmrg if test "$hard_links" = no; then 7971ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7972ecce36beSmrg$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7973ecce36beSmrg need_locks=warn 7974ecce36beSmrg fi 7975ecce36beSmrgelse 7976ecce36beSmrg need_locks=no 7977ecce36beSmrgfi 7978ecce36beSmrg 7979ecce36beSmrg 7980ecce36beSmrg 7981ecce36beSmrg 7982ecce36beSmrg 7983ecce36beSmrg 7984ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7985ecce36beSmrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7986ecce36beSmrg 7987ecce36beSmrg runpath_var= 7988ecce36beSmrg allow_undefined_flag= 7989ecce36beSmrg always_export_symbols=no 7990ecce36beSmrg archive_cmds= 7991ecce36beSmrg archive_expsym_cmds= 7992ecce36beSmrg compiler_needs_object=no 7993ecce36beSmrg enable_shared_with_static_runtimes=no 7994ecce36beSmrg export_dynamic_flag_spec= 7995ecce36beSmrg export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7996ecce36beSmrg hardcode_automatic=no 7997ecce36beSmrg hardcode_direct=no 7998ecce36beSmrg hardcode_direct_absolute=no 7999ecce36beSmrg hardcode_libdir_flag_spec= 8000ecce36beSmrg hardcode_libdir_flag_spec_ld= 8001ecce36beSmrg hardcode_libdir_separator= 8002ecce36beSmrg hardcode_minus_L=no 8003ecce36beSmrg hardcode_shlibpath_var=unsupported 8004ecce36beSmrg inherit_rpath=no 8005ecce36beSmrg link_all_deplibs=unknown 8006ecce36beSmrg module_cmds= 8007ecce36beSmrg module_expsym_cmds= 8008ecce36beSmrg old_archive_from_new_cmds= 8009ecce36beSmrg old_archive_from_expsyms_cmds= 8010ecce36beSmrg thread_safe_flag_spec= 8011ecce36beSmrg whole_archive_flag_spec= 8012ecce36beSmrg # include_expsyms should be a list of space-separated symbols to be *always* 8013ecce36beSmrg # included in the symbol list 8014ecce36beSmrg include_expsyms= 8015ecce36beSmrg # exclude_expsyms can be an extended regexp of symbols to exclude 8016ecce36beSmrg # it will be wrapped by ` (' and `)$', so one must not match beginning or 8017ecce36beSmrg # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8018ecce36beSmrg # as well as any symbol that contains `d'. 8019ecce36beSmrg exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8020ecce36beSmrg # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8021ecce36beSmrg # platforms (ab)use it in PIC code, but their linkers get confused if 8022ecce36beSmrg # the symbol is explicitly referenced. Since portable code cannot 8023ecce36beSmrg # rely on this symbol name, it's probably fine to never include it in 8024ecce36beSmrg # preloaded symbol tables. 8025ecce36beSmrg # Exclude shared library initialization/finalization symbols. 8026ecce36beSmrg extract_expsyms_cmds= 8027ecce36beSmrg 8028ecce36beSmrg case $host_os in 8029ecce36beSmrg cygwin* | mingw* | pw32* | cegcc*) 8030ecce36beSmrg # FIXME: the MSVC++ port hasn't been tested in a loooong time 8031ecce36beSmrg # When not using gcc, we currently assume that we are using 8032ecce36beSmrg # Microsoft Visual C++. 8033ecce36beSmrg if test "$GCC" != yes; then 8034ecce36beSmrg with_gnu_ld=no 8035ecce36beSmrg fi 8036ecce36beSmrg ;; 8037ecce36beSmrg interix*) 8038ecce36beSmrg # we just hope/assume this is gcc and not c89 (= MSVC++) 8039ecce36beSmrg with_gnu_ld=yes 8040ecce36beSmrg ;; 8041ecce36beSmrg openbsd*) 8042ecce36beSmrg with_gnu_ld=no 8043ecce36beSmrg ;; 8044ecce36beSmrg linux* | k*bsd*-gnu) 8045ecce36beSmrg link_all_deplibs=no 8046ecce36beSmrg ;; 8047ecce36beSmrg esac 8048ecce36beSmrg 8049ecce36beSmrg ld_shlibs=yes 8050ecce36beSmrg if test "$with_gnu_ld" = yes; then 8051ecce36beSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 8052ecce36beSmrg wlarc='${wl}' 8053ecce36beSmrg 8054ecce36beSmrg # Set some defaults for GNU ld with shared library support. These 8055ecce36beSmrg # are reset later if shared libraries are not supported. Putting them 8056ecce36beSmrg # here allows them to be overridden if necessary. 8057ecce36beSmrg runpath_var=LD_RUN_PATH 8058ecce36beSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8059ecce36beSmrg export_dynamic_flag_spec='${wl}--export-dynamic' 8060ecce36beSmrg # ancient GNU ld didn't support --whole-archive et. al. 8061ecce36beSmrg if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8062ecce36beSmrg whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8063ecce36beSmrg else 8064ecce36beSmrg whole_archive_flag_spec= 8065ecce36beSmrg fi 8066ecce36beSmrg supports_anon_versioning=no 8067ecce36beSmrg case `$LD -v 2>&1` in 8068ecce36beSmrg *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8069ecce36beSmrg *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8070ecce36beSmrg *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8071ecce36beSmrg *\ 2.11.*) ;; # other 2.11 versions 8072ecce36beSmrg *) supports_anon_versioning=yes ;; 8073ecce36beSmrg esac 8074ecce36beSmrg 8075ecce36beSmrg # See if GNU ld supports shared libraries. 8076ecce36beSmrg case $host_os in 8077ecce36beSmrg aix[3-9]*) 8078ecce36beSmrg # On AIX/PPC, the GNU linker is very broken 8079ecce36beSmrg if test "$host_cpu" != ia64; then 8080ecce36beSmrg ld_shlibs=no 8081ecce36beSmrg cat <<_LT_EOF 1>&2 8082ecce36beSmrg 8083ecce36beSmrg*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8084ecce36beSmrg*** to be unable to reliably create shared libraries on AIX. 8085ecce36beSmrg*** Therefore, libtool is disabling shared libraries support. If you 8086ecce36beSmrg*** really care for shared libraries, you may want to modify your PATH 8087ecce36beSmrg*** so that a non-GNU linker is found, and then restart. 8088ecce36beSmrg 8089ecce36beSmrg_LT_EOF 8090ecce36beSmrg fi 8091ecce36beSmrg ;; 8092ecce36beSmrg 8093ecce36beSmrg amigaos*) 8094ecce36beSmrg case $host_cpu in 8095ecce36beSmrg powerpc) 8096ecce36beSmrg # see comment about AmigaOS4 .so support 8097ecce36beSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8098ecce36beSmrg archive_expsym_cmds='' 8099ecce36beSmrg ;; 8100ecce36beSmrg m68k) 8101ecce36beSmrg 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)' 8102ecce36beSmrg hardcode_libdir_flag_spec='-L$libdir' 8103ecce36beSmrg hardcode_minus_L=yes 8104ecce36beSmrg ;; 8105ecce36beSmrg esac 8106ecce36beSmrg ;; 8107ecce36beSmrg 8108ecce36beSmrg beos*) 8109ecce36beSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8110ecce36beSmrg allow_undefined_flag=unsupported 8111ecce36beSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8112ecce36beSmrg # support --undefined. This deserves some investigation. FIXME 8113ecce36beSmrg archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8114ecce36beSmrg else 8115ecce36beSmrg ld_shlibs=no 8116ecce36beSmrg fi 8117ecce36beSmrg ;; 8118ecce36beSmrg 8119ecce36beSmrg cygwin* | mingw* | pw32* | cegcc*) 8120ecce36beSmrg # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8121ecce36beSmrg # as there is no search path for DLLs. 8122ecce36beSmrg hardcode_libdir_flag_spec='-L$libdir' 8123ecce36beSmrg allow_undefined_flag=unsupported 8124ecce36beSmrg always_export_symbols=no 8125ecce36beSmrg enable_shared_with_static_runtimes=yes 8126ecce36beSmrg export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8127ecce36beSmrg 8128ecce36beSmrg if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8129ecce36beSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8130ecce36beSmrg # If the export-symbols file already is a .def file (1st line 8131ecce36beSmrg # is EXPORTS), use it as is; otherwise, prepend... 8132ecce36beSmrg archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8133ecce36beSmrg cp $export_symbols $output_objdir/$soname.def; 8134ecce36beSmrg else 8135ecce36beSmrg echo EXPORTS > $output_objdir/$soname.def; 8136ecce36beSmrg cat $export_symbols >> $output_objdir/$soname.def; 8137ecce36beSmrg fi~ 8138ecce36beSmrg $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8139ecce36beSmrg else 8140ecce36beSmrg ld_shlibs=no 8141ecce36beSmrg fi 8142ecce36beSmrg ;; 8143ecce36beSmrg 8144ecce36beSmrg interix[3-9]*) 8145ecce36beSmrg hardcode_direct=no 8146ecce36beSmrg hardcode_shlibpath_var=no 8147ecce36beSmrg hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8148ecce36beSmrg export_dynamic_flag_spec='${wl}-E' 8149ecce36beSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8150ecce36beSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 8151ecce36beSmrg # default) and relocated if they conflict, which is a slow very memory 8152ecce36beSmrg # consuming and fragmenting process. To avoid this, we pick a random, 8153ecce36beSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8154ecce36beSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8155ecce36beSmrg archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8156ecce36beSmrg 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' 8157ecce36beSmrg ;; 8158ecce36beSmrg 8159ecce36beSmrg gnu* | linux* | tpf* | k*bsd*-gnu) 8160ecce36beSmrg tmp_diet=no 8161ecce36beSmrg if test "$host_os" = linux-dietlibc; then 8162ecce36beSmrg case $cc_basename in 8163ecce36beSmrg diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8164ecce36beSmrg esac 8165ecce36beSmrg fi 8166ecce36beSmrg if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8167ecce36beSmrg && test "$tmp_diet" = no 8168ecce36beSmrg then 8169ecce36beSmrg tmp_addflag= 8170ecce36beSmrg tmp_sharedflag='-shared' 8171ecce36beSmrg case $cc_basename,$host_cpu in 8172ecce36beSmrg pgcc*) # Portland Group C compiler 8173ecce36beSmrg whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8174ecce36beSmrg tmp_addflag=' $pic_flag' 8175ecce36beSmrg ;; 8176ecce36beSmrg pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8177ecce36beSmrg whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8178ecce36beSmrg tmp_addflag=' $pic_flag -Mnomain' ;; 8179ecce36beSmrg ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8180ecce36beSmrg tmp_addflag=' -i_dynamic' ;; 8181ecce36beSmrg efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8182ecce36beSmrg tmp_addflag=' -i_dynamic -nofor_main' ;; 8183ecce36beSmrg ifc* | ifort*) # Intel Fortran compiler 8184ecce36beSmrg tmp_addflag=' -nofor_main' ;; 8185ecce36beSmrg lf95*) # Lahey Fortran 8.1 8186ecce36beSmrg whole_archive_flag_spec= 8187ecce36beSmrg tmp_sharedflag='--shared' ;; 8188ecce36beSmrg xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8189ecce36beSmrg tmp_sharedflag='-qmkshrobj' 8190ecce36beSmrg tmp_addflag= ;; 8191ecce36beSmrg esac 8192ecce36beSmrg case `$CC -V 2>&1 | sed 5q` in 8193ecce36beSmrg *Sun\ C*) # Sun C 5.9 8194ecce36beSmrg whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8195ecce36beSmrg compiler_needs_object=yes 8196ecce36beSmrg tmp_sharedflag='-G' ;; 8197ecce36beSmrg *Sun\ F*) # Sun Fortran 8.3 8198ecce36beSmrg tmp_sharedflag='-G' ;; 8199ecce36beSmrg esac 8200ecce36beSmrg archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8201ecce36beSmrg 8202ecce36beSmrg if test "x$supports_anon_versioning" = xyes; then 8203ecce36beSmrg archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8204ecce36beSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8205ecce36beSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 8206ecce36beSmrg $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8207ecce36beSmrg fi 8208ecce36beSmrg 8209ecce36beSmrg case $cc_basename in 8210ecce36beSmrg xlf*) 8211ecce36beSmrg # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8212ecce36beSmrg whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8213ecce36beSmrg hardcode_libdir_flag_spec= 8214ecce36beSmrg hardcode_libdir_flag_spec_ld='-rpath $libdir' 8215ecce36beSmrg archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8216ecce36beSmrg if test "x$supports_anon_versioning" = xyes; then 8217ecce36beSmrg archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8218ecce36beSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8219ecce36beSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 8220ecce36beSmrg $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8221ecce36beSmrg fi 8222ecce36beSmrg ;; 8223ecce36beSmrg esac 8224ecce36beSmrg else 8225ecce36beSmrg ld_shlibs=no 8226ecce36beSmrg fi 8227ecce36beSmrg ;; 8228ecce36beSmrg 8229ecce36beSmrg netbsd* | netbsdelf*-gnu) 8230ecce36beSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8231ecce36beSmrg archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8232ecce36beSmrg wlarc= 8233ecce36beSmrg else 8234ecce36beSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8235ecce36beSmrg archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8236ecce36beSmrg fi 8237ecce36beSmrg ;; 8238ecce36beSmrg 8239ecce36beSmrg solaris*) 8240ecce36beSmrg if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8241ecce36beSmrg ld_shlibs=no 8242ecce36beSmrg cat <<_LT_EOF 1>&2 8243ecce36beSmrg 8244ecce36beSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8245ecce36beSmrg*** create shared libraries on Solaris systems. Therefore, libtool 8246ecce36beSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 8247ecce36beSmrg*** binutils to release 2.9.1 or newer. Another option is to modify 8248ecce36beSmrg*** your PATH or compiler configuration so that the native linker is 8249ecce36beSmrg*** used, and then restart. 8250ecce36beSmrg 8251ecce36beSmrg_LT_EOF 8252ecce36beSmrg elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8253ecce36beSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8254ecce36beSmrg archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8255ecce36beSmrg else 8256ecce36beSmrg ld_shlibs=no 8257ecce36beSmrg fi 8258ecce36beSmrg ;; 8259ecce36beSmrg 8260ecce36beSmrg sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8261ecce36beSmrg case `$LD -v 2>&1` in 8262ecce36beSmrg *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8263ecce36beSmrg ld_shlibs=no 8264ecce36beSmrg cat <<_LT_EOF 1>&2 8265ecce36beSmrg 8266ecce36beSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8267ecce36beSmrg*** reliably create shared libraries on SCO systems. Therefore, libtool 8268ecce36beSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 8269ecce36beSmrg*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8270ecce36beSmrg*** your PATH or compiler configuration so that the native linker is 8271ecce36beSmrg*** used, and then restart. 8272ecce36beSmrg 8273ecce36beSmrg_LT_EOF 8274ecce36beSmrg ;; 8275ecce36beSmrg *) 8276ecce36beSmrg # For security reasons, it is highly recommended that you always 8277ecce36beSmrg # use absolute paths for naming shared libraries, and exclude the 8278ecce36beSmrg # DT_RUNPATH tag from executables and libraries. But doing so 8279ecce36beSmrg # requires that you compile everything twice, which is a pain. 8280ecce36beSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8281ecce36beSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8282ecce36beSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8283ecce36beSmrg archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8284ecce36beSmrg else 8285ecce36beSmrg ld_shlibs=no 8286ecce36beSmrg fi 8287ecce36beSmrg ;; 8288ecce36beSmrg esac 8289ecce36beSmrg ;; 8290ecce36beSmrg 8291ecce36beSmrg sunos4*) 8292ecce36beSmrg archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8293ecce36beSmrg wlarc= 8294ecce36beSmrg hardcode_direct=yes 8295ecce36beSmrg hardcode_shlibpath_var=no 8296ecce36beSmrg ;; 8297ecce36beSmrg 8298ecce36beSmrg *) 8299ecce36beSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8300ecce36beSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8301ecce36beSmrg archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8302ecce36beSmrg else 8303ecce36beSmrg ld_shlibs=no 8304ecce36beSmrg fi 8305ecce36beSmrg ;; 8306ecce36beSmrg esac 8307ecce36beSmrg 8308ecce36beSmrg if test "$ld_shlibs" = no; then 8309ecce36beSmrg runpath_var= 8310ecce36beSmrg hardcode_libdir_flag_spec= 8311ecce36beSmrg export_dynamic_flag_spec= 8312ecce36beSmrg whole_archive_flag_spec= 8313ecce36beSmrg fi 8314ecce36beSmrg else 8315ecce36beSmrg # PORTME fill in a description of your system's linker (not GNU ld) 8316ecce36beSmrg case $host_os in 8317ecce36beSmrg aix3*) 8318ecce36beSmrg allow_undefined_flag=unsupported 8319ecce36beSmrg always_export_symbols=yes 8320ecce36beSmrg 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' 8321ecce36beSmrg # Note: this linker hardcodes the directories in LIBPATH if there 8322ecce36beSmrg # are no directories specified by -L. 8323ecce36beSmrg hardcode_minus_L=yes 8324ecce36beSmrg if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8325ecce36beSmrg # Neither direct hardcoding nor static linking is supported with a 8326ecce36beSmrg # broken collect2. 8327ecce36beSmrg hardcode_direct=unsupported 8328ecce36beSmrg fi 8329ecce36beSmrg ;; 8330ecce36beSmrg 8331ecce36beSmrg aix[4-9]*) 8332ecce36beSmrg if test "$host_cpu" = ia64; then 8333ecce36beSmrg # On IA64, the linker does run time linking by default, so we don't 8334ecce36beSmrg # have to do anything special. 8335ecce36beSmrg aix_use_runtimelinking=no 8336ecce36beSmrg exp_sym_flag='-Bexport' 8337ecce36beSmrg no_entry_flag="" 8338ecce36beSmrg else 8339ecce36beSmrg # If we're using GNU nm, then we don't want the "-C" option. 8340ecce36beSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 8341ecce36beSmrg if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8342ecce36beSmrg export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8343ecce36beSmrg else 8344ecce36beSmrg 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' 8345ecce36beSmrg fi 8346ecce36beSmrg aix_use_runtimelinking=no 8347ecce36beSmrg 8348ecce36beSmrg # Test if we are trying to use run time linking or normal 8349ecce36beSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8350ecce36beSmrg # need to do runtime linking. 8351ecce36beSmrg case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8352ecce36beSmrg for ld_flag in $LDFLAGS; do 8353ecce36beSmrg if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8354ecce36beSmrg aix_use_runtimelinking=yes 8355ecce36beSmrg break 8356ecce36beSmrg fi 8357ecce36beSmrg done 8358ecce36beSmrg ;; 8359ecce36beSmrg esac 8360ecce36beSmrg 8361ecce36beSmrg exp_sym_flag='-bexport' 8362ecce36beSmrg no_entry_flag='-bnoentry' 8363ecce36beSmrg fi 8364ecce36beSmrg 8365ecce36beSmrg # When large executables or shared objects are built, AIX ld can 8366ecce36beSmrg # have problems creating the table of contents. If linking a library 8367ecce36beSmrg # or program results in "error TOC overflow" add -mminimal-toc to 8368ecce36beSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8369ecce36beSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8370ecce36beSmrg 8371ecce36beSmrg archive_cmds='' 8372ecce36beSmrg hardcode_direct=yes 8373ecce36beSmrg hardcode_direct_absolute=yes 8374ecce36beSmrg hardcode_libdir_separator=':' 8375ecce36beSmrg link_all_deplibs=yes 8376ecce36beSmrg file_list_spec='${wl}-f,' 8377ecce36beSmrg 8378ecce36beSmrg if test "$GCC" = yes; then 8379ecce36beSmrg case $host_os in aix4.[012]|aix4.[012].*) 8380ecce36beSmrg # We only want to do this on AIX 4.2 and lower, the check 8381ecce36beSmrg # below for broken collect2 doesn't work under 4.3+ 8382ecce36beSmrg collect2name=`${CC} -print-prog-name=collect2` 8383ecce36beSmrg if test -f "$collect2name" && 8384ecce36beSmrg strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8385ecce36beSmrg then 8386ecce36beSmrg # We have reworked collect2 8387ecce36beSmrg : 8388ecce36beSmrg else 8389ecce36beSmrg # We have old collect2 8390ecce36beSmrg hardcode_direct=unsupported 8391ecce36beSmrg # It fails to find uninstalled libraries when the uninstalled 8392ecce36beSmrg # path is not listed in the libpath. Setting hardcode_minus_L 8393ecce36beSmrg # to unsupported forces relinking 8394ecce36beSmrg hardcode_minus_L=yes 8395ecce36beSmrg hardcode_libdir_flag_spec='-L$libdir' 8396ecce36beSmrg hardcode_libdir_separator= 8397ecce36beSmrg fi 8398ecce36beSmrg ;; 8399ecce36beSmrg esac 8400ecce36beSmrg shared_flag='-shared' 8401ecce36beSmrg if test "$aix_use_runtimelinking" = yes; then 8402ecce36beSmrg shared_flag="$shared_flag "'${wl}-G' 8403ecce36beSmrg fi 8404ecce36beSmrg link_all_deplibs=no 8405ecce36beSmrg else 8406ecce36beSmrg # not using gcc 8407ecce36beSmrg if test "$host_cpu" = ia64; then 8408ecce36beSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8409ecce36beSmrg # chokes on -Wl,-G. The following line is correct: 8410ecce36beSmrg shared_flag='-G' 8411ecce36beSmrg else 8412ecce36beSmrg if test "$aix_use_runtimelinking" = yes; then 8413ecce36beSmrg shared_flag='${wl}-G' 8414ecce36beSmrg else 8415ecce36beSmrg shared_flag='${wl}-bM:SRE' 8416ecce36beSmrg fi 8417ecce36beSmrg fi 8418ecce36beSmrg fi 8419ecce36beSmrg 8420ecce36beSmrg export_dynamic_flag_spec='${wl}-bexpall' 8421ecce36beSmrg # It seems that -bexpall does not export symbols beginning with 8422ecce36beSmrg # underscore (_), so it is better to generate a list of symbols to export. 8423ecce36beSmrg always_export_symbols=yes 8424ecce36beSmrg if test "$aix_use_runtimelinking" = yes; then 8425ecce36beSmrg # Warning - without using the other runtime loading flags (-brtl), 8426ecce36beSmrg # -berok will link without error, but may produce a broken library. 8427ecce36beSmrg allow_undefined_flag='-berok' 8428ecce36beSmrg # Determine the default libpath from the value encoded in an 8429ecce36beSmrg # empty executable. 8430ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8431ecce36beSmrg/* end confdefs.h. */ 8432ecce36beSmrg 8433ecce36beSmrgint 8434ecce36beSmrgmain () 8435ecce36beSmrg{ 8436ecce36beSmrg 8437ecce36beSmrg ; 8438ecce36beSmrg return 0; 8439ecce36beSmrg} 8440ecce36beSmrg_ACEOF 8441ecce36beSmrgif ac_fn_c_try_link "$LINENO"; then : 8442ecce36beSmrg 8443ecce36beSmrglt_aix_libpath_sed=' 8444ecce36beSmrg /Import File Strings/,/^$/ { 8445ecce36beSmrg /^0/ { 8446ecce36beSmrg s/^0 *\(.*\)$/\1/ 8447ecce36beSmrg p 8448ecce36beSmrg } 8449ecce36beSmrg }' 8450ecce36beSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8451ecce36beSmrg# Check for a 64-bit object if we didn't find anything. 8452ecce36beSmrgif test -z "$aix_libpath"; then 8453ecce36beSmrg aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8454ecce36beSmrgfi 8455ecce36beSmrgfi 8456ecce36beSmrgrm -f core conftest.err conftest.$ac_objext \ 8457ecce36beSmrg conftest$ac_exeext conftest.$ac_ext 8458ecce36beSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8459ecce36beSmrg 8460ecce36beSmrg hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8461ecce36beSmrg archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8462ecce36beSmrg else 8463ecce36beSmrg if test "$host_cpu" = ia64; then 8464ecce36beSmrg hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8465ecce36beSmrg allow_undefined_flag="-z nodefs" 8466ecce36beSmrg 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" 8467ecce36beSmrg else 8468ecce36beSmrg # Determine the default libpath from the value encoded in an 8469ecce36beSmrg # empty executable. 8470ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8471ecce36beSmrg/* end confdefs.h. */ 8472ecce36beSmrg 8473ecce36beSmrgint 8474ecce36beSmrgmain () 8475ecce36beSmrg{ 8476ecce36beSmrg 8477ecce36beSmrg ; 8478ecce36beSmrg return 0; 8479ecce36beSmrg} 8480ecce36beSmrg_ACEOF 8481ecce36beSmrgif ac_fn_c_try_link "$LINENO"; then : 8482ecce36beSmrg 8483ecce36beSmrglt_aix_libpath_sed=' 8484ecce36beSmrg /Import File Strings/,/^$/ { 8485ecce36beSmrg /^0/ { 8486ecce36beSmrg s/^0 *\(.*\)$/\1/ 8487ecce36beSmrg p 8488ecce36beSmrg } 8489ecce36beSmrg }' 8490ecce36beSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8491ecce36beSmrg# Check for a 64-bit object if we didn't find anything. 8492ecce36beSmrgif test -z "$aix_libpath"; then 8493ecce36beSmrg aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8494ecce36beSmrgfi 8495ecce36beSmrgfi 8496ecce36beSmrgrm -f core conftest.err conftest.$ac_objext \ 8497ecce36beSmrg conftest$ac_exeext conftest.$ac_ext 8498ecce36beSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8499ecce36beSmrg 8500ecce36beSmrg hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8501ecce36beSmrg # Warning - without using the other run time loading flags, 8502ecce36beSmrg # -berok will link without error, but may produce a broken library. 8503ecce36beSmrg no_undefined_flag=' ${wl}-bernotok' 8504ecce36beSmrg allow_undefined_flag=' ${wl}-berok' 8505ecce36beSmrg # Exported symbols can be pulled into shared objects from archives 8506ecce36beSmrg whole_archive_flag_spec='$convenience' 8507ecce36beSmrg archive_cmds_need_lc=yes 8508ecce36beSmrg # This is similar to how AIX traditionally builds its shared libraries. 8509ecce36beSmrg 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' 8510ecce36beSmrg fi 8511ecce36beSmrg fi 8512ecce36beSmrg ;; 8513ecce36beSmrg 8514ecce36beSmrg amigaos*) 8515ecce36beSmrg case $host_cpu in 8516ecce36beSmrg powerpc) 8517ecce36beSmrg # see comment about AmigaOS4 .so support 8518ecce36beSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8519ecce36beSmrg archive_expsym_cmds='' 8520ecce36beSmrg ;; 8521ecce36beSmrg m68k) 8522ecce36beSmrg 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)' 8523ecce36beSmrg hardcode_libdir_flag_spec='-L$libdir' 8524ecce36beSmrg hardcode_minus_L=yes 8525ecce36beSmrg ;; 8526ecce36beSmrg esac 8527ecce36beSmrg ;; 8528ecce36beSmrg 8529ecce36beSmrg bsdi[45]*) 8530ecce36beSmrg export_dynamic_flag_spec=-rdynamic 8531ecce36beSmrg ;; 8532ecce36beSmrg 8533ecce36beSmrg cygwin* | mingw* | pw32* | cegcc*) 8534ecce36beSmrg # When not using gcc, we currently assume that we are using 8535ecce36beSmrg # Microsoft Visual C++. 8536ecce36beSmrg # hardcode_libdir_flag_spec is actually meaningless, as there is 8537ecce36beSmrg # no search path for DLLs. 8538ecce36beSmrg hardcode_libdir_flag_spec=' ' 8539ecce36beSmrg allow_undefined_flag=unsupported 8540ecce36beSmrg # Tell ltmain to make .lib files, not .a files. 8541ecce36beSmrg libext=lib 8542ecce36beSmrg # Tell ltmain to make .dll files, not .so files. 8543ecce36beSmrg shrext_cmds=".dll" 8544ecce36beSmrg # FIXME: Setting linknames here is a bad hack. 8545ecce36beSmrg archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8546ecce36beSmrg # The linker will automatically build a .lib file if we build a DLL. 8547ecce36beSmrg old_archive_from_new_cmds='true' 8548ecce36beSmrg # FIXME: Should let the user specify the lib program. 8549ecce36beSmrg old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8550ecce36beSmrg fix_srcfile_path='`cygpath -w "$srcfile"`' 8551ecce36beSmrg enable_shared_with_static_runtimes=yes 8552ecce36beSmrg ;; 8553ecce36beSmrg 8554ecce36beSmrg darwin* | rhapsody*) 8555ecce36beSmrg 8556ecce36beSmrg 8557ecce36beSmrg archive_cmds_need_lc=no 8558ecce36beSmrg hardcode_direct=no 8559ecce36beSmrg hardcode_automatic=yes 8560ecce36beSmrg hardcode_shlibpath_var=unsupported 8561ecce36beSmrg whole_archive_flag_spec='' 8562ecce36beSmrg link_all_deplibs=yes 8563ecce36beSmrg allow_undefined_flag="$_lt_dar_allow_undefined" 8564ecce36beSmrg case $cc_basename in 8565ecce36beSmrg ifort*) _lt_dar_can_shared=yes ;; 8566ecce36beSmrg *) _lt_dar_can_shared=$GCC ;; 8567ecce36beSmrg esac 8568ecce36beSmrg if test "$_lt_dar_can_shared" = "yes"; then 8569ecce36beSmrg output_verbose_link_cmd=echo 8570ecce36beSmrg archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8571ecce36beSmrg module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8572ecce36beSmrg 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}" 8573ecce36beSmrg 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}" 8574ecce36beSmrg 8575ecce36beSmrg else 8576ecce36beSmrg ld_shlibs=no 8577ecce36beSmrg fi 8578ecce36beSmrg 8579ecce36beSmrg ;; 8580ecce36beSmrg 8581ecce36beSmrg dgux*) 8582ecce36beSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8583ecce36beSmrg hardcode_libdir_flag_spec='-L$libdir' 8584ecce36beSmrg hardcode_shlibpath_var=no 8585ecce36beSmrg ;; 8586ecce36beSmrg 8587ecce36beSmrg freebsd1*) 8588ecce36beSmrg ld_shlibs=no 8589ecce36beSmrg ;; 8590ecce36beSmrg 8591ecce36beSmrg # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8592ecce36beSmrg # support. Future versions do this automatically, but an explicit c++rt0.o 8593ecce36beSmrg # does not break anything, and helps significantly (at the cost of a little 8594ecce36beSmrg # extra space). 8595ecce36beSmrg freebsd2.2*) 8596ecce36beSmrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8597ecce36beSmrg hardcode_libdir_flag_spec='-R$libdir' 8598ecce36beSmrg hardcode_direct=yes 8599ecce36beSmrg hardcode_shlibpath_var=no 8600ecce36beSmrg ;; 8601ecce36beSmrg 8602ecce36beSmrg # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8603ecce36beSmrg freebsd2*) 8604ecce36beSmrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8605ecce36beSmrg hardcode_direct=yes 8606ecce36beSmrg hardcode_minus_L=yes 8607ecce36beSmrg hardcode_shlibpath_var=no 8608ecce36beSmrg ;; 8609ecce36beSmrg 8610ecce36beSmrg # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8611ecce36beSmrg freebsd* | dragonfly*) 8612ecce36beSmrg archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8613ecce36beSmrg hardcode_libdir_flag_spec='-R$libdir' 8614ecce36beSmrg hardcode_direct=yes 8615ecce36beSmrg hardcode_shlibpath_var=no 8616ecce36beSmrg ;; 8617ecce36beSmrg 8618ecce36beSmrg hpux9*) 8619ecce36beSmrg if test "$GCC" = yes; then 8620ecce36beSmrg 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' 8621ecce36beSmrg else 8622ecce36beSmrg 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' 8623ecce36beSmrg fi 8624ecce36beSmrg hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8625ecce36beSmrg hardcode_libdir_separator=: 8626ecce36beSmrg hardcode_direct=yes 8627ecce36beSmrg 8628ecce36beSmrg # hardcode_minus_L: Not really in the search PATH, 8629ecce36beSmrg # but as the default location of the library. 8630ecce36beSmrg hardcode_minus_L=yes 8631ecce36beSmrg export_dynamic_flag_spec='${wl}-E' 8632ecce36beSmrg ;; 8633ecce36beSmrg 8634ecce36beSmrg hpux10*) 8635ecce36beSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8636ecce36beSmrg archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8637ecce36beSmrg else 8638ecce36beSmrg archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8639ecce36beSmrg fi 8640ecce36beSmrg if test "$with_gnu_ld" = no; then 8641ecce36beSmrg hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8642ecce36beSmrg hardcode_libdir_flag_spec_ld='+b $libdir' 8643ecce36beSmrg hardcode_libdir_separator=: 8644ecce36beSmrg hardcode_direct=yes 8645ecce36beSmrg hardcode_direct_absolute=yes 8646ecce36beSmrg export_dynamic_flag_spec='${wl}-E' 8647ecce36beSmrg # hardcode_minus_L: Not really in the search PATH, 8648ecce36beSmrg # but as the default location of the library. 8649ecce36beSmrg hardcode_minus_L=yes 8650ecce36beSmrg fi 8651ecce36beSmrg ;; 8652ecce36beSmrg 8653ecce36beSmrg hpux11*) 8654ecce36beSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8655ecce36beSmrg case $host_cpu in 8656ecce36beSmrg hppa*64*) 8657ecce36beSmrg archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8658ecce36beSmrg ;; 8659ecce36beSmrg ia64*) 8660ecce36beSmrg archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8661ecce36beSmrg ;; 8662ecce36beSmrg *) 8663ecce36beSmrg archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8664ecce36beSmrg ;; 8665ecce36beSmrg esac 8666ecce36beSmrg else 8667ecce36beSmrg case $host_cpu in 8668ecce36beSmrg hppa*64*) 8669ecce36beSmrg archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8670ecce36beSmrg ;; 8671ecce36beSmrg ia64*) 8672ecce36beSmrg archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8673ecce36beSmrg ;; 8674ecce36beSmrg *) 8675ecce36beSmrg archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8676ecce36beSmrg ;; 8677ecce36beSmrg esac 8678ecce36beSmrg fi 8679ecce36beSmrg if test "$with_gnu_ld" = no; then 8680ecce36beSmrg hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8681ecce36beSmrg hardcode_libdir_separator=: 8682ecce36beSmrg 8683ecce36beSmrg case $host_cpu in 8684ecce36beSmrg hppa*64*|ia64*) 8685ecce36beSmrg hardcode_direct=no 8686ecce36beSmrg hardcode_shlibpath_var=no 8687ecce36beSmrg ;; 8688ecce36beSmrg *) 8689ecce36beSmrg hardcode_direct=yes 8690ecce36beSmrg hardcode_direct_absolute=yes 8691ecce36beSmrg export_dynamic_flag_spec='${wl}-E' 8692ecce36beSmrg 8693ecce36beSmrg # hardcode_minus_L: Not really in the search PATH, 8694ecce36beSmrg # but as the default location of the library. 8695ecce36beSmrg hardcode_minus_L=yes 8696ecce36beSmrg ;; 8697ecce36beSmrg esac 8698ecce36beSmrg fi 8699ecce36beSmrg ;; 8700ecce36beSmrg 8701ecce36beSmrg irix5* | irix6* | nonstopux*) 8702ecce36beSmrg if test "$GCC" = yes; then 8703ecce36beSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8704ecce36beSmrg # Try to use the -exported_symbol ld option, if it does not 8705ecce36beSmrg # work, assume that -exports_file does not work either and 8706ecce36beSmrg # implicitly export all symbols. 8707ecce36beSmrg save_LDFLAGS="$LDFLAGS" 8708ecce36beSmrg LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8709ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8710ecce36beSmrg/* end confdefs.h. */ 8711ecce36beSmrgint foo(void) {} 8712ecce36beSmrg_ACEOF 8713ecce36beSmrgif ac_fn_c_try_link "$LINENO"; then : 8714ecce36beSmrg archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 8715ecce36beSmrg 8716ecce36beSmrgfi 8717ecce36beSmrgrm -f core conftest.err conftest.$ac_objext \ 8718ecce36beSmrg conftest$ac_exeext conftest.$ac_ext 8719ecce36beSmrg LDFLAGS="$save_LDFLAGS" 8720ecce36beSmrg else 8721ecce36beSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8722ecce36beSmrg archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 8723ecce36beSmrg fi 8724ecce36beSmrg archive_cmds_need_lc='no' 8725ecce36beSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8726ecce36beSmrg hardcode_libdir_separator=: 8727ecce36beSmrg inherit_rpath=yes 8728ecce36beSmrg link_all_deplibs=yes 8729ecce36beSmrg ;; 8730ecce36beSmrg 8731ecce36beSmrg netbsd* | netbsdelf*-gnu) 8732ecce36beSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8733ecce36beSmrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8734ecce36beSmrg else 8735ecce36beSmrg archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8736ecce36beSmrg fi 8737ecce36beSmrg hardcode_libdir_flag_spec='-R$libdir' 8738ecce36beSmrg hardcode_direct=yes 8739ecce36beSmrg hardcode_shlibpath_var=no 8740ecce36beSmrg ;; 8741ecce36beSmrg 8742ecce36beSmrg newsos6) 8743ecce36beSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8744ecce36beSmrg hardcode_direct=yes 8745ecce36beSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8746ecce36beSmrg hardcode_libdir_separator=: 8747ecce36beSmrg hardcode_shlibpath_var=no 8748ecce36beSmrg ;; 8749ecce36beSmrg 8750ecce36beSmrg *nto* | *qnx*) 8751ecce36beSmrg ;; 8752ecce36beSmrg 8753ecce36beSmrg openbsd*) 8754ecce36beSmrg if test -f /usr/libexec/ld.so; then 8755ecce36beSmrg hardcode_direct=yes 8756ecce36beSmrg hardcode_shlibpath_var=no 8757ecce36beSmrg hardcode_direct_absolute=yes 8758ecce36beSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8759ecce36beSmrg archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8760ecce36beSmrg archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8761ecce36beSmrg hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8762ecce36beSmrg export_dynamic_flag_spec='${wl}-E' 8763ecce36beSmrg else 8764ecce36beSmrg case $host_os in 8765ecce36beSmrg openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8766ecce36beSmrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8767ecce36beSmrg hardcode_libdir_flag_spec='-R$libdir' 8768ecce36beSmrg ;; 8769ecce36beSmrg *) 8770ecce36beSmrg archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8771ecce36beSmrg hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8772ecce36beSmrg ;; 8773ecce36beSmrg esac 8774ecce36beSmrg fi 8775ecce36beSmrg else 8776ecce36beSmrg ld_shlibs=no 8777ecce36beSmrg fi 8778ecce36beSmrg ;; 8779ecce36beSmrg 8780ecce36beSmrg os2*) 8781ecce36beSmrg hardcode_libdir_flag_spec='-L$libdir' 8782ecce36beSmrg hardcode_minus_L=yes 8783ecce36beSmrg allow_undefined_flag=unsupported 8784ecce36beSmrg 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' 8785ecce36beSmrg old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8786ecce36beSmrg ;; 8787ecce36beSmrg 8788ecce36beSmrg osf3*) 8789ecce36beSmrg if test "$GCC" = yes; then 8790ecce36beSmrg allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8791ecce36beSmrg archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8792ecce36beSmrg else 8793ecce36beSmrg allow_undefined_flag=' -expect_unresolved \*' 8794ecce36beSmrg archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8795ecce36beSmrg fi 8796ecce36beSmrg archive_cmds_need_lc='no' 8797ecce36beSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8798ecce36beSmrg hardcode_libdir_separator=: 8799ecce36beSmrg ;; 8800ecce36beSmrg 8801ecce36beSmrg osf4* | osf5*) # as osf3* with the addition of -msym flag 8802ecce36beSmrg if test "$GCC" = yes; then 8803ecce36beSmrg allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8804ecce36beSmrg archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8805ecce36beSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8806ecce36beSmrg else 8807ecce36beSmrg allow_undefined_flag=' -expect_unresolved \*' 8808ecce36beSmrg archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8809ecce36beSmrg 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~ 8810ecce36beSmrg $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 8811ecce36beSmrg 8812ecce36beSmrg # Both c and cxx compiler support -rpath directly 8813ecce36beSmrg hardcode_libdir_flag_spec='-rpath $libdir' 8814ecce36beSmrg fi 8815ecce36beSmrg archive_cmds_need_lc='no' 8816ecce36beSmrg hardcode_libdir_separator=: 8817ecce36beSmrg ;; 8818ecce36beSmrg 8819ecce36beSmrg solaris*) 8820ecce36beSmrg no_undefined_flag=' -z defs' 8821ecce36beSmrg if test "$GCC" = yes; then 8822ecce36beSmrg wlarc='${wl}' 8823ecce36beSmrg archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8824ecce36beSmrg archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8825ecce36beSmrg $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8826ecce36beSmrg else 8827ecce36beSmrg case `$CC -V 2>&1` in 8828ecce36beSmrg *"Compilers 5.0"*) 8829ecce36beSmrg wlarc='' 8830ecce36beSmrg archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8831ecce36beSmrg archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8832ecce36beSmrg $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8833ecce36beSmrg ;; 8834ecce36beSmrg *) 8835ecce36beSmrg wlarc='${wl}' 8836ecce36beSmrg archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8837ecce36beSmrg archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8838ecce36beSmrg $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8839ecce36beSmrg ;; 8840ecce36beSmrg esac 8841ecce36beSmrg fi 8842ecce36beSmrg hardcode_libdir_flag_spec='-R$libdir' 8843ecce36beSmrg hardcode_shlibpath_var=no 8844ecce36beSmrg case $host_os in 8845ecce36beSmrg solaris2.[0-5] | solaris2.[0-5].*) ;; 8846ecce36beSmrg *) 8847ecce36beSmrg # The compiler driver will combine and reorder linker options, 8848ecce36beSmrg # but understands `-z linker_flag'. GCC discards it without `$wl', 8849ecce36beSmrg # but is careful enough not to reorder. 8850ecce36beSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 8851ecce36beSmrg if test "$GCC" = yes; then 8852ecce36beSmrg whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8853ecce36beSmrg else 8854ecce36beSmrg whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8855ecce36beSmrg fi 8856ecce36beSmrg ;; 8857ecce36beSmrg esac 8858ecce36beSmrg link_all_deplibs=yes 8859ecce36beSmrg ;; 8860ecce36beSmrg 8861ecce36beSmrg sunos4*) 8862ecce36beSmrg if test "x$host_vendor" = xsequent; then 8863ecce36beSmrg # Use $CC to link under sequent, because it throws in some extra .o 8864ecce36beSmrg # files that make .init and .fini sections work. 8865ecce36beSmrg archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8866ecce36beSmrg else 8867ecce36beSmrg archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8868ecce36beSmrg fi 8869ecce36beSmrg hardcode_libdir_flag_spec='-L$libdir' 8870ecce36beSmrg hardcode_direct=yes 8871ecce36beSmrg hardcode_minus_L=yes 8872ecce36beSmrg hardcode_shlibpath_var=no 8873ecce36beSmrg ;; 8874ecce36beSmrg 8875ecce36beSmrg sysv4) 8876ecce36beSmrg case $host_vendor in 8877ecce36beSmrg sni) 8878ecce36beSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8879ecce36beSmrg hardcode_direct=yes # is this really true??? 8880ecce36beSmrg ;; 8881ecce36beSmrg siemens) 8882ecce36beSmrg ## LD is ld it makes a PLAMLIB 8883ecce36beSmrg ## CC just makes a GrossModule. 8884ecce36beSmrg archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8885ecce36beSmrg reload_cmds='$CC -r -o $output$reload_objs' 8886ecce36beSmrg hardcode_direct=no 8887ecce36beSmrg ;; 8888ecce36beSmrg motorola) 8889ecce36beSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8890ecce36beSmrg hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8891ecce36beSmrg ;; 8892ecce36beSmrg esac 8893ecce36beSmrg runpath_var='LD_RUN_PATH' 8894ecce36beSmrg hardcode_shlibpath_var=no 8895ecce36beSmrg ;; 8896ecce36beSmrg 8897ecce36beSmrg sysv4.3*) 8898ecce36beSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8899ecce36beSmrg hardcode_shlibpath_var=no 8900ecce36beSmrg export_dynamic_flag_spec='-Bexport' 8901ecce36beSmrg ;; 8902ecce36beSmrg 8903ecce36beSmrg sysv4*MP*) 8904ecce36beSmrg if test -d /usr/nec; then 8905ecce36beSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8906ecce36beSmrg hardcode_shlibpath_var=no 8907ecce36beSmrg runpath_var=LD_RUN_PATH 8908ecce36beSmrg hardcode_runpath_var=yes 8909ecce36beSmrg ld_shlibs=yes 8910ecce36beSmrg fi 8911ecce36beSmrg ;; 8912ecce36beSmrg 8913ecce36beSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8914ecce36beSmrg no_undefined_flag='${wl}-z,text' 8915ecce36beSmrg archive_cmds_need_lc=no 8916ecce36beSmrg hardcode_shlibpath_var=no 8917ecce36beSmrg runpath_var='LD_RUN_PATH' 8918ecce36beSmrg 8919ecce36beSmrg if test "$GCC" = yes; then 8920ecce36beSmrg archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8921ecce36beSmrg archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8922ecce36beSmrg else 8923ecce36beSmrg archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8924ecce36beSmrg archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8925ecce36beSmrg fi 8926ecce36beSmrg ;; 8927ecce36beSmrg 8928ecce36beSmrg sysv5* | sco3.2v5* | sco5v6*) 8929ecce36beSmrg # Note: We can NOT use -z defs as we might desire, because we do not 8930ecce36beSmrg # link with -lc, and that would cause any symbols used from libc to 8931ecce36beSmrg # always be unresolved, which means just about no library would 8932ecce36beSmrg # ever link correctly. If we're not using GNU ld we use -z text 8933ecce36beSmrg # though, which does catch some bad symbols but isn't as heavy-handed 8934ecce36beSmrg # as -z defs. 8935ecce36beSmrg no_undefined_flag='${wl}-z,text' 8936ecce36beSmrg allow_undefined_flag='${wl}-z,nodefs' 8937ecce36beSmrg archive_cmds_need_lc=no 8938ecce36beSmrg hardcode_shlibpath_var=no 8939ecce36beSmrg hardcode_libdir_flag_spec='${wl}-R,$libdir' 8940ecce36beSmrg hardcode_libdir_separator=':' 8941ecce36beSmrg link_all_deplibs=yes 8942ecce36beSmrg export_dynamic_flag_spec='${wl}-Bexport' 8943ecce36beSmrg runpath_var='LD_RUN_PATH' 8944ecce36beSmrg 8945ecce36beSmrg if test "$GCC" = yes; then 8946ecce36beSmrg archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8947ecce36beSmrg archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8948ecce36beSmrg else 8949ecce36beSmrg archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8950ecce36beSmrg archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8951ecce36beSmrg fi 8952ecce36beSmrg ;; 8953ecce36beSmrg 8954ecce36beSmrg uts4*) 8955ecce36beSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8956ecce36beSmrg hardcode_libdir_flag_spec='-L$libdir' 8957ecce36beSmrg hardcode_shlibpath_var=no 8958ecce36beSmrg ;; 8959ecce36beSmrg 8960ecce36beSmrg *) 8961ecce36beSmrg ld_shlibs=no 8962ecce36beSmrg ;; 8963ecce36beSmrg esac 8964ecce36beSmrg 8965ecce36beSmrg if test x$host_vendor = xsni; then 8966ecce36beSmrg case $host in 8967ecce36beSmrg sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8968ecce36beSmrg export_dynamic_flag_spec='${wl}-Blargedynsym' 8969ecce36beSmrg ;; 8970ecce36beSmrg esac 8971ecce36beSmrg fi 8972ecce36beSmrg fi 8973ecce36beSmrg 8974ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 8975ecce36beSmrg$as_echo "$ld_shlibs" >&6; } 8976ecce36beSmrgtest "$ld_shlibs" = no && can_build_shared=no 8977ecce36beSmrg 8978ecce36beSmrgwith_gnu_ld=$with_gnu_ld 8979ecce36beSmrg 8980ecce36beSmrg 8981ecce36beSmrg 8982ecce36beSmrg 8983ecce36beSmrg 8984ecce36beSmrg 8985ecce36beSmrg 8986ecce36beSmrg 8987ecce36beSmrg 8988ecce36beSmrg 8989ecce36beSmrg 8990ecce36beSmrg 8991ecce36beSmrg 8992ecce36beSmrg 8993ecce36beSmrg 8994ecce36beSmrg# 8995ecce36beSmrg# Do we need to explicitly link libc? 8996ecce36beSmrg# 8997ecce36beSmrgcase "x$archive_cmds_need_lc" in 8998ecce36beSmrgx|xyes) 8999ecce36beSmrg # Assume -lc should be added 9000ecce36beSmrg archive_cmds_need_lc=yes 9001ecce36beSmrg 9002ecce36beSmrg if test "$enable_shared" = yes && test "$GCC" = yes; then 9003ecce36beSmrg case $archive_cmds in 9004ecce36beSmrg *'~'*) 9005ecce36beSmrg # FIXME: we may have to deal with multi-command sequences. 9006ecce36beSmrg ;; 9007ecce36beSmrg '$CC '*) 9008ecce36beSmrg # Test whether the compiler implicitly links with -lc since on some 9009ecce36beSmrg # systems, -lgcc has to come before -lc. If gcc already passes -lc 9010ecce36beSmrg # to ld, don't add -lc before -lgcc. 9011ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9012ecce36beSmrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9013ecce36beSmrg $RM conftest* 9014ecce36beSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9015ecce36beSmrg 9016ecce36beSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9017ecce36beSmrg (eval $ac_compile) 2>&5 9018ecce36beSmrg ac_status=$? 9019ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9020ecce36beSmrg test $ac_status = 0; } 2>conftest.err; then 9021ecce36beSmrg soname=conftest 9022ecce36beSmrg lib=conftest 9023ecce36beSmrg libobjs=conftest.$ac_objext 9024ecce36beSmrg deplibs= 9025ecce36beSmrg wl=$lt_prog_compiler_wl 9026ecce36beSmrg pic_flag=$lt_prog_compiler_pic 9027ecce36beSmrg compiler_flags=-v 9028ecce36beSmrg linker_flags=-v 9029ecce36beSmrg verstring= 9030ecce36beSmrg output_objdir=. 9031ecce36beSmrg libname=conftest 9032ecce36beSmrg lt_save_allow_undefined_flag=$allow_undefined_flag 9033ecce36beSmrg allow_undefined_flag= 9034ecce36beSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9035ecce36beSmrg (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9036ecce36beSmrg ac_status=$? 9037ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9038ecce36beSmrg test $ac_status = 0; } 9039ecce36beSmrg then 9040ecce36beSmrg archive_cmds_need_lc=no 9041ecce36beSmrg else 9042ecce36beSmrg archive_cmds_need_lc=yes 9043ecce36beSmrg fi 9044ecce36beSmrg allow_undefined_flag=$lt_save_allow_undefined_flag 9045ecce36beSmrg else 9046ecce36beSmrg cat conftest.err 1>&5 9047ecce36beSmrg fi 9048ecce36beSmrg $RM conftest* 9049ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 9050ecce36beSmrg$as_echo "$archive_cmds_need_lc" >&6; } 9051ecce36beSmrg ;; 9052ecce36beSmrg esac 9053ecce36beSmrg fi 9054ecce36beSmrg ;; 9055ecce36beSmrgesac 9056ecce36beSmrg 9057ecce36beSmrg 9058ecce36beSmrg 9059ecce36beSmrg 9060ecce36beSmrg 9061ecce36beSmrg 9062ecce36beSmrg 9063ecce36beSmrg 9064ecce36beSmrg 9065ecce36beSmrg 9066ecce36beSmrg 9067ecce36beSmrg 9068ecce36beSmrg 9069ecce36beSmrg 9070ecce36beSmrg 9071ecce36beSmrg 9072ecce36beSmrg 9073ecce36beSmrg 9074ecce36beSmrg 9075ecce36beSmrg 9076ecce36beSmrg 9077ecce36beSmrg 9078ecce36beSmrg 9079ecce36beSmrg 9080ecce36beSmrg 9081ecce36beSmrg 9082ecce36beSmrg 9083ecce36beSmrg 9084ecce36beSmrg 9085ecce36beSmrg 9086ecce36beSmrg 9087ecce36beSmrg 9088ecce36beSmrg 9089ecce36beSmrg 9090ecce36beSmrg 9091ecce36beSmrg 9092ecce36beSmrg 9093ecce36beSmrg 9094ecce36beSmrg 9095ecce36beSmrg 9096ecce36beSmrg 9097ecce36beSmrg 9098ecce36beSmrg 9099ecce36beSmrg 9100ecce36beSmrg 9101ecce36beSmrg 9102ecce36beSmrg 9103ecce36beSmrg 9104ecce36beSmrg 9105ecce36beSmrg 9106ecce36beSmrg 9107ecce36beSmrg 9108ecce36beSmrg 9109ecce36beSmrg 9110ecce36beSmrg 9111ecce36beSmrg 9112ecce36beSmrg 9113ecce36beSmrg 9114ecce36beSmrg 9115ecce36beSmrg 9116ecce36beSmrg 9117ecce36beSmrg 9118ecce36beSmrg 9119ecce36beSmrg 9120ecce36beSmrg 9121ecce36beSmrg 9122ecce36beSmrg 9123ecce36beSmrg 9124ecce36beSmrg 9125ecce36beSmrg 9126ecce36beSmrg 9127ecce36beSmrg 9128ecce36beSmrg 9129ecce36beSmrg 9130ecce36beSmrg 9131ecce36beSmrg 9132ecce36beSmrg 9133ecce36beSmrg 9134ecce36beSmrg 9135ecce36beSmrg 9136ecce36beSmrg 9137ecce36beSmrg 9138ecce36beSmrg 9139ecce36beSmrg 9140ecce36beSmrg 9141ecce36beSmrg 9142ecce36beSmrg 9143ecce36beSmrg 9144ecce36beSmrg 9145ecce36beSmrg 9146ecce36beSmrg 9147ecce36beSmrg 9148ecce36beSmrg 9149ecce36beSmrg 9150ecce36beSmrg 9151ecce36beSmrg 9152ecce36beSmrg 9153ecce36beSmrg 9154ecce36beSmrg 9155ecce36beSmrg 9156ecce36beSmrg 9157ecce36beSmrg 9158ecce36beSmrg 9159ecce36beSmrg 9160ecce36beSmrg 9161ecce36beSmrg 9162ecce36beSmrg 9163ecce36beSmrg 9164ecce36beSmrg 9165ecce36beSmrg 9166ecce36beSmrg 9167ecce36beSmrg 9168ecce36beSmrg 9169ecce36beSmrg 9170ecce36beSmrg 9171ecce36beSmrg 9172ecce36beSmrg 9173ecce36beSmrg 9174ecce36beSmrg 9175ecce36beSmrg 9176ecce36beSmrg 9177ecce36beSmrg 9178ecce36beSmrg 9179ecce36beSmrg 9180ecce36beSmrg 9181ecce36beSmrg 9182ecce36beSmrg 9183ecce36beSmrg 9184ecce36beSmrg 9185ecce36beSmrg 9186ecce36beSmrg 9187ecce36beSmrg 9188ecce36beSmrg 9189ecce36beSmrg 9190ecce36beSmrg 9191ecce36beSmrg 9192ecce36beSmrg 9193ecce36beSmrg 9194ecce36beSmrg 9195ecce36beSmrg 9196ecce36beSmrg 9197ecce36beSmrg 9198ecce36beSmrg 9199ecce36beSmrg 9200ecce36beSmrg 9201ecce36beSmrg 9202ecce36beSmrg 9203ecce36beSmrg 9204ecce36beSmrg 9205ecce36beSmrg 9206ecce36beSmrg 9207ecce36beSmrg 9208ecce36beSmrg 9209ecce36beSmrg 9210ecce36beSmrg 9211ecce36beSmrg 9212ecce36beSmrg 9213ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9214ecce36beSmrg$as_echo_n "checking dynamic linker characteristics... " >&6; } 9215ecce36beSmrg 9216ecce36beSmrgif test "$GCC" = yes; then 9217ecce36beSmrg case $host_os in 9218ecce36beSmrg darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9219ecce36beSmrg *) lt_awk_arg="/^libraries:/" ;; 9220ecce36beSmrg esac 9221ecce36beSmrg lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9222ecce36beSmrg if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9223ecce36beSmrg # if the path contains ";" then we assume it to be the separator 9224ecce36beSmrg # otherwise default to the standard path separator (i.e. ":") - it is 9225ecce36beSmrg # assumed that no part of a normal pathname contains ";" but that should 9226ecce36beSmrg # okay in the real world where ";" in dirpaths is itself problematic. 9227ecce36beSmrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9228ecce36beSmrg else 9229ecce36beSmrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9230ecce36beSmrg fi 9231ecce36beSmrg # Ok, now we have the path, separated by spaces, we can step through it 9232ecce36beSmrg # and add multilib dir if necessary. 9233ecce36beSmrg lt_tmp_lt_search_path_spec= 9234ecce36beSmrg lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9235ecce36beSmrg for lt_sys_path in $lt_search_path_spec; do 9236ecce36beSmrg if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9237ecce36beSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9238ecce36beSmrg else 9239ecce36beSmrg test -d "$lt_sys_path" && \ 9240ecce36beSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9241ecce36beSmrg fi 9242ecce36beSmrg done 9243ecce36beSmrg lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9244ecce36beSmrgBEGIN {RS=" "; FS="/|\n";} { 9245ecce36beSmrg lt_foo=""; 9246ecce36beSmrg lt_count=0; 9247ecce36beSmrg for (lt_i = NF; lt_i > 0; lt_i--) { 9248ecce36beSmrg if ($lt_i != "" && $lt_i != ".") { 9249ecce36beSmrg if ($lt_i == "..") { 9250ecce36beSmrg lt_count++; 9251ecce36beSmrg } else { 9252ecce36beSmrg if (lt_count == 0) { 9253ecce36beSmrg lt_foo="/" $lt_i lt_foo; 9254ecce36beSmrg } else { 9255ecce36beSmrg lt_count--; 9256ecce36beSmrg } 9257ecce36beSmrg } 9258ecce36beSmrg } 9259ecce36beSmrg } 9260ecce36beSmrg if (lt_foo != "") { lt_freq[lt_foo]++; } 9261ecce36beSmrg if (lt_freq[lt_foo] == 1) { print lt_foo; } 9262ecce36beSmrg}'` 9263ecce36beSmrg sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9264ecce36beSmrgelse 9265ecce36beSmrg sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9266ecce36beSmrgfi 9267ecce36beSmrglibrary_names_spec= 9268ecce36beSmrglibname_spec='lib$name' 9269ecce36beSmrgsoname_spec= 9270ecce36beSmrgshrext_cmds=".so" 9271ecce36beSmrgpostinstall_cmds= 9272ecce36beSmrgpostuninstall_cmds= 9273ecce36beSmrgfinish_cmds= 9274ecce36beSmrgfinish_eval= 9275ecce36beSmrgshlibpath_var= 9276ecce36beSmrgshlibpath_overrides_runpath=unknown 9277ecce36beSmrgversion_type=none 9278ecce36beSmrgdynamic_linker="$host_os ld.so" 9279ecce36beSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib" 9280ecce36beSmrgneed_lib_prefix=unknown 9281ecce36beSmrghardcode_into_libs=no 9282ecce36beSmrg 9283ecce36beSmrg# when you set need_version to no, make sure it does not cause -set_version 9284ecce36beSmrg# flags to be left without arguments 9285ecce36beSmrgneed_version=unknown 9286ecce36beSmrg 9287ecce36beSmrgcase $host_os in 9288ecce36beSmrgaix3*) 9289ecce36beSmrg version_type=linux 9290ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9291ecce36beSmrg shlibpath_var=LIBPATH 9292ecce36beSmrg 9293ecce36beSmrg # AIX 3 has no versioning support, so we append a major version to the name. 9294ecce36beSmrg soname_spec='${libname}${release}${shared_ext}$major' 9295ecce36beSmrg ;; 9296ecce36beSmrg 9297ecce36beSmrgaix[4-9]*) 9298ecce36beSmrg version_type=linux 9299ecce36beSmrg need_lib_prefix=no 9300ecce36beSmrg need_version=no 9301ecce36beSmrg hardcode_into_libs=yes 9302ecce36beSmrg if test "$host_cpu" = ia64; then 9303ecce36beSmrg # AIX 5 supports IA64 9304ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9305ecce36beSmrg shlibpath_var=LD_LIBRARY_PATH 9306ecce36beSmrg else 9307ecce36beSmrg # With GCC up to 2.95.x, collect2 would create an import file 9308ecce36beSmrg # for dependence libraries. The import file would start with 9309ecce36beSmrg # the line `#! .'. This would cause the generated library to 9310ecce36beSmrg # depend on `.', always an invalid library. This was fixed in 9311ecce36beSmrg # development snapshots of GCC prior to 3.0. 9312ecce36beSmrg case $host_os in 9313ecce36beSmrg aix4 | aix4.[01] | aix4.[01].*) 9314ecce36beSmrg if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9315ecce36beSmrg echo ' yes ' 9316ecce36beSmrg echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9317ecce36beSmrg : 9318ecce36beSmrg else 9319ecce36beSmrg can_build_shared=no 9320ecce36beSmrg fi 9321ecce36beSmrg ;; 9322ecce36beSmrg esac 9323ecce36beSmrg # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9324ecce36beSmrg # soname into executable. Probably we can add versioning support to 9325ecce36beSmrg # collect2, so additional links can be useful in future. 9326ecce36beSmrg if test "$aix_use_runtimelinking" = yes; then 9327ecce36beSmrg # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9328ecce36beSmrg # instead of lib<name>.a to let people know that these are not 9329ecce36beSmrg # typical AIX shared libraries. 9330ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9331ecce36beSmrg else 9332ecce36beSmrg # We preserve .a as extension for shared libraries through AIX4.2 9333ecce36beSmrg # and later when we are not doing run time linking. 9334ecce36beSmrg library_names_spec='${libname}${release}.a $libname.a' 9335ecce36beSmrg soname_spec='${libname}${release}${shared_ext}$major' 9336ecce36beSmrg fi 9337ecce36beSmrg shlibpath_var=LIBPATH 9338ecce36beSmrg fi 9339ecce36beSmrg ;; 9340ecce36beSmrg 9341ecce36beSmrgamigaos*) 9342ecce36beSmrg case $host_cpu in 9343ecce36beSmrg powerpc) 9344ecce36beSmrg # Since July 2007 AmigaOS4 officially supports .so libraries. 9345ecce36beSmrg # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9346ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9347ecce36beSmrg ;; 9348ecce36beSmrg m68k) 9349ecce36beSmrg library_names_spec='$libname.ixlibrary $libname.a' 9350ecce36beSmrg # Create ${libname}_ixlibrary.a entries in /sys/libs. 9351ecce36beSmrg finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 9352ecce36beSmrg ;; 9353ecce36beSmrg esac 9354ecce36beSmrg ;; 9355ecce36beSmrg 9356ecce36beSmrgbeos*) 9357ecce36beSmrg library_names_spec='${libname}${shared_ext}' 9358ecce36beSmrg dynamic_linker="$host_os ld.so" 9359ecce36beSmrg shlibpath_var=LIBRARY_PATH 9360ecce36beSmrg ;; 9361ecce36beSmrg 9362ecce36beSmrgbsdi[45]*) 9363ecce36beSmrg version_type=linux 9364ecce36beSmrg need_version=no 9365ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9366ecce36beSmrg soname_spec='${libname}${release}${shared_ext}$major' 9367ecce36beSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9368ecce36beSmrg shlibpath_var=LD_LIBRARY_PATH 9369ecce36beSmrg sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9370ecce36beSmrg sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9371ecce36beSmrg # the default ld.so.conf also contains /usr/contrib/lib and 9372ecce36beSmrg # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9373ecce36beSmrg # libtool to hard-code these into programs 9374ecce36beSmrg ;; 9375ecce36beSmrg 9376ecce36beSmrgcygwin* | mingw* | pw32* | cegcc*) 9377ecce36beSmrg version_type=windows 9378ecce36beSmrg shrext_cmds=".dll" 9379ecce36beSmrg need_version=no 9380ecce36beSmrg need_lib_prefix=no 9381ecce36beSmrg 9382ecce36beSmrg case $GCC,$host_os in 9383ecce36beSmrg yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9384ecce36beSmrg library_names_spec='$libname.dll.a' 9385ecce36beSmrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 9386ecce36beSmrg postinstall_cmds='base_file=`basename \${file}`~ 9387ecce36beSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9388ecce36beSmrg dldir=$destdir/`dirname \$dlpath`~ 9389ecce36beSmrg test -d \$dldir || mkdir -p \$dldir~ 9390ecce36beSmrg $install_prog $dir/$dlname \$dldir/$dlname~ 9391ecce36beSmrg chmod a+x \$dldir/$dlname~ 9392ecce36beSmrg if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9393ecce36beSmrg eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9394ecce36beSmrg fi' 9395ecce36beSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9396ecce36beSmrg dlpath=$dir/\$dldll~ 9397ecce36beSmrg $RM \$dlpath' 9398ecce36beSmrg shlibpath_overrides_runpath=yes 9399ecce36beSmrg 9400ecce36beSmrg case $host_os in 9401ecce36beSmrg cygwin*) 9402ecce36beSmrg # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9403ecce36beSmrg soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9404ecce36beSmrg sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9405ecce36beSmrg ;; 9406ecce36beSmrg mingw* | cegcc*) 9407ecce36beSmrg # MinGW DLLs use traditional 'lib' prefix 9408ecce36beSmrg soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9409ecce36beSmrg sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9410ecce36beSmrg if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9411ecce36beSmrg # It is most probably a Windows format PATH printed by 9412ecce36beSmrg # mingw gcc, but we are running on Cygwin. Gcc prints its search 9413ecce36beSmrg # path with ; separators, and with drive letters. We can handle the 9414ecce36beSmrg # drive letters (cygwin fileutils understands them), so leave them, 9415ecce36beSmrg # especially as we might pass files found there to a mingw objdump, 9416ecce36beSmrg # which wouldn't understand a cygwinified path. Ahh. 9417ecce36beSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9418ecce36beSmrg else 9419ecce36beSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9420ecce36beSmrg fi 9421ecce36beSmrg ;; 9422ecce36beSmrg pw32*) 9423ecce36beSmrg # pw32 DLLs use 'pw' prefix rather than 'lib' 9424ecce36beSmrg library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9425ecce36beSmrg ;; 9426ecce36beSmrg esac 9427ecce36beSmrg ;; 9428ecce36beSmrg 9429ecce36beSmrg *) 9430ecce36beSmrg library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9431ecce36beSmrg ;; 9432ecce36beSmrg esac 9433ecce36beSmrg dynamic_linker='Win32 ld.exe' 9434ecce36beSmrg # FIXME: first we should search . and the directory the executable is in 9435ecce36beSmrg shlibpath_var=PATH 9436ecce36beSmrg ;; 9437ecce36beSmrg 9438ecce36beSmrgdarwin* | rhapsody*) 9439ecce36beSmrg dynamic_linker="$host_os dyld" 9440ecce36beSmrg version_type=darwin 9441ecce36beSmrg need_lib_prefix=no 9442ecce36beSmrg need_version=no 9443ecce36beSmrg library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9444ecce36beSmrg soname_spec='${libname}${release}${major}$shared_ext' 9445ecce36beSmrg shlibpath_overrides_runpath=yes 9446ecce36beSmrg shlibpath_var=DYLD_LIBRARY_PATH 9447ecce36beSmrg shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9448ecce36beSmrg 9449ecce36beSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9450ecce36beSmrg sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9451ecce36beSmrg ;; 9452ecce36beSmrg 9453ecce36beSmrgdgux*) 9454ecce36beSmrg version_type=linux 9455ecce36beSmrg need_lib_prefix=no 9456ecce36beSmrg need_version=no 9457ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9458ecce36beSmrg soname_spec='${libname}${release}${shared_ext}$major' 9459ecce36beSmrg shlibpath_var=LD_LIBRARY_PATH 9460ecce36beSmrg ;; 9461ecce36beSmrg 9462ecce36beSmrgfreebsd1*) 9463ecce36beSmrg dynamic_linker=no 9464ecce36beSmrg ;; 9465ecce36beSmrg 9466ecce36beSmrgfreebsd* | dragonfly*) 9467ecce36beSmrg # DragonFly does not have aout. When/if they implement a new 9468ecce36beSmrg # versioning mechanism, adjust this. 9469ecce36beSmrg if test -x /usr/bin/objformat; then 9470ecce36beSmrg objformat=`/usr/bin/objformat` 9471ecce36beSmrg else 9472ecce36beSmrg case $host_os in 9473ecce36beSmrg freebsd[123]*) objformat=aout ;; 9474ecce36beSmrg *) objformat=elf ;; 9475ecce36beSmrg esac 9476ecce36beSmrg fi 9477ecce36beSmrg version_type=freebsd-$objformat 9478ecce36beSmrg case $version_type in 9479ecce36beSmrg freebsd-elf*) 9480ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9481ecce36beSmrg need_version=no 9482ecce36beSmrg need_lib_prefix=no 9483ecce36beSmrg ;; 9484ecce36beSmrg freebsd-*) 9485ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9486ecce36beSmrg need_version=yes 9487ecce36beSmrg ;; 9488ecce36beSmrg esac 9489ecce36beSmrg shlibpath_var=LD_LIBRARY_PATH 9490ecce36beSmrg case $host_os in 9491ecce36beSmrg freebsd2*) 9492ecce36beSmrg shlibpath_overrides_runpath=yes 9493ecce36beSmrg ;; 9494ecce36beSmrg freebsd3.[01]* | freebsdelf3.[01]*) 9495ecce36beSmrg shlibpath_overrides_runpath=yes 9496ecce36beSmrg hardcode_into_libs=yes 9497ecce36beSmrg ;; 9498ecce36beSmrg freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9499ecce36beSmrg freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9500ecce36beSmrg shlibpath_overrides_runpath=no 9501ecce36beSmrg hardcode_into_libs=yes 9502ecce36beSmrg ;; 9503ecce36beSmrg *) # from 4.6 on, and DragonFly 9504ecce36beSmrg shlibpath_overrides_runpath=yes 9505ecce36beSmrg hardcode_into_libs=yes 9506ecce36beSmrg ;; 9507ecce36beSmrg esac 9508ecce36beSmrg ;; 9509ecce36beSmrg 9510ecce36beSmrggnu*) 9511ecce36beSmrg version_type=linux 9512ecce36beSmrg need_lib_prefix=no 9513ecce36beSmrg need_version=no 9514ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9515ecce36beSmrg soname_spec='${libname}${release}${shared_ext}$major' 9516ecce36beSmrg shlibpath_var=LD_LIBRARY_PATH 9517ecce36beSmrg hardcode_into_libs=yes 9518ecce36beSmrg ;; 9519ecce36beSmrg 9520ecce36beSmrghpux9* | hpux10* | hpux11*) 9521ecce36beSmrg # Give a soname corresponding to the major version so that dld.sl refuses to 9522ecce36beSmrg # link against other versions. 9523ecce36beSmrg version_type=sunos 9524ecce36beSmrg need_lib_prefix=no 9525ecce36beSmrg need_version=no 9526ecce36beSmrg case $host_cpu in 9527ecce36beSmrg ia64*) 9528ecce36beSmrg shrext_cmds='.so' 9529ecce36beSmrg hardcode_into_libs=yes 9530ecce36beSmrg dynamic_linker="$host_os dld.so" 9531ecce36beSmrg shlibpath_var=LD_LIBRARY_PATH 9532ecce36beSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9533ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9534ecce36beSmrg soname_spec='${libname}${release}${shared_ext}$major' 9535ecce36beSmrg if test "X$HPUX_IA64_MODE" = X32; then 9536ecce36beSmrg sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9537ecce36beSmrg else 9538ecce36beSmrg sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9539ecce36beSmrg fi 9540ecce36beSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9541ecce36beSmrg ;; 9542ecce36beSmrg hppa*64*) 9543ecce36beSmrg shrext_cmds='.sl' 9544ecce36beSmrg hardcode_into_libs=yes 9545ecce36beSmrg dynamic_linker="$host_os dld.sl" 9546ecce36beSmrg shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9547ecce36beSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9548ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9549ecce36beSmrg soname_spec='${libname}${release}${shared_ext}$major' 9550ecce36beSmrg sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9551ecce36beSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9552ecce36beSmrg ;; 9553ecce36beSmrg *) 9554ecce36beSmrg shrext_cmds='.sl' 9555ecce36beSmrg dynamic_linker="$host_os dld.sl" 9556ecce36beSmrg shlibpath_var=SHLIB_PATH 9557ecce36beSmrg shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9558ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9559ecce36beSmrg soname_spec='${libname}${release}${shared_ext}$major' 9560ecce36beSmrg ;; 9561ecce36beSmrg esac 9562ecce36beSmrg # HP-UX runs *really* slowly unless shared libraries are mode 555. 9563ecce36beSmrg postinstall_cmds='chmod 555 $lib' 9564ecce36beSmrg ;; 9565ecce36beSmrg 9566ecce36beSmrginterix[3-9]*) 9567ecce36beSmrg version_type=linux 9568ecce36beSmrg need_lib_prefix=no 9569ecce36beSmrg need_version=no 9570ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9571ecce36beSmrg soname_spec='${libname}${release}${shared_ext}$major' 9572ecce36beSmrg dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9573ecce36beSmrg shlibpath_var=LD_LIBRARY_PATH 9574ecce36beSmrg shlibpath_overrides_runpath=no 9575ecce36beSmrg hardcode_into_libs=yes 9576ecce36beSmrg ;; 9577ecce36beSmrg 9578ecce36beSmrgirix5* | irix6* | nonstopux*) 9579ecce36beSmrg case $host_os in 9580ecce36beSmrg nonstopux*) version_type=nonstopux ;; 9581ecce36beSmrg *) 9582ecce36beSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 9583ecce36beSmrg version_type=linux 9584ecce36beSmrg else 9585ecce36beSmrg version_type=irix 9586ecce36beSmrg fi ;; 9587ecce36beSmrg esac 9588ecce36beSmrg need_lib_prefix=no 9589ecce36beSmrg need_version=no 9590ecce36beSmrg soname_spec='${libname}${release}${shared_ext}$major' 9591ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9592ecce36beSmrg case $host_os in 9593ecce36beSmrg irix5* | nonstopux*) 9594ecce36beSmrg libsuff= shlibsuff= 9595ecce36beSmrg ;; 9596ecce36beSmrg *) 9597ecce36beSmrg case $LD in # libtool.m4 will add one of these switches to LD 9598ecce36beSmrg *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9599ecce36beSmrg libsuff= shlibsuff= libmagic=32-bit;; 9600ecce36beSmrg *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9601ecce36beSmrg libsuff=32 shlibsuff=N32 libmagic=N32;; 9602ecce36beSmrg *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9603ecce36beSmrg libsuff=64 shlibsuff=64 libmagic=64-bit;; 9604ecce36beSmrg *) libsuff= shlibsuff= libmagic=never-match;; 9605ecce36beSmrg esac 9606ecce36beSmrg ;; 9607ecce36beSmrg esac 9608ecce36beSmrg shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9609ecce36beSmrg shlibpath_overrides_runpath=no 9610ecce36beSmrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9611ecce36beSmrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9612ecce36beSmrg hardcode_into_libs=yes 9613ecce36beSmrg ;; 9614ecce36beSmrg 9615ecce36beSmrg# No shared lib support for Linux oldld, aout, or coff. 9616ecce36beSmrglinux*oldld* | linux*aout* | linux*coff*) 9617ecce36beSmrg dynamic_linker=no 9618ecce36beSmrg ;; 9619ecce36beSmrg 9620ecce36beSmrg# This must be Linux ELF. 9621ecce36beSmrglinux* | k*bsd*-gnu) 9622ecce36beSmrg version_type=linux 9623ecce36beSmrg need_lib_prefix=no 9624ecce36beSmrg need_version=no 9625ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9626ecce36beSmrg soname_spec='${libname}${release}${shared_ext}$major' 9627ecce36beSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9628ecce36beSmrg shlibpath_var=LD_LIBRARY_PATH 9629ecce36beSmrg shlibpath_overrides_runpath=no 9630ecce36beSmrg # Some binutils ld are patched to set DT_RUNPATH 9631ecce36beSmrg save_LDFLAGS=$LDFLAGS 9632ecce36beSmrg save_libdir=$libdir 9633ecce36beSmrg eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9634ecce36beSmrg LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9635ecce36beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9636ecce36beSmrg/* end confdefs.h. */ 9637ecce36beSmrg 9638ecce36beSmrgint 9639ecce36beSmrgmain () 9640ecce36beSmrg{ 9641ecce36beSmrg 9642ecce36beSmrg ; 9643ecce36beSmrg return 0; 9644ecce36beSmrg} 9645ecce36beSmrg_ACEOF 9646ecce36beSmrgif ac_fn_c_try_link "$LINENO"; then : 9647ecce36beSmrg if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 9648ecce36beSmrg shlibpath_overrides_runpath=yes 9649ecce36beSmrgfi 9650ecce36beSmrgfi 9651ecce36beSmrgrm -f core conftest.err conftest.$ac_objext \ 9652ecce36beSmrg conftest$ac_exeext conftest.$ac_ext 9653ecce36beSmrg LDFLAGS=$save_LDFLAGS 9654ecce36beSmrg libdir=$save_libdir 9655ecce36beSmrg 9656ecce36beSmrg # This implies no fast_install, which is unacceptable. 9657ecce36beSmrg # Some rework will be needed to allow for fast_install 9658ecce36beSmrg # before this can be enabled. 9659ecce36beSmrg hardcode_into_libs=yes 9660ecce36beSmrg 9661ecce36beSmrg # Append ld.so.conf contents to the search path 9662ecce36beSmrg if test -f /etc/ld.so.conf; then 9663ecce36beSmrg lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9664ecce36beSmrg sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9665ecce36beSmrg fi 9666ecce36beSmrg 9667ecce36beSmrg # We used to test for /lib/ld.so.1 and disable shared libraries on 9668ecce36beSmrg # powerpc, because MkLinux only supported shared libraries with the 9669ecce36beSmrg # GNU dynamic linker. Since this was broken with cross compilers, 9670ecce36beSmrg # most powerpc-linux boxes support dynamic linking these days and 9671ecce36beSmrg # people can always --disable-shared, the test was removed, and we 9672ecce36beSmrg # assume the GNU/Linux dynamic linker is in use. 9673ecce36beSmrg dynamic_linker='GNU/Linux ld.so' 9674ecce36beSmrg ;; 9675ecce36beSmrg 9676ecce36beSmrgnetbsdelf*-gnu) 9677ecce36beSmrg version_type=linux 9678ecce36beSmrg need_lib_prefix=no 9679ecce36beSmrg need_version=no 9680ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9681ecce36beSmrg soname_spec='${libname}${release}${shared_ext}$major' 9682ecce36beSmrg shlibpath_var=LD_LIBRARY_PATH 9683ecce36beSmrg shlibpath_overrides_runpath=no 9684ecce36beSmrg hardcode_into_libs=yes 9685ecce36beSmrg dynamic_linker='NetBSD ld.elf_so' 9686ecce36beSmrg ;; 9687ecce36beSmrg 9688ecce36beSmrgnetbsd*) 9689ecce36beSmrg version_type=sunos 9690ecce36beSmrg need_lib_prefix=no 9691ecce36beSmrg need_version=no 9692ecce36beSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9693ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9694ecce36beSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9695ecce36beSmrg dynamic_linker='NetBSD (a.out) ld.so' 9696ecce36beSmrg else 9697ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9698ecce36beSmrg soname_spec='${libname}${release}${shared_ext}$major' 9699ecce36beSmrg dynamic_linker='NetBSD ld.elf_so' 9700ecce36beSmrg fi 9701ecce36beSmrg shlibpath_var=LD_LIBRARY_PATH 9702ecce36beSmrg shlibpath_overrides_runpath=yes 9703ecce36beSmrg hardcode_into_libs=yes 9704ecce36beSmrg ;; 9705ecce36beSmrg 9706ecce36beSmrgnewsos6) 9707ecce36beSmrg version_type=linux 9708ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9709ecce36beSmrg shlibpath_var=LD_LIBRARY_PATH 9710ecce36beSmrg shlibpath_overrides_runpath=yes 9711ecce36beSmrg ;; 9712ecce36beSmrg 9713ecce36beSmrg*nto* | *qnx*) 9714ecce36beSmrg version_type=qnx 9715ecce36beSmrg need_lib_prefix=no 9716ecce36beSmrg need_version=no 9717ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9718ecce36beSmrg soname_spec='${libname}${release}${shared_ext}$major' 9719ecce36beSmrg shlibpath_var=LD_LIBRARY_PATH 9720ecce36beSmrg shlibpath_overrides_runpath=no 9721ecce36beSmrg hardcode_into_libs=yes 9722ecce36beSmrg dynamic_linker='ldqnx.so' 9723ecce36beSmrg ;; 9724ecce36beSmrg 9725ecce36beSmrgopenbsd*) 9726ecce36beSmrg version_type=sunos 9727ecce36beSmrg sys_lib_dlsearch_path_spec="/usr/lib" 9728ecce36beSmrg need_lib_prefix=no 9729ecce36beSmrg # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9730ecce36beSmrg case $host_os in 9731ecce36beSmrg openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9732ecce36beSmrg *) need_version=no ;; 9733ecce36beSmrg esac 9734ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9735ecce36beSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9736ecce36beSmrg shlibpath_var=LD_LIBRARY_PATH 9737ecce36beSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9738ecce36beSmrg case $host_os in 9739ecce36beSmrg openbsd2.[89] | openbsd2.[89].*) 9740ecce36beSmrg shlibpath_overrides_runpath=no 9741ecce36beSmrg ;; 9742ecce36beSmrg *) 9743ecce36beSmrg shlibpath_overrides_runpath=yes 9744ecce36beSmrg ;; 9745ecce36beSmrg esac 9746ecce36beSmrg else 9747ecce36beSmrg shlibpath_overrides_runpath=yes 9748ecce36beSmrg fi 9749ecce36beSmrg ;; 9750ecce36beSmrg 9751ecce36beSmrgos2*) 9752ecce36beSmrg libname_spec='$name' 9753ecce36beSmrg shrext_cmds=".dll" 9754ecce36beSmrg need_lib_prefix=no 9755ecce36beSmrg library_names_spec='$libname${shared_ext} $libname.a' 9756ecce36beSmrg dynamic_linker='OS/2 ld.exe' 9757ecce36beSmrg shlibpath_var=LIBPATH 9758ecce36beSmrg ;; 9759ecce36beSmrg 9760ecce36beSmrgosf3* | osf4* | osf5*) 9761ecce36beSmrg version_type=osf 9762ecce36beSmrg need_lib_prefix=no 9763ecce36beSmrg need_version=no 9764ecce36beSmrg soname_spec='${libname}${release}${shared_ext}$major' 9765ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9766ecce36beSmrg shlibpath_var=LD_LIBRARY_PATH 9767ecce36beSmrg sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9768ecce36beSmrg sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9769ecce36beSmrg ;; 9770ecce36beSmrg 9771ecce36beSmrgrdos*) 9772ecce36beSmrg dynamic_linker=no 9773ecce36beSmrg ;; 9774ecce36beSmrg 9775ecce36beSmrgsolaris*) 9776ecce36beSmrg version_type=linux 9777ecce36beSmrg need_lib_prefix=no 9778ecce36beSmrg need_version=no 9779ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9780ecce36beSmrg soname_spec='${libname}${release}${shared_ext}$major' 9781ecce36beSmrg shlibpath_var=LD_LIBRARY_PATH 9782ecce36beSmrg shlibpath_overrides_runpath=yes 9783ecce36beSmrg hardcode_into_libs=yes 9784ecce36beSmrg # ldd complains unless libraries are executable 9785ecce36beSmrg postinstall_cmds='chmod +x $lib' 9786ecce36beSmrg ;; 9787ecce36beSmrg 9788ecce36beSmrgsunos4*) 9789ecce36beSmrg version_type=sunos 9790ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9791ecce36beSmrg finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9792ecce36beSmrg shlibpath_var=LD_LIBRARY_PATH 9793ecce36beSmrg shlibpath_overrides_runpath=yes 9794ecce36beSmrg if test "$with_gnu_ld" = yes; then 9795ecce36beSmrg need_lib_prefix=no 9796ecce36beSmrg fi 9797ecce36beSmrg need_version=yes 9798ecce36beSmrg ;; 9799ecce36beSmrg 9800ecce36beSmrgsysv4 | sysv4.3*) 9801ecce36beSmrg version_type=linux 9802ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9803ecce36beSmrg soname_spec='${libname}${release}${shared_ext}$major' 9804ecce36beSmrg shlibpath_var=LD_LIBRARY_PATH 9805ecce36beSmrg case $host_vendor in 9806ecce36beSmrg sni) 9807ecce36beSmrg shlibpath_overrides_runpath=no 9808ecce36beSmrg need_lib_prefix=no 9809ecce36beSmrg runpath_var=LD_RUN_PATH 9810ecce36beSmrg ;; 9811ecce36beSmrg siemens) 9812ecce36beSmrg need_lib_prefix=no 9813ecce36beSmrg ;; 9814ecce36beSmrg motorola) 9815ecce36beSmrg need_lib_prefix=no 9816ecce36beSmrg need_version=no 9817ecce36beSmrg shlibpath_overrides_runpath=no 9818ecce36beSmrg sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9819ecce36beSmrg ;; 9820ecce36beSmrg esac 9821ecce36beSmrg ;; 9822ecce36beSmrg 9823ecce36beSmrgsysv4*MP*) 9824ecce36beSmrg if test -d /usr/nec ;then 9825ecce36beSmrg version_type=linux 9826ecce36beSmrg library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9827ecce36beSmrg soname_spec='$libname${shared_ext}.$major' 9828ecce36beSmrg shlibpath_var=LD_LIBRARY_PATH 9829ecce36beSmrg fi 9830ecce36beSmrg ;; 9831ecce36beSmrg 9832ecce36beSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9833ecce36beSmrg version_type=freebsd-elf 9834ecce36beSmrg need_lib_prefix=no 9835ecce36beSmrg need_version=no 9836ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9837ecce36beSmrg soname_spec='${libname}${release}${shared_ext}$major' 9838ecce36beSmrg shlibpath_var=LD_LIBRARY_PATH 9839ecce36beSmrg shlibpath_overrides_runpath=yes 9840ecce36beSmrg hardcode_into_libs=yes 9841ecce36beSmrg if test "$with_gnu_ld" = yes; then 9842ecce36beSmrg sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9843ecce36beSmrg else 9844ecce36beSmrg sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9845ecce36beSmrg case $host_os in 9846ecce36beSmrg sco3.2v5*) 9847ecce36beSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9848ecce36beSmrg ;; 9849ecce36beSmrg esac 9850ecce36beSmrg fi 9851ecce36beSmrg sys_lib_dlsearch_path_spec='/usr/lib' 9852ecce36beSmrg ;; 9853ecce36beSmrg 9854ecce36beSmrgtpf*) 9855ecce36beSmrg # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9856ecce36beSmrg version_type=linux 9857ecce36beSmrg need_lib_prefix=no 9858ecce36beSmrg need_version=no 9859ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9860ecce36beSmrg shlibpath_var=LD_LIBRARY_PATH 9861ecce36beSmrg shlibpath_overrides_runpath=no 9862ecce36beSmrg hardcode_into_libs=yes 9863ecce36beSmrg ;; 9864ecce36beSmrg 9865ecce36beSmrguts4*) 9866ecce36beSmrg version_type=linux 9867ecce36beSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9868ecce36beSmrg soname_spec='${libname}${release}${shared_ext}$major' 9869ecce36beSmrg shlibpath_var=LD_LIBRARY_PATH 9870ecce36beSmrg ;; 9871ecce36beSmrg 9872ecce36beSmrg*) 9873ecce36beSmrg dynamic_linker=no 9874ecce36beSmrg ;; 9875ecce36beSmrgesac 9876ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 9877ecce36beSmrg$as_echo "$dynamic_linker" >&6; } 9878ecce36beSmrgtest "$dynamic_linker" = no && can_build_shared=no 9879ecce36beSmrg 9880ecce36beSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9881ecce36beSmrgif test "$GCC" = yes; then 9882ecce36beSmrg variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9883ecce36beSmrgfi 9884ecce36beSmrg 9885ecce36beSmrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9886ecce36beSmrg sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9887ecce36beSmrgfi 9888ecce36beSmrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9889ecce36beSmrg sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9890ecce36beSmrgfi 9891ecce36beSmrg 9892ecce36beSmrg 9893ecce36beSmrg 9894ecce36beSmrg 9895ecce36beSmrg 9896ecce36beSmrg 9897ecce36beSmrg 9898ecce36beSmrg 9899ecce36beSmrg 9900ecce36beSmrg 9901ecce36beSmrg 9902ecce36beSmrg 9903ecce36beSmrg 9904ecce36beSmrg 9905ecce36beSmrg 9906ecce36beSmrg 9907ecce36beSmrg 9908ecce36beSmrg 9909ecce36beSmrg 9910ecce36beSmrg 9911ecce36beSmrg 9912ecce36beSmrg 9913ecce36beSmrg 9914ecce36beSmrg 9915ecce36beSmrg 9916ecce36beSmrg 9917ecce36beSmrg 9918ecce36beSmrg 9919ecce36beSmrg 9920ecce36beSmrg 9921ecce36beSmrg 9922ecce36beSmrg 9923ecce36beSmrg 9924ecce36beSmrg 9925ecce36beSmrg 9926ecce36beSmrg 9927ecce36beSmrg 9928ecce36beSmrg 9929ecce36beSmrg 9930ecce36beSmrg 9931ecce36beSmrg 9932ecce36beSmrg 9933ecce36beSmrg 9934ecce36beSmrg 9935ecce36beSmrg 9936ecce36beSmrg 9937ecce36beSmrg 9938ecce36beSmrg 9939ecce36beSmrg 9940ecce36beSmrg 9941ecce36beSmrg 9942ecce36beSmrg 9943ecce36beSmrg 9944ecce36beSmrg 9945ecce36beSmrg 9946ecce36beSmrg 9947ecce36beSmrg 9948ecce36beSmrg 9949ecce36beSmrg 9950ecce36beSmrg 9951ecce36beSmrg 9952ecce36beSmrg 9953ecce36beSmrg 9954ecce36beSmrg 9955ecce36beSmrg 9956ecce36beSmrg 9957ecce36beSmrg 9958ecce36beSmrg 9959ecce36beSmrg 9960ecce36beSmrg 9961ecce36beSmrg 9962ecce36beSmrg 9963ecce36beSmrg 9964ecce36beSmrg 9965ecce36beSmrg 9966ecce36beSmrg 9967ecce36beSmrg 9968ecce36beSmrg 9969ecce36beSmrg 9970ecce36beSmrg 9971ecce36beSmrg 9972ecce36beSmrg 9973ecce36beSmrg 9974ecce36beSmrg 9975ecce36beSmrg 9976ecce36beSmrg 9977ecce36beSmrg 9978ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 9979ecce36beSmrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9980ecce36beSmrghardcode_action= 9981ecce36beSmrgif test -n "$hardcode_libdir_flag_spec" || 9982ecce36beSmrg test -n "$runpath_var" || 9983ecce36beSmrg test "X$hardcode_automatic" = "Xyes" ; then 9984ecce36beSmrg 9985ecce36beSmrg # We can hardcode non-existent directories. 9986ecce36beSmrg if test "$hardcode_direct" != no && 9987ecce36beSmrg # If the only mechanism to avoid hardcoding is shlibpath_var, we 9988ecce36beSmrg # have to relink, otherwise we might link with an installed library 9989ecce36beSmrg # when we should be linking with a yet-to-be-installed one 9990ecce36beSmrg ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 9991ecce36beSmrg test "$hardcode_minus_L" != no; then 9992ecce36beSmrg # Linking always hardcodes the temporary library directory. 9993ecce36beSmrg hardcode_action=relink 9994ecce36beSmrg else 9995ecce36beSmrg # We can link without hardcoding, and we can hardcode nonexisting dirs. 9996ecce36beSmrg hardcode_action=immediate 9997ecce36beSmrg fi 9998ecce36beSmrgelse 9999ecce36beSmrg # We cannot hardcode anything, or else we can only hardcode existing 10000ecce36beSmrg # directories. 10001ecce36beSmrg hardcode_action=unsupported 10002ecce36beSmrgfi 10003ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10004ecce36beSmrg$as_echo "$hardcode_action" >&6; } 10005ecce36beSmrg 10006ecce36beSmrgif test "$hardcode_action" = relink || 10007ecce36beSmrg test "$inherit_rpath" = yes; then 10008ecce36beSmrg # Fast installation is not supported 10009ecce36beSmrg enable_fast_install=no 10010ecce36beSmrgelif test "$shlibpath_overrides_runpath" = yes || 10011ecce36beSmrg test "$enable_shared" = no; then 10012ecce36beSmrg # Fast installation is not necessary 10013ecce36beSmrg enable_fast_install=needless 10014ecce36beSmrgfi 10015ecce36beSmrg 10016ecce36beSmrg 10017ecce36beSmrg 10018ecce36beSmrg 10019ecce36beSmrg 10020ecce36beSmrg 10021ecce36beSmrg if test "x$enable_dlopen" != xyes; then 10022ecce36beSmrg enable_dlopen=unknown 10023ecce36beSmrg enable_dlopen_self=unknown 10024ecce36beSmrg enable_dlopen_self_static=unknown 10025ecce36beSmrgelse 10026ecce36beSmrg lt_cv_dlopen=no 10027ecce36beSmrg lt_cv_dlopen_libs= 10028ecce36beSmrg 10029ecce36beSmrg case $host_os in 10030ecce36beSmrg beos*) 10031ecce36beSmrg lt_cv_dlopen="load_add_on" 10032ecce36beSmrg lt_cv_dlopen_libs= 10033ecce36beSmrg lt_cv_dlopen_self=yes 10034ecce36beSmrg ;; 10035ecce36beSmrg 10036ecce36beSmrg mingw* | pw32* | cegcc*) 10037ecce36beSmrg lt_cv_dlopen="LoadLibrary" 10038ecce36beSmrg lt_cv_dlopen_libs= 10039ecce36beSmrg ;; 10040ecce36beSmrg 10041ecce36beSmrg cygwin*) 10042ecce36beSmrg lt_cv_dlopen="dlopen" 10043ecce36beSmrg lt_cv_dlopen_libs= 10044ecce36beSmrg ;; 10045ecce36beSmrg 10046ecce36beSmrg darwin*) 10047ecce36beSmrg # if libdl is installed we need to link against it 10048ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10049ecce36beSmrg$as_echo_n "checking for dlopen in -ldl... " >&6; } 10050ecce36beSmrgif test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10051ecce36beSmrg $as_echo_n "(cached) " >&6 10052ecce36beSmrgelse 10053ecce36beSmrg ac_check_lib_save_LIBS=$LIBS 10054ecce36beSmrgLIBS="-ldl $LIBS" 10055ecce36beSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 10056ecce36beSmrg/* end confdefs.h. */ 10057ecce36beSmrg 10058ecce36beSmrg/* Override any GCC internal prototype to avoid an error. 10059ecce36beSmrg Use char because int might match the return type of a GCC 10060ecce36beSmrg builtin and then its argument prototype would still apply. */ 10061ecce36beSmrg#ifdef __cplusplus 10062ecce36beSmrgextern "C" 10063ecce36beSmrg#endif 10064ecce36beSmrgchar dlopen (); 10065ecce36beSmrgint 10066ecce36beSmrgmain () 10067ecce36beSmrg{ 10068ecce36beSmrgreturn dlopen (); 10069ecce36beSmrg ; 10070ecce36beSmrg return 0; 10071ecce36beSmrg} 10072ecce36beSmrg_ACEOF 10073ecce36beSmrgif ac_fn_c_try_link "$LINENO"; then : 10074ecce36beSmrg ac_cv_lib_dl_dlopen=yes 10075ecce36beSmrgelse 10076ecce36beSmrg ac_cv_lib_dl_dlopen=no 10077ecce36beSmrgfi 10078ecce36beSmrgrm -f core conftest.err conftest.$ac_objext \ 10079ecce36beSmrg conftest$ac_exeext conftest.$ac_ext 10080ecce36beSmrgLIBS=$ac_check_lib_save_LIBS 10081ecce36beSmrgfi 10082ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10083ecce36beSmrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10084ecce36beSmrgif test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10085ecce36beSmrg lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10086ecce36beSmrgelse 10087ecce36beSmrg 10088ecce36beSmrg lt_cv_dlopen="dyld" 10089ecce36beSmrg lt_cv_dlopen_libs= 10090ecce36beSmrg lt_cv_dlopen_self=yes 10091ecce36beSmrg 10092ecce36beSmrgfi 10093ecce36beSmrg 10094ecce36beSmrg ;; 10095ecce36beSmrg 10096ecce36beSmrg *) 10097ecce36beSmrg ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10098ecce36beSmrgif test "x$ac_cv_func_shl_load" = x""yes; then : 10099ecce36beSmrg lt_cv_dlopen="shl_load" 10100ecce36beSmrgelse 10101ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10102ecce36beSmrg$as_echo_n "checking for shl_load in -ldld... " >&6; } 10103ecce36beSmrgif test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10104ecce36beSmrg $as_echo_n "(cached) " >&6 10105ecce36beSmrgelse 10106ecce36beSmrg ac_check_lib_save_LIBS=$LIBS 10107ecce36beSmrgLIBS="-ldld $LIBS" 10108ecce36beSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 10109ecce36beSmrg/* end confdefs.h. */ 10110ecce36beSmrg 10111ecce36beSmrg/* Override any GCC internal prototype to avoid an error. 10112ecce36beSmrg Use char because int might match the return type of a GCC 10113ecce36beSmrg builtin and then its argument prototype would still apply. */ 10114ecce36beSmrg#ifdef __cplusplus 10115ecce36beSmrgextern "C" 10116ecce36beSmrg#endif 10117ecce36beSmrgchar shl_load (); 10118ecce36beSmrgint 10119ecce36beSmrgmain () 10120ecce36beSmrg{ 10121ecce36beSmrgreturn shl_load (); 10122ecce36beSmrg ; 10123ecce36beSmrg return 0; 10124ecce36beSmrg} 10125ecce36beSmrg_ACEOF 10126ecce36beSmrgif ac_fn_c_try_link "$LINENO"; then : 10127ecce36beSmrg ac_cv_lib_dld_shl_load=yes 10128ecce36beSmrgelse 10129ecce36beSmrg ac_cv_lib_dld_shl_load=no 10130ecce36beSmrgfi 10131ecce36beSmrgrm -f core conftest.err conftest.$ac_objext \ 10132ecce36beSmrg conftest$ac_exeext conftest.$ac_ext 10133ecce36beSmrgLIBS=$ac_check_lib_save_LIBS 10134ecce36beSmrgfi 10135ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10136ecce36beSmrg$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10137ecce36beSmrgif test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10138ecce36beSmrg lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10139ecce36beSmrgelse 10140ecce36beSmrg ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10141ecce36beSmrgif test "x$ac_cv_func_dlopen" = x""yes; then : 10142ecce36beSmrg lt_cv_dlopen="dlopen" 10143ecce36beSmrgelse 10144ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10145ecce36beSmrg$as_echo_n "checking for dlopen in -ldl... " >&6; } 10146ecce36beSmrgif test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10147ecce36beSmrg $as_echo_n "(cached) " >&6 10148ecce36beSmrgelse 10149ecce36beSmrg ac_check_lib_save_LIBS=$LIBS 10150ecce36beSmrgLIBS="-ldl $LIBS" 10151ecce36beSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 10152ecce36beSmrg/* end confdefs.h. */ 10153ecce36beSmrg 10154ecce36beSmrg/* Override any GCC internal prototype to avoid an error. 10155ecce36beSmrg Use char because int might match the return type of a GCC 10156ecce36beSmrg builtin and then its argument prototype would still apply. */ 10157ecce36beSmrg#ifdef __cplusplus 10158ecce36beSmrgextern "C" 10159ecce36beSmrg#endif 10160ecce36beSmrgchar dlopen (); 10161ecce36beSmrgint 10162ecce36beSmrgmain () 10163ecce36beSmrg{ 10164ecce36beSmrgreturn dlopen (); 10165ecce36beSmrg ; 10166ecce36beSmrg return 0; 10167ecce36beSmrg} 10168ecce36beSmrg_ACEOF 10169ecce36beSmrgif ac_fn_c_try_link "$LINENO"; then : 10170ecce36beSmrg ac_cv_lib_dl_dlopen=yes 10171ecce36beSmrgelse 10172ecce36beSmrg ac_cv_lib_dl_dlopen=no 10173ecce36beSmrgfi 10174ecce36beSmrgrm -f core conftest.err conftest.$ac_objext \ 10175ecce36beSmrg conftest$ac_exeext conftest.$ac_ext 10176ecce36beSmrgLIBS=$ac_check_lib_save_LIBS 10177ecce36beSmrgfi 10178ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10179ecce36beSmrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10180ecce36beSmrgif test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10181ecce36beSmrg lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10182ecce36beSmrgelse 10183ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10184ecce36beSmrg$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10185ecce36beSmrgif test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10186ecce36beSmrg $as_echo_n "(cached) " >&6 10187ecce36beSmrgelse 10188ecce36beSmrg ac_check_lib_save_LIBS=$LIBS 10189ecce36beSmrgLIBS="-lsvld $LIBS" 10190ecce36beSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 10191ecce36beSmrg/* end confdefs.h. */ 10192ecce36beSmrg 10193ecce36beSmrg/* Override any GCC internal prototype to avoid an error. 10194ecce36beSmrg Use char because int might match the return type of a GCC 10195ecce36beSmrg builtin and then its argument prototype would still apply. */ 10196ecce36beSmrg#ifdef __cplusplus 10197ecce36beSmrgextern "C" 10198ecce36beSmrg#endif 10199ecce36beSmrgchar dlopen (); 10200ecce36beSmrgint 10201ecce36beSmrgmain () 10202ecce36beSmrg{ 10203ecce36beSmrgreturn dlopen (); 10204ecce36beSmrg ; 10205ecce36beSmrg return 0; 10206ecce36beSmrg} 10207ecce36beSmrg_ACEOF 10208ecce36beSmrgif ac_fn_c_try_link "$LINENO"; then : 10209ecce36beSmrg ac_cv_lib_svld_dlopen=yes 10210ecce36beSmrgelse 10211ecce36beSmrg ac_cv_lib_svld_dlopen=no 10212ecce36beSmrgfi 10213ecce36beSmrgrm -f core conftest.err conftest.$ac_objext \ 10214ecce36beSmrg conftest$ac_exeext conftest.$ac_ext 10215ecce36beSmrgLIBS=$ac_check_lib_save_LIBS 10216ecce36beSmrgfi 10217ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10218ecce36beSmrg$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10219ecce36beSmrgif test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10220ecce36beSmrg lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10221ecce36beSmrgelse 10222ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10223ecce36beSmrg$as_echo_n "checking for dld_link in -ldld... " >&6; } 10224ecce36beSmrgif test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10225ecce36beSmrg $as_echo_n "(cached) " >&6 10226ecce36beSmrgelse 10227ecce36beSmrg ac_check_lib_save_LIBS=$LIBS 10228ecce36beSmrgLIBS="-ldld $LIBS" 10229ecce36beSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 10230ecce36beSmrg/* end confdefs.h. */ 10231ecce36beSmrg 10232ecce36beSmrg/* Override any GCC internal prototype to avoid an error. 10233ecce36beSmrg Use char because int might match the return type of a GCC 10234ecce36beSmrg builtin and then its argument prototype would still apply. */ 10235ecce36beSmrg#ifdef __cplusplus 10236ecce36beSmrgextern "C" 10237ecce36beSmrg#endif 10238ecce36beSmrgchar dld_link (); 10239ecce36beSmrgint 10240ecce36beSmrgmain () 10241ecce36beSmrg{ 10242ecce36beSmrgreturn dld_link (); 10243ecce36beSmrg ; 10244ecce36beSmrg return 0; 10245ecce36beSmrg} 10246ecce36beSmrg_ACEOF 10247ecce36beSmrgif ac_fn_c_try_link "$LINENO"; then : 10248ecce36beSmrg ac_cv_lib_dld_dld_link=yes 10249ecce36beSmrgelse 10250ecce36beSmrg ac_cv_lib_dld_dld_link=no 10251ecce36beSmrgfi 10252ecce36beSmrgrm -f core conftest.err conftest.$ac_objext \ 10253ecce36beSmrg conftest$ac_exeext conftest.$ac_ext 10254ecce36beSmrgLIBS=$ac_check_lib_save_LIBS 10255ecce36beSmrgfi 10256ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10257ecce36beSmrg$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10258ecce36beSmrgif test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10259ecce36beSmrg lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10260ecce36beSmrgfi 10261ecce36beSmrg 10262ecce36beSmrg 10263ecce36beSmrgfi 10264ecce36beSmrg 10265ecce36beSmrg 10266ecce36beSmrgfi 10267ecce36beSmrg 10268ecce36beSmrg 10269ecce36beSmrgfi 10270ecce36beSmrg 10271ecce36beSmrg 10272ecce36beSmrgfi 10273ecce36beSmrg 10274ecce36beSmrg 10275ecce36beSmrgfi 10276ecce36beSmrg 10277ecce36beSmrg ;; 10278ecce36beSmrg esac 10279ecce36beSmrg 10280ecce36beSmrg if test "x$lt_cv_dlopen" != xno; then 10281ecce36beSmrg enable_dlopen=yes 10282ecce36beSmrg else 10283ecce36beSmrg enable_dlopen=no 10284ecce36beSmrg fi 10285ecce36beSmrg 10286ecce36beSmrg case $lt_cv_dlopen in 10287ecce36beSmrg dlopen) 10288ecce36beSmrg save_CPPFLAGS="$CPPFLAGS" 10289ecce36beSmrg test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10290ecce36beSmrg 10291ecce36beSmrg save_LDFLAGS="$LDFLAGS" 10292ecce36beSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10293ecce36beSmrg 10294ecce36beSmrg save_LIBS="$LIBS" 10295ecce36beSmrg LIBS="$lt_cv_dlopen_libs $LIBS" 10296ecce36beSmrg 10297ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10298ecce36beSmrg$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10299ecce36beSmrgif test "${lt_cv_dlopen_self+set}" = set; then : 10300ecce36beSmrg $as_echo_n "(cached) " >&6 10301ecce36beSmrgelse 10302ecce36beSmrg if test "$cross_compiling" = yes; then : 10303ecce36beSmrg lt_cv_dlopen_self=cross 10304ecce36beSmrgelse 10305ecce36beSmrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10306ecce36beSmrg lt_status=$lt_dlunknown 10307ecce36beSmrg cat > conftest.$ac_ext <<_LT_EOF 10308ecce36beSmrg#line 10308 "configure" 10309ecce36beSmrg#include "confdefs.h" 10310ecce36beSmrg 10311ecce36beSmrg#if HAVE_DLFCN_H 10312ecce36beSmrg#include <dlfcn.h> 10313ecce36beSmrg#endif 10314ecce36beSmrg 10315ecce36beSmrg#include <stdio.h> 10316ecce36beSmrg 10317ecce36beSmrg#ifdef RTLD_GLOBAL 10318ecce36beSmrg# define LT_DLGLOBAL RTLD_GLOBAL 10319ecce36beSmrg#else 10320ecce36beSmrg# ifdef DL_GLOBAL 10321ecce36beSmrg# define LT_DLGLOBAL DL_GLOBAL 10322ecce36beSmrg# else 10323ecce36beSmrg# define LT_DLGLOBAL 0 10324ecce36beSmrg# endif 10325ecce36beSmrg#endif 10326ecce36beSmrg 10327ecce36beSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10328ecce36beSmrg find out it does not work in some platform. */ 10329ecce36beSmrg#ifndef LT_DLLAZY_OR_NOW 10330ecce36beSmrg# ifdef RTLD_LAZY 10331ecce36beSmrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 10332ecce36beSmrg# else 10333ecce36beSmrg# ifdef DL_LAZY 10334ecce36beSmrg# define LT_DLLAZY_OR_NOW DL_LAZY 10335ecce36beSmrg# else 10336ecce36beSmrg# ifdef RTLD_NOW 10337ecce36beSmrg# define LT_DLLAZY_OR_NOW RTLD_NOW 10338ecce36beSmrg# else 10339ecce36beSmrg# ifdef DL_NOW 10340ecce36beSmrg# define LT_DLLAZY_OR_NOW DL_NOW 10341ecce36beSmrg# else 10342ecce36beSmrg# define LT_DLLAZY_OR_NOW 0 10343ecce36beSmrg# endif 10344ecce36beSmrg# endif 10345ecce36beSmrg# endif 10346ecce36beSmrg# endif 10347ecce36beSmrg#endif 10348ecce36beSmrg 10349ecce36beSmrgvoid fnord() { int i=42;} 10350ecce36beSmrgint main () 10351ecce36beSmrg{ 10352ecce36beSmrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10353ecce36beSmrg int status = $lt_dlunknown; 10354ecce36beSmrg 10355ecce36beSmrg if (self) 10356ecce36beSmrg { 10357ecce36beSmrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10358ecce36beSmrg else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10359ecce36beSmrg /* dlclose (self); */ 10360ecce36beSmrg } 10361ecce36beSmrg else 10362ecce36beSmrg puts (dlerror ()); 10363ecce36beSmrg 10364ecce36beSmrg return status; 10365ecce36beSmrg} 10366ecce36beSmrg_LT_EOF 10367ecce36beSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10368ecce36beSmrg (eval $ac_link) 2>&5 10369ecce36beSmrg ac_status=$? 10370ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10371ecce36beSmrg test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10372ecce36beSmrg (./conftest; exit; ) >&5 2>/dev/null 10373ecce36beSmrg lt_status=$? 10374ecce36beSmrg case x$lt_status in 10375ecce36beSmrg x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10376ecce36beSmrg x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10377ecce36beSmrg x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10378ecce36beSmrg esac 10379ecce36beSmrg else : 10380ecce36beSmrg # compilation failed 10381ecce36beSmrg lt_cv_dlopen_self=no 10382ecce36beSmrg fi 10383ecce36beSmrgfi 10384ecce36beSmrgrm -fr conftest* 10385ecce36beSmrg 10386ecce36beSmrg 10387ecce36beSmrgfi 10388ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10389ecce36beSmrg$as_echo "$lt_cv_dlopen_self" >&6; } 10390ecce36beSmrg 10391ecce36beSmrg if test "x$lt_cv_dlopen_self" = xyes; then 10392ecce36beSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10393ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10394ecce36beSmrg$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10395ecce36beSmrgif test "${lt_cv_dlopen_self_static+set}" = set; then : 10396ecce36beSmrg $as_echo_n "(cached) " >&6 10397ecce36beSmrgelse 10398ecce36beSmrg if test "$cross_compiling" = yes; then : 10399ecce36beSmrg lt_cv_dlopen_self_static=cross 10400ecce36beSmrgelse 10401ecce36beSmrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10402ecce36beSmrg lt_status=$lt_dlunknown 10403ecce36beSmrg cat > conftest.$ac_ext <<_LT_EOF 10404ecce36beSmrg#line 10404 "configure" 10405ecce36beSmrg#include "confdefs.h" 10406ecce36beSmrg 10407ecce36beSmrg#if HAVE_DLFCN_H 10408ecce36beSmrg#include <dlfcn.h> 10409ecce36beSmrg#endif 10410ecce36beSmrg 10411ecce36beSmrg#include <stdio.h> 10412ecce36beSmrg 10413ecce36beSmrg#ifdef RTLD_GLOBAL 10414ecce36beSmrg# define LT_DLGLOBAL RTLD_GLOBAL 10415ecce36beSmrg#else 10416ecce36beSmrg# ifdef DL_GLOBAL 10417ecce36beSmrg# define LT_DLGLOBAL DL_GLOBAL 10418ecce36beSmrg# else 10419ecce36beSmrg# define LT_DLGLOBAL 0 10420ecce36beSmrg# endif 10421ecce36beSmrg#endif 10422ecce36beSmrg 10423ecce36beSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10424ecce36beSmrg find out it does not work in some platform. */ 10425ecce36beSmrg#ifndef LT_DLLAZY_OR_NOW 10426ecce36beSmrg# ifdef RTLD_LAZY 10427ecce36beSmrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 10428ecce36beSmrg# else 10429ecce36beSmrg# ifdef DL_LAZY 10430ecce36beSmrg# define LT_DLLAZY_OR_NOW DL_LAZY 10431ecce36beSmrg# else 10432ecce36beSmrg# ifdef RTLD_NOW 10433ecce36beSmrg# define LT_DLLAZY_OR_NOW RTLD_NOW 10434ecce36beSmrg# else 10435ecce36beSmrg# ifdef DL_NOW 10436ecce36beSmrg# define LT_DLLAZY_OR_NOW DL_NOW 10437ecce36beSmrg# else 10438ecce36beSmrg# define LT_DLLAZY_OR_NOW 0 10439ecce36beSmrg# endif 10440ecce36beSmrg# endif 10441ecce36beSmrg# endif 10442ecce36beSmrg# endif 10443ecce36beSmrg#endif 10444ecce36beSmrg 10445ecce36beSmrgvoid fnord() { int i=42;} 10446ecce36beSmrgint main () 10447ecce36beSmrg{ 10448ecce36beSmrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10449ecce36beSmrg int status = $lt_dlunknown; 10450ecce36beSmrg 10451ecce36beSmrg if (self) 10452ecce36beSmrg { 10453ecce36beSmrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10454ecce36beSmrg else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10455ecce36beSmrg /* dlclose (self); */ 10456ecce36beSmrg } 10457ecce36beSmrg else 10458ecce36beSmrg puts (dlerror ()); 10459ecce36beSmrg 10460ecce36beSmrg return status; 10461ecce36beSmrg} 10462ecce36beSmrg_LT_EOF 10463ecce36beSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10464ecce36beSmrg (eval $ac_link) 2>&5 10465ecce36beSmrg ac_status=$? 10466ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10467ecce36beSmrg test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10468ecce36beSmrg (./conftest; exit; ) >&5 2>/dev/null 10469ecce36beSmrg lt_status=$? 10470ecce36beSmrg case x$lt_status in 10471ecce36beSmrg x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10472ecce36beSmrg x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10473ecce36beSmrg x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10474ecce36beSmrg esac 10475ecce36beSmrg else : 10476ecce36beSmrg # compilation failed 10477ecce36beSmrg lt_cv_dlopen_self_static=no 10478ecce36beSmrg fi 10479ecce36beSmrgfi 10480ecce36beSmrgrm -fr conftest* 10481ecce36beSmrg 10482ecce36beSmrg 10483ecce36beSmrgfi 10484ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10485ecce36beSmrg$as_echo "$lt_cv_dlopen_self_static" >&6; } 10486ecce36beSmrg fi 10487ecce36beSmrg 10488ecce36beSmrg CPPFLAGS="$save_CPPFLAGS" 10489ecce36beSmrg LDFLAGS="$save_LDFLAGS" 10490ecce36beSmrg LIBS="$save_LIBS" 10491ecce36beSmrg ;; 10492ecce36beSmrg esac 10493ecce36beSmrg 10494ecce36beSmrg case $lt_cv_dlopen_self in 10495ecce36beSmrg yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10496ecce36beSmrg *) enable_dlopen_self=unknown ;; 10497ecce36beSmrg esac 10498ecce36beSmrg 10499ecce36beSmrg case $lt_cv_dlopen_self_static in 10500ecce36beSmrg yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10501ecce36beSmrg *) enable_dlopen_self_static=unknown ;; 10502ecce36beSmrg esac 10503ecce36beSmrgfi 10504ecce36beSmrg 10505ecce36beSmrg 10506ecce36beSmrg 10507ecce36beSmrg 10508ecce36beSmrg 10509ecce36beSmrg 10510ecce36beSmrg 10511ecce36beSmrg 10512ecce36beSmrg 10513ecce36beSmrg 10514ecce36beSmrg 10515ecce36beSmrg 10516ecce36beSmrg 10517ecce36beSmrg 10518ecce36beSmrg 10519ecce36beSmrg 10520ecce36beSmrg 10521ecce36beSmrgstriplib= 10522ecce36beSmrgold_striplib= 10523ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10524ecce36beSmrg$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10525ecce36beSmrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10526ecce36beSmrg test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10527ecce36beSmrg test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10528ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10529ecce36beSmrg$as_echo "yes" >&6; } 10530ecce36beSmrgelse 10531ecce36beSmrg# FIXME - insert some real tests, host_os isn't really good enough 10532ecce36beSmrg case $host_os in 10533ecce36beSmrg darwin*) 10534ecce36beSmrg if test -n "$STRIP" ; then 10535ecce36beSmrg striplib="$STRIP -x" 10536ecce36beSmrg old_striplib="$STRIP -S" 10537ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10538ecce36beSmrg$as_echo "yes" >&6; } 10539ecce36beSmrg else 10540ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10541ecce36beSmrg$as_echo "no" >&6; } 10542ecce36beSmrg fi 10543ecce36beSmrg ;; 10544ecce36beSmrg *) 10545ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10546ecce36beSmrg$as_echo "no" >&6; } 10547ecce36beSmrg ;; 10548ecce36beSmrg esac 10549ecce36beSmrgfi 10550ecce36beSmrg 10551ecce36beSmrg 10552ecce36beSmrg 10553ecce36beSmrg 10554ecce36beSmrg 10555ecce36beSmrg 10556ecce36beSmrg 10557ecce36beSmrg 10558ecce36beSmrg 10559ecce36beSmrg 10560ecce36beSmrg 10561ecce36beSmrg 10562ecce36beSmrg # Report which library types will actually be built 10563ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10564ecce36beSmrg$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10565ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10566ecce36beSmrg$as_echo "$can_build_shared" >&6; } 10567ecce36beSmrg 10568ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10569ecce36beSmrg$as_echo_n "checking whether to build shared libraries... " >&6; } 10570ecce36beSmrg test "$can_build_shared" = "no" && enable_shared=no 10571ecce36beSmrg 10572ecce36beSmrg # On AIX, shared libraries and static libraries use the same namespace, and 10573ecce36beSmrg # are all built from PIC. 10574ecce36beSmrg case $host_os in 10575ecce36beSmrg aix3*) 10576ecce36beSmrg test "$enable_shared" = yes && enable_static=no 10577ecce36beSmrg if test -n "$RANLIB"; then 10578ecce36beSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 10579ecce36beSmrg postinstall_cmds='$RANLIB $lib' 10580ecce36beSmrg fi 10581ecce36beSmrg ;; 10582ecce36beSmrg 10583ecce36beSmrg aix[4-9]*) 10584ecce36beSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10585ecce36beSmrg test "$enable_shared" = yes && enable_static=no 10586ecce36beSmrg fi 10587ecce36beSmrg ;; 10588ecce36beSmrg esac 10589ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10590ecce36beSmrg$as_echo "$enable_shared" >&6; } 10591ecce36beSmrg 10592ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10593ecce36beSmrg$as_echo_n "checking whether to build static libraries... " >&6; } 10594ecce36beSmrg # Make sure either enable_shared or enable_static is yes. 10595ecce36beSmrg test "$enable_shared" = yes || enable_static=yes 10596ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10597ecce36beSmrg$as_echo "$enable_static" >&6; } 10598ecce36beSmrg 10599ecce36beSmrg 10600ecce36beSmrg 10601ecce36beSmrg 10602ecce36beSmrgfi 10603ecce36beSmrgac_ext=c 10604ecce36beSmrgac_cpp='$CPP $CPPFLAGS' 10605ecce36beSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10606ecce36beSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10607ecce36beSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 10608ecce36beSmrg 10609ecce36beSmrgCC="$lt_save_CC" 10610ecce36beSmrg 10611ecce36beSmrg 10612ecce36beSmrg 10613ecce36beSmrg 10614ecce36beSmrg 10615ecce36beSmrg 10616ecce36beSmrg 10617ecce36beSmrg 10618ecce36beSmrg 10619ecce36beSmrg 10620ecce36beSmrg 10621ecce36beSmrg 10622ecce36beSmrg 10623ecce36beSmrg ac_config_commands="$ac_config_commands libtool" 10624ecce36beSmrg 10625ecce36beSmrg 10626ecce36beSmrg 10627ecce36beSmrg 10628ecce36beSmrg# Only expand once: 10629ecce36beSmrg 10630ecce36beSmrg 10631ecce36beSmrg 10632ecce36beSmrgif test "x$GCC" = xyes ; then 10633ecce36beSmrg CWARNFLAGS="-Wall" 10634ecce36beSmrgelse 10635ecce36beSmrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 10636ecce36beSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 10637ecce36beSmrg SUNCC="yes" 10638ecce36beSmrgelse 10639ecce36beSmrg SUNCC="no" 10640ecce36beSmrgfi 10641ecce36beSmrg 10642ecce36beSmrg if test "x$SUNCC" = "xyes"; then 10643ecce36beSmrg CWARNFLAGS="-v" 10644ecce36beSmrg fi 10645ecce36beSmrgfi 10646ecce36beSmrg 10647ecce36beSmrg 10648ecce36beSmrg 10649ecce36beSmrg 10650ecce36beSmrg for ac_func in $ac_func_list 10651ecce36beSmrgdo : 10652ecce36beSmrg as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10653ecce36beSmrgac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10654ecce36beSmrgeval as_val=\$$as_ac_var 10655ecce36beSmrg if test "x$as_val" = x""yes; then : 10656ecce36beSmrg cat >>confdefs.h <<_ACEOF 10657ecce36beSmrg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10658ecce36beSmrg_ACEOF 10659ecce36beSmrg 10660ecce36beSmrgfi 10661ecce36beSmrgdone 10662ecce36beSmrg 10663ecce36beSmrg 10664ecce36beSmrg 10665ecce36beSmrg 10666ecce36beSmrg 10667ecce36beSmrgac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 10668ecce36beSmrgif test "x$ac_cv_type_ssize_t" = x""yes; then : 10669ecce36beSmrg 10670ecce36beSmrgelse 10671ecce36beSmrg 10672ecce36beSmrgcat >>confdefs.h <<_ACEOF 10673ecce36beSmrg#define ssize_t int 10674ecce36beSmrg_ACEOF 10675ecce36beSmrg 10676ecce36beSmrgfi 10677ecce36beSmrg 10678ecce36beSmrg 10679ecce36beSmrgxcbincludedir='${includedir}/xcb' 10680ecce36beSmrg 10681ecce36beSmrg 10682ecce36beSmrgpkgconfigdir='${libdir}/pkgconfig' 10683ecce36beSmrg 10684ecce36beSmrg 10685ecce36beSmrg 10686ecce36beSmrg 10687ecce36beSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 10688ecce36beSmrg if test -n "$ac_tool_prefix"; then 10689ecce36beSmrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 10690ecce36beSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 10691ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10692ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 10693ecce36beSmrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 10694ecce36beSmrg $as_echo_n "(cached) " >&6 10695ecce36beSmrgelse 10696ecce36beSmrg case $PKG_CONFIG in 10697ecce36beSmrg [\\/]* | ?:[\\/]*) 10698ecce36beSmrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 10699ecce36beSmrg ;; 10700ecce36beSmrg *) 10701ecce36beSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10702ecce36beSmrgfor as_dir in $PATH 10703ecce36beSmrgdo 10704ecce36beSmrg IFS=$as_save_IFS 10705ecce36beSmrg test -z "$as_dir" && as_dir=. 10706ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 10707ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10708ecce36beSmrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10709ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10710ecce36beSmrg break 2 10711ecce36beSmrg fi 10712ecce36beSmrgdone 10713ecce36beSmrg done 10714ecce36beSmrgIFS=$as_save_IFS 10715ecce36beSmrg 10716ecce36beSmrg ;; 10717ecce36beSmrgesac 10718ecce36beSmrgfi 10719ecce36beSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 10720ecce36beSmrgif test -n "$PKG_CONFIG"; then 10721ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 10722ecce36beSmrg$as_echo "$PKG_CONFIG" >&6; } 10723ecce36beSmrgelse 10724ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10725ecce36beSmrg$as_echo "no" >&6; } 10726ecce36beSmrgfi 10727ecce36beSmrg 10728ecce36beSmrg 10729ecce36beSmrgfi 10730ecce36beSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then 10731ecce36beSmrg ac_pt_PKG_CONFIG=$PKG_CONFIG 10732ecce36beSmrg # Extract the first word of "pkg-config", so it can be a program name with args. 10733ecce36beSmrgset dummy pkg-config; ac_word=$2 10734ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10735ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 10736ecce36beSmrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 10737ecce36beSmrg $as_echo_n "(cached) " >&6 10738ecce36beSmrgelse 10739ecce36beSmrg case $ac_pt_PKG_CONFIG in 10740ecce36beSmrg [\\/]* | ?:[\\/]*) 10741ecce36beSmrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 10742ecce36beSmrg ;; 10743ecce36beSmrg *) 10744ecce36beSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10745ecce36beSmrgfor as_dir in $PATH 10746ecce36beSmrgdo 10747ecce36beSmrg IFS=$as_save_IFS 10748ecce36beSmrg test -z "$as_dir" && as_dir=. 10749ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 10750ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10751ecce36beSmrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10752ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10753ecce36beSmrg break 2 10754ecce36beSmrg fi 10755ecce36beSmrgdone 10756ecce36beSmrg done 10757ecce36beSmrgIFS=$as_save_IFS 10758ecce36beSmrg 10759ecce36beSmrg ;; 10760ecce36beSmrgesac 10761ecce36beSmrgfi 10762ecce36beSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 10763ecce36beSmrgif test -n "$ac_pt_PKG_CONFIG"; then 10764ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 10765ecce36beSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 10766ecce36beSmrgelse 10767ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10768ecce36beSmrg$as_echo "no" >&6; } 10769ecce36beSmrgfi 10770ecce36beSmrg 10771ecce36beSmrg if test "x$ac_pt_PKG_CONFIG" = x; then 10772ecce36beSmrg PKG_CONFIG="" 10773ecce36beSmrg else 10774ecce36beSmrg case $cross_compiling:$ac_tool_warned in 10775ecce36beSmrgyes:) 10776ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10777ecce36beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10778ecce36beSmrgac_tool_warned=yes ;; 10779ecce36beSmrgesac 10780ecce36beSmrg PKG_CONFIG=$ac_pt_PKG_CONFIG 10781ecce36beSmrg fi 10782ecce36beSmrgelse 10783ecce36beSmrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 10784ecce36beSmrgfi 10785ecce36beSmrg 10786ecce36beSmrgfi 10787ecce36beSmrgif test -n "$PKG_CONFIG"; then 10788ecce36beSmrg _pkg_min_version=0.9.0 10789ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 10790ecce36beSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 10791ecce36beSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 10792ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10793ecce36beSmrg$as_echo "yes" >&6; } 10794ecce36beSmrg else 10795ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10796ecce36beSmrg$as_echo "no" >&6; } 10797ecce36beSmrg PKG_CONFIG="" 10798ecce36beSmrg fi 10799ecce36beSmrg 10800ecce36beSmrgfi 10801ecce36beSmrg 10802ecce36beSmrgpkg_failed=no 10803ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB" >&5 10804ecce36beSmrg$as_echo_n "checking for XCB... " >&6; } 10805ecce36beSmrg 10806ecce36beSmrgif test -n "$PKG_CONFIG"; then 10807ecce36beSmrg if test -n "$XCB_CFLAGS"; then 10808ecce36beSmrg pkg_cv_XCB_CFLAGS="$XCB_CFLAGS" 10809ecce36beSmrg else 10810ecce36beSmrg if test -n "$PKG_CONFIG" && \ 10811ecce36beSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.4\""; } >&5 10812ecce36beSmrg ($PKG_CONFIG --exists --print-errors "xcb >= 1.4") 2>&5 10813ecce36beSmrg ac_status=$? 10814ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10815ecce36beSmrg test $ac_status = 0; }; then 10816ecce36beSmrg pkg_cv_XCB_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.4" 2>/dev/null` 10817ecce36beSmrgelse 10818ecce36beSmrg pkg_failed=yes 10819ecce36beSmrgfi 10820ecce36beSmrg fi 10821ecce36beSmrgelse 10822ecce36beSmrg pkg_failed=untried 10823ecce36beSmrgfi 10824ecce36beSmrgif test -n "$PKG_CONFIG"; then 10825ecce36beSmrg if test -n "$XCB_LIBS"; then 10826ecce36beSmrg pkg_cv_XCB_LIBS="$XCB_LIBS" 10827ecce36beSmrg else 10828ecce36beSmrg if test -n "$PKG_CONFIG" && \ 10829ecce36beSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.4\""; } >&5 10830ecce36beSmrg ($PKG_CONFIG --exists --print-errors "xcb >= 1.4") 2>&5 10831ecce36beSmrg ac_status=$? 10832ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10833ecce36beSmrg test $ac_status = 0; }; then 10834ecce36beSmrg pkg_cv_XCB_LIBS=`$PKG_CONFIG --libs "xcb >= 1.4" 2>/dev/null` 10835ecce36beSmrgelse 10836ecce36beSmrg pkg_failed=yes 10837ecce36beSmrgfi 10838ecce36beSmrg fi 10839ecce36beSmrgelse 10840ecce36beSmrg pkg_failed=untried 10841ecce36beSmrgfi 10842ecce36beSmrg 10843ecce36beSmrg 10844ecce36beSmrg 10845ecce36beSmrgif test $pkg_failed = yes; then 10846ecce36beSmrg 10847ecce36beSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10848ecce36beSmrg _pkg_short_errors_supported=yes 10849ecce36beSmrgelse 10850ecce36beSmrg _pkg_short_errors_supported=no 10851ecce36beSmrgfi 10852ecce36beSmrg if test $_pkg_short_errors_supported = yes; then 10853ecce36beSmrg XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xcb >= 1.4"` 10854ecce36beSmrg else 10855ecce36beSmrg XCB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xcb >= 1.4"` 10856ecce36beSmrg fi 10857ecce36beSmrg # Put the nasty error message in config.log where it belongs 10858ecce36beSmrg echo "$XCB_PKG_ERRORS" >&5 10859ecce36beSmrg 10860ecce36beSmrg as_fn_error "Package requirements (xcb >= 1.4) were not met: 10861ecce36beSmrg 10862ecce36beSmrg$XCB_PKG_ERRORS 10863ecce36beSmrg 10864ecce36beSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 10865ecce36beSmrginstalled software in a non-standard prefix. 10866ecce36beSmrg 10867ecce36beSmrgAlternatively, you may set the environment variables XCB_CFLAGS 10868ecce36beSmrgand XCB_LIBS to avoid the need to call pkg-config. 10869ecce36beSmrgSee the pkg-config man page for more details. 10870ecce36beSmrg" "$LINENO" 5 10871ecce36beSmrgelif test $pkg_failed = untried; then 10872ecce36beSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10873ecce36beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10874ecce36beSmrgas_fn_error "The pkg-config script could not be found or is too old. Make sure it 10875ecce36beSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 10876ecce36beSmrgpath to pkg-config. 10877ecce36beSmrg 10878ecce36beSmrgAlternatively, you may set the environment variables XCB_CFLAGS 10879ecce36beSmrgand XCB_LIBS to avoid the need to call pkg-config. 10880ecce36beSmrgSee the pkg-config man page for more details. 10881ecce36beSmrg 10882ecce36beSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 10883ecce36beSmrgSee \`config.log' for more details." "$LINENO" 5; } 10884ecce36beSmrgelse 10885ecce36beSmrg XCB_CFLAGS=$pkg_cv_XCB_CFLAGS 10886ecce36beSmrg XCB_LIBS=$pkg_cv_XCB_LIBS 10887ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10888ecce36beSmrg$as_echo "yes" >&6; } 10889ecce36beSmrg : 10890ecce36beSmrgfi 10891ecce36beSmrg 10892ecce36beSmrg###### 10893ecce36beSmrg# Check version of xcb-proto that xcb was compiled against 10894ecce36beSmrg###### 10895ecce36beSmrgxcbproto_required=1.5 10896ecce36beSmrg 10897ecce36beSmrg# Moved from AX_COMPARE_VERSION to maintain proper output 10898ecce36beSmrgfor ac_prog in gawk mawk nawk awk 10899ecce36beSmrgdo 10900ecce36beSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 10901ecce36beSmrgset dummy $ac_prog; ac_word=$2 10902ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10903ecce36beSmrg$as_echo_n "checking for $ac_word... " >&6; } 10904ecce36beSmrgif test "${ac_cv_prog_AWK+set}" = set; then : 10905ecce36beSmrg $as_echo_n "(cached) " >&6 10906ecce36beSmrgelse 10907ecce36beSmrg if test -n "$AWK"; then 10908ecce36beSmrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 10909ecce36beSmrgelse 10910ecce36beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10911ecce36beSmrgfor as_dir in $PATH 10912ecce36beSmrgdo 10913ecce36beSmrg IFS=$as_save_IFS 10914ecce36beSmrg test -z "$as_dir" && as_dir=. 10915ecce36beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 10916ecce36beSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10917ecce36beSmrg ac_cv_prog_AWK="$ac_prog" 10918ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10919ecce36beSmrg break 2 10920ecce36beSmrg fi 10921ecce36beSmrgdone 10922ecce36beSmrg done 10923ecce36beSmrgIFS=$as_save_IFS 10924ecce36beSmrg 10925ecce36beSmrgfi 10926ecce36beSmrgfi 10927ecce36beSmrgAWK=$ac_cv_prog_AWK 10928ecce36beSmrgif test -n "$AWK"; then 10929ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 10930ecce36beSmrg$as_echo "$AWK" >&6; } 10931ecce36beSmrgelse 10932ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10933ecce36beSmrg$as_echo "no" >&6; } 10934ecce36beSmrgfi 10935ecce36beSmrg 10936ecce36beSmrg 10937ecce36beSmrg test -n "$AWK" && break 10938ecce36beSmrgdone 10939ecce36beSmrg 10940ecce36beSmrg 10941ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxcb was compiled against xcb-proto >= $xcbproto_required" >&5 10942ecce36beSmrg$as_echo_n "checking whether libxcb was compiled against xcb-proto >= $xcbproto_required... " >&6; } 10943ecce36beSmrgxcbproto_version=`$PKG_CONFIG --variable=xcbproto_version xcb` 10944ecce36beSmrg 10945ecce36beSmrg 10946ecce36beSmrg # Used to indicate true or false condition 10947ecce36beSmrg ax_compare_version=false 10948ecce36beSmrg 10949ecce36beSmrg # Convert the two version strings to be compared into a format that 10950ecce36beSmrg # allows a simple string comparison. The end result is that a version 10951ecce36beSmrg # string of the form 1.12.5-r617 will be converted to the form 10952ecce36beSmrg # 0001001200050617. In other words, each number is zero padded to four 10953ecce36beSmrg # digits, and non digits are removed. 10954ecce36beSmrg 10955ecce36beSmrg ax_compare_version_A=`echo "$xcbproto_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 10956ecce36beSmrg -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 10957ecce36beSmrg -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 10958ecce36beSmrg -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 10959ecce36beSmrg -e 's/[^0-9]//g'` 10960ecce36beSmrg 10961ecce36beSmrg 10962ecce36beSmrg ax_compare_version_B=`echo "$xcbproto_required" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 10963ecce36beSmrg -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 10964ecce36beSmrg -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 10965ecce36beSmrg -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 10966ecce36beSmrg -e 's/[^0-9]//g'` 10967ecce36beSmrg 10968ecce36beSmrg 10969ecce36beSmrg ax_compare_version=`echo "x$ax_compare_version_A 10970ecce36beSmrgx$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` 10971ecce36beSmrg 10972ecce36beSmrg 10973ecce36beSmrg 10974ecce36beSmrg if test "$ax_compare_version" = "true" ; then 10975ecce36beSmrg xcbproto_ok="yes" 10976ecce36beSmrg else xcbproto_ok="no" 10977ecce36beSmrg fi 10978ecce36beSmrg 10979ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xcbproto_ok" >&5 10980ecce36beSmrg$as_echo "$xcbproto_ok" >&6; } 10981ecce36beSmrg 10982ecce36beSmrgif test $xcbproto_ok = no; then 10983ecce36beSmrg as_fn_error "libxcb was compiled against xcb-proto $xcbproto_version; it needs to be compiled against version $xcbproto_required or higher" "$LINENO" 5 10984ecce36beSmrgfi 10985ecce36beSmrg 10986ecce36beSmrg 10987ecce36beSmrg 10988ecce36beSmrgpkg_failed=no 10989ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_SHM" >&5 10990ecce36beSmrg$as_echo_n "checking for XCB_SHM... " >&6; } 10991ecce36beSmrg 10992ecce36beSmrgif test -n "$PKG_CONFIG"; then 10993ecce36beSmrg if test -n "$XCB_SHM_CFLAGS"; then 10994ecce36beSmrg pkg_cv_XCB_SHM_CFLAGS="$XCB_SHM_CFLAGS" 10995ecce36beSmrg else 10996ecce36beSmrg if test -n "$PKG_CONFIG" && \ 10997ecce36beSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-shm\""; } >&5 10998ecce36beSmrg ($PKG_CONFIG --exists --print-errors "xcb-shm") 2>&5 10999ecce36beSmrg ac_status=$? 11000ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11001ecce36beSmrg test $ac_status = 0; }; then 11002ecce36beSmrg pkg_cv_XCB_SHM_CFLAGS=`$PKG_CONFIG --cflags "xcb-shm" 2>/dev/null` 11003ecce36beSmrgelse 11004ecce36beSmrg pkg_failed=yes 11005ecce36beSmrgfi 11006ecce36beSmrg fi 11007ecce36beSmrgelse 11008ecce36beSmrg pkg_failed=untried 11009ecce36beSmrgfi 11010ecce36beSmrgif test -n "$PKG_CONFIG"; then 11011ecce36beSmrg if test -n "$XCB_SHM_LIBS"; then 11012ecce36beSmrg pkg_cv_XCB_SHM_LIBS="$XCB_SHM_LIBS" 11013ecce36beSmrg else 11014ecce36beSmrg if test -n "$PKG_CONFIG" && \ 11015ecce36beSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-shm\""; } >&5 11016ecce36beSmrg ($PKG_CONFIG --exists --print-errors "xcb-shm") 2>&5 11017ecce36beSmrg ac_status=$? 11018ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11019ecce36beSmrg test $ac_status = 0; }; then 11020ecce36beSmrg pkg_cv_XCB_SHM_LIBS=`$PKG_CONFIG --libs "xcb-shm" 2>/dev/null` 11021ecce36beSmrgelse 11022ecce36beSmrg pkg_failed=yes 11023ecce36beSmrgfi 11024ecce36beSmrg fi 11025ecce36beSmrgelse 11026ecce36beSmrg pkg_failed=untried 11027ecce36beSmrgfi 11028ecce36beSmrg 11029ecce36beSmrg 11030ecce36beSmrg 11031ecce36beSmrgif test $pkg_failed = yes; then 11032ecce36beSmrg 11033ecce36beSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11034ecce36beSmrg _pkg_short_errors_supported=yes 11035ecce36beSmrgelse 11036ecce36beSmrg _pkg_short_errors_supported=no 11037ecce36beSmrgfi 11038ecce36beSmrg if test $_pkg_short_errors_supported = yes; then 11039ecce36beSmrg XCB_SHM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xcb-shm"` 11040ecce36beSmrg else 11041ecce36beSmrg XCB_SHM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xcb-shm"` 11042ecce36beSmrg fi 11043ecce36beSmrg # Put the nasty error message in config.log where it belongs 11044ecce36beSmrg echo "$XCB_SHM_PKG_ERRORS" >&5 11045ecce36beSmrg 11046ecce36beSmrg as_fn_error "Package requirements (xcb-shm) were not met: 11047ecce36beSmrg 11048ecce36beSmrg$XCB_SHM_PKG_ERRORS 11049ecce36beSmrg 11050ecce36beSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 11051ecce36beSmrginstalled software in a non-standard prefix. 11052ecce36beSmrg 11053ecce36beSmrgAlternatively, you may set the environment variables XCB_SHM_CFLAGS 11054ecce36beSmrgand XCB_SHM_LIBS to avoid the need to call pkg-config. 11055ecce36beSmrgSee the pkg-config man page for more details. 11056ecce36beSmrg" "$LINENO" 5 11057ecce36beSmrgelif test $pkg_failed = untried; then 11058ecce36beSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11059ecce36beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11060ecce36beSmrgas_fn_error "The pkg-config script could not be found or is too old. Make sure it 11061ecce36beSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 11062ecce36beSmrgpath to pkg-config. 11063ecce36beSmrg 11064ecce36beSmrgAlternatively, you may set the environment variables XCB_SHM_CFLAGS 11065ecce36beSmrgand XCB_SHM_LIBS to avoid the need to call pkg-config. 11066ecce36beSmrgSee the pkg-config man page for more details. 11067ecce36beSmrg 11068ecce36beSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 11069ecce36beSmrgSee \`config.log' for more details." "$LINENO" 5; } 11070ecce36beSmrgelse 11071ecce36beSmrg XCB_SHM_CFLAGS=$pkg_cv_XCB_SHM_CFLAGS 11072ecce36beSmrg XCB_SHM_LIBS=$pkg_cv_XCB_SHM_LIBS 11073ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11074ecce36beSmrg$as_echo "yes" >&6; } 11075ecce36beSmrg : 11076ecce36beSmrgfi 11077ecce36beSmrg 11078ecce36beSmrgpkg_failed=no 11079ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_RENDER" >&5 11080ecce36beSmrg$as_echo_n "checking for XCB_RENDER... " >&6; } 11081ecce36beSmrg 11082ecce36beSmrgif test -n "$PKG_CONFIG"; then 11083ecce36beSmrg if test -n "$XCB_RENDER_CFLAGS"; then 11084ecce36beSmrg pkg_cv_XCB_RENDER_CFLAGS="$XCB_RENDER_CFLAGS" 11085ecce36beSmrg else 11086ecce36beSmrg if test -n "$PKG_CONFIG" && \ 11087ecce36beSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-render\""; } >&5 11088ecce36beSmrg ($PKG_CONFIG --exists --print-errors "xcb-render") 2>&5 11089ecce36beSmrg ac_status=$? 11090ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11091ecce36beSmrg test $ac_status = 0; }; then 11092ecce36beSmrg pkg_cv_XCB_RENDER_CFLAGS=`$PKG_CONFIG --cflags "xcb-render" 2>/dev/null` 11093ecce36beSmrgelse 11094ecce36beSmrg pkg_failed=yes 11095ecce36beSmrgfi 11096ecce36beSmrg fi 11097ecce36beSmrgelse 11098ecce36beSmrg pkg_failed=untried 11099ecce36beSmrgfi 11100ecce36beSmrgif test -n "$PKG_CONFIG"; then 11101ecce36beSmrg if test -n "$XCB_RENDER_LIBS"; then 11102ecce36beSmrg pkg_cv_XCB_RENDER_LIBS="$XCB_RENDER_LIBS" 11103ecce36beSmrg else 11104ecce36beSmrg if test -n "$PKG_CONFIG" && \ 11105ecce36beSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-render\""; } >&5 11106ecce36beSmrg ($PKG_CONFIG --exists --print-errors "xcb-render") 2>&5 11107ecce36beSmrg ac_status=$? 11108ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11109ecce36beSmrg test $ac_status = 0; }; then 11110ecce36beSmrg pkg_cv_XCB_RENDER_LIBS=`$PKG_CONFIG --libs "xcb-render" 2>/dev/null` 11111ecce36beSmrgelse 11112ecce36beSmrg pkg_failed=yes 11113ecce36beSmrgfi 11114ecce36beSmrg fi 11115ecce36beSmrgelse 11116ecce36beSmrg pkg_failed=untried 11117ecce36beSmrgfi 11118ecce36beSmrg 11119ecce36beSmrg 11120ecce36beSmrg 11121ecce36beSmrgif test $pkg_failed = yes; then 11122ecce36beSmrg 11123ecce36beSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11124ecce36beSmrg _pkg_short_errors_supported=yes 11125ecce36beSmrgelse 11126ecce36beSmrg _pkg_short_errors_supported=no 11127ecce36beSmrgfi 11128ecce36beSmrg if test $_pkg_short_errors_supported = yes; then 11129ecce36beSmrg XCB_RENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xcb-render"` 11130ecce36beSmrg else 11131ecce36beSmrg XCB_RENDER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xcb-render"` 11132ecce36beSmrg fi 11133ecce36beSmrg # Put the nasty error message in config.log where it belongs 11134ecce36beSmrg echo "$XCB_RENDER_PKG_ERRORS" >&5 11135ecce36beSmrg 11136ecce36beSmrg as_fn_error "Package requirements (xcb-render) were not met: 11137ecce36beSmrg 11138ecce36beSmrg$XCB_RENDER_PKG_ERRORS 11139ecce36beSmrg 11140ecce36beSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 11141ecce36beSmrginstalled software in a non-standard prefix. 11142ecce36beSmrg 11143ecce36beSmrgAlternatively, you may set the environment variables XCB_RENDER_CFLAGS 11144ecce36beSmrgand XCB_RENDER_LIBS to avoid the need to call pkg-config. 11145ecce36beSmrgSee the pkg-config man page for more details. 11146ecce36beSmrg" "$LINENO" 5 11147ecce36beSmrgelif test $pkg_failed = untried; then 11148ecce36beSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11149ecce36beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11150ecce36beSmrgas_fn_error "The pkg-config script could not be found or is too old. Make sure it 11151ecce36beSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 11152ecce36beSmrgpath to pkg-config. 11153ecce36beSmrg 11154ecce36beSmrgAlternatively, you may set the environment variables XCB_RENDER_CFLAGS 11155ecce36beSmrgand XCB_RENDER_LIBS to avoid the need to call pkg-config. 11156ecce36beSmrgSee the pkg-config man page for more details. 11157ecce36beSmrg 11158ecce36beSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 11159ecce36beSmrgSee \`config.log' for more details." "$LINENO" 5; } 11160ecce36beSmrgelse 11161ecce36beSmrg XCB_RENDER_CFLAGS=$pkg_cv_XCB_RENDER_CFLAGS 11162ecce36beSmrg XCB_RENDER_LIBS=$pkg_cv_XCB_RENDER_LIBS 11163ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11164ecce36beSmrg$as_echo "yes" >&6; } 11165ecce36beSmrg : 11166ecce36beSmrgfi 11167ecce36beSmrg 11168ecce36beSmrgpkg_failed=no 11169ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPROTO" >&5 11170ecce36beSmrg$as_echo_n "checking for XPROTO... " >&6; } 11171ecce36beSmrg 11172ecce36beSmrgif test -n "$PKG_CONFIG"; then 11173ecce36beSmrg if test -n "$XPROTO_CFLAGS"; then 11174ecce36beSmrg pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS" 11175ecce36beSmrg else 11176ecce36beSmrg if test -n "$PKG_CONFIG" && \ 11177ecce36beSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.8\""; } >&5 11178ecce36beSmrg ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.8") 2>&5 11179ecce36beSmrg ac_status=$? 11180ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11181ecce36beSmrg test $ac_status = 0; }; then 11182ecce36beSmrg pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.8" 2>/dev/null` 11183ecce36beSmrgelse 11184ecce36beSmrg pkg_failed=yes 11185ecce36beSmrgfi 11186ecce36beSmrg fi 11187ecce36beSmrgelse 11188ecce36beSmrg pkg_failed=untried 11189ecce36beSmrgfi 11190ecce36beSmrgif test -n "$PKG_CONFIG"; then 11191ecce36beSmrg if test -n "$XPROTO_LIBS"; then 11192ecce36beSmrg pkg_cv_XPROTO_LIBS="$XPROTO_LIBS" 11193ecce36beSmrg else 11194ecce36beSmrg if test -n "$PKG_CONFIG" && \ 11195ecce36beSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.8\""; } >&5 11196ecce36beSmrg ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.8") 2>&5 11197ecce36beSmrg ac_status=$? 11198ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11199ecce36beSmrg test $ac_status = 0; }; then 11200ecce36beSmrg pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.8" 2>/dev/null` 11201ecce36beSmrgelse 11202ecce36beSmrg pkg_failed=yes 11203ecce36beSmrgfi 11204ecce36beSmrg fi 11205ecce36beSmrgelse 11206ecce36beSmrg pkg_failed=untried 11207ecce36beSmrgfi 11208ecce36beSmrg 11209ecce36beSmrg 11210ecce36beSmrg 11211ecce36beSmrgif test $pkg_failed = yes; then 11212ecce36beSmrg 11213ecce36beSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11214ecce36beSmrg _pkg_short_errors_supported=yes 11215ecce36beSmrgelse 11216ecce36beSmrg _pkg_short_errors_supported=no 11217ecce36beSmrgfi 11218ecce36beSmrg if test $_pkg_short_errors_supported = yes; then 11219ecce36beSmrg XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xproto >= 7.0.8"` 11220ecce36beSmrg else 11221ecce36beSmrg XPROTO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto >= 7.0.8"` 11222ecce36beSmrg fi 11223ecce36beSmrg # Put the nasty error message in config.log where it belongs 11224ecce36beSmrg echo "$XPROTO_PKG_ERRORS" >&5 11225ecce36beSmrg 11226ecce36beSmrg as_fn_error "Package requirements (xproto >= 7.0.8) were not met: 11227ecce36beSmrg 11228ecce36beSmrg$XPROTO_PKG_ERRORS 11229ecce36beSmrg 11230ecce36beSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 11231ecce36beSmrginstalled software in a non-standard prefix. 11232ecce36beSmrg 11233ecce36beSmrgAlternatively, you may set the environment variables XPROTO_CFLAGS 11234ecce36beSmrgand XPROTO_LIBS to avoid the need to call pkg-config. 11235ecce36beSmrgSee the pkg-config man page for more details. 11236ecce36beSmrg" "$LINENO" 5 11237ecce36beSmrgelif test $pkg_failed = untried; then 11238ecce36beSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11239ecce36beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11240ecce36beSmrgas_fn_error "The pkg-config script could not be found or is too old. Make sure it 11241ecce36beSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 11242ecce36beSmrgpath to pkg-config. 11243ecce36beSmrg 11244ecce36beSmrgAlternatively, you may set the environment variables XPROTO_CFLAGS 11245ecce36beSmrgand XPROTO_LIBS to avoid the need to call pkg-config. 11246ecce36beSmrgSee the pkg-config man page for more details. 11247ecce36beSmrg 11248ecce36beSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 11249ecce36beSmrgSee \`config.log' for more details." "$LINENO" 5; } 11250ecce36beSmrgelse 11251ecce36beSmrg XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS 11252ecce36beSmrg XPROTO_LIBS=$pkg_cv_XPROTO_LIBS 11253ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11254ecce36beSmrg$as_echo "yes" >&6; } 11255ecce36beSmrg : 11256ecce36beSmrgfi 11257ecce36beSmrg 11258ecce36beSmrgXCB_AUX_CFLAGS='-I$(top_srcdir)/aux' 11259ecce36beSmrgXCB_AUX_LIBS='$(top_builddir)/aux/libxcb-aux.la' 11260ecce36beSmrgXCB_ATOM_CFLAGS='-I$(top_srcdir)/atom -I$(top_builddir)/atom' 11261ecce36beSmrgXCB_ATOM_LIBS='$(top_builddir)/atom/libxcb-atom.la' 11262ecce36beSmrgXCB_EVENT_CFLAGS='-I$(top_srcdir)/event' 11263ecce36beSmrgXCB_EVENT_LIBS='$(top_builddir)/event/libxcb-event.la' 11264ecce36beSmrgXCB_PROPERTY_CFLAGS='-I$(top_srcdir)/property' 11265ecce36beSmrgXCB_PROPERTY_LIBS='$(top_builddir)/property/libxcb-property.la' 11266ecce36beSmrgXCB_ICCCM_CFLAGS='-I$(top_srcdir)/icccm' 11267ecce36beSmrgXCB_ICCCM_LIBS='$(top_builddir)/icccm/libxcb-icccm.la' 11268ecce36beSmrg 11269ecce36beSmrg 11270ecce36beSmrg 11271ecce36beSmrg 11272ecce36beSmrg 11273ecce36beSmrg 11274ecce36beSmrg 11275ecce36beSmrg 11276ecce36beSmrg 11277ecce36beSmrg 11278ecce36beSmrg 11279ecce36beSmrgac_config_files="$ac_config_files Makefile aux/Makefile aux/xcb-aux.pc reply/Makefile reply/xcb-reply.pc image/Makefile image/xcb-image.pc atom/Makefile atom/xcb-atom.pc event/Makefile event/xcb-event.pc keysyms/Makefile keysyms/xcb-keysyms.pc property/Makefile property/xcb-property.pc icccm/Makefile icccm/xcb-icccm.pc renderutil/Makefile renderutil/xcb-renderutil.pc xcb_util_intro" 11280ecce36beSmrg 11281ecce36beSmrgcat >confcache <<\_ACEOF 11282ecce36beSmrg# This file is a shell script that caches the results of configure 11283ecce36beSmrg# tests run on this system so they can be shared between configure 11284ecce36beSmrg# scripts and configure runs, see configure's option --config-cache. 11285ecce36beSmrg# It is not useful on other systems. If it contains results you don't 11286ecce36beSmrg# want to keep, you may remove or edit it. 11287ecce36beSmrg# 11288ecce36beSmrg# config.status only pays attention to the cache file if you give it 11289ecce36beSmrg# the --recheck option to rerun configure. 11290ecce36beSmrg# 11291ecce36beSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 11292ecce36beSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 11293ecce36beSmrg# following values. 11294ecce36beSmrg 11295ecce36beSmrg_ACEOF 11296ecce36beSmrg 11297ecce36beSmrg# The following way of writing the cache mishandles newlines in values, 11298ecce36beSmrg# but we know of no workaround that is simple, portable, and efficient. 11299ecce36beSmrg# So, we kill variables containing newlines. 11300ecce36beSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 11301ecce36beSmrg# and sets the high bit in the cache file unless we assign to the vars. 11302ecce36beSmrg( 11303ecce36beSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11304ecce36beSmrg eval ac_val=\$$ac_var 11305ecce36beSmrg case $ac_val in #( 11306ecce36beSmrg *${as_nl}*) 11307ecce36beSmrg case $ac_var in #( 11308ecce36beSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11309ecce36beSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11310ecce36beSmrg esac 11311ecce36beSmrg case $ac_var in #( 11312ecce36beSmrg _ | IFS | as_nl) ;; #( 11313ecce36beSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11314ecce36beSmrg *) { eval $ac_var=; unset $ac_var;} ;; 11315ecce36beSmrg esac ;; 11316ecce36beSmrg esac 11317ecce36beSmrg done 11318ecce36beSmrg 11319ecce36beSmrg (set) 2>&1 | 11320ecce36beSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 11321ecce36beSmrg *${as_nl}ac_space=\ *) 11322ecce36beSmrg # `set' does not quote correctly, so add quotes: double-quote 11323ecce36beSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 11324ecce36beSmrg sed -n \ 11325ecce36beSmrg "s/'/'\\\\''/g; 11326ecce36beSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11327ecce36beSmrg ;; #( 11328ecce36beSmrg *) 11329ecce36beSmrg # `set' quotes correctly as required by POSIX, so do not add quotes. 11330ecce36beSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11331ecce36beSmrg ;; 11332ecce36beSmrg esac | 11333ecce36beSmrg sort 11334ecce36beSmrg) | 11335ecce36beSmrg sed ' 11336ecce36beSmrg /^ac_cv_env_/b end 11337ecce36beSmrg t clear 11338ecce36beSmrg :clear 11339ecce36beSmrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11340ecce36beSmrg t end 11341ecce36beSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11342ecce36beSmrg :end' >>confcache 11343ecce36beSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11344ecce36beSmrg if test -w "$cache_file"; then 11345ecce36beSmrg test "x$cache_file" != "x/dev/null" && 11346ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11347ecce36beSmrg$as_echo "$as_me: updating cache $cache_file" >&6;} 11348ecce36beSmrg cat confcache >$cache_file 11349ecce36beSmrg else 11350ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11351ecce36beSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11352ecce36beSmrg fi 11353ecce36beSmrgfi 11354ecce36beSmrgrm -f confcache 11355ecce36beSmrg 11356ecce36beSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 11357ecce36beSmrg# Let make expand exec_prefix. 11358ecce36beSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11359ecce36beSmrg 11360ecce36beSmrg# Transform confdefs.h into DEFS. 11361ecce36beSmrg# Protect against shell expansion while executing Makefile rules. 11362ecce36beSmrg# Protect against Makefile macro expansion. 11363ecce36beSmrg# 11364ecce36beSmrg# If the first sed substitution is executed (which looks for macros that 11365ecce36beSmrg# take arguments), then branch to the quote section. Otherwise, 11366ecce36beSmrg# look for a macro that doesn't take arguments. 11367ecce36beSmrgac_script=' 11368ecce36beSmrg:mline 11369ecce36beSmrg/\\$/{ 11370ecce36beSmrg N 11371ecce36beSmrg s,\\\n,, 11372ecce36beSmrg b mline 11373ecce36beSmrg} 11374ecce36beSmrgt clear 11375ecce36beSmrg:clear 11376ecce36beSmrgs/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 11377ecce36beSmrgt quote 11378ecce36beSmrgs/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 11379ecce36beSmrgt quote 11380ecce36beSmrgb any 11381ecce36beSmrg:quote 11382ecce36beSmrgs/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 11383ecce36beSmrgs/\[/\\&/g 11384ecce36beSmrgs/\]/\\&/g 11385ecce36beSmrgs/\$/$$/g 11386ecce36beSmrgH 11387ecce36beSmrg:any 11388ecce36beSmrg${ 11389ecce36beSmrg g 11390ecce36beSmrg s/^\n// 11391ecce36beSmrg s/\n/ /g 11392ecce36beSmrg p 11393ecce36beSmrg} 11394ecce36beSmrg' 11395ecce36beSmrgDEFS=`sed -n "$ac_script" confdefs.h` 11396ecce36beSmrg 11397ecce36beSmrg 11398ecce36beSmrgac_libobjs= 11399ecce36beSmrgac_ltlibobjs= 11400ecce36beSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11401ecce36beSmrg # 1. Remove the extension, and $U if already installed. 11402ecce36beSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11403ecce36beSmrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11404ecce36beSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11405ecce36beSmrg # will be set to the directory where LIBOBJS objects are built. 11406ecce36beSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11407ecce36beSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11408ecce36beSmrgdone 11409ecce36beSmrgLIBOBJS=$ac_libobjs 11410ecce36beSmrg 11411ecce36beSmrgLTLIBOBJS=$ac_ltlibobjs 11412ecce36beSmrg 11413ecce36beSmrg 11414ecce36beSmrg if test -n "$EXEEXT"; then 11415ecce36beSmrg am__EXEEXT_TRUE= 11416ecce36beSmrg am__EXEEXT_FALSE='#' 11417ecce36beSmrgelse 11418ecce36beSmrg am__EXEEXT_TRUE='#' 11419ecce36beSmrg am__EXEEXT_FALSE= 11420ecce36beSmrgfi 11421ecce36beSmrg 11422ecce36beSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11423ecce36beSmrg as_fn_error "conditional \"AMDEP\" was never defined. 11424ecce36beSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 11425ecce36beSmrgfi 11426ecce36beSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11427ecce36beSmrg as_fn_error "conditional \"am__fastdepCC\" was never defined. 11428ecce36beSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 11429ecce36beSmrgfi 11430ecce36beSmrg 11431ecce36beSmrg: ${CONFIG_STATUS=./config.status} 11432ecce36beSmrgac_write_fail=0 11433ecce36beSmrgac_clean_files_save=$ac_clean_files 11434ecce36beSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 11435ecce36beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11436ecce36beSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11437ecce36beSmrgas_write_fail=0 11438ecce36beSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11439ecce36beSmrg#! $SHELL 11440ecce36beSmrg# Generated by $as_me. 11441ecce36beSmrg# Run this file to recreate the current configuration. 11442ecce36beSmrg# Compiler output produced by configure, useful for debugging 11443ecce36beSmrg# configure, is in config.log if it exists. 11444ecce36beSmrg 11445ecce36beSmrgdebug=false 11446ecce36beSmrgac_cs_recheck=false 11447ecce36beSmrgac_cs_silent=false 11448ecce36beSmrg 11449ecce36beSmrgSHELL=\${CONFIG_SHELL-$SHELL} 11450ecce36beSmrgexport SHELL 11451ecce36beSmrg_ASEOF 11452ecce36beSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11453ecce36beSmrg## -------------------- ## 11454ecce36beSmrg## M4sh Initialization. ## 11455ecce36beSmrg## -------------------- ## 11456ecce36beSmrg 11457ecce36beSmrg# Be more Bourne compatible 11458ecce36beSmrgDUALCASE=1; export DUALCASE # for MKS sh 11459ecce36beSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11460ecce36beSmrg emulate sh 11461ecce36beSmrg NULLCMD=: 11462ecce36beSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11463ecce36beSmrg # is contrary to our usage. Disable this feature. 11464ecce36beSmrg alias -g '${1+"$@"}'='"$@"' 11465ecce36beSmrg setopt NO_GLOB_SUBST 11466ecce36beSmrgelse 11467ecce36beSmrg case `(set -o) 2>/dev/null` in #( 11468ecce36beSmrg *posix*) : 11469ecce36beSmrg set -o posix ;; #( 11470ecce36beSmrg *) : 11471ecce36beSmrg ;; 11472ecce36beSmrgesac 11473ecce36beSmrgfi 11474ecce36beSmrg 11475ecce36beSmrg 11476ecce36beSmrgas_nl=' 11477ecce36beSmrg' 11478ecce36beSmrgexport as_nl 11479ecce36beSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 11480ecce36beSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11481ecce36beSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11482ecce36beSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11483ecce36beSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 11484ecce36beSmrg# but without wasting forks for bash or zsh. 11485ecce36beSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 11486ecce36beSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11487ecce36beSmrg as_echo='print -r --' 11488ecce36beSmrg as_echo_n='print -rn --' 11489ecce36beSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11490ecce36beSmrg as_echo='printf %s\n' 11491ecce36beSmrg as_echo_n='printf %s' 11492ecce36beSmrgelse 11493ecce36beSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11494ecce36beSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11495ecce36beSmrg as_echo_n='/usr/ucb/echo -n' 11496ecce36beSmrg else 11497ecce36beSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11498ecce36beSmrg as_echo_n_body='eval 11499ecce36beSmrg arg=$1; 11500ecce36beSmrg case $arg in #( 11501ecce36beSmrg *"$as_nl"*) 11502ecce36beSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 11503ecce36beSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11504ecce36beSmrg esac; 11505ecce36beSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11506ecce36beSmrg ' 11507ecce36beSmrg export as_echo_n_body 11508ecce36beSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 11509ecce36beSmrg fi 11510ecce36beSmrg export as_echo_body 11511ecce36beSmrg as_echo='sh -c $as_echo_body as_echo' 11512ecce36beSmrgfi 11513ecce36beSmrg 11514ecce36beSmrg# The user is always right. 11515ecce36beSmrgif test "${PATH_SEPARATOR+set}" != set; then 11516ecce36beSmrg PATH_SEPARATOR=: 11517ecce36beSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11518ecce36beSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11519ecce36beSmrg PATH_SEPARATOR=';' 11520ecce36beSmrg } 11521ecce36beSmrgfi 11522ecce36beSmrg 11523ecce36beSmrg 11524ecce36beSmrg# IFS 11525ecce36beSmrg# We need space, tab and new line, in precisely that order. Quoting is 11526ecce36beSmrg# there to prevent editors from complaining about space-tab. 11527ecce36beSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11528ecce36beSmrg# splitting by setting IFS to empty value.) 11529ecce36beSmrgIFS=" "" $as_nl" 11530ecce36beSmrg 11531ecce36beSmrg# Find who we are. Look in the path if we contain no directory separator. 11532ecce36beSmrgcase $0 in #(( 11533ecce36beSmrg *[\\/]* ) as_myself=$0 ;; 11534ecce36beSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11535ecce36beSmrgfor as_dir in $PATH 11536ecce36beSmrgdo 11537ecce36beSmrg IFS=$as_save_IFS 11538ecce36beSmrg test -z "$as_dir" && as_dir=. 11539ecce36beSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11540ecce36beSmrg done 11541ecce36beSmrgIFS=$as_save_IFS 11542ecce36beSmrg 11543ecce36beSmrg ;; 11544ecce36beSmrgesac 11545ecce36beSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 11546ecce36beSmrg# in which case we are not to be found in the path. 11547ecce36beSmrgif test "x$as_myself" = x; then 11548ecce36beSmrg as_myself=$0 11549ecce36beSmrgfi 11550ecce36beSmrgif test ! -f "$as_myself"; then 11551ecce36beSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11552ecce36beSmrg exit 1 11553ecce36beSmrgfi 11554ecce36beSmrg 11555ecce36beSmrg# Unset variables that we do not need and which cause bugs (e.g. in 11556ecce36beSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11557ecce36beSmrg# suppresses any "Segmentation fault" message there. '((' could 11558ecce36beSmrg# trigger a bug in pdksh 5.2.14. 11559ecce36beSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 11560ecce36beSmrgdo eval test x\${$as_var+set} = xset \ 11561ecce36beSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11562ecce36beSmrgdone 11563ecce36beSmrgPS1='$ ' 11564ecce36beSmrgPS2='> ' 11565ecce36beSmrgPS4='+ ' 11566ecce36beSmrg 11567ecce36beSmrg# NLS nuisances. 11568ecce36beSmrgLC_ALL=C 11569ecce36beSmrgexport LC_ALL 11570ecce36beSmrgLANGUAGE=C 11571ecce36beSmrgexport LANGUAGE 11572ecce36beSmrg 11573ecce36beSmrg# CDPATH. 11574ecce36beSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11575ecce36beSmrg 11576ecce36beSmrg 11577ecce36beSmrg# as_fn_error ERROR [LINENO LOG_FD] 11578ecce36beSmrg# --------------------------------- 11579ecce36beSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11580ecce36beSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11581ecce36beSmrg# script with status $?, using 1 if that was 0. 11582ecce36beSmrgas_fn_error () 11583ecce36beSmrg{ 11584ecce36beSmrg as_status=$?; test $as_status -eq 0 && as_status=1 11585ecce36beSmrg if test "$3"; then 11586ecce36beSmrg as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11587ecce36beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 11588ecce36beSmrg fi 11589ecce36beSmrg $as_echo "$as_me: error: $1" >&2 11590ecce36beSmrg as_fn_exit $as_status 11591ecce36beSmrg} # as_fn_error 11592ecce36beSmrg 11593ecce36beSmrg 11594ecce36beSmrg# as_fn_set_status STATUS 11595ecce36beSmrg# ----------------------- 11596ecce36beSmrg# Set $? to STATUS, without forking. 11597ecce36beSmrgas_fn_set_status () 11598ecce36beSmrg{ 11599ecce36beSmrg return $1 11600ecce36beSmrg} # as_fn_set_status 11601ecce36beSmrg 11602ecce36beSmrg# as_fn_exit STATUS 11603ecce36beSmrg# ----------------- 11604ecce36beSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11605ecce36beSmrgas_fn_exit () 11606ecce36beSmrg{ 11607ecce36beSmrg set +e 11608ecce36beSmrg as_fn_set_status $1 11609ecce36beSmrg exit $1 11610ecce36beSmrg} # as_fn_exit 11611ecce36beSmrg 11612ecce36beSmrg# as_fn_unset VAR 11613ecce36beSmrg# --------------- 11614ecce36beSmrg# Portably unset VAR. 11615ecce36beSmrgas_fn_unset () 11616ecce36beSmrg{ 11617ecce36beSmrg { eval $1=; unset $1;} 11618ecce36beSmrg} 11619ecce36beSmrgas_unset=as_fn_unset 11620ecce36beSmrg# as_fn_append VAR VALUE 11621ecce36beSmrg# ---------------------- 11622ecce36beSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 11623ecce36beSmrg# advantage of any shell optimizations that allow amortized linear growth over 11624ecce36beSmrg# repeated appends, instead of the typical quadratic growth present in naive 11625ecce36beSmrg# implementations. 11626ecce36beSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11627ecce36beSmrg eval 'as_fn_append () 11628ecce36beSmrg { 11629ecce36beSmrg eval $1+=\$2 11630ecce36beSmrg }' 11631ecce36beSmrgelse 11632ecce36beSmrg as_fn_append () 11633ecce36beSmrg { 11634ecce36beSmrg eval $1=\$$1\$2 11635ecce36beSmrg } 11636ecce36beSmrgfi # as_fn_append 11637ecce36beSmrg 11638ecce36beSmrg# as_fn_arith ARG... 11639ecce36beSmrg# ------------------ 11640ecce36beSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 11641ecce36beSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 11642ecce36beSmrg# must be portable across $(()) and expr. 11643ecce36beSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11644ecce36beSmrg eval 'as_fn_arith () 11645ecce36beSmrg { 11646ecce36beSmrg as_val=$(( $* )) 11647ecce36beSmrg }' 11648ecce36beSmrgelse 11649ecce36beSmrg as_fn_arith () 11650ecce36beSmrg { 11651ecce36beSmrg as_val=`expr "$@" || test $? -eq 1` 11652ecce36beSmrg } 11653ecce36beSmrgfi # as_fn_arith 11654ecce36beSmrg 11655ecce36beSmrg 11656ecce36beSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 11657ecce36beSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 11658ecce36beSmrg as_expr=expr 11659ecce36beSmrgelse 11660ecce36beSmrg as_expr=false 11661ecce36beSmrgfi 11662ecce36beSmrg 11663ecce36beSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11664ecce36beSmrg as_basename=basename 11665ecce36beSmrgelse 11666ecce36beSmrg as_basename=false 11667ecce36beSmrgfi 11668ecce36beSmrg 11669ecce36beSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11670ecce36beSmrg as_dirname=dirname 11671ecce36beSmrgelse 11672ecce36beSmrg as_dirname=false 11673ecce36beSmrgfi 11674ecce36beSmrg 11675ecce36beSmrgas_me=`$as_basename -- "$0" || 11676ecce36beSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11677ecce36beSmrg X"$0" : 'X\(//\)$' \| \ 11678ecce36beSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 11679ecce36beSmrg$as_echo X/"$0" | 11680ecce36beSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 11681ecce36beSmrg s//\1/ 11682ecce36beSmrg q 11683ecce36beSmrg } 11684ecce36beSmrg /^X\/\(\/\/\)$/{ 11685ecce36beSmrg s//\1/ 11686ecce36beSmrg q 11687ecce36beSmrg } 11688ecce36beSmrg /^X\/\(\/\).*/{ 11689ecce36beSmrg s//\1/ 11690ecce36beSmrg q 11691ecce36beSmrg } 11692ecce36beSmrg s/.*/./; q'` 11693ecce36beSmrg 11694ecce36beSmrg# Avoid depending upon Character Ranges. 11695ecce36beSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 11696ecce36beSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11697ecce36beSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 11698ecce36beSmrgas_cr_digits='0123456789' 11699ecce36beSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 11700ecce36beSmrg 11701ecce36beSmrgECHO_C= ECHO_N= ECHO_T= 11702ecce36beSmrgcase `echo -n x` in #((((( 11703ecce36beSmrg-n*) 11704ecce36beSmrg case `echo 'xy\c'` in 11705ecce36beSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11706ecce36beSmrg xy) ECHO_C='\c';; 11707ecce36beSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11708ecce36beSmrg ECHO_T=' ';; 11709ecce36beSmrg esac;; 11710ecce36beSmrg*) 11711ecce36beSmrg ECHO_N='-n';; 11712ecce36beSmrgesac 11713ecce36beSmrg 11714ecce36beSmrgrm -f conf$$ conf$$.exe conf$$.file 11715ecce36beSmrgif test -d conf$$.dir; then 11716ecce36beSmrg rm -f conf$$.dir/conf$$.file 11717ecce36beSmrgelse 11718ecce36beSmrg rm -f conf$$.dir 11719ecce36beSmrg mkdir conf$$.dir 2>/dev/null 11720ecce36beSmrgfi 11721ecce36beSmrgif (echo >conf$$.file) 2>/dev/null; then 11722ecce36beSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 11723ecce36beSmrg as_ln_s='ln -s' 11724ecce36beSmrg # ... but there are two gotchas: 11725ecce36beSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11726ecce36beSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11727ecce36beSmrg # In both cases, we have to default to `cp -p'. 11728ecce36beSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11729ecce36beSmrg as_ln_s='cp -p' 11730ecce36beSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 11731ecce36beSmrg as_ln_s=ln 11732ecce36beSmrg else 11733ecce36beSmrg as_ln_s='cp -p' 11734ecce36beSmrg fi 11735ecce36beSmrgelse 11736ecce36beSmrg as_ln_s='cp -p' 11737ecce36beSmrgfi 11738ecce36beSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11739ecce36beSmrgrmdir conf$$.dir 2>/dev/null 11740ecce36beSmrg 11741ecce36beSmrg 11742ecce36beSmrg# as_fn_mkdir_p 11743ecce36beSmrg# ------------- 11744ecce36beSmrg# Create "$as_dir" as a directory, including parents if necessary. 11745ecce36beSmrgas_fn_mkdir_p () 11746ecce36beSmrg{ 11747ecce36beSmrg 11748ecce36beSmrg case $as_dir in #( 11749ecce36beSmrg -*) as_dir=./$as_dir;; 11750ecce36beSmrg esac 11751ecce36beSmrg test -d "$as_dir" || eval $as_mkdir_p || { 11752ecce36beSmrg as_dirs= 11753ecce36beSmrg while :; do 11754ecce36beSmrg case $as_dir in #( 11755ecce36beSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11756ecce36beSmrg *) as_qdir=$as_dir;; 11757ecce36beSmrg esac 11758ecce36beSmrg as_dirs="'$as_qdir' $as_dirs" 11759ecce36beSmrg as_dir=`$as_dirname -- "$as_dir" || 11760ecce36beSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11761ecce36beSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 11762ecce36beSmrg X"$as_dir" : 'X\(//\)$' \| \ 11763ecce36beSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11764ecce36beSmrg$as_echo X"$as_dir" | 11765ecce36beSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11766ecce36beSmrg s//\1/ 11767ecce36beSmrg q 11768ecce36beSmrg } 11769ecce36beSmrg /^X\(\/\/\)[^/].*/{ 11770ecce36beSmrg s//\1/ 11771ecce36beSmrg q 11772ecce36beSmrg } 11773ecce36beSmrg /^X\(\/\/\)$/{ 11774ecce36beSmrg s//\1/ 11775ecce36beSmrg q 11776ecce36beSmrg } 11777ecce36beSmrg /^X\(\/\).*/{ 11778ecce36beSmrg s//\1/ 11779ecce36beSmrg q 11780ecce36beSmrg } 11781ecce36beSmrg s/.*/./; q'` 11782ecce36beSmrg test -d "$as_dir" && break 11783ecce36beSmrg done 11784ecce36beSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 11785ecce36beSmrg } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 11786ecce36beSmrg 11787ecce36beSmrg 11788ecce36beSmrg} # as_fn_mkdir_p 11789ecce36beSmrgif mkdir -p . 2>/dev/null; then 11790ecce36beSmrg as_mkdir_p='mkdir -p "$as_dir"' 11791ecce36beSmrgelse 11792ecce36beSmrg test -d ./-p && rmdir ./-p 11793ecce36beSmrg as_mkdir_p=false 11794ecce36beSmrgfi 11795ecce36beSmrg 11796ecce36beSmrgif test -x / >/dev/null 2>&1; then 11797ecce36beSmrg as_test_x='test -x' 11798ecce36beSmrgelse 11799ecce36beSmrg if ls -dL / >/dev/null 2>&1; then 11800ecce36beSmrg as_ls_L_option=L 11801ecce36beSmrg else 11802ecce36beSmrg as_ls_L_option= 11803ecce36beSmrg fi 11804ecce36beSmrg as_test_x=' 11805ecce36beSmrg eval sh -c '\'' 11806ecce36beSmrg if test -d "$1"; then 11807ecce36beSmrg test -d "$1/."; 11808ecce36beSmrg else 11809ecce36beSmrg case $1 in #( 11810ecce36beSmrg -*)set "./$1";; 11811ecce36beSmrg esac; 11812ecce36beSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11813ecce36beSmrg ???[sx]*):;;*)false;;esac;fi 11814ecce36beSmrg '\'' sh 11815ecce36beSmrg ' 11816ecce36beSmrgfi 11817ecce36beSmrgas_executable_p=$as_test_x 11818ecce36beSmrg 11819ecce36beSmrg# Sed expression to map a string onto a valid CPP name. 11820ecce36beSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11821ecce36beSmrg 11822ecce36beSmrg# Sed expression to map a string onto a valid variable name. 11823ecce36beSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11824ecce36beSmrg 11825ecce36beSmrg 11826ecce36beSmrgexec 6>&1 11827ecce36beSmrg## ----------------------------------- ## 11828ecce36beSmrg## Main body of $CONFIG_STATUS script. ## 11829ecce36beSmrg## ----------------------------------- ## 11830ecce36beSmrg_ASEOF 11831ecce36beSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11832ecce36beSmrg 11833ecce36beSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11834ecce36beSmrg# Save the log message, to keep $0 and so on meaningful, and to 11835ecce36beSmrg# report actual input values of CONFIG_FILES etc. instead of their 11836ecce36beSmrg# values after options handling. 11837ecce36beSmrgac_log=" 11838ecce36beSmrgThis file was extended by xcb-util $as_me 0.3.6, which was 11839ecce36beSmrggenerated by GNU Autoconf 2.64. Invocation command line was 11840ecce36beSmrg 11841ecce36beSmrg CONFIG_FILES = $CONFIG_FILES 11842ecce36beSmrg CONFIG_HEADERS = $CONFIG_HEADERS 11843ecce36beSmrg CONFIG_LINKS = $CONFIG_LINKS 11844ecce36beSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 11845ecce36beSmrg $ $0 $@ 11846ecce36beSmrg 11847ecce36beSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 11848ecce36beSmrg" 11849ecce36beSmrg 11850ecce36beSmrg_ACEOF 11851ecce36beSmrg 11852ecce36beSmrgcase $ac_config_files in *" 11853ecce36beSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 11854ecce36beSmrgesac 11855ecce36beSmrg 11856ecce36beSmrg 11857ecce36beSmrg 11858ecce36beSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11859ecce36beSmrg# Files that config.status was made for. 11860ecce36beSmrgconfig_files="$ac_config_files" 11861ecce36beSmrgconfig_commands="$ac_config_commands" 11862ecce36beSmrg 11863ecce36beSmrg_ACEOF 11864ecce36beSmrg 11865ecce36beSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11866ecce36beSmrgac_cs_usage="\ 11867ecce36beSmrg\`$as_me' instantiates files and other configuration actions 11868ecce36beSmrgfrom templates according to the current configuration. Unless the files 11869ecce36beSmrgand actions are specified as TAGs, all are instantiated by default. 11870ecce36beSmrg 11871ecce36beSmrgUsage: $0 [OPTION]... [TAG]... 11872ecce36beSmrg 11873ecce36beSmrg -h, --help print this help, then exit 11874ecce36beSmrg -V, --version print version number and configuration settings, then exit 11875ecce36beSmrg -q, --quiet, --silent 11876ecce36beSmrg do not print progress messages 11877ecce36beSmrg -d, --debug don't remove temporary files 11878ecce36beSmrg --recheck update $as_me by reconfiguring in the same conditions 11879ecce36beSmrg --file=FILE[:TEMPLATE] 11880ecce36beSmrg instantiate the configuration file FILE 11881ecce36beSmrg 11882ecce36beSmrgConfiguration files: 11883ecce36beSmrg$config_files 11884ecce36beSmrg 11885ecce36beSmrgConfiguration commands: 11886ecce36beSmrg$config_commands 11887ecce36beSmrg 11888ecce36beSmrgReport bugs to <xcb@lists.freedesktop.org>." 11889ecce36beSmrg 11890ecce36beSmrg_ACEOF 11891ecce36beSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11892ecce36beSmrgac_cs_version="\\ 11893ecce36beSmrgxcb-util config.status 0.3.6 11894ecce36beSmrgconfigured by $0, generated by GNU Autoconf 2.64, 11895ecce36beSmrg with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 11896ecce36beSmrg 11897ecce36beSmrgCopyright (C) 2009 Free Software Foundation, Inc. 11898ecce36beSmrgThis config.status script is free software; the Free Software Foundation 11899ecce36beSmrggives unlimited permission to copy, distribute and modify it." 11900ecce36beSmrg 11901ecce36beSmrgac_pwd='$ac_pwd' 11902ecce36beSmrgsrcdir='$srcdir' 11903ecce36beSmrgINSTALL='$INSTALL' 11904ecce36beSmrgMKDIR_P='$MKDIR_P' 11905ecce36beSmrgAWK='$AWK' 11906ecce36beSmrgtest -n "\$AWK" || AWK=awk 11907ecce36beSmrg_ACEOF 11908ecce36beSmrg 11909ecce36beSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11910ecce36beSmrg# The default lists apply if the user does not specify any file. 11911ecce36beSmrgac_need_defaults=: 11912ecce36beSmrgwhile test $# != 0 11913ecce36beSmrgdo 11914ecce36beSmrg case $1 in 11915ecce36beSmrg --*=*) 11916ecce36beSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 11917ecce36beSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11918ecce36beSmrg ac_shift=: 11919ecce36beSmrg ;; 11920ecce36beSmrg *) 11921ecce36beSmrg ac_option=$1 11922ecce36beSmrg ac_optarg=$2 11923ecce36beSmrg ac_shift=shift 11924ecce36beSmrg ;; 11925ecce36beSmrg esac 11926ecce36beSmrg 11927ecce36beSmrg case $ac_option in 11928ecce36beSmrg # Handling of the options. 11929ecce36beSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11930ecce36beSmrg ac_cs_recheck=: ;; 11931ecce36beSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11932ecce36beSmrg $as_echo "$ac_cs_version"; exit ;; 11933ecce36beSmrg --debug | --debu | --deb | --de | --d | -d ) 11934ecce36beSmrg debug=: ;; 11935ecce36beSmrg --file | --fil | --fi | --f ) 11936ecce36beSmrg $ac_shift 11937ecce36beSmrg case $ac_optarg in 11938ecce36beSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11939ecce36beSmrg esac 11940ecce36beSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 11941ecce36beSmrg ac_need_defaults=false;; 11942ecce36beSmrg --he | --h | --help | --hel | -h ) 11943ecce36beSmrg $as_echo "$ac_cs_usage"; exit ;; 11944ecce36beSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11945ecce36beSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 11946ecce36beSmrg ac_cs_silent=: ;; 11947ecce36beSmrg 11948ecce36beSmrg # This is an error. 11949ecce36beSmrg -*) as_fn_error "unrecognized option: \`$1' 11950ecce36beSmrgTry \`$0 --help' for more information." ;; 11951ecce36beSmrg 11952ecce36beSmrg *) as_fn_append ac_config_targets " $1" 11953ecce36beSmrg ac_need_defaults=false ;; 11954ecce36beSmrg 11955ecce36beSmrg esac 11956ecce36beSmrg shift 11957ecce36beSmrgdone 11958ecce36beSmrg 11959ecce36beSmrgac_configure_extra_args= 11960ecce36beSmrg 11961ecce36beSmrgif $ac_cs_silent; then 11962ecce36beSmrg exec 6>/dev/null 11963ecce36beSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 11964ecce36beSmrgfi 11965ecce36beSmrg 11966ecce36beSmrg_ACEOF 11967ecce36beSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11968ecce36beSmrgif \$ac_cs_recheck; then 11969ecce36beSmrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11970ecce36beSmrg shift 11971ecce36beSmrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11972ecce36beSmrg CONFIG_SHELL='$SHELL' 11973ecce36beSmrg export CONFIG_SHELL 11974ecce36beSmrg exec "\$@" 11975ecce36beSmrgfi 11976ecce36beSmrg 11977ecce36beSmrg_ACEOF 11978ecce36beSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11979ecce36beSmrgexec 5>>config.log 11980ecce36beSmrg{ 11981ecce36beSmrg echo 11982ecce36beSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11983ecce36beSmrg## Running $as_me. ## 11984ecce36beSmrg_ASBOX 11985ecce36beSmrg $as_echo "$ac_log" 11986ecce36beSmrg} >&5 11987ecce36beSmrg 11988ecce36beSmrg_ACEOF 11989ecce36beSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11990ecce36beSmrg# 11991ecce36beSmrg# INIT-COMMANDS 11992ecce36beSmrg# 11993ecce36beSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11994ecce36beSmrg 11995ecce36beSmrg 11996ecce36beSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 11997ecce36beSmrg# if CDPATH is set. 11998ecce36beSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11999ecce36beSmrg 12000ecce36beSmrgsed_quote_subst='$sed_quote_subst' 12001ecce36beSmrgdouble_quote_subst='$double_quote_subst' 12002ecce36beSmrgdelay_variable_subst='$delay_variable_subst' 12003ecce36beSmrgmacro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 12004ecce36beSmrgmacro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 12005ecce36beSmrgenable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 12006ecce36beSmrgenable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 12007ecce36beSmrgpic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 12008ecce36beSmrgenable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 12009ecce36beSmrghost_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 12010ecce36beSmrghost='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 12011ecce36beSmrghost_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 12012ecce36beSmrgbuild_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 12013ecce36beSmrgbuild='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 12014ecce36beSmrgbuild_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 12015ecce36beSmrgSED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 12016ecce36beSmrgXsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 12017ecce36beSmrgGREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 12018ecce36beSmrgEGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 12019ecce36beSmrgFGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 12020ecce36beSmrgLD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 12021ecce36beSmrgNM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 12022ecce36beSmrgLN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 12023ecce36beSmrgmax_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 12024ecce36beSmrgac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 12025ecce36beSmrgexeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 12026ecce36beSmrglt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 12027ecce36beSmrglt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 12028ecce36beSmrglt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 12029ecce36beSmrgreload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 12030ecce36beSmrgreload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12031ecce36beSmrgOBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 12032ecce36beSmrgdeplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 12033ecce36beSmrgfile_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 12034ecce36beSmrgAR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 12035ecce36beSmrgAR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12036ecce36beSmrgSTRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 12037ecce36beSmrgRANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 12038ecce36beSmrgold_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12039ecce36beSmrgold_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12040ecce36beSmrgold_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12041ecce36beSmrgCC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 12042ecce36beSmrgCFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12043ecce36beSmrgcompiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 12044ecce36beSmrgGCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 12045ecce36beSmrglt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 12046ecce36beSmrglt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 12047ecce36beSmrglt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 12048ecce36beSmrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12049ecce36beSmrgobjdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 12050ecce36beSmrgSHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 12051ecce36beSmrgECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 12052ecce36beSmrgMAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 12053ecce36beSmrglt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 12054ecce36beSmrglt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 12055ecce36beSmrglt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 12056ecce36beSmrglt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 12057ecce36beSmrglt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 12058ecce36beSmrgneed_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 12059ecce36beSmrgDSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 12060ecce36beSmrgNMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 12061ecce36beSmrgLIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 12062ecce36beSmrgOTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 12063ecce36beSmrgOTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 12064ecce36beSmrglibext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 12065ecce36beSmrgshrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12066ecce36beSmrgextract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12067ecce36beSmrgarchive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 12068ecce36beSmrgenable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 12069ecce36beSmrgexport_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12070ecce36beSmrgwhole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12071ecce36beSmrgcompiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 12072ecce36beSmrgold_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12073ecce36beSmrgold_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12074ecce36beSmrgarchive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12075ecce36beSmrgarchive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12076ecce36beSmrgmodule_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12077ecce36beSmrgmodule_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12078ecce36beSmrgwith_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 12079ecce36beSmrgallow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12080ecce36beSmrgno_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12081ecce36beSmrghardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12082ecce36beSmrghardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 12083ecce36beSmrghardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 12084ecce36beSmrghardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 12085ecce36beSmrghardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 12086ecce36beSmrghardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 12087ecce36beSmrghardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12088ecce36beSmrghardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 12089ecce36beSmrginherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 12090ecce36beSmrglink_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 12091ecce36beSmrgfix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 12092ecce36beSmrgalways_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 12093ecce36beSmrgexport_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12094ecce36beSmrgexclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12095ecce36beSmrginclude_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12096ecce36beSmrgprelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12097ecce36beSmrgfile_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 12098ecce36beSmrgvariables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 12099ecce36beSmrgneed_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12100ecce36beSmrgneed_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 12101ecce36beSmrgversion_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 12102ecce36beSmrgrunpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12103ecce36beSmrgshlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12104ecce36beSmrgshlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 12105ecce36beSmrglibname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12106ecce36beSmrglibrary_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 12107ecce36beSmrgsoname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12108ecce36beSmrgpostinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12109ecce36beSmrgpostuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12110ecce36beSmrgfinish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12111ecce36beSmrgfinish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 12112ecce36beSmrghardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 12113ecce36beSmrgsys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12114ecce36beSmrgsys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12115ecce36beSmrghardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 12116ecce36beSmrgenable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 12117ecce36beSmrgenable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 12118ecce36beSmrgenable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 12119ecce36beSmrgold_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 12120ecce36beSmrgstriplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 12121ecce36beSmrg 12122ecce36beSmrgLTCC='$LTCC' 12123ecce36beSmrgLTCFLAGS='$LTCFLAGS' 12124ecce36beSmrgcompiler='$compiler_DEFAULT' 12125ecce36beSmrg 12126ecce36beSmrg# Quote evaled strings. 12127ecce36beSmrgfor var in SED \ 12128ecce36beSmrgGREP \ 12129ecce36beSmrgEGREP \ 12130ecce36beSmrgFGREP \ 12131ecce36beSmrgLD \ 12132ecce36beSmrgNM \ 12133ecce36beSmrgLN_S \ 12134ecce36beSmrglt_SP2NL \ 12135ecce36beSmrglt_NL2SP \ 12136ecce36beSmrgreload_flag \ 12137ecce36beSmrgOBJDUMP \ 12138ecce36beSmrgdeplibs_check_method \ 12139ecce36beSmrgfile_magic_cmd \ 12140ecce36beSmrgAR \ 12141ecce36beSmrgAR_FLAGS \ 12142ecce36beSmrgSTRIP \ 12143ecce36beSmrgRANLIB \ 12144ecce36beSmrgCC \ 12145ecce36beSmrgCFLAGS \ 12146ecce36beSmrgcompiler \ 12147ecce36beSmrglt_cv_sys_global_symbol_pipe \ 12148ecce36beSmrglt_cv_sys_global_symbol_to_cdecl \ 12149ecce36beSmrglt_cv_sys_global_symbol_to_c_name_address \ 12150ecce36beSmrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12151ecce36beSmrgSHELL \ 12152ecce36beSmrgECHO \ 12153ecce36beSmrglt_prog_compiler_no_builtin_flag \ 12154ecce36beSmrglt_prog_compiler_wl \ 12155ecce36beSmrglt_prog_compiler_pic \ 12156ecce36beSmrglt_prog_compiler_static \ 12157ecce36beSmrglt_cv_prog_compiler_c_o \ 12158ecce36beSmrgneed_locks \ 12159ecce36beSmrgDSYMUTIL \ 12160ecce36beSmrgNMEDIT \ 12161ecce36beSmrgLIPO \ 12162ecce36beSmrgOTOOL \ 12163ecce36beSmrgOTOOL64 \ 12164ecce36beSmrgshrext_cmds \ 12165ecce36beSmrgexport_dynamic_flag_spec \ 12166ecce36beSmrgwhole_archive_flag_spec \ 12167ecce36beSmrgcompiler_needs_object \ 12168ecce36beSmrgwith_gnu_ld \ 12169ecce36beSmrgallow_undefined_flag \ 12170ecce36beSmrgno_undefined_flag \ 12171ecce36beSmrghardcode_libdir_flag_spec \ 12172ecce36beSmrghardcode_libdir_flag_spec_ld \ 12173ecce36beSmrghardcode_libdir_separator \ 12174ecce36beSmrgfix_srcfile_path \ 12175ecce36beSmrgexclude_expsyms \ 12176ecce36beSmrginclude_expsyms \ 12177ecce36beSmrgfile_list_spec \ 12178ecce36beSmrgvariables_saved_for_relink \ 12179ecce36beSmrglibname_spec \ 12180ecce36beSmrglibrary_names_spec \ 12181ecce36beSmrgsoname_spec \ 12182ecce36beSmrgfinish_eval \ 12183ecce36beSmrgold_striplib \ 12184ecce36beSmrgstriplib; do 12185ecce36beSmrg case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12186ecce36beSmrg *[\\\\\\\`\\"\\\$]*) 12187ecce36beSmrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12188ecce36beSmrg ;; 12189ecce36beSmrg *) 12190ecce36beSmrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12191ecce36beSmrg ;; 12192ecce36beSmrg esac 12193ecce36beSmrgdone 12194ecce36beSmrg 12195ecce36beSmrg# Double-quote double-evaled strings. 12196ecce36beSmrgfor var in reload_cmds \ 12197ecce36beSmrgold_postinstall_cmds \ 12198ecce36beSmrgold_postuninstall_cmds \ 12199ecce36beSmrgold_archive_cmds \ 12200ecce36beSmrgextract_expsyms_cmds \ 12201ecce36beSmrgold_archive_from_new_cmds \ 12202ecce36beSmrgold_archive_from_expsyms_cmds \ 12203ecce36beSmrgarchive_cmds \ 12204ecce36beSmrgarchive_expsym_cmds \ 12205ecce36beSmrgmodule_cmds \ 12206ecce36beSmrgmodule_expsym_cmds \ 12207ecce36beSmrgexport_symbols_cmds \ 12208ecce36beSmrgprelink_cmds \ 12209ecce36beSmrgpostinstall_cmds \ 12210ecce36beSmrgpostuninstall_cmds \ 12211ecce36beSmrgfinish_cmds \ 12212ecce36beSmrgsys_lib_search_path_spec \ 12213ecce36beSmrgsys_lib_dlsearch_path_spec; do 12214ecce36beSmrg case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12215ecce36beSmrg *[\\\\\\\`\\"\\\$]*) 12216ecce36beSmrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12217ecce36beSmrg ;; 12218ecce36beSmrg *) 12219ecce36beSmrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12220ecce36beSmrg ;; 12221ecce36beSmrg esac 12222ecce36beSmrgdone 12223ecce36beSmrg 12224ecce36beSmrg# Fix-up fallback echo if it was mangled by the above quoting rules. 12225ecce36beSmrgcase \$lt_ECHO in 12226ecce36beSmrg*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 12227ecce36beSmrg ;; 12228ecce36beSmrgesac 12229ecce36beSmrg 12230ecce36beSmrgac_aux_dir='$ac_aux_dir' 12231ecce36beSmrgxsi_shell='$xsi_shell' 12232ecce36beSmrglt_shell_append='$lt_shell_append' 12233ecce36beSmrg 12234ecce36beSmrg# See if we are running on zsh, and set the options which allow our 12235ecce36beSmrg# commands through without removal of \ escapes INIT. 12236ecce36beSmrgif test -n "\${ZSH_VERSION+set}" ; then 12237ecce36beSmrg setopt NO_GLOB_SUBST 12238ecce36beSmrgfi 12239ecce36beSmrg 12240ecce36beSmrg 12241ecce36beSmrg PACKAGE='$PACKAGE' 12242ecce36beSmrg VERSION='$VERSION' 12243ecce36beSmrg TIMESTAMP='$TIMESTAMP' 12244ecce36beSmrg RM='$RM' 12245ecce36beSmrg ofile='$ofile' 12246ecce36beSmrg 12247ecce36beSmrg 12248ecce36beSmrg 12249ecce36beSmrg 12250ecce36beSmrg_ACEOF 12251ecce36beSmrg 12252ecce36beSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12253ecce36beSmrg 12254ecce36beSmrg# Handling of arguments. 12255ecce36beSmrgfor ac_config_target in $ac_config_targets 12256ecce36beSmrgdo 12257ecce36beSmrg case $ac_config_target in 12258ecce36beSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12259ecce36beSmrg "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12260ecce36beSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12261ecce36beSmrg "aux/Makefile") CONFIG_FILES="$CONFIG_FILES aux/Makefile" ;; 12262ecce36beSmrg "aux/xcb-aux.pc") CONFIG_FILES="$CONFIG_FILES aux/xcb-aux.pc" ;; 12263ecce36beSmrg "reply/Makefile") CONFIG_FILES="$CONFIG_FILES reply/Makefile" ;; 12264ecce36beSmrg "reply/xcb-reply.pc") CONFIG_FILES="$CONFIG_FILES reply/xcb-reply.pc" ;; 12265ecce36beSmrg "image/Makefile") CONFIG_FILES="$CONFIG_FILES image/Makefile" ;; 12266ecce36beSmrg "image/xcb-image.pc") CONFIG_FILES="$CONFIG_FILES image/xcb-image.pc" ;; 12267ecce36beSmrg "atom/Makefile") CONFIG_FILES="$CONFIG_FILES atom/Makefile" ;; 12268ecce36beSmrg "atom/xcb-atom.pc") CONFIG_FILES="$CONFIG_FILES atom/xcb-atom.pc" ;; 12269ecce36beSmrg "event/Makefile") CONFIG_FILES="$CONFIG_FILES event/Makefile" ;; 12270ecce36beSmrg "event/xcb-event.pc") CONFIG_FILES="$CONFIG_FILES event/xcb-event.pc" ;; 12271ecce36beSmrg "keysyms/Makefile") CONFIG_FILES="$CONFIG_FILES keysyms/Makefile" ;; 12272ecce36beSmrg "keysyms/xcb-keysyms.pc") CONFIG_FILES="$CONFIG_FILES keysyms/xcb-keysyms.pc" ;; 12273ecce36beSmrg "property/Makefile") CONFIG_FILES="$CONFIG_FILES property/Makefile" ;; 12274ecce36beSmrg "property/xcb-property.pc") CONFIG_FILES="$CONFIG_FILES property/xcb-property.pc" ;; 12275ecce36beSmrg "icccm/Makefile") CONFIG_FILES="$CONFIG_FILES icccm/Makefile" ;; 12276ecce36beSmrg "icccm/xcb-icccm.pc") CONFIG_FILES="$CONFIG_FILES icccm/xcb-icccm.pc" ;; 12277ecce36beSmrg "renderutil/Makefile") CONFIG_FILES="$CONFIG_FILES renderutil/Makefile" ;; 12278ecce36beSmrg "renderutil/xcb-renderutil.pc") CONFIG_FILES="$CONFIG_FILES renderutil/xcb-renderutil.pc" ;; 12279ecce36beSmrg "xcb_util_intro") CONFIG_FILES="$CONFIG_FILES xcb_util_intro" ;; 12280ecce36beSmrg 12281ecce36beSmrg *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12282ecce36beSmrg esac 12283ecce36beSmrgdone 12284ecce36beSmrg 12285ecce36beSmrg 12286ecce36beSmrg# If the user did not use the arguments to specify the items to instantiate, 12287ecce36beSmrg# then the envvar interface is used. Set only those that are not. 12288ecce36beSmrg# We use the long form for the default assignment because of an extremely 12289ecce36beSmrg# bizarre bug on SunOS 4.1.3. 12290ecce36beSmrgif $ac_need_defaults; then 12291ecce36beSmrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12292ecce36beSmrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12293ecce36beSmrgfi 12294ecce36beSmrg 12295ecce36beSmrg# Have a temporary directory for convenience. Make it in the build tree 12296ecce36beSmrg# simply because there is no reason against having it here, and in addition, 12297ecce36beSmrg# creating and moving files from /tmp can sometimes cause problems. 12298ecce36beSmrg# Hook for its removal unless debugging. 12299ecce36beSmrg# Note that there is a small window in which the directory will not be cleaned: 12300ecce36beSmrg# after its creation but before its name has been assigned to `$tmp'. 12301ecce36beSmrg$debug || 12302ecce36beSmrg{ 12303ecce36beSmrg tmp= 12304ecce36beSmrg trap 'exit_status=$? 12305ecce36beSmrg { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12306ecce36beSmrg' 0 12307ecce36beSmrg trap 'as_fn_exit 1' 1 2 13 15 12308ecce36beSmrg} 12309ecce36beSmrg# Create a (secure) tmp directory for tmp files. 12310ecce36beSmrg 12311ecce36beSmrg{ 12312ecce36beSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12313ecce36beSmrg test -n "$tmp" && test -d "$tmp" 12314ecce36beSmrg} || 12315ecce36beSmrg{ 12316ecce36beSmrg tmp=./conf$$-$RANDOM 12317ecce36beSmrg (umask 077 && mkdir "$tmp") 12318ecce36beSmrg} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 12319ecce36beSmrg 12320ecce36beSmrg# Set up the scripts for CONFIG_FILES section. 12321ecce36beSmrg# No need to generate them if there are no CONFIG_FILES. 12322ecce36beSmrg# This happens for instance with `./config.status config.h'. 12323ecce36beSmrgif test -n "$CONFIG_FILES"; then 12324ecce36beSmrg 12325ecce36beSmrg 12326ecce36beSmrgac_cr=`echo X | tr X '\015'` 12327ecce36beSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 12328ecce36beSmrg# But we know of no other shell where ac_cr would be empty at this 12329ecce36beSmrg# point, so we can use a bashism as a fallback. 12330ecce36beSmrgif test "x$ac_cr" = x; then 12331ecce36beSmrg eval ac_cr=\$\'\\r\' 12332ecce36beSmrgfi 12333ecce36beSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12334ecce36beSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12335ecce36beSmrg ac_cs_awk_cr='\r' 12336ecce36beSmrgelse 12337ecce36beSmrg ac_cs_awk_cr=$ac_cr 12338ecce36beSmrgfi 12339ecce36beSmrg 12340ecce36beSmrgecho 'BEGIN {' >"$tmp/subs1.awk" && 12341ecce36beSmrg_ACEOF 12342ecce36beSmrg 12343ecce36beSmrg 12344ecce36beSmrg{ 12345ecce36beSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 12346ecce36beSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12347ecce36beSmrg echo "_ACEOF" 12348ecce36beSmrg} >conf$$subs.sh || 12349ecce36beSmrg as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12350ecce36beSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 12351ecce36beSmrgac_delim='%!_!# ' 12352ecce36beSmrgfor ac_last_try in false false false false false :; do 12353ecce36beSmrg . ./conf$$subs.sh || 12354ecce36beSmrg as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12355ecce36beSmrg 12356ecce36beSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12357ecce36beSmrg if test $ac_delim_n = $ac_delim_num; then 12358ecce36beSmrg break 12359ecce36beSmrg elif $ac_last_try; then 12360ecce36beSmrg as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12361ecce36beSmrg else 12362ecce36beSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12363ecce36beSmrg fi 12364ecce36beSmrgdone 12365ecce36beSmrgrm -f conf$$subs.sh 12366ecce36beSmrg 12367ecce36beSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12368ecce36beSmrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK && 12369ecce36beSmrg_ACEOF 12370ecce36beSmrgsed -n ' 12371ecce36beSmrgh 12372ecce36beSmrgs/^/S["/; s/!.*/"]=/ 12373ecce36beSmrgp 12374ecce36beSmrgg 12375ecce36beSmrgs/^[^!]*!// 12376ecce36beSmrg:repl 12377ecce36beSmrgt repl 12378ecce36beSmrgs/'"$ac_delim"'$// 12379ecce36beSmrgt delim 12380ecce36beSmrg:nl 12381ecce36beSmrgh 12382ecce36beSmrgs/\(.\{148\}\).*/\1/ 12383ecce36beSmrgt more1 12384ecce36beSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12385ecce36beSmrgp 12386ecce36beSmrgn 12387ecce36beSmrgb repl 12388ecce36beSmrg:more1 12389ecce36beSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12390ecce36beSmrgp 12391ecce36beSmrgg 12392ecce36beSmrgs/.\{148\}// 12393ecce36beSmrgt nl 12394ecce36beSmrg:delim 12395ecce36beSmrgh 12396ecce36beSmrgs/\(.\{148\}\).*/\1/ 12397ecce36beSmrgt more2 12398ecce36beSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 12399ecce36beSmrgp 12400ecce36beSmrgb 12401ecce36beSmrg:more2 12402ecce36beSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12403ecce36beSmrgp 12404ecce36beSmrgg 12405ecce36beSmrgs/.\{148\}// 12406ecce36beSmrgt delim 12407ecce36beSmrg' <conf$$subs.awk | sed ' 12408ecce36beSmrg/^[^""]/{ 12409ecce36beSmrg N 12410ecce36beSmrg s/\n// 12411ecce36beSmrg} 12412ecce36beSmrg' >>$CONFIG_STATUS || ac_write_fail=1 12413ecce36beSmrgrm -f conf$$subs.awk 12414ecce36beSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12415ecce36beSmrg_ACAWK 12416ecce36beSmrgcat >>"\$tmp/subs1.awk" <<_ACAWK && 12417ecce36beSmrg for (key in S) S_is_set[key] = 1 12418ecce36beSmrg FS = "" 12419ecce36beSmrg 12420ecce36beSmrg} 12421ecce36beSmrg{ 12422ecce36beSmrg line = $ 0 12423ecce36beSmrg nfields = split(line, field, "@") 12424ecce36beSmrg substed = 0 12425ecce36beSmrg len = length(field[1]) 12426ecce36beSmrg for (i = 2; i < nfields; i++) { 12427ecce36beSmrg key = field[i] 12428ecce36beSmrg keylen = length(key) 12429ecce36beSmrg if (S_is_set[key]) { 12430ecce36beSmrg value = S[key] 12431ecce36beSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12432ecce36beSmrg len += length(value) + length(field[++i]) 12433ecce36beSmrg substed = 1 12434ecce36beSmrg } else 12435ecce36beSmrg len += 1 + keylen 12436ecce36beSmrg } 12437ecce36beSmrg 12438ecce36beSmrg print line 12439ecce36beSmrg} 12440ecce36beSmrg 12441ecce36beSmrg_ACAWK 12442ecce36beSmrg_ACEOF 12443ecce36beSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12444ecce36beSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12445ecce36beSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12446ecce36beSmrgelse 12447ecce36beSmrg cat 12448ecce36beSmrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 12449ecce36beSmrg || as_fn_error "could not setup config files machinery" "$LINENO" 5 12450ecce36beSmrg_ACEOF 12451ecce36beSmrg 12452ecce36beSmrg# VPATH may cause trouble with some makes, so we remove $(srcdir), 12453ecce36beSmrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12454ecce36beSmrg# trailing colons and then remove the whole line if VPATH becomes empty 12455ecce36beSmrg# (actually we leave an empty line to preserve line numbers). 12456ecce36beSmrgif test "x$srcdir" = x.; then 12457ecce36beSmrg ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12458ecce36beSmrgs/:*\$(srcdir):*/:/ 12459ecce36beSmrgs/:*\${srcdir}:*/:/ 12460ecce36beSmrgs/:*@srcdir@:*/:/ 12461ecce36beSmrgs/^\([^=]*=[ ]*\):*/\1/ 12462ecce36beSmrgs/:*$// 12463ecce36beSmrgs/^[^=]*=[ ]*$// 12464ecce36beSmrg}' 12465ecce36beSmrgfi 12466ecce36beSmrg 12467ecce36beSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12468ecce36beSmrgfi # test -n "$CONFIG_FILES" 12469ecce36beSmrg 12470ecce36beSmrg 12471ecce36beSmrgeval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 12472ecce36beSmrgshift 12473ecce36beSmrgfor ac_tag 12474ecce36beSmrgdo 12475ecce36beSmrg case $ac_tag in 12476ecce36beSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 12477ecce36beSmrg esac 12478ecce36beSmrg case $ac_mode$ac_tag in 12479ecce36beSmrg :[FHL]*:*);; 12480ecce36beSmrg :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 12481ecce36beSmrg :[FH]-) ac_tag=-:-;; 12482ecce36beSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12483ecce36beSmrg esac 12484ecce36beSmrg ac_save_IFS=$IFS 12485ecce36beSmrg IFS=: 12486ecce36beSmrg set x $ac_tag 12487ecce36beSmrg IFS=$ac_save_IFS 12488ecce36beSmrg shift 12489ecce36beSmrg ac_file=$1 12490ecce36beSmrg shift 12491ecce36beSmrg 12492ecce36beSmrg case $ac_mode in 12493ecce36beSmrg :L) ac_source=$1;; 12494ecce36beSmrg :[FH]) 12495ecce36beSmrg ac_file_inputs= 12496ecce36beSmrg for ac_f 12497ecce36beSmrg do 12498ecce36beSmrg case $ac_f in 12499ecce36beSmrg -) ac_f="$tmp/stdin";; 12500ecce36beSmrg *) # Look for the file first in the build tree, then in the source tree 12501ecce36beSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 12502ecce36beSmrg # because $ac_f cannot contain `:'. 12503ecce36beSmrg test -f "$ac_f" || 12504ecce36beSmrg case $ac_f in 12505ecce36beSmrg [\\/$]*) false;; 12506ecce36beSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12507ecce36beSmrg esac || 12508ecce36beSmrg as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12509ecce36beSmrg esac 12510ecce36beSmrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12511ecce36beSmrg as_fn_append ac_file_inputs " '$ac_f'" 12512ecce36beSmrg done 12513ecce36beSmrg 12514ecce36beSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 12515ecce36beSmrg # use $as_me), people would be surprised to read: 12516ecce36beSmrg # /* config.h. Generated by config.status. */ 12517ecce36beSmrg configure_input='Generated from '` 12518ecce36beSmrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12519ecce36beSmrg `' by configure.' 12520ecce36beSmrg if test x"$ac_file" != x-; then 12521ecce36beSmrg configure_input="$ac_file. $configure_input" 12522ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12523ecce36beSmrg$as_echo "$as_me: creating $ac_file" >&6;} 12524ecce36beSmrg fi 12525ecce36beSmrg # Neutralize special characters interpreted by sed in replacement strings. 12526ecce36beSmrg case $configure_input in #( 12527ecce36beSmrg *\&* | *\|* | *\\* ) 12528ecce36beSmrg ac_sed_conf_input=`$as_echo "$configure_input" | 12529ecce36beSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 12530ecce36beSmrg *) ac_sed_conf_input=$configure_input;; 12531ecce36beSmrg esac 12532ecce36beSmrg 12533ecce36beSmrg case $ac_tag in 12534ecce36beSmrg *:-:* | *:-) cat >"$tmp/stdin" \ 12535ecce36beSmrg || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 12536ecce36beSmrg esac 12537ecce36beSmrg ;; 12538ecce36beSmrg esac 12539ecce36beSmrg 12540ecce36beSmrg ac_dir=`$as_dirname -- "$ac_file" || 12541ecce36beSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12542ecce36beSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 12543ecce36beSmrg X"$ac_file" : 'X\(//\)$' \| \ 12544ecce36beSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12545ecce36beSmrg$as_echo X"$ac_file" | 12546ecce36beSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12547ecce36beSmrg s//\1/ 12548ecce36beSmrg q 12549ecce36beSmrg } 12550ecce36beSmrg /^X\(\/\/\)[^/].*/{ 12551ecce36beSmrg s//\1/ 12552ecce36beSmrg q 12553ecce36beSmrg } 12554ecce36beSmrg /^X\(\/\/\)$/{ 12555ecce36beSmrg s//\1/ 12556ecce36beSmrg q 12557ecce36beSmrg } 12558ecce36beSmrg /^X\(\/\).*/{ 12559ecce36beSmrg s//\1/ 12560ecce36beSmrg q 12561ecce36beSmrg } 12562ecce36beSmrg s/.*/./; q'` 12563ecce36beSmrg as_dir="$ac_dir"; as_fn_mkdir_p 12564ecce36beSmrg ac_builddir=. 12565ecce36beSmrg 12566ecce36beSmrgcase "$ac_dir" in 12567ecce36beSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12568ecce36beSmrg*) 12569ecce36beSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12570ecce36beSmrg # A ".." for each directory in $ac_dir_suffix. 12571ecce36beSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12572ecce36beSmrg case $ac_top_builddir_sub in 12573ecce36beSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12574ecce36beSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12575ecce36beSmrg esac ;; 12576ecce36beSmrgesac 12577ecce36beSmrgac_abs_top_builddir=$ac_pwd 12578ecce36beSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 12579ecce36beSmrg# for backward compatibility: 12580ecce36beSmrgac_top_builddir=$ac_top_build_prefix 12581ecce36beSmrg 12582ecce36beSmrgcase $srcdir in 12583ecce36beSmrg .) # We are building in place. 12584ecce36beSmrg ac_srcdir=. 12585ecce36beSmrg ac_top_srcdir=$ac_top_builddir_sub 12586ecce36beSmrg ac_abs_top_srcdir=$ac_pwd ;; 12587ecce36beSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 12588ecce36beSmrg ac_srcdir=$srcdir$ac_dir_suffix; 12589ecce36beSmrg ac_top_srcdir=$srcdir 12590ecce36beSmrg ac_abs_top_srcdir=$srcdir ;; 12591ecce36beSmrg *) # Relative name. 12592ecce36beSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12593ecce36beSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 12594ecce36beSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12595ecce36beSmrgesac 12596ecce36beSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12597ecce36beSmrg 12598ecce36beSmrg 12599ecce36beSmrg case $ac_mode in 12600ecce36beSmrg :F) 12601ecce36beSmrg # 12602ecce36beSmrg # CONFIG_FILE 12603ecce36beSmrg # 12604ecce36beSmrg 12605ecce36beSmrg case $INSTALL in 12606ecce36beSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12607ecce36beSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12608ecce36beSmrg esac 12609ecce36beSmrg ac_MKDIR_P=$MKDIR_P 12610ecce36beSmrg case $MKDIR_P in 12611ecce36beSmrg [\\/$]* | ?:[\\/]* ) ;; 12612ecce36beSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12613ecce36beSmrg esac 12614ecce36beSmrg_ACEOF 12615ecce36beSmrg 12616ecce36beSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12617ecce36beSmrg# If the template does not know about datarootdir, expand it. 12618ecce36beSmrg# FIXME: This hack should be removed a few years after 2.60. 12619ecce36beSmrgac_datarootdir_hack=; ac_datarootdir_seen= 12620ecce36beSmrgac_sed_dataroot=' 12621ecce36beSmrg/datarootdir/ { 12622ecce36beSmrg p 12623ecce36beSmrg q 12624ecce36beSmrg} 12625ecce36beSmrg/@datadir@/p 12626ecce36beSmrg/@docdir@/p 12627ecce36beSmrg/@infodir@/p 12628ecce36beSmrg/@localedir@/p 12629ecce36beSmrg/@mandir@/p' 12630ecce36beSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12631ecce36beSmrg*datarootdir*) ac_datarootdir_seen=yes;; 12632ecce36beSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12633ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12634ecce36beSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12635ecce36beSmrg_ACEOF 12636ecce36beSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12637ecce36beSmrg ac_datarootdir_hack=' 12638ecce36beSmrg s&@datadir@&$datadir&g 12639ecce36beSmrg s&@docdir@&$docdir&g 12640ecce36beSmrg s&@infodir@&$infodir&g 12641ecce36beSmrg s&@localedir@&$localedir&g 12642ecce36beSmrg s&@mandir@&$mandir&g 12643ecce36beSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 12644ecce36beSmrgesac 12645ecce36beSmrg_ACEOF 12646ecce36beSmrg 12647ecce36beSmrg# Neutralize VPATH when `$srcdir' = `.'. 12648ecce36beSmrg# Shell code in configure.ac might set extrasub. 12649ecce36beSmrg# FIXME: do we really want to maintain this feature? 12650ecce36beSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12651ecce36beSmrgac_sed_extra="$ac_vpsub 12652ecce36beSmrg$extrasub 12653ecce36beSmrg_ACEOF 12654ecce36beSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12655ecce36beSmrg:t 12656ecce36beSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12657ecce36beSmrgs|@configure_input@|$ac_sed_conf_input|;t t 12658ecce36beSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 12659ecce36beSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 12660ecce36beSmrgs&@srcdir@&$ac_srcdir&;t t 12661ecce36beSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 12662ecce36beSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 12663ecce36beSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12664ecce36beSmrgs&@builddir@&$ac_builddir&;t t 12665ecce36beSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 12666ecce36beSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12667ecce36beSmrgs&@INSTALL@&$ac_INSTALL&;t t 12668ecce36beSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 12669ecce36beSmrg$ac_datarootdir_hack 12670ecce36beSmrg" 12671ecce36beSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 12672ecce36beSmrg || as_fn_error "could not create $ac_file" "$LINENO" 5 12673ecce36beSmrg 12674ecce36beSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12675ecce36beSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12676ecce36beSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12677ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12678ecce36beSmrgwhich seems to be undefined. Please make sure it is defined." >&5 12679ecce36beSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12680ecce36beSmrgwhich seems to be undefined. Please make sure it is defined." >&2;} 12681ecce36beSmrg 12682ecce36beSmrg rm -f "$tmp/stdin" 12683ecce36beSmrg case $ac_file in 12684ecce36beSmrg -) cat "$tmp/out" && rm -f "$tmp/out";; 12685ecce36beSmrg *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 12686ecce36beSmrg esac \ 12687ecce36beSmrg || as_fn_error "could not create $ac_file" "$LINENO" 5 12688ecce36beSmrg ;; 12689ecce36beSmrg 12690ecce36beSmrg 12691ecce36beSmrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12692ecce36beSmrg$as_echo "$as_me: executing $ac_file commands" >&6;} 12693ecce36beSmrg ;; 12694ecce36beSmrg esac 12695ecce36beSmrg 12696ecce36beSmrg 12697ecce36beSmrg case $ac_file$ac_mode in 12698ecce36beSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12699ecce36beSmrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 12700ecce36beSmrg # are listed without --file. Let's play safe and only enable the eval 12701ecce36beSmrg # if we detect the quoting. 12702ecce36beSmrg case $CONFIG_FILES in 12703ecce36beSmrg *\'*) eval set x "$CONFIG_FILES" ;; 12704ecce36beSmrg *) set x $CONFIG_FILES ;; 12705ecce36beSmrg esac 12706ecce36beSmrg shift 12707ecce36beSmrg for mf 12708ecce36beSmrg do 12709ecce36beSmrg # Strip MF so we end up with the name of the file. 12710ecce36beSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 12711ecce36beSmrg # Check whether this is an Automake generated Makefile or not. 12712ecce36beSmrg # We used to match only the files named `Makefile.in', but 12713ecce36beSmrg # some people rename them; so instead we look at the file content. 12714ecce36beSmrg # Grep'ing the first line is not enough: some people post-process 12715ecce36beSmrg # each Makefile.in and add a new line on top of each file to say so. 12716ecce36beSmrg # Grep'ing the whole file is not good either: AIX grep has a line 12717ecce36beSmrg # limit of 2048, but all sed's we know have understand at least 4000. 12718ecce36beSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12719ecce36beSmrg dirpart=`$as_dirname -- "$mf" || 12720ecce36beSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12721ecce36beSmrg X"$mf" : 'X\(//\)[^/]' \| \ 12722ecce36beSmrg X"$mf" : 'X\(//\)$' \| \ 12723ecce36beSmrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12724ecce36beSmrg$as_echo X"$mf" | 12725ecce36beSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12726ecce36beSmrg s//\1/ 12727ecce36beSmrg q 12728ecce36beSmrg } 12729ecce36beSmrg /^X\(\/\/\)[^/].*/{ 12730ecce36beSmrg s//\1/ 12731ecce36beSmrg q 12732ecce36beSmrg } 12733ecce36beSmrg /^X\(\/\/\)$/{ 12734ecce36beSmrg s//\1/ 12735ecce36beSmrg q 12736ecce36beSmrg } 12737ecce36beSmrg /^X\(\/\).*/{ 12738ecce36beSmrg s//\1/ 12739ecce36beSmrg q 12740ecce36beSmrg } 12741ecce36beSmrg s/.*/./; q'` 12742ecce36beSmrg else 12743ecce36beSmrg continue 12744ecce36beSmrg fi 12745ecce36beSmrg # Extract the definition of DEPDIR, am__include, and am__quote 12746ecce36beSmrg # from the Makefile without running `make'. 12747ecce36beSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12748ecce36beSmrg test -z "$DEPDIR" && continue 12749ecce36beSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 12750ecce36beSmrg test -z "am__include" && continue 12751ecce36beSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12752ecce36beSmrg # When using ansi2knr, U may be empty or an underscore; expand it 12753ecce36beSmrg U=`sed -n 's/^U = //p' < "$mf"` 12754ecce36beSmrg # Find all dependency output files, they are included files with 12755ecce36beSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 12756ecce36beSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 12757ecce36beSmrg # expansion. 12758ecce36beSmrg for file in `sed -n " 12759ecce36beSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12760ecce36beSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 12761ecce36beSmrg # Make sure the directory exists. 12762ecce36beSmrg test -f "$dirpart/$file" && continue 12763ecce36beSmrg fdir=`$as_dirname -- "$file" || 12764ecce36beSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12765ecce36beSmrg X"$file" : 'X\(//\)[^/]' \| \ 12766ecce36beSmrg X"$file" : 'X\(//\)$' \| \ 12767ecce36beSmrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 12768ecce36beSmrg$as_echo X"$file" | 12769ecce36beSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12770ecce36beSmrg s//\1/ 12771ecce36beSmrg q 12772ecce36beSmrg } 12773ecce36beSmrg /^X\(\/\/\)[^/].*/{ 12774ecce36beSmrg s//\1/ 12775ecce36beSmrg q 12776ecce36beSmrg } 12777ecce36beSmrg /^X\(\/\/\)$/{ 12778ecce36beSmrg s//\1/ 12779ecce36beSmrg q 12780ecce36beSmrg } 12781ecce36beSmrg /^X\(\/\).*/{ 12782ecce36beSmrg s//\1/ 12783ecce36beSmrg q 12784ecce36beSmrg } 12785ecce36beSmrg s/.*/./; q'` 12786ecce36beSmrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 12787ecce36beSmrg # echo "creating $dirpart/$file" 12788ecce36beSmrg echo '# dummy' > "$dirpart/$file" 12789ecce36beSmrg done 12790ecce36beSmrg done 12791ecce36beSmrg} 12792ecce36beSmrg ;; 12793ecce36beSmrg "libtool":C) 12794ecce36beSmrg 12795ecce36beSmrg # See if we are running on zsh, and set the options which allow our 12796ecce36beSmrg # commands through without removal of \ escapes. 12797ecce36beSmrg if test -n "${ZSH_VERSION+set}" ; then 12798ecce36beSmrg setopt NO_GLOB_SUBST 12799ecce36beSmrg fi 12800ecce36beSmrg 12801ecce36beSmrg cfgfile="${ofile}T" 12802ecce36beSmrg trap "$RM \"$cfgfile\"; exit 1" 1 2 15 12803ecce36beSmrg $RM "$cfgfile" 12804ecce36beSmrg 12805ecce36beSmrg cat <<_LT_EOF >> "$cfgfile" 12806ecce36beSmrg#! $SHELL 12807ecce36beSmrg 12808ecce36beSmrg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 12809ecce36beSmrg# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 12810ecce36beSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12811ecce36beSmrg# NOTE: Changes made to this file will be lost: look at ltmain.sh. 12812ecce36beSmrg# 12813ecce36beSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 12814ecce36beSmrg# 2006, 2007, 2008 Free Software Foundation, Inc. 12815ecce36beSmrg# Written by Gordon Matzigkeit, 1996 12816ecce36beSmrg# 12817ecce36beSmrg# This file is part of GNU Libtool. 12818ecce36beSmrg# 12819ecce36beSmrg# GNU Libtool is free software; you can redistribute it and/or 12820ecce36beSmrg# modify it under the terms of the GNU General Public License as 12821ecce36beSmrg# published by the Free Software Foundation; either version 2 of 12822ecce36beSmrg# the License, or (at your option) any later version. 12823ecce36beSmrg# 12824ecce36beSmrg# As a special exception to the GNU General Public License, 12825ecce36beSmrg# if you distribute this file as part of a program or library that 12826ecce36beSmrg# is built using GNU Libtool, you may include this file under the 12827ecce36beSmrg# same distribution terms that you use for the rest of that program. 12828ecce36beSmrg# 12829ecce36beSmrg# GNU Libtool is distributed in the hope that it will be useful, 12830ecce36beSmrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 12831ecce36beSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12832ecce36beSmrg# GNU General Public License for more details. 12833ecce36beSmrg# 12834ecce36beSmrg# You should have received a copy of the GNU General Public License 12835ecce36beSmrg# along with GNU Libtool; see the file COPYING. If not, a copy 12836ecce36beSmrg# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 12837ecce36beSmrg# obtained by writing to the Free Software Foundation, Inc., 12838ecce36beSmrg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 12839ecce36beSmrg 12840ecce36beSmrg 12841ecce36beSmrg# The names of the tagged configurations supported by this script. 12842ecce36beSmrgavailable_tags="" 12843ecce36beSmrg 12844ecce36beSmrg# ### BEGIN LIBTOOL CONFIG 12845ecce36beSmrg 12846ecce36beSmrg# Which release of libtool.m4 was used? 12847ecce36beSmrgmacro_version=$macro_version 12848ecce36beSmrgmacro_revision=$macro_revision 12849ecce36beSmrg 12850ecce36beSmrg# Whether or not to build shared libraries. 12851ecce36beSmrgbuild_libtool_libs=$enable_shared 12852ecce36beSmrg 12853ecce36beSmrg# Whether or not to build static libraries. 12854ecce36beSmrgbuild_old_libs=$enable_static 12855ecce36beSmrg 12856ecce36beSmrg# What type of objects to build. 12857ecce36beSmrgpic_mode=$pic_mode 12858ecce36beSmrg 12859ecce36beSmrg# Whether or not to optimize for fast installation. 12860ecce36beSmrgfast_install=$enable_fast_install 12861ecce36beSmrg 12862ecce36beSmrg# The host system. 12863ecce36beSmrghost_alias=$host_alias 12864ecce36beSmrghost=$host 12865ecce36beSmrghost_os=$host_os 12866ecce36beSmrg 12867ecce36beSmrg# The build system. 12868ecce36beSmrgbuild_alias=$build_alias 12869ecce36beSmrgbuild=$build 12870ecce36beSmrgbuild_os=$build_os 12871ecce36beSmrg 12872ecce36beSmrg# A sed program that does not truncate output. 12873ecce36beSmrgSED=$lt_SED 12874ecce36beSmrg 12875ecce36beSmrg# Sed that helps us avoid accidentally triggering echo(1) options like -n. 12876ecce36beSmrgXsed="\$SED -e 1s/^X//" 12877ecce36beSmrg 12878ecce36beSmrg# A grep program that handles long lines. 12879ecce36beSmrgGREP=$lt_GREP 12880ecce36beSmrg 12881ecce36beSmrg# An ERE matcher. 12882ecce36beSmrgEGREP=$lt_EGREP 12883ecce36beSmrg 12884ecce36beSmrg# A literal string matcher. 12885ecce36beSmrgFGREP=$lt_FGREP 12886ecce36beSmrg 12887ecce36beSmrg# A BSD- or MS-compatible name lister. 12888ecce36beSmrgNM=$lt_NM 12889ecce36beSmrg 12890ecce36beSmrg# Whether we need soft or hard links. 12891ecce36beSmrgLN_S=$lt_LN_S 12892ecce36beSmrg 12893ecce36beSmrg# What is the maximum length of a command? 12894ecce36beSmrgmax_cmd_len=$max_cmd_len 12895ecce36beSmrg 12896ecce36beSmrg# Object file suffix (normally "o"). 12897ecce36beSmrgobjext=$ac_objext 12898ecce36beSmrg 12899ecce36beSmrg# Executable file suffix (normally ""). 12900ecce36beSmrgexeext=$exeext 12901ecce36beSmrg 12902ecce36beSmrg# whether the shell understands "unset". 12903ecce36beSmrglt_unset=$lt_unset 12904ecce36beSmrg 12905ecce36beSmrg# turn spaces into newlines. 12906ecce36beSmrgSP2NL=$lt_lt_SP2NL 12907ecce36beSmrg 12908ecce36beSmrg# turn newlines into spaces. 12909ecce36beSmrgNL2SP=$lt_lt_NL2SP 12910ecce36beSmrg 12911ecce36beSmrg# How to create reloadable object files. 12912ecce36beSmrgreload_flag=$lt_reload_flag 12913ecce36beSmrgreload_cmds=$lt_reload_cmds 12914ecce36beSmrg 12915ecce36beSmrg# An object symbol dumper. 12916ecce36beSmrgOBJDUMP=$lt_OBJDUMP 12917ecce36beSmrg 12918ecce36beSmrg# Method to check whether dependent libraries are shared objects. 12919ecce36beSmrgdeplibs_check_method=$lt_deplibs_check_method 12920ecce36beSmrg 12921ecce36beSmrg# Command to use when deplibs_check_method == "file_magic". 12922ecce36beSmrgfile_magic_cmd=$lt_file_magic_cmd 12923ecce36beSmrg 12924ecce36beSmrg# The archiver. 12925ecce36beSmrgAR=$lt_AR 12926ecce36beSmrgAR_FLAGS=$lt_AR_FLAGS 12927ecce36beSmrg 12928ecce36beSmrg# A symbol stripping program. 12929ecce36beSmrgSTRIP=$lt_STRIP 12930ecce36beSmrg 12931ecce36beSmrg# Commands used to install an old-style archive. 12932ecce36beSmrgRANLIB=$lt_RANLIB 12933ecce36beSmrgold_postinstall_cmds=$lt_old_postinstall_cmds 12934ecce36beSmrgold_postuninstall_cmds=$lt_old_postuninstall_cmds 12935ecce36beSmrg 12936ecce36beSmrg# A C compiler. 12937ecce36beSmrgLTCC=$lt_CC 12938ecce36beSmrg 12939ecce36beSmrg# LTCC compiler flags. 12940ecce36beSmrgLTCFLAGS=$lt_CFLAGS 12941ecce36beSmrg 12942ecce36beSmrg# Take the output of nm and produce a listing of raw symbols and C names. 12943ecce36beSmrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12944ecce36beSmrg 12945ecce36beSmrg# Transform the output of nm in a proper C declaration. 12946ecce36beSmrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12947ecce36beSmrg 12948ecce36beSmrg# Transform the output of nm in a C name address pair. 12949ecce36beSmrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12950ecce36beSmrg 12951ecce36beSmrg# Transform the output of nm in a C name address pair when lib prefix is needed. 12952ecce36beSmrgglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 12953ecce36beSmrg 12954ecce36beSmrg# The name of the directory that contains temporary libtool files. 12955ecce36beSmrgobjdir=$objdir 12956ecce36beSmrg 12957ecce36beSmrg# Shell to use when invoking shell scripts. 12958ecce36beSmrgSHELL=$lt_SHELL 12959ecce36beSmrg 12960ecce36beSmrg# An echo program that does not interpret backslashes. 12961ecce36beSmrgECHO=$lt_ECHO 12962ecce36beSmrg 12963ecce36beSmrg# Used to examine libraries when file_magic_cmd begins with "file". 12964ecce36beSmrgMAGIC_CMD=$MAGIC_CMD 12965ecce36beSmrg 12966ecce36beSmrg# Must we lock files when doing compilation? 12967ecce36beSmrgneed_locks=$lt_need_locks 12968ecce36beSmrg 12969ecce36beSmrg# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 12970ecce36beSmrgDSYMUTIL=$lt_DSYMUTIL 12971ecce36beSmrg 12972ecce36beSmrg# Tool to change global to local symbols on Mac OS X. 12973ecce36beSmrgNMEDIT=$lt_NMEDIT 12974ecce36beSmrg 12975ecce36beSmrg# Tool to manipulate fat objects and archives on Mac OS X. 12976ecce36beSmrgLIPO=$lt_LIPO 12977ecce36beSmrg 12978ecce36beSmrg# ldd/readelf like tool for Mach-O binaries on Mac OS X. 12979ecce36beSmrgOTOOL=$lt_OTOOL 12980ecce36beSmrg 12981ecce36beSmrg# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 12982ecce36beSmrgOTOOL64=$lt_OTOOL64 12983ecce36beSmrg 12984ecce36beSmrg# Old archive suffix (normally "a"). 12985ecce36beSmrglibext=$libext 12986ecce36beSmrg 12987ecce36beSmrg# Shared library suffix (normally ".so"). 12988ecce36beSmrgshrext_cmds=$lt_shrext_cmds 12989ecce36beSmrg 12990ecce36beSmrg# The commands to extract the exported symbol list from a shared archive. 12991ecce36beSmrgextract_expsyms_cmds=$lt_extract_expsyms_cmds 12992ecce36beSmrg 12993ecce36beSmrg# Variables whose values should be saved in libtool wrapper scripts and 12994ecce36beSmrg# restored at link time. 12995ecce36beSmrgvariables_saved_for_relink=$lt_variables_saved_for_relink 12996ecce36beSmrg 12997ecce36beSmrg# Do we need the "lib" prefix for modules? 12998ecce36beSmrgneed_lib_prefix=$need_lib_prefix 12999ecce36beSmrg 13000ecce36beSmrg# Do we need a version for libraries? 13001ecce36beSmrgneed_version=$need_version 13002ecce36beSmrg 13003ecce36beSmrg# Library versioning type. 13004ecce36beSmrgversion_type=$version_type 13005ecce36beSmrg 13006ecce36beSmrg# Shared library runtime path variable. 13007ecce36beSmrgrunpath_var=$runpath_var 13008ecce36beSmrg 13009ecce36beSmrg# Shared library path variable. 13010ecce36beSmrgshlibpath_var=$shlibpath_var 13011ecce36beSmrg 13012ecce36beSmrg# Is shlibpath searched before the hard-coded library search path? 13013ecce36beSmrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath 13014ecce36beSmrg 13015ecce36beSmrg# Format of library name prefix. 13016ecce36beSmrglibname_spec=$lt_libname_spec 13017ecce36beSmrg 13018ecce36beSmrg# List of archive names. First name is the real one, the rest are links. 13019ecce36beSmrg# The last name is the one that the linker finds with -lNAME 13020ecce36beSmrglibrary_names_spec=$lt_library_names_spec 13021ecce36beSmrg 13022ecce36beSmrg# The coded name of the library, if different from the real name. 13023ecce36beSmrgsoname_spec=$lt_soname_spec 13024ecce36beSmrg 13025ecce36beSmrg# Command to use after installation of a shared archive. 13026ecce36beSmrgpostinstall_cmds=$lt_postinstall_cmds 13027ecce36beSmrg 13028ecce36beSmrg# Command to use after uninstallation of a shared archive. 13029ecce36beSmrgpostuninstall_cmds=$lt_postuninstall_cmds 13030ecce36beSmrg 13031ecce36beSmrg# Commands used to finish a libtool library installation in a directory. 13032ecce36beSmrgfinish_cmds=$lt_finish_cmds 13033ecce36beSmrg 13034ecce36beSmrg# As "finish_cmds", except a single script fragment to be evaled but 13035ecce36beSmrg# not shown. 13036ecce36beSmrgfinish_eval=$lt_finish_eval 13037ecce36beSmrg 13038ecce36beSmrg# Whether we should hardcode library paths into libraries. 13039ecce36beSmrghardcode_into_libs=$hardcode_into_libs 13040ecce36beSmrg 13041ecce36beSmrg# Compile-time system search path for libraries. 13042ecce36beSmrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13043ecce36beSmrg 13044ecce36beSmrg# Run-time system search path for libraries. 13045ecce36beSmrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13046ecce36beSmrg 13047ecce36beSmrg# Whether dlopen is supported. 13048ecce36beSmrgdlopen_support=$enable_dlopen 13049ecce36beSmrg 13050ecce36beSmrg# Whether dlopen of programs is supported. 13051ecce36beSmrgdlopen_self=$enable_dlopen_self 13052ecce36beSmrg 13053ecce36beSmrg# Whether dlopen of statically linked programs is supported. 13054ecce36beSmrgdlopen_self_static=$enable_dlopen_self_static 13055ecce36beSmrg 13056ecce36beSmrg# Commands to strip libraries. 13057ecce36beSmrgold_striplib=$lt_old_striplib 13058ecce36beSmrgstriplib=$lt_striplib 13059ecce36beSmrg 13060ecce36beSmrg 13061ecce36beSmrg# The linker used to build libraries. 13062ecce36beSmrgLD=$lt_LD 13063ecce36beSmrg 13064ecce36beSmrg# Commands used to build an old-style archive. 13065ecce36beSmrgold_archive_cmds=$lt_old_archive_cmds 13066ecce36beSmrg 13067ecce36beSmrg# A language specific compiler. 13068ecce36beSmrgCC=$lt_compiler 13069ecce36beSmrg 13070ecce36beSmrg# Is the compiler the GNU compiler? 13071ecce36beSmrgwith_gcc=$GCC 13072ecce36beSmrg 13073ecce36beSmrg# Compiler flag to turn off builtin functions. 13074ecce36beSmrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13075ecce36beSmrg 13076ecce36beSmrg# How to pass a linker flag through the compiler. 13077ecce36beSmrgwl=$lt_lt_prog_compiler_wl 13078ecce36beSmrg 13079ecce36beSmrg# Additional compiler flags for building library objects. 13080ecce36beSmrgpic_flag=$lt_lt_prog_compiler_pic 13081ecce36beSmrg 13082ecce36beSmrg# Compiler flag to prevent dynamic linking. 13083ecce36beSmrglink_static_flag=$lt_lt_prog_compiler_static 13084ecce36beSmrg 13085ecce36beSmrg# Does compiler simultaneously support -c and -o options? 13086ecce36beSmrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o 13087ecce36beSmrg 13088ecce36beSmrg# Whether or not to add -lc for building shared libraries. 13089ecce36beSmrgbuild_libtool_need_lc=$archive_cmds_need_lc 13090ecce36beSmrg 13091ecce36beSmrg# Whether or not to disallow shared libs when runtime libs are static. 13092ecce36beSmrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13093ecce36beSmrg 13094ecce36beSmrg# Compiler flag to allow reflexive dlopens. 13095ecce36beSmrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13096ecce36beSmrg 13097ecce36beSmrg# Compiler flag to generate shared objects directly from archives. 13098ecce36beSmrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec 13099ecce36beSmrg 13100ecce36beSmrg# Whether the compiler copes with passing no objects directly. 13101ecce36beSmrgcompiler_needs_object=$lt_compiler_needs_object 13102ecce36beSmrg 13103ecce36beSmrg# Create an old-style archive from a shared archive. 13104ecce36beSmrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13105ecce36beSmrg 13106ecce36beSmrg# Create a temporary old-style archive to link instead of a shared archive. 13107ecce36beSmrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13108ecce36beSmrg 13109ecce36beSmrg# Commands used to build a shared archive. 13110ecce36beSmrgarchive_cmds=$lt_archive_cmds 13111ecce36beSmrgarchive_expsym_cmds=$lt_archive_expsym_cmds 13112ecce36beSmrg 13113ecce36beSmrg# Commands used to build a loadable module if different from building 13114ecce36beSmrg# a shared archive. 13115ecce36beSmrgmodule_cmds=$lt_module_cmds 13116ecce36beSmrgmodule_expsym_cmds=$lt_module_expsym_cmds 13117ecce36beSmrg 13118ecce36beSmrg# Whether we are building with GNU ld or not. 13119ecce36beSmrgwith_gnu_ld=$lt_with_gnu_ld 13120ecce36beSmrg 13121ecce36beSmrg# Flag that allows shared libraries with undefined symbols to be built. 13122ecce36beSmrgallow_undefined_flag=$lt_allow_undefined_flag 13123ecce36beSmrg 13124ecce36beSmrg# Flag that enforces no undefined symbols. 13125ecce36beSmrgno_undefined_flag=$lt_no_undefined_flag 13126ecce36beSmrg 13127ecce36beSmrg# Flag to hardcode \$libdir into a binary during linking. 13128ecce36beSmrg# This must work even if \$libdir does not exist 13129ecce36beSmrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13130ecce36beSmrg 13131ecce36beSmrg# If ld is used when linking, flag to hardcode \$libdir into a binary 13132ecce36beSmrg# during linking. This must work even if \$libdir does not exist. 13133ecce36beSmrghardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13134ecce36beSmrg 13135ecce36beSmrg# Whether we need a single "-rpath" flag with a separated argument. 13136ecce36beSmrghardcode_libdir_separator=$lt_hardcode_libdir_separator 13137ecce36beSmrg 13138ecce36beSmrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13139ecce36beSmrg# DIR into the resulting binary. 13140ecce36beSmrghardcode_direct=$hardcode_direct 13141ecce36beSmrg 13142ecce36beSmrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13143ecce36beSmrg# DIR into the resulting binary and the resulting library dependency is 13144ecce36beSmrg# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13145ecce36beSmrg# library is relocated. 13146ecce36beSmrghardcode_direct_absolute=$hardcode_direct_absolute 13147ecce36beSmrg 13148ecce36beSmrg# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13149ecce36beSmrg# into the resulting binary. 13150ecce36beSmrghardcode_minus_L=$hardcode_minus_L 13151ecce36beSmrg 13152ecce36beSmrg# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13153ecce36beSmrg# into the resulting binary. 13154ecce36beSmrghardcode_shlibpath_var=$hardcode_shlibpath_var 13155ecce36beSmrg 13156ecce36beSmrg# Set to "yes" if building a shared library automatically hardcodes DIR 13157ecce36beSmrg# into the library and all subsequent libraries and executables linked 13158ecce36beSmrg# against it. 13159ecce36beSmrghardcode_automatic=$hardcode_automatic 13160ecce36beSmrg 13161ecce36beSmrg# Set to yes if linker adds runtime paths of dependent libraries 13162ecce36beSmrg# to runtime path list. 13163ecce36beSmrginherit_rpath=$inherit_rpath 13164ecce36beSmrg 13165ecce36beSmrg# Whether libtool must link a program against all its dependency libraries. 13166ecce36beSmrglink_all_deplibs=$link_all_deplibs 13167ecce36beSmrg 13168ecce36beSmrg# Fix the shell variable \$srcfile for the compiler. 13169ecce36beSmrgfix_srcfile_path=$lt_fix_srcfile_path 13170ecce36beSmrg 13171ecce36beSmrg# Set to "yes" if exported symbols are required. 13172ecce36beSmrgalways_export_symbols=$always_export_symbols 13173ecce36beSmrg 13174ecce36beSmrg# The commands to list exported symbols. 13175ecce36beSmrgexport_symbols_cmds=$lt_export_symbols_cmds 13176ecce36beSmrg 13177ecce36beSmrg# Symbols that should not be listed in the preloaded symbols. 13178ecce36beSmrgexclude_expsyms=$lt_exclude_expsyms 13179ecce36beSmrg 13180ecce36beSmrg# Symbols that must always be exported. 13181ecce36beSmrginclude_expsyms=$lt_include_expsyms 13182ecce36beSmrg 13183ecce36beSmrg# Commands necessary for linking programs (against libraries) with templates. 13184ecce36beSmrgprelink_cmds=$lt_prelink_cmds 13185ecce36beSmrg 13186ecce36beSmrg# Specify filename containing input files. 13187ecce36beSmrgfile_list_spec=$lt_file_list_spec 13188ecce36beSmrg 13189ecce36beSmrg# How to hardcode a shared library path into an executable. 13190ecce36beSmrghardcode_action=$hardcode_action 13191ecce36beSmrg 13192ecce36beSmrg# ### END LIBTOOL CONFIG 13193ecce36beSmrg 13194ecce36beSmrg_LT_EOF 13195ecce36beSmrg 13196ecce36beSmrg case $host_os in 13197ecce36beSmrg aix3*) 13198ecce36beSmrg cat <<\_LT_EOF >> "$cfgfile" 13199ecce36beSmrg# AIX sometimes has problems with the GCC collect2 program. For some 13200ecce36beSmrg# reason, if we set the COLLECT_NAMES environment variable, the problems 13201ecce36beSmrg# vanish in a puff of smoke. 13202ecce36beSmrgif test "X${COLLECT_NAMES+set}" != Xset; then 13203ecce36beSmrg COLLECT_NAMES= 13204ecce36beSmrg export COLLECT_NAMES 13205ecce36beSmrgfi 13206ecce36beSmrg_LT_EOF 13207ecce36beSmrg ;; 13208ecce36beSmrg esac 13209ecce36beSmrg 13210ecce36beSmrg 13211ecce36beSmrgltmain="$ac_aux_dir/ltmain.sh" 13212ecce36beSmrg 13213ecce36beSmrg 13214ecce36beSmrg # We use sed instead of cat because bash on DJGPP gets confused if 13215ecce36beSmrg # if finds mixed CR/LF and LF-only lines. Since sed operates in 13216ecce36beSmrg # text mode, it properly converts lines to CR/LF. This bash problem 13217ecce36beSmrg # is reportedly fixed, but why not run on old versions too? 13218ecce36beSmrg sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 13219ecce36beSmrg || (rm -f "$cfgfile"; exit 1) 13220ecce36beSmrg 13221ecce36beSmrg case $xsi_shell in 13222ecce36beSmrg yes) 13223ecce36beSmrg cat << \_LT_EOF >> "$cfgfile" 13224ecce36beSmrg 13225ecce36beSmrg# func_dirname file append nondir_replacement 13226ecce36beSmrg# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13227ecce36beSmrg# otherwise set result to NONDIR_REPLACEMENT. 13228ecce36beSmrgfunc_dirname () 13229ecce36beSmrg{ 13230ecce36beSmrg case ${1} in 13231ecce36beSmrg */*) func_dirname_result="${1%/*}${2}" ;; 13232ecce36beSmrg * ) func_dirname_result="${3}" ;; 13233ecce36beSmrg esac 13234ecce36beSmrg} 13235ecce36beSmrg 13236ecce36beSmrg# func_basename file 13237ecce36beSmrgfunc_basename () 13238ecce36beSmrg{ 13239ecce36beSmrg func_basename_result="${1##*/}" 13240ecce36beSmrg} 13241ecce36beSmrg 13242ecce36beSmrg# func_dirname_and_basename file append nondir_replacement 13243ecce36beSmrg# perform func_basename and func_dirname in a single function 13244ecce36beSmrg# call: 13245ecce36beSmrg# dirname: Compute the dirname of FILE. If nonempty, 13246ecce36beSmrg# add APPEND to the result, otherwise set result 13247ecce36beSmrg# to NONDIR_REPLACEMENT. 13248ecce36beSmrg# value returned in "$func_dirname_result" 13249ecce36beSmrg# basename: Compute filename of FILE. 13250ecce36beSmrg# value retuned in "$func_basename_result" 13251ecce36beSmrg# Implementation must be kept synchronized with func_dirname 13252ecce36beSmrg# and func_basename. For efficiency, we do not delegate to 13253ecce36beSmrg# those functions but instead duplicate the functionality here. 13254ecce36beSmrgfunc_dirname_and_basename () 13255ecce36beSmrg{ 13256ecce36beSmrg case ${1} in 13257ecce36beSmrg */*) func_dirname_result="${1%/*}${2}" ;; 13258ecce36beSmrg * ) func_dirname_result="${3}" ;; 13259ecce36beSmrg esac 13260ecce36beSmrg func_basename_result="${1##*/}" 13261ecce36beSmrg} 13262ecce36beSmrg 13263ecce36beSmrg# func_stripname prefix suffix name 13264ecce36beSmrg# strip PREFIX and SUFFIX off of NAME. 13265ecce36beSmrg# PREFIX and SUFFIX must not contain globbing or regex special 13266ecce36beSmrg# characters, hashes, percent signs, but SUFFIX may contain a leading 13267ecce36beSmrg# dot (in which case that matches only a dot). 13268ecce36beSmrgfunc_stripname () 13269ecce36beSmrg{ 13270ecce36beSmrg # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 13271ecce36beSmrg # positional parameters, so assign one to ordinary parameter first. 13272ecce36beSmrg func_stripname_result=${3} 13273ecce36beSmrg func_stripname_result=${func_stripname_result#"${1}"} 13274ecce36beSmrg func_stripname_result=${func_stripname_result%"${2}"} 13275ecce36beSmrg} 13276ecce36beSmrg 13277ecce36beSmrg# func_opt_split 13278ecce36beSmrgfunc_opt_split () 13279ecce36beSmrg{ 13280ecce36beSmrg func_opt_split_opt=${1%%=*} 13281ecce36beSmrg func_opt_split_arg=${1#*=} 13282ecce36beSmrg} 13283ecce36beSmrg 13284ecce36beSmrg# func_lo2o object 13285ecce36beSmrgfunc_lo2o () 13286ecce36beSmrg{ 13287ecce36beSmrg case ${1} in 13288ecce36beSmrg *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 13289ecce36beSmrg *) func_lo2o_result=${1} ;; 13290ecce36beSmrg esac 13291ecce36beSmrg} 13292ecce36beSmrg 13293ecce36beSmrg# func_xform libobj-or-source 13294ecce36beSmrgfunc_xform () 13295ecce36beSmrg{ 13296ecce36beSmrg func_xform_result=${1%.*}.lo 13297ecce36beSmrg} 13298ecce36beSmrg 13299ecce36beSmrg# func_arith arithmetic-term... 13300ecce36beSmrgfunc_arith () 13301ecce36beSmrg{ 13302ecce36beSmrg func_arith_result=$(( $* )) 13303ecce36beSmrg} 13304ecce36beSmrg 13305ecce36beSmrg# func_len string 13306ecce36beSmrg# STRING may not start with a hyphen. 13307ecce36beSmrgfunc_len () 13308ecce36beSmrg{ 13309ecce36beSmrg func_len_result=${#1} 13310ecce36beSmrg} 13311ecce36beSmrg 13312ecce36beSmrg_LT_EOF 13313ecce36beSmrg ;; 13314ecce36beSmrg *) # Bourne compatible functions. 13315ecce36beSmrg cat << \_LT_EOF >> "$cfgfile" 13316ecce36beSmrg 13317ecce36beSmrg# func_dirname file append nondir_replacement 13318ecce36beSmrg# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13319ecce36beSmrg# otherwise set result to NONDIR_REPLACEMENT. 13320ecce36beSmrgfunc_dirname () 13321ecce36beSmrg{ 13322ecce36beSmrg # Extract subdirectory from the argument. 13323ecce36beSmrg func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 13324ecce36beSmrg if test "X$func_dirname_result" = "X${1}"; then 13325ecce36beSmrg func_dirname_result="${3}" 13326ecce36beSmrg else 13327ecce36beSmrg func_dirname_result="$func_dirname_result${2}" 13328ecce36beSmrg fi 13329ecce36beSmrg} 13330ecce36beSmrg 13331ecce36beSmrg# func_basename file 13332ecce36beSmrgfunc_basename () 13333ecce36beSmrg{ 13334ecce36beSmrg func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 13335ecce36beSmrg} 13336ecce36beSmrg 13337ecce36beSmrg 13338ecce36beSmrg# func_stripname prefix suffix name 13339ecce36beSmrg# strip PREFIX and SUFFIX off of NAME. 13340ecce36beSmrg# PREFIX and SUFFIX must not contain globbing or regex special 13341ecce36beSmrg# characters, hashes, percent signs, but SUFFIX may contain a leading 13342ecce36beSmrg# dot (in which case that matches only a dot). 13343ecce36beSmrg# func_strip_suffix prefix name 13344ecce36beSmrgfunc_stripname () 13345ecce36beSmrg{ 13346ecce36beSmrg case ${2} in 13347ecce36beSmrg .*) func_stripname_result=`$ECHO "X${3}" \ 13348ecce36beSmrg | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 13349ecce36beSmrg *) func_stripname_result=`$ECHO "X${3}" \ 13350ecce36beSmrg | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 13351ecce36beSmrg esac 13352ecce36beSmrg} 13353ecce36beSmrg 13354ecce36beSmrg# sed scripts: 13355ecce36beSmrgmy_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 13356ecce36beSmrgmy_sed_long_arg='1s/^-[^=]*=//' 13357ecce36beSmrg 13358ecce36beSmrg# func_opt_split 13359ecce36beSmrgfunc_opt_split () 13360ecce36beSmrg{ 13361ecce36beSmrg func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 13362ecce36beSmrg func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 13363ecce36beSmrg} 13364ecce36beSmrg 13365ecce36beSmrg# func_lo2o object 13366ecce36beSmrgfunc_lo2o () 13367ecce36beSmrg{ 13368ecce36beSmrg func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 13369ecce36beSmrg} 13370ecce36beSmrg 13371ecce36beSmrg# func_xform libobj-or-source 13372ecce36beSmrgfunc_xform () 13373ecce36beSmrg{ 13374ecce36beSmrg func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 13375ecce36beSmrg} 13376ecce36beSmrg 13377ecce36beSmrg# func_arith arithmetic-term... 13378ecce36beSmrgfunc_arith () 13379ecce36beSmrg{ 13380ecce36beSmrg func_arith_result=`expr "$@"` 13381ecce36beSmrg} 13382ecce36beSmrg 13383ecce36beSmrg# func_len string 13384ecce36beSmrg# STRING may not start with a hyphen. 13385ecce36beSmrgfunc_len () 13386ecce36beSmrg{ 13387ecce36beSmrg func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 13388ecce36beSmrg} 13389ecce36beSmrg 13390ecce36beSmrg_LT_EOF 13391ecce36beSmrgesac 13392ecce36beSmrg 13393ecce36beSmrgcase $lt_shell_append in 13394ecce36beSmrg yes) 13395ecce36beSmrg cat << \_LT_EOF >> "$cfgfile" 13396ecce36beSmrg 13397ecce36beSmrg# func_append var value 13398ecce36beSmrg# Append VALUE to the end of shell variable VAR. 13399ecce36beSmrgfunc_append () 13400ecce36beSmrg{ 13401ecce36beSmrg eval "$1+=\$2" 13402ecce36beSmrg} 13403ecce36beSmrg_LT_EOF 13404ecce36beSmrg ;; 13405ecce36beSmrg *) 13406ecce36beSmrg cat << \_LT_EOF >> "$cfgfile" 13407ecce36beSmrg 13408ecce36beSmrg# func_append var value 13409ecce36beSmrg# Append VALUE to the end of shell variable VAR. 13410ecce36beSmrgfunc_append () 13411ecce36beSmrg{ 13412ecce36beSmrg eval "$1=\$$1\$2" 13413ecce36beSmrg} 13414ecce36beSmrg 13415ecce36beSmrg_LT_EOF 13416ecce36beSmrg ;; 13417ecce36beSmrg esac 13418ecce36beSmrg 13419ecce36beSmrg 13420ecce36beSmrg sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 13421ecce36beSmrg || (rm -f "$cfgfile"; exit 1) 13422ecce36beSmrg 13423ecce36beSmrg mv -f "$cfgfile" "$ofile" || 13424ecce36beSmrg (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 13425ecce36beSmrg chmod +x "$ofile" 13426ecce36beSmrg 13427ecce36beSmrg ;; 13428ecce36beSmrg 13429ecce36beSmrg esac 13430ecce36beSmrgdone # for ac_tag 13431ecce36beSmrg 13432ecce36beSmrg 13433ecce36beSmrgas_fn_exit 0 13434ecce36beSmrg_ACEOF 13435ecce36beSmrgac_clean_files=$ac_clean_files_save 13436ecce36beSmrg 13437ecce36beSmrgtest $ac_write_fail = 0 || 13438ecce36beSmrg as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 13439ecce36beSmrg 13440ecce36beSmrg 13441ecce36beSmrg# configure is writing to config.log, and then calls config.status. 13442ecce36beSmrg# config.status does its own redirection, appending to config.log. 13443ecce36beSmrg# Unfortunately, on DOS this fails, as config.log is still kept open 13444ecce36beSmrg# by configure, so config.status won't be able to write to it; its 13445ecce36beSmrg# output is simply discarded. So we exec the FD to /dev/null, 13446ecce36beSmrg# effectively closing config.log, so it can be properly (re)opened and 13447ecce36beSmrg# appended to by config.status. When coming back to configure, we 13448ecce36beSmrg# need to make the FD available again. 13449ecce36beSmrgif test "$no_create" != yes; then 13450ecce36beSmrg ac_cs_success=: 13451ecce36beSmrg ac_config_status_args= 13452ecce36beSmrg test "$silent" = yes && 13453ecce36beSmrg ac_config_status_args="$ac_config_status_args --quiet" 13454ecce36beSmrg exec 5>/dev/null 13455ecce36beSmrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13456ecce36beSmrg exec 5>>config.log 13457ecce36beSmrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13458ecce36beSmrg # would make configure fail if this is the last instruction. 13459ecce36beSmrg $ac_cs_success || as_fn_exit $? 13460ecce36beSmrgfi 13461ecce36beSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13462ecce36beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13463ecce36beSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13464ecce36beSmrgfi 13465ecce36beSmrg 13466