configure revision b789ec8a
1c43cc173Smrg#! /bin/sh 2c43cc173Smrg# Guess values for system-dependent variables and create Makefiles. 3b789ec8aSmrg# Generated by GNU Autoconf 2.68 for libXi 1.4.3. 4c43cc173Smrg# 5c43cc173Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6c43cc173Smrg# 73e256790Smrg# 8c43cc173Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 937eb1ca1Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 1037eb1ca1Smrg# Foundation, Inc. 113e256790Smrg# 123e256790Smrg# 13c43cc173Smrg# This configure script is free software; the Free Software Foundation 14c43cc173Smrg# gives unlimited permission to copy, distribute and modify it. 153e256790Smrg## -------------------- ## 163e256790Smrg## M4sh Initialization. ## 173e256790Smrg## -------------------- ## 18c43cc173Smrg 19c43cc173Smrg# Be more Bourne compatible 20c43cc173SmrgDUALCASE=1; export DUALCASE # for MKS sh 213e256790Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22c43cc173Smrg emulate sh 23c43cc173Smrg NULLCMD=: 2421e67964Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25c43cc173Smrg # is contrary to our usage. Disable this feature. 26c43cc173Smrg alias -g '${1+"$@"}'='"$@"' 27c43cc173Smrg setopt NO_GLOB_SUBST 28c43cc173Smrgelse 293e256790Smrg case `(set -o) 2>/dev/null` in #( 303e256790Smrg *posix*) : 313e256790Smrg set -o posix ;; #( 323e256790Smrg *) : 333e256790Smrg ;; 34c43cc173Smrgesac 35c43cc173Smrgfi 36c43cc173Smrg 37c43cc173Smrg 3821e67964Smrgas_nl=' 3921e67964Smrg' 4021e67964Smrgexport as_nl 4121e67964Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 4221e67964Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4321e67964Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 4421e67964Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 453e256790Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 463e256790Smrg# but without wasting forks for bash or zsh. 473e256790Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 483e256790Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 493e256790Smrg as_echo='print -r --' 503e256790Smrg as_echo_n='print -rn --' 513e256790Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5221e67964Smrg as_echo='printf %s\n' 5321e67964Smrg as_echo_n='printf %s' 5421e67964Smrgelse 5521e67964Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5621e67964Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5721e67964Smrg as_echo_n='/usr/ucb/echo -n' 58c43cc173Smrg else 5921e67964Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 6021e67964Smrg as_echo_n_body='eval 6121e67964Smrg arg=$1; 623e256790Smrg case $arg in #( 6321e67964Smrg *"$as_nl"*) 6421e67964Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 6521e67964Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 6621e67964Smrg esac; 6721e67964Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 6821e67964Smrg ' 6921e67964Smrg export as_echo_n_body 7021e67964Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 71c43cc173Smrg fi 7221e67964Smrg export as_echo_body 7321e67964Smrg as_echo='sh -c $as_echo_body as_echo' 7421e67964Smrgfi 7521e67964Smrg 7621e67964Smrg# The user is always right. 7721e67964Smrgif test "${PATH_SEPARATOR+set}" != set; then 7821e67964Smrg PATH_SEPARATOR=: 7921e67964Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 8021e67964Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 8121e67964Smrg PATH_SEPARATOR=';' 8221e67964Smrg } 83c43cc173Smrgfi 84c43cc173Smrg 85c43cc173Smrg 86c43cc173Smrg# IFS 87c43cc173Smrg# We need space, tab and new line, in precisely that order. Quoting is 88c43cc173Smrg# there to prevent editors from complaining about space-tab. 89c43cc173Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90c43cc173Smrg# splitting by setting IFS to empty value.) 91c43cc173SmrgIFS=" "" $as_nl" 92c43cc173Smrg 93c43cc173Smrg# Find who we are. Look in the path if we contain no directory separator. 94b789ec8aSmrgas_myself= 953e256790Smrgcase $0 in #(( 96c43cc173Smrg *[\\/]* ) as_myself=$0 ;; 97c43cc173Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98c43cc173Smrgfor as_dir in $PATH 99c43cc173Smrgdo 100c43cc173Smrg IFS=$as_save_IFS 101c43cc173Smrg test -z "$as_dir" && as_dir=. 1023e256790Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 1033e256790Smrg done 104c43cc173SmrgIFS=$as_save_IFS 105c43cc173Smrg 106c43cc173Smrg ;; 107c43cc173Smrgesac 108c43cc173Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 109c43cc173Smrg# in which case we are not to be found in the path. 110c43cc173Smrgif test "x$as_myself" = x; then 111c43cc173Smrg as_myself=$0 112c43cc173Smrgfi 113c43cc173Smrgif test ! -f "$as_myself"; then 11421e67964Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1153e256790Smrg exit 1 116c43cc173Smrgfi 117c43cc173Smrg 1183e256790Smrg# Unset variables that we do not need and which cause bugs (e.g. in 1193e256790Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 1203e256790Smrg# suppresses any "Segmentation fault" message there. '((' could 1213e256790Smrg# trigger a bug in pdksh 5.2.14. 1223e256790Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 1233e256790Smrgdo eval test x\${$as_var+set} = xset \ 1243e256790Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125c43cc173Smrgdone 126c43cc173SmrgPS1='$ ' 127c43cc173SmrgPS2='> ' 128c43cc173SmrgPS4='+ ' 129c43cc173Smrg 130c43cc173Smrg# NLS nuisances. 13121e67964SmrgLC_ALL=C 13221e67964Smrgexport LC_ALL 13321e67964SmrgLANGUAGE=C 13421e67964Smrgexport LANGUAGE 135c43cc173Smrg 1363e256790Smrg# CDPATH. 1373e256790Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1383e256790Smrg 1393e256790Smrgif test "x$CONFIG_SHELL" = x; then 1403e256790Smrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 1413e256790Smrg emulate sh 1423e256790Smrg NULLCMD=: 1433e256790Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 1443e256790Smrg # is contrary to our usage. Disable this feature. 1453e256790Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 1463e256790Smrg setopt NO_GLOB_SUBST 1473e256790Smrgelse 1483e256790Smrg case \`(set -o) 2>/dev/null\` in #( 1493e256790Smrg *posix*) : 1503e256790Smrg set -o posix ;; #( 1513e256790Smrg *) : 1523e256790Smrg ;; 1533e256790Smrgesac 1543e256790Smrgfi 1553e256790Smrg" 1563e256790Smrg as_required="as_fn_return () { (exit \$1); } 1573e256790Smrgas_fn_success () { as_fn_return 0; } 1583e256790Smrgas_fn_failure () { as_fn_return 1; } 1593e256790Smrgas_fn_ret_success () { return 0; } 1603e256790Smrgas_fn_ret_failure () { return 1; } 1613e256790Smrg 1623e256790Smrgexitcode=0 1633e256790Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 1643e256790Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 1653e256790Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 1663e256790Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 1673e256790Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 1683e256790Smrg 1693e256790Smrgelse 1703e256790Smrg exitcode=1; echo positional parameters were not saved. 1713e256790Smrgfi 1723e256790Smrgtest x\$exitcode = x0 || exit 1" 1733e256790Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 1743e256790Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 1753e256790Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 1763e256790Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 17737eb1ca1Smrg 17837eb1ca1Smrg test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 17937eb1ca1Smrg ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18037eb1ca1Smrg ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 18137eb1ca1Smrg ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 18237eb1ca1Smrg PATH=/empty FPATH=/empty; export PATH FPATH 18337eb1ca1Smrg test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184b789ec8aSmrg || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 185b789ec8aSmrgtest \$(( 1 + 1 )) = 2 || exit 1" 1863e256790Smrg if (eval "$as_required") 2>/dev/null; then : 1873e256790Smrg as_have_required=yes 1883e256790Smrgelse 1893e256790Smrg as_have_required=no 1903e256790Smrgfi 1913e256790Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 1923e256790Smrg 1933e256790Smrgelse 1943e256790Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1953e256790Smrgas_found=false 1963e256790Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 1973e256790Smrgdo 1983e256790Smrg IFS=$as_save_IFS 1993e256790Smrg test -z "$as_dir" && as_dir=. 2003e256790Smrg as_found=: 2013e256790Smrg case $as_dir in #( 2023e256790Smrg /*) 2033e256790Smrg for as_base in sh bash ksh sh5; do 2043e256790Smrg # Try only shells that exist, to save several forks. 2053e256790Smrg as_shell=$as_dir/$as_base 2063e256790Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 2073e256790Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 2083e256790Smrg CONFIG_SHELL=$as_shell as_have_required=yes 2093e256790Smrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 2103e256790Smrg break 2 2113e256790Smrgfi 2123e256790Smrgfi 2133e256790Smrg done;; 2143e256790Smrg esac 2153e256790Smrg as_found=false 2163e256790Smrgdone 2173e256790Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 2183e256790Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 2193e256790Smrg CONFIG_SHELL=$SHELL as_have_required=yes 2203e256790Smrgfi; } 2213e256790SmrgIFS=$as_save_IFS 2223e256790Smrg 2233e256790Smrg 2243e256790Smrg if test "x$CONFIG_SHELL" != x; then : 2253e256790Smrg # We cannot yet assume a decent shell, so we have to provide a 2263e256790Smrg # neutralization value for shells without unset; and this also 2273e256790Smrg # works around shells that cannot unset nonexistent variables. 228b789ec8aSmrg # Preserve -v and -x to the replacement shell. 2293e256790Smrg BASH_ENV=/dev/null 2303e256790Smrg ENV=/dev/null 2313e256790Smrg (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 2323e256790Smrg export CONFIG_SHELL 233b789ec8aSmrg case $- in # (((( 234b789ec8aSmrg *v*x* | *x*v* ) as_opts=-vx ;; 235b789ec8aSmrg *v* ) as_opts=-v ;; 236b789ec8aSmrg *x* ) as_opts=-x ;; 237b789ec8aSmrg * ) as_opts= ;; 238b789ec8aSmrg esac 239b789ec8aSmrg exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 2403e256790Smrgfi 2413e256790Smrg 2423e256790Smrg if test x$as_have_required = xno; then : 2433e256790Smrg $as_echo "$0: This script requires a shell more modern than all" 2443e256790Smrg $as_echo "$0: the shells that I found on your system." 2453e256790Smrg if test x${ZSH_VERSION+set} = xset ; then 2463e256790Smrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 2473e256790Smrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 2483e256790Smrg else 2493e256790Smrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 2503e256790Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 2513e256790Smrg$0: about your system, including any error possibly output 2523e256790Smrg$0: before this message. Then install a modern shell, or 2533e256790Smrg$0: manually run the script under such a shell if you do 2543e256790Smrg$0: have one." 2553e256790Smrg fi 2563e256790Smrg exit 1 2573e256790Smrgfi 2583e256790Smrgfi 2593e256790Smrgfi 2603e256790SmrgSHELL=${CONFIG_SHELL-/bin/sh} 2613e256790Smrgexport SHELL 2623e256790Smrg# Unset more variables known to interfere with behavior of common tools. 2633e256790SmrgCLICOLOR_FORCE= GREP_OPTIONS= 2643e256790Smrgunset CLICOLOR_FORCE GREP_OPTIONS 2653e256790Smrg 2663e256790Smrg## --------------------- ## 2673e256790Smrg## M4sh Shell Functions. ## 2683e256790Smrg## --------------------- ## 2693e256790Smrg# as_fn_unset VAR 2703e256790Smrg# --------------- 2713e256790Smrg# Portably unset VAR. 2723e256790Smrgas_fn_unset () 2733e256790Smrg{ 2743e256790Smrg { eval $1=; unset $1;} 2753e256790Smrg} 2763e256790Smrgas_unset=as_fn_unset 2773e256790Smrg 2783e256790Smrg# as_fn_set_status STATUS 2793e256790Smrg# ----------------------- 2803e256790Smrg# Set $? to STATUS, without forking. 2813e256790Smrgas_fn_set_status () 2823e256790Smrg{ 2833e256790Smrg return $1 2843e256790Smrg} # as_fn_set_status 2853e256790Smrg 2863e256790Smrg# as_fn_exit STATUS 2873e256790Smrg# ----------------- 2883e256790Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 2893e256790Smrgas_fn_exit () 2903e256790Smrg{ 2913e256790Smrg set +e 2923e256790Smrg as_fn_set_status $1 2933e256790Smrg exit $1 2943e256790Smrg} # as_fn_exit 2953e256790Smrg 2963e256790Smrg# as_fn_mkdir_p 2973e256790Smrg# ------------- 2983e256790Smrg# Create "$as_dir" as a directory, including parents if necessary. 2993e256790Smrgas_fn_mkdir_p () 3003e256790Smrg{ 3013e256790Smrg 3023e256790Smrg case $as_dir in #( 3033e256790Smrg -*) as_dir=./$as_dir;; 3043e256790Smrg esac 3053e256790Smrg test -d "$as_dir" || eval $as_mkdir_p || { 3063e256790Smrg as_dirs= 3073e256790Smrg while :; do 3083e256790Smrg case $as_dir in #( 3093e256790Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 3103e256790Smrg *) as_qdir=$as_dir;; 3113e256790Smrg esac 3123e256790Smrg as_dirs="'$as_qdir' $as_dirs" 3133e256790Smrg as_dir=`$as_dirname -- "$as_dir" || 3143e256790Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3153e256790Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 3163e256790Smrg X"$as_dir" : 'X\(//\)$' \| \ 3173e256790Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 3183e256790Smrg$as_echo X"$as_dir" | 3193e256790Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3203e256790Smrg s//\1/ 3213e256790Smrg q 3223e256790Smrg } 3233e256790Smrg /^X\(\/\/\)[^/].*/{ 3243e256790Smrg s//\1/ 3253e256790Smrg q 3263e256790Smrg } 3273e256790Smrg /^X\(\/\/\)$/{ 3283e256790Smrg s//\1/ 3293e256790Smrg q 3303e256790Smrg } 3313e256790Smrg /^X\(\/\).*/{ 3323e256790Smrg s//\1/ 3333e256790Smrg q 3343e256790Smrg } 3353e256790Smrg s/.*/./; q'` 3363e256790Smrg test -d "$as_dir" && break 3373e256790Smrg done 3383e256790Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 33937eb1ca1Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 3403e256790Smrg 3413e256790Smrg 3423e256790Smrg} # as_fn_mkdir_p 3433e256790Smrg# as_fn_append VAR VALUE 3443e256790Smrg# ---------------------- 3453e256790Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 3463e256790Smrg# advantage of any shell optimizations that allow amortized linear growth over 3473e256790Smrg# repeated appends, instead of the typical quadratic growth present in naive 3483e256790Smrg# implementations. 3493e256790Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 3503e256790Smrg eval 'as_fn_append () 3513e256790Smrg { 3523e256790Smrg eval $1+=\$2 3533e256790Smrg }' 3543e256790Smrgelse 3553e256790Smrg as_fn_append () 3563e256790Smrg { 3573e256790Smrg eval $1=\$$1\$2 3583e256790Smrg } 3593e256790Smrgfi # as_fn_append 3603e256790Smrg 3613e256790Smrg# as_fn_arith ARG... 3623e256790Smrg# ------------------ 3633e256790Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 3643e256790Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 3653e256790Smrg# must be portable across $(()) and expr. 3663e256790Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 3673e256790Smrg eval 'as_fn_arith () 3683e256790Smrg { 3693e256790Smrg as_val=$(( $* )) 3703e256790Smrg }' 3713e256790Smrgelse 3723e256790Smrg as_fn_arith () 3733e256790Smrg { 3743e256790Smrg as_val=`expr "$@" || test $? -eq 1` 3753e256790Smrg } 3763e256790Smrgfi # as_fn_arith 3773e256790Smrg 3783e256790Smrg 37937eb1ca1Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 38037eb1ca1Smrg# ---------------------------------------- 3813e256790Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 3823e256790Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 38337eb1ca1Smrg# script with STATUS, using 1 if that was 0. 3843e256790Smrgas_fn_error () 3853e256790Smrg{ 38637eb1ca1Smrg as_status=$1; test $as_status -eq 0 && as_status=1 38737eb1ca1Smrg if test "$4"; then 38837eb1ca1Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 38937eb1ca1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 3903e256790Smrg fi 39137eb1ca1Smrg $as_echo "$as_me: error: $2" >&2 3923e256790Smrg as_fn_exit $as_status 3933e256790Smrg} # as_fn_error 3943e256790Smrg 395c43cc173Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 396c43cc173Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 397c43cc173Smrg as_expr=expr 398c43cc173Smrgelse 399c43cc173Smrg as_expr=false 400c43cc173Smrgfi 401c43cc173Smrg 402c43cc173Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 403c43cc173Smrg as_basename=basename 404c43cc173Smrgelse 405c43cc173Smrg as_basename=false 406c43cc173Smrgfi 407c43cc173Smrg 4083e256790Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4093e256790Smrg as_dirname=dirname 4103e256790Smrgelse 4113e256790Smrg as_dirname=false 4123e256790Smrgfi 413c43cc173Smrg 414c43cc173Smrgas_me=`$as_basename -- "$0" || 415c43cc173Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 416c43cc173Smrg X"$0" : 'X\(//\)$' \| \ 417c43cc173Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 41821e67964Smrg$as_echo X/"$0" | 419c43cc173Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 420c43cc173Smrg s//\1/ 421c43cc173Smrg q 422c43cc173Smrg } 423c43cc173Smrg /^X\/\(\/\/\)$/{ 424c43cc173Smrg s//\1/ 425c43cc173Smrg q 426c43cc173Smrg } 427c43cc173Smrg /^X\/\(\/\).*/{ 428c43cc173Smrg s//\1/ 429c43cc173Smrg q 430c43cc173Smrg } 431c43cc173Smrg s/.*/./; q'` 432c43cc173Smrg 4333e256790Smrg# Avoid depending upon Character Ranges. 4343e256790Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 4353e256790Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4363e256790Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 4373e256790Smrgas_cr_digits='0123456789' 4383e256790Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 439c43cc173Smrg 440c43cc173Smrg 4413e256790Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 4423e256790Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 4433e256790Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 4443e256790Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 4453e256790Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 4463e256790Smrg sed -n ' 4473e256790Smrg p 4483e256790Smrg /[$]LINENO/= 4493e256790Smrg ' <$as_myself | 4503e256790Smrg sed ' 4513e256790Smrg s/[$]LINENO.*/&-/ 4523e256790Smrg t lineno 4533e256790Smrg b 4543e256790Smrg :lineno 4553e256790Smrg N 4563e256790Smrg :loop 4573e256790Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 4583e256790Smrg t loop 4593e256790Smrg s/-\n.*// 4603e256790Smrg ' >$as_me.lineno && 4613e256790Smrg chmod +x "$as_me.lineno" || 4623e256790Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 463c43cc173Smrg 4643e256790Smrg # Don't try to exec as it changes $[0], causing all sort of problems 4653e256790Smrg # (the dirname of $[0] is not the place where we might find the 4663e256790Smrg # original and so on. Autoconf is especially sensitive to this). 4673e256790Smrg . "./$as_me.lineno" 4683e256790Smrg # Exit status is that of the last command. 4693e256790Smrg exit 470c43cc173Smrg} 471c43cc173Smrg 4723e256790SmrgECHO_C= ECHO_N= ECHO_T= 4733e256790Smrgcase `echo -n x` in #((((( 4743e256790Smrg-n*) 4753e256790Smrg case `echo 'xy\c'` in 4763e256790Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 4773e256790Smrg xy) ECHO_C='\c';; 4783e256790Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 4793e256790Smrg ECHO_T=' ';; 4803e256790Smrg esac;; 4813e256790Smrg*) 4823e256790Smrg ECHO_N='-n';; 4833e256790Smrgesac 484c43cc173Smrg 4853e256790Smrgrm -f conf$$ conf$$.exe conf$$.file 4863e256790Smrgif test -d conf$$.dir; then 4873e256790Smrg rm -f conf$$.dir/conf$$.file 4883e256790Smrgelse 4893e256790Smrg rm -f conf$$.dir 4903e256790Smrg mkdir conf$$.dir 2>/dev/null 491c43cc173Smrgfi 4923e256790Smrgif (echo >conf$$.file) 2>/dev/null; then 4933e256790Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 4943e256790Smrg as_ln_s='ln -s' 4953e256790Smrg # ... but there are two gotchas: 4963e256790Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 4973e256790Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 4983e256790Smrg # In both cases, we have to default to `cp -p'. 4993e256790Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5003e256790Smrg as_ln_s='cp -p' 5013e256790Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 5023e256790Smrg as_ln_s=ln 5033e256790Smrg else 5043e256790Smrg as_ln_s='cp -p' 5053e256790Smrg fi 506c43cc173Smrgelse 5073e256790Smrg as_ln_s='cp -p' 508c43cc173Smrgfi 5093e256790Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5103e256790Smrgrmdir conf$$.dir 2>/dev/null 511c43cc173Smrg 5123e256790Smrgif mkdir -p . 2>/dev/null; then 5133e256790Smrg as_mkdir_p='mkdir -p "$as_dir"' 5143e256790Smrgelse 5153e256790Smrg test -d ./-p && rmdir ./-p 5163e256790Smrg as_mkdir_p=false 517c43cc173Smrgfi 518c43cc173Smrg 5193e256790Smrgif test -x / >/dev/null 2>&1; then 5203e256790Smrg as_test_x='test -x' 521c43cc173Smrgelse 5223e256790Smrg if ls -dL / >/dev/null 2>&1; then 5233e256790Smrg as_ls_L_option=L 5243e256790Smrg else 5253e256790Smrg as_ls_L_option= 5263e256790Smrg fi 5273e256790Smrg as_test_x=' 5283e256790Smrg eval sh -c '\'' 5293e256790Smrg if test -d "$1"; then 5303e256790Smrg test -d "$1/."; 5313e256790Smrg else 5323e256790Smrg case $1 in #( 5333e256790Smrg -*)set "./$1";; 5343e256790Smrg esac; 5353e256790Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 5363e256790Smrg ???[sx]*):;;*)false;;esac;fi 5373e256790Smrg '\'' sh 5383e256790Smrg ' 539c43cc173Smrgfi 5403e256790Smrgas_executable_p=$as_test_x 541c43cc173Smrg 5423e256790Smrg# Sed expression to map a string onto a valid CPP name. 5433e256790Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 544c43cc173Smrg 5453e256790Smrg# Sed expression to map a string onto a valid variable name. 5463e256790Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 547c43cc173Smrg 548b789ec8aSmrgSHELL=${CONFIG_SHELL-/bin/sh} 549b789ec8aSmrg 55037eb1ca1Smrgas_awk_strverscmp=' 55137eb1ca1Smrg # Use only awk features that work with 7th edition Unix awk (1978). 55237eb1ca1Smrg # My, what an old awk you have, Mr. Solaris! 55337eb1ca1Smrg END { 55437eb1ca1Smrg while (length(v1) && length(v2)) { 55537eb1ca1Smrg # Set d1 to be the next thing to compare from v1, and likewise for d2. 55637eb1ca1Smrg # Normally this is a single character, but if v1 and v2 contain digits, 55737eb1ca1Smrg # compare them as integers and fractions as strverscmp does. 55837eb1ca1Smrg if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 55937eb1ca1Smrg # Split v1 and v2 into their leading digit string components d1 and d2, 56037eb1ca1Smrg # and advance v1 and v2 past the leading digit strings. 56137eb1ca1Smrg for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 56237eb1ca1Smrg for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 56337eb1ca1Smrg d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 56437eb1ca1Smrg d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 56537eb1ca1Smrg if (d1 ~ /^0/) { 56637eb1ca1Smrg if (d2 ~ /^0/) { 56737eb1ca1Smrg # Compare two fractions. 56837eb1ca1Smrg while (d1 ~ /^0/ && d2 ~ /^0/) { 56937eb1ca1Smrg d1 = substr(d1, 2); len1-- 57037eb1ca1Smrg d2 = substr(d2, 2); len2-- 57137eb1ca1Smrg } 57237eb1ca1Smrg if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 57337eb1ca1Smrg # The two components differ in length, and the common prefix 57437eb1ca1Smrg # contains only leading zeros. Consider the longer to be less. 57537eb1ca1Smrg d1 = -len1 57637eb1ca1Smrg d2 = -len2 57737eb1ca1Smrg } else { 57837eb1ca1Smrg # Otherwise, compare as strings. 57937eb1ca1Smrg d1 = "x" d1 58037eb1ca1Smrg d2 = "x" d2 58137eb1ca1Smrg } 58237eb1ca1Smrg } else { 58337eb1ca1Smrg # A fraction is less than an integer. 58437eb1ca1Smrg exit 1 58537eb1ca1Smrg } 58637eb1ca1Smrg } else { 58737eb1ca1Smrg if (d2 ~ /^0/) { 58837eb1ca1Smrg # An integer is greater than a fraction. 58937eb1ca1Smrg exit 2 59037eb1ca1Smrg } else { 59137eb1ca1Smrg # Compare two integers. 59237eb1ca1Smrg d1 += 0 59337eb1ca1Smrg d2 += 0 59437eb1ca1Smrg } 59537eb1ca1Smrg } 59637eb1ca1Smrg } else { 59737eb1ca1Smrg # The normal case, without worrying about digits. 59837eb1ca1Smrg d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 59937eb1ca1Smrg d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 60037eb1ca1Smrg } 60137eb1ca1Smrg if (d1 < d2) exit 1 60237eb1ca1Smrg if (d1 > d2) exit 2 60337eb1ca1Smrg } 60437eb1ca1Smrg # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 60537eb1ca1Smrg # which mishandles some comparisons of empty strings to integers. 60637eb1ca1Smrg if (length(v2)) exit 1 60737eb1ca1Smrg if (length(v1)) exit 2 60837eb1ca1Smrg } 60937eb1ca1Smrg' 610c43cc173Smrg 6113e256790Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 6123e256790Smrgexec 6>&1 613c43cc173Smrg 614c43cc173Smrg# Name of the host. 61537eb1ca1Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 616c43cc173Smrg# so uname gets run too. 617c43cc173Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 618c43cc173Smrg 619c43cc173Smrg# 620c43cc173Smrg# Initializations. 621c43cc173Smrg# 622c43cc173Smrgac_default_prefix=/usr/local 623c43cc173Smrgac_clean_files= 624c43cc173Smrgac_config_libobj_dir=. 625c43cc173SmrgLIBOBJS= 626c43cc173Smrgcross_compiling=no 627c43cc173Smrgsubdirs= 628c43cc173SmrgMFLAGS= 629c43cc173SmrgMAKEFLAGS= 630c43cc173Smrg 631c43cc173Smrg# Identity of this package. 632c43cc173SmrgPACKAGE_NAME='libXi' 633c43cc173SmrgPACKAGE_TARNAME='libXi' 634b789ec8aSmrgPACKAGE_VERSION='1.4.3' 635b789ec8aSmrgPACKAGE_STRING='libXi 1.4.3' 636c43cc173SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 6373e256790SmrgPACKAGE_URL='' 638c43cc173Smrg 639b789ec8aSmrgac_unique_file="Makefile.am" 640c43cc173Smrg# Factoring default headers for most tests. 641c43cc173Smrgac_includes_default="\ 642c43cc173Smrg#include <stdio.h> 643c43cc173Smrg#ifdef HAVE_SYS_TYPES_H 644c43cc173Smrg# include <sys/types.h> 645c43cc173Smrg#endif 646c43cc173Smrg#ifdef HAVE_SYS_STAT_H 647c43cc173Smrg# include <sys/stat.h> 648c43cc173Smrg#endif 649c43cc173Smrg#ifdef STDC_HEADERS 650c43cc173Smrg# include <stdlib.h> 651c43cc173Smrg# include <stddef.h> 652c43cc173Smrg#else 653c43cc173Smrg# ifdef HAVE_STDLIB_H 654c43cc173Smrg# include <stdlib.h> 655c43cc173Smrg# endif 656c43cc173Smrg#endif 657c43cc173Smrg#ifdef HAVE_STRING_H 658c43cc173Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 659c43cc173Smrg# include <memory.h> 660c43cc173Smrg# endif 661c43cc173Smrg# include <string.h> 662c43cc173Smrg#endif 663c43cc173Smrg#ifdef HAVE_STRINGS_H 664c43cc173Smrg# include <strings.h> 665c43cc173Smrg#endif 666c43cc173Smrg#ifdef HAVE_INTTYPES_H 667c43cc173Smrg# include <inttypes.h> 668c43cc173Smrg#endif 669c43cc173Smrg#ifdef HAVE_STDINT_H 670c43cc173Smrg# include <stdint.h> 671c43cc173Smrg#endif 672c43cc173Smrg#ifdef HAVE_UNISTD_H 673c43cc173Smrg# include <unistd.h> 674c43cc173Smrg#endif" 675c43cc173Smrg 676c27c18e8Smrgac_subst_vars='am__EXEEXT_FALSE 677c27c18e8Smrgam__EXEEXT_TRUE 678c27c18e8SmrgLTLIBOBJS 679c43cc173SmrgLIBOBJS 6803e256790SmrgINSTALL_MANPAGES_FALSE 6813e256790SmrgINSTALL_MANPAGES_TRUE 682c27c18e8SmrgHAVE_DOCTOOLS_FALSE 683c27c18e8SmrgHAVE_DOCTOOLS_TRUE 684c27c18e8SmrgXI_LIBS 685c27c18e8SmrgXI_CFLAGS 686b789ec8aSmrgXTMALLOC_ZERO_CFLAGS 687b789ec8aSmrgXMALLOC_ZERO_CFLAGS 688b789ec8aSmrgMALLOC_ZERO_CFLAGS 68937eb1ca1SmrgHAVE_ASCIIDOC_FALSE 69037eb1ca1SmrgHAVE_ASCIIDOC_TRUE 69137eb1ca1SmrgASCIIDOC 69237eb1ca1SmrgHAVE_STYLESHEETS_FALSE 69337eb1ca1SmrgHAVE_STYLESHEETS_TRUE 69437eb1ca1SmrgXSL_STYLESHEET 69537eb1ca1SmrgSTYLESHEET_SRCDIR 69637eb1ca1SmrgXORG_SGML_PATH 69737eb1ca1SmrgHAVE_FOP_FALSE 69837eb1ca1SmrgHAVE_FOP_TRUE 69937eb1ca1SmrgFOP 70037eb1ca1SmrgHAVE_XMLTO_FALSE 70137eb1ca1SmrgHAVE_XMLTO_TRUE 70237eb1ca1SmrgHAVE_XMLTO_TEXT_FALSE 70337eb1ca1SmrgHAVE_XMLTO_TEXT_TRUE 70437eb1ca1SmrgXMLTO 70537eb1ca1SmrgENABLE_SPECS_FALSE 70637eb1ca1SmrgENABLE_SPECS_TRUE 7073e256790SmrgAM_BACKSLASH 7083e256790SmrgAM_DEFAULT_VERBOSITY 7093e256790SmrgMAN_SUBSTS 7103e256790SmrgXORG_MAN_PAGE 7113e256790SmrgADMIN_MAN_DIR 7123e256790SmrgDRIVER_MAN_DIR 7133e256790SmrgMISC_MAN_DIR 7143e256790SmrgFILE_MAN_DIR 7153e256790SmrgLIB_MAN_DIR 7163e256790SmrgAPP_MAN_DIR 7173e256790SmrgADMIN_MAN_SUFFIX 7183e256790SmrgDRIVER_MAN_SUFFIX 7193e256790SmrgMISC_MAN_SUFFIX 7203e256790SmrgFILE_MAN_SUFFIX 7213e256790SmrgLIB_MAN_SUFFIX 7223e256790SmrgAPP_MAN_SUFFIX 7233e256790SmrgINSTALL_CMD 72437eb1ca1SmrgPKG_CONFIG_LIBDIR 72537eb1ca1SmrgPKG_CONFIG_PATH 7263e256790SmrgPKG_CONFIG 7273e256790SmrgCHANGELOG_CMD 7283e256790SmrgCWARNFLAGS 729b789ec8aSmrgCPP 730b789ec8aSmrgOTOOL64 731b789ec8aSmrgOTOOL 732b789ec8aSmrgLIPO 733b789ec8aSmrgNMEDIT 734b789ec8aSmrgDSYMUTIL 735b789ec8aSmrgMANIFEST_TOOL 736b789ec8aSmrgRANLIB 737b789ec8aSmrgac_ct_AR 738b789ec8aSmrgAR 739b789ec8aSmrgDLLTOOL 740b789ec8aSmrgOBJDUMP 741b789ec8aSmrgLN_S 742b789ec8aSmrgNM 743b789ec8aSmrgac_ct_DUMPBIN 744b789ec8aSmrgDUMPBIN 745b789ec8aSmrgLD 746b789ec8aSmrgFGREP 7473e256790SmrgEGREP 7483e256790SmrgGREP 749b789ec8aSmrgSED 75021e67964Smrgam__fastdepCC_FALSE 75121e67964Smrgam__fastdepCC_TRUE 75221e67964SmrgCCDEPMODE 75321e67964SmrgAMDEPBACKSLASH 75421e67964SmrgAMDEP_FALSE 75521e67964SmrgAMDEP_TRUE 75621e67964Smrgam__quote 75721e67964Smrgam__include 75821e67964SmrgDEPDIR 75921e67964SmrgOBJEXT 76021e67964SmrgEXEEXT 76121e67964Smrgac_ct_CC 76221e67964SmrgCPPFLAGS 76321e67964SmrgLDFLAGS 76421e67964SmrgCFLAGS 76521e67964SmrgCC 766b789ec8aSmrghost_os 767b789ec8aSmrghost_vendor 768b789ec8aSmrghost_cpu 769b789ec8aSmrghost 770b789ec8aSmrgbuild_os 771b789ec8aSmrgbuild_vendor 772b789ec8aSmrgbuild_cpu 773b789ec8aSmrgbuild 774b789ec8aSmrgLIBTOOL 77521e67964SmrgMAINT 77621e67964SmrgMAINTAINER_MODE_FALSE 77721e67964SmrgMAINTAINER_MODE_TRUE 77821e67964Smrgam__untar 77921e67964Smrgam__tar 78021e67964SmrgAMTAR 78121e67964Smrgam__leading_dot 78221e67964SmrgSET_MAKE 78321e67964SmrgAWK 78421e67964Smrgmkdir_p 78521e67964SmrgMKDIR_P 78621e67964SmrgINSTALL_STRIP_PROGRAM 78721e67964SmrgSTRIP 78821e67964Smrginstall_sh 78921e67964SmrgMAKEINFO 79021e67964SmrgAUTOHEADER 79121e67964SmrgAUTOMAKE 79221e67964SmrgAUTOCONF 79321e67964SmrgACLOCAL 79421e67964SmrgVERSION 79521e67964SmrgPACKAGE 79621e67964SmrgCYGPATH_W 79721e67964Smrgam__isrc 79821e67964SmrgINSTALL_DATA 79921e67964SmrgINSTALL_SCRIPT 80021e67964SmrgINSTALL_PROGRAM 80121e67964Smrgtarget_alias 80221e67964Smrghost_alias 80321e67964Smrgbuild_alias 80421e67964SmrgLIBS 80521e67964SmrgECHO_T 80621e67964SmrgECHO_N 80721e67964SmrgECHO_C 80821e67964SmrgDEFS 80921e67964Smrgmandir 81021e67964Smrglocaledir 81121e67964Smrglibdir 81221e67964Smrgpsdir 81321e67964Smrgpdfdir 81421e67964Smrgdvidir 81521e67964Smrghtmldir 81621e67964Smrginfodir 81721e67964Smrgdocdir 81821e67964Smrgoldincludedir 81921e67964Smrgincludedir 82021e67964Smrglocalstatedir 82121e67964Smrgsharedstatedir 82221e67964Smrgsysconfdir 82321e67964Smrgdatadir 82421e67964Smrgdatarootdir 82521e67964Smrglibexecdir 82621e67964Smrgsbindir 82721e67964Smrgbindir 82821e67964Smrgprogram_transform_name 82921e67964Smrgprefix 83021e67964Smrgexec_prefix 8313e256790SmrgPACKAGE_URL 83221e67964SmrgPACKAGE_BUGREPORT 83321e67964SmrgPACKAGE_STRING 83421e67964SmrgPACKAGE_VERSION 83521e67964SmrgPACKAGE_TARNAME 83621e67964SmrgPACKAGE_NAME 83721e67964SmrgPATH_SEPARATOR 83821e67964SmrgSHELL' 839c43cc173Smrgac_subst_files='' 84021e67964Smrgac_user_opts=' 84121e67964Smrgenable_option_checking 84221e67964Smrgenable_maintainer_mode 843b789ec8aSmrgenable_shared 844b789ec8aSmrgenable_static 845b789ec8aSmrgwith_pic 846b789ec8aSmrgenable_fast_install 84721e67964Smrgenable_dependency_tracking 848b789ec8aSmrgwith_gnu_ld 849b789ec8aSmrgwith_sysroot 850b789ec8aSmrgenable_libtool_lock 8513e256790Smrgenable_strict_compilation 8523e256790Smrgenable_silent_rules 85337eb1ca1Smrgenable_specs 85437eb1ca1Smrgwith_xmlto 85537eb1ca1Smrgwith_fop 85637eb1ca1Smrgwith_asciidoc 857c27c18e8Smrgenable_malloc0returnsnull 85821e67964Smrg' 859c43cc173Smrg ac_precious_vars='build_alias 860c43cc173Smrghost_alias 861c43cc173Smrgtarget_alias 862c43cc173SmrgCC 863c43cc173SmrgCFLAGS 864c43cc173SmrgLDFLAGS 865c43cc173SmrgLIBS 866c43cc173SmrgCPPFLAGS 867c43cc173SmrgCPP 868c43cc173SmrgPKG_CONFIG 86937eb1ca1SmrgPKG_CONFIG_PATH 87037eb1ca1SmrgPKG_CONFIG_LIBDIR 871c27c18e8SmrgXMLTO 87237eb1ca1SmrgFOP 87337eb1ca1SmrgASCIIDOC 87437eb1ca1SmrgXI_CFLAGS 87537eb1ca1SmrgXI_LIBS' 876c43cc173Smrg 877c43cc173Smrg 878c43cc173Smrg# Initialize some variables set by options. 879c43cc173Smrgac_init_help= 880c43cc173Smrgac_init_version=false 88121e67964Smrgac_unrecognized_opts= 88221e67964Smrgac_unrecognized_sep= 883c43cc173Smrg# The variables have the same names as the options, with 884c43cc173Smrg# dashes changed to underlines. 885c43cc173Smrgcache_file=/dev/null 886c43cc173Smrgexec_prefix=NONE 887c43cc173Smrgno_create= 888c43cc173Smrgno_recursion= 889c43cc173Smrgprefix=NONE 890c43cc173Smrgprogram_prefix=NONE 891c43cc173Smrgprogram_suffix=NONE 892c43cc173Smrgprogram_transform_name=s,x,x, 893c43cc173Smrgsilent= 894c43cc173Smrgsite= 895c43cc173Smrgsrcdir= 896c43cc173Smrgverbose= 897c43cc173Smrgx_includes=NONE 898c43cc173Smrgx_libraries=NONE 899c43cc173Smrg 900c43cc173Smrg# Installation directory options. 901c43cc173Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 902c43cc173Smrg# and all the variables that are supposed to be based on exec_prefix 903c43cc173Smrg# by default will actually change. 904c43cc173Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 905c43cc173Smrg# (The list follows the same order as the GNU Coding Standards.) 906c43cc173Smrgbindir='${exec_prefix}/bin' 907c43cc173Smrgsbindir='${exec_prefix}/sbin' 908c43cc173Smrglibexecdir='${exec_prefix}/libexec' 909c43cc173Smrgdatarootdir='${prefix}/share' 910c43cc173Smrgdatadir='${datarootdir}' 911c43cc173Smrgsysconfdir='${prefix}/etc' 912c43cc173Smrgsharedstatedir='${prefix}/com' 913c43cc173Smrglocalstatedir='${prefix}/var' 914c43cc173Smrgincludedir='${prefix}/include' 915c43cc173Smrgoldincludedir='/usr/include' 916c43cc173Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 917c43cc173Smrginfodir='${datarootdir}/info' 918c43cc173Smrghtmldir='${docdir}' 919c43cc173Smrgdvidir='${docdir}' 920c43cc173Smrgpdfdir='${docdir}' 921c43cc173Smrgpsdir='${docdir}' 922c43cc173Smrglibdir='${exec_prefix}/lib' 923c43cc173Smrglocaledir='${datarootdir}/locale' 924c43cc173Smrgmandir='${datarootdir}/man' 925c43cc173Smrg 926c43cc173Smrgac_prev= 927c43cc173Smrgac_dashdash= 928c43cc173Smrgfor ac_option 929c43cc173Smrgdo 930c43cc173Smrg # If the previous option needs an argument, assign it. 931c43cc173Smrg if test -n "$ac_prev"; then 932c43cc173Smrg eval $ac_prev=\$ac_option 933c43cc173Smrg ac_prev= 934c43cc173Smrg continue 935c43cc173Smrg fi 936c43cc173Smrg 937c43cc173Smrg case $ac_option in 938b789ec8aSmrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 939b789ec8aSmrg *=) ac_optarg= ;; 940b789ec8aSmrg *) ac_optarg=yes ;; 941c43cc173Smrg esac 942c43cc173Smrg 943c43cc173Smrg # Accept the important Cygnus configure options, so we can diagnose typos. 944c43cc173Smrg 945c43cc173Smrg case $ac_dashdash$ac_option in 946c43cc173Smrg --) 947c43cc173Smrg ac_dashdash=yes ;; 948c43cc173Smrg 949c43cc173Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 950c43cc173Smrg ac_prev=bindir ;; 951c43cc173Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 952c43cc173Smrg bindir=$ac_optarg ;; 953c43cc173Smrg 954c43cc173Smrg -build | --build | --buil | --bui | --bu) 955c43cc173Smrg ac_prev=build_alias ;; 956c43cc173Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 957c43cc173Smrg build_alias=$ac_optarg ;; 958c43cc173Smrg 959c43cc173Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 960c43cc173Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 961c43cc173Smrg ac_prev=cache_file ;; 962c43cc173Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 963c43cc173Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 964c43cc173Smrg cache_file=$ac_optarg ;; 965c43cc173Smrg 966c43cc173Smrg --config-cache | -C) 967c43cc173Smrg cache_file=config.cache ;; 968c43cc173Smrg 969c43cc173Smrg -datadir | --datadir | --datadi | --datad) 970c43cc173Smrg ac_prev=datadir ;; 971c43cc173Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 972c43cc173Smrg datadir=$ac_optarg ;; 973c43cc173Smrg 974c43cc173Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 975c43cc173Smrg | --dataroo | --dataro | --datar) 976c43cc173Smrg ac_prev=datarootdir ;; 977c43cc173Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 978c43cc173Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 979c43cc173Smrg datarootdir=$ac_optarg ;; 980c43cc173Smrg 981c43cc173Smrg -disable-* | --disable-*) 98221e67964Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 983c43cc173Smrg # Reject names that are not valid shell variable names. 98421e67964Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 98537eb1ca1Smrg as_fn_error $? "invalid feature name: $ac_useropt" 98621e67964Smrg ac_useropt_orig=$ac_useropt 98721e67964Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 98821e67964Smrg case $ac_user_opts in 98921e67964Smrg *" 99021e67964Smrg"enable_$ac_useropt" 99121e67964Smrg"*) ;; 99221e67964Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 99321e67964Smrg ac_unrecognized_sep=', ';; 99421e67964Smrg esac 99521e67964Smrg eval enable_$ac_useropt=no ;; 996c43cc173Smrg 997c43cc173Smrg -docdir | --docdir | --docdi | --doc | --do) 998c43cc173Smrg ac_prev=docdir ;; 999c43cc173Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1000c43cc173Smrg docdir=$ac_optarg ;; 1001c43cc173Smrg 1002c43cc173Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1003c43cc173Smrg ac_prev=dvidir ;; 1004c43cc173Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1005c43cc173Smrg dvidir=$ac_optarg ;; 1006c43cc173Smrg 1007c43cc173Smrg -enable-* | --enable-*) 100821e67964Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1009c43cc173Smrg # Reject names that are not valid shell variable names. 101021e67964Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 101137eb1ca1Smrg as_fn_error $? "invalid feature name: $ac_useropt" 101221e67964Smrg ac_useropt_orig=$ac_useropt 101321e67964Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 101421e67964Smrg case $ac_user_opts in 101521e67964Smrg *" 101621e67964Smrg"enable_$ac_useropt" 101721e67964Smrg"*) ;; 101821e67964Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 101921e67964Smrg ac_unrecognized_sep=', ';; 102021e67964Smrg esac 102121e67964Smrg eval enable_$ac_useropt=\$ac_optarg ;; 1022c43cc173Smrg 1023c43cc173Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1024c43cc173Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1025c43cc173Smrg | --exec | --exe | --ex) 1026c43cc173Smrg ac_prev=exec_prefix ;; 1027c43cc173Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1028c43cc173Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1029c43cc173Smrg | --exec=* | --exe=* | --ex=*) 1030c43cc173Smrg exec_prefix=$ac_optarg ;; 1031c43cc173Smrg 1032c43cc173Smrg -gas | --gas | --ga | --g) 1033c43cc173Smrg # Obsolete; use --with-gas. 1034c43cc173Smrg with_gas=yes ;; 1035c43cc173Smrg 1036c43cc173Smrg -help | --help | --hel | --he | -h) 1037c43cc173Smrg ac_init_help=long ;; 1038c43cc173Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1039c43cc173Smrg ac_init_help=recursive ;; 1040c43cc173Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1041c43cc173Smrg ac_init_help=short ;; 1042c43cc173Smrg 1043c43cc173Smrg -host | --host | --hos | --ho) 1044c43cc173Smrg ac_prev=host_alias ;; 1045c43cc173Smrg -host=* | --host=* | --hos=* | --ho=*) 1046c43cc173Smrg host_alias=$ac_optarg ;; 1047c43cc173Smrg 1048c43cc173Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1049c43cc173Smrg ac_prev=htmldir ;; 1050c43cc173Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1051c43cc173Smrg | --ht=*) 1052c43cc173Smrg htmldir=$ac_optarg ;; 1053c43cc173Smrg 1054c43cc173Smrg -includedir | --includedir | --includedi | --included | --include \ 1055c43cc173Smrg | --includ | --inclu | --incl | --inc) 1056c43cc173Smrg ac_prev=includedir ;; 1057c43cc173Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1058c43cc173Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 1059c43cc173Smrg includedir=$ac_optarg ;; 1060c43cc173Smrg 1061c43cc173Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 1062c43cc173Smrg ac_prev=infodir ;; 1063c43cc173Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1064c43cc173Smrg infodir=$ac_optarg ;; 1065c43cc173Smrg 1066c43cc173Smrg -libdir | --libdir | --libdi | --libd) 1067c43cc173Smrg ac_prev=libdir ;; 1068c43cc173Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 1069c43cc173Smrg libdir=$ac_optarg ;; 1070c43cc173Smrg 1071c43cc173Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1072c43cc173Smrg | --libexe | --libex | --libe) 1073c43cc173Smrg ac_prev=libexecdir ;; 1074c43cc173Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1075c43cc173Smrg | --libexe=* | --libex=* | --libe=*) 1076c43cc173Smrg libexecdir=$ac_optarg ;; 1077c43cc173Smrg 1078c43cc173Smrg -localedir | --localedir | --localedi | --localed | --locale) 1079c43cc173Smrg ac_prev=localedir ;; 1080c43cc173Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1081c43cc173Smrg localedir=$ac_optarg ;; 1082c43cc173Smrg 1083c43cc173Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 1084c43cc173Smrg | --localstate | --localstat | --localsta | --localst | --locals) 1085c43cc173Smrg ac_prev=localstatedir ;; 1086c43cc173Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1087c43cc173Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1088c43cc173Smrg localstatedir=$ac_optarg ;; 1089c43cc173Smrg 1090c43cc173Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1091c43cc173Smrg ac_prev=mandir ;; 1092c43cc173Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1093c43cc173Smrg mandir=$ac_optarg ;; 1094c43cc173Smrg 1095c43cc173Smrg -nfp | --nfp | --nf) 1096c43cc173Smrg # Obsolete; use --without-fp. 1097c43cc173Smrg with_fp=no ;; 1098c43cc173Smrg 1099c43cc173Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1100c43cc173Smrg | --no-cr | --no-c | -n) 1101c43cc173Smrg no_create=yes ;; 1102c43cc173Smrg 1103c43cc173Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1104c43cc173Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1105c43cc173Smrg no_recursion=yes ;; 1106c43cc173Smrg 1107c43cc173Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1108c43cc173Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1109c43cc173Smrg | --oldin | --oldi | --old | --ol | --o) 1110c43cc173Smrg ac_prev=oldincludedir ;; 1111c43cc173Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1112c43cc173Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1113c43cc173Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1114c43cc173Smrg oldincludedir=$ac_optarg ;; 1115c43cc173Smrg 1116c43cc173Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1117c43cc173Smrg ac_prev=prefix ;; 1118c43cc173Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1119c43cc173Smrg prefix=$ac_optarg ;; 1120c43cc173Smrg 1121c43cc173Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1122c43cc173Smrg | --program-pre | --program-pr | --program-p) 1123c43cc173Smrg ac_prev=program_prefix ;; 1124c43cc173Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1125c43cc173Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1126c43cc173Smrg program_prefix=$ac_optarg ;; 1127c43cc173Smrg 1128c43cc173Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1129c43cc173Smrg | --program-suf | --program-su | --program-s) 1130c43cc173Smrg ac_prev=program_suffix ;; 1131c43cc173Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1132c43cc173Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1133c43cc173Smrg program_suffix=$ac_optarg ;; 1134c43cc173Smrg 1135c43cc173Smrg -program-transform-name | --program-transform-name \ 1136c43cc173Smrg | --program-transform-nam | --program-transform-na \ 1137c43cc173Smrg | --program-transform-n | --program-transform- \ 1138c43cc173Smrg | --program-transform | --program-transfor \ 1139c43cc173Smrg | --program-transfo | --program-transf \ 1140c43cc173Smrg | --program-trans | --program-tran \ 1141c43cc173Smrg | --progr-tra | --program-tr | --program-t) 1142c43cc173Smrg ac_prev=program_transform_name ;; 1143c43cc173Smrg -program-transform-name=* | --program-transform-name=* \ 1144c43cc173Smrg | --program-transform-nam=* | --program-transform-na=* \ 1145c43cc173Smrg | --program-transform-n=* | --program-transform-=* \ 1146c43cc173Smrg | --program-transform=* | --program-transfor=* \ 1147c43cc173Smrg | --program-transfo=* | --program-transf=* \ 1148c43cc173Smrg | --program-trans=* | --program-tran=* \ 1149c43cc173Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 1150c43cc173Smrg program_transform_name=$ac_optarg ;; 1151c43cc173Smrg 1152c43cc173Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1153c43cc173Smrg ac_prev=pdfdir ;; 1154c43cc173Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1155c43cc173Smrg pdfdir=$ac_optarg ;; 1156c43cc173Smrg 1157c43cc173Smrg -psdir | --psdir | --psdi | --psd | --ps) 1158c43cc173Smrg ac_prev=psdir ;; 1159c43cc173Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1160c43cc173Smrg psdir=$ac_optarg ;; 1161c43cc173Smrg 1162c43cc173Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1163c43cc173Smrg | -silent | --silent | --silen | --sile | --sil) 1164c43cc173Smrg silent=yes ;; 1165c43cc173Smrg 1166c43cc173Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1167c43cc173Smrg ac_prev=sbindir ;; 1168c43cc173Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1169c43cc173Smrg | --sbi=* | --sb=*) 1170c43cc173Smrg sbindir=$ac_optarg ;; 1171c43cc173Smrg 1172c43cc173Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1173c43cc173Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1174c43cc173Smrg | --sharedst | --shareds | --shared | --share | --shar \ 1175c43cc173Smrg | --sha | --sh) 1176c43cc173Smrg ac_prev=sharedstatedir ;; 1177c43cc173Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1178c43cc173Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1179c43cc173Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1180c43cc173Smrg | --sha=* | --sh=*) 1181c43cc173Smrg sharedstatedir=$ac_optarg ;; 1182c43cc173Smrg 1183c43cc173Smrg -site | --site | --sit) 1184c43cc173Smrg ac_prev=site ;; 1185c43cc173Smrg -site=* | --site=* | --sit=*) 1186c43cc173Smrg site=$ac_optarg ;; 1187c43cc173Smrg 1188c43cc173Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1189c43cc173Smrg ac_prev=srcdir ;; 1190c43cc173Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1191c43cc173Smrg srcdir=$ac_optarg ;; 1192c43cc173Smrg 1193c43cc173Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1194c43cc173Smrg | --syscon | --sysco | --sysc | --sys | --sy) 1195c43cc173Smrg ac_prev=sysconfdir ;; 1196c43cc173Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1197c43cc173Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1198c43cc173Smrg sysconfdir=$ac_optarg ;; 1199c43cc173Smrg 1200c43cc173Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 1201c43cc173Smrg ac_prev=target_alias ;; 1202c43cc173Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1203c43cc173Smrg target_alias=$ac_optarg ;; 1204c43cc173Smrg 1205c43cc173Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 1206c43cc173Smrg verbose=yes ;; 1207c43cc173Smrg 1208c43cc173Smrg -version | --version | --versio | --versi | --vers | -V) 1209c43cc173Smrg ac_init_version=: ;; 1210c43cc173Smrg 1211c43cc173Smrg -with-* | --with-*) 121221e67964Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1213c43cc173Smrg # Reject names that are not valid shell variable names. 121421e67964Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 121537eb1ca1Smrg as_fn_error $? "invalid package name: $ac_useropt" 121621e67964Smrg ac_useropt_orig=$ac_useropt 121721e67964Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 121821e67964Smrg case $ac_user_opts in 121921e67964Smrg *" 122021e67964Smrg"with_$ac_useropt" 122121e67964Smrg"*) ;; 122221e67964Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 122321e67964Smrg ac_unrecognized_sep=', ';; 122421e67964Smrg esac 122521e67964Smrg eval with_$ac_useropt=\$ac_optarg ;; 1226c43cc173Smrg 1227c43cc173Smrg -without-* | --without-*) 122821e67964Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1229c43cc173Smrg # Reject names that are not valid shell variable names. 123021e67964Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 123137eb1ca1Smrg as_fn_error $? "invalid package name: $ac_useropt" 123221e67964Smrg ac_useropt_orig=$ac_useropt 123321e67964Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 123421e67964Smrg case $ac_user_opts in 123521e67964Smrg *" 123621e67964Smrg"with_$ac_useropt" 123721e67964Smrg"*) ;; 123821e67964Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 123921e67964Smrg ac_unrecognized_sep=', ';; 124021e67964Smrg esac 124121e67964Smrg eval with_$ac_useropt=no ;; 1242c43cc173Smrg 1243c43cc173Smrg --x) 1244c43cc173Smrg # Obsolete; use --with-x. 1245c43cc173Smrg with_x=yes ;; 1246c43cc173Smrg 1247c43cc173Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1248c43cc173Smrg | --x-incl | --x-inc | --x-in | --x-i) 1249c43cc173Smrg ac_prev=x_includes ;; 1250c43cc173Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1251c43cc173Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1252c43cc173Smrg x_includes=$ac_optarg ;; 1253c43cc173Smrg 1254c43cc173Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1255c43cc173Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1256c43cc173Smrg ac_prev=x_libraries ;; 1257c43cc173Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1258c43cc173Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1259c43cc173Smrg x_libraries=$ac_optarg ;; 1260c43cc173Smrg 126137eb1ca1Smrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 126237eb1ca1SmrgTry \`$0 --help' for more information" 1263c43cc173Smrg ;; 1264c43cc173Smrg 1265c43cc173Smrg *=*) 1266c43cc173Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1267c43cc173Smrg # Reject names that are not valid shell variable names. 12683e256790Smrg case $ac_envvar in #( 12693e256790Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 127037eb1ca1Smrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 12713e256790Smrg esac 1272c43cc173Smrg eval $ac_envvar=\$ac_optarg 1273c43cc173Smrg export $ac_envvar ;; 1274c43cc173Smrg 1275c43cc173Smrg *) 1276c43cc173Smrg # FIXME: should be removed in autoconf 3.0. 127721e67964Smrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1278c43cc173Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 127921e67964Smrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1280b789ec8aSmrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1281c43cc173Smrg ;; 1282c43cc173Smrg 1283c43cc173Smrg esac 1284c43cc173Smrgdone 1285c43cc173Smrg 1286c43cc173Smrgif test -n "$ac_prev"; then 1287c43cc173Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 128837eb1ca1Smrg as_fn_error $? "missing argument to $ac_option" 1289c43cc173Smrgfi 1290c43cc173Smrg 129121e67964Smrgif test -n "$ac_unrecognized_opts"; then 129221e67964Smrg case $enable_option_checking in 129321e67964Smrg no) ;; 129437eb1ca1Smrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 129521e67964Smrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 129621e67964Smrg esac 129721e67964Smrgfi 129821e67964Smrg 129921e67964Smrg# Check all directory arguments for consistency. 1300c43cc173Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1301c43cc173Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1302c43cc173Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1303c43cc173Smrg libdir localedir mandir 1304c43cc173Smrgdo 1305c43cc173Smrg eval ac_val=\$$ac_var 130621e67964Smrg # Remove trailing slashes. 130721e67964Smrg case $ac_val in 130821e67964Smrg */ ) 130921e67964Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 131021e67964Smrg eval $ac_var=\$ac_val;; 131121e67964Smrg esac 131221e67964Smrg # Be sure to have absolute directory names. 1313c43cc173Smrg case $ac_val in 1314c43cc173Smrg [\\/$]* | ?:[\\/]* ) continue;; 1315c43cc173Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1316c43cc173Smrg esac 131737eb1ca1Smrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1318c43cc173Smrgdone 1319c43cc173Smrg 1320c43cc173Smrg# There might be people who depend on the old broken behavior: `$host' 1321c43cc173Smrg# used to hold the argument of --host etc. 1322c43cc173Smrg# FIXME: To remove some day. 1323c43cc173Smrgbuild=$build_alias 1324c43cc173Smrghost=$host_alias 1325c43cc173Smrgtarget=$target_alias 1326c43cc173Smrg 1327c43cc173Smrg# FIXME: To remove some day. 1328c43cc173Smrgif test "x$host_alias" != x; then 1329c43cc173Smrg if test "x$build_alias" = x; then 1330c43cc173Smrg cross_compiling=maybe 133137eb1ca1Smrg $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 133237eb1ca1Smrg If a cross compiler is detected then cross compile mode will be used" >&2 1333c43cc173Smrg elif test "x$build_alias" != "x$host_alias"; then 1334c43cc173Smrg cross_compiling=yes 1335c43cc173Smrg fi 1336c43cc173Smrgfi 1337c43cc173Smrg 1338c43cc173Smrgac_tool_prefix= 1339c43cc173Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 1340c43cc173Smrg 1341c43cc173Smrgtest "$silent" = yes && exec 6>/dev/null 1342c43cc173Smrg 1343c43cc173Smrg 1344c43cc173Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 1345c43cc173Smrgac_ls_di=`ls -di .` && 1346c43cc173Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 134737eb1ca1Smrg as_fn_error $? "working directory cannot be determined" 1348c43cc173Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 134937eb1ca1Smrg as_fn_error $? "pwd does not report name of working directory" 1350c43cc173Smrg 1351c43cc173Smrg 1352c43cc173Smrg# Find the source files, if location was not specified. 1353c43cc173Smrgif test -z "$srcdir"; then 1354c43cc173Smrg ac_srcdir_defaulted=yes 1355c43cc173Smrg # Try the directory containing this script, then the parent directory. 135621e67964Smrg ac_confdir=`$as_dirname -- "$as_myself" || 135721e67964Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 135821e67964Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 135921e67964Smrg X"$as_myself" : 'X\(//\)$' \| \ 136021e67964Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 136121e67964Smrg$as_echo X"$as_myself" | 1362c43cc173Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1363c43cc173Smrg s//\1/ 1364c43cc173Smrg q 1365c43cc173Smrg } 1366c43cc173Smrg /^X\(\/\/\)[^/].*/{ 1367c43cc173Smrg s//\1/ 1368c43cc173Smrg q 1369c43cc173Smrg } 1370c43cc173Smrg /^X\(\/\/\)$/{ 1371c43cc173Smrg s//\1/ 1372c43cc173Smrg q 1373c43cc173Smrg } 1374c43cc173Smrg /^X\(\/\).*/{ 1375c43cc173Smrg s//\1/ 1376c43cc173Smrg q 1377c43cc173Smrg } 1378c43cc173Smrg s/.*/./; q'` 1379c43cc173Smrg srcdir=$ac_confdir 1380c43cc173Smrg if test ! -r "$srcdir/$ac_unique_file"; then 1381c43cc173Smrg srcdir=.. 1382c43cc173Smrg fi 1383c43cc173Smrgelse 1384c43cc173Smrg ac_srcdir_defaulted=no 1385c43cc173Smrgfi 1386c43cc173Smrgif test ! -r "$srcdir/$ac_unique_file"; then 1387c43cc173Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 138837eb1ca1Smrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1389c43cc173Smrgfi 1390c43cc173Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1391c43cc173Smrgac_abs_confdir=`( 139237eb1ca1Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1393c43cc173Smrg pwd)` 1394c43cc173Smrg# When building in place, set srcdir=. 1395c43cc173Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1396c43cc173Smrg srcdir=. 1397c43cc173Smrgfi 1398c43cc173Smrg# Remove unnecessary trailing slashes from srcdir. 1399c43cc173Smrg# Double slashes in file names in object file debugging info 1400c43cc173Smrg# mess up M-x gdb in Emacs. 1401c43cc173Smrgcase $srcdir in 1402c43cc173Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1403c43cc173Smrgesac 1404c43cc173Smrgfor ac_var in $ac_precious_vars; do 1405c43cc173Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1406c43cc173Smrg eval ac_env_${ac_var}_value=\$${ac_var} 1407c43cc173Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1408c43cc173Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1409c43cc173Smrgdone 1410c43cc173Smrg 1411c43cc173Smrg# 1412c43cc173Smrg# Report the --help message. 1413c43cc173Smrg# 1414c43cc173Smrgif test "$ac_init_help" = "long"; then 1415c43cc173Smrg # Omit some internal or obsolete options to make the list less imposing. 1416c43cc173Smrg # This message is too long to be a string in the A/UX 3.1 sh. 1417c43cc173Smrg cat <<_ACEOF 1418b789ec8aSmrg\`configure' configures libXi 1.4.3 to adapt to many kinds of systems. 1419c43cc173Smrg 1420c43cc173SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 1421c43cc173Smrg 1422c43cc173SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1423c43cc173SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 1424c43cc173Smrg 1425c43cc173SmrgDefaults for the options are specified in brackets. 1426c43cc173Smrg 1427c43cc173SmrgConfiguration: 1428c43cc173Smrg -h, --help display this help and exit 1429c43cc173Smrg --help=short display options specific to this package 1430c43cc173Smrg --help=recursive display the short help of all the included packages 1431c43cc173Smrg -V, --version display version information and exit 143237eb1ca1Smrg -q, --quiet, --silent do not print \`checking ...' messages 1433c43cc173Smrg --cache-file=FILE cache test results in FILE [disabled] 1434c43cc173Smrg -C, --config-cache alias for \`--cache-file=config.cache' 1435c43cc173Smrg -n, --no-create do not create output files 1436c43cc173Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1437c43cc173Smrg 1438c43cc173SmrgInstallation directories: 1439c43cc173Smrg --prefix=PREFIX install architecture-independent files in PREFIX 144021e67964Smrg [$ac_default_prefix] 1441c43cc173Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 144221e67964Smrg [PREFIX] 1443c43cc173Smrg 1444c43cc173SmrgBy default, \`make install' will install all the files in 1445c43cc173Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1446c43cc173Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1447c43cc173Smrgfor instance \`--prefix=\$HOME'. 1448c43cc173Smrg 1449c43cc173SmrgFor better control, use the options below. 1450c43cc173Smrg 1451c43cc173SmrgFine tuning of the installation directories: 145221e67964Smrg --bindir=DIR user executables [EPREFIX/bin] 145321e67964Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 145421e67964Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 145521e67964Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 145621e67964Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 145721e67964Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 145821e67964Smrg --libdir=DIR object code libraries [EPREFIX/lib] 145921e67964Smrg --includedir=DIR C header files [PREFIX/include] 146021e67964Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 146121e67964Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 146221e67964Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 146321e67964Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 146421e67964Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 146521e67964Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 146621e67964Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/libXi] 146721e67964Smrg --htmldir=DIR html documentation [DOCDIR] 146821e67964Smrg --dvidir=DIR dvi documentation [DOCDIR] 146921e67964Smrg --pdfdir=DIR pdf documentation [DOCDIR] 147021e67964Smrg --psdir=DIR ps documentation [DOCDIR] 1471c43cc173Smrg_ACEOF 1472c43cc173Smrg 1473c43cc173Smrg cat <<\_ACEOF 1474c43cc173Smrg 1475c43cc173SmrgProgram names: 1476c43cc173Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 1477c43cc173Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 1478c43cc173Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1479c43cc173Smrg 1480c43cc173SmrgSystem types: 1481c43cc173Smrg --build=BUILD configure for building on BUILD [guessed] 1482c43cc173Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 1483c43cc173Smrg_ACEOF 1484c43cc173Smrgfi 1485c43cc173Smrg 1486c43cc173Smrgif test -n "$ac_init_help"; then 1487c43cc173Smrg case $ac_init_help in 1488b789ec8aSmrg short | recursive ) echo "Configuration of libXi 1.4.3:";; 1489c43cc173Smrg esac 1490c43cc173Smrg cat <<\_ACEOF 1491c43cc173Smrg 1492c43cc173SmrgOptional Features: 149321e67964Smrg --disable-option-checking ignore unrecognized --enable/--with options 1494c43cc173Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1495c43cc173Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1496c43cc173Smrg --enable-maintainer-mode enable make rules and dependencies not useful 1497c43cc173Smrg (and sometimes confusing) to the casual installer 1498b789ec8aSmrg --enable-shared[=PKGS] build shared libraries [default=yes] 1499b789ec8aSmrg --enable-static[=PKGS] build static libraries [default=yes] 1500b789ec8aSmrg --enable-fast-install[=PKGS] 1501b789ec8aSmrg optimize for fast installation [default=yes] 1502c43cc173Smrg --disable-dependency-tracking speeds up one-time build 1503c43cc173Smrg --enable-dependency-tracking do not reject slow dependency extractors 1504b789ec8aSmrg --disable-libtool-lock avoid locking (might break parallel builds) 15053e256790Smrg --enable-strict-compilation 15063e256790Smrg Enable all warnings from compiler and make them 15073e256790Smrg errors (default: disabled) 15083e256790Smrg --enable-silent-rules less verbose build output (undo: `make V=1') 15093e256790Smrg --disable-silent-rules verbose build output (undo: `make V=0') 151037eb1ca1Smrg --enable-specs Enable building the specs (default: yes) 1511c43cc173Smrg --enable-malloc0returnsnull 1512c43cc173Smrg malloc(0) returns NULL (default: auto) 1513c43cc173Smrg 1514c43cc173SmrgOptional Packages: 1515c43cc173Smrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1516c43cc173Smrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1517c43cc173Smrg --with-pic try to use only PIC/non-PIC objects [default=use 1518c43cc173Smrg both] 1519c27c18e8Smrg --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1520b789ec8aSmrg --with-sysroot=DIR Search for dependent libraries within DIR 1521b789ec8aSmrg (or the compiler's sysroot if not specified). 1522b789ec8aSmrg --with-xmlto Use xmlto to regenerate documentation (default: 1523b789ec8aSmrg auto) 1524b789ec8aSmrg --with-fop Use fop to regenerate documentation (default: auto) 1525b789ec8aSmrg --with-asciidoc Use asciidoc to regenerate documentation (default: 1526b789ec8aSmrg auto) 1527c43cc173Smrg 1528c43cc173SmrgSome influential environment variables: 1529c43cc173Smrg CC C compiler command 1530c43cc173Smrg CFLAGS C compiler flags 1531c43cc173Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1532c43cc173Smrg nonstandard directory <lib dir> 1533c43cc173Smrg LIBS libraries to pass to the linker, e.g. -l<library> 15343e256790Smrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1535c43cc173Smrg you have headers in a nonstandard directory <include dir> 1536c43cc173Smrg CPP C preprocessor 1537c43cc173Smrg PKG_CONFIG path to pkg-config utility 153837eb1ca1Smrg PKG_CONFIG_PATH 153937eb1ca1Smrg directories to add to pkg-config's search path 154037eb1ca1Smrg PKG_CONFIG_LIBDIR 154137eb1ca1Smrg path overriding pkg-config's built-in search path 1542c27c18e8Smrg XMLTO Path to xmlto command 154337eb1ca1Smrg FOP Path to fop command 1544c27c18e8Smrg ASCIIDOC Path to asciidoc command 154537eb1ca1Smrg XI_CFLAGS C compiler flags for XI, overriding pkg-config 154637eb1ca1Smrg XI_LIBS linker flags for XI, overriding pkg-config 1547c43cc173Smrg 1548c43cc173SmrgUse these variables to override the choices made by `configure' or to help 1549c43cc173Smrgit to find libraries and programs with nonstandard names/locations. 1550c43cc173Smrg 1551c43cc173SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1552c43cc173Smrg_ACEOF 1553c43cc173Smrgac_status=$? 1554c43cc173Smrgfi 1555c43cc173Smrg 1556c43cc173Smrgif test "$ac_init_help" = "recursive"; then 1557c43cc173Smrg # If there are subdirs, report their specific --help. 1558c43cc173Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 155921e67964Smrg test -d "$ac_dir" || 156021e67964Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 156121e67964Smrg continue 1562c43cc173Smrg ac_builddir=. 1563c43cc173Smrg 1564c43cc173Smrgcase "$ac_dir" in 1565c43cc173Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1566c43cc173Smrg*) 156721e67964Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1568c43cc173Smrg # A ".." for each directory in $ac_dir_suffix. 156921e67964Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1570c43cc173Smrg case $ac_top_builddir_sub in 1571c43cc173Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1572c43cc173Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1573c43cc173Smrg esac ;; 1574c43cc173Smrgesac 1575c43cc173Smrgac_abs_top_builddir=$ac_pwd 1576c43cc173Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1577c43cc173Smrg# for backward compatibility: 1578c43cc173Smrgac_top_builddir=$ac_top_build_prefix 1579c43cc173Smrg 1580c43cc173Smrgcase $srcdir in 1581c43cc173Smrg .) # We are building in place. 1582c43cc173Smrg ac_srcdir=. 1583c43cc173Smrg ac_top_srcdir=$ac_top_builddir_sub 1584c43cc173Smrg ac_abs_top_srcdir=$ac_pwd ;; 1585c43cc173Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 1586c43cc173Smrg ac_srcdir=$srcdir$ac_dir_suffix; 1587c43cc173Smrg ac_top_srcdir=$srcdir 1588c43cc173Smrg ac_abs_top_srcdir=$srcdir ;; 1589c43cc173Smrg *) # Relative name. 1590c43cc173Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1591c43cc173Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1592c43cc173Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1593c43cc173Smrgesac 1594c43cc173Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1595c43cc173Smrg 1596c43cc173Smrg cd "$ac_dir" || { ac_status=$?; continue; } 1597c43cc173Smrg # Check for guested configure. 1598c43cc173Smrg if test -f "$ac_srcdir/configure.gnu"; then 1599c43cc173Smrg echo && 1600c43cc173Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1601c43cc173Smrg elif test -f "$ac_srcdir/configure"; then 1602c43cc173Smrg echo && 1603c43cc173Smrg $SHELL "$ac_srcdir/configure" --help=recursive 1604c43cc173Smrg else 160521e67964Smrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1606c43cc173Smrg fi || ac_status=$? 1607c43cc173Smrg cd "$ac_pwd" || { ac_status=$?; break; } 1608c43cc173Smrg done 1609c43cc173Smrgfi 1610c43cc173Smrg 1611c43cc173Smrgtest -n "$ac_init_help" && exit $ac_status 1612c43cc173Smrgif $ac_init_version; then 1613c43cc173Smrg cat <<\_ACEOF 1614b789ec8aSmrglibXi configure 1.4.3 1615b789ec8aSmrggenerated by GNU Autoconf 2.68 1616c43cc173Smrg 161737eb1ca1SmrgCopyright (C) 2010 Free Software Foundation, Inc. 1618c43cc173SmrgThis configure script is free software; the Free Software Foundation 1619c43cc173Smrggives unlimited permission to copy, distribute and modify it. 1620c43cc173Smrg_ACEOF 1621c43cc173Smrg exit 1622c43cc173Smrgfi 16233e256790Smrg 16243e256790Smrg## ------------------------ ## 16253e256790Smrg## Autoconf initialization. ## 16263e256790Smrg## ------------------------ ## 16273e256790Smrg 16283e256790Smrg# ac_fn_c_try_compile LINENO 16293e256790Smrg# -------------------------- 16303e256790Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 16313e256790Smrgac_fn_c_try_compile () 16323e256790Smrg{ 16333e256790Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16343e256790Smrg rm -f conftest.$ac_objext 16353e256790Smrg if { { ac_try="$ac_compile" 16363e256790Smrgcase "(($ac_try" in 16373e256790Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16383e256790Smrg *) ac_try_echo=$ac_try;; 16393e256790Smrgesac 16403e256790Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16413e256790Smrg$as_echo "$ac_try_echo"; } >&5 16423e256790Smrg (eval "$ac_compile") 2>conftest.err 16433e256790Smrg ac_status=$? 16443e256790Smrg if test -s conftest.err; then 16453e256790Smrg grep -v '^ *+' conftest.err >conftest.er1 16463e256790Smrg cat conftest.er1 >&5 16473e256790Smrg mv -f conftest.er1 conftest.err 16483e256790Smrg fi 16493e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16503e256790Smrg test $ac_status = 0; } && { 16513e256790Smrg test -z "$ac_c_werror_flag" || 16523e256790Smrg test ! -s conftest.err 16533e256790Smrg } && test -s conftest.$ac_objext; then : 16543e256790Smrg ac_retval=0 16553e256790Smrgelse 16563e256790Smrg $as_echo "$as_me: failed program was:" >&5 16573e256790Smrgsed 's/^/| /' conftest.$ac_ext >&5 16583e256790Smrg 16593e256790Smrg ac_retval=1 16603e256790Smrgfi 1661b789ec8aSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16623e256790Smrg as_fn_set_status $ac_retval 16633e256790Smrg 16643e256790Smrg} # ac_fn_c_try_compile 16653e256790Smrg 1666b789ec8aSmrg# ac_fn_c_try_link LINENO 1667b789ec8aSmrg# ----------------------- 1668b789ec8aSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. 1669b789ec8aSmrgac_fn_c_try_link () 16703e256790Smrg{ 16713e256790Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1672b789ec8aSmrg rm -f conftest.$ac_objext conftest$ac_exeext 1673b789ec8aSmrg if { { ac_try="$ac_link" 1674b789ec8aSmrgcase "(($ac_try" in 1675b789ec8aSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1676b789ec8aSmrg *) ac_try_echo=$ac_try;; 1677b789ec8aSmrgesac 1678b789ec8aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1679b789ec8aSmrg$as_echo "$ac_try_echo"; } >&5 1680b789ec8aSmrg (eval "$ac_link") 2>conftest.err 1681b789ec8aSmrg ac_status=$? 1682b789ec8aSmrg if test -s conftest.err; then 1683b789ec8aSmrg grep -v '^ *+' conftest.err >conftest.er1 1684b789ec8aSmrg cat conftest.er1 >&5 1685b789ec8aSmrg mv -f conftest.er1 conftest.err 1686b789ec8aSmrg fi 1687b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1688b789ec8aSmrg test $ac_status = 0; } && { 1689b789ec8aSmrg test -z "$ac_c_werror_flag" || 1690b789ec8aSmrg test ! -s conftest.err 1691b789ec8aSmrg } && test -s conftest$ac_exeext && { 1692b789ec8aSmrg test "$cross_compiling" = yes || 1693b789ec8aSmrg $as_test_x conftest$ac_exeext 1694b789ec8aSmrg }; then : 1695b789ec8aSmrg ac_retval=0 1696b789ec8aSmrgelse 1697b789ec8aSmrg $as_echo "$as_me: failed program was:" >&5 1698b789ec8aSmrgsed 's/^/| /' conftest.$ac_ext >&5 1699b789ec8aSmrg 1700b789ec8aSmrg ac_retval=1 1701b789ec8aSmrgfi 1702b789ec8aSmrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1703b789ec8aSmrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1704b789ec8aSmrg # interfere with the next link command; also delete a directory that is 1705b789ec8aSmrg # left behind by Apple's compiler. We do this before executing the actions. 1706b789ec8aSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1707b789ec8aSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1708b789ec8aSmrg as_fn_set_status $ac_retval 1709b789ec8aSmrg 1710b789ec8aSmrg} # ac_fn_c_try_link 1711b789ec8aSmrg 1712b789ec8aSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1713b789ec8aSmrg# ------------------------------------------------------- 1714b789ec8aSmrg# Tests whether HEADER exists and can be compiled using the include files in 1715b789ec8aSmrg# INCLUDES, setting the cache variable VAR accordingly. 1716b789ec8aSmrgac_fn_c_check_header_compile () 1717b789ec8aSmrg{ 1718b789ec8aSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1719b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1720b789ec8aSmrg$as_echo_n "checking for $2... " >&6; } 1721b789ec8aSmrgif eval \${$3+:} false; then : 17223e256790Smrg $as_echo_n "(cached) " >&6 17233e256790Smrgelse 17243e256790Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17253e256790Smrg/* end confdefs.h. */ 17263e256790Smrg$4 1727b789ec8aSmrg#include <$2> 17283e256790Smrg_ACEOF 17293e256790Smrgif ac_fn_c_try_compile "$LINENO"; then : 17303e256790Smrg eval "$3=yes" 17313e256790Smrgelse 17323e256790Smrg eval "$3=no" 17333e256790Smrgfi 17343e256790Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17353e256790Smrgfi 17363e256790Smrgeval ac_res=\$$3 17373e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17383e256790Smrg$as_echo "$ac_res" >&6; } 1739b789ec8aSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17403e256790Smrg 1741b789ec8aSmrg} # ac_fn_c_check_header_compile 17423e256790Smrg 17433e256790Smrg# ac_fn_c_try_cpp LINENO 17443e256790Smrg# ---------------------- 17453e256790Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 17463e256790Smrgac_fn_c_try_cpp () 17473e256790Smrg{ 17483e256790Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17493e256790Smrg if { { ac_try="$ac_cpp conftest.$ac_ext" 17503e256790Smrgcase "(($ac_try" in 17513e256790Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17523e256790Smrg *) ac_try_echo=$ac_try;; 17533e256790Smrgesac 17543e256790Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17553e256790Smrg$as_echo "$ac_try_echo"; } >&5 17563e256790Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 17573e256790Smrg ac_status=$? 17583e256790Smrg if test -s conftest.err; then 17593e256790Smrg grep -v '^ *+' conftest.err >conftest.er1 17603e256790Smrg cat conftest.er1 >&5 17613e256790Smrg mv -f conftest.er1 conftest.err 17623e256790Smrg fi 17633e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1764b789ec8aSmrg test $ac_status = 0; } > conftest.i && { 17653e256790Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 17663e256790Smrg test ! -s conftest.err 17673e256790Smrg }; then : 17683e256790Smrg ac_retval=0 17693e256790Smrgelse 17703e256790Smrg $as_echo "$as_me: failed program was:" >&5 17713e256790Smrgsed 's/^/| /' conftest.$ac_ext >&5 17723e256790Smrg 17733e256790Smrg ac_retval=1 17743e256790Smrgfi 1775b789ec8aSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17763e256790Smrg as_fn_set_status $ac_retval 17773e256790Smrg 17783e256790Smrg} # ac_fn_c_try_cpp 17793e256790Smrg 17803e256790Smrg# ac_fn_c_try_run LINENO 17813e256790Smrg# ---------------------- 17823e256790Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 17833e256790Smrg# that executables *can* be run. 17843e256790Smrgac_fn_c_try_run () 17853e256790Smrg{ 17863e256790Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17873e256790Smrg if { { ac_try="$ac_link" 17883e256790Smrgcase "(($ac_try" in 17893e256790Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17903e256790Smrg *) ac_try_echo=$ac_try;; 17913e256790Smrgesac 17923e256790Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17933e256790Smrg$as_echo "$ac_try_echo"; } >&5 17943e256790Smrg (eval "$ac_link") 2>&5 17953e256790Smrg ac_status=$? 17963e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17973e256790Smrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 17983e256790Smrg { { case "(($ac_try" in 17993e256790Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18003e256790Smrg *) ac_try_echo=$ac_try;; 18013e256790Smrgesac 18023e256790Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 18033e256790Smrg$as_echo "$ac_try_echo"; } >&5 18043e256790Smrg (eval "$ac_try") 2>&5 18053e256790Smrg ac_status=$? 18063e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18073e256790Smrg test $ac_status = 0; }; }; then : 18083e256790Smrg ac_retval=0 18093e256790Smrgelse 18103e256790Smrg $as_echo "$as_me: program exited with status $ac_status" >&5 18113e256790Smrg $as_echo "$as_me: failed program was:" >&5 18123e256790Smrgsed 's/^/| /' conftest.$ac_ext >&5 18133e256790Smrg 18143e256790Smrg ac_retval=$ac_status 18153e256790Smrgfi 18163e256790Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1817b789ec8aSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 18183e256790Smrg as_fn_set_status $ac_retval 18193e256790Smrg 18203e256790Smrg} # ac_fn_c_try_run 18213e256790Smrg 18223e256790Smrg# ac_fn_c_check_func LINENO FUNC VAR 18233e256790Smrg# ---------------------------------- 18243e256790Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 18253e256790Smrgac_fn_c_check_func () 18263e256790Smrg{ 18273e256790Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18283e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 18293e256790Smrg$as_echo_n "checking for $2... " >&6; } 1830b789ec8aSmrgif eval \${$3+:} false; then : 18313e256790Smrg $as_echo_n "(cached) " >&6 18323e256790Smrgelse 18333e256790Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18343e256790Smrg/* end confdefs.h. */ 18353e256790Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 18363e256790Smrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18373e256790Smrg#define $2 innocuous_$2 18383e256790Smrg 18393e256790Smrg/* System header to define __stub macros and hopefully few prototypes, 18403e256790Smrg which can conflict with char $2 (); below. 18413e256790Smrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18423e256790Smrg <limits.h> exists even on freestanding compilers. */ 18433e256790Smrg 18443e256790Smrg#ifdef __STDC__ 18453e256790Smrg# include <limits.h> 18463e256790Smrg#else 18473e256790Smrg# include <assert.h> 18483e256790Smrg#endif 18493e256790Smrg 18503e256790Smrg#undef $2 18513e256790Smrg 18523e256790Smrg/* Override any GCC internal prototype to avoid an error. 18533e256790Smrg Use char because int might match the return type of a GCC 18543e256790Smrg builtin and then its argument prototype would still apply. */ 18553e256790Smrg#ifdef __cplusplus 18563e256790Smrgextern "C" 18573e256790Smrg#endif 18583e256790Smrgchar $2 (); 18593e256790Smrg/* The GNU C library defines this for functions which it implements 18603e256790Smrg to always fail with ENOSYS. Some functions are actually named 18613e256790Smrg something starting with __ and the normal name is an alias. */ 18623e256790Smrg#if defined __stub_$2 || defined __stub___$2 18633e256790Smrgchoke me 18643e256790Smrg#endif 18653e256790Smrg 18663e256790Smrgint 18673e256790Smrgmain () 18683e256790Smrg{ 18693e256790Smrgreturn $2 (); 18703e256790Smrg ; 18713e256790Smrg return 0; 18723e256790Smrg} 18733e256790Smrg_ACEOF 18743e256790Smrgif ac_fn_c_try_link "$LINENO"; then : 18753e256790Smrg eval "$3=yes" 18763e256790Smrgelse 18773e256790Smrg eval "$3=no" 18783e256790Smrgfi 18793e256790Smrgrm -f core conftest.err conftest.$ac_objext \ 18803e256790Smrg conftest$ac_exeext conftest.$ac_ext 18813e256790Smrgfi 18823e256790Smrgeval ac_res=\$$3 18833e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18843e256790Smrg$as_echo "$ac_res" >&6; } 1885b789ec8aSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 18863e256790Smrg 18873e256790Smrg} # ac_fn_c_check_func 1888c43cc173Smrg 1889b789ec8aSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1890b789ec8aSmrg# --------------------------------------------- 1891b789ec8aSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1892b789ec8aSmrg# accordingly. 1893b789ec8aSmrgac_fn_c_check_decl () 1894c43cc173Smrg{ 1895b789ec8aSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1896b789ec8aSmrg as_decl_name=`echo $2|sed 's/ *(.*//'` 1897b789ec8aSmrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1898b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1899b789ec8aSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1900b789ec8aSmrgif eval \${$3+:} false; then : 1901b789ec8aSmrg $as_echo_n "(cached) " >&6 1902b789ec8aSmrgelse 1903b789ec8aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1904b789ec8aSmrg/* end confdefs.h. */ 1905b789ec8aSmrg$4 1906b789ec8aSmrgint 1907b789ec8aSmrgmain () 1908b789ec8aSmrg{ 1909b789ec8aSmrg#ifndef $as_decl_name 1910b789ec8aSmrg#ifdef __cplusplus 1911b789ec8aSmrg (void) $as_decl_use; 1912b789ec8aSmrg#else 1913b789ec8aSmrg (void) $as_decl_name; 1914b789ec8aSmrg#endif 1915b789ec8aSmrg#endif 1916b789ec8aSmrg 1917b789ec8aSmrg ; 1918b789ec8aSmrg return 0; 1919b789ec8aSmrg} 1920b789ec8aSmrg_ACEOF 1921b789ec8aSmrgif ac_fn_c_try_compile "$LINENO"; then : 1922b789ec8aSmrg eval "$3=yes" 1923b789ec8aSmrgelse 1924b789ec8aSmrg eval "$3=no" 1925b789ec8aSmrgfi 1926b789ec8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1927b789ec8aSmrgfi 1928b789ec8aSmrgeval ac_res=\$$3 1929b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1930b789ec8aSmrg$as_echo "$ac_res" >&6; } 1931b789ec8aSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1932b789ec8aSmrg 1933b789ec8aSmrg} # ac_fn_c_check_decl 1934b789ec8aSmrgcat >config.log <<_ACEOF 1935b789ec8aSmrgThis file contains any messages produced by compilers while 1936b789ec8aSmrgrunning configure, to aid debugging if configure makes a mistake. 1937b789ec8aSmrg 1938b789ec8aSmrgIt was created by libXi $as_me 1.4.3, which was 1939b789ec8aSmrggenerated by GNU Autoconf 2.68. Invocation command line was 1940b789ec8aSmrg 1941b789ec8aSmrg $ $0 $@ 1942b789ec8aSmrg 1943b789ec8aSmrg_ACEOF 1944b789ec8aSmrgexec 5>>config.log 1945b789ec8aSmrg{ 1946b789ec8aSmrgcat <<_ASUNAME 1947b789ec8aSmrg## --------- ## 1948b789ec8aSmrg## Platform. ## 1949b789ec8aSmrg## --------- ## 1950b789ec8aSmrg 1951b789ec8aSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1952c43cc173Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1953c43cc173Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1954c43cc173Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1955c43cc173Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1956c43cc173Smrg 1957c43cc173Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1958c43cc173Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1959c43cc173Smrg 1960c43cc173Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1961c43cc173Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1962c43cc173Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1963c43cc173Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1964c43cc173Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1965c43cc173Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1966c43cc173Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1967c43cc173Smrg 1968c43cc173Smrg_ASUNAME 1969c43cc173Smrg 1970c43cc173Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1971c43cc173Smrgfor as_dir in $PATH 1972c43cc173Smrgdo 1973c43cc173Smrg IFS=$as_save_IFS 1974c43cc173Smrg test -z "$as_dir" && as_dir=. 19753e256790Smrg $as_echo "PATH: $as_dir" 19763e256790Smrg done 1977c43cc173SmrgIFS=$as_save_IFS 1978c43cc173Smrg 1979c43cc173Smrg} >&5 1980c43cc173Smrg 1981c43cc173Smrgcat >&5 <<_ACEOF 1982c43cc173Smrg 1983c43cc173Smrg 1984c43cc173Smrg## ----------- ## 1985c43cc173Smrg## Core tests. ## 1986c43cc173Smrg## ----------- ## 1987c43cc173Smrg 1988c43cc173Smrg_ACEOF 1989c43cc173Smrg 1990c43cc173Smrg 1991c43cc173Smrg# Keep a trace of the command line. 1992c43cc173Smrg# Strip out --no-create and --no-recursion so they do not pile up. 1993c43cc173Smrg# Strip out --silent because we don't want to record it for future runs. 1994c43cc173Smrg# Also quote any args containing shell meta-characters. 1995c43cc173Smrg# Make two passes to allow for proper duplicate-argument suppression. 1996c43cc173Smrgac_configure_args= 1997c43cc173Smrgac_configure_args0= 1998c43cc173Smrgac_configure_args1= 1999c43cc173Smrgac_must_keep_next=false 2000c43cc173Smrgfor ac_pass in 1 2 2001c43cc173Smrgdo 2002c43cc173Smrg for ac_arg 2003c43cc173Smrg do 2004c43cc173Smrg case $ac_arg in 2005c43cc173Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2006c43cc173Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2007c43cc173Smrg | -silent | --silent | --silen | --sile | --sil) 2008c43cc173Smrg continue ;; 2009c43cc173Smrg *\'*) 201021e67964Smrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2011c43cc173Smrg esac 2012c43cc173Smrg case $ac_pass in 20133e256790Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2014c43cc173Smrg 2) 20153e256790Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 2016c43cc173Smrg if test $ac_must_keep_next = true; then 2017c43cc173Smrg ac_must_keep_next=false # Got value, back to normal. 2018c43cc173Smrg else 2019c43cc173Smrg case $ac_arg in 2020c43cc173Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 2021c43cc173Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2022c43cc173Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2023c43cc173Smrg | -with-* | --with-* | -without-* | --without-* | --x) 2024c43cc173Smrg case "$ac_configure_args0 " in 2025c43cc173Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2026c43cc173Smrg esac 2027c43cc173Smrg ;; 2028c43cc173Smrg -* ) ac_must_keep_next=true ;; 2029c43cc173Smrg esac 2030c43cc173Smrg fi 20313e256790Smrg as_fn_append ac_configure_args " '$ac_arg'" 2032c43cc173Smrg ;; 2033c43cc173Smrg esac 2034c43cc173Smrg done 2035c43cc173Smrgdone 20363e256790Smrg{ ac_configure_args0=; unset ac_configure_args0;} 20373e256790Smrg{ ac_configure_args1=; unset ac_configure_args1;} 2038c43cc173Smrg 2039c43cc173Smrg# When interrupted or exit'd, cleanup temporary files, and complete 2040c43cc173Smrg# config.log. We remove comments because anyway the quotes in there 2041c43cc173Smrg# would cause problems or look ugly. 2042c43cc173Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 2043c43cc173Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2044c43cc173Smrgtrap 'exit_status=$? 2045c43cc173Smrg # Save into config.log some information that might help in debugging. 2046c43cc173Smrg { 2047c43cc173Smrg echo 2048c43cc173Smrg 204937eb1ca1Smrg $as_echo "## ---------------- ## 2050c43cc173Smrg## Cache variables. ## 205137eb1ca1Smrg## ---------------- ##" 2052c43cc173Smrg echo 2053c43cc173Smrg # The following way of writing the cache mishandles newlines in values, 2054c43cc173Smrg( 2055c43cc173Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2056c43cc173Smrg eval ac_val=\$$ac_var 2057c43cc173Smrg case $ac_val in #( 2058c43cc173Smrg *${as_nl}*) 2059c43cc173Smrg case $ac_var in #( 20603e256790Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 206121e67964Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2062c43cc173Smrg esac 2063c43cc173Smrg case $ac_var in #( 2064c43cc173Smrg _ | IFS | as_nl) ;; #( 206521e67964Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20663e256790Smrg *) { eval $ac_var=; unset $ac_var;} ;; 2067c43cc173Smrg esac ;; 2068c43cc173Smrg esac 2069c43cc173Smrg done 2070c43cc173Smrg (set) 2>&1 | 2071c43cc173Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2072c43cc173Smrg *${as_nl}ac_space=\ *) 2073c43cc173Smrg sed -n \ 2074c43cc173Smrg "s/'\''/'\''\\\\'\'''\''/g; 2075c43cc173Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2076c43cc173Smrg ;; #( 2077c43cc173Smrg *) 2078c43cc173Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2079c43cc173Smrg ;; 2080c43cc173Smrg esac | 2081c43cc173Smrg sort 2082c43cc173Smrg) 2083c43cc173Smrg echo 2084c43cc173Smrg 208537eb1ca1Smrg $as_echo "## ----------------- ## 2086c43cc173Smrg## Output variables. ## 208737eb1ca1Smrg## ----------------- ##" 2088c43cc173Smrg echo 2089c43cc173Smrg for ac_var in $ac_subst_vars 2090c43cc173Smrg do 2091c43cc173Smrg eval ac_val=\$$ac_var 2092c43cc173Smrg case $ac_val in 209321e67964Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2094c43cc173Smrg esac 209521e67964Smrg $as_echo "$ac_var='\''$ac_val'\''" 2096c43cc173Smrg done | sort 2097c43cc173Smrg echo 2098c43cc173Smrg 2099c43cc173Smrg if test -n "$ac_subst_files"; then 210037eb1ca1Smrg $as_echo "## ------------------- ## 2101c43cc173Smrg## File substitutions. ## 210237eb1ca1Smrg## ------------------- ##" 2103c43cc173Smrg echo 2104c43cc173Smrg for ac_var in $ac_subst_files 2105c43cc173Smrg do 2106c43cc173Smrg eval ac_val=\$$ac_var 2107c43cc173Smrg case $ac_val in 210821e67964Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2109c43cc173Smrg esac 211021e67964Smrg $as_echo "$ac_var='\''$ac_val'\''" 2111c43cc173Smrg done | sort 2112c43cc173Smrg echo 2113c43cc173Smrg fi 2114c43cc173Smrg 2115c43cc173Smrg if test -s confdefs.h; then 211637eb1ca1Smrg $as_echo "## ----------- ## 2117c43cc173Smrg## confdefs.h. ## 211837eb1ca1Smrg## ----------- ##" 2119c43cc173Smrg echo 2120c43cc173Smrg cat confdefs.h 2121c43cc173Smrg echo 2122c43cc173Smrg fi 2123c43cc173Smrg test "$ac_signal" != 0 && 212421e67964Smrg $as_echo "$as_me: caught signal $ac_signal" 212521e67964Smrg $as_echo "$as_me: exit $exit_status" 2126c43cc173Smrg } >&5 2127c43cc173Smrg rm -f core *.core core.conftest.* && 2128c43cc173Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2129c43cc173Smrg exit $exit_status 2130c43cc173Smrg' 0 2131c43cc173Smrgfor ac_signal in 1 2 13 15; do 21323e256790Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2133c43cc173Smrgdone 2134c43cc173Smrgac_signal=0 2135c43cc173Smrg 2136c43cc173Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 2137c43cc173Smrgrm -f -r conftest* confdefs.h 2138c43cc173Smrg 21393e256790Smrg$as_echo "/* confdefs.h */" > confdefs.h 21403e256790Smrg 2141c43cc173Smrg# Predefined preprocessor variables. 2142c43cc173Smrg 2143c43cc173Smrgcat >>confdefs.h <<_ACEOF 2144c43cc173Smrg#define PACKAGE_NAME "$PACKAGE_NAME" 2145c43cc173Smrg_ACEOF 2146c43cc173Smrg 2147c43cc173Smrgcat >>confdefs.h <<_ACEOF 2148c43cc173Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2149c43cc173Smrg_ACEOF 2150c43cc173Smrg 2151c43cc173Smrgcat >>confdefs.h <<_ACEOF 2152c43cc173Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 2153c43cc173Smrg_ACEOF 2154c43cc173Smrg 2155c43cc173Smrgcat >>confdefs.h <<_ACEOF 2156c43cc173Smrg#define PACKAGE_STRING "$PACKAGE_STRING" 2157c43cc173Smrg_ACEOF 2158c43cc173Smrg 2159c43cc173Smrgcat >>confdefs.h <<_ACEOF 2160c43cc173Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2161c43cc173Smrg_ACEOF 2162c43cc173Smrg 21633e256790Smrgcat >>confdefs.h <<_ACEOF 21643e256790Smrg#define PACKAGE_URL "$PACKAGE_URL" 21653e256790Smrg_ACEOF 21663e256790Smrg 2167c43cc173Smrg 2168c43cc173Smrg# Let the site file select an alternate cache file if it wants to. 216921e67964Smrg# Prefer an explicitly selected file to automatically selected ones. 217021e67964Smrgac_site_file1=NONE 217121e67964Smrgac_site_file2=NONE 2172c43cc173Smrgif test -n "$CONFIG_SITE"; then 217337eb1ca1Smrg # We do not want a PATH search for config.site. 217437eb1ca1Smrg case $CONFIG_SITE in #(( 217537eb1ca1Smrg -*) ac_site_file1=./$CONFIG_SITE;; 217637eb1ca1Smrg */*) ac_site_file1=$CONFIG_SITE;; 217737eb1ca1Smrg *) ac_site_file1=./$CONFIG_SITE;; 217837eb1ca1Smrg esac 2179c43cc173Smrgelif test "x$prefix" != xNONE; then 218021e67964Smrg ac_site_file1=$prefix/share/config.site 218121e67964Smrg ac_site_file2=$prefix/etc/config.site 2182c43cc173Smrgelse 218321e67964Smrg ac_site_file1=$ac_default_prefix/share/config.site 218421e67964Smrg ac_site_file2=$ac_default_prefix/etc/config.site 2185c43cc173Smrgfi 218621e67964Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 2187c43cc173Smrgdo 218821e67964Smrg test "x$ac_site_file" = xNONE && continue 21893e256790Smrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 21903e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 219121e67964Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2192c43cc173Smrg sed 's/^/| /' "$ac_site_file" >&5 219337eb1ca1Smrg . "$ac_site_file" \ 219437eb1ca1Smrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 219537eb1ca1Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 219637eb1ca1Smrgas_fn_error $? "failed to load site script $ac_site_file 219737eb1ca1SmrgSee \`config.log' for more details" "$LINENO" 5; } 2198c43cc173Smrg fi 2199c43cc173Smrgdone 2200c43cc173Smrg 2201c43cc173Smrgif test -r "$cache_file"; then 22023e256790Smrg # Some versions of bash will fail to source /dev/null (special files 22033e256790Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 22043e256790Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 22053e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 220621e67964Smrg$as_echo "$as_me: loading cache $cache_file" >&6;} 2207c43cc173Smrg case $cache_file in 2208c43cc173Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 2209c43cc173Smrg *) . "./$cache_file";; 2210c43cc173Smrg esac 2211c43cc173Smrg fi 2212c43cc173Smrgelse 22133e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 221421e67964Smrg$as_echo "$as_me: creating cache $cache_file" >&6;} 2215c43cc173Smrg >$cache_file 2216c43cc173Smrgfi 2217c43cc173Smrg 2218c43cc173Smrg# Check that the precious variables saved in the cache have kept the same 2219c43cc173Smrg# value. 2220c43cc173Smrgac_cache_corrupted=false 2221c43cc173Smrgfor ac_var in $ac_precious_vars; do 2222c43cc173Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 2223c43cc173Smrg eval ac_new_set=\$ac_env_${ac_var}_set 2224c43cc173Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 2225c43cc173Smrg eval ac_new_val=\$ac_env_${ac_var}_value 2226c43cc173Smrg case $ac_old_set,$ac_new_set in 2227c43cc173Smrg set,) 22283e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 222921e67964Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2230c43cc173Smrg ac_cache_corrupted=: ;; 2231c43cc173Smrg ,set) 22323e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 223321e67964Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2234c43cc173Smrg ac_cache_corrupted=: ;; 2235c43cc173Smrg ,);; 2236c43cc173Smrg *) 2237c43cc173Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 223821e67964Smrg # differences in whitespace do not lead to failure. 223921e67964Smrg ac_old_val_w=`echo x $ac_old_val` 224021e67964Smrg ac_new_val_w=`echo x $ac_new_val` 224121e67964Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 22423e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 224321e67964Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 224421e67964Smrg ac_cache_corrupted=: 224521e67964Smrg else 22463e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 224721e67964Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 224821e67964Smrg eval $ac_var=\$ac_old_val 224921e67964Smrg fi 22503e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 225121e67964Smrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 22523e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 225321e67964Smrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2254c43cc173Smrg fi;; 2255c43cc173Smrg esac 2256c43cc173Smrg # Pass precious variables to config.status. 2257c43cc173Smrg if test "$ac_new_set" = set; then 2258c43cc173Smrg case $ac_new_val in 225921e67964Smrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2260c43cc173Smrg *) ac_arg=$ac_var=$ac_new_val ;; 2261c43cc173Smrg esac 2262c43cc173Smrg case " $ac_configure_args " in 2263c43cc173Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 22643e256790Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2265c43cc173Smrg esac 2266c43cc173Smrg fi 2267c43cc173Smrgdone 2268c43cc173Smrgif $ac_cache_corrupted; then 22693e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 227021e67964Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22713e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 227221e67964Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 227337eb1ca1Smrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2274c43cc173Smrgfi 22753e256790Smrg## -------------------- ## 22763e256790Smrg## Main body of script. ## 22773e256790Smrg## -------------------- ## 2278c43cc173Smrg 2279c43cc173Smrgac_ext=c 2280c43cc173Smrgac_cpp='$CPP $CPPFLAGS' 2281c43cc173Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2282c43cc173Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2283c43cc173Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2284c43cc173Smrg 2285c43cc173Smrg 2286b789ec8aSmrg 2287b789ec8aSmrgac_config_headers="$ac_config_headers src/config.h" 2288b789ec8aSmrg 2289b789ec8aSmrg 2290b789ec8aSmrg# Initialize Automake 2291c27c18e8Smrgam__api_version='1.11' 2292c43cc173Smrg 2293c43cc173Smrgac_aux_dir= 2294c43cc173Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 229537eb1ca1Smrg if test -f "$ac_dir/install-sh"; then 229637eb1ca1Smrg ac_aux_dir=$ac_dir 229737eb1ca1Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 229837eb1ca1Smrg break 229937eb1ca1Smrg elif test -f "$ac_dir/install.sh"; then 230037eb1ca1Smrg ac_aux_dir=$ac_dir 230137eb1ca1Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 230237eb1ca1Smrg break 230337eb1ca1Smrg elif test -f "$ac_dir/shtool"; then 230437eb1ca1Smrg ac_aux_dir=$ac_dir 230537eb1ca1Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 230637eb1ca1Smrg break 230737eb1ca1Smrg fi 2308c43cc173Smrgdone 2309c43cc173Smrgif test -z "$ac_aux_dir"; then 231037eb1ca1Smrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2311c43cc173Smrgfi 2312c43cc173Smrg 2313c43cc173Smrg# These three variables are undocumented and unsupported, 2314c43cc173Smrg# and are intended to be withdrawn in a future Autoconf release. 2315c43cc173Smrg# They can cause serious problems if a builder's source tree is in a directory 2316c43cc173Smrg# whose full name contains unusual characters. 2317c43cc173Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2318c43cc173Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2319c43cc173Smrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2320c43cc173Smrg 2321c43cc173Smrg 2322c43cc173Smrg# Find a good install program. We prefer a C program (faster), 2323c43cc173Smrg# so one script is as good as another. But avoid the broken or 2324c43cc173Smrg# incompatible versions: 2325c43cc173Smrg# SysV /etc/install, /usr/sbin/install 2326c43cc173Smrg# SunOS /usr/etc/install 2327c43cc173Smrg# IRIX /sbin/install 2328c43cc173Smrg# AIX /bin/install 2329c43cc173Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 2330c43cc173Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2331c43cc173Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2332c43cc173Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2333c43cc173Smrg# OS/2's system install, which has a completely different semantic 2334c43cc173Smrg# ./install, which can be erroneously created by make from ./install.sh. 233521e67964Smrg# Reject install programs that cannot install multiple files. 23363e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 233721e67964Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 2338c43cc173Smrgif test -z "$INSTALL"; then 2339b789ec8aSmrgif ${ac_cv_path_install+:} false; then : 234021e67964Smrg $as_echo_n "(cached) " >&6 2341c43cc173Smrgelse 2342c43cc173Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2343c43cc173Smrgfor as_dir in $PATH 2344c43cc173Smrgdo 2345c43cc173Smrg IFS=$as_save_IFS 2346c43cc173Smrg test -z "$as_dir" && as_dir=. 23473e256790Smrg # Account for people who put trailing slashes in PATH elements. 23483e256790Smrgcase $as_dir/ in #(( 23493e256790Smrg ./ | .// | /[cC]/* | \ 2350c43cc173Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 23513e256790Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2352c43cc173Smrg /usr/ucb/* ) ;; 2353c43cc173Smrg *) 2354c43cc173Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 2355c43cc173Smrg # Don't use installbsd from OSF since it installs stuff as root 2356c43cc173Smrg # by default. 2357c43cc173Smrg for ac_prog in ginstall scoinst install; do 2358c43cc173Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2359c43cc173Smrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2360c43cc173Smrg if test $ac_prog = install && 2361c43cc173Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2362c43cc173Smrg # AIX install. It has an incompatible calling convention. 2363c43cc173Smrg : 2364c43cc173Smrg elif test $ac_prog = install && 2365c43cc173Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2366c43cc173Smrg # program-specific install script used by HP pwplus--don't use. 2367c43cc173Smrg : 2368c43cc173Smrg else 236921e67964Smrg rm -rf conftest.one conftest.two conftest.dir 237021e67964Smrg echo one > conftest.one 237121e67964Smrg echo two > conftest.two 237221e67964Smrg mkdir conftest.dir 237321e67964Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 237421e67964Smrg test -s conftest.one && test -s conftest.two && 237521e67964Smrg test -s conftest.dir/conftest.one && 237621e67964Smrg test -s conftest.dir/conftest.two 237721e67964Smrg then 237821e67964Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 237921e67964Smrg break 3 238021e67964Smrg fi 2381c43cc173Smrg fi 2382c43cc173Smrg fi 2383c43cc173Smrg done 2384c43cc173Smrg done 2385c43cc173Smrg ;; 2386c43cc173Smrgesac 238721e67964Smrg 23883e256790Smrg done 2389c43cc173SmrgIFS=$as_save_IFS 2390c43cc173Smrg 239121e67964Smrgrm -rf conftest.one conftest.two conftest.dir 2392c43cc173Smrg 2393c43cc173Smrgfi 2394c43cc173Smrg if test "${ac_cv_path_install+set}" = set; then 2395c43cc173Smrg INSTALL=$ac_cv_path_install 2396c43cc173Smrg else 2397c43cc173Smrg # As a last resort, use the slow shell script. Don't cache a 2398c43cc173Smrg # value for INSTALL within a source directory, because that will 2399c43cc173Smrg # break other packages using the cache if that directory is 2400c43cc173Smrg # removed, or if the value is a relative name. 2401c43cc173Smrg INSTALL=$ac_install_sh 2402c43cc173Smrg fi 2403c43cc173Smrgfi 24043e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 240521e67964Smrg$as_echo "$INSTALL" >&6; } 2406c43cc173Smrg 2407c43cc173Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2408c43cc173Smrg# It thinks the first close brace ends the variable substitution. 2409c43cc173Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2410c43cc173Smrg 2411c43cc173Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2412c43cc173Smrg 2413c43cc173Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2414c43cc173Smrg 24153e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 241621e67964Smrg$as_echo_n "checking whether build environment is sane... " >&6; } 2417c43cc173Smrg# Just in case 2418c43cc173Smrgsleep 1 2419c43cc173Smrgecho timestamp > conftest.file 2420c27c18e8Smrg# Reject unsafe characters in $srcdir or the absolute working directory 2421c27c18e8Smrg# name. Accept space and tab only in the latter. 2422c27c18e8Smrgam_lf=' 2423c27c18e8Smrg' 2424c27c18e8Smrgcase `pwd` in 2425c27c18e8Smrg *[\\\"\#\$\&\'\`$am_lf]*) 242637eb1ca1Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2427c27c18e8Smrgesac 2428c27c18e8Smrgcase $srcdir in 2429c27c18e8Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 243037eb1ca1Smrg as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2431c27c18e8Smrgesac 2432c27c18e8Smrg 2433c43cc173Smrg# Do `set' in a subshell so we don't clobber the current shell's 2434c43cc173Smrg# arguments. Must try -L first in case configure is actually a 2435c43cc173Smrg# symlink; some systems play weird games with the mod time of symlinks 2436c43cc173Smrg# (eg FreeBSD returns the mod time of the symlink's containing 2437c43cc173Smrg# directory). 2438c43cc173Smrgif ( 2439c27c18e8Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2440c43cc173Smrg if test "$*" = "X"; then 2441c43cc173Smrg # -L didn't work. 2442c27c18e8Smrg set X `ls -t "$srcdir/configure" conftest.file` 2443c43cc173Smrg fi 2444c43cc173Smrg rm -f conftest.file 2445c43cc173Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 2446c43cc173Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 2447c43cc173Smrg 2448c43cc173Smrg # If neither matched, then we have a broken ls. This can happen 2449c43cc173Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 2450c43cc173Smrg # broken ls alias from the environment. This has actually 2451c43cc173Smrg # happened. Such a system could not be considered "sane". 245237eb1ca1Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 24533e256790Smrgalias in your environment" "$LINENO" 5 2454c43cc173Smrg fi 2455c43cc173Smrg 2456c43cc173Smrg test "$2" = conftest.file 2457c43cc173Smrg ) 2458c43cc173Smrgthen 2459c43cc173Smrg # Ok. 2460c43cc173Smrg : 2461c43cc173Smrgelse 246237eb1ca1Smrg as_fn_error $? "newly created file is older than distributed files! 24633e256790SmrgCheck your system clock" "$LINENO" 5 2464c43cc173Smrgfi 24653e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 246621e67964Smrg$as_echo "yes" >&6; } 2467c43cc173Smrgtest "$program_prefix" != NONE && 2468c43cc173Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 2469c43cc173Smrg# Use a double $ so make ignores it. 2470c43cc173Smrgtest "$program_suffix" != NONE && 2471c43cc173Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 247221e67964Smrg# Double any \ or $. 2473c43cc173Smrg# By default was `s,x,x', remove it if useless. 247421e67964Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 247521e67964Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2476c43cc173Smrg 2477c43cc173Smrg# expand $ac_aux_dir to an absolute path 2478c43cc173Smrgam_aux_dir=`cd $ac_aux_dir && pwd` 2479c43cc173Smrg 2480c27c18e8Smrgif test x"${MISSING+set}" != xset; then 2481c27c18e8Smrg case $am_aux_dir in 2482c27c18e8Smrg *\ * | *\ *) 2483c27c18e8Smrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2484c27c18e8Smrg *) 2485c27c18e8Smrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 2486c27c18e8Smrg esac 2487c27c18e8Smrgfi 2488c43cc173Smrg# Use eval to expand $SHELL 2489c43cc173Smrgif eval "$MISSING --run true"; then 2490c43cc173Smrg am_missing_run="$MISSING --run " 2491c43cc173Smrgelse 2492c43cc173Smrg am_missing_run= 24933e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 249421e67964Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2495c43cc173Smrgfi 2496c43cc173Smrg 2497c27c18e8Smrgif test x"${install_sh}" != xset; then 2498c27c18e8Smrg case $am_aux_dir in 2499c27c18e8Smrg *\ * | *\ *) 2500c27c18e8Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2501c27c18e8Smrg *) 2502c27c18e8Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 2503c27c18e8Smrg esac 2504c27c18e8Smrgfi 2505c27c18e8Smrg 2506c27c18e8Smrg# Installed binaries are usually stripped using `strip' when the user 2507c27c18e8Smrg# run `make install-strip'. However `strip' might not be the right 2508c27c18e8Smrg# tool to use in cross-compilation environments, therefore Automake 2509c27c18e8Smrg# will honor the `STRIP' environment variable to overrule this program. 2510c27c18e8Smrgif test "$cross_compiling" != no; then 2511c27c18e8Smrg if test -n "$ac_tool_prefix"; then 2512c27c18e8Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2513c27c18e8Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 25143e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2515c27c18e8Smrg$as_echo_n "checking for $ac_word... " >&6; } 2516b789ec8aSmrgif ${ac_cv_prog_STRIP+:} false; then : 2517c27c18e8Smrg $as_echo_n "(cached) " >&6 2518c27c18e8Smrgelse 2519c27c18e8Smrg if test -n "$STRIP"; then 2520c27c18e8Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2521c27c18e8Smrgelse 2522c27c18e8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2523c27c18e8Smrgfor as_dir in $PATH 2524c27c18e8Smrgdo 2525c27c18e8Smrg IFS=$as_save_IFS 2526c27c18e8Smrg test -z "$as_dir" && as_dir=. 25273e256790Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2528c27c18e8Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2529c27c18e8Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 25303e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2531c27c18e8Smrg break 2 2532c27c18e8Smrg fi 2533c27c18e8Smrgdone 25343e256790Smrg done 2535c27c18e8SmrgIFS=$as_save_IFS 2536c27c18e8Smrg 2537c27c18e8Smrgfi 2538c27c18e8Smrgfi 2539c27c18e8SmrgSTRIP=$ac_cv_prog_STRIP 2540c27c18e8Smrgif test -n "$STRIP"; then 25413e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2542c27c18e8Smrg$as_echo "$STRIP" >&6; } 2543c27c18e8Smrgelse 25443e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2545c27c18e8Smrg$as_echo "no" >&6; } 2546c27c18e8Smrgfi 2547c27c18e8Smrg 2548c27c18e8Smrg 2549c27c18e8Smrgfi 2550c27c18e8Smrgif test -z "$ac_cv_prog_STRIP"; then 2551c27c18e8Smrg ac_ct_STRIP=$STRIP 2552c27c18e8Smrg # Extract the first word of "strip", so it can be a program name with args. 2553c27c18e8Smrgset dummy strip; ac_word=$2 25543e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2555c27c18e8Smrg$as_echo_n "checking for $ac_word... " >&6; } 2556b789ec8aSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2557c27c18e8Smrg $as_echo_n "(cached) " >&6 2558c27c18e8Smrgelse 2559c27c18e8Smrg if test -n "$ac_ct_STRIP"; then 2560c27c18e8Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2561c27c18e8Smrgelse 2562c27c18e8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2563c27c18e8Smrgfor as_dir in $PATH 2564c27c18e8Smrgdo 2565c27c18e8Smrg IFS=$as_save_IFS 2566c27c18e8Smrg test -z "$as_dir" && as_dir=. 25673e256790Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2568c27c18e8Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2569c27c18e8Smrg ac_cv_prog_ac_ct_STRIP="strip" 25703e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2571c27c18e8Smrg break 2 2572c27c18e8Smrg fi 2573c27c18e8Smrgdone 25743e256790Smrg done 2575c27c18e8SmrgIFS=$as_save_IFS 2576c27c18e8Smrg 2577c27c18e8Smrgfi 2578c27c18e8Smrgfi 2579c27c18e8Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2580c27c18e8Smrgif test -n "$ac_ct_STRIP"; then 25813e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2582c27c18e8Smrg$as_echo "$ac_ct_STRIP" >&6; } 2583c27c18e8Smrgelse 25843e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2585c27c18e8Smrg$as_echo "no" >&6; } 2586c27c18e8Smrgfi 2587c27c18e8Smrg 2588c27c18e8Smrg if test "x$ac_ct_STRIP" = x; then 2589c27c18e8Smrg STRIP=":" 2590c27c18e8Smrg else 2591c27c18e8Smrg case $cross_compiling:$ac_tool_warned in 2592c27c18e8Smrgyes:) 25933e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2594c27c18e8Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2595c27c18e8Smrgac_tool_warned=yes ;; 2596c27c18e8Smrgesac 2597c27c18e8Smrg STRIP=$ac_ct_STRIP 2598c27c18e8Smrg fi 2599c27c18e8Smrgelse 2600c27c18e8Smrg STRIP="$ac_cv_prog_STRIP" 2601c27c18e8Smrgfi 2602c27c18e8Smrg 2603c27c18e8Smrgfi 2604c27c18e8SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2605c27c18e8Smrg 26063e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 260721e67964Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2608c43cc173Smrgif test -z "$MKDIR_P"; then 2609b789ec8aSmrg if ${ac_cv_path_mkdir+:} false; then : 261021e67964Smrg $as_echo_n "(cached) " >&6 2611c43cc173Smrgelse 2612c43cc173Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2613c43cc173Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2614c43cc173Smrgdo 2615c43cc173Smrg IFS=$as_save_IFS 2616c43cc173Smrg test -z "$as_dir" && as_dir=. 26173e256790Smrg for ac_prog in mkdir gmkdir; do 2618c43cc173Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2619c43cc173Smrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2620c43cc173Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2621c43cc173Smrg 'mkdir (GNU coreutils) '* | \ 2622c43cc173Smrg 'mkdir (coreutils) '* | \ 2623c43cc173Smrg 'mkdir (fileutils) '4.1*) 2624c43cc173Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2625c43cc173Smrg break 3;; 2626c43cc173Smrg esac 2627c43cc173Smrg done 2628c43cc173Smrg done 26293e256790Smrg done 2630c43cc173SmrgIFS=$as_save_IFS 2631c43cc173Smrg 2632c43cc173Smrgfi 2633c43cc173Smrg 26343e256790Smrg test -d ./--version && rmdir ./--version 2635c43cc173Smrg if test "${ac_cv_path_mkdir+set}" = set; then 2636c43cc173Smrg MKDIR_P="$ac_cv_path_mkdir -p" 2637c43cc173Smrg else 2638c43cc173Smrg # As a last resort, use the slow shell script. Don't cache a 2639c43cc173Smrg # value for MKDIR_P within a source directory, because that will 2640c43cc173Smrg # break other packages using the cache if that directory is 2641c43cc173Smrg # removed, or if the value is a relative name. 2642c43cc173Smrg MKDIR_P="$ac_install_sh -d" 2643c43cc173Smrg fi 2644c43cc173Smrgfi 26453e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 264621e67964Smrg$as_echo "$MKDIR_P" >&6; } 2647c43cc173Smrg 2648c43cc173Smrgmkdir_p="$MKDIR_P" 2649c43cc173Smrgcase $mkdir_p in 2650c43cc173Smrg [\\/$]* | ?:[\\/]*) ;; 2651c43cc173Smrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2652c43cc173Smrgesac 2653c43cc173Smrg 2654c43cc173Smrgfor ac_prog in gawk mawk nawk awk 2655c43cc173Smrgdo 2656c43cc173Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2657c43cc173Smrgset dummy $ac_prog; ac_word=$2 26583e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 265921e67964Smrg$as_echo_n "checking for $ac_word... " >&6; } 2660b789ec8aSmrgif ${ac_cv_prog_AWK+:} false; then : 266121e67964Smrg $as_echo_n "(cached) " >&6 2662c43cc173Smrgelse 2663c43cc173Smrg if test -n "$AWK"; then 2664c43cc173Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 2665c43cc173Smrgelse 2666c43cc173Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2667c43cc173Smrgfor as_dir in $PATH 2668c43cc173Smrgdo 2669c43cc173Smrg IFS=$as_save_IFS 2670c43cc173Smrg test -z "$as_dir" && as_dir=. 26713e256790Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2672c43cc173Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2673c43cc173Smrg ac_cv_prog_AWK="$ac_prog" 26743e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2675c43cc173Smrg break 2 2676c43cc173Smrg fi 2677c43cc173Smrgdone 26783e256790Smrg done 2679c43cc173SmrgIFS=$as_save_IFS 2680c43cc173Smrg 2681c43cc173Smrgfi 2682c43cc173Smrgfi 2683c43cc173SmrgAWK=$ac_cv_prog_AWK 2684c43cc173Smrgif test -n "$AWK"; then 26853e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 268621e67964Smrg$as_echo "$AWK" >&6; } 2687c43cc173Smrgelse 26883e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 268921e67964Smrg$as_echo "no" >&6; } 2690c43cc173Smrgfi 2691c43cc173Smrg 2692c43cc173Smrg 2693c43cc173Smrg test -n "$AWK" && break 2694c43cc173Smrgdone 2695c43cc173Smrg 26963e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 269721e67964Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 269821e67964Smrgset x ${MAKE-make} 269921e67964Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2700b789ec8aSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 270121e67964Smrg $as_echo_n "(cached) " >&6 2702c43cc173Smrgelse 2703c43cc173Smrg cat >conftest.make <<\_ACEOF 2704c43cc173SmrgSHELL = /bin/sh 2705c43cc173Smrgall: 2706c43cc173Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 2707c43cc173Smrg_ACEOF 270837eb1ca1Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2709c43cc173Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2710c43cc173Smrg *@@@%%%=?*=@@@%%%*) 2711c43cc173Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 2712c43cc173Smrg *) 2713c43cc173Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 2714c43cc173Smrgesac 2715c43cc173Smrgrm -f conftest.make 2716c43cc173Smrgfi 2717c43cc173Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 27183e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 271921e67964Smrg$as_echo "yes" >&6; } 2720c43cc173Smrg SET_MAKE= 2721c43cc173Smrgelse 27223e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 272321e67964Smrg$as_echo "no" >&6; } 2724c43cc173Smrg SET_MAKE="MAKE=${MAKE-make}" 2725c43cc173Smrgfi 2726c43cc173Smrg 2727c43cc173Smrgrm -rf .tst 2>/dev/null 2728c43cc173Smrgmkdir .tst 2>/dev/null 2729c43cc173Smrgif test -d .tst; then 2730c43cc173Smrg am__leading_dot=. 2731c43cc173Smrgelse 2732c43cc173Smrg am__leading_dot=_ 2733c43cc173Smrgfi 2734c43cc173Smrgrmdir .tst 2>/dev/null 2735c43cc173Smrg 2736c43cc173Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 2737c43cc173Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2738c43cc173Smrg # is not polluted with repeated "-I." 2739c43cc173Smrg am__isrc=' -I$(srcdir)' 2740c43cc173Smrg # test to see if srcdir already configured 2741c43cc173Smrg if test -f $srcdir/config.status; then 274237eb1ca1Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2743c43cc173Smrg fi 2744c43cc173Smrgfi 2745c43cc173Smrg 2746c43cc173Smrg# test whether we have cygpath 2747c43cc173Smrgif test -z "$CYGPATH_W"; then 2748c43cc173Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 2749c43cc173Smrg CYGPATH_W='cygpath -w' 2750c43cc173Smrg else 2751c43cc173Smrg CYGPATH_W=echo 2752c43cc173Smrg fi 2753c43cc173Smrgfi 2754c43cc173Smrg 2755c43cc173Smrg 2756c43cc173Smrg# Define the identity of the package. 2757c43cc173Smrg PACKAGE='libXi' 2758b789ec8aSmrg VERSION='1.4.3' 2759c43cc173Smrg 2760c43cc173Smrg 2761c43cc173Smrgcat >>confdefs.h <<_ACEOF 2762c43cc173Smrg#define PACKAGE "$PACKAGE" 2763c43cc173Smrg_ACEOF 2764c43cc173Smrg 2765c43cc173Smrg 2766c43cc173Smrgcat >>confdefs.h <<_ACEOF 2767c43cc173Smrg#define VERSION "$VERSION" 2768c43cc173Smrg_ACEOF 2769c43cc173Smrg 2770c43cc173Smrg# Some tools Automake needs. 2771c43cc173Smrg 2772c43cc173SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2773c43cc173Smrg 2774c43cc173Smrg 2775c43cc173SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2776c43cc173Smrg 2777c43cc173Smrg 2778c43cc173SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2779c43cc173Smrg 2780c43cc173Smrg 2781c43cc173SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2782c43cc173Smrg 2783c43cc173Smrg 2784c43cc173SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2785c43cc173Smrg 2786c27c18e8Smrg# We need awk for the "check" target. The system "awk" is bad on 2787c27c18e8Smrg# some platforms. 2788c27c18e8Smrg# Always define AMTAR for backward compatibility. 2789c43cc173Smrg 2790c27c18e8SmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 2791c27c18e8Smrg 2792c27c18e8Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2793c27c18e8Smrg 2794c27c18e8Smrg 2795c27c18e8Smrg 2796c27c18e8Smrg 2797c27c18e8Smrg 2798c27c18e8Smrg 27993e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2800c27c18e8Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2801c27c18e8Smrg # Check whether --enable-maintainer-mode was given. 28023e256790Smrgif test "${enable_maintainer_mode+set}" = set; then : 2803c27c18e8Smrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2804c27c18e8Smrgelse 2805c27c18e8Smrg USE_MAINTAINER_MODE=no 2806c27c18e8Smrgfi 2807c27c18e8Smrg 28083e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2809c27c18e8Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 2810c27c18e8Smrg if test $USE_MAINTAINER_MODE = yes; then 2811c27c18e8Smrg MAINTAINER_MODE_TRUE= 2812c27c18e8Smrg MAINTAINER_MODE_FALSE='#' 2813c27c18e8Smrgelse 2814c27c18e8Smrg MAINTAINER_MODE_TRUE='#' 2815c27c18e8Smrg MAINTAINER_MODE_FALSE= 2816c27c18e8Smrgfi 2817c27c18e8Smrg 2818c27c18e8Smrg MAINT=$MAINTAINER_MODE_TRUE 2819c27c18e8Smrg 2820c27c18e8Smrg 2821c27c18e8Smrg 2822b789ec8aSmrg# Initialize libtool 2823b789ec8aSmrgcase `pwd` in 2824b789ec8aSmrg *\ * | *\ *) 2825b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2826b789ec8aSmrg$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2827b789ec8aSmrgesac 2828b789ec8aSmrg 2829b789ec8aSmrg 2830b789ec8aSmrg 2831b789ec8aSmrgmacro_version='2.4' 2832b789ec8aSmrgmacro_revision='1.3293' 2833b789ec8aSmrg 2834b789ec8aSmrg 2835b789ec8aSmrg 2836b789ec8aSmrg 2837b789ec8aSmrg 2838b789ec8aSmrg 2839b789ec8aSmrg 2840b789ec8aSmrg 2841b789ec8aSmrg 2842b789ec8aSmrg 2843b789ec8aSmrg 2844b789ec8aSmrg 2845b789ec8aSmrg 2846b789ec8aSmrgltmain="$ac_aux_dir/ltmain.sh" 2847b789ec8aSmrg 2848b789ec8aSmrg# Make sure we can run config.sub. 2849b789ec8aSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2850b789ec8aSmrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2851b789ec8aSmrg 2852b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2853b789ec8aSmrg$as_echo_n "checking build system type... " >&6; } 2854b789ec8aSmrgif ${ac_cv_build+:} false; then : 2855b789ec8aSmrg $as_echo_n "(cached) " >&6 2856b789ec8aSmrgelse 2857b789ec8aSmrg ac_build_alias=$build_alias 2858b789ec8aSmrgtest "x$ac_build_alias" = x && 2859b789ec8aSmrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2860b789ec8aSmrgtest "x$ac_build_alias" = x && 2861b789ec8aSmrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2862b789ec8aSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2863b789ec8aSmrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2864b789ec8aSmrg 2865b789ec8aSmrgfi 2866b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2867b789ec8aSmrg$as_echo "$ac_cv_build" >&6; } 2868b789ec8aSmrgcase $ac_cv_build in 2869b789ec8aSmrg*-*-*) ;; 2870b789ec8aSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2871b789ec8aSmrgesac 2872b789ec8aSmrgbuild=$ac_cv_build 2873b789ec8aSmrgac_save_IFS=$IFS; IFS='-' 2874b789ec8aSmrgset x $ac_cv_build 2875b789ec8aSmrgshift 2876b789ec8aSmrgbuild_cpu=$1 2877b789ec8aSmrgbuild_vendor=$2 2878b789ec8aSmrgshift; shift 2879b789ec8aSmrg# Remember, the first character of IFS is used to create $*, 2880b789ec8aSmrg# except with old shells: 2881b789ec8aSmrgbuild_os=$* 2882b789ec8aSmrgIFS=$ac_save_IFS 2883b789ec8aSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2884b789ec8aSmrg 2885b789ec8aSmrg 2886b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2887b789ec8aSmrg$as_echo_n "checking host system type... " >&6; } 2888b789ec8aSmrgif ${ac_cv_host+:} false; then : 2889b789ec8aSmrg $as_echo_n "(cached) " >&6 2890b789ec8aSmrgelse 2891b789ec8aSmrg if test "x$host_alias" = x; then 2892b789ec8aSmrg ac_cv_host=$ac_cv_build 2893b789ec8aSmrgelse 2894b789ec8aSmrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2895b789ec8aSmrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2896b789ec8aSmrgfi 2897b789ec8aSmrg 2898b789ec8aSmrgfi 2899b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2900b789ec8aSmrg$as_echo "$ac_cv_host" >&6; } 2901b789ec8aSmrgcase $ac_cv_host in 2902b789ec8aSmrg*-*-*) ;; 2903b789ec8aSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2904b789ec8aSmrgesac 2905b789ec8aSmrghost=$ac_cv_host 2906b789ec8aSmrgac_save_IFS=$IFS; IFS='-' 2907b789ec8aSmrgset x $ac_cv_host 2908b789ec8aSmrgshift 2909b789ec8aSmrghost_cpu=$1 2910b789ec8aSmrghost_vendor=$2 2911b789ec8aSmrgshift; shift 2912b789ec8aSmrg# Remember, the first character of IFS is used to create $*, 2913b789ec8aSmrg# except with old shells: 2914b789ec8aSmrghost_os=$* 2915b789ec8aSmrgIFS=$ac_save_IFS 2916b789ec8aSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2917b789ec8aSmrg 2918b789ec8aSmrg 2919b789ec8aSmrg# Backslashify metacharacters that are still active within 2920b789ec8aSmrg# double-quoted strings. 2921b789ec8aSmrgsed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2922b789ec8aSmrg 2923b789ec8aSmrg# Same as above, but do not quote variable references. 2924b789ec8aSmrgdouble_quote_subst='s/\(["`\\]\)/\\\1/g' 2925b789ec8aSmrg 2926b789ec8aSmrg# Sed substitution to delay expansion of an escaped shell variable in a 2927b789ec8aSmrg# double_quote_subst'ed string. 2928b789ec8aSmrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2929b789ec8aSmrg 2930b789ec8aSmrg# Sed substitution to delay expansion of an escaped single quote. 2931b789ec8aSmrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2932b789ec8aSmrg 2933b789ec8aSmrg# Sed substitution to avoid accidental globbing in evaled expressions 2934b789ec8aSmrgno_glob_subst='s/\*/\\\*/g' 2935b789ec8aSmrg 2936b789ec8aSmrgECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2937b789ec8aSmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2938b789ec8aSmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2939b789ec8aSmrg 2940b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2941b789ec8aSmrg$as_echo_n "checking how to print strings... " >&6; } 2942b789ec8aSmrg# Test print first, because it will be a builtin if present. 2943b789ec8aSmrgif test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2944b789ec8aSmrg test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2945b789ec8aSmrg ECHO='print -r --' 2946b789ec8aSmrgelif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2947b789ec8aSmrg ECHO='printf %s\n' 2948b789ec8aSmrgelse 2949b789ec8aSmrg # Use this function as a fallback that always works. 2950b789ec8aSmrg func_fallback_echo () 2951b789ec8aSmrg { 2952b789ec8aSmrg eval 'cat <<_LTECHO_EOF 2953b789ec8aSmrg$1 2954b789ec8aSmrg_LTECHO_EOF' 2955b789ec8aSmrg } 2956b789ec8aSmrg ECHO='func_fallback_echo' 2957b789ec8aSmrgfi 2958b789ec8aSmrg 2959b789ec8aSmrg# func_echo_all arg... 2960b789ec8aSmrg# Invoke $ECHO with all args, space-separated. 2961b789ec8aSmrgfunc_echo_all () 2962b789ec8aSmrg{ 2963b789ec8aSmrg $ECHO "" 2964b789ec8aSmrg} 2965b789ec8aSmrg 2966b789ec8aSmrgcase "$ECHO" in 2967b789ec8aSmrg printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2968b789ec8aSmrg$as_echo "printf" >&6; } ;; 2969b789ec8aSmrg print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2970b789ec8aSmrg$as_echo "print -r" >&6; } ;; 2971b789ec8aSmrg *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2972b789ec8aSmrg$as_echo "cat" >&6; } ;; 2973b789ec8aSmrgesac 2974b789ec8aSmrg 2975b789ec8aSmrg 2976b789ec8aSmrg 2977c27c18e8Smrg 2978c27c18e8Smrg 2979c27c18e8Smrg 2980c27c18e8Smrg 2981c27c18e8Smrg 2982c27c18e8Smrg 2983c27c18e8Smrg 2984c27c18e8Smrg 2985c27c18e8Smrg 2986c27c18e8Smrg 2987c27c18e8Smrg 29883e256790SmrgDEPDIR="${am__leading_dot}deps" 2989c43cc173Smrg 29903e256790Smrgac_config_commands="$ac_config_commands depfiles" 2991c43cc173Smrg 2992c43cc173Smrg 29933e256790Smrgam_make=${MAKE-make} 29943e256790Smrgcat > confinc << 'END' 29953e256790Smrgam__doit: 29963e256790Smrg @echo this is the am__doit target 29973e256790Smrg.PHONY: am__doit 29983e256790SmrgEND 29993e256790Smrg# If we don't find an include directive, just comment out the code. 30003e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 30013e256790Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 30023e256790Smrgam__include="#" 30033e256790Smrgam__quote= 30043e256790Smrg_am_result=none 30053e256790Smrg# First try GNU make style include. 30063e256790Smrgecho "include confinc" > confmf 30073e256790Smrg# Ignore all kinds of additional output from `make'. 30083e256790Smrgcase `$am_make -s -f confmf 2> /dev/null` in #( 30093e256790Smrg*the\ am__doit\ target*) 30103e256790Smrg am__include=include 30113e256790Smrg am__quote= 30123e256790Smrg _am_result=GNU 30133e256790Smrg ;; 30143e256790Smrgesac 30153e256790Smrg# Now try BSD make style include. 30163e256790Smrgif test "$am__include" = "#"; then 30173e256790Smrg echo '.include "confinc"' > confmf 30183e256790Smrg case `$am_make -s -f confmf 2> /dev/null` in #( 30193e256790Smrg *the\ am__doit\ target*) 30203e256790Smrg am__include=.include 30213e256790Smrg am__quote="\"" 30223e256790Smrg _am_result=BSD 30233e256790Smrg ;; 30243e256790Smrg esac 30253e256790Smrgfi 30263e256790Smrg 30273e256790Smrg 30283e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 30293e256790Smrg$as_echo "$_am_result" >&6; } 30303e256790Smrgrm -f confinc confmf 30313e256790Smrg 30323e256790Smrg# Check whether --enable-dependency-tracking was given. 30333e256790Smrgif test "${enable_dependency_tracking+set}" = set; then : 30343e256790Smrg enableval=$enable_dependency_tracking; 30353e256790Smrgfi 30363e256790Smrg 30373e256790Smrgif test "x$enable_dependency_tracking" != xno; then 30383e256790Smrg am_depcomp="$ac_aux_dir/depcomp" 30393e256790Smrg AMDEPBACKSLASH='\' 30403e256790Smrgfi 30413e256790Smrg if test "x$enable_dependency_tracking" != xno; then 30423e256790Smrg AMDEP_TRUE= 30433e256790Smrg AMDEP_FALSE='#' 30443e256790Smrgelse 30453e256790Smrg AMDEP_TRUE='#' 30463e256790Smrg AMDEP_FALSE= 30473e256790Smrgfi 30483e256790Smrg 30493e256790Smrg 30503e256790Smrgac_ext=c 30513e256790Smrgac_cpp='$CPP $CPPFLAGS' 30523e256790Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30533e256790Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30543e256790Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 30553e256790Smrgif test -n "$ac_tool_prefix"; then 30563e256790Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 30573e256790Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 30583e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30593e256790Smrg$as_echo_n "checking for $ac_word... " >&6; } 3060b789ec8aSmrgif ${ac_cv_prog_CC+:} false; then : 30613e256790Smrg $as_echo_n "(cached) " >&6 30623e256790Smrgelse 30633e256790Smrg if test -n "$CC"; then 30643e256790Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 30653e256790Smrgelse 30663e256790Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3067c43cc173Smrgfor as_dir in $PATH 3068c43cc173Smrgdo 3069c43cc173Smrg IFS=$as_save_IFS 3070c43cc173Smrg test -z "$as_dir" && as_dir=. 30713e256790Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3072c43cc173Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 30733e256790Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 30743e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3075c43cc173Smrg break 2 3076c43cc173Smrg fi 3077c43cc173Smrgdone 30783e256790Smrg done 30793e256790SmrgIFS=$as_save_IFS 30803e256790Smrg 30813e256790Smrgfi 30823e256790Smrgfi 30833e256790SmrgCC=$ac_cv_prog_CC 30843e256790Smrgif test -n "$CC"; then 30853e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 30863e256790Smrg$as_echo "$CC" >&6; } 30873e256790Smrgelse 30883e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30893e256790Smrg$as_echo "no" >&6; } 30903e256790Smrgfi 30913e256790Smrg 30923e256790Smrg 30933e256790Smrgfi 30943e256790Smrgif test -z "$ac_cv_prog_CC"; then 30953e256790Smrg ac_ct_CC=$CC 30963e256790Smrg # Extract the first word of "gcc", so it can be a program name with args. 30973e256790Smrgset dummy gcc; ac_word=$2 30983e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30993e256790Smrg$as_echo_n "checking for $ac_word... " >&6; } 3100b789ec8aSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 31013e256790Smrg $as_echo_n "(cached) " >&6 31023e256790Smrgelse 31033e256790Smrg if test -n "$ac_ct_CC"; then 31043e256790Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 31053e256790Smrgelse 31063e256790Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31073e256790Smrgfor as_dir in $PATH 31083e256790Smrgdo 31093e256790Smrg IFS=$as_save_IFS 31103e256790Smrg test -z "$as_dir" && as_dir=. 31113e256790Smrg for ac_exec_ext in '' $ac_executable_extensions; do 31123e256790Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 31133e256790Smrg ac_cv_prog_ac_ct_CC="gcc" 31143e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31153e256790Smrg break 2 31163e256790Smrg fi 3117c43cc173Smrgdone 31183e256790Smrg done 3119c43cc173SmrgIFS=$as_save_IFS 3120c43cc173Smrg 3121c43cc173Smrgfi 3122c43cc173Smrgfi 3123c43cc173Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 3124c43cc173Smrgif test -n "$ac_ct_CC"; then 31253e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 312621e67964Smrg$as_echo "$ac_ct_CC" >&6; } 3127c43cc173Smrgelse 31283e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 312921e67964Smrg$as_echo "no" >&6; } 3130c43cc173Smrgfi 3131c43cc173Smrg 3132c43cc173Smrg if test "x$ac_ct_CC" = x; then 3133c43cc173Smrg CC="" 3134c43cc173Smrg else 3135c43cc173Smrg case $cross_compiling:$ac_tool_warned in 3136c43cc173Smrgyes:) 31373e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 313821e67964Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3139c43cc173Smrgac_tool_warned=yes ;; 3140c43cc173Smrgesac 3141c43cc173Smrg CC=$ac_ct_CC 3142c43cc173Smrg fi 3143c43cc173Smrgelse 3144c43cc173Smrg CC="$ac_cv_prog_CC" 3145c43cc173Smrgfi 3146c43cc173Smrg 3147c43cc173Smrgif test -z "$CC"; then 3148c43cc173Smrg if test -n "$ac_tool_prefix"; then 3149c43cc173Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3150c43cc173Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 31513e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 315221e67964Smrg$as_echo_n "checking for $ac_word... " >&6; } 3153b789ec8aSmrgif ${ac_cv_prog_CC+:} false; then : 315421e67964Smrg $as_echo_n "(cached) " >&6 3155c43cc173Smrgelse 3156c43cc173Smrg if test -n "$CC"; then 3157c43cc173Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 3158c43cc173Smrgelse 3159c43cc173Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3160c43cc173Smrgfor as_dir in $PATH 3161c43cc173Smrgdo 3162c43cc173Smrg IFS=$as_save_IFS 3163c43cc173Smrg test -z "$as_dir" && as_dir=. 31643e256790Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3165c43cc173Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3166c43cc173Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 31673e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3168c43cc173Smrg break 2 3169c43cc173Smrg fi 3170c43cc173Smrgdone 31713e256790Smrg done 3172c43cc173SmrgIFS=$as_save_IFS 3173c43cc173Smrg 3174c43cc173Smrgfi 3175c43cc173Smrgfi 3176c43cc173SmrgCC=$ac_cv_prog_CC 3177c43cc173Smrgif test -n "$CC"; then 31783e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 317921e67964Smrg$as_echo "$CC" >&6; } 3180c43cc173Smrgelse 31813e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 318221e67964Smrg$as_echo "no" >&6; } 3183c43cc173Smrgfi 3184c43cc173Smrg 3185c43cc173Smrg 3186c43cc173Smrg fi 3187c43cc173Smrgfi 3188c43cc173Smrgif test -z "$CC"; then 3189c43cc173Smrg # Extract the first word of "cc", so it can be a program name with args. 3190c43cc173Smrgset dummy cc; ac_word=$2 31913e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 319221e67964Smrg$as_echo_n "checking for $ac_word... " >&6; } 3193b789ec8aSmrgif ${ac_cv_prog_CC+:} false; then : 319421e67964Smrg $as_echo_n "(cached) " >&6 3195c43cc173Smrgelse 3196c43cc173Smrg if test -n "$CC"; then 3197c43cc173Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 3198c43cc173Smrgelse 3199c43cc173Smrg ac_prog_rejected=no 3200c43cc173Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3201c43cc173Smrgfor as_dir in $PATH 3202c43cc173Smrgdo 3203c43cc173Smrg IFS=$as_save_IFS 3204c43cc173Smrg test -z "$as_dir" && as_dir=. 32053e256790Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3206c43cc173Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3207c43cc173Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3208c43cc173Smrg ac_prog_rejected=yes 3209c43cc173Smrg continue 3210c43cc173Smrg fi 3211c43cc173Smrg ac_cv_prog_CC="cc" 32123e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3213c43cc173Smrg break 2 3214c43cc173Smrg fi 3215c43cc173Smrgdone 32163e256790Smrg done 3217c43cc173SmrgIFS=$as_save_IFS 3218c43cc173Smrg 3219c43cc173Smrgif test $ac_prog_rejected = yes; then 3220c43cc173Smrg # We found a bogon in the path, so make sure we never use it. 3221c43cc173Smrg set dummy $ac_cv_prog_CC 3222c43cc173Smrg shift 3223c43cc173Smrg if test $# != 0; then 3224c43cc173Smrg # We chose a different compiler from the bogus one. 3225c43cc173Smrg # However, it has the same basename, so the bogon will be chosen 3226c43cc173Smrg # first if we set CC to just the basename; use the full file name. 3227c43cc173Smrg shift 3228c43cc173Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3229c43cc173Smrg fi 3230c43cc173Smrgfi 3231c43cc173Smrgfi 3232c43cc173Smrgfi 3233c43cc173SmrgCC=$ac_cv_prog_CC 3234c43cc173Smrgif test -n "$CC"; then 32353e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 323621e67964Smrg$as_echo "$CC" >&6; } 3237c43cc173Smrgelse 32383e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 323921e67964Smrg$as_echo "no" >&6; } 3240c43cc173Smrgfi 3241c43cc173Smrg 3242c43cc173Smrg 3243c43cc173Smrgfi 3244c43cc173Smrgif test -z "$CC"; then 3245c43cc173Smrg if test -n "$ac_tool_prefix"; then 3246c43cc173Smrg for ac_prog in cl.exe 3247c43cc173Smrg do 3248c43cc173Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3249c43cc173Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 32503e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 325121e67964Smrg$as_echo_n "checking for $ac_word... " >&6; } 3252b789ec8aSmrgif ${ac_cv_prog_CC+:} false; then : 325321e67964Smrg $as_echo_n "(cached) " >&6 3254c43cc173Smrgelse 3255c43cc173Smrg if test -n "$CC"; then 3256c43cc173Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 3257c43cc173Smrgelse 3258c43cc173Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3259c43cc173Smrgfor as_dir in $PATH 3260c43cc173Smrgdo 3261c43cc173Smrg IFS=$as_save_IFS 3262c43cc173Smrg test -z "$as_dir" && as_dir=. 32633e256790Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3264c43cc173Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3265c43cc173Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 32663e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3267c43cc173Smrg break 2 3268c43cc173Smrg fi 3269c43cc173Smrgdone 32703e256790Smrg done 3271c43cc173SmrgIFS=$as_save_IFS 3272c43cc173Smrg 3273c43cc173Smrgfi 3274c43cc173Smrgfi 3275c43cc173SmrgCC=$ac_cv_prog_CC 3276c43cc173Smrgif test -n "$CC"; then 32773e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 327821e67964Smrg$as_echo "$CC" >&6; } 3279c43cc173Smrgelse 32803e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 328121e67964Smrg$as_echo "no" >&6; } 3282c43cc173Smrgfi 3283c43cc173Smrg 3284c43cc173Smrg 3285c43cc173Smrg test -n "$CC" && break 3286c43cc173Smrg done 3287c43cc173Smrgfi 3288c43cc173Smrgif test -z "$CC"; then 3289c43cc173Smrg ac_ct_CC=$CC 3290c43cc173Smrg for ac_prog in cl.exe 3291c43cc173Smrgdo 3292c43cc173Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 3293c43cc173Smrgset dummy $ac_prog; ac_word=$2 32943e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 329521e67964Smrg$as_echo_n "checking for $ac_word... " >&6; } 3296b789ec8aSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 329721e67964Smrg $as_echo_n "(cached) " >&6 3298c43cc173Smrgelse 3299c43cc173Smrg if test -n "$ac_ct_CC"; then 3300c43cc173Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3301c43cc173Smrgelse 3302c43cc173Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3303c43cc173Smrgfor as_dir in $PATH 3304c43cc173Smrgdo 3305c43cc173Smrg IFS=$as_save_IFS 3306c43cc173Smrg test -z "$as_dir" && as_dir=. 33073e256790Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3308c43cc173Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3309c43cc173Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 33103e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3311c43cc173Smrg break 2 3312c43cc173Smrg fi 3313c43cc173Smrgdone 33143e256790Smrg done 3315c43cc173SmrgIFS=$as_save_IFS 3316c43cc173Smrg 3317c43cc173Smrgfi 3318c43cc173Smrgfi 3319c43cc173Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 3320c43cc173Smrgif test -n "$ac_ct_CC"; then 33213e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 332221e67964Smrg$as_echo "$ac_ct_CC" >&6; } 3323c43cc173Smrgelse 33243e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 332521e67964Smrg$as_echo "no" >&6; } 3326c43cc173Smrgfi 3327c43cc173Smrg 3328c43cc173Smrg 3329c43cc173Smrg test -n "$ac_ct_CC" && break 3330c43cc173Smrgdone 3331c43cc173Smrg 3332c43cc173Smrg if test "x$ac_ct_CC" = x; then 3333c43cc173Smrg CC="" 3334c43cc173Smrg else 3335c43cc173Smrg case $cross_compiling:$ac_tool_warned in 3336c43cc173Smrgyes:) 33373e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 333821e67964Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3339c43cc173Smrgac_tool_warned=yes ;; 3340c43cc173Smrgesac 3341c43cc173Smrg CC=$ac_ct_CC 3342c43cc173Smrg fi 3343c43cc173Smrgfi 3344c43cc173Smrg 3345c43cc173Smrgfi 3346c43cc173Smrg 3347c43cc173Smrg 33483e256790Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 334921e67964Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 335037eb1ca1Smrgas_fn_error $? "no acceptable C compiler found in \$PATH 335137eb1ca1SmrgSee \`config.log' for more details" "$LINENO" 5; } 3352c43cc173Smrg 3353c43cc173Smrg# Provide some information about the compiler. 33543e256790Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 335521e67964Smrgset X $ac_compile 335621e67964Smrgac_compiler=$2 33573e256790Smrgfor ac_option in --version -v -V -qversion; do 33583e256790Smrg { { ac_try="$ac_compiler $ac_option >&5" 3359c43cc173Smrgcase "(($ac_try" in 3360c43cc173Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3361c43cc173Smrg *) ac_try_echo=$ac_try;; 3362c43cc173Smrgesac 33633e256790Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33643e256790Smrg$as_echo "$ac_try_echo"; } >&5 33653e256790Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3366c43cc173Smrg ac_status=$? 33673e256790Smrg if test -s conftest.err; then 33683e256790Smrg sed '10a\ 33693e256790Smrg... rest of stderr output deleted ... 33703e256790Smrg 10q' conftest.err >conftest.er1 33713e256790Smrg cat conftest.er1 >&5 33723e256790Smrg fi 33733e256790Smrg rm -f conftest.er1 conftest.err 33743e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33753e256790Smrg test $ac_status = 0; } 33763e256790Smrgdone 3377c43cc173Smrg 33783e256790Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3379c43cc173Smrg/* end confdefs.h. */ 3380c43cc173Smrg 3381c43cc173Smrgint 3382c43cc173Smrgmain () 3383c43cc173Smrg{ 3384c43cc173Smrg 3385c43cc173Smrg ; 3386c43cc173Smrg return 0; 3387c43cc173Smrg} 3388c43cc173Smrg_ACEOF 3389c43cc173Smrgac_clean_files_save=$ac_clean_files 339021e67964Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3391c43cc173Smrg# Try to create an executable without -o first, disregard a.out. 3392c43cc173Smrg# It will help us diagnose broken compilers, and finding out an intuition 3393c43cc173Smrg# of exeext. 33943e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 33953e256790Smrg$as_echo_n "checking whether the C compiler works... " >&6; } 339621e67964Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 339721e67964Smrg 339821e67964Smrg# The possible output files: 339921e67964Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 340021e67964Smrg 3401c43cc173Smrgac_rmfiles= 3402c43cc173Smrgfor ac_file in $ac_files 3403c43cc173Smrgdo 3404c43cc173Smrg case $ac_file in 340521e67964Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3406c43cc173Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3407c43cc173Smrg esac 3408c43cc173Smrgdone 3409c43cc173Smrgrm -f $ac_rmfiles 3410c43cc173Smrg 34113e256790Smrgif { { ac_try="$ac_link_default" 3412c43cc173Smrgcase "(($ac_try" in 3413c43cc173Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3414c43cc173Smrg *) ac_try_echo=$ac_try;; 3415c43cc173Smrgesac 34163e256790Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34173e256790Smrg$as_echo "$ac_try_echo"; } >&5 3418c43cc173Smrg (eval "$ac_link_default") 2>&5 3419c43cc173Smrg ac_status=$? 34203e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34213e256790Smrg test $ac_status = 0; }; then : 3422c43cc173Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3423c43cc173Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3424c43cc173Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 3425c43cc173Smrg# so that the user can short-circuit this test for compilers unknown to 3426c43cc173Smrg# Autoconf. 3427c43cc173Smrgfor ac_file in $ac_files '' 3428c43cc173Smrgdo 3429c43cc173Smrg test -f "$ac_file" || continue 3430c43cc173Smrg case $ac_file in 343121e67964Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3432c43cc173Smrg ;; 3433c43cc173Smrg [ab].out ) 3434c43cc173Smrg # We found the default executable, but exeext='' is most 3435c43cc173Smrg # certainly right. 3436c43cc173Smrg break;; 3437c43cc173Smrg *.* ) 34383e256790Smrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3439c43cc173Smrg then :; else 3440c43cc173Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3441c43cc173Smrg fi 3442c43cc173Smrg # We set ac_cv_exeext here because the later test for it is not 3443c43cc173Smrg # safe: cross compilers may not add the suffix if given an `-o' 3444c43cc173Smrg # argument, so we may need to know it at that point already. 3445c43cc173Smrg # Even if this section looks crufty: it has the advantage of 3446c43cc173Smrg # actually working. 3447c43cc173Smrg break;; 3448c43cc173Smrg * ) 3449c43cc173Smrg break;; 3450c43cc173Smrg esac 3451c43cc173Smrgdone 3452c43cc173Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 3453c43cc173Smrg 3454c43cc173Smrgelse 3455c43cc173Smrg ac_file='' 3456c43cc173Smrgfi 34573e256790Smrgif test -z "$ac_file"; then : 34583e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34593e256790Smrg$as_echo "no" >&6; } 34603e256790Smrg$as_echo "$as_me: failed program was:" >&5 3461c43cc173Smrgsed 's/^/| /' conftest.$ac_ext >&5 3462c43cc173Smrg 34633e256790Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 346421e67964Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 346537eb1ca1Smrgas_fn_error 77 "C compiler cannot create executables 346637eb1ca1SmrgSee \`config.log' for more details" "$LINENO" 5; } 34673e256790Smrgelse 34683e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34693e256790Smrg$as_echo "yes" >&6; } 3470c43cc173Smrgfi 34713e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 34723e256790Smrg$as_echo_n "checking for C compiler default output file name... " >&6; } 34733e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 34743e256790Smrg$as_echo "$ac_file" >&6; } 3475c43cc173Smrgac_exeext=$ac_cv_exeext 3476c43cc173Smrg 347721e67964Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3478c43cc173Smrgac_clean_files=$ac_clean_files_save 34793e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 348021e67964Smrg$as_echo_n "checking for suffix of executables... " >&6; } 34813e256790Smrgif { { ac_try="$ac_link" 3482c43cc173Smrgcase "(($ac_try" in 3483c43cc173Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3484c43cc173Smrg *) ac_try_echo=$ac_try;; 3485c43cc173Smrgesac 34863e256790Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34873e256790Smrg$as_echo "$ac_try_echo"; } >&5 3488c43cc173Smrg (eval "$ac_link") 2>&5 3489c43cc173Smrg ac_status=$? 34903e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34913e256790Smrg test $ac_status = 0; }; then : 3492c43cc173Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 3493c43cc173Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3494c43cc173Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 3495c43cc173Smrg# `rm'. 3496c43cc173Smrgfor ac_file in conftest.exe conftest conftest.*; do 3497c43cc173Smrg test -f "$ac_file" || continue 3498c43cc173Smrg case $ac_file in 349921e67964Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3500c43cc173Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3501c43cc173Smrg break;; 3502c43cc173Smrg * ) break;; 3503c43cc173Smrg esac 3504c43cc173Smrgdone 3505c43cc173Smrgelse 35063e256790Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 350721e67964Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 350837eb1ca1Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 350937eb1ca1SmrgSee \`config.log' for more details" "$LINENO" 5; } 3510c43cc173Smrgfi 35113e256790Smrgrm -f conftest conftest$ac_cv_exeext 35123e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 351321e67964Smrg$as_echo "$ac_cv_exeext" >&6; } 3514c43cc173Smrg 3515c43cc173Smrgrm -f conftest.$ac_ext 3516c43cc173SmrgEXEEXT=$ac_cv_exeext 3517c43cc173Smrgac_exeext=$EXEEXT 35183e256790Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 35193e256790Smrg/* end confdefs.h. */ 35203e256790Smrg#include <stdio.h> 35213e256790Smrgint 35223e256790Smrgmain () 35233e256790Smrg{ 35243e256790SmrgFILE *f = fopen ("conftest.out", "w"); 35253e256790Smrg return ferror (f) || fclose (f) != 0; 35263e256790Smrg 35273e256790Smrg ; 35283e256790Smrg return 0; 35293e256790Smrg} 35303e256790Smrg_ACEOF 35313e256790Smrgac_clean_files="$ac_clean_files conftest.out" 35323e256790Smrg# Check that the compiler produces executables we can run. If not, either 35333e256790Smrg# the compiler is broken, or we cross compile. 35343e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 35353e256790Smrg$as_echo_n "checking whether we are cross compiling... " >&6; } 35363e256790Smrgif test "$cross_compiling" != yes; then 35373e256790Smrg { { ac_try="$ac_link" 35383e256790Smrgcase "(($ac_try" in 35393e256790Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35403e256790Smrg *) ac_try_echo=$ac_try;; 35413e256790Smrgesac 35423e256790Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 35433e256790Smrg$as_echo "$ac_try_echo"; } >&5 35443e256790Smrg (eval "$ac_link") 2>&5 35453e256790Smrg ac_status=$? 35463e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 35473e256790Smrg test $ac_status = 0; } 35483e256790Smrg if { ac_try='./conftest$ac_cv_exeext' 35493e256790Smrg { { case "(($ac_try" in 35503e256790Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35513e256790Smrg *) ac_try_echo=$ac_try;; 35523e256790Smrgesac 35533e256790Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 35543e256790Smrg$as_echo "$ac_try_echo"; } >&5 35553e256790Smrg (eval "$ac_try") 2>&5 35563e256790Smrg ac_status=$? 35573e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 35583e256790Smrg test $ac_status = 0; }; }; then 35593e256790Smrg cross_compiling=no 35603e256790Smrg else 35613e256790Smrg if test "$cross_compiling" = maybe; then 35623e256790Smrg cross_compiling=yes 35633e256790Smrg else 35643e256790Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35653e256790Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 356637eb1ca1Smrgas_fn_error $? "cannot run C compiled programs. 35673e256790SmrgIf you meant to cross compile, use \`--host'. 356837eb1ca1SmrgSee \`config.log' for more details" "$LINENO" 5; } 35693e256790Smrg fi 35703e256790Smrg fi 35713e256790Smrgfi 35723e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 35733e256790Smrg$as_echo "$cross_compiling" >&6; } 35743e256790Smrg 35753e256790Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 35763e256790Smrgac_clean_files=$ac_clean_files_save 35773e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 357821e67964Smrg$as_echo_n "checking for suffix of object files... " >&6; } 3579b789ec8aSmrgif ${ac_cv_objext+:} false; then : 358021e67964Smrg $as_echo_n "(cached) " >&6 3581c43cc173Smrgelse 35823e256790Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3583c43cc173Smrg/* end confdefs.h. */ 3584c43cc173Smrg 3585c43cc173Smrgint 3586c43cc173Smrgmain () 3587c43cc173Smrg{ 3588c43cc173Smrg 3589c43cc173Smrg ; 3590c43cc173Smrg return 0; 3591c43cc173Smrg} 3592c43cc173Smrg_ACEOF 3593c43cc173Smrgrm -f conftest.o conftest.obj 35943e256790Smrgif { { ac_try="$ac_compile" 3595c43cc173Smrgcase "(($ac_try" in 3596c43cc173Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3597c43cc173Smrg *) ac_try_echo=$ac_try;; 3598c43cc173Smrgesac 35993e256790Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 36003e256790Smrg$as_echo "$ac_try_echo"; } >&5 3601c43cc173Smrg (eval "$ac_compile") 2>&5 3602c43cc173Smrg ac_status=$? 36033e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 36043e256790Smrg test $ac_status = 0; }; then : 3605c43cc173Smrg for ac_file in conftest.o conftest.obj conftest.*; do 3606c43cc173Smrg test -f "$ac_file" || continue; 3607c43cc173Smrg case $ac_file in 360821e67964Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3609c43cc173Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3610c43cc173Smrg break;; 3611c43cc173Smrg esac 3612c43cc173Smrgdone 3613c43cc173Smrgelse 361421e67964Smrg $as_echo "$as_me: failed program was:" >&5 3615c43cc173Smrgsed 's/^/| /' conftest.$ac_ext >&5 3616c43cc173Smrg 36173e256790Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 361821e67964Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 361937eb1ca1Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile 362037eb1ca1SmrgSee \`config.log' for more details" "$LINENO" 5; } 3621c43cc173Smrgfi 3622c43cc173Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 3623c43cc173Smrgfi 36243e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 362521e67964Smrg$as_echo "$ac_cv_objext" >&6; } 3626c43cc173SmrgOBJEXT=$ac_cv_objext 3627c43cc173Smrgac_objext=$OBJEXT 36283e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 362921e67964Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3630b789ec8aSmrgif ${ac_cv_c_compiler_gnu+:} false; then : 363121e67964Smrg $as_echo_n "(cached) " >&6 3632c43cc173Smrgelse 36333e256790Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3634c43cc173Smrg/* end confdefs.h. */ 3635c43cc173Smrg 3636c43cc173Smrgint 3637c43cc173Smrgmain () 3638c43cc173Smrg{ 3639c43cc173Smrg#ifndef __GNUC__ 3640c43cc173Smrg choke me 3641c43cc173Smrg#endif 3642c43cc173Smrg 3643c43cc173Smrg ; 3644c43cc173Smrg return 0; 3645c43cc173Smrg} 3646c43cc173Smrg_ACEOF 36473e256790Smrgif ac_fn_c_try_compile "$LINENO"; then : 3648c43cc173Smrg ac_compiler_gnu=yes 3649c43cc173Smrgelse 36503e256790Smrg ac_compiler_gnu=no 3651c43cc173Smrgfi 3652c43cc173Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3653c43cc173Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 3654c43cc173Smrg 3655c43cc173Smrgfi 36563e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 365721e67964Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 365821e67964Smrgif test $ac_compiler_gnu = yes; then 365921e67964Smrg GCC=yes 366021e67964Smrgelse 366121e67964Smrg GCC= 366221e67964Smrgfi 3663c43cc173Smrgac_test_CFLAGS=${CFLAGS+set} 3664c43cc173Smrgac_save_CFLAGS=$CFLAGS 36653e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 366621e67964Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 3667b789ec8aSmrgif ${ac_cv_prog_cc_g+:} false; then : 366821e67964Smrg $as_echo_n "(cached) " >&6 3669c43cc173Smrgelse 3670c43cc173Smrg ac_save_c_werror_flag=$ac_c_werror_flag 3671c43cc173Smrg ac_c_werror_flag=yes 3672c43cc173Smrg ac_cv_prog_cc_g=no 3673c43cc173Smrg CFLAGS="-g" 36743e256790Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3675c43cc173Smrg/* end confdefs.h. */ 3676c43cc173Smrg 3677c43cc173Smrgint 3678c43cc173Smrgmain () 3679c43cc173Smrg{ 3680c43cc173Smrg 3681c43cc173Smrg ; 3682c43cc173Smrg return 0; 3683c43cc173Smrg} 3684c43cc173Smrg_ACEOF 36853e256790Smrgif ac_fn_c_try_compile "$LINENO"; then : 3686c43cc173Smrg ac_cv_prog_cc_g=yes 3687c43cc173Smrgelse 36883e256790Smrg CFLAGS="" 36893e256790Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3690c43cc173Smrg/* end confdefs.h. */ 3691c43cc173Smrg 3692c43cc173Smrgint 3693c43cc173Smrgmain () 3694c43cc173Smrg{ 3695c43cc173Smrg 3696c43cc173Smrg ; 3697c43cc173Smrg return 0; 3698c43cc173Smrg} 3699c43cc173Smrg_ACEOF 37003e256790Smrgif ac_fn_c_try_compile "$LINENO"; then : 3701c43cc173Smrg 37023e256790Smrgelse 37033e256790Smrg ac_c_werror_flag=$ac_save_c_werror_flag 3704c43cc173Smrg CFLAGS="-g" 37053e256790Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3706c43cc173Smrg/* end confdefs.h. */ 3707c43cc173Smrg 3708c43cc173Smrgint 3709c43cc173Smrgmain () 3710c43cc173Smrg{ 3711c43cc173Smrg 3712c43cc173Smrg ; 3713c43cc173Smrg return 0; 3714c43cc173Smrg} 3715c43cc173Smrg_ACEOF 37163e256790Smrgif ac_fn_c_try_compile "$LINENO"; then : 3717c43cc173Smrg ac_cv_prog_cc_g=yes 3718c43cc173Smrgfi 3719c43cc173Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3720c43cc173Smrgfi 3721c43cc173Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3722c43cc173Smrgfi 3723c43cc173Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3724c43cc173Smrg ac_c_werror_flag=$ac_save_c_werror_flag 3725c43cc173Smrgfi 37263e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 372721e67964Smrg$as_echo "$ac_cv_prog_cc_g" >&6; } 3728c43cc173Smrgif test "$ac_test_CFLAGS" = set; then 3729c43cc173Smrg CFLAGS=$ac_save_CFLAGS 3730c43cc173Smrgelif test $ac_cv_prog_cc_g = yes; then 3731c43cc173Smrg if test "$GCC" = yes; then 3732c43cc173Smrg CFLAGS="-g -O2" 3733c43cc173Smrg else 3734c43cc173Smrg CFLAGS="-g" 3735c43cc173Smrg fi 3736c43cc173Smrgelse 3737c43cc173Smrg if test "$GCC" = yes; then 3738c43cc173Smrg CFLAGS="-O2" 3739c43cc173Smrg else 3740c43cc173Smrg CFLAGS= 3741c43cc173Smrg fi 3742c43cc173Smrgfi 37433e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 374421e67964Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3745b789ec8aSmrgif ${ac_cv_prog_cc_c89+:} false; then : 374621e67964Smrg $as_echo_n "(cached) " >&6 3747c43cc173Smrgelse 3748c43cc173Smrg ac_cv_prog_cc_c89=no 3749c43cc173Smrgac_save_CC=$CC 37503e256790Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3751c43cc173Smrg/* end confdefs.h. */ 3752c43cc173Smrg#include <stdarg.h> 3753c43cc173Smrg#include <stdio.h> 3754c43cc173Smrg#include <sys/types.h> 3755c43cc173Smrg#include <sys/stat.h> 3756c43cc173Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3757c43cc173Smrgstruct buf { int x; }; 3758c43cc173SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 3759c43cc173Smrgstatic char *e (p, i) 3760c43cc173Smrg char **p; 3761c43cc173Smrg int i; 3762c43cc173Smrg{ 3763c43cc173Smrg return p[i]; 3764c43cc173Smrg} 3765c43cc173Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 3766c43cc173Smrg{ 3767c43cc173Smrg char *s; 3768c43cc173Smrg va_list v; 3769c43cc173Smrg va_start (v,p); 3770c43cc173Smrg s = g (p, va_arg (v,int)); 3771c43cc173Smrg va_end (v); 3772c43cc173Smrg return s; 3773c43cc173Smrg} 3774c43cc173Smrg 3775c43cc173Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3776c43cc173Smrg function prototypes and stuff, but not '\xHH' hex character constants. 3777c43cc173Smrg These don't provoke an error unfortunately, instead are silently treated 3778c43cc173Smrg as 'x'. The following induces an error, until -std is added to get 3779c43cc173Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3780c43cc173Smrg array size at least. It's necessary to write '\x00'==0 to get something 3781c43cc173Smrg that's true only with -std. */ 3782c43cc173Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3783c43cc173Smrg 3784c43cc173Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3785c43cc173Smrg inside strings and character constants. */ 3786c43cc173Smrg#define FOO(x) 'x' 3787c43cc173Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3788c43cc173Smrg 3789c43cc173Smrgint test (int i, double x); 3790c43cc173Smrgstruct s1 {int (*f) (int a);}; 3791c43cc173Smrgstruct s2 {int (*f) (double a);}; 3792c43cc173Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3793c43cc173Smrgint argc; 3794c43cc173Smrgchar **argv; 3795c43cc173Smrgint 3796c43cc173Smrgmain () 3797c43cc173Smrg{ 3798c43cc173Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3799c43cc173Smrg ; 3800c43cc173Smrg return 0; 3801c43cc173Smrg} 3802c43cc173Smrg_ACEOF 3803c43cc173Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3804c43cc173Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3805c43cc173Smrgdo 3806c43cc173Smrg CC="$ac_save_CC $ac_arg" 38073e256790Smrg if ac_fn_c_try_compile "$LINENO"; then : 3808c43cc173Smrg ac_cv_prog_cc_c89=$ac_arg 3809c43cc173Smrgfi 3810c43cc173Smrgrm -f core conftest.err conftest.$ac_objext 3811c43cc173Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 3812c43cc173Smrgdone 3813c43cc173Smrgrm -f conftest.$ac_ext 3814c43cc173SmrgCC=$ac_save_CC 3815c43cc173Smrg 3816c43cc173Smrgfi 3817c43cc173Smrg# AC_CACHE_VAL 3818c43cc173Smrgcase "x$ac_cv_prog_cc_c89" in 3819c43cc173Smrg x) 38203e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 382121e67964Smrg$as_echo "none needed" >&6; } ;; 3822c43cc173Smrg xno) 38233e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 382421e67964Smrg$as_echo "unsupported" >&6; } ;; 3825c43cc173Smrg *) 3826c43cc173Smrg CC="$CC $ac_cv_prog_cc_c89" 38273e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 382821e67964Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3829c43cc173Smrgesac 38303e256790Smrgif test "x$ac_cv_prog_cc_c89" != xno; then : 3831c43cc173Smrg 38323e256790Smrgfi 3833c43cc173Smrg 3834c43cc173Smrgac_ext=c 3835c43cc173Smrgac_cpp='$CPP $CPPFLAGS' 3836c43cc173Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3837c43cc173Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3838c43cc173Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3839c43cc173Smrg 3840c43cc173Smrgdepcc="$CC" am_compiler_list= 3841c43cc173Smrg 38423e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 384321e67964Smrg$as_echo_n "checking dependency style of $depcc... " >&6; } 3844b789ec8aSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 384521e67964Smrg $as_echo_n "(cached) " >&6 3846c43cc173Smrgelse 3847c43cc173Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3848c43cc173Smrg # We make a subdir and do the tests there. Otherwise we can end up 3849c43cc173Smrg # making bogus files that we don't know about and never remove. For 3850c43cc173Smrg # instance it was reported that on HP-UX the gcc test will end up 3851c43cc173Smrg # making a dummy file named `D' -- because `-MD' means `put the output 3852c43cc173Smrg # in D'. 3853c43cc173Smrg mkdir conftest.dir 3854c43cc173Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 3855c43cc173Smrg # using a relative directory. 3856c43cc173Smrg cp "$am_depcomp" conftest.dir 3857c43cc173Smrg cd conftest.dir 3858c43cc173Smrg # We will build objects and dependencies in a subdirectory because 3859c43cc173Smrg # it helps to detect inapplicable dependency modes. For instance 3860c43cc173Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 3861c43cc173Smrg # side effect of compilation, but ICC will put the dependencies in 3862c43cc173Smrg # the current directory while Tru64 will put them in the object 3863c43cc173Smrg # directory. 3864c43cc173Smrg mkdir sub 3865c43cc173Smrg 3866c43cc173Smrg am_cv_CC_dependencies_compiler_type=none 3867c43cc173Smrg if test "$am_compiler_list" = ""; then 3868c43cc173Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3869c43cc173Smrg fi 3870c27c18e8Smrg am__universal=false 3871c27c18e8Smrg case " $depcc " in #( 3872c27c18e8Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 3873c27c18e8Smrg esac 3874c27c18e8Smrg 3875c43cc173Smrg for depmode in $am_compiler_list; do 3876c43cc173Smrg # Setup a source with many dependencies, because some compilers 3877c43cc173Smrg # like to wrap large dependency lists on column 80 (with \), and 3878c43cc173Smrg # we should not choose a depcomp mode which is confused by this. 3879c43cc173Smrg # 3880c43cc173Smrg # We need to recreate these files for each test, as the compiler may 3881c43cc173Smrg # overwrite some of them when testing with obscure command lines. 3882c43cc173Smrg # This happens at least with the AIX C compiler. 3883c43cc173Smrg : > sub/conftest.c 3884c43cc173Smrg for i in 1 2 3 4 5 6; do 3885c43cc173Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 3886c43cc173Smrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3887c43cc173Smrg # Solaris 8's {/usr,}/bin/sh. 3888c43cc173Smrg touch sub/conftst$i.h 3889c43cc173Smrg done 3890c43cc173Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3891c43cc173Smrg 3892c27c18e8Smrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 3893c27c18e8Smrg # mode. It turns out that the SunPro C++ compiler does not properly 3894c27c18e8Smrg # handle `-M -o', and we need to detect this. Also, some Intel 3895c27c18e8Smrg # versions had trouble with output in subdirs 3896c27c18e8Smrg am__obj=sub/conftest.${OBJEXT-o} 3897c27c18e8Smrg am__minus_obj="-o $am__obj" 3898c43cc173Smrg case $depmode in 3899c27c18e8Smrg gcc) 3900c27c18e8Smrg # This depmode causes a compiler race in universal mode. 3901c27c18e8Smrg test "$am__universal" = false || continue 3902c27c18e8Smrg ;; 3903c43cc173Smrg nosideeffect) 3904c43cc173Smrg # after this tag, mechanisms are not by side-effect, so they'll 3905c43cc173Smrg # only be used when explicitly requested 3906c43cc173Smrg if test "x$enable_dependency_tracking" = xyes; then 3907c43cc173Smrg continue 3908c43cc173Smrg else 3909c43cc173Smrg break 3910c43cc173Smrg fi 3911c43cc173Smrg ;; 3912c27c18e8Smrg msvisualcpp | msvcmsys) 3913c27c18e8Smrg # This compiler won't grok `-c -o', but also, the minuso test has 3914c27c18e8Smrg # not run yet. These depmodes are late enough in the game, and 3915c27c18e8Smrg # so weak that their functioning should not be impacted. 3916c27c18e8Smrg am__obj=conftest.${OBJEXT-o} 3917c27c18e8Smrg am__minus_obj= 3918c27c18e8Smrg ;; 3919c43cc173Smrg none) break ;; 3920c43cc173Smrg esac 3921c43cc173Smrg if depmode=$depmode \ 3922c27c18e8Smrg source=sub/conftest.c object=$am__obj \ 3923c43cc173Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3924c27c18e8Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3925c43cc173Smrg >/dev/null 2>conftest.err && 3926c43cc173Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3927c43cc173Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3928c27c18e8Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3929c43cc173Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3930c43cc173Smrg # icc doesn't choke on unknown options, it will just issue warnings 3931c43cc173Smrg # or remarks (even with -Werror). So we grep stderr for any message 3932c43cc173Smrg # that says an option was ignored or not supported. 3933c43cc173Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 3934c43cc173Smrg # icc: Command line warning: ignoring option '-M'; no argument required 3935c43cc173Smrg # The diagnosis changed in icc 8.0: 3936c43cc173Smrg # icc: Command line remark: option '-MP' not supported 3937c43cc173Smrg if (grep 'ignoring option' conftest.err || 3938c43cc173Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3939c43cc173Smrg am_cv_CC_dependencies_compiler_type=$depmode 3940c43cc173Smrg break 3941c43cc173Smrg fi 3942c43cc173Smrg fi 3943c43cc173Smrg done 3944c43cc173Smrg 3945c43cc173Smrg cd .. 3946c43cc173Smrg rm -rf conftest.dir 3947c43cc173Smrgelse 3948c43cc173Smrg am_cv_CC_dependencies_compiler_type=none 3949c43cc173Smrgfi 3950c43cc173Smrg 3951c43cc173Smrgfi 39523e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 395321e67964Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3954c43cc173SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3955c43cc173Smrg 3956c43cc173Smrg if 3957c43cc173Smrg test "x$enable_dependency_tracking" != xno \ 3958c43cc173Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3959c43cc173Smrg am__fastdepCC_TRUE= 3960c43cc173Smrg am__fastdepCC_FALSE='#' 3961c43cc173Smrgelse 3962c43cc173Smrg am__fastdepCC_TRUE='#' 3963c43cc173Smrg am__fastdepCC_FALSE= 3964c43cc173Smrgfi 3965c43cc173Smrg 3966c43cc173Smrg 3967b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3968b789ec8aSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3969b789ec8aSmrgif ${ac_cv_path_SED+:} false; then : 39703e256790Smrg $as_echo_n "(cached) " >&6 39713e256790Smrgelse 3972b789ec8aSmrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3973b789ec8aSmrg for ac_i in 1 2 3 4 5 6 7; do 3974b789ec8aSmrg ac_script="$ac_script$as_nl$ac_script" 3975b789ec8aSmrg done 3976b789ec8aSmrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3977b789ec8aSmrg { ac_script=; unset ac_script;} 3978b789ec8aSmrg if test -z "$SED"; then 3979b789ec8aSmrg ac_path_SED_found=false 3980b789ec8aSmrg # Loop through the user's path and test for each of PROGNAME-LIST 3981b789ec8aSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3982b789ec8aSmrgfor as_dir in $PATH 3983b789ec8aSmrgdo 3984b789ec8aSmrg IFS=$as_save_IFS 3985b789ec8aSmrg test -z "$as_dir" && as_dir=. 3986b789ec8aSmrg for ac_prog in sed gsed; do 3987b789ec8aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3988b789ec8aSmrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3989b789ec8aSmrg { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3990b789ec8aSmrg# Check for GNU ac_path_SED and select it if it is found. 3991b789ec8aSmrg # Check for GNU $ac_path_SED 3992b789ec8aSmrgcase `"$ac_path_SED" --version 2>&1` in 3993b789ec8aSmrg*GNU*) 3994b789ec8aSmrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3995b789ec8aSmrg*) 3996b789ec8aSmrg ac_count=0 3997b789ec8aSmrg $as_echo_n 0123456789 >"conftest.in" 3998b789ec8aSmrg while : 3999b789ec8aSmrg do 4000b789ec8aSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4001b789ec8aSmrg mv "conftest.tmp" "conftest.in" 4002b789ec8aSmrg cp "conftest.in" "conftest.nl" 4003b789ec8aSmrg $as_echo '' >> "conftest.nl" 4004b789ec8aSmrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4005b789ec8aSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4006b789ec8aSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4007b789ec8aSmrg if test $ac_count -gt ${ac_path_SED_max-0}; then 4008b789ec8aSmrg # Best one so far, save it but keep looking for a better one 4009b789ec8aSmrg ac_cv_path_SED="$ac_path_SED" 4010b789ec8aSmrg ac_path_SED_max=$ac_count 4011b789ec8aSmrg fi 4012b789ec8aSmrg # 10*(2^10) chars as input seems more than enough 4013b789ec8aSmrg test $ac_count -gt 10 && break 4014b789ec8aSmrg done 4015b789ec8aSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4016b789ec8aSmrgesac 4017c27c18e8Smrg 4018b789ec8aSmrg $ac_path_SED_found && break 3 4019b789ec8aSmrg done 4020b789ec8aSmrg done 4021b789ec8aSmrg done 4022b789ec8aSmrgIFS=$as_save_IFS 4023b789ec8aSmrg if test -z "$ac_cv_path_SED"; then 4024b789ec8aSmrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4025b789ec8aSmrg fi 4026b789ec8aSmrgelse 4027b789ec8aSmrg ac_cv_path_SED=$SED 4028b789ec8aSmrgfi 4029c27c18e8Smrg 4030b789ec8aSmrgfi 4031b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4032b789ec8aSmrg$as_echo "$ac_cv_path_SED" >&6; } 4033b789ec8aSmrg SED="$ac_cv_path_SED" 4034b789ec8aSmrg rm -f conftest.sed 4035c27c18e8Smrg 4036b789ec8aSmrgtest -z "$SED" && SED=sed 4037b789ec8aSmrgXsed="$SED -e 1s/^X//" 4038c43cc173Smrg 4039c43cc173Smrg 4040c43cc173Smrg 4041c43cc173Smrg 4042c43cc173Smrg 4043c43cc173Smrg 4044c27c18e8Smrg 4045c27c18e8Smrg 4046c27c18e8Smrg 4047c43cc173Smrg 4048c43cc173Smrg 4049b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4050b789ec8aSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4051b789ec8aSmrgif ${ac_cv_path_GREP+:} false; then : 4052b789ec8aSmrg $as_echo_n "(cached) " >&6 4053b789ec8aSmrgelse 4054b789ec8aSmrg if test -z "$GREP"; then 4055b789ec8aSmrg ac_path_GREP_found=false 4056b789ec8aSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4057b789ec8aSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4058b789ec8aSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 40593e256790Smrgdo 4060b789ec8aSmrg IFS=$as_save_IFS 4061b789ec8aSmrg test -z "$as_dir" && as_dir=. 4062b789ec8aSmrg for ac_prog in grep ggrep; do 4063b789ec8aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4064b789ec8aSmrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4065b789ec8aSmrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4066b789ec8aSmrg# Check for GNU ac_path_GREP and select it if it is found. 4067b789ec8aSmrg # Check for GNU $ac_path_GREP 4068b789ec8aSmrgcase `"$ac_path_GREP" --version 2>&1` in 4069b789ec8aSmrg*GNU*) 4070b789ec8aSmrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4071b789ec8aSmrg*) 4072b789ec8aSmrg ac_count=0 4073b789ec8aSmrg $as_echo_n 0123456789 >"conftest.in" 4074b789ec8aSmrg while : 4075b789ec8aSmrg do 4076b789ec8aSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4077b789ec8aSmrg mv "conftest.tmp" "conftest.in" 4078b789ec8aSmrg cp "conftest.in" "conftest.nl" 4079b789ec8aSmrg $as_echo 'GREP' >> "conftest.nl" 4080b789ec8aSmrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4081b789ec8aSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4082b789ec8aSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4083b789ec8aSmrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 4084b789ec8aSmrg # Best one so far, save it but keep looking for a better one 4085b789ec8aSmrg ac_cv_path_GREP="$ac_path_GREP" 4086b789ec8aSmrg ac_path_GREP_max=$ac_count 4087b789ec8aSmrg fi 4088b789ec8aSmrg # 10*(2^10) chars as input seems more than enough 4089b789ec8aSmrg test $ac_count -gt 10 && break 4090b789ec8aSmrg done 4091b789ec8aSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 40923e256790Smrgesac 4093c43cc173Smrg 4094b789ec8aSmrg $ac_path_GREP_found && break 3 4095b789ec8aSmrg done 4096b789ec8aSmrg done 4097b789ec8aSmrg done 4098b789ec8aSmrgIFS=$as_save_IFS 4099b789ec8aSmrg if test -z "$ac_cv_path_GREP"; then 4100b789ec8aSmrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4101b789ec8aSmrg fi 4102b789ec8aSmrgelse 4103b789ec8aSmrg ac_cv_path_GREP=$GREP 4104c43cc173Smrgfi 4105c43cc173Smrg 4106b789ec8aSmrgfi 4107b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4108b789ec8aSmrg$as_echo "$ac_cv_path_GREP" >&6; } 4109b789ec8aSmrg GREP="$ac_cv_path_GREP" 4110c43cc173Smrg 41113e256790Smrg 4112b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4113b789ec8aSmrg$as_echo_n "checking for egrep... " >&6; } 4114b789ec8aSmrgif ${ac_cv_path_EGREP+:} false; then : 411521e67964Smrg $as_echo_n "(cached) " >&6 4116c43cc173Smrgelse 4117b789ec8aSmrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4118b789ec8aSmrg then ac_cv_path_EGREP="$GREP -E" 4119b789ec8aSmrg else 4120b789ec8aSmrg if test -z "$EGREP"; then 4121b789ec8aSmrg ac_path_EGREP_found=false 4122b789ec8aSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4123b789ec8aSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4124b789ec8aSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4125c43cc173Smrgdo 4126c43cc173Smrg IFS=$as_save_IFS 4127c43cc173Smrg test -z "$as_dir" && as_dir=. 4128b789ec8aSmrg for ac_prog in egrep; do 412921e67964Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4130b789ec8aSmrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4131b789ec8aSmrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4132b789ec8aSmrg# Check for GNU ac_path_EGREP and select it if it is found. 4133b789ec8aSmrg # Check for GNU $ac_path_EGREP 4134b789ec8aSmrgcase `"$ac_path_EGREP" --version 2>&1` in 4135c43cc173Smrg*GNU*) 4136b789ec8aSmrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4137c43cc173Smrg*) 4138c43cc173Smrg ac_count=0 413921e67964Smrg $as_echo_n 0123456789 >"conftest.in" 4140c43cc173Smrg while : 4141c43cc173Smrg do 4142c43cc173Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4143c43cc173Smrg mv "conftest.tmp" "conftest.in" 4144c43cc173Smrg cp "conftest.in" "conftest.nl" 4145b789ec8aSmrg $as_echo 'EGREP' >> "conftest.nl" 4146b789ec8aSmrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4147c43cc173Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 41483e256790Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4149b789ec8aSmrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4150c43cc173Smrg # Best one so far, save it but keep looking for a better one 4151b789ec8aSmrg ac_cv_path_EGREP="$ac_path_EGREP" 4152b789ec8aSmrg ac_path_EGREP_max=$ac_count 4153c43cc173Smrg fi 4154c43cc173Smrg # 10*(2^10) chars as input seems more than enough 4155c43cc173Smrg test $ac_count -gt 10 && break 4156c43cc173Smrg done 4157c43cc173Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4158c43cc173Smrgesac 4159c43cc173Smrg 4160b789ec8aSmrg $ac_path_EGREP_found && break 3 416121e67964Smrg done 4162c43cc173Smrg done 41633e256790Smrg done 4164c43cc173SmrgIFS=$as_save_IFS 4165b789ec8aSmrg if test -z "$ac_cv_path_EGREP"; then 4166b789ec8aSmrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 416721e67964Smrg fi 4168c43cc173Smrgelse 4169b789ec8aSmrg ac_cv_path_EGREP=$EGREP 4170c43cc173Smrgfi 4171c43cc173Smrg 4172b789ec8aSmrg fi 4173c43cc173Smrgfi 4174b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4175b789ec8aSmrg$as_echo "$ac_cv_path_EGREP" >&6; } 4176b789ec8aSmrg EGREP="$ac_cv_path_EGREP" 4177c43cc173Smrg 4178c43cc173Smrg 4179b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4180b789ec8aSmrg$as_echo_n "checking for fgrep... " >&6; } 4181b789ec8aSmrgif ${ac_cv_path_FGREP+:} false; then : 418221e67964Smrg $as_echo_n "(cached) " >&6 4183c43cc173Smrgelse 4184b789ec8aSmrg if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4185b789ec8aSmrg then ac_cv_path_FGREP="$GREP -F" 4186c43cc173Smrg else 4187b789ec8aSmrg if test -z "$FGREP"; then 4188b789ec8aSmrg ac_path_FGREP_found=false 418921e67964Smrg # Loop through the user's path and test for each of PROGNAME-LIST 419021e67964Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4191c43cc173Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4192c43cc173Smrgdo 4193c43cc173Smrg IFS=$as_save_IFS 4194c43cc173Smrg test -z "$as_dir" && as_dir=. 4195b789ec8aSmrg for ac_prog in fgrep; do 419621e67964Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4197b789ec8aSmrg ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4198b789ec8aSmrg { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4199b789ec8aSmrg# Check for GNU ac_path_FGREP and select it if it is found. 4200b789ec8aSmrg # Check for GNU $ac_path_FGREP 4201b789ec8aSmrgcase `"$ac_path_FGREP" --version 2>&1` in 4202c43cc173Smrg*GNU*) 4203b789ec8aSmrg ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4204c43cc173Smrg*) 4205c43cc173Smrg ac_count=0 420621e67964Smrg $as_echo_n 0123456789 >"conftest.in" 4207c43cc173Smrg while : 4208c43cc173Smrg do 4209c43cc173Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4210c43cc173Smrg mv "conftest.tmp" "conftest.in" 4211c43cc173Smrg cp "conftest.in" "conftest.nl" 4212b789ec8aSmrg $as_echo 'FGREP' >> "conftest.nl" 4213b789ec8aSmrg "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4214c43cc173Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 42153e256790Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4216b789ec8aSmrg if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4217c43cc173Smrg # Best one so far, save it but keep looking for a better one 4218b789ec8aSmrg ac_cv_path_FGREP="$ac_path_FGREP" 4219b789ec8aSmrg ac_path_FGREP_max=$ac_count 4220c43cc173Smrg fi 4221c43cc173Smrg # 10*(2^10) chars as input seems more than enough 4222c43cc173Smrg test $ac_count -gt 10 && break 4223c43cc173Smrg done 4224c43cc173Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4225c43cc173Smrgesac 4226c43cc173Smrg 4227b789ec8aSmrg $ac_path_FGREP_found && break 3 422821e67964Smrg done 4229c43cc173Smrg done 42303e256790Smrg done 4231c43cc173SmrgIFS=$as_save_IFS 4232b789ec8aSmrg if test -z "$ac_cv_path_FGREP"; then 4233b789ec8aSmrg as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 423421e67964Smrg fi 4235c43cc173Smrgelse 4236b789ec8aSmrg ac_cv_path_FGREP=$FGREP 4237c43cc173Smrgfi 4238c43cc173Smrg 4239c43cc173Smrg fi 4240c43cc173Smrgfi 4241b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4242b789ec8aSmrg$as_echo "$ac_cv_path_FGREP" >&6; } 4243b789ec8aSmrg FGREP="$ac_cv_path_FGREP" 4244c43cc173Smrg 4245c43cc173Smrg 4246b789ec8aSmrgtest -z "$GREP" && GREP=grep 4247c27c18e8Smrg 4248c27c18e8Smrg 4249c27c18e8Smrg 4250c27c18e8Smrg 4251c27c18e8Smrg 4252c27c18e8Smrg 4253c27c18e8Smrg 4254c27c18e8Smrg 4255c43cc173Smrg 4256c43cc173Smrg 42573e256790Smrg 42583e256790Smrg 42593e256790Smrg 4260b789ec8aSmrg 4261b789ec8aSmrg 4262b789ec8aSmrg 4263b789ec8aSmrg 4264b789ec8aSmrg 4265b789ec8aSmrg 4266b789ec8aSmrg# Check whether --with-gnu-ld was given. 4267b789ec8aSmrgif test "${with_gnu_ld+set}" = set; then : 4268b789ec8aSmrg withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4269c43cc173Smrgelse 4270b789ec8aSmrg with_gnu_ld=no 4271c43cc173Smrgfi 4272c43cc173Smrg 4273b789ec8aSmrgac_prog=ld 4274b789ec8aSmrgif test "$GCC" = yes; then 4275b789ec8aSmrg # Check if gcc -print-prog-name=ld gives a path. 4276b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4277b789ec8aSmrg$as_echo_n "checking for ld used by $CC... " >&6; } 4278b789ec8aSmrg case $host in 4279b789ec8aSmrg *-*-mingw*) 4280b789ec8aSmrg # gcc leaves a trailing carriage return which upsets mingw 4281b789ec8aSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4282b789ec8aSmrg *) 4283b789ec8aSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4284b789ec8aSmrg esac 4285b789ec8aSmrg case $ac_prog in 4286b789ec8aSmrg # Accept absolute paths. 4287b789ec8aSmrg [\\/]* | ?:[\\/]*) 4288b789ec8aSmrg re_direlt='/[^/][^/]*/\.\./' 4289b789ec8aSmrg # Canonicalize the pathname of ld 4290b789ec8aSmrg ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4291b789ec8aSmrg while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4292b789ec8aSmrg ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4293b789ec8aSmrg done 4294b789ec8aSmrg test -z "$LD" && LD="$ac_prog" 4295b789ec8aSmrg ;; 4296b789ec8aSmrg "") 4297b789ec8aSmrg # If it fails, then pretend we aren't using GCC. 4298b789ec8aSmrg ac_prog=ld 4299b789ec8aSmrg ;; 4300b789ec8aSmrg *) 4301b789ec8aSmrg # If it is relative, then search for the first ld in PATH. 4302b789ec8aSmrg with_gnu_ld=unknown 4303b789ec8aSmrg ;; 4304b789ec8aSmrg esac 4305b789ec8aSmrgelif test "$with_gnu_ld" = yes; then 4306b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4307b789ec8aSmrg$as_echo_n "checking for GNU ld... " >&6; } 4308b789ec8aSmrgelse 4309b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4310b789ec8aSmrg$as_echo_n "checking for non-GNU ld... " >&6; } 4311c43cc173Smrgfi 4312b789ec8aSmrgif ${lt_cv_path_LD+:} false; then : 4313b789ec8aSmrg $as_echo_n "(cached) " >&6 4314b789ec8aSmrgelse 4315b789ec8aSmrg if test -z "$LD"; then 4316b789ec8aSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4317b789ec8aSmrg for ac_dir in $PATH; do 4318b789ec8aSmrg IFS="$lt_save_ifs" 4319b789ec8aSmrg test -z "$ac_dir" && ac_dir=. 4320b789ec8aSmrg if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4321b789ec8aSmrg lt_cv_path_LD="$ac_dir/$ac_prog" 4322b789ec8aSmrg # Check to see if the program is GNU ld. I'd rather use --version, 4323b789ec8aSmrg # but apparently some variants of GNU ld only accept -v. 4324b789ec8aSmrg # Break only if it was the GNU/non-GNU ld that we prefer. 4325b789ec8aSmrg case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4326b789ec8aSmrg *GNU* | *'with BFD'*) 4327b789ec8aSmrg test "$with_gnu_ld" != no && break 4328b789ec8aSmrg ;; 4329b789ec8aSmrg *) 4330b789ec8aSmrg test "$with_gnu_ld" != yes && break 4331b789ec8aSmrg ;; 4332b789ec8aSmrg esac 4333b789ec8aSmrg fi 4334b789ec8aSmrg done 4335b789ec8aSmrg IFS="$lt_save_ifs" 4336b789ec8aSmrgelse 4337b789ec8aSmrg lt_cv_path_LD="$LD" # Let the user override the test with a path. 4338c43cc173Smrgfi 43393e256790Smrgfi 4340c43cc173Smrg 4341b789ec8aSmrgLD="$lt_cv_path_LD" 4342b789ec8aSmrgif test -n "$LD"; then 4343b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4344b789ec8aSmrg$as_echo "$LD" >&6; } 4345b789ec8aSmrgelse 4346b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4347b789ec8aSmrg$as_echo "no" >&6; } 4348b789ec8aSmrgfi 4349b789ec8aSmrgtest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4350b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4351b789ec8aSmrg$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4352b789ec8aSmrgif ${lt_cv_prog_gnu_ld+:} false; then : 4353b789ec8aSmrg $as_echo_n "(cached) " >&6 4354b789ec8aSmrgelse 4355b789ec8aSmrg # I'd rather use --version here, but apparently some GNU lds only accept -v. 4356b789ec8aSmrgcase `$LD -v 2>&1 </dev/null` in 4357b789ec8aSmrg*GNU* | *'with BFD'*) 4358b789ec8aSmrg lt_cv_prog_gnu_ld=yes 4359b789ec8aSmrg ;; 4360b789ec8aSmrg*) 4361b789ec8aSmrg lt_cv_prog_gnu_ld=no 4362b789ec8aSmrg ;; 4363b789ec8aSmrgesac 43643e256790Smrgfi 4365b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4366b789ec8aSmrg$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4367b789ec8aSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld 4368c27c18e8Smrg 4369c27c18e8Smrg 4370c27c18e8Smrg 4371c27c18e8Smrg 4372c27c18e8Smrg 437337eb1ca1Smrg 437437eb1ca1Smrg 437537eb1ca1Smrg 437637eb1ca1Smrg 4377b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4378b789ec8aSmrg$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4379b789ec8aSmrgif ${lt_cv_path_NM+:} false; then : 4380b789ec8aSmrg $as_echo_n "(cached) " >&6 4381b789ec8aSmrgelse 4382b789ec8aSmrg if test -n "$NM"; then 4383b789ec8aSmrg # Let the user override the test. 4384b789ec8aSmrg lt_cv_path_NM="$NM" 4385b789ec8aSmrgelse 4386b789ec8aSmrg lt_nm_to_check="${ac_tool_prefix}nm" 4387b789ec8aSmrg if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4388b789ec8aSmrg lt_nm_to_check="$lt_nm_to_check nm" 4389b789ec8aSmrg fi 4390b789ec8aSmrg for lt_tmp_nm in $lt_nm_to_check; do 4391b789ec8aSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4392b789ec8aSmrg for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4393b789ec8aSmrg IFS="$lt_save_ifs" 4394b789ec8aSmrg test -z "$ac_dir" && ac_dir=. 4395b789ec8aSmrg tmp_nm="$ac_dir/$lt_tmp_nm" 4396b789ec8aSmrg if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4397b789ec8aSmrg # Check to see if the nm accepts a BSD-compat flag. 4398b789ec8aSmrg # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4399b789ec8aSmrg # nm: unknown option "B" ignored 4400b789ec8aSmrg # Tru64's nm complains that /dev/null is an invalid object file 4401b789ec8aSmrg case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4402b789ec8aSmrg */dev/null* | *'Invalid file or object type'*) 4403b789ec8aSmrg lt_cv_path_NM="$tmp_nm -B" 4404b789ec8aSmrg break 4405b789ec8aSmrg ;; 4406b789ec8aSmrg *) 4407b789ec8aSmrg case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4408b789ec8aSmrg */dev/null*) 4409b789ec8aSmrg lt_cv_path_NM="$tmp_nm -p" 4410b789ec8aSmrg break 4411b789ec8aSmrg ;; 4412b789ec8aSmrg *) 4413b789ec8aSmrg lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4414b789ec8aSmrg continue # so that we can try to find one that supports BSD flags 4415b789ec8aSmrg ;; 4416b789ec8aSmrg esac 4417b789ec8aSmrg ;; 4418b789ec8aSmrg esac 4419b789ec8aSmrg fi 4420b789ec8aSmrg done 4421b789ec8aSmrg IFS="$lt_save_ifs" 4422b789ec8aSmrg done 4423b789ec8aSmrg : ${lt_cv_path_NM=no} 4424b789ec8aSmrgfi 4425b789ec8aSmrgfi 4426b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4427b789ec8aSmrg$as_echo "$lt_cv_path_NM" >&6; } 4428b789ec8aSmrgif test "$lt_cv_path_NM" != "no"; then 4429b789ec8aSmrg NM="$lt_cv_path_NM" 4430b789ec8aSmrgelse 4431b789ec8aSmrg # Didn't find any BSD compatible name lister, look for dumpbin. 4432b789ec8aSmrg if test -n "$DUMPBIN"; then : 4433b789ec8aSmrg # Let the user override the test. 4434b789ec8aSmrg else 4435b789ec8aSmrg if test -n "$ac_tool_prefix"; then 4436b789ec8aSmrg for ac_prog in dumpbin "link -dump" 4437b789ec8aSmrg do 4438b789ec8aSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4439b789ec8aSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 44403e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4441c27c18e8Smrg$as_echo_n "checking for $ac_word... " >&6; } 4442b789ec8aSmrgif ${ac_cv_prog_DUMPBIN+:} false; then : 4443c27c18e8Smrg $as_echo_n "(cached) " >&6 4444c27c18e8Smrgelse 4445b789ec8aSmrg if test -n "$DUMPBIN"; then 4446b789ec8aSmrg ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4447b789ec8aSmrgelse 4448b789ec8aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4449c27c18e8Smrgfor as_dir in $PATH 4450c27c18e8Smrgdo 4451c27c18e8Smrg IFS=$as_save_IFS 4452c27c18e8Smrg test -z "$as_dir" && as_dir=. 44533e256790Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4454c27c18e8Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4455b789ec8aSmrg ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 44563e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4457c27c18e8Smrg break 2 4458c27c18e8Smrg fi 4459c27c18e8Smrgdone 44603e256790Smrg done 4461c27c18e8SmrgIFS=$as_save_IFS 4462c43cc173Smrg 4463c27c18e8Smrgfi 4464b789ec8aSmrgfi 4465b789ec8aSmrgDUMPBIN=$ac_cv_prog_DUMPBIN 4466b789ec8aSmrgif test -n "$DUMPBIN"; then 4467b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4468b789ec8aSmrg$as_echo "$DUMPBIN" >&6; } 4469c43cc173Smrgelse 44703e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4471c27c18e8Smrg$as_echo "no" >&6; } 4472c43cc173Smrgfi 4473c43cc173Smrg 4474c27c18e8Smrg 4475b789ec8aSmrg test -n "$DUMPBIN" && break 4476b789ec8aSmrg done 4477c27c18e8Smrgfi 4478b789ec8aSmrgif test -z "$DUMPBIN"; then 4479b789ec8aSmrg ac_ct_DUMPBIN=$DUMPBIN 4480b789ec8aSmrg for ac_prog in dumpbin "link -dump" 4481b789ec8aSmrgdo 4482b789ec8aSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 4483b789ec8aSmrgset dummy $ac_prog; ac_word=$2 44843e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4485c27c18e8Smrg$as_echo_n "checking for $ac_word... " >&6; } 4486b789ec8aSmrgif ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 448721e67964Smrg $as_echo_n "(cached) " >&6 4488c43cc173Smrgelse 4489b789ec8aSmrg if test -n "$ac_ct_DUMPBIN"; then 4490b789ec8aSmrg ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4491b789ec8aSmrgelse 4492b789ec8aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4493c27c18e8Smrgfor as_dir in $PATH 4494c27c18e8Smrgdo 4495c27c18e8Smrg IFS=$as_save_IFS 4496c27c18e8Smrg test -z "$as_dir" && as_dir=. 44973e256790Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4498c27c18e8Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4499b789ec8aSmrg ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 45003e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4501c27c18e8Smrg break 2 4502c27c18e8Smrg fi 4503c27c18e8Smrgdone 45043e256790Smrg done 4505c27c18e8SmrgIFS=$as_save_IFS 4506c43cc173Smrg 4507c27c18e8Smrgfi 4508b789ec8aSmrgfi 4509b789ec8aSmrgac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4510b789ec8aSmrgif test -n "$ac_ct_DUMPBIN"; then 4511b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4512b789ec8aSmrg$as_echo "$ac_ct_DUMPBIN" >&6; } 4513c27c18e8Smrgelse 45143e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4515c27c18e8Smrg$as_echo "no" >&6; } 4516c27c18e8Smrgfi 4517c43cc173Smrg 4518b789ec8aSmrg 4519b789ec8aSmrg test -n "$ac_ct_DUMPBIN" && break 4520b789ec8aSmrgdone 4521b789ec8aSmrg 4522b789ec8aSmrg if test "x$ac_ct_DUMPBIN" = x; then 4523b789ec8aSmrg DUMPBIN=":" 452421e67964Smrg else 4525c27c18e8Smrg case $cross_compiling:$ac_tool_warned in 4526c27c18e8Smrgyes:) 45273e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4528c27c18e8Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4529c27c18e8Smrgac_tool_warned=yes ;; 4530c27c18e8Smrgesac 4531b789ec8aSmrg DUMPBIN=$ac_ct_DUMPBIN 453221e67964Smrg fi 4533c27c18e8Smrgfi 4534c43cc173Smrg 4535b789ec8aSmrg case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4536b789ec8aSmrg *COFF*) 4537b789ec8aSmrg DUMPBIN="$DUMPBIN -symbols" 4538b789ec8aSmrg ;; 4539b789ec8aSmrg *) 4540b789ec8aSmrg DUMPBIN=: 4541b789ec8aSmrg ;; 4542b789ec8aSmrg esac 4543b789ec8aSmrg fi 4544b789ec8aSmrg 4545b789ec8aSmrg if test "$DUMPBIN" != ":"; then 4546b789ec8aSmrg NM="$DUMPBIN" 4547b789ec8aSmrg fi 45483e256790Smrgfi 4549b789ec8aSmrgtest -z "$NM" && NM=nm 45503e256790Smrg 4551c43cc173Smrg 4552c43cc173Smrg 4553c43cc173Smrg 4554b789ec8aSmrg 4555b789ec8aSmrg 4556b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4557b789ec8aSmrg$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4558b789ec8aSmrgif ${lt_cv_nm_interface+:} false; then : 45593e256790Smrg $as_echo_n "(cached) " >&6 45603e256790Smrgelse 4561b789ec8aSmrg lt_cv_nm_interface="BSD nm" 4562b789ec8aSmrg echo "int some_variable = 0;" > conftest.$ac_ext 4563b789ec8aSmrg (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4564b789ec8aSmrg (eval "$ac_compile" 2>conftest.err) 4565b789ec8aSmrg cat conftest.err >&5 4566b789ec8aSmrg (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4567b789ec8aSmrg (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4568b789ec8aSmrg cat conftest.err >&5 4569b789ec8aSmrg (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4570b789ec8aSmrg cat conftest.out >&5 4571b789ec8aSmrg if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4572b789ec8aSmrg lt_cv_nm_interface="MS dumpbin" 4573b789ec8aSmrg fi 4574b789ec8aSmrg rm -f conftest* 45753e256790Smrgfi 4576b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4577b789ec8aSmrg$as_echo "$lt_cv_nm_interface" >&6; } 4578c43cc173Smrg 4579b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4580b789ec8aSmrg$as_echo_n "checking whether ln -s works... " >&6; } 4581b789ec8aSmrgLN_S=$as_ln_s 4582b789ec8aSmrgif test "$LN_S" = "ln -s"; then 4583b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4584b789ec8aSmrg$as_echo "yes" >&6; } 4585b789ec8aSmrgelse 4586b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4587b789ec8aSmrg$as_echo "no, using $LN_S" >&6; } 45883e256790Smrgfi 4589c43cc173Smrg 4590b789ec8aSmrg# find the maximum length of command line arguments 4591b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4592b789ec8aSmrg$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4593b789ec8aSmrgif ${lt_cv_sys_max_cmd_len+:} false; then : 4594c27c18e8Smrg $as_echo_n "(cached) " >&6 4595c27c18e8Smrgelse 4596b789ec8aSmrg i=0 4597b789ec8aSmrg teststring="ABCD" 4598c43cc173Smrg 4599b789ec8aSmrg case $build_os in 4600b789ec8aSmrg msdosdjgpp*) 4601b789ec8aSmrg # On DJGPP, this test can blow up pretty badly due to problems in libc 4602b789ec8aSmrg # (any single argument exceeding 2000 bytes causes a buffer overrun 4603b789ec8aSmrg # during glob expansion). Even if it were fixed, the result of this 4604b789ec8aSmrg # check would be larger than it should be. 4605b789ec8aSmrg lt_cv_sys_max_cmd_len=12288; # 12K is about right 4606b789ec8aSmrg ;; 4607c43cc173Smrg 4608b789ec8aSmrg gnu*) 4609b789ec8aSmrg # Under GNU Hurd, this test is not required because there is 4610b789ec8aSmrg # no limit to the length of command line arguments. 4611b789ec8aSmrg # Libtool will interpret -1 as no limit whatsoever 4612b789ec8aSmrg lt_cv_sys_max_cmd_len=-1; 4613b789ec8aSmrg ;; 4614c43cc173Smrg 4615b789ec8aSmrg cygwin* | mingw* | cegcc*) 4616b789ec8aSmrg # On Win9x/ME, this test blows up -- it succeeds, but takes 4617b789ec8aSmrg # about 5 minutes as the teststring grows exponentially. 4618b789ec8aSmrg # Worse, since 9x/ME are not pre-emptively multitasking, 4619b789ec8aSmrg # you end up with a "frozen" computer, even though with patience 4620b789ec8aSmrg # the test eventually succeeds (with a max line length of 256k). 4621b789ec8aSmrg # Instead, let's just punt: use the minimum linelength reported by 4622b789ec8aSmrg # all of the supported platforms: 8192 (on NT/2K/XP). 4623b789ec8aSmrg lt_cv_sys_max_cmd_len=8192; 4624b789ec8aSmrg ;; 4625c43cc173Smrg 4626b789ec8aSmrg mint*) 4627b789ec8aSmrg # On MiNT this can take a long time and run out of memory. 4628b789ec8aSmrg lt_cv_sys_max_cmd_len=8192; 4629b789ec8aSmrg ;; 4630c43cc173Smrg 4631b789ec8aSmrg amigaos*) 4632b789ec8aSmrg # On AmigaOS with pdksh, this test takes hours, literally. 4633b789ec8aSmrg # So we just punt and use a minimum line length of 8192. 4634b789ec8aSmrg lt_cv_sys_max_cmd_len=8192; 4635b789ec8aSmrg ;; 463621e67964Smrg 4637b789ec8aSmrg netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4638b789ec8aSmrg # This has been around since 386BSD, at least. Likely further. 4639b789ec8aSmrg if test -x /sbin/sysctl; then 4640b789ec8aSmrg lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4641b789ec8aSmrg elif test -x /usr/sbin/sysctl; then 4642b789ec8aSmrg lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4643b789ec8aSmrg else 4644b789ec8aSmrg lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4645c27c18e8Smrg fi 4646b789ec8aSmrg # And add a safety zone 4647b789ec8aSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4648b789ec8aSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4649b789ec8aSmrg ;; 4650c27c18e8Smrg 4651b789ec8aSmrg interix*) 4652b789ec8aSmrg # We know the value 262144 and hardcode it with a safety zone (like BSD) 4653b789ec8aSmrg lt_cv_sys_max_cmd_len=196608 4654b789ec8aSmrg ;; 4655c43cc173Smrg 4656b789ec8aSmrg osf*) 4657b789ec8aSmrg # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4658b789ec8aSmrg # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4659b789ec8aSmrg # nice to cause kernel panics so lets avoid the loop below. 4660b789ec8aSmrg # First set a reasonable default. 4661b789ec8aSmrg lt_cv_sys_max_cmd_len=16384 4662b789ec8aSmrg # 4663b789ec8aSmrg if test -x /sbin/sysconfig; then 4664b789ec8aSmrg case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4665b789ec8aSmrg *1*) lt_cv_sys_max_cmd_len=-1 ;; 4666b789ec8aSmrg esac 4667b789ec8aSmrg fi 4668b789ec8aSmrg ;; 4669b789ec8aSmrg sco3.2v5*) 4670b789ec8aSmrg lt_cv_sys_max_cmd_len=102400 4671b789ec8aSmrg ;; 4672b789ec8aSmrg sysv5* | sco5v6* | sysv4.2uw2*) 4673b789ec8aSmrg kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4674b789ec8aSmrg if test -n "$kargmax"; then 4675b789ec8aSmrg lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4676b789ec8aSmrg else 4677b789ec8aSmrg lt_cv_sys_max_cmd_len=32768 4678b789ec8aSmrg fi 4679b789ec8aSmrg ;; 4680b789ec8aSmrg *) 4681b789ec8aSmrg lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4682b789ec8aSmrg if test -n "$lt_cv_sys_max_cmd_len"; then 4683b789ec8aSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4684b789ec8aSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4685b789ec8aSmrg else 4686b789ec8aSmrg # Make teststring a little bigger before we do anything with it. 4687b789ec8aSmrg # a 1K string should be a reasonable start. 4688b789ec8aSmrg for i in 1 2 3 4 5 6 7 8 ; do 4689b789ec8aSmrg teststring=$teststring$teststring 4690b789ec8aSmrg done 4691b789ec8aSmrg SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4692b789ec8aSmrg # If test is not a shell built-in, we'll probably end up computing a 4693b789ec8aSmrg # maximum length that is only half of the actual maximum length, but 4694b789ec8aSmrg # we can't tell. 4695b789ec8aSmrg while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 4696b789ec8aSmrg = "X$teststring$teststring"; } >/dev/null 2>&1 && 4697b789ec8aSmrg test $i != 17 # 1/2 MB should be enough 4698b789ec8aSmrg do 4699b789ec8aSmrg i=`expr $i + 1` 4700b789ec8aSmrg teststring=$teststring$teststring 4701b789ec8aSmrg done 4702b789ec8aSmrg # Only check the string length outside the loop. 4703b789ec8aSmrg lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4704b789ec8aSmrg teststring= 4705b789ec8aSmrg # Add a significant safety factor because C++ compilers can tack on 4706b789ec8aSmrg # massive amounts of additional arguments before passing them to the 4707b789ec8aSmrg # linker. It appears as though 1/2 is a usable value. 4708b789ec8aSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4709b789ec8aSmrg fi 4710b789ec8aSmrg ;; 4711b789ec8aSmrg esac 4712c43cc173Smrg 4713c43cc173Smrgfi 4714c43cc173Smrg 4715b789ec8aSmrgif test -n $lt_cv_sys_max_cmd_len ; then 4716b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4717b789ec8aSmrg$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 47183e256790Smrgelse 4719b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4720b789ec8aSmrg$as_echo "none" >&6; } 47213e256790Smrgfi 4722b789ec8aSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len 4723c43cc173Smrg 4724c43cc173Smrg 4725c43cc173Smrg 4726c43cc173Smrg 4727c43cc173Smrg 4728c43cc173Smrg 4729b789ec8aSmrg: ${CP="cp -f"} 4730b789ec8aSmrg: ${MV="mv -f"} 4731b789ec8aSmrg: ${RM="rm -f"} 4732c43cc173Smrg 4733b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4734b789ec8aSmrg$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4735b789ec8aSmrg# Try some XSI features 4736b789ec8aSmrgxsi_shell=no 4737b789ec8aSmrg( _lt_dummy="a/b/c" 4738b789ec8aSmrg test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4739b789ec8aSmrg = c,a/b,b/c, \ 4740b789ec8aSmrg && eval 'test $(( 1 + 1 )) -eq 2 \ 4741b789ec8aSmrg && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4742b789ec8aSmrg && xsi_shell=yes 4743b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4744b789ec8aSmrg$as_echo "$xsi_shell" >&6; } 4745c27c18e8Smrg 4746c27c18e8Smrg 4747b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4748b789ec8aSmrg$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4749b789ec8aSmrglt_shell_append=no 4750b789ec8aSmrg( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4751b789ec8aSmrg >/dev/null 2>&1 \ 4752b789ec8aSmrg && lt_shell_append=yes 4753b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4754b789ec8aSmrg$as_echo "$lt_shell_append" >&6; } 4755c27c18e8Smrg 4756c43cc173Smrg 4757b789ec8aSmrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4758b789ec8aSmrg lt_unset=unset 4759b789ec8aSmrgelse 4760b789ec8aSmrg lt_unset=false 4761b789ec8aSmrgfi 4762c43cc173Smrg 4763c27c18e8Smrg 4764c27c18e8Smrg 4765c27c18e8Smrg 4766c43cc173Smrg 4767b789ec8aSmrg# test EBCDIC or ASCII 4768b789ec8aSmrgcase `echo X|tr X '\101'` in 4769b789ec8aSmrg A) # ASCII based system 4770b789ec8aSmrg # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4771b789ec8aSmrg lt_SP2NL='tr \040 \012' 4772b789ec8aSmrg lt_NL2SP='tr \015\012 \040\040' 4773b789ec8aSmrg ;; 4774b789ec8aSmrg *) # EBCDIC based system 4775b789ec8aSmrg lt_SP2NL='tr \100 \n' 4776b789ec8aSmrg lt_NL2SP='tr \r\n \100\100' 4777b789ec8aSmrg ;; 4778b789ec8aSmrgesac 4779c43cc173Smrg 4780c43cc173Smrg 4781c43cc173Smrg 4782c43cc173Smrg 4783c43cc173Smrg 4784c43cc173Smrg 4785c43cc173Smrg 4786c27c18e8Smrg 47873e256790Smrg 4788b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4789b789ec8aSmrg$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4790b789ec8aSmrgif ${lt_cv_to_host_file_cmd+:} false; then : 4791b789ec8aSmrg $as_echo_n "(cached) " >&6 4792b789ec8aSmrgelse 4793b789ec8aSmrg case $host in 4794b789ec8aSmrg *-*-mingw* ) 4795b789ec8aSmrg case $build in 4796b789ec8aSmrg *-*-mingw* ) # actually msys 4797b789ec8aSmrg lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4798b789ec8aSmrg ;; 4799b789ec8aSmrg *-*-cygwin* ) 4800b789ec8aSmrg lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4801b789ec8aSmrg ;; 4802b789ec8aSmrg * ) # otherwise, assume *nix 4803b789ec8aSmrg lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4804b789ec8aSmrg ;; 48053e256790Smrg esac 4806b789ec8aSmrg ;; 4807b789ec8aSmrg *-*-cygwin* ) 4808b789ec8aSmrg case $build in 4809b789ec8aSmrg *-*-mingw* ) # actually msys 4810b789ec8aSmrg lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4811b789ec8aSmrg ;; 4812b789ec8aSmrg *-*-cygwin* ) 4813b789ec8aSmrg lt_cv_to_host_file_cmd=func_convert_file_noop 4814b789ec8aSmrg ;; 4815b789ec8aSmrg * ) # otherwise, assume *nix 4816b789ec8aSmrg lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4817b789ec8aSmrg ;; 48183e256790Smrg esac 4819b789ec8aSmrg ;; 4820b789ec8aSmrg * ) # unhandled hosts (and "normal" native builds) 4821b789ec8aSmrg lt_cv_to_host_file_cmd=func_convert_file_noop 4822b789ec8aSmrg ;; 4823b789ec8aSmrgesac 48243e256790Smrg 48253e256790Smrgfi 48263e256790Smrg 4827b789ec8aSmrgto_host_file_cmd=$lt_cv_to_host_file_cmd 4828b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4829b789ec8aSmrg$as_echo "$lt_cv_to_host_file_cmd" >&6; } 48303e256790Smrg 48313e256790Smrg 48323e256790Smrg 4833c43cc173Smrg 4834c43cc173Smrg 4835b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4836b789ec8aSmrg$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4837b789ec8aSmrgif ${lt_cv_to_tool_file_cmd+:} false; then : 4838b789ec8aSmrg $as_echo_n "(cached) " >&6 4839b789ec8aSmrgelse 4840b789ec8aSmrg #assume ordinary cross tools, or native build. 4841b789ec8aSmrglt_cv_to_tool_file_cmd=func_convert_file_noop 4842b789ec8aSmrgcase $host in 4843b789ec8aSmrg *-*-mingw* ) 4844b789ec8aSmrg case $build in 4845b789ec8aSmrg *-*-mingw* ) # actually msys 4846b789ec8aSmrg lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4847b789ec8aSmrg ;; 4848b789ec8aSmrg esac 4849b789ec8aSmrg ;; 4850b789ec8aSmrgesac 4851c43cc173Smrg 4852b789ec8aSmrgfi 4853c43cc173Smrg 4854b789ec8aSmrgto_tool_file_cmd=$lt_cv_to_tool_file_cmd 4855b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4856b789ec8aSmrg$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4857c43cc173Smrg 4858c27c18e8Smrg 4859c27c18e8Smrg 4860c27c18e8Smrg 4861c27c18e8Smrg 4862b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4863b789ec8aSmrg$as_echo_n "checking for $LD option to reload object files... " >&6; } 4864b789ec8aSmrgif ${lt_cv_ld_reload_flag+:} false; then : 4865b789ec8aSmrg $as_echo_n "(cached) " >&6 4866b789ec8aSmrgelse 4867b789ec8aSmrg lt_cv_ld_reload_flag='-r' 48683e256790Smrgfi 4869b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4870b789ec8aSmrg$as_echo "$lt_cv_ld_reload_flag" >&6; } 4871b789ec8aSmrgreload_flag=$lt_cv_ld_reload_flag 4872b789ec8aSmrgcase $reload_flag in 4873b789ec8aSmrg"" | " "*) ;; 4874b789ec8aSmrg*) reload_flag=" $reload_flag" ;; 4875b789ec8aSmrgesac 4876b789ec8aSmrgreload_cmds='$LD$reload_flag -o $output$reload_objs' 4877b789ec8aSmrgcase $host_os in 4878b789ec8aSmrg cygwin* | mingw* | pw32* | cegcc*) 4879b789ec8aSmrg if test "$GCC" != yes; then 4880b789ec8aSmrg reload_cmds=false 4881b789ec8aSmrg fi 4882b789ec8aSmrg ;; 4883b789ec8aSmrg darwin*) 4884b789ec8aSmrg if test "$GCC" = yes; then 4885b789ec8aSmrg reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4886b789ec8aSmrg else 4887b789ec8aSmrg reload_cmds='$LD$reload_flag -o $output$reload_objs' 4888b789ec8aSmrg fi 4889b789ec8aSmrg ;; 48903e256790Smrgesac 489137eb1ca1Smrg 489237eb1ca1Smrg 489337eb1ca1Smrg 489437eb1ca1Smrg 489537eb1ca1Smrg 489637eb1ca1Smrg 489737eb1ca1Smrg 489837eb1ca1Smrg 489937eb1ca1Smrg 4900b789ec8aSmrgif test -n "$ac_tool_prefix"; then 4901b789ec8aSmrg # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4902b789ec8aSmrgset dummy ${ac_tool_prefix}objdump; ac_word=$2 490337eb1ca1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 490437eb1ca1Smrg$as_echo_n "checking for $ac_word... " >&6; } 4905b789ec8aSmrgif ${ac_cv_prog_OBJDUMP+:} false; then : 490637eb1ca1Smrg $as_echo_n "(cached) " >&6 490737eb1ca1Smrgelse 4908b789ec8aSmrg if test -n "$OBJDUMP"; then 4909b789ec8aSmrg ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4910b789ec8aSmrgelse 4911b789ec8aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 491237eb1ca1Smrgfor as_dir in $PATH 491337eb1ca1Smrgdo 491437eb1ca1Smrg IFS=$as_save_IFS 491537eb1ca1Smrg test -z "$as_dir" && as_dir=. 491637eb1ca1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 491737eb1ca1Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4918b789ec8aSmrg ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 491937eb1ca1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 492037eb1ca1Smrg break 2 492137eb1ca1Smrg fi 492237eb1ca1Smrgdone 492337eb1ca1Smrg done 492437eb1ca1SmrgIFS=$as_save_IFS 492537eb1ca1Smrg 492637eb1ca1Smrgfi 4927b789ec8aSmrgfi 4928b789ec8aSmrgOBJDUMP=$ac_cv_prog_OBJDUMP 4929b789ec8aSmrgif test -n "$OBJDUMP"; then 4930b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4931b789ec8aSmrg$as_echo "$OBJDUMP" >&6; } 493237eb1ca1Smrgelse 493337eb1ca1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 493437eb1ca1Smrg$as_echo "no" >&6; } 493537eb1ca1Smrgfi 493637eb1ca1Smrg 493737eb1ca1Smrg 4938b789ec8aSmrgfi 4939b789ec8aSmrgif test -z "$ac_cv_prog_OBJDUMP"; then 4940b789ec8aSmrg ac_ct_OBJDUMP=$OBJDUMP 4941b789ec8aSmrg # Extract the first word of "objdump", so it can be a program name with args. 4942b789ec8aSmrgset dummy objdump; ac_word=$2 494337eb1ca1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 494437eb1ca1Smrg$as_echo_n "checking for $ac_word... " >&6; } 4945b789ec8aSmrgif ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 494637eb1ca1Smrg $as_echo_n "(cached) " >&6 494737eb1ca1Smrgelse 4948b789ec8aSmrg if test -n "$ac_ct_OBJDUMP"; then 4949b789ec8aSmrg ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4950b789ec8aSmrgelse 4951b789ec8aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 495237eb1ca1Smrgfor as_dir in $PATH 495337eb1ca1Smrgdo 495437eb1ca1Smrg IFS=$as_save_IFS 495537eb1ca1Smrg test -z "$as_dir" && as_dir=. 495637eb1ca1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 495737eb1ca1Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4958b789ec8aSmrg ac_cv_prog_ac_ct_OBJDUMP="objdump" 495937eb1ca1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 496037eb1ca1Smrg break 2 496137eb1ca1Smrg fi 496237eb1ca1Smrgdone 496337eb1ca1Smrg done 496437eb1ca1SmrgIFS=$as_save_IFS 496537eb1ca1Smrg 496637eb1ca1Smrgfi 4967b789ec8aSmrgfi 4968b789ec8aSmrgac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4969b789ec8aSmrgif test -n "$ac_ct_OBJDUMP"; then 4970b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4971b789ec8aSmrg$as_echo "$ac_ct_OBJDUMP" >&6; } 497237eb1ca1Smrgelse 497337eb1ca1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 497437eb1ca1Smrg$as_echo "no" >&6; } 497537eb1ca1Smrgfi 497637eb1ca1Smrg 4977b789ec8aSmrg if test "x$ac_ct_OBJDUMP" = x; then 4978b789ec8aSmrg OBJDUMP="false" 4979b789ec8aSmrg else 4980b789ec8aSmrg case $cross_compiling:$ac_tool_warned in 4981b789ec8aSmrgyes:) 4982b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4983b789ec8aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4984b789ec8aSmrgac_tool_warned=yes ;; 4985b789ec8aSmrgesac 4986b789ec8aSmrg OBJDUMP=$ac_ct_OBJDUMP 4987b789ec8aSmrg fi 498837eb1ca1Smrgelse 4989b789ec8aSmrg OBJDUMP="$ac_cv_prog_OBJDUMP" 499037eb1ca1Smrgfi 499137eb1ca1Smrg 4992b789ec8aSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump 499337eb1ca1Smrg 499437eb1ca1Smrg 499537eb1ca1Smrg 499637eb1ca1Smrg 499737eb1ca1Smrg 499837eb1ca1Smrg 499937eb1ca1Smrg 500037eb1ca1Smrg 500137eb1ca1Smrg 5002b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5003b789ec8aSmrg$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5004b789ec8aSmrgif ${lt_cv_deplibs_check_method+:} false; then : 500537eb1ca1Smrg $as_echo_n "(cached) " >&6 500637eb1ca1Smrgelse 5007b789ec8aSmrg lt_cv_file_magic_cmd='$MAGIC_CMD' 5008b789ec8aSmrglt_cv_file_magic_test_file= 5009b789ec8aSmrglt_cv_deplibs_check_method='unknown' 5010b789ec8aSmrg# Need to set the preceding variable on all platforms that support 5011b789ec8aSmrg# interlibrary dependencies. 5012b789ec8aSmrg# 'none' -- dependencies not supported. 5013b789ec8aSmrg# `unknown' -- same as none, but documents that we really don't know. 5014b789ec8aSmrg# 'pass_all' -- all dependencies passed with no checks. 5015b789ec8aSmrg# 'test_compile' -- check by making test program. 5016b789ec8aSmrg# 'file_magic [[regex]]' -- check by looking for files in library path 5017b789ec8aSmrg# which responds to the $file_magic_cmd with a given extended regex. 5018b789ec8aSmrg# If you have `file' or equivalent on your system and you're not sure 5019b789ec8aSmrg# whether `pass_all' will *always* work, you probably want this one. 5020b789ec8aSmrg 5021b789ec8aSmrgcase $host_os in 5022b789ec8aSmrgaix[4-9]*) 5023b789ec8aSmrg lt_cv_deplibs_check_method=pass_all 502437eb1ca1Smrg ;; 5025b789ec8aSmrg 5026b789ec8aSmrgbeos*) 5027b789ec8aSmrg lt_cv_deplibs_check_method=pass_all 5028b789ec8aSmrg ;; 5029b789ec8aSmrg 5030b789ec8aSmrgbsdi[45]*) 5031b789ec8aSmrg lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5032b789ec8aSmrg lt_cv_file_magic_cmd='/usr/bin/file -L' 5033b789ec8aSmrg lt_cv_file_magic_test_file=/shlib/libc.so 5034b789ec8aSmrg ;; 5035b789ec8aSmrg 5036b789ec8aSmrgcygwin*) 5037b789ec8aSmrg # func_win32_libid is a shell function defined in ltmain.sh 5038b789ec8aSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5039b789ec8aSmrg lt_cv_file_magic_cmd='func_win32_libid' 5040b789ec8aSmrg ;; 5041b789ec8aSmrg 5042b789ec8aSmrgmingw* | pw32*) 5043b789ec8aSmrg # Base MSYS/MinGW do not provide the 'file' command needed by 5044b789ec8aSmrg # func_win32_libid shell function, so use a weaker test based on 'objdump', 5045b789ec8aSmrg # unless we find 'file', for example because we are cross-compiling. 5046b789ec8aSmrg # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5047b789ec8aSmrg if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5048b789ec8aSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5049b789ec8aSmrg lt_cv_file_magic_cmd='func_win32_libid' 5050b789ec8aSmrg else 5051b789ec8aSmrg # Keep this pattern in sync with the one in func_win32_libid. 5052b789ec8aSmrg lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5053b789ec8aSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 5054b789ec8aSmrg fi 5055b789ec8aSmrg ;; 5056b789ec8aSmrg 5057b789ec8aSmrgcegcc*) 5058b789ec8aSmrg # use the weaker test based on 'objdump'. See mingw*. 5059b789ec8aSmrg lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5060b789ec8aSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 5061b789ec8aSmrg ;; 5062b789ec8aSmrg 5063b789ec8aSmrgdarwin* | rhapsody*) 5064b789ec8aSmrg lt_cv_deplibs_check_method=pass_all 5065b789ec8aSmrg ;; 5066b789ec8aSmrg 5067b789ec8aSmrgfreebsd* | dragonfly*) 5068b789ec8aSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5069b789ec8aSmrg case $host_cpu in 5070b789ec8aSmrg i*86 ) 5071b789ec8aSmrg # Not sure whether the presence of OpenBSD here was a mistake. 5072b789ec8aSmrg # Let's accept both of them until this is cleared up. 5073b789ec8aSmrg lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5074b789ec8aSmrg lt_cv_file_magic_cmd=/usr/bin/file 5075b789ec8aSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5076b789ec8aSmrg ;; 5077b789ec8aSmrg esac 5078b789ec8aSmrg else 5079b789ec8aSmrg lt_cv_deplibs_check_method=pass_all 5080b789ec8aSmrg fi 5081b789ec8aSmrg ;; 5082b789ec8aSmrg 5083b789ec8aSmrggnu*) 5084b789ec8aSmrg lt_cv_deplibs_check_method=pass_all 5085b789ec8aSmrg ;; 5086b789ec8aSmrg 5087b789ec8aSmrghaiku*) 5088b789ec8aSmrg lt_cv_deplibs_check_method=pass_all 5089b789ec8aSmrg ;; 5090b789ec8aSmrg 5091b789ec8aSmrghpux10.20* | hpux11*) 5092b789ec8aSmrg lt_cv_file_magic_cmd=/usr/bin/file 5093b789ec8aSmrg case $host_cpu in 5094b789ec8aSmrg ia64*) 5095b789ec8aSmrg lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5096b789ec8aSmrg lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5097b789ec8aSmrg ;; 5098b789ec8aSmrg hppa*64*) 5099b789ec8aSmrg lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 5100b789ec8aSmrg lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5101b789ec8aSmrg ;; 5102b789ec8aSmrg *) 5103b789ec8aSmrg lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5104b789ec8aSmrg lt_cv_file_magic_test_file=/usr/lib/libc.sl 5105b789ec8aSmrg ;; 5106b789ec8aSmrg esac 5107b789ec8aSmrg ;; 5108b789ec8aSmrg 5109b789ec8aSmrginterix[3-9]*) 5110b789ec8aSmrg # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5111b789ec8aSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5112b789ec8aSmrg ;; 5113b789ec8aSmrg 5114b789ec8aSmrgirix5* | irix6* | nonstopux*) 5115b789ec8aSmrg case $LD in 5116b789ec8aSmrg *-32|*"-32 ") libmagic=32-bit;; 5117b789ec8aSmrg *-n32|*"-n32 ") libmagic=N32;; 5118b789ec8aSmrg *-64|*"-64 ") libmagic=64-bit;; 5119b789ec8aSmrg *) libmagic=never-match;; 5120b789ec8aSmrg esac 5121b789ec8aSmrg lt_cv_deplibs_check_method=pass_all 5122b789ec8aSmrg ;; 5123b789ec8aSmrg 5124b789ec8aSmrg# This must be Linux ELF. 5125b789ec8aSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu) 5126b789ec8aSmrg lt_cv_deplibs_check_method=pass_all 5127b789ec8aSmrg ;; 5128b789ec8aSmrg 5129b789ec8aSmrgnetbsd*) 5130b789ec8aSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5131b789ec8aSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5132b789ec8aSmrg else 5133b789ec8aSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5134b789ec8aSmrg fi 5135b789ec8aSmrg ;; 5136b789ec8aSmrg 5137b789ec8aSmrgnewos6*) 5138b789ec8aSmrg lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5139b789ec8aSmrg lt_cv_file_magic_cmd=/usr/bin/file 5140b789ec8aSmrg lt_cv_file_magic_test_file=/usr/lib/libnls.so 5141b789ec8aSmrg ;; 5142b789ec8aSmrg 5143b789ec8aSmrg*nto* | *qnx*) 5144b789ec8aSmrg lt_cv_deplibs_check_method=pass_all 5145b789ec8aSmrg ;; 5146b789ec8aSmrg 5147b789ec8aSmrgopenbsd*) 5148b789ec8aSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5149b789ec8aSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5150b789ec8aSmrg else 5151b789ec8aSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5152b789ec8aSmrg fi 5153b789ec8aSmrg ;; 5154b789ec8aSmrg 5155b789ec8aSmrgosf3* | osf4* | osf5*) 5156b789ec8aSmrg lt_cv_deplibs_check_method=pass_all 5157b789ec8aSmrg ;; 5158b789ec8aSmrg 5159b789ec8aSmrgrdos*) 5160b789ec8aSmrg lt_cv_deplibs_check_method=pass_all 5161b789ec8aSmrg ;; 5162b789ec8aSmrg 5163b789ec8aSmrgsolaris*) 5164b789ec8aSmrg lt_cv_deplibs_check_method=pass_all 5165b789ec8aSmrg ;; 5166b789ec8aSmrg 5167b789ec8aSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5168b789ec8aSmrg lt_cv_deplibs_check_method=pass_all 5169b789ec8aSmrg ;; 5170b789ec8aSmrg 5171b789ec8aSmrgsysv4 | sysv4.3*) 5172b789ec8aSmrg case $host_vendor in 5173b789ec8aSmrg motorola) 5174b789ec8aSmrg 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]' 5175b789ec8aSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5176b789ec8aSmrg ;; 5177b789ec8aSmrg ncr) 5178b789ec8aSmrg lt_cv_deplibs_check_method=pass_all 5179b789ec8aSmrg ;; 5180b789ec8aSmrg sequent) 5181b789ec8aSmrg lt_cv_file_magic_cmd='/bin/file' 5182b789ec8aSmrg lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5183b789ec8aSmrg ;; 5184b789ec8aSmrg sni) 5185b789ec8aSmrg lt_cv_file_magic_cmd='/bin/file' 5186b789ec8aSmrg lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5187b789ec8aSmrg lt_cv_file_magic_test_file=/lib/libc.so 5188b789ec8aSmrg ;; 5189b789ec8aSmrg siemens) 5190b789ec8aSmrg lt_cv_deplibs_check_method=pass_all 5191b789ec8aSmrg ;; 5192b789ec8aSmrg pc) 5193b789ec8aSmrg lt_cv_deplibs_check_method=pass_all 5194b789ec8aSmrg ;; 5195b789ec8aSmrg esac 5196b789ec8aSmrg ;; 5197b789ec8aSmrg 5198b789ec8aSmrgtpf*) 5199b789ec8aSmrg lt_cv_deplibs_check_method=pass_all 5200b789ec8aSmrg ;; 5201b789ec8aSmrgesac 5202b789ec8aSmrg 5203b789ec8aSmrgfi 5204b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5205b789ec8aSmrg$as_echo "$lt_cv_deplibs_check_method" >&6; } 5206b789ec8aSmrg 5207b789ec8aSmrgfile_magic_glob= 5208b789ec8aSmrgwant_nocaseglob=no 5209b789ec8aSmrgif test "$build" = "$host"; then 5210b789ec8aSmrg case $host_os in 5211b789ec8aSmrg mingw* | pw32*) 5212b789ec8aSmrg if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5213b789ec8aSmrg want_nocaseglob=yes 5214b789ec8aSmrg else 5215b789ec8aSmrg file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5216b789ec8aSmrg fi 5217b789ec8aSmrg ;; 5218b789ec8aSmrg esac 5219b789ec8aSmrgfi 5220b789ec8aSmrg 5221b789ec8aSmrgfile_magic_cmd=$lt_cv_file_magic_cmd 5222b789ec8aSmrgdeplibs_check_method=$lt_cv_deplibs_check_method 5223b789ec8aSmrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown 5224b789ec8aSmrg 5225b789ec8aSmrg 5226b789ec8aSmrg 5227b789ec8aSmrg 5228b789ec8aSmrg 5229b789ec8aSmrg 5230b789ec8aSmrg 5231b789ec8aSmrg 5232b789ec8aSmrg 5233b789ec8aSmrg 5234b789ec8aSmrg 5235b789ec8aSmrg 5236b789ec8aSmrg 5237b789ec8aSmrg 5238b789ec8aSmrg 5239b789ec8aSmrg 5240b789ec8aSmrg 5241b789ec8aSmrg 5242b789ec8aSmrg 5243b789ec8aSmrg 5244b789ec8aSmrg 5245b789ec8aSmrg 5246b789ec8aSmrgif test -n "$ac_tool_prefix"; then 5247b789ec8aSmrg # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5248b789ec8aSmrgset dummy ${ac_tool_prefix}dlltool; ac_word=$2 5249b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5250b789ec8aSmrg$as_echo_n "checking for $ac_word... " >&6; } 5251b789ec8aSmrgif ${ac_cv_prog_DLLTOOL+:} false; then : 5252b789ec8aSmrg $as_echo_n "(cached) " >&6 5253b789ec8aSmrgelse 5254b789ec8aSmrg if test -n "$DLLTOOL"; then 5255b789ec8aSmrg ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5256b789ec8aSmrgelse 5257b789ec8aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5258b789ec8aSmrgfor as_dir in $PATH 525937eb1ca1Smrgdo 526037eb1ca1Smrg IFS=$as_save_IFS 526137eb1ca1Smrg test -z "$as_dir" && as_dir=. 526237eb1ca1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 526337eb1ca1Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5264b789ec8aSmrg ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 526537eb1ca1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 526637eb1ca1Smrg break 2 526737eb1ca1Smrg fi 526837eb1ca1Smrgdone 526937eb1ca1Smrg done 527037eb1ca1SmrgIFS=$as_save_IFS 527137eb1ca1Smrg 527237eb1ca1Smrgfi 5273b789ec8aSmrgfi 5274b789ec8aSmrgDLLTOOL=$ac_cv_prog_DLLTOOL 5275b789ec8aSmrgif test -n "$DLLTOOL"; then 5276b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5277b789ec8aSmrg$as_echo "$DLLTOOL" >&6; } 527837eb1ca1Smrgelse 527937eb1ca1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 528037eb1ca1Smrg$as_echo "no" >&6; } 528137eb1ca1Smrgfi 528237eb1ca1Smrg 528337eb1ca1Smrg 5284b789ec8aSmrgfi 5285b789ec8aSmrgif test -z "$ac_cv_prog_DLLTOOL"; then 5286b789ec8aSmrg ac_ct_DLLTOOL=$DLLTOOL 5287b789ec8aSmrg # Extract the first word of "dlltool", so it can be a program name with args. 5288b789ec8aSmrgset dummy dlltool; ac_word=$2 528937eb1ca1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 529037eb1ca1Smrg$as_echo_n "checking for $ac_word... " >&6; } 5291b789ec8aSmrgif ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 529237eb1ca1Smrg $as_echo_n "(cached) " >&6 529337eb1ca1Smrgelse 5294b789ec8aSmrg if test -n "$ac_ct_DLLTOOL"; then 5295b789ec8aSmrg ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5296b789ec8aSmrgelse 5297b789ec8aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 529837eb1ca1Smrgfor as_dir in $PATH 529937eb1ca1Smrgdo 530037eb1ca1Smrg IFS=$as_save_IFS 530137eb1ca1Smrg test -z "$as_dir" && as_dir=. 530237eb1ca1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 530337eb1ca1Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5304b789ec8aSmrg ac_cv_prog_ac_ct_DLLTOOL="dlltool" 530537eb1ca1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 530637eb1ca1Smrg break 2 530737eb1ca1Smrg fi 530837eb1ca1Smrgdone 530937eb1ca1Smrg done 531037eb1ca1SmrgIFS=$as_save_IFS 531137eb1ca1Smrg 531237eb1ca1Smrgfi 5313b789ec8aSmrgfi 5314b789ec8aSmrgac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5315b789ec8aSmrgif test -n "$ac_ct_DLLTOOL"; then 5316b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5317b789ec8aSmrg$as_echo "$ac_ct_DLLTOOL" >&6; } 531837eb1ca1Smrgelse 531937eb1ca1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 532037eb1ca1Smrg$as_echo "no" >&6; } 532137eb1ca1Smrgfi 532237eb1ca1Smrg 5323b789ec8aSmrg if test "x$ac_ct_DLLTOOL" = x; then 5324b789ec8aSmrg DLLTOOL="false" 5325b789ec8aSmrg else 5326b789ec8aSmrg case $cross_compiling:$ac_tool_warned in 5327b789ec8aSmrgyes:) 5328b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5329b789ec8aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5330b789ec8aSmrgac_tool_warned=yes ;; 5331b789ec8aSmrgesac 5332b789ec8aSmrg DLLTOOL=$ac_ct_DLLTOOL 5333b789ec8aSmrg fi 533437eb1ca1Smrgelse 5335b789ec8aSmrg DLLTOOL="$ac_cv_prog_DLLTOOL" 533637eb1ca1Smrgfi 533737eb1ca1Smrg 5338b789ec8aSmrgtest -z "$DLLTOOL" && DLLTOOL=dlltool 533937eb1ca1Smrg 534037eb1ca1Smrg 534137eb1ca1Smrg 534237eb1ca1Smrg 534337eb1ca1Smrg 534437eb1ca1Smrg 534537eb1ca1Smrg 534637eb1ca1Smrg 5347b789ec8aSmrg 5348b789ec8aSmrg 5349b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5350b789ec8aSmrg$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5351b789ec8aSmrgif ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5352b789ec8aSmrg $as_echo_n "(cached) " >&6 535337eb1ca1Smrgelse 5354b789ec8aSmrg lt_cv_sharedlib_from_linklib_cmd='unknown' 5355b789ec8aSmrg 5356b789ec8aSmrgcase $host_os in 5357b789ec8aSmrgcygwin* | mingw* | pw32* | cegcc*) 5358b789ec8aSmrg # two different shell functions defined in ltmain.sh 5359b789ec8aSmrg # decide which to use based on capabilities of $DLLTOOL 5360b789ec8aSmrg case `$DLLTOOL --help 2>&1` in 5361b789ec8aSmrg *--identify-strict*) 5362b789ec8aSmrg lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5363b789ec8aSmrg ;; 5364b789ec8aSmrg *) 5365b789ec8aSmrg lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5366b789ec8aSmrg ;; 5367b789ec8aSmrg esac 5368b789ec8aSmrg ;; 5369b789ec8aSmrg*) 5370b789ec8aSmrg # fallback: assume linklib IS sharedlib 5371b789ec8aSmrg lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5372b789ec8aSmrg ;; 5373b789ec8aSmrgesac 5374b789ec8aSmrg 537537eb1ca1Smrgfi 5376b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5377b789ec8aSmrg$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5378b789ec8aSmrgsharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5379b789ec8aSmrgtest -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 538037eb1ca1Smrg 538137eb1ca1Smrg 538237eb1ca1Smrg 538337eb1ca1Smrg 538437eb1ca1Smrg 538537eb1ca1Smrg 538637eb1ca1Smrg 5387b789ec8aSmrg 5388b789ec8aSmrgif test -n "$ac_tool_prefix"; then 5389b789ec8aSmrg for ac_prog in ar 5390b789ec8aSmrg do 5391b789ec8aSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5392b789ec8aSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 539337eb1ca1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 539437eb1ca1Smrg$as_echo_n "checking for $ac_word... " >&6; } 5395b789ec8aSmrgif ${ac_cv_prog_AR+:} false; then : 539637eb1ca1Smrg $as_echo_n "(cached) " >&6 539737eb1ca1Smrgelse 5398b789ec8aSmrg if test -n "$AR"; then 5399b789ec8aSmrg ac_cv_prog_AR="$AR" # Let the user override the test. 5400b789ec8aSmrgelse 5401b789ec8aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 540237eb1ca1Smrgfor as_dir in $PATH 540337eb1ca1Smrgdo 540437eb1ca1Smrg IFS=$as_save_IFS 540537eb1ca1Smrg test -z "$as_dir" && as_dir=. 540637eb1ca1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 540737eb1ca1Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5408b789ec8aSmrg ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 540937eb1ca1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 541037eb1ca1Smrg break 2 541137eb1ca1Smrg fi 541237eb1ca1Smrgdone 541337eb1ca1Smrg done 541437eb1ca1SmrgIFS=$as_save_IFS 541537eb1ca1Smrg 541637eb1ca1Smrgfi 5417b789ec8aSmrgfi 5418b789ec8aSmrgAR=$ac_cv_prog_AR 5419b789ec8aSmrgif test -n "$AR"; then 5420b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5421b789ec8aSmrg$as_echo "$AR" >&6; } 542237eb1ca1Smrgelse 542337eb1ca1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 542437eb1ca1Smrg$as_echo "no" >&6; } 542537eb1ca1Smrgfi 542637eb1ca1Smrg 542737eb1ca1Smrg 5428b789ec8aSmrg test -n "$AR" && break 5429b789ec8aSmrg done 5430b789ec8aSmrgfi 5431b789ec8aSmrgif test -z "$AR"; then 5432b789ec8aSmrg ac_ct_AR=$AR 5433b789ec8aSmrg for ac_prog in ar 5434b789ec8aSmrgdo 5435b789ec8aSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 5436b789ec8aSmrgset dummy $ac_prog; ac_word=$2 543737eb1ca1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 543837eb1ca1Smrg$as_echo_n "checking for $ac_word... " >&6; } 5439b789ec8aSmrgif ${ac_cv_prog_ac_ct_AR+:} false; then : 544037eb1ca1Smrg $as_echo_n "(cached) " >&6 544137eb1ca1Smrgelse 5442b789ec8aSmrg if test -n "$ac_ct_AR"; then 5443b789ec8aSmrg ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5444b789ec8aSmrgelse 5445b789ec8aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 544637eb1ca1Smrgfor as_dir in $PATH 544737eb1ca1Smrgdo 544837eb1ca1Smrg IFS=$as_save_IFS 544937eb1ca1Smrg test -z "$as_dir" && as_dir=. 545037eb1ca1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 545137eb1ca1Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5452b789ec8aSmrg ac_cv_prog_ac_ct_AR="$ac_prog" 545337eb1ca1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 545437eb1ca1Smrg break 2 545537eb1ca1Smrg fi 545637eb1ca1Smrgdone 545737eb1ca1Smrg done 545837eb1ca1SmrgIFS=$as_save_IFS 545937eb1ca1Smrg 546037eb1ca1Smrgfi 5461b789ec8aSmrgfi 5462b789ec8aSmrgac_ct_AR=$ac_cv_prog_ac_ct_AR 5463b789ec8aSmrgif test -n "$ac_ct_AR"; then 5464b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5465b789ec8aSmrg$as_echo "$ac_ct_AR" >&6; } 546637eb1ca1Smrgelse 546737eb1ca1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 546837eb1ca1Smrg$as_echo "no" >&6; } 546937eb1ca1Smrgfi 547037eb1ca1Smrg 547137eb1ca1Smrg 5472b789ec8aSmrg test -n "$ac_ct_AR" && break 5473b789ec8aSmrgdone 5474b789ec8aSmrg 5475b789ec8aSmrg if test "x$ac_ct_AR" = x; then 5476b789ec8aSmrg AR="false" 5477b789ec8aSmrg else 5478b789ec8aSmrg case $cross_compiling:$ac_tool_warned in 5479b789ec8aSmrgyes:) 5480b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5481b789ec8aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5482b789ec8aSmrgac_tool_warned=yes ;; 5483b789ec8aSmrgesac 5484b789ec8aSmrg AR=$ac_ct_AR 5485b789ec8aSmrg fi 5486b789ec8aSmrgfi 5487b789ec8aSmrg 5488b789ec8aSmrg: ${AR=ar} 5489b789ec8aSmrg: ${AR_FLAGS=cru} 5490b789ec8aSmrg 5491b789ec8aSmrg 5492b789ec8aSmrg 5493b789ec8aSmrg 5494b789ec8aSmrg 5495b789ec8aSmrg 5496b789ec8aSmrg 5497b789ec8aSmrg 5498b789ec8aSmrg 5499b789ec8aSmrg 5500b789ec8aSmrg 5501b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5502b789ec8aSmrg$as_echo_n "checking for archiver @FILE support... " >&6; } 5503b789ec8aSmrgif ${lt_cv_ar_at_file+:} false; then : 5504b789ec8aSmrg $as_echo_n "(cached) " >&6 550537eb1ca1Smrgelse 5506b789ec8aSmrg lt_cv_ar_at_file=no 5507b789ec8aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5508b789ec8aSmrg/* end confdefs.h. */ 5509b789ec8aSmrg 5510b789ec8aSmrgint 5511b789ec8aSmrgmain () 5512b789ec8aSmrg{ 5513b789ec8aSmrg 5514b789ec8aSmrg ; 5515b789ec8aSmrg return 0; 5516b789ec8aSmrg} 5517b789ec8aSmrg_ACEOF 5518b789ec8aSmrgif ac_fn_c_try_compile "$LINENO"; then : 5519b789ec8aSmrg echo conftest.$ac_objext > conftest.lst 5520b789ec8aSmrg lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5521b789ec8aSmrg { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5522b789ec8aSmrg (eval $lt_ar_try) 2>&5 5523b789ec8aSmrg ac_status=$? 5524b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5525b789ec8aSmrg test $ac_status = 0; } 5526b789ec8aSmrg if test "$ac_status" -eq 0; then 5527b789ec8aSmrg # Ensure the archiver fails upon bogus file names. 5528b789ec8aSmrg rm -f conftest.$ac_objext libconftest.a 5529b789ec8aSmrg { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5530b789ec8aSmrg (eval $lt_ar_try) 2>&5 5531b789ec8aSmrg ac_status=$? 5532b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5533b789ec8aSmrg test $ac_status = 0; } 5534b789ec8aSmrg if test "$ac_status" -ne 0; then 5535b789ec8aSmrg lt_cv_ar_at_file=@ 5536b789ec8aSmrg fi 5537b789ec8aSmrg fi 5538b789ec8aSmrg rm -f conftest.* libconftest.a 5539b789ec8aSmrg 554037eb1ca1Smrgfi 5541b789ec8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5542b789ec8aSmrg 554337eb1ca1Smrgfi 5544b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5545b789ec8aSmrg$as_echo "$lt_cv_ar_at_file" >&6; } 5546b789ec8aSmrg 5547b789ec8aSmrgif test "x$lt_cv_ar_at_file" = xno; then 5548b789ec8aSmrg archiver_list_spec= 554937eb1ca1Smrgelse 5550b789ec8aSmrg archiver_list_spec=$lt_cv_ar_at_file 555137eb1ca1Smrgfi 555237eb1ca1Smrg 555337eb1ca1Smrg 55543e256790Smrg 55553e256790Smrg 5556b789ec8aSmrg 5557b789ec8aSmrg 5558b789ec8aSmrg 5559c27c18e8Smrgif test -n "$ac_tool_prefix"; then 5560b789ec8aSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5561b789ec8aSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 55623e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5563c27c18e8Smrg$as_echo_n "checking for $ac_word... " >&6; } 5564b789ec8aSmrgif ${ac_cv_prog_STRIP+:} false; then : 556521e67964Smrg $as_echo_n "(cached) " >&6 5566c43cc173Smrgelse 5567b789ec8aSmrg if test -n "$STRIP"; then 5568b789ec8aSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5569c43cc173Smrgelse 5570c27c18e8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5571c27c18e8Smrgfor as_dir in $PATH 5572c27c18e8Smrgdo 5573c27c18e8Smrg IFS=$as_save_IFS 5574c27c18e8Smrg test -z "$as_dir" && as_dir=. 55753e256790Smrg for ac_exec_ext in '' $ac_executable_extensions; do 5576c27c18e8Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5577b789ec8aSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 55783e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5579c27c18e8Smrg break 2 5580c27c18e8Smrg fi 5581c27c18e8Smrgdone 55823e256790Smrg done 5583c27c18e8SmrgIFS=$as_save_IFS 5584c43cc173Smrg 5585c43cc173Smrgfi 5586c27c18e8Smrgfi 5587b789ec8aSmrgSTRIP=$ac_cv_prog_STRIP 5588b789ec8aSmrgif test -n "$STRIP"; then 5589b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5590b789ec8aSmrg$as_echo "$STRIP" >&6; } 5591c43cc173Smrgelse 55923e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5593c27c18e8Smrg$as_echo "no" >&6; } 5594c43cc173Smrgfi 5595c43cc173Smrg 5596c43cc173Smrg 5597c43cc173Smrgfi 5598b789ec8aSmrgif test -z "$ac_cv_prog_STRIP"; then 5599b789ec8aSmrg ac_ct_STRIP=$STRIP 5600b789ec8aSmrg # Extract the first word of "strip", so it can be a program name with args. 5601b789ec8aSmrgset dummy strip; ac_word=$2 56023e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5603c27c18e8Smrg$as_echo_n "checking for $ac_word... " >&6; } 5604b789ec8aSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5605c27c18e8Smrg $as_echo_n "(cached) " >&6 5606c43cc173Smrgelse 5607b789ec8aSmrg if test -n "$ac_ct_STRIP"; then 5608b789ec8aSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5609c43cc173Smrgelse 5610c27c18e8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5611c27c18e8Smrgfor as_dir in $PATH 5612c27c18e8Smrgdo 5613c27c18e8Smrg IFS=$as_save_IFS 5614c27c18e8Smrg test -z "$as_dir" && as_dir=. 56153e256790Smrg for ac_exec_ext in '' $ac_executable_extensions; do 5616c27c18e8Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5617b789ec8aSmrg ac_cv_prog_ac_ct_STRIP="strip" 56183e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5619c27c18e8Smrg break 2 5620c27c18e8Smrg fi 5621c27c18e8Smrgdone 56223e256790Smrg done 5623c27c18e8SmrgIFS=$as_save_IFS 5624c43cc173Smrg 5625c43cc173Smrgfi 5626c27c18e8Smrgfi 5627b789ec8aSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5628b789ec8aSmrgif test -n "$ac_ct_STRIP"; then 5629b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5630b789ec8aSmrg$as_echo "$ac_ct_STRIP" >&6; } 5631c43cc173Smrgelse 56323e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5633c27c18e8Smrg$as_echo "no" >&6; } 5634c43cc173Smrgfi 5635c43cc173Smrg 5636b789ec8aSmrg if test "x$ac_ct_STRIP" = x; then 5637b789ec8aSmrg STRIP=":" 5638c27c18e8Smrg else 5639c27c18e8Smrg case $cross_compiling:$ac_tool_warned in 5640c27c18e8Smrgyes:) 56413e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5642c27c18e8Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5643c27c18e8Smrgac_tool_warned=yes ;; 5644c27c18e8Smrgesac 5645b789ec8aSmrg STRIP=$ac_ct_STRIP 5646c27c18e8Smrg fi 5647c43cc173Smrgelse 5648b789ec8aSmrg STRIP="$ac_cv_prog_STRIP" 5649c43cc173Smrgfi 5650c43cc173Smrg 5651b789ec8aSmrgtest -z "$STRIP" && STRIP=: 5652c43cc173Smrg 5653c43cc173Smrg 5654c43cc173Smrg 5655c43cc173Smrg 5656c43cc173Smrg 5657c43cc173Smrg 5658b789ec8aSmrgif test -n "$ac_tool_prefix"; then 5659b789ec8aSmrg # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5660b789ec8aSmrgset dummy ${ac_tool_prefix}ranlib; ac_word=$2 56613e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 56623e256790Smrg$as_echo_n "checking for $ac_word... " >&6; } 5663b789ec8aSmrgif ${ac_cv_prog_RANLIB+:} false; then : 56643e256790Smrg $as_echo_n "(cached) " >&6 56653e256790Smrgelse 5666b789ec8aSmrg if test -n "$RANLIB"; then 5667b789ec8aSmrg ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 56683e256790Smrgelse 56693e256790Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 56703e256790Smrgfor as_dir in $PATH 56713e256790Smrgdo 56723e256790Smrg IFS=$as_save_IFS 56733e256790Smrg test -z "$as_dir" && as_dir=. 56743e256790Smrg for ac_exec_ext in '' $ac_executable_extensions; do 56753e256790Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5676b789ec8aSmrg ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 56773e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 56783e256790Smrg break 2 56793e256790Smrg fi 56803e256790Smrgdone 56813e256790Smrg done 56823e256790SmrgIFS=$as_save_IFS 5683c43cc173Smrg 56843e256790Smrgfi 56853e256790Smrgfi 5686b789ec8aSmrgRANLIB=$ac_cv_prog_RANLIB 5687b789ec8aSmrgif test -n "$RANLIB"; then 5688b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5689b789ec8aSmrg$as_echo "$RANLIB" >&6; } 56903e256790Smrgelse 56913e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56923e256790Smrg$as_echo "no" >&6; } 56933e256790Smrgfi 5694c43cc173Smrg 5695c27c18e8Smrg 56963e256790Smrgfi 5697b789ec8aSmrgif test -z "$ac_cv_prog_RANLIB"; then 5698b789ec8aSmrg ac_ct_RANLIB=$RANLIB 5699b789ec8aSmrg # Extract the first word of "ranlib", so it can be a program name with args. 5700b789ec8aSmrgset dummy ranlib; ac_word=$2 57013e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 57023e256790Smrg$as_echo_n "checking for $ac_word... " >&6; } 5703b789ec8aSmrgif ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5704c27c18e8Smrg $as_echo_n "(cached) " >&6 5705c43cc173Smrgelse 5706b789ec8aSmrg if test -n "$ac_ct_RANLIB"; then 5707b789ec8aSmrg ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 57083e256790Smrgelse 57093e256790Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 57103e256790Smrgfor as_dir in $PATH 57113e256790Smrgdo 57123e256790Smrg IFS=$as_save_IFS 57133e256790Smrg test -z "$as_dir" && as_dir=. 57143e256790Smrg for ac_exec_ext in '' $ac_executable_extensions; do 57153e256790Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5716b789ec8aSmrg ac_cv_prog_ac_ct_RANLIB="ranlib" 57173e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 57183e256790Smrg break 2 57193e256790Smrg fi 57203e256790Smrgdone 57213e256790Smrg done 57223e256790SmrgIFS=$as_save_IFS 5723c43cc173Smrg 57243e256790Smrgfi 57253e256790Smrgfi 5726b789ec8aSmrgac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5727b789ec8aSmrgif test -n "$ac_ct_RANLIB"; then 5728b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5729b789ec8aSmrg$as_echo "$ac_ct_RANLIB" >&6; } 57303e256790Smrgelse 57313e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57323e256790Smrg$as_echo "no" >&6; } 57333e256790Smrgfi 5734c43cc173Smrg 5735b789ec8aSmrg if test "x$ac_ct_RANLIB" = x; then 5736b789ec8aSmrg RANLIB=":" 5737c27c18e8Smrg else 57383e256790Smrg case $cross_compiling:$ac_tool_warned in 57393e256790Smrgyes:) 57403e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 57413e256790Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 57423e256790Smrgac_tool_warned=yes ;; 57433e256790Smrgesac 5744b789ec8aSmrg RANLIB=$ac_ct_RANLIB 5745c27c18e8Smrg fi 5746b789ec8aSmrgelse 5747b789ec8aSmrg RANLIB="$ac_cv_prog_RANLIB" 57483e256790Smrgfi 5749c43cc173Smrg 5750b789ec8aSmrgtest -z "$RANLIB" && RANLIB=: 5751c43cc173Smrg 5752c43cc173Smrg 5753c43cc173Smrg 5754c43cc173Smrg 5755c27c18e8Smrg 5756c43cc173Smrg 5757b789ec8aSmrg# Determine commands to create old-style static archives. 5758b789ec8aSmrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5759b789ec8aSmrgold_postinstall_cmds='chmod 644 $oldlib' 5760b789ec8aSmrgold_postuninstall_cmds= 5761c27c18e8Smrg 5762b789ec8aSmrgif test -n "$RANLIB"; then 5763b789ec8aSmrg case $host_os in 5764b789ec8aSmrg openbsd*) 5765b789ec8aSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5766b789ec8aSmrg ;; 5767b789ec8aSmrg *) 5768b789ec8aSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5769b789ec8aSmrg ;; 5770b789ec8aSmrg esac 5771b789ec8aSmrg old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5772b789ec8aSmrgfi 5773c27c18e8Smrg 5774b789ec8aSmrgcase $host_os in 5775b789ec8aSmrg darwin*) 5776b789ec8aSmrg lock_old_archive_extraction=yes ;; 5777b789ec8aSmrg *) 5778b789ec8aSmrg lock_old_archive_extraction=no ;; 5779b789ec8aSmrgesac 5780c27c18e8Smrg 5781c27c18e8Smrg 5782c27c18e8Smrg 5783c27c18e8Smrg 57843e256790Smrg 5785c43cc173Smrg 57863e256790Smrg 57873e256790Smrg 57883e256790Smrg 5789c43cc173Smrg 57903e256790Smrg 57913e256790Smrg 57923e256790Smrg 57933e256790Smrg 5794b789ec8aSmrg 5795b789ec8aSmrg 5796b789ec8aSmrg 5797b789ec8aSmrg 5798b789ec8aSmrg 5799b789ec8aSmrg 5800b789ec8aSmrg 5801b789ec8aSmrg 5802b789ec8aSmrg 5803b789ec8aSmrg 5804b789ec8aSmrg 5805b789ec8aSmrg 5806b789ec8aSmrg 5807b789ec8aSmrg 5808b789ec8aSmrg 5809b789ec8aSmrg 5810b789ec8aSmrg 5811b789ec8aSmrg 5812b789ec8aSmrg 5813b789ec8aSmrg 5814b789ec8aSmrg 5815b789ec8aSmrg 5816b789ec8aSmrg 5817b789ec8aSmrg 5818b789ec8aSmrg 5819b789ec8aSmrg# If no C compiler was specified, use CC. 5820b789ec8aSmrgLTCC=${LTCC-"$CC"} 5821b789ec8aSmrg 5822b789ec8aSmrg# If no C compiler flags were specified, use CFLAGS. 5823b789ec8aSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5824b789ec8aSmrg 5825b789ec8aSmrg# Allow CC to be a program name with arguments. 5826b789ec8aSmrgcompiler=$CC 5827b789ec8aSmrg 5828b789ec8aSmrg 5829b789ec8aSmrg# Check for command to grab the raw symbol name followed by C symbol from nm. 5830b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5831b789ec8aSmrg$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5832b789ec8aSmrgif ${lt_cv_sys_global_symbol_pipe+:} false; then : 58333e256790Smrg $as_echo_n "(cached) " >&6 5834c27c18e8Smrgelse 5835c43cc173Smrg 5836b789ec8aSmrg# These are sane defaults that work on at least a few old systems. 5837b789ec8aSmrg# [They come from Ultrix. What could be older than Ultrix?!! ;)] 58383e256790Smrg 5839b789ec8aSmrg# Character class describing NM global symbol codes. 5840b789ec8aSmrgsymcode='[BCDEGRST]' 58413e256790Smrg 5842b789ec8aSmrg# Regexp to match symbols that can be accessed directly from C. 5843b789ec8aSmrgsympat='\([_A-Za-z][_A-Za-z0-9]*\)' 58443e256790Smrg 5845b789ec8aSmrg# Define system-specific variables. 5846b789ec8aSmrgcase $host_os in 5847b789ec8aSmrgaix*) 5848b789ec8aSmrg symcode='[BCDT]' 5849b789ec8aSmrg ;; 5850b789ec8aSmrgcygwin* | mingw* | pw32* | cegcc*) 5851b789ec8aSmrg symcode='[ABCDGISTW]' 5852b789ec8aSmrg ;; 5853b789ec8aSmrghpux*) 5854b789ec8aSmrg if test "$host_cpu" = ia64; then 5855b789ec8aSmrg symcode='[ABCDEGRST]' 5856b789ec8aSmrg fi 5857b789ec8aSmrg ;; 5858b789ec8aSmrgirix* | nonstopux*) 5859b789ec8aSmrg symcode='[BCDEGRST]' 5860b789ec8aSmrg ;; 5861b789ec8aSmrgosf*) 5862b789ec8aSmrg symcode='[BCDEGQRST]' 5863b789ec8aSmrg ;; 5864b789ec8aSmrgsolaris*) 5865b789ec8aSmrg symcode='[BDRT]' 5866b789ec8aSmrg ;; 5867b789ec8aSmrgsco3.2v5*) 5868b789ec8aSmrg symcode='[DT]' 5869b789ec8aSmrg ;; 5870b789ec8aSmrgsysv4.2uw2*) 5871b789ec8aSmrg symcode='[DT]' 5872b789ec8aSmrg ;; 5873b789ec8aSmrgsysv5* | sco5v6* | unixware* | OpenUNIX*) 5874b789ec8aSmrg symcode='[ABDT]' 5875b789ec8aSmrg ;; 5876b789ec8aSmrgsysv4) 5877b789ec8aSmrg symcode='[DFNSTU]' 5878b789ec8aSmrg ;; 5879b789ec8aSmrgesac 5880c43cc173Smrg 5881b789ec8aSmrg# If we're using GNU nm, then use its standard symbol codes. 5882b789ec8aSmrgcase `$NM -V 2>&1` in 5883b789ec8aSmrg*GNU* | *'with BFD'*) 5884b789ec8aSmrg symcode='[ABCDGIRSTW]' ;; 5885b789ec8aSmrgesac 5886c43cc173Smrg 5887b789ec8aSmrg# Transform an extracted symbol line into a proper C declaration. 5888b789ec8aSmrg# Some systems (esp. on ia64) link data and code symbols differently, 5889b789ec8aSmrg# so use this general approach. 5890b789ec8aSmrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5891c43cc173Smrg 5892b789ec8aSmrg# Transform an extracted symbol line into symbol name and symbol address 5893b789ec8aSmrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5894b789ec8aSmrglt_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'" 5895c43cc173Smrg 5896b789ec8aSmrg# Handle CRLF in mingw tool chain 5897b789ec8aSmrgopt_cr= 5898b789ec8aSmrgcase $build_os in 5899b789ec8aSmrgmingw*) 5900b789ec8aSmrg opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5901b789ec8aSmrg ;; 59023e256790Smrgesac 5903c27c18e8Smrg 5904b789ec8aSmrg# Try without a prefix underscore, then with it. 5905b789ec8aSmrgfor ac_symprfx in "" "_"; do 5906c27c18e8Smrg 5907b789ec8aSmrg # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5908b789ec8aSmrg symxfrm="\\1 $ac_symprfx\\2 \\2" 5909c27c18e8Smrg 5910b789ec8aSmrg # Write the raw and C identifiers. 5911b789ec8aSmrg if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5912b789ec8aSmrg # Fake it for dumpbin and say T for any non-static function 5913b789ec8aSmrg # and D for any global variable. 5914b789ec8aSmrg # Also find C++ and __fastcall symbols from MSVC++, 5915b789ec8aSmrg # which start with @ or ?. 5916b789ec8aSmrg lt_cv_sys_global_symbol_pipe="$AWK '"\ 5917b789ec8aSmrg" {last_section=section; section=\$ 3};"\ 5918b789ec8aSmrg" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5919b789ec8aSmrg" \$ 0!~/External *\|/{next};"\ 5920b789ec8aSmrg" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5921b789ec8aSmrg" {if(hide[section]) next};"\ 5922b789ec8aSmrg" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5923b789ec8aSmrg" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5924b789ec8aSmrg" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5925b789ec8aSmrg" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5926b789ec8aSmrg" ' prfx=^$ac_symprfx" 5927b789ec8aSmrg else 5928b789ec8aSmrg lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5929b789ec8aSmrg fi 5930b789ec8aSmrg lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5931c27c18e8Smrg 5932b789ec8aSmrg # Check to see that the pipe works correctly. 5933b789ec8aSmrg pipe_works=no 5934c27c18e8Smrg 5935b789ec8aSmrg rm -f conftest* 5936b789ec8aSmrg cat > conftest.$ac_ext <<_LT_EOF 5937b789ec8aSmrg#ifdef __cplusplus 5938b789ec8aSmrgextern "C" { 5939b789ec8aSmrg#endif 5940b789ec8aSmrgchar nm_test_var; 5941b789ec8aSmrgvoid nm_test_func(void); 5942b789ec8aSmrgvoid nm_test_func(void){} 5943b789ec8aSmrg#ifdef __cplusplus 5944b789ec8aSmrg} 5945b789ec8aSmrg#endif 5946b789ec8aSmrgint main(){nm_test_var='a';nm_test_func();return(0);} 5947b789ec8aSmrg_LT_EOF 5948c27c18e8Smrg 5949b789ec8aSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5950b789ec8aSmrg (eval $ac_compile) 2>&5 5951b789ec8aSmrg ac_status=$? 5952b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5953b789ec8aSmrg test $ac_status = 0; }; then 5954b789ec8aSmrg # Now try to grab the symbols. 5955b789ec8aSmrg nlist=conftest.nm 5956b789ec8aSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5957b789ec8aSmrg (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5958b789ec8aSmrg ac_status=$? 5959b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5960b789ec8aSmrg test $ac_status = 0; } && test -s "$nlist"; then 5961b789ec8aSmrg # Try sorting and uniquifying the output. 5962b789ec8aSmrg if sort "$nlist" | uniq > "$nlist"T; then 5963b789ec8aSmrg mv -f "$nlist"T "$nlist" 5964b789ec8aSmrg else 5965b789ec8aSmrg rm -f "$nlist"T 5966b789ec8aSmrg fi 59673e256790Smrg 5968b789ec8aSmrg # Make sure that we snagged all the symbols we need. 5969b789ec8aSmrg if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5970b789ec8aSmrg if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5971b789ec8aSmrg cat <<_LT_EOF > conftest.$ac_ext 5972b789ec8aSmrg/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 5973b789ec8aSmrg#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 5974b789ec8aSmrg/* DATA imports from DLLs on WIN32 con't be const, because runtime 5975b789ec8aSmrg relocations are performed -- see ld's documentation on pseudo-relocs. */ 5976b789ec8aSmrg# define LT_DLSYM_CONST 5977b789ec8aSmrg#elif defined(__osf__) 5978b789ec8aSmrg/* This system does not cope well with relocations in const data. */ 5979b789ec8aSmrg# define LT_DLSYM_CONST 5980b789ec8aSmrg#else 5981b789ec8aSmrg# define LT_DLSYM_CONST const 5982b789ec8aSmrg#endif 59833e256790Smrg 5984b789ec8aSmrg#ifdef __cplusplus 5985b789ec8aSmrgextern "C" { 5986b789ec8aSmrg#endif 59873e256790Smrg 5988b789ec8aSmrg_LT_EOF 5989b789ec8aSmrg # Now generate the symbol file. 5990b789ec8aSmrg eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 59913e256790Smrg 5992b789ec8aSmrg cat <<_LT_EOF >> conftest.$ac_ext 59933e256790Smrg 5994b789ec8aSmrg/* The mapping between symbol names and symbols. */ 5995b789ec8aSmrgLT_DLSYM_CONST struct { 5996b789ec8aSmrg const char *name; 5997b789ec8aSmrg void *address; 5998b789ec8aSmrg} 5999b789ec8aSmrglt__PROGRAM__LTX_preloaded_symbols[] = 6000b789ec8aSmrg{ 6001b789ec8aSmrg { "@PROGRAM@", (void *) 0 }, 6002b789ec8aSmrg_LT_EOF 6003b789ec8aSmrg $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6004b789ec8aSmrg cat <<\_LT_EOF >> conftest.$ac_ext 6005b789ec8aSmrg {0, (void *) 0} 6006b789ec8aSmrg}; 60073e256790Smrg 6008b789ec8aSmrg/* This works around a problem in FreeBSD linker */ 6009b789ec8aSmrg#ifdef FREEBSD_WORKAROUND 6010b789ec8aSmrgstatic const void *lt_preloaded_setup() { 6011b789ec8aSmrg return lt__PROGRAM__LTX_preloaded_symbols; 6012b789ec8aSmrg} 6013b789ec8aSmrg#endif 60143e256790Smrg 6015b789ec8aSmrg#ifdef __cplusplus 6016b789ec8aSmrg} 6017b789ec8aSmrg#endif 6018b789ec8aSmrg_LT_EOF 6019b789ec8aSmrg # Now try linking the two files. 6020b789ec8aSmrg mv conftest.$ac_objext conftstm.$ac_objext 6021b789ec8aSmrg lt_globsym_save_LIBS=$LIBS 6022b789ec8aSmrg lt_globsym_save_CFLAGS=$CFLAGS 6023b789ec8aSmrg LIBS="conftstm.$ac_objext" 6024b789ec8aSmrg CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6025b789ec8aSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6026b789ec8aSmrg (eval $ac_link) 2>&5 6027b789ec8aSmrg ac_status=$? 6028b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6029b789ec8aSmrg test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6030b789ec8aSmrg pipe_works=yes 6031b789ec8aSmrg fi 6032b789ec8aSmrg LIBS=$lt_globsym_save_LIBS 6033b789ec8aSmrg CFLAGS=$lt_globsym_save_CFLAGS 6034b789ec8aSmrg else 6035b789ec8aSmrg echo "cannot find nm_test_func in $nlist" >&5 6036b789ec8aSmrg fi 6037b789ec8aSmrg else 6038b789ec8aSmrg echo "cannot find nm_test_var in $nlist" >&5 6039b789ec8aSmrg fi 6040b789ec8aSmrg else 6041b789ec8aSmrg echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6042b789ec8aSmrg fi 6043b789ec8aSmrg else 6044b789ec8aSmrg echo "$progname: failed program was:" >&5 6045b789ec8aSmrg cat conftest.$ac_ext >&5 6046b789ec8aSmrg fi 6047b789ec8aSmrg rm -rf conftest* conftst* 60483e256790Smrg 6049b789ec8aSmrg # Do not use the global_symbol_pipe unless it works. 6050b789ec8aSmrg if test "$pipe_works" = yes; then 6051b789ec8aSmrg break 6052b789ec8aSmrg else 6053b789ec8aSmrg lt_cv_sys_global_symbol_pipe= 6054b789ec8aSmrg fi 6055b789ec8aSmrgdone 605637eb1ca1Smrg 6057b789ec8aSmrgfi 605837eb1ca1Smrg 6059b789ec8aSmrgif test -z "$lt_cv_sys_global_symbol_pipe"; then 6060b789ec8aSmrg lt_cv_sys_global_symbol_to_cdecl= 6061b789ec8aSmrgfi 6062b789ec8aSmrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6063b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6064b789ec8aSmrg$as_echo "failed" >&6; } 606537eb1ca1Smrgelse 6066b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6067b789ec8aSmrg$as_echo "ok" >&6; } 606837eb1ca1Smrgfi 606937eb1ca1Smrg 6070b789ec8aSmrg# Response file support. 6071b789ec8aSmrgif test "$lt_cv_nm_interface" = "MS dumpbin"; then 6072b789ec8aSmrg nm_file_list_spec='@' 6073b789ec8aSmrgelif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6074b789ec8aSmrg nm_file_list_spec='@' 6075b789ec8aSmrgfi 607637eb1ca1Smrg 607737eb1ca1Smrg 607837eb1ca1Smrg 607937eb1ca1Smrg 608037eb1ca1Smrg 608137eb1ca1Smrg 608237eb1ca1Smrg 608337eb1ca1Smrg 608437eb1ca1Smrg 608537eb1ca1Smrg 608637eb1ca1Smrg 608737eb1ca1Smrg 608837eb1ca1Smrg 6089c43cc173Smrg 6090c43cc173Smrg 6091c43cc173Smrg 6092c43cc173Smrg 6093c43cc173Smrg 6094c27c18e8Smrg 6095c27c18e8Smrg 6096c27c18e8Smrg 6097c27c18e8Smrg 6098c27c18e8Smrg 6099c27c18e8Smrg 6100c43cc173Smrg 6101c43cc173Smrg 6102c43cc173Smrg 6103b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6104b789ec8aSmrg$as_echo_n "checking for sysroot... " >&6; } 61053e256790Smrg 6106b789ec8aSmrg# Check whether --with-sysroot was given. 6107b789ec8aSmrgif test "${with_sysroot+set}" = set; then : 6108b789ec8aSmrg withval=$with_sysroot; 6109c43cc173Smrgelse 6110b789ec8aSmrg with_sysroot=no 6111c43cc173Smrgfi 6112c43cc173Smrg 6113c43cc173Smrg 6114b789ec8aSmrglt_sysroot= 6115b789ec8aSmrgcase ${with_sysroot} in #( 6116b789ec8aSmrg yes) 6117b789ec8aSmrg if test "$GCC" = yes; then 6118b789ec8aSmrg lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6119b789ec8aSmrg fi 6120b789ec8aSmrg ;; #( 6121b789ec8aSmrg /*) 6122b789ec8aSmrg lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6123b789ec8aSmrg ;; #( 6124b789ec8aSmrg no|'') 6125b789ec8aSmrg ;; #( 6126b789ec8aSmrg *) 6127b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6128b789ec8aSmrg$as_echo "${with_sysroot}" >&6; } 6129b789ec8aSmrg as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6130b789ec8aSmrg ;; 6131b789ec8aSmrgesac 6132c43cc173Smrg 6133b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6134b789ec8aSmrg$as_echo "${lt_sysroot:-no}" >&6; } 6135c43cc173Smrg 6136c43cc173Smrg 6137c43cc173Smrg 6138c43cc173Smrg 6139c43cc173Smrg 6140b789ec8aSmrg# Check whether --enable-libtool-lock was given. 6141b789ec8aSmrgif test "${enable_libtool_lock+set}" = set; then : 6142b789ec8aSmrg enableval=$enable_libtool_lock; 61433e256790Smrgfi 6144c43cc173Smrg 6145b789ec8aSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6146b789ec8aSmrg 6147b789ec8aSmrg# Some flags need to be propagated to the compiler or linker for good 6148b789ec8aSmrg# libtool support. 6149b789ec8aSmrgcase $host in 6150b789ec8aSmrgia64-*-hpux*) 6151b789ec8aSmrg # Find out which ABI we are using. 6152b789ec8aSmrg echo 'int i;' > conftest.$ac_ext 6153b789ec8aSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6154b789ec8aSmrg (eval $ac_compile) 2>&5 6155b789ec8aSmrg ac_status=$? 6156b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6157b789ec8aSmrg test $ac_status = 0; }; then 6158b789ec8aSmrg case `/usr/bin/file conftest.$ac_objext` in 6159b789ec8aSmrg *ELF-32*) 6160b789ec8aSmrg HPUX_IA64_MODE="32" 61613e256790Smrg ;; 6162b789ec8aSmrg *ELF-64*) 6163b789ec8aSmrg HPUX_IA64_MODE="64" 6164b789ec8aSmrg ;; 6165b789ec8aSmrg esac 6166b789ec8aSmrg fi 6167b789ec8aSmrg rm -rf conftest* 6168b789ec8aSmrg ;; 6169b789ec8aSmrg*-*-irix6*) 6170b789ec8aSmrg # Find out which ABI we are using. 6171b789ec8aSmrg echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6172b789ec8aSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6173b789ec8aSmrg (eval $ac_compile) 2>&5 6174b789ec8aSmrg ac_status=$? 6175b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6176b789ec8aSmrg test $ac_status = 0; }; then 6177b789ec8aSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 6178b789ec8aSmrg case `/usr/bin/file conftest.$ac_objext` in 6179b789ec8aSmrg *32-bit*) 6180b789ec8aSmrg LD="${LD-ld} -melf32bsmip" 6181b789ec8aSmrg ;; 6182b789ec8aSmrg *N32*) 6183b789ec8aSmrg LD="${LD-ld} -melf32bmipn32" 6184b789ec8aSmrg ;; 6185b789ec8aSmrg *64-bit*) 6186b789ec8aSmrg LD="${LD-ld} -melf64bmip" 61873e256790Smrg ;; 61883e256790Smrg esac 6189b789ec8aSmrg else 6190b789ec8aSmrg case `/usr/bin/file conftest.$ac_objext` in 6191b789ec8aSmrg *32-bit*) 6192b789ec8aSmrg LD="${LD-ld} -32" 6193b789ec8aSmrg ;; 6194b789ec8aSmrg *N32*) 6195b789ec8aSmrg LD="${LD-ld} -n32" 6196b789ec8aSmrg ;; 6197b789ec8aSmrg *64-bit*) 6198b789ec8aSmrg LD="${LD-ld} -64" 6199b789ec8aSmrg ;; 6200b789ec8aSmrg esac 62013e256790Smrg fi 6202b789ec8aSmrg fi 6203b789ec8aSmrg rm -rf conftest* 6204b789ec8aSmrg ;; 6205c43cc173Smrg 6206b789ec8aSmrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6207b789ec8aSmrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6208b789ec8aSmrg # Find out which ABI we are using. 6209b789ec8aSmrg echo 'int i;' > conftest.$ac_ext 6210b789ec8aSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6211b789ec8aSmrg (eval $ac_compile) 2>&5 6212b789ec8aSmrg ac_status=$? 6213b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6214b789ec8aSmrg test $ac_status = 0; }; then 6215b789ec8aSmrg case `/usr/bin/file conftest.o` in 6216b789ec8aSmrg *32-bit*) 6217b789ec8aSmrg case $host in 6218b789ec8aSmrg x86_64-*kfreebsd*-gnu) 6219b789ec8aSmrg LD="${LD-ld} -m elf_i386_fbsd" 6220b789ec8aSmrg ;; 6221b789ec8aSmrg x86_64-*linux*) 6222b789ec8aSmrg LD="${LD-ld} -m elf_i386" 6223b789ec8aSmrg ;; 6224b789ec8aSmrg ppc64-*linux*|powerpc64-*linux*) 6225b789ec8aSmrg LD="${LD-ld} -m elf32ppclinux" 6226b789ec8aSmrg ;; 6227b789ec8aSmrg s390x-*linux*) 6228b789ec8aSmrg LD="${LD-ld} -m elf_s390" 6229b789ec8aSmrg ;; 6230b789ec8aSmrg sparc64-*linux*) 6231b789ec8aSmrg LD="${LD-ld} -m elf32_sparc" 6232b789ec8aSmrg ;; 6233b789ec8aSmrg esac 6234b789ec8aSmrg ;; 6235b789ec8aSmrg *64-bit*) 6236b789ec8aSmrg case $host in 6237b789ec8aSmrg x86_64-*kfreebsd*-gnu) 6238b789ec8aSmrg LD="${LD-ld} -m elf_x86_64_fbsd" 6239b789ec8aSmrg ;; 6240b789ec8aSmrg x86_64-*linux*) 6241b789ec8aSmrg LD="${LD-ld} -m elf_x86_64" 6242b789ec8aSmrg ;; 6243b789ec8aSmrg ppc*-*linux*|powerpc*-*linux*) 6244b789ec8aSmrg LD="${LD-ld} -m elf64ppc" 6245b789ec8aSmrg ;; 6246b789ec8aSmrg s390*-*linux*|s390*-*tpf*) 6247b789ec8aSmrg LD="${LD-ld} -m elf64_s390" 6248b789ec8aSmrg ;; 6249b789ec8aSmrg sparc*-*linux*) 6250b789ec8aSmrg LD="${LD-ld} -m elf64_sparc" 6251b789ec8aSmrg ;; 6252b789ec8aSmrg esac 6253b789ec8aSmrg ;; 6254b789ec8aSmrg esac 6255b789ec8aSmrg fi 6256b789ec8aSmrg rm -rf conftest* 6257b789ec8aSmrg ;; 6258b789ec8aSmrg 6259b789ec8aSmrg*-*-sco3.2v5*) 6260b789ec8aSmrg # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6261b789ec8aSmrg SAVE_CFLAGS="$CFLAGS" 6262b789ec8aSmrg CFLAGS="$CFLAGS -belf" 6263b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6264b789ec8aSmrg$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6265b789ec8aSmrgif ${lt_cv_cc_needs_belf+:} false; then : 62663e256790Smrg $as_echo_n "(cached) " >&6 62673e256790Smrgelse 6268b789ec8aSmrg ac_ext=c 6269b789ec8aSmrgac_cpp='$CPP $CPPFLAGS' 6270b789ec8aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6271b789ec8aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6272b789ec8aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 6273c27c18e8Smrg 6274b789ec8aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6275b789ec8aSmrg/* end confdefs.h. */ 6276c27c18e8Smrg 6277b789ec8aSmrgint 6278b789ec8aSmrgmain () 6279b789ec8aSmrg{ 6280c27c18e8Smrg 6281b789ec8aSmrg ; 6282b789ec8aSmrg return 0; 6283b789ec8aSmrg} 6284b789ec8aSmrg_ACEOF 6285b789ec8aSmrgif ac_fn_c_try_link "$LINENO"; then : 6286b789ec8aSmrg lt_cv_cc_needs_belf=yes 6287b789ec8aSmrgelse 6288b789ec8aSmrg lt_cv_cc_needs_belf=no 6289b789ec8aSmrgfi 6290b789ec8aSmrgrm -f core conftest.err conftest.$ac_objext \ 6291b789ec8aSmrg conftest$ac_exeext conftest.$ac_ext 6292b789ec8aSmrg ac_ext=c 6293b789ec8aSmrgac_cpp='$CPP $CPPFLAGS' 6294b789ec8aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6295b789ec8aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6296b789ec8aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 6297c27c18e8Smrg 6298b789ec8aSmrgfi 6299b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6300b789ec8aSmrg$as_echo "$lt_cv_cc_needs_belf" >&6; } 6301b789ec8aSmrg if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6302b789ec8aSmrg # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6303b789ec8aSmrg CFLAGS="$SAVE_CFLAGS" 6304b789ec8aSmrg fi 6305b789ec8aSmrg ;; 6306b789ec8aSmrgsparc*-*solaris*) 6307b789ec8aSmrg # Find out which ABI we are using. 6308b789ec8aSmrg echo 'int i;' > conftest.$ac_ext 6309b789ec8aSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6310b789ec8aSmrg (eval $ac_compile) 2>&5 6311b789ec8aSmrg ac_status=$? 6312b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6313b789ec8aSmrg test $ac_status = 0; }; then 6314b789ec8aSmrg case `/usr/bin/file conftest.o` in 6315b789ec8aSmrg *64-bit*) 6316b789ec8aSmrg case $lt_cv_prog_gnu_ld in 6317b789ec8aSmrg yes*) LD="${LD-ld} -m elf64_sparc" ;; 6318b789ec8aSmrg *) 6319b789ec8aSmrg if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6320b789ec8aSmrg LD="${LD-ld} -64" 6321b789ec8aSmrg fi 6322b789ec8aSmrg ;; 6323b789ec8aSmrg esac 6324b789ec8aSmrg ;; 6325b789ec8aSmrg esac 6326b789ec8aSmrg fi 6327b789ec8aSmrg rm -rf conftest* 6328b789ec8aSmrg ;; 6329b789ec8aSmrgesac 6330c27c18e8Smrg 6331b789ec8aSmrgneed_locks="$enable_libtool_lock" 6332c27c18e8Smrg 6333b789ec8aSmrgif test -n "$ac_tool_prefix"; then 6334b789ec8aSmrg # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6335b789ec8aSmrgset dummy ${ac_tool_prefix}mt; ac_word=$2 6336b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6337b789ec8aSmrg$as_echo_n "checking for $ac_word... " >&6; } 6338b789ec8aSmrgif ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6339b789ec8aSmrg $as_echo_n "(cached) " >&6 6340b789ec8aSmrgelse 6341b789ec8aSmrg if test -n "$MANIFEST_TOOL"; then 6342b789ec8aSmrg ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6343b789ec8aSmrgelse 6344b789ec8aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6345b789ec8aSmrgfor as_dir in $PATH 6346b789ec8aSmrgdo 6347b789ec8aSmrg IFS=$as_save_IFS 6348b789ec8aSmrg test -z "$as_dir" && as_dir=. 6349b789ec8aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6350b789ec8aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6351b789ec8aSmrg ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6352b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6353b789ec8aSmrg break 2 6354b789ec8aSmrg fi 6355b789ec8aSmrgdone 6356b789ec8aSmrg done 6357b789ec8aSmrgIFS=$as_save_IFS 6358c27c18e8Smrg 6359b789ec8aSmrgfi 6360b789ec8aSmrgfi 6361b789ec8aSmrgMANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6362b789ec8aSmrgif test -n "$MANIFEST_TOOL"; then 6363b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6364b789ec8aSmrg$as_echo "$MANIFEST_TOOL" >&6; } 6365b789ec8aSmrgelse 6366b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6367b789ec8aSmrg$as_echo "no" >&6; } 6368b789ec8aSmrgfi 6369c27c18e8Smrg 6370c27c18e8Smrg 6371b789ec8aSmrgfi 6372b789ec8aSmrgif test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6373b789ec8aSmrg ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6374b789ec8aSmrg # Extract the first word of "mt", so it can be a program name with args. 6375b789ec8aSmrgset dummy mt; ac_word=$2 6376b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6377b789ec8aSmrg$as_echo_n "checking for $ac_word... " >&6; } 6378b789ec8aSmrgif ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 63793e256790Smrg $as_echo_n "(cached) " >&6 63803e256790Smrgelse 6381b789ec8aSmrg if test -n "$ac_ct_MANIFEST_TOOL"; then 6382b789ec8aSmrg ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 63833e256790Smrgelse 6384b789ec8aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6385b789ec8aSmrgfor as_dir in $PATH 6386b789ec8aSmrgdo 6387b789ec8aSmrg IFS=$as_save_IFS 6388b789ec8aSmrg test -z "$as_dir" && as_dir=. 6389b789ec8aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6390b789ec8aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6391b789ec8aSmrg ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6392b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6393b789ec8aSmrg break 2 63943e256790Smrg fi 6395b789ec8aSmrgdone 63963e256790Smrg done 6397b789ec8aSmrgIFS=$as_save_IFS 6398b789ec8aSmrg 63993e256790Smrgfi 64003e256790Smrgfi 6401b789ec8aSmrgac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6402b789ec8aSmrgif test -n "$ac_ct_MANIFEST_TOOL"; then 6403b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6404b789ec8aSmrg$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 64053e256790Smrgelse 6406b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6407b789ec8aSmrg$as_echo "no" >&6; } 6408b789ec8aSmrgfi 6409b789ec8aSmrg 6410b789ec8aSmrg if test "x$ac_ct_MANIFEST_TOOL" = x; then 6411b789ec8aSmrg MANIFEST_TOOL=":" 641237eb1ca1Smrg else 6413b789ec8aSmrg case $cross_compiling:$ac_tool_warned in 6414b789ec8aSmrgyes:) 6415b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6416b789ec8aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6417b789ec8aSmrgac_tool_warned=yes ;; 6418b789ec8aSmrgesac 6419b789ec8aSmrg MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6420b789ec8aSmrg fi 6421b789ec8aSmrgelse 6422b789ec8aSmrg MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6423b789ec8aSmrgfi 6424b789ec8aSmrg 6425b789ec8aSmrgtest -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6426b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6427b789ec8aSmrg$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6428b789ec8aSmrgif ${lt_cv_path_mainfest_tool+:} false; then : 6429b789ec8aSmrg $as_echo_n "(cached) " >&6 6430b789ec8aSmrgelse 6431b789ec8aSmrg lt_cv_path_mainfest_tool=no 6432b789ec8aSmrg echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6433b789ec8aSmrg $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6434b789ec8aSmrg cat conftest.err >&5 6435b789ec8aSmrg if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6436b789ec8aSmrg lt_cv_path_mainfest_tool=yes 6437b789ec8aSmrg fi 6438b789ec8aSmrg rm -f conftest* 6439b789ec8aSmrgfi 6440b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6441b789ec8aSmrg$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6442b789ec8aSmrgif test "x$lt_cv_path_mainfest_tool" != xyes; then 6443b789ec8aSmrg MANIFEST_TOOL=: 6444b789ec8aSmrgfi 6445b789ec8aSmrg 6446b789ec8aSmrg 6447b789ec8aSmrg 6448b789ec8aSmrg 6449b789ec8aSmrg 6450b789ec8aSmrg 6451b789ec8aSmrg case $host_os in 6452b789ec8aSmrg rhapsody* | darwin*) 645337eb1ca1Smrg if test -n "$ac_tool_prefix"; then 6454b789ec8aSmrg # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6455b789ec8aSmrgset dummy ${ac_tool_prefix}dsymutil; ac_word=$2 64563e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64573e256790Smrg$as_echo_n "checking for $ac_word... " >&6; } 6458b789ec8aSmrgif ${ac_cv_prog_DSYMUTIL+:} false; then : 64593e256790Smrg $as_echo_n "(cached) " >&6 64603e256790Smrgelse 6461b789ec8aSmrg if test -n "$DSYMUTIL"; then 6462b789ec8aSmrg ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 64633e256790Smrgelse 64643e256790Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64653e256790Smrgfor as_dir in $PATH 64663e256790Smrgdo 64673e256790Smrg IFS=$as_save_IFS 64683e256790Smrg test -z "$as_dir" && as_dir=. 64693e256790Smrg for ac_exec_ext in '' $ac_executable_extensions; do 64703e256790Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6471b789ec8aSmrg ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 64723e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64733e256790Smrg break 2 6474c43cc173Smrg fi 6475c43cc173Smrgdone 64763e256790Smrg done 64773e256790SmrgIFS=$as_save_IFS 6478c43cc173Smrg 6479c43cc173Smrgfi 6480c43cc173Smrgfi 6481b789ec8aSmrgDSYMUTIL=$ac_cv_prog_DSYMUTIL 6482b789ec8aSmrgif test -n "$DSYMUTIL"; then 6483b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6484b789ec8aSmrg$as_echo "$DSYMUTIL" >&6; } 6485c43cc173Smrgelse 64863e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64873e256790Smrg$as_echo "no" >&6; } 6488c43cc173Smrgfi 6489c43cc173Smrg 6490c43cc173Smrg 64913e256790Smrgfi 6492b789ec8aSmrgif test -z "$ac_cv_prog_DSYMUTIL"; then 6493b789ec8aSmrg ac_ct_DSYMUTIL=$DSYMUTIL 6494b789ec8aSmrg # Extract the first word of "dsymutil", so it can be a program name with args. 6495b789ec8aSmrgset dummy dsymutil; ac_word=$2 64963e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64973e256790Smrg$as_echo_n "checking for $ac_word... " >&6; } 6498b789ec8aSmrgif ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 64993e256790Smrg $as_echo_n "(cached) " >&6 65003e256790Smrgelse 6501b789ec8aSmrg if test -n "$ac_ct_DSYMUTIL"; then 6502b789ec8aSmrg ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 65033e256790Smrgelse 65043e256790Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65053e256790Smrgfor as_dir in $PATH 65063e256790Smrgdo 65073e256790Smrg IFS=$as_save_IFS 65083e256790Smrg test -z "$as_dir" && as_dir=. 65093e256790Smrg for ac_exec_ext in '' $ac_executable_extensions; do 65103e256790Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6511b789ec8aSmrg ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 65123e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65133e256790Smrg break 2 65143e256790Smrg fi 65153e256790Smrgdone 65163e256790Smrg done 65173e256790SmrgIFS=$as_save_IFS 6518c43cc173Smrg 65193e256790Smrgfi 65203e256790Smrgfi 6521b789ec8aSmrgac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6522b789ec8aSmrgif test -n "$ac_ct_DSYMUTIL"; then 6523b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6524b789ec8aSmrg$as_echo "$ac_ct_DSYMUTIL" >&6; } 65253e256790Smrgelse 65263e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65273e256790Smrg$as_echo "no" >&6; } 65283e256790Smrgfi 6529c43cc173Smrg 6530b789ec8aSmrg if test "x$ac_ct_DSYMUTIL" = x; then 6531b789ec8aSmrg DSYMUTIL=":" 65323e256790Smrg else 65333e256790Smrg case $cross_compiling:$ac_tool_warned in 65343e256790Smrgyes:) 65353e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 65363e256790Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 65373e256790Smrgac_tool_warned=yes ;; 65383e256790Smrgesac 6539b789ec8aSmrg DSYMUTIL=$ac_ct_DSYMUTIL 65403e256790Smrg fi 6541b789ec8aSmrgelse 6542b789ec8aSmrg DSYMUTIL="$ac_cv_prog_DSYMUTIL" 65433e256790Smrgfi 6544c27c18e8Smrg 6545b789ec8aSmrg if test -n "$ac_tool_prefix"; then 6546b789ec8aSmrg # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6547b789ec8aSmrgset dummy ${ac_tool_prefix}nmedit; ac_word=$2 6548b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6549b789ec8aSmrg$as_echo_n "checking for $ac_word... " >&6; } 6550b789ec8aSmrgif ${ac_cv_prog_NMEDIT+:} false; then : 6551b789ec8aSmrg $as_echo_n "(cached) " >&6 6552b789ec8aSmrgelse 6553b789ec8aSmrg if test -n "$NMEDIT"; then 6554b789ec8aSmrg ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6555b789ec8aSmrgelse 6556b789ec8aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6557b789ec8aSmrgfor as_dir in $PATH 6558b789ec8aSmrgdo 6559b789ec8aSmrg IFS=$as_save_IFS 6560b789ec8aSmrg test -z "$as_dir" && as_dir=. 6561b789ec8aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6562b789ec8aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6563b789ec8aSmrg ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6564b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6565b789ec8aSmrg break 2 656637eb1ca1Smrg fi 6567b789ec8aSmrgdone 6568b789ec8aSmrg done 6569b789ec8aSmrgIFS=$as_save_IFS 6570c27c18e8Smrg 65713e256790Smrgfi 6572b789ec8aSmrgfi 6573b789ec8aSmrgNMEDIT=$ac_cv_prog_NMEDIT 6574b789ec8aSmrgif test -n "$NMEDIT"; then 6575b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6576b789ec8aSmrg$as_echo "$NMEDIT" >&6; } 6577b789ec8aSmrgelse 6578b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6579b789ec8aSmrg$as_echo "no" >&6; } 6580b789ec8aSmrgfi 6581c27c18e8Smrg 6582c27c18e8Smrg 6583b789ec8aSmrgfi 6584b789ec8aSmrgif test -z "$ac_cv_prog_NMEDIT"; then 6585b789ec8aSmrg ac_ct_NMEDIT=$NMEDIT 6586b789ec8aSmrg # Extract the first word of "nmedit", so it can be a program name with args. 6587b789ec8aSmrgset dummy nmedit; ac_word=$2 6588b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6589b789ec8aSmrg$as_echo_n "checking for $ac_word... " >&6; } 6590b789ec8aSmrgif ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 65913e256790Smrg $as_echo_n "(cached) " >&6 65923e256790Smrgelse 6593b789ec8aSmrg if test -n "$ac_ct_NMEDIT"; then 6594b789ec8aSmrg ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6595b789ec8aSmrgelse 6596b789ec8aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6597b789ec8aSmrgfor as_dir in $PATH 6598b789ec8aSmrgdo 6599b789ec8aSmrg IFS=$as_save_IFS 6600b789ec8aSmrg test -z "$as_dir" && as_dir=. 6601b789ec8aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6602b789ec8aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6603b789ec8aSmrg ac_cv_prog_ac_ct_NMEDIT="nmedit" 6604b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6605b789ec8aSmrg break 2 66063e256790Smrg fi 6607b789ec8aSmrgdone 6608b789ec8aSmrg done 6609b789ec8aSmrgIFS=$as_save_IFS 6610c27c18e8Smrg 66113e256790Smrgfi 6612b789ec8aSmrgfi 6613b789ec8aSmrgac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6614b789ec8aSmrgif test -n "$ac_ct_NMEDIT"; then 6615b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6616b789ec8aSmrg$as_echo "$ac_ct_NMEDIT" >&6; } 66173e256790Smrgelse 6618b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6619b789ec8aSmrg$as_echo "no" >&6; } 6620b789ec8aSmrgfi 6621c27c18e8Smrg 6622b789ec8aSmrg if test "x$ac_ct_NMEDIT" = x; then 6623b789ec8aSmrg NMEDIT=":" 6624b789ec8aSmrg else 6625b789ec8aSmrg case $cross_compiling:$ac_tool_warned in 6626b789ec8aSmrgyes:) 6627b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6628b789ec8aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6629b789ec8aSmrgac_tool_warned=yes ;; 6630c27c18e8Smrgesac 6631b789ec8aSmrg NMEDIT=$ac_ct_NMEDIT 6632b789ec8aSmrg fi 6633c43cc173Smrgelse 6634b789ec8aSmrg NMEDIT="$ac_cv_prog_NMEDIT" 6635c27c18e8Smrgfi 66363e256790Smrg 6637b789ec8aSmrg if test -n "$ac_tool_prefix"; then 6638b789ec8aSmrg # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6639b789ec8aSmrgset dummy ${ac_tool_prefix}lipo; ac_word=$2 66403e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6641c27c18e8Smrg$as_echo_n "checking for $ac_word... " >&6; } 6642b789ec8aSmrgif ${ac_cv_prog_LIPO+:} false; then : 6643c27c18e8Smrg $as_echo_n "(cached) " >&6 6644c27c18e8Smrgelse 6645b789ec8aSmrg if test -n "$LIPO"; then 6646b789ec8aSmrg ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6647c27c18e8Smrgelse 6648c27c18e8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6649c27c18e8Smrgfor as_dir in $PATH 6650c27c18e8Smrgdo 6651c27c18e8Smrg IFS=$as_save_IFS 6652c27c18e8Smrg test -z "$as_dir" && as_dir=. 66533e256790Smrg for ac_exec_ext in '' $ac_executable_extensions; do 6654c27c18e8Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6655b789ec8aSmrg ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 66563e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6657c27c18e8Smrg break 2 6658c27c18e8Smrg fi 6659c27c18e8Smrgdone 66603e256790Smrg done 6661c27c18e8SmrgIFS=$as_save_IFS 6662c43cc173Smrg 6663c27c18e8Smrgfi 6664c27c18e8Smrgfi 6665b789ec8aSmrgLIPO=$ac_cv_prog_LIPO 6666b789ec8aSmrgif test -n "$LIPO"; then 6667b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6668b789ec8aSmrg$as_echo "$LIPO" >&6; } 6669c27c18e8Smrgelse 66703e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6671c27c18e8Smrg$as_echo "no" >&6; } 6672c27c18e8Smrgfi 6673c43cc173Smrg 667421e67964Smrg 6675c27c18e8Smrgfi 6676b789ec8aSmrgif test -z "$ac_cv_prog_LIPO"; then 6677b789ec8aSmrg ac_ct_LIPO=$LIPO 6678b789ec8aSmrg # Extract the first word of "lipo", so it can be a program name with args. 6679b789ec8aSmrgset dummy lipo; ac_word=$2 66803e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6681c27c18e8Smrg$as_echo_n "checking for $ac_word... " >&6; } 6682b789ec8aSmrgif ${ac_cv_prog_ac_ct_LIPO+:} false; then : 668321e67964Smrg $as_echo_n "(cached) " >&6 6684c43cc173Smrgelse 6685b789ec8aSmrg if test -n "$ac_ct_LIPO"; then 6686b789ec8aSmrg ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6687c27c18e8Smrgelse 6688c27c18e8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6689c27c18e8Smrgfor as_dir in $PATH 6690c27c18e8Smrgdo 6691c27c18e8Smrg IFS=$as_save_IFS 6692c27c18e8Smrg test -z "$as_dir" && as_dir=. 66933e256790Smrg for ac_exec_ext in '' $ac_executable_extensions; do 6694c27c18e8Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6695b789ec8aSmrg ac_cv_prog_ac_ct_LIPO="lipo" 66963e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6697c27c18e8Smrg break 2 6698c27c18e8Smrg fi 6699c27c18e8Smrgdone 67003e256790Smrg done 6701c27c18e8SmrgIFS=$as_save_IFS 6702c43cc173Smrg 6703c27c18e8Smrgfi 6704c27c18e8Smrgfi 6705b789ec8aSmrgac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6706b789ec8aSmrgif test -n "$ac_ct_LIPO"; then 6707b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6708b789ec8aSmrg$as_echo "$ac_ct_LIPO" >&6; } 6709c27c18e8Smrgelse 67103e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6711c27c18e8Smrg$as_echo "no" >&6; } 6712c27c18e8Smrgfi 6713c43cc173Smrg 6714b789ec8aSmrg if test "x$ac_ct_LIPO" = x; then 6715b789ec8aSmrg LIPO=":" 6716c27c18e8Smrg else 6717c27c18e8Smrg case $cross_compiling:$ac_tool_warned in 6718c27c18e8Smrgyes:) 67193e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6720c27c18e8Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6721c27c18e8Smrgac_tool_warned=yes ;; 6722c27c18e8Smrgesac 6723b789ec8aSmrg LIPO=$ac_ct_LIPO 6724c27c18e8Smrg fi 6725c27c18e8Smrgelse 6726b789ec8aSmrg LIPO="$ac_cv_prog_LIPO" 6727c27c18e8Smrgfi 6728c43cc173Smrg 6729b789ec8aSmrg if test -n "$ac_tool_prefix"; then 6730b789ec8aSmrg # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6731b789ec8aSmrgset dummy ${ac_tool_prefix}otool; ac_word=$2 6732b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6733b789ec8aSmrg$as_echo_n "checking for $ac_word... " >&6; } 6734b789ec8aSmrgif ${ac_cv_prog_OTOOL+:} false; then : 6735b789ec8aSmrg $as_echo_n "(cached) " >&6 6736b789ec8aSmrgelse 6737b789ec8aSmrg if test -n "$OTOOL"; then 6738b789ec8aSmrg ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6739b789ec8aSmrgelse 6740b789ec8aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6741b789ec8aSmrgfor as_dir in $PATH 6742b789ec8aSmrgdo 6743b789ec8aSmrg IFS=$as_save_IFS 6744b789ec8aSmrg test -z "$as_dir" && as_dir=. 6745b789ec8aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6746b789ec8aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6747b789ec8aSmrg ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6748b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6749b789ec8aSmrg break 2 6750b789ec8aSmrg fi 6751b789ec8aSmrgdone 6752b789ec8aSmrg done 6753b789ec8aSmrgIFS=$as_save_IFS 6754c43cc173Smrg 6755b789ec8aSmrgfi 6756b789ec8aSmrgfi 6757b789ec8aSmrgOTOOL=$ac_cv_prog_OTOOL 6758b789ec8aSmrgif test -n "$OTOOL"; then 6759b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6760b789ec8aSmrg$as_echo "$OTOOL" >&6; } 6761b789ec8aSmrgelse 6762b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6763b789ec8aSmrg$as_echo "no" >&6; } 6764b789ec8aSmrgfi 6765c43cc173Smrg 6766c43cc173Smrg 6767b789ec8aSmrgfi 6768b789ec8aSmrgif test -z "$ac_cv_prog_OTOOL"; then 6769b789ec8aSmrg ac_ct_OTOOL=$OTOOL 6770b789ec8aSmrg # Extract the first word of "otool", so it can be a program name with args. 6771b789ec8aSmrgset dummy otool; ac_word=$2 6772b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6773b789ec8aSmrg$as_echo_n "checking for $ac_word... " >&6; } 6774b789ec8aSmrgif ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6775b789ec8aSmrg $as_echo_n "(cached) " >&6 6776b789ec8aSmrgelse 6777b789ec8aSmrg if test -n "$ac_ct_OTOOL"; then 6778b789ec8aSmrg ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6779b789ec8aSmrgelse 6780b789ec8aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6781b789ec8aSmrgfor as_dir in $PATH 6782b789ec8aSmrgdo 6783b789ec8aSmrg IFS=$as_save_IFS 6784b789ec8aSmrg test -z "$as_dir" && as_dir=. 6785b789ec8aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6786b789ec8aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6787b789ec8aSmrg ac_cv_prog_ac_ct_OTOOL="otool" 6788b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6789b789ec8aSmrg break 2 6790b789ec8aSmrg fi 6791b789ec8aSmrgdone 6792b789ec8aSmrg done 6793b789ec8aSmrgIFS=$as_save_IFS 6794c43cc173Smrg 6795b789ec8aSmrgfi 6796b789ec8aSmrgfi 6797b789ec8aSmrgac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6798b789ec8aSmrgif test -n "$ac_ct_OTOOL"; then 6799b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6800b789ec8aSmrg$as_echo "$ac_ct_OTOOL" >&6; } 6801b789ec8aSmrgelse 6802b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6803b789ec8aSmrg$as_echo "no" >&6; } 6804b789ec8aSmrgfi 6805c43cc173Smrg 6806b789ec8aSmrg if test "x$ac_ct_OTOOL" = x; then 6807b789ec8aSmrg OTOOL=":" 6808b789ec8aSmrg else 6809b789ec8aSmrg case $cross_compiling:$ac_tool_warned in 6810b789ec8aSmrgyes:) 6811b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6812b789ec8aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6813b789ec8aSmrgac_tool_warned=yes ;; 6814b789ec8aSmrgesac 6815b789ec8aSmrg OTOOL=$ac_ct_OTOOL 6816b789ec8aSmrg fi 6817b789ec8aSmrgelse 6818b789ec8aSmrg OTOOL="$ac_cv_prog_OTOOL" 6819b789ec8aSmrgfi 6820c43cc173Smrg 6821b789ec8aSmrg if test -n "$ac_tool_prefix"; then 6822b789ec8aSmrg # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6823b789ec8aSmrgset dummy ${ac_tool_prefix}otool64; ac_word=$2 6824b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6825b789ec8aSmrg$as_echo_n "checking for $ac_word... " >&6; } 6826b789ec8aSmrgif ${ac_cv_prog_OTOOL64+:} false; then : 6827b789ec8aSmrg $as_echo_n "(cached) " >&6 6828b789ec8aSmrgelse 6829b789ec8aSmrg if test -n "$OTOOL64"; then 6830b789ec8aSmrg ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6831b789ec8aSmrgelse 6832b789ec8aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6833b789ec8aSmrgfor as_dir in $PATH 6834b789ec8aSmrgdo 6835b789ec8aSmrg IFS=$as_save_IFS 6836b789ec8aSmrg test -z "$as_dir" && as_dir=. 6837b789ec8aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6838b789ec8aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6839b789ec8aSmrg ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6840b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6841b789ec8aSmrg break 2 6842b789ec8aSmrg fi 6843b789ec8aSmrgdone 6844b789ec8aSmrg done 6845b789ec8aSmrgIFS=$as_save_IFS 6846c43cc173Smrg 6847b789ec8aSmrgfi 6848b789ec8aSmrgfi 6849b789ec8aSmrgOTOOL64=$ac_cv_prog_OTOOL64 6850b789ec8aSmrgif test -n "$OTOOL64"; then 6851b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6852b789ec8aSmrg$as_echo "$OTOOL64" >&6; } 6853b789ec8aSmrgelse 6854b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6855b789ec8aSmrg$as_echo "no" >&6; } 6856b789ec8aSmrgfi 6857c43cc173Smrg 6858c43cc173Smrg 6859b789ec8aSmrgfi 6860b789ec8aSmrgif test -z "$ac_cv_prog_OTOOL64"; then 6861b789ec8aSmrg ac_ct_OTOOL64=$OTOOL64 6862b789ec8aSmrg # Extract the first word of "otool64", so it can be a program name with args. 6863b789ec8aSmrgset dummy otool64; ac_word=$2 6864b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6865b789ec8aSmrg$as_echo_n "checking for $ac_word... " >&6; } 6866b789ec8aSmrgif ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 686721e67964Smrg $as_echo_n "(cached) " >&6 6868c43cc173Smrgelse 6869b789ec8aSmrg if test -n "$ac_ct_OTOOL64"; then 6870b789ec8aSmrg ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6871b789ec8aSmrgelse 6872b789ec8aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6873b789ec8aSmrgfor as_dir in $PATH 6874b789ec8aSmrgdo 6875b789ec8aSmrg IFS=$as_save_IFS 6876b789ec8aSmrg test -z "$as_dir" && as_dir=. 6877b789ec8aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6878b789ec8aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6879b789ec8aSmrg ac_cv_prog_ac_ct_OTOOL64="otool64" 6880b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6881b789ec8aSmrg break 2 6882b789ec8aSmrg fi 6883b789ec8aSmrgdone 6884b789ec8aSmrg done 6885b789ec8aSmrgIFS=$as_save_IFS 6886c43cc173Smrg 6887b789ec8aSmrgfi 6888b789ec8aSmrgfi 6889b789ec8aSmrgac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6890b789ec8aSmrgif test -n "$ac_ct_OTOOL64"; then 6891b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6892b789ec8aSmrg$as_echo "$ac_ct_OTOOL64" >&6; } 6893b789ec8aSmrgelse 6894b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6895b789ec8aSmrg$as_echo "no" >&6; } 6896b789ec8aSmrgfi 6897c43cc173Smrg 6898b789ec8aSmrg if test "x$ac_ct_OTOOL64" = x; then 6899b789ec8aSmrg OTOOL64=":" 6900b789ec8aSmrg else 6901b789ec8aSmrg case $cross_compiling:$ac_tool_warned in 6902b789ec8aSmrgyes:) 6903b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6904b789ec8aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6905b789ec8aSmrgac_tool_warned=yes ;; 6906b789ec8aSmrgesac 6907b789ec8aSmrg OTOOL64=$ac_ct_OTOOL64 6908b789ec8aSmrg fi 6909b789ec8aSmrgelse 6910b789ec8aSmrg OTOOL64="$ac_cv_prog_OTOOL64" 6911b789ec8aSmrgfi 69123e256790Smrg 69133e256790Smrg 69143e256790Smrg 69153e256790Smrg 69163e256790Smrg 69173e256790Smrg 69183e256790Smrg 69193e256790Smrg 69203e256790Smrg 69213e256790Smrg 69223e256790Smrg 69233e256790Smrg 69243e256790Smrg 69253e256790Smrg 69263e256790Smrg 6927c43cc173Smrg 69283e256790Smrg 69293e256790Smrg 69303e256790Smrg 69313e256790Smrg 69323e256790Smrg 69333e256790Smrg 69343e256790Smrg 69353e256790Smrg 69363e256790Smrg 69373e256790Smrg 69383e256790Smrg 6939b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6940b789ec8aSmrg$as_echo_n "checking for -single_module linker flag... " >&6; } 6941b789ec8aSmrgif ${lt_cv_apple_cc_single_mod+:} false; then : 694221e67964Smrg $as_echo_n "(cached) " >&6 6943c43cc173Smrgelse 6944b789ec8aSmrg lt_cv_apple_cc_single_mod=no 6945b789ec8aSmrg if test -z "${LT_MULTI_MODULE}"; then 6946b789ec8aSmrg # By default we will add the -single_module flag. You can override 6947b789ec8aSmrg # by either setting the environment variable LT_MULTI_MODULE 6948b789ec8aSmrg # non-empty at configure time, or by adding -multi_module to the 6949b789ec8aSmrg # link flags. 6950b789ec8aSmrg rm -rf libconftest.dylib* 6951b789ec8aSmrg echo "int foo(void){return 1;}" > conftest.c 6952b789ec8aSmrg echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6953b789ec8aSmrg-dynamiclib -Wl,-single_module conftest.c" >&5 6954b789ec8aSmrg $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6955b789ec8aSmrg -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6956b789ec8aSmrg _lt_result=$? 6957b789ec8aSmrg if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6958b789ec8aSmrg lt_cv_apple_cc_single_mod=yes 6959b789ec8aSmrg else 6960b789ec8aSmrg cat conftest.err >&5 6961b789ec8aSmrg fi 6962b789ec8aSmrg rm -rf libconftest.dylib* 6963b789ec8aSmrg rm -f conftest.* 6964b789ec8aSmrg fi 6965b789ec8aSmrgfi 6966b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6967b789ec8aSmrg$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6968b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6969b789ec8aSmrg$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6970b789ec8aSmrgif ${lt_cv_ld_exported_symbols_list+:} false; then : 6971b789ec8aSmrg $as_echo_n "(cached) " >&6 6972c43cc173Smrgelse 6973b789ec8aSmrg lt_cv_ld_exported_symbols_list=no 6974b789ec8aSmrg save_LDFLAGS=$LDFLAGS 6975b789ec8aSmrg echo "_main" > conftest.sym 6976b789ec8aSmrg LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6977b789ec8aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6978b789ec8aSmrg/* end confdefs.h. */ 6979c43cc173Smrg 6980b789ec8aSmrgint 6981b789ec8aSmrgmain () 6982b789ec8aSmrg{ 6983b789ec8aSmrg 6984b789ec8aSmrg ; 6985b789ec8aSmrg return 0; 6986b789ec8aSmrg} 6987b789ec8aSmrg_ACEOF 6988b789ec8aSmrgif ac_fn_c_try_link "$LINENO"; then : 6989b789ec8aSmrg lt_cv_ld_exported_symbols_list=yes 6990c43cc173Smrgelse 6991b789ec8aSmrg lt_cv_ld_exported_symbols_list=no 6992c43cc173Smrgfi 6993b789ec8aSmrgrm -f core conftest.err conftest.$ac_objext \ 6994b789ec8aSmrg conftest$ac_exeext conftest.$ac_ext 6995b789ec8aSmrg LDFLAGS="$save_LDFLAGS" 6996c43cc173Smrg 6997c43cc173Smrgfi 6998b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6999b789ec8aSmrg$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7000b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7001b789ec8aSmrg$as_echo_n "checking for -force_load linker flag... " >&6; } 7002b789ec8aSmrgif ${lt_cv_ld_force_load+:} false; then : 700321e67964Smrg $as_echo_n "(cached) " >&6 7004c43cc173Smrgelse 7005b789ec8aSmrg lt_cv_ld_force_load=no 7006b789ec8aSmrg cat > conftest.c << _LT_EOF 7007b789ec8aSmrgint forced_loaded() { return 2;} 7008b789ec8aSmrg_LT_EOF 7009b789ec8aSmrg echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7010b789ec8aSmrg $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7011b789ec8aSmrg echo "$AR cru libconftest.a conftest.o" >&5 7012b789ec8aSmrg $AR cru libconftest.a conftest.o 2>&5 7013b789ec8aSmrg echo "$RANLIB libconftest.a" >&5 7014b789ec8aSmrg $RANLIB libconftest.a 2>&5 7015b789ec8aSmrg cat > conftest.c << _LT_EOF 7016b789ec8aSmrgint main() { return 0;} 7017b789ec8aSmrg_LT_EOF 7018b789ec8aSmrg echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7019b789ec8aSmrg $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7020b789ec8aSmrg _lt_result=$? 7021b789ec8aSmrg if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7022b789ec8aSmrg lt_cv_ld_force_load=yes 7023b789ec8aSmrg else 7024b789ec8aSmrg cat conftest.err >&5 7025b789ec8aSmrg fi 7026b789ec8aSmrg rm -f conftest.err libconftest.a conftest conftest.c 7027b789ec8aSmrg rm -rf conftest.dSYM 7028c43cc173Smrg 7029c43cc173Smrgfi 7030b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7031b789ec8aSmrg$as_echo "$lt_cv_ld_force_load" >&6; } 7032b789ec8aSmrg case $host_os in 7033b789ec8aSmrg rhapsody* | darwin1.[012]) 7034b789ec8aSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7035b789ec8aSmrg darwin1.*) 7036b789ec8aSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7037b789ec8aSmrg darwin*) # darwin 5.x on 7038b789ec8aSmrg # if running on 10.5 or later, the deployment target defaults 7039b789ec8aSmrg # to the OS version, if on x86, and 10.4, the deployment 7040b789ec8aSmrg # target defaults to 10.4. Don't you love it? 7041b789ec8aSmrg case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7042b789ec8aSmrg 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7043b789ec8aSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7044b789ec8aSmrg 10.[012]*) 7045b789ec8aSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7046b789ec8aSmrg 10.*) 7047b789ec8aSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7048b789ec8aSmrg esac 7049b789ec8aSmrg ;; 7050b789ec8aSmrg esac 7051b789ec8aSmrg if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7052b789ec8aSmrg _lt_dar_single_mod='$single_module' 7053b789ec8aSmrg fi 7054b789ec8aSmrg if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7055b789ec8aSmrg _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7056b789ec8aSmrg else 7057b789ec8aSmrg _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7058b789ec8aSmrg fi 7059b789ec8aSmrg if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7060b789ec8aSmrg _lt_dsymutil='~$DSYMUTIL $lib || :' 7061b789ec8aSmrg else 7062b789ec8aSmrg _lt_dsymutil= 7063b789ec8aSmrg fi 7064b789ec8aSmrg ;; 7065b789ec8aSmrg esac 7066c43cc173Smrg 7067b789ec8aSmrgac_ext=c 7068b789ec8aSmrgac_cpp='$CPP $CPPFLAGS' 7069b789ec8aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7070b789ec8aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7071b789ec8aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 7072b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7073b789ec8aSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 7074b789ec8aSmrg# On Suns, sometimes $CPP names a directory. 7075b789ec8aSmrgif test -n "$CPP" && test -d "$CPP"; then 7076b789ec8aSmrg CPP= 7077b789ec8aSmrgfi 7078b789ec8aSmrgif test -z "$CPP"; then 7079b789ec8aSmrg if ${ac_cv_prog_CPP+:} false; then : 70803e256790Smrg $as_echo_n "(cached) " >&6 70813e256790Smrgelse 7082b789ec8aSmrg # Double quotes because CPP needs to be expanded 7083b789ec8aSmrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7084b789ec8aSmrg do 7085b789ec8aSmrg ac_preproc_ok=false 7086b789ec8aSmrgfor ac_c_preproc_warn_flag in '' yes 70873e256790Smrgdo 7088b789ec8aSmrg # Use a header file that comes with gcc, so configuring glibc 7089b789ec8aSmrg # with a fresh cross-compiler works. 7090b789ec8aSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7091b789ec8aSmrg # <limits.h> exists even on freestanding compilers. 7092b789ec8aSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 7093b789ec8aSmrg # not just through cpp. "Syntax error" is here to catch this case. 7094b789ec8aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7095b789ec8aSmrg/* end confdefs.h. */ 7096b789ec8aSmrg#ifdef __STDC__ 7097b789ec8aSmrg# include <limits.h> 7098b789ec8aSmrg#else 7099b789ec8aSmrg# include <assert.h> 7100b789ec8aSmrg#endif 7101b789ec8aSmrg Syntax error 7102b789ec8aSmrg_ACEOF 7103b789ec8aSmrgif ac_fn_c_try_cpp "$LINENO"; then : 7104c43cc173Smrg 7105b789ec8aSmrgelse 7106b789ec8aSmrg # Broken: fails on valid input. 7107b789ec8aSmrgcontinue 71083e256790Smrgfi 7109b789ec8aSmrgrm -f conftest.err conftest.i conftest.$ac_ext 7110b789ec8aSmrg 7111b789ec8aSmrg # OK, works on sane cases. Now check whether nonexistent headers 7112b789ec8aSmrg # can be detected and how. 7113b789ec8aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7114b789ec8aSmrg/* end confdefs.h. */ 7115b789ec8aSmrg#include <ac_nonexistent.h> 7116b789ec8aSmrg_ACEOF 7117b789ec8aSmrgif ac_fn_c_try_cpp "$LINENO"; then : 7118b789ec8aSmrg # Broken: success on invalid input. 7119b789ec8aSmrgcontinue 71203e256790Smrgelse 7121b789ec8aSmrg # Passes both tests. 7122b789ec8aSmrgac_preproc_ok=: 7123b789ec8aSmrgbreak 7124b789ec8aSmrgfi 7125b789ec8aSmrgrm -f conftest.err conftest.i conftest.$ac_ext 7126b789ec8aSmrg 7127b789ec8aSmrgdone 7128b789ec8aSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7129b789ec8aSmrgrm -f conftest.i conftest.err conftest.$ac_ext 7130b789ec8aSmrgif $ac_preproc_ok; then : 7131b789ec8aSmrg break 71323e256790Smrgfi 7133c43cc173Smrg 7134b789ec8aSmrg done 7135b789ec8aSmrg ac_cv_prog_CPP=$CPP 7136c43cc173Smrg 71373e256790Smrgfi 7138b789ec8aSmrg CPP=$ac_cv_prog_CPP 71393e256790Smrgelse 7140b789ec8aSmrg ac_cv_prog_CPP=$CPP 7141b789ec8aSmrgfi 7142b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7143b789ec8aSmrg$as_echo "$CPP" >&6; } 7144b789ec8aSmrgac_preproc_ok=false 7145b789ec8aSmrgfor ac_c_preproc_warn_flag in '' yes 71463e256790Smrgdo 7147b789ec8aSmrg # Use a header file that comes with gcc, so configuring glibc 7148b789ec8aSmrg # with a fresh cross-compiler works. 7149b789ec8aSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7150b789ec8aSmrg # <limits.h> exists even on freestanding compilers. 7151b789ec8aSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 7152b789ec8aSmrg # not just through cpp. "Syntax error" is here to catch this case. 7153b789ec8aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7154b789ec8aSmrg/* end confdefs.h. */ 7155b789ec8aSmrg#ifdef __STDC__ 7156b789ec8aSmrg# include <limits.h> 7157b789ec8aSmrg#else 7158b789ec8aSmrg# include <assert.h> 7159b789ec8aSmrg#endif 7160b789ec8aSmrg Syntax error 7161b789ec8aSmrg_ACEOF 7162b789ec8aSmrgif ac_fn_c_try_cpp "$LINENO"; then : 7163c43cc173Smrg 71643e256790Smrgelse 7165b789ec8aSmrg # Broken: fails on valid input. 7166b789ec8aSmrgcontinue 71673e256790Smrgfi 7168b789ec8aSmrgrm -f conftest.err conftest.i conftest.$ac_ext 7169c43cc173Smrg 7170b789ec8aSmrg # OK, works on sane cases. Now check whether nonexistent headers 7171b789ec8aSmrg # can be detected and how. 7172b789ec8aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7173b789ec8aSmrg/* end confdefs.h. */ 7174b789ec8aSmrg#include <ac_nonexistent.h> 7175b789ec8aSmrg_ACEOF 7176b789ec8aSmrgif ac_fn_c_try_cpp "$LINENO"; then : 7177b789ec8aSmrg # Broken: success on invalid input. 7178b789ec8aSmrgcontinue 71793e256790Smrgelse 7180b789ec8aSmrg # Passes both tests. 7181b789ec8aSmrgac_preproc_ok=: 7182b789ec8aSmrgbreak 71833e256790Smrgfi 7184b789ec8aSmrgrm -f conftest.err conftest.i conftest.$ac_ext 718521e67964Smrg 7186b789ec8aSmrgdone 7187b789ec8aSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7188b789ec8aSmrgrm -f conftest.i conftest.err conftest.$ac_ext 7189b789ec8aSmrgif $ac_preproc_ok; then : 719021e67964Smrg 7191b789ec8aSmrgelse 7192b789ec8aSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7193b789ec8aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7194b789ec8aSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7195b789ec8aSmrgSee \`config.log' for more details" "$LINENO" 5; } 7196b789ec8aSmrgfi 719721e67964Smrg 7198b789ec8aSmrgac_ext=c 7199b789ec8aSmrgac_cpp='$CPP $CPPFLAGS' 7200b789ec8aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7201b789ec8aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7202b789ec8aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 720321e67964Smrg 720421e67964Smrg 7205b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7206b789ec8aSmrg$as_echo_n "checking for ANSI C header files... " >&6; } 7207b789ec8aSmrgif ${ac_cv_header_stdc+:} false; then : 72083e256790Smrg $as_echo_n "(cached) " >&6 72093e256790Smrgelse 7210b789ec8aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7211b789ec8aSmrg/* end confdefs.h. */ 7212b789ec8aSmrg#include <stdlib.h> 7213b789ec8aSmrg#include <stdarg.h> 7214b789ec8aSmrg#include <string.h> 7215b789ec8aSmrg#include <float.h> 721621e67964Smrg 7217b789ec8aSmrgint 7218b789ec8aSmrgmain () 7219b789ec8aSmrg{ 7220b789ec8aSmrg 7221b789ec8aSmrg ; 7222b789ec8aSmrg return 0; 7223b789ec8aSmrg} 7224b789ec8aSmrg_ACEOF 7225b789ec8aSmrgif ac_fn_c_try_compile "$LINENO"; then : 7226b789ec8aSmrg ac_cv_header_stdc=yes 72273e256790Smrgelse 7228b789ec8aSmrg ac_cv_header_stdc=no 72293e256790Smrgfi 7230b789ec8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 723121e67964Smrg 7232b789ec8aSmrgif test $ac_cv_header_stdc = yes; then 7233b789ec8aSmrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7234b789ec8aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7235b789ec8aSmrg/* end confdefs.h. */ 7236b789ec8aSmrg#include <string.h> 723721e67964Smrg 7238b789ec8aSmrg_ACEOF 7239b789ec8aSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7240b789ec8aSmrg $EGREP "memchr" >/dev/null 2>&1; then : 724121e67964Smrg 72423e256790Smrgelse 7243b789ec8aSmrg ac_cv_header_stdc=no 72443e256790Smrgfi 7245b789ec8aSmrgrm -f conftest* 724621e67964Smrg 724721e67964Smrgfi 724821e67964Smrg 7249b789ec8aSmrgif test $ac_cv_header_stdc = yes; then 7250b789ec8aSmrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7251b789ec8aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7252b789ec8aSmrg/* end confdefs.h. */ 7253b789ec8aSmrg#include <stdlib.h> 725421e67964Smrg 7255b789ec8aSmrg_ACEOF 7256b789ec8aSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7257b789ec8aSmrg $EGREP "free" >/dev/null 2>&1; then : 72583e256790Smrg 7259b789ec8aSmrgelse 7260b789ec8aSmrg ac_cv_header_stdc=no 7261b789ec8aSmrgfi 7262b789ec8aSmrgrm -f conftest* 72633e256790Smrg 7264b789ec8aSmrgfi 72653e256790Smrg 7266b789ec8aSmrgif test $ac_cv_header_stdc = yes; then 7267b789ec8aSmrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7268b789ec8aSmrg if test "$cross_compiling" = yes; then : 7269b789ec8aSmrg : 7270b789ec8aSmrgelse 7271b789ec8aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7272b789ec8aSmrg/* end confdefs.h. */ 7273b789ec8aSmrg#include <ctype.h> 7274b789ec8aSmrg#include <stdlib.h> 7275b789ec8aSmrg#if ((' ' & 0x0FF) == 0x020) 7276b789ec8aSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7277b789ec8aSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7278b789ec8aSmrg#else 7279b789ec8aSmrg# define ISLOWER(c) \ 7280b789ec8aSmrg (('a' <= (c) && (c) <= 'i') \ 7281b789ec8aSmrg || ('j' <= (c) && (c) <= 'r') \ 7282b789ec8aSmrg || ('s' <= (c) && (c) <= 'z')) 7283b789ec8aSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7284b789ec8aSmrg#endif 72853e256790Smrg 7286b789ec8aSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7287b789ec8aSmrgint 7288b789ec8aSmrgmain () 7289b789ec8aSmrg{ 7290b789ec8aSmrg int i; 7291b789ec8aSmrg for (i = 0; i < 256; i++) 7292b789ec8aSmrg if (XOR (islower (i), ISLOWER (i)) 7293b789ec8aSmrg || toupper (i) != TOUPPER (i)) 7294b789ec8aSmrg return 2; 7295b789ec8aSmrg return 0; 7296b789ec8aSmrg} 7297b789ec8aSmrg_ACEOF 7298b789ec8aSmrgif ac_fn_c_try_run "$LINENO"; then : 72993e256790Smrg 7300b789ec8aSmrgelse 7301b789ec8aSmrg ac_cv_header_stdc=no 7302b789ec8aSmrgfi 7303b789ec8aSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7304b789ec8aSmrg conftest.$ac_objext conftest.beam conftest.$ac_ext 7305b789ec8aSmrgfi 73063e256790Smrg 7307c27c18e8Smrgfi 7308b789ec8aSmrgfi 7309b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7310b789ec8aSmrg$as_echo "$ac_cv_header_stdc" >&6; } 7311b789ec8aSmrgif test $ac_cv_header_stdc = yes; then 7312c43cc173Smrg 7313b789ec8aSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 731437eb1ca1Smrg 7315b789ec8aSmrgfi 731637eb1ca1Smrg 7317b789ec8aSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7318b789ec8aSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7319b789ec8aSmrg inttypes.h stdint.h unistd.h 7320b789ec8aSmrgdo : 7321b789ec8aSmrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7322b789ec8aSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7323b789ec8aSmrg" 7324b789ec8aSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7325b789ec8aSmrg cat >>confdefs.h <<_ACEOF 7326b789ec8aSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7327b789ec8aSmrg_ACEOF 732837eb1ca1Smrg 7329b789ec8aSmrgfi 733037eb1ca1Smrg 7331b789ec8aSmrgdone 733237eb1ca1Smrg 733337eb1ca1Smrg 7334b789ec8aSmrgfor ac_header in dlfcn.h 7335b789ec8aSmrgdo : 7336b789ec8aSmrg ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7337b789ec8aSmrg" 7338b789ec8aSmrgif test "x$ac_cv_header_dlfcn_h" = xyes; then : 7339b789ec8aSmrg cat >>confdefs.h <<_ACEOF 7340b789ec8aSmrg#define HAVE_DLFCN_H 1 7341b789ec8aSmrg_ACEOF 7342c43cc173Smrg 7343b789ec8aSmrgfi 7344c43cc173Smrg 7345b789ec8aSmrgdone 7346c43cc173Smrg 7347c43cc173Smrg 7348c43cc173Smrg 7349c43cc173Smrg 7350c43cc173Smrg 7351b789ec8aSmrg# Set options 7352c43cc173Smrg 7353c43cc173Smrg 7354c43cc173Smrg 7355b789ec8aSmrg enable_dlopen=no 7356c43cc173Smrg 7357c43cc173Smrg 7358b789ec8aSmrg enable_win32_dll=no 7359c43cc173Smrg 7360c43cc173Smrg 7361b789ec8aSmrg # Check whether --enable-shared was given. 7362b789ec8aSmrgif test "${enable_shared+set}" = set; then : 7363b789ec8aSmrg enableval=$enable_shared; p=${PACKAGE-default} 7364b789ec8aSmrg case $enableval in 7365b789ec8aSmrg yes) enable_shared=yes ;; 7366b789ec8aSmrg no) enable_shared=no ;; 7367b789ec8aSmrg *) 7368b789ec8aSmrg enable_shared=no 7369b789ec8aSmrg # Look at the argument we got. We use all the common list separators. 7370b789ec8aSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7371b789ec8aSmrg for pkg in $enableval; do 7372b789ec8aSmrg IFS="$lt_save_ifs" 7373b789ec8aSmrg if test "X$pkg" = "X$p"; then 7374b789ec8aSmrg enable_shared=yes 7375b789ec8aSmrg fi 7376b789ec8aSmrg done 7377b789ec8aSmrg IFS="$lt_save_ifs" 7378b789ec8aSmrg ;; 7379b789ec8aSmrg esac 7380b789ec8aSmrgelse 7381b789ec8aSmrg enable_shared=yes 7382b789ec8aSmrgfi 7383c43cc173Smrg 7384c43cc173Smrg 7385c43cc173Smrg 7386c43cc173Smrg 7387c43cc173Smrg 7388c43cc173Smrg 7389c43cc173Smrg 7390c43cc173Smrg 7391c43cc173Smrg 7392b789ec8aSmrg # Check whether --enable-static was given. 7393b789ec8aSmrgif test "${enable_static+set}" = set; then : 7394b789ec8aSmrg enableval=$enable_static; p=${PACKAGE-default} 7395b789ec8aSmrg case $enableval in 7396b789ec8aSmrg yes) enable_static=yes ;; 7397b789ec8aSmrg no) enable_static=no ;; 7398b789ec8aSmrg *) 7399b789ec8aSmrg enable_static=no 7400b789ec8aSmrg # Look at the argument we got. We use all the common list separators. 7401b789ec8aSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7402b789ec8aSmrg for pkg in $enableval; do 7403b789ec8aSmrg IFS="$lt_save_ifs" 7404b789ec8aSmrg if test "X$pkg" = "X$p"; then 7405b789ec8aSmrg enable_static=yes 7406b789ec8aSmrg fi 7407b789ec8aSmrg done 7408b789ec8aSmrg IFS="$lt_save_ifs" 7409b789ec8aSmrg ;; 7410b789ec8aSmrg esac 7411b789ec8aSmrgelse 7412b789ec8aSmrg enable_static=yes 7413b789ec8aSmrgfi 7414c43cc173Smrg 7415c43cc173Smrg 7416c43cc173Smrg 7417c43cc173Smrg 7418c43cc173Smrg 7419c43cc173Smrg 7420c43cc173Smrg 7421c43cc173Smrg 7422c43cc173Smrg 742321e67964Smrg 7424b789ec8aSmrg# Check whether --with-pic was given. 7425b789ec8aSmrgif test "${with_pic+set}" = set; then : 7426b789ec8aSmrg withval=$with_pic; pic_mode="$withval" 7427b789ec8aSmrgelse 7428b789ec8aSmrg pic_mode=default 7429b789ec8aSmrgfi 7430c43cc173Smrg 7431c43cc173Smrg 7432b789ec8aSmrgtest -z "$pic_mode" && pic_mode=default 7433c43cc173Smrg 7434c43cc173Smrg 7435c43cc173Smrg 7436c43cc173Smrg 7437c43cc173Smrg 7438c43cc173Smrg 7439c43cc173Smrg 7440b789ec8aSmrg # Check whether --enable-fast-install was given. 7441b789ec8aSmrgif test "${enable_fast_install+set}" = set; then : 7442b789ec8aSmrg enableval=$enable_fast_install; p=${PACKAGE-default} 7443b789ec8aSmrg case $enableval in 7444b789ec8aSmrg yes) enable_fast_install=yes ;; 7445b789ec8aSmrg no) enable_fast_install=no ;; 7446b789ec8aSmrg *) 7447b789ec8aSmrg enable_fast_install=no 7448b789ec8aSmrg # Look at the argument we got. We use all the common list separators. 7449b789ec8aSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7450b789ec8aSmrg for pkg in $enableval; do 7451b789ec8aSmrg IFS="$lt_save_ifs" 7452b789ec8aSmrg if test "X$pkg" = "X$p"; then 7453b789ec8aSmrg enable_fast_install=yes 7454b789ec8aSmrg fi 7455b789ec8aSmrg done 7456b789ec8aSmrg IFS="$lt_save_ifs" 7457b789ec8aSmrg ;; 7458b789ec8aSmrg esac 7459b789ec8aSmrgelse 7460b789ec8aSmrg enable_fast_install=yes 7461b789ec8aSmrgfi 7462c27c18e8Smrg 7463c27c18e8Smrg 7464c27c18e8Smrg 7465c43cc173Smrg 7466c43cc173Smrg 7467c43cc173Smrg 7468c43cc173Smrg 7469c43cc173Smrg 7470c43cc173Smrg 7471c43cc173Smrg 7472c43cc173Smrg 7473b789ec8aSmrg# This can be used to rebuild libtool when needed 7474b789ec8aSmrgLIBTOOL_DEPS="$ltmain" 7475c43cc173Smrg 7476b789ec8aSmrg# Always use our own libtool. 7477b789ec8aSmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool' 7478c43cc173Smrg 7479c27c18e8Smrg 7480c27c18e8Smrg 7481c43cc173Smrg 7482c43cc173Smrg 7483c43cc173Smrg 7484c43cc173Smrg 7485c43cc173Smrg 7486c43cc173Smrg 7487c43cc173Smrg 7488c43cc173Smrg 7489c43cc173Smrg 7490c43cc173Smrg 7491c43cc173Smrg 7492c43cc173Smrg 7493c43cc173Smrg 7494c43cc173Smrg 7495c43cc173Smrg 7496c43cc173Smrg 7497c43cc173Smrg 7498c43cc173Smrg 7499c43cc173Smrg 7500c43cc173Smrg 7501c43cc173Smrg 7502c43cc173Smrg 7503c43cc173Smrg 7504b789ec8aSmrgtest -z "$LN_S" && LN_S="ln -s" 7505c43cc173Smrg 7506c43cc173Smrg 7507b789ec8aSmrg 7508b789ec8aSmrg 7509b789ec8aSmrg 7510b789ec8aSmrg 7511b789ec8aSmrg 7512b789ec8aSmrg 7513b789ec8aSmrg 7514b789ec8aSmrg 7515b789ec8aSmrg 7516b789ec8aSmrg 7517b789ec8aSmrg 7518b789ec8aSmrg 7519b789ec8aSmrgif test -n "${ZSH_VERSION+set}" ; then 7520b789ec8aSmrg setopt NO_GLOB_SUBST 75213e256790Smrgfi 7522c43cc173Smrg 7523b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7524b789ec8aSmrg$as_echo_n "checking for objdir... " >&6; } 7525b789ec8aSmrgif ${lt_cv_objdir+:} false; then : 7526b789ec8aSmrg $as_echo_n "(cached) " >&6 7527b789ec8aSmrgelse 7528b789ec8aSmrg rm -f .libs 2>/dev/null 7529b789ec8aSmrgmkdir .libs 2>/dev/null 7530b789ec8aSmrgif test -d .libs; then 7531b789ec8aSmrg lt_cv_objdir=.libs 7532b789ec8aSmrgelse 7533b789ec8aSmrg # MS-DOS does not allow filenames that begin with a dot. 7534b789ec8aSmrg lt_cv_objdir=_libs 7535b789ec8aSmrgfi 7536b789ec8aSmrgrmdir .libs 2>/dev/null 7537b789ec8aSmrgfi 7538b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7539b789ec8aSmrg$as_echo "$lt_cv_objdir" >&6; } 7540b789ec8aSmrgobjdir=$lt_cv_objdir 7541c43cc173Smrg 7542c43cc173Smrg 7543c43cc173Smrg 7544c43cc173Smrg 7545c43cc173Smrg 7546b789ec8aSmrgcat >>confdefs.h <<_ACEOF 7547b789ec8aSmrg#define LT_OBJDIR "$lt_cv_objdir/" 75483e256790Smrg_ACEOF 7549c43cc173Smrg 7550b789ec8aSmrg 7551b789ec8aSmrg 7552b789ec8aSmrg 7553b789ec8aSmrgcase $host_os in 7554b789ec8aSmrgaix3*) 7555b789ec8aSmrg # AIX sometimes has problems with the GCC collect2 program. For some 7556b789ec8aSmrg # reason, if we set the COLLECT_NAMES environment variable, the problems 7557b789ec8aSmrg # vanish in a puff of smoke. 7558b789ec8aSmrg if test "X${COLLECT_NAMES+set}" != Xset; then 7559b789ec8aSmrg COLLECT_NAMES= 7560b789ec8aSmrg export COLLECT_NAMES 75613e256790Smrg fi 75623e256790Smrg ;; 75633e256790Smrgesac 7564c43cc173Smrg 7565b789ec8aSmrg# Global variables: 7566b789ec8aSmrgofile=libtool 7567b789ec8aSmrgcan_build_shared=yes 7568c43cc173Smrg 7569b789ec8aSmrg# All known linkers require a `.a' archive for static linking (except MSVC, 7570b789ec8aSmrg# which needs '.lib'). 7571b789ec8aSmrglibext=a 7572c43cc173Smrg 7573b789ec8aSmrgwith_gnu_ld="$lt_cv_prog_gnu_ld" 7574c43cc173Smrg 7575b789ec8aSmrgold_CC="$CC" 7576b789ec8aSmrgold_CFLAGS="$CFLAGS" 7577c43cc173Smrg 7578b789ec8aSmrg# Set sane defaults for various variables 7579b789ec8aSmrgtest -z "$CC" && CC=cc 7580b789ec8aSmrgtest -z "$LTCC" && LTCC=$CC 7581b789ec8aSmrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7582b789ec8aSmrgtest -z "$LD" && LD=ld 7583b789ec8aSmrgtest -z "$ac_objext" && ac_objext=o 7584c43cc173Smrg 7585b789ec8aSmrgfor cc_temp in $compiler""; do 7586b789ec8aSmrg case $cc_temp in 7587b789ec8aSmrg compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7588b789ec8aSmrg distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7589b789ec8aSmrg \-*) ;; 7590b789ec8aSmrg *) break;; 7591b789ec8aSmrg esac 7592b789ec8aSmrgdone 7593b789ec8aSmrgcc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7594b789ec8aSmrg 7595b789ec8aSmrg 7596b789ec8aSmrg# Only perform the check for file, if the check method requires it 7597b789ec8aSmrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file 7598b789ec8aSmrgcase $deplibs_check_method in 7599b789ec8aSmrgfile_magic*) 7600b789ec8aSmrg if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7601b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7602b789ec8aSmrg$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7603b789ec8aSmrgif ${lt_cv_path_MAGIC_CMD+:} false; then : 76043e256790Smrg $as_echo_n "(cached) " >&6 76053e256790Smrgelse 7606b789ec8aSmrg case $MAGIC_CMD in 7607b789ec8aSmrg[\\/*] | ?:[\\/]*) 7608b789ec8aSmrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7609b789ec8aSmrg ;; 7610b789ec8aSmrg*) 7611b789ec8aSmrg lt_save_MAGIC_CMD="$MAGIC_CMD" 7612b789ec8aSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7613b789ec8aSmrg ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7614b789ec8aSmrg for ac_dir in $ac_dummy; do 7615b789ec8aSmrg IFS="$lt_save_ifs" 7616b789ec8aSmrg test -z "$ac_dir" && ac_dir=. 7617b789ec8aSmrg if test -f $ac_dir/${ac_tool_prefix}file; then 7618b789ec8aSmrg lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7619b789ec8aSmrg if test -n "$file_magic_test_file"; then 7620b789ec8aSmrg case $deplibs_check_method in 7621b789ec8aSmrg "file_magic "*) 7622b789ec8aSmrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7623b789ec8aSmrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7624b789ec8aSmrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7625b789ec8aSmrg $EGREP "$file_magic_regex" > /dev/null; then 7626b789ec8aSmrg : 7627b789ec8aSmrg else 7628b789ec8aSmrg cat <<_LT_EOF 1>&2 7629c43cc173Smrg 7630b789ec8aSmrg*** Warning: the command libtool uses to detect shared libraries, 7631b789ec8aSmrg*** $file_magic_cmd, produces output that libtool cannot recognize. 7632b789ec8aSmrg*** The result is that libtool may fail to recognize shared libraries 7633b789ec8aSmrg*** as such. This will affect the creation of libtool libraries that 7634b789ec8aSmrg*** depend on shared libraries, but programs linked with such libtool 7635b789ec8aSmrg*** libraries will work regardless of this problem. Nevertheless, you 7636b789ec8aSmrg*** may want to report the problem to your system manager and/or to 7637b789ec8aSmrg*** bug-libtool@gnu.org 7638c43cc173Smrg 7639b789ec8aSmrg_LT_EOF 7640b789ec8aSmrg fi ;; 7641b789ec8aSmrg esac 7642b789ec8aSmrg fi 7643b789ec8aSmrg break 7644b789ec8aSmrg fi 7645b789ec8aSmrg done 7646b789ec8aSmrg IFS="$lt_save_ifs" 7647b789ec8aSmrg MAGIC_CMD="$lt_save_MAGIC_CMD" 7648b789ec8aSmrg ;; 76493e256790Smrgesac 76503e256790Smrgfi 7651c43cc173Smrg 7652b789ec8aSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7653b789ec8aSmrgif test -n "$MAGIC_CMD"; then 7654b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7655b789ec8aSmrg$as_echo "$MAGIC_CMD" >&6; } 76563e256790Smrgelse 76573e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 76583e256790Smrg$as_echo "no" >&6; } 76593e256790Smrgfi 7660c43cc173Smrg 7661c43cc173Smrg 7662b789ec8aSmrg 7663b789ec8aSmrg 7664b789ec8aSmrg 7665b789ec8aSmrgif test -z "$lt_cv_path_MAGIC_CMD"; then 7666b789ec8aSmrg if test -n "$ac_tool_prefix"; then 7667b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7668b789ec8aSmrg$as_echo_n "checking for file... " >&6; } 7669b789ec8aSmrgif ${lt_cv_path_MAGIC_CMD+:} false; then : 76703e256790Smrg $as_echo_n "(cached) " >&6 76713e256790Smrgelse 7672b789ec8aSmrg case $MAGIC_CMD in 7673b789ec8aSmrg[\\/*] | ?:[\\/]*) 7674b789ec8aSmrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7675b789ec8aSmrg ;; 7676b789ec8aSmrg*) 7677b789ec8aSmrg lt_save_MAGIC_CMD="$MAGIC_CMD" 7678b789ec8aSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7679b789ec8aSmrg ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7680b789ec8aSmrg for ac_dir in $ac_dummy; do 7681b789ec8aSmrg IFS="$lt_save_ifs" 7682b789ec8aSmrg test -z "$ac_dir" && ac_dir=. 7683b789ec8aSmrg if test -f $ac_dir/file; then 7684b789ec8aSmrg lt_cv_path_MAGIC_CMD="$ac_dir/file" 7685b789ec8aSmrg if test -n "$file_magic_test_file"; then 7686b789ec8aSmrg case $deplibs_check_method in 7687b789ec8aSmrg "file_magic "*) 7688b789ec8aSmrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7689b789ec8aSmrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7690b789ec8aSmrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7691b789ec8aSmrg $EGREP "$file_magic_regex" > /dev/null; then 7692b789ec8aSmrg : 7693b789ec8aSmrg else 7694b789ec8aSmrg cat <<_LT_EOF 1>&2 7695c43cc173Smrg 7696b789ec8aSmrg*** Warning: the command libtool uses to detect shared libraries, 7697b789ec8aSmrg*** $file_magic_cmd, produces output that libtool cannot recognize. 7698b789ec8aSmrg*** The result is that libtool may fail to recognize shared libraries 7699b789ec8aSmrg*** as such. This will affect the creation of libtool libraries that 7700b789ec8aSmrg*** depend on shared libraries, but programs linked with such libtool 7701b789ec8aSmrg*** libraries will work regardless of this problem. Nevertheless, you 7702b789ec8aSmrg*** may want to report the problem to your system manager and/or to 7703b789ec8aSmrg*** bug-libtool@gnu.org 7704b789ec8aSmrg 7705b789ec8aSmrg_LT_EOF 7706b789ec8aSmrg fi ;; 7707b789ec8aSmrg esac 7708b789ec8aSmrg fi 7709b789ec8aSmrg break 7710b789ec8aSmrg fi 7711b789ec8aSmrg done 7712b789ec8aSmrg IFS="$lt_save_ifs" 7713b789ec8aSmrg MAGIC_CMD="$lt_save_MAGIC_CMD" 7714b789ec8aSmrg ;; 7715b789ec8aSmrgesac 77163e256790Smrgfi 7717b789ec8aSmrg 7718b789ec8aSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7719b789ec8aSmrgif test -n "$MAGIC_CMD"; then 7720b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7721b789ec8aSmrg$as_echo "$MAGIC_CMD" >&6; } 77223e256790Smrgelse 77233e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 77243e256790Smrg$as_echo "no" >&6; } 77253e256790Smrgfi 7726c43cc173Smrg 7727b789ec8aSmrg 77283e256790Smrg else 7729b789ec8aSmrg MAGIC_CMD=: 77303e256790Smrg fi 7731c27c18e8Smrgfi 7732c43cc173Smrg 77333e256790Smrg fi 7734b789ec8aSmrg ;; 7735b789ec8aSmrgesac 77363e256790Smrg 7737b789ec8aSmrg# Use C for the default configuration in the libtool script 7738c43cc173Smrg 7739b789ec8aSmrglt_save_CC="$CC" 7740b789ec8aSmrgac_ext=c 7741b789ec8aSmrgac_cpp='$CPP $CPPFLAGS' 7742b789ec8aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7743b789ec8aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7744b789ec8aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 7745c43cc173Smrg 7746c43cc173Smrg 7747b789ec8aSmrg# Source file extension for C test sources. 7748b789ec8aSmrgac_ext=c 7749c43cc173Smrg 7750b789ec8aSmrg# Object file extension for compiled C test sources. 7751b789ec8aSmrgobjext=o 7752b789ec8aSmrgobjext=$objext 7753c43cc173Smrg 7754b789ec8aSmrg# Code to be used in simple compile tests 7755b789ec8aSmrglt_simple_compile_test_code="int some_variable = 0;" 7756c43cc173Smrg 7757b789ec8aSmrg# Code to be used in simple link tests 7758b789ec8aSmrglt_simple_link_test_code='int main(){return(0);}' 7759c43cc173Smrg 7760c27c18e8Smrg 7761c27c18e8Smrg 7762c27c18e8Smrg 7763c27c18e8Smrg 7764c27c18e8Smrg 7765c27c18e8Smrg 7766b789ec8aSmrg# If no C compiler was specified, use CC. 7767b789ec8aSmrgLTCC=${LTCC-"$CC"} 7768c27c18e8Smrg 7769b789ec8aSmrg# If no C compiler flags were specified, use CFLAGS. 7770b789ec8aSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7771c27c18e8Smrg 7772b789ec8aSmrg# Allow CC to be a program name with arguments. 7773b789ec8aSmrgcompiler=$CC 7774c27c18e8Smrg 7775b789ec8aSmrg# Save the default compiler, since it gets overwritten when the other 7776b789ec8aSmrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7777b789ec8aSmrgcompiler_DEFAULT=$CC 7778c27c18e8Smrg 7779b789ec8aSmrg# save warnings/boilerplate of simple test code 7780b789ec8aSmrgac_outfile=conftest.$ac_objext 7781b789ec8aSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext 7782b789ec8aSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7783b789ec8aSmrg_lt_compiler_boilerplate=`cat conftest.err` 7784b789ec8aSmrg$RM conftest* 7785c27c18e8Smrg 7786b789ec8aSmrgac_outfile=conftest.$ac_objext 7787b789ec8aSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext 7788b789ec8aSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7789b789ec8aSmrg_lt_linker_boilerplate=`cat conftest.err` 7790b789ec8aSmrg$RM -r conftest* 7791c27c18e8Smrg 7792c43cc173Smrg 7793b789ec8aSmrgif test -n "$compiler"; then 779421e67964Smrg 7795b789ec8aSmrglt_prog_compiler_no_builtin_flag= 7796c43cc173Smrg 7797b789ec8aSmrgif test "$GCC" = yes; then 7798b789ec8aSmrg case $cc_basename in 7799b789ec8aSmrg nvcc*) 7800b789ec8aSmrg lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7801b789ec8aSmrg *) 7802b789ec8aSmrg lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7803b789ec8aSmrg esac 7804c43cc173Smrg 7805b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7806b789ec8aSmrg$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7807b789ec8aSmrgif ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 78083e256790Smrg $as_echo_n "(cached) " >&6 78093e256790Smrgelse 7810b789ec8aSmrg lt_cv_prog_compiler_rtti_exceptions=no 7811b789ec8aSmrg ac_outfile=conftest.$ac_objext 7812b789ec8aSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7813b789ec8aSmrg lt_compiler_flag="-fno-rtti -fno-exceptions" 7814b789ec8aSmrg # Insert the option either (1) after the last *FLAGS variable, or 7815b789ec8aSmrg # (2) before a word containing "conftest.", or (3) at the end. 7816b789ec8aSmrg # Note that $ac_compile itself does not contain backslashes and begins 7817b789ec8aSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 7818b789ec8aSmrg # The option is referenced via a variable to avoid confusing sed. 7819b789ec8aSmrg lt_compile=`echo "$ac_compile" | $SED \ 7820b789ec8aSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7821b789ec8aSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7822b789ec8aSmrg -e 's:$: $lt_compiler_flag:'` 7823b789ec8aSmrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7824b789ec8aSmrg (eval "$lt_compile" 2>conftest.err) 7825b789ec8aSmrg ac_status=$? 7826b789ec8aSmrg cat conftest.err >&5 7827b789ec8aSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 7828b789ec8aSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 7829b789ec8aSmrg # The compiler can only warn and ignore the option if not recognized 7830b789ec8aSmrg # So say no if there are warnings other than the usual output. 7831b789ec8aSmrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7832b789ec8aSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7833b789ec8aSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7834b789ec8aSmrg lt_cv_prog_compiler_rtti_exceptions=yes 7835b789ec8aSmrg fi 7836b789ec8aSmrg fi 7837b789ec8aSmrg $RM conftest* 78383e256790Smrg 7839c27c18e8Smrgfi 7840b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7841b789ec8aSmrg$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 78423e256790Smrg 7843b789ec8aSmrgif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7844b789ec8aSmrg lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 784537eb1ca1Smrgelse 7846b789ec8aSmrg : 784737eb1ca1Smrgfi 7848c43cc173Smrg 7849c27c18e8Smrgfi 7850c43cc173Smrg 7851c43cc173Smrg 7852c43cc173Smrg 785337eb1ca1Smrg 785437eb1ca1Smrg 7855c43cc173Smrg 7856b789ec8aSmrg lt_prog_compiler_wl= 7857b789ec8aSmrglt_prog_compiler_pic= 7858b789ec8aSmrglt_prog_compiler_static= 78593e256790Smrg 78603e256790Smrg 7861b789ec8aSmrg if test "$GCC" = yes; then 7862b789ec8aSmrg lt_prog_compiler_wl='-Wl,' 7863b789ec8aSmrg lt_prog_compiler_static='-static' 78643e256790Smrg 7865b789ec8aSmrg case $host_os in 7866b789ec8aSmrg aix*) 7867b789ec8aSmrg # All AIX code is PIC. 7868b789ec8aSmrg if test "$host_cpu" = ia64; then 7869b789ec8aSmrg # AIX 5 now supports IA64 processor 7870b789ec8aSmrg lt_prog_compiler_static='-Bstatic' 7871b789ec8aSmrg fi 78723e256790Smrg ;; 7873c43cc173Smrg 7874b789ec8aSmrg amigaos*) 7875b789ec8aSmrg case $host_cpu in 7876b789ec8aSmrg powerpc) 7877b789ec8aSmrg # see comment about AmigaOS4 .so support 7878b789ec8aSmrg lt_prog_compiler_pic='-fPIC' 7879b789ec8aSmrg ;; 7880b789ec8aSmrg m68k) 7881b789ec8aSmrg # FIXME: we need at least 68020 code to build shared libraries, but 7882b789ec8aSmrg # adding the `-m68020' flag to GCC prevents building anything better, 7883b789ec8aSmrg # like `-m68040'. 7884b789ec8aSmrg lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7885b789ec8aSmrg ;; 7886b789ec8aSmrg esac 7887b789ec8aSmrg ;; 7888c43cc173Smrg 7889b789ec8aSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7890b789ec8aSmrg # PIC is the default for these OSes. 7891b789ec8aSmrg ;; 789221e67964Smrg 7893b789ec8aSmrg mingw* | cygwin* | pw32* | os2* | cegcc*) 7894b789ec8aSmrg # This hack is so that the source file can tell whether it is being 7895b789ec8aSmrg # built for inclusion in a dll (and should export symbols for example). 7896b789ec8aSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 7897b789ec8aSmrg # (--disable-auto-import) libraries 7898b789ec8aSmrg lt_prog_compiler_pic='-DDLL_EXPORT' 7899b789ec8aSmrg ;; 790021e67964Smrg 7901b789ec8aSmrg darwin* | rhapsody*) 7902b789ec8aSmrg # PIC is the default on this platform 7903b789ec8aSmrg # Common symbols not allowed in MH_DYLIB files 7904b789ec8aSmrg lt_prog_compiler_pic='-fno-common' 7905b789ec8aSmrg ;; 790621e67964Smrg 7907b789ec8aSmrg haiku*) 7908b789ec8aSmrg # PIC is the default for Haiku. 7909b789ec8aSmrg # The "-static" flag exists, but is broken. 7910b789ec8aSmrg lt_prog_compiler_static= 7911b789ec8aSmrg ;; 7912c43cc173Smrg 7913b789ec8aSmrg hpux*) 7914b789ec8aSmrg # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7915b789ec8aSmrg # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7916b789ec8aSmrg # sets the default TLS model and affects inlining. 7917b789ec8aSmrg case $host_cpu in 7918b789ec8aSmrg hppa*64*) 7919b789ec8aSmrg # +Z the default 7920b789ec8aSmrg ;; 7921b789ec8aSmrg *) 7922b789ec8aSmrg lt_prog_compiler_pic='-fPIC' 7923b789ec8aSmrg ;; 7924b789ec8aSmrg esac 7925b789ec8aSmrg ;; 7926c43cc173Smrg 7927b789ec8aSmrg interix[3-9]*) 7928b789ec8aSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7929b789ec8aSmrg # Instead, we relocate shared libraries at runtime. 7930b789ec8aSmrg ;; 7931b789ec8aSmrg 7932b789ec8aSmrg msdosdjgpp*) 7933b789ec8aSmrg # Just because we use GCC doesn't mean we suddenly get shared libraries 7934b789ec8aSmrg # on systems that don't support them. 7935b789ec8aSmrg lt_prog_compiler_can_build_shared=no 7936b789ec8aSmrg enable_shared=no 7937b789ec8aSmrg ;; 7938b789ec8aSmrg 7939b789ec8aSmrg *nto* | *qnx*) 7940b789ec8aSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 7941b789ec8aSmrg # it will coredump. 7942b789ec8aSmrg lt_prog_compiler_pic='-fPIC -shared' 79433e256790Smrg ;; 7944c27c18e8Smrg 7945b789ec8aSmrg sysv4*MP*) 7946b789ec8aSmrg if test -d /usr/nec; then 7947b789ec8aSmrg lt_prog_compiler_pic=-Kconform_pic 7948b789ec8aSmrg fi 7949b789ec8aSmrg ;; 7950c27c18e8Smrg 7951b789ec8aSmrg *) 7952b789ec8aSmrg lt_prog_compiler_pic='-fPIC' 7953b789ec8aSmrg ;; 7954b789ec8aSmrg esac 7955c27c18e8Smrg 7956b789ec8aSmrg case $cc_basename in 7957b789ec8aSmrg nvcc*) # Cuda Compiler Driver 2.2 7958b789ec8aSmrg lt_prog_compiler_wl='-Xlinker ' 7959b789ec8aSmrg lt_prog_compiler_pic='-Xcompiler -fPIC' 7960b789ec8aSmrg ;; 7961b789ec8aSmrg esac 7962b789ec8aSmrg else 7963b789ec8aSmrg # PORTME Check for flag to pass linker flags through the system compiler. 7964b789ec8aSmrg case $host_os in 7965b789ec8aSmrg aix*) 7966b789ec8aSmrg lt_prog_compiler_wl='-Wl,' 7967b789ec8aSmrg if test "$host_cpu" = ia64; then 7968b789ec8aSmrg # AIX 5 now supports IA64 processor 7969b789ec8aSmrg lt_prog_compiler_static='-Bstatic' 7970b789ec8aSmrg else 7971b789ec8aSmrg lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7972b789ec8aSmrg fi 7973b789ec8aSmrg ;; 7974c27c18e8Smrg 7975b789ec8aSmrg mingw* | cygwin* | pw32* | os2* | cegcc*) 7976b789ec8aSmrg # This hack is so that the source file can tell whether it is being 7977b789ec8aSmrg # built for inclusion in a dll (and should export symbols for example). 7978b789ec8aSmrg lt_prog_compiler_pic='-DDLL_EXPORT' 7979b789ec8aSmrg ;; 7980c27c18e8Smrg 7981b789ec8aSmrg hpux9* | hpux10* | hpux11*) 7982b789ec8aSmrg lt_prog_compiler_wl='-Wl,' 7983b789ec8aSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7984b789ec8aSmrg # not for PA HP-UX. 7985b789ec8aSmrg case $host_cpu in 7986b789ec8aSmrg hppa*64*|ia64*) 7987b789ec8aSmrg # +Z the default 7988b789ec8aSmrg ;; 7989b789ec8aSmrg *) 7990b789ec8aSmrg lt_prog_compiler_pic='+Z' 7991b789ec8aSmrg ;; 7992b789ec8aSmrg esac 7993b789ec8aSmrg # Is there a better lt_prog_compiler_static that works with the bundled CC? 7994b789ec8aSmrg lt_prog_compiler_static='${wl}-a ${wl}archive' 7995b789ec8aSmrg ;; 7996c27c18e8Smrg 7997b789ec8aSmrg irix5* | irix6* | nonstopux*) 7998b789ec8aSmrg lt_prog_compiler_wl='-Wl,' 7999b789ec8aSmrg # PIC (with -KPIC) is the default. 8000b789ec8aSmrg lt_prog_compiler_static='-non_shared' 8001b789ec8aSmrg ;; 8002c27c18e8Smrg 8003b789ec8aSmrg linux* | k*bsd*-gnu | kopensolaris*-gnu) 8004b789ec8aSmrg case $cc_basename in 8005b789ec8aSmrg # old Intel for x86_64 which still supported -KPIC. 8006b789ec8aSmrg ecc*) 8007b789ec8aSmrg lt_prog_compiler_wl='-Wl,' 8008b789ec8aSmrg lt_prog_compiler_pic='-KPIC' 8009b789ec8aSmrg lt_prog_compiler_static='-static' 8010b789ec8aSmrg ;; 8011b789ec8aSmrg # icc used to be incompatible with GCC. 8012b789ec8aSmrg # ICC 10 doesn't accept -KPIC any more. 8013b789ec8aSmrg icc* | ifort*) 8014b789ec8aSmrg lt_prog_compiler_wl='-Wl,' 8015b789ec8aSmrg lt_prog_compiler_pic='-fPIC' 8016b789ec8aSmrg lt_prog_compiler_static='-static' 8017b789ec8aSmrg ;; 8018b789ec8aSmrg # Lahey Fortran 8.1. 8019b789ec8aSmrg lf95*) 8020b789ec8aSmrg lt_prog_compiler_wl='-Wl,' 8021b789ec8aSmrg lt_prog_compiler_pic='--shared' 8022b789ec8aSmrg lt_prog_compiler_static='--static' 8023b789ec8aSmrg ;; 8024b789ec8aSmrg nagfor*) 8025b789ec8aSmrg # NAG Fortran compiler 8026b789ec8aSmrg lt_prog_compiler_wl='-Wl,-Wl,,' 8027b789ec8aSmrg lt_prog_compiler_pic='-PIC' 8028b789ec8aSmrg lt_prog_compiler_static='-Bstatic' 8029b789ec8aSmrg ;; 8030b789ec8aSmrg pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8031b789ec8aSmrg # Portland Group compilers (*not* the Pentium gcc compiler, 8032b789ec8aSmrg # which looks to be a dead project) 8033b789ec8aSmrg lt_prog_compiler_wl='-Wl,' 8034b789ec8aSmrg lt_prog_compiler_pic='-fpic' 8035b789ec8aSmrg lt_prog_compiler_static='-Bstatic' 8036b789ec8aSmrg ;; 8037b789ec8aSmrg ccc*) 8038b789ec8aSmrg lt_prog_compiler_wl='-Wl,' 8039b789ec8aSmrg # All Alpha code is PIC. 8040b789ec8aSmrg lt_prog_compiler_static='-non_shared' 8041b789ec8aSmrg ;; 8042b789ec8aSmrg xl* | bgxl* | bgf* | mpixl*) 8043b789ec8aSmrg # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8044b789ec8aSmrg lt_prog_compiler_wl='-Wl,' 8045b789ec8aSmrg lt_prog_compiler_pic='-qpic' 8046b789ec8aSmrg lt_prog_compiler_static='-qstaticlink' 8047b789ec8aSmrg ;; 8048b789ec8aSmrg *) 8049b789ec8aSmrg case `$CC -V 2>&1 | sed 5q` in 8050b789ec8aSmrg *Sun\ F* | *Sun*Fortran*) 8051b789ec8aSmrg # Sun Fortran 8.3 passes all unrecognized flags to the linker 8052b789ec8aSmrg lt_prog_compiler_pic='-KPIC' 8053b789ec8aSmrg lt_prog_compiler_static='-Bstatic' 8054b789ec8aSmrg lt_prog_compiler_wl='' 8055b789ec8aSmrg ;; 8056b789ec8aSmrg *Sun\ C*) 8057b789ec8aSmrg # Sun C 5.9 8058b789ec8aSmrg lt_prog_compiler_pic='-KPIC' 8059b789ec8aSmrg lt_prog_compiler_static='-Bstatic' 8060b789ec8aSmrg lt_prog_compiler_wl='-Wl,' 8061b789ec8aSmrg ;; 8062b789ec8aSmrg esac 8063b789ec8aSmrg ;; 8064b789ec8aSmrg esac 8065b789ec8aSmrg ;; 8066c27c18e8Smrg 8067b789ec8aSmrg newsos6) 8068b789ec8aSmrg lt_prog_compiler_pic='-KPIC' 8069b789ec8aSmrg lt_prog_compiler_static='-Bstatic' 8070b789ec8aSmrg ;; 80713e256790Smrg 8072b789ec8aSmrg *nto* | *qnx*) 8073b789ec8aSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 8074b789ec8aSmrg # it will coredump. 8075b789ec8aSmrg lt_prog_compiler_pic='-fPIC -shared' 8076b789ec8aSmrg ;; 80773e256790Smrg 8078b789ec8aSmrg osf3* | osf4* | osf5*) 8079b789ec8aSmrg lt_prog_compiler_wl='-Wl,' 8080b789ec8aSmrg # All OSF/1 code is PIC. 8081b789ec8aSmrg lt_prog_compiler_static='-non_shared' 8082b789ec8aSmrg ;; 8083c43cc173Smrg 8084b789ec8aSmrg rdos*) 8085b789ec8aSmrg lt_prog_compiler_static='-non_shared' 8086b789ec8aSmrg ;; 80873e256790Smrg 8088b789ec8aSmrg solaris*) 8089b789ec8aSmrg lt_prog_compiler_pic='-KPIC' 8090b789ec8aSmrg lt_prog_compiler_static='-Bstatic' 8091b789ec8aSmrg case $cc_basename in 8092b789ec8aSmrg f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8093b789ec8aSmrg lt_prog_compiler_wl='-Qoption ld ';; 8094b789ec8aSmrg *) 8095b789ec8aSmrg lt_prog_compiler_wl='-Wl,';; 8096b789ec8aSmrg esac 8097b789ec8aSmrg ;; 80983e256790Smrg 8099b789ec8aSmrg sunos4*) 8100b789ec8aSmrg lt_prog_compiler_wl='-Qoption ld ' 8101b789ec8aSmrg lt_prog_compiler_pic='-PIC' 8102b789ec8aSmrg lt_prog_compiler_static='-Bstatic' 8103b789ec8aSmrg ;; 81043e256790Smrg 8105b789ec8aSmrg sysv4 | sysv4.2uw2* | sysv4.3*) 8106b789ec8aSmrg lt_prog_compiler_wl='-Wl,' 8107b789ec8aSmrg lt_prog_compiler_pic='-KPIC' 8108b789ec8aSmrg lt_prog_compiler_static='-Bstatic' 8109b789ec8aSmrg ;; 81103e256790Smrg 8111b789ec8aSmrg sysv4*MP*) 8112b789ec8aSmrg if test -d /usr/nec ;then 8113b789ec8aSmrg lt_prog_compiler_pic='-Kconform_pic' 8114b789ec8aSmrg lt_prog_compiler_static='-Bstatic' 8115b789ec8aSmrg fi 8116b789ec8aSmrg ;; 81173e256790Smrg 8118b789ec8aSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8119b789ec8aSmrg lt_prog_compiler_wl='-Wl,' 8120b789ec8aSmrg lt_prog_compiler_pic='-KPIC' 8121b789ec8aSmrg lt_prog_compiler_static='-Bstatic' 8122b789ec8aSmrg ;; 81233e256790Smrg 8124b789ec8aSmrg unicos*) 8125b789ec8aSmrg lt_prog_compiler_wl='-Wl,' 8126b789ec8aSmrg lt_prog_compiler_can_build_shared=no 8127b789ec8aSmrg ;; 81283e256790Smrg 8129b789ec8aSmrg uts4*) 8130b789ec8aSmrg lt_prog_compiler_pic='-pic' 8131b789ec8aSmrg lt_prog_compiler_static='-Bstatic' 8132b789ec8aSmrg ;; 81333e256790Smrg 81343e256790Smrg *) 8135b789ec8aSmrg lt_prog_compiler_can_build_shared=no 81363e256790Smrg ;; 81373e256790Smrg esac 8138b789ec8aSmrg fi 8139c43cc173Smrg 8140b789ec8aSmrgcase $host_os in 8141b789ec8aSmrg # For platforms which do not support PIC, -DPIC is meaningless: 8142b789ec8aSmrg *djgpp*) 8143b789ec8aSmrg lt_prog_compiler_pic= 8144b789ec8aSmrg ;; 8145b789ec8aSmrg *) 8146b789ec8aSmrg lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8147b789ec8aSmrg ;; 8148b789ec8aSmrgesac 8149c43cc173Smrg 8150b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8151b789ec8aSmrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8152b789ec8aSmrgif ${lt_cv_prog_compiler_pic+:} false; then : 8153b789ec8aSmrg $as_echo_n "(cached) " >&6 8154b789ec8aSmrgelse 8155b789ec8aSmrg lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8156b789ec8aSmrgfi 8157b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8158b789ec8aSmrg$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8159b789ec8aSmrglt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8160c43cc173Smrg 8161b789ec8aSmrg# 8162b789ec8aSmrg# Check to make sure the PIC flag actually works. 8163b789ec8aSmrg# 8164b789ec8aSmrgif test -n "$lt_prog_compiler_pic"; then 8165b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8166b789ec8aSmrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8167b789ec8aSmrgif ${lt_cv_prog_compiler_pic_works+:} false; then : 8168b789ec8aSmrg $as_echo_n "(cached) " >&6 8169b789ec8aSmrgelse 8170b789ec8aSmrg lt_cv_prog_compiler_pic_works=no 8171b789ec8aSmrg ac_outfile=conftest.$ac_objext 8172b789ec8aSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8173b789ec8aSmrg lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8174b789ec8aSmrg # Insert the option either (1) after the last *FLAGS variable, or 8175b789ec8aSmrg # (2) before a word containing "conftest.", or (3) at the end. 8176b789ec8aSmrg # Note that $ac_compile itself does not contain backslashes and begins 8177b789ec8aSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 8178b789ec8aSmrg # The option is referenced via a variable to avoid confusing sed. 8179b789ec8aSmrg lt_compile=`echo "$ac_compile" | $SED \ 8180b789ec8aSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8181b789ec8aSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8182b789ec8aSmrg -e 's:$: $lt_compiler_flag:'` 8183b789ec8aSmrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8184b789ec8aSmrg (eval "$lt_compile" 2>conftest.err) 8185b789ec8aSmrg ac_status=$? 8186b789ec8aSmrg cat conftest.err >&5 8187b789ec8aSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 8188b789ec8aSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 8189b789ec8aSmrg # The compiler can only warn and ignore the option if not recognized 8190b789ec8aSmrg # So say no if there are warnings other than the usual output. 8191b789ec8aSmrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8192b789ec8aSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8193b789ec8aSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8194b789ec8aSmrg lt_cv_prog_compiler_pic_works=yes 8195b789ec8aSmrg fi 8196b789ec8aSmrg fi 8197b789ec8aSmrg $RM conftest* 8198c43cc173Smrg 8199b789ec8aSmrgfi 8200b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8201b789ec8aSmrg$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8202c43cc173Smrg 8203b789ec8aSmrgif test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8204b789ec8aSmrg case $lt_prog_compiler_pic in 8205b789ec8aSmrg "" | " "*) ;; 8206b789ec8aSmrg *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8207b789ec8aSmrg esac 8208b789ec8aSmrgelse 8209b789ec8aSmrg lt_prog_compiler_pic= 8210b789ec8aSmrg lt_prog_compiler_can_build_shared=no 8211b789ec8aSmrgfi 8212c43cc173Smrg 8213b789ec8aSmrgfi 8214c43cc173Smrg 8215c43cc173Smrg 8216c43cc173Smrg 8217c43cc173Smrg 8218c43cc173Smrg 8219c43cc173Smrg 8220c27c18e8Smrg 8221c27c18e8Smrg 8222c43cc173Smrg 822321e67964Smrg 8224c43cc173Smrg 8225b789ec8aSmrg# 8226b789ec8aSmrg# Check to make sure the static flag actually works. 8227b789ec8aSmrg# 8228b789ec8aSmrgwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8229b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8230b789ec8aSmrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8231b789ec8aSmrgif ${lt_cv_prog_compiler_static_works+:} false; then : 8232b789ec8aSmrg $as_echo_n "(cached) " >&6 8233b789ec8aSmrgelse 8234b789ec8aSmrg lt_cv_prog_compiler_static_works=no 8235b789ec8aSmrg save_LDFLAGS="$LDFLAGS" 8236b789ec8aSmrg LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8237b789ec8aSmrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 8238b789ec8aSmrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8239b789ec8aSmrg # The linker can only warn and ignore the option if not recognized 8240b789ec8aSmrg # So say no if there are warnings 8241b789ec8aSmrg if test -s conftest.err; then 8242b789ec8aSmrg # Append any errors to the config.log. 8243b789ec8aSmrg cat conftest.err 1>&5 8244b789ec8aSmrg $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8245b789ec8aSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8246b789ec8aSmrg if diff conftest.exp conftest.er2 >/dev/null; then 8247b789ec8aSmrg lt_cv_prog_compiler_static_works=yes 8248b789ec8aSmrg fi 8249b789ec8aSmrg else 8250b789ec8aSmrg lt_cv_prog_compiler_static_works=yes 8251b789ec8aSmrg fi 8252b789ec8aSmrg fi 8253b789ec8aSmrg $RM -r conftest* 8254b789ec8aSmrg LDFLAGS="$save_LDFLAGS" 8255c43cc173Smrg 8256b789ec8aSmrgfi 8257b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8258b789ec8aSmrg$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8259c43cc173Smrg 8260b789ec8aSmrgif test x"$lt_cv_prog_compiler_static_works" = xyes; then 8261b789ec8aSmrg : 8262b789ec8aSmrgelse 8263b789ec8aSmrg lt_prog_compiler_static= 8264b789ec8aSmrgfi 8265c43cc173Smrg 8266c43cc173Smrg 8267c43cc173Smrg 826837eb1ca1Smrg 8269c43cc173Smrg 8270c43cc173Smrg 8271c27c18e8Smrg 8272b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8273b789ec8aSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8274b789ec8aSmrgif ${lt_cv_prog_compiler_c_o+:} false; then : 8275b789ec8aSmrg $as_echo_n "(cached) " >&6 8276b789ec8aSmrgelse 8277b789ec8aSmrg lt_cv_prog_compiler_c_o=no 8278b789ec8aSmrg $RM -r conftest 2>/dev/null 8279b789ec8aSmrg mkdir conftest 8280b789ec8aSmrg cd conftest 8281b789ec8aSmrg mkdir out 8282b789ec8aSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8283c27c18e8Smrg 8284b789ec8aSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 8285b789ec8aSmrg # Insert the option either (1) after the last *FLAGS variable, or 8286b789ec8aSmrg # (2) before a word containing "conftest.", or (3) at the end. 8287b789ec8aSmrg # Note that $ac_compile itself does not contain backslashes and begins 8288b789ec8aSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 8289b789ec8aSmrg lt_compile=`echo "$ac_compile" | $SED \ 8290b789ec8aSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8291b789ec8aSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8292b789ec8aSmrg -e 's:$: $lt_compiler_flag:'` 8293b789ec8aSmrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8294b789ec8aSmrg (eval "$lt_compile" 2>out/conftest.err) 8295b789ec8aSmrg ac_status=$? 8296b789ec8aSmrg cat out/conftest.err >&5 8297b789ec8aSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 8298b789ec8aSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 8299b789ec8aSmrg then 8300b789ec8aSmrg # The compiler can only warn and ignore the option if not recognized 8301b789ec8aSmrg # So say no if there are warnings 8302b789ec8aSmrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8303b789ec8aSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8304b789ec8aSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8305b789ec8aSmrg lt_cv_prog_compiler_c_o=yes 8306b789ec8aSmrg fi 8307b789ec8aSmrg fi 8308b789ec8aSmrg chmod u+w . 2>&5 8309b789ec8aSmrg $RM conftest* 8310b789ec8aSmrg # SGI C++ compiler will create directory out/ii_files/ for 8311b789ec8aSmrg # template instantiation 8312b789ec8aSmrg test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8313b789ec8aSmrg $RM out/* && rmdir out 8314b789ec8aSmrg cd .. 8315b789ec8aSmrg $RM -r conftest 8316b789ec8aSmrg $RM conftest* 8317c27c18e8Smrg 8318b789ec8aSmrgfi 8319b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8320b789ec8aSmrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8321c27c18e8Smrg 8322c27c18e8Smrg 8323c43cc173Smrg 8324c43cc173Smrg 8325c43cc173Smrg 8326c43cc173Smrg 8327b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8328b789ec8aSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8329b789ec8aSmrgif ${lt_cv_prog_compiler_c_o+:} false; then : 8330b789ec8aSmrg $as_echo_n "(cached) " >&6 8331b789ec8aSmrgelse 8332b789ec8aSmrg lt_cv_prog_compiler_c_o=no 8333b789ec8aSmrg $RM -r conftest 2>/dev/null 8334b789ec8aSmrg mkdir conftest 8335b789ec8aSmrg cd conftest 8336b789ec8aSmrg mkdir out 8337b789ec8aSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8338c27c18e8Smrg 8339b789ec8aSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 8340b789ec8aSmrg # Insert the option either (1) after the last *FLAGS variable, or 8341b789ec8aSmrg # (2) before a word containing "conftest.", or (3) at the end. 8342b789ec8aSmrg # Note that $ac_compile itself does not contain backslashes and begins 8343b789ec8aSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 8344b789ec8aSmrg lt_compile=`echo "$ac_compile" | $SED \ 8345b789ec8aSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8346b789ec8aSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8347b789ec8aSmrg -e 's:$: $lt_compiler_flag:'` 8348b789ec8aSmrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8349b789ec8aSmrg (eval "$lt_compile" 2>out/conftest.err) 8350b789ec8aSmrg ac_status=$? 8351b789ec8aSmrg cat out/conftest.err >&5 8352b789ec8aSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 8353b789ec8aSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 8354b789ec8aSmrg then 8355b789ec8aSmrg # The compiler can only warn and ignore the option if not recognized 8356b789ec8aSmrg # So say no if there are warnings 8357b789ec8aSmrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8358b789ec8aSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8359b789ec8aSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8360b789ec8aSmrg lt_cv_prog_compiler_c_o=yes 8361b789ec8aSmrg fi 8362b789ec8aSmrg fi 8363b789ec8aSmrg chmod u+w . 2>&5 8364b789ec8aSmrg $RM conftest* 8365b789ec8aSmrg # SGI C++ compiler will create directory out/ii_files/ for 8366b789ec8aSmrg # template instantiation 8367b789ec8aSmrg test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8368b789ec8aSmrg $RM out/* && rmdir out 8369b789ec8aSmrg cd .. 8370b789ec8aSmrg $RM -r conftest 8371b789ec8aSmrg $RM conftest* 8372c27c18e8Smrg 8373b789ec8aSmrgfi 8374b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8375b789ec8aSmrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8376c27c18e8Smrg 8377c27c18e8Smrg 8378c27c18e8Smrg 8379c43cc173Smrg 8380b789ec8aSmrghard_links="nottested" 8381b789ec8aSmrgif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8382b789ec8aSmrg # do not overwrite the value of need_locks provided by the user 8383b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8384b789ec8aSmrg$as_echo_n "checking if we can lock with hard links... " >&6; } 8385b789ec8aSmrg hard_links=yes 8386b789ec8aSmrg $RM conftest* 8387b789ec8aSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 8388b789ec8aSmrg touch conftest.a 8389b789ec8aSmrg ln conftest.a conftest.b 2>&5 || hard_links=no 8390b789ec8aSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 8391b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8392b789ec8aSmrg$as_echo "$hard_links" >&6; } 8393b789ec8aSmrg if test "$hard_links" = no; then 8394b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8395b789ec8aSmrg$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8396b789ec8aSmrg need_locks=warn 8397b789ec8aSmrg fi 8398c43cc173Smrgelse 8399b789ec8aSmrg need_locks=no 84003e256790Smrgfi 8401c27c18e8Smrg 8402c27c18e8Smrg 8403c27c18e8Smrg 8404c27c18e8Smrg 8405c27c18e8Smrg 8406c27c18e8Smrg 8407b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8408b789ec8aSmrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8409c43cc173Smrg 8410b789ec8aSmrg runpath_var= 8411b789ec8aSmrg allow_undefined_flag= 8412b789ec8aSmrg always_export_symbols=no 8413b789ec8aSmrg archive_cmds= 8414b789ec8aSmrg archive_expsym_cmds= 8415b789ec8aSmrg compiler_needs_object=no 8416b789ec8aSmrg enable_shared_with_static_runtimes=no 8417b789ec8aSmrg export_dynamic_flag_spec= 8418b789ec8aSmrg export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8419b789ec8aSmrg hardcode_automatic=no 8420b789ec8aSmrg hardcode_direct=no 8421b789ec8aSmrg hardcode_direct_absolute=no 8422b789ec8aSmrg hardcode_libdir_flag_spec= 8423b789ec8aSmrg hardcode_libdir_flag_spec_ld= 8424b789ec8aSmrg hardcode_libdir_separator= 8425b789ec8aSmrg hardcode_minus_L=no 8426b789ec8aSmrg hardcode_shlibpath_var=unsupported 8427b789ec8aSmrg inherit_rpath=no 8428b789ec8aSmrg link_all_deplibs=unknown 8429b789ec8aSmrg module_cmds= 8430b789ec8aSmrg module_expsym_cmds= 8431b789ec8aSmrg old_archive_from_new_cmds= 8432b789ec8aSmrg old_archive_from_expsyms_cmds= 8433b789ec8aSmrg thread_safe_flag_spec= 8434b789ec8aSmrg whole_archive_flag_spec= 8435b789ec8aSmrg # include_expsyms should be a list of space-separated symbols to be *always* 8436b789ec8aSmrg # included in the symbol list 8437b789ec8aSmrg include_expsyms= 8438b789ec8aSmrg # exclude_expsyms can be an extended regexp of symbols to exclude 8439b789ec8aSmrg # it will be wrapped by ` (' and `)$', so one must not match beginning or 8440b789ec8aSmrg # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8441b789ec8aSmrg # as well as any symbol that contains `d'. 8442b789ec8aSmrg exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8443b789ec8aSmrg # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8444b789ec8aSmrg # platforms (ab)use it in PIC code, but their linkers get confused if 8445b789ec8aSmrg # the symbol is explicitly referenced. Since portable code cannot 8446b789ec8aSmrg # rely on this symbol name, it's probably fine to never include it in 8447b789ec8aSmrg # preloaded symbol tables. 8448b789ec8aSmrg # Exclude shared library initialization/finalization symbols. 8449b789ec8aSmrg extract_expsyms_cmds= 8450c43cc173Smrg 8451b789ec8aSmrg case $host_os in 8452b789ec8aSmrg cygwin* | mingw* | pw32* | cegcc*) 8453b789ec8aSmrg # FIXME: the MSVC++ port hasn't been tested in a loooong time 8454b789ec8aSmrg # When not using gcc, we currently assume that we are using 8455b789ec8aSmrg # Microsoft Visual C++. 8456b789ec8aSmrg if test "$GCC" != yes; then 8457b789ec8aSmrg with_gnu_ld=no 8458b789ec8aSmrg fi 8459b789ec8aSmrg ;; 8460b789ec8aSmrg interix*) 8461b789ec8aSmrg # we just hope/assume this is gcc and not c89 (= MSVC++) 8462b789ec8aSmrg with_gnu_ld=yes 8463b789ec8aSmrg ;; 8464b789ec8aSmrg openbsd*) 8465b789ec8aSmrg with_gnu_ld=no 8466b789ec8aSmrg ;; 8467b789ec8aSmrg esac 8468c43cc173Smrg 8469b789ec8aSmrg ld_shlibs=yes 8470c43cc173Smrg 8471b789ec8aSmrg # On some targets, GNU ld is compatible enough with the native linker 8472b789ec8aSmrg # that we're better off using the native interface for both. 8473b789ec8aSmrg lt_use_gnu_ld_interface=no 8474b789ec8aSmrg if test "$with_gnu_ld" = yes; then 8475b789ec8aSmrg case $host_os in 8476b789ec8aSmrg aix*) 8477b789ec8aSmrg # The AIX port of GNU ld has always aspired to compatibility 8478b789ec8aSmrg # with the native linker. However, as the warning in the GNU ld 8479b789ec8aSmrg # block says, versions before 2.19.5* couldn't really create working 8480b789ec8aSmrg # shared libraries, regardless of the interface used. 8481b789ec8aSmrg case `$LD -v 2>&1` in 8482b789ec8aSmrg *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8483b789ec8aSmrg *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8484b789ec8aSmrg *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8485b789ec8aSmrg *) 8486b789ec8aSmrg lt_use_gnu_ld_interface=yes 8487b789ec8aSmrg ;; 8488b789ec8aSmrg esac 8489b789ec8aSmrg ;; 8490b789ec8aSmrg *) 8491b789ec8aSmrg lt_use_gnu_ld_interface=yes 8492b789ec8aSmrg ;; 8493b789ec8aSmrg esac 8494b789ec8aSmrg fi 84953e256790Smrg 8496b789ec8aSmrg if test "$lt_use_gnu_ld_interface" = yes; then 8497b789ec8aSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 8498b789ec8aSmrg wlarc='${wl}' 84993e256790Smrg 8500b789ec8aSmrg # Set some defaults for GNU ld with shared library support. These 8501b789ec8aSmrg # are reset later if shared libraries are not supported. Putting them 8502b789ec8aSmrg # here allows them to be overridden if necessary. 8503b789ec8aSmrg runpath_var=LD_RUN_PATH 8504b789ec8aSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8505b789ec8aSmrg export_dynamic_flag_spec='${wl}--export-dynamic' 8506b789ec8aSmrg # ancient GNU ld didn't support --whole-archive et. al. 8507b789ec8aSmrg if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8508b789ec8aSmrg whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8509b789ec8aSmrg else 8510b789ec8aSmrg whole_archive_flag_spec= 8511b789ec8aSmrg fi 8512b789ec8aSmrg supports_anon_versioning=no 8513b789ec8aSmrg case `$LD -v 2>&1` in 8514b789ec8aSmrg *GNU\ gold*) supports_anon_versioning=yes ;; 8515b789ec8aSmrg *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8516b789ec8aSmrg *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8517b789ec8aSmrg *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8518b789ec8aSmrg *\ 2.11.*) ;; # other 2.11 versions 8519b789ec8aSmrg *) supports_anon_versioning=yes ;; 8520b789ec8aSmrg esac 85213e256790Smrg 8522b789ec8aSmrg # See if GNU ld supports shared libraries. 8523b789ec8aSmrg case $host_os in 8524b789ec8aSmrg aix[3-9]*) 8525b789ec8aSmrg # On AIX/PPC, the GNU linker is very broken 8526b789ec8aSmrg if test "$host_cpu" != ia64; then 8527b789ec8aSmrg ld_shlibs=no 8528b789ec8aSmrg cat <<_LT_EOF 1>&2 85293e256790Smrg 8530b789ec8aSmrg*** Warning: the GNU linker, at least up to release 2.19, is reported 8531b789ec8aSmrg*** to be unable to reliably create shared libraries on AIX. 8532b789ec8aSmrg*** Therefore, libtool is disabling shared libraries support. If you 8533b789ec8aSmrg*** really care for shared libraries, you may want to install binutils 8534b789ec8aSmrg*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8535b789ec8aSmrg*** You will then need to restart the configuration process. 8536c43cc173Smrg 8537c27c18e8Smrg_LT_EOF 8538c43cc173Smrg fi 8539b789ec8aSmrg ;; 8540c43cc173Smrg 8541b789ec8aSmrg amigaos*) 8542b789ec8aSmrg case $host_cpu in 8543b789ec8aSmrg powerpc) 8544b789ec8aSmrg # see comment about AmigaOS4 .so support 8545b789ec8aSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8546b789ec8aSmrg archive_expsym_cmds='' 8547b789ec8aSmrg ;; 8548b789ec8aSmrg m68k) 8549b789ec8aSmrg 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)' 8550b789ec8aSmrg hardcode_libdir_flag_spec='-L$libdir' 8551b789ec8aSmrg hardcode_minus_L=yes 8552b789ec8aSmrg ;; 8553b789ec8aSmrg esac 8554b789ec8aSmrg ;; 8555c43cc173Smrg 8556b789ec8aSmrg beos*) 8557b789ec8aSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8558b789ec8aSmrg allow_undefined_flag=unsupported 8559b789ec8aSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8560b789ec8aSmrg # support --undefined. This deserves some investigation. FIXME 8561b789ec8aSmrg archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8562b789ec8aSmrg else 8563b789ec8aSmrg ld_shlibs=no 8564b789ec8aSmrg fi 8565b789ec8aSmrg ;; 8566c43cc173Smrg 8567b789ec8aSmrg cygwin* | mingw* | pw32* | cegcc*) 8568b789ec8aSmrg # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8569b789ec8aSmrg # as there is no search path for DLLs. 8570b789ec8aSmrg hardcode_libdir_flag_spec='-L$libdir' 8571b789ec8aSmrg export_dynamic_flag_spec='${wl}--export-all-symbols' 8572b789ec8aSmrg allow_undefined_flag=unsupported 8573b789ec8aSmrg always_export_symbols=no 8574b789ec8aSmrg enable_shared_with_static_runtimes=yes 8575b789ec8aSmrg export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 8576b789ec8aSmrg exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8577c27c18e8Smrg 8578b789ec8aSmrg if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8579b789ec8aSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8580b789ec8aSmrg # If the export-symbols file already is a .def file (1st line 8581b789ec8aSmrg # is EXPORTS), use it as is; otherwise, prepend... 8582b789ec8aSmrg archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8583b789ec8aSmrg cp $export_symbols $output_objdir/$soname.def; 8584b789ec8aSmrg else 8585b789ec8aSmrg echo EXPORTS > $output_objdir/$soname.def; 8586b789ec8aSmrg cat $export_symbols >> $output_objdir/$soname.def; 8587b789ec8aSmrg fi~ 8588b789ec8aSmrg $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8589b789ec8aSmrg else 8590b789ec8aSmrg ld_shlibs=no 8591b789ec8aSmrg fi 8592b789ec8aSmrg ;; 8593c43cc173Smrg 8594b789ec8aSmrg haiku*) 8595b789ec8aSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8596b789ec8aSmrg link_all_deplibs=yes 8597b789ec8aSmrg ;; 8598c43cc173Smrg 8599b789ec8aSmrg interix[3-9]*) 8600b789ec8aSmrg hardcode_direct=no 8601b789ec8aSmrg hardcode_shlibpath_var=no 8602b789ec8aSmrg hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8603b789ec8aSmrg export_dynamic_flag_spec='${wl}-E' 8604b789ec8aSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8605b789ec8aSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 8606b789ec8aSmrg # default) and relocated if they conflict, which is a slow very memory 8607b789ec8aSmrg # consuming and fragmenting process. To avoid this, we pick a random, 8608b789ec8aSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8609b789ec8aSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8610b789ec8aSmrg archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8611b789ec8aSmrg 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' 8612b789ec8aSmrg ;; 8613c27c18e8Smrg 8614b789ec8aSmrg gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8615b789ec8aSmrg tmp_diet=no 8616b789ec8aSmrg if test "$host_os" = linux-dietlibc; then 8617b789ec8aSmrg case $cc_basename in 8618b789ec8aSmrg diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8619c27c18e8Smrg esac 8620c43cc173Smrg fi 8621b789ec8aSmrg if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8622b789ec8aSmrg && test "$tmp_diet" = no 8623b789ec8aSmrg then 8624b789ec8aSmrg tmp_addflag=' $pic_flag' 8625b789ec8aSmrg tmp_sharedflag='-shared' 8626b789ec8aSmrg case $cc_basename,$host_cpu in 8627b789ec8aSmrg pgcc*) # Portland Group C compiler 8628b789ec8aSmrg whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8629b789ec8aSmrg tmp_addflag=' $pic_flag' 8630b789ec8aSmrg ;; 8631b789ec8aSmrg pgf77* | pgf90* | pgf95* | pgfortran*) 8632b789ec8aSmrg # Portland Group f77 and f90 compilers 8633b789ec8aSmrg whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8634b789ec8aSmrg tmp_addflag=' $pic_flag -Mnomain' ;; 8635b789ec8aSmrg ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8636b789ec8aSmrg tmp_addflag=' -i_dynamic' ;; 8637b789ec8aSmrg efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8638b789ec8aSmrg tmp_addflag=' -i_dynamic -nofor_main' ;; 8639b789ec8aSmrg ifc* | ifort*) # Intel Fortran compiler 8640b789ec8aSmrg tmp_addflag=' -nofor_main' ;; 8641b789ec8aSmrg lf95*) # Lahey Fortran 8.1 8642b789ec8aSmrg whole_archive_flag_spec= 8643b789ec8aSmrg tmp_sharedflag='--shared' ;; 8644b789ec8aSmrg xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8645b789ec8aSmrg tmp_sharedflag='-qmkshrobj' 8646b789ec8aSmrg tmp_addflag= ;; 8647b789ec8aSmrg nvcc*) # Cuda Compiler Driver 2.2 8648b789ec8aSmrg whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8649b789ec8aSmrg compiler_needs_object=yes 8650b789ec8aSmrg ;; 8651b789ec8aSmrg esac 8652b789ec8aSmrg case `$CC -V 2>&1 | sed 5q` in 8653b789ec8aSmrg *Sun\ C*) # Sun C 5.9 8654b789ec8aSmrg whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8655b789ec8aSmrg compiler_needs_object=yes 8656b789ec8aSmrg tmp_sharedflag='-G' ;; 8657b789ec8aSmrg *Sun\ F*) # Sun Fortran 8.3 8658b789ec8aSmrg tmp_sharedflag='-G' ;; 8659b789ec8aSmrg esac 8660b789ec8aSmrg archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8661c43cc173Smrg 8662b789ec8aSmrg if test "x$supports_anon_versioning" = xyes; then 8663b789ec8aSmrg archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8664b789ec8aSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8665b789ec8aSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 8666b789ec8aSmrg $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8667b789ec8aSmrg fi 8668c43cc173Smrg 8669b789ec8aSmrg case $cc_basename in 8670b789ec8aSmrg xlf* | bgf* | bgxlf* | mpixlf*) 8671b789ec8aSmrg # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8672b789ec8aSmrg whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8673b789ec8aSmrg hardcode_libdir_flag_spec= 8674b789ec8aSmrg hardcode_libdir_flag_spec_ld='-rpath $libdir' 8675b789ec8aSmrg archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8676b789ec8aSmrg if test "x$supports_anon_versioning" = xyes; then 8677b789ec8aSmrg archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8678b789ec8aSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8679b789ec8aSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 8680b789ec8aSmrg $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8681b789ec8aSmrg fi 8682b789ec8aSmrg ;; 8683b789ec8aSmrg esac 8684b789ec8aSmrg else 8685b789ec8aSmrg ld_shlibs=no 8686b789ec8aSmrg fi 8687b789ec8aSmrg ;; 8688c43cc173Smrg 8689b789ec8aSmrg netbsd*) 8690b789ec8aSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8691b789ec8aSmrg archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8692b789ec8aSmrg wlarc= 8693b789ec8aSmrg else 8694b789ec8aSmrg archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8695b789ec8aSmrg archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8696b789ec8aSmrg fi 8697b789ec8aSmrg ;; 8698c43cc173Smrg 8699b789ec8aSmrg solaris*) 8700b789ec8aSmrg if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8701b789ec8aSmrg ld_shlibs=no 8702b789ec8aSmrg cat <<_LT_EOF 1>&2 8703c43cc173Smrg 8704b789ec8aSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8705b789ec8aSmrg*** create shared libraries on Solaris systems. Therefore, libtool 8706b789ec8aSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 8707b789ec8aSmrg*** binutils to release 2.9.1 or newer. Another option is to modify 8708b789ec8aSmrg*** your PATH or compiler configuration so that the native linker is 8709b789ec8aSmrg*** used, and then restart. 8710c43cc173Smrg 8711b789ec8aSmrg_LT_EOF 8712b789ec8aSmrg elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8713b789ec8aSmrg archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8714b789ec8aSmrg archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8715b789ec8aSmrg else 8716b789ec8aSmrg ld_shlibs=no 8717b789ec8aSmrg fi 8718b789ec8aSmrg ;; 8719c43cc173Smrg 8720b789ec8aSmrg sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8721b789ec8aSmrg case `$LD -v 2>&1` in 8722b789ec8aSmrg *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8723b789ec8aSmrg ld_shlibs=no 8724b789ec8aSmrg cat <<_LT_EOF 1>&2 8725c43cc173Smrg 8726b789ec8aSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8727b789ec8aSmrg*** reliably create shared libraries on SCO systems. Therefore, libtool 8728b789ec8aSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 8729b789ec8aSmrg*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8730b789ec8aSmrg*** your PATH or compiler configuration so that the native linker is 8731b789ec8aSmrg*** used, and then restart. 8732c43cc173Smrg 8733b789ec8aSmrg_LT_EOF 8734b789ec8aSmrg ;; 8735b789ec8aSmrg *) 8736b789ec8aSmrg # For security reasons, it is highly recommended that you always 8737b789ec8aSmrg # use absolute paths for naming shared libraries, and exclude the 8738b789ec8aSmrg # DT_RUNPATH tag from executables and libraries. But doing so 8739b789ec8aSmrg # requires that you compile everything twice, which is a pain. 8740b789ec8aSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8741b789ec8aSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8742b789ec8aSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8743b789ec8aSmrg archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8744b789ec8aSmrg else 8745b789ec8aSmrg ld_shlibs=no 8746b789ec8aSmrg fi 8747b789ec8aSmrg ;; 8748b789ec8aSmrg esac 8749b789ec8aSmrg ;; 8750c43cc173Smrg 8751b789ec8aSmrg sunos4*) 8752b789ec8aSmrg archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8753b789ec8aSmrg wlarc= 8754b789ec8aSmrg hardcode_direct=yes 8755b789ec8aSmrg hardcode_shlibpath_var=no 8756b789ec8aSmrg ;; 8757c27c18e8Smrg 8758b789ec8aSmrg *) 8759b789ec8aSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8760b789ec8aSmrg archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8761b789ec8aSmrg archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8762b789ec8aSmrg else 8763b789ec8aSmrg ld_shlibs=no 8764b789ec8aSmrg fi 8765b789ec8aSmrg ;; 8766b789ec8aSmrg esac 8767c43cc173Smrg 8768b789ec8aSmrg if test "$ld_shlibs" = no; then 8769b789ec8aSmrg runpath_var= 8770b789ec8aSmrg hardcode_libdir_flag_spec= 8771b789ec8aSmrg export_dynamic_flag_spec= 8772b789ec8aSmrg whole_archive_flag_spec= 8773b789ec8aSmrg fi 8774b789ec8aSmrg else 8775b789ec8aSmrg # PORTME fill in a description of your system's linker (not GNU ld) 8776b789ec8aSmrg case $host_os in 8777b789ec8aSmrg aix3*) 8778b789ec8aSmrg allow_undefined_flag=unsupported 8779b789ec8aSmrg always_export_symbols=yes 8780b789ec8aSmrg 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' 8781b789ec8aSmrg # Note: this linker hardcodes the directories in LIBPATH if there 8782b789ec8aSmrg # are no directories specified by -L. 8783b789ec8aSmrg hardcode_minus_L=yes 8784b789ec8aSmrg if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8785b789ec8aSmrg # Neither direct hardcoding nor static linking is supported with a 8786b789ec8aSmrg # broken collect2. 8787b789ec8aSmrg hardcode_direct=unsupported 8788b789ec8aSmrg fi 8789b789ec8aSmrg ;; 8790c43cc173Smrg 8791b789ec8aSmrg aix[4-9]*) 8792b789ec8aSmrg if test "$host_cpu" = ia64; then 8793b789ec8aSmrg # On IA64, the linker does run time linking by default, so we don't 8794b789ec8aSmrg # have to do anything special. 8795b789ec8aSmrg aix_use_runtimelinking=no 8796b789ec8aSmrg exp_sym_flag='-Bexport' 8797b789ec8aSmrg no_entry_flag="" 8798b789ec8aSmrg else 8799b789ec8aSmrg # If we're using GNU nm, then we don't want the "-C" option. 8800b789ec8aSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 8801b789ec8aSmrg # Also, AIX nm treats weak defined symbols like other global 8802b789ec8aSmrg # defined symbols, whereas GNU nm marks them as "W". 8803b789ec8aSmrg if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8804b789ec8aSmrg export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8805b789ec8aSmrg else 8806b789ec8aSmrg 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' 8807b789ec8aSmrg fi 8808b789ec8aSmrg aix_use_runtimelinking=no 8809c43cc173Smrg 8810b789ec8aSmrg # Test if we are trying to use run time linking or normal 8811b789ec8aSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8812b789ec8aSmrg # need to do runtime linking. 8813b789ec8aSmrg case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8814b789ec8aSmrg for ld_flag in $LDFLAGS; do 8815b789ec8aSmrg if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8816b789ec8aSmrg aix_use_runtimelinking=yes 8817b789ec8aSmrg break 8818b789ec8aSmrg fi 8819b789ec8aSmrg done 8820b789ec8aSmrg ;; 8821b789ec8aSmrg esac 8822c43cc173Smrg 8823b789ec8aSmrg exp_sym_flag='-bexport' 8824b789ec8aSmrg no_entry_flag='-bnoentry' 8825b789ec8aSmrg fi 8826c27c18e8Smrg 8827b789ec8aSmrg # When large executables or shared objects are built, AIX ld can 8828b789ec8aSmrg # have problems creating the table of contents. If linking a library 8829b789ec8aSmrg # or program results in "error TOC overflow" add -mminimal-toc to 8830b789ec8aSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8831b789ec8aSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8832c43cc173Smrg 8833b789ec8aSmrg archive_cmds='' 8834b789ec8aSmrg hardcode_direct=yes 8835b789ec8aSmrg hardcode_direct_absolute=yes 8836b789ec8aSmrg hardcode_libdir_separator=':' 8837b789ec8aSmrg link_all_deplibs=yes 8838b789ec8aSmrg file_list_spec='${wl}-f,' 8839c43cc173Smrg 8840b789ec8aSmrg if test "$GCC" = yes; then 8841b789ec8aSmrg case $host_os in aix4.[012]|aix4.[012].*) 8842b789ec8aSmrg # We only want to do this on AIX 4.2 and lower, the check 8843b789ec8aSmrg # below for broken collect2 doesn't work under 4.3+ 8844b789ec8aSmrg collect2name=`${CC} -print-prog-name=collect2` 8845b789ec8aSmrg if test -f "$collect2name" && 8846b789ec8aSmrg strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8847b789ec8aSmrg then 8848b789ec8aSmrg # We have reworked collect2 8849b789ec8aSmrg : 8850b789ec8aSmrg else 8851b789ec8aSmrg # We have old collect2 8852b789ec8aSmrg hardcode_direct=unsupported 8853b789ec8aSmrg # It fails to find uninstalled libraries when the uninstalled 8854b789ec8aSmrg # path is not listed in the libpath. Setting hardcode_minus_L 8855b789ec8aSmrg # to unsupported forces relinking 8856b789ec8aSmrg hardcode_minus_L=yes 8857b789ec8aSmrg hardcode_libdir_flag_spec='-L$libdir' 8858b789ec8aSmrg hardcode_libdir_separator= 8859b789ec8aSmrg fi 8860b789ec8aSmrg ;; 8861b789ec8aSmrg esac 8862b789ec8aSmrg shared_flag='-shared' 8863b789ec8aSmrg if test "$aix_use_runtimelinking" = yes; then 8864b789ec8aSmrg shared_flag="$shared_flag "'${wl}-G' 8865b789ec8aSmrg fi 8866b789ec8aSmrg else 8867b789ec8aSmrg # not using gcc 8868b789ec8aSmrg if test "$host_cpu" = ia64; then 8869b789ec8aSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8870b789ec8aSmrg # chokes on -Wl,-G. The following line is correct: 8871b789ec8aSmrg shared_flag='-G' 8872b789ec8aSmrg else 8873b789ec8aSmrg if test "$aix_use_runtimelinking" = yes; then 8874b789ec8aSmrg shared_flag='${wl}-G' 8875b789ec8aSmrg else 8876b789ec8aSmrg shared_flag='${wl}-bM:SRE' 8877b789ec8aSmrg fi 8878b789ec8aSmrg fi 8879b789ec8aSmrg fi 88803e256790Smrg 8881b789ec8aSmrg export_dynamic_flag_spec='${wl}-bexpall' 8882b789ec8aSmrg # It seems that -bexpall does not export symbols beginning with 8883b789ec8aSmrg # underscore (_), so it is better to generate a list of symbols to export. 8884b789ec8aSmrg always_export_symbols=yes 8885b789ec8aSmrg if test "$aix_use_runtimelinking" = yes; then 8886b789ec8aSmrg # Warning - without using the other runtime loading flags (-brtl), 8887b789ec8aSmrg # -berok will link without error, but may produce a broken library. 8888b789ec8aSmrg allow_undefined_flag='-berok' 8889b789ec8aSmrg # Determine the default libpath from the value encoded in an 8890b789ec8aSmrg # empty executable. 8891b789ec8aSmrg if test "${lt_cv_aix_libpath+set}" = set; then 8892b789ec8aSmrg aix_libpath=$lt_cv_aix_libpath 8893b789ec8aSmrgelse 8894b789ec8aSmrg if ${lt_cv_aix_libpath_+:} false; then : 88953e256790Smrg $as_echo_n "(cached) " >&6 8896c43cc173Smrgelse 8897b789ec8aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8898b789ec8aSmrg/* end confdefs.h. */ 8899c43cc173Smrg 8900b789ec8aSmrgint 8901b789ec8aSmrgmain () 8902b789ec8aSmrg{ 8903c43cc173Smrg 8904b789ec8aSmrg ; 8905b789ec8aSmrg return 0; 8906b789ec8aSmrg} 8907b789ec8aSmrg_ACEOF 8908b789ec8aSmrgif ac_fn_c_try_link "$LINENO"; then : 8909c43cc173Smrg 8910b789ec8aSmrg lt_aix_libpath_sed=' 8911b789ec8aSmrg /Import File Strings/,/^$/ { 8912b789ec8aSmrg /^0/ { 8913b789ec8aSmrg s/^0 *\([^ ]*\) *$/\1/ 8914b789ec8aSmrg p 8915b789ec8aSmrg } 8916b789ec8aSmrg }' 8917b789ec8aSmrg lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8918b789ec8aSmrg # Check for a 64-bit object if we didn't find anything. 8919b789ec8aSmrg if test -z "$lt_cv_aix_libpath_"; then 8920b789ec8aSmrg lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8921b789ec8aSmrg fi 89223e256790Smrgfi 8923b789ec8aSmrgrm -f core conftest.err conftest.$ac_objext \ 8924b789ec8aSmrg conftest$ac_exeext conftest.$ac_ext 8925b789ec8aSmrg if test -z "$lt_cv_aix_libpath_"; then 8926b789ec8aSmrg lt_cv_aix_libpath_="/usr/lib:/lib" 8927b789ec8aSmrg fi 8928c43cc173Smrg 8929b789ec8aSmrgfi 89303e256790Smrg 8931b789ec8aSmrg aix_libpath=$lt_cv_aix_libpath_ 8932b789ec8aSmrgfi 89333e256790Smrg 8934b789ec8aSmrg hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8935b789ec8aSmrg archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8936b789ec8aSmrg else 8937b789ec8aSmrg if test "$host_cpu" = ia64; then 8938b789ec8aSmrg hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8939b789ec8aSmrg allow_undefined_flag="-z nodefs" 8940b789ec8aSmrg 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" 8941b789ec8aSmrg else 8942b789ec8aSmrg # Determine the default libpath from the value encoded in an 8943b789ec8aSmrg # empty executable. 8944b789ec8aSmrg if test "${lt_cv_aix_libpath+set}" = set; then 8945b789ec8aSmrg aix_libpath=$lt_cv_aix_libpath 8946b789ec8aSmrgelse 8947b789ec8aSmrg if ${lt_cv_aix_libpath_+:} false; then : 8948b789ec8aSmrg $as_echo_n "(cached) " >&6 8949b789ec8aSmrgelse 8950b789ec8aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8951b789ec8aSmrg/* end confdefs.h. */ 89523e256790Smrg 8953b789ec8aSmrgint 8954b789ec8aSmrgmain () 8955b789ec8aSmrg{ 89563e256790Smrg 8957b789ec8aSmrg ; 8958b789ec8aSmrg return 0; 8959b789ec8aSmrg} 8960b789ec8aSmrg_ACEOF 8961b789ec8aSmrgif ac_fn_c_try_link "$LINENO"; then : 89623e256790Smrg 8963b789ec8aSmrg lt_aix_libpath_sed=' 8964b789ec8aSmrg /Import File Strings/,/^$/ { 8965b789ec8aSmrg /^0/ { 8966b789ec8aSmrg s/^0 *\([^ ]*\) *$/\1/ 8967b789ec8aSmrg p 8968b789ec8aSmrg } 8969b789ec8aSmrg }' 8970b789ec8aSmrg lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8971b789ec8aSmrg # Check for a 64-bit object if we didn't find anything. 8972b789ec8aSmrg if test -z "$lt_cv_aix_libpath_"; then 8973b789ec8aSmrg lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8974b789ec8aSmrg fi 8975b789ec8aSmrgfi 8976b789ec8aSmrgrm -f core conftest.err conftest.$ac_objext \ 8977b789ec8aSmrg conftest$ac_exeext conftest.$ac_ext 8978b789ec8aSmrg if test -z "$lt_cv_aix_libpath_"; then 8979b789ec8aSmrg lt_cv_aix_libpath_="/usr/lib:/lib" 8980b789ec8aSmrg fi 89813e256790Smrg 8982b789ec8aSmrgfi 89833e256790Smrg 8984b789ec8aSmrg aix_libpath=$lt_cv_aix_libpath_ 8985b789ec8aSmrgfi 89863e256790Smrg 8987b789ec8aSmrg hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8988b789ec8aSmrg # Warning - without using the other run time loading flags, 8989b789ec8aSmrg # -berok will link without error, but may produce a broken library. 8990b789ec8aSmrg no_undefined_flag=' ${wl}-bernotok' 8991b789ec8aSmrg allow_undefined_flag=' ${wl}-berok' 8992b789ec8aSmrg if test "$with_gnu_ld" = yes; then 8993b789ec8aSmrg # We only use this code for GNU lds that support --whole-archive. 8994b789ec8aSmrg whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8995b789ec8aSmrg else 8996b789ec8aSmrg # Exported symbols can be pulled into shared objects from archives 8997b789ec8aSmrg whole_archive_flag_spec='$convenience' 8998b789ec8aSmrg fi 8999b789ec8aSmrg archive_cmds_need_lc=yes 9000b789ec8aSmrg # This is similar to how AIX traditionally builds its shared libraries. 9001b789ec8aSmrg 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' 9002b789ec8aSmrg fi 9003c43cc173Smrg fi 9004c43cc173Smrg ;; 9005c43cc173Smrg 9006c43cc173Smrg amigaos*) 9007c27c18e8Smrg case $host_cpu in 9008c27c18e8Smrg powerpc) 9009c27c18e8Smrg # see comment about AmigaOS4 .so support 9010b789ec8aSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9011b789ec8aSmrg archive_expsym_cmds='' 9012c27c18e8Smrg ;; 9013c27c18e8Smrg m68k) 9014b789ec8aSmrg 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)' 9015b789ec8aSmrg hardcode_libdir_flag_spec='-L$libdir' 9016b789ec8aSmrg hardcode_minus_L=yes 9017c27c18e8Smrg ;; 9018c27c18e8Smrg esac 9019c43cc173Smrg ;; 9020c43cc173Smrg 9021b789ec8aSmrg bsdi[45]*) 9022b789ec8aSmrg export_dynamic_flag_spec=-rdynamic 9023c43cc173Smrg ;; 9024c43cc173Smrg 9025b789ec8aSmrg cygwin* | mingw* | pw32* | cegcc*) 9026b789ec8aSmrg # When not using gcc, we currently assume that we are using 9027b789ec8aSmrg # Microsoft Visual C++. 9028b789ec8aSmrg # hardcode_libdir_flag_spec is actually meaningless, as there is 9029b789ec8aSmrg # no search path for DLLs. 9030b789ec8aSmrg case $cc_basename in 9031b789ec8aSmrg cl*) 9032b789ec8aSmrg # Native MSVC 9033b789ec8aSmrg hardcode_libdir_flag_spec=' ' 9034b789ec8aSmrg allow_undefined_flag=unsupported 9035b789ec8aSmrg always_export_symbols=yes 9036b789ec8aSmrg file_list_spec='@' 9037b789ec8aSmrg # Tell ltmain to make .lib files, not .a files. 9038b789ec8aSmrg libext=lib 9039b789ec8aSmrg # Tell ltmain to make .dll files, not .so files. 9040b789ec8aSmrg shrext_cmds=".dll" 9041b789ec8aSmrg # FIXME: Setting linknames here is a bad hack. 9042b789ec8aSmrg archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9043b789ec8aSmrg archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9044b789ec8aSmrg sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9045b789ec8aSmrg else 9046b789ec8aSmrg sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9047b789ec8aSmrg fi~ 9048b789ec8aSmrg $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9049b789ec8aSmrg linknames=' 9050b789ec8aSmrg # The linker will not automatically build a static lib if we build a DLL. 9051b789ec8aSmrg # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9052b789ec8aSmrg enable_shared_with_static_runtimes=yes 9053b789ec8aSmrg export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9054b789ec8aSmrg # Don't use ranlib 9055b789ec8aSmrg old_postinstall_cmds='chmod 644 $oldlib' 9056b789ec8aSmrg postlink_cmds='lt_outputfile="@OUTPUT@"~ 9057b789ec8aSmrg lt_tool_outputfile="@TOOL_OUTPUT@"~ 9058b789ec8aSmrg case $lt_outputfile in 9059b789ec8aSmrg *.exe|*.EXE) ;; 9060b789ec8aSmrg *) 9061b789ec8aSmrg lt_outputfile="$lt_outputfile.exe" 9062b789ec8aSmrg lt_tool_outputfile="$lt_tool_outputfile.exe" 9063b789ec8aSmrg ;; 9064b789ec8aSmrg esac~ 9065b789ec8aSmrg if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9066b789ec8aSmrg $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9067b789ec8aSmrg $RM "$lt_outputfile.manifest"; 9068b789ec8aSmrg fi' 90693e256790Smrg ;; 90703e256790Smrg *) 9071b789ec8aSmrg # Assume MSVC wrapper 9072b789ec8aSmrg hardcode_libdir_flag_spec=' ' 9073b789ec8aSmrg allow_undefined_flag=unsupported 9074b789ec8aSmrg # Tell ltmain to make .lib files, not .a files. 9075b789ec8aSmrg libext=lib 9076b789ec8aSmrg # Tell ltmain to make .dll files, not .so files. 9077b789ec8aSmrg shrext_cmds=".dll" 9078b789ec8aSmrg # FIXME: Setting linknames here is a bad hack. 9079b789ec8aSmrg archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9080b789ec8aSmrg # The linker will automatically build a .lib file if we build a DLL. 9081b789ec8aSmrg old_archive_from_new_cmds='true' 9082b789ec8aSmrg # FIXME: Should let the user specify the lib program. 9083b789ec8aSmrg old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9084b789ec8aSmrg enable_shared_with_static_runtimes=yes 90853e256790Smrg ;; 90863e256790Smrg esac 9087c43cc173Smrg ;; 9088c43cc173Smrg 9089b789ec8aSmrg darwin* | rhapsody*) 9090c43cc173Smrg 9091c43cc173Smrg 9092b789ec8aSmrg archive_cmds_need_lc=no 9093b789ec8aSmrg hardcode_direct=no 9094b789ec8aSmrg hardcode_automatic=yes 9095b789ec8aSmrg hardcode_shlibpath_var=unsupported 9096b789ec8aSmrg if test "$lt_cv_ld_force_load" = "yes"; then 9097b789ec8aSmrg whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 9098b789ec8aSmrg else 9099b789ec8aSmrg whole_archive_flag_spec='' 9100b789ec8aSmrg fi 9101b789ec8aSmrg link_all_deplibs=yes 9102b789ec8aSmrg allow_undefined_flag="$_lt_dar_allow_undefined" 9103b789ec8aSmrg case $cc_basename in 9104b789ec8aSmrg ifort*) _lt_dar_can_shared=yes ;; 9105b789ec8aSmrg *) _lt_dar_can_shared=$GCC ;; 9106b789ec8aSmrg esac 9107b789ec8aSmrg if test "$_lt_dar_can_shared" = "yes"; then 9108b789ec8aSmrg output_verbose_link_cmd=func_echo_all 9109b789ec8aSmrg archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9110b789ec8aSmrg module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9111b789ec8aSmrg 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}" 9112b789ec8aSmrg 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}" 911337eb1ca1Smrg 91143e256790Smrg else 9115b789ec8aSmrg ld_shlibs=no 9116b789ec8aSmrg fi 9117c43cc173Smrg 91183e256790Smrg ;; 9119c43cc173Smrg 9120b789ec8aSmrg dgux*) 9121b789ec8aSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9122b789ec8aSmrg hardcode_libdir_flag_spec='-L$libdir' 9123b789ec8aSmrg hardcode_shlibpath_var=no 9124c43cc173Smrg ;; 9125c43cc173Smrg 9126b789ec8aSmrg freebsd1*) 9127b789ec8aSmrg ld_shlibs=no 9128c43cc173Smrg ;; 9129c43cc173Smrg 9130b789ec8aSmrg # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9131b789ec8aSmrg # support. Future versions do this automatically, but an explicit c++rt0.o 9132b789ec8aSmrg # does not break anything, and helps significantly (at the cost of a little 9133b789ec8aSmrg # extra space). 9134b789ec8aSmrg freebsd2.2*) 9135b789ec8aSmrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9136b789ec8aSmrg hardcode_libdir_flag_spec='-R$libdir' 9137b789ec8aSmrg hardcode_direct=yes 9138b789ec8aSmrg hardcode_shlibpath_var=no 9139c43cc173Smrg ;; 9140c43cc173Smrg 9141b789ec8aSmrg # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9142b789ec8aSmrg freebsd2*) 9143b789ec8aSmrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9144b789ec8aSmrg hardcode_direct=yes 9145b789ec8aSmrg hardcode_minus_L=yes 9146b789ec8aSmrg hardcode_shlibpath_var=no 9147c27c18e8Smrg ;; 9148c27c18e8Smrg 9149b789ec8aSmrg # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9150b789ec8aSmrg freebsd* | dragonfly*) 9151b789ec8aSmrg archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9152b789ec8aSmrg hardcode_libdir_flag_spec='-R$libdir' 9153b789ec8aSmrg hardcode_direct=yes 9154b789ec8aSmrg hardcode_shlibpath_var=no 9155c43cc173Smrg ;; 9156c43cc173Smrg 9157b789ec8aSmrg hpux9*) 9158b789ec8aSmrg if test "$GCC" = yes; then 9159b789ec8aSmrg archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9160b789ec8aSmrg else 9161b789ec8aSmrg 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' 9162b789ec8aSmrg fi 9163b789ec8aSmrg hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9164b789ec8aSmrg hardcode_libdir_separator=: 9165b789ec8aSmrg hardcode_direct=yes 9166c43cc173Smrg 9167b789ec8aSmrg # hardcode_minus_L: Not really in the search PATH, 9168b789ec8aSmrg # but as the default location of the library. 9169b789ec8aSmrg hardcode_minus_L=yes 9170b789ec8aSmrg export_dynamic_flag_spec='${wl}-E' 9171c43cc173Smrg ;; 9172c43cc173Smrg 9173b789ec8aSmrg hpux10*) 9174b789ec8aSmrg if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9175b789ec8aSmrg archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9176b789ec8aSmrg else 9177b789ec8aSmrg archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9178b789ec8aSmrg fi 9179b789ec8aSmrg if test "$with_gnu_ld" = no; then 9180b789ec8aSmrg hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9181b789ec8aSmrg hardcode_libdir_flag_spec_ld='+b $libdir' 9182b789ec8aSmrg hardcode_libdir_separator=: 9183b789ec8aSmrg hardcode_direct=yes 9184b789ec8aSmrg hardcode_direct_absolute=yes 9185b789ec8aSmrg export_dynamic_flag_spec='${wl}-E' 9186b789ec8aSmrg # hardcode_minus_L: Not really in the search PATH, 9187b789ec8aSmrg # but as the default location of the library. 9188b789ec8aSmrg hardcode_minus_L=yes 9189b789ec8aSmrg fi 9190c43cc173Smrg ;; 9191c43cc173Smrg 9192b789ec8aSmrg hpux11*) 9193b789ec8aSmrg if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9194b789ec8aSmrg case $host_cpu in 9195b789ec8aSmrg hppa*64*) 9196b789ec8aSmrg archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9197b789ec8aSmrg ;; 9198b789ec8aSmrg ia64*) 9199b789ec8aSmrg archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9200b789ec8aSmrg ;; 9201b789ec8aSmrg *) 9202b789ec8aSmrg archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9203b789ec8aSmrg ;; 9204b789ec8aSmrg esac 9205b789ec8aSmrg else 9206b789ec8aSmrg case $host_cpu in 9207b789ec8aSmrg hppa*64*) 9208b789ec8aSmrg archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9209b789ec8aSmrg ;; 9210b789ec8aSmrg ia64*) 9211b789ec8aSmrg archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9212b789ec8aSmrg ;; 9213b789ec8aSmrg *) 9214c27c18e8Smrg 9215b789ec8aSmrg # Older versions of the 11.00 compiler do not understand -b yet 9216b789ec8aSmrg # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9217b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9218b789ec8aSmrg$as_echo_n "checking if $CC understands -b... " >&6; } 9219b789ec8aSmrgif ${lt_cv_prog_compiler__b+:} false; then : 92203e256790Smrg $as_echo_n "(cached) " >&6 92213e256790Smrgelse 9222b789ec8aSmrg lt_cv_prog_compiler__b=no 92233e256790Smrg save_LDFLAGS="$LDFLAGS" 9224b789ec8aSmrg LDFLAGS="$LDFLAGS -b" 92253e256790Smrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 92263e256790Smrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 92273e256790Smrg # The linker can only warn and ignore the option if not recognized 92283e256790Smrg # So say no if there are warnings 92293e256790Smrg if test -s conftest.err; then 92303e256790Smrg # Append any errors to the config.log. 92313e256790Smrg cat conftest.err 1>&5 923237eb1ca1Smrg $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 92333e256790Smrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 92343e256790Smrg if diff conftest.exp conftest.er2 >/dev/null; then 9235b789ec8aSmrg lt_cv_prog_compiler__b=yes 92363e256790Smrg fi 92373e256790Smrg else 9238b789ec8aSmrg lt_cv_prog_compiler__b=yes 92393e256790Smrg fi 92403e256790Smrg fi 92413e256790Smrg $RM -r conftest* 92423e256790Smrg LDFLAGS="$save_LDFLAGS" 9243c27c18e8Smrg 92443e256790Smrgfi 9245b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9246b789ec8aSmrg$as_echo "$lt_cv_prog_compiler__b" >&6; } 9247c27c18e8Smrg 9248b789ec8aSmrgif test x"$lt_cv_prog_compiler__b" = xyes; then 9249b789ec8aSmrg archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 92503e256790Smrgelse 9251b789ec8aSmrg archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 92523e256790Smrgfi 9253c27c18e8Smrg 9254b789ec8aSmrg ;; 9255b789ec8aSmrg esac 9256b789ec8aSmrg fi 9257b789ec8aSmrg if test "$with_gnu_ld" = no; then 9258b789ec8aSmrg hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9259b789ec8aSmrg hardcode_libdir_separator=: 9260c27c18e8Smrg 9261b789ec8aSmrg case $host_cpu in 9262b789ec8aSmrg hppa*64*|ia64*) 9263b789ec8aSmrg hardcode_direct=no 9264b789ec8aSmrg hardcode_shlibpath_var=no 9265b789ec8aSmrg ;; 9266b789ec8aSmrg *) 9267b789ec8aSmrg hardcode_direct=yes 9268b789ec8aSmrg hardcode_direct_absolute=yes 9269b789ec8aSmrg export_dynamic_flag_spec='${wl}-E' 9270c27c18e8Smrg 9271b789ec8aSmrg # hardcode_minus_L: Not really in the search PATH, 9272b789ec8aSmrg # but as the default location of the library. 9273b789ec8aSmrg hardcode_minus_L=yes 9274b789ec8aSmrg ;; 9275b789ec8aSmrg esac 9276b789ec8aSmrg fi 9277b789ec8aSmrg ;; 9278c27c18e8Smrg 9279b789ec8aSmrg irix5* | irix6* | nonstopux*) 9280b789ec8aSmrg if test "$GCC" = yes; then 9281b789ec8aSmrg archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9282b789ec8aSmrg # Try to use the -exported_symbol ld option, if it does not 9283b789ec8aSmrg # work, assume that -exports_file does not work either and 9284b789ec8aSmrg # implicitly export all symbols. 9285b789ec8aSmrg # This should be the same for all languages, so no per-tag cache variable. 9286b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9287b789ec8aSmrg$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9288b789ec8aSmrgif ${lt_cv_irix_exported_symbol+:} false; then : 92893e256790Smrg $as_echo_n "(cached) " >&6 92903e256790Smrgelse 9291b789ec8aSmrg save_LDFLAGS="$LDFLAGS" 9292b789ec8aSmrg LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9293b789ec8aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9294b789ec8aSmrg/* end confdefs.h. */ 9295b789ec8aSmrgint foo (void) { return 0; } 9296b789ec8aSmrg_ACEOF 9297b789ec8aSmrgif ac_fn_c_try_link "$LINENO"; then : 9298b789ec8aSmrg lt_cv_irix_exported_symbol=yes 9299b789ec8aSmrgelse 9300b789ec8aSmrg lt_cv_irix_exported_symbol=no 93013e256790Smrgfi 9302b789ec8aSmrgrm -f core conftest.err conftest.$ac_objext \ 9303b789ec8aSmrg conftest$ac_exeext conftest.$ac_ext 9304b789ec8aSmrg LDFLAGS="$save_LDFLAGS" 9305b789ec8aSmrgfi 9306b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9307b789ec8aSmrg$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9308b789ec8aSmrg if test "$lt_cv_irix_exported_symbol" = yes; then 9309b789ec8aSmrg archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9310b789ec8aSmrg fi 9311b789ec8aSmrg else 9312b789ec8aSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9313b789ec8aSmrg archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 9314b789ec8aSmrg fi 9315b789ec8aSmrg archive_cmds_need_lc='no' 9316b789ec8aSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9317b789ec8aSmrg hardcode_libdir_separator=: 9318b789ec8aSmrg inherit_rpath=yes 9319b789ec8aSmrg link_all_deplibs=yes 9320b789ec8aSmrg ;; 9321c43cc173Smrg 9322b789ec8aSmrg netbsd*) 9323b789ec8aSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9324b789ec8aSmrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9325b789ec8aSmrg else 9326b789ec8aSmrg archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9327b789ec8aSmrg fi 9328b789ec8aSmrg hardcode_libdir_flag_spec='-R$libdir' 9329b789ec8aSmrg hardcode_direct=yes 9330b789ec8aSmrg hardcode_shlibpath_var=no 9331b789ec8aSmrg ;; 9332c43cc173Smrg 9333b789ec8aSmrg newsos6) 9334b789ec8aSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9335b789ec8aSmrg hardcode_direct=yes 9336b789ec8aSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9337b789ec8aSmrg hardcode_libdir_separator=: 9338b789ec8aSmrg hardcode_shlibpath_var=no 9339b789ec8aSmrg ;; 9340c43cc173Smrg 9341b789ec8aSmrg *nto* | *qnx*) 9342b789ec8aSmrg ;; 9343c43cc173Smrg 9344b789ec8aSmrg openbsd*) 9345b789ec8aSmrg if test -f /usr/libexec/ld.so; then 9346b789ec8aSmrg hardcode_direct=yes 9347b789ec8aSmrg hardcode_shlibpath_var=no 9348b789ec8aSmrg hardcode_direct_absolute=yes 9349b789ec8aSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9350b789ec8aSmrg archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9351b789ec8aSmrg archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9352b789ec8aSmrg hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9353b789ec8aSmrg export_dynamic_flag_spec='${wl}-E' 9354b789ec8aSmrg else 9355b789ec8aSmrg case $host_os in 9356b789ec8aSmrg openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9357b789ec8aSmrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9358b789ec8aSmrg hardcode_libdir_flag_spec='-R$libdir' 9359b789ec8aSmrg ;; 9360b789ec8aSmrg *) 9361b789ec8aSmrg archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9362b789ec8aSmrg hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9363b789ec8aSmrg ;; 9364b789ec8aSmrg esac 9365b789ec8aSmrg fi 9366b789ec8aSmrg else 9367b789ec8aSmrg ld_shlibs=no 9368b789ec8aSmrg fi 9369b789ec8aSmrg ;; 937021e67964Smrg 9371b789ec8aSmrg os2*) 9372b789ec8aSmrg hardcode_libdir_flag_spec='-L$libdir' 9373b789ec8aSmrg hardcode_minus_L=yes 9374b789ec8aSmrg allow_undefined_flag=unsupported 9375b789ec8aSmrg 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' 9376b789ec8aSmrg old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9377b789ec8aSmrg ;; 9378c43cc173Smrg 9379b789ec8aSmrg osf3*) 9380b789ec8aSmrg if test "$GCC" = yes; then 9381b789ec8aSmrg allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9382b789ec8aSmrg archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9383b789ec8aSmrg else 9384b789ec8aSmrg allow_undefined_flag=' -expect_unresolved \*' 9385b789ec8aSmrg archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9386b789ec8aSmrg fi 9387b789ec8aSmrg archive_cmds_need_lc='no' 9388b789ec8aSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9389b789ec8aSmrg hardcode_libdir_separator=: 9390b789ec8aSmrg ;; 9391c43cc173Smrg 9392b789ec8aSmrg osf4* | osf5*) # as osf3* with the addition of -msym flag 9393b789ec8aSmrg if test "$GCC" = yes; then 9394b789ec8aSmrg allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9395b789ec8aSmrg archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9396b789ec8aSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9397b789ec8aSmrg else 9398b789ec8aSmrg allow_undefined_flag=' -expect_unresolved \*' 9399b789ec8aSmrg archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9400b789ec8aSmrg 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~ 9401b789ec8aSmrg $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 9402c43cc173Smrg 9403b789ec8aSmrg # Both c and cxx compiler support -rpath directly 9404b789ec8aSmrg hardcode_libdir_flag_spec='-rpath $libdir' 9405b789ec8aSmrg fi 9406b789ec8aSmrg archive_cmds_need_lc='no' 9407b789ec8aSmrg hardcode_libdir_separator=: 9408b789ec8aSmrg ;; 9409c43cc173Smrg 9410b789ec8aSmrg solaris*) 9411b789ec8aSmrg no_undefined_flag=' -z defs' 9412b789ec8aSmrg if test "$GCC" = yes; then 9413b789ec8aSmrg wlarc='${wl}' 9414b789ec8aSmrg archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9415b789ec8aSmrg archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9416b789ec8aSmrg $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9417b789ec8aSmrg else 9418b789ec8aSmrg case `$CC -V 2>&1` in 9419b789ec8aSmrg *"Compilers 5.0"*) 9420b789ec8aSmrg wlarc='' 9421b789ec8aSmrg archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9422b789ec8aSmrg archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9423b789ec8aSmrg $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9424b789ec8aSmrg ;; 9425b789ec8aSmrg *) 9426b789ec8aSmrg wlarc='${wl}' 9427b789ec8aSmrg archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9428b789ec8aSmrg archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9429b789ec8aSmrg $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9430b789ec8aSmrg ;; 9431b789ec8aSmrg esac 9432b789ec8aSmrg fi 9433b789ec8aSmrg hardcode_libdir_flag_spec='-R$libdir' 9434b789ec8aSmrg hardcode_shlibpath_var=no 9435b789ec8aSmrg case $host_os in 9436b789ec8aSmrg solaris2.[0-5] | solaris2.[0-5].*) ;; 9437b789ec8aSmrg *) 9438b789ec8aSmrg # The compiler driver will combine and reorder linker options, 9439b789ec8aSmrg # but understands `-z linker_flag'. GCC discards it without `$wl', 9440b789ec8aSmrg # but is careful enough not to reorder. 9441b789ec8aSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 9442b789ec8aSmrg if test "$GCC" = yes; then 9443b789ec8aSmrg whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9444b789ec8aSmrg else 9445b789ec8aSmrg whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9446b789ec8aSmrg fi 9447b789ec8aSmrg ;; 9448b789ec8aSmrg esac 9449b789ec8aSmrg link_all_deplibs=yes 9450b789ec8aSmrg ;; 9451c43cc173Smrg 9452b789ec8aSmrg sunos4*) 9453b789ec8aSmrg if test "x$host_vendor" = xsequent; then 9454b789ec8aSmrg # Use $CC to link under sequent, because it throws in some extra .o 9455b789ec8aSmrg # files that make .init and .fini sections work. 9456b789ec8aSmrg archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9457b789ec8aSmrg else 9458b789ec8aSmrg archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9459b789ec8aSmrg fi 9460b789ec8aSmrg hardcode_libdir_flag_spec='-L$libdir' 9461b789ec8aSmrg hardcode_direct=yes 9462b789ec8aSmrg hardcode_minus_L=yes 9463b789ec8aSmrg hardcode_shlibpath_var=no 9464b789ec8aSmrg ;; 9465c43cc173Smrg 9466b789ec8aSmrg sysv4) 9467b789ec8aSmrg case $host_vendor in 9468b789ec8aSmrg sni) 9469b789ec8aSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9470b789ec8aSmrg hardcode_direct=yes # is this really true??? 9471b789ec8aSmrg ;; 9472b789ec8aSmrg siemens) 9473b789ec8aSmrg ## LD is ld it makes a PLAMLIB 9474b789ec8aSmrg ## CC just makes a GrossModule. 9475b789ec8aSmrg archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9476b789ec8aSmrg reload_cmds='$CC -r -o $output$reload_objs' 9477b789ec8aSmrg hardcode_direct=no 9478b789ec8aSmrg ;; 9479b789ec8aSmrg motorola) 9480b789ec8aSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9481b789ec8aSmrg hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9482b789ec8aSmrg ;; 9483b789ec8aSmrg esac 9484b789ec8aSmrg runpath_var='LD_RUN_PATH' 9485b789ec8aSmrg hardcode_shlibpath_var=no 9486b789ec8aSmrg ;; 9487c43cc173Smrg 9488b789ec8aSmrg sysv4.3*) 9489b789ec8aSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9490b789ec8aSmrg hardcode_shlibpath_var=no 9491b789ec8aSmrg export_dynamic_flag_spec='-Bexport' 9492b789ec8aSmrg ;; 9493c43cc173Smrg 9494b789ec8aSmrg sysv4*MP*) 9495b789ec8aSmrg if test -d /usr/nec; then 9496b789ec8aSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9497b789ec8aSmrg hardcode_shlibpath_var=no 9498b789ec8aSmrg runpath_var=LD_RUN_PATH 9499b789ec8aSmrg hardcode_runpath_var=yes 9500b789ec8aSmrg ld_shlibs=yes 9501b789ec8aSmrg fi 9502b789ec8aSmrg ;; 9503c43cc173Smrg 9504b789ec8aSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9505b789ec8aSmrg no_undefined_flag='${wl}-z,text' 9506b789ec8aSmrg archive_cmds_need_lc=no 9507b789ec8aSmrg hardcode_shlibpath_var=no 9508b789ec8aSmrg runpath_var='LD_RUN_PATH' 9509c43cc173Smrg 9510b789ec8aSmrg if test "$GCC" = yes; then 9511b789ec8aSmrg archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9512b789ec8aSmrg archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9513b789ec8aSmrg else 9514b789ec8aSmrg archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9515b789ec8aSmrg archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9516b789ec8aSmrg fi 9517b789ec8aSmrg ;; 9518c43cc173Smrg 9519b789ec8aSmrg sysv5* | sco3.2v5* | sco5v6*) 9520b789ec8aSmrg # Note: We can NOT use -z defs as we might desire, because we do not 9521b789ec8aSmrg # link with -lc, and that would cause any symbols used from libc to 9522b789ec8aSmrg # always be unresolved, which means just about no library would 9523b789ec8aSmrg # ever link correctly. If we're not using GNU ld we use -z text 9524b789ec8aSmrg # though, which does catch some bad symbols but isn't as heavy-handed 9525b789ec8aSmrg # as -z defs. 9526b789ec8aSmrg no_undefined_flag='${wl}-z,text' 9527b789ec8aSmrg allow_undefined_flag='${wl}-z,nodefs' 9528b789ec8aSmrg archive_cmds_need_lc=no 9529b789ec8aSmrg hardcode_shlibpath_var=no 9530b789ec8aSmrg hardcode_libdir_flag_spec='${wl}-R,$libdir' 9531b789ec8aSmrg hardcode_libdir_separator=':' 9532b789ec8aSmrg link_all_deplibs=yes 9533b789ec8aSmrg export_dynamic_flag_spec='${wl}-Bexport' 9534b789ec8aSmrg runpath_var='LD_RUN_PATH' 9535c43cc173Smrg 9536b789ec8aSmrg if test "$GCC" = yes; then 9537b789ec8aSmrg archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9538b789ec8aSmrg archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9539b789ec8aSmrg else 9540b789ec8aSmrg archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9541b789ec8aSmrg archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9542b789ec8aSmrg fi 9543b789ec8aSmrg ;; 9544c43cc173Smrg 9545b789ec8aSmrg uts4*) 9546b789ec8aSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9547b789ec8aSmrg hardcode_libdir_flag_spec='-L$libdir' 9548b789ec8aSmrg hardcode_shlibpath_var=no 9549b789ec8aSmrg ;; 955037eb1ca1Smrg 9551b789ec8aSmrg *) 9552b789ec8aSmrg ld_shlibs=no 9553b789ec8aSmrg ;; 955437eb1ca1Smrg esac 9555b789ec8aSmrg 9556b789ec8aSmrg if test x$host_vendor = xsni; then 9557b789ec8aSmrg case $host in 9558b789ec8aSmrg sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9559b789ec8aSmrg export_dynamic_flag_spec='${wl}-Blargedynsym' 9560b789ec8aSmrg ;; 9561b789ec8aSmrg esac 9562b789ec8aSmrg fi 956337eb1ca1Smrg fi 956437eb1ca1Smrg 9565b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9566b789ec8aSmrg$as_echo "$ld_shlibs" >&6; } 9567b789ec8aSmrgtest "$ld_shlibs" = no && can_build_shared=no 9568c43cc173Smrg 9569b789ec8aSmrgwith_gnu_ld=$with_gnu_ld 9570c43cc173Smrg 9571c43cc173Smrg 9572c43cc173Smrg 9573c43cc173Smrg 957421e67964Smrg 9575c43cc173Smrg 9576c43cc173Smrg 9577c43cc173Smrg 957837eb1ca1Smrg 9579b789ec8aSmrg 9580b789ec8aSmrg 9581b789ec8aSmrg 9582b789ec8aSmrg 9583b789ec8aSmrg 9584b789ec8aSmrg 9585b789ec8aSmrg# 9586b789ec8aSmrg# Do we need to explicitly link libc? 9587b789ec8aSmrg# 9588b789ec8aSmrgcase "x$archive_cmds_need_lc" in 9589b789ec8aSmrgx|xyes) 9590b789ec8aSmrg # Assume -lc should be added 9591b789ec8aSmrg archive_cmds_need_lc=yes 9592b789ec8aSmrg 9593b789ec8aSmrg if test "$enable_shared" = yes && test "$GCC" = yes; then 9594b789ec8aSmrg case $archive_cmds in 9595b789ec8aSmrg *'~'*) 9596b789ec8aSmrg # FIXME: we may have to deal with multi-command sequences. 95973e256790Smrg ;; 9598b789ec8aSmrg '$CC '*) 9599b789ec8aSmrg # Test whether the compiler implicitly links with -lc since on some 9600b789ec8aSmrg # systems, -lgcc has to come before -lc. If gcc already passes -lc 9601b789ec8aSmrg # to ld, don't add -lc before -lgcc. 9602b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9603b789ec8aSmrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9604b789ec8aSmrgif ${lt_cv_archive_cmds_need_lc+:} false; then : 9605b789ec8aSmrg $as_echo_n "(cached) " >&6 9606b789ec8aSmrgelse 9607b789ec8aSmrg $RM conftest* 9608b789ec8aSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9609c43cc173Smrg 9610b789ec8aSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9611b789ec8aSmrg (eval $ac_compile) 2>&5 9612b789ec8aSmrg ac_status=$? 9613b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9614b789ec8aSmrg test $ac_status = 0; } 2>conftest.err; then 9615b789ec8aSmrg soname=conftest 9616b789ec8aSmrg lib=conftest 9617b789ec8aSmrg libobjs=conftest.$ac_objext 9618b789ec8aSmrg deplibs= 9619b789ec8aSmrg wl=$lt_prog_compiler_wl 9620b789ec8aSmrg pic_flag=$lt_prog_compiler_pic 9621b789ec8aSmrg compiler_flags=-v 9622b789ec8aSmrg linker_flags=-v 9623b789ec8aSmrg verstring= 9624b789ec8aSmrg output_objdir=. 9625b789ec8aSmrg libname=conftest 9626b789ec8aSmrg lt_save_allow_undefined_flag=$allow_undefined_flag 9627b789ec8aSmrg allow_undefined_flag= 9628b789ec8aSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9629b789ec8aSmrg (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9630b789ec8aSmrg ac_status=$? 9631b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9632b789ec8aSmrg test $ac_status = 0; } 9633b789ec8aSmrg then 9634b789ec8aSmrg lt_cv_archive_cmds_need_lc=no 9635b789ec8aSmrg else 9636b789ec8aSmrg lt_cv_archive_cmds_need_lc=yes 96373e256790Smrg fi 9638b789ec8aSmrg allow_undefined_flag=$lt_save_allow_undefined_flag 9639b789ec8aSmrg else 9640b789ec8aSmrg cat conftest.err 1>&5 9641b789ec8aSmrg fi 9642b789ec8aSmrg $RM conftest* 9643c43cc173Smrg 9644b789ec8aSmrgfi 9645b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9646b789ec8aSmrg$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9647b789ec8aSmrg archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 96483e256790Smrg ;; 9649b789ec8aSmrg esac 9650b789ec8aSmrg fi 9651b789ec8aSmrg ;; 9652b789ec8aSmrgesac 9653c43cc173Smrg 9654c43cc173Smrg 9655c43cc173Smrg 9656c43cc173Smrg 965721e67964Smrg 9658c43cc173Smrg 9659c43cc173Smrg 9660c43cc173Smrg 9661c43cc173Smrg 9662c43cc173Smrg 9663c43cc173Smrg 9664c43cc173Smrg 9665c43cc173Smrg 9666c43cc173Smrg 9667c43cc173Smrg 9668c43cc173Smrg 9669c43cc173Smrg 9670c43cc173Smrg 9671c43cc173Smrg 9672c43cc173Smrg 9673c43cc173Smrg 9674c43cc173Smrg 9675c43cc173Smrg 9676c43cc173Smrg 9677c43cc173Smrg 9678c43cc173Smrg 9679c43cc173Smrg 9680c43cc173Smrg 9681c43cc173Smrg 9682c43cc173Smrg 9683c43cc173Smrg 9684c43cc173Smrg 9685c43cc173Smrg 9686c43cc173Smrg 9687c43cc173Smrg 9688c43cc173Smrg 9689c27c18e8Smrg 9690c27c18e8Smrg 9691c43cc173Smrg 9692c43cc173Smrg 9693c43cc173Smrg 9694c43cc173Smrg 9695c43cc173Smrg 9696c43cc173Smrg 9697c43cc173Smrg 9698c43cc173Smrg 9699c43cc173Smrg 9700c43cc173Smrg 9701c43cc173Smrg 9702c43cc173Smrg 9703c43cc173Smrg 9704c43cc173Smrg 9705c43cc173Smrg 9706c43cc173Smrg 9707c43cc173Smrg 9708c43cc173Smrg 9709c43cc173Smrg 9710c43cc173Smrg 9711c43cc173Smrg 9712c43cc173Smrg 9713c43cc173Smrg 9714c43cc173Smrg 9715c43cc173Smrg 9716c43cc173Smrg 9717c43cc173Smrg 9718c43cc173Smrg 9719c43cc173Smrg 9720c43cc173Smrg 9721c43cc173Smrg 9722c43cc173Smrg 9723c43cc173Smrg 9724c43cc173Smrg 9725c43cc173Smrg 9726c43cc173Smrg 9727c43cc173Smrg 9728c43cc173Smrg 9729c43cc173Smrg 9730c43cc173Smrg 9731c43cc173Smrg 973221e67964Smrg 9733c43cc173Smrg 9734c43cc173Smrg 9735c43cc173Smrg 9736c43cc173Smrg 9737c43cc173Smrg 9738c43cc173Smrg 9739c43cc173Smrg 974021e67964Smrg 9741c43cc173Smrg 9742c43cc173Smrg 9743c43cc173Smrg 9744c43cc173Smrg 9745c43cc173Smrg 9746c43cc173Smrg 974721e67964Smrg 9748c43cc173Smrg 9749c43cc173Smrg 9750c43cc173Smrg 9751c43cc173Smrg 9752c43cc173Smrg 9753c43cc173Smrg 9754c43cc173Smrg 9755c43cc173Smrg 9756c43cc173Smrg 9757c43cc173Smrg 9758c43cc173Smrg 9759c43cc173Smrg 9760c43cc173Smrg 9761c43cc173Smrg 9762c43cc173Smrg 9763c43cc173Smrg 9764c43cc173Smrg 9765c43cc173Smrg 9766c43cc173Smrg 9767c43cc173Smrg 9768c43cc173Smrg 9769c43cc173Smrg 9770c43cc173Smrg 9771c43cc173Smrg 9772c43cc173Smrg 9773c43cc173Smrg 9774c43cc173Smrg 9775c43cc173Smrg 9776c43cc173Smrg 9777c43cc173Smrg 9778c43cc173Smrg 9779c43cc173Smrg 9780c43cc173Smrg 9781c43cc173Smrg 9782c43cc173Smrg 9783c43cc173Smrg 9784c43cc173Smrg 9785c43cc173Smrg 9786c43cc173Smrg 9787c43cc173Smrg 9788c27c18e8Smrg 9789c27c18e8Smrg 9790c27c18e8Smrg 9791c43cc173Smrg 9792c43cc173Smrg 9793c43cc173Smrg 9794c43cc173Smrg 9795c43cc173Smrg 9796c43cc173Smrg 9797c43cc173Smrg 9798c43cc173Smrg 9799c43cc173Smrg 9800c43cc173Smrg 9801c43cc173Smrg 9802c43cc173Smrg 9803c43cc173Smrg 9804c43cc173Smrg 9805c43cc173Smrg 9806c27c18e8Smrg 9807c27c18e8Smrg 9808c27c18e8Smrg 9809c27c18e8Smrg 98103e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 98113e256790Smrg$as_echo_n "checking dynamic linker characteristics... " >&6; } 9812c43cc173Smrg 98133e256790Smrgif test "$GCC" = yes; then 98143e256790Smrg case $host_os in 98153e256790Smrg darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 98163e256790Smrg *) lt_awk_arg="/^libraries:/" ;; 98173e256790Smrg esac 981837eb1ca1Smrg case $host_os in 981937eb1ca1Smrg mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 982037eb1ca1Smrg *) lt_sed_strip_eq="s,=/,/,g" ;; 982137eb1ca1Smrg esac 982237eb1ca1Smrg lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 982337eb1ca1Smrg case $lt_search_path_spec in 982437eb1ca1Smrg *\;*) 98253e256790Smrg # if the path contains ";" then we assume it to be the separator 98263e256790Smrg # otherwise default to the standard path separator (i.e. ":") - it is 98273e256790Smrg # assumed that no part of a normal pathname contains ";" but that should 98283e256790Smrg # okay in the real world where ";" in dirpaths is itself problematic. 982937eb1ca1Smrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 983037eb1ca1Smrg ;; 983137eb1ca1Smrg *) 983237eb1ca1Smrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 983337eb1ca1Smrg ;; 983437eb1ca1Smrg esac 98353e256790Smrg # Ok, now we have the path, separated by spaces, we can step through it 98363e256790Smrg # and add multilib dir if necessary. 98373e256790Smrg lt_tmp_lt_search_path_spec= 98383e256790Smrg lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 98393e256790Smrg for lt_sys_path in $lt_search_path_spec; do 98403e256790Smrg if test -d "$lt_sys_path/$lt_multi_os_dir"; then 98413e256790Smrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 98423e256790Smrg else 98433e256790Smrg test -d "$lt_sys_path" && \ 98443e256790Smrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 98453e256790Smrg fi 98463e256790Smrg done 984737eb1ca1Smrg lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 98483e256790SmrgBEGIN {RS=" "; FS="/|\n";} { 98493e256790Smrg lt_foo=""; 98503e256790Smrg lt_count=0; 98513e256790Smrg for (lt_i = NF; lt_i > 0; lt_i--) { 98523e256790Smrg if ($lt_i != "" && $lt_i != ".") { 98533e256790Smrg if ($lt_i == "..") { 98543e256790Smrg lt_count++; 98553e256790Smrg } else { 98563e256790Smrg if (lt_count == 0) { 98573e256790Smrg lt_foo="/" $lt_i lt_foo; 98583e256790Smrg } else { 98593e256790Smrg lt_count--; 98603e256790Smrg } 98613e256790Smrg } 98623e256790Smrg } 98633e256790Smrg } 98643e256790Smrg if (lt_foo != "") { lt_freq[lt_foo]++; } 98653e256790Smrg if (lt_freq[lt_foo] == 1) { print lt_foo; } 98663e256790Smrg}'` 986737eb1ca1Smrg # AWK program above erroneously prepends '/' to C:/dos/paths 986837eb1ca1Smrg # for these hosts. 986937eb1ca1Smrg case $host_os in 987037eb1ca1Smrg mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 987137eb1ca1Smrg $SED 's,/\([A-Za-z]:\),\1,g'` ;; 987237eb1ca1Smrg esac 987337eb1ca1Smrg sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9874c43cc173Smrgelse 98753e256790Smrg sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9876c27c18e8Smrgfi 98773e256790Smrglibrary_names_spec= 98783e256790Smrglibname_spec='lib$name' 98793e256790Smrgsoname_spec= 98803e256790Smrgshrext_cmds=".so" 98813e256790Smrgpostinstall_cmds= 98823e256790Smrgpostuninstall_cmds= 98833e256790Smrgfinish_cmds= 98843e256790Smrgfinish_eval= 98853e256790Smrgshlibpath_var= 98863e256790Smrgshlibpath_overrides_runpath=unknown 98873e256790Smrgversion_type=none 98883e256790Smrgdynamic_linker="$host_os ld.so" 98893e256790Smrgsys_lib_dlsearch_path_spec="/lib /usr/lib" 98903e256790Smrgneed_lib_prefix=unknown 98913e256790Smrghardcode_into_libs=no 9892c43cc173Smrg 98933e256790Smrg# when you set need_version to no, make sure it does not cause -set_version 98943e256790Smrg# flags to be left without arguments 98953e256790Smrgneed_version=unknown 9896c43cc173Smrg 98973e256790Smrgcase $host_os in 98983e256790Smrgaix3*) 98993e256790Smrg version_type=linux 99003e256790Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 99013e256790Smrg shlibpath_var=LIBPATH 9902c43cc173Smrg 99033e256790Smrg # AIX 3 has no versioning support, so we append a major version to the name. 99043e256790Smrg soname_spec='${libname}${release}${shared_ext}$major' 99053e256790Smrg ;; 9906c43cc173Smrg 99073e256790Smrgaix[4-9]*) 99083e256790Smrg version_type=linux 99093e256790Smrg need_lib_prefix=no 99103e256790Smrg need_version=no 99113e256790Smrg hardcode_into_libs=yes 99123e256790Smrg if test "$host_cpu" = ia64; then 99133e256790Smrg # AIX 5 supports IA64 99143e256790Smrg library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 99153e256790Smrg shlibpath_var=LD_LIBRARY_PATH 99163e256790Smrg else 99173e256790Smrg # With GCC up to 2.95.x, collect2 would create an import file 99183e256790Smrg # for dependence libraries. The import file would start with 99193e256790Smrg # the line `#! .'. This would cause the generated library to 99203e256790Smrg # depend on `.', always an invalid library. This was fixed in 99213e256790Smrg # development snapshots of GCC prior to 3.0. 99223e256790Smrg case $host_os in 99233e256790Smrg aix4 | aix4.[01] | aix4.[01].*) 99243e256790Smrg if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 99253e256790Smrg echo ' yes ' 99263e256790Smrg echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 99273e256790Smrg : 99283e256790Smrg else 99293e256790Smrg can_build_shared=no 99303e256790Smrg fi 99313e256790Smrg ;; 99323e256790Smrg esac 99333e256790Smrg # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 99343e256790Smrg # soname into executable. Probably we can add versioning support to 99353e256790Smrg # collect2, so additional links can be useful in future. 99363e256790Smrg if test "$aix_use_runtimelinking" = yes; then 99373e256790Smrg # If using run time linking (on AIX 4.2 or later) use lib<name>.so 99383e256790Smrg # instead of lib<name>.a to let people know that these are not 99393e256790Smrg # typical AIX shared libraries. 99403e256790Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 99413e256790Smrg else 99423e256790Smrg # We preserve .a as extension for shared libraries through AIX4.2 99433e256790Smrg # and later when we are not doing run time linking. 99443e256790Smrg library_names_spec='${libname}${release}.a $libname.a' 99453e256790Smrg soname_spec='${libname}${release}${shared_ext}$major' 99463e256790Smrg fi 99473e256790Smrg shlibpath_var=LIBPATH 99483e256790Smrg fi 99493e256790Smrg ;; 99503e256790Smrg 99513e256790Smrgamigaos*) 99523e256790Smrg case $host_cpu in 99533e256790Smrg powerpc) 99543e256790Smrg # Since July 2007 AmigaOS4 officially supports .so libraries. 99553e256790Smrg # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 99563e256790Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 99573e256790Smrg ;; 99583e256790Smrg m68k) 99593e256790Smrg library_names_spec='$libname.ixlibrary $libname.a' 99603e256790Smrg # Create ${libname}_ixlibrary.a entries in /sys/libs. 996137eb1ca1Smrg finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 99623e256790Smrg ;; 99633e256790Smrg esac 99643e256790Smrg ;; 99653e256790Smrg 99663e256790Smrgbeos*) 99673e256790Smrg library_names_spec='${libname}${shared_ext}' 99683e256790Smrg dynamic_linker="$host_os ld.so" 99693e256790Smrg shlibpath_var=LIBRARY_PATH 99703e256790Smrg ;; 99713e256790Smrg 99723e256790Smrgbsdi[45]*) 99733e256790Smrg version_type=linux 99743e256790Smrg need_version=no 99753e256790Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 99763e256790Smrg soname_spec='${libname}${release}${shared_ext}$major' 99773e256790Smrg finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 99783e256790Smrg shlibpath_var=LD_LIBRARY_PATH 99793e256790Smrg sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 99803e256790Smrg sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 99813e256790Smrg # the default ld.so.conf also contains /usr/contrib/lib and 99823e256790Smrg # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 99833e256790Smrg # libtool to hard-code these into programs 99843e256790Smrg ;; 99853e256790Smrg 99863e256790Smrgcygwin* | mingw* | pw32* | cegcc*) 99873e256790Smrg version_type=windows 99883e256790Smrg shrext_cmds=".dll" 99893e256790Smrg need_version=no 99903e256790Smrg need_lib_prefix=no 99913e256790Smrg 9992b789ec8aSmrg case $GCC,$cc_basename in 9993b789ec8aSmrg yes,*) 9994b789ec8aSmrg # gcc 99953e256790Smrg library_names_spec='$libname.dll.a' 99963e256790Smrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 99973e256790Smrg postinstall_cmds='base_file=`basename \${file}`~ 99983e256790Smrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 99993e256790Smrg dldir=$destdir/`dirname \$dlpath`~ 100003e256790Smrg test -d \$dldir || mkdir -p \$dldir~ 100013e256790Smrg $install_prog $dir/$dlname \$dldir/$dlname~ 100023e256790Smrg chmod a+x \$dldir/$dlname~ 100033e256790Smrg if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 100043e256790Smrg eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 100053e256790Smrg fi' 100063e256790Smrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 100073e256790Smrg dlpath=$dir/\$dldll~ 100083e256790Smrg $RM \$dlpath' 100093e256790Smrg shlibpath_overrides_runpath=yes 100103e256790Smrg 100113e256790Smrg case $host_os in 100123e256790Smrg cygwin*) 100133e256790Smrg # Cygwin DLLs use 'cyg' prefix rather than 'lib' 100143e256790Smrg soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 1001537eb1ca1Smrg 1001637eb1ca1Smrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 100173e256790Smrg ;; 100183e256790Smrg mingw* | cegcc*) 100193e256790Smrg # MinGW DLLs use traditional 'lib' prefix 100203e256790Smrg soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 100213e256790Smrg ;; 100223e256790Smrg pw32*) 100233e256790Smrg # pw32 DLLs use 'pw' prefix rather than 'lib' 100243e256790Smrg library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 100253e256790Smrg ;; 100263e256790Smrg esac 10027b789ec8aSmrg dynamic_linker='Win32 ld.exe' 10028b789ec8aSmrg ;; 10029b789ec8aSmrg 10030b789ec8aSmrg *,cl*) 10031b789ec8aSmrg # Native MSVC 10032b789ec8aSmrg libname_spec='$name' 10033b789ec8aSmrg soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10034b789ec8aSmrg library_names_spec='${libname}.dll.lib' 10035b789ec8aSmrg 10036b789ec8aSmrg case $build_os in 10037b789ec8aSmrg mingw*) 10038b789ec8aSmrg sys_lib_search_path_spec= 10039b789ec8aSmrg lt_save_ifs=$IFS 10040b789ec8aSmrg IFS=';' 10041b789ec8aSmrg for lt_path in $LIB 10042b789ec8aSmrg do 10043b789ec8aSmrg IFS=$lt_save_ifs 10044b789ec8aSmrg # Let DOS variable expansion print the short 8.3 style file name. 10045b789ec8aSmrg lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10046b789ec8aSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10047b789ec8aSmrg done 10048b789ec8aSmrg IFS=$lt_save_ifs 10049b789ec8aSmrg # Convert to MSYS style. 10050b789ec8aSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10051b789ec8aSmrg ;; 10052b789ec8aSmrg cygwin*) 10053b789ec8aSmrg # Convert to unix form, then to dos form, then back to unix form 10054b789ec8aSmrg # but this time dos style (no spaces!) so that the unix form looks 10055b789ec8aSmrg # like /cygdrive/c/PROGRA~1:/cygdr... 10056b789ec8aSmrg sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10057b789ec8aSmrg sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10058b789ec8aSmrg sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10059b789ec8aSmrg ;; 10060b789ec8aSmrg *) 10061b789ec8aSmrg sys_lib_search_path_spec="$LIB" 10062b789ec8aSmrg if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10063b789ec8aSmrg # It is most probably a Windows format PATH. 10064b789ec8aSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10065b789ec8aSmrg else 10066b789ec8aSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10067b789ec8aSmrg fi 10068b789ec8aSmrg # FIXME: find the short name or the path components, as spaces are 10069b789ec8aSmrg # common. (e.g. "Program Files" -> "PROGRA~1") 10070b789ec8aSmrg ;; 10071b789ec8aSmrg esac 10072b789ec8aSmrg 10073b789ec8aSmrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 10074b789ec8aSmrg postinstall_cmds='base_file=`basename \${file}`~ 10075b789ec8aSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10076b789ec8aSmrg dldir=$destdir/`dirname \$dlpath`~ 10077b789ec8aSmrg test -d \$dldir || mkdir -p \$dldir~ 10078b789ec8aSmrg $install_prog $dir/$dlname \$dldir/$dlname' 10079b789ec8aSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10080b789ec8aSmrg dlpath=$dir/\$dldll~ 10081b789ec8aSmrg $RM \$dlpath' 10082b789ec8aSmrg shlibpath_overrides_runpath=yes 10083b789ec8aSmrg dynamic_linker='Win32 link.exe' 100843e256790Smrg ;; 100853e256790Smrg 100863e256790Smrg *) 10087b789ec8aSmrg # Assume MSVC wrapper 100883e256790Smrg library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10089b789ec8aSmrg dynamic_linker='Win32 ld.exe' 100903e256790Smrg ;; 100913e256790Smrg esac 100923e256790Smrg # FIXME: first we should search . and the directory the executable is in 100933e256790Smrg shlibpath_var=PATH 100943e256790Smrg ;; 100953e256790Smrg 100963e256790Smrgdarwin* | rhapsody*) 100973e256790Smrg dynamic_linker="$host_os dyld" 100983e256790Smrg version_type=darwin 100993e256790Smrg need_lib_prefix=no 101003e256790Smrg need_version=no 101013e256790Smrg library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 101023e256790Smrg soname_spec='${libname}${release}${major}$shared_ext' 101033e256790Smrg shlibpath_overrides_runpath=yes 101043e256790Smrg shlibpath_var=DYLD_LIBRARY_PATH 101053e256790Smrg shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 101063e256790Smrg 101073e256790Smrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 101083e256790Smrg sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 101093e256790Smrg ;; 101103e256790Smrg 101113e256790Smrgdgux*) 101123e256790Smrg version_type=linux 101133e256790Smrg need_lib_prefix=no 101143e256790Smrg need_version=no 101153e256790Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 101163e256790Smrg soname_spec='${libname}${release}${shared_ext}$major' 101173e256790Smrg shlibpath_var=LD_LIBRARY_PATH 101183e256790Smrg ;; 101193e256790Smrg 101203e256790Smrgfreebsd1*) 101213e256790Smrg dynamic_linker=no 101223e256790Smrg ;; 101233e256790Smrg 101243e256790Smrgfreebsd* | dragonfly*) 101253e256790Smrg # DragonFly does not have aout. When/if they implement a new 101263e256790Smrg # versioning mechanism, adjust this. 101273e256790Smrg if test -x /usr/bin/objformat; then 101283e256790Smrg objformat=`/usr/bin/objformat` 101293e256790Smrg else 101303e256790Smrg case $host_os in 101313e256790Smrg freebsd[123]*) objformat=aout ;; 101323e256790Smrg *) objformat=elf ;; 101333e256790Smrg esac 101343e256790Smrg fi 101353e256790Smrg version_type=freebsd-$objformat 101363e256790Smrg case $version_type in 101373e256790Smrg freebsd-elf*) 101383e256790Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 101393e256790Smrg need_version=no 101403e256790Smrg need_lib_prefix=no 101413e256790Smrg ;; 101423e256790Smrg freebsd-*) 101433e256790Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 101443e256790Smrg need_version=yes 101453e256790Smrg ;; 101463e256790Smrg esac 101473e256790Smrg shlibpath_var=LD_LIBRARY_PATH 101483e256790Smrg case $host_os in 101493e256790Smrg freebsd2*) 101503e256790Smrg shlibpath_overrides_runpath=yes 101513e256790Smrg ;; 101523e256790Smrg freebsd3.[01]* | freebsdelf3.[01]*) 101533e256790Smrg shlibpath_overrides_runpath=yes 101543e256790Smrg hardcode_into_libs=yes 101553e256790Smrg ;; 101563e256790Smrg freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 101573e256790Smrg freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 101583e256790Smrg shlibpath_overrides_runpath=no 101593e256790Smrg hardcode_into_libs=yes 101603e256790Smrg ;; 101613e256790Smrg *) # from 4.6 on, and DragonFly 101623e256790Smrg shlibpath_overrides_runpath=yes 101633e256790Smrg hardcode_into_libs=yes 101643e256790Smrg ;; 101653e256790Smrg esac 101663e256790Smrg ;; 101673e256790Smrg 101683e256790Smrggnu*) 101693e256790Smrg version_type=linux 101703e256790Smrg need_lib_prefix=no 101713e256790Smrg need_version=no 101723e256790Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 101733e256790Smrg soname_spec='${libname}${release}${shared_ext}$major' 101743e256790Smrg shlibpath_var=LD_LIBRARY_PATH 101753e256790Smrg hardcode_into_libs=yes 101763e256790Smrg ;; 101773e256790Smrg 1017837eb1ca1Smrghaiku*) 1017937eb1ca1Smrg version_type=linux 1018037eb1ca1Smrg need_lib_prefix=no 1018137eb1ca1Smrg need_version=no 1018237eb1ca1Smrg dynamic_linker="$host_os runtime_loader" 1018337eb1ca1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 1018437eb1ca1Smrg soname_spec='${libname}${release}${shared_ext}$major' 1018537eb1ca1Smrg shlibpath_var=LIBRARY_PATH 1018637eb1ca1Smrg shlibpath_overrides_runpath=yes 1018737eb1ca1Smrg sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 1018837eb1ca1Smrg hardcode_into_libs=yes 1018937eb1ca1Smrg ;; 1019037eb1ca1Smrg 101913e256790Smrghpux9* | hpux10* | hpux11*) 101923e256790Smrg # Give a soname corresponding to the major version so that dld.sl refuses to 101933e256790Smrg # link against other versions. 101943e256790Smrg version_type=sunos 101953e256790Smrg need_lib_prefix=no 101963e256790Smrg need_version=no 101973e256790Smrg case $host_cpu in 101983e256790Smrg ia64*) 101993e256790Smrg shrext_cmds='.so' 102003e256790Smrg hardcode_into_libs=yes 102013e256790Smrg dynamic_linker="$host_os dld.so" 102023e256790Smrg shlibpath_var=LD_LIBRARY_PATH 102033e256790Smrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 102043e256790Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 102053e256790Smrg soname_spec='${libname}${release}${shared_ext}$major' 102063e256790Smrg if test "X$HPUX_IA64_MODE" = X32; then 102073e256790Smrg sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 102083e256790Smrg else 102093e256790Smrg sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 102103e256790Smrg fi 102113e256790Smrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 102123e256790Smrg ;; 102133e256790Smrg hppa*64*) 102143e256790Smrg shrext_cmds='.sl' 102153e256790Smrg hardcode_into_libs=yes 102163e256790Smrg dynamic_linker="$host_os dld.sl" 102173e256790Smrg shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 102183e256790Smrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 102193e256790Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 102203e256790Smrg soname_spec='${libname}${release}${shared_ext}$major' 102213e256790Smrg sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 102223e256790Smrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 102233e256790Smrg ;; 102243e256790Smrg *) 102253e256790Smrg shrext_cmds='.sl' 102263e256790Smrg dynamic_linker="$host_os dld.sl" 102273e256790Smrg shlibpath_var=SHLIB_PATH 102283e256790Smrg shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 102293e256790Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 102303e256790Smrg soname_spec='${libname}${release}${shared_ext}$major' 102313e256790Smrg ;; 102323e256790Smrg esac 1023337eb1ca1Smrg # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 102343e256790Smrg postinstall_cmds='chmod 555 $lib' 1023537eb1ca1Smrg # or fails outright, so override atomically: 1023637eb1ca1Smrg install_override_mode=555 102373e256790Smrg ;; 102383e256790Smrg 102393e256790Smrginterix[3-9]*) 102403e256790Smrg version_type=linux 102413e256790Smrg need_lib_prefix=no 102423e256790Smrg need_version=no 102433e256790Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 102443e256790Smrg soname_spec='${libname}${release}${shared_ext}$major' 102453e256790Smrg dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 102463e256790Smrg shlibpath_var=LD_LIBRARY_PATH 102473e256790Smrg shlibpath_overrides_runpath=no 102483e256790Smrg hardcode_into_libs=yes 102493e256790Smrg ;; 102503e256790Smrg 102513e256790Smrgirix5* | irix6* | nonstopux*) 102523e256790Smrg case $host_os in 102533e256790Smrg nonstopux*) version_type=nonstopux ;; 102543e256790Smrg *) 102553e256790Smrg if test "$lt_cv_prog_gnu_ld" = yes; then 102563e256790Smrg version_type=linux 102573e256790Smrg else 102583e256790Smrg version_type=irix 102593e256790Smrg fi ;; 102603e256790Smrg esac 102613e256790Smrg need_lib_prefix=no 102623e256790Smrg need_version=no 102633e256790Smrg soname_spec='${libname}${release}${shared_ext}$major' 102643e256790Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 102653e256790Smrg case $host_os in 102663e256790Smrg irix5* | nonstopux*) 102673e256790Smrg libsuff= shlibsuff= 102683e256790Smrg ;; 102693e256790Smrg *) 102703e256790Smrg case $LD in # libtool.m4 will add one of these switches to LD 102713e256790Smrg *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 102723e256790Smrg libsuff= shlibsuff= libmagic=32-bit;; 102733e256790Smrg *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 102743e256790Smrg libsuff=32 shlibsuff=N32 libmagic=N32;; 102753e256790Smrg *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 102763e256790Smrg libsuff=64 shlibsuff=64 libmagic=64-bit;; 102773e256790Smrg *) libsuff= shlibsuff= libmagic=never-match;; 102783e256790Smrg esac 102793e256790Smrg ;; 102803e256790Smrg esac 102813e256790Smrg shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 102823e256790Smrg shlibpath_overrides_runpath=no 102833e256790Smrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 102843e256790Smrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 102853e256790Smrg hardcode_into_libs=yes 102863e256790Smrg ;; 10287c43cc173Smrg 10288b789ec8aSmrg# No shared lib support for Linux oldld, aout, or coff. 10289b789ec8aSmrglinux*oldld* | linux*aout* | linux*coff*) 10290b789ec8aSmrg dynamic_linker=no 10291b789ec8aSmrg ;; 10292b789ec8aSmrg 10293b789ec8aSmrg# This must be Linux ELF. 10294b789ec8aSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu) 10295b789ec8aSmrg version_type=linux 10296b789ec8aSmrg need_lib_prefix=no 10297b789ec8aSmrg need_version=no 10298b789ec8aSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10299b789ec8aSmrg soname_spec='${libname}${release}${shared_ext}$major' 10300b789ec8aSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10301b789ec8aSmrg shlibpath_var=LD_LIBRARY_PATH 10302b789ec8aSmrg shlibpath_overrides_runpath=no 10303b789ec8aSmrg 10304b789ec8aSmrg # Some binutils ld are patched to set DT_RUNPATH 10305b789ec8aSmrg if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10306b789ec8aSmrg $as_echo_n "(cached) " >&6 10307b789ec8aSmrgelse 10308b789ec8aSmrg lt_cv_shlibpath_overrides_runpath=no 10309b789ec8aSmrg save_LDFLAGS=$LDFLAGS 10310b789ec8aSmrg save_libdir=$libdir 10311b789ec8aSmrg eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10312b789ec8aSmrg LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10313b789ec8aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10314b789ec8aSmrg/* end confdefs.h. */ 10315b789ec8aSmrg 10316b789ec8aSmrgint 10317b789ec8aSmrgmain () 10318b789ec8aSmrg{ 10319b789ec8aSmrg 10320b789ec8aSmrg ; 10321b789ec8aSmrg return 0; 10322b789ec8aSmrg} 10323b789ec8aSmrg_ACEOF 10324b789ec8aSmrgif ac_fn_c_try_link "$LINENO"; then : 10325b789ec8aSmrg if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10326b789ec8aSmrg lt_cv_shlibpath_overrides_runpath=yes 10327b789ec8aSmrgfi 10328b789ec8aSmrgfi 10329b789ec8aSmrgrm -f core conftest.err conftest.$ac_objext \ 10330b789ec8aSmrg conftest$ac_exeext conftest.$ac_ext 10331b789ec8aSmrg LDFLAGS=$save_LDFLAGS 10332b789ec8aSmrg libdir=$save_libdir 10333b789ec8aSmrg 10334b789ec8aSmrgfi 10335b789ec8aSmrg 10336b789ec8aSmrg shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10337b789ec8aSmrg 10338b789ec8aSmrg # This implies no fast_install, which is unacceptable. 10339b789ec8aSmrg # Some rework will be needed to allow for fast_install 10340b789ec8aSmrg # before this can be enabled. 10341b789ec8aSmrg hardcode_into_libs=yes 10342b789ec8aSmrg 10343b789ec8aSmrg # Add ABI-specific directories to the system library path. 10344b789ec8aSmrg sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10345b789ec8aSmrg 10346b789ec8aSmrg # Append ld.so.conf contents to the search path 10347b789ec8aSmrg if test -f /etc/ld.so.conf; then 10348b789ec8aSmrg lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 10349b789ec8aSmrg sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10350b789ec8aSmrg 10351b789ec8aSmrg fi 10352b789ec8aSmrg 10353b789ec8aSmrg # We used to test for /lib/ld.so.1 and disable shared libraries on 10354b789ec8aSmrg # powerpc, because MkLinux only supported shared libraries with the 10355b789ec8aSmrg # GNU dynamic linker. Since this was broken with cross compilers, 10356b789ec8aSmrg # most powerpc-linux boxes support dynamic linking these days and 10357b789ec8aSmrg # people can always --disable-shared, the test was removed, and we 10358b789ec8aSmrg # assume the GNU/Linux dynamic linker is in use. 10359b789ec8aSmrg dynamic_linker='GNU/Linux ld.so' 10360b789ec8aSmrg ;; 10361b789ec8aSmrg 10362b789ec8aSmrgnetbsd*) 10363b789ec8aSmrg version_type=sunos 10364b789ec8aSmrg need_lib_prefix=no 10365b789ec8aSmrg need_version=no 10366b789ec8aSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10367b789ec8aSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10368b789ec8aSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10369b789ec8aSmrg dynamic_linker='NetBSD (a.out) ld.so' 10370b789ec8aSmrg else 10371b789ec8aSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10372b789ec8aSmrg soname_spec='${libname}${release}${shared_ext}$major' 10373b789ec8aSmrg dynamic_linker='NetBSD ld.elf_so' 10374b789ec8aSmrg fi 10375b789ec8aSmrg shlibpath_var=LD_LIBRARY_PATH 10376b789ec8aSmrg shlibpath_overrides_runpath=yes 10377b789ec8aSmrg hardcode_into_libs=yes 10378b789ec8aSmrg ;; 10379b789ec8aSmrg 10380b789ec8aSmrgnewsos6) 10381b789ec8aSmrg version_type=linux 10382b789ec8aSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10383b789ec8aSmrg shlibpath_var=LD_LIBRARY_PATH 10384b789ec8aSmrg shlibpath_overrides_runpath=yes 10385b789ec8aSmrg ;; 10386b789ec8aSmrg 10387b789ec8aSmrg*nto* | *qnx*) 10388b789ec8aSmrg version_type=qnx 10389b789ec8aSmrg need_lib_prefix=no 10390b789ec8aSmrg need_version=no 10391b789ec8aSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10392b789ec8aSmrg soname_spec='${libname}${release}${shared_ext}$major' 10393b789ec8aSmrg shlibpath_var=LD_LIBRARY_PATH 10394b789ec8aSmrg shlibpath_overrides_runpath=no 10395b789ec8aSmrg hardcode_into_libs=yes 10396b789ec8aSmrg dynamic_linker='ldqnx.so' 10397b789ec8aSmrg ;; 10398b789ec8aSmrg 10399b789ec8aSmrgopenbsd*) 10400b789ec8aSmrg version_type=sunos 10401b789ec8aSmrg sys_lib_dlsearch_path_spec="/usr/lib" 10402b789ec8aSmrg need_lib_prefix=no 10403b789ec8aSmrg # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10404b789ec8aSmrg case $host_os in 10405b789ec8aSmrg openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10406b789ec8aSmrg *) need_version=no ;; 10407b789ec8aSmrg esac 10408b789ec8aSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10409b789ec8aSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10410b789ec8aSmrg shlibpath_var=LD_LIBRARY_PATH 10411b789ec8aSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10412b789ec8aSmrg case $host_os in 10413b789ec8aSmrg openbsd2.[89] | openbsd2.[89].*) 10414b789ec8aSmrg shlibpath_overrides_runpath=no 10415b789ec8aSmrg ;; 10416b789ec8aSmrg *) 10417b789ec8aSmrg shlibpath_overrides_runpath=yes 10418b789ec8aSmrg ;; 10419b789ec8aSmrg esac 10420b789ec8aSmrg else 10421b789ec8aSmrg shlibpath_overrides_runpath=yes 10422b789ec8aSmrg fi 10423b789ec8aSmrg ;; 10424b789ec8aSmrg 10425b789ec8aSmrgos2*) 10426b789ec8aSmrg libname_spec='$name' 10427b789ec8aSmrg shrext_cmds=".dll" 10428b789ec8aSmrg need_lib_prefix=no 10429b789ec8aSmrg library_names_spec='$libname${shared_ext} $libname.a' 10430b789ec8aSmrg dynamic_linker='OS/2 ld.exe' 10431b789ec8aSmrg shlibpath_var=LIBPATH 10432b789ec8aSmrg ;; 10433b789ec8aSmrg 10434b789ec8aSmrgosf3* | osf4* | osf5*) 10435b789ec8aSmrg version_type=osf 10436b789ec8aSmrg need_lib_prefix=no 10437b789ec8aSmrg need_version=no 10438b789ec8aSmrg soname_spec='${libname}${release}${shared_ext}$major' 10439b789ec8aSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10440b789ec8aSmrg shlibpath_var=LD_LIBRARY_PATH 10441b789ec8aSmrg sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10442b789ec8aSmrg sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10443b789ec8aSmrg ;; 10444b789ec8aSmrg 10445b789ec8aSmrgrdos*) 10446b789ec8aSmrg dynamic_linker=no 10447b789ec8aSmrg ;; 10448b789ec8aSmrg 10449b789ec8aSmrgsolaris*) 10450b789ec8aSmrg version_type=linux 10451b789ec8aSmrg need_lib_prefix=no 10452b789ec8aSmrg need_version=no 10453b789ec8aSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10454b789ec8aSmrg soname_spec='${libname}${release}${shared_ext}$major' 10455b789ec8aSmrg shlibpath_var=LD_LIBRARY_PATH 10456b789ec8aSmrg shlibpath_overrides_runpath=yes 10457b789ec8aSmrg hardcode_into_libs=yes 10458b789ec8aSmrg # ldd complains unless libraries are executable 10459b789ec8aSmrg postinstall_cmds='chmod +x $lib' 10460b789ec8aSmrg ;; 10461b789ec8aSmrg 10462b789ec8aSmrgsunos4*) 10463b789ec8aSmrg version_type=sunos 10464b789ec8aSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10465b789ec8aSmrg finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10466b789ec8aSmrg shlibpath_var=LD_LIBRARY_PATH 10467b789ec8aSmrg shlibpath_overrides_runpath=yes 10468b789ec8aSmrg if test "$with_gnu_ld" = yes; then 10469b789ec8aSmrg need_lib_prefix=no 10470b789ec8aSmrg fi 10471b789ec8aSmrg need_version=yes 10472b789ec8aSmrg ;; 10473b789ec8aSmrg 10474b789ec8aSmrgsysv4 | sysv4.3*) 10475b789ec8aSmrg version_type=linux 10476b789ec8aSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10477b789ec8aSmrg soname_spec='${libname}${release}${shared_ext}$major' 10478b789ec8aSmrg shlibpath_var=LD_LIBRARY_PATH 10479b789ec8aSmrg case $host_vendor in 10480b789ec8aSmrg sni) 10481b789ec8aSmrg shlibpath_overrides_runpath=no 10482b789ec8aSmrg need_lib_prefix=no 10483b789ec8aSmrg runpath_var=LD_RUN_PATH 10484b789ec8aSmrg ;; 10485b789ec8aSmrg siemens) 10486b789ec8aSmrg need_lib_prefix=no 10487b789ec8aSmrg ;; 10488b789ec8aSmrg motorola) 10489b789ec8aSmrg need_lib_prefix=no 10490b789ec8aSmrg need_version=no 10491b789ec8aSmrg shlibpath_overrides_runpath=no 10492b789ec8aSmrg sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10493b789ec8aSmrg ;; 10494b789ec8aSmrg esac 10495b789ec8aSmrg ;; 10496b789ec8aSmrg 10497b789ec8aSmrgsysv4*MP*) 10498b789ec8aSmrg if test -d /usr/nec ;then 10499b789ec8aSmrg version_type=linux 10500b789ec8aSmrg library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10501b789ec8aSmrg soname_spec='$libname${shared_ext}.$major' 10502b789ec8aSmrg shlibpath_var=LD_LIBRARY_PATH 10503b789ec8aSmrg fi 10504b789ec8aSmrg ;; 10505b789ec8aSmrg 10506b789ec8aSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10507b789ec8aSmrg version_type=freebsd-elf 10508b789ec8aSmrg need_lib_prefix=no 10509b789ec8aSmrg need_version=no 10510b789ec8aSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10511b789ec8aSmrg soname_spec='${libname}${release}${shared_ext}$major' 10512b789ec8aSmrg shlibpath_var=LD_LIBRARY_PATH 10513b789ec8aSmrg shlibpath_overrides_runpath=yes 10514b789ec8aSmrg hardcode_into_libs=yes 10515b789ec8aSmrg if test "$with_gnu_ld" = yes; then 10516b789ec8aSmrg sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10517b789ec8aSmrg else 10518b789ec8aSmrg sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10519b789ec8aSmrg case $host_os in 10520b789ec8aSmrg sco3.2v5*) 10521b789ec8aSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10522b789ec8aSmrg ;; 10523b789ec8aSmrg esac 10524b789ec8aSmrg fi 10525b789ec8aSmrg sys_lib_dlsearch_path_spec='/usr/lib' 10526b789ec8aSmrg ;; 10527b789ec8aSmrg 10528b789ec8aSmrgtpf*) 10529b789ec8aSmrg # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10530b789ec8aSmrg version_type=linux 10531b789ec8aSmrg need_lib_prefix=no 10532b789ec8aSmrg need_version=no 10533b789ec8aSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10534b789ec8aSmrg shlibpath_var=LD_LIBRARY_PATH 10535b789ec8aSmrg shlibpath_overrides_runpath=no 10536b789ec8aSmrg hardcode_into_libs=yes 10537b789ec8aSmrg ;; 10538b789ec8aSmrg 10539b789ec8aSmrguts4*) 10540b789ec8aSmrg version_type=linux 10541b789ec8aSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10542b789ec8aSmrg soname_spec='${libname}${release}${shared_ext}$major' 10543b789ec8aSmrg shlibpath_var=LD_LIBRARY_PATH 10544b789ec8aSmrg ;; 10545b789ec8aSmrg 10546b789ec8aSmrg*) 10547b789ec8aSmrg dynamic_linker=no 10548b789ec8aSmrg ;; 10549b789ec8aSmrgesac 10550b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10551b789ec8aSmrg$as_echo "$dynamic_linker" >&6; } 10552b789ec8aSmrgtest "$dynamic_linker" = no && can_build_shared=no 10553b789ec8aSmrg 10554b789ec8aSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10555b789ec8aSmrgif test "$GCC" = yes; then 10556b789ec8aSmrg variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10557b789ec8aSmrgfi 10558b789ec8aSmrg 10559b789ec8aSmrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10560b789ec8aSmrg sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10561b789ec8aSmrgfi 10562b789ec8aSmrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10563b789ec8aSmrg sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10564b789ec8aSmrgfi 10565b789ec8aSmrg 10566b789ec8aSmrg 10567b789ec8aSmrg 10568b789ec8aSmrg 10569b789ec8aSmrg 10570b789ec8aSmrg 10571b789ec8aSmrg 10572b789ec8aSmrg 10573b789ec8aSmrg 10574b789ec8aSmrg 10575b789ec8aSmrg 10576b789ec8aSmrg 10577b789ec8aSmrg 10578b789ec8aSmrg 10579b789ec8aSmrg 10580b789ec8aSmrg 10581b789ec8aSmrg 10582b789ec8aSmrg 10583b789ec8aSmrg 10584b789ec8aSmrg 10585b789ec8aSmrg 10586b789ec8aSmrg 10587b789ec8aSmrg 10588b789ec8aSmrg 10589b789ec8aSmrg 10590b789ec8aSmrg 10591b789ec8aSmrg 10592b789ec8aSmrg 10593b789ec8aSmrg 10594b789ec8aSmrg 10595b789ec8aSmrg 10596b789ec8aSmrg 10597b789ec8aSmrg 10598b789ec8aSmrg 10599b789ec8aSmrg 10600b789ec8aSmrg 10601b789ec8aSmrg 10602b789ec8aSmrg 10603b789ec8aSmrg 10604b789ec8aSmrg 10605b789ec8aSmrg 10606b789ec8aSmrg 10607b789ec8aSmrg 10608b789ec8aSmrg 10609b789ec8aSmrg 10610b789ec8aSmrg 10611b789ec8aSmrg 10612b789ec8aSmrg 10613b789ec8aSmrg 10614b789ec8aSmrg 10615b789ec8aSmrg 10616b789ec8aSmrg 10617b789ec8aSmrg 10618b789ec8aSmrg 10619b789ec8aSmrg 10620b789ec8aSmrg 10621b789ec8aSmrg 10622b789ec8aSmrg 10623b789ec8aSmrg 10624b789ec8aSmrg 10625b789ec8aSmrg 10626b789ec8aSmrg 10627b789ec8aSmrg 10628b789ec8aSmrg 10629b789ec8aSmrg 10630b789ec8aSmrg 10631b789ec8aSmrg 10632b789ec8aSmrg 10633b789ec8aSmrg 10634b789ec8aSmrg 10635b789ec8aSmrg 10636b789ec8aSmrg 10637b789ec8aSmrg 10638b789ec8aSmrg 10639b789ec8aSmrg 10640b789ec8aSmrg 10641b789ec8aSmrg 10642b789ec8aSmrg 10643b789ec8aSmrg 10644b789ec8aSmrg 10645b789ec8aSmrg 10646b789ec8aSmrg 10647b789ec8aSmrg 10648b789ec8aSmrg 10649b789ec8aSmrg 10650b789ec8aSmrg 10651b789ec8aSmrg 10652b789ec8aSmrg 10653b789ec8aSmrg 10654b789ec8aSmrg 10655b789ec8aSmrg 10656b789ec8aSmrg 10657b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10658b789ec8aSmrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10659b789ec8aSmrghardcode_action= 10660b789ec8aSmrgif test -n "$hardcode_libdir_flag_spec" || 10661b789ec8aSmrg test -n "$runpath_var" || 10662b789ec8aSmrg test "X$hardcode_automatic" = "Xyes" ; then 10663b789ec8aSmrg 10664b789ec8aSmrg # We can hardcode non-existent directories. 10665b789ec8aSmrg if test "$hardcode_direct" != no && 10666b789ec8aSmrg # If the only mechanism to avoid hardcoding is shlibpath_var, we 10667b789ec8aSmrg # have to relink, otherwise we might link with an installed library 10668b789ec8aSmrg # when we should be linking with a yet-to-be-installed one 10669b789ec8aSmrg ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10670b789ec8aSmrg test "$hardcode_minus_L" != no; then 10671b789ec8aSmrg # Linking always hardcodes the temporary library directory. 10672b789ec8aSmrg hardcode_action=relink 10673b789ec8aSmrg else 10674b789ec8aSmrg # We can link without hardcoding, and we can hardcode nonexisting dirs. 10675b789ec8aSmrg hardcode_action=immediate 10676b789ec8aSmrg fi 10677b789ec8aSmrgelse 10678b789ec8aSmrg # We cannot hardcode anything, or else we can only hardcode existing 10679b789ec8aSmrg # directories. 10680b789ec8aSmrg hardcode_action=unsupported 10681b789ec8aSmrgfi 10682b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10683b789ec8aSmrg$as_echo "$hardcode_action" >&6; } 10684b789ec8aSmrg 10685b789ec8aSmrgif test "$hardcode_action" = relink || 10686b789ec8aSmrg test "$inherit_rpath" = yes; then 10687b789ec8aSmrg # Fast installation is not supported 10688b789ec8aSmrg enable_fast_install=no 10689b789ec8aSmrgelif test "$shlibpath_overrides_runpath" = yes || 10690b789ec8aSmrg test "$enable_shared" = no; then 10691b789ec8aSmrg # Fast installation is not necessary 10692b789ec8aSmrg enable_fast_install=needless 10693b789ec8aSmrgfi 10694b789ec8aSmrg 10695b789ec8aSmrg 10696b789ec8aSmrg 10697b789ec8aSmrg 10698b789ec8aSmrg 10699b789ec8aSmrg 10700b789ec8aSmrg if test "x$enable_dlopen" != xyes; then 10701b789ec8aSmrg enable_dlopen=unknown 10702b789ec8aSmrg enable_dlopen_self=unknown 10703b789ec8aSmrg enable_dlopen_self_static=unknown 10704b789ec8aSmrgelse 10705b789ec8aSmrg lt_cv_dlopen=no 10706b789ec8aSmrg lt_cv_dlopen_libs= 10707b789ec8aSmrg 10708b789ec8aSmrg case $host_os in 10709b789ec8aSmrg beos*) 10710b789ec8aSmrg lt_cv_dlopen="load_add_on" 10711b789ec8aSmrg lt_cv_dlopen_libs= 10712b789ec8aSmrg lt_cv_dlopen_self=yes 10713b789ec8aSmrg ;; 10714b789ec8aSmrg 10715b789ec8aSmrg mingw* | pw32* | cegcc*) 10716b789ec8aSmrg lt_cv_dlopen="LoadLibrary" 10717b789ec8aSmrg lt_cv_dlopen_libs= 10718b789ec8aSmrg ;; 10719b789ec8aSmrg 10720b789ec8aSmrg cygwin*) 10721b789ec8aSmrg lt_cv_dlopen="dlopen" 10722b789ec8aSmrg lt_cv_dlopen_libs= 10723b789ec8aSmrg ;; 10724b789ec8aSmrg 10725b789ec8aSmrg darwin*) 10726b789ec8aSmrg # if libdl is installed we need to link against it 10727b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10728b789ec8aSmrg$as_echo_n "checking for dlopen in -ldl... " >&6; } 10729b789ec8aSmrgif ${ac_cv_lib_dl_dlopen+:} false; then : 10730b789ec8aSmrg $as_echo_n "(cached) " >&6 10731b789ec8aSmrgelse 10732b789ec8aSmrg ac_check_lib_save_LIBS=$LIBS 10733b789ec8aSmrgLIBS="-ldl $LIBS" 10734b789ec8aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 10735b789ec8aSmrg/* end confdefs.h. */ 10736b789ec8aSmrg 10737b789ec8aSmrg/* Override any GCC internal prototype to avoid an error. 10738b789ec8aSmrg Use char because int might match the return type of a GCC 10739b789ec8aSmrg builtin and then its argument prototype would still apply. */ 10740b789ec8aSmrg#ifdef __cplusplus 10741b789ec8aSmrgextern "C" 10742b789ec8aSmrg#endif 10743b789ec8aSmrgchar dlopen (); 10744b789ec8aSmrgint 10745b789ec8aSmrgmain () 10746b789ec8aSmrg{ 10747b789ec8aSmrgreturn dlopen (); 10748b789ec8aSmrg ; 10749b789ec8aSmrg return 0; 10750b789ec8aSmrg} 10751b789ec8aSmrg_ACEOF 10752b789ec8aSmrgif ac_fn_c_try_link "$LINENO"; then : 10753b789ec8aSmrg ac_cv_lib_dl_dlopen=yes 10754b789ec8aSmrgelse 10755b789ec8aSmrg ac_cv_lib_dl_dlopen=no 10756b789ec8aSmrgfi 10757b789ec8aSmrgrm -f core conftest.err conftest.$ac_objext \ 10758b789ec8aSmrg conftest$ac_exeext conftest.$ac_ext 10759b789ec8aSmrgLIBS=$ac_check_lib_save_LIBS 10760b789ec8aSmrgfi 10761b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10762b789ec8aSmrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10763b789ec8aSmrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10764b789ec8aSmrg lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10765b789ec8aSmrgelse 10766b789ec8aSmrg 10767b789ec8aSmrg lt_cv_dlopen="dyld" 10768b789ec8aSmrg lt_cv_dlopen_libs= 10769b789ec8aSmrg lt_cv_dlopen_self=yes 10770b789ec8aSmrg 10771b789ec8aSmrgfi 10772c43cc173Smrg 10773b789ec8aSmrg ;; 1077437eb1ca1Smrg 10775b789ec8aSmrg *) 10776b789ec8aSmrg ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10777b789ec8aSmrgif test "x$ac_cv_func_shl_load" = xyes; then : 10778b789ec8aSmrg lt_cv_dlopen="shl_load" 10779b789ec8aSmrgelse 10780b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10781b789ec8aSmrg$as_echo_n "checking for shl_load in -ldld... " >&6; } 10782b789ec8aSmrgif ${ac_cv_lib_dld_shl_load+:} false; then : 1078337eb1ca1Smrg $as_echo_n "(cached) " >&6 1078437eb1ca1Smrgelse 10785b789ec8aSmrg ac_check_lib_save_LIBS=$LIBS 10786b789ec8aSmrgLIBS="-ldld $LIBS" 10787b789ec8aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 10788c27c18e8Smrg/* end confdefs.h. */ 10789c43cc173Smrg 10790b789ec8aSmrg/* Override any GCC internal prototype to avoid an error. 10791b789ec8aSmrg Use char because int might match the return type of a GCC 10792b789ec8aSmrg builtin and then its argument prototype would still apply. */ 10793b789ec8aSmrg#ifdef __cplusplus 10794b789ec8aSmrgextern "C" 10795b789ec8aSmrg#endif 10796b789ec8aSmrgchar shl_load (); 10797c27c18e8Smrgint 10798c27c18e8Smrgmain () 10799c27c18e8Smrg{ 10800b789ec8aSmrgreturn shl_load (); 10801b789ec8aSmrg ; 10802b789ec8aSmrg return 0; 10803b789ec8aSmrg} 10804b789ec8aSmrg_ACEOF 10805b789ec8aSmrgif ac_fn_c_try_link "$LINENO"; then : 10806b789ec8aSmrg ac_cv_lib_dld_shl_load=yes 10807b789ec8aSmrgelse 10808b789ec8aSmrg ac_cv_lib_dld_shl_load=no 10809b789ec8aSmrgfi 10810b789ec8aSmrgrm -f core conftest.err conftest.$ac_objext \ 10811b789ec8aSmrg conftest$ac_exeext conftest.$ac_ext 10812b789ec8aSmrgLIBS=$ac_check_lib_save_LIBS 10813b789ec8aSmrgfi 10814b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10815b789ec8aSmrg$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10816b789ec8aSmrgif test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10817b789ec8aSmrg lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10818b789ec8aSmrgelse 10819b789ec8aSmrg ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10820b789ec8aSmrgif test "x$ac_cv_func_dlopen" = xyes; then : 10821b789ec8aSmrg lt_cv_dlopen="dlopen" 10822b789ec8aSmrgelse 10823b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10824b789ec8aSmrg$as_echo_n "checking for dlopen in -ldl... " >&6; } 10825b789ec8aSmrgif ${ac_cv_lib_dl_dlopen+:} false; then : 10826b789ec8aSmrg $as_echo_n "(cached) " >&6 10827b789ec8aSmrgelse 10828b789ec8aSmrg ac_check_lib_save_LIBS=$LIBS 10829b789ec8aSmrgLIBS="-ldl $LIBS" 10830b789ec8aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 10831b789ec8aSmrg/* end confdefs.h. */ 108323e256790Smrg 10833b789ec8aSmrg/* Override any GCC internal prototype to avoid an error. 10834b789ec8aSmrg Use char because int might match the return type of a GCC 10835b789ec8aSmrg builtin and then its argument prototype would still apply. */ 10836b789ec8aSmrg#ifdef __cplusplus 10837b789ec8aSmrgextern "C" 10838b789ec8aSmrg#endif 10839b789ec8aSmrgchar dlopen (); 10840b789ec8aSmrgint 10841b789ec8aSmrgmain () 10842b789ec8aSmrg{ 10843b789ec8aSmrgreturn dlopen (); 10844c27c18e8Smrg ; 10845c27c18e8Smrg return 0; 10846c27c18e8Smrg} 10847c27c18e8Smrg_ACEOF 108483e256790Smrgif ac_fn_c_try_link "$LINENO"; then : 10849b789ec8aSmrg ac_cv_lib_dl_dlopen=yes 10850b789ec8aSmrgelse 10851b789ec8aSmrg ac_cv_lib_dl_dlopen=no 10852b789ec8aSmrgfi 10853b789ec8aSmrgrm -f core conftest.err conftest.$ac_objext \ 10854b789ec8aSmrg conftest$ac_exeext conftest.$ac_ext 10855b789ec8aSmrgLIBS=$ac_check_lib_save_LIBS 108563e256790Smrgfi 10857b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10858b789ec8aSmrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10859b789ec8aSmrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10860b789ec8aSmrg lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10861b789ec8aSmrgelse 10862b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10863b789ec8aSmrg$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10864b789ec8aSmrgif ${ac_cv_lib_svld_dlopen+:} false; then : 10865b789ec8aSmrg $as_echo_n "(cached) " >&6 10866b789ec8aSmrgelse 10867b789ec8aSmrg ac_check_lib_save_LIBS=$LIBS 10868b789ec8aSmrgLIBS="-lsvld $LIBS" 10869b789ec8aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 10870b789ec8aSmrg/* end confdefs.h. */ 10871b789ec8aSmrg 10872b789ec8aSmrg/* Override any GCC internal prototype to avoid an error. 10873b789ec8aSmrg Use char because int might match the return type of a GCC 10874b789ec8aSmrg builtin and then its argument prototype would still apply. */ 10875b789ec8aSmrg#ifdef __cplusplus 10876b789ec8aSmrgextern "C" 10877b789ec8aSmrg#endif 10878b789ec8aSmrgchar dlopen (); 10879b789ec8aSmrgint 10880b789ec8aSmrgmain () 10881b789ec8aSmrg{ 10882b789ec8aSmrgreturn dlopen (); 10883b789ec8aSmrg ; 10884b789ec8aSmrg return 0; 10885b789ec8aSmrg} 10886b789ec8aSmrg_ACEOF 10887b789ec8aSmrgif ac_fn_c_try_link "$LINENO"; then : 10888b789ec8aSmrg ac_cv_lib_svld_dlopen=yes 10889b789ec8aSmrgelse 10890b789ec8aSmrg ac_cv_lib_svld_dlopen=no 108913e256790Smrgfi 108923e256790Smrgrm -f core conftest.err conftest.$ac_objext \ 108933e256790Smrg conftest$ac_exeext conftest.$ac_ext 10894b789ec8aSmrgLIBS=$ac_check_lib_save_LIBS 10895b789ec8aSmrgfi 10896b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10897b789ec8aSmrg$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10898b789ec8aSmrgif test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10899b789ec8aSmrg lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10900b789ec8aSmrgelse 10901b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10902b789ec8aSmrg$as_echo_n "checking for dld_link in -ldld... " >&6; } 10903b789ec8aSmrgif ${ac_cv_lib_dld_dld_link+:} false; then : 10904b789ec8aSmrg $as_echo_n "(cached) " >&6 10905b789ec8aSmrgelse 10906b789ec8aSmrg ac_check_lib_save_LIBS=$LIBS 10907b789ec8aSmrgLIBS="-ldld $LIBS" 10908b789ec8aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 10909b789ec8aSmrg/* end confdefs.h. */ 10910b789ec8aSmrg 10911b789ec8aSmrg/* Override any GCC internal prototype to avoid an error. 10912b789ec8aSmrg Use char because int might match the return type of a GCC 10913b789ec8aSmrg builtin and then its argument prototype would still apply. */ 10914b789ec8aSmrg#ifdef __cplusplus 10915b789ec8aSmrgextern "C" 10916b789ec8aSmrg#endif 10917b789ec8aSmrgchar dld_link (); 10918b789ec8aSmrgint 10919b789ec8aSmrgmain () 10920b789ec8aSmrg{ 10921b789ec8aSmrgreturn dld_link (); 10922b789ec8aSmrg ; 10923b789ec8aSmrg return 0; 10924b789ec8aSmrg} 10925b789ec8aSmrg_ACEOF 10926b789ec8aSmrgif ac_fn_c_try_link "$LINENO"; then : 10927b789ec8aSmrg ac_cv_lib_dld_dld_link=yes 10928b789ec8aSmrgelse 10929b789ec8aSmrg ac_cv_lib_dld_dld_link=no 10930b789ec8aSmrgfi 10931b789ec8aSmrgrm -f core conftest.err conftest.$ac_objext \ 10932b789ec8aSmrg conftest$ac_exeext conftest.$ac_ext 10933b789ec8aSmrgLIBS=$ac_check_lib_save_LIBS 10934b789ec8aSmrgfi 10935b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10936b789ec8aSmrg$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10937b789ec8aSmrgif test "x$ac_cv_lib_dld_dld_link" = xyes; then : 10938b789ec8aSmrg lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10939b789ec8aSmrgfi 10940b789ec8aSmrg 1094137eb1ca1Smrg 1094237eb1ca1Smrgfi 1094337eb1ca1Smrg 109443e256790Smrg 10945b789ec8aSmrgfi 109463e256790Smrg 109473e256790Smrg 10948b789ec8aSmrgfi 10949b789ec8aSmrg 10950b789ec8aSmrg 10951b789ec8aSmrgfi 10952b789ec8aSmrg 10953b789ec8aSmrg 10954b789ec8aSmrgfi 10955b789ec8aSmrg 10956b789ec8aSmrg ;; 10957b789ec8aSmrg esac 10958b789ec8aSmrg 10959b789ec8aSmrg if test "x$lt_cv_dlopen" != xno; then 10960b789ec8aSmrg enable_dlopen=yes 10961b789ec8aSmrg else 10962b789ec8aSmrg enable_dlopen=no 10963b789ec8aSmrg fi 10964b789ec8aSmrg 10965b789ec8aSmrg case $lt_cv_dlopen in 10966b789ec8aSmrg dlopen) 10967b789ec8aSmrg save_CPPFLAGS="$CPPFLAGS" 10968b789ec8aSmrg test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10969b789ec8aSmrg 10970b789ec8aSmrg save_LDFLAGS="$LDFLAGS" 10971b789ec8aSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10972b789ec8aSmrg 10973b789ec8aSmrg save_LIBS="$LIBS" 10974b789ec8aSmrg LIBS="$lt_cv_dlopen_libs $LIBS" 10975b789ec8aSmrg 10976b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10977b789ec8aSmrg$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10978b789ec8aSmrgif ${lt_cv_dlopen_self+:} false; then : 10979b789ec8aSmrg $as_echo_n "(cached) " >&6 10980b789ec8aSmrgelse 10981b789ec8aSmrg if test "$cross_compiling" = yes; then : 10982b789ec8aSmrg lt_cv_dlopen_self=cross 10983b789ec8aSmrgelse 10984b789ec8aSmrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10985b789ec8aSmrg lt_status=$lt_dlunknown 10986b789ec8aSmrg cat > conftest.$ac_ext <<_LT_EOF 10987b789ec8aSmrg#line $LINENO "configure" 10988b789ec8aSmrg#include "confdefs.h" 10989b789ec8aSmrg 10990b789ec8aSmrg#if HAVE_DLFCN_H 10991b789ec8aSmrg#include <dlfcn.h> 10992b789ec8aSmrg#endif 10993b789ec8aSmrg 10994b789ec8aSmrg#include <stdio.h> 10995b789ec8aSmrg 10996b789ec8aSmrg#ifdef RTLD_GLOBAL 10997b789ec8aSmrg# define LT_DLGLOBAL RTLD_GLOBAL 10998b789ec8aSmrg#else 10999b789ec8aSmrg# ifdef DL_GLOBAL 11000b789ec8aSmrg# define LT_DLGLOBAL DL_GLOBAL 11001b789ec8aSmrg# else 11002b789ec8aSmrg# define LT_DLGLOBAL 0 11003b789ec8aSmrg# endif 11004b789ec8aSmrg#endif 11005b789ec8aSmrg 11006b789ec8aSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11007b789ec8aSmrg find out it does not work in some platform. */ 11008b789ec8aSmrg#ifndef LT_DLLAZY_OR_NOW 11009b789ec8aSmrg# ifdef RTLD_LAZY 11010b789ec8aSmrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 11011b789ec8aSmrg# else 11012b789ec8aSmrg# ifdef DL_LAZY 11013b789ec8aSmrg# define LT_DLLAZY_OR_NOW DL_LAZY 11014b789ec8aSmrg# else 11015b789ec8aSmrg# ifdef RTLD_NOW 11016b789ec8aSmrg# define LT_DLLAZY_OR_NOW RTLD_NOW 11017b789ec8aSmrg# else 11018b789ec8aSmrg# ifdef DL_NOW 11019b789ec8aSmrg# define LT_DLLAZY_OR_NOW DL_NOW 11020b789ec8aSmrg# else 11021b789ec8aSmrg# define LT_DLLAZY_OR_NOW 0 11022b789ec8aSmrg# endif 11023b789ec8aSmrg# endif 11024b789ec8aSmrg# endif 11025b789ec8aSmrg# endif 11026b789ec8aSmrg#endif 1102737eb1ca1Smrg 11028b789ec8aSmrg/* When -fvisbility=hidden is used, assume the code has been annotated 11029b789ec8aSmrg correspondingly for the symbols needed. */ 11030b789ec8aSmrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11031b789ec8aSmrgint fnord () __attribute__((visibility("default"))); 11032b789ec8aSmrg#endif 110333e256790Smrg 11034b789ec8aSmrgint fnord () { return 42; } 11035b789ec8aSmrgint main () 11036b789ec8aSmrg{ 11037b789ec8aSmrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11038b789ec8aSmrg int status = $lt_dlunknown; 110393e256790Smrg 11040b789ec8aSmrg if (self) 11041b789ec8aSmrg { 11042b789ec8aSmrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11043b789ec8aSmrg else 11044b789ec8aSmrg { 11045b789ec8aSmrg if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11046b789ec8aSmrg else puts (dlerror ()); 11047b789ec8aSmrg } 11048b789ec8aSmrg /* dlclose (self); */ 11049b789ec8aSmrg } 110503e256790Smrg else 11051b789ec8aSmrg puts (dlerror ()); 110523e256790Smrg 11053b789ec8aSmrg return status; 11054b789ec8aSmrg} 11055b789ec8aSmrg_LT_EOF 11056b789ec8aSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11057b789ec8aSmrg (eval $ac_link) 2>&5 11058b789ec8aSmrg ac_status=$? 11059b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11060b789ec8aSmrg test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11061b789ec8aSmrg (./conftest; exit; ) >&5 2>/dev/null 11062b789ec8aSmrg lt_status=$? 11063b789ec8aSmrg case x$lt_status in 11064b789ec8aSmrg x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11065b789ec8aSmrg x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11066b789ec8aSmrg x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11067b789ec8aSmrg esac 11068b789ec8aSmrg else : 11069b789ec8aSmrg # compilation failed 11070b789ec8aSmrg lt_cv_dlopen_self=no 11071b789ec8aSmrg fi 11072b789ec8aSmrgfi 11073b789ec8aSmrgrm -fr conftest* 110743e256790Smrg 110753e256790Smrg 11076b789ec8aSmrgfi 11077b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11078b789ec8aSmrg$as_echo "$lt_cv_dlopen_self" >&6; } 110793e256790Smrg 11080b789ec8aSmrg if test "x$lt_cv_dlopen_self" = xyes; then 11081b789ec8aSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11082b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11083b789ec8aSmrg$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11084b789ec8aSmrgif ${lt_cv_dlopen_self_static+:} false; then : 11085b789ec8aSmrg $as_echo_n "(cached) " >&6 11086b789ec8aSmrgelse 11087b789ec8aSmrg if test "$cross_compiling" = yes; then : 11088b789ec8aSmrg lt_cv_dlopen_self_static=cross 11089b789ec8aSmrgelse 11090b789ec8aSmrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11091b789ec8aSmrg lt_status=$lt_dlunknown 11092b789ec8aSmrg cat > conftest.$ac_ext <<_LT_EOF 11093b789ec8aSmrg#line $LINENO "configure" 11094b789ec8aSmrg#include "confdefs.h" 110953e256790Smrg 11096b789ec8aSmrg#if HAVE_DLFCN_H 11097b789ec8aSmrg#include <dlfcn.h> 11098b789ec8aSmrg#endif 110993e256790Smrg 11100b789ec8aSmrg#include <stdio.h> 111013e256790Smrg 11102b789ec8aSmrg#ifdef RTLD_GLOBAL 11103b789ec8aSmrg# define LT_DLGLOBAL RTLD_GLOBAL 11104b789ec8aSmrg#else 11105b789ec8aSmrg# ifdef DL_GLOBAL 11106b789ec8aSmrg# define LT_DLGLOBAL DL_GLOBAL 11107b789ec8aSmrg# else 11108b789ec8aSmrg# define LT_DLGLOBAL 0 11109b789ec8aSmrg# endif 11110b789ec8aSmrg#endif 111113e256790Smrg 11112b789ec8aSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11113b789ec8aSmrg find out it does not work in some platform. */ 11114b789ec8aSmrg#ifndef LT_DLLAZY_OR_NOW 11115b789ec8aSmrg# ifdef RTLD_LAZY 11116b789ec8aSmrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 11117b789ec8aSmrg# else 11118b789ec8aSmrg# ifdef DL_LAZY 11119b789ec8aSmrg# define LT_DLLAZY_OR_NOW DL_LAZY 11120b789ec8aSmrg# else 11121b789ec8aSmrg# ifdef RTLD_NOW 11122b789ec8aSmrg# define LT_DLLAZY_OR_NOW RTLD_NOW 11123b789ec8aSmrg# else 11124b789ec8aSmrg# ifdef DL_NOW 11125b789ec8aSmrg# define LT_DLLAZY_OR_NOW DL_NOW 11126b789ec8aSmrg# else 11127b789ec8aSmrg# define LT_DLLAZY_OR_NOW 0 11128b789ec8aSmrg# endif 11129b789ec8aSmrg# endif 11130b789ec8aSmrg# endif 11131b789ec8aSmrg# endif 11132b789ec8aSmrg#endif 111333e256790Smrg 11134b789ec8aSmrg/* When -fvisbility=hidden is used, assume the code has been annotated 11135b789ec8aSmrg correspondingly for the symbols needed. */ 11136b789ec8aSmrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11137b789ec8aSmrgint fnord () __attribute__((visibility("default"))); 11138b789ec8aSmrg#endif 111393e256790Smrg 11140b789ec8aSmrgint fnord () { return 42; } 11141b789ec8aSmrgint main () 11142b789ec8aSmrg{ 11143b789ec8aSmrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11144b789ec8aSmrg int status = $lt_dlunknown; 111453e256790Smrg 11146b789ec8aSmrg if (self) 11147b789ec8aSmrg { 11148b789ec8aSmrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11149b789ec8aSmrg else 11150b789ec8aSmrg { 11151b789ec8aSmrg if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11152b789ec8aSmrg else puts (dlerror ()); 11153b789ec8aSmrg } 11154b789ec8aSmrg /* dlclose (self); */ 11155b789ec8aSmrg } 111563e256790Smrg else 11157b789ec8aSmrg puts (dlerror ()); 11158b789ec8aSmrg 11159b789ec8aSmrg return status; 11160b789ec8aSmrg} 11161b789ec8aSmrg_LT_EOF 11162b789ec8aSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11163b789ec8aSmrg (eval $ac_link) 2>&5 11164b789ec8aSmrg ac_status=$? 11165b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11166b789ec8aSmrg test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11167b789ec8aSmrg (./conftest; exit; ) >&5 2>/dev/null 11168b789ec8aSmrg lt_status=$? 11169b789ec8aSmrg case x$lt_status in 11170b789ec8aSmrg x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11171b789ec8aSmrg x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11172b789ec8aSmrg x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 111733e256790Smrg esac 11174b789ec8aSmrg else : 11175b789ec8aSmrg # compilation failed 11176b789ec8aSmrg lt_cv_dlopen_self_static=no 111773e256790Smrg fi 11178b789ec8aSmrgfi 11179b789ec8aSmrgrm -fr conftest* 111803e256790Smrg 111813e256790Smrg 11182b789ec8aSmrgfi 11183b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11184b789ec8aSmrg$as_echo "$lt_cv_dlopen_self_static" >&6; } 11185b789ec8aSmrg fi 111863e256790Smrg 11187b789ec8aSmrg CPPFLAGS="$save_CPPFLAGS" 11188b789ec8aSmrg LDFLAGS="$save_LDFLAGS" 11189b789ec8aSmrg LIBS="$save_LIBS" 11190b789ec8aSmrg ;; 11191b789ec8aSmrg esac 11192c43cc173Smrg 11193b789ec8aSmrg case $lt_cv_dlopen_self in 11194b789ec8aSmrg yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11195b789ec8aSmrg *) enable_dlopen_self=unknown ;; 11196b789ec8aSmrg esac 11197c43cc173Smrg 11198b789ec8aSmrg case $lt_cv_dlopen_self_static in 11199b789ec8aSmrg yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11200b789ec8aSmrg *) enable_dlopen_self_static=unknown ;; 11201b789ec8aSmrg esac 11202c27c18e8Smrgfi 11203c43cc173Smrg 11204c43cc173Smrg 11205c27c18e8Smrg 11206c43cc173Smrg 11207c43cc173Smrg 1120821e67964Smrg 11209c43cc173Smrg 11210c43cc173Smrg 11211c43cc173Smrg 11212c43cc173Smrg 11213c27c18e8Smrg 11214c27c18e8Smrg 11215c43cc173Smrg 11216c43cc173Smrg 11217c43cc173Smrg 11218c43cc173Smrg 11219c43cc173Smrg 11220b789ec8aSmrgstriplib= 11221b789ec8aSmrgold_striplib= 11222b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11223b789ec8aSmrg$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11224b789ec8aSmrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11225b789ec8aSmrg test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11226b789ec8aSmrg test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11227b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11228b789ec8aSmrg$as_echo "yes" >&6; } 11229b789ec8aSmrgelse 11230b789ec8aSmrg# FIXME - insert some real tests, host_os isn't really good enough 11231b789ec8aSmrg case $host_os in 11232b789ec8aSmrg darwin*) 11233b789ec8aSmrg if test -n "$STRIP" ; then 11234b789ec8aSmrg striplib="$STRIP -x" 11235b789ec8aSmrg old_striplib="$STRIP -S" 11236b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11237b789ec8aSmrg$as_echo "yes" >&6; } 11238b789ec8aSmrg else 11239b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11240b789ec8aSmrg$as_echo "no" >&6; } 11241b789ec8aSmrg fi 11242b789ec8aSmrg ;; 11243b789ec8aSmrg *) 11244b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11245b789ec8aSmrg$as_echo "no" >&6; } 11246b789ec8aSmrg ;; 11247b789ec8aSmrg esac 11248b789ec8aSmrgfi 11249b789ec8aSmrg 11250b789ec8aSmrg 11251b789ec8aSmrg 11252b789ec8aSmrg 11253b789ec8aSmrg 11254b789ec8aSmrg 11255b789ec8aSmrg 11256b789ec8aSmrg 11257b789ec8aSmrg 11258b789ec8aSmrg 11259c43cc173Smrg 11260c27c18e8Smrg 11261b789ec8aSmrg # Report which library types will actually be built 11262b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11263b789ec8aSmrg$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11264b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11265b789ec8aSmrg$as_echo "$can_build_shared" >&6; } 11266c27c18e8Smrg 11267b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11268b789ec8aSmrg$as_echo_n "checking whether to build shared libraries... " >&6; } 11269b789ec8aSmrg test "$can_build_shared" = "no" && enable_shared=no 11270c27c18e8Smrg 11271b789ec8aSmrg # On AIX, shared libraries and static libraries use the same namespace, and 11272b789ec8aSmrg # are all built from PIC. 11273b789ec8aSmrg case $host_os in 11274b789ec8aSmrg aix3*) 11275b789ec8aSmrg test "$enable_shared" = yes && enable_static=no 11276b789ec8aSmrg if test -n "$RANLIB"; then 11277b789ec8aSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 11278b789ec8aSmrg postinstall_cmds='$RANLIB $lib' 11279b789ec8aSmrg fi 11280b789ec8aSmrg ;; 11281c27c18e8Smrg 11282b789ec8aSmrg aix[4-9]*) 11283b789ec8aSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11284b789ec8aSmrg test "$enable_shared" = yes && enable_static=no 11285b789ec8aSmrg fi 11286b789ec8aSmrg ;; 11287b789ec8aSmrg esac 11288b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11289b789ec8aSmrg$as_echo "$enable_shared" >&6; } 11290c27c18e8Smrg 11291b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11292b789ec8aSmrg$as_echo_n "checking whether to build static libraries... " >&6; } 11293b789ec8aSmrg # Make sure either enable_shared or enable_static is yes. 11294b789ec8aSmrg test "$enable_shared" = yes || enable_static=yes 11295b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11296b789ec8aSmrg$as_echo "$enable_static" >&6; } 11297c43cc173Smrg 11298c43cc173Smrg 1129921e67964Smrg 11300c43cc173Smrg 11301b789ec8aSmrgfi 11302b789ec8aSmrgac_ext=c 11303b789ec8aSmrgac_cpp='$CPP $CPPFLAGS' 11304b789ec8aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11305b789ec8aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11306b789ec8aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 11307c43cc173Smrg 11308b789ec8aSmrgCC="$lt_save_CC" 11309c43cc173Smrg 11310c27c18e8Smrg 11311c27c18e8Smrg 11312c27c18e8Smrg 11313c27c18e8Smrg 11314c43cc173Smrg 11315c43cc173Smrg 11316c43cc173Smrg 11317c43cc173Smrg 11318c43cc173Smrg 11319c43cc173Smrg 11320c43cc173Smrg 11321c43cc173Smrg 11322b789ec8aSmrg ac_config_commands="$ac_config_commands libtool" 11323c43cc173Smrg 11324c43cc173Smrg 11325c43cc173Smrg 11326c43cc173Smrg 11327b789ec8aSmrg# Only expand once: 11328c43cc173Smrg 11329c43cc173Smrg 1133021e67964Smrg 11331b789ec8aSmrg# Require xorg-macros minimum of 1.10 for DocBook XML documentation 11332c43cc173Smrg 11333c43cc173Smrg 11334c43cc173Smrg 11335c43cc173Smrg 11336c43cc173Smrg 11337c43cc173Smrg 11338c43cc173Smrg 1133921e67964Smrg 1134021e67964Smrg 1134121e67964Smrg 11342c43cc173Smrg 11343b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11344b789ec8aSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11345b789ec8aSmrgif ${ac_cv_prog_cc_c99+:} false; then : 11346b789ec8aSmrg $as_echo_n "(cached) " >&6 11347b789ec8aSmrgelse 11348b789ec8aSmrg ac_cv_prog_cc_c99=no 11349b789ec8aSmrgac_save_CC=$CC 11350b789ec8aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 11351b789ec8aSmrg/* end confdefs.h. */ 11352b789ec8aSmrg#include <stdarg.h> 11353b789ec8aSmrg#include <stdbool.h> 11354b789ec8aSmrg#include <stdlib.h> 11355b789ec8aSmrg#include <wchar.h> 11356b789ec8aSmrg#include <stdio.h> 11357c43cc173Smrg 11358b789ec8aSmrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 11359b789ec8aSmrg#define debug(...) fprintf (stderr, __VA_ARGS__) 11360b789ec8aSmrg#define showlist(...) puts (#__VA_ARGS__) 11361b789ec8aSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11362b789ec8aSmrgstatic void 11363b789ec8aSmrgtest_varargs_macros (void) 11364b789ec8aSmrg{ 11365b789ec8aSmrg int x = 1234; 11366b789ec8aSmrg int y = 5678; 11367b789ec8aSmrg debug ("Flag"); 11368b789ec8aSmrg debug ("X = %d\n", x); 11369b789ec8aSmrg showlist (The first, second, and third items.); 11370b789ec8aSmrg report (x>y, "x is %d but y is %d", x, y); 11371b789ec8aSmrg} 11372c43cc173Smrg 11373b789ec8aSmrg// Check long long types. 11374b789ec8aSmrg#define BIG64 18446744073709551615ull 11375b789ec8aSmrg#define BIG32 4294967295ul 11376b789ec8aSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11377b789ec8aSmrg#if !BIG_OK 11378b789ec8aSmrg your preprocessor is broken; 11379b789ec8aSmrg#endif 11380b789ec8aSmrg#if BIG_OK 11381b789ec8aSmrg#else 11382b789ec8aSmrg your preprocessor is broken; 11383b789ec8aSmrg#endif 11384b789ec8aSmrgstatic long long int bignum = -9223372036854775807LL; 11385b789ec8aSmrgstatic unsigned long long int ubignum = BIG64; 11386c43cc173Smrg 11387b789ec8aSmrgstruct incomplete_array 11388b789ec8aSmrg{ 11389b789ec8aSmrg int datasize; 11390b789ec8aSmrg double data[]; 11391b789ec8aSmrg}; 11392c43cc173Smrg 11393b789ec8aSmrgstruct named_init { 11394b789ec8aSmrg int number; 11395b789ec8aSmrg const wchar_t *name; 11396b789ec8aSmrg double average; 11397b789ec8aSmrg}; 11398c43cc173Smrg 11399b789ec8aSmrgtypedef const char *ccp; 11400c27c18e8Smrg 11401b789ec8aSmrgstatic inline int 11402b789ec8aSmrgtest_restrict (ccp restrict text) 11403b789ec8aSmrg{ 11404b789ec8aSmrg // See if C++-style comments work. 11405b789ec8aSmrg // Iterate through items via the restricted pointer. 11406b789ec8aSmrg // Also check for declarations in for loops. 11407b789ec8aSmrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11408b789ec8aSmrg continue; 11409b789ec8aSmrg return 0; 11410b789ec8aSmrg} 11411c27c18e8Smrg 11412b789ec8aSmrg// Check varargs and va_copy. 11413b789ec8aSmrgstatic void 11414b789ec8aSmrgtest_varargs (const char *format, ...) 11415b789ec8aSmrg{ 11416b789ec8aSmrg va_list args; 11417b789ec8aSmrg va_start (args, format); 11418b789ec8aSmrg va_list args_copy; 11419b789ec8aSmrg va_copy (args_copy, args); 11420c27c18e8Smrg 11421b789ec8aSmrg const char *str; 11422b789ec8aSmrg int number; 11423b789ec8aSmrg float fnumber; 11424c27c18e8Smrg 11425b789ec8aSmrg while (*format) 11426b789ec8aSmrg { 11427b789ec8aSmrg switch (*format++) 11428b789ec8aSmrg { 11429b789ec8aSmrg case 's': // string 11430b789ec8aSmrg str = va_arg (args_copy, const char *); 11431b789ec8aSmrg break; 11432b789ec8aSmrg case 'd': // int 11433b789ec8aSmrg number = va_arg (args_copy, int); 11434b789ec8aSmrg break; 11435b789ec8aSmrg case 'f': // float 11436b789ec8aSmrg fnumber = va_arg (args_copy, double); 11437b789ec8aSmrg break; 11438b789ec8aSmrg default: 11439b789ec8aSmrg break; 11440b789ec8aSmrg } 11441b789ec8aSmrg } 11442b789ec8aSmrg va_end (args_copy); 11443b789ec8aSmrg va_end (args); 11444b789ec8aSmrg} 11445c27c18e8Smrg 11446b789ec8aSmrgint 11447b789ec8aSmrgmain () 11448b789ec8aSmrg{ 11449c27c18e8Smrg 11450b789ec8aSmrg // Check bool. 11451b789ec8aSmrg _Bool success = false; 11452c43cc173Smrg 11453b789ec8aSmrg // Check restrict. 11454b789ec8aSmrg if (test_restrict ("String literal") == 0) 11455b789ec8aSmrg success = true; 11456b789ec8aSmrg char *restrict newvar = "Another string"; 11457c43cc173Smrg 11458b789ec8aSmrg // Check varargs. 11459b789ec8aSmrg test_varargs ("s, d' f .", "string", 65, 34.234); 11460b789ec8aSmrg test_varargs_macros (); 11461c43cc173Smrg 11462b789ec8aSmrg // Check flexible array members. 11463b789ec8aSmrg struct incomplete_array *ia = 11464b789ec8aSmrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11465b789ec8aSmrg ia->datasize = 10; 11466b789ec8aSmrg for (int i = 0; i < ia->datasize; ++i) 11467b789ec8aSmrg ia->data[i] = i * 1.234; 11468c43cc173Smrg 11469b789ec8aSmrg // Check named initializers. 11470b789ec8aSmrg struct named_init ni = { 11471b789ec8aSmrg .number = 34, 11472b789ec8aSmrg .name = L"Test wide string", 11473b789ec8aSmrg .average = 543.34343, 11474b789ec8aSmrg }; 11475c43cc173Smrg 11476b789ec8aSmrg ni.number = 58; 11477c43cc173Smrg 11478b789ec8aSmrg int dynamic_array[ni.number]; 11479b789ec8aSmrg dynamic_array[ni.number - 1] = 543; 11480c43cc173Smrg 11481b789ec8aSmrg // work around unused variable warnings 11482b789ec8aSmrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11483b789ec8aSmrg || dynamic_array[ni.number - 1] != 543); 11484c43cc173Smrg 11485b789ec8aSmrg ; 11486b789ec8aSmrg return 0; 11487b789ec8aSmrg} 11488b789ec8aSmrg_ACEOF 11489b789ec8aSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11490b789ec8aSmrgdo 11491b789ec8aSmrg CC="$ac_save_CC $ac_arg" 11492b789ec8aSmrg if ac_fn_c_try_compile "$LINENO"; then : 11493b789ec8aSmrg ac_cv_prog_cc_c99=$ac_arg 11494b789ec8aSmrgfi 11495b789ec8aSmrgrm -f core conftest.err conftest.$ac_objext 11496b789ec8aSmrg test "x$ac_cv_prog_cc_c99" != "xno" && break 11497b789ec8aSmrgdone 11498b789ec8aSmrgrm -f conftest.$ac_ext 11499b789ec8aSmrgCC=$ac_save_CC 11500c43cc173Smrg 11501b789ec8aSmrgfi 11502b789ec8aSmrg# AC_CACHE_VAL 11503b789ec8aSmrgcase "x$ac_cv_prog_cc_c99" in 11504b789ec8aSmrg x) 11505b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11506b789ec8aSmrg$as_echo "none needed" >&6; } ;; 11507b789ec8aSmrg xno) 11508b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11509b789ec8aSmrg$as_echo "unsupported" >&6; } ;; 11510b789ec8aSmrg *) 11511b789ec8aSmrg CC="$CC $ac_cv_prog_cc_c99" 11512b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11513b789ec8aSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11514b789ec8aSmrgesac 11515b789ec8aSmrgif test "x$ac_cv_prog_cc_c99" != xno; then : 11516c43cc173Smrg 11517b789ec8aSmrgfi 11518c43cc173Smrg 1151937eb1ca1Smrg 1152037eb1ca1Smrg 1152137eb1ca1Smrg 1152237eb1ca1Smrg 1152337eb1ca1Smrg 11524c43cc173Smrg 11525c43cc173Smrg 11526b789ec8aSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11527b789ec8aSmrg if test -n "$ac_tool_prefix"; then 11528b789ec8aSmrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11529b789ec8aSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11530b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11531b789ec8aSmrg$as_echo_n "checking for $ac_word... " >&6; } 11532b789ec8aSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 11533b789ec8aSmrg $as_echo_n "(cached) " >&6 11534b789ec8aSmrgelse 11535b789ec8aSmrg case $PKG_CONFIG in 11536b789ec8aSmrg [\\/]* | ?:[\\/]*) 11537b789ec8aSmrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11538b789ec8aSmrg ;; 11539b789ec8aSmrg *) 11540b789ec8aSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11541b789ec8aSmrgfor as_dir in $PATH 11542b789ec8aSmrgdo 11543b789ec8aSmrg IFS=$as_save_IFS 11544b789ec8aSmrg test -z "$as_dir" && as_dir=. 11545b789ec8aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 11546b789ec8aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11547b789ec8aSmrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11548b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11549b789ec8aSmrg break 2 11550b789ec8aSmrg fi 11551b789ec8aSmrgdone 11552b789ec8aSmrg done 11553b789ec8aSmrgIFS=$as_save_IFS 11554c43cc173Smrg 11555b789ec8aSmrg ;; 11556b789ec8aSmrgesac 11557b789ec8aSmrgfi 11558b789ec8aSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 11559b789ec8aSmrgif test -n "$PKG_CONFIG"; then 11560b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11561b789ec8aSmrg$as_echo "$PKG_CONFIG" >&6; } 11562b789ec8aSmrgelse 11563b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11564b789ec8aSmrg$as_echo "no" >&6; } 11565b789ec8aSmrgfi 11566c43cc173Smrg 11567c43cc173Smrg 11568b789ec8aSmrgfi 11569b789ec8aSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then 11570b789ec8aSmrg ac_pt_PKG_CONFIG=$PKG_CONFIG 11571b789ec8aSmrg # Extract the first word of "pkg-config", so it can be a program name with args. 11572b789ec8aSmrgset dummy pkg-config; ac_word=$2 11573b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11574b789ec8aSmrg$as_echo_n "checking for $ac_word... " >&6; } 11575b789ec8aSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11576b789ec8aSmrg $as_echo_n "(cached) " >&6 11577b789ec8aSmrgelse 11578b789ec8aSmrg case $ac_pt_PKG_CONFIG in 11579b789ec8aSmrg [\\/]* | ?:[\\/]*) 11580b789ec8aSmrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11581b789ec8aSmrg ;; 11582b789ec8aSmrg *) 11583b789ec8aSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11584b789ec8aSmrgfor as_dir in $PATH 11585b789ec8aSmrgdo 11586b789ec8aSmrg IFS=$as_save_IFS 11587b789ec8aSmrg test -z "$as_dir" && as_dir=. 11588b789ec8aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 11589b789ec8aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11590b789ec8aSmrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11591b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11592b789ec8aSmrg break 2 11593b789ec8aSmrg fi 11594b789ec8aSmrgdone 11595b789ec8aSmrg done 11596b789ec8aSmrgIFS=$as_save_IFS 11597c43cc173Smrg 11598b789ec8aSmrg ;; 11599b789ec8aSmrgesac 11600b789ec8aSmrgfi 11601b789ec8aSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11602b789ec8aSmrgif test -n "$ac_pt_PKG_CONFIG"; then 11603b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11604b789ec8aSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11605b789ec8aSmrgelse 11606b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11607b789ec8aSmrg$as_echo "no" >&6; } 11608b789ec8aSmrgfi 116093e256790Smrg 11610b789ec8aSmrg if test "x$ac_pt_PKG_CONFIG" = x; then 11611b789ec8aSmrg PKG_CONFIG="" 116123e256790Smrg else 11613b789ec8aSmrg case $cross_compiling:$ac_tool_warned in 11614b789ec8aSmrgyes:) 11615b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11616b789ec8aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11617b789ec8aSmrgac_tool_warned=yes ;; 11618b789ec8aSmrgesac 11619b789ec8aSmrg PKG_CONFIG=$ac_pt_PKG_CONFIG 116203e256790Smrg fi 116213e256790Smrgelse 11622b789ec8aSmrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 116233e256790Smrgfi 116243e256790Smrg 11625b789ec8aSmrgfi 11626b789ec8aSmrgif test -n "$PKG_CONFIG"; then 11627b789ec8aSmrg _pkg_min_version=0.9.0 11628b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11629b789ec8aSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11630b789ec8aSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11631b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11632b789ec8aSmrg$as_echo "yes" >&6; } 11633b789ec8aSmrg else 11634b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11635b789ec8aSmrg$as_echo "no" >&6; } 11636b789ec8aSmrg PKG_CONFIG="" 11637b789ec8aSmrg fi 116383e256790Smrgfi 116393e256790Smrg 116403e256790Smrg 116413e256790Smrg 116423e256790Smrg 11643b789ec8aSmrgif test "x$GCC" = xyes ; then 11644b789ec8aSmrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 11645b789ec8aSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 11646b789ec8aSmrg-Wbad-function-cast -Wformat=2" 11647b789ec8aSmrg case `$CC -dumpversion` in 11648b789ec8aSmrg 3.4.* | 4.*) 11649b789ec8aSmrg CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 11650b789ec8aSmrg ;; 11651b789ec8aSmrg esac 116523e256790Smrgelse 11653b789ec8aSmrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11654b789ec8aSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11655b789ec8aSmrg SUNCC="yes" 116563e256790Smrgelse 11657b789ec8aSmrg SUNCC="no" 116583e256790Smrgfi 11659b789ec8aSmrg 11660b789ec8aSmrg if test "x$SUNCC" = "xyes"; then 11661b789ec8aSmrg CWARNFLAGS="-v" 11662b789ec8aSmrg fi 116633e256790Smrgfi 11664c43cc173Smrg 11665c43cc173Smrg 11666c43cc173Smrg 11667b789ec8aSmrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 11668c43cc173Smrg 11669c43cc173Smrg 116703e256790Smrg 11671b789ec8aSmrg# Check whether --enable-strict-compilation was given. 11672b789ec8aSmrgif test "${enable_strict_compilation+set}" = set; then : 11673b789ec8aSmrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 116743e256790Smrgelse 11675b789ec8aSmrg STRICT_COMPILE=no 11676c27c18e8Smrgfi 11677c43cc173Smrg 11678b789ec8aSmrgif test "x$STRICT_COMPILE" = "xyes"; then 11679b789ec8aSmrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11680b789ec8aSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11681b789ec8aSmrg SUNCC="yes" 116823e256790Smrgelse 11683b789ec8aSmrg SUNCC="no" 11684c27c18e8Smrgfi 11685c43cc173Smrg 11686b789ec8aSmrg ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11687b789ec8aSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11688b789ec8aSmrg INTELCC="yes" 116893e256790Smrgelse 11690b789ec8aSmrg INTELCC="no" 116913e256790Smrgfi 11692b789ec8aSmrg 11693b789ec8aSmrg if test "x$GCC" = xyes ; then 11694b789ec8aSmrg STRICT_CFLAGS="-pedantic -Werror" 11695b789ec8aSmrg elif test "x$SUNCC" = "xyes"; then 11696b789ec8aSmrg STRICT_CFLAGS="-errwarn" 11697b789ec8aSmrg elif test "x$INTELCC" = "xyes"; then 11698b789ec8aSmrg STRICT_CFLAGS="-Werror" 11699b789ec8aSmrg fi 117003e256790Smrgfi 11701b789ec8aSmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11702c43cc173Smrg 11703c43cc173Smrg 11704c43cc173Smrg 11705c43cc173Smrg 11706b789ec8aSmrgcat >>confdefs.h <<_ACEOF 11707b789ec8aSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11708b789ec8aSmrg_ACEOF 11709c43cc173Smrg 11710b789ec8aSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11711b789ec8aSmrg if test "x$PVM" = "x"; then 11712b789ec8aSmrg PVM="0" 11713b789ec8aSmrg fi 11714c43cc173Smrg 11715b789ec8aSmrgcat >>confdefs.h <<_ACEOF 11716b789ec8aSmrg#define PACKAGE_VERSION_MINOR $PVM 11717b789ec8aSmrg_ACEOF 11718c43cc173Smrg 11719b789ec8aSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11720b789ec8aSmrg if test "x$PVP" = "x"; then 11721b789ec8aSmrg PVP="0" 11722b789ec8aSmrg fi 11723c43cc173Smrg 11724b789ec8aSmrgcat >>confdefs.h <<_ACEOF 11725b789ec8aSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 11726b789ec8aSmrg_ACEOF 11727c43cc173Smrg 11728c43cc173Smrg 11729c43cc173Smrg 11730b789ec8aSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 11731b789ec8aSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11732b789ec8aSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 11733b789ec8aSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 11734c43cc173Smrg 11735c43cc173Smrg 11736c43cc173Smrg 11737c43cc173Smrg 11738b789ec8aSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11739b789ec8aSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11740b789ec8aSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11741b789ec8aSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 11742b789ec8aSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 11743c43cc173Smrg 11744c43cc173Smrg 11745c43cc173Smrg 117463e256790Smrg 117473e256790Smrg 117483e256790Smrg 11749b789ec8aSmrgif test x$APP_MAN_SUFFIX = x ; then 11750b789ec8aSmrg APP_MAN_SUFFIX=1 11751b789ec8aSmrgfi 11752b789ec8aSmrgif test x$APP_MAN_DIR = x ; then 11753b789ec8aSmrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11754b789ec8aSmrgfi 1175537eb1ca1Smrg 11756b789ec8aSmrgif test x$LIB_MAN_SUFFIX = x ; then 11757b789ec8aSmrg LIB_MAN_SUFFIX=3 11758b789ec8aSmrgfi 11759b789ec8aSmrgif test x$LIB_MAN_DIR = x ; then 11760b789ec8aSmrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11761b789ec8aSmrgfi 11762c43cc173Smrg 11763b789ec8aSmrgif test x$FILE_MAN_SUFFIX = x ; then 11764b789ec8aSmrg case $host_os in 11765b789ec8aSmrg solaris*) FILE_MAN_SUFFIX=4 ;; 11766b789ec8aSmrg *) FILE_MAN_SUFFIX=5 ;; 11767b789ec8aSmrg esac 11768b789ec8aSmrgfi 11769b789ec8aSmrgif test x$FILE_MAN_DIR = x ; then 11770b789ec8aSmrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11771b789ec8aSmrgfi 11772c43cc173Smrg 11773b789ec8aSmrgif test x$MISC_MAN_SUFFIX = x ; then 11774b789ec8aSmrg case $host_os in 11775b789ec8aSmrg solaris*) MISC_MAN_SUFFIX=5 ;; 11776b789ec8aSmrg *) MISC_MAN_SUFFIX=7 ;; 117773e256790Smrg esac 11778c27c18e8Smrgfi 11779b789ec8aSmrgif test x$MISC_MAN_DIR = x ; then 11780b789ec8aSmrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11781b789ec8aSmrgfi 11782c43cc173Smrg 11783b789ec8aSmrgif test x$DRIVER_MAN_SUFFIX = x ; then 11784b789ec8aSmrg case $host_os in 11785b789ec8aSmrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 11786b789ec8aSmrg *) DRIVER_MAN_SUFFIX=4 ;; 11787b789ec8aSmrg esac 11788b789ec8aSmrgfi 11789b789ec8aSmrgif test x$DRIVER_MAN_DIR = x ; then 11790b789ec8aSmrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11791b789ec8aSmrgfi 11792c43cc173Smrg 11793b789ec8aSmrgif test x$ADMIN_MAN_SUFFIX = x ; then 11794b789ec8aSmrg case $host_os in 11795b789ec8aSmrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 11796b789ec8aSmrg *) ADMIN_MAN_SUFFIX=8 ;; 11797b789ec8aSmrg esac 11798b789ec8aSmrgfi 11799b789ec8aSmrgif test x$ADMIN_MAN_DIR = x ; then 11800b789ec8aSmrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11801c27c18e8Smrgfi 11802c43cc173Smrg 11803c43cc173Smrg 11804c43cc173Smrg 11805c43cc173Smrg 11806c43cc173Smrg 11807c43cc173Smrg 1180837eb1ca1Smrg 11809c43cc173Smrg 118103e256790Smrg 11811c43cc173Smrg 11812c43cc173Smrg 11813c43cc173Smrg 118143e256790Smrg 118153e256790Smrg 11816b789ec8aSmrg 11817b789ec8aSmrgXORG_MAN_PAGE="X Version 11" 11818b789ec8aSmrg 11819b789ec8aSmrgMAN_SUBSTS="\ 11820b789ec8aSmrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11821b789ec8aSmrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11822b789ec8aSmrg -e 's|__xservername__|Xorg|g' \ 11823b789ec8aSmrg -e 's|__xconfigfile__|xorg.conf|g' \ 11824b789ec8aSmrg -e 's|__projectroot__|\$(prefix)|g' \ 11825b789ec8aSmrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11826b789ec8aSmrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11827b789ec8aSmrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11828b789ec8aSmrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11829b789ec8aSmrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11830b789ec8aSmrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11831b789ec8aSmrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11832b789ec8aSmrg 11833b789ec8aSmrg 11834b789ec8aSmrg 11835b789ec8aSmrg# Check whether --enable-silent-rules was given. 11836b789ec8aSmrgif test "${enable_silent_rules+set}" = set; then : 11837b789ec8aSmrg enableval=$enable_silent_rules; 11838c27c18e8Smrgfi 1183921e67964Smrg 11840b789ec8aSmrgcase $enable_silent_rules in 11841b789ec8aSmrgyes) AM_DEFAULT_VERBOSITY=0;; 11842b789ec8aSmrgno) AM_DEFAULT_VERBOSITY=1;; 11843b789ec8aSmrg*) AM_DEFAULT_VERBOSITY=0;; 11844b789ec8aSmrgesac 11845b789ec8aSmrgAM_BACKSLASH='\' 11846b789ec8aSmrg 11847c43cc173Smrg 11848c43cc173Smrg 11849c43cc173Smrg 11850b789ec8aSmrg# Check whether --enable-specs was given. 11851b789ec8aSmrgif test "${enable_specs+set}" = set; then : 11852b789ec8aSmrg enableval=$enable_specs; build_specs=$enableval 11853b789ec8aSmrgelse 11854b789ec8aSmrg build_specs=yes 11855b789ec8aSmrgfi 11856b789ec8aSmrg 11857c43cc173Smrg 11858b789ec8aSmrg if test x$build_specs = xyes; then 11859b789ec8aSmrg ENABLE_SPECS_TRUE= 11860b789ec8aSmrg ENABLE_SPECS_FALSE='#' 11861b789ec8aSmrgelse 11862b789ec8aSmrg ENABLE_SPECS_TRUE='#' 11863b789ec8aSmrg ENABLE_SPECS_FALSE= 11864b789ec8aSmrgfi 11865c43cc173Smrg 11866b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 11867b789ec8aSmrg$as_echo_n "checking whether to build functional specifications... " >&6; } 11868b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 11869b789ec8aSmrg$as_echo "$build_specs" >&6; } 11870c43cc173Smrg 11871c43cc173Smrg 11872c43cc173Smrg 11873c43cc173Smrg 11874c43cc173Smrg 11875b789ec8aSmrg# Check whether --with-xmlto was given. 11876b789ec8aSmrgif test "${with_xmlto+set}" = set; then : 11877b789ec8aSmrg withval=$with_xmlto; use_xmlto=$withval 11878b789ec8aSmrgelse 11879b789ec8aSmrg use_xmlto=auto 11880b789ec8aSmrgfi 11881c43cc173Smrg 11882c43cc173Smrg 11883c43cc173Smrg 11884b789ec8aSmrgif test "x$use_xmlto" = x"auto"; then 11885b789ec8aSmrg # Extract the first word of "xmlto", so it can be a program name with args. 11886b789ec8aSmrgset dummy xmlto; ac_word=$2 11887b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11888b789ec8aSmrg$as_echo_n "checking for $ac_word... " >&6; } 11889b789ec8aSmrgif ${ac_cv_path_XMLTO+:} false; then : 11890b789ec8aSmrg $as_echo_n "(cached) " >&6 11891b789ec8aSmrgelse 11892b789ec8aSmrg case $XMLTO in 11893b789ec8aSmrg [\\/]* | ?:[\\/]*) 11894b789ec8aSmrg ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 11895b789ec8aSmrg ;; 11896b789ec8aSmrg *) 11897b789ec8aSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11898b789ec8aSmrgfor as_dir in $PATH 11899b789ec8aSmrgdo 11900b789ec8aSmrg IFS=$as_save_IFS 11901b789ec8aSmrg test -z "$as_dir" && as_dir=. 11902b789ec8aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 11903b789ec8aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11904b789ec8aSmrg ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 11905b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11906b789ec8aSmrg break 2 11907b789ec8aSmrg fi 11908b789ec8aSmrgdone 11909b789ec8aSmrg done 11910b789ec8aSmrgIFS=$as_save_IFS 11911c43cc173Smrg 11912b789ec8aSmrg ;; 11913b789ec8aSmrgesac 11914b789ec8aSmrgfi 11915b789ec8aSmrgXMLTO=$ac_cv_path_XMLTO 11916b789ec8aSmrgif test -n "$XMLTO"; then 11917b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 11918b789ec8aSmrg$as_echo "$XMLTO" >&6; } 11919b789ec8aSmrgelse 11920b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11921b789ec8aSmrg$as_echo "no" >&6; } 11922b789ec8aSmrgfi 11923c43cc173Smrg 11924c43cc173Smrg 11925b789ec8aSmrg if test "x$XMLTO" = "x"; then 11926b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 11927b789ec8aSmrg$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 11928b789ec8aSmrg have_xmlto=no 11929b789ec8aSmrg else 11930b789ec8aSmrg have_xmlto=yes 11931b789ec8aSmrg fi 11932b789ec8aSmrgelif test "x$use_xmlto" = x"yes" ; then 11933b789ec8aSmrg # Extract the first word of "xmlto", so it can be a program name with args. 11934b789ec8aSmrgset dummy xmlto; ac_word=$2 11935b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11936b789ec8aSmrg$as_echo_n "checking for $ac_word... " >&6; } 11937b789ec8aSmrgif ${ac_cv_path_XMLTO+:} false; then : 11938b789ec8aSmrg $as_echo_n "(cached) " >&6 119393e256790Smrgelse 11940b789ec8aSmrg case $XMLTO in 11941b789ec8aSmrg [\\/]* | ?:[\\/]*) 11942b789ec8aSmrg ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 11943b789ec8aSmrg ;; 119443e256790Smrg *) 11945b789ec8aSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11946b789ec8aSmrgfor as_dir in $PATH 11947b789ec8aSmrgdo 11948b789ec8aSmrg IFS=$as_save_IFS 11949b789ec8aSmrg test -z "$as_dir" && as_dir=. 11950b789ec8aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 11951b789ec8aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11952b789ec8aSmrg ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 11953b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11954b789ec8aSmrg break 2 11955b789ec8aSmrg fi 11956b789ec8aSmrgdone 11957b789ec8aSmrg done 11958b789ec8aSmrgIFS=$as_save_IFS 11959b789ec8aSmrg 11960b789ec8aSmrg ;; 11961b789ec8aSmrgesac 11962b789ec8aSmrgfi 11963b789ec8aSmrgXMLTO=$ac_cv_path_XMLTO 11964b789ec8aSmrgif test -n "$XMLTO"; then 11965b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 11966b789ec8aSmrg$as_echo "$XMLTO" >&6; } 11967b789ec8aSmrgelse 11968b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 119693e256790Smrg$as_echo "no" >&6; } 11970c27c18e8Smrgfi 11971c43cc173Smrg 11972c43cc173Smrg 11973b789ec8aSmrg if test "x$XMLTO" = "x"; then 11974b789ec8aSmrg as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 11975b789ec8aSmrg fi 11976b789ec8aSmrg have_xmlto=yes 11977b789ec8aSmrgelif test "x$use_xmlto" = x"no" ; then 11978b789ec8aSmrg if test "x$XMLTO" != "x"; then 11979b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 11980b789ec8aSmrg$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 11981b789ec8aSmrg fi 11982b789ec8aSmrg have_xmlto=no 11983b789ec8aSmrgelse 11984b789ec8aSmrg as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 11985b789ec8aSmrgfi 11986c43cc173Smrg 11987b789ec8aSmrg# Test for a minimum version of xmlto, if provided. 11988b789ec8aSmrgif test "$have_xmlto" = yes; then 11989b789ec8aSmrg # scrape the xmlto version 11990b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 11991b789ec8aSmrg$as_echo_n "checking the xmlto version... " >&6; } 11992b789ec8aSmrg xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 11993b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 11994b789ec8aSmrg$as_echo "$xmlto_version" >&6; } 11995b789ec8aSmrg as_arg_v1=$xmlto_version 11996b789ec8aSmrgas_arg_v2=0.0.20 11997b789ec8aSmrgawk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 11998b789ec8aSmrgcase $? in #( 11999b789ec8aSmrg 1) : 12000b789ec8aSmrg if test "x$use_xmlto" = xauto; then 12001b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 12002b789ec8aSmrg$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} 12003b789ec8aSmrg have_xmlto=no 12004b789ec8aSmrg else 12005b789ec8aSmrg as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 12006b789ec8aSmrg fi ;; #( 12007b789ec8aSmrg 0) : 12008b789ec8aSmrg ;; #( 12009b789ec8aSmrg 2) : 12010b789ec8aSmrg ;; #( 12011b789ec8aSmrg *) : 12012b789ec8aSmrg ;; 12013b789ec8aSmrgesac 12014b789ec8aSmrgfi 12015c43cc173Smrg 12016b789ec8aSmrg# Test for the ability of xmlto to generate a text target 12017b789ec8aSmrghave_xmlto_text=no 12018b789ec8aSmrgcat > conftest.xml << "EOF" 12019b789ec8aSmrgEOF 12020b789ec8aSmrgif test "$have_xmlto" = yes; then : 12021b789ec8aSmrg if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 12022b789ec8aSmrg have_xmlto_text=yes 12023b789ec8aSmrgelse 12024b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 12025b789ec8aSmrg$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 12026b789ec8aSmrgfi 12027b789ec8aSmrgfi 12028b789ec8aSmrgrm -f conftest.xml 12029b789ec8aSmrg if test $have_xmlto_text = yes; then 12030b789ec8aSmrg HAVE_XMLTO_TEXT_TRUE= 12031b789ec8aSmrg HAVE_XMLTO_TEXT_FALSE='#' 12032b789ec8aSmrgelse 12033b789ec8aSmrg HAVE_XMLTO_TEXT_TRUE='#' 12034b789ec8aSmrg HAVE_XMLTO_TEXT_FALSE= 12035b789ec8aSmrgfi 12036c43cc173Smrg 12037b789ec8aSmrg if test "$have_xmlto" = yes; then 12038b789ec8aSmrg HAVE_XMLTO_TRUE= 12039b789ec8aSmrg HAVE_XMLTO_FALSE='#' 12040b789ec8aSmrgelse 12041b789ec8aSmrg HAVE_XMLTO_TRUE='#' 12042b789ec8aSmrg HAVE_XMLTO_FALSE= 12043b789ec8aSmrgfi 12044c43cc173Smrg 12045c43cc173Smrg 12046c43cc173Smrg 12047c43cc173Smrg 12048c43cc173Smrg 12049c43cc173Smrg 12050b789ec8aSmrg# Check whether --with-fop was given. 12051b789ec8aSmrgif test "${with_fop+set}" = set; then : 12052b789ec8aSmrg withval=$with_fop; use_fop=$withval 12053b789ec8aSmrgelse 12054b789ec8aSmrg use_fop=auto 12055b789ec8aSmrgfi 12056c43cc173Smrg 12057c43cc173Smrg 12058c43cc173Smrg 12059b789ec8aSmrgif test "x$use_fop" = x"auto"; then 12060b789ec8aSmrg # Extract the first word of "fop", so it can be a program name with args. 12061b789ec8aSmrgset dummy fop; ac_word=$2 12062b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12063b789ec8aSmrg$as_echo_n "checking for $ac_word... " >&6; } 12064b789ec8aSmrgif ${ac_cv_path_FOP+:} false; then : 12065b789ec8aSmrg $as_echo_n "(cached) " >&6 12066b789ec8aSmrgelse 12067b789ec8aSmrg case $FOP in 12068b789ec8aSmrg [\\/]* | ?:[\\/]*) 12069b789ec8aSmrg ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 12070b789ec8aSmrg ;; 12071b789ec8aSmrg *) 12072b789ec8aSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12073b789ec8aSmrgfor as_dir in $PATH 12074b789ec8aSmrgdo 12075b789ec8aSmrg IFS=$as_save_IFS 12076b789ec8aSmrg test -z "$as_dir" && as_dir=. 12077b789ec8aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 12078b789ec8aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12079b789ec8aSmrg ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 12080b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12081b789ec8aSmrg break 2 12082b789ec8aSmrg fi 12083b789ec8aSmrgdone 12084b789ec8aSmrg done 12085b789ec8aSmrgIFS=$as_save_IFS 12086c43cc173Smrg 12087b789ec8aSmrg ;; 12088b789ec8aSmrgesac 12089b789ec8aSmrgfi 12090b789ec8aSmrgFOP=$ac_cv_path_FOP 12091b789ec8aSmrgif test -n "$FOP"; then 12092b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 12093b789ec8aSmrg$as_echo "$FOP" >&6; } 12094b789ec8aSmrgelse 12095b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12096b789ec8aSmrg$as_echo "no" >&6; } 12097b789ec8aSmrgfi 12098c43cc173Smrg 12099c43cc173Smrg 12100b789ec8aSmrg if test "x$FOP" = "x"; then 12101b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 12102b789ec8aSmrg$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 12103b789ec8aSmrg have_fop=no 12104b789ec8aSmrg else 12105b789ec8aSmrg have_fop=yes 12106b789ec8aSmrg fi 12107b789ec8aSmrgelif test "x$use_fop" = x"yes" ; then 12108b789ec8aSmrg # Extract the first word of "fop", so it can be a program name with args. 12109b789ec8aSmrgset dummy fop; ac_word=$2 12110b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12111b789ec8aSmrg$as_echo_n "checking for $ac_word... " >&6; } 12112b789ec8aSmrgif ${ac_cv_path_FOP+:} false; then : 12113b789ec8aSmrg $as_echo_n "(cached) " >&6 12114b789ec8aSmrgelse 12115b789ec8aSmrg case $FOP in 12116b789ec8aSmrg [\\/]* | ?:[\\/]*) 12117b789ec8aSmrg ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 12118b789ec8aSmrg ;; 12119b789ec8aSmrg *) 12120b789ec8aSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12121b789ec8aSmrgfor as_dir in $PATH 12122b789ec8aSmrgdo 12123b789ec8aSmrg IFS=$as_save_IFS 12124b789ec8aSmrg test -z "$as_dir" && as_dir=. 12125b789ec8aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 12126b789ec8aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12127b789ec8aSmrg ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 12128b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12129b789ec8aSmrg break 2 12130b789ec8aSmrg fi 12131b789ec8aSmrgdone 12132b789ec8aSmrg done 12133b789ec8aSmrgIFS=$as_save_IFS 12134b789ec8aSmrg 12135b789ec8aSmrg ;; 12136b789ec8aSmrgesac 12137b789ec8aSmrgfi 12138b789ec8aSmrgFOP=$ac_cv_path_FOP 12139b789ec8aSmrgif test -n "$FOP"; then 12140b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 12141b789ec8aSmrg$as_echo "$FOP" >&6; } 12142b789ec8aSmrgelse 12143b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12144b789ec8aSmrg$as_echo "no" >&6; } 12145b789ec8aSmrgfi 12146c43cc173Smrg 12147c43cc173Smrg 12148b789ec8aSmrg if test "x$FOP" = "x"; then 12149b789ec8aSmrg as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 12150b789ec8aSmrg fi 12151b789ec8aSmrg have_fop=yes 12152b789ec8aSmrgelif test "x$use_fop" = x"no" ; then 12153b789ec8aSmrg if test "x$FOP" != "x"; then 12154b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 12155b789ec8aSmrg$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 12156b789ec8aSmrg fi 12157b789ec8aSmrg have_fop=no 12158b789ec8aSmrgelse 12159b789ec8aSmrg as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 12160b789ec8aSmrgfi 12161b789ec8aSmrg if test "$have_fop" = yes; then 12162b789ec8aSmrg HAVE_FOP_TRUE= 12163b789ec8aSmrg HAVE_FOP_FALSE='#' 12164b789ec8aSmrgelse 12165b789ec8aSmrg HAVE_FOP_TRUE='#' 12166b789ec8aSmrg HAVE_FOP_FALSE= 12167c27c18e8Smrgfi 12168c43cc173Smrg 12169c43cc173Smrg 12170c43cc173Smrg 12171b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5 12172b789ec8aSmrg$as_echo_n "checking for X.Org SGML entities >= 1.5... " >&6; } 12173b789ec8aSmrgXORG_SGML_PATH= 12174b789ec8aSmrgif test -n "$PKG_CONFIG" && \ 12175b789ec8aSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5 12176b789ec8aSmrg ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5 12177b789ec8aSmrg ac_status=$? 12178b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12179b789ec8aSmrg test $ac_status = 0; }; then 12180b789ec8aSmrg XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 12181b789ec8aSmrgelse 12182b789ec8aSmrg : 12183c43cc173Smrg 12184b789ec8aSmrgfi 12185c43cc173Smrg 12186b789ec8aSmrg# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 12187b789ec8aSmrg# the path and the name of the doc stylesheet 12188b789ec8aSmrgif test "x$XORG_SGML_PATH" != "x" ; then 12189b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 12190b789ec8aSmrg$as_echo "$XORG_SGML_PATH" >&6; } 12191b789ec8aSmrg STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 12192b789ec8aSmrg XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 12193b789ec8aSmrgelse 12194b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12195b789ec8aSmrg$as_echo "no" >&6; } 12196b789ec8aSmrgfi 12197c43cc173Smrg 12198c43cc173Smrg 12199c43cc173Smrg 12200c43cc173Smrg 12201b789ec8aSmrg if test "x$XSL_STYLESHEET" != "x"; then 12202b789ec8aSmrg HAVE_STYLESHEETS_TRUE= 12203b789ec8aSmrg HAVE_STYLESHEETS_FALSE='#' 12204b789ec8aSmrgelse 12205b789ec8aSmrg HAVE_STYLESHEETS_TRUE='#' 12206b789ec8aSmrg HAVE_STYLESHEETS_FALSE= 12207b789ec8aSmrgfi 12208c43cc173Smrg 12209c43cc173Smrg 12210c43cc173Smrg 12211c43cc173Smrg 12212c43cc173Smrg 12213c43cc173Smrg 12214b789ec8aSmrg# Check whether --with-asciidoc was given. 12215b789ec8aSmrgif test "${with_asciidoc+set}" = set; then : 12216b789ec8aSmrg withval=$with_asciidoc; use_asciidoc=$withval 12217b789ec8aSmrgelse 12218b789ec8aSmrg use_asciidoc=auto 12219b789ec8aSmrgfi 12220c43cc173Smrg 12221c43cc173Smrg 12222c43cc173Smrg 12223b789ec8aSmrgif test "x$use_asciidoc" = x"auto"; then 12224b789ec8aSmrg # Extract the first word of "asciidoc", so it can be a program name with args. 12225b789ec8aSmrgset dummy asciidoc; ac_word=$2 12226b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12227b789ec8aSmrg$as_echo_n "checking for $ac_word... " >&6; } 12228b789ec8aSmrgif ${ac_cv_path_ASCIIDOC+:} false; then : 12229b789ec8aSmrg $as_echo_n "(cached) " >&6 12230b789ec8aSmrgelse 12231b789ec8aSmrg case $ASCIIDOC in 12232b789ec8aSmrg [\\/]* | ?:[\\/]*) 12233b789ec8aSmrg ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path. 12234b789ec8aSmrg ;; 12235b789ec8aSmrg *) 12236b789ec8aSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12237b789ec8aSmrgfor as_dir in $PATH 12238b789ec8aSmrgdo 12239b789ec8aSmrg IFS=$as_save_IFS 12240b789ec8aSmrg test -z "$as_dir" && as_dir=. 12241b789ec8aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 12242b789ec8aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12243b789ec8aSmrg ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext" 12244b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12245b789ec8aSmrg break 2 12246b789ec8aSmrg fi 12247b789ec8aSmrgdone 12248b789ec8aSmrg done 12249b789ec8aSmrgIFS=$as_save_IFS 12250b789ec8aSmrg 12251b789ec8aSmrg ;; 12252b789ec8aSmrgesac 12253b789ec8aSmrgfi 12254b789ec8aSmrgASCIIDOC=$ac_cv_path_ASCIIDOC 12255b789ec8aSmrgif test -n "$ASCIIDOC"; then 12256b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5 12257b789ec8aSmrg$as_echo "$ASCIIDOC" >&6; } 12258b789ec8aSmrgelse 12259b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12260b789ec8aSmrg$as_echo "no" >&6; } 12261b789ec8aSmrgfi 12262c43cc173Smrg 12263c43cc173Smrg 12264b789ec8aSmrg if test "x$ASCIIDOC" = "x"; then 12265b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc not found - documentation targets will be skipped" >&5 12266b789ec8aSmrg$as_echo "$as_me: WARNING: asciidoc not found - documentation targets will be skipped" >&2;} 12267b789ec8aSmrg have_asciidoc=no 12268b789ec8aSmrg else 12269b789ec8aSmrg have_asciidoc=yes 12270b789ec8aSmrg fi 12271b789ec8aSmrgelif test "x$use_asciidoc" = x"yes" ; then 12272b789ec8aSmrg # Extract the first word of "asciidoc", so it can be a program name with args. 12273b789ec8aSmrgset dummy asciidoc; ac_word=$2 12274b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12275b789ec8aSmrg$as_echo_n "checking for $ac_word... " >&6; } 12276b789ec8aSmrgif ${ac_cv_path_ASCIIDOC+:} false; then : 12277c27c18e8Smrg $as_echo_n "(cached) " >&6 12278c27c18e8Smrgelse 12279b789ec8aSmrg case $ASCIIDOC in 12280b789ec8aSmrg [\\/]* | ?:[\\/]*) 12281b789ec8aSmrg ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path. 12282b789ec8aSmrg ;; 12283b789ec8aSmrg *) 12284c27c18e8Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12285c27c18e8Smrgfor as_dir in $PATH 12286c27c18e8Smrgdo 12287c27c18e8Smrg IFS=$as_save_IFS 12288c27c18e8Smrg test -z "$as_dir" && as_dir=. 122893e256790Smrg for ac_exec_ext in '' $ac_executable_extensions; do 12290b789ec8aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12291b789ec8aSmrg ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext" 12292b789ec8aSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12293b789ec8aSmrg break 2 12294b789ec8aSmrg fi 12295b789ec8aSmrgdone 122963e256790Smrg done 12297b789ec8aSmrgIFS=$as_save_IFS 12298b789ec8aSmrg 12299b789ec8aSmrg ;; 12300b789ec8aSmrgesac 12301b789ec8aSmrgfi 12302b789ec8aSmrgASCIIDOC=$ac_cv_path_ASCIIDOC 12303b789ec8aSmrgif test -n "$ASCIIDOC"; then 12304b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5 12305b789ec8aSmrg$as_echo "$ASCIIDOC" >&6; } 12306b789ec8aSmrgelse 12307b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12308b789ec8aSmrg$as_echo "no" >&6; } 12309b789ec8aSmrgfi 12310b789ec8aSmrg 12311b789ec8aSmrg 12312b789ec8aSmrg if test "x$ASCIIDOC" = "x"; then 12313b789ec8aSmrg as_fn_error $? "--with-asciidoc=yes specified but asciidoc not found in PATH" "$LINENO" 5 12314b789ec8aSmrg fi 12315b789ec8aSmrg have_asciidoc=yes 12316b789ec8aSmrgelif test "x$use_asciidoc" = x"no" ; then 12317b789ec8aSmrg if test "x$ASCIIDOC" != "x"; then 12318b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&5 12319b789ec8aSmrg$as_echo "$as_me: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&2;} 12320b789ec8aSmrg fi 12321b789ec8aSmrg have_asciidoc=no 12322b789ec8aSmrgelse 12323b789ec8aSmrg as_fn_error $? "--with-asciidoc expects 'yes' or 'no'" "$LINENO" 5 12324b789ec8aSmrgfi 12325b789ec8aSmrgif test "$have_asciidoc" = yes; then 12326b789ec8aSmrg # scrape the asciidoc version 12327b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking the asciidoc version" >&5 12328b789ec8aSmrg$as_echo_n "checking the asciidoc version... " >&6; } 12329b789ec8aSmrg asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2` 12330b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asciidoc_version" >&5 12331b789ec8aSmrg$as_echo "$asciidoc_version" >&6; } 12332b789ec8aSmrg as_arg_v1=$asciidoc_version 12333b789ec8aSmrgas_arg_v2=8.4.5 12334b789ec8aSmrgawk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 12335b789ec8aSmrgcase $? in #( 12336b789ec8aSmrg 1) : 12337b789ec8aSmrg if test "x$use_asciidoc" = xauto; then 12338b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&5 12339b789ec8aSmrg$as_echo "$as_me: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&2;} 12340b789ec8aSmrg have_asciidoc=no 12341b789ec8aSmrg else 12342b789ec8aSmrg as_fn_error $? "asciidoc version $asciidoc_version found, but 8.4.5 needed" "$LINENO" 5 12343b789ec8aSmrg fi ;; #( 12344b789ec8aSmrg 0) : 12345b789ec8aSmrg ;; #( 12346b789ec8aSmrg 2) : 12347b789ec8aSmrg ;; #( 12348b789ec8aSmrg *) : 12349b789ec8aSmrg ;; 12350c27c18e8Smrgesac 12351b789ec8aSmrgfi 12352b789ec8aSmrg if test "$have_asciidoc" = yes; then 12353b789ec8aSmrg HAVE_ASCIIDOC_TRUE= 12354b789ec8aSmrg HAVE_ASCIIDOC_FALSE='#' 12355b789ec8aSmrgelse 12356b789ec8aSmrg HAVE_ASCIIDOC_TRUE='#' 12357b789ec8aSmrg HAVE_ASCIIDOC_FALSE= 12358b789ec8aSmrgfi 12359c43cc173Smrg 12360b789ec8aSmrg 12361b789ec8aSmrg 12362b789ec8aSmrg# Check whether --enable-malloc0returnsnull was given. 12363b789ec8aSmrgif test "${enable_malloc0returnsnull+set}" = set; then : 12364b789ec8aSmrg enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 12365c27c18e8Smrgelse 12366b789ec8aSmrg MALLOC_ZERO_RETURNS_NULL=auto 12367c27c18e8Smrgfi 12368c43cc173Smrg 12369b789ec8aSmrg 12370b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 12371b789ec8aSmrg$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 12372b789ec8aSmrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 12373b789ec8aSmrg if test "$cross_compiling" = yes; then : 12374b789ec8aSmrg MALLOC_ZERO_RETURNS_NULL=yes 12375b789ec8aSmrgelse 12376b789ec8aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12377b789ec8aSmrg/* end confdefs.h. */ 12378b789ec8aSmrg 12379b789ec8aSmrg#include <stdlib.h> 12380b789ec8aSmrg 12381b789ec8aSmrgint 12382b789ec8aSmrgmain () 12383b789ec8aSmrg{ 12384b789ec8aSmrg 12385b789ec8aSmrg char *m0, *r0, *c0, *p; 12386b789ec8aSmrg m0 = malloc(0); 12387b789ec8aSmrg p = malloc(10); 12388b789ec8aSmrg r0 = realloc(p,0); 12389b789ec8aSmrg c0 = calloc(0,10); 12390b789ec8aSmrg exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 12391b789ec8aSmrg 12392b789ec8aSmrg ; 12393b789ec8aSmrg return 0; 12394b789ec8aSmrg} 12395b789ec8aSmrg_ACEOF 12396b789ec8aSmrgif ac_fn_c_try_run "$LINENO"; then : 12397b789ec8aSmrg MALLOC_ZERO_RETURNS_NULL=yes 12398b789ec8aSmrgelse 12399b789ec8aSmrg MALLOC_ZERO_RETURNS_NULL=no 12400c27c18e8Smrgfi 12401b789ec8aSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12402b789ec8aSmrg conftest.$ac_objext conftest.beam conftest.$ac_ext 12403b789ec8aSmrgfi 12404b789ec8aSmrg 12405b789ec8aSmrgfi 12406b789ec8aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 12407b789ec8aSmrg$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 12408b789ec8aSmrg 12409b789ec8aSmrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 12410b789ec8aSmrg MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 12411b789ec8aSmrg XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 12412b789ec8aSmrg XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 12413b789ec8aSmrgelse 12414b789ec8aSmrg MALLOC_ZERO_CFLAGS="" 12415b789ec8aSmrg XMALLOC_ZERO_CFLAGS="" 12416b789ec8aSmrg XTMALLOC_ZERO_CFLAGS="" 12417b789ec8aSmrgfi 12418b789ec8aSmrg 12419c43cc173Smrg 124203e256790Smrg 12421b789ec8aSmrg 12422b789ec8aSmrg 12423b789ec8aSmrg 12424b789ec8aSmrg# Obtain compiler/linker options for depedencies 12425c43cc173Smrg 12426c27c18e8Smrgpkg_failed=no 124273e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI" >&5 12428c27c18e8Smrg$as_echo_n "checking for XI... " >&6; } 12429c43cc173Smrg 12430c27c18e8Smrgif test -n "$XI_CFLAGS"; then 12431c27c18e8Smrg pkg_cv_XI_CFLAGS="$XI_CFLAGS" 12432c27c18e8Smrg elif test -n "$PKG_CONFIG"; then 12433c27c18e8Smrg if test -n "$PKG_CONFIG" && \ 124343e256790Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902\""; } >&5 12435c27c18e8Smrg ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902") 2>&5 12436c27c18e8Smrg ac_status=$? 124373e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 124383e256790Smrg test $ac_status = 0; }; then 12439c27c18e8Smrg pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>/dev/null` 12440c27c18e8Smrgelse 12441c27c18e8Smrg pkg_failed=yes 12442c27c18e8Smrgfi 12443c27c18e8Smrg else 12444c27c18e8Smrg pkg_failed=untried 12445c27c18e8Smrgfi 12446c27c18e8Smrgif test -n "$XI_LIBS"; then 12447c27c18e8Smrg pkg_cv_XI_LIBS="$XI_LIBS" 12448c27c18e8Smrg elif test -n "$PKG_CONFIG"; then 12449c27c18e8Smrg if test -n "$PKG_CONFIG" && \ 124503e256790Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902\""; } >&5 12451c27c18e8Smrg ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902") 2>&5 12452c27c18e8Smrg ac_status=$? 124533e256790Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 124543e256790Smrg test $ac_status = 0; }; then 12455c27c18e8Smrg pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>/dev/null` 12456c27c18e8Smrgelse 12457c27c18e8Smrg pkg_failed=yes 12458c27c18e8Smrgfi 12459c27c18e8Smrg else 12460c27c18e8Smrg pkg_failed=untried 12461c27c18e8Smrgfi 12462c43cc173Smrg 12463c43cc173Smrg 12464c43cc173Smrg 12465c27c18e8Smrgif test $pkg_failed = yes; then 1246637eb1ca1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1246737eb1ca1Smrg$as_echo "no" >&6; } 12468c43cc173Smrg 12469c27c18e8Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12470c27c18e8Smrg _pkg_short_errors_supported=yes 12471c27c18e8Smrgelse 12472c27c18e8Smrg _pkg_short_errors_supported=no 12473c27c18e8Smrgfi 12474c27c18e8Smrg if test $_pkg_short_errors_supported = yes; then 12475c27c18e8Smrg XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>&1` 12476c27c18e8Smrg else 12477c27c18e8Smrg XI_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>&1` 12478c27c18e8Smrg fi 12479c27c18e8Smrg # Put the nasty error message in config.log where it belongs 12480c27c18e8Smrg echo "$XI_PKG_ERRORS" >&5 12481c43cc173Smrg 1248237eb1ca1Smrg as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902) were not met: 12483c43cc173Smrg 12484c27c18e8Smrg$XI_PKG_ERRORS 12485c43cc173Smrg 12486c27c18e8SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 12487c27c18e8Smrginstalled software in a non-standard prefix. 12488c43cc173Smrg 12489c27c18e8SmrgAlternatively, you may set the environment variables XI_CFLAGS 12490c27c18e8Smrgand XI_LIBS to avoid the need to call pkg-config. 1249137eb1ca1SmrgSee the pkg-config man page for more details." "$LINENO" 5 1249237eb1ca1Smrg 12493c27c18e8Smrgelif test $pkg_failed = untried; then 1249437eb1ca1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1249537eb1ca1Smrg$as_echo "no" >&6; } 124963e256790Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12497c27c18e8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1249837eb1ca1Smrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12499c27c18e8Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 12500c27c18e8Smrgpath to pkg-config. 12501c43cc173Smrg 12502c27c18e8SmrgAlternatively, you may set the environment variables XI_CFLAGS 12503c27c18e8Smrgand XI_LIBS to avoid the need to call pkg-config. 12504c27c18e8SmrgSee the pkg-config man page for more details. 12505c43cc173Smrg 12506c27c18e8SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 1250737eb1ca1SmrgSee \`config.log' for more details" "$LINENO" 5; } 1250837eb1ca1Smrg 12509c27c18e8Smrgelse 12510c27c18e8Smrg XI_CFLAGS=$pkg_cv_XI_CFLAGS 12511c27c18e8Smrg XI_LIBS=$pkg_cv_XI_LIBS 125123e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12513c27c18e8Smrg$as_echo "yes" >&6; } 12514c43cc173Smrg 1251537eb1ca1Smrgfi 12516c43cc173Smrg 12517c27c18e8Smrg# Check for xmlto and asciidoc for man page conversion 12518c27c18e8Smrg# (only needed by people building tarballs) 1251937eb1ca1Smrgif test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then 125203e256790Smrg have_doctools=yes 125213e256790Smrgelse 125223e256790Smrg have_doctools=no 125233e256790Smrgfi 125243e256790Smrg if test $have_doctools = yes; then 12525c27c18e8Smrg HAVE_DOCTOOLS_TRUE= 12526c27c18e8Smrg HAVE_DOCTOOLS_FALSE='#' 12527c27c18e8Smrgelse 12528c27c18e8Smrg HAVE_DOCTOOLS_TRUE='#' 12529c27c18e8Smrg HAVE_DOCTOOLS_FALSE= 12530c27c18e8Smrgfi 12531c43cc173Smrg 125323e256790Smrgif test $have_doctools = no; then 125333e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5 12534c27c18e8Smrg$as_echo "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;} 12535c27c18e8Smrgfi 12536c43cc173Smrg 125373e256790Smrg# Determine if the source for man pages is available 125383e256790Smrg# It may already be present (tarball) or can be generated using doctools 125393e256790Smrg if test -f "$srcdir/man/XAllowDeviceEvents.man" || \ 125403e256790Smrg test $have_doctools = yes; then 125413e256790Smrg INSTALL_MANPAGES_TRUE= 125423e256790Smrg INSTALL_MANPAGES_FALSE='#' 125433e256790Smrgelse 125443e256790Smrg INSTALL_MANPAGES_TRUE='#' 125453e256790Smrg INSTALL_MANPAGES_FALSE= 125463e256790Smrgfi 125473e256790Smrg 125483e256790Smrg 1254937eb1ca1Smrgac_config_files="$ac_config_files Makefile src/Makefile man/Makefile doc/Makefile specs/Makefile xi.pc" 12550c43cc173Smrg 12551c27c18e8Smrgcat >confcache <<\_ACEOF 12552c27c18e8Smrg# This file is a shell script that caches the results of configure 12553c27c18e8Smrg# tests run on this system so they can be shared between configure 12554c27c18e8Smrg# scripts and configure runs, see configure's option --config-cache. 12555c27c18e8Smrg# It is not useful on other systems. If it contains results you don't 12556c27c18e8Smrg# want to keep, you may remove or edit it. 12557c27c18e8Smrg# 12558c27c18e8Smrg# config.status only pays attention to the cache file if you give it 12559c27c18e8Smrg# the --recheck option to rerun configure. 12560c27c18e8Smrg# 12561c27c18e8Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 12562c27c18e8Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 12563c27c18e8Smrg# following values. 12564c43cc173Smrg 12565c27c18e8Smrg_ACEOF 12566c43cc173Smrg 12567c27c18e8Smrg# The following way of writing the cache mishandles newlines in values, 12568c27c18e8Smrg# but we know of no workaround that is simple, portable, and efficient. 12569c27c18e8Smrg# So, we kill variables containing newlines. 12570c27c18e8Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 12571c27c18e8Smrg# and sets the high bit in the cache file unless we assign to the vars. 12572c27c18e8Smrg( 12573c27c18e8Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12574c27c18e8Smrg eval ac_val=\$$ac_var 12575c27c18e8Smrg case $ac_val in #( 12576c27c18e8Smrg *${as_nl}*) 12577c27c18e8Smrg case $ac_var in #( 125783e256790Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12579c27c18e8Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12580c27c18e8Smrg esac 12581c27c18e8Smrg case $ac_var in #( 12582c27c18e8Smrg _ | IFS | as_nl) ;; #( 12583c27c18e8Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 125843e256790Smrg *) { eval $ac_var=; unset $ac_var;} ;; 12585c27c18e8Smrg esac ;; 12586c27c18e8Smrg esac 12587c27c18e8Smrg done 12588c43cc173Smrg 12589c27c18e8Smrg (set) 2>&1 | 12590c27c18e8Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 12591c27c18e8Smrg *${as_nl}ac_space=\ *) 125923e256790Smrg # `set' does not quote correctly, so add quotes: double-quote 125933e256790Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 12594c27c18e8Smrg sed -n \ 12595c27c18e8Smrg "s/'/'\\\\''/g; 12596c27c18e8Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12597c27c18e8Smrg ;; #( 12598c27c18e8Smrg *) 12599c27c18e8Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 12600c27c18e8Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12601c27c18e8Smrg ;; 12602c27c18e8Smrg esac | 12603c27c18e8Smrg sort 12604c27c18e8Smrg) | 12605c27c18e8Smrg sed ' 12606c27c18e8Smrg /^ac_cv_env_/b end 12607c27c18e8Smrg t clear 12608c27c18e8Smrg :clear 12609c27c18e8Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12610c27c18e8Smrg t end 12611c27c18e8Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12612c27c18e8Smrg :end' >>confcache 12613c27c18e8Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12614c27c18e8Smrg if test -w "$cache_file"; then 12615b789ec8aSmrg if test "x$cache_file" != "x/dev/null"; then 126163e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12617c27c18e8Smrg$as_echo "$as_me: updating cache $cache_file" >&6;} 12618b789ec8aSmrg if test ! -f "$cache_file" || test -h "$cache_file"; then 12619b789ec8aSmrg cat confcache >"$cache_file" 12620b789ec8aSmrg else 12621b789ec8aSmrg case $cache_file in #( 12622b789ec8aSmrg */* | ?:*) 12623b789ec8aSmrg mv -f confcache "$cache_file"$$ && 12624b789ec8aSmrg mv -f "$cache_file"$$ "$cache_file" ;; #( 12625b789ec8aSmrg *) 12626b789ec8aSmrg mv -f confcache "$cache_file" ;; 12627b789ec8aSmrg esac 12628b789ec8aSmrg fi 12629b789ec8aSmrg fi 12630c27c18e8Smrg else 126313e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12632c27c18e8Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12633c27c18e8Smrg fi 12634c27c18e8Smrgfi 12635c27c18e8Smrgrm -f confcache 12636c43cc173Smrg 12637c27c18e8Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 12638c27c18e8Smrg# Let make expand exec_prefix. 12639c27c18e8Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12640c43cc173Smrg 12641c27c18e8SmrgDEFS=-DHAVE_CONFIG_H 12642c43cc173Smrg 12643c27c18e8Smrgac_libobjs= 12644c27c18e8Smrgac_ltlibobjs= 1264537eb1ca1SmrgU= 12646c27c18e8Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12647c27c18e8Smrg # 1. Remove the extension, and $U if already installed. 12648c27c18e8Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12649c27c18e8Smrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12650c27c18e8Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12651c27c18e8Smrg # will be set to the directory where LIBOBJS objects are built. 126523e256790Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 126533e256790Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12654c27c18e8Smrgdone 12655c27c18e8SmrgLIBOBJS=$ac_libobjs 1265621e67964Smrg 12657c27c18e8SmrgLTLIBOBJS=$ac_ltlibobjs 12658c43cc173Smrg 12659c43cc173Smrg 12660c27c18e8Smrg if test -n "$EXEEXT"; then 12661c27c18e8Smrg am__EXEEXT_TRUE= 12662c27c18e8Smrg am__EXEEXT_FALSE='#' 12663c27c18e8Smrgelse 12664c27c18e8Smrg am__EXEEXT_TRUE='#' 12665c27c18e8Smrg am__EXEEXT_FALSE= 12666c27c18e8Smrgfi 12667c43cc173Smrg 12668c27c18e8Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 1266937eb1ca1Smrg as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 126703e256790SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 12671c27c18e8Smrgfi 12672c27c18e8Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 1267337eb1ca1Smrg as_fn_error $? "conditional \"AMDEP\" was never defined. 126743e256790SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 126753e256790Smrgfi 126763e256790Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 1267737eb1ca1Smrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 1267837eb1ca1SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1267937eb1ca1Smrgfi 1268037eb1ca1Smrgif test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 1268137eb1ca1Smrg as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 1268237eb1ca1SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1268337eb1ca1Smrgfi 1268437eb1ca1Smrgif test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 1268537eb1ca1Smrg as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 1268637eb1ca1SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1268737eb1ca1Smrgfi 1268837eb1ca1Smrgif test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 1268937eb1ca1Smrg as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 1269037eb1ca1SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1269137eb1ca1Smrgfi 1269237eb1ca1Smrgif test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 1269337eb1ca1Smrg as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 1269437eb1ca1SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1269537eb1ca1Smrgfi 1269637eb1ca1Smrgif test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 1269737eb1ca1Smrg as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 1269837eb1ca1SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1269937eb1ca1Smrgfi 1270037eb1ca1Smrgif test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then 1270137eb1ca1Smrg as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined. 127023e256790SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 12703c27c18e8Smrgfi 12704c27c18e8Smrgif test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then 1270537eb1ca1Smrg as_fn_error $? "conditional \"HAVE_DOCTOOLS\" was never defined. 127063e256790SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 127073e256790Smrgfi 127083e256790Smrgif test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then 1270937eb1ca1Smrg as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined. 127103e256790SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 12711c27c18e8Smrgfi 12712c43cc173Smrg 12713b789ec8aSmrg: "${CONFIG_STATUS=./config.status}" 12714c27c18e8Smrgac_write_fail=0 12715c27c18e8Smrgac_clean_files_save=$ac_clean_files 12716c27c18e8Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 127173e256790Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12718c27c18e8Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 127193e256790Smrgas_write_fail=0 127203e256790Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12721c27c18e8Smrg#! $SHELL 12722c27c18e8Smrg# Generated by $as_me. 12723c27c18e8Smrg# Run this file to recreate the current configuration. 12724c27c18e8Smrg# Compiler output produced by configure, useful for debugging 12725c27c18e8Smrg# configure, is in config.log if it exists. 12726c43cc173Smrg 12727c27c18e8Smrgdebug=false 12728c27c18e8Smrgac_cs_recheck=false 12729c27c18e8Smrgac_cs_silent=false 12730c43cc173Smrg 127313e256790SmrgSHELL=\${CONFIG_SHELL-$SHELL} 127323e256790Smrgexport SHELL 127333e256790Smrg_ASEOF 127343e256790Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 127353e256790Smrg## -------------------- ## 127363e256790Smrg## M4sh Initialization. ## 127373e256790Smrg## -------------------- ## 12738c43cc173Smrg 12739c27c18e8Smrg# Be more Bourne compatible 12740c27c18e8SmrgDUALCASE=1; export DUALCASE # for MKS sh 127413e256790Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12742c27c18e8Smrg emulate sh 12743c27c18e8Smrg NULLCMD=: 12744c27c18e8Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12745c27c18e8Smrg # is contrary to our usage. Disable this feature. 12746c27c18e8Smrg alias -g '${1+"$@"}'='"$@"' 12747c27c18e8Smrg setopt NO_GLOB_SUBST 12748c27c18e8Smrgelse 127493e256790Smrg case `(set -o) 2>/dev/null` in #( 127503e256790Smrg *posix*) : 127513e256790Smrg set -o posix ;; #( 127523e256790Smrg *) : 127533e256790Smrg ;; 12754c27c18e8Smrgesac 12755c27c18e8Smrgfi 12756c43cc173Smrg 12757c43cc173Smrg 12758c27c18e8Smrgas_nl=' 12759c27c18e8Smrg' 12760c27c18e8Smrgexport as_nl 12761c27c18e8Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 12762c27c18e8Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12763c27c18e8Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12764c27c18e8Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 127653e256790Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 127663e256790Smrg# but without wasting forks for bash or zsh. 127673e256790Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 127683e256790Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 127693e256790Smrg as_echo='print -r --' 127703e256790Smrg as_echo_n='print -rn --' 127713e256790Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12772c27c18e8Smrg as_echo='printf %s\n' 12773c27c18e8Smrg as_echo_n='printf %s' 12774c27c18e8Smrgelse 12775c27c18e8Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12776c27c18e8Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12777c27c18e8Smrg as_echo_n='/usr/ucb/echo -n' 12778c27c18e8Smrg else 12779c27c18e8Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12780c27c18e8Smrg as_echo_n_body='eval 12781c27c18e8Smrg arg=$1; 127823e256790Smrg case $arg in #( 12783c27c18e8Smrg *"$as_nl"*) 12784c27c18e8Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 12785c27c18e8Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12786c27c18e8Smrg esac; 12787c27c18e8Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12788c27c18e8Smrg ' 12789c27c18e8Smrg export as_echo_n_body 12790c27c18e8Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 12791c27c18e8Smrg fi 12792c27c18e8Smrg export as_echo_body 12793c27c18e8Smrg as_echo='sh -c $as_echo_body as_echo' 12794c27c18e8Smrgfi 12795c43cc173Smrg 12796c27c18e8Smrg# The user is always right. 12797c27c18e8Smrgif test "${PATH_SEPARATOR+set}" != set; then 12798c27c18e8Smrg PATH_SEPARATOR=: 12799c27c18e8Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12800c27c18e8Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12801c27c18e8Smrg PATH_SEPARATOR=';' 12802c27c18e8Smrg } 12803c27c18e8Smrgfi 12804c43cc173Smrg 12805c43cc173Smrg 12806c27c18e8Smrg# IFS 12807c27c18e8Smrg# We need space, tab and new line, in precisely that order. Quoting is 12808c27c18e8Smrg# there to prevent editors from complaining about space-tab. 12809c27c18e8Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12810c27c18e8Smrg# splitting by setting IFS to empty value.) 12811c27c18e8SmrgIFS=" "" $as_nl" 12812c43cc173Smrg 12813c27c18e8Smrg# Find who we are. Look in the path if we contain no directory separator. 12814b789ec8aSmrgas_myself= 128153e256790Smrgcase $0 in #(( 12816c27c18e8Smrg *[\\/]* ) as_myself=$0 ;; 12817c27c18e8Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12818c27c18e8Smrgfor as_dir in $PATH 12819c27c18e8Smrgdo 12820c27c18e8Smrg IFS=$as_save_IFS 12821c27c18e8Smrg test -z "$as_dir" && as_dir=. 128223e256790Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 128233e256790Smrg done 12824c27c18e8SmrgIFS=$as_save_IFS 12825c43cc173Smrg 12826c27c18e8Smrg ;; 12827c27c18e8Smrgesac 12828c27c18e8Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 12829c27c18e8Smrg# in which case we are not to be found in the path. 12830c27c18e8Smrgif test "x$as_myself" = x; then 12831c27c18e8Smrg as_myself=$0 12832c27c18e8Smrgfi 12833c27c18e8Smrgif test ! -f "$as_myself"; then 12834c27c18e8Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 128353e256790Smrg exit 1 12836c27c18e8Smrgfi 12837c43cc173Smrg 128383e256790Smrg# Unset variables that we do not need and which cause bugs (e.g. in 128393e256790Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 128403e256790Smrg# suppresses any "Segmentation fault" message there. '((' could 128413e256790Smrg# trigger a bug in pdksh 5.2.14. 128423e256790Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 128433e256790Smrgdo eval test x\${$as_var+set} = xset \ 128443e256790Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12845c27c18e8Smrgdone 12846c27c18e8SmrgPS1='$ ' 12847c27c18e8SmrgPS2='> ' 12848c27c18e8SmrgPS4='+ ' 12849c43cc173Smrg 12850c27c18e8Smrg# NLS nuisances. 12851c27c18e8SmrgLC_ALL=C 12852c27c18e8Smrgexport LC_ALL 12853c27c18e8SmrgLANGUAGE=C 12854c27c18e8Smrgexport LANGUAGE 12855c43cc173Smrg 128563e256790Smrg# CDPATH. 128573e256790Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 128583e256790Smrg 128593e256790Smrg 1286037eb1ca1Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 1286137eb1ca1Smrg# ---------------------------------------- 128623e256790Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 128633e256790Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 1286437eb1ca1Smrg# script with STATUS, using 1 if that was 0. 128653e256790Smrgas_fn_error () 128663e256790Smrg{ 1286737eb1ca1Smrg as_status=$1; test $as_status -eq 0 && as_status=1 1286837eb1ca1Smrg if test "$4"; then 1286937eb1ca1Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1287037eb1ca1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 128713e256790Smrg fi 1287237eb1ca1Smrg $as_echo "$as_me: error: $2" >&2 128733e256790Smrg as_fn_exit $as_status 128743e256790Smrg} # as_fn_error 128753e256790Smrg 128763e256790Smrg 128773e256790Smrg# as_fn_set_status STATUS 128783e256790Smrg# ----------------------- 128793e256790Smrg# Set $? to STATUS, without forking. 128803e256790Smrgas_fn_set_status () 128813e256790Smrg{ 128823e256790Smrg return $1 128833e256790Smrg} # as_fn_set_status 128843e256790Smrg 128853e256790Smrg# as_fn_exit STATUS 128863e256790Smrg# ----------------- 128873e256790Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 128883e256790Smrgas_fn_exit () 128893e256790Smrg{ 128903e256790Smrg set +e 128913e256790Smrg as_fn_set_status $1 128923e256790Smrg exit $1 128933e256790Smrg} # as_fn_exit 128943e256790Smrg 128953e256790Smrg# as_fn_unset VAR 128963e256790Smrg# --------------- 128973e256790Smrg# Portably unset VAR. 128983e256790Smrgas_fn_unset () 128993e256790Smrg{ 129003e256790Smrg { eval $1=; unset $1;} 129013e256790Smrg} 129023e256790Smrgas_unset=as_fn_unset 129033e256790Smrg# as_fn_append VAR VALUE 129043e256790Smrg# ---------------------- 129053e256790Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 129063e256790Smrg# advantage of any shell optimizations that allow amortized linear growth over 129073e256790Smrg# repeated appends, instead of the typical quadratic growth present in naive 129083e256790Smrg# implementations. 129093e256790Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 129103e256790Smrg eval 'as_fn_append () 129113e256790Smrg { 129123e256790Smrg eval $1+=\$2 129133e256790Smrg }' 129143e256790Smrgelse 129153e256790Smrg as_fn_append () 129163e256790Smrg { 129173e256790Smrg eval $1=\$$1\$2 129183e256790Smrg } 129193e256790Smrgfi # as_fn_append 129203e256790Smrg 129213e256790Smrg# as_fn_arith ARG... 129223e256790Smrg# ------------------ 129233e256790Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 129243e256790Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 129253e256790Smrg# must be portable across $(()) and expr. 129263e256790Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 129273e256790Smrg eval 'as_fn_arith () 129283e256790Smrg { 129293e256790Smrg as_val=$(( $* )) 129303e256790Smrg }' 129313e256790Smrgelse 129323e256790Smrg as_fn_arith () 129333e256790Smrg { 129343e256790Smrg as_val=`expr "$@" || test $? -eq 1` 129353e256790Smrg } 129363e256790Smrgfi # as_fn_arith 129373e256790Smrg 129383e256790Smrg 12939c27c18e8Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 12940c27c18e8Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 12941c27c18e8Smrg as_expr=expr 12942c27c18e8Smrgelse 12943c27c18e8Smrg as_expr=false 12944c27c18e8Smrgfi 12945c43cc173Smrg 12946c27c18e8Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12947c27c18e8Smrg as_basename=basename 12948c27c18e8Smrgelse 12949c27c18e8Smrg as_basename=false 12950c27c18e8Smrgfi 12951c43cc173Smrg 129523e256790Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 129533e256790Smrg as_dirname=dirname 129543e256790Smrgelse 129553e256790Smrg as_dirname=false 129563e256790Smrgfi 12957c43cc173Smrg 12958c27c18e8Smrgas_me=`$as_basename -- "$0" || 12959c27c18e8Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12960c27c18e8Smrg X"$0" : 'X\(//\)$' \| \ 12961c27c18e8Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 12962c27c18e8Smrg$as_echo X/"$0" | 12963c27c18e8Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 12964c27c18e8Smrg s//\1/ 12965c27c18e8Smrg q 12966c27c18e8Smrg } 12967c27c18e8Smrg /^X\/\(\/\/\)$/{ 12968c27c18e8Smrg s//\1/ 12969c27c18e8Smrg q 12970c27c18e8Smrg } 12971c27c18e8Smrg /^X\/\(\/\).*/{ 12972c27c18e8Smrg s//\1/ 12973c27c18e8Smrg q 12974c27c18e8Smrg } 12975c27c18e8Smrg s/.*/./; q'` 12976c43cc173Smrg 129773e256790Smrg# Avoid depending upon Character Ranges. 129783e256790Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 129793e256790Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 129803e256790Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 129813e256790Smrgas_cr_digits='0123456789' 129823e256790Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 12983c43cc173Smrg 12984c27c18e8SmrgECHO_C= ECHO_N= ECHO_T= 129853e256790Smrgcase `echo -n x` in #((((( 12986c27c18e8Smrg-n*) 129873e256790Smrg case `echo 'xy\c'` in 12988c27c18e8Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 129893e256790Smrg xy) ECHO_C='\c';; 129903e256790Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 129913e256790Smrg ECHO_T=' ';; 12992c27c18e8Smrg esac;; 12993c27c18e8Smrg*) 12994c27c18e8Smrg ECHO_N='-n';; 12995c27c18e8Smrgesac 12996c43cc173Smrg 12997c27c18e8Smrgrm -f conf$$ conf$$.exe conf$$.file 12998c27c18e8Smrgif test -d conf$$.dir; then 12999c27c18e8Smrg rm -f conf$$.dir/conf$$.file 13000c43cc173Smrgelse 13001c27c18e8Smrg rm -f conf$$.dir 13002c27c18e8Smrg mkdir conf$$.dir 2>/dev/null 13003c27c18e8Smrgfi 13004c27c18e8Smrgif (echo >conf$$.file) 2>/dev/null; then 13005c27c18e8Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 13006c27c18e8Smrg as_ln_s='ln -s' 13007c27c18e8Smrg # ... but there are two gotchas: 13008c27c18e8Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13009c27c18e8Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13010c27c18e8Smrg # In both cases, we have to default to `cp -p'. 13011c27c18e8Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13012c27c18e8Smrg as_ln_s='cp -p' 13013c27c18e8Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 13014c27c18e8Smrg as_ln_s=ln 13015c27c18e8Smrg else 13016c27c18e8Smrg as_ln_s='cp -p' 13017c43cc173Smrg fi 13018c27c18e8Smrgelse 13019c27c18e8Smrg as_ln_s='cp -p' 13020c43cc173Smrgfi 13021c27c18e8Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13022c27c18e8Smrgrmdir conf$$.dir 2>/dev/null 13023c43cc173Smrg 130243e256790Smrg 130253e256790Smrg# as_fn_mkdir_p 130263e256790Smrg# ------------- 130273e256790Smrg# Create "$as_dir" as a directory, including parents if necessary. 130283e256790Smrgas_fn_mkdir_p () 130293e256790Smrg{ 130303e256790Smrg 130313e256790Smrg case $as_dir in #( 130323e256790Smrg -*) as_dir=./$as_dir;; 130333e256790Smrg esac 130343e256790Smrg test -d "$as_dir" || eval $as_mkdir_p || { 130353e256790Smrg as_dirs= 130363e256790Smrg while :; do 130373e256790Smrg case $as_dir in #( 130383e256790Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 130393e256790Smrg *) as_qdir=$as_dir;; 130403e256790Smrg esac 130413e256790Smrg as_dirs="'$as_qdir' $as_dirs" 130423e256790Smrg as_dir=`$as_dirname -- "$as_dir" || 130433e256790Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 130443e256790Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 130453e256790Smrg X"$as_dir" : 'X\(//\)$' \| \ 130463e256790Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 130473e256790Smrg$as_echo X"$as_dir" | 130483e256790Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 130493e256790Smrg s//\1/ 130503e256790Smrg q 130513e256790Smrg } 130523e256790Smrg /^X\(\/\/\)[^/].*/{ 130533e256790Smrg s//\1/ 130543e256790Smrg q 130553e256790Smrg } 130563e256790Smrg /^X\(\/\/\)$/{ 130573e256790Smrg s//\1/ 130583e256790Smrg q 130593e256790Smrg } 130603e256790Smrg /^X\(\/\).*/{ 130613e256790Smrg s//\1/ 130623e256790Smrg q 130633e256790Smrg } 130643e256790Smrg s/.*/./; q'` 130653e256790Smrg test -d "$as_dir" && break 130663e256790Smrg done 130673e256790Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 1306837eb1ca1Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 130693e256790Smrg 130703e256790Smrg 130713e256790Smrg} # as_fn_mkdir_p 13072c27c18e8Smrgif mkdir -p . 2>/dev/null; then 130733e256790Smrg as_mkdir_p='mkdir -p "$as_dir"' 13074c27c18e8Smrgelse 13075c27c18e8Smrg test -d ./-p && rmdir ./-p 13076c27c18e8Smrg as_mkdir_p=false 13077c27c18e8Smrgfi 13078c43cc173Smrg 13079c27c18e8Smrgif test -x / >/dev/null 2>&1; then 13080c27c18e8Smrg as_test_x='test -x' 13081c27c18e8Smrgelse 13082c27c18e8Smrg if ls -dL / >/dev/null 2>&1; then 13083c27c18e8Smrg as_ls_L_option=L 13084c43cc173Smrg else 13085c27c18e8Smrg as_ls_L_option= 13086c43cc173Smrg fi 13087c27c18e8Smrg as_test_x=' 13088c27c18e8Smrg eval sh -c '\'' 13089c27c18e8Smrg if test -d "$1"; then 13090c27c18e8Smrg test -d "$1/."; 13091c27c18e8Smrg else 130923e256790Smrg case $1 in #( 13093c27c18e8Smrg -*)set "./$1";; 13094c27c18e8Smrg esac; 130953e256790Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 13096c27c18e8Smrg ???[sx]*):;;*)false;;esac;fi 13097c27c18e8Smrg '\'' sh 13098c27c18e8Smrg ' 13099c43cc173Smrgfi 13100c27c18e8Smrgas_executable_p=$as_test_x 13101c43cc173Smrg 13102c27c18e8Smrg# Sed expression to map a string onto a valid CPP name. 13103c27c18e8Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13104c43cc173Smrg 13105c27c18e8Smrg# Sed expression to map a string onto a valid variable name. 13106c27c18e8Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13107c43cc173Smrg 13108c43cc173Smrg 13109c27c18e8Smrgexec 6>&1 131103e256790Smrg## ----------------------------------- ## 131113e256790Smrg## Main body of $CONFIG_STATUS script. ## 131123e256790Smrg## ----------------------------------- ## 131133e256790Smrg_ASEOF 131143e256790Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13115c43cc173Smrg 131163e256790Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 131173e256790Smrg# Save the log message, to keep $0 and so on meaningful, and to 13118c27c18e8Smrg# report actual input values of CONFIG_FILES etc. instead of their 13119c27c18e8Smrg# values after options handling. 13120c27c18e8Smrgac_log=" 13121b789ec8aSmrgThis file was extended by libXi $as_me 1.4.3, which was 13122b789ec8aSmrggenerated by GNU Autoconf 2.68. Invocation command line was 13123c43cc173Smrg 13124c27c18e8Smrg CONFIG_FILES = $CONFIG_FILES 13125c27c18e8Smrg CONFIG_HEADERS = $CONFIG_HEADERS 13126c27c18e8Smrg CONFIG_LINKS = $CONFIG_LINKS 13127c27c18e8Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 13128c27c18e8Smrg $ $0 $@ 13129c43cc173Smrg 13130c27c18e8Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 13131c27c18e8Smrg" 13132c43cc173Smrg 13133c27c18e8Smrg_ACEOF 13134c43cc173Smrg 13135c27c18e8Smrgcase $ac_config_files in *" 13136c27c18e8Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 13137c27c18e8Smrgesac 13138c43cc173Smrg 13139c27c18e8Smrgcase $ac_config_headers in *" 13140c27c18e8Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13141c27c18e8Smrgesac 13142c43cc173Smrg 13143c43cc173Smrg 13144c27c18e8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13145c27c18e8Smrg# Files that config.status was made for. 13146c27c18e8Smrgconfig_files="$ac_config_files" 13147c27c18e8Smrgconfig_headers="$ac_config_headers" 13148c27c18e8Smrgconfig_commands="$ac_config_commands" 13149c43cc173Smrg 13150c27c18e8Smrg_ACEOF 13151c43cc173Smrg 13152c27c18e8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13153c27c18e8Smrgac_cs_usage="\ 131543e256790Smrg\`$as_me' instantiates files and other configuration actions 131553e256790Smrgfrom templates according to the current configuration. Unless the files 131563e256790Smrgand actions are specified as TAGs, all are instantiated by default. 13157c43cc173Smrg 131583e256790SmrgUsage: $0 [OPTION]... [TAG]... 13159c43cc173Smrg 13160c27c18e8Smrg -h, --help print this help, then exit 13161c27c18e8Smrg -V, --version print version number and configuration settings, then exit 131623e256790Smrg --config print configuration, then exit 13163c27c18e8Smrg -q, --quiet, --silent 13164c27c18e8Smrg do not print progress messages 13165c27c18e8Smrg -d, --debug don't remove temporary files 13166c27c18e8Smrg --recheck update $as_me by reconfiguring in the same conditions 13167c27c18e8Smrg --file=FILE[:TEMPLATE] 13168c27c18e8Smrg instantiate the configuration file FILE 13169c27c18e8Smrg --header=FILE[:TEMPLATE] 13170c27c18e8Smrg instantiate the configuration header FILE 13171c43cc173Smrg 13172c27c18e8SmrgConfiguration files: 13173c27c18e8Smrg$config_files 13174c43cc173Smrg 13175c27c18e8SmrgConfiguration headers: 13176c27c18e8Smrg$config_headers 13177c43cc173Smrg 13178c27c18e8SmrgConfiguration commands: 13179c27c18e8Smrg$config_commands 13180c43cc173Smrg 131813e256790SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 13182c43cc173Smrg 13183c27c18e8Smrg_ACEOF 13184c27c18e8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 131853e256790Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13186c27c18e8Smrgac_cs_version="\\ 13187b789ec8aSmrglibXi config.status 1.4.3 13188b789ec8aSmrgconfigured by $0, generated by GNU Autoconf 2.68, 131893e256790Smrg with options \\"\$ac_cs_config\\" 13190c43cc173Smrg 1319137eb1ca1SmrgCopyright (C) 2010 Free Software Foundation, Inc. 13192c27c18e8SmrgThis config.status script is free software; the Free Software Foundation 13193c27c18e8Smrggives unlimited permission to copy, distribute and modify it." 13194c43cc173Smrg 13195c27c18e8Smrgac_pwd='$ac_pwd' 13196c27c18e8Smrgsrcdir='$srcdir' 13197c27c18e8SmrgINSTALL='$INSTALL' 13198c27c18e8SmrgMKDIR_P='$MKDIR_P' 13199c27c18e8SmrgAWK='$AWK' 13200c27c18e8Smrgtest -n "\$AWK" || AWK=awk 13201c27c18e8Smrg_ACEOF 13202c43cc173Smrg 13203c27c18e8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13204c27c18e8Smrg# The default lists apply if the user does not specify any file. 13205c27c18e8Smrgac_need_defaults=: 13206c27c18e8Smrgwhile test $# != 0 13207c27c18e8Smrgdo 13208c27c18e8Smrg case $1 in 13209b789ec8aSmrg --*=?*) 13210c27c18e8Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 13211c27c18e8Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13212c27c18e8Smrg ac_shift=: 13213c27c18e8Smrg ;; 13214b789ec8aSmrg --*=) 13215b789ec8aSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 13216b789ec8aSmrg ac_optarg= 13217b789ec8aSmrg ac_shift=: 13218b789ec8aSmrg ;; 13219c27c18e8Smrg *) 13220c27c18e8Smrg ac_option=$1 13221c27c18e8Smrg ac_optarg=$2 13222c27c18e8Smrg ac_shift=shift 13223c27c18e8Smrg ;; 13224c27c18e8Smrg esac 1322521e67964Smrg 13226c27c18e8Smrg case $ac_option in 13227c27c18e8Smrg # Handling of the options. 13228c27c18e8Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13229c27c18e8Smrg ac_cs_recheck=: ;; 13230c27c18e8Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13231c27c18e8Smrg $as_echo "$ac_cs_version"; exit ;; 132323e256790Smrg --config | --confi | --conf | --con | --co | --c ) 132333e256790Smrg $as_echo "$ac_cs_config"; exit ;; 13234c27c18e8Smrg --debug | --debu | --deb | --de | --d | -d ) 13235c27c18e8Smrg debug=: ;; 13236c27c18e8Smrg --file | --fil | --fi | --f ) 13237c27c18e8Smrg $ac_shift 13238c27c18e8Smrg case $ac_optarg in 13239c27c18e8Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13240b789ec8aSmrg '') as_fn_error $? "missing file argument" ;; 13241c27c18e8Smrg esac 132423e256790Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 13243c27c18e8Smrg ac_need_defaults=false;; 13244c27c18e8Smrg --header | --heade | --head | --hea ) 13245c27c18e8Smrg $ac_shift 13246c27c18e8Smrg case $ac_optarg in 13247c27c18e8Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13248c27c18e8Smrg esac 132493e256790Smrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13250c27c18e8Smrg ac_need_defaults=false;; 13251c27c18e8Smrg --he | --h) 13252c27c18e8Smrg # Conflict between --help and --header 1325337eb1ca1Smrg as_fn_error $? "ambiguous option: \`$1' 132543e256790SmrgTry \`$0 --help' for more information.";; 13255c27c18e8Smrg --help | --hel | -h ) 13256c27c18e8Smrg $as_echo "$ac_cs_usage"; exit ;; 13257c27c18e8Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13258c27c18e8Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 13259c27c18e8Smrg ac_cs_silent=: ;; 13260c43cc173Smrg 13261c27c18e8Smrg # This is an error. 1326237eb1ca1Smrg -*) as_fn_error $? "unrecognized option: \`$1' 132633e256790SmrgTry \`$0 --help' for more information." ;; 13264c43cc173Smrg 132653e256790Smrg *) as_fn_append ac_config_targets " $1" 13266c27c18e8Smrg ac_need_defaults=false ;; 13267c43cc173Smrg 13268c27c18e8Smrg esac 13269c27c18e8Smrg shift 13270c27c18e8Smrgdone 13271c43cc173Smrg 13272c27c18e8Smrgac_configure_extra_args= 13273c43cc173Smrg 13274c27c18e8Smrgif $ac_cs_silent; then 13275c27c18e8Smrg exec 6>/dev/null 13276c27c18e8Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 13277c27c18e8Smrgfi 13278c43cc173Smrg 13279c27c18e8Smrg_ACEOF 13280c27c18e8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13281c27c18e8Smrgif \$ac_cs_recheck; then 13282c27c18e8Smrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13283c27c18e8Smrg shift 13284c27c18e8Smrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13285c27c18e8Smrg CONFIG_SHELL='$SHELL' 13286c27c18e8Smrg export CONFIG_SHELL 13287c27c18e8Smrg exec "\$@" 13288c27c18e8Smrgfi 13289c43cc173Smrg 13290c27c18e8Smrg_ACEOF 13291c27c18e8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13292c27c18e8Smrgexec 5>>config.log 13293c27c18e8Smrg{ 13294c27c18e8Smrg echo 13295c27c18e8Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13296c27c18e8Smrg## Running $as_me. ## 13297c27c18e8Smrg_ASBOX 13298c27c18e8Smrg $as_echo "$ac_log" 13299c27c18e8Smrg} >&5 13300c43cc173Smrg 13301c27c18e8Smrg_ACEOF 13302c27c18e8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13303c27c18e8Smrg# 13304c27c18e8Smrg# INIT-COMMANDS 13305c27c18e8Smrg# 13306c27c18e8SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13307c43cc173Smrg 13308c43cc173Smrg 13309c27c18e8Smrg# The HP-UX ksh and POSIX shell print the target directory to stdout 13310c27c18e8Smrg# if CDPATH is set. 13311c27c18e8Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13312c43cc173Smrg 13313c27c18e8Smrgsed_quote_subst='$sed_quote_subst' 13314c27c18e8Smrgdouble_quote_subst='$double_quote_subst' 13315c27c18e8Smrgdelay_variable_subst='$delay_variable_subst' 1331637eb1ca1Smrgmacro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 1331737eb1ca1Smrgmacro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 1331837eb1ca1Smrgenable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 1331937eb1ca1Smrgenable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 1332037eb1ca1Smrgpic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 1332137eb1ca1Smrgenable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 1332237eb1ca1SmrgSHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 1332337eb1ca1SmrgECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 1332437eb1ca1Smrghost_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 1332537eb1ca1Smrghost='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 1332637eb1ca1Smrghost_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 1332737eb1ca1Smrgbuild_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 1332837eb1ca1Smrgbuild='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 1332937eb1ca1Smrgbuild_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 1333037eb1ca1SmrgSED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 1333137eb1ca1SmrgXsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 1333237eb1ca1SmrgGREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 1333337eb1ca1SmrgEGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 1333437eb1ca1SmrgFGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 1333537eb1ca1SmrgLD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 1333637eb1ca1SmrgNM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 1333737eb1ca1SmrgLN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 1333837eb1ca1Smrgmax_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 1333937eb1ca1Smrgac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 1334037eb1ca1Smrgexeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 1334137eb1ca1Smrglt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 1334237eb1ca1Smrglt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 1334337eb1ca1Smrglt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13344b789ec8aSmrglt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13345b789ec8aSmrglt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 1334637eb1ca1Smrgreload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 1334737eb1ca1Smrgreload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 1334837eb1ca1SmrgOBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 1334937eb1ca1Smrgdeplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 1335037eb1ca1Smrgfile_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13351b789ec8aSmrgfile_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13352b789ec8aSmrgwant_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13353b789ec8aSmrgDLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13354b789ec8aSmrgsharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 1335537eb1ca1SmrgAR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 1335637eb1ca1SmrgAR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13357b789ec8aSmrgarchiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 1335837eb1ca1SmrgSTRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 1335937eb1ca1SmrgRANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 1336037eb1ca1Smrgold_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 1336137eb1ca1Smrgold_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 1336237eb1ca1Smrgold_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 1336337eb1ca1Smrglock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 1336437eb1ca1SmrgCC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 1336537eb1ca1SmrgCFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 1336637eb1ca1Smrgcompiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 1336737eb1ca1SmrgGCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 1336837eb1ca1Smrglt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 1336937eb1ca1Smrglt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 1337037eb1ca1Smrglt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 1337137eb1ca1Smrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 13372b789ec8aSmrgnm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13373b789ec8aSmrglt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 1337437eb1ca1Smrgobjdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 1337537eb1ca1SmrgMAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 1337637eb1ca1Smrglt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 1337737eb1ca1Smrglt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13378b789ec8aSmrglt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 1337937eb1ca1Smrglt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 1338037eb1ca1Smrglt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 1338137eb1ca1Smrgneed_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13382b789ec8aSmrgMANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 1338337eb1ca1SmrgDSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 1338437eb1ca1SmrgNMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 1338537eb1ca1SmrgLIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 1338637eb1ca1SmrgOTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 1338737eb1ca1SmrgOTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 1338837eb1ca1Smrglibext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 1338937eb1ca1Smrgshrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 1339037eb1ca1Smrgextract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 1339137eb1ca1Smrgarchive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 1339237eb1ca1Smrgenable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 1339337eb1ca1Smrgexport_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 1339437eb1ca1Smrgwhole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 1339537eb1ca1Smrgcompiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 1339637eb1ca1Smrgold_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 1339737eb1ca1Smrgold_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 1339837eb1ca1Smrgarchive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 1339937eb1ca1Smrgarchive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 1340037eb1ca1Smrgmodule_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 1340137eb1ca1Smrgmodule_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 1340237eb1ca1Smrgwith_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 1340337eb1ca1Smrgallow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 1340437eb1ca1Smrgno_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 1340537eb1ca1Smrghardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 1340637eb1ca1Smrghardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 1340737eb1ca1Smrghardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 1340837eb1ca1Smrghardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 1340937eb1ca1Smrghardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 1341037eb1ca1Smrghardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 1341137eb1ca1Smrghardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 1341237eb1ca1Smrghardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 1341337eb1ca1Smrginherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 1341437eb1ca1Smrglink_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 1341537eb1ca1Smrgalways_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 1341637eb1ca1Smrgexport_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 1341737eb1ca1Smrgexclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 1341837eb1ca1Smrginclude_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 1341937eb1ca1Smrgprelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13420b789ec8aSmrgpostlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 1342137eb1ca1Smrgfile_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 1342237eb1ca1Smrgvariables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 1342337eb1ca1Smrgneed_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 1342437eb1ca1Smrgneed_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 1342537eb1ca1Smrgversion_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 1342637eb1ca1Smrgrunpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 1342737eb1ca1Smrgshlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 1342837eb1ca1Smrgshlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 1342937eb1ca1Smrglibname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 1343037eb1ca1Smrglibrary_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 1343137eb1ca1Smrgsoname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 1343237eb1ca1Smrginstall_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 1343337eb1ca1Smrgpostinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 1343437eb1ca1Smrgpostuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 1343537eb1ca1Smrgfinish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 1343637eb1ca1Smrgfinish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 1343737eb1ca1Smrghardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 1343837eb1ca1Smrgsys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 1343937eb1ca1Smrgsys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 1344037eb1ca1Smrghardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 1344137eb1ca1Smrgenable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 1344237eb1ca1Smrgenable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 1344337eb1ca1Smrgenable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 1344437eb1ca1Smrgold_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 1344537eb1ca1Smrgstriplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13446c27c18e8Smrg 13447c27c18e8SmrgLTCC='$LTCC' 13448c27c18e8SmrgLTCFLAGS='$LTCFLAGS' 13449c27c18e8Smrgcompiler='$compiler_DEFAULT' 13450c27c18e8Smrg 1345137eb1ca1Smrg# A function that is used when there is no print builtin or printf. 1345237eb1ca1Smrgfunc_fallback_echo () 1345337eb1ca1Smrg{ 1345437eb1ca1Smrg eval 'cat <<_LTECHO_EOF 1345537eb1ca1Smrg\$1 1345637eb1ca1Smrg_LTECHO_EOF' 1345737eb1ca1Smrg} 1345837eb1ca1Smrg 13459c27c18e8Smrg# Quote evaled strings. 1346037eb1ca1Smrgfor var in SHELL \ 1346137eb1ca1SmrgECHO \ 1346237eb1ca1SmrgSED \ 13463c27c18e8SmrgGREP \ 13464c27c18e8SmrgEGREP \ 13465c27c18e8SmrgFGREP \ 13466c27c18e8SmrgLD \ 13467c27c18e8SmrgNM \ 13468c27c18e8SmrgLN_S \ 13469c27c18e8Smrglt_SP2NL \ 13470c27c18e8Smrglt_NL2SP \ 13471c27c18e8Smrgreload_flag \ 13472c27c18e8SmrgOBJDUMP \ 13473c27c18e8Smrgdeplibs_check_method \ 13474c27c18e8Smrgfile_magic_cmd \ 13475b789ec8aSmrgfile_magic_glob \ 13476b789ec8aSmrgwant_nocaseglob \ 13477b789ec8aSmrgDLLTOOL \ 13478b789ec8aSmrgsharedlib_from_linklib_cmd \ 13479c27c18e8SmrgAR \ 13480c27c18e8SmrgAR_FLAGS \ 13481b789ec8aSmrgarchiver_list_spec \ 13482c27c18e8SmrgSTRIP \ 13483c27c18e8SmrgRANLIB \ 13484c27c18e8SmrgCC \ 13485c27c18e8SmrgCFLAGS \ 13486c27c18e8Smrgcompiler \ 13487c27c18e8Smrglt_cv_sys_global_symbol_pipe \ 13488c27c18e8Smrglt_cv_sys_global_symbol_to_cdecl \ 13489c27c18e8Smrglt_cv_sys_global_symbol_to_c_name_address \ 13490c27c18e8Smrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13491b789ec8aSmrgnm_file_list_spec \ 13492c27c18e8Smrglt_prog_compiler_no_builtin_flag \ 13493c27c18e8Smrglt_prog_compiler_pic \ 13494b789ec8aSmrglt_prog_compiler_wl \ 13495c27c18e8Smrglt_prog_compiler_static \ 13496c27c18e8Smrglt_cv_prog_compiler_c_o \ 13497c27c18e8Smrgneed_locks \ 13498b789ec8aSmrgMANIFEST_TOOL \ 13499c27c18e8SmrgDSYMUTIL \ 13500c27c18e8SmrgNMEDIT \ 13501c27c18e8SmrgLIPO \ 13502c27c18e8SmrgOTOOL \ 13503c27c18e8SmrgOTOOL64 \ 13504c27c18e8Smrgshrext_cmds \ 13505c27c18e8Smrgexport_dynamic_flag_spec \ 13506c27c18e8Smrgwhole_archive_flag_spec \ 13507c27c18e8Smrgcompiler_needs_object \ 13508c27c18e8Smrgwith_gnu_ld \ 13509c27c18e8Smrgallow_undefined_flag \ 13510c27c18e8Smrgno_undefined_flag \ 13511c27c18e8Smrghardcode_libdir_flag_spec \ 13512c27c18e8Smrghardcode_libdir_flag_spec_ld \ 13513c27c18e8Smrghardcode_libdir_separator \ 13514c27c18e8Smrgexclude_expsyms \ 13515c27c18e8Smrginclude_expsyms \ 13516c27c18e8Smrgfile_list_spec \ 13517c27c18e8Smrgvariables_saved_for_relink \ 13518c27c18e8Smrglibname_spec \ 13519c27c18e8Smrglibrary_names_spec \ 13520c27c18e8Smrgsoname_spec \ 1352137eb1ca1Smrginstall_override_mode \ 13522c27c18e8Smrgfinish_eval \ 13523c27c18e8Smrgold_striplib \ 13524c27c18e8Smrgstriplib; do 1352537eb1ca1Smrg case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13526c27c18e8Smrg *[\\\\\\\`\\"\\\$]*) 1352737eb1ca1Smrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13528c27c18e8Smrg ;; 13529c27c18e8Smrg *) 13530c27c18e8Smrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13531c27c18e8Smrg ;; 13532c27c18e8Smrg esac 13533c27c18e8Smrgdone 13534c43cc173Smrg 13535c27c18e8Smrg# Double-quote double-evaled strings. 13536c27c18e8Smrgfor var in reload_cmds \ 13537c27c18e8Smrgold_postinstall_cmds \ 13538c27c18e8Smrgold_postuninstall_cmds \ 13539c27c18e8Smrgold_archive_cmds \ 13540c27c18e8Smrgextract_expsyms_cmds \ 13541c27c18e8Smrgold_archive_from_new_cmds \ 13542c27c18e8Smrgold_archive_from_expsyms_cmds \ 13543c27c18e8Smrgarchive_cmds \ 13544c27c18e8Smrgarchive_expsym_cmds \ 13545c27c18e8Smrgmodule_cmds \ 13546c27c18e8Smrgmodule_expsym_cmds \ 13547c27c18e8Smrgexport_symbols_cmds \ 13548c27c18e8Smrgprelink_cmds \ 13549b789ec8aSmrgpostlink_cmds \ 13550c27c18e8Smrgpostinstall_cmds \ 13551c27c18e8Smrgpostuninstall_cmds \ 13552c27c18e8Smrgfinish_cmds \ 13553c27c18e8Smrgsys_lib_search_path_spec \ 13554c27c18e8Smrgsys_lib_dlsearch_path_spec; do 1355537eb1ca1Smrg case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13556c27c18e8Smrg *[\\\\\\\`\\"\\\$]*) 1355737eb1ca1Smrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13558c27c18e8Smrg ;; 13559c27c18e8Smrg *) 13560c27c18e8Smrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13561c27c18e8Smrg ;; 13562c27c18e8Smrg esac 13563c27c18e8Smrgdone 13564c43cc173Smrg 13565c27c18e8Smrgac_aux_dir='$ac_aux_dir' 13566c27c18e8Smrgxsi_shell='$xsi_shell' 13567c27c18e8Smrglt_shell_append='$lt_shell_append' 13568c43cc173Smrg 13569c27c18e8Smrg# See if we are running on zsh, and set the options which allow our 13570c27c18e8Smrg# commands through without removal of \ escapes INIT. 13571c27c18e8Smrgif test -n "\${ZSH_VERSION+set}" ; then 13572c27c18e8Smrg setopt NO_GLOB_SUBST 13573c43cc173Smrgfi 13574c43cc173Smrg 13575c43cc173Smrg 13576c27c18e8Smrg PACKAGE='$PACKAGE' 13577c27c18e8Smrg VERSION='$VERSION' 13578c27c18e8Smrg TIMESTAMP='$TIMESTAMP' 13579c27c18e8Smrg RM='$RM' 13580c27c18e8Smrg ofile='$ofile' 13581c43cc173Smrg 13582c43cc173Smrg 13583c43cc173Smrg 13584c43cc173Smrg 13585c43cc173Smrg_ACEOF 13586c43cc173Smrg 13587c27c18e8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13588c27c18e8Smrg 13589c27c18e8Smrg# Handling of arguments. 13590c27c18e8Smrgfor ac_config_target in $ac_config_targets 13591c27c18e8Smrgdo 13592c27c18e8Smrg case $ac_config_target in 135933e256790Smrg "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 13594b789ec8aSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13595c27c18e8Smrg "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13596c27c18e8Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13597c27c18e8Smrg "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13598c27c18e8Smrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 1359937eb1ca1Smrg "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 1360037eb1ca1Smrg "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 13601c27c18e8Smrg "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;; 13602c27c18e8Smrg 1360337eb1ca1Smrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13604c27c18e8Smrg esac 13605c27c18e8Smrgdone 13606c43cc173Smrg 13607c43cc173Smrg 13608c27c18e8Smrg# If the user did not use the arguments to specify the items to instantiate, 13609c27c18e8Smrg# then the envvar interface is used. Set only those that are not. 13610c27c18e8Smrg# We use the long form for the default assignment because of an extremely 13611c27c18e8Smrg# bizarre bug on SunOS 4.1.3. 13612c27c18e8Smrgif $ac_need_defaults; then 13613c27c18e8Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13614c27c18e8Smrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13615c27c18e8Smrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13616c43cc173Smrgfi 13617c43cc173Smrg 13618c27c18e8Smrg# Have a temporary directory for convenience. Make it in the build tree 13619c27c18e8Smrg# simply because there is no reason against having it here, and in addition, 13620c27c18e8Smrg# creating and moving files from /tmp can sometimes cause problems. 13621c27c18e8Smrg# Hook for its removal unless debugging. 13622c27c18e8Smrg# Note that there is a small window in which the directory will not be cleaned: 13623c27c18e8Smrg# after its creation but before its name has been assigned to `$tmp'. 13624c27c18e8Smrg$debug || 13625c27c18e8Smrg{ 13626b789ec8aSmrg tmp= ac_tmp= 13627c27c18e8Smrg trap 'exit_status=$? 13628b789ec8aSmrg : "${ac_tmp:=$tmp}" 13629b789ec8aSmrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13630c27c18e8Smrg' 0 136313e256790Smrg trap 'as_fn_exit 1' 1 2 13 15 13632c27c18e8Smrg} 13633c27c18e8Smrg# Create a (secure) tmp directory for tmp files. 13634c43cc173Smrg 13635c27c18e8Smrg{ 13636c27c18e8Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13637b789ec8aSmrg test -d "$tmp" 13638c27c18e8Smrg} || 13639c27c18e8Smrg{ 13640c27c18e8Smrg tmp=./conf$$-$RANDOM 13641c27c18e8Smrg (umask 077 && mkdir "$tmp") 1364237eb1ca1Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13643b789ec8aSmrgac_tmp=$tmp 13644c43cc173Smrg 13645c27c18e8Smrg# Set up the scripts for CONFIG_FILES section. 13646c27c18e8Smrg# No need to generate them if there are no CONFIG_FILES. 13647c27c18e8Smrg# This happens for instance with `./config.status config.h'. 13648c27c18e8Smrgif test -n "$CONFIG_FILES"; then 13649c43cc173Smrg 13650c43cc173Smrg 136513e256790Smrgac_cr=`echo X | tr X '\015'` 136523e256790Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 136533e256790Smrg# But we know of no other shell where ac_cr would be empty at this 136543e256790Smrg# point, so we can use a bashism as a fallback. 136553e256790Smrgif test "x$ac_cr" = x; then 136563e256790Smrg eval ac_cr=\$\'\\r\' 136573e256790Smrgfi 13658c27c18e8Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13659c27c18e8Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 1366037eb1ca1Smrg ac_cs_awk_cr='\\r' 13661c27c18e8Smrgelse 13662c27c18e8Smrg ac_cs_awk_cr=$ac_cr 13663c27c18e8Smrgfi 13664c43cc173Smrg 13665b789ec8aSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 13666c27c18e8Smrg_ACEOF 13667c43cc173Smrg 13668c43cc173Smrg 13669c27c18e8Smrg{ 13670c27c18e8Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 13671c27c18e8Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13672c27c18e8Smrg echo "_ACEOF" 13673c27c18e8Smrg} >conf$$subs.sh || 1367437eb1ca1Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 1367537eb1ca1Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13676c27c18e8Smrgac_delim='%!_!# ' 13677c27c18e8Smrgfor ac_last_try in false false false false false :; do 13678c27c18e8Smrg . ./conf$$subs.sh || 1367937eb1ca1Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13680c43cc173Smrg 13681c27c18e8Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13682c27c18e8Smrg if test $ac_delim_n = $ac_delim_num; then 13683c27c18e8Smrg break 13684c27c18e8Smrg elif $ac_last_try; then 1368537eb1ca1Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13686c27c18e8Smrg else 13687c27c18e8Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13688c27c18e8Smrg fi 13689c27c18e8Smrgdone 13690c27c18e8Smrgrm -f conf$$subs.sh 13691c43cc173Smrg 13692c27c18e8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13693b789ec8aSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13694c27c18e8Smrg_ACEOF 13695c27c18e8Smrgsed -n ' 13696c27c18e8Smrgh 13697c27c18e8Smrgs/^/S["/; s/!.*/"]=/ 13698c27c18e8Smrgp 13699c27c18e8Smrgg 13700c27c18e8Smrgs/^[^!]*!// 13701c27c18e8Smrg:repl 13702c27c18e8Smrgt repl 13703c27c18e8Smrgs/'"$ac_delim"'$// 13704c27c18e8Smrgt delim 13705c27c18e8Smrg:nl 13706c27c18e8Smrgh 137073e256790Smrgs/\(.\{148\}\)..*/\1/ 13708c27c18e8Smrgt more1 13709c27c18e8Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13710c27c18e8Smrgp 13711c27c18e8Smrgn 13712c27c18e8Smrgb repl 13713c27c18e8Smrg:more1 13714c27c18e8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13715c27c18e8Smrgp 13716c27c18e8Smrgg 13717c27c18e8Smrgs/.\{148\}// 13718c27c18e8Smrgt nl 13719c27c18e8Smrg:delim 13720c27c18e8Smrgh 137213e256790Smrgs/\(.\{148\}\)..*/\1/ 13722c27c18e8Smrgt more2 13723c27c18e8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 13724c27c18e8Smrgp 13725c27c18e8Smrgb 13726c27c18e8Smrg:more2 13727c27c18e8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13728c27c18e8Smrgp 13729c27c18e8Smrgg 13730c27c18e8Smrgs/.\{148\}// 13731c27c18e8Smrgt delim 13732c27c18e8Smrg' <conf$$subs.awk | sed ' 13733c27c18e8Smrg/^[^""]/{ 13734c27c18e8Smrg N 13735c27c18e8Smrg s/\n// 13736c27c18e8Smrg} 13737c27c18e8Smrg' >>$CONFIG_STATUS || ac_write_fail=1 13738c27c18e8Smrgrm -f conf$$subs.awk 13739c27c18e8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13740c27c18e8Smrg_ACAWK 13741b789ec8aSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13742c27c18e8Smrg for (key in S) S_is_set[key] = 1 13743c27c18e8Smrg FS = "" 13744c43cc173Smrg 13745c27c18e8Smrg} 13746c27c18e8Smrg{ 13747c27c18e8Smrg line = $ 0 13748c27c18e8Smrg nfields = split(line, field, "@") 13749c27c18e8Smrg substed = 0 13750c27c18e8Smrg len = length(field[1]) 13751c27c18e8Smrg for (i = 2; i < nfields; i++) { 13752c27c18e8Smrg key = field[i] 13753c27c18e8Smrg keylen = length(key) 13754c27c18e8Smrg if (S_is_set[key]) { 13755c27c18e8Smrg value = S[key] 13756c27c18e8Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13757c27c18e8Smrg len += length(value) + length(field[++i]) 13758c27c18e8Smrg substed = 1 13759c27c18e8Smrg } else 13760c27c18e8Smrg len += 1 + keylen 13761c27c18e8Smrg } 13762c43cc173Smrg 13763c27c18e8Smrg print line 13764c27c18e8Smrg} 13765c43cc173Smrg 13766c27c18e8Smrg_ACAWK 13767c27c18e8Smrg_ACEOF 13768c27c18e8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13769c27c18e8Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13770c27c18e8Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13771c27c18e8Smrgelse 13772c27c18e8Smrg cat 13773b789ec8aSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 1377437eb1ca1Smrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13775c27c18e8Smrg_ACEOF 13776c43cc173Smrg 1377737eb1ca1Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 1377837eb1ca1Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13779c27c18e8Smrg# trailing colons and then remove the whole line if VPATH becomes empty 13780c27c18e8Smrg# (actually we leave an empty line to preserve line numbers). 13781c27c18e8Smrgif test "x$srcdir" = x.; then 1378237eb1ca1Smrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 1378337eb1ca1Smrgh 1378437eb1ca1Smrgs/// 1378537eb1ca1Smrgs/^/:/ 1378637eb1ca1Smrgs/[ ]*$/:/ 1378737eb1ca1Smrgs/:\$(srcdir):/:/g 1378837eb1ca1Smrgs/:\${srcdir}:/:/g 1378937eb1ca1Smrgs/:@srcdir@:/:/g 1379037eb1ca1Smrgs/^:*// 13791c27c18e8Smrgs/:*$// 1379237eb1ca1Smrgx 1379337eb1ca1Smrgs/\(=[ ]*\).*/\1/ 1379437eb1ca1SmrgG 1379537eb1ca1Smrgs/\n// 13796c27c18e8Smrgs/^[^=]*=[ ]*$// 13797c27c18e8Smrg}' 13798c43cc173Smrgfi 13799c43cc173Smrg 13800c27c18e8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13801c27c18e8Smrgfi # test -n "$CONFIG_FILES" 13802c27c18e8Smrg 13803c27c18e8Smrg# Set up the scripts for CONFIG_HEADERS section. 13804c27c18e8Smrg# No need to generate them if there are no CONFIG_HEADERS. 13805c27c18e8Smrg# This happens for instance with `./config.status Makefile'. 13806c27c18e8Smrgif test -n "$CONFIG_HEADERS"; then 13807b789ec8aSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 13808c27c18e8SmrgBEGIN { 13809c27c18e8Smrg_ACEOF 13810c27c18e8Smrg 13811c27c18e8Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as 13812c27c18e8Smrg# here-document in config.status, that substitutes the proper values into 13813c27c18e8Smrg# config.h.in to produce config.h. 13814c43cc173Smrg 13815c27c18e8Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 13816c27c18e8Smrg# handling of long lines. 13817c27c18e8Smrgac_delim='%!_!# ' 13818c27c18e8Smrgfor ac_last_try in false false :; do 13819b789ec8aSmrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13820b789ec8aSmrg if test -z "$ac_tt"; then 13821c27c18e8Smrg break 13822c27c18e8Smrg elif $ac_last_try; then 1382337eb1ca1Smrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13824c27c18e8Smrg else 13825c27c18e8Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13826c27c18e8Smrg fi 13827c27c18e8Smrgdone 13828c43cc173Smrg 13829c27c18e8Smrg# For the awk script, D is an array of macro values keyed by name, 13830c27c18e8Smrg# likewise P contains macro parameters if any. Preserve backslash 13831c27c18e8Smrg# newline sequences. 13832c43cc173Smrg 13833c27c18e8Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13834c27c18e8Smrgsed -n ' 13835c27c18e8Smrgs/.\{148\}/&'"$ac_delim"'/g 13836c27c18e8Smrgt rset 13837c27c18e8Smrg:rset 13838c27c18e8Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 13839c27c18e8Smrgt def 13840c27c18e8Smrgd 13841c27c18e8Smrg:def 13842c27c18e8Smrgs/\\$// 13843c27c18e8Smrgt bsnl 13844c27c18e8Smrgs/["\\]/\\&/g 13845c27c18e8Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13846c27c18e8SmrgD["\1"]=" \3"/p 13847c27c18e8Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13848c27c18e8Smrgd 13849c27c18e8Smrg:bsnl 13850c27c18e8Smrgs/["\\]/\\&/g 13851c27c18e8Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13852c27c18e8SmrgD["\1"]=" \3\\\\\\n"\\/p 13853c27c18e8Smrgt cont 13854c27c18e8Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13855c27c18e8Smrgt cont 13856c27c18e8Smrgd 13857c27c18e8Smrg:cont 13858c27c18e8Smrgn 13859c27c18e8Smrgs/.\{148\}/&'"$ac_delim"'/g 13860c27c18e8Smrgt clear 13861c27c18e8Smrg:clear 13862c27c18e8Smrgs/\\$// 13863c27c18e8Smrgt bsnlc 13864c27c18e8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 13865c27c18e8Smrgd 13866c27c18e8Smrg:bsnlc 13867c27c18e8Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13868c27c18e8Smrgb cont 13869c27c18e8Smrg' <confdefs.h | sed ' 13870c27c18e8Smrgs/'"$ac_delim"'/"\\\ 13871c27c18e8Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 13872c43cc173Smrg 13873c27c18e8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13874c27c18e8Smrg for (key in D) D_is_set[key] = 1 13875c27c18e8Smrg FS = "" 13876c27c18e8Smrg} 13877c27c18e8Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13878c27c18e8Smrg line = \$ 0 13879c27c18e8Smrg split(line, arg, " ") 13880c27c18e8Smrg if (arg[1] == "#") { 13881c27c18e8Smrg defundef = arg[2] 13882c27c18e8Smrg mac1 = arg[3] 13883c27c18e8Smrg } else { 13884c27c18e8Smrg defundef = substr(arg[1], 2) 13885c27c18e8Smrg mac1 = arg[2] 13886c27c18e8Smrg } 13887c27c18e8Smrg split(mac1, mac2, "(") #) 13888c27c18e8Smrg macro = mac2[1] 13889c27c18e8Smrg prefix = substr(line, 1, index(line, defundef) - 1) 13890c27c18e8Smrg if (D_is_set[macro]) { 13891c27c18e8Smrg # Preserve the white space surrounding the "#". 13892c27c18e8Smrg print prefix "define", macro P[macro] D[macro] 13893c27c18e8Smrg next 13894c27c18e8Smrg } else { 13895c27c18e8Smrg # Replace #undef with comments. This is necessary, for example, 13896c27c18e8Smrg # in the case of _POSIX_SOURCE, which is predefined and required 13897c27c18e8Smrg # on some systems where configure will not decide to define it. 13898c27c18e8Smrg if (defundef == "undef") { 13899c27c18e8Smrg print "/*", prefix defundef, macro, "*/" 13900c27c18e8Smrg next 13901c27c18e8Smrg } 13902c27c18e8Smrg } 13903c27c18e8Smrg} 13904c27c18e8Smrg{ print } 13905c27c18e8Smrg_ACAWK 13906c27c18e8Smrg_ACEOF 13907c27c18e8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1390837eb1ca1Smrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13909c27c18e8Smrgfi # test -n "$CONFIG_HEADERS" 13910c43cc173Smrg 13911c43cc173Smrg 13912c27c18e8Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13913c27c18e8Smrgshift 13914c27c18e8Smrgfor ac_tag 13915c27c18e8Smrgdo 13916c27c18e8Smrg case $ac_tag in 13917c27c18e8Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 13918c27c18e8Smrg esac 13919c27c18e8Smrg case $ac_mode$ac_tag in 13920c27c18e8Smrg :[FHL]*:*);; 1392137eb1ca1Smrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13922c27c18e8Smrg :[FH]-) ac_tag=-:-;; 13923c27c18e8Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13924c27c18e8Smrg esac 13925c27c18e8Smrg ac_save_IFS=$IFS 13926c27c18e8Smrg IFS=: 13927c27c18e8Smrg set x $ac_tag 13928c27c18e8Smrg IFS=$ac_save_IFS 13929c27c18e8Smrg shift 13930c27c18e8Smrg ac_file=$1 13931c27c18e8Smrg shift 13932c43cc173Smrg 13933c27c18e8Smrg case $ac_mode in 13934c27c18e8Smrg :L) ac_source=$1;; 13935c27c18e8Smrg :[FH]) 13936c27c18e8Smrg ac_file_inputs= 13937c27c18e8Smrg for ac_f 13938c27c18e8Smrg do 13939c27c18e8Smrg case $ac_f in 13940b789ec8aSmrg -) ac_f="$ac_tmp/stdin";; 13941c27c18e8Smrg *) # Look for the file first in the build tree, then in the source tree 13942c27c18e8Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 13943c27c18e8Smrg # because $ac_f cannot contain `:'. 13944c27c18e8Smrg test -f "$ac_f" || 13945c27c18e8Smrg case $ac_f in 13946c27c18e8Smrg [\\/$]*) false;; 13947c27c18e8Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13948c27c18e8Smrg esac || 1394937eb1ca1Smrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13950c27c18e8Smrg esac 13951c27c18e8Smrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 139523e256790Smrg as_fn_append ac_file_inputs " '$ac_f'" 13953c27c18e8Smrg done 13954c43cc173Smrg 13955c27c18e8Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 13956c27c18e8Smrg # use $as_me), people would be surprised to read: 13957c27c18e8Smrg # /* config.h. Generated by config.status. */ 13958c27c18e8Smrg configure_input='Generated from '` 13959c27c18e8Smrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13960c27c18e8Smrg `' by configure.' 13961c27c18e8Smrg if test x"$ac_file" != x-; then 13962c27c18e8Smrg configure_input="$ac_file. $configure_input" 139633e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13964c27c18e8Smrg$as_echo "$as_me: creating $ac_file" >&6;} 13965c27c18e8Smrg fi 13966c27c18e8Smrg # Neutralize special characters interpreted by sed in replacement strings. 13967c27c18e8Smrg case $configure_input in #( 13968c27c18e8Smrg *\&* | *\|* | *\\* ) 13969c27c18e8Smrg ac_sed_conf_input=`$as_echo "$configure_input" | 13970c27c18e8Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 13971c27c18e8Smrg *) ac_sed_conf_input=$configure_input;; 13972c27c18e8Smrg esac 13973c43cc173Smrg 13974c27c18e8Smrg case $ac_tag in 13975b789ec8aSmrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 1397637eb1ca1Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13977c27c18e8Smrg esac 13978c27c18e8Smrg ;; 13979c27c18e8Smrg esac 13980c43cc173Smrg 13981c27c18e8Smrg ac_dir=`$as_dirname -- "$ac_file" || 13982c27c18e8Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13983c27c18e8Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 13984c27c18e8Smrg X"$ac_file" : 'X\(//\)$' \| \ 13985c27c18e8Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13986c27c18e8Smrg$as_echo X"$ac_file" | 13987c27c18e8Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13988c27c18e8Smrg s//\1/ 13989c27c18e8Smrg q 13990c27c18e8Smrg } 13991c27c18e8Smrg /^X\(\/\/\)[^/].*/{ 13992c27c18e8Smrg s//\1/ 13993c27c18e8Smrg q 13994c27c18e8Smrg } 13995c27c18e8Smrg /^X\(\/\/\)$/{ 13996c27c18e8Smrg s//\1/ 13997c27c18e8Smrg q 13998c27c18e8Smrg } 13999c27c18e8Smrg /^X\(\/\).*/{ 14000c27c18e8Smrg s//\1/ 14001c27c18e8Smrg q 14002c27c18e8Smrg } 14003c27c18e8Smrg s/.*/./; q'` 140043e256790Smrg as_dir="$ac_dir"; as_fn_mkdir_p 14005c27c18e8Smrg ac_builddir=. 14006c43cc173Smrg 14007c27c18e8Smrgcase "$ac_dir" in 14008c27c18e8Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14009c27c18e8Smrg*) 14010c27c18e8Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14011c27c18e8Smrg # A ".." for each directory in $ac_dir_suffix. 14012c27c18e8Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14013c27c18e8Smrg case $ac_top_builddir_sub in 14014c27c18e8Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14015c27c18e8Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14016c27c18e8Smrg esac ;; 14017c27c18e8Smrgesac 14018c27c18e8Smrgac_abs_top_builddir=$ac_pwd 14019c27c18e8Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 14020c27c18e8Smrg# for backward compatibility: 14021c27c18e8Smrgac_top_builddir=$ac_top_build_prefix 14022c43cc173Smrg 14023c27c18e8Smrgcase $srcdir in 14024c27c18e8Smrg .) # We are building in place. 14025c27c18e8Smrg ac_srcdir=. 14026c27c18e8Smrg ac_top_srcdir=$ac_top_builddir_sub 14027c27c18e8Smrg ac_abs_top_srcdir=$ac_pwd ;; 14028c27c18e8Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 14029c27c18e8Smrg ac_srcdir=$srcdir$ac_dir_suffix; 14030c27c18e8Smrg ac_top_srcdir=$srcdir 14031c27c18e8Smrg ac_abs_top_srcdir=$srcdir ;; 14032c27c18e8Smrg *) # Relative name. 14033c27c18e8Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14034c27c18e8Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 14035c27c18e8Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14036c27c18e8Smrgesac 14037c27c18e8Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14038c43cc173Smrg 14039c43cc173Smrg 14040c27c18e8Smrg case $ac_mode in 14041c27c18e8Smrg :F) 14042c27c18e8Smrg # 14043c27c18e8Smrg # CONFIG_FILE 14044c27c18e8Smrg # 14045c43cc173Smrg 14046c27c18e8Smrg case $INSTALL in 14047c27c18e8Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14048c27c18e8Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14049c27c18e8Smrg esac 14050c27c18e8Smrg ac_MKDIR_P=$MKDIR_P 14051c27c18e8Smrg case $MKDIR_P in 14052c27c18e8Smrg [\\/$]* | ?:[\\/]* ) ;; 14053c27c18e8Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14054c27c18e8Smrg esac 14055c27c18e8Smrg_ACEOF 14056c43cc173Smrg 14057c27c18e8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14058c27c18e8Smrg# If the template does not know about datarootdir, expand it. 14059c27c18e8Smrg# FIXME: This hack should be removed a few years after 2.60. 14060c27c18e8Smrgac_datarootdir_hack=; ac_datarootdir_seen= 14061c27c18e8Smrgac_sed_dataroot=' 14062c27c18e8Smrg/datarootdir/ { 14063c27c18e8Smrg p 14064c27c18e8Smrg q 14065c27c18e8Smrg} 14066c27c18e8Smrg/@datadir@/p 14067c27c18e8Smrg/@docdir@/p 14068c27c18e8Smrg/@infodir@/p 14069c27c18e8Smrg/@localedir@/p 140703e256790Smrg/@mandir@/p' 14071c27c18e8Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14072c27c18e8Smrg*datarootdir*) ac_datarootdir_seen=yes;; 14073c27c18e8Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 140743e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14075c27c18e8Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14076c27c18e8Smrg_ACEOF 14077c27c18e8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14078c27c18e8Smrg ac_datarootdir_hack=' 14079c27c18e8Smrg s&@datadir@&$datadir&g 14080c27c18e8Smrg s&@docdir@&$docdir&g 14081c27c18e8Smrg s&@infodir@&$infodir&g 14082c27c18e8Smrg s&@localedir@&$localedir&g 14083c27c18e8Smrg s&@mandir@&$mandir&g 140843e256790Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 14085c27c18e8Smrgesac 14086c27c18e8Smrg_ACEOF 14087c43cc173Smrg 14088c27c18e8Smrg# Neutralize VPATH when `$srcdir' = `.'. 14089c27c18e8Smrg# Shell code in configure.ac might set extrasub. 14090c27c18e8Smrg# FIXME: do we really want to maintain this feature? 14091c27c18e8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14092c27c18e8Smrgac_sed_extra="$ac_vpsub 14093c27c18e8Smrg$extrasub 14094c43cc173Smrg_ACEOF 14095c27c18e8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14096c27c18e8Smrg:t 14097c27c18e8Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14098c27c18e8Smrgs|@configure_input@|$ac_sed_conf_input|;t t 14099c27c18e8Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 14100c27c18e8Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 14101c27c18e8Smrgs&@srcdir@&$ac_srcdir&;t t 14102c27c18e8Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 14103c27c18e8Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 14104c27c18e8Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14105c27c18e8Smrgs&@builddir@&$ac_builddir&;t t 14106c27c18e8Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 14107c27c18e8Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14108c27c18e8Smrgs&@INSTALL@&$ac_INSTALL&;t t 14109c27c18e8Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 14110c27c18e8Smrg$ac_datarootdir_hack 14111c27c18e8Smrg" 14112b789ec8aSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14113b789ec8aSmrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14114c43cc173Smrg 14115c27c18e8Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14116b789ec8aSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14117b789ec8aSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14118b789ec8aSmrg "$ac_tmp/out"`; test -z "$ac_out"; } && 141193e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 1412037eb1ca1Smrgwhich seems to be undefined. Please make sure it is defined" >&5 14121c27c18e8Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 1412237eb1ca1Smrgwhich seems to be undefined. Please make sure it is defined" >&2;} 14123c43cc173Smrg 14124b789ec8aSmrg rm -f "$ac_tmp/stdin" 14125c27c18e8Smrg case $ac_file in 14126b789ec8aSmrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14127b789ec8aSmrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14128c27c18e8Smrg esac \ 1412937eb1ca1Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14130c27c18e8Smrg ;; 14131c27c18e8Smrg :H) 14132c27c18e8Smrg # 14133c27c18e8Smrg # CONFIG_HEADER 14134c27c18e8Smrg # 14135c27c18e8Smrg if test x"$ac_file" != x-; then 14136c27c18e8Smrg { 14137c27c18e8Smrg $as_echo "/* $configure_input */" \ 14138b789ec8aSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14139b789ec8aSmrg } >"$ac_tmp/config.h" \ 1414037eb1ca1Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14141b789ec8aSmrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 141423e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14143c27c18e8Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 14144c27c18e8Smrg else 14145c27c18e8Smrg rm -f "$ac_file" 14146b789ec8aSmrg mv "$ac_tmp/config.h" "$ac_file" \ 1414737eb1ca1Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14148c27c18e8Smrg fi 14149c27c18e8Smrg else 14150c27c18e8Smrg $as_echo "/* $configure_input */" \ 14151b789ec8aSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 1415237eb1ca1Smrg || as_fn_error $? "could not create -" "$LINENO" 5 14153c27c18e8Smrg fi 14154c27c18e8Smrg# Compute "$ac_file"'s index in $config_headers. 14155c27c18e8Smrg_am_arg="$ac_file" 14156c27c18e8Smrg_am_stamp_count=1 14157c27c18e8Smrgfor _am_header in $config_headers :; do 14158c27c18e8Smrg case $_am_header in 14159c27c18e8Smrg $_am_arg | $_am_arg:* ) 14160c27c18e8Smrg break ;; 14161c27c18e8Smrg * ) 14162c27c18e8Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14163c27c18e8Smrg esac 14164c27c18e8Smrgdone 14165c27c18e8Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14166c27c18e8Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14167c27c18e8Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 14168c27c18e8Smrg X"$_am_arg" : 'X\(//\)$' \| \ 14169c27c18e8Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14170c27c18e8Smrg$as_echo X"$_am_arg" | 14171c27c18e8Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14172c27c18e8Smrg s//\1/ 14173c27c18e8Smrg q 14174c27c18e8Smrg } 14175c27c18e8Smrg /^X\(\/\/\)[^/].*/{ 14176c27c18e8Smrg s//\1/ 14177c27c18e8Smrg q 14178c27c18e8Smrg } 14179c27c18e8Smrg /^X\(\/\/\)$/{ 14180c27c18e8Smrg s//\1/ 14181c27c18e8Smrg q 14182c27c18e8Smrg } 14183c27c18e8Smrg /^X\(\/\).*/{ 14184c27c18e8Smrg s//\1/ 14185c27c18e8Smrg q 14186c27c18e8Smrg } 14187c27c18e8Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 14188c27c18e8Smrg ;; 14189c43cc173Smrg 141903e256790Smrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14191c27c18e8Smrg$as_echo "$as_me: executing $ac_file commands" >&6;} 14192c27c18e8Smrg ;; 14193c27c18e8Smrg esac 14194c43cc173Smrg 14195c43cc173Smrg 14196c27c18e8Smrg case $ac_file$ac_mode in 14197c27c18e8Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14198c27c18e8Smrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 14199c27c18e8Smrg # are listed without --file. Let's play safe and only enable the eval 14200c27c18e8Smrg # if we detect the quoting. 14201c27c18e8Smrg case $CONFIG_FILES in 14202c27c18e8Smrg *\'*) eval set x "$CONFIG_FILES" ;; 14203c27c18e8Smrg *) set x $CONFIG_FILES ;; 14204c27c18e8Smrg esac 14205c27c18e8Smrg shift 14206c27c18e8Smrg for mf 14207c27c18e8Smrg do 14208c27c18e8Smrg # Strip MF so we end up with the name of the file. 14209c27c18e8Smrg mf=`echo "$mf" | sed -e 's/:.*$//'` 14210c27c18e8Smrg # Check whether this is an Automake generated Makefile or not. 14211c27c18e8Smrg # We used to match only the files named `Makefile.in', but 14212c27c18e8Smrg # some people rename them; so instead we look at the file content. 14213c27c18e8Smrg # Grep'ing the first line is not enough: some people post-process 14214c27c18e8Smrg # each Makefile.in and add a new line on top of each file to say so. 14215c27c18e8Smrg # Grep'ing the whole file is not good either: AIX grep has a line 14216c27c18e8Smrg # limit of 2048, but all sed's we know have understand at least 4000. 14217c27c18e8Smrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14218c27c18e8Smrg dirpart=`$as_dirname -- "$mf" || 14219c27c18e8Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14220c27c18e8Smrg X"$mf" : 'X\(//\)[^/]' \| \ 14221c27c18e8Smrg X"$mf" : 'X\(//\)$' \| \ 14222c27c18e8Smrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14223c27c18e8Smrg$as_echo X"$mf" | 14224c27c18e8Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14225c27c18e8Smrg s//\1/ 14226c27c18e8Smrg q 14227c27c18e8Smrg } 14228c27c18e8Smrg /^X\(\/\/\)[^/].*/{ 14229c27c18e8Smrg s//\1/ 14230c27c18e8Smrg q 14231c27c18e8Smrg } 14232c27c18e8Smrg /^X\(\/\/\)$/{ 14233c27c18e8Smrg s//\1/ 14234c27c18e8Smrg q 14235c27c18e8Smrg } 14236c27c18e8Smrg /^X\(\/\).*/{ 14237c27c18e8Smrg s//\1/ 14238c27c18e8Smrg q 14239c27c18e8Smrg } 14240c27c18e8Smrg s/.*/./; q'` 14241c27c18e8Smrg else 14242c27c18e8Smrg continue 14243c27c18e8Smrg fi 14244c27c18e8Smrg # Extract the definition of DEPDIR, am__include, and am__quote 14245c27c18e8Smrg # from the Makefile without running `make'. 14246c27c18e8Smrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14247c27c18e8Smrg test -z "$DEPDIR" && continue 14248c27c18e8Smrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 14249c27c18e8Smrg test -z "am__include" && continue 14250c27c18e8Smrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14251c27c18e8Smrg # When using ansi2knr, U may be empty or an underscore; expand it 14252c27c18e8Smrg U=`sed -n 's/^U = //p' < "$mf"` 14253c27c18e8Smrg # Find all dependency output files, they are included files with 14254c27c18e8Smrg # $(DEPDIR) in their names. We invoke sed twice because it is the 14255c27c18e8Smrg # simplest approach to changing $(DEPDIR) to its actual value in the 14256c27c18e8Smrg # expansion. 14257c27c18e8Smrg for file in `sed -n " 14258c27c18e8Smrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14259c27c18e8Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14260c27c18e8Smrg # Make sure the directory exists. 14261c27c18e8Smrg test -f "$dirpart/$file" && continue 14262c27c18e8Smrg fdir=`$as_dirname -- "$file" || 14263c27c18e8Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14264c27c18e8Smrg X"$file" : 'X\(//\)[^/]' \| \ 14265c27c18e8Smrg X"$file" : 'X\(//\)$' \| \ 14266c27c18e8Smrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 14267c27c18e8Smrg$as_echo X"$file" | 14268c27c18e8Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14269c27c18e8Smrg s//\1/ 14270c27c18e8Smrg q 14271c27c18e8Smrg } 14272c27c18e8Smrg /^X\(\/\/\)[^/].*/{ 14273c27c18e8Smrg s//\1/ 14274c27c18e8Smrg q 14275c27c18e8Smrg } 14276c27c18e8Smrg /^X\(\/\/\)$/{ 14277c27c18e8Smrg s//\1/ 14278c27c18e8Smrg q 14279c27c18e8Smrg } 14280c27c18e8Smrg /^X\(\/\).*/{ 14281c27c18e8Smrg s//\1/ 14282c27c18e8Smrg q 14283c27c18e8Smrg } 14284c27c18e8Smrg s/.*/./; q'` 142853e256790Smrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 14286c27c18e8Smrg # echo "creating $dirpart/$file" 14287c27c18e8Smrg echo '# dummy' > "$dirpart/$file" 14288c27c18e8Smrg done 14289c27c18e8Smrg done 14290c27c18e8Smrg} 14291c27c18e8Smrg ;; 14292c27c18e8Smrg "libtool":C) 14293c27c18e8Smrg 14294c27c18e8Smrg # See if we are running on zsh, and set the options which allow our 14295c27c18e8Smrg # commands through without removal of \ escapes. 14296c27c18e8Smrg if test -n "${ZSH_VERSION+set}" ; then 14297c27c18e8Smrg setopt NO_GLOB_SUBST 14298c27c18e8Smrg fi 14299c43cc173Smrg 14300c27c18e8Smrg cfgfile="${ofile}T" 14301c27c18e8Smrg trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14302c27c18e8Smrg $RM "$cfgfile" 14303c43cc173Smrg 14304c27c18e8Smrg cat <<_LT_EOF >> "$cfgfile" 14305c27c18e8Smrg#! $SHELL 14306c43cc173Smrg 14307c27c18e8Smrg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14308c27c18e8Smrg# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14309c27c18e8Smrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14310c27c18e8Smrg# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14311c43cc173Smrg# 14312c27c18e8Smrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 1431337eb1ca1Smrg# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 1431437eb1ca1Smrg# Inc. 14315c27c18e8Smrg# Written by Gordon Matzigkeit, 1996 14316c43cc173Smrg# 14317c27c18e8Smrg# This file is part of GNU Libtool. 14318c27c18e8Smrg# 14319c27c18e8Smrg# GNU Libtool is free software; you can redistribute it and/or 14320c27c18e8Smrg# modify it under the terms of the GNU General Public License as 14321c27c18e8Smrg# published by the Free Software Foundation; either version 2 of 14322c27c18e8Smrg# the License, or (at your option) any later version. 14323c27c18e8Smrg# 14324c27c18e8Smrg# As a special exception to the GNU General Public License, 14325c27c18e8Smrg# if you distribute this file as part of a program or library that 14326c27c18e8Smrg# is built using GNU Libtool, you may include this file under the 14327c27c18e8Smrg# same distribution terms that you use for the rest of that program. 14328c27c18e8Smrg# 14329c27c18e8Smrg# GNU Libtool is distributed in the hope that it will be useful, 14330c27c18e8Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 14331c27c18e8Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14332c27c18e8Smrg# GNU General Public License for more details. 14333c27c18e8Smrg# 14334c27c18e8Smrg# You should have received a copy of the GNU General Public License 14335c27c18e8Smrg# along with GNU Libtool; see the file COPYING. If not, a copy 14336c27c18e8Smrg# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14337c27c18e8Smrg# obtained by writing to the Free Software Foundation, Inc., 14338c27c18e8Smrg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14339c43cc173Smrg 14340c43cc173Smrg 14341c27c18e8Smrg# The names of the tagged configurations supported by this script. 14342c27c18e8Smrgavailable_tags="" 14343c43cc173Smrg 14344c27c18e8Smrg# ### BEGIN LIBTOOL CONFIG 14345c43cc173Smrg 14346c27c18e8Smrg# Which release of libtool.m4 was used? 14347c27c18e8Smrgmacro_version=$macro_version 14348c27c18e8Smrgmacro_revision=$macro_revision 14349c43cc173Smrg 14350c27c18e8Smrg# Whether or not to build shared libraries. 14351c27c18e8Smrgbuild_libtool_libs=$enable_shared 14352c43cc173Smrg 14353c27c18e8Smrg# Whether or not to build static libraries. 14354c27c18e8Smrgbuild_old_libs=$enable_static 14355c43cc173Smrg 14356c27c18e8Smrg# What type of objects to build. 14357c27c18e8Smrgpic_mode=$pic_mode 14358c43cc173Smrg 14359c27c18e8Smrg# Whether or not to optimize for fast installation. 14360c27c18e8Smrgfast_install=$enable_fast_install 14361c43cc173Smrg 1436237eb1ca1Smrg# Shell to use when invoking shell scripts. 1436337eb1ca1SmrgSHELL=$lt_SHELL 1436437eb1ca1Smrg 1436537eb1ca1Smrg# An echo program that protects backslashes. 1436637eb1ca1SmrgECHO=$lt_ECHO 1436737eb1ca1Smrg 14368c27c18e8Smrg# The host system. 14369c27c18e8Smrghost_alias=$host_alias 14370c27c18e8Smrghost=$host 14371c27c18e8Smrghost_os=$host_os 14372c43cc173Smrg 14373c27c18e8Smrg# The build system. 14374c27c18e8Smrgbuild_alias=$build_alias 14375c27c18e8Smrgbuild=$build 14376c27c18e8Smrgbuild_os=$build_os 14377c43cc173Smrg 14378c27c18e8Smrg# A sed program that does not truncate output. 14379c27c18e8SmrgSED=$lt_SED 14380c43cc173Smrg 14381c27c18e8Smrg# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14382c27c18e8SmrgXsed="\$SED -e 1s/^X//" 14383c43cc173Smrg 14384c27c18e8Smrg# A grep program that handles long lines. 14385c27c18e8SmrgGREP=$lt_GREP 14386c43cc173Smrg 14387c27c18e8Smrg# An ERE matcher. 14388c27c18e8SmrgEGREP=$lt_EGREP 14389c43cc173Smrg 14390c27c18e8Smrg# A literal string matcher. 14391c27c18e8SmrgFGREP=$lt_FGREP 14392c43cc173Smrg 14393c27c18e8Smrg# A BSD- or MS-compatible name lister. 14394c27c18e8SmrgNM=$lt_NM 1439521e67964Smrg 14396c27c18e8Smrg# Whether we need soft or hard links. 14397c27c18e8SmrgLN_S=$lt_LN_S 14398c43cc173Smrg 14399c27c18e8Smrg# What is the maximum length of a command? 14400c27c18e8Smrgmax_cmd_len=$max_cmd_len 14401c43cc173Smrg 14402c27c18e8Smrg# Object file suffix (normally "o"). 14403c27c18e8Smrgobjext=$ac_objext 14404c43cc173Smrg 14405c27c18e8Smrg# Executable file suffix (normally ""). 14406c27c18e8Smrgexeext=$exeext 14407c43cc173Smrg 14408c27c18e8Smrg# whether the shell understands "unset". 14409c27c18e8Smrglt_unset=$lt_unset 14410c43cc173Smrg 14411c27c18e8Smrg# turn spaces into newlines. 14412c27c18e8SmrgSP2NL=$lt_lt_SP2NL 14413c43cc173Smrg 14414c27c18e8Smrg# turn newlines into spaces. 14415c27c18e8SmrgNL2SP=$lt_lt_NL2SP 14416c43cc173Smrg 14417b789ec8aSmrg# convert \$build file names to \$host format. 14418b789ec8aSmrgto_host_file_cmd=$lt_cv_to_host_file_cmd 14419b789ec8aSmrg 14420b789ec8aSmrg# convert \$build files to toolchain format. 14421b789ec8aSmrgto_tool_file_cmd=$lt_cv_to_tool_file_cmd 14422b789ec8aSmrg 14423c27c18e8Smrg# An object symbol dumper. 14424c27c18e8SmrgOBJDUMP=$lt_OBJDUMP 14425c43cc173Smrg 14426c27c18e8Smrg# Method to check whether dependent libraries are shared objects. 14427c27c18e8Smrgdeplibs_check_method=$lt_deplibs_check_method 14428c43cc173Smrg 14429b789ec8aSmrg# Command to use when deplibs_check_method = "file_magic". 14430c27c18e8Smrgfile_magic_cmd=$lt_file_magic_cmd 14431c43cc173Smrg 14432b789ec8aSmrg# How to find potential files when deplibs_check_method = "file_magic". 14433b789ec8aSmrgfile_magic_glob=$lt_file_magic_glob 14434b789ec8aSmrg 14435b789ec8aSmrg# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14436b789ec8aSmrgwant_nocaseglob=$lt_want_nocaseglob 14437b789ec8aSmrg 14438b789ec8aSmrg# DLL creation program. 14439b789ec8aSmrgDLLTOOL=$lt_DLLTOOL 14440b789ec8aSmrg 14441b789ec8aSmrg# Command to associate shared and link libraries. 14442b789ec8aSmrgsharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14443b789ec8aSmrg 14444c27c18e8Smrg# The archiver. 14445c27c18e8SmrgAR=$lt_AR 14446b789ec8aSmrg 14447b789ec8aSmrg# Flags to create an archive. 14448c27c18e8SmrgAR_FLAGS=$lt_AR_FLAGS 14449c43cc173Smrg 14450b789ec8aSmrg# How to feed a file listing to the archiver. 14451b789ec8aSmrgarchiver_list_spec=$lt_archiver_list_spec 14452b789ec8aSmrg 14453c27c18e8Smrg# A symbol stripping program. 14454c27c18e8SmrgSTRIP=$lt_STRIP 14455c43cc173Smrg 14456c27c18e8Smrg# Commands used to install an old-style archive. 14457c27c18e8SmrgRANLIB=$lt_RANLIB 14458c27c18e8Smrgold_postinstall_cmds=$lt_old_postinstall_cmds 14459c27c18e8Smrgold_postuninstall_cmds=$lt_old_postuninstall_cmds 14460c43cc173Smrg 1446137eb1ca1Smrg# Whether to use a lock for old archive extraction. 1446237eb1ca1Smrglock_old_archive_extraction=$lock_old_archive_extraction 1446337eb1ca1Smrg 14464c27c18e8Smrg# A C compiler. 14465c27c18e8SmrgLTCC=$lt_CC 14466c43cc173Smrg 14467c27c18e8Smrg# LTCC compiler flags. 14468c27c18e8SmrgLTCFLAGS=$lt_CFLAGS 14469c43cc173Smrg 14470c27c18e8Smrg# Take the output of nm and produce a listing of raw symbols and C names. 14471c27c18e8Smrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14472c43cc173Smrg 14473c27c18e8Smrg# Transform the output of nm in a proper C declaration. 14474c27c18e8Smrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14475c43cc173Smrg 14476c27c18e8Smrg# Transform the output of nm in a C name address pair. 14477c27c18e8Smrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14478c43cc173Smrg 14479c27c18e8Smrg# Transform the output of nm in a C name address pair when lib prefix is needed. 14480c27c18e8Smrgglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14481c43cc173Smrg 14482b789ec8aSmrg# Specify filename containing input files for \$NM. 14483b789ec8aSmrgnm_file_list_spec=$lt_nm_file_list_spec 14484b789ec8aSmrg 14485b789ec8aSmrg# The root where to search for dependent libraries,and in which our libraries should be installed. 14486b789ec8aSmrglt_sysroot=$lt_sysroot 14487b789ec8aSmrg 14488c27c18e8Smrg# The name of the directory that contains temporary libtool files. 14489c27c18e8Smrgobjdir=$objdir 14490c43cc173Smrg 14491c27c18e8Smrg# Used to examine libraries when file_magic_cmd begins with "file". 14492c27c18e8SmrgMAGIC_CMD=$MAGIC_CMD 14493c43cc173Smrg 14494c27c18e8Smrg# Must we lock files when doing compilation? 14495c27c18e8Smrgneed_locks=$lt_need_locks 14496c43cc173Smrg 14497b789ec8aSmrg# Manifest tool. 14498b789ec8aSmrgMANIFEST_TOOL=$lt_MANIFEST_TOOL 14499b789ec8aSmrg 14500c27c18e8Smrg# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14501c27c18e8SmrgDSYMUTIL=$lt_DSYMUTIL 14502c43cc173Smrg 14503c27c18e8Smrg# Tool to change global to local symbols on Mac OS X. 14504c27c18e8SmrgNMEDIT=$lt_NMEDIT 14505c43cc173Smrg 14506c27c18e8Smrg# Tool to manipulate fat objects and archives on Mac OS X. 14507c27c18e8SmrgLIPO=$lt_LIPO 14508c43cc173Smrg 14509c27c18e8Smrg# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14510c27c18e8SmrgOTOOL=$lt_OTOOL 14511c43cc173Smrg 14512c27c18e8Smrg# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14513c27c18e8SmrgOTOOL64=$lt_OTOOL64 14514c43cc173Smrg 14515c27c18e8Smrg# Old archive suffix (normally "a"). 14516c27c18e8Smrglibext=$libext 14517c43cc173Smrg 14518c27c18e8Smrg# Shared library suffix (normally ".so"). 14519c27c18e8Smrgshrext_cmds=$lt_shrext_cmds 14520c43cc173Smrg 14521c27c18e8Smrg# The commands to extract the exported symbol list from a shared archive. 14522c27c18e8Smrgextract_expsyms_cmds=$lt_extract_expsyms_cmds 1452321e67964Smrg 14524c27c18e8Smrg# Variables whose values should be saved in libtool wrapper scripts and 14525c27c18e8Smrg# restored at link time. 14526c27c18e8Smrgvariables_saved_for_relink=$lt_variables_saved_for_relink 1452721e67964Smrg 14528c27c18e8Smrg# Do we need the "lib" prefix for modules? 14529c27c18e8Smrgneed_lib_prefix=$need_lib_prefix 1453021e67964Smrg 14531c27c18e8Smrg# Do we need a version for libraries? 14532c27c18e8Smrgneed_version=$need_version 14533c43cc173Smrg 14534c27c18e8Smrg# Library versioning type. 14535c27c18e8Smrgversion_type=$version_type 14536c43cc173Smrg 14537c27c18e8Smrg# Shared library runtime path variable. 14538c27c18e8Smrgrunpath_var=$runpath_var 14539c43cc173Smrg 14540c27c18e8Smrg# Shared library path variable. 14541c27c18e8Smrgshlibpath_var=$shlibpath_var 14542c43cc173Smrg 14543c27c18e8Smrg# Is shlibpath searched before the hard-coded library search path? 14544c27c18e8Smrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath 14545c43cc173Smrg 14546c27c18e8Smrg# Format of library name prefix. 14547c27c18e8Smrglibname_spec=$lt_libname_spec 14548c43cc173Smrg 14549c27c18e8Smrg# List of archive names. First name is the real one, the rest are links. 14550c27c18e8Smrg# The last name is the one that the linker finds with -lNAME 14551c27c18e8Smrglibrary_names_spec=$lt_library_names_spec 14552c43cc173Smrg 14553c27c18e8Smrg# The coded name of the library, if different from the real name. 14554c27c18e8Smrgsoname_spec=$lt_soname_spec 14555c43cc173Smrg 1455637eb1ca1Smrg# Permission mode override for installation of shared libraries. 1455737eb1ca1Smrginstall_override_mode=$lt_install_override_mode 1455837eb1ca1Smrg 14559c27c18e8Smrg# Command to use after installation of a shared archive. 14560c27c18e8Smrgpostinstall_cmds=$lt_postinstall_cmds 14561c43cc173Smrg 14562c27c18e8Smrg# Command to use after uninstallation of a shared archive. 14563c27c18e8Smrgpostuninstall_cmds=$lt_postuninstall_cmds 14564c43cc173Smrg 14565c27c18e8Smrg# Commands used to finish a libtool library installation in a directory. 14566c27c18e8Smrgfinish_cmds=$lt_finish_cmds 14567c43cc173Smrg 14568c27c18e8Smrg# As "finish_cmds", except a single script fragment to be evaled but 14569c27c18e8Smrg# not shown. 14570c27c18e8Smrgfinish_eval=$lt_finish_eval 14571c43cc173Smrg 14572c27c18e8Smrg# Whether we should hardcode library paths into libraries. 14573c27c18e8Smrghardcode_into_libs=$hardcode_into_libs 14574c43cc173Smrg 14575c27c18e8Smrg# Compile-time system search path for libraries. 14576c27c18e8Smrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14577c43cc173Smrg 14578c27c18e8Smrg# Run-time system search path for libraries. 14579c27c18e8Smrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14580c43cc173Smrg 14581c27c18e8Smrg# Whether dlopen is supported. 14582c27c18e8Smrgdlopen_support=$enable_dlopen 14583c43cc173Smrg 14584c27c18e8Smrg# Whether dlopen of programs is supported. 14585c27c18e8Smrgdlopen_self=$enable_dlopen_self 14586c43cc173Smrg 14587c27c18e8Smrg# Whether dlopen of statically linked programs is supported. 14588c27c18e8Smrgdlopen_self_static=$enable_dlopen_self_static 14589c43cc173Smrg 14590c27c18e8Smrg# Commands to strip libraries. 14591c27c18e8Smrgold_striplib=$lt_old_striplib 14592c27c18e8Smrgstriplib=$lt_striplib 14593c43cc173Smrg 14594c43cc173Smrg 14595c27c18e8Smrg# The linker used to build libraries. 14596c27c18e8SmrgLD=$lt_LD 14597c43cc173Smrg 1459837eb1ca1Smrg# How to create reloadable object files. 1459937eb1ca1Smrgreload_flag=$lt_reload_flag 1460037eb1ca1Smrgreload_cmds=$lt_reload_cmds 1460137eb1ca1Smrg 14602c27c18e8Smrg# Commands used to build an old-style archive. 14603c27c18e8Smrgold_archive_cmds=$lt_old_archive_cmds 14604c43cc173Smrg 14605c27c18e8Smrg# A language specific compiler. 14606c27c18e8SmrgCC=$lt_compiler 14607c43cc173Smrg 14608c27c18e8Smrg# Is the compiler the GNU compiler? 14609c27c18e8Smrgwith_gcc=$GCC 14610c43cc173Smrg 14611c27c18e8Smrg# Compiler flag to turn off builtin functions. 14612c27c18e8Smrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14613c43cc173Smrg 14614c27c18e8Smrg# Additional compiler flags for building library objects. 14615c27c18e8Smrgpic_flag=$lt_lt_prog_compiler_pic 14616c43cc173Smrg 14617b789ec8aSmrg# How to pass a linker flag through the compiler. 14618b789ec8aSmrgwl=$lt_lt_prog_compiler_wl 14619b789ec8aSmrg 14620c27c18e8Smrg# Compiler flag to prevent dynamic linking. 14621c27c18e8Smrglink_static_flag=$lt_lt_prog_compiler_static 14622c43cc173Smrg 14623c27c18e8Smrg# Does compiler simultaneously support -c and -o options? 14624c27c18e8Smrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o 14625c43cc173Smrg 14626c27c18e8Smrg# Whether or not to add -lc for building shared libraries. 14627c27c18e8Smrgbuild_libtool_need_lc=$archive_cmds_need_lc 14628c43cc173Smrg 14629c27c18e8Smrg# Whether or not to disallow shared libs when runtime libs are static. 14630c27c18e8Smrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14631c43cc173Smrg 14632c27c18e8Smrg# Compiler flag to allow reflexive dlopens. 14633c27c18e8Smrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14634c43cc173Smrg 14635c27c18e8Smrg# Compiler flag to generate shared objects directly from archives. 14636c27c18e8Smrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec 14637c43cc173Smrg 14638c27c18e8Smrg# Whether the compiler copes with passing no objects directly. 14639c27c18e8Smrgcompiler_needs_object=$lt_compiler_needs_object 14640c43cc173Smrg 14641c27c18e8Smrg# Create an old-style archive from a shared archive. 14642c27c18e8Smrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14643c43cc173Smrg 14644c27c18e8Smrg# Create a temporary old-style archive to link instead of a shared archive. 14645c27c18e8Smrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14646c43cc173Smrg 14647c27c18e8Smrg# Commands used to build a shared archive. 14648c27c18e8Smrgarchive_cmds=$lt_archive_cmds 14649c27c18e8Smrgarchive_expsym_cmds=$lt_archive_expsym_cmds 14650c43cc173Smrg 14651c27c18e8Smrg# Commands used to build a loadable module if different from building 14652c27c18e8Smrg# a shared archive. 14653c27c18e8Smrgmodule_cmds=$lt_module_cmds 14654c27c18e8Smrgmodule_expsym_cmds=$lt_module_expsym_cmds 1465521e67964Smrg 14656c27c18e8Smrg# Whether we are building with GNU ld or not. 14657c27c18e8Smrgwith_gnu_ld=$lt_with_gnu_ld 1465821e67964Smrg 14659c27c18e8Smrg# Flag that allows shared libraries with undefined symbols to be built. 14660c27c18e8Smrgallow_undefined_flag=$lt_allow_undefined_flag 14661c43cc173Smrg 14662c27c18e8Smrg# Flag that enforces no undefined symbols. 14663c27c18e8Smrgno_undefined_flag=$lt_no_undefined_flag 14664c43cc173Smrg 14665c27c18e8Smrg# Flag to hardcode \$libdir into a binary during linking. 14666c27c18e8Smrg# This must work even if \$libdir does not exist 14667c27c18e8Smrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14668c43cc173Smrg 14669c27c18e8Smrg# If ld is used when linking, flag to hardcode \$libdir into a binary 14670c27c18e8Smrg# during linking. This must work even if \$libdir does not exist. 14671c27c18e8Smrghardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14672c43cc173Smrg 14673c27c18e8Smrg# Whether we need a single "-rpath" flag with a separated argument. 14674c27c18e8Smrghardcode_libdir_separator=$lt_hardcode_libdir_separator 1467521e67964Smrg 14676c27c18e8Smrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14677c27c18e8Smrg# DIR into the resulting binary. 14678c27c18e8Smrghardcode_direct=$hardcode_direct 1467921e67964Smrg 14680c27c18e8Smrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14681c27c18e8Smrg# DIR into the resulting binary and the resulting library dependency is 14682c27c18e8Smrg# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14683c27c18e8Smrg# library is relocated. 14684c27c18e8Smrghardcode_direct_absolute=$hardcode_direct_absolute 1468521e67964Smrg 14686c27c18e8Smrg# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14687c27c18e8Smrg# into the resulting binary. 14688c27c18e8Smrghardcode_minus_L=$hardcode_minus_L 1468921e67964Smrg 14690c27c18e8Smrg# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14691c27c18e8Smrg# into the resulting binary. 14692c27c18e8Smrghardcode_shlibpath_var=$hardcode_shlibpath_var 1469321e67964Smrg 14694c27c18e8Smrg# Set to "yes" if building a shared library automatically hardcodes DIR 14695c27c18e8Smrg# into the library and all subsequent libraries and executables linked 14696c27c18e8Smrg# against it. 14697c27c18e8Smrghardcode_automatic=$hardcode_automatic 14698c27c18e8Smrg 14699c27c18e8Smrg# Set to yes if linker adds runtime paths of dependent libraries 14700c27c18e8Smrg# to runtime path list. 14701c27c18e8Smrginherit_rpath=$inherit_rpath 14702c27c18e8Smrg 14703c27c18e8Smrg# Whether libtool must link a program against all its dependency libraries. 14704c27c18e8Smrglink_all_deplibs=$link_all_deplibs 1470521e67964Smrg 14706c27c18e8Smrg# Set to "yes" if exported symbols are required. 14707c27c18e8Smrgalways_export_symbols=$always_export_symbols 14708c43cc173Smrg 14709c27c18e8Smrg# The commands to list exported symbols. 14710c27c18e8Smrgexport_symbols_cmds=$lt_export_symbols_cmds 14711c43cc173Smrg 14712c27c18e8Smrg# Symbols that should not be listed in the preloaded symbols. 14713c27c18e8Smrgexclude_expsyms=$lt_exclude_expsyms 14714c43cc173Smrg 14715c27c18e8Smrg# Symbols that must always be exported. 14716c27c18e8Smrginclude_expsyms=$lt_include_expsyms 14717c27c18e8Smrg 14718c27c18e8Smrg# Commands necessary for linking programs (against libraries) with templates. 14719c27c18e8Smrgprelink_cmds=$lt_prelink_cmds 14720c27c18e8Smrg 14721b789ec8aSmrg# Commands necessary for finishing linking programs. 14722b789ec8aSmrgpostlink_cmds=$lt_postlink_cmds 14723b789ec8aSmrg 14724c27c18e8Smrg# Specify filename containing input files. 14725c27c18e8Smrgfile_list_spec=$lt_file_list_spec 14726c27c18e8Smrg 14727c27c18e8Smrg# How to hardcode a shared library path into an executable. 14728c27c18e8Smrghardcode_action=$hardcode_action 14729c27c18e8Smrg 14730c27c18e8Smrg# ### END LIBTOOL CONFIG 14731c27c18e8Smrg 14732c27c18e8Smrg_LT_EOF 14733c27c18e8Smrg 14734c27c18e8Smrg case $host_os in 14735c27c18e8Smrg aix3*) 14736c27c18e8Smrg cat <<\_LT_EOF >> "$cfgfile" 14737c27c18e8Smrg# AIX sometimes has problems with the GCC collect2 program. For some 14738c27c18e8Smrg# reason, if we set the COLLECT_NAMES environment variable, the problems 14739c27c18e8Smrg# vanish in a puff of smoke. 14740c27c18e8Smrgif test "X${COLLECT_NAMES+set}" != Xset; then 14741c27c18e8Smrg COLLECT_NAMES= 14742c27c18e8Smrg export COLLECT_NAMES 14743c27c18e8Smrgfi 14744c27c18e8Smrg_LT_EOF 14745c43cc173Smrg ;; 14746c43cc173Smrg esac 14747c43cc173Smrg 14748c27c18e8Smrg 14749c27c18e8Smrgltmain="$ac_aux_dir/ltmain.sh" 14750c27c18e8Smrg 14751c27c18e8Smrg 14752c27c18e8Smrg # We use sed instead of cat because bash on DJGPP gets confused if 14753c27c18e8Smrg # if finds mixed CR/LF and LF-only lines. Since sed operates in 14754c27c18e8Smrg # text mode, it properly converts lines to CR/LF. This bash problem 14755c27c18e8Smrg # is reportedly fixed, but why not run on old versions too? 14756b789ec8aSmrg sed '$q' "$ltmain" >> "$cfgfile" \ 14757b789ec8aSmrg || (rm -f "$cfgfile"; exit 1) 14758b789ec8aSmrg 14759b789ec8aSmrg if test x"$xsi_shell" = xyes; then 14760b789ec8aSmrg sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 14761b789ec8aSmrgfunc_dirname ()\ 14762b789ec8aSmrg{\ 14763b789ec8aSmrg\ case ${1} in\ 14764b789ec8aSmrg\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14765b789ec8aSmrg\ * ) func_dirname_result="${3}" ;;\ 14766b789ec8aSmrg\ esac\ 14767b789ec8aSmrg} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 14768b789ec8aSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 14769b789ec8aSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14770b789ec8aSmrgtest 0 -eq $? || _lt_function_replace_fail=: 14771b789ec8aSmrg 14772b789ec8aSmrg 14773b789ec8aSmrg sed -e '/^func_basename ()$/,/^} # func_basename /c\ 14774b789ec8aSmrgfunc_basename ()\ 14775b789ec8aSmrg{\ 14776b789ec8aSmrg\ func_basename_result="${1##*/}"\ 14777b789ec8aSmrg} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14778b789ec8aSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 14779b789ec8aSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14780b789ec8aSmrgtest 0 -eq $? || _lt_function_replace_fail=: 14781b789ec8aSmrg 14782b789ec8aSmrg 14783b789ec8aSmrg sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 14784b789ec8aSmrgfunc_dirname_and_basename ()\ 14785b789ec8aSmrg{\ 14786b789ec8aSmrg\ case ${1} in\ 14787b789ec8aSmrg\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14788b789ec8aSmrg\ * ) func_dirname_result="${3}" ;;\ 14789b789ec8aSmrg\ esac\ 14790b789ec8aSmrg\ func_basename_result="${1##*/}"\ 14791b789ec8aSmrg} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14792b789ec8aSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 14793b789ec8aSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14794b789ec8aSmrgtest 0 -eq $? || _lt_function_replace_fail=: 14795b789ec8aSmrg 14796b789ec8aSmrg 14797b789ec8aSmrg sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 14798b789ec8aSmrgfunc_stripname ()\ 14799b789ec8aSmrg{\ 14800b789ec8aSmrg\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 14801b789ec8aSmrg\ # positional parameters, so assign one to ordinary parameter first.\ 14802b789ec8aSmrg\ func_stripname_result=${3}\ 14803b789ec8aSmrg\ func_stripname_result=${func_stripname_result#"${1}"}\ 14804b789ec8aSmrg\ func_stripname_result=${func_stripname_result%"${2}"}\ 14805b789ec8aSmrg} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 14806b789ec8aSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 14807b789ec8aSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14808b789ec8aSmrgtest 0 -eq $? || _lt_function_replace_fail=: 14809b789ec8aSmrg 14810b789ec8aSmrg 14811b789ec8aSmrg sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 14812b789ec8aSmrgfunc_split_long_opt ()\ 14813b789ec8aSmrg{\ 14814b789ec8aSmrg\ func_split_long_opt_name=${1%%=*}\ 14815b789ec8aSmrg\ func_split_long_opt_arg=${1#*=}\ 14816b789ec8aSmrg} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14817b789ec8aSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 14818b789ec8aSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14819b789ec8aSmrgtest 0 -eq $? || _lt_function_replace_fail=: 14820b789ec8aSmrg 14821b789ec8aSmrg 14822b789ec8aSmrg sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 14823b789ec8aSmrgfunc_split_short_opt ()\ 14824b789ec8aSmrg{\ 14825b789ec8aSmrg\ func_split_short_opt_arg=${1#??}\ 14826b789ec8aSmrg\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 14827b789ec8aSmrg} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14828b789ec8aSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 14829b789ec8aSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14830b789ec8aSmrgtest 0 -eq $? || _lt_function_replace_fail=: 14831b789ec8aSmrg 14832b789ec8aSmrg 14833b789ec8aSmrg sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 14834b789ec8aSmrgfunc_lo2o ()\ 14835b789ec8aSmrg{\ 14836b789ec8aSmrg\ case ${1} in\ 14837b789ec8aSmrg\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 14838b789ec8aSmrg\ *) func_lo2o_result=${1} ;;\ 14839b789ec8aSmrg\ esac\ 14840b789ec8aSmrg} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 14841b789ec8aSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 14842b789ec8aSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14843b789ec8aSmrgtest 0 -eq $? || _lt_function_replace_fail=: 14844b789ec8aSmrg 14845b789ec8aSmrg 14846b789ec8aSmrg sed -e '/^func_xform ()$/,/^} # func_xform /c\ 14847b789ec8aSmrgfunc_xform ()\ 14848b789ec8aSmrg{\ 14849b789ec8aSmrg func_xform_result=${1%.*}.lo\ 14850b789ec8aSmrg} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 14851b789ec8aSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 14852b789ec8aSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14853b789ec8aSmrgtest 0 -eq $? || _lt_function_replace_fail=: 14854b789ec8aSmrg 14855b789ec8aSmrg 14856b789ec8aSmrg sed -e '/^func_arith ()$/,/^} # func_arith /c\ 14857b789ec8aSmrgfunc_arith ()\ 14858b789ec8aSmrg{\ 14859b789ec8aSmrg func_arith_result=$(( $* ))\ 14860b789ec8aSmrg} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 14861b789ec8aSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 14862b789ec8aSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14863b789ec8aSmrgtest 0 -eq $? || _lt_function_replace_fail=: 14864b789ec8aSmrg 14865b789ec8aSmrg 14866b789ec8aSmrg sed -e '/^func_len ()$/,/^} # func_len /c\ 14867b789ec8aSmrgfunc_len ()\ 14868b789ec8aSmrg{\ 14869b789ec8aSmrg func_len_result=${#1}\ 14870b789ec8aSmrg} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 14871b789ec8aSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 14872b789ec8aSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14873b789ec8aSmrgtest 0 -eq $? || _lt_function_replace_fail=: 14874b789ec8aSmrg 14875b789ec8aSmrgfi 14876b789ec8aSmrg 14877b789ec8aSmrgif test x"$lt_shell_append" = xyes; then 14878b789ec8aSmrg sed -e '/^func_append ()$/,/^} # func_append /c\ 14879b789ec8aSmrgfunc_append ()\ 14880b789ec8aSmrg{\ 14881b789ec8aSmrg eval "${1}+=\\${2}"\ 14882b789ec8aSmrg} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 14883b789ec8aSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 14884b789ec8aSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14885b789ec8aSmrgtest 0 -eq $? || _lt_function_replace_fail=: 14886b789ec8aSmrg 14887b789ec8aSmrg 14888b789ec8aSmrg sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 14889b789ec8aSmrgfunc_append_quoted ()\ 14890b789ec8aSmrg{\ 14891b789ec8aSmrg\ func_quote_for_eval "${2}"\ 14892b789ec8aSmrg\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 14893b789ec8aSmrg} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 14894b789ec8aSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 14895b789ec8aSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14896b789ec8aSmrgtest 0 -eq $? || _lt_function_replace_fail=: 14897b789ec8aSmrg 14898b789ec8aSmrg 14899b789ec8aSmrg # Save a `func_append' function call where possible by direct use of '+=' 14900b789ec8aSmrg sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 14901b789ec8aSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 14902b789ec8aSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14903b789ec8aSmrg test 0 -eq $? || _lt_function_replace_fail=: 14904b789ec8aSmrgelse 14905b789ec8aSmrg # Save a `func_append' function call even when '+=' is not available 14906b789ec8aSmrg sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 14907b789ec8aSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 14908b789ec8aSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14909b789ec8aSmrg test 0 -eq $? || _lt_function_replace_fail=: 14910b789ec8aSmrgfi 14911b789ec8aSmrg 14912b789ec8aSmrgif test x"$_lt_function_replace_fail" = x":"; then 14913b789ec8aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 14914b789ec8aSmrg$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 14915b789ec8aSmrgfi 14916b789ec8aSmrg 14917b789ec8aSmrg 14918b789ec8aSmrg mv -f "$cfgfile" "$ofile" || 14919c27c18e8Smrg (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14920c27c18e8Smrg chmod +x "$ofile" 14921c27c18e8Smrg 14922c43cc173Smrg ;; 14923c43cc173Smrg 14924c43cc173Smrg esac 14925c43cc173Smrgdone # for ac_tag 14926c43cc173Smrg 14927c43cc173Smrg 149283e256790Smrgas_fn_exit 0 14929c43cc173Smrg_ACEOF 14930c43cc173Smrgac_clean_files=$ac_clean_files_save 14931c43cc173Smrg 1493221e67964Smrgtest $ac_write_fail = 0 || 1493337eb1ca1Smrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 1493421e67964Smrg 14935c43cc173Smrg 14936c43cc173Smrg# configure is writing to config.log, and then calls config.status. 14937c43cc173Smrg# config.status does its own redirection, appending to config.log. 14938c43cc173Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 14939c43cc173Smrg# by configure, so config.status won't be able to write to it; its 14940c43cc173Smrg# output is simply discarded. So we exec the FD to /dev/null, 14941c43cc173Smrg# effectively closing config.log, so it can be properly (re)opened and 14942c43cc173Smrg# appended to by config.status. When coming back to configure, we 14943c43cc173Smrg# need to make the FD available again. 14944c43cc173Smrgif test "$no_create" != yes; then 14945c43cc173Smrg ac_cs_success=: 14946c43cc173Smrg ac_config_status_args= 14947c43cc173Smrg test "$silent" = yes && 14948c43cc173Smrg ac_config_status_args="$ac_config_status_args --quiet" 14949c43cc173Smrg exec 5>/dev/null 14950c43cc173Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14951c43cc173Smrg exec 5>>config.log 14952c43cc173Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14953c43cc173Smrg # would make configure fail if this is the last instruction. 1495437eb1ca1Smrg $ac_cs_success || as_fn_exit 1 14955c43cc173Smrgfi 1495621e67964Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 149573e256790Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 1495821e67964Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 1495921e67964Smrgfi 14960c43cc173Smrg 14961