1117610Sdes#! /bin/sh 2271947Sdes# From configure.ac Id: configure.ac 816 2014-09-12 07:50:22Z des . 3117610Sdes# Guess values for system-dependent variables and create Makefiles. 4271947Sdes# Generated by GNU Autoconf 2.69 for OpenPAM 20140912. 5117610Sdes# 6174832Sdes# Report bugs to <des@des.no>. 7117610Sdes# 8228692Sdes# 9255376Sdes# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 10228692Sdes# 11228692Sdes# 12117610Sdes# This configure script is free software; the Free Software Foundation 13117610Sdes# gives unlimited permission to copy, distribute and modify it. 14228692Sdes## -------------------- ## 15228692Sdes## M4sh Initialization. ## 16228692Sdes## -------------------- ## 17117610Sdes 18174832Sdes# Be more Bourne compatible 19174832SdesDUALCASE=1; export DUALCASE # for MKS sh 20228692Sdesif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21117610Sdes emulate sh 22117610Sdes NULLCMD=: 23228692Sdes # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24141098Sdes # is contrary to our usage. Disable this feature. 25141098Sdes alias -g '${1+"$@"}'='"$@"' 26174832Sdes setopt NO_GLOB_SUBST 27174832Sdeselse 28228692Sdes case `(set -o) 2>/dev/null` in #( 29228692Sdes *posix*) : 30228692Sdes set -o posix ;; #( 31228692Sdes *) : 32228692Sdes ;; 33174832Sdesesac 34117610Sdesfi 35117610Sdes 36174832Sdes 37228692Sdesas_nl=' 38228692Sdes' 39228692Sdesexport as_nl 40228692Sdes# Printing a long string crashes Solaris 7 /usr/bin/printf. 41228692Sdesas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 42228692Sdesas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 43228692Sdesas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 44228692Sdes# Prefer a ksh shell builtin over an external printf program on Solaris, 45228692Sdes# but without wasting forks for bash or zsh. 46228692Sdesif test -z "$BASH_VERSION$ZSH_VERSION" \ 47228692Sdes && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 48228692Sdes as_echo='print -r --' 49228692Sdes as_echo_n='print -rn --' 50228692Sdeselif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51228692Sdes as_echo='printf %s\n' 52228692Sdes as_echo_n='printf %s' 53228692Sdeselse 54228692Sdes if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 55228692Sdes as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 56228692Sdes as_echo_n='/usr/ucb/echo -n' 57174832Sdes else 58228692Sdes as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 59228692Sdes as_echo_n_body='eval 60228692Sdes arg=$1; 61228692Sdes case $arg in #( 62228692Sdes *"$as_nl"*) 63228692Sdes expr "X$arg" : "X\\(.*\\)$as_nl"; 64228692Sdes arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 65228692Sdes esac; 66228692Sdes expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 67228692Sdes ' 68228692Sdes export as_echo_n_body 69228692Sdes as_echo_n='sh -c $as_echo_n_body as_echo' 70174832Sdes fi 71228692Sdes export as_echo_body 72228692Sdes as_echo='sh -c $as_echo_body as_echo' 73174832Sdesfi 74174832Sdes 75228692Sdes# The user is always right. 76228692Sdesif test "${PATH_SEPARATOR+set}" != set; then 77228692Sdes PATH_SEPARATOR=: 78228692Sdes (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79228692Sdes (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80228692Sdes PATH_SEPARATOR=';' 81228692Sdes } 82117610Sdesfi 83117610Sdes 84117610Sdes 85174832Sdes# IFS 86174832Sdes# We need space, tab and new line, in precisely that order. Quoting is 87174832Sdes# there to prevent editors from complaining about space-tab. 88174832Sdes# (If _AS_PATH_WALK were called with IFS unset, it would disable word 89174832Sdes# splitting by setting IFS to empty value.) 90174832SdesIFS=" "" $as_nl" 91174832Sdes 92174832Sdes# Find who we are. Look in the path if we contain no directory separator. 93228692Sdesas_myself= 94228692Sdescase $0 in #(( 95174832Sdes *[\\/]* ) as_myself=$0 ;; 96174832Sdes *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97174832Sdesfor as_dir in $PATH 98174832Sdesdo 99174832Sdes IFS=$as_save_IFS 100174832Sdes test -z "$as_dir" && as_dir=. 101228692Sdes test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102228692Sdes done 103174832SdesIFS=$as_save_IFS 104174832Sdes 105174832Sdes ;; 106174832Sdesesac 107174832Sdes# We did not find ourselves, most probably we were run as `sh COMMAND' 108174832Sdes# in which case we are not to be found in the path. 109174832Sdesif test "x$as_myself" = x; then 110174832Sdes as_myself=$0 111174832Sdesfi 112174832Sdesif test ! -f "$as_myself"; then 113228692Sdes $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114228692Sdes exit 1 115174832Sdesfi 116174832Sdes 117228692Sdes# Unset variables that we do not need and which cause bugs (e.g. in 118228692Sdes# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119228692Sdes# suppresses any "Segmentation fault" message there. '((' could 120228692Sdes# trigger a bug in pdksh 5.2.14. 121228692Sdesfor as_var in BASH_ENV ENV MAIL MAILPATH 122228692Sdesdo eval test x\${$as_var+set} = xset \ 123228692Sdes && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124174832Sdesdone 125141098SdesPS1='$ ' 126141098SdesPS2='> ' 127141098SdesPS4='+ ' 128117610Sdes 129141098Sdes# NLS nuisances. 130228692SdesLC_ALL=C 131228692Sdesexport LC_ALL 132228692SdesLANGUAGE=C 133228692Sdesexport LANGUAGE 134141098Sdes 135174832Sdes# CDPATH. 136228692Sdes(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137141098Sdes 138255376Sdes# Use a proper internal environment variable to ensure we don't fall 139255376Sdes # into an infinite loop, continuously re-executing ourselves. 140255376Sdes if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 141255376Sdes _as_can_reexec=no; export _as_can_reexec; 142255376Sdes # We cannot yet assume a decent shell, so we have to provide a 143255376Sdes# neutralization value for shells without unset; and this also 144255376Sdes# works around shells that cannot unset nonexistent variables. 145255376Sdes# Preserve -v and -x to the replacement shell. 146255376SdesBASH_ENV=/dev/null 147255376SdesENV=/dev/null 148255376Sdes(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 149255376Sdescase $- in # (((( 150255376Sdes *v*x* | *x*v* ) as_opts=-vx ;; 151255376Sdes *v* ) as_opts=-v ;; 152255376Sdes *x* ) as_opts=-x ;; 153255376Sdes * ) as_opts= ;; 154255376Sdesesac 155255376Sdesexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 156255376Sdes# Admittedly, this is quite paranoid, since all the known shells bail 157255376Sdes# out after a failed `exec'. 158255376Sdes$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 159255376Sdesas_fn_exit 255 160255376Sdes fi 161255376Sdes # We don't want this to propagate to other subprocesses. 162255376Sdes { _as_can_reexec=; unset _as_can_reexec;} 163174832Sdesif test "x$CONFIG_SHELL" = x; then 164228692Sdes as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 165228692Sdes emulate sh 166228692Sdes NULLCMD=: 167228692Sdes # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 168228692Sdes # is contrary to our usage. Disable this feature. 169228692Sdes alias -g '\${1+\"\$@\"}'='\"\$@\"' 170228692Sdes setopt NO_GLOB_SUBST 171174832Sdeselse 172228692Sdes case \`(set -o) 2>/dev/null\` in #( 173228692Sdes *posix*) : 174228692Sdes set -o posix ;; #( 175228692Sdes *) : 176228692Sdes ;; 177228692Sdesesac 178117610Sdesfi 179228692Sdes" 180228692Sdes as_required="as_fn_return () { (exit \$1); } 181228692Sdesas_fn_success () { as_fn_return 0; } 182228692Sdesas_fn_failure () { as_fn_return 1; } 183228692Sdesas_fn_ret_success () { return 0; } 184228692Sdesas_fn_ret_failure () { return 1; } 185117610Sdes 186174832Sdesexitcode=0 187228692Sdesas_fn_success || { exitcode=1; echo as_fn_success failed.; } 188228692Sdesas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 189228692Sdesas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 190228692Sdesas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 191228692Sdesif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 192117610Sdes 193174832Sdeselse 194228692Sdes exitcode=1; echo positional parameters were not saved. 195174832Sdesfi 196255376Sdestest x\$exitcode = x0 || exit 1 197255376Sdestest -x / || exit 1" 198228692Sdes as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 199228692Sdes as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 200228692Sdes eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 201228692Sdes test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 202228692Sdestest \$(( 1 + 1 )) = 2 || exit 1 203174832Sdes 204228692Sdes test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 205228692Sdes ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 206228692Sdes ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207228692Sdes ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 208228692Sdes PATH=/empty FPATH=/empty; export PATH FPATH 209228692Sdes test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 210228692Sdes || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 211228692Sdes if (eval "$as_required") 2>/dev/null; then : 212228692Sdes as_have_required=yes 213174832Sdeselse 214228692Sdes as_have_required=no 215174832Sdesfi 216228692Sdes if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 217174832Sdes 218174832Sdeselse 219228692Sdes as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 220228692Sdesas_found=false 221117610Sdesfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 222117610Sdesdo 223117610Sdes IFS=$as_save_IFS 224117610Sdes test -z "$as_dir" && as_dir=. 225228692Sdes as_found=: 226228692Sdes case $as_dir in #( 227117610Sdes /*) 228174832Sdes for as_base in sh bash ksh sh5; do 229228692Sdes # Try only shells that exist, to save several forks. 230228692Sdes as_shell=$as_dir/$as_base 231228692Sdes if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 232228692Sdes { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 233228692Sdes CONFIG_SHELL=$as_shell as_have_required=yes 234228692Sdes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 235228692Sdes break 2 236228692Sdesfi 237228692Sdesfi 238174832Sdes done;; 239174832Sdes esac 240228692Sdes as_found=false 241174832Sdesdone 242228692Sdes$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 243228692Sdes { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 244228692Sdes CONFIG_SHELL=$SHELL as_have_required=yes 245228692Sdesfi; } 246174832SdesIFS=$as_save_IFS 247174832Sdes 248174832Sdes 249228692Sdes if test "x$CONFIG_SHELL" != x; then : 250255376Sdes export CONFIG_SHELL 251255376Sdes # We cannot yet assume a decent shell, so we have to provide a 252255376Sdes# neutralization value for shells without unset; and this also 253255376Sdes# works around shells that cannot unset nonexistent variables. 254255376Sdes# Preserve -v and -x to the replacement shell. 255255376SdesBASH_ENV=/dev/null 256255376SdesENV=/dev/null 257255376Sdes(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 258255376Sdescase $- in # (((( 259255376Sdes *v*x* | *x*v* ) as_opts=-vx ;; 260255376Sdes *v* ) as_opts=-v ;; 261255376Sdes *x* ) as_opts=-x ;; 262255376Sdes * ) as_opts= ;; 263255376Sdesesac 264255376Sdesexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 265255376Sdes# Admittedly, this is quite paranoid, since all the known shells bail 266255376Sdes# out after a failed `exec'. 267255376Sdes$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 268255376Sdesexit 255 269174832Sdesfi 270174832Sdes 271228692Sdes if test x$as_have_required = xno; then : 272228692Sdes $as_echo "$0: This script requires a shell more modern than all" 273228692Sdes $as_echo "$0: the shells that I found on your system." 274228692Sdes if test x${ZSH_VERSION+set} = xset ; then 275228692Sdes $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276228692Sdes $as_echo "$0: be upgraded to zsh 4.3.4 or later." 277228692Sdes else 278228692Sdes $as_echo "$0: Please tell bug-autoconf@gnu.org and des@des.no about 279228692Sdes$0: your system, including any error possibly output before 280228692Sdes$0: this message. Then install a modern shell, or manually 281228692Sdes$0: run the script under such a shell if you do have one." 282228692Sdes fi 283228692Sdes exit 1 284174832Sdesfi 285174832Sdesfi 286174832Sdesfi 287228692SdesSHELL=${CONFIG_SHELL-/bin/sh} 288228692Sdesexport SHELL 289228692Sdes# Unset more variables known to interfere with behavior of common tools. 290228692SdesCLICOLOR_FORCE= GREP_OPTIONS= 291228692Sdesunset CLICOLOR_FORCE GREP_OPTIONS 292174832Sdes 293228692Sdes## --------------------- ## 294228692Sdes## M4sh Shell Functions. ## 295228692Sdes## --------------------- ## 296228692Sdes# as_fn_unset VAR 297228692Sdes# --------------- 298228692Sdes# Portably unset VAR. 299228692Sdesas_fn_unset () 300228692Sdes{ 301228692Sdes { eval $1=; unset $1;} 302228692Sdes} 303228692Sdesas_unset=as_fn_unset 304174832Sdes 305228692Sdes# as_fn_set_status STATUS 306228692Sdes# ----------------------- 307228692Sdes# Set $? to STATUS, without forking. 308228692Sdesas_fn_set_status () 309228692Sdes{ 310228692Sdes return $1 311228692Sdes} # as_fn_set_status 312174832Sdes 313228692Sdes# as_fn_exit STATUS 314228692Sdes# ----------------- 315228692Sdes# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316228692Sdesas_fn_exit () 317228692Sdes{ 318228692Sdes set +e 319228692Sdes as_fn_set_status $1 320228692Sdes exit $1 321228692Sdes} # as_fn_exit 322174832Sdes 323228692Sdes# as_fn_mkdir_p 324228692Sdes# ------------- 325228692Sdes# Create "$as_dir" as a directory, including parents if necessary. 326228692Sdesas_fn_mkdir_p () 327228692Sdes{ 328174832Sdes 329228692Sdes case $as_dir in #( 330228692Sdes -*) as_dir=./$as_dir;; 331228692Sdes esac 332228692Sdes test -d "$as_dir" || eval $as_mkdir_p || { 333228692Sdes as_dirs= 334228692Sdes while :; do 335228692Sdes case $as_dir in #( 336228692Sdes *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337228692Sdes *) as_qdir=$as_dir;; 338228692Sdes esac 339228692Sdes as_dirs="'$as_qdir' $as_dirs" 340228692Sdes as_dir=`$as_dirname -- "$as_dir" || 341228692Sdes$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342228692Sdes X"$as_dir" : 'X\(//\)[^/]' \| \ 343228692Sdes X"$as_dir" : 'X\(//\)$' \| \ 344228692Sdes X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345228692Sdes$as_echo X"$as_dir" | 346228692Sdes sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347228692Sdes s//\1/ 348228692Sdes q 349228692Sdes } 350228692Sdes /^X\(\/\/\)[^/].*/{ 351228692Sdes s//\1/ 352228692Sdes q 353228692Sdes } 354228692Sdes /^X\(\/\/\)$/{ 355228692Sdes s//\1/ 356228692Sdes q 357228692Sdes } 358228692Sdes /^X\(\/\).*/{ 359228692Sdes s//\1/ 360228692Sdes q 361228692Sdes } 362228692Sdes s/.*/./; q'` 363228692Sdes test -d "$as_dir" && break 364228692Sdes done 365228692Sdes test -z "$as_dirs" || eval "mkdir $as_dirs" 366228692Sdes } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367117610Sdes 368174832Sdes 369228692Sdes} # as_fn_mkdir_p 370255376Sdes 371255376Sdes# as_fn_executable_p FILE 372255376Sdes# ----------------------- 373255376Sdes# Test if FILE is an executable regular file. 374255376Sdesas_fn_executable_p () 375255376Sdes{ 376255376Sdes test -f "$1" && test -x "$1" 377255376Sdes} # as_fn_executable_p 378228692Sdes# as_fn_append VAR VALUE 379228692Sdes# ---------------------- 380228692Sdes# Append the text in VALUE to the end of the definition contained in VAR. Take 381228692Sdes# advantage of any shell optimizations that allow amortized linear growth over 382228692Sdes# repeated appends, instead of the typical quadratic growth present in naive 383228692Sdes# implementations. 384228692Sdesif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385228692Sdes eval 'as_fn_append () 386228692Sdes { 387228692Sdes eval $1+=\$2 388228692Sdes }' 389228692Sdeselse 390228692Sdes as_fn_append () 391228692Sdes { 392228692Sdes eval $1=\$$1\$2 393228692Sdes } 394228692Sdesfi # as_fn_append 395174832Sdes 396228692Sdes# as_fn_arith ARG... 397228692Sdes# ------------------ 398228692Sdes# Perform arithmetic evaluation on the ARGs, and store the result in the 399228692Sdes# global $as_val. Take advantage of shells that can avoid forks. The arguments 400228692Sdes# must be portable across $(()) and expr. 401228692Sdesif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402228692Sdes eval 'as_fn_arith () 403228692Sdes { 404228692Sdes as_val=$(( $* )) 405228692Sdes }' 406228692Sdeselse 407228692Sdes as_fn_arith () 408228692Sdes { 409228692Sdes as_val=`expr "$@" || test $? -eq 1` 410228692Sdes } 411228692Sdesfi # as_fn_arith 412174832Sdes 413174832Sdes 414228692Sdes# as_fn_error STATUS ERROR [LINENO LOG_FD] 415228692Sdes# ---------------------------------------- 416228692Sdes# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417228692Sdes# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418228692Sdes# script with STATUS, using 1 if that was 0. 419228692Sdesas_fn_error () 420228692Sdes{ 421228692Sdes as_status=$1; test $as_status -eq 0 && as_status=1 422228692Sdes if test "$4"; then 423228692Sdes as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425228692Sdes fi 426228692Sdes $as_echo "$as_me: error: $2" >&2 427228692Sdes as_fn_exit $as_status 428228692Sdes} # as_fn_error 429174832Sdes 430228692Sdesif expr a : '\(a\)' >/dev/null 2>&1 && 431228692Sdes test "X`expr 00001 : '.*\(...\)'`" = X001; then 432228692Sdes as_expr=expr 433174832Sdeselse 434228692Sdes as_expr=false 435174832Sdesfi 436174832Sdes 437228692Sdesif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438228692Sdes as_basename=basename 439174832Sdeselse 440228692Sdes as_basename=false 441174832Sdesfi 442174832Sdes 443228692Sdesif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444228692Sdes as_dirname=dirname 445174832Sdeselse 446228692Sdes as_dirname=false 447174832Sdesfi 448174832Sdes 449228692Sdesas_me=`$as_basename -- "$0" || 450228692Sdes$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451228692Sdes X"$0" : 'X\(//\)$' \| \ 452228692Sdes X"$0" : 'X\(/\)' \| . 2>/dev/null || 453228692Sdes$as_echo X/"$0" | 454228692Sdes sed '/^.*\/\([^/][^/]*\)\/*$/{ 455228692Sdes s//\1/ 456228692Sdes q 457228692Sdes } 458228692Sdes /^X\/\(\/\/\)$/{ 459228692Sdes s//\1/ 460228692Sdes q 461228692Sdes } 462228692Sdes /^X\/\(\/\).*/{ 463228692Sdes s//\1/ 464228692Sdes q 465228692Sdes } 466228692Sdes s/.*/./; q'` 467174832Sdes 468228692Sdes# Avoid depending upon Character Ranges. 469228692Sdesas_cr_letters='abcdefghijklmnopqrstuvwxyz' 470228692Sdesas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471228692Sdesas_cr_Letters=$as_cr_letters$as_cr_LETTERS 472228692Sdesas_cr_digits='0123456789' 473228692Sdesas_cr_alnum=$as_cr_Letters$as_cr_digits 474174832Sdes 475174832Sdes 476228692Sdes as_lineno_1=$LINENO as_lineno_1a=$LINENO 477228692Sdes as_lineno_2=$LINENO as_lineno_2a=$LINENO 478228692Sdes eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479228692Sdes test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480228692Sdes # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481174832Sdes sed -n ' 482174832Sdes p 483174832Sdes /[$]LINENO/= 484174832Sdes ' <$as_myself | 485117610Sdes sed ' 486174832Sdes s/[$]LINENO.*/&-/ 487174832Sdes t lineno 488174832Sdes b 489174832Sdes :lineno 490117610Sdes N 491174832Sdes :loop 492174832Sdes s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493117610Sdes t loop 494174832Sdes s/-\n.*// 495117610Sdes ' >$as_me.lineno && 496174832Sdes chmod +x "$as_me.lineno" || 497228692Sdes { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498117610Sdes 499255376Sdes # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500255376Sdes # already done that, so ensure we don't try to do so again and fall 501255376Sdes # in an infinite loop. This has already happened in practice. 502255376Sdes _as_can_reexec=no; export _as_can_reexec 503117610Sdes # Don't try to exec as it changes $[0], causing all sort of problems 504117610Sdes # (the dirname of $[0] is not the place where we might find the 505174832Sdes # original and so on. Autoconf is especially sensitive to this). 506174832Sdes . "./$as_me.lineno" 507117610Sdes # Exit status is that of the last command. 508117610Sdes exit 509117610Sdes} 510117610Sdes 511174832SdesECHO_C= ECHO_N= ECHO_T= 512228692Sdescase `echo -n x` in #((((( 513174832Sdes-n*) 514228692Sdes case `echo 'xy\c'` in 515174832Sdes *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516228692Sdes xy) ECHO_C='\c';; 517228692Sdes *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518228692Sdes ECHO_T=' ';; 519174832Sdes esac;; 520174832Sdes*) 521174832Sdes ECHO_N='-n';; 522117610Sdesesac 523117610Sdes 524117610Sdesrm -f conf$$ conf$$.exe conf$$.file 525174832Sdesif test -d conf$$.dir; then 526174832Sdes rm -f conf$$.dir/conf$$.file 527174832Sdeselse 528174832Sdes rm -f conf$$.dir 529228692Sdes mkdir conf$$.dir 2>/dev/null 530174832Sdesfi 531228692Sdesif (echo >conf$$.file) 2>/dev/null; then 532228692Sdes if ln -s conf$$.file conf$$ 2>/dev/null; then 533228692Sdes as_ln_s='ln -s' 534228692Sdes # ... but there are two gotchas: 535228692Sdes # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536228692Sdes # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537255376Sdes # In both cases, we have to default to `cp -pR'. 538228692Sdes ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539255376Sdes as_ln_s='cp -pR' 540228692Sdes elif ln conf$$.file conf$$ 2>/dev/null; then 541228692Sdes as_ln_s=ln 542228692Sdes else 543255376Sdes as_ln_s='cp -pR' 544228692Sdes fi 545117610Sdeselse 546255376Sdes as_ln_s='cp -pR' 547117610Sdesfi 548174832Sdesrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549174832Sdesrmdir conf$$.dir 2>/dev/null 550117610Sdes 551141098Sdesif mkdir -p . 2>/dev/null; then 552228692Sdes as_mkdir_p='mkdir -p "$as_dir"' 553141098Sdeselse 554141098Sdes test -d ./-p && rmdir ./-p 555141098Sdes as_mkdir_p=false 556141098Sdesfi 557141098Sdes 558255376Sdesas_test_x='test -x' 559255376Sdesas_executable_p=as_fn_executable_p 560117610Sdes 561117610Sdes# Sed expression to map a string onto a valid CPP name. 562141098Sdesas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563117610Sdes 564117610Sdes# Sed expression to map a string onto a valid variable name. 565141098Sdesas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566117610Sdes 567141098SdesSHELL=${CONFIG_SHELL-/bin/sh} 568141098Sdes 569141098Sdes 570228692Sdestest -n "$DJDIR" || exec 7<&0 </dev/null 571228692Sdesexec 6>&1 572141098Sdes 573117610Sdes# Name of the host. 574228692Sdes# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575117610Sdes# so uname gets run too. 576117610Sdesac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577117610Sdes 578117610Sdes# 579117610Sdes# Initializations. 580117610Sdes# 581117610Sdesac_default_prefix=/usr/local 582174832Sdesac_clean_files= 583141098Sdesac_config_libobj_dir=. 584174832SdesLIBOBJS= 585117610Sdescross_compiling=no 586117610Sdessubdirs= 587117610SdesMFLAGS= 588117610SdesMAKEFLAGS= 589117610Sdes 590117610Sdes# Identity of this package. 591117610SdesPACKAGE_NAME='OpenPAM' 592117610SdesPACKAGE_TARNAME='openpam' 593271947SdesPACKAGE_VERSION='20140912' 594271947SdesPACKAGE_STRING='OpenPAM 20140912' 595174832SdesPACKAGE_BUGREPORT='des@des.no' 596255376SdesPACKAGE_URL='http://www.openpam.org/' 597117610Sdes 598255376Sdesac_unique_file="lib/libpam/pam_start.c" 599117610Sdes# Factoring default headers for most tests. 600117610Sdesac_includes_default="\ 601117610Sdes#include <stdio.h> 602174832Sdes#ifdef HAVE_SYS_TYPES_H 603117610Sdes# include <sys/types.h> 604117610Sdes#endif 605174832Sdes#ifdef HAVE_SYS_STAT_H 606117610Sdes# include <sys/stat.h> 607117610Sdes#endif 608174832Sdes#ifdef STDC_HEADERS 609117610Sdes# include <stdlib.h> 610117610Sdes# include <stddef.h> 611117610Sdes#else 612174832Sdes# ifdef HAVE_STDLIB_H 613117610Sdes# include <stdlib.h> 614117610Sdes# endif 615117610Sdes#endif 616174832Sdes#ifdef HAVE_STRING_H 617174832Sdes# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618117610Sdes# include <memory.h> 619117610Sdes# endif 620117610Sdes# include <string.h> 621117610Sdes#endif 622174832Sdes#ifdef HAVE_STRINGS_H 623117610Sdes# include <strings.h> 624117610Sdes#endif 625174832Sdes#ifdef HAVE_INTTYPES_H 626117610Sdes# include <inttypes.h> 627117610Sdes#endif 628174832Sdes#ifdef HAVE_STDINT_H 629174832Sdes# include <stdint.h> 630174832Sdes#endif 631174832Sdes#ifdef HAVE_UNISTD_H 632117610Sdes# include <unistd.h> 633117610Sdes#endif" 634117610Sdes 635228692Sdesac_subst_vars='am__EXEEXT_FALSE 636228692Sdesam__EXEEXT_TRUE 637228692SdesLTLIBOBJS 638228692SdesLIBOBJS 639255376SdesCRYPTO_LIBS 640228692SdesCRYPT_LIBS 641228692SdesDL_LIBS 642228692SdesWITH_SU_FALSE 643228692SdesWITH_SU_TRUE 644228692SdesWITH_PAMTEST_FALSE 645228692SdesWITH_PAMTEST_TRUE 646228692SdesWITH_PAM_UNIX_FALSE 647228692SdesWITH_PAM_UNIX_TRUE 648228692SdesWITH_DOC_FALSE 649228692SdesWITH_DOC_TRUE 650255376SdesCUSTOM_MODULES_DIR_FALSE 651255376SdesCUSTOM_MODULES_DIR_TRUE 652228692SdesOPENPAM_MODULES_DIR 653228692SdesLIB_MAJ 654228692SdesOTOOL64 655228692SdesOTOOL 656228692SdesLIPO 657228692SdesNMEDIT 658228692SdesDSYMUTIL 659228692SdesMANIFEST_TOOL 660228692SdesRANLIB 661228692Sdesac_ct_AR 662228692SdesAR 663228692SdesDLLTOOL 664228692SdesOBJDUMP 665228692SdesLN_S 666228692SdesNM 667228692Sdesac_ct_DUMPBIN 668228692SdesDUMPBIN 669228692SdesLD 670228692SdesFGREP 671228692SdesSED 672228692Sdeshost_os 673228692Sdeshost_vendor 674228692Sdeshost_cpu 675228692Sdeshost 676228692Sdesbuild_os 677228692Sdesbuild_vendor 678228692Sdesbuild_cpu 679174832Sdesbuild 680228692SdesLIBTOOL 681228692SdesEGREP 682228692SdesGREP 683228692SdesCPP 684228692Sdesam__fastdepCC_FALSE 685228692Sdesam__fastdepCC_TRUE 686228692SdesCCDEPMODE 687255376Sdesam__nodep 688228692SdesAMDEPBACKSLASH 689228692SdesAMDEP_FALSE 690228692SdesAMDEP_TRUE 691228692Sdesam__quote 692228692Sdesam__include 693228692SdesDEPDIR 694228692SdesOBJEXT 695228692SdesEXEEXT 696228692Sdesac_ct_CC 697228692SdesCPPFLAGS 698228692SdesLDFLAGS 699228692SdesCFLAGS 700174832SdesCC 701255376SdesAM_BACKSLASH 702255376SdesAM_DEFAULT_VERBOSITY 703255376SdesAM_DEFAULT_V 704255376SdesAM_V 705228692Sdesam__untar 706228692Sdesam__tar 707228692SdesAMTAR 708228692Sdesam__leading_dot 709228692SdesSET_MAKE 710228692SdesAWK 711228692Sdesmkdir_p 712228692SdesMKDIR_P 713228692SdesINSTALL_STRIP_PROGRAM 714174832SdesSTRIP 715228692Sdesinstall_sh 716228692SdesMAKEINFO 717228692SdesAUTOHEADER 718228692SdesAUTOMAKE 719228692SdesAUTOCONF 720228692SdesACLOCAL 721228692SdesVERSION 722228692SdesPACKAGE 723228692SdesCYGPATH_W 724228692Sdesam__isrc 725228692SdesINSTALL_DATA 726228692SdesINSTALL_SCRIPT 727174832SdesINSTALL_PROGRAM 728228692Sdestarget_alias 729228692Sdeshost_alias 730228692Sdesbuild_alias 731228692SdesLIBS 732228692SdesECHO_T 733228692SdesECHO_N 734228692SdesECHO_C 735228692SdesDEFS 736228692Sdesmandir 737228692Sdeslocaledir 738228692Sdeslibdir 739228692Sdespsdir 740228692Sdespdfdir 741228692Sdesdvidir 742228692Sdeshtmldir 743228692Sdesinfodir 744228692Sdesdocdir 745228692Sdesoldincludedir 746228692Sdesincludedir 747228692Sdeslocalstatedir 748228692Sdessharedstatedir 749228692Sdessysconfdir 750228692Sdesdatadir 751228692Sdesdatarootdir 752228692Sdeslibexecdir 753228692Sdessbindir 754228692Sdesbindir 755228692Sdesprogram_transform_name 756228692Sdesprefix 757228692Sdesexec_prefix 758228692SdesPACKAGE_URL 759228692SdesPACKAGE_BUGREPORT 760228692SdesPACKAGE_STRING 761228692SdesPACKAGE_VERSION 762228692SdesPACKAGE_TARNAME 763228692SdesPACKAGE_NAME 764228692SdesPATH_SEPARATOR 765228692SdesSHELL' 766141098Sdesac_subst_files='' 767228692Sdesac_user_opts=' 768228692Sdesenable_option_checking 769255376Sdesenable_silent_rules 770228692Sdesenable_dependency_tracking 771228692Sdesenable_static 772228692Sdesenable_shared 773228692Sdeswith_pic 774228692Sdesenable_fast_install 775228692Sdeswith_gnu_ld 776228692Sdeswith_sysroot 777228692Sdesenable_libtool_lock 778228692Sdesenable_debug 779228692Sdesenable_unversioned_modules 780228692Sdeswith_modules_dir 781228692Sdeswith_doc 782228692Sdeswith_pam_unix 783228692Sdeswith_pamtest 784228692Sdeswith_su 785228692Sdesenable_developer_warnings 786228692Sdesenable_debugging_symbols 787228692Sdesenable_werror 788228692Sdes' 789174832Sdes ac_precious_vars='build_alias 790174832Sdeshost_alias 791174832Sdestarget_alias 792174832SdesCC 793174832SdesCFLAGS 794174832SdesLDFLAGS 795174832SdesLIBS 796174832SdesCPPFLAGS 797228692SdesCPP' 798117610Sdes 799174832Sdes 800117610Sdes# Initialize some variables set by options. 801117610Sdesac_init_help= 802117610Sdesac_init_version=false 803228692Sdesac_unrecognized_opts= 804228692Sdesac_unrecognized_sep= 805117610Sdes# The variables have the same names as the options, with 806117610Sdes# dashes changed to underlines. 807117610Sdescache_file=/dev/null 808117610Sdesexec_prefix=NONE 809117610Sdesno_create= 810117610Sdesno_recursion= 811117610Sdesprefix=NONE 812117610Sdesprogram_prefix=NONE 813117610Sdesprogram_suffix=NONE 814117610Sdesprogram_transform_name=s,x,x, 815117610Sdessilent= 816117610Sdessite= 817117610Sdessrcdir= 818117610Sdesverbose= 819117610Sdesx_includes=NONE 820117610Sdesx_libraries=NONE 821117610Sdes 822117610Sdes# Installation directory options. 823117610Sdes# These are left unexpanded so users can "make install exec_prefix=/foo" 824117610Sdes# and all the variables that are supposed to be based on exec_prefix 825117610Sdes# by default will actually change. 826117610Sdes# Use braces instead of parens because sh, perl, etc. also accept them. 827174832Sdes# (The list follows the same order as the GNU Coding Standards.) 828117610Sdesbindir='${exec_prefix}/bin' 829117610Sdessbindir='${exec_prefix}/sbin' 830117610Sdeslibexecdir='${exec_prefix}/libexec' 831174832Sdesdatarootdir='${prefix}/share' 832174832Sdesdatadir='${datarootdir}' 833117610Sdessysconfdir='${prefix}/etc' 834117610Sdessharedstatedir='${prefix}/com' 835117610Sdeslocalstatedir='${prefix}/var' 836117610Sdesincludedir='${prefix}/include' 837117610Sdesoldincludedir='/usr/include' 838174832Sdesdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 839174832Sdesinfodir='${datarootdir}/info' 840174832Sdeshtmldir='${docdir}' 841174832Sdesdvidir='${docdir}' 842174832Sdespdfdir='${docdir}' 843174832Sdespsdir='${docdir}' 844174832Sdeslibdir='${exec_prefix}/lib' 845174832Sdeslocaledir='${datarootdir}/locale' 846174832Sdesmandir='${datarootdir}/man' 847117610Sdes 848117610Sdesac_prev= 849174832Sdesac_dashdash= 850117610Sdesfor ac_option 851117610Sdesdo 852117610Sdes # If the previous option needs an argument, assign it. 853117610Sdes if test -n "$ac_prev"; then 854174832Sdes eval $ac_prev=\$ac_option 855117610Sdes ac_prev= 856117610Sdes continue 857117610Sdes fi 858117610Sdes 859174832Sdes case $ac_option in 860228692Sdes *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 861228692Sdes *=) ac_optarg= ;; 862228692Sdes *) ac_optarg=yes ;; 863174832Sdes esac 864117610Sdes 865117610Sdes # Accept the important Cygnus configure options, so we can diagnose typos. 866117610Sdes 867174832Sdes case $ac_dashdash$ac_option in 868174832Sdes --) 869174832Sdes ac_dashdash=yes ;; 870117610Sdes 871117610Sdes -bindir | --bindir | --bindi | --bind | --bin | --bi) 872117610Sdes ac_prev=bindir ;; 873117610Sdes -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 874117610Sdes bindir=$ac_optarg ;; 875117610Sdes 876117610Sdes -build | --build | --buil | --bui | --bu) 877117610Sdes ac_prev=build_alias ;; 878117610Sdes -build=* | --build=* | --buil=* | --bui=* | --bu=*) 879117610Sdes build_alias=$ac_optarg ;; 880117610Sdes 881117610Sdes -cache-file | --cache-file | --cache-fil | --cache-fi \ 882117610Sdes | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 883117610Sdes ac_prev=cache_file ;; 884117610Sdes -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 885117610Sdes | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 886117610Sdes cache_file=$ac_optarg ;; 887117610Sdes 888117610Sdes --config-cache | -C) 889117610Sdes cache_file=config.cache ;; 890117610Sdes 891174832Sdes -datadir | --datadir | --datadi | --datad) 892117610Sdes ac_prev=datadir ;; 893174832Sdes -datadir=* | --datadir=* | --datadi=* | --datad=*) 894117610Sdes datadir=$ac_optarg ;; 895117610Sdes 896174832Sdes -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 897174832Sdes | --dataroo | --dataro | --datar) 898174832Sdes ac_prev=datarootdir ;; 899174832Sdes -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 900174832Sdes | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 901174832Sdes datarootdir=$ac_optarg ;; 902174832Sdes 903117610Sdes -disable-* | --disable-*) 904228692Sdes ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 905117610Sdes # Reject names that are not valid shell variable names. 906228692Sdes expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 907228692Sdes as_fn_error $? "invalid feature name: $ac_useropt" 908228692Sdes ac_useropt_orig=$ac_useropt 909228692Sdes ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 910228692Sdes case $ac_user_opts in 911228692Sdes *" 912228692Sdes"enable_$ac_useropt" 913228692Sdes"*) ;; 914228692Sdes *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 915228692Sdes ac_unrecognized_sep=', ';; 916228692Sdes esac 917228692Sdes eval enable_$ac_useropt=no ;; 918117610Sdes 919174832Sdes -docdir | --docdir | --docdi | --doc | --do) 920174832Sdes ac_prev=docdir ;; 921174832Sdes -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 922174832Sdes docdir=$ac_optarg ;; 923174832Sdes 924174832Sdes -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 925174832Sdes ac_prev=dvidir ;; 926174832Sdes -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 927174832Sdes dvidir=$ac_optarg ;; 928174832Sdes 929117610Sdes -enable-* | --enable-*) 930228692Sdes ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 931117610Sdes # Reject names that are not valid shell variable names. 932228692Sdes expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 933228692Sdes as_fn_error $? "invalid feature name: $ac_useropt" 934228692Sdes ac_useropt_orig=$ac_useropt 935228692Sdes ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 936228692Sdes case $ac_user_opts in 937228692Sdes *" 938228692Sdes"enable_$ac_useropt" 939228692Sdes"*) ;; 940228692Sdes *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 941228692Sdes ac_unrecognized_sep=', ';; 942228692Sdes esac 943228692Sdes eval enable_$ac_useropt=\$ac_optarg ;; 944117610Sdes 945117610Sdes -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 946117610Sdes | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 947117610Sdes | --exec | --exe | --ex) 948117610Sdes ac_prev=exec_prefix ;; 949117610Sdes -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 950117610Sdes | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 951117610Sdes | --exec=* | --exe=* | --ex=*) 952117610Sdes exec_prefix=$ac_optarg ;; 953117610Sdes 954117610Sdes -gas | --gas | --ga | --g) 955117610Sdes # Obsolete; use --with-gas. 956117610Sdes with_gas=yes ;; 957117610Sdes 958117610Sdes -help | --help | --hel | --he | -h) 959117610Sdes ac_init_help=long ;; 960117610Sdes -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 961117610Sdes ac_init_help=recursive ;; 962117610Sdes -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 963117610Sdes ac_init_help=short ;; 964117610Sdes 965117610Sdes -host | --host | --hos | --ho) 966117610Sdes ac_prev=host_alias ;; 967117610Sdes -host=* | --host=* | --hos=* | --ho=*) 968117610Sdes host_alias=$ac_optarg ;; 969117610Sdes 970174832Sdes -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 971174832Sdes ac_prev=htmldir ;; 972174832Sdes -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 973174832Sdes | --ht=*) 974174832Sdes htmldir=$ac_optarg ;; 975174832Sdes 976117610Sdes -includedir | --includedir | --includedi | --included | --include \ 977117610Sdes | --includ | --inclu | --incl | --inc) 978117610Sdes ac_prev=includedir ;; 979117610Sdes -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 980117610Sdes | --includ=* | --inclu=* | --incl=* | --inc=*) 981117610Sdes includedir=$ac_optarg ;; 982117610Sdes 983117610Sdes -infodir | --infodir | --infodi | --infod | --info | --inf) 984117610Sdes ac_prev=infodir ;; 985117610Sdes -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 986117610Sdes infodir=$ac_optarg ;; 987117610Sdes 988117610Sdes -libdir | --libdir | --libdi | --libd) 989117610Sdes ac_prev=libdir ;; 990117610Sdes -libdir=* | --libdir=* | --libdi=* | --libd=*) 991117610Sdes libdir=$ac_optarg ;; 992117610Sdes 993117610Sdes -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 994117610Sdes | --libexe | --libex | --libe) 995117610Sdes ac_prev=libexecdir ;; 996117610Sdes -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 997117610Sdes | --libexe=* | --libex=* | --libe=*) 998117610Sdes libexecdir=$ac_optarg ;; 999117610Sdes 1000174832Sdes -localedir | --localedir | --localedi | --localed | --locale) 1001174832Sdes ac_prev=localedir ;; 1002174832Sdes -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1003174832Sdes localedir=$ac_optarg ;; 1004174832Sdes 1005117610Sdes -localstatedir | --localstatedir | --localstatedi | --localstated \ 1006174832Sdes | --localstate | --localstat | --localsta | --localst | --locals) 1007117610Sdes ac_prev=localstatedir ;; 1008117610Sdes -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1009174832Sdes | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1010117610Sdes localstatedir=$ac_optarg ;; 1011117610Sdes 1012117610Sdes -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1013117610Sdes ac_prev=mandir ;; 1014117610Sdes -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1015117610Sdes mandir=$ac_optarg ;; 1016117610Sdes 1017117610Sdes -nfp | --nfp | --nf) 1018117610Sdes # Obsolete; use --without-fp. 1019117610Sdes with_fp=no ;; 1020117610Sdes 1021117610Sdes -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1022117610Sdes | --no-cr | --no-c | -n) 1023117610Sdes no_create=yes ;; 1024117610Sdes 1025117610Sdes -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1026117610Sdes | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1027117610Sdes no_recursion=yes ;; 1028117610Sdes 1029117610Sdes -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1030117610Sdes | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1031117610Sdes | --oldin | --oldi | --old | --ol | --o) 1032117610Sdes ac_prev=oldincludedir ;; 1033117610Sdes -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1034117610Sdes | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1035117610Sdes | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1036117610Sdes oldincludedir=$ac_optarg ;; 1037117610Sdes 1038117610Sdes -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1039117610Sdes ac_prev=prefix ;; 1040117610Sdes -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1041117610Sdes prefix=$ac_optarg ;; 1042117610Sdes 1043117610Sdes -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1044117610Sdes | --program-pre | --program-pr | --program-p) 1045117610Sdes ac_prev=program_prefix ;; 1046117610Sdes -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1047117610Sdes | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1048117610Sdes program_prefix=$ac_optarg ;; 1049117610Sdes 1050117610Sdes -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1051117610Sdes | --program-suf | --program-su | --program-s) 1052117610Sdes ac_prev=program_suffix ;; 1053117610Sdes -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1054117610Sdes | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1055117610Sdes program_suffix=$ac_optarg ;; 1056117610Sdes 1057117610Sdes -program-transform-name | --program-transform-name \ 1058117610Sdes | --program-transform-nam | --program-transform-na \ 1059117610Sdes | --program-transform-n | --program-transform- \ 1060117610Sdes | --program-transform | --program-transfor \ 1061117610Sdes | --program-transfo | --program-transf \ 1062117610Sdes | --program-trans | --program-tran \ 1063117610Sdes | --progr-tra | --program-tr | --program-t) 1064117610Sdes ac_prev=program_transform_name ;; 1065117610Sdes -program-transform-name=* | --program-transform-name=* \ 1066117610Sdes | --program-transform-nam=* | --program-transform-na=* \ 1067117610Sdes | --program-transform-n=* | --program-transform-=* \ 1068117610Sdes | --program-transform=* | --program-transfor=* \ 1069117610Sdes | --program-transfo=* | --program-transf=* \ 1070117610Sdes | --program-trans=* | --program-tran=* \ 1071117610Sdes | --progr-tra=* | --program-tr=* | --program-t=*) 1072117610Sdes program_transform_name=$ac_optarg ;; 1073117610Sdes 1074174832Sdes -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1075174832Sdes ac_prev=pdfdir ;; 1076174832Sdes -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1077174832Sdes pdfdir=$ac_optarg ;; 1078174832Sdes 1079174832Sdes -psdir | --psdir | --psdi | --psd | --ps) 1080174832Sdes ac_prev=psdir ;; 1081174832Sdes -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1082174832Sdes psdir=$ac_optarg ;; 1083174832Sdes 1084117610Sdes -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1085117610Sdes | -silent | --silent | --silen | --sile | --sil) 1086117610Sdes silent=yes ;; 1087117610Sdes 1088117610Sdes -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1089117610Sdes ac_prev=sbindir ;; 1090117610Sdes -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1091117610Sdes | --sbi=* | --sb=*) 1092117610Sdes sbindir=$ac_optarg ;; 1093117610Sdes 1094117610Sdes -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1095117610Sdes | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1096117610Sdes | --sharedst | --shareds | --shared | --share | --shar \ 1097117610Sdes | --sha | --sh) 1098117610Sdes ac_prev=sharedstatedir ;; 1099117610Sdes -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1100117610Sdes | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1101117610Sdes | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1102117610Sdes | --sha=* | --sh=*) 1103117610Sdes sharedstatedir=$ac_optarg ;; 1104117610Sdes 1105117610Sdes -site | --site | --sit) 1106117610Sdes ac_prev=site ;; 1107117610Sdes -site=* | --site=* | --sit=*) 1108117610Sdes site=$ac_optarg ;; 1109117610Sdes 1110117610Sdes -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1111117610Sdes ac_prev=srcdir ;; 1112117610Sdes -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1113117610Sdes srcdir=$ac_optarg ;; 1114117610Sdes 1115117610Sdes -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1116117610Sdes | --syscon | --sysco | --sysc | --sys | --sy) 1117117610Sdes ac_prev=sysconfdir ;; 1118117610Sdes -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1119117610Sdes | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1120117610Sdes sysconfdir=$ac_optarg ;; 1121117610Sdes 1122117610Sdes -target | --target | --targe | --targ | --tar | --ta | --t) 1123117610Sdes ac_prev=target_alias ;; 1124117610Sdes -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1125117610Sdes target_alias=$ac_optarg ;; 1126117610Sdes 1127117610Sdes -v | -verbose | --verbose | --verbos | --verbo | --verb) 1128117610Sdes verbose=yes ;; 1129117610Sdes 1130117610Sdes -version | --version | --versio | --versi | --vers | -V) 1131117610Sdes ac_init_version=: ;; 1132117610Sdes 1133117610Sdes -with-* | --with-*) 1134228692Sdes ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1135117610Sdes # Reject names that are not valid shell variable names. 1136228692Sdes expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1137228692Sdes as_fn_error $? "invalid package name: $ac_useropt" 1138228692Sdes ac_useropt_orig=$ac_useropt 1139228692Sdes ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1140228692Sdes case $ac_user_opts in 1141228692Sdes *" 1142228692Sdes"with_$ac_useropt" 1143228692Sdes"*) ;; 1144228692Sdes *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1145228692Sdes ac_unrecognized_sep=', ';; 1146228692Sdes esac 1147228692Sdes eval with_$ac_useropt=\$ac_optarg ;; 1148117610Sdes 1149117610Sdes -without-* | --without-*) 1150228692Sdes ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1151117610Sdes # Reject names that are not valid shell variable names. 1152228692Sdes expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1153228692Sdes as_fn_error $? "invalid package name: $ac_useropt" 1154228692Sdes ac_useropt_orig=$ac_useropt 1155228692Sdes ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1156228692Sdes case $ac_user_opts in 1157228692Sdes *" 1158228692Sdes"with_$ac_useropt" 1159228692Sdes"*) ;; 1160228692Sdes *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1161228692Sdes ac_unrecognized_sep=', ';; 1162228692Sdes esac 1163228692Sdes eval with_$ac_useropt=no ;; 1164117610Sdes 1165117610Sdes --x) 1166117610Sdes # Obsolete; use --with-x. 1167117610Sdes with_x=yes ;; 1168117610Sdes 1169117610Sdes -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1170117610Sdes | --x-incl | --x-inc | --x-in | --x-i) 1171117610Sdes ac_prev=x_includes ;; 1172117610Sdes -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1173117610Sdes | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1174117610Sdes x_includes=$ac_optarg ;; 1175117610Sdes 1176117610Sdes -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1177117610Sdes | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1178117610Sdes ac_prev=x_libraries ;; 1179117610Sdes -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1180117610Sdes | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1181117610Sdes x_libraries=$ac_optarg ;; 1182117610Sdes 1183228692Sdes -*) as_fn_error $? "unrecognized option: \`$ac_option' 1184228692SdesTry \`$0 --help' for more information" 1185117610Sdes ;; 1186117610Sdes 1187117610Sdes *=*) 1188117610Sdes ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1189117610Sdes # Reject names that are not valid shell variable names. 1190228692Sdes case $ac_envvar in #( 1191228692Sdes '' | [0-9]* | *[!_$as_cr_alnum]* ) 1192228692Sdes as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1193228692Sdes esac 1194174832Sdes eval $ac_envvar=\$ac_optarg 1195117610Sdes export $ac_envvar ;; 1196117610Sdes 1197117610Sdes *) 1198117610Sdes # FIXME: should be removed in autoconf 3.0. 1199228692Sdes $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1200117610Sdes expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1201228692Sdes $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1202228692Sdes : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1203117610Sdes ;; 1204117610Sdes 1205117610Sdes esac 1206117610Sdesdone 1207117610Sdes 1208117610Sdesif test -n "$ac_prev"; then 1209117610Sdes ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1210228692Sdes as_fn_error $? "missing argument to $ac_option" 1211117610Sdesfi 1212117610Sdes 1213228692Sdesif test -n "$ac_unrecognized_opts"; then 1214228692Sdes case $enable_option_checking in 1215228692Sdes no) ;; 1216228692Sdes fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1217228692Sdes *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1218228692Sdes esac 1219228692Sdesfi 1220228692Sdes 1221228692Sdes# Check all directory arguments for consistency. 1222174832Sdesfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1223174832Sdes datadir sysconfdir sharedstatedir localstatedir includedir \ 1224174832Sdes oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1225174832Sdes libdir localedir mandir 1226117610Sdesdo 1227174832Sdes eval ac_val=\$$ac_var 1228228692Sdes # Remove trailing slashes. 1229117610Sdes case $ac_val in 1230228692Sdes */ ) 1231228692Sdes ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1232228692Sdes eval $ac_var=\$ac_val;; 1233228692Sdes esac 1234228692Sdes # Be sure to have absolute directory names. 1235228692Sdes case $ac_val in 1236174832Sdes [\\/$]* | ?:[\\/]* ) continue;; 1237174832Sdes NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1238117610Sdes esac 1239228692Sdes as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1240117610Sdesdone 1241117610Sdes 1242117610Sdes# There might be people who depend on the old broken behavior: `$host' 1243117610Sdes# used to hold the argument of --host etc. 1244117610Sdes# FIXME: To remove some day. 1245117610Sdesbuild=$build_alias 1246117610Sdeshost=$host_alias 1247117610Sdestarget=$target_alias 1248117610Sdes 1249117610Sdes# FIXME: To remove some day. 1250117610Sdesif test "x$host_alias" != x; then 1251117610Sdes if test "x$build_alias" = x; then 1252117610Sdes cross_compiling=maybe 1253117610Sdes elif test "x$build_alias" != "x$host_alias"; then 1254117610Sdes cross_compiling=yes 1255117610Sdes fi 1256117610Sdesfi 1257117610Sdes 1258117610Sdesac_tool_prefix= 1259117610Sdestest -n "$host_alias" && ac_tool_prefix=$host_alias- 1260117610Sdes 1261117610Sdestest "$silent" = yes && exec 6>/dev/null 1262117610Sdes 1263117610Sdes 1264174832Sdesac_pwd=`pwd` && test -n "$ac_pwd" && 1265174832Sdesac_ls_di=`ls -di .` && 1266174832Sdesac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1267228692Sdes as_fn_error $? "working directory cannot be determined" 1268174832Sdestest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1269228692Sdes as_fn_error $? "pwd does not report name of working directory" 1270174832Sdes 1271174832Sdes 1272117610Sdes# Find the source files, if location was not specified. 1273117610Sdesif test -z "$srcdir"; then 1274117610Sdes ac_srcdir_defaulted=yes 1275174832Sdes # Try the directory containing this script, then the parent directory. 1276228692Sdes ac_confdir=`$as_dirname -- "$as_myself" || 1277228692Sdes$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1278228692Sdes X"$as_myself" : 'X\(//\)[^/]' \| \ 1279228692Sdes X"$as_myself" : 'X\(//\)$' \| \ 1280228692Sdes X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1281228692Sdes$as_echo X"$as_myself" | 1282174832Sdes sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1283174832Sdes s//\1/ 1284174832Sdes q 1285174832Sdes } 1286174832Sdes /^X\(\/\/\)[^/].*/{ 1287174832Sdes s//\1/ 1288174832Sdes q 1289174832Sdes } 1290174832Sdes /^X\(\/\/\)$/{ 1291174832Sdes s//\1/ 1292174832Sdes q 1293174832Sdes } 1294174832Sdes /^X\(\/\).*/{ 1295174832Sdes s//\1/ 1296174832Sdes q 1297174832Sdes } 1298174832Sdes s/.*/./; q'` 1299117610Sdes srcdir=$ac_confdir 1300174832Sdes if test ! -r "$srcdir/$ac_unique_file"; then 1301117610Sdes srcdir=.. 1302117610Sdes fi 1303117610Sdeselse 1304117610Sdes ac_srcdir_defaulted=no 1305117610Sdesfi 1306174832Sdesif test ! -r "$srcdir/$ac_unique_file"; then 1307174832Sdes test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1308228692Sdes as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1309174832Sdesfi 1310174832Sdesac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1311174832Sdesac_abs_confdir=`( 1312228692Sdes cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1313174832Sdes pwd)` 1314174832Sdes# When building in place, set srcdir=. 1315174832Sdesif test "$ac_abs_confdir" = "$ac_pwd"; then 1316174832Sdes srcdir=. 1317117610Sdesfi 1318174832Sdes# Remove unnecessary trailing slashes from srcdir. 1319174832Sdes# Double slashes in file names in object file debugging info 1320174832Sdes# mess up M-x gdb in Emacs. 1321174832Sdescase $srcdir in 1322174832Sdes*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1323174832Sdesesac 1324174832Sdesfor ac_var in $ac_precious_vars; do 1325174832Sdes eval ac_env_${ac_var}_set=\${${ac_var}+set} 1326174832Sdes eval ac_env_${ac_var}_value=\$${ac_var} 1327174832Sdes eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1328174832Sdes eval ac_cv_env_${ac_var}_value=\$${ac_var} 1329174832Sdesdone 1330117610Sdes 1331117610Sdes# 1332117610Sdes# Report the --help message. 1333117610Sdes# 1334117610Sdesif test "$ac_init_help" = "long"; then 1335117610Sdes # Omit some internal or obsolete options to make the list less imposing. 1336117610Sdes # This message is too long to be a string in the A/UX 3.1 sh. 1337117610Sdes cat <<_ACEOF 1338271947Sdes\`configure' configures OpenPAM 20140912 to adapt to many kinds of systems. 1339117610Sdes 1340117610SdesUsage: $0 [OPTION]... [VAR=VALUE]... 1341117610Sdes 1342117610SdesTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1343117610SdesVAR=VALUE. See below for descriptions of some of the useful variables. 1344117610Sdes 1345117610SdesDefaults for the options are specified in brackets. 1346117610Sdes 1347117610SdesConfiguration: 1348117610Sdes -h, --help display this help and exit 1349117610Sdes --help=short display options specific to this package 1350117610Sdes --help=recursive display the short help of all the included packages 1351117610Sdes -V, --version display version information and exit 1352228692Sdes -q, --quiet, --silent do not print \`checking ...' messages 1353117610Sdes --cache-file=FILE cache test results in FILE [disabled] 1354117610Sdes -C, --config-cache alias for \`--cache-file=config.cache' 1355117610Sdes -n, --no-create do not create output files 1356117610Sdes --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1357117610Sdes 1358117610SdesInstallation directories: 1359117610Sdes --prefix=PREFIX install architecture-independent files in PREFIX 1360228692Sdes [$ac_default_prefix] 1361117610Sdes --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1362228692Sdes [PREFIX] 1363117610Sdes 1364117610SdesBy default, \`make install' will install all the files in 1365117610Sdes\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1366117610Sdesan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1367117610Sdesfor instance \`--prefix=\$HOME'. 1368117610Sdes 1369117610SdesFor better control, use the options below. 1370117610Sdes 1371117610SdesFine tuning of the installation directories: 1372228692Sdes --bindir=DIR user executables [EPREFIX/bin] 1373228692Sdes --sbindir=DIR system admin executables [EPREFIX/sbin] 1374228692Sdes --libexecdir=DIR program executables [EPREFIX/libexec] 1375228692Sdes --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1376228692Sdes --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1377228692Sdes --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1378228692Sdes --libdir=DIR object code libraries [EPREFIX/lib] 1379228692Sdes --includedir=DIR C header files [PREFIX/include] 1380228692Sdes --oldincludedir=DIR C header files for non-gcc [/usr/include] 1381228692Sdes --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1382228692Sdes --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1383228692Sdes --infodir=DIR info documentation [DATAROOTDIR/info] 1384228692Sdes --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1385228692Sdes --mandir=DIR man documentation [DATAROOTDIR/man] 1386228692Sdes --docdir=DIR documentation root [DATAROOTDIR/doc/openpam] 1387228692Sdes --htmldir=DIR html documentation [DOCDIR] 1388228692Sdes --dvidir=DIR dvi documentation [DOCDIR] 1389228692Sdes --pdfdir=DIR pdf documentation [DOCDIR] 1390228692Sdes --psdir=DIR ps documentation [DOCDIR] 1391117610Sdes_ACEOF 1392117610Sdes 1393117610Sdes cat <<\_ACEOF 1394117610Sdes 1395117610SdesProgram names: 1396117610Sdes --program-prefix=PREFIX prepend PREFIX to installed program names 1397117610Sdes --program-suffix=SUFFIX append SUFFIX to installed program names 1398117610Sdes --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1399117610Sdes 1400117610SdesSystem types: 1401117610Sdes --build=BUILD configure for building on BUILD [guessed] 1402117610Sdes --host=HOST cross-compile to build programs to run on HOST [BUILD] 1403117610Sdes_ACEOF 1404117610Sdesfi 1405117610Sdes 1406117610Sdesif test -n "$ac_init_help"; then 1407117610Sdes case $ac_init_help in 1408271947Sdes short | recursive ) echo "Configuration of OpenPAM 20140912:";; 1409117610Sdes esac 1410117610Sdes cat <<\_ACEOF 1411117610Sdes 1412117610SdesOptional Features: 1413228692Sdes --disable-option-checking ignore unrecognized --enable/--with options 1414117610Sdes --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1415117610Sdes --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1416255376Sdes --enable-silent-rules less verbose build output (undo: "make V=1") 1417255376Sdes --disable-silent-rules verbose build output (undo: "make V=0") 1418255376Sdes --enable-dependency-tracking 1419255376Sdes do not reject slow dependency extractors 1420255376Sdes --disable-dependency-tracking 1421255376Sdes speeds up one-time build 1422174832Sdes --enable-static[=PKGS] build static libraries [default=no] 1423174832Sdes --enable-shared[=PKGS] build shared libraries [default=yes] 1424141098Sdes --enable-fast-install[=PKGS] 1425141098Sdes optimize for fast installation [default=yes] 1426117610Sdes --disable-libtool-lock avoid locking (might break parallel builds) 1427255376Sdes --enable-debug turn debugging macros on 1428117610Sdes --disable-unversioned-modules 1429117610Sdes support loading of unversioned modules 1430174832Sdes --enable-developer-warnings 1431174832Sdes enable strict warnings (default is NO) 1432174832Sdes --enable-debugging-symbols 1433174832Sdes enable debugging symbols (default is NO) 1434174832Sdes --enable-werror use -Werror (default is NO) 1435117610Sdes 1436117610SdesOptional Packages: 1437117610Sdes --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1438117610Sdes --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1439236109Sdes --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1440141098Sdes both] 1441228692Sdes --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1442228692Sdes --with-sysroot=DIR Search for dependent libraries within DIR 1443228692Sdes (or the compiler's sysroot if not specified). 1444117610Sdes --with-modules-dir=DIR OpenPAM modules directory 1445228692Sdes --without-doc do not build documentation 1446255376Sdes --with-pam-unix compile sample pam_unix(8) module 1447228692Sdes --with-pamtest compile test application 1448228692Sdes --with-su compile sample su(1) implementation 1449117610Sdes 1450117610SdesSome influential environment variables: 1451117610Sdes CC C compiler command 1452117610Sdes CFLAGS C compiler flags 1453117610Sdes LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1454117610Sdes nonstandard directory <lib dir> 1455174832Sdes LIBS libraries to pass to the linker, e.g. -l<library> 1456228692Sdes CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1457174832Sdes you have headers in a nonstandard directory <include dir> 1458117610Sdes CPP C preprocessor 1459117610Sdes 1460117610SdesUse these variables to override the choices made by `configure' or to help 1461117610Sdesit to find libraries and programs with nonstandard names/locations. 1462117610Sdes 1463174832SdesReport bugs to <des@des.no>. 1464255376SdesOpenPAM home page: <http://www.openpam.org/>. 1465117610Sdes_ACEOF 1466174832Sdesac_status=$? 1467117610Sdesfi 1468117610Sdes 1469117610Sdesif test "$ac_init_help" = "recursive"; then 1470117610Sdes # If there are subdirs, report their specific --help. 1471117610Sdes for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1472228692Sdes test -d "$ac_dir" || 1473228692Sdes { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1474228692Sdes continue 1475117610Sdes ac_builddir=. 1476117610Sdes 1477174832Sdescase "$ac_dir" in 1478174832Sdes.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1479174832Sdes*) 1480228692Sdes ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1481174832Sdes # A ".." for each directory in $ac_dir_suffix. 1482228692Sdes ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1483174832Sdes case $ac_top_builddir_sub in 1484174832Sdes "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1485174832Sdes *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1486174832Sdes esac ;; 1487174832Sdesesac 1488174832Sdesac_abs_top_builddir=$ac_pwd 1489174832Sdesac_abs_builddir=$ac_pwd$ac_dir_suffix 1490174832Sdes# for backward compatibility: 1491174832Sdesac_top_builddir=$ac_top_build_prefix 1492117610Sdes 1493117610Sdescase $srcdir in 1494174832Sdes .) # We are building in place. 1495117610Sdes ac_srcdir=. 1496174832Sdes ac_top_srcdir=$ac_top_builddir_sub 1497174832Sdes ac_abs_top_srcdir=$ac_pwd ;; 1498174832Sdes [\\/]* | ?:[\\/]* ) # Absolute name. 1499117610Sdes ac_srcdir=$srcdir$ac_dir_suffix; 1500174832Sdes ac_top_srcdir=$srcdir 1501174832Sdes ac_abs_top_srcdir=$srcdir ;; 1502174832Sdes *) # Relative name. 1503174832Sdes ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1504174832Sdes ac_top_srcdir=$ac_top_build_prefix$srcdir 1505174832Sdes ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1506117610Sdesesac 1507174832Sdesac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1508117610Sdes 1509174832Sdes cd "$ac_dir" || { ac_status=$?; continue; } 1510174832Sdes # Check for guested configure. 1511174832Sdes if test -f "$ac_srcdir/configure.gnu"; then 1512174832Sdes echo && 1513174832Sdes $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1514174832Sdes elif test -f "$ac_srcdir/configure"; then 1515174832Sdes echo && 1516174832Sdes $SHELL "$ac_srcdir/configure" --help=recursive 1517117610Sdes else 1518228692Sdes $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1519174832Sdes fi || ac_status=$? 1520174832Sdes cd "$ac_pwd" || { ac_status=$?; break; } 1521117610Sdes done 1522117610Sdesfi 1523117610Sdes 1524174832Sdestest -n "$ac_init_help" && exit $ac_status 1525117610Sdesif $ac_init_version; then 1526117610Sdes cat <<\_ACEOF 1527271947SdesOpenPAM configure 20140912 1528255376Sdesgenerated by GNU Autoconf 2.69 1529117610Sdes 1530255376SdesCopyright (C) 2012 Free Software Foundation, Inc. 1531117610SdesThis configure script is free software; the Free Software Foundation 1532117610Sdesgives unlimited permission to copy, distribute and modify it. 1533117610Sdes_ACEOF 1534174832Sdes exit 1535117610Sdesfi 1536228692Sdes 1537228692Sdes## ------------------------ ## 1538228692Sdes## Autoconf initialization. ## 1539228692Sdes## ------------------------ ## 1540228692Sdes 1541228692Sdes# ac_fn_c_try_compile LINENO 1542228692Sdes# -------------------------- 1543228692Sdes# Try to compile conftest.$ac_ext, and return whether this succeeded. 1544228692Sdesac_fn_c_try_compile () 1545228692Sdes{ 1546228692Sdes as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1547228692Sdes rm -f conftest.$ac_objext 1548228692Sdes if { { ac_try="$ac_compile" 1549228692Sdescase "(($ac_try" in 1550228692Sdes *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1551228692Sdes *) ac_try_echo=$ac_try;; 1552228692Sdesesac 1553228692Sdeseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1554228692Sdes$as_echo "$ac_try_echo"; } >&5 1555228692Sdes (eval "$ac_compile") 2>conftest.err 1556228692Sdes ac_status=$? 1557228692Sdes if test -s conftest.err; then 1558228692Sdes grep -v '^ *+' conftest.err >conftest.er1 1559228692Sdes cat conftest.er1 >&5 1560228692Sdes mv -f conftest.er1 conftest.err 1561228692Sdes fi 1562228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1563228692Sdes test $ac_status = 0; } && { 1564228692Sdes test -z "$ac_c_werror_flag" || 1565228692Sdes test ! -s conftest.err 1566228692Sdes } && test -s conftest.$ac_objext; then : 1567228692Sdes ac_retval=0 1568228692Sdeselse 1569228692Sdes $as_echo "$as_me: failed program was:" >&5 1570228692Sdessed 's/^/| /' conftest.$ac_ext >&5 1571228692Sdes 1572228692Sdes ac_retval=1 1573228692Sdesfi 1574228692Sdes eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1575228692Sdes as_fn_set_status $ac_retval 1576228692Sdes 1577228692Sdes} # ac_fn_c_try_compile 1578228692Sdes 1579228692Sdes# ac_fn_c_try_cpp LINENO 1580228692Sdes# ---------------------- 1581228692Sdes# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1582228692Sdesac_fn_c_try_cpp () 1583228692Sdes{ 1584228692Sdes as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1585228692Sdes if { { ac_try="$ac_cpp conftest.$ac_ext" 1586228692Sdescase "(($ac_try" in 1587228692Sdes *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1588228692Sdes *) ac_try_echo=$ac_try;; 1589228692Sdesesac 1590228692Sdeseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1591228692Sdes$as_echo "$ac_try_echo"; } >&5 1592228692Sdes (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1593228692Sdes ac_status=$? 1594228692Sdes if test -s conftest.err; then 1595228692Sdes grep -v '^ *+' conftest.err >conftest.er1 1596228692Sdes cat conftest.er1 >&5 1597228692Sdes mv -f conftest.er1 conftest.err 1598228692Sdes fi 1599228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1600228692Sdes test $ac_status = 0; } > conftest.i && { 1601228692Sdes test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1602228692Sdes test ! -s conftest.err 1603228692Sdes }; then : 1604228692Sdes ac_retval=0 1605228692Sdeselse 1606228692Sdes $as_echo "$as_me: failed program was:" >&5 1607228692Sdessed 's/^/| /' conftest.$ac_ext >&5 1608228692Sdes 1609228692Sdes ac_retval=1 1610228692Sdesfi 1611228692Sdes eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1612228692Sdes as_fn_set_status $ac_retval 1613228692Sdes 1614228692Sdes} # ac_fn_c_try_cpp 1615228692Sdes 1616228692Sdes# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1617228692Sdes# ------------------------------------------------------- 1618228692Sdes# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1619228692Sdes# the include files in INCLUDES and setting the cache variable VAR 1620228692Sdes# accordingly. 1621228692Sdesac_fn_c_check_header_mongrel () 1622228692Sdes{ 1623228692Sdes as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1624228692Sdes if eval \${$3+:} false; then : 1625228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1626228692Sdes$as_echo_n "checking for $2... " >&6; } 1627228692Sdesif eval \${$3+:} false; then : 1628228692Sdes $as_echo_n "(cached) " >&6 1629228692Sdesfi 1630228692Sdeseval ac_res=\$$3 1631228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1632228692Sdes$as_echo "$ac_res" >&6; } 1633228692Sdeselse 1634228692Sdes # Is the header compilable? 1635228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1636228692Sdes$as_echo_n "checking $2 usability... " >&6; } 1637228692Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext 1638228692Sdes/* end confdefs.h. */ 1639228692Sdes$4 1640228692Sdes#include <$2> 1641228692Sdes_ACEOF 1642228692Sdesif ac_fn_c_try_compile "$LINENO"; then : 1643228692Sdes ac_header_compiler=yes 1644228692Sdeselse 1645228692Sdes ac_header_compiler=no 1646228692Sdesfi 1647228692Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1648228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1649228692Sdes$as_echo "$ac_header_compiler" >&6; } 1650228692Sdes 1651228692Sdes# Is the header present? 1652228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1653228692Sdes$as_echo_n "checking $2 presence... " >&6; } 1654228692Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext 1655228692Sdes/* end confdefs.h. */ 1656228692Sdes#include <$2> 1657228692Sdes_ACEOF 1658228692Sdesif ac_fn_c_try_cpp "$LINENO"; then : 1659228692Sdes ac_header_preproc=yes 1660228692Sdeselse 1661228692Sdes ac_header_preproc=no 1662228692Sdesfi 1663228692Sdesrm -f conftest.err conftest.i conftest.$ac_ext 1664228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1665228692Sdes$as_echo "$ac_header_preproc" >&6; } 1666228692Sdes 1667228692Sdes# So? What about this header? 1668228692Sdescase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1669228692Sdes yes:no: ) 1670228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1671228692Sdes$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1672228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1673228692Sdes$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1674228692Sdes ;; 1675228692Sdes no:yes:* ) 1676228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1677228692Sdes$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1678228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1679228692Sdes$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1680228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1681228692Sdes$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1682228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1683228692Sdes$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1684228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1685228692Sdes$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1686228692Sdes( $as_echo "## ------------------------- ## 1687228692Sdes## Report this to des@des.no ## 1688228692Sdes## ------------------------- ##" 1689228692Sdes ) | sed "s/^/$as_me: WARNING: /" >&2 1690228692Sdes ;; 1691228692Sdesesac 1692228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1693228692Sdes$as_echo_n "checking for $2... " >&6; } 1694228692Sdesif eval \${$3+:} false; then : 1695228692Sdes $as_echo_n "(cached) " >&6 1696228692Sdeselse 1697228692Sdes eval "$3=\$ac_header_compiler" 1698228692Sdesfi 1699228692Sdeseval ac_res=\$$3 1700228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1701228692Sdes$as_echo "$ac_res" >&6; } 1702228692Sdesfi 1703228692Sdes eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1704228692Sdes 1705228692Sdes} # ac_fn_c_check_header_mongrel 1706228692Sdes 1707228692Sdes# ac_fn_c_try_run LINENO 1708228692Sdes# ---------------------- 1709228692Sdes# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1710228692Sdes# that executables *can* be run. 1711228692Sdesac_fn_c_try_run () 1712228692Sdes{ 1713228692Sdes as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714228692Sdes if { { ac_try="$ac_link" 1715228692Sdescase "(($ac_try" in 1716228692Sdes *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1717228692Sdes *) ac_try_echo=$ac_try;; 1718228692Sdesesac 1719228692Sdeseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1720228692Sdes$as_echo "$ac_try_echo"; } >&5 1721228692Sdes (eval "$ac_link") 2>&5 1722228692Sdes ac_status=$? 1723228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1724228692Sdes test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1725228692Sdes { { case "(($ac_try" in 1726228692Sdes *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1727228692Sdes *) ac_try_echo=$ac_try;; 1728228692Sdesesac 1729228692Sdeseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1730228692Sdes$as_echo "$ac_try_echo"; } >&5 1731228692Sdes (eval "$ac_try") 2>&5 1732228692Sdes ac_status=$? 1733228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1734228692Sdes test $ac_status = 0; }; }; then : 1735228692Sdes ac_retval=0 1736228692Sdeselse 1737228692Sdes $as_echo "$as_me: program exited with status $ac_status" >&5 1738228692Sdes $as_echo "$as_me: failed program was:" >&5 1739228692Sdessed 's/^/| /' conftest.$ac_ext >&5 1740228692Sdes 1741228692Sdes ac_retval=$ac_status 1742228692Sdesfi 1743228692Sdes rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1744228692Sdes eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1745228692Sdes as_fn_set_status $ac_retval 1746228692Sdes 1747228692Sdes} # ac_fn_c_try_run 1748228692Sdes 1749228692Sdes# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1750228692Sdes# ------------------------------------------------------- 1751228692Sdes# Tests whether HEADER exists and can be compiled using the include files in 1752228692Sdes# INCLUDES, setting the cache variable VAR accordingly. 1753228692Sdesac_fn_c_check_header_compile () 1754228692Sdes{ 1755228692Sdes as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1756228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1757228692Sdes$as_echo_n "checking for $2... " >&6; } 1758228692Sdesif eval \${$3+:} false; then : 1759228692Sdes $as_echo_n "(cached) " >&6 1760228692Sdeselse 1761228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1762228692Sdes/* end confdefs.h. */ 1763228692Sdes$4 1764228692Sdes#include <$2> 1765228692Sdes_ACEOF 1766228692Sdesif ac_fn_c_try_compile "$LINENO"; then : 1767228692Sdes eval "$3=yes" 1768228692Sdeselse 1769228692Sdes eval "$3=no" 1770228692Sdesfi 1771228692Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1772228692Sdesfi 1773228692Sdeseval ac_res=\$$3 1774228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1775228692Sdes$as_echo "$ac_res" >&6; } 1776228692Sdes eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1777228692Sdes 1778228692Sdes} # ac_fn_c_check_header_compile 1779228692Sdes 1780228692Sdes# ac_fn_c_try_link LINENO 1781228692Sdes# ----------------------- 1782228692Sdes# Try to link conftest.$ac_ext, and return whether this succeeded. 1783228692Sdesac_fn_c_try_link () 1784228692Sdes{ 1785228692Sdes as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1786228692Sdes rm -f conftest.$ac_objext conftest$ac_exeext 1787228692Sdes if { { ac_try="$ac_link" 1788228692Sdescase "(($ac_try" in 1789228692Sdes *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1790228692Sdes *) ac_try_echo=$ac_try;; 1791228692Sdesesac 1792228692Sdeseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1793228692Sdes$as_echo "$ac_try_echo"; } >&5 1794228692Sdes (eval "$ac_link") 2>conftest.err 1795228692Sdes ac_status=$? 1796228692Sdes if test -s conftest.err; then 1797228692Sdes grep -v '^ *+' conftest.err >conftest.er1 1798228692Sdes cat conftest.er1 >&5 1799228692Sdes mv -f conftest.er1 conftest.err 1800228692Sdes fi 1801228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1802228692Sdes test $ac_status = 0; } && { 1803228692Sdes test -z "$ac_c_werror_flag" || 1804228692Sdes test ! -s conftest.err 1805228692Sdes } && test -s conftest$ac_exeext && { 1806228692Sdes test "$cross_compiling" = yes || 1807255376Sdes test -x conftest$ac_exeext 1808228692Sdes }; then : 1809228692Sdes ac_retval=0 1810228692Sdeselse 1811228692Sdes $as_echo "$as_me: failed program was:" >&5 1812228692Sdessed 's/^/| /' conftest.$ac_ext >&5 1813228692Sdes 1814228692Sdes ac_retval=1 1815228692Sdesfi 1816228692Sdes # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1817228692Sdes # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1818228692Sdes # interfere with the next link command; also delete a directory that is 1819228692Sdes # left behind by Apple's compiler. We do this before executing the actions. 1820228692Sdes rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1821228692Sdes eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1822228692Sdes as_fn_set_status $ac_retval 1823228692Sdes 1824228692Sdes} # ac_fn_c_try_link 1825228692Sdes 1826228692Sdes# ac_fn_c_check_func LINENO FUNC VAR 1827228692Sdes# ---------------------------------- 1828228692Sdes# Tests whether FUNC exists, setting the cache variable VAR accordingly 1829228692Sdesac_fn_c_check_func () 1830228692Sdes{ 1831228692Sdes as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1832228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1833228692Sdes$as_echo_n "checking for $2... " >&6; } 1834228692Sdesif eval \${$3+:} false; then : 1835228692Sdes $as_echo_n "(cached) " >&6 1836228692Sdeselse 1837228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1838228692Sdes/* end confdefs.h. */ 1839228692Sdes/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1840228692Sdes For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1841228692Sdes#define $2 innocuous_$2 1842228692Sdes 1843228692Sdes/* System header to define __stub macros and hopefully few prototypes, 1844228692Sdes which can conflict with char $2 (); below. 1845228692Sdes Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1846228692Sdes <limits.h> exists even on freestanding compilers. */ 1847228692Sdes 1848228692Sdes#ifdef __STDC__ 1849228692Sdes# include <limits.h> 1850228692Sdes#else 1851228692Sdes# include <assert.h> 1852228692Sdes#endif 1853228692Sdes 1854228692Sdes#undef $2 1855228692Sdes 1856228692Sdes/* Override any GCC internal prototype to avoid an error. 1857228692Sdes Use char because int might match the return type of a GCC 1858228692Sdes builtin and then its argument prototype would still apply. */ 1859228692Sdes#ifdef __cplusplus 1860228692Sdesextern "C" 1861228692Sdes#endif 1862228692Sdeschar $2 (); 1863228692Sdes/* The GNU C library defines this for functions which it implements 1864228692Sdes to always fail with ENOSYS. Some functions are actually named 1865228692Sdes something starting with __ and the normal name is an alias. */ 1866228692Sdes#if defined __stub_$2 || defined __stub___$2 1867228692Sdeschoke me 1868228692Sdes#endif 1869228692Sdes 1870228692Sdesint 1871228692Sdesmain () 1872228692Sdes{ 1873228692Sdesreturn $2 (); 1874228692Sdes ; 1875228692Sdes return 0; 1876228692Sdes} 1877228692Sdes_ACEOF 1878228692Sdesif ac_fn_c_try_link "$LINENO"; then : 1879228692Sdes eval "$3=yes" 1880228692Sdeselse 1881228692Sdes eval "$3=no" 1882228692Sdesfi 1883228692Sdesrm -f core conftest.err conftest.$ac_objext \ 1884228692Sdes conftest$ac_exeext conftest.$ac_ext 1885228692Sdesfi 1886228692Sdeseval ac_res=\$$3 1887228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1888228692Sdes$as_echo "$ac_res" >&6; } 1889228692Sdes eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1890228692Sdes 1891228692Sdes} # ac_fn_c_check_func 1892174832Sdescat >config.log <<_ACEOF 1893117610SdesThis file contains any messages produced by compilers while 1894117610Sdesrunning configure, to aid debugging if configure makes a mistake. 1895117610Sdes 1896271947SdesIt was created by OpenPAM $as_me 20140912, which was 1897255376Sdesgenerated by GNU Autoconf 2.69. Invocation command line was 1898117610Sdes 1899117610Sdes $ $0 $@ 1900117610Sdes 1901117610Sdes_ACEOF 1902174832Sdesexec 5>>config.log 1903117610Sdes{ 1904117610Sdescat <<_ASUNAME 1905117610Sdes## --------- ## 1906117610Sdes## Platform. ## 1907117610Sdes## --------- ## 1908117610Sdes 1909117610Sdeshostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1910117610Sdesuname -m = `(uname -m) 2>/dev/null || echo unknown` 1911117610Sdesuname -r = `(uname -r) 2>/dev/null || echo unknown` 1912117610Sdesuname -s = `(uname -s) 2>/dev/null || echo unknown` 1913117610Sdesuname -v = `(uname -v) 2>/dev/null || echo unknown` 1914117610Sdes 1915117610Sdes/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1916117610Sdes/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1917117610Sdes 1918117610Sdes/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1919117610Sdes/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1920117610Sdes/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1921174832Sdes/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1922117610Sdes/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1923117610Sdes/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1924117610Sdes/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1925117610Sdes 1926117610Sdes_ASUNAME 1927117610Sdes 1928117610Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1929117610Sdesfor as_dir in $PATH 1930117610Sdesdo 1931117610Sdes IFS=$as_save_IFS 1932117610Sdes test -z "$as_dir" && as_dir=. 1933228692Sdes $as_echo "PATH: $as_dir" 1934228692Sdes done 1935174832SdesIFS=$as_save_IFS 1936117610Sdes 1937117610Sdes} >&5 1938117610Sdes 1939117610Sdescat >&5 <<_ACEOF 1940117610Sdes 1941117610Sdes 1942117610Sdes## ----------- ## 1943117610Sdes## Core tests. ## 1944117610Sdes## ----------- ## 1945117610Sdes 1946117610Sdes_ACEOF 1947117610Sdes 1948117610Sdes 1949117610Sdes# Keep a trace of the command line. 1950117610Sdes# Strip out --no-create and --no-recursion so they do not pile up. 1951141098Sdes# Strip out --silent because we don't want to record it for future runs. 1952117610Sdes# Also quote any args containing shell meta-characters. 1953141098Sdes# Make two passes to allow for proper duplicate-argument suppression. 1954117610Sdesac_configure_args= 1955141098Sdesac_configure_args0= 1956141098Sdesac_configure_args1= 1957141098Sdesac_must_keep_next=false 1958141098Sdesfor ac_pass in 1 2 1959117610Sdesdo 1960141098Sdes for ac_arg 1961141098Sdes do 1962141098Sdes case $ac_arg in 1963141098Sdes -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1964141098Sdes -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1965141098Sdes | -silent | --silent | --silen | --sile | --sil) 1966141098Sdes continue ;; 1967174832Sdes *\'*) 1968228692Sdes ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1969141098Sdes esac 1970141098Sdes case $ac_pass in 1971228692Sdes 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1972141098Sdes 2) 1973228692Sdes as_fn_append ac_configure_args1 " '$ac_arg'" 1974141098Sdes if test $ac_must_keep_next = true; then 1975141098Sdes ac_must_keep_next=false # Got value, back to normal. 1976141098Sdes else 1977141098Sdes case $ac_arg in 1978141098Sdes *=* | --config-cache | -C | -disable-* | --disable-* \ 1979141098Sdes | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1980141098Sdes | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1981141098Sdes | -with-* | --with-* | -without-* | --without-* | --x) 1982141098Sdes case "$ac_configure_args0 " in 1983141098Sdes "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1984141098Sdes esac 1985141098Sdes ;; 1986141098Sdes -* ) ac_must_keep_next=true ;; 1987141098Sdes esac 1988141098Sdes fi 1989228692Sdes as_fn_append ac_configure_args " '$ac_arg'" 1990141098Sdes ;; 1991141098Sdes esac 1992141098Sdes done 1993117610Sdesdone 1994228692Sdes{ ac_configure_args0=; unset ac_configure_args0;} 1995228692Sdes{ ac_configure_args1=; unset ac_configure_args1;} 1996117610Sdes 1997117610Sdes# When interrupted or exit'd, cleanup temporary files, and complete 1998117610Sdes# config.log. We remove comments because anyway the quotes in there 1999117610Sdes# would cause problems or look ugly. 2000174832Sdes# WARNING: Use '\'' to represent an apostrophe within the trap. 2001174832Sdes# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2002117610Sdestrap 'exit_status=$? 2003117610Sdes # Save into config.log some information that might help in debugging. 2004117610Sdes { 2005117610Sdes echo 2006141098Sdes 2007228692Sdes $as_echo "## ---------------- ## 2008117610Sdes## Cache variables. ## 2009228692Sdes## ---------------- ##" 2010117610Sdes echo 2011117610Sdes # The following way of writing the cache mishandles newlines in values, 2012174832Sdes( 2013174832Sdes for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2014174832Sdes eval ac_val=\$$ac_var 2015174832Sdes case $ac_val in #( 2016174832Sdes *${as_nl}*) 2017174832Sdes case $ac_var in #( 2018228692Sdes *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2019228692Sdes$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2020174832Sdes esac 2021174832Sdes case $ac_var in #( 2022174832Sdes _ | IFS | as_nl) ;; #( 2023228692Sdes BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2024228692Sdes *) { eval $ac_var=; unset $ac_var;} ;; 2025174832Sdes esac ;; 2026174832Sdes esac 2027174832Sdes done 2028117610Sdes (set) 2>&1 | 2029174832Sdes case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2030174832Sdes *${as_nl}ac_space=\ *) 2031117610Sdes sed -n \ 2032174832Sdes "s/'\''/'\''\\\\'\'''\''/g; 2033174832Sdes s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2034174832Sdes ;; #( 2035117610Sdes *) 2036174832Sdes sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2037117610Sdes ;; 2038174832Sdes esac | 2039174832Sdes sort 2040174832Sdes) 2041117610Sdes echo 2042141098Sdes 2043228692Sdes $as_echo "## ----------------- ## 2044141098Sdes## Output variables. ## 2045228692Sdes## ----------------- ##" 2046141098Sdes echo 2047141098Sdes for ac_var in $ac_subst_vars 2048141098Sdes do 2049174832Sdes eval ac_val=\$$ac_var 2050174832Sdes case $ac_val in 2051228692Sdes *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2052174832Sdes esac 2053228692Sdes $as_echo "$ac_var='\''$ac_val'\''" 2054141098Sdes done | sort 2055141098Sdes echo 2056141098Sdes 2057141098Sdes if test -n "$ac_subst_files"; then 2058228692Sdes $as_echo "## ------------------- ## 2059174832Sdes## File substitutions. ## 2060228692Sdes## ------------------- ##" 2061141098Sdes echo 2062141098Sdes for ac_var in $ac_subst_files 2063141098Sdes do 2064174832Sdes eval ac_val=\$$ac_var 2065174832Sdes case $ac_val in 2066228692Sdes *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2067174832Sdes esac 2068228692Sdes $as_echo "$ac_var='\''$ac_val'\''" 2069141098Sdes done | sort 2070141098Sdes echo 2071141098Sdes fi 2072141098Sdes 2073117610Sdes if test -s confdefs.h; then 2074228692Sdes $as_echo "## ----------- ## 2075117610Sdes## confdefs.h. ## 2076228692Sdes## ----------- ##" 2077117610Sdes echo 2078174832Sdes cat confdefs.h 2079117610Sdes echo 2080117610Sdes fi 2081117610Sdes test "$ac_signal" != 0 && 2082228692Sdes $as_echo "$as_me: caught signal $ac_signal" 2083228692Sdes $as_echo "$as_me: exit $exit_status" 2084117610Sdes } >&5 2085174832Sdes rm -f core *.core core.conftest.* && 2086174832Sdes rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2087117610Sdes exit $exit_status 2088174832Sdes' 0 2089117610Sdesfor ac_signal in 1 2 13 15; do 2090228692Sdes trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2091117610Sdesdone 2092117610Sdesac_signal=0 2093117610Sdes 2094117610Sdes# confdefs.h avoids OS command line length limits that DEFS can exceed. 2095174832Sdesrm -f -r conftest* confdefs.h 2096117610Sdes 2097228692Sdes$as_echo "/* confdefs.h */" > confdefs.h 2098228692Sdes 2099117610Sdes# Predefined preprocessor variables. 2100117610Sdes 2101117610Sdescat >>confdefs.h <<_ACEOF 2102117610Sdes#define PACKAGE_NAME "$PACKAGE_NAME" 2103117610Sdes_ACEOF 2104117610Sdes 2105117610Sdescat >>confdefs.h <<_ACEOF 2106117610Sdes#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2107117610Sdes_ACEOF 2108117610Sdes 2109117610Sdescat >>confdefs.h <<_ACEOF 2110117610Sdes#define PACKAGE_VERSION "$PACKAGE_VERSION" 2111117610Sdes_ACEOF 2112117610Sdes 2113117610Sdescat >>confdefs.h <<_ACEOF 2114117610Sdes#define PACKAGE_STRING "$PACKAGE_STRING" 2115117610Sdes_ACEOF 2116117610Sdes 2117117610Sdescat >>confdefs.h <<_ACEOF 2118117610Sdes#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2119117610Sdes_ACEOF 2120117610Sdes 2121228692Sdescat >>confdefs.h <<_ACEOF 2122228692Sdes#define PACKAGE_URL "$PACKAGE_URL" 2123228692Sdes_ACEOF 2124117610Sdes 2125228692Sdes 2126117610Sdes# Let the site file select an alternate cache file if it wants to. 2127228692Sdes# Prefer an explicitly selected file to automatically selected ones. 2128228692Sdesac_site_file1=NONE 2129228692Sdesac_site_file2=NONE 2130174832Sdesif test -n "$CONFIG_SITE"; then 2131228692Sdes # We do not want a PATH search for config.site. 2132228692Sdes case $CONFIG_SITE in #(( 2133228692Sdes -*) ac_site_file1=./$CONFIG_SITE;; 2134228692Sdes */*) ac_site_file1=$CONFIG_SITE;; 2135228692Sdes *) ac_site_file1=./$CONFIG_SITE;; 2136228692Sdes esac 2137174832Sdeselif test "x$prefix" != xNONE; then 2138228692Sdes ac_site_file1=$prefix/share/config.site 2139228692Sdes ac_site_file2=$prefix/etc/config.site 2140174832Sdeselse 2141228692Sdes ac_site_file1=$ac_default_prefix/share/config.site 2142228692Sdes ac_site_file2=$ac_default_prefix/etc/config.site 2143117610Sdesfi 2144228692Sdesfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 2145174832Sdesdo 2146228692Sdes test "x$ac_site_file" = xNONE && continue 2147228692Sdes if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2148228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2149228692Sdes$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2150117610Sdes sed 's/^/| /' "$ac_site_file" >&5 2151228692Sdes . "$ac_site_file" \ 2152228692Sdes || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2153228692Sdes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2154228692Sdesas_fn_error $? "failed to load site script $ac_site_file 2155228692SdesSee \`config.log' for more details" "$LINENO" 5; } 2156117610Sdes fi 2157117610Sdesdone 2158117610Sdes 2159117610Sdesif test -r "$cache_file"; then 2160228692Sdes # Some versions of bash will fail to source /dev/null (special files 2161228692Sdes # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2162228692Sdes if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2163228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2164228692Sdes$as_echo "$as_me: loading cache $cache_file" >&6;} 2165117610Sdes case $cache_file in 2166174832Sdes [\\/]* | ?:[\\/]* ) . "$cache_file";; 2167174832Sdes *) . "./$cache_file";; 2168117610Sdes esac 2169117610Sdes fi 2170117610Sdeselse 2171228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2172228692Sdes$as_echo "$as_me: creating cache $cache_file" >&6;} 2173117610Sdes >$cache_file 2174117610Sdesfi 2175117610Sdes 2176117610Sdes# Check that the precious variables saved in the cache have kept the same 2177117610Sdes# value. 2178117610Sdesac_cache_corrupted=false 2179174832Sdesfor ac_var in $ac_precious_vars; do 2180117610Sdes eval ac_old_set=\$ac_cv_env_${ac_var}_set 2181117610Sdes eval ac_new_set=\$ac_env_${ac_var}_set 2182174832Sdes eval ac_old_val=\$ac_cv_env_${ac_var}_value 2183174832Sdes eval ac_new_val=\$ac_env_${ac_var}_value 2184117610Sdes case $ac_old_set,$ac_new_set in 2185117610Sdes set,) 2186228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2187228692Sdes$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2188117610Sdes ac_cache_corrupted=: ;; 2189117610Sdes ,set) 2190228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2191228692Sdes$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2192117610Sdes ac_cache_corrupted=: ;; 2193117610Sdes ,);; 2194117610Sdes *) 2195117610Sdes if test "x$ac_old_val" != "x$ac_new_val"; then 2196228692Sdes # differences in whitespace do not lead to failure. 2197228692Sdes ac_old_val_w=`echo x $ac_old_val` 2198228692Sdes ac_new_val_w=`echo x $ac_new_val` 2199228692Sdes if test "$ac_old_val_w" != "$ac_new_val_w"; then 2200228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2201228692Sdes$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2202228692Sdes ac_cache_corrupted=: 2203228692Sdes else 2204228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2205228692Sdes$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2206228692Sdes eval $ac_var=\$ac_old_val 2207228692Sdes fi 2208228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2209228692Sdes$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2210228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2211228692Sdes$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2212117610Sdes fi;; 2213117610Sdes esac 2214117610Sdes # Pass precious variables to config.status. 2215117610Sdes if test "$ac_new_set" = set; then 2216117610Sdes case $ac_new_val in 2217228692Sdes *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2218117610Sdes *) ac_arg=$ac_var=$ac_new_val ;; 2219117610Sdes esac 2220117610Sdes case " $ac_configure_args " in 2221117610Sdes *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2222228692Sdes *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2223117610Sdes esac 2224117610Sdes fi 2225117610Sdesdone 2226117610Sdesif $ac_cache_corrupted; then 2227228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2228228692Sdes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2229228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2230228692Sdes$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2231228692Sdes as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2232117610Sdesfi 2233228692Sdes## -------------------- ## 2234228692Sdes## Main body of script. ## 2235228692Sdes## -------------------- ## 2236117610Sdes 2237174832Sdesac_ext=c 2238174832Sdesac_cpp='$CPP $CPPFLAGS' 2239174832Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2240174832Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2241174832Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu 2242117610Sdes 2243117610Sdes 2244117610Sdes 2245117610Sdes 2246255376Sdesam__api_version='1.14' 2247117610Sdes 2248117610Sdesac_aux_dir= 2249174832Sdesfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2250174832Sdes if test -f "$ac_dir/install-sh"; then 2251117610Sdes ac_aux_dir=$ac_dir 2252117610Sdes ac_install_sh="$ac_aux_dir/install-sh -c" 2253117610Sdes break 2254174832Sdes elif test -f "$ac_dir/install.sh"; then 2255117610Sdes ac_aux_dir=$ac_dir 2256117610Sdes ac_install_sh="$ac_aux_dir/install.sh -c" 2257117610Sdes break 2258174832Sdes elif test -f "$ac_dir/shtool"; then 2259117610Sdes ac_aux_dir=$ac_dir 2260117610Sdes ac_install_sh="$ac_aux_dir/shtool install -c" 2261117610Sdes break 2262117610Sdes fi 2263117610Sdesdone 2264117610Sdesif test -z "$ac_aux_dir"; then 2265228692Sdes as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2266117610Sdesfi 2267117610Sdes 2268174832Sdes# These three variables are undocumented and unsupported, 2269174832Sdes# and are intended to be withdrawn in a future Autoconf release. 2270174832Sdes# They can cause serious problems if a builder's source tree is in a directory 2271174832Sdes# whose full name contains unusual characters. 2272174832Sdesac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2273174832Sdesac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2274174832Sdesac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2275174832Sdes 2276174832Sdes 2277228692Sdes# Find a good install program. We prefer a C program (faster), 2278228692Sdes# so one script is as good as another. But avoid the broken or 2279228692Sdes# incompatible versions: 2280228692Sdes# SysV /etc/install, /usr/sbin/install 2281228692Sdes# SunOS /usr/etc/install 2282228692Sdes# IRIX /sbin/install 2283228692Sdes# AIX /bin/install 2284228692Sdes# AmigaOS /C/install, which installs bootblocks on floppy discs 2285228692Sdes# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2286228692Sdes# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2287228692Sdes# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2288228692Sdes# OS/2's system install, which has a completely different semantic 2289228692Sdes# ./install, which can be erroneously created by make from ./install.sh. 2290228692Sdes# Reject install programs that cannot install multiple files. 2291228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2292228692Sdes$as_echo_n "checking for a BSD-compatible install... " >&6; } 2293228692Sdesif test -z "$INSTALL"; then 2294228692Sdesif ${ac_cv_path_install+:} false; then : 2295228692Sdes $as_echo_n "(cached) " >&6 2296117610Sdeselse 2297228692Sdes as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2298228692Sdesfor as_dir in $PATH 2299228692Sdesdo 2300228692Sdes IFS=$as_save_IFS 2301228692Sdes test -z "$as_dir" && as_dir=. 2302228692Sdes # Account for people who put trailing slashes in PATH elements. 2303228692Sdescase $as_dir/ in #(( 2304228692Sdes ./ | .// | /[cC]/* | \ 2305228692Sdes /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2306228692Sdes ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2307228692Sdes /usr/ucb/* ) ;; 2308228692Sdes *) 2309228692Sdes # OSF1 and SCO ODT 3.0 have their own names for install. 2310228692Sdes # Don't use installbsd from OSF since it installs stuff as root 2311228692Sdes # by default. 2312228692Sdes for ac_prog in ginstall scoinst install; do 2313228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 2314255376Sdes if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2315228692Sdes if test $ac_prog = install && 2316228692Sdes grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2317228692Sdes # AIX install. It has an incompatible calling convention. 2318228692Sdes : 2319228692Sdes elif test $ac_prog = install && 2320228692Sdes grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2321228692Sdes # program-specific install script used by HP pwplus--don't use. 2322228692Sdes : 2323228692Sdes else 2324228692Sdes rm -rf conftest.one conftest.two conftest.dir 2325228692Sdes echo one > conftest.one 2326228692Sdes echo two > conftest.two 2327228692Sdes mkdir conftest.dir 2328228692Sdes if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2329228692Sdes test -s conftest.one && test -s conftest.two && 2330228692Sdes test -s conftest.dir/conftest.one && 2331228692Sdes test -s conftest.dir/conftest.two 2332228692Sdes then 2333228692Sdes ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2334228692Sdes break 3 2335228692Sdes fi 2336228692Sdes fi 2337228692Sdes fi 2338228692Sdes done 2339228692Sdes done 2340228692Sdes ;; 2341228692Sdesesac 2342117610Sdes 2343228692Sdes done 2344228692SdesIFS=$as_save_IFS 2345228692Sdes 2346228692Sdesrm -rf conftest.one conftest.two conftest.dir 2347228692Sdes 2348117610Sdesfi 2349228692Sdes if test "${ac_cv_path_install+set}" = set; then 2350228692Sdes INSTALL=$ac_cv_path_install 2351228692Sdes else 2352228692Sdes # As a last resort, use the slow shell script. Don't cache a 2353228692Sdes # value for INSTALL within a source directory, because that will 2354228692Sdes # break other packages using the cache if that directory is 2355228692Sdes # removed, or if the value is a relative name. 2356228692Sdes INSTALL=$ac_install_sh 2357228692Sdes fi 2358228692Sdesfi 2359228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2360228692Sdes$as_echo "$INSTALL" >&6; } 2361228692Sdes 2362228692Sdes# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2363228692Sdes# It thinks the first close brace ends the variable substitution. 2364228692Sdestest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2365228692Sdes 2366228692Sdestest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2367228692Sdes 2368228692Sdestest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2369228692Sdes 2370228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2371228692Sdes$as_echo_n "checking whether build environment is sane... " >&6; } 2372228692Sdes# Reject unsafe characters in $srcdir or the absolute working directory 2373228692Sdes# name. Accept space and tab only in the latter. 2374228692Sdesam_lf=' 2375228692Sdes' 2376228692Sdescase `pwd` in 2377228692Sdes *[\\\"\#\$\&\'\`$am_lf]*) 2378228692Sdes as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2379174832Sdesesac 2380228692Sdescase $srcdir in 2381228692Sdes *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2382255376Sdes as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2383228692Sdesesac 2384117610Sdes 2385255376Sdes# Do 'set' in a subshell so we don't clobber the current shell's 2386228692Sdes# arguments. Must try -L first in case configure is actually a 2387228692Sdes# symlink; some systems play weird games with the mod time of symlinks 2388228692Sdes# (eg FreeBSD returns the mod time of the symlink's containing 2389228692Sdes# directory). 2390228692Sdesif ( 2391255376Sdes am_has_slept=no 2392255376Sdes for am_try in 1 2; do 2393255376Sdes echo "timestamp, slept: $am_has_slept" > conftest.file 2394255376Sdes set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2395255376Sdes if test "$*" = "X"; then 2396255376Sdes # -L didn't work. 2397255376Sdes set X `ls -t "$srcdir/configure" conftest.file` 2398255376Sdes fi 2399255376Sdes if test "$*" != "X $srcdir/configure conftest.file" \ 2400255376Sdes && test "$*" != "X conftest.file $srcdir/configure"; then 2401117610Sdes 2402255376Sdes # If neither matched, then we have a broken ls. This can happen 2403255376Sdes # if, for instance, CONFIG_SHELL is bash and it inherits a 2404255376Sdes # broken ls alias from the environment. This has actually 2405255376Sdes # happened. Such a system could not be considered "sane". 2406255376Sdes as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2407255376Sdes alias in your environment" "$LINENO" 5 2408255376Sdes fi 2409255376Sdes if test "$2" = conftest.file || test $am_try -eq 2; then 2410255376Sdes break 2411255376Sdes fi 2412255376Sdes # Just in case. 2413255376Sdes sleep 1 2414255376Sdes am_has_slept=yes 2415255376Sdes done 2416228692Sdes test "$2" = conftest.file 2417228692Sdes ) 2418228692Sdesthen 2419228692Sdes # Ok. 2420228692Sdes : 2421117610Sdeselse 2422228692Sdes as_fn_error $? "newly created file is older than distributed files! 2423228692SdesCheck your system clock" "$LINENO" 5 2424228692Sdesfi 2425228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2426228692Sdes$as_echo "yes" >&6; } 2427255376Sdes# If we didn't sleep, we still need to ensure time stamps of config.status and 2428255376Sdes# generated files are strictly newer. 2429255376Sdesam_sleep_pid= 2430255376Sdesif grep 'slept: no' conftest.file >/dev/null 2>&1; then 2431255376Sdes ( sleep 1 ) & 2432255376Sdes am_sleep_pid=$! 2433255376Sdesfi 2434255376Sdes 2435255376Sdesrm -f conftest.file 2436255376Sdes 2437228692Sdestest "$program_prefix" != NONE && 2438228692Sdes program_transform_name="s&^&$program_prefix&;$program_transform_name" 2439228692Sdes# Use a double $ so make ignores it. 2440228692Sdestest "$program_suffix" != NONE && 2441228692Sdes program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2442228692Sdes# Double any \ or $. 2443228692Sdes# By default was `s,x,x', remove it if useless. 2444228692Sdesac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2445228692Sdesprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2446228692Sdes 2447228692Sdes# expand $ac_aux_dir to an absolute path 2448228692Sdesam_aux_dir=`cd $ac_aux_dir && pwd` 2449228692Sdes 2450228692Sdesif test x"${MISSING+set}" != xset; then 2451228692Sdes case $am_aux_dir in 2452228692Sdes *\ * | *\ *) 2453228692Sdes MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2454228692Sdes *) 2455228692Sdes MISSING="\${SHELL} $am_aux_dir/missing" ;; 2456228692Sdes esac 2457228692Sdesfi 2458228692Sdes# Use eval to expand $SHELL 2459255376Sdesif eval "$MISSING --is-lightweight"; then 2460255376Sdes am_missing_run="$MISSING " 2461174832Sdeselse 2462228692Sdes am_missing_run= 2463255376Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2464255376Sdes$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2465174832Sdesfi 2466117610Sdes 2467228692Sdesif test x"${install_sh}" != xset; then 2468228692Sdes case $am_aux_dir in 2469228692Sdes *\ * | *\ *) 2470228692Sdes install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2471228692Sdes *) 2472228692Sdes install_sh="\${SHELL} $am_aux_dir/install-sh" 2473228692Sdes esac 2474117610Sdesfi 2475117610Sdes 2476255376Sdes# Installed binaries are usually stripped using 'strip' when the user 2477255376Sdes# run "make install-strip". However 'strip' might not be the right 2478228692Sdes# tool to use in cross-compilation environments, therefore Automake 2479255376Sdes# will honor the 'STRIP' environment variable to overrule this program. 2480228692Sdesif test "$cross_compiling" != no; then 2481228692Sdes if test -n "$ac_tool_prefix"; then 2482228692Sdes # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2483228692Sdesset dummy ${ac_tool_prefix}strip; ac_word=$2 2484228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2485228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 2486228692Sdesif ${ac_cv_prog_STRIP+:} false; then : 2487228692Sdes $as_echo_n "(cached) " >&6 2488228692Sdeselse 2489228692Sdes if test -n "$STRIP"; then 2490228692Sdes ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2491228692Sdeselse 2492228692Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2493228692Sdesfor as_dir in $PATH 2494228692Sdesdo 2495228692Sdes IFS=$as_save_IFS 2496228692Sdes test -z "$as_dir" && as_dir=. 2497228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 2498255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2499228692Sdes ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2500228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2501228692Sdes break 2 2502228692Sdes fi 2503228692Sdesdone 2504228692Sdes done 2505228692SdesIFS=$as_save_IFS 2506117610Sdes 2507228692Sdesfi 2508228692Sdesfi 2509228692SdesSTRIP=$ac_cv_prog_STRIP 2510228692Sdesif test -n "$STRIP"; then 2511228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2512228692Sdes$as_echo "$STRIP" >&6; } 2513117610Sdeselse 2514228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2515228692Sdes$as_echo "no" >&6; } 2516228692Sdesfi 2517228692Sdes 2518228692Sdes 2519228692Sdesfi 2520228692Sdesif test -z "$ac_cv_prog_STRIP"; then 2521228692Sdes ac_ct_STRIP=$STRIP 2522228692Sdes # Extract the first word of "strip", so it can be a program name with args. 2523228692Sdesset dummy strip; ac_word=$2 2524228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2525228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 2526228692Sdesif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2527228692Sdes $as_echo_n "(cached) " >&6 2528174832Sdeselse 2529228692Sdes if test -n "$ac_ct_STRIP"; then 2530228692Sdes ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2531228692Sdeselse 2532228692Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2533228692Sdesfor as_dir in $PATH 2534228692Sdesdo 2535228692Sdes IFS=$as_save_IFS 2536228692Sdes test -z "$as_dir" && as_dir=. 2537228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 2538255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2539228692Sdes ac_cv_prog_ac_ct_STRIP="strip" 2540228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2541228692Sdes break 2 2542228692Sdes fi 2543228692Sdesdone 2544228692Sdes done 2545228692SdesIFS=$as_save_IFS 2546228692Sdes 2547174832Sdesfi 2548228692Sdesfi 2549228692Sdesac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2550228692Sdesif test -n "$ac_ct_STRIP"; then 2551228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2552228692Sdes$as_echo "$ac_ct_STRIP" >&6; } 2553228692Sdeselse 2554228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2555228692Sdes$as_echo "no" >&6; } 2556228692Sdesfi 2557117610Sdes 2558228692Sdes if test "x$ac_ct_STRIP" = x; then 2559228692Sdes STRIP=":" 2560228692Sdes else 2561228692Sdes case $cross_compiling:$ac_tool_warned in 2562228692Sdesyes:) 2563228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2564228692Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2565228692Sdesac_tool_warned=yes ;; 2566228692Sdesesac 2567228692Sdes STRIP=$ac_ct_STRIP 2568228692Sdes fi 2569228692Sdeselse 2570228692Sdes STRIP="$ac_cv_prog_STRIP" 2571117610Sdesfi 2572228692Sdes 2573228692Sdesfi 2574228692SdesINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2575228692Sdes 2576228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2577228692Sdes$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2578228692Sdesif test -z "$MKDIR_P"; then 2579228692Sdes if ${ac_cv_path_mkdir+:} false; then : 2580228692Sdes $as_echo_n "(cached) " >&6 2581228692Sdeselse 2582228692Sdes as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2583228692Sdesfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2584228692Sdesdo 2585228692Sdes IFS=$as_save_IFS 2586228692Sdes test -z "$as_dir" && as_dir=. 2587228692Sdes for ac_prog in mkdir gmkdir; do 2588228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 2589255376Sdes as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2590228692Sdes case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2591228692Sdes 'mkdir (GNU coreutils) '* | \ 2592228692Sdes 'mkdir (coreutils) '* | \ 2593228692Sdes 'mkdir (fileutils) '4.1*) 2594228692Sdes ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2595228692Sdes break 3;; 2596228692Sdes esac 2597228692Sdes done 2598228692Sdes done 2599228692Sdes done 2600228692SdesIFS=$as_save_IFS 2601228692Sdes 2602228692Sdesfi 2603228692Sdes 2604228692Sdes test -d ./--version && rmdir ./--version 2605228692Sdes if test "${ac_cv_path_mkdir+set}" = set; then 2606228692Sdes MKDIR_P="$ac_cv_path_mkdir -p" 2607228692Sdes else 2608228692Sdes # As a last resort, use the slow shell script. Don't cache a 2609228692Sdes # value for MKDIR_P within a source directory, because that will 2610228692Sdes # break other packages using the cache if that directory is 2611228692Sdes # removed, or if the value is a relative name. 2612228692Sdes MKDIR_P="$ac_install_sh -d" 2613228692Sdes fi 2614228692Sdesfi 2615228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2616228692Sdes$as_echo "$MKDIR_P" >&6; } 2617228692Sdes 2618228692Sdesfor ac_prog in gawk mawk nawk awk 2619228692Sdesdo 2620228692Sdes # Extract the first word of "$ac_prog", so it can be a program name with args. 2621228692Sdesset dummy $ac_prog; ac_word=$2 2622228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2623228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 2624228692Sdesif ${ac_cv_prog_AWK+:} false; then : 2625228692Sdes $as_echo_n "(cached) " >&6 2626228692Sdeselse 2627228692Sdes if test -n "$AWK"; then 2628228692Sdes ac_cv_prog_AWK="$AWK" # Let the user override the test. 2629228692Sdeselse 2630228692Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2631228692Sdesfor as_dir in $PATH 2632228692Sdesdo 2633228692Sdes IFS=$as_save_IFS 2634228692Sdes test -z "$as_dir" && as_dir=. 2635228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 2636255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2637228692Sdes ac_cv_prog_AWK="$ac_prog" 2638228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2639228692Sdes break 2 2640228692Sdes fi 2641228692Sdesdone 2642228692Sdes done 2643228692SdesIFS=$as_save_IFS 2644117610Sdes 2645228692Sdesfi 2646228692Sdesfi 2647228692SdesAWK=$ac_cv_prog_AWK 2648228692Sdesif test -n "$AWK"; then 2649228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2650228692Sdes$as_echo "$AWK" >&6; } 2651228692Sdeselse 2652228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2653228692Sdes$as_echo "no" >&6; } 2654228692Sdesfi 2655228692Sdes 2656228692Sdes 2657228692Sdes test -n "$AWK" && break 2658228692Sdesdone 2659228692Sdes 2660228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2661228692Sdes$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2662228692Sdesset x ${MAKE-make} 2663228692Sdesac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2664228692Sdesif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2665228692Sdes $as_echo_n "(cached) " >&6 2666228692Sdeselse 2667228692Sdes cat >conftest.make <<\_ACEOF 2668228692SdesSHELL = /bin/sh 2669228692Sdesall: 2670228692Sdes @echo '@@@%%%=$(MAKE)=@@@%%%' 2671228692Sdes_ACEOF 2672228692Sdes# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2673228692Sdescase `${MAKE-make} -f conftest.make 2>/dev/null` in 2674228692Sdes *@@@%%%=?*=@@@%%%*) 2675228692Sdes eval ac_cv_prog_make_${ac_make}_set=yes;; 2676228692Sdes *) 2677228692Sdes eval ac_cv_prog_make_${ac_make}_set=no;; 2678228692Sdesesac 2679228692Sdesrm -f conftest.make 2680228692Sdesfi 2681228692Sdesif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2682228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2683228692Sdes$as_echo "yes" >&6; } 2684228692Sdes SET_MAKE= 2685228692Sdeselse 2686228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2687228692Sdes$as_echo "no" >&6; } 2688228692Sdes SET_MAKE="MAKE=${MAKE-make}" 2689228692Sdesfi 2690228692Sdes 2691228692Sdesrm -rf .tst 2>/dev/null 2692228692Sdesmkdir .tst 2>/dev/null 2693228692Sdesif test -d .tst; then 2694228692Sdes am__leading_dot=. 2695228692Sdeselse 2696228692Sdes am__leading_dot=_ 2697228692Sdesfi 2698228692Sdesrmdir .tst 2>/dev/null 2699228692Sdes 2700255376Sdes# Check whether --enable-silent-rules was given. 2701255376Sdesif test "${enable_silent_rules+set}" = set; then : 2702255376Sdes enableval=$enable_silent_rules; 2703255376Sdesfi 2704255376Sdes 2705255376Sdescase $enable_silent_rules in # ((( 2706255376Sdes yes) AM_DEFAULT_VERBOSITY=0;; 2707255376Sdes no) AM_DEFAULT_VERBOSITY=1;; 2708255376Sdes *) AM_DEFAULT_VERBOSITY=1;; 2709255376Sdesesac 2710255376Sdesam_make=${MAKE-make} 2711255376Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2712255376Sdes$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2713255376Sdesif ${am_cv_make_support_nested_variables+:} false; then : 2714255376Sdes $as_echo_n "(cached) " >&6 2715255376Sdeselse 2716255376Sdes if $as_echo 'TRUE=$(BAR$(V)) 2717255376SdesBAR0=false 2718255376SdesBAR1=true 2719255376SdesV=1 2720255376Sdesam__doit: 2721255376Sdes @$(TRUE) 2722255376Sdes.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2723255376Sdes am_cv_make_support_nested_variables=yes 2724255376Sdeselse 2725255376Sdes am_cv_make_support_nested_variables=no 2726255376Sdesfi 2727255376Sdesfi 2728255376Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2729255376Sdes$as_echo "$am_cv_make_support_nested_variables" >&6; } 2730255376Sdesif test $am_cv_make_support_nested_variables = yes; then 2731255376Sdes AM_V='$(V)' 2732255376Sdes AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2733255376Sdeselse 2734255376Sdes AM_V=$AM_DEFAULT_VERBOSITY 2735255376Sdes AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2736255376Sdesfi 2737255376SdesAM_BACKSLASH='\' 2738255376Sdes 2739228692Sdesif test "`cd $srcdir && pwd`" != "`pwd`"; then 2740228692Sdes # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2741228692Sdes # is not polluted with repeated "-I." 2742228692Sdes am__isrc=' -I$(srcdir)' 2743228692Sdes # test to see if srcdir already configured 2744228692Sdes if test -f $srcdir/config.status; then 2745228692Sdes as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2746228692Sdes fi 2747228692Sdesfi 2748228692Sdes 2749228692Sdes# test whether we have cygpath 2750228692Sdesif test -z "$CYGPATH_W"; then 2751228692Sdes if (cygpath --version) >/dev/null 2>/dev/null; then 2752228692Sdes CYGPATH_W='cygpath -w' 2753228692Sdes else 2754228692Sdes CYGPATH_W=echo 2755228692Sdes fi 2756228692Sdesfi 2757228692Sdes 2758228692Sdes 2759228692Sdes# Define the identity of the package. 2760228692Sdes PACKAGE='openpam' 2761271947Sdes VERSION='20140912' 2762228692Sdes 2763228692Sdes 2764228692Sdescat >>confdefs.h <<_ACEOF 2765228692Sdes#define PACKAGE "$PACKAGE" 2766228692Sdes_ACEOF 2767228692Sdes 2768228692Sdes 2769228692Sdescat >>confdefs.h <<_ACEOF 2770228692Sdes#define VERSION "$VERSION" 2771228692Sdes_ACEOF 2772228692Sdes 2773228692Sdes# Some tools Automake needs. 2774228692Sdes 2775228692SdesACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2776228692Sdes 2777228692Sdes 2778228692SdesAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2779228692Sdes 2780228692Sdes 2781228692SdesAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2782228692Sdes 2783228692Sdes 2784228692SdesAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2785228692Sdes 2786228692Sdes 2787228692SdesMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2788228692Sdes 2789255376Sdes# For better backward compatibility. To be removed once Automake 1.9.x 2790255376Sdes# dies out for good. For more background, see: 2791255376Sdes# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2792255376Sdes# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2793255376Sdesmkdir_p='$(MKDIR_P)' 2794255376Sdes 2795228692Sdes# We need awk for the "check" target. The system "awk" is bad on 2796228692Sdes# some platforms. 2797255376Sdes# Always define AMTAR for backward compatibility. Yes, it's still used 2798255376Sdes# in the wild :-( We should find a proper way to deprecate it ... 2799255376SdesAMTAR='$${TAR-tar}' 2800228692Sdes 2801228692Sdes 2802255376Sdes# We'll loop over all known methods to create a tar archive until one works. 2803255376Sdes_am_tools='gnutar pax cpio none' 2804228692Sdes 2805255376Sdesam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2806228692Sdes 2807228692Sdes 2808228692Sdes 2809228692Sdes 2810255376Sdes 2811255376Sdes 2812255376Sdes# POSIX will say in a future version that running "rm -f" with no argument 2813255376Sdes# is OK; and we want to be able to make that assumption in our Makefile 2814255376Sdes# recipes. So use an aggressive probe to check that the usage we want is 2815255376Sdes# actually supported "in the wild" to an acceptable degree. 2816255376Sdes# See automake bug#10828. 2817255376Sdes# To make any issue more visible, cause the running configure to be aborted 2818255376Sdes# by default if the 'rm' program in use doesn't match our expectations; the 2819255376Sdes# user can still override this though. 2820255376Sdesif rm -f && rm -fr && rm -rf; then : OK; else 2821255376Sdes cat >&2 <<'END' 2822255376SdesOops! 2823255376Sdes 2824255376SdesYour 'rm' program seems unable to run without file operands specified 2825255376Sdeson the command line, even when the '-f' option is present. This is contrary 2826255376Sdesto the behaviour of most rm programs out there, and not conforming with 2827255376Sdesthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2828255376Sdes 2829255376SdesPlease tell bug-automake@gnu.org about your system, including the value 2830255376Sdesof your $PATH and any error possibly output before this message. This 2831255376Sdescan help us improve future automake versions. 2832255376Sdes 2833255376SdesEND 2834255376Sdes if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2835255376Sdes echo 'Configuration will proceed anyway, since you have set the' >&2 2836255376Sdes echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2837255376Sdes echo >&2 2838255376Sdes else 2839255376Sdes cat >&2 <<'END' 2840255376SdesAborting the configuration process, to ensure you take notice of the issue. 2841255376Sdes 2842255376SdesYou can download and install GNU coreutils to get an 'rm' implementation 2843255376Sdesthat behaves properly: <http://www.gnu.org/software/coreutils/>. 2844255376Sdes 2845255376SdesIf you want to complete the configuration process using your problematic 2846255376Sdes'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2847255376Sdesto "yes", and re-run configure. 2848255376Sdes 2849255376SdesEND 2850255376Sdes as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2851255376Sdes fi 2852255376Sdesfi 2853228692Sdesac_config_headers="$ac_config_headers config.h" 2854228692Sdes 2855228692Sdes 2856228692Sdes# C compiler and features 2857117610Sdesac_ext=c 2858117610Sdesac_cpp='$CPP $CPPFLAGS' 2859117610Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2860117610Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2861117610Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu 2862174832Sdes 2863174832Sdesac_ext=c 2864174832Sdesac_cpp='$CPP $CPPFLAGS' 2865174832Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2866174832Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2867174832Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu 2868117610Sdesif test -n "$ac_tool_prefix"; then 2869117610Sdes # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2870117610Sdesset dummy ${ac_tool_prefix}gcc; ac_word=$2 2871228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2872228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 2873228692Sdesif ${ac_cv_prog_CC+:} false; then : 2874228692Sdes $as_echo_n "(cached) " >&6 2875117610Sdeselse 2876117610Sdes if test -n "$CC"; then 2877117610Sdes ac_cv_prog_CC="$CC" # Let the user override the test. 2878117610Sdeselse 2879117610Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2880117610Sdesfor as_dir in $PATH 2881117610Sdesdo 2882117610Sdes IFS=$as_save_IFS 2883117610Sdes test -z "$as_dir" && as_dir=. 2884228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 2885255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2886117610Sdes ac_cv_prog_CC="${ac_tool_prefix}gcc" 2887228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2888117610Sdes break 2 2889117610Sdes fi 2890117610Sdesdone 2891228692Sdes done 2892174832SdesIFS=$as_save_IFS 2893117610Sdes 2894117610Sdesfi 2895117610Sdesfi 2896117610SdesCC=$ac_cv_prog_CC 2897117610Sdesif test -n "$CC"; then 2898228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2899228692Sdes$as_echo "$CC" >&6; } 2900117610Sdeselse 2901228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2902228692Sdes$as_echo "no" >&6; } 2903117610Sdesfi 2904117610Sdes 2905174832Sdes 2906117610Sdesfi 2907117610Sdesif test -z "$ac_cv_prog_CC"; then 2908117610Sdes ac_ct_CC=$CC 2909117610Sdes # Extract the first word of "gcc", so it can be a program name with args. 2910117610Sdesset dummy gcc; ac_word=$2 2911228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2912228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 2913228692Sdesif ${ac_cv_prog_ac_ct_CC+:} false; then : 2914228692Sdes $as_echo_n "(cached) " >&6 2915117610Sdeselse 2916117610Sdes if test -n "$ac_ct_CC"; then 2917117610Sdes ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2918117610Sdeselse 2919117610Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2920117610Sdesfor as_dir in $PATH 2921117610Sdesdo 2922117610Sdes IFS=$as_save_IFS 2923117610Sdes test -z "$as_dir" && as_dir=. 2924228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 2925255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2926117610Sdes ac_cv_prog_ac_ct_CC="gcc" 2927228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2928117610Sdes break 2 2929117610Sdes fi 2930117610Sdesdone 2931228692Sdes done 2932174832SdesIFS=$as_save_IFS 2933117610Sdes 2934117610Sdesfi 2935117610Sdesfi 2936117610Sdesac_ct_CC=$ac_cv_prog_ac_ct_CC 2937117610Sdesif test -n "$ac_ct_CC"; then 2938228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2939228692Sdes$as_echo "$ac_ct_CC" >&6; } 2940117610Sdeselse 2941228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2942228692Sdes$as_echo "no" >&6; } 2943117610Sdesfi 2944117610Sdes 2945174832Sdes if test "x$ac_ct_CC" = x; then 2946174832Sdes CC="" 2947174832Sdes else 2948174832Sdes case $cross_compiling:$ac_tool_warned in 2949174832Sdesyes:) 2950228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2951228692Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2952174832Sdesac_tool_warned=yes ;; 2953174832Sdesesac 2954174832Sdes CC=$ac_ct_CC 2955174832Sdes fi 2956117610Sdeselse 2957117610Sdes CC="$ac_cv_prog_CC" 2958117610Sdesfi 2959117610Sdes 2960117610Sdesif test -z "$CC"; then 2961174832Sdes if test -n "$ac_tool_prefix"; then 2962174832Sdes # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2963117610Sdesset dummy ${ac_tool_prefix}cc; ac_word=$2 2964228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2965228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 2966228692Sdesif ${ac_cv_prog_CC+:} false; then : 2967228692Sdes $as_echo_n "(cached) " >&6 2968117610Sdeselse 2969117610Sdes if test -n "$CC"; then 2970117610Sdes ac_cv_prog_CC="$CC" # Let the user override the test. 2971117610Sdeselse 2972117610Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2973117610Sdesfor as_dir in $PATH 2974117610Sdesdo 2975117610Sdes IFS=$as_save_IFS 2976117610Sdes test -z "$as_dir" && as_dir=. 2977228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 2978255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2979117610Sdes ac_cv_prog_CC="${ac_tool_prefix}cc" 2980228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2981117610Sdes break 2 2982117610Sdes fi 2983117610Sdesdone 2984228692Sdes done 2985174832SdesIFS=$as_save_IFS 2986117610Sdes 2987117610Sdesfi 2988117610Sdesfi 2989117610SdesCC=$ac_cv_prog_CC 2990117610Sdesif test -n "$CC"; then 2991228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2992228692Sdes$as_echo "$CC" >&6; } 2993117610Sdeselse 2994228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2995228692Sdes$as_echo "no" >&6; } 2996117610Sdesfi 2997117610Sdes 2998174832Sdes 2999117610Sdes fi 3000117610Sdesfi 3001117610Sdesif test -z "$CC"; then 3002117610Sdes # Extract the first word of "cc", so it can be a program name with args. 3003117610Sdesset dummy cc; ac_word=$2 3004228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3005228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 3006228692Sdesif ${ac_cv_prog_CC+:} false; then : 3007228692Sdes $as_echo_n "(cached) " >&6 3008117610Sdeselse 3009117610Sdes if test -n "$CC"; then 3010117610Sdes ac_cv_prog_CC="$CC" # Let the user override the test. 3011117610Sdeselse 3012117610Sdes ac_prog_rejected=no 3013117610Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3014117610Sdesfor as_dir in $PATH 3015117610Sdesdo 3016117610Sdes IFS=$as_save_IFS 3017117610Sdes test -z "$as_dir" && as_dir=. 3018228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 3019255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3020117610Sdes if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3021117610Sdes ac_prog_rejected=yes 3022117610Sdes continue 3023117610Sdes fi 3024117610Sdes ac_cv_prog_CC="cc" 3025228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3026117610Sdes break 2 3027117610Sdes fi 3028117610Sdesdone 3029228692Sdes done 3030174832SdesIFS=$as_save_IFS 3031117610Sdes 3032117610Sdesif test $ac_prog_rejected = yes; then 3033117610Sdes # We found a bogon in the path, so make sure we never use it. 3034117610Sdes set dummy $ac_cv_prog_CC 3035117610Sdes shift 3036117610Sdes if test $# != 0; then 3037117610Sdes # We chose a different compiler from the bogus one. 3038117610Sdes # However, it has the same basename, so the bogon will be chosen 3039117610Sdes # first if we set CC to just the basename; use the full file name. 3040117610Sdes shift 3041141098Sdes ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3042117610Sdes fi 3043117610Sdesfi 3044117610Sdesfi 3045117610Sdesfi 3046117610SdesCC=$ac_cv_prog_CC 3047117610Sdesif test -n "$CC"; then 3048228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3049228692Sdes$as_echo "$CC" >&6; } 3050117610Sdeselse 3051228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3052228692Sdes$as_echo "no" >&6; } 3053117610Sdesfi 3054117610Sdes 3055174832Sdes 3056117610Sdesfi 3057117610Sdesif test -z "$CC"; then 3058117610Sdes if test -n "$ac_tool_prefix"; then 3059174832Sdes for ac_prog in cl.exe 3060117610Sdes do 3061117610Sdes # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3062117610Sdesset dummy $ac_tool_prefix$ac_prog; ac_word=$2 3063228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3064228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 3065228692Sdesif ${ac_cv_prog_CC+:} false; then : 3066228692Sdes $as_echo_n "(cached) " >&6 3067117610Sdeselse 3068117610Sdes if test -n "$CC"; then 3069117610Sdes ac_cv_prog_CC="$CC" # Let the user override the test. 3070117610Sdeselse 3071117610Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3072117610Sdesfor as_dir in $PATH 3073117610Sdesdo 3074117610Sdes IFS=$as_save_IFS 3075117610Sdes test -z "$as_dir" && as_dir=. 3076228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 3077255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3078117610Sdes ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3079228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3080117610Sdes break 2 3081117610Sdes fi 3082117610Sdesdone 3083228692Sdes done 3084174832SdesIFS=$as_save_IFS 3085117610Sdes 3086117610Sdesfi 3087117610Sdesfi 3088117610SdesCC=$ac_cv_prog_CC 3089117610Sdesif test -n "$CC"; then 3090228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3091228692Sdes$as_echo "$CC" >&6; } 3092117610Sdeselse 3093228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3094228692Sdes$as_echo "no" >&6; } 3095117610Sdesfi 3096117610Sdes 3097174832Sdes 3098117610Sdes test -n "$CC" && break 3099117610Sdes done 3100117610Sdesfi 3101117610Sdesif test -z "$CC"; then 3102117610Sdes ac_ct_CC=$CC 3103174832Sdes for ac_prog in cl.exe 3104117610Sdesdo 3105117610Sdes # Extract the first word of "$ac_prog", so it can be a program name with args. 3106117610Sdesset dummy $ac_prog; ac_word=$2 3107228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3108228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 3109228692Sdesif ${ac_cv_prog_ac_ct_CC+:} false; then : 3110228692Sdes $as_echo_n "(cached) " >&6 3111117610Sdeselse 3112117610Sdes if test -n "$ac_ct_CC"; then 3113117610Sdes ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3114117610Sdeselse 3115117610Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3116117610Sdesfor as_dir in $PATH 3117117610Sdesdo 3118117610Sdes IFS=$as_save_IFS 3119117610Sdes test -z "$as_dir" && as_dir=. 3120228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 3121255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3122117610Sdes ac_cv_prog_ac_ct_CC="$ac_prog" 3123228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3124117610Sdes break 2 3125117610Sdes fi 3126117610Sdesdone 3127228692Sdes done 3128174832SdesIFS=$as_save_IFS 3129117610Sdes 3130117610Sdesfi 3131117610Sdesfi 3132117610Sdesac_ct_CC=$ac_cv_prog_ac_ct_CC 3133117610Sdesif test -n "$ac_ct_CC"; then 3134228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3135228692Sdes$as_echo "$ac_ct_CC" >&6; } 3136117610Sdeselse 3137228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3138228692Sdes$as_echo "no" >&6; } 3139117610Sdesfi 3140117610Sdes 3141174832Sdes 3142117610Sdes test -n "$ac_ct_CC" && break 3143117610Sdesdone 3144117610Sdes 3145174832Sdes if test "x$ac_ct_CC" = x; then 3146174832Sdes CC="" 3147174832Sdes else 3148174832Sdes case $cross_compiling:$ac_tool_warned in 3149174832Sdesyes:) 3150228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3151228692Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3152174832Sdesac_tool_warned=yes ;; 3153174832Sdesesac 3154174832Sdes CC=$ac_ct_CC 3155174832Sdes fi 3156117610Sdesfi 3157117610Sdes 3158117610Sdesfi 3159117610Sdes 3160117610Sdes 3161228692Sdestest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3162228692Sdes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3163228692Sdesas_fn_error $? "no acceptable C compiler found in \$PATH 3164228692SdesSee \`config.log' for more details" "$LINENO" 5; } 3165117610Sdes 3166117610Sdes# Provide some information about the compiler. 3167228692Sdes$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3168228692Sdesset X $ac_compile 3169228692Sdesac_compiler=$2 3170228692Sdesfor ac_option in --version -v -V -qversion; do 3171228692Sdes { { ac_try="$ac_compiler $ac_option >&5" 3172174832Sdescase "(($ac_try" in 3173174832Sdes *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3174174832Sdes *) ac_try_echo=$ac_try;; 3175174832Sdesesac 3176228692Sdeseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3177228692Sdes$as_echo "$ac_try_echo"; } >&5 3178228692Sdes (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3179117610Sdes ac_status=$? 3180228692Sdes if test -s conftest.err; then 3181228692Sdes sed '10a\ 3182228692Sdes... rest of stderr output deleted ... 3183228692Sdes 10q' conftest.err >conftest.er1 3184228692Sdes cat conftest.er1 >&5 3185228692Sdes fi 3186228692Sdes rm -f conftest.er1 conftest.err 3187228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3188228692Sdes test $ac_status = 0; } 3189228692Sdesdone 3190117610Sdes 3191228692Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext 3192141098Sdes/* end confdefs.h. */ 3193117610Sdes 3194117610Sdesint 3195117610Sdesmain () 3196117610Sdes{ 3197117610Sdes 3198117610Sdes ; 3199117610Sdes return 0; 3200117610Sdes} 3201117610Sdes_ACEOF 3202117610Sdesac_clean_files_save=$ac_clean_files 3203228692Sdesac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3204117610Sdes# Try to create an executable without -o first, disregard a.out. 3205117610Sdes# It will help us diagnose broken compilers, and finding out an intuition 3206117610Sdes# of exeext. 3207228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3208228692Sdes$as_echo_n "checking whether the C compiler works... " >&6; } 3209228692Sdesac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3210228692Sdes 3211228692Sdes# The possible output files: 3212228692Sdesac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3213228692Sdes 3214174832Sdesac_rmfiles= 3215174832Sdesfor ac_file in $ac_files 3216174832Sdesdo 3217174832Sdes case $ac_file in 3218228692Sdes *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3219174832Sdes * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3220174832Sdes esac 3221174832Sdesdone 3222174832Sdesrm -f $ac_rmfiles 3223174832Sdes 3224228692Sdesif { { ac_try="$ac_link_default" 3225174832Sdescase "(($ac_try" in 3226174832Sdes *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3227174832Sdes *) ac_try_echo=$ac_try;; 3228174832Sdesesac 3229228692Sdeseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3230228692Sdes$as_echo "$ac_try_echo"; } >&5 3231174832Sdes (eval "$ac_link_default") 2>&5 3232117610Sdes ac_status=$? 3233228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3234228692Sdes test $ac_status = 0; }; then : 3235174832Sdes # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3236174832Sdes# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3237174832Sdes# in a Makefile. We should not override ac_cv_exeext if it was cached, 3238174832Sdes# so that the user can short-circuit this test for compilers unknown to 3239174832Sdes# Autoconf. 3240174832Sdesfor ac_file in $ac_files '' 3241141098Sdesdo 3242141098Sdes test -f "$ac_file" || continue 3243117610Sdes case $ac_file in 3244228692Sdes *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3245141098Sdes ;; 3246141098Sdes [ab].out ) 3247141098Sdes # We found the default executable, but exeext='' is most 3248141098Sdes # certainly right. 3249141098Sdes break;; 3250141098Sdes *.* ) 3251228692Sdes if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3252174832Sdes then :; else 3253174832Sdes ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3254174832Sdes fi 3255174832Sdes # We set ac_cv_exeext here because the later test for it is not 3256174832Sdes # safe: cross compilers may not add the suffix if given an `-o' 3257174832Sdes # argument, so we may need to know it at that point already. 3258174832Sdes # Even if this section looks crufty: it has the advantage of 3259174832Sdes # actually working. 3260141098Sdes break;; 3261141098Sdes * ) 3262141098Sdes break;; 3263117610Sdes esac 3264117610Sdesdone 3265174832Sdestest "$ac_cv_exeext" = no && ac_cv_exeext= 3266174832Sdes 3267117610Sdeselse 3268174832Sdes ac_file='' 3269174832Sdesfi 3270228692Sdesif test -z "$ac_file"; then : 3271228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3272228692Sdes$as_echo "no" >&6; } 3273228692Sdes$as_echo "$as_me: failed program was:" >&5 3274141098Sdessed 's/^/| /' conftest.$ac_ext >&5 3275141098Sdes 3276228692Sdes{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3277228692Sdes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3278228692Sdesas_fn_error 77 "C compiler cannot create executables 3279228692SdesSee \`config.log' for more details" "$LINENO" 5; } 3280228692Sdeselse 3281228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3282228692Sdes$as_echo "yes" >&6; } 3283117610Sdesfi 3284228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3285228692Sdes$as_echo_n "checking for C compiler default output file name... " >&6; } 3286228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3287228692Sdes$as_echo "$ac_file" >&6; } 3288117610Sdesac_exeext=$ac_cv_exeext 3289117610Sdes 3290228692Sdesrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3291117610Sdesac_clean_files=$ac_clean_files_save 3292228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3293228692Sdes$as_echo_n "checking for suffix of executables... " >&6; } 3294228692Sdesif { { ac_try="$ac_link" 3295174832Sdescase "(($ac_try" in 3296174832Sdes *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3297174832Sdes *) ac_try_echo=$ac_try;; 3298174832Sdesesac 3299228692Sdeseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3300228692Sdes$as_echo "$ac_try_echo"; } >&5 3301174832Sdes (eval "$ac_link") 2>&5 3302117610Sdes ac_status=$? 3303228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3304228692Sdes test $ac_status = 0; }; then : 3305117610Sdes # If both `conftest.exe' and `conftest' are `present' (well, observable) 3306117610Sdes# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3307117610Sdes# work properly (i.e., refer to `conftest.exe'), while it won't with 3308117610Sdes# `rm'. 3309141098Sdesfor ac_file in conftest.exe conftest conftest.*; do 3310141098Sdes test -f "$ac_file" || continue 3311117610Sdes case $ac_file in 3312228692Sdes *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3313117610Sdes *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3314141098Sdes break;; 3315117610Sdes * ) break;; 3316117610Sdes esac 3317117610Sdesdone 3318117610Sdeselse 3319228692Sdes { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3320228692Sdes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3321228692Sdesas_fn_error $? "cannot compute suffix of executables: cannot compile and link 3322228692SdesSee \`config.log' for more details" "$LINENO" 5; } 3323117610Sdesfi 3324228692Sdesrm -f conftest conftest$ac_cv_exeext 3325228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3326228692Sdes$as_echo "$ac_cv_exeext" >&6; } 3327117610Sdes 3328117610Sdesrm -f conftest.$ac_ext 3329117610SdesEXEEXT=$ac_cv_exeext 3330117610Sdesac_exeext=$EXEEXT 3331228692Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext 3332228692Sdes/* end confdefs.h. */ 3333228692Sdes#include <stdio.h> 3334228692Sdesint 3335228692Sdesmain () 3336228692Sdes{ 3337228692SdesFILE *f = fopen ("conftest.out", "w"); 3338228692Sdes return ferror (f) || fclose (f) != 0; 3339228692Sdes 3340228692Sdes ; 3341228692Sdes return 0; 3342228692Sdes} 3343228692Sdes_ACEOF 3344228692Sdesac_clean_files="$ac_clean_files conftest.out" 3345228692Sdes# Check that the compiler produces executables we can run. If not, either 3346228692Sdes# the compiler is broken, or we cross compile. 3347228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3348228692Sdes$as_echo_n "checking whether we are cross compiling... " >&6; } 3349228692Sdesif test "$cross_compiling" != yes; then 3350228692Sdes { { ac_try="$ac_link" 3351228692Sdescase "(($ac_try" in 3352228692Sdes *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3353228692Sdes *) ac_try_echo=$ac_try;; 3354228692Sdesesac 3355228692Sdeseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3356228692Sdes$as_echo "$ac_try_echo"; } >&5 3357228692Sdes (eval "$ac_link") 2>&5 3358228692Sdes ac_status=$? 3359228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3360228692Sdes test $ac_status = 0; } 3361228692Sdes if { ac_try='./conftest$ac_cv_exeext' 3362228692Sdes { { case "(($ac_try" in 3363228692Sdes *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3364228692Sdes *) ac_try_echo=$ac_try;; 3365228692Sdesesac 3366228692Sdeseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3367228692Sdes$as_echo "$ac_try_echo"; } >&5 3368228692Sdes (eval "$ac_try") 2>&5 3369228692Sdes ac_status=$? 3370228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3371228692Sdes test $ac_status = 0; }; }; then 3372228692Sdes cross_compiling=no 3373228692Sdes else 3374228692Sdes if test "$cross_compiling" = maybe; then 3375228692Sdes cross_compiling=yes 3376228692Sdes else 3377228692Sdes { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3378228692Sdes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3379228692Sdesas_fn_error $? "cannot run C compiled programs. 3380228692SdesIf you meant to cross compile, use \`--host'. 3381228692SdesSee \`config.log' for more details" "$LINENO" 5; } 3382228692Sdes fi 3383228692Sdes fi 3384228692Sdesfi 3385228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3386228692Sdes$as_echo "$cross_compiling" >&6; } 3387228692Sdes 3388228692Sdesrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3389228692Sdesac_clean_files=$ac_clean_files_save 3390228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3391228692Sdes$as_echo_n "checking for suffix of object files... " >&6; } 3392228692Sdesif ${ac_cv_objext+:} false; then : 3393228692Sdes $as_echo_n "(cached) " >&6 3394117610Sdeselse 3395228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3396141098Sdes/* end confdefs.h. */ 3397117610Sdes 3398117610Sdesint 3399117610Sdesmain () 3400117610Sdes{ 3401117610Sdes 3402117610Sdes ; 3403117610Sdes return 0; 3404117610Sdes} 3405117610Sdes_ACEOF 3406117610Sdesrm -f conftest.o conftest.obj 3407228692Sdesif { { ac_try="$ac_compile" 3408174832Sdescase "(($ac_try" in 3409174832Sdes *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3410174832Sdes *) ac_try_echo=$ac_try;; 3411174832Sdesesac 3412228692Sdeseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3413228692Sdes$as_echo "$ac_try_echo"; } >&5 3414174832Sdes (eval "$ac_compile") 2>&5 3415117610Sdes ac_status=$? 3416228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3417228692Sdes test $ac_status = 0; }; then : 3418174832Sdes for ac_file in conftest.o conftest.obj conftest.*; do 3419174832Sdes test -f "$ac_file" || continue; 3420117610Sdes case $ac_file in 3421228692Sdes *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3422117610Sdes *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3423117610Sdes break;; 3424117610Sdes esac 3425117610Sdesdone 3426117610Sdeselse 3427228692Sdes $as_echo "$as_me: failed program was:" >&5 3428141098Sdessed 's/^/| /' conftest.$ac_ext >&5 3429141098Sdes 3430228692Sdes{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3431228692Sdes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3432228692Sdesas_fn_error $? "cannot compute suffix of object files: cannot compile 3433228692SdesSee \`config.log' for more details" "$LINENO" 5; } 3434117610Sdesfi 3435117610Sdesrm -f conftest.$ac_cv_objext conftest.$ac_ext 3436117610Sdesfi 3437228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3438228692Sdes$as_echo "$ac_cv_objext" >&6; } 3439117610SdesOBJEXT=$ac_cv_objext 3440117610Sdesac_objext=$OBJEXT 3441228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3442228692Sdes$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3443228692Sdesif ${ac_cv_c_compiler_gnu+:} false; then : 3444228692Sdes $as_echo_n "(cached) " >&6 3445117610Sdeselse 3446228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3447141098Sdes/* end confdefs.h. */ 3448117610Sdes 3449117610Sdesint 3450117610Sdesmain () 3451117610Sdes{ 3452117610Sdes#ifndef __GNUC__ 3453117610Sdes choke me 3454117610Sdes#endif 3455117610Sdes 3456117610Sdes ; 3457117610Sdes return 0; 3458117610Sdes} 3459117610Sdes_ACEOF 3460228692Sdesif ac_fn_c_try_compile "$LINENO"; then : 3461117610Sdes ac_compiler_gnu=yes 3462117610Sdeselse 3463228692Sdes ac_compiler_gnu=no 3464117610Sdesfi 3465174832Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3466117610Sdesac_cv_c_compiler_gnu=$ac_compiler_gnu 3467117610Sdes 3468117610Sdesfi 3469228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3470228692Sdes$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3471228692Sdesif test $ac_compiler_gnu = yes; then 3472228692Sdes GCC=yes 3473228692Sdeselse 3474228692Sdes GCC= 3475228692Sdesfi 3476117610Sdesac_test_CFLAGS=${CFLAGS+set} 3477117610Sdesac_save_CFLAGS=$CFLAGS 3478228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3479228692Sdes$as_echo_n "checking whether $CC accepts -g... " >&6; } 3480228692Sdesif ${ac_cv_prog_cc_g+:} false; then : 3481228692Sdes $as_echo_n "(cached) " >&6 3482117610Sdeselse 3483174832Sdes ac_save_c_werror_flag=$ac_c_werror_flag 3484174832Sdes ac_c_werror_flag=yes 3485174832Sdes ac_cv_prog_cc_g=no 3486174832Sdes CFLAGS="-g" 3487228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3488141098Sdes/* end confdefs.h. */ 3489117610Sdes 3490117610Sdesint 3491117610Sdesmain () 3492117610Sdes{ 3493117610Sdes 3494117610Sdes ; 3495117610Sdes return 0; 3496117610Sdes} 3497117610Sdes_ACEOF 3498228692Sdesif ac_fn_c_try_compile "$LINENO"; then : 3499174832Sdes ac_cv_prog_cc_g=yes 3500174832Sdeselse 3501228692Sdes CFLAGS="" 3502228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3503174832Sdes/* end confdefs.h. */ 3504174832Sdes 3505174832Sdesint 3506174832Sdesmain () 3507174832Sdes{ 3508174832Sdes 3509174832Sdes ; 3510174832Sdes return 0; 3511174832Sdes} 3512174832Sdes_ACEOF 3513228692Sdesif ac_fn_c_try_compile "$LINENO"; then : 3514228692Sdes 3515174832Sdeselse 3516228692Sdes ac_c_werror_flag=$ac_save_c_werror_flag 3517174832Sdes CFLAGS="-g" 3518228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3519174832Sdes/* end confdefs.h. */ 3520174832Sdes 3521174832Sdesint 3522174832Sdesmain () 3523174832Sdes{ 3524174832Sdes 3525174832Sdes ; 3526174832Sdes return 0; 3527174832Sdes} 3528174832Sdes_ACEOF 3529228692Sdesif ac_fn_c_try_compile "$LINENO"; then : 3530117610Sdes ac_cv_prog_cc_g=yes 3531117610Sdesfi 3532174832Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3533117610Sdesfi 3534174832Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3535174832Sdesfi 3536174832Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3537174832Sdes ac_c_werror_flag=$ac_save_c_werror_flag 3538174832Sdesfi 3539228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3540228692Sdes$as_echo "$ac_cv_prog_cc_g" >&6; } 3541117610Sdesif test "$ac_test_CFLAGS" = set; then 3542117610Sdes CFLAGS=$ac_save_CFLAGS 3543117610Sdeselif test $ac_cv_prog_cc_g = yes; then 3544117610Sdes if test "$GCC" = yes; then 3545117610Sdes CFLAGS="-g -O2" 3546117610Sdes else 3547117610Sdes CFLAGS="-g" 3548117610Sdes fi 3549117610Sdeselse 3550117610Sdes if test "$GCC" = yes; then 3551117610Sdes CFLAGS="-O2" 3552117610Sdes else 3553117610Sdes CFLAGS= 3554117610Sdes fi 3555117610Sdesfi 3556228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3557228692Sdes$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3558228692Sdesif ${ac_cv_prog_cc_c89+:} false; then : 3559228692Sdes $as_echo_n "(cached) " >&6 3560141098Sdeselse 3561174832Sdes ac_cv_prog_cc_c89=no 3562141098Sdesac_save_CC=$CC 3563228692Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext 3564141098Sdes/* end confdefs.h. */ 3565141098Sdes#include <stdarg.h> 3566141098Sdes#include <stdio.h> 3567255376Sdesstruct stat; 3568141098Sdes/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3569141098Sdesstruct buf { int x; }; 3570141098SdesFILE * (*rcsopen) (struct buf *, struct stat *, int); 3571141098Sdesstatic char *e (p, i) 3572141098Sdes char **p; 3573141098Sdes int i; 3574141098Sdes{ 3575141098Sdes return p[i]; 3576141098Sdes} 3577141098Sdesstatic char *f (char * (*g) (char **, int), char **p, ...) 3578141098Sdes{ 3579141098Sdes char *s; 3580141098Sdes va_list v; 3581141098Sdes va_start (v,p); 3582141098Sdes s = g (p, va_arg (v,int)); 3583141098Sdes va_end (v); 3584141098Sdes return s; 3585141098Sdes} 3586141098Sdes 3587141098Sdes/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3588141098Sdes function prototypes and stuff, but not '\xHH' hex character constants. 3589141098Sdes These don't provoke an error unfortunately, instead are silently treated 3590174832Sdes as 'x'. The following induces an error, until -std is added to get 3591141098Sdes proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3592141098Sdes array size at least. It's necessary to write '\x00'==0 to get something 3593174832Sdes that's true only with -std. */ 3594141098Sdesint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3595141098Sdes 3596174832Sdes/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3597174832Sdes inside strings and character constants. */ 3598174832Sdes#define FOO(x) 'x' 3599174832Sdesint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3600174832Sdes 3601141098Sdesint test (int i, double x); 3602141098Sdesstruct s1 {int (*f) (int a);}; 3603141098Sdesstruct s2 {int (*f) (double a);}; 3604141098Sdesint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3605141098Sdesint argc; 3606141098Sdeschar **argv; 3607141098Sdesint 3608141098Sdesmain () 3609141098Sdes{ 3610141098Sdesreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3611141098Sdes ; 3612141098Sdes return 0; 3613141098Sdes} 3614141098Sdes_ACEOF 3615174832Sdesfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3616174832Sdes -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3617141098Sdesdo 3618141098Sdes CC="$ac_save_CC $ac_arg" 3619228692Sdes if ac_fn_c_try_compile "$LINENO"; then : 3620174832Sdes ac_cv_prog_cc_c89=$ac_arg 3621141098Sdesfi 3622174832Sdesrm -f core conftest.err conftest.$ac_objext 3623174832Sdes test "x$ac_cv_prog_cc_c89" != "xno" && break 3624141098Sdesdone 3625174832Sdesrm -f conftest.$ac_ext 3626141098SdesCC=$ac_save_CC 3627141098Sdes 3628141098Sdesfi 3629174832Sdes# AC_CACHE_VAL 3630174832Sdescase "x$ac_cv_prog_cc_c89" in 3631174832Sdes x) 3632228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3633228692Sdes$as_echo "none needed" >&6; } ;; 3634174832Sdes xno) 3635228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3636228692Sdes$as_echo "unsupported" >&6; } ;; 3637141098Sdes *) 3638174832Sdes CC="$CC $ac_cv_prog_cc_c89" 3639228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3640228692Sdes$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3641141098Sdesesac 3642228692Sdesif test "x$ac_cv_prog_cc_c89" != xno; then : 3643141098Sdes 3644228692Sdesfi 3645141098Sdes 3646117610Sdesac_ext=c 3647117610Sdesac_cpp='$CPP $CPPFLAGS' 3648117610Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3649117610Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3650117610Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu 3651255376Sdes 3652255376Sdesac_ext=c 3653255376Sdesac_cpp='$CPP $CPPFLAGS' 3654255376Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3655255376Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3656255376Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu 3657255376Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3658255376Sdes$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3659255376Sdesif ${am_cv_prog_cc_c_o+:} false; then : 3660255376Sdes $as_echo_n "(cached) " >&6 3661255376Sdeselse 3662255376Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3663255376Sdes/* end confdefs.h. */ 3664255376Sdes 3665255376Sdesint 3666255376Sdesmain () 3667255376Sdes{ 3668255376Sdes 3669255376Sdes ; 3670255376Sdes return 0; 3671255376Sdes} 3672255376Sdes_ACEOF 3673255376Sdes # Make sure it works both with $CC and with simple cc. 3674255376Sdes # Following AC_PROG_CC_C_O, we do the test twice because some 3675255376Sdes # compilers refuse to overwrite an existing .o file with -o, 3676255376Sdes # though they will create one. 3677255376Sdes am_cv_prog_cc_c_o=yes 3678255376Sdes for am_i in 1 2; do 3679255376Sdes if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3680255376Sdes ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3681255376Sdes ac_status=$? 3682255376Sdes echo "$as_me:$LINENO: \$? = $ac_status" >&5 3683255376Sdes (exit $ac_status); } \ 3684255376Sdes && test -f conftest2.$ac_objext; then 3685255376Sdes : OK 3686255376Sdes else 3687255376Sdes am_cv_prog_cc_c_o=no 3688255376Sdes break 3689255376Sdes fi 3690255376Sdes done 3691255376Sdes rm -f core conftest* 3692255376Sdes unset am_i 3693255376Sdesfi 3694255376Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3695255376Sdes$as_echo "$am_cv_prog_cc_c_o" >&6; } 3696255376Sdesif test "$am_cv_prog_cc_c_o" != yes; then 3697255376Sdes # Losing compiler, so override with the script. 3698255376Sdes # FIXME: It is wrong to rewrite CC. 3699255376Sdes # But if we don't then we get into trouble of one sort or another. 3700255376Sdes # A longer-term fix would be to have automake use am__CC in this case, 3701255376Sdes # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3702255376Sdes CC="$am_aux_dir/compile $CC" 3703255376Sdesfi 3704255376Sdesac_ext=c 3705255376Sdesac_cpp='$CPP $CPPFLAGS' 3706255376Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3707255376Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3708255376Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu 3709255376Sdes 3710228692SdesDEPDIR="${am__leading_dot}deps" 3711117610Sdes 3712228692Sdesac_config_commands="$ac_config_commands depfiles" 3713117610Sdes 3714228692Sdes 3715228692Sdesam_make=${MAKE-make} 3716228692Sdescat > confinc << 'END' 3717228692Sdesam__doit: 3718228692Sdes @echo this is the am__doit target 3719228692Sdes.PHONY: am__doit 3720228692SdesEND 3721228692Sdes# If we don't find an include directive, just comment out the code. 3722228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3723228692Sdes$as_echo_n "checking for style of include used by $am_make... " >&6; } 3724228692Sdesam__include="#" 3725228692Sdesam__quote= 3726228692Sdes_am_result=none 3727228692Sdes# First try GNU make style include. 3728228692Sdesecho "include confinc" > confmf 3729255376Sdes# Ignore all kinds of additional output from 'make'. 3730228692Sdescase `$am_make -s -f confmf 2> /dev/null` in #( 3731228692Sdes*the\ am__doit\ target*) 3732228692Sdes am__include=include 3733228692Sdes am__quote= 3734228692Sdes _am_result=GNU 3735228692Sdes ;; 3736228692Sdesesac 3737228692Sdes# Now try BSD make style include. 3738228692Sdesif test "$am__include" = "#"; then 3739228692Sdes echo '.include "confinc"' > confmf 3740228692Sdes case `$am_make -s -f confmf 2> /dev/null` in #( 3741228692Sdes *the\ am__doit\ target*) 3742228692Sdes am__include=.include 3743228692Sdes am__quote="\"" 3744228692Sdes _am_result=BSD 3745228692Sdes ;; 3746228692Sdes esac 3747228692Sdesfi 3748228692Sdes 3749228692Sdes 3750228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3751228692Sdes$as_echo "$_am_result" >&6; } 3752228692Sdesrm -f confinc confmf 3753228692Sdes 3754228692Sdes# Check whether --enable-dependency-tracking was given. 3755228692Sdesif test "${enable_dependency_tracking+set}" = set; then : 3756228692Sdes enableval=$enable_dependency_tracking; 3757228692Sdesfi 3758228692Sdes 3759228692Sdesif test "x$enable_dependency_tracking" != xno; then 3760228692Sdes am_depcomp="$ac_aux_dir/depcomp" 3761228692Sdes AMDEPBACKSLASH='\' 3762255376Sdes am__nodep='_no' 3763228692Sdesfi 3764228692Sdes if test "x$enable_dependency_tracking" != xno; then 3765228692Sdes AMDEP_TRUE= 3766228692Sdes AMDEP_FALSE='#' 3767117610Sdeselse 3768228692Sdes AMDEP_TRUE='#' 3769228692Sdes AMDEP_FALSE= 3770228692Sdesfi 3771228692Sdes 3772228692Sdes 3773228692Sdes 3774228692Sdesdepcc="$CC" am_compiler_list= 3775228692Sdes 3776228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3777228692Sdes$as_echo_n "checking dependency style of $depcc... " >&6; } 3778228692Sdesif ${am_cv_CC_dependencies_compiler_type+:} false; then : 3779228692Sdes $as_echo_n "(cached) " >&6 3780228692Sdeselse 3781228692Sdes if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3782228692Sdes # We make a subdir and do the tests there. Otherwise we can end up 3783228692Sdes # making bogus files that we don't know about and never remove. For 3784228692Sdes # instance it was reported that on HP-UX the gcc test will end up 3785255376Sdes # making a dummy file named 'D' -- because '-MD' means "put the output 3786255376Sdes # in D". 3787255376Sdes rm -rf conftest.dir 3788228692Sdes mkdir conftest.dir 3789228692Sdes # Copy depcomp to subdir because otherwise we won't find it if we're 3790228692Sdes # using a relative directory. 3791228692Sdes cp "$am_depcomp" conftest.dir 3792228692Sdes cd conftest.dir 3793228692Sdes # We will build objects and dependencies in a subdirectory because 3794228692Sdes # it helps to detect inapplicable dependency modes. For instance 3795228692Sdes # both Tru64's cc and ICC support -MD to output dependencies as a 3796228692Sdes # side effect of compilation, but ICC will put the dependencies in 3797228692Sdes # the current directory while Tru64 will put them in the object 3798228692Sdes # directory. 3799228692Sdes mkdir sub 3800228692Sdes 3801228692Sdes am_cv_CC_dependencies_compiler_type=none 3802228692Sdes if test "$am_compiler_list" = ""; then 3803228692Sdes am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3804228692Sdes fi 3805228692Sdes am__universal=false 3806228692Sdes case " $depcc " in #( 3807228692Sdes *\ -arch\ *\ -arch\ *) am__universal=true ;; 3808228692Sdes esac 3809228692Sdes 3810228692Sdes for depmode in $am_compiler_list; do 3811228692Sdes # Setup a source with many dependencies, because some compilers 3812228692Sdes # like to wrap large dependency lists on column 80 (with \), and 3813228692Sdes # we should not choose a depcomp mode which is confused by this. 3814228692Sdes # 3815228692Sdes # We need to recreate these files for each test, as the compiler may 3816228692Sdes # overwrite some of them when testing with obscure command lines. 3817228692Sdes # This happens at least with the AIX C compiler. 3818228692Sdes : > sub/conftest.c 3819228692Sdes for i in 1 2 3 4 5 6; do 3820228692Sdes echo '#include "conftst'$i'.h"' >> sub/conftest.c 3821255376Sdes # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3822255376Sdes # Solaris 10 /bin/sh. 3823255376Sdes echo '/* dummy */' > sub/conftst$i.h 3824228692Sdes done 3825228692Sdes echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3826228692Sdes 3827255376Sdes # We check with '-c' and '-o' for the sake of the "dashmstdout" 3828228692Sdes # mode. It turns out that the SunPro C++ compiler does not properly 3829255376Sdes # handle '-M -o', and we need to detect this. Also, some Intel 3830255376Sdes # versions had trouble with output in subdirs. 3831228692Sdes am__obj=sub/conftest.${OBJEXT-o} 3832228692Sdes am__minus_obj="-o $am__obj" 3833228692Sdes case $depmode in 3834228692Sdes gcc) 3835228692Sdes # This depmode causes a compiler race in universal mode. 3836228692Sdes test "$am__universal" = false || continue 3837228692Sdes ;; 3838228692Sdes nosideeffect) 3839255376Sdes # After this tag, mechanisms are not by side-effect, so they'll 3840255376Sdes # only be used when explicitly requested. 3841228692Sdes if test "x$enable_dependency_tracking" = xyes; then 3842228692Sdes continue 3843228692Sdes else 3844228692Sdes break 3845228692Sdes fi 3846228692Sdes ;; 3847255376Sdes msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3848255376Sdes # This compiler won't grok '-c -o', but also, the minuso test has 3849228692Sdes # not run yet. These depmodes are late enough in the game, and 3850228692Sdes # so weak that their functioning should not be impacted. 3851228692Sdes am__obj=conftest.${OBJEXT-o} 3852228692Sdes am__minus_obj= 3853228692Sdes ;; 3854228692Sdes none) break ;; 3855228692Sdes esac 3856228692Sdes if depmode=$depmode \ 3857228692Sdes source=sub/conftest.c object=$am__obj \ 3858228692Sdes depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3859228692Sdes $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3860228692Sdes >/dev/null 2>conftest.err && 3861228692Sdes grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3862228692Sdes grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3863228692Sdes grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3864228692Sdes ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3865228692Sdes # icc doesn't choke on unknown options, it will just issue warnings 3866228692Sdes # or remarks (even with -Werror). So we grep stderr for any message 3867228692Sdes # that says an option was ignored or not supported. 3868228692Sdes # When given -MP, icc 7.0 and 7.1 complain thusly: 3869228692Sdes # icc: Command line warning: ignoring option '-M'; no argument required 3870228692Sdes # The diagnosis changed in icc 8.0: 3871228692Sdes # icc: Command line remark: option '-MP' not supported 3872228692Sdes if (grep 'ignoring option' conftest.err || 3873228692Sdes grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3874228692Sdes am_cv_CC_dependencies_compiler_type=$depmode 3875228692Sdes break 3876228692Sdes fi 3877228692Sdes fi 3878228692Sdes done 3879228692Sdes 3880228692Sdes cd .. 3881228692Sdes rm -rf conftest.dir 3882228692Sdeselse 3883228692Sdes am_cv_CC_dependencies_compiler_type=none 3884228692Sdesfi 3885228692Sdes 3886228692Sdesfi 3887228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3888228692Sdes$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3889228692SdesCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3890228692Sdes 3891228692Sdes if 3892228692Sdes test "x$enable_dependency_tracking" != xno \ 3893228692Sdes && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3894228692Sdes am__fastdepCC_TRUE= 3895228692Sdes am__fastdepCC_FALSE='#' 3896228692Sdeselse 3897228692Sdes am__fastdepCC_TRUE='#' 3898228692Sdes am__fastdepCC_FALSE= 3899228692Sdesfi 3900228692Sdes 3901228692Sdes 3902228692Sdes case $ac_cv_prog_cc_stdc in #( 3903228692Sdes no) : 3904228692Sdes ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 3905228692Sdes *) : 3906228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3907228692Sdes$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3908228692Sdesif ${ac_cv_prog_cc_c99+:} false; then : 3909228692Sdes $as_echo_n "(cached) " >&6 3910228692Sdeselse 3911228692Sdes ac_cv_prog_cc_c99=no 3912228692Sdesac_save_CC=$CC 3913228692Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext 3914141098Sdes/* end confdefs.h. */ 3915228692Sdes#include <stdarg.h> 3916228692Sdes#include <stdbool.h> 3917228692Sdes#include <stdlib.h> 3918228692Sdes#include <wchar.h> 3919228692Sdes#include <stdio.h> 3920141098Sdes 3921228692Sdes// Check varargs macros. These examples are taken from C99 6.10.3.5. 3922228692Sdes#define debug(...) fprintf (stderr, __VA_ARGS__) 3923228692Sdes#define showlist(...) puts (#__VA_ARGS__) 3924228692Sdes#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3925228692Sdesstatic void 3926228692Sdestest_varargs_macros (void) 3927228692Sdes{ 3928228692Sdes int x = 1234; 3929228692Sdes int y = 5678; 3930228692Sdes debug ("Flag"); 3931228692Sdes debug ("X = %d\n", x); 3932228692Sdes showlist (The first, second, and third items.); 3933228692Sdes report (x>y, "x is %d but y is %d", x, y); 3934228692Sdes} 3935228692Sdes 3936228692Sdes// Check long long types. 3937228692Sdes#define BIG64 18446744073709551615ull 3938228692Sdes#define BIG32 4294967295ul 3939228692Sdes#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3940228692Sdes#if !BIG_OK 3941228692Sdes your preprocessor is broken; 3942228692Sdes#endif 3943228692Sdes#if BIG_OK 3944228692Sdes#else 3945228692Sdes your preprocessor is broken; 3946228692Sdes#endif 3947228692Sdesstatic long long int bignum = -9223372036854775807LL; 3948228692Sdesstatic unsigned long long int ubignum = BIG64; 3949228692Sdes 3950228692Sdesstruct incomplete_array 3951228692Sdes{ 3952228692Sdes int datasize; 3953228692Sdes double data[]; 3954228692Sdes}; 3955228692Sdes 3956228692Sdesstruct named_init { 3957228692Sdes int number; 3958228692Sdes const wchar_t *name; 3959228692Sdes double average; 3960228692Sdes}; 3961228692Sdes 3962228692Sdestypedef const char *ccp; 3963228692Sdes 3964228692Sdesstatic inline int 3965228692Sdestest_restrict (ccp restrict text) 3966228692Sdes{ 3967228692Sdes // See if C++-style comments work. 3968228692Sdes // Iterate through items via the restricted pointer. 3969228692Sdes // Also check for declarations in for loops. 3970228692Sdes for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3971228692Sdes continue; 3972228692Sdes return 0; 3973228692Sdes} 3974228692Sdes 3975228692Sdes// Check varargs and va_copy. 3976228692Sdesstatic void 3977228692Sdestest_varargs (const char *format, ...) 3978228692Sdes{ 3979228692Sdes va_list args; 3980228692Sdes va_start (args, format); 3981228692Sdes va_list args_copy; 3982228692Sdes va_copy (args_copy, args); 3983228692Sdes 3984228692Sdes const char *str; 3985228692Sdes int number; 3986228692Sdes float fnumber; 3987228692Sdes 3988228692Sdes while (*format) 3989228692Sdes { 3990228692Sdes switch (*format++) 3991228692Sdes { 3992228692Sdes case 's': // string 3993228692Sdes str = va_arg (args_copy, const char *); 3994228692Sdes break; 3995228692Sdes case 'd': // int 3996228692Sdes number = va_arg (args_copy, int); 3997228692Sdes break; 3998228692Sdes case 'f': // float 3999228692Sdes fnumber = va_arg (args_copy, double); 4000228692Sdes break; 4001228692Sdes default: 4002228692Sdes break; 4003228692Sdes } 4004228692Sdes } 4005228692Sdes va_end (args_copy); 4006228692Sdes va_end (args); 4007228692Sdes} 4008228692Sdes 4009141098Sdesint 4010141098Sdesmain () 4011117610Sdes{ 4012141098Sdes 4013228692Sdes // Check bool. 4014228692Sdes _Bool success = false; 4015228692Sdes 4016228692Sdes // Check restrict. 4017228692Sdes if (test_restrict ("String literal") == 0) 4018228692Sdes success = true; 4019228692Sdes char *restrict newvar = "Another string"; 4020228692Sdes 4021228692Sdes // Check varargs. 4022228692Sdes test_varargs ("s, d' f .", "string", 65, 34.234); 4023228692Sdes test_varargs_macros (); 4024228692Sdes 4025228692Sdes // Check flexible array members. 4026228692Sdes struct incomplete_array *ia = 4027228692Sdes malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4028228692Sdes ia->datasize = 10; 4029228692Sdes for (int i = 0; i < ia->datasize; ++i) 4030228692Sdes ia->data[i] = i * 1.234; 4031228692Sdes 4032228692Sdes // Check named initializers. 4033228692Sdes struct named_init ni = { 4034228692Sdes .number = 34, 4035228692Sdes .name = L"Test wide string", 4036228692Sdes .average = 543.34343, 4037228692Sdes }; 4038228692Sdes 4039228692Sdes ni.number = 58; 4040228692Sdes 4041228692Sdes int dynamic_array[ni.number]; 4042228692Sdes dynamic_array[ni.number - 1] = 543; 4043228692Sdes 4044228692Sdes // work around unused variable warnings 4045228692Sdes return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4046228692Sdes || dynamic_array[ni.number - 1] != 543); 4047228692Sdes 4048141098Sdes ; 4049141098Sdes return 0; 4050117610Sdes} 4051141098Sdes_ACEOF 4052255376Sdesfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4053228692Sdesdo 4054228692Sdes CC="$ac_save_CC $ac_arg" 4055228692Sdes if ac_fn_c_try_compile "$LINENO"; then : 4056228692Sdes ac_cv_prog_cc_c99=$ac_arg 4057228692Sdesfi 4058228692Sdesrm -f core conftest.err conftest.$ac_objext 4059228692Sdes test "x$ac_cv_prog_cc_c99" != "xno" && break 4060228692Sdesdone 4061228692Sdesrm -f conftest.$ac_ext 4062228692SdesCC=$ac_save_CC 4063228692Sdes 4064228692Sdesfi 4065228692Sdes# AC_CACHE_VAL 4066228692Sdescase "x$ac_cv_prog_cc_c99" in 4067228692Sdes x) 4068228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4069228692Sdes$as_echo "none needed" >&6; } ;; 4070228692Sdes xno) 4071228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4072228692Sdes$as_echo "unsupported" >&6; } ;; 4073228692Sdes *) 4074228692Sdes CC="$CC $ac_cv_prog_cc_c99" 4075228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4076228692Sdes$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4077174832Sdesesac 4078228692Sdesif test "x$ac_cv_prog_cc_c99" != xno; then : 4079228692Sdes ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4080141098Sdeselse 4081228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4082228692Sdes$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4083228692Sdesif ${ac_cv_prog_cc_c89+:} false; then : 4084228692Sdes $as_echo_n "(cached) " >&6 4085228692Sdeselse 4086228692Sdes ac_cv_prog_cc_c89=no 4087228692Sdesac_save_CC=$CC 4088228692Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext 4089228692Sdes/* end confdefs.h. */ 4090228692Sdes#include <stdarg.h> 4091228692Sdes#include <stdio.h> 4092255376Sdesstruct stat; 4093228692Sdes/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4094228692Sdesstruct buf { int x; }; 4095228692SdesFILE * (*rcsopen) (struct buf *, struct stat *, int); 4096228692Sdesstatic char *e (p, i) 4097228692Sdes char **p; 4098228692Sdes int i; 4099228692Sdes{ 4100228692Sdes return p[i]; 4101228692Sdes} 4102228692Sdesstatic char *f (char * (*g) (char **, int), char **p, ...) 4103228692Sdes{ 4104228692Sdes char *s; 4105228692Sdes va_list v; 4106228692Sdes va_start (v,p); 4107228692Sdes s = g (p, va_arg (v,int)); 4108228692Sdes va_end (v); 4109228692Sdes return s; 4110228692Sdes} 4111141098Sdes 4112228692Sdes/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4113228692Sdes function prototypes and stuff, but not '\xHH' hex character constants. 4114228692Sdes These don't provoke an error unfortunately, instead are silently treated 4115228692Sdes as 'x'. The following induces an error, until -std is added to get 4116228692Sdes proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4117228692Sdes array size at least. It's necessary to write '\x00'==0 to get something 4118228692Sdes that's true only with -std. */ 4119228692Sdesint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4120228692Sdes 4121228692Sdes/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4122228692Sdes inside strings and character constants. */ 4123228692Sdes#define FOO(x) 'x' 4124228692Sdesint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4125228692Sdes 4126228692Sdesint test (int i, double x); 4127228692Sdesstruct s1 {int (*f) (int a);}; 4128228692Sdesstruct s2 {int (*f) (double a);}; 4129228692Sdesint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4130228692Sdesint argc; 4131228692Sdeschar **argv; 4132228692Sdesint 4133228692Sdesmain () 4134228692Sdes{ 4135228692Sdesreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4136228692Sdes ; 4137228692Sdes return 0; 4138228692Sdes} 4139228692Sdes_ACEOF 4140228692Sdesfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4141228692Sdes -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4142228692Sdesdo 4143228692Sdes CC="$ac_save_CC $ac_arg" 4144228692Sdes if ac_fn_c_try_compile "$LINENO"; then : 4145228692Sdes ac_cv_prog_cc_c89=$ac_arg 4146141098Sdesfi 4147228692Sdesrm -f core conftest.err conftest.$ac_objext 4148228692Sdes test "x$ac_cv_prog_cc_c89" != "xno" && break 4149228692Sdesdone 4150228692Sdesrm -f conftest.$ac_ext 4151228692SdesCC=$ac_save_CC 4152174832Sdes 4153141098Sdesfi 4154228692Sdes# AC_CACHE_VAL 4155228692Sdescase "x$ac_cv_prog_cc_c89" in 4156228692Sdes x) 4157228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4158228692Sdes$as_echo "none needed" >&6; } ;; 4159228692Sdes xno) 4160228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4161228692Sdes$as_echo "unsupported" >&6; } ;; 4162228692Sdes *) 4163228692Sdes CC="$CC $ac_cv_prog_cc_c89" 4164228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4165228692Sdes$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4166228692Sdesesac 4167228692Sdesif test "x$ac_cv_prog_cc_c89" != xno; then : 4168228692Sdes ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4169228692Sdeselse 4170228692Sdes ac_cv_prog_cc_stdc=no 4171228692Sdesfi 4172141098Sdes 4173228692Sdesfi 4174228692Sdes ;; 4175228692Sdesesac 4176228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 4177228692Sdes$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 4178228692Sdes if ${ac_cv_prog_cc_stdc+:} false; then : 4179228692Sdes $as_echo_n "(cached) " >&6 4180228692Sdesfi 4181228692Sdes 4182228692Sdes case $ac_cv_prog_cc_stdc in #( 4183228692Sdes no) : 4184228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4185228692Sdes$as_echo "unsupported" >&6; } ;; #( 4186228692Sdes '') : 4187228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4188228692Sdes$as_echo "none needed" >&6; } ;; #( 4189228692Sdes *) : 4190228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 4191228692Sdes$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 4192228692Sdesesac 4193228692Sdes 4194228692Sdesac_ext=c 4195228692Sdesac_cpp='$CPP $CPPFLAGS' 4196228692Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4197228692Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4198228692Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu 4199228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4200228692Sdes$as_echo_n "checking how to run the C preprocessor... " >&6; } 4201228692Sdes# On Suns, sometimes $CPP names a directory. 4202228692Sdesif test -n "$CPP" && test -d "$CPP"; then 4203228692Sdes CPP= 4204228692Sdesfi 4205228692Sdesif test -z "$CPP"; then 4206228692Sdes if ${ac_cv_prog_CPP+:} false; then : 4207228692Sdes $as_echo_n "(cached) " >&6 4208228692Sdeselse 4209228692Sdes # Double quotes because CPP needs to be expanded 4210228692Sdes for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4211228692Sdes do 4212228692Sdes ac_preproc_ok=false 4213228692Sdesfor ac_c_preproc_warn_flag in '' yes 4214228692Sdesdo 4215228692Sdes # Use a header file that comes with gcc, so configuring glibc 4216228692Sdes # with a fresh cross-compiler works. 4217228692Sdes # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4218228692Sdes # <limits.h> exists even on freestanding compilers. 4219228692Sdes # On the NeXT, cc -E runs the code through the compiler's parser, 4220228692Sdes # not just through cpp. "Syntax error" is here to catch this case. 4221228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4222228692Sdes/* end confdefs.h. */ 4223228692Sdes#ifdef __STDC__ 4224228692Sdes# include <limits.h> 4225228692Sdes#else 4226228692Sdes# include <assert.h> 4227228692Sdes#endif 4228228692Sdes Syntax error 4229141098Sdes_ACEOF 4230228692Sdesif ac_fn_c_try_cpp "$LINENO"; then : 4231141098Sdes 4232228692Sdeselse 4233228692Sdes # Broken: fails on valid input. 4234228692Sdescontinue 4235141098Sdesfi 4236228692Sdesrm -f conftest.err conftest.i conftest.$ac_ext 4237141098Sdes 4238228692Sdes # OK, works on sane cases. Now check whether nonexistent headers 4239228692Sdes # can be detected and how. 4240228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4241228692Sdes/* end confdefs.h. */ 4242228692Sdes#include <ac_nonexistent.h> 4243228692Sdes_ACEOF 4244228692Sdesif ac_fn_c_try_cpp "$LINENO"; then : 4245228692Sdes # Broken: success on invalid input. 4246228692Sdescontinue 4247141098Sdeselse 4248228692Sdes # Passes both tests. 4249228692Sdesac_preproc_ok=: 4250228692Sdesbreak 4251174832Sdesfi 4252228692Sdesrm -f conftest.err conftest.i conftest.$ac_ext 4253141098Sdes 4254228692Sdesdone 4255228692Sdes# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4256228692Sdesrm -f conftest.i conftest.err conftest.$ac_ext 4257228692Sdesif $ac_preproc_ok; then : 4258228692Sdes break 4259228692Sdesfi 4260141098Sdes 4261228692Sdes done 4262228692Sdes ac_cv_prog_CPP=$CPP 4263174832Sdes 4264228692Sdesfi 4265228692Sdes CPP=$ac_cv_prog_CPP 4266141098Sdeselse 4267228692Sdes ac_cv_prog_CPP=$CPP 4268174832Sdesfi 4269228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4270228692Sdes$as_echo "$CPP" >&6; } 4271228692Sdesac_preproc_ok=false 4272228692Sdesfor ac_c_preproc_warn_flag in '' yes 4273228692Sdesdo 4274228692Sdes # Use a header file that comes with gcc, so configuring glibc 4275228692Sdes # with a fresh cross-compiler works. 4276228692Sdes # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4277228692Sdes # <limits.h> exists even on freestanding compilers. 4278228692Sdes # On the NeXT, cc -E runs the code through the compiler's parser, 4279228692Sdes # not just through cpp. "Syntax error" is here to catch this case. 4280228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4281228692Sdes/* end confdefs.h. */ 4282228692Sdes#ifdef __STDC__ 4283228692Sdes# include <limits.h> 4284228692Sdes#else 4285228692Sdes# include <assert.h> 4286228692Sdes#endif 4287228692Sdes Syntax error 4288228692Sdes_ACEOF 4289228692Sdesif ac_fn_c_try_cpp "$LINENO"; then : 4290141098Sdes 4291228692Sdeselse 4292228692Sdes # Broken: fails on valid input. 4293228692Sdescontinue 4294228692Sdesfi 4295228692Sdesrm -f conftest.err conftest.i conftest.$ac_ext 4296174832Sdes 4297228692Sdes # OK, works on sane cases. Now check whether nonexistent headers 4298228692Sdes # can be detected and how. 4299228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4300228692Sdes/* end confdefs.h. */ 4301228692Sdes#include <ac_nonexistent.h> 4302228692Sdes_ACEOF 4303228692Sdesif ac_fn_c_try_cpp "$LINENO"; then : 4304228692Sdes # Broken: success on invalid input. 4305228692Sdescontinue 4306141098Sdeselse 4307228692Sdes # Passes both tests. 4308228692Sdesac_preproc_ok=: 4309228692Sdesbreak 4310174832Sdesfi 4311228692Sdesrm -f conftest.err conftest.i conftest.$ac_ext 4312141098Sdes 4313228692Sdesdone 4314228692Sdes# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4315228692Sdesrm -f conftest.i conftest.err conftest.$ac_ext 4316228692Sdesif $ac_preproc_ok; then : 4317174832Sdes 4318141098Sdeselse 4319228692Sdes { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4320228692Sdes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4321228692Sdesas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4322228692SdesSee \`config.log' for more details" "$LINENO" 5; } 4323141098Sdesfi 4324141098Sdes 4325228692Sdesac_ext=c 4326228692Sdesac_cpp='$CPP $CPPFLAGS' 4327228692Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4328228692Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4329228692Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu 4330141098Sdes 4331174832Sdes 4332228692Sdes 4333228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4334228692Sdes$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4335228692Sdesif ${ac_cv_path_GREP+:} false; then : 4336228692Sdes $as_echo_n "(cached) " >&6 4337141098Sdeselse 4338228692Sdes if test -z "$GREP"; then 4339174832Sdes ac_path_GREP_found=false 4340228692Sdes # Loop through the user's path and test for each of PROGNAME-LIST 4341228692Sdes as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4342174832Sdesfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4343174832Sdesdo 4344174832Sdes IFS=$as_save_IFS 4345174832Sdes test -z "$as_dir" && as_dir=. 4346228692Sdes for ac_prog in grep ggrep; do 4347228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 4348228692Sdes ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4349255376Sdes as_fn_executable_p "$ac_path_GREP" || continue 4350228692Sdes# Check for GNU ac_path_GREP and select it if it is found. 4351174832Sdes # Check for GNU $ac_path_GREP 4352174832Sdescase `"$ac_path_GREP" --version 2>&1` in 4353174832Sdes*GNU*) 4354174832Sdes ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4355174832Sdes*) 4356174832Sdes ac_count=0 4357228692Sdes $as_echo_n 0123456789 >"conftest.in" 4358174832Sdes while : 4359174832Sdes do 4360174832Sdes cat "conftest.in" "conftest.in" >"conftest.tmp" 4361174832Sdes mv "conftest.tmp" "conftest.in" 4362174832Sdes cp "conftest.in" "conftest.nl" 4363228692Sdes $as_echo 'GREP' >> "conftest.nl" 4364174832Sdes "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4365174832Sdes diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4366228692Sdes as_fn_arith $ac_count + 1 && ac_count=$as_val 4367174832Sdes if test $ac_count -gt ${ac_path_GREP_max-0}; then 4368174832Sdes # Best one so far, save it but keep looking for a better one 4369174832Sdes ac_cv_path_GREP="$ac_path_GREP" 4370174832Sdes ac_path_GREP_max=$ac_count 4371141098Sdes fi 4372174832Sdes # 10*(2^10) chars as input seems more than enough 4373174832Sdes test $ac_count -gt 10 && break 4374174832Sdes done 4375174832Sdes rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4376174832Sdesesac 4377174832Sdes 4378228692Sdes $ac_path_GREP_found && break 3 4379228692Sdes done 4380174832Sdes done 4381228692Sdes done 4382174832SdesIFS=$as_save_IFS 4383228692Sdes if test -z "$ac_cv_path_GREP"; then 4384228692Sdes as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4385228692Sdes fi 4386174832Sdeselse 4387174832Sdes ac_cv_path_GREP=$GREP 4388174832Sdesfi 4389141098Sdes 4390174832Sdesfi 4391228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4392228692Sdes$as_echo "$ac_cv_path_GREP" >&6; } 4393174832Sdes GREP="$ac_cv_path_GREP" 4394174832Sdes 4395174832Sdes 4396228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4397228692Sdes$as_echo_n "checking for egrep... " >&6; } 4398228692Sdesif ${ac_cv_path_EGREP+:} false; then : 4399228692Sdes $as_echo_n "(cached) " >&6 4400174832Sdeselse 4401174832Sdes if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4402174832Sdes then ac_cv_path_EGREP="$GREP -E" 4403174832Sdes else 4404228692Sdes if test -z "$EGREP"; then 4405174832Sdes ac_path_EGREP_found=false 4406228692Sdes # Loop through the user's path and test for each of PROGNAME-LIST 4407228692Sdes as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4408174832Sdesfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4409174832Sdesdo 4410174832Sdes IFS=$as_save_IFS 4411174832Sdes test -z "$as_dir" && as_dir=. 4412228692Sdes for ac_prog in egrep; do 4413228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 4414228692Sdes ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4415255376Sdes as_fn_executable_p "$ac_path_EGREP" || continue 4416228692Sdes# Check for GNU ac_path_EGREP and select it if it is found. 4417174832Sdes # Check for GNU $ac_path_EGREP 4418174832Sdescase `"$ac_path_EGREP" --version 2>&1` in 4419174832Sdes*GNU*) 4420174832Sdes ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4421174832Sdes*) 4422174832Sdes ac_count=0 4423228692Sdes $as_echo_n 0123456789 >"conftest.in" 4424174832Sdes while : 4425174832Sdes do 4426174832Sdes cat "conftest.in" "conftest.in" >"conftest.tmp" 4427174832Sdes mv "conftest.tmp" "conftest.in" 4428174832Sdes cp "conftest.in" "conftest.nl" 4429228692Sdes $as_echo 'EGREP' >> "conftest.nl" 4430174832Sdes "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4431174832Sdes diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4432228692Sdes as_fn_arith $ac_count + 1 && ac_count=$as_val 4433174832Sdes if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4434174832Sdes # Best one so far, save it but keep looking for a better one 4435174832Sdes ac_cv_path_EGREP="$ac_path_EGREP" 4436174832Sdes ac_path_EGREP_max=$ac_count 4437174832Sdes fi 4438174832Sdes # 10*(2^10) chars as input seems more than enough 4439174832Sdes test $ac_count -gt 10 && break 4440174832Sdes done 4441174832Sdes rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4442174832Sdesesac 4443174832Sdes 4444228692Sdes $ac_path_EGREP_found && break 3 4445228692Sdes done 4446174832Sdes done 4447228692Sdes done 4448228692SdesIFS=$as_save_IFS 4449228692Sdes if test -z "$ac_cv_path_EGREP"; then 4450228692Sdes as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4451228692Sdes fi 4452228692Sdeselse 4453228692Sdes ac_cv_path_EGREP=$EGREP 4454228692Sdesfi 4455174832Sdes 4456228692Sdes fi 4457228692Sdesfi 4458228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4459228692Sdes$as_echo "$ac_cv_path_EGREP" >&6; } 4460228692Sdes EGREP="$ac_cv_path_EGREP" 4461228692Sdes 4462228692Sdes 4463228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4464228692Sdes$as_echo_n "checking for ANSI C header files... " >&6; } 4465228692Sdesif ${ac_cv_header_stdc+:} false; then : 4466228692Sdes $as_echo_n "(cached) " >&6 4467228692Sdeselse 4468228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4469228692Sdes/* end confdefs.h. */ 4470228692Sdes#include <stdlib.h> 4471228692Sdes#include <stdarg.h> 4472228692Sdes#include <string.h> 4473228692Sdes#include <float.h> 4474228692Sdes 4475228692Sdesint 4476228692Sdesmain () 4477228692Sdes{ 4478228692Sdes 4479228692Sdes ; 4480228692Sdes return 0; 4481228692Sdes} 4482228692Sdes_ACEOF 4483228692Sdesif ac_fn_c_try_compile "$LINENO"; then : 4484228692Sdes ac_cv_header_stdc=yes 4485228692Sdeselse 4486228692Sdes ac_cv_header_stdc=no 4487228692Sdesfi 4488228692Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4489228692Sdes 4490228692Sdesif test $ac_cv_header_stdc = yes; then 4491228692Sdes # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4492228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4493228692Sdes/* end confdefs.h. */ 4494228692Sdes#include <string.h> 4495228692Sdes 4496228692Sdes_ACEOF 4497228692Sdesif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4498228692Sdes $EGREP "memchr" >/dev/null 2>&1; then : 4499228692Sdes 4500228692Sdeselse 4501228692Sdes ac_cv_header_stdc=no 4502228692Sdesfi 4503228692Sdesrm -f conftest* 4504228692Sdes 4505228692Sdesfi 4506228692Sdes 4507228692Sdesif test $ac_cv_header_stdc = yes; then 4508228692Sdes # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4509228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4510228692Sdes/* end confdefs.h. */ 4511228692Sdes#include <stdlib.h> 4512228692Sdes 4513228692Sdes_ACEOF 4514228692Sdesif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4515228692Sdes $EGREP "free" >/dev/null 2>&1; then : 4516228692Sdes 4517228692Sdeselse 4518228692Sdes ac_cv_header_stdc=no 4519228692Sdesfi 4520228692Sdesrm -f conftest* 4521228692Sdes 4522228692Sdesfi 4523228692Sdes 4524228692Sdesif test $ac_cv_header_stdc = yes; then 4525228692Sdes # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4526228692Sdes if test "$cross_compiling" = yes; then : 4527228692Sdes : 4528228692Sdeselse 4529228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4530228692Sdes/* end confdefs.h. */ 4531228692Sdes#include <ctype.h> 4532228692Sdes#include <stdlib.h> 4533228692Sdes#if ((' ' & 0x0FF) == 0x020) 4534228692Sdes# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4535228692Sdes# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4536228692Sdes#else 4537228692Sdes# define ISLOWER(c) \ 4538228692Sdes (('a' <= (c) && (c) <= 'i') \ 4539228692Sdes || ('j' <= (c) && (c) <= 'r') \ 4540228692Sdes || ('s' <= (c) && (c) <= 'z')) 4541228692Sdes# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4542228692Sdes#endif 4543228692Sdes 4544228692Sdes#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4545228692Sdesint 4546228692Sdesmain () 4547228692Sdes{ 4548228692Sdes int i; 4549228692Sdes for (i = 0; i < 256; i++) 4550228692Sdes if (XOR (islower (i), ISLOWER (i)) 4551228692Sdes || toupper (i) != TOUPPER (i)) 4552228692Sdes return 2; 4553228692Sdes return 0; 4554228692Sdes} 4555228692Sdes_ACEOF 4556228692Sdesif ac_fn_c_try_run "$LINENO"; then : 4557228692Sdes 4558228692Sdeselse 4559228692Sdes ac_cv_header_stdc=no 4560228692Sdesfi 4561228692Sdesrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4562228692Sdes conftest.$ac_objext conftest.beam conftest.$ac_ext 4563228692Sdesfi 4564228692Sdes 4565228692Sdesfi 4566228692Sdesfi 4567228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4568228692Sdes$as_echo "$ac_cv_header_stdc" >&6; } 4569228692Sdesif test $ac_cv_header_stdc = yes; then 4570228692Sdes 4571228692Sdes$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4572228692Sdes 4573228692Sdesfi 4574228692Sdes 4575228692Sdes# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4576228692Sdesfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4577228692Sdes inttypes.h stdint.h unistd.h 4578228692Sdesdo : 4579228692Sdes as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4580228692Sdesac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4581228692Sdes" 4582228692Sdesif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4583228692Sdes cat >>confdefs.h <<_ACEOF 4584228692Sdes#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4585228692Sdes_ACEOF 4586228692Sdes 4587228692Sdesfi 4588228692Sdes 4589174832Sdesdone 4590174832Sdes 4591174832Sdes 4592228692Sdes 4593228692Sdes ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4594228692Sdesif test "x$ac_cv_header_minix_config_h" = xyes; then : 4595228692Sdes MINIX=yes 4596228692Sdeselse 4597228692Sdes MINIX= 4598174832Sdesfi 4599174832Sdes 4600228692Sdes 4601228692Sdes if test "$MINIX" = yes; then 4602228692Sdes 4603228692Sdes$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4604228692Sdes 4605228692Sdes 4606228692Sdes$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4607228692Sdes 4608228692Sdes 4609228692Sdes$as_echo "#define _MINIX 1" >>confdefs.h 4610228692Sdes 4611228692Sdes fi 4612228692Sdes 4613228692Sdes 4614228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4615228692Sdes$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4616228692Sdesif ${ac_cv_safe_to_define___extensions__+:} false; then : 4617228692Sdes $as_echo_n "(cached) " >&6 4618228692Sdeselse 4619228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4620228692Sdes/* end confdefs.h. */ 4621228692Sdes 4622255376Sdes# define __EXTENSIONS__ 1 4623255376Sdes $ac_includes_default 4624228692Sdesint 4625228692Sdesmain () 4626228692Sdes{ 4627228692Sdes 4628228692Sdes ; 4629228692Sdes return 0; 4630228692Sdes} 4631228692Sdes_ACEOF 4632228692Sdesif ac_fn_c_try_compile "$LINENO"; then : 4633228692Sdes ac_cv_safe_to_define___extensions__=yes 4634228692Sdeselse 4635228692Sdes ac_cv_safe_to_define___extensions__=no 4636174832Sdesfi 4637228692Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4638228692Sdesfi 4639228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4640228692Sdes$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4641228692Sdes test $ac_cv_safe_to_define___extensions__ = yes && 4642228692Sdes $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4643174832Sdes 4644228692Sdes $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4645228692Sdes 4646228692Sdes $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4647228692Sdes 4648228692Sdes $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4649228692Sdes 4650228692Sdes $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4651228692Sdes 4652228692Sdes 4653228692Sdes 4654228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4655228692Sdes$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4656228692Sdesif ${ac_cv_c_const+:} false; then : 4657228692Sdes $as_echo_n "(cached) " >&6 4658174832Sdeselse 4659228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4660228692Sdes/* end confdefs.h. */ 4661228692Sdes 4662228692Sdesint 4663228692Sdesmain () 4664228692Sdes{ 4665255376Sdes 4666228692Sdes#ifndef __cplusplus 4667255376Sdes /* Ultrix mips cc rejects this sort of thing. */ 4668228692Sdes typedef int charset[2]; 4669255376Sdes const charset cs = { 0, 0 }; 4670228692Sdes /* SunOS 4.1.1 cc rejects this. */ 4671228692Sdes char const *const *pcpcc; 4672228692Sdes char **ppc; 4673228692Sdes /* NEC SVR4.0.2 mips cc rejects this. */ 4674228692Sdes struct point {int x, y;}; 4675228692Sdes static struct point const zero = {0,0}; 4676228692Sdes /* AIX XL C 1.02.0.0 rejects this. 4677228692Sdes It does not let you subtract one const X* pointer from another in 4678228692Sdes an arm of an if-expression whose if-part is not a constant 4679228692Sdes expression */ 4680228692Sdes const char *g = "string"; 4681228692Sdes pcpcc = &g + (g ? g-g : 0); 4682228692Sdes /* HPUX 7.0 cc rejects these. */ 4683228692Sdes ++pcpcc; 4684228692Sdes ppc = (char**) pcpcc; 4685228692Sdes pcpcc = (char const *const *) ppc; 4686255376Sdes { /* SCO 3.2v4 cc rejects this sort of thing. */ 4687255376Sdes char tx; 4688255376Sdes char *t = &tx; 4689228692Sdes char const *s = 0 ? (char *) 0 : (char const *) 0; 4690228692Sdes 4691228692Sdes *t++ = 0; 4692228692Sdes if (s) return 0; 4693228692Sdes } 4694228692Sdes { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4695228692Sdes int x[] = {25, 17}; 4696228692Sdes const int *foo = &x[0]; 4697228692Sdes ++foo; 4698228692Sdes } 4699228692Sdes { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4700228692Sdes typedef const int *iptr; 4701228692Sdes iptr p = 0; 4702228692Sdes ++p; 4703228692Sdes } 4704255376Sdes { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 4705228692Sdes "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4706255376Sdes struct s { int j; const int *ap[3]; } bx; 4707255376Sdes struct s *b = &bx; b->j = 5; 4708228692Sdes } 4709228692Sdes { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4710228692Sdes const int foo = 10; 4711228692Sdes if (!foo) return 0; 4712228692Sdes } 4713228692Sdes return !cs[0] && !zero.x; 4714228692Sdes#endif 4715228692Sdes 4716228692Sdes ; 4717228692Sdes return 0; 4718228692Sdes} 4719228692Sdes_ACEOF 4720228692Sdesif ac_fn_c_try_compile "$LINENO"; then : 4721228692Sdes ac_cv_c_const=yes 4722228692Sdeselse 4723228692Sdes ac_cv_c_const=no 4724174832Sdesfi 4725228692Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4726228692Sdesfi 4727228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4728228692Sdes$as_echo "$ac_cv_c_const" >&6; } 4729228692Sdesif test $ac_cv_c_const = no; then 4730174832Sdes 4731228692Sdes$as_echo "#define const /**/" >>confdefs.h 4732174832Sdes 4733228692Sdesfi 4734228692Sdes 4735228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 4736228692Sdes$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 4737228692Sdesif ${ac_cv_c_restrict+:} false; then : 4738228692Sdes $as_echo_n "(cached) " >&6 4739228692Sdeselse 4740228692Sdes ac_cv_c_restrict=no 4741228692Sdes # The order here caters to the fact that C++ does not require restrict. 4742228692Sdes for ac_kw in __restrict __restrict__ _Restrict restrict; do 4743228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4744228692Sdes/* end confdefs.h. */ 4745228692Sdestypedef int * int_ptr; 4746228692Sdes int foo (int_ptr $ac_kw ip) { 4747228692Sdes return ip[0]; 4748228692Sdes } 4749228692Sdesint 4750228692Sdesmain () 4751228692Sdes{ 4752228692Sdesint s[1]; 4753228692Sdes int * $ac_kw t = s; 4754228692Sdes t[0] = 0; 4755228692Sdes return foo(t) 4756228692Sdes ; 4757228692Sdes return 0; 4758228692Sdes} 4759228692Sdes_ACEOF 4760228692Sdesif ac_fn_c_try_compile "$LINENO"; then : 4761228692Sdes ac_cv_c_restrict=$ac_kw 4762228692Sdesfi 4763228692Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4764228692Sdes test "$ac_cv_c_restrict" != no && break 4765228692Sdes done 4766228692Sdes 4767228692Sdesfi 4768228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 4769228692Sdes$as_echo "$ac_cv_c_restrict" >&6; } 4770228692Sdes 4771228692Sdes case $ac_cv_c_restrict in 4772228692Sdes restrict) ;; 4773228692Sdes no) $as_echo "#define restrict /**/" >>confdefs.h 4774228692Sdes ;; 4775228692Sdes *) cat >>confdefs.h <<_ACEOF 4776228692Sdes#define restrict $ac_cv_c_restrict 4777228692Sdes_ACEOF 4778228692Sdes ;; 4779228692Sdes esac 4780228692Sdes 4781228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 4782228692Sdes$as_echo_n "checking for working volatile... " >&6; } 4783228692Sdesif ${ac_cv_c_volatile+:} false; then : 4784228692Sdes $as_echo_n "(cached) " >&6 4785228692Sdeselse 4786228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4787228692Sdes/* end confdefs.h. */ 4788228692Sdes 4789228692Sdesint 4790228692Sdesmain () 4791228692Sdes{ 4792228692Sdes 4793228692Sdesvolatile int x; 4794228692Sdesint * volatile y = (int *) 0; 4795228692Sdesreturn !x && !y; 4796228692Sdes ; 4797228692Sdes return 0; 4798228692Sdes} 4799228692Sdes_ACEOF 4800228692Sdesif ac_fn_c_try_compile "$LINENO"; then : 4801228692Sdes ac_cv_c_volatile=yes 4802228692Sdeselse 4803228692Sdes ac_cv_c_volatile=no 4804228692Sdesfi 4805228692Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4806228692Sdesfi 4807228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 4808228692Sdes$as_echo "$ac_cv_c_volatile" >&6; } 4809228692Sdesif test $ac_cv_c_volatile = no; then 4810228692Sdes 4811228692Sdes$as_echo "#define volatile /**/" >>confdefs.h 4812228692Sdes 4813228692Sdesfi 4814228692Sdes 4815228692Sdes 4816228692Sdes# libtool 4817228692Sdes 4818228692Sdescase `pwd` in 4819228692Sdes *\ * | *\ *) 4820228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4821228692Sdes$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4822228692Sdesesac 4823228692Sdes 4824228692Sdes 4825228692Sdes 4826236109Sdesmacro_version='2.4.2' 4827236109Sdesmacro_revision='1.3337' 4828228692Sdes 4829228692Sdes 4830228692Sdes 4831228692Sdes 4832228692Sdes 4833228692Sdes 4834228692Sdes 4835228692Sdes 4836228692Sdes 4837228692Sdes 4838228692Sdes 4839228692Sdes 4840228692Sdes 4841228692Sdesltmain="$ac_aux_dir/ltmain.sh" 4842228692Sdes 4843228692Sdes# Make sure we can run config.sub. 4844228692Sdes$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4845228692Sdes as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4846228692Sdes 4847228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4848228692Sdes$as_echo_n "checking build system type... " >&6; } 4849228692Sdesif ${ac_cv_build+:} false; then : 4850228692Sdes $as_echo_n "(cached) " >&6 4851228692Sdeselse 4852228692Sdes ac_build_alias=$build_alias 4853228692Sdestest "x$ac_build_alias" = x && 4854228692Sdes ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4855228692Sdestest "x$ac_build_alias" = x && 4856228692Sdes as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4857228692Sdesac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4858228692Sdes as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4859228692Sdes 4860228692Sdesfi 4861228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4862228692Sdes$as_echo "$ac_cv_build" >&6; } 4863228692Sdescase $ac_cv_build in 4864228692Sdes*-*-*) ;; 4865228692Sdes*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4866228692Sdesesac 4867228692Sdesbuild=$ac_cv_build 4868228692Sdesac_save_IFS=$IFS; IFS='-' 4869228692Sdesset x $ac_cv_build 4870228692Sdesshift 4871228692Sdesbuild_cpu=$1 4872228692Sdesbuild_vendor=$2 4873228692Sdesshift; shift 4874228692Sdes# Remember, the first character of IFS is used to create $*, 4875228692Sdes# except with old shells: 4876228692Sdesbuild_os=$* 4877228692SdesIFS=$ac_save_IFS 4878228692Sdescase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4879228692Sdes 4880228692Sdes 4881228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4882228692Sdes$as_echo_n "checking host system type... " >&6; } 4883228692Sdesif ${ac_cv_host+:} false; then : 4884228692Sdes $as_echo_n "(cached) " >&6 4885228692Sdeselse 4886228692Sdes if test "x$host_alias" = x; then 4887228692Sdes ac_cv_host=$ac_cv_build 4888228692Sdeselse 4889228692Sdes ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4890228692Sdes as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4891228692Sdesfi 4892228692Sdes 4893228692Sdesfi 4894228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4895228692Sdes$as_echo "$ac_cv_host" >&6; } 4896228692Sdescase $ac_cv_host in 4897228692Sdes*-*-*) ;; 4898228692Sdes*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4899228692Sdesesac 4900228692Sdeshost=$ac_cv_host 4901228692Sdesac_save_IFS=$IFS; IFS='-' 4902228692Sdesset x $ac_cv_host 4903228692Sdesshift 4904228692Sdeshost_cpu=$1 4905228692Sdeshost_vendor=$2 4906228692Sdesshift; shift 4907228692Sdes# Remember, the first character of IFS is used to create $*, 4908228692Sdes# except with old shells: 4909228692Sdeshost_os=$* 4910228692SdesIFS=$ac_save_IFS 4911228692Sdescase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4912228692Sdes 4913228692Sdes 4914228692Sdes# Backslashify metacharacters that are still active within 4915228692Sdes# double-quoted strings. 4916228692Sdessed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4917228692Sdes 4918228692Sdes# Same as above, but do not quote variable references. 4919228692Sdesdouble_quote_subst='s/\(["`\\]\)/\\\1/g' 4920228692Sdes 4921228692Sdes# Sed substitution to delay expansion of an escaped shell variable in a 4922228692Sdes# double_quote_subst'ed string. 4923228692Sdesdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4924228692Sdes 4925228692Sdes# Sed substitution to delay expansion of an escaped single quote. 4926228692Sdesdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4927228692Sdes 4928228692Sdes# Sed substitution to avoid accidental globbing in evaled expressions 4929228692Sdesno_glob_subst='s/\*/\\\*/g' 4930228692Sdes 4931228692SdesECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4932228692SdesECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4933228692SdesECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4934228692Sdes 4935228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4936228692Sdes$as_echo_n "checking how to print strings... " >&6; } 4937228692Sdes# Test print first, because it will be a builtin if present. 4938228692Sdesif test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4939228692Sdes test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4940228692Sdes ECHO='print -r --' 4941228692Sdeselif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4942228692Sdes ECHO='printf %s\n' 4943228692Sdeselse 4944228692Sdes # Use this function as a fallback that always works. 4945228692Sdes func_fallback_echo () 4946228692Sdes { 4947228692Sdes eval 'cat <<_LTECHO_EOF 4948228692Sdes$1 4949228692Sdes_LTECHO_EOF' 4950228692Sdes } 4951228692Sdes ECHO='func_fallback_echo' 4952228692Sdesfi 4953228692Sdes 4954228692Sdes# func_echo_all arg... 4955228692Sdes# Invoke $ECHO with all args, space-separated. 4956228692Sdesfunc_echo_all () 4957228692Sdes{ 4958228692Sdes $ECHO "" 4959228692Sdes} 4960228692Sdes 4961228692Sdescase "$ECHO" in 4962228692Sdes printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4963228692Sdes$as_echo "printf" >&6; } ;; 4964228692Sdes print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4965228692Sdes$as_echo "print -r" >&6; } ;; 4966228692Sdes *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4967228692Sdes$as_echo "cat" >&6; } ;; 4968228692Sdesesac 4969228692Sdes 4970228692Sdes 4971228692Sdes 4972228692Sdes 4973228692Sdes 4974228692Sdes 4975228692Sdes 4976228692Sdes 4977228692Sdes 4978228692Sdes 4979228692Sdes 4980228692Sdes 4981228692Sdes 4982228692Sdes 4983228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4984228692Sdes$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4985228692Sdesif ${ac_cv_path_SED+:} false; then : 4986228692Sdes $as_echo_n "(cached) " >&6 4987228692Sdeselse 4988228692Sdes ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4989228692Sdes for ac_i in 1 2 3 4 5 6 7; do 4990228692Sdes ac_script="$ac_script$as_nl$ac_script" 4991228692Sdes done 4992228692Sdes echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4993228692Sdes { ac_script=; unset ac_script;} 4994228692Sdes if test -z "$SED"; then 4995228692Sdes ac_path_SED_found=false 4996228692Sdes # Loop through the user's path and test for each of PROGNAME-LIST 4997228692Sdes as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4998228692Sdesfor as_dir in $PATH 4999228692Sdesdo 5000228692Sdes IFS=$as_save_IFS 5001228692Sdes test -z "$as_dir" && as_dir=. 5002228692Sdes for ac_prog in sed gsed; do 5003228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 5004228692Sdes ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5005255376Sdes as_fn_executable_p "$ac_path_SED" || continue 5006228692Sdes# Check for GNU ac_path_SED and select it if it is found. 5007228692Sdes # Check for GNU $ac_path_SED 5008228692Sdescase `"$ac_path_SED" --version 2>&1` in 5009228692Sdes*GNU*) 5010228692Sdes ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5011228692Sdes*) 5012228692Sdes ac_count=0 5013228692Sdes $as_echo_n 0123456789 >"conftest.in" 5014228692Sdes while : 5015228692Sdes do 5016228692Sdes cat "conftest.in" "conftest.in" >"conftest.tmp" 5017228692Sdes mv "conftest.tmp" "conftest.in" 5018228692Sdes cp "conftest.in" "conftest.nl" 5019228692Sdes $as_echo '' >> "conftest.nl" 5020228692Sdes "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5021228692Sdes diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5022228692Sdes as_fn_arith $ac_count + 1 && ac_count=$as_val 5023228692Sdes if test $ac_count -gt ${ac_path_SED_max-0}; then 5024228692Sdes # Best one so far, save it but keep looking for a better one 5025228692Sdes ac_cv_path_SED="$ac_path_SED" 5026228692Sdes ac_path_SED_max=$ac_count 5027228692Sdes fi 5028228692Sdes # 10*(2^10) chars as input seems more than enough 5029228692Sdes test $ac_count -gt 10 && break 5030228692Sdes done 5031228692Sdes rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5032228692Sdesesac 5033228692Sdes 5034228692Sdes $ac_path_SED_found && break 3 5035228692Sdes done 5036228692Sdes done 5037228692Sdes done 5038228692SdesIFS=$as_save_IFS 5039228692Sdes if test -z "$ac_cv_path_SED"; then 5040228692Sdes as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5041228692Sdes fi 5042228692Sdeselse 5043228692Sdes ac_cv_path_SED=$SED 5044228692Sdesfi 5045228692Sdes 5046228692Sdesfi 5047228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5048228692Sdes$as_echo "$ac_cv_path_SED" >&6; } 5049228692Sdes SED="$ac_cv_path_SED" 5050228692Sdes rm -f conftest.sed 5051228692Sdes 5052228692Sdestest -z "$SED" && SED=sed 5053228692SdesXsed="$SED -e 1s/^X//" 5054228692Sdes 5055228692Sdes 5056228692Sdes 5057228692Sdes 5058228692Sdes 5059228692Sdes 5060228692Sdes 5061228692Sdes 5062228692Sdes 5063228692Sdes 5064228692Sdes 5065228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5066228692Sdes$as_echo_n "checking for fgrep... " >&6; } 5067228692Sdesif ${ac_cv_path_FGREP+:} false; then : 5068228692Sdes $as_echo_n "(cached) " >&6 5069228692Sdeselse 5070228692Sdes if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5071228692Sdes then ac_cv_path_FGREP="$GREP -F" 5072228692Sdes else 5073228692Sdes if test -z "$FGREP"; then 5074228692Sdes ac_path_FGREP_found=false 5075228692Sdes # Loop through the user's path and test for each of PROGNAME-LIST 5076228692Sdes as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5077228692Sdesfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5078228692Sdesdo 5079228692Sdes IFS=$as_save_IFS 5080228692Sdes test -z "$as_dir" && as_dir=. 5081228692Sdes for ac_prog in fgrep; do 5082228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 5083228692Sdes ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5084255376Sdes as_fn_executable_p "$ac_path_FGREP" || continue 5085228692Sdes# Check for GNU ac_path_FGREP and select it if it is found. 5086228692Sdes # Check for GNU $ac_path_FGREP 5087228692Sdescase `"$ac_path_FGREP" --version 2>&1` in 5088228692Sdes*GNU*) 5089228692Sdes ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5090228692Sdes*) 5091228692Sdes ac_count=0 5092228692Sdes $as_echo_n 0123456789 >"conftest.in" 5093228692Sdes while : 5094228692Sdes do 5095228692Sdes cat "conftest.in" "conftest.in" >"conftest.tmp" 5096228692Sdes mv "conftest.tmp" "conftest.in" 5097228692Sdes cp "conftest.in" "conftest.nl" 5098228692Sdes $as_echo 'FGREP' >> "conftest.nl" 5099228692Sdes "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5100228692Sdes diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5101228692Sdes as_fn_arith $ac_count + 1 && ac_count=$as_val 5102228692Sdes if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5103228692Sdes # Best one so far, save it but keep looking for a better one 5104228692Sdes ac_cv_path_FGREP="$ac_path_FGREP" 5105228692Sdes ac_path_FGREP_max=$ac_count 5106228692Sdes fi 5107228692Sdes # 10*(2^10) chars as input seems more than enough 5108228692Sdes test $ac_count -gt 10 && break 5109228692Sdes done 5110228692Sdes rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5111228692Sdesesac 5112228692Sdes 5113228692Sdes $ac_path_FGREP_found && break 3 5114228692Sdes done 5115228692Sdes done 5116228692Sdes done 5117228692SdesIFS=$as_save_IFS 5118228692Sdes if test -z "$ac_cv_path_FGREP"; then 5119228692Sdes as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5120228692Sdes fi 5121228692Sdeselse 5122228692Sdes ac_cv_path_FGREP=$FGREP 5123228692Sdesfi 5124228692Sdes 5125174832Sdes fi 5126174832Sdesfi 5127228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5128228692Sdes$as_echo "$ac_cv_path_FGREP" >&6; } 5129228692Sdes FGREP="$ac_cv_path_FGREP" 5130174832Sdes 5131174832Sdes 5132228692Sdestest -z "$GREP" && GREP=grep 5133174832Sdes 5134228692Sdes 5135228692Sdes 5136228692Sdes 5137228692Sdes 5138228692Sdes 5139228692Sdes 5140228692Sdes 5141228692Sdes 5142228692Sdes 5143228692Sdes 5144228692Sdes 5145228692Sdes 5146228692Sdes 5147228692Sdes 5148228692Sdes 5149228692Sdes 5150228692Sdes 5151228692Sdes 5152174832Sdes# Check whether --with-gnu-ld was given. 5153228692Sdesif test "${with_gnu_ld+set}" = set; then : 5154174832Sdes withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5155141098Sdeselse 5156141098Sdes with_gnu_ld=no 5157174832Sdesfi 5158174832Sdes 5159141098Sdesac_prog=ld 5160141098Sdesif test "$GCC" = yes; then 5161141098Sdes # Check if gcc -print-prog-name=ld gives a path. 5162228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5163228692Sdes$as_echo_n "checking for ld used by $CC... " >&6; } 5164141098Sdes case $host in 5165141098Sdes *-*-mingw*) 5166141098Sdes # gcc leaves a trailing carriage return which upsets mingw 5167141098Sdes ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5168141098Sdes *) 5169141098Sdes ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5170141098Sdes esac 5171141098Sdes case $ac_prog in 5172141098Sdes # Accept absolute paths. 5173141098Sdes [\\/]* | ?:[\\/]*) 5174141098Sdes re_direlt='/[^/][^/]*/\.\./' 5175141098Sdes # Canonicalize the pathname of ld 5176228692Sdes ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5177228692Sdes while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5178228692Sdes ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5179141098Sdes done 5180141098Sdes test -z "$LD" && LD="$ac_prog" 5181141098Sdes ;; 5182141098Sdes "") 5183141098Sdes # If it fails, then pretend we aren't using GCC. 5184141098Sdes ac_prog=ld 5185141098Sdes ;; 5186141098Sdes *) 5187141098Sdes # If it is relative, then search for the first ld in PATH. 5188141098Sdes with_gnu_ld=unknown 5189141098Sdes ;; 5190141098Sdes esac 5191141098Sdeselif test "$with_gnu_ld" = yes; then 5192228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5193228692Sdes$as_echo_n "checking for GNU ld... " >&6; } 5194141098Sdeselse 5195228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5196228692Sdes$as_echo_n "checking for non-GNU ld... " >&6; } 5197141098Sdesfi 5198228692Sdesif ${lt_cv_path_LD+:} false; then : 5199228692Sdes $as_echo_n "(cached) " >&6 5200141098Sdeselse 5201141098Sdes if test -z "$LD"; then 5202141098Sdes lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5203141098Sdes for ac_dir in $PATH; do 5204141098Sdes IFS="$lt_save_ifs" 5205141098Sdes test -z "$ac_dir" && ac_dir=. 5206141098Sdes if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5207141098Sdes lt_cv_path_LD="$ac_dir/$ac_prog" 5208141098Sdes # Check to see if the program is GNU ld. I'd rather use --version, 5209174832Sdes # but apparently some variants of GNU ld only accept -v. 5210141098Sdes # Break only if it was the GNU/non-GNU ld that we prefer. 5211141098Sdes case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5212141098Sdes *GNU* | *'with BFD'*) 5213141098Sdes test "$with_gnu_ld" != no && break 5214141098Sdes ;; 5215141098Sdes *) 5216141098Sdes test "$with_gnu_ld" != yes && break 5217141098Sdes ;; 5218141098Sdes esac 5219141098Sdes fi 5220141098Sdes done 5221141098Sdes IFS="$lt_save_ifs" 5222141098Sdeselse 5223141098Sdes lt_cv_path_LD="$LD" # Let the user override the test with a path. 5224141098Sdesfi 5225141098Sdesfi 5226141098Sdes 5227141098SdesLD="$lt_cv_path_LD" 5228141098Sdesif test -n "$LD"; then 5229228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5230228692Sdes$as_echo "$LD" >&6; } 5231141098Sdeselse 5232228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5233228692Sdes$as_echo "no" >&6; } 5234141098Sdesfi 5235228692Sdestest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5236228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5237228692Sdes$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5238228692Sdesif ${lt_cv_prog_gnu_ld+:} false; then : 5239228692Sdes $as_echo_n "(cached) " >&6 5240141098Sdeselse 5241174832Sdes # I'd rather use --version here, but apparently some GNU lds only accept -v. 5242141098Sdescase `$LD -v 2>&1 </dev/null` in 5243141098Sdes*GNU* | *'with BFD'*) 5244141098Sdes lt_cv_prog_gnu_ld=yes 5245141098Sdes ;; 5246141098Sdes*) 5247141098Sdes lt_cv_prog_gnu_ld=no 5248141098Sdes ;; 5249141098Sdesesac 5250141098Sdesfi 5251228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5252228692Sdes$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5253141098Sdeswith_gnu_ld=$lt_cv_prog_gnu_ld 5254141098Sdes 5255141098Sdes 5256141098Sdes 5257228692Sdes 5258228692Sdes 5259228692Sdes 5260228692Sdes 5261228692Sdes 5262228692Sdes 5263228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5264228692Sdes$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5265228692Sdesif ${lt_cv_path_NM+:} false; then : 5266228692Sdes $as_echo_n "(cached) " >&6 5267141098Sdeselse 5268141098Sdes if test -n "$NM"; then 5269141098Sdes # Let the user override the test. 5270141098Sdes lt_cv_path_NM="$NM" 5271141098Sdeselse 5272174832Sdes lt_nm_to_check="${ac_tool_prefix}nm" 5273174832Sdes if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5274174832Sdes lt_nm_to_check="$lt_nm_to_check nm" 5275174832Sdes fi 5276174832Sdes for lt_tmp_nm in $lt_nm_to_check; do 5277174832Sdes lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5278174832Sdes for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5279174832Sdes IFS="$lt_save_ifs" 5280174832Sdes test -z "$ac_dir" && ac_dir=. 5281174832Sdes tmp_nm="$ac_dir/$lt_tmp_nm" 5282174832Sdes if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5283174832Sdes # Check to see if the nm accepts a BSD-compat flag. 5284174832Sdes # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5285174832Sdes # nm: unknown option "B" ignored 5286174832Sdes # Tru64's nm complains that /dev/null is an invalid object file 5287174832Sdes case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5288174832Sdes */dev/null* | *'Invalid file or object type'*) 5289174832Sdes lt_cv_path_NM="$tmp_nm -B" 5290141098Sdes break 5291141098Sdes ;; 5292141098Sdes *) 5293174832Sdes case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5294174832Sdes */dev/null*) 5295174832Sdes lt_cv_path_NM="$tmp_nm -p" 5296174832Sdes break 5297174832Sdes ;; 5298174832Sdes *) 5299174832Sdes lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5300174832Sdes continue # so that we can try to find one that supports BSD flags 5301174832Sdes ;; 5302174832Sdes esac 5303141098Sdes ;; 5304141098Sdes esac 5305174832Sdes fi 5306174832Sdes done 5307174832Sdes IFS="$lt_save_ifs" 5308141098Sdes done 5309228692Sdes : ${lt_cv_path_NM=no} 5310141098Sdesfi 5311141098Sdesfi 5312228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5313228692Sdes$as_echo "$lt_cv_path_NM" >&6; } 5314228692Sdesif test "$lt_cv_path_NM" != "no"; then 5315228692Sdes NM="$lt_cv_path_NM" 5316228692Sdeselse 5317228692Sdes # Didn't find any BSD compatible name lister, look for dumpbin. 5318228692Sdes if test -n "$DUMPBIN"; then : 5319228692Sdes # Let the user override the test. 5320228692Sdes else 5321228692Sdes if test -n "$ac_tool_prefix"; then 5322228692Sdes for ac_prog in dumpbin "link -dump" 5323228692Sdes do 5324228692Sdes # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5325228692Sdesset dummy $ac_tool_prefix$ac_prog; ac_word=$2 5326228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5327228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 5328228692Sdesif ${ac_cv_prog_DUMPBIN+:} false; then : 5329228692Sdes $as_echo_n "(cached) " >&6 5330228692Sdeselse 5331228692Sdes if test -n "$DUMPBIN"; then 5332228692Sdes ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5333228692Sdeselse 5334228692Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5335228692Sdesfor as_dir in $PATH 5336228692Sdesdo 5337228692Sdes IFS=$as_save_IFS 5338228692Sdes test -z "$as_dir" && as_dir=. 5339228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 5340255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5341228692Sdes ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5342228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5343228692Sdes break 2 5344228692Sdes fi 5345228692Sdesdone 5346228692Sdes done 5347228692SdesIFS=$as_save_IFS 5348141098Sdes 5349228692Sdesfi 5350228692Sdesfi 5351228692SdesDUMPBIN=$ac_cv_prog_DUMPBIN 5352228692Sdesif test -n "$DUMPBIN"; then 5353228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5354228692Sdes$as_echo "$DUMPBIN" >&6; } 5355228692Sdeselse 5356228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5357228692Sdes$as_echo "no" >&6; } 5358228692Sdesfi 5359228692Sdes 5360228692Sdes 5361228692Sdes test -n "$DUMPBIN" && break 5362228692Sdes done 5363228692Sdesfi 5364228692Sdesif test -z "$DUMPBIN"; then 5365228692Sdes ac_ct_DUMPBIN=$DUMPBIN 5366228692Sdes for ac_prog in dumpbin "link -dump" 5367228692Sdesdo 5368228692Sdes # Extract the first word of "$ac_prog", so it can be a program name with args. 5369228692Sdesset dummy $ac_prog; ac_word=$2 5370228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5371228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 5372228692Sdesif ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5373228692Sdes $as_echo_n "(cached) " >&6 5374228692Sdeselse 5375228692Sdes if test -n "$ac_ct_DUMPBIN"; then 5376228692Sdes ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5377228692Sdeselse 5378228692Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5379228692Sdesfor as_dir in $PATH 5380228692Sdesdo 5381228692Sdes IFS=$as_save_IFS 5382228692Sdes test -z "$as_dir" && as_dir=. 5383228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 5384255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5385228692Sdes ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5386228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5387228692Sdes break 2 5388228692Sdes fi 5389228692Sdesdone 5390228692Sdes done 5391228692SdesIFS=$as_save_IFS 5392228692Sdes 5393228692Sdesfi 5394228692Sdesfi 5395228692Sdesac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5396228692Sdesif test -n "$ac_ct_DUMPBIN"; then 5397228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5398228692Sdes$as_echo "$ac_ct_DUMPBIN" >&6; } 5399228692Sdeselse 5400228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5401228692Sdes$as_echo "no" >&6; } 5402228692Sdesfi 5403228692Sdes 5404228692Sdes 5405228692Sdes test -n "$ac_ct_DUMPBIN" && break 5406228692Sdesdone 5407228692Sdes 5408228692Sdes if test "x$ac_ct_DUMPBIN" = x; then 5409228692Sdes DUMPBIN=":" 5410228692Sdes else 5411228692Sdes case $cross_compiling:$ac_tool_warned in 5412228692Sdesyes:) 5413228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5414228692Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5415228692Sdesac_tool_warned=yes ;; 5416228692Sdesesac 5417228692Sdes DUMPBIN=$ac_ct_DUMPBIN 5418228692Sdes fi 5419228692Sdesfi 5420228692Sdes 5421228692Sdes case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5422228692Sdes *COFF*) 5423228692Sdes DUMPBIN="$DUMPBIN -symbols" 5424228692Sdes ;; 5425228692Sdes *) 5426228692Sdes DUMPBIN=: 5427228692Sdes ;; 5428228692Sdes esac 5429228692Sdes fi 5430228692Sdes 5431228692Sdes if test "$DUMPBIN" != ":"; then 5432228692Sdes NM="$DUMPBIN" 5433228692Sdes fi 5434228692Sdesfi 5435228692Sdestest -z "$NM" && NM=nm 5436228692Sdes 5437228692Sdes 5438228692Sdes 5439228692Sdes 5440228692Sdes 5441228692Sdes 5442228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5443228692Sdes$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5444228692Sdesif ${lt_cv_nm_interface+:} false; then : 5445228692Sdes $as_echo_n "(cached) " >&6 5446228692Sdeselse 5447228692Sdes lt_cv_nm_interface="BSD nm" 5448228692Sdes echo "int some_variable = 0;" > conftest.$ac_ext 5449228692Sdes (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5450228692Sdes (eval "$ac_compile" 2>conftest.err) 5451228692Sdes cat conftest.err >&5 5452228692Sdes (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5453228692Sdes (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5454228692Sdes cat conftest.err >&5 5455228692Sdes (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5456228692Sdes cat conftest.out >&5 5457228692Sdes if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5458228692Sdes lt_cv_nm_interface="MS dumpbin" 5459228692Sdes fi 5460228692Sdes rm -f conftest* 5461228692Sdesfi 5462228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5463228692Sdes$as_echo "$lt_cv_nm_interface" >&6; } 5464228692Sdes 5465228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5466228692Sdes$as_echo_n "checking whether ln -s works... " >&6; } 5467141098SdesLN_S=$as_ln_s 5468141098Sdesif test "$LN_S" = "ln -s"; then 5469228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5470228692Sdes$as_echo "yes" >&6; } 5471141098Sdeselse 5472228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5473228692Sdes$as_echo "no, using $LN_S" >&6; } 5474141098Sdesfi 5475141098Sdes 5476228692Sdes# find the maximum length of command line arguments 5477228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5478228692Sdes$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5479228692Sdesif ${lt_cv_sys_max_cmd_len+:} false; then : 5480228692Sdes $as_echo_n "(cached) " >&6 5481141098Sdeselse 5482228692Sdes i=0 5483228692Sdes teststring="ABCD" 5484228692Sdes 5485228692Sdes case $build_os in 5486228692Sdes msdosdjgpp*) 5487228692Sdes # On DJGPP, this test can blow up pretty badly due to problems in libc 5488228692Sdes # (any single argument exceeding 2000 bytes causes a buffer overrun 5489228692Sdes # during glob expansion). Even if it were fixed, the result of this 5490228692Sdes # check would be larger than it should be. 5491228692Sdes lt_cv_sys_max_cmd_len=12288; # 12K is about right 5492228692Sdes ;; 5493228692Sdes 5494228692Sdes gnu*) 5495228692Sdes # Under GNU Hurd, this test is not required because there is 5496228692Sdes # no limit to the length of command line arguments. 5497228692Sdes # Libtool will interpret -1 as no limit whatsoever 5498228692Sdes lt_cv_sys_max_cmd_len=-1; 5499228692Sdes ;; 5500228692Sdes 5501228692Sdes cygwin* | mingw* | cegcc*) 5502228692Sdes # On Win9x/ME, this test blows up -- it succeeds, but takes 5503228692Sdes # about 5 minutes as the teststring grows exponentially. 5504228692Sdes # Worse, since 9x/ME are not pre-emptively multitasking, 5505228692Sdes # you end up with a "frozen" computer, even though with patience 5506228692Sdes # the test eventually succeeds (with a max line length of 256k). 5507228692Sdes # Instead, let's just punt: use the minimum linelength reported by 5508228692Sdes # all of the supported platforms: 8192 (on NT/2K/XP). 5509228692Sdes lt_cv_sys_max_cmd_len=8192; 5510228692Sdes ;; 5511228692Sdes 5512228692Sdes mint*) 5513228692Sdes # On MiNT this can take a long time and run out of memory. 5514228692Sdes lt_cv_sys_max_cmd_len=8192; 5515228692Sdes ;; 5516228692Sdes 5517228692Sdes amigaos*) 5518228692Sdes # On AmigaOS with pdksh, this test takes hours, literally. 5519228692Sdes # So we just punt and use a minimum line length of 8192. 5520228692Sdes lt_cv_sys_max_cmd_len=8192; 5521228692Sdes ;; 5522228692Sdes 5523228692Sdes netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5524228692Sdes # This has been around since 386BSD, at least. Likely further. 5525228692Sdes if test -x /sbin/sysctl; then 5526228692Sdes lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5527228692Sdes elif test -x /usr/sbin/sysctl; then 5528228692Sdes lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5529228692Sdes else 5530228692Sdes lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5531228692Sdes fi 5532228692Sdes # And add a safety zone 5533228692Sdes lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5534228692Sdes lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5535228692Sdes ;; 5536228692Sdes 5537228692Sdes interix*) 5538228692Sdes # We know the value 262144 and hardcode it with a safety zone (like BSD) 5539228692Sdes lt_cv_sys_max_cmd_len=196608 5540228692Sdes ;; 5541228692Sdes 5542236109Sdes os2*) 5543236109Sdes # The test takes a long time on OS/2. 5544236109Sdes lt_cv_sys_max_cmd_len=8192 5545236109Sdes ;; 5546236109Sdes 5547228692Sdes osf*) 5548228692Sdes # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5549228692Sdes # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5550228692Sdes # nice to cause kernel panics so lets avoid the loop below. 5551228692Sdes # First set a reasonable default. 5552228692Sdes lt_cv_sys_max_cmd_len=16384 5553228692Sdes # 5554228692Sdes if test -x /sbin/sysconfig; then 5555228692Sdes case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5556228692Sdes *1*) lt_cv_sys_max_cmd_len=-1 ;; 5557228692Sdes esac 5558228692Sdes fi 5559228692Sdes ;; 5560228692Sdes sco3.2v5*) 5561228692Sdes lt_cv_sys_max_cmd_len=102400 5562228692Sdes ;; 5563228692Sdes sysv5* | sco5v6* | sysv4.2uw2*) 5564228692Sdes kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5565228692Sdes if test -n "$kargmax"; then 5566228692Sdes lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5567228692Sdes else 5568228692Sdes lt_cv_sys_max_cmd_len=32768 5569228692Sdes fi 5570228692Sdes ;; 5571228692Sdes *) 5572228692Sdes lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5573228692Sdes if test -n "$lt_cv_sys_max_cmd_len"; then 5574228692Sdes lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5575228692Sdes lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5576228692Sdes else 5577228692Sdes # Make teststring a little bigger before we do anything with it. 5578228692Sdes # a 1K string should be a reasonable start. 5579228692Sdes for i in 1 2 3 4 5 6 7 8 ; do 5580228692Sdes teststring=$teststring$teststring 5581228692Sdes done 5582228692Sdes SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5583228692Sdes # If test is not a shell built-in, we'll probably end up computing a 5584228692Sdes # maximum length that is only half of the actual maximum length, but 5585228692Sdes # we can't tell. 5586236109Sdes while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5587228692Sdes = "X$teststring$teststring"; } >/dev/null 2>&1 && 5588228692Sdes test $i != 17 # 1/2 MB should be enough 5589228692Sdes do 5590228692Sdes i=`expr $i + 1` 5591228692Sdes teststring=$teststring$teststring 5592228692Sdes done 5593228692Sdes # Only check the string length outside the loop. 5594228692Sdes lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5595228692Sdes teststring= 5596228692Sdes # Add a significant safety factor because C++ compilers can tack on 5597228692Sdes # massive amounts of additional arguments before passing them to the 5598228692Sdes # linker. It appears as though 1/2 is a usable value. 5599228692Sdes lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5600228692Sdes fi 5601228692Sdes ;; 5602228692Sdes esac 5603228692Sdes 5604228692Sdesfi 5605228692Sdes 5606228692Sdesif test -n $lt_cv_sys_max_cmd_len ; then 5607228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5608228692Sdes$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5609228692Sdeselse 5610228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5611228692Sdes$as_echo "none" >&6; } 5612228692Sdesfi 5613228692Sdesmax_cmd_len=$lt_cv_sys_max_cmd_len 5614228692Sdes 5615228692Sdes 5616228692Sdes 5617228692Sdes 5618228692Sdes 5619228692Sdes 5620228692Sdes: ${CP="cp -f"} 5621228692Sdes: ${MV="mv -f"} 5622228692Sdes: ${RM="rm -f"} 5623228692Sdes 5624228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5625228692Sdes$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5626228692Sdes# Try some XSI features 5627228692Sdesxsi_shell=no 5628228692Sdes( _lt_dummy="a/b/c" 5629228692Sdes test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5630228692Sdes = c,a/b,b/c, \ 5631228692Sdes && eval 'test $(( 1 + 1 )) -eq 2 \ 5632228692Sdes && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5633228692Sdes && xsi_shell=yes 5634228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5635228692Sdes$as_echo "$xsi_shell" >&6; } 5636228692Sdes 5637228692Sdes 5638228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5639228692Sdes$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5640228692Sdeslt_shell_append=no 5641228692Sdes( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5642228692Sdes >/dev/null 2>&1 \ 5643228692Sdes && lt_shell_append=yes 5644228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5645228692Sdes$as_echo "$lt_shell_append" >&6; } 5646228692Sdes 5647228692Sdes 5648228692Sdesif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5649228692Sdes lt_unset=unset 5650228692Sdeselse 5651228692Sdes lt_unset=false 5652228692Sdesfi 5653228692Sdes 5654228692Sdes 5655228692Sdes 5656228692Sdes 5657228692Sdes 5658228692Sdes# test EBCDIC or ASCII 5659228692Sdescase `echo X|tr X '\101'` in 5660228692Sdes A) # ASCII based system 5661228692Sdes # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5662228692Sdes lt_SP2NL='tr \040 \012' 5663228692Sdes lt_NL2SP='tr \015\012 \040\040' 5664228692Sdes ;; 5665228692Sdes *) # EBCDIC based system 5666228692Sdes lt_SP2NL='tr \100 \n' 5667228692Sdes lt_NL2SP='tr \r\n \100\100' 5668228692Sdes ;; 5669228692Sdesesac 5670228692Sdes 5671228692Sdes 5672228692Sdes 5673228692Sdes 5674228692Sdes 5675228692Sdes 5676228692Sdes 5677228692Sdes 5678228692Sdes 5679228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5680228692Sdes$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5681228692Sdesif ${lt_cv_to_host_file_cmd+:} false; then : 5682228692Sdes $as_echo_n "(cached) " >&6 5683228692Sdeselse 5684228692Sdes case $host in 5685228692Sdes *-*-mingw* ) 5686228692Sdes case $build in 5687228692Sdes *-*-mingw* ) # actually msys 5688228692Sdes lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5689228692Sdes ;; 5690228692Sdes *-*-cygwin* ) 5691228692Sdes lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5692228692Sdes ;; 5693228692Sdes * ) # otherwise, assume *nix 5694228692Sdes lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5695228692Sdes ;; 5696228692Sdes esac 5697228692Sdes ;; 5698228692Sdes *-*-cygwin* ) 5699228692Sdes case $build in 5700228692Sdes *-*-mingw* ) # actually msys 5701228692Sdes lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5702228692Sdes ;; 5703228692Sdes *-*-cygwin* ) 5704228692Sdes lt_cv_to_host_file_cmd=func_convert_file_noop 5705228692Sdes ;; 5706228692Sdes * ) # otherwise, assume *nix 5707228692Sdes lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5708228692Sdes ;; 5709228692Sdes esac 5710228692Sdes ;; 5711228692Sdes * ) # unhandled hosts (and "normal" native builds) 5712228692Sdes lt_cv_to_host_file_cmd=func_convert_file_noop 5713228692Sdes ;; 5714228692Sdesesac 5715228692Sdes 5716228692Sdesfi 5717228692Sdes 5718228692Sdesto_host_file_cmd=$lt_cv_to_host_file_cmd 5719228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5720228692Sdes$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5721228692Sdes 5722228692Sdes 5723228692Sdes 5724228692Sdes 5725228692Sdes 5726228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5727228692Sdes$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5728228692Sdesif ${lt_cv_to_tool_file_cmd+:} false; then : 5729228692Sdes $as_echo_n "(cached) " >&6 5730228692Sdeselse 5731228692Sdes #assume ordinary cross tools, or native build. 5732228692Sdeslt_cv_to_tool_file_cmd=func_convert_file_noop 5733228692Sdescase $host in 5734228692Sdes *-*-mingw* ) 5735228692Sdes case $build in 5736228692Sdes *-*-mingw* ) # actually msys 5737228692Sdes lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5738228692Sdes ;; 5739228692Sdes esac 5740228692Sdes ;; 5741228692Sdesesac 5742228692Sdes 5743228692Sdesfi 5744228692Sdes 5745228692Sdesto_tool_file_cmd=$lt_cv_to_tool_file_cmd 5746228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5747228692Sdes$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5748228692Sdes 5749228692Sdes 5750228692Sdes 5751228692Sdes 5752228692Sdes 5753228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5754228692Sdes$as_echo_n "checking for $LD option to reload object files... " >&6; } 5755228692Sdesif ${lt_cv_ld_reload_flag+:} false; then : 5756228692Sdes $as_echo_n "(cached) " >&6 5757228692Sdeselse 5758228692Sdes lt_cv_ld_reload_flag='-r' 5759228692Sdesfi 5760228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5761228692Sdes$as_echo "$lt_cv_ld_reload_flag" >&6; } 5762228692Sdesreload_flag=$lt_cv_ld_reload_flag 5763228692Sdescase $reload_flag in 5764228692Sdes"" | " "*) ;; 5765228692Sdes*) reload_flag=" $reload_flag" ;; 5766228692Sdesesac 5767228692Sdesreload_cmds='$LD$reload_flag -o $output$reload_objs' 5768228692Sdescase $host_os in 5769228692Sdes cygwin* | mingw* | pw32* | cegcc*) 5770228692Sdes if test "$GCC" != yes; then 5771228692Sdes reload_cmds=false 5772228692Sdes fi 5773228692Sdes ;; 5774228692Sdes darwin*) 5775228692Sdes if test "$GCC" = yes; then 5776228692Sdes reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5777228692Sdes else 5778228692Sdes reload_cmds='$LD$reload_flag -o $output$reload_objs' 5779228692Sdes fi 5780228692Sdes ;; 5781228692Sdesesac 5782228692Sdes 5783228692Sdes 5784228692Sdes 5785228692Sdes 5786228692Sdes 5787228692Sdes 5788228692Sdes 5789228692Sdes 5790228692Sdes 5791228692Sdesif test -n "$ac_tool_prefix"; then 5792228692Sdes # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5793228692Sdesset dummy ${ac_tool_prefix}objdump; ac_word=$2 5794228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5795228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 5796228692Sdesif ${ac_cv_prog_OBJDUMP+:} false; then : 5797228692Sdes $as_echo_n "(cached) " >&6 5798228692Sdeselse 5799228692Sdes if test -n "$OBJDUMP"; then 5800228692Sdes ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5801228692Sdeselse 5802228692Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5803228692Sdesfor as_dir in $PATH 5804228692Sdesdo 5805228692Sdes IFS=$as_save_IFS 5806228692Sdes test -z "$as_dir" && as_dir=. 5807228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 5808255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5809228692Sdes ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5810228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5811228692Sdes break 2 5812228692Sdes fi 5813228692Sdesdone 5814228692Sdes done 5815228692SdesIFS=$as_save_IFS 5816228692Sdes 5817228692Sdesfi 5818228692Sdesfi 5819228692SdesOBJDUMP=$ac_cv_prog_OBJDUMP 5820228692Sdesif test -n "$OBJDUMP"; then 5821228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5822228692Sdes$as_echo "$OBJDUMP" >&6; } 5823228692Sdeselse 5824228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5825228692Sdes$as_echo "no" >&6; } 5826228692Sdesfi 5827228692Sdes 5828228692Sdes 5829228692Sdesfi 5830228692Sdesif test -z "$ac_cv_prog_OBJDUMP"; then 5831228692Sdes ac_ct_OBJDUMP=$OBJDUMP 5832228692Sdes # Extract the first word of "objdump", so it can be a program name with args. 5833228692Sdesset dummy objdump; ac_word=$2 5834228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5835228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 5836228692Sdesif ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5837228692Sdes $as_echo_n "(cached) " >&6 5838228692Sdeselse 5839228692Sdes if test -n "$ac_ct_OBJDUMP"; then 5840228692Sdes ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5841228692Sdeselse 5842228692Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5843228692Sdesfor as_dir in $PATH 5844228692Sdesdo 5845228692Sdes IFS=$as_save_IFS 5846228692Sdes test -z "$as_dir" && as_dir=. 5847228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 5848255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5849228692Sdes ac_cv_prog_ac_ct_OBJDUMP="objdump" 5850228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5851228692Sdes break 2 5852228692Sdes fi 5853228692Sdesdone 5854228692Sdes done 5855228692SdesIFS=$as_save_IFS 5856228692Sdes 5857228692Sdesfi 5858228692Sdesfi 5859228692Sdesac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5860228692Sdesif test -n "$ac_ct_OBJDUMP"; then 5861228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5862228692Sdes$as_echo "$ac_ct_OBJDUMP" >&6; } 5863228692Sdeselse 5864228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5865228692Sdes$as_echo "no" >&6; } 5866228692Sdesfi 5867228692Sdes 5868228692Sdes if test "x$ac_ct_OBJDUMP" = x; then 5869228692Sdes OBJDUMP="false" 5870228692Sdes else 5871228692Sdes case $cross_compiling:$ac_tool_warned in 5872228692Sdesyes:) 5873228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5874228692Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5875228692Sdesac_tool_warned=yes ;; 5876228692Sdesesac 5877228692Sdes OBJDUMP=$ac_ct_OBJDUMP 5878228692Sdes fi 5879228692Sdeselse 5880228692Sdes OBJDUMP="$ac_cv_prog_OBJDUMP" 5881228692Sdesfi 5882228692Sdes 5883228692Sdestest -z "$OBJDUMP" && OBJDUMP=objdump 5884228692Sdes 5885228692Sdes 5886228692Sdes 5887228692Sdes 5888228692Sdes 5889228692Sdes 5890228692Sdes 5891228692Sdes 5892228692Sdes 5893228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5894228692Sdes$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5895228692Sdesif ${lt_cv_deplibs_check_method+:} false; then : 5896228692Sdes $as_echo_n "(cached) " >&6 5897228692Sdeselse 5898141098Sdes lt_cv_file_magic_cmd='$MAGIC_CMD' 5899141098Sdeslt_cv_file_magic_test_file= 5900141098Sdeslt_cv_deplibs_check_method='unknown' 5901141098Sdes# Need to set the preceding variable on all platforms that support 5902141098Sdes# interlibrary dependencies. 5903141098Sdes# 'none' -- dependencies not supported. 5904141098Sdes# `unknown' -- same as none, but documents that we really don't know. 5905141098Sdes# 'pass_all' -- all dependencies passed with no checks. 5906141098Sdes# 'test_compile' -- check by making test program. 5907141098Sdes# 'file_magic [[regex]]' -- check by looking for files in library path 5908141098Sdes# which responds to the $file_magic_cmd with a given extended regex. 5909141098Sdes# If you have `file' or equivalent on your system and you're not sure 5910141098Sdes# whether `pass_all' will *always* work, you probably want this one. 5911141098Sdes 5912141098Sdescase $host_os in 5913228692Sdesaix[4-9]*) 5914141098Sdes lt_cv_deplibs_check_method=pass_all 5915141098Sdes ;; 5916141098Sdes 5917141098Sdesbeos*) 5918141098Sdes lt_cv_deplibs_check_method=pass_all 5919141098Sdes ;; 5920141098Sdes 5921141098Sdesbsdi[45]*) 5922141098Sdes lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5923141098Sdes lt_cv_file_magic_cmd='/usr/bin/file -L' 5924141098Sdes lt_cv_file_magic_test_file=/shlib/libc.so 5925141098Sdes ;; 5926141098Sdes 5927141098Sdescygwin*) 5928141098Sdes # func_win32_libid is a shell function defined in ltmain.sh 5929141098Sdes lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5930141098Sdes lt_cv_file_magic_cmd='func_win32_libid' 5931141098Sdes ;; 5932141098Sdes 5933141098Sdesmingw* | pw32*) 5934141098Sdes # Base MSYS/MinGW do not provide the 'file' command needed by 5935174832Sdes # func_win32_libid shell function, so use a weaker test based on 'objdump', 5936174832Sdes # unless we find 'file', for example because we are cross-compiling. 5937228692Sdes # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5938228692Sdes if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5939174832Sdes lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5940174832Sdes lt_cv_file_magic_cmd='func_win32_libid' 5941174832Sdes else 5942228692Sdes # Keep this pattern in sync with the one in func_win32_libid. 5943228692Sdes lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5944174832Sdes lt_cv_file_magic_cmd='$OBJDUMP -f' 5945174832Sdes fi 5946141098Sdes ;; 5947141098Sdes 5948228692Sdescegcc*) 5949228692Sdes # use the weaker test based on 'objdump'. See mingw*. 5950228692Sdes lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5951228692Sdes lt_cv_file_magic_cmd='$OBJDUMP -f' 5952228692Sdes ;; 5953228692Sdes 5954141098Sdesdarwin* | rhapsody*) 5955141098Sdes lt_cv_deplibs_check_method=pass_all 5956141098Sdes ;; 5957141098Sdes 5958174832Sdesfreebsd* | dragonfly*) 5959228692Sdes if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5960141098Sdes case $host_cpu in 5961141098Sdes i*86 ) 5962141098Sdes # Not sure whether the presence of OpenBSD here was a mistake. 5963141098Sdes # Let's accept both of them until this is cleared up. 5964147455Sdes lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5965141098Sdes lt_cv_file_magic_cmd=/usr/bin/file 5966141098Sdes lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5967141098Sdes ;; 5968141098Sdes esac 5969141098Sdes else 5970141098Sdes lt_cv_deplibs_check_method=pass_all 5971141098Sdes fi 5972141098Sdes ;; 5973141098Sdes 5974141098Sdesgnu*) 5975141098Sdes lt_cv_deplibs_check_method=pass_all 5976141098Sdes ;; 5977141098Sdes 5978228692Sdeshaiku*) 5979228692Sdes lt_cv_deplibs_check_method=pass_all 5980228692Sdes ;; 5981228692Sdes 5982141098Sdeshpux10.20* | hpux11*) 5983141098Sdes lt_cv_file_magic_cmd=/usr/bin/file 5984174832Sdes case $host_cpu in 5985141098Sdes ia64*) 5986141098Sdes lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5987141098Sdes lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5988141098Sdes ;; 5989141098Sdes hppa*64*) 5990228692Sdes 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]' 5991141098Sdes lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5992141098Sdes ;; 5993141098Sdes *) 5994228692Sdes lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5995141098Sdes lt_cv_file_magic_test_file=/usr/lib/libc.sl 5996141098Sdes ;; 5997141098Sdes esac 5998141098Sdes ;; 5999141098Sdes 6000174832Sdesinterix[3-9]*) 6001174832Sdes # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6002174832Sdes lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6003174832Sdes ;; 6004174832Sdes 6005141098Sdesirix5* | irix6* | nonstopux*) 6006141098Sdes case $LD in 6007141098Sdes *-32|*"-32 ") libmagic=32-bit;; 6008141098Sdes *-n32|*"-n32 ") libmagic=N32;; 6009141098Sdes *-64|*"-64 ") libmagic=64-bit;; 6010141098Sdes *) libmagic=never-match;; 6011141098Sdes esac 6012141098Sdes lt_cv_deplibs_check_method=pass_all 6013141098Sdes ;; 6014141098Sdes 6015236109Sdes# This must be glibc/ELF. 6016228692Sdeslinux* | k*bsd*-gnu | kopensolaris*-gnu) 6017141098Sdes lt_cv_deplibs_check_method=pass_all 6018141098Sdes ;; 6019141098Sdes 6020141098Sdesnetbsd*) 6021228692Sdes if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6022141098Sdes lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6023141098Sdes else 6024141098Sdes lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6025141098Sdes fi 6026141098Sdes ;; 6027141098Sdes 6028141098Sdesnewos6*) 6029141098Sdes lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6030141098Sdes lt_cv_file_magic_cmd=/usr/bin/file 6031141098Sdes lt_cv_file_magic_test_file=/usr/lib/libnls.so 6032141098Sdes ;; 6033141098Sdes 6034228692Sdes*nto* | *qnx*) 6035228692Sdes lt_cv_deplibs_check_method=pass_all 6036141098Sdes ;; 6037141098Sdes 6038141098Sdesopenbsd*) 6039228692Sdes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6040141098Sdes lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6041141098Sdes else 6042141098Sdes lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6043141098Sdes fi 6044141098Sdes ;; 6045141098Sdes 6046141098Sdesosf3* | osf4* | osf5*) 6047141098Sdes lt_cv_deplibs_check_method=pass_all 6048141098Sdes ;; 6049141098Sdes 6050174832Sdesrdos*) 6051141098Sdes lt_cv_deplibs_check_method=pass_all 6052141098Sdes ;; 6053141098Sdes 6054141098Sdessolaris*) 6055141098Sdes lt_cv_deplibs_check_method=pass_all 6056141098Sdes ;; 6057141098Sdes 6058228692Sdessysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6059228692Sdes lt_cv_deplibs_check_method=pass_all 6060228692Sdes ;; 6061228692Sdes 6062174832Sdessysv4 | sysv4.3*) 6063141098Sdes case $host_vendor in 6064141098Sdes motorola) 6065141098Sdes 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]' 6066141098Sdes lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6067141098Sdes ;; 6068141098Sdes ncr) 6069141098Sdes lt_cv_deplibs_check_method=pass_all 6070141098Sdes ;; 6071141098Sdes sequent) 6072141098Sdes lt_cv_file_magic_cmd='/bin/file' 6073141098Sdes lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6074141098Sdes ;; 6075141098Sdes sni) 6076141098Sdes lt_cv_file_magic_cmd='/bin/file' 6077141098Sdes lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6078141098Sdes lt_cv_file_magic_test_file=/lib/libc.so 6079141098Sdes ;; 6080141098Sdes siemens) 6081141098Sdes lt_cv_deplibs_check_method=pass_all 6082141098Sdes ;; 6083174832Sdes pc) 6084174832Sdes lt_cv_deplibs_check_method=pass_all 6085174832Sdes ;; 6086141098Sdes esac 6087141098Sdes ;; 6088141098Sdes 6089228692Sdestpf*) 6090141098Sdes lt_cv_deplibs_check_method=pass_all 6091141098Sdes ;; 6092141098Sdesesac 6093141098Sdes 6094141098Sdesfi 6095228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6096228692Sdes$as_echo "$lt_cv_deplibs_check_method" >&6; } 6097228692Sdes 6098228692Sdesfile_magic_glob= 6099228692Sdeswant_nocaseglob=no 6100228692Sdesif test "$build" = "$host"; then 6101228692Sdes case $host_os in 6102228692Sdes mingw* | pw32*) 6103228692Sdes if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6104228692Sdes want_nocaseglob=yes 6105228692Sdes else 6106228692Sdes file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6107228692Sdes fi 6108228692Sdes ;; 6109228692Sdes esac 6110228692Sdesfi 6111228692Sdes 6112141098Sdesfile_magic_cmd=$lt_cv_file_magic_cmd 6113141098Sdesdeplibs_check_method=$lt_cv_deplibs_check_method 6114141098Sdestest -z "$deplibs_check_method" && deplibs_check_method=unknown 6115141098Sdes 6116141098Sdes 6117141098Sdes 6118141098Sdes 6119141098Sdes 6120174832Sdes 6121141098Sdes 6122141098Sdes 6123141098Sdes 6124141098Sdes 6125141098Sdes 6126141098Sdes 6127141098Sdes 6128141098Sdes 6129141098Sdes 6130174832Sdes 6131141098Sdes 6132141098Sdes 6133174832Sdes 6134141098Sdes 6135141098Sdes 6136141098Sdes 6137228692Sdesif test -n "$ac_tool_prefix"; then 6138228692Sdes # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6139228692Sdesset dummy ${ac_tool_prefix}dlltool; ac_word=$2 6140228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6141228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 6142228692Sdesif ${ac_cv_prog_DLLTOOL+:} false; then : 6143228692Sdes $as_echo_n "(cached) " >&6 6144141098Sdeselse 6145228692Sdes if test -n "$DLLTOOL"; then 6146228692Sdes ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6147228692Sdeselse 6148228692Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6149228692Sdesfor as_dir in $PATH 6150141098Sdesdo 6151228692Sdes IFS=$as_save_IFS 6152228692Sdes test -z "$as_dir" && as_dir=. 6153228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 6154255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6155228692Sdes ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6156228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6157228692Sdes break 2 6158228692Sdes fi 6159141098Sdesdone 6160228692Sdes done 6161228692SdesIFS=$as_save_IFS 6162141098Sdes 6163141098Sdesfi 6164141098Sdesfi 6165228692SdesDLLTOOL=$ac_cv_prog_DLLTOOL 6166228692Sdesif test -n "$DLLTOOL"; then 6167228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6168228692Sdes$as_echo "$DLLTOOL" >&6; } 6169141098Sdeselse 6170228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6171228692Sdes$as_echo "no" >&6; } 6172141098Sdesfi 6173174832Sdes 6174141098Sdes 6175141098Sdesfi 6176228692Sdesif test -z "$ac_cv_prog_DLLTOOL"; then 6177228692Sdes ac_ct_DLLTOOL=$DLLTOOL 6178228692Sdes # Extract the first word of "dlltool", so it can be a program name with args. 6179228692Sdesset dummy dlltool; ac_word=$2 6180228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6181228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 6182228692Sdesif ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6183228692Sdes $as_echo_n "(cached) " >&6 6184141098Sdeselse 6185228692Sdes if test -n "$ac_ct_DLLTOOL"; then 6186228692Sdes ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6187141098Sdeselse 6188228692Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6189228692Sdesfor as_dir in $PATH 6190228692Sdesdo 6191228692Sdes IFS=$as_save_IFS 6192228692Sdes test -z "$as_dir" && as_dir=. 6193228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 6194255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6195228692Sdes ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6196228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6197228692Sdes break 2 6198228692Sdes fi 6199228692Sdesdone 6200228692Sdes done 6201228692SdesIFS=$as_save_IFS 6202141098Sdes 6203141098Sdesfi 6204141098Sdesfi 6205228692Sdesac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6206228692Sdesif test -n "$ac_ct_DLLTOOL"; then 6207228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6208228692Sdes$as_echo "$ac_ct_DLLTOOL" >&6; } 6209141098Sdeselse 6210228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6211228692Sdes$as_echo "no" >&6; } 6212141098Sdesfi 6213141098Sdes 6214228692Sdes if test "x$ac_ct_DLLTOOL" = x; then 6215228692Sdes DLLTOOL="false" 6216228692Sdes else 6217228692Sdes case $cross_compiling:$ac_tool_warned in 6218228692Sdesyes:) 6219228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6220228692Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6221228692Sdesac_tool_warned=yes ;; 6222174832Sdesesac 6223228692Sdes DLLTOOL=$ac_ct_DLLTOOL 6224228692Sdes fi 6225141098Sdeselse 6226228692Sdes DLLTOOL="$ac_cv_prog_DLLTOOL" 6227141098Sdesfi 6228174832Sdes 6229228692Sdestest -z "$DLLTOOL" && DLLTOOL=dlltool 6230174832Sdes 6231141098Sdes 6232141098Sdes 6233141098Sdes 6234141098Sdes 6235141098Sdes 6236141098Sdes 6237141098Sdes 6238141098Sdes 6239141098Sdes 6240228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6241228692Sdes$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6242228692Sdesif ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6243228692Sdes $as_echo_n "(cached) " >&6 6244141098Sdeselse 6245228692Sdes lt_cv_sharedlib_from_linklib_cmd='unknown' 6246141098Sdes 6247228692Sdescase $host_os in 6248228692Sdescygwin* | mingw* | pw32* | cegcc*) 6249228692Sdes # two different shell functions defined in ltmain.sh 6250228692Sdes # decide which to use based on capabilities of $DLLTOOL 6251228692Sdes case `$DLLTOOL --help 2>&1` in 6252228692Sdes *--identify-strict*) 6253228692Sdes lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6254228692Sdes ;; 6255228692Sdes *) 6256228692Sdes lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6257228692Sdes ;; 6258228692Sdes esac 6259228692Sdes ;; 6260228692Sdes*) 6261228692Sdes # fallback: assume linklib IS sharedlib 6262228692Sdes lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6263228692Sdes ;; 6264174832Sdesesac 6265141098Sdes 6266117610Sdesfi 6267228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6268228692Sdes$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6269228692Sdessharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6270228692Sdestest -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6271174832Sdes 6272141098Sdes 6273141098Sdes 6274117610Sdes 6275141098Sdes 6276141098Sdes 6277117610Sdes 6278228692Sdesif test -n "$ac_tool_prefix"; then 6279228692Sdes for ac_prog in ar 6280141098Sdes do 6281141098Sdes # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6282141098Sdesset dummy $ac_tool_prefix$ac_prog; ac_word=$2 6283228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6284228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 6285228692Sdesif ${ac_cv_prog_AR+:} false; then : 6286228692Sdes $as_echo_n "(cached) " >&6 6287117610Sdeselse 6288228692Sdes if test -n "$AR"; then 6289228692Sdes ac_cv_prog_AR="$AR" # Let the user override the test. 6290141098Sdeselse 6291141098Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6292141098Sdesfor as_dir in $PATH 6293141098Sdesdo 6294141098Sdes IFS=$as_save_IFS 6295141098Sdes test -z "$as_dir" && as_dir=. 6296228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 6297255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6298228692Sdes ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6299228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6300141098Sdes break 2 6301141098Sdes fi 6302141098Sdesdone 6303228692Sdes done 6304174832SdesIFS=$as_save_IFS 6305141098Sdes 6306141098Sdesfi 6307141098Sdesfi 6308228692SdesAR=$ac_cv_prog_AR 6309228692Sdesif test -n "$AR"; then 6310228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6311228692Sdes$as_echo "$AR" >&6; } 6312141098Sdeselse 6313228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6314228692Sdes$as_echo "no" >&6; } 6315141098Sdesfi 6316141098Sdes 6317174832Sdes 6318228692Sdes test -n "$AR" && break 6319141098Sdes done 6320141098Sdesfi 6321228692Sdesif test -z "$AR"; then 6322228692Sdes ac_ct_AR=$AR 6323228692Sdes for ac_prog in ar 6324141098Sdesdo 6325141098Sdes # Extract the first word of "$ac_prog", so it can be a program name with args. 6326141098Sdesset dummy $ac_prog; ac_word=$2 6327228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6328228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 6329228692Sdesif ${ac_cv_prog_ac_ct_AR+:} false; then : 6330228692Sdes $as_echo_n "(cached) " >&6 6331141098Sdeselse 6332228692Sdes if test -n "$ac_ct_AR"; then 6333228692Sdes ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6334141098Sdeselse 6335141098Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6336141098Sdesfor as_dir in $PATH 6337141098Sdesdo 6338141098Sdes IFS=$as_save_IFS 6339141098Sdes test -z "$as_dir" && as_dir=. 6340228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 6341255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6342228692Sdes ac_cv_prog_ac_ct_AR="$ac_prog" 6343228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6344141098Sdes break 2 6345141098Sdes fi 6346141098Sdesdone 6347228692Sdes done 6348174832SdesIFS=$as_save_IFS 6349141098Sdes 6350141098Sdesfi 6351141098Sdesfi 6352228692Sdesac_ct_AR=$ac_cv_prog_ac_ct_AR 6353228692Sdesif test -n "$ac_ct_AR"; then 6354228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6355228692Sdes$as_echo "$ac_ct_AR" >&6; } 6356141098Sdeselse 6357228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6358228692Sdes$as_echo "no" >&6; } 6359141098Sdesfi 6360141098Sdes 6361174832Sdes 6362228692Sdes test -n "$ac_ct_AR" && break 6363141098Sdesdone 6364141098Sdes 6365228692Sdes if test "x$ac_ct_AR" = x; then 6366228692Sdes AR="false" 6367174832Sdes else 6368174832Sdes case $cross_compiling:$ac_tool_warned in 6369174832Sdesyes:) 6370228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6371228692Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6372174832Sdesac_tool_warned=yes ;; 6373174832Sdesesac 6374228692Sdes AR=$ac_ct_AR 6375174832Sdes fi 6376141098Sdesfi 6377141098Sdes 6378228692Sdes: ${AR=ar} 6379228692Sdes: ${AR_FLAGS=cru} 6380141098Sdes 6381117610Sdes 6382141098Sdes 6383141098Sdes 6384174832Sdes 6385141098Sdes 6386141098Sdes 6387117610Sdes 6388141098Sdes 6389174832Sdes 6390174832Sdes 6391228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6392228692Sdes$as_echo_n "checking for archiver @FILE support... " >&6; } 6393228692Sdesif ${lt_cv_ar_at_file+:} false; then : 6394228692Sdes $as_echo_n "(cached) " >&6 6395141098Sdeselse 6396228692Sdes lt_cv_ar_at_file=no 6397228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6398141098Sdes/* end confdefs.h. */ 6399174832Sdes 6400141098Sdesint 6401141098Sdesmain () 6402141098Sdes{ 6403174832Sdes 6404141098Sdes ; 6405141098Sdes return 0; 6406141098Sdes} 6407141098Sdes_ACEOF 6408228692Sdesif ac_fn_c_try_compile "$LINENO"; then : 6409228692Sdes echo conftest.$ac_objext > conftest.lst 6410228692Sdes lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6411228692Sdes { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6412228692Sdes (eval $lt_ar_try) 2>&5 6413141098Sdes ac_status=$? 6414228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6415228692Sdes test $ac_status = 0; } 6416228692Sdes if test "$ac_status" -eq 0; then 6417228692Sdes # Ensure the archiver fails upon bogus file names. 6418228692Sdes rm -f conftest.$ac_objext libconftest.a 6419228692Sdes { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6420228692Sdes (eval $lt_ar_try) 2>&5 6421228692Sdes ac_status=$? 6422228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6423228692Sdes test $ac_status = 0; } 6424228692Sdes if test "$ac_status" -ne 0; then 6425228692Sdes lt_cv_ar_at_file=@ 6426228692Sdes fi 6427228692Sdes fi 6428228692Sdes rm -f conftest.* libconftest.a 6429117610Sdes 6430117610Sdesfi 6431174832Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6432117610Sdes 6433174832Sdesfi 6434228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6435228692Sdes$as_echo "$lt_cv_ar_at_file" >&6; } 6436174832Sdes 6437228692Sdesif test "x$lt_cv_ar_at_file" = xno; then 6438228692Sdes archiver_list_spec= 6439174832Sdeselse 6440228692Sdes archiver_list_spec=$lt_cv_ar_at_file 6441174832Sdesfi 6442141098Sdes 6443141098Sdes 6444141098Sdes 6445141098Sdes 6446174832Sdes 6447141098Sdes 6448228692Sdes 6449228692Sdesif test -n "$ac_tool_prefix"; then 6450228692Sdes # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6451228692Sdesset dummy ${ac_tool_prefix}strip; ac_word=$2 6452228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6453228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 6454228692Sdesif ${ac_cv_prog_STRIP+:} false; then : 6455228692Sdes $as_echo_n "(cached) " >&6 6456141098Sdeselse 6457228692Sdes if test -n "$STRIP"; then 6458228692Sdes ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6459228692Sdeselse 6460228692Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6461228692Sdesfor as_dir in $PATH 6462228692Sdesdo 6463228692Sdes IFS=$as_save_IFS 6464228692Sdes test -z "$as_dir" && as_dir=. 6465228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 6466255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6467228692Sdes ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6468228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6469228692Sdes break 2 6470228692Sdes fi 6471228692Sdesdone 6472228692Sdes done 6473228692SdesIFS=$as_save_IFS 6474141098Sdes 6475141098Sdesfi 6476141098Sdesfi 6477228692SdesSTRIP=$ac_cv_prog_STRIP 6478228692Sdesif test -n "$STRIP"; then 6479228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6480228692Sdes$as_echo "$STRIP" >&6; } 6481228692Sdeselse 6482228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6483228692Sdes$as_echo "no" >&6; } 6484228692Sdesfi 6485141098Sdes 6486141098Sdes 6487141098Sdesfi 6488228692Sdesif test -z "$ac_cv_prog_STRIP"; then 6489228692Sdes ac_ct_STRIP=$STRIP 6490228692Sdes # Extract the first word of "strip", so it can be a program name with args. 6491228692Sdesset dummy strip; ac_word=$2 6492228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6493228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 6494228692Sdesif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6495228692Sdes $as_echo_n "(cached) " >&6 6496141098Sdeselse 6497228692Sdes if test -n "$ac_ct_STRIP"; then 6498228692Sdes ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6499228692Sdeselse 6500228692Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6501228692Sdesfor as_dir in $PATH 6502141098Sdesdo 6503228692Sdes IFS=$as_save_IFS 6504228692Sdes test -z "$as_dir" && as_dir=. 6505228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 6506255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6507228692Sdes ac_cv_prog_ac_ct_STRIP="strip" 6508228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6509228692Sdes break 2 6510228692Sdes fi 6511228692Sdesdone 6512228692Sdes done 6513228692SdesIFS=$as_save_IFS 6514141098Sdes 6515141098Sdesfi 6516228692Sdesfi 6517228692Sdesac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6518228692Sdesif test -n "$ac_ct_STRIP"; then 6519228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6520228692Sdes$as_echo "$ac_ct_STRIP" >&6; } 6521228692Sdeselse 6522228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6523228692Sdes$as_echo "no" >&6; } 6524228692Sdesfi 6525174832Sdes 6526228692Sdes if test "x$ac_ct_STRIP" = x; then 6527228692Sdes STRIP=":" 6528228692Sdes else 6529228692Sdes case $cross_compiling:$ac_tool_warned in 6530228692Sdesyes:) 6531228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6532228692Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6533228692Sdesac_tool_warned=yes ;; 6534174832Sdesesac 6535228692Sdes STRIP=$ac_ct_STRIP 6536228692Sdes fi 6537141098Sdeselse 6538228692Sdes STRIP="$ac_cv_prog_STRIP" 6539141098Sdesfi 6540174832Sdes 6541228692Sdestest -z "$STRIP" && STRIP=: 6542141098Sdes 6543141098Sdes 6544141098Sdes 6545141098Sdes 6546141098Sdes 6547228692Sdes 6548141098Sdesif test -n "$ac_tool_prefix"; then 6549228692Sdes # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6550228692Sdesset dummy ${ac_tool_prefix}ranlib; ac_word=$2 6551228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6552228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 6553228692Sdesif ${ac_cv_prog_RANLIB+:} false; then : 6554228692Sdes $as_echo_n "(cached) " >&6 6555141098Sdeselse 6556228692Sdes if test -n "$RANLIB"; then 6557228692Sdes ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6558141098Sdeselse 6559141098Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6560141098Sdesfor as_dir in $PATH 6561141098Sdesdo 6562141098Sdes IFS=$as_save_IFS 6563141098Sdes test -z "$as_dir" && as_dir=. 6564228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 6565255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6566228692Sdes ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6567228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6568141098Sdes break 2 6569141098Sdes fi 6570141098Sdesdone 6571228692Sdes done 6572174832SdesIFS=$as_save_IFS 6573141098Sdes 6574141098Sdesfi 6575141098Sdesfi 6576228692SdesRANLIB=$ac_cv_prog_RANLIB 6577228692Sdesif test -n "$RANLIB"; then 6578228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6579228692Sdes$as_echo "$RANLIB" >&6; } 6580141098Sdeselse 6581228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6582228692Sdes$as_echo "no" >&6; } 6583141098Sdesfi 6584141098Sdes 6585174832Sdes 6586141098Sdesfi 6587228692Sdesif test -z "$ac_cv_prog_RANLIB"; then 6588228692Sdes ac_ct_RANLIB=$RANLIB 6589228692Sdes # Extract the first word of "ranlib", so it can be a program name with args. 6590228692Sdesset dummy ranlib; ac_word=$2 6591228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6592228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 6593228692Sdesif ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6594228692Sdes $as_echo_n "(cached) " >&6 6595117610Sdeselse 6596228692Sdes if test -n "$ac_ct_RANLIB"; then 6597228692Sdes ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6598141098Sdeselse 6599141098Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6600141098Sdesfor as_dir in $PATH 6601141098Sdesdo 6602141098Sdes IFS=$as_save_IFS 6603141098Sdes test -z "$as_dir" && as_dir=. 6604228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 6605255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6606228692Sdes ac_cv_prog_ac_ct_RANLIB="ranlib" 6607228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6608141098Sdes break 2 6609141098Sdes fi 6610141098Sdesdone 6611228692Sdes done 6612174832SdesIFS=$as_save_IFS 6613141098Sdes 6614141098Sdesfi 6615141098Sdesfi 6616228692Sdesac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6617228692Sdesif test -n "$ac_ct_RANLIB"; then 6618228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6619228692Sdes$as_echo "$ac_ct_RANLIB" >&6; } 6620141098Sdeselse 6621228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6622228692Sdes$as_echo "no" >&6; } 6623141098Sdesfi 6624141098Sdes 6625228692Sdes if test "x$ac_ct_RANLIB" = x; then 6626228692Sdes RANLIB=":" 6627174832Sdes else 6628174832Sdes case $cross_compiling:$ac_tool_warned in 6629174832Sdesyes:) 6630228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6631228692Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6632174832Sdesac_tool_warned=yes ;; 6633174832Sdesesac 6634228692Sdes RANLIB=$ac_ct_RANLIB 6635174832Sdes fi 6636228692Sdeselse 6637228692Sdes RANLIB="$ac_cv_prog_RANLIB" 6638141098Sdesfi 6639141098Sdes 6640228692Sdestest -z "$RANLIB" && RANLIB=: 6641141098Sdes 6642141098Sdes 6643141098Sdes 6644141098Sdes 6645174832Sdes 6646141098Sdes 6647228692Sdes# Determine commands to create old-style static archives. 6648228692Sdesold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6649228692Sdesold_postinstall_cmds='chmod 644 $oldlib' 6650228692Sdesold_postuninstall_cmds= 6651228692Sdes 6652228692Sdesif test -n "$RANLIB"; then 6653228692Sdes case $host_os in 6654228692Sdes openbsd*) 6655236109Sdes old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6656228692Sdes ;; 6657228692Sdes *) 6658236109Sdes old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6659228692Sdes ;; 6660228692Sdes esac 6661236109Sdes old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6662141098Sdesfi 6663141098Sdes 6664228692Sdescase $host_os in 6665228692Sdes darwin*) 6666228692Sdes lock_old_archive_extraction=yes ;; 6667228692Sdes *) 6668228692Sdes lock_old_archive_extraction=no ;; 6669174832Sdesesac 6670141098Sdes 6671141098Sdes 6672174832Sdes 6673141098Sdes 6674141098Sdes 6675141098Sdes 6676141098Sdes 6677141098Sdes 6678141098Sdes 6679141098Sdes 6680141098Sdes 6681141098Sdes 6682141098Sdes 6683174832Sdes 6684174832Sdes 6685141098Sdes 6686141098Sdes 6687141098Sdes 6688141098Sdes 6689141098Sdes 6690141098Sdes 6691174832Sdes 6692228692Sdes 6693228692Sdes 6694228692Sdes 6695228692Sdes 6696228692Sdes 6697228692Sdes 6698228692Sdes 6699228692Sdes 6700228692Sdes 6701228692Sdes 6702228692Sdes 6703228692Sdes 6704228692Sdes 6705228692Sdes 6706228692Sdes 6707228692Sdes 6708228692Sdes 6709228692Sdes# If no C compiler was specified, use CC. 6710228692SdesLTCC=${LTCC-"$CC"} 6711228692Sdes 6712228692Sdes# If no C compiler flags were specified, use CFLAGS. 6713228692SdesLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6714228692Sdes 6715228692Sdes# Allow CC to be a program name with arguments. 6716228692Sdescompiler=$CC 6717228692Sdes 6718228692Sdes 6719141098Sdes# Check for command to grab the raw symbol name followed by C symbol from nm. 6720228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6721228692Sdes$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6722228692Sdesif ${lt_cv_sys_global_symbol_pipe+:} false; then : 6723228692Sdes $as_echo_n "(cached) " >&6 6724141098Sdeselse 6725141098Sdes 6726141098Sdes# These are sane defaults that work on at least a few old systems. 6727141098Sdes# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6728141098Sdes 6729141098Sdes# Character class describing NM global symbol codes. 6730141098Sdessymcode='[BCDEGRST]' 6731141098Sdes 6732141098Sdes# Regexp to match symbols that can be accessed directly from C. 6733141098Sdessympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6734141098Sdes 6735141098Sdes# Define system-specific variables. 6736141098Sdescase $host_os in 6737141098Sdesaix*) 6738141098Sdes symcode='[BCDT]' 6739117610Sdes ;; 6740228692Sdescygwin* | mingw* | pw32* | cegcc*) 6741141098Sdes symcode='[ABCDGISTW]' 6742141098Sdes ;; 6743228692Sdeshpux*) 6744141098Sdes if test "$host_cpu" = ia64; then 6745141098Sdes symcode='[ABCDEGRST]' 6746141098Sdes fi 6747141098Sdes ;; 6748141098Sdesirix* | nonstopux*) 6749141098Sdes symcode='[BCDEGRST]' 6750141098Sdes ;; 6751141098Sdesosf*) 6752141098Sdes symcode='[BCDEGQRST]' 6753141098Sdes ;; 6754174832Sdessolaris*) 6755141098Sdes symcode='[BDRT]' 6756141098Sdes ;; 6757174832Sdessco3.2v5*) 6758174832Sdes symcode='[DT]' 6759174832Sdes ;; 6760174832Sdessysv4.2uw2*) 6761174832Sdes symcode='[DT]' 6762174832Sdes ;; 6763174832Sdessysv5* | sco5v6* | unixware* | OpenUNIX*) 6764174832Sdes symcode='[ABDT]' 6765174832Sdes ;; 6766141098Sdessysv4) 6767141098Sdes symcode='[DFNSTU]' 6768141098Sdes ;; 6769117610Sdesesac 6770141098Sdes 6771228692Sdes# If we're using GNU nm, then use its standard symbol codes. 6772228692Sdescase `$NM -V 2>&1` in 6773228692Sdes*GNU* | *'with BFD'*) 6774228692Sdes symcode='[ABCDGIRSTW]' ;; 6775228692Sdesesac 6776228692Sdes 6777228692Sdes# Transform an extracted symbol line into a proper C declaration. 6778228692Sdes# Some systems (esp. on ia64) link data and code symbols differently, 6779228692Sdes# so use this general approach. 6780228692Sdeslt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6781228692Sdes 6782228692Sdes# Transform an extracted symbol line into symbol name and symbol address 6783228692Sdeslt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6784228692Sdeslt_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'" 6785228692Sdes 6786141098Sdes# Handle CRLF in mingw tool chain 6787141098Sdesopt_cr= 6788141098Sdescase $build_os in 6789141098Sdesmingw*) 6790228692Sdes opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6791141098Sdes ;; 6792141098Sdesesac 6793141098Sdes 6794228692Sdes# Try without a prefix underscore, then with it. 6795141098Sdesfor ac_symprfx in "" "_"; do 6796141098Sdes 6797147455Sdes # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6798147455Sdes symxfrm="\\1 $ac_symprfx\\2 \\2" 6799147455Sdes 6800141098Sdes # Write the raw and C identifiers. 6801228692Sdes if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6802228692Sdes # Fake it for dumpbin and say T for any non-static function 6803228692Sdes # and D for any global variable. 6804228692Sdes # Also find C++ and __fastcall symbols from MSVC++, 6805228692Sdes # which start with @ or ?. 6806228692Sdes lt_cv_sys_global_symbol_pipe="$AWK '"\ 6807228692Sdes" {last_section=section; section=\$ 3};"\ 6808236109Sdes" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6809228692Sdes" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6810228692Sdes" \$ 0!~/External *\|/{next};"\ 6811228692Sdes" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6812228692Sdes" {if(hide[section]) next};"\ 6813228692Sdes" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6814228692Sdes" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6815228692Sdes" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6816228692Sdes" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6817228692Sdes" ' prfx=^$ac_symprfx" 6818228692Sdes else 6819228692Sdes lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6820228692Sdes fi 6821228692Sdes lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6822141098Sdes 6823141098Sdes # Check to see that the pipe works correctly. 6824141098Sdes pipe_works=no 6825141098Sdes 6826141098Sdes rm -f conftest* 6827228692Sdes cat > conftest.$ac_ext <<_LT_EOF 6828141098Sdes#ifdef __cplusplus 6829141098Sdesextern "C" { 6830141098Sdes#endif 6831141098Sdeschar nm_test_var; 6832228692Sdesvoid nm_test_func(void); 6833228692Sdesvoid nm_test_func(void){} 6834141098Sdes#ifdef __cplusplus 6835141098Sdes} 6836141098Sdes#endif 6837141098Sdesint main(){nm_test_var='a';nm_test_func();return(0);} 6838228692Sdes_LT_EOF 6839141098Sdes 6840228692Sdes if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6841141098Sdes (eval $ac_compile) 2>&5 6842141098Sdes ac_status=$? 6843228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6844228692Sdes test $ac_status = 0; }; then 6845141098Sdes # Now try to grab the symbols. 6846141098Sdes nlist=conftest.nm 6847228692Sdes if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6848228692Sdes (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6849141098Sdes ac_status=$? 6850228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6851228692Sdes test $ac_status = 0; } && test -s "$nlist"; then 6852141098Sdes # Try sorting and uniquifying the output. 6853141098Sdes if sort "$nlist" | uniq > "$nlist"T; then 6854141098Sdes mv -f "$nlist"T "$nlist" 6855141098Sdes else 6856141098Sdes rm -f "$nlist"T 6857141098Sdes fi 6858141098Sdes 6859141098Sdes # Make sure that we snagged all the symbols we need. 6860228692Sdes if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6861228692Sdes if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6862228692Sdes cat <<_LT_EOF > conftest.$ac_ext 6863228692Sdes/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6864228692Sdes#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6865228692Sdes/* DATA imports from DLLs on WIN32 con't be const, because runtime 6866228692Sdes relocations are performed -- see ld's documentation on pseudo-relocs. */ 6867228692Sdes# define LT_DLSYM_CONST 6868228692Sdes#elif defined(__osf__) 6869228692Sdes/* This system does not cope well with relocations in const data. */ 6870228692Sdes# define LT_DLSYM_CONST 6871228692Sdes#else 6872228692Sdes# define LT_DLSYM_CONST const 6873228692Sdes#endif 6874228692Sdes 6875141098Sdes#ifdef __cplusplus 6876141098Sdesextern "C" { 6877141098Sdes#endif 6878141098Sdes 6879228692Sdes_LT_EOF 6880141098Sdes # Now generate the symbol file. 6881228692Sdes eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6882141098Sdes 6883228692Sdes cat <<_LT_EOF >> conftest.$ac_ext 6884141098Sdes 6885228692Sdes/* The mapping between symbol names and symbols. */ 6886228692SdesLT_DLSYM_CONST struct { 6887141098Sdes const char *name; 6888228692Sdes void *address; 6889141098Sdes} 6890228692Sdeslt__PROGRAM__LTX_preloaded_symbols[] = 6891141098Sdes{ 6892228692Sdes { "@PROGRAM@", (void *) 0 }, 6893228692Sdes_LT_EOF 6894228692Sdes $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6895228692Sdes cat <<\_LT_EOF >> conftest.$ac_ext 6896228692Sdes {0, (void *) 0} 6897141098Sdes}; 6898141098Sdes 6899228692Sdes/* This works around a problem in FreeBSD linker */ 6900228692Sdes#ifdef FREEBSD_WORKAROUND 6901228692Sdesstatic const void *lt_preloaded_setup() { 6902228692Sdes return lt__PROGRAM__LTX_preloaded_symbols; 6903228692Sdes} 6904228692Sdes#endif 6905228692Sdes 6906141098Sdes#ifdef __cplusplus 6907141098Sdes} 6908141098Sdes#endif 6909228692Sdes_LT_EOF 6910141098Sdes # Now try linking the two files. 6911141098Sdes mv conftest.$ac_objext conftstm.$ac_objext 6912228692Sdes lt_globsym_save_LIBS=$LIBS 6913228692Sdes lt_globsym_save_CFLAGS=$CFLAGS 6914141098Sdes LIBS="conftstm.$ac_objext" 6915141098Sdes CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6916228692Sdes if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6917141098Sdes (eval $ac_link) 2>&5 6918141098Sdes ac_status=$? 6919228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6920228692Sdes test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6921141098Sdes pipe_works=yes 6922141098Sdes fi 6923228692Sdes LIBS=$lt_globsym_save_LIBS 6924228692Sdes CFLAGS=$lt_globsym_save_CFLAGS 6925141098Sdes else 6926141098Sdes echo "cannot find nm_test_func in $nlist" >&5 6927141098Sdes fi 6928141098Sdes else 6929141098Sdes echo "cannot find nm_test_var in $nlist" >&5 6930141098Sdes fi 6931141098Sdes else 6932141098Sdes echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6933141098Sdes fi 6934141098Sdes else 6935141098Sdes echo "$progname: failed program was:" >&5 6936141098Sdes cat conftest.$ac_ext >&5 6937141098Sdes fi 6938228692Sdes rm -rf conftest* conftst* 6939141098Sdes 6940141098Sdes # Do not use the global_symbol_pipe unless it works. 6941141098Sdes if test "$pipe_works" = yes; then 6942141098Sdes break 6943141098Sdes else 6944141098Sdes lt_cv_sys_global_symbol_pipe= 6945141098Sdes fi 6946141098Sdesdone 6947141098Sdes 6948141098Sdesfi 6949141098Sdes 6950141098Sdesif test -z "$lt_cv_sys_global_symbol_pipe"; then 6951141098Sdes lt_cv_sys_global_symbol_to_cdecl= 6952141098Sdesfi 6953141098Sdesif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6954228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6955228692Sdes$as_echo "failed" >&6; } 6956117610Sdeselse 6957228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6958228692Sdes$as_echo "ok" >&6; } 6959141098Sdesfi 6960141098Sdes 6961228692Sdes# Response file support. 6962228692Sdesif test "$lt_cv_nm_interface" = "MS dumpbin"; then 6963228692Sdes nm_file_list_spec='@' 6964228692Sdeselif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6965228692Sdes nm_file_list_spec='@' 6966228692Sdesfi 6967228692Sdes 6968228692Sdes 6969228692Sdes 6970228692Sdes 6971228692Sdes 6972228692Sdes 6973228692Sdes 6974228692Sdes 6975228692Sdes 6976228692Sdes 6977228692Sdes 6978228692Sdes 6979228692Sdes 6980228692Sdes 6981228692Sdes 6982228692Sdes 6983228692Sdes 6984228692Sdes 6985228692Sdes 6986228692Sdes 6987228692Sdes 6988228692Sdes 6989228692Sdes 6990228692Sdes 6991228692Sdes 6992228692Sdes 6993228692Sdes 6994228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6995228692Sdes$as_echo_n "checking for sysroot... " >&6; } 6996228692Sdes 6997228692Sdes# Check whether --with-sysroot was given. 6998228692Sdesif test "${with_sysroot+set}" = set; then : 6999228692Sdes withval=$with_sysroot; 7000141098Sdeselse 7001228692Sdes with_sysroot=no 7002141098Sdesfi 7003141098Sdes 7004141098Sdes 7005228692Sdeslt_sysroot= 7006228692Sdescase ${with_sysroot} in #( 7007228692Sdes yes) 7008228692Sdes if test "$GCC" = yes; then 7009228692Sdes lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7010228692Sdes fi 7011228692Sdes ;; #( 7012228692Sdes /*) 7013228692Sdes lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7014228692Sdes ;; #( 7015228692Sdes no|'') 7016228692Sdes ;; #( 7017228692Sdes *) 7018228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7019228692Sdes$as_echo "${with_sysroot}" >&6; } 7020228692Sdes as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7021228692Sdes ;; 7022228692Sdesesac 7023141098Sdes 7024228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7025228692Sdes$as_echo "${lt_sysroot:-no}" >&6; } 7026141098Sdes 7027141098Sdes 7028228692Sdes 7029228692Sdes 7030228692Sdes 7031228692Sdes# Check whether --enable-libtool-lock was given. 7032228692Sdesif test "${enable_libtool_lock+set}" = set; then : 7033228692Sdes enableval=$enable_libtool_lock; 7034228692Sdesfi 7035228692Sdes 7036228692Sdestest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7037228692Sdes 7038228692Sdes# Some flags need to be propagated to the compiler or linker for good 7039228692Sdes# libtool support. 7040228692Sdescase $host in 7041228692Sdesia64-*-hpux*) 7042228692Sdes # Find out which ABI we are using. 7043228692Sdes echo 'int i;' > conftest.$ac_ext 7044228692Sdes if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7045228692Sdes (eval $ac_compile) 2>&5 7046228692Sdes ac_status=$? 7047228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7048228692Sdes test $ac_status = 0; }; then 7049228692Sdes case `/usr/bin/file conftest.$ac_objext` in 7050228692Sdes *ELF-32*) 7051228692Sdes HPUX_IA64_MODE="32" 7052228692Sdes ;; 7053228692Sdes *ELF-64*) 7054228692Sdes HPUX_IA64_MODE="64" 7055228692Sdes ;; 7056228692Sdes esac 7057141098Sdes fi 7058228692Sdes rm -rf conftest* 7059117610Sdes ;; 7060228692Sdes*-*-irix6*) 7061228692Sdes # Find out which ABI we are using. 7062228692Sdes echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7063228692Sdes if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7064228692Sdes (eval $ac_compile) 2>&5 7065228692Sdes ac_status=$? 7066228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7067228692Sdes test $ac_status = 0; }; then 7068228692Sdes if test "$lt_cv_prog_gnu_ld" = yes; then 7069228692Sdes case `/usr/bin/file conftest.$ac_objext` in 7070228692Sdes *32-bit*) 7071228692Sdes LD="${LD-ld} -melf32bsmip" 7072228692Sdes ;; 7073228692Sdes *N32*) 7074228692Sdes LD="${LD-ld} -melf32bmipn32" 7075228692Sdes ;; 7076228692Sdes *64-bit*) 7077228692Sdes LD="${LD-ld} -melf64bmip" 7078228692Sdes ;; 7079228692Sdes esac 7080228692Sdes else 7081228692Sdes case `/usr/bin/file conftest.$ac_objext` in 7082228692Sdes *32-bit*) 7083228692Sdes LD="${LD-ld} -32" 7084228692Sdes ;; 7085228692Sdes *N32*) 7086228692Sdes LD="${LD-ld} -n32" 7087228692Sdes ;; 7088228692Sdes *64-bit*) 7089228692Sdes LD="${LD-ld} -64" 7090228692Sdes ;; 7091228692Sdes esac 7092228692Sdes fi 7093228692Sdes fi 7094228692Sdes rm -rf conftest* 7095228692Sdes ;; 7096141098Sdes 7097228692Sdesx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7098228692Sdess390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7099228692Sdes # Find out which ABI we are using. 7100228692Sdes echo 'int i;' > conftest.$ac_ext 7101228692Sdes if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7102228692Sdes (eval $ac_compile) 2>&5 7103228692Sdes ac_status=$? 7104228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7105228692Sdes test $ac_status = 0; }; then 7106228692Sdes case `/usr/bin/file conftest.o` in 7107228692Sdes *32-bit*) 7108228692Sdes case $host in 7109228692Sdes x86_64-*kfreebsd*-gnu) 7110228692Sdes LD="${LD-ld} -m elf_i386_fbsd" 7111228692Sdes ;; 7112228692Sdes x86_64-*linux*) 7113228692Sdes LD="${LD-ld} -m elf_i386" 7114228692Sdes ;; 7115228692Sdes ppc64-*linux*|powerpc64-*linux*) 7116228692Sdes LD="${LD-ld} -m elf32ppclinux" 7117228692Sdes ;; 7118228692Sdes s390x-*linux*) 7119228692Sdes LD="${LD-ld} -m elf_s390" 7120228692Sdes ;; 7121228692Sdes sparc64-*linux*) 7122228692Sdes LD="${LD-ld} -m elf32_sparc" 7123228692Sdes ;; 7124228692Sdes esac 7125228692Sdes ;; 7126228692Sdes *64-bit*) 7127228692Sdes case $host in 7128228692Sdes x86_64-*kfreebsd*-gnu) 7129228692Sdes LD="${LD-ld} -m elf_x86_64_fbsd" 7130228692Sdes ;; 7131228692Sdes x86_64-*linux*) 7132228692Sdes LD="${LD-ld} -m elf_x86_64" 7133228692Sdes ;; 7134228692Sdes ppc*-*linux*|powerpc*-*linux*) 7135228692Sdes LD="${LD-ld} -m elf64ppc" 7136228692Sdes ;; 7137228692Sdes s390*-*linux*|s390*-*tpf*) 7138228692Sdes LD="${LD-ld} -m elf64_s390" 7139228692Sdes ;; 7140228692Sdes sparc*-*linux*) 7141228692Sdes LD="${LD-ld} -m elf64_sparc" 7142228692Sdes ;; 7143228692Sdes esac 7144228692Sdes ;; 7145228692Sdes esac 7146228692Sdes fi 7147228692Sdes rm -rf conftest* 7148228692Sdes ;; 7149141098Sdes 7150228692Sdes*-*-sco3.2v5*) 7151228692Sdes # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7152228692Sdes SAVE_CFLAGS="$CFLAGS" 7153228692Sdes CFLAGS="$CFLAGS -belf" 7154228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7155228692Sdes$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7156228692Sdesif ${lt_cv_cc_needs_belf+:} false; then : 7157228692Sdes $as_echo_n "(cached) " >&6 7158228692Sdeselse 7159228692Sdes ac_ext=c 7160228692Sdesac_cpp='$CPP $CPPFLAGS' 7161228692Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7162228692Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7163228692Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu 7164141098Sdes 7165228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7166228692Sdes/* end confdefs.h. */ 7167141098Sdes 7168228692Sdesint 7169228692Sdesmain () 7170228692Sdes{ 7171141098Sdes 7172228692Sdes ; 7173228692Sdes return 0; 7174228692Sdes} 7175228692Sdes_ACEOF 7176228692Sdesif ac_fn_c_try_link "$LINENO"; then : 7177228692Sdes lt_cv_cc_needs_belf=yes 7178228692Sdeselse 7179228692Sdes lt_cv_cc_needs_belf=no 7180228692Sdesfi 7181228692Sdesrm -f core conftest.err conftest.$ac_objext \ 7182228692Sdes conftest$ac_exeext conftest.$ac_ext 7183228692Sdes ac_ext=c 7184228692Sdesac_cpp='$CPP $CPPFLAGS' 7185228692Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7186228692Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7187228692Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu 7188141098Sdes 7189228692Sdesfi 7190228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7191228692Sdes$as_echo "$lt_cv_cc_needs_belf" >&6; } 7192228692Sdes if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7193228692Sdes # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7194228692Sdes CFLAGS="$SAVE_CFLAGS" 7195228692Sdes fi 7196228692Sdes ;; 7197236109Sdes*-*solaris*) 7198228692Sdes # Find out which ABI we are using. 7199228692Sdes echo 'int i;' > conftest.$ac_ext 7200228692Sdes if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7201228692Sdes (eval $ac_compile) 2>&5 7202228692Sdes ac_status=$? 7203228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7204228692Sdes test $ac_status = 0; }; then 7205228692Sdes case `/usr/bin/file conftest.o` in 7206228692Sdes *64-bit*) 7207228692Sdes case $lt_cv_prog_gnu_ld in 7208236109Sdes yes*) 7209236109Sdes case $host in 7210236109Sdes i?86-*-solaris*) 7211236109Sdes LD="${LD-ld} -m elf_x86_64" 7212236109Sdes ;; 7213236109Sdes sparc*-*-solaris*) 7214236109Sdes LD="${LD-ld} -m elf64_sparc" 7215236109Sdes ;; 7216236109Sdes esac 7217236109Sdes # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7218236109Sdes if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7219236109Sdes LD="${LD-ld}_sol2" 7220236109Sdes fi 7221236109Sdes ;; 7222228692Sdes *) 7223228692Sdes if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7224228692Sdes LD="${LD-ld} -64" 7225228692Sdes fi 7226228692Sdes ;; 7227228692Sdes esac 7228228692Sdes ;; 7229228692Sdes esac 7230228692Sdes fi 7231228692Sdes rm -rf conftest* 7232228692Sdes ;; 7233228692Sdesesac 7234141098Sdes 7235228692Sdesneed_locks="$enable_libtool_lock" 7236141098Sdes 7237141098Sdesif test -n "$ac_tool_prefix"; then 7238228692Sdes # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7239228692Sdesset dummy ${ac_tool_prefix}mt; ac_word=$2 7240228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7241228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 7242228692Sdesif ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7243228692Sdes $as_echo_n "(cached) " >&6 7244117610Sdeselse 7245228692Sdes if test -n "$MANIFEST_TOOL"; then 7246228692Sdes ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7247141098Sdeselse 7248141098Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7249141098Sdesfor as_dir in $PATH 7250141098Sdesdo 7251141098Sdes IFS=$as_save_IFS 7252141098Sdes test -z "$as_dir" && as_dir=. 7253228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 7254255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7255228692Sdes ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7256228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7257141098Sdes break 2 7258141098Sdes fi 7259141098Sdesdone 7260228692Sdes done 7261228692SdesIFS=$as_save_IFS 7262228692Sdes 7263228692Sdesfi 7264228692Sdesfi 7265228692SdesMANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7266228692Sdesif test -n "$MANIFEST_TOOL"; then 7267228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7268228692Sdes$as_echo "$MANIFEST_TOOL" >&6; } 7269228692Sdeselse 7270228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7271228692Sdes$as_echo "no" >&6; } 7272228692Sdesfi 7273228692Sdes 7274228692Sdes 7275228692Sdesfi 7276228692Sdesif test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7277228692Sdes ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7278228692Sdes # Extract the first word of "mt", so it can be a program name with args. 7279228692Sdesset dummy mt; ac_word=$2 7280228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7281228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 7282228692Sdesif ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7283228692Sdes $as_echo_n "(cached) " >&6 7284228692Sdeselse 7285228692Sdes if test -n "$ac_ct_MANIFEST_TOOL"; then 7286228692Sdes ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7287228692Sdeselse 7288228692Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7289228692Sdesfor as_dir in $PATH 7290228692Sdesdo 7291228692Sdes IFS=$as_save_IFS 7292228692Sdes test -z "$as_dir" && as_dir=. 7293228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 7294255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7295228692Sdes ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7296228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7297228692Sdes break 2 7298228692Sdes fi 7299141098Sdesdone 7300228692Sdes done 7301174832SdesIFS=$as_save_IFS 7302141098Sdes 7303141098Sdesfi 7304141098Sdesfi 7305228692Sdesac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7306228692Sdesif test -n "$ac_ct_MANIFEST_TOOL"; then 7307228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7308228692Sdes$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7309141098Sdeselse 7310228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7311228692Sdes$as_echo "no" >&6; } 7312141098Sdesfi 7313141098Sdes 7314228692Sdes if test "x$ac_ct_MANIFEST_TOOL" = x; then 7315228692Sdes MANIFEST_TOOL=":" 7316228692Sdes else 7317228692Sdes case $cross_compiling:$ac_tool_warned in 7318228692Sdesyes:) 7319228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7320228692Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7321228692Sdesac_tool_warned=yes ;; 7322228692Sdesesac 7323228692Sdes MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7324228692Sdes fi 7325228692Sdeselse 7326228692Sdes MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7327228692Sdesfi 7328174832Sdes 7329228692Sdestest -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7330228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7331228692Sdes$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7332228692Sdesif ${lt_cv_path_mainfest_tool+:} false; then : 7333228692Sdes $as_echo_n "(cached) " >&6 7334228692Sdeselse 7335228692Sdes lt_cv_path_mainfest_tool=no 7336228692Sdes echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7337228692Sdes $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7338228692Sdes cat conftest.err >&5 7339228692Sdes if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7340228692Sdes lt_cv_path_mainfest_tool=yes 7341228692Sdes fi 7342228692Sdes rm -f conftest* 7343141098Sdesfi 7344228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7345228692Sdes$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7346228692Sdesif test "x$lt_cv_path_mainfest_tool" != xyes; then 7347228692Sdes MANIFEST_TOOL=: 7348228692Sdesfi 7349228692Sdes 7350228692Sdes 7351228692Sdes 7352228692Sdes 7353228692Sdes 7354228692Sdes 7355228692Sdes case $host_os in 7356228692Sdes rhapsody* | darwin*) 7357228692Sdes if test -n "$ac_tool_prefix"; then 7358228692Sdes # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7359228692Sdesset dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7360228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7361228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 7362228692Sdesif ${ac_cv_prog_DSYMUTIL+:} false; then : 7363228692Sdes $as_echo_n "(cached) " >&6 7364141098Sdeselse 7365228692Sdes if test -n "$DSYMUTIL"; then 7366228692Sdes ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7367141098Sdeselse 7368141098Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7369141098Sdesfor as_dir in $PATH 7370141098Sdesdo 7371141098Sdes IFS=$as_save_IFS 7372141098Sdes test -z "$as_dir" && as_dir=. 7373228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 7374255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7375228692Sdes ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7376228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7377141098Sdes break 2 7378141098Sdes fi 7379141098Sdesdone 7380228692Sdes done 7381228692SdesIFS=$as_save_IFS 7382228692Sdes 7383228692Sdesfi 7384228692Sdesfi 7385228692SdesDSYMUTIL=$ac_cv_prog_DSYMUTIL 7386228692Sdesif test -n "$DSYMUTIL"; then 7387228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7388228692Sdes$as_echo "$DSYMUTIL" >&6; } 7389228692Sdeselse 7390228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7391228692Sdes$as_echo "no" >&6; } 7392228692Sdesfi 7393228692Sdes 7394228692Sdes 7395228692Sdesfi 7396228692Sdesif test -z "$ac_cv_prog_DSYMUTIL"; then 7397228692Sdes ac_ct_DSYMUTIL=$DSYMUTIL 7398228692Sdes # Extract the first word of "dsymutil", so it can be a program name with args. 7399228692Sdesset dummy dsymutil; ac_word=$2 7400228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7401228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 7402228692Sdesif ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7403228692Sdes $as_echo_n "(cached) " >&6 7404228692Sdeselse 7405228692Sdes if test -n "$ac_ct_DSYMUTIL"; then 7406228692Sdes ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7407228692Sdeselse 7408228692Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7409228692Sdesfor as_dir in $PATH 7410228692Sdesdo 7411228692Sdes IFS=$as_save_IFS 7412228692Sdes test -z "$as_dir" && as_dir=. 7413228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 7414255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7415228692Sdes ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7416228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7417228692Sdes break 2 7418228692Sdes fi 7419141098Sdesdone 7420228692Sdes done 7421174832SdesIFS=$as_save_IFS 7422141098Sdes 7423141098Sdesfi 7424141098Sdesfi 7425228692Sdesac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7426228692Sdesif test -n "$ac_ct_DSYMUTIL"; then 7427228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7428228692Sdes$as_echo "$ac_ct_DSYMUTIL" >&6; } 7429141098Sdeselse 7430228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7431228692Sdes$as_echo "no" >&6; } 7432141098Sdesfi 7433141098Sdes 7434228692Sdes if test "x$ac_ct_DSYMUTIL" = x; then 7435228692Sdes DSYMUTIL=":" 7436174832Sdes else 7437174832Sdes case $cross_compiling:$ac_tool_warned in 7438174832Sdesyes:) 7439228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7440228692Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7441174832Sdesac_tool_warned=yes ;; 7442174832Sdesesac 7443228692Sdes DSYMUTIL=$ac_ct_DSYMUTIL 7444174832Sdes fi 7445141098Sdeselse 7446228692Sdes DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7447141098Sdesfi 7448141098Sdes 7449228692Sdes if test -n "$ac_tool_prefix"; then 7450228692Sdes # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7451228692Sdesset dummy ${ac_tool_prefix}nmedit; ac_word=$2 7452228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7453228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 7454228692Sdesif ${ac_cv_prog_NMEDIT+:} false; then : 7455228692Sdes $as_echo_n "(cached) " >&6 7456117610Sdeselse 7457228692Sdes if test -n "$NMEDIT"; then 7458228692Sdes ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7459117610Sdeselse 7460117610Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7461117610Sdesfor as_dir in $PATH 7462117610Sdesdo 7463117610Sdes IFS=$as_save_IFS 7464117610Sdes test -z "$as_dir" && as_dir=. 7465228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 7466255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7467228692Sdes ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7468228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7469117610Sdes break 2 7470117610Sdes fi 7471117610Sdesdone 7472228692Sdes done 7473174832SdesIFS=$as_save_IFS 7474117610Sdes 7475117610Sdesfi 7476117610Sdesfi 7477228692SdesNMEDIT=$ac_cv_prog_NMEDIT 7478228692Sdesif test -n "$NMEDIT"; then 7479228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7480228692Sdes$as_echo "$NMEDIT" >&6; } 7481117610Sdeselse 7482228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7483228692Sdes$as_echo "no" >&6; } 7484117610Sdesfi 7485117610Sdes 7486174832Sdes 7487117610Sdesfi 7488228692Sdesif test -z "$ac_cv_prog_NMEDIT"; then 7489228692Sdes ac_ct_NMEDIT=$NMEDIT 7490228692Sdes # Extract the first word of "nmedit", so it can be a program name with args. 7491228692Sdesset dummy nmedit; ac_word=$2 7492228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7493228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 7494228692Sdesif ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7495228692Sdes $as_echo_n "(cached) " >&6 7496117610Sdeselse 7497228692Sdes if test -n "$ac_ct_NMEDIT"; then 7498228692Sdes ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7499117610Sdeselse 7500117610Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7501117610Sdesfor as_dir in $PATH 7502117610Sdesdo 7503117610Sdes IFS=$as_save_IFS 7504117610Sdes test -z "$as_dir" && as_dir=. 7505228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 7506255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7507228692Sdes ac_cv_prog_ac_ct_NMEDIT="nmedit" 7508228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7509117610Sdes break 2 7510117610Sdes fi 7511117610Sdesdone 7512228692Sdes done 7513174832SdesIFS=$as_save_IFS 7514117610Sdes 7515117610Sdesfi 7516117610Sdesfi 7517228692Sdesac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7518228692Sdesif test -n "$ac_ct_NMEDIT"; then 7519228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7520228692Sdes$as_echo "$ac_ct_NMEDIT" >&6; } 7521117610Sdeselse 7522228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7523228692Sdes$as_echo "no" >&6; } 7524117610Sdesfi 7525117610Sdes 7526228692Sdes if test "x$ac_ct_NMEDIT" = x; then 7527228692Sdes NMEDIT=":" 7528174832Sdes else 7529174832Sdes case $cross_compiling:$ac_tool_warned in 7530174832Sdesyes:) 7531228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7532228692Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7533174832Sdesac_tool_warned=yes ;; 7534174832Sdesesac 7535228692Sdes NMEDIT=$ac_ct_NMEDIT 7536174832Sdes fi 7537117610Sdeselse 7538228692Sdes NMEDIT="$ac_cv_prog_NMEDIT" 7539117610Sdesfi 7540117610Sdes 7541228692Sdes if test -n "$ac_tool_prefix"; then 7542228692Sdes # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7543228692Sdesset dummy ${ac_tool_prefix}lipo; ac_word=$2 7544228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7545228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 7546228692Sdesif ${ac_cv_prog_LIPO+:} false; then : 7547228692Sdes $as_echo_n "(cached) " >&6 7548141098Sdeselse 7549228692Sdes if test -n "$LIPO"; then 7550228692Sdes ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7551141098Sdeselse 7552141098Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7553141098Sdesfor as_dir in $PATH 7554141098Sdesdo 7555141098Sdes IFS=$as_save_IFS 7556141098Sdes test -z "$as_dir" && as_dir=. 7557228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 7558255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7559228692Sdes ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7560228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7561141098Sdes break 2 7562141098Sdes fi 7563141098Sdesdone 7564228692Sdes done 7565228692SdesIFS=$as_save_IFS 7566228692Sdes 7567228692Sdesfi 7568228692Sdesfi 7569228692SdesLIPO=$ac_cv_prog_LIPO 7570228692Sdesif test -n "$LIPO"; then 7571228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7572228692Sdes$as_echo "$LIPO" >&6; } 7573228692Sdeselse 7574228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7575228692Sdes$as_echo "no" >&6; } 7576228692Sdesfi 7577228692Sdes 7578228692Sdes 7579228692Sdesfi 7580228692Sdesif test -z "$ac_cv_prog_LIPO"; then 7581228692Sdes ac_ct_LIPO=$LIPO 7582228692Sdes # Extract the first word of "lipo", so it can be a program name with args. 7583228692Sdesset dummy lipo; ac_word=$2 7584228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7585228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 7586228692Sdesif ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7587228692Sdes $as_echo_n "(cached) " >&6 7588228692Sdeselse 7589228692Sdes if test -n "$ac_ct_LIPO"; then 7590228692Sdes ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7591228692Sdeselse 7592228692Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7593228692Sdesfor as_dir in $PATH 7594228692Sdesdo 7595228692Sdes IFS=$as_save_IFS 7596228692Sdes test -z "$as_dir" && as_dir=. 7597228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 7598255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7599228692Sdes ac_cv_prog_ac_ct_LIPO="lipo" 7600228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7601228692Sdes break 2 7602228692Sdes fi 7603141098Sdesdone 7604228692Sdes done 7605174832SdesIFS=$as_save_IFS 7606117610Sdes 7607141098Sdesfi 7608141098Sdesfi 7609228692Sdesac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7610228692Sdesif test -n "$ac_ct_LIPO"; then 7611228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7612228692Sdes$as_echo "$ac_ct_LIPO" >&6; } 7613141098Sdeselse 7614228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7615228692Sdes$as_echo "no" >&6; } 7616141098Sdesfi 7617141098Sdes 7618228692Sdes if test "x$ac_ct_LIPO" = x; then 7619228692Sdes LIPO=":" 7620228692Sdes else 7621228692Sdes case $cross_compiling:$ac_tool_warned in 7622228692Sdesyes:) 7623228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7624228692Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7625228692Sdesac_tool_warned=yes ;; 7626228692Sdesesac 7627228692Sdes LIPO=$ac_ct_LIPO 7628228692Sdes fi 7629228692Sdeselse 7630228692Sdes LIPO="$ac_cv_prog_LIPO" 7631228692Sdesfi 7632174832Sdes 7633228692Sdes if test -n "$ac_tool_prefix"; then 7634228692Sdes # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7635228692Sdesset dummy ${ac_tool_prefix}otool; ac_word=$2 7636228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7637228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 7638228692Sdesif ${ac_cv_prog_OTOOL+:} false; then : 7639228692Sdes $as_echo_n "(cached) " >&6 7640228692Sdeselse 7641228692Sdes if test -n "$OTOOL"; then 7642228692Sdes ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7643228692Sdeselse 7644228692Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7645228692Sdesfor as_dir in $PATH 7646228692Sdesdo 7647228692Sdes IFS=$as_save_IFS 7648228692Sdes test -z "$as_dir" && as_dir=. 7649228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 7650255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7651228692Sdes ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7652228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7653228692Sdes break 2 7654228692Sdes fi 7655228692Sdesdone 7656228692Sdes done 7657228692SdesIFS=$as_save_IFS 7658228692Sdes 7659141098Sdesfi 7660228692Sdesfi 7661228692SdesOTOOL=$ac_cv_prog_OTOOL 7662228692Sdesif test -n "$OTOOL"; then 7663228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7664228692Sdes$as_echo "$OTOOL" >&6; } 7665141098Sdeselse 7666228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7667228692Sdes$as_echo "no" >&6; } 7668228692Sdesfi 7669228692Sdes 7670228692Sdes 7671228692Sdesfi 7672228692Sdesif test -z "$ac_cv_prog_OTOOL"; then 7673228692Sdes ac_ct_OTOOL=$OTOOL 7674228692Sdes # Extract the first word of "otool", so it can be a program name with args. 7675228692Sdesset dummy otool; ac_word=$2 7676228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7677228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 7678228692Sdesif ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7679228692Sdes $as_echo_n "(cached) " >&6 7680141098Sdeselse 7681228692Sdes if test -n "$ac_ct_OTOOL"; then 7682228692Sdes ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7683228692Sdeselse 7684141098Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7685141098Sdesfor as_dir in $PATH 7686141098Sdesdo 7687141098Sdes IFS=$as_save_IFS 7688141098Sdes test -z "$as_dir" && as_dir=. 7689228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 7690255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7691228692Sdes ac_cv_prog_ac_ct_OTOOL="otool" 7692228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7693141098Sdes break 2 7694141098Sdes fi 7695141098Sdesdone 7696228692Sdes done 7697228692SdesIFS=$as_save_IFS 7698228692Sdes 7699228692Sdesfi 7700228692Sdesfi 7701228692Sdesac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7702228692Sdesif test -n "$ac_ct_OTOOL"; then 7703228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7704228692Sdes$as_echo "$ac_ct_OTOOL" >&6; } 7705228692Sdeselse 7706228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7707228692Sdes$as_echo "no" >&6; } 7708228692Sdesfi 7709228692Sdes 7710228692Sdes if test "x$ac_ct_OTOOL" = x; then 7711228692Sdes OTOOL=":" 7712228692Sdes else 7713228692Sdes case $cross_compiling:$ac_tool_warned in 7714228692Sdesyes:) 7715228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7716228692Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7717228692Sdesac_tool_warned=yes ;; 7718228692Sdesesac 7719228692Sdes OTOOL=$ac_ct_OTOOL 7720228692Sdes fi 7721228692Sdeselse 7722228692Sdes OTOOL="$ac_cv_prog_OTOOL" 7723228692Sdesfi 7724228692Sdes 7725228692Sdes if test -n "$ac_tool_prefix"; then 7726228692Sdes # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7727228692Sdesset dummy ${ac_tool_prefix}otool64; ac_word=$2 7728228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7729228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 7730228692Sdesif ${ac_cv_prog_OTOOL64+:} false; then : 7731228692Sdes $as_echo_n "(cached) " >&6 7732228692Sdeselse 7733228692Sdes if test -n "$OTOOL64"; then 7734228692Sdes ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7735228692Sdeselse 7736228692Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7737228692Sdesfor as_dir in $PATH 7738228692Sdesdo 7739228692Sdes IFS=$as_save_IFS 7740228692Sdes test -z "$as_dir" && as_dir=. 7741228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 7742255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7743228692Sdes ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7744228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7745228692Sdes break 2 7746228692Sdes fi 7747141098Sdesdone 7748228692Sdes done 7749174832SdesIFS=$as_save_IFS 7750141098Sdes 7751141098Sdesfi 7752141098Sdesfi 7753228692SdesOTOOL64=$ac_cv_prog_OTOOL64 7754228692Sdesif test -n "$OTOOL64"; then 7755228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7756228692Sdes$as_echo "$OTOOL64" >&6; } 7757141098Sdeselse 7758228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7759228692Sdes$as_echo "no" >&6; } 7760141098Sdesfi 7761141098Sdes 7762228692Sdes 7763228692Sdesfi 7764228692Sdesif test -z "$ac_cv_prog_OTOOL64"; then 7765228692Sdes ac_ct_OTOOL64=$OTOOL64 7766228692Sdes # Extract the first word of "otool64", so it can be a program name with args. 7767228692Sdesset dummy otool64; ac_word=$2 7768228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7769228692Sdes$as_echo_n "checking for $ac_word... " >&6; } 7770228692Sdesif ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7771228692Sdes $as_echo_n "(cached) " >&6 7772228692Sdeselse 7773228692Sdes if test -n "$ac_ct_OTOOL64"; then 7774228692Sdes ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7775228692Sdeselse 7776228692Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7777228692Sdesfor as_dir in $PATH 7778228692Sdesdo 7779228692Sdes IFS=$as_save_IFS 7780228692Sdes test -z "$as_dir" && as_dir=. 7781228692Sdes for ac_exec_ext in '' $ac_executable_extensions; do 7782255376Sdes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7783228692Sdes ac_cv_prog_ac_ct_OTOOL64="otool64" 7784228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7785228692Sdes break 2 7786228692Sdes fi 7787228692Sdesdone 7788228692Sdes done 7789228692SdesIFS=$as_save_IFS 7790228692Sdes 7791228692Sdesfi 7792228692Sdesfi 7793228692Sdesac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7794228692Sdesif test -n "$ac_ct_OTOOL64"; then 7795228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7796228692Sdes$as_echo "$ac_ct_OTOOL64" >&6; } 7797228692Sdeselse 7798228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7799228692Sdes$as_echo "no" >&6; } 7800228692Sdesfi 7801228692Sdes 7802228692Sdes if test "x$ac_ct_OTOOL64" = x; then 7803228692Sdes OTOOL64=":" 7804174832Sdes else 7805174832Sdes case $cross_compiling:$ac_tool_warned in 7806174832Sdesyes:) 7807228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7808228692Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7809174832Sdesac_tool_warned=yes ;; 7810174832Sdesesac 7811228692Sdes OTOOL64=$ac_ct_OTOOL64 7812174832Sdes fi 7813141098Sdeselse 7814228692Sdes OTOOL64="$ac_cv_prog_OTOOL64" 7815141098Sdesfi 7816141098Sdes 7817141098Sdes 7818228692Sdes 7819228692Sdes 7820228692Sdes 7821228692Sdes 7822228692Sdes 7823228692Sdes 7824228692Sdes 7825228692Sdes 7826228692Sdes 7827228692Sdes 7828228692Sdes 7829228692Sdes 7830228692Sdes 7831228692Sdes 7832228692Sdes 7833228692Sdes 7834228692Sdes 7835228692Sdes 7836228692Sdes 7837228692Sdes 7838228692Sdes 7839228692Sdes 7840228692Sdes 7841228692Sdes 7842228692Sdes 7843228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7844228692Sdes$as_echo_n "checking for -single_module linker flag... " >&6; } 7845228692Sdesif ${lt_cv_apple_cc_single_mod+:} false; then : 7846228692Sdes $as_echo_n "(cached) " >&6 7847228692Sdeselse 7848228692Sdes lt_cv_apple_cc_single_mod=no 7849228692Sdes if test -z "${LT_MULTI_MODULE}"; then 7850228692Sdes # By default we will add the -single_module flag. You can override 7851228692Sdes # by either setting the environment variable LT_MULTI_MODULE 7852228692Sdes # non-empty at configure time, or by adding -multi_module to the 7853228692Sdes # link flags. 7854228692Sdes rm -rf libconftest.dylib* 7855228692Sdes echo "int foo(void){return 1;}" > conftest.c 7856228692Sdes echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7857228692Sdes-dynamiclib -Wl,-single_module conftest.c" >&5 7858228692Sdes $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7859228692Sdes -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7860228692Sdes _lt_result=$? 7861236109Sdes # If there is a non-empty error log, and "single_module" 7862236109Sdes # appears in it, assume the flag caused a linker warning 7863236109Sdes if test -s conftest.err && $GREP single_module conftest.err; then 7864236109Sdes cat conftest.err >&5 7865236109Sdes # Otherwise, if the output was created with a 0 exit code from 7866236109Sdes # the compiler, it worked. 7867236109Sdes elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7868228692Sdes lt_cv_apple_cc_single_mod=yes 7869228692Sdes else 7870228692Sdes cat conftest.err >&5 7871228692Sdes fi 7872228692Sdes rm -rf libconftest.dylib* 7873228692Sdes rm -f conftest.* 7874228692Sdes fi 7875228692Sdesfi 7876228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7877228692Sdes$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7878236109Sdes 7879228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7880228692Sdes$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7881228692Sdesif ${lt_cv_ld_exported_symbols_list+:} false; then : 7882228692Sdes $as_echo_n "(cached) " >&6 7883228692Sdeselse 7884228692Sdes lt_cv_ld_exported_symbols_list=no 7885228692Sdes save_LDFLAGS=$LDFLAGS 7886228692Sdes echo "_main" > conftest.sym 7887228692Sdes LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7888228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7889228692Sdes/* end confdefs.h. */ 7890228692Sdes 7891228692Sdesint 7892228692Sdesmain () 7893228692Sdes{ 7894228692Sdes 7895228692Sdes ; 7896228692Sdes return 0; 7897228692Sdes} 7898228692Sdes_ACEOF 7899228692Sdesif ac_fn_c_try_link "$LINENO"; then : 7900228692Sdes lt_cv_ld_exported_symbols_list=yes 7901228692Sdeselse 7902228692Sdes lt_cv_ld_exported_symbols_list=no 7903228692Sdesfi 7904228692Sdesrm -f core conftest.err conftest.$ac_objext \ 7905228692Sdes conftest$ac_exeext conftest.$ac_ext 7906228692Sdes LDFLAGS="$save_LDFLAGS" 7907228692Sdes 7908228692Sdesfi 7909228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7910228692Sdes$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7911236109Sdes 7912228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7913228692Sdes$as_echo_n "checking for -force_load linker flag... " >&6; } 7914228692Sdesif ${lt_cv_ld_force_load+:} false; then : 7915228692Sdes $as_echo_n "(cached) " >&6 7916228692Sdeselse 7917228692Sdes lt_cv_ld_force_load=no 7918228692Sdes cat > conftest.c << _LT_EOF 7919228692Sdesint forced_loaded() { return 2;} 7920228692Sdes_LT_EOF 7921228692Sdes echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7922228692Sdes $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7923228692Sdes echo "$AR cru libconftest.a conftest.o" >&5 7924228692Sdes $AR cru libconftest.a conftest.o 2>&5 7925228692Sdes echo "$RANLIB libconftest.a" >&5 7926228692Sdes $RANLIB libconftest.a 2>&5 7927228692Sdes cat > conftest.c << _LT_EOF 7928228692Sdesint main() { return 0;} 7929228692Sdes_LT_EOF 7930228692Sdes echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7931228692Sdes $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7932228692Sdes _lt_result=$? 7933236109Sdes if test -s conftest.err && $GREP force_load conftest.err; then 7934236109Sdes cat conftest.err >&5 7935236109Sdes elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7936228692Sdes lt_cv_ld_force_load=yes 7937228692Sdes else 7938228692Sdes cat conftest.err >&5 7939228692Sdes fi 7940228692Sdes rm -f conftest.err libconftest.a conftest conftest.c 7941228692Sdes rm -rf conftest.dSYM 7942228692Sdes 7943228692Sdesfi 7944228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7945228692Sdes$as_echo "$lt_cv_ld_force_load" >&6; } 7946228692Sdes case $host_os in 7947228692Sdes rhapsody* | darwin1.[012]) 7948228692Sdes _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7949228692Sdes darwin1.*) 7950228692Sdes _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7951228692Sdes darwin*) # darwin 5.x on 7952228692Sdes # if running on 10.5 or later, the deployment target defaults 7953228692Sdes # to the OS version, if on x86, and 10.4, the deployment 7954228692Sdes # target defaults to 10.4. Don't you love it? 7955228692Sdes case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7956228692Sdes 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7957228692Sdes _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7958228692Sdes 10.[012]*) 7959228692Sdes _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7960228692Sdes 10.*) 7961228692Sdes _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7962228692Sdes esac 7963228692Sdes ;; 7964228692Sdes esac 7965228692Sdes if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7966228692Sdes _lt_dar_single_mod='$single_module' 7967228692Sdes fi 7968228692Sdes if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7969228692Sdes _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7970228692Sdes else 7971228692Sdes _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7972228692Sdes fi 7973228692Sdes if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7974228692Sdes _lt_dsymutil='~$DSYMUTIL $lib || :' 7975228692Sdes else 7976228692Sdes _lt_dsymutil= 7977228692Sdes fi 7978228692Sdes ;; 7979228692Sdes esac 7980228692Sdes 7981228692Sdesfor ac_header in dlfcn.h 7982228692Sdesdo : 7983228692Sdes ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7984228692Sdes" 7985228692Sdesif test "x$ac_cv_header_dlfcn_h" = xyes; then : 7986228692Sdes cat >>confdefs.h <<_ACEOF 7987228692Sdes#define HAVE_DLFCN_H 1 7988228692Sdes_ACEOF 7989228692Sdes 7990228692Sdesfi 7991228692Sdes 7992228692Sdesdone 7993228692Sdes 7994228692Sdes 7995228692Sdes 7996228692Sdes 7997228692Sdes 7998228692Sdes# Set options 7999228692Sdes# Check whether --enable-static was given. 8000228692Sdesif test "${enable_static+set}" = set; then : 8001228692Sdes enableval=$enable_static; p=${PACKAGE-default} 8002228692Sdes case $enableval in 8003228692Sdes yes) enable_static=yes ;; 8004228692Sdes no) enable_static=no ;; 8005228692Sdes *) 8006228692Sdes enable_static=no 8007228692Sdes # Look at the argument we got. We use all the common list separators. 8008228692Sdes lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8009228692Sdes for pkg in $enableval; do 8010228692Sdes IFS="$lt_save_ifs" 8011228692Sdes if test "X$pkg" = "X$p"; then 8012228692Sdes enable_static=yes 8013228692Sdes fi 8014228692Sdes done 8015228692Sdes IFS="$lt_save_ifs" 8016228692Sdes ;; 8017228692Sdes esac 8018228692Sdeselse 8019228692Sdes enable_static=no 8020228692Sdesfi 8021228692Sdes 8022228692Sdes 8023228692Sdes 8024228692Sdes 8025228692Sdes 8026228692Sdes 8027228692Sdes 8028228692Sdesenable_dlopen=yes 8029228692Sdes 8030228692Sdes 8031228692Sdes 8032228692Sdes 8033228692Sdes enable_win32_dll=no 8034228692Sdes 8035228692Sdes 8036228692Sdes # Check whether --enable-shared was given. 8037228692Sdesif test "${enable_shared+set}" = set; then : 8038228692Sdes enableval=$enable_shared; p=${PACKAGE-default} 8039228692Sdes case $enableval in 8040228692Sdes yes) enable_shared=yes ;; 8041228692Sdes no) enable_shared=no ;; 8042228692Sdes *) 8043228692Sdes enable_shared=no 8044228692Sdes # Look at the argument we got. We use all the common list separators. 8045228692Sdes lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8046228692Sdes for pkg in $enableval; do 8047228692Sdes IFS="$lt_save_ifs" 8048228692Sdes if test "X$pkg" = "X$p"; then 8049228692Sdes enable_shared=yes 8050228692Sdes fi 8051228692Sdes done 8052228692Sdes IFS="$lt_save_ifs" 8053228692Sdes ;; 8054228692Sdes esac 8055228692Sdeselse 8056228692Sdes enable_shared=yes 8057228692Sdesfi 8058228692Sdes 8059228692Sdes 8060228692Sdes 8061228692Sdes 8062228692Sdes 8063228692Sdes 8064228692Sdes 8065228692Sdes 8066228692Sdes 8067228692Sdes 8068228692Sdes 8069228692Sdes# Check whether --with-pic was given. 8070228692Sdesif test "${with_pic+set}" = set; then : 8071236109Sdes withval=$with_pic; lt_p=${PACKAGE-default} 8072236109Sdes case $withval in 8073236109Sdes yes|no) pic_mode=$withval ;; 8074236109Sdes *) 8075236109Sdes pic_mode=default 8076236109Sdes # Look at the argument we got. We use all the common list separators. 8077236109Sdes lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8078236109Sdes for lt_pkg in $withval; do 8079236109Sdes IFS="$lt_save_ifs" 8080236109Sdes if test "X$lt_pkg" = "X$lt_p"; then 8081236109Sdes pic_mode=yes 8082236109Sdes fi 8083236109Sdes done 8084236109Sdes IFS="$lt_save_ifs" 8085236109Sdes ;; 8086236109Sdes esac 8087228692Sdeselse 8088228692Sdes pic_mode=default 8089228692Sdesfi 8090228692Sdes 8091228692Sdes 8092228692Sdestest -z "$pic_mode" && pic_mode=default 8093228692Sdes 8094228692Sdes 8095228692Sdes 8096228692Sdes 8097228692Sdes 8098228692Sdes 8099228692Sdes 8100228692Sdes # Check whether --enable-fast-install was given. 8101228692Sdesif test "${enable_fast_install+set}" = set; then : 8102228692Sdes enableval=$enable_fast_install; p=${PACKAGE-default} 8103228692Sdes case $enableval in 8104228692Sdes yes) enable_fast_install=yes ;; 8105228692Sdes no) enable_fast_install=no ;; 8106228692Sdes *) 8107228692Sdes enable_fast_install=no 8108228692Sdes # Look at the argument we got. We use all the common list separators. 8109228692Sdes lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8110228692Sdes for pkg in $enableval; do 8111228692Sdes IFS="$lt_save_ifs" 8112228692Sdes if test "X$pkg" = "X$p"; then 8113228692Sdes enable_fast_install=yes 8114228692Sdes fi 8115228692Sdes done 8116228692Sdes IFS="$lt_save_ifs" 8117228692Sdes ;; 8118228692Sdes esac 8119228692Sdeselse 8120228692Sdes enable_fast_install=yes 8121228692Sdesfi 8122228692Sdes 8123228692Sdes 8124228692Sdes 8125228692Sdes 8126228692Sdes 8127228692Sdes 8128228692Sdes 8129228692Sdes 8130228692Sdes 8131228692Sdes 8132228692Sdes 8133228692Sdes# This can be used to rebuild libtool when needed 8134228692SdesLIBTOOL_DEPS="$ltmain" 8135228692Sdes 8136228692Sdes# Always use our own libtool. 8137228692SdesLIBTOOL='$(SHELL) $(top_builddir)/libtool' 8138228692Sdes 8139228692Sdes 8140228692Sdes 8141228692Sdes 8142228692Sdes 8143228692Sdes 8144228692Sdes 8145228692Sdes 8146228692Sdes 8147228692Sdes 8148228692Sdes 8149228692Sdes 8150228692Sdes 8151228692Sdes 8152228692Sdes 8153228692Sdes 8154228692Sdes 8155228692Sdes 8156228692Sdes 8157228692Sdes 8158228692Sdes 8159228692Sdes 8160228692Sdes 8161228692Sdes 8162228692Sdes 8163228692Sdes 8164236109Sdes 8165236109Sdes 8166236109Sdes 8167236109Sdes 8168228692Sdestest -z "$LN_S" && LN_S="ln -s" 8169228692Sdes 8170228692Sdes 8171228692Sdes 8172228692Sdes 8173228692Sdes 8174228692Sdes 8175228692Sdes 8176228692Sdes 8177228692Sdes 8178228692Sdes 8179228692Sdes 8180228692Sdes 8181228692Sdes 8182228692Sdes 8183228692Sdesif test -n "${ZSH_VERSION+set}" ; then 8184228692Sdes setopt NO_GLOB_SUBST 8185228692Sdesfi 8186228692Sdes 8187228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8188228692Sdes$as_echo_n "checking for objdir... " >&6; } 8189228692Sdesif ${lt_cv_objdir+:} false; then : 8190228692Sdes $as_echo_n "(cached) " >&6 8191228692Sdeselse 8192228692Sdes rm -f .libs 2>/dev/null 8193228692Sdesmkdir .libs 2>/dev/null 8194228692Sdesif test -d .libs; then 8195228692Sdes lt_cv_objdir=.libs 8196228692Sdeselse 8197228692Sdes # MS-DOS does not allow filenames that begin with a dot. 8198228692Sdes lt_cv_objdir=_libs 8199228692Sdesfi 8200228692Sdesrmdir .libs 2>/dev/null 8201228692Sdesfi 8202228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8203228692Sdes$as_echo "$lt_cv_objdir" >&6; } 8204228692Sdesobjdir=$lt_cv_objdir 8205228692Sdes 8206228692Sdes 8207228692Sdes 8208228692Sdes 8209228692Sdes 8210228692Sdescat >>confdefs.h <<_ACEOF 8211228692Sdes#define LT_OBJDIR "$lt_cv_objdir/" 8212228692Sdes_ACEOF 8213228692Sdes 8214228692Sdes 8215228692Sdes 8216228692Sdes 8217228692Sdescase $host_os in 8218228692Sdesaix3*) 8219228692Sdes # AIX sometimes has problems with the GCC collect2 program. For some 8220228692Sdes # reason, if we set the COLLECT_NAMES environment variable, the problems 8221228692Sdes # vanish in a puff of smoke. 8222228692Sdes if test "X${COLLECT_NAMES+set}" != Xset; then 8223228692Sdes COLLECT_NAMES= 8224228692Sdes export COLLECT_NAMES 8225228692Sdes fi 8226228692Sdes ;; 8227228692Sdesesac 8228228692Sdes 8229228692Sdes# Global variables: 8230228692Sdesofile=libtool 8231228692Sdescan_build_shared=yes 8232228692Sdes 8233228692Sdes# All known linkers require a `.a' archive for static linking (except MSVC, 8234228692Sdes# which needs '.lib'). 8235228692Sdeslibext=a 8236228692Sdes 8237228692Sdeswith_gnu_ld="$lt_cv_prog_gnu_ld" 8238228692Sdes 8239141098Sdesold_CC="$CC" 8240141098Sdesold_CFLAGS="$CFLAGS" 8241141098Sdes 8242141098Sdes# Set sane defaults for various variables 8243141098Sdestest -z "$CC" && CC=cc 8244141098Sdestest -z "$LTCC" && LTCC=$CC 8245174832Sdestest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8246141098Sdestest -z "$LD" && LD=ld 8247141098Sdestest -z "$ac_objext" && ac_objext=o 8248141098Sdes 8249174832Sdesfor cc_temp in $compiler""; do 8250174832Sdes case $cc_temp in 8251174832Sdes compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8252174832Sdes distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8253174832Sdes \-*) ;; 8254174832Sdes *) break;; 8255174832Sdes esac 8256174832Sdesdone 8257228692Sdescc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8258141098Sdes 8259174832Sdes 8260141098Sdes# Only perform the check for file, if the check method requires it 8261228692Sdestest -z "$MAGIC_CMD" && MAGIC_CMD=file 8262141098Sdescase $deplibs_check_method in 8263141098Sdesfile_magic*) 8264141098Sdes if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8265228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8266228692Sdes$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8267228692Sdesif ${lt_cv_path_MAGIC_CMD+:} false; then : 8268228692Sdes $as_echo_n "(cached) " >&6 8269141098Sdeselse 8270141098Sdes case $MAGIC_CMD in 8271141098Sdes[\\/*] | ?:[\\/]*) 8272141098Sdes lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8273141098Sdes ;; 8274141098Sdes*) 8275141098Sdes lt_save_MAGIC_CMD="$MAGIC_CMD" 8276141098Sdes lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8277141098Sdes ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8278141098Sdes for ac_dir in $ac_dummy; do 8279141098Sdes IFS="$lt_save_ifs" 8280141098Sdes test -z "$ac_dir" && ac_dir=. 8281141098Sdes if test -f $ac_dir/${ac_tool_prefix}file; then 8282141098Sdes lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8283141098Sdes if test -n "$file_magic_test_file"; then 8284141098Sdes case $deplibs_check_method in 8285141098Sdes "file_magic "*) 8286174832Sdes file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8287141098Sdes MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8288141098Sdes if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8289141098Sdes $EGREP "$file_magic_regex" > /dev/null; then 8290141098Sdes : 8291141098Sdes else 8292228692Sdes cat <<_LT_EOF 1>&2 8293141098Sdes 8294141098Sdes*** Warning: the command libtool uses to detect shared libraries, 8295141098Sdes*** $file_magic_cmd, produces output that libtool cannot recognize. 8296141098Sdes*** The result is that libtool may fail to recognize shared libraries 8297141098Sdes*** as such. This will affect the creation of libtool libraries that 8298141098Sdes*** depend on shared libraries, but programs linked with such libtool 8299141098Sdes*** libraries will work regardless of this problem. Nevertheless, you 8300141098Sdes*** may want to report the problem to your system manager and/or to 8301141098Sdes*** bug-libtool@gnu.org 8302141098Sdes 8303228692Sdes_LT_EOF 8304141098Sdes fi ;; 8305141098Sdes esac 8306141098Sdes fi 8307141098Sdes break 8308141098Sdes fi 8309141098Sdes done 8310141098Sdes IFS="$lt_save_ifs" 8311141098Sdes MAGIC_CMD="$lt_save_MAGIC_CMD" 8312141098Sdes ;; 8313141098Sdesesac 8314141098Sdesfi 8315141098Sdes 8316141098SdesMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8317141098Sdesif test -n "$MAGIC_CMD"; then 8318228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8319228692Sdes$as_echo "$MAGIC_CMD" >&6; } 8320141098Sdeselse 8321228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8322228692Sdes$as_echo "no" >&6; } 8323141098Sdesfi 8324141098Sdes 8325228692Sdes 8326228692Sdes 8327228692Sdes 8328228692Sdes 8329141098Sdesif test -z "$lt_cv_path_MAGIC_CMD"; then 8330141098Sdes if test -n "$ac_tool_prefix"; then 8331228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8332228692Sdes$as_echo_n "checking for file... " >&6; } 8333228692Sdesif ${lt_cv_path_MAGIC_CMD+:} false; then : 8334228692Sdes $as_echo_n "(cached) " >&6 8335141098Sdeselse 8336141098Sdes case $MAGIC_CMD in 8337141098Sdes[\\/*] | ?:[\\/]*) 8338141098Sdes lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8339141098Sdes ;; 8340141098Sdes*) 8341141098Sdes lt_save_MAGIC_CMD="$MAGIC_CMD" 8342141098Sdes lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8343141098Sdes ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8344141098Sdes for ac_dir in $ac_dummy; do 8345141098Sdes IFS="$lt_save_ifs" 8346141098Sdes test -z "$ac_dir" && ac_dir=. 8347141098Sdes if test -f $ac_dir/file; then 8348141098Sdes lt_cv_path_MAGIC_CMD="$ac_dir/file" 8349141098Sdes if test -n "$file_magic_test_file"; then 8350141098Sdes case $deplibs_check_method in 8351141098Sdes "file_magic "*) 8352174832Sdes file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8353141098Sdes MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8354141098Sdes if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8355141098Sdes $EGREP "$file_magic_regex" > /dev/null; then 8356141098Sdes : 8357141098Sdes else 8358228692Sdes cat <<_LT_EOF 1>&2 8359141098Sdes 8360141098Sdes*** Warning: the command libtool uses to detect shared libraries, 8361141098Sdes*** $file_magic_cmd, produces output that libtool cannot recognize. 8362141098Sdes*** The result is that libtool may fail to recognize shared libraries 8363141098Sdes*** as such. This will affect the creation of libtool libraries that 8364141098Sdes*** depend on shared libraries, but programs linked with such libtool 8365141098Sdes*** libraries will work regardless of this problem. Nevertheless, you 8366141098Sdes*** may want to report the problem to your system manager and/or to 8367141098Sdes*** bug-libtool@gnu.org 8368141098Sdes 8369228692Sdes_LT_EOF 8370141098Sdes fi ;; 8371141098Sdes esac 8372141098Sdes fi 8373141098Sdes break 8374141098Sdes fi 8375141098Sdes done 8376141098Sdes IFS="$lt_save_ifs" 8377141098Sdes MAGIC_CMD="$lt_save_MAGIC_CMD" 8378141098Sdes ;; 8379141098Sdesesac 8380141098Sdesfi 8381141098Sdes 8382141098SdesMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8383141098Sdesif test -n "$MAGIC_CMD"; then 8384228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8385228692Sdes$as_echo "$MAGIC_CMD" >&6; } 8386141098Sdeselse 8387228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8388228692Sdes$as_echo "no" >&6; } 8389141098Sdesfi 8390141098Sdes 8391228692Sdes 8392141098Sdes else 8393141098Sdes MAGIC_CMD=: 8394141098Sdes fi 8395141098Sdesfi 8396141098Sdes 8397141098Sdes fi 8398141098Sdes ;; 8399141098Sdesesac 8400141098Sdes 8401228692Sdes# Use C for the default configuration in the libtool script 8402141098Sdes 8403141098Sdeslt_save_CC="$CC" 8404141098Sdesac_ext=c 8405141098Sdesac_cpp='$CPP $CPPFLAGS' 8406141098Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8407141098Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8408141098Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu 8409141098Sdes 8410141098Sdes 8411141098Sdes# Source file extension for C test sources. 8412141098Sdesac_ext=c 8413141098Sdes 8414141098Sdes# Object file extension for compiled C test sources. 8415141098Sdesobjext=o 8416141098Sdesobjext=$objext 8417141098Sdes 8418141098Sdes# Code to be used in simple compile tests 8419174832Sdeslt_simple_compile_test_code="int some_variable = 0;" 8420141098Sdes 8421141098Sdes# Code to be used in simple link tests 8422174832Sdeslt_simple_link_test_code='int main(){return(0);}' 8423141098Sdes 8424141098Sdes 8425228692Sdes 8426228692Sdes 8427228692Sdes 8428228692Sdes 8429228692Sdes 8430141098Sdes# If no C compiler was specified, use CC. 8431141098SdesLTCC=${LTCC-"$CC"} 8432141098Sdes 8433174832Sdes# If no C compiler flags were specified, use CFLAGS. 8434174832SdesLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8435174832Sdes 8436141098Sdes# Allow CC to be a program name with arguments. 8437141098Sdescompiler=$CC 8438141098Sdes 8439228692Sdes# Save the default compiler, since it gets overwritten when the other 8440228692Sdes# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8441228692Sdescompiler_DEFAULT=$CC 8442141098Sdes 8443174832Sdes# save warnings/boilerplate of simple test code 8444174832Sdesac_outfile=conftest.$ac_objext 8445174832Sdesecho "$lt_simple_compile_test_code" >conftest.$ac_ext 8446174832Sdeseval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8447174832Sdes_lt_compiler_boilerplate=`cat conftest.err` 8448228692Sdes$RM conftest* 8449141098Sdes 8450174832Sdesac_outfile=conftest.$ac_objext 8451174832Sdesecho "$lt_simple_link_test_code" >conftest.$ac_ext 8452174832Sdeseval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8453174832Sdes_lt_linker_boilerplate=`cat conftest.err` 8454228692Sdes$RM -r conftest* 8455141098Sdes 8456141098Sdes 8457228692Sdesif test -n "$compiler"; then 8458141098Sdes 8459141098Sdeslt_prog_compiler_no_builtin_flag= 8460141098Sdes 8461141098Sdesif test "$GCC" = yes; then 8462228692Sdes case $cc_basename in 8463228692Sdes nvcc*) 8464228692Sdes lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8465228692Sdes *) 8466228692Sdes lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8467228692Sdes esac 8468141098Sdes 8469228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8470228692Sdes$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8471228692Sdesif ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8472228692Sdes $as_echo_n "(cached) " >&6 8473141098Sdeselse 8474141098Sdes lt_cv_prog_compiler_rtti_exceptions=no 8475228692Sdes ac_outfile=conftest.$ac_objext 8476174832Sdes echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8477141098Sdes lt_compiler_flag="-fno-rtti -fno-exceptions" 8478141098Sdes # Insert the option either (1) after the last *FLAGS variable, or 8479141098Sdes # (2) before a word containing "conftest.", or (3) at the end. 8480141098Sdes # Note that $ac_compile itself does not contain backslashes and begins 8481141098Sdes # with a dollar sign (not a hyphen), so the echo should work correctly. 8482141098Sdes # The option is referenced via a variable to avoid confusing sed. 8483141098Sdes lt_compile=`echo "$ac_compile" | $SED \ 8484174832Sdes -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8485141098Sdes -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8486141098Sdes -e 's:$: $lt_compiler_flag:'` 8487228692Sdes (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8488141098Sdes (eval "$lt_compile" 2>conftest.err) 8489141098Sdes ac_status=$? 8490141098Sdes cat conftest.err >&5 8491228692Sdes echo "$as_me:$LINENO: \$? = $ac_status" >&5 8492141098Sdes if (exit $ac_status) && test -s "$ac_outfile"; then 8493141098Sdes # The compiler can only warn and ignore the option if not recognized 8494174832Sdes # So say no if there are warnings other than the usual output. 8495228692Sdes $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8496174832Sdes $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8497174832Sdes if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8498141098Sdes lt_cv_prog_compiler_rtti_exceptions=yes 8499141098Sdes fi 8500141098Sdes fi 8501228692Sdes $RM conftest* 8502141098Sdes 8503141098Sdesfi 8504228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8505228692Sdes$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8506141098Sdes 8507141098Sdesif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8508141098Sdes lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8509141098Sdeselse 8510141098Sdes : 8511141098Sdesfi 8512141098Sdes 8513141098Sdesfi 8514141098Sdes 8515228692Sdes 8516228692Sdes 8517228692Sdes 8518228692Sdes 8519228692Sdes 8520228692Sdes lt_prog_compiler_wl= 8521141098Sdeslt_prog_compiler_pic= 8522141098Sdeslt_prog_compiler_static= 8523141098Sdes 8524141098Sdes 8525141098Sdes if test "$GCC" = yes; then 8526141098Sdes lt_prog_compiler_wl='-Wl,' 8527141098Sdes lt_prog_compiler_static='-static' 8528141098Sdes 8529141098Sdes case $host_os in 8530141098Sdes aix*) 8531141098Sdes # All AIX code is PIC. 8532141098Sdes if test "$host_cpu" = ia64; then 8533141098Sdes # AIX 5 now supports IA64 processor 8534141098Sdes lt_prog_compiler_static='-Bstatic' 8535141098Sdes fi 8536141098Sdes ;; 8537141098Sdes 8538141098Sdes amigaos*) 8539228692Sdes case $host_cpu in 8540228692Sdes powerpc) 8541228692Sdes # see comment about AmigaOS4 .so support 8542228692Sdes lt_prog_compiler_pic='-fPIC' 8543228692Sdes ;; 8544228692Sdes m68k) 8545228692Sdes # FIXME: we need at least 68020 code to build shared libraries, but 8546228692Sdes # adding the `-m68020' flag to GCC prevents building anything better, 8547228692Sdes # like `-m68040'. 8548228692Sdes lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8549228692Sdes ;; 8550228692Sdes esac 8551141098Sdes ;; 8552141098Sdes 8553174832Sdes beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8554141098Sdes # PIC is the default for these OSes. 8555141098Sdes ;; 8556141098Sdes 8557228692Sdes mingw* | cygwin* | pw32* | os2* | cegcc*) 8558141098Sdes # This hack is so that the source file can tell whether it is being 8559141098Sdes # built for inclusion in a dll (and should export symbols for example). 8560174832Sdes # Although the cygwin gcc ignores -fPIC, still need this for old-style 8561174832Sdes # (--disable-auto-import) libraries 8562141098Sdes lt_prog_compiler_pic='-DDLL_EXPORT' 8563141098Sdes ;; 8564141098Sdes 8565141098Sdes darwin* | rhapsody*) 8566141098Sdes # PIC is the default on this platform 8567141098Sdes # Common symbols not allowed in MH_DYLIB files 8568141098Sdes lt_prog_compiler_pic='-fno-common' 8569141098Sdes ;; 8570141098Sdes 8571228692Sdes haiku*) 8572228692Sdes # PIC is the default for Haiku. 8573228692Sdes # The "-static" flag exists, but is broken. 8574228692Sdes lt_prog_compiler_static= 8575228692Sdes ;; 8576228692Sdes 8577228692Sdes hpux*) 8578228692Sdes # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8579228692Sdes # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8580228692Sdes # sets the default TLS model and affects inlining. 8581228692Sdes case $host_cpu in 8582228692Sdes hppa*64*) 8583228692Sdes # +Z the default 8584228692Sdes ;; 8585228692Sdes *) 8586228692Sdes lt_prog_compiler_pic='-fPIC' 8587228692Sdes ;; 8588228692Sdes esac 8589228692Sdes ;; 8590228692Sdes 8591174832Sdes interix[3-9]*) 8592174832Sdes # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8593174832Sdes # Instead, we relocate shared libraries at runtime. 8594174832Sdes ;; 8595174832Sdes 8596141098Sdes msdosdjgpp*) 8597141098Sdes # Just because we use GCC doesn't mean we suddenly get shared libraries 8598141098Sdes # on systems that don't support them. 8599141098Sdes lt_prog_compiler_can_build_shared=no 8600141098Sdes enable_shared=no 8601141098Sdes ;; 8602141098Sdes 8603228692Sdes *nto* | *qnx*) 8604228692Sdes # QNX uses GNU C++, but need to define -shared option too, otherwise 8605228692Sdes # it will coredump. 8606228692Sdes lt_prog_compiler_pic='-fPIC -shared' 8607228692Sdes ;; 8608228692Sdes 8609141098Sdes sysv4*MP*) 8610141098Sdes if test -d /usr/nec; then 8611141098Sdes lt_prog_compiler_pic=-Kconform_pic 8612141098Sdes fi 8613141098Sdes ;; 8614141098Sdes 8615141098Sdes *) 8616141098Sdes lt_prog_compiler_pic='-fPIC' 8617141098Sdes ;; 8618141098Sdes esac 8619228692Sdes 8620228692Sdes case $cc_basename in 8621228692Sdes nvcc*) # Cuda Compiler Driver 2.2 8622228692Sdes lt_prog_compiler_wl='-Xlinker ' 8623236109Sdes if test -n "$lt_prog_compiler_pic"; then 8624236109Sdes lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8625236109Sdes fi 8626228692Sdes ;; 8627228692Sdes esac 8628141098Sdes else 8629141098Sdes # PORTME Check for flag to pass linker flags through the system compiler. 8630141098Sdes case $host_os in 8631141098Sdes aix*) 8632141098Sdes lt_prog_compiler_wl='-Wl,' 8633141098Sdes if test "$host_cpu" = ia64; then 8634141098Sdes # AIX 5 now supports IA64 processor 8635141098Sdes lt_prog_compiler_static='-Bstatic' 8636141098Sdes else 8637141098Sdes lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8638141098Sdes fi 8639141098Sdes ;; 8640141098Sdes 8641228692Sdes mingw* | cygwin* | pw32* | os2* | cegcc*) 8642141098Sdes # This hack is so that the source file can tell whether it is being 8643141098Sdes # built for inclusion in a dll (and should export symbols for example). 8644141098Sdes lt_prog_compiler_pic='-DDLL_EXPORT' 8645141098Sdes ;; 8646141098Sdes 8647141098Sdes hpux9* | hpux10* | hpux11*) 8648141098Sdes lt_prog_compiler_wl='-Wl,' 8649141098Sdes # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8650141098Sdes # not for PA HP-UX. 8651174832Sdes case $host_cpu in 8652141098Sdes hppa*64*|ia64*) 8653141098Sdes # +Z the default 8654141098Sdes ;; 8655141098Sdes *) 8656141098Sdes lt_prog_compiler_pic='+Z' 8657141098Sdes ;; 8658141098Sdes esac 8659141098Sdes # Is there a better lt_prog_compiler_static that works with the bundled CC? 8660141098Sdes lt_prog_compiler_static='${wl}-a ${wl}archive' 8661141098Sdes ;; 8662141098Sdes 8663141098Sdes irix5* | irix6* | nonstopux*) 8664141098Sdes lt_prog_compiler_wl='-Wl,' 8665141098Sdes # PIC (with -KPIC) is the default. 8666141098Sdes lt_prog_compiler_static='-non_shared' 8667141098Sdes ;; 8668141098Sdes 8669228692Sdes linux* | k*bsd*-gnu | kopensolaris*-gnu) 8670147455Sdes case $cc_basename in 8671228692Sdes # old Intel for x86_64 which still supported -KPIC. 8672228692Sdes ecc*) 8673141098Sdes lt_prog_compiler_wl='-Wl,' 8674141098Sdes lt_prog_compiler_pic='-KPIC' 8675141098Sdes lt_prog_compiler_static='-static' 8676141098Sdes ;; 8677228692Sdes # icc used to be incompatible with GCC. 8678228692Sdes # ICC 10 doesn't accept -KPIC any more. 8679228692Sdes icc* | ifort*) 8680228692Sdes lt_prog_compiler_wl='-Wl,' 8681228692Sdes lt_prog_compiler_pic='-fPIC' 8682228692Sdes lt_prog_compiler_static='-static' 8683228692Sdes ;; 8684228692Sdes # Lahey Fortran 8.1. 8685228692Sdes lf95*) 8686228692Sdes lt_prog_compiler_wl='-Wl,' 8687228692Sdes lt_prog_compiler_pic='--shared' 8688228692Sdes lt_prog_compiler_static='--static' 8689228692Sdes ;; 8690228692Sdes nagfor*) 8691228692Sdes # NAG Fortran compiler 8692228692Sdes lt_prog_compiler_wl='-Wl,-Wl,,' 8693228692Sdes lt_prog_compiler_pic='-PIC' 8694228692Sdes lt_prog_compiler_static='-Bstatic' 8695228692Sdes ;; 8696228692Sdes pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8697147455Sdes # Portland Group compilers (*not* the Pentium gcc compiler, 8698147455Sdes # which looks to be a dead project) 8699147455Sdes lt_prog_compiler_wl='-Wl,' 8700147455Sdes lt_prog_compiler_pic='-fpic' 8701174832Sdes lt_prog_compiler_static='-Bstatic' 8702147455Sdes ;; 8703141098Sdes ccc*) 8704141098Sdes lt_prog_compiler_wl='-Wl,' 8705141098Sdes # All Alpha code is PIC. 8706141098Sdes lt_prog_compiler_static='-non_shared' 8707141098Sdes ;; 8708228692Sdes xl* | bgxl* | bgf* | mpixl*) 8709228692Sdes # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8710228692Sdes lt_prog_compiler_wl='-Wl,' 8711228692Sdes lt_prog_compiler_pic='-qpic' 8712228692Sdes lt_prog_compiler_static='-qstaticlink' 8713228692Sdes ;; 8714174832Sdes *) 8715228692Sdes case `$CC -V 2>&1 | sed 5q` in 8716236109Sdes *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8717228692Sdes # Sun Fortran 8.3 passes all unrecognized flags to the linker 8718228692Sdes lt_prog_compiler_pic='-KPIC' 8719228692Sdes lt_prog_compiler_static='-Bstatic' 8720228692Sdes lt_prog_compiler_wl='' 8721228692Sdes ;; 8722236109Sdes *Sun\ F* | *Sun*Fortran*) 8723236109Sdes lt_prog_compiler_pic='-KPIC' 8724236109Sdes lt_prog_compiler_static='-Bstatic' 8725236109Sdes lt_prog_compiler_wl='-Qoption ld ' 8726236109Sdes ;; 8727174832Sdes *Sun\ C*) 8728174832Sdes # Sun C 5.9 8729174832Sdes lt_prog_compiler_pic='-KPIC' 8730174832Sdes lt_prog_compiler_static='-Bstatic' 8731174832Sdes lt_prog_compiler_wl='-Wl,' 8732174832Sdes ;; 8733236109Sdes *Intel*\ [CF]*Compiler*) 8734236109Sdes lt_prog_compiler_wl='-Wl,' 8735236109Sdes lt_prog_compiler_pic='-fPIC' 8736236109Sdes lt_prog_compiler_static='-static' 8737236109Sdes ;; 8738236109Sdes *Portland\ Group*) 8739236109Sdes lt_prog_compiler_wl='-Wl,' 8740236109Sdes lt_prog_compiler_pic='-fpic' 8741236109Sdes lt_prog_compiler_static='-Bstatic' 8742236109Sdes ;; 8743174832Sdes esac 8744174832Sdes ;; 8745141098Sdes esac 8746141098Sdes ;; 8747141098Sdes 8748228692Sdes newsos6) 8749228692Sdes lt_prog_compiler_pic='-KPIC' 8750228692Sdes lt_prog_compiler_static='-Bstatic' 8751228692Sdes ;; 8752228692Sdes 8753228692Sdes *nto* | *qnx*) 8754228692Sdes # QNX uses GNU C++, but need to define -shared option too, otherwise 8755228692Sdes # it will coredump. 8756228692Sdes lt_prog_compiler_pic='-fPIC -shared' 8757228692Sdes ;; 8758228692Sdes 8759141098Sdes osf3* | osf4* | osf5*) 8760141098Sdes lt_prog_compiler_wl='-Wl,' 8761141098Sdes # All OSF/1 code is PIC. 8762141098Sdes lt_prog_compiler_static='-non_shared' 8763141098Sdes ;; 8764141098Sdes 8765174832Sdes rdos*) 8766174832Sdes lt_prog_compiler_static='-non_shared' 8767141098Sdes ;; 8768141098Sdes 8769141098Sdes solaris*) 8770141098Sdes lt_prog_compiler_pic='-KPIC' 8771141098Sdes lt_prog_compiler_static='-Bstatic' 8772174832Sdes case $cc_basename in 8773228692Sdes f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8774174832Sdes lt_prog_compiler_wl='-Qoption ld ';; 8775174832Sdes *) 8776174832Sdes lt_prog_compiler_wl='-Wl,';; 8777174832Sdes esac 8778141098Sdes ;; 8779141098Sdes 8780141098Sdes sunos4*) 8781141098Sdes lt_prog_compiler_wl='-Qoption ld ' 8782141098Sdes lt_prog_compiler_pic='-PIC' 8783141098Sdes lt_prog_compiler_static='-Bstatic' 8784141098Sdes ;; 8785141098Sdes 8786174832Sdes sysv4 | sysv4.2uw2* | sysv4.3*) 8787141098Sdes lt_prog_compiler_wl='-Wl,' 8788141098Sdes lt_prog_compiler_pic='-KPIC' 8789141098Sdes lt_prog_compiler_static='-Bstatic' 8790141098Sdes ;; 8791141098Sdes 8792141098Sdes sysv4*MP*) 8793141098Sdes if test -d /usr/nec ;then 8794141098Sdes lt_prog_compiler_pic='-Kconform_pic' 8795141098Sdes lt_prog_compiler_static='-Bstatic' 8796141098Sdes fi 8797141098Sdes ;; 8798141098Sdes 8799174832Sdes sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8800174832Sdes lt_prog_compiler_wl='-Wl,' 8801174832Sdes lt_prog_compiler_pic='-KPIC' 8802174832Sdes lt_prog_compiler_static='-Bstatic' 8803174832Sdes ;; 8804174832Sdes 8805147455Sdes unicos*) 8806147455Sdes lt_prog_compiler_wl='-Wl,' 8807147455Sdes lt_prog_compiler_can_build_shared=no 8808147455Sdes ;; 8809147455Sdes 8810141098Sdes uts4*) 8811141098Sdes lt_prog_compiler_pic='-pic' 8812141098Sdes lt_prog_compiler_static='-Bstatic' 8813141098Sdes ;; 8814141098Sdes 8815141098Sdes *) 8816141098Sdes lt_prog_compiler_can_build_shared=no 8817141098Sdes ;; 8818141098Sdes esac 8819141098Sdes fi 8820141098Sdes 8821228692Sdescase $host_os in 8822228692Sdes # For platforms which do not support PIC, -DPIC is meaningless: 8823228692Sdes *djgpp*) 8824228692Sdes lt_prog_compiler_pic= 8825228692Sdes ;; 8826228692Sdes *) 8827228692Sdes lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8828228692Sdes ;; 8829228692Sdesesac 8830141098Sdes 8831228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8832228692Sdes$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8833228692Sdesif ${lt_cv_prog_compiler_pic+:} false; then : 8834228692Sdes $as_echo_n "(cached) " >&6 8835228692Sdeselse 8836228692Sdes lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8837228692Sdesfi 8838228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8839228692Sdes$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8840228692Sdeslt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8841228692Sdes 8842141098Sdes# 8843141098Sdes# Check to make sure the PIC flag actually works. 8844141098Sdes# 8845141098Sdesif test -n "$lt_prog_compiler_pic"; then 8846228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8847228692Sdes$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8848228692Sdesif ${lt_cv_prog_compiler_pic_works+:} false; then : 8849228692Sdes $as_echo_n "(cached) " >&6 8850141098Sdeselse 8851228692Sdes lt_cv_prog_compiler_pic_works=no 8852228692Sdes ac_outfile=conftest.$ac_objext 8853174832Sdes echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8854141098Sdes lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8855141098Sdes # Insert the option either (1) after the last *FLAGS variable, or 8856141098Sdes # (2) before a word containing "conftest.", or (3) at the end. 8857141098Sdes # Note that $ac_compile itself does not contain backslashes and begins 8858141098Sdes # with a dollar sign (not a hyphen), so the echo should work correctly. 8859141098Sdes # The option is referenced via a variable to avoid confusing sed. 8860141098Sdes lt_compile=`echo "$ac_compile" | $SED \ 8861174832Sdes -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8862141098Sdes -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8863141098Sdes -e 's:$: $lt_compiler_flag:'` 8864228692Sdes (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8865141098Sdes (eval "$lt_compile" 2>conftest.err) 8866141098Sdes ac_status=$? 8867141098Sdes cat conftest.err >&5 8868228692Sdes echo "$as_me:$LINENO: \$? = $ac_status" >&5 8869141098Sdes if (exit $ac_status) && test -s "$ac_outfile"; then 8870141098Sdes # The compiler can only warn and ignore the option if not recognized 8871174832Sdes # So say no if there are warnings other than the usual output. 8872228692Sdes $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8873174832Sdes $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8874174832Sdes if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8875228692Sdes lt_cv_prog_compiler_pic_works=yes 8876141098Sdes fi 8877141098Sdes fi 8878228692Sdes $RM conftest* 8879141098Sdes 8880141098Sdesfi 8881228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8882228692Sdes$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8883141098Sdes 8884228692Sdesif test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8885141098Sdes case $lt_prog_compiler_pic in 8886141098Sdes "" | " "*) ;; 8887141098Sdes *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8888141098Sdes esac 8889141098Sdeselse 8890141098Sdes lt_prog_compiler_pic= 8891141098Sdes lt_prog_compiler_can_build_shared=no 8892141098Sdesfi 8893141098Sdes 8894141098Sdesfi 8895141098Sdes 8896228692Sdes 8897228692Sdes 8898228692Sdes 8899228692Sdes 8900228692Sdes 8901228692Sdes 8902228692Sdes 8903228692Sdes 8904228692Sdes 8905228692Sdes 8906174832Sdes# 8907174832Sdes# Check to make sure the static flag actually works. 8908174832Sdes# 8909174832Sdeswl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8910228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8911228692Sdes$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8912228692Sdesif ${lt_cv_prog_compiler_static_works+:} false; then : 8913228692Sdes $as_echo_n "(cached) " >&6 8914174832Sdeselse 8915228692Sdes lt_cv_prog_compiler_static_works=no 8916174832Sdes save_LDFLAGS="$LDFLAGS" 8917174832Sdes LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8918174832Sdes echo "$lt_simple_link_test_code" > conftest.$ac_ext 8919174832Sdes if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8920174832Sdes # The linker can only warn and ignore the option if not recognized 8921174832Sdes # So say no if there are warnings 8922174832Sdes if test -s conftest.err; then 8923174832Sdes # Append any errors to the config.log. 8924174832Sdes cat conftest.err 1>&5 8925228692Sdes $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8926174832Sdes $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8927174832Sdes if diff conftest.exp conftest.er2 >/dev/null; then 8928228692Sdes lt_cv_prog_compiler_static_works=yes 8929174832Sdes fi 8930174832Sdes else 8931228692Sdes lt_cv_prog_compiler_static_works=yes 8932174832Sdes fi 8933174832Sdes fi 8934228692Sdes $RM -r conftest* 8935174832Sdes LDFLAGS="$save_LDFLAGS" 8936174832Sdes 8937174832Sdesfi 8938228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8939228692Sdes$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8940174832Sdes 8941228692Sdesif test x"$lt_cv_prog_compiler_static_works" = xyes; then 8942174832Sdes : 8943174832Sdeselse 8944174832Sdes lt_prog_compiler_static= 8945174832Sdesfi 8946174832Sdes 8947174832Sdes 8948228692Sdes 8949228692Sdes 8950228692Sdes 8951228692Sdes 8952228692Sdes 8953228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8954228692Sdes$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8955228692Sdesif ${lt_cv_prog_compiler_c_o+:} false; then : 8956228692Sdes $as_echo_n "(cached) " >&6 8957141098Sdeselse 8958141098Sdes lt_cv_prog_compiler_c_o=no 8959228692Sdes $RM -r conftest 2>/dev/null 8960141098Sdes mkdir conftest 8961141098Sdes cd conftest 8962141098Sdes mkdir out 8963174832Sdes echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8964141098Sdes 8965141098Sdes lt_compiler_flag="-o out/conftest2.$ac_objext" 8966141098Sdes # Insert the option either (1) after the last *FLAGS variable, or 8967141098Sdes # (2) before a word containing "conftest.", or (3) at the end. 8968141098Sdes # Note that $ac_compile itself does not contain backslashes and begins 8969141098Sdes # with a dollar sign (not a hyphen), so the echo should work correctly. 8970141098Sdes lt_compile=`echo "$ac_compile" | $SED \ 8971174832Sdes -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8972141098Sdes -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8973141098Sdes -e 's:$: $lt_compiler_flag:'` 8974228692Sdes (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8975141098Sdes (eval "$lt_compile" 2>out/conftest.err) 8976141098Sdes ac_status=$? 8977141098Sdes cat out/conftest.err >&5 8978228692Sdes echo "$as_me:$LINENO: \$? = $ac_status" >&5 8979141098Sdes if (exit $ac_status) && test -s out/conftest2.$ac_objext 8980141098Sdes then 8981141098Sdes # The compiler can only warn and ignore the option if not recognized 8982141098Sdes # So say no if there are warnings 8983228692Sdes $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8984174832Sdes $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8985174832Sdes if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8986141098Sdes lt_cv_prog_compiler_c_o=yes 8987141098Sdes fi 8988141098Sdes fi 8989174832Sdes chmod u+w . 2>&5 8990228692Sdes $RM conftest* 8991141098Sdes # SGI C++ compiler will create directory out/ii_files/ for 8992141098Sdes # template instantiation 8993228692Sdes test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8994228692Sdes $RM out/* && rmdir out 8995141098Sdes cd .. 8996228692Sdes $RM -r conftest 8997228692Sdes $RM conftest* 8998141098Sdes 8999141098Sdesfi 9000228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9001228692Sdes$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9002141098Sdes 9003141098Sdes 9004228692Sdes 9005228692Sdes 9006228692Sdes 9007228692Sdes 9008228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9009228692Sdes$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9010228692Sdesif ${lt_cv_prog_compiler_c_o+:} false; then : 9011228692Sdes $as_echo_n "(cached) " >&6 9012228692Sdeselse 9013228692Sdes lt_cv_prog_compiler_c_o=no 9014228692Sdes $RM -r conftest 2>/dev/null 9015228692Sdes mkdir conftest 9016228692Sdes cd conftest 9017228692Sdes mkdir out 9018228692Sdes echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9019228692Sdes 9020228692Sdes lt_compiler_flag="-o out/conftest2.$ac_objext" 9021228692Sdes # Insert the option either (1) after the last *FLAGS variable, or 9022228692Sdes # (2) before a word containing "conftest.", or (3) at the end. 9023228692Sdes # Note that $ac_compile itself does not contain backslashes and begins 9024228692Sdes # with a dollar sign (not a hyphen), so the echo should work correctly. 9025228692Sdes lt_compile=`echo "$ac_compile" | $SED \ 9026228692Sdes -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9027228692Sdes -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9028228692Sdes -e 's:$: $lt_compiler_flag:'` 9029228692Sdes (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9030228692Sdes (eval "$lt_compile" 2>out/conftest.err) 9031228692Sdes ac_status=$? 9032228692Sdes cat out/conftest.err >&5 9033228692Sdes echo "$as_me:$LINENO: \$? = $ac_status" >&5 9034228692Sdes if (exit $ac_status) && test -s out/conftest2.$ac_objext 9035228692Sdes then 9036228692Sdes # The compiler can only warn and ignore the option if not recognized 9037228692Sdes # So say no if there are warnings 9038228692Sdes $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9039228692Sdes $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9040228692Sdes if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9041228692Sdes lt_cv_prog_compiler_c_o=yes 9042228692Sdes fi 9043228692Sdes fi 9044228692Sdes chmod u+w . 2>&5 9045228692Sdes $RM conftest* 9046228692Sdes # SGI C++ compiler will create directory out/ii_files/ for 9047228692Sdes # template instantiation 9048228692Sdes test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9049228692Sdes $RM out/* && rmdir out 9050228692Sdes cd .. 9051228692Sdes $RM -r conftest 9052228692Sdes $RM conftest* 9053228692Sdes 9054228692Sdesfi 9055228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9056228692Sdes$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9057228692Sdes 9058228692Sdes 9059228692Sdes 9060228692Sdes 9061141098Sdeshard_links="nottested" 9062141098Sdesif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9063141098Sdes # do not overwrite the value of need_locks provided by the user 9064228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9065228692Sdes$as_echo_n "checking if we can lock with hard links... " >&6; } 9066141098Sdes hard_links=yes 9067228692Sdes $RM conftest* 9068141098Sdes ln conftest.a conftest.b 2>/dev/null && hard_links=no 9069141098Sdes touch conftest.a 9070141098Sdes ln conftest.a conftest.b 2>&5 || hard_links=no 9071141098Sdes ln conftest.a conftest.b 2>/dev/null && hard_links=no 9072228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9073228692Sdes$as_echo "$hard_links" >&6; } 9074141098Sdes if test "$hard_links" = no; then 9075228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9076228692Sdes$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9077141098Sdes need_locks=warn 9078141098Sdes fi 9079141098Sdeselse 9080141098Sdes need_locks=no 9081141098Sdesfi 9082141098Sdes 9083141098Sdes 9084228692Sdes 9085228692Sdes 9086228692Sdes 9087228692Sdes 9088228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9089228692Sdes$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9090228692Sdes 9091141098Sdes runpath_var= 9092141098Sdes allow_undefined_flag= 9093228692Sdes always_export_symbols=no 9094141098Sdes archive_cmds= 9095141098Sdes archive_expsym_cmds= 9096228692Sdes compiler_needs_object=no 9097228692Sdes enable_shared_with_static_runtimes=no 9098141098Sdes export_dynamic_flag_spec= 9099228692Sdes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9100228692Sdes hardcode_automatic=no 9101228692Sdes hardcode_direct=no 9102228692Sdes hardcode_direct_absolute=no 9103141098Sdes hardcode_libdir_flag_spec= 9104141098Sdes hardcode_libdir_separator= 9105141098Sdes hardcode_minus_L=no 9106141098Sdes hardcode_shlibpath_var=unsupported 9107228692Sdes inherit_rpath=no 9108141098Sdes link_all_deplibs=unknown 9109141098Sdes module_cmds= 9110141098Sdes module_expsym_cmds= 9111228692Sdes old_archive_from_new_cmds= 9112228692Sdes old_archive_from_expsyms_cmds= 9113228692Sdes thread_safe_flag_spec= 9114228692Sdes whole_archive_flag_spec= 9115141098Sdes # include_expsyms should be a list of space-separated symbols to be *always* 9116141098Sdes # included in the symbol list 9117141098Sdes include_expsyms= 9118141098Sdes # exclude_expsyms can be an extended regexp of symbols to exclude 9119141098Sdes # it will be wrapped by ` (' and `)$', so one must not match beginning or 9120141098Sdes # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9121141098Sdes # as well as any symbol that contains `d'. 9122228692Sdes exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9123141098Sdes # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9124141098Sdes # platforms (ab)use it in PIC code, but their linkers get confused if 9125141098Sdes # the symbol is explicitly referenced. Since portable code cannot 9126141098Sdes # rely on this symbol name, it's probably fine to never include it in 9127141098Sdes # preloaded symbol tables. 9128228692Sdes # Exclude shared library initialization/finalization symbols. 9129141098Sdes extract_expsyms_cmds= 9130141098Sdes 9131141098Sdes case $host_os in 9132228692Sdes cygwin* | mingw* | pw32* | cegcc*) 9133141098Sdes # FIXME: the MSVC++ port hasn't been tested in a loooong time 9134141098Sdes # When not using gcc, we currently assume that we are using 9135141098Sdes # Microsoft Visual C++. 9136141098Sdes if test "$GCC" != yes; then 9137141098Sdes with_gnu_ld=no 9138141098Sdes fi 9139141098Sdes ;; 9140174832Sdes interix*) 9141174832Sdes # we just hope/assume this is gcc and not c89 (= MSVC++) 9142174832Sdes with_gnu_ld=yes 9143174832Sdes ;; 9144141098Sdes openbsd*) 9145141098Sdes with_gnu_ld=no 9146141098Sdes ;; 9147141098Sdes esac 9148141098Sdes 9149141098Sdes ld_shlibs=yes 9150228692Sdes 9151228692Sdes # On some targets, GNU ld is compatible enough with the native linker 9152228692Sdes # that we're better off using the native interface for both. 9153228692Sdes lt_use_gnu_ld_interface=no 9154141098Sdes if test "$with_gnu_ld" = yes; then 9155228692Sdes case $host_os in 9156228692Sdes aix*) 9157228692Sdes # The AIX port of GNU ld has always aspired to compatibility 9158228692Sdes # with the native linker. However, as the warning in the GNU ld 9159228692Sdes # block says, versions before 2.19.5* couldn't really create working 9160228692Sdes # shared libraries, regardless of the interface used. 9161228692Sdes case `$LD -v 2>&1` in 9162228692Sdes *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9163228692Sdes *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9164228692Sdes *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9165228692Sdes *) 9166228692Sdes lt_use_gnu_ld_interface=yes 9167228692Sdes ;; 9168228692Sdes esac 9169228692Sdes ;; 9170228692Sdes *) 9171228692Sdes lt_use_gnu_ld_interface=yes 9172228692Sdes ;; 9173228692Sdes esac 9174228692Sdes fi 9175228692Sdes 9176228692Sdes if test "$lt_use_gnu_ld_interface" = yes; then 9177141098Sdes # If archive_cmds runs LD, not CC, wlarc should be empty 9178141098Sdes wlarc='${wl}' 9179141098Sdes 9180174832Sdes # Set some defaults for GNU ld with shared library support. These 9181174832Sdes # are reset later if shared libraries are not supported. Putting them 9182174832Sdes # here allows them to be overridden if necessary. 9183174832Sdes runpath_var=LD_RUN_PATH 9184228692Sdes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9185174832Sdes export_dynamic_flag_spec='${wl}--export-dynamic' 9186174832Sdes # ancient GNU ld didn't support --whole-archive et. al. 9187228692Sdes if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9188228692Sdes whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9189228692Sdes else 9190228692Sdes whole_archive_flag_spec= 9191174832Sdes fi 9192174832Sdes supports_anon_versioning=no 9193228692Sdes case `$LD -v 2>&1` in 9194228692Sdes *GNU\ gold*) supports_anon_versioning=yes ;; 9195174832Sdes *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9196174832Sdes *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9197174832Sdes *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9198174832Sdes *\ 2.11.*) ;; # other 2.11 versions 9199174832Sdes *) supports_anon_versioning=yes ;; 9200174832Sdes esac 9201174832Sdes 9202141098Sdes # See if GNU ld supports shared libraries. 9203141098Sdes case $host_os in 9204228692Sdes aix[3-9]*) 9205141098Sdes # On AIX/PPC, the GNU linker is very broken 9206141098Sdes if test "$host_cpu" != ia64; then 9207141098Sdes ld_shlibs=no 9208228692Sdes cat <<_LT_EOF 1>&2 9209141098Sdes 9210228692Sdes*** Warning: the GNU linker, at least up to release 2.19, is reported 9211141098Sdes*** to be unable to reliably create shared libraries on AIX. 9212141098Sdes*** Therefore, libtool is disabling shared libraries support. If you 9213228692Sdes*** really care for shared libraries, you may want to install binutils 9214228692Sdes*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9215228692Sdes*** You will then need to restart the configuration process. 9216141098Sdes 9217228692Sdes_LT_EOF 9218141098Sdes fi 9219141098Sdes ;; 9220141098Sdes 9221141098Sdes amigaos*) 9222228692Sdes case $host_cpu in 9223228692Sdes powerpc) 9224228692Sdes # see comment about AmigaOS4 .so support 9225228692Sdes archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9226228692Sdes archive_expsym_cmds='' 9227228692Sdes ;; 9228228692Sdes m68k) 9229228692Sdes 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)' 9230228692Sdes hardcode_libdir_flag_spec='-L$libdir' 9231228692Sdes hardcode_minus_L=yes 9232228692Sdes ;; 9233228692Sdes esac 9234141098Sdes ;; 9235141098Sdes 9236141098Sdes beos*) 9237228692Sdes if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9238141098Sdes allow_undefined_flag=unsupported 9239141098Sdes # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9240141098Sdes # support --undefined. This deserves some investigation. FIXME 9241141098Sdes archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9242141098Sdes else 9243141098Sdes ld_shlibs=no 9244141098Sdes fi 9245141098Sdes ;; 9246141098Sdes 9247228692Sdes cygwin* | mingw* | pw32* | cegcc*) 9248228692Sdes # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9249141098Sdes # as there is no search path for DLLs. 9250141098Sdes hardcode_libdir_flag_spec='-L$libdir' 9251228692Sdes export_dynamic_flag_spec='${wl}--export-all-symbols' 9252141098Sdes allow_undefined_flag=unsupported 9253141098Sdes always_export_symbols=no 9254141098Sdes enable_shared_with_static_runtimes=yes 9255228692Sdes 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' 9256228692Sdes exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9257141098Sdes 9258228692Sdes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9259174832Sdes archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9260141098Sdes # If the export-symbols file already is a .def file (1st line 9261141098Sdes # is EXPORTS), use it as is; otherwise, prepend... 9262141098Sdes archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9263141098Sdes cp $export_symbols $output_objdir/$soname.def; 9264141098Sdes else 9265141098Sdes echo EXPORTS > $output_objdir/$soname.def; 9266141098Sdes cat $export_symbols >> $output_objdir/$soname.def; 9267141098Sdes fi~ 9268174832Sdes $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9269141098Sdes else 9270141098Sdes ld_shlibs=no 9271141098Sdes fi 9272141098Sdes ;; 9273141098Sdes 9274228692Sdes haiku*) 9275228692Sdes archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9276228692Sdes link_all_deplibs=yes 9277228692Sdes ;; 9278228692Sdes 9279174832Sdes interix[3-9]*) 9280174832Sdes hardcode_direct=no 9281174832Sdes hardcode_shlibpath_var=no 9282174832Sdes hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9283174832Sdes export_dynamic_flag_spec='${wl}-E' 9284174832Sdes # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9285174832Sdes # Instead, shared libraries are loaded at an image base (0x10000000 by 9286174832Sdes # default) and relocated if they conflict, which is a slow very memory 9287174832Sdes # consuming and fragmenting process. To avoid this, we pick a random, 9288174832Sdes # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9289174832Sdes # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9290174832Sdes archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9291174832Sdes 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' 9292174832Sdes ;; 9293174832Sdes 9294228692Sdes gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9295228692Sdes tmp_diet=no 9296228692Sdes if test "$host_os" = linux-dietlibc; then 9297228692Sdes case $cc_basename in 9298228692Sdes diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9299228692Sdes esac 9300228692Sdes fi 9301228692Sdes if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9302228692Sdes && test "$tmp_diet" = no 9303228692Sdes then 9304228692Sdes tmp_addflag=' $pic_flag' 9305228692Sdes tmp_sharedflag='-shared' 9306174832Sdes case $cc_basename,$host_cpu in 9307228692Sdes pgcc*) # Portland Group C compiler 9308228692Sdes 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' 9309174832Sdes tmp_addflag=' $pic_flag' 9310174832Sdes ;; 9311228692Sdes pgf77* | pgf90* | pgf95* | pgfortran*) 9312228692Sdes # Portland Group f77 and f90 compilers 9313228692Sdes 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' 9314174832Sdes tmp_addflag=' $pic_flag -Mnomain' ;; 9315228692Sdes ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9316174832Sdes tmp_addflag=' -i_dynamic' ;; 9317174832Sdes efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9318174832Sdes tmp_addflag=' -i_dynamic -nofor_main' ;; 9319174832Sdes ifc* | ifort*) # Intel Fortran compiler 9320174832Sdes tmp_addflag=' -nofor_main' ;; 9321228692Sdes lf95*) # Lahey Fortran 8.1 9322228692Sdes whole_archive_flag_spec= 9323228692Sdes tmp_sharedflag='--shared' ;; 9324228692Sdes xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9325228692Sdes tmp_sharedflag='-qmkshrobj' 9326228692Sdes tmp_addflag= ;; 9327228692Sdes nvcc*) # Cuda Compiler Driver 2.2 9328228692Sdes 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' 9329228692Sdes compiler_needs_object=yes 9330228692Sdes ;; 9331174832Sdes esac 9332174832Sdes case `$CC -V 2>&1 | sed 5q` in 9333174832Sdes *Sun\ C*) # Sun C 5.9 9334228692Sdes 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' 9335228692Sdes compiler_needs_object=yes 9336174832Sdes tmp_sharedflag='-G' ;; 9337174832Sdes *Sun\ F*) # Sun Fortran 8.3 9338174832Sdes tmp_sharedflag='-G' ;; 9339174832Sdes esac 9340174832Sdes archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9341174832Sdes 9342228692Sdes if test "x$supports_anon_versioning" = xyes; then 9343228692Sdes archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9344228692Sdes cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9345228692Sdes echo "local: *; };" >> $output_objdir/$libname.ver~ 9346228692Sdes $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9347228692Sdes fi 9348228692Sdes 9349228692Sdes case $cc_basename in 9350228692Sdes xlf* | bgf* | bgxlf* | mpixlf*) 9351228692Sdes # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9352228692Sdes whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9353236109Sdes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9354228692Sdes archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9355228692Sdes if test "x$supports_anon_versioning" = xyes; then 9356228692Sdes archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9357228692Sdes cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9358228692Sdes echo "local: *; };" >> $output_objdir/$libname.ver~ 9359228692Sdes $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9360228692Sdes fi 9361228692Sdes ;; 9362228692Sdes esac 9363174832Sdes else 9364228692Sdes ld_shlibs=no 9365174832Sdes fi 9366174832Sdes ;; 9367174832Sdes 9368141098Sdes netbsd*) 9369228692Sdes if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9370141098Sdes archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9371141098Sdes wlarc= 9372141098Sdes else 9373228692Sdes archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9374228692Sdes archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9375141098Sdes fi 9376141098Sdes ;; 9377141098Sdes 9378174832Sdes solaris*) 9379228692Sdes if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9380141098Sdes ld_shlibs=no 9381228692Sdes cat <<_LT_EOF 1>&2 9382141098Sdes 9383141098Sdes*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9384141098Sdes*** create shared libraries on Solaris systems. Therefore, libtool 9385141098Sdes*** is disabling shared libraries support. We urge you to upgrade GNU 9386141098Sdes*** binutils to release 2.9.1 or newer. Another option is to modify 9387141098Sdes*** your PATH or compiler configuration so that the native linker is 9388141098Sdes*** used, and then restart. 9389141098Sdes 9390228692Sdes_LT_EOF 9391228692Sdes elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9392228692Sdes archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9393228692Sdes archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9394141098Sdes else 9395141098Sdes ld_shlibs=no 9396141098Sdes fi 9397141098Sdes ;; 9398141098Sdes 9399174832Sdes sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9400174832Sdes case `$LD -v 2>&1` in 9401174832Sdes *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9402174832Sdes ld_shlibs=no 9403174832Sdes cat <<_LT_EOF 1>&2 9404174832Sdes 9405174832Sdes*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9406174832Sdes*** reliably create shared libraries on SCO systems. Therefore, libtool 9407174832Sdes*** is disabling shared libraries support. We urge you to upgrade GNU 9408174832Sdes*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9409174832Sdes*** your PATH or compiler configuration so that the native linker is 9410174832Sdes*** used, and then restart. 9411174832Sdes 9412174832Sdes_LT_EOF 9413174832Sdes ;; 9414174832Sdes *) 9415228692Sdes # For security reasons, it is highly recommended that you always 9416228692Sdes # use absolute paths for naming shared libraries, and exclude the 9417228692Sdes # DT_RUNPATH tag from executables and libraries. But doing so 9418228692Sdes # requires that you compile everything twice, which is a pain. 9419228692Sdes if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9420228692Sdes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9421228692Sdes archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9422228692Sdes archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9423174832Sdes else 9424174832Sdes ld_shlibs=no 9425174832Sdes fi 9426174832Sdes ;; 9427174832Sdes esac 9428174832Sdes ;; 9429174832Sdes 9430141098Sdes sunos4*) 9431141098Sdes archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9432141098Sdes wlarc= 9433141098Sdes hardcode_direct=yes 9434141098Sdes hardcode_shlibpath_var=no 9435141098Sdes ;; 9436141098Sdes 9437141098Sdes *) 9438228692Sdes if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9439228692Sdes archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9440228692Sdes archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9441141098Sdes else 9442141098Sdes ld_shlibs=no 9443141098Sdes fi 9444141098Sdes ;; 9445141098Sdes esac 9446141098Sdes 9447174832Sdes if test "$ld_shlibs" = no; then 9448174832Sdes runpath_var= 9449174832Sdes hardcode_libdir_flag_spec= 9450174832Sdes export_dynamic_flag_spec= 9451174832Sdes whole_archive_flag_spec= 9452141098Sdes fi 9453141098Sdes else 9454141098Sdes # PORTME fill in a description of your system's linker (not GNU ld) 9455141098Sdes case $host_os in 9456141098Sdes aix3*) 9457141098Sdes allow_undefined_flag=unsupported 9458141098Sdes always_export_symbols=yes 9459141098Sdes 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' 9460141098Sdes # Note: this linker hardcodes the directories in LIBPATH if there 9461141098Sdes # are no directories specified by -L. 9462141098Sdes hardcode_minus_L=yes 9463174832Sdes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9464141098Sdes # Neither direct hardcoding nor static linking is supported with a 9465141098Sdes # broken collect2. 9466141098Sdes hardcode_direct=unsupported 9467141098Sdes fi 9468141098Sdes ;; 9469141098Sdes 9470228692Sdes aix[4-9]*) 9471141098Sdes if test "$host_cpu" = ia64; then 9472141098Sdes # On IA64, the linker does run time linking by default, so we don't 9473141098Sdes # have to do anything special. 9474141098Sdes aix_use_runtimelinking=no 9475141098Sdes exp_sym_flag='-Bexport' 9476141098Sdes no_entry_flag="" 9477141098Sdes else 9478141098Sdes # If we're using GNU nm, then we don't want the "-C" option. 9479141098Sdes # -C means demangle to AIX nm, but means don't demangle with GNU nm 9480228692Sdes # Also, AIX nm treats weak defined symbols like other global 9481228692Sdes # defined symbols, whereas GNU nm marks them as "W". 9482228692Sdes if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9483228692Sdes 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' 9484141098Sdes else 9485228692Sdes 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' 9486141098Sdes fi 9487141098Sdes aix_use_runtimelinking=no 9488141098Sdes 9489141098Sdes # Test if we are trying to use run time linking or normal 9490141098Sdes # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9491141098Sdes # need to do runtime linking. 9492228692Sdes case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9493141098Sdes for ld_flag in $LDFLAGS; do 9494228692Sdes if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9495228692Sdes aix_use_runtimelinking=yes 9496228692Sdes break 9497228692Sdes fi 9498141098Sdes done 9499174832Sdes ;; 9500141098Sdes esac 9501141098Sdes 9502141098Sdes exp_sym_flag='-bexport' 9503141098Sdes no_entry_flag='-bnoentry' 9504141098Sdes fi 9505141098Sdes 9506141098Sdes # When large executables or shared objects are built, AIX ld can 9507141098Sdes # have problems creating the table of contents. If linking a library 9508141098Sdes # or program results in "error TOC overflow" add -mminimal-toc to 9509141098Sdes # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9510141098Sdes # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9511141098Sdes 9512141098Sdes archive_cmds='' 9513141098Sdes hardcode_direct=yes 9514228692Sdes hardcode_direct_absolute=yes 9515141098Sdes hardcode_libdir_separator=':' 9516141098Sdes link_all_deplibs=yes 9517228692Sdes file_list_spec='${wl}-f,' 9518141098Sdes 9519141098Sdes if test "$GCC" = yes; then 9520147455Sdes case $host_os in aix4.[012]|aix4.[012].*) 9521141098Sdes # We only want to do this on AIX 4.2 and lower, the check 9522141098Sdes # below for broken collect2 doesn't work under 4.3+ 9523141098Sdes collect2name=`${CC} -print-prog-name=collect2` 9524228692Sdes if test -f "$collect2name" && 9525228692Sdes strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9526141098Sdes then 9527228692Sdes # We have reworked collect2 9528228692Sdes : 9529141098Sdes else 9530228692Sdes # We have old collect2 9531228692Sdes hardcode_direct=unsupported 9532228692Sdes # It fails to find uninstalled libraries when the uninstalled 9533228692Sdes # path is not listed in the libpath. Setting hardcode_minus_L 9534228692Sdes # to unsupported forces relinking 9535228692Sdes hardcode_minus_L=yes 9536228692Sdes hardcode_libdir_flag_spec='-L$libdir' 9537228692Sdes hardcode_libdir_separator= 9538141098Sdes fi 9539174832Sdes ;; 9540141098Sdes esac 9541141098Sdes shared_flag='-shared' 9542147455Sdes if test "$aix_use_runtimelinking" = yes; then 9543147455Sdes shared_flag="$shared_flag "'${wl}-G' 9544147455Sdes fi 9545141098Sdes else 9546141098Sdes # not using gcc 9547141098Sdes if test "$host_cpu" = ia64; then 9548228692Sdes # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9549228692Sdes # chokes on -Wl,-G. The following line is correct: 9550141098Sdes shared_flag='-G' 9551141098Sdes else 9552174832Sdes if test "$aix_use_runtimelinking" = yes; then 9553141098Sdes shared_flag='${wl}-G' 9554141098Sdes else 9555141098Sdes shared_flag='${wl}-bM:SRE' 9556174832Sdes fi 9557141098Sdes fi 9558141098Sdes fi 9559141098Sdes 9560228692Sdes export_dynamic_flag_spec='${wl}-bexpall' 9561141098Sdes # It seems that -bexpall does not export symbols beginning with 9562141098Sdes # underscore (_), so it is better to generate a list of symbols to export. 9563141098Sdes always_export_symbols=yes 9564141098Sdes if test "$aix_use_runtimelinking" = yes; then 9565141098Sdes # Warning - without using the other runtime loading flags (-brtl), 9566141098Sdes # -berok will link without error, but may produce a broken library. 9567141098Sdes allow_undefined_flag='-berok' 9568228692Sdes # Determine the default libpath from the value encoded in an 9569228692Sdes # empty executable. 9570228692Sdes if test "${lt_cv_aix_libpath+set}" = set; then 9571228692Sdes aix_libpath=$lt_cv_aix_libpath 9572228692Sdeselse 9573228692Sdes if ${lt_cv_aix_libpath_+:} false; then : 9574228692Sdes $as_echo_n "(cached) " >&6 9575228692Sdeselse 9576228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9577141098Sdes/* end confdefs.h. */ 9578141098Sdes 9579141098Sdesint 9580141098Sdesmain () 9581141098Sdes{ 9582141098Sdes 9583141098Sdes ; 9584141098Sdes return 0; 9585141098Sdes} 9586141098Sdes_ACEOF 9587228692Sdesif ac_fn_c_try_link "$LINENO"; then : 9588141098Sdes 9589228692Sdes lt_aix_libpath_sed=' 9590228692Sdes /Import File Strings/,/^$/ { 9591228692Sdes /^0/ { 9592228692Sdes s/^0 *\([^ ]*\) *$/\1/ 9593228692Sdes p 9594228692Sdes } 9595228692Sdes }' 9596228692Sdes lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9597228692Sdes # Check for a 64-bit object if we didn't find anything. 9598228692Sdes if test -z "$lt_cv_aix_libpath_"; then 9599228692Sdes lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9600228692Sdes fi 9601174832Sdesfi 9602228692Sdesrm -f core conftest.err conftest.$ac_objext \ 9603228692Sdes conftest$ac_exeext conftest.$ac_ext 9604228692Sdes if test -z "$lt_cv_aix_libpath_"; then 9605228692Sdes lt_cv_aix_libpath_="/usr/lib:/lib" 9606228692Sdes fi 9607141098Sdes 9608228692Sdesfi 9609174832Sdes 9610228692Sdes aix_libpath=$lt_cv_aix_libpath_ 9611141098Sdesfi 9612174832Sdes 9613228692Sdes hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9614228692Sdes 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" 9615228692Sdes else 9616141098Sdes if test "$host_cpu" = ia64; then 9617141098Sdes hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9618141098Sdes allow_undefined_flag="-z nodefs" 9619174832Sdes 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" 9620141098Sdes else 9621228692Sdes # Determine the default libpath from the value encoded in an 9622228692Sdes # empty executable. 9623228692Sdes if test "${lt_cv_aix_libpath+set}" = set; then 9624228692Sdes aix_libpath=$lt_cv_aix_libpath 9625228692Sdeselse 9626228692Sdes if ${lt_cv_aix_libpath_+:} false; then : 9627228692Sdes $as_echo_n "(cached) " >&6 9628228692Sdeselse 9629228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9630141098Sdes/* end confdefs.h. */ 9631141098Sdes 9632141098Sdesint 9633141098Sdesmain () 9634141098Sdes{ 9635141098Sdes 9636141098Sdes ; 9637141098Sdes return 0; 9638141098Sdes} 9639141098Sdes_ACEOF 9640228692Sdesif ac_fn_c_try_link "$LINENO"; then : 9641141098Sdes 9642228692Sdes lt_aix_libpath_sed=' 9643228692Sdes /Import File Strings/,/^$/ { 9644228692Sdes /^0/ { 9645228692Sdes s/^0 *\([^ ]*\) *$/\1/ 9646228692Sdes p 9647228692Sdes } 9648228692Sdes }' 9649228692Sdes lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9650228692Sdes # Check for a 64-bit object if we didn't find anything. 9651228692Sdes if test -z "$lt_cv_aix_libpath_"; then 9652228692Sdes lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9653228692Sdes fi 9654174832Sdesfi 9655228692Sdesrm -f core conftest.err conftest.$ac_objext \ 9656228692Sdes conftest$ac_exeext conftest.$ac_ext 9657228692Sdes if test -z "$lt_cv_aix_libpath_"; then 9658228692Sdes lt_cv_aix_libpath_="/usr/lib:/lib" 9659228692Sdes fi 9660141098Sdes 9661228692Sdesfi 9662174832Sdes 9663228692Sdes aix_libpath=$lt_cv_aix_libpath_ 9664141098Sdesfi 9665174832Sdes 9666141098Sdes hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9667141098Sdes # Warning - without using the other run time loading flags, 9668141098Sdes # -berok will link without error, but may produce a broken library. 9669141098Sdes no_undefined_flag=' ${wl}-bernotok' 9670141098Sdes allow_undefined_flag=' ${wl}-berok' 9671228692Sdes if test "$with_gnu_ld" = yes; then 9672228692Sdes # We only use this code for GNU lds that support --whole-archive. 9673228692Sdes whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9674228692Sdes else 9675228692Sdes # Exported symbols can be pulled into shared objects from archives 9676228692Sdes whole_archive_flag_spec='$convenience' 9677228692Sdes fi 9678141098Sdes archive_cmds_need_lc=yes 9679174832Sdes # This is similar to how AIX traditionally builds its shared libraries. 9680174832Sdes 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' 9681141098Sdes fi 9682141098Sdes fi 9683141098Sdes ;; 9684141098Sdes 9685141098Sdes amigaos*) 9686228692Sdes case $host_cpu in 9687228692Sdes powerpc) 9688228692Sdes # see comment about AmigaOS4 .so support 9689228692Sdes archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9690228692Sdes archive_expsym_cmds='' 9691228692Sdes ;; 9692228692Sdes m68k) 9693228692Sdes 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)' 9694228692Sdes hardcode_libdir_flag_spec='-L$libdir' 9695228692Sdes hardcode_minus_L=yes 9696228692Sdes ;; 9697228692Sdes esac 9698141098Sdes ;; 9699141098Sdes 9700141098Sdes bsdi[45]*) 9701141098Sdes export_dynamic_flag_spec=-rdynamic 9702141098Sdes ;; 9703141098Sdes 9704228692Sdes cygwin* | mingw* | pw32* | cegcc*) 9705141098Sdes # When not using gcc, we currently assume that we are using 9706141098Sdes # Microsoft Visual C++. 9707141098Sdes # hardcode_libdir_flag_spec is actually meaningless, as there is 9708141098Sdes # no search path for DLLs. 9709228692Sdes case $cc_basename in 9710228692Sdes cl*) 9711228692Sdes # Native MSVC 9712228692Sdes hardcode_libdir_flag_spec=' ' 9713228692Sdes allow_undefined_flag=unsupported 9714228692Sdes always_export_symbols=yes 9715228692Sdes file_list_spec='@' 9716228692Sdes # Tell ltmain to make .lib files, not .a files. 9717228692Sdes libext=lib 9718228692Sdes # Tell ltmain to make .dll files, not .so files. 9719228692Sdes shrext_cmds=".dll" 9720228692Sdes # FIXME: Setting linknames here is a bad hack. 9721228692Sdes archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9722228692Sdes archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9723228692Sdes sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9724228692Sdes else 9725228692Sdes sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9726228692Sdes fi~ 9727228692Sdes $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9728228692Sdes linknames=' 9729228692Sdes # The linker will not automatically build a static lib if we build a DLL. 9730228692Sdes # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9731228692Sdes enable_shared_with_static_runtimes=yes 9732236109Sdes exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9733228692Sdes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9734228692Sdes # Don't use ranlib 9735228692Sdes old_postinstall_cmds='chmod 644 $oldlib' 9736228692Sdes postlink_cmds='lt_outputfile="@OUTPUT@"~ 9737228692Sdes lt_tool_outputfile="@TOOL_OUTPUT@"~ 9738228692Sdes case $lt_outputfile in 9739228692Sdes *.exe|*.EXE) ;; 9740228692Sdes *) 9741228692Sdes lt_outputfile="$lt_outputfile.exe" 9742228692Sdes lt_tool_outputfile="$lt_tool_outputfile.exe" 9743228692Sdes ;; 9744228692Sdes esac~ 9745228692Sdes if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9746228692Sdes $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9747228692Sdes $RM "$lt_outputfile.manifest"; 9748228692Sdes fi' 9749228692Sdes ;; 9750228692Sdes *) 9751228692Sdes # Assume MSVC wrapper 9752228692Sdes hardcode_libdir_flag_spec=' ' 9753228692Sdes allow_undefined_flag=unsupported 9754228692Sdes # Tell ltmain to make .lib files, not .a files. 9755228692Sdes libext=lib 9756228692Sdes # Tell ltmain to make .dll files, not .so files. 9757228692Sdes shrext_cmds=".dll" 9758228692Sdes # FIXME: Setting linknames here is a bad hack. 9759228692Sdes archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9760228692Sdes # The linker will automatically build a .lib file if we build a DLL. 9761228692Sdes old_archive_from_new_cmds='true' 9762228692Sdes # FIXME: Should let the user specify the lib program. 9763228692Sdes old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9764228692Sdes enable_shared_with_static_runtimes=yes 9765228692Sdes ;; 9766228692Sdes esac 9767141098Sdes ;; 9768141098Sdes 9769141098Sdes darwin* | rhapsody*) 9770228692Sdes 9771228692Sdes 9772228692Sdes archive_cmds_need_lc=no 9773228692Sdes hardcode_direct=no 9774228692Sdes hardcode_automatic=yes 9775228692Sdes hardcode_shlibpath_var=unsupported 9776228692Sdes if test "$lt_cv_ld_force_load" = "yes"; then 9777228692Sdes 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\"`' 9778236109Sdes 9779228692Sdes else 9780228692Sdes whole_archive_flag_spec='' 9781228692Sdes fi 9782228692Sdes link_all_deplibs=yes 9783228692Sdes allow_undefined_flag="$_lt_dar_allow_undefined" 9784228692Sdes case $cc_basename in 9785228692Sdes ifort*) _lt_dar_can_shared=yes ;; 9786228692Sdes *) _lt_dar_can_shared=$GCC ;; 9787228692Sdes esac 9788228692Sdes if test "$_lt_dar_can_shared" = "yes"; then 9789228692Sdes output_verbose_link_cmd=func_echo_all 9790228692Sdes archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9791228692Sdes module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9792228692Sdes 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}" 9793228692Sdes 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}" 9794228692Sdes 9795228692Sdes else 9796228692Sdes ld_shlibs=no 9797228692Sdes fi 9798228692Sdes 9799141098Sdes ;; 9800141098Sdes 9801141098Sdes dgux*) 9802141098Sdes archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9803141098Sdes hardcode_libdir_flag_spec='-L$libdir' 9804141098Sdes hardcode_shlibpath_var=no 9805141098Sdes ;; 9806141098Sdes 9807141098Sdes # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9808141098Sdes # support. Future versions do this automatically, but an explicit c++rt0.o 9809141098Sdes # does not break anything, and helps significantly (at the cost of a little 9810141098Sdes # extra space). 9811141098Sdes freebsd2.2*) 9812141098Sdes archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9813141098Sdes hardcode_libdir_flag_spec='-R$libdir' 9814141098Sdes hardcode_direct=yes 9815141098Sdes hardcode_shlibpath_var=no 9816141098Sdes ;; 9817141098Sdes 9818141098Sdes # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9819228692Sdes freebsd2.*) 9820141098Sdes archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9821141098Sdes hardcode_direct=yes 9822141098Sdes hardcode_minus_L=yes 9823141098Sdes hardcode_shlibpath_var=no 9824141098Sdes ;; 9825141098Sdes 9826141098Sdes # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9827174832Sdes freebsd* | dragonfly*) 9828228692Sdes archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9829141098Sdes hardcode_libdir_flag_spec='-R$libdir' 9830141098Sdes hardcode_direct=yes 9831141098Sdes hardcode_shlibpath_var=no 9832141098Sdes ;; 9833141098Sdes 9834141098Sdes hpux9*) 9835141098Sdes if test "$GCC" = yes; then 9836228692Sdes 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' 9837141098Sdes else 9838228692Sdes 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' 9839141098Sdes fi 9840141098Sdes hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9841141098Sdes hardcode_libdir_separator=: 9842141098Sdes hardcode_direct=yes 9843141098Sdes 9844141098Sdes # hardcode_minus_L: Not really in the search PATH, 9845141098Sdes # but as the default location of the library. 9846141098Sdes hardcode_minus_L=yes 9847141098Sdes export_dynamic_flag_spec='${wl}-E' 9848141098Sdes ;; 9849141098Sdes 9850174832Sdes hpux10*) 9851228692Sdes if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9852228692Sdes archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9853174832Sdes else 9854174832Sdes archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9855174832Sdes fi 9856174832Sdes if test "$with_gnu_ld" = no; then 9857174832Sdes hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9858174832Sdes hardcode_libdir_separator=: 9859174832Sdes hardcode_direct=yes 9860228692Sdes hardcode_direct_absolute=yes 9861174832Sdes export_dynamic_flag_spec='${wl}-E' 9862174832Sdes # hardcode_minus_L: Not really in the search PATH, 9863174832Sdes # but as the default location of the library. 9864174832Sdes hardcode_minus_L=yes 9865174832Sdes fi 9866174832Sdes ;; 9867174832Sdes 9868174832Sdes hpux11*) 9869228692Sdes if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9870174832Sdes case $host_cpu in 9871174832Sdes hppa*64*) 9872141098Sdes archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9873141098Sdes ;; 9874174832Sdes ia64*) 9875228692Sdes archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9876174832Sdes ;; 9877141098Sdes *) 9878228692Sdes archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9879141098Sdes ;; 9880141098Sdes esac 9881141098Sdes else 9882174832Sdes case $host_cpu in 9883174832Sdes hppa*64*) 9884174832Sdes archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9885141098Sdes ;; 9886174832Sdes ia64*) 9887174832Sdes archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9888174832Sdes ;; 9889141098Sdes *) 9890228692Sdes 9891228692Sdes # Older versions of the 11.00 compiler do not understand -b yet 9892228692Sdes # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9893228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9894228692Sdes$as_echo_n "checking if $CC understands -b... " >&6; } 9895228692Sdesif ${lt_cv_prog_compiler__b+:} false; then : 9896228692Sdes $as_echo_n "(cached) " >&6 9897228692Sdeselse 9898228692Sdes lt_cv_prog_compiler__b=no 9899228692Sdes save_LDFLAGS="$LDFLAGS" 9900228692Sdes LDFLAGS="$LDFLAGS -b" 9901228692Sdes echo "$lt_simple_link_test_code" > conftest.$ac_ext 9902228692Sdes if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9903228692Sdes # The linker can only warn and ignore the option if not recognized 9904228692Sdes # So say no if there are warnings 9905228692Sdes if test -s conftest.err; then 9906228692Sdes # Append any errors to the config.log. 9907228692Sdes cat conftest.err 1>&5 9908228692Sdes $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9909228692Sdes $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9910228692Sdes if diff conftest.exp conftest.er2 >/dev/null; then 9911228692Sdes lt_cv_prog_compiler__b=yes 9912228692Sdes fi 9913228692Sdes else 9914228692Sdes lt_cv_prog_compiler__b=yes 9915228692Sdes fi 9916228692Sdes fi 9917228692Sdes $RM -r conftest* 9918228692Sdes LDFLAGS="$save_LDFLAGS" 9919228692Sdes 9920228692Sdesfi 9921228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9922228692Sdes$as_echo "$lt_cv_prog_compiler__b" >&6; } 9923228692Sdes 9924228692Sdesif test x"$lt_cv_prog_compiler__b" = xyes; then 9925228692Sdes archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9926228692Sdeselse 9927228692Sdes archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9928228692Sdesfi 9929228692Sdes 9930141098Sdes ;; 9931141098Sdes esac 9932141098Sdes fi 9933141098Sdes if test "$with_gnu_ld" = no; then 9934174832Sdes hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9935174832Sdes hardcode_libdir_separator=: 9936174832Sdes 9937174832Sdes case $host_cpu in 9938174832Sdes hppa*64*|ia64*) 9939141098Sdes hardcode_direct=no 9940141098Sdes hardcode_shlibpath_var=no 9941141098Sdes ;; 9942141098Sdes *) 9943141098Sdes hardcode_direct=yes 9944228692Sdes hardcode_direct_absolute=yes 9945141098Sdes export_dynamic_flag_spec='${wl}-E' 9946141098Sdes 9947141098Sdes # hardcode_minus_L: Not really in the search PATH, 9948141098Sdes # but as the default location of the library. 9949141098Sdes hardcode_minus_L=yes 9950141098Sdes ;; 9951141098Sdes esac 9952141098Sdes fi 9953141098Sdes ;; 9954141098Sdes 9955141098Sdes irix5* | irix6* | nonstopux*) 9956141098Sdes if test "$GCC" = yes; then 9957228692Sdes 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' 9958228692Sdes # Try to use the -exported_symbol ld option, if it does not 9959228692Sdes # work, assume that -exports_file does not work either and 9960228692Sdes # implicitly export all symbols. 9961228692Sdes # This should be the same for all languages, so no per-tag cache variable. 9962228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9963228692Sdes$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9964228692Sdesif ${lt_cv_irix_exported_symbol+:} false; then : 9965228692Sdes $as_echo_n "(cached) " >&6 9966228692Sdeselse 9967228692Sdes save_LDFLAGS="$LDFLAGS" 9968228692Sdes LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9969228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9970228692Sdes/* end confdefs.h. */ 9971228692Sdesint foo (void) { return 0; } 9972228692Sdes_ACEOF 9973228692Sdesif ac_fn_c_try_link "$LINENO"; then : 9974228692Sdes lt_cv_irix_exported_symbol=yes 9975228692Sdeselse 9976228692Sdes lt_cv_irix_exported_symbol=no 9977228692Sdesfi 9978228692Sdesrm -f core conftest.err conftest.$ac_objext \ 9979228692Sdes conftest$ac_exeext conftest.$ac_ext 9980228692Sdes LDFLAGS="$save_LDFLAGS" 9981228692Sdesfi 9982228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9983228692Sdes$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9984228692Sdes if test "$lt_cv_irix_exported_symbol" = yes; then 9985228692Sdes 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' 9986228692Sdes fi 9987141098Sdes else 9988228692Sdes 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' 9989228692Sdes 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' 9990141098Sdes fi 9991228692Sdes archive_cmds_need_lc='no' 9992141098Sdes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9993141098Sdes hardcode_libdir_separator=: 9994228692Sdes inherit_rpath=yes 9995141098Sdes link_all_deplibs=yes 9996141098Sdes ;; 9997141098Sdes 9998141098Sdes netbsd*) 9999228692Sdes if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10000141098Sdes archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10001141098Sdes else 10002141098Sdes archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10003141098Sdes fi 10004141098Sdes hardcode_libdir_flag_spec='-R$libdir' 10005141098Sdes hardcode_direct=yes 10006141098Sdes hardcode_shlibpath_var=no 10007141098Sdes ;; 10008141098Sdes 10009141098Sdes newsos6) 10010141098Sdes archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10011141098Sdes hardcode_direct=yes 10012141098Sdes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10013141098Sdes hardcode_libdir_separator=: 10014141098Sdes hardcode_shlibpath_var=no 10015141098Sdes ;; 10016141098Sdes 10017228692Sdes *nto* | *qnx*) 10018228692Sdes ;; 10019228692Sdes 10020141098Sdes openbsd*) 10021174832Sdes if test -f /usr/libexec/ld.so; then 10022174832Sdes hardcode_direct=yes 10023174832Sdes hardcode_shlibpath_var=no 10024228692Sdes hardcode_direct_absolute=yes 10025228692Sdes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10026174832Sdes archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10027174832Sdes archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10028174832Sdes hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10029174832Sdes export_dynamic_flag_spec='${wl}-E' 10030174832Sdes else 10031174832Sdes case $host_os in 10032174832Sdes openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10033174832Sdes archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10034174832Sdes hardcode_libdir_flag_spec='-R$libdir' 10035174832Sdes ;; 10036174832Sdes *) 10037174832Sdes archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10038174832Sdes hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10039174832Sdes ;; 10040174832Sdes esac 10041228692Sdes fi 10042141098Sdes else 10043174832Sdes ld_shlibs=no 10044141098Sdes fi 10045141098Sdes ;; 10046141098Sdes 10047141098Sdes os2*) 10048141098Sdes hardcode_libdir_flag_spec='-L$libdir' 10049141098Sdes hardcode_minus_L=yes 10050141098Sdes allow_undefined_flag=unsupported 10051228692Sdes 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' 10052228692Sdes old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10053141098Sdes ;; 10054141098Sdes 10055141098Sdes osf3*) 10056141098Sdes if test "$GCC" = yes; then 10057141098Sdes allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10058228692Sdes 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' 10059141098Sdes else 10060141098Sdes allow_undefined_flag=' -expect_unresolved \*' 10061228692Sdes 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' 10062141098Sdes fi 10063228692Sdes archive_cmds_need_lc='no' 10064141098Sdes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10065141098Sdes hardcode_libdir_separator=: 10066141098Sdes ;; 10067141098Sdes 10068141098Sdes osf4* | osf5*) # as osf3* with the addition of -msym flag 10069141098Sdes if test "$GCC" = yes; then 10070141098Sdes allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10071228692Sdes 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' 10072141098Sdes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10073141098Sdes else 10074141098Sdes allow_undefined_flag=' -expect_unresolved \*' 10075228692Sdes 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' 10076228692Sdes 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~ 10077228692Sdes $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' 10078141098Sdes 10079141098Sdes # Both c and cxx compiler support -rpath directly 10080141098Sdes hardcode_libdir_flag_spec='-rpath $libdir' 10081141098Sdes fi 10082228692Sdes archive_cmds_need_lc='no' 10083141098Sdes hardcode_libdir_separator=: 10084141098Sdes ;; 10085141098Sdes 10086141098Sdes solaris*) 10087228692Sdes no_undefined_flag=' -z defs' 10088141098Sdes if test "$GCC" = yes; then 10089174832Sdes wlarc='${wl}' 10090228692Sdes archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10091228692Sdes archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10092228692Sdes $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' 10093141098Sdes else 10094228692Sdes case `$CC -V 2>&1` in 10095228692Sdes *"Compilers 5.0"*) 10096228692Sdes wlarc='' 10097228692Sdes archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10098228692Sdes archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10099228692Sdes $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10100228692Sdes ;; 10101228692Sdes *) 10102228692Sdes wlarc='${wl}' 10103228692Sdes archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10104228692Sdes archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10105228692Sdes $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10106228692Sdes ;; 10107228692Sdes esac 10108141098Sdes fi 10109141098Sdes hardcode_libdir_flag_spec='-R$libdir' 10110141098Sdes hardcode_shlibpath_var=no 10111141098Sdes case $host_os in 10112141098Sdes solaris2.[0-5] | solaris2.[0-5].*) ;; 10113174832Sdes *) 10114174832Sdes # The compiler driver will combine and reorder linker options, 10115174832Sdes # but understands `-z linker_flag'. GCC discards it without `$wl', 10116174832Sdes # but is careful enough not to reorder. 10117228692Sdes # Supported since Solaris 2.6 (maybe 2.5.1?) 10118174832Sdes if test "$GCC" = yes; then 10119174832Sdes whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10120174832Sdes else 10121174832Sdes whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10122174832Sdes fi 10123174832Sdes ;; 10124141098Sdes esac 10125141098Sdes link_all_deplibs=yes 10126141098Sdes ;; 10127141098Sdes 10128141098Sdes sunos4*) 10129141098Sdes if test "x$host_vendor" = xsequent; then 10130141098Sdes # Use $CC to link under sequent, because it throws in some extra .o 10131141098Sdes # files that make .init and .fini sections work. 10132141098Sdes archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10133141098Sdes else 10134141098Sdes archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10135141098Sdes fi 10136141098Sdes hardcode_libdir_flag_spec='-L$libdir' 10137141098Sdes hardcode_direct=yes 10138141098Sdes hardcode_minus_L=yes 10139141098Sdes hardcode_shlibpath_var=no 10140141098Sdes ;; 10141141098Sdes 10142141098Sdes sysv4) 10143141098Sdes case $host_vendor in 10144141098Sdes sni) 10145141098Sdes archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10146141098Sdes hardcode_direct=yes # is this really true??? 10147141098Sdes ;; 10148141098Sdes siemens) 10149141098Sdes ## LD is ld it makes a PLAMLIB 10150141098Sdes ## CC just makes a GrossModule. 10151141098Sdes archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10152141098Sdes reload_cmds='$CC -r -o $output$reload_objs' 10153141098Sdes hardcode_direct=no 10154141098Sdes ;; 10155141098Sdes motorola) 10156141098Sdes archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10157141098Sdes hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10158141098Sdes ;; 10159141098Sdes esac 10160141098Sdes runpath_var='LD_RUN_PATH' 10161141098Sdes hardcode_shlibpath_var=no 10162141098Sdes ;; 10163141098Sdes 10164141098Sdes sysv4.3*) 10165141098Sdes archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10166141098Sdes hardcode_shlibpath_var=no 10167141098Sdes export_dynamic_flag_spec='-Bexport' 10168141098Sdes ;; 10169141098Sdes 10170141098Sdes sysv4*MP*) 10171141098Sdes if test -d /usr/nec; then 10172141098Sdes archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10173141098Sdes hardcode_shlibpath_var=no 10174141098Sdes runpath_var=LD_RUN_PATH 10175141098Sdes hardcode_runpath_var=yes 10176141098Sdes ld_shlibs=yes 10177141098Sdes fi 10178141098Sdes ;; 10179141098Sdes 10180174832Sdes sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10181174832Sdes no_undefined_flag='${wl}-z,text' 10182174832Sdes archive_cmds_need_lc=no 10183141098Sdes hardcode_shlibpath_var=no 10184174832Sdes runpath_var='LD_RUN_PATH' 10185141098Sdes 10186141098Sdes if test "$GCC" = yes; then 10187174832Sdes archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10188174832Sdes archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10189141098Sdes else 10190174832Sdes archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10191174832Sdes archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10192141098Sdes fi 10193141098Sdes ;; 10194141098Sdes 10195174832Sdes sysv5* | sco3.2v5* | sco5v6*) 10196174832Sdes # Note: We can NOT use -z defs as we might desire, because we do not 10197174832Sdes # link with -lc, and that would cause any symbols used from libc to 10198174832Sdes # always be unresolved, which means just about no library would 10199174832Sdes # ever link correctly. If we're not using GNU ld we use -z text 10200174832Sdes # though, which does catch some bad symbols but isn't as heavy-handed 10201174832Sdes # as -z defs. 10202174832Sdes no_undefined_flag='${wl}-z,text' 10203174832Sdes allow_undefined_flag='${wl}-z,nodefs' 10204174832Sdes archive_cmds_need_lc=no 10205141098Sdes hardcode_shlibpath_var=no 10206228692Sdes hardcode_libdir_flag_spec='${wl}-R,$libdir' 10207174832Sdes hardcode_libdir_separator=':' 10208174832Sdes link_all_deplibs=yes 10209174832Sdes export_dynamic_flag_spec='${wl}-Bexport' 10210141098Sdes runpath_var='LD_RUN_PATH' 10211174832Sdes 10212174832Sdes if test "$GCC" = yes; then 10213228692Sdes archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10214228692Sdes archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10215174832Sdes else 10216228692Sdes archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10217228692Sdes archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10218174832Sdes fi 10219141098Sdes ;; 10220141098Sdes 10221141098Sdes uts4*) 10222141098Sdes archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10223141098Sdes hardcode_libdir_flag_spec='-L$libdir' 10224141098Sdes hardcode_shlibpath_var=no 10225141098Sdes ;; 10226141098Sdes 10227141098Sdes *) 10228141098Sdes ld_shlibs=no 10229141098Sdes ;; 10230141098Sdes esac 10231228692Sdes 10232228692Sdes if test x$host_vendor = xsni; then 10233228692Sdes case $host in 10234228692Sdes sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10235228692Sdes export_dynamic_flag_spec='${wl}-Blargedynsym' 10236228692Sdes ;; 10237228692Sdes esac 10238228692Sdes fi 10239141098Sdes fi 10240141098Sdes 10241228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10242228692Sdes$as_echo "$ld_shlibs" >&6; } 10243141098Sdestest "$ld_shlibs" = no && can_build_shared=no 10244141098Sdes 10245228692Sdeswith_gnu_ld=$with_gnu_ld 10246228692Sdes 10247228692Sdes 10248228692Sdes 10249228692Sdes 10250228692Sdes 10251228692Sdes 10252228692Sdes 10253228692Sdes 10254228692Sdes 10255228692Sdes 10256228692Sdes 10257228692Sdes 10258228692Sdes 10259228692Sdes 10260228692Sdes 10261141098Sdes# 10262141098Sdes# Do we need to explicitly link libc? 10263141098Sdes# 10264141098Sdescase "x$archive_cmds_need_lc" in 10265141098Sdesx|xyes) 10266141098Sdes # Assume -lc should be added 10267141098Sdes archive_cmds_need_lc=yes 10268141098Sdes 10269141098Sdes if test "$enable_shared" = yes && test "$GCC" = yes; then 10270141098Sdes case $archive_cmds in 10271141098Sdes *'~'*) 10272141098Sdes # FIXME: we may have to deal with multi-command sequences. 10273141098Sdes ;; 10274141098Sdes '$CC '*) 10275141098Sdes # Test whether the compiler implicitly links with -lc since on some 10276141098Sdes # systems, -lgcc has to come before -lc. If gcc already passes -lc 10277141098Sdes # to ld, don't add -lc before -lgcc. 10278228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10279228692Sdes$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10280228692Sdesif ${lt_cv_archive_cmds_need_lc+:} false; then : 10281228692Sdes $as_echo_n "(cached) " >&6 10282228692Sdeselse 10283228692Sdes $RM conftest* 10284228692Sdes echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10285141098Sdes 10286228692Sdes if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10287141098Sdes (eval $ac_compile) 2>&5 10288141098Sdes ac_status=$? 10289228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10290228692Sdes test $ac_status = 0; } 2>conftest.err; then 10291228692Sdes soname=conftest 10292228692Sdes lib=conftest 10293228692Sdes libobjs=conftest.$ac_objext 10294228692Sdes deplibs= 10295228692Sdes wl=$lt_prog_compiler_wl 10296228692Sdes pic_flag=$lt_prog_compiler_pic 10297228692Sdes compiler_flags=-v 10298228692Sdes linker_flags=-v 10299228692Sdes verstring= 10300228692Sdes output_objdir=. 10301228692Sdes libname=conftest 10302228692Sdes lt_save_allow_undefined_flag=$allow_undefined_flag 10303228692Sdes allow_undefined_flag= 10304228692Sdes if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10305228692Sdes (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10306141098Sdes ac_status=$? 10307228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10308228692Sdes test $ac_status = 0; } 10309228692Sdes then 10310228692Sdes lt_cv_archive_cmds_need_lc=no 10311228692Sdes else 10312228692Sdes lt_cv_archive_cmds_need_lc=yes 10313228692Sdes fi 10314228692Sdes allow_undefined_flag=$lt_save_allow_undefined_flag 10315228692Sdes else 10316228692Sdes cat conftest.err 1>&5 10317228692Sdes fi 10318228692Sdes $RM conftest* 10319228692Sdes 10320228692Sdesfi 10321228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10322228692Sdes$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10323228692Sdes archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10324141098Sdes ;; 10325141098Sdes esac 10326141098Sdes fi 10327141098Sdes ;; 10328141098Sdesesac 10329141098Sdes 10330174832Sdes 10331228692Sdes 10332228692Sdes 10333228692Sdes 10334228692Sdes 10335228692Sdes 10336228692Sdes 10337228692Sdes 10338228692Sdes 10339228692Sdes 10340228692Sdes 10341228692Sdes 10342228692Sdes 10343228692Sdes 10344228692Sdes 10345228692Sdes 10346228692Sdes 10347228692Sdes 10348228692Sdes 10349228692Sdes 10350228692Sdes 10351228692Sdes 10352228692Sdes 10353228692Sdes 10354228692Sdes 10355228692Sdes 10356228692Sdes 10357228692Sdes 10358228692Sdes 10359228692Sdes 10360228692Sdes 10361228692Sdes 10362228692Sdes 10363228692Sdes 10364228692Sdes 10365228692Sdes 10366228692Sdes 10367228692Sdes 10368228692Sdes 10369228692Sdes 10370228692Sdes 10371228692Sdes 10372228692Sdes 10373228692Sdes 10374228692Sdes 10375228692Sdes 10376228692Sdes 10377228692Sdes 10378228692Sdes 10379228692Sdes 10380228692Sdes 10381228692Sdes 10382228692Sdes 10383228692Sdes 10384228692Sdes 10385228692Sdes 10386228692Sdes 10387228692Sdes 10388228692Sdes 10389228692Sdes 10390228692Sdes 10391228692Sdes 10392228692Sdes 10393228692Sdes 10394228692Sdes 10395228692Sdes 10396228692Sdes 10397228692Sdes 10398228692Sdes 10399228692Sdes 10400228692Sdes 10401228692Sdes 10402228692Sdes 10403228692Sdes 10404228692Sdes 10405228692Sdes 10406228692Sdes 10407228692Sdes 10408228692Sdes 10409228692Sdes 10410228692Sdes 10411228692Sdes 10412228692Sdes 10413228692Sdes 10414228692Sdes 10415228692Sdes 10416228692Sdes 10417228692Sdes 10418228692Sdes 10419228692Sdes 10420228692Sdes 10421228692Sdes 10422228692Sdes 10423228692Sdes 10424228692Sdes 10425228692Sdes 10426228692Sdes 10427228692Sdes 10428228692Sdes 10429228692Sdes 10430228692Sdes 10431228692Sdes 10432228692Sdes 10433228692Sdes 10434228692Sdes 10435228692Sdes 10436228692Sdes 10437228692Sdes 10438228692Sdes 10439228692Sdes 10440228692Sdes 10441228692Sdes 10442228692Sdes 10443228692Sdes 10444228692Sdes 10445228692Sdes 10446228692Sdes 10447228692Sdes 10448228692Sdes 10449228692Sdes 10450228692Sdes 10451228692Sdes 10452228692Sdes 10453228692Sdes 10454228692Sdes 10455228692Sdes 10456228692Sdes 10457228692Sdes 10458228692Sdes 10459228692Sdes 10460228692Sdes 10461228692Sdes 10462228692Sdes 10463228692Sdes 10464228692Sdes 10465228692Sdes 10466228692Sdes 10467228692Sdes 10468228692Sdes 10469228692Sdes 10470228692Sdes 10471228692Sdes 10472228692Sdes 10473228692Sdes 10474228692Sdes 10475228692Sdes 10476228692Sdes 10477228692Sdes 10478228692Sdes 10479228692Sdes 10480228692Sdes 10481228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10482228692Sdes$as_echo_n "checking dynamic linker characteristics... " >&6; } 10483228692Sdes 10484141098Sdesif test "$GCC" = yes; then 10485174832Sdes case $host_os in 10486174832Sdes darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10487174832Sdes *) lt_awk_arg="/^libraries:/" ;; 10488174832Sdes esac 10489228692Sdes case $host_os in 10490228692Sdes mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10491228692Sdes *) lt_sed_strip_eq="s,=/,/,g" ;; 10492228692Sdes esac 10493228692Sdes lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10494228692Sdes case $lt_search_path_spec in 10495228692Sdes *\;*) 10496141098Sdes # if the path contains ";" then we assume it to be the separator 10497141098Sdes # otherwise default to the standard path separator (i.e. ":") - it is 10498141098Sdes # assumed that no part of a normal pathname contains ";" but that should 10499141098Sdes # okay in the real world where ";" in dirpaths is itself problematic. 10500228692Sdes lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10501228692Sdes ;; 10502228692Sdes *) 10503228692Sdes lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10504228692Sdes ;; 10505228692Sdes esac 10506174832Sdes # Ok, now we have the path, separated by spaces, we can step through it 10507174832Sdes # and add multilib dir if necessary. 10508174832Sdes lt_tmp_lt_search_path_spec= 10509174832Sdes lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10510174832Sdes for lt_sys_path in $lt_search_path_spec; do 10511174832Sdes if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10512174832Sdes lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10513174832Sdes else 10514174832Sdes test -d "$lt_sys_path" && \ 10515174832Sdes lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10516174832Sdes fi 10517174832Sdes done 10518228692Sdes lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10519174832SdesBEGIN {RS=" "; FS="/|\n";} { 10520174832Sdes lt_foo=""; 10521174832Sdes lt_count=0; 10522174832Sdes for (lt_i = NF; lt_i > 0; lt_i--) { 10523174832Sdes if ($lt_i != "" && $lt_i != ".") { 10524174832Sdes if ($lt_i == "..") { 10525174832Sdes lt_count++; 10526174832Sdes } else { 10527174832Sdes if (lt_count == 0) { 10528174832Sdes lt_foo="/" $lt_i lt_foo; 10529174832Sdes } else { 10530174832Sdes lt_count--; 10531174832Sdes } 10532174832Sdes } 10533174832Sdes } 10534174832Sdes } 10535174832Sdes if (lt_foo != "") { lt_freq[lt_foo]++; } 10536174832Sdes if (lt_freq[lt_foo] == 1) { print lt_foo; } 10537174832Sdes}'` 10538228692Sdes # AWK program above erroneously prepends '/' to C:/dos/paths 10539228692Sdes # for these hosts. 10540228692Sdes case $host_os in 10541228692Sdes mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10542228692Sdes $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10543228692Sdes esac 10544228692Sdes sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10545141098Sdeselse 10546141098Sdes sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10547141098Sdesfi 10548228692Sdeslibrary_names_spec= 10549228692Sdeslibname_spec='lib$name' 10550228692Sdessoname_spec= 10551228692Sdesshrext_cmds=".so" 10552228692Sdespostinstall_cmds= 10553228692Sdespostuninstall_cmds= 10554228692Sdesfinish_cmds= 10555228692Sdesfinish_eval= 10556228692Sdesshlibpath_var= 10557228692Sdesshlibpath_overrides_runpath=unknown 10558228692Sdesversion_type=none 10559228692Sdesdynamic_linker="$host_os ld.so" 10560228692Sdessys_lib_dlsearch_path_spec="/lib /usr/lib" 10561141098Sdesneed_lib_prefix=unknown 10562141098Sdeshardcode_into_libs=no 10563141098Sdes 10564141098Sdes# when you set need_version to no, make sure it does not cause -set_version 10565141098Sdes# flags to be left without arguments 10566141098Sdesneed_version=unknown 10567141098Sdes 10568141098Sdescase $host_os in 10569141098Sdesaix3*) 10570236109Sdes version_type=linux # correct to gnu/linux during the next big refactor 10571141098Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10572141098Sdes shlibpath_var=LIBPATH 10573141098Sdes 10574141098Sdes # AIX 3 has no versioning support, so we append a major version to the name. 10575141098Sdes soname_spec='${libname}${release}${shared_ext}$major' 10576141098Sdes ;; 10577141098Sdes 10578228692Sdesaix[4-9]*) 10579236109Sdes version_type=linux # correct to gnu/linux during the next big refactor 10580141098Sdes need_lib_prefix=no 10581141098Sdes need_version=no 10582141098Sdes hardcode_into_libs=yes 10583141098Sdes if test "$host_cpu" = ia64; then 10584141098Sdes # AIX 5 supports IA64 10585141098Sdes library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10586141098Sdes shlibpath_var=LD_LIBRARY_PATH 10587141098Sdes else 10588141098Sdes # With GCC up to 2.95.x, collect2 would create an import file 10589141098Sdes # for dependence libraries. The import file would start with 10590141098Sdes # the line `#! .'. This would cause the generated library to 10591141098Sdes # depend on `.', always an invalid library. This was fixed in 10592141098Sdes # development snapshots of GCC prior to 3.0. 10593141098Sdes case $host_os in 10594141098Sdes aix4 | aix4.[01] | aix4.[01].*) 10595141098Sdes if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10596141098Sdes echo ' yes ' 10597228692Sdes echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10598141098Sdes : 10599141098Sdes else 10600141098Sdes can_build_shared=no 10601141098Sdes fi 10602141098Sdes ;; 10603141098Sdes esac 10604141098Sdes # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10605141098Sdes # soname into executable. Probably we can add versioning support to 10606141098Sdes # collect2, so additional links can be useful in future. 10607141098Sdes if test "$aix_use_runtimelinking" = yes; then 10608141098Sdes # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10609141098Sdes # instead of lib<name>.a to let people know that these are not 10610141098Sdes # typical AIX shared libraries. 10611141098Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10612141098Sdes else 10613141098Sdes # We preserve .a as extension for shared libraries through AIX4.2 10614141098Sdes # and later when we are not doing run time linking. 10615141098Sdes library_names_spec='${libname}${release}.a $libname.a' 10616141098Sdes soname_spec='${libname}${release}${shared_ext}$major' 10617141098Sdes fi 10618141098Sdes shlibpath_var=LIBPATH 10619141098Sdes fi 10620141098Sdes ;; 10621141098Sdes 10622141098Sdesamigaos*) 10623228692Sdes case $host_cpu in 10624228692Sdes powerpc) 10625228692Sdes # Since July 2007 AmigaOS4 officially supports .so libraries. 10626228692Sdes # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10627228692Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10628228692Sdes ;; 10629228692Sdes m68k) 10630228692Sdes library_names_spec='$libname.ixlibrary $libname.a' 10631228692Sdes # Create ${libname}_ixlibrary.a entries in /sys/libs. 10632228692Sdes 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' 10633228692Sdes ;; 10634228692Sdes esac 10635141098Sdes ;; 10636141098Sdes 10637141098Sdesbeos*) 10638141098Sdes library_names_spec='${libname}${shared_ext}' 10639141098Sdes dynamic_linker="$host_os ld.so" 10640141098Sdes shlibpath_var=LIBRARY_PATH 10641141098Sdes ;; 10642141098Sdes 10643141098Sdesbsdi[45]*) 10644236109Sdes version_type=linux # correct to gnu/linux during the next big refactor 10645141098Sdes need_version=no 10646141098Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10647141098Sdes soname_spec='${libname}${release}${shared_ext}$major' 10648141098Sdes finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10649141098Sdes shlibpath_var=LD_LIBRARY_PATH 10650141098Sdes sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10651141098Sdes sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10652141098Sdes # the default ld.so.conf also contains /usr/contrib/lib and 10653141098Sdes # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10654141098Sdes # libtool to hard-code these into programs 10655141098Sdes ;; 10656141098Sdes 10657228692Sdescygwin* | mingw* | pw32* | cegcc*) 10658141098Sdes version_type=windows 10659141098Sdes shrext_cmds=".dll" 10660141098Sdes need_version=no 10661141098Sdes need_lib_prefix=no 10662141098Sdes 10663228692Sdes case $GCC,$cc_basename in 10664228692Sdes yes,*) 10665228692Sdes # gcc 10666141098Sdes library_names_spec='$libname.dll.a' 10667141098Sdes # DLL is installed to $(libdir)/../bin by postinstall_cmds 10668141098Sdes postinstall_cmds='base_file=`basename \${file}`~ 10669228692Sdes dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10670141098Sdes dldir=$destdir/`dirname \$dlpath`~ 10671141098Sdes test -d \$dldir || mkdir -p \$dldir~ 10672174832Sdes $install_prog $dir/$dlname \$dldir/$dlname~ 10673228692Sdes chmod a+x \$dldir/$dlname~ 10674228692Sdes if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10675228692Sdes eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10676228692Sdes fi' 10677141098Sdes postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10678141098Sdes dlpath=$dir/\$dldll~ 10679228692Sdes $RM \$dlpath' 10680141098Sdes shlibpath_overrides_runpath=yes 10681141098Sdes 10682141098Sdes case $host_os in 10683141098Sdes cygwin*) 10684141098Sdes # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10685141098Sdes soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10686228692Sdes 10687228692Sdes sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10688141098Sdes ;; 10689228692Sdes mingw* | cegcc*) 10690141098Sdes # MinGW DLLs use traditional 'lib' prefix 10691141098Sdes soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10692141098Sdes ;; 10693141098Sdes pw32*) 10694141098Sdes # pw32 DLLs use 'pw' prefix rather than 'lib' 10695147455Sdes library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10696141098Sdes ;; 10697141098Sdes esac 10698228692Sdes dynamic_linker='Win32 ld.exe' 10699141098Sdes ;; 10700141098Sdes 10701228692Sdes *,cl*) 10702228692Sdes # Native MSVC 10703228692Sdes libname_spec='$name' 10704228692Sdes soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10705228692Sdes library_names_spec='${libname}.dll.lib' 10706228692Sdes 10707228692Sdes case $build_os in 10708228692Sdes mingw*) 10709228692Sdes sys_lib_search_path_spec= 10710228692Sdes lt_save_ifs=$IFS 10711228692Sdes IFS=';' 10712228692Sdes for lt_path in $LIB 10713228692Sdes do 10714228692Sdes IFS=$lt_save_ifs 10715228692Sdes # Let DOS variable expansion print the short 8.3 style file name. 10716228692Sdes lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10717228692Sdes sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10718228692Sdes done 10719228692Sdes IFS=$lt_save_ifs 10720228692Sdes # Convert to MSYS style. 10721228692Sdes sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10722228692Sdes ;; 10723228692Sdes cygwin*) 10724228692Sdes # Convert to unix form, then to dos form, then back to unix form 10725228692Sdes # but this time dos style (no spaces!) so that the unix form looks 10726228692Sdes # like /cygdrive/c/PROGRA~1:/cygdr... 10727228692Sdes sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10728228692Sdes sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10729228692Sdes sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10730228692Sdes ;; 10731228692Sdes *) 10732228692Sdes sys_lib_search_path_spec="$LIB" 10733228692Sdes if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10734228692Sdes # It is most probably a Windows format PATH. 10735228692Sdes sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10736228692Sdes else 10737228692Sdes sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10738228692Sdes fi 10739228692Sdes # FIXME: find the short name or the path components, as spaces are 10740228692Sdes # common. (e.g. "Program Files" -> "PROGRA~1") 10741228692Sdes ;; 10742228692Sdes esac 10743228692Sdes 10744228692Sdes # DLL is installed to $(libdir)/../bin by postinstall_cmds 10745228692Sdes postinstall_cmds='base_file=`basename \${file}`~ 10746228692Sdes dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10747228692Sdes dldir=$destdir/`dirname \$dlpath`~ 10748228692Sdes test -d \$dldir || mkdir -p \$dldir~ 10749228692Sdes $install_prog $dir/$dlname \$dldir/$dlname' 10750228692Sdes postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10751228692Sdes dlpath=$dir/\$dldll~ 10752228692Sdes $RM \$dlpath' 10753228692Sdes shlibpath_overrides_runpath=yes 10754228692Sdes dynamic_linker='Win32 link.exe' 10755228692Sdes ;; 10756228692Sdes 10757141098Sdes *) 10758228692Sdes # Assume MSVC wrapper 10759141098Sdes library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10760228692Sdes dynamic_linker='Win32 ld.exe' 10761141098Sdes ;; 10762141098Sdes esac 10763141098Sdes # FIXME: first we should search . and the directory the executable is in 10764141098Sdes shlibpath_var=PATH 10765141098Sdes ;; 10766141098Sdes 10767141098Sdesdarwin* | rhapsody*) 10768141098Sdes dynamic_linker="$host_os dyld" 10769141098Sdes version_type=darwin 10770141098Sdes need_lib_prefix=no 10771141098Sdes need_version=no 10772228692Sdes library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10773141098Sdes soname_spec='${libname}${release}${major}$shared_ext' 10774141098Sdes shlibpath_overrides_runpath=yes 10775141098Sdes shlibpath_var=DYLD_LIBRARY_PATH 10776174832Sdes shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10777174832Sdes 10778174832Sdes sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10779141098Sdes sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10780141098Sdes ;; 10781141098Sdes 10782141098Sdesdgux*) 10783236109Sdes version_type=linux # correct to gnu/linux during the next big refactor 10784141098Sdes need_lib_prefix=no 10785141098Sdes need_version=no 10786141098Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10787141098Sdes soname_spec='${libname}${release}${shared_ext}$major' 10788141098Sdes shlibpath_var=LD_LIBRARY_PATH 10789141098Sdes ;; 10790141098Sdes 10791147455Sdesfreebsd* | dragonfly*) 10792147455Sdes # DragonFly does not have aout. When/if they implement a new 10793147455Sdes # versioning mechanism, adjust this. 10794174832Sdes if test -x /usr/bin/objformat; then 10795174832Sdes objformat=`/usr/bin/objformat` 10796174832Sdes else 10797174832Sdes case $host_os in 10798228692Sdes freebsd[23].*) objformat=aout ;; 10799174832Sdes *) objformat=elf ;; 10800174832Sdes esac 10801174832Sdes fi 10802141098Sdes version_type=freebsd-$objformat 10803141098Sdes case $version_type in 10804141098Sdes freebsd-elf*) 10805141098Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10806141098Sdes need_version=no 10807141098Sdes need_lib_prefix=no 10808141098Sdes ;; 10809141098Sdes freebsd-*) 10810141098Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10811141098Sdes need_version=yes 10812141098Sdes ;; 10813141098Sdes esac 10814141098Sdes shlibpath_var=LD_LIBRARY_PATH 10815141098Sdes case $host_os in 10816228692Sdes freebsd2.*) 10817141098Sdes shlibpath_overrides_runpath=yes 10818141098Sdes ;; 10819147455Sdes freebsd3.[01]* | freebsdelf3.[01]*) 10820141098Sdes shlibpath_overrides_runpath=yes 10821141098Sdes hardcode_into_libs=yes 10822141098Sdes ;; 10823174832Sdes freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10824174832Sdes freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10825141098Sdes shlibpath_overrides_runpath=no 10826141098Sdes hardcode_into_libs=yes 10827141098Sdes ;; 10828174832Sdes *) # from 4.6 on, and DragonFly 10829174832Sdes shlibpath_overrides_runpath=yes 10830174832Sdes hardcode_into_libs=yes 10831174832Sdes ;; 10832141098Sdes esac 10833141098Sdes ;; 10834141098Sdes 10835141098Sdesgnu*) 10836236109Sdes version_type=linux # correct to gnu/linux during the next big refactor 10837141098Sdes need_lib_prefix=no 10838141098Sdes need_version=no 10839141098Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10840141098Sdes soname_spec='${libname}${release}${shared_ext}$major' 10841141098Sdes shlibpath_var=LD_LIBRARY_PATH 10842236109Sdes shlibpath_overrides_runpath=no 10843141098Sdes hardcode_into_libs=yes 10844141098Sdes ;; 10845141098Sdes 10846228692Sdeshaiku*) 10847236109Sdes version_type=linux # correct to gnu/linux during the next big refactor 10848228692Sdes need_lib_prefix=no 10849228692Sdes need_version=no 10850228692Sdes dynamic_linker="$host_os runtime_loader" 10851228692Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10852228692Sdes soname_spec='${libname}${release}${shared_ext}$major' 10853228692Sdes shlibpath_var=LIBRARY_PATH 10854228692Sdes shlibpath_overrides_runpath=yes 10855228692Sdes sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10856228692Sdes hardcode_into_libs=yes 10857228692Sdes ;; 10858228692Sdes 10859141098Sdeshpux9* | hpux10* | hpux11*) 10860141098Sdes # Give a soname corresponding to the major version so that dld.sl refuses to 10861141098Sdes # link against other versions. 10862141098Sdes version_type=sunos 10863141098Sdes need_lib_prefix=no 10864141098Sdes need_version=no 10865174832Sdes case $host_cpu in 10866141098Sdes ia64*) 10867141098Sdes shrext_cmds='.so' 10868141098Sdes hardcode_into_libs=yes 10869141098Sdes dynamic_linker="$host_os dld.so" 10870141098Sdes shlibpath_var=LD_LIBRARY_PATH 10871141098Sdes shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10872141098Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10873141098Sdes soname_spec='${libname}${release}${shared_ext}$major' 10874141098Sdes if test "X$HPUX_IA64_MODE" = X32; then 10875141098Sdes sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10876141098Sdes else 10877141098Sdes sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10878141098Sdes fi 10879141098Sdes sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10880141098Sdes ;; 10881228692Sdes hppa*64*) 10882141098Sdes shrext_cmds='.sl' 10883228692Sdes hardcode_into_libs=yes 10884141098Sdes dynamic_linker="$host_os dld.sl" 10885228692Sdes shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10886228692Sdes shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10887228692Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10888228692Sdes soname_spec='${libname}${release}${shared_ext}$major' 10889228692Sdes sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10890228692Sdes sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10891228692Sdes ;; 10892228692Sdes *) 10893228692Sdes shrext_cmds='.sl' 10894228692Sdes dynamic_linker="$host_os dld.sl" 10895141098Sdes shlibpath_var=SHLIB_PATH 10896141098Sdes shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10897141098Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10898141098Sdes soname_spec='${libname}${release}${shared_ext}$major' 10899141098Sdes ;; 10900141098Sdes esac 10901228692Sdes # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10902141098Sdes postinstall_cmds='chmod 555 $lib' 10903228692Sdes # or fails outright, so override atomically: 10904228692Sdes install_override_mode=555 10905141098Sdes ;; 10906141098Sdes 10907174832Sdesinterix[3-9]*) 10908236109Sdes version_type=linux # correct to gnu/linux during the next big refactor 10909174832Sdes need_lib_prefix=no 10910174832Sdes need_version=no 10911174832Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10912174832Sdes soname_spec='${libname}${release}${shared_ext}$major' 10913174832Sdes dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10914174832Sdes shlibpath_var=LD_LIBRARY_PATH 10915174832Sdes shlibpath_overrides_runpath=no 10916174832Sdes hardcode_into_libs=yes 10917174832Sdes ;; 10918174832Sdes 10919141098Sdesirix5* | irix6* | nonstopux*) 10920141098Sdes case $host_os in 10921141098Sdes nonstopux*) version_type=nonstopux ;; 10922141098Sdes *) 10923141098Sdes if test "$lt_cv_prog_gnu_ld" = yes; then 10924236109Sdes version_type=linux # correct to gnu/linux during the next big refactor 10925141098Sdes else 10926141098Sdes version_type=irix 10927141098Sdes fi ;; 10928141098Sdes esac 10929141098Sdes need_lib_prefix=no 10930141098Sdes need_version=no 10931141098Sdes soname_spec='${libname}${release}${shared_ext}$major' 10932141098Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10933141098Sdes case $host_os in 10934141098Sdes irix5* | nonstopux*) 10935141098Sdes libsuff= shlibsuff= 10936141098Sdes ;; 10937141098Sdes *) 10938141098Sdes case $LD in # libtool.m4 will add one of these switches to LD 10939141098Sdes *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10940141098Sdes libsuff= shlibsuff= libmagic=32-bit;; 10941141098Sdes *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10942141098Sdes libsuff=32 shlibsuff=N32 libmagic=N32;; 10943141098Sdes *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10944141098Sdes libsuff=64 shlibsuff=64 libmagic=64-bit;; 10945141098Sdes *) libsuff= shlibsuff= libmagic=never-match;; 10946141098Sdes esac 10947141098Sdes ;; 10948141098Sdes esac 10949141098Sdes shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10950141098Sdes shlibpath_overrides_runpath=no 10951141098Sdes sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10952141098Sdes sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10953141098Sdes hardcode_into_libs=yes 10954141098Sdes ;; 10955141098Sdes 10956141098Sdes# No shared lib support for Linux oldld, aout, or coff. 10957141098Sdeslinux*oldld* | linux*aout* | linux*coff*) 10958141098Sdes dynamic_linker=no 10959141098Sdes ;; 10960141098Sdes 10961236109Sdes# This must be glibc/ELF. 10962228692Sdeslinux* | k*bsd*-gnu | kopensolaris*-gnu) 10963236109Sdes version_type=linux # correct to gnu/linux during the next big refactor 10964141098Sdes need_lib_prefix=no 10965141098Sdes need_version=no 10966141098Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10967141098Sdes soname_spec='${libname}${release}${shared_ext}$major' 10968141098Sdes finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10969141098Sdes shlibpath_var=LD_LIBRARY_PATH 10970141098Sdes shlibpath_overrides_runpath=no 10971228692Sdes 10972228692Sdes # Some binutils ld are patched to set DT_RUNPATH 10973228692Sdes if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10974228692Sdes $as_echo_n "(cached) " >&6 10975228692Sdeselse 10976228692Sdes lt_cv_shlibpath_overrides_runpath=no 10977228692Sdes save_LDFLAGS=$LDFLAGS 10978228692Sdes save_libdir=$libdir 10979228692Sdes eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10980228692Sdes LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10981228692Sdes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10982228692Sdes/* end confdefs.h. */ 10983228692Sdes 10984228692Sdesint 10985228692Sdesmain () 10986228692Sdes{ 10987228692Sdes 10988228692Sdes ; 10989228692Sdes return 0; 10990228692Sdes} 10991228692Sdes_ACEOF 10992228692Sdesif ac_fn_c_try_link "$LINENO"; then : 10993228692Sdes if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10994228692Sdes lt_cv_shlibpath_overrides_runpath=yes 10995228692Sdesfi 10996228692Sdesfi 10997228692Sdesrm -f core conftest.err conftest.$ac_objext \ 10998228692Sdes conftest$ac_exeext conftest.$ac_ext 10999228692Sdes LDFLAGS=$save_LDFLAGS 11000228692Sdes libdir=$save_libdir 11001228692Sdes 11002228692Sdesfi 11003228692Sdes 11004228692Sdes shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11005228692Sdes 11006141098Sdes # This implies no fast_install, which is unacceptable. 11007141098Sdes # Some rework will be needed to allow for fast_install 11008141098Sdes # before this can be enabled. 11009141098Sdes hardcode_into_libs=yes 11010141098Sdes 11011141098Sdes # Append ld.so.conf contents to the search path 11012141098Sdes if test -f /etc/ld.so.conf; then 11013228692Sdes 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' ' '` 11014141098Sdes sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11015141098Sdes fi 11016141098Sdes 11017141098Sdes # We used to test for /lib/ld.so.1 and disable shared libraries on 11018141098Sdes # powerpc, because MkLinux only supported shared libraries with the 11019141098Sdes # GNU dynamic linker. Since this was broken with cross compilers, 11020141098Sdes # most powerpc-linux boxes support dynamic linking these days and 11021141098Sdes # people can always --disable-shared, the test was removed, and we 11022141098Sdes # assume the GNU/Linux dynamic linker is in use. 11023141098Sdes dynamic_linker='GNU/Linux ld.so' 11024141098Sdes ;; 11025141098Sdes 11026141098Sdesnetbsd*) 11027141098Sdes version_type=sunos 11028141098Sdes need_lib_prefix=no 11029141098Sdes need_version=no 11030228692Sdes if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11031141098Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11032141098Sdes finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11033141098Sdes dynamic_linker='NetBSD (a.out) ld.so' 11034141098Sdes else 11035141098Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11036141098Sdes soname_spec='${libname}${release}${shared_ext}$major' 11037141098Sdes dynamic_linker='NetBSD ld.elf_so' 11038141098Sdes fi 11039141098Sdes shlibpath_var=LD_LIBRARY_PATH 11040141098Sdes shlibpath_overrides_runpath=yes 11041141098Sdes hardcode_into_libs=yes 11042141098Sdes ;; 11043141098Sdes 11044141098Sdesnewsos6) 11045236109Sdes version_type=linux # correct to gnu/linux during the next big refactor 11046141098Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11047141098Sdes shlibpath_var=LD_LIBRARY_PATH 11048141098Sdes shlibpath_overrides_runpath=yes 11049141098Sdes ;; 11050141098Sdes 11051228692Sdes*nto* | *qnx*) 11052228692Sdes version_type=qnx 11053141098Sdes need_lib_prefix=no 11054141098Sdes need_version=no 11055141098Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11056141098Sdes soname_spec='${libname}${release}${shared_ext}$major' 11057141098Sdes shlibpath_var=LD_LIBRARY_PATH 11058228692Sdes shlibpath_overrides_runpath=no 11059228692Sdes hardcode_into_libs=yes 11060228692Sdes dynamic_linker='ldqnx.so' 11061141098Sdes ;; 11062141098Sdes 11063141098Sdesopenbsd*) 11064141098Sdes version_type=sunos 11065174832Sdes sys_lib_dlsearch_path_spec="/usr/lib" 11066141098Sdes need_lib_prefix=no 11067174832Sdes # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11068174832Sdes case $host_os in 11069228692Sdes openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11070228692Sdes *) need_version=no ;; 11071174832Sdes esac 11072141098Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11073141098Sdes finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11074141098Sdes shlibpath_var=LD_LIBRARY_PATH 11075228692Sdes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11076141098Sdes case $host_os in 11077141098Sdes openbsd2.[89] | openbsd2.[89].*) 11078141098Sdes shlibpath_overrides_runpath=no 11079141098Sdes ;; 11080141098Sdes *) 11081141098Sdes shlibpath_overrides_runpath=yes 11082141098Sdes ;; 11083141098Sdes esac 11084141098Sdes else 11085141098Sdes shlibpath_overrides_runpath=yes 11086141098Sdes fi 11087141098Sdes ;; 11088141098Sdes 11089141098Sdesos2*) 11090141098Sdes libname_spec='$name' 11091141098Sdes shrext_cmds=".dll" 11092141098Sdes need_lib_prefix=no 11093141098Sdes library_names_spec='$libname${shared_ext} $libname.a' 11094141098Sdes dynamic_linker='OS/2 ld.exe' 11095141098Sdes shlibpath_var=LIBPATH 11096141098Sdes ;; 11097141098Sdes 11098141098Sdesosf3* | osf4* | osf5*) 11099141098Sdes version_type=osf 11100141098Sdes need_lib_prefix=no 11101141098Sdes need_version=no 11102141098Sdes soname_spec='${libname}${release}${shared_ext}$major' 11103141098Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11104141098Sdes shlibpath_var=LD_LIBRARY_PATH 11105141098Sdes sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11106141098Sdes sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11107141098Sdes ;; 11108141098Sdes 11109174832Sdesrdos*) 11110174832Sdes dynamic_linker=no 11111141098Sdes ;; 11112141098Sdes 11113141098Sdessolaris*) 11114236109Sdes version_type=linux # correct to gnu/linux during the next big refactor 11115141098Sdes need_lib_prefix=no 11116141098Sdes need_version=no 11117141098Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11118141098Sdes soname_spec='${libname}${release}${shared_ext}$major' 11119141098Sdes shlibpath_var=LD_LIBRARY_PATH 11120141098Sdes shlibpath_overrides_runpath=yes 11121141098Sdes hardcode_into_libs=yes 11122141098Sdes # ldd complains unless libraries are executable 11123141098Sdes postinstall_cmds='chmod +x $lib' 11124141098Sdes ;; 11125141098Sdes 11126141098Sdessunos4*) 11127141098Sdes version_type=sunos 11128141098Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11129141098Sdes finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11130141098Sdes shlibpath_var=LD_LIBRARY_PATH 11131141098Sdes shlibpath_overrides_runpath=yes 11132141098Sdes if test "$with_gnu_ld" = yes; then 11133141098Sdes need_lib_prefix=no 11134141098Sdes fi 11135141098Sdes need_version=yes 11136141098Sdes ;; 11137141098Sdes 11138174832Sdessysv4 | sysv4.3*) 11139236109Sdes version_type=linux # correct to gnu/linux during the next big refactor 11140141098Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11141141098Sdes soname_spec='${libname}${release}${shared_ext}$major' 11142141098Sdes shlibpath_var=LD_LIBRARY_PATH 11143141098Sdes case $host_vendor in 11144141098Sdes sni) 11145141098Sdes shlibpath_overrides_runpath=no 11146141098Sdes need_lib_prefix=no 11147141098Sdes runpath_var=LD_RUN_PATH 11148141098Sdes ;; 11149141098Sdes siemens) 11150141098Sdes need_lib_prefix=no 11151141098Sdes ;; 11152141098Sdes motorola) 11153141098Sdes need_lib_prefix=no 11154141098Sdes need_version=no 11155141098Sdes shlibpath_overrides_runpath=no 11156141098Sdes sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11157141098Sdes ;; 11158141098Sdes esac 11159141098Sdes ;; 11160141098Sdes 11161141098Sdessysv4*MP*) 11162141098Sdes if test -d /usr/nec ;then 11163236109Sdes version_type=linux # correct to gnu/linux during the next big refactor 11164141098Sdes library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11165141098Sdes soname_spec='$libname${shared_ext}.$major' 11166141098Sdes shlibpath_var=LD_LIBRARY_PATH 11167141098Sdes fi 11168141098Sdes ;; 11169141098Sdes 11170174832Sdessysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11171174832Sdes version_type=freebsd-elf 11172174832Sdes need_lib_prefix=no 11173174832Sdes need_version=no 11174174832Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11175174832Sdes soname_spec='${libname}${release}${shared_ext}$major' 11176174832Sdes shlibpath_var=LD_LIBRARY_PATH 11177228692Sdes shlibpath_overrides_runpath=yes 11178174832Sdes hardcode_into_libs=yes 11179174832Sdes if test "$with_gnu_ld" = yes; then 11180174832Sdes sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11181174832Sdes else 11182174832Sdes sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11183174832Sdes case $host_os in 11184174832Sdes sco3.2v5*) 11185174832Sdes sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11186174832Sdes ;; 11187174832Sdes esac 11188174832Sdes fi 11189174832Sdes sys_lib_dlsearch_path_spec='/usr/lib' 11190174832Sdes ;; 11191174832Sdes 11192228692Sdestpf*) 11193228692Sdes # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11194236109Sdes version_type=linux # correct to gnu/linux during the next big refactor 11195228692Sdes need_lib_prefix=no 11196228692Sdes need_version=no 11197228692Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11198228692Sdes shlibpath_var=LD_LIBRARY_PATH 11199228692Sdes shlibpath_overrides_runpath=no 11200228692Sdes hardcode_into_libs=yes 11201228692Sdes ;; 11202228692Sdes 11203141098Sdesuts4*) 11204236109Sdes version_type=linux # correct to gnu/linux during the next big refactor 11205141098Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11206141098Sdes soname_spec='${libname}${release}${shared_ext}$major' 11207141098Sdes shlibpath_var=LD_LIBRARY_PATH 11208141098Sdes ;; 11209141098Sdes 11210141098Sdes*) 11211141098Sdes dynamic_linker=no 11212141098Sdes ;; 11213141098Sdesesac 11214228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11215228692Sdes$as_echo "$dynamic_linker" >&6; } 11216141098Sdestest "$dynamic_linker" = no && can_build_shared=no 11217141098Sdes 11218174832Sdesvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11219174832Sdesif test "$GCC" = yes; then 11220174832Sdes variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11221174832Sdesfi 11222174832Sdes 11223228692Sdesif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11224228692Sdes sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11225228692Sdesfi 11226228692Sdesif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11227228692Sdes sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11228228692Sdesfi 11229228692Sdes 11230228692Sdes 11231228692Sdes 11232228692Sdes 11233228692Sdes 11234228692Sdes 11235228692Sdes 11236228692Sdes 11237228692Sdes 11238228692Sdes 11239228692Sdes 11240228692Sdes 11241228692Sdes 11242228692Sdes 11243228692Sdes 11244228692Sdes 11245228692Sdes 11246228692Sdes 11247228692Sdes 11248228692Sdes 11249228692Sdes 11250228692Sdes 11251228692Sdes 11252228692Sdes 11253228692Sdes 11254228692Sdes 11255228692Sdes 11256228692Sdes 11257228692Sdes 11258228692Sdes 11259228692Sdes 11260228692Sdes 11261228692Sdes 11262228692Sdes 11263228692Sdes 11264228692Sdes 11265228692Sdes 11266228692Sdes 11267228692Sdes 11268228692Sdes 11269228692Sdes 11270228692Sdes 11271228692Sdes 11272228692Sdes 11273228692Sdes 11274228692Sdes 11275228692Sdes 11276228692Sdes 11277228692Sdes 11278228692Sdes 11279228692Sdes 11280228692Sdes 11281228692Sdes 11282228692Sdes 11283228692Sdes 11284228692Sdes 11285228692Sdes 11286228692Sdes 11287228692Sdes 11288228692Sdes 11289228692Sdes 11290228692Sdes 11291228692Sdes 11292228692Sdes 11293228692Sdes 11294228692Sdes 11295228692Sdes 11296228692Sdes 11297228692Sdes 11298228692Sdes 11299228692Sdes 11300228692Sdes 11301228692Sdes 11302228692Sdes 11303228692Sdes 11304228692Sdes 11305228692Sdes 11306228692Sdes 11307228692Sdes 11308228692Sdes 11309228692Sdes 11310228692Sdes 11311228692Sdes 11312228692Sdes 11313228692Sdes 11314228692Sdes 11315228692Sdes 11316228692Sdes 11317228692Sdes 11318228692Sdes 11319228692Sdes 11320228692Sdes 11321228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11322228692Sdes$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11323141098Sdeshardcode_action= 11324228692Sdesif test -n "$hardcode_libdir_flag_spec" || 11325228692Sdes test -n "$runpath_var" || 11326141098Sdes test "X$hardcode_automatic" = "Xyes" ; then 11327141098Sdes 11328228692Sdes # We can hardcode non-existent directories. 11329141098Sdes if test "$hardcode_direct" != no && 11330141098Sdes # If the only mechanism to avoid hardcoding is shlibpath_var, we 11331141098Sdes # have to relink, otherwise we might link with an installed library 11332141098Sdes # when we should be linking with a yet-to-be-installed one 11333228692Sdes ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11334141098Sdes test "$hardcode_minus_L" != no; then 11335141098Sdes # Linking always hardcodes the temporary library directory. 11336141098Sdes hardcode_action=relink 11337141098Sdes else 11338141098Sdes # We can link without hardcoding, and we can hardcode nonexisting dirs. 11339141098Sdes hardcode_action=immediate 11340141098Sdes fi 11341141098Sdeselse 11342141098Sdes # We cannot hardcode anything, or else we can only hardcode existing 11343141098Sdes # directories. 11344141098Sdes hardcode_action=unsupported 11345141098Sdesfi 11346228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11347228692Sdes$as_echo "$hardcode_action" >&6; } 11348141098Sdes 11349228692Sdesif test "$hardcode_action" = relink || 11350228692Sdes test "$inherit_rpath" = yes; then 11351141098Sdes # Fast installation is not supported 11352141098Sdes enable_fast_install=no 11353141098Sdeselif test "$shlibpath_overrides_runpath" = yes || 11354141098Sdes test "$enable_shared" = no; then 11355141098Sdes # Fast installation is not necessary 11356141098Sdes enable_fast_install=needless 11357141098Sdesfi 11358141098Sdes 11359141098Sdes 11360228692Sdes 11361228692Sdes 11362228692Sdes 11363228692Sdes 11364228692Sdes if test "x$enable_dlopen" != xyes; then 11365141098Sdes enable_dlopen=unknown 11366141098Sdes enable_dlopen_self=unknown 11367141098Sdes enable_dlopen_self_static=unknown 11368141098Sdeselse 11369141098Sdes lt_cv_dlopen=no 11370141098Sdes lt_cv_dlopen_libs= 11371141098Sdes 11372141098Sdes case $host_os in 11373141098Sdes beos*) 11374141098Sdes lt_cv_dlopen="load_add_on" 11375141098Sdes lt_cv_dlopen_libs= 11376141098Sdes lt_cv_dlopen_self=yes 11377141098Sdes ;; 11378141098Sdes 11379228692Sdes mingw* | pw32* | cegcc*) 11380141098Sdes lt_cv_dlopen="LoadLibrary" 11381141098Sdes lt_cv_dlopen_libs= 11382228692Sdes ;; 11383141098Sdes 11384141098Sdes cygwin*) 11385141098Sdes lt_cv_dlopen="dlopen" 11386141098Sdes lt_cv_dlopen_libs= 11387228692Sdes ;; 11388141098Sdes 11389141098Sdes darwin*) 11390141098Sdes # if libdl is installed we need to link against it 11391228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11392228692Sdes$as_echo_n "checking for dlopen in -ldl... " >&6; } 11393228692Sdesif ${ac_cv_lib_dl_dlopen+:} false; then : 11394228692Sdes $as_echo_n "(cached) " >&6 11395141098Sdeselse 11396141098Sdes ac_check_lib_save_LIBS=$LIBS 11397141098SdesLIBS="-ldl $LIBS" 11398228692Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext 11399141098Sdes/* end confdefs.h. */ 11400141098Sdes 11401174832Sdes/* Override any GCC internal prototype to avoid an error. 11402174832Sdes Use char because int might match the return type of a GCC 11403174832Sdes builtin and then its argument prototype would still apply. */ 11404141098Sdes#ifdef __cplusplus 11405141098Sdesextern "C" 11406141098Sdes#endif 11407141098Sdeschar dlopen (); 11408141098Sdesint 11409141098Sdesmain () 11410141098Sdes{ 11411174832Sdesreturn dlopen (); 11412141098Sdes ; 11413141098Sdes return 0; 11414141098Sdes} 11415141098Sdes_ACEOF 11416228692Sdesif ac_fn_c_try_link "$LINENO"; then : 11417141098Sdes ac_cv_lib_dl_dlopen=yes 11418141098Sdeselse 11419228692Sdes ac_cv_lib_dl_dlopen=no 11420141098Sdesfi 11421228692Sdesrm -f core conftest.err conftest.$ac_objext \ 11422228692Sdes conftest$ac_exeext conftest.$ac_ext 11423141098SdesLIBS=$ac_check_lib_save_LIBS 11424141098Sdesfi 11425228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11426228692Sdes$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11427228692Sdesif test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11428141098Sdes lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11429141098Sdeselse 11430141098Sdes 11431141098Sdes lt_cv_dlopen="dyld" 11432141098Sdes lt_cv_dlopen_libs= 11433141098Sdes lt_cv_dlopen_self=yes 11434141098Sdes 11435141098Sdesfi 11436141098Sdes 11437228692Sdes ;; 11438141098Sdes 11439141098Sdes *) 11440228692Sdes ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11441228692Sdesif test "x$ac_cv_func_shl_load" = xyes; then : 11442141098Sdes lt_cv_dlopen="shl_load" 11443141098Sdeselse 11444228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11445228692Sdes$as_echo_n "checking for shl_load in -ldld... " >&6; } 11446228692Sdesif ${ac_cv_lib_dld_shl_load+:} false; then : 11447228692Sdes $as_echo_n "(cached) " >&6 11448141098Sdeselse 11449141098Sdes ac_check_lib_save_LIBS=$LIBS 11450141098SdesLIBS="-ldld $LIBS" 11451228692Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext 11452141098Sdes/* end confdefs.h. */ 11453141098Sdes 11454174832Sdes/* Override any GCC internal prototype to avoid an error. 11455174832Sdes Use char because int might match the return type of a GCC 11456174832Sdes builtin and then its argument prototype would still apply. */ 11457141098Sdes#ifdef __cplusplus 11458141098Sdesextern "C" 11459141098Sdes#endif 11460141098Sdeschar shl_load (); 11461141098Sdesint 11462141098Sdesmain () 11463141098Sdes{ 11464174832Sdesreturn shl_load (); 11465141098Sdes ; 11466141098Sdes return 0; 11467141098Sdes} 11468141098Sdes_ACEOF 11469228692Sdesif ac_fn_c_try_link "$LINENO"; then : 11470141098Sdes ac_cv_lib_dld_shl_load=yes 11471141098Sdeselse 11472228692Sdes ac_cv_lib_dld_shl_load=no 11473141098Sdesfi 11474228692Sdesrm -f core conftest.err conftest.$ac_objext \ 11475228692Sdes conftest$ac_exeext conftest.$ac_ext 11476141098SdesLIBS=$ac_check_lib_save_LIBS 11477141098Sdesfi 11478228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11479228692Sdes$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11480228692Sdesif test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11481228692Sdes lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11482141098Sdeselse 11483228692Sdes ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11484228692Sdesif test "x$ac_cv_func_dlopen" = xyes; then : 11485141098Sdes lt_cv_dlopen="dlopen" 11486141098Sdeselse 11487228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11488228692Sdes$as_echo_n "checking for dlopen in -ldl... " >&6; } 11489228692Sdesif ${ac_cv_lib_dl_dlopen+:} false; then : 11490228692Sdes $as_echo_n "(cached) " >&6 11491141098Sdeselse 11492141098Sdes ac_check_lib_save_LIBS=$LIBS 11493141098SdesLIBS="-ldl $LIBS" 11494228692Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext 11495141098Sdes/* end confdefs.h. */ 11496141098Sdes 11497174832Sdes/* Override any GCC internal prototype to avoid an error. 11498174832Sdes Use char because int might match the return type of a GCC 11499174832Sdes builtin and then its argument prototype would still apply. */ 11500141098Sdes#ifdef __cplusplus 11501141098Sdesextern "C" 11502141098Sdes#endif 11503141098Sdeschar dlopen (); 11504141098Sdesint 11505141098Sdesmain () 11506141098Sdes{ 11507174832Sdesreturn dlopen (); 11508141098Sdes ; 11509141098Sdes return 0; 11510141098Sdes} 11511141098Sdes_ACEOF 11512228692Sdesif ac_fn_c_try_link "$LINENO"; then : 11513141098Sdes ac_cv_lib_dl_dlopen=yes 11514141098Sdeselse 11515228692Sdes ac_cv_lib_dl_dlopen=no 11516141098Sdesfi 11517228692Sdesrm -f core conftest.err conftest.$ac_objext \ 11518228692Sdes conftest$ac_exeext conftest.$ac_ext 11519141098SdesLIBS=$ac_check_lib_save_LIBS 11520141098Sdesfi 11521228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11522228692Sdes$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11523228692Sdesif test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11524141098Sdes lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11525141098Sdeselse 11526228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11527228692Sdes$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11528228692Sdesif ${ac_cv_lib_svld_dlopen+:} false; then : 11529228692Sdes $as_echo_n "(cached) " >&6 11530141098Sdeselse 11531141098Sdes ac_check_lib_save_LIBS=$LIBS 11532141098SdesLIBS="-lsvld $LIBS" 11533228692Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext 11534141098Sdes/* end confdefs.h. */ 11535141098Sdes 11536174832Sdes/* Override any GCC internal prototype to avoid an error. 11537174832Sdes Use char because int might match the return type of a GCC 11538174832Sdes builtin and then its argument prototype would still apply. */ 11539141098Sdes#ifdef __cplusplus 11540141098Sdesextern "C" 11541141098Sdes#endif 11542141098Sdeschar dlopen (); 11543141098Sdesint 11544141098Sdesmain () 11545141098Sdes{ 11546174832Sdesreturn dlopen (); 11547141098Sdes ; 11548141098Sdes return 0; 11549141098Sdes} 11550141098Sdes_ACEOF 11551228692Sdesif ac_fn_c_try_link "$LINENO"; then : 11552141098Sdes ac_cv_lib_svld_dlopen=yes 11553141098Sdeselse 11554228692Sdes ac_cv_lib_svld_dlopen=no 11555141098Sdesfi 11556228692Sdesrm -f core conftest.err conftest.$ac_objext \ 11557228692Sdes conftest$ac_exeext conftest.$ac_ext 11558141098SdesLIBS=$ac_check_lib_save_LIBS 11559141098Sdesfi 11560228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11561228692Sdes$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11562228692Sdesif test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11563141098Sdes lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11564141098Sdeselse 11565228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11566228692Sdes$as_echo_n "checking for dld_link in -ldld... " >&6; } 11567228692Sdesif ${ac_cv_lib_dld_dld_link+:} false; then : 11568228692Sdes $as_echo_n "(cached) " >&6 11569141098Sdeselse 11570141098Sdes ac_check_lib_save_LIBS=$LIBS 11571141098SdesLIBS="-ldld $LIBS" 11572228692Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext 11573141098Sdes/* end confdefs.h. */ 11574141098Sdes 11575174832Sdes/* Override any GCC internal prototype to avoid an error. 11576174832Sdes Use char because int might match the return type of a GCC 11577174832Sdes builtin and then its argument prototype would still apply. */ 11578141098Sdes#ifdef __cplusplus 11579141098Sdesextern "C" 11580141098Sdes#endif 11581141098Sdeschar dld_link (); 11582141098Sdesint 11583141098Sdesmain () 11584141098Sdes{ 11585174832Sdesreturn dld_link (); 11586141098Sdes ; 11587141098Sdes return 0; 11588141098Sdes} 11589141098Sdes_ACEOF 11590228692Sdesif ac_fn_c_try_link "$LINENO"; then : 11591141098Sdes ac_cv_lib_dld_dld_link=yes 11592141098Sdeselse 11593228692Sdes ac_cv_lib_dld_dld_link=no 11594141098Sdesfi 11595228692Sdesrm -f core conftest.err conftest.$ac_objext \ 11596228692Sdes conftest$ac_exeext conftest.$ac_ext 11597141098SdesLIBS=$ac_check_lib_save_LIBS 11598141098Sdesfi 11599228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11600228692Sdes$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11601228692Sdesif test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11602228692Sdes lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11603141098Sdesfi 11604141098Sdes 11605141098Sdes 11606141098Sdesfi 11607141098Sdes 11608141098Sdes 11609141098Sdesfi 11610141098Sdes 11611141098Sdes 11612141098Sdesfi 11613141098Sdes 11614141098Sdes 11615141098Sdesfi 11616141098Sdes 11617141098Sdes 11618141098Sdesfi 11619141098Sdes 11620141098Sdes ;; 11621141098Sdes esac 11622141098Sdes 11623141098Sdes if test "x$lt_cv_dlopen" != xno; then 11624141098Sdes enable_dlopen=yes 11625141098Sdes else 11626141098Sdes enable_dlopen=no 11627141098Sdes fi 11628141098Sdes 11629141098Sdes case $lt_cv_dlopen in 11630141098Sdes dlopen) 11631141098Sdes save_CPPFLAGS="$CPPFLAGS" 11632141098Sdes test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11633141098Sdes 11634141098Sdes save_LDFLAGS="$LDFLAGS" 11635174832Sdes wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11636141098Sdes 11637141098Sdes save_LIBS="$LIBS" 11638141098Sdes LIBS="$lt_cv_dlopen_libs $LIBS" 11639141098Sdes 11640228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11641228692Sdes$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11642228692Sdesif ${lt_cv_dlopen_self+:} false; then : 11643228692Sdes $as_echo_n "(cached) " >&6 11644141098Sdeselse 11645141098Sdes if test "$cross_compiling" = yes; then : 11646141098Sdes lt_cv_dlopen_self=cross 11647141098Sdeselse 11648141098Sdes lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11649141098Sdes lt_status=$lt_dlunknown 11650228692Sdes cat > conftest.$ac_ext <<_LT_EOF 11651228692Sdes#line $LINENO "configure" 11652141098Sdes#include "confdefs.h" 11653141098Sdes 11654141098Sdes#if HAVE_DLFCN_H 11655141098Sdes#include <dlfcn.h> 11656141098Sdes#endif 11657141098Sdes 11658141098Sdes#include <stdio.h> 11659141098Sdes 11660141098Sdes#ifdef RTLD_GLOBAL 11661141098Sdes# define LT_DLGLOBAL RTLD_GLOBAL 11662141098Sdes#else 11663141098Sdes# ifdef DL_GLOBAL 11664141098Sdes# define LT_DLGLOBAL DL_GLOBAL 11665141098Sdes# else 11666141098Sdes# define LT_DLGLOBAL 0 11667141098Sdes# endif 11668141098Sdes#endif 11669141098Sdes 11670141098Sdes/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11671141098Sdes find out it does not work in some platform. */ 11672141098Sdes#ifndef LT_DLLAZY_OR_NOW 11673141098Sdes# ifdef RTLD_LAZY 11674141098Sdes# define LT_DLLAZY_OR_NOW RTLD_LAZY 11675141098Sdes# else 11676141098Sdes# ifdef DL_LAZY 11677141098Sdes# define LT_DLLAZY_OR_NOW DL_LAZY 11678141098Sdes# else 11679141098Sdes# ifdef RTLD_NOW 11680141098Sdes# define LT_DLLAZY_OR_NOW RTLD_NOW 11681141098Sdes# else 11682141098Sdes# ifdef DL_NOW 11683141098Sdes# define LT_DLLAZY_OR_NOW DL_NOW 11684141098Sdes# else 11685141098Sdes# define LT_DLLAZY_OR_NOW 0 11686141098Sdes# endif 11687141098Sdes# endif 11688141098Sdes# endif 11689141098Sdes# endif 11690141098Sdes#endif 11691141098Sdes 11692228692Sdes/* When -fvisbility=hidden is used, assume the code has been annotated 11693228692Sdes correspondingly for the symbols needed. */ 11694228692Sdes#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11695228692Sdesint fnord () __attribute__((visibility("default"))); 11696141098Sdes#endif 11697141098Sdes 11698228692Sdesint fnord () { return 42; } 11699141098Sdesint main () 11700141098Sdes{ 11701141098Sdes void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11702141098Sdes int status = $lt_dlunknown; 11703141098Sdes 11704141098Sdes if (self) 11705141098Sdes { 11706141098Sdes if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11707228692Sdes else 11708228692Sdes { 11709228692Sdes if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11710228692Sdes else puts (dlerror ()); 11711228692Sdes } 11712141098Sdes /* dlclose (self); */ 11713141098Sdes } 11714174832Sdes else 11715174832Sdes puts (dlerror ()); 11716141098Sdes 11717228692Sdes return status; 11718141098Sdes} 11719228692Sdes_LT_EOF 11720228692Sdes if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11721141098Sdes (eval $ac_link) 2>&5 11722141098Sdes ac_status=$? 11723228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11724228692Sdes test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11725174832Sdes (./conftest; exit; ) >&5 2>/dev/null 11726141098Sdes lt_status=$? 11727141098Sdes case x$lt_status in 11728141098Sdes x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11729141098Sdes x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11730174832Sdes x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11731141098Sdes esac 11732141098Sdes else : 11733141098Sdes # compilation failed 11734141098Sdes lt_cv_dlopen_self=no 11735141098Sdes fi 11736141098Sdesfi 11737141098Sdesrm -fr conftest* 11738141098Sdes 11739141098Sdes 11740141098Sdesfi 11741228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11742228692Sdes$as_echo "$lt_cv_dlopen_self" >&6; } 11743141098Sdes 11744141098Sdes if test "x$lt_cv_dlopen_self" = xyes; then 11745174832Sdes wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11746228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11747228692Sdes$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11748228692Sdesif ${lt_cv_dlopen_self_static+:} false; then : 11749228692Sdes $as_echo_n "(cached) " >&6 11750141098Sdeselse 11751141098Sdes if test "$cross_compiling" = yes; then : 11752141098Sdes lt_cv_dlopen_self_static=cross 11753141098Sdeselse 11754141098Sdes lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11755141098Sdes lt_status=$lt_dlunknown 11756228692Sdes cat > conftest.$ac_ext <<_LT_EOF 11757228692Sdes#line $LINENO "configure" 11758141098Sdes#include "confdefs.h" 11759141098Sdes 11760141098Sdes#if HAVE_DLFCN_H 11761141098Sdes#include <dlfcn.h> 11762141098Sdes#endif 11763141098Sdes 11764141098Sdes#include <stdio.h> 11765141098Sdes 11766141098Sdes#ifdef RTLD_GLOBAL 11767141098Sdes# define LT_DLGLOBAL RTLD_GLOBAL 11768141098Sdes#else 11769141098Sdes# ifdef DL_GLOBAL 11770141098Sdes# define LT_DLGLOBAL DL_GLOBAL 11771141098Sdes# else 11772141098Sdes# define LT_DLGLOBAL 0 11773141098Sdes# endif 11774141098Sdes#endif 11775141098Sdes 11776141098Sdes/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11777141098Sdes find out it does not work in some platform. */ 11778141098Sdes#ifndef LT_DLLAZY_OR_NOW 11779141098Sdes# ifdef RTLD_LAZY 11780141098Sdes# define LT_DLLAZY_OR_NOW RTLD_LAZY 11781141098Sdes# else 11782141098Sdes# ifdef DL_LAZY 11783141098Sdes# define LT_DLLAZY_OR_NOW DL_LAZY 11784141098Sdes# else 11785141098Sdes# ifdef RTLD_NOW 11786141098Sdes# define LT_DLLAZY_OR_NOW RTLD_NOW 11787141098Sdes# else 11788141098Sdes# ifdef DL_NOW 11789141098Sdes# define LT_DLLAZY_OR_NOW DL_NOW 11790141098Sdes# else 11791141098Sdes# define LT_DLLAZY_OR_NOW 0 11792141098Sdes# endif 11793141098Sdes# endif 11794141098Sdes# endif 11795141098Sdes# endif 11796141098Sdes#endif 11797141098Sdes 11798228692Sdes/* When -fvisbility=hidden is used, assume the code has been annotated 11799228692Sdes correspondingly for the symbols needed. */ 11800228692Sdes#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11801228692Sdesint fnord () __attribute__((visibility("default"))); 11802141098Sdes#endif 11803141098Sdes 11804228692Sdesint fnord () { return 42; } 11805141098Sdesint main () 11806141098Sdes{ 11807141098Sdes void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11808141098Sdes int status = $lt_dlunknown; 11809141098Sdes 11810141098Sdes if (self) 11811141098Sdes { 11812141098Sdes if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11813228692Sdes else 11814228692Sdes { 11815228692Sdes if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11816228692Sdes else puts (dlerror ()); 11817228692Sdes } 11818141098Sdes /* dlclose (self); */ 11819141098Sdes } 11820174832Sdes else 11821174832Sdes puts (dlerror ()); 11822141098Sdes 11823228692Sdes return status; 11824141098Sdes} 11825228692Sdes_LT_EOF 11826228692Sdes if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11827141098Sdes (eval $ac_link) 2>&5 11828141098Sdes ac_status=$? 11829228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11830228692Sdes test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11831174832Sdes (./conftest; exit; ) >&5 2>/dev/null 11832141098Sdes lt_status=$? 11833141098Sdes case x$lt_status in 11834141098Sdes x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11835141098Sdes x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11836174832Sdes x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11837141098Sdes esac 11838141098Sdes else : 11839141098Sdes # compilation failed 11840141098Sdes lt_cv_dlopen_self_static=no 11841141098Sdes fi 11842141098Sdesfi 11843141098Sdesrm -fr conftest* 11844141098Sdes 11845141098Sdes 11846141098Sdesfi 11847228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11848228692Sdes$as_echo "$lt_cv_dlopen_self_static" >&6; } 11849141098Sdes fi 11850141098Sdes 11851141098Sdes CPPFLAGS="$save_CPPFLAGS" 11852141098Sdes LDFLAGS="$save_LDFLAGS" 11853141098Sdes LIBS="$save_LIBS" 11854141098Sdes ;; 11855141098Sdes esac 11856141098Sdes 11857141098Sdes case $lt_cv_dlopen_self in 11858141098Sdes yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11859141098Sdes *) enable_dlopen_self=unknown ;; 11860141098Sdes esac 11861141098Sdes 11862141098Sdes case $lt_cv_dlopen_self_static in 11863141098Sdes yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11864141098Sdes *) enable_dlopen_self_static=unknown ;; 11865141098Sdes esac 11866141098Sdesfi 11867141098Sdes 11868141098Sdes 11869141098Sdes 11870141098Sdes 11871141098Sdes 11872141098Sdes 11873141098Sdes 11874141098Sdes 11875141098Sdes 11876141098Sdes 11877141098Sdes 11878141098Sdes 11879141098Sdes 11880141098Sdes 11881141098Sdes 11882141098Sdes 11883141098Sdes 11884228692Sdesstriplib= 11885228692Sdesold_striplib= 11886228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11887228692Sdes$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11888228692Sdesif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11889228692Sdes test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11890228692Sdes test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11891228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11892228692Sdes$as_echo "yes" >&6; } 11893228692Sdeselse 11894228692Sdes# FIXME - insert some real tests, host_os isn't really good enough 11895141098Sdes case $host_os in 11896228692Sdes darwin*) 11897228692Sdes if test -n "$STRIP" ; then 11898228692Sdes striplib="$STRIP -x" 11899228692Sdes old_striplib="$STRIP -S" 11900228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11901228692Sdes$as_echo "yes" >&6; } 11902141098Sdes else 11903228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11904228692Sdes$as_echo "no" >&6; } 11905141098Sdes fi 11906117610Sdes ;; 11907117610Sdes *) 11908228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11909228692Sdes$as_echo "no" >&6; } 11910117610Sdes ;; 11911117610Sdes esac 11912117610Sdesfi 11913117610Sdes 11914141098Sdes 11915141098Sdes 11916141098Sdes 11917141098Sdes 11918141098Sdes 11919141098Sdes 11920141098Sdes 11921141098Sdes 11922141098Sdes 11923141098Sdes 11924141098Sdes 11925228692Sdes # Report which library types will actually be built 11926228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11927228692Sdes$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11928228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11929228692Sdes$as_echo "$can_build_shared" >&6; } 11930141098Sdes 11931228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11932228692Sdes$as_echo_n "checking whether to build shared libraries... " >&6; } 11933228692Sdes test "$can_build_shared" = "no" && enable_shared=no 11934141098Sdes 11935228692Sdes # On AIX, shared libraries and static libraries use the same namespace, and 11936228692Sdes # are all built from PIC. 11937141098Sdes case $host_os in 11938228692Sdes aix3*) 11939174832Sdes test "$enable_shared" = yes && enable_static=no 11940228692Sdes if test -n "$RANLIB"; then 11941228692Sdes archive_cmds="$archive_cmds~\$RANLIB \$lib" 11942228692Sdes postinstall_cmds='$RANLIB $lib' 11943141098Sdes fi 11944141098Sdes ;; 11945141098Sdes 11946228692Sdes aix[4-9]*) 11947228692Sdes if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11948228692Sdes test "$enable_shared" = yes && enable_static=no 11949174832Sdes fi 11950141098Sdes ;; 11951141098Sdes esac 11952228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11953228692Sdes$as_echo "$enable_shared" >&6; } 11954141098Sdes 11955228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11956228692Sdes$as_echo_n "checking whether to build static libraries... " >&6; } 11957228692Sdes # Make sure either enable_shared or enable_static is yes. 11958228692Sdes test "$enable_shared" = yes || enable_static=yes 11959228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11960228692Sdes$as_echo "$enable_static" >&6; } 11961174832Sdes 11962141098Sdes 11963141098Sdes 11964141098Sdes 11965174832Sdesfi 11966141098Sdesac_ext=c 11967141098Sdesac_cpp='$CPP $CPPFLAGS' 11968141098Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11969141098Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11970141098Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu 11971141098Sdes 11972141098SdesCC="$lt_save_CC" 11973141098Sdes 11974141098Sdes 11975141098Sdes 11976141098Sdes 11977141098Sdes 11978141098Sdes 11979141098Sdes 11980141098Sdes 11981141098Sdes 11982141098Sdes 11983174832Sdes 11984141098Sdes 11985141098Sdes 11986236109Sdes 11987236109Sdes 11988228692Sdes ac_config_commands="$ac_config_commands libtool" 11989174832Sdes 11990174832Sdes 11991174832Sdes 11992141098Sdes 11993228692Sdes# Only expand once: 11994174832Sdes 11995141098Sdes 11996141098Sdes 11997228692Sdes# other programs 11998174832Sdes 11999141098Sdes 12000228692SdesLIB_MAJ=2 12001141098Sdes 12002141098Sdes 12003117610Sdescat >>confdefs.h <<_ACEOF 12004228692Sdes#define LIB_MAJ $LIB_MAJ 12005117610Sdes_ACEOF 12006117610Sdes 12007117610Sdes 12008228692Sdes# Check whether --enable-debug was given. 12009228692Sdesif test "${enable_debug+set}" = set; then : 12010228692Sdes enableval=$enable_debug; 12011228692Sdes$as_echo "#define OPENPAM_DEBUG 1" >>confdefs.h 12012117610Sdes 12013141098Sdesfi 12014141098Sdes 12015174832Sdes 12016228692Sdes# Check whether --enable-unversioned-modules was given. 12017228692Sdesif test "${enable_unversioned_modules+set}" = set; then : 12018228692Sdes enableval=$enable_unversioned_modules; if test x"$enableval" = x"no"; then : 12019141098Sdes 12020141098Sdes 12021228692Sdes$as_echo "#define DISABLE_UNVERSIONED_MODULES 1" >>confdefs.h 12022141098Sdes 12023117610Sdes 12024117610Sdesfi 12025117610Sdesfi 12026117610Sdes 12027117610Sdes 12028117610Sdes 12029228692Sdes# Check whether --with-modules-dir was given. 12030228692Sdesif test "${with_modules_dir+set}" = set; then : 12031228692Sdes withval=$with_modules_dir; if test x"$withval" != x"no"; then : 12032141098Sdes 12033228692Sdes OPENPAM_MODULES_DIR="$withval" 12034141098Sdes 12035255376Sdescat >>confdefs.h <<_ACEOF 12036255376Sdes#define OPENPAM_MODULES_DIR "${OPENPAM_MODULES_DIR%/}" 12037255376Sdes_ACEOF 12038141098Sdes 12039141098Sdes 12040141098Sdesfi 12041141098Sdesfi 12042141098Sdes 12043141098Sdes 12044255376Sdes if test x"$OPENPAM_MODULES_DIR" != x""; then 12045255376Sdes CUSTOM_MODULES_DIR_TRUE= 12046255376Sdes CUSTOM_MODULES_DIR_FALSE='#' 12047255376Sdeselse 12048255376Sdes CUSTOM_MODULES_DIR_TRUE='#' 12049255376Sdes CUSTOM_MODULES_DIR_FALSE= 12050255376Sdesfi 12051117610Sdes 12052117610Sdes 12053174832Sdes 12054174832Sdes# Check whether --with-doc was given. 12055228692Sdesif test "${with_doc+set}" = set; then : 12056174832Sdes withval=$with_doc; 12057117610Sdeselse 12058174832Sdes with_doc=yes 12059174832Sdesfi 12060117610Sdes 12061228692Sdes if test x"$with_doc" = x"yes"; then 12062174832Sdes WITH_DOC_TRUE= 12063174832Sdes WITH_DOC_FALSE='#' 12064174832Sdeselse 12065174832Sdes WITH_DOC_TRUE='#' 12066174832Sdes WITH_DOC_FALSE= 12067174832Sdesfi 12068174832Sdes 12069174832Sdes 12070174832Sdes 12071228692Sdes# Check whether --with-pam-unix was given. 12072228692Sdesif test "${with_pam_unix+set}" = set; then : 12073228692Sdes withval=$with_pam_unix; 12074228692Sdeselse 12075228692Sdes with_pam_unix=no 12076228692Sdesfi 12077228692Sdes 12078228692Sdes if test x"$with_pam_unix" = x"yes"; then 12079117610Sdes WITH_PAM_UNIX_TRUE= 12080117610Sdes WITH_PAM_UNIX_FALSE='#' 12081117610Sdeselse 12082117610Sdes WITH_PAM_UNIX_TRUE='#' 12083117610Sdes WITH_PAM_UNIX_FALSE= 12084117610Sdesfi 12085117610Sdes 12086141098Sdes 12087174832Sdes 12088228692Sdes# Check whether --with-pamtest was given. 12089228692Sdesif test "${with_pamtest+set}" = set; then : 12090228692Sdes withval=$with_pamtest; 12091174832Sdeselse 12092228692Sdes with_pamtest=no 12093174832Sdesfi 12094174832Sdes 12095228692Sdes if test x"$with_pamtest" = x"yes"; then 12096228692Sdes WITH_PAMTEST_TRUE= 12097228692Sdes WITH_PAMTEST_FALSE='#' 12098117610Sdeselse 12099228692Sdes WITH_PAMTEST_TRUE='#' 12100228692Sdes WITH_PAMTEST_FALSE= 12101117610Sdesfi 12102117610Sdes 12103117610Sdes 12104117610Sdes 12105228692Sdes# Check whether --with-su was given. 12106228692Sdesif test "${with_su+set}" = set; then : 12107228692Sdes withval=$with_su; 12108117610Sdeselse 12109228692Sdes with_su=no 12110117610Sdesfi 12111117610Sdes 12112228692Sdes if test x"$with_su" = x"yes"; then 12113228692Sdes WITH_SU_TRUE= 12114228692Sdes WITH_SU_FALSE='#' 12115117610Sdeselse 12116228692Sdes WITH_SU_TRUE='#' 12117228692Sdes WITH_SU_FALSE= 12118117610Sdesfi 12119174832Sdes 12120117610Sdes 12121228692Sdesfor ac_header in crypt.h 12122228692Sdesdo : 12123228692Sdes ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default" 12124228692Sdesif test "x$ac_cv_header_crypt_h" = xyes; then : 12125117610Sdes cat >>confdefs.h <<_ACEOF 12126228692Sdes#define HAVE_CRYPT_H 1 12127117610Sdes_ACEOF 12128117610Sdes 12129117610Sdesfi 12130117610Sdes 12131117610Sdesdone 12132117610Sdes 12133117610Sdes 12134255376Sdesfor ac_func in asprintf vasprintf 12135228692Sdesdo : 12136228692Sdes as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12137228692Sdesac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12138228692Sdesif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12139117610Sdes cat >>confdefs.h <<_ACEOF 12140228692Sdes#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12141117610Sdes_ACEOF 12142117610Sdes 12143117610Sdesfi 12144117610Sdesdone 12145117610Sdes 12146255376Sdesfor ac_func in dlfunc fdlopen 12147255376Sdesdo : 12148255376Sdes as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12149255376Sdesac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12150255376Sdesif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12151255376Sdes cat >>confdefs.h <<_ACEOF 12152255376Sdes#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12153255376Sdes_ACEOF 12154117610Sdes 12155255376Sdesfi 12156255376Sdesdone 12157255376Sdes 12158255376Sdesfor ac_func in fpurge 12159255376Sdesdo : 12160255376Sdes ac_fn_c_check_func "$LINENO" "fpurge" "ac_cv_func_fpurge" 12161255376Sdesif test "x$ac_cv_func_fpurge" = xyes; then : 12162255376Sdes cat >>confdefs.h <<_ACEOF 12163255376Sdes#define HAVE_FPURGE 1 12164255376Sdes_ACEOF 12165255376Sdes 12166255376Sdesfi 12167255376Sdesdone 12168255376Sdes 12169255376Sdesfor ac_func in setlogmask 12170255376Sdesdo : 12171255376Sdes ac_fn_c_check_func "$LINENO" "setlogmask" "ac_cv_func_setlogmask" 12172255376Sdesif test "x$ac_cv_func_setlogmask" = xyes; then : 12173255376Sdes cat >>confdefs.h <<_ACEOF 12174255376Sdes#define HAVE_SETLOGMASK 1 12175255376Sdes_ACEOF 12176255376Sdes 12177255376Sdesfi 12178255376Sdesdone 12179255376Sdes 12180271947Sdesfor ac_func in strlcat strlcmp strlcpy strlset 12181255376Sdesdo : 12182255376Sdes as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12183255376Sdesac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12184255376Sdesif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12185255376Sdes cat >>confdefs.h <<_ACEOF 12186255376Sdes#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12187255376Sdes_ACEOF 12188255376Sdes 12189255376Sdesfi 12190255376Sdesdone 12191255376Sdes 12192255376Sdes 12193228692Sdessaved_LIBS="${LIBS}" 12194228692SdesLIBS="" 12195228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12196228692Sdes$as_echo_n "checking for dlopen in -ldl... " >&6; } 12197228692Sdesif ${ac_cv_lib_dl_dlopen+:} false; then : 12198228692Sdes $as_echo_n "(cached) " >&6 12199117610Sdeselse 12200117610Sdes ac_check_lib_save_LIBS=$LIBS 12201117610SdesLIBS="-ldl $LIBS" 12202228692Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext 12203141098Sdes/* end confdefs.h. */ 12204117610Sdes 12205174832Sdes/* Override any GCC internal prototype to avoid an error. 12206174832Sdes Use char because int might match the return type of a GCC 12207174832Sdes builtin and then its argument prototype would still apply. */ 12208117610Sdes#ifdef __cplusplus 12209117610Sdesextern "C" 12210117610Sdes#endif 12211117610Sdeschar dlopen (); 12212117610Sdesint 12213117610Sdesmain () 12214117610Sdes{ 12215174832Sdesreturn dlopen (); 12216117610Sdes ; 12217117610Sdes return 0; 12218117610Sdes} 12219117610Sdes_ACEOF 12220228692Sdesif ac_fn_c_try_link "$LINENO"; then : 12221117610Sdes ac_cv_lib_dl_dlopen=yes 12222117610Sdeselse 12223228692Sdes ac_cv_lib_dl_dlopen=no 12224117610Sdesfi 12225228692Sdesrm -f core conftest.err conftest.$ac_objext \ 12226228692Sdes conftest$ac_exeext conftest.$ac_ext 12227117610SdesLIBS=$ac_check_lib_save_LIBS 12228117610Sdesfi 12229228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12230228692Sdes$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12231228692Sdesif test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12232228692Sdes cat >>confdefs.h <<_ACEOF 12233228692Sdes#define HAVE_LIBDL 1 12234228692Sdes_ACEOF 12235228692Sdes 12236228692Sdes LIBS="-ldl $LIBS" 12237228692Sdes 12238117610Sdesfi 12239117610Sdes 12240228692SdesDL_LIBS="${LIBS}" 12241228692SdesLIBS="${saved_LIBS}" 12242117610Sdes 12243117610Sdes 12244228692Sdessaved_LIBS="${LIBS}" 12245228692SdesLIBS="" 12246228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 12247228692Sdes$as_echo_n "checking for crypt in -lcrypt... " >&6; } 12248228692Sdesif ${ac_cv_lib_crypt_crypt+:} false; then : 12249228692Sdes $as_echo_n "(cached) " >&6 12250117610Sdeselse 12251117610Sdes ac_check_lib_save_LIBS=$LIBS 12252117610SdesLIBS="-lcrypt $LIBS" 12253228692Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext 12254141098Sdes/* end confdefs.h. */ 12255117610Sdes 12256174832Sdes/* Override any GCC internal prototype to avoid an error. 12257174832Sdes Use char because int might match the return type of a GCC 12258174832Sdes builtin and then its argument prototype would still apply. */ 12259117610Sdes#ifdef __cplusplus 12260117610Sdesextern "C" 12261117610Sdes#endif 12262117610Sdeschar crypt (); 12263117610Sdesint 12264117610Sdesmain () 12265117610Sdes{ 12266174832Sdesreturn crypt (); 12267117610Sdes ; 12268117610Sdes return 0; 12269117610Sdes} 12270117610Sdes_ACEOF 12271228692Sdesif ac_fn_c_try_link "$LINENO"; then : 12272117610Sdes ac_cv_lib_crypt_crypt=yes 12273117610Sdeselse 12274228692Sdes ac_cv_lib_crypt_crypt=no 12275117610Sdesfi 12276228692Sdesrm -f core conftest.err conftest.$ac_objext \ 12277228692Sdes conftest$ac_exeext conftest.$ac_ext 12278117610SdesLIBS=$ac_check_lib_save_LIBS 12279117610Sdesfi 12280228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 12281228692Sdes$as_echo "$ac_cv_lib_crypt_crypt" >&6; } 12282228692Sdesif test "x$ac_cv_lib_crypt_crypt" = xyes; then : 12283228692Sdes cat >>confdefs.h <<_ACEOF 12284228692Sdes#define HAVE_LIBCRYPT 1 12285228692Sdes_ACEOF 12286117610Sdes 12287228692Sdes LIBS="-lcrypt $LIBS" 12288117610Sdes 12289228692Sdesfi 12290117610Sdes 12291228692SdesCRYPT_LIBS="${LIBS}" 12292228692SdesLIBS="${saved_LIBS}" 12293117610Sdes 12294117610Sdes 12295255376Sdessaved_LIBS="${LIBS}" 12296255376SdesLIBS="" 12297255376Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5 12298255376Sdes$as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; } 12299255376Sdesif ${ac_cv_lib_crypto_HMAC_CTX_init+:} false; then : 12300255376Sdes $as_echo_n "(cached) " >&6 12301255376Sdeselse 12302255376Sdes ac_check_lib_save_LIBS=$LIBS 12303255376SdesLIBS="-lcrypto $LIBS" 12304255376Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext 12305255376Sdes/* end confdefs.h. */ 12306255376Sdes 12307255376Sdes/* Override any GCC internal prototype to avoid an error. 12308255376Sdes Use char because int might match the return type of a GCC 12309255376Sdes builtin and then its argument prototype would still apply. */ 12310255376Sdes#ifdef __cplusplus 12311255376Sdesextern "C" 12312255376Sdes#endif 12313255376Sdeschar HMAC_CTX_init (); 12314255376Sdesint 12315255376Sdesmain () 12316255376Sdes{ 12317255376Sdesreturn HMAC_CTX_init (); 12318255376Sdes ; 12319255376Sdes return 0; 12320255376Sdes} 12321255376Sdes_ACEOF 12322255376Sdesif ac_fn_c_try_link "$LINENO"; then : 12323255376Sdes ac_cv_lib_crypto_HMAC_CTX_init=yes 12324255376Sdeselse 12325255376Sdes ac_cv_lib_crypto_HMAC_CTX_init=no 12326255376Sdesfi 12327255376Sdesrm -f core conftest.err conftest.$ac_objext \ 12328255376Sdes conftest$ac_exeext conftest.$ac_ext 12329255376SdesLIBS=$ac_check_lib_save_LIBS 12330255376Sdesfi 12331255376Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5 12332255376Sdes$as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; } 12333255376Sdesif test "x$ac_cv_lib_crypto_HMAC_CTX_init" = xyes; then : 12334255376Sdes cat >>confdefs.h <<_ACEOF 12335255376Sdes#define HAVE_LIBCRYPTO 1 12336255376Sdes_ACEOF 12337255376Sdes 12338255376Sdes LIBS="-lcrypto $LIBS" 12339255376Sdes 12340255376Sdesfi 12341255376Sdes 12342255376SdesCRYPTO_LIBS="${LIBS}" 12343255376SdesLIBS="${saved_LIBS}" 12344255376Sdes 12345255376Sdes 12346174832Sdes# Check whether --enable-developer-warnings was given. 12347228692Sdesif test "${enable_developer_warnings+set}" = set; then : 12348228692Sdes enableval=$enable_developer_warnings; CFLAGS="${CFLAGS} -Wall -Wextra" 12349174832Sdesfi 12350117610Sdes 12351174832Sdes# Check whether --enable-debugging-symbols was given. 12352228692Sdesif test "${enable_debugging_symbols+set}" = set; then : 12353174832Sdes enableval=$enable_debugging_symbols; CFLAGS="${CFLAGS} -O0 -g -fno-inline" 12354174832Sdesfi 12355117610Sdes 12356174832Sdes# Check whether --enable-werror was given. 12357228692Sdesif test "${enable_werror+set}" = set; then : 12358174832Sdes enableval=$enable_werror; CFLAGS="${CFLAGS} -Werror" 12359174832Sdesfi 12360117610Sdes 12361174832Sdes 12362255376Sdesac_config_files="$ac_config_files Makefile bin/Makefile bin/openpam_dump_policy/Makefile bin/pamtest/Makefile bin/su/Makefile doc/Makefile doc/man/Makefile include/Makefile include/security/Makefile lib/Makefile lib/libpam/Makefile modules/Makefile modules/pam_deny/Makefile modules/pam_permit/Makefile modules/pam_unix/Makefile t/Makefile" 12363174832Sdes 12364236109Sdesac_config_files="$ac_config_files pamgdb" 12365236109Sdes 12366255376Sdesac_config_files="$ac_config_files mkpkgng" 12367255376Sdes 12368117610Sdescat >confcache <<\_ACEOF 12369117610Sdes# This file is a shell script that caches the results of configure 12370117610Sdes# tests run on this system so they can be shared between configure 12371117610Sdes# scripts and configure runs, see configure's option --config-cache. 12372117610Sdes# It is not useful on other systems. If it contains results you don't 12373117610Sdes# want to keep, you may remove or edit it. 12374117610Sdes# 12375117610Sdes# config.status only pays attention to the cache file if you give it 12376117610Sdes# the --recheck option to rerun configure. 12377117610Sdes# 12378141098Sdes# `ac_cv_env_foo' variables (set or unset) will be overridden when 12379117610Sdes# loading this file, other *unset* `ac_cv_foo' will be assigned the 12380117610Sdes# following values. 12381117610Sdes 12382117610Sdes_ACEOF 12383117610Sdes 12384117610Sdes# The following way of writing the cache mishandles newlines in values, 12385117610Sdes# but we know of no workaround that is simple, portable, and efficient. 12386174832Sdes# So, we kill variables containing newlines. 12387117610Sdes# Ultrix sh set writes to stderr and can't be redirected directly, 12388117610Sdes# and sets the high bit in the cache file unless we assign to the vars. 12389174832Sdes( 12390174832Sdes for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12391174832Sdes eval ac_val=\$$ac_var 12392174832Sdes case $ac_val in #( 12393174832Sdes *${as_nl}*) 12394174832Sdes case $ac_var in #( 12395228692Sdes *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12396228692Sdes$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12397174832Sdes esac 12398174832Sdes case $ac_var in #( 12399174832Sdes _ | IFS | as_nl) ;; #( 12400228692Sdes BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12401228692Sdes *) { eval $ac_var=; unset $ac_var;} ;; 12402174832Sdes esac ;; 12403174832Sdes esac 12404174832Sdes done 12405174832Sdes 12406117610Sdes (set) 2>&1 | 12407174832Sdes case $as_nl`(ac_space=' '; set) 2>&1` in #( 12408174832Sdes *${as_nl}ac_space=\ *) 12409228692Sdes # `set' does not quote correctly, so add quotes: double-quote 12410228692Sdes # substitution turns \\\\ into \\, and sed turns \\ into \. 12411117610Sdes sed -n \ 12412141098Sdes "s/'/'\\\\''/g; 12413141098Sdes s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12414174832Sdes ;; #( 12415117610Sdes *) 12416117610Sdes # `set' quotes correctly as required by POSIX, so do not add quotes. 12417174832Sdes sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12418117610Sdes ;; 12419174832Sdes esac | 12420174832Sdes sort 12421174832Sdes) | 12422117610Sdes sed ' 12423174832Sdes /^ac_cv_env_/b end 12424117610Sdes t clear 12425174832Sdes :clear 12426117610Sdes s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12427117610Sdes t end 12428174832Sdes s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12429174832Sdes :end' >>confcache 12430174832Sdesif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12431174832Sdes if test -w "$cache_file"; then 12432228692Sdes if test "x$cache_file" != "x/dev/null"; then 12433228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12434228692Sdes$as_echo "$as_me: updating cache $cache_file" >&6;} 12435228692Sdes if test ! -f "$cache_file" || test -h "$cache_file"; then 12436228692Sdes cat confcache >"$cache_file" 12437228692Sdes else 12438228692Sdes case $cache_file in #( 12439228692Sdes */* | ?:*) 12440228692Sdes mv -f confcache "$cache_file"$$ && 12441228692Sdes mv -f "$cache_file"$$ "$cache_file" ;; #( 12442228692Sdes *) 12443228692Sdes mv -f confcache "$cache_file" ;; 12444228692Sdes esac 12445228692Sdes fi 12446228692Sdes fi 12447117610Sdes else 12448228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12449228692Sdes$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12450117610Sdes fi 12451117610Sdesfi 12452117610Sdesrm -f confcache 12453117610Sdes 12454117610Sdestest "x$prefix" = xNONE && prefix=$ac_default_prefix 12455117610Sdes# Let make expand exec_prefix. 12456117610Sdestest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12457117610Sdes 12458117610SdesDEFS=-DHAVE_CONFIG_H 12459117610Sdes 12460141098Sdesac_libobjs= 12461141098Sdesac_ltlibobjs= 12462141098Sdesfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12463141098Sdes # 1. Remove the extension, and $U if already installed. 12464174832Sdes ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12465228692Sdes ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12466174832Sdes # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12467174832Sdes # will be set to the directory where LIBOBJS objects are built. 12468228692Sdes as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12469228692Sdes as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12470141098Sdesdone 12471141098SdesLIBOBJS=$ac_libobjs 12472117610Sdes 12473141098SdesLTLIBOBJS=$ac_ltlibobjs 12474141098Sdes 12475141098Sdes 12476255376Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12477255376Sdes$as_echo_n "checking that generated files are newer than configure... " >&6; } 12478255376Sdes if test -n "$am_sleep_pid"; then 12479255376Sdes # Hide warnings about reused PIDs. 12480255376Sdes wait $am_sleep_pid 2>/dev/null 12481255376Sdes fi 12482255376Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 12483255376Sdes$as_echo "done" >&6; } 12484228692Sdes if test -n "$EXEEXT"; then 12485228692Sdes am__EXEEXT_TRUE= 12486228692Sdes am__EXEEXT_FALSE='#' 12487228692Sdeselse 12488228692Sdes am__EXEEXT_TRUE='#' 12489228692Sdes am__EXEEXT_FALSE= 12490228692Sdesfi 12491228692Sdes 12492141098Sdesif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12493228692Sdes as_fn_error $? "conditional \"AMDEP\" was never defined. 12494228692SdesUsually this means the macro was only invoked conditionally." "$LINENO" 5 12495141098Sdesfi 12496141098Sdesif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12497228692Sdes as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12498228692SdesUsually this means the macro was only invoked conditionally." "$LINENO" 5 12499141098Sdesfi 12500255376Sdesif test -z "${CUSTOM_MODULES_DIR_TRUE}" && test -z "${CUSTOM_MODULES_DIR_FALSE}"; then 12501255376Sdes as_fn_error $? "conditional \"CUSTOM_MODULES_DIR\" was never defined. 12502255376SdesUsually this means the macro was only invoked conditionally." "$LINENO" 5 12503255376Sdesfi 12504174832Sdesif test -z "${WITH_DOC_TRUE}" && test -z "${WITH_DOC_FALSE}"; then 12505228692Sdes as_fn_error $? "conditional \"WITH_DOC\" was never defined. 12506228692SdesUsually this means the macro was only invoked conditionally." "$LINENO" 5 12507141098Sdesfi 12508141098Sdesif test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then 12509228692Sdes as_fn_error $? "conditional \"WITH_PAM_UNIX\" was never defined. 12510228692SdesUsually this means the macro was only invoked conditionally." "$LINENO" 5 12511141098Sdesfi 12512228692Sdesif test -z "${WITH_PAMTEST_TRUE}" && test -z "${WITH_PAMTEST_FALSE}"; then 12513228692Sdes as_fn_error $? "conditional \"WITH_PAMTEST\" was never defined. 12514228692SdesUsually this means the macro was only invoked conditionally." "$LINENO" 5 12515228692Sdesfi 12516174832Sdesif test -z "${WITH_SU_TRUE}" && test -z "${WITH_SU_FALSE}"; then 12517228692Sdes as_fn_error $? "conditional \"WITH_SU\" was never defined. 12518228692SdesUsually this means the macro was only invoked conditionally." "$LINENO" 5 12519174832Sdesfi 12520141098Sdes 12521228692Sdes: "${CONFIG_STATUS=./config.status}" 12522228692Sdesac_write_fail=0 12523117610Sdesac_clean_files_save=$ac_clean_files 12524117610Sdesac_clean_files="$ac_clean_files $CONFIG_STATUS" 12525228692Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12526228692Sdes$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12527228692Sdesas_write_fail=0 12528228692Sdescat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12529117610Sdes#! $SHELL 12530117610Sdes# Generated by $as_me. 12531117610Sdes# Run this file to recreate the current configuration. 12532117610Sdes# Compiler output produced by configure, useful for debugging 12533117610Sdes# configure, is in config.log if it exists. 12534117610Sdes 12535117610Sdesdebug=false 12536141098Sdesac_cs_recheck=false 12537141098Sdesac_cs_silent=false 12538228692Sdes 12539117610SdesSHELL=\${CONFIG_SHELL-$SHELL} 12540228692Sdesexport SHELL 12541228692Sdes_ASEOF 12542228692Sdescat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12543228692Sdes## -------------------- ## 12544228692Sdes## M4sh Initialization. ## 12545228692Sdes## -------------------- ## 12546117610Sdes 12547174832Sdes# Be more Bourne compatible 12548174832SdesDUALCASE=1; export DUALCASE # for MKS sh 12549228692Sdesif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12550117610Sdes emulate sh 12551117610Sdes NULLCMD=: 12552228692Sdes # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12553141098Sdes # is contrary to our usage. Disable this feature. 12554141098Sdes alias -g '${1+"$@"}'='"$@"' 12555174832Sdes setopt NO_GLOB_SUBST 12556174832Sdeselse 12557228692Sdes case `(set -o) 2>/dev/null` in #( 12558228692Sdes *posix*) : 12559228692Sdes set -o posix ;; #( 12560228692Sdes *) : 12561228692Sdes ;; 12562174832Sdesesac 12563117610Sdesfi 12564117610Sdes 12565174832Sdes 12566228692Sdesas_nl=' 12567228692Sdes' 12568228692Sdesexport as_nl 12569228692Sdes# Printing a long string crashes Solaris 7 /usr/bin/printf. 12570228692Sdesas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12571228692Sdesas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12572228692Sdesas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12573228692Sdes# Prefer a ksh shell builtin over an external printf program on Solaris, 12574228692Sdes# but without wasting forks for bash or zsh. 12575228692Sdesif test -z "$BASH_VERSION$ZSH_VERSION" \ 12576228692Sdes && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12577228692Sdes as_echo='print -r --' 12578228692Sdes as_echo_n='print -rn --' 12579228692Sdeselif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12580228692Sdes as_echo='printf %s\n' 12581228692Sdes as_echo_n='printf %s' 12582228692Sdeselse 12583228692Sdes if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12584228692Sdes as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12585228692Sdes as_echo_n='/usr/ucb/echo -n' 12586174832Sdes else 12587228692Sdes as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12588228692Sdes as_echo_n_body='eval 12589228692Sdes arg=$1; 12590228692Sdes case $arg in #( 12591228692Sdes *"$as_nl"*) 12592228692Sdes expr "X$arg" : "X\\(.*\\)$as_nl"; 12593228692Sdes arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12594228692Sdes esac; 12595228692Sdes expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12596228692Sdes ' 12597228692Sdes export as_echo_n_body 12598228692Sdes as_echo_n='sh -c $as_echo_n_body as_echo' 12599174832Sdes fi 12600228692Sdes export as_echo_body 12601228692Sdes as_echo='sh -c $as_echo_body as_echo' 12602174832Sdesfi 12603174832Sdes 12604228692Sdes# The user is always right. 12605228692Sdesif test "${PATH_SEPARATOR+set}" != set; then 12606228692Sdes PATH_SEPARATOR=: 12607228692Sdes (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12608228692Sdes (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12609228692Sdes PATH_SEPARATOR=';' 12610228692Sdes } 12611117610Sdesfi 12612117610Sdes 12613117610Sdes 12614174832Sdes# IFS 12615174832Sdes# We need space, tab and new line, in precisely that order. Quoting is 12616174832Sdes# there to prevent editors from complaining about space-tab. 12617174832Sdes# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12618174832Sdes# splitting by setting IFS to empty value.) 12619174832SdesIFS=" "" $as_nl" 12620174832Sdes 12621174832Sdes# Find who we are. Look in the path if we contain no directory separator. 12622228692Sdesas_myself= 12623228692Sdescase $0 in #(( 12624174832Sdes *[\\/]* ) as_myself=$0 ;; 12625174832Sdes *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12626174832Sdesfor as_dir in $PATH 12627174832Sdesdo 12628174832Sdes IFS=$as_save_IFS 12629174832Sdes test -z "$as_dir" && as_dir=. 12630228692Sdes test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12631228692Sdes done 12632174832SdesIFS=$as_save_IFS 12633174832Sdes 12634174832Sdes ;; 12635174832Sdesesac 12636174832Sdes# We did not find ourselves, most probably we were run as `sh COMMAND' 12637174832Sdes# in which case we are not to be found in the path. 12638174832Sdesif test "x$as_myself" = x; then 12639174832Sdes as_myself=$0 12640174832Sdesfi 12641174832Sdesif test ! -f "$as_myself"; then 12642228692Sdes $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12643228692Sdes exit 1 12644174832Sdesfi 12645174832Sdes 12646228692Sdes# Unset variables that we do not need and which cause bugs (e.g. in 12647228692Sdes# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12648228692Sdes# suppresses any "Segmentation fault" message there. '((' could 12649228692Sdes# trigger a bug in pdksh 5.2.14. 12650228692Sdesfor as_var in BASH_ENV ENV MAIL MAILPATH 12651228692Sdesdo eval test x\${$as_var+set} = xset \ 12652228692Sdes && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12653174832Sdesdone 12654141098SdesPS1='$ ' 12655141098SdesPS2='> ' 12656141098SdesPS4='+ ' 12657117610Sdes 12658141098Sdes# NLS nuisances. 12659228692SdesLC_ALL=C 12660228692Sdesexport LC_ALL 12661228692SdesLANGUAGE=C 12662228692Sdesexport LANGUAGE 12663228692Sdes 12664228692Sdes# CDPATH. 12665228692Sdes(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12666228692Sdes 12667228692Sdes 12668228692Sdes# as_fn_error STATUS ERROR [LINENO LOG_FD] 12669228692Sdes# ---------------------------------------- 12670228692Sdes# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12671228692Sdes# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12672228692Sdes# script with STATUS, using 1 if that was 0. 12673228692Sdesas_fn_error () 12674228692Sdes{ 12675228692Sdes as_status=$1; test $as_status -eq 0 && as_status=1 12676228692Sdes if test "$4"; then 12677228692Sdes as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12678228692Sdes $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12679141098Sdes fi 12680228692Sdes $as_echo "$as_me: error: $2" >&2 12681228692Sdes as_fn_exit $as_status 12682228692Sdes} # as_fn_error 12683141098Sdes 12684228692Sdes 12685228692Sdes# as_fn_set_status STATUS 12686228692Sdes# ----------------------- 12687228692Sdes# Set $? to STATUS, without forking. 12688228692Sdesas_fn_set_status () 12689228692Sdes{ 12690228692Sdes return $1 12691228692Sdes} # as_fn_set_status 12692228692Sdes 12693228692Sdes# as_fn_exit STATUS 12694228692Sdes# ----------------- 12695228692Sdes# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12696228692Sdesas_fn_exit () 12697228692Sdes{ 12698228692Sdes set +e 12699228692Sdes as_fn_set_status $1 12700228692Sdes exit $1 12701228692Sdes} # as_fn_exit 12702228692Sdes 12703228692Sdes# as_fn_unset VAR 12704228692Sdes# --------------- 12705228692Sdes# Portably unset VAR. 12706228692Sdesas_fn_unset () 12707228692Sdes{ 12708228692Sdes { eval $1=; unset $1;} 12709228692Sdes} 12710228692Sdesas_unset=as_fn_unset 12711228692Sdes# as_fn_append VAR VALUE 12712228692Sdes# ---------------------- 12713228692Sdes# Append the text in VALUE to the end of the definition contained in VAR. Take 12714228692Sdes# advantage of any shell optimizations that allow amortized linear growth over 12715228692Sdes# repeated appends, instead of the typical quadratic growth present in naive 12716228692Sdes# implementations. 12717228692Sdesif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12718228692Sdes eval 'as_fn_append () 12719228692Sdes { 12720228692Sdes eval $1+=\$2 12721228692Sdes }' 12722228692Sdeselse 12723228692Sdes as_fn_append () 12724228692Sdes { 12725228692Sdes eval $1=\$$1\$2 12726228692Sdes } 12727228692Sdesfi # as_fn_append 12728228692Sdes 12729228692Sdes# as_fn_arith ARG... 12730228692Sdes# ------------------ 12731228692Sdes# Perform arithmetic evaluation on the ARGs, and store the result in the 12732228692Sdes# global $as_val. Take advantage of shells that can avoid forks. The arguments 12733228692Sdes# must be portable across $(()) and expr. 12734228692Sdesif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12735228692Sdes eval 'as_fn_arith () 12736228692Sdes { 12737228692Sdes as_val=$(( $* )) 12738228692Sdes }' 12739228692Sdeselse 12740228692Sdes as_fn_arith () 12741228692Sdes { 12742228692Sdes as_val=`expr "$@" || test $? -eq 1` 12743228692Sdes } 12744228692Sdesfi # as_fn_arith 12745228692Sdes 12746228692Sdes 12747174832Sdesif expr a : '\(a\)' >/dev/null 2>&1 && 12748174832Sdes test "X`expr 00001 : '.*\(...\)'`" = X001; then 12749141098Sdes as_expr=expr 12750141098Sdeselse 12751141098Sdes as_expr=false 12752141098Sdesfi 12753141098Sdes 12754174832Sdesif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12755141098Sdes as_basename=basename 12756141098Sdeselse 12757141098Sdes as_basename=false 12758141098Sdesfi 12759141098Sdes 12760228692Sdesif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12761228692Sdes as_dirname=dirname 12762228692Sdeselse 12763228692Sdes as_dirname=false 12764228692Sdesfi 12765141098Sdes 12766174832Sdesas_me=`$as_basename -- "$0" || 12767117610Sdes$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12768117610Sdes X"$0" : 'X\(//\)$' \| \ 12769174832Sdes X"$0" : 'X\(/\)' \| . 2>/dev/null || 12770228692Sdes$as_echo X/"$0" | 12771174832Sdes sed '/^.*\/\([^/][^/]*\)\/*$/{ 12772174832Sdes s//\1/ 12773174832Sdes q 12774174832Sdes } 12775174832Sdes /^X\/\(\/\/\)$/{ 12776174832Sdes s//\1/ 12777174832Sdes q 12778174832Sdes } 12779174832Sdes /^X\/\(\/\).*/{ 12780174832Sdes s//\1/ 12781174832Sdes q 12782174832Sdes } 12783174832Sdes s/.*/./; q'` 12784117610Sdes 12785228692Sdes# Avoid depending upon Character Ranges. 12786228692Sdesas_cr_letters='abcdefghijklmnopqrstuvwxyz' 12787228692Sdesas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12788228692Sdesas_cr_Letters=$as_cr_letters$as_cr_LETTERS 12789228692Sdesas_cr_digits='0123456789' 12790228692Sdesas_cr_alnum=$as_cr_Letters$as_cr_digits 12791141098Sdes 12792174832SdesECHO_C= ECHO_N= ECHO_T= 12793228692Sdescase `echo -n x` in #((((( 12794174832Sdes-n*) 12795228692Sdes case `echo 'xy\c'` in 12796174832Sdes *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12797228692Sdes xy) ECHO_C='\c';; 12798228692Sdes *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12799228692Sdes ECHO_T=' ';; 12800174832Sdes esac;; 12801174832Sdes*) 12802174832Sdes ECHO_N='-n';; 12803117610Sdesesac 12804117610Sdes 12805117610Sdesrm -f conf$$ conf$$.exe conf$$.file 12806174832Sdesif test -d conf$$.dir; then 12807174832Sdes rm -f conf$$.dir/conf$$.file 12808174832Sdeselse 12809174832Sdes rm -f conf$$.dir 12810228692Sdes mkdir conf$$.dir 2>/dev/null 12811174832Sdesfi 12812228692Sdesif (echo >conf$$.file) 2>/dev/null; then 12813228692Sdes if ln -s conf$$.file conf$$ 2>/dev/null; then 12814228692Sdes as_ln_s='ln -s' 12815228692Sdes # ... but there are two gotchas: 12816228692Sdes # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12817228692Sdes # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12818255376Sdes # In both cases, we have to default to `cp -pR'. 12819228692Sdes ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12820255376Sdes as_ln_s='cp -pR' 12821228692Sdes elif ln conf$$.file conf$$ 2>/dev/null; then 12822228692Sdes as_ln_s=ln 12823228692Sdes else 12824255376Sdes as_ln_s='cp -pR' 12825228692Sdes fi 12826117610Sdeselse 12827255376Sdes as_ln_s='cp -pR' 12828117610Sdesfi 12829174832Sdesrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12830174832Sdesrmdir conf$$.dir 2>/dev/null 12831117610Sdes 12832228692Sdes 12833228692Sdes# as_fn_mkdir_p 12834228692Sdes# ------------- 12835228692Sdes# Create "$as_dir" as a directory, including parents if necessary. 12836228692Sdesas_fn_mkdir_p () 12837228692Sdes{ 12838228692Sdes 12839228692Sdes case $as_dir in #( 12840228692Sdes -*) as_dir=./$as_dir;; 12841228692Sdes esac 12842228692Sdes test -d "$as_dir" || eval $as_mkdir_p || { 12843228692Sdes as_dirs= 12844228692Sdes while :; do 12845228692Sdes case $as_dir in #( 12846228692Sdes *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12847228692Sdes *) as_qdir=$as_dir;; 12848228692Sdes esac 12849228692Sdes as_dirs="'$as_qdir' $as_dirs" 12850228692Sdes as_dir=`$as_dirname -- "$as_dir" || 12851228692Sdes$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12852228692Sdes X"$as_dir" : 'X\(//\)[^/]' \| \ 12853228692Sdes X"$as_dir" : 'X\(//\)$' \| \ 12854228692Sdes X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12855228692Sdes$as_echo X"$as_dir" | 12856228692Sdes sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12857228692Sdes s//\1/ 12858228692Sdes q 12859228692Sdes } 12860228692Sdes /^X\(\/\/\)[^/].*/{ 12861228692Sdes s//\1/ 12862228692Sdes q 12863228692Sdes } 12864228692Sdes /^X\(\/\/\)$/{ 12865228692Sdes s//\1/ 12866228692Sdes q 12867228692Sdes } 12868228692Sdes /^X\(\/\).*/{ 12869228692Sdes s//\1/ 12870228692Sdes q 12871228692Sdes } 12872228692Sdes s/.*/./; q'` 12873228692Sdes test -d "$as_dir" && break 12874228692Sdes done 12875228692Sdes test -z "$as_dirs" || eval "mkdir $as_dirs" 12876228692Sdes } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12877228692Sdes 12878228692Sdes 12879228692Sdes} # as_fn_mkdir_p 12880141098Sdesif mkdir -p . 2>/dev/null; then 12881228692Sdes as_mkdir_p='mkdir -p "$as_dir"' 12882141098Sdeselse 12883141098Sdes test -d ./-p && rmdir ./-p 12884141098Sdes as_mkdir_p=false 12885141098Sdesfi 12886141098Sdes 12887117610Sdes 12888255376Sdes# as_fn_executable_p FILE 12889255376Sdes# ----------------------- 12890255376Sdes# Test if FILE is an executable regular file. 12891255376Sdesas_fn_executable_p () 12892255376Sdes{ 12893255376Sdes test -f "$1" && test -x "$1" 12894255376Sdes} # as_fn_executable_p 12895255376Sdesas_test_x='test -x' 12896255376Sdesas_executable_p=as_fn_executable_p 12897255376Sdes 12898117610Sdes# Sed expression to map a string onto a valid CPP name. 12899141098Sdesas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12900117610Sdes 12901117610Sdes# Sed expression to map a string onto a valid variable name. 12902141098Sdesas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12903117610Sdes 12904117610Sdes 12905117610Sdesexec 6>&1 12906228692Sdes## ----------------------------------- ## 12907228692Sdes## Main body of $CONFIG_STATUS script. ## 12908228692Sdes## ----------------------------------- ## 12909228692Sdes_ASEOF 12910228692Sdestest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12911117610Sdes 12912228692Sdescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12913228692Sdes# Save the log message, to keep $0 and so on meaningful, and to 12914117610Sdes# report actual input values of CONFIG_FILES etc. instead of their 12915174832Sdes# values after options handling. 12916174832Sdesac_log=" 12917271947SdesThis file was extended by OpenPAM $as_me 20140912, which was 12918255376Sdesgenerated by GNU Autoconf 2.69. Invocation command line was 12919117610Sdes 12920117610Sdes CONFIG_FILES = $CONFIG_FILES 12921117610Sdes CONFIG_HEADERS = $CONFIG_HEADERS 12922117610Sdes CONFIG_LINKS = $CONFIG_LINKS 12923117610Sdes CONFIG_COMMANDS = $CONFIG_COMMANDS 12924117610Sdes $ $0 $@ 12925117610Sdes 12926174832Sdeson `(hostname || uname -n) 2>/dev/null | sed 1q` 12927174832Sdes" 12928174832Sdes 12929117610Sdes_ACEOF 12930117610Sdes 12931228692Sdescase $ac_config_files in *" 12932228692Sdes"*) set x $ac_config_files; shift; ac_config_files=$*;; 12933228692Sdesesac 12934228692Sdes 12935228692Sdescase $ac_config_headers in *" 12936228692Sdes"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12937228692Sdesesac 12938228692Sdes 12939228692Sdes 12940228692Sdescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12941117610Sdes# Files that config.status was made for. 12942174832Sdesconfig_files="$ac_config_files" 12943174832Sdesconfig_headers="$ac_config_headers" 12944174832Sdesconfig_commands="$ac_config_commands" 12945117610Sdes 12946174832Sdes_ACEOF 12947117610Sdes 12948228692Sdescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12949117610Sdesac_cs_usage="\ 12950228692Sdes\`$as_me' instantiates files and other configuration actions 12951228692Sdesfrom templates according to the current configuration. Unless the files 12952228692Sdesand actions are specified as TAGs, all are instantiated by default. 12953117610Sdes 12954228692SdesUsage: $0 [OPTION]... [TAG]... 12955117610Sdes 12956117610Sdes -h, --help print this help, then exit 12957174832Sdes -V, --version print version number and configuration settings, then exit 12958228692Sdes --config print configuration, then exit 12959228692Sdes -q, --quiet, --silent 12960228692Sdes do not print progress messages 12961117610Sdes -d, --debug don't remove temporary files 12962117610Sdes --recheck update $as_me by reconfiguring in the same conditions 12963228692Sdes --file=FILE[:TEMPLATE] 12964228692Sdes instantiate the configuration file FILE 12965228692Sdes --header=FILE[:TEMPLATE] 12966228692Sdes instantiate the configuration header FILE 12967117610Sdes 12968117610SdesConfiguration files: 12969117610Sdes$config_files 12970117610Sdes 12971117610SdesConfiguration headers: 12972117610Sdes$config_headers 12973117610Sdes 12974117610SdesConfiguration commands: 12975117610Sdes$config_commands 12976117610Sdes 12977255376SdesReport bugs to <des@des.no>. 12978255376SdesOpenPAM home page: <http://www.openpam.org/>." 12979174832Sdes 12980117610Sdes_ACEOF 12981228692Sdescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12982228692Sdesac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12983117610Sdesac_cs_version="\\ 12984271947SdesOpenPAM config.status 20140912 12985255376Sdesconfigured by $0, generated by GNU Autoconf 2.69, 12986228692Sdes with options \\"\$ac_cs_config\\" 12987117610Sdes 12988255376SdesCopyright (C) 2012 Free Software Foundation, Inc. 12989117610SdesThis config.status script is free software; the Free Software Foundation 12990117610Sdesgives unlimited permission to copy, distribute and modify it." 12991174832Sdes 12992174832Sdesac_pwd='$ac_pwd' 12993174832Sdessrcdir='$srcdir' 12994174832SdesINSTALL='$INSTALL' 12995228692SdesMKDIR_P='$MKDIR_P' 12996228692SdesAWK='$AWK' 12997228692Sdestest -n "\$AWK" || AWK=awk 12998117610Sdes_ACEOF 12999117610Sdes 13000228692Sdescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13001228692Sdes# The default lists apply if the user does not specify any file. 13002117610Sdesac_need_defaults=: 13003117610Sdeswhile test $# != 0 13004117610Sdesdo 13005117610Sdes case $1 in 13006228692Sdes --*=?*) 13007174832Sdes ac_option=`expr "X$1" : 'X\([^=]*\)='` 13008174832Sdes ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13009141098Sdes ac_shift=: 13010117610Sdes ;; 13011228692Sdes --*=) 13012228692Sdes ac_option=`expr "X$1" : 'X\([^=]*\)='` 13013228692Sdes ac_optarg= 13014228692Sdes ac_shift=: 13015228692Sdes ;; 13016174832Sdes *) 13017141098Sdes ac_option=$1 13018141098Sdes ac_optarg=$2 13019141098Sdes ac_shift=shift 13020141098Sdes ;; 13021117610Sdes esac 13022117610Sdes 13023141098Sdes case $ac_option in 13024117610Sdes # Handling of the options. 13025117610Sdes -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13026141098Sdes ac_cs_recheck=: ;; 13027174832Sdes --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13028228692Sdes $as_echo "$ac_cs_version"; exit ;; 13029228692Sdes --config | --confi | --conf | --con | --co | --c ) 13030228692Sdes $as_echo "$ac_cs_config"; exit ;; 13031174832Sdes --debug | --debu | --deb | --de | --d | -d ) 13032117610Sdes debug=: ;; 13033117610Sdes --file | --fil | --fi | --f ) 13034141098Sdes $ac_shift 13035228692Sdes case $ac_optarg in 13036228692Sdes *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13037228692Sdes '') as_fn_error $? "missing file argument" ;; 13038228692Sdes esac 13039228692Sdes as_fn_append CONFIG_FILES " '$ac_optarg'" 13040117610Sdes ac_need_defaults=false;; 13041117610Sdes --header | --heade | --head | --hea ) 13042141098Sdes $ac_shift 13043228692Sdes case $ac_optarg in 13044228692Sdes *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13045228692Sdes esac 13046228692Sdes as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13047117610Sdes ac_need_defaults=false;; 13048174832Sdes --he | --h) 13049174832Sdes # Conflict between --help and --header 13050228692Sdes as_fn_error $? "ambiguous option: \`$1' 13051228692SdesTry \`$0 --help' for more information.";; 13052174832Sdes --help | --hel | -h ) 13053228692Sdes $as_echo "$ac_cs_usage"; exit ;; 13054141098Sdes -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13055141098Sdes | -silent | --silent | --silen | --sile | --sil | --si | --s) 13056141098Sdes ac_cs_silent=: ;; 13057117610Sdes 13058117610Sdes # This is an error. 13059228692Sdes -*) as_fn_error $? "unrecognized option: \`$1' 13060228692SdesTry \`$0 --help' for more information." ;; 13061117610Sdes 13062228692Sdes *) as_fn_append ac_config_targets " $1" 13063174832Sdes ac_need_defaults=false ;; 13064117610Sdes 13065117610Sdes esac 13066117610Sdes shift 13067117610Sdesdone 13068117610Sdes 13069141098Sdesac_configure_extra_args= 13070141098Sdes 13071141098Sdesif $ac_cs_silent; then 13072141098Sdes exec 6>/dev/null 13073141098Sdes ac_configure_extra_args="$ac_configure_extra_args --silent" 13074141098Sdesfi 13075141098Sdes 13076117610Sdes_ACEOF 13077228692Sdescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13078141098Sdesif \$ac_cs_recheck; then 13079255376Sdes set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13080228692Sdes shift 13081228692Sdes \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13082228692Sdes CONFIG_SHELL='$SHELL' 13083174832Sdes export CONFIG_SHELL 13084228692Sdes exec "\$@" 13085141098Sdesfi 13086117610Sdes 13087141098Sdes_ACEOF 13088228692Sdescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13089174832Sdesexec 5>>config.log 13090174832Sdes{ 13091174832Sdes echo 13092174832Sdes sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13093174832Sdes## Running $as_me. ## 13094174832Sdes_ASBOX 13095228692Sdes $as_echo "$ac_log" 13096174832Sdes} >&5 13097141098Sdes 13098174832Sdes_ACEOF 13099228692Sdescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13100117610Sdes# 13101174832Sdes# INIT-COMMANDS 13102117610Sdes# 13103141098SdesAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13104117610Sdes 13105228692Sdes 13106228692Sdes# The HP-UX ksh and POSIX shell print the target directory to stdout 13107228692Sdes# if CDPATH is set. 13108228692Sdes(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13109228692Sdes 13110228692Sdessed_quote_subst='$sed_quote_subst' 13111228692Sdesdouble_quote_subst='$double_quote_subst' 13112228692Sdesdelay_variable_subst='$delay_variable_subst' 13113228692Sdesmacro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13114228692Sdesmacro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13115228692Sdesenable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13116228692Sdesenable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13117228692Sdespic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13118228692Sdesenable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13119228692SdesSHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13120228692SdesECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13121236109SdesPATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13122228692Sdeshost_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13123228692Sdeshost='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13124228692Sdeshost_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13125228692Sdesbuild_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13126228692Sdesbuild='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13127228692Sdesbuild_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13128228692SdesSED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13129228692SdesXsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13130228692SdesGREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13131228692SdesEGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13132228692SdesFGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13133228692SdesLD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13134228692SdesNM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13135228692SdesLN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13136228692Sdesmax_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13137228692Sdesac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13138228692Sdesexeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13139228692Sdeslt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13140228692Sdeslt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13141228692Sdeslt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13142228692Sdeslt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13143228692Sdeslt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13144228692Sdesreload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13145228692Sdesreload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13146228692SdesOBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13147228692Sdesdeplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13148228692Sdesfile_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13149228692Sdesfile_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13150228692Sdeswant_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13151228692SdesDLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13152228692Sdessharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13153228692SdesAR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13154228692SdesAR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13155228692Sdesarchiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13156228692SdesSTRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13157228692SdesRANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13158228692Sdesold_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13159228692Sdesold_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13160228692Sdesold_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13161228692Sdeslock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13162228692SdesCC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13163228692SdesCFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13164228692Sdescompiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13165228692SdesGCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13166228692Sdeslt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13167228692Sdeslt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13168228692Sdeslt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13169228692Sdeslt_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"`' 13170228692Sdesnm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13171228692Sdeslt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13172228692Sdesobjdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13173228692SdesMAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13174228692Sdeslt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13175228692Sdeslt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13176228692Sdeslt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13177228692Sdeslt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13178228692Sdeslt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13179228692Sdesneed_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13180228692SdesMANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13181228692SdesDSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13182228692SdesNMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13183228692SdesLIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13184228692SdesOTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13185228692SdesOTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13186228692Sdeslibext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13187228692Sdesshrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13188228692Sdesextract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13189228692Sdesarchive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13190228692Sdesenable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13191228692Sdesexport_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13192228692Sdeswhole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13193228692Sdescompiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13194228692Sdesold_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13195228692Sdesold_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13196228692Sdesarchive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13197228692Sdesarchive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13198228692Sdesmodule_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13199228692Sdesmodule_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13200228692Sdeswith_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13201228692Sdesallow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13202228692Sdesno_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13203228692Sdeshardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13204228692Sdeshardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13205228692Sdeshardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13206228692Sdeshardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13207228692Sdeshardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13208228692Sdeshardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13209228692Sdeshardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13210228692Sdesinherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13211228692Sdeslink_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13212228692Sdesalways_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13213228692Sdesexport_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13214228692Sdesexclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13215228692Sdesinclude_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13216228692Sdesprelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13217228692Sdespostlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13218228692Sdesfile_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13219228692Sdesvariables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13220228692Sdesneed_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13221228692Sdesneed_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13222228692Sdesversion_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13223228692Sdesrunpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13224228692Sdesshlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13225228692Sdesshlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13226228692Sdeslibname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13227228692Sdeslibrary_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13228228692Sdessoname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13229228692Sdesinstall_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13230228692Sdespostinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13231228692Sdespostuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13232228692Sdesfinish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13233228692Sdesfinish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13234228692Sdeshardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13235228692Sdessys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13236228692Sdessys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 13237228692Sdeshardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13238228692Sdesenable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13239228692Sdesenable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13240228692Sdesenable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13241228692Sdesold_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13242228692Sdesstriplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13243228692Sdes 13244228692SdesLTCC='$LTCC' 13245228692SdesLTCFLAGS='$LTCFLAGS' 13246228692Sdescompiler='$compiler_DEFAULT' 13247228692Sdes 13248228692Sdes# A function that is used when there is no print builtin or printf. 13249228692Sdesfunc_fallback_echo () 13250228692Sdes{ 13251228692Sdes eval 'cat <<_LTECHO_EOF 13252228692Sdes\$1 13253228692Sdes_LTECHO_EOF' 13254228692Sdes} 13255228692Sdes 13256228692Sdes# Quote evaled strings. 13257228692Sdesfor var in SHELL \ 13258228692SdesECHO \ 13259236109SdesPATH_SEPARATOR \ 13260228692SdesSED \ 13261228692SdesGREP \ 13262228692SdesEGREP \ 13263228692SdesFGREP \ 13264228692SdesLD \ 13265228692SdesNM \ 13266228692SdesLN_S \ 13267228692Sdeslt_SP2NL \ 13268228692Sdeslt_NL2SP \ 13269228692Sdesreload_flag \ 13270228692SdesOBJDUMP \ 13271228692Sdesdeplibs_check_method \ 13272228692Sdesfile_magic_cmd \ 13273228692Sdesfile_magic_glob \ 13274228692Sdeswant_nocaseglob \ 13275228692SdesDLLTOOL \ 13276228692Sdessharedlib_from_linklib_cmd \ 13277228692SdesAR \ 13278228692SdesAR_FLAGS \ 13279228692Sdesarchiver_list_spec \ 13280228692SdesSTRIP \ 13281228692SdesRANLIB \ 13282228692SdesCC \ 13283228692SdesCFLAGS \ 13284228692Sdescompiler \ 13285228692Sdeslt_cv_sys_global_symbol_pipe \ 13286228692Sdeslt_cv_sys_global_symbol_to_cdecl \ 13287228692Sdeslt_cv_sys_global_symbol_to_c_name_address \ 13288228692Sdeslt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13289228692Sdesnm_file_list_spec \ 13290228692Sdeslt_prog_compiler_no_builtin_flag \ 13291228692Sdeslt_prog_compiler_pic \ 13292228692Sdeslt_prog_compiler_wl \ 13293228692Sdeslt_prog_compiler_static \ 13294228692Sdeslt_cv_prog_compiler_c_o \ 13295228692Sdesneed_locks \ 13296228692SdesMANIFEST_TOOL \ 13297228692SdesDSYMUTIL \ 13298228692SdesNMEDIT \ 13299228692SdesLIPO \ 13300228692SdesOTOOL \ 13301228692SdesOTOOL64 \ 13302228692Sdesshrext_cmds \ 13303228692Sdesexport_dynamic_flag_spec \ 13304228692Sdeswhole_archive_flag_spec \ 13305228692Sdescompiler_needs_object \ 13306228692Sdeswith_gnu_ld \ 13307228692Sdesallow_undefined_flag \ 13308228692Sdesno_undefined_flag \ 13309228692Sdeshardcode_libdir_flag_spec \ 13310228692Sdeshardcode_libdir_separator \ 13311228692Sdesexclude_expsyms \ 13312228692Sdesinclude_expsyms \ 13313228692Sdesfile_list_spec \ 13314228692Sdesvariables_saved_for_relink \ 13315228692Sdeslibname_spec \ 13316228692Sdeslibrary_names_spec \ 13317228692Sdessoname_spec \ 13318228692Sdesinstall_override_mode \ 13319228692Sdesfinish_eval \ 13320228692Sdesold_striplib \ 13321228692Sdesstriplib; do 13322228692Sdes case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13323228692Sdes *[\\\\\\\`\\"\\\$]*) 13324228692Sdes eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13325228692Sdes ;; 13326228692Sdes *) 13327228692Sdes eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13328228692Sdes ;; 13329228692Sdes esac 13330228692Sdesdone 13331228692Sdes 13332228692Sdes# Double-quote double-evaled strings. 13333228692Sdesfor var in reload_cmds \ 13334228692Sdesold_postinstall_cmds \ 13335228692Sdesold_postuninstall_cmds \ 13336228692Sdesold_archive_cmds \ 13337228692Sdesextract_expsyms_cmds \ 13338228692Sdesold_archive_from_new_cmds \ 13339228692Sdesold_archive_from_expsyms_cmds \ 13340228692Sdesarchive_cmds \ 13341228692Sdesarchive_expsym_cmds \ 13342228692Sdesmodule_cmds \ 13343228692Sdesmodule_expsym_cmds \ 13344228692Sdesexport_symbols_cmds \ 13345228692Sdesprelink_cmds \ 13346228692Sdespostlink_cmds \ 13347228692Sdespostinstall_cmds \ 13348228692Sdespostuninstall_cmds \ 13349228692Sdesfinish_cmds \ 13350228692Sdessys_lib_search_path_spec \ 13351228692Sdessys_lib_dlsearch_path_spec; do 13352228692Sdes case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13353228692Sdes *[\\\\\\\`\\"\\\$]*) 13354228692Sdes eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13355228692Sdes ;; 13356228692Sdes *) 13357228692Sdes eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13358228692Sdes ;; 13359228692Sdes esac 13360228692Sdesdone 13361228692Sdes 13362228692Sdesac_aux_dir='$ac_aux_dir' 13363228692Sdesxsi_shell='$xsi_shell' 13364228692Sdeslt_shell_append='$lt_shell_append' 13365228692Sdes 13366228692Sdes# See if we are running on zsh, and set the options which allow our 13367228692Sdes# commands through without removal of \ escapes INIT. 13368228692Sdesif test -n "\${ZSH_VERSION+set}" ; then 13369228692Sdes setopt NO_GLOB_SUBST 13370228692Sdesfi 13371228692Sdes 13372228692Sdes 13373228692Sdes PACKAGE='$PACKAGE' 13374228692Sdes VERSION='$VERSION' 13375228692Sdes TIMESTAMP='$TIMESTAMP' 13376228692Sdes RM='$RM' 13377228692Sdes ofile='$ofile' 13378228692Sdes 13379228692Sdes 13380228692Sdes 13381228692Sdes 13382117610Sdes_ACEOF 13383117610Sdes 13384228692Sdescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13385117610Sdes 13386174832Sdes# Handling of arguments. 13387117610Sdesfor ac_config_target in $ac_config_targets 13388117610Sdesdo 13389174832Sdes case $ac_config_target in 13390174832Sdes "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13391174832Sdes "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13392228692Sdes "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13393236109Sdes "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13394174832Sdes "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;; 13395236109Sdes "bin/openpam_dump_policy/Makefile") CONFIG_FILES="$CONFIG_FILES bin/openpam_dump_policy/Makefile" ;; 13396228692Sdes "bin/pamtest/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pamtest/Makefile" ;; 13397174832Sdes "bin/su/Makefile") CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;; 13398236109Sdes "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13399236109Sdes "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;; 13400174832Sdes "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 13401174832Sdes "include/security/Makefile") CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;; 13402174832Sdes "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 13403255376Sdes "lib/libpam/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libpam/Makefile" ;; 13404174832Sdes "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; 13405174832Sdes "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;; 13406174832Sdes "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;; 13407236109Sdes "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;; 13408236109Sdes "t/Makefile") CONFIG_FILES="$CONFIG_FILES t/Makefile" ;; 13409236109Sdes "pamgdb") CONFIG_FILES="$CONFIG_FILES pamgdb" ;; 13410255376Sdes "mkpkgng") CONFIG_FILES="$CONFIG_FILES mkpkgng" ;; 13411174832Sdes 13412228692Sdes *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13413117610Sdes esac 13414117610Sdesdone 13415117610Sdes 13416174832Sdes 13417117610Sdes# If the user did not use the arguments to specify the items to instantiate, 13418117610Sdes# then the envvar interface is used. Set only those that are not. 13419117610Sdes# We use the long form for the default assignment because of an extremely 13420117610Sdes# bizarre bug on SunOS 4.1.3. 13421117610Sdesif $ac_need_defaults; then 13422117610Sdes test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13423117610Sdes test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13424117610Sdes test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13425117610Sdesfi 13426117610Sdes 13427141098Sdes# Have a temporary directory for convenience. Make it in the build tree 13428174832Sdes# simply because there is no reason against having it here, and in addition, 13429141098Sdes# creating and moving files from /tmp can sometimes cause problems. 13430174832Sdes# Hook for its removal unless debugging. 13431174832Sdes# Note that there is a small window in which the directory will not be cleaned: 13432174832Sdes# after its creation but before its name has been assigned to `$tmp'. 13433117610Sdes$debug || 13434117610Sdes{ 13435228692Sdes tmp= ac_tmp= 13436174832Sdes trap 'exit_status=$? 13437228692Sdes : "${ac_tmp:=$tmp}" 13438228692Sdes { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13439174832Sdes' 0 13440228692Sdes trap 'as_fn_exit 1' 1 2 13 15 13441117610Sdes} 13442117610Sdes# Create a (secure) tmp directory for tmp files. 13443141098Sdes 13444117610Sdes{ 13445174832Sdes tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13446228692Sdes test -d "$tmp" 13447117610Sdes} || 13448117610Sdes{ 13449174832Sdes tmp=./conf$$-$RANDOM 13450174832Sdes (umask 077 && mkdir "$tmp") 13451228692Sdes} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13452228692Sdesac_tmp=$tmp 13453117610Sdes 13454228692Sdes# Set up the scripts for CONFIG_FILES section. 13455228692Sdes# No need to generate them if there are no CONFIG_FILES. 13456228692Sdes# This happens for instance with `./config.status config.h'. 13457174832Sdesif test -n "$CONFIG_FILES"; then 13458117610Sdes 13459228692Sdes 13460228692Sdesac_cr=`echo X | tr X '\015'` 13461228692Sdes# On cygwin, bash can eat \r inside `` if the user requested igncr. 13462228692Sdes# But we know of no other shell where ac_cr would be empty at this 13463228692Sdes# point, so we can use a bashism as a fallback. 13464228692Sdesif test "x$ac_cr" = x; then 13465228692Sdes eval ac_cr=\$\'\\r\' 13466228692Sdesfi 13467228692Sdesac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13468228692Sdesif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13469228692Sdes ac_cs_awk_cr='\\r' 13470228692Sdeselse 13471228692Sdes ac_cs_awk_cr=$ac_cr 13472228692Sdesfi 13473228692Sdes 13474228692Sdesecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 13475117610Sdes_ACEOF 13476117610Sdes 13477174832Sdes 13478228692Sdes{ 13479228692Sdes echo "cat >conf$$subs.awk <<_ACEOF" && 13480228692Sdes echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13481228692Sdes echo "_ACEOF" 13482228692Sdes} >conf$$subs.sh || 13483228692Sdes as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13484228692Sdesac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13485174832Sdesac_delim='%!_!# ' 13486174832Sdesfor ac_last_try in false false false false false :; do 13487228692Sdes . ./conf$$subs.sh || 13488228692Sdes as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13489174832Sdes 13490228692Sdes ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13491228692Sdes if test $ac_delim_n = $ac_delim_num; then 13492174832Sdes break 13493174832Sdes elif $ac_last_try; then 13494228692Sdes as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13495174832Sdes else 13496174832Sdes ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13497117610Sdes fi 13498174832Sdesdone 13499228692Sdesrm -f conf$$subs.sh 13500117610Sdes 13501228692Sdescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13502228692Sdescat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13503228692Sdes_ACEOF 13504228692Sdessed -n ' 13505228692Sdesh 13506228692Sdess/^/S["/; s/!.*/"]=/ 13507228692Sdesp 13508228692Sdesg 13509228692Sdess/^[^!]*!// 13510228692Sdes:repl 13511228692Sdest repl 13512228692Sdess/'"$ac_delim"'$// 13513228692Sdest delim 13514228692Sdes:nl 13515228692Sdesh 13516228692Sdess/\(.\{148\}\)..*/\1/ 13517228692Sdest more1 13518228692Sdess/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13519228692Sdesp 13520228692Sdesn 13521228692Sdesb repl 13522228692Sdes:more1 13523228692Sdess/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13524228692Sdesp 13525228692Sdesg 13526228692Sdess/.\{148\}// 13527228692Sdest nl 13528228692Sdes:delim 13529228692Sdesh 13530228692Sdess/\(.\{148\}\)..*/\1/ 13531228692Sdest more2 13532228692Sdess/["\\]/\\&/g; s/^/"/; s/$/"/ 13533228692Sdesp 13534228692Sdesb 13535228692Sdes:more2 13536228692Sdess/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13537228692Sdesp 13538228692Sdesg 13539228692Sdess/.\{148\}// 13540228692Sdest delim 13541228692Sdes' <conf$$subs.awk | sed ' 13542228692Sdes/^[^""]/{ 13543228692Sdes N 13544228692Sdes s/\n// 13545228692Sdes} 13546228692Sdes' >>$CONFIG_STATUS || ac_write_fail=1 13547228692Sdesrm -f conf$$subs.awk 13548228692Sdescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13549228692Sdes_ACAWK 13550228692Sdescat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13551228692Sdes for (key in S) S_is_set[key] = 1 13552228692Sdes FS = "" 13553174832Sdes 13554228692Sdes} 13555228692Sdes{ 13556228692Sdes line = $ 0 13557228692Sdes nfields = split(line, field, "@") 13558228692Sdes substed = 0 13559228692Sdes len = length(field[1]) 13560228692Sdes for (i = 2; i < nfields; i++) { 13561228692Sdes key = field[i] 13562228692Sdes keylen = length(key) 13563228692Sdes if (S_is_set[key]) { 13564228692Sdes value = S[key] 13565228692Sdes line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13566228692Sdes len += length(value) + length(field[++i]) 13567228692Sdes substed = 1 13568228692Sdes } else 13569228692Sdes len += 1 + keylen 13570228692Sdes } 13571228692Sdes 13572228692Sdes print line 13573228692Sdes} 13574228692Sdes 13575228692Sdes_ACAWK 13576117610Sdes_ACEOF 13577228692Sdescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13578228692Sdesif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13579228692Sdes sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13580228692Sdeselse 13581228692Sdes cat 13582228692Sdesfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13583228692Sdes || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13584174832Sdes_ACEOF 13585174832Sdes 13586228692Sdes# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13587228692Sdes# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13588228692Sdes# trailing colons and then remove the whole line if VPATH becomes empty 13589228692Sdes# (actually we leave an empty line to preserve line numbers). 13590228692Sdesif test "x$srcdir" = x.; then 13591228692Sdes ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13592228692Sdesh 13593228692Sdess/// 13594228692Sdess/^/:/ 13595228692Sdess/[ ]*$/:/ 13596228692Sdess/:\$(srcdir):/:/g 13597228692Sdess/:\${srcdir}:/:/g 13598228692Sdess/:@srcdir@:/:/g 13599228692Sdess/^:*// 13600228692Sdess/:*$// 13601228692Sdesx 13602228692Sdess/\(=[ ]*\).*/\1/ 13603228692SdesG 13604228692Sdess/\n// 13605228692Sdess/^[^=]*=[ ]*$// 13606228692Sdes}' 13607228692Sdesfi 13608174832Sdes 13609228692Sdescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13610228692Sdesfi # test -n "$CONFIG_FILES" 13611228692Sdes 13612228692Sdes# Set up the scripts for CONFIG_HEADERS section. 13613228692Sdes# No need to generate them if there are no CONFIG_HEADERS. 13614228692Sdes# This happens for instance with `./config.status Makefile'. 13615228692Sdesif test -n "$CONFIG_HEADERS"; then 13616228692Sdescat >"$ac_tmp/defines.awk" <<\_ACAWK || 13617228692SdesBEGIN { 13618174832Sdes_ACEOF 13619174832Sdes 13620228692Sdes# Transform confdefs.h into an awk script `defines.awk', embedded as 13621228692Sdes# here-document in config.status, that substitutes the proper values into 13622228692Sdes# config.h.in to produce config.h. 13623228692Sdes 13624228692Sdes# Create a delimiter string that does not exist in confdefs.h, to ease 13625228692Sdes# handling of long lines. 13626228692Sdesac_delim='%!_!# ' 13627228692Sdesfor ac_last_try in false false :; do 13628228692Sdes ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13629228692Sdes if test -z "$ac_tt"; then 13630174832Sdes break 13631174832Sdes elif $ac_last_try; then 13632228692Sdes as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13633174832Sdes else 13634174832Sdes ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13635174832Sdes fi 13636174832Sdesdone 13637174832Sdes 13638228692Sdes# For the awk script, D is an array of macro values keyed by name, 13639228692Sdes# likewise P contains macro parameters if any. Preserve backslash 13640228692Sdes# newline sequences. 13641174832Sdes 13642228692Sdesac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13643228692Sdessed -n ' 13644228692Sdess/.\{148\}/&'"$ac_delim"'/g 13645228692Sdest rset 13646228692Sdes:rset 13647228692Sdess/^[ ]*#[ ]*define[ ][ ]*/ / 13648228692Sdest def 13649228692Sdesd 13650228692Sdes:def 13651228692Sdess/\\$// 13652228692Sdest bsnl 13653228692Sdess/["\\]/\\&/g 13654228692Sdess/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13655228692SdesD["\1"]=" \3"/p 13656228692Sdess/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13657228692Sdesd 13658228692Sdes:bsnl 13659228692Sdess/["\\]/\\&/g 13660228692Sdess/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13661228692SdesD["\1"]=" \3\\\\\\n"\\/p 13662228692Sdest cont 13663228692Sdess/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13664228692Sdest cont 13665228692Sdesd 13666228692Sdes:cont 13667228692Sdesn 13668228692Sdess/.\{148\}/&'"$ac_delim"'/g 13669228692Sdest clear 13670228692Sdes:clear 13671228692Sdess/\\$// 13672228692Sdest bsnlc 13673228692Sdess/["\\]/\\&/g; s/^/"/; s/$/"/p 13674228692Sdesd 13675228692Sdes:bsnlc 13676228692Sdess/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13677228692Sdesb cont 13678228692Sdes' <confdefs.h | sed ' 13679228692Sdess/'"$ac_delim"'/"\\\ 13680228692Sdes"/g' >>$CONFIG_STATUS || ac_write_fail=1 13681228692Sdes 13682228692Sdescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13683228692Sdes for (key in D) D_is_set[key] = 1 13684228692Sdes FS = "" 13685228692Sdes} 13686228692Sdes/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13687228692Sdes line = \$ 0 13688228692Sdes split(line, arg, " ") 13689228692Sdes if (arg[1] == "#") { 13690228692Sdes defundef = arg[2] 13691228692Sdes mac1 = arg[3] 13692228692Sdes } else { 13693228692Sdes defundef = substr(arg[1], 2) 13694228692Sdes mac1 = arg[2] 13695228692Sdes } 13696228692Sdes split(mac1, mac2, "(") #) 13697228692Sdes macro = mac2[1] 13698228692Sdes prefix = substr(line, 1, index(line, defundef) - 1) 13699228692Sdes if (D_is_set[macro]) { 13700228692Sdes # Preserve the white space surrounding the "#". 13701228692Sdes print prefix "define", macro P[macro] D[macro] 13702228692Sdes next 13703228692Sdes } else { 13704228692Sdes # Replace #undef with comments. This is necessary, for example, 13705228692Sdes # in the case of _POSIX_SOURCE, which is predefined and required 13706228692Sdes # on some systems where configure will not decide to define it. 13707228692Sdes if (defundef == "undef") { 13708228692Sdes print "/*", prefix defundef, macro, "*/" 13709228692Sdes next 13710228692Sdes } 13711228692Sdes } 13712228692Sdes} 13713228692Sdes{ print } 13714228692Sdes_ACAWK 13715174832Sdes_ACEOF 13716228692Sdescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13717228692Sdes as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13718228692Sdesfi # test -n "$CONFIG_HEADERS" 13719174832Sdes 13720174832Sdes 13721228692Sdeseval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13722228692Sdesshift 13723228692Sdesfor ac_tag 13724174832Sdesdo 13725174832Sdes case $ac_tag in 13726174832Sdes :[FHLC]) ac_mode=$ac_tag; continue;; 13727117610Sdes esac 13728174832Sdes case $ac_mode$ac_tag in 13729174832Sdes :[FHL]*:*);; 13730228692Sdes :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13731174832Sdes :[FH]-) ac_tag=-:-;; 13732174832Sdes :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13733174832Sdes esac 13734174832Sdes ac_save_IFS=$IFS 13735174832Sdes IFS=: 13736174832Sdes set x $ac_tag 13737174832Sdes IFS=$ac_save_IFS 13738174832Sdes shift 13739174832Sdes ac_file=$1 13740174832Sdes shift 13741117610Sdes 13742174832Sdes case $ac_mode in 13743174832Sdes :L) ac_source=$1;; 13744174832Sdes :[FH]) 13745174832Sdes ac_file_inputs= 13746174832Sdes for ac_f 13747174832Sdes do 13748174832Sdes case $ac_f in 13749228692Sdes -) ac_f="$ac_tmp/stdin";; 13750174832Sdes *) # Look for the file first in the build tree, then in the source tree 13751174832Sdes # (if the path is not absolute). The absolute path cannot be DOS-style, 13752174832Sdes # because $ac_f cannot contain `:'. 13753174832Sdes test -f "$ac_f" || 13754174832Sdes case $ac_f in 13755174832Sdes [\\/$]*) false;; 13756174832Sdes *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13757174832Sdes esac || 13758228692Sdes as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13759174832Sdes esac 13760228692Sdes case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13761228692Sdes as_fn_append ac_file_inputs " '$ac_f'" 13762174832Sdes done 13763174832Sdes 13764174832Sdes # Let's still pretend it is `configure' which instantiates (i.e., don't 13765174832Sdes # use $as_me), people would be surprised to read: 13766174832Sdes # /* config.h. Generated by config.status. */ 13767228692Sdes configure_input='Generated from '` 13768228692Sdes $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13769228692Sdes `' by configure.' 13770174832Sdes if test x"$ac_file" != x-; then 13771174832Sdes configure_input="$ac_file. $configure_input" 13772228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13773228692Sdes$as_echo "$as_me: creating $ac_file" >&6;} 13774174832Sdes fi 13775228692Sdes # Neutralize special characters interpreted by sed in replacement strings. 13776228692Sdes case $configure_input in #( 13777228692Sdes *\&* | *\|* | *\\* ) 13778228692Sdes ac_sed_conf_input=`$as_echo "$configure_input" | 13779228692Sdes sed 's/[\\\\&|]/\\\\&/g'`;; #( 13780228692Sdes *) ac_sed_conf_input=$configure_input;; 13781228692Sdes esac 13782174832Sdes 13783174832Sdes case $ac_tag in 13784228692Sdes *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13785228692Sdes || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13786174832Sdes esac 13787174832Sdes ;; 13788174832Sdes esac 13789174832Sdes 13790174832Sdes ac_dir=`$as_dirname -- "$ac_file" || 13791117610Sdes$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13792141098Sdes X"$ac_file" : 'X\(//\)[^/]' \| \ 13793141098Sdes X"$ac_file" : 'X\(//\)$' \| \ 13794174832Sdes X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13795228692Sdes$as_echo X"$ac_file" | 13796174832Sdes sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13797174832Sdes s//\1/ 13798174832Sdes q 13799174832Sdes } 13800174832Sdes /^X\(\/\/\)[^/].*/{ 13801174832Sdes s//\1/ 13802174832Sdes q 13803174832Sdes } 13804174832Sdes /^X\(\/\/\)$/{ 13805174832Sdes s//\1/ 13806174832Sdes q 13807174832Sdes } 13808174832Sdes /^X\(\/\).*/{ 13809174832Sdes s//\1/ 13810174832Sdes q 13811174832Sdes } 13812174832Sdes s/.*/./; q'` 13813228692Sdes as_dir="$ac_dir"; as_fn_mkdir_p 13814117610Sdes ac_builddir=. 13815117610Sdes 13816174832Sdescase "$ac_dir" in 13817174832Sdes.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13818174832Sdes*) 13819228692Sdes ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13820174832Sdes # A ".." for each directory in $ac_dir_suffix. 13821228692Sdes ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13822174832Sdes case $ac_top_builddir_sub in 13823174832Sdes "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13824174832Sdes *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13825174832Sdes esac ;; 13826174832Sdesesac 13827174832Sdesac_abs_top_builddir=$ac_pwd 13828174832Sdesac_abs_builddir=$ac_pwd$ac_dir_suffix 13829174832Sdes# for backward compatibility: 13830174832Sdesac_top_builddir=$ac_top_build_prefix 13831117610Sdes 13832117610Sdescase $srcdir in 13833174832Sdes .) # We are building in place. 13834117610Sdes ac_srcdir=. 13835174832Sdes ac_top_srcdir=$ac_top_builddir_sub 13836174832Sdes ac_abs_top_srcdir=$ac_pwd ;; 13837174832Sdes [\\/]* | ?:[\\/]* ) # Absolute name. 13838117610Sdes ac_srcdir=$srcdir$ac_dir_suffix; 13839174832Sdes ac_top_srcdir=$srcdir 13840174832Sdes ac_abs_top_srcdir=$srcdir ;; 13841174832Sdes *) # Relative name. 13842174832Sdes ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13843174832Sdes ac_top_srcdir=$ac_top_build_prefix$srcdir 13844174832Sdes ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13845117610Sdesesac 13846174832Sdesac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13847117610Sdes 13848117610Sdes 13849174832Sdes case $ac_mode in 13850174832Sdes :F) 13851174832Sdes # 13852174832Sdes # CONFIG_FILE 13853174832Sdes # 13854141098Sdes 13855117610Sdes case $INSTALL in 13856117610Sdes [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13857174832Sdes *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13858117610Sdes esac 13859228692Sdes ac_MKDIR_P=$MKDIR_P 13860228692Sdes case $MKDIR_P in 13861228692Sdes [\\/$]* | ?:[\\/]* ) ;; 13862228692Sdes */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13863228692Sdes esac 13864174832Sdes_ACEOF 13865117610Sdes 13866228692Sdescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13867174832Sdes# If the template does not know about datarootdir, expand it. 13868174832Sdes# FIXME: This hack should be removed a few years after 2.60. 13869174832Sdesac_datarootdir_hack=; ac_datarootdir_seen= 13870228692Sdesac_sed_dataroot=' 13871228692Sdes/datarootdir/ { 13872174832Sdes p 13873174832Sdes q 13874174832Sdes} 13875174832Sdes/@datadir@/p 13876174832Sdes/@docdir@/p 13877174832Sdes/@infodir@/p 13878174832Sdes/@localedir@/p 13879228692Sdes/@mandir@/p' 13880228692Sdescase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13881174832Sdes*datarootdir*) ac_datarootdir_seen=yes;; 13882174832Sdes*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13883228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13884228692Sdes$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13885117610Sdes_ACEOF 13886228692Sdescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13887174832Sdes ac_datarootdir_hack=' 13888174832Sdes s&@datadir@&$datadir&g 13889174832Sdes s&@docdir@&$docdir&g 13890174832Sdes s&@infodir@&$infodir&g 13891174832Sdes s&@localedir@&$localedir&g 13892174832Sdes s&@mandir@&$mandir&g 13893228692Sdes s&\\\${datarootdir}&$datarootdir&g' ;; 13894174832Sdesesac 13895174832Sdes_ACEOF 13896174832Sdes 13897174832Sdes# Neutralize VPATH when `$srcdir' = `.'. 13898174832Sdes# Shell code in configure.ac might set extrasub. 13899174832Sdes# FIXME: do we really want to maintain this feature? 13900228692Sdescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13901228692Sdesac_sed_extra="$ac_vpsub 13902117610Sdes$extrasub 13903117610Sdes_ACEOF 13904228692Sdescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13905117610Sdes:t 13906117610Sdes/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13907228692Sdess|@configure_input@|$ac_sed_conf_input|;t t 13908174832Sdess&@top_builddir@&$ac_top_builddir_sub&;t t 13909228692Sdess&@top_build_prefix@&$ac_top_build_prefix&;t t 13910174832Sdess&@srcdir@&$ac_srcdir&;t t 13911174832Sdess&@abs_srcdir@&$ac_abs_srcdir&;t t 13912174832Sdess&@top_srcdir@&$ac_top_srcdir&;t t 13913174832Sdess&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13914174832Sdess&@builddir@&$ac_builddir&;t t 13915174832Sdess&@abs_builddir@&$ac_abs_builddir&;t t 13916174832Sdess&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13917174832Sdess&@INSTALL@&$ac_INSTALL&;t t 13918228692Sdess&@MKDIR_P@&$ac_MKDIR_P&;t t 13919174832Sdes$ac_datarootdir_hack 13920228692Sdes" 13921228692Sdeseval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13922228692Sdes >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13923117610Sdes 13924174832Sdestest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13925228692Sdes { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13926228692Sdes { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13927228692Sdes "$ac_tmp/out"`; test -z "$ac_out"; } && 13928228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13929228692Sdeswhich seems to be undefined. Please make sure it is defined" >&5 13930228692Sdes$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13931228692Sdeswhich seems to be undefined. Please make sure it is defined" >&2;} 13932117610Sdes 13933228692Sdes rm -f "$ac_tmp/stdin" 13934117610Sdes case $ac_file in 13935228692Sdes -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13936228692Sdes *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13937228692Sdes esac \ 13938228692Sdes || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13939174832Sdes ;; 13940174832Sdes :H) 13941174832Sdes # 13942174832Sdes # CONFIG_HEADER 13943174832Sdes # 13944117610Sdes if test x"$ac_file" != x-; then 13945228692Sdes { 13946228692Sdes $as_echo "/* $configure_input */" \ 13947228692Sdes && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13948228692Sdes } >"$ac_tmp/config.h" \ 13949228692Sdes || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13950228692Sdes if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13951228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13952228692Sdes$as_echo "$as_me: $ac_file is unchanged" >&6;} 13953117610Sdes else 13954228692Sdes rm -f "$ac_file" 13955228692Sdes mv "$ac_tmp/config.h" "$ac_file" \ 13956228692Sdes || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13957117610Sdes fi 13958117610Sdes else 13959228692Sdes $as_echo "/* $configure_input */" \ 13960228692Sdes && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13961228692Sdes || as_fn_error $? "could not create -" "$LINENO" 5 13962117610Sdes fi 13963228692Sdes# Compute "$ac_file"'s index in $config_headers. 13964228692Sdes_am_arg="$ac_file" 13965141098Sdes_am_stamp_count=1 13966141098Sdesfor _am_header in $config_headers :; do 13967141098Sdes case $_am_header in 13968228692Sdes $_am_arg | $_am_arg:* ) 13969141098Sdes break ;; 13970141098Sdes * ) 13971141098Sdes _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13972117610Sdes esac 13973117610Sdesdone 13974228692Sdesecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13975228692Sdes$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13976228692Sdes X"$_am_arg" : 'X\(//\)[^/]' \| \ 13977228692Sdes X"$_am_arg" : 'X\(//\)$' \| \ 13978228692Sdes X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13979228692Sdes$as_echo X"$_am_arg" | 13980174832Sdes sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13981174832Sdes s//\1/ 13982174832Sdes q 13983174832Sdes } 13984174832Sdes /^X\(\/\/\)[^/].*/{ 13985174832Sdes s//\1/ 13986174832Sdes q 13987174832Sdes } 13988174832Sdes /^X\(\/\/\)$/{ 13989174832Sdes s//\1/ 13990174832Sdes q 13991174832Sdes } 13992174832Sdes /^X\(\/\).*/{ 13993174832Sdes s//\1/ 13994174832Sdes q 13995174832Sdes } 13996174832Sdes s/.*/./; q'`/stamp-h$_am_stamp_count 13997174832Sdes ;; 13998117610Sdes 13999228692Sdes :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14000228692Sdes$as_echo "$as_me: executing $ac_file commands" >&6;} 14001174832Sdes ;; 14002174832Sdes esac 14003141098Sdes 14004117610Sdes 14005174832Sdes case $ac_file$ac_mode in 14006228692Sdes "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14007255376Sdes # Older Autoconf quotes --file arguments for eval, but not when files 14008228692Sdes # are listed without --file. Let's play safe and only enable the eval 14009228692Sdes # if we detect the quoting. 14010228692Sdes case $CONFIG_FILES in 14011228692Sdes *\'*) eval set x "$CONFIG_FILES" ;; 14012228692Sdes *) set x $CONFIG_FILES ;; 14013228692Sdes esac 14014228692Sdes shift 14015228692Sdes for mf 14016228692Sdes do 14017228692Sdes # Strip MF so we end up with the name of the file. 14018228692Sdes mf=`echo "$mf" | sed -e 's/:.*$//'` 14019228692Sdes # Check whether this is an Automake generated Makefile or not. 14020255376Sdes # We used to match only the files named 'Makefile.in', but 14021228692Sdes # some people rename them; so instead we look at the file content. 14022228692Sdes # Grep'ing the first line is not enough: some people post-process 14023228692Sdes # each Makefile.in and add a new line on top of each file to say so. 14024228692Sdes # Grep'ing the whole file is not good either: AIX grep has a line 14025228692Sdes # limit of 2048, but all sed's we know have understand at least 4000. 14026228692Sdes if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14027228692Sdes dirpart=`$as_dirname -- "$mf" || 14028141098Sdes$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14029141098Sdes X"$mf" : 'X\(//\)[^/]' \| \ 14030141098Sdes X"$mf" : 'X\(//\)$' \| \ 14031174832Sdes X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14032228692Sdes$as_echo X"$mf" | 14033174832Sdes sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14034174832Sdes s//\1/ 14035174832Sdes q 14036174832Sdes } 14037174832Sdes /^X\(\/\/\)[^/].*/{ 14038174832Sdes s//\1/ 14039174832Sdes q 14040174832Sdes } 14041174832Sdes /^X\(\/\/\)$/{ 14042174832Sdes s//\1/ 14043174832Sdes q 14044174832Sdes } 14045174832Sdes /^X\(\/\).*/{ 14046174832Sdes s//\1/ 14047174832Sdes q 14048174832Sdes } 14049174832Sdes s/.*/./; q'` 14050228692Sdes else 14051228692Sdes continue 14052228692Sdes fi 14053228692Sdes # Extract the definition of DEPDIR, am__include, and am__quote 14054255376Sdes # from the Makefile without running 'make'. 14055228692Sdes DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14056228692Sdes test -z "$DEPDIR" && continue 14057228692Sdes am__include=`sed -n 's/^am__include = //p' < "$mf"` 14058255376Sdes test -z "$am__include" && continue 14059228692Sdes am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14060228692Sdes # Find all dependency output files, they are included files with 14061228692Sdes # $(DEPDIR) in their names. We invoke sed twice because it is the 14062228692Sdes # simplest approach to changing $(DEPDIR) to its actual value in the 14063228692Sdes # expansion. 14064228692Sdes for file in `sed -n " 14065228692Sdes s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14066255376Sdes sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 14067228692Sdes # Make sure the directory exists. 14068228692Sdes test -f "$dirpart/$file" && continue 14069228692Sdes fdir=`$as_dirname -- "$file" || 14070141098Sdes$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14071141098Sdes X"$file" : 'X\(//\)[^/]' \| \ 14072141098Sdes X"$file" : 'X\(//\)$' \| \ 14073174832Sdes X"$file" : 'X\(/\)' \| . 2>/dev/null || 14074228692Sdes$as_echo X"$file" | 14075174832Sdes sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14076174832Sdes s//\1/ 14077174832Sdes q 14078174832Sdes } 14079174832Sdes /^X\(\/\/\)[^/].*/{ 14080174832Sdes s//\1/ 14081174832Sdes q 14082174832Sdes } 14083174832Sdes /^X\(\/\/\)$/{ 14084174832Sdes s//\1/ 14085174832Sdes q 14086174832Sdes } 14087174832Sdes /^X\(\/\).*/{ 14088174832Sdes s//\1/ 14089174832Sdes q 14090174832Sdes } 14091174832Sdes s/.*/./; q'` 14092228692Sdes as_dir=$dirpart/$fdir; as_fn_mkdir_p 14093228692Sdes # echo "creating $dirpart/$file" 14094228692Sdes echo '# dummy' > "$dirpart/$file" 14095141098Sdes done 14096117610Sdes done 14097228692Sdes} 14098117610Sdes ;; 14099228692Sdes "libtool":C) 14100174832Sdes 14101228692Sdes # See if we are running on zsh, and set the options which allow our 14102228692Sdes # commands through without removal of \ escapes. 14103228692Sdes if test -n "${ZSH_VERSION+set}" ; then 14104228692Sdes setopt NO_GLOB_SUBST 14105228692Sdes fi 14106228692Sdes 14107228692Sdes cfgfile="${ofile}T" 14108228692Sdes trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14109228692Sdes $RM "$cfgfile" 14110228692Sdes 14111228692Sdes cat <<_LT_EOF >> "$cfgfile" 14112228692Sdes#! $SHELL 14113228692Sdes 14114228692Sdes# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14115228692Sdes# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14116228692Sdes# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14117228692Sdes# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14118228692Sdes# 14119228692Sdes# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14120236109Sdes# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 14121236109Sdes# Foundation, Inc. 14122228692Sdes# Written by Gordon Matzigkeit, 1996 14123228692Sdes# 14124228692Sdes# This file is part of GNU Libtool. 14125228692Sdes# 14126228692Sdes# GNU Libtool is free software; you can redistribute it and/or 14127228692Sdes# modify it under the terms of the GNU General Public License as 14128228692Sdes# published by the Free Software Foundation; either version 2 of 14129228692Sdes# the License, or (at your option) any later version. 14130228692Sdes# 14131228692Sdes# As a special exception to the GNU General Public License, 14132228692Sdes# if you distribute this file as part of a program or library that 14133228692Sdes# is built using GNU Libtool, you may include this file under the 14134228692Sdes# same distribution terms that you use for the rest of that program. 14135228692Sdes# 14136228692Sdes# GNU Libtool is distributed in the hope that it will be useful, 14137228692Sdes# but WITHOUT ANY WARRANTY; without even the implied warranty of 14138228692Sdes# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14139228692Sdes# GNU General Public License for more details. 14140228692Sdes# 14141228692Sdes# You should have received a copy of the GNU General Public License 14142228692Sdes# along with GNU Libtool; see the file COPYING. If not, a copy 14143228692Sdes# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14144228692Sdes# obtained by writing to the Free Software Foundation, Inc., 14145228692Sdes# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14146228692Sdes 14147228692Sdes 14148228692Sdes# The names of the tagged configurations supported by this script. 14149228692Sdesavailable_tags="" 14150228692Sdes 14151228692Sdes# ### BEGIN LIBTOOL CONFIG 14152228692Sdes 14153228692Sdes# Which release of libtool.m4 was used? 14154228692Sdesmacro_version=$macro_version 14155228692Sdesmacro_revision=$macro_revision 14156228692Sdes 14157228692Sdes# Whether or not to build static libraries. 14158228692Sdesbuild_old_libs=$enable_static 14159228692Sdes 14160228692Sdes# Whether or not to build shared libraries. 14161228692Sdesbuild_libtool_libs=$enable_shared 14162228692Sdes 14163228692Sdes# What type of objects to build. 14164228692Sdespic_mode=$pic_mode 14165228692Sdes 14166228692Sdes# Whether or not to optimize for fast installation. 14167228692Sdesfast_install=$enable_fast_install 14168228692Sdes 14169228692Sdes# Shell to use when invoking shell scripts. 14170228692SdesSHELL=$lt_SHELL 14171228692Sdes 14172228692Sdes# An echo program that protects backslashes. 14173228692SdesECHO=$lt_ECHO 14174228692Sdes 14175236109Sdes# The PATH separator for the build system. 14176236109SdesPATH_SEPARATOR=$lt_PATH_SEPARATOR 14177236109Sdes 14178228692Sdes# The host system. 14179228692Sdeshost_alias=$host_alias 14180228692Sdeshost=$host 14181228692Sdeshost_os=$host_os 14182228692Sdes 14183228692Sdes# The build system. 14184228692Sdesbuild_alias=$build_alias 14185228692Sdesbuild=$build 14186228692Sdesbuild_os=$build_os 14187228692Sdes 14188228692Sdes# A sed program that does not truncate output. 14189228692SdesSED=$lt_SED 14190228692Sdes 14191228692Sdes# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14192228692SdesXsed="\$SED -e 1s/^X//" 14193228692Sdes 14194228692Sdes# A grep program that handles long lines. 14195228692SdesGREP=$lt_GREP 14196228692Sdes 14197228692Sdes# An ERE matcher. 14198228692SdesEGREP=$lt_EGREP 14199228692Sdes 14200228692Sdes# A literal string matcher. 14201228692SdesFGREP=$lt_FGREP 14202228692Sdes 14203228692Sdes# A BSD- or MS-compatible name lister. 14204228692SdesNM=$lt_NM 14205228692Sdes 14206228692Sdes# Whether we need soft or hard links. 14207228692SdesLN_S=$lt_LN_S 14208228692Sdes 14209228692Sdes# What is the maximum length of a command? 14210228692Sdesmax_cmd_len=$max_cmd_len 14211228692Sdes 14212228692Sdes# Object file suffix (normally "o"). 14213228692Sdesobjext=$ac_objext 14214228692Sdes 14215228692Sdes# Executable file suffix (normally ""). 14216228692Sdesexeext=$exeext 14217228692Sdes 14218228692Sdes# whether the shell understands "unset". 14219228692Sdeslt_unset=$lt_unset 14220228692Sdes 14221228692Sdes# turn spaces into newlines. 14222228692SdesSP2NL=$lt_lt_SP2NL 14223228692Sdes 14224228692Sdes# turn newlines into spaces. 14225228692SdesNL2SP=$lt_lt_NL2SP 14226228692Sdes 14227228692Sdes# convert \$build file names to \$host format. 14228228692Sdesto_host_file_cmd=$lt_cv_to_host_file_cmd 14229228692Sdes 14230228692Sdes# convert \$build files to toolchain format. 14231228692Sdesto_tool_file_cmd=$lt_cv_to_tool_file_cmd 14232228692Sdes 14233228692Sdes# An object symbol dumper. 14234228692SdesOBJDUMP=$lt_OBJDUMP 14235228692Sdes 14236228692Sdes# Method to check whether dependent libraries are shared objects. 14237228692Sdesdeplibs_check_method=$lt_deplibs_check_method 14238228692Sdes 14239228692Sdes# Command to use when deplibs_check_method = "file_magic". 14240228692Sdesfile_magic_cmd=$lt_file_magic_cmd 14241228692Sdes 14242228692Sdes# How to find potential files when deplibs_check_method = "file_magic". 14243228692Sdesfile_magic_glob=$lt_file_magic_glob 14244228692Sdes 14245228692Sdes# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14246228692Sdeswant_nocaseglob=$lt_want_nocaseglob 14247228692Sdes 14248228692Sdes# DLL creation program. 14249228692SdesDLLTOOL=$lt_DLLTOOL 14250228692Sdes 14251228692Sdes# Command to associate shared and link libraries. 14252228692Sdessharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14253228692Sdes 14254228692Sdes# The archiver. 14255228692SdesAR=$lt_AR 14256228692Sdes 14257228692Sdes# Flags to create an archive. 14258228692SdesAR_FLAGS=$lt_AR_FLAGS 14259228692Sdes 14260228692Sdes# How to feed a file listing to the archiver. 14261228692Sdesarchiver_list_spec=$lt_archiver_list_spec 14262228692Sdes 14263228692Sdes# A symbol stripping program. 14264228692SdesSTRIP=$lt_STRIP 14265228692Sdes 14266228692Sdes# Commands used to install an old-style archive. 14267228692SdesRANLIB=$lt_RANLIB 14268228692Sdesold_postinstall_cmds=$lt_old_postinstall_cmds 14269228692Sdesold_postuninstall_cmds=$lt_old_postuninstall_cmds 14270228692Sdes 14271228692Sdes# Whether to use a lock for old archive extraction. 14272228692Sdeslock_old_archive_extraction=$lock_old_archive_extraction 14273228692Sdes 14274228692Sdes# A C compiler. 14275228692SdesLTCC=$lt_CC 14276228692Sdes 14277228692Sdes# LTCC compiler flags. 14278228692SdesLTCFLAGS=$lt_CFLAGS 14279228692Sdes 14280228692Sdes# Take the output of nm and produce a listing of raw symbols and C names. 14281228692Sdesglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14282228692Sdes 14283228692Sdes# Transform the output of nm in a proper C declaration. 14284228692Sdesglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14285228692Sdes 14286228692Sdes# Transform the output of nm in a C name address pair. 14287228692Sdesglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14288228692Sdes 14289228692Sdes# Transform the output of nm in a C name address pair when lib prefix is needed. 14290228692Sdesglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14291228692Sdes 14292228692Sdes# Specify filename containing input files for \$NM. 14293228692Sdesnm_file_list_spec=$lt_nm_file_list_spec 14294228692Sdes 14295228692Sdes# The root where to search for dependent libraries,and in which our libraries should be installed. 14296228692Sdeslt_sysroot=$lt_sysroot 14297228692Sdes 14298228692Sdes# The name of the directory that contains temporary libtool files. 14299228692Sdesobjdir=$objdir 14300228692Sdes 14301228692Sdes# Used to examine libraries when file_magic_cmd begins with "file". 14302228692SdesMAGIC_CMD=$MAGIC_CMD 14303228692Sdes 14304228692Sdes# Must we lock files when doing compilation? 14305228692Sdesneed_locks=$lt_need_locks 14306228692Sdes 14307228692Sdes# Manifest tool. 14308228692SdesMANIFEST_TOOL=$lt_MANIFEST_TOOL 14309228692Sdes 14310228692Sdes# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14311228692SdesDSYMUTIL=$lt_DSYMUTIL 14312228692Sdes 14313228692Sdes# Tool to change global to local symbols on Mac OS X. 14314228692SdesNMEDIT=$lt_NMEDIT 14315228692Sdes 14316228692Sdes# Tool to manipulate fat objects and archives on Mac OS X. 14317228692SdesLIPO=$lt_LIPO 14318228692Sdes 14319228692Sdes# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14320228692SdesOTOOL=$lt_OTOOL 14321228692Sdes 14322228692Sdes# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14323228692SdesOTOOL64=$lt_OTOOL64 14324228692Sdes 14325228692Sdes# Old archive suffix (normally "a"). 14326228692Sdeslibext=$libext 14327228692Sdes 14328228692Sdes# Shared library suffix (normally ".so"). 14329228692Sdesshrext_cmds=$lt_shrext_cmds 14330228692Sdes 14331228692Sdes# The commands to extract the exported symbol list from a shared archive. 14332228692Sdesextract_expsyms_cmds=$lt_extract_expsyms_cmds 14333228692Sdes 14334228692Sdes# Variables whose values should be saved in libtool wrapper scripts and 14335228692Sdes# restored at link time. 14336228692Sdesvariables_saved_for_relink=$lt_variables_saved_for_relink 14337228692Sdes 14338228692Sdes# Do we need the "lib" prefix for modules? 14339228692Sdesneed_lib_prefix=$need_lib_prefix 14340228692Sdes 14341228692Sdes# Do we need a version for libraries? 14342228692Sdesneed_version=$need_version 14343228692Sdes 14344228692Sdes# Library versioning type. 14345228692Sdesversion_type=$version_type 14346228692Sdes 14347228692Sdes# Shared library runtime path variable. 14348228692Sdesrunpath_var=$runpath_var 14349228692Sdes 14350228692Sdes# Shared library path variable. 14351228692Sdesshlibpath_var=$shlibpath_var 14352228692Sdes 14353228692Sdes# Is shlibpath searched before the hard-coded library search path? 14354228692Sdesshlibpath_overrides_runpath=$shlibpath_overrides_runpath 14355228692Sdes 14356228692Sdes# Format of library name prefix. 14357228692Sdeslibname_spec=$lt_libname_spec 14358228692Sdes 14359228692Sdes# List of archive names. First name is the real one, the rest are links. 14360228692Sdes# The last name is the one that the linker finds with -lNAME 14361228692Sdeslibrary_names_spec=$lt_library_names_spec 14362228692Sdes 14363228692Sdes# The coded name of the library, if different from the real name. 14364228692Sdessoname_spec=$lt_soname_spec 14365228692Sdes 14366228692Sdes# Permission mode override for installation of shared libraries. 14367228692Sdesinstall_override_mode=$lt_install_override_mode 14368228692Sdes 14369228692Sdes# Command to use after installation of a shared archive. 14370228692Sdespostinstall_cmds=$lt_postinstall_cmds 14371228692Sdes 14372228692Sdes# Command to use after uninstallation of a shared archive. 14373228692Sdespostuninstall_cmds=$lt_postuninstall_cmds 14374228692Sdes 14375228692Sdes# Commands used to finish a libtool library installation in a directory. 14376228692Sdesfinish_cmds=$lt_finish_cmds 14377228692Sdes 14378228692Sdes# As "finish_cmds", except a single script fragment to be evaled but 14379228692Sdes# not shown. 14380228692Sdesfinish_eval=$lt_finish_eval 14381228692Sdes 14382228692Sdes# Whether we should hardcode library paths into libraries. 14383228692Sdeshardcode_into_libs=$hardcode_into_libs 14384228692Sdes 14385228692Sdes# Compile-time system search path for libraries. 14386228692Sdessys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14387228692Sdes 14388228692Sdes# Run-time system search path for libraries. 14389228692Sdessys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14390228692Sdes 14391228692Sdes# Whether dlopen is supported. 14392228692Sdesdlopen_support=$enable_dlopen 14393228692Sdes 14394228692Sdes# Whether dlopen of programs is supported. 14395228692Sdesdlopen_self=$enable_dlopen_self 14396228692Sdes 14397228692Sdes# Whether dlopen of statically linked programs is supported. 14398228692Sdesdlopen_self_static=$enable_dlopen_self_static 14399228692Sdes 14400228692Sdes# Commands to strip libraries. 14401228692Sdesold_striplib=$lt_old_striplib 14402228692Sdesstriplib=$lt_striplib 14403228692Sdes 14404228692Sdes 14405228692Sdes# The linker used to build libraries. 14406228692SdesLD=$lt_LD 14407228692Sdes 14408228692Sdes# How to create reloadable object files. 14409228692Sdesreload_flag=$lt_reload_flag 14410228692Sdesreload_cmds=$lt_reload_cmds 14411228692Sdes 14412228692Sdes# Commands used to build an old-style archive. 14413228692Sdesold_archive_cmds=$lt_old_archive_cmds 14414228692Sdes 14415228692Sdes# A language specific compiler. 14416228692SdesCC=$lt_compiler 14417228692Sdes 14418228692Sdes# Is the compiler the GNU compiler? 14419228692Sdeswith_gcc=$GCC 14420228692Sdes 14421228692Sdes# Compiler flag to turn off builtin functions. 14422228692Sdesno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14423228692Sdes 14424228692Sdes# Additional compiler flags for building library objects. 14425228692Sdespic_flag=$lt_lt_prog_compiler_pic 14426228692Sdes 14427228692Sdes# How to pass a linker flag through the compiler. 14428228692Sdeswl=$lt_lt_prog_compiler_wl 14429228692Sdes 14430228692Sdes# Compiler flag to prevent dynamic linking. 14431228692Sdeslink_static_flag=$lt_lt_prog_compiler_static 14432228692Sdes 14433228692Sdes# Does compiler simultaneously support -c and -o options? 14434228692Sdescompiler_c_o=$lt_lt_cv_prog_compiler_c_o 14435228692Sdes 14436228692Sdes# Whether or not to add -lc for building shared libraries. 14437228692Sdesbuild_libtool_need_lc=$archive_cmds_need_lc 14438228692Sdes 14439228692Sdes# Whether or not to disallow shared libs when runtime libs are static. 14440228692Sdesallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14441228692Sdes 14442228692Sdes# Compiler flag to allow reflexive dlopens. 14443228692Sdesexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14444228692Sdes 14445228692Sdes# Compiler flag to generate shared objects directly from archives. 14446228692Sdeswhole_archive_flag_spec=$lt_whole_archive_flag_spec 14447228692Sdes 14448228692Sdes# Whether the compiler copes with passing no objects directly. 14449228692Sdescompiler_needs_object=$lt_compiler_needs_object 14450228692Sdes 14451228692Sdes# Create an old-style archive from a shared archive. 14452228692Sdesold_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14453228692Sdes 14454228692Sdes# Create a temporary old-style archive to link instead of a shared archive. 14455228692Sdesold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14456228692Sdes 14457228692Sdes# Commands used to build a shared archive. 14458228692Sdesarchive_cmds=$lt_archive_cmds 14459228692Sdesarchive_expsym_cmds=$lt_archive_expsym_cmds 14460228692Sdes 14461228692Sdes# Commands used to build a loadable module if different from building 14462228692Sdes# a shared archive. 14463228692Sdesmodule_cmds=$lt_module_cmds 14464228692Sdesmodule_expsym_cmds=$lt_module_expsym_cmds 14465228692Sdes 14466228692Sdes# Whether we are building with GNU ld or not. 14467228692Sdeswith_gnu_ld=$lt_with_gnu_ld 14468228692Sdes 14469228692Sdes# Flag that allows shared libraries with undefined symbols to be built. 14470228692Sdesallow_undefined_flag=$lt_allow_undefined_flag 14471228692Sdes 14472228692Sdes# Flag that enforces no undefined symbols. 14473228692Sdesno_undefined_flag=$lt_no_undefined_flag 14474228692Sdes 14475228692Sdes# Flag to hardcode \$libdir into a binary during linking. 14476228692Sdes# This must work even if \$libdir does not exist 14477228692Sdeshardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14478228692Sdes 14479228692Sdes# Whether we need a single "-rpath" flag with a separated argument. 14480228692Sdeshardcode_libdir_separator=$lt_hardcode_libdir_separator 14481228692Sdes 14482228692Sdes# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14483228692Sdes# DIR into the resulting binary. 14484228692Sdeshardcode_direct=$hardcode_direct 14485228692Sdes 14486228692Sdes# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14487228692Sdes# DIR into the resulting binary and the resulting library dependency is 14488228692Sdes# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14489228692Sdes# library is relocated. 14490228692Sdeshardcode_direct_absolute=$hardcode_direct_absolute 14491228692Sdes 14492228692Sdes# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14493228692Sdes# into the resulting binary. 14494228692Sdeshardcode_minus_L=$hardcode_minus_L 14495228692Sdes 14496228692Sdes# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14497228692Sdes# into the resulting binary. 14498228692Sdeshardcode_shlibpath_var=$hardcode_shlibpath_var 14499228692Sdes 14500228692Sdes# Set to "yes" if building a shared library automatically hardcodes DIR 14501228692Sdes# into the library and all subsequent libraries and executables linked 14502228692Sdes# against it. 14503228692Sdeshardcode_automatic=$hardcode_automatic 14504228692Sdes 14505228692Sdes# Set to yes if linker adds runtime paths of dependent libraries 14506228692Sdes# to runtime path list. 14507228692Sdesinherit_rpath=$inherit_rpath 14508228692Sdes 14509228692Sdes# Whether libtool must link a program against all its dependency libraries. 14510228692Sdeslink_all_deplibs=$link_all_deplibs 14511228692Sdes 14512228692Sdes# Set to "yes" if exported symbols are required. 14513228692Sdesalways_export_symbols=$always_export_symbols 14514228692Sdes 14515228692Sdes# The commands to list exported symbols. 14516228692Sdesexport_symbols_cmds=$lt_export_symbols_cmds 14517228692Sdes 14518228692Sdes# Symbols that should not be listed in the preloaded symbols. 14519228692Sdesexclude_expsyms=$lt_exclude_expsyms 14520228692Sdes 14521228692Sdes# Symbols that must always be exported. 14522228692Sdesinclude_expsyms=$lt_include_expsyms 14523228692Sdes 14524228692Sdes# Commands necessary for linking programs (against libraries) with templates. 14525228692Sdesprelink_cmds=$lt_prelink_cmds 14526228692Sdes 14527228692Sdes# Commands necessary for finishing linking programs. 14528228692Sdespostlink_cmds=$lt_postlink_cmds 14529228692Sdes 14530228692Sdes# Specify filename containing input files. 14531228692Sdesfile_list_spec=$lt_file_list_spec 14532228692Sdes 14533228692Sdes# How to hardcode a shared library path into an executable. 14534228692Sdeshardcode_action=$hardcode_action 14535228692Sdes 14536228692Sdes# ### END LIBTOOL CONFIG 14537228692Sdes 14538228692Sdes_LT_EOF 14539228692Sdes 14540228692Sdes case $host_os in 14541228692Sdes aix3*) 14542228692Sdes cat <<\_LT_EOF >> "$cfgfile" 14543228692Sdes# AIX sometimes has problems with the GCC collect2 program. For some 14544228692Sdes# reason, if we set the COLLECT_NAMES environment variable, the problems 14545228692Sdes# vanish in a puff of smoke. 14546228692Sdesif test "X${COLLECT_NAMES+set}" != Xset; then 14547228692Sdes COLLECT_NAMES= 14548228692Sdes export COLLECT_NAMES 14549228692Sdesfi 14550228692Sdes_LT_EOF 14551228692Sdes ;; 14552117610Sdes esac 14553228692Sdes 14554228692Sdes 14555228692Sdesltmain="$ac_aux_dir/ltmain.sh" 14556228692Sdes 14557228692Sdes 14558228692Sdes # We use sed instead of cat because bash on DJGPP gets confused if 14559228692Sdes # if finds mixed CR/LF and LF-only lines. Since sed operates in 14560228692Sdes # text mode, it properly converts lines to CR/LF. This bash problem 14561228692Sdes # is reportedly fixed, but why not run on old versions too? 14562228692Sdes sed '$q' "$ltmain" >> "$cfgfile" \ 14563228692Sdes || (rm -f "$cfgfile"; exit 1) 14564228692Sdes 14565228692Sdes if test x"$xsi_shell" = xyes; then 14566228692Sdes sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 14567228692Sdesfunc_dirname ()\ 14568228692Sdes{\ 14569228692Sdes\ case ${1} in\ 14570228692Sdes\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14571228692Sdes\ * ) func_dirname_result="${3}" ;;\ 14572228692Sdes\ esac\ 14573228692Sdes} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 14574228692Sdes && mv -f "$cfgfile.tmp" "$cfgfile" \ 14575228692Sdes || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14576228692Sdestest 0 -eq $? || _lt_function_replace_fail=: 14577228692Sdes 14578228692Sdes 14579228692Sdes sed -e '/^func_basename ()$/,/^} # func_basename /c\ 14580228692Sdesfunc_basename ()\ 14581228692Sdes{\ 14582228692Sdes\ func_basename_result="${1##*/}"\ 14583228692Sdes} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14584228692Sdes && mv -f "$cfgfile.tmp" "$cfgfile" \ 14585228692Sdes || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14586228692Sdestest 0 -eq $? || _lt_function_replace_fail=: 14587228692Sdes 14588228692Sdes 14589228692Sdes sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 14590228692Sdesfunc_dirname_and_basename ()\ 14591228692Sdes{\ 14592228692Sdes\ case ${1} in\ 14593228692Sdes\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14594228692Sdes\ * ) func_dirname_result="${3}" ;;\ 14595228692Sdes\ esac\ 14596228692Sdes\ func_basename_result="${1##*/}"\ 14597228692Sdes} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14598228692Sdes && mv -f "$cfgfile.tmp" "$cfgfile" \ 14599228692Sdes || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14600228692Sdestest 0 -eq $? || _lt_function_replace_fail=: 14601228692Sdes 14602228692Sdes 14603228692Sdes sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 14604228692Sdesfunc_stripname ()\ 14605228692Sdes{\ 14606228692Sdes\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 14607228692Sdes\ # positional parameters, so assign one to ordinary parameter first.\ 14608228692Sdes\ func_stripname_result=${3}\ 14609228692Sdes\ func_stripname_result=${func_stripname_result#"${1}"}\ 14610228692Sdes\ func_stripname_result=${func_stripname_result%"${2}"}\ 14611228692Sdes} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 14612228692Sdes && mv -f "$cfgfile.tmp" "$cfgfile" \ 14613228692Sdes || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14614228692Sdestest 0 -eq $? || _lt_function_replace_fail=: 14615228692Sdes 14616228692Sdes 14617228692Sdes sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 14618228692Sdesfunc_split_long_opt ()\ 14619228692Sdes{\ 14620228692Sdes\ func_split_long_opt_name=${1%%=*}\ 14621228692Sdes\ func_split_long_opt_arg=${1#*=}\ 14622228692Sdes} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14623228692Sdes && mv -f "$cfgfile.tmp" "$cfgfile" \ 14624228692Sdes || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14625228692Sdestest 0 -eq $? || _lt_function_replace_fail=: 14626228692Sdes 14627228692Sdes 14628228692Sdes sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 14629228692Sdesfunc_split_short_opt ()\ 14630228692Sdes{\ 14631228692Sdes\ func_split_short_opt_arg=${1#??}\ 14632228692Sdes\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 14633228692Sdes} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14634228692Sdes && mv -f "$cfgfile.tmp" "$cfgfile" \ 14635228692Sdes || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14636228692Sdestest 0 -eq $? || _lt_function_replace_fail=: 14637228692Sdes 14638228692Sdes 14639228692Sdes sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 14640228692Sdesfunc_lo2o ()\ 14641228692Sdes{\ 14642228692Sdes\ case ${1} in\ 14643228692Sdes\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 14644228692Sdes\ *) func_lo2o_result=${1} ;;\ 14645228692Sdes\ esac\ 14646228692Sdes} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 14647228692Sdes && mv -f "$cfgfile.tmp" "$cfgfile" \ 14648228692Sdes || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14649228692Sdestest 0 -eq $? || _lt_function_replace_fail=: 14650228692Sdes 14651228692Sdes 14652228692Sdes sed -e '/^func_xform ()$/,/^} # func_xform /c\ 14653228692Sdesfunc_xform ()\ 14654228692Sdes{\ 14655228692Sdes func_xform_result=${1%.*}.lo\ 14656228692Sdes} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 14657228692Sdes && mv -f "$cfgfile.tmp" "$cfgfile" \ 14658228692Sdes || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14659228692Sdestest 0 -eq $? || _lt_function_replace_fail=: 14660228692Sdes 14661228692Sdes 14662228692Sdes sed -e '/^func_arith ()$/,/^} # func_arith /c\ 14663228692Sdesfunc_arith ()\ 14664228692Sdes{\ 14665228692Sdes func_arith_result=$(( $* ))\ 14666228692Sdes} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 14667228692Sdes && mv -f "$cfgfile.tmp" "$cfgfile" \ 14668228692Sdes || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14669228692Sdestest 0 -eq $? || _lt_function_replace_fail=: 14670228692Sdes 14671228692Sdes 14672228692Sdes sed -e '/^func_len ()$/,/^} # func_len /c\ 14673228692Sdesfunc_len ()\ 14674228692Sdes{\ 14675228692Sdes func_len_result=${#1}\ 14676228692Sdes} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 14677228692Sdes && mv -f "$cfgfile.tmp" "$cfgfile" \ 14678228692Sdes || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14679228692Sdestest 0 -eq $? || _lt_function_replace_fail=: 14680228692Sdes 14681228692Sdesfi 14682228692Sdes 14683228692Sdesif test x"$lt_shell_append" = xyes; then 14684228692Sdes sed -e '/^func_append ()$/,/^} # func_append /c\ 14685228692Sdesfunc_append ()\ 14686228692Sdes{\ 14687228692Sdes eval "${1}+=\\${2}"\ 14688228692Sdes} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 14689228692Sdes && mv -f "$cfgfile.tmp" "$cfgfile" \ 14690228692Sdes || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14691228692Sdestest 0 -eq $? || _lt_function_replace_fail=: 14692228692Sdes 14693228692Sdes 14694228692Sdes sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 14695228692Sdesfunc_append_quoted ()\ 14696228692Sdes{\ 14697228692Sdes\ func_quote_for_eval "${2}"\ 14698228692Sdes\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 14699228692Sdes} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 14700228692Sdes && mv -f "$cfgfile.tmp" "$cfgfile" \ 14701228692Sdes || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14702228692Sdestest 0 -eq $? || _lt_function_replace_fail=: 14703228692Sdes 14704228692Sdes 14705228692Sdes # Save a `func_append' function call where possible by direct use of '+=' 14706228692Sdes sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 14707228692Sdes && mv -f "$cfgfile.tmp" "$cfgfile" \ 14708228692Sdes || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14709228692Sdes test 0 -eq $? || _lt_function_replace_fail=: 14710228692Sdeselse 14711228692Sdes # Save a `func_append' function call even when '+=' is not available 14712228692Sdes sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 14713228692Sdes && mv -f "$cfgfile.tmp" "$cfgfile" \ 14714228692Sdes || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14715228692Sdes test 0 -eq $? || _lt_function_replace_fail=: 14716228692Sdesfi 14717228692Sdes 14718228692Sdesif test x"$_lt_function_replace_fail" = x":"; then 14719228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 14720228692Sdes$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 14721228692Sdesfi 14722228692Sdes 14723228692Sdes 14724228692Sdes mv -f "$cfgfile" "$ofile" || 14725228692Sdes (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14726228692Sdes chmod +x "$ofile" 14727228692Sdes 14728228692Sdes ;; 14729236109Sdes "pamgdb":F) chmod +x pamgdb ;; 14730255376Sdes "mkpkgng":F) chmod +x mkpkgng ;; 14731228692Sdes 14732228692Sdes esac 14733174832Sdesdone # for ac_tag 14734117610Sdes 14735117610Sdes 14736228692Sdesas_fn_exit 0 14737117610Sdes_ACEOF 14738117610Sdesac_clean_files=$ac_clean_files_save 14739117610Sdes 14740228692Sdestest $ac_write_fail = 0 || 14741228692Sdes as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14742117610Sdes 14743228692Sdes 14744117610Sdes# configure is writing to config.log, and then calls config.status. 14745117610Sdes# config.status does its own redirection, appending to config.log. 14746117610Sdes# Unfortunately, on DOS this fails, as config.log is still kept open 14747117610Sdes# by configure, so config.status won't be able to write to it; its 14748117610Sdes# output is simply discarded. So we exec the FD to /dev/null, 14749117610Sdes# effectively closing config.log, so it can be properly (re)opened and 14750117610Sdes# appended to by config.status. When coming back to configure, we 14751117610Sdes# need to make the FD available again. 14752117610Sdesif test "$no_create" != yes; then 14753117610Sdes ac_cs_success=: 14754141098Sdes ac_config_status_args= 14755141098Sdes test "$silent" = yes && 14756141098Sdes ac_config_status_args="$ac_config_status_args --quiet" 14757117610Sdes exec 5>/dev/null 14758141098Sdes $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14759117610Sdes exec 5>>config.log 14760117610Sdes # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14761117610Sdes # would make configure fail if this is the last instruction. 14762228692Sdes $ac_cs_success || as_fn_exit 1 14763117610Sdesfi 14764228692Sdesif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14765228692Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14766228692Sdes$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14767228692Sdesfi 14768117610Sdes 14769