|
Line 0
Link Here
|
|
|
1 |
#! /bin/sh |
| 2 |
# Guess values for system-dependent variables and create Makefiles. |
| 3 |
# Generated by GNU Autoconf 2.69 for slurm 19.05. |
| 4 |
# |
| 5 |
# |
| 6 |
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| 7 |
# |
| 8 |
# |
| 9 |
# This configure script is free software; the Free Software Foundation |
| 10 |
# gives unlimited permission to copy, distribute and modify it. |
| 11 |
## -------------------- ## |
| 12 |
## M4sh Initialization. ## |
| 13 |
## -------------------- ## |
| 14 |
|
| 15 |
# Be more Bourne compatible |
| 16 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 17 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 18 |
emulate sh |
| 19 |
NULLCMD=: |
| 20 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 21 |
# is contrary to our usage. Disable this feature. |
| 22 |
alias -g '${1+"$@"}'='"$@"' |
| 23 |
setopt NO_GLOB_SUBST |
| 24 |
else |
| 25 |
case `(set -o) 2>/dev/null` in #( |
| 26 |
*posix*) : |
| 27 |
set -o posix ;; #( |
| 28 |
*) : |
| 29 |
;; |
| 30 |
esac |
| 31 |
fi |
| 32 |
|
| 33 |
|
| 34 |
as_nl=' |
| 35 |
' |
| 36 |
export as_nl |
| 37 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 38 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 39 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 40 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 41 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
| 42 |
# but without wasting forks for bash or zsh. |
| 43 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 44 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 45 |
as_echo='print -r --' |
| 46 |
as_echo_n='print -rn --' |
| 47 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 48 |
as_echo='printf %s\n' |
| 49 |
as_echo_n='printf %s' |
| 50 |
else |
| 51 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 52 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 53 |
as_echo_n='/usr/ucb/echo -n' |
| 54 |
else |
| 55 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 56 |
as_echo_n_body='eval |
| 57 |
arg=$1; |
| 58 |
case $arg in #( |
| 59 |
*"$as_nl"*) |
| 60 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 61 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 62 |
esac; |
| 63 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 64 |
' |
| 65 |
export as_echo_n_body |
| 66 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
| 67 |
fi |
| 68 |
export as_echo_body |
| 69 |
as_echo='sh -c $as_echo_body as_echo' |
| 70 |
fi |
| 71 |
|
| 72 |
# The user is always right. |
| 73 |
if test "${PATH_SEPARATOR+set}" != set; then |
| 74 |
PATH_SEPARATOR=: |
| 75 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 76 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 77 |
PATH_SEPARATOR=';' |
| 78 |
} |
| 79 |
fi |
| 80 |
|
| 81 |
|
| 82 |
# IFS |
| 83 |
# We need space, tab and new line, in precisely that order. Quoting is |
| 84 |
# there to prevent editors from complaining about space-tab. |
| 85 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 86 |
# splitting by setting IFS to empty value.) |
| 87 |
IFS=" "" $as_nl" |
| 88 |
|
| 89 |
# Find who we are. Look in the path if we contain no directory separator. |
| 90 |
as_myself= |
| 91 |
case $0 in #(( |
| 92 |
*[\\/]* ) as_myself=$0 ;; |
| 93 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 94 |
for as_dir in $PATH |
| 95 |
do |
| 96 |
IFS=$as_save_IFS |
| 97 |
test -z "$as_dir" && as_dir=. |
| 98 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 99 |
done |
| 100 |
IFS=$as_save_IFS |
| 101 |
|
| 102 |
;; |
| 103 |
esac |
| 104 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 105 |
# in which case we are not to be found in the path. |
| 106 |
if test "x$as_myself" = x; then |
| 107 |
as_myself=$0 |
| 108 |
fi |
| 109 |
if test ! -f "$as_myself"; then |
| 110 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 111 |
exit 1 |
| 112 |
fi |
| 113 |
|
| 114 |
# Unset variables that we do not need and which cause bugs (e.g. in |
| 115 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 116 |
# suppresses any "Segmentation fault" message there. '((' could |
| 117 |
# trigger a bug in pdksh 5.2.14. |
| 118 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
| 119 |
do eval test x\${$as_var+set} = xset \ |
| 120 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 121 |
done |
| 122 |
PS1='$ ' |
| 123 |
PS2='> ' |
| 124 |
PS4='+ ' |
| 125 |
|
| 126 |
# NLS nuisances. |
| 127 |
LC_ALL=C |
| 128 |
export LC_ALL |
| 129 |
LANGUAGE=C |
| 130 |
export LANGUAGE |
| 131 |
|
| 132 |
# CDPATH. |
| 133 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 134 |
|
| 135 |
# Use a proper internal environment variable to ensure we don't fall |
| 136 |
# into an infinite loop, continuously re-executing ourselves. |
| 137 |
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 138 |
_as_can_reexec=no; export _as_can_reexec; |
| 139 |
# We cannot yet assume a decent shell, so we have to provide a |
| 140 |
# neutralization value for shells without unset; and this also |
| 141 |
# works around shells that cannot unset nonexistent variables. |
| 142 |
# Preserve -v and -x to the replacement shell. |
| 143 |
BASH_ENV=/dev/null |
| 144 |
ENV=/dev/null |
| 145 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 146 |
case $- in # (((( |
| 147 |
*v*x* | *x*v* ) as_opts=-vx ;; |
| 148 |
*v* ) as_opts=-v ;; |
| 149 |
*x* ) as_opts=-x ;; |
| 150 |
* ) as_opts= ;; |
| 151 |
esac |
| 152 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 153 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 154 |
# out after a failed `exec'. |
| 155 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 156 |
as_fn_exit 255 |
| 157 |
fi |
| 158 |
# We don't want this to propagate to other subprocesses. |
| 159 |
{ _as_can_reexec=; unset _as_can_reexec;} |
| 160 |
if test "x$CONFIG_SHELL" = x; then |
| 161 |
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 162 |
emulate sh |
| 163 |
NULLCMD=: |
| 164 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 165 |
# is contrary to our usage. Disable this feature. |
| 166 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 167 |
setopt NO_GLOB_SUBST |
| 168 |
else |
| 169 |
case \`(set -o) 2>/dev/null\` in #( |
| 170 |
*posix*) : |
| 171 |
set -o posix ;; #( |
| 172 |
*) : |
| 173 |
;; |
| 174 |
esac |
| 175 |
fi |
| 176 |
" |
| 177 |
as_required="as_fn_return () { (exit \$1); } |
| 178 |
as_fn_success () { as_fn_return 0; } |
| 179 |
as_fn_failure () { as_fn_return 1; } |
| 180 |
as_fn_ret_success () { return 0; } |
| 181 |
as_fn_ret_failure () { return 1; } |
| 182 |
|
| 183 |
exitcode=0 |
| 184 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 185 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 186 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 187 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 188 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 189 |
|
| 190 |
else |
| 191 |
exitcode=1; echo positional parameters were not saved. |
| 192 |
fi |
| 193 |
test x\$exitcode = x0 || exit 1 |
| 194 |
test -x / || exit 1" |
| 195 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 196 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 197 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 198 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 199 |
|
| 200 |
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
| 201 |
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 202 |
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 203 |
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 204 |
PATH=/empty FPATH=/empty; export PATH FPATH |
| 205 |
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
| 206 |
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 |
| 207 |
test \$(( 1 + 1 )) = 2 || exit 1" |
| 208 |
if (eval "$as_required") 2>/dev/null; then : |
| 209 |
as_have_required=yes |
| 210 |
else |
| 211 |
as_have_required=no |
| 212 |
fi |
| 213 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 214 |
|
| 215 |
else |
| 216 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 217 |
as_found=false |
| 218 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 219 |
do |
| 220 |
IFS=$as_save_IFS |
| 221 |
test -z "$as_dir" && as_dir=. |
| 222 |
as_found=: |
| 223 |
case $as_dir in #( |
| 224 |
/*) |
| 225 |
for as_base in sh bash ksh sh5; do |
| 226 |
# Try only shells that exist, to save several forks. |
| 227 |
as_shell=$as_dir/$as_base |
| 228 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 229 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 230 |
CONFIG_SHELL=$as_shell as_have_required=yes |
| 231 |
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 232 |
break 2 |
| 233 |
fi |
| 234 |
fi |
| 235 |
done;; |
| 236 |
esac |
| 237 |
as_found=false |
| 238 |
done |
| 239 |
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 240 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 241 |
CONFIG_SHELL=$SHELL as_have_required=yes |
| 242 |
fi; } |
| 243 |
IFS=$as_save_IFS |
| 244 |
|
| 245 |
|
| 246 |
if test "x$CONFIG_SHELL" != x; then : |
| 247 |
export CONFIG_SHELL |
| 248 |
# We cannot yet assume a decent shell, so we have to provide a |
| 249 |
# neutralization value for shells without unset; and this also |
| 250 |
# works around shells that cannot unset nonexistent variables. |
| 251 |
# Preserve -v and -x to the replacement shell. |
| 252 |
BASH_ENV=/dev/null |
| 253 |
ENV=/dev/null |
| 254 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 255 |
case $- in # (((( |
| 256 |
*v*x* | *x*v* ) as_opts=-vx ;; |
| 257 |
*v* ) as_opts=-v ;; |
| 258 |
*x* ) as_opts=-x ;; |
| 259 |
* ) as_opts= ;; |
| 260 |
esac |
| 261 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 262 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 263 |
# out after a failed `exec'. |
| 264 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 265 |
exit 255 |
| 266 |
fi |
| 267 |
|
| 268 |
if test x$as_have_required = xno; then : |
| 269 |
$as_echo "$0: This script requires a shell more modern than all" |
| 270 |
$as_echo "$0: the shells that I found on your system." |
| 271 |
if test x${ZSH_VERSION+set} = xset ; then |
| 272 |
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 273 |
$as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 274 |
else |
| 275 |
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 276 |
$0: including any error possibly output before this |
| 277 |
$0: message. Then install a modern shell, or manually run |
| 278 |
$0: the script under such a shell if you do have one." |
| 279 |
fi |
| 280 |
exit 1 |
| 281 |
fi |
| 282 |
fi |
| 283 |
fi |
| 284 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 285 |
export SHELL |
| 286 |
# Unset more variables known to interfere with behavior of common tools. |
| 287 |
CLICOLOR_FORCE= GREP_OPTIONS= |
| 288 |
unset CLICOLOR_FORCE GREP_OPTIONS |
| 289 |
|
| 290 |
## --------------------- ## |
| 291 |
## M4sh Shell Functions. ## |
| 292 |
## --------------------- ## |
| 293 |
# as_fn_unset VAR |
| 294 |
# --------------- |
| 295 |
# Portably unset VAR. |
| 296 |
as_fn_unset () |
| 297 |
{ |
| 298 |
{ eval $1=; unset $1;} |
| 299 |
} |
| 300 |
as_unset=as_fn_unset |
| 301 |
|
| 302 |
# as_fn_set_status STATUS |
| 303 |
# ----------------------- |
| 304 |
# Set $? to STATUS, without forking. |
| 305 |
as_fn_set_status () |
| 306 |
{ |
| 307 |
return $1 |
| 308 |
} # as_fn_set_status |
| 309 |
|
| 310 |
# as_fn_exit STATUS |
| 311 |
# ----------------- |
| 312 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 313 |
as_fn_exit () |
| 314 |
{ |
| 315 |
set +e |
| 316 |
as_fn_set_status $1 |
| 317 |
exit $1 |
| 318 |
} # as_fn_exit |
| 319 |
|
| 320 |
# as_fn_mkdir_p |
| 321 |
# ------------- |
| 322 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 323 |
as_fn_mkdir_p () |
| 324 |
{ |
| 325 |
|
| 326 |
case $as_dir in #( |
| 327 |
-*) as_dir=./$as_dir;; |
| 328 |
esac |
| 329 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 330 |
as_dirs= |
| 331 |
while :; do |
| 332 |
case $as_dir in #( |
| 333 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 334 |
*) as_qdir=$as_dir;; |
| 335 |
esac |
| 336 |
as_dirs="'$as_qdir' $as_dirs" |
| 337 |
as_dir=`$as_dirname -- "$as_dir" || |
| 338 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 339 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 340 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 341 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 342 |
$as_echo X"$as_dir" | |
| 343 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 344 |
s//\1/ |
| 345 |
q |
| 346 |
} |
| 347 |
/^X\(\/\/\)[^/].*/{ |
| 348 |
s//\1/ |
| 349 |
q |
| 350 |
} |
| 351 |
/^X\(\/\/\)$/{ |
| 352 |
s//\1/ |
| 353 |
q |
| 354 |
} |
| 355 |
/^X\(\/\).*/{ |
| 356 |
s//\1/ |
| 357 |
q |
| 358 |
} |
| 359 |
s/.*/./; q'` |
| 360 |
test -d "$as_dir" && break |
| 361 |
done |
| 362 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 363 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 364 |
|
| 365 |
|
| 366 |
} # as_fn_mkdir_p |
| 367 |
|
| 368 |
# as_fn_executable_p FILE |
| 369 |
# ----------------------- |
| 370 |
# Test if FILE is an executable regular file. |
| 371 |
as_fn_executable_p () |
| 372 |
{ |
| 373 |
test -f "$1" && test -x "$1" |
| 374 |
} # as_fn_executable_p |
| 375 |
# as_fn_append VAR VALUE |
| 376 |
# ---------------------- |
| 377 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 378 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 379 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 380 |
# implementations. |
| 381 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 382 |
eval 'as_fn_append () |
| 383 |
{ |
| 384 |
eval $1+=\$2 |
| 385 |
}' |
| 386 |
else |
| 387 |
as_fn_append () |
| 388 |
{ |
| 389 |
eval $1=\$$1\$2 |
| 390 |
} |
| 391 |
fi # as_fn_append |
| 392 |
|
| 393 |
# as_fn_arith ARG... |
| 394 |
# ------------------ |
| 395 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 396 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 397 |
# must be portable across $(()) and expr. |
| 398 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 399 |
eval 'as_fn_arith () |
| 400 |
{ |
| 401 |
as_val=$(( $* )) |
| 402 |
}' |
| 403 |
else |
| 404 |
as_fn_arith () |
| 405 |
{ |
| 406 |
as_val=`expr "$@" || test $? -eq 1` |
| 407 |
} |
| 408 |
fi # as_fn_arith |
| 409 |
|
| 410 |
|
| 411 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 412 |
# ---------------------------------------- |
| 413 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 414 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 415 |
# script with STATUS, using 1 if that was 0. |
| 416 |
as_fn_error () |
| 417 |
{ |
| 418 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 419 |
if test "$4"; then |
| 420 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 421 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 422 |
fi |
| 423 |
$as_echo "$as_me: error: $2" >&2 |
| 424 |
as_fn_exit $as_status |
| 425 |
} # as_fn_error |
| 426 |
|
| 427 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 428 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 429 |
as_expr=expr |
| 430 |
else |
| 431 |
as_expr=false |
| 432 |
fi |
| 433 |
|
| 434 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 435 |
as_basename=basename |
| 436 |
else |
| 437 |
as_basename=false |
| 438 |
fi |
| 439 |
|
| 440 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 441 |
as_dirname=dirname |
| 442 |
else |
| 443 |
as_dirname=false |
| 444 |
fi |
| 445 |
|
| 446 |
as_me=`$as_basename -- "$0" || |
| 447 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 448 |
X"$0" : 'X\(//\)$' \| \ |
| 449 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 450 |
$as_echo X/"$0" | |
| 451 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 452 |
s//\1/ |
| 453 |
q |
| 454 |
} |
| 455 |
/^X\/\(\/\/\)$/{ |
| 456 |
s//\1/ |
| 457 |
q |
| 458 |
} |
| 459 |
/^X\/\(\/\).*/{ |
| 460 |
s//\1/ |
| 461 |
q |
| 462 |
} |
| 463 |
s/.*/./; q'` |
| 464 |
|
| 465 |
# Avoid depending upon Character Ranges. |
| 466 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 467 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 468 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 469 |
as_cr_digits='0123456789' |
| 470 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 471 |
|
| 472 |
|
| 473 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 474 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 475 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 476 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 477 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 478 |
sed -n ' |
| 479 |
p |
| 480 |
/[$]LINENO/= |
| 481 |
' <$as_myself | |
| 482 |
sed ' |
| 483 |
s/[$]LINENO.*/&-/ |
| 484 |
t lineno |
| 485 |
b |
| 486 |
:lineno |
| 487 |
N |
| 488 |
:loop |
| 489 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 490 |
t loop |
| 491 |
s/-\n.*// |
| 492 |
' >$as_me.lineno && |
| 493 |
chmod +x "$as_me.lineno" || |
| 494 |
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 495 |
|
| 496 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 497 |
# already done that, so ensure we don't try to do so again and fall |
| 498 |
# in an infinite loop. This has already happened in practice. |
| 499 |
_as_can_reexec=no; export _as_can_reexec |
| 500 |
# Don't try to exec as it changes $[0], causing all sort of problems |
| 501 |
# (the dirname of $[0] is not the place where we might find the |
| 502 |
# original and so on. Autoconf is especially sensitive to this). |
| 503 |
. "./$as_me.lineno" |
| 504 |
# Exit status is that of the last command. |
| 505 |
exit |
| 506 |
} |
| 507 |
|
| 508 |
ECHO_C= ECHO_N= ECHO_T= |
| 509 |
case `echo -n x` in #((((( |
| 510 |
-n*) |
| 511 |
case `echo 'xy\c'` in |
| 512 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 513 |
xy) ECHO_C='\c';; |
| 514 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 515 |
ECHO_T=' ';; |
| 516 |
esac;; |
| 517 |
*) |
| 518 |
ECHO_N='-n';; |
| 519 |
esac |
| 520 |
|
| 521 |
rm -f conf$$ conf$$.exe conf$$.file |
| 522 |
if test -d conf$$.dir; then |
| 523 |
rm -f conf$$.dir/conf$$.file |
| 524 |
else |
| 525 |
rm -f conf$$.dir |
| 526 |
mkdir conf$$.dir 2>/dev/null |
| 527 |
fi |
| 528 |
if (echo >conf$$.file) 2>/dev/null; then |
| 529 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 530 |
as_ln_s='ln -s' |
| 531 |
# ... but there are two gotchas: |
| 532 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 533 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 534 |
# In both cases, we have to default to `cp -pR'. |
| 535 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 536 |
as_ln_s='cp -pR' |
| 537 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 538 |
as_ln_s=ln |
| 539 |
else |
| 540 |
as_ln_s='cp -pR' |
| 541 |
fi |
| 542 |
else |
| 543 |
as_ln_s='cp -pR' |
| 544 |
fi |
| 545 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 546 |
rmdir conf$$.dir 2>/dev/null |
| 547 |
|
| 548 |
if mkdir -p . 2>/dev/null; then |
| 549 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 550 |
else |
| 551 |
test -d ./-p && rmdir ./-p |
| 552 |
as_mkdir_p=false |
| 553 |
fi |
| 554 |
|
| 555 |
as_test_x='test -x' |
| 556 |
as_executable_p=as_fn_executable_p |
| 557 |
|
| 558 |
# Sed expression to map a string onto a valid CPP name. |
| 559 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 560 |
|
| 561 |
# Sed expression to map a string onto a valid variable name. |
| 562 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 563 |
|
| 564 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 565 |
|
| 566 |
|
| 567 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
| 568 |
exec 6>&1 |
| 569 |
|
| 570 |
# Name of the host. |
| 571 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 572 |
# so uname gets run too. |
| 573 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 574 |
|
| 575 |
# |
| 576 |
# Initializations. |
| 577 |
# |
| 578 |
ac_default_prefix=/usr/local |
| 579 |
ac_clean_files= |
| 580 |
ac_config_libobj_dir=. |
| 581 |
LIBOBJS= |
| 582 |
cross_compiling=no |
| 583 |
subdirs= |
| 584 |
MFLAGS= |
| 585 |
MAKEFLAGS= |
| 586 |
|
| 587 |
# Identity of this package. |
| 588 |
PACKAGE_NAME='slurm' |
| 589 |
PACKAGE_TARNAME='slurm' |
| 590 |
PACKAGE_VERSION='19.05' |
| 591 |
PACKAGE_STRING='slurm 19.05' |
| 592 |
PACKAGE_BUGREPORT='' |
| 593 |
PACKAGE_URL='https://slurm.schedmd.com' |
| 594 |
|
| 595 |
ac_unique_file="configure.ac" |
| 596 |
# Factoring default headers for most tests. |
| 597 |
ac_includes_default="\ |
| 598 |
#include <stdio.h> |
| 599 |
#ifdef HAVE_SYS_TYPES_H |
| 600 |
# include <sys/types.h> |
| 601 |
#endif |
| 602 |
#ifdef HAVE_SYS_STAT_H |
| 603 |
# include <sys/stat.h> |
| 604 |
#endif |
| 605 |
#ifdef STDC_HEADERS |
| 606 |
# include <stdlib.h> |
| 607 |
# include <stddef.h> |
| 608 |
#else |
| 609 |
# ifdef HAVE_STDLIB_H |
| 610 |
# include <stdlib.h> |
| 611 |
# endif |
| 612 |
#endif |
| 613 |
#ifdef HAVE_STRING_H |
| 614 |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 615 |
# include <memory.h> |
| 616 |
# endif |
| 617 |
# include <string.h> |
| 618 |
#endif |
| 619 |
#ifdef HAVE_STRINGS_H |
| 620 |
# include <strings.h> |
| 621 |
#endif |
| 622 |
#ifdef HAVE_INTTYPES_H |
| 623 |
# include <inttypes.h> |
| 624 |
#endif |
| 625 |
#ifdef HAVE_STDINT_H |
| 626 |
# include <stdint.h> |
| 627 |
#endif |
| 628 |
#ifdef HAVE_UNISTD_H |
| 629 |
# include <unistd.h> |
| 630 |
#endif" |
| 631 |
|
| 632 |
ac_subst_vars='am__EXEEXT_FALSE |
| 633 |
am__EXEEXT_TRUE |
| 634 |
LTLIBOBJS |
| 635 |
LIBOBJS |
| 636 |
BUILD_SMAP_FALSE |
| 637 |
BUILD_SMAP_TRUE |
| 638 |
WITH_CURL_FALSE |
| 639 |
WITH_CURL_TRUE |
| 640 |
LIBCURL |
| 641 |
LIBCURL_CPPFLAGS |
| 642 |
_libcurl_config |
| 643 |
UTIL_LIBS |
| 644 |
WITH_MUNGE_FALSE |
| 645 |
WITH_MUNGE_TRUE |
| 646 |
MUNGE_DIR |
| 647 |
MUNGE_LDFLAGS |
| 648 |
MUNGE_CPPFLAGS |
| 649 |
MUNGE_LIBS |
| 650 |
SYSTEMD_TASKSMAX_OPTION |
| 651 |
READLINE_LIBS |
| 652 |
HAVE_MAN2HTML |
| 653 |
HAVE_MAN2HTML_FALSE |
| 654 |
HAVE_MAN2HTML_TRUE |
| 655 |
ac_have_man2html |
| 656 |
HAVE_LUA_FALSE |
| 657 |
HAVE_LUA_TRUE |
| 658 |
lua_LIBS |
| 659 |
lua_CFLAGS |
| 660 |
HAVE_NETLOC_FALSE |
| 661 |
HAVE_NETLOC_TRUE |
| 662 |
NETLOC_LDFLAGS |
| 663 |
NETLOC_CPPFLAGS |
| 664 |
NETLOC_LIBS |
| 665 |
SLURM_PREFIX |
| 666 |
SLURMCTLD_PORT_COUNT |
| 667 |
SLURMDBD_PORT |
| 668 |
SLURMD_PORT |
| 669 |
SLURMCTLD_PORT |
| 670 |
WITH_SWITCH_CRAY_ARIES_FALSE |
| 671 |
WITH_SWITCH_CRAY_ARIES_TRUE |
| 672 |
DATAWARP_LDFLAGS |
| 673 |
DATAWARP_CPPFLAGS |
| 674 |
CRAY_TASK_LDFLAGS |
| 675 |
CRAY_TASK_CPPFLAGS |
| 676 |
CRAY_SWITCH_LDFLAGS |
| 677 |
CRAY_SWITCH_CPPFLAGS |
| 678 |
CRAY_SELECT_LDFLAGS |
| 679 |
CRAY_SELECT_CPPFLAGS |
| 680 |
CRAY_JOB_LDFLAGS |
| 681 |
CRAY_JOB_CPPFLAGS |
| 682 |
HAVE_CRAY_NETWORK_FALSE |
| 683 |
HAVE_CRAY_NETWORK_TRUE |
| 684 |
HAVE_NATIVE_CRAY_FALSE |
| 685 |
HAVE_NATIVE_CRAY_TRUE |
| 686 |
BUILD_SVIEW_FALSE |
| 687 |
BUILD_SVIEW_TRUE |
| 688 |
GTK_LIBS |
| 689 |
GTK_CFLAGS |
| 690 |
GLIB_COMPILE_RESOURCES |
| 691 |
GLIB_MKENUMS |
| 692 |
GOBJECT_QUERY |
| 693 |
GLIB_GENMARSHAL |
| 694 |
GLIB_LIBS |
| 695 |
GLIB_CFLAGS |
| 696 |
HAVE_CHECK_FALSE |
| 697 |
HAVE_CHECK_TRUE |
| 698 |
CHECK_LIBS |
| 699 |
CHECK_CFLAGS |
| 700 |
WITH_CGROUP_FALSE |
| 701 |
WITH_CGROUP_TRUE |
| 702 |
HAVE_SOME_CURSES |
| 703 |
HAVE_SOME_CURSES_FALSE |
| 704 |
HAVE_SOME_CURSES_TRUE |
| 705 |
NCURSES |
| 706 |
HAVE_UCX_FALSE |
| 707 |
HAVE_UCX_TRUE |
| 708 |
UCX_LIBS |
| 709 |
UCX_LDFLAGS |
| 710 |
UCX_CPPFLAGS |
| 711 |
BUILD_RRD_FALSE |
| 712 |
BUILD_RRD_TRUE |
| 713 |
RRDTOOL_LDFLAGS |
| 714 |
RRDTOOL_CPPFLAGS |
| 715 |
RRDTOOL_LIBS |
| 716 |
BUILD_IPMI_FALSE |
| 717 |
BUILD_IPMI_TRUE |
| 718 |
FREEIPMI_LDFLAGS |
| 719 |
FREEIPMI_CPPFLAGS |
| 720 |
FREEIPMI_LIBS |
| 721 |
HAVE_PMIX_V3_FALSE |
| 722 |
HAVE_PMIX_V3_TRUE |
| 723 |
HAVE_PMIX_V2_FALSE |
| 724 |
HAVE_PMIX_V2_TRUE |
| 725 |
HAVE_PMIX_V1_FALSE |
| 726 |
HAVE_PMIX_V1_TRUE |
| 727 |
HAVE_PMIX_FALSE |
| 728 |
HAVE_PMIX_TRUE |
| 729 |
PMIX_V3_LDFLAGS |
| 730 |
PMIX_V3_CPPFLAGS |
| 731 |
PMIX_V2_LDFLAGS |
| 732 |
PMIX_V2_CPPFLAGS |
| 733 |
PMIX_V1_LDFLAGS |
| 734 |
PMIX_V1_CPPFLAGS |
| 735 |
BUILD_NVML_FALSE |
| 736 |
BUILD_NVML_TRUE |
| 737 |
NVML_CPPFLAGS |
| 738 |
NVML_LIBS |
| 739 |
HWLOC_LDFLAGS |
| 740 |
HWLOC_CPPFLAGS |
| 741 |
HWLOC_LIBS |
| 742 |
LZ4_LIBS |
| 743 |
LZ4_LDFLAGS |
| 744 |
LZ4_CPPFLAGS |
| 745 |
ZLIB_LDFLAGS |
| 746 |
ZLIB_CPPFLAGS |
| 747 |
ZLIB_LIBS |
| 748 |
BUILD_HDF5_FALSE |
| 749 |
BUILD_HDF5_TRUE |
| 750 |
HDF5_TYPE |
| 751 |
HDF5_FLIBS |
| 752 |
HDF5_FFLAGS |
| 753 |
HDF5_FC |
| 754 |
HDF5_LIBS |
| 755 |
HDF5_LDFLAGS |
| 756 |
HDF5_CPPFLAGS |
| 757 |
HDF5_CFLAGS |
| 758 |
HDF5_CC |
| 759 |
HDF5_VERSION |
| 760 |
H5FC |
| 761 |
H5CC |
| 762 |
BUILD_OFED_FALSE |
| 763 |
BUILD_OFED_TRUE |
| 764 |
OFED_LDFLAGS |
| 765 |
OFED_CPPFLAGS |
| 766 |
OFED_LIBS |
| 767 |
PTHREAD_CFLAGS |
| 768 |
PTHREAD_LIBS |
| 769 |
PTHREAD_CC |
| 770 |
ax_pthread_config |
| 771 |
WITH_JSON_PARSER_FALSE |
| 772 |
WITH_JSON_PARSER_TRUE |
| 773 |
JSON_LDFLAGS |
| 774 |
JSON_CPPFLAGS |
| 775 |
LIB_SLURM_BUILD |
| 776 |
LIB_SLURM |
| 777 |
PAM_DIR |
| 778 |
HAVE_PAM_FALSE |
| 779 |
HAVE_PAM_TRUE |
| 780 |
PAM_LIBS |
| 781 |
HAVE_SCHED_SETAFFINITY_FALSE |
| 782 |
HAVE_SCHED_SETAFFINITY_TRUE |
| 783 |
HAVE_NUMA_FALSE |
| 784 |
HAVE_NUMA_TRUE |
| 785 |
NUMA_LIBS |
| 786 |
DL_LIBS |
| 787 |
SUCMD |
| 788 |
SLEEP_CMD |
| 789 |
WITH_GNU_LD_FALSE |
| 790 |
WITH_GNU_LD_TRUE |
| 791 |
WITH_CXX_FALSE |
| 792 |
WITH_CXX_TRUE |
| 793 |
AR_FLAGS |
| 794 |
PKG_CONFIG_LIBDIR |
| 795 |
PKG_CONFIG_PATH |
| 796 |
PKG_CONFIG |
| 797 |
CXXCPP |
| 798 |
CPP |
| 799 |
LT_SYS_LIBRARY_PATH |
| 800 |
OTOOL64 |
| 801 |
OTOOL |
| 802 |
LIPO |
| 803 |
NMEDIT |
| 804 |
DSYMUTIL |
| 805 |
MANIFEST_TOOL |
| 806 |
RANLIB |
| 807 |
ac_ct_AR |
| 808 |
AR |
| 809 |
DLLTOOL |
| 810 |
OBJDUMP |
| 811 |
LN_S |
| 812 |
NM |
| 813 |
ac_ct_DUMPBIN |
| 814 |
DUMPBIN |
| 815 |
LD |
| 816 |
FGREP |
| 817 |
EGREP |
| 818 |
GREP |
| 819 |
SED |
| 820 |
LIBTOOL |
| 821 |
am__fastdepCXX_FALSE |
| 822 |
am__fastdepCXX_TRUE |
| 823 |
CXXDEPMODE |
| 824 |
ac_ct_CXX |
| 825 |
CXXFLAGS |
| 826 |
CXX |
| 827 |
WITH_MYSQL_FALSE |
| 828 |
WITH_MYSQL_TRUE |
| 829 |
MYSQL_CFLAGS |
| 830 |
MYSQL_LIBS |
| 831 |
am__fastdepCC_FALSE |
| 832 |
am__fastdepCC_TRUE |
| 833 |
CCDEPMODE |
| 834 |
am__nodep |
| 835 |
AMDEPBACKSLASH |
| 836 |
AMDEP_FALSE |
| 837 |
AMDEP_TRUE |
| 838 |
am__include |
| 839 |
DEPDIR |
| 840 |
OBJEXT |
| 841 |
EXEEXT |
| 842 |
ac_ct_CC |
| 843 |
CPPFLAGS |
| 844 |
LDFLAGS |
| 845 |
CFLAGS |
| 846 |
CC |
| 847 |
HAVEMYSQLCONFIG |
| 848 |
MAINT |
| 849 |
MAINTAINER_MODE_FALSE |
| 850 |
MAINTAINER_MODE_TRUE |
| 851 |
AM_BACKSLASH |
| 852 |
AM_DEFAULT_VERBOSITY |
| 853 |
AM_DEFAULT_V |
| 854 |
AM_V |
| 855 |
am__untar |
| 856 |
am__tar |
| 857 |
AMTAR |
| 858 |
am__leading_dot |
| 859 |
SET_MAKE |
| 860 |
AWK |
| 861 |
mkdir_p |
| 862 |
MKDIR_P |
| 863 |
INSTALL_STRIP_PROGRAM |
| 864 |
STRIP |
| 865 |
install_sh |
| 866 |
MAKEINFO |
| 867 |
AUTOHEADER |
| 868 |
AUTOMAKE |
| 869 |
AUTOCONF |
| 870 |
ACLOCAL |
| 871 |
PACKAGE |
| 872 |
CYGPATH_W |
| 873 |
am__isrc |
| 874 |
INSTALL_DATA |
| 875 |
INSTALL_SCRIPT |
| 876 |
INSTALL_PROGRAM |
| 877 |
SLURM_VERSION_STRING |
| 878 |
RELEASE |
| 879 |
SLURM_MICRO |
| 880 |
SLURM_MINOR |
| 881 |
SLURM_MAJOR |
| 882 |
SLURM_VERSION_NUMBER |
| 883 |
VERSION |
| 884 |
SLURM_API_REVISION |
| 885 |
SLURM_API_AGE |
| 886 |
SLURM_API_MAJOR |
| 887 |
SLURM_API_CURRENT |
| 888 |
SLURM_API_VERSION |
| 889 |
PROJECT |
| 890 |
DONT_BUILD_FALSE |
| 891 |
DONT_BUILD_TRUE |
| 892 |
target_os |
| 893 |
target_vendor |
| 894 |
target_cpu |
| 895 |
target |
| 896 |
host_os |
| 897 |
host_vendor |
| 898 |
host_cpu |
| 899 |
host |
| 900 |
build_os |
| 901 |
build_vendor |
| 902 |
build_cpu |
| 903 |
build |
| 904 |
target_alias |
| 905 |
host_alias |
| 906 |
build_alias |
| 907 |
LIBS |
| 908 |
ECHO_T |
| 909 |
ECHO_N |
| 910 |
ECHO_C |
| 911 |
DEFS |
| 912 |
mandir |
| 913 |
localedir |
| 914 |
libdir |
| 915 |
psdir |
| 916 |
pdfdir |
| 917 |
dvidir |
| 918 |
htmldir |
| 919 |
infodir |
| 920 |
docdir |
| 921 |
oldincludedir |
| 922 |
includedir |
| 923 |
runstatedir |
| 924 |
localstatedir |
| 925 |
sharedstatedir |
| 926 |
sysconfdir |
| 927 |
datadir |
| 928 |
datarootdir |
| 929 |
libexecdir |
| 930 |
sbindir |
| 931 |
bindir |
| 932 |
program_transform_name |
| 933 |
prefix |
| 934 |
exec_prefix |
| 935 |
PACKAGE_URL |
| 936 |
PACKAGE_BUGREPORT |
| 937 |
PACKAGE_STRING |
| 938 |
PACKAGE_VERSION |
| 939 |
PACKAGE_TARNAME |
| 940 |
PACKAGE_NAME |
| 941 |
PATH_SEPARATOR |
| 942 |
SHELL |
| 943 |
am__quote' |
| 944 |
ac_subst_files='' |
| 945 |
ac_user_opts=' |
| 946 |
enable_option_checking |
| 947 |
enable_silent_rules |
| 948 |
enable_maintainer_mode |
| 949 |
with_rpath |
| 950 |
with_mysql_config |
| 951 |
enable_dependency_tracking |
| 952 |
enable_shared |
| 953 |
enable_static |
| 954 |
with_pic |
| 955 |
enable_fast_install |
| 956 |
with_aix_soname |
| 957 |
with_gnu_ld |
| 958 |
with_sysroot |
| 959 |
enable_libtool_lock |
| 960 |
with_cpusetdir |
| 961 |
enable_pam |
| 962 |
with_pam_dir |
| 963 |
with_shared_libslurm |
| 964 |
enable_iso8601 |
| 965 |
enable_load_env_no_login |
| 966 |
with_json |
| 967 |
with_dimensions |
| 968 |
with_ofed |
| 969 |
with_hdf5 |
| 970 |
with_zlib |
| 971 |
with_lz4 |
| 972 |
with_hwloc |
| 973 |
with_nvml |
| 974 |
with_pmix |
| 975 |
with_freeipmi |
| 976 |
with_rrdtool |
| 977 |
with_ucx |
| 978 |
enable_x11 |
| 979 |
enable_glibtest |
| 980 |
enable_gtktest |
| 981 |
enable_cray_network |
| 982 |
enable_really_no_cray |
| 983 |
with_cray_dir |
| 984 |
with_datawarp |
| 985 |
enable_optimizations |
| 986 |
enable_developer |
| 987 |
enable_debug |
| 988 |
enable_memory_leak_debug |
| 989 |
enable_front_end |
| 990 |
enable_partial_attach |
| 991 |
enable_salloc_kill_cmd |
| 992 |
enable_salloc_background |
| 993 |
with_slurmctld_port |
| 994 |
with_slurmd_port |
| 995 |
with_slurmdbd_port |
| 996 |
with_slurmctld_port_count |
| 997 |
with_netloc |
| 998 |
with_readline |
| 999 |
with_munge |
| 1000 |
enable_multiple_slurmd |
| 1001 |
with_libcurl |
| 1002 |
enable_deprecated |
| 1003 |
' |
| 1004 |
ac_precious_vars='build_alias |
| 1005 |
host_alias |
| 1006 |
target_alias |
| 1007 |
CC |
| 1008 |
CFLAGS |
| 1009 |
LDFLAGS |
| 1010 |
LIBS |
| 1011 |
CPPFLAGS |
| 1012 |
CXX |
| 1013 |
CXXFLAGS |
| 1014 |
CCC |
| 1015 |
LT_SYS_LIBRARY_PATH |
| 1016 |
CPP |
| 1017 |
CXXCPP |
| 1018 |
PKG_CONFIG |
| 1019 |
PKG_CONFIG_PATH |
| 1020 |
PKG_CONFIG_LIBDIR |
| 1021 |
CHECK_CFLAGS |
| 1022 |
CHECK_LIBS |
| 1023 |
GLIB_CFLAGS |
| 1024 |
GLIB_LIBS |
| 1025 |
GLIB_GENMARSHAL |
| 1026 |
GOBJECT_QUERY |
| 1027 |
GLIB_MKENUMS |
| 1028 |
GLIB_COMPILE_RESOURCES |
| 1029 |
lua_CFLAGS |
| 1030 |
lua_LIBS' |
| 1031 |
|
| 1032 |
|
| 1033 |
# Initialize some variables set by options. |
| 1034 |
ac_init_help= |
| 1035 |
ac_init_version=false |
| 1036 |
ac_unrecognized_opts= |
| 1037 |
ac_unrecognized_sep= |
| 1038 |
# The variables have the same names as the options, with |
| 1039 |
# dashes changed to underlines. |
| 1040 |
cache_file=/dev/null |
| 1041 |
exec_prefix=NONE |
| 1042 |
no_create= |
| 1043 |
no_recursion= |
| 1044 |
prefix=NONE |
| 1045 |
program_prefix=NONE |
| 1046 |
program_suffix=NONE |
| 1047 |
program_transform_name=s,x,x, |
| 1048 |
silent= |
| 1049 |
site= |
| 1050 |
srcdir= |
| 1051 |
verbose= |
| 1052 |
x_includes=NONE |
| 1053 |
x_libraries=NONE |
| 1054 |
|
| 1055 |
# Installation directory options. |
| 1056 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
| 1057 |
# and all the variables that are supposed to be based on exec_prefix |
| 1058 |
# by default will actually change. |
| 1059 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
| 1060 |
# (The list follows the same order as the GNU Coding Standards.) |
| 1061 |
bindir='${exec_prefix}/bin' |
| 1062 |
sbindir='${exec_prefix}/sbin' |
| 1063 |
libexecdir='${exec_prefix}/libexec' |
| 1064 |
datarootdir='${prefix}/share' |
| 1065 |
datadir='${datarootdir}' |
| 1066 |
sysconfdir='${prefix}/etc' |
| 1067 |
sharedstatedir='${prefix}/com' |
| 1068 |
localstatedir='${prefix}/var' |
| 1069 |
runstatedir='${localstatedir}/run' |
| 1070 |
includedir='${prefix}/include' |
| 1071 |
oldincludedir='/usr/include' |
| 1072 |
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 1073 |
infodir='${datarootdir}/info' |
| 1074 |
htmldir='${docdir}' |
| 1075 |
dvidir='${docdir}' |
| 1076 |
pdfdir='${docdir}' |
| 1077 |
psdir='${docdir}' |
| 1078 |
libdir='${exec_prefix}/lib' |
| 1079 |
localedir='${datarootdir}/locale' |
| 1080 |
mandir='${datarootdir}/man' |
| 1081 |
|
| 1082 |
ac_prev= |
| 1083 |
ac_dashdash= |
| 1084 |
for ac_option |
| 1085 |
do |
| 1086 |
# If the previous option needs an argument, assign it. |
| 1087 |
if test -n "$ac_prev"; then |
| 1088 |
eval $ac_prev=\$ac_option |
| 1089 |
ac_prev= |
| 1090 |
continue |
| 1091 |
fi |
| 1092 |
|
| 1093 |
case $ac_option in |
| 1094 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1095 |
*=) ac_optarg= ;; |
| 1096 |
*) ac_optarg=yes ;; |
| 1097 |
esac |
| 1098 |
|
| 1099 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
| 1100 |
|
| 1101 |
case $ac_dashdash$ac_option in |
| 1102 |
--) |
| 1103 |
ac_dashdash=yes ;; |
| 1104 |
|
| 1105 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1106 |
ac_prev=bindir ;; |
| 1107 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1108 |
bindir=$ac_optarg ;; |
| 1109 |
|
| 1110 |
-build | --build | --buil | --bui | --bu) |
| 1111 |
ac_prev=build_alias ;; |
| 1112 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1113 |
build_alias=$ac_optarg ;; |
| 1114 |
|
| 1115 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1116 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1117 |
ac_prev=cache_file ;; |
| 1118 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1119 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1120 |
cache_file=$ac_optarg ;; |
| 1121 |
|
| 1122 |
--config-cache | -C) |
| 1123 |
cache_file=config.cache ;; |
| 1124 |
|
| 1125 |
-datadir | --datadir | --datadi | --datad) |
| 1126 |
ac_prev=datadir ;; |
| 1127 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 1128 |
datadir=$ac_optarg ;; |
| 1129 |
|
| 1130 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1131 |
| --dataroo | --dataro | --datar) |
| 1132 |
ac_prev=datarootdir ;; |
| 1133 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1134 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1135 |
datarootdir=$ac_optarg ;; |
| 1136 |
|
| 1137 |
-disable-* | --disable-*) |
| 1138 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1139 |
# Reject names that are not valid shell variable names. |
| 1140 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1141 |
as_fn_error $? "invalid feature name: $ac_useropt" |
| 1142 |
ac_useropt_orig=$ac_useropt |
| 1143 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1144 |
case $ac_user_opts in |
| 1145 |
*" |
| 1146 |
"enable_$ac_useropt" |
| 1147 |
"*) ;; |
| 1148 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1149 |
ac_unrecognized_sep=', ';; |
| 1150 |
esac |
| 1151 |
eval enable_$ac_useropt=no ;; |
| 1152 |
|
| 1153 |
-docdir | --docdir | --docdi | --doc | --do) |
| 1154 |
ac_prev=docdir ;; |
| 1155 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1156 |
docdir=$ac_optarg ;; |
| 1157 |
|
| 1158 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1159 |
ac_prev=dvidir ;; |
| 1160 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1161 |
dvidir=$ac_optarg ;; |
| 1162 |
|
| 1163 |
-enable-* | --enable-*) |
| 1164 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1165 |
# Reject names that are not valid shell variable names. |
| 1166 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1167 |
as_fn_error $? "invalid feature name: $ac_useropt" |
| 1168 |
ac_useropt_orig=$ac_useropt |
| 1169 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1170 |
case $ac_user_opts in |
| 1171 |
*" |
| 1172 |
"enable_$ac_useropt" |
| 1173 |
"*) ;; |
| 1174 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1175 |
ac_unrecognized_sep=', ';; |
| 1176 |
esac |
| 1177 |
eval enable_$ac_useropt=\$ac_optarg ;; |
| 1178 |
|
| 1179 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1180 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1181 |
| --exec | --exe | --ex) |
| 1182 |
ac_prev=exec_prefix ;; |
| 1183 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1184 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1185 |
| --exec=* | --exe=* | --ex=*) |
| 1186 |
exec_prefix=$ac_optarg ;; |
| 1187 |
|
| 1188 |
-gas | --gas | --ga | --g) |
| 1189 |
# Obsolete; use --with-gas. |
| 1190 |
with_gas=yes ;; |
| 1191 |
|
| 1192 |
-help | --help | --hel | --he | -h) |
| 1193 |
ac_init_help=long ;; |
| 1194 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1195 |
ac_init_help=recursive ;; |
| 1196 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1197 |
ac_init_help=short ;; |
| 1198 |
|
| 1199 |
-host | --host | --hos | --ho) |
| 1200 |
ac_prev=host_alias ;; |
| 1201 |
-host=* | --host=* | --hos=* | --ho=*) |
| 1202 |
host_alias=$ac_optarg ;; |
| 1203 |
|
| 1204 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1205 |
ac_prev=htmldir ;; |
| 1206 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1207 |
| --ht=*) |
| 1208 |
htmldir=$ac_optarg ;; |
| 1209 |
|
| 1210 |
-includedir | --includedir | --includedi | --included | --include \ |
| 1211 |
| --includ | --inclu | --incl | --inc) |
| 1212 |
ac_prev=includedir ;; |
| 1213 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1214 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1215 |
includedir=$ac_optarg ;; |
| 1216 |
|
| 1217 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1218 |
ac_prev=infodir ;; |
| 1219 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1220 |
infodir=$ac_optarg ;; |
| 1221 |
|
| 1222 |
-libdir | --libdir | --libdi | --libd) |
| 1223 |
ac_prev=libdir ;; |
| 1224 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1225 |
libdir=$ac_optarg ;; |
| 1226 |
|
| 1227 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1228 |
| --libexe | --libex | --libe) |
| 1229 |
ac_prev=libexecdir ;; |
| 1230 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1231 |
| --libexe=* | --libex=* | --libe=*) |
| 1232 |
libexecdir=$ac_optarg ;; |
| 1233 |
|
| 1234 |
-localedir | --localedir | --localedi | --localed | --locale) |
| 1235 |
ac_prev=localedir ;; |
| 1236 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1237 |
localedir=$ac_optarg ;; |
| 1238 |
|
| 1239 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1240 |
| --localstate | --localstat | --localsta | --localst | --locals) |
| 1241 |
ac_prev=localstatedir ;; |
| 1242 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1243 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1244 |
localstatedir=$ac_optarg ;; |
| 1245 |
|
| 1246 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1247 |
ac_prev=mandir ;; |
| 1248 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1249 |
mandir=$ac_optarg ;; |
| 1250 |
|
| 1251 |
-nfp | --nfp | --nf) |
| 1252 |
# Obsolete; use --without-fp. |
| 1253 |
with_fp=no ;; |
| 1254 |
|
| 1255 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1256 |
| --no-cr | --no-c | -n) |
| 1257 |
no_create=yes ;; |
| 1258 |
|
| 1259 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1260 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1261 |
no_recursion=yes ;; |
| 1262 |
|
| 1263 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1264 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1265 |
| --oldin | --oldi | --old | --ol | --o) |
| 1266 |
ac_prev=oldincludedir ;; |
| 1267 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1268 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1269 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1270 |
oldincludedir=$ac_optarg ;; |
| 1271 |
|
| 1272 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1273 |
ac_prev=prefix ;; |
| 1274 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1275 |
prefix=$ac_optarg ;; |
| 1276 |
|
| 1277 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1278 |
| --program-pre | --program-pr | --program-p) |
| 1279 |
ac_prev=program_prefix ;; |
| 1280 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1281 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1282 |
program_prefix=$ac_optarg ;; |
| 1283 |
|
| 1284 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1285 |
| --program-suf | --program-su | --program-s) |
| 1286 |
ac_prev=program_suffix ;; |
| 1287 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1288 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1289 |
program_suffix=$ac_optarg ;; |
| 1290 |
|
| 1291 |
-program-transform-name | --program-transform-name \ |
| 1292 |
| --program-transform-nam | --program-transform-na \ |
| 1293 |
| --program-transform-n | --program-transform- \ |
| 1294 |
| --program-transform | --program-transfor \ |
| 1295 |
| --program-transfo | --program-transf \ |
| 1296 |
| --program-trans | --program-tran \ |
| 1297 |
| --progr-tra | --program-tr | --program-t) |
| 1298 |
ac_prev=program_transform_name ;; |
| 1299 |
-program-transform-name=* | --program-transform-name=* \ |
| 1300 |
| --program-transform-nam=* | --program-transform-na=* \ |
| 1301 |
| --program-transform-n=* | --program-transform-=* \ |
| 1302 |
| --program-transform=* | --program-transfor=* \ |
| 1303 |
| --program-transfo=* | --program-transf=* \ |
| 1304 |
| --program-trans=* | --program-tran=* \ |
| 1305 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| 1306 |
program_transform_name=$ac_optarg ;; |
| 1307 |
|
| 1308 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1309 |
ac_prev=pdfdir ;; |
| 1310 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1311 |
pdfdir=$ac_optarg ;; |
| 1312 |
|
| 1313 |
-psdir | --psdir | --psdi | --psd | --ps) |
| 1314 |
ac_prev=psdir ;; |
| 1315 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1316 |
psdir=$ac_optarg ;; |
| 1317 |
|
| 1318 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1319 |
| -silent | --silent | --silen | --sile | --sil) |
| 1320 |
silent=yes ;; |
| 1321 |
|
| 1322 |
-runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1323 |
| --runstate | --runstat | --runsta | --runst | --runs \ |
| 1324 |
| --run | --ru | --r) |
| 1325 |
ac_prev=runstatedir ;; |
| 1326 |
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1327 |
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1328 |
| --run=* | --ru=* | --r=*) |
| 1329 |
runstatedir=$ac_optarg ;; |
| 1330 |
|
| 1331 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1332 |
ac_prev=sbindir ;; |
| 1333 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1334 |
| --sbi=* | --sb=*) |
| 1335 |
sbindir=$ac_optarg ;; |
| 1336 |
|
| 1337 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1338 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1339 |
| --sharedst | --shareds | --shared | --share | --shar \ |
| 1340 |
| --sha | --sh) |
| 1341 |
ac_prev=sharedstatedir ;; |
| 1342 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1343 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1344 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1345 |
| --sha=* | --sh=*) |
| 1346 |
sharedstatedir=$ac_optarg ;; |
| 1347 |
|
| 1348 |
-site | --site | --sit) |
| 1349 |
ac_prev=site ;; |
| 1350 |
-site=* | --site=* | --sit=*) |
| 1351 |
site=$ac_optarg ;; |
| 1352 |
|
| 1353 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1354 |
ac_prev=srcdir ;; |
| 1355 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1356 |
srcdir=$ac_optarg ;; |
| 1357 |
|
| 1358 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1359 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| 1360 |
ac_prev=sysconfdir ;; |
| 1361 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1362 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1363 |
sysconfdir=$ac_optarg ;; |
| 1364 |
|
| 1365 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
| 1366 |
ac_prev=target_alias ;; |
| 1367 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1368 |
target_alias=$ac_optarg ;; |
| 1369 |
|
| 1370 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1371 |
verbose=yes ;; |
| 1372 |
|
| 1373 |
-version | --version | --versio | --versi | --vers | -V) |
| 1374 |
ac_init_version=: ;; |
| 1375 |
|
| 1376 |
-with-* | --with-*) |
| 1377 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1378 |
# Reject names that are not valid shell variable names. |
| 1379 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1380 |
as_fn_error $? "invalid package name: $ac_useropt" |
| 1381 |
ac_useropt_orig=$ac_useropt |
| 1382 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1383 |
case $ac_user_opts in |
| 1384 |
*" |
| 1385 |
"with_$ac_useropt" |
| 1386 |
"*) ;; |
| 1387 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1388 |
ac_unrecognized_sep=', ';; |
| 1389 |
esac |
| 1390 |
eval with_$ac_useropt=\$ac_optarg ;; |
| 1391 |
|
| 1392 |
-without-* | --without-*) |
| 1393 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1394 |
# Reject names that are not valid shell variable names. |
| 1395 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1396 |
as_fn_error $? "invalid package name: $ac_useropt" |
| 1397 |
ac_useropt_orig=$ac_useropt |
| 1398 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1399 |
case $ac_user_opts in |
| 1400 |
*" |
| 1401 |
"with_$ac_useropt" |
| 1402 |
"*) ;; |
| 1403 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1404 |
ac_unrecognized_sep=', ';; |
| 1405 |
esac |
| 1406 |
eval with_$ac_useropt=no ;; |
| 1407 |
|
| 1408 |
--x) |
| 1409 |
# Obsolete; use --with-x. |
| 1410 |
with_x=yes ;; |
| 1411 |
|
| 1412 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1413 |
| --x-incl | --x-inc | --x-in | --x-i) |
| 1414 |
ac_prev=x_includes ;; |
| 1415 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1416 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1417 |
x_includes=$ac_optarg ;; |
| 1418 |
|
| 1419 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1420 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1421 |
ac_prev=x_libraries ;; |
| 1422 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1423 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1424 |
x_libraries=$ac_optarg ;; |
| 1425 |
|
| 1426 |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1427 |
Try \`$0 --help' for more information" |
| 1428 |
;; |
| 1429 |
|
| 1430 |
*=*) |
| 1431 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1432 |
# Reject names that are not valid shell variable names. |
| 1433 |
case $ac_envvar in #( |
| 1434 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1435 |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1436 |
esac |
| 1437 |
eval $ac_envvar=\$ac_optarg |
| 1438 |
export $ac_envvar ;; |
| 1439 |
|
| 1440 |
*) |
| 1441 |
# FIXME: should be removed in autoconf 3.0. |
| 1442 |
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1443 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1444 |
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1445 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1446 |
;; |
| 1447 |
|
| 1448 |
esac |
| 1449 |
done |
| 1450 |
|
| 1451 |
if test -n "$ac_prev"; then |
| 1452 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1453 |
as_fn_error $? "missing argument to $ac_option" |
| 1454 |
fi |
| 1455 |
|
| 1456 |
if test -n "$ac_unrecognized_opts"; then |
| 1457 |
case $enable_option_checking in |
| 1458 |
no) ;; |
| 1459 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1460 |
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1461 |
esac |
| 1462 |
fi |
| 1463 |
|
| 1464 |
# Check all directory arguments for consistency. |
| 1465 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1466 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1467 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1468 |
libdir localedir mandir runstatedir |
| 1469 |
do |
| 1470 |
eval ac_val=\$$ac_var |
| 1471 |
# Remove trailing slashes. |
| 1472 |
case $ac_val in |
| 1473 |
*/ ) |
| 1474 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1475 |
eval $ac_var=\$ac_val;; |
| 1476 |
esac |
| 1477 |
# Be sure to have absolute directory names. |
| 1478 |
case $ac_val in |
| 1479 |
[\\/$]* | ?:[\\/]* ) continue;; |
| 1480 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1481 |
esac |
| 1482 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1483 |
done |
| 1484 |
|
| 1485 |
# There might be people who depend on the old broken behavior: `$host' |
| 1486 |
# used to hold the argument of --host etc. |
| 1487 |
# FIXME: To remove some day. |
| 1488 |
build=$build_alias |
| 1489 |
host=$host_alias |
| 1490 |
target=$target_alias |
| 1491 |
|
| 1492 |
# FIXME: To remove some day. |
| 1493 |
if test "x$host_alias" != x; then |
| 1494 |
if test "x$build_alias" = x; then |
| 1495 |
cross_compiling=maybe |
| 1496 |
elif test "x$build_alias" != "x$host_alias"; then |
| 1497 |
cross_compiling=yes |
| 1498 |
fi |
| 1499 |
fi |
| 1500 |
|
| 1501 |
ac_tool_prefix= |
| 1502 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1503 |
|
| 1504 |
test "$silent" = yes && exec 6>/dev/null |
| 1505 |
|
| 1506 |
|
| 1507 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1508 |
ac_ls_di=`ls -di .` && |
| 1509 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1510 |
as_fn_error $? "working directory cannot be determined" |
| 1511 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1512 |
as_fn_error $? "pwd does not report name of working directory" |
| 1513 |
|
| 1514 |
|
| 1515 |
# Find the source files, if location was not specified. |
| 1516 |
if test -z "$srcdir"; then |
| 1517 |
ac_srcdir_defaulted=yes |
| 1518 |
# Try the directory containing this script, then the parent directory. |
| 1519 |
ac_confdir=`$as_dirname -- "$as_myself" || |
| 1520 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1521 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1522 |
X"$as_myself" : 'X\(//\)$' \| \ |
| 1523 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1524 |
$as_echo X"$as_myself" | |
| 1525 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1526 |
s//\1/ |
| 1527 |
q |
| 1528 |
} |
| 1529 |
/^X\(\/\/\)[^/].*/{ |
| 1530 |
s//\1/ |
| 1531 |
q |
| 1532 |
} |
| 1533 |
/^X\(\/\/\)$/{ |
| 1534 |
s//\1/ |
| 1535 |
q |
| 1536 |
} |
| 1537 |
/^X\(\/\).*/{ |
| 1538 |
s//\1/ |
| 1539 |
q |
| 1540 |
} |
| 1541 |
s/.*/./; q'` |
| 1542 |
srcdir=$ac_confdir |
| 1543 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1544 |
srcdir=.. |
| 1545 |
fi |
| 1546 |
else |
| 1547 |
ac_srcdir_defaulted=no |
| 1548 |
fi |
| 1549 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1550 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1551 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1552 |
fi |
| 1553 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1554 |
ac_abs_confdir=`( |
| 1555 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1556 |
pwd)` |
| 1557 |
# When building in place, set srcdir=. |
| 1558 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1559 |
srcdir=. |
| 1560 |
fi |
| 1561 |
# Remove unnecessary trailing slashes from srcdir. |
| 1562 |
# Double slashes in file names in object file debugging info |
| 1563 |
# mess up M-x gdb in Emacs. |
| 1564 |
case $srcdir in |
| 1565 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1566 |
esac |
| 1567 |
for ac_var in $ac_precious_vars; do |
| 1568 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1569 |
eval ac_env_${ac_var}_value=\$${ac_var} |
| 1570 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1571 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1572 |
done |
| 1573 |
|
| 1574 |
# |
| 1575 |
# Report the --help message. |
| 1576 |
# |
| 1577 |
if test "$ac_init_help" = "long"; then |
| 1578 |
# Omit some internal or obsolete options to make the list less imposing. |
| 1579 |
# This message is too long to be a string in the A/UX 3.1 sh. |
| 1580 |
cat <<_ACEOF |
| 1581 |
\`configure' configures slurm 19.05 to adapt to many kinds of systems. |
| 1582 |
|
| 1583 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1584 |
|
| 1585 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1586 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1587 |
|
| 1588 |
Defaults for the options are specified in brackets. |
| 1589 |
|
| 1590 |
Configuration: |
| 1591 |
-h, --help display this help and exit |
| 1592 |
--help=short display options specific to this package |
| 1593 |
--help=recursive display the short help of all the included packages |
| 1594 |
-V, --version display version information and exit |
| 1595 |
-q, --quiet, --silent do not print \`checking ...' messages |
| 1596 |
--cache-file=FILE cache test results in FILE [disabled] |
| 1597 |
-C, --config-cache alias for \`--cache-file=config.cache' |
| 1598 |
-n, --no-create do not create output files |
| 1599 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1600 |
|
| 1601 |
Installation directories: |
| 1602 |
--prefix=PREFIX install architecture-independent files in PREFIX |
| 1603 |
[$ac_default_prefix] |
| 1604 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1605 |
[PREFIX] |
| 1606 |
|
| 1607 |
By default, \`make install' will install all the files in |
| 1608 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1609 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1610 |
for instance \`--prefix=\$HOME'. |
| 1611 |
|
| 1612 |
For better control, use the options below. |
| 1613 |
|
| 1614 |
Fine tuning of the installation directories: |
| 1615 |
--bindir=DIR user executables [EPREFIX/bin] |
| 1616 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1617 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
| 1618 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1619 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1620 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1621 |
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
| 1622 |
--libdir=DIR object code libraries [EPREFIX/lib] |
| 1623 |
--includedir=DIR C header files [PREFIX/include] |
| 1624 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1625 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1626 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1627 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
| 1628 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1629 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
| 1630 |
--docdir=DIR documentation root [DATAROOTDIR/doc/slurm] |
| 1631 |
--htmldir=DIR html documentation [DOCDIR] |
| 1632 |
--dvidir=DIR dvi documentation [DOCDIR] |
| 1633 |
--pdfdir=DIR pdf documentation [DOCDIR] |
| 1634 |
--psdir=DIR ps documentation [DOCDIR] |
| 1635 |
_ACEOF |
| 1636 |
|
| 1637 |
cat <<\_ACEOF |
| 1638 |
|
| 1639 |
Program names: |
| 1640 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
| 1641 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
| 1642 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1643 |
|
| 1644 |
System types: |
| 1645 |
--build=BUILD configure for building on BUILD [guessed] |
| 1646 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1647 |
--target=TARGET configure for building compilers for TARGET [HOST] |
| 1648 |
_ACEOF |
| 1649 |
fi |
| 1650 |
|
| 1651 |
if test -n "$ac_init_help"; then |
| 1652 |
case $ac_init_help in |
| 1653 |
short | recursive ) echo "Configuration of slurm 19.05:";; |
| 1654 |
esac |
| 1655 |
cat <<\_ACEOF |
| 1656 |
|
| 1657 |
Optional Features: |
| 1658 |
--disable-option-checking ignore unrecognized --enable/--with options |
| 1659 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1660 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1661 |
--enable-silent-rules less verbose build output (undo: "make V=1") |
| 1662 |
--disable-silent-rules verbose build output (undo: "make V=0") |
| 1663 |
--enable-maintainer-mode |
| 1664 |
enable make rules and dependencies not useful (and |
| 1665 |
sometimes confusing) to the casual installer |
| 1666 |
--enable-dependency-tracking |
| 1667 |
do not reject slow dependency extractors |
| 1668 |
--disable-dependency-tracking |
| 1669 |
speeds up one-time build |
| 1670 |
--enable-shared[=PKGS] build shared libraries [default=yes] |
| 1671 |
--enable-static[=PKGS] build static libraries [default=yes] |
| 1672 |
--enable-fast-install[=PKGS] |
| 1673 |
optimize for fast installation [default=yes] |
| 1674 |
--disable-libtool-lock avoid locking (might break parallel builds) |
| 1675 |
--enable-pam enable PAM (Pluggable Authentication Modules) |
| 1676 |
support |
| 1677 |
--disable-iso8601 disable ISO 8601 time format support |
| 1678 |
--enable-load-env-no-login |
| 1679 |
enable --get-user-env option to load user |
| 1680 |
environment without .login |
| 1681 |
--disable-x11 disable internal X11 support |
| 1682 |
--disable-glibtest do not try to compile and run a test GLIB program |
| 1683 |
--disable-gtktest do not try to compile and run a test GTK+ program |
| 1684 |
--enable-cray-network Run Slurm on a non-Cray system with a Cray network |
| 1685 |
--enable-really-no-cray Disable cray support for eslogin machines |
| 1686 |
--disable-optimizations disable optimizations (sets -O0) |
| 1687 |
--enable-developer enable developer options (asserts, -Werror - also |
| 1688 |
sets --enable-debug as well) |
| 1689 |
--disable-debug disable debugging symbols and compile with |
| 1690 |
optimizations |
| 1691 |
--enable-memory-leak-debug |
| 1692 |
enable memory leak debugging code for development |
| 1693 |
--enable-front-end enable slurmd operation on a front-end |
| 1694 |
--disable-partial-attach |
| 1695 |
disable debugger partial task attach support |
| 1696 |
--enable-salloc-kill-cmd |
| 1697 |
salloc should kill child processes at job |
| 1698 |
termination |
| 1699 |
--disable-salloc-background |
| 1700 |
disable salloc execution in the background |
| 1701 |
--enable-multiple-slurmd |
| 1702 |
enable multiple-slurmd support |
| 1703 |
--enable-deprecated enable deprecated |
| 1704 |
|
| 1705 |
Optional Packages: |
| 1706 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1707 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1708 |
--without-rpath Do not include rpath in build |
| 1709 |
--with-mysql_config=PATH |
| 1710 |
Specify path of directory where mysql_config binary |
| 1711 |
exists |
| 1712 |
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
| 1713 |
both] |
| 1714 |
--with-aix-soname=aix|svr4|both |
| 1715 |
shared library versioning (aka "SONAME") variant to |
| 1716 |
provide on AIX, [default=aix]. |
| 1717 |
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1718 |
--with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
| 1719 |
compiler's sysroot if not specified). |
| 1720 |
--with-cpusetdir=PATH specify path to cpuset directory default is |
| 1721 |
/dev/cpuset |
| 1722 |
--with-pam_dir=PATH Specify path to PAM module installation |
| 1723 |
--without-shared-libslurm |
| 1724 |
statically link to libslurm.o instead of the shared |
| 1725 |
libslurm lib - can dramatically increase the |
| 1726 |
footprint of Slurm. |
| 1727 |
--with-json=PATH Specify path to json-c installation |
| 1728 |
--with-dimensions=N set system dimension count for generic computer |
| 1729 |
system |
| 1730 |
--with-ofed=PATH Specify path to ofed installation |
| 1731 |
--with-hdf5=yes/no/PATH location of h5cc or h5pcc for HDF5 configuration |
| 1732 |
--with-zlib=DIR root directory path of zlib installation [defaults to |
| 1733 |
/usr/local or /usr if not found in /usr/local] |
| 1734 |
--without-zlib to disable zlib usage completely |
| 1735 |
--with-lz4=DIR root directory path of lz4 installation [defaults to |
| 1736 |
/usr/local or /usr if not found in /usr/local] |
| 1737 |
--without-lz4 to disable lz4 usage completely |
| 1738 |
--with-hwloc=PATH Specify path to hwloc installation |
| 1739 |
--without-nvml Do not build NVIDIA NVML-related code |
| 1740 |
--with-pmix=PATH Specify path to pmix installation(s). Multiple |
| 1741 |
version directories can be ':' delimited. |
| 1742 |
--with-freeipmi=PATH Specify path to freeipmi installation |
| 1743 |
--with-rrdtool=PATH Specify path to rrdtool-devel installation |
| 1744 |
--with-ucx=PATH Build with Unified Communication X library support |
| 1745 |
--with-cray_dir=PATH Specify path to Cray file installation - /opt/cray |
| 1746 |
by default |
| 1747 |
--with-datawarp=PATH Specify path to DataWarp installation |
| 1748 |
--with-slurmctld-port=N set slurmctld default port [6817] |
| 1749 |
--with-slurmd-port=N set slurmd default port [6818] |
| 1750 |
--with-slurmdbd-port=N set slurmdbd default port [6819] |
| 1751 |
--with-slurmctld-port-count=N |
| 1752 |
set slurmctld default port count [1] |
| 1753 |
--with-netloc=PATH Specify path to netloc installation |
| 1754 |
--without-readline compile without readline support |
| 1755 |
--with-munge=PATH Specify path to munge installation |
| 1756 |
--with-libcurl=PREFIX look for the curl library in PREFIX/lib and headers |
| 1757 |
in PREFIX/include |
| 1758 |
|
| 1759 |
Some influential environment variables: |
| 1760 |
CC C compiler command |
| 1761 |
CFLAGS C compiler flags |
| 1762 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1763 |
nonstandard directory <lib dir> |
| 1764 |
LIBS libraries to pass to the linker, e.g. -l<library> |
| 1765 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1766 |
you have headers in a nonstandard directory <include dir> |
| 1767 |
CXX C++ compiler command |
| 1768 |
CXXFLAGS C++ compiler flags |
| 1769 |
LT_SYS_LIBRARY_PATH |
| 1770 |
User-defined run-time library search path. |
| 1771 |
CPP C preprocessor |
| 1772 |
CXXCPP C++ preprocessor |
| 1773 |
PKG_CONFIG path to pkg-config utility |
| 1774 |
PKG_CONFIG_PATH |
| 1775 |
directories to add to pkg-config's search path |
| 1776 |
PKG_CONFIG_LIBDIR |
| 1777 |
path overriding pkg-config's built-in search path |
| 1778 |
CHECK_CFLAGS |
| 1779 |
C compiler flags for CHECK, overriding pkg-config |
| 1780 |
CHECK_LIBS linker flags for CHECK, overriding pkg-config |
| 1781 |
GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config |
| 1782 |
GLIB_LIBS linker flags for GLIB, overriding pkg-config |
| 1783 |
GLIB_GENMARSHAL |
| 1784 |
value of glib_genmarshal for glib-2.0, overriding pkg-config |
| 1785 |
GOBJECT_QUERY |
| 1786 |
value of gobject_query for glib-2.0, overriding pkg-config |
| 1787 |
GLIB_MKENUMS |
| 1788 |
value of glib_mkenums for glib-2.0, overriding pkg-config |
| 1789 |
GLIB_COMPILE_RESOURCES |
| 1790 |
value of glib_compile_resources for gio-2.0, overriding |
| 1791 |
pkg-config |
| 1792 |
lua_CFLAGS C compiler flags for lua, overriding pkg-config |
| 1793 |
lua_LIBS linker flags for lua, overriding pkg-config |
| 1794 |
|
| 1795 |
Use these variables to override the choices made by `configure' or to help |
| 1796 |
it to find libraries and programs with nonstandard names/locations. |
| 1797 |
|
| 1798 |
Report bugs to the package provider. |
| 1799 |
slurm home page: <https://slurm.schedmd.com>. |
| 1800 |
_ACEOF |
| 1801 |
ac_status=$? |
| 1802 |
fi |
| 1803 |
|
| 1804 |
if test "$ac_init_help" = "recursive"; then |
| 1805 |
# If there are subdirs, report their specific --help. |
| 1806 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1807 |
test -d "$ac_dir" || |
| 1808 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1809 |
continue |
| 1810 |
ac_builddir=. |
| 1811 |
|
| 1812 |
case "$ac_dir" in |
| 1813 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1814 |
*) |
| 1815 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1816 |
# A ".." for each directory in $ac_dir_suffix. |
| 1817 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1818 |
case $ac_top_builddir_sub in |
| 1819 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1820 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1821 |
esac ;; |
| 1822 |
esac |
| 1823 |
ac_abs_top_builddir=$ac_pwd |
| 1824 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1825 |
# for backward compatibility: |
| 1826 |
ac_top_builddir=$ac_top_build_prefix |
| 1827 |
|
| 1828 |
case $srcdir in |
| 1829 |
.) # We are building in place. |
| 1830 |
ac_srcdir=. |
| 1831 |
ac_top_srcdir=$ac_top_builddir_sub |
| 1832 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 1833 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 1834 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 1835 |
ac_top_srcdir=$srcdir |
| 1836 |
ac_abs_top_srcdir=$srcdir ;; |
| 1837 |
*) # Relative name. |
| 1838 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1839 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1840 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1841 |
esac |
| 1842 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1843 |
|
| 1844 |
cd "$ac_dir" || { ac_status=$?; continue; } |
| 1845 |
# Check for guested configure. |
| 1846 |
if test -f "$ac_srcdir/configure.gnu"; then |
| 1847 |
echo && |
| 1848 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1849 |
elif test -f "$ac_srcdir/configure"; then |
| 1850 |
echo && |
| 1851 |
$SHELL "$ac_srcdir/configure" --help=recursive |
| 1852 |
else |
| 1853 |
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1854 |
fi || ac_status=$? |
| 1855 |
cd "$ac_pwd" || { ac_status=$?; break; } |
| 1856 |
done |
| 1857 |
fi |
| 1858 |
|
| 1859 |
test -n "$ac_init_help" && exit $ac_status |
| 1860 |
if $ac_init_version; then |
| 1861 |
cat <<\_ACEOF |
| 1862 |
slurm configure 19.05 |
| 1863 |
generated by GNU Autoconf 2.69 |
| 1864 |
|
| 1865 |
Copyright (C) 2012 Free Software Foundation, Inc. |
| 1866 |
This configure script is free software; the Free Software Foundation |
| 1867 |
gives unlimited permission to copy, distribute and modify it. |
| 1868 |
_ACEOF |
| 1869 |
exit |
| 1870 |
fi |
| 1871 |
|
| 1872 |
## ------------------------ ## |
| 1873 |
## Autoconf initialization. ## |
| 1874 |
## ------------------------ ## |
| 1875 |
|
| 1876 |
# ac_fn_c_try_compile LINENO |
| 1877 |
# -------------------------- |
| 1878 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1879 |
ac_fn_c_try_compile () |
| 1880 |
{ |
| 1881 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1882 |
rm -f conftest.$ac_objext |
| 1883 |
if { { ac_try="$ac_compile" |
| 1884 |
case "(($ac_try" in |
| 1885 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1886 |
*) ac_try_echo=$ac_try;; |
| 1887 |
esac |
| 1888 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1889 |
$as_echo "$ac_try_echo"; } >&5 |
| 1890 |
(eval "$ac_compile") 2>conftest.err |
| 1891 |
ac_status=$? |
| 1892 |
if test -s conftest.err; then |
| 1893 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1894 |
cat conftest.er1 >&5 |
| 1895 |
mv -f conftest.er1 conftest.err |
| 1896 |
fi |
| 1897 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1898 |
test $ac_status = 0; } && { |
| 1899 |
test -z "$ac_c_werror_flag" || |
| 1900 |
test ! -s conftest.err |
| 1901 |
} && test -s conftest.$ac_objext; then : |
| 1902 |
ac_retval=0 |
| 1903 |
else |
| 1904 |
$as_echo "$as_me: failed program was:" >&5 |
| 1905 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1906 |
|
| 1907 |
ac_retval=1 |
| 1908 |
fi |
| 1909 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1910 |
as_fn_set_status $ac_retval |
| 1911 |
|
| 1912 |
} # ac_fn_c_try_compile |
| 1913 |
|
| 1914 |
# ac_fn_c_try_link LINENO |
| 1915 |
# ----------------------- |
| 1916 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1917 |
ac_fn_c_try_link () |
| 1918 |
{ |
| 1919 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1920 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 1921 |
if { { ac_try="$ac_link" |
| 1922 |
case "(($ac_try" in |
| 1923 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1924 |
*) ac_try_echo=$ac_try;; |
| 1925 |
esac |
| 1926 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1927 |
$as_echo "$ac_try_echo"; } >&5 |
| 1928 |
(eval "$ac_link") 2>conftest.err |
| 1929 |
ac_status=$? |
| 1930 |
if test -s conftest.err; then |
| 1931 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1932 |
cat conftest.er1 >&5 |
| 1933 |
mv -f conftest.er1 conftest.err |
| 1934 |
fi |
| 1935 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1936 |
test $ac_status = 0; } && { |
| 1937 |
test -z "$ac_c_werror_flag" || |
| 1938 |
test ! -s conftest.err |
| 1939 |
} && test -s conftest$ac_exeext && { |
| 1940 |
test "$cross_compiling" = yes || |
| 1941 |
test -x conftest$ac_exeext |
| 1942 |
}; then : |
| 1943 |
ac_retval=0 |
| 1944 |
else |
| 1945 |
$as_echo "$as_me: failed program was:" >&5 |
| 1946 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1947 |
|
| 1948 |
ac_retval=1 |
| 1949 |
fi |
| 1950 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1951 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1952 |
# interfere with the next link command; also delete a directory that is |
| 1953 |
# left behind by Apple's compiler. We do this before executing the actions. |
| 1954 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1955 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1956 |
as_fn_set_status $ac_retval |
| 1957 |
|
| 1958 |
} # ac_fn_c_try_link |
| 1959 |
|
| 1960 |
# ac_fn_cxx_try_compile LINENO |
| 1961 |
# ---------------------------- |
| 1962 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1963 |
ac_fn_cxx_try_compile () |
| 1964 |
{ |
| 1965 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1966 |
rm -f conftest.$ac_objext |
| 1967 |
if { { ac_try="$ac_compile" |
| 1968 |
case "(($ac_try" in |
| 1969 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1970 |
*) ac_try_echo=$ac_try;; |
| 1971 |
esac |
| 1972 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1973 |
$as_echo "$ac_try_echo"; } >&5 |
| 1974 |
(eval "$ac_compile") 2>conftest.err |
| 1975 |
ac_status=$? |
| 1976 |
if test -s conftest.err; then |
| 1977 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1978 |
cat conftest.er1 >&5 |
| 1979 |
mv -f conftest.er1 conftest.err |
| 1980 |
fi |
| 1981 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1982 |
test $ac_status = 0; } && { |
| 1983 |
test -z "$ac_cxx_werror_flag" || |
| 1984 |
test ! -s conftest.err |
| 1985 |
} && test -s conftest.$ac_objext; then : |
| 1986 |
ac_retval=0 |
| 1987 |
else |
| 1988 |
$as_echo "$as_me: failed program was:" >&5 |
| 1989 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1990 |
|
| 1991 |
ac_retval=1 |
| 1992 |
fi |
| 1993 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1994 |
as_fn_set_status $ac_retval |
| 1995 |
|
| 1996 |
} # ac_fn_cxx_try_compile |
| 1997 |
|
| 1998 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1999 |
# ------------------------------------------------------- |
| 2000 |
# Tests whether HEADER exists and can be compiled using the include files in |
| 2001 |
# INCLUDES, setting the cache variable VAR accordingly. |
| 2002 |
ac_fn_c_check_header_compile () |
| 2003 |
{ |
| 2004 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2005 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2006 |
$as_echo_n "checking for $2... " >&6; } |
| 2007 |
if eval \${$3+:} false; then : |
| 2008 |
$as_echo_n "(cached) " >&6 |
| 2009 |
else |
| 2010 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2011 |
/* end confdefs.h. */ |
| 2012 |
$4 |
| 2013 |
#include <$2> |
| 2014 |
_ACEOF |
| 2015 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2016 |
eval "$3=yes" |
| 2017 |
else |
| 2018 |
eval "$3=no" |
| 2019 |
fi |
| 2020 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2021 |
fi |
| 2022 |
eval ac_res=\$$3 |
| 2023 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2024 |
$as_echo "$ac_res" >&6; } |
| 2025 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2026 |
|
| 2027 |
} # ac_fn_c_check_header_compile |
| 2028 |
|
| 2029 |
# ac_fn_c_try_cpp LINENO |
| 2030 |
# ---------------------- |
| 2031 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 2032 |
ac_fn_c_try_cpp () |
| 2033 |
{ |
| 2034 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2035 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 2036 |
case "(($ac_try" in |
| 2037 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2038 |
*) ac_try_echo=$ac_try;; |
| 2039 |
esac |
| 2040 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2041 |
$as_echo "$ac_try_echo"; } >&5 |
| 2042 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 2043 |
ac_status=$? |
| 2044 |
if test -s conftest.err; then |
| 2045 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 2046 |
cat conftest.er1 >&5 |
| 2047 |
mv -f conftest.er1 conftest.err |
| 2048 |
fi |
| 2049 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2050 |
test $ac_status = 0; } > conftest.i && { |
| 2051 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 2052 |
test ! -s conftest.err |
| 2053 |
}; then : |
| 2054 |
ac_retval=0 |
| 2055 |
else |
| 2056 |
$as_echo "$as_me: failed program was:" >&5 |
| 2057 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2058 |
|
| 2059 |
ac_retval=1 |
| 2060 |
fi |
| 2061 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2062 |
as_fn_set_status $ac_retval |
| 2063 |
|
| 2064 |
} # ac_fn_c_try_cpp |
| 2065 |
|
| 2066 |
# ac_fn_c_try_run LINENO |
| 2067 |
# ---------------------- |
| 2068 |
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 2069 |
# that executables *can* be run. |
| 2070 |
ac_fn_c_try_run () |
| 2071 |
{ |
| 2072 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2073 |
if { { ac_try="$ac_link" |
| 2074 |
case "(($ac_try" in |
| 2075 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2076 |
*) ac_try_echo=$ac_try;; |
| 2077 |
esac |
| 2078 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2079 |
$as_echo "$ac_try_echo"; } >&5 |
| 2080 |
(eval "$ac_link") 2>&5 |
| 2081 |
ac_status=$? |
| 2082 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2083 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 2084 |
{ { case "(($ac_try" in |
| 2085 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2086 |
*) ac_try_echo=$ac_try;; |
| 2087 |
esac |
| 2088 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2089 |
$as_echo "$ac_try_echo"; } >&5 |
| 2090 |
(eval "$ac_try") 2>&5 |
| 2091 |
ac_status=$? |
| 2092 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2093 |
test $ac_status = 0; }; }; then : |
| 2094 |
ac_retval=0 |
| 2095 |
else |
| 2096 |
$as_echo "$as_me: program exited with status $ac_status" >&5 |
| 2097 |
$as_echo "$as_me: failed program was:" >&5 |
| 2098 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2099 |
|
| 2100 |
ac_retval=$ac_status |
| 2101 |
fi |
| 2102 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2103 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2104 |
as_fn_set_status $ac_retval |
| 2105 |
|
| 2106 |
} # ac_fn_c_try_run |
| 2107 |
|
| 2108 |
# ac_fn_c_check_func LINENO FUNC VAR |
| 2109 |
# ---------------------------------- |
| 2110 |
# Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2111 |
ac_fn_c_check_func () |
| 2112 |
{ |
| 2113 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2114 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2115 |
$as_echo_n "checking for $2... " >&6; } |
| 2116 |
if eval \${$3+:} false; then : |
| 2117 |
$as_echo_n "(cached) " >&6 |
| 2118 |
else |
| 2119 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2120 |
/* end confdefs.h. */ |
| 2121 |
/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2122 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2123 |
#define $2 innocuous_$2 |
| 2124 |
|
| 2125 |
/* System header to define __stub macros and hopefully few prototypes, |
| 2126 |
which can conflict with char $2 (); below. |
| 2127 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2128 |
<limits.h> exists even on freestanding compilers. */ |
| 2129 |
|
| 2130 |
#ifdef __STDC__ |
| 2131 |
# include <limits.h> |
| 2132 |
#else |
| 2133 |
# include <assert.h> |
| 2134 |
#endif |
| 2135 |
|
| 2136 |
#undef $2 |
| 2137 |
|
| 2138 |
/* Override any GCC internal prototype to avoid an error. |
| 2139 |
Use char because int might match the return type of a GCC |
| 2140 |
builtin and then its argument prototype would still apply. */ |
| 2141 |
#ifdef __cplusplus |
| 2142 |
extern "C" |
| 2143 |
#endif |
| 2144 |
char $2 (); |
| 2145 |
/* The GNU C library defines this for functions which it implements |
| 2146 |
to always fail with ENOSYS. Some functions are actually named |
| 2147 |
something starting with __ and the normal name is an alias. */ |
| 2148 |
#if defined __stub_$2 || defined __stub___$2 |
| 2149 |
choke me |
| 2150 |
#endif |
| 2151 |
|
| 2152 |
int |
| 2153 |
main () |
| 2154 |
{ |
| 2155 |
return $2 (); |
| 2156 |
; |
| 2157 |
return 0; |
| 2158 |
} |
| 2159 |
_ACEOF |
| 2160 |
if ac_fn_c_try_link "$LINENO"; then : |
| 2161 |
eval "$3=yes" |
| 2162 |
else |
| 2163 |
eval "$3=no" |
| 2164 |
fi |
| 2165 |
rm -f core conftest.err conftest.$ac_objext \ |
| 2166 |
conftest$ac_exeext conftest.$ac_ext |
| 2167 |
fi |
| 2168 |
eval ac_res=\$$3 |
| 2169 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2170 |
$as_echo "$ac_res" >&6; } |
| 2171 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2172 |
|
| 2173 |
} # ac_fn_c_check_func |
| 2174 |
|
| 2175 |
# ac_fn_cxx_try_cpp LINENO |
| 2176 |
# ------------------------ |
| 2177 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 2178 |
ac_fn_cxx_try_cpp () |
| 2179 |
{ |
| 2180 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2181 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 2182 |
case "(($ac_try" in |
| 2183 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2184 |
*) ac_try_echo=$ac_try;; |
| 2185 |
esac |
| 2186 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2187 |
$as_echo "$ac_try_echo"; } >&5 |
| 2188 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 2189 |
ac_status=$? |
| 2190 |
if test -s conftest.err; then |
| 2191 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 2192 |
cat conftest.er1 >&5 |
| 2193 |
mv -f conftest.er1 conftest.err |
| 2194 |
fi |
| 2195 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2196 |
test $ac_status = 0; } > conftest.i && { |
| 2197 |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 2198 |
test ! -s conftest.err |
| 2199 |
}; then : |
| 2200 |
ac_retval=0 |
| 2201 |
else |
| 2202 |
$as_echo "$as_me: failed program was:" >&5 |
| 2203 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2204 |
|
| 2205 |
ac_retval=1 |
| 2206 |
fi |
| 2207 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2208 |
as_fn_set_status $ac_retval |
| 2209 |
|
| 2210 |
} # ac_fn_cxx_try_cpp |
| 2211 |
|
| 2212 |
# ac_fn_cxx_try_link LINENO |
| 2213 |
# ------------------------- |
| 2214 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2215 |
ac_fn_cxx_try_link () |
| 2216 |
{ |
| 2217 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2218 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 2219 |
if { { ac_try="$ac_link" |
| 2220 |
case "(($ac_try" in |
| 2221 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2222 |
*) ac_try_echo=$ac_try;; |
| 2223 |
esac |
| 2224 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2225 |
$as_echo "$ac_try_echo"; } >&5 |
| 2226 |
(eval "$ac_link") 2>conftest.err |
| 2227 |
ac_status=$? |
| 2228 |
if test -s conftest.err; then |
| 2229 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 2230 |
cat conftest.er1 >&5 |
| 2231 |
mv -f conftest.er1 conftest.err |
| 2232 |
fi |
| 2233 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2234 |
test $ac_status = 0; } && { |
| 2235 |
test -z "$ac_cxx_werror_flag" || |
| 2236 |
test ! -s conftest.err |
| 2237 |
} && test -s conftest$ac_exeext && { |
| 2238 |
test "$cross_compiling" = yes || |
| 2239 |
test -x conftest$ac_exeext |
| 2240 |
}; then : |
| 2241 |
ac_retval=0 |
| 2242 |
else |
| 2243 |
$as_echo "$as_me: failed program was:" >&5 |
| 2244 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2245 |
|
| 2246 |
ac_retval=1 |
| 2247 |
fi |
| 2248 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2249 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2250 |
# interfere with the next link command; also delete a directory that is |
| 2251 |
# left behind by Apple's compiler. We do this before executing the actions. |
| 2252 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2253 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2254 |
as_fn_set_status $ac_retval |
| 2255 |
|
| 2256 |
} # ac_fn_cxx_try_link |
| 2257 |
|
| 2258 |
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 2259 |
# ------------------------------------------------------- |
| 2260 |
# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2261 |
# the include files in INCLUDES and setting the cache variable VAR |
| 2262 |
# accordingly. |
| 2263 |
ac_fn_c_check_header_mongrel () |
| 2264 |
{ |
| 2265 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2266 |
if eval \${$3+:} false; then : |
| 2267 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2268 |
$as_echo_n "checking for $2... " >&6; } |
| 2269 |
if eval \${$3+:} false; then : |
| 2270 |
$as_echo_n "(cached) " >&6 |
| 2271 |
fi |
| 2272 |
eval ac_res=\$$3 |
| 2273 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2274 |
$as_echo "$ac_res" >&6; } |
| 2275 |
else |
| 2276 |
# Is the header compilable? |
| 2277 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 2278 |
$as_echo_n "checking $2 usability... " >&6; } |
| 2279 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2280 |
/* end confdefs.h. */ |
| 2281 |
$4 |
| 2282 |
#include <$2> |
| 2283 |
_ACEOF |
| 2284 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2285 |
ac_header_compiler=yes |
| 2286 |
else |
| 2287 |
ac_header_compiler=no |
| 2288 |
fi |
| 2289 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2290 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 2291 |
$as_echo "$ac_header_compiler" >&6; } |
| 2292 |
|
| 2293 |
# Is the header present? |
| 2294 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 2295 |
$as_echo_n "checking $2 presence... " >&6; } |
| 2296 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2297 |
/* end confdefs.h. */ |
| 2298 |
#include <$2> |
| 2299 |
_ACEOF |
| 2300 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 2301 |
ac_header_preproc=yes |
| 2302 |
else |
| 2303 |
ac_header_preproc=no |
| 2304 |
fi |
| 2305 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 2306 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 2307 |
$as_echo "$ac_header_preproc" >&6; } |
| 2308 |
|
| 2309 |
# So? What about this header? |
| 2310 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 2311 |
yes:no: ) |
| 2312 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2313 |
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2314 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2315 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2316 |
;; |
| 2317 |
no:yes:* ) |
| 2318 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 2319 |
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 2320 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 2321 |
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 2322 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 2323 |
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 2324 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 2325 |
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2326 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2327 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2328 |
;; |
| 2329 |
esac |
| 2330 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2331 |
$as_echo_n "checking for $2... " >&6; } |
| 2332 |
if eval \${$3+:} false; then : |
| 2333 |
$as_echo_n "(cached) " >&6 |
| 2334 |
else |
| 2335 |
eval "$3=\$ac_header_compiler" |
| 2336 |
fi |
| 2337 |
eval ac_res=\$$3 |
| 2338 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2339 |
$as_echo "$ac_res" >&6; } |
| 2340 |
fi |
| 2341 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2342 |
|
| 2343 |
} # ac_fn_c_check_header_mongrel |
| 2344 |
|
| 2345 |
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 2346 |
# --------------------------------------------- |
| 2347 |
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2348 |
# accordingly. |
| 2349 |
ac_fn_c_check_decl () |
| 2350 |
{ |
| 2351 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2352 |
as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2353 |
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2354 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2355 |
$as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 2356 |
if eval \${$3+:} false; then : |
| 2357 |
$as_echo_n "(cached) " >&6 |
| 2358 |
else |
| 2359 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2360 |
/* end confdefs.h. */ |
| 2361 |
$4 |
| 2362 |
int |
| 2363 |
main () |
| 2364 |
{ |
| 2365 |
#ifndef $as_decl_name |
| 2366 |
#ifdef __cplusplus |
| 2367 |
(void) $as_decl_use; |
| 2368 |
#else |
| 2369 |
(void) $as_decl_name; |
| 2370 |
#endif |
| 2371 |
#endif |
| 2372 |
|
| 2373 |
; |
| 2374 |
return 0; |
| 2375 |
} |
| 2376 |
_ACEOF |
| 2377 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2378 |
eval "$3=yes" |
| 2379 |
else |
| 2380 |
eval "$3=no" |
| 2381 |
fi |
| 2382 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2383 |
fi |
| 2384 |
eval ac_res=\$$3 |
| 2385 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2386 |
$as_echo "$ac_res" >&6; } |
| 2387 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2388 |
|
| 2389 |
} # ac_fn_c_check_decl |
| 2390 |
|
| 2391 |
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2392 |
# -------------------------------------------- |
| 2393 |
# Tries to find the compile-time value of EXPR in a program that includes |
| 2394 |
# INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2395 |
# computed |
| 2396 |
ac_fn_c_compute_int () |
| 2397 |
{ |
| 2398 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2399 |
if test "$cross_compiling" = yes; then |
| 2400 |
# Depending upon the size, compute the lo and hi bounds. |
| 2401 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2402 |
/* end confdefs.h. */ |
| 2403 |
$4 |
| 2404 |
int |
| 2405 |
main () |
| 2406 |
{ |
| 2407 |
static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2408 |
test_array [0] = 0; |
| 2409 |
return test_array [0]; |
| 2410 |
|
| 2411 |
; |
| 2412 |
return 0; |
| 2413 |
} |
| 2414 |
_ACEOF |
| 2415 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2416 |
ac_lo=0 ac_mid=0 |
| 2417 |
while :; do |
| 2418 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2419 |
/* end confdefs.h. */ |
| 2420 |
$4 |
| 2421 |
int |
| 2422 |
main () |
| 2423 |
{ |
| 2424 |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2425 |
test_array [0] = 0; |
| 2426 |
return test_array [0]; |
| 2427 |
|
| 2428 |
; |
| 2429 |
return 0; |
| 2430 |
} |
| 2431 |
_ACEOF |
| 2432 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2433 |
ac_hi=$ac_mid; break |
| 2434 |
else |
| 2435 |
as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2436 |
if test $ac_lo -le $ac_mid; then |
| 2437 |
ac_lo= ac_hi= |
| 2438 |
break |
| 2439 |
fi |
| 2440 |
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2441 |
fi |
| 2442 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2443 |
done |
| 2444 |
else |
| 2445 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2446 |
/* end confdefs.h. */ |
| 2447 |
$4 |
| 2448 |
int |
| 2449 |
main () |
| 2450 |
{ |
| 2451 |
static int test_array [1 - 2 * !(($2) < 0)]; |
| 2452 |
test_array [0] = 0; |
| 2453 |
return test_array [0]; |
| 2454 |
|
| 2455 |
; |
| 2456 |
return 0; |
| 2457 |
} |
| 2458 |
_ACEOF |
| 2459 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2460 |
ac_hi=-1 ac_mid=-1 |
| 2461 |
while :; do |
| 2462 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2463 |
/* end confdefs.h. */ |
| 2464 |
$4 |
| 2465 |
int |
| 2466 |
main () |
| 2467 |
{ |
| 2468 |
static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2469 |
test_array [0] = 0; |
| 2470 |
return test_array [0]; |
| 2471 |
|
| 2472 |
; |
| 2473 |
return 0; |
| 2474 |
} |
| 2475 |
_ACEOF |
| 2476 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2477 |
ac_lo=$ac_mid; break |
| 2478 |
else |
| 2479 |
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2480 |
if test $ac_mid -le $ac_hi; then |
| 2481 |
ac_lo= ac_hi= |
| 2482 |
break |
| 2483 |
fi |
| 2484 |
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2485 |
fi |
| 2486 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2487 |
done |
| 2488 |
else |
| 2489 |
ac_lo= ac_hi= |
| 2490 |
fi |
| 2491 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2492 |
fi |
| 2493 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2494 |
# Binary search between lo and hi bounds. |
| 2495 |
while test "x$ac_lo" != "x$ac_hi"; do |
| 2496 |
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2497 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2498 |
/* end confdefs.h. */ |
| 2499 |
$4 |
| 2500 |
int |
| 2501 |
main () |
| 2502 |
{ |
| 2503 |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2504 |
test_array [0] = 0; |
| 2505 |
return test_array [0]; |
| 2506 |
|
| 2507 |
; |
| 2508 |
return 0; |
| 2509 |
} |
| 2510 |
_ACEOF |
| 2511 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2512 |
ac_hi=$ac_mid |
| 2513 |
else |
| 2514 |
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2515 |
fi |
| 2516 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2517 |
done |
| 2518 |
case $ac_lo in #(( |
| 2519 |
?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2520 |
'') ac_retval=1 ;; |
| 2521 |
esac |
| 2522 |
else |
| 2523 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2524 |
/* end confdefs.h. */ |
| 2525 |
$4 |
| 2526 |
static long int longval () { return $2; } |
| 2527 |
static unsigned long int ulongval () { return $2; } |
| 2528 |
#include <stdio.h> |
| 2529 |
#include <stdlib.h> |
| 2530 |
int |
| 2531 |
main () |
| 2532 |
{ |
| 2533 |
|
| 2534 |
FILE *f = fopen ("conftest.val", "w"); |
| 2535 |
if (! f) |
| 2536 |
return 1; |
| 2537 |
if (($2) < 0) |
| 2538 |
{ |
| 2539 |
long int i = longval (); |
| 2540 |
if (i != ($2)) |
| 2541 |
return 1; |
| 2542 |
fprintf (f, "%ld", i); |
| 2543 |
} |
| 2544 |
else |
| 2545 |
{ |
| 2546 |
unsigned long int i = ulongval (); |
| 2547 |
if (i != ($2)) |
| 2548 |
return 1; |
| 2549 |
fprintf (f, "%lu", i); |
| 2550 |
} |
| 2551 |
/* Do not output a trailing newline, as this causes \r\n confusion |
| 2552 |
on some platforms. */ |
| 2553 |
return ferror (f) || fclose (f) != 0; |
| 2554 |
|
| 2555 |
; |
| 2556 |
return 0; |
| 2557 |
} |
| 2558 |
_ACEOF |
| 2559 |
if ac_fn_c_try_run "$LINENO"; then : |
| 2560 |
echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2561 |
else |
| 2562 |
ac_retval=1 |
| 2563 |
fi |
| 2564 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2565 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2566 |
rm -f conftest.val |
| 2567 |
|
| 2568 |
fi |
| 2569 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2570 |
as_fn_set_status $ac_retval |
| 2571 |
|
| 2572 |
} # ac_fn_c_compute_int |
| 2573 |
cat >config.log <<_ACEOF |
| 2574 |
This file contains any messages produced by compilers while |
| 2575 |
running configure, to aid debugging if configure makes a mistake. |
| 2576 |
|
| 2577 |
It was created by slurm $as_me 19.05, which was |
| 2578 |
generated by GNU Autoconf 2.69. Invocation command line was |
| 2579 |
|
| 2580 |
$ $0 $@ |
| 2581 |
|
| 2582 |
_ACEOF |
| 2583 |
exec 5>>config.log |
| 2584 |
{ |
| 2585 |
cat <<_ASUNAME |
| 2586 |
## --------- ## |
| 2587 |
## Platform. ## |
| 2588 |
## --------- ## |
| 2589 |
|
| 2590 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2591 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2592 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2593 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2594 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2595 |
|
| 2596 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2597 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2598 |
|
| 2599 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2600 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2601 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2602 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2603 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2604 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2605 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2606 |
|
| 2607 |
_ASUNAME |
| 2608 |
|
| 2609 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2610 |
for as_dir in $PATH |
| 2611 |
do |
| 2612 |
IFS=$as_save_IFS |
| 2613 |
test -z "$as_dir" && as_dir=. |
| 2614 |
$as_echo "PATH: $as_dir" |
| 2615 |
done |
| 2616 |
IFS=$as_save_IFS |
| 2617 |
|
| 2618 |
} >&5 |
| 2619 |
|
| 2620 |
cat >&5 <<_ACEOF |
| 2621 |
|
| 2622 |
|
| 2623 |
## ----------- ## |
| 2624 |
## Core tests. ## |
| 2625 |
## ----------- ## |
| 2626 |
|
| 2627 |
_ACEOF |
| 2628 |
|
| 2629 |
|
| 2630 |
# Keep a trace of the command line. |
| 2631 |
# Strip out --no-create and --no-recursion so they do not pile up. |
| 2632 |
# Strip out --silent because we don't want to record it for future runs. |
| 2633 |
# Also quote any args containing shell meta-characters. |
| 2634 |
# Make two passes to allow for proper duplicate-argument suppression. |
| 2635 |
ac_configure_args= |
| 2636 |
ac_configure_args0= |
| 2637 |
ac_configure_args1= |
| 2638 |
ac_must_keep_next=false |
| 2639 |
for ac_pass in 1 2 |
| 2640 |
do |
| 2641 |
for ac_arg |
| 2642 |
do |
| 2643 |
case $ac_arg in |
| 2644 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2645 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2646 |
| -silent | --silent | --silen | --sile | --sil) |
| 2647 |
continue ;; |
| 2648 |
*\'*) |
| 2649 |
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2650 |
esac |
| 2651 |
case $ac_pass in |
| 2652 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2653 |
2) |
| 2654 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2655 |
if test $ac_must_keep_next = true; then |
| 2656 |
ac_must_keep_next=false # Got value, back to normal. |
| 2657 |
else |
| 2658 |
case $ac_arg in |
| 2659 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2660 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2661 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2662 |
| -with-* | --with-* | -without-* | --without-* | --x) |
| 2663 |
case "$ac_configure_args0 " in |
| 2664 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2665 |
esac |
| 2666 |
;; |
| 2667 |
-* ) ac_must_keep_next=true ;; |
| 2668 |
esac |
| 2669 |
fi |
| 2670 |
as_fn_append ac_configure_args " '$ac_arg'" |
| 2671 |
;; |
| 2672 |
esac |
| 2673 |
done |
| 2674 |
done |
| 2675 |
{ ac_configure_args0=; unset ac_configure_args0;} |
| 2676 |
{ ac_configure_args1=; unset ac_configure_args1;} |
| 2677 |
|
| 2678 |
# When interrupted or exit'd, cleanup temporary files, and complete |
| 2679 |
# config.log. We remove comments because anyway the quotes in there |
| 2680 |
# would cause problems or look ugly. |
| 2681 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2682 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2683 |
trap 'exit_status=$? |
| 2684 |
# Save into config.log some information that might help in debugging. |
| 2685 |
{ |
| 2686 |
echo |
| 2687 |
|
| 2688 |
$as_echo "## ---------------- ## |
| 2689 |
## Cache variables. ## |
| 2690 |
## ---------------- ##" |
| 2691 |
echo |
| 2692 |
# The following way of writing the cache mishandles newlines in values, |
| 2693 |
( |
| 2694 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2695 |
eval ac_val=\$$ac_var |
| 2696 |
case $ac_val in #( |
| 2697 |
*${as_nl}*) |
| 2698 |
case $ac_var in #( |
| 2699 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2700 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2701 |
esac |
| 2702 |
case $ac_var in #( |
| 2703 |
_ | IFS | as_nl) ;; #( |
| 2704 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2705 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 2706 |
esac ;; |
| 2707 |
esac |
| 2708 |
done |
| 2709 |
(set) 2>&1 | |
| 2710 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2711 |
*${as_nl}ac_space=\ *) |
| 2712 |
sed -n \ |
| 2713 |
"s/'\''/'\''\\\\'\'''\''/g; |
| 2714 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2715 |
;; #( |
| 2716 |
*) |
| 2717 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2718 |
;; |
| 2719 |
esac | |
| 2720 |
sort |
| 2721 |
) |
| 2722 |
echo |
| 2723 |
|
| 2724 |
$as_echo "## ----------------- ## |
| 2725 |
## Output variables. ## |
| 2726 |
## ----------------- ##" |
| 2727 |
echo |
| 2728 |
for ac_var in $ac_subst_vars |
| 2729 |
do |
| 2730 |
eval ac_val=\$$ac_var |
| 2731 |
case $ac_val in |
| 2732 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2733 |
esac |
| 2734 |
$as_echo "$ac_var='\''$ac_val'\''" |
| 2735 |
done | sort |
| 2736 |
echo |
| 2737 |
|
| 2738 |
if test -n "$ac_subst_files"; then |
| 2739 |
$as_echo "## ------------------- ## |
| 2740 |
## File substitutions. ## |
| 2741 |
## ------------------- ##" |
| 2742 |
echo |
| 2743 |
for ac_var in $ac_subst_files |
| 2744 |
do |
| 2745 |
eval ac_val=\$$ac_var |
| 2746 |
case $ac_val in |
| 2747 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2748 |
esac |
| 2749 |
$as_echo "$ac_var='\''$ac_val'\''" |
| 2750 |
done | sort |
| 2751 |
echo |
| 2752 |
fi |
| 2753 |
|
| 2754 |
if test -s confdefs.h; then |
| 2755 |
$as_echo "## ----------- ## |
| 2756 |
## confdefs.h. ## |
| 2757 |
## ----------- ##" |
| 2758 |
echo |
| 2759 |
cat confdefs.h |
| 2760 |
echo |
| 2761 |
fi |
| 2762 |
test "$ac_signal" != 0 && |
| 2763 |
$as_echo "$as_me: caught signal $ac_signal" |
| 2764 |
$as_echo "$as_me: exit $exit_status" |
| 2765 |
} >&5 |
| 2766 |
rm -f core *.core core.conftest.* && |
| 2767 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2768 |
exit $exit_status |
| 2769 |
' 0 |
| 2770 |
for ac_signal in 1 2 13 15; do |
| 2771 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2772 |
done |
| 2773 |
ac_signal=0 |
| 2774 |
|
| 2775 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2776 |
rm -f -r conftest* confdefs.h |
| 2777 |
|
| 2778 |
$as_echo "/* confdefs.h */" > confdefs.h |
| 2779 |
|
| 2780 |
# Predefined preprocessor variables. |
| 2781 |
|
| 2782 |
cat >>confdefs.h <<_ACEOF |
| 2783 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
| 2784 |
_ACEOF |
| 2785 |
|
| 2786 |
cat >>confdefs.h <<_ACEOF |
| 2787 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2788 |
_ACEOF |
| 2789 |
|
| 2790 |
cat >>confdefs.h <<_ACEOF |
| 2791 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2792 |
_ACEOF |
| 2793 |
|
| 2794 |
cat >>confdefs.h <<_ACEOF |
| 2795 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
| 2796 |
_ACEOF |
| 2797 |
|
| 2798 |
cat >>confdefs.h <<_ACEOF |
| 2799 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2800 |
_ACEOF |
| 2801 |
|
| 2802 |
cat >>confdefs.h <<_ACEOF |
| 2803 |
#define PACKAGE_URL "$PACKAGE_URL" |
| 2804 |
_ACEOF |
| 2805 |
|
| 2806 |
|
| 2807 |
# Let the site file select an alternate cache file if it wants to. |
| 2808 |
# Prefer an explicitly selected file to automatically selected ones. |
| 2809 |
ac_site_file1=NONE |
| 2810 |
ac_site_file2=NONE |
| 2811 |
if test -n "$CONFIG_SITE"; then |
| 2812 |
# We do not want a PATH search for config.site. |
| 2813 |
case $CONFIG_SITE in #(( |
| 2814 |
-*) ac_site_file1=./$CONFIG_SITE;; |
| 2815 |
*/*) ac_site_file1=$CONFIG_SITE;; |
| 2816 |
*) ac_site_file1=./$CONFIG_SITE;; |
| 2817 |
esac |
| 2818 |
elif test "x$prefix" != xNONE; then |
| 2819 |
ac_site_file1=$prefix/share/config.site |
| 2820 |
ac_site_file2=$prefix/etc/config.site |
| 2821 |
else |
| 2822 |
ac_site_file1=$ac_default_prefix/share/config.site |
| 2823 |
ac_site_file2=$ac_default_prefix/etc/config.site |
| 2824 |
fi |
| 2825 |
for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2826 |
do |
| 2827 |
test "x$ac_site_file" = xNONE && continue |
| 2828 |
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2829 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2830 |
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2831 |
sed 's/^/| /' "$ac_site_file" >&5 |
| 2832 |
. "$ac_site_file" \ |
| 2833 |
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2834 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2835 |
as_fn_error $? "failed to load site script $ac_site_file |
| 2836 |
See \`config.log' for more details" "$LINENO" 5; } |
| 2837 |
fi |
| 2838 |
done |
| 2839 |
|
| 2840 |
if test -r "$cache_file"; then |
| 2841 |
# Some versions of bash will fail to source /dev/null (special files |
| 2842 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2843 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2844 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2845 |
$as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2846 |
case $cache_file in |
| 2847 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2848 |
*) . "./$cache_file";; |
| 2849 |
esac |
| 2850 |
fi |
| 2851 |
else |
| 2852 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2853 |
$as_echo "$as_me: creating cache $cache_file" >&6;} |
| 2854 |
>$cache_file |
| 2855 |
fi |
| 2856 |
|
| 2857 |
# Check that the precious variables saved in the cache have kept the same |
| 2858 |
# value. |
| 2859 |
ac_cache_corrupted=false |
| 2860 |
for ac_var in $ac_precious_vars; do |
| 2861 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2862 |
eval ac_new_set=\$ac_env_${ac_var}_set |
| 2863 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2864 |
eval ac_new_val=\$ac_env_${ac_var}_value |
| 2865 |
case $ac_old_set,$ac_new_set in |
| 2866 |
set,) |
| 2867 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2868 |
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2869 |
ac_cache_corrupted=: ;; |
| 2870 |
,set) |
| 2871 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2872 |
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2873 |
ac_cache_corrupted=: ;; |
| 2874 |
,);; |
| 2875 |
*) |
| 2876 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2877 |
# differences in whitespace do not lead to failure. |
| 2878 |
ac_old_val_w=`echo x $ac_old_val` |
| 2879 |
ac_new_val_w=`echo x $ac_new_val` |
| 2880 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2881 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2882 |
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2883 |
ac_cache_corrupted=: |
| 2884 |
else |
| 2885 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2886 |
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2887 |
eval $ac_var=\$ac_old_val |
| 2888 |
fi |
| 2889 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2890 |
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2891 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2892 |
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2893 |
fi;; |
| 2894 |
esac |
| 2895 |
# Pass precious variables to config.status. |
| 2896 |
if test "$ac_new_set" = set; then |
| 2897 |
case $ac_new_val in |
| 2898 |
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2899 |
*) ac_arg=$ac_var=$ac_new_val ;; |
| 2900 |
esac |
| 2901 |
case " $ac_configure_args " in |
| 2902 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2903 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2904 |
esac |
| 2905 |
fi |
| 2906 |
done |
| 2907 |
if $ac_cache_corrupted; then |
| 2908 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2909 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2910 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2911 |
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2912 |
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2913 |
fi |
| 2914 |
## -------------------- ## |
| 2915 |
## Main body of script. ## |
| 2916 |
## -------------------- ## |
| 2917 |
|
| 2918 |
ac_ext=c |
| 2919 |
ac_cpp='$CPP $CPPFLAGS' |
| 2920 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2921 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2922 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2923 |
|
| 2924 |
|
| 2925 |
|
| 2926 |
|
| 2927 |
ac_aux_dir= |
| 2928 |
for ac_dir in auxdir "$srcdir"/auxdir; do |
| 2929 |
if test -f "$ac_dir/install-sh"; then |
| 2930 |
ac_aux_dir=$ac_dir |
| 2931 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2932 |
break |
| 2933 |
elif test -f "$ac_dir/install.sh"; then |
| 2934 |
ac_aux_dir=$ac_dir |
| 2935 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2936 |
break |
| 2937 |
elif test -f "$ac_dir/shtool"; then |
| 2938 |
ac_aux_dir=$ac_dir |
| 2939 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2940 |
break |
| 2941 |
fi |
| 2942 |
done |
| 2943 |
if test -z "$ac_aux_dir"; then |
| 2944 |
as_fn_error $? "cannot find install-sh, install.sh, or shtool in auxdir \"$srcdir\"/auxdir" "$LINENO" 5 |
| 2945 |
fi |
| 2946 |
|
| 2947 |
# These three variables are undocumented and unsupported, |
| 2948 |
# and are intended to be withdrawn in a future Autoconf release. |
| 2949 |
# They can cause serious problems if a builder's source tree is in a directory |
| 2950 |
# whose full name contains unusual characters. |
| 2951 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2952 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2953 |
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2954 |
|
| 2955 |
|
| 2956 |
|
| 2957 |
# Make sure we can run config.sub. |
| 2958 |
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2959 |
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 2960 |
|
| 2961 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2962 |
$as_echo_n "checking build system type... " >&6; } |
| 2963 |
if ${ac_cv_build+:} false; then : |
| 2964 |
$as_echo_n "(cached) " >&6 |
| 2965 |
else |
| 2966 |
ac_build_alias=$build_alias |
| 2967 |
test "x$ac_build_alias" = x && |
| 2968 |
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2969 |
test "x$ac_build_alias" = x && |
| 2970 |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 2971 |
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2972 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 2973 |
|
| 2974 |
fi |
| 2975 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2976 |
$as_echo "$ac_cv_build" >&6; } |
| 2977 |
case $ac_cv_build in |
| 2978 |
*-*-*) ;; |
| 2979 |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 2980 |
esac |
| 2981 |
build=$ac_cv_build |
| 2982 |
ac_save_IFS=$IFS; IFS='-' |
| 2983 |
set x $ac_cv_build |
| 2984 |
shift |
| 2985 |
build_cpu=$1 |
| 2986 |
build_vendor=$2 |
| 2987 |
shift; shift |
| 2988 |
# Remember, the first character of IFS is used to create $*, |
| 2989 |
# except with old shells: |
| 2990 |
build_os=$* |
| 2991 |
IFS=$ac_save_IFS |
| 2992 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2993 |
|
| 2994 |
|
| 2995 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2996 |
$as_echo_n "checking host system type... " >&6; } |
| 2997 |
if ${ac_cv_host+:} false; then : |
| 2998 |
$as_echo_n "(cached) " >&6 |
| 2999 |
else |
| 3000 |
if test "x$host_alias" = x; then |
| 3001 |
ac_cv_host=$ac_cv_build |
| 3002 |
else |
| 3003 |
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 3004 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 3005 |
fi |
| 3006 |
|
| 3007 |
fi |
| 3008 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 3009 |
$as_echo "$ac_cv_host" >&6; } |
| 3010 |
case $ac_cv_host in |
| 3011 |
*-*-*) ;; |
| 3012 |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 3013 |
esac |
| 3014 |
host=$ac_cv_host |
| 3015 |
ac_save_IFS=$IFS; IFS='-' |
| 3016 |
set x $ac_cv_host |
| 3017 |
shift |
| 3018 |
host_cpu=$1 |
| 3019 |
host_vendor=$2 |
| 3020 |
shift; shift |
| 3021 |
# Remember, the first character of IFS is used to create $*, |
| 3022 |
# except with old shells: |
| 3023 |
host_os=$* |
| 3024 |
IFS=$ac_save_IFS |
| 3025 |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3026 |
|
| 3027 |
|
| 3028 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| 3029 |
$as_echo_n "checking target system type... " >&6; } |
| 3030 |
if ${ac_cv_target+:} false; then : |
| 3031 |
$as_echo_n "(cached) " >&6 |
| 3032 |
else |
| 3033 |
if test "x$target_alias" = x; then |
| 3034 |
ac_cv_target=$ac_cv_host |
| 3035 |
else |
| 3036 |
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 3037 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
| 3038 |
fi |
| 3039 |
|
| 3040 |
fi |
| 3041 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| 3042 |
$as_echo "$ac_cv_target" >&6; } |
| 3043 |
case $ac_cv_target in |
| 3044 |
*-*-*) ;; |
| 3045 |
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
| 3046 |
esac |
| 3047 |
target=$ac_cv_target |
| 3048 |
ac_save_IFS=$IFS; IFS='-' |
| 3049 |
set x $ac_cv_target |
| 3050 |
shift |
| 3051 |
target_cpu=$1 |
| 3052 |
target_vendor=$2 |
| 3053 |
shift; shift |
| 3054 |
# Remember, the first character of IFS is used to create $*, |
| 3055 |
# except with old shells: |
| 3056 |
target_os=$* |
| 3057 |
IFS=$ac_save_IFS |
| 3058 |
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 3059 |
|
| 3060 |
|
| 3061 |
# The aliases save the names the user supplied, while $host etc. |
| 3062 |
# will get canonicalized. |
| 3063 |
test -n "$target_alias" && |
| 3064 |
test "$program_prefix$program_suffix$program_transform_name" = \ |
| 3065 |
NONENONEs,x,x, && |
| 3066 |
program_prefix=${target_alias}- |
| 3067 |
|
| 3068 |
if test "1" = "0"; then |
| 3069 |
DONT_BUILD_TRUE= |
| 3070 |
DONT_BUILD_FALSE='#' |
| 3071 |
else |
| 3072 |
DONT_BUILD_TRUE='#' |
| 3073 |
DONT_BUILD_FALSE= |
| 3074 |
fi |
| 3075 |
|
| 3076 |
|
| 3077 |
# Determine project/version from META file. |
| 3078 |
# Sets PACKAGE, VERSION, SLURM_VERSION |
| 3079 |
|
| 3080 |
# |
| 3081 |
# Determine project/version from META file. |
| 3082 |
# These are substituted into the Makefile and config.h. |
| 3083 |
# |
| 3084 |
PROJECT="`perl -ne 'print,exit if s/^\s*NAME:\s*(\S*).*/\1/i' $srcdir/META`" |
| 3085 |
|
| 3086 |
cat >>confdefs.h <<_ACEOF |
| 3087 |
#define PROJECT "$PROJECT" |
| 3088 |
_ACEOF |
| 3089 |
|
| 3090 |
|
| 3091 |
|
| 3092 |
# Automake desires "PACKAGE" variable instead of PROJECT |
| 3093 |
PACKAGE=$PROJECT |
| 3094 |
|
| 3095 |
## Build the API version |
| 3096 |
## NOTE: We map API_MAJOR to be (API_CURRENT - API_AGE) to match the |
| 3097 |
## behavior of libtool in setting the library version number. For more |
| 3098 |
## information see src/api/Makefile.am |
| 3099 |
for name in CURRENT REVISION AGE; do |
| 3100 |
API=`perl -ne "print,exit if s/^\s*API_$name:\s*(\S*).*/\1/i" $srcdir/META` |
| 3101 |
eval SLURM_API_$name=$API |
| 3102 |
done |
| 3103 |
SLURM_API_MAJOR=`expr $SLURM_API_CURRENT - $SLURM_API_AGE` |
| 3104 |
SLURM_API_VERSION=`printf "0x%02x%02x%02x" ${SLURM_API_MAJOR#0} ${SLURM_API_AGE#0} ${SLURM_API_REVISION#0}` |
| 3105 |
|
| 3106 |
|
| 3107 |
cat >>confdefs.h <<_ACEOF |
| 3108 |
#define SLURM_API_VERSION $SLURM_API_VERSION |
| 3109 |
_ACEOF |
| 3110 |
|
| 3111 |
|
| 3112 |
cat >>confdefs.h <<_ACEOF |
| 3113 |
#define SLURM_API_CURRENT $SLURM_API_CURRENT |
| 3114 |
_ACEOF |
| 3115 |
|
| 3116 |
|
| 3117 |
cat >>confdefs.h <<_ACEOF |
| 3118 |
#define SLURM_API_MAJOR $SLURM_API_MAJOR |
| 3119 |
_ACEOF |
| 3120 |
|
| 3121 |
|
| 3122 |
cat >>confdefs.h <<_ACEOF |
| 3123 |
#define SLURM_API_AGE $SLURM_API_AGE |
| 3124 |
_ACEOF |
| 3125 |
|
| 3126 |
|
| 3127 |
cat >>confdefs.h <<_ACEOF |
| 3128 |
#define SLURM_API_REVISION $SLURM_API_REVISION |
| 3129 |
_ACEOF |
| 3130 |
|
| 3131 |
|
| 3132 |
|
| 3133 |
|
| 3134 |
|
| 3135 |
|
| 3136 |
|
| 3137 |
# rpm make target needs Version in META, not major and minor version numbers |
| 3138 |
VERSION="`perl -ne 'print,exit if s/^\s*VERSION:\s*(\S*).*/\1/i' $srcdir/META`" |
| 3139 |
# If you ever use AM_INIT_AUTOMAKE(subdir-objects) do not define VERSION |
| 3140 |
# since it will do it this automatically |
| 3141 |
|
| 3142 |
cat >>confdefs.h <<_ACEOF |
| 3143 |
#define VERSION "$VERSION" |
| 3144 |
_ACEOF |
| 3145 |
|
| 3146 |
|
| 3147 |
|
| 3148 |
SLURM_MAJOR="`perl -ne 'print,exit if s/^\s*MAJOR:\s*(\S*).*/\1/i' $srcdir/META`" |
| 3149 |
SLURM_MINOR="`perl -ne 'print,exit if s/^\s*MINOR:\s*(\S*).*/\1/i' $srcdir/META`" |
| 3150 |
SLURM_MICRO="`perl -ne 'print,exit if s/^\s*MICRO:\s*(\S*).*/\1/i' $srcdir/META`" |
| 3151 |
RELEASE="`perl -ne 'print,exit if s/^\s*RELEASE:\s*(\S*).*/\1/i' $srcdir/META`" |
| 3152 |
|
| 3153 |
# NOTE: SLURM_VERSION_NUMBER excludes any non-numeric component |
| 3154 |
# (e.g. "pre1" in the MICRO), but may be suitable for the user determining |
| 3155 |
# how to use the APIs or other differences. |
| 3156 |
SLURM_VERSION_NUMBER="`printf "0x%02x%02x%02x" ${SLURM_MAJOR#0} ${SLURM_MINOR#0} ${SLURM_MICRO#0}`" |
| 3157 |
|
| 3158 |
cat >>confdefs.h <<_ACEOF |
| 3159 |
#define SLURM_VERSION_NUMBER $SLURM_VERSION_NUMBER |
| 3160 |
_ACEOF |
| 3161 |
|
| 3162 |
|
| 3163 |
|
| 3164 |
if test "$SLURM_MAJOR.$SLURM_MINOR.$SLURM_MICRO" != "$VERSION"; then |
| 3165 |
as_fn_error $? "META information is inconsistent: $VERSION != $SLURM_MAJOR.$SLURM_MINOR.$SLURM_MICRO!" "$LINENO" 5 |
| 3166 |
fi |
| 3167 |
|
| 3168 |
# Check to see if we're on an unstable branch (no prereleases yet) |
| 3169 |
if echo "$RELEASE" | grep -e "UNSTABLE"; then |
| 3170 |
DATE=`date +"%Y%m%d%H%M"` |
| 3171 |
SLURM_RELEASE="unstable svn build $DATE" |
| 3172 |
SLURM_VERSION_STRING="$SLURM_MAJOR.$SLURM_MINOR ($SLURM_RELEASE)" |
| 3173 |
else |
| 3174 |
SLURM_RELEASE="`echo $RELEASE | sed 's/^0\.//'`" |
| 3175 |
SLURM_VERSION_STRING="$SLURM_MAJOR.$SLURM_MINOR.$SLURM_MICRO" |
| 3176 |
test $RELEASE = "1" || SLURM_VERSION_STRING="$SLURM_VERSION_STRING-$SLURM_RELEASE" |
| 3177 |
fi |
| 3178 |
|
| 3179 |
cat >>confdefs.h <<_ACEOF |
| 3180 |
#define SLURM_MAJOR "$SLURM_MAJOR" |
| 3181 |
_ACEOF |
| 3182 |
|
| 3183 |
|
| 3184 |
cat >>confdefs.h <<_ACEOF |
| 3185 |
#define SLURM_MINOR "$SLURM_MINOR" |
| 3186 |
_ACEOF |
| 3187 |
|
| 3188 |
|
| 3189 |
cat >>confdefs.h <<_ACEOF |
| 3190 |
#define SLURM_MICRO "$SLURM_MICRO" |
| 3191 |
_ACEOF |
| 3192 |
|
| 3193 |
|
| 3194 |
cat >>confdefs.h <<_ACEOF |
| 3195 |
#define RELEASE "$RELEASE" |
| 3196 |
_ACEOF |
| 3197 |
|
| 3198 |
|
| 3199 |
cat >>confdefs.h <<_ACEOF |
| 3200 |
#define SLURM_VERSION_STRING "$SLURM_VERSION_STRING" |
| 3201 |
_ACEOF |
| 3202 |
|
| 3203 |
|
| 3204 |
|
| 3205 |
|
| 3206 |
|
| 3207 |
|
| 3208 |
|
| 3209 |
|
| 3210 |
|
| 3211 |
|
| 3212 |
am__api_version='1.16' |
| 3213 |
|
| 3214 |
# Find a good install program. We prefer a C program (faster), |
| 3215 |
# so one script is as good as another. But avoid the broken or |
| 3216 |
# incompatible versions: |
| 3217 |
# SysV /etc/install, /usr/sbin/install |
| 3218 |
# SunOS /usr/etc/install |
| 3219 |
# IRIX /sbin/install |
| 3220 |
# AIX /bin/install |
| 3221 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3222 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3223 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3224 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3225 |
# OS/2's system install, which has a completely different semantic |
| 3226 |
# ./install, which can be erroneously created by make from ./install.sh. |
| 3227 |
# Reject install programs that cannot install multiple files. |
| 3228 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 3229 |
$as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 3230 |
if test -z "$INSTALL"; then |
| 3231 |
if ${ac_cv_path_install+:} false; then : |
| 3232 |
$as_echo_n "(cached) " >&6 |
| 3233 |
else |
| 3234 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3235 |
for as_dir in $PATH |
| 3236 |
do |
| 3237 |
IFS=$as_save_IFS |
| 3238 |
test -z "$as_dir" && as_dir=. |
| 3239 |
# Account for people who put trailing slashes in PATH elements. |
| 3240 |
case $as_dir/ in #(( |
| 3241 |
./ | .// | /[cC]/* | \ |
| 3242 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3243 |
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 3244 |
/usr/ucb/* ) ;; |
| 3245 |
*) |
| 3246 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
| 3247 |
# Don't use installbsd from OSF since it installs stuff as root |
| 3248 |
# by default. |
| 3249 |
for ac_prog in ginstall scoinst install; do |
| 3250 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3251 |
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3252 |
if test $ac_prog = install && |
| 3253 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3254 |
# AIX install. It has an incompatible calling convention. |
| 3255 |
: |
| 3256 |
elif test $ac_prog = install && |
| 3257 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3258 |
# program-specific install script used by HP pwplus--don't use. |
| 3259 |
: |
| 3260 |
else |
| 3261 |
rm -rf conftest.one conftest.two conftest.dir |
| 3262 |
echo one > conftest.one |
| 3263 |
echo two > conftest.two |
| 3264 |
mkdir conftest.dir |
| 3265 |
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 3266 |
test -s conftest.one && test -s conftest.two && |
| 3267 |
test -s conftest.dir/conftest.one && |
| 3268 |
test -s conftest.dir/conftest.two |
| 3269 |
then |
| 3270 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3271 |
break 3 |
| 3272 |
fi |
| 3273 |
fi |
| 3274 |
fi |
| 3275 |
done |
| 3276 |
done |
| 3277 |
;; |
| 3278 |
esac |
| 3279 |
|
| 3280 |
done |
| 3281 |
IFS=$as_save_IFS |
| 3282 |
|
| 3283 |
rm -rf conftest.one conftest.two conftest.dir |
| 3284 |
|
| 3285 |
fi |
| 3286 |
if test "${ac_cv_path_install+set}" = set; then |
| 3287 |
INSTALL=$ac_cv_path_install |
| 3288 |
else |
| 3289 |
# As a last resort, use the slow shell script. Don't cache a |
| 3290 |
# value for INSTALL within a source directory, because that will |
| 3291 |
# break other packages using the cache if that directory is |
| 3292 |
# removed, or if the value is a relative name. |
| 3293 |
INSTALL=$ac_install_sh |
| 3294 |
fi |
| 3295 |
fi |
| 3296 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 3297 |
$as_echo "$INSTALL" >&6; } |
| 3298 |
|
| 3299 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3300 |
# It thinks the first close brace ends the variable substitution. |
| 3301 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3302 |
|
| 3303 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3304 |
|
| 3305 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3306 |
|
| 3307 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 3308 |
$as_echo_n "checking whether build environment is sane... " >&6; } |
| 3309 |
# Reject unsafe characters in $srcdir or the absolute working directory |
| 3310 |
# name. Accept space and tab only in the latter. |
| 3311 |
am_lf=' |
| 3312 |
' |
| 3313 |
case `pwd` in |
| 3314 |
*[\\\"\#\$\&\'\`$am_lf]*) |
| 3315 |
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| 3316 |
esac |
| 3317 |
case $srcdir in |
| 3318 |
*[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 3319 |
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
| 3320 |
esac |
| 3321 |
|
| 3322 |
# Do 'set' in a subshell so we don't clobber the current shell's |
| 3323 |
# arguments. Must try -L first in case configure is actually a |
| 3324 |
# symlink; some systems play weird games with the mod time of symlinks |
| 3325 |
# (eg FreeBSD returns the mod time of the symlink's containing |
| 3326 |
# directory). |
| 3327 |
if ( |
| 3328 |
am_has_slept=no |
| 3329 |
for am_try in 1 2; do |
| 3330 |
echo "timestamp, slept: $am_has_slept" > conftest.file |
| 3331 |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 3332 |
if test "$*" = "X"; then |
| 3333 |
# -L didn't work. |
| 3334 |
set X `ls -t "$srcdir/configure" conftest.file` |
| 3335 |
fi |
| 3336 |
if test "$*" != "X $srcdir/configure conftest.file" \ |
| 3337 |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
| 3338 |
|
| 3339 |
# If neither matched, then we have a broken ls. This can happen |
| 3340 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
| 3341 |
# broken ls alias from the environment. This has actually |
| 3342 |
# happened. Such a system could not be considered "sane". |
| 3343 |
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 3344 |
alias in your environment" "$LINENO" 5 |
| 3345 |
fi |
| 3346 |
if test "$2" = conftest.file || test $am_try -eq 2; then |
| 3347 |
break |
| 3348 |
fi |
| 3349 |
# Just in case. |
| 3350 |
sleep 1 |
| 3351 |
am_has_slept=yes |
| 3352 |
done |
| 3353 |
test "$2" = conftest.file |
| 3354 |
) |
| 3355 |
then |
| 3356 |
# Ok. |
| 3357 |
: |
| 3358 |
else |
| 3359 |
as_fn_error $? "newly created file is older than distributed files! |
| 3360 |
Check your system clock" "$LINENO" 5 |
| 3361 |
fi |
| 3362 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3363 |
$as_echo "yes" >&6; } |
| 3364 |
# If we didn't sleep, we still need to ensure time stamps of config.status and |
| 3365 |
# generated files are strictly newer. |
| 3366 |
am_sleep_pid= |
| 3367 |
if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 3368 |
( sleep 1 ) & |
| 3369 |
am_sleep_pid=$! |
| 3370 |
fi |
| 3371 |
|
| 3372 |
rm -f conftest.file |
| 3373 |
|
| 3374 |
test "$program_prefix" != NONE && |
| 3375 |
program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 3376 |
# Use a double $ so make ignores it. |
| 3377 |
test "$program_suffix" != NONE && |
| 3378 |
program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 3379 |
# Double any \ or $. |
| 3380 |
# By default was `s,x,x', remove it if useless. |
| 3381 |
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 3382 |
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 3383 |
|
| 3384 |
# Expand $ac_aux_dir to an absolute path. |
| 3385 |
am_aux_dir=`cd "$ac_aux_dir" && pwd` |
| 3386 |
|
| 3387 |
if test x"${MISSING+set}" != xset; then |
| 3388 |
case $am_aux_dir in |
| 3389 |
*\ * | *\ *) |
| 3390 |
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 3391 |
*) |
| 3392 |
MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 3393 |
esac |
| 3394 |
fi |
| 3395 |
# Use eval to expand $SHELL |
| 3396 |
if eval "$MISSING --is-lightweight"; then |
| 3397 |
am_missing_run="$MISSING " |
| 3398 |
else |
| 3399 |
am_missing_run= |
| 3400 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 3401 |
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| 3402 |
fi |
| 3403 |
|
| 3404 |
if test x"${install_sh+set}" != xset; then |
| 3405 |
case $am_aux_dir in |
| 3406 |
*\ * | *\ *) |
| 3407 |
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 3408 |
*) |
| 3409 |
install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 3410 |
esac |
| 3411 |
fi |
| 3412 |
|
| 3413 |
# Installed binaries are usually stripped using 'strip' when the user |
| 3414 |
# run "make install-strip". However 'strip' might not be the right |
| 3415 |
# tool to use in cross-compilation environments, therefore Automake |
| 3416 |
# will honor the 'STRIP' environment variable to overrule this program. |
| 3417 |
if test "$cross_compiling" != no; then |
| 3418 |
if test -n "$ac_tool_prefix"; then |
| 3419 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3420 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 3421 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3422 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3423 |
if ${ac_cv_prog_STRIP+:} false; then : |
| 3424 |
$as_echo_n "(cached) " >&6 |
| 3425 |
else |
| 3426 |
if test -n "$STRIP"; then |
| 3427 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3428 |
else |
| 3429 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3430 |
for as_dir in $PATH |
| 3431 |
do |
| 3432 |
IFS=$as_save_IFS |
| 3433 |
test -z "$as_dir" && as_dir=. |
| 3434 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3435 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3436 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 3437 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3438 |
break 2 |
| 3439 |
fi |
| 3440 |
done |
| 3441 |
done |
| 3442 |
IFS=$as_save_IFS |
| 3443 |
|
| 3444 |
fi |
| 3445 |
fi |
| 3446 |
STRIP=$ac_cv_prog_STRIP |
| 3447 |
if test -n "$STRIP"; then |
| 3448 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 3449 |
$as_echo "$STRIP" >&6; } |
| 3450 |
else |
| 3451 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3452 |
$as_echo "no" >&6; } |
| 3453 |
fi |
| 3454 |
|
| 3455 |
|
| 3456 |
fi |
| 3457 |
if test -z "$ac_cv_prog_STRIP"; then |
| 3458 |
ac_ct_STRIP=$STRIP |
| 3459 |
# Extract the first word of "strip", so it can be a program name with args. |
| 3460 |
set dummy strip; ac_word=$2 |
| 3461 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3462 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3463 |
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 3464 |
$as_echo_n "(cached) " >&6 |
| 3465 |
else |
| 3466 |
if test -n "$ac_ct_STRIP"; then |
| 3467 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3468 |
else |
| 3469 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3470 |
for as_dir in $PATH |
| 3471 |
do |
| 3472 |
IFS=$as_save_IFS |
| 3473 |
test -z "$as_dir" && as_dir=. |
| 3474 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3475 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3476 |
ac_cv_prog_ac_ct_STRIP="strip" |
| 3477 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3478 |
break 2 |
| 3479 |
fi |
| 3480 |
done |
| 3481 |
done |
| 3482 |
IFS=$as_save_IFS |
| 3483 |
|
| 3484 |
fi |
| 3485 |
fi |
| 3486 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3487 |
if test -n "$ac_ct_STRIP"; then |
| 3488 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 3489 |
$as_echo "$ac_ct_STRIP" >&6; } |
| 3490 |
else |
| 3491 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3492 |
$as_echo "no" >&6; } |
| 3493 |
fi |
| 3494 |
|
| 3495 |
if test "x$ac_ct_STRIP" = x; then |
| 3496 |
STRIP=":" |
| 3497 |
else |
| 3498 |
case $cross_compiling:$ac_tool_warned in |
| 3499 |
yes:) |
| 3500 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3501 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3502 |
ac_tool_warned=yes ;; |
| 3503 |
esac |
| 3504 |
STRIP=$ac_ct_STRIP |
| 3505 |
fi |
| 3506 |
else |
| 3507 |
STRIP="$ac_cv_prog_STRIP" |
| 3508 |
fi |
| 3509 |
|
| 3510 |
fi |
| 3511 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 3512 |
|
| 3513 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 3514 |
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 3515 |
if test -z "$MKDIR_P"; then |
| 3516 |
if ${ac_cv_path_mkdir+:} false; then : |
| 3517 |
$as_echo_n "(cached) " >&6 |
| 3518 |
else |
| 3519 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3520 |
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 3521 |
do |
| 3522 |
IFS=$as_save_IFS |
| 3523 |
test -z "$as_dir" && as_dir=. |
| 3524 |
for ac_prog in mkdir gmkdir; do |
| 3525 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3526 |
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
| 3527 |
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 3528 |
'mkdir (GNU coreutils) '* | \ |
| 3529 |
'mkdir (coreutils) '* | \ |
| 3530 |
'mkdir (fileutils) '4.1*) |
| 3531 |
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 3532 |
break 3;; |
| 3533 |
esac |
| 3534 |
done |
| 3535 |
done |
| 3536 |
done |
| 3537 |
IFS=$as_save_IFS |
| 3538 |
|
| 3539 |
fi |
| 3540 |
|
| 3541 |
test -d ./--version && rmdir ./--version |
| 3542 |
if test "${ac_cv_path_mkdir+set}" = set; then |
| 3543 |
MKDIR_P="$ac_cv_path_mkdir -p" |
| 3544 |
else |
| 3545 |
# As a last resort, use the slow shell script. Don't cache a |
| 3546 |
# value for MKDIR_P within a source directory, because that will |
| 3547 |
# break other packages using the cache if that directory is |
| 3548 |
# removed, or if the value is a relative name. |
| 3549 |
MKDIR_P="$ac_install_sh -d" |
| 3550 |
fi |
| 3551 |
fi |
| 3552 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 3553 |
$as_echo "$MKDIR_P" >&6; } |
| 3554 |
|
| 3555 |
for ac_prog in gawk mawk nawk awk |
| 3556 |
do |
| 3557 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3558 |
set dummy $ac_prog; ac_word=$2 |
| 3559 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3560 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3561 |
if ${ac_cv_prog_AWK+:} false; then : |
| 3562 |
$as_echo_n "(cached) " >&6 |
| 3563 |
else |
| 3564 |
if test -n "$AWK"; then |
| 3565 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3566 |
else |
| 3567 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3568 |
for as_dir in $PATH |
| 3569 |
do |
| 3570 |
IFS=$as_save_IFS |
| 3571 |
test -z "$as_dir" && as_dir=. |
| 3572 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3573 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3574 |
ac_cv_prog_AWK="$ac_prog" |
| 3575 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3576 |
break 2 |
| 3577 |
fi |
| 3578 |
done |
| 3579 |
done |
| 3580 |
IFS=$as_save_IFS |
| 3581 |
|
| 3582 |
fi |
| 3583 |
fi |
| 3584 |
AWK=$ac_cv_prog_AWK |
| 3585 |
if test -n "$AWK"; then |
| 3586 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 3587 |
$as_echo "$AWK" >&6; } |
| 3588 |
else |
| 3589 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3590 |
$as_echo "no" >&6; } |
| 3591 |
fi |
| 3592 |
|
| 3593 |
|
| 3594 |
test -n "$AWK" && break |
| 3595 |
done |
| 3596 |
|
| 3597 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3598 |
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 3599 |
set x ${MAKE-make} |
| 3600 |
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 3601 |
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
| 3602 |
$as_echo_n "(cached) " >&6 |
| 3603 |
else |
| 3604 |
cat >conftest.make <<\_ACEOF |
| 3605 |
SHELL = /bin/sh |
| 3606 |
all: |
| 3607 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
| 3608 |
_ACEOF |
| 3609 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 3610 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 3611 |
*@@@%%%=?*=@@@%%%*) |
| 3612 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 3613 |
*) |
| 3614 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
| 3615 |
esac |
| 3616 |
rm -f conftest.make |
| 3617 |
fi |
| 3618 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 3619 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3620 |
$as_echo "yes" >&6; } |
| 3621 |
SET_MAKE= |
| 3622 |
else |
| 3623 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3624 |
$as_echo "no" >&6; } |
| 3625 |
SET_MAKE="MAKE=${MAKE-make}" |
| 3626 |
fi |
| 3627 |
|
| 3628 |
rm -rf .tst 2>/dev/null |
| 3629 |
mkdir .tst 2>/dev/null |
| 3630 |
if test -d .tst; then |
| 3631 |
am__leading_dot=. |
| 3632 |
else |
| 3633 |
am__leading_dot=_ |
| 3634 |
fi |
| 3635 |
rmdir .tst 2>/dev/null |
| 3636 |
|
| 3637 |
# Check whether --enable-silent-rules was given. |
| 3638 |
if test "${enable_silent_rules+set}" = set; then : |
| 3639 |
enableval=$enable_silent_rules; |
| 3640 |
fi |
| 3641 |
|
| 3642 |
case $enable_silent_rules in # ((( |
| 3643 |
yes) AM_DEFAULT_VERBOSITY=0;; |
| 3644 |
no) AM_DEFAULT_VERBOSITY=1;; |
| 3645 |
*) AM_DEFAULT_VERBOSITY=1;; |
| 3646 |
esac |
| 3647 |
am_make=${MAKE-make} |
| 3648 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 3649 |
$as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
| 3650 |
if ${am_cv_make_support_nested_variables+:} false; then : |
| 3651 |
$as_echo_n "(cached) " >&6 |
| 3652 |
else |
| 3653 |
if $as_echo 'TRUE=$(BAR$(V)) |
| 3654 |
BAR0=false |
| 3655 |
BAR1=true |
| 3656 |
V=1 |
| 3657 |
am__doit: |
| 3658 |
@$(TRUE) |
| 3659 |
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 3660 |
am_cv_make_support_nested_variables=yes |
| 3661 |
else |
| 3662 |
am_cv_make_support_nested_variables=no |
| 3663 |
fi |
| 3664 |
fi |
| 3665 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 3666 |
$as_echo "$am_cv_make_support_nested_variables" >&6; } |
| 3667 |
if test $am_cv_make_support_nested_variables = yes; then |
| 3668 |
AM_V='$(V)' |
| 3669 |
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 3670 |
else |
| 3671 |
AM_V=$AM_DEFAULT_VERBOSITY |
| 3672 |
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 3673 |
fi |
| 3674 |
AM_BACKSLASH='\' |
| 3675 |
|
| 3676 |
if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 3677 |
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 3678 |
# is not polluted with repeated "-I." |
| 3679 |
am__isrc=' -I$(srcdir)' |
| 3680 |
# test to see if srcdir already configured |
| 3681 |
if test -f $srcdir/config.status; then |
| 3682 |
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 3683 |
fi |
| 3684 |
fi |
| 3685 |
|
| 3686 |
# test whether we have cygpath |
| 3687 |
if test -z "$CYGPATH_W"; then |
| 3688 |
if (cygpath --version) >/dev/null 2>/dev/null; then |
| 3689 |
CYGPATH_W='cygpath -w' |
| 3690 |
else |
| 3691 |
CYGPATH_W=echo |
| 3692 |
fi |
| 3693 |
fi |
| 3694 |
|
| 3695 |
|
| 3696 |
# Define the identity of the package. |
| 3697 |
PACKAGE='slurm' |
| 3698 |
VERSION='19.05' |
| 3699 |
|
| 3700 |
|
| 3701 |
# Some tools Automake needs. |
| 3702 |
|
| 3703 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 3704 |
|
| 3705 |
|
| 3706 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 3707 |
|
| 3708 |
|
| 3709 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 3710 |
|
| 3711 |
|
| 3712 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 3713 |
|
| 3714 |
|
| 3715 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 3716 |
|
| 3717 |
# For better backward compatibility. To be removed once Automake 1.9.x |
| 3718 |
# dies out for good. For more background, see: |
| 3719 |
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 3720 |
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 3721 |
mkdir_p='$(MKDIR_P)' |
| 3722 |
|
| 3723 |
# We need awk for the "check" target (and possibly the TAP driver). The |
| 3724 |
# system "awk" is bad on some platforms. |
| 3725 |
# Always define AMTAR for backward compatibility. Yes, it's still used |
| 3726 |
# in the wild :-( We should find a proper way to deprecate it ... |
| 3727 |
AMTAR='$${TAR-tar}' |
| 3728 |
|
| 3729 |
|
| 3730 |
# We'll loop over all known methods to create a tar archive until one works. |
| 3731 |
_am_tools='gnutar pax cpio none' |
| 3732 |
|
| 3733 |
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
| 3734 |
|
| 3735 |
|
| 3736 |
|
| 3737 |
|
| 3738 |
|
| 3739 |
|
| 3740 |
# POSIX will say in a future version that running "rm -f" with no argument |
| 3741 |
# is OK; and we want to be able to make that assumption in our Makefile |
| 3742 |
# recipes. So use an aggressive probe to check that the usage we want is |
| 3743 |
# actually supported "in the wild" to an acceptable degree. |
| 3744 |
# See automake bug#10828. |
| 3745 |
# To make any issue more visible, cause the running configure to be aborted |
| 3746 |
# by default if the 'rm' program in use doesn't match our expectations; the |
| 3747 |
# user can still override this though. |
| 3748 |
if rm -f && rm -fr && rm -rf; then : OK; else |
| 3749 |
cat >&2 <<'END' |
| 3750 |
Oops! |
| 3751 |
|
| 3752 |
Your 'rm' program seems unable to run without file operands specified |
| 3753 |
on the command line, even when the '-f' option is present. This is contrary |
| 3754 |
to the behaviour of most rm programs out there, and not conforming with |
| 3755 |
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| 3756 |
|
| 3757 |
Please tell bug-automake@gnu.org about your system, including the value |
| 3758 |
of your $PATH and any error possibly output before this message. This |
| 3759 |
can help us improve future automake versions. |
| 3760 |
|
| 3761 |
END |
| 3762 |
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
| 3763 |
echo 'Configuration will proceed anyway, since you have set the' >&2 |
| 3764 |
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
| 3765 |
echo >&2 |
| 3766 |
else |
| 3767 |
cat >&2 <<'END' |
| 3768 |
Aborting the configuration process, to ensure you take notice of the issue. |
| 3769 |
|
| 3770 |
You can download and install GNU coreutils to get an 'rm' implementation |
| 3771 |
that behaves properly: <https://www.gnu.org/software/coreutils/>. |
| 3772 |
|
| 3773 |
If you want to complete the configuration process using your problematic |
| 3774 |
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| 3775 |
to "yes", and re-run configure. |
| 3776 |
|
| 3777 |
END |
| 3778 |
as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
| 3779 |
fi |
| 3780 |
fi |
| 3781 |
|
| 3782 |
|
| 3783 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 3784 |
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 3785 |
# Check whether --enable-maintainer-mode was given. |
| 3786 |
if test "${enable_maintainer_mode+set}" = set; then : |
| 3787 |
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 3788 |
else |
| 3789 |
USE_MAINTAINER_MODE=no |
| 3790 |
fi |
| 3791 |
|
| 3792 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 3793 |
$as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 3794 |
if test $USE_MAINTAINER_MODE = yes; then |
| 3795 |
MAINTAINER_MODE_TRUE= |
| 3796 |
MAINTAINER_MODE_FALSE='#' |
| 3797 |
else |
| 3798 |
MAINTAINER_MODE_TRUE='#' |
| 3799 |
MAINTAINER_MODE_FALSE= |
| 3800 |
fi |
| 3801 |
|
| 3802 |
MAINT=$MAINTAINER_MODE_TRUE |
| 3803 |
|
| 3804 |
|
| 3805 |
ac_config_headers="$ac_config_headers config.h" |
| 3806 |
|
| 3807 |
ac_config_headers="$ac_config_headers slurm/slurm.h" |
| 3808 |
|
| 3809 |
|
| 3810 |
|
| 3811 |
ac_with_rpath=yes |
| 3812 |
|
| 3813 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include rpath in build" >&5 |
| 3814 |
$as_echo_n "checking whether to include rpath in build... " >&6; } |
| 3815 |
|
| 3816 |
# Check whether --with-rpath was given. |
| 3817 |
if test "${with_rpath+set}" = set; then : |
| 3818 |
withval=$with_rpath; case "$withval" in |
| 3819 |
yes) ac_with_rpath=yes ;; |
| 3820 |
no) ac_with_rpath=no ;; |
| 3821 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: doh!" >&5 |
| 3822 |
$as_echo "doh!" >&6; } |
| 3823 |
as_fn_error $? "bad value \"$withval\" for --without-rpath" "$LINENO" 5 ;; |
| 3824 |
esac |
| 3825 |
|
| 3826 |
|
| 3827 |
fi |
| 3828 |
|
| 3829 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_with_rpath" >&5 |
| 3830 |
$as_echo "$ac_with_rpath" >&6; } |
| 3831 |
|
| 3832 |
|
| 3833 |
DEPDIR="${am__leading_dot}deps" |
| 3834 |
|
| 3835 |
ac_config_commands="$ac_config_commands depfiles" |
| 3836 |
|
| 3837 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 |
| 3838 |
$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } |
| 3839 |
cat > confinc.mk << 'END' |
| 3840 |
am__doit: |
| 3841 |
@echo this is the am__doit target >confinc.out |
| 3842 |
.PHONY: am__doit |
| 3843 |
END |
| 3844 |
am__include="#" |
| 3845 |
am__quote= |
| 3846 |
# BSD make does it like this. |
| 3847 |
echo '.include "confinc.mk" # ignored' > confmf.BSD |
| 3848 |
# Other make implementations (GNU, Solaris 10, AIX) do it like this. |
| 3849 |
echo 'include confinc.mk # ignored' > confmf.GNU |
| 3850 |
_am_result=no |
| 3851 |
for s in GNU BSD; do |
| 3852 |
{ echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 |
| 3853 |
(${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 |
| 3854 |
ac_status=$? |
| 3855 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3856 |
(exit $ac_status); } |
| 3857 |
case $?:`cat confinc.out 2>/dev/null` in #( |
| 3858 |
'0:this is the am__doit target') : |
| 3859 |
case $s in #( |
| 3860 |
BSD) : |
| 3861 |
am__include='.include' am__quote='"' ;; #( |
| 3862 |
*) : |
| 3863 |
am__include='include' am__quote='' ;; |
| 3864 |
esac ;; #( |
| 3865 |
*) : |
| 3866 |
;; |
| 3867 |
esac |
| 3868 |
if test "$am__include" != "#"; then |
| 3869 |
_am_result="yes ($s style)" |
| 3870 |
break |
| 3871 |
fi |
| 3872 |
done |
| 3873 |
rm -f confinc.* confmf.* |
| 3874 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 |
| 3875 |
$as_echo "${_am_result}" >&6; } |
| 3876 |
|
| 3877 |
# Check whether --enable-dependency-tracking was given. |
| 3878 |
if test "${enable_dependency_tracking+set}" = set; then : |
| 3879 |
enableval=$enable_dependency_tracking; |
| 3880 |
fi |
| 3881 |
|
| 3882 |
if test "x$enable_dependency_tracking" != xno; then |
| 3883 |
am_depcomp="$ac_aux_dir/depcomp" |
| 3884 |
AMDEPBACKSLASH='\' |
| 3885 |
am__nodep='_no' |
| 3886 |
fi |
| 3887 |
if test "x$enable_dependency_tracking" != xno; then |
| 3888 |
AMDEP_TRUE= |
| 3889 |
AMDEP_FALSE='#' |
| 3890 |
else |
| 3891 |
AMDEP_TRUE='#' |
| 3892 |
AMDEP_FALSE= |
| 3893 |
fi |
| 3894 |
|
| 3895 |
|
| 3896 |
ac_ext=c |
| 3897 |
ac_cpp='$CPP $CPPFLAGS' |
| 3898 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3899 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3900 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3901 |
if test -n "$ac_tool_prefix"; then |
| 3902 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3903 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3904 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3905 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3906 |
if ${ac_cv_prog_CC+:} false; then : |
| 3907 |
$as_echo_n "(cached) " >&6 |
| 3908 |
else |
| 3909 |
if test -n "$CC"; then |
| 3910 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3911 |
else |
| 3912 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3913 |
for as_dir in $PATH |
| 3914 |
do |
| 3915 |
IFS=$as_save_IFS |
| 3916 |
test -z "$as_dir" && as_dir=. |
| 3917 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3918 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3919 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3920 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3921 |
break 2 |
| 3922 |
fi |
| 3923 |
done |
| 3924 |
done |
| 3925 |
IFS=$as_save_IFS |
| 3926 |
|
| 3927 |
fi |
| 3928 |
fi |
| 3929 |
CC=$ac_cv_prog_CC |
| 3930 |
if test -n "$CC"; then |
| 3931 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3932 |
$as_echo "$CC" >&6; } |
| 3933 |
else |
| 3934 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3935 |
$as_echo "no" >&6; } |
| 3936 |
fi |
| 3937 |
|
| 3938 |
|
| 3939 |
fi |
| 3940 |
if test -z "$ac_cv_prog_CC"; then |
| 3941 |
ac_ct_CC=$CC |
| 3942 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 3943 |
set dummy gcc; ac_word=$2 |
| 3944 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3945 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3946 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 3947 |
$as_echo_n "(cached) " >&6 |
| 3948 |
else |
| 3949 |
if test -n "$ac_ct_CC"; then |
| 3950 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3951 |
else |
| 3952 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3953 |
for as_dir in $PATH |
| 3954 |
do |
| 3955 |
IFS=$as_save_IFS |
| 3956 |
test -z "$as_dir" && as_dir=. |
| 3957 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3958 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3959 |
ac_cv_prog_ac_ct_CC="gcc" |
| 3960 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3961 |
break 2 |
| 3962 |
fi |
| 3963 |
done |
| 3964 |
done |
| 3965 |
IFS=$as_save_IFS |
| 3966 |
|
| 3967 |
fi |
| 3968 |
fi |
| 3969 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3970 |
if test -n "$ac_ct_CC"; then |
| 3971 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3972 |
$as_echo "$ac_ct_CC" >&6; } |
| 3973 |
else |
| 3974 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3975 |
$as_echo "no" >&6; } |
| 3976 |
fi |
| 3977 |
|
| 3978 |
if test "x$ac_ct_CC" = x; then |
| 3979 |
CC="" |
| 3980 |
else |
| 3981 |
case $cross_compiling:$ac_tool_warned in |
| 3982 |
yes:) |
| 3983 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3984 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3985 |
ac_tool_warned=yes ;; |
| 3986 |
esac |
| 3987 |
CC=$ac_ct_CC |
| 3988 |
fi |
| 3989 |
else |
| 3990 |
CC="$ac_cv_prog_CC" |
| 3991 |
fi |
| 3992 |
|
| 3993 |
if test -z "$CC"; then |
| 3994 |
if test -n "$ac_tool_prefix"; then |
| 3995 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3996 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3997 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3998 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3999 |
if ${ac_cv_prog_CC+:} false; then : |
| 4000 |
$as_echo_n "(cached) " >&6 |
| 4001 |
else |
| 4002 |
if test -n "$CC"; then |
| 4003 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4004 |
else |
| 4005 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4006 |
for as_dir in $PATH |
| 4007 |
do |
| 4008 |
IFS=$as_save_IFS |
| 4009 |
test -z "$as_dir" && as_dir=. |
| 4010 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4011 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4012 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 4013 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4014 |
break 2 |
| 4015 |
fi |
| 4016 |
done |
| 4017 |
done |
| 4018 |
IFS=$as_save_IFS |
| 4019 |
|
| 4020 |
fi |
| 4021 |
fi |
| 4022 |
CC=$ac_cv_prog_CC |
| 4023 |
if test -n "$CC"; then |
| 4024 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4025 |
$as_echo "$CC" >&6; } |
| 4026 |
else |
| 4027 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4028 |
$as_echo "no" >&6; } |
| 4029 |
fi |
| 4030 |
|
| 4031 |
|
| 4032 |
fi |
| 4033 |
fi |
| 4034 |
if test -z "$CC"; then |
| 4035 |
# Extract the first word of "cc", so it can be a program name with args. |
| 4036 |
set dummy cc; ac_word=$2 |
| 4037 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4038 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4039 |
if ${ac_cv_prog_CC+:} false; then : |
| 4040 |
$as_echo_n "(cached) " >&6 |
| 4041 |
else |
| 4042 |
if test -n "$CC"; then |
| 4043 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4044 |
else |
| 4045 |
ac_prog_rejected=no |
| 4046 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4047 |
for as_dir in $PATH |
| 4048 |
do |
| 4049 |
IFS=$as_save_IFS |
| 4050 |
test -z "$as_dir" && as_dir=. |
| 4051 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4052 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4053 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4054 |
ac_prog_rejected=yes |
| 4055 |
continue |
| 4056 |
fi |
| 4057 |
ac_cv_prog_CC="cc" |
| 4058 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4059 |
break 2 |
| 4060 |
fi |
| 4061 |
done |
| 4062 |
done |
| 4063 |
IFS=$as_save_IFS |
| 4064 |
|
| 4065 |
if test $ac_prog_rejected = yes; then |
| 4066 |
# We found a bogon in the path, so make sure we never use it. |
| 4067 |
set dummy $ac_cv_prog_CC |
| 4068 |
shift |
| 4069 |
if test $# != 0; then |
| 4070 |
# We chose a different compiler from the bogus one. |
| 4071 |
# However, it has the same basename, so the bogon will be chosen |
| 4072 |
# first if we set CC to just the basename; use the full file name. |
| 4073 |
shift |
| 4074 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 4075 |
fi |
| 4076 |
fi |
| 4077 |
fi |
| 4078 |
fi |
| 4079 |
CC=$ac_cv_prog_CC |
| 4080 |
if test -n "$CC"; then |
| 4081 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4082 |
$as_echo "$CC" >&6; } |
| 4083 |
else |
| 4084 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4085 |
$as_echo "no" >&6; } |
| 4086 |
fi |
| 4087 |
|
| 4088 |
|
| 4089 |
fi |
| 4090 |
if test -z "$CC"; then |
| 4091 |
if test -n "$ac_tool_prefix"; then |
| 4092 |
for ac_prog in cl.exe |
| 4093 |
do |
| 4094 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4095 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4096 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4097 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4098 |
if ${ac_cv_prog_CC+:} false; then : |
| 4099 |
$as_echo_n "(cached) " >&6 |
| 4100 |
else |
| 4101 |
if test -n "$CC"; then |
| 4102 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4103 |
else |
| 4104 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4105 |
for as_dir in $PATH |
| 4106 |
do |
| 4107 |
IFS=$as_save_IFS |
| 4108 |
test -z "$as_dir" && as_dir=. |
| 4109 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4110 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4111 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4112 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4113 |
break 2 |
| 4114 |
fi |
| 4115 |
done |
| 4116 |
done |
| 4117 |
IFS=$as_save_IFS |
| 4118 |
|
| 4119 |
fi |
| 4120 |
fi |
| 4121 |
CC=$ac_cv_prog_CC |
| 4122 |
if test -n "$CC"; then |
| 4123 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4124 |
$as_echo "$CC" >&6; } |
| 4125 |
else |
| 4126 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4127 |
$as_echo "no" >&6; } |
| 4128 |
fi |
| 4129 |
|
| 4130 |
|
| 4131 |
test -n "$CC" && break |
| 4132 |
done |
| 4133 |
fi |
| 4134 |
if test -z "$CC"; then |
| 4135 |
ac_ct_CC=$CC |
| 4136 |
for ac_prog in cl.exe |
| 4137 |
do |
| 4138 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4139 |
set dummy $ac_prog; ac_word=$2 |
| 4140 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4141 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4142 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 4143 |
$as_echo_n "(cached) " >&6 |
| 4144 |
else |
| 4145 |
if test -n "$ac_ct_CC"; then |
| 4146 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4147 |
else |
| 4148 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4149 |
for as_dir in $PATH |
| 4150 |
do |
| 4151 |
IFS=$as_save_IFS |
| 4152 |
test -z "$as_dir" && as_dir=. |
| 4153 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4154 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4155 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4156 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4157 |
break 2 |
| 4158 |
fi |
| 4159 |
done |
| 4160 |
done |
| 4161 |
IFS=$as_save_IFS |
| 4162 |
|
| 4163 |
fi |
| 4164 |
fi |
| 4165 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4166 |
if test -n "$ac_ct_CC"; then |
| 4167 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4168 |
$as_echo "$ac_ct_CC" >&6; } |
| 4169 |
else |
| 4170 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4171 |
$as_echo "no" >&6; } |
| 4172 |
fi |
| 4173 |
|
| 4174 |
|
| 4175 |
test -n "$ac_ct_CC" && break |
| 4176 |
done |
| 4177 |
|
| 4178 |
if test "x$ac_ct_CC" = x; then |
| 4179 |
CC="" |
| 4180 |
else |
| 4181 |
case $cross_compiling:$ac_tool_warned in |
| 4182 |
yes:) |
| 4183 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4184 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4185 |
ac_tool_warned=yes ;; |
| 4186 |
esac |
| 4187 |
CC=$ac_ct_CC |
| 4188 |
fi |
| 4189 |
fi |
| 4190 |
|
| 4191 |
fi |
| 4192 |
|
| 4193 |
|
| 4194 |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4195 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4196 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4197 |
See \`config.log' for more details" "$LINENO" 5; } |
| 4198 |
|
| 4199 |
# Provide some information about the compiler. |
| 4200 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4201 |
set X $ac_compile |
| 4202 |
ac_compiler=$2 |
| 4203 |
for ac_option in --version -v -V -qversion; do |
| 4204 |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 4205 |
case "(($ac_try" in |
| 4206 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4207 |
*) ac_try_echo=$ac_try;; |
| 4208 |
esac |
| 4209 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4210 |
$as_echo "$ac_try_echo"; } >&5 |
| 4211 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4212 |
ac_status=$? |
| 4213 |
if test -s conftest.err; then |
| 4214 |
sed '10a\ |
| 4215 |
... rest of stderr output deleted ... |
| 4216 |
10q' conftest.err >conftest.er1 |
| 4217 |
cat conftest.er1 >&5 |
| 4218 |
fi |
| 4219 |
rm -f conftest.er1 conftest.err |
| 4220 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4221 |
test $ac_status = 0; } |
| 4222 |
done |
| 4223 |
|
| 4224 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4225 |
/* end confdefs.h. */ |
| 4226 |
|
| 4227 |
int |
| 4228 |
main () |
| 4229 |
{ |
| 4230 |
|
| 4231 |
; |
| 4232 |
return 0; |
| 4233 |
} |
| 4234 |
_ACEOF |
| 4235 |
ac_clean_files_save=$ac_clean_files |
| 4236 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 4237 |
# Try to create an executable without -o first, disregard a.out. |
| 4238 |
# It will help us diagnose broken compilers, and finding out an intuition |
| 4239 |
# of exeext. |
| 4240 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 4241 |
$as_echo_n "checking whether the C compiler works... " >&6; } |
| 4242 |
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 4243 |
|
| 4244 |
# The possible output files: |
| 4245 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 4246 |
|
| 4247 |
ac_rmfiles= |
| 4248 |
for ac_file in $ac_files |
| 4249 |
do |
| 4250 |
case $ac_file in |
| 4251 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4252 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 4253 |
esac |
| 4254 |
done |
| 4255 |
rm -f $ac_rmfiles |
| 4256 |
|
| 4257 |
if { { ac_try="$ac_link_default" |
| 4258 |
case "(($ac_try" in |
| 4259 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4260 |
*) ac_try_echo=$ac_try;; |
| 4261 |
esac |
| 4262 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4263 |
$as_echo "$ac_try_echo"; } >&5 |
| 4264 |
(eval "$ac_link_default") 2>&5 |
| 4265 |
ac_status=$? |
| 4266 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4267 |
test $ac_status = 0; }; then : |
| 4268 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 4269 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 4270 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 4271 |
# so that the user can short-circuit this test for compilers unknown to |
| 4272 |
# Autoconf. |
| 4273 |
for ac_file in $ac_files '' |
| 4274 |
do |
| 4275 |
test -f "$ac_file" || continue |
| 4276 |
case $ac_file in |
| 4277 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 4278 |
;; |
| 4279 |
[ab].out ) |
| 4280 |
# We found the default executable, but exeext='' is most |
| 4281 |
# certainly right. |
| 4282 |
break;; |
| 4283 |
*.* ) |
| 4284 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 4285 |
then :; else |
| 4286 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4287 |
fi |
| 4288 |
# We set ac_cv_exeext here because the later test for it is not |
| 4289 |
# safe: cross compilers may not add the suffix if given an `-o' |
| 4290 |
# argument, so we may need to know it at that point already. |
| 4291 |
# Even if this section looks crufty: it has the advantage of |
| 4292 |
# actually working. |
| 4293 |
break;; |
| 4294 |
* ) |
| 4295 |
break;; |
| 4296 |
esac |
| 4297 |
done |
| 4298 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 4299 |
|
| 4300 |
else |
| 4301 |
ac_file='' |
| 4302 |
fi |
| 4303 |
if test -z "$ac_file"; then : |
| 4304 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4305 |
$as_echo "no" >&6; } |
| 4306 |
$as_echo "$as_me: failed program was:" >&5 |
| 4307 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4308 |
|
| 4309 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4310 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4311 |
as_fn_error 77 "C compiler cannot create executables |
| 4312 |
See \`config.log' for more details" "$LINENO" 5; } |
| 4313 |
else |
| 4314 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4315 |
$as_echo "yes" >&6; } |
| 4316 |
fi |
| 4317 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 4318 |
$as_echo_n "checking for C compiler default output file name... " >&6; } |
| 4319 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 4320 |
$as_echo "$ac_file" >&6; } |
| 4321 |
ac_exeext=$ac_cv_exeext |
| 4322 |
|
| 4323 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 4324 |
ac_clean_files=$ac_clean_files_save |
| 4325 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 4326 |
$as_echo_n "checking for suffix of executables... " >&6; } |
| 4327 |
if { { ac_try="$ac_link" |
| 4328 |
case "(($ac_try" in |
| 4329 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4330 |
*) ac_try_echo=$ac_try;; |
| 4331 |
esac |
| 4332 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4333 |
$as_echo "$ac_try_echo"; } >&5 |
| 4334 |
(eval "$ac_link") 2>&5 |
| 4335 |
ac_status=$? |
| 4336 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4337 |
test $ac_status = 0; }; then : |
| 4338 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 4339 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 4340 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
| 4341 |
# `rm'. |
| 4342 |
for ac_file in conftest.exe conftest conftest.*; do |
| 4343 |
test -f "$ac_file" || continue |
| 4344 |
case $ac_file in |
| 4345 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4346 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4347 |
break;; |
| 4348 |
* ) break;; |
| 4349 |
esac |
| 4350 |
done |
| 4351 |
else |
| 4352 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4353 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4354 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 4355 |
See \`config.log' for more details" "$LINENO" 5; } |
| 4356 |
fi |
| 4357 |
rm -f conftest conftest$ac_cv_exeext |
| 4358 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 4359 |
$as_echo "$ac_cv_exeext" >&6; } |
| 4360 |
|
| 4361 |
rm -f conftest.$ac_ext |
| 4362 |
EXEEXT=$ac_cv_exeext |
| 4363 |
ac_exeext=$EXEEXT |
| 4364 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4365 |
/* end confdefs.h. */ |
| 4366 |
#include <stdio.h> |
| 4367 |
int |
| 4368 |
main () |
| 4369 |
{ |
| 4370 |
FILE *f = fopen ("conftest.out", "w"); |
| 4371 |
return ferror (f) || fclose (f) != 0; |
| 4372 |
|
| 4373 |
; |
| 4374 |
return 0; |
| 4375 |
} |
| 4376 |
_ACEOF |
| 4377 |
ac_clean_files="$ac_clean_files conftest.out" |
| 4378 |
# Check that the compiler produces executables we can run. If not, either |
| 4379 |
# the compiler is broken, or we cross compile. |
| 4380 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 4381 |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
| 4382 |
if test "$cross_compiling" != yes; then |
| 4383 |
{ { ac_try="$ac_link" |
| 4384 |
case "(($ac_try" in |
| 4385 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4386 |
*) ac_try_echo=$ac_try;; |
| 4387 |
esac |
| 4388 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4389 |
$as_echo "$ac_try_echo"; } >&5 |
| 4390 |
(eval "$ac_link") 2>&5 |
| 4391 |
ac_status=$? |
| 4392 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4393 |
test $ac_status = 0; } |
| 4394 |
if { ac_try='./conftest$ac_cv_exeext' |
| 4395 |
{ { case "(($ac_try" in |
| 4396 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4397 |
*) ac_try_echo=$ac_try;; |
| 4398 |
esac |
| 4399 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4400 |
$as_echo "$ac_try_echo"; } >&5 |
| 4401 |
(eval "$ac_try") 2>&5 |
| 4402 |
ac_status=$? |
| 4403 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4404 |
test $ac_status = 0; }; }; then |
| 4405 |
cross_compiling=no |
| 4406 |
else |
| 4407 |
if test "$cross_compiling" = maybe; then |
| 4408 |
cross_compiling=yes |
| 4409 |
else |
| 4410 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4411 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4412 |
as_fn_error $? "cannot run C compiled programs. |
| 4413 |
If you meant to cross compile, use \`--host'. |
| 4414 |
See \`config.log' for more details" "$LINENO" 5; } |
| 4415 |
fi |
| 4416 |
fi |
| 4417 |
fi |
| 4418 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 4419 |
$as_echo "$cross_compiling" >&6; } |
| 4420 |
|
| 4421 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 4422 |
ac_clean_files=$ac_clean_files_save |
| 4423 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 4424 |
$as_echo_n "checking for suffix of object files... " >&6; } |
| 4425 |
if ${ac_cv_objext+:} false; then : |
| 4426 |
$as_echo_n "(cached) " >&6 |
| 4427 |
else |
| 4428 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4429 |
/* end confdefs.h. */ |
| 4430 |
|
| 4431 |
int |
| 4432 |
main () |
| 4433 |
{ |
| 4434 |
|
| 4435 |
; |
| 4436 |
return 0; |
| 4437 |
} |
| 4438 |
_ACEOF |
| 4439 |
rm -f conftest.o conftest.obj |
| 4440 |
if { { ac_try="$ac_compile" |
| 4441 |
case "(($ac_try" in |
| 4442 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4443 |
*) ac_try_echo=$ac_try;; |
| 4444 |
esac |
| 4445 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4446 |
$as_echo "$ac_try_echo"; } >&5 |
| 4447 |
(eval "$ac_compile") 2>&5 |
| 4448 |
ac_status=$? |
| 4449 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4450 |
test $ac_status = 0; }; then : |
| 4451 |
for ac_file in conftest.o conftest.obj conftest.*; do |
| 4452 |
test -f "$ac_file" || continue; |
| 4453 |
case $ac_file in |
| 4454 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 4455 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4456 |
break;; |
| 4457 |
esac |
| 4458 |
done |
| 4459 |
else |
| 4460 |
$as_echo "$as_me: failed program was:" >&5 |
| 4461 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4462 |
|
| 4463 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4464 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4465 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 4466 |
See \`config.log' for more details" "$LINENO" 5; } |
| 4467 |
fi |
| 4468 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 4469 |
fi |
| 4470 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 4471 |
$as_echo "$ac_cv_objext" >&6; } |
| 4472 |
OBJEXT=$ac_cv_objext |
| 4473 |
ac_objext=$OBJEXT |
| 4474 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4475 |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 4476 |
if ${ac_cv_c_compiler_gnu+:} false; then : |
| 4477 |
$as_echo_n "(cached) " >&6 |
| 4478 |
else |
| 4479 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4480 |
/* end confdefs.h. */ |
| 4481 |
|
| 4482 |
int |
| 4483 |
main () |
| 4484 |
{ |
| 4485 |
#ifndef __GNUC__ |
| 4486 |
choke me |
| 4487 |
#endif |
| 4488 |
|
| 4489 |
; |
| 4490 |
return 0; |
| 4491 |
} |
| 4492 |
_ACEOF |
| 4493 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4494 |
ac_compiler_gnu=yes |
| 4495 |
else |
| 4496 |
ac_compiler_gnu=no |
| 4497 |
fi |
| 4498 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4499 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4500 |
|
| 4501 |
fi |
| 4502 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4503 |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4504 |
if test $ac_compiler_gnu = yes; then |
| 4505 |
GCC=yes |
| 4506 |
else |
| 4507 |
GCC= |
| 4508 |
fi |
| 4509 |
ac_test_CFLAGS=${CFLAGS+set} |
| 4510 |
ac_save_CFLAGS=$CFLAGS |
| 4511 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4512 |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 4513 |
if ${ac_cv_prog_cc_g+:} false; then : |
| 4514 |
$as_echo_n "(cached) " >&6 |
| 4515 |
else |
| 4516 |
ac_save_c_werror_flag=$ac_c_werror_flag |
| 4517 |
ac_c_werror_flag=yes |
| 4518 |
ac_cv_prog_cc_g=no |
| 4519 |
CFLAGS="-g" |
| 4520 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4521 |
/* end confdefs.h. */ |
| 4522 |
|
| 4523 |
int |
| 4524 |
main () |
| 4525 |
{ |
| 4526 |
|
| 4527 |
; |
| 4528 |
return 0; |
| 4529 |
} |
| 4530 |
_ACEOF |
| 4531 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4532 |
ac_cv_prog_cc_g=yes |
| 4533 |
else |
| 4534 |
CFLAGS="" |
| 4535 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4536 |
/* end confdefs.h. */ |
| 4537 |
|
| 4538 |
int |
| 4539 |
main () |
| 4540 |
{ |
| 4541 |
|
| 4542 |
; |
| 4543 |
return 0; |
| 4544 |
} |
| 4545 |
_ACEOF |
| 4546 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4547 |
|
| 4548 |
else |
| 4549 |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 4550 |
CFLAGS="-g" |
| 4551 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4552 |
/* end confdefs.h. */ |
| 4553 |
|
| 4554 |
int |
| 4555 |
main () |
| 4556 |
{ |
| 4557 |
|
| 4558 |
; |
| 4559 |
return 0; |
| 4560 |
} |
| 4561 |
_ACEOF |
| 4562 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4563 |
ac_cv_prog_cc_g=yes |
| 4564 |
fi |
| 4565 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4566 |
fi |
| 4567 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4568 |
fi |
| 4569 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4570 |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 4571 |
fi |
| 4572 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4573 |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4574 |
if test "$ac_test_CFLAGS" = set; then |
| 4575 |
CFLAGS=$ac_save_CFLAGS |
| 4576 |
elif test $ac_cv_prog_cc_g = yes; then |
| 4577 |
if test "$GCC" = yes; then |
| 4578 |
CFLAGS="-g -O2" |
| 4579 |
else |
| 4580 |
CFLAGS="-g" |
| 4581 |
fi |
| 4582 |
else |
| 4583 |
if test "$GCC" = yes; then |
| 4584 |
CFLAGS="-O2" |
| 4585 |
else |
| 4586 |
CFLAGS= |
| 4587 |
fi |
| 4588 |
fi |
| 4589 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4590 |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 4591 |
if ${ac_cv_prog_cc_c89+:} false; then : |
| 4592 |
$as_echo_n "(cached) " >&6 |
| 4593 |
else |
| 4594 |
ac_cv_prog_cc_c89=no |
| 4595 |
ac_save_CC=$CC |
| 4596 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4597 |
/* end confdefs.h. */ |
| 4598 |
#include <stdarg.h> |
| 4599 |
#include <stdio.h> |
| 4600 |
struct stat; |
| 4601 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4602 |
struct buf { int x; }; |
| 4603 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4604 |
static char *e (p, i) |
| 4605 |
char **p; |
| 4606 |
int i; |
| 4607 |
{ |
| 4608 |
return p[i]; |
| 4609 |
} |
| 4610 |
static char *f (char * (*g) (char **, int), char **p, ...) |
| 4611 |
{ |
| 4612 |
char *s; |
| 4613 |
va_list v; |
| 4614 |
va_start (v,p); |
| 4615 |
s = g (p, va_arg (v,int)); |
| 4616 |
va_end (v); |
| 4617 |
return s; |
| 4618 |
} |
| 4619 |
|
| 4620 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4621 |
function prototypes and stuff, but not '\xHH' hex character constants. |
| 4622 |
These don't provoke an error unfortunately, instead are silently treated |
| 4623 |
as 'x'. The following induces an error, until -std is added to get |
| 4624 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4625 |
array size at least. It's necessary to write '\x00'==0 to get something |
| 4626 |
that's true only with -std. */ |
| 4627 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4628 |
|
| 4629 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4630 |
inside strings and character constants. */ |
| 4631 |
#define FOO(x) 'x' |
| 4632 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4633 |
|
| 4634 |
int test (int i, double x); |
| 4635 |
struct s1 {int (*f) (int a);}; |
| 4636 |
struct s2 {int (*f) (double a);}; |
| 4637 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4638 |
int argc; |
| 4639 |
char **argv; |
| 4640 |
int |
| 4641 |
main () |
| 4642 |
{ |
| 4643 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4644 |
; |
| 4645 |
return 0; |
| 4646 |
} |
| 4647 |
_ACEOF |
| 4648 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4649 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4650 |
do |
| 4651 |
CC="$ac_save_CC $ac_arg" |
| 4652 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4653 |
ac_cv_prog_cc_c89=$ac_arg |
| 4654 |
fi |
| 4655 |
rm -f core conftest.err conftest.$ac_objext |
| 4656 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4657 |
done |
| 4658 |
rm -f conftest.$ac_ext |
| 4659 |
CC=$ac_save_CC |
| 4660 |
|
| 4661 |
fi |
| 4662 |
# AC_CACHE_VAL |
| 4663 |
case "x$ac_cv_prog_cc_c89" in |
| 4664 |
x) |
| 4665 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4666 |
$as_echo "none needed" >&6; } ;; |
| 4667 |
xno) |
| 4668 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4669 |
$as_echo "unsupported" >&6; } ;; |
| 4670 |
*) |
| 4671 |
CC="$CC $ac_cv_prog_cc_c89" |
| 4672 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4673 |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4674 |
esac |
| 4675 |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4676 |
|
| 4677 |
fi |
| 4678 |
|
| 4679 |
ac_ext=c |
| 4680 |
ac_cpp='$CPP $CPPFLAGS' |
| 4681 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4682 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4683 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4684 |
|
| 4685 |
ac_ext=c |
| 4686 |
ac_cpp='$CPP $CPPFLAGS' |
| 4687 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4688 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4689 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4690 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 4691 |
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
| 4692 |
if ${am_cv_prog_cc_c_o+:} false; then : |
| 4693 |
$as_echo_n "(cached) " >&6 |
| 4694 |
else |
| 4695 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4696 |
/* end confdefs.h. */ |
| 4697 |
|
| 4698 |
int |
| 4699 |
main () |
| 4700 |
{ |
| 4701 |
|
| 4702 |
; |
| 4703 |
return 0; |
| 4704 |
} |
| 4705 |
_ACEOF |
| 4706 |
# Make sure it works both with $CC and with simple cc. |
| 4707 |
# Following AC_PROG_CC_C_O, we do the test twice because some |
| 4708 |
# compilers refuse to overwrite an existing .o file with -o, |
| 4709 |
# though they will create one. |
| 4710 |
am_cv_prog_cc_c_o=yes |
| 4711 |
for am_i in 1 2; do |
| 4712 |
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 4713 |
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 4714 |
ac_status=$? |
| 4715 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4716 |
(exit $ac_status); } \ |
| 4717 |
&& test -f conftest2.$ac_objext; then |
| 4718 |
: OK |
| 4719 |
else |
| 4720 |
am_cv_prog_cc_c_o=no |
| 4721 |
break |
| 4722 |
fi |
| 4723 |
done |
| 4724 |
rm -f core conftest* |
| 4725 |
unset am_i |
| 4726 |
fi |
| 4727 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 4728 |
$as_echo "$am_cv_prog_cc_c_o" >&6; } |
| 4729 |
if test "$am_cv_prog_cc_c_o" != yes; then |
| 4730 |
# Losing compiler, so override with the script. |
| 4731 |
# FIXME: It is wrong to rewrite CC. |
| 4732 |
# But if we don't then we get into trouble of one sort or another. |
| 4733 |
# A longer-term fix would be to have automake use am__CC in this case, |
| 4734 |
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 4735 |
CC="$am_aux_dir/compile $CC" |
| 4736 |
fi |
| 4737 |
ac_ext=c |
| 4738 |
ac_cpp='$CPP $CPPFLAGS' |
| 4739 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4740 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4741 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4742 |
|
| 4743 |
|
| 4744 |
depcc="$CC" am_compiler_list= |
| 4745 |
|
| 4746 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4747 |
$as_echo_n "checking dependency style of $depcc... " >&6; } |
| 4748 |
if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| 4749 |
$as_echo_n "(cached) " >&6 |
| 4750 |
else |
| 4751 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4752 |
# We make a subdir and do the tests there. Otherwise we can end up |
| 4753 |
# making bogus files that we don't know about and never remove. For |
| 4754 |
# instance it was reported that on HP-UX the gcc test will end up |
| 4755 |
# making a dummy file named 'D' -- because '-MD' means "put the output |
| 4756 |
# in D". |
| 4757 |
rm -rf conftest.dir |
| 4758 |
mkdir conftest.dir |
| 4759 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
| 4760 |
# using a relative directory. |
| 4761 |
cp "$am_depcomp" conftest.dir |
| 4762 |
cd conftest.dir |
| 4763 |
# We will build objects and dependencies in a subdirectory because |
| 4764 |
# it helps to detect inapplicable dependency modes. For instance |
| 4765 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
| 4766 |
# side effect of compilation, but ICC will put the dependencies in |
| 4767 |
# the current directory while Tru64 will put them in the object |
| 4768 |
# directory. |
| 4769 |
mkdir sub |
| 4770 |
|
| 4771 |
am_cv_CC_dependencies_compiler_type=none |
| 4772 |
if test "$am_compiler_list" = ""; then |
| 4773 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4774 |
fi |
| 4775 |
am__universal=false |
| 4776 |
case " $depcc " in #( |
| 4777 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4778 |
esac |
| 4779 |
|
| 4780 |
for depmode in $am_compiler_list; do |
| 4781 |
# Setup a source with many dependencies, because some compilers |
| 4782 |
# like to wrap large dependency lists on column 80 (with \), and |
| 4783 |
# we should not choose a depcomp mode which is confused by this. |
| 4784 |
# |
| 4785 |
# We need to recreate these files for each test, as the compiler may |
| 4786 |
# overwrite some of them when testing with obscure command lines. |
| 4787 |
# This happens at least with the AIX C compiler. |
| 4788 |
: > sub/conftest.c |
| 4789 |
for i in 1 2 3 4 5 6; do |
| 4790 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4791 |
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 4792 |
# Solaris 10 /bin/sh. |
| 4793 |
echo '/* dummy */' > sub/conftst$i.h |
| 4794 |
done |
| 4795 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4796 |
|
| 4797 |
# We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 4798 |
# mode. It turns out that the SunPro C++ compiler does not properly |
| 4799 |
# handle '-M -o', and we need to detect this. Also, some Intel |
| 4800 |
# versions had trouble with output in subdirs. |
| 4801 |
am__obj=sub/conftest.${OBJEXT-o} |
| 4802 |
am__minus_obj="-o $am__obj" |
| 4803 |
case $depmode in |
| 4804 |
gcc) |
| 4805 |
# This depmode causes a compiler race in universal mode. |
| 4806 |
test "$am__universal" = false || continue |
| 4807 |
;; |
| 4808 |
nosideeffect) |
| 4809 |
# After this tag, mechanisms are not by side-effect, so they'll |
| 4810 |
# only be used when explicitly requested. |
| 4811 |
if test "x$enable_dependency_tracking" = xyes; then |
| 4812 |
continue |
| 4813 |
else |
| 4814 |
break |
| 4815 |
fi |
| 4816 |
;; |
| 4817 |
msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 4818 |
# This compiler won't grok '-c -o', but also, the minuso test has |
| 4819 |
# not run yet. These depmodes are late enough in the game, and |
| 4820 |
# so weak that their functioning should not be impacted. |
| 4821 |
am__obj=conftest.${OBJEXT-o} |
| 4822 |
am__minus_obj= |
| 4823 |
;; |
| 4824 |
none) break ;; |
| 4825 |
esac |
| 4826 |
if depmode=$depmode \ |
| 4827 |
source=sub/conftest.c object=$am__obj \ |
| 4828 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4829 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 4830 |
>/dev/null 2>conftest.err && |
| 4831 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 4832 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4833 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 4834 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4835 |
# icc doesn't choke on unknown options, it will just issue warnings |
| 4836 |
# or remarks (even with -Werror). So we grep stderr for any message |
| 4837 |
# that says an option was ignored or not supported. |
| 4838 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4839 |
# icc: Command line warning: ignoring option '-M'; no argument required |
| 4840 |
# The diagnosis changed in icc 8.0: |
| 4841 |
# icc: Command line remark: option '-MP' not supported |
| 4842 |
if (grep 'ignoring option' conftest.err || |
| 4843 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4844 |
am_cv_CC_dependencies_compiler_type=$depmode |
| 4845 |
break |
| 4846 |
fi |
| 4847 |
fi |
| 4848 |
done |
| 4849 |
|
| 4850 |
cd .. |
| 4851 |
rm -rf conftest.dir |
| 4852 |
else |
| 4853 |
am_cv_CC_dependencies_compiler_type=none |
| 4854 |
fi |
| 4855 |
|
| 4856 |
fi |
| 4857 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4858 |
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 4859 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4860 |
|
| 4861 |
if |
| 4862 |
test "x$enable_dependency_tracking" != xno \ |
| 4863 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4864 |
am__fastdepCC_TRUE= |
| 4865 |
am__fastdepCC_FALSE='#' |
| 4866 |
else |
| 4867 |
am__fastdepCC_TRUE='#' |
| 4868 |
am__fastdepCC_FALSE= |
| 4869 |
fi |
| 4870 |
|
| 4871 |
|
| 4872 |
|
| 4873 |
|
| 4874 |
#Check for MySQL |
| 4875 |
ac_have_mysql="no" |
| 4876 |
_x_ac_mysql_bin="no" |
| 4877 |
### Check for mysql_config program |
| 4878 |
|
| 4879 |
# Check whether --with-mysql_config was given. |
| 4880 |
if test "${with_mysql_config+set}" = set; then : |
| 4881 |
withval=$with_mysql_config; _x_ac_mysql_bin="$withval" |
| 4882 |
fi |
| 4883 |
|
| 4884 |
|
| 4885 |
if test x$_x_ac_mysql_bin = xno; then |
| 4886 |
for ac_prog in mysql_config mariadb_config |
| 4887 |
do |
| 4888 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4889 |
set dummy $ac_prog; ac_word=$2 |
| 4890 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4891 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4892 |
if ${ac_cv_path_HAVEMYSQLCONFIG+:} false; then : |
| 4893 |
$as_echo_n "(cached) " >&6 |
| 4894 |
else |
| 4895 |
case $HAVEMYSQLCONFIG in |
| 4896 |
[\\/]* | ?:[\\/]*) |
| 4897 |
ac_cv_path_HAVEMYSQLCONFIG="$HAVEMYSQLCONFIG" # Let the user override the test with a path. |
| 4898 |
;; |
| 4899 |
*) |
| 4900 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4901 |
for as_dir in $PATH |
| 4902 |
do |
| 4903 |
IFS=$as_save_IFS |
| 4904 |
test -z "$as_dir" && as_dir=. |
| 4905 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4906 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4907 |
ac_cv_path_HAVEMYSQLCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4908 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4909 |
break 2 |
| 4910 |
fi |
| 4911 |
done |
| 4912 |
done |
| 4913 |
IFS=$as_save_IFS |
| 4914 |
|
| 4915 |
;; |
| 4916 |
esac |
| 4917 |
fi |
| 4918 |
HAVEMYSQLCONFIG=$ac_cv_path_HAVEMYSQLCONFIG |
| 4919 |
if test -n "$HAVEMYSQLCONFIG"; then |
| 4920 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVEMYSQLCONFIG" >&5 |
| 4921 |
$as_echo "$HAVEMYSQLCONFIG" >&6; } |
| 4922 |
else |
| 4923 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4924 |
$as_echo "no" >&6; } |
| 4925 |
fi |
| 4926 |
|
| 4927 |
|
| 4928 |
test -n "$HAVEMYSQLCONFIG" && break |
| 4929 |
done |
| 4930 |
test -n "$HAVEMYSQLCONFIG" || HAVEMYSQLCONFIG="no" |
| 4931 |
|
| 4932 |
else |
| 4933 |
for ac_prog in mysql_config mariadb_config |
| 4934 |
do |
| 4935 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4936 |
set dummy $ac_prog; ac_word=$2 |
| 4937 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4938 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4939 |
if ${ac_cv_path_HAVEMYSQLCONFIG+:} false; then : |
| 4940 |
$as_echo_n "(cached) " >&6 |
| 4941 |
else |
| 4942 |
case $HAVEMYSQLCONFIG in |
| 4943 |
[\\/]* | ?:[\\/]*) |
| 4944 |
ac_cv_path_HAVEMYSQLCONFIG="$HAVEMYSQLCONFIG" # Let the user override the test with a path. |
| 4945 |
;; |
| 4946 |
*) |
| 4947 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4948 |
for as_dir in $_x_ac_mysql_bin |
| 4949 |
do |
| 4950 |
IFS=$as_save_IFS |
| 4951 |
test -z "$as_dir" && as_dir=. |
| 4952 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4953 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4954 |
ac_cv_path_HAVEMYSQLCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4955 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4956 |
break 2 |
| 4957 |
fi |
| 4958 |
done |
| 4959 |
done |
| 4960 |
IFS=$as_save_IFS |
| 4961 |
|
| 4962 |
;; |
| 4963 |
esac |
| 4964 |
fi |
| 4965 |
HAVEMYSQLCONFIG=$ac_cv_path_HAVEMYSQLCONFIG |
| 4966 |
if test -n "$HAVEMYSQLCONFIG"; then |
| 4967 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVEMYSQLCONFIG" >&5 |
| 4968 |
$as_echo "$HAVEMYSQLCONFIG" >&6; } |
| 4969 |
else |
| 4970 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4971 |
$as_echo "no" >&6; } |
| 4972 |
fi |
| 4973 |
|
| 4974 |
|
| 4975 |
test -n "$HAVEMYSQLCONFIG" && break |
| 4976 |
done |
| 4977 |
test -n "$HAVEMYSQLCONFIG" || HAVEMYSQLCONFIG="no" |
| 4978 |
|
| 4979 |
fi |
| 4980 |
|
| 4981 |
if test x$HAVEMYSQLCONFIG = xno; then |
| 4982 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** mysql_config not found. Evidently no MySQL development libs installed on system." >&5 |
| 4983 |
$as_echo "$as_me: WARNING: *** mysql_config not found. Evidently no MySQL development libs installed on system." >&2;} |
| 4984 |
else |
| 4985 |
# check for mysql-5.0.0+ |
| 4986 |
mysql_config_major_version=`$HAVEMYSQLCONFIG --version | \ |
| 4987 |
sed 's/\([0-9]*\).\([0-9]*\).\([a-zA-Z0-9]*\)/\1/'` |
| 4988 |
mysql_config_minor_version=`$HAVEMYSQLCONFIG --version | \ |
| 4989 |
sed 's/\([0-9]*\).\([0-9]*\).\([a-zA-Z0-9]*\)/\2/'` |
| 4990 |
mysql_config_micro_version=`$HAVEMYSQLCONFIG --version | \ |
| 4991 |
sed 's/\([0-9]*\).\([0-9]*\).\([a-zA-Z0-9]*\)/\3/'` |
| 4992 |
|
| 4993 |
if test $mysql_config_major_version -lt 5; then |
| 4994 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** mysql-$mysql_config_major_version.$mysql_config_minor_version.$mysql_config_micro_version available, we need >= mysql-5.0.0 installed for the mysql interface." >&5 |
| 4995 |
$as_echo "$as_me: WARNING: *** mysql-$mysql_config_major_version.$mysql_config_minor_version.$mysql_config_micro_version available, we need >= mysql-5.0.0 installed for the mysql interface." >&2;} |
| 4996 |
ac_have_mysql="no" |
| 4997 |
else |
| 4998 |
# mysql_config puts -I on the front of the dir. We don't |
| 4999 |
# want that so we remove it. |
| 5000 |
MYSQL_CFLAGS=`$HAVEMYSQLCONFIG --include` |
| 5001 |
MYSQL_LIBS=`$HAVEMYSQLCONFIG --libs_r` |
| 5002 |
save_CFLAGS="$CFLAGS" |
| 5003 |
save_LIBS="$LIBS" |
| 5004 |
CFLAGS="$MYSQL_CFLAGS $save_CFLAGS" |
| 5005 |
LIBS="$MYSQL_LIBS $save_LIBS" |
| 5006 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5007 |
/* end confdefs.h. */ |
| 5008 |
#include <mysql.h> |
| 5009 |
int |
| 5010 |
main () |
| 5011 |
{ |
| 5012 |
|
| 5013 |
MYSQL mysql; |
| 5014 |
(void) mysql_init(&mysql); |
| 5015 |
(void) mysql_close(&mysql); |
| 5016 |
|
| 5017 |
; |
| 5018 |
return 0; |
| 5019 |
} |
| 5020 |
_ACEOF |
| 5021 |
if ac_fn_c_try_link "$LINENO"; then : |
| 5022 |
ac_have_mysql="yes" |
| 5023 |
else |
| 5024 |
ac_have_mysql="no" |
| 5025 |
fi |
| 5026 |
rm -f core conftest.err conftest.$ac_objext \ |
| 5027 |
conftest$ac_exeext conftest.$ac_ext |
| 5028 |
CFLAGS="$save_CFLAGS" |
| 5029 |
LIBS="$save_LIBS" |
| 5030 |
if test "$ac_have_mysql" = yes; then |
| 5031 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: MySQL $mysql_config_major_version.$mysql_config_minor_version.$mysql_config_micro_version test program built properly." >&5 |
| 5032 |
$as_echo "MySQL $mysql_config_major_version.$mysql_config_minor_version.$mysql_config_micro_version test program built properly." >&6; } |
| 5033 |
|
| 5034 |
|
| 5035 |
|
| 5036 |
$as_echo "#define HAVE_MYSQL 1" >>confdefs.h |
| 5037 |
|
| 5038 |
else |
| 5039 |
MYSQL_CFLAGS="" |
| 5040 |
MYSQL_LIBS="" |
| 5041 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** MySQL test program execution failed. A thread-safe MySQL library is required." >&5 |
| 5042 |
$as_echo "$as_me: WARNING: *** MySQL test program execution failed. A thread-safe MySQL library is required." >&2;} |
| 5043 |
fi |
| 5044 |
fi |
| 5045 |
fi |
| 5046 |
if test x"$ac_have_mysql" = x"yes"; then |
| 5047 |
WITH_MYSQL_TRUE= |
| 5048 |
WITH_MYSQL_FALSE='#' |
| 5049 |
else |
| 5050 |
WITH_MYSQL_TRUE='#' |
| 5051 |
WITH_MYSQL_FALSE= |
| 5052 |
fi |
| 5053 |
|
| 5054 |
|
| 5055 |
|
| 5056 |
case "$host" in |
| 5057 |
*darwin*) |
| 5058 |
$as_echo "#define USE_ALIAS 0" >>confdefs.h |
| 5059 |
;; |
| 5060 |
*) |
| 5061 |
$as_echo "#define USE_ALIAS 1" >>confdefs.h |
| 5062 |
;; |
| 5063 |
esac |
| 5064 |
|
| 5065 |
ac_ext=c |
| 5066 |
ac_cpp='$CPP $CPPFLAGS' |
| 5067 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5068 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5069 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5070 |
if test -n "$ac_tool_prefix"; then |
| 5071 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 5072 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 5073 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5074 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5075 |
if ${ac_cv_prog_CC+:} false; then : |
| 5076 |
$as_echo_n "(cached) " >&6 |
| 5077 |
else |
| 5078 |
if test -n "$CC"; then |
| 5079 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5080 |
else |
| 5081 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5082 |
for as_dir in $PATH |
| 5083 |
do |
| 5084 |
IFS=$as_save_IFS |
| 5085 |
test -z "$as_dir" && as_dir=. |
| 5086 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5087 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5088 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 5089 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5090 |
break 2 |
| 5091 |
fi |
| 5092 |
done |
| 5093 |
done |
| 5094 |
IFS=$as_save_IFS |
| 5095 |
|
| 5096 |
fi |
| 5097 |
fi |
| 5098 |
CC=$ac_cv_prog_CC |
| 5099 |
if test -n "$CC"; then |
| 5100 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5101 |
$as_echo "$CC" >&6; } |
| 5102 |
else |
| 5103 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5104 |
$as_echo "no" >&6; } |
| 5105 |
fi |
| 5106 |
|
| 5107 |
|
| 5108 |
fi |
| 5109 |
if test -z "$ac_cv_prog_CC"; then |
| 5110 |
ac_ct_CC=$CC |
| 5111 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 5112 |
set dummy gcc; ac_word=$2 |
| 5113 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5114 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5115 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 5116 |
$as_echo_n "(cached) " >&6 |
| 5117 |
else |
| 5118 |
if test -n "$ac_ct_CC"; then |
| 5119 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5120 |
else |
| 5121 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5122 |
for as_dir in $PATH |
| 5123 |
do |
| 5124 |
IFS=$as_save_IFS |
| 5125 |
test -z "$as_dir" && as_dir=. |
| 5126 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5127 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5128 |
ac_cv_prog_ac_ct_CC="gcc" |
| 5129 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5130 |
break 2 |
| 5131 |
fi |
| 5132 |
done |
| 5133 |
done |
| 5134 |
IFS=$as_save_IFS |
| 5135 |
|
| 5136 |
fi |
| 5137 |
fi |
| 5138 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5139 |
if test -n "$ac_ct_CC"; then |
| 5140 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 5141 |
$as_echo "$ac_ct_CC" >&6; } |
| 5142 |
else |
| 5143 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5144 |
$as_echo "no" >&6; } |
| 5145 |
fi |
| 5146 |
|
| 5147 |
if test "x$ac_ct_CC" = x; then |
| 5148 |
CC="" |
| 5149 |
else |
| 5150 |
case $cross_compiling:$ac_tool_warned in |
| 5151 |
yes:) |
| 5152 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5153 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5154 |
ac_tool_warned=yes ;; |
| 5155 |
esac |
| 5156 |
CC=$ac_ct_CC |
| 5157 |
fi |
| 5158 |
else |
| 5159 |
CC="$ac_cv_prog_CC" |
| 5160 |
fi |
| 5161 |
|
| 5162 |
if test -z "$CC"; then |
| 5163 |
if test -n "$ac_tool_prefix"; then |
| 5164 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 5165 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 5166 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5167 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5168 |
if ${ac_cv_prog_CC+:} false; then : |
| 5169 |
$as_echo_n "(cached) " >&6 |
| 5170 |
else |
| 5171 |
if test -n "$CC"; then |
| 5172 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5173 |
else |
| 5174 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5175 |
for as_dir in $PATH |
| 5176 |
do |
| 5177 |
IFS=$as_save_IFS |
| 5178 |
test -z "$as_dir" && as_dir=. |
| 5179 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5180 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5181 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 5182 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5183 |
break 2 |
| 5184 |
fi |
| 5185 |
done |
| 5186 |
done |
| 5187 |
IFS=$as_save_IFS |
| 5188 |
|
| 5189 |
fi |
| 5190 |
fi |
| 5191 |
CC=$ac_cv_prog_CC |
| 5192 |
if test -n "$CC"; then |
| 5193 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5194 |
$as_echo "$CC" >&6; } |
| 5195 |
else |
| 5196 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5197 |
$as_echo "no" >&6; } |
| 5198 |
fi |
| 5199 |
|
| 5200 |
|
| 5201 |
fi |
| 5202 |
fi |
| 5203 |
if test -z "$CC"; then |
| 5204 |
# Extract the first word of "cc", so it can be a program name with args. |
| 5205 |
set dummy cc; ac_word=$2 |
| 5206 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5207 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5208 |
if ${ac_cv_prog_CC+:} false; then : |
| 5209 |
$as_echo_n "(cached) " >&6 |
| 5210 |
else |
| 5211 |
if test -n "$CC"; then |
| 5212 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5213 |
else |
| 5214 |
ac_prog_rejected=no |
| 5215 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5216 |
for as_dir in $PATH |
| 5217 |
do |
| 5218 |
IFS=$as_save_IFS |
| 5219 |
test -z "$as_dir" && as_dir=. |
| 5220 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5221 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5222 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 5223 |
ac_prog_rejected=yes |
| 5224 |
continue |
| 5225 |
fi |
| 5226 |
ac_cv_prog_CC="cc" |
| 5227 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5228 |
break 2 |
| 5229 |
fi |
| 5230 |
done |
| 5231 |
done |
| 5232 |
IFS=$as_save_IFS |
| 5233 |
|
| 5234 |
if test $ac_prog_rejected = yes; then |
| 5235 |
# We found a bogon in the path, so make sure we never use it. |
| 5236 |
set dummy $ac_cv_prog_CC |
| 5237 |
shift |
| 5238 |
if test $# != 0; then |
| 5239 |
# We chose a different compiler from the bogus one. |
| 5240 |
# However, it has the same basename, so the bogon will be chosen |
| 5241 |
# first if we set CC to just the basename; use the full file name. |
| 5242 |
shift |
| 5243 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 5244 |
fi |
| 5245 |
fi |
| 5246 |
fi |
| 5247 |
fi |
| 5248 |
CC=$ac_cv_prog_CC |
| 5249 |
if test -n "$CC"; then |
| 5250 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5251 |
$as_echo "$CC" >&6; } |
| 5252 |
else |
| 5253 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5254 |
$as_echo "no" >&6; } |
| 5255 |
fi |
| 5256 |
|
| 5257 |
|
| 5258 |
fi |
| 5259 |
if test -z "$CC"; then |
| 5260 |
if test -n "$ac_tool_prefix"; then |
| 5261 |
for ac_prog in cl.exe |
| 5262 |
do |
| 5263 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5264 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5265 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5266 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5267 |
if ${ac_cv_prog_CC+:} false; then : |
| 5268 |
$as_echo_n "(cached) " >&6 |
| 5269 |
else |
| 5270 |
if test -n "$CC"; then |
| 5271 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5272 |
else |
| 5273 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5274 |
for as_dir in $PATH |
| 5275 |
do |
| 5276 |
IFS=$as_save_IFS |
| 5277 |
test -z "$as_dir" && as_dir=. |
| 5278 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5279 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5280 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 5281 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5282 |
break 2 |
| 5283 |
fi |
| 5284 |
done |
| 5285 |
done |
| 5286 |
IFS=$as_save_IFS |
| 5287 |
|
| 5288 |
fi |
| 5289 |
fi |
| 5290 |
CC=$ac_cv_prog_CC |
| 5291 |
if test -n "$CC"; then |
| 5292 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5293 |
$as_echo "$CC" >&6; } |
| 5294 |
else |
| 5295 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5296 |
$as_echo "no" >&6; } |
| 5297 |
fi |
| 5298 |
|
| 5299 |
|
| 5300 |
test -n "$CC" && break |
| 5301 |
done |
| 5302 |
fi |
| 5303 |
if test -z "$CC"; then |
| 5304 |
ac_ct_CC=$CC |
| 5305 |
for ac_prog in cl.exe |
| 5306 |
do |
| 5307 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5308 |
set dummy $ac_prog; ac_word=$2 |
| 5309 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5310 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5311 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 5312 |
$as_echo_n "(cached) " >&6 |
| 5313 |
else |
| 5314 |
if test -n "$ac_ct_CC"; then |
| 5315 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5316 |
else |
| 5317 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5318 |
for as_dir in $PATH |
| 5319 |
do |
| 5320 |
IFS=$as_save_IFS |
| 5321 |
test -z "$as_dir" && as_dir=. |
| 5322 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5323 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5324 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5325 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5326 |
break 2 |
| 5327 |
fi |
| 5328 |
done |
| 5329 |
done |
| 5330 |
IFS=$as_save_IFS |
| 5331 |
|
| 5332 |
fi |
| 5333 |
fi |
| 5334 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5335 |
if test -n "$ac_ct_CC"; then |
| 5336 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 5337 |
$as_echo "$ac_ct_CC" >&6; } |
| 5338 |
else |
| 5339 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5340 |
$as_echo "no" >&6; } |
| 5341 |
fi |
| 5342 |
|
| 5343 |
|
| 5344 |
test -n "$ac_ct_CC" && break |
| 5345 |
done |
| 5346 |
|
| 5347 |
if test "x$ac_ct_CC" = x; then |
| 5348 |
CC="" |
| 5349 |
else |
| 5350 |
case $cross_compiling:$ac_tool_warned in |
| 5351 |
yes:) |
| 5352 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5353 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5354 |
ac_tool_warned=yes ;; |
| 5355 |
esac |
| 5356 |
CC=$ac_ct_CC |
| 5357 |
fi |
| 5358 |
fi |
| 5359 |
|
| 5360 |
fi |
| 5361 |
|
| 5362 |
|
| 5363 |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5364 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5365 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
| 5366 |
See \`config.log' for more details" "$LINENO" 5; } |
| 5367 |
|
| 5368 |
# Provide some information about the compiler. |
| 5369 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 5370 |
set X $ac_compile |
| 5371 |
ac_compiler=$2 |
| 5372 |
for ac_option in --version -v -V -qversion; do |
| 5373 |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 5374 |
case "(($ac_try" in |
| 5375 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5376 |
*) ac_try_echo=$ac_try;; |
| 5377 |
esac |
| 5378 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5379 |
$as_echo "$ac_try_echo"; } >&5 |
| 5380 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 5381 |
ac_status=$? |
| 5382 |
if test -s conftest.err; then |
| 5383 |
sed '10a\ |
| 5384 |
... rest of stderr output deleted ... |
| 5385 |
10q' conftest.err >conftest.er1 |
| 5386 |
cat conftest.er1 >&5 |
| 5387 |
fi |
| 5388 |
rm -f conftest.er1 conftest.err |
| 5389 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5390 |
test $ac_status = 0; } |
| 5391 |
done |
| 5392 |
|
| 5393 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 5394 |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 5395 |
if ${ac_cv_c_compiler_gnu+:} false; then : |
| 5396 |
$as_echo_n "(cached) " >&6 |
| 5397 |
else |
| 5398 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5399 |
/* end confdefs.h. */ |
| 5400 |
|
| 5401 |
int |
| 5402 |
main () |
| 5403 |
{ |
| 5404 |
#ifndef __GNUC__ |
| 5405 |
choke me |
| 5406 |
#endif |
| 5407 |
|
| 5408 |
; |
| 5409 |
return 0; |
| 5410 |
} |
| 5411 |
_ACEOF |
| 5412 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5413 |
ac_compiler_gnu=yes |
| 5414 |
else |
| 5415 |
ac_compiler_gnu=no |
| 5416 |
fi |
| 5417 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5418 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5419 |
|
| 5420 |
fi |
| 5421 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 5422 |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 5423 |
if test $ac_compiler_gnu = yes; then |
| 5424 |
GCC=yes |
| 5425 |
else |
| 5426 |
GCC= |
| 5427 |
fi |
| 5428 |
ac_test_CFLAGS=${CFLAGS+set} |
| 5429 |
ac_save_CFLAGS=$CFLAGS |
| 5430 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 5431 |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 5432 |
if ${ac_cv_prog_cc_g+:} false; then : |
| 5433 |
$as_echo_n "(cached) " >&6 |
| 5434 |
else |
| 5435 |
ac_save_c_werror_flag=$ac_c_werror_flag |
| 5436 |
ac_c_werror_flag=yes |
| 5437 |
ac_cv_prog_cc_g=no |
| 5438 |
CFLAGS="-g" |
| 5439 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5440 |
/* end confdefs.h. */ |
| 5441 |
|
| 5442 |
int |
| 5443 |
main () |
| 5444 |
{ |
| 5445 |
|
| 5446 |
; |
| 5447 |
return 0; |
| 5448 |
} |
| 5449 |
_ACEOF |
| 5450 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5451 |
ac_cv_prog_cc_g=yes |
| 5452 |
else |
| 5453 |
CFLAGS="" |
| 5454 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5455 |
/* end confdefs.h. */ |
| 5456 |
|
| 5457 |
int |
| 5458 |
main () |
| 5459 |
{ |
| 5460 |
|
| 5461 |
; |
| 5462 |
return 0; |
| 5463 |
} |
| 5464 |
_ACEOF |
| 5465 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5466 |
|
| 5467 |
else |
| 5468 |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 5469 |
CFLAGS="-g" |
| 5470 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5471 |
/* end confdefs.h. */ |
| 5472 |
|
| 5473 |
int |
| 5474 |
main () |
| 5475 |
{ |
| 5476 |
|
| 5477 |
; |
| 5478 |
return 0; |
| 5479 |
} |
| 5480 |
_ACEOF |
| 5481 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5482 |
ac_cv_prog_cc_g=yes |
| 5483 |
fi |
| 5484 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5485 |
fi |
| 5486 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5487 |
fi |
| 5488 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5489 |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 5490 |
fi |
| 5491 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 5492 |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
| 5493 |
if test "$ac_test_CFLAGS" = set; then |
| 5494 |
CFLAGS=$ac_save_CFLAGS |
| 5495 |
elif test $ac_cv_prog_cc_g = yes; then |
| 5496 |
if test "$GCC" = yes; then |
| 5497 |
CFLAGS="-g -O2" |
| 5498 |
else |
| 5499 |
CFLAGS="-g" |
| 5500 |
fi |
| 5501 |
else |
| 5502 |
if test "$GCC" = yes; then |
| 5503 |
CFLAGS="-O2" |
| 5504 |
else |
| 5505 |
CFLAGS= |
| 5506 |
fi |
| 5507 |
fi |
| 5508 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 5509 |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 5510 |
if ${ac_cv_prog_cc_c89+:} false; then : |
| 5511 |
$as_echo_n "(cached) " >&6 |
| 5512 |
else |
| 5513 |
ac_cv_prog_cc_c89=no |
| 5514 |
ac_save_CC=$CC |
| 5515 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5516 |
/* end confdefs.h. */ |
| 5517 |
#include <stdarg.h> |
| 5518 |
#include <stdio.h> |
| 5519 |
struct stat; |
| 5520 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5521 |
struct buf { int x; }; |
| 5522 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5523 |
static char *e (p, i) |
| 5524 |
char **p; |
| 5525 |
int i; |
| 5526 |
{ |
| 5527 |
return p[i]; |
| 5528 |
} |
| 5529 |
static char *f (char * (*g) (char **, int), char **p, ...) |
| 5530 |
{ |
| 5531 |
char *s; |
| 5532 |
va_list v; |
| 5533 |
va_start (v,p); |
| 5534 |
s = g (p, va_arg (v,int)); |
| 5535 |
va_end (v); |
| 5536 |
return s; |
| 5537 |
} |
| 5538 |
|
| 5539 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5540 |
function prototypes and stuff, but not '\xHH' hex character constants. |
| 5541 |
These don't provoke an error unfortunately, instead are silently treated |
| 5542 |
as 'x'. The following induces an error, until -std is added to get |
| 5543 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5544 |
array size at least. It's necessary to write '\x00'==0 to get something |
| 5545 |
that's true only with -std. */ |
| 5546 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5547 |
|
| 5548 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5549 |
inside strings and character constants. */ |
| 5550 |
#define FOO(x) 'x' |
| 5551 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5552 |
|
| 5553 |
int test (int i, double x); |
| 5554 |
struct s1 {int (*f) (int a);}; |
| 5555 |
struct s2 {int (*f) (double a);}; |
| 5556 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5557 |
int argc; |
| 5558 |
char **argv; |
| 5559 |
int |
| 5560 |
main () |
| 5561 |
{ |
| 5562 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5563 |
; |
| 5564 |
return 0; |
| 5565 |
} |
| 5566 |
_ACEOF |
| 5567 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5568 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5569 |
do |
| 5570 |
CC="$ac_save_CC $ac_arg" |
| 5571 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5572 |
ac_cv_prog_cc_c89=$ac_arg |
| 5573 |
fi |
| 5574 |
rm -f core conftest.err conftest.$ac_objext |
| 5575 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5576 |
done |
| 5577 |
rm -f conftest.$ac_ext |
| 5578 |
CC=$ac_save_CC |
| 5579 |
|
| 5580 |
fi |
| 5581 |
# AC_CACHE_VAL |
| 5582 |
case "x$ac_cv_prog_cc_c89" in |
| 5583 |
x) |
| 5584 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5585 |
$as_echo "none needed" >&6; } ;; |
| 5586 |
xno) |
| 5587 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5588 |
$as_echo "unsupported" >&6; } ;; |
| 5589 |
*) |
| 5590 |
CC="$CC $ac_cv_prog_cc_c89" |
| 5591 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 5592 |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 5593 |
esac |
| 5594 |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 5595 |
|
| 5596 |
fi |
| 5597 |
|
| 5598 |
ac_ext=c |
| 5599 |
ac_cpp='$CPP $CPPFLAGS' |
| 5600 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5601 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5602 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5603 |
|
| 5604 |
ac_ext=c |
| 5605 |
ac_cpp='$CPP $CPPFLAGS' |
| 5606 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5607 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5608 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5609 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 5610 |
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
| 5611 |
if ${am_cv_prog_cc_c_o+:} false; then : |
| 5612 |
$as_echo_n "(cached) " >&6 |
| 5613 |
else |
| 5614 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5615 |
/* end confdefs.h. */ |
| 5616 |
|
| 5617 |
int |
| 5618 |
main () |
| 5619 |
{ |
| 5620 |
|
| 5621 |
; |
| 5622 |
return 0; |
| 5623 |
} |
| 5624 |
_ACEOF |
| 5625 |
# Make sure it works both with $CC and with simple cc. |
| 5626 |
# Following AC_PROG_CC_C_O, we do the test twice because some |
| 5627 |
# compilers refuse to overwrite an existing .o file with -o, |
| 5628 |
# though they will create one. |
| 5629 |
am_cv_prog_cc_c_o=yes |
| 5630 |
for am_i in 1 2; do |
| 5631 |
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 5632 |
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 5633 |
ac_status=$? |
| 5634 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5635 |
(exit $ac_status); } \ |
| 5636 |
&& test -f conftest2.$ac_objext; then |
| 5637 |
: OK |
| 5638 |
else |
| 5639 |
am_cv_prog_cc_c_o=no |
| 5640 |
break |
| 5641 |
fi |
| 5642 |
done |
| 5643 |
rm -f core conftest* |
| 5644 |
unset am_i |
| 5645 |
fi |
| 5646 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 5647 |
$as_echo "$am_cv_prog_cc_c_o" >&6; } |
| 5648 |
if test "$am_cv_prog_cc_c_o" != yes; then |
| 5649 |
# Losing compiler, so override with the script. |
| 5650 |
# FIXME: It is wrong to rewrite CC. |
| 5651 |
# But if we don't then we get into trouble of one sort or another. |
| 5652 |
# A longer-term fix would be to have automake use am__CC in this case, |
| 5653 |
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 5654 |
CC="$am_aux_dir/compile $CC" |
| 5655 |
fi |
| 5656 |
ac_ext=c |
| 5657 |
ac_cpp='$CPP $CPPFLAGS' |
| 5658 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5659 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5660 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5661 |
|
| 5662 |
|
| 5663 |
depcc="$CC" am_compiler_list= |
| 5664 |
|
| 5665 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 5666 |
$as_echo_n "checking dependency style of $depcc... " >&6; } |
| 5667 |
if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| 5668 |
$as_echo_n "(cached) " >&6 |
| 5669 |
else |
| 5670 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5671 |
# We make a subdir and do the tests there. Otherwise we can end up |
| 5672 |
# making bogus files that we don't know about and never remove. For |
| 5673 |
# instance it was reported that on HP-UX the gcc test will end up |
| 5674 |
# making a dummy file named 'D' -- because '-MD' means "put the output |
| 5675 |
# in D". |
| 5676 |
rm -rf conftest.dir |
| 5677 |
mkdir conftest.dir |
| 5678 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
| 5679 |
# using a relative directory. |
| 5680 |
cp "$am_depcomp" conftest.dir |
| 5681 |
cd conftest.dir |
| 5682 |
# We will build objects and dependencies in a subdirectory because |
| 5683 |
# it helps to detect inapplicable dependency modes. For instance |
| 5684 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
| 5685 |
# side effect of compilation, but ICC will put the dependencies in |
| 5686 |
# the current directory while Tru64 will put them in the object |
| 5687 |
# directory. |
| 5688 |
mkdir sub |
| 5689 |
|
| 5690 |
am_cv_CC_dependencies_compiler_type=none |
| 5691 |
if test "$am_compiler_list" = ""; then |
| 5692 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5693 |
fi |
| 5694 |
am__universal=false |
| 5695 |
case " $depcc " in #( |
| 5696 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 5697 |
esac |
| 5698 |
|
| 5699 |
for depmode in $am_compiler_list; do |
| 5700 |
# Setup a source with many dependencies, because some compilers |
| 5701 |
# like to wrap large dependency lists on column 80 (with \), and |
| 5702 |
# we should not choose a depcomp mode which is confused by this. |
| 5703 |
# |
| 5704 |
# We need to recreate these files for each test, as the compiler may |
| 5705 |
# overwrite some of them when testing with obscure command lines. |
| 5706 |
# This happens at least with the AIX C compiler. |
| 5707 |
: > sub/conftest.c |
| 5708 |
for i in 1 2 3 4 5 6; do |
| 5709 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 5710 |
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 5711 |
# Solaris 10 /bin/sh. |
| 5712 |
echo '/* dummy */' > sub/conftst$i.h |
| 5713 |
done |
| 5714 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5715 |
|
| 5716 |
# We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 5717 |
# mode. It turns out that the SunPro C++ compiler does not properly |
| 5718 |
# handle '-M -o', and we need to detect this. Also, some Intel |
| 5719 |
# versions had trouble with output in subdirs. |
| 5720 |
am__obj=sub/conftest.${OBJEXT-o} |
| 5721 |
am__minus_obj="-o $am__obj" |
| 5722 |
case $depmode in |
| 5723 |
gcc) |
| 5724 |
# This depmode causes a compiler race in universal mode. |
| 5725 |
test "$am__universal" = false || continue |
| 5726 |
;; |
| 5727 |
nosideeffect) |
| 5728 |
# After this tag, mechanisms are not by side-effect, so they'll |
| 5729 |
# only be used when explicitly requested. |
| 5730 |
if test "x$enable_dependency_tracking" = xyes; then |
| 5731 |
continue |
| 5732 |
else |
| 5733 |
break |
| 5734 |
fi |
| 5735 |
;; |
| 5736 |
msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 5737 |
# This compiler won't grok '-c -o', but also, the minuso test has |
| 5738 |
# not run yet. These depmodes are late enough in the game, and |
| 5739 |
# so weak that their functioning should not be impacted. |
| 5740 |
am__obj=conftest.${OBJEXT-o} |
| 5741 |
am__minus_obj= |
| 5742 |
;; |
| 5743 |
none) break ;; |
| 5744 |
esac |
| 5745 |
if depmode=$depmode \ |
| 5746 |
source=sub/conftest.c object=$am__obj \ |
| 5747 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 5748 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 5749 |
>/dev/null 2>conftest.err && |
| 5750 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 5751 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 5752 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 5753 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5754 |
# icc doesn't choke on unknown options, it will just issue warnings |
| 5755 |
# or remarks (even with -Werror). So we grep stderr for any message |
| 5756 |
# that says an option was ignored or not supported. |
| 5757 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
| 5758 |
# icc: Command line warning: ignoring option '-M'; no argument required |
| 5759 |
# The diagnosis changed in icc 8.0: |
| 5760 |
# icc: Command line remark: option '-MP' not supported |
| 5761 |
if (grep 'ignoring option' conftest.err || |
| 5762 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5763 |
am_cv_CC_dependencies_compiler_type=$depmode |
| 5764 |
break |
| 5765 |
fi |
| 5766 |
fi |
| 5767 |
done |
| 5768 |
|
| 5769 |
cd .. |
| 5770 |
rm -rf conftest.dir |
| 5771 |
else |
| 5772 |
am_cv_CC_dependencies_compiler_type=none |
| 5773 |
fi |
| 5774 |
|
| 5775 |
fi |
| 5776 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 5777 |
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 5778 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 5779 |
|
| 5780 |
if |
| 5781 |
test "x$enable_dependency_tracking" != xno \ |
| 5782 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 5783 |
am__fastdepCC_TRUE= |
| 5784 |
am__fastdepCC_FALSE='#' |
| 5785 |
else |
| 5786 |
am__fastdepCC_TRUE='#' |
| 5787 |
am__fastdepCC_FALSE= |
| 5788 |
fi |
| 5789 |
|
| 5790 |
|
| 5791 |
ac_ext=cpp |
| 5792 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 5793 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5794 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5795 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5796 |
if test -z "$CXX"; then |
| 5797 |
if test -n "$CCC"; then |
| 5798 |
CXX=$CCC |
| 5799 |
else |
| 5800 |
if test -n "$ac_tool_prefix"; then |
| 5801 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 5802 |
do |
| 5803 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5804 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5805 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5806 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5807 |
if ${ac_cv_prog_CXX+:} false; then : |
| 5808 |
$as_echo_n "(cached) " >&6 |
| 5809 |
else |
| 5810 |
if test -n "$CXX"; then |
| 5811 |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5812 |
else |
| 5813 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5814 |
for as_dir in $PATH |
| 5815 |
do |
| 5816 |
IFS=$as_save_IFS |
| 5817 |
test -z "$as_dir" && as_dir=. |
| 5818 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5819 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5820 |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 5821 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5822 |
break 2 |
| 5823 |
fi |
| 5824 |
done |
| 5825 |
done |
| 5826 |
IFS=$as_save_IFS |
| 5827 |
|
| 5828 |
fi |
| 5829 |
fi |
| 5830 |
CXX=$ac_cv_prog_CXX |
| 5831 |
if test -n "$CXX"; then |
| 5832 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 5833 |
$as_echo "$CXX" >&6; } |
| 5834 |
else |
| 5835 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5836 |
$as_echo "no" >&6; } |
| 5837 |
fi |
| 5838 |
|
| 5839 |
|
| 5840 |
test -n "$CXX" && break |
| 5841 |
done |
| 5842 |
fi |
| 5843 |
if test -z "$CXX"; then |
| 5844 |
ac_ct_CXX=$CXX |
| 5845 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 5846 |
do |
| 5847 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5848 |
set dummy $ac_prog; ac_word=$2 |
| 5849 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5850 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5851 |
if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
| 5852 |
$as_echo_n "(cached) " >&6 |
| 5853 |
else |
| 5854 |
if test -n "$ac_ct_CXX"; then |
| 5855 |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5856 |
else |
| 5857 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5858 |
for as_dir in $PATH |
| 5859 |
do |
| 5860 |
IFS=$as_save_IFS |
| 5861 |
test -z "$as_dir" && as_dir=. |
| 5862 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5863 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5864 |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5865 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5866 |
break 2 |
| 5867 |
fi |
| 5868 |
done |
| 5869 |
done |
| 5870 |
IFS=$as_save_IFS |
| 5871 |
|
| 5872 |
fi |
| 5873 |
fi |
| 5874 |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5875 |
if test -n "$ac_ct_CXX"; then |
| 5876 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 5877 |
$as_echo "$ac_ct_CXX" >&6; } |
| 5878 |
else |
| 5879 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5880 |
$as_echo "no" >&6; } |
| 5881 |
fi |
| 5882 |
|
| 5883 |
|
| 5884 |
test -n "$ac_ct_CXX" && break |
| 5885 |
done |
| 5886 |
|
| 5887 |
if test "x$ac_ct_CXX" = x; then |
| 5888 |
CXX="g++" |
| 5889 |
else |
| 5890 |
case $cross_compiling:$ac_tool_warned in |
| 5891 |
yes:) |
| 5892 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5893 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5894 |
ac_tool_warned=yes ;; |
| 5895 |
esac |
| 5896 |
CXX=$ac_ct_CXX |
| 5897 |
fi |
| 5898 |
fi |
| 5899 |
|
| 5900 |
fi |
| 5901 |
fi |
| 5902 |
# Provide some information about the compiler. |
| 5903 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 5904 |
set X $ac_compile |
| 5905 |
ac_compiler=$2 |
| 5906 |
for ac_option in --version -v -V -qversion; do |
| 5907 |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 5908 |
case "(($ac_try" in |
| 5909 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5910 |
*) ac_try_echo=$ac_try;; |
| 5911 |
esac |
| 5912 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5913 |
$as_echo "$ac_try_echo"; } >&5 |
| 5914 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 5915 |
ac_status=$? |
| 5916 |
if test -s conftest.err; then |
| 5917 |
sed '10a\ |
| 5918 |
... rest of stderr output deleted ... |
| 5919 |
10q' conftest.err >conftest.er1 |
| 5920 |
cat conftest.er1 >&5 |
| 5921 |
fi |
| 5922 |
rm -f conftest.er1 conftest.err |
| 5923 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5924 |
test $ac_status = 0; } |
| 5925 |
done |
| 5926 |
|
| 5927 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 5928 |
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 5929 |
if ${ac_cv_cxx_compiler_gnu+:} false; then : |
| 5930 |
$as_echo_n "(cached) " >&6 |
| 5931 |
else |
| 5932 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5933 |
/* end confdefs.h. */ |
| 5934 |
|
| 5935 |
int |
| 5936 |
main () |
| 5937 |
{ |
| 5938 |
#ifndef __GNUC__ |
| 5939 |
choke me |
| 5940 |
#endif |
| 5941 |
|
| 5942 |
; |
| 5943 |
return 0; |
| 5944 |
} |
| 5945 |
_ACEOF |
| 5946 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
| 5947 |
ac_compiler_gnu=yes |
| 5948 |
else |
| 5949 |
ac_compiler_gnu=no |
| 5950 |
fi |
| 5951 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5952 |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 5953 |
|
| 5954 |
fi |
| 5955 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 5956 |
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 5957 |
if test $ac_compiler_gnu = yes; then |
| 5958 |
GXX=yes |
| 5959 |
else |
| 5960 |
GXX= |
| 5961 |
fi |
| 5962 |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 5963 |
ac_save_CXXFLAGS=$CXXFLAGS |
| 5964 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 5965 |
$as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 5966 |
if ${ac_cv_prog_cxx_g+:} false; then : |
| 5967 |
$as_echo_n "(cached) " >&6 |
| 5968 |
else |
| 5969 |
ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 5970 |
ac_cxx_werror_flag=yes |
| 5971 |
ac_cv_prog_cxx_g=no |
| 5972 |
CXXFLAGS="-g" |
| 5973 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5974 |
/* end confdefs.h. */ |
| 5975 |
|
| 5976 |
int |
| 5977 |
main () |
| 5978 |
{ |
| 5979 |
|
| 5980 |
; |
| 5981 |
return 0; |
| 5982 |
} |
| 5983 |
_ACEOF |
| 5984 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
| 5985 |
ac_cv_prog_cxx_g=yes |
| 5986 |
else |
| 5987 |
CXXFLAGS="" |
| 5988 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5989 |
/* end confdefs.h. */ |
| 5990 |
|
| 5991 |
int |
| 5992 |
main () |
| 5993 |
{ |
| 5994 |
|
| 5995 |
; |
| 5996 |
return 0; |
| 5997 |
} |
| 5998 |
_ACEOF |
| 5999 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
| 6000 |
|
| 6001 |
else |
| 6002 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6003 |
CXXFLAGS="-g" |
| 6004 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6005 |
/* end confdefs.h. */ |
| 6006 |
|
| 6007 |
int |
| 6008 |
main () |
| 6009 |
{ |
| 6010 |
|
| 6011 |
; |
| 6012 |
return 0; |
| 6013 |
} |
| 6014 |
_ACEOF |
| 6015 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
| 6016 |
ac_cv_prog_cxx_g=yes |
| 6017 |
fi |
| 6018 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6019 |
fi |
| 6020 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6021 |
fi |
| 6022 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6023 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6024 |
fi |
| 6025 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 6026 |
$as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 6027 |
if test "$ac_test_CXXFLAGS" = set; then |
| 6028 |
CXXFLAGS=$ac_save_CXXFLAGS |
| 6029 |
elif test $ac_cv_prog_cxx_g = yes; then |
| 6030 |
if test "$GXX" = yes; then |
| 6031 |
CXXFLAGS="-g -O2" |
| 6032 |
else |
| 6033 |
CXXFLAGS="-g" |
| 6034 |
fi |
| 6035 |
else |
| 6036 |
if test "$GXX" = yes; then |
| 6037 |
CXXFLAGS="-O2" |
| 6038 |
else |
| 6039 |
CXXFLAGS= |
| 6040 |
fi |
| 6041 |
fi |
| 6042 |
ac_ext=c |
| 6043 |
ac_cpp='$CPP $CPPFLAGS' |
| 6044 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6045 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6046 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6047 |
|
| 6048 |
depcc="$CXX" am_compiler_list= |
| 6049 |
|
| 6050 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 6051 |
$as_echo_n "checking dependency style of $depcc... " >&6; } |
| 6052 |
if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
| 6053 |
$as_echo_n "(cached) " >&6 |
| 6054 |
else |
| 6055 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 6056 |
# We make a subdir and do the tests there. Otherwise we can end up |
| 6057 |
# making bogus files that we don't know about and never remove. For |
| 6058 |
# instance it was reported that on HP-UX the gcc test will end up |
| 6059 |
# making a dummy file named 'D' -- because '-MD' means "put the output |
| 6060 |
# in D". |
| 6061 |
rm -rf conftest.dir |
| 6062 |
mkdir conftest.dir |
| 6063 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
| 6064 |
# using a relative directory. |
| 6065 |
cp "$am_depcomp" conftest.dir |
| 6066 |
cd conftest.dir |
| 6067 |
# We will build objects and dependencies in a subdirectory because |
| 6068 |
# it helps to detect inapplicable dependency modes. For instance |
| 6069 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
| 6070 |
# side effect of compilation, but ICC will put the dependencies in |
| 6071 |
# the current directory while Tru64 will put them in the object |
| 6072 |
# directory. |
| 6073 |
mkdir sub |
| 6074 |
|
| 6075 |
am_cv_CXX_dependencies_compiler_type=none |
| 6076 |
if test "$am_compiler_list" = ""; then |
| 6077 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 6078 |
fi |
| 6079 |
am__universal=false |
| 6080 |
case " $depcc " in #( |
| 6081 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 6082 |
esac |
| 6083 |
|
| 6084 |
for depmode in $am_compiler_list; do |
| 6085 |
# Setup a source with many dependencies, because some compilers |
| 6086 |
# like to wrap large dependency lists on column 80 (with \), and |
| 6087 |
# we should not choose a depcomp mode which is confused by this. |
| 6088 |
# |
| 6089 |
# We need to recreate these files for each test, as the compiler may |
| 6090 |
# overwrite some of them when testing with obscure command lines. |
| 6091 |
# This happens at least with the AIX C compiler. |
| 6092 |
: > sub/conftest.c |
| 6093 |
for i in 1 2 3 4 5 6; do |
| 6094 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 6095 |
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 6096 |
# Solaris 10 /bin/sh. |
| 6097 |
echo '/* dummy */' > sub/conftst$i.h |
| 6098 |
done |
| 6099 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 6100 |
|
| 6101 |
# We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 6102 |
# mode. It turns out that the SunPro C++ compiler does not properly |
| 6103 |
# handle '-M -o', and we need to detect this. Also, some Intel |
| 6104 |
# versions had trouble with output in subdirs. |
| 6105 |
am__obj=sub/conftest.${OBJEXT-o} |
| 6106 |
am__minus_obj="-o $am__obj" |
| 6107 |
case $depmode in |
| 6108 |
gcc) |
| 6109 |
# This depmode causes a compiler race in universal mode. |
| 6110 |
test "$am__universal" = false || continue |
| 6111 |
;; |
| 6112 |
nosideeffect) |
| 6113 |
# After this tag, mechanisms are not by side-effect, so they'll |
| 6114 |
# only be used when explicitly requested. |
| 6115 |
if test "x$enable_dependency_tracking" = xyes; then |
| 6116 |
continue |
| 6117 |
else |
| 6118 |
break |
| 6119 |
fi |
| 6120 |
;; |
| 6121 |
msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 6122 |
# This compiler won't grok '-c -o', but also, the minuso test has |
| 6123 |
# not run yet. These depmodes are late enough in the game, and |
| 6124 |
# so weak that their functioning should not be impacted. |
| 6125 |
am__obj=conftest.${OBJEXT-o} |
| 6126 |
am__minus_obj= |
| 6127 |
;; |
| 6128 |
none) break ;; |
| 6129 |
esac |
| 6130 |
if depmode=$depmode \ |
| 6131 |
source=sub/conftest.c object=$am__obj \ |
| 6132 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 6133 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 6134 |
>/dev/null 2>conftest.err && |
| 6135 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 6136 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 6137 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 6138 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 6139 |
# icc doesn't choke on unknown options, it will just issue warnings |
| 6140 |
# or remarks (even with -Werror). So we grep stderr for any message |
| 6141 |
# that says an option was ignored or not supported. |
| 6142 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
| 6143 |
# icc: Command line warning: ignoring option '-M'; no argument required |
| 6144 |
# The diagnosis changed in icc 8.0: |
| 6145 |
# icc: Command line remark: option '-MP' not supported |
| 6146 |
if (grep 'ignoring option' conftest.err || |
| 6147 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 6148 |
am_cv_CXX_dependencies_compiler_type=$depmode |
| 6149 |
break |
| 6150 |
fi |
| 6151 |
fi |
| 6152 |
done |
| 6153 |
|
| 6154 |
cd .. |
| 6155 |
rm -rf conftest.dir |
| 6156 |
else |
| 6157 |
am_cv_CXX_dependencies_compiler_type=none |
| 6158 |
fi |
| 6159 |
|
| 6160 |
fi |
| 6161 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 6162 |
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 6163 |
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 6164 |
|
| 6165 |
if |
| 6166 |
test "x$enable_dependency_tracking" != xno \ |
| 6167 |
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 6168 |
am__fastdepCXX_TRUE= |
| 6169 |
am__fastdepCXX_FALSE='#' |
| 6170 |
else |
| 6171 |
am__fastdepCXX_TRUE='#' |
| 6172 |
am__fastdepCXX_FALSE= |
| 6173 |
fi |
| 6174 |
|
| 6175 |
|
| 6176 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 6177 |
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 6178 |
set x ${MAKE-make} |
| 6179 |
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 6180 |
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
| 6181 |
$as_echo_n "(cached) " >&6 |
| 6182 |
else |
| 6183 |
cat >conftest.make <<\_ACEOF |
| 6184 |
SHELL = /bin/sh |
| 6185 |
all: |
| 6186 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
| 6187 |
_ACEOF |
| 6188 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 6189 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 6190 |
*@@@%%%=?*=@@@%%%*) |
| 6191 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 6192 |
*) |
| 6193 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
| 6194 |
esac |
| 6195 |
rm -f conftest.make |
| 6196 |
fi |
| 6197 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 6198 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6199 |
$as_echo "yes" >&6; } |
| 6200 |
SET_MAKE= |
| 6201 |
else |
| 6202 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6203 |
$as_echo "no" >&6; } |
| 6204 |
SET_MAKE="MAKE=${MAKE-make}" |
| 6205 |
fi |
| 6206 |
|
| 6207 |
case `pwd` in |
| 6208 |
*\ * | *\ *) |
| 6209 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 6210 |
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 6211 |
esac |
| 6212 |
|
| 6213 |
|
| 6214 |
|
| 6215 |
macro_version='2.4.6' |
| 6216 |
macro_revision='2.4.6' |
| 6217 |
|
| 6218 |
|
| 6219 |
|
| 6220 |
|
| 6221 |
|
| 6222 |
|
| 6223 |
|
| 6224 |
|
| 6225 |
|
| 6226 |
|
| 6227 |
|
| 6228 |
|
| 6229 |
|
| 6230 |
ltmain=$ac_aux_dir/ltmain.sh |
| 6231 |
|
| 6232 |
# Backslashify metacharacters that are still active within |
| 6233 |
# double-quoted strings. |
| 6234 |
sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 6235 |
|
| 6236 |
# Same as above, but do not quote variable references. |
| 6237 |
double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 6238 |
|
| 6239 |
# Sed substitution to delay expansion of an escaped shell variable in a |
| 6240 |
# double_quote_subst'ed string. |
| 6241 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 6242 |
|
| 6243 |
# Sed substitution to delay expansion of an escaped single quote. |
| 6244 |
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 6245 |
|
| 6246 |
# Sed substitution to avoid accidental globbing in evaled expressions |
| 6247 |
no_glob_subst='s/\*/\\\*/g' |
| 6248 |
|
| 6249 |
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 6250 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 6251 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 6252 |
|
| 6253 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 6254 |
$as_echo_n "checking how to print strings... " >&6; } |
| 6255 |
# Test print first, because it will be a builtin if present. |
| 6256 |
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| 6257 |
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 6258 |
ECHO='print -r --' |
| 6259 |
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 6260 |
ECHO='printf %s\n' |
| 6261 |
else |
| 6262 |
# Use this function as a fallback that always works. |
| 6263 |
func_fallback_echo () |
| 6264 |
{ |
| 6265 |
eval 'cat <<_LTECHO_EOF |
| 6266 |
$1 |
| 6267 |
_LTECHO_EOF' |
| 6268 |
} |
| 6269 |
ECHO='func_fallback_echo' |
| 6270 |
fi |
| 6271 |
|
| 6272 |
# func_echo_all arg... |
| 6273 |
# Invoke $ECHO with all args, space-separated. |
| 6274 |
func_echo_all () |
| 6275 |
{ |
| 6276 |
$ECHO "" |
| 6277 |
} |
| 6278 |
|
| 6279 |
case $ECHO in |
| 6280 |
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 6281 |
$as_echo "printf" >&6; } ;; |
| 6282 |
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 6283 |
$as_echo "print -r" >&6; } ;; |
| 6284 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 6285 |
$as_echo "cat" >&6; } ;; |
| 6286 |
esac |
| 6287 |
|
| 6288 |
|
| 6289 |
|
| 6290 |
|
| 6291 |
|
| 6292 |
|
| 6293 |
|
| 6294 |
|
| 6295 |
|
| 6296 |
|
| 6297 |
|
| 6298 |
|
| 6299 |
|
| 6300 |
|
| 6301 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 6302 |
$as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 6303 |
if ${ac_cv_path_SED+:} false; then : |
| 6304 |
$as_echo_n "(cached) " >&6 |
| 6305 |
else |
| 6306 |
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 6307 |
for ac_i in 1 2 3 4 5 6 7; do |
| 6308 |
ac_script="$ac_script$as_nl$ac_script" |
| 6309 |
done |
| 6310 |
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 6311 |
{ ac_script=; unset ac_script;} |
| 6312 |
if test -z "$SED"; then |
| 6313 |
ac_path_SED_found=false |
| 6314 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 6315 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6316 |
for as_dir in $PATH |
| 6317 |
do |
| 6318 |
IFS=$as_save_IFS |
| 6319 |
test -z "$as_dir" && as_dir=. |
| 6320 |
for ac_prog in sed gsed; do |
| 6321 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6322 |
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 6323 |
as_fn_executable_p "$ac_path_SED" || continue |
| 6324 |
# Check for GNU ac_path_SED and select it if it is found. |
| 6325 |
# Check for GNU $ac_path_SED |
| 6326 |
case `"$ac_path_SED" --version 2>&1` in |
| 6327 |
*GNU*) |
| 6328 |
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 6329 |
*) |
| 6330 |
ac_count=0 |
| 6331 |
$as_echo_n 0123456789 >"conftest.in" |
| 6332 |
while : |
| 6333 |
do |
| 6334 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6335 |
mv "conftest.tmp" "conftest.in" |
| 6336 |
cp "conftest.in" "conftest.nl" |
| 6337 |
$as_echo '' >> "conftest.nl" |
| 6338 |
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6339 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6340 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6341 |
if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 6342 |
# Best one so far, save it but keep looking for a better one |
| 6343 |
ac_cv_path_SED="$ac_path_SED" |
| 6344 |
ac_path_SED_max=$ac_count |
| 6345 |
fi |
| 6346 |
# 10*(2^10) chars as input seems more than enough |
| 6347 |
test $ac_count -gt 10 && break |
| 6348 |
done |
| 6349 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6350 |
esac |
| 6351 |
|
| 6352 |
$ac_path_SED_found && break 3 |
| 6353 |
done |
| 6354 |
done |
| 6355 |
done |
| 6356 |
IFS=$as_save_IFS |
| 6357 |
if test -z "$ac_cv_path_SED"; then |
| 6358 |
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 6359 |
fi |
| 6360 |
else |
| 6361 |
ac_cv_path_SED=$SED |
| 6362 |
fi |
| 6363 |
|
| 6364 |
fi |
| 6365 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 6366 |
$as_echo "$ac_cv_path_SED" >&6; } |
| 6367 |
SED="$ac_cv_path_SED" |
| 6368 |
rm -f conftest.sed |
| 6369 |
|
| 6370 |
test -z "$SED" && SED=sed |
| 6371 |
Xsed="$SED -e 1s/^X//" |
| 6372 |
|
| 6373 |
|
| 6374 |
|
| 6375 |
|
| 6376 |
|
| 6377 |
|
| 6378 |
|
| 6379 |
|
| 6380 |
|
| 6381 |
|
| 6382 |
|
| 6383 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 6384 |
$as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 6385 |
if ${ac_cv_path_GREP+:} false; then : |
| 6386 |
$as_echo_n "(cached) " >&6 |
| 6387 |
else |
| 6388 |
if test -z "$GREP"; then |
| 6389 |
ac_path_GREP_found=false |
| 6390 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 6391 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6392 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6393 |
do |
| 6394 |
IFS=$as_save_IFS |
| 6395 |
test -z "$as_dir" && as_dir=. |
| 6396 |
for ac_prog in grep ggrep; do |
| 6397 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6398 |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 6399 |
as_fn_executable_p "$ac_path_GREP" || continue |
| 6400 |
# Check for GNU ac_path_GREP and select it if it is found. |
| 6401 |
# Check for GNU $ac_path_GREP |
| 6402 |
case `"$ac_path_GREP" --version 2>&1` in |
| 6403 |
*GNU*) |
| 6404 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 6405 |
*) |
| 6406 |
ac_count=0 |
| 6407 |
$as_echo_n 0123456789 >"conftest.in" |
| 6408 |
while : |
| 6409 |
do |
| 6410 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6411 |
mv "conftest.tmp" "conftest.in" |
| 6412 |
cp "conftest.in" "conftest.nl" |
| 6413 |
$as_echo 'GREP' >> "conftest.nl" |
| 6414 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6415 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6416 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6417 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 6418 |
# Best one so far, save it but keep looking for a better one |
| 6419 |
ac_cv_path_GREP="$ac_path_GREP" |
| 6420 |
ac_path_GREP_max=$ac_count |
| 6421 |
fi |
| 6422 |
# 10*(2^10) chars as input seems more than enough |
| 6423 |
test $ac_count -gt 10 && break |
| 6424 |
done |
| 6425 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6426 |
esac |
| 6427 |
|
| 6428 |
$ac_path_GREP_found && break 3 |
| 6429 |
done |
| 6430 |
done |
| 6431 |
done |
| 6432 |
IFS=$as_save_IFS |
| 6433 |
if test -z "$ac_cv_path_GREP"; then |
| 6434 |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 6435 |
fi |
| 6436 |
else |
| 6437 |
ac_cv_path_GREP=$GREP |
| 6438 |
fi |
| 6439 |
|
| 6440 |
fi |
| 6441 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 6442 |
$as_echo "$ac_cv_path_GREP" >&6; } |
| 6443 |
GREP="$ac_cv_path_GREP" |
| 6444 |
|
| 6445 |
|
| 6446 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 6447 |
$as_echo_n "checking for egrep... " >&6; } |
| 6448 |
if ${ac_cv_path_EGREP+:} false; then : |
| 6449 |
$as_echo_n "(cached) " >&6 |
| 6450 |
else |
| 6451 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 6452 |
then ac_cv_path_EGREP="$GREP -E" |
| 6453 |
else |
| 6454 |
if test -z "$EGREP"; then |
| 6455 |
ac_path_EGREP_found=false |
| 6456 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 6457 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6458 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6459 |
do |
| 6460 |
IFS=$as_save_IFS |
| 6461 |
test -z "$as_dir" && as_dir=. |
| 6462 |
for ac_prog in egrep; do |
| 6463 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6464 |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 6465 |
as_fn_executable_p "$ac_path_EGREP" || continue |
| 6466 |
# Check for GNU ac_path_EGREP and select it if it is found. |
| 6467 |
# Check for GNU $ac_path_EGREP |
| 6468 |
case `"$ac_path_EGREP" --version 2>&1` in |
| 6469 |
*GNU*) |
| 6470 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 6471 |
*) |
| 6472 |
ac_count=0 |
| 6473 |
$as_echo_n 0123456789 >"conftest.in" |
| 6474 |
while : |
| 6475 |
do |
| 6476 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6477 |
mv "conftest.tmp" "conftest.in" |
| 6478 |
cp "conftest.in" "conftest.nl" |
| 6479 |
$as_echo 'EGREP' >> "conftest.nl" |
| 6480 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6481 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6482 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6483 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 6484 |
# Best one so far, save it but keep looking for a better one |
| 6485 |
ac_cv_path_EGREP="$ac_path_EGREP" |
| 6486 |
ac_path_EGREP_max=$ac_count |
| 6487 |
fi |
| 6488 |
# 10*(2^10) chars as input seems more than enough |
| 6489 |
test $ac_count -gt 10 && break |
| 6490 |
done |
| 6491 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6492 |
esac |
| 6493 |
|
| 6494 |
$ac_path_EGREP_found && break 3 |
| 6495 |
done |
| 6496 |
done |
| 6497 |
done |
| 6498 |
IFS=$as_save_IFS |
| 6499 |
if test -z "$ac_cv_path_EGREP"; then |
| 6500 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 6501 |
fi |
| 6502 |
else |
| 6503 |
ac_cv_path_EGREP=$EGREP |
| 6504 |
fi |
| 6505 |
|
| 6506 |
fi |
| 6507 |
fi |
| 6508 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 6509 |
$as_echo "$ac_cv_path_EGREP" >&6; } |
| 6510 |
EGREP="$ac_cv_path_EGREP" |
| 6511 |
|
| 6512 |
|
| 6513 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 6514 |
$as_echo_n "checking for fgrep... " >&6; } |
| 6515 |
if ${ac_cv_path_FGREP+:} false; then : |
| 6516 |
$as_echo_n "(cached) " >&6 |
| 6517 |
else |
| 6518 |
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 6519 |
then ac_cv_path_FGREP="$GREP -F" |
| 6520 |
else |
| 6521 |
if test -z "$FGREP"; then |
| 6522 |
ac_path_FGREP_found=false |
| 6523 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 6524 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6525 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6526 |
do |
| 6527 |
IFS=$as_save_IFS |
| 6528 |
test -z "$as_dir" && as_dir=. |
| 6529 |
for ac_prog in fgrep; do |
| 6530 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6531 |
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 6532 |
as_fn_executable_p "$ac_path_FGREP" || continue |
| 6533 |
# Check for GNU ac_path_FGREP and select it if it is found. |
| 6534 |
# Check for GNU $ac_path_FGREP |
| 6535 |
case `"$ac_path_FGREP" --version 2>&1` in |
| 6536 |
*GNU*) |
| 6537 |
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 6538 |
*) |
| 6539 |
ac_count=0 |
| 6540 |
$as_echo_n 0123456789 >"conftest.in" |
| 6541 |
while : |
| 6542 |
do |
| 6543 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6544 |
mv "conftest.tmp" "conftest.in" |
| 6545 |
cp "conftest.in" "conftest.nl" |
| 6546 |
$as_echo 'FGREP' >> "conftest.nl" |
| 6547 |
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6548 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6549 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6550 |
if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 6551 |
# Best one so far, save it but keep looking for a better one |
| 6552 |
ac_cv_path_FGREP="$ac_path_FGREP" |
| 6553 |
ac_path_FGREP_max=$ac_count |
| 6554 |
fi |
| 6555 |
# 10*(2^10) chars as input seems more than enough |
| 6556 |
test $ac_count -gt 10 && break |
| 6557 |
done |
| 6558 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6559 |
esac |
| 6560 |
|
| 6561 |
$ac_path_FGREP_found && break 3 |
| 6562 |
done |
| 6563 |
done |
| 6564 |
done |
| 6565 |
IFS=$as_save_IFS |
| 6566 |
if test -z "$ac_cv_path_FGREP"; then |
| 6567 |
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 6568 |
fi |
| 6569 |
else |
| 6570 |
ac_cv_path_FGREP=$FGREP |
| 6571 |
fi |
| 6572 |
|
| 6573 |
fi |
| 6574 |
fi |
| 6575 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 6576 |
$as_echo "$ac_cv_path_FGREP" >&6; } |
| 6577 |
FGREP="$ac_cv_path_FGREP" |
| 6578 |
|
| 6579 |
|
| 6580 |
test -z "$GREP" && GREP=grep |
| 6581 |
|
| 6582 |
|
| 6583 |
|
| 6584 |
|
| 6585 |
|
| 6586 |
|
| 6587 |
|
| 6588 |
|
| 6589 |
|
| 6590 |
|
| 6591 |
|
| 6592 |
|
| 6593 |
|
| 6594 |
|
| 6595 |
|
| 6596 |
|
| 6597 |
|
| 6598 |
|
| 6599 |
|
| 6600 |
# Check whether --with-gnu-ld was given. |
| 6601 |
if test "${with_gnu_ld+set}" = set; then : |
| 6602 |
withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
| 6603 |
else |
| 6604 |
with_gnu_ld=no |
| 6605 |
fi |
| 6606 |
|
| 6607 |
ac_prog=ld |
| 6608 |
if test yes = "$GCC"; then |
| 6609 |
# Check if gcc -print-prog-name=ld gives a path. |
| 6610 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 6611 |
$as_echo_n "checking for ld used by $CC... " >&6; } |
| 6612 |
case $host in |
| 6613 |
*-*-mingw*) |
| 6614 |
# gcc leaves a trailing carriage return, which upsets mingw |
| 6615 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 6616 |
*) |
| 6617 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 6618 |
esac |
| 6619 |
case $ac_prog in |
| 6620 |
# Accept absolute paths. |
| 6621 |
[\\/]* | ?:[\\/]*) |
| 6622 |
re_direlt='/[^/][^/]*/\.\./' |
| 6623 |
# Canonicalize the pathname of ld |
| 6624 |
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 6625 |
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 6626 |
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 6627 |
done |
| 6628 |
test -z "$LD" && LD=$ac_prog |
| 6629 |
;; |
| 6630 |
"") |
| 6631 |
# If it fails, then pretend we aren't using GCC. |
| 6632 |
ac_prog=ld |
| 6633 |
;; |
| 6634 |
*) |
| 6635 |
# If it is relative, then search for the first ld in PATH. |
| 6636 |
with_gnu_ld=unknown |
| 6637 |
;; |
| 6638 |
esac |
| 6639 |
elif test yes = "$with_gnu_ld"; then |
| 6640 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 6641 |
$as_echo_n "checking for GNU ld... " >&6; } |
| 6642 |
else |
| 6643 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 6644 |
$as_echo_n "checking for non-GNU ld... " >&6; } |
| 6645 |
fi |
| 6646 |
if ${lt_cv_path_LD+:} false; then : |
| 6647 |
$as_echo_n "(cached) " >&6 |
| 6648 |
else |
| 6649 |
if test -z "$LD"; then |
| 6650 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 6651 |
for ac_dir in $PATH; do |
| 6652 |
IFS=$lt_save_ifs |
| 6653 |
test -z "$ac_dir" && ac_dir=. |
| 6654 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 6655 |
lt_cv_path_LD=$ac_dir/$ac_prog |
| 6656 |
# Check to see if the program is GNU ld. I'd rather use --version, |
| 6657 |
# but apparently some variants of GNU ld only accept -v. |
| 6658 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
| 6659 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 6660 |
*GNU* | *'with BFD'*) |
| 6661 |
test no != "$with_gnu_ld" && break |
| 6662 |
;; |
| 6663 |
*) |
| 6664 |
test yes != "$with_gnu_ld" && break |
| 6665 |
;; |
| 6666 |
esac |
| 6667 |
fi |
| 6668 |
done |
| 6669 |
IFS=$lt_save_ifs |
| 6670 |
else |
| 6671 |
lt_cv_path_LD=$LD # Let the user override the test with a path. |
| 6672 |
fi |
| 6673 |
fi |
| 6674 |
|
| 6675 |
LD=$lt_cv_path_LD |
| 6676 |
if test -n "$LD"; then |
| 6677 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 6678 |
$as_echo "$LD" >&6; } |
| 6679 |
else |
| 6680 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6681 |
$as_echo "no" >&6; } |
| 6682 |
fi |
| 6683 |
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 6684 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 6685 |
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 6686 |
if ${lt_cv_prog_gnu_ld+:} false; then : |
| 6687 |
$as_echo_n "(cached) " >&6 |
| 6688 |
else |
| 6689 |
# I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 6690 |
case `$LD -v 2>&1 </dev/null` in |
| 6691 |
*GNU* | *'with BFD'*) |
| 6692 |
lt_cv_prog_gnu_ld=yes |
| 6693 |
;; |
| 6694 |
*) |
| 6695 |
lt_cv_prog_gnu_ld=no |
| 6696 |
;; |
| 6697 |
esac |
| 6698 |
fi |
| 6699 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 6700 |
$as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 6701 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
| 6702 |
|
| 6703 |
|
| 6704 |
|
| 6705 |
|
| 6706 |
|
| 6707 |
|
| 6708 |
|
| 6709 |
|
| 6710 |
|
| 6711 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 6712 |
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 6713 |
if ${lt_cv_path_NM+:} false; then : |
| 6714 |
$as_echo_n "(cached) " >&6 |
| 6715 |
else |
| 6716 |
if test -n "$NM"; then |
| 6717 |
# Let the user override the test. |
| 6718 |
lt_cv_path_NM=$NM |
| 6719 |
else |
| 6720 |
lt_nm_to_check=${ac_tool_prefix}nm |
| 6721 |
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6722 |
lt_nm_to_check="$lt_nm_to_check nm" |
| 6723 |
fi |
| 6724 |
for lt_tmp_nm in $lt_nm_to_check; do |
| 6725 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 6726 |
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6727 |
IFS=$lt_save_ifs |
| 6728 |
test -z "$ac_dir" && ac_dir=. |
| 6729 |
tmp_nm=$ac_dir/$lt_tmp_nm |
| 6730 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
| 6731 |
# Check to see if the nm accepts a BSD-compat flag. |
| 6732 |
# Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
| 6733 |
# nm: unknown option "B" ignored |
| 6734 |
# Tru64's nm complains that /dev/null is an invalid object file |
| 6735 |
# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
| 6736 |
case $build_os in |
| 6737 |
mingw*) lt_bad_file=conftest.nm/nofile ;; |
| 6738 |
*) lt_bad_file=/dev/null ;; |
| 6739 |
esac |
| 6740 |
case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in |
| 6741 |
*$lt_bad_file* | *'Invalid file or object type'*) |
| 6742 |
lt_cv_path_NM="$tmp_nm -B" |
| 6743 |
break 2 |
| 6744 |
;; |
| 6745 |
*) |
| 6746 |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6747 |
*/dev/null*) |
| 6748 |
lt_cv_path_NM="$tmp_nm -p" |
| 6749 |
break 2 |
| 6750 |
;; |
| 6751 |
*) |
| 6752 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6753 |
continue # so that we can try to find one that supports BSD flags |
| 6754 |
;; |
| 6755 |
esac |
| 6756 |
;; |
| 6757 |
esac |
| 6758 |
fi |
| 6759 |
done |
| 6760 |
IFS=$lt_save_ifs |
| 6761 |
done |
| 6762 |
: ${lt_cv_path_NM=no} |
| 6763 |
fi |
| 6764 |
fi |
| 6765 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 6766 |
$as_echo "$lt_cv_path_NM" >&6; } |
| 6767 |
if test no != "$lt_cv_path_NM"; then |
| 6768 |
NM=$lt_cv_path_NM |
| 6769 |
else |
| 6770 |
# Didn't find any BSD compatible name lister, look for dumpbin. |
| 6771 |
if test -n "$DUMPBIN"; then : |
| 6772 |
# Let the user override the test. |
| 6773 |
else |
| 6774 |
if test -n "$ac_tool_prefix"; then |
| 6775 |
for ac_prog in dumpbin "link -dump" |
| 6776 |
do |
| 6777 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6778 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6779 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6780 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 6781 |
if ${ac_cv_prog_DUMPBIN+:} false; then : |
| 6782 |
$as_echo_n "(cached) " >&6 |
| 6783 |
else |
| 6784 |
if test -n "$DUMPBIN"; then |
| 6785 |
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 6786 |
else |
| 6787 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6788 |
for as_dir in $PATH |
| 6789 |
do |
| 6790 |
IFS=$as_save_IFS |
| 6791 |
test -z "$as_dir" && as_dir=. |
| 6792 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6793 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6794 |
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 6795 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6796 |
break 2 |
| 6797 |
fi |
| 6798 |
done |
| 6799 |
done |
| 6800 |
IFS=$as_save_IFS |
| 6801 |
|
| 6802 |
fi |
| 6803 |
fi |
| 6804 |
DUMPBIN=$ac_cv_prog_DUMPBIN |
| 6805 |
if test -n "$DUMPBIN"; then |
| 6806 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 6807 |
$as_echo "$DUMPBIN" >&6; } |
| 6808 |
else |
| 6809 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6810 |
$as_echo "no" >&6; } |
| 6811 |
fi |
| 6812 |
|
| 6813 |
|
| 6814 |
test -n "$DUMPBIN" && break |
| 6815 |
done |
| 6816 |
fi |
| 6817 |
if test -z "$DUMPBIN"; then |
| 6818 |
ac_ct_DUMPBIN=$DUMPBIN |
| 6819 |
for ac_prog in dumpbin "link -dump" |
| 6820 |
do |
| 6821 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6822 |
set dummy $ac_prog; ac_word=$2 |
| 6823 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6824 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 6825 |
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
| 6826 |
$as_echo_n "(cached) " >&6 |
| 6827 |
else |
| 6828 |
if test -n "$ac_ct_DUMPBIN"; then |
| 6829 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 6830 |
else |
| 6831 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6832 |
for as_dir in $PATH |
| 6833 |
do |
| 6834 |
IFS=$as_save_IFS |
| 6835 |
test -z "$as_dir" && as_dir=. |
| 6836 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6837 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6838 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 6839 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6840 |
break 2 |
| 6841 |
fi |
| 6842 |
done |
| 6843 |
done |
| 6844 |
IFS=$as_save_IFS |
| 6845 |
|
| 6846 |
fi |
| 6847 |
fi |
| 6848 |
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 6849 |
if test -n "$ac_ct_DUMPBIN"; then |
| 6850 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 6851 |
$as_echo "$ac_ct_DUMPBIN" >&6; } |
| 6852 |
else |
| 6853 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6854 |
$as_echo "no" >&6; } |
| 6855 |
fi |
| 6856 |
|
| 6857 |
|
| 6858 |
test -n "$ac_ct_DUMPBIN" && break |
| 6859 |
done |
| 6860 |
|
| 6861 |
if test "x$ac_ct_DUMPBIN" = x; then |
| 6862 |
DUMPBIN=":" |
| 6863 |
else |
| 6864 |
case $cross_compiling:$ac_tool_warned in |
| 6865 |
yes:) |
| 6866 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6867 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6868 |
ac_tool_warned=yes ;; |
| 6869 |
esac |
| 6870 |
DUMPBIN=$ac_ct_DUMPBIN |
| 6871 |
fi |
| 6872 |
fi |
| 6873 |
|
| 6874 |
case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
| 6875 |
*COFF*) |
| 6876 |
DUMPBIN="$DUMPBIN -symbols -headers" |
| 6877 |
;; |
| 6878 |
*) |
| 6879 |
DUMPBIN=: |
| 6880 |
;; |
| 6881 |
esac |
| 6882 |
fi |
| 6883 |
|
| 6884 |
if test : != "$DUMPBIN"; then |
| 6885 |
NM=$DUMPBIN |
| 6886 |
fi |
| 6887 |
fi |
| 6888 |
test -z "$NM" && NM=nm |
| 6889 |
|
| 6890 |
|
| 6891 |
|
| 6892 |
|
| 6893 |
|
| 6894 |
|
| 6895 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 6896 |
$as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| 6897 |
if ${lt_cv_nm_interface+:} false; then : |
| 6898 |
$as_echo_n "(cached) " >&6 |
| 6899 |
else |
| 6900 |
lt_cv_nm_interface="BSD nm" |
| 6901 |
echo "int some_variable = 0;" > conftest.$ac_ext |
| 6902 |
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 6903 |
(eval "$ac_compile" 2>conftest.err) |
| 6904 |
cat conftest.err >&5 |
| 6905 |
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 6906 |
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 6907 |
cat conftest.err >&5 |
| 6908 |
(eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 6909 |
cat conftest.out >&5 |
| 6910 |
if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 6911 |
lt_cv_nm_interface="MS dumpbin" |
| 6912 |
fi |
| 6913 |
rm -f conftest* |
| 6914 |
fi |
| 6915 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 6916 |
$as_echo "$lt_cv_nm_interface" >&6; } |
| 6917 |
|
| 6918 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 6919 |
$as_echo_n "checking whether ln -s works... " >&6; } |
| 6920 |
LN_S=$as_ln_s |
| 6921 |
if test "$LN_S" = "ln -s"; then |
| 6922 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6923 |
$as_echo "yes" >&6; } |
| 6924 |
else |
| 6925 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 6926 |
$as_echo "no, using $LN_S" >&6; } |
| 6927 |
fi |
| 6928 |
|
| 6929 |
# find the maximum length of command line arguments |
| 6930 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 6931 |
$as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| 6932 |
if ${lt_cv_sys_max_cmd_len+:} false; then : |
| 6933 |
$as_echo_n "(cached) " >&6 |
| 6934 |
else |
| 6935 |
i=0 |
| 6936 |
teststring=ABCD |
| 6937 |
|
| 6938 |
case $build_os in |
| 6939 |
msdosdjgpp*) |
| 6940 |
# On DJGPP, this test can blow up pretty badly due to problems in libc |
| 6941 |
# (any single argument exceeding 2000 bytes causes a buffer overrun |
| 6942 |
# during glob expansion). Even if it were fixed, the result of this |
| 6943 |
# check would be larger than it should be. |
| 6944 |
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 6945 |
;; |
| 6946 |
|
| 6947 |
gnu*) |
| 6948 |
# Under GNU Hurd, this test is not required because there is |
| 6949 |
# no limit to the length of command line arguments. |
| 6950 |
# Libtool will interpret -1 as no limit whatsoever |
| 6951 |
lt_cv_sys_max_cmd_len=-1; |
| 6952 |
;; |
| 6953 |
|
| 6954 |
cygwin* | mingw* | cegcc*) |
| 6955 |
# On Win9x/ME, this test blows up -- it succeeds, but takes |
| 6956 |
# about 5 minutes as the teststring grows exponentially. |
| 6957 |
# Worse, since 9x/ME are not pre-emptively multitasking, |
| 6958 |
# you end up with a "frozen" computer, even though with patience |
| 6959 |
# the test eventually succeeds (with a max line length of 256k). |
| 6960 |
# Instead, let's just punt: use the minimum linelength reported by |
| 6961 |
# all of the supported platforms: 8192 (on NT/2K/XP). |
| 6962 |
lt_cv_sys_max_cmd_len=8192; |
| 6963 |
;; |
| 6964 |
|
| 6965 |
mint*) |
| 6966 |
# On MiNT this can take a long time and run out of memory. |
| 6967 |
lt_cv_sys_max_cmd_len=8192; |
| 6968 |
;; |
| 6969 |
|
| 6970 |
amigaos*) |
| 6971 |
# On AmigaOS with pdksh, this test takes hours, literally. |
| 6972 |
# So we just punt and use a minimum line length of 8192. |
| 6973 |
lt_cv_sys_max_cmd_len=8192; |
| 6974 |
;; |
| 6975 |
|
| 6976 |
bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
| 6977 |
# This has been around since 386BSD, at least. Likely further. |
| 6978 |
if test -x /sbin/sysctl; then |
| 6979 |
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 6980 |
elif test -x /usr/sbin/sysctl; then |
| 6981 |
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 6982 |
else |
| 6983 |
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 6984 |
fi |
| 6985 |
# And add a safety zone |
| 6986 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6987 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6988 |
;; |
| 6989 |
|
| 6990 |
interix*) |
| 6991 |
# We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 6992 |
lt_cv_sys_max_cmd_len=196608 |
| 6993 |
;; |
| 6994 |
|
| 6995 |
os2*) |
| 6996 |
# The test takes a long time on OS/2. |
| 6997 |
lt_cv_sys_max_cmd_len=8192 |
| 6998 |
;; |
| 6999 |
|
| 7000 |
osf*) |
| 7001 |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 7002 |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 7003 |
# nice to cause kernel panics so lets avoid the loop below. |
| 7004 |
# First set a reasonable default. |
| 7005 |
lt_cv_sys_max_cmd_len=16384 |
| 7006 |
# |
| 7007 |
if test -x /sbin/sysconfig; then |
| 7008 |
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 7009 |
*1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 7010 |
esac |
| 7011 |
fi |
| 7012 |
;; |
| 7013 |
sco3.2v5*) |
| 7014 |
lt_cv_sys_max_cmd_len=102400 |
| 7015 |
;; |
| 7016 |
sysv5* | sco5v6* | sysv4.2uw2*) |
| 7017 |
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 7018 |
if test -n "$kargmax"; then |
| 7019 |
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 7020 |
else |
| 7021 |
lt_cv_sys_max_cmd_len=32768 |
| 7022 |
fi |
| 7023 |
;; |
| 7024 |
*) |
| 7025 |
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 7026 |
if test -n "$lt_cv_sys_max_cmd_len" && \ |
| 7027 |
test undefined != "$lt_cv_sys_max_cmd_len"; then |
| 7028 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 7029 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 7030 |
else |
| 7031 |
# Make teststring a little bigger before we do anything with it. |
| 7032 |
# a 1K string should be a reasonable start. |
| 7033 |
for i in 1 2 3 4 5 6 7 8; do |
| 7034 |
teststring=$teststring$teststring |
| 7035 |
done |
| 7036 |
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 7037 |
# If test is not a shell built-in, we'll probably end up computing a |
| 7038 |
# maximum length that is only half of the actual maximum length, but |
| 7039 |
# we can't tell. |
| 7040 |
while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
| 7041 |
= "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 7042 |
test 17 != "$i" # 1/2 MB should be enough |
| 7043 |
do |
| 7044 |
i=`expr $i + 1` |
| 7045 |
teststring=$teststring$teststring |
| 7046 |
done |
| 7047 |
# Only check the string length outside the loop. |
| 7048 |
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 7049 |
teststring= |
| 7050 |
# Add a significant safety factor because C++ compilers can tack on |
| 7051 |
# massive amounts of additional arguments before passing them to the |
| 7052 |
# linker. It appears as though 1/2 is a usable value. |
| 7053 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 7054 |
fi |
| 7055 |
;; |
| 7056 |
esac |
| 7057 |
|
| 7058 |
fi |
| 7059 |
|
| 7060 |
if test -n "$lt_cv_sys_max_cmd_len"; then |
| 7061 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 7062 |
$as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 7063 |
else |
| 7064 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 7065 |
$as_echo "none" >&6; } |
| 7066 |
fi |
| 7067 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
| 7068 |
|
| 7069 |
|
| 7070 |
|
| 7071 |
|
| 7072 |
|
| 7073 |
|
| 7074 |
: ${CP="cp -f"} |
| 7075 |
: ${MV="mv -f"} |
| 7076 |
: ${RM="rm -f"} |
| 7077 |
|
| 7078 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 7079 |
lt_unset=unset |
| 7080 |
else |
| 7081 |
lt_unset=false |
| 7082 |
fi |
| 7083 |
|
| 7084 |
|
| 7085 |
|
| 7086 |
|
| 7087 |
|
| 7088 |
# test EBCDIC or ASCII |
| 7089 |
case `echo X|tr X '\101'` in |
| 7090 |
A) # ASCII based system |
| 7091 |
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 7092 |
lt_SP2NL='tr \040 \012' |
| 7093 |
lt_NL2SP='tr \015\012 \040\040' |
| 7094 |
;; |
| 7095 |
*) # EBCDIC based system |
| 7096 |
lt_SP2NL='tr \100 \n' |
| 7097 |
lt_NL2SP='tr \r\n \100\100' |
| 7098 |
;; |
| 7099 |
esac |
| 7100 |
|
| 7101 |
|
| 7102 |
|
| 7103 |
|
| 7104 |
|
| 7105 |
|
| 7106 |
|
| 7107 |
|
| 7108 |
|
| 7109 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 7110 |
$as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
| 7111 |
if ${lt_cv_to_host_file_cmd+:} false; then : |
| 7112 |
$as_echo_n "(cached) " >&6 |
| 7113 |
else |
| 7114 |
case $host in |
| 7115 |
*-*-mingw* ) |
| 7116 |
case $build in |
| 7117 |
*-*-mingw* ) # actually msys |
| 7118 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 7119 |
;; |
| 7120 |
*-*-cygwin* ) |
| 7121 |
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 7122 |
;; |
| 7123 |
* ) # otherwise, assume *nix |
| 7124 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 7125 |
;; |
| 7126 |
esac |
| 7127 |
;; |
| 7128 |
*-*-cygwin* ) |
| 7129 |
case $build in |
| 7130 |
*-*-mingw* ) # actually msys |
| 7131 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 7132 |
;; |
| 7133 |
*-*-cygwin* ) |
| 7134 |
lt_cv_to_host_file_cmd=func_convert_file_noop |
| 7135 |
;; |
| 7136 |
* ) # otherwise, assume *nix |
| 7137 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 7138 |
;; |
| 7139 |
esac |
| 7140 |
;; |
| 7141 |
* ) # unhandled hosts (and "normal" native builds) |
| 7142 |
lt_cv_to_host_file_cmd=func_convert_file_noop |
| 7143 |
;; |
| 7144 |
esac |
| 7145 |
|
| 7146 |
fi |
| 7147 |
|
| 7148 |
to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 7149 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 7150 |
$as_echo "$lt_cv_to_host_file_cmd" >&6; } |
| 7151 |
|
| 7152 |
|
| 7153 |
|
| 7154 |
|
| 7155 |
|
| 7156 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 7157 |
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
| 7158 |
if ${lt_cv_to_tool_file_cmd+:} false; then : |
| 7159 |
$as_echo_n "(cached) " >&6 |
| 7160 |
else |
| 7161 |
#assume ordinary cross tools, or native build. |
| 7162 |
lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 7163 |
case $host in |
| 7164 |
*-*-mingw* ) |
| 7165 |
case $build in |
| 7166 |
*-*-mingw* ) # actually msys |
| 7167 |
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 7168 |
;; |
| 7169 |
esac |
| 7170 |
;; |
| 7171 |
esac |
| 7172 |
|
| 7173 |
fi |
| 7174 |
|
| 7175 |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 7176 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 7177 |
$as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
| 7178 |
|
| 7179 |
|
| 7180 |
|
| 7181 |
|
| 7182 |
|
| 7183 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 7184 |
$as_echo_n "checking for $LD option to reload object files... " >&6; } |
| 7185 |
if ${lt_cv_ld_reload_flag+:} false; then : |
| 7186 |
$as_echo_n "(cached) " >&6 |
| 7187 |
else |
| 7188 |
lt_cv_ld_reload_flag='-r' |
| 7189 |
fi |
| 7190 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 7191 |
$as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 7192 |
reload_flag=$lt_cv_ld_reload_flag |
| 7193 |
case $reload_flag in |
| 7194 |
"" | " "*) ;; |
| 7195 |
*) reload_flag=" $reload_flag" ;; |
| 7196 |
esac |
| 7197 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 7198 |
case $host_os in |
| 7199 |
cygwin* | mingw* | pw32* | cegcc*) |
| 7200 |
if test yes != "$GCC"; then |
| 7201 |
reload_cmds=false |
| 7202 |
fi |
| 7203 |
;; |
| 7204 |
darwin*) |
| 7205 |
if test yes = "$GCC"; then |
| 7206 |
reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
| 7207 |
else |
| 7208 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 7209 |
fi |
| 7210 |
;; |
| 7211 |
esac |
| 7212 |
|
| 7213 |
|
| 7214 |
|
| 7215 |
|
| 7216 |
|
| 7217 |
|
| 7218 |
|
| 7219 |
|
| 7220 |
|
| 7221 |
if test -n "$ac_tool_prefix"; then |
| 7222 |
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 7223 |
set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 7224 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7225 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7226 |
if ${ac_cv_prog_OBJDUMP+:} false; then : |
| 7227 |
$as_echo_n "(cached) " >&6 |
| 7228 |
else |
| 7229 |
if test -n "$OBJDUMP"; then |
| 7230 |
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 7231 |
else |
| 7232 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7233 |
for as_dir in $PATH |
| 7234 |
do |
| 7235 |
IFS=$as_save_IFS |
| 7236 |
test -z "$as_dir" && as_dir=. |
| 7237 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7238 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7239 |
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 7240 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7241 |
break 2 |
| 7242 |
fi |
| 7243 |
done |
| 7244 |
done |
| 7245 |
IFS=$as_save_IFS |
| 7246 |
|
| 7247 |
fi |
| 7248 |
fi |
| 7249 |
OBJDUMP=$ac_cv_prog_OBJDUMP |
| 7250 |
if test -n "$OBJDUMP"; then |
| 7251 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 7252 |
$as_echo "$OBJDUMP" >&6; } |
| 7253 |
else |
| 7254 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7255 |
$as_echo "no" >&6; } |
| 7256 |
fi |
| 7257 |
|
| 7258 |
|
| 7259 |
fi |
| 7260 |
if test -z "$ac_cv_prog_OBJDUMP"; then |
| 7261 |
ac_ct_OBJDUMP=$OBJDUMP |
| 7262 |
# Extract the first word of "objdump", so it can be a program name with args. |
| 7263 |
set dummy objdump; ac_word=$2 |
| 7264 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7265 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7266 |
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| 7267 |
$as_echo_n "(cached) " >&6 |
| 7268 |
else |
| 7269 |
if test -n "$ac_ct_OBJDUMP"; then |
| 7270 |
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 7271 |
else |
| 7272 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7273 |
for as_dir in $PATH |
| 7274 |
do |
| 7275 |
IFS=$as_save_IFS |
| 7276 |
test -z "$as_dir" && as_dir=. |
| 7277 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7278 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7279 |
ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 7280 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7281 |
break 2 |
| 7282 |
fi |
| 7283 |
done |
| 7284 |
done |
| 7285 |
IFS=$as_save_IFS |
| 7286 |
|
| 7287 |
fi |
| 7288 |
fi |
| 7289 |
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 7290 |
if test -n "$ac_ct_OBJDUMP"; then |
| 7291 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 7292 |
$as_echo "$ac_ct_OBJDUMP" >&6; } |
| 7293 |
else |
| 7294 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7295 |
$as_echo "no" >&6; } |
| 7296 |
fi |
| 7297 |
|
| 7298 |
if test "x$ac_ct_OBJDUMP" = x; then |
| 7299 |
OBJDUMP="false" |
| 7300 |
else |
| 7301 |
case $cross_compiling:$ac_tool_warned in |
| 7302 |
yes:) |
| 7303 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7304 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7305 |
ac_tool_warned=yes ;; |
| 7306 |
esac |
| 7307 |
OBJDUMP=$ac_ct_OBJDUMP |
| 7308 |
fi |
| 7309 |
else |
| 7310 |
OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 7311 |
fi |
| 7312 |
|
| 7313 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
| 7314 |
|
| 7315 |
|
| 7316 |
|
| 7317 |
|
| 7318 |
|
| 7319 |
|
| 7320 |
|
| 7321 |
|
| 7322 |
|
| 7323 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 7324 |
$as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| 7325 |
if ${lt_cv_deplibs_check_method+:} false; then : |
| 7326 |
$as_echo_n "(cached) " >&6 |
| 7327 |
else |
| 7328 |
lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 7329 |
lt_cv_file_magic_test_file= |
| 7330 |
lt_cv_deplibs_check_method='unknown' |
| 7331 |
# Need to set the preceding variable on all platforms that support |
| 7332 |
# interlibrary dependencies. |
| 7333 |
# 'none' -- dependencies not supported. |
| 7334 |
# 'unknown' -- same as none, but documents that we really don't know. |
| 7335 |
# 'pass_all' -- all dependencies passed with no checks. |
| 7336 |
# 'test_compile' -- check by making test program. |
| 7337 |
# 'file_magic [[regex]]' -- check by looking for files in library path |
| 7338 |
# that responds to the $file_magic_cmd with a given extended regex. |
| 7339 |
# If you have 'file' or equivalent on your system and you're not sure |
| 7340 |
# whether 'pass_all' will *always* work, you probably want this one. |
| 7341 |
|
| 7342 |
case $host_os in |
| 7343 |
aix[4-9]*) |
| 7344 |
lt_cv_deplibs_check_method=pass_all |
| 7345 |
;; |
| 7346 |
|
| 7347 |
beos*) |
| 7348 |
lt_cv_deplibs_check_method=pass_all |
| 7349 |
;; |
| 7350 |
|
| 7351 |
bsdi[45]*) |
| 7352 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 7353 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 7354 |
lt_cv_file_magic_test_file=/shlib/libc.so |
| 7355 |
;; |
| 7356 |
|
| 7357 |
cygwin*) |
| 7358 |
# func_win32_libid is a shell function defined in ltmain.sh |
| 7359 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 7360 |
lt_cv_file_magic_cmd='func_win32_libid' |
| 7361 |
;; |
| 7362 |
|
| 7363 |
mingw* | pw32*) |
| 7364 |
# Base MSYS/MinGW do not provide the 'file' command needed by |
| 7365 |
# func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 7366 |
# unless we find 'file', for example because we are cross-compiling. |
| 7367 |
if ( file / ) >/dev/null 2>&1; then |
| 7368 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 7369 |
lt_cv_file_magic_cmd='func_win32_libid' |
| 7370 |
else |
| 7371 |
# Keep this pattern in sync with the one in func_win32_libid. |
| 7372 |
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
| 7373 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 7374 |
fi |
| 7375 |
;; |
| 7376 |
|
| 7377 |
cegcc*) |
| 7378 |
# use the weaker test based on 'objdump'. See mingw*. |
| 7379 |
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 7380 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 7381 |
;; |
| 7382 |
|
| 7383 |
darwin* | rhapsody*) |
| 7384 |
lt_cv_deplibs_check_method=pass_all |
| 7385 |
;; |
| 7386 |
|
| 7387 |
freebsd* | dragonfly*) |
| 7388 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 7389 |
case $host_cpu in |
| 7390 |
i*86 ) |
| 7391 |
# Not sure whether the presence of OpenBSD here was a mistake. |
| 7392 |
# Let's accept both of them until this is cleared up. |
| 7393 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 7394 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 7395 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 7396 |
;; |
| 7397 |
esac |
| 7398 |
else |
| 7399 |
lt_cv_deplibs_check_method=pass_all |
| 7400 |
fi |
| 7401 |
;; |
| 7402 |
|
| 7403 |
haiku*) |
| 7404 |
lt_cv_deplibs_check_method=pass_all |
| 7405 |
;; |
| 7406 |
|
| 7407 |
hpux10.20* | hpux11*) |
| 7408 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 7409 |
case $host_cpu in |
| 7410 |
ia64*) |
| 7411 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 7412 |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 7413 |
;; |
| 7414 |
hppa*64*) |
| 7415 |
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]' |
| 7416 |
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 7417 |
;; |
| 7418 |
*) |
| 7419 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
| 7420 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 7421 |
;; |
| 7422 |
esac |
| 7423 |
;; |
| 7424 |
|
| 7425 |
interix[3-9]*) |
| 7426 |
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 7427 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 7428 |
;; |
| 7429 |
|
| 7430 |
irix5* | irix6* | nonstopux*) |
| 7431 |
case $LD in |
| 7432 |
*-32|*"-32 ") libmagic=32-bit;; |
| 7433 |
*-n32|*"-n32 ") libmagic=N32;; |
| 7434 |
*-64|*"-64 ") libmagic=64-bit;; |
| 7435 |
*) libmagic=never-match;; |
| 7436 |
esac |
| 7437 |
lt_cv_deplibs_check_method=pass_all |
| 7438 |
;; |
| 7439 |
|
| 7440 |
# This must be glibc/ELF. |
| 7441 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 7442 |
lt_cv_deplibs_check_method=pass_all |
| 7443 |
;; |
| 7444 |
|
| 7445 |
netbsd* | netbsdelf*-gnu) |
| 7446 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 7447 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 7448 |
else |
| 7449 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 7450 |
fi |
| 7451 |
;; |
| 7452 |
|
| 7453 |
newos6*) |
| 7454 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 7455 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 7456 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 7457 |
;; |
| 7458 |
|
| 7459 |
*nto* | *qnx*) |
| 7460 |
lt_cv_deplibs_check_method=pass_all |
| 7461 |
;; |
| 7462 |
|
| 7463 |
openbsd* | bitrig*) |
| 7464 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 7465 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 7466 |
else |
| 7467 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 7468 |
fi |
| 7469 |
;; |
| 7470 |
|
| 7471 |
osf3* | osf4* | osf5*) |
| 7472 |
lt_cv_deplibs_check_method=pass_all |
| 7473 |
;; |
| 7474 |
|
| 7475 |
rdos*) |
| 7476 |
lt_cv_deplibs_check_method=pass_all |
| 7477 |
;; |
| 7478 |
|
| 7479 |
solaris*) |
| 7480 |
lt_cv_deplibs_check_method=pass_all |
| 7481 |
;; |
| 7482 |
|
| 7483 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 7484 |
lt_cv_deplibs_check_method=pass_all |
| 7485 |
;; |
| 7486 |
|
| 7487 |
sysv4 | sysv4.3*) |
| 7488 |
case $host_vendor in |
| 7489 |
motorola) |
| 7490 |
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]' |
| 7491 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 7492 |
;; |
| 7493 |
ncr) |
| 7494 |
lt_cv_deplibs_check_method=pass_all |
| 7495 |
;; |
| 7496 |
sequent) |
| 7497 |
lt_cv_file_magic_cmd='/bin/file' |
| 7498 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 7499 |
;; |
| 7500 |
sni) |
| 7501 |
lt_cv_file_magic_cmd='/bin/file' |
| 7502 |
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 7503 |
lt_cv_file_magic_test_file=/lib/libc.so |
| 7504 |
;; |
| 7505 |
siemens) |
| 7506 |
lt_cv_deplibs_check_method=pass_all |
| 7507 |
;; |
| 7508 |
pc) |
| 7509 |
lt_cv_deplibs_check_method=pass_all |
| 7510 |
;; |
| 7511 |
esac |
| 7512 |
;; |
| 7513 |
|
| 7514 |
tpf*) |
| 7515 |
lt_cv_deplibs_check_method=pass_all |
| 7516 |
;; |
| 7517 |
os2*) |
| 7518 |
lt_cv_deplibs_check_method=pass_all |
| 7519 |
;; |
| 7520 |
esac |
| 7521 |
|
| 7522 |
fi |
| 7523 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 7524 |
$as_echo "$lt_cv_deplibs_check_method" >&6; } |
| 7525 |
|
| 7526 |
file_magic_glob= |
| 7527 |
want_nocaseglob=no |
| 7528 |
if test "$build" = "$host"; then |
| 7529 |
case $host_os in |
| 7530 |
mingw* | pw32*) |
| 7531 |
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 7532 |
want_nocaseglob=yes |
| 7533 |
else |
| 7534 |
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 7535 |
fi |
| 7536 |
;; |
| 7537 |
esac |
| 7538 |
fi |
| 7539 |
|
| 7540 |
file_magic_cmd=$lt_cv_file_magic_cmd |
| 7541 |
deplibs_check_method=$lt_cv_deplibs_check_method |
| 7542 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 7543 |
|
| 7544 |
|
| 7545 |
|
| 7546 |
|
| 7547 |
|
| 7548 |
|
| 7549 |
|
| 7550 |
|
| 7551 |
|
| 7552 |
|
| 7553 |
|
| 7554 |
|
| 7555 |
|
| 7556 |
|
| 7557 |
|
| 7558 |
|
| 7559 |
|
| 7560 |
|
| 7561 |
|
| 7562 |
|
| 7563 |
|
| 7564 |
|
| 7565 |
if test -n "$ac_tool_prefix"; then |
| 7566 |
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 7567 |
set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 7568 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7569 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7570 |
if ${ac_cv_prog_DLLTOOL+:} false; then : |
| 7571 |
$as_echo_n "(cached) " >&6 |
| 7572 |
else |
| 7573 |
if test -n "$DLLTOOL"; then |
| 7574 |
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 7575 |
else |
| 7576 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7577 |
for as_dir in $PATH |
| 7578 |
do |
| 7579 |
IFS=$as_save_IFS |
| 7580 |
test -z "$as_dir" && as_dir=. |
| 7581 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7582 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7583 |
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 7584 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7585 |
break 2 |
| 7586 |
fi |
| 7587 |
done |
| 7588 |
done |
| 7589 |
IFS=$as_save_IFS |
| 7590 |
|
| 7591 |
fi |
| 7592 |
fi |
| 7593 |
DLLTOOL=$ac_cv_prog_DLLTOOL |
| 7594 |
if test -n "$DLLTOOL"; then |
| 7595 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 7596 |
$as_echo "$DLLTOOL" >&6; } |
| 7597 |
else |
| 7598 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7599 |
$as_echo "no" >&6; } |
| 7600 |
fi |
| 7601 |
|
| 7602 |
|
| 7603 |
fi |
| 7604 |
if test -z "$ac_cv_prog_DLLTOOL"; then |
| 7605 |
ac_ct_DLLTOOL=$DLLTOOL |
| 7606 |
# Extract the first word of "dlltool", so it can be a program name with args. |
| 7607 |
set dummy dlltool; ac_word=$2 |
| 7608 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7609 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7610 |
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| 7611 |
$as_echo_n "(cached) " >&6 |
| 7612 |
else |
| 7613 |
if test -n "$ac_ct_DLLTOOL"; then |
| 7614 |
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 7615 |
else |
| 7616 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7617 |
for as_dir in $PATH |
| 7618 |
do |
| 7619 |
IFS=$as_save_IFS |
| 7620 |
test -z "$as_dir" && as_dir=. |
| 7621 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7622 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7623 |
ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 7624 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7625 |
break 2 |
| 7626 |
fi |
| 7627 |
done |
| 7628 |
done |
| 7629 |
IFS=$as_save_IFS |
| 7630 |
|
| 7631 |
fi |
| 7632 |
fi |
| 7633 |
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 7634 |
if test -n "$ac_ct_DLLTOOL"; then |
| 7635 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 7636 |
$as_echo "$ac_ct_DLLTOOL" >&6; } |
| 7637 |
else |
| 7638 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7639 |
$as_echo "no" >&6; } |
| 7640 |
fi |
| 7641 |
|
| 7642 |
if test "x$ac_ct_DLLTOOL" = x; then |
| 7643 |
DLLTOOL="false" |
| 7644 |
else |
| 7645 |
case $cross_compiling:$ac_tool_warned in |
| 7646 |
yes:) |
| 7647 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7648 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7649 |
ac_tool_warned=yes ;; |
| 7650 |
esac |
| 7651 |
DLLTOOL=$ac_ct_DLLTOOL |
| 7652 |
fi |
| 7653 |
else |
| 7654 |
DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 7655 |
fi |
| 7656 |
|
| 7657 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 7658 |
|
| 7659 |
|
| 7660 |
|
| 7661 |
|
| 7662 |
|
| 7663 |
|
| 7664 |
|
| 7665 |
|
| 7666 |
|
| 7667 |
|
| 7668 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 7669 |
$as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
| 7670 |
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
| 7671 |
$as_echo_n "(cached) " >&6 |
| 7672 |
else |
| 7673 |
lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 7674 |
|
| 7675 |
case $host_os in |
| 7676 |
cygwin* | mingw* | pw32* | cegcc*) |
| 7677 |
# two different shell functions defined in ltmain.sh; |
| 7678 |
# decide which one to use based on capabilities of $DLLTOOL |
| 7679 |
case `$DLLTOOL --help 2>&1` in |
| 7680 |
*--identify-strict*) |
| 7681 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 7682 |
;; |
| 7683 |
*) |
| 7684 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 7685 |
;; |
| 7686 |
esac |
| 7687 |
;; |
| 7688 |
*) |
| 7689 |
# fallback: assume linklib IS sharedlib |
| 7690 |
lt_cv_sharedlib_from_linklib_cmd=$ECHO |
| 7691 |
;; |
| 7692 |
esac |
| 7693 |
|
| 7694 |
fi |
| 7695 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 7696 |
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 7697 |
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 7698 |
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 7699 |
|
| 7700 |
|
| 7701 |
|
| 7702 |
|
| 7703 |
|
| 7704 |
|
| 7705 |
|
| 7706 |
if test -n "$ac_tool_prefix"; then |
| 7707 |
for ac_prog in ar |
| 7708 |
do |
| 7709 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7710 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 7711 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7712 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7713 |
if ${ac_cv_prog_AR+:} false; then : |
| 7714 |
$as_echo_n "(cached) " >&6 |
| 7715 |
else |
| 7716 |
if test -n "$AR"; then |
| 7717 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7718 |
else |
| 7719 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7720 |
for as_dir in $PATH |
| 7721 |
do |
| 7722 |
IFS=$as_save_IFS |
| 7723 |
test -z "$as_dir" && as_dir=. |
| 7724 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7725 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7726 |
ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 7727 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7728 |
break 2 |
| 7729 |
fi |
| 7730 |
done |
| 7731 |
done |
| 7732 |
IFS=$as_save_IFS |
| 7733 |
|
| 7734 |
fi |
| 7735 |
fi |
| 7736 |
AR=$ac_cv_prog_AR |
| 7737 |
if test -n "$AR"; then |
| 7738 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 7739 |
$as_echo "$AR" >&6; } |
| 7740 |
else |
| 7741 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7742 |
$as_echo "no" >&6; } |
| 7743 |
fi |
| 7744 |
|
| 7745 |
|
| 7746 |
test -n "$AR" && break |
| 7747 |
done |
| 7748 |
fi |
| 7749 |
if test -z "$AR"; then |
| 7750 |
ac_ct_AR=$AR |
| 7751 |
for ac_prog in ar |
| 7752 |
do |
| 7753 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7754 |
set dummy $ac_prog; ac_word=$2 |
| 7755 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7756 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7757 |
if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 7758 |
$as_echo_n "(cached) " >&6 |
| 7759 |
else |
| 7760 |
if test -n "$ac_ct_AR"; then |
| 7761 |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7762 |
else |
| 7763 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7764 |
for as_dir in $PATH |
| 7765 |
do |
| 7766 |
IFS=$as_save_IFS |
| 7767 |
test -z "$as_dir" && as_dir=. |
| 7768 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7769 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7770 |
ac_cv_prog_ac_ct_AR="$ac_prog" |
| 7771 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7772 |
break 2 |
| 7773 |
fi |
| 7774 |
done |
| 7775 |
done |
| 7776 |
IFS=$as_save_IFS |
| 7777 |
|
| 7778 |
fi |
| 7779 |
fi |
| 7780 |
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7781 |
if test -n "$ac_ct_AR"; then |
| 7782 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 7783 |
$as_echo "$ac_ct_AR" >&6; } |
| 7784 |
else |
| 7785 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7786 |
$as_echo "no" >&6; } |
| 7787 |
fi |
| 7788 |
|
| 7789 |
|
| 7790 |
test -n "$ac_ct_AR" && break |
| 7791 |
done |
| 7792 |
|
| 7793 |
if test "x$ac_ct_AR" = x; then |
| 7794 |
AR="false" |
| 7795 |
else |
| 7796 |
case $cross_compiling:$ac_tool_warned in |
| 7797 |
yes:) |
| 7798 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7799 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7800 |
ac_tool_warned=yes ;; |
| 7801 |
esac |
| 7802 |
AR=$ac_ct_AR |
| 7803 |
fi |
| 7804 |
fi |
| 7805 |
|
| 7806 |
: ${AR=ar} |
| 7807 |
: ${AR_FLAGS=cru} |
| 7808 |
|
| 7809 |
|
| 7810 |
|
| 7811 |
|
| 7812 |
|
| 7813 |
|
| 7814 |
|
| 7815 |
|
| 7816 |
|
| 7817 |
|
| 7818 |
|
| 7819 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 7820 |
$as_echo_n "checking for archiver @FILE support... " >&6; } |
| 7821 |
if ${lt_cv_ar_at_file+:} false; then : |
| 7822 |
$as_echo_n "(cached) " >&6 |
| 7823 |
else |
| 7824 |
lt_cv_ar_at_file=no |
| 7825 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7826 |
/* end confdefs.h. */ |
| 7827 |
|
| 7828 |
int |
| 7829 |
main () |
| 7830 |
{ |
| 7831 |
|
| 7832 |
; |
| 7833 |
return 0; |
| 7834 |
} |
| 7835 |
_ACEOF |
| 7836 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 7837 |
echo conftest.$ac_objext > conftest.lst |
| 7838 |
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 7839 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 7840 |
(eval $lt_ar_try) 2>&5 |
| 7841 |
ac_status=$? |
| 7842 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7843 |
test $ac_status = 0; } |
| 7844 |
if test 0 -eq "$ac_status"; then |
| 7845 |
# Ensure the archiver fails upon bogus file names. |
| 7846 |
rm -f conftest.$ac_objext libconftest.a |
| 7847 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 7848 |
(eval $lt_ar_try) 2>&5 |
| 7849 |
ac_status=$? |
| 7850 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7851 |
test $ac_status = 0; } |
| 7852 |
if test 0 -ne "$ac_status"; then |
| 7853 |
lt_cv_ar_at_file=@ |
| 7854 |
fi |
| 7855 |
fi |
| 7856 |
rm -f conftest.* libconftest.a |
| 7857 |
|
| 7858 |
fi |
| 7859 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7860 |
|
| 7861 |
fi |
| 7862 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 7863 |
$as_echo "$lt_cv_ar_at_file" >&6; } |
| 7864 |
|
| 7865 |
if test no = "$lt_cv_ar_at_file"; then |
| 7866 |
archiver_list_spec= |
| 7867 |
else |
| 7868 |
archiver_list_spec=$lt_cv_ar_at_file |
| 7869 |
fi |
| 7870 |
|
| 7871 |
|
| 7872 |
|
| 7873 |
|
| 7874 |
|
| 7875 |
|
| 7876 |
|
| 7877 |
if test -n "$ac_tool_prefix"; then |
| 7878 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 7879 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 7880 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7881 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7882 |
if ${ac_cv_prog_STRIP+:} false; then : |
| 7883 |
$as_echo_n "(cached) " >&6 |
| 7884 |
else |
| 7885 |
if test -n "$STRIP"; then |
| 7886 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 7887 |
else |
| 7888 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7889 |
for as_dir in $PATH |
| 7890 |
do |
| 7891 |
IFS=$as_save_IFS |
| 7892 |
test -z "$as_dir" && as_dir=. |
| 7893 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7894 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7895 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 7896 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7897 |
break 2 |
| 7898 |
fi |
| 7899 |
done |
| 7900 |
done |
| 7901 |
IFS=$as_save_IFS |
| 7902 |
|
| 7903 |
fi |
| 7904 |
fi |
| 7905 |
STRIP=$ac_cv_prog_STRIP |
| 7906 |
if test -n "$STRIP"; then |
| 7907 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 7908 |
$as_echo "$STRIP" >&6; } |
| 7909 |
else |
| 7910 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7911 |
$as_echo "no" >&6; } |
| 7912 |
fi |
| 7913 |
|
| 7914 |
|
| 7915 |
fi |
| 7916 |
if test -z "$ac_cv_prog_STRIP"; then |
| 7917 |
ac_ct_STRIP=$STRIP |
| 7918 |
# Extract the first word of "strip", so it can be a program name with args. |
| 7919 |
set dummy strip; ac_word=$2 |
| 7920 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7921 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7922 |
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 7923 |
$as_echo_n "(cached) " >&6 |
| 7924 |
else |
| 7925 |
if test -n "$ac_ct_STRIP"; then |
| 7926 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 7927 |
else |
| 7928 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7929 |
for as_dir in $PATH |
| 7930 |
do |
| 7931 |
IFS=$as_save_IFS |
| 7932 |
test -z "$as_dir" && as_dir=. |
| 7933 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7934 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7935 |
ac_cv_prog_ac_ct_STRIP="strip" |
| 7936 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7937 |
break 2 |
| 7938 |
fi |
| 7939 |
done |
| 7940 |
done |
| 7941 |
IFS=$as_save_IFS |
| 7942 |
|
| 7943 |
fi |
| 7944 |
fi |
| 7945 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 7946 |
if test -n "$ac_ct_STRIP"; then |
| 7947 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 7948 |
$as_echo "$ac_ct_STRIP" >&6; } |
| 7949 |
else |
| 7950 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7951 |
$as_echo "no" >&6; } |
| 7952 |
fi |
| 7953 |
|
| 7954 |
if test "x$ac_ct_STRIP" = x; then |
| 7955 |
STRIP=":" |
| 7956 |
else |
| 7957 |
case $cross_compiling:$ac_tool_warned in |
| 7958 |
yes:) |
| 7959 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7960 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7961 |
ac_tool_warned=yes ;; |
| 7962 |
esac |
| 7963 |
STRIP=$ac_ct_STRIP |
| 7964 |
fi |
| 7965 |
else |
| 7966 |
STRIP="$ac_cv_prog_STRIP" |
| 7967 |
fi |
| 7968 |
|
| 7969 |
test -z "$STRIP" && STRIP=: |
| 7970 |
|
| 7971 |
|
| 7972 |
|
| 7973 |
|
| 7974 |
|
| 7975 |
|
| 7976 |
if test -n "$ac_tool_prefix"; then |
| 7977 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7978 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 7979 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7980 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7981 |
if ${ac_cv_prog_RANLIB+:} false; then : |
| 7982 |
$as_echo_n "(cached) " >&6 |
| 7983 |
else |
| 7984 |
if test -n "$RANLIB"; then |
| 7985 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7986 |
else |
| 7987 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7988 |
for as_dir in $PATH |
| 7989 |
do |
| 7990 |
IFS=$as_save_IFS |
| 7991 |
test -z "$as_dir" && as_dir=. |
| 7992 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7993 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7994 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 7995 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7996 |
break 2 |
| 7997 |
fi |
| 7998 |
done |
| 7999 |
done |
| 8000 |
IFS=$as_save_IFS |
| 8001 |
|
| 8002 |
fi |
| 8003 |
fi |
| 8004 |
RANLIB=$ac_cv_prog_RANLIB |
| 8005 |
if test -n "$RANLIB"; then |
| 8006 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 8007 |
$as_echo "$RANLIB" >&6; } |
| 8008 |
else |
| 8009 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8010 |
$as_echo "no" >&6; } |
| 8011 |
fi |
| 8012 |
|
| 8013 |
|
| 8014 |
fi |
| 8015 |
if test -z "$ac_cv_prog_RANLIB"; then |
| 8016 |
ac_ct_RANLIB=$RANLIB |
| 8017 |
# Extract the first word of "ranlib", so it can be a program name with args. |
| 8018 |
set dummy ranlib; ac_word=$2 |
| 8019 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8020 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 8021 |
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 8022 |
$as_echo_n "(cached) " >&6 |
| 8023 |
else |
| 8024 |
if test -n "$ac_ct_RANLIB"; then |
| 8025 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 8026 |
else |
| 8027 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8028 |
for as_dir in $PATH |
| 8029 |
do |
| 8030 |
IFS=$as_save_IFS |
| 8031 |
test -z "$as_dir" && as_dir=. |
| 8032 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8033 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8034 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 8035 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8036 |
break 2 |
| 8037 |
fi |
| 8038 |
done |
| 8039 |
done |
| 8040 |
IFS=$as_save_IFS |
| 8041 |
|
| 8042 |
fi |
| 8043 |
fi |
| 8044 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 8045 |
if test -n "$ac_ct_RANLIB"; then |
| 8046 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 8047 |
$as_echo "$ac_ct_RANLIB" >&6; } |
| 8048 |
else |
| 8049 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8050 |
$as_echo "no" >&6; } |
| 8051 |
fi |
| 8052 |
|
| 8053 |
if test "x$ac_ct_RANLIB" = x; then |
| 8054 |
RANLIB=":" |
| 8055 |
else |
| 8056 |
case $cross_compiling:$ac_tool_warned in |
| 8057 |
yes:) |
| 8058 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8059 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8060 |
ac_tool_warned=yes ;; |
| 8061 |
esac |
| 8062 |
RANLIB=$ac_ct_RANLIB |
| 8063 |
fi |
| 8064 |
else |
| 8065 |
RANLIB="$ac_cv_prog_RANLIB" |
| 8066 |
fi |
| 8067 |
|
| 8068 |
test -z "$RANLIB" && RANLIB=: |
| 8069 |
|
| 8070 |
|
| 8071 |
|
| 8072 |
|
| 8073 |
|
| 8074 |
|
| 8075 |
# Determine commands to create old-style static archives. |
| 8076 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 8077 |
old_postinstall_cmds='chmod 644 $oldlib' |
| 8078 |
old_postuninstall_cmds= |
| 8079 |
|
| 8080 |
if test -n "$RANLIB"; then |
| 8081 |
case $host_os in |
| 8082 |
bitrig* | openbsd*) |
| 8083 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
| 8084 |
;; |
| 8085 |
*) |
| 8086 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
| 8087 |
;; |
| 8088 |
esac |
| 8089 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
| 8090 |
fi |
| 8091 |
|
| 8092 |
case $host_os in |
| 8093 |
darwin*) |
| 8094 |
lock_old_archive_extraction=yes ;; |
| 8095 |
*) |
| 8096 |
lock_old_archive_extraction=no ;; |
| 8097 |
esac |
| 8098 |
|
| 8099 |
|
| 8100 |
|
| 8101 |
|
| 8102 |
|
| 8103 |
|
| 8104 |
|
| 8105 |
|
| 8106 |
|
| 8107 |
|
| 8108 |
|
| 8109 |
|
| 8110 |
|
| 8111 |
|
| 8112 |
|
| 8113 |
|
| 8114 |
|
| 8115 |
|
| 8116 |
|
| 8117 |
|
| 8118 |
|
| 8119 |
|
| 8120 |
|
| 8121 |
|
| 8122 |
|
| 8123 |
|
| 8124 |
|
| 8125 |
|
| 8126 |
|
| 8127 |
|
| 8128 |
|
| 8129 |
|
| 8130 |
|
| 8131 |
|
| 8132 |
|
| 8133 |
|
| 8134 |
|
| 8135 |
|
| 8136 |
|
| 8137 |
# If no C compiler was specified, use CC. |
| 8138 |
LTCC=${LTCC-"$CC"} |
| 8139 |
|
| 8140 |
# If no C compiler flags were specified, use CFLAGS. |
| 8141 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8142 |
|
| 8143 |
# Allow CC to be a program name with arguments. |
| 8144 |
compiler=$CC |
| 8145 |
|
| 8146 |
|
| 8147 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
| 8148 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 8149 |
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| 8150 |
if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
| 8151 |
$as_echo_n "(cached) " >&6 |
| 8152 |
else |
| 8153 |
|
| 8154 |
# These are sane defaults that work on at least a few old systems. |
| 8155 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 8156 |
|
| 8157 |
# Character class describing NM global symbol codes. |
| 8158 |
symcode='[BCDEGRST]' |
| 8159 |
|
| 8160 |
# Regexp to match symbols that can be accessed directly from C. |
| 8161 |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 8162 |
|
| 8163 |
# Define system-specific variables. |
| 8164 |
case $host_os in |
| 8165 |
aix*) |
| 8166 |
symcode='[BCDT]' |
| 8167 |
;; |
| 8168 |
cygwin* | mingw* | pw32* | cegcc*) |
| 8169 |
symcode='[ABCDGISTW]' |
| 8170 |
;; |
| 8171 |
hpux*) |
| 8172 |
if test ia64 = "$host_cpu"; then |
| 8173 |
symcode='[ABCDEGRST]' |
| 8174 |
fi |
| 8175 |
;; |
| 8176 |
irix* | nonstopux*) |
| 8177 |
symcode='[BCDEGRST]' |
| 8178 |
;; |
| 8179 |
osf*) |
| 8180 |
symcode='[BCDEGQRST]' |
| 8181 |
;; |
| 8182 |
solaris*) |
| 8183 |
symcode='[BDRT]' |
| 8184 |
;; |
| 8185 |
sco3.2v5*) |
| 8186 |
symcode='[DT]' |
| 8187 |
;; |
| 8188 |
sysv4.2uw2*) |
| 8189 |
symcode='[DT]' |
| 8190 |
;; |
| 8191 |
sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 8192 |
symcode='[ABDT]' |
| 8193 |
;; |
| 8194 |
sysv4) |
| 8195 |
symcode='[DFNSTU]' |
| 8196 |
;; |
| 8197 |
esac |
| 8198 |
|
| 8199 |
# If we're using GNU nm, then use its standard symbol codes. |
| 8200 |
case `$NM -V 2>&1` in |
| 8201 |
*GNU* | *'with BFD'*) |
| 8202 |
symcode='[ABCDGIRSTW]' ;; |
| 8203 |
esac |
| 8204 |
|
| 8205 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 8206 |
# Gets list of data symbols to import. |
| 8207 |
lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" |
| 8208 |
# Adjust the below global symbol transforms to fixup imported variables. |
| 8209 |
lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
| 8210 |
lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
| 8211 |
lt_c_name_lib_hook="\ |
| 8212 |
-e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ |
| 8213 |
-e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" |
| 8214 |
else |
| 8215 |
# Disable hooks by default. |
| 8216 |
lt_cv_sys_global_symbol_to_import= |
| 8217 |
lt_cdecl_hook= |
| 8218 |
lt_c_name_hook= |
| 8219 |
lt_c_name_lib_hook= |
| 8220 |
fi |
| 8221 |
|
| 8222 |
# Transform an extracted symbol line into a proper C declaration. |
| 8223 |
# Some systems (esp. on ia64) link data and code symbols differently, |
| 8224 |
# so use this general approach. |
| 8225 |
lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
| 8226 |
$lt_cdecl_hook\ |
| 8227 |
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
| 8228 |
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
| 8229 |
|
| 8230 |
# Transform an extracted symbol line into symbol name and symbol address |
| 8231 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
| 8232 |
$lt_c_name_hook\ |
| 8233 |
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 8234 |
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
| 8235 |
|
| 8236 |
# Transform an extracted symbol line into symbol name with lib prefix and |
| 8237 |
# symbol address. |
| 8238 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ |
| 8239 |
$lt_c_name_lib_hook\ |
| 8240 |
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 8241 |
" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
| 8242 |
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" |
| 8243 |
|
| 8244 |
# Handle CRLF in mingw tool chain |
| 8245 |
opt_cr= |
| 8246 |
case $build_os in |
| 8247 |
mingw*) |
| 8248 |
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 8249 |
;; |
| 8250 |
esac |
| 8251 |
|
| 8252 |
# Try without a prefix underscore, then with it. |
| 8253 |
for ac_symprfx in "" "_"; do |
| 8254 |
|
| 8255 |
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 8256 |
symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 8257 |
|
| 8258 |
# Write the raw and C identifiers. |
| 8259 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 8260 |
# Fake it for dumpbin and say T for any non-static function, |
| 8261 |
# D for any global variable and I for any imported variable. |
| 8262 |
# Also find C++ and __fastcall symbols from MSVC++, |
| 8263 |
# which start with @ or ?. |
| 8264 |
lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 8265 |
" {last_section=section; section=\$ 3};"\ |
| 8266 |
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| 8267 |
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 8268 |
" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
| 8269 |
" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ |
| 8270 |
" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
| 8271 |
" \$ 0!~/External *\|/{next};"\ |
| 8272 |
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 8273 |
" {if(hide[section]) next};"\ |
| 8274 |
" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
| 8275 |
" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ |
| 8276 |
" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ |
| 8277 |
" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
| 8278 |
" ' prfx=^$ac_symprfx" |
| 8279 |
else |
| 8280 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 8281 |
fi |
| 8282 |
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
| 8283 |
|
| 8284 |
# Check to see that the pipe works correctly. |
| 8285 |
pipe_works=no |
| 8286 |
|
| 8287 |
rm -f conftest* |
| 8288 |
cat > conftest.$ac_ext <<_LT_EOF |
| 8289 |
#ifdef __cplusplus |
| 8290 |
extern "C" { |
| 8291 |
#endif |
| 8292 |
char nm_test_var; |
| 8293 |
void nm_test_func(void); |
| 8294 |
void nm_test_func(void){} |
| 8295 |
#ifdef __cplusplus |
| 8296 |
} |
| 8297 |
#endif |
| 8298 |
int main(){nm_test_var='a';nm_test_func();return(0);} |
| 8299 |
_LT_EOF |
| 8300 |
|
| 8301 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8302 |
(eval $ac_compile) 2>&5 |
| 8303 |
ac_status=$? |
| 8304 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8305 |
test $ac_status = 0; }; then |
| 8306 |
# Now try to grab the symbols. |
| 8307 |
nlist=conftest.nm |
| 8308 |
$ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 |
| 8309 |
if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then |
| 8310 |
# Try sorting and uniquifying the output. |
| 8311 |
if sort "$nlist" | uniq > "$nlist"T; then |
| 8312 |
mv -f "$nlist"T "$nlist" |
| 8313 |
else |
| 8314 |
rm -f "$nlist"T |
| 8315 |
fi |
| 8316 |
|
| 8317 |
# Make sure that we snagged all the symbols we need. |
| 8318 |
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 8319 |
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 8320 |
cat <<_LT_EOF > conftest.$ac_ext |
| 8321 |
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 8322 |
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
| 8323 |
/* DATA imports from DLLs on WIN32 can't be const, because runtime |
| 8324 |
relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 8325 |
# define LT_DLSYM_CONST |
| 8326 |
#elif defined __osf__ |
| 8327 |
/* This system does not cope well with relocations in const data. */ |
| 8328 |
# define LT_DLSYM_CONST |
| 8329 |
#else |
| 8330 |
# define LT_DLSYM_CONST const |
| 8331 |
#endif |
| 8332 |
|
| 8333 |
#ifdef __cplusplus |
| 8334 |
extern "C" { |
| 8335 |
#endif |
| 8336 |
|
| 8337 |
_LT_EOF |
| 8338 |
# Now generate the symbol file. |
| 8339 |
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 8340 |
|
| 8341 |
cat <<_LT_EOF >> conftest.$ac_ext |
| 8342 |
|
| 8343 |
/* The mapping between symbol names and symbols. */ |
| 8344 |
LT_DLSYM_CONST struct { |
| 8345 |
const char *name; |
| 8346 |
void *address; |
| 8347 |
} |
| 8348 |
lt__PROGRAM__LTX_preloaded_symbols[] = |
| 8349 |
{ |
| 8350 |
{ "@PROGRAM@", (void *) 0 }, |
| 8351 |
_LT_EOF |
| 8352 |
$SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 8353 |
cat <<\_LT_EOF >> conftest.$ac_ext |
| 8354 |
{0, (void *) 0} |
| 8355 |
}; |
| 8356 |
|
| 8357 |
/* This works around a problem in FreeBSD linker */ |
| 8358 |
#ifdef FREEBSD_WORKAROUND |
| 8359 |
static const void *lt_preloaded_setup() { |
| 8360 |
return lt__PROGRAM__LTX_preloaded_symbols; |
| 8361 |
} |
| 8362 |
#endif |
| 8363 |
|
| 8364 |
#ifdef __cplusplus |
| 8365 |
} |
| 8366 |
#endif |
| 8367 |
_LT_EOF |
| 8368 |
# Now try linking the two files. |
| 8369 |
mv conftest.$ac_objext conftstm.$ac_objext |
| 8370 |
lt_globsym_save_LIBS=$LIBS |
| 8371 |
lt_globsym_save_CFLAGS=$CFLAGS |
| 8372 |
LIBS=conftstm.$ac_objext |
| 8373 |
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 8374 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 8375 |
(eval $ac_link) 2>&5 |
| 8376 |
ac_status=$? |
| 8377 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8378 |
test $ac_status = 0; } && test -s conftest$ac_exeext; then |
| 8379 |
pipe_works=yes |
| 8380 |
fi |
| 8381 |
LIBS=$lt_globsym_save_LIBS |
| 8382 |
CFLAGS=$lt_globsym_save_CFLAGS |
| 8383 |
else |
| 8384 |
echo "cannot find nm_test_func in $nlist" >&5 |
| 8385 |
fi |
| 8386 |
else |
| 8387 |
echo "cannot find nm_test_var in $nlist" >&5 |
| 8388 |
fi |
| 8389 |
else |
| 8390 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 8391 |
fi |
| 8392 |
else |
| 8393 |
echo "$progname: failed program was:" >&5 |
| 8394 |
cat conftest.$ac_ext >&5 |
| 8395 |
fi |
| 8396 |
rm -rf conftest* conftst* |
| 8397 |
|
| 8398 |
# Do not use the global_symbol_pipe unless it works. |
| 8399 |
if test yes = "$pipe_works"; then |
| 8400 |
break |
| 8401 |
else |
| 8402 |
lt_cv_sys_global_symbol_pipe= |
| 8403 |
fi |
| 8404 |
done |
| 8405 |
|
| 8406 |
fi |
| 8407 |
|
| 8408 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 8409 |
lt_cv_sys_global_symbol_to_cdecl= |
| 8410 |
fi |
| 8411 |
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 8412 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 8413 |
$as_echo "failed" >&6; } |
| 8414 |
else |
| 8415 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 8416 |
$as_echo "ok" >&6; } |
| 8417 |
fi |
| 8418 |
|
| 8419 |
# Response file support. |
| 8420 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 8421 |
nm_file_list_spec='@' |
| 8422 |
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 8423 |
nm_file_list_spec='@' |
| 8424 |
fi |
| 8425 |
|
| 8426 |
|
| 8427 |
|
| 8428 |
|
| 8429 |
|
| 8430 |
|
| 8431 |
|
| 8432 |
|
| 8433 |
|
| 8434 |
|
| 8435 |
|
| 8436 |
|
| 8437 |
|
| 8438 |
|
| 8439 |
|
| 8440 |
|
| 8441 |
|
| 8442 |
|
| 8443 |
|
| 8444 |
|
| 8445 |
|
| 8446 |
|
| 8447 |
|
| 8448 |
|
| 8449 |
|
| 8450 |
|
| 8451 |
|
| 8452 |
|
| 8453 |
|
| 8454 |
|
| 8455 |
|
| 8456 |
|
| 8457 |
|
| 8458 |
|
| 8459 |
|
| 8460 |
|
| 8461 |
|
| 8462 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 8463 |
$as_echo_n "checking for sysroot... " >&6; } |
| 8464 |
|
| 8465 |
# Check whether --with-sysroot was given. |
| 8466 |
if test "${with_sysroot+set}" = set; then : |
| 8467 |
withval=$with_sysroot; |
| 8468 |
else |
| 8469 |
with_sysroot=no |
| 8470 |
fi |
| 8471 |
|
| 8472 |
|
| 8473 |
lt_sysroot= |
| 8474 |
case $with_sysroot in #( |
| 8475 |
yes) |
| 8476 |
if test yes = "$GCC"; then |
| 8477 |
lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 8478 |
fi |
| 8479 |
;; #( |
| 8480 |
/*) |
| 8481 |
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 8482 |
;; #( |
| 8483 |
no|'') |
| 8484 |
;; #( |
| 8485 |
*) |
| 8486 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
| 8487 |
$as_echo "$with_sysroot" >&6; } |
| 8488 |
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 8489 |
;; |
| 8490 |
esac |
| 8491 |
|
| 8492 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 8493 |
$as_echo "${lt_sysroot:-no}" >&6; } |
| 8494 |
|
| 8495 |
|
| 8496 |
|
| 8497 |
|
| 8498 |
|
| 8499 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
| 8500 |
$as_echo_n "checking for a working dd... " >&6; } |
| 8501 |
if ${ac_cv_path_lt_DD+:} false; then : |
| 8502 |
$as_echo_n "(cached) " >&6 |
| 8503 |
else |
| 8504 |
printf 0123456789abcdef0123456789abcdef >conftest.i |
| 8505 |
cat conftest.i conftest.i >conftest2.i |
| 8506 |
: ${lt_DD:=$DD} |
| 8507 |
if test -z "$lt_DD"; then |
| 8508 |
ac_path_lt_DD_found=false |
| 8509 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 8510 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8511 |
for as_dir in $PATH |
| 8512 |
do |
| 8513 |
IFS=$as_save_IFS |
| 8514 |
test -z "$as_dir" && as_dir=. |
| 8515 |
for ac_prog in dd; do |
| 8516 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8517 |
ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" |
| 8518 |
as_fn_executable_p "$ac_path_lt_DD" || continue |
| 8519 |
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 8520 |
cmp -s conftest.i conftest.out \ |
| 8521 |
&& ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: |
| 8522 |
fi |
| 8523 |
$ac_path_lt_DD_found && break 3 |
| 8524 |
done |
| 8525 |
done |
| 8526 |
done |
| 8527 |
IFS=$as_save_IFS |
| 8528 |
if test -z "$ac_cv_path_lt_DD"; then |
| 8529 |
: |
| 8530 |
fi |
| 8531 |
else |
| 8532 |
ac_cv_path_lt_DD=$lt_DD |
| 8533 |
fi |
| 8534 |
|
| 8535 |
rm -f conftest.i conftest2.i conftest.out |
| 8536 |
fi |
| 8537 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 |
| 8538 |
$as_echo "$ac_cv_path_lt_DD" >&6; } |
| 8539 |
|
| 8540 |
|
| 8541 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 |
| 8542 |
$as_echo_n "checking how to truncate binary pipes... " >&6; } |
| 8543 |
if ${lt_cv_truncate_bin+:} false; then : |
| 8544 |
$as_echo_n "(cached) " >&6 |
| 8545 |
else |
| 8546 |
printf 0123456789abcdef0123456789abcdef >conftest.i |
| 8547 |
cat conftest.i conftest.i >conftest2.i |
| 8548 |
lt_cv_truncate_bin= |
| 8549 |
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 8550 |
cmp -s conftest.i conftest.out \ |
| 8551 |
&& lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" |
| 8552 |
fi |
| 8553 |
rm -f conftest.i conftest2.i conftest.out |
| 8554 |
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" |
| 8555 |
fi |
| 8556 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 |
| 8557 |
$as_echo "$lt_cv_truncate_bin" >&6; } |
| 8558 |
|
| 8559 |
|
| 8560 |
|
| 8561 |
|
| 8562 |
|
| 8563 |
|
| 8564 |
|
| 8565 |
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 8566 |
func_cc_basename () |
| 8567 |
{ |
| 8568 |
for cc_temp in $*""; do |
| 8569 |
case $cc_temp in |
| 8570 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 8571 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 8572 |
\-*) ;; |
| 8573 |
*) break;; |
| 8574 |
esac |
| 8575 |
done |
| 8576 |
func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 8577 |
} |
| 8578 |
|
| 8579 |
# Check whether --enable-libtool-lock was given. |
| 8580 |
if test "${enable_libtool_lock+set}" = set; then : |
| 8581 |
enableval=$enable_libtool_lock; |
| 8582 |
fi |
| 8583 |
|
| 8584 |
test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
| 8585 |
|
| 8586 |
# Some flags need to be propagated to the compiler or linker for good |
| 8587 |
# libtool support. |
| 8588 |
case $host in |
| 8589 |
ia64-*-hpux*) |
| 8590 |
# Find out what ABI is being produced by ac_compile, and set mode |
| 8591 |
# options accordingly. |
| 8592 |
echo 'int i;' > conftest.$ac_ext |
| 8593 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8594 |
(eval $ac_compile) 2>&5 |
| 8595 |
ac_status=$? |
| 8596 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8597 |
test $ac_status = 0; }; then |
| 8598 |
case `/usr/bin/file conftest.$ac_objext` in |
| 8599 |
*ELF-32*) |
| 8600 |
HPUX_IA64_MODE=32 |
| 8601 |
;; |
| 8602 |
*ELF-64*) |
| 8603 |
HPUX_IA64_MODE=64 |
| 8604 |
;; |
| 8605 |
esac |
| 8606 |
fi |
| 8607 |
rm -rf conftest* |
| 8608 |
;; |
| 8609 |
*-*-irix6*) |
| 8610 |
# Find out what ABI is being produced by ac_compile, and set linker |
| 8611 |
# options accordingly. |
| 8612 |
echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 8613 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8614 |
(eval $ac_compile) 2>&5 |
| 8615 |
ac_status=$? |
| 8616 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8617 |
test $ac_status = 0; }; then |
| 8618 |
if test yes = "$lt_cv_prog_gnu_ld"; then |
| 8619 |
case `/usr/bin/file conftest.$ac_objext` in |
| 8620 |
*32-bit*) |
| 8621 |
LD="${LD-ld} -melf32bsmip" |
| 8622 |
;; |
| 8623 |
*N32*) |
| 8624 |
LD="${LD-ld} -melf32bmipn32" |
| 8625 |
;; |
| 8626 |
*64-bit*) |
| 8627 |
LD="${LD-ld} -melf64bmip" |
| 8628 |
;; |
| 8629 |
esac |
| 8630 |
else |
| 8631 |
case `/usr/bin/file conftest.$ac_objext` in |
| 8632 |
*32-bit*) |
| 8633 |
LD="${LD-ld} -32" |
| 8634 |
;; |
| 8635 |
*N32*) |
| 8636 |
LD="${LD-ld} -n32" |
| 8637 |
;; |
| 8638 |
*64-bit*) |
| 8639 |
LD="${LD-ld} -64" |
| 8640 |
;; |
| 8641 |
esac |
| 8642 |
fi |
| 8643 |
fi |
| 8644 |
rm -rf conftest* |
| 8645 |
;; |
| 8646 |
|
| 8647 |
mips64*-*linux*) |
| 8648 |
# Find out what ABI is being produced by ac_compile, and set linker |
| 8649 |
# options accordingly. |
| 8650 |
echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 8651 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8652 |
(eval $ac_compile) 2>&5 |
| 8653 |
ac_status=$? |
| 8654 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8655 |
test $ac_status = 0; }; then |
| 8656 |
emul=elf |
| 8657 |
case `/usr/bin/file conftest.$ac_objext` in |
| 8658 |
*32-bit*) |
| 8659 |
emul="${emul}32" |
| 8660 |
;; |
| 8661 |
*64-bit*) |
| 8662 |
emul="${emul}64" |
| 8663 |
;; |
| 8664 |
esac |
| 8665 |
case `/usr/bin/file conftest.$ac_objext` in |
| 8666 |
*MSB*) |
| 8667 |
emul="${emul}btsmip" |
| 8668 |
;; |
| 8669 |
*LSB*) |
| 8670 |
emul="${emul}ltsmip" |
| 8671 |
;; |
| 8672 |
esac |
| 8673 |
case `/usr/bin/file conftest.$ac_objext` in |
| 8674 |
*N32*) |
| 8675 |
emul="${emul}n32" |
| 8676 |
;; |
| 8677 |
esac |
| 8678 |
LD="${LD-ld} -m $emul" |
| 8679 |
fi |
| 8680 |
rm -rf conftest* |
| 8681 |
;; |
| 8682 |
|
| 8683 |
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
| 8684 |
s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 8685 |
# Find out what ABI is being produced by ac_compile, and set linker |
| 8686 |
# options accordingly. Note that the listed cases only cover the |
| 8687 |
# situations where additional linker options are needed (such as when |
| 8688 |
# doing 32-bit compilation for a host where ld defaults to 64-bit, or |
| 8689 |
# vice versa); the common cases where no linker options are needed do |
| 8690 |
# not appear in the list. |
| 8691 |
echo 'int i;' > conftest.$ac_ext |
| 8692 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8693 |
(eval $ac_compile) 2>&5 |
| 8694 |
ac_status=$? |
| 8695 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8696 |
test $ac_status = 0; }; then |
| 8697 |
case `/usr/bin/file conftest.o` in |
| 8698 |
*32-bit*) |
| 8699 |
case $host in |
| 8700 |
x86_64-*kfreebsd*-gnu) |
| 8701 |
LD="${LD-ld} -m elf_i386_fbsd" |
| 8702 |
;; |
| 8703 |
x86_64-*linux*) |
| 8704 |
case `/usr/bin/file conftest.o` in |
| 8705 |
*x86-64*) |
| 8706 |
LD="${LD-ld} -m elf32_x86_64" |
| 8707 |
;; |
| 8708 |
*) |
| 8709 |
LD="${LD-ld} -m elf_i386" |
| 8710 |
;; |
| 8711 |
esac |
| 8712 |
;; |
| 8713 |
powerpc64le-*linux*) |
| 8714 |
LD="${LD-ld} -m elf32lppclinux" |
| 8715 |
;; |
| 8716 |
powerpc64-*linux*) |
| 8717 |
LD="${LD-ld} -m elf32ppclinux" |
| 8718 |
;; |
| 8719 |
s390x-*linux*) |
| 8720 |
LD="${LD-ld} -m elf_s390" |
| 8721 |
;; |
| 8722 |
sparc64-*linux*) |
| 8723 |
LD="${LD-ld} -m elf32_sparc" |
| 8724 |
;; |
| 8725 |
esac |
| 8726 |
;; |
| 8727 |
*64-bit*) |
| 8728 |
case $host in |
| 8729 |
x86_64-*kfreebsd*-gnu) |
| 8730 |
LD="${LD-ld} -m elf_x86_64_fbsd" |
| 8731 |
;; |
| 8732 |
x86_64-*linux*) |
| 8733 |
LD="${LD-ld} -m elf_x86_64" |
| 8734 |
;; |
| 8735 |
powerpcle-*linux*) |
| 8736 |
LD="${LD-ld} -m elf64lppc" |
| 8737 |
;; |
| 8738 |
powerpc-*linux*) |
| 8739 |
LD="${LD-ld} -m elf64ppc" |
| 8740 |
;; |
| 8741 |
s390*-*linux*|s390*-*tpf*) |
| 8742 |
LD="${LD-ld} -m elf64_s390" |
| 8743 |
;; |
| 8744 |
sparc*-*linux*) |
| 8745 |
LD="${LD-ld} -m elf64_sparc" |
| 8746 |
;; |
| 8747 |
esac |
| 8748 |
;; |
| 8749 |
esac |
| 8750 |
fi |
| 8751 |
rm -rf conftest* |
| 8752 |
;; |
| 8753 |
|
| 8754 |
*-*-sco3.2v5*) |
| 8755 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 8756 |
SAVE_CFLAGS=$CFLAGS |
| 8757 |
CFLAGS="$CFLAGS -belf" |
| 8758 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 8759 |
$as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 8760 |
if ${lt_cv_cc_needs_belf+:} false; then : |
| 8761 |
$as_echo_n "(cached) " >&6 |
| 8762 |
else |
| 8763 |
ac_ext=c |
| 8764 |
ac_cpp='$CPP $CPPFLAGS' |
| 8765 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8766 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8767 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8768 |
|
| 8769 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8770 |
/* end confdefs.h. */ |
| 8771 |
|
| 8772 |
int |
| 8773 |
main () |
| 8774 |
{ |
| 8775 |
|
| 8776 |
; |
| 8777 |
return 0; |
| 8778 |
} |
| 8779 |
_ACEOF |
| 8780 |
if ac_fn_c_try_link "$LINENO"; then : |
| 8781 |
lt_cv_cc_needs_belf=yes |
| 8782 |
else |
| 8783 |
lt_cv_cc_needs_belf=no |
| 8784 |
fi |
| 8785 |
rm -f core conftest.err conftest.$ac_objext \ |
| 8786 |
conftest$ac_exeext conftest.$ac_ext |
| 8787 |
ac_ext=c |
| 8788 |
ac_cpp='$CPP $CPPFLAGS' |
| 8789 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8790 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8791 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8792 |
|
| 8793 |
fi |
| 8794 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 8795 |
$as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 8796 |
if test yes != "$lt_cv_cc_needs_belf"; then |
| 8797 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 8798 |
CFLAGS=$SAVE_CFLAGS |
| 8799 |
fi |
| 8800 |
;; |
| 8801 |
*-*solaris*) |
| 8802 |
# Find out what ABI is being produced by ac_compile, and set linker |
| 8803 |
# options accordingly. |
| 8804 |
echo 'int i;' > conftest.$ac_ext |
| 8805 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8806 |
(eval $ac_compile) 2>&5 |
| 8807 |
ac_status=$? |
| 8808 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8809 |
test $ac_status = 0; }; then |
| 8810 |
case `/usr/bin/file conftest.o` in |
| 8811 |
*64-bit*) |
| 8812 |
case $lt_cv_prog_gnu_ld in |
| 8813 |
yes*) |
| 8814 |
case $host in |
| 8815 |
i?86-*-solaris*|x86_64-*-solaris*) |
| 8816 |
LD="${LD-ld} -m elf_x86_64" |
| 8817 |
;; |
| 8818 |
sparc*-*-solaris*) |
| 8819 |
LD="${LD-ld} -m elf64_sparc" |
| 8820 |
;; |
| 8821 |
esac |
| 8822 |
# GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 8823 |
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 8824 |
LD=${LD-ld}_sol2 |
| 8825 |
fi |
| 8826 |
;; |
| 8827 |
*) |
| 8828 |
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 8829 |
LD="${LD-ld} -64" |
| 8830 |
fi |
| 8831 |
;; |
| 8832 |
esac |
| 8833 |
;; |
| 8834 |
esac |
| 8835 |
fi |
| 8836 |
rm -rf conftest* |
| 8837 |
;; |
| 8838 |
esac |
| 8839 |
|
| 8840 |
need_locks=$enable_libtool_lock |
| 8841 |
|
| 8842 |
if test -n "$ac_tool_prefix"; then |
| 8843 |
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 8844 |
set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 8845 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8846 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 8847 |
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
| 8848 |
$as_echo_n "(cached) " >&6 |
| 8849 |
else |
| 8850 |
if test -n "$MANIFEST_TOOL"; then |
| 8851 |
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 8852 |
else |
| 8853 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8854 |
for as_dir in $PATH |
| 8855 |
do |
| 8856 |
IFS=$as_save_IFS |
| 8857 |
test -z "$as_dir" && as_dir=. |
| 8858 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8859 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8860 |
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 8861 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8862 |
break 2 |
| 8863 |
fi |
| 8864 |
done |
| 8865 |
done |
| 8866 |
IFS=$as_save_IFS |
| 8867 |
|
| 8868 |
fi |
| 8869 |
fi |
| 8870 |
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 8871 |
if test -n "$MANIFEST_TOOL"; then |
| 8872 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 8873 |
$as_echo "$MANIFEST_TOOL" >&6; } |
| 8874 |
else |
| 8875 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8876 |
$as_echo "no" >&6; } |
| 8877 |
fi |
| 8878 |
|
| 8879 |
|
| 8880 |
fi |
| 8881 |
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 8882 |
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 8883 |
# Extract the first word of "mt", so it can be a program name with args. |
| 8884 |
set dummy mt; ac_word=$2 |
| 8885 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8886 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 8887 |
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
| 8888 |
$as_echo_n "(cached) " >&6 |
| 8889 |
else |
| 8890 |
if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 8891 |
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 8892 |
else |
| 8893 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8894 |
for as_dir in $PATH |
| 8895 |
do |
| 8896 |
IFS=$as_save_IFS |
| 8897 |
test -z "$as_dir" && as_dir=. |
| 8898 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8899 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8900 |
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 8901 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8902 |
break 2 |
| 8903 |
fi |
| 8904 |
done |
| 8905 |
done |
| 8906 |
IFS=$as_save_IFS |
| 8907 |
|
| 8908 |
fi |
| 8909 |
fi |
| 8910 |
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 8911 |
if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 8912 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 8913 |
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
| 8914 |
else |
| 8915 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8916 |
$as_echo "no" >&6; } |
| 8917 |
fi |
| 8918 |
|
| 8919 |
if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 8920 |
MANIFEST_TOOL=":" |
| 8921 |
else |
| 8922 |
case $cross_compiling:$ac_tool_warned in |
| 8923 |
yes:) |
| 8924 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8925 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8926 |
ac_tool_warned=yes ;; |
| 8927 |
esac |
| 8928 |
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 8929 |
fi |
| 8930 |
else |
| 8931 |
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 8932 |
fi |
| 8933 |
|
| 8934 |
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 8935 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 8936 |
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 8937 |
if ${lt_cv_path_mainfest_tool+:} false; then : |
| 8938 |
$as_echo_n "(cached) " >&6 |
| 8939 |
else |
| 8940 |
lt_cv_path_mainfest_tool=no |
| 8941 |
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 8942 |
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 8943 |
cat conftest.err >&5 |
| 8944 |
if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 8945 |
lt_cv_path_mainfest_tool=yes |
| 8946 |
fi |
| 8947 |
rm -f conftest* |
| 8948 |
fi |
| 8949 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 8950 |
$as_echo "$lt_cv_path_mainfest_tool" >&6; } |
| 8951 |
if test yes != "$lt_cv_path_mainfest_tool"; then |
| 8952 |
MANIFEST_TOOL=: |
| 8953 |
fi |
| 8954 |
|
| 8955 |
|
| 8956 |
|
| 8957 |
|
| 8958 |
|
| 8959 |
|
| 8960 |
case $host_os in |
| 8961 |
rhapsody* | darwin*) |
| 8962 |
if test -n "$ac_tool_prefix"; then |
| 8963 |
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 8964 |
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 8965 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8966 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 8967 |
if ${ac_cv_prog_DSYMUTIL+:} false; then : |
| 8968 |
$as_echo_n "(cached) " >&6 |
| 8969 |
else |
| 8970 |
if test -n "$DSYMUTIL"; then |
| 8971 |
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 8972 |
else |
| 8973 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8974 |
for as_dir in $PATH |
| 8975 |
do |
| 8976 |
IFS=$as_save_IFS |
| 8977 |
test -z "$as_dir" && as_dir=. |
| 8978 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8979 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8980 |
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 8981 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8982 |
break 2 |
| 8983 |
fi |
| 8984 |
done |
| 8985 |
done |
| 8986 |
IFS=$as_save_IFS |
| 8987 |
|
| 8988 |
fi |
| 8989 |
fi |
| 8990 |
DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 8991 |
if test -n "$DSYMUTIL"; then |
| 8992 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 8993 |
$as_echo "$DSYMUTIL" >&6; } |
| 8994 |
else |
| 8995 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8996 |
$as_echo "no" >&6; } |
| 8997 |
fi |
| 8998 |
|
| 8999 |
|
| 9000 |
fi |
| 9001 |
if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 9002 |
ac_ct_DSYMUTIL=$DSYMUTIL |
| 9003 |
# Extract the first word of "dsymutil", so it can be a program name with args. |
| 9004 |
set dummy dsymutil; ac_word=$2 |
| 9005 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9006 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 9007 |
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
| 9008 |
$as_echo_n "(cached) " >&6 |
| 9009 |
else |
| 9010 |
if test -n "$ac_ct_DSYMUTIL"; then |
| 9011 |
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 9012 |
else |
| 9013 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9014 |
for as_dir in $PATH |
| 9015 |
do |
| 9016 |
IFS=$as_save_IFS |
| 9017 |
test -z "$as_dir" && as_dir=. |
| 9018 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9019 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9020 |
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 9021 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9022 |
break 2 |
| 9023 |
fi |
| 9024 |
done |
| 9025 |
done |
| 9026 |
IFS=$as_save_IFS |
| 9027 |
|
| 9028 |
fi |
| 9029 |
fi |
| 9030 |
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 9031 |
if test -n "$ac_ct_DSYMUTIL"; then |
| 9032 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 9033 |
$as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 9034 |
else |
| 9035 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9036 |
$as_echo "no" >&6; } |
| 9037 |
fi |
| 9038 |
|
| 9039 |
if test "x$ac_ct_DSYMUTIL" = x; then |
| 9040 |
DSYMUTIL=":" |
| 9041 |
else |
| 9042 |
case $cross_compiling:$ac_tool_warned in |
| 9043 |
yes:) |
| 9044 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9045 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9046 |
ac_tool_warned=yes ;; |
| 9047 |
esac |
| 9048 |
DSYMUTIL=$ac_ct_DSYMUTIL |
| 9049 |
fi |
| 9050 |
else |
| 9051 |
DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 9052 |
fi |
| 9053 |
|
| 9054 |
if test -n "$ac_tool_prefix"; then |
| 9055 |
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 9056 |
set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 9057 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9058 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 9059 |
if ${ac_cv_prog_NMEDIT+:} false; then : |
| 9060 |
$as_echo_n "(cached) " >&6 |
| 9061 |
else |
| 9062 |
if test -n "$NMEDIT"; then |
| 9063 |
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 9064 |
else |
| 9065 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9066 |
for as_dir in $PATH |
| 9067 |
do |
| 9068 |
IFS=$as_save_IFS |
| 9069 |
test -z "$as_dir" && as_dir=. |
| 9070 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9071 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9072 |
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 9073 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9074 |
break 2 |
| 9075 |
fi |
| 9076 |
done |
| 9077 |
done |
| 9078 |
IFS=$as_save_IFS |
| 9079 |
|
| 9080 |
fi |
| 9081 |
fi |
| 9082 |
NMEDIT=$ac_cv_prog_NMEDIT |
| 9083 |
if test -n "$NMEDIT"; then |
| 9084 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 9085 |
$as_echo "$NMEDIT" >&6; } |
| 9086 |
else |
| 9087 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9088 |
$as_echo "no" >&6; } |
| 9089 |
fi |
| 9090 |
|
| 9091 |
|
| 9092 |
fi |
| 9093 |
if test -z "$ac_cv_prog_NMEDIT"; then |
| 9094 |
ac_ct_NMEDIT=$NMEDIT |
| 9095 |
# Extract the first word of "nmedit", so it can be a program name with args. |
| 9096 |
set dummy nmedit; ac_word=$2 |
| 9097 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9098 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 9099 |
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
| 9100 |
$as_echo_n "(cached) " >&6 |
| 9101 |
else |
| 9102 |
if test -n "$ac_ct_NMEDIT"; then |
| 9103 |
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 9104 |
else |
| 9105 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9106 |
for as_dir in $PATH |
| 9107 |
do |
| 9108 |
IFS=$as_save_IFS |
| 9109 |
test -z "$as_dir" && as_dir=. |
| 9110 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9111 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9112 |
ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 9113 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9114 |
break 2 |
| 9115 |
fi |
| 9116 |
done |
| 9117 |
done |
| 9118 |
IFS=$as_save_IFS |
| 9119 |
|
| 9120 |
fi |
| 9121 |
fi |
| 9122 |
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 9123 |
if test -n "$ac_ct_NMEDIT"; then |
| 9124 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 9125 |
$as_echo "$ac_ct_NMEDIT" >&6; } |
| 9126 |
else |
| 9127 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9128 |
$as_echo "no" >&6; } |
| 9129 |
fi |
| 9130 |
|
| 9131 |
if test "x$ac_ct_NMEDIT" = x; then |
| 9132 |
NMEDIT=":" |
| 9133 |
else |
| 9134 |
case $cross_compiling:$ac_tool_warned in |
| 9135 |
yes:) |
| 9136 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9137 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9138 |
ac_tool_warned=yes ;; |
| 9139 |
esac |
| 9140 |
NMEDIT=$ac_ct_NMEDIT |
| 9141 |
fi |
| 9142 |
else |
| 9143 |
NMEDIT="$ac_cv_prog_NMEDIT" |
| 9144 |
fi |
| 9145 |
|
| 9146 |
if test -n "$ac_tool_prefix"; then |
| 9147 |
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 9148 |
set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 9149 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9150 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 9151 |
if ${ac_cv_prog_LIPO+:} false; then : |
| 9152 |
$as_echo_n "(cached) " >&6 |
| 9153 |
else |
| 9154 |
if test -n "$LIPO"; then |
| 9155 |
ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 9156 |
else |
| 9157 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9158 |
for as_dir in $PATH |
| 9159 |
do |
| 9160 |
IFS=$as_save_IFS |
| 9161 |
test -z "$as_dir" && as_dir=. |
| 9162 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9163 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9164 |
ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 9165 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9166 |
break 2 |
| 9167 |
fi |
| 9168 |
done |
| 9169 |
done |
| 9170 |
IFS=$as_save_IFS |
| 9171 |
|
| 9172 |
fi |
| 9173 |
fi |
| 9174 |
LIPO=$ac_cv_prog_LIPO |
| 9175 |
if test -n "$LIPO"; then |
| 9176 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 9177 |
$as_echo "$LIPO" >&6; } |
| 9178 |
else |
| 9179 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9180 |
$as_echo "no" >&6; } |
| 9181 |
fi |
| 9182 |
|
| 9183 |
|
| 9184 |
fi |
| 9185 |
if test -z "$ac_cv_prog_LIPO"; then |
| 9186 |
ac_ct_LIPO=$LIPO |
| 9187 |
# Extract the first word of "lipo", so it can be a program name with args. |
| 9188 |
set dummy lipo; ac_word=$2 |
| 9189 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9190 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 9191 |
if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
| 9192 |
$as_echo_n "(cached) " >&6 |
| 9193 |
else |
| 9194 |
if test -n "$ac_ct_LIPO"; then |
| 9195 |
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 9196 |
else |
| 9197 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9198 |
for as_dir in $PATH |
| 9199 |
do |
| 9200 |
IFS=$as_save_IFS |
| 9201 |
test -z "$as_dir" && as_dir=. |
| 9202 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9203 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9204 |
ac_cv_prog_ac_ct_LIPO="lipo" |
| 9205 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9206 |
break 2 |
| 9207 |
fi |
| 9208 |
done |
| 9209 |
done |
| 9210 |
IFS=$as_save_IFS |
| 9211 |
|
| 9212 |
fi |
| 9213 |
fi |
| 9214 |
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 9215 |
if test -n "$ac_ct_LIPO"; then |
| 9216 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 9217 |
$as_echo "$ac_ct_LIPO" >&6; } |
| 9218 |
else |
| 9219 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9220 |
$as_echo "no" >&6; } |
| 9221 |
fi |
| 9222 |
|
| 9223 |
if test "x$ac_ct_LIPO" = x; then |
| 9224 |
LIPO=":" |
| 9225 |
else |
| 9226 |
case $cross_compiling:$ac_tool_warned in |
| 9227 |
yes:) |
| 9228 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9229 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9230 |
ac_tool_warned=yes ;; |
| 9231 |
esac |
| 9232 |
LIPO=$ac_ct_LIPO |
| 9233 |
fi |
| 9234 |
else |
| 9235 |
LIPO="$ac_cv_prog_LIPO" |
| 9236 |
fi |
| 9237 |
|
| 9238 |
if test -n "$ac_tool_prefix"; then |
| 9239 |
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 9240 |
set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 9241 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9242 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 9243 |
if ${ac_cv_prog_OTOOL+:} false; then : |
| 9244 |
$as_echo_n "(cached) " >&6 |
| 9245 |
else |
| 9246 |
if test -n "$OTOOL"; then |
| 9247 |
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 9248 |
else |
| 9249 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9250 |
for as_dir in $PATH |
| 9251 |
do |
| 9252 |
IFS=$as_save_IFS |
| 9253 |
test -z "$as_dir" && as_dir=. |
| 9254 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9255 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9256 |
ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 9257 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9258 |
break 2 |
| 9259 |
fi |
| 9260 |
done |
| 9261 |
done |
| 9262 |
IFS=$as_save_IFS |
| 9263 |
|
| 9264 |
fi |
| 9265 |
fi |
| 9266 |
OTOOL=$ac_cv_prog_OTOOL |
| 9267 |
if test -n "$OTOOL"; then |
| 9268 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 9269 |
$as_echo "$OTOOL" >&6; } |
| 9270 |
else |
| 9271 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9272 |
$as_echo "no" >&6; } |
| 9273 |
fi |
| 9274 |
|
| 9275 |
|
| 9276 |
fi |
| 9277 |
if test -z "$ac_cv_prog_OTOOL"; then |
| 9278 |
ac_ct_OTOOL=$OTOOL |
| 9279 |
# Extract the first word of "otool", so it can be a program name with args. |
| 9280 |
set dummy otool; ac_word=$2 |
| 9281 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9282 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 9283 |
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
| 9284 |
$as_echo_n "(cached) " >&6 |
| 9285 |
else |
| 9286 |
if test -n "$ac_ct_OTOOL"; then |
| 9287 |
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 9288 |
else |
| 9289 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9290 |
for as_dir in $PATH |
| 9291 |
do |
| 9292 |
IFS=$as_save_IFS |
| 9293 |
test -z "$as_dir" && as_dir=. |
| 9294 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9295 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9296 |
ac_cv_prog_ac_ct_OTOOL="otool" |
| 9297 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9298 |
break 2 |
| 9299 |
fi |
| 9300 |
done |
| 9301 |
done |
| 9302 |
IFS=$as_save_IFS |
| 9303 |
|
| 9304 |
fi |
| 9305 |
fi |
| 9306 |
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 9307 |
if test -n "$ac_ct_OTOOL"; then |
| 9308 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 9309 |
$as_echo "$ac_ct_OTOOL" >&6; } |
| 9310 |
else |
| 9311 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9312 |
$as_echo "no" >&6; } |
| 9313 |
fi |
| 9314 |
|
| 9315 |
if test "x$ac_ct_OTOOL" = x; then |
| 9316 |
OTOOL=":" |
| 9317 |
else |
| 9318 |
case $cross_compiling:$ac_tool_warned in |
| 9319 |
yes:) |
| 9320 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9321 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9322 |
ac_tool_warned=yes ;; |
| 9323 |
esac |
| 9324 |
OTOOL=$ac_ct_OTOOL |
| 9325 |
fi |
| 9326 |
else |
| 9327 |
OTOOL="$ac_cv_prog_OTOOL" |
| 9328 |
fi |
| 9329 |
|
| 9330 |
if test -n "$ac_tool_prefix"; then |
| 9331 |
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 9332 |
set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 9333 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9334 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 9335 |
if ${ac_cv_prog_OTOOL64+:} false; then : |
| 9336 |
$as_echo_n "(cached) " >&6 |
| 9337 |
else |
| 9338 |
if test -n "$OTOOL64"; then |
| 9339 |
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 9340 |
else |
| 9341 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9342 |
for as_dir in $PATH |
| 9343 |
do |
| 9344 |
IFS=$as_save_IFS |
| 9345 |
test -z "$as_dir" && as_dir=. |
| 9346 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9347 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9348 |
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 9349 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9350 |
break 2 |
| 9351 |
fi |
| 9352 |
done |
| 9353 |
done |
| 9354 |
IFS=$as_save_IFS |
| 9355 |
|
| 9356 |
fi |
| 9357 |
fi |
| 9358 |
OTOOL64=$ac_cv_prog_OTOOL64 |
| 9359 |
if test -n "$OTOOL64"; then |
| 9360 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 9361 |
$as_echo "$OTOOL64" >&6; } |
| 9362 |
else |
| 9363 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9364 |
$as_echo "no" >&6; } |
| 9365 |
fi |
| 9366 |
|
| 9367 |
|
| 9368 |
fi |
| 9369 |
if test -z "$ac_cv_prog_OTOOL64"; then |
| 9370 |
ac_ct_OTOOL64=$OTOOL64 |
| 9371 |
# Extract the first word of "otool64", so it can be a program name with args. |
| 9372 |
set dummy otool64; ac_word=$2 |
| 9373 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9374 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 9375 |
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
| 9376 |
$as_echo_n "(cached) " >&6 |
| 9377 |
else |
| 9378 |
if test -n "$ac_ct_OTOOL64"; then |
| 9379 |
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 9380 |
else |
| 9381 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9382 |
for as_dir in $PATH |
| 9383 |
do |
| 9384 |
IFS=$as_save_IFS |
| 9385 |
test -z "$as_dir" && as_dir=. |
| 9386 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9387 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9388 |
ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 9389 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9390 |
break 2 |
| 9391 |
fi |
| 9392 |
done |
| 9393 |
done |
| 9394 |
IFS=$as_save_IFS |
| 9395 |
|
| 9396 |
fi |
| 9397 |
fi |
| 9398 |
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 9399 |
if test -n "$ac_ct_OTOOL64"; then |
| 9400 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 9401 |
$as_echo "$ac_ct_OTOOL64" >&6; } |
| 9402 |
else |
| 9403 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9404 |
$as_echo "no" >&6; } |
| 9405 |
fi |
| 9406 |
|
| 9407 |
if test "x$ac_ct_OTOOL64" = x; then |
| 9408 |
OTOOL64=":" |
| 9409 |
else |
| 9410 |
case $cross_compiling:$ac_tool_warned in |
| 9411 |
yes:) |
| 9412 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9413 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9414 |
ac_tool_warned=yes ;; |
| 9415 |
esac |
| 9416 |
OTOOL64=$ac_ct_OTOOL64 |
| 9417 |
fi |
| 9418 |
else |
| 9419 |
OTOOL64="$ac_cv_prog_OTOOL64" |
| 9420 |
fi |
| 9421 |
|
| 9422 |
|
| 9423 |
|
| 9424 |
|
| 9425 |
|
| 9426 |
|
| 9427 |
|
| 9428 |
|
| 9429 |
|
| 9430 |
|
| 9431 |
|
| 9432 |
|
| 9433 |
|
| 9434 |
|
| 9435 |
|
| 9436 |
|
| 9437 |
|
| 9438 |
|
| 9439 |
|
| 9440 |
|
| 9441 |
|
| 9442 |
|
| 9443 |
|
| 9444 |
|
| 9445 |
|
| 9446 |
|
| 9447 |
|
| 9448 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 9449 |
$as_echo_n "checking for -single_module linker flag... " >&6; } |
| 9450 |
if ${lt_cv_apple_cc_single_mod+:} false; then : |
| 9451 |
$as_echo_n "(cached) " >&6 |
| 9452 |
else |
| 9453 |
lt_cv_apple_cc_single_mod=no |
| 9454 |
if test -z "$LT_MULTI_MODULE"; then |
| 9455 |
# By default we will add the -single_module flag. You can override |
| 9456 |
# by either setting the environment variable LT_MULTI_MODULE |
| 9457 |
# non-empty at configure time, or by adding -multi_module to the |
| 9458 |
# link flags. |
| 9459 |
rm -rf libconftest.dylib* |
| 9460 |
echo "int foo(void){return 1;}" > conftest.c |
| 9461 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 9462 |
-dynamiclib -Wl,-single_module conftest.c" >&5 |
| 9463 |
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 9464 |
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 9465 |
_lt_result=$? |
| 9466 |
# If there is a non-empty error log, and "single_module" |
| 9467 |
# appears in it, assume the flag caused a linker warning |
| 9468 |
if test -s conftest.err && $GREP single_module conftest.err; then |
| 9469 |
cat conftest.err >&5 |
| 9470 |
# Otherwise, if the output was created with a 0 exit code from |
| 9471 |
# the compiler, it worked. |
| 9472 |
elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
| 9473 |
lt_cv_apple_cc_single_mod=yes |
| 9474 |
else |
| 9475 |
cat conftest.err >&5 |
| 9476 |
fi |
| 9477 |
rm -rf libconftest.dylib* |
| 9478 |
rm -f conftest.* |
| 9479 |
fi |
| 9480 |
fi |
| 9481 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 9482 |
$as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 9483 |
|
| 9484 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 9485 |
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| 9486 |
if ${lt_cv_ld_exported_symbols_list+:} false; then : |
| 9487 |
$as_echo_n "(cached) " >&6 |
| 9488 |
else |
| 9489 |
lt_cv_ld_exported_symbols_list=no |
| 9490 |
save_LDFLAGS=$LDFLAGS |
| 9491 |
echo "_main" > conftest.sym |
| 9492 |
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 9493 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9494 |
/* end confdefs.h. */ |
| 9495 |
|
| 9496 |
int |
| 9497 |
main () |
| 9498 |
{ |
| 9499 |
|
| 9500 |
; |
| 9501 |
return 0; |
| 9502 |
} |
| 9503 |
_ACEOF |
| 9504 |
if ac_fn_c_try_link "$LINENO"; then : |
| 9505 |
lt_cv_ld_exported_symbols_list=yes |
| 9506 |
else |
| 9507 |
lt_cv_ld_exported_symbols_list=no |
| 9508 |
fi |
| 9509 |
rm -f core conftest.err conftest.$ac_objext \ |
| 9510 |
conftest$ac_exeext conftest.$ac_ext |
| 9511 |
LDFLAGS=$save_LDFLAGS |
| 9512 |
|
| 9513 |
fi |
| 9514 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 9515 |
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 9516 |
|
| 9517 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 9518 |
$as_echo_n "checking for -force_load linker flag... " >&6; } |
| 9519 |
if ${lt_cv_ld_force_load+:} false; then : |
| 9520 |
$as_echo_n "(cached) " >&6 |
| 9521 |
else |
| 9522 |
lt_cv_ld_force_load=no |
| 9523 |
cat > conftest.c << _LT_EOF |
| 9524 |
int forced_loaded() { return 2;} |
| 9525 |
_LT_EOF |
| 9526 |
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 9527 |
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 9528 |
echo "$AR cru libconftest.a conftest.o" >&5 |
| 9529 |
$AR cru libconftest.a conftest.o 2>&5 |
| 9530 |
echo "$RANLIB libconftest.a" >&5 |
| 9531 |
$RANLIB libconftest.a 2>&5 |
| 9532 |
cat > conftest.c << _LT_EOF |
| 9533 |
int main() { return 0;} |
| 9534 |
_LT_EOF |
| 9535 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 9536 |
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 9537 |
_lt_result=$? |
| 9538 |
if test -s conftest.err && $GREP force_load conftest.err; then |
| 9539 |
cat conftest.err >&5 |
| 9540 |
elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
| 9541 |
lt_cv_ld_force_load=yes |
| 9542 |
else |
| 9543 |
cat conftest.err >&5 |
| 9544 |
fi |
| 9545 |
rm -f conftest.err libconftest.a conftest conftest.c |
| 9546 |
rm -rf conftest.dSYM |
| 9547 |
|
| 9548 |
fi |
| 9549 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 9550 |
$as_echo "$lt_cv_ld_force_load" >&6; } |
| 9551 |
case $host_os in |
| 9552 |
rhapsody* | darwin1.[012]) |
| 9553 |
_lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
| 9554 |
darwin1.*) |
| 9555 |
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 9556 |
darwin*) # darwin 5.x on |
| 9557 |
# if running on 10.5 or later, the deployment target defaults |
| 9558 |
# to the OS version, if on x86, and 10.4, the deployment |
| 9559 |
# target defaults to 10.4. Don't you love it? |
| 9560 |
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 9561 |
10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 9562 |
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
| 9563 |
10.[012][,.]*) |
| 9564 |
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 9565 |
10.*) |
| 9566 |
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
| 9567 |
esac |
| 9568 |
;; |
| 9569 |
esac |
| 9570 |
if test yes = "$lt_cv_apple_cc_single_mod"; then |
| 9571 |
_lt_dar_single_mod='$single_module' |
| 9572 |
fi |
| 9573 |
if test yes = "$lt_cv_ld_exported_symbols_list"; then |
| 9574 |
_lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' |
| 9575 |
else |
| 9576 |
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
| 9577 |
fi |
| 9578 |
if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
| 9579 |
_lt_dsymutil='~$DSYMUTIL $lib || :' |
| 9580 |
else |
| 9581 |
_lt_dsymutil= |
| 9582 |
fi |
| 9583 |
;; |
| 9584 |
esac |
| 9585 |
|
| 9586 |
# func_munge_path_list VARIABLE PATH |
| 9587 |
# ----------------------------------- |
| 9588 |
# VARIABLE is name of variable containing _space_ separated list of |
| 9589 |
# directories to be munged by the contents of PATH, which is string |
| 9590 |
# having a format: |
| 9591 |
# "DIR[:DIR]:" |
| 9592 |
# string "DIR[ DIR]" will be prepended to VARIABLE |
| 9593 |
# ":DIR[:DIR]" |
| 9594 |
# string "DIR[ DIR]" will be appended to VARIABLE |
| 9595 |
# "DIRP[:DIRP]::[DIRA:]DIRA" |
| 9596 |
# string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 9597 |
# "DIRA[ DIRA]" will be appended to VARIABLE |
| 9598 |
# "DIR[:DIR]" |
| 9599 |
# VARIABLE will be replaced by "DIR[ DIR]" |
| 9600 |
func_munge_path_list () |
| 9601 |
{ |
| 9602 |
case x$2 in |
| 9603 |
x) |
| 9604 |
;; |
| 9605 |
*:) |
| 9606 |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 9607 |
;; |
| 9608 |
x:*) |
| 9609 |
eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 9610 |
;; |
| 9611 |
*::*) |
| 9612 |
eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 9613 |
eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 9614 |
;; |
| 9615 |
*) |
| 9616 |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 9617 |
;; |
| 9618 |
esac |
| 9619 |
} |
| 9620 |
|
| 9621 |
ac_ext=c |
| 9622 |
ac_cpp='$CPP $CPPFLAGS' |
| 9623 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9624 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9625 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9626 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 9627 |
$as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 9628 |
# On Suns, sometimes $CPP names a directory. |
| 9629 |
if test -n "$CPP" && test -d "$CPP"; then |
| 9630 |
CPP= |
| 9631 |
fi |
| 9632 |
if test -z "$CPP"; then |
| 9633 |
if ${ac_cv_prog_CPP+:} false; then : |
| 9634 |
$as_echo_n "(cached) " >&6 |
| 9635 |
else |
| 9636 |
# Double quotes because CPP needs to be expanded |
| 9637 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 9638 |
do |
| 9639 |
ac_preproc_ok=false |
| 9640 |
for ac_c_preproc_warn_flag in '' yes |
| 9641 |
do |
| 9642 |
# Use a header file that comes with gcc, so configuring glibc |
| 9643 |
# with a fresh cross-compiler works. |
| 9644 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9645 |
# <limits.h> exists even on freestanding compilers. |
| 9646 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 9647 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 9648 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9649 |
/* end confdefs.h. */ |
| 9650 |
#ifdef __STDC__ |
| 9651 |
# include <limits.h> |
| 9652 |
#else |
| 9653 |
# include <assert.h> |
| 9654 |
#endif |
| 9655 |
Syntax error |
| 9656 |
_ACEOF |
| 9657 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 9658 |
|
| 9659 |
else |
| 9660 |
# Broken: fails on valid input. |
| 9661 |
continue |
| 9662 |
fi |
| 9663 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 9664 |
|
| 9665 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 9666 |
# can be detected and how. |
| 9667 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9668 |
/* end confdefs.h. */ |
| 9669 |
#include <ac_nonexistent.h> |
| 9670 |
_ACEOF |
| 9671 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 9672 |
# Broken: success on invalid input. |
| 9673 |
continue |
| 9674 |
else |
| 9675 |
# Passes both tests. |
| 9676 |
ac_preproc_ok=: |
| 9677 |
break |
| 9678 |
fi |
| 9679 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 9680 |
|
| 9681 |
done |
| 9682 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 9683 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 9684 |
if $ac_preproc_ok; then : |
| 9685 |
break |
| 9686 |
fi |
| 9687 |
|
| 9688 |
done |
| 9689 |
ac_cv_prog_CPP=$CPP |
| 9690 |
|
| 9691 |
fi |
| 9692 |
CPP=$ac_cv_prog_CPP |
| 9693 |
else |
| 9694 |
ac_cv_prog_CPP=$CPP |
| 9695 |
fi |
| 9696 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 9697 |
$as_echo "$CPP" >&6; } |
| 9698 |
ac_preproc_ok=false |
| 9699 |
for ac_c_preproc_warn_flag in '' yes |
| 9700 |
do |
| 9701 |
# Use a header file that comes with gcc, so configuring glibc |
| 9702 |
# with a fresh cross-compiler works. |
| 9703 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9704 |
# <limits.h> exists even on freestanding compilers. |
| 9705 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 9706 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 9707 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9708 |
/* end confdefs.h. */ |
| 9709 |
#ifdef __STDC__ |
| 9710 |
# include <limits.h> |
| 9711 |
#else |
| 9712 |
# include <assert.h> |
| 9713 |
#endif |
| 9714 |
Syntax error |
| 9715 |
_ACEOF |
| 9716 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 9717 |
|
| 9718 |
else |
| 9719 |
# Broken: fails on valid input. |
| 9720 |
continue |
| 9721 |
fi |
| 9722 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 9723 |
|
| 9724 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 9725 |
# can be detected and how. |
| 9726 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9727 |
/* end confdefs.h. */ |
| 9728 |
#include <ac_nonexistent.h> |
| 9729 |
_ACEOF |
| 9730 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 9731 |
# Broken: success on invalid input. |
| 9732 |
continue |
| 9733 |
else |
| 9734 |
# Passes both tests. |
| 9735 |
ac_preproc_ok=: |
| 9736 |
break |
| 9737 |
fi |
| 9738 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 9739 |
|
| 9740 |
done |
| 9741 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 9742 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 9743 |
if $ac_preproc_ok; then : |
| 9744 |
|
| 9745 |
else |
| 9746 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 9747 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 9748 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 9749 |
See \`config.log' for more details" "$LINENO" 5; } |
| 9750 |
fi |
| 9751 |
|
| 9752 |
ac_ext=c |
| 9753 |
ac_cpp='$CPP $CPPFLAGS' |
| 9754 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9755 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9756 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9757 |
|
| 9758 |
|
| 9759 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 9760 |
$as_echo_n "checking for ANSI C header files... " >&6; } |
| 9761 |
if ${ac_cv_header_stdc+:} false; then : |
| 9762 |
$as_echo_n "(cached) " >&6 |
| 9763 |
else |
| 9764 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9765 |
/* end confdefs.h. */ |
| 9766 |
#include <stdlib.h> |
| 9767 |
#include <stdarg.h> |
| 9768 |
#include <string.h> |
| 9769 |
#include <float.h> |
| 9770 |
|
| 9771 |
int |
| 9772 |
main () |
| 9773 |
{ |
| 9774 |
|
| 9775 |
; |
| 9776 |
return 0; |
| 9777 |
} |
| 9778 |
_ACEOF |
| 9779 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 9780 |
ac_cv_header_stdc=yes |
| 9781 |
else |
| 9782 |
ac_cv_header_stdc=no |
| 9783 |
fi |
| 9784 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9785 |
|
| 9786 |
if test $ac_cv_header_stdc = yes; then |
| 9787 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 9788 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9789 |
/* end confdefs.h. */ |
| 9790 |
#include <string.h> |
| 9791 |
|
| 9792 |
_ACEOF |
| 9793 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9794 |
$EGREP "memchr" >/dev/null 2>&1; then : |
| 9795 |
|
| 9796 |
else |
| 9797 |
ac_cv_header_stdc=no |
| 9798 |
fi |
| 9799 |
rm -f conftest* |
| 9800 |
|
| 9801 |
fi |
| 9802 |
|
| 9803 |
if test $ac_cv_header_stdc = yes; then |
| 9804 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 9805 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9806 |
/* end confdefs.h. */ |
| 9807 |
#include <stdlib.h> |
| 9808 |
|
| 9809 |
_ACEOF |
| 9810 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9811 |
$EGREP "free" >/dev/null 2>&1; then : |
| 9812 |
|
| 9813 |
else |
| 9814 |
ac_cv_header_stdc=no |
| 9815 |
fi |
| 9816 |
rm -f conftest* |
| 9817 |
|
| 9818 |
fi |
| 9819 |
|
| 9820 |
if test $ac_cv_header_stdc = yes; then |
| 9821 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 9822 |
if test "$cross_compiling" = yes; then : |
| 9823 |
: |
| 9824 |
else |
| 9825 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9826 |
/* end confdefs.h. */ |
| 9827 |
#include <ctype.h> |
| 9828 |
#include <stdlib.h> |
| 9829 |
#if ((' ' & 0x0FF) == 0x020) |
| 9830 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 9831 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 9832 |
#else |
| 9833 |
# define ISLOWER(c) \ |
| 9834 |
(('a' <= (c) && (c) <= 'i') \ |
| 9835 |
|| ('j' <= (c) && (c) <= 'r') \ |
| 9836 |
|| ('s' <= (c) && (c) <= 'z')) |
| 9837 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 9838 |
#endif |
| 9839 |
|
| 9840 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 9841 |
int |
| 9842 |
main () |
| 9843 |
{ |
| 9844 |
int i; |
| 9845 |
for (i = 0; i < 256; i++) |
| 9846 |
if (XOR (islower (i), ISLOWER (i)) |
| 9847 |
|| toupper (i) != TOUPPER (i)) |
| 9848 |
return 2; |
| 9849 |
return 0; |
| 9850 |
} |
| 9851 |
_ACEOF |
| 9852 |
if ac_fn_c_try_run "$LINENO"; then : |
| 9853 |
|
| 9854 |
else |
| 9855 |
ac_cv_header_stdc=no |
| 9856 |
fi |
| 9857 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9858 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9859 |
fi |
| 9860 |
|
| 9861 |
fi |
| 9862 |
fi |
| 9863 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 9864 |
$as_echo "$ac_cv_header_stdc" >&6; } |
| 9865 |
if test $ac_cv_header_stdc = yes; then |
| 9866 |
|
| 9867 |
$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 9868 |
|
| 9869 |
fi |
| 9870 |
|
| 9871 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 9872 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 9873 |
inttypes.h stdint.h unistd.h |
| 9874 |
do : |
| 9875 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9876 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 9877 |
" |
| 9878 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 9879 |
cat >>confdefs.h <<_ACEOF |
| 9880 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9881 |
_ACEOF |
| 9882 |
|
| 9883 |
fi |
| 9884 |
|
| 9885 |
done |
| 9886 |
|
| 9887 |
|
| 9888 |
for ac_header in dlfcn.h |
| 9889 |
do : |
| 9890 |
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 9891 |
" |
| 9892 |
if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
| 9893 |
cat >>confdefs.h <<_ACEOF |
| 9894 |
#define HAVE_DLFCN_H 1 |
| 9895 |
_ACEOF |
| 9896 |
|
| 9897 |
fi |
| 9898 |
|
| 9899 |
done |
| 9900 |
|
| 9901 |
|
| 9902 |
|
| 9903 |
|
| 9904 |
func_stripname_cnf () |
| 9905 |
{ |
| 9906 |
case $2 in |
| 9907 |
.*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; |
| 9908 |
*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; |
| 9909 |
esac |
| 9910 |
} # func_stripname_cnf |
| 9911 |
|
| 9912 |
|
| 9913 |
|
| 9914 |
|
| 9915 |
|
| 9916 |
# Set options |
| 9917 |
|
| 9918 |
|
| 9919 |
|
| 9920 |
enable_dlopen=no |
| 9921 |
|
| 9922 |
|
| 9923 |
enable_win32_dll=no |
| 9924 |
|
| 9925 |
|
| 9926 |
# Check whether --enable-shared was given. |
| 9927 |
if test "${enable_shared+set}" = set; then : |
| 9928 |
enableval=$enable_shared; p=${PACKAGE-default} |
| 9929 |
case $enableval in |
| 9930 |
yes) enable_shared=yes ;; |
| 9931 |
no) enable_shared=no ;; |
| 9932 |
*) |
| 9933 |
enable_shared=no |
| 9934 |
# Look at the argument we got. We use all the common list separators. |
| 9935 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 9936 |
for pkg in $enableval; do |
| 9937 |
IFS=$lt_save_ifs |
| 9938 |
if test "X$pkg" = "X$p"; then |
| 9939 |
enable_shared=yes |
| 9940 |
fi |
| 9941 |
done |
| 9942 |
IFS=$lt_save_ifs |
| 9943 |
;; |
| 9944 |
esac |
| 9945 |
else |
| 9946 |
enable_shared=yes |
| 9947 |
fi |
| 9948 |
|
| 9949 |
|
| 9950 |
|
| 9951 |
|
| 9952 |
|
| 9953 |
|
| 9954 |
|
| 9955 |
|
| 9956 |
|
| 9957 |
# Check whether --enable-static was given. |
| 9958 |
if test "${enable_static+set}" = set; then : |
| 9959 |
enableval=$enable_static; p=${PACKAGE-default} |
| 9960 |
case $enableval in |
| 9961 |
yes) enable_static=yes ;; |
| 9962 |
no) enable_static=no ;; |
| 9963 |
*) |
| 9964 |
enable_static=no |
| 9965 |
# Look at the argument we got. We use all the common list separators. |
| 9966 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 9967 |
for pkg in $enableval; do |
| 9968 |
IFS=$lt_save_ifs |
| 9969 |
if test "X$pkg" = "X$p"; then |
| 9970 |
enable_static=yes |
| 9971 |
fi |
| 9972 |
done |
| 9973 |
IFS=$lt_save_ifs |
| 9974 |
;; |
| 9975 |
esac |
| 9976 |
else |
| 9977 |
enable_static=yes |
| 9978 |
fi |
| 9979 |
|
| 9980 |
|
| 9981 |
|
| 9982 |
|
| 9983 |
|
| 9984 |
|
| 9985 |
|
| 9986 |
|
| 9987 |
|
| 9988 |
|
| 9989 |
# Check whether --with-pic was given. |
| 9990 |
if test "${with_pic+set}" = set; then : |
| 9991 |
withval=$with_pic; lt_p=${PACKAGE-default} |
| 9992 |
case $withval in |
| 9993 |
yes|no) pic_mode=$withval ;; |
| 9994 |
*) |
| 9995 |
pic_mode=default |
| 9996 |
# Look at the argument we got. We use all the common list separators. |
| 9997 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 9998 |
for lt_pkg in $withval; do |
| 9999 |
IFS=$lt_save_ifs |
| 10000 |
if test "X$lt_pkg" = "X$lt_p"; then |
| 10001 |
pic_mode=yes |
| 10002 |
fi |
| 10003 |
done |
| 10004 |
IFS=$lt_save_ifs |
| 10005 |
;; |
| 10006 |
esac |
| 10007 |
else |
| 10008 |
pic_mode=default |
| 10009 |
fi |
| 10010 |
|
| 10011 |
|
| 10012 |
|
| 10013 |
|
| 10014 |
|
| 10015 |
|
| 10016 |
|
| 10017 |
|
| 10018 |
# Check whether --enable-fast-install was given. |
| 10019 |
if test "${enable_fast_install+set}" = set; then : |
| 10020 |
enableval=$enable_fast_install; p=${PACKAGE-default} |
| 10021 |
case $enableval in |
| 10022 |
yes) enable_fast_install=yes ;; |
| 10023 |
no) enable_fast_install=no ;; |
| 10024 |
*) |
| 10025 |
enable_fast_install=no |
| 10026 |
# Look at the argument we got. We use all the common list separators. |
| 10027 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 10028 |
for pkg in $enableval; do |
| 10029 |
IFS=$lt_save_ifs |
| 10030 |
if test "X$pkg" = "X$p"; then |
| 10031 |
enable_fast_install=yes |
| 10032 |
fi |
| 10033 |
done |
| 10034 |
IFS=$lt_save_ifs |
| 10035 |
;; |
| 10036 |
esac |
| 10037 |
else |
| 10038 |
enable_fast_install=yes |
| 10039 |
fi |
| 10040 |
|
| 10041 |
|
| 10042 |
|
| 10043 |
|
| 10044 |
|
| 10045 |
|
| 10046 |
|
| 10047 |
|
| 10048 |
shared_archive_member_spec= |
| 10049 |
case $host,$enable_shared in |
| 10050 |
power*-*-aix[5-9]*,yes) |
| 10051 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 |
| 10052 |
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } |
| 10053 |
|
| 10054 |
# Check whether --with-aix-soname was given. |
| 10055 |
if test "${with_aix_soname+set}" = set; then : |
| 10056 |
withval=$with_aix_soname; case $withval in |
| 10057 |
aix|svr4|both) |
| 10058 |
;; |
| 10059 |
*) |
| 10060 |
as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 |
| 10061 |
;; |
| 10062 |
esac |
| 10063 |
lt_cv_with_aix_soname=$with_aix_soname |
| 10064 |
else |
| 10065 |
if ${lt_cv_with_aix_soname+:} false; then : |
| 10066 |
$as_echo_n "(cached) " >&6 |
| 10067 |
else |
| 10068 |
lt_cv_with_aix_soname=aix |
| 10069 |
fi |
| 10070 |
|
| 10071 |
with_aix_soname=$lt_cv_with_aix_soname |
| 10072 |
fi |
| 10073 |
|
| 10074 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 |
| 10075 |
$as_echo "$with_aix_soname" >&6; } |
| 10076 |
if test aix != "$with_aix_soname"; then |
| 10077 |
# For the AIX way of multilib, we name the shared archive member |
| 10078 |
# based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', |
| 10079 |
# and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. |
| 10080 |
# Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, |
| 10081 |
# the AIX toolchain works better with OBJECT_MODE set (default 32). |
| 10082 |
if test 64 = "${OBJECT_MODE-32}"; then |
| 10083 |
shared_archive_member_spec=shr_64 |
| 10084 |
else |
| 10085 |
shared_archive_member_spec=shr |
| 10086 |
fi |
| 10087 |
fi |
| 10088 |
;; |
| 10089 |
*) |
| 10090 |
with_aix_soname=aix |
| 10091 |
;; |
| 10092 |
esac |
| 10093 |
|
| 10094 |
|
| 10095 |
|
| 10096 |
|
| 10097 |
|
| 10098 |
|
| 10099 |
|
| 10100 |
|
| 10101 |
|
| 10102 |
|
| 10103 |
# This can be used to rebuild libtool when needed |
| 10104 |
LIBTOOL_DEPS=$ltmain |
| 10105 |
|
| 10106 |
# Always use our own libtool. |
| 10107 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 10108 |
|
| 10109 |
|
| 10110 |
|
| 10111 |
|
| 10112 |
|
| 10113 |
|
| 10114 |
|
| 10115 |
|
| 10116 |
|
| 10117 |
|
| 10118 |
|
| 10119 |
|
| 10120 |
|
| 10121 |
|
| 10122 |
|
| 10123 |
|
| 10124 |
|
| 10125 |
|
| 10126 |
|
| 10127 |
|
| 10128 |
|
| 10129 |
|
| 10130 |
|
| 10131 |
|
| 10132 |
|
| 10133 |
|
| 10134 |
|
| 10135 |
|
| 10136 |
|
| 10137 |
|
| 10138 |
test -z "$LN_S" && LN_S="ln -s" |
| 10139 |
|
| 10140 |
|
| 10141 |
|
| 10142 |
|
| 10143 |
|
| 10144 |
|
| 10145 |
|
| 10146 |
|
| 10147 |
|
| 10148 |
|
| 10149 |
|
| 10150 |
|
| 10151 |
|
| 10152 |
|
| 10153 |
if test -n "${ZSH_VERSION+set}"; then |
| 10154 |
setopt NO_GLOB_SUBST |
| 10155 |
fi |
| 10156 |
|
| 10157 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 10158 |
$as_echo_n "checking for objdir... " >&6; } |
| 10159 |
if ${lt_cv_objdir+:} false; then : |
| 10160 |
$as_echo_n "(cached) " >&6 |
| 10161 |
else |
| 10162 |
rm -f .libs 2>/dev/null |
| 10163 |
mkdir .libs 2>/dev/null |
| 10164 |
if test -d .libs; then |
| 10165 |
lt_cv_objdir=.libs |
| 10166 |
else |
| 10167 |
# MS-DOS does not allow filenames that begin with a dot. |
| 10168 |
lt_cv_objdir=_libs |
| 10169 |
fi |
| 10170 |
rmdir .libs 2>/dev/null |
| 10171 |
fi |
| 10172 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 10173 |
$as_echo "$lt_cv_objdir" >&6; } |
| 10174 |
objdir=$lt_cv_objdir |
| 10175 |
|
| 10176 |
|
| 10177 |
|
| 10178 |
|
| 10179 |
|
| 10180 |
cat >>confdefs.h <<_ACEOF |
| 10181 |
#define LT_OBJDIR "$lt_cv_objdir/" |
| 10182 |
_ACEOF |
| 10183 |
|
| 10184 |
|
| 10185 |
|
| 10186 |
|
| 10187 |
case $host_os in |
| 10188 |
aix3*) |
| 10189 |
# AIX sometimes has problems with the GCC collect2 program. For some |
| 10190 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 10191 |
# vanish in a puff of smoke. |
| 10192 |
if test set != "${COLLECT_NAMES+set}"; then |
| 10193 |
COLLECT_NAMES= |
| 10194 |
export COLLECT_NAMES |
| 10195 |
fi |
| 10196 |
;; |
| 10197 |
esac |
| 10198 |
|
| 10199 |
# Global variables: |
| 10200 |
ofile=libtool |
| 10201 |
can_build_shared=yes |
| 10202 |
|
| 10203 |
# All known linkers require a '.a' archive for static linking (except MSVC, |
| 10204 |
# which needs '.lib'). |
| 10205 |
libext=a |
| 10206 |
|
| 10207 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
| 10208 |
|
| 10209 |
old_CC=$CC |
| 10210 |
old_CFLAGS=$CFLAGS |
| 10211 |
|
| 10212 |
# Set sane defaults for various variables |
| 10213 |
test -z "$CC" && CC=cc |
| 10214 |
test -z "$LTCC" && LTCC=$CC |
| 10215 |
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 10216 |
test -z "$LD" && LD=ld |
| 10217 |
test -z "$ac_objext" && ac_objext=o |
| 10218 |
|
| 10219 |
func_cc_basename $compiler |
| 10220 |
cc_basename=$func_cc_basename_result |
| 10221 |
|
| 10222 |
|
| 10223 |
# Only perform the check for file, if the check method requires it |
| 10224 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 10225 |
case $deplibs_check_method in |
| 10226 |
file_magic*) |
| 10227 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 10228 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 10229 |
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| 10230 |
if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 10231 |
$as_echo_n "(cached) " >&6 |
| 10232 |
else |
| 10233 |
case $MAGIC_CMD in |
| 10234 |
[\\/*] | ?:[\\/]*) |
| 10235 |
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 10236 |
;; |
| 10237 |
*) |
| 10238 |
lt_save_MAGIC_CMD=$MAGIC_CMD |
| 10239 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 10240 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 10241 |
for ac_dir in $ac_dummy; do |
| 10242 |
IFS=$lt_save_ifs |
| 10243 |
test -z "$ac_dir" && ac_dir=. |
| 10244 |
if test -f "$ac_dir/${ac_tool_prefix}file"; then |
| 10245 |
lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" |
| 10246 |
if test -n "$file_magic_test_file"; then |
| 10247 |
case $deplibs_check_method in |
| 10248 |
"file_magic "*) |
| 10249 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 10250 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 10251 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 10252 |
$EGREP "$file_magic_regex" > /dev/null; then |
| 10253 |
: |
| 10254 |
else |
| 10255 |
cat <<_LT_EOF 1>&2 |
| 10256 |
|
| 10257 |
*** Warning: the command libtool uses to detect shared libraries, |
| 10258 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 10259 |
*** The result is that libtool may fail to recognize shared libraries |
| 10260 |
*** as such. This will affect the creation of libtool libraries that |
| 10261 |
*** depend on shared libraries, but programs linked with such libtool |
| 10262 |
*** libraries will work regardless of this problem. Nevertheless, you |
| 10263 |
*** may want to report the problem to your system manager and/or to |
| 10264 |
*** bug-libtool@gnu.org |
| 10265 |
|
| 10266 |
_LT_EOF |
| 10267 |
fi ;; |
| 10268 |
esac |
| 10269 |
fi |
| 10270 |
break |
| 10271 |
fi |
| 10272 |
done |
| 10273 |
IFS=$lt_save_ifs |
| 10274 |
MAGIC_CMD=$lt_save_MAGIC_CMD |
| 10275 |
;; |
| 10276 |
esac |
| 10277 |
fi |
| 10278 |
|
| 10279 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 10280 |
if test -n "$MAGIC_CMD"; then |
| 10281 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 10282 |
$as_echo "$MAGIC_CMD" >&6; } |
| 10283 |
else |
| 10284 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10285 |
$as_echo "no" >&6; } |
| 10286 |
fi |
| 10287 |
|
| 10288 |
|
| 10289 |
|
| 10290 |
|
| 10291 |
|
| 10292 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 10293 |
if test -n "$ac_tool_prefix"; then |
| 10294 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 10295 |
$as_echo_n "checking for file... " >&6; } |
| 10296 |
if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 10297 |
$as_echo_n "(cached) " >&6 |
| 10298 |
else |
| 10299 |
case $MAGIC_CMD in |
| 10300 |
[\\/*] | ?:[\\/]*) |
| 10301 |
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 10302 |
;; |
| 10303 |
*) |
| 10304 |
lt_save_MAGIC_CMD=$MAGIC_CMD |
| 10305 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 10306 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 10307 |
for ac_dir in $ac_dummy; do |
| 10308 |
IFS=$lt_save_ifs |
| 10309 |
test -z "$ac_dir" && ac_dir=. |
| 10310 |
if test -f "$ac_dir/file"; then |
| 10311 |
lt_cv_path_MAGIC_CMD=$ac_dir/"file" |
| 10312 |
if test -n "$file_magic_test_file"; then |
| 10313 |
case $deplibs_check_method in |
| 10314 |
"file_magic "*) |
| 10315 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 10316 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 10317 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 10318 |
$EGREP "$file_magic_regex" > /dev/null; then |
| 10319 |
: |
| 10320 |
else |
| 10321 |
cat <<_LT_EOF 1>&2 |
| 10322 |
|
| 10323 |
*** Warning: the command libtool uses to detect shared libraries, |
| 10324 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 10325 |
*** The result is that libtool may fail to recognize shared libraries |
| 10326 |
*** as such. This will affect the creation of libtool libraries that |
| 10327 |
*** depend on shared libraries, but programs linked with such libtool |
| 10328 |
*** libraries will work regardless of this problem. Nevertheless, you |
| 10329 |
*** may want to report the problem to your system manager and/or to |
| 10330 |
*** bug-libtool@gnu.org |
| 10331 |
|
| 10332 |
_LT_EOF |
| 10333 |
fi ;; |
| 10334 |
esac |
| 10335 |
fi |
| 10336 |
break |
| 10337 |
fi |
| 10338 |
done |
| 10339 |
IFS=$lt_save_ifs |
| 10340 |
MAGIC_CMD=$lt_save_MAGIC_CMD |
| 10341 |
;; |
| 10342 |
esac |
| 10343 |
fi |
| 10344 |
|
| 10345 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 10346 |
if test -n "$MAGIC_CMD"; then |
| 10347 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 10348 |
$as_echo "$MAGIC_CMD" >&6; } |
| 10349 |
else |
| 10350 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10351 |
$as_echo "no" >&6; } |
| 10352 |
fi |
| 10353 |
|
| 10354 |
|
| 10355 |
else |
| 10356 |
MAGIC_CMD=: |
| 10357 |
fi |
| 10358 |
fi |
| 10359 |
|
| 10360 |
fi |
| 10361 |
;; |
| 10362 |
esac |
| 10363 |
|
| 10364 |
# Use C for the default configuration in the libtool script |
| 10365 |
|
| 10366 |
lt_save_CC=$CC |
| 10367 |
ac_ext=c |
| 10368 |
ac_cpp='$CPP $CPPFLAGS' |
| 10369 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10370 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10371 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10372 |
|
| 10373 |
|
| 10374 |
# Source file extension for C test sources. |
| 10375 |
ac_ext=c |
| 10376 |
|
| 10377 |
# Object file extension for compiled C test sources. |
| 10378 |
objext=o |
| 10379 |
objext=$objext |
| 10380 |
|
| 10381 |
# Code to be used in simple compile tests |
| 10382 |
lt_simple_compile_test_code="int some_variable = 0;" |
| 10383 |
|
| 10384 |
# Code to be used in simple link tests |
| 10385 |
lt_simple_link_test_code='int main(){return(0);}' |
| 10386 |
|
| 10387 |
|
| 10388 |
|
| 10389 |
|
| 10390 |
|
| 10391 |
|
| 10392 |
|
| 10393 |
# If no C compiler was specified, use CC. |
| 10394 |
LTCC=${LTCC-"$CC"} |
| 10395 |
|
| 10396 |
# If no C compiler flags were specified, use CFLAGS. |
| 10397 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 10398 |
|
| 10399 |
# Allow CC to be a program name with arguments. |
| 10400 |
compiler=$CC |
| 10401 |
|
| 10402 |
# Save the default compiler, since it gets overwritten when the other |
| 10403 |
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 10404 |
compiler_DEFAULT=$CC |
| 10405 |
|
| 10406 |
# save warnings/boilerplate of simple test code |
| 10407 |
ac_outfile=conftest.$ac_objext |
| 10408 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 10409 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 10410 |
_lt_compiler_boilerplate=`cat conftest.err` |
| 10411 |
$RM conftest* |
| 10412 |
|
| 10413 |
ac_outfile=conftest.$ac_objext |
| 10414 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 10415 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 10416 |
_lt_linker_boilerplate=`cat conftest.err` |
| 10417 |
$RM -r conftest* |
| 10418 |
|
| 10419 |
|
| 10420 |
## CAVEAT EMPTOR: |
| 10421 |
## There is no encapsulation within the following macros, do not change |
| 10422 |
## the running order or otherwise move them around unless you know exactly |
| 10423 |
## what you are doing... |
| 10424 |
if test -n "$compiler"; then |
| 10425 |
|
| 10426 |
lt_prog_compiler_no_builtin_flag= |
| 10427 |
|
| 10428 |
if test yes = "$GCC"; then |
| 10429 |
case $cc_basename in |
| 10430 |
nvcc*) |
| 10431 |
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 10432 |
*) |
| 10433 |
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 10434 |
esac |
| 10435 |
|
| 10436 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 10437 |
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 10438 |
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
| 10439 |
$as_echo_n "(cached) " >&6 |
| 10440 |
else |
| 10441 |
lt_cv_prog_compiler_rtti_exceptions=no |
| 10442 |
ac_outfile=conftest.$ac_objext |
| 10443 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10444 |
lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
| 10445 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 10446 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 10447 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 10448 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10449 |
# The option is referenced via a variable to avoid confusing sed. |
| 10450 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 10451 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 10452 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10453 |
-e 's:$: $lt_compiler_flag:'` |
| 10454 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 10455 |
(eval "$lt_compile" 2>conftest.err) |
| 10456 |
ac_status=$? |
| 10457 |
cat conftest.err >&5 |
| 10458 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10459 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 10460 |
# The compiler can only warn and ignore the option if not recognized |
| 10461 |
# So say no if there are warnings other than the usual output. |
| 10462 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 10463 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 10464 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 10465 |
lt_cv_prog_compiler_rtti_exceptions=yes |
| 10466 |
fi |
| 10467 |
fi |
| 10468 |
$RM conftest* |
| 10469 |
|
| 10470 |
fi |
| 10471 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 10472 |
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 10473 |
|
| 10474 |
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
| 10475 |
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 10476 |
else |
| 10477 |
: |
| 10478 |
fi |
| 10479 |
|
| 10480 |
fi |
| 10481 |
|
| 10482 |
|
| 10483 |
|
| 10484 |
|
| 10485 |
|
| 10486 |
|
| 10487 |
lt_prog_compiler_wl= |
| 10488 |
lt_prog_compiler_pic= |
| 10489 |
lt_prog_compiler_static= |
| 10490 |
|
| 10491 |
|
| 10492 |
if test yes = "$GCC"; then |
| 10493 |
lt_prog_compiler_wl='-Wl,' |
| 10494 |
lt_prog_compiler_static='-static' |
| 10495 |
|
| 10496 |
case $host_os in |
| 10497 |
aix*) |
| 10498 |
# All AIX code is PIC. |
| 10499 |
if test ia64 = "$host_cpu"; then |
| 10500 |
# AIX 5 now supports IA64 processor |
| 10501 |
lt_prog_compiler_static='-Bstatic' |
| 10502 |
fi |
| 10503 |
lt_prog_compiler_pic='-fPIC' |
| 10504 |
;; |
| 10505 |
|
| 10506 |
amigaos*) |
| 10507 |
case $host_cpu in |
| 10508 |
powerpc) |
| 10509 |
# see comment about AmigaOS4 .so support |
| 10510 |
lt_prog_compiler_pic='-fPIC' |
| 10511 |
;; |
| 10512 |
m68k) |
| 10513 |
# FIXME: we need at least 68020 code to build shared libraries, but |
| 10514 |
# adding the '-m68020' flag to GCC prevents building anything better, |
| 10515 |
# like '-m68040'. |
| 10516 |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 10517 |
;; |
| 10518 |
esac |
| 10519 |
;; |
| 10520 |
|
| 10521 |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 10522 |
# PIC is the default for these OSes. |
| 10523 |
;; |
| 10524 |
|
| 10525 |
mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 10526 |
# This hack is so that the source file can tell whether it is being |
| 10527 |
# built for inclusion in a dll (and should export symbols for example). |
| 10528 |
# Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 10529 |
# (--disable-auto-import) libraries |
| 10530 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
| 10531 |
case $host_os in |
| 10532 |
os2*) |
| 10533 |
lt_prog_compiler_static='$wl-static' |
| 10534 |
;; |
| 10535 |
esac |
| 10536 |
;; |
| 10537 |
|
| 10538 |
darwin* | rhapsody*) |
| 10539 |
# PIC is the default on this platform |
| 10540 |
# Common symbols not allowed in MH_DYLIB files |
| 10541 |
lt_prog_compiler_pic='-fno-common' |
| 10542 |
;; |
| 10543 |
|
| 10544 |
haiku*) |
| 10545 |
# PIC is the default for Haiku. |
| 10546 |
# The "-static" flag exists, but is broken. |
| 10547 |
lt_prog_compiler_static= |
| 10548 |
;; |
| 10549 |
|
| 10550 |
hpux*) |
| 10551 |
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 10552 |
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 10553 |
# sets the default TLS model and affects inlining. |
| 10554 |
case $host_cpu in |
| 10555 |
hppa*64*) |
| 10556 |
# +Z the default |
| 10557 |
;; |
| 10558 |
*) |
| 10559 |
lt_prog_compiler_pic='-fPIC' |
| 10560 |
;; |
| 10561 |
esac |
| 10562 |
;; |
| 10563 |
|
| 10564 |
interix[3-9]*) |
| 10565 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 10566 |
# Instead, we relocate shared libraries at runtime. |
| 10567 |
;; |
| 10568 |
|
| 10569 |
msdosdjgpp*) |
| 10570 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
| 10571 |
# on systems that don't support them. |
| 10572 |
lt_prog_compiler_can_build_shared=no |
| 10573 |
enable_shared=no |
| 10574 |
;; |
| 10575 |
|
| 10576 |
*nto* | *qnx*) |
| 10577 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
| 10578 |
# it will coredump. |
| 10579 |
lt_prog_compiler_pic='-fPIC -shared' |
| 10580 |
;; |
| 10581 |
|
| 10582 |
sysv4*MP*) |
| 10583 |
if test -d /usr/nec; then |
| 10584 |
lt_prog_compiler_pic=-Kconform_pic |
| 10585 |
fi |
| 10586 |
;; |
| 10587 |
|
| 10588 |
*) |
| 10589 |
lt_prog_compiler_pic='-fPIC' |
| 10590 |
;; |
| 10591 |
esac |
| 10592 |
|
| 10593 |
case $cc_basename in |
| 10594 |
nvcc*) # Cuda Compiler Driver 2.2 |
| 10595 |
lt_prog_compiler_wl='-Xlinker ' |
| 10596 |
if test -n "$lt_prog_compiler_pic"; then |
| 10597 |
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 10598 |
fi |
| 10599 |
;; |
| 10600 |
esac |
| 10601 |
else |
| 10602 |
# PORTME Check for flag to pass linker flags through the system compiler. |
| 10603 |
case $host_os in |
| 10604 |
aix*) |
| 10605 |
lt_prog_compiler_wl='-Wl,' |
| 10606 |
if test ia64 = "$host_cpu"; then |
| 10607 |
# AIX 5 now supports IA64 processor |
| 10608 |
lt_prog_compiler_static='-Bstatic' |
| 10609 |
else |
| 10610 |
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 10611 |
fi |
| 10612 |
;; |
| 10613 |
|
| 10614 |
darwin* | rhapsody*) |
| 10615 |
# PIC is the default on this platform |
| 10616 |
# Common symbols not allowed in MH_DYLIB files |
| 10617 |
lt_prog_compiler_pic='-fno-common' |
| 10618 |
case $cc_basename in |
| 10619 |
nagfor*) |
| 10620 |
# NAG Fortran compiler |
| 10621 |
lt_prog_compiler_wl='-Wl,-Wl,,' |
| 10622 |
lt_prog_compiler_pic='-PIC' |
| 10623 |
lt_prog_compiler_static='-Bstatic' |
| 10624 |
;; |
| 10625 |
esac |
| 10626 |
;; |
| 10627 |
|
| 10628 |
mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 10629 |
# This hack is so that the source file can tell whether it is being |
| 10630 |
# built for inclusion in a dll (and should export symbols for example). |
| 10631 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
| 10632 |
case $host_os in |
| 10633 |
os2*) |
| 10634 |
lt_prog_compiler_static='$wl-static' |
| 10635 |
;; |
| 10636 |
esac |
| 10637 |
;; |
| 10638 |
|
| 10639 |
hpux9* | hpux10* | hpux11*) |
| 10640 |
lt_prog_compiler_wl='-Wl,' |
| 10641 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 10642 |
# not for PA HP-UX. |
| 10643 |
case $host_cpu in |
| 10644 |
hppa*64*|ia64*) |
| 10645 |
# +Z the default |
| 10646 |
;; |
| 10647 |
*) |
| 10648 |
lt_prog_compiler_pic='+Z' |
| 10649 |
;; |
| 10650 |
esac |
| 10651 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 10652 |
lt_prog_compiler_static='$wl-a ${wl}archive' |
| 10653 |
;; |
| 10654 |
|
| 10655 |
irix5* | irix6* | nonstopux*) |
| 10656 |
lt_prog_compiler_wl='-Wl,' |
| 10657 |
# PIC (with -KPIC) is the default. |
| 10658 |
lt_prog_compiler_static='-non_shared' |
| 10659 |
;; |
| 10660 |
|
| 10661 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 10662 |
case $cc_basename in |
| 10663 |
# old Intel for x86_64, which still supported -KPIC. |
| 10664 |
ecc*) |
| 10665 |
lt_prog_compiler_wl='-Wl,' |
| 10666 |
lt_prog_compiler_pic='-KPIC' |
| 10667 |
lt_prog_compiler_static='-static' |
| 10668 |
;; |
| 10669 |
# flang / f18. f95 an alias for gfortran or flang on Debian |
| 10670 |
flang* | f18* | f95*) |
| 10671 |
lt_prog_compiler_wl='-Wl,' |
| 10672 |
lt_prog_compiler_pic='-fPIC' |
| 10673 |
lt_prog_compiler_static='-static' |
| 10674 |
;; |
| 10675 |
# icc used to be incompatible with GCC. |
| 10676 |
# ICC 10 doesn't accept -KPIC any more. |
| 10677 |
icc* | ifort*) |
| 10678 |
lt_prog_compiler_wl='-Wl,' |
| 10679 |
lt_prog_compiler_pic='-fPIC' |
| 10680 |
lt_prog_compiler_static='-static' |
| 10681 |
;; |
| 10682 |
# Lahey Fortran 8.1. |
| 10683 |
lf95*) |
| 10684 |
lt_prog_compiler_wl='-Wl,' |
| 10685 |
lt_prog_compiler_pic='--shared' |
| 10686 |
lt_prog_compiler_static='--static' |
| 10687 |
;; |
| 10688 |
nagfor*) |
| 10689 |
# NAG Fortran compiler |
| 10690 |
lt_prog_compiler_wl='-Wl,-Wl,,' |
| 10691 |
lt_prog_compiler_pic='-PIC' |
| 10692 |
lt_prog_compiler_static='-Bstatic' |
| 10693 |
;; |
| 10694 |
tcc*) |
| 10695 |
# Fabrice Bellard et al's Tiny C Compiler |
| 10696 |
lt_prog_compiler_wl='-Wl,' |
| 10697 |
lt_prog_compiler_pic='-fPIC' |
| 10698 |
lt_prog_compiler_static='-static' |
| 10699 |
;; |
| 10700 |
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 10701 |
# Portland Group compilers (*not* the Pentium gcc compiler, |
| 10702 |
# which looks to be a dead project) |
| 10703 |
lt_prog_compiler_wl='-Wl,' |
| 10704 |
lt_prog_compiler_pic='-fpic' |
| 10705 |
lt_prog_compiler_static='-Bstatic' |
| 10706 |
;; |
| 10707 |
ccc*) |
| 10708 |
lt_prog_compiler_wl='-Wl,' |
| 10709 |
# All Alpha code is PIC. |
| 10710 |
lt_prog_compiler_static='-non_shared' |
| 10711 |
;; |
| 10712 |
xl* | bgxl* | bgf* | mpixl*) |
| 10713 |
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 10714 |
lt_prog_compiler_wl='-Wl,' |
| 10715 |
lt_prog_compiler_pic='-qpic' |
| 10716 |
lt_prog_compiler_static='-qstaticlink' |
| 10717 |
;; |
| 10718 |
*) |
| 10719 |
case `$CC -V 2>&1 | sed 5q` in |
| 10720 |
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| 10721 |
# Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 10722 |
lt_prog_compiler_pic='-KPIC' |
| 10723 |
lt_prog_compiler_static='-Bstatic' |
| 10724 |
lt_prog_compiler_wl='' |
| 10725 |
;; |
| 10726 |
*Sun\ F* | *Sun*Fortran*) |
| 10727 |
lt_prog_compiler_pic='-KPIC' |
| 10728 |
lt_prog_compiler_static='-Bstatic' |
| 10729 |
lt_prog_compiler_wl='-Qoption ld ' |
| 10730 |
;; |
| 10731 |
*Sun\ C*) |
| 10732 |
# Sun C 5.9 |
| 10733 |
lt_prog_compiler_pic='-KPIC' |
| 10734 |
lt_prog_compiler_static='-Bstatic' |
| 10735 |
lt_prog_compiler_wl='-Wl,' |
| 10736 |
;; |
| 10737 |
*Intel*\ [CF]*Compiler*) |
| 10738 |
lt_prog_compiler_wl='-Wl,' |
| 10739 |
lt_prog_compiler_pic='-fPIC' |
| 10740 |
lt_prog_compiler_static='-static' |
| 10741 |
;; |
| 10742 |
*Portland\ Group*) |
| 10743 |
lt_prog_compiler_wl='-Wl,' |
| 10744 |
lt_prog_compiler_pic='-fpic' |
| 10745 |
lt_prog_compiler_static='-Bstatic' |
| 10746 |
;; |
| 10747 |
esac |
| 10748 |
;; |
| 10749 |
esac |
| 10750 |
;; |
| 10751 |
|
| 10752 |
newsos6) |
| 10753 |
lt_prog_compiler_pic='-KPIC' |
| 10754 |
lt_prog_compiler_static='-Bstatic' |
| 10755 |
;; |
| 10756 |
|
| 10757 |
*nto* | *qnx*) |
| 10758 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
| 10759 |
# it will coredump. |
| 10760 |
lt_prog_compiler_pic='-fPIC -shared' |
| 10761 |
;; |
| 10762 |
|
| 10763 |
osf3* | osf4* | osf5*) |
| 10764 |
lt_prog_compiler_wl='-Wl,' |
| 10765 |
# All OSF/1 code is PIC. |
| 10766 |
lt_prog_compiler_static='-non_shared' |
| 10767 |
;; |
| 10768 |
|
| 10769 |
rdos*) |
| 10770 |
lt_prog_compiler_static='-non_shared' |
| 10771 |
;; |
| 10772 |
|
| 10773 |
solaris*) |
| 10774 |
lt_prog_compiler_pic='-KPIC' |
| 10775 |
lt_prog_compiler_static='-Bstatic' |
| 10776 |
case $cc_basename in |
| 10777 |
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 10778 |
lt_prog_compiler_wl='-Qoption ld ';; |
| 10779 |
*) |
| 10780 |
lt_prog_compiler_wl='-Wl,';; |
| 10781 |
esac |
| 10782 |
;; |
| 10783 |
|
| 10784 |
sunos4*) |
| 10785 |
lt_prog_compiler_wl='-Qoption ld ' |
| 10786 |
lt_prog_compiler_pic='-PIC' |
| 10787 |
lt_prog_compiler_static='-Bstatic' |
| 10788 |
;; |
| 10789 |
|
| 10790 |
sysv4 | sysv4.2uw2* | sysv4.3*) |
| 10791 |
lt_prog_compiler_wl='-Wl,' |
| 10792 |
lt_prog_compiler_pic='-KPIC' |
| 10793 |
lt_prog_compiler_static='-Bstatic' |
| 10794 |
;; |
| 10795 |
|
| 10796 |
sysv4*MP*) |
| 10797 |
if test -d /usr/nec; then |
| 10798 |
lt_prog_compiler_pic='-Kconform_pic' |
| 10799 |
lt_prog_compiler_static='-Bstatic' |
| 10800 |
fi |
| 10801 |
;; |
| 10802 |
|
| 10803 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 10804 |
lt_prog_compiler_wl='-Wl,' |
| 10805 |
lt_prog_compiler_pic='-KPIC' |
| 10806 |
lt_prog_compiler_static='-Bstatic' |
| 10807 |
;; |
| 10808 |
|
| 10809 |
unicos*) |
| 10810 |
lt_prog_compiler_wl='-Wl,' |
| 10811 |
lt_prog_compiler_can_build_shared=no |
| 10812 |
;; |
| 10813 |
|
| 10814 |
uts4*) |
| 10815 |
lt_prog_compiler_pic='-pic' |
| 10816 |
lt_prog_compiler_static='-Bstatic' |
| 10817 |
;; |
| 10818 |
|
| 10819 |
*) |
| 10820 |
lt_prog_compiler_can_build_shared=no |
| 10821 |
;; |
| 10822 |
esac |
| 10823 |
fi |
| 10824 |
|
| 10825 |
case $host_os in |
| 10826 |
# For platforms that do not support PIC, -DPIC is meaningless: |
| 10827 |
*djgpp*) |
| 10828 |
lt_prog_compiler_pic= |
| 10829 |
;; |
| 10830 |
*) |
| 10831 |
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 10832 |
;; |
| 10833 |
esac |
| 10834 |
|
| 10835 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 10836 |
$as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 10837 |
if ${lt_cv_prog_compiler_pic+:} false; then : |
| 10838 |
$as_echo_n "(cached) " >&6 |
| 10839 |
else |
| 10840 |
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 10841 |
fi |
| 10842 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 10843 |
$as_echo "$lt_cv_prog_compiler_pic" >&6; } |
| 10844 |
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 10845 |
|
| 10846 |
# |
| 10847 |
# Check to make sure the PIC flag actually works. |
| 10848 |
# |
| 10849 |
if test -n "$lt_prog_compiler_pic"; then |
| 10850 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 10851 |
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 10852 |
if ${lt_cv_prog_compiler_pic_works+:} false; then : |
| 10853 |
$as_echo_n "(cached) " >&6 |
| 10854 |
else |
| 10855 |
lt_cv_prog_compiler_pic_works=no |
| 10856 |
ac_outfile=conftest.$ac_objext |
| 10857 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10858 |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
| 10859 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 10860 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 10861 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 10862 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10863 |
# The option is referenced via a variable to avoid confusing sed. |
| 10864 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 10865 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 10866 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10867 |
-e 's:$: $lt_compiler_flag:'` |
| 10868 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 10869 |
(eval "$lt_compile" 2>conftest.err) |
| 10870 |
ac_status=$? |
| 10871 |
cat conftest.err >&5 |
| 10872 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10873 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 10874 |
# The compiler can only warn and ignore the option if not recognized |
| 10875 |
# So say no if there are warnings other than the usual output. |
| 10876 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 10877 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 10878 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 10879 |
lt_cv_prog_compiler_pic_works=yes |
| 10880 |
fi |
| 10881 |
fi |
| 10882 |
$RM conftest* |
| 10883 |
|
| 10884 |
fi |
| 10885 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 10886 |
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 10887 |
|
| 10888 |
if test yes = "$lt_cv_prog_compiler_pic_works"; then |
| 10889 |
case $lt_prog_compiler_pic in |
| 10890 |
"" | " "*) ;; |
| 10891 |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 10892 |
esac |
| 10893 |
else |
| 10894 |
lt_prog_compiler_pic= |
| 10895 |
lt_prog_compiler_can_build_shared=no |
| 10896 |
fi |
| 10897 |
|
| 10898 |
fi |
| 10899 |
|
| 10900 |
|
| 10901 |
|
| 10902 |
|
| 10903 |
|
| 10904 |
|
| 10905 |
|
| 10906 |
|
| 10907 |
|
| 10908 |
|
| 10909 |
|
| 10910 |
# |
| 10911 |
# Check to make sure the static flag actually works. |
| 10912 |
# |
| 10913 |
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 10914 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 10915 |
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 10916 |
if ${lt_cv_prog_compiler_static_works+:} false; then : |
| 10917 |
$as_echo_n "(cached) " >&6 |
| 10918 |
else |
| 10919 |
lt_cv_prog_compiler_static_works=no |
| 10920 |
save_LDFLAGS=$LDFLAGS |
| 10921 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 10922 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 10923 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 10924 |
# The linker can only warn and ignore the option if not recognized |
| 10925 |
# So say no if there are warnings |
| 10926 |
if test -s conftest.err; then |
| 10927 |
# Append any errors to the config.log. |
| 10928 |
cat conftest.err 1>&5 |
| 10929 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 10930 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 10931 |
if diff conftest.exp conftest.er2 >/dev/null; then |
| 10932 |
lt_cv_prog_compiler_static_works=yes |
| 10933 |
fi |
| 10934 |
else |
| 10935 |
lt_cv_prog_compiler_static_works=yes |
| 10936 |
fi |
| 10937 |
fi |
| 10938 |
$RM -r conftest* |
| 10939 |
LDFLAGS=$save_LDFLAGS |
| 10940 |
|
| 10941 |
fi |
| 10942 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 10943 |
$as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 10944 |
|
| 10945 |
if test yes = "$lt_cv_prog_compiler_static_works"; then |
| 10946 |
: |
| 10947 |
else |
| 10948 |
lt_prog_compiler_static= |
| 10949 |
fi |
| 10950 |
|
| 10951 |
|
| 10952 |
|
| 10953 |
|
| 10954 |
|
| 10955 |
|
| 10956 |
|
| 10957 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 10958 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 10959 |
if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 10960 |
$as_echo_n "(cached) " >&6 |
| 10961 |
else |
| 10962 |
lt_cv_prog_compiler_c_o=no |
| 10963 |
$RM -r conftest 2>/dev/null |
| 10964 |
mkdir conftest |
| 10965 |
cd conftest |
| 10966 |
mkdir out |
| 10967 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10968 |
|
| 10969 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 10970 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 10971 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 10972 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 10973 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10974 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 10975 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 10976 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10977 |
-e 's:$: $lt_compiler_flag:'` |
| 10978 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 10979 |
(eval "$lt_compile" 2>out/conftest.err) |
| 10980 |
ac_status=$? |
| 10981 |
cat out/conftest.err >&5 |
| 10982 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10983 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 10984 |
then |
| 10985 |
# The compiler can only warn and ignore the option if not recognized |
| 10986 |
# So say no if there are warnings |
| 10987 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 10988 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 10989 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 10990 |
lt_cv_prog_compiler_c_o=yes |
| 10991 |
fi |
| 10992 |
fi |
| 10993 |
chmod u+w . 2>&5 |
| 10994 |
$RM conftest* |
| 10995 |
# SGI C++ compiler will create directory out/ii_files/ for |
| 10996 |
# template instantiation |
| 10997 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 10998 |
$RM out/* && rmdir out |
| 10999 |
cd .. |
| 11000 |
$RM -r conftest |
| 11001 |
$RM conftest* |
| 11002 |
|
| 11003 |
fi |
| 11004 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 11005 |
$as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 11006 |
|
| 11007 |
|
| 11008 |
|
| 11009 |
|
| 11010 |
|
| 11011 |
|
| 11012 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 11013 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 11014 |
if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 11015 |
$as_echo_n "(cached) " >&6 |
| 11016 |
else |
| 11017 |
lt_cv_prog_compiler_c_o=no |
| 11018 |
$RM -r conftest 2>/dev/null |
| 11019 |
mkdir conftest |
| 11020 |
cd conftest |
| 11021 |
mkdir out |
| 11022 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11023 |
|
| 11024 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 11025 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 11026 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 11027 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 11028 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11029 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 11030 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 11031 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11032 |
-e 's:$: $lt_compiler_flag:'` |
| 11033 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 11034 |
(eval "$lt_compile" 2>out/conftest.err) |
| 11035 |
ac_status=$? |
| 11036 |
cat out/conftest.err >&5 |
| 11037 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11038 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 11039 |
then |
| 11040 |
# The compiler can only warn and ignore the option if not recognized |
| 11041 |
# So say no if there are warnings |
| 11042 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 11043 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 11044 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 11045 |
lt_cv_prog_compiler_c_o=yes |
| 11046 |
fi |
| 11047 |
fi |
| 11048 |
chmod u+w . 2>&5 |
| 11049 |
$RM conftest* |
| 11050 |
# SGI C++ compiler will create directory out/ii_files/ for |
| 11051 |
# template instantiation |
| 11052 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 11053 |
$RM out/* && rmdir out |
| 11054 |
cd .. |
| 11055 |
$RM -r conftest |
| 11056 |
$RM conftest* |
| 11057 |
|
| 11058 |
fi |
| 11059 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 11060 |
$as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 11061 |
|
| 11062 |
|
| 11063 |
|
| 11064 |
|
| 11065 |
hard_links=nottested |
| 11066 |
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then |
| 11067 |
# do not overwrite the value of need_locks provided by the user |
| 11068 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 11069 |
$as_echo_n "checking if we can lock with hard links... " >&6; } |
| 11070 |
hard_links=yes |
| 11071 |
$RM conftest* |
| 11072 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 11073 |
touch conftest.a |
| 11074 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
| 11075 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 11076 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 11077 |
$as_echo "$hard_links" >&6; } |
| 11078 |
if test no = "$hard_links"; then |
| 11079 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
| 11080 |
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
| 11081 |
need_locks=warn |
| 11082 |
fi |
| 11083 |
else |
| 11084 |
need_locks=no |
| 11085 |
fi |
| 11086 |
|
| 11087 |
|
| 11088 |
|
| 11089 |
|
| 11090 |
|
| 11091 |
|
| 11092 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 11093 |
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 11094 |
|
| 11095 |
runpath_var= |
| 11096 |
allow_undefined_flag= |
| 11097 |
always_export_symbols=no |
| 11098 |
archive_cmds= |
| 11099 |
archive_expsym_cmds= |
| 11100 |
compiler_needs_object=no |
| 11101 |
enable_shared_with_static_runtimes=no |
| 11102 |
export_dynamic_flag_spec= |
| 11103 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 11104 |
hardcode_automatic=no |
| 11105 |
hardcode_direct=no |
| 11106 |
hardcode_direct_absolute=no |
| 11107 |
hardcode_libdir_flag_spec= |
| 11108 |
hardcode_libdir_separator= |
| 11109 |
hardcode_minus_L=no |
| 11110 |
hardcode_shlibpath_var=unsupported |
| 11111 |
inherit_rpath=no |
| 11112 |
link_all_deplibs=unknown |
| 11113 |
module_cmds= |
| 11114 |
module_expsym_cmds= |
| 11115 |
old_archive_from_new_cmds= |
| 11116 |
old_archive_from_expsyms_cmds= |
| 11117 |
thread_safe_flag_spec= |
| 11118 |
whole_archive_flag_spec= |
| 11119 |
# include_expsyms should be a list of space-separated symbols to be *always* |
| 11120 |
# included in the symbol list |
| 11121 |
include_expsyms= |
| 11122 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
| 11123 |
# it will be wrapped by ' (' and ')$', so one must not match beginning or |
| 11124 |
# end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', |
| 11125 |
# as well as any symbol that contains 'd'. |
| 11126 |
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 11127 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 11128 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
| 11129 |
# the symbol is explicitly referenced. Since portable code cannot |
| 11130 |
# rely on this symbol name, it's probably fine to never include it in |
| 11131 |
# preloaded symbol tables. |
| 11132 |
# Exclude shared library initialization/finalization symbols. |
| 11133 |
extract_expsyms_cmds= |
| 11134 |
|
| 11135 |
case $host_os in |
| 11136 |
cygwin* | mingw* | pw32* | cegcc*) |
| 11137 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 11138 |
# When not using gcc, we currently assume that we are using |
| 11139 |
# Microsoft Visual C++. |
| 11140 |
if test yes != "$GCC"; then |
| 11141 |
with_gnu_ld=no |
| 11142 |
fi |
| 11143 |
;; |
| 11144 |
interix*) |
| 11145 |
# we just hope/assume this is gcc and not c89 (= MSVC++) |
| 11146 |
with_gnu_ld=yes |
| 11147 |
;; |
| 11148 |
openbsd* | bitrig*) |
| 11149 |
with_gnu_ld=no |
| 11150 |
;; |
| 11151 |
linux* | k*bsd*-gnu | gnu*) |
| 11152 |
link_all_deplibs=no |
| 11153 |
;; |
| 11154 |
esac |
| 11155 |
|
| 11156 |
ld_shlibs=yes |
| 11157 |
|
| 11158 |
# On some targets, GNU ld is compatible enough with the native linker |
| 11159 |
# that we're better off using the native interface for both. |
| 11160 |
lt_use_gnu_ld_interface=no |
| 11161 |
if test yes = "$with_gnu_ld"; then |
| 11162 |
case $host_os in |
| 11163 |
aix*) |
| 11164 |
# The AIX port of GNU ld has always aspired to compatibility |
| 11165 |
# with the native linker. However, as the warning in the GNU ld |
| 11166 |
# block says, versions before 2.19.5* couldn't really create working |
| 11167 |
# shared libraries, regardless of the interface used. |
| 11168 |
case `$LD -v 2>&1` in |
| 11169 |
*\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 11170 |
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 11171 |
*\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 11172 |
*) |
| 11173 |
lt_use_gnu_ld_interface=yes |
| 11174 |
;; |
| 11175 |
esac |
| 11176 |
;; |
| 11177 |
*) |
| 11178 |
lt_use_gnu_ld_interface=yes |
| 11179 |
;; |
| 11180 |
esac |
| 11181 |
fi |
| 11182 |
|
| 11183 |
if test yes = "$lt_use_gnu_ld_interface"; then |
| 11184 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
| 11185 |
wlarc='$wl' |
| 11186 |
|
| 11187 |
# Set some defaults for GNU ld with shared library support. These |
| 11188 |
# are reset later if shared libraries are not supported. Putting them |
| 11189 |
# here allows them to be overridden if necessary. |
| 11190 |
runpath_var=LD_RUN_PATH |
| 11191 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 11192 |
export_dynamic_flag_spec='$wl--export-dynamic' |
| 11193 |
# ancient GNU ld didn't support --whole-archive et. al. |
| 11194 |
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 11195 |
whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
| 11196 |
else |
| 11197 |
whole_archive_flag_spec= |
| 11198 |
fi |
| 11199 |
supports_anon_versioning=no |
| 11200 |
case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
| 11201 |
*GNU\ gold*) supports_anon_versioning=yes ;; |
| 11202 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 11203 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 11204 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 11205 |
*\ 2.11.*) ;; # other 2.11 versions |
| 11206 |
*) supports_anon_versioning=yes ;; |
| 11207 |
esac |
| 11208 |
|
| 11209 |
# See if GNU ld supports shared libraries. |
| 11210 |
case $host_os in |
| 11211 |
aix[3-9]*) |
| 11212 |
# On AIX/PPC, the GNU linker is very broken |
| 11213 |
if test ia64 != "$host_cpu"; then |
| 11214 |
ld_shlibs=no |
| 11215 |
cat <<_LT_EOF 1>&2 |
| 11216 |
|
| 11217 |
*** Warning: the GNU linker, at least up to release 2.19, is reported |
| 11218 |
*** to be unable to reliably create shared libraries on AIX. |
| 11219 |
*** Therefore, libtool is disabling shared libraries support. If you |
| 11220 |
*** really care for shared libraries, you may want to install binutils |
| 11221 |
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 11222 |
*** You will then need to restart the configuration process. |
| 11223 |
|
| 11224 |
_LT_EOF |
| 11225 |
fi |
| 11226 |
;; |
| 11227 |
|
| 11228 |
amigaos*) |
| 11229 |
case $host_cpu in |
| 11230 |
powerpc) |
| 11231 |
# see comment about AmigaOS4 .so support |
| 11232 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11233 |
archive_expsym_cmds='' |
| 11234 |
;; |
| 11235 |
m68k) |
| 11236 |
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)' |
| 11237 |
hardcode_libdir_flag_spec='-L$libdir' |
| 11238 |
hardcode_minus_L=yes |
| 11239 |
;; |
| 11240 |
esac |
| 11241 |
;; |
| 11242 |
|
| 11243 |
beos*) |
| 11244 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11245 |
allow_undefined_flag=unsupported |
| 11246 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 11247 |
# support --undefined. This deserves some investigation. FIXME |
| 11248 |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11249 |
else |
| 11250 |
ld_shlibs=no |
| 11251 |
fi |
| 11252 |
;; |
| 11253 |
|
| 11254 |
cygwin* | mingw* | pw32* | cegcc*) |
| 11255 |
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 11256 |
# as there is no search path for DLLs. |
| 11257 |
hardcode_libdir_flag_spec='-L$libdir' |
| 11258 |
export_dynamic_flag_spec='$wl--export-all-symbols' |
| 11259 |
allow_undefined_flag=unsupported |
| 11260 |
always_export_symbols=no |
| 11261 |
enable_shared_with_static_runtimes=yes |
| 11262 |
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' |
| 11263 |
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 11264 |
|
| 11265 |
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 11266 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 11267 |
# If the export-symbols file already is a .def file, use it as |
| 11268 |
# is; otherwise, prepend EXPORTS... |
| 11269 |
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 11270 |
cp $export_symbols $output_objdir/$soname.def; |
| 11271 |
else |
| 11272 |
echo EXPORTS > $output_objdir/$soname.def; |
| 11273 |
cat $export_symbols >> $output_objdir/$soname.def; |
| 11274 |
fi~ |
| 11275 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 11276 |
else |
| 11277 |
ld_shlibs=no |
| 11278 |
fi |
| 11279 |
;; |
| 11280 |
|
| 11281 |
haiku*) |
| 11282 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11283 |
link_all_deplibs=yes |
| 11284 |
;; |
| 11285 |
|
| 11286 |
os2*) |
| 11287 |
hardcode_libdir_flag_spec='-L$libdir' |
| 11288 |
hardcode_minus_L=yes |
| 11289 |
allow_undefined_flag=unsupported |
| 11290 |
shrext_cmds=.dll |
| 11291 |
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 11292 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 11293 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 11294 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 11295 |
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 11296 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 11297 |
emximp -o $lib $output_objdir/$libname.def' |
| 11298 |
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 11299 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 11300 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 11301 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 11302 |
prefix_cmds="$SED"~ |
| 11303 |
if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 11304 |
prefix_cmds="$prefix_cmds -e 1d"; |
| 11305 |
fi~ |
| 11306 |
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 11307 |
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 11308 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 11309 |
emximp -o $lib $output_objdir/$libname.def' |
| 11310 |
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 11311 |
enable_shared_with_static_runtimes=yes |
| 11312 |
;; |
| 11313 |
|
| 11314 |
interix[3-9]*) |
| 11315 |
hardcode_direct=no |
| 11316 |
hardcode_shlibpath_var=no |
| 11317 |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 11318 |
export_dynamic_flag_spec='$wl-E' |
| 11319 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 11320 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
| 11321 |
# default) and relocated if they conflict, which is a slow very memory |
| 11322 |
# consuming and fragmenting process. To avoid this, we pick a random, |
| 11323 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 11324 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 11325 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 11326 |
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' |
| 11327 |
;; |
| 11328 |
|
| 11329 |
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 11330 |
tmp_diet=no |
| 11331 |
if test linux-dietlibc = "$host_os"; then |
| 11332 |
case $cc_basename in |
| 11333 |
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 11334 |
esac |
| 11335 |
fi |
| 11336 |
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 11337 |
&& test no = "$tmp_diet" |
| 11338 |
then |
| 11339 |
tmp_addflag=' $pic_flag' |
| 11340 |
tmp_sharedflag='-shared' |
| 11341 |
case $cc_basename,$host_cpu in |
| 11342 |
pgcc*) # Portland Group C compiler |
| 11343 |
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' |
| 11344 |
tmp_addflag=' $pic_flag' |
| 11345 |
;; |
| 11346 |
pgf77* | pgf90* | pgf95* | pgfortran*) |
| 11347 |
# Portland Group f77 and f90 compilers |
| 11348 |
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' |
| 11349 |
tmp_addflag=' $pic_flag -Mnomain' ;; |
| 11350 |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 11351 |
tmp_addflag=' -i_dynamic' ;; |
| 11352 |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 11353 |
tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 11354 |
ifc* | ifort*) # Intel Fortran compiler |
| 11355 |
tmp_addflag=' -nofor_main' ;; |
| 11356 |
lf95*) # Lahey Fortran 8.1 |
| 11357 |
whole_archive_flag_spec= |
| 11358 |
tmp_sharedflag='--shared' ;; |
| 11359 |
nagfor*) # NAGFOR 5.3 |
| 11360 |
tmp_sharedflag='-Wl,-shared' ;; |
| 11361 |
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 11362 |
tmp_sharedflag='-qmkshrobj' |
| 11363 |
tmp_addflag= ;; |
| 11364 |
nvcc*) # Cuda Compiler Driver 2.2 |
| 11365 |
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' |
| 11366 |
compiler_needs_object=yes |
| 11367 |
;; |
| 11368 |
esac |
| 11369 |
case `$CC -V 2>&1 | sed 5q` in |
| 11370 |
*Sun\ C*) # Sun C 5.9 |
| 11371 |
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' |
| 11372 |
compiler_needs_object=yes |
| 11373 |
tmp_sharedflag='-G' ;; |
| 11374 |
*Sun\ F*) # Sun Fortran 8.3 |
| 11375 |
tmp_sharedflag='-G' ;; |
| 11376 |
esac |
| 11377 |
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11378 |
|
| 11379 |
if test yes = "$supports_anon_versioning"; then |
| 11380 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 11381 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 11382 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 11383 |
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
| 11384 |
fi |
| 11385 |
|
| 11386 |
case $cc_basename in |
| 11387 |
tcc*) |
| 11388 |
export_dynamic_flag_spec='-rdynamic' |
| 11389 |
;; |
| 11390 |
xlf* | bgf* | bgxlf* | mpixlf*) |
| 11391 |
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 11392 |
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 11393 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 11394 |
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| 11395 |
if test yes = "$supports_anon_versioning"; then |
| 11396 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 11397 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 11398 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 11399 |
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 11400 |
fi |
| 11401 |
;; |
| 11402 |
esac |
| 11403 |
else |
| 11404 |
ld_shlibs=no |
| 11405 |
fi |
| 11406 |
;; |
| 11407 |
|
| 11408 |
netbsd* | netbsdelf*-gnu) |
| 11409 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 11410 |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 11411 |
wlarc= |
| 11412 |
else |
| 11413 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11414 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 11415 |
fi |
| 11416 |
;; |
| 11417 |
|
| 11418 |
solaris*) |
| 11419 |
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 11420 |
ld_shlibs=no |
| 11421 |
cat <<_LT_EOF 1>&2 |
| 11422 |
|
| 11423 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 11424 |
*** create shared libraries on Solaris systems. Therefore, libtool |
| 11425 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
| 11426 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
| 11427 |
*** your PATH or compiler configuration so that the native linker is |
| 11428 |
*** used, and then restart. |
| 11429 |
|
| 11430 |
_LT_EOF |
| 11431 |
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11432 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11433 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 11434 |
else |
| 11435 |
ld_shlibs=no |
| 11436 |
fi |
| 11437 |
;; |
| 11438 |
|
| 11439 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 11440 |
case `$LD -v 2>&1` in |
| 11441 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 11442 |
ld_shlibs=no |
| 11443 |
cat <<_LT_EOF 1>&2 |
| 11444 |
|
| 11445 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
| 11446 |
*** reliably create shared libraries on SCO systems. Therefore, libtool |
| 11447 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
| 11448 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 11449 |
*** your PATH or compiler configuration so that the native linker is |
| 11450 |
*** used, and then restart. |
| 11451 |
|
| 11452 |
_LT_EOF |
| 11453 |
;; |
| 11454 |
*) |
| 11455 |
# For security reasons, it is highly recommended that you always |
| 11456 |
# use absolute paths for naming shared libraries, and exclude the |
| 11457 |
# DT_RUNPATH tag from executables and libraries. But doing so |
| 11458 |
# requires that you compile everything twice, which is a pain. |
| 11459 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11460 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 11461 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11462 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 11463 |
else |
| 11464 |
ld_shlibs=no |
| 11465 |
fi |
| 11466 |
;; |
| 11467 |
esac |
| 11468 |
;; |
| 11469 |
|
| 11470 |
sunos4*) |
| 11471 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 11472 |
wlarc= |
| 11473 |
hardcode_direct=yes |
| 11474 |
hardcode_shlibpath_var=no |
| 11475 |
;; |
| 11476 |
|
| 11477 |
*) |
| 11478 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11479 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11480 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 11481 |
else |
| 11482 |
ld_shlibs=no |
| 11483 |
fi |
| 11484 |
;; |
| 11485 |
esac |
| 11486 |
|
| 11487 |
if test no = "$ld_shlibs"; then |
| 11488 |
runpath_var= |
| 11489 |
hardcode_libdir_flag_spec= |
| 11490 |
export_dynamic_flag_spec= |
| 11491 |
whole_archive_flag_spec= |
| 11492 |
fi |
| 11493 |
else |
| 11494 |
# PORTME fill in a description of your system's linker (not GNU ld) |
| 11495 |
case $host_os in |
| 11496 |
aix3*) |
| 11497 |
allow_undefined_flag=unsupported |
| 11498 |
always_export_symbols=yes |
| 11499 |
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' |
| 11500 |
# Note: this linker hardcodes the directories in LIBPATH if there |
| 11501 |
# are no directories specified by -L. |
| 11502 |
hardcode_minus_L=yes |
| 11503 |
if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
| 11504 |
# Neither direct hardcoding nor static linking is supported with a |
| 11505 |
# broken collect2. |
| 11506 |
hardcode_direct=unsupported |
| 11507 |
fi |
| 11508 |
;; |
| 11509 |
|
| 11510 |
aix[4-9]*) |
| 11511 |
if test ia64 = "$host_cpu"; then |
| 11512 |
# On IA64, the linker does run time linking by default, so we don't |
| 11513 |
# have to do anything special. |
| 11514 |
aix_use_runtimelinking=no |
| 11515 |
exp_sym_flag='-Bexport' |
| 11516 |
no_entry_flag= |
| 11517 |
else |
| 11518 |
# If we're using GNU nm, then we don't want the "-C" option. |
| 11519 |
# -C means demangle to GNU nm, but means don't demangle to AIX nm. |
| 11520 |
# Without the "-l" option, or with the "-B" option, AIX nm treats |
| 11521 |
# weak defined symbols like other global defined symbols, whereas |
| 11522 |
# GNU nm marks them as "W". |
| 11523 |
# While the 'weak' keyword is ignored in the Export File, we need |
| 11524 |
# it in the Import File for the 'aix-soname' feature, so we have |
| 11525 |
# to replace the "-B" option with "-P" for AIX nm. |
| 11526 |
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 11527 |
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
| 11528 |
else |
| 11529 |
export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
| 11530 |
fi |
| 11531 |
aix_use_runtimelinking=no |
| 11532 |
|
| 11533 |
# Test if we are trying to use run time linking or normal |
| 11534 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 11535 |
# have runtime linking enabled, and use it for executables. |
| 11536 |
# For shared libraries, we enable/disable runtime linking |
| 11537 |
# depending on the kind of the shared library created - |
| 11538 |
# when "with_aix_soname,aix_use_runtimelinking" is: |
| 11539 |
# "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
| 11540 |
# "aix,yes" lib.so shared, rtl:yes, for executables |
| 11541 |
# lib.a static archive |
| 11542 |
# "both,no" lib.so.V(shr.o) shared, rtl:yes |
| 11543 |
# lib.a(lib.so.V) shared, rtl:no, for executables |
| 11544 |
# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 11545 |
# lib.a(lib.so.V) shared, rtl:no |
| 11546 |
# "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 11547 |
# lib.a static archive |
| 11548 |
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 11549 |
for ld_flag in $LDFLAGS; do |
| 11550 |
if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
| 11551 |
aix_use_runtimelinking=yes |
| 11552 |
break |
| 11553 |
fi |
| 11554 |
done |
| 11555 |
if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 11556 |
# With aix-soname=svr4, we create the lib.so.V shared archives only, |
| 11557 |
# so we don't have lib.a shared libs to link our executables. |
| 11558 |
# We have to force runtime linking in this case. |
| 11559 |
aix_use_runtimelinking=yes |
| 11560 |
LDFLAGS="$LDFLAGS -Wl,-brtl" |
| 11561 |
fi |
| 11562 |
;; |
| 11563 |
esac |
| 11564 |
|
| 11565 |
exp_sym_flag='-bexport' |
| 11566 |
no_entry_flag='-bnoentry' |
| 11567 |
fi |
| 11568 |
|
| 11569 |
# When large executables or shared objects are built, AIX ld can |
| 11570 |
# have problems creating the table of contents. If linking a library |
| 11571 |
# or program results in "error TOC overflow" add -mminimal-toc to |
| 11572 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 11573 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 11574 |
|
| 11575 |
archive_cmds='' |
| 11576 |
hardcode_direct=yes |
| 11577 |
hardcode_direct_absolute=yes |
| 11578 |
hardcode_libdir_separator=':' |
| 11579 |
link_all_deplibs=yes |
| 11580 |
file_list_spec='$wl-f,' |
| 11581 |
case $with_aix_soname,$aix_use_runtimelinking in |
| 11582 |
aix,*) ;; # traditional, no import file |
| 11583 |
svr4,* | *,yes) # use import file |
| 11584 |
# The Import File defines what to hardcode. |
| 11585 |
hardcode_direct=no |
| 11586 |
hardcode_direct_absolute=no |
| 11587 |
;; |
| 11588 |
esac |
| 11589 |
|
| 11590 |
if test yes = "$GCC"; then |
| 11591 |
case $host_os in aix4.[012]|aix4.[012].*) |
| 11592 |
# We only want to do this on AIX 4.2 and lower, the check |
| 11593 |
# below for broken collect2 doesn't work under 4.3+ |
| 11594 |
collect2name=`$CC -print-prog-name=collect2` |
| 11595 |
if test -f "$collect2name" && |
| 11596 |
strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 11597 |
then |
| 11598 |
# We have reworked collect2 |
| 11599 |
: |
| 11600 |
else |
| 11601 |
# We have old collect2 |
| 11602 |
hardcode_direct=unsupported |
| 11603 |
# It fails to find uninstalled libraries when the uninstalled |
| 11604 |
# path is not listed in the libpath. Setting hardcode_minus_L |
| 11605 |
# to unsupported forces relinking |
| 11606 |
hardcode_minus_L=yes |
| 11607 |
hardcode_libdir_flag_spec='-L$libdir' |
| 11608 |
hardcode_libdir_separator= |
| 11609 |
fi |
| 11610 |
;; |
| 11611 |
esac |
| 11612 |
shared_flag='-shared' |
| 11613 |
if test yes = "$aix_use_runtimelinking"; then |
| 11614 |
shared_flag="$shared_flag "'$wl-G' |
| 11615 |
fi |
| 11616 |
# Need to ensure runtime linking is disabled for the traditional |
| 11617 |
# shared library, or the linker may eventually find shared libraries |
| 11618 |
# /with/ Import File - we do not want to mix them. |
| 11619 |
shared_flag_aix='-shared' |
| 11620 |
shared_flag_svr4='-shared $wl-G' |
| 11621 |
else |
| 11622 |
# not using gcc |
| 11623 |
if test ia64 = "$host_cpu"; then |
| 11624 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 11625 |
# chokes on -Wl,-G. The following line is correct: |
| 11626 |
shared_flag='-G' |
| 11627 |
else |
| 11628 |
if test yes = "$aix_use_runtimelinking"; then |
| 11629 |
shared_flag='$wl-G' |
| 11630 |
else |
| 11631 |
shared_flag='$wl-bM:SRE' |
| 11632 |
fi |
| 11633 |
shared_flag_aix='$wl-bM:SRE' |
| 11634 |
shared_flag_svr4='$wl-G' |
| 11635 |
fi |
| 11636 |
fi |
| 11637 |
|
| 11638 |
export_dynamic_flag_spec='$wl-bexpall' |
| 11639 |
# It seems that -bexpall does not export symbols beginning with |
| 11640 |
# underscore (_), so it is better to generate a list of symbols to export. |
| 11641 |
always_export_symbols=yes |
| 11642 |
if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 11643 |
# Warning - without using the other runtime loading flags (-brtl), |
| 11644 |
# -berok will link without error, but may produce a broken library. |
| 11645 |
allow_undefined_flag='-berok' |
| 11646 |
# Determine the default libpath from the value encoded in an |
| 11647 |
# empty executable. |
| 11648 |
if test set = "${lt_cv_aix_libpath+set}"; then |
| 11649 |
aix_libpath=$lt_cv_aix_libpath |
| 11650 |
else |
| 11651 |
if ${lt_cv_aix_libpath_+:} false; then : |
| 11652 |
$as_echo_n "(cached) " >&6 |
| 11653 |
else |
| 11654 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11655 |
/* end confdefs.h. */ |
| 11656 |
|
| 11657 |
int |
| 11658 |
main () |
| 11659 |
{ |
| 11660 |
|
| 11661 |
; |
| 11662 |
return 0; |
| 11663 |
} |
| 11664 |
_ACEOF |
| 11665 |
if ac_fn_c_try_link "$LINENO"; then : |
| 11666 |
|
| 11667 |
lt_aix_libpath_sed=' |
| 11668 |
/Import File Strings/,/^$/ { |
| 11669 |
/^0/ { |
| 11670 |
s/^0 *\([^ ]*\) *$/\1/ |
| 11671 |
p |
| 11672 |
} |
| 11673 |
}' |
| 11674 |
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11675 |
# Check for a 64-bit object if we didn't find anything. |
| 11676 |
if test -z "$lt_cv_aix_libpath_"; then |
| 11677 |
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11678 |
fi |
| 11679 |
fi |
| 11680 |
rm -f core conftest.err conftest.$ac_objext \ |
| 11681 |
conftest$ac_exeext conftest.$ac_ext |
| 11682 |
if test -z "$lt_cv_aix_libpath_"; then |
| 11683 |
lt_cv_aix_libpath_=/usr/lib:/lib |
| 11684 |
fi |
| 11685 |
|
| 11686 |
fi |
| 11687 |
|
| 11688 |
aix_libpath=$lt_cv_aix_libpath_ |
| 11689 |
fi |
| 11690 |
|
| 11691 |
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
| 11692 |
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag |
| 11693 |
else |
| 11694 |
if test ia64 = "$host_cpu"; then |
| 11695 |
hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' |
| 11696 |
allow_undefined_flag="-z nodefs" |
| 11697 |
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" |
| 11698 |
else |
| 11699 |
# Determine the default libpath from the value encoded in an |
| 11700 |
# empty executable. |
| 11701 |
if test set = "${lt_cv_aix_libpath+set}"; then |
| 11702 |
aix_libpath=$lt_cv_aix_libpath |
| 11703 |
else |
| 11704 |
if ${lt_cv_aix_libpath_+:} false; then : |
| 11705 |
$as_echo_n "(cached) " >&6 |
| 11706 |
else |
| 11707 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11708 |
/* end confdefs.h. */ |
| 11709 |
|
| 11710 |
int |
| 11711 |
main () |
| 11712 |
{ |
| 11713 |
|
| 11714 |
; |
| 11715 |
return 0; |
| 11716 |
} |
| 11717 |
_ACEOF |
| 11718 |
if ac_fn_c_try_link "$LINENO"; then : |
| 11719 |
|
| 11720 |
lt_aix_libpath_sed=' |
| 11721 |
/Import File Strings/,/^$/ { |
| 11722 |
/^0/ { |
| 11723 |
s/^0 *\([^ ]*\) *$/\1/ |
| 11724 |
p |
| 11725 |
} |
| 11726 |
}' |
| 11727 |
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11728 |
# Check for a 64-bit object if we didn't find anything. |
| 11729 |
if test -z "$lt_cv_aix_libpath_"; then |
| 11730 |
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11731 |
fi |
| 11732 |
fi |
| 11733 |
rm -f core conftest.err conftest.$ac_objext \ |
| 11734 |
conftest$ac_exeext conftest.$ac_ext |
| 11735 |
if test -z "$lt_cv_aix_libpath_"; then |
| 11736 |
lt_cv_aix_libpath_=/usr/lib:/lib |
| 11737 |
fi |
| 11738 |
|
| 11739 |
fi |
| 11740 |
|
| 11741 |
aix_libpath=$lt_cv_aix_libpath_ |
| 11742 |
fi |
| 11743 |
|
| 11744 |
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
| 11745 |
# Warning - without using the other run time loading flags, |
| 11746 |
# -berok will link without error, but may produce a broken library. |
| 11747 |
no_undefined_flag=' $wl-bernotok' |
| 11748 |
allow_undefined_flag=' $wl-berok' |
| 11749 |
if test yes = "$with_gnu_ld"; then |
| 11750 |
# We only use this code for GNU lds that support --whole-archive. |
| 11751 |
whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
| 11752 |
else |
| 11753 |
# Exported symbols can be pulled into shared objects from archives |
| 11754 |
whole_archive_flag_spec='$convenience' |
| 11755 |
fi |
| 11756 |
archive_cmds_need_lc=yes |
| 11757 |
archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
| 11758 |
# -brtl affects multiple linker settings, -berok does not and is overridden later |
| 11759 |
compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
| 11760 |
if test svr4 != "$with_aix_soname"; then |
| 11761 |
# This is similar to how AIX traditionally builds its shared libraries. |
| 11762 |
archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' |
| 11763 |
fi |
| 11764 |
if test aix != "$with_aix_soname"; then |
| 11765 |
archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' |
| 11766 |
else |
| 11767 |
# used by -dlpreopen to get the symbols |
| 11768 |
archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
| 11769 |
fi |
| 11770 |
archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' |
| 11771 |
fi |
| 11772 |
fi |
| 11773 |
;; |
| 11774 |
|
| 11775 |
amigaos*) |
| 11776 |
case $host_cpu in |
| 11777 |
powerpc) |
| 11778 |
# see comment about AmigaOS4 .so support |
| 11779 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11780 |
archive_expsym_cmds='' |
| 11781 |
;; |
| 11782 |
m68k) |
| 11783 |
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)' |
| 11784 |
hardcode_libdir_flag_spec='-L$libdir' |
| 11785 |
hardcode_minus_L=yes |
| 11786 |
;; |
| 11787 |
esac |
| 11788 |
;; |
| 11789 |
|
| 11790 |
bsdi[45]*) |
| 11791 |
export_dynamic_flag_spec=-rdynamic |
| 11792 |
;; |
| 11793 |
|
| 11794 |
cygwin* | mingw* | pw32* | cegcc*) |
| 11795 |
# When not using gcc, we currently assume that we are using |
| 11796 |
# Microsoft Visual C++. |
| 11797 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
| 11798 |
# no search path for DLLs. |
| 11799 |
case $cc_basename in |
| 11800 |
cl*) |
| 11801 |
# Native MSVC |
| 11802 |
hardcode_libdir_flag_spec=' ' |
| 11803 |
allow_undefined_flag=unsupported |
| 11804 |
always_export_symbols=yes |
| 11805 |
file_list_spec='@' |
| 11806 |
# Tell ltmain to make .lib files, not .a files. |
| 11807 |
libext=lib |
| 11808 |
# Tell ltmain to make .dll files, not .so files. |
| 11809 |
shrext_cmds=.dll |
| 11810 |
# FIXME: Setting linknames here is a bad hack. |
| 11811 |
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
| 11812 |
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 11813 |
cp "$export_symbols" "$output_objdir/$soname.def"; |
| 11814 |
echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
| 11815 |
else |
| 11816 |
$SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
| 11817 |
fi~ |
| 11818 |
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 11819 |
linknames=' |
| 11820 |
# The linker will not automatically build a static lib if we build a DLL. |
| 11821 |
# _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 11822 |
enable_shared_with_static_runtimes=yes |
| 11823 |
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 11824 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 11825 |
# Don't use ranlib |
| 11826 |
old_postinstall_cmds='chmod 644 $oldlib' |
| 11827 |
postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 11828 |
lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 11829 |
case $lt_outputfile in |
| 11830 |
*.exe|*.EXE) ;; |
| 11831 |
*) |
| 11832 |
lt_outputfile=$lt_outputfile.exe |
| 11833 |
lt_tool_outputfile=$lt_tool_outputfile.exe |
| 11834 |
;; |
| 11835 |
esac~ |
| 11836 |
if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
| 11837 |
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 11838 |
$RM "$lt_outputfile.manifest"; |
| 11839 |
fi' |
| 11840 |
;; |
| 11841 |
*) |
| 11842 |
# Assume MSVC wrapper |
| 11843 |
hardcode_libdir_flag_spec=' ' |
| 11844 |
allow_undefined_flag=unsupported |
| 11845 |
# Tell ltmain to make .lib files, not .a files. |
| 11846 |
libext=lib |
| 11847 |
# Tell ltmain to make .dll files, not .so files. |
| 11848 |
shrext_cmds=.dll |
| 11849 |
# FIXME: Setting linknames here is a bad hack. |
| 11850 |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 11851 |
# The linker will automatically build a .lib file if we build a DLL. |
| 11852 |
old_archive_from_new_cmds='true' |
| 11853 |
# FIXME: Should let the user specify the lib program. |
| 11854 |
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 11855 |
enable_shared_with_static_runtimes=yes |
| 11856 |
;; |
| 11857 |
esac |
| 11858 |
;; |
| 11859 |
|
| 11860 |
darwin* | rhapsody*) |
| 11861 |
|
| 11862 |
|
| 11863 |
archive_cmds_need_lc=no |
| 11864 |
hardcode_direct=no |
| 11865 |
hardcode_automatic=yes |
| 11866 |
hardcode_shlibpath_var=unsupported |
| 11867 |
if test yes = "$lt_cv_ld_force_load"; then |
| 11868 |
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\"`' |
| 11869 |
|
| 11870 |
else |
| 11871 |
whole_archive_flag_spec='' |
| 11872 |
fi |
| 11873 |
link_all_deplibs=yes |
| 11874 |
allow_undefined_flag=$_lt_dar_allow_undefined |
| 11875 |
case $cc_basename in |
| 11876 |
ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
| 11877 |
*) _lt_dar_can_shared=$GCC ;; |
| 11878 |
esac |
| 11879 |
if test yes = "$_lt_dar_can_shared"; then |
| 11880 |
output_verbose_link_cmd=func_echo_all |
| 11881 |
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
| 11882 |
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
| 11883 |
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" |
| 11884 |
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" |
| 11885 |
|
| 11886 |
else |
| 11887 |
ld_shlibs=no |
| 11888 |
fi |
| 11889 |
|
| 11890 |
;; |
| 11891 |
|
| 11892 |
dgux*) |
| 11893 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 11894 |
hardcode_libdir_flag_spec='-L$libdir' |
| 11895 |
hardcode_shlibpath_var=no |
| 11896 |
;; |
| 11897 |
|
| 11898 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 11899 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
| 11900 |
# does not break anything, and helps significantly (at the cost of a little |
| 11901 |
# extra space). |
| 11902 |
freebsd2.2*) |
| 11903 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 11904 |
hardcode_libdir_flag_spec='-R$libdir' |
| 11905 |
hardcode_direct=yes |
| 11906 |
hardcode_shlibpath_var=no |
| 11907 |
;; |
| 11908 |
|
| 11909 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 11910 |
freebsd2.*) |
| 11911 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 11912 |
hardcode_direct=yes |
| 11913 |
hardcode_minus_L=yes |
| 11914 |
hardcode_shlibpath_var=no |
| 11915 |
;; |
| 11916 |
|
| 11917 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 11918 |
freebsd* | dragonfly*) |
| 11919 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 11920 |
hardcode_libdir_flag_spec='-R$libdir' |
| 11921 |
hardcode_direct=yes |
| 11922 |
hardcode_shlibpath_var=no |
| 11923 |
;; |
| 11924 |
|
| 11925 |
hpux9*) |
| 11926 |
if test yes = "$GCC"; then |
| 11927 |
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
| 11928 |
else |
| 11929 |
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
| 11930 |
fi |
| 11931 |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 11932 |
hardcode_libdir_separator=: |
| 11933 |
hardcode_direct=yes |
| 11934 |
|
| 11935 |
# hardcode_minus_L: Not really in the search PATH, |
| 11936 |
# but as the default location of the library. |
| 11937 |
hardcode_minus_L=yes |
| 11938 |
export_dynamic_flag_spec='$wl-E' |
| 11939 |
;; |
| 11940 |
|
| 11941 |
hpux10*) |
| 11942 |
if test yes,no = "$GCC,$with_gnu_ld"; then |
| 11943 |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 11944 |
else |
| 11945 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 11946 |
fi |
| 11947 |
if test no = "$with_gnu_ld"; then |
| 11948 |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 11949 |
hardcode_libdir_separator=: |
| 11950 |
hardcode_direct=yes |
| 11951 |
hardcode_direct_absolute=yes |
| 11952 |
export_dynamic_flag_spec='$wl-E' |
| 11953 |
# hardcode_minus_L: Not really in the search PATH, |
| 11954 |
# but as the default location of the library. |
| 11955 |
hardcode_minus_L=yes |
| 11956 |
fi |
| 11957 |
;; |
| 11958 |
|
| 11959 |
hpux11*) |
| 11960 |
if test yes,no = "$GCC,$with_gnu_ld"; then |
| 11961 |
case $host_cpu in |
| 11962 |
hppa*64*) |
| 11963 |
archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11964 |
;; |
| 11965 |
ia64*) |
| 11966 |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 11967 |
;; |
| 11968 |
*) |
| 11969 |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 11970 |
;; |
| 11971 |
esac |
| 11972 |
else |
| 11973 |
case $host_cpu in |
| 11974 |
hppa*64*) |
| 11975 |
archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11976 |
;; |
| 11977 |
ia64*) |
| 11978 |
archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 11979 |
;; |
| 11980 |
*) |
| 11981 |
|
| 11982 |
# Older versions of the 11.00 compiler do not understand -b yet |
| 11983 |
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 11984 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 11985 |
$as_echo_n "checking if $CC understands -b... " >&6; } |
| 11986 |
if ${lt_cv_prog_compiler__b+:} false; then : |
| 11987 |
$as_echo_n "(cached) " >&6 |
| 11988 |
else |
| 11989 |
lt_cv_prog_compiler__b=no |
| 11990 |
save_LDFLAGS=$LDFLAGS |
| 11991 |
LDFLAGS="$LDFLAGS -b" |
| 11992 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 11993 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 11994 |
# The linker can only warn and ignore the option if not recognized |
| 11995 |
# So say no if there are warnings |
| 11996 |
if test -s conftest.err; then |
| 11997 |
# Append any errors to the config.log. |
| 11998 |
cat conftest.err 1>&5 |
| 11999 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 12000 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 12001 |
if diff conftest.exp conftest.er2 >/dev/null; then |
| 12002 |
lt_cv_prog_compiler__b=yes |
| 12003 |
fi |
| 12004 |
else |
| 12005 |
lt_cv_prog_compiler__b=yes |
| 12006 |
fi |
| 12007 |
fi |
| 12008 |
$RM -r conftest* |
| 12009 |
LDFLAGS=$save_LDFLAGS |
| 12010 |
|
| 12011 |
fi |
| 12012 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 12013 |
$as_echo "$lt_cv_prog_compiler__b" >&6; } |
| 12014 |
|
| 12015 |
if test yes = "$lt_cv_prog_compiler__b"; then |
| 12016 |
archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 12017 |
else |
| 12018 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 12019 |
fi |
| 12020 |
|
| 12021 |
;; |
| 12022 |
esac |
| 12023 |
fi |
| 12024 |
if test no = "$with_gnu_ld"; then |
| 12025 |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 12026 |
hardcode_libdir_separator=: |
| 12027 |
|
| 12028 |
case $host_cpu in |
| 12029 |
hppa*64*|ia64*) |
| 12030 |
hardcode_direct=no |
| 12031 |
hardcode_shlibpath_var=no |
| 12032 |
;; |
| 12033 |
*) |
| 12034 |
hardcode_direct=yes |
| 12035 |
hardcode_direct_absolute=yes |
| 12036 |
export_dynamic_flag_spec='$wl-E' |
| 12037 |
|
| 12038 |
# hardcode_minus_L: Not really in the search PATH, |
| 12039 |
# but as the default location of the library. |
| 12040 |
hardcode_minus_L=yes |
| 12041 |
;; |
| 12042 |
esac |
| 12043 |
fi |
| 12044 |
;; |
| 12045 |
|
| 12046 |
irix5* | irix6* | nonstopux*) |
| 12047 |
if test yes = "$GCC"; then |
| 12048 |
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' |
| 12049 |
# Try to use the -exported_symbol ld option, if it does not |
| 12050 |
# work, assume that -exports_file does not work either and |
| 12051 |
# implicitly export all symbols. |
| 12052 |
# This should be the same for all languages, so no per-tag cache variable. |
| 12053 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 12054 |
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
| 12055 |
if ${lt_cv_irix_exported_symbol+:} false; then : |
| 12056 |
$as_echo_n "(cached) " >&6 |
| 12057 |
else |
| 12058 |
save_LDFLAGS=$LDFLAGS |
| 12059 |
LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" |
| 12060 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12061 |
/* end confdefs.h. */ |
| 12062 |
int foo (void) { return 0; } |
| 12063 |
_ACEOF |
| 12064 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12065 |
lt_cv_irix_exported_symbol=yes |
| 12066 |
else |
| 12067 |
lt_cv_irix_exported_symbol=no |
| 12068 |
fi |
| 12069 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12070 |
conftest$ac_exeext conftest.$ac_ext |
| 12071 |
LDFLAGS=$save_LDFLAGS |
| 12072 |
fi |
| 12073 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 12074 |
$as_echo "$lt_cv_irix_exported_symbol" >&6; } |
| 12075 |
if test yes = "$lt_cv_irix_exported_symbol"; then |
| 12076 |
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' |
| 12077 |
fi |
| 12078 |
link_all_deplibs=no |
| 12079 |
else |
| 12080 |
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' |
| 12081 |
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' |
| 12082 |
fi |
| 12083 |
archive_cmds_need_lc='no' |
| 12084 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 12085 |
hardcode_libdir_separator=: |
| 12086 |
inherit_rpath=yes |
| 12087 |
link_all_deplibs=yes |
| 12088 |
;; |
| 12089 |
|
| 12090 |
linux*) |
| 12091 |
case $cc_basename in |
| 12092 |
tcc*) |
| 12093 |
# Fabrice Bellard et al's Tiny C Compiler |
| 12094 |
ld_shlibs=yes |
| 12095 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 12096 |
;; |
| 12097 |
esac |
| 12098 |
;; |
| 12099 |
|
| 12100 |
netbsd* | netbsdelf*-gnu) |
| 12101 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 12102 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 12103 |
else |
| 12104 |
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 12105 |
fi |
| 12106 |
hardcode_libdir_flag_spec='-R$libdir' |
| 12107 |
hardcode_direct=yes |
| 12108 |
hardcode_shlibpath_var=no |
| 12109 |
;; |
| 12110 |
|
| 12111 |
newsos6) |
| 12112 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12113 |
hardcode_direct=yes |
| 12114 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 12115 |
hardcode_libdir_separator=: |
| 12116 |
hardcode_shlibpath_var=no |
| 12117 |
;; |
| 12118 |
|
| 12119 |
*nto* | *qnx*) |
| 12120 |
;; |
| 12121 |
|
| 12122 |
openbsd* | bitrig*) |
| 12123 |
if test -f /usr/libexec/ld.so; then |
| 12124 |
hardcode_direct=yes |
| 12125 |
hardcode_shlibpath_var=no |
| 12126 |
hardcode_direct_absolute=yes |
| 12127 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 12128 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 12129 |
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
| 12130 |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 12131 |
export_dynamic_flag_spec='$wl-E' |
| 12132 |
else |
| 12133 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 12134 |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 12135 |
fi |
| 12136 |
else |
| 12137 |
ld_shlibs=no |
| 12138 |
fi |
| 12139 |
;; |
| 12140 |
|
| 12141 |
os2*) |
| 12142 |
hardcode_libdir_flag_spec='-L$libdir' |
| 12143 |
hardcode_minus_L=yes |
| 12144 |
allow_undefined_flag=unsupported |
| 12145 |
shrext_cmds=.dll |
| 12146 |
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 12147 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 12148 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 12149 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 12150 |
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 12151 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 12152 |
emximp -o $lib $output_objdir/$libname.def' |
| 12153 |
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 12154 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 12155 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 12156 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 12157 |
prefix_cmds="$SED"~ |
| 12158 |
if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 12159 |
prefix_cmds="$prefix_cmds -e 1d"; |
| 12160 |
fi~ |
| 12161 |
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 12162 |
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 12163 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 12164 |
emximp -o $lib $output_objdir/$libname.def' |
| 12165 |
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 12166 |
enable_shared_with_static_runtimes=yes |
| 12167 |
;; |
| 12168 |
|
| 12169 |
osf3*) |
| 12170 |
if test yes = "$GCC"; then |
| 12171 |
allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
| 12172 |
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' |
| 12173 |
else |
| 12174 |
allow_undefined_flag=' -expect_unresolved \*' |
| 12175 |
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' |
| 12176 |
fi |
| 12177 |
archive_cmds_need_lc='no' |
| 12178 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 12179 |
hardcode_libdir_separator=: |
| 12180 |
;; |
| 12181 |
|
| 12182 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 12183 |
if test yes = "$GCC"; then |
| 12184 |
allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
| 12185 |
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' |
| 12186 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 12187 |
else |
| 12188 |
allow_undefined_flag=' -expect_unresolved \*' |
| 12189 |
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' |
| 12190 |
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~ |
| 12191 |
$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' |
| 12192 |
|
| 12193 |
# Both c and cxx compiler support -rpath directly |
| 12194 |
hardcode_libdir_flag_spec='-rpath $libdir' |
| 12195 |
fi |
| 12196 |
archive_cmds_need_lc='no' |
| 12197 |
hardcode_libdir_separator=: |
| 12198 |
;; |
| 12199 |
|
| 12200 |
solaris*) |
| 12201 |
no_undefined_flag=' -z defs' |
| 12202 |
if test yes = "$GCC"; then |
| 12203 |
wlarc='$wl' |
| 12204 |
archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12205 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12206 |
$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' |
| 12207 |
else |
| 12208 |
case `$CC -V 2>&1` in |
| 12209 |
*"Compilers 5.0"*) |
| 12210 |
wlarc='' |
| 12211 |
archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12212 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12213 |
$LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 12214 |
;; |
| 12215 |
*) |
| 12216 |
wlarc='$wl' |
| 12217 |
archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12218 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12219 |
$CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 12220 |
;; |
| 12221 |
esac |
| 12222 |
fi |
| 12223 |
hardcode_libdir_flag_spec='-R$libdir' |
| 12224 |
hardcode_shlibpath_var=no |
| 12225 |
case $host_os in |
| 12226 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 12227 |
*) |
| 12228 |
# The compiler driver will combine and reorder linker options, |
| 12229 |
# but understands '-z linker_flag'. GCC discards it without '$wl', |
| 12230 |
# but is careful enough not to reorder. |
| 12231 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
| 12232 |
if test yes = "$GCC"; then |
| 12233 |
whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
| 12234 |
else |
| 12235 |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 12236 |
fi |
| 12237 |
;; |
| 12238 |
esac |
| 12239 |
link_all_deplibs=yes |
| 12240 |
;; |
| 12241 |
|
| 12242 |
sunos4*) |
| 12243 |
if test sequent = "$host_vendor"; then |
| 12244 |
# Use $CC to link under sequent, because it throws in some extra .o |
| 12245 |
# files that make .init and .fini sections work. |
| 12246 |
archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12247 |
else |
| 12248 |
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 12249 |
fi |
| 12250 |
hardcode_libdir_flag_spec='-L$libdir' |
| 12251 |
hardcode_direct=yes |
| 12252 |
hardcode_minus_L=yes |
| 12253 |
hardcode_shlibpath_var=no |
| 12254 |
;; |
| 12255 |
|
| 12256 |
sysv4) |
| 12257 |
case $host_vendor in |
| 12258 |
sni) |
| 12259 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12260 |
hardcode_direct=yes # is this really true??? |
| 12261 |
;; |
| 12262 |
siemens) |
| 12263 |
## LD is ld it makes a PLAMLIB |
| 12264 |
## CC just makes a GrossModule. |
| 12265 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 12266 |
reload_cmds='$CC -r -o $output$reload_objs' |
| 12267 |
hardcode_direct=no |
| 12268 |
;; |
| 12269 |
motorola) |
| 12270 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12271 |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 12272 |
;; |
| 12273 |
esac |
| 12274 |
runpath_var='LD_RUN_PATH' |
| 12275 |
hardcode_shlibpath_var=no |
| 12276 |
;; |
| 12277 |
|
| 12278 |
sysv4.3*) |
| 12279 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12280 |
hardcode_shlibpath_var=no |
| 12281 |
export_dynamic_flag_spec='-Bexport' |
| 12282 |
;; |
| 12283 |
|
| 12284 |
sysv4*MP*) |
| 12285 |
if test -d /usr/nec; then |
| 12286 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12287 |
hardcode_shlibpath_var=no |
| 12288 |
runpath_var=LD_RUN_PATH |
| 12289 |
hardcode_runpath_var=yes |
| 12290 |
ld_shlibs=yes |
| 12291 |
fi |
| 12292 |
;; |
| 12293 |
|
| 12294 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 12295 |
no_undefined_flag='$wl-z,text' |
| 12296 |
archive_cmds_need_lc=no |
| 12297 |
hardcode_shlibpath_var=no |
| 12298 |
runpath_var='LD_RUN_PATH' |
| 12299 |
|
| 12300 |
if test yes = "$GCC"; then |
| 12301 |
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12302 |
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12303 |
else |
| 12304 |
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12305 |
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12306 |
fi |
| 12307 |
;; |
| 12308 |
|
| 12309 |
sysv5* | sco3.2v5* | sco5v6*) |
| 12310 |
# Note: We CANNOT use -z defs as we might desire, because we do not |
| 12311 |
# link with -lc, and that would cause any symbols used from libc to |
| 12312 |
# always be unresolved, which means just about no library would |
| 12313 |
# ever link correctly. If we're not using GNU ld we use -z text |
| 12314 |
# though, which does catch some bad symbols but isn't as heavy-handed |
| 12315 |
# as -z defs. |
| 12316 |
no_undefined_flag='$wl-z,text' |
| 12317 |
allow_undefined_flag='$wl-z,nodefs' |
| 12318 |
archive_cmds_need_lc=no |
| 12319 |
hardcode_shlibpath_var=no |
| 12320 |
hardcode_libdir_flag_spec='$wl-R,$libdir' |
| 12321 |
hardcode_libdir_separator=':' |
| 12322 |
link_all_deplibs=yes |
| 12323 |
export_dynamic_flag_spec='$wl-Bexport' |
| 12324 |
runpath_var='LD_RUN_PATH' |
| 12325 |
|
| 12326 |
if test yes = "$GCC"; then |
| 12327 |
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12328 |
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12329 |
else |
| 12330 |
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12331 |
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12332 |
fi |
| 12333 |
;; |
| 12334 |
|
| 12335 |
uts4*) |
| 12336 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12337 |
hardcode_libdir_flag_spec='-L$libdir' |
| 12338 |
hardcode_shlibpath_var=no |
| 12339 |
;; |
| 12340 |
|
| 12341 |
*) |
| 12342 |
ld_shlibs=no |
| 12343 |
;; |
| 12344 |
esac |
| 12345 |
|
| 12346 |
if test sni = "$host_vendor"; then |
| 12347 |
case $host in |
| 12348 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 12349 |
export_dynamic_flag_spec='$wl-Blargedynsym' |
| 12350 |
;; |
| 12351 |
esac |
| 12352 |
fi |
| 12353 |
fi |
| 12354 |
|
| 12355 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 12356 |
$as_echo "$ld_shlibs" >&6; } |
| 12357 |
test no = "$ld_shlibs" && can_build_shared=no |
| 12358 |
|
| 12359 |
with_gnu_ld=$with_gnu_ld |
| 12360 |
|
| 12361 |
|
| 12362 |
|
| 12363 |
|
| 12364 |
|
| 12365 |
|
| 12366 |
|
| 12367 |
|
| 12368 |
|
| 12369 |
|
| 12370 |
|
| 12371 |
|
| 12372 |
|
| 12373 |
|
| 12374 |
|
| 12375 |
# |
| 12376 |
# Do we need to explicitly link libc? |
| 12377 |
# |
| 12378 |
case "x$archive_cmds_need_lc" in |
| 12379 |
x|xyes) |
| 12380 |
# Assume -lc should be added |
| 12381 |
archive_cmds_need_lc=yes |
| 12382 |
|
| 12383 |
if test yes,yes = "$GCC,$enable_shared"; then |
| 12384 |
case $archive_cmds in |
| 12385 |
*'~'*) |
| 12386 |
# FIXME: we may have to deal with multi-command sequences. |
| 12387 |
;; |
| 12388 |
'$CC '*) |
| 12389 |
# Test whether the compiler implicitly links with -lc since on some |
| 12390 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 12391 |
# to ld, don't add -lc before -lgcc. |
| 12392 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 12393 |
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 12394 |
if ${lt_cv_archive_cmds_need_lc+:} false; then : |
| 12395 |
$as_echo_n "(cached) " >&6 |
| 12396 |
else |
| 12397 |
$RM conftest* |
| 12398 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12399 |
|
| 12400 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 12401 |
(eval $ac_compile) 2>&5 |
| 12402 |
ac_status=$? |
| 12403 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12404 |
test $ac_status = 0; } 2>conftest.err; then |
| 12405 |
soname=conftest |
| 12406 |
lib=conftest |
| 12407 |
libobjs=conftest.$ac_objext |
| 12408 |
deplibs= |
| 12409 |
wl=$lt_prog_compiler_wl |
| 12410 |
pic_flag=$lt_prog_compiler_pic |
| 12411 |
compiler_flags=-v |
| 12412 |
linker_flags=-v |
| 12413 |
verstring= |
| 12414 |
output_objdir=. |
| 12415 |
libname=conftest |
| 12416 |
lt_save_allow_undefined_flag=$allow_undefined_flag |
| 12417 |
allow_undefined_flag= |
| 12418 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 12419 |
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 12420 |
ac_status=$? |
| 12421 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12422 |
test $ac_status = 0; } |
| 12423 |
then |
| 12424 |
lt_cv_archive_cmds_need_lc=no |
| 12425 |
else |
| 12426 |
lt_cv_archive_cmds_need_lc=yes |
| 12427 |
fi |
| 12428 |
allow_undefined_flag=$lt_save_allow_undefined_flag |
| 12429 |
else |
| 12430 |
cat conftest.err 1>&5 |
| 12431 |
fi |
| 12432 |
$RM conftest* |
| 12433 |
|
| 12434 |
fi |
| 12435 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 12436 |
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
| 12437 |
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
| 12438 |
;; |
| 12439 |
esac |
| 12440 |
fi |
| 12441 |
;; |
| 12442 |
esac |
| 12443 |
|
| 12444 |
|
| 12445 |
|
| 12446 |
|
| 12447 |
|
| 12448 |
|
| 12449 |
|
| 12450 |
|
| 12451 |
|
| 12452 |
|
| 12453 |
|
| 12454 |
|
| 12455 |
|
| 12456 |
|
| 12457 |
|
| 12458 |
|
| 12459 |
|
| 12460 |
|
| 12461 |
|
| 12462 |
|
| 12463 |
|
| 12464 |
|
| 12465 |
|
| 12466 |
|
| 12467 |
|
| 12468 |
|
| 12469 |
|
| 12470 |
|
| 12471 |
|
| 12472 |
|
| 12473 |
|
| 12474 |
|
| 12475 |
|
| 12476 |
|
| 12477 |
|
| 12478 |
|
| 12479 |
|
| 12480 |
|
| 12481 |
|
| 12482 |
|
| 12483 |
|
| 12484 |
|
| 12485 |
|
| 12486 |
|
| 12487 |
|
| 12488 |
|
| 12489 |
|
| 12490 |
|
| 12491 |
|
| 12492 |
|
| 12493 |
|
| 12494 |
|
| 12495 |
|
| 12496 |
|
| 12497 |
|
| 12498 |
|
| 12499 |
|
| 12500 |
|
| 12501 |
|
| 12502 |
|
| 12503 |
|
| 12504 |
|
| 12505 |
|
| 12506 |
|
| 12507 |
|
| 12508 |
|
| 12509 |
|
| 12510 |
|
| 12511 |
|
| 12512 |
|
| 12513 |
|
| 12514 |
|
| 12515 |
|
| 12516 |
|
| 12517 |
|
| 12518 |
|
| 12519 |
|
| 12520 |
|
| 12521 |
|
| 12522 |
|
| 12523 |
|
| 12524 |
|
| 12525 |
|
| 12526 |
|
| 12527 |
|
| 12528 |
|
| 12529 |
|
| 12530 |
|
| 12531 |
|
| 12532 |
|
| 12533 |
|
| 12534 |
|
| 12535 |
|
| 12536 |
|
| 12537 |
|
| 12538 |
|
| 12539 |
|
| 12540 |
|
| 12541 |
|
| 12542 |
|
| 12543 |
|
| 12544 |
|
| 12545 |
|
| 12546 |
|
| 12547 |
|
| 12548 |
|
| 12549 |
|
| 12550 |
|
| 12551 |
|
| 12552 |
|
| 12553 |
|
| 12554 |
|
| 12555 |
|
| 12556 |
|
| 12557 |
|
| 12558 |
|
| 12559 |
|
| 12560 |
|
| 12561 |
|
| 12562 |
|
| 12563 |
|
| 12564 |
|
| 12565 |
|
| 12566 |
|
| 12567 |
|
| 12568 |
|
| 12569 |
|
| 12570 |
|
| 12571 |
|
| 12572 |
|
| 12573 |
|
| 12574 |
|
| 12575 |
|
| 12576 |
|
| 12577 |
|
| 12578 |
|
| 12579 |
|
| 12580 |
|
| 12581 |
|
| 12582 |
|
| 12583 |
|
| 12584 |
|
| 12585 |
|
| 12586 |
|
| 12587 |
|
| 12588 |
|
| 12589 |
|
| 12590 |
|
| 12591 |
|
| 12592 |
|
| 12593 |
|
| 12594 |
|
| 12595 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 12596 |
$as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 12597 |
|
| 12598 |
if test yes = "$GCC"; then |
| 12599 |
case $host_os in |
| 12600 |
darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
| 12601 |
*) lt_awk_arg='/^libraries:/' ;; |
| 12602 |
esac |
| 12603 |
case $host_os in |
| 12604 |
mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
| 12605 |
*) lt_sed_strip_eq='s|=/|/|g' ;; |
| 12606 |
esac |
| 12607 |
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 12608 |
case $lt_search_path_spec in |
| 12609 |
*\;*) |
| 12610 |
# if the path contains ";" then we assume it to be the separator |
| 12611 |
# otherwise default to the standard path separator (i.e. ":") - it is |
| 12612 |
# assumed that no part of a normal pathname contains ";" but that should |
| 12613 |
# okay in the real world where ";" in dirpaths is itself problematic. |
| 12614 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 12615 |
;; |
| 12616 |
*) |
| 12617 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 12618 |
;; |
| 12619 |
esac |
| 12620 |
# Ok, now we have the path, separated by spaces, we can step through it |
| 12621 |
# and add multilib dir if necessary... |
| 12622 |
lt_tmp_lt_search_path_spec= |
| 12623 |
lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 12624 |
# ...but if some path component already ends with the multilib dir we assume |
| 12625 |
# that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). |
| 12626 |
case "$lt_multi_os_dir; $lt_search_path_spec " in |
| 12627 |
"/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) |
| 12628 |
lt_multi_os_dir= |
| 12629 |
;; |
| 12630 |
esac |
| 12631 |
for lt_sys_path in $lt_search_path_spec; do |
| 12632 |
if test -d "$lt_sys_path$lt_multi_os_dir"; then |
| 12633 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" |
| 12634 |
elif test -n "$lt_multi_os_dir"; then |
| 12635 |
test -d "$lt_sys_path" && \ |
| 12636 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 12637 |
fi |
| 12638 |
done |
| 12639 |
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| 12640 |
BEGIN {RS = " "; FS = "/|\n";} { |
| 12641 |
lt_foo = ""; |
| 12642 |
lt_count = 0; |
| 12643 |
for (lt_i = NF; lt_i > 0; lt_i--) { |
| 12644 |
if ($lt_i != "" && $lt_i != ".") { |
| 12645 |
if ($lt_i == "..") { |
| 12646 |
lt_count++; |
| 12647 |
} else { |
| 12648 |
if (lt_count == 0) { |
| 12649 |
lt_foo = "/" $lt_i lt_foo; |
| 12650 |
} else { |
| 12651 |
lt_count--; |
| 12652 |
} |
| 12653 |
} |
| 12654 |
} |
| 12655 |
} |
| 12656 |
if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 12657 |
if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 12658 |
}'` |
| 12659 |
# AWK program above erroneously prepends '/' to C:/dos/paths |
| 12660 |
# for these hosts. |
| 12661 |
case $host_os in |
| 12662 |
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 12663 |
$SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
| 12664 |
esac |
| 12665 |
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| 12666 |
else |
| 12667 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 12668 |
fi |
| 12669 |
library_names_spec= |
| 12670 |
libname_spec='lib$name' |
| 12671 |
soname_spec= |
| 12672 |
shrext_cmds=.so |
| 12673 |
postinstall_cmds= |
| 12674 |
postuninstall_cmds= |
| 12675 |
finish_cmds= |
| 12676 |
finish_eval= |
| 12677 |
shlibpath_var= |
| 12678 |
shlibpath_overrides_runpath=unknown |
| 12679 |
version_type=none |
| 12680 |
dynamic_linker="$host_os ld.so" |
| 12681 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 12682 |
need_lib_prefix=unknown |
| 12683 |
hardcode_into_libs=no |
| 12684 |
|
| 12685 |
# when you set need_version to no, make sure it does not cause -set_version |
| 12686 |
# flags to be left without arguments |
| 12687 |
need_version=unknown |
| 12688 |
|
| 12689 |
|
| 12690 |
|
| 12691 |
case $host_os in |
| 12692 |
aix3*) |
| 12693 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 12694 |
library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
| 12695 |
shlibpath_var=LIBPATH |
| 12696 |
|
| 12697 |
# AIX 3 has no versioning support, so we append a major version to the name. |
| 12698 |
soname_spec='$libname$release$shared_ext$major' |
| 12699 |
;; |
| 12700 |
|
| 12701 |
aix[4-9]*) |
| 12702 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 12703 |
need_lib_prefix=no |
| 12704 |
need_version=no |
| 12705 |
hardcode_into_libs=yes |
| 12706 |
if test ia64 = "$host_cpu"; then |
| 12707 |
# AIX 5 supports IA64 |
| 12708 |
library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
| 12709 |
shlibpath_var=LD_LIBRARY_PATH |
| 12710 |
else |
| 12711 |
# With GCC up to 2.95.x, collect2 would create an import file |
| 12712 |
# for dependence libraries. The import file would start with |
| 12713 |
# the line '#! .'. This would cause the generated library to |
| 12714 |
# depend on '.', always an invalid library. This was fixed in |
| 12715 |
# development snapshots of GCC prior to 3.0. |
| 12716 |
case $host_os in |
| 12717 |
aix4 | aix4.[01] | aix4.[01].*) |
| 12718 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 12719 |
echo ' yes ' |
| 12720 |
echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
| 12721 |
: |
| 12722 |
else |
| 12723 |
can_build_shared=no |
| 12724 |
fi |
| 12725 |
;; |
| 12726 |
esac |
| 12727 |
# Using Import Files as archive members, it is possible to support |
| 12728 |
# filename-based versioning of shared library archives on AIX. While |
| 12729 |
# this would work for both with and without runtime linking, it will |
| 12730 |
# prevent static linking of such archives. So we do filename-based |
| 12731 |
# shared library versioning with .so extension only, which is used |
| 12732 |
# when both runtime linking and shared linking is enabled. |
| 12733 |
# Unfortunately, runtime linking may impact performance, so we do |
| 12734 |
# not want this to be the default eventually. Also, we use the |
| 12735 |
# versioned .so libs for executables only if there is the -brtl |
| 12736 |
# linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. |
| 12737 |
# To allow for filename-based versioning support, we need to create |
| 12738 |
# libNAME.so.V as an archive file, containing: |
| 12739 |
# *) an Import File, referring to the versioned filename of the |
| 12740 |
# archive as well as the shared archive member, telling the |
| 12741 |
# bitwidth (32 or 64) of that shared object, and providing the |
| 12742 |
# list of exported symbols of that shared object, eventually |
| 12743 |
# decorated with the 'weak' keyword |
| 12744 |
# *) the shared object with the F_LOADONLY flag set, to really avoid |
| 12745 |
# it being seen by the linker. |
| 12746 |
# At run time we better use the real file rather than another symlink, |
| 12747 |
# but for link time we create the symlink libNAME.so -> libNAME.so.V |
| 12748 |
|
| 12749 |
case $with_aix_soname,$aix_use_runtimelinking in |
| 12750 |
# AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
| 12751 |
# soname into executable. Probably we can add versioning support to |
| 12752 |
# collect2, so additional links can be useful in future. |
| 12753 |
aix,yes) # traditional libtool |
| 12754 |
dynamic_linker='AIX unversionable lib.so' |
| 12755 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 12756 |
# instead of lib<name>.a to let people know that these are not |
| 12757 |
# typical AIX shared libraries. |
| 12758 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12759 |
;; |
| 12760 |
aix,no) # traditional AIX only |
| 12761 |
dynamic_linker='AIX lib.a(lib.so.V)' |
| 12762 |
# We preserve .a as extension for shared libraries through AIX4.2 |
| 12763 |
# and later when we are not doing run time linking. |
| 12764 |
library_names_spec='$libname$release.a $libname.a' |
| 12765 |
soname_spec='$libname$release$shared_ext$major' |
| 12766 |
;; |
| 12767 |
svr4,*) # full svr4 only |
| 12768 |
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
| 12769 |
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 12770 |
# We do not specify a path in Import Files, so LIBPATH fires. |
| 12771 |
shlibpath_overrides_runpath=yes |
| 12772 |
;; |
| 12773 |
*,yes) # both, prefer svr4 |
| 12774 |
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
| 12775 |
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 12776 |
# unpreferred sharedlib libNAME.a needs extra handling |
| 12777 |
postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' |
| 12778 |
postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' |
| 12779 |
# We do not specify a path in Import Files, so LIBPATH fires. |
| 12780 |
shlibpath_overrides_runpath=yes |
| 12781 |
;; |
| 12782 |
*,no) # both, prefer aix |
| 12783 |
dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
| 12784 |
library_names_spec='$libname$release.a $libname.a' |
| 12785 |
soname_spec='$libname$release$shared_ext$major' |
| 12786 |
# unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
| 12787 |
postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' |
| 12788 |
postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' |
| 12789 |
;; |
| 12790 |
esac |
| 12791 |
shlibpath_var=LIBPATH |
| 12792 |
fi |
| 12793 |
;; |
| 12794 |
|
| 12795 |
amigaos*) |
| 12796 |
case $host_cpu in |
| 12797 |
powerpc) |
| 12798 |
# Since July 2007 AmigaOS4 officially supports .so libraries. |
| 12799 |
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 12800 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12801 |
;; |
| 12802 |
m68k) |
| 12803 |
library_names_spec='$libname.ixlibrary $libname.a' |
| 12804 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 12805 |
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 12806 |
;; |
| 12807 |
esac |
| 12808 |
;; |
| 12809 |
|
| 12810 |
beos*) |
| 12811 |
library_names_spec='$libname$shared_ext' |
| 12812 |
dynamic_linker="$host_os ld.so" |
| 12813 |
shlibpath_var=LIBRARY_PATH |
| 12814 |
;; |
| 12815 |
|
| 12816 |
bsdi[45]*) |
| 12817 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 12818 |
need_version=no |
| 12819 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12820 |
soname_spec='$libname$release$shared_ext$major' |
| 12821 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 12822 |
shlibpath_var=LD_LIBRARY_PATH |
| 12823 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 12824 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 12825 |
# the default ld.so.conf also contains /usr/contrib/lib and |
| 12826 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 12827 |
# libtool to hard-code these into programs |
| 12828 |
;; |
| 12829 |
|
| 12830 |
cygwin* | mingw* | pw32* | cegcc*) |
| 12831 |
version_type=windows |
| 12832 |
shrext_cmds=.dll |
| 12833 |
need_version=no |
| 12834 |
need_lib_prefix=no |
| 12835 |
|
| 12836 |
case $GCC,$cc_basename in |
| 12837 |
yes,*) |
| 12838 |
# gcc |
| 12839 |
library_names_spec='$libname.dll.a' |
| 12840 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 12841 |
postinstall_cmds='base_file=`basename \$file`~ |
| 12842 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 12843 |
dldir=$destdir/`dirname \$dlpath`~ |
| 12844 |
test -d \$dldir || mkdir -p \$dldir~ |
| 12845 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
| 12846 |
chmod a+x \$dldir/$dlname~ |
| 12847 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 12848 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 12849 |
fi' |
| 12850 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 12851 |
dlpath=$dir/\$dldll~ |
| 12852 |
$RM \$dlpath' |
| 12853 |
shlibpath_overrides_runpath=yes |
| 12854 |
|
| 12855 |
case $host_os in |
| 12856 |
cygwin*) |
| 12857 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 12858 |
soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 12859 |
|
| 12860 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| 12861 |
;; |
| 12862 |
mingw* | cegcc*) |
| 12863 |
# MinGW DLLs use traditional 'lib' prefix |
| 12864 |
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 12865 |
;; |
| 12866 |
pw32*) |
| 12867 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
| 12868 |
library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 12869 |
;; |
| 12870 |
esac |
| 12871 |
dynamic_linker='Win32 ld.exe' |
| 12872 |
;; |
| 12873 |
|
| 12874 |
*,cl*) |
| 12875 |
# Native MSVC |
| 12876 |
libname_spec='$name' |
| 12877 |
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 12878 |
library_names_spec='$libname.dll.lib' |
| 12879 |
|
| 12880 |
case $build_os in |
| 12881 |
mingw*) |
| 12882 |
sys_lib_search_path_spec= |
| 12883 |
lt_save_ifs=$IFS |
| 12884 |
IFS=';' |
| 12885 |
for lt_path in $LIB |
| 12886 |
do |
| 12887 |
IFS=$lt_save_ifs |
| 12888 |
# Let DOS variable expansion print the short 8.3 style file name. |
| 12889 |
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 12890 |
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 12891 |
done |
| 12892 |
IFS=$lt_save_ifs |
| 12893 |
# Convert to MSYS style. |
| 12894 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 12895 |
;; |
| 12896 |
cygwin*) |
| 12897 |
# Convert to unix form, then to dos form, then back to unix form |
| 12898 |
# but this time dos style (no spaces!) so that the unix form looks |
| 12899 |
# like /cygdrive/c/PROGRA~1:/cygdr... |
| 12900 |
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 12901 |
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 12902 |
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 12903 |
;; |
| 12904 |
*) |
| 12905 |
sys_lib_search_path_spec=$LIB |
| 12906 |
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 12907 |
# It is most probably a Windows format PATH. |
| 12908 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 12909 |
else |
| 12910 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 12911 |
fi |
| 12912 |
# FIXME: find the short name or the path components, as spaces are |
| 12913 |
# common. (e.g. "Program Files" -> "PROGRA~1") |
| 12914 |
;; |
| 12915 |
esac |
| 12916 |
|
| 12917 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 12918 |
postinstall_cmds='base_file=`basename \$file`~ |
| 12919 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 12920 |
dldir=$destdir/`dirname \$dlpath`~ |
| 12921 |
test -d \$dldir || mkdir -p \$dldir~ |
| 12922 |
$install_prog $dir/$dlname \$dldir/$dlname' |
| 12923 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 12924 |
dlpath=$dir/\$dldll~ |
| 12925 |
$RM \$dlpath' |
| 12926 |
shlibpath_overrides_runpath=yes |
| 12927 |
dynamic_linker='Win32 link.exe' |
| 12928 |
;; |
| 12929 |
|
| 12930 |
*) |
| 12931 |
# Assume MSVC wrapper |
| 12932 |
library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
| 12933 |
dynamic_linker='Win32 ld.exe' |
| 12934 |
;; |
| 12935 |
esac |
| 12936 |
# FIXME: first we should search . and the directory the executable is in |
| 12937 |
shlibpath_var=PATH |
| 12938 |
;; |
| 12939 |
|
| 12940 |
darwin* | rhapsody*) |
| 12941 |
dynamic_linker="$host_os dyld" |
| 12942 |
version_type=darwin |
| 12943 |
need_lib_prefix=no |
| 12944 |
need_version=no |
| 12945 |
library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
| 12946 |
soname_spec='$libname$release$major$shared_ext' |
| 12947 |
shlibpath_overrides_runpath=yes |
| 12948 |
shlibpath_var=DYLD_LIBRARY_PATH |
| 12949 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 12950 |
|
| 12951 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 12952 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 12953 |
;; |
| 12954 |
|
| 12955 |
dgux*) |
| 12956 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 12957 |
need_lib_prefix=no |
| 12958 |
need_version=no |
| 12959 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12960 |
soname_spec='$libname$release$shared_ext$major' |
| 12961 |
shlibpath_var=LD_LIBRARY_PATH |
| 12962 |
;; |
| 12963 |
|
| 12964 |
freebsd* | dragonfly*) |
| 12965 |
# DragonFly does not have aout. When/if they implement a new |
| 12966 |
# versioning mechanism, adjust this. |
| 12967 |
if test -x /usr/bin/objformat; then |
| 12968 |
objformat=`/usr/bin/objformat` |
| 12969 |
else |
| 12970 |
case $host_os in |
| 12971 |
freebsd[23].*) objformat=aout ;; |
| 12972 |
*) objformat=elf ;; |
| 12973 |
esac |
| 12974 |
fi |
| 12975 |
version_type=freebsd-$objformat |
| 12976 |
case $version_type in |
| 12977 |
freebsd-elf*) |
| 12978 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12979 |
soname_spec='$libname$release$shared_ext$major' |
| 12980 |
need_version=no |
| 12981 |
need_lib_prefix=no |
| 12982 |
;; |
| 12983 |
freebsd-*) |
| 12984 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 12985 |
need_version=yes |
| 12986 |
;; |
| 12987 |
esac |
| 12988 |
shlibpath_var=LD_LIBRARY_PATH |
| 12989 |
case $host_os in |
| 12990 |
freebsd2.*) |
| 12991 |
shlibpath_overrides_runpath=yes |
| 12992 |
;; |
| 12993 |
freebsd3.[01]* | freebsdelf3.[01]*) |
| 12994 |
shlibpath_overrides_runpath=yes |
| 12995 |
hardcode_into_libs=yes |
| 12996 |
;; |
| 12997 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 12998 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 12999 |
shlibpath_overrides_runpath=no |
| 13000 |
hardcode_into_libs=yes |
| 13001 |
;; |
| 13002 |
*) # from 4.6 on, and DragonFly |
| 13003 |
shlibpath_overrides_runpath=yes |
| 13004 |
hardcode_into_libs=yes |
| 13005 |
;; |
| 13006 |
esac |
| 13007 |
;; |
| 13008 |
|
| 13009 |
haiku*) |
| 13010 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 13011 |
need_lib_prefix=no |
| 13012 |
need_version=no |
| 13013 |
dynamic_linker="$host_os runtime_loader" |
| 13014 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13015 |
soname_spec='$libname$release$shared_ext$major' |
| 13016 |
shlibpath_var=LIBRARY_PATH |
| 13017 |
shlibpath_overrides_runpath=no |
| 13018 |
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 13019 |
hardcode_into_libs=yes |
| 13020 |
;; |
| 13021 |
|
| 13022 |
hpux9* | hpux10* | hpux11*) |
| 13023 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
| 13024 |
# link against other versions. |
| 13025 |
version_type=sunos |
| 13026 |
need_lib_prefix=no |
| 13027 |
need_version=no |
| 13028 |
case $host_cpu in |
| 13029 |
ia64*) |
| 13030 |
shrext_cmds='.so' |
| 13031 |
hardcode_into_libs=yes |
| 13032 |
dynamic_linker="$host_os dld.so" |
| 13033 |
shlibpath_var=LD_LIBRARY_PATH |
| 13034 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13035 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13036 |
soname_spec='$libname$release$shared_ext$major' |
| 13037 |
if test 32 = "$HPUX_IA64_MODE"; then |
| 13038 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 13039 |
sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
| 13040 |
else |
| 13041 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13042 |
sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
| 13043 |
fi |
| 13044 |
;; |
| 13045 |
hppa*64*) |
| 13046 |
shrext_cmds='.sl' |
| 13047 |
hardcode_into_libs=yes |
| 13048 |
dynamic_linker="$host_os dld.sl" |
| 13049 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13050 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13051 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13052 |
soname_spec='$libname$release$shared_ext$major' |
| 13053 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13054 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13055 |
;; |
| 13056 |
*) |
| 13057 |
shrext_cmds='.sl' |
| 13058 |
dynamic_linker="$host_os dld.sl" |
| 13059 |
shlibpath_var=SHLIB_PATH |
| 13060 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13061 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13062 |
soname_spec='$libname$release$shared_ext$major' |
| 13063 |
;; |
| 13064 |
esac |
| 13065 |
# HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 13066 |
postinstall_cmds='chmod 555 $lib' |
| 13067 |
# or fails outright, so override atomically: |
| 13068 |
install_override_mode=555 |
| 13069 |
;; |
| 13070 |
|
| 13071 |
interix[3-9]*) |
| 13072 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 13073 |
need_lib_prefix=no |
| 13074 |
need_version=no |
| 13075 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13076 |
soname_spec='$libname$release$shared_ext$major' |
| 13077 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 13078 |
shlibpath_var=LD_LIBRARY_PATH |
| 13079 |
shlibpath_overrides_runpath=no |
| 13080 |
hardcode_into_libs=yes |
| 13081 |
;; |
| 13082 |
|
| 13083 |
irix5* | irix6* | nonstopux*) |
| 13084 |
case $host_os in |
| 13085 |
nonstopux*) version_type=nonstopux ;; |
| 13086 |
*) |
| 13087 |
if test yes = "$lt_cv_prog_gnu_ld"; then |
| 13088 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 13089 |
else |
| 13090 |
version_type=irix |
| 13091 |
fi ;; |
| 13092 |
esac |
| 13093 |
need_lib_prefix=no |
| 13094 |
need_version=no |
| 13095 |
soname_spec='$libname$release$shared_ext$major' |
| 13096 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
| 13097 |
case $host_os in |
| 13098 |
irix5* | nonstopux*) |
| 13099 |
libsuff= shlibsuff= |
| 13100 |
;; |
| 13101 |
*) |
| 13102 |
case $LD in # libtool.m4 will add one of these switches to LD |
| 13103 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13104 |
libsuff= shlibsuff= libmagic=32-bit;; |
| 13105 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13106 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13107 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13108 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 13109 |
*) libsuff= shlibsuff= libmagic=never-match;; |
| 13110 |
esac |
| 13111 |
;; |
| 13112 |
esac |
| 13113 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13114 |
shlibpath_overrides_runpath=no |
| 13115 |
sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
| 13116 |
sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
| 13117 |
hardcode_into_libs=yes |
| 13118 |
;; |
| 13119 |
|
| 13120 |
# No shared lib support for Linux oldld, aout, or coff. |
| 13121 |
linux*oldld* | linux*aout* | linux*coff*) |
| 13122 |
dynamic_linker=no |
| 13123 |
;; |
| 13124 |
|
| 13125 |
linux*android*) |
| 13126 |
version_type=none # Android doesn't support versioned libraries. |
| 13127 |
need_lib_prefix=no |
| 13128 |
need_version=no |
| 13129 |
library_names_spec='$libname$release$shared_ext' |
| 13130 |
soname_spec='$libname$release$shared_ext' |
| 13131 |
finish_cmds= |
| 13132 |
shlibpath_var=LD_LIBRARY_PATH |
| 13133 |
shlibpath_overrides_runpath=yes |
| 13134 |
|
| 13135 |
# This implies no fast_install, which is unacceptable. |
| 13136 |
# Some rework will be needed to allow for fast_install |
| 13137 |
# before this can be enabled. |
| 13138 |
hardcode_into_libs=yes |
| 13139 |
|
| 13140 |
dynamic_linker='Android linker' |
| 13141 |
# Don't embed -rpath directories since the linker doesn't support them. |
| 13142 |
hardcode_libdir_flag_spec='-L$libdir' |
| 13143 |
;; |
| 13144 |
|
| 13145 |
# This must be glibc/ELF. |
| 13146 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 13147 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 13148 |
need_lib_prefix=no |
| 13149 |
need_version=no |
| 13150 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13151 |
soname_spec='$libname$release$shared_ext$major' |
| 13152 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 13153 |
shlibpath_var=LD_LIBRARY_PATH |
| 13154 |
shlibpath_overrides_runpath=no |
| 13155 |
|
| 13156 |
# Some binutils ld are patched to set DT_RUNPATH |
| 13157 |
if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| 13158 |
$as_echo_n "(cached) " >&6 |
| 13159 |
else |
| 13160 |
lt_cv_shlibpath_overrides_runpath=no |
| 13161 |
save_LDFLAGS=$LDFLAGS |
| 13162 |
save_libdir=$libdir |
| 13163 |
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 13164 |
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 13165 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13166 |
/* end confdefs.h. */ |
| 13167 |
|
| 13168 |
int |
| 13169 |
main () |
| 13170 |
{ |
| 13171 |
|
| 13172 |
; |
| 13173 |
return 0; |
| 13174 |
} |
| 13175 |
_ACEOF |
| 13176 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13177 |
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 13178 |
lt_cv_shlibpath_overrides_runpath=yes |
| 13179 |
fi |
| 13180 |
fi |
| 13181 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13182 |
conftest$ac_exeext conftest.$ac_ext |
| 13183 |
LDFLAGS=$save_LDFLAGS |
| 13184 |
libdir=$save_libdir |
| 13185 |
|
| 13186 |
fi |
| 13187 |
|
| 13188 |
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 13189 |
|
| 13190 |
# This implies no fast_install, which is unacceptable. |
| 13191 |
# Some rework will be needed to allow for fast_install |
| 13192 |
# before this can be enabled. |
| 13193 |
hardcode_into_libs=yes |
| 13194 |
|
| 13195 |
# Ideally, we could use ldconfig to report *all* directores which are |
| 13196 |
# searched for libraries, however this is still not possible. Aside from not |
| 13197 |
# being certain /sbin/ldconfig is available, command |
| 13198 |
# 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, |
| 13199 |
# even though it is searched at run-time. Try to do the best guess by |
| 13200 |
# appending ld.so.conf contents (and includes) to the search path. |
| 13201 |
if test -f /etc/ld.so.conf; then |
| 13202 |
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' ' '` |
| 13203 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 13204 |
fi |
| 13205 |
|
| 13206 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
| 13207 |
# powerpc, because MkLinux only supported shared libraries with the |
| 13208 |
# GNU dynamic linker. Since this was broken with cross compilers, |
| 13209 |
# most powerpc-linux boxes support dynamic linking these days and |
| 13210 |
# people can always --disable-shared, the test was removed, and we |
| 13211 |
# assume the GNU/Linux dynamic linker is in use. |
| 13212 |
dynamic_linker='GNU/Linux ld.so' |
| 13213 |
;; |
| 13214 |
|
| 13215 |
netbsdelf*-gnu) |
| 13216 |
version_type=linux |
| 13217 |
need_lib_prefix=no |
| 13218 |
need_version=no |
| 13219 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13220 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 13221 |
shlibpath_var=LD_LIBRARY_PATH |
| 13222 |
shlibpath_overrides_runpath=no |
| 13223 |
hardcode_into_libs=yes |
| 13224 |
dynamic_linker='NetBSD ld.elf_so' |
| 13225 |
;; |
| 13226 |
|
| 13227 |
netbsd*) |
| 13228 |
version_type=sunos |
| 13229 |
need_lib_prefix=no |
| 13230 |
need_version=no |
| 13231 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 13232 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 13233 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13234 |
dynamic_linker='NetBSD (a.out) ld.so' |
| 13235 |
else |
| 13236 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13237 |
soname_spec='$libname$release$shared_ext$major' |
| 13238 |
dynamic_linker='NetBSD ld.elf_so' |
| 13239 |
fi |
| 13240 |
shlibpath_var=LD_LIBRARY_PATH |
| 13241 |
shlibpath_overrides_runpath=yes |
| 13242 |
hardcode_into_libs=yes |
| 13243 |
;; |
| 13244 |
|
| 13245 |
newsos6) |
| 13246 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 13247 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13248 |
shlibpath_var=LD_LIBRARY_PATH |
| 13249 |
shlibpath_overrides_runpath=yes |
| 13250 |
;; |
| 13251 |
|
| 13252 |
*nto* | *qnx*) |
| 13253 |
version_type=qnx |
| 13254 |
need_lib_prefix=no |
| 13255 |
need_version=no |
| 13256 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13257 |
soname_spec='$libname$release$shared_ext$major' |
| 13258 |
shlibpath_var=LD_LIBRARY_PATH |
| 13259 |
shlibpath_overrides_runpath=no |
| 13260 |
hardcode_into_libs=yes |
| 13261 |
dynamic_linker='ldqnx.so' |
| 13262 |
;; |
| 13263 |
|
| 13264 |
openbsd* | bitrig*) |
| 13265 |
version_type=sunos |
| 13266 |
sys_lib_dlsearch_path_spec=/usr/lib |
| 13267 |
need_lib_prefix=no |
| 13268 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 13269 |
need_version=no |
| 13270 |
else |
| 13271 |
need_version=yes |
| 13272 |
fi |
| 13273 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 13274 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13275 |
shlibpath_var=LD_LIBRARY_PATH |
| 13276 |
shlibpath_overrides_runpath=yes |
| 13277 |
;; |
| 13278 |
|
| 13279 |
os2*) |
| 13280 |
libname_spec='$name' |
| 13281 |
version_type=windows |
| 13282 |
shrext_cmds=.dll |
| 13283 |
need_version=no |
| 13284 |
need_lib_prefix=no |
| 13285 |
# OS/2 can only load a DLL with a base name of 8 characters or less. |
| 13286 |
soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
| 13287 |
v=$($ECHO $release$versuffix | tr -d .-); |
| 13288 |
n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
| 13289 |
$ECHO $n$v`$shared_ext' |
| 13290 |
library_names_spec='${libname}_dll.$libext' |
| 13291 |
dynamic_linker='OS/2 ld.exe' |
| 13292 |
shlibpath_var=BEGINLIBPATH |
| 13293 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 13294 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13295 |
postinstall_cmds='base_file=`basename \$file`~ |
| 13296 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
| 13297 |
dldir=$destdir/`dirname \$dlpath`~ |
| 13298 |
test -d \$dldir || mkdir -p \$dldir~ |
| 13299 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
| 13300 |
chmod a+x \$dldir/$dlname~ |
| 13301 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 13302 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 13303 |
fi' |
| 13304 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
| 13305 |
dlpath=$dir/\$dldll~ |
| 13306 |
$RM \$dlpath' |
| 13307 |
;; |
| 13308 |
|
| 13309 |
osf3* | osf4* | osf5*) |
| 13310 |
version_type=osf |
| 13311 |
need_lib_prefix=no |
| 13312 |
need_version=no |
| 13313 |
soname_spec='$libname$release$shared_ext$major' |
| 13314 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13315 |
shlibpath_var=LD_LIBRARY_PATH |
| 13316 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 13317 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13318 |
;; |
| 13319 |
|
| 13320 |
rdos*) |
| 13321 |
dynamic_linker=no |
| 13322 |
;; |
| 13323 |
|
| 13324 |
solaris*) |
| 13325 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 13326 |
need_lib_prefix=no |
| 13327 |
need_version=no |
| 13328 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13329 |
soname_spec='$libname$release$shared_ext$major' |
| 13330 |
shlibpath_var=LD_LIBRARY_PATH |
| 13331 |
shlibpath_overrides_runpath=yes |
| 13332 |
hardcode_into_libs=yes |
| 13333 |
# ldd complains unless libraries are executable |
| 13334 |
postinstall_cmds='chmod +x $lib' |
| 13335 |
;; |
| 13336 |
|
| 13337 |
sunos4*) |
| 13338 |
version_type=sunos |
| 13339 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 13340 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 13341 |
shlibpath_var=LD_LIBRARY_PATH |
| 13342 |
shlibpath_overrides_runpath=yes |
| 13343 |
if test yes = "$with_gnu_ld"; then |
| 13344 |
need_lib_prefix=no |
| 13345 |
fi |
| 13346 |
need_version=yes |
| 13347 |
;; |
| 13348 |
|
| 13349 |
sysv4 | sysv4.3*) |
| 13350 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 13351 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13352 |
soname_spec='$libname$release$shared_ext$major' |
| 13353 |
shlibpath_var=LD_LIBRARY_PATH |
| 13354 |
case $host_vendor in |
| 13355 |
sni) |
| 13356 |
shlibpath_overrides_runpath=no |
| 13357 |
need_lib_prefix=no |
| 13358 |
runpath_var=LD_RUN_PATH |
| 13359 |
;; |
| 13360 |
siemens) |
| 13361 |
need_lib_prefix=no |
| 13362 |
;; |
| 13363 |
motorola) |
| 13364 |
need_lib_prefix=no |
| 13365 |
need_version=no |
| 13366 |
shlibpath_overrides_runpath=no |
| 13367 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 13368 |
;; |
| 13369 |
esac |
| 13370 |
;; |
| 13371 |
|
| 13372 |
sysv4*MP*) |
| 13373 |
if test -d /usr/nec; then |
| 13374 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 13375 |
library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
| 13376 |
soname_spec='$libname$shared_ext.$major' |
| 13377 |
shlibpath_var=LD_LIBRARY_PATH |
| 13378 |
fi |
| 13379 |
;; |
| 13380 |
|
| 13381 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 13382 |
version_type=sco |
| 13383 |
need_lib_prefix=no |
| 13384 |
need_version=no |
| 13385 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
| 13386 |
soname_spec='$libname$release$shared_ext$major' |
| 13387 |
shlibpath_var=LD_LIBRARY_PATH |
| 13388 |
shlibpath_overrides_runpath=yes |
| 13389 |
hardcode_into_libs=yes |
| 13390 |
if test yes = "$with_gnu_ld"; then |
| 13391 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 13392 |
else |
| 13393 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 13394 |
case $host_os in |
| 13395 |
sco3.2v5*) |
| 13396 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 13397 |
;; |
| 13398 |
esac |
| 13399 |
fi |
| 13400 |
sys_lib_dlsearch_path_spec='/usr/lib' |
| 13401 |
;; |
| 13402 |
|
| 13403 |
tpf*) |
| 13404 |
# TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 13405 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 13406 |
need_lib_prefix=no |
| 13407 |
need_version=no |
| 13408 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13409 |
shlibpath_var=LD_LIBRARY_PATH |
| 13410 |
shlibpath_overrides_runpath=no |
| 13411 |
hardcode_into_libs=yes |
| 13412 |
;; |
| 13413 |
|
| 13414 |
uts4*) |
| 13415 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 13416 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13417 |
soname_spec='$libname$release$shared_ext$major' |
| 13418 |
shlibpath_var=LD_LIBRARY_PATH |
| 13419 |
;; |
| 13420 |
|
| 13421 |
*) |
| 13422 |
dynamic_linker=no |
| 13423 |
;; |
| 13424 |
esac |
| 13425 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 13426 |
$as_echo "$dynamic_linker" >&6; } |
| 13427 |
test no = "$dynamic_linker" && can_build_shared=no |
| 13428 |
|
| 13429 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 13430 |
if test yes = "$GCC"; then |
| 13431 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 13432 |
fi |
| 13433 |
|
| 13434 |
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
| 13435 |
sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
| 13436 |
fi |
| 13437 |
|
| 13438 |
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
| 13439 |
sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
| 13440 |
fi |
| 13441 |
|
| 13442 |
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
| 13443 |
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec |
| 13444 |
|
| 13445 |
# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code |
| 13446 |
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" |
| 13447 |
|
| 13448 |
# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool |
| 13449 |
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH |
| 13450 |
|
| 13451 |
|
| 13452 |
|
| 13453 |
|
| 13454 |
|
| 13455 |
|
| 13456 |
|
| 13457 |
|
| 13458 |
|
| 13459 |
|
| 13460 |
|
| 13461 |
|
| 13462 |
|
| 13463 |
|
| 13464 |
|
| 13465 |
|
| 13466 |
|
| 13467 |
|
| 13468 |
|
| 13469 |
|
| 13470 |
|
| 13471 |
|
| 13472 |
|
| 13473 |
|
| 13474 |
|
| 13475 |
|
| 13476 |
|
| 13477 |
|
| 13478 |
|
| 13479 |
|
| 13480 |
|
| 13481 |
|
| 13482 |
|
| 13483 |
|
| 13484 |
|
| 13485 |
|
| 13486 |
|
| 13487 |
|
| 13488 |
|
| 13489 |
|
| 13490 |
|
| 13491 |
|
| 13492 |
|
| 13493 |
|
| 13494 |
|
| 13495 |
|
| 13496 |
|
| 13497 |
|
| 13498 |
|
| 13499 |
|
| 13500 |
|
| 13501 |
|
| 13502 |
|
| 13503 |
|
| 13504 |
|
| 13505 |
|
| 13506 |
|
| 13507 |
|
| 13508 |
|
| 13509 |
|
| 13510 |
|
| 13511 |
|
| 13512 |
|
| 13513 |
|
| 13514 |
|
| 13515 |
|
| 13516 |
|
| 13517 |
|
| 13518 |
|
| 13519 |
|
| 13520 |
|
| 13521 |
|
| 13522 |
|
| 13523 |
|
| 13524 |
|
| 13525 |
|
| 13526 |
|
| 13527 |
|
| 13528 |
|
| 13529 |
|
| 13530 |
|
| 13531 |
|
| 13532 |
|
| 13533 |
|
| 13534 |
|
| 13535 |
|
| 13536 |
|
| 13537 |
|
| 13538 |
|
| 13539 |
|
| 13540 |
|
| 13541 |
|
| 13542 |
|
| 13543 |
|
| 13544 |
|
| 13545 |
|
| 13546 |
|
| 13547 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 13548 |
$as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 13549 |
hardcode_action= |
| 13550 |
if test -n "$hardcode_libdir_flag_spec" || |
| 13551 |
test -n "$runpath_var" || |
| 13552 |
test yes = "$hardcode_automatic"; then |
| 13553 |
|
| 13554 |
# We can hardcode non-existent directories. |
| 13555 |
if test no != "$hardcode_direct" && |
| 13556 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 13557 |
# have to relink, otherwise we might link with an installed library |
| 13558 |
# when we should be linking with a yet-to-be-installed one |
| 13559 |
## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
| 13560 |
test no != "$hardcode_minus_L"; then |
| 13561 |
# Linking always hardcodes the temporary library directory. |
| 13562 |
hardcode_action=relink |
| 13563 |
else |
| 13564 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 13565 |
hardcode_action=immediate |
| 13566 |
fi |
| 13567 |
else |
| 13568 |
# We cannot hardcode anything, or else we can only hardcode existing |
| 13569 |
# directories. |
| 13570 |
hardcode_action=unsupported |
| 13571 |
fi |
| 13572 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 13573 |
$as_echo "$hardcode_action" >&6; } |
| 13574 |
|
| 13575 |
if test relink = "$hardcode_action" || |
| 13576 |
test yes = "$inherit_rpath"; then |
| 13577 |
# Fast installation is not supported |
| 13578 |
enable_fast_install=no |
| 13579 |
elif test yes = "$shlibpath_overrides_runpath" || |
| 13580 |
test no = "$enable_shared"; then |
| 13581 |
# Fast installation is not necessary |
| 13582 |
enable_fast_install=needless |
| 13583 |
fi |
| 13584 |
|
| 13585 |
|
| 13586 |
|
| 13587 |
|
| 13588 |
|
| 13589 |
|
| 13590 |
if test yes != "$enable_dlopen"; then |
| 13591 |
enable_dlopen=unknown |
| 13592 |
enable_dlopen_self=unknown |
| 13593 |
enable_dlopen_self_static=unknown |
| 13594 |
else |
| 13595 |
lt_cv_dlopen=no |
| 13596 |
lt_cv_dlopen_libs= |
| 13597 |
|
| 13598 |
case $host_os in |
| 13599 |
beos*) |
| 13600 |
lt_cv_dlopen=load_add_on |
| 13601 |
lt_cv_dlopen_libs= |
| 13602 |
lt_cv_dlopen_self=yes |
| 13603 |
;; |
| 13604 |
|
| 13605 |
mingw* | pw32* | cegcc*) |
| 13606 |
lt_cv_dlopen=LoadLibrary |
| 13607 |
lt_cv_dlopen_libs= |
| 13608 |
;; |
| 13609 |
|
| 13610 |
cygwin*) |
| 13611 |
lt_cv_dlopen=dlopen |
| 13612 |
lt_cv_dlopen_libs= |
| 13613 |
;; |
| 13614 |
|
| 13615 |
darwin*) |
| 13616 |
# if libdl is installed we need to link against it |
| 13617 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 13618 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 13619 |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 13620 |
$as_echo_n "(cached) " >&6 |
| 13621 |
else |
| 13622 |
ac_check_lib_save_LIBS=$LIBS |
| 13623 |
LIBS="-ldl $LIBS" |
| 13624 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13625 |
/* end confdefs.h. */ |
| 13626 |
|
| 13627 |
/* Override any GCC internal prototype to avoid an error. |
| 13628 |
Use char because int might match the return type of a GCC |
| 13629 |
builtin and then its argument prototype would still apply. */ |
| 13630 |
#ifdef __cplusplus |
| 13631 |
extern "C" |
| 13632 |
#endif |
| 13633 |
char dlopen (); |
| 13634 |
int |
| 13635 |
main () |
| 13636 |
{ |
| 13637 |
return dlopen (); |
| 13638 |
; |
| 13639 |
return 0; |
| 13640 |
} |
| 13641 |
_ACEOF |
| 13642 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13643 |
ac_cv_lib_dl_dlopen=yes |
| 13644 |
else |
| 13645 |
ac_cv_lib_dl_dlopen=no |
| 13646 |
fi |
| 13647 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13648 |
conftest$ac_exeext conftest.$ac_ext |
| 13649 |
LIBS=$ac_check_lib_save_LIBS |
| 13650 |
fi |
| 13651 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13652 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 13653 |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 13654 |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
| 13655 |
else |
| 13656 |
|
| 13657 |
lt_cv_dlopen=dyld |
| 13658 |
lt_cv_dlopen_libs= |
| 13659 |
lt_cv_dlopen_self=yes |
| 13660 |
|
| 13661 |
fi |
| 13662 |
|
| 13663 |
;; |
| 13664 |
|
| 13665 |
tpf*) |
| 13666 |
# Don't try to run any link tests for TPF. We know it's impossible |
| 13667 |
# because TPF is a cross-compiler, and we know how we open DSOs. |
| 13668 |
lt_cv_dlopen=dlopen |
| 13669 |
lt_cv_dlopen_libs= |
| 13670 |
lt_cv_dlopen_self=no |
| 13671 |
;; |
| 13672 |
|
| 13673 |
*) |
| 13674 |
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 13675 |
if test "x$ac_cv_func_shl_load" = xyes; then : |
| 13676 |
lt_cv_dlopen=shl_load |
| 13677 |
else |
| 13678 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 13679 |
$as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 13680 |
if ${ac_cv_lib_dld_shl_load+:} false; then : |
| 13681 |
$as_echo_n "(cached) " >&6 |
| 13682 |
else |
| 13683 |
ac_check_lib_save_LIBS=$LIBS |
| 13684 |
LIBS="-ldld $LIBS" |
| 13685 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13686 |
/* end confdefs.h. */ |
| 13687 |
|
| 13688 |
/* Override any GCC internal prototype to avoid an error. |
| 13689 |
Use char because int might match the return type of a GCC |
| 13690 |
builtin and then its argument prototype would still apply. */ |
| 13691 |
#ifdef __cplusplus |
| 13692 |
extern "C" |
| 13693 |
#endif |
| 13694 |
char shl_load (); |
| 13695 |
int |
| 13696 |
main () |
| 13697 |
{ |
| 13698 |
return shl_load (); |
| 13699 |
; |
| 13700 |
return 0; |
| 13701 |
} |
| 13702 |
_ACEOF |
| 13703 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13704 |
ac_cv_lib_dld_shl_load=yes |
| 13705 |
else |
| 13706 |
ac_cv_lib_dld_shl_load=no |
| 13707 |
fi |
| 13708 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13709 |
conftest$ac_exeext conftest.$ac_ext |
| 13710 |
LIBS=$ac_check_lib_save_LIBS |
| 13711 |
fi |
| 13712 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 13713 |
$as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 13714 |
if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
| 13715 |
lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
| 13716 |
else |
| 13717 |
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 13718 |
if test "x$ac_cv_func_dlopen" = xyes; then : |
| 13719 |
lt_cv_dlopen=dlopen |
| 13720 |
else |
| 13721 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 13722 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 13723 |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 13724 |
$as_echo_n "(cached) " >&6 |
| 13725 |
else |
| 13726 |
ac_check_lib_save_LIBS=$LIBS |
| 13727 |
LIBS="-ldl $LIBS" |
| 13728 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13729 |
/* end confdefs.h. */ |
| 13730 |
|
| 13731 |
/* Override any GCC internal prototype to avoid an error. |
| 13732 |
Use char because int might match the return type of a GCC |
| 13733 |
builtin and then its argument prototype would still apply. */ |
| 13734 |
#ifdef __cplusplus |
| 13735 |
extern "C" |
| 13736 |
#endif |
| 13737 |
char dlopen (); |
| 13738 |
int |
| 13739 |
main () |
| 13740 |
{ |
| 13741 |
return dlopen (); |
| 13742 |
; |
| 13743 |
return 0; |
| 13744 |
} |
| 13745 |
_ACEOF |
| 13746 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13747 |
ac_cv_lib_dl_dlopen=yes |
| 13748 |
else |
| 13749 |
ac_cv_lib_dl_dlopen=no |
| 13750 |
fi |
| 13751 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13752 |
conftest$ac_exeext conftest.$ac_ext |
| 13753 |
LIBS=$ac_check_lib_save_LIBS |
| 13754 |
fi |
| 13755 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13756 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 13757 |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 13758 |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
| 13759 |
else |
| 13760 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 13761 |
$as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 13762 |
if ${ac_cv_lib_svld_dlopen+:} false; then : |
| 13763 |
$as_echo_n "(cached) " >&6 |
| 13764 |
else |
| 13765 |
ac_check_lib_save_LIBS=$LIBS |
| 13766 |
LIBS="-lsvld $LIBS" |
| 13767 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13768 |
/* end confdefs.h. */ |
| 13769 |
|
| 13770 |
/* Override any GCC internal prototype to avoid an error. |
| 13771 |
Use char because int might match the return type of a GCC |
| 13772 |
builtin and then its argument prototype would still apply. */ |
| 13773 |
#ifdef __cplusplus |
| 13774 |
extern "C" |
| 13775 |
#endif |
| 13776 |
char dlopen (); |
| 13777 |
int |
| 13778 |
main () |
| 13779 |
{ |
| 13780 |
return dlopen (); |
| 13781 |
; |
| 13782 |
return 0; |
| 13783 |
} |
| 13784 |
_ACEOF |
| 13785 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13786 |
ac_cv_lib_svld_dlopen=yes |
| 13787 |
else |
| 13788 |
ac_cv_lib_svld_dlopen=no |
| 13789 |
fi |
| 13790 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13791 |
conftest$ac_exeext conftest.$ac_ext |
| 13792 |
LIBS=$ac_check_lib_save_LIBS |
| 13793 |
fi |
| 13794 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 13795 |
$as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 13796 |
if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
| 13797 |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
| 13798 |
else |
| 13799 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 13800 |
$as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 13801 |
if ${ac_cv_lib_dld_dld_link+:} false; then : |
| 13802 |
$as_echo_n "(cached) " >&6 |
| 13803 |
else |
| 13804 |
ac_check_lib_save_LIBS=$LIBS |
| 13805 |
LIBS="-ldld $LIBS" |
| 13806 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13807 |
/* end confdefs.h. */ |
| 13808 |
|
| 13809 |
/* Override any GCC internal prototype to avoid an error. |
| 13810 |
Use char because int might match the return type of a GCC |
| 13811 |
builtin and then its argument prototype would still apply. */ |
| 13812 |
#ifdef __cplusplus |
| 13813 |
extern "C" |
| 13814 |
#endif |
| 13815 |
char dld_link (); |
| 13816 |
int |
| 13817 |
main () |
| 13818 |
{ |
| 13819 |
return dld_link (); |
| 13820 |
; |
| 13821 |
return 0; |
| 13822 |
} |
| 13823 |
_ACEOF |
| 13824 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13825 |
ac_cv_lib_dld_dld_link=yes |
| 13826 |
else |
| 13827 |
ac_cv_lib_dld_dld_link=no |
| 13828 |
fi |
| 13829 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13830 |
conftest$ac_exeext conftest.$ac_ext |
| 13831 |
LIBS=$ac_check_lib_save_LIBS |
| 13832 |
fi |
| 13833 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 13834 |
$as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 13835 |
if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
| 13836 |
lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
| 13837 |
fi |
| 13838 |
|
| 13839 |
|
| 13840 |
fi |
| 13841 |
|
| 13842 |
|
| 13843 |
fi |
| 13844 |
|
| 13845 |
|
| 13846 |
fi |
| 13847 |
|
| 13848 |
|
| 13849 |
fi |
| 13850 |
|
| 13851 |
|
| 13852 |
fi |
| 13853 |
|
| 13854 |
;; |
| 13855 |
esac |
| 13856 |
|
| 13857 |
if test no = "$lt_cv_dlopen"; then |
| 13858 |
enable_dlopen=no |
| 13859 |
else |
| 13860 |
enable_dlopen=yes |
| 13861 |
fi |
| 13862 |
|
| 13863 |
case $lt_cv_dlopen in |
| 13864 |
dlopen) |
| 13865 |
save_CPPFLAGS=$CPPFLAGS |
| 13866 |
test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 13867 |
|
| 13868 |
save_LDFLAGS=$LDFLAGS |
| 13869 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 13870 |
|
| 13871 |
save_LIBS=$LIBS |
| 13872 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
| 13873 |
|
| 13874 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 13875 |
$as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| 13876 |
if ${lt_cv_dlopen_self+:} false; then : |
| 13877 |
$as_echo_n "(cached) " >&6 |
| 13878 |
else |
| 13879 |
if test yes = "$cross_compiling"; then : |
| 13880 |
lt_cv_dlopen_self=cross |
| 13881 |
else |
| 13882 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 13883 |
lt_status=$lt_dlunknown |
| 13884 |
cat > conftest.$ac_ext <<_LT_EOF |
| 13885 |
#line $LINENO "configure" |
| 13886 |
#include "confdefs.h" |
| 13887 |
|
| 13888 |
#if HAVE_DLFCN_H |
| 13889 |
#include <dlfcn.h> |
| 13890 |
#endif |
| 13891 |
|
| 13892 |
#include <stdio.h> |
| 13893 |
|
| 13894 |
#ifdef RTLD_GLOBAL |
| 13895 |
# define LT_DLGLOBAL RTLD_GLOBAL |
| 13896 |
#else |
| 13897 |
# ifdef DL_GLOBAL |
| 13898 |
# define LT_DLGLOBAL DL_GLOBAL |
| 13899 |
# else |
| 13900 |
# define LT_DLGLOBAL 0 |
| 13901 |
# endif |
| 13902 |
#endif |
| 13903 |
|
| 13904 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 13905 |
find out it does not work in some platform. */ |
| 13906 |
#ifndef LT_DLLAZY_OR_NOW |
| 13907 |
# ifdef RTLD_LAZY |
| 13908 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 13909 |
# else |
| 13910 |
# ifdef DL_LAZY |
| 13911 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
| 13912 |
# else |
| 13913 |
# ifdef RTLD_NOW |
| 13914 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
| 13915 |
# else |
| 13916 |
# ifdef DL_NOW |
| 13917 |
# define LT_DLLAZY_OR_NOW DL_NOW |
| 13918 |
# else |
| 13919 |
# define LT_DLLAZY_OR_NOW 0 |
| 13920 |
# endif |
| 13921 |
# endif |
| 13922 |
# endif |
| 13923 |
# endif |
| 13924 |
#endif |
| 13925 |
|
| 13926 |
/* When -fvisibility=hidden is used, assume the code has been annotated |
| 13927 |
correspondingly for the symbols needed. */ |
| 13928 |
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 13929 |
int fnord () __attribute__((visibility("default"))); |
| 13930 |
#endif |
| 13931 |
|
| 13932 |
int fnord () { return 42; } |
| 13933 |
int main () |
| 13934 |
{ |
| 13935 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 13936 |
int status = $lt_dlunknown; |
| 13937 |
|
| 13938 |
if (self) |
| 13939 |
{ |
| 13940 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 13941 |
else |
| 13942 |
{ |
| 13943 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 13944 |
else puts (dlerror ()); |
| 13945 |
} |
| 13946 |
/* dlclose (self); */ |
| 13947 |
} |
| 13948 |
else |
| 13949 |
puts (dlerror ()); |
| 13950 |
|
| 13951 |
return status; |
| 13952 |
} |
| 13953 |
_LT_EOF |
| 13954 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 13955 |
(eval $ac_link) 2>&5 |
| 13956 |
ac_status=$? |
| 13957 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13958 |
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
| 13959 |
(./conftest; exit; ) >&5 2>/dev/null |
| 13960 |
lt_status=$? |
| 13961 |
case x$lt_status in |
| 13962 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 13963 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 13964 |
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 13965 |
esac |
| 13966 |
else : |
| 13967 |
# compilation failed |
| 13968 |
lt_cv_dlopen_self=no |
| 13969 |
fi |
| 13970 |
fi |
| 13971 |
rm -fr conftest* |
| 13972 |
|
| 13973 |
|
| 13974 |
fi |
| 13975 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 13976 |
$as_echo "$lt_cv_dlopen_self" >&6; } |
| 13977 |
|
| 13978 |
if test yes = "$lt_cv_dlopen_self"; then |
| 13979 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 13980 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 13981 |
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| 13982 |
if ${lt_cv_dlopen_self_static+:} false; then : |
| 13983 |
$as_echo_n "(cached) " >&6 |
| 13984 |
else |
| 13985 |
if test yes = "$cross_compiling"; then : |
| 13986 |
lt_cv_dlopen_self_static=cross |
| 13987 |
else |
| 13988 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 13989 |
lt_status=$lt_dlunknown |
| 13990 |
cat > conftest.$ac_ext <<_LT_EOF |
| 13991 |
#line $LINENO "configure" |
| 13992 |
#include "confdefs.h" |
| 13993 |
|
| 13994 |
#if HAVE_DLFCN_H |
| 13995 |
#include <dlfcn.h> |
| 13996 |
#endif |
| 13997 |
|
| 13998 |
#include <stdio.h> |
| 13999 |
|
| 14000 |
#ifdef RTLD_GLOBAL |
| 14001 |
# define LT_DLGLOBAL RTLD_GLOBAL |
| 14002 |
#else |
| 14003 |
# ifdef DL_GLOBAL |
| 14004 |
# define LT_DLGLOBAL DL_GLOBAL |
| 14005 |
# else |
| 14006 |
# define LT_DLGLOBAL 0 |
| 14007 |
# endif |
| 14008 |
#endif |
| 14009 |
|
| 14010 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 14011 |
find out it does not work in some platform. */ |
| 14012 |
#ifndef LT_DLLAZY_OR_NOW |
| 14013 |
# ifdef RTLD_LAZY |
| 14014 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 14015 |
# else |
| 14016 |
# ifdef DL_LAZY |
| 14017 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
| 14018 |
# else |
| 14019 |
# ifdef RTLD_NOW |
| 14020 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
| 14021 |
# else |
| 14022 |
# ifdef DL_NOW |
| 14023 |
# define LT_DLLAZY_OR_NOW DL_NOW |
| 14024 |
# else |
| 14025 |
# define LT_DLLAZY_OR_NOW 0 |
| 14026 |
# endif |
| 14027 |
# endif |
| 14028 |
# endif |
| 14029 |
# endif |
| 14030 |
#endif |
| 14031 |
|
| 14032 |
/* When -fvisibility=hidden is used, assume the code has been annotated |
| 14033 |
correspondingly for the symbols needed. */ |
| 14034 |
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 14035 |
int fnord () __attribute__((visibility("default"))); |
| 14036 |
#endif |
| 14037 |
|
| 14038 |
int fnord () { return 42; } |
| 14039 |
int main () |
| 14040 |
{ |
| 14041 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 14042 |
int status = $lt_dlunknown; |
| 14043 |
|
| 14044 |
if (self) |
| 14045 |
{ |
| 14046 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 14047 |
else |
| 14048 |
{ |
| 14049 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 14050 |
else puts (dlerror ()); |
| 14051 |
} |
| 14052 |
/* dlclose (self); */ |
| 14053 |
} |
| 14054 |
else |
| 14055 |
puts (dlerror ()); |
| 14056 |
|
| 14057 |
return status; |
| 14058 |
} |
| 14059 |
_LT_EOF |
| 14060 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 14061 |
(eval $ac_link) 2>&5 |
| 14062 |
ac_status=$? |
| 14063 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14064 |
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
| 14065 |
(./conftest; exit; ) >&5 2>/dev/null |
| 14066 |
lt_status=$? |
| 14067 |
case x$lt_status in |
| 14068 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 14069 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 14070 |
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 14071 |
esac |
| 14072 |
else : |
| 14073 |
# compilation failed |
| 14074 |
lt_cv_dlopen_self_static=no |
| 14075 |
fi |
| 14076 |
fi |
| 14077 |
rm -fr conftest* |
| 14078 |
|
| 14079 |
|
| 14080 |
fi |
| 14081 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 14082 |
$as_echo "$lt_cv_dlopen_self_static" >&6; } |
| 14083 |
fi |
| 14084 |
|
| 14085 |
CPPFLAGS=$save_CPPFLAGS |
| 14086 |
LDFLAGS=$save_LDFLAGS |
| 14087 |
LIBS=$save_LIBS |
| 14088 |
;; |
| 14089 |
esac |
| 14090 |
|
| 14091 |
case $lt_cv_dlopen_self in |
| 14092 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 14093 |
*) enable_dlopen_self=unknown ;; |
| 14094 |
esac |
| 14095 |
|
| 14096 |
case $lt_cv_dlopen_self_static in |
| 14097 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 14098 |
*) enable_dlopen_self_static=unknown ;; |
| 14099 |
esac |
| 14100 |
fi |
| 14101 |
|
| 14102 |
|
| 14103 |
|
| 14104 |
|
| 14105 |
|
| 14106 |
|
| 14107 |
|
| 14108 |
|
| 14109 |
|
| 14110 |
|
| 14111 |
|
| 14112 |
|
| 14113 |
|
| 14114 |
|
| 14115 |
|
| 14116 |
|
| 14117 |
|
| 14118 |
striplib= |
| 14119 |
old_striplib= |
| 14120 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 14121 |
$as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 14122 |
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 14123 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 14124 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 14125 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14126 |
$as_echo "yes" >&6; } |
| 14127 |
else |
| 14128 |
# FIXME - insert some real tests, host_os isn't really good enough |
| 14129 |
case $host_os in |
| 14130 |
darwin*) |
| 14131 |
if test -n "$STRIP"; then |
| 14132 |
striplib="$STRIP -x" |
| 14133 |
old_striplib="$STRIP -S" |
| 14134 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14135 |
$as_echo "yes" >&6; } |
| 14136 |
else |
| 14137 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14138 |
$as_echo "no" >&6; } |
| 14139 |
fi |
| 14140 |
;; |
| 14141 |
*) |
| 14142 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14143 |
$as_echo "no" >&6; } |
| 14144 |
;; |
| 14145 |
esac |
| 14146 |
fi |
| 14147 |
|
| 14148 |
|
| 14149 |
|
| 14150 |
|
| 14151 |
|
| 14152 |
|
| 14153 |
|
| 14154 |
|
| 14155 |
|
| 14156 |
|
| 14157 |
|
| 14158 |
|
| 14159 |
# Report what library types will actually be built |
| 14160 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 14161 |
$as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 14162 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 14163 |
$as_echo "$can_build_shared" >&6; } |
| 14164 |
|
| 14165 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 14166 |
$as_echo_n "checking whether to build shared libraries... " >&6; } |
| 14167 |
test no = "$can_build_shared" && enable_shared=no |
| 14168 |
|
| 14169 |
# On AIX, shared libraries and static libraries use the same namespace, and |
| 14170 |
# are all built from PIC. |
| 14171 |
case $host_os in |
| 14172 |
aix3*) |
| 14173 |
test yes = "$enable_shared" && enable_static=no |
| 14174 |
if test -n "$RANLIB"; then |
| 14175 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 14176 |
postinstall_cmds='$RANLIB $lib' |
| 14177 |
fi |
| 14178 |
;; |
| 14179 |
|
| 14180 |
aix[4-9]*) |
| 14181 |
if test ia64 != "$host_cpu"; then |
| 14182 |
case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in |
| 14183 |
yes,aix,yes) ;; # shared object as lib.so file only |
| 14184 |
yes,svr4,*) ;; # shared object as lib.so archive member only |
| 14185 |
yes,*) enable_static=no ;; # shared object in lib.a archive as well |
| 14186 |
esac |
| 14187 |
fi |
| 14188 |
;; |
| 14189 |
esac |
| 14190 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 14191 |
$as_echo "$enable_shared" >&6; } |
| 14192 |
|
| 14193 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 14194 |
$as_echo_n "checking whether to build static libraries... " >&6; } |
| 14195 |
# Make sure either enable_shared or enable_static is yes. |
| 14196 |
test yes = "$enable_shared" || enable_static=yes |
| 14197 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 14198 |
$as_echo "$enable_static" >&6; } |
| 14199 |
|
| 14200 |
|
| 14201 |
|
| 14202 |
|
| 14203 |
fi |
| 14204 |
ac_ext=c |
| 14205 |
ac_cpp='$CPP $CPPFLAGS' |
| 14206 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14207 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14208 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14209 |
|
| 14210 |
CC=$lt_save_CC |
| 14211 |
|
| 14212 |
if test -n "$CXX" && ( test no != "$CXX" && |
| 14213 |
( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || |
| 14214 |
(test g++ != "$CXX"))); then |
| 14215 |
ac_ext=cpp |
| 14216 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 14217 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14218 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14219 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 14220 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 14221 |
$as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 14222 |
if test -z "$CXXCPP"; then |
| 14223 |
if ${ac_cv_prog_CXXCPP+:} false; then : |
| 14224 |
$as_echo_n "(cached) " >&6 |
| 14225 |
else |
| 14226 |
# Double quotes because CXXCPP needs to be expanded |
| 14227 |
for CXXCPP in "$CXX -E" "/lib/cpp" |
| 14228 |
do |
| 14229 |
ac_preproc_ok=false |
| 14230 |
for ac_cxx_preproc_warn_flag in '' yes |
| 14231 |
do |
| 14232 |
# Use a header file that comes with gcc, so configuring glibc |
| 14233 |
# with a fresh cross-compiler works. |
| 14234 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14235 |
# <limits.h> exists even on freestanding compilers. |
| 14236 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 14237 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 14238 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14239 |
/* end confdefs.h. */ |
| 14240 |
#ifdef __STDC__ |
| 14241 |
# include <limits.h> |
| 14242 |
#else |
| 14243 |
# include <assert.h> |
| 14244 |
#endif |
| 14245 |
Syntax error |
| 14246 |
_ACEOF |
| 14247 |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 14248 |
|
| 14249 |
else |
| 14250 |
# Broken: fails on valid input. |
| 14251 |
continue |
| 14252 |
fi |
| 14253 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 14254 |
|
| 14255 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 14256 |
# can be detected and how. |
| 14257 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14258 |
/* end confdefs.h. */ |
| 14259 |
#include <ac_nonexistent.h> |
| 14260 |
_ACEOF |
| 14261 |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 14262 |
# Broken: success on invalid input. |
| 14263 |
continue |
| 14264 |
else |
| 14265 |
# Passes both tests. |
| 14266 |
ac_preproc_ok=: |
| 14267 |
break |
| 14268 |
fi |
| 14269 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 14270 |
|
| 14271 |
done |
| 14272 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 14273 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 14274 |
if $ac_preproc_ok; then : |
| 14275 |
break |
| 14276 |
fi |
| 14277 |
|
| 14278 |
done |
| 14279 |
ac_cv_prog_CXXCPP=$CXXCPP |
| 14280 |
|
| 14281 |
fi |
| 14282 |
CXXCPP=$ac_cv_prog_CXXCPP |
| 14283 |
else |
| 14284 |
ac_cv_prog_CXXCPP=$CXXCPP |
| 14285 |
fi |
| 14286 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 14287 |
$as_echo "$CXXCPP" >&6; } |
| 14288 |
ac_preproc_ok=false |
| 14289 |
for ac_cxx_preproc_warn_flag in '' yes |
| 14290 |
do |
| 14291 |
# Use a header file that comes with gcc, so configuring glibc |
| 14292 |
# with a fresh cross-compiler works. |
| 14293 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14294 |
# <limits.h> exists even on freestanding compilers. |
| 14295 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 14296 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 14297 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14298 |
/* end confdefs.h. */ |
| 14299 |
#ifdef __STDC__ |
| 14300 |
# include <limits.h> |
| 14301 |
#else |
| 14302 |
# include <assert.h> |
| 14303 |
#endif |
| 14304 |
Syntax error |
| 14305 |
_ACEOF |
| 14306 |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 14307 |
|
| 14308 |
else |
| 14309 |
# Broken: fails on valid input. |
| 14310 |
continue |
| 14311 |
fi |
| 14312 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 14313 |
|
| 14314 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 14315 |
# can be detected and how. |
| 14316 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14317 |
/* end confdefs.h. */ |
| 14318 |
#include <ac_nonexistent.h> |
| 14319 |
_ACEOF |
| 14320 |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 14321 |
# Broken: success on invalid input. |
| 14322 |
continue |
| 14323 |
else |
| 14324 |
# Passes both tests. |
| 14325 |
ac_preproc_ok=: |
| 14326 |
break |
| 14327 |
fi |
| 14328 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 14329 |
|
| 14330 |
done |
| 14331 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 14332 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 14333 |
if $ac_preproc_ok; then : |
| 14334 |
|
| 14335 |
else |
| 14336 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 14337 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14338 |
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
| 14339 |
See \`config.log' for more details" "$LINENO" 5; } |
| 14340 |
fi |
| 14341 |
|
| 14342 |
ac_ext=c |
| 14343 |
ac_cpp='$CPP $CPPFLAGS' |
| 14344 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14345 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14346 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14347 |
|
| 14348 |
else |
| 14349 |
_lt_caught_CXX_error=yes |
| 14350 |
fi |
| 14351 |
|
| 14352 |
ac_ext=cpp |
| 14353 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 14354 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14355 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14356 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 14357 |
|
| 14358 |
archive_cmds_need_lc_CXX=no |
| 14359 |
allow_undefined_flag_CXX= |
| 14360 |
always_export_symbols_CXX=no |
| 14361 |
archive_expsym_cmds_CXX= |
| 14362 |
compiler_needs_object_CXX=no |
| 14363 |
export_dynamic_flag_spec_CXX= |
| 14364 |
hardcode_direct_CXX=no |
| 14365 |
hardcode_direct_absolute_CXX=no |
| 14366 |
hardcode_libdir_flag_spec_CXX= |
| 14367 |
hardcode_libdir_separator_CXX= |
| 14368 |
hardcode_minus_L_CXX=no |
| 14369 |
hardcode_shlibpath_var_CXX=unsupported |
| 14370 |
hardcode_automatic_CXX=no |
| 14371 |
inherit_rpath_CXX=no |
| 14372 |
module_cmds_CXX= |
| 14373 |
module_expsym_cmds_CXX= |
| 14374 |
link_all_deplibs_CXX=unknown |
| 14375 |
old_archive_cmds_CXX=$old_archive_cmds |
| 14376 |
reload_flag_CXX=$reload_flag |
| 14377 |
reload_cmds_CXX=$reload_cmds |
| 14378 |
no_undefined_flag_CXX= |
| 14379 |
whole_archive_flag_spec_CXX= |
| 14380 |
enable_shared_with_static_runtimes_CXX=no |
| 14381 |
|
| 14382 |
# Source file extension for C++ test sources. |
| 14383 |
ac_ext=cpp |
| 14384 |
|
| 14385 |
# Object file extension for compiled C++ test sources. |
| 14386 |
objext=o |
| 14387 |
objext_CXX=$objext |
| 14388 |
|
| 14389 |
# No sense in running all these tests if we already determined that |
| 14390 |
# the CXX compiler isn't working. Some variables (like enable_shared) |
| 14391 |
# are currently assumed to apply to all compilers on this platform, |
| 14392 |
# and will be corrupted by setting them based on a non-working compiler. |
| 14393 |
if test yes != "$_lt_caught_CXX_error"; then |
| 14394 |
# Code to be used in simple compile tests |
| 14395 |
lt_simple_compile_test_code="int some_variable = 0;" |
| 14396 |
|
| 14397 |
# Code to be used in simple link tests |
| 14398 |
lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
| 14399 |
|
| 14400 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 14401 |
|
| 14402 |
|
| 14403 |
|
| 14404 |
|
| 14405 |
|
| 14406 |
|
| 14407 |
# If no C compiler was specified, use CC. |
| 14408 |
LTCC=${LTCC-"$CC"} |
| 14409 |
|
| 14410 |
# If no C compiler flags were specified, use CFLAGS. |
| 14411 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14412 |
|
| 14413 |
# Allow CC to be a program name with arguments. |
| 14414 |
compiler=$CC |
| 14415 |
|
| 14416 |
|
| 14417 |
# save warnings/boilerplate of simple test code |
| 14418 |
ac_outfile=conftest.$ac_objext |
| 14419 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14420 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14421 |
_lt_compiler_boilerplate=`cat conftest.err` |
| 14422 |
$RM conftest* |
| 14423 |
|
| 14424 |
ac_outfile=conftest.$ac_objext |
| 14425 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14426 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14427 |
_lt_linker_boilerplate=`cat conftest.err` |
| 14428 |
$RM -r conftest* |
| 14429 |
|
| 14430 |
|
| 14431 |
# Allow CC to be a program name with arguments. |
| 14432 |
lt_save_CC=$CC |
| 14433 |
lt_save_CFLAGS=$CFLAGS |
| 14434 |
lt_save_LD=$LD |
| 14435 |
lt_save_GCC=$GCC |
| 14436 |
GCC=$GXX |
| 14437 |
lt_save_with_gnu_ld=$with_gnu_ld |
| 14438 |
lt_save_path_LD=$lt_cv_path_LD |
| 14439 |
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 14440 |
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 14441 |
else |
| 14442 |
$as_unset lt_cv_prog_gnu_ld |
| 14443 |
fi |
| 14444 |
if test -n "${lt_cv_path_LDCXX+set}"; then |
| 14445 |
lt_cv_path_LD=$lt_cv_path_LDCXX |
| 14446 |
else |
| 14447 |
$as_unset lt_cv_path_LD |
| 14448 |
fi |
| 14449 |
test -z "${LDCXX+set}" || LD=$LDCXX |
| 14450 |
CC=${CXX-"c++"} |
| 14451 |
CFLAGS=$CXXFLAGS |
| 14452 |
compiler=$CC |
| 14453 |
compiler_CXX=$CC |
| 14454 |
func_cc_basename $compiler |
| 14455 |
cc_basename=$func_cc_basename_result |
| 14456 |
|
| 14457 |
|
| 14458 |
if test -n "$compiler"; then |
| 14459 |
# We don't want -fno-exception when compiling C++ code, so set the |
| 14460 |
# no_builtin_flag separately |
| 14461 |
if test yes = "$GXX"; then |
| 14462 |
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 14463 |
else |
| 14464 |
lt_prog_compiler_no_builtin_flag_CXX= |
| 14465 |
fi |
| 14466 |
|
| 14467 |
if test yes = "$GXX"; then |
| 14468 |
# Set up default GNU C++ configuration |
| 14469 |
|
| 14470 |
|
| 14471 |
|
| 14472 |
# Check whether --with-gnu-ld was given. |
| 14473 |
if test "${with_gnu_ld+set}" = set; then : |
| 14474 |
withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
| 14475 |
else |
| 14476 |
with_gnu_ld=no |
| 14477 |
fi |
| 14478 |
|
| 14479 |
ac_prog=ld |
| 14480 |
if test yes = "$GCC"; then |
| 14481 |
# Check if gcc -print-prog-name=ld gives a path. |
| 14482 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 14483 |
$as_echo_n "checking for ld used by $CC... " >&6; } |
| 14484 |
case $host in |
| 14485 |
*-*-mingw*) |
| 14486 |
# gcc leaves a trailing carriage return, which upsets mingw |
| 14487 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 14488 |
*) |
| 14489 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 14490 |
esac |
| 14491 |
case $ac_prog in |
| 14492 |
# Accept absolute paths. |
| 14493 |
[\\/]* | ?:[\\/]*) |
| 14494 |
re_direlt='/[^/][^/]*/\.\./' |
| 14495 |
# Canonicalize the pathname of ld |
| 14496 |
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 14497 |
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 14498 |
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 14499 |
done |
| 14500 |
test -z "$LD" && LD=$ac_prog |
| 14501 |
;; |
| 14502 |
"") |
| 14503 |
# If it fails, then pretend we aren't using GCC. |
| 14504 |
ac_prog=ld |
| 14505 |
;; |
| 14506 |
*) |
| 14507 |
# If it is relative, then search for the first ld in PATH. |
| 14508 |
with_gnu_ld=unknown |
| 14509 |
;; |
| 14510 |
esac |
| 14511 |
elif test yes = "$with_gnu_ld"; then |
| 14512 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 14513 |
$as_echo_n "checking for GNU ld... " >&6; } |
| 14514 |
else |
| 14515 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 14516 |
$as_echo_n "checking for non-GNU ld... " >&6; } |
| 14517 |
fi |
| 14518 |
if ${lt_cv_path_LD+:} false; then : |
| 14519 |
$as_echo_n "(cached) " >&6 |
| 14520 |
else |
| 14521 |
if test -z "$LD"; then |
| 14522 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 14523 |
for ac_dir in $PATH; do |
| 14524 |
IFS=$lt_save_ifs |
| 14525 |
test -z "$ac_dir" && ac_dir=. |
| 14526 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 14527 |
lt_cv_path_LD=$ac_dir/$ac_prog |
| 14528 |
# Check to see if the program is GNU ld. I'd rather use --version, |
| 14529 |
# but apparently some variants of GNU ld only accept -v. |
| 14530 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
| 14531 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 14532 |
*GNU* | *'with BFD'*) |
| 14533 |
test no != "$with_gnu_ld" && break |
| 14534 |
;; |
| 14535 |
*) |
| 14536 |
test yes != "$with_gnu_ld" && break |
| 14537 |
;; |
| 14538 |
esac |
| 14539 |
fi |
| 14540 |
done |
| 14541 |
IFS=$lt_save_ifs |
| 14542 |
else |
| 14543 |
lt_cv_path_LD=$LD # Let the user override the test with a path. |
| 14544 |
fi |
| 14545 |
fi |
| 14546 |
|
| 14547 |
LD=$lt_cv_path_LD |
| 14548 |
if test -n "$LD"; then |
| 14549 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 14550 |
$as_echo "$LD" >&6; } |
| 14551 |
else |
| 14552 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14553 |
$as_echo "no" >&6; } |
| 14554 |
fi |
| 14555 |
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 14556 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 14557 |
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 14558 |
if ${lt_cv_prog_gnu_ld+:} false; then : |
| 14559 |
$as_echo_n "(cached) " >&6 |
| 14560 |
else |
| 14561 |
# I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 14562 |
case `$LD -v 2>&1 </dev/null` in |
| 14563 |
*GNU* | *'with BFD'*) |
| 14564 |
lt_cv_prog_gnu_ld=yes |
| 14565 |
;; |
| 14566 |
*) |
| 14567 |
lt_cv_prog_gnu_ld=no |
| 14568 |
;; |
| 14569 |
esac |
| 14570 |
fi |
| 14571 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 14572 |
$as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 14573 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
| 14574 |
|
| 14575 |
|
| 14576 |
|
| 14577 |
|
| 14578 |
|
| 14579 |
|
| 14580 |
|
| 14581 |
# Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 14582 |
# archiving commands below assume that GNU ld is being used. |
| 14583 |
if test yes = "$with_gnu_ld"; then |
| 14584 |
archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
| 14585 |
archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 14586 |
|
| 14587 |
hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
| 14588 |
export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
| 14589 |
|
| 14590 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
| 14591 |
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 14592 |
# investigate it a little bit more. (MM) |
| 14593 |
wlarc='$wl' |
| 14594 |
|
| 14595 |
# ancient GNU ld didn't support --whole-archive et. al. |
| 14596 |
if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 14597 |
$GREP 'no-whole-archive' > /dev/null; then |
| 14598 |
whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
| 14599 |
else |
| 14600 |
whole_archive_flag_spec_CXX= |
| 14601 |
fi |
| 14602 |
else |
| 14603 |
with_gnu_ld=no |
| 14604 |
wlarc= |
| 14605 |
|
| 14606 |
# A generic and very simple default shared library creation |
| 14607 |
# command for GNU C++ for the case where it uses the native |
| 14608 |
# linker, instead of GNU ld. If possible, this setting should |
| 14609 |
# overridden to take advantage of the native linker features on |
| 14610 |
# the platform it is being used on. |
| 14611 |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 14612 |
fi |
| 14613 |
|
| 14614 |
# Commands to make compiler produce verbose output that lists |
| 14615 |
# what "hidden" libraries, object files and flags are used when |
| 14616 |
# linking a shared library. |
| 14617 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' |
| 14618 |
|
| 14619 |
else |
| 14620 |
GXX=no |
| 14621 |
with_gnu_ld=no |
| 14622 |
wlarc= |
| 14623 |
fi |
| 14624 |
|
| 14625 |
# PORTME: fill in a description of your system's C++ link characteristics |
| 14626 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14627 |
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 14628 |
ld_shlibs_CXX=yes |
| 14629 |
case $host_os in |
| 14630 |
aix3*) |
| 14631 |
# FIXME: insert proper C++ library support |
| 14632 |
ld_shlibs_CXX=no |
| 14633 |
;; |
| 14634 |
aix[4-9]*) |
| 14635 |
if test ia64 = "$host_cpu"; then |
| 14636 |
# On IA64, the linker does run time linking by default, so we don't |
| 14637 |
# have to do anything special. |
| 14638 |
aix_use_runtimelinking=no |
| 14639 |
exp_sym_flag='-Bexport' |
| 14640 |
no_entry_flag= |
| 14641 |
else |
| 14642 |
aix_use_runtimelinking=no |
| 14643 |
|
| 14644 |
# Test if we are trying to use run time linking or normal |
| 14645 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 14646 |
# have runtime linking enabled, and use it for executables. |
| 14647 |
# For shared libraries, we enable/disable runtime linking |
| 14648 |
# depending on the kind of the shared library created - |
| 14649 |
# when "with_aix_soname,aix_use_runtimelinking" is: |
| 14650 |
# "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
| 14651 |
# "aix,yes" lib.so shared, rtl:yes, for executables |
| 14652 |
# lib.a static archive |
| 14653 |
# "both,no" lib.so.V(shr.o) shared, rtl:yes |
| 14654 |
# lib.a(lib.so.V) shared, rtl:no, for executables |
| 14655 |
# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 14656 |
# lib.a(lib.so.V) shared, rtl:no |
| 14657 |
# "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 14658 |
# lib.a static archive |
| 14659 |
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 14660 |
for ld_flag in $LDFLAGS; do |
| 14661 |
case $ld_flag in |
| 14662 |
*-brtl*) |
| 14663 |
aix_use_runtimelinking=yes |
| 14664 |
break |
| 14665 |
;; |
| 14666 |
esac |
| 14667 |
done |
| 14668 |
if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 14669 |
# With aix-soname=svr4, we create the lib.so.V shared archives only, |
| 14670 |
# so we don't have lib.a shared libs to link our executables. |
| 14671 |
# We have to force runtime linking in this case. |
| 14672 |
aix_use_runtimelinking=yes |
| 14673 |
LDFLAGS="$LDFLAGS -Wl,-brtl" |
| 14674 |
fi |
| 14675 |
;; |
| 14676 |
esac |
| 14677 |
|
| 14678 |
exp_sym_flag='-bexport' |
| 14679 |
no_entry_flag='-bnoentry' |
| 14680 |
fi |
| 14681 |
|
| 14682 |
# When large executables or shared objects are built, AIX ld can |
| 14683 |
# have problems creating the table of contents. If linking a library |
| 14684 |
# or program results in "error TOC overflow" add -mminimal-toc to |
| 14685 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 14686 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 14687 |
|
| 14688 |
archive_cmds_CXX='' |
| 14689 |
hardcode_direct_CXX=yes |
| 14690 |
hardcode_direct_absolute_CXX=yes |
| 14691 |
hardcode_libdir_separator_CXX=':' |
| 14692 |
link_all_deplibs_CXX=yes |
| 14693 |
file_list_spec_CXX='$wl-f,' |
| 14694 |
case $with_aix_soname,$aix_use_runtimelinking in |
| 14695 |
aix,*) ;; # no import file |
| 14696 |
svr4,* | *,yes) # use import file |
| 14697 |
# The Import File defines what to hardcode. |
| 14698 |
hardcode_direct_CXX=no |
| 14699 |
hardcode_direct_absolute_CXX=no |
| 14700 |
;; |
| 14701 |
esac |
| 14702 |
|
| 14703 |
if test yes = "$GXX"; then |
| 14704 |
case $host_os in aix4.[012]|aix4.[012].*) |
| 14705 |
# We only want to do this on AIX 4.2 and lower, the check |
| 14706 |
# below for broken collect2 doesn't work under 4.3+ |
| 14707 |
collect2name=`$CC -print-prog-name=collect2` |
| 14708 |
if test -f "$collect2name" && |
| 14709 |
strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 14710 |
then |
| 14711 |
# We have reworked collect2 |
| 14712 |
: |
| 14713 |
else |
| 14714 |
# We have old collect2 |
| 14715 |
hardcode_direct_CXX=unsupported |
| 14716 |
# It fails to find uninstalled libraries when the uninstalled |
| 14717 |
# path is not listed in the libpath. Setting hardcode_minus_L |
| 14718 |
# to unsupported forces relinking |
| 14719 |
hardcode_minus_L_CXX=yes |
| 14720 |
hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 14721 |
hardcode_libdir_separator_CXX= |
| 14722 |
fi |
| 14723 |
esac |
| 14724 |
shared_flag='-shared' |
| 14725 |
if test yes = "$aix_use_runtimelinking"; then |
| 14726 |
shared_flag=$shared_flag' $wl-G' |
| 14727 |
fi |
| 14728 |
# Need to ensure runtime linking is disabled for the traditional |
| 14729 |
# shared library, or the linker may eventually find shared libraries |
| 14730 |
# /with/ Import File - we do not want to mix them. |
| 14731 |
shared_flag_aix='-shared' |
| 14732 |
shared_flag_svr4='-shared $wl-G' |
| 14733 |
else |
| 14734 |
# not using gcc |
| 14735 |
if test ia64 = "$host_cpu"; then |
| 14736 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 14737 |
# chokes on -Wl,-G. The following line is correct: |
| 14738 |
shared_flag='-G' |
| 14739 |
else |
| 14740 |
if test yes = "$aix_use_runtimelinking"; then |
| 14741 |
shared_flag='$wl-G' |
| 14742 |
else |
| 14743 |
shared_flag='$wl-bM:SRE' |
| 14744 |
fi |
| 14745 |
shared_flag_aix='$wl-bM:SRE' |
| 14746 |
shared_flag_svr4='$wl-G' |
| 14747 |
fi |
| 14748 |
fi |
| 14749 |
|
| 14750 |
export_dynamic_flag_spec_CXX='$wl-bexpall' |
| 14751 |
# It seems that -bexpall does not export symbols beginning with |
| 14752 |
# underscore (_), so it is better to generate a list of symbols to |
| 14753 |
# export. |
| 14754 |
always_export_symbols_CXX=yes |
| 14755 |
if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 14756 |
# Warning - without using the other runtime loading flags (-brtl), |
| 14757 |
# -berok will link without error, but may produce a broken library. |
| 14758 |
# The "-G" linker flag allows undefined symbols. |
| 14759 |
no_undefined_flag_CXX='-bernotok' |
| 14760 |
# Determine the default libpath from the value encoded in an empty |
| 14761 |
# executable. |
| 14762 |
if test set = "${lt_cv_aix_libpath+set}"; then |
| 14763 |
aix_libpath=$lt_cv_aix_libpath |
| 14764 |
else |
| 14765 |
if ${lt_cv_aix_libpath__CXX+:} false; then : |
| 14766 |
$as_echo_n "(cached) " >&6 |
| 14767 |
else |
| 14768 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14769 |
/* end confdefs.h. */ |
| 14770 |
|
| 14771 |
int |
| 14772 |
main () |
| 14773 |
{ |
| 14774 |
|
| 14775 |
; |
| 14776 |
return 0; |
| 14777 |
} |
| 14778 |
_ACEOF |
| 14779 |
if ac_fn_cxx_try_link "$LINENO"; then : |
| 14780 |
|
| 14781 |
lt_aix_libpath_sed=' |
| 14782 |
/Import File Strings/,/^$/ { |
| 14783 |
/^0/ { |
| 14784 |
s/^0 *\([^ ]*\) *$/\1/ |
| 14785 |
p |
| 14786 |
} |
| 14787 |
}' |
| 14788 |
lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 14789 |
# Check for a 64-bit object if we didn't find anything. |
| 14790 |
if test -z "$lt_cv_aix_libpath__CXX"; then |
| 14791 |
lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 14792 |
fi |
| 14793 |
fi |
| 14794 |
rm -f core conftest.err conftest.$ac_objext \ |
| 14795 |
conftest$ac_exeext conftest.$ac_ext |
| 14796 |
if test -z "$lt_cv_aix_libpath__CXX"; then |
| 14797 |
lt_cv_aix_libpath__CXX=/usr/lib:/lib |
| 14798 |
fi |
| 14799 |
|
| 14800 |
fi |
| 14801 |
|
| 14802 |
aix_libpath=$lt_cv_aix_libpath__CXX |
| 14803 |
fi |
| 14804 |
|
| 14805 |
hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" |
| 14806 |
|
| 14807 |
archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag |
| 14808 |
else |
| 14809 |
if test ia64 = "$host_cpu"; then |
| 14810 |
hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' |
| 14811 |
allow_undefined_flag_CXX="-z nodefs" |
| 14812 |
archive_expsym_cmds_CXX="\$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" |
| 14813 |
else |
| 14814 |
# Determine the default libpath from the value encoded in an |
| 14815 |
# empty executable. |
| 14816 |
if test set = "${lt_cv_aix_libpath+set}"; then |
| 14817 |
aix_libpath=$lt_cv_aix_libpath |
| 14818 |
else |
| 14819 |
if ${lt_cv_aix_libpath__CXX+:} false; then : |
| 14820 |
$as_echo_n "(cached) " >&6 |
| 14821 |
else |
| 14822 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14823 |
/* end confdefs.h. */ |
| 14824 |
|
| 14825 |
int |
| 14826 |
main () |
| 14827 |
{ |
| 14828 |
|
| 14829 |
; |
| 14830 |
return 0; |
| 14831 |
} |
| 14832 |
_ACEOF |
| 14833 |
if ac_fn_cxx_try_link "$LINENO"; then : |
| 14834 |
|
| 14835 |
lt_aix_libpath_sed=' |
| 14836 |
/Import File Strings/,/^$/ { |
| 14837 |
/^0/ { |
| 14838 |
s/^0 *\([^ ]*\) *$/\1/ |
| 14839 |
p |
| 14840 |
} |
| 14841 |
}' |
| 14842 |
lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 14843 |
# Check for a 64-bit object if we didn't find anything. |
| 14844 |
if test -z "$lt_cv_aix_libpath__CXX"; then |
| 14845 |
lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 14846 |
fi |
| 14847 |
fi |
| 14848 |
rm -f core conftest.err conftest.$ac_objext \ |
| 14849 |
conftest$ac_exeext conftest.$ac_ext |
| 14850 |
if test -z "$lt_cv_aix_libpath__CXX"; then |
| 14851 |
lt_cv_aix_libpath__CXX=/usr/lib:/lib |
| 14852 |
fi |
| 14853 |
|
| 14854 |
fi |
| 14855 |
|
| 14856 |
aix_libpath=$lt_cv_aix_libpath__CXX |
| 14857 |
fi |
| 14858 |
|
| 14859 |
hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" |
| 14860 |
# Warning - without using the other run time loading flags, |
| 14861 |
# -berok will link without error, but may produce a broken library. |
| 14862 |
no_undefined_flag_CXX=' $wl-bernotok' |
| 14863 |
allow_undefined_flag_CXX=' $wl-berok' |
| 14864 |
if test yes = "$with_gnu_ld"; then |
| 14865 |
# We only use this code for GNU lds that support --whole-archive. |
| 14866 |
whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' |
| 14867 |
else |
| 14868 |
# Exported symbols can be pulled into shared objects from archives |
| 14869 |
whole_archive_flag_spec_CXX='$convenience' |
| 14870 |
fi |
| 14871 |
archive_cmds_need_lc_CXX=yes |
| 14872 |
archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
| 14873 |
# -brtl affects multiple linker settings, -berok does not and is overridden later |
| 14874 |
compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
| 14875 |
if test svr4 != "$with_aix_soname"; then |
| 14876 |
# This is similar to how AIX traditionally builds its shared |
| 14877 |
# libraries. Need -bnortl late, we may have -brtl in LDFLAGS. |
| 14878 |
archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' |
| 14879 |
fi |
| 14880 |
if test aix != "$with_aix_soname"; then |
| 14881 |
archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' |
| 14882 |
else |
| 14883 |
# used by -dlpreopen to get the symbols |
| 14884 |
archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
| 14885 |
fi |
| 14886 |
archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' |
| 14887 |
fi |
| 14888 |
fi |
| 14889 |
;; |
| 14890 |
|
| 14891 |
beos*) |
| 14892 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 14893 |
allow_undefined_flag_CXX=unsupported |
| 14894 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 14895 |
# support --undefined. This deserves some investigation. FIXME |
| 14896 |
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 14897 |
else |
| 14898 |
ld_shlibs_CXX=no |
| 14899 |
fi |
| 14900 |
;; |
| 14901 |
|
| 14902 |
chorus*) |
| 14903 |
case $cc_basename in |
| 14904 |
*) |
| 14905 |
# FIXME: insert proper C++ library support |
| 14906 |
ld_shlibs_CXX=no |
| 14907 |
;; |
| 14908 |
esac |
| 14909 |
;; |
| 14910 |
|
| 14911 |
cygwin* | mingw* | pw32* | cegcc*) |
| 14912 |
case $GXX,$cc_basename in |
| 14913 |
,cl* | no,cl*) |
| 14914 |
# Native MSVC |
| 14915 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
| 14916 |
# no search path for DLLs. |
| 14917 |
hardcode_libdir_flag_spec_CXX=' ' |
| 14918 |
allow_undefined_flag_CXX=unsupported |
| 14919 |
always_export_symbols_CXX=yes |
| 14920 |
file_list_spec_CXX='@' |
| 14921 |
# Tell ltmain to make .lib files, not .a files. |
| 14922 |
libext=lib |
| 14923 |
# Tell ltmain to make .dll files, not .so files. |
| 14924 |
shrext_cmds=.dll |
| 14925 |
# FIXME: Setting linknames here is a bad hack. |
| 14926 |
archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
| 14927 |
archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 14928 |
cp "$export_symbols" "$output_objdir/$soname.def"; |
| 14929 |
echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
| 14930 |
else |
| 14931 |
$SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
| 14932 |
fi~ |
| 14933 |
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 14934 |
linknames=' |
| 14935 |
# The linker will not automatically build a static lib if we build a DLL. |
| 14936 |
# _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' |
| 14937 |
enable_shared_with_static_runtimes_CXX=yes |
| 14938 |
# Don't use ranlib |
| 14939 |
old_postinstall_cmds_CXX='chmod 644 $oldlib' |
| 14940 |
postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ |
| 14941 |
lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 14942 |
case $lt_outputfile in |
| 14943 |
*.exe|*.EXE) ;; |
| 14944 |
*) |
| 14945 |
lt_outputfile=$lt_outputfile.exe |
| 14946 |
lt_tool_outputfile=$lt_tool_outputfile.exe |
| 14947 |
;; |
| 14948 |
esac~ |
| 14949 |
func_to_tool_file "$lt_outputfile"~ |
| 14950 |
if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
| 14951 |
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 14952 |
$RM "$lt_outputfile.manifest"; |
| 14953 |
fi' |
| 14954 |
;; |
| 14955 |
*) |
| 14956 |
# g++ |
| 14957 |
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 14958 |
# as there is no search path for DLLs. |
| 14959 |
hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 14960 |
export_dynamic_flag_spec_CXX='$wl--export-all-symbols' |
| 14961 |
allow_undefined_flag_CXX=unsupported |
| 14962 |
always_export_symbols_CXX=no |
| 14963 |
enable_shared_with_static_runtimes_CXX=yes |
| 14964 |
|
| 14965 |
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 14966 |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 14967 |
# If the export-symbols file already is a .def file, use it as |
| 14968 |
# is; otherwise, prepend EXPORTS... |
| 14969 |
archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 14970 |
cp $export_symbols $output_objdir/$soname.def; |
| 14971 |
else |
| 14972 |
echo EXPORTS > $output_objdir/$soname.def; |
| 14973 |
cat $export_symbols >> $output_objdir/$soname.def; |
| 14974 |
fi~ |
| 14975 |
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 14976 |
else |
| 14977 |
ld_shlibs_CXX=no |
| 14978 |
fi |
| 14979 |
;; |
| 14980 |
esac |
| 14981 |
;; |
| 14982 |
darwin* | rhapsody*) |
| 14983 |
|
| 14984 |
|
| 14985 |
archive_cmds_need_lc_CXX=no |
| 14986 |
hardcode_direct_CXX=no |
| 14987 |
hardcode_automatic_CXX=yes |
| 14988 |
hardcode_shlibpath_var_CXX=unsupported |
| 14989 |
if test yes = "$lt_cv_ld_force_load"; then |
| 14990 |
whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
| 14991 |
|
| 14992 |
else |
| 14993 |
whole_archive_flag_spec_CXX='' |
| 14994 |
fi |
| 14995 |
link_all_deplibs_CXX=yes |
| 14996 |
allow_undefined_flag_CXX=$_lt_dar_allow_undefined |
| 14997 |
case $cc_basename in |
| 14998 |
ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
| 14999 |
*) _lt_dar_can_shared=$GCC ;; |
| 15000 |
esac |
| 15001 |
if test yes = "$_lt_dar_can_shared"; then |
| 15002 |
output_verbose_link_cmd=func_echo_all |
| 15003 |
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
| 15004 |
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
| 15005 |
archive_expsym_cmds_CXX="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" |
| 15006 |
module_expsym_cmds_CXX="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" |
| 15007 |
if test yes != "$lt_cv_apple_cc_single_mod"; then |
| 15008 |
archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" |
| 15009 |
archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" |
| 15010 |
fi |
| 15011 |
|
| 15012 |
else |
| 15013 |
ld_shlibs_CXX=no |
| 15014 |
fi |
| 15015 |
|
| 15016 |
;; |
| 15017 |
|
| 15018 |
os2*) |
| 15019 |
hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 15020 |
hardcode_minus_L_CXX=yes |
| 15021 |
allow_undefined_flag_CXX=unsupported |
| 15022 |
shrext_cmds=.dll |
| 15023 |
archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 15024 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 15025 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 15026 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 15027 |
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 15028 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 15029 |
emximp -o $lib $output_objdir/$libname.def' |
| 15030 |
archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 15031 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 15032 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 15033 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 15034 |
prefix_cmds="$SED"~ |
| 15035 |
if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 15036 |
prefix_cmds="$prefix_cmds -e 1d"; |
| 15037 |
fi~ |
| 15038 |
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 15039 |
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 15040 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 15041 |
emximp -o $lib $output_objdir/$libname.def' |
| 15042 |
old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 15043 |
enable_shared_with_static_runtimes_CXX=yes |
| 15044 |
;; |
| 15045 |
|
| 15046 |
dgux*) |
| 15047 |
case $cc_basename in |
| 15048 |
ec++*) |
| 15049 |
# FIXME: insert proper C++ library support |
| 15050 |
ld_shlibs_CXX=no |
| 15051 |
;; |
| 15052 |
ghcx*) |
| 15053 |
# Green Hills C++ Compiler |
| 15054 |
# FIXME: insert proper C++ library support |
| 15055 |
ld_shlibs_CXX=no |
| 15056 |
;; |
| 15057 |
*) |
| 15058 |
# FIXME: insert proper C++ library support |
| 15059 |
ld_shlibs_CXX=no |
| 15060 |
;; |
| 15061 |
esac |
| 15062 |
;; |
| 15063 |
|
| 15064 |
freebsd2.*) |
| 15065 |
# C++ shared libraries reported to be fairly broken before |
| 15066 |
# switch to ELF |
| 15067 |
ld_shlibs_CXX=no |
| 15068 |
;; |
| 15069 |
|
| 15070 |
freebsd-elf*) |
| 15071 |
archive_cmds_need_lc_CXX=no |
| 15072 |
;; |
| 15073 |
|
| 15074 |
freebsd* | dragonfly*) |
| 15075 |
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 15076 |
# conventions |
| 15077 |
ld_shlibs_CXX=yes |
| 15078 |
;; |
| 15079 |
|
| 15080 |
haiku*) |
| 15081 |
archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15082 |
link_all_deplibs_CXX=yes |
| 15083 |
;; |
| 15084 |
|
| 15085 |
hpux9*) |
| 15086 |
hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' |
| 15087 |
hardcode_libdir_separator_CXX=: |
| 15088 |
export_dynamic_flag_spec_CXX='$wl-E' |
| 15089 |
hardcode_direct_CXX=yes |
| 15090 |
hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 15091 |
# but as the default |
| 15092 |
# location of the library. |
| 15093 |
|
| 15094 |
case $cc_basename in |
| 15095 |
CC*) |
| 15096 |
# FIXME: insert proper C++ library support |
| 15097 |
ld_shlibs_CXX=no |
| 15098 |
;; |
| 15099 |
aCC*) |
| 15100 |
archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
| 15101 |
# Commands to make compiler produce verbose output that lists |
| 15102 |
# what "hidden" libraries, object files and flags are used when |
| 15103 |
# linking a shared library. |
| 15104 |
# |
| 15105 |
# There doesn't appear to be a way to prevent this compiler from |
| 15106 |
# explicitly linking system object files so we need to strip them |
| 15107 |
# from the output so that they don't get included in the library |
| 15108 |
# dependencies. |
| 15109 |
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| 15110 |
;; |
| 15111 |
*) |
| 15112 |
if test yes = "$GXX"; then |
| 15113 |
archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
| 15114 |
else |
| 15115 |
# FIXME: insert proper C++ library support |
| 15116 |
ld_shlibs_CXX=no |
| 15117 |
fi |
| 15118 |
;; |
| 15119 |
esac |
| 15120 |
;; |
| 15121 |
|
| 15122 |
hpux10*|hpux11*) |
| 15123 |
if test no = "$with_gnu_ld"; then |
| 15124 |
hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' |
| 15125 |
hardcode_libdir_separator_CXX=: |
| 15126 |
|
| 15127 |
case $host_cpu in |
| 15128 |
hppa*64*|ia64*) |
| 15129 |
;; |
| 15130 |
*) |
| 15131 |
export_dynamic_flag_spec_CXX='$wl-E' |
| 15132 |
;; |
| 15133 |
esac |
| 15134 |
fi |
| 15135 |
case $host_cpu in |
| 15136 |
hppa*64*|ia64*) |
| 15137 |
hardcode_direct_CXX=no |
| 15138 |
hardcode_shlibpath_var_CXX=no |
| 15139 |
;; |
| 15140 |
*) |
| 15141 |
hardcode_direct_CXX=yes |
| 15142 |
hardcode_direct_absolute_CXX=yes |
| 15143 |
hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 15144 |
# but as the default |
| 15145 |
# location of the library. |
| 15146 |
;; |
| 15147 |
esac |
| 15148 |
|
| 15149 |
case $cc_basename in |
| 15150 |
CC*) |
| 15151 |
# FIXME: insert proper C++ library support |
| 15152 |
ld_shlibs_CXX=no |
| 15153 |
;; |
| 15154 |
aCC*) |
| 15155 |
case $host_cpu in |
| 15156 |
hppa*64*) |
| 15157 |
archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15158 |
;; |
| 15159 |
ia64*) |
| 15160 |
archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15161 |
;; |
| 15162 |
*) |
| 15163 |
archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15164 |
;; |
| 15165 |
esac |
| 15166 |
# Commands to make compiler produce verbose output that lists |
| 15167 |
# what "hidden" libraries, object files and flags are used when |
| 15168 |
# linking a shared library. |
| 15169 |
# |
| 15170 |
# There doesn't appear to be a way to prevent this compiler from |
| 15171 |
# explicitly linking system object files so we need to strip them |
| 15172 |
# from the output so that they don't get included in the library |
| 15173 |
# dependencies. |
| 15174 |
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| 15175 |
;; |
| 15176 |
*) |
| 15177 |
if test yes = "$GXX"; then |
| 15178 |
if test no = "$with_gnu_ld"; then |
| 15179 |
case $host_cpu in |
| 15180 |
hppa*64*) |
| 15181 |
archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15182 |
;; |
| 15183 |
ia64*) |
| 15184 |
archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15185 |
;; |
| 15186 |
*) |
| 15187 |
archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15188 |
;; |
| 15189 |
esac |
| 15190 |
fi |
| 15191 |
else |
| 15192 |
# FIXME: insert proper C++ library support |
| 15193 |
ld_shlibs_CXX=no |
| 15194 |
fi |
| 15195 |
;; |
| 15196 |
esac |
| 15197 |
;; |
| 15198 |
|
| 15199 |
interix[3-9]*) |
| 15200 |
hardcode_direct_CXX=no |
| 15201 |
hardcode_shlibpath_var_CXX=no |
| 15202 |
hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
| 15203 |
export_dynamic_flag_spec_CXX='$wl-E' |
| 15204 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 15205 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
| 15206 |
# default) and relocated if they conflict, which is a slow very memory |
| 15207 |
# consuming and fragmenting process. To avoid this, we pick a random, |
| 15208 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 15209 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 15210 |
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 15211 |
archive_expsym_cmds_CXX='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' |
| 15212 |
;; |
| 15213 |
irix5* | irix6*) |
| 15214 |
case $cc_basename in |
| 15215 |
CC*) |
| 15216 |
# SGI C++ |
| 15217 |
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
| 15218 |
|
| 15219 |
# Archives containing C++ object files must be created using |
| 15220 |
# "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 15221 |
# necessary to make sure instantiated templates are included |
| 15222 |
# in the archive. |
| 15223 |
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 15224 |
;; |
| 15225 |
*) |
| 15226 |
if test yes = "$GXX"; then |
| 15227 |
if test no = "$with_gnu_ld"; then |
| 15228 |
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' |
| 15229 |
else |
| 15230 |
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' |
| 15231 |
fi |
| 15232 |
fi |
| 15233 |
link_all_deplibs_CXX=yes |
| 15234 |
;; |
| 15235 |
esac |
| 15236 |
hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
| 15237 |
hardcode_libdir_separator_CXX=: |
| 15238 |
inherit_rpath_CXX=yes |
| 15239 |
;; |
| 15240 |
|
| 15241 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 15242 |
case $cc_basename in |
| 15243 |
KCC*) |
| 15244 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
| 15245 |
|
| 15246 |
# KCC will only create a shared library if the output file |
| 15247 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 15248 |
# to its proper name (with version) after linking. |
| 15249 |
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 15250 |
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' |
| 15251 |
# Commands to make compiler produce verbose output that lists |
| 15252 |
# what "hidden" libraries, object files and flags are used when |
| 15253 |
# linking a shared library. |
| 15254 |
# |
| 15255 |
# There doesn't appear to be a way to prevent this compiler from |
| 15256 |
# explicitly linking system object files so we need to strip them |
| 15257 |
# from the output so that they don't get included in the library |
| 15258 |
# dependencies. |
| 15259 |
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| 15260 |
|
| 15261 |
hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
| 15262 |
export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
| 15263 |
|
| 15264 |
# Archives containing C++ object files must be created using |
| 15265 |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 15266 |
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 15267 |
;; |
| 15268 |
icpc* | ecpc* ) |
| 15269 |
# Intel C++ |
| 15270 |
with_gnu_ld=yes |
| 15271 |
# version 8.0 and above of icpc choke on multiply defined symbols |
| 15272 |
# if we add $predep_objects and $postdep_objects, however 7.1 and |
| 15273 |
# earlier do not add the objects themselves. |
| 15274 |
case `$CC -V 2>&1` in |
| 15275 |
*"Version 7."*) |
| 15276 |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15277 |
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 15278 |
;; |
| 15279 |
*) # Version 8.0 or newer |
| 15280 |
tmp_idyn= |
| 15281 |
case $host_cpu in |
| 15282 |
ia64*) tmp_idyn=' -i_dynamic';; |
| 15283 |
esac |
| 15284 |
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15285 |
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 15286 |
;; |
| 15287 |
esac |
| 15288 |
archive_cmds_need_lc_CXX=no |
| 15289 |
hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
| 15290 |
export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
| 15291 |
whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' |
| 15292 |
;; |
| 15293 |
pgCC* | pgcpp*) |
| 15294 |
# Portland Group C++ compiler |
| 15295 |
case `$CC -V` in |
| 15296 |
*pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
| 15297 |
prelink_cmds_CXX='tpldir=Template.dir~ |
| 15298 |
rm -rf $tpldir~ |
| 15299 |
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| 15300 |
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
| 15301 |
old_archive_cmds_CXX='tpldir=Template.dir~ |
| 15302 |
rm -rf $tpldir~ |
| 15303 |
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| 15304 |
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
| 15305 |
$RANLIB $oldlib' |
| 15306 |
archive_cmds_CXX='tpldir=Template.dir~ |
| 15307 |
rm -rf $tpldir~ |
| 15308 |
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 15309 |
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15310 |
archive_expsym_cmds_CXX='tpldir=Template.dir~ |
| 15311 |
rm -rf $tpldir~ |
| 15312 |
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 15313 |
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 15314 |
;; |
| 15315 |
*) # Version 6 and above use weak symbols |
| 15316 |
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15317 |
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 15318 |
;; |
| 15319 |
esac |
| 15320 |
|
| 15321 |
hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' |
| 15322 |
export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
| 15323 |
whole_archive_flag_spec_CXX='$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' |
| 15324 |
;; |
| 15325 |
cxx*) |
| 15326 |
# Compaq C++ |
| 15327 |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15328 |
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' |
| 15329 |
|
| 15330 |
runpath_var=LD_RUN_PATH |
| 15331 |
hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 15332 |
hardcode_libdir_separator_CXX=: |
| 15333 |
|
| 15334 |
# Commands to make compiler produce verbose output that lists |
| 15335 |
# what "hidden" libraries, object files and flags are used when |
| 15336 |
# linking a shared library. |
| 15337 |
# |
| 15338 |
# There doesn't appear to be a way to prevent this compiler from |
| 15339 |
# explicitly linking system object files so we need to strip them |
| 15340 |
# from the output so that they don't get included in the library |
| 15341 |
# dependencies. |
| 15342 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' |
| 15343 |
;; |
| 15344 |
xl* | mpixl* | bgxl*) |
| 15345 |
# IBM XL 8.0 on PPC, with GNU ld |
| 15346 |
hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
| 15347 |
export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
| 15348 |
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15349 |
if test yes = "$supports_anon_versioning"; then |
| 15350 |
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
| 15351 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 15352 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 15353 |
$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
| 15354 |
fi |
| 15355 |
;; |
| 15356 |
*) |
| 15357 |
case `$CC -V 2>&1 | sed 5q` in |
| 15358 |
*Sun\ C*) |
| 15359 |
# Sun C++ 5.9 |
| 15360 |
no_undefined_flag_CXX=' -zdefs' |
| 15361 |
archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15362 |
archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' |
| 15363 |
hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 15364 |
whole_archive_flag_spec_CXX='$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' |
| 15365 |
compiler_needs_object_CXX=yes |
| 15366 |
|
| 15367 |
# Not sure whether something based on |
| 15368 |
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 15369 |
# would be better. |
| 15370 |
output_verbose_link_cmd='func_echo_all' |
| 15371 |
|
| 15372 |
# Archives containing C++ object files must be created using |
| 15373 |
# "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 15374 |
# necessary to make sure instantiated templates are included |
| 15375 |
# in the archive. |
| 15376 |
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 15377 |
;; |
| 15378 |
esac |
| 15379 |
;; |
| 15380 |
esac |
| 15381 |
;; |
| 15382 |
|
| 15383 |
lynxos*) |
| 15384 |
# FIXME: insert proper C++ library support |
| 15385 |
ld_shlibs_CXX=no |
| 15386 |
;; |
| 15387 |
|
| 15388 |
m88k*) |
| 15389 |
# FIXME: insert proper C++ library support |
| 15390 |
ld_shlibs_CXX=no |
| 15391 |
;; |
| 15392 |
|
| 15393 |
mvs*) |
| 15394 |
case $cc_basename in |
| 15395 |
cxx*) |
| 15396 |
# FIXME: insert proper C++ library support |
| 15397 |
ld_shlibs_CXX=no |
| 15398 |
;; |
| 15399 |
*) |
| 15400 |
# FIXME: insert proper C++ library support |
| 15401 |
ld_shlibs_CXX=no |
| 15402 |
;; |
| 15403 |
esac |
| 15404 |
;; |
| 15405 |
|
| 15406 |
netbsd*) |
| 15407 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 15408 |
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 15409 |
wlarc= |
| 15410 |
hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 15411 |
hardcode_direct_CXX=yes |
| 15412 |
hardcode_shlibpath_var_CXX=no |
| 15413 |
fi |
| 15414 |
# Workaround some broken pre-1.5 toolchains |
| 15415 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 15416 |
;; |
| 15417 |
|
| 15418 |
*nto* | *qnx*) |
| 15419 |
ld_shlibs_CXX=yes |
| 15420 |
;; |
| 15421 |
|
| 15422 |
openbsd* | bitrig*) |
| 15423 |
if test -f /usr/libexec/ld.so; then |
| 15424 |
hardcode_direct_CXX=yes |
| 15425 |
hardcode_shlibpath_var_CXX=no |
| 15426 |
hardcode_direct_absolute_CXX=yes |
| 15427 |
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 15428 |
hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
| 15429 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then |
| 15430 |
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' |
| 15431 |
export_dynamic_flag_spec_CXX='$wl-E' |
| 15432 |
whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
| 15433 |
fi |
| 15434 |
output_verbose_link_cmd=func_echo_all |
| 15435 |
else |
| 15436 |
ld_shlibs_CXX=no |
| 15437 |
fi |
| 15438 |
;; |
| 15439 |
|
| 15440 |
osf3* | osf4* | osf5*) |
| 15441 |
case $cc_basename in |
| 15442 |
KCC*) |
| 15443 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
| 15444 |
|
| 15445 |
# KCC will only create a shared library if the output file |
| 15446 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 15447 |
# to its proper name (with version) after linking. |
| 15448 |
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 15449 |
|
| 15450 |
hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
| 15451 |
hardcode_libdir_separator_CXX=: |
| 15452 |
|
| 15453 |
# Archives containing C++ object files must be created using |
| 15454 |
# the KAI C++ compiler. |
| 15455 |
case $host in |
| 15456 |
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 15457 |
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
| 15458 |
esac |
| 15459 |
;; |
| 15460 |
RCC*) |
| 15461 |
# Rational C++ 2.4.1 |
| 15462 |
# FIXME: insert proper C++ library support |
| 15463 |
ld_shlibs_CXX=no |
| 15464 |
;; |
| 15465 |
cxx*) |
| 15466 |
case $host in |
| 15467 |
osf3*) |
| 15468 |
allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' |
| 15469 |
archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
| 15470 |
hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
| 15471 |
;; |
| 15472 |
*) |
| 15473 |
allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 15474 |
archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
| 15475 |
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 15476 |
echo "-hidden">> $lib.exp~ |
| 15477 |
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ |
| 15478 |
$RM $lib.exp' |
| 15479 |
hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 15480 |
;; |
| 15481 |
esac |
| 15482 |
|
| 15483 |
hardcode_libdir_separator_CXX=: |
| 15484 |
|
| 15485 |
# Commands to make compiler produce verbose output that lists |
| 15486 |
# what "hidden" libraries, object files and flags are used when |
| 15487 |
# linking a shared library. |
| 15488 |
# |
| 15489 |
# There doesn't appear to be a way to prevent this compiler from |
| 15490 |
# explicitly linking system object files so we need to strip them |
| 15491 |
# from the output so that they don't get included in the library |
| 15492 |
# dependencies. |
| 15493 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| 15494 |
;; |
| 15495 |
*) |
| 15496 |
if test yes,no = "$GXX,$with_gnu_ld"; then |
| 15497 |
allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' |
| 15498 |
case $host in |
| 15499 |
osf3*) |
| 15500 |
archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' |
| 15501 |
;; |
| 15502 |
*) |
| 15503 |
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' |
| 15504 |
;; |
| 15505 |
esac |
| 15506 |
|
| 15507 |
hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
| 15508 |
hardcode_libdir_separator_CXX=: |
| 15509 |
|
| 15510 |
# Commands to make compiler produce verbose output that lists |
| 15511 |
# what "hidden" libraries, object files and flags are used when |
| 15512 |
# linking a shared library. |
| 15513 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' |
| 15514 |
|
| 15515 |
else |
| 15516 |
# FIXME: insert proper C++ library support |
| 15517 |
ld_shlibs_CXX=no |
| 15518 |
fi |
| 15519 |
;; |
| 15520 |
esac |
| 15521 |
;; |
| 15522 |
|
| 15523 |
psos*) |
| 15524 |
# FIXME: insert proper C++ library support |
| 15525 |
ld_shlibs_CXX=no |
| 15526 |
;; |
| 15527 |
|
| 15528 |
sunos4*) |
| 15529 |
case $cc_basename in |
| 15530 |
CC*) |
| 15531 |
# Sun C++ 4.x |
| 15532 |
# FIXME: insert proper C++ library support |
| 15533 |
ld_shlibs_CXX=no |
| 15534 |
;; |
| 15535 |
lcc*) |
| 15536 |
# Lucid |
| 15537 |
# FIXME: insert proper C++ library support |
| 15538 |
ld_shlibs_CXX=no |
| 15539 |
;; |
| 15540 |
*) |
| 15541 |
# FIXME: insert proper C++ library support |
| 15542 |
ld_shlibs_CXX=no |
| 15543 |
;; |
| 15544 |
esac |
| 15545 |
;; |
| 15546 |
|
| 15547 |
solaris*) |
| 15548 |
case $cc_basename in |
| 15549 |
CC* | sunCC*) |
| 15550 |
# Sun C++ 4.2, 5.x and Centerline C++ |
| 15551 |
archive_cmds_need_lc_CXX=yes |
| 15552 |
no_undefined_flag_CXX=' -zdefs' |
| 15553 |
archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15554 |
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 15555 |
$CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 15556 |
|
| 15557 |
hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 15558 |
hardcode_shlibpath_var_CXX=no |
| 15559 |
case $host_os in |
| 15560 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 15561 |
*) |
| 15562 |
# The compiler driver will combine and reorder linker options, |
| 15563 |
# but understands '-z linker_flag'. |
| 15564 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15565 |
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
| 15566 |
;; |
| 15567 |
esac |
| 15568 |
link_all_deplibs_CXX=yes |
| 15569 |
|
| 15570 |
output_verbose_link_cmd='func_echo_all' |
| 15571 |
|
| 15572 |
# Archives containing C++ object files must be created using |
| 15573 |
# "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 15574 |
# necessary to make sure instantiated templates are included |
| 15575 |
# in the archive. |
| 15576 |
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 15577 |
;; |
| 15578 |
gcx*) |
| 15579 |
# Green Hills C++ Compiler |
| 15580 |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
| 15581 |
|
| 15582 |
# The C++ compiler must be used to create the archive. |
| 15583 |
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 15584 |
;; |
| 15585 |
*) |
| 15586 |
# GNU C++ compiler with Solaris linker |
| 15587 |
if test yes,no = "$GXX,$with_gnu_ld"; then |
| 15588 |
no_undefined_flag_CXX=' $wl-z ${wl}defs' |
| 15589 |
if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 15590 |
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
| 15591 |
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 15592 |
$CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 15593 |
|
| 15594 |
# Commands to make compiler produce verbose output that lists |
| 15595 |
# what "hidden" libraries, object files and flags are used when |
| 15596 |
# linking a shared library. |
| 15597 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' |
| 15598 |
else |
| 15599 |
# g++ 2.7 appears to require '-G' NOT '-shared' on this |
| 15600 |
# platform. |
| 15601 |
archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
| 15602 |
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 15603 |
$CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 15604 |
|
| 15605 |
# Commands to make compiler produce verbose output that lists |
| 15606 |
# what "hidden" libraries, object files and flags are used when |
| 15607 |
# linking a shared library. |
| 15608 |
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' |
| 15609 |
fi |
| 15610 |
|
| 15611 |
hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' |
| 15612 |
case $host_os in |
| 15613 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 15614 |
*) |
| 15615 |
whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
| 15616 |
;; |
| 15617 |
esac |
| 15618 |
fi |
| 15619 |
;; |
| 15620 |
esac |
| 15621 |
;; |
| 15622 |
|
| 15623 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 15624 |
no_undefined_flag_CXX='$wl-z,text' |
| 15625 |
archive_cmds_need_lc_CXX=no |
| 15626 |
hardcode_shlibpath_var_CXX=no |
| 15627 |
runpath_var='LD_RUN_PATH' |
| 15628 |
|
| 15629 |
case $cc_basename in |
| 15630 |
CC*) |
| 15631 |
archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15632 |
archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15633 |
;; |
| 15634 |
*) |
| 15635 |
archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15636 |
archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15637 |
;; |
| 15638 |
esac |
| 15639 |
;; |
| 15640 |
|
| 15641 |
sysv5* | sco3.2v5* | sco5v6*) |
| 15642 |
# Note: We CANNOT use -z defs as we might desire, because we do not |
| 15643 |
# link with -lc, and that would cause any symbols used from libc to |
| 15644 |
# always be unresolved, which means just about no library would |
| 15645 |
# ever link correctly. If we're not using GNU ld we use -z text |
| 15646 |
# though, which does catch some bad symbols but isn't as heavy-handed |
| 15647 |
# as -z defs. |
| 15648 |
no_undefined_flag_CXX='$wl-z,text' |
| 15649 |
allow_undefined_flag_CXX='$wl-z,nodefs' |
| 15650 |
archive_cmds_need_lc_CXX=no |
| 15651 |
hardcode_shlibpath_var_CXX=no |
| 15652 |
hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' |
| 15653 |
hardcode_libdir_separator_CXX=':' |
| 15654 |
link_all_deplibs_CXX=yes |
| 15655 |
export_dynamic_flag_spec_CXX='$wl-Bexport' |
| 15656 |
runpath_var='LD_RUN_PATH' |
| 15657 |
|
| 15658 |
case $cc_basename in |
| 15659 |
CC*) |
| 15660 |
archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15661 |
archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15662 |
old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
| 15663 |
'"$old_archive_cmds_CXX" |
| 15664 |
reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ |
| 15665 |
'"$reload_cmds_CXX" |
| 15666 |
;; |
| 15667 |
*) |
| 15668 |
archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15669 |
archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15670 |
;; |
| 15671 |
esac |
| 15672 |
;; |
| 15673 |
|
| 15674 |
tandem*) |
| 15675 |
case $cc_basename in |
| 15676 |
NCC*) |
| 15677 |
# NonStop-UX NCC 3.20 |
| 15678 |
# FIXME: insert proper C++ library support |
| 15679 |
ld_shlibs_CXX=no |
| 15680 |
;; |
| 15681 |
*) |
| 15682 |
# FIXME: insert proper C++ library support |
| 15683 |
ld_shlibs_CXX=no |
| 15684 |
;; |
| 15685 |
esac |
| 15686 |
;; |
| 15687 |
|
| 15688 |
vxworks*) |
| 15689 |
# FIXME: insert proper C++ library support |
| 15690 |
ld_shlibs_CXX=no |
| 15691 |
;; |
| 15692 |
|
| 15693 |
*) |
| 15694 |
# FIXME: insert proper C++ library support |
| 15695 |
ld_shlibs_CXX=no |
| 15696 |
;; |
| 15697 |
esac |
| 15698 |
|
| 15699 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 15700 |
$as_echo "$ld_shlibs_CXX" >&6; } |
| 15701 |
test no = "$ld_shlibs_CXX" && can_build_shared=no |
| 15702 |
|
| 15703 |
GCC_CXX=$GXX |
| 15704 |
LD_CXX=$LD |
| 15705 |
|
| 15706 |
## CAVEAT EMPTOR: |
| 15707 |
## There is no encapsulation within the following macros, do not change |
| 15708 |
## the running order or otherwise move them around unless you know exactly |
| 15709 |
## what you are doing... |
| 15710 |
# Dependencies to place before and after the object being linked: |
| 15711 |
predep_objects_CXX= |
| 15712 |
postdep_objects_CXX= |
| 15713 |
predeps_CXX= |
| 15714 |
postdeps_CXX= |
| 15715 |
compiler_lib_search_path_CXX= |
| 15716 |
|
| 15717 |
cat > conftest.$ac_ext <<_LT_EOF |
| 15718 |
class Foo |
| 15719 |
{ |
| 15720 |
public: |
| 15721 |
Foo (void) { a = 0; } |
| 15722 |
private: |
| 15723 |
int a; |
| 15724 |
}; |
| 15725 |
_LT_EOF |
| 15726 |
|
| 15727 |
|
| 15728 |
_lt_libdeps_save_CFLAGS=$CFLAGS |
| 15729 |
case "$CC $CFLAGS " in #( |
| 15730 |
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
| 15731 |
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
| 15732 |
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
| 15733 |
esac |
| 15734 |
|
| 15735 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 15736 |
(eval $ac_compile) 2>&5 |
| 15737 |
ac_status=$? |
| 15738 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15739 |
test $ac_status = 0; }; then |
| 15740 |
# Parse the compiler output and extract the necessary |
| 15741 |
# objects, libraries and library flags. |
| 15742 |
|
| 15743 |
# Sentinel used to keep track of whether or not we are before |
| 15744 |
# the conftest object file. |
| 15745 |
pre_test_object_deps_done=no |
| 15746 |
|
| 15747 |
for p in `eval "$output_verbose_link_cmd"`; do |
| 15748 |
case $prev$p in |
| 15749 |
|
| 15750 |
-L* | -R* | -l*) |
| 15751 |
# Some compilers place space between "-{L,R}" and the path. |
| 15752 |
# Remove the space. |
| 15753 |
if test x-L = "$p" || |
| 15754 |
test x-R = "$p"; then |
| 15755 |
prev=$p |
| 15756 |
continue |
| 15757 |
fi |
| 15758 |
|
| 15759 |
# Expand the sysroot to ease extracting the directories later. |
| 15760 |
if test -z "$prev"; then |
| 15761 |
case $p in |
| 15762 |
-L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; |
| 15763 |
-R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; |
| 15764 |
-l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; |
| 15765 |
esac |
| 15766 |
fi |
| 15767 |
case $p in |
| 15768 |
=*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; |
| 15769 |
esac |
| 15770 |
if test no = "$pre_test_object_deps_done"; then |
| 15771 |
case $prev in |
| 15772 |
-L | -R) |
| 15773 |
# Internal compiler library paths should come after those |
| 15774 |
# provided the user. The postdeps already come after the |
| 15775 |
# user supplied libs so there is no need to process them. |
| 15776 |
if test -z "$compiler_lib_search_path_CXX"; then |
| 15777 |
compiler_lib_search_path_CXX=$prev$p |
| 15778 |
else |
| 15779 |
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" |
| 15780 |
fi |
| 15781 |
;; |
| 15782 |
# The "-l" case would never come before the object being |
| 15783 |
# linked, so don't bother handling this case. |
| 15784 |
esac |
| 15785 |
else |
| 15786 |
if test -z "$postdeps_CXX"; then |
| 15787 |
postdeps_CXX=$prev$p |
| 15788 |
else |
| 15789 |
postdeps_CXX="${postdeps_CXX} $prev$p" |
| 15790 |
fi |
| 15791 |
fi |
| 15792 |
prev= |
| 15793 |
;; |
| 15794 |
|
| 15795 |
*.lto.$objext) ;; # Ignore GCC LTO objects |
| 15796 |
*.$objext) |
| 15797 |
# This assumes that the test object file only shows up |
| 15798 |
# once in the compiler output. |
| 15799 |
if test "$p" = "conftest.$objext"; then |
| 15800 |
pre_test_object_deps_done=yes |
| 15801 |
continue |
| 15802 |
fi |
| 15803 |
|
| 15804 |
if test no = "$pre_test_object_deps_done"; then |
| 15805 |
if test -z "$predep_objects_CXX"; then |
| 15806 |
predep_objects_CXX=$p |
| 15807 |
else |
| 15808 |
predep_objects_CXX="$predep_objects_CXX $p" |
| 15809 |
fi |
| 15810 |
else |
| 15811 |
if test -z "$postdep_objects_CXX"; then |
| 15812 |
postdep_objects_CXX=$p |
| 15813 |
else |
| 15814 |
postdep_objects_CXX="$postdep_objects_CXX $p" |
| 15815 |
fi |
| 15816 |
fi |
| 15817 |
;; |
| 15818 |
|
| 15819 |
*) ;; # Ignore the rest. |
| 15820 |
|
| 15821 |
esac |
| 15822 |
done |
| 15823 |
|
| 15824 |
# Clean up. |
| 15825 |
rm -f a.out a.exe |
| 15826 |
else |
| 15827 |
echo "libtool.m4: error: problem compiling CXX test program" |
| 15828 |
fi |
| 15829 |
|
| 15830 |
$RM -f confest.$objext |
| 15831 |
CFLAGS=$_lt_libdeps_save_CFLAGS |
| 15832 |
|
| 15833 |
# PORTME: override above test on systems where it is broken |
| 15834 |
case $host_os in |
| 15835 |
interix[3-9]*) |
| 15836 |
# Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 15837 |
# hack all around it, let's just trust "g++" to DTRT. |
| 15838 |
predep_objects_CXX= |
| 15839 |
postdep_objects_CXX= |
| 15840 |
postdeps_CXX= |
| 15841 |
;; |
| 15842 |
esac |
| 15843 |
|
| 15844 |
|
| 15845 |
case " $postdeps_CXX " in |
| 15846 |
*" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 15847 |
esac |
| 15848 |
compiler_lib_search_dirs_CXX= |
| 15849 |
if test -n "${compiler_lib_search_path_CXX}"; then |
| 15850 |
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` |
| 15851 |
fi |
| 15852 |
|
| 15853 |
|
| 15854 |
|
| 15855 |
|
| 15856 |
|
| 15857 |
|
| 15858 |
|
| 15859 |
|
| 15860 |
|
| 15861 |
|
| 15862 |
|
| 15863 |
|
| 15864 |
|
| 15865 |
|
| 15866 |
|
| 15867 |
|
| 15868 |
|
| 15869 |
|
| 15870 |
|
| 15871 |
|
| 15872 |
|
| 15873 |
|
| 15874 |
|
| 15875 |
|
| 15876 |
|
| 15877 |
|
| 15878 |
|
| 15879 |
|
| 15880 |
|
| 15881 |
|
| 15882 |
|
| 15883 |
lt_prog_compiler_wl_CXX= |
| 15884 |
lt_prog_compiler_pic_CXX= |
| 15885 |
lt_prog_compiler_static_CXX= |
| 15886 |
|
| 15887 |
|
| 15888 |
# C++ specific cases for pic, static, wl, etc. |
| 15889 |
if test yes = "$GXX"; then |
| 15890 |
lt_prog_compiler_wl_CXX='-Wl,' |
| 15891 |
lt_prog_compiler_static_CXX='-static' |
| 15892 |
|
| 15893 |
case $host_os in |
| 15894 |
aix*) |
| 15895 |
# All AIX code is PIC. |
| 15896 |
if test ia64 = "$host_cpu"; then |
| 15897 |
# AIX 5 now supports IA64 processor |
| 15898 |
lt_prog_compiler_static_CXX='-Bstatic' |
| 15899 |
fi |
| 15900 |
lt_prog_compiler_pic_CXX='-fPIC' |
| 15901 |
;; |
| 15902 |
|
| 15903 |
amigaos*) |
| 15904 |
case $host_cpu in |
| 15905 |
powerpc) |
| 15906 |
# see comment about AmigaOS4 .so support |
| 15907 |
lt_prog_compiler_pic_CXX='-fPIC' |
| 15908 |
;; |
| 15909 |
m68k) |
| 15910 |
# FIXME: we need at least 68020 code to build shared libraries, but |
| 15911 |
# adding the '-m68020' flag to GCC prevents building anything better, |
| 15912 |
# like '-m68040'. |
| 15913 |
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 15914 |
;; |
| 15915 |
esac |
| 15916 |
;; |
| 15917 |
|
| 15918 |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 15919 |
# PIC is the default for these OSes. |
| 15920 |
;; |
| 15921 |
mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 15922 |
# This hack is so that the source file can tell whether it is being |
| 15923 |
# built for inclusion in a dll (and should export symbols for example). |
| 15924 |
# Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 15925 |
# (--disable-auto-import) libraries |
| 15926 |
lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 15927 |
case $host_os in |
| 15928 |
os2*) |
| 15929 |
lt_prog_compiler_static_CXX='$wl-static' |
| 15930 |
;; |
| 15931 |
esac |
| 15932 |
;; |
| 15933 |
darwin* | rhapsody*) |
| 15934 |
# PIC is the default on this platform |
| 15935 |
# Common symbols not allowed in MH_DYLIB files |
| 15936 |
lt_prog_compiler_pic_CXX='-fno-common' |
| 15937 |
;; |
| 15938 |
*djgpp*) |
| 15939 |
# DJGPP does not support shared libraries at all |
| 15940 |
lt_prog_compiler_pic_CXX= |
| 15941 |
;; |
| 15942 |
haiku*) |
| 15943 |
# PIC is the default for Haiku. |
| 15944 |
# The "-static" flag exists, but is broken. |
| 15945 |
lt_prog_compiler_static_CXX= |
| 15946 |
;; |
| 15947 |
interix[3-9]*) |
| 15948 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 15949 |
# Instead, we relocate shared libraries at runtime. |
| 15950 |
;; |
| 15951 |
sysv4*MP*) |
| 15952 |
if test -d /usr/nec; then |
| 15953 |
lt_prog_compiler_pic_CXX=-Kconform_pic |
| 15954 |
fi |
| 15955 |
;; |
| 15956 |
hpux*) |
| 15957 |
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 15958 |
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 15959 |
# sets the default TLS model and affects inlining. |
| 15960 |
case $host_cpu in |
| 15961 |
hppa*64*) |
| 15962 |
;; |
| 15963 |
*) |
| 15964 |
lt_prog_compiler_pic_CXX='-fPIC' |
| 15965 |
;; |
| 15966 |
esac |
| 15967 |
;; |
| 15968 |
*qnx* | *nto*) |
| 15969 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
| 15970 |
# it will coredump. |
| 15971 |
lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 15972 |
;; |
| 15973 |
*) |
| 15974 |
lt_prog_compiler_pic_CXX='-fPIC' |
| 15975 |
;; |
| 15976 |
esac |
| 15977 |
else |
| 15978 |
case $host_os in |
| 15979 |
aix[4-9]*) |
| 15980 |
# All AIX code is PIC. |
| 15981 |
if test ia64 = "$host_cpu"; then |
| 15982 |
# AIX 5 now supports IA64 processor |
| 15983 |
lt_prog_compiler_static_CXX='-Bstatic' |
| 15984 |
else |
| 15985 |
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 15986 |
fi |
| 15987 |
;; |
| 15988 |
chorus*) |
| 15989 |
case $cc_basename in |
| 15990 |
cxch68*) |
| 15991 |
# Green Hills C++ Compiler |
| 15992 |
# _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
| 15993 |
;; |
| 15994 |
esac |
| 15995 |
;; |
| 15996 |
mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 15997 |
# This hack is so that the source file can tell whether it is being |
| 15998 |
# built for inclusion in a dll (and should export symbols for example). |
| 15999 |
lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 16000 |
;; |
| 16001 |
dgux*) |
| 16002 |
case $cc_basename in |
| 16003 |
ec++*) |
| 16004 |
lt_prog_compiler_pic_CXX='-KPIC' |
| 16005 |
;; |
| 16006 |
ghcx*) |
| 16007 |
# Green Hills C++ Compiler |
| 16008 |
lt_prog_compiler_pic_CXX='-pic' |
| 16009 |
;; |
| 16010 |
*) |
| 16011 |
;; |
| 16012 |
esac |
| 16013 |
;; |
| 16014 |
freebsd* | dragonfly*) |
| 16015 |
# FreeBSD uses GNU C++ |
| 16016 |
;; |
| 16017 |
hpux9* | hpux10* | hpux11*) |
| 16018 |
case $cc_basename in |
| 16019 |
CC*) |
| 16020 |
lt_prog_compiler_wl_CXX='-Wl,' |
| 16021 |
lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
| 16022 |
if test ia64 != "$host_cpu"; then |
| 16023 |
lt_prog_compiler_pic_CXX='+Z' |
| 16024 |
fi |
| 16025 |
;; |
| 16026 |
aCC*) |
| 16027 |
lt_prog_compiler_wl_CXX='-Wl,' |
| 16028 |
lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
| 16029 |
case $host_cpu in |
| 16030 |
hppa*64*|ia64*) |
| 16031 |
# +Z the default |
| 16032 |
;; |
| 16033 |
*) |
| 16034 |
lt_prog_compiler_pic_CXX='+Z' |
| 16035 |
;; |
| 16036 |
esac |
| 16037 |
;; |
| 16038 |
*) |
| 16039 |
;; |
| 16040 |
esac |
| 16041 |
;; |
| 16042 |
interix*) |
| 16043 |
# This is c89, which is MS Visual C++ (no shared libs) |
| 16044 |
# Anyone wants to do a port? |
| 16045 |
;; |
| 16046 |
irix5* | irix6* | nonstopux*) |
| 16047 |
case $cc_basename in |
| 16048 |
CC*) |
| 16049 |
lt_prog_compiler_wl_CXX='-Wl,' |
| 16050 |
lt_prog_compiler_static_CXX='-non_shared' |
| 16051 |
# CC pic flag -KPIC is the default. |
| 16052 |
;; |
| 16053 |
*) |
| 16054 |
;; |
| 16055 |
esac |
| 16056 |
;; |
| 16057 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 16058 |
case $cc_basename in |
| 16059 |
KCC*) |
| 16060 |
# KAI C++ Compiler |
| 16061 |
lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 16062 |
lt_prog_compiler_pic_CXX='-fPIC' |
| 16063 |
;; |
| 16064 |
ecpc* ) |
| 16065 |
# old Intel C++ for x86_64, which still supported -KPIC. |
| 16066 |
lt_prog_compiler_wl_CXX='-Wl,' |
| 16067 |
lt_prog_compiler_pic_CXX='-KPIC' |
| 16068 |
lt_prog_compiler_static_CXX='-static' |
| 16069 |
;; |
| 16070 |
icpc* ) |
| 16071 |
# Intel C++, used to be incompatible with GCC. |
| 16072 |
# ICC 10 doesn't accept -KPIC any more. |
| 16073 |
lt_prog_compiler_wl_CXX='-Wl,' |
| 16074 |
lt_prog_compiler_pic_CXX='-fPIC' |
| 16075 |
lt_prog_compiler_static_CXX='-static' |
| 16076 |
;; |
| 16077 |
pgCC* | pgcpp*) |
| 16078 |
# Portland Group C++ compiler |
| 16079 |
lt_prog_compiler_wl_CXX='-Wl,' |
| 16080 |
lt_prog_compiler_pic_CXX='-fpic' |
| 16081 |
lt_prog_compiler_static_CXX='-Bstatic' |
| 16082 |
;; |
| 16083 |
cxx*) |
| 16084 |
# Compaq C++ |
| 16085 |
# Make sure the PIC flag is empty. It appears that all Alpha |
| 16086 |
# Linux and Compaq Tru64 Unix objects are PIC. |
| 16087 |
lt_prog_compiler_pic_CXX= |
| 16088 |
lt_prog_compiler_static_CXX='-non_shared' |
| 16089 |
;; |
| 16090 |
xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
| 16091 |
# IBM XL 8.0, 9.0 on PPC and BlueGene |
| 16092 |
lt_prog_compiler_wl_CXX='-Wl,' |
| 16093 |
lt_prog_compiler_pic_CXX='-qpic' |
| 16094 |
lt_prog_compiler_static_CXX='-qstaticlink' |
| 16095 |
;; |
| 16096 |
*) |
| 16097 |
case `$CC -V 2>&1 | sed 5q` in |
| 16098 |
*Sun\ C*) |
| 16099 |
# Sun C++ 5.9 |
| 16100 |
lt_prog_compiler_pic_CXX='-KPIC' |
| 16101 |
lt_prog_compiler_static_CXX='-Bstatic' |
| 16102 |
lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 16103 |
;; |
| 16104 |
esac |
| 16105 |
;; |
| 16106 |
esac |
| 16107 |
;; |
| 16108 |
lynxos*) |
| 16109 |
;; |
| 16110 |
m88k*) |
| 16111 |
;; |
| 16112 |
mvs*) |
| 16113 |
case $cc_basename in |
| 16114 |
cxx*) |
| 16115 |
lt_prog_compiler_pic_CXX='-W c,exportall' |
| 16116 |
;; |
| 16117 |
*) |
| 16118 |
;; |
| 16119 |
esac |
| 16120 |
;; |
| 16121 |
netbsd* | netbsdelf*-gnu) |
| 16122 |
;; |
| 16123 |
*qnx* | *nto*) |
| 16124 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
| 16125 |
# it will coredump. |
| 16126 |
lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 16127 |
;; |
| 16128 |
osf3* | osf4* | osf5*) |
| 16129 |
case $cc_basename in |
| 16130 |
KCC*) |
| 16131 |
lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 16132 |
;; |
| 16133 |
RCC*) |
| 16134 |
# Rational C++ 2.4.1 |
| 16135 |
lt_prog_compiler_pic_CXX='-pic' |
| 16136 |
;; |
| 16137 |
cxx*) |
| 16138 |
# Digital/Compaq C++ |
| 16139 |
lt_prog_compiler_wl_CXX='-Wl,' |
| 16140 |
# Make sure the PIC flag is empty. It appears that all Alpha |
| 16141 |
# Linux and Compaq Tru64 Unix objects are PIC. |
| 16142 |
lt_prog_compiler_pic_CXX= |
| 16143 |
lt_prog_compiler_static_CXX='-non_shared' |
| 16144 |
;; |
| 16145 |
*) |
| 16146 |
;; |
| 16147 |
esac |
| 16148 |
;; |
| 16149 |
psos*) |
| 16150 |
;; |
| 16151 |
solaris*) |
| 16152 |
case $cc_basename in |
| 16153 |
CC* | sunCC*) |
| 16154 |
# Sun C++ 4.2, 5.x and Centerline C++ |
| 16155 |
lt_prog_compiler_pic_CXX='-KPIC' |
| 16156 |
lt_prog_compiler_static_CXX='-Bstatic' |
| 16157 |
lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 16158 |
;; |
| 16159 |
gcx*) |
| 16160 |
# Green Hills C++ Compiler |
| 16161 |
lt_prog_compiler_pic_CXX='-PIC' |
| 16162 |
;; |
| 16163 |
*) |
| 16164 |
;; |
| 16165 |
esac |
| 16166 |
;; |
| 16167 |
sunos4*) |
| 16168 |
case $cc_basename in |
| 16169 |
CC*) |
| 16170 |
# Sun C++ 4.x |
| 16171 |
lt_prog_compiler_pic_CXX='-pic' |
| 16172 |
lt_prog_compiler_static_CXX='-Bstatic' |
| 16173 |
;; |
| 16174 |
lcc*) |
| 16175 |
# Lucid |
| 16176 |
lt_prog_compiler_pic_CXX='-pic' |
| 16177 |
;; |
| 16178 |
*) |
| 16179 |
;; |
| 16180 |
esac |
| 16181 |
;; |
| 16182 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 16183 |
case $cc_basename in |
| 16184 |
CC*) |
| 16185 |
lt_prog_compiler_wl_CXX='-Wl,' |
| 16186 |
lt_prog_compiler_pic_CXX='-KPIC' |
| 16187 |
lt_prog_compiler_static_CXX='-Bstatic' |
| 16188 |
;; |
| 16189 |
esac |
| 16190 |
;; |
| 16191 |
tandem*) |
| 16192 |
case $cc_basename in |
| 16193 |
NCC*) |
| 16194 |
# NonStop-UX NCC 3.20 |
| 16195 |
lt_prog_compiler_pic_CXX='-KPIC' |
| 16196 |
;; |
| 16197 |
*) |
| 16198 |
;; |
| 16199 |
esac |
| 16200 |
;; |
| 16201 |
vxworks*) |
| 16202 |
;; |
| 16203 |
*) |
| 16204 |
lt_prog_compiler_can_build_shared_CXX=no |
| 16205 |
;; |
| 16206 |
esac |
| 16207 |
fi |
| 16208 |
|
| 16209 |
case $host_os in |
| 16210 |
# For platforms that do not support PIC, -DPIC is meaningless: |
| 16211 |
*djgpp*) |
| 16212 |
lt_prog_compiler_pic_CXX= |
| 16213 |
;; |
| 16214 |
*) |
| 16215 |
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 16216 |
;; |
| 16217 |
esac |
| 16218 |
|
| 16219 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 16220 |
$as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 16221 |
if ${lt_cv_prog_compiler_pic_CXX+:} false; then : |
| 16222 |
$as_echo_n "(cached) " >&6 |
| 16223 |
else |
| 16224 |
lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX |
| 16225 |
fi |
| 16226 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 |
| 16227 |
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } |
| 16228 |
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX |
| 16229 |
|
| 16230 |
# |
| 16231 |
# Check to make sure the PIC flag actually works. |
| 16232 |
# |
| 16233 |
if test -n "$lt_prog_compiler_pic_CXX"; then |
| 16234 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 16235 |
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
| 16236 |
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
| 16237 |
$as_echo_n "(cached) " >&6 |
| 16238 |
else |
| 16239 |
lt_cv_prog_compiler_pic_works_CXX=no |
| 16240 |
ac_outfile=conftest.$ac_objext |
| 16241 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16242 |
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment |
| 16243 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 16244 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 16245 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 16246 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16247 |
# The option is referenced via a variable to avoid confusing sed. |
| 16248 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 16249 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 16250 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16251 |
-e 's:$: $lt_compiler_flag:'` |
| 16252 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 16253 |
(eval "$lt_compile" 2>conftest.err) |
| 16254 |
ac_status=$? |
| 16255 |
cat conftest.err >&5 |
| 16256 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16257 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 16258 |
# The compiler can only warn and ignore the option if not recognized |
| 16259 |
# So say no if there are warnings other than the usual output. |
| 16260 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 16261 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16262 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 16263 |
lt_cv_prog_compiler_pic_works_CXX=yes |
| 16264 |
fi |
| 16265 |
fi |
| 16266 |
$RM conftest* |
| 16267 |
|
| 16268 |
fi |
| 16269 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
| 16270 |
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
| 16271 |
|
| 16272 |
if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then |
| 16273 |
case $lt_prog_compiler_pic_CXX in |
| 16274 |
"" | " "*) ;; |
| 16275 |
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 16276 |
esac |
| 16277 |
else |
| 16278 |
lt_prog_compiler_pic_CXX= |
| 16279 |
lt_prog_compiler_can_build_shared_CXX=no |
| 16280 |
fi |
| 16281 |
|
| 16282 |
fi |
| 16283 |
|
| 16284 |
|
| 16285 |
|
| 16286 |
|
| 16287 |
|
| 16288 |
# |
| 16289 |
# Check to make sure the static flag actually works. |
| 16290 |
# |
| 16291 |
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 16292 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 16293 |
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 16294 |
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
| 16295 |
$as_echo_n "(cached) " >&6 |
| 16296 |
else |
| 16297 |
lt_cv_prog_compiler_static_works_CXX=no |
| 16298 |
save_LDFLAGS=$LDFLAGS |
| 16299 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 16300 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 16301 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 16302 |
# The linker can only warn and ignore the option if not recognized |
| 16303 |
# So say no if there are warnings |
| 16304 |
if test -s conftest.err; then |
| 16305 |
# Append any errors to the config.log. |
| 16306 |
cat conftest.err 1>&5 |
| 16307 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 16308 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16309 |
if diff conftest.exp conftest.er2 >/dev/null; then |
| 16310 |
lt_cv_prog_compiler_static_works_CXX=yes |
| 16311 |
fi |
| 16312 |
else |
| 16313 |
lt_cv_prog_compiler_static_works_CXX=yes |
| 16314 |
fi |
| 16315 |
fi |
| 16316 |
$RM -r conftest* |
| 16317 |
LDFLAGS=$save_LDFLAGS |
| 16318 |
|
| 16319 |
fi |
| 16320 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
| 16321 |
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
| 16322 |
|
| 16323 |
if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then |
| 16324 |
: |
| 16325 |
else |
| 16326 |
lt_prog_compiler_static_CXX= |
| 16327 |
fi |
| 16328 |
|
| 16329 |
|
| 16330 |
|
| 16331 |
|
| 16332 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 16333 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 16334 |
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
| 16335 |
$as_echo_n "(cached) " >&6 |
| 16336 |
else |
| 16337 |
lt_cv_prog_compiler_c_o_CXX=no |
| 16338 |
$RM -r conftest 2>/dev/null |
| 16339 |
mkdir conftest |
| 16340 |
cd conftest |
| 16341 |
mkdir out |
| 16342 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16343 |
|
| 16344 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 16345 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 16346 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 16347 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 16348 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16349 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 16350 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 16351 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16352 |
-e 's:$: $lt_compiler_flag:'` |
| 16353 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 16354 |
(eval "$lt_compile" 2>out/conftest.err) |
| 16355 |
ac_status=$? |
| 16356 |
cat out/conftest.err >&5 |
| 16357 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16358 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 16359 |
then |
| 16360 |
# The compiler can only warn and ignore the option if not recognized |
| 16361 |
# So say no if there are warnings |
| 16362 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 16363 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 16364 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 16365 |
lt_cv_prog_compiler_c_o_CXX=yes |
| 16366 |
fi |
| 16367 |
fi |
| 16368 |
chmod u+w . 2>&5 |
| 16369 |
$RM conftest* |
| 16370 |
# SGI C++ compiler will create directory out/ii_files/ for |
| 16371 |
# template instantiation |
| 16372 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 16373 |
$RM out/* && rmdir out |
| 16374 |
cd .. |
| 16375 |
$RM -r conftest |
| 16376 |
$RM conftest* |
| 16377 |
|
| 16378 |
fi |
| 16379 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 16380 |
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 16381 |
|
| 16382 |
|
| 16383 |
|
| 16384 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 16385 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 16386 |
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
| 16387 |
$as_echo_n "(cached) " >&6 |
| 16388 |
else |
| 16389 |
lt_cv_prog_compiler_c_o_CXX=no |
| 16390 |
$RM -r conftest 2>/dev/null |
| 16391 |
mkdir conftest |
| 16392 |
cd conftest |
| 16393 |
mkdir out |
| 16394 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16395 |
|
| 16396 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 16397 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 16398 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 16399 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 16400 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16401 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 16402 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 16403 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16404 |
-e 's:$: $lt_compiler_flag:'` |
| 16405 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 16406 |
(eval "$lt_compile" 2>out/conftest.err) |
| 16407 |
ac_status=$? |
| 16408 |
cat out/conftest.err >&5 |
| 16409 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16410 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 16411 |
then |
| 16412 |
# The compiler can only warn and ignore the option if not recognized |
| 16413 |
# So say no if there are warnings |
| 16414 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 16415 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 16416 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 16417 |
lt_cv_prog_compiler_c_o_CXX=yes |
| 16418 |
fi |
| 16419 |
fi |
| 16420 |
chmod u+w . 2>&5 |
| 16421 |
$RM conftest* |
| 16422 |
# SGI C++ compiler will create directory out/ii_files/ for |
| 16423 |
# template instantiation |
| 16424 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 16425 |
$RM out/* && rmdir out |
| 16426 |
cd .. |
| 16427 |
$RM -r conftest |
| 16428 |
$RM conftest* |
| 16429 |
|
| 16430 |
fi |
| 16431 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 16432 |
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 16433 |
|
| 16434 |
|
| 16435 |
|
| 16436 |
|
| 16437 |
hard_links=nottested |
| 16438 |
if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then |
| 16439 |
# do not overwrite the value of need_locks provided by the user |
| 16440 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 16441 |
$as_echo_n "checking if we can lock with hard links... " >&6; } |
| 16442 |
hard_links=yes |
| 16443 |
$RM conftest* |
| 16444 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 16445 |
touch conftest.a |
| 16446 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
| 16447 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 16448 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 16449 |
$as_echo "$hard_links" >&6; } |
| 16450 |
if test no = "$hard_links"; then |
| 16451 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
| 16452 |
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
| 16453 |
need_locks=warn |
| 16454 |
fi |
| 16455 |
else |
| 16456 |
need_locks=no |
| 16457 |
fi |
| 16458 |
|
| 16459 |
|
| 16460 |
|
| 16461 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 16462 |
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 16463 |
|
| 16464 |
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 16465 |
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 16466 |
case $host_os in |
| 16467 |
aix[4-9]*) |
| 16468 |
# If we're using GNU nm, then we don't want the "-C" option. |
| 16469 |
# -C means demangle to GNU nm, but means don't demangle to AIX nm. |
| 16470 |
# Without the "-l" option, or with the "-B" option, AIX nm treats |
| 16471 |
# weak defined symbols like other global defined symbols, whereas |
| 16472 |
# GNU nm marks them as "W". |
| 16473 |
# While the 'weak' keyword is ignored in the Export File, we need |
| 16474 |
# it in the Import File for the 'aix-soname' feature, so we have |
| 16475 |
# to replace the "-B" option with "-P" for AIX nm. |
| 16476 |
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 16477 |
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
| 16478 |
else |
| 16479 |
export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
| 16480 |
fi |
| 16481 |
;; |
| 16482 |
pw32*) |
| 16483 |
export_symbols_cmds_CXX=$ltdll_cmds |
| 16484 |
;; |
| 16485 |
cygwin* | mingw* | cegcc*) |
| 16486 |
case $cc_basename in |
| 16487 |
cl*) |
| 16488 |
exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 16489 |
;; |
| 16490 |
*) |
| 16491 |
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
| 16492 |
exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 16493 |
;; |
| 16494 |
esac |
| 16495 |
;; |
| 16496 |
linux* | k*bsd*-gnu | gnu*) |
| 16497 |
link_all_deplibs_CXX=no |
| 16498 |
;; |
| 16499 |
*) |
| 16500 |
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 16501 |
;; |
| 16502 |
esac |
| 16503 |
|
| 16504 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 16505 |
$as_echo "$ld_shlibs_CXX" >&6; } |
| 16506 |
test no = "$ld_shlibs_CXX" && can_build_shared=no |
| 16507 |
|
| 16508 |
with_gnu_ld_CXX=$with_gnu_ld |
| 16509 |
|
| 16510 |
|
| 16511 |
|
| 16512 |
|
| 16513 |
|
| 16514 |
|
| 16515 |
# |
| 16516 |
# Do we need to explicitly link libc? |
| 16517 |
# |
| 16518 |
case "x$archive_cmds_need_lc_CXX" in |
| 16519 |
x|xyes) |
| 16520 |
# Assume -lc should be added |
| 16521 |
archive_cmds_need_lc_CXX=yes |
| 16522 |
|
| 16523 |
if test yes,yes = "$GCC,$enable_shared"; then |
| 16524 |
case $archive_cmds_CXX in |
| 16525 |
*'~'*) |
| 16526 |
# FIXME: we may have to deal with multi-command sequences. |
| 16527 |
;; |
| 16528 |
'$CC '*) |
| 16529 |
# Test whether the compiler implicitly links with -lc since on some |
| 16530 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 16531 |
# to ld, don't add -lc before -lgcc. |
| 16532 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 16533 |
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 16534 |
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
| 16535 |
$as_echo_n "(cached) " >&6 |
| 16536 |
else |
| 16537 |
$RM conftest* |
| 16538 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16539 |
|
| 16540 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 16541 |
(eval $ac_compile) 2>&5 |
| 16542 |
ac_status=$? |
| 16543 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16544 |
test $ac_status = 0; } 2>conftest.err; then |
| 16545 |
soname=conftest |
| 16546 |
lib=conftest |
| 16547 |
libobjs=conftest.$ac_objext |
| 16548 |
deplibs= |
| 16549 |
wl=$lt_prog_compiler_wl_CXX |
| 16550 |
pic_flag=$lt_prog_compiler_pic_CXX |
| 16551 |
compiler_flags=-v |
| 16552 |
linker_flags=-v |
| 16553 |
verstring= |
| 16554 |
output_objdir=. |
| 16555 |
libname=conftest |
| 16556 |
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 16557 |
allow_undefined_flag_CXX= |
| 16558 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 16559 |
(eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 16560 |
ac_status=$? |
| 16561 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16562 |
test $ac_status = 0; } |
| 16563 |
then |
| 16564 |
lt_cv_archive_cmds_need_lc_CXX=no |
| 16565 |
else |
| 16566 |
lt_cv_archive_cmds_need_lc_CXX=yes |
| 16567 |
fi |
| 16568 |
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 16569 |
else |
| 16570 |
cat conftest.err 1>&5 |
| 16571 |
fi |
| 16572 |
$RM conftest* |
| 16573 |
|
| 16574 |
fi |
| 16575 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 |
| 16576 |
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } |
| 16577 |
archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX |
| 16578 |
;; |
| 16579 |
esac |
| 16580 |
fi |
| 16581 |
;; |
| 16582 |
esac |
| 16583 |
|
| 16584 |
|
| 16585 |
|
| 16586 |
|
| 16587 |
|
| 16588 |
|
| 16589 |
|
| 16590 |
|
| 16591 |
|
| 16592 |
|
| 16593 |
|
| 16594 |
|
| 16595 |
|
| 16596 |
|
| 16597 |
|
| 16598 |
|
| 16599 |
|
| 16600 |
|
| 16601 |
|
| 16602 |
|
| 16603 |
|
| 16604 |
|
| 16605 |
|
| 16606 |
|
| 16607 |
|
| 16608 |
|
| 16609 |
|
| 16610 |
|
| 16611 |
|
| 16612 |
|
| 16613 |
|
| 16614 |
|
| 16615 |
|
| 16616 |
|
| 16617 |
|
| 16618 |
|
| 16619 |
|
| 16620 |
|
| 16621 |
|
| 16622 |
|
| 16623 |
|
| 16624 |
|
| 16625 |
|
| 16626 |
|
| 16627 |
|
| 16628 |
|
| 16629 |
|
| 16630 |
|
| 16631 |
|
| 16632 |
|
| 16633 |
|
| 16634 |
|
| 16635 |
|
| 16636 |
|
| 16637 |
|
| 16638 |
|
| 16639 |
|
| 16640 |
|
| 16641 |
|
| 16642 |
|
| 16643 |
|
| 16644 |
|
| 16645 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 16646 |
$as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 16647 |
|
| 16648 |
library_names_spec= |
| 16649 |
libname_spec='lib$name' |
| 16650 |
soname_spec= |
| 16651 |
shrext_cmds=.so |
| 16652 |
postinstall_cmds= |
| 16653 |
postuninstall_cmds= |
| 16654 |
finish_cmds= |
| 16655 |
finish_eval= |
| 16656 |
shlibpath_var= |
| 16657 |
shlibpath_overrides_runpath=unknown |
| 16658 |
version_type=none |
| 16659 |
dynamic_linker="$host_os ld.so" |
| 16660 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 16661 |
need_lib_prefix=unknown |
| 16662 |
hardcode_into_libs=no |
| 16663 |
|
| 16664 |
# when you set need_version to no, make sure it does not cause -set_version |
| 16665 |
# flags to be left without arguments |
| 16666 |
need_version=unknown |
| 16667 |
|
| 16668 |
|
| 16669 |
|
| 16670 |
case $host_os in |
| 16671 |
aix3*) |
| 16672 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 16673 |
library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
| 16674 |
shlibpath_var=LIBPATH |
| 16675 |
|
| 16676 |
# AIX 3 has no versioning support, so we append a major version to the name. |
| 16677 |
soname_spec='$libname$release$shared_ext$major' |
| 16678 |
;; |
| 16679 |
|
| 16680 |
aix[4-9]*) |
| 16681 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 16682 |
need_lib_prefix=no |
| 16683 |
need_version=no |
| 16684 |
hardcode_into_libs=yes |
| 16685 |
if test ia64 = "$host_cpu"; then |
| 16686 |
# AIX 5 supports IA64 |
| 16687 |
library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
| 16688 |
shlibpath_var=LD_LIBRARY_PATH |
| 16689 |
else |
| 16690 |
# With GCC up to 2.95.x, collect2 would create an import file |
| 16691 |
# for dependence libraries. The import file would start with |
| 16692 |
# the line '#! .'. This would cause the generated library to |
| 16693 |
# depend on '.', always an invalid library. This was fixed in |
| 16694 |
# development snapshots of GCC prior to 3.0. |
| 16695 |
case $host_os in |
| 16696 |
aix4 | aix4.[01] | aix4.[01].*) |
| 16697 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16698 |
echo ' yes ' |
| 16699 |
echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
| 16700 |
: |
| 16701 |
else |
| 16702 |
can_build_shared=no |
| 16703 |
fi |
| 16704 |
;; |
| 16705 |
esac |
| 16706 |
# Using Import Files as archive members, it is possible to support |
| 16707 |
# filename-based versioning of shared library archives on AIX. While |
| 16708 |
# this would work for both with and without runtime linking, it will |
| 16709 |
# prevent static linking of such archives. So we do filename-based |
| 16710 |
# shared library versioning with .so extension only, which is used |
| 16711 |
# when both runtime linking and shared linking is enabled. |
| 16712 |
# Unfortunately, runtime linking may impact performance, so we do |
| 16713 |
# not want this to be the default eventually. Also, we use the |
| 16714 |
# versioned .so libs for executables only if there is the -brtl |
| 16715 |
# linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. |
| 16716 |
# To allow for filename-based versioning support, we need to create |
| 16717 |
# libNAME.so.V as an archive file, containing: |
| 16718 |
# *) an Import File, referring to the versioned filename of the |
| 16719 |
# archive as well as the shared archive member, telling the |
| 16720 |
# bitwidth (32 or 64) of that shared object, and providing the |
| 16721 |
# list of exported symbols of that shared object, eventually |
| 16722 |
# decorated with the 'weak' keyword |
| 16723 |
# *) the shared object with the F_LOADONLY flag set, to really avoid |
| 16724 |
# it being seen by the linker. |
| 16725 |
# At run time we better use the real file rather than another symlink, |
| 16726 |
# but for link time we create the symlink libNAME.so -> libNAME.so.V |
| 16727 |
|
| 16728 |
case $with_aix_soname,$aix_use_runtimelinking in |
| 16729 |
# AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
| 16730 |
# soname into executable. Probably we can add versioning support to |
| 16731 |
# collect2, so additional links can be useful in future. |
| 16732 |
aix,yes) # traditional libtool |
| 16733 |
dynamic_linker='AIX unversionable lib.so' |
| 16734 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16735 |
# instead of lib<name>.a to let people know that these are not |
| 16736 |
# typical AIX shared libraries. |
| 16737 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 16738 |
;; |
| 16739 |
aix,no) # traditional AIX only |
| 16740 |
dynamic_linker='AIX lib.a(lib.so.V)' |
| 16741 |
# We preserve .a as extension for shared libraries through AIX4.2 |
| 16742 |
# and later when we are not doing run time linking. |
| 16743 |
library_names_spec='$libname$release.a $libname.a' |
| 16744 |
soname_spec='$libname$release$shared_ext$major' |
| 16745 |
;; |
| 16746 |
svr4,*) # full svr4 only |
| 16747 |
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
| 16748 |
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 16749 |
# We do not specify a path in Import Files, so LIBPATH fires. |
| 16750 |
shlibpath_overrides_runpath=yes |
| 16751 |
;; |
| 16752 |
*,yes) # both, prefer svr4 |
| 16753 |
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
| 16754 |
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 16755 |
# unpreferred sharedlib libNAME.a needs extra handling |
| 16756 |
postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' |
| 16757 |
postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' |
| 16758 |
# We do not specify a path in Import Files, so LIBPATH fires. |
| 16759 |
shlibpath_overrides_runpath=yes |
| 16760 |
;; |
| 16761 |
*,no) # both, prefer aix |
| 16762 |
dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
| 16763 |
library_names_spec='$libname$release.a $libname.a' |
| 16764 |
soname_spec='$libname$release$shared_ext$major' |
| 16765 |
# unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
| 16766 |
postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' |
| 16767 |
postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' |
| 16768 |
;; |
| 16769 |
esac |
| 16770 |
shlibpath_var=LIBPATH |
| 16771 |
fi |
| 16772 |
;; |
| 16773 |
|
| 16774 |
amigaos*) |
| 16775 |
case $host_cpu in |
| 16776 |
powerpc) |
| 16777 |
# Since July 2007 AmigaOS4 officially supports .so libraries. |
| 16778 |
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 16779 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 16780 |
;; |
| 16781 |
m68k) |
| 16782 |
library_names_spec='$libname.ixlibrary $libname.a' |
| 16783 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 16784 |
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 16785 |
;; |
| 16786 |
esac |
| 16787 |
;; |
| 16788 |
|
| 16789 |
beos*) |
| 16790 |
library_names_spec='$libname$shared_ext' |
| 16791 |
dynamic_linker="$host_os ld.so" |
| 16792 |
shlibpath_var=LIBRARY_PATH |
| 16793 |
;; |
| 16794 |
|
| 16795 |
bsdi[45]*) |
| 16796 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 16797 |
need_version=no |
| 16798 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 16799 |
soname_spec='$libname$release$shared_ext$major' |
| 16800 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16801 |
shlibpath_var=LD_LIBRARY_PATH |
| 16802 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16803 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 16804 |
# the default ld.so.conf also contains /usr/contrib/lib and |
| 16805 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16806 |
# libtool to hard-code these into programs |
| 16807 |
;; |
| 16808 |
|
| 16809 |
cygwin* | mingw* | pw32* | cegcc*) |
| 16810 |
version_type=windows |
| 16811 |
shrext_cmds=.dll |
| 16812 |
need_version=no |
| 16813 |
need_lib_prefix=no |
| 16814 |
|
| 16815 |
case $GCC,$cc_basename in |
| 16816 |
yes,*) |
| 16817 |
# gcc |
| 16818 |
library_names_spec='$libname.dll.a' |
| 16819 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 16820 |
postinstall_cmds='base_file=`basename \$file`~ |
| 16821 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 16822 |
dldir=$destdir/`dirname \$dlpath`~ |
| 16823 |
test -d \$dldir || mkdir -p \$dldir~ |
| 16824 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
| 16825 |
chmod a+x \$dldir/$dlname~ |
| 16826 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 16827 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 16828 |
fi' |
| 16829 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16830 |
dlpath=$dir/\$dldll~ |
| 16831 |
$RM \$dlpath' |
| 16832 |
shlibpath_overrides_runpath=yes |
| 16833 |
|
| 16834 |
case $host_os in |
| 16835 |
cygwin*) |
| 16836 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16837 |
soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 16838 |
|
| 16839 |
;; |
| 16840 |
mingw* | cegcc*) |
| 16841 |
# MinGW DLLs use traditional 'lib' prefix |
| 16842 |
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 16843 |
;; |
| 16844 |
pw32*) |
| 16845 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
| 16846 |
library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 16847 |
;; |
| 16848 |
esac |
| 16849 |
dynamic_linker='Win32 ld.exe' |
| 16850 |
;; |
| 16851 |
|
| 16852 |
*,cl*) |
| 16853 |
# Native MSVC |
| 16854 |
libname_spec='$name' |
| 16855 |
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 16856 |
library_names_spec='$libname.dll.lib' |
| 16857 |
|
| 16858 |
case $build_os in |
| 16859 |
mingw*) |
| 16860 |
sys_lib_search_path_spec= |
| 16861 |
lt_save_ifs=$IFS |
| 16862 |
IFS=';' |
| 16863 |
for lt_path in $LIB |
| 16864 |
do |
| 16865 |
IFS=$lt_save_ifs |
| 16866 |
# Let DOS variable expansion print the short 8.3 style file name. |
| 16867 |
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 16868 |
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 16869 |
done |
| 16870 |
IFS=$lt_save_ifs |
| 16871 |
# Convert to MSYS style. |
| 16872 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 16873 |
;; |
| 16874 |
cygwin*) |
| 16875 |
# Convert to unix form, then to dos form, then back to unix form |
| 16876 |
# but this time dos style (no spaces!) so that the unix form looks |
| 16877 |
# like /cygdrive/c/PROGRA~1:/cygdr... |
| 16878 |
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 16879 |
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 16880 |
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16881 |
;; |
| 16882 |
*) |
| 16883 |
sys_lib_search_path_spec=$LIB |
| 16884 |
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 16885 |
# It is most probably a Windows format PATH. |
| 16886 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16887 |
else |
| 16888 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16889 |
fi |
| 16890 |
# FIXME: find the short name or the path components, as spaces are |
| 16891 |
# common. (e.g. "Program Files" -> "PROGRA~1") |
| 16892 |
;; |
| 16893 |
esac |
| 16894 |
|
| 16895 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 16896 |
postinstall_cmds='base_file=`basename \$file`~ |
| 16897 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 16898 |
dldir=$destdir/`dirname \$dlpath`~ |
| 16899 |
test -d \$dldir || mkdir -p \$dldir~ |
| 16900 |
$install_prog $dir/$dlname \$dldir/$dlname' |
| 16901 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16902 |
dlpath=$dir/\$dldll~ |
| 16903 |
$RM \$dlpath' |
| 16904 |
shlibpath_overrides_runpath=yes |
| 16905 |
dynamic_linker='Win32 link.exe' |
| 16906 |
;; |
| 16907 |
|
| 16908 |
*) |
| 16909 |
# Assume MSVC wrapper |
| 16910 |
library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
| 16911 |
dynamic_linker='Win32 ld.exe' |
| 16912 |
;; |
| 16913 |
esac |
| 16914 |
# FIXME: first we should search . and the directory the executable is in |
| 16915 |
shlibpath_var=PATH |
| 16916 |
;; |
| 16917 |
|
| 16918 |
darwin* | rhapsody*) |
| 16919 |
dynamic_linker="$host_os dyld" |
| 16920 |
version_type=darwin |
| 16921 |
need_lib_prefix=no |
| 16922 |
need_version=no |
| 16923 |
library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
| 16924 |
soname_spec='$libname$release$major$shared_ext' |
| 16925 |
shlibpath_overrides_runpath=yes |
| 16926 |
shlibpath_var=DYLD_LIBRARY_PATH |
| 16927 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 16928 |
|
| 16929 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16930 |
;; |
| 16931 |
|
| 16932 |
dgux*) |
| 16933 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 16934 |
need_lib_prefix=no |
| 16935 |
need_version=no |
| 16936 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 16937 |
soname_spec='$libname$release$shared_ext$major' |
| 16938 |
shlibpath_var=LD_LIBRARY_PATH |
| 16939 |
;; |
| 16940 |
|
| 16941 |
freebsd* | dragonfly*) |
| 16942 |
# DragonFly does not have aout. When/if they implement a new |
| 16943 |
# versioning mechanism, adjust this. |
| 16944 |
if test -x /usr/bin/objformat; then |
| 16945 |
objformat=`/usr/bin/objformat` |
| 16946 |
else |
| 16947 |
case $host_os in |
| 16948 |
freebsd[23].*) objformat=aout ;; |
| 16949 |
*) objformat=elf ;; |
| 16950 |
esac |
| 16951 |
fi |
| 16952 |
version_type=freebsd-$objformat |
| 16953 |
case $version_type in |
| 16954 |
freebsd-elf*) |
| 16955 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 16956 |
soname_spec='$libname$release$shared_ext$major' |
| 16957 |
need_version=no |
| 16958 |
need_lib_prefix=no |
| 16959 |
;; |
| 16960 |
freebsd-*) |
| 16961 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 16962 |
need_version=yes |
| 16963 |
;; |
| 16964 |
esac |
| 16965 |
shlibpath_var=LD_LIBRARY_PATH |
| 16966 |
case $host_os in |
| 16967 |
freebsd2.*) |
| 16968 |
shlibpath_overrides_runpath=yes |
| 16969 |
;; |
| 16970 |
freebsd3.[01]* | freebsdelf3.[01]*) |
| 16971 |
shlibpath_overrides_runpath=yes |
| 16972 |
hardcode_into_libs=yes |
| 16973 |
;; |
| 16974 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 16975 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 16976 |
shlibpath_overrides_runpath=no |
| 16977 |
hardcode_into_libs=yes |
| 16978 |
;; |
| 16979 |
*) # from 4.6 on, and DragonFly |
| 16980 |
shlibpath_overrides_runpath=yes |
| 16981 |
hardcode_into_libs=yes |
| 16982 |
;; |
| 16983 |
esac |
| 16984 |
;; |
| 16985 |
|
| 16986 |
haiku*) |
| 16987 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 16988 |
need_lib_prefix=no |
| 16989 |
need_version=no |
| 16990 |
dynamic_linker="$host_os runtime_loader" |
| 16991 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 16992 |
soname_spec='$libname$release$shared_ext$major' |
| 16993 |
shlibpath_var=LIBRARY_PATH |
| 16994 |
shlibpath_overrides_runpath=no |
| 16995 |
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 16996 |
hardcode_into_libs=yes |
| 16997 |
;; |
| 16998 |
|
| 16999 |
hpux9* | hpux10* | hpux11*) |
| 17000 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
| 17001 |
# link against other versions. |
| 17002 |
version_type=sunos |
| 17003 |
need_lib_prefix=no |
| 17004 |
need_version=no |
| 17005 |
case $host_cpu in |
| 17006 |
ia64*) |
| 17007 |
shrext_cmds='.so' |
| 17008 |
hardcode_into_libs=yes |
| 17009 |
dynamic_linker="$host_os dld.so" |
| 17010 |
shlibpath_var=LD_LIBRARY_PATH |
| 17011 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17012 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17013 |
soname_spec='$libname$release$shared_ext$major' |
| 17014 |
if test 32 = "$HPUX_IA64_MODE"; then |
| 17015 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 17016 |
sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
| 17017 |
else |
| 17018 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 17019 |
sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
| 17020 |
fi |
| 17021 |
;; |
| 17022 |
hppa*64*) |
| 17023 |
shrext_cmds='.sl' |
| 17024 |
hardcode_into_libs=yes |
| 17025 |
dynamic_linker="$host_os dld.sl" |
| 17026 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 17027 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17028 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17029 |
soname_spec='$libname$release$shared_ext$major' |
| 17030 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 17031 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17032 |
;; |
| 17033 |
*) |
| 17034 |
shrext_cmds='.sl' |
| 17035 |
dynamic_linker="$host_os dld.sl" |
| 17036 |
shlibpath_var=SHLIB_PATH |
| 17037 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 17038 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17039 |
soname_spec='$libname$release$shared_ext$major' |
| 17040 |
;; |
| 17041 |
esac |
| 17042 |
# HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 17043 |
postinstall_cmds='chmod 555 $lib' |
| 17044 |
# or fails outright, so override atomically: |
| 17045 |
install_override_mode=555 |
| 17046 |
;; |
| 17047 |
|
| 17048 |
interix[3-9]*) |
| 17049 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 17050 |
need_lib_prefix=no |
| 17051 |
need_version=no |
| 17052 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17053 |
soname_spec='$libname$release$shared_ext$major' |
| 17054 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 17055 |
shlibpath_var=LD_LIBRARY_PATH |
| 17056 |
shlibpath_overrides_runpath=no |
| 17057 |
hardcode_into_libs=yes |
| 17058 |
;; |
| 17059 |
|
| 17060 |
irix5* | irix6* | nonstopux*) |
| 17061 |
case $host_os in |
| 17062 |
nonstopux*) version_type=nonstopux ;; |
| 17063 |
*) |
| 17064 |
if test yes = "$lt_cv_prog_gnu_ld"; then |
| 17065 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 17066 |
else |
| 17067 |
version_type=irix |
| 17068 |
fi ;; |
| 17069 |
esac |
| 17070 |
need_lib_prefix=no |
| 17071 |
need_version=no |
| 17072 |
soname_spec='$libname$release$shared_ext$major' |
| 17073 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
| 17074 |
case $host_os in |
| 17075 |
irix5* | nonstopux*) |
| 17076 |
libsuff= shlibsuff= |
| 17077 |
;; |
| 17078 |
*) |
| 17079 |
case $LD in # libtool.m4 will add one of these switches to LD |
| 17080 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 17081 |
libsuff= shlibsuff= libmagic=32-bit;; |
| 17082 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 17083 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 17084 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 17085 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 17086 |
*) libsuff= shlibsuff= libmagic=never-match;; |
| 17087 |
esac |
| 17088 |
;; |
| 17089 |
esac |
| 17090 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 17091 |
shlibpath_overrides_runpath=no |
| 17092 |
sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
| 17093 |
sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
| 17094 |
hardcode_into_libs=yes |
| 17095 |
;; |
| 17096 |
|
| 17097 |
# No shared lib support for Linux oldld, aout, or coff. |
| 17098 |
linux*oldld* | linux*aout* | linux*coff*) |
| 17099 |
dynamic_linker=no |
| 17100 |
;; |
| 17101 |
|
| 17102 |
linux*android*) |
| 17103 |
version_type=none # Android doesn't support versioned libraries. |
| 17104 |
need_lib_prefix=no |
| 17105 |
need_version=no |
| 17106 |
library_names_spec='$libname$release$shared_ext' |
| 17107 |
soname_spec='$libname$release$shared_ext' |
| 17108 |
finish_cmds= |
| 17109 |
shlibpath_var=LD_LIBRARY_PATH |
| 17110 |
shlibpath_overrides_runpath=yes |
| 17111 |
|
| 17112 |
# This implies no fast_install, which is unacceptable. |
| 17113 |
# Some rework will be needed to allow for fast_install |
| 17114 |
# before this can be enabled. |
| 17115 |
hardcode_into_libs=yes |
| 17116 |
|
| 17117 |
dynamic_linker='Android linker' |
| 17118 |
# Don't embed -rpath directories since the linker doesn't support them. |
| 17119 |
hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 17120 |
;; |
| 17121 |
|
| 17122 |
# This must be glibc/ELF. |
| 17123 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 17124 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 17125 |
need_lib_prefix=no |
| 17126 |
need_version=no |
| 17127 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17128 |
soname_spec='$libname$release$shared_ext$major' |
| 17129 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 17130 |
shlibpath_var=LD_LIBRARY_PATH |
| 17131 |
shlibpath_overrides_runpath=no |
| 17132 |
|
| 17133 |
# Some binutils ld are patched to set DT_RUNPATH |
| 17134 |
if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| 17135 |
$as_echo_n "(cached) " >&6 |
| 17136 |
else |
| 17137 |
lt_cv_shlibpath_overrides_runpath=no |
| 17138 |
save_LDFLAGS=$LDFLAGS |
| 17139 |
save_libdir=$libdir |
| 17140 |
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
| 17141 |
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
| 17142 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17143 |
/* end confdefs.h. */ |
| 17144 |
|
| 17145 |
int |
| 17146 |
main () |
| 17147 |
{ |
| 17148 |
|
| 17149 |
; |
| 17150 |
return 0; |
| 17151 |
} |
| 17152 |
_ACEOF |
| 17153 |
if ac_fn_cxx_try_link "$LINENO"; then : |
| 17154 |
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 17155 |
lt_cv_shlibpath_overrides_runpath=yes |
| 17156 |
fi |
| 17157 |
fi |
| 17158 |
rm -f core conftest.err conftest.$ac_objext \ |
| 17159 |
conftest$ac_exeext conftest.$ac_ext |
| 17160 |
LDFLAGS=$save_LDFLAGS |
| 17161 |
libdir=$save_libdir |
| 17162 |
|
| 17163 |
fi |
| 17164 |
|
| 17165 |
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 17166 |
|
| 17167 |
# This implies no fast_install, which is unacceptable. |
| 17168 |
# Some rework will be needed to allow for fast_install |
| 17169 |
# before this can be enabled. |
| 17170 |
hardcode_into_libs=yes |
| 17171 |
|
| 17172 |
# Ideally, we could use ldconfig to report *all* directores which are |
| 17173 |
# searched for libraries, however this is still not possible. Aside from not |
| 17174 |
# being certain /sbin/ldconfig is available, command |
| 17175 |
# 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, |
| 17176 |
# even though it is searched at run-time. Try to do the best guess by |
| 17177 |
# appending ld.so.conf contents (and includes) to the search path. |
| 17178 |
if test -f /etc/ld.so.conf; then |
| 17179 |
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' ' '` |
| 17180 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 17181 |
fi |
| 17182 |
|
| 17183 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
| 17184 |
# powerpc, because MkLinux only supported shared libraries with the |
| 17185 |
# GNU dynamic linker. Since this was broken with cross compilers, |
| 17186 |
# most powerpc-linux boxes support dynamic linking these days and |
| 17187 |
# people can always --disable-shared, the test was removed, and we |
| 17188 |
# assume the GNU/Linux dynamic linker is in use. |
| 17189 |
dynamic_linker='GNU/Linux ld.so' |
| 17190 |
;; |
| 17191 |
|
| 17192 |
netbsdelf*-gnu) |
| 17193 |
version_type=linux |
| 17194 |
need_lib_prefix=no |
| 17195 |
need_version=no |
| 17196 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17197 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 17198 |
shlibpath_var=LD_LIBRARY_PATH |
| 17199 |
shlibpath_overrides_runpath=no |
| 17200 |
hardcode_into_libs=yes |
| 17201 |
dynamic_linker='NetBSD ld.elf_so' |
| 17202 |
;; |
| 17203 |
|
| 17204 |
netbsd*) |
| 17205 |
version_type=sunos |
| 17206 |
need_lib_prefix=no |
| 17207 |
need_version=no |
| 17208 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 17209 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 17210 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17211 |
dynamic_linker='NetBSD (a.out) ld.so' |
| 17212 |
else |
| 17213 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17214 |
soname_spec='$libname$release$shared_ext$major' |
| 17215 |
dynamic_linker='NetBSD ld.elf_so' |
| 17216 |
fi |
| 17217 |
shlibpath_var=LD_LIBRARY_PATH |
| 17218 |
shlibpath_overrides_runpath=yes |
| 17219 |
hardcode_into_libs=yes |
| 17220 |
;; |
| 17221 |
|
| 17222 |
newsos6) |
| 17223 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 17224 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17225 |
shlibpath_var=LD_LIBRARY_PATH |
| 17226 |
shlibpath_overrides_runpath=yes |
| 17227 |
;; |
| 17228 |
|
| 17229 |
*nto* | *qnx*) |
| 17230 |
version_type=qnx |
| 17231 |
need_lib_prefix=no |
| 17232 |
need_version=no |
| 17233 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17234 |
soname_spec='$libname$release$shared_ext$major' |
| 17235 |
shlibpath_var=LD_LIBRARY_PATH |
| 17236 |
shlibpath_overrides_runpath=no |
| 17237 |
hardcode_into_libs=yes |
| 17238 |
dynamic_linker='ldqnx.so' |
| 17239 |
;; |
| 17240 |
|
| 17241 |
openbsd* | bitrig*) |
| 17242 |
version_type=sunos |
| 17243 |
sys_lib_dlsearch_path_spec=/usr/lib |
| 17244 |
need_lib_prefix=no |
| 17245 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 17246 |
need_version=no |
| 17247 |
else |
| 17248 |
need_version=yes |
| 17249 |
fi |
| 17250 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 17251 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17252 |
shlibpath_var=LD_LIBRARY_PATH |
| 17253 |
shlibpath_overrides_runpath=yes |
| 17254 |
;; |
| 17255 |
|
| 17256 |
os2*) |
| 17257 |
libname_spec='$name' |
| 17258 |
version_type=windows |
| 17259 |
shrext_cmds=.dll |
| 17260 |
need_version=no |
| 17261 |
need_lib_prefix=no |
| 17262 |
# OS/2 can only load a DLL with a base name of 8 characters or less. |
| 17263 |
soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
| 17264 |
v=$($ECHO $release$versuffix | tr -d .-); |
| 17265 |
n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
| 17266 |
$ECHO $n$v`$shared_ext' |
| 17267 |
library_names_spec='${libname}_dll.$libext' |
| 17268 |
dynamic_linker='OS/2 ld.exe' |
| 17269 |
shlibpath_var=BEGINLIBPATH |
| 17270 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 17271 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17272 |
postinstall_cmds='base_file=`basename \$file`~ |
| 17273 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
| 17274 |
dldir=$destdir/`dirname \$dlpath`~ |
| 17275 |
test -d \$dldir || mkdir -p \$dldir~ |
| 17276 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
| 17277 |
chmod a+x \$dldir/$dlname~ |
| 17278 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 17279 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 17280 |
fi' |
| 17281 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
| 17282 |
dlpath=$dir/\$dldll~ |
| 17283 |
$RM \$dlpath' |
| 17284 |
;; |
| 17285 |
|
| 17286 |
osf3* | osf4* | osf5*) |
| 17287 |
version_type=osf |
| 17288 |
need_lib_prefix=no |
| 17289 |
need_version=no |
| 17290 |
soname_spec='$libname$release$shared_ext$major' |
| 17291 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17292 |
shlibpath_var=LD_LIBRARY_PATH |
| 17293 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 17294 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17295 |
;; |
| 17296 |
|
| 17297 |
rdos*) |
| 17298 |
dynamic_linker=no |
| 17299 |
;; |
| 17300 |
|
| 17301 |
solaris*) |
| 17302 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 17303 |
need_lib_prefix=no |
| 17304 |
need_version=no |
| 17305 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17306 |
soname_spec='$libname$release$shared_ext$major' |
| 17307 |
shlibpath_var=LD_LIBRARY_PATH |
| 17308 |
shlibpath_overrides_runpath=yes |
| 17309 |
hardcode_into_libs=yes |
| 17310 |
# ldd complains unless libraries are executable |
| 17311 |
postinstall_cmds='chmod +x $lib' |
| 17312 |
;; |
| 17313 |
|
| 17314 |
sunos4*) |
| 17315 |
version_type=sunos |
| 17316 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 17317 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 17318 |
shlibpath_var=LD_LIBRARY_PATH |
| 17319 |
shlibpath_overrides_runpath=yes |
| 17320 |
if test yes = "$with_gnu_ld"; then |
| 17321 |
need_lib_prefix=no |
| 17322 |
fi |
| 17323 |
need_version=yes |
| 17324 |
;; |
| 17325 |
|
| 17326 |
sysv4 | sysv4.3*) |
| 17327 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 17328 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17329 |
soname_spec='$libname$release$shared_ext$major' |
| 17330 |
shlibpath_var=LD_LIBRARY_PATH |
| 17331 |
case $host_vendor in |
| 17332 |
sni) |
| 17333 |
shlibpath_overrides_runpath=no |
| 17334 |
need_lib_prefix=no |
| 17335 |
runpath_var=LD_RUN_PATH |
| 17336 |
;; |
| 17337 |
siemens) |
| 17338 |
need_lib_prefix=no |
| 17339 |
;; |
| 17340 |
motorola) |
| 17341 |
need_lib_prefix=no |
| 17342 |
need_version=no |
| 17343 |
shlibpath_overrides_runpath=no |
| 17344 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 17345 |
;; |
| 17346 |
esac |
| 17347 |
;; |
| 17348 |
|
| 17349 |
sysv4*MP*) |
| 17350 |
if test -d /usr/nec; then |
| 17351 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 17352 |
library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
| 17353 |
soname_spec='$libname$shared_ext.$major' |
| 17354 |
shlibpath_var=LD_LIBRARY_PATH |
| 17355 |
fi |
| 17356 |
;; |
| 17357 |
|
| 17358 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 17359 |
version_type=sco |
| 17360 |
need_lib_prefix=no |
| 17361 |
need_version=no |
| 17362 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
| 17363 |
soname_spec='$libname$release$shared_ext$major' |
| 17364 |
shlibpath_var=LD_LIBRARY_PATH |
| 17365 |
shlibpath_overrides_runpath=yes |
| 17366 |
hardcode_into_libs=yes |
| 17367 |
if test yes = "$with_gnu_ld"; then |
| 17368 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 17369 |
else |
| 17370 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 17371 |
case $host_os in |
| 17372 |
sco3.2v5*) |
| 17373 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 17374 |
;; |
| 17375 |
esac |
| 17376 |
fi |
| 17377 |
sys_lib_dlsearch_path_spec='/usr/lib' |
| 17378 |
;; |
| 17379 |
|
| 17380 |
tpf*) |
| 17381 |
# TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 17382 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 17383 |
need_lib_prefix=no |
| 17384 |
need_version=no |
| 17385 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17386 |
shlibpath_var=LD_LIBRARY_PATH |
| 17387 |
shlibpath_overrides_runpath=no |
| 17388 |
hardcode_into_libs=yes |
| 17389 |
;; |
| 17390 |
|
| 17391 |
uts4*) |
| 17392 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 17393 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17394 |
soname_spec='$libname$release$shared_ext$major' |
| 17395 |
shlibpath_var=LD_LIBRARY_PATH |
| 17396 |
;; |
| 17397 |
|
| 17398 |
*) |
| 17399 |
dynamic_linker=no |
| 17400 |
;; |
| 17401 |
esac |
| 17402 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 17403 |
$as_echo "$dynamic_linker" >&6; } |
| 17404 |
test no = "$dynamic_linker" && can_build_shared=no |
| 17405 |
|
| 17406 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 17407 |
if test yes = "$GCC"; then |
| 17408 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 17409 |
fi |
| 17410 |
|
| 17411 |
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
| 17412 |
sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
| 17413 |
fi |
| 17414 |
|
| 17415 |
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
| 17416 |
sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
| 17417 |
fi |
| 17418 |
|
| 17419 |
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
| 17420 |
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec |
| 17421 |
|
| 17422 |
# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code |
| 17423 |
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" |
| 17424 |
|
| 17425 |
# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool |
| 17426 |
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH |
| 17427 |
|
| 17428 |
|
| 17429 |
|
| 17430 |
|
| 17431 |
|
| 17432 |
|
| 17433 |
|
| 17434 |
|
| 17435 |
|
| 17436 |
|
| 17437 |
|
| 17438 |
|
| 17439 |
|
| 17440 |
|
| 17441 |
|
| 17442 |
|
| 17443 |
|
| 17444 |
|
| 17445 |
|
| 17446 |
|
| 17447 |
|
| 17448 |
|
| 17449 |
|
| 17450 |
|
| 17451 |
|
| 17452 |
|
| 17453 |
|
| 17454 |
|
| 17455 |
|
| 17456 |
|
| 17457 |
|
| 17458 |
|
| 17459 |
|
| 17460 |
|
| 17461 |
|
| 17462 |
|
| 17463 |
|
| 17464 |
|
| 17465 |
|
| 17466 |
|
| 17467 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 17468 |
$as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 17469 |
hardcode_action_CXX= |
| 17470 |
if test -n "$hardcode_libdir_flag_spec_CXX" || |
| 17471 |
test -n "$runpath_var_CXX" || |
| 17472 |
test yes = "$hardcode_automatic_CXX"; then |
| 17473 |
|
| 17474 |
# We can hardcode non-existent directories. |
| 17475 |
if test no != "$hardcode_direct_CXX" && |
| 17476 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 17477 |
# have to relink, otherwise we might link with an installed library |
| 17478 |
# when we should be linking with a yet-to-be-installed one |
| 17479 |
## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && |
| 17480 |
test no != "$hardcode_minus_L_CXX"; then |
| 17481 |
# Linking always hardcodes the temporary library directory. |
| 17482 |
hardcode_action_CXX=relink |
| 17483 |
else |
| 17484 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 17485 |
hardcode_action_CXX=immediate |
| 17486 |
fi |
| 17487 |
else |
| 17488 |
# We cannot hardcode anything, or else we can only hardcode existing |
| 17489 |
# directories. |
| 17490 |
hardcode_action_CXX=unsupported |
| 17491 |
fi |
| 17492 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
| 17493 |
$as_echo "$hardcode_action_CXX" >&6; } |
| 17494 |
|
| 17495 |
if test relink = "$hardcode_action_CXX" || |
| 17496 |
test yes = "$inherit_rpath_CXX"; then |
| 17497 |
# Fast installation is not supported |
| 17498 |
enable_fast_install=no |
| 17499 |
elif test yes = "$shlibpath_overrides_runpath" || |
| 17500 |
test no = "$enable_shared"; then |
| 17501 |
# Fast installation is not necessary |
| 17502 |
enable_fast_install=needless |
| 17503 |
fi |
| 17504 |
|
| 17505 |
|
| 17506 |
|
| 17507 |
|
| 17508 |
|
| 17509 |
|
| 17510 |
|
| 17511 |
fi # test -n "$compiler" |
| 17512 |
|
| 17513 |
CC=$lt_save_CC |
| 17514 |
CFLAGS=$lt_save_CFLAGS |
| 17515 |
LDCXX=$LD |
| 17516 |
LD=$lt_save_LD |
| 17517 |
GCC=$lt_save_GCC |
| 17518 |
with_gnu_ld=$lt_save_with_gnu_ld |
| 17519 |
lt_cv_path_LDCXX=$lt_cv_path_LD |
| 17520 |
lt_cv_path_LD=$lt_save_path_LD |
| 17521 |
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 17522 |
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 17523 |
fi # test yes != "$_lt_caught_CXX_error" |
| 17524 |
|
| 17525 |
ac_ext=c |
| 17526 |
ac_cpp='$CPP $CPPFLAGS' |
| 17527 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17528 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17529 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17530 |
|
| 17531 |
|
| 17532 |
|
| 17533 |
|
| 17534 |
|
| 17535 |
|
| 17536 |
|
| 17537 |
|
| 17538 |
|
| 17539 |
|
| 17540 |
|
| 17541 |
|
| 17542 |
|
| 17543 |
|
| 17544 |
|
| 17545 |
ac_config_commands="$ac_config_commands libtool" |
| 17546 |
|
| 17547 |
|
| 17548 |
|
| 17549 |
|
| 17550 |
# Only expand once: |
| 17551 |
|
| 17552 |
|
| 17553 |
|
| 17554 |
|
| 17555 |
|
| 17556 |
|
| 17557 |
|
| 17558 |
|
| 17559 |
|
| 17560 |
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 17561 |
if test -n "$ac_tool_prefix"; then |
| 17562 |
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 17563 |
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 17564 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17565 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 17566 |
if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 17567 |
$as_echo_n "(cached) " >&6 |
| 17568 |
else |
| 17569 |
case $PKG_CONFIG in |
| 17570 |
[\\/]* | ?:[\\/]*) |
| 17571 |
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 17572 |
;; |
| 17573 |
*) |
| 17574 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17575 |
for as_dir in $PATH |
| 17576 |
do |
| 17577 |
IFS=$as_save_IFS |
| 17578 |
test -z "$as_dir" && as_dir=. |
| 17579 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 17580 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17581 |
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 17582 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17583 |
break 2 |
| 17584 |
fi |
| 17585 |
done |
| 17586 |
done |
| 17587 |
IFS=$as_save_IFS |
| 17588 |
|
| 17589 |
;; |
| 17590 |
esac |
| 17591 |
fi |
| 17592 |
PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 17593 |
if test -n "$PKG_CONFIG"; then |
| 17594 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 17595 |
$as_echo "$PKG_CONFIG" >&6; } |
| 17596 |
else |
| 17597 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17598 |
$as_echo "no" >&6; } |
| 17599 |
fi |
| 17600 |
|
| 17601 |
|
| 17602 |
fi |
| 17603 |
if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 17604 |
ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 17605 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
| 17606 |
set dummy pkg-config; ac_word=$2 |
| 17607 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17608 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 17609 |
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 17610 |
$as_echo_n "(cached) " >&6 |
| 17611 |
else |
| 17612 |
case $ac_pt_PKG_CONFIG in |
| 17613 |
[\\/]* | ?:[\\/]*) |
| 17614 |
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 17615 |
;; |
| 17616 |
*) |
| 17617 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17618 |
for as_dir in $PATH |
| 17619 |
do |
| 17620 |
IFS=$as_save_IFS |
| 17621 |
test -z "$as_dir" && as_dir=. |
| 17622 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 17623 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17624 |
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 17625 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17626 |
break 2 |
| 17627 |
fi |
| 17628 |
done |
| 17629 |
done |
| 17630 |
IFS=$as_save_IFS |
| 17631 |
|
| 17632 |
;; |
| 17633 |
esac |
| 17634 |
fi |
| 17635 |
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 17636 |
if test -n "$ac_pt_PKG_CONFIG"; then |
| 17637 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 17638 |
$as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 17639 |
else |
| 17640 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17641 |
$as_echo "no" >&6; } |
| 17642 |
fi |
| 17643 |
|
| 17644 |
if test "x$ac_pt_PKG_CONFIG" = x; then |
| 17645 |
PKG_CONFIG="" |
| 17646 |
else |
| 17647 |
case $cross_compiling:$ac_tool_warned in |
| 17648 |
yes:) |
| 17649 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17650 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17651 |
ac_tool_warned=yes ;; |
| 17652 |
esac |
| 17653 |
PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 17654 |
fi |
| 17655 |
else |
| 17656 |
PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 17657 |
fi |
| 17658 |
|
| 17659 |
fi |
| 17660 |
if test -n "$PKG_CONFIG"; then |
| 17661 |
_pkg_min_version=0.9.0 |
| 17662 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 17663 |
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 17664 |
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 17665 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17666 |
$as_echo "yes" >&6; } |
| 17667 |
else |
| 17668 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17669 |
$as_echo "no" >&6; } |
| 17670 |
PKG_CONFIG="" |
| 17671 |
fi |
| 17672 |
fi |
| 17673 |
|
| 17674 |
AR_FLAGS=cr |
| 17675 |
|
| 17676 |
|
| 17677 |
if test -n "$ac_ct_CXX"; then |
| 17678 |
WITH_CXX_TRUE= |
| 17679 |
WITH_CXX_FALSE='#' |
| 17680 |
else |
| 17681 |
WITH_CXX_TRUE='#' |
| 17682 |
WITH_CXX_FALSE= |
| 17683 |
fi |
| 17684 |
|
| 17685 |
if test "$with_gnu_ld" = "yes"; then |
| 17686 |
WITH_GNU_LD_TRUE= |
| 17687 |
WITH_GNU_LD_FALSE='#' |
| 17688 |
else |
| 17689 |
WITH_GNU_LD_TRUE='#' |
| 17690 |
WITH_GNU_LD_FALSE= |
| 17691 |
fi |
| 17692 |
|
| 17693 |
|
| 17694 |
# Extract the first word of "sleep", so it can be a program name with args. |
| 17695 |
set dummy sleep; ac_word=$2 |
| 17696 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17697 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 17698 |
if ${ac_cv_path_SLEEP_CMD+:} false; then : |
| 17699 |
$as_echo_n "(cached) " >&6 |
| 17700 |
else |
| 17701 |
case $SLEEP_CMD in |
| 17702 |
[\\/]* | ?:[\\/]*) |
| 17703 |
ac_cv_path_SLEEP_CMD="$SLEEP_CMD" # Let the user override the test with a path. |
| 17704 |
;; |
| 17705 |
*) |
| 17706 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17707 |
for as_dir in $PATH |
| 17708 |
do |
| 17709 |
IFS=$as_save_IFS |
| 17710 |
test -z "$as_dir" && as_dir=. |
| 17711 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 17712 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17713 |
ac_cv_path_SLEEP_CMD="$as_dir/$ac_word$ac_exec_ext" |
| 17714 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17715 |
break 2 |
| 17716 |
fi |
| 17717 |
done |
| 17718 |
done |
| 17719 |
IFS=$as_save_IFS |
| 17720 |
|
| 17721 |
test -z "$ac_cv_path_SLEEP_CMD" && ac_cv_path_SLEEP_CMD="/bin/sleep" |
| 17722 |
;; |
| 17723 |
esac |
| 17724 |
fi |
| 17725 |
SLEEP_CMD=$ac_cv_path_SLEEP_CMD |
| 17726 |
if test -n "$SLEEP_CMD"; then |
| 17727 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SLEEP_CMD" >&5 |
| 17728 |
$as_echo "$SLEEP_CMD" >&6; } |
| 17729 |
else |
| 17730 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17731 |
$as_echo "no" >&6; } |
| 17732 |
fi |
| 17733 |
|
| 17734 |
|
| 17735 |
|
| 17736 |
cat >>confdefs.h <<_ACEOF |
| 17737 |
#define SLEEP_CMD "$SLEEP_CMD" |
| 17738 |
_ACEOF |
| 17739 |
|
| 17740 |
|
| 17741 |
# Extract the first word of "su", so it can be a program name with args. |
| 17742 |
set dummy su; ac_word=$2 |
| 17743 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17744 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 17745 |
if ${ac_cv_path_SUCMD+:} false; then : |
| 17746 |
$as_echo_n "(cached) " >&6 |
| 17747 |
else |
| 17748 |
case $SUCMD in |
| 17749 |
[\\/]* | ?:[\\/]*) |
| 17750 |
ac_cv_path_SUCMD="$SUCMD" # Let the user override the test with a path. |
| 17751 |
;; |
| 17752 |
*) |
| 17753 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17754 |
for as_dir in $PATH |
| 17755 |
do |
| 17756 |
IFS=$as_save_IFS |
| 17757 |
test -z "$as_dir" && as_dir=. |
| 17758 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 17759 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17760 |
ac_cv_path_SUCMD="$as_dir/$ac_word$ac_exec_ext" |
| 17761 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17762 |
break 2 |
| 17763 |
fi |
| 17764 |
done |
| 17765 |
done |
| 17766 |
IFS=$as_save_IFS |
| 17767 |
|
| 17768 |
test -z "$ac_cv_path_SUCMD" && ac_cv_path_SUCMD="/bin/su" |
| 17769 |
;; |
| 17770 |
esac |
| 17771 |
fi |
| 17772 |
SUCMD=$ac_cv_path_SUCMD |
| 17773 |
if test -n "$SUCMD"; then |
| 17774 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUCMD" >&5 |
| 17775 |
$as_echo "$SUCMD" >&6; } |
| 17776 |
else |
| 17777 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17778 |
$as_echo "no" >&6; } |
| 17779 |
fi |
| 17780 |
|
| 17781 |
|
| 17782 |
|
| 17783 |
cat >>confdefs.h <<_ACEOF |
| 17784 |
#define SUCMD "$SUCMD" |
| 17785 |
_ACEOF |
| 17786 |
|
| 17787 |
|
| 17788 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
| 17789 |
$as_echo_n "checking for library containing socket... " >&6; } |
| 17790 |
if ${ac_cv_search_socket+:} false; then : |
| 17791 |
$as_echo_n "(cached) " >&6 |
| 17792 |
else |
| 17793 |
ac_func_search_save_LIBS=$LIBS |
| 17794 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17795 |
/* end confdefs.h. */ |
| 17796 |
|
| 17797 |
/* Override any GCC internal prototype to avoid an error. |
| 17798 |
Use char because int might match the return type of a GCC |
| 17799 |
builtin and then its argument prototype would still apply. */ |
| 17800 |
#ifdef __cplusplus |
| 17801 |
extern "C" |
| 17802 |
#endif |
| 17803 |
char socket (); |
| 17804 |
int |
| 17805 |
main () |
| 17806 |
{ |
| 17807 |
return socket (); |
| 17808 |
; |
| 17809 |
return 0; |
| 17810 |
} |
| 17811 |
_ACEOF |
| 17812 |
for ac_lib in '' socket; do |
| 17813 |
if test -z "$ac_lib"; then |
| 17814 |
ac_res="none required" |
| 17815 |
else |
| 17816 |
ac_res=-l$ac_lib |
| 17817 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 17818 |
fi |
| 17819 |
if ac_fn_c_try_link "$LINENO"; then : |
| 17820 |
ac_cv_search_socket=$ac_res |
| 17821 |
fi |
| 17822 |
rm -f core conftest.err conftest.$ac_objext \ |
| 17823 |
conftest$ac_exeext |
| 17824 |
if ${ac_cv_search_socket+:} false; then : |
| 17825 |
break |
| 17826 |
fi |
| 17827 |
done |
| 17828 |
if ${ac_cv_search_socket+:} false; then : |
| 17829 |
|
| 17830 |
else |
| 17831 |
ac_cv_search_socket=no |
| 17832 |
fi |
| 17833 |
rm conftest.$ac_ext |
| 17834 |
LIBS=$ac_func_search_save_LIBS |
| 17835 |
fi |
| 17836 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
| 17837 |
$as_echo "$ac_cv_search_socket" >&6; } |
| 17838 |
ac_res=$ac_cv_search_socket |
| 17839 |
if test "$ac_res" != no; then : |
| 17840 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 17841 |
|
| 17842 |
fi |
| 17843 |
|
| 17844 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 |
| 17845 |
$as_echo_n "checking for library containing gethostbyname... " >&6; } |
| 17846 |
if ${ac_cv_search_gethostbyname+:} false; then : |
| 17847 |
$as_echo_n "(cached) " >&6 |
| 17848 |
else |
| 17849 |
ac_func_search_save_LIBS=$LIBS |
| 17850 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17851 |
/* end confdefs.h. */ |
| 17852 |
|
| 17853 |
/* Override any GCC internal prototype to avoid an error. |
| 17854 |
Use char because int might match the return type of a GCC |
| 17855 |
builtin and then its argument prototype would still apply. */ |
| 17856 |
#ifdef __cplusplus |
| 17857 |
extern "C" |
| 17858 |
#endif |
| 17859 |
char gethostbyname (); |
| 17860 |
int |
| 17861 |
main () |
| 17862 |
{ |
| 17863 |
return gethostbyname (); |
| 17864 |
; |
| 17865 |
return 0; |
| 17866 |
} |
| 17867 |
_ACEOF |
| 17868 |
for ac_lib in '' nsl; do |
| 17869 |
if test -z "$ac_lib"; then |
| 17870 |
ac_res="none required" |
| 17871 |
else |
| 17872 |
ac_res=-l$ac_lib |
| 17873 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 17874 |
fi |
| 17875 |
if ac_fn_c_try_link "$LINENO"; then : |
| 17876 |
ac_cv_search_gethostbyname=$ac_res |
| 17877 |
fi |
| 17878 |
rm -f core conftest.err conftest.$ac_objext \ |
| 17879 |
conftest$ac_exeext |
| 17880 |
if ${ac_cv_search_gethostbyname+:} false; then : |
| 17881 |
break |
| 17882 |
fi |
| 17883 |
done |
| 17884 |
if ${ac_cv_search_gethostbyname+:} false; then : |
| 17885 |
|
| 17886 |
else |
| 17887 |
ac_cv_search_gethostbyname=no |
| 17888 |
fi |
| 17889 |
rm conftest.$ac_ext |
| 17890 |
LIBS=$ac_func_search_save_LIBS |
| 17891 |
fi |
| 17892 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 |
| 17893 |
$as_echo "$ac_cv_search_gethostbyname" >&6; } |
| 17894 |
ac_res=$ac_cv_search_gethostbyname |
| 17895 |
if test "$ac_res" != no; then : |
| 17896 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 17897 |
|
| 17898 |
fi |
| 17899 |
|
| 17900 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5 |
| 17901 |
$as_echo_n "checking for library containing hstrerror... " >&6; } |
| 17902 |
if ${ac_cv_search_hstrerror+:} false; then : |
| 17903 |
$as_echo_n "(cached) " >&6 |
| 17904 |
else |
| 17905 |
ac_func_search_save_LIBS=$LIBS |
| 17906 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17907 |
/* end confdefs.h. */ |
| 17908 |
|
| 17909 |
/* Override any GCC internal prototype to avoid an error. |
| 17910 |
Use char because int might match the return type of a GCC |
| 17911 |
builtin and then its argument prototype would still apply. */ |
| 17912 |
#ifdef __cplusplus |
| 17913 |
extern "C" |
| 17914 |
#endif |
| 17915 |
char hstrerror (); |
| 17916 |
int |
| 17917 |
main () |
| 17918 |
{ |
| 17919 |
return hstrerror (); |
| 17920 |
; |
| 17921 |
return 0; |
| 17922 |
} |
| 17923 |
_ACEOF |
| 17924 |
for ac_lib in '' resolv; do |
| 17925 |
if test -z "$ac_lib"; then |
| 17926 |
ac_res="none required" |
| 17927 |
else |
| 17928 |
ac_res=-l$ac_lib |
| 17929 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 17930 |
fi |
| 17931 |
if ac_fn_c_try_link "$LINENO"; then : |
| 17932 |
ac_cv_search_hstrerror=$ac_res |
| 17933 |
fi |
| 17934 |
rm -f core conftest.err conftest.$ac_objext \ |
| 17935 |
conftest$ac_exeext |
| 17936 |
if ${ac_cv_search_hstrerror+:} false; then : |
| 17937 |
break |
| 17938 |
fi |
| 17939 |
done |
| 17940 |
if ${ac_cv_search_hstrerror+:} false; then : |
| 17941 |
|
| 17942 |
else |
| 17943 |
ac_cv_search_hstrerror=no |
| 17944 |
fi |
| 17945 |
rm conftest.$ac_ext |
| 17946 |
LIBS=$ac_func_search_save_LIBS |
| 17947 |
fi |
| 17948 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5 |
| 17949 |
$as_echo "$ac_cv_search_hstrerror" >&6; } |
| 17950 |
ac_res=$ac_cv_search_hstrerror |
| 17951 |
if test "$ac_res" != no; then : |
| 17952 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 17953 |
|
| 17954 |
fi |
| 17955 |
|
| 17956 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5 |
| 17957 |
$as_echo_n "checking for library containing kstat_open... " >&6; } |
| 17958 |
if ${ac_cv_search_kstat_open+:} false; then : |
| 17959 |
$as_echo_n "(cached) " >&6 |
| 17960 |
else |
| 17961 |
ac_func_search_save_LIBS=$LIBS |
| 17962 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17963 |
/* end confdefs.h. */ |
| 17964 |
|
| 17965 |
/* Override any GCC internal prototype to avoid an error. |
| 17966 |
Use char because int might match the return type of a GCC |
| 17967 |
builtin and then its argument prototype would still apply. */ |
| 17968 |
#ifdef __cplusplus |
| 17969 |
extern "C" |
| 17970 |
#endif |
| 17971 |
char kstat_open (); |
| 17972 |
int |
| 17973 |
main () |
| 17974 |
{ |
| 17975 |
return kstat_open (); |
| 17976 |
; |
| 17977 |
return 0; |
| 17978 |
} |
| 17979 |
_ACEOF |
| 17980 |
for ac_lib in '' kstat; do |
| 17981 |
if test -z "$ac_lib"; then |
| 17982 |
ac_res="none required" |
| 17983 |
else |
| 17984 |
ac_res=-l$ac_lib |
| 17985 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 17986 |
fi |
| 17987 |
if ac_fn_c_try_link "$LINENO"; then : |
| 17988 |
ac_cv_search_kstat_open=$ac_res |
| 17989 |
fi |
| 17990 |
rm -f core conftest.err conftest.$ac_objext \ |
| 17991 |
conftest$ac_exeext |
| 17992 |
if ${ac_cv_search_kstat_open+:} false; then : |
| 17993 |
break |
| 17994 |
fi |
| 17995 |
done |
| 17996 |
if ${ac_cv_search_kstat_open+:} false; then : |
| 17997 |
|
| 17998 |
else |
| 17999 |
ac_cv_search_kstat_open=no |
| 18000 |
fi |
| 18001 |
rm conftest.$ac_ext |
| 18002 |
LIBS=$ac_func_search_save_LIBS |
| 18003 |
fi |
| 18004 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5 |
| 18005 |
$as_echo "$ac_cv_search_kstat_open" >&6; } |
| 18006 |
ac_res=$ac_cv_search_kstat_open |
| 18007 |
if test "$ac_res" != no; then : |
| 18008 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 18009 |
|
| 18010 |
fi |
| 18011 |
|
| 18012 |
|
| 18013 |
for ac_header in mcheck.h values.h socket.h sys/socket.h \ |
| 18014 |
stdbool.h sys/ipc.h sys/shm.h sys/sem.h errno.h \ |
| 18015 |
stdlib.h dirent.h pthread.h sys/prctl.h \ |
| 18016 |
sysint.h inttypes.h termcap.h netdb.h sys/socket.h \ |
| 18017 |
sys/systemcfg.h ncurses.h curses.h sys/dr.h sys/vfs.h \ |
| 18018 |
pam/pam_appl.h security/pam_appl.h sys/sysctl.h \ |
| 18019 |
pty.h utmp.h \ |
| 18020 |
sys/syslog.h linux/sched.h \ |
| 18021 |
kstat.h paths.h limits.h sys/statfs.h sys/ptrace.h \ |
| 18022 |
float.h sys/statvfs.h |
| 18023 |
|
| 18024 |
do : |
| 18025 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 18026 |
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 18027 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 18028 |
cat >>confdefs.h <<_ACEOF |
| 18029 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 18030 |
_ACEOF |
| 18031 |
|
| 18032 |
fi |
| 18033 |
|
| 18034 |
done |
| 18035 |
|
| 18036 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 18037 |
$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } |
| 18038 |
if ${ac_cv_header_sys_wait_h+:} false; then : |
| 18039 |
$as_echo_n "(cached) " >&6 |
| 18040 |
else |
| 18041 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18042 |
/* end confdefs.h. */ |
| 18043 |
#include <sys/types.h> |
| 18044 |
#include <sys/wait.h> |
| 18045 |
#ifndef WEXITSTATUS |
| 18046 |
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
| 18047 |
#endif |
| 18048 |
#ifndef WIFEXITED |
| 18049 |
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 18050 |
#endif |
| 18051 |
|
| 18052 |
int |
| 18053 |
main () |
| 18054 |
{ |
| 18055 |
int s; |
| 18056 |
wait (&s); |
| 18057 |
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 18058 |
; |
| 18059 |
return 0; |
| 18060 |
} |
| 18061 |
_ACEOF |
| 18062 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 18063 |
ac_cv_header_sys_wait_h=yes |
| 18064 |
else |
| 18065 |
ac_cv_header_sys_wait_h=no |
| 18066 |
fi |
| 18067 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18068 |
fi |
| 18069 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 |
| 18070 |
$as_echo "$ac_cv_header_sys_wait_h" >&6; } |
| 18071 |
if test $ac_cv_header_sys_wait_h = yes; then |
| 18072 |
|
| 18073 |
$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
| 18074 |
|
| 18075 |
fi |
| 18076 |
|
| 18077 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
| 18078 |
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
| 18079 |
if ${ac_cv_header_time+:} false; then : |
| 18080 |
$as_echo_n "(cached) " >&6 |
| 18081 |
else |
| 18082 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18083 |
/* end confdefs.h. */ |
| 18084 |
#include <sys/types.h> |
| 18085 |
#include <sys/time.h> |
| 18086 |
#include <time.h> |
| 18087 |
|
| 18088 |
int |
| 18089 |
main () |
| 18090 |
{ |
| 18091 |
if ((struct tm *) 0) |
| 18092 |
return 0; |
| 18093 |
; |
| 18094 |
return 0; |
| 18095 |
} |
| 18096 |
_ACEOF |
| 18097 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 18098 |
ac_cv_header_time=yes |
| 18099 |
else |
| 18100 |
ac_cv_header_time=no |
| 18101 |
fi |
| 18102 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18103 |
fi |
| 18104 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| 18105 |
$as_echo "$ac_cv_header_time" >&6; } |
| 18106 |
if test $ac_cv_header_time = yes; then |
| 18107 |
|
| 18108 |
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
| 18109 |
|
| 18110 |
fi |
| 18111 |
|
| 18112 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 18113 |
$as_echo_n "checking for ANSI C header files... " >&6; } |
| 18114 |
if ${ac_cv_header_stdc+:} false; then : |
| 18115 |
$as_echo_n "(cached) " >&6 |
| 18116 |
else |
| 18117 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18118 |
/* end confdefs.h. */ |
| 18119 |
#include <stdlib.h> |
| 18120 |
#include <stdarg.h> |
| 18121 |
#include <string.h> |
| 18122 |
#include <float.h> |
| 18123 |
|
| 18124 |
int |
| 18125 |
main () |
| 18126 |
{ |
| 18127 |
|
| 18128 |
; |
| 18129 |
return 0; |
| 18130 |
} |
| 18131 |
_ACEOF |
| 18132 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 18133 |
ac_cv_header_stdc=yes |
| 18134 |
else |
| 18135 |
ac_cv_header_stdc=no |
| 18136 |
fi |
| 18137 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18138 |
|
| 18139 |
if test $ac_cv_header_stdc = yes; then |
| 18140 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 18141 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18142 |
/* end confdefs.h. */ |
| 18143 |
#include <string.h> |
| 18144 |
|
| 18145 |
_ACEOF |
| 18146 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 18147 |
$EGREP "memchr" >/dev/null 2>&1; then : |
| 18148 |
|
| 18149 |
else |
| 18150 |
ac_cv_header_stdc=no |
| 18151 |
fi |
| 18152 |
rm -f conftest* |
| 18153 |
|
| 18154 |
fi |
| 18155 |
|
| 18156 |
if test $ac_cv_header_stdc = yes; then |
| 18157 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 18158 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18159 |
/* end confdefs.h. */ |
| 18160 |
#include <stdlib.h> |
| 18161 |
|
| 18162 |
_ACEOF |
| 18163 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 18164 |
$EGREP "free" >/dev/null 2>&1; then : |
| 18165 |
|
| 18166 |
else |
| 18167 |
ac_cv_header_stdc=no |
| 18168 |
fi |
| 18169 |
rm -f conftest* |
| 18170 |
|
| 18171 |
fi |
| 18172 |
|
| 18173 |
if test $ac_cv_header_stdc = yes; then |
| 18174 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 18175 |
if test "$cross_compiling" = yes; then : |
| 18176 |
: |
| 18177 |
else |
| 18178 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18179 |
/* end confdefs.h. */ |
| 18180 |
#include <ctype.h> |
| 18181 |
#include <stdlib.h> |
| 18182 |
#if ((' ' & 0x0FF) == 0x020) |
| 18183 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 18184 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 18185 |
#else |
| 18186 |
# define ISLOWER(c) \ |
| 18187 |
(('a' <= (c) && (c) <= 'i') \ |
| 18188 |
|| ('j' <= (c) && (c) <= 'r') \ |
| 18189 |
|| ('s' <= (c) && (c) <= 'z')) |
| 18190 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 18191 |
#endif |
| 18192 |
|
| 18193 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 18194 |
int |
| 18195 |
main () |
| 18196 |
{ |
| 18197 |
int i; |
| 18198 |
for (i = 0; i < 256; i++) |
| 18199 |
if (XOR (islower (i), ISLOWER (i)) |
| 18200 |
|| toupper (i) != TOUPPER (i)) |
| 18201 |
return 2; |
| 18202 |
return 0; |
| 18203 |
} |
| 18204 |
_ACEOF |
| 18205 |
if ac_fn_c_try_run "$LINENO"; then : |
| 18206 |
|
| 18207 |
else |
| 18208 |
ac_cv_header_stdc=no |
| 18209 |
fi |
| 18210 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 18211 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18212 |
fi |
| 18213 |
|
| 18214 |
fi |
| 18215 |
fi |
| 18216 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 18217 |
$as_echo "$ac_cv_header_stdc" >&6; } |
| 18218 |
if test $ac_cv_header_stdc = yes; then |
| 18219 |
|
| 18220 |
$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 18221 |
|
| 18222 |
fi |
| 18223 |
|
| 18224 |
|
| 18225 |
# Workaround for transition of autoconf/glibc issues in deprecation of the |
| 18226 |
# definitions major, minor, makedev by sys/types.h vs sys/sysmacros.h |
| 18227 |
old_CFLAGS=$CFLAGS |
| 18228 |
CFLAGS="$CFLAGS -Werror" |
| 18229 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 |
| 18230 |
$as_echo_n "checking whether sys/types.h defines makedev... " >&6; } |
| 18231 |
if ${ac_cv_header_sys_types_h_makedev+:} false; then : |
| 18232 |
$as_echo_n "(cached) " >&6 |
| 18233 |
else |
| 18234 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18235 |
/* end confdefs.h. */ |
| 18236 |
#include <sys/types.h> |
| 18237 |
int |
| 18238 |
main () |
| 18239 |
{ |
| 18240 |
return makedev(0, 0); |
| 18241 |
; |
| 18242 |
return 0; |
| 18243 |
} |
| 18244 |
_ACEOF |
| 18245 |
if ac_fn_c_try_link "$LINENO"; then : |
| 18246 |
ac_cv_header_sys_types_h_makedev=yes |
| 18247 |
else |
| 18248 |
ac_cv_header_sys_types_h_makedev=no |
| 18249 |
fi |
| 18250 |
rm -f core conftest.err conftest.$ac_objext \ |
| 18251 |
conftest$ac_exeext conftest.$ac_ext |
| 18252 |
|
| 18253 |
fi |
| 18254 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 18255 |
$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } |
| 18256 |
|
| 18257 |
if test $ac_cv_header_sys_types_h_makedev = no; then |
| 18258 |
ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
| 18259 |
if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : |
| 18260 |
|
| 18261 |
$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h |
| 18262 |
|
| 18263 |
fi |
| 18264 |
|
| 18265 |
|
| 18266 |
|
| 18267 |
if test $ac_cv_header_sys_mkdev_h = no; then |
| 18268 |
ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" |
| 18269 |
if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : |
| 18270 |
|
| 18271 |
$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h |
| 18272 |
|
| 18273 |
fi |
| 18274 |
|
| 18275 |
|
| 18276 |
fi |
| 18277 |
fi |
| 18278 |
|
| 18279 |
CFLAGS=$old_CFLAGS |
| 18280 |
|
| 18281 |
|
| 18282 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18283 |
/* end confdefs.h. */ |
| 18284 |
#include <sys/systemcfg.h> |
| 18285 |
int |
| 18286 |
main () |
| 18287 |
{ |
| 18288 |
double x = _system_configuration.physmem; |
| 18289 |
; |
| 18290 |
return 0; |
| 18291 |
} |
| 18292 |
_ACEOF |
| 18293 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 18294 |
|
| 18295 |
$as_echo "#define HAVE__SYSTEM_CONFIGURATION 1" >>confdefs.h |
| 18296 |
|
| 18297 |
fi |
| 18298 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18299 |
|
| 18300 |
|
| 18301 |
|
| 18302 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing dlopen" >&5 |
| 18303 |
$as_echo_n "checking library containing dlopen... " >&6; } |
| 18304 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -l" >&5 |
| 18305 |
$as_echo_n "checking for dlopen in -l... " >&6; } |
| 18306 |
if ${ac_cv_lib__dlopen+:} false; then : |
| 18307 |
$as_echo_n "(cached) " >&6 |
| 18308 |
else |
| 18309 |
ac_check_lib_save_LIBS=$LIBS |
| 18310 |
LIBS="-l $LIBS" |
| 18311 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18312 |
/* end confdefs.h. */ |
| 18313 |
|
| 18314 |
/* Override any GCC internal prototype to avoid an error. |
| 18315 |
Use char because int might match the return type of a GCC |
| 18316 |
builtin and then its argument prototype would still apply. */ |
| 18317 |
#ifdef __cplusplus |
| 18318 |
extern "C" |
| 18319 |
#endif |
| 18320 |
char dlopen (); |
| 18321 |
int |
| 18322 |
main () |
| 18323 |
{ |
| 18324 |
return dlopen (); |
| 18325 |
; |
| 18326 |
return 0; |
| 18327 |
} |
| 18328 |
_ACEOF |
| 18329 |
if ac_fn_c_try_link "$LINENO"; then : |
| 18330 |
ac_cv_lib__dlopen=yes |
| 18331 |
else |
| 18332 |
ac_cv_lib__dlopen=no |
| 18333 |
fi |
| 18334 |
rm -f core conftest.err conftest.$ac_objext \ |
| 18335 |
conftest$ac_exeext conftest.$ac_ext |
| 18336 |
LIBS=$ac_check_lib_save_LIBS |
| 18337 |
fi |
| 18338 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib__dlopen" >&5 |
| 18339 |
$as_echo "$ac_cv_lib__dlopen" >&6; } |
| 18340 |
if test "x$ac_cv_lib__dlopen" = xyes; then : |
| 18341 |
ac_have_dlopen=yes; DL_LIBS="" |
| 18342 |
else |
| 18343 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 18344 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 18345 |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 18346 |
$as_echo_n "(cached) " >&6 |
| 18347 |
else |
| 18348 |
ac_check_lib_save_LIBS=$LIBS |
| 18349 |
LIBS="-ldl $LIBS" |
| 18350 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18351 |
/* end confdefs.h. */ |
| 18352 |
|
| 18353 |
/* Override any GCC internal prototype to avoid an error. |
| 18354 |
Use char because int might match the return type of a GCC |
| 18355 |
builtin and then its argument prototype would still apply. */ |
| 18356 |
#ifdef __cplusplus |
| 18357 |
extern "C" |
| 18358 |
#endif |
| 18359 |
char dlopen (); |
| 18360 |
int |
| 18361 |
main () |
| 18362 |
{ |
| 18363 |
return dlopen (); |
| 18364 |
; |
| 18365 |
return 0; |
| 18366 |
} |
| 18367 |
_ACEOF |
| 18368 |
if ac_fn_c_try_link "$LINENO"; then : |
| 18369 |
ac_cv_lib_dl_dlopen=yes |
| 18370 |
else |
| 18371 |
ac_cv_lib_dl_dlopen=no |
| 18372 |
fi |
| 18373 |
rm -f core conftest.err conftest.$ac_objext \ |
| 18374 |
conftest$ac_exeext conftest.$ac_ext |
| 18375 |
LIBS=$ac_check_lib_save_LIBS |
| 18376 |
fi |
| 18377 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 18378 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 18379 |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 18380 |
ac_have_dlopen=yes; DL_LIBS="-ldl" |
| 18381 |
else |
| 18382 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvdl" >&5 |
| 18383 |
$as_echo_n "checking for dlopen in -lsvdl... " >&6; } |
| 18384 |
if ${ac_cv_lib_svdl_dlopen+:} false; then : |
| 18385 |
$as_echo_n "(cached) " >&6 |
| 18386 |
else |
| 18387 |
ac_check_lib_save_LIBS=$LIBS |
| 18388 |
LIBS="-lsvdl $LIBS" |
| 18389 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18390 |
/* end confdefs.h. */ |
| 18391 |
|
| 18392 |
/* Override any GCC internal prototype to avoid an error. |
| 18393 |
Use char because int might match the return type of a GCC |
| 18394 |
builtin and then its argument prototype would still apply. */ |
| 18395 |
#ifdef __cplusplus |
| 18396 |
extern "C" |
| 18397 |
#endif |
| 18398 |
char dlopen (); |
| 18399 |
int |
| 18400 |
main () |
| 18401 |
{ |
| 18402 |
return dlopen (); |
| 18403 |
; |
| 18404 |
return 0; |
| 18405 |
} |
| 18406 |
_ACEOF |
| 18407 |
if ac_fn_c_try_link "$LINENO"; then : |
| 18408 |
ac_cv_lib_svdl_dlopen=yes |
| 18409 |
else |
| 18410 |
ac_cv_lib_svdl_dlopen=no |
| 18411 |
fi |
| 18412 |
rm -f core conftest.err conftest.$ac_objext \ |
| 18413 |
conftest$ac_exeext conftest.$ac_ext |
| 18414 |
LIBS=$ac_check_lib_save_LIBS |
| 18415 |
fi |
| 18416 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svdl_dlopen" >&5 |
| 18417 |
$as_echo "$ac_cv_lib_svdl_dlopen" >&6; } |
| 18418 |
if test "x$ac_cv_lib_svdl_dlopen" = xyes; then : |
| 18419 |
ac_have_dlopen=yes; DL_LIBS="-lsvdl" |
| 18420 |
fi |
| 18421 |
|
| 18422 |
fi |
| 18423 |
|
| 18424 |
fi |
| 18425 |
|
| 18426 |
|
| 18427 |
|
| 18428 |
|
| 18429 |
|
| 18430 |
|
| 18431 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for program_invocation_name" >&5 |
| 18432 |
$as_echo_n "checking for program_invocation_name... " >&6; } |
| 18433 |
|
| 18434 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18435 |
/* end confdefs.h. */ |
| 18436 |
#include <stdio.h> |
| 18437 |
extern char *program_invocation_name; |
| 18438 |
int |
| 18439 |
main () |
| 18440 |
{ |
| 18441 |
char *p; p = program_invocation_name; printf("%s\n", p); |
| 18442 |
; |
| 18443 |
return 0; |
| 18444 |
} |
| 18445 |
_ACEOF |
| 18446 |
if ac_fn_c_try_link "$LINENO"; then : |
| 18447 |
got_program_invocation_name=yes |
| 18448 |
fi |
| 18449 |
rm -f core conftest.err conftest.$ac_objext \ |
| 18450 |
conftest$ac_exeext conftest.$ac_ext |
| 18451 |
|
| 18452 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${got_program_invocation_name=no}" >&5 |
| 18453 |
$as_echo "${got_program_invocation_name=no}" >&6; } |
| 18454 |
|
| 18455 |
if test "x$got_program_invocation_name" = "xyes"; then |
| 18456 |
|
| 18457 |
$as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h |
| 18458 |
|
| 18459 |
fi |
| 18460 |
|
| 18461 |
|
| 18462 |
|
| 18463 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18464 |
/* end confdefs.h. */ |
| 18465 |
#include <sys/reg.h> |
| 18466 |
#include <sys/ptrace.h> |
| 18467 |
#include <sys/ldr.h> |
| 18468 |
int |
| 18469 |
main () |
| 18470 |
{ |
| 18471 |
ptrace(PT_TRACE_ME,0,0,0,0); |
| 18472 |
; |
| 18473 |
return 0; |
| 18474 |
} |
| 18475 |
_ACEOF |
| 18476 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 18477 |
|
| 18478 |
$as_echo "#define PTRACE_FIVE_ARGS 1" >>confdefs.h |
| 18479 |
|
| 18480 |
fi |
| 18481 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18482 |
|
| 18483 |
for ac_func in ptrace64 |
| 18484 |
do : |
| 18485 |
ac_fn_c_check_func "$LINENO" "ptrace64" "ac_cv_func_ptrace64" |
| 18486 |
if test "x$ac_cv_func_ptrace64" = xyes; then : |
| 18487 |
cat >>confdefs.h <<_ACEOF |
| 18488 |
#define HAVE_PTRACE64 1 |
| 18489 |
_ACEOF |
| 18490 |
|
| 18491 |
fi |
| 18492 |
done |
| 18493 |
|
| 18494 |
|
| 18495 |
|
| 18496 |
|
| 18497 |
|
| 18498 |
# Test if sched_setaffinity function exists |
| 18499 |
for ac_func in sched_setaffinity |
| 18500 |
do : |
| 18501 |
ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity" |
| 18502 |
if test "x$ac_cv_func_sched_setaffinity" = xyes; then : |
| 18503 |
cat >>confdefs.h <<_ACEOF |
| 18504 |
#define HAVE_SCHED_SETAFFINITY 1 |
| 18505 |
_ACEOF |
| 18506 |
have_sched_setaffinity=yes |
| 18507 |
fi |
| 18508 |
done |
| 18509 |
|
| 18510 |
|
| 18511 |
# |
| 18512 |
# Test for NUMA memory afffinity functions and set the definitions |
| 18513 |
# |
| 18514 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5 |
| 18515 |
$as_echo_n "checking for numa_available in -lnuma... " >&6; } |
| 18516 |
if ${ac_cv_lib_numa_numa_available+:} false; then : |
| 18517 |
$as_echo_n "(cached) " >&6 |
| 18518 |
else |
| 18519 |
ac_check_lib_save_LIBS=$LIBS |
| 18520 |
LIBS="-lnuma $LIBS" |
| 18521 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18522 |
/* end confdefs.h. */ |
| 18523 |
|
| 18524 |
/* Override any GCC internal prototype to avoid an error. |
| 18525 |
Use char because int might match the return type of a GCC |
| 18526 |
builtin and then its argument prototype would still apply. */ |
| 18527 |
#ifdef __cplusplus |
| 18528 |
extern "C" |
| 18529 |
#endif |
| 18530 |
char numa_available (); |
| 18531 |
int |
| 18532 |
main () |
| 18533 |
{ |
| 18534 |
return numa_available (); |
| 18535 |
; |
| 18536 |
return 0; |
| 18537 |
} |
| 18538 |
_ACEOF |
| 18539 |
if ac_fn_c_try_link "$LINENO"; then : |
| 18540 |
ac_cv_lib_numa_numa_available=yes |
| 18541 |
else |
| 18542 |
ac_cv_lib_numa_numa_available=no |
| 18543 |
fi |
| 18544 |
rm -f core conftest.err conftest.$ac_objext \ |
| 18545 |
conftest$ac_exeext conftest.$ac_ext |
| 18546 |
LIBS=$ac_check_lib_save_LIBS |
| 18547 |
fi |
| 18548 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5 |
| 18549 |
$as_echo "$ac_cv_lib_numa_numa_available" >&6; } |
| 18550 |
if test "x$ac_cv_lib_numa_numa_available" = xyes; then : |
| 18551 |
ac_have_numa=yes; NUMA_LIBS="-lnuma" |
| 18552 |
fi |
| 18553 |
|
| 18554 |
|
| 18555 |
|
| 18556 |
if test "x$ac_have_numa" = "xyes"; then |
| 18557 |
HAVE_NUMA_TRUE= |
| 18558 |
HAVE_NUMA_FALSE='#' |
| 18559 |
else |
| 18560 |
HAVE_NUMA_TRUE='#' |
| 18561 |
HAVE_NUMA_FALSE= |
| 18562 |
fi |
| 18563 |
|
| 18564 |
if test "x$ac_have_numa" = "xyes"; then |
| 18565 |
|
| 18566 |
$as_echo "#define HAVE_NUMA 1" >>confdefs.h |
| 18567 |
|
| 18568 |
CFLAGS="-DNUMA_VERSION1_COMPATIBILITY $CFLAGS" |
| 18569 |
else |
| 18570 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to locate NUMA memory affinity functions" >&5 |
| 18571 |
$as_echo "$as_me: WARNING: unable to locate NUMA memory affinity functions" >&2;} |
| 18572 |
fi |
| 18573 |
|
| 18574 |
# |
| 18575 |
# Test for cpuset directory |
| 18576 |
# |
| 18577 |
cpuset_default_dir="/dev/cpuset" |
| 18578 |
|
| 18579 |
# Check whether --with-cpusetdir was given. |
| 18580 |
if test "${with_cpusetdir+set}" = set; then : |
| 18581 |
withval=$with_cpusetdir; try_path=$withval |
| 18582 |
fi |
| 18583 |
|
| 18584 |
for cpuset_dir in $try_path "" $cpuset_default_dir; do |
| 18585 |
if test -d "$cpuset_dir" ; then |
| 18586 |
|
| 18587 |
cat >>confdefs.h <<_ACEOF |
| 18588 |
#define CPUSET_DIR "$cpuset_dir" |
| 18589 |
_ACEOF |
| 18590 |
|
| 18591 |
have_sched_setaffinity=yes |
| 18592 |
break |
| 18593 |
fi |
| 18594 |
done |
| 18595 |
|
| 18596 |
# |
| 18597 |
# Set HAVE_SCHED_SETAFFINITY if any task affinity supported |
| 18598 |
if test "x$have_sched_setaffinity" = "xyes"; then |
| 18599 |
HAVE_SCHED_SETAFFINITY_TRUE= |
| 18600 |
HAVE_SCHED_SETAFFINITY_FALSE='#' |
| 18601 |
else |
| 18602 |
HAVE_SCHED_SETAFFINITY_TRUE='#' |
| 18603 |
HAVE_SCHED_SETAFFINITY_FALSE= |
| 18604 |
fi |
| 18605 |
|
| 18606 |
|
| 18607 |
|
| 18608 |
|
| 18609 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PAM support" >&5 |
| 18610 |
$as_echo_n "checking whether to enable PAM support... " >&6; } |
| 18611 |
# Check whether --enable-pam was given. |
| 18612 |
if test "${enable_pam+set}" = set; then : |
| 18613 |
enableval=$enable_pam; case "$enableval" in |
| 18614 |
yes) x_ac_pam=yes ;; |
| 18615 |
no) x_ac_pam=no ;; |
| 18616 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: doh!" >&5 |
| 18617 |
$as_echo "doh!" >&6; } |
| 18618 |
as_fn_error $? "bad value \"$enableval\" for --enable-pam" "$LINENO" 5 ;; |
| 18619 |
esac |
| 18620 |
|
| 18621 |
else |
| 18622 |
x_ac_pam=yes |
| 18623 |
|
| 18624 |
fi |
| 18625 |
|
| 18626 |
|
| 18627 |
if test "$x_ac_pam" = yes; then |
| 18628 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18629 |
$as_echo "yes" >&6; } |
| 18630 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_get_user in -lpam" >&5 |
| 18631 |
$as_echo_n "checking for pam_get_user in -lpam... " >&6; } |
| 18632 |
if ${ac_cv_lib_pam_pam_get_user+:} false; then : |
| 18633 |
$as_echo_n "(cached) " >&6 |
| 18634 |
else |
| 18635 |
ac_check_lib_save_LIBS=$LIBS |
| 18636 |
LIBS="-lpam $LIBS" |
| 18637 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18638 |
/* end confdefs.h. */ |
| 18639 |
|
| 18640 |
/* Override any GCC internal prototype to avoid an error. |
| 18641 |
Use char because int might match the return type of a GCC |
| 18642 |
builtin and then its argument prototype would still apply. */ |
| 18643 |
#ifdef __cplusplus |
| 18644 |
extern "C" |
| 18645 |
#endif |
| 18646 |
char pam_get_user (); |
| 18647 |
int |
| 18648 |
main () |
| 18649 |
{ |
| 18650 |
return pam_get_user (); |
| 18651 |
; |
| 18652 |
return 0; |
| 18653 |
} |
| 18654 |
_ACEOF |
| 18655 |
if ac_fn_c_try_link "$LINENO"; then : |
| 18656 |
ac_cv_lib_pam_pam_get_user=yes |
| 18657 |
else |
| 18658 |
ac_cv_lib_pam_pam_get_user=no |
| 18659 |
fi |
| 18660 |
rm -f core conftest.err conftest.$ac_objext \ |
| 18661 |
conftest$ac_exeext conftest.$ac_ext |
| 18662 |
LIBS=$ac_check_lib_save_LIBS |
| 18663 |
fi |
| 18664 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_get_user" >&5 |
| 18665 |
$as_echo "$ac_cv_lib_pam_pam_get_user" >&6; } |
| 18666 |
if test "x$ac_cv_lib_pam_pam_get_user" = xyes; then : |
| 18667 |
ac_have_pam=yes; PAM_LIBS="-lpam" |
| 18668 |
fi |
| 18669 |
|
| 18670 |
|
| 18671 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for misc_conv in -lpam_misc" >&5 |
| 18672 |
$as_echo_n "checking for misc_conv in -lpam_misc... " >&6; } |
| 18673 |
if ${ac_cv_lib_pam_misc_misc_conv+:} false; then : |
| 18674 |
$as_echo_n "(cached) " >&6 |
| 18675 |
else |
| 18676 |
ac_check_lib_save_LIBS=$LIBS |
| 18677 |
LIBS="-lpam_misc $LIBS" |
| 18678 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18679 |
/* end confdefs.h. */ |
| 18680 |
|
| 18681 |
/* Override any GCC internal prototype to avoid an error. |
| 18682 |
Use char because int might match the return type of a GCC |
| 18683 |
builtin and then its argument prototype would still apply. */ |
| 18684 |
#ifdef __cplusplus |
| 18685 |
extern "C" |
| 18686 |
#endif |
| 18687 |
char misc_conv (); |
| 18688 |
int |
| 18689 |
main () |
| 18690 |
{ |
| 18691 |
return misc_conv (); |
| 18692 |
; |
| 18693 |
return 0; |
| 18694 |
} |
| 18695 |
_ACEOF |
| 18696 |
if ac_fn_c_try_link "$LINENO"; then : |
| 18697 |
ac_cv_lib_pam_misc_misc_conv=yes |
| 18698 |
else |
| 18699 |
ac_cv_lib_pam_misc_misc_conv=no |
| 18700 |
fi |
| 18701 |
rm -f core conftest.err conftest.$ac_objext \ |
| 18702 |
conftest$ac_exeext conftest.$ac_ext |
| 18703 |
LIBS=$ac_check_lib_save_LIBS |
| 18704 |
fi |
| 18705 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_misc_misc_conv" >&5 |
| 18706 |
$as_echo "$ac_cv_lib_pam_misc_misc_conv" >&6; } |
| 18707 |
if test "x$ac_cv_lib_pam_misc_misc_conv" = xyes; then : |
| 18708 |
ac_have_pam_misc=yes; PAM_LIBS="$PAM_LIBS -lpam_misc" |
| 18709 |
fi |
| 18710 |
|
| 18711 |
|
| 18712 |
|
| 18713 |
if test "x$ac_have_pam" = "xyes" -a "x$ac_have_pam_misc" = "xyes"; then |
| 18714 |
|
| 18715 |
$as_echo "#define HAVE_PAM /**/" >>confdefs.h |
| 18716 |
|
| 18717 |
else |
| 18718 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to locate PAM libraries" >&5 |
| 18719 |
$as_echo "$as_me: WARNING: unable to locate PAM libraries" >&2;} |
| 18720 |
fi |
| 18721 |
else |
| 18722 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18723 |
$as_echo "no" >&6; } |
| 18724 |
fi |
| 18725 |
if test "x$x_ac_pam" = "xyes" -a "x$ac_have_pam" = "xyes" -a "x$ac_have_pam_misc" = "xyes"; then |
| 18726 |
HAVE_PAM_TRUE= |
| 18727 |
HAVE_PAM_FALSE='#' |
| 18728 |
else |
| 18729 |
HAVE_PAM_TRUE='#' |
| 18730 |
HAVE_PAM_FALSE= |
| 18731 |
fi |
| 18732 |
|
| 18733 |
|
| 18734 |
|
| 18735 |
|
| 18736 |
# Check whether --with-pam_dir was given. |
| 18737 |
if test "${with_pam_dir+set}" = set; then : |
| 18738 |
withval=$with_pam_dir; |
| 18739 |
if test -d $withval ; then |
| 18740 |
PAM_DIR="$withval" |
| 18741 |
else |
| 18742 |
as_fn_error $? "bad value \"$withval\" for --with-pam_dir" "$LINENO" 5 |
| 18743 |
fi |
| 18744 |
|
| 18745 |
else |
| 18746 |
|
| 18747 |
if test -d /lib64/security ; then |
| 18748 |
PAM_DIR="/lib64/security" |
| 18749 |
else |
| 18750 |
PAM_DIR="/lib/security" |
| 18751 |
fi |
| 18752 |
|
| 18753 |
|
| 18754 |
fi |
| 18755 |
|
| 18756 |
|
| 18757 |
|
| 18758 |
cat >>confdefs.h <<_ACEOF |
| 18759 |
#define PAM_DIR "$pam_dir" |
| 18760 |
_ACEOF |
| 18761 |
|
| 18762 |
|
| 18763 |
|
| 18764 |
|
| 18765 |
|
| 18766 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Link to libslurm.so instead of libslurm.o" >&5 |
| 18767 |
$as_echo_n "checking Link to libslurm.so instead of libslurm.o... " >&6; } |
| 18768 |
|
| 18769 |
# Check whether --with-shared-libslurm was given. |
| 18770 |
if test "${with_shared_libslurm+set}" = set; then : |
| 18771 |
withval=$with_shared_libslurm; case "$withval" in |
| 18772 |
yes) x_ac_shared_libslurm=yes ;; |
| 18773 |
no) x_ac_shared_libslurm=no ;; |
| 18774 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: doh!" >&5 |
| 18775 |
$as_echo "doh!" >&6; } |
| 18776 |
as_fn_error $? "bad value \"$withval\" for --without-shared-libslurm" "$LINENO" 5 ;; |
| 18777 |
esac |
| 18778 |
|
| 18779 |
|
| 18780 |
fi |
| 18781 |
|
| 18782 |
|
| 18783 |
if test "$x_ac_shared_libslurm" = no; then |
| 18784 |
LIB_SLURM_BUILD='$(top_builddir)/src/api/libslurm.o' |
| 18785 |
LIB_SLURM=$LIB_SLURM_BUILD |
| 18786 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 |
| 18787 |
$as_echo "static" >&6; }; |
| 18788 |
else |
| 18789 |
# The *_BUILD variables are here to make sure these are made before |
| 18790 |
# compiling the bin |
| 18791 |
LIB_SLURM_BUILD='$(top_builddir)/src/api/full_version.map $(top_builddir)/src/api/libslurmfull.la' |
| 18792 |
# You will notice " or ' each does something different when resolving |
| 18793 |
# variables. Some need to be resolved now ($libdir) and others |
| 18794 |
# ($(top_builddir)) need to be resolved when dealing with the Makefile.am's |
| 18795 |
LIB_SLURM="-Wl,-rpath=$libdir/slurm" |
| 18796 |
LIB_SLURM=$LIB_SLURM' -L$(top_builddir)/src/api/.libs -lslurmfull' |
| 18797 |
|
| 18798 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5 |
| 18799 |
$as_echo "shared" >&6; }; |
| 18800 |
fi |
| 18801 |
|
| 18802 |
|
| 18803 |
|
| 18804 |
|
| 18805 |
|
| 18806 |
|
| 18807 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ISO 8601 time format support" >&5 |
| 18808 |
$as_echo_n "checking whether to enable ISO 8601 time format support... " >&6; } |
| 18809 |
# Check whether --enable-iso8601 was given. |
| 18810 |
if test "${enable_iso8601+set}" = set; then : |
| 18811 |
enableval=$enable_iso8601; case "$enableval" in |
| 18812 |
yes) x_ac_iso8601=yes ;; |
| 18813 |
no) x_ac_iso8601=no ;; |
| 18814 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: doh!" >&5 |
| 18815 |
$as_echo "doh!" >&6; } |
| 18816 |
as_fn_error $? "bad value \"$enableval\" for --enable-iso8601" "$LINENO" 5 ;; |
| 18817 |
esac |
| 18818 |
|
| 18819 |
else |
| 18820 |
x_ac_iso8601=yes |
| 18821 |
|
| 18822 |
fi |
| 18823 |
|
| 18824 |
|
| 18825 |
if test "$x_ac_iso8601" = yes; then |
| 18826 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18827 |
$as_echo "yes" >&6; } |
| 18828 |
|
| 18829 |
$as_echo "#define USE_ISO_8601 /**/" >>confdefs.h |
| 18830 |
|
| 18831 |
else |
| 18832 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18833 |
$as_echo "no" >&6; } |
| 18834 |
fi |
| 18835 |
|
| 18836 |
|
| 18837 |
|
| 18838 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sbatch --get-user-env option should load .login" >&5 |
| 18839 |
$as_echo_n "checking whether sbatch --get-user-env option should load .login... " >&6; } |
| 18840 |
# Check whether --enable-load-env-no-login was given. |
| 18841 |
if test "${enable_load_env_no_login+set}" = set; then : |
| 18842 |
enableval=$enable_load_env_no_login; case "$enableval" in |
| 18843 |
yes) x_ac_load_env_no_login=yes ;; |
| 18844 |
no) x_ac_load_env_no_login=no ;; |
| 18845 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: doh!" >&5 |
| 18846 |
$as_echo "doh!" >&6; } |
| 18847 |
as_fn_error $? "bad value \"$enableval\" for --enable-load-env-no-login" "$LINENO" 5 ;; |
| 18848 |
esac |
| 18849 |
|
| 18850 |
else |
| 18851 |
x_ac_load_env_no_login=no |
| 18852 |
|
| 18853 |
fi |
| 18854 |
|
| 18855 |
|
| 18856 |
if test "$x_ac_load_env_no_login" = yes; then |
| 18857 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18858 |
$as_echo "yes" >&6; } |
| 18859 |
|
| 18860 |
$as_echo "#define LOAD_ENV_NO_LOGIN 1" >>confdefs.h |
| 18861 |
|
| 18862 |
else |
| 18863 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18864 |
$as_echo "no" >&6; } |
| 18865 |
fi |
| 18866 |
|
| 18867 |
|
| 18868 |
|
| 18869 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 18870 |
$as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| 18871 |
if ${ac_cv_c_bigendian+:} false; then : |
| 18872 |
$as_echo_n "(cached) " >&6 |
| 18873 |
else |
| 18874 |
ac_cv_c_bigendian=unknown |
| 18875 |
# See if we're dealing with a universal compiler. |
| 18876 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18877 |
/* end confdefs.h. */ |
| 18878 |
#ifndef __APPLE_CC__ |
| 18879 |
not a universal capable compiler |
| 18880 |
#endif |
| 18881 |
typedef int dummy; |
| 18882 |
|
| 18883 |
_ACEOF |
| 18884 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 18885 |
|
| 18886 |
# Check for potential -arch flags. It is not universal unless |
| 18887 |
# there are at least two -arch flags with different values. |
| 18888 |
ac_arch= |
| 18889 |
ac_prev= |
| 18890 |
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 18891 |
if test -n "$ac_prev"; then |
| 18892 |
case $ac_word in |
| 18893 |
i?86 | x86_64 | ppc | ppc64) |
| 18894 |
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 18895 |
ac_arch=$ac_word |
| 18896 |
else |
| 18897 |
ac_cv_c_bigendian=universal |
| 18898 |
break |
| 18899 |
fi |
| 18900 |
;; |
| 18901 |
esac |
| 18902 |
ac_prev= |
| 18903 |
elif test "x$ac_word" = "x-arch"; then |
| 18904 |
ac_prev=arch |
| 18905 |
fi |
| 18906 |
done |
| 18907 |
fi |
| 18908 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18909 |
if test $ac_cv_c_bigendian = unknown; then |
| 18910 |
# See if sys/param.h defines the BYTE_ORDER macro. |
| 18911 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18912 |
/* end confdefs.h. */ |
| 18913 |
#include <sys/types.h> |
| 18914 |
#include <sys/param.h> |
| 18915 |
|
| 18916 |
int |
| 18917 |
main () |
| 18918 |
{ |
| 18919 |
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 18920 |
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 18921 |
&& LITTLE_ENDIAN) |
| 18922 |
bogus endian macros |
| 18923 |
#endif |
| 18924 |
|
| 18925 |
; |
| 18926 |
return 0; |
| 18927 |
} |
| 18928 |
_ACEOF |
| 18929 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 18930 |
# It does; now see whether it defined to BIG_ENDIAN or not. |
| 18931 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18932 |
/* end confdefs.h. */ |
| 18933 |
#include <sys/types.h> |
| 18934 |
#include <sys/param.h> |
| 18935 |
|
| 18936 |
int |
| 18937 |
main () |
| 18938 |
{ |
| 18939 |
#if BYTE_ORDER != BIG_ENDIAN |
| 18940 |
not big endian |
| 18941 |
#endif |
| 18942 |
|
| 18943 |
; |
| 18944 |
return 0; |
| 18945 |
} |
| 18946 |
_ACEOF |
| 18947 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 18948 |
ac_cv_c_bigendian=yes |
| 18949 |
else |
| 18950 |
ac_cv_c_bigendian=no |
| 18951 |
fi |
| 18952 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18953 |
fi |
| 18954 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18955 |
fi |
| 18956 |
if test $ac_cv_c_bigendian = unknown; then |
| 18957 |
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 18958 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18959 |
/* end confdefs.h. */ |
| 18960 |
#include <limits.h> |
| 18961 |
|
| 18962 |
int |
| 18963 |
main () |
| 18964 |
{ |
| 18965 |
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 18966 |
bogus endian macros |
| 18967 |
#endif |
| 18968 |
|
| 18969 |
; |
| 18970 |
return 0; |
| 18971 |
} |
| 18972 |
_ACEOF |
| 18973 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 18974 |
# It does; now see whether it defined to _BIG_ENDIAN or not. |
| 18975 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18976 |
/* end confdefs.h. */ |
| 18977 |
#include <limits.h> |
| 18978 |
|
| 18979 |
int |
| 18980 |
main () |
| 18981 |
{ |
| 18982 |
#ifndef _BIG_ENDIAN |
| 18983 |
not big endian |
| 18984 |
#endif |
| 18985 |
|
| 18986 |
; |
| 18987 |
return 0; |
| 18988 |
} |
| 18989 |
_ACEOF |
| 18990 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 18991 |
ac_cv_c_bigendian=yes |
| 18992 |
else |
| 18993 |
ac_cv_c_bigendian=no |
| 18994 |
fi |
| 18995 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18996 |
fi |
| 18997 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18998 |
fi |
| 18999 |
if test $ac_cv_c_bigendian = unknown; then |
| 19000 |
# Compile a test program. |
| 19001 |
if test "$cross_compiling" = yes; then : |
| 19002 |
# Try to guess by grepping values from an object file. |
| 19003 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19004 |
/* end confdefs.h. */ |
| 19005 |
short int ascii_mm[] = |
| 19006 |
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 19007 |
short int ascii_ii[] = |
| 19008 |
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 19009 |
int use_ascii (int i) { |
| 19010 |
return ascii_mm[i] + ascii_ii[i]; |
| 19011 |
} |
| 19012 |
short int ebcdic_ii[] = |
| 19013 |
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 19014 |
short int ebcdic_mm[] = |
| 19015 |
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 19016 |
int use_ebcdic (int i) { |
| 19017 |
return ebcdic_mm[i] + ebcdic_ii[i]; |
| 19018 |
} |
| 19019 |
extern int foo; |
| 19020 |
|
| 19021 |
int |
| 19022 |
main () |
| 19023 |
{ |
| 19024 |
return use_ascii (foo) == use_ebcdic (foo); |
| 19025 |
; |
| 19026 |
return 0; |
| 19027 |
} |
| 19028 |
_ACEOF |
| 19029 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 19030 |
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 19031 |
ac_cv_c_bigendian=yes |
| 19032 |
fi |
| 19033 |
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 19034 |
if test "$ac_cv_c_bigendian" = unknown; then |
| 19035 |
ac_cv_c_bigendian=no |
| 19036 |
else |
| 19037 |
# finding both strings is unlikely to happen, but who knows? |
| 19038 |
ac_cv_c_bigendian=unknown |
| 19039 |
fi |
| 19040 |
fi |
| 19041 |
fi |
| 19042 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19043 |
else |
| 19044 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19045 |
/* end confdefs.h. */ |
| 19046 |
$ac_includes_default |
| 19047 |
int |
| 19048 |
main () |
| 19049 |
{ |
| 19050 |
|
| 19051 |
/* Are we little or big endian? From Harbison&Steele. */ |
| 19052 |
union |
| 19053 |
{ |
| 19054 |
long int l; |
| 19055 |
char c[sizeof (long int)]; |
| 19056 |
} u; |
| 19057 |
u.l = 1; |
| 19058 |
return u.c[sizeof (long int) - 1] == 1; |
| 19059 |
|
| 19060 |
; |
| 19061 |
return 0; |
| 19062 |
} |
| 19063 |
_ACEOF |
| 19064 |
if ac_fn_c_try_run "$LINENO"; then : |
| 19065 |
ac_cv_c_bigendian=no |
| 19066 |
else |
| 19067 |
ac_cv_c_bigendian=yes |
| 19068 |
fi |
| 19069 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 19070 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19071 |
fi |
| 19072 |
|
| 19073 |
fi |
| 19074 |
fi |
| 19075 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 19076 |
$as_echo "$ac_cv_c_bigendian" >&6; } |
| 19077 |
case $ac_cv_c_bigendian in #( |
| 19078 |
yes) |
| 19079 |
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 19080 |
;; #( |
| 19081 |
no) |
| 19082 |
;; #( |
| 19083 |
universal) |
| 19084 |
|
| 19085 |
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| 19086 |
|
| 19087 |
;; #( |
| 19088 |
*) |
| 19089 |
as_fn_error $? "unknown endianness |
| 19090 |
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 19091 |
esac |
| 19092 |
|
| 19093 |
if test "x$ac_cv_c_bigendian" = "xyes"; then |
| 19094 |
|
| 19095 |
$as_echo "#define SLURM_BIGENDIAN 1" >>confdefs.h |
| 19096 |
|
| 19097 |
fi |
| 19098 |
|
| 19099 |
|
| 19100 |
|
| 19101 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 support" >&5 |
| 19102 |
$as_echo_n "checking for C99 support... " >&6; } |
| 19103 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19104 |
/* end confdefs.h. */ |
| 19105 |
|
| 19106 |
|
| 19107 |
int |
| 19108 |
main () |
| 19109 |
{ |
| 19110 |
|
| 19111 |
for (int i = 0; i < 10; i++) |
| 19112 |
; |
| 19113 |
|
| 19114 |
; |
| 19115 |
return 0; |
| 19116 |
} |
| 19117 |
|
| 19118 |
_ACEOF |
| 19119 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 19120 |
c99_ok=yes |
| 19121 |
else |
| 19122 |
|
| 19123 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=gnu99" >&5 |
| 19124 |
$as_echo_n "checking whether C compiler accepts -std=gnu99... " >&6; } |
| 19125 |
if ${ax_cv_check_cflags___std_gnu99+:} false; then : |
| 19126 |
$as_echo_n "(cached) " >&6 |
| 19127 |
else |
| 19128 |
|
| 19129 |
ax_check_save_flags=$CFLAGS |
| 19130 |
CFLAGS="$CFLAGS -std=gnu99" |
| 19131 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19132 |
/* end confdefs.h. */ |
| 19133 |
|
| 19134 |
int |
| 19135 |
main () |
| 19136 |
{ |
| 19137 |
|
| 19138 |
; |
| 19139 |
return 0; |
| 19140 |
} |
| 19141 |
_ACEOF |
| 19142 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 19143 |
ax_cv_check_cflags___std_gnu99=yes |
| 19144 |
else |
| 19145 |
ax_cv_check_cflags___std_gnu99=no |
| 19146 |
fi |
| 19147 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19148 |
CFLAGS=$ax_check_save_flags |
| 19149 |
fi |
| 19150 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___std_gnu99" >&5 |
| 19151 |
$as_echo "$ax_cv_check_cflags___std_gnu99" >&6; } |
| 19152 |
if test "x$ax_cv_check_cflags___std_gnu99" = xyes; then : |
| 19153 |
c99_ok=yes && CFLAGS="$CFLAGS -std=gnu99" |
| 19154 |
else |
| 19155 |
c99_ok=no |
| 19156 |
fi |
| 19157 |
|
| 19158 |
|
| 19159 |
|
| 19160 |
fi |
| 19161 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19162 |
if test "$c99_ok" = "no"; then |
| 19163 |
as_fn_error $? "cannot build C99 programs correctly" "$LINENO" 5 |
| 19164 |
else |
| 19165 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19166 |
$as_echo "yes" >&6; } |
| 19167 |
fi |
| 19168 |
|
| 19169 |
|
| 19170 |
|
| 19171 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t and gid_t data sizes)" >&5 |
| 19172 |
$as_echo_n "checking for uid_t and gid_t data sizes)... " >&6; } |
| 19173 |
if test "$cross_compiling" = yes; then : |
| 19174 |
uid_t_size_ok=yes |
| 19175 |
else |
| 19176 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19177 |
/* end confdefs.h. */ |
| 19178 |
|
| 19179 |
#include <inttypes.h> |
| 19180 |
#include <sys/types.h> |
| 19181 |
int main(int argc, char **argv) |
| 19182 |
{ |
| 19183 |
if (sizeof(uid_t) != sizeof(uint32_t) || |
| 19184 |
sizeof(gid_t) != sizeof(uint32_t)) |
| 19185 |
return -1; |
| 19186 |
return 0; |
| 19187 |
} |
| 19188 |
|
| 19189 |
_ACEOF |
| 19190 |
if ac_fn_c_try_run "$LINENO"; then : |
| 19191 |
uid_t_size_ok=yes |
| 19192 |
else |
| 19193 |
uid_t_size_ok=no |
| 19194 |
fi |
| 19195 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 19196 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19197 |
fi |
| 19198 |
|
| 19199 |
|
| 19200 |
if test "$uid_t_size_ok" = "no"; then |
| 19201 |
as_fn_error $? "unexpected size for uid_t or gid_t" "$LINENO" 5 |
| 19202 |
else |
| 19203 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19204 |
$as_echo "yes" >&6; } |
| 19205 |
fi |
| 19206 |
|
| 19207 |
|
| 19208 |
|
| 19209 |
|
| 19210 |
_x_ac_json_dirs="/usr /usr/local" |
| 19211 |
_x_ac_json_libs="lib64 lib" |
| 19212 |
|
| 19213 |
|
| 19214 |
# Check whether --with-json was given. |
| 19215 |
if test "${with_json+set}" = set; then : |
| 19216 |
withval=$with_json; if test "x$with_json" != xno; then : |
| 19217 |
_x_ac_json_dirs="$with_json $_x_ac_json_dirs" |
| 19218 |
fi |
| 19219 |
fi |
| 19220 |
|
| 19221 |
|
| 19222 |
if test "x$with_json" = xno; then |
| 19223 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for json disabled" >&5 |
| 19224 |
$as_echo "$as_me: WARNING: support for json disabled" >&2;} |
| 19225 |
else |
| 19226 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for json installation" >&5 |
| 19227 |
$as_echo_n "checking for json installation... " >&6; } |
| 19228 |
if ${x_ac_cv_json_dir+:} false; then : |
| 19229 |
$as_echo_n "(cached) " >&6 |
| 19230 |
else |
| 19231 |
|
| 19232 |
for d in $_x_ac_json_dirs; do |
| 19233 |
test -d "$d" || continue |
| 19234 |
test -d "$d/include" || continue |
| 19235 |
test -f "$d/include/json-c/json_object.h" || test -f "$d/include/json/json_object.h" || continue |
| 19236 |
for bit in $_x_ac_json_libs; do |
| 19237 |
test -d "$d/$bit" || continue |
| 19238 |
_x_ac_json_libs_save="$LIBS" |
| 19239 |
LIBS="-L$d/$bit -ljson-c $LIBS" |
| 19240 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19241 |
/* end confdefs.h. */ |
| 19242 |
|
| 19243 |
/* Override any GCC internal prototype to avoid an error. |
| 19244 |
Use char because int might match the return type of a GCC |
| 19245 |
builtin and then its argument prototype would still apply. */ |
| 19246 |
#ifdef __cplusplus |
| 19247 |
extern "C" |
| 19248 |
#endif |
| 19249 |
char json_tokener_parse (); |
| 19250 |
int |
| 19251 |
main () |
| 19252 |
{ |
| 19253 |
return json_tokener_parse (); |
| 19254 |
; |
| 19255 |
return 0; |
| 19256 |
} |
| 19257 |
_ACEOF |
| 19258 |
if ac_fn_c_try_link "$LINENO"; then : |
| 19259 |
x_ac_cv_json_dir=$d |
| 19260 |
fi |
| 19261 |
rm -f core conftest.err conftest.$ac_objext \ |
| 19262 |
conftest$ac_exeext conftest.$ac_ext |
| 19263 |
LIBS="$_x_ac_json_libs_save" |
| 19264 |
test -n "$x_ac_cv_json_dir" && break |
| 19265 |
done |
| 19266 |
test -n "$x_ac_cv_json_dir" && break |
| 19267 |
done |
| 19268 |
|
| 19269 |
fi |
| 19270 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $x_ac_cv_json_dir" >&5 |
| 19271 |
$as_echo "$x_ac_cv_json_dir" >&6; } |
| 19272 |
|
| 19273 |
if test -z "$x_ac_cv_json_dir"; then |
| 19274 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to locate json parser library" >&5 |
| 19275 |
$as_echo "$as_me: WARNING: unable to locate json parser library" >&2;} |
| 19276 |
else |
| 19277 |
if test -f "$d/include/json-c/json_object.h" ; then |
| 19278 |
|
| 19279 |
$as_echo "#define HAVE_JSON_C_INC 1" >>confdefs.h |
| 19280 |
|
| 19281 |
fi |
| 19282 |
if test -f "$d/include/json/json_object.h" ; then |
| 19283 |
|
| 19284 |
$as_echo "#define HAVE_JSON_INC 1" >>confdefs.h |
| 19285 |
|
| 19286 |
fi |
| 19287 |
|
| 19288 |
$as_echo "#define HAVE_JSON 1" >>confdefs.h |
| 19289 |
|
| 19290 |
JSON_CPPFLAGS="-I$x_ac_cv_json_dir/include" |
| 19291 |
JSON_LDFLAGS="-L$x_ac_cv_json_dir/$bit -ljson-c" |
| 19292 |
fi |
| 19293 |
|
| 19294 |
|
| 19295 |
|
| 19296 |
fi |
| 19297 |
|
| 19298 |
if test -n "$x_ac_cv_json_dir"; then |
| 19299 |
WITH_JSON_PARSER_TRUE= |
| 19300 |
WITH_JSON_PARSER_FALSE='#' |
| 19301 |
else |
| 19302 |
WITH_JSON_PARSER_TRUE='#' |
| 19303 |
WITH_JSON_PARSER_FALSE= |
| 19304 |
fi |
| 19305 |
|
| 19306 |
|
| 19307 |
|
| 19308 |
if test $ac_cv_c_compiler_gnu = yes; then |
| 19309 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
| 19310 |
$as_echo_n "checking whether $CC needs -traditional... " >&6; } |
| 19311 |
if ${ac_cv_prog_gcc_traditional+:} false; then : |
| 19312 |
$as_echo_n "(cached) " >&6 |
| 19313 |
else |
| 19314 |
ac_pattern="Autoconf.*'x'" |
| 19315 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19316 |
/* end confdefs.h. */ |
| 19317 |
#include <sgtty.h> |
| 19318 |
Autoconf TIOCGETP |
| 19319 |
_ACEOF |
| 19320 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19321 |
$EGREP "$ac_pattern" >/dev/null 2>&1; then : |
| 19322 |
ac_cv_prog_gcc_traditional=yes |
| 19323 |
else |
| 19324 |
ac_cv_prog_gcc_traditional=no |
| 19325 |
fi |
| 19326 |
rm -f conftest* |
| 19327 |
|
| 19328 |
|
| 19329 |
if test $ac_cv_prog_gcc_traditional = no; then |
| 19330 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19331 |
/* end confdefs.h. */ |
| 19332 |
#include <termio.h> |
| 19333 |
Autoconf TCGETA |
| 19334 |
_ACEOF |
| 19335 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19336 |
$EGREP "$ac_pattern" >/dev/null 2>&1; then : |
| 19337 |
ac_cv_prog_gcc_traditional=yes |
| 19338 |
fi |
| 19339 |
rm -f conftest* |
| 19340 |
|
| 19341 |
fi |
| 19342 |
fi |
| 19343 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
| 19344 |
$as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
| 19345 |
if test $ac_cv_prog_gcc_traditional = yes; then |
| 19346 |
CC="$CC -traditional" |
| 19347 |
fi |
| 19348 |
fi |
| 19349 |
|
| 19350 |
|
| 19351 |
|
| 19352 |
|
| 19353 |
|
| 19354 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzll" >&5 |
| 19355 |
$as_echo_n "checking for __builtin_clzll... " >&6; } |
| 19356 |
if ${ax_cv_have___builtin_clzll+:} false; then : |
| 19357 |
$as_echo_n "(cached) " >&6 |
| 19358 |
else |
| 19359 |
|
| 19360 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19361 |
/* end confdefs.h. */ |
| 19362 |
|
| 19363 |
int |
| 19364 |
main () |
| 19365 |
{ |
| 19366 |
|
| 19367 |
__builtin_clzll(0) |
| 19368 |
|
| 19369 |
; |
| 19370 |
return 0; |
| 19371 |
} |
| 19372 |
_ACEOF |
| 19373 |
if ac_fn_c_try_link "$LINENO"; then : |
| 19374 |
ax_cv_have___builtin_clzll=yes |
| 19375 |
else |
| 19376 |
ax_cv_have___builtin_clzll=no |
| 19377 |
fi |
| 19378 |
rm -f core conftest.err conftest.$ac_objext \ |
| 19379 |
conftest$ac_exeext conftest.$ac_ext |
| 19380 |
|
| 19381 |
fi |
| 19382 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_clzll" >&5 |
| 19383 |
$as_echo "$ax_cv_have___builtin_clzll" >&6; } |
| 19384 |
|
| 19385 |
if test yes = $ax_cv_have___builtin_clzll; then : |
| 19386 |
|
| 19387 |
cat >>confdefs.h <<_ACEOF |
| 19388 |
#define HAVE___BUILTIN_CLZLL 1 |
| 19389 |
_ACEOF |
| 19390 |
|
| 19391 |
fi |
| 19392 |
|
| 19393 |
|
| 19394 |
|
| 19395 |
|
| 19396 |
|
| 19397 |
|
| 19398 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctzll" >&5 |
| 19399 |
$as_echo_n "checking for __builtin_ctzll... " >&6; } |
| 19400 |
if ${ax_cv_have___builtin_ctzll+:} false; then : |
| 19401 |
$as_echo_n "(cached) " >&6 |
| 19402 |
else |
| 19403 |
|
| 19404 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19405 |
/* end confdefs.h. */ |
| 19406 |
|
| 19407 |
int |
| 19408 |
main () |
| 19409 |
{ |
| 19410 |
|
| 19411 |
__builtin_ctzll(0) |
| 19412 |
|
| 19413 |
; |
| 19414 |
return 0; |
| 19415 |
} |
| 19416 |
_ACEOF |
| 19417 |
if ac_fn_c_try_link "$LINENO"; then : |
| 19418 |
ax_cv_have___builtin_ctzll=yes |
| 19419 |
else |
| 19420 |
ax_cv_have___builtin_ctzll=no |
| 19421 |
fi |
| 19422 |
rm -f core conftest.err conftest.$ac_objext \ |
| 19423 |
conftest$ac_exeext conftest.$ac_ext |
| 19424 |
|
| 19425 |
fi |
| 19426 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_ctzll" >&5 |
| 19427 |
$as_echo "$ax_cv_have___builtin_ctzll" >&6; } |
| 19428 |
|
| 19429 |
if test yes = $ax_cv_have___builtin_ctzll; then : |
| 19430 |
|
| 19431 |
cat >>confdefs.h <<_ACEOF |
| 19432 |
#define HAVE___BUILTIN_CTZLL 1 |
| 19433 |
_ACEOF |
| 19434 |
|
| 19435 |
fi |
| 19436 |
|
| 19437 |
|
| 19438 |
|
| 19439 |
|
| 19440 |
|
| 19441 |
|
| 19442 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcountll" >&5 |
| 19443 |
$as_echo_n "checking for __builtin_popcountll... " >&6; } |
| 19444 |
if ${ax_cv_have___builtin_popcountll+:} false; then : |
| 19445 |
$as_echo_n "(cached) " >&6 |
| 19446 |
else |
| 19447 |
|
| 19448 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19449 |
/* end confdefs.h. */ |
| 19450 |
|
| 19451 |
int |
| 19452 |
main () |
| 19453 |
{ |
| 19454 |
|
| 19455 |
__builtin_popcountll(0) |
| 19456 |
|
| 19457 |
; |
| 19458 |
return 0; |
| 19459 |
} |
| 19460 |
_ACEOF |
| 19461 |
if ac_fn_c_try_link "$LINENO"; then : |
| 19462 |
ax_cv_have___builtin_popcountll=yes |
| 19463 |
else |
| 19464 |
ax_cv_have___builtin_popcountll=no |
| 19465 |
fi |
| 19466 |
rm -f core conftest.err conftest.$ac_objext \ |
| 19467 |
conftest$ac_exeext conftest.$ac_ext |
| 19468 |
|
| 19469 |
fi |
| 19470 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_popcountll" >&5 |
| 19471 |
$as_echo "$ax_cv_have___builtin_popcountll" >&6; } |
| 19472 |
|
| 19473 |
if test yes = $ax_cv_have___builtin_popcountll; then : |
| 19474 |
|
| 19475 |
cat >>confdefs.h <<_ACEOF |
| 19476 |
#define HAVE___BUILTIN_POPCOUNTLL 1 |
| 19477 |
_ACEOF |
| 19478 |
|
| 19479 |
fi |
| 19480 |
|
| 19481 |
|
| 19482 |
|
| 19483 |
|
| 19484 |
|
| 19485 |
ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" |
| 19486 |
if test "x$ac_cv_have_decl_strerror_r" = xyes; then : |
| 19487 |
ac_have_decl=1 |
| 19488 |
else |
| 19489 |
ac_have_decl=0 |
| 19490 |
fi |
| 19491 |
|
| 19492 |
cat >>confdefs.h <<_ACEOF |
| 19493 |
#define HAVE_DECL_STRERROR_R $ac_have_decl |
| 19494 |
_ACEOF |
| 19495 |
|
| 19496 |
for ac_func in strerror_r |
| 19497 |
do : |
| 19498 |
ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" |
| 19499 |
if test "x$ac_cv_func_strerror_r" = xyes; then : |
| 19500 |
cat >>confdefs.h <<_ACEOF |
| 19501 |
#define HAVE_STRERROR_R 1 |
| 19502 |
_ACEOF |
| 19503 |
|
| 19504 |
fi |
| 19505 |
done |
| 19506 |
|
| 19507 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 |
| 19508 |
$as_echo_n "checking whether strerror_r returns char *... " >&6; } |
| 19509 |
if ${ac_cv_func_strerror_r_char_p+:} false; then : |
| 19510 |
$as_echo_n "(cached) " >&6 |
| 19511 |
else |
| 19512 |
|
| 19513 |
ac_cv_func_strerror_r_char_p=no |
| 19514 |
if test $ac_cv_have_decl_strerror_r = yes; then |
| 19515 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19516 |
/* end confdefs.h. */ |
| 19517 |
$ac_includes_default |
| 19518 |
int |
| 19519 |
main () |
| 19520 |
{ |
| 19521 |
|
| 19522 |
char buf[100]; |
| 19523 |
char x = *strerror_r (0, buf, sizeof buf); |
| 19524 |
char *p = strerror_r (0, buf, sizeof buf); |
| 19525 |
return !p || x; |
| 19526 |
|
| 19527 |
; |
| 19528 |
return 0; |
| 19529 |
} |
| 19530 |
_ACEOF |
| 19531 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 19532 |
ac_cv_func_strerror_r_char_p=yes |
| 19533 |
fi |
| 19534 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19535 |
else |
| 19536 |
# strerror_r is not declared. Choose between |
| 19537 |
# systems that have relatively inaccessible declarations for the |
| 19538 |
# function. BeOS and DEC UNIX 4.0 fall in this category, but the |
| 19539 |
# former has a strerror_r that returns char*, while the latter |
| 19540 |
# has a strerror_r that returns `int'. |
| 19541 |
# This test should segfault on the DEC system. |
| 19542 |
if test "$cross_compiling" = yes; then : |
| 19543 |
: |
| 19544 |
else |
| 19545 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19546 |
/* end confdefs.h. */ |
| 19547 |
$ac_includes_default |
| 19548 |
extern char *strerror_r (); |
| 19549 |
int |
| 19550 |
main () |
| 19551 |
{ |
| 19552 |
char buf[100]; |
| 19553 |
char x = *strerror_r (0, buf, sizeof buf); |
| 19554 |
return ! isalpha (x); |
| 19555 |
; |
| 19556 |
return 0; |
| 19557 |
} |
| 19558 |
_ACEOF |
| 19559 |
if ac_fn_c_try_run "$LINENO"; then : |
| 19560 |
ac_cv_func_strerror_r_char_p=yes |
| 19561 |
fi |
| 19562 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 19563 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19564 |
fi |
| 19565 |
|
| 19566 |
fi |
| 19567 |
|
| 19568 |
fi |
| 19569 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 |
| 19570 |
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } |
| 19571 |
if test $ac_cv_func_strerror_r_char_p = yes; then |
| 19572 |
|
| 19573 |
$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h |
| 19574 |
|
| 19575 |
fi |
| 19576 |
|
| 19577 |
for ac_func in \ |
| 19578 |
fdatasync \ |
| 19579 |
hstrerror \ |
| 19580 |
strerror \ |
| 19581 |
mtrace \ |
| 19582 |
strndup \ |
| 19583 |
strlcpy \ |
| 19584 |
strsignal \ |
| 19585 |
inet_aton \ |
| 19586 |
inet_ntop \ |
| 19587 |
inet_pton \ |
| 19588 |
setproctitle \ |
| 19589 |
sysctlbyname \ |
| 19590 |
cfmakeraw \ |
| 19591 |
setresuid \ |
| 19592 |
get_current_dir_name \ |
| 19593 |
faccessat \ |
| 19594 |
eaccess \ |
| 19595 |
statvfs \ |
| 19596 |
statfs \ |
| 19597 |
|
| 19598 |
do : |
| 19599 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19600 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 19601 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 19602 |
cat >>confdefs.h <<_ACEOF |
| 19603 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 19604 |
_ACEOF |
| 19605 |
|
| 19606 |
fi |
| 19607 |
done |
| 19608 |
|
| 19609 |
|
| 19610 |
ac_fn_c_check_decl "$LINENO" "hstrerror" "ac_cv_have_decl_hstrerror" "$ac_includes_default" |
| 19611 |
if test "x$ac_cv_have_decl_hstrerror" = xyes; then : |
| 19612 |
ac_have_decl=1 |
| 19613 |
else |
| 19614 |
ac_have_decl=0 |
| 19615 |
fi |
| 19616 |
|
| 19617 |
cat >>confdefs.h <<_ACEOF |
| 19618 |
#define HAVE_DECL_HSTRERROR $ac_have_decl |
| 19619 |
_ACEOF |
| 19620 |
ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default" |
| 19621 |
if test "x$ac_cv_have_decl_strsignal" = xyes; then : |
| 19622 |
ac_have_decl=1 |
| 19623 |
else |
| 19624 |
ac_have_decl=0 |
| 19625 |
fi |
| 19626 |
|
| 19627 |
cat >>confdefs.h <<_ACEOF |
| 19628 |
#define HAVE_DECL_STRSIGNAL $ac_have_decl |
| 19629 |
_ACEOF |
| 19630 |
ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default" |
| 19631 |
if test "x$ac_cv_have_decl_sys_siglist" = xyes; then : |
| 19632 |
ac_have_decl=1 |
| 19633 |
else |
| 19634 |
ac_have_decl=0 |
| 19635 |
fi |
| 19636 |
|
| 19637 |
cat >>confdefs.h <<_ACEOF |
| 19638 |
#define HAVE_DECL_SYS_SIGLIST $ac_have_decl |
| 19639 |
_ACEOF |
| 19640 |
|
| 19641 |
|
| 19642 |
case "$host" in |
| 19643 |
*-darwin*) |
| 19644 |
;; |
| 19645 |
*) |
| 19646 |
|
| 19647 |
|
| 19648 |
ac_ext=c |
| 19649 |
ac_cpp='$CPP $CPPFLAGS' |
| 19650 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19651 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19652 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19653 |
|
| 19654 |
ax_pthread_ok=no |
| 19655 |
|
| 19656 |
# We used to check for pthread.h first, but this fails if pthread.h |
| 19657 |
# requires special compiler flags (e.g. on True64 or Sequent). |
| 19658 |
# It gets checked for in the link test anyway. |
| 19659 |
|
| 19660 |
# First of all, check if the user has set any of the PTHREAD_LIBS, |
| 19661 |
# etcetera environment variables, and if threads linking works using |
| 19662 |
# them: |
| 19663 |
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then |
| 19664 |
save_CFLAGS="$CFLAGS" |
| 19665 |
CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 19666 |
save_LIBS="$LIBS" |
| 19667 |
LIBS="$PTHREAD_LIBS $LIBS" |
| 19668 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 |
| 19669 |
$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } |
| 19670 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19671 |
/* end confdefs.h. */ |
| 19672 |
|
| 19673 |
/* Override any GCC internal prototype to avoid an error. |
| 19674 |
Use char because int might match the return type of a GCC |
| 19675 |
builtin and then its argument prototype would still apply. */ |
| 19676 |
#ifdef __cplusplus |
| 19677 |
extern "C" |
| 19678 |
#endif |
| 19679 |
char pthread_join (); |
| 19680 |
int |
| 19681 |
main () |
| 19682 |
{ |
| 19683 |
return pthread_join (); |
| 19684 |
; |
| 19685 |
return 0; |
| 19686 |
} |
| 19687 |
_ACEOF |
| 19688 |
if ac_fn_c_try_link "$LINENO"; then : |
| 19689 |
ax_pthread_ok=yes |
| 19690 |
fi |
| 19691 |
rm -f core conftest.err conftest.$ac_objext \ |
| 19692 |
conftest$ac_exeext conftest.$ac_ext |
| 19693 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 19694 |
$as_echo "$ax_pthread_ok" >&6; } |
| 19695 |
if test x"$ax_pthread_ok" = xno; then |
| 19696 |
PTHREAD_LIBS="" |
| 19697 |
PTHREAD_CFLAGS="" |
| 19698 |
fi |
| 19699 |
LIBS="$save_LIBS" |
| 19700 |
CFLAGS="$save_CFLAGS" |
| 19701 |
fi |
| 19702 |
|
| 19703 |
# We must check for the threads library under a number of different |
| 19704 |
# names; the ordering is very important because some systems |
| 19705 |
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
| 19706 |
# libraries is broken (non-POSIX). |
| 19707 |
|
| 19708 |
# Create a list of thread flags to try. Items starting with a "-" are |
| 19709 |
# C compiler flags, and other items are library names, except for "none" |
| 19710 |
# which indicates that we try without any flags at all, and "pthread-config" |
| 19711 |
# which is a program returning the flags for the Pth emulation library. |
| 19712 |
|
| 19713 |
ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
| 19714 |
|
| 19715 |
# The ordering *is* (sometimes) important. Some notes on the |
| 19716 |
# individual items follow: |
| 19717 |
|
| 19718 |
# pthreads: AIX (must check this before -lpthread) |
| 19719 |
# none: in case threads are in libc; should be tried before -Kthread and |
| 19720 |
# other compiler flags to prevent continual compiler warnings |
| 19721 |
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
| 19722 |
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
| 19723 |
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
| 19724 |
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) |
| 19725 |
# -pthreads: Solaris/gcc |
| 19726 |
# -mthreads: Mingw32/gcc, Lynx/gcc |
| 19727 |
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
| 19728 |
# doesn't hurt to check since this sometimes defines pthreads too; |
| 19729 |
# also defines -D_REENTRANT) |
| 19730 |
# ... -mt is also the pthreads flag for HP/aCC |
| 19731 |
# pthread: Linux, etcetera |
| 19732 |
# --thread-safe: KAI C++ |
| 19733 |
# pthread-config: use pthread-config program (for GNU Pth library) |
| 19734 |
|
| 19735 |
case ${host_os} in |
| 19736 |
solaris*) |
| 19737 |
|
| 19738 |
# On Solaris (at least, for some versions), libc contains stubbed |
| 19739 |
# (non-functional) versions of the pthreads routines, so link-based |
| 19740 |
# tests will erroneously succeed. (We need to link with -pthreads/-mt/ |
| 19741 |
# -lpthread.) (The stubs are missing pthread_cleanup_push, or rather |
| 19742 |
# a function called by this macro, so we could check for that, but |
| 19743 |
# who knows whether they'll stub that too in a future libc.) So, |
| 19744 |
# we'll just look for -pthreads and -lpthread first: |
| 19745 |
|
| 19746 |
ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" |
| 19747 |
;; |
| 19748 |
|
| 19749 |
darwin*) |
| 19750 |
ax_pthread_flags="-pthread $ax_pthread_flags" |
| 19751 |
;; |
| 19752 |
esac |
| 19753 |
|
| 19754 |
if test x"$ax_pthread_ok" = xno; then |
| 19755 |
for flag in $ax_pthread_flags; do |
| 19756 |
|
| 19757 |
case $flag in |
| 19758 |
none) |
| 19759 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
| 19760 |
$as_echo_n "checking whether pthreads work without any flags... " >&6; } |
| 19761 |
;; |
| 19762 |
|
| 19763 |
-*) |
| 19764 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 |
| 19765 |
$as_echo_n "checking whether pthreads work with $flag... " >&6; } |
| 19766 |
PTHREAD_CFLAGS="$flag" |
| 19767 |
;; |
| 19768 |
|
| 19769 |
pthread-config) |
| 19770 |
# Extract the first word of "pthread-config", so it can be a program name with args. |
| 19771 |
set dummy pthread-config; ac_word=$2 |
| 19772 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 19773 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 19774 |
if ${ac_cv_prog_ax_pthread_config+:} false; then : |
| 19775 |
$as_echo_n "(cached) " >&6 |
| 19776 |
else |
| 19777 |
if test -n "$ax_pthread_config"; then |
| 19778 |
ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. |
| 19779 |
else |
| 19780 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19781 |
for as_dir in $PATH |
| 19782 |
do |
| 19783 |
IFS=$as_save_IFS |
| 19784 |
test -z "$as_dir" && as_dir=. |
| 19785 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 19786 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 19787 |
ac_cv_prog_ax_pthread_config="yes" |
| 19788 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19789 |
break 2 |
| 19790 |
fi |
| 19791 |
done |
| 19792 |
done |
| 19793 |
IFS=$as_save_IFS |
| 19794 |
|
| 19795 |
test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" |
| 19796 |
fi |
| 19797 |
fi |
| 19798 |
ax_pthread_config=$ac_cv_prog_ax_pthread_config |
| 19799 |
if test -n "$ax_pthread_config"; then |
| 19800 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 |
| 19801 |
$as_echo "$ax_pthread_config" >&6; } |
| 19802 |
else |
| 19803 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19804 |
$as_echo "no" >&6; } |
| 19805 |
fi |
| 19806 |
|
| 19807 |
|
| 19808 |
if test x"$ax_pthread_config" = xno; then continue; fi |
| 19809 |
PTHREAD_CFLAGS="`pthread-config --cflags`" |
| 19810 |
PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
| 19811 |
;; |
| 19812 |
|
| 19813 |
*) |
| 19814 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 |
| 19815 |
$as_echo_n "checking for the pthreads library -l$flag... " >&6; } |
| 19816 |
PTHREAD_LIBS="-l$flag" |
| 19817 |
;; |
| 19818 |
esac |
| 19819 |
|
| 19820 |
save_LIBS="$LIBS" |
| 19821 |
save_CFLAGS="$CFLAGS" |
| 19822 |
LIBS="$PTHREAD_LIBS $LIBS" |
| 19823 |
CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 19824 |
|
| 19825 |
# Check for various functions. We must include pthread.h, |
| 19826 |
# since some functions may be macros. (On the Sequent, we |
| 19827 |
# need a special flag -Kthread to make this header compile.) |
| 19828 |
# We check for pthread_join because it is in -lpthread on IRIX |
| 19829 |
# while pthread_create is in libc. We check for pthread_attr_init |
| 19830 |
# due to DEC craziness with -lpthreads. We check for |
| 19831 |
# pthread_cleanup_push because it is one of the few pthread |
| 19832 |
# functions on Solaris that doesn't have a non-functional libc stub. |
| 19833 |
# We try pthread_create on general principles. |
| 19834 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19835 |
/* end confdefs.h. */ |
| 19836 |
#include <pthread.h> |
| 19837 |
static void routine(void *a) { a = 0; } |
| 19838 |
static void *start_routine(void *a) { return a; } |
| 19839 |
int |
| 19840 |
main () |
| 19841 |
{ |
| 19842 |
pthread_t th; pthread_attr_t attr; |
| 19843 |
pthread_create(&th, 0, start_routine, 0); |
| 19844 |
pthread_join(th, 0); |
| 19845 |
pthread_attr_init(&attr); |
| 19846 |
pthread_cleanup_push(routine, 0); |
| 19847 |
pthread_cleanup_pop(0) /* ; */ |
| 19848 |
; |
| 19849 |
return 0; |
| 19850 |
} |
| 19851 |
_ACEOF |
| 19852 |
if ac_fn_c_try_link "$LINENO"; then : |
| 19853 |
ax_pthread_ok=yes |
| 19854 |
fi |
| 19855 |
rm -f core conftest.err conftest.$ac_objext \ |
| 19856 |
conftest$ac_exeext conftest.$ac_ext |
| 19857 |
|
| 19858 |
LIBS="$save_LIBS" |
| 19859 |
CFLAGS="$save_CFLAGS" |
| 19860 |
|
| 19861 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 19862 |
$as_echo "$ax_pthread_ok" >&6; } |
| 19863 |
if test "x$ax_pthread_ok" = xyes; then |
| 19864 |
break; |
| 19865 |
fi |
| 19866 |
|
| 19867 |
PTHREAD_LIBS="" |
| 19868 |
PTHREAD_CFLAGS="" |
| 19869 |
done |
| 19870 |
fi |
| 19871 |
|
| 19872 |
# Various other checks: |
| 19873 |
if test "x$ax_pthread_ok" = xyes; then |
| 19874 |
save_LIBS="$LIBS" |
| 19875 |
LIBS="$PTHREAD_LIBS $LIBS" |
| 19876 |
save_CFLAGS="$CFLAGS" |
| 19877 |
CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 19878 |
|
| 19879 |
# Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
| 19880 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 |
| 19881 |
$as_echo_n "checking for joinable pthread attribute... " >&6; } |
| 19882 |
attr_name=unknown |
| 19883 |
for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
| 19884 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19885 |
/* end confdefs.h. */ |
| 19886 |
#include <pthread.h> |
| 19887 |
int |
| 19888 |
main () |
| 19889 |
{ |
| 19890 |
int attr = $attr; return attr /* ; */ |
| 19891 |
; |
| 19892 |
return 0; |
| 19893 |
} |
| 19894 |
_ACEOF |
| 19895 |
if ac_fn_c_try_link "$LINENO"; then : |
| 19896 |
attr_name=$attr; break |
| 19897 |
fi |
| 19898 |
rm -f core conftest.err conftest.$ac_objext \ |
| 19899 |
conftest$ac_exeext conftest.$ac_ext |
| 19900 |
done |
| 19901 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 |
| 19902 |
$as_echo "$attr_name" >&6; } |
| 19903 |
if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then |
| 19904 |
|
| 19905 |
cat >>confdefs.h <<_ACEOF |
| 19906 |
#define PTHREAD_CREATE_JOINABLE $attr_name |
| 19907 |
_ACEOF |
| 19908 |
|
| 19909 |
fi |
| 19910 |
|
| 19911 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 |
| 19912 |
$as_echo_n "checking if more special flags are required for pthreads... " >&6; } |
| 19913 |
flag=no |
| 19914 |
case ${host_os} in |
| 19915 |
aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; |
| 19916 |
osf* | hpux*) flag="-D_REENTRANT";; |
| 19917 |
solaris*) |
| 19918 |
if test "$GCC" = "yes"; then |
| 19919 |
flag="-D_REENTRANT" |
| 19920 |
else |
| 19921 |
flag="-mt -D_REENTRANT" |
| 19922 |
fi |
| 19923 |
;; |
| 19924 |
esac |
| 19925 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 |
| 19926 |
$as_echo "${flag}" >&6; } |
| 19927 |
if test "x$flag" != xno; then |
| 19928 |
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
| 19929 |
fi |
| 19930 |
|
| 19931 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 |
| 19932 |
$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } |
| 19933 |
if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : |
| 19934 |
$as_echo_n "(cached) " >&6 |
| 19935 |
else |
| 19936 |
|
| 19937 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19938 |
/* end confdefs.h. */ |
| 19939 |
|
| 19940 |
#include <pthread.h> |
| 19941 |
int |
| 19942 |
main () |
| 19943 |
{ |
| 19944 |
int i = PTHREAD_PRIO_INHERIT; |
| 19945 |
; |
| 19946 |
return 0; |
| 19947 |
} |
| 19948 |
_ACEOF |
| 19949 |
if ac_fn_c_try_link "$LINENO"; then : |
| 19950 |
ax_cv_PTHREAD_PRIO_INHERIT=yes |
| 19951 |
else |
| 19952 |
ax_cv_PTHREAD_PRIO_INHERIT=no |
| 19953 |
fi |
| 19954 |
rm -f core conftest.err conftest.$ac_objext \ |
| 19955 |
conftest$ac_exeext conftest.$ac_ext |
| 19956 |
|
| 19957 |
fi |
| 19958 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 |
| 19959 |
$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } |
| 19960 |
if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : |
| 19961 |
|
| 19962 |
$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h |
| 19963 |
|
| 19964 |
fi |
| 19965 |
|
| 19966 |
LIBS="$save_LIBS" |
| 19967 |
CFLAGS="$save_CFLAGS" |
| 19968 |
|
| 19969 |
# More AIX lossage: compile with *_r variant |
| 19970 |
if test "x$GCC" != xyes; then |
| 19971 |
case $host_os in |
| 19972 |
aix*) |
| 19973 |
case "x/$CC" in #( |
| 19974 |
x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : |
| 19975 |
#handle absolute path differently from PATH based program lookup |
| 19976 |
case "x$CC" in #( |
| 19977 |
x/*) : |
| 19978 |
if as_fn_executable_p ${CC}_r; then : |
| 19979 |
PTHREAD_CC="${CC}_r" |
| 19980 |
fi ;; #( |
| 19981 |
*) : |
| 19982 |
for ac_prog in ${CC}_r |
| 19983 |
do |
| 19984 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 19985 |
set dummy $ac_prog; ac_word=$2 |
| 19986 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 19987 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 19988 |
if ${ac_cv_prog_PTHREAD_CC+:} false; then : |
| 19989 |
$as_echo_n "(cached) " >&6 |
| 19990 |
else |
| 19991 |
if test -n "$PTHREAD_CC"; then |
| 19992 |
ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 19993 |
else |
| 19994 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19995 |
for as_dir in $PATH |
| 19996 |
do |
| 19997 |
IFS=$as_save_IFS |
| 19998 |
test -z "$as_dir" && as_dir=. |
| 19999 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 20000 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 20001 |
ac_cv_prog_PTHREAD_CC="$ac_prog" |
| 20002 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20003 |
break 2 |
| 20004 |
fi |
| 20005 |
done |
| 20006 |
done |
| 20007 |
IFS=$as_save_IFS |
| 20008 |
|
| 20009 |
fi |
| 20010 |
fi |
| 20011 |
PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 20012 |
if test -n "$PTHREAD_CC"; then |
| 20013 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
| 20014 |
$as_echo "$PTHREAD_CC" >&6; } |
| 20015 |
else |
| 20016 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20017 |
$as_echo "no" >&6; } |
| 20018 |
fi |
| 20019 |
|
| 20020 |
|
| 20021 |
test -n "$PTHREAD_CC" && break |
| 20022 |
done |
| 20023 |
test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" |
| 20024 |
;; |
| 20025 |
esac ;; #( |
| 20026 |
*) : |
| 20027 |
;; |
| 20028 |
esac |
| 20029 |
;; |
| 20030 |
esac |
| 20031 |
fi |
| 20032 |
fi |
| 20033 |
|
| 20034 |
test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" |
| 20035 |
|
| 20036 |
|
| 20037 |
|
| 20038 |
|
| 20039 |
|
| 20040 |
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 20041 |
if test x"$ax_pthread_ok" = xyes; then |
| 20042 |
|
| 20043 |
$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h |
| 20044 |
|
| 20045 |
: |
| 20046 |
else |
| 20047 |
ax_pthread_ok=no |
| 20048 |
as_fn_error $? "Error: Cannot figure out how to use pthreads!" "$LINENO" 5 |
| 20049 |
fi |
| 20050 |
ac_ext=c |
| 20051 |
ac_cpp='$CPP $CPPFLAGS' |
| 20052 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20053 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20054 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20055 |
|
| 20056 |
|
| 20057 |
;; |
| 20058 |
esac |
| 20059 |
|
| 20060 |
LDFLAGS="$LDFLAGS " |
| 20061 |
CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 20062 |
LIBS="$PTHREAD_LIBS $LIBS" |
| 20063 |
|
| 20064 |
|
| 20065 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking System dimensions" >&5 |
| 20066 |
$as_echo_n "checking System dimensions... " >&6; } |
| 20067 |
|
| 20068 |
# Check whether --with-dimensions was given. |
| 20069 |
if test "${with_dimensions+set}" = set; then : |
| 20070 |
withval=$with_dimensions; if test `expr match "$withval" '[0-9]*$'` -gt 0; then |
| 20071 |
dimensions="$withval" |
| 20072 |
x_ac_dimensions=yes |
| 20073 |
fi |
| 20074 |
|
| 20075 |
else |
| 20076 |
x_ac_dimensions=no |
| 20077 |
|
| 20078 |
fi |
| 20079 |
|
| 20080 |
if test "$x_ac_dimensions" = yes; then |
| 20081 |
if test $dimensions -lt 1; then |
| 20082 |
as_fn_error $? "Invalid dimensions value $dimensions" "$LINENO" 5 |
| 20083 |
fi |
| 20084 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dimensions" >&5 |
| 20085 |
$as_echo "$dimensions" >&6; }; |
| 20086 |
|
| 20087 |
cat >>confdefs.h <<_ACEOF |
| 20088 |
#define SYSTEM_DIMENSIONS $dimensions |
| 20089 |
_ACEOF |
| 20090 |
|
| 20091 |
else |
| 20092 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 |
| 20093 |
$as_echo "not set" >&6; }; |
| 20094 |
fi |
| 20095 |
|
| 20096 |
|
| 20097 |
|
| 20098 |
|
| 20099 |
_x_ac_ofed_dirs="/usr /usr/local" |
| 20100 |
_x_ac_ofed_libs="lib64 lib" |
| 20101 |
|
| 20102 |
|
| 20103 |
# Check whether --with-ofed was given. |
| 20104 |
if test "${with_ofed+set}" = set; then : |
| 20105 |
withval=$with_ofed; if test "x$with_ofed" != xno; then : |
| 20106 |
_x_ac_ofed_dirs="$with_ofed $_x_ac_ofed_dirs" |
| 20107 |
fi |
| 20108 |
fi |
| 20109 |
|
| 20110 |
|
| 20111 |
if test "x$with_ofed" = xno; then |
| 20112 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for ofed disabled" >&5 |
| 20113 |
$as_echo "$as_me: WARNING: support for ofed disabled" >&2;} |
| 20114 |
else |
| 20115 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ofed installation" >&5 |
| 20116 |
$as_echo_n "checking for ofed installation... " >&6; } |
| 20117 |
if ${x_ac_cv_ofed_dir+:} false; then : |
| 20118 |
$as_echo_n "(cached) " >&6 |
| 20119 |
else |
| 20120 |
|
| 20121 |
for d in $_x_ac_ofed_dirs; do |
| 20122 |
test -d "$d" || continue |
| 20123 |
test -d "$d/include/infiniband" || continue |
| 20124 |
test -f "$d/include/infiniband/mad.h" || continue |
| 20125 |
for bit in $_x_ac_ofed_libs; do |
| 20126 |
test -d "$d/$bit" || continue |
| 20127 |
_x_ac_ofed_cppflags_save="$CPPFLAGS" |
| 20128 |
CPPFLAGS="-I$d/include $CPPFLAGS" |
| 20129 |
_x_ac_ofed_libs_save="$LIBS" |
| 20130 |
LIBS="-L$d/$bit -libmad -libumad $LIBS" |
| 20131 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20132 |
/* end confdefs.h. */ |
| 20133 |
|
| 20134 |
/* Override any GCC internal prototype to avoid an error. |
| 20135 |
Use char because int might match the return type of a GCC |
| 20136 |
builtin and then its argument prototype would still apply. */ |
| 20137 |
#ifdef __cplusplus |
| 20138 |
extern "C" |
| 20139 |
#endif |
| 20140 |
char mad_rpc_open_port (); |
| 20141 |
int |
| 20142 |
main () |
| 20143 |
{ |
| 20144 |
return mad_rpc_open_port (); |
| 20145 |
; |
| 20146 |
return 0; |
| 20147 |
} |
| 20148 |
_ACEOF |
| 20149 |
if ac_fn_c_try_link "$LINENO"; then : |
| 20150 |
x_ac_cv_ofed_dir=$d |
| 20151 |
fi |
| 20152 |
rm -f core conftest.err conftest.$ac_objext \ |
| 20153 |
conftest$ac_exeext conftest.$ac_ext |
| 20154 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20155 |
/* end confdefs.h. */ |
| 20156 |
|
| 20157 |
/* Override any GCC internal prototype to avoid an error. |
| 20158 |
Use char because int might match the return type of a GCC |
| 20159 |
builtin and then its argument prototype would still apply. */ |
| 20160 |
#ifdef __cplusplus |
| 20161 |
extern "C" |
| 20162 |
#endif |
| 20163 |
char pma_query_via (); |
| 20164 |
int |
| 20165 |
main () |
| 20166 |
{ |
| 20167 |
return pma_query_via (); |
| 20168 |
; |
| 20169 |
return 0; |
| 20170 |
} |
| 20171 |
_ACEOF |
| 20172 |
if ac_fn_c_try_link "$LINENO"; then : |
| 20173 |
have_pma_query_via=yes |
| 20174 |
else |
| 20175 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using old libmad" >&5 |
| 20176 |
$as_echo "Using old libmad" >&6; } |
| 20177 |
fi |
| 20178 |
rm -f core conftest.err conftest.$ac_objext \ |
| 20179 |
conftest$ac_exeext conftest.$ac_ext |
| 20180 |
CPPFLAGS="$_x_ac_ofed_cppflags_save" |
| 20181 |
LIBS="$_x_ac_ofed_libs_save" |
| 20182 |
test -n "$x_ac_cv_ofed_dir" && break |
| 20183 |
done |
| 20184 |
test -n "$x_ac_cv_ofed_dir" && break |
| 20185 |
done |
| 20186 |
|
| 20187 |
fi |
| 20188 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $x_ac_cv_ofed_dir" >&5 |
| 20189 |
$as_echo "$x_ac_cv_ofed_dir" >&6; } |
| 20190 |
|
| 20191 |
if test -z "$x_ac_cv_ofed_dir"; then |
| 20192 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to locate ofed installation" >&5 |
| 20193 |
$as_echo "$as_me: WARNING: unable to locate ofed installation" >&2;} |
| 20194 |
else |
| 20195 |
OFED_CPPFLAGS="-I$x_ac_cv_ofed_dir/include/infiniband" |
| 20196 |
if test "$ac_with_rpath" = "yes"; then |
| 20197 |
OFED_LDFLAGS="-Wl,-rpath -Wl,$x_ac_cv_ofed_dir/$bit -L$x_ac_cv_ofed_dir/$bit" |
| 20198 |
else |
| 20199 |
OFED_LDFLAGS="-L$x_ac_cv_ofed_dir/$bit" |
| 20200 |
fi |
| 20201 |
OFED_LIBS="-libmad -libumad" |
| 20202 |
|
| 20203 |
$as_echo "#define HAVE_OFED 1" >>confdefs.h |
| 20204 |
|
| 20205 |
if test ! -z "$have_pma_query_via" ; then |
| 20206 |
|
| 20207 |
$as_echo "#define HAVE_OFED_PMA_QUERY_VIA 1" >>confdefs.h |
| 20208 |
|
| 20209 |
fi |
| 20210 |
fi |
| 20211 |
|
| 20212 |
|
| 20213 |
|
| 20214 |
fi |
| 20215 |
|
| 20216 |
if test -n "$x_ac_cv_ofed_dir"; then |
| 20217 |
BUILD_OFED_TRUE= |
| 20218 |
BUILD_OFED_FALSE='#' |
| 20219 |
else |
| 20220 |
BUILD_OFED_TRUE='#' |
| 20221 |
BUILD_OFED_FALSE= |
| 20222 |
fi |
| 20223 |
|
| 20224 |
|
| 20225 |
|
| 20226 |
|
| 20227 |
|
| 20228 |
|
| 20229 |
|
| 20230 |
|
| 20231 |
|
| 20232 |
if test "" = "" ; then |
| 20233 |
: # Recognized value |
| 20234 |
elif test "" = "serial" ; then |
| 20235 |
: # Recognized value |
| 20236 |
elif test "" = "parallel"; then |
| 20237 |
: # Recognized value |
| 20238 |
else |
| 20239 |
as_fn_error $? " |
| 20240 |
Unrecognized value for AX_LIB_HDF5 within configure.ac. |
| 20241 |
If supplied, argument 1 must be either 'serial' or 'parallel'. |
| 20242 |
" "$LINENO" 5 |
| 20243 |
fi |
| 20244 |
|
| 20245 |
|
| 20246 |
# Check whether --with-hdf5 was given. |
| 20247 |
if test "${with_hdf5+set}" = set; then : |
| 20248 |
withval=$with_hdf5; if test "$withval" = "no"; then |
| 20249 |
with_hdf5="no" |
| 20250 |
elif test "$withval" = "yes"; then |
| 20251 |
with_hdf5="yes" |
| 20252 |
else |
| 20253 |
with_hdf5="yes" |
| 20254 |
H5CC="$withval" |
| 20255 |
fi |
| 20256 |
else |
| 20257 |
with_hdf5="yes" |
| 20258 |
|
| 20259 |
fi |
| 20260 |
|
| 20261 |
|
| 20262 |
HDF5_CC="" |
| 20263 |
HDF5_VERSION="" |
| 20264 |
HDF5_CFLAGS="" |
| 20265 |
HDF5_CPPFLAGS="" |
| 20266 |
HDF5_LDFLAGS="" |
| 20267 |
HDF5_LIBS="" |
| 20268 |
HDF5_FC="" |
| 20269 |
HDF5_FFLAGS="" |
| 20270 |
HDF5_FLIBS="" |
| 20271 |
HDF5_TYPE="" |
| 20272 |
|
| 20273 |
if test "$with_hdf5" = "yes"; then |
| 20274 |
if test -z "$H5CC"; then |
| 20275 |
for ac_prog in h5cc h5pcc |
| 20276 |
do |
| 20277 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 20278 |
set dummy $ac_prog; ac_word=$2 |
| 20279 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 20280 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 20281 |
if ${ac_cv_path_H5CC+:} false; then : |
| 20282 |
$as_echo_n "(cached) " >&6 |
| 20283 |
else |
| 20284 |
case $H5CC in |
| 20285 |
[\\/]* | ?:[\\/]*) |
| 20286 |
ac_cv_path_H5CC="$H5CC" # Let the user override the test with a path. |
| 20287 |
;; |
| 20288 |
*) |
| 20289 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20290 |
for as_dir in $PATH |
| 20291 |
do |
| 20292 |
IFS=$as_save_IFS |
| 20293 |
test -z "$as_dir" && as_dir=. |
| 20294 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 20295 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 20296 |
ac_cv_path_H5CC="$as_dir/$ac_word$ac_exec_ext" |
| 20297 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20298 |
break 2 |
| 20299 |
fi |
| 20300 |
done |
| 20301 |
done |
| 20302 |
IFS=$as_save_IFS |
| 20303 |
|
| 20304 |
;; |
| 20305 |
esac |
| 20306 |
fi |
| 20307 |
H5CC=$ac_cv_path_H5CC |
| 20308 |
if test -n "$H5CC"; then |
| 20309 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $H5CC" >&5 |
| 20310 |
$as_echo "$H5CC" >&6; } |
| 20311 |
else |
| 20312 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20313 |
$as_echo "no" >&6; } |
| 20314 |
fi |
| 20315 |
|
| 20316 |
|
| 20317 |
test -n "$H5CC" && break |
| 20318 |
done |
| 20319 |
|
| 20320 |
else |
| 20321 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Using provided HDF5 C wrapper" >&5 |
| 20322 |
$as_echo_n "checking Using provided HDF5 C wrapper... " >&6; } |
| 20323 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $H5CC" >&5 |
| 20324 |
$as_echo "$H5CC" >&6; } |
| 20325 |
fi |
| 20326 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HDF5 type" >&5 |
| 20327 |
$as_echo_n "checking for HDF5 type... " >&6; } |
| 20328 |
case $H5CC in #( |
| 20329 |
*h5pcc) : |
| 20330 |
HDF5_TYPE=parallel ;; #( |
| 20331 |
*h5cc) : |
| 20332 |
HDF5_TYPE=serial ;; #( |
| 20333 |
*) : |
| 20334 |
HDF5_TYPE=neither ;; |
| 20335 |
esac |
| 20336 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDF5_TYPE" >&5 |
| 20337 |
$as_echo "$HDF5_TYPE" >&6; } |
| 20338 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HDF5 libraries" >&5 |
| 20339 |
$as_echo_n "checking for HDF5 libraries... " >&6; } |
| 20340 |
if test ! -f "$H5CC" || test ! -x "$H5CC"; then |
| 20341 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20342 |
$as_echo "no" >&6; } |
| 20343 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
| 20344 |
Unable to locate HDF5 compilation helper scripts 'h5cc' or 'h5pcc'. |
| 20345 |
Please specify --with-hdf5=<LOCATION> as the full path to h5cc or h5pcc. |
| 20346 |
HDF5 support is being disabled (equivalent to --with-hdf5=no). |
| 20347 |
" >&5 |
| 20348 |
$as_echo "$as_me: WARNING: |
| 20349 |
Unable to locate HDF5 compilation helper scripts 'h5cc' or 'h5pcc'. |
| 20350 |
Please specify --with-hdf5=<LOCATION> as the full path to h5cc or h5pcc. |
| 20351 |
HDF5 support is being disabled (equivalent to --with-hdf5=no). |
| 20352 |
" >&2;} |
| 20353 |
with_hdf5="no" |
| 20354 |
with_hdf5_fortran="no" |
| 20355 |
else |
| 20356 |
HDF5_SHOW=$(eval $H5CC -show) |
| 20357 |
|
| 20358 |
HDF5_CC=$(eval $H5CC -show | $AWK '{print $1}') |
| 20359 |
if test "$HDF5_CC" = "ccache"; then |
| 20360 |
HDF5_CC=$(eval $H5CC -show | $AWK '{print $2}') |
| 20361 |
fi |
| 20362 |
|
| 20363 |
|
| 20364 |
HDF5_VERSION=$(eval $H5CC -showconfig | $GREP 'HDF5 Version:' \ |
| 20365 |
| $AWK '{print $3}') |
| 20366 |
|
| 20367 |
HDF5_tmp_flags=$(eval $H5CC -showconfig \ |
| 20368 |
| $GREP 'FLAGS\|Extra libraries:' \ |
| 20369 |
| $AWK -F: '{printf("%s "), $2}' ) |
| 20370 |
|
| 20371 |
HDF5_tmp_inst=$(eval $H5CC -showconfig \ |
| 20372 |
| $GREP 'Installation point:' \ |
| 20373 |
| $AWK '{print $NF}' ) |
| 20374 |
|
| 20375 |
HDF5_CPPFLAGS="-I${HDF5_tmp_inst}/include" |
| 20376 |
|
| 20377 |
for arg in $HDF5_SHOW $HDF5_tmp_flags ; do |
| 20378 |
case "$arg" in |
| 20379 |
-I*) echo $HDF5_CPPFLAGS | $GREP -e "$arg" 2>&1 >/dev/null \ |
| 20380 |
|| HDF5_CPPFLAGS="$arg $HDF5_CPPFLAGS" |
| 20381 |
;; |
| 20382 |
-L*) echo $HDF5_LDFLAGS | $GREP -e "$arg" 2>&1 >/dev/null \ |
| 20383 |
|| HDF5_LDFLAGS="$arg $HDF5_LDFLAGS" |
| 20384 |
;; |
| 20385 |
-l*) echo $HDF5_LIBS | $GREP -e "$arg" 2>&1 >/dev/null \ |
| 20386 |
|| HDF5_LIBS="$arg $HDF5_LIBS" |
| 20387 |
;; |
| 20388 |
esac |
| 20389 |
done |
| 20390 |
|
| 20391 |
HDF5_LIBS="$HDF5_LIBS -lhdf5" |
| 20392 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $HDF5_VERSION)" >&5 |
| 20393 |
$as_echo "yes (version $HDF5_VERSION)" >&6; } |
| 20394 |
|
| 20395 |
ac_ext=c |
| 20396 |
ac_cpp='$CPP $CPPFLAGS' |
| 20397 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20398 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20399 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20400 |
|
| 20401 |
ax_lib_hdf5_save_CC=$CC |
| 20402 |
ax_lib_hdf5_save_CPPFLAGS=$CPPFLAGS |
| 20403 |
ax_lib_hdf5_save_LIBS=$LIBS |
| 20404 |
ax_lib_hdf5_save_LDFLAGS=$LDFLAGS |
| 20405 |
CC=$HDF5_CC |
| 20406 |
CPPFLAGS=$HDF5_CPPFLAGS |
| 20407 |
LIBS=$HDF5_LIBS |
| 20408 |
LDFLAGS=$HDF5_LDFLAGS |
| 20409 |
ac_fn_c_check_header_mongrel "$LINENO" "hdf5.h" "ac_cv_header_hdf5_h" "$ac_includes_default" |
| 20410 |
if test "x$ac_cv_header_hdf5_h" = xyes; then : |
| 20411 |
ac_cv_hadf5_h=yes |
| 20412 |
else |
| 20413 |
ac_cv_hadf5_h=no |
| 20414 |
fi |
| 20415 |
|
| 20416 |
|
| 20417 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for H5Fcreate in -lhdf5" >&5 |
| 20418 |
$as_echo_n "checking for H5Fcreate in -lhdf5... " >&6; } |
| 20419 |
if ${ac_cv_lib_hdf5_H5Fcreate+:} false; then : |
| 20420 |
$as_echo_n "(cached) " >&6 |
| 20421 |
else |
| 20422 |
ac_check_lib_save_LIBS=$LIBS |
| 20423 |
LIBS="-lhdf5 $LIBS" |
| 20424 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20425 |
/* end confdefs.h. */ |
| 20426 |
|
| 20427 |
/* Override any GCC internal prototype to avoid an error. |
| 20428 |
Use char because int might match the return type of a GCC |
| 20429 |
builtin and then its argument prototype would still apply. */ |
| 20430 |
#ifdef __cplusplus |
| 20431 |
extern "C" |
| 20432 |
#endif |
| 20433 |
char H5Fcreate (); |
| 20434 |
int |
| 20435 |
main () |
| 20436 |
{ |
| 20437 |
return H5Fcreate (); |
| 20438 |
; |
| 20439 |
return 0; |
| 20440 |
} |
| 20441 |
_ACEOF |
| 20442 |
if ac_fn_c_try_link "$LINENO"; then : |
| 20443 |
ac_cv_lib_hdf5_H5Fcreate=yes |
| 20444 |
else |
| 20445 |
ac_cv_lib_hdf5_H5Fcreate=no |
| 20446 |
fi |
| 20447 |
rm -f core conftest.err conftest.$ac_objext \ |
| 20448 |
conftest$ac_exeext conftest.$ac_ext |
| 20449 |
LIBS=$ac_check_lib_save_LIBS |
| 20450 |
fi |
| 20451 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf5_H5Fcreate" >&5 |
| 20452 |
$as_echo "$ac_cv_lib_hdf5_H5Fcreate" >&6; } |
| 20453 |
if test "x$ac_cv_lib_hdf5_H5Fcreate" = xyes; then : |
| 20454 |
ac_cv_libhdf5=yes |
| 20455 |
else |
| 20456 |
ac_cv_libhdf5=no |
| 20457 |
fi |
| 20458 |
|
| 20459 |
if test "$ac_cv_hadf5_h" = "no" && test "$ac_cv_libhdf5" = "no" ; then |
| 20460 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to compile HDF5 test program" >&5 |
| 20461 |
$as_echo "$as_me: WARNING: Unable to compile HDF5 test program" >&2;} |
| 20462 |
fi |
| 20463 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lhdf5_hl" >&5 |
| 20464 |
$as_echo_n "checking for main in -lhdf5_hl... " >&6; } |
| 20465 |
if ${ac_cv_lib_hdf5_hl_main+:} false; then : |
| 20466 |
$as_echo_n "(cached) " >&6 |
| 20467 |
else |
| 20468 |
ac_check_lib_save_LIBS=$LIBS |
| 20469 |
LIBS="-lhdf5_hl $LIBS" |
| 20470 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20471 |
/* end confdefs.h. */ |
| 20472 |
|
| 20473 |
|
| 20474 |
int |
| 20475 |
main () |
| 20476 |
{ |
| 20477 |
return main (); |
| 20478 |
; |
| 20479 |
return 0; |
| 20480 |
} |
| 20481 |
_ACEOF |
| 20482 |
if ac_fn_c_try_link "$LINENO"; then : |
| 20483 |
ac_cv_lib_hdf5_hl_main=yes |
| 20484 |
else |
| 20485 |
ac_cv_lib_hdf5_hl_main=no |
| 20486 |
fi |
| 20487 |
rm -f core conftest.err conftest.$ac_objext \ |
| 20488 |
conftest$ac_exeext conftest.$ac_ext |
| 20489 |
LIBS=$ac_check_lib_save_LIBS |
| 20490 |
fi |
| 20491 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf5_hl_main" >&5 |
| 20492 |
$as_echo "$ac_cv_lib_hdf5_hl_main" >&6; } |
| 20493 |
if test "x$ac_cv_lib_hdf5_hl_main" = xyes; then : |
| 20494 |
HDF5_LIBS="$HDF5_LIBS -lhdf5_hl" |
| 20495 |
fi |
| 20496 |
ac_cv_lib_hdf5_hl=ac_cv_lib_hdf5_hl_main |
| 20497 |
|
| 20498 |
|
| 20499 |
CC=$ax_lib_hdf5_save_CC |
| 20500 |
CPPFLAGS=$ax_lib_hdf5_save_CPPFLAGS |
| 20501 |
LIBS=$ax_lib_hdf5_save_LIBS |
| 20502 |
LDFLAGS=$ax_lib_hdf5_save_LDFLAGS |
| 20503 |
ac_ext=c |
| 20504 |
ac_cpp='$CPP $CPPFLAGS' |
| 20505 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20506 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20507 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20508 |
|
| 20509 |
|
| 20510 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for matching HDF5 Fortran wrapper" >&5 |
| 20511 |
$as_echo_n "checking for matching HDF5 Fortran wrapper... " >&6; } |
| 20512 |
H5FC=$(eval echo -n $H5CC | $SED -n 's/cc$/fc/p') |
| 20513 |
if test -x "$H5FC"; then |
| 20514 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $H5FC" >&5 |
| 20515 |
$as_echo "$H5FC" >&6; } |
| 20516 |
with_hdf5_fortran="yes" |
| 20517 |
|
| 20518 |
|
| 20519 |
for arg in `$H5FC -show` |
| 20520 |
do |
| 20521 |
case "$arg" in #( |
| 20522 |
-I*) echo $HDF5_FFLAGS | $GREP -e "$arg" >/dev/null \ |
| 20523 |
|| HDF5_FFLAGS="$arg $HDF5_FFLAGS" |
| 20524 |
;;#( |
| 20525 |
-L*) echo $HDF5_FFLAGS | $GREP -e "$arg" >/dev/null \ |
| 20526 |
|| HDF5_FFLAGS="$arg $HDF5_FFLAGS" |
| 20527 |
echo $HDF5_FFLAGS | $GREP -e "-I${arg#-L}" >/dev/null \ |
| 20528 |
|| HDF5_FFLAGS="-I${arg#-L} $HDF5_FFLAGS" |
| 20529 |
;; |
| 20530 |
esac |
| 20531 |
done |
| 20532 |
|
| 20533 |
for arg in $HDF5_LIBS |
| 20534 |
do |
| 20535 |
case "$arg" in #( |
| 20536 |
-lhdf5_hl) HDF5_FLIBS="$HDF5_FLIBS -lhdf5hl_fortran $arg" |
| 20537 |
;; #( |
| 20538 |
-lhdf5) HDF5_FLIBS="$HDF5_FLIBS -lhdf5_fortran $arg" |
| 20539 |
;; #( |
| 20540 |
*) HDF5_FLIBS="$HDF5_FLIBS $arg" |
| 20541 |
;; |
| 20542 |
esac |
| 20543 |
done |
| 20544 |
else |
| 20545 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20546 |
$as_echo "no" >&6; } |
| 20547 |
with_hdf5_fortran="no" |
| 20548 |
fi |
| 20549 |
|
| 20550 |
|
| 20551 |
|
| 20552 |
|
| 20553 |
|
| 20554 |
|
| 20555 |
|
| 20556 |
|
| 20557 |
|
| 20558 |
|
| 20559 |
|
| 20560 |
|
| 20561 |
$as_echo "#define HAVE_HDF5 1" >>confdefs.h |
| 20562 |
|
| 20563 |
fi |
| 20564 |
fi |
| 20565 |
|
| 20566 |
if test "$with_hdf5" = "yes"; then |
| 20567 |
BUILD_HDF5_TRUE= |
| 20568 |
BUILD_HDF5_FALSE='#' |
| 20569 |
else |
| 20570 |
BUILD_HDF5_TRUE='#' |
| 20571 |
BUILD_HDF5_FALSE= |
| 20572 |
fi |
| 20573 |
|
| 20574 |
# Some older systems (Debian/Ubuntu/...) configure HDF5 with |
| 20575 |
# --with-default-api-version=v16 which creates problems for slurm |
| 20576 |
# because slurm uses the 1.8 API. By defining this CPP macro we get |
| 20577 |
# the 1.8 API. |
| 20578 |
|
| 20579 |
$as_echo "#define H5_NO_DEPRECATED_SYMBOLS 1" >>confdefs.h |
| 20580 |
|
| 20581 |
|
| 20582 |
# |
| 20583 |
# Handle user hints |
| 20584 |
# |
| 20585 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if zlib is wanted" >&5 |
| 20586 |
$as_echo_n "checking if zlib is wanted... " >&6; } |
| 20587 |
zlib_places="/usr/local /usr /opt/local /sw" |
| 20588 |
|
| 20589 |
# Check whether --with-zlib was given. |
| 20590 |
if test "${with_zlib+set}" = set; then : |
| 20591 |
withval=$with_zlib; if test "$withval" != no ; then |
| 20592 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20593 |
$as_echo "yes" >&6; } |
| 20594 |
if test -d "$withval" |
| 20595 |
then |
| 20596 |
zlib_places="$withval $zlib_places" |
| 20597 |
else |
| 20598 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $withval does not exist, checking usual places" >&5 |
| 20599 |
$as_echo "$as_me: WARNING: Sorry, $withval does not exist, checking usual places" >&2;} |
| 20600 |
fi |
| 20601 |
else |
| 20602 |
zlib_places= |
| 20603 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20604 |
$as_echo "no" >&6; } |
| 20605 |
fi |
| 20606 |
else |
| 20607 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20608 |
$as_echo "yes" >&6; } |
| 20609 |
fi |
| 20610 |
|
| 20611 |
|
| 20612 |
# |
| 20613 |
# Locate zlib, if wanted |
| 20614 |
# |
| 20615 |
if test -n "${zlib_places}" |
| 20616 |
then |
| 20617 |
# check the user supplied or any other more or less 'standard' place: |
| 20618 |
# Most UNIX systems : /usr/local and /usr |
| 20619 |
# MacPorts / Fink on OSX : /opt/local respectively /sw |
| 20620 |
for ZLIB_HOME in ${zlib_places} ; do |
| 20621 |
if test -f "${ZLIB_HOME}/include/zlib.h"; then break; fi |
| 20622 |
ZLIB_HOME="" |
| 20623 |
done |
| 20624 |
|
| 20625 |
ZLIB_OLD_LDFLAGS=$LDFLAGS |
| 20626 |
ZLIB_OLD_CPPFLAGS=$CPPFLAGS |
| 20627 |
if test -n "${ZLIB_HOME}"; then |
| 20628 |
LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib" |
| 20629 |
CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include" |
| 20630 |
fi |
| 20631 |
|
| 20632 |
ac_ext=c |
| 20633 |
ac_cpp='$CPP $CPPFLAGS' |
| 20634 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20635 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20636 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20637 |
|
| 20638 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 |
| 20639 |
$as_echo_n "checking for inflateEnd in -lz... " >&6; } |
| 20640 |
if ${ac_cv_lib_z_inflateEnd+:} false; then : |
| 20641 |
$as_echo_n "(cached) " >&6 |
| 20642 |
else |
| 20643 |
ac_check_lib_save_LIBS=$LIBS |
| 20644 |
LIBS="-lz $LIBS" |
| 20645 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20646 |
/* end confdefs.h. */ |
| 20647 |
|
| 20648 |
/* Override any GCC internal prototype to avoid an error. |
| 20649 |
Use char because int might match the return type of a GCC |
| 20650 |
builtin and then its argument prototype would still apply. */ |
| 20651 |
#ifdef __cplusplus |
| 20652 |
extern "C" |
| 20653 |
#endif |
| 20654 |
char inflateEnd (); |
| 20655 |
int |
| 20656 |
main () |
| 20657 |
{ |
| 20658 |
return inflateEnd (); |
| 20659 |
; |
| 20660 |
return 0; |
| 20661 |
} |
| 20662 |
_ACEOF |
| 20663 |
if ac_fn_c_try_link "$LINENO"; then : |
| 20664 |
ac_cv_lib_z_inflateEnd=yes |
| 20665 |
else |
| 20666 |
ac_cv_lib_z_inflateEnd=no |
| 20667 |
fi |
| 20668 |
rm -f core conftest.err conftest.$ac_objext \ |
| 20669 |
conftest$ac_exeext conftest.$ac_ext |
| 20670 |
LIBS=$ac_check_lib_save_LIBS |
| 20671 |
fi |
| 20672 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 |
| 20673 |
$as_echo "$ac_cv_lib_z_inflateEnd" >&6; } |
| 20674 |
if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : |
| 20675 |
zlib_cv_libz=yes |
| 20676 |
else |
| 20677 |
zlib_cv_libz=no |
| 20678 |
fi |
| 20679 |
|
| 20680 |
ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
| 20681 |
if test "x$ac_cv_header_zlib_h" = xyes; then : |
| 20682 |
zlib_cv_zlib_h=yes |
| 20683 |
else |
| 20684 |
zlib_cv_zlib_h=no |
| 20685 |
fi |
| 20686 |
|
| 20687 |
|
| 20688 |
ac_ext=c |
| 20689 |
ac_cpp='$CPP $CPPFLAGS' |
| 20690 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20691 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20692 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20693 |
|
| 20694 |
|
| 20695 |
# Restore variables |
| 20696 |
LDFLAGS="$ZLIB_OLD_LDFLAGS" |
| 20697 |
CPPFLAGS="$ZLIB_OLD_CPPFLAGS" |
| 20698 |
|
| 20699 |
if test "$zlib_cv_libz" = "yes" && test "$zlib_cv_zlib_h" = "yes" |
| 20700 |
then |
| 20701 |
# |
| 20702 |
# If both library and header were found, action-if-found |
| 20703 |
# |
| 20704 |
|
| 20705 |
ZLIB_CPPFLAGS="-I${ZLIB_HOME}/include" |
| 20706 |
ZLIB_LDFLAGS="-L${ZLIB_HOME}/lib" |
| 20707 |
ZLIB_LIBS="-lz" |
| 20708 |
|
| 20709 |
$as_echo "#define HAVE_LIBZ 1" >>confdefs.h |
| 20710 |
|
| 20711 |
|
| 20712 |
fi |
| 20713 |
fi |
| 20714 |
|
| 20715 |
|
| 20716 |
|
| 20717 |
|
| 20718 |
|
| 20719 |
# |
| 20720 |
# Handle user hints |
| 20721 |
# |
| 20722 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if lz4 is installed" >&5 |
| 20723 |
$as_echo_n "checking if lz4 is installed... " >&6; } |
| 20724 |
lz4_places="/usr/local /usr /opt/local /sw" |
| 20725 |
|
| 20726 |
# Check whether --with-lz4 was given. |
| 20727 |
if test "${with_lz4+set}" = set; then : |
| 20728 |
withval=$with_lz4; if test "$withval" != no ; then |
| 20729 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20730 |
$as_echo "yes" >&6; } |
| 20731 |
if test -d "$withval" |
| 20732 |
then |
| 20733 |
lz4_places="$withval $lz4_places" |
| 20734 |
else |
| 20735 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $withval does not exist, checking usual places" >&5 |
| 20736 |
$as_echo "$as_me: WARNING: $withval does not exist, checking usual places" >&2;} |
| 20737 |
fi |
| 20738 |
else |
| 20739 |
lz4_places= |
| 20740 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20741 |
$as_echo "no" >&6; } |
| 20742 |
fi |
| 20743 |
else |
| 20744 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ${lz4_places}" >&5 |
| 20745 |
$as_echo "yes ${lz4_places}" >&6; } |
| 20746 |
fi |
| 20747 |
|
| 20748 |
|
| 20749 |
# |
| 20750 |
# Locate lz4, if installed |
| 20751 |
# |
| 20752 |
if test -n "${lz4_places}" |
| 20753 |
then |
| 20754 |
# check the user supplied or any other more or less 'standard' place: |
| 20755 |
# Most UNIX systems : /usr/local and /usr |
| 20756 |
# MacPorts / Fink on OSX : /opt/local respectively /sw |
| 20757 |
for LZ4_HOME in ${lz4_places} ; do |
| 20758 |
if test -f "${LZ4_HOME}/include/lz4.h"; then break; fi |
| 20759 |
LZ4_HOME="" |
| 20760 |
done |
| 20761 |
|
| 20762 |
LZ4_OLD_LDFLAGS=$LDFLAGS |
| 20763 |
LZ4_OLD_CPPFLAGS=$CPPFLAGS |
| 20764 |
if test -n "${LZ4_HOME}"; then |
| 20765 |
LZ4_CPPFLAGS="-I${LZ4_HOME}/include" |
| 20766 |
LZ4_LDFLAGS="-L${LZ4_HOME}/lib" |
| 20767 |
LZ4_LIBS="-llz4" |
| 20768 |
|
| 20769 |
LDFLAGS="$LDFLAGS ${LZ4_LDFLAGS}" |
| 20770 |
CPPFLAGS="$CPPFLAGS ${LZ4_CPPFLAGS}" |
| 20771 |
fi |
| 20772 |
|
| 20773 |
ac_ext=c |
| 20774 |
ac_cpp='$CPP $CPPFLAGS' |
| 20775 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20776 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20777 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20778 |
|
| 20779 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress_destSize in -llz4" >&5 |
| 20780 |
$as_echo_n "checking for LZ4_compress_destSize in -llz4... " >&6; } |
| 20781 |
if ${ac_cv_lib_lz4_LZ4_compress_destSize+:} false; then : |
| 20782 |
$as_echo_n "(cached) " >&6 |
| 20783 |
else |
| 20784 |
ac_check_lib_save_LIBS=$LIBS |
| 20785 |
LIBS="-llz4 $LIBS" |
| 20786 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20787 |
/* end confdefs.h. */ |
| 20788 |
|
| 20789 |
/* Override any GCC internal prototype to avoid an error. |
| 20790 |
Use char because int might match the return type of a GCC |
| 20791 |
builtin and then its argument prototype would still apply. */ |
| 20792 |
#ifdef __cplusplus |
| 20793 |
extern "C" |
| 20794 |
#endif |
| 20795 |
char LZ4_compress_destSize (); |
| 20796 |
int |
| 20797 |
main () |
| 20798 |
{ |
| 20799 |
return LZ4_compress_destSize (); |
| 20800 |
; |
| 20801 |
return 0; |
| 20802 |
} |
| 20803 |
_ACEOF |
| 20804 |
if ac_fn_c_try_link "$LINENO"; then : |
| 20805 |
ac_cv_lib_lz4_LZ4_compress_destSize=yes |
| 20806 |
else |
| 20807 |
ac_cv_lib_lz4_LZ4_compress_destSize=no |
| 20808 |
fi |
| 20809 |
rm -f core conftest.err conftest.$ac_objext \ |
| 20810 |
conftest$ac_exeext conftest.$ac_ext |
| 20811 |
LIBS=$ac_check_lib_save_LIBS |
| 20812 |
fi |
| 20813 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress_destSize" >&5 |
| 20814 |
$as_echo "$ac_cv_lib_lz4_LZ4_compress_destSize" >&6; } |
| 20815 |
if test "x$ac_cv_lib_lz4_LZ4_compress_destSize" = xyes; then : |
| 20816 |
ac_cv_lz4=yes |
| 20817 |
else |
| 20818 |
ac_cv_lz4=no |
| 20819 |
fi |
| 20820 |
|
| 20821 |
ac_fn_c_check_header_mongrel "$LINENO" "lz4.h" "ac_cv_header_lz4_h" "$ac_includes_default" |
| 20822 |
if test "x$ac_cv_header_lz4_h" = xyes; then : |
| 20823 |
ac_cv_lz4_h=yes |
| 20824 |
else |
| 20825 |
ac_cv_lz4_h=no |
| 20826 |
fi |
| 20827 |
|
| 20828 |
|
| 20829 |
ac_ext=c |
| 20830 |
ac_cpp='$CPP $CPPFLAGS' |
| 20831 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20832 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20833 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20834 |
|
| 20835 |
|
| 20836 |
# Restore variables |
| 20837 |
LDFLAGS="$LZ4_OLD_LDFLAGS" |
| 20838 |
CPPFLAGS="$LZ4_OLD_CPPFLAGS" |
| 20839 |
|
| 20840 |
if test "$ac_cv_lz4" = "yes" && test "$ac_cv_lz4_h" = "yes" |
| 20841 |
then |
| 20842 |
# |
| 20843 |
# If both library and header were found, action-if-found |
| 20844 |
# |
| 20845 |
|
| 20846 |
|
| 20847 |
|
| 20848 |
|
| 20849 |
$as_echo "#define HAVE_LZ4 1" >>confdefs.h |
| 20850 |
|
| 20851 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LZ4 test program built properly." >&5 |
| 20852 |
$as_echo "LZ4 test program built properly." >&6; } |
| 20853 |
else |
| 20854 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LZ4 test program build failed." >&5 |
| 20855 |
$as_echo "$as_me: WARNING: LZ4 test program build failed." >&2;} |
| 20856 |
fi |
| 20857 |
else |
| 20858 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to locate LZ4 install." >&5 |
| 20859 |
$as_echo "$as_me: WARNING: unable to locate LZ4 install." >&2;} |
| 20860 |
fi |
| 20861 |
|
| 20862 |
|
| 20863 |
|
| 20864 |
_x_ac_hwloc_dirs="/usr /usr/local" |
| 20865 |
_x_ac_hwloc_libs="lib64 lib" |
| 20866 |
|
| 20867 |
|
| 20868 |
# Check whether --with-hwloc was given. |
| 20869 |
if test "${with_hwloc+set}" = set; then : |
| 20870 |
withval=$with_hwloc; if test "x$with_hwloc" != xno; then : |
| 20871 |
_x_ac_hwloc_dirs="$with_hwloc $_x_ac_hwloc_dirs" |
| 20872 |
fi |
| 20873 |
fi |
| 20874 |
|
| 20875 |
|
| 20876 |
if test "x$with_hwloc" = xno; then |
| 20877 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for hwloc disabled" >&5 |
| 20878 |
$as_echo "$as_me: WARNING: support for hwloc disabled" >&2;} |
| 20879 |
else |
| 20880 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc installation" >&5 |
| 20881 |
$as_echo_n "checking for hwloc installation... " >&6; } |
| 20882 |
if ${x_ac_cv_hwloc_dir+:} false; then : |
| 20883 |
$as_echo_n "(cached) " >&6 |
| 20884 |
else |
| 20885 |
|
| 20886 |
for d in $_x_ac_hwloc_dirs; do |
| 20887 |
test -d "$d" || continue |
| 20888 |
test -d "$d/include" || continue |
| 20889 |
test -f "$d/include/hwloc.h" || continue |
| 20890 |
for bit in $_x_ac_hwloc_libs; do |
| 20891 |
test -d "$d/$bit" || continue |
| 20892 |
_x_ac_hwloc_cppflags_save="$CPPFLAGS" |
| 20893 |
CPPFLAGS="-I$d/include $CPPFLAGS" |
| 20894 |
_x_ac_hwloc_libs_save="$LIBS" |
| 20895 |
LIBS="-L$d/$bit -lhwloc $LIBS" |
| 20896 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20897 |
/* end confdefs.h. */ |
| 20898 |
|
| 20899 |
/* Override any GCC internal prototype to avoid an error. |
| 20900 |
Use char because int might match the return type of a GCC |
| 20901 |
builtin and then its argument prototype would still apply. */ |
| 20902 |
#ifdef __cplusplus |
| 20903 |
extern "C" |
| 20904 |
#endif |
| 20905 |
char hwloc_topology_init (); |
| 20906 |
int |
| 20907 |
main () |
| 20908 |
{ |
| 20909 |
return hwloc_topology_init (); |
| 20910 |
; |
| 20911 |
return 0; |
| 20912 |
} |
| 20913 |
_ACEOF |
| 20914 |
if ac_fn_c_try_link "$LINENO"; then : |
| 20915 |
x_ac_cv_hwloc_dir=$d |
| 20916 |
fi |
| 20917 |
rm -f core conftest.err conftest.$ac_objext \ |
| 20918 |
conftest$ac_exeext conftest.$ac_ext |
| 20919 |
CPPFLAGS="$_x_ac_hwloc_cppflags_save" |
| 20920 |
LIBS="$_x_ac_hwloc_libs_save" |
| 20921 |
test -n "$x_ac_cv_hwloc_dir" && break |
| 20922 |
done |
| 20923 |
test -n "$x_ac_cv_hwloc_dir" && break |
| 20924 |
done |
| 20925 |
|
| 20926 |
fi |
| 20927 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $x_ac_cv_hwloc_dir" >&5 |
| 20928 |
$as_echo "$x_ac_cv_hwloc_dir" >&6; } |
| 20929 |
|
| 20930 |
if test -z "$x_ac_cv_hwloc_dir"; then |
| 20931 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to locate hwloc installation" >&5 |
| 20932 |
$as_echo "$as_me: WARNING: unable to locate hwloc installation" >&2;} |
| 20933 |
else |
| 20934 |
HWLOC_CPPFLAGS="-I$x_ac_cv_hwloc_dir/include" |
| 20935 |
if test "$ac_with_rpath" = "yes"; then |
| 20936 |
HWLOC_LDFLAGS="-Wl,-rpath -Wl,$x_ac_cv_hwloc_dir/$bit -L$x_ac_cv_hwloc_dir/$bit" |
| 20937 |
else |
| 20938 |
HWLOC_LDFLAGS="-L$x_ac_cv_hwloc_dir/$bit" |
| 20939 |
fi |
| 20940 |
HWLOC_LIBS="-lhwloc" |
| 20941 |
|
| 20942 |
$as_echo "#define HAVE_HWLOC 1" >>confdefs.h |
| 20943 |
|
| 20944 |
fi |
| 20945 |
|
| 20946 |
|
| 20947 |
|
| 20948 |
|
| 20949 |
fi |
| 20950 |
|
| 20951 |
|
| 20952 |
|
| 20953 |
# Check whether --with-nvml was given. |
| 20954 |
if test "${with_nvml+set}" = set; then : |
| 20955 |
withval=$with_nvml; |
| 20956 |
|
| 20957 |
fi |
| 20958 |
|
| 20959 |
|
| 20960 |
if test "x$with_nvml" = xno; then |
| 20961 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for nvml disabled" >&5 |
| 20962 |
$as_echo "$as_me: WARNING: support for nvml disabled" >&2;} |
| 20963 |
else |
| 20964 |
# /usr/local/cuda/include is the main location. Others are just in case |
| 20965 |
nvml_includes="-I/usr/local/cuda/include -I/usr/cuda/include" |
| 20966 |
# Check for NVML header and library in the default locations |
| 20967 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 20968 |
$as_echo "" >&6; } |
| 20969 |
cppflags_save="$CPPFLAGS" |
| 20970 |
CPPFLAGS="$nvml_includes $CPPFLAGS" |
| 20971 |
ac_fn_c_check_header_mongrel "$LINENO" "nvml.h" "ac_cv_header_nvml_h" "$ac_includes_default" |
| 20972 |
if test "x$ac_cv_header_nvml_h" = xyes; then : |
| 20973 |
ac_nvml_h=yes |
| 20974 |
else |
| 20975 |
ac_nvml_h=no |
| 20976 |
fi |
| 20977 |
|
| 20978 |
|
| 20979 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvmlInit in -lnvidia-ml" >&5 |
| 20980 |
$as_echo_n "checking for nvmlInit in -lnvidia-ml... " >&6; } |
| 20981 |
if ${ac_cv_lib_nvidia_ml_nvmlInit+:} false; then : |
| 20982 |
$as_echo_n "(cached) " >&6 |
| 20983 |
else |
| 20984 |
ac_check_lib_save_LIBS=$LIBS |
| 20985 |
LIBS="-lnvidia-ml $LIBS" |
| 20986 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20987 |
/* end confdefs.h. */ |
| 20988 |
|
| 20989 |
/* Override any GCC internal prototype to avoid an error. |
| 20990 |
Use char because int might match the return type of a GCC |
| 20991 |
builtin and then its argument prototype would still apply. */ |
| 20992 |
#ifdef __cplusplus |
| 20993 |
extern "C" |
| 20994 |
#endif |
| 20995 |
char nvmlInit (); |
| 20996 |
int |
| 20997 |
main () |
| 20998 |
{ |
| 20999 |
return nvmlInit (); |
| 21000 |
; |
| 21001 |
return 0; |
| 21002 |
} |
| 21003 |
_ACEOF |
| 21004 |
if ac_fn_c_try_link "$LINENO"; then : |
| 21005 |
ac_cv_lib_nvidia_ml_nvmlInit=yes |
| 21006 |
else |
| 21007 |
ac_cv_lib_nvidia_ml_nvmlInit=no |
| 21008 |
fi |
| 21009 |
rm -f core conftest.err conftest.$ac_objext \ |
| 21010 |
conftest$ac_exeext conftest.$ac_ext |
| 21011 |
LIBS=$ac_check_lib_save_LIBS |
| 21012 |
fi |
| 21013 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvidia_ml_nvmlInit" >&5 |
| 21014 |
$as_echo "$ac_cv_lib_nvidia_ml_nvmlInit" >&6; } |
| 21015 |
if test "x$ac_cv_lib_nvidia_ml_nvmlInit" = xyes; then : |
| 21016 |
ac_nvml=yes |
| 21017 |
else |
| 21018 |
ac_nvml=no |
| 21019 |
fi |
| 21020 |
|
| 21021 |
CPPFLAGS="$cppflags_save" |
| 21022 |
if test "$ac_nvml" = "yes" && test "$ac_nvml_h" = "yes"; then |
| 21023 |
NVML_LIBS="-lnvidia-ml" |
| 21024 |
NVML_CPPFLAGS="$nvml_includes" |
| 21025 |
|
| 21026 |
$as_echo "#define HAVE_NVML 1" >>confdefs.h |
| 21027 |
|
| 21028 |
else |
| 21029 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to locate libnvidia-ml.so and/or nvml.h" >&5 |
| 21030 |
$as_echo "$as_me: WARNING: unable to locate libnvidia-ml.so and/or nvml.h" >&2;} |
| 21031 |
fi |
| 21032 |
|
| 21033 |
|
| 21034 |
fi |
| 21035 |
if test "$ac_nvml" = "yes" && test "$ac_nvml_h" = "yes"; then |
| 21036 |
BUILD_NVML_TRUE= |
| 21037 |
BUILD_NVML_FALSE='#' |
| 21038 |
else |
| 21039 |
BUILD_NVML_TRUE='#' |
| 21040 |
BUILD_NVML_FALSE= |
| 21041 |
fi |
| 21042 |
|
| 21043 |
|
| 21044 |
|
| 21045 |
_x_ac_pmix_dirs="/usr /usr/local" |
| 21046 |
_x_ac_pmix_libs="lib64 lib" |
| 21047 |
|
| 21048 |
_x_ac_pmix_v1_found="0" |
| 21049 |
_x_ac_pmix_v2_found="0" |
| 21050 |
_x_ac_pmix_v3_found="0" |
| 21051 |
|
| 21052 |
|
| 21053 |
# Check whether --with-pmix was given. |
| 21054 |
if test "${with_pmix+set}" = set; then : |
| 21055 |
withval=$with_pmix; if test "x$with_pmix" != xno; then : |
| 21056 |
with_pmix=`echo $with_pmix | sed "s/:/ /g"` |
| 21057 |
_x_ac_pmix_dirs="$with_pmix" |
| 21058 |
fi |
| 21059 |
fi |
| 21060 |
|
| 21061 |
|
| 21062 |
if test "x$with_pmix" = xno; then |
| 21063 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for pmix disabled" >&5 |
| 21064 |
$as_echo "$as_me: WARNING: support for pmix disabled" >&2;} |
| 21065 |
else |
| 21066 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pmix installation" >&5 |
| 21067 |
$as_echo_n "checking for pmix installation... " >&6; } |
| 21068 |
if ${x_ac_cv_pmix_dir+:} false; then : |
| 21069 |
$as_echo_n "(cached) " >&6 |
| 21070 |
else |
| 21071 |
|
| 21072 |
for d in $_x_ac_pmix_dirs; do |
| 21073 |
test -d "$d" || continue |
| 21074 |
test -d "$d/include" || continue |
| 21075 |
test -f "$d/include/pmix/pmix_common.h" || test -f $d/include/pmix_common.h || continue |
| 21076 |
test -f "$d/include/pmix_server.h" || continue |
| 21077 |
for d1 in $_x_ac_pmix_libs; do |
| 21078 |
test -d "$d/$d1" || continue |
| 21079 |
_x_ac_pmix_cppflags_save="$CPPFLAGS" |
| 21080 |
CPPFLAGS="-I$d/include $CPPFLAGS" |
| 21081 |
_x_ac_pmix_libs_save="$LIBS" |
| 21082 |
LIBS="-L$d/$d1 -lpmix $LIBS" |
| 21083 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21084 |
/* end confdefs.h. */ |
| 21085 |
|
| 21086 |
/* Override any GCC internal prototype to avoid an error. |
| 21087 |
Use char because int might match the return type of a GCC |
| 21088 |
builtin and then its argument prototype would still apply. */ |
| 21089 |
#ifdef __cplusplus |
| 21090 |
extern "C" |
| 21091 |
#endif |
| 21092 |
char PMIx_Get_version (); |
| 21093 |
int |
| 21094 |
main () |
| 21095 |
{ |
| 21096 |
return PMIx_Get_version (); |
| 21097 |
; |
| 21098 |
return 0; |
| 21099 |
} |
| 21100 |
_ACEOF |
| 21101 |
if ac_fn_c_try_link "$LINENO"; then : |
| 21102 |
x_ac_cv_pmix_dir=$d |
| 21103 |
x_ac_cv_pmix_libdir=$d/$d1 |
| 21104 |
fi |
| 21105 |
rm -f core conftest.err conftest.$ac_objext \ |
| 21106 |
conftest$ac_exeext conftest.$ac_ext |
| 21107 |
|
| 21108 |
if test -z "$x_ac_cv_pmix_dir" || |
| 21109 |
test -z "$x_ac_cv_pmix_libdir"; then |
| 21110 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to locate pmix installation" >&5 |
| 21111 |
$as_echo "$as_me: WARNING: unable to locate pmix installation" >&2;} |
| 21112 |
continue |
| 21113 |
fi |
| 21114 |
|
| 21115 |
_x_ac_pmix_version="0" |
| 21116 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21117 |
/* end confdefs.h. */ |
| 21118 |
|
| 21119 |
#include <pmix_version.h> |
| 21120 |
#if (PMIX_VERSION_MAJOR != 3L) |
| 21121 |
#error "not version 3" |
| 21122 |
#endif |
| 21123 |
|
| 21124 |
int |
| 21125 |
main () |
| 21126 |
{ |
| 21127 |
|
| 21128 |
; |
| 21129 |
return 0; |
| 21130 |
} |
| 21131 |
_ACEOF |
| 21132 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 21133 |
_x_ac_pmix_version="3" |
| 21134 |
else |
| 21135 |
|
| 21136 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21137 |
/* end confdefs.h. */ |
| 21138 |
|
| 21139 |
#include<pmix_server.h> |
| 21140 |
#if (PMIX_VERSION_MAJOR != 2L) |
| 21141 |
#error "not version 2" |
| 21142 |
#endif |
| 21143 |
|
| 21144 |
int |
| 21145 |
main () |
| 21146 |
{ |
| 21147 |
|
| 21148 |
; |
| 21149 |
return 0; |
| 21150 |
} |
| 21151 |
_ACEOF |
| 21152 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 21153 |
_x_ac_pmix_version="2" |
| 21154 |
else |
| 21155 |
_x_ac_pmix_version="1" |
| 21156 |
fi |
| 21157 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 21158 |
|
| 21159 |
fi |
| 21160 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 21161 |
|
| 21162 |
CPPFLAGS="$_x_ac_pmix_cppflags_save" |
| 21163 |
LIBS="$_x_ac_pmix_libs_save" |
| 21164 |
|
| 21165 |
|
| 21166 |
|
| 21167 |
if test "$_x_ac_pmix_version" = "1"; then |
| 21168 |
if test "$_x_ac_pmix_v1_found" = "1" ; then |
| 21169 |
|
| 21170 |
as_fn_error $? "error processing $x_ac_cv_pmix_libdir: PMIx v1.x was already found in one of the previous paths" "$LINENO" 5 |
| 21171 |
fi |
| 21172 |
|
| 21173 |
_x_ac_pmix_v1_found="1" |
| 21174 |
PMIX_V1_CPPFLAGS="-I$x_ac_cv_pmix_dir/include" |
| 21175 |
if test "$ac_with_rpath" = "yes"; then |
| 21176 |
PMIX_V1_LDFLAGS="-Wl,-rpath -Wl,$x_ac_cv_pmix_libdir -L$x_ac_cv_pmix_libdir" |
| 21177 |
else |
| 21178 |
PMIX_V1_CPPFLAGS=$PMIX_V1_CPPFLAGS" -DPMIXP_V1_LIBPATH=\\\"$x_ac_cv_pmix_libdir\\\"" |
| 21179 |
fi |
| 21180 |
# We don't want to search the other lib after we found it in |
| 21181 |
# one place or we might report a false duplicate if lib64 is a |
| 21182 |
# symlink of lib. |
| 21183 |
break |
| 21184 |
fi |
| 21185 |
|
| 21186 |
if test "$_x_ac_pmix_version" = "2"; then |
| 21187 |
if test "$_x_ac_pmix_v2_found" = "1" ; then |
| 21188 |
|
| 21189 |
as_fn_error $? "error processing $x_ac_cv_pmix_libdir: PMIx v2.x was already found in one of the previous paths" "$LINENO" 5 |
| 21190 |
fi |
| 21191 |
_x_ac_pmix_v2_found="1" |
| 21192 |
PMIX_V2_CPPFLAGS="-I$x_ac_cv_pmix_dir/include" |
| 21193 |
if test "$ac_with_rpath" = "yes"; then |
| 21194 |
PMIX_V2_LDFLAGS="-Wl,-rpath -Wl,$x_ac_cv_pmix_libdir -L$x_ac_cv_pmix_libdir" |
| 21195 |
else |
| 21196 |
PMIX_V2_CPPFLAGS=$PMIX_V2_CPPFLAGS" -DPMIXP_V2_LIBPATH=\\\"$x_ac_cv_pmix_libdir\\\"" |
| 21197 |
fi |
| 21198 |
# We don't want to search the other lib after we found it in |
| 21199 |
# one place or we might report a false duplicate if lib64 is a |
| 21200 |
# symlink of lib. |
| 21201 |
break |
| 21202 |
fi |
| 21203 |
|
| 21204 |
if test "$_x_ac_pmix_version" = "3"; then |
| 21205 |
if test "$_x_ac_pmix_v3_found" = "1" ; then |
| 21206 |
|
| 21207 |
as_fn_error $? "error processing $x_ac_cv_pmix_libdir: PMIx v3.x was already found in one of the previous paths" "$LINENO" 5 |
| 21208 |
fi |
| 21209 |
_x_ac_pmix_v3_found="1" |
| 21210 |
PMIX_V3_CPPFLAGS="-I$x_ac_cv_pmix_dir/include" |
| 21211 |
if test "$ac_with_rpath" = "yes"; then |
| 21212 |
PMIX_V3_LDFLAGS="-Wl,-rpath -Wl,$x_ac_cv_pmix_libdir -L$x_ac_cv_pmix_libdir" |
| 21213 |
else |
| 21214 |
PMIX_V3_CPPFLAGS=$PMIX_V3_CPPFLAGS" -DPMIXP_V3_LIBPATH=\\\"$x_ac_cv_pmix_libdir\\\"" |
| 21215 |
fi |
| 21216 |
# We don't want to search the other lib after we found it in |
| 21217 |
# one place or we might report a false duplicate if lib64 is a |
| 21218 |
# symlink of lib. |
| 21219 |
break |
| 21220 |
fi |
| 21221 |
done |
| 21222 |
done |
| 21223 |
|
| 21224 |
fi |
| 21225 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $x_ac_cv_pmix_dir" >&5 |
| 21226 |
$as_echo "$x_ac_cv_pmix_dir" >&6; } |
| 21227 |
|
| 21228 |
|
| 21229 |
$as_echo "#define HAVE_PMIX 1" >>confdefs.h |
| 21230 |
|
| 21231 |
|
| 21232 |
|
| 21233 |
|
| 21234 |
|
| 21235 |
|
| 21236 |
|
| 21237 |
|
| 21238 |
|
| 21239 |
if test $_x_ac_pmix_v1_found = 0 && test $_x_ac_pmix_v2_found = 0 && |
| 21240 |
test $_x_ac_pmix_v3_found = 0; then |
| 21241 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to locate pmix installation" >&5 |
| 21242 |
$as_echo "$as_me: WARNING: unable to locate pmix installation" >&2;} |
| 21243 |
fi |
| 21244 |
fi |
| 21245 |
|
| 21246 |
if test $_x_ac_pmix_v1_found = "1" || |
| 21247 |
test $_x_ac_pmix_v2_found = "1" || |
| 21248 |
test $_x_ac_pmix_v3_found = "1" ; then |
| 21249 |
HAVE_PMIX_TRUE= |
| 21250 |
HAVE_PMIX_FALSE='#' |
| 21251 |
else |
| 21252 |
HAVE_PMIX_TRUE='#' |
| 21253 |
HAVE_PMIX_FALSE= |
| 21254 |
fi |
| 21255 |
|
| 21256 |
if test $_x_ac_pmix_v1_found = "1"; then |
| 21257 |
HAVE_PMIX_V1_TRUE= |
| 21258 |
HAVE_PMIX_V1_FALSE='#' |
| 21259 |
else |
| 21260 |
HAVE_PMIX_V1_TRUE='#' |
| 21261 |
HAVE_PMIX_V1_FALSE= |
| 21262 |
fi |
| 21263 |
|
| 21264 |
if test $_x_ac_pmix_v2_found = "1"; then |
| 21265 |
HAVE_PMIX_V2_TRUE= |
| 21266 |
HAVE_PMIX_V2_FALSE='#' |
| 21267 |
else |
| 21268 |
HAVE_PMIX_V2_TRUE='#' |
| 21269 |
HAVE_PMIX_V2_FALSE= |
| 21270 |
fi |
| 21271 |
|
| 21272 |
if test $_x_ac_pmix_v3_found = "1"; then |
| 21273 |
HAVE_PMIX_V3_TRUE= |
| 21274 |
HAVE_PMIX_V3_FALSE='#' |
| 21275 |
else |
| 21276 |
HAVE_PMIX_V3_TRUE='#' |
| 21277 |
HAVE_PMIX_V3_FALSE= |
| 21278 |
fi |
| 21279 |
|
| 21280 |
|
| 21281 |
|
| 21282 |
_x_ac_freeipmi_dirs="/usr /usr/local" |
| 21283 |
_x_ac_freeipmi_libs="lib64 lib" |
| 21284 |
|
| 21285 |
|
| 21286 |
# Check whether --with-freeipmi was given. |
| 21287 |
if test "${with_freeipmi+set}" = set; then : |
| 21288 |
withval=$with_freeipmi; if test "x$with_freeipmi" != xno; then : |
| 21289 |
_x_ac_freeipmi_dirs="$with_freeipmi $_x_ac_freeipmi_dirs" |
| 21290 |
fi |
| 21291 |
fi |
| 21292 |
|
| 21293 |
|
| 21294 |
if test "x$with_freeipmi" = xno; then |
| 21295 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for freeipmi disabled" >&5 |
| 21296 |
$as_echo "$as_me: WARNING: support for freeipmi disabled" >&2;} |
| 21297 |
else |
| 21298 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for freeipmi installation" >&5 |
| 21299 |
$as_echo_n "checking for freeipmi installation... " >&6; } |
| 21300 |
if ${x_ac_cv_freeipmi_dir+:} false; then : |
| 21301 |
$as_echo_n "(cached) " >&6 |
| 21302 |
else |
| 21303 |
|
| 21304 |
for d in $_x_ac_freeipmi_dirs; do |
| 21305 |
test -d "$d" || continue |
| 21306 |
test -d "$d/include" || continue |
| 21307 |
test -f "$d/include/ipmi_monitoring.h" || continue |
| 21308 |
for bit in $_x_ac_freeipmi_libs; do |
| 21309 |
test -d "$d/$bit" || continue |
| 21310 |
_x_ac_freeipmi_cppflags_save="$CPPFLAGS" |
| 21311 |
CPPFLAGS="-I$d/include $CPPFLAGS" |
| 21312 |
_x_ac_freeipmi_libs_save="$LIBS" |
| 21313 |
LIBS="-L$d/$bit -lipmimonitoring -lfreeipmi $LIBS" |
| 21314 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21315 |
/* end confdefs.h. */ |
| 21316 |
#include <freeipmi/freeipmi.h> |
| 21317 |
#include <ipmi_monitoring.h> |
| 21318 |
#include <ipmi_monitoring_bitmasks.h> |
| 21319 |
int |
| 21320 |
main () |
| 21321 |
{ |
| 21322 |
ipmi_ctx_t ipmi_ctx = ipmi_ctx_create(); |
| 21323 |
int err; |
| 21324 |
unsigned int flag = 0; |
| 21325 |
return ipmi_monitoring_init (flag, &err); |
| 21326 |
; |
| 21327 |
return 0; |
| 21328 |
} |
| 21329 |
_ACEOF |
| 21330 |
if ac_fn_c_try_link "$LINENO"; then : |
| 21331 |
x_ac_cv_freeipmi_dir=$d |
| 21332 |
fi |
| 21333 |
rm -f core conftest.err conftest.$ac_objext \ |
| 21334 |
conftest$ac_exeext conftest.$ac_ext |
| 21335 |
CPPFLAGS="$_x_ac_freeipmi_cppflags_save" |
| 21336 |
LIBS="$_x_ac_freeipmi_libs_save" |
| 21337 |
test -n "$x_ac_cv_freeipmi_dir" && break |
| 21338 |
done |
| 21339 |
test -n "$x_ac_cv_freeipmi_dir" && break |
| 21340 |
done |
| 21341 |
|
| 21342 |
fi |
| 21343 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $x_ac_cv_freeipmi_dir" >&5 |
| 21344 |
$as_echo "$x_ac_cv_freeipmi_dir" >&6; } |
| 21345 |
|
| 21346 |
if test -z "$x_ac_cv_freeipmi_dir"; then |
| 21347 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to locate freeipmi installation (libipmonitoring/libfreeipmi" >&5 |
| 21348 |
$as_echo "$as_me: WARNING: unable to locate freeipmi installation (libipmonitoring/libfreeipmi" >&2;} |
| 21349 |
else |
| 21350 |
FREEIPMI_CPPFLAGS="-I$x_ac_cv_freeipmi_dir/include" |
| 21351 |
if test "$ac_with_rpath" = "yes"; then |
| 21352 |
FREEIPMI_LDFLAGS="-Wl,-rpath -Wl,$x_ac_cv_freeipmi_dir/$bit -L$x_ac_cv_freeipmi_dir/$bit" |
| 21353 |
else |
| 21354 |
FREEIPMI_LDFLAGS="-L$x_ac_cv_freeipmi_dir/$bit" |
| 21355 |
fi |
| 21356 |
FREEIPMI_LIBS="-lipmimonitoring -lfreeipmi" |
| 21357 |
|
| 21358 |
$as_echo "#define HAVE_FREEIPMI 1" >>confdefs.h |
| 21359 |
|
| 21360 |
fi |
| 21361 |
|
| 21362 |
|
| 21363 |
|
| 21364 |
|
| 21365 |
fi |
| 21366 |
|
| 21367 |
if test -n "$x_ac_cv_freeipmi_dir"; then |
| 21368 |
BUILD_IPMI_TRUE= |
| 21369 |
BUILD_IPMI_FALSE='#' |
| 21370 |
else |
| 21371 |
BUILD_IPMI_TRUE='#' |
| 21372 |
BUILD_IPMI_FALSE= |
| 21373 |
fi |
| 21374 |
|
| 21375 |
|
| 21376 |
|
| 21377 |
_x_ac_rrdtool_dirs="/usr /usr/local" |
| 21378 |
_x_ac_rrdtool_libs="lib64 lib" |
| 21379 |
|
| 21380 |
|
| 21381 |
# Check whether --with-rrdtool was given. |
| 21382 |
if test "${with_rrdtool+set}" = set; then : |
| 21383 |
withval=$with_rrdtool; if test "x$with_rrdtool" != xno; then : |
| 21384 |
_x_ac_rrdtool_dirs="$with_rrdtool $_x_ac_rrdtool_dirs" |
| 21385 |
fi |
| 21386 |
fi |
| 21387 |
|
| 21388 |
|
| 21389 |
if test "x$with_rrdtool" = xno; then |
| 21390 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for rrdtool disabled" >&5 |
| 21391 |
$as_echo "$as_me: WARNING: support for rrdtool disabled" >&2;} |
| 21392 |
else |
| 21393 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rrdtool installation" >&5 |
| 21394 |
$as_echo_n "checking for rrdtool installation... " >&6; } |
| 21395 |
if ${x_ac_cv_rrdtool_dir+:} false; then : |
| 21396 |
$as_echo_n "(cached) " >&6 |
| 21397 |
else |
| 21398 |
|
| 21399 |
for d in $_x_ac_rrdtool_dirs; do |
| 21400 |
test -d "$d" || continue |
| 21401 |
test -d "$d/include" || continue |
| 21402 |
test -f "$d/include/rrd.h" || continue |
| 21403 |
for bit in $_x_ac_rrdtool_libs; do |
| 21404 |
test -d "$d/$bit" || continue |
| 21405 |
_x_ac_rrdtool_cppflags_save="$CPPFLAGS" |
| 21406 |
CPPFLAGS="-I$d/include $CPPFLAGS" |
| 21407 |
_x_ac_rrdtool_libs_save="$LIBS" |
| 21408 |
LIBS="-L$d/$bit -lrrd $LIBS" |
| 21409 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21410 |
/* end confdefs.h. */ |
| 21411 |
#include <rrd.h> |
| 21412 |
int |
| 21413 |
main () |
| 21414 |
{ |
| 21415 |
rrd_value_t *rrd_data; rrd_info_t *rrd_info; rrd_test_error(); |
| 21416 |
; |
| 21417 |
return 0; |
| 21418 |
} |
| 21419 |
_ACEOF |
| 21420 |
if ac_fn_c_try_link "$LINENO"; then : |
| 21421 |
x_ac_cv_rrdtool_dir=$d |
| 21422 |
fi |
| 21423 |
rm -f core conftest.err conftest.$ac_objext \ |
| 21424 |
conftest$ac_exeext conftest.$ac_ext |
| 21425 |
CPPFLAGS="$_x_ac_rrdtool_cppflags_save" |
| 21426 |
LIBS="$_x_ac_rrdtool_libs_save" |
| 21427 |
test -n "$x_ac_cv_rrdtool_dir" && break |
| 21428 |
done |
| 21429 |
test -n "$x_ac_cv_rrdtool_dir" && break |
| 21430 |
done |
| 21431 |
|
| 21432 |
fi |
| 21433 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $x_ac_cv_rrdtool_dir" >&5 |
| 21434 |
$as_echo "$x_ac_cv_rrdtool_dir" >&6; } |
| 21435 |
|
| 21436 |
# echo x_ac_cv_rrdtool_dir $x_ac_cv_rrdtool_dir |
| 21437 |
if test -z "$x_ac_cv_rrdtool_dir"; then |
| 21438 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to locate rrdtool installation" >&5 |
| 21439 |
$as_echo "$as_me: WARNING: unable to locate rrdtool installation" >&2;} |
| 21440 |
else |
| 21441 |
RRDTOOL_CPPFLAGS="-I$x_ac_cv_rrdtool_dir/include" |
| 21442 |
if test "$ac_with_rpath" = "yes"; then |
| 21443 |
RRDTOOL_LDFLAGS="-Wl,-rpath -Wl,$x_ac_cv_rrdtool_dir/$bit -L$x_ac_cv_rrdtool_dir/$bit" |
| 21444 |
else |
| 21445 |
RRDTOOL_LDFLAGS="-L$x_ac_cv_rrdtool_dir/$bit" |
| 21446 |
fi |
| 21447 |
RRDTOOL_LIBS="-lrrd" |
| 21448 |
fi |
| 21449 |
|
| 21450 |
|
| 21451 |
|
| 21452 |
|
| 21453 |
fi |
| 21454 |
|
| 21455 |
if test -n "$x_ac_cv_rrdtool_dir"; then |
| 21456 |
BUILD_RRD_TRUE= |
| 21457 |
BUILD_RRD_FALSE='#' |
| 21458 |
else |
| 21459 |
BUILD_RRD_TRUE='#' |
| 21460 |
BUILD_RRD_FALSE= |
| 21461 |
fi |
| 21462 |
|
| 21463 |
|
| 21464 |
|
| 21465 |
_x_ac_ucx_dirs="/usr /usr/local /opt/ucx" |
| 21466 |
_x_ac_ucx_libs="lib64 lib" |
| 21467 |
|
| 21468 |
|
| 21469 |
# Check whether --with-ucx was given. |
| 21470 |
if test "${with_ucx+set}" = set; then : |
| 21471 |
withval=$with_ucx; if test "x$with_ucx" != xno && test "x$with_ucx" != xyes; then : |
| 21472 |
_x_ac_ucx_dirs="$with_ucx" |
| 21473 |
fi |
| 21474 |
else |
| 21475 |
with_ucx=no |
| 21476 |
fi |
| 21477 |
|
| 21478 |
|
| 21479 |
if test "x$with_ucx" = xno; then |
| 21480 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: support for ucx disabled" >&5 |
| 21481 |
$as_echo "$as_me: support for ucx disabled" >&6;} |
| 21482 |
else |
| 21483 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucx installation" >&5 |
| 21484 |
$as_echo_n "checking for ucx installation... " >&6; } |
| 21485 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_x_ac_ucx_dirs" >&5 |
| 21486 |
$as_echo "$_x_ac_ucx_dirs" >&6; } |
| 21487 |
|
| 21488 |
for d in $_x_ac_ucx_dirs; do |
| 21489 |
test -f "$d/include/ucp/api/ucp.h" || continue |
| 21490 |
test -f "$d/include/uct/api/version.h" || continue |
| 21491 |
for bit in $_x_ac_ucx_libs; do |
| 21492 |
|
| 21493 |
x_ac_cv_ucx_dir= |
| 21494 |
x_ac_cv_ucx_libdir= |
| 21495 |
test -d "$d/$bit" || continue |
| 21496 |
_x_ac_ucx_cppflags_save="$CPPFLAGS" |
| 21497 |
CPPFLAGS="-I$d/include $CPPFLAGS" |
| 21498 |
_x_ac_ucx_libs_save="$LIBS" |
| 21499 |
LIBS="-L$d/$bit -lucp $LIBS" |
| 21500 |
|
| 21501 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucp_cleanup in -lucp" >&5 |
| 21502 |
$as_echo_n "checking for ucp_cleanup in -lucp... " >&6; } |
| 21503 |
if ${ac_cv_lib_ucp_ucp_cleanup+:} false; then : |
| 21504 |
$as_echo_n "(cached) " >&6 |
| 21505 |
else |
| 21506 |
ac_check_lib_save_LIBS=$LIBS |
| 21507 |
LIBS="-lucp $LIBS" |
| 21508 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21509 |
/* end confdefs.h. */ |
| 21510 |
|
| 21511 |
/* Override any GCC internal prototype to avoid an error. |
| 21512 |
Use char because int might match the return type of a GCC |
| 21513 |
builtin and then its argument prototype would still apply. */ |
| 21514 |
#ifdef __cplusplus |
| 21515 |
extern "C" |
| 21516 |
#endif |
| 21517 |
char ucp_cleanup (); |
| 21518 |
int |
| 21519 |
main () |
| 21520 |
{ |
| 21521 |
return ucp_cleanup (); |
| 21522 |
; |
| 21523 |
return 0; |
| 21524 |
} |
| 21525 |
_ACEOF |
| 21526 |
if ac_fn_c_try_link "$LINENO"; then : |
| 21527 |
ac_cv_lib_ucp_ucp_cleanup=yes |
| 21528 |
else |
| 21529 |
ac_cv_lib_ucp_ucp_cleanup=no |
| 21530 |
fi |
| 21531 |
rm -f core conftest.err conftest.$ac_objext \ |
| 21532 |
conftest$ac_exeext conftest.$ac_ext |
| 21533 |
LIBS=$ac_check_lib_save_LIBS |
| 21534 |
fi |
| 21535 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucp_ucp_cleanup" >&5 |
| 21536 |
$as_echo "$ac_cv_lib_ucp_ucp_cleanup" >&6; } |
| 21537 |
if test "x$ac_cv_lib_ucp_ucp_cleanup" = xyes; then : |
| 21538 |
cat >>confdefs.h <<_ACEOF |
| 21539 |
#define HAVE_LIBUCP 1 |
| 21540 |
_ACEOF |
| 21541 |
|
| 21542 |
LIBS="-lucp $LIBS" |
| 21543 |
|
| 21544 |
fi |
| 21545 |
|
| 21546 |
|
| 21547 |
if test "x$ac_cv_lib_ucp_ucp_cleanup" = xno ; then |
| 21548 |
continue |
| 21549 |
fi |
| 21550 |
|
| 21551 |
x_ac_cv_ucx_dir=$d |
| 21552 |
x_ac_cv_ucx_libdir=$d/$bit |
| 21553 |
|
| 21554 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: ucx checking result: $x_ac_cv_ucx_libdir" >&5 |
| 21555 |
$as_echo "$as_me: ucx checking result: $x_ac_cv_ucx_libdir" >&6;} |
| 21556 |
|
| 21557 |
CPPFLAGS="$_x_ac_ucx_cppflags_save" |
| 21558 |
LIBS="$_x_ac_ucx_libs_save" |
| 21559 |
test -n "$x_ac_cv_ucx_dir" && break |
| 21560 |
done |
| 21561 |
test -n "$x_ac_cv_ucx_dir" && break |
| 21562 |
done |
| 21563 |
|
| 21564 |
if test -z "$x_ac_cv_ucx_dir"; then |
| 21565 |
as_fn_error $? "unable to locate ucx installation" "$LINENO" 5 |
| 21566 |
else |
| 21567 |
UCX_CPPFLAGS="-I$x_ac_cv_ucx_dir/include" |
| 21568 |
if test "$ac_with_rpath" = "yes"; then |
| 21569 |
UCX_LDFLAGS="-Wl,-rpath -Wl,$x_ac_cv_ucx_libdir" |
| 21570 |
else |
| 21571 |
UCX_CPPFLAGS=$UCX_CPPFLAGS" -DPMIXP_UCX_LIBPATH=\\\"$x_ac_cv_ucx_libdir\\\"" |
| 21572 |
fi |
| 21573 |
|
| 21574 |
$as_echo "#define HAVE_UCX 1" >>confdefs.h |
| 21575 |
|
| 21576 |
fi |
| 21577 |
|
| 21578 |
|
| 21579 |
|
| 21580 |
|
| 21581 |
fi |
| 21582 |
|
| 21583 |
if test -n "$x_ac_cv_ucx_dir"; then |
| 21584 |
HAVE_UCX_TRUE= |
| 21585 |
HAVE_UCX_FALSE='#' |
| 21586 |
else |
| 21587 |
HAVE_UCX_TRUE='#' |
| 21588 |
HAVE_UCX_FALSE= |
| 21589 |
fi |
| 21590 |
|
| 21591 |
|
| 21592 |
|
| 21593 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Slurm internal X11 support is enabled" >&5 |
| 21594 |
$as_echo_n "checking whether Slurm internal X11 support is enabled... " >&6; } |
| 21595 |
# Check whether --enable-x11 was given. |
| 21596 |
if test "${enable_x11+set}" = set; then : |
| 21597 |
enableval=$enable_x11; case "$enableval" in |
| 21598 |
yes) x_ac_x11=yes ;; |
| 21599 |
no) x_ac_x11=no ;; |
| 21600 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: doh!" >&5 |
| 21601 |
$as_echo "doh!" >&6; } |
| 21602 |
as_fn_error $? "bad value \"$enableval\" for --enable-x11" "$LINENO" 5 |
| 21603 |
esac |
| 21604 |
|
| 21605 |
|
| 21606 |
fi |
| 21607 |
|
| 21608 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $x_ac_x11" >&5 |
| 21609 |
$as_echo "$x_ac_x11" >&6; } |
| 21610 |
if test "$x_ac_x11" != no; then |
| 21611 |
|
| 21612 |
$as_echo "#define WITH_SLURM_X11 1" >>confdefs.h |
| 21613 |
|
| 21614 |
fi |
| 21615 |
|
| 21616 |
|
| 21617 |
|
| 21618 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5 |
| 21619 |
$as_echo_n "checking for initscr in -lncurses... " >&6; } |
| 21620 |
if ${ac_cv_lib_ncurses_initscr+:} false; then : |
| 21621 |
$as_echo_n "(cached) " >&6 |
| 21622 |
else |
| 21623 |
ac_check_lib_save_LIBS=$LIBS |
| 21624 |
LIBS="-lncurses $LIBS" |
| 21625 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21626 |
/* end confdefs.h. */ |
| 21627 |
|
| 21628 |
/* Override any GCC internal prototype to avoid an error. |
| 21629 |
Use char because int might match the return type of a GCC |
| 21630 |
builtin and then its argument prototype would still apply. */ |
| 21631 |
#ifdef __cplusplus |
| 21632 |
extern "C" |
| 21633 |
#endif |
| 21634 |
char initscr (); |
| 21635 |
int |
| 21636 |
main () |
| 21637 |
{ |
| 21638 |
return initscr (); |
| 21639 |
; |
| 21640 |
return 0; |
| 21641 |
} |
| 21642 |
_ACEOF |
| 21643 |
if ac_fn_c_try_link "$LINENO"; then : |
| 21644 |
ac_cv_lib_ncurses_initscr=yes |
| 21645 |
else |
| 21646 |
ac_cv_lib_ncurses_initscr=no |
| 21647 |
fi |
| 21648 |
rm -f core conftest.err conftest.$ac_objext \ |
| 21649 |
conftest$ac_exeext conftest.$ac_ext |
| 21650 |
LIBS=$ac_check_lib_save_LIBS |
| 21651 |
fi |
| 21652 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5 |
| 21653 |
$as_echo "$ac_cv_lib_ncurses_initscr" >&6; } |
| 21654 |
if test "x$ac_cv_lib_ncurses_initscr" = xyes; then : |
| 21655 |
ac_have_ncurses=yes |
| 21656 |
fi |
| 21657 |
|
| 21658 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5 |
| 21659 |
$as_echo_n "checking for initscr in -lcurses... " >&6; } |
| 21660 |
if ${ac_cv_lib_curses_initscr+:} false; then : |
| 21661 |
$as_echo_n "(cached) " >&6 |
| 21662 |
else |
| 21663 |
ac_check_lib_save_LIBS=$LIBS |
| 21664 |
LIBS="-lcurses $LIBS" |
| 21665 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21666 |
/* end confdefs.h. */ |
| 21667 |
|
| 21668 |
/* Override any GCC internal prototype to avoid an error. |
| 21669 |
Use char because int might match the return type of a GCC |
| 21670 |
builtin and then its argument prototype would still apply. */ |
| 21671 |
#ifdef __cplusplus |
| 21672 |
extern "C" |
| 21673 |
#endif |
| 21674 |
char initscr (); |
| 21675 |
int |
| 21676 |
main () |
| 21677 |
{ |
| 21678 |
return initscr (); |
| 21679 |
; |
| 21680 |
return 0; |
| 21681 |
} |
| 21682 |
_ACEOF |
| 21683 |
if ac_fn_c_try_link "$LINENO"; then : |
| 21684 |
ac_cv_lib_curses_initscr=yes |
| 21685 |
else |
| 21686 |
ac_cv_lib_curses_initscr=no |
| 21687 |
fi |
| 21688 |
rm -f core conftest.err conftest.$ac_objext \ |
| 21689 |
conftest$ac_exeext conftest.$ac_ext |
| 21690 |
LIBS=$ac_check_lib_save_LIBS |
| 21691 |
fi |
| 21692 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5 |
| 21693 |
$as_echo "$ac_cv_lib_curses_initscr" >&6; } |
| 21694 |
if test "x$ac_cv_lib_curses_initscr" = xyes; then : |
| 21695 |
ac_have_curses=yes |
| 21696 |
fi |
| 21697 |
|
| 21698 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5 |
| 21699 |
$as_echo_n "checking for tgetent in -ltinfo... " >&6; } |
| 21700 |
if ${ac_cv_lib_tinfo_tgetent+:} false; then : |
| 21701 |
$as_echo_n "(cached) " >&6 |
| 21702 |
else |
| 21703 |
ac_check_lib_save_LIBS=$LIBS |
| 21704 |
LIBS="-ltinfo $LIBS" |
| 21705 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21706 |
/* end confdefs.h. */ |
| 21707 |
|
| 21708 |
/* Override any GCC internal prototype to avoid an error. |
| 21709 |
Use char because int might match the return type of a GCC |
| 21710 |
builtin and then its argument prototype would still apply. */ |
| 21711 |
#ifdef __cplusplus |
| 21712 |
extern "C" |
| 21713 |
#endif |
| 21714 |
char tgetent (); |
| 21715 |
int |
| 21716 |
main () |
| 21717 |
{ |
| 21718 |
return tgetent (); |
| 21719 |
; |
| 21720 |
return 0; |
| 21721 |
} |
| 21722 |
_ACEOF |
| 21723 |
if ac_fn_c_try_link "$LINENO"; then : |
| 21724 |
ac_cv_lib_tinfo_tgetent=yes |
| 21725 |
else |
| 21726 |
ac_cv_lib_tinfo_tgetent=no |
| 21727 |
fi |
| 21728 |
rm -f core conftest.err conftest.$ac_objext \ |
| 21729 |
conftest$ac_exeext conftest.$ac_ext |
| 21730 |
LIBS=$ac_check_lib_save_LIBS |
| 21731 |
fi |
| 21732 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5 |
| 21733 |
$as_echo "$ac_cv_lib_tinfo_tgetent" >&6; } |
| 21734 |
if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then : |
| 21735 |
ac_have_tinfo=yes |
| 21736 |
fi |
| 21737 |
|
| 21738 |
|
| 21739 |
|
| 21740 |
if test "$ac_have_ncurses" = "yes"; then |
| 21741 |
NCURSES="-lncurses" |
| 21742 |
NCURSES_HEADER="ncurses.h" |
| 21743 |
ac_have_some_curses="yes" |
| 21744 |
elif test "$ac_have_curses" = "yes"; then |
| 21745 |
NCURSES="-lcurses" |
| 21746 |
NCURSES_HEADER="curses.h" |
| 21747 |
ac_have_some_curses="yes" |
| 21748 |
fi |
| 21749 |
if test "$ac_have_tinfo" = "yes"; then |
| 21750 |
NCURSES="$NCURSES -ltinfo" |
| 21751 |
fi |
| 21752 |
|
| 21753 |
if test "$ac_have_some_curses" = "yes"; then |
| 21754 |
save_LIBS="$LIBS" |
| 21755 |
LIBS="$NCURSES $save_LIBS" |
| 21756 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21757 |
/* end confdefs.h. */ |
| 21758 |
#include <${NCURSES_HEADER}> |
| 21759 |
int |
| 21760 |
main () |
| 21761 |
{ |
| 21762 |
(void)initscr(); (void)endwin(); |
| 21763 |
; |
| 21764 |
return 0; |
| 21765 |
} |
| 21766 |
_ACEOF |
| 21767 |
if ac_fn_c_try_link "$LINENO"; then : |
| 21768 |
|
| 21769 |
else |
| 21770 |
ac_have_some_curses="no" |
| 21771 |
fi |
| 21772 |
rm -f core conftest.err conftest.$ac_objext \ |
| 21773 |
conftest$ac_exeext conftest.$ac_ext |
| 21774 |
LIBS="$save_LIBS" |
| 21775 |
if test "$ac_have_some_curses" = "yes"; then |
| 21776 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: NCURSES test program built properly." >&5 |
| 21777 |
$as_echo "NCURSES test program built properly." >&6; } |
| 21778 |
else |
| 21779 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** NCURSES test program execution failed." >&5 |
| 21780 |
$as_echo "$as_me: WARNING: *** NCURSES test program execution failed." >&2;} |
| 21781 |
fi |
| 21782 |
else |
| 21783 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot build smap without curses or ncurses library" >&5 |
| 21784 |
$as_echo "$as_me: WARNING: cannot build smap without curses or ncurses library" >&2;} |
| 21785 |
ac_have_some_curses="no" |
| 21786 |
fi |
| 21787 |
|
| 21788 |
if test "x$ac_have_some_curses" = "xyes"; then |
| 21789 |
HAVE_SOME_CURSES_TRUE= |
| 21790 |
HAVE_SOME_CURSES_FALSE='#' |
| 21791 |
else |
| 21792 |
HAVE_SOME_CURSES_TRUE='#' |
| 21793 |
HAVE_SOME_CURSES_FALSE= |
| 21794 |
fi |
| 21795 |
|
| 21796 |
|
| 21797 |
|
| 21798 |
|
| 21799 |
case ${host_os} in |
| 21800 |
darwin* | freebsd* | netbsd* ) |
| 21801 |
with_cgroup=no |
| 21802 |
;; |
| 21803 |
*) |
| 21804 |
with_cgroup=yes |
| 21805 |
;; |
| 21806 |
esac |
| 21807 |
if test x$with_cgroup = xyes; then |
| 21808 |
WITH_CGROUP_TRUE= |
| 21809 |
WITH_CGROUP_FALSE='#' |
| 21810 |
else |
| 21811 |
WITH_CGROUP_TRUE='#' |
| 21812 |
WITH_CGROUP_FALSE= |
| 21813 |
fi |
| 21814 |
|
| 21815 |
if test x$with_cgroup = xyes; then |
| 21816 |
|
| 21817 |
$as_echo "#define WITH_CGROUP 1" >>confdefs.h |
| 21818 |
|
| 21819 |
fi |
| 21820 |
|
| 21821 |
|
| 21822 |
# |
| 21823 |
# Tests for Check |
| 21824 |
# |
| 21825 |
|
| 21826 |
|
| 21827 |
pkg_failed=no |
| 21828 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 |
| 21829 |
$as_echo_n "checking for CHECK... " >&6; } |
| 21830 |
|
| 21831 |
if test -n "$CHECK_CFLAGS"; then |
| 21832 |
pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" |
| 21833 |
elif test -n "$PKG_CONFIG"; then |
| 21834 |
if test -n "$PKG_CONFIG" && \ |
| 21835 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.8\""; } >&5 |
| 21836 |
($PKG_CONFIG --exists --print-errors "check >= 0.9.8") 2>&5 |
| 21837 |
ac_status=$? |
| 21838 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 21839 |
test $ac_status = 0; }; then |
| 21840 |
pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.8" 2>/dev/null` |
| 21841 |
test "x$?" != "x0" && pkg_failed=yes |
| 21842 |
else |
| 21843 |
pkg_failed=yes |
| 21844 |
fi |
| 21845 |
else |
| 21846 |
pkg_failed=untried |
| 21847 |
fi |
| 21848 |
if test -n "$CHECK_LIBS"; then |
| 21849 |
pkg_cv_CHECK_LIBS="$CHECK_LIBS" |
| 21850 |
elif test -n "$PKG_CONFIG"; then |
| 21851 |
if test -n "$PKG_CONFIG" && \ |
| 21852 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.8\""; } >&5 |
| 21853 |
($PKG_CONFIG --exists --print-errors "check >= 0.9.8") 2>&5 |
| 21854 |
ac_status=$? |
| 21855 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 21856 |
test $ac_status = 0; }; then |
| 21857 |
pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.8" 2>/dev/null` |
| 21858 |
test "x$?" != "x0" && pkg_failed=yes |
| 21859 |
else |
| 21860 |
pkg_failed=yes |
| 21861 |
fi |
| 21862 |
else |
| 21863 |
pkg_failed=untried |
| 21864 |
fi |
| 21865 |
|
| 21866 |
|
| 21867 |
|
| 21868 |
if test $pkg_failed = yes; then |
| 21869 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 21870 |
$as_echo "no" >&6; } |
| 21871 |
|
| 21872 |
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 21873 |
_pkg_short_errors_supported=yes |
| 21874 |
else |
| 21875 |
_pkg_short_errors_supported=no |
| 21876 |
fi |
| 21877 |
if test $_pkg_short_errors_supported = yes; then |
| 21878 |
CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.8" 2>&1` |
| 21879 |
else |
| 21880 |
CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.8" 2>&1` |
| 21881 |
fi |
| 21882 |
# Put the nasty error message in config.log where it belongs |
| 21883 |
echo "$CHECK_PKG_ERRORS" >&5 |
| 21884 |
|
| 21885 |
ac_have_check="no" |
| 21886 |
elif test $pkg_failed = untried; then |
| 21887 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 21888 |
$as_echo "no" >&6; } |
| 21889 |
ac_have_check="no" |
| 21890 |
else |
| 21891 |
CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS |
| 21892 |
CHECK_LIBS=$pkg_cv_CHECK_LIBS |
| 21893 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 21894 |
$as_echo "yes" >&6; } |
| 21895 |
ac_have_check="yes" |
| 21896 |
fi |
| 21897 |
if test "x$ac_have_check" = "xyes"; then |
| 21898 |
HAVE_CHECK_TRUE= |
| 21899 |
HAVE_CHECK_FALSE='#' |
| 21900 |
else |
| 21901 |
HAVE_CHECK_TRUE='#' |
| 21902 |
HAVE_CHECK_FALSE= |
| 21903 |
fi |
| 21904 |
|
| 21905 |
|
| 21906 |
# |
| 21907 |
# Tests for GTK+ |
| 21908 |
# |
| 21909 |
|
| 21910 |
# use the correct libs if running on 64bit |
| 21911 |
if test -d "/usr/lib64/pkgconfig"; then |
| 21912 |
PKG_CONFIG_PATH="/usr/lib64/pkgconfig/:$PKG_CONFIG_PATH" |
| 21913 |
fi |
| 21914 |
|
| 21915 |
if test -d "/opt/gnome/lib64/pkgconfig"; then |
| 21916 |
PKG_CONFIG_PATH="/opt/gnome/lib64/pkgconfig/:$PKG_CONFIG_PATH" |
| 21917 |
fi |
| 21918 |
|
| 21919 |
|
| 21920 |
|
| 21921 |
|
| 21922 |
# Check whether --enable-glibtest was given. |
| 21923 |
if test "${enable_glibtest+set}" = set; then : |
| 21924 |
enableval=$enable_glibtest; |
| 21925 |
else |
| 21926 |
enable_glibtest=yes |
| 21927 |
fi |
| 21928 |
|
| 21929 |
|
| 21930 |
min_glib_version=2.7.1 |
| 21931 |
pkg_config_args="glib-2.0 >= $min_glib_version" |
| 21932 |
for module in . gthread |
| 21933 |
do |
| 21934 |
case "$module" in |
| 21935 |
gmodule) |
| 21936 |
pkg_config_args="$pkg_config_args gmodule-2.0" |
| 21937 |
;; |
| 21938 |
gmodule-no-export) |
| 21939 |
pkg_config_args="$pkg_config_args gmodule-no-export-2.0" |
| 21940 |
;; |
| 21941 |
gobject) |
| 21942 |
pkg_config_args="$pkg_config_args gobject-2.0" |
| 21943 |
;; |
| 21944 |
gthread) |
| 21945 |
pkg_config_args="$pkg_config_args gthread-2.0" |
| 21946 |
;; |
| 21947 |
gio*) |
| 21948 |
pkg_config_args="$pkg_config_args $module-2.0" |
| 21949 |
;; |
| 21950 |
esac |
| 21951 |
done |
| 21952 |
|
| 21953 |
|
| 21954 |
|
| 21955 |
|
| 21956 |
|
| 21957 |
|
| 21958 |
|
| 21959 |
|
| 21960 |
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 21961 |
if test -n "$ac_tool_prefix"; then |
| 21962 |
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 21963 |
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 21964 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 21965 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 21966 |
if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 21967 |
$as_echo_n "(cached) " >&6 |
| 21968 |
else |
| 21969 |
case $PKG_CONFIG in |
| 21970 |
[\\/]* | ?:[\\/]*) |
| 21971 |
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 21972 |
;; |
| 21973 |
*) |
| 21974 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21975 |
for as_dir in $PATH |
| 21976 |
do |
| 21977 |
IFS=$as_save_IFS |
| 21978 |
test -z "$as_dir" && as_dir=. |
| 21979 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 21980 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 21981 |
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 21982 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 21983 |
break 2 |
| 21984 |
fi |
| 21985 |
done |
| 21986 |
done |
| 21987 |
IFS=$as_save_IFS |
| 21988 |
|
| 21989 |
;; |
| 21990 |
esac |
| 21991 |
fi |
| 21992 |
PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 21993 |
if test -n "$PKG_CONFIG"; then |
| 21994 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 21995 |
$as_echo "$PKG_CONFIG" >&6; } |
| 21996 |
else |
| 21997 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 21998 |
$as_echo "no" >&6; } |
| 21999 |
fi |
| 22000 |
|
| 22001 |
|
| 22002 |
fi |
| 22003 |
if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 22004 |
ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 22005 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
| 22006 |
set dummy pkg-config; ac_word=$2 |
| 22007 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 22008 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 22009 |
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 22010 |
$as_echo_n "(cached) " >&6 |
| 22011 |
else |
| 22012 |
case $ac_pt_PKG_CONFIG in |
| 22013 |
[\\/]* | ?:[\\/]*) |
| 22014 |
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 22015 |
;; |
| 22016 |
*) |
| 22017 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22018 |
for as_dir in $PATH |
| 22019 |
do |
| 22020 |
IFS=$as_save_IFS |
| 22021 |
test -z "$as_dir" && as_dir=. |
| 22022 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 22023 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 22024 |
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 22025 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 22026 |
break 2 |
| 22027 |
fi |
| 22028 |
done |
| 22029 |
done |
| 22030 |
IFS=$as_save_IFS |
| 22031 |
|
| 22032 |
;; |
| 22033 |
esac |
| 22034 |
fi |
| 22035 |
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 22036 |
if test -n "$ac_pt_PKG_CONFIG"; then |
| 22037 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 22038 |
$as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 22039 |
else |
| 22040 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22041 |
$as_echo "no" >&6; } |
| 22042 |
fi |
| 22043 |
|
| 22044 |
if test "x$ac_pt_PKG_CONFIG" = x; then |
| 22045 |
PKG_CONFIG="" |
| 22046 |
else |
| 22047 |
case $cross_compiling:$ac_tool_warned in |
| 22048 |
yes:) |
| 22049 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 22050 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 22051 |
ac_tool_warned=yes ;; |
| 22052 |
esac |
| 22053 |
PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 22054 |
fi |
| 22055 |
else |
| 22056 |
PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 22057 |
fi |
| 22058 |
|
| 22059 |
fi |
| 22060 |
if test -n "$PKG_CONFIG"; then |
| 22061 |
_pkg_min_version=0.16 |
| 22062 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 22063 |
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 22064 |
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 22065 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 22066 |
$as_echo "yes" >&6; } |
| 22067 |
else |
| 22068 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22069 |
$as_echo "no" >&6; } |
| 22070 |
PKG_CONFIG="" |
| 22071 |
fi |
| 22072 |
fi |
| 22073 |
|
| 22074 |
no_glib="" |
| 22075 |
|
| 22076 |
if test "x$PKG_CONFIG" = x ; then |
| 22077 |
no_glib=yes |
| 22078 |
PKG_CONFIG=no |
| 22079 |
fi |
| 22080 |
|
| 22081 |
|
| 22082 |
pkg_failed=no |
| 22083 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 |
| 22084 |
$as_echo_n "checking for GLIB... " >&6; } |
| 22085 |
|
| 22086 |
if test -n "$GLIB_CFLAGS"; then |
| 22087 |
pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" |
| 22088 |
elif test -n "$PKG_CONFIG"; then |
| 22089 |
if test -n "$PKG_CONFIG" && \ |
| 22090 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_config_args\""; } >&5 |
| 22091 |
($PKG_CONFIG --exists --print-errors "$pkg_config_args") 2>&5 |
| 22092 |
ac_status=$? |
| 22093 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 22094 |
test $ac_status = 0; }; then |
| 22095 |
pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$pkg_config_args" 2>/dev/null` |
| 22096 |
test "x$?" != "x0" && pkg_failed=yes |
| 22097 |
else |
| 22098 |
pkg_failed=yes |
| 22099 |
fi |
| 22100 |
else |
| 22101 |
pkg_failed=untried |
| 22102 |
fi |
| 22103 |
if test -n "$GLIB_LIBS"; then |
| 22104 |
pkg_cv_GLIB_LIBS="$GLIB_LIBS" |
| 22105 |
elif test -n "$PKG_CONFIG"; then |
| 22106 |
if test -n "$PKG_CONFIG" && \ |
| 22107 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_config_args\""; } >&5 |
| 22108 |
($PKG_CONFIG --exists --print-errors "$pkg_config_args") 2>&5 |
| 22109 |
ac_status=$? |
| 22110 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 22111 |
test $ac_status = 0; }; then |
| 22112 |
pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$pkg_config_args" 2>/dev/null` |
| 22113 |
test "x$?" != "x0" && pkg_failed=yes |
| 22114 |
else |
| 22115 |
pkg_failed=yes |
| 22116 |
fi |
| 22117 |
else |
| 22118 |
pkg_failed=untried |
| 22119 |
fi |
| 22120 |
|
| 22121 |
|
| 22122 |
|
| 22123 |
if test $pkg_failed = yes; then |
| 22124 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22125 |
$as_echo "no" >&6; } |
| 22126 |
|
| 22127 |
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 22128 |
_pkg_short_errors_supported=yes |
| 22129 |
else |
| 22130 |
_pkg_short_errors_supported=no |
| 22131 |
fi |
| 22132 |
if test $_pkg_short_errors_supported = yes; then |
| 22133 |
GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$pkg_config_args" 2>&1` |
| 22134 |
else |
| 22135 |
GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$pkg_config_args" 2>&1` |
| 22136 |
fi |
| 22137 |
# Put the nasty error message in config.log where it belongs |
| 22138 |
echo "$GLIB_PKG_ERRORS" >&5 |
| 22139 |
|
| 22140 |
: |
| 22141 |
elif test $pkg_failed = untried; then |
| 22142 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22143 |
$as_echo "no" >&6; } |
| 22144 |
: |
| 22145 |
else |
| 22146 |
GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS |
| 22147 |
GLIB_LIBS=$pkg_cv_GLIB_LIBS |
| 22148 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 22149 |
$as_echo "yes" >&6; } |
| 22150 |
: |
| 22151 |
fi |
| 22152 |
|
| 22153 |
|
| 22154 |
if test -n "$GLIB_GENMARSHAL"; then |
| 22155 |
pkg_cv_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" |
| 22156 |
elif test -n "$PKG_CONFIG"; then |
| 22157 |
if test -n "$PKG_CONFIG" && \ |
| 22158 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5 |
| 22159 |
($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 |
| 22160 |
ac_status=$? |
| 22161 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 22162 |
test $ac_status = 0; }; then |
| 22163 |
pkg_cv_GLIB_GENMARSHAL=`$PKG_CONFIG --variable="glib_genmarshal" "glib-2.0" 2>/dev/null` |
| 22164 |
test "x$?" != "x0" && pkg_failed=yes |
| 22165 |
else |
| 22166 |
pkg_failed=yes |
| 22167 |
fi |
| 22168 |
else |
| 22169 |
pkg_failed=untried |
| 22170 |
fi |
| 22171 |
GLIB_GENMARSHAL=$pkg_cv_GLIB_GENMARSHAL |
| 22172 |
|
| 22173 |
if test "x$GLIB_GENMARSHAL" = x""; then : |
| 22174 |
|
| 22175 |
fi |
| 22176 |
|
| 22177 |
if test -n "$GOBJECT_QUERY"; then |
| 22178 |
pkg_cv_GOBJECT_QUERY="$GOBJECT_QUERY" |
| 22179 |
elif test -n "$PKG_CONFIG"; then |
| 22180 |
if test -n "$PKG_CONFIG" && \ |
| 22181 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5 |
| 22182 |
($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 |
| 22183 |
ac_status=$? |
| 22184 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 22185 |
test $ac_status = 0; }; then |
| 22186 |
pkg_cv_GOBJECT_QUERY=`$PKG_CONFIG --variable="gobject_query" "glib-2.0" 2>/dev/null` |
| 22187 |
test "x$?" != "x0" && pkg_failed=yes |
| 22188 |
else |
| 22189 |
pkg_failed=yes |
| 22190 |
fi |
| 22191 |
else |
| 22192 |
pkg_failed=untried |
| 22193 |
fi |
| 22194 |
GOBJECT_QUERY=$pkg_cv_GOBJECT_QUERY |
| 22195 |
|
| 22196 |
if test "x$GOBJECT_QUERY" = x""; then : |
| 22197 |
|
| 22198 |
fi |
| 22199 |
|
| 22200 |
if test -n "$GLIB_MKENUMS"; then |
| 22201 |
pkg_cv_GLIB_MKENUMS="$GLIB_MKENUMS" |
| 22202 |
elif test -n "$PKG_CONFIG"; then |
| 22203 |
if test -n "$PKG_CONFIG" && \ |
| 22204 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5 |
| 22205 |
($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 |
| 22206 |
ac_status=$? |
| 22207 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 22208 |
test $ac_status = 0; }; then |
| 22209 |
pkg_cv_GLIB_MKENUMS=`$PKG_CONFIG --variable="glib_mkenums" "glib-2.0" 2>/dev/null` |
| 22210 |
test "x$?" != "x0" && pkg_failed=yes |
| 22211 |
else |
| 22212 |
pkg_failed=yes |
| 22213 |
fi |
| 22214 |
else |
| 22215 |
pkg_failed=untried |
| 22216 |
fi |
| 22217 |
GLIB_MKENUMS=$pkg_cv_GLIB_MKENUMS |
| 22218 |
|
| 22219 |
if test "x$GLIB_MKENUMS" = x""; then : |
| 22220 |
|
| 22221 |
fi |
| 22222 |
|
| 22223 |
if test -n "$GLIB_COMPILE_RESOURCES"; then |
| 22224 |
pkg_cv_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" |
| 22225 |
elif test -n "$PKG_CONFIG"; then |
| 22226 |
if test -n "$PKG_CONFIG" && \ |
| 22227 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5 |
| 22228 |
($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5 |
| 22229 |
ac_status=$? |
| 22230 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 22231 |
test $ac_status = 0; }; then |
| 22232 |
pkg_cv_GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable="glib_compile_resources" "gio-2.0" 2>/dev/null` |
| 22233 |
test "x$?" != "x0" && pkg_failed=yes |
| 22234 |
else |
| 22235 |
pkg_failed=yes |
| 22236 |
fi |
| 22237 |
else |
| 22238 |
pkg_failed=untried |
| 22239 |
fi |
| 22240 |
GLIB_COMPILE_RESOURCES=$pkg_cv_GLIB_COMPILE_RESOURCES |
| 22241 |
|
| 22242 |
if test "x$GLIB_COMPILE_RESOURCES" = x""; then : |
| 22243 |
|
| 22244 |
fi |
| 22245 |
|
| 22246 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5 |
| 22247 |
$as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; } |
| 22248 |
|
| 22249 |
if test x$PKG_CONFIG != xno ; then |
| 22250 |
## don't try to run the test against uninstalled libtool libs |
| 22251 |
if $PKG_CONFIG --uninstalled $pkg_config_args; then |
| 22252 |
echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" |
| 22253 |
enable_glibtest=no |
| 22254 |
fi |
| 22255 |
|
| 22256 |
if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then |
| 22257 |
: |
| 22258 |
else |
| 22259 |
no_glib=yes |
| 22260 |
fi |
| 22261 |
fi |
| 22262 |
|
| 22263 |
if test x"$no_glib" = x ; then |
| 22264 |
glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ |
| 22265 |
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
| 22266 |
glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ |
| 22267 |
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
| 22268 |
glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ |
| 22269 |
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
| 22270 |
if test "x$enable_glibtest" = "xyes" ; then |
| 22271 |
ac_save_CFLAGS="$CFLAGS" |
| 22272 |
ac_save_LIBS="$LIBS" |
| 22273 |
CFLAGS="$CFLAGS $GLIB_CFLAGS" |
| 22274 |
LIBS="$GLIB_LIBS $LIBS" |
| 22275 |
rm -f conf.glibtest |
| 22276 |
if test "$cross_compiling" = yes; then : |
| 22277 |
echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 22278 |
else |
| 22279 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22280 |
/* end confdefs.h. */ |
| 22281 |
|
| 22282 |
#include <glib.h> |
| 22283 |
#include <stdio.h> |
| 22284 |
#include <stdlib.h> |
| 22285 |
|
| 22286 |
int |
| 22287 |
main (void) |
| 22288 |
{ |
| 22289 |
unsigned int major, minor, micro; |
| 22290 |
|
| 22291 |
fclose (fopen ("conf.glibtest", "w")); |
| 22292 |
|
| 22293 |
if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, µ) != 3) { |
| 22294 |
printf("%s, bad version string\n", "$min_glib_version"); |
| 22295 |
exit(1); |
| 22296 |
} |
| 22297 |
|
| 22298 |
if ((glib_major_version != $glib_config_major_version) || |
| 22299 |
(glib_minor_version != $glib_config_minor_version) || |
| 22300 |
(glib_micro_version != $glib_config_micro_version)) |
| 22301 |
{ |
| 22302 |
printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", |
| 22303 |
$glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, |
| 22304 |
glib_major_version, glib_minor_version, glib_micro_version); |
| 22305 |
printf ("*** was found! If pkg-config was correct, then it is best\n"); |
| 22306 |
printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); |
| 22307 |
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); |
| 22308 |
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); |
| 22309 |
printf("*** required on your system.\n"); |
| 22310 |
printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); |
| 22311 |
printf("*** to point to the correct configuration files\n"); |
| 22312 |
} |
| 22313 |
else if ((glib_major_version != GLIB_MAJOR_VERSION) || |
| 22314 |
(glib_minor_version != GLIB_MINOR_VERSION) || |
| 22315 |
(glib_micro_version != GLIB_MICRO_VERSION)) |
| 22316 |
{ |
| 22317 |
printf("*** GLIB header files (version %d.%d.%d) do not match\n", |
| 22318 |
GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); |
| 22319 |
printf("*** library (version %d.%d.%d)\n", |
| 22320 |
glib_major_version, glib_minor_version, glib_micro_version); |
| 22321 |
} |
| 22322 |
else |
| 22323 |
{ |
| 22324 |
if ((glib_major_version > major) || |
| 22325 |
((glib_major_version == major) && (glib_minor_version > minor)) || |
| 22326 |
((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) |
| 22327 |
{ |
| 22328 |
return 0; |
| 22329 |
} |
| 22330 |
else |
| 22331 |
{ |
| 22332 |
printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n", |
| 22333 |
glib_major_version, glib_minor_version, glib_micro_version); |
| 22334 |
printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n", |
| 22335 |
major, minor, micro); |
| 22336 |
printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); |
| 22337 |
printf("***\n"); |
| 22338 |
printf("*** If you have already installed a sufficiently new version, this error\n"); |
| 22339 |
printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); |
| 22340 |
printf("*** being found. The easiest way to fix this is to remove the old version\n"); |
| 22341 |
printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); |
| 22342 |
printf("*** correct copy of pkg-config. (In this case, you will have to\n"); |
| 22343 |
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); |
| 22344 |
printf("*** so that the correct libraries are found at run-time))\n"); |
| 22345 |
} |
| 22346 |
} |
| 22347 |
return 1; |
| 22348 |
} |
| 22349 |
|
| 22350 |
_ACEOF |
| 22351 |
if ac_fn_c_try_run "$LINENO"; then : |
| 22352 |
|
| 22353 |
else |
| 22354 |
no_glib=yes |
| 22355 |
fi |
| 22356 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22357 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22358 |
fi |
| 22359 |
|
| 22360 |
CFLAGS="$ac_save_CFLAGS" |
| 22361 |
LIBS="$ac_save_LIBS" |
| 22362 |
fi |
| 22363 |
fi |
| 22364 |
if test "x$no_glib" = x ; then |
| 22365 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5 |
| 22366 |
$as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; } |
| 22367 |
ac_glib_test="yes" |
| 22368 |
else |
| 22369 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22370 |
$as_echo "no" >&6; } |
| 22371 |
if test "$PKG_CONFIG" = "no" ; then |
| 22372 |
echo "*** A new enough version of pkg-config was not found." |
| 22373 |
echo "*** See http://www.freedesktop.org/software/pkgconfig/" |
| 22374 |
else |
| 22375 |
if test -f conf.glibtest ; then |
| 22376 |
: |
| 22377 |
else |
| 22378 |
echo "*** Could not run GLIB test program, checking why..." |
| 22379 |
ac_save_CFLAGS="$CFLAGS" |
| 22380 |
ac_save_LIBS="$LIBS" |
| 22381 |
CFLAGS="$CFLAGS $GLIB_CFLAGS" |
| 22382 |
LIBS="$LIBS $GLIB_LIBS" |
| 22383 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22384 |
/* end confdefs.h. */ |
| 22385 |
|
| 22386 |
#include <glib.h> |
| 22387 |
#include <stdio.h> |
| 22388 |
|
| 22389 |
int |
| 22390 |
main () |
| 22391 |
{ |
| 22392 |
return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); |
| 22393 |
; |
| 22394 |
return 0; |
| 22395 |
} |
| 22396 |
_ACEOF |
| 22397 |
if ac_fn_c_try_link "$LINENO"; then : |
| 22398 |
echo "*** The test program compiled, but did not run. This usually means" |
| 22399 |
echo "*** that the run-time linker is not finding GLIB or finding the wrong" |
| 22400 |
echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" |
| 22401 |
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
| 22402 |
echo "*** to the installed location Also, make sure you have run ldconfig if that" |
| 22403 |
echo "*** is required on your system" |
| 22404 |
echo "***" |
| 22405 |
echo "*** If you have an old version installed, it is best to remove it, although" |
| 22406 |
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
| 22407 |
else |
| 22408 |
echo "*** The test program failed to compile or link. See the file config.log for the" |
| 22409 |
echo "*** exact error that occured. This usually means GLIB is incorrectly installed." |
| 22410 |
fi |
| 22411 |
rm -f core conftest.err conftest.$ac_objext \ |
| 22412 |
conftest$ac_exeext conftest.$ac_ext |
| 22413 |
CFLAGS="$ac_save_CFLAGS" |
| 22414 |
LIBS="$ac_save_LIBS" |
| 22415 |
fi |
| 22416 |
fi |
| 22417 |
GLIB_CFLAGS="" |
| 22418 |
GLIB_LIBS="" |
| 22419 |
GLIB_GENMARSHAL="" |
| 22420 |
GOBJECT_QUERY="" |
| 22421 |
GLIB_MKENUMS="" |
| 22422 |
GLIB_COMPILE_RESOURCES="" |
| 22423 |
ac_glib_test="no" |
| 22424 |
fi |
| 22425 |
rm -f conf.glibtest |
| 22426 |
|
| 22427 |
|
| 22428 |
if test ${glib_config_minor_version=0} -ge 32 ; then |
| 22429 |
|
| 22430 |
$as_echo "#define GLIB_NEW_THREADS 1" >>confdefs.h |
| 22431 |
|
| 22432 |
fi |
| 22433 |
|
| 22434 |
# Check whether --enable-gtktest was given. |
| 22435 |
if test "${enable_gtktest+set}" = set; then : |
| 22436 |
enableval=$enable_gtktest; |
| 22437 |
else |
| 22438 |
enable_gtktest=yes |
| 22439 |
fi |
| 22440 |
|
| 22441 |
|
| 22442 |
pkg_config_args=gtk+-2.0 |
| 22443 |
for module in . gthread |
| 22444 |
do |
| 22445 |
case "$module" in |
| 22446 |
gthread) |
| 22447 |
pkg_config_args="$pkg_config_args gthread-2.0" |
| 22448 |
;; |
| 22449 |
esac |
| 22450 |
done |
| 22451 |
|
| 22452 |
no_gtk="" |
| 22453 |
|
| 22454 |
|
| 22455 |
|
| 22456 |
|
| 22457 |
|
| 22458 |
|
| 22459 |
|
| 22460 |
|
| 22461 |
|
| 22462 |
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 22463 |
if test -n "$ac_tool_prefix"; then |
| 22464 |
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 22465 |
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 22466 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 22467 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 22468 |
if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 22469 |
$as_echo_n "(cached) " >&6 |
| 22470 |
else |
| 22471 |
case $PKG_CONFIG in |
| 22472 |
[\\/]* | ?:[\\/]*) |
| 22473 |
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 22474 |
;; |
| 22475 |
*) |
| 22476 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22477 |
for as_dir in $PATH |
| 22478 |
do |
| 22479 |
IFS=$as_save_IFS |
| 22480 |
test -z "$as_dir" && as_dir=. |
| 22481 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 22482 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 22483 |
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 22484 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 22485 |
break 2 |
| 22486 |
fi |
| 22487 |
done |
| 22488 |
done |
| 22489 |
IFS=$as_save_IFS |
| 22490 |
|
| 22491 |
;; |
| 22492 |
esac |
| 22493 |
fi |
| 22494 |
PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 22495 |
if test -n "$PKG_CONFIG"; then |
| 22496 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 22497 |
$as_echo "$PKG_CONFIG" >&6; } |
| 22498 |
else |
| 22499 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22500 |
$as_echo "no" >&6; } |
| 22501 |
fi |
| 22502 |
|
| 22503 |
|
| 22504 |
fi |
| 22505 |
if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 22506 |
ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 22507 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
| 22508 |
set dummy pkg-config; ac_word=$2 |
| 22509 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 22510 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 22511 |
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 22512 |
$as_echo_n "(cached) " >&6 |
| 22513 |
else |
| 22514 |
case $ac_pt_PKG_CONFIG in |
| 22515 |
[\\/]* | ?:[\\/]*) |
| 22516 |
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 22517 |
;; |
| 22518 |
*) |
| 22519 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22520 |
for as_dir in $PATH |
| 22521 |
do |
| 22522 |
IFS=$as_save_IFS |
| 22523 |
test -z "$as_dir" && as_dir=. |
| 22524 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 22525 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 22526 |
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 22527 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 22528 |
break 2 |
| 22529 |
fi |
| 22530 |
done |
| 22531 |
done |
| 22532 |
IFS=$as_save_IFS |
| 22533 |
|
| 22534 |
;; |
| 22535 |
esac |
| 22536 |
fi |
| 22537 |
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 22538 |
if test -n "$ac_pt_PKG_CONFIG"; then |
| 22539 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 22540 |
$as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 22541 |
else |
| 22542 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22543 |
$as_echo "no" >&6; } |
| 22544 |
fi |
| 22545 |
|
| 22546 |
if test "x$ac_pt_PKG_CONFIG" = x; then |
| 22547 |
PKG_CONFIG="" |
| 22548 |
else |
| 22549 |
case $cross_compiling:$ac_tool_warned in |
| 22550 |
yes:) |
| 22551 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 22552 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 22553 |
ac_tool_warned=yes ;; |
| 22554 |
esac |
| 22555 |
PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 22556 |
fi |
| 22557 |
else |
| 22558 |
PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 22559 |
fi |
| 22560 |
|
| 22561 |
fi |
| 22562 |
if test -n "$PKG_CONFIG"; then |
| 22563 |
_pkg_min_version=0.7 |
| 22564 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 22565 |
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 22566 |
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 22567 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 22568 |
$as_echo "yes" >&6; } |
| 22569 |
else |
| 22570 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22571 |
$as_echo "no" >&6; } |
| 22572 |
PKG_CONFIG="" |
| 22573 |
fi |
| 22574 |
fi |
| 22575 |
|
| 22576 |
min_gtk_version=2.7.1 |
| 22577 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5 |
| 22578 |
$as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; } |
| 22579 |
|
| 22580 |
if test x$PKG_CONFIG != xno ; then |
| 22581 |
## don't try to run the test against uninstalled libtool libs |
| 22582 |
if $PKG_CONFIG --uninstalled $pkg_config_args; then |
| 22583 |
echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" |
| 22584 |
enable_gtktest=no |
| 22585 |
fi |
| 22586 |
|
| 22587 |
if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
| 22588 |
: |
| 22589 |
else |
| 22590 |
no_gtk=yes |
| 22591 |
fi |
| 22592 |
fi |
| 22593 |
|
| 22594 |
if test x"$no_gtk" = x ; then |
| 22595 |
GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` |
| 22596 |
GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` |
| 22597 |
gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 22598 |
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
| 22599 |
gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 22600 |
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
| 22601 |
gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 22602 |
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
| 22603 |
if test "x$enable_gtktest" = "xyes" ; then |
| 22604 |
ac_save_CFLAGS="$CFLAGS" |
| 22605 |
ac_save_LIBS="$LIBS" |
| 22606 |
CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 22607 |
LIBS="$GTK_LIBS $LIBS" |
| 22608 |
rm -f conf.gtktest |
| 22609 |
if test "$cross_compiling" = yes; then : |
| 22610 |
echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 22611 |
else |
| 22612 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22613 |
/* end confdefs.h. */ |
| 22614 |
|
| 22615 |
#include <gtk/gtk.h> |
| 22616 |
#include <stdio.h> |
| 22617 |
#include <stdlib.h> |
| 22618 |
|
| 22619 |
int |
| 22620 |
main () |
| 22621 |
{ |
| 22622 |
int major, minor, micro; |
| 22623 |
char *tmp_version; |
| 22624 |
|
| 22625 |
fclose (fopen ("conf.gtktest", "w")); |
| 22626 |
|
| 22627 |
/* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 22628 |
tmp_version = g_strdup("$min_gtk_version"); |
| 22629 |
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 22630 |
printf("%s, bad version string\n", "$min_gtk_version"); |
| 22631 |
exit(1); |
| 22632 |
} |
| 22633 |
|
| 22634 |
if ((gtk_major_version != $gtk_config_major_version) || |
| 22635 |
(gtk_minor_version != $gtk_config_minor_version) || |
| 22636 |
(gtk_micro_version != $gtk_config_micro_version)) |
| 22637 |
{ |
| 22638 |
printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
| 22639 |
$gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
| 22640 |
gtk_major_version, gtk_minor_version, gtk_micro_version); |
| 22641 |
printf ("*** was found! If pkg-config was correct, then it is best\n"); |
| 22642 |
printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); |
| 22643 |
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); |
| 22644 |
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); |
| 22645 |
printf("*** required on your system.\n"); |
| 22646 |
printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); |
| 22647 |
printf("*** to point to the correct configuration files\n"); |
| 22648 |
} |
| 22649 |
else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
| 22650 |
(gtk_minor_version != GTK_MINOR_VERSION) || |
| 22651 |
(gtk_micro_version != GTK_MICRO_VERSION)) |
| 22652 |
{ |
| 22653 |
printf("*** GTK+ header files (version %d.%d.%d) do not match\n", |
| 22654 |
GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
| 22655 |
printf("*** library (version %d.%d.%d)\n", |
| 22656 |
gtk_major_version, gtk_minor_version, gtk_micro_version); |
| 22657 |
} |
| 22658 |
else |
| 22659 |
{ |
| 22660 |
if ((gtk_major_version > major) || |
| 22661 |
((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 22662 |
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) |
| 22663 |
{ |
| 22664 |
return 0; |
| 22665 |
} |
| 22666 |
else |
| 22667 |
{ |
| 22668 |
printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", |
| 22669 |
gtk_major_version, gtk_minor_version, gtk_micro_version); |
| 22670 |
printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", |
| 22671 |
major, minor, micro); |
| 22672 |
printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
| 22673 |
printf("***\n"); |
| 22674 |
printf("*** If you have already installed a sufficiently new version, this error\n"); |
| 22675 |
printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); |
| 22676 |
printf("*** being found. The easiest way to fix this is to remove the old version\n"); |
| 22677 |
printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); |
| 22678 |
printf("*** correct copy of pkg-config. (In this case, you will have to\n"); |
| 22679 |
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); |
| 22680 |
printf("*** so that the correct libraries are found at run-time))\n"); |
| 22681 |
} |
| 22682 |
} |
| 22683 |
return 1; |
| 22684 |
} |
| 22685 |
|
| 22686 |
_ACEOF |
| 22687 |
if ac_fn_c_try_run "$LINENO"; then : |
| 22688 |
|
| 22689 |
else |
| 22690 |
no_gtk=yes |
| 22691 |
fi |
| 22692 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22693 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22694 |
fi |
| 22695 |
|
| 22696 |
CFLAGS="$ac_save_CFLAGS" |
| 22697 |
LIBS="$ac_save_LIBS" |
| 22698 |
fi |
| 22699 |
fi |
| 22700 |
if test "x$no_gtk" = x ; then |
| 22701 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 |
| 22702 |
$as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; } |
| 22703 |
ac_gtk_test="yes" |
| 22704 |
else |
| 22705 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22706 |
$as_echo "no" >&6; } |
| 22707 |
if test "$PKG_CONFIG" = "no" ; then |
| 22708 |
echo "*** A new enough version of pkg-config was not found." |
| 22709 |
echo "*** See http://pkgconfig.sourceforge.net" |
| 22710 |
else |
| 22711 |
if test -f conf.gtktest ; then |
| 22712 |
: |
| 22713 |
else |
| 22714 |
echo "*** Could not run GTK+ test program, checking why..." |
| 22715 |
ac_save_CFLAGS="$CFLAGS" |
| 22716 |
ac_save_LIBS="$LIBS" |
| 22717 |
CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 22718 |
LIBS="$LIBS $GTK_LIBS" |
| 22719 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22720 |
/* end confdefs.h. */ |
| 22721 |
|
| 22722 |
#include <gtk/gtk.h> |
| 22723 |
#include <stdio.h> |
| 22724 |
|
| 22725 |
int |
| 22726 |
main () |
| 22727 |
{ |
| 22728 |
return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); |
| 22729 |
; |
| 22730 |
return 0; |
| 22731 |
} |
| 22732 |
_ACEOF |
| 22733 |
if ac_fn_c_try_link "$LINENO"; then : |
| 22734 |
echo "*** The test program compiled, but did not run. This usually means" |
| 22735 |
echo "*** that the run-time linker is not finding GTK+ or finding the wrong" |
| 22736 |
echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" |
| 22737 |
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
| 22738 |
echo "*** to the installed location Also, make sure you have run ldconfig if that" |
| 22739 |
echo "*** is required on your system" |
| 22740 |
echo "***" |
| 22741 |
echo "*** If you have an old version installed, it is best to remove it, although" |
| 22742 |
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
| 22743 |
else |
| 22744 |
echo "*** The test program failed to compile or link. See the file config.log for the" |
| 22745 |
echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
| 22746 |
fi |
| 22747 |
rm -f core conftest.err conftest.$ac_objext \ |
| 22748 |
conftest$ac_exeext conftest.$ac_ext |
| 22749 |
CFLAGS="$ac_save_CFLAGS" |
| 22750 |
LIBS="$ac_save_LIBS" |
| 22751 |
fi |
| 22752 |
fi |
| 22753 |
GTK_CFLAGS="" |
| 22754 |
GTK_LIBS="" |
| 22755 |
ac_gtk_test="no" |
| 22756 |
fi |
| 22757 |
|
| 22758 |
|
| 22759 |
rm -f conf.gtktest |
| 22760 |
|
| 22761 |
if test ${gtk_config_minor_version=0} -ge 10 ; then |
| 22762 |
|
| 22763 |
$as_echo "#define GTK2_USE_RADIO_SET 1" >>confdefs.h |
| 22764 |
|
| 22765 |
fi |
| 22766 |
|
| 22767 |
if test ${gtk_config_minor_version=0} -ge 12 ; then |
| 22768 |
|
| 22769 |
$as_echo "#define GTK2_USE_TOOLTIP 1" >>confdefs.h |
| 22770 |
|
| 22771 |
fi |
| 22772 |
|
| 22773 |
if test ${gtk_config_minor_version=0} -ge 14 ; then |
| 22774 |
|
| 22775 |
$as_echo "#define GTK2_USE_GET_FOCUS 1" >>confdefs.h |
| 22776 |
|
| 22777 |
fi |
| 22778 |
|
| 22779 |
if test "x$ac_glib_test" != "xyes" -o "x$ac_gtk_test" != "xyes"; then |
| 22780 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot build sview without gtk library" >&5 |
| 22781 |
$as_echo "$as_me: WARNING: cannot build sview without gtk library" >&2;}; |
| 22782 |
fi |
| 22783 |
|
| 22784 |
if test "x$ac_glib_test" = "xyes" && test "x$ac_gtk_test" = "xyes"; then |
| 22785 |
BUILD_SVIEW_TRUE= |
| 22786 |
BUILD_SVIEW_FALSE='#' |
| 22787 |
else |
| 22788 |
BUILD_SVIEW_TRUE='#' |
| 22789 |
BUILD_SVIEW_FALSE= |
| 22790 |
fi |
| 22791 |
|
| 22792 |
|
| 22793 |
|
| 22794 |
ac_have_native_cray="yes" |
| 22795 |
ac_have_cray_network="no" |
| 22796 |
ac_really_no_cray="no" |
| 22797 |
|
| 22798 |
# Check whether --enable-cray-network was given. |
| 22799 |
if test "${enable_cray_network+set}" = set; then : |
| 22800 |
enableval=$enable_cray_network; case "$enableval" in |
| 22801 |
yes) ac_have_cray_network="yes" ac_have_native_cray="no" ;; |
| 22802 |
no) ac_have_cray_network="no" ;; |
| 22803 |
*) as_fn_error $? "bad value \"$enableval\" for --enable-cray-network" "$LINENO" 5 ;: |
| 22804 |
esac |
| 22805 |
|
| 22806 |
fi |
| 22807 |
|
| 22808 |
# Check whether --enable-really-no-cray was given. |
| 22809 |
if test "${enable_really_no_cray+set}" = set; then : |
| 22810 |
enableval=$enable_really_no_cray; case "$enableval" in |
| 22811 |
yes) ac_really_no_cray="yes" ac_have_native_cray="no" ;; |
| 22812 |
no) ac_really_no_cray="no" ;; |
| 22813 |
*) as_fn_error $? "bad value \"$enableval\" for --enable-really-no-cray" "$LINENO" 5 ;; |
| 22814 |
esac |
| 22815 |
|
| 22816 |
fi |
| 22817 |
|
| 22818 |
|
| 22819 |
if test "$ac_really_no_cray" = "yes"; then |
| 22820 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: Ignoring any potential Cray system" >&5 |
| 22821 |
$as_echo "$as_me: Ignoring any potential Cray system" >&6;} |
| 22822 |
else |
| 22823 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this is a Cray system" >&5 |
| 22824 |
$as_echo_n "checking whether this is a Cray system... " >&6; } |
| 22825 |
|
| 22826 |
_x_ac_cray_job_dir="job/default" |
| 22827 |
_x_ac_cray_alpscomm_dir="alpscomm/default" |
| 22828 |
|
| 22829 |
_x_ac_cray_dirs="/opt/cray" |
| 22830 |
|
| 22831 |
# Check whether --with-cray_dir was given. |
| 22832 |
if test "${with_cray_dir+set}" = set; then : |
| 22833 |
withval=$with_cray_dir; if test "x$with_cray_dir" != xno; then : |
| 22834 |
_x_ac_cray_dirs="$with_cray_dir $_x_ac_cray_dirs" |
| 22835 |
fi |
| 22836 |
fi |
| 22837 |
|
| 22838 |
|
| 22839 |
for d in $_x_ac_cray_dirs; do |
| 22840 |
test -d "$d" || continue |
| 22841 |
|
| 22842 |
if test "$ac_have_native_cray" = "yes"; then |
| 22843 |
_test_dir="$d/$_x_ac_cray_job_dir" |
| 22844 |
test -d "$_test_dir" || continue |
| 22845 |
test -d "$_test_dir/include" || continue |
| 22846 |
test -f "$_test_dir/include/job.h" || continue |
| 22847 |
test -d "$_test_dir/lib64" || continue |
| 22848 |
test -f "$_test_dir/lib64/libjob.so" || continue |
| 22849 |
|
| 22850 |
CRAY_JOB_CPPFLAGS="$CRAY_JOB_CPPFLAGS -I$_test_dir/include" |
| 22851 |
if test "$ac_with_rpath" = "yes"; then |
| 22852 |
CRAY_JOB_LDFLAGS="$CRAY_JOB_LDFLAGS -Wl,-rpath -Wl,$_test_dir/lib64 -L$_test_dir/lib64 -ljob" |
| 22853 |
else |
| 22854 |
CRAY_JOB_LDFLAGS="$CRAY_JOB_LDFLAGS -L$_test_dir/lib64 -ljob" |
| 22855 |
fi |
| 22856 |
fi |
| 22857 |
|
| 22858 |
_test_dir="$d/$_x_ac_cray_alpscomm_dir" |
| 22859 |
test -d "$_test_dir" || continue |
| 22860 |
test -d "$_test_dir/include" || continue |
| 22861 |
test -f "$_test_dir/include/alpscomm_cn.h" || continue |
| 22862 |
test -f "$_test_dir/include/alpscomm_sn.h" || continue |
| 22863 |
test -d "$_test_dir/lib64" || continue |
| 22864 |
test -f "$_test_dir/lib64/libalpscomm_cn.so" || continue |
| 22865 |
test -f "$_test_dir/lib64/libalpscomm_sn.so" || continue |
| 22866 |
|
| 22867 |
CRAY_ALPSC_CN_CPPFLAGS="$CRAY_ALPSC_CN_CPPFLAGS -I$_test_dir/include" |
| 22868 |
CRAY_ALPSC_SN_CPPFLAGS="$CRAY_ALPSC_SN_CPPFLAGS -I$_test_dir/include" |
| 22869 |
if test "$ac_with_rpath" = "yes"; then |
| 22870 |
CRAY_ALPSC_CN_LDFLAGS="$CRAY_ALPSC_CN_LDFLAGS -Wl,-rpath -Wl,$_test_dir/lib64 -L$_test_dir/lib64 -lalpscomm_cn" |
| 22871 |
CRAY_ALPSC_SN_LDFLAGS="$CRAY_ALPSC_SN_LDFLAGS -Wl,-rpath -Wl,$_test_dir/lib64 -L$_test_dir/lib64 -lalpscomm_sn" |
| 22872 |
else |
| 22873 |
CRAY_ALPSC_CN_LDFLAGS="$CRAY_ALPSC_CN_LDFLAGS -L$_test_dir/lib64 -lalpscomm_cn" |
| 22874 |
CRAY_ALPSC_SN_LDFLAGS="$CRAY_ALPSC_SN_LDFLAGS -L$_test_dir/lib64 -lalpscomm_sn" |
| 22875 |
fi |
| 22876 |
|
| 22877 |
CRAY_SWITCH_CPPFLAGS="$CRAY_SWITCH_CPPFLAGS $CRAY_JOB_CPPFLAGS $CRAY_ALPSC_CN_CPPFLAGS $CRAY_ALPSC_SN_CPPFLAGS" |
| 22878 |
CRAY_SWITCH_LDFLAGS="$CRAY_SWITCH_LDFLAGS $CRAY_JOB_LDFLAGS $CRAY_ALPSC_CN_LDFLAGS $CRAY_ALPSC_SN_LDFLAGS" |
| 22879 |
CRAY_SELECT_CPPFLAGS="$CRAY_SELECT_CPPFLAGS $CRAY_ALPSC_SN_CPPFLAGS" |
| 22880 |
CRAY_SELECT_LDFLAGS="$CRAY_SELECT_LDFLAGS $CRAY_ALPSC_SN_LDFLAGS" |
| 22881 |
|
| 22882 |
if test "$ac_have_native_cray" = "yes"; then |
| 22883 |
CRAY_TASK_CPPFLAGS="$CRAY_TASK_CPPFLAGS $CRAY_ALPSC_CN_CPPFLAGS" |
| 22884 |
CRAY_TASK_LDFLAGS="$CRAY_TASK_LDFLAGS $CRAY_ALPSC_CN_LDFLAGS" |
| 22885 |
fi |
| 22886 |
|
| 22887 |
saved_CPPFLAGS="$CPPFLAGS" |
| 22888 |
saved_LIBS="$LIBS" |
| 22889 |
CPPFLAGS="$CRAY_JOB_CPPFLAGS $CRAY_ALPSC_CN_CPPFLAGS $CRAY_ALPSC_SN_CPPFLAGS $saved_CPPFLAGS" |
| 22890 |
LIBS="$CRAY_JOB_LDFLAGS $CRAY_ALPSC_CN_LDFLAGS $CRAY_ALPSC_SN_LDFLAGS $saved_LIBS" |
| 22891 |
|
| 22892 |
if test "$ac_have_native_cray" = "yes"; then |
| 22893 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22894 |
/* end confdefs.h. */ |
| 22895 |
#include <job.h> |
| 22896 |
#include <alpscomm_sn.h> |
| 22897 |
#include <alpscomm_cn.h> |
| 22898 |
|
| 22899 |
int |
| 22900 |
main () |
| 22901 |
{ |
| 22902 |
job_getjidcnt(); |
| 22903 |
alpsc_release_cookies((char **)0, 0, 0); |
| 22904 |
alpsc_flush_lustre((char **)0); |
| 22905 |
|
| 22906 |
|
| 22907 |
; |
| 22908 |
return 0; |
| 22909 |
} |
| 22910 |
_ACEOF |
| 22911 |
if ac_fn_c_try_link "$LINENO"; then : |
| 22912 |
have_cray_files="yes" |
| 22913 |
else |
| 22914 |
as_fn_error $? "There is a problem linking to the Cray API" "$LINENO" 5 |
| 22915 |
fi |
| 22916 |
rm -f core conftest.err conftest.$ac_objext \ |
| 22917 |
conftest$ac_exeext conftest.$ac_ext |
| 22918 |
|
| 22919 |
elif test "$ac_have_cray_network" = "yes"; then |
| 22920 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22921 |
/* end confdefs.h. */ |
| 22922 |
#include <alpscomm_sn.h> |
| 22923 |
#include <alpscomm_cn.h> |
| 22924 |
|
| 22925 |
int |
| 22926 |
main () |
| 22927 |
{ |
| 22928 |
|
| 22929 |
alpsc_release_cookies((char **)0, 0, 0); |
| 22930 |
alpsc_flush_lustre((char **)0); |
| 22931 |
|
| 22932 |
|
| 22933 |
; |
| 22934 |
return 0; |
| 22935 |
} |
| 22936 |
_ACEOF |
| 22937 |
if ac_fn_c_try_link "$LINENO"; then : |
| 22938 |
have_cray_files="yes" |
| 22939 |
else |
| 22940 |
as_fn_error $? "There is a problem linking to the Cray API" "$LINENO" 5 |
| 22941 |
fi |
| 22942 |
rm -f core conftest.err conftest.$ac_objext \ |
| 22943 |
conftest$ac_exeext conftest.$ac_ext |
| 22944 |
fi |
| 22945 |
|
| 22946 |
LIBS="$saved_LIBS" |
| 22947 |
CPPFLAGS="$saved_CPPFLAGS" |
| 22948 |
|
| 22949 |
break |
| 22950 |
done |
| 22951 |
|
| 22952 |
if test -z "$have_cray_files"; then |
| 22953 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Unable to locate Cray APIs (usually in /opt/cray/alpscomm and /opt/cray/job)" >&5 |
| 22954 |
$as_echo "Unable to locate Cray APIs (usually in /opt/cray/alpscomm and /opt/cray/job)" >&6; } |
| 22955 |
ac_have_native_cray="no" |
| 22956 |
else |
| 22957 |
if test "$ac_have_native_cray" = "yes"; then |
| 22958 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Running on a Cray Aries system" >&5 |
| 22959 |
$as_echo "Running on a Cray Aries system" >&6; } |
| 22960 |
elif test "$ac_have_cray_network" = "yes"; then |
| 22961 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Running on a system with a Cray Aries network" >&5 |
| 22962 |
$as_echo "Running on a system with a Cray Aries network" >&6; } |
| 22963 |
fi |
| 22964 |
fi |
| 22965 |
|
| 22966 |
if test "$ac_have_native_cray" = "yes"; then |
| 22967 |
ac_have_native_cray="yes" |
| 22968 |
|
| 22969 |
$as_echo "#define HAVE_NATIVE_CRAY 1" >>confdefs.h |
| 22970 |
|
| 22971 |
elif test "$ac_have_cray_network" = "yes"; then |
| 22972 |
ac_have_cray_network="yes" |
| 22973 |
|
| 22974 |
$as_echo "#define HAVE_3D 1" >>confdefs.h |
| 22975 |
|
| 22976 |
|
| 22977 |
$as_echo "#define SYSTEM_DIMENSIONS 3" >>confdefs.h |
| 22978 |
|
| 22979 |
|
| 22980 |
$as_echo "#define HAVE_CRAY_NETWORK 1" >>confdefs.h |
| 22981 |
|
| 22982 |
fi |
| 22983 |
fi |
| 22984 |
|
| 22985 |
if test "$ac_have_native_cray" = "yes"; then |
| 22986 |
HAVE_NATIVE_CRAY_TRUE= |
| 22987 |
HAVE_NATIVE_CRAY_FALSE='#' |
| 22988 |
else |
| 22989 |
HAVE_NATIVE_CRAY_TRUE='#' |
| 22990 |
HAVE_NATIVE_CRAY_FALSE= |
| 22991 |
fi |
| 22992 |
|
| 22993 |
if test "$ac_have_cray_network" = "yes"; then |
| 22994 |
HAVE_CRAY_NETWORK_TRUE= |
| 22995 |
HAVE_CRAY_NETWORK_FALSE='#' |
| 22996 |
else |
| 22997 |
HAVE_CRAY_NETWORK_TRUE='#' |
| 22998 |
HAVE_CRAY_NETWORK_FALSE= |
| 22999 |
fi |
| 23000 |
|
| 23001 |
|
| 23002 |
|
| 23003 |
|
| 23004 |
|
| 23005 |
|
| 23006 |
|
| 23007 |
|
| 23008 |
|
| 23009 |
|
| 23010 |
|
| 23011 |
|
| 23012 |
_x_ac_datawarp_dirs="/opt/cray/dws/default" |
| 23013 |
_x_ac_datawarp_libs="lib64 lib" |
| 23014 |
|
| 23015 |
|
| 23016 |
# Check whether --with-datawarp was given. |
| 23017 |
if test "${with_datawarp+set}" = set; then : |
| 23018 |
withval=$with_datawarp; _x_ac_datawarp_dirs="$withval $_x_ac_datawarp_dirs" |
| 23019 |
fi |
| 23020 |
|
| 23021 |
|
| 23022 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for datawarp installation" >&5 |
| 23023 |
$as_echo_n "checking for datawarp installation... " >&6; } |
| 23024 |
if ${x_ac_cv_datawarp_dir+:} false; then : |
| 23025 |
$as_echo_n "(cached) " >&6 |
| 23026 |
else |
| 23027 |
|
| 23028 |
for d in $_x_ac_datawarp_dirs; do |
| 23029 |
test -d "$d" || continue |
| 23030 |
test -d "$d/include" || continue |
| 23031 |
test -f "$d/include/dws_thin.h" || continue |
| 23032 |
for bit in $_x_ac_datawarp_libs; do |
| 23033 |
test -d "$d/$bit" || continue |
| 23034 |
test -f "$d/$bit/libdws_thin.so" || continue |
| 23035 |
x_ac_cv_datawarp_dir=$d |
| 23036 |
break |
| 23037 |
done |
| 23038 |
test -n "$x_ac_cv_datawarp_dir" && break |
| 23039 |
done |
| 23040 |
|
| 23041 |
fi |
| 23042 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $x_ac_cv_datawarp_dir" >&5 |
| 23043 |
$as_echo "$x_ac_cv_datawarp_dir" >&6; } |
| 23044 |
|
| 23045 |
if test -z "$x_ac_cv_datawarp_dir"; then |
| 23046 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to locate DataWarp installation" >&5 |
| 23047 |
$as_echo "$as_me: WARNING: unable to locate DataWarp installation" >&2;} |
| 23048 |
else |
| 23049 |
DATAWARP_CPPFLAGS="-I$x_ac_cv_datawarp_dir/include" |
| 23050 |
if test "$ac_with_rpath" = "yes"; then |
| 23051 |
DATAWARP_LDFLAGS="-Wl,-rpath -Wl,$x_ac_cv_datawarp_dir/$bit -L$x_ac_cv_datawarp_dir/$bit -ldws_thin" |
| 23052 |
else |
| 23053 |
DATAWARP_LDFLAGS="-L$x_ac_cv_datawarp_dir/$bit -ldws_thin" |
| 23054 |
fi |
| 23055 |
|
| 23056 |
$as_echo "#define HAVE_DATAWARP 1" >>confdefs.h |
| 23057 |
|
| 23058 |
fi |
| 23059 |
|
| 23060 |
|
| 23061 |
|
| 23062 |
|
| 23063 |
case ${host_os} in |
| 23064 |
darwin* | freebsd* | netbsd* ) |
| 23065 |
with_switch_cray_aries=no |
| 23066 |
;; |
| 23067 |
*) |
| 23068 |
with_switch_cray_aries=yes |
| 23069 |
;; |
| 23070 |
esac |
| 23071 |
if test x$with_switch_cray_aries = xyes; then |
| 23072 |
WITH_SWITCH_CRAY_ARIES_TRUE= |
| 23073 |
WITH_SWITCH_CRAY_ARIES_FALSE='#' |
| 23074 |
else |
| 23075 |
WITH_SWITCH_CRAY_ARIES_TRUE='#' |
| 23076 |
WITH_SWITCH_CRAY_ARIES_FALSE= |
| 23077 |
fi |
| 23078 |
|
| 23079 |
|
| 23080 |
|
| 23081 |
|
| 23082 |
|
| 23083 |
|
| 23084 |
|
| 23085 |
# |
| 23086 |
case "$host" in |
| 23087 |
*-*-linux*) |
| 23088 |
$as_echo "#define SETPROCTITLE_STRATEGY PS_USE_CLOBBER_ARGV" >>confdefs.h |
| 23089 |
|
| 23090 |
$as_echo "#define SETPROCTITLE_PS_PADDING '\\0'" >>confdefs.h |
| 23091 |
|
| 23092 |
;; |
| 23093 |
*) |
| 23094 |
|
| 23095 |
$as_echo "#define SETPROCTITLE_STRATEGY PS_USE_NONE" >>confdefs.h |
| 23096 |
|
| 23097 |
|
| 23098 |
$as_echo "#define SETPROCTITLE_PS_PADDING '\\0'" >>confdefs.h |
| 23099 |
|
| 23100 |
;; |
| 23101 |
esac |
| 23102 |
|
| 23103 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5 |
| 23104 |
$as_echo_n "checking for __progname... " >&6; } |
| 23105 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23106 |
/* end confdefs.h. */ |
| 23107 |
#include <stdio.h> |
| 23108 |
int |
| 23109 |
main () |
| 23110 |
{ |
| 23111 |
extern char *__progname; puts(__progname); |
| 23112 |
; |
| 23113 |
return 0; |
| 23114 |
} |
| 23115 |
_ACEOF |
| 23116 |
if ac_fn_c_try_link "$LINENO"; then : |
| 23117 |
ac_have__progname=yes |
| 23118 |
|
| 23119 |
fi |
| 23120 |
rm -f core conftest.err conftest.$ac_objext \ |
| 23121 |
conftest$ac_exeext conftest.$ac_ext |
| 23122 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_have__progname=no}" >&5 |
| 23123 |
$as_echo "${ac_have__progname=no}" >&6; } |
| 23124 |
if test "$ac_have__progname" = "yes"; then |
| 23125 |
|
| 23126 |
$as_echo "#define HAVE__PROGNAME 1" >>confdefs.h |
| 23127 |
|
| 23128 |
fi |
| 23129 |
|
| 23130 |
|
| 23131 |
|
| 23132 |
|
| 23133 |
|
| 23134 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether optimizations are enabled" >&5 |
| 23135 |
$as_echo_n "checking whether optimizations are enabled... " >&6; } |
| 23136 |
# Check whether --enable-optimizations was given. |
| 23137 |
if test "${enable_optimizations+set}" = set; then : |
| 23138 |
enableval=$enable_optimizations; case "$enableval" in |
| 23139 |
yes) x_ac_optimizations=yes ;; |
| 23140 |
no) x_ac_optimizations=no ;; |
| 23141 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: doh!" >&5 |
| 23142 |
$as_echo "doh!" >&6; } |
| 23143 |
as_fn_error $? "bad value \"$enableval\" for --enable-optimizations" "$LINENO" 5 ;; |
| 23144 |
esac |
| 23145 |
|
| 23146 |
else |
| 23147 |
x_ac_optimizations=yes |
| 23148 |
|
| 23149 |
fi |
| 23150 |
|
| 23151 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${x_ac_optimizations}" >&5 |
| 23152 |
$as_echo "${x_ac_optimizations}" >&6; } |
| 23153 |
|
| 23154 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not developer options are enabled" >&5 |
| 23155 |
$as_echo_n "checking whether or not developer options are enabled... " >&6; } |
| 23156 |
# Check whether --enable-developer was given. |
| 23157 |
if test "${enable_developer+set}" = set; then : |
| 23158 |
enableval=$enable_developer; case "$enableval" in |
| 23159 |
yes) x_ac_developer=yes ;; |
| 23160 |
no) x_ac_developer=no ;; |
| 23161 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: doh!" >&5 |
| 23162 |
$as_echo "doh!" >&6; } |
| 23163 |
as_fn_error $? "bad value \"$enableval\" for --enable-developer" "$LINENO" 5 ;; |
| 23164 |
esac |
| 23165 |
|
| 23166 |
|
| 23167 |
fi |
| 23168 |
|
| 23169 |
if test "$x_ac_developer" = yes; then |
| 23170 |
test "$GCC" = yes && CFLAGS="$CFLAGS -Werror" |
| 23171 |
test "$GXX" = yes && CXXFLAGS="$CXXFLAGS -Werror" |
| 23172 |
# automatically turn on --enable-debug if being a developer |
| 23173 |
x_ac_debug=yes |
| 23174 |
else |
| 23175 |
|
| 23176 |
$as_echo "#define NDEBUG 1" >>confdefs.h |
| 23177 |
|
| 23178 |
fi |
| 23179 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${x_ac_developer=no}" >&5 |
| 23180 |
$as_echo "${x_ac_developer=no}" >&6; } |
| 23181 |
|
| 23182 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5 |
| 23183 |
$as_echo_n "checking whether debugging is enabled... " >&6; } |
| 23184 |
# Check whether --enable-debug was given. |
| 23185 |
if test "${enable_debug+set}" = set; then : |
| 23186 |
enableval=$enable_debug; case "$enableval" in |
| 23187 |
yes) x_ac_debug=yes ;; |
| 23188 |
no) x_ac_debug=no ;; |
| 23189 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: doh!" >&5 |
| 23190 |
$as_echo "doh!" >&6; } |
| 23191 |
as_fn_error $? "bad value \"$enableval\" for --enable-debug" "$LINENO" 5 ;; |
| 23192 |
esac |
| 23193 |
|
| 23194 |
else |
| 23195 |
x_ac_debug=yes |
| 23196 |
|
| 23197 |
fi |
| 23198 |
|
| 23199 |
if test "$x_ac_debug" = yes; then |
| 23200 |
# you will most likely get a -O2 in you compile line, but the last option |
| 23201 |
# is the only one that is looked at. |
| 23202 |
# We used to force this to -O0, but this precludes the use of FSTACK_PROTECT |
| 23203 |
# which is injected into RHEL7/SuSE12 RPM builds rather aggressively. |
| 23204 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ggdb3" >&5 |
| 23205 |
$as_echo_n "checking whether C compiler accepts -ggdb3... " >&6; } |
| 23206 |
if ${ax_cv_check_cflags___ggdb3+:} false; then : |
| 23207 |
$as_echo_n "(cached) " >&6 |
| 23208 |
else |
| 23209 |
|
| 23210 |
ax_check_save_flags=$CFLAGS |
| 23211 |
CFLAGS="$CFLAGS -ggdb3" |
| 23212 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23213 |
/* end confdefs.h. */ |
| 23214 |
|
| 23215 |
int |
| 23216 |
main () |
| 23217 |
{ |
| 23218 |
|
| 23219 |
; |
| 23220 |
return 0; |
| 23221 |
} |
| 23222 |
_ACEOF |
| 23223 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 23224 |
ax_cv_check_cflags___ggdb3=yes |
| 23225 |
else |
| 23226 |
ax_cv_check_cflags___ggdb3=no |
| 23227 |
fi |
| 23228 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23229 |
CFLAGS=$ax_check_save_flags |
| 23230 |
fi |
| 23231 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ggdb3" >&5 |
| 23232 |
$as_echo "$ax_cv_check_cflags___ggdb3" >&6; } |
| 23233 |
if test "x$ax_cv_check_cflags___ggdb3" = xyes; then : |
| 23234 |
CFLAGS="$CFLAGS -ggdb3" |
| 23235 |
else |
| 23236 |
: |
| 23237 |
fi |
| 23238 |
|
| 23239 |
|
| 23240 |
test "$GCC" = yes && CFLAGS="$CFLAGS -Wall -g -O1 -fno-strict-aliasing" |
| 23241 |
test "$GXX" = yes && CXXFLAGS="$CXXFLAGS -Wall -g -O1 -fno-strict-aliasing" |
| 23242 |
fi |
| 23243 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${x_ac_debug=no}" >&5 |
| 23244 |
$as_echo "${x_ac_debug=no}" >&6; } |
| 23245 |
|
| 23246 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memory leak debugging is enabled" >&5 |
| 23247 |
$as_echo_n "checking whether memory leak debugging is enabled... " >&6; } |
| 23248 |
# Check whether --enable-memory-leak-debug was given. |
| 23249 |
if test "${enable_memory_leak_debug+set}" = set; then : |
| 23250 |
enableval=$enable_memory_leak_debug; case "$enableval" in |
| 23251 |
yes) x_ac_memory_debug=yes ;; |
| 23252 |
no) x_ac_memory_debug=no ;; |
| 23253 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: doh!" >&5 |
| 23254 |
$as_echo "doh!" >&6; } |
| 23255 |
as_fn_error $? "bad value \"$enableval\" for --enable-memory-leak-debug" "$LINENO" 5 ;; |
| 23256 |
esac |
| 23257 |
|
| 23258 |
|
| 23259 |
fi |
| 23260 |
|
| 23261 |
if test "$x_ac_memory_debug" = yes; then |
| 23262 |
|
| 23263 |
$as_echo "#define MEMORY_LEAK_DEBUG 1" >>confdefs.h |
| 23264 |
|
| 23265 |
fi |
| 23266 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${x_ac_memory_debug=no}" >&5 |
| 23267 |
$as_echo "${x_ac_memory_debug=no}" >&6; } |
| 23268 |
|
| 23269 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable slurmd operation on a front-end" >&5 |
| 23270 |
$as_echo_n "checking whether to enable slurmd operation on a front-end... " >&6; } |
| 23271 |
# Check whether --enable-front-end was given. |
| 23272 |
if test "${enable_front_end+set}" = set; then : |
| 23273 |
enableval=$enable_front_end; case "$enableval" in |
| 23274 |
yes) x_ac_front_end=yes ;; |
| 23275 |
no) x_ac_front_end=no ;; |
| 23276 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: doh!" >&5 |
| 23277 |
$as_echo "doh!" >&6; } |
| 23278 |
as_fn_error $? "bad value \"$enableval\" for --enable-front-end" "$LINENO" 5 ;; |
| 23279 |
esac |
| 23280 |
|
| 23281 |
|
| 23282 |
fi |
| 23283 |
|
| 23284 |
if test "$x_ac_front_end" = yes; then |
| 23285 |
|
| 23286 |
$as_echo "#define HAVE_FRONT_END 1" >>confdefs.h |
| 23287 |
|
| 23288 |
fi |
| 23289 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${x_ac_front_end=no}" >&5 |
| 23290 |
$as_echo "${x_ac_front_end=no}" >&6; } |
| 23291 |
|
| 23292 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugger partial attach enabled" >&5 |
| 23293 |
$as_echo_n "checking whether debugger partial attach enabled... " >&6; } |
| 23294 |
# Check whether --enable-partial-attach was given. |
| 23295 |
if test "${enable_partial_attach+set}" = set; then : |
| 23296 |
enableval=$enable_partial_attach; case "$enableval" in |
| 23297 |
yes) x_ac_partial_attach=yes ;; |
| 23298 |
no) x_ac_partial_attach=no ;; |
| 23299 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: doh!" >&5 |
| 23300 |
$as_echo "doh!" >&6; } |
| 23301 |
as_fn_error $? "bad value \"$enableval\" for --enable-partial-leak-attach" "$LINENO" 5 ;; |
| 23302 |
esac |
| 23303 |
|
| 23304 |
|
| 23305 |
fi |
| 23306 |
|
| 23307 |
if test "$x_ac_partial_attach" != "no"; then |
| 23308 |
|
| 23309 |
$as_echo "#define DEBUGGER_PARTIAL_ATTACH 1" >>confdefs.h |
| 23310 |
|
| 23311 |
fi |
| 23312 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${x_ac_partial_attach=no}" >&5 |
| 23313 |
$as_echo "${x_ac_partial_attach=no}" >&6; } |
| 23314 |
|
| 23315 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether salloc should kill child processes at job termination" >&5 |
| 23316 |
$as_echo_n "checking whether salloc should kill child processes at job termination... " >&6; } |
| 23317 |
# Check whether --enable-salloc-kill-cmd was given. |
| 23318 |
if test "${enable_salloc_kill_cmd+set}" = set; then : |
| 23319 |
enableval=$enable_salloc_kill_cmd; case "$enableval" in |
| 23320 |
yes) x_ac_salloc_kill_cmd=yes ;; |
| 23321 |
no) x_ac_salloc_kill_cmd=no ;; |
| 23322 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: doh!" >&5 |
| 23323 |
$as_echo "doh!" >&6; } |
| 23324 |
as_fn_error $? "bad value \"$enableval\" for --enable-salloc-kill-cmd" "$LINENO" 5 ;; |
| 23325 |
esac |
| 23326 |
|
| 23327 |
|
| 23328 |
fi |
| 23329 |
|
| 23330 |
if test "$x_ac_salloc_kill_cmd" = yes; then |
| 23331 |
|
| 23332 |
$as_echo "#define SALLOC_KILL_CMD 1" >>confdefs.h |
| 23333 |
|
| 23334 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 23335 |
$as_echo "yes" >&6; } |
| 23336 |
else |
| 23337 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 23338 |
$as_echo "no" >&6; } |
| 23339 |
fi |
| 23340 |
|
| 23341 |
# NOTE: Default value of SALLOC_RUN_FOREGROUND is system dependent |
| 23342 |
# x_ac_salloc_background is set to "no" for Cray systems in x_ac_cray.m4 |
| 23343 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable salloc execution in the background" >&5 |
| 23344 |
$as_echo_n "checking whether to disable salloc execution in the background... " >&6; } |
| 23345 |
# Check whether --enable-salloc-background was given. |
| 23346 |
if test "${enable_salloc_background+set}" = set; then : |
| 23347 |
enableval=$enable_salloc_background; case "$enableval" in |
| 23348 |
yes) x_ac_salloc_background=yes ;; |
| 23349 |
no) x_ac_salloc_background=no ;; |
| 23350 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: doh!" >&5 |
| 23351 |
$as_echo "doh!" >&6; } |
| 23352 |
as_fn_error $? "bad value \"$enableval\" for --disable-salloc-background" "$LINENO" 5 ;; |
| 23353 |
esac |
| 23354 |
|
| 23355 |
|
| 23356 |
fi |
| 23357 |
|
| 23358 |
if test "$x_ac_salloc_background" = no; then |
| 23359 |
|
| 23360 |
$as_echo "#define SALLOC_RUN_FOREGROUND 1" >>confdefs.h |
| 23361 |
|
| 23362 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 23363 |
$as_echo "yes" >&6; } |
| 23364 |
else |
| 23365 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 23366 |
$as_echo "no" >&6; } |
| 23367 |
fi |
| 23368 |
|
| 23369 |
if test "$x_ac_optimizations" = no; then |
| 23370 |
test "$GCC" = yes && CFLAGS="$CFLAGS -O0" |
| 23371 |
fi |
| 23372 |
|
| 23373 |
|
| 23374 |
|
| 23375 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for slurmctld default port" >&5 |
| 23376 |
$as_echo_n "checking for slurmctld default port... " >&6; } |
| 23377 |
|
| 23378 |
# Check whether --with-slurmctld-port was given. |
| 23379 |
if test "${with_slurmctld_port+set}" = set; then : |
| 23380 |
withval=$with_slurmctld_port; if test `expr match "$withval" '[0-9]*$'` -gt 0; then |
| 23381 |
slurmctldport="$withval" |
| 23382 |
fi |
| 23383 |
|
| 23384 |
|
| 23385 |
fi |
| 23386 |
|
| 23387 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${slurmctldport=6817}" >&5 |
| 23388 |
$as_echo "${slurmctldport=6817}" >&6; } |
| 23389 |
|
| 23390 |
cat >>confdefs.h <<_ACEOF |
| 23391 |
#define SLURMCTLD_PORT $slurmctldport |
| 23392 |
_ACEOF |
| 23393 |
|
| 23394 |
|
| 23395 |
|
| 23396 |
|
| 23397 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for slurmd default port" >&5 |
| 23398 |
$as_echo_n "checking for slurmd default port... " >&6; } |
| 23399 |
|
| 23400 |
# Check whether --with-slurmd-port was given. |
| 23401 |
if test "${with_slurmd_port+set}" = set; then : |
| 23402 |
withval=$with_slurmd_port; if test `expr match "$withval" '[0-9]*$'` -gt 0; then |
| 23403 |
slurmdport="$withval" |
| 23404 |
fi |
| 23405 |
|
| 23406 |
|
| 23407 |
fi |
| 23408 |
|
| 23409 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${slurmdport=6818}" >&5 |
| 23410 |
$as_echo "${slurmdport=6818}" >&6; } |
| 23411 |
|
| 23412 |
cat >>confdefs.h <<_ACEOF |
| 23413 |
#define SLURMD_PORT $slurmdport |
| 23414 |
_ACEOF |
| 23415 |
|
| 23416 |
|
| 23417 |
|
| 23418 |
|
| 23419 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for slurmdbd default port" >&5 |
| 23420 |
$as_echo_n "checking for slurmdbd default port... " >&6; } |
| 23421 |
|
| 23422 |
# Check whether --with-slurmdbd-port was given. |
| 23423 |
if test "${with_slurmdbd_port+set}" = set; then : |
| 23424 |
withval=$with_slurmdbd_port; if test `expr match "$withval" '[0-9]*$'` -gt 0; then |
| 23425 |
slurmdbdport="$withval" |
| 23426 |
fi |
| 23427 |
|
| 23428 |
|
| 23429 |
fi |
| 23430 |
|
| 23431 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${slurmdbdport=6819}" >&5 |
| 23432 |
$as_echo "${slurmdbdport=6819}" >&6; } |
| 23433 |
|
| 23434 |
cat >>confdefs.h <<_ACEOF |
| 23435 |
#define SLURMDBD_PORT $slurmdbdport |
| 23436 |
_ACEOF |
| 23437 |
|
| 23438 |
|
| 23439 |
|
| 23440 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for slurmctld default port count" >&5 |
| 23441 |
$as_echo_n "checking for slurmctld default port count... " >&6; } |
| 23442 |
|
| 23443 |
# Check whether --with-slurmctld-port-count was given. |
| 23444 |
if test "${with_slurmctld_port_count+set}" = set; then : |
| 23445 |
withval=$with_slurmctld_port_count; if test `expr match "$withval" '[0-9]*$'` -gt 0; then |
| 23446 |
slurmctldportcount="$withval" |
| 23447 |
fi |
| 23448 |
|
| 23449 |
|
| 23450 |
fi |
| 23451 |
|
| 23452 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${slurmctldportcount=1}" >&5 |
| 23453 |
$as_echo "${slurmctldportcount=1}" >&6; } |
| 23454 |
|
| 23455 |
cat >>confdefs.h <<_ACEOF |
| 23456 |
#define SLURMCTLD_PORT_COUNT $slurmctldportcount |
| 23457 |
_ACEOF |
| 23458 |
|
| 23459 |
|
| 23460 |
|
| 23461 |
|
| 23462 |
|
| 23463 |
if test "x$prefix" = "xNONE" ; then |
| 23464 |
|
| 23465 |
cat >>confdefs.h <<_ACEOF |
| 23466 |
#define SLURM_PREFIX "/usr/local" |
| 23467 |
_ACEOF |
| 23468 |
|
| 23469 |
else |
| 23470 |
|
| 23471 |
cat >>confdefs.h <<_ACEOF |
| 23472 |
#define SLURM_PREFIX "$prefix" |
| 23473 |
_ACEOF |
| 23474 |
|
| 23475 |
fi |
| 23476 |
|
| 23477 |
|
| 23478 |
|
| 23479 |
_x_ac_netloc_dirs="/usr /usr/local" |
| 23480 |
_x_ac_netloc_libs="lib64 lib" |
| 23481 |
x_ac_cv_netloc_nosub="no" |
| 23482 |
|
| 23483 |
|
| 23484 |
# Check whether --with-netloc was given. |
| 23485 |
if test "${with_netloc+set}" = set; then : |
| 23486 |
withval=$with_netloc; if test "x$with_netloc" != xno; then : |
| 23487 |
_x_ac_netloc_dirs="$with_netloc $_x_ac_netloc_dirs" |
| 23488 |
fi |
| 23489 |
fi |
| 23490 |
|
| 23491 |
|
| 23492 |
if test "x$with_netloc" = xno; then |
| 23493 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for netloc disabled" >&5 |
| 23494 |
$as_echo "$as_me: WARNING: support for netloc disabled" >&2;} |
| 23495 |
else |
| 23496 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netloc installation" >&5 |
| 23497 |
$as_echo_n "checking for netloc installation... " >&6; } |
| 23498 |
if ${x_ac_cv_netloc_dir+:} false; then : |
| 23499 |
$as_echo_n "(cached) " >&6 |
| 23500 |
else |
| 23501 |
|
| 23502 |
for d in $_x_ac_netloc_dirs; do |
| 23503 |
test -d "$d" || continue |
| 23504 |
test -d "$d/include" || continue |
| 23505 |
test -f "$d/include/netloc.h" || continue |
| 23506 |
for bit in $_x_ac_netloc_libs; do |
| 23507 |
test -d "$d/$bit" || continue |
| 23508 |
_x_ac_netloc_cppflags_save="$CPPFLAGS" |
| 23509 |
CPPFLAGS="-I$d/include $CPPFLAGS" |
| 23510 |
_x_ac_netloc_libs_save="$LIBS" |
| 23511 |
LIBS="-L$d/$bit -lnetloc $LIBS" |
| 23512 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23513 |
/* end confdefs.h. */ |
| 23514 |
#include <netloc.h> |
| 23515 |
#include <netloc/map.h> |
| 23516 |
int |
| 23517 |
main () |
| 23518 |
{ |
| 23519 |
netloc_map_t map; |
| 23520 |
netloc_map_create(&map); |
| 23521 |
; |
| 23522 |
return 0; |
| 23523 |
} |
| 23524 |
_ACEOF |
| 23525 |
if ac_fn_c_try_link "$LINENO"; then : |
| 23526 |
x_ac_cv_netloc_dir=$d |
| 23527 |
fi |
| 23528 |
rm -f core conftest.err conftest.$ac_objext \ |
| 23529 |
conftest$ac_exeext conftest.$ac_ext |
| 23530 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23531 |
/* end confdefs.h. */ |
| 23532 |
#include <netloc.h> |
| 23533 |
#include <netloc_map.h> |
| 23534 |
int |
| 23535 |
main () |
| 23536 |
{ |
| 23537 |
netloc_map_t map; |
| 23538 |
netloc_map_create(&map) |
| 23539 |
; |
| 23540 |
return 0; |
| 23541 |
} |
| 23542 |
_ACEOF |
| 23543 |
if ac_fn_c_try_link "$LINENO"; then : |
| 23544 |
x_ac_cv_netloc_dir=$d |
| 23545 |
x_ac_cv_netloc_nosub="yes" |
| 23546 |
|
| 23547 |
fi |
| 23548 |
rm -f core conftest.err conftest.$ac_objext \ |
| 23549 |
conftest$ac_exeext conftest.$ac_ext |
| 23550 |
CPPFLAGS="$_x_ac_netloc_cppflags_save" |
| 23551 |
LIBS="$_x_ac_netloc_libs_save" |
| 23552 |
test -n "$x_ac_cv_netloc_dir" && break |
| 23553 |
done |
| 23554 |
test -n "$x_ac_cv_netloc_dir" && break |
| 23555 |
done |
| 23556 |
|
| 23557 |
fi |
| 23558 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $x_ac_cv_netloc_dir" >&5 |
| 23559 |
$as_echo "$x_ac_cv_netloc_dir" >&6; } |
| 23560 |
|
| 23561 |
if test -z "$x_ac_cv_netloc_dir"; then |
| 23562 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to locate netloc installation" >&5 |
| 23563 |
$as_echo "$as_me: WARNING: unable to locate netloc installation" >&2;} |
| 23564 |
else |
| 23565 |
NETLOC_CPPFLAGS="-I$x_ac_cv_netloc_dir/include" |
| 23566 |
if test "$ac_with_rpath" = "yes"; then |
| 23567 |
NETLOC_LDFLAGS="-Wl,-rpath -Wl,$x_ac_cv_netloc_dir/$bit -L$x_ac_cv_netloc_dir/$bit" |
| 23568 |
else |
| 23569 |
NETLOC_LDFLAGS="-L$x_ac_cv_netloc_dir/$bit" |
| 23570 |
fi |
| 23571 |
NETLOC_LIBS="-lnetloc" |
| 23572 |
|
| 23573 |
$as_echo "#define HAVE_NETLOC 1" >>confdefs.h |
| 23574 |
|
| 23575 |
if test "$x_ac_cv_netloc_nosub" = "yes"; then |
| 23576 |
|
| 23577 |
$as_echo "#define HAVE_NETLOC_NOSUB 1" >>confdefs.h |
| 23578 |
|
| 23579 |
fi |
| 23580 |
fi |
| 23581 |
|
| 23582 |
|
| 23583 |
|
| 23584 |
|
| 23585 |
fi |
| 23586 |
|
| 23587 |
if test -n "$x_ac_cv_netloc_dir"; then |
| 23588 |
HAVE_NETLOC_TRUE= |
| 23589 |
HAVE_NETLOC_FALSE='#' |
| 23590 |
else |
| 23591 |
HAVE_NETLOC_TRUE='#' |
| 23592 |
HAVE_NETLOC_FALSE= |
| 23593 |
fi |
| 23594 |
|
| 23595 |
|
| 23596 |
|
| 23597 |
|
| 23598 |
x_ac_lua_pkg_name="lua" |
| 23599 |
#check for 5.3 then 5.2 then 5.1 |
| 23600 |
if test -n "$PKG_CONFIG" && \ |
| 23601 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.3\""; } >&5 |
| 23602 |
($PKG_CONFIG --exists --print-errors "lua5.3") 2>&5 |
| 23603 |
ac_status=$? |
| 23604 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 23605 |
test $ac_status = 0; }; then |
| 23606 |
x_ac_lua_pkg_name=lua5.3 |
| 23607 |
else |
| 23608 |
if test -n "$PKG_CONFIG" && \ |
| 23609 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.3\""; } >&5 |
| 23610 |
($PKG_CONFIG --exists --print-errors "lua-5.3") 2>&5 |
| 23611 |
ac_status=$? |
| 23612 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 23613 |
test $ac_status = 0; }; then |
| 23614 |
x_ac_lua_pkg_name=lua-5.3 |
| 23615 |
else |
| 23616 |
if test -n "$PKG_CONFIG" && \ |
| 23617 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5 |
| 23618 |
($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5 |
| 23619 |
ac_status=$? |
| 23620 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 23621 |
test $ac_status = 0; }; then |
| 23622 |
x_ac_lua_pkg_name=lua5.2 |
| 23623 |
else |
| 23624 |
if test -n "$PKG_CONFIG" && \ |
| 23625 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5 |
| 23626 |
($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5 |
| 23627 |
ac_status=$? |
| 23628 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 23629 |
test $ac_status = 0; }; then |
| 23630 |
x_ac_lua_pkg_name=lua-5.2 |
| 23631 |
else |
| 23632 |
if test -n "$PKG_CONFIG" && \ |
| 23633 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5 |
| 23634 |
($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5 |
| 23635 |
ac_status=$? |
| 23636 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 23637 |
test $ac_status = 0; }; then |
| 23638 |
x_ac_lua_pkg_name=lua5.1 |
| 23639 |
else |
| 23640 |
if test -n "$PKG_CONFIG" && \ |
| 23641 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5 |
| 23642 |
($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5 |
| 23643 |
ac_status=$? |
| 23644 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 23645 |
test $ac_status = 0; }; then |
| 23646 |
x_ac_lua_pkg_name=lua-5.1 |
| 23647 |
else |
| 23648 |
x_ac_lua_pkg_name="lua >= 5.1" |
| 23649 |
fi |
| 23650 |
fi |
| 23651 |
fi |
| 23652 |
fi |
| 23653 |
fi |
| 23654 |
fi |
| 23655 |
|
| 23656 |
pkg_failed=no |
| 23657 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5 |
| 23658 |
$as_echo_n "checking for lua... " >&6; } |
| 23659 |
|
| 23660 |
if test -n "$lua_CFLAGS"; then |
| 23661 |
pkg_cv_lua_CFLAGS="$lua_CFLAGS" |
| 23662 |
elif test -n "$PKG_CONFIG"; then |
| 23663 |
if test -n "$PKG_CONFIG" && \ |
| 23664 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${x_ac_lua_pkg_name}\""; } >&5 |
| 23665 |
($PKG_CONFIG --exists --print-errors "${x_ac_lua_pkg_name}") 2>&5 |
| 23666 |
ac_status=$? |
| 23667 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 23668 |
test $ac_status = 0; }; then |
| 23669 |
pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "${x_ac_lua_pkg_name}" 2>/dev/null` |
| 23670 |
test "x$?" != "x0" && pkg_failed=yes |
| 23671 |
else |
| 23672 |
pkg_failed=yes |
| 23673 |
fi |
| 23674 |
else |
| 23675 |
pkg_failed=untried |
| 23676 |
fi |
| 23677 |
if test -n "$lua_LIBS"; then |
| 23678 |
pkg_cv_lua_LIBS="$lua_LIBS" |
| 23679 |
elif test -n "$PKG_CONFIG"; then |
| 23680 |
if test -n "$PKG_CONFIG" && \ |
| 23681 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${x_ac_lua_pkg_name}\""; } >&5 |
| 23682 |
($PKG_CONFIG --exists --print-errors "${x_ac_lua_pkg_name}") 2>&5 |
| 23683 |
ac_status=$? |
| 23684 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 23685 |
test $ac_status = 0; }; then |
| 23686 |
pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "${x_ac_lua_pkg_name}" 2>/dev/null` |
| 23687 |
test "x$?" != "x0" && pkg_failed=yes |
| 23688 |
else |
| 23689 |
pkg_failed=yes |
| 23690 |
fi |
| 23691 |
else |
| 23692 |
pkg_failed=untried |
| 23693 |
fi |
| 23694 |
|
| 23695 |
|
| 23696 |
|
| 23697 |
if test $pkg_failed = yes; then |
| 23698 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 23699 |
$as_echo "no" >&6; } |
| 23700 |
|
| 23701 |
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 23702 |
_pkg_short_errors_supported=yes |
| 23703 |
else |
| 23704 |
_pkg_short_errors_supported=no |
| 23705 |
fi |
| 23706 |
if test $_pkg_short_errors_supported = yes; then |
| 23707 |
lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "${x_ac_lua_pkg_name}" 2>&1` |
| 23708 |
else |
| 23709 |
lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "${x_ac_lua_pkg_name}" 2>&1` |
| 23710 |
fi |
| 23711 |
# Put the nasty error message in config.log where it belongs |
| 23712 |
echo "$lua_PKG_ERRORS" >&5 |
| 23713 |
|
| 23714 |
x_ac_have_lua="no" |
| 23715 |
elif test $pkg_failed = untried; then |
| 23716 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 23717 |
$as_echo "no" >&6; } |
| 23718 |
x_ac_have_lua="no" |
| 23719 |
else |
| 23720 |
lua_CFLAGS=$pkg_cv_lua_CFLAGS |
| 23721 |
lua_LIBS=$pkg_cv_lua_LIBS |
| 23722 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 23723 |
$as_echo "yes" >&6; } |
| 23724 |
x_ac_have_lua="yes" |
| 23725 |
fi |
| 23726 |
|
| 23727 |
if test "x$x_ac_have_lua" = "xyes"; then |
| 23728 |
saved_CFLAGS="$CFLAGS" |
| 23729 |
saved_LIBS="$LIBS" |
| 23730 |
lua_CFLAGS="$lua_CFLAGS" |
| 23731 |
CFLAGS="$CFLAGS $lua_CFLAGS" |
| 23732 |
LIBS="$LIBS $lua_LIBS" |
| 23733 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether we can link to liblua" >&5 |
| 23734 |
$as_echo_n "checking for whether we can link to liblua... " >&6; } |
| 23735 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23736 |
/* end confdefs.h. */ |
| 23737 |
#include <lua.h> |
| 23738 |
#include <lauxlib.h> |
| 23739 |
#include <lualib.h> |
| 23740 |
|
| 23741 |
int |
| 23742 |
main () |
| 23743 |
{ |
| 23744 |
lua_State *L = luaL_newstate (); luaL_openlibs(L); |
| 23745 |
|
| 23746 |
; |
| 23747 |
return 0; |
| 23748 |
} |
| 23749 |
_ACEOF |
| 23750 |
if ac_fn_c_try_link "$LINENO"; then : |
| 23751 |
|
| 23752 |
else |
| 23753 |
x_ac_have_lua="no" |
| 23754 |
fi |
| 23755 |
rm -f core conftest.err conftest.$ac_objext \ |
| 23756 |
conftest$ac_exeext conftest.$ac_ext |
| 23757 |
|
| 23758 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $x_ac_have_lua $x_ac_lua_pkg_name" >&5 |
| 23759 |
$as_echo "$x_ac_have_lua $x_ac_lua_pkg_name" >&6; } |
| 23760 |
if test "x$x_ac_have_lua" = "xno"; then |
| 23761 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to link against lua libraries" >&5 |
| 23762 |
$as_echo "$as_me: WARNING: unable to link against lua libraries" >&2;} |
| 23763 |
else |
| 23764 |
|
| 23765 |
$as_echo "#define HAVE_LUA 1" >>confdefs.h |
| 23766 |
|
| 23767 |
# We can not define something here to determine version for systems |
| 23768 |
# that use just liblua we will not know what version we are using. |
| 23769 |
# Use LUA_VERSION_NUM as in lua.h it will always be right. |
| 23770 |
fi |
| 23771 |
CFLAGS="$saved_CFLAGS" |
| 23772 |
LIBS="$saved_LIBS" |
| 23773 |
else |
| 23774 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to locate lua package" >&5 |
| 23775 |
$as_echo "$as_me: WARNING: unable to locate lua package" >&2;} |
| 23776 |
fi |
| 23777 |
|
| 23778 |
if test "x$x_ac_have_lua" = "xyes"; then |
| 23779 |
HAVE_LUA_TRUE= |
| 23780 |
HAVE_LUA_FALSE='#' |
| 23781 |
else |
| 23782 |
HAVE_LUA_TRUE='#' |
| 23783 |
HAVE_LUA_FALSE= |
| 23784 |
fi |
| 23785 |
|
| 23786 |
|
| 23787 |
|
| 23788 |
|
| 23789 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether man2html is available" >&5 |
| 23790 |
$as_echo_n "checking whether man2html is available... " >&6; } |
| 23791 |
# Extract the first word of "man2html", so it can be a program name with args. |
| 23792 |
set dummy man2html; ac_word=$2 |
| 23793 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 23794 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 23795 |
if ${ac_cv_prog_ac_have_man2html+:} false; then : |
| 23796 |
$as_echo_n "(cached) " >&6 |
| 23797 |
else |
| 23798 |
if test -n "$ac_have_man2html"; then |
| 23799 |
ac_cv_prog_ac_have_man2html="$ac_have_man2html" # Let the user override the test. |
| 23800 |
else |
| 23801 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 23802 |
as_dummy="$bindir:/usr/bin:/usr/local/bin" |
| 23803 |
for as_dir in $as_dummy |
| 23804 |
do |
| 23805 |
IFS=$as_save_IFS |
| 23806 |
test -z "$as_dir" && as_dir=. |
| 23807 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 23808 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 23809 |
ac_cv_prog_ac_have_man2html="yes" |
| 23810 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 23811 |
break 2 |
| 23812 |
fi |
| 23813 |
done |
| 23814 |
done |
| 23815 |
IFS=$as_save_IFS |
| 23816 |
|
| 23817 |
test -z "$ac_cv_prog_ac_have_man2html" && ac_cv_prog_ac_have_man2html="no" |
| 23818 |
fi |
| 23819 |
fi |
| 23820 |
ac_have_man2html=$ac_cv_prog_ac_have_man2html |
| 23821 |
if test -n "$ac_have_man2html"; then |
| 23822 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_have_man2html" >&5 |
| 23823 |
$as_echo "$ac_have_man2html" >&6; } |
| 23824 |
else |
| 23825 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 23826 |
$as_echo "no" >&6; } |
| 23827 |
fi |
| 23828 |
|
| 23829 |
|
| 23830 |
|
| 23831 |
if test "x$ac_have_man2html" = "xyes"; then |
| 23832 |
HAVE_MAN2HTML_TRUE= |
| 23833 |
HAVE_MAN2HTML_FALSE='#' |
| 23834 |
else |
| 23835 |
HAVE_MAN2HTML_TRUE='#' |
| 23836 |
HAVE_MAN2HTML_FALSE= |
| 23837 |
fi |
| 23838 |
|
| 23839 |
|
| 23840 |
if test "x$ac_have_man2html" != "xyes" ; then |
| 23841 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to build man page html files without man2html" >&5 |
| 23842 |
$as_echo "$as_me: WARNING: unable to build man page html files without man2html" >&2;} |
| 23843 |
fi |
| 23844 |
|
| 23845 |
if test "x$ac_have_man2html" = "xyes"; then |
| 23846 |
HAVE_MAN2HTML_TRUE= |
| 23847 |
HAVE_MAN2HTML_FALSE='#' |
| 23848 |
else |
| 23849 |
HAVE_MAN2HTML_TRUE='#' |
| 23850 |
HAVE_MAN2HTML_FALSE= |
| 23851 |
fi |
| 23852 |
|
| 23853 |
|
| 23854 |
|
| 23855 |
|
| 23856 |
|
| 23857 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for support of printf(\"%s\", NULL)" >&5 |
| 23858 |
$as_echo_n "checking for support of printf(\"%s\", NULL)... " >&6; } |
| 23859 |
if test "$cross_compiling" = yes; then : |
| 23860 |
printf_null_ok=yes |
| 23861 |
else |
| 23862 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23863 |
/* end confdefs.h. */ |
| 23864 |
|
| 23865 |
#include <stdio.h> |
| 23866 |
#include <stdlib.h> |
| 23867 |
#include <string.h> |
| 23868 |
char *n=NULL; |
| 23869 |
int |
| 23870 |
main () |
| 23871 |
{ |
| 23872 |
|
| 23873 |
char tmp[16]; |
| 23874 |
char *expected = "test (null)"; |
| 23875 |
snprintf(tmp,sizeof(tmp),"test %s",n); |
| 23876 |
if (strncmp(tmp, expected, sizeof(tmp))) |
| 23877 |
exit(1); |
| 23878 |
exit(0); |
| 23879 |
; |
| 23880 |
return 0; |
| 23881 |
} |
| 23882 |
_ACEOF |
| 23883 |
if ac_fn_c_try_run "$LINENO"; then : |
| 23884 |
printf_null_ok=yes |
| 23885 |
else |
| 23886 |
printf_null_ok=no |
| 23887 |
fi |
| 23888 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 23889 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23890 |
fi |
| 23891 |
|
| 23892 |
|
| 23893 |
if test "$printf_null_ok" = "no"; then |
| 23894 |
as_fn_error $? "printf(\"%s\", NULL) results in abort" "$LINENO" 5 |
| 23895 |
else |
| 23896 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 23897 |
$as_echo "yes" >&6; } |
| 23898 |
fi |
| 23899 |
|
| 23900 |
|
| 23901 |
|
| 23902 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to include readline suport" >&5 |
| 23903 |
$as_echo_n "checking for whether to include readline suport... " >&6; } |
| 23904 |
|
| 23905 |
# Check whether --with-readline was given. |
| 23906 |
if test "${with_readline+set}" = set; then : |
| 23907 |
withval=$with_readline; case "$withval" in |
| 23908 |
yes) ac_with_readline=yes ;; |
| 23909 |
no) ac_with_readline=no ;; |
| 23910 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: doh!" >&5 |
| 23911 |
$as_echo "doh!" >&6; } |
| 23912 |
as_fn_error $? "bad value \"$withval\" for --without-readline" "$LINENO" 5 ;; |
| 23913 |
esac |
| 23914 |
|
| 23915 |
|
| 23916 |
fi |
| 23917 |
|
| 23918 |
|
| 23919 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_with_readline=yes}" >&5 |
| 23920 |
$as_echo "${ac_with_readline=yes}" >&6; } |
| 23921 |
if test "$ac_with_readline" = "yes"; then |
| 23922 |
saved_LIBS="$LIBS" |
| 23923 |
READLINE_LIBS="-lreadline -lhistory $NCURSES" |
| 23924 |
LIBS="$saved_LIBS $READLINE_LIBS" |
| 23925 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23926 |
/* end confdefs.h. */ |
| 23927 |
#include <stdio.h> |
| 23928 |
#include <readline/readline.h> |
| 23929 |
#include <readline/history.h> |
| 23930 |
int |
| 23931 |
main () |
| 23932 |
{ |
| 23933 |
|
| 23934 |
readline("in:"); |
| 23935 |
; |
| 23936 |
return 0; |
| 23937 |
} |
| 23938 |
_ACEOF |
| 23939 |
if ac_fn_c_try_link "$LINENO"; then : |
| 23940 |
|
| 23941 |
$as_echo "#define HAVE_READLINE 1" >>confdefs.h |
| 23942 |
|
| 23943 |
else |
| 23944 |
READLINE_LIBS="" |
| 23945 |
fi |
| 23946 |
rm -f core conftest.err conftest.$ac_objext \ |
| 23947 |
conftest$ac_exeext conftest.$ac_ext |
| 23948 |
LIBS="$saved_LIBS" |
| 23949 |
if test "$READLINE_LIBS" = ""; then |
| 23950 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configured for readline support, but couldn't find libraries" >&5 |
| 23951 |
$as_echo "$as_me: WARNING: configured for readline support, but couldn't find libraries" >&2;}; |
| 23952 |
fi |
| 23953 |
fi |
| 23954 |
|
| 23955 |
|
| 23956 |
|
| 23957 |
|
| 23958 |
|
| 23959 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd presence" >&5 |
| 23960 |
$as_echo_n "checking for systemd presence... " >&6; } |
| 23961 |
if ${_cv_systemd_presence+:} false; then : |
| 23962 |
$as_echo_n "(cached) " >&6 |
| 23963 |
else |
| 23964 |
if test -n "$PKG_CONFIG" && \ |
| 23965 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5 |
| 23966 |
($PKG_CONFIG --exists --print-errors "systemd") 2>&5 |
| 23967 |
ac_status=$? |
| 23968 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 23969 |
test $ac_status = 0; }; then |
| 23970 |
_cv_systemd_presence=yes |
| 23971 |
else |
| 23972 |
_cv_systemd_presence=no |
| 23973 |
fi |
| 23974 |
fi |
| 23975 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_systemd_presence" >&5 |
| 23976 |
$as_echo "$_cv_systemd_presence" >&6; } |
| 23977 |
|
| 23978 |
if test "x$_cv_systemd_presence" != "xno"; then |
| 23979 |
|
| 23980 |
$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h |
| 23981 |
|
| 23982 |
|
| 23983 |
_cv_systemd_version=`$PKG_CONFIG --modversion systemd 2>/dev/null` |
| 23984 |
|
| 23985 |
SYSTEMD_TASKSMAX_OPTION="" |
| 23986 |
if test "$_cv_systemd_version" -ge 227; then |
| 23987 |
SYSTEMD_TASKSMAX_OPTION="TasksMax=infinity" |
| 23988 |
fi |
| 23989 |
|
| 23990 |
|
| 23991 |
# In the future we might want to enable the configure option |
| 23992 |
# --with-systemdsystemunitdir=DIR, so that users can specify |
| 23993 |
# at configure time the directory to install the .service files. |
| 23994 |
# https://www.freedesktop.org/software/systemd/man/daemon.html#Installing%20Systemd%20Service%20Files |
| 23995 |
|
| 23996 |
#AC_CACHE_CHECK([for systemd system unit dir], |
| 23997 |
# [_cv_systemd_systemunitdir], |
| 23998 |
# [PKG_CHECK_VAR([SYSTEMD_SYSTEM_UNIT_DIR], |
| 23999 |
# [systemd], |
| 24000 |
# [systemdsystemunitdir], |
| 24001 |
# [_cv_systemd_systemunitdir=$SYSTEMD_SYSTEM_UNIT_DIR], |
| 24002 |
# [_cv_systemd_systemunitdir=no])]) |
| 24003 |
fi |
| 24004 |
|
| 24005 |
|
| 24006 |
|
| 24007 |
|
| 24008 |
|
| 24009 |
_x_ac_munge_dirs="/usr /usr/local /opt/freeware /opt/munge" |
| 24010 |
_x_ac_munge_libs="lib64 lib" |
| 24011 |
|
| 24012 |
|
| 24013 |
# Check whether --with-munge was given. |
| 24014 |
if test "${with_munge+set}" = set; then : |
| 24015 |
withval=$with_munge; if test "x$with_munge" != xno; then : |
| 24016 |
_x_ac_munge_dirs="$with_munge $_x_ac_munge_dirs" |
| 24017 |
fi |
| 24018 |
fi |
| 24019 |
|
| 24020 |
|
| 24021 |
if test "x$with_munge" = xno; then |
| 24022 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for munge disabled" >&5 |
| 24023 |
$as_echo "$as_me: WARNING: support for munge disabled" >&2;} |
| 24024 |
else |
| 24025 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for munge installation" >&5 |
| 24026 |
$as_echo_n "checking for munge installation... " >&6; } |
| 24027 |
if ${x_ac_cv_munge_dir+:} false; then : |
| 24028 |
$as_echo_n "(cached) " >&6 |
| 24029 |
else |
| 24030 |
|
| 24031 |
for d in $_x_ac_munge_dirs; do |
| 24032 |
test -d "$d" || continue |
| 24033 |
test -d "$d/include" || continue |
| 24034 |
test -f "$d/include/munge.h" || continue |
| 24035 |
for bit in $_x_ac_munge_libs; do |
| 24036 |
test -d "$d/$bit" || continue |
| 24037 |
_x_ac_munge_libs_save="$LIBS" |
| 24038 |
LIBS="-L$d/$bit -lmunge $LIBS" |
| 24039 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24040 |
/* end confdefs.h. */ |
| 24041 |
|
| 24042 |
/* Override any GCC internal prototype to avoid an error. |
| 24043 |
Use char because int might match the return type of a GCC |
| 24044 |
builtin and then its argument prototype would still apply. */ |
| 24045 |
#ifdef __cplusplus |
| 24046 |
extern "C" |
| 24047 |
#endif |
| 24048 |
char munge_encode (); |
| 24049 |
int |
| 24050 |
main () |
| 24051 |
{ |
| 24052 |
return munge_encode (); |
| 24053 |
; |
| 24054 |
return 0; |
| 24055 |
} |
| 24056 |
_ACEOF |
| 24057 |
if ac_fn_c_try_link "$LINENO"; then : |
| 24058 |
x_ac_cv_munge_dir=$d |
| 24059 |
fi |
| 24060 |
rm -f core conftest.err conftest.$ac_objext \ |
| 24061 |
conftest$ac_exeext conftest.$ac_ext |
| 24062 |
LIBS="$_x_ac_munge_libs_save" |
| 24063 |
test -n "$x_ac_cv_munge_dir" && break |
| 24064 |
done |
| 24065 |
test -n "$x_ac_cv_munge_dir" && break |
| 24066 |
done |
| 24067 |
|
| 24068 |
fi |
| 24069 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $x_ac_cv_munge_dir" >&5 |
| 24070 |
$as_echo "$x_ac_cv_munge_dir" >&6; } |
| 24071 |
|
| 24072 |
if test -z "$x_ac_cv_munge_dir"; then |
| 24073 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to locate munge installation" >&5 |
| 24074 |
$as_echo "$as_me: WARNING: unable to locate munge installation" >&2;} |
| 24075 |
else |
| 24076 |
MUNGE_LIBS="-lmunge" |
| 24077 |
MUNGE_CPPFLAGS="-I$x_ac_cv_munge_dir/include" |
| 24078 |
MUNGE_DIR="$x_ac_cv_munge_dir" |
| 24079 |
if test "$ac_with_rpath" = "yes"; then |
| 24080 |
MUNGE_LDFLAGS="-Wl,-rpath -Wl,$x_ac_cv_munge_dir/$bit -L$x_ac_cv_munge_dir/$bit" |
| 24081 |
else |
| 24082 |
MUNGE_LDFLAGS="-L$x_ac_cv_munge_dir/$bit" |
| 24083 |
fi |
| 24084 |
fi |
| 24085 |
|
| 24086 |
|
| 24087 |
|
| 24088 |
|
| 24089 |
|
| 24090 |
fi |
| 24091 |
|
| 24092 |
if test -n "$x_ac_cv_munge_dir"; then |
| 24093 |
WITH_MUNGE_TRUE= |
| 24094 |
WITH_MUNGE_FALSE='#' |
| 24095 |
else |
| 24096 |
WITH_MUNGE_TRUE='#' |
| 24097 |
WITH_MUNGE_FALSE= |
| 24098 |
fi |
| 24099 |
|
| 24100 |
|
| 24101 |
|
| 24102 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable multiple-slurmd support" >&5 |
| 24103 |
$as_echo_n "checking whether to enable multiple-slurmd support... " >&6; } |
| 24104 |
# Check whether --enable-multiple-slurmd was given. |
| 24105 |
if test "${enable_multiple_slurmd+set}" = set; then : |
| 24106 |
enableval=$enable_multiple_slurmd; case "$enableval" in |
| 24107 |
yes) multiple_slurmd=yes ;; |
| 24108 |
no) multiple_slurmd=no ;; |
| 24109 |
*) as_fn_error $? "bad value \"$enableval\" for --enable-multiple-slurmd" "$LINENO" 5;; |
| 24110 |
esac |
| 24111 |
|
| 24112 |
fi |
| 24113 |
|
| 24114 |
if test "x$multiple_slurmd" = "xyes"; then |
| 24115 |
|
| 24116 |
$as_echo "#define MULTIPLE_SLURMD 1" >>confdefs.h |
| 24117 |
|
| 24118 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 24119 |
$as_echo "yes" >&6; } |
| 24120 |
else |
| 24121 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 24122 |
$as_echo "no" >&6; } |
| 24123 |
fi |
| 24124 |
|
| 24125 |
savedLIBS="$LIBS" |
| 24126 |
LIBS="-lutil $LIBS" |
| 24127 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 |
| 24128 |
$as_echo_n "checking for openpty in -lutil... " >&6; } |
| 24129 |
if ${ac_cv_lib_util_openpty+:} false; then : |
| 24130 |
$as_echo_n "(cached) " >&6 |
| 24131 |
else |
| 24132 |
ac_check_lib_save_LIBS=$LIBS |
| 24133 |
LIBS="-lutil $LIBS" |
| 24134 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24135 |
/* end confdefs.h. */ |
| 24136 |
|
| 24137 |
/* Override any GCC internal prototype to avoid an error. |
| 24138 |
Use char because int might match the return type of a GCC |
| 24139 |
builtin and then its argument prototype would still apply. */ |
| 24140 |
#ifdef __cplusplus |
| 24141 |
extern "C" |
| 24142 |
#endif |
| 24143 |
char openpty (); |
| 24144 |
int |
| 24145 |
main () |
| 24146 |
{ |
| 24147 |
return openpty (); |
| 24148 |
; |
| 24149 |
return 0; |
| 24150 |
} |
| 24151 |
_ACEOF |
| 24152 |
if ac_fn_c_try_link "$LINENO"; then : |
| 24153 |
ac_cv_lib_util_openpty=yes |
| 24154 |
else |
| 24155 |
ac_cv_lib_util_openpty=no |
| 24156 |
fi |
| 24157 |
rm -f core conftest.err conftest.$ac_objext \ |
| 24158 |
conftest$ac_exeext conftest.$ac_ext |
| 24159 |
LIBS=$ac_check_lib_save_LIBS |
| 24160 |
fi |
| 24161 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 |
| 24162 |
$as_echo "$ac_cv_lib_util_openpty" >&6; } |
| 24163 |
if test "x$ac_cv_lib_util_openpty" = xyes; then : |
| 24164 |
UTIL_LIBS="-lutil" |
| 24165 |
fi |
| 24166 |
|
| 24167 |
|
| 24168 |
LIBS="$savedLIBS" |
| 24169 |
|
| 24170 |
|
| 24171 |
|
| 24172 |
|
| 24173 |
|
| 24174 |
|
| 24175 |
|
| 24176 |
|
| 24177 |
|
| 24178 |
|
| 24179 |
|
| 24180 |
|
| 24181 |
|
| 24182 |
|
| 24183 |
|
| 24184 |
|
| 24185 |
|
| 24186 |
|
| 24187 |
|
| 24188 |
|
| 24189 |
|
| 24190 |
|
| 24191 |
|
| 24192 |
|
| 24193 |
|
| 24194 |
|
| 24195 |
# Check whether --with-libcurl was given. |
| 24196 |
if test "${with_libcurl+set}" = set; then : |
| 24197 |
withval=$with_libcurl; _libcurl_with=$withval |
| 24198 |
else |
| 24199 |
_libcurl_with=yes |
| 24200 |
fi |
| 24201 |
|
| 24202 |
|
| 24203 |
if test "$_libcurl_with" != "no" ; then |
| 24204 |
|
| 24205 |
for ac_prog in gawk mawk nawk awk |
| 24206 |
do |
| 24207 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 24208 |
set dummy $ac_prog; ac_word=$2 |
| 24209 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 24210 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 24211 |
if ${ac_cv_prog_AWK+:} false; then : |
| 24212 |
$as_echo_n "(cached) " >&6 |
| 24213 |
else |
| 24214 |
if test -n "$AWK"; then |
| 24215 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 24216 |
else |
| 24217 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 24218 |
for as_dir in $PATH |
| 24219 |
do |
| 24220 |
IFS=$as_save_IFS |
| 24221 |
test -z "$as_dir" && as_dir=. |
| 24222 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 24223 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 24224 |
ac_cv_prog_AWK="$ac_prog" |
| 24225 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 24226 |
break 2 |
| 24227 |
fi |
| 24228 |
done |
| 24229 |
done |
| 24230 |
IFS=$as_save_IFS |
| 24231 |
|
| 24232 |
fi |
| 24233 |
fi |
| 24234 |
AWK=$ac_cv_prog_AWK |
| 24235 |
if test -n "$AWK"; then |
| 24236 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 24237 |
$as_echo "$AWK" >&6; } |
| 24238 |
else |
| 24239 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 24240 |
$as_echo "no" >&6; } |
| 24241 |
fi |
| 24242 |
|
| 24243 |
|
| 24244 |
test -n "$AWK" && break |
| 24245 |
done |
| 24246 |
|
| 24247 |
|
| 24248 |
_libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'" |
| 24249 |
|
| 24250 |
_libcurl_try_link=yes |
| 24251 |
|
| 24252 |
if test -d "$_libcurl_with" ; then |
| 24253 |
LIBCURL_CPPFLAGS="-I$withval/include" |
| 24254 |
_libcurl_ldflags="-L$withval/lib" |
| 24255 |
# Extract the first word of "curl-config", so it can be a program name with args. |
| 24256 |
set dummy curl-config; ac_word=$2 |
| 24257 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 24258 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 24259 |
if ${ac_cv_path__libcurl_config+:} false; then : |
| 24260 |
$as_echo_n "(cached) " >&6 |
| 24261 |
else |
| 24262 |
case $_libcurl_config in |
| 24263 |
[\\/]* | ?:[\\/]*) |
| 24264 |
ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path. |
| 24265 |
;; |
| 24266 |
*) |
| 24267 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 24268 |
for as_dir in "$withval/bin" |
| 24269 |
do |
| 24270 |
IFS=$as_save_IFS |
| 24271 |
test -z "$as_dir" && as_dir=. |
| 24272 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 24273 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 24274 |
ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext" |
| 24275 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 24276 |
break 2 |
| 24277 |
fi |
| 24278 |
done |
| 24279 |
done |
| 24280 |
IFS=$as_save_IFS |
| 24281 |
|
| 24282 |
;; |
| 24283 |
esac |
| 24284 |
fi |
| 24285 |
_libcurl_config=$ac_cv_path__libcurl_config |
| 24286 |
if test -n "$_libcurl_config"; then |
| 24287 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 |
| 24288 |
$as_echo "$_libcurl_config" >&6; } |
| 24289 |
else |
| 24290 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 24291 |
$as_echo "no" >&6; } |
| 24292 |
fi |
| 24293 |
|
| 24294 |
|
| 24295 |
else |
| 24296 |
# Extract the first word of "curl-config", so it can be a program name with args. |
| 24297 |
set dummy curl-config; ac_word=$2 |
| 24298 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 24299 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 24300 |
if ${ac_cv_path__libcurl_config+:} false; then : |
| 24301 |
$as_echo_n "(cached) " >&6 |
| 24302 |
else |
| 24303 |
case $_libcurl_config in |
| 24304 |
[\\/]* | ?:[\\/]*) |
| 24305 |
ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path. |
| 24306 |
;; |
| 24307 |
*) |
| 24308 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 24309 |
for as_dir in $PATH |
| 24310 |
do |
| 24311 |
IFS=$as_save_IFS |
| 24312 |
test -z "$as_dir" && as_dir=. |
| 24313 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 24314 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 24315 |
ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext" |
| 24316 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 24317 |
break 2 |
| 24318 |
fi |
| 24319 |
done |
| 24320 |
done |
| 24321 |
IFS=$as_save_IFS |
| 24322 |
|
| 24323 |
;; |
| 24324 |
esac |
| 24325 |
fi |
| 24326 |
_libcurl_config=$ac_cv_path__libcurl_config |
| 24327 |
if test -n "$_libcurl_config"; then |
| 24328 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 |
| 24329 |
$as_echo "$_libcurl_config" >&6; } |
| 24330 |
else |
| 24331 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 24332 |
$as_echo "no" >&6; } |
| 24333 |
fi |
| 24334 |
|
| 24335 |
|
| 24336 |
fi |
| 24337 |
|
| 24338 |
if test x$_libcurl_config != "x" ; then |
| 24339 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5 |
| 24340 |
$as_echo_n "checking for the version of libcurl... " >&6; } |
| 24341 |
if ${libcurl_cv_lib_curl_version+:} false; then : |
| 24342 |
$as_echo_n "(cached) " >&6 |
| 24343 |
else |
| 24344 |
libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'` |
| 24345 |
fi |
| 24346 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5 |
| 24347 |
$as_echo "$libcurl_cv_lib_curl_version" >&6; } |
| 24348 |
|
| 24349 |
_libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse` |
| 24350 |
_libcurl_wanted=`echo 0 | $_libcurl_version_parse` |
| 24351 |
|
| 24352 |
if test $_libcurl_wanted -gt 0 ; then |
| 24353 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version " >&5 |
| 24354 |
$as_echo_n "checking for libcurl >= version ... " >&6; } |
| 24355 |
if ${libcurl_cv_lib_version_ok+:} false; then : |
| 24356 |
$as_echo_n "(cached) " >&6 |
| 24357 |
else |
| 24358 |
|
| 24359 |
if test $_libcurl_version -ge $_libcurl_wanted ; then |
| 24360 |
libcurl_cv_lib_version_ok=yes |
| 24361 |
else |
| 24362 |
libcurl_cv_lib_version_ok=no |
| 24363 |
fi |
| 24364 |
|
| 24365 |
fi |
| 24366 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5 |
| 24367 |
$as_echo "$libcurl_cv_lib_version_ok" >&6; } |
| 24368 |
fi |
| 24369 |
|
| 24370 |
if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then |
| 24371 |
if test x"$LIBCURL_CPPFLAGS" = "x" ; then |
| 24372 |
LIBCURL_CPPFLAGS=`$_libcurl_config --cflags` |
| 24373 |
fi |
| 24374 |
if test x"$LIBCURL" = "x" ; then |
| 24375 |
LIBCURL=`$_libcurl_config --libs` |
| 24376 |
|
| 24377 |
# This is so silly, but Apple actually has a bug in their |
| 24378 |
# curl-config script. Fixed in Tiger, but there are still |
| 24379 |
# lots of Panther installs around. |
| 24380 |
case "${host}" in |
| 24381 |
powerpc-apple-darwin7*) |
| 24382 |
LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'` |
| 24383 |
;; |
| 24384 |
esac |
| 24385 |
fi |
| 24386 |
|
| 24387 |
# All curl-config scripts support --feature |
| 24388 |
_libcurl_features=`$_libcurl_config --feature` |
| 24389 |
|
| 24390 |
# Is it modern enough to have --protocols? (7.12.4) |
| 24391 |
if test $_libcurl_version -ge 461828 ; then |
| 24392 |
_libcurl_protocols=`$_libcurl_config --protocols` |
| 24393 |
fi |
| 24394 |
else |
| 24395 |
_libcurl_try_link=no |
| 24396 |
fi |
| 24397 |
|
| 24398 |
unset _libcurl_wanted |
| 24399 |
fi |
| 24400 |
|
| 24401 |
if test $_libcurl_try_link = yes ; then |
| 24402 |
|
| 24403 |
# we didn't find curl-config, so let's see if the user-supplied |
| 24404 |
# link line (or failing that, "-lcurl") is enough. |
| 24405 |
LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"} |
| 24406 |
|
| 24407 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5 |
| 24408 |
$as_echo_n "checking whether libcurl is usable... " >&6; } |
| 24409 |
if ${libcurl_cv_lib_curl_usable+:} false; then : |
| 24410 |
$as_echo_n "(cached) " >&6 |
| 24411 |
else |
| 24412 |
|
| 24413 |
_libcurl_save_cppflags=$CPPFLAGS |
| 24414 |
CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS" |
| 24415 |
_libcurl_save_libs=$LIBS |
| 24416 |
LIBS="$LIBCURL $LIBS" |
| 24417 |
|
| 24418 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24419 |
/* end confdefs.h. */ |
| 24420 |
#include <curl/curl.h> |
| 24421 |
int |
| 24422 |
main () |
| 24423 |
{ |
| 24424 |
|
| 24425 |
/* Try and use a few common options to force a failure if we are |
| 24426 |
missing symbols or can't link. */ |
| 24427 |
int x; |
| 24428 |
curl_easy_setopt(NULL,CURLOPT_URL,NULL); |
| 24429 |
x=CURL_ERROR_SIZE; |
| 24430 |
x=CURLOPT_WRITEFUNCTION; |
| 24431 |
x=CURLOPT_WRITEDATA; |
| 24432 |
x=CURLOPT_ERRORBUFFER; |
| 24433 |
x=CURLOPT_STDERR; |
| 24434 |
x=CURLOPT_VERBOSE; |
| 24435 |
if (x) |
| 24436 |
; |
| 24437 |
|
| 24438 |
; |
| 24439 |
return 0; |
| 24440 |
} |
| 24441 |
_ACEOF |
| 24442 |
if ac_fn_c_try_link "$LINENO"; then : |
| 24443 |
libcurl_cv_lib_curl_usable=yes |
| 24444 |
else |
| 24445 |
libcurl_cv_lib_curl_usable=no |
| 24446 |
fi |
| 24447 |
rm -f core conftest.err conftest.$ac_objext \ |
| 24448 |
conftest$ac_exeext conftest.$ac_ext |
| 24449 |
|
| 24450 |
CPPFLAGS=$_libcurl_save_cppflags |
| 24451 |
LIBS=$_libcurl_save_libs |
| 24452 |
unset _libcurl_save_cppflags |
| 24453 |
unset _libcurl_save_libs |
| 24454 |
|
| 24455 |
fi |
| 24456 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5 |
| 24457 |
$as_echo "$libcurl_cv_lib_curl_usable" >&6; } |
| 24458 |
|
| 24459 |
if test $libcurl_cv_lib_curl_usable = yes ; then |
| 24460 |
|
| 24461 |
# Does curl_free() exist in this version of libcurl? |
| 24462 |
# If not, fake it with free() |
| 24463 |
|
| 24464 |
_libcurl_save_cppflags=$CPPFLAGS |
| 24465 |
CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS" |
| 24466 |
_libcurl_save_libs=$LIBS |
| 24467 |
LIBS="$LIBS $LIBCURL" |
| 24468 |
|
| 24469 |
ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free" |
| 24470 |
if test "x$ac_cv_func_curl_free" = xyes; then : |
| 24471 |
|
| 24472 |
else |
| 24473 |
|
| 24474 |
$as_echo "#define curl_free free" >>confdefs.h |
| 24475 |
|
| 24476 |
fi |
| 24477 |
|
| 24478 |
|
| 24479 |
CPPFLAGS=$_libcurl_save_cppflags |
| 24480 |
LIBS=$_libcurl_save_libs |
| 24481 |
unset _libcurl_save_cppflags |
| 24482 |
unset _libcurl_save_libs |
| 24483 |
|
| 24484 |
|
| 24485 |
$as_echo "#define HAVE_LIBCURL 1" >>confdefs.h |
| 24486 |
|
| 24487 |
|
| 24488 |
|
| 24489 |
|
| 24490 |
for _libcurl_feature in $_libcurl_features ; do |
| 24491 |
cat >>confdefs.h <<_ACEOF |
| 24492 |
#define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1 |
| 24493 |
_ACEOF |
| 24494 |
|
| 24495 |
eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes |
| 24496 |
done |
| 24497 |
|
| 24498 |
if test "x$_libcurl_protocols" = "x" ; then |
| 24499 |
|
| 24500 |
# We don't have --protocols, so just assume that all |
| 24501 |
# protocols are available |
| 24502 |
_libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP" |
| 24503 |
|
| 24504 |
if test x$libcurl_feature_SSL = xyes ; then |
| 24505 |
_libcurl_protocols="$_libcurl_protocols HTTPS" |
| 24506 |
|
| 24507 |
# FTPS wasn't standards-compliant until version |
| 24508 |
# 7.11.0 (0x070b00 == 461568) |
| 24509 |
if test $_libcurl_version -ge 461568; then |
| 24510 |
_libcurl_protocols="$_libcurl_protocols FTPS" |
| 24511 |
fi |
| 24512 |
fi |
| 24513 |
|
| 24514 |
# RTSP, IMAP, POP3 and SMTP were added in |
| 24515 |
# 7.20.0 (0x071400 == 463872) |
| 24516 |
if test $_libcurl_version -ge 463872; then |
| 24517 |
_libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP" |
| 24518 |
fi |
| 24519 |
fi |
| 24520 |
|
| 24521 |
for _libcurl_protocol in $_libcurl_protocols ; do |
| 24522 |
cat >>confdefs.h <<_ACEOF |
| 24523 |
#define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1 |
| 24524 |
_ACEOF |
| 24525 |
|
| 24526 |
eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes |
| 24527 |
done |
| 24528 |
else |
| 24529 |
unset LIBCURL |
| 24530 |
unset LIBCURL_CPPFLAGS |
| 24531 |
fi |
| 24532 |
fi |
| 24533 |
|
| 24534 |
unset _libcurl_try_link |
| 24535 |
unset _libcurl_version_parse |
| 24536 |
unset _libcurl_config |
| 24537 |
unset _libcurl_feature |
| 24538 |
unset _libcurl_features |
| 24539 |
unset _libcurl_protocol |
| 24540 |
unset _libcurl_protocols |
| 24541 |
unset _libcurl_version |
| 24542 |
unset _libcurl_ldflags |
| 24543 |
fi |
| 24544 |
|
| 24545 |
if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then |
| 24546 |
# This is the IF-NO path |
| 24547 |
: |
| 24548 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to locate/link against libcurl-devel installation" >&5 |
| 24549 |
$as_echo "$as_me: WARNING: unable to locate/link against libcurl-devel installation" >&2;} |
| 24550 |
else |
| 24551 |
# This is the IF-YES path |
| 24552 |
: |
| 24553 |
fi |
| 24554 |
|
| 24555 |
if test x$_libcurl_with = xyes && test x$libcurl_cv_lib_curl_usable = xyes; then |
| 24556 |
WITH_CURL_TRUE= |
| 24557 |
WITH_CURL_FALSE='#' |
| 24558 |
else |
| 24559 |
WITH_CURL_TRUE='#' |
| 24560 |
WITH_CURL_FALSE= |
| 24561 |
fi |
| 24562 |
|
| 24563 |
|
| 24564 |
unset _libcurl_with |
| 24565 |
|
| 24566 |
|
| 24567 |
ac_build_smap="no" |
| 24568 |
if test "x$ac_have_some_curses" = "xyes" ; then |
| 24569 |
ac_build_smap="yes" |
| 24570 |
fi |
| 24571 |
if test "x$ac_build_smap" = "xyes"; then |
| 24572 |
BUILD_SMAP_TRUE= |
| 24573 |
BUILD_SMAP_FALSE='#' |
| 24574 |
else |
| 24575 |
BUILD_SMAP_TRUE='#' |
| 24576 |
BUILD_SMAP_FALSE= |
| 24577 |
fi |
| 24578 |
|
| 24579 |
|
| 24580 |
# The cast to long int works around a bug in the HP C Compiler |
| 24581 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 24582 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 24583 |
# This bug is HP SR number 8606223364. |
| 24584 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
| 24585 |
$as_echo_n "checking size of void *... " >&6; } |
| 24586 |
if ${ac_cv_sizeof_void_p+:} false; then : |
| 24587 |
$as_echo_n "(cached) " >&6 |
| 24588 |
else |
| 24589 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : |
| 24590 |
|
| 24591 |
else |
| 24592 |
if test "$ac_cv_type_void_p" = yes; then |
| 24593 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 24594 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 24595 |
as_fn_error 77 "cannot compute sizeof (void *) |
| 24596 |
See \`config.log' for more details" "$LINENO" 5; } |
| 24597 |
else |
| 24598 |
ac_cv_sizeof_void_p=0 |
| 24599 |
fi |
| 24600 |
fi |
| 24601 |
|
| 24602 |
fi |
| 24603 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
| 24604 |
$as_echo "$ac_cv_sizeof_void_p" >&6; } |
| 24605 |
|
| 24606 |
|
| 24607 |
|
| 24608 |
cat >>confdefs.h <<_ACEOF |
| 24609 |
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 24610 |
_ACEOF |
| 24611 |
|
| 24612 |
|
| 24613 |
|
| 24614 |
|
| 24615 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deprecated options are enabled" >&5 |
| 24616 |
$as_echo_n "checking whether deprecated options are enabled... " >&6; } |
| 24617 |
# Check whether --enable-deprecated was given. |
| 24618 |
if test "${enable_deprecated+set}" = set; then : |
| 24619 |
enableval=$enable_deprecated; case "$enableval" in |
| 24620 |
yes) x_ac_deprecated=yes ;; |
| 24621 |
no) x_ac_deprecated=no ;; |
| 24622 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: doh!" >&5 |
| 24623 |
$as_echo "doh!" >&6; } |
| 24624 |
as_fn_error $? "bad value \"$enableval\" for --enable-deprecated" "$LINENO" 5 ;; |
| 24625 |
esac |
| 24626 |
|
| 24627 |
|
| 24628 |
fi |
| 24629 |
|
| 24630 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${x_ac_deprecated=no}" >&5 |
| 24631 |
$as_echo "${x_ac_deprecated=no}" >&6; } |
| 24632 |
|
| 24633 |
if test "$x_ac_deprecated" = no; then |
| 24634 |
if test "$ac_cv_sizeof_void_p" = "4"; then |
| 24635 |
as_fn_error $? "32-bit support is deprecated, and not tested regularly. Use at your own risk." "$LINENO" 5 |
| 24636 |
fi |
| 24637 |
fi |
| 24638 |
|
| 24639 |
|
| 24640 |
|
| 24641 |
ac_config_files="$ac_config_files Makefile auxdir/Makefile contribs/Makefile contribs/cray/Makefile contribs/cray/csm/Makefile contribs/cray/slurmsmwd/Makefile contribs/lua/Makefile contribs/mic/Makefile contribs/nss_slurm/Makefile contribs/pam/Makefile contribs/pam_slurm_adopt/Makefile contribs/perlapi/Makefile contribs/perlapi/libslurm/Makefile contribs/perlapi/libslurm/perl/Makefile.PL contribs/perlapi/libslurmdb/Makefile contribs/perlapi/libslurmdb/perl/Makefile.PL contribs/seff/Makefile contribs/torque/Makefile contribs/openlava/Makefile contribs/sgather/Makefile contribs/sgi/Makefile contribs/sjobexit/Makefile contribs/pmi/Makefile contribs/pmi2/Makefile doc/Makefile doc/man/Makefile doc/man/man1/Makefile doc/man/man3/Makefile doc/man/man5/Makefile doc/man/man8/Makefile doc/html/Makefile doc/html/configurator.html doc/html/configurator.easy.html etc/Makefile src/Makefile src/api/Makefile src/bcast/Makefile src/common/Makefile src/layouts/Makefile src/layouts/power/Makefile src/layouts/unit/Makefile src/database/Makefile src/sacct/Makefile src/sacctmgr/Makefile src/sreport/Makefile src/salloc/Makefile src/sbatch/Makefile src/sbcast/Makefile src/sattach/Makefile src/scancel/Makefile src/scontrol/Makefile src/sdiag/Makefile src/sinfo/Makefile src/slurmctld/Makefile src/slurmd/Makefile src/slurmd/common/Makefile src/slurmd/slurmd/Makefile src/slurmd/slurmstepd/Makefile src/slurmdbd/Makefile src/smap/Makefile src/sprio/Makefile src/squeue/Makefile src/srun/Makefile src/srun/libsrun/Makefile src/sshare/Makefile src/sstat/Makefile src/strigger/Makefile src/sview/Makefile src/plugins/Makefile src/plugins/accounting_storage/Makefile src/plugins/accounting_storage/common/Makefile src/plugins/accounting_storage/filetxt/Makefile src/plugins/accounting_storage/mysql/Makefile src/plugins/accounting_storage/none/Makefile src/plugins/accounting_storage/slurmdbd/Makefile src/plugins/acct_gather_energy/Makefile src/plugins/acct_gather_energy/cray_aries/Makefile src/plugins/acct_gather_energy/rapl/Makefile src/plugins/acct_gather_energy/ibmaem/Makefile src/plugins/acct_gather_energy/ipmi/Makefile src/plugins/acct_gather_energy/none/Makefile src/plugins/acct_gather_energy/xcc/Makefile src/plugins/acct_gather_interconnect/Makefile src/plugins/acct_gather_interconnect/ofed/Makefile src/plugins/acct_gather_interconnect/none/Makefile src/plugins/acct_gather_filesystem/Makefile src/plugins/acct_gather_filesystem/lustre/Makefile src/plugins/acct_gather_filesystem/none/Makefile src/plugins/acct_gather_profile/Makefile src/plugins/acct_gather_profile/hdf5/Makefile src/plugins/acct_gather_profile/hdf5/sh5util/Makefile src/plugins/acct_gather_profile/influxdb/Makefile src/plugins/acct_gather_profile/none/Makefile src/plugins/auth/Makefile src/plugins/auth/munge/Makefile src/plugins/auth/none/Makefile src/plugins/burst_buffer/Makefile src/plugins/burst_buffer/common/Makefile src/plugins/burst_buffer/datawarp/Makefile src/plugins/burst_buffer/generic/Makefile src/plugins/checkpoint/Makefile src/plugins/checkpoint/none/Makefile src/plugins/checkpoint/ompi/Makefile src/plugins/cli_filter/Makefile src/plugins/cli_filter/none/Makefile src/plugins/core_spec/Makefile src/plugins/core_spec/cray_aries/Makefile src/plugins/core_spec/none/Makefile src/plugins/cred/Makefile src/plugins/cred/munge/Makefile src/plugins/cred/none/Makefile src/plugins/ext_sensors/Makefile src/plugins/ext_sensors/rrd/Makefile src/plugins/ext_sensors/none/Makefile src/plugins/gpu/Makefile src/plugins/gpu/generic/Makefile src/plugins/gpu/nvml/Makefile src/plugins/gres/Makefile src/plugins/gres/common/Makefile src/plugins/gres/gpu/Makefile src/plugins/gres/dcu/Makefile src/plugins/gres/nic/Makefile src/plugins/gres/mic/Makefile src/plugins/gres/mps/Makefile src/plugins/jobacct_gather/Makefile src/plugins/jobacct_gather/common/Makefile src/plugins/jobacct_gather/linux/Makefile src/plugins/jobacct_gather/cgroup/Makefile src/plugins/jobacct_gather/none/Makefile src/plugins/jobcomp/Makefile src/plugins/jobcomp/elasticsearch/Makefile src/plugins/jobcomp/filetxt/Makefile src/plugins/jobcomp/none/Makefile src/plugins/jobcomp/script/Makefile src/plugins/jobcomp/mysql/Makefile src/plugins/job_container/Makefile src/plugins/job_container/cncu/Makefile src/plugins/job_container/none/Makefile src/plugins/job_submit/Makefile src/plugins/job_submit/all_partitions/Makefile src/plugins/job_submit/cray_aries/Makefile src/plugins/job_submit/defaults/Makefile src/plugins/job_submit/logging/Makefile src/plugins/job_submit/lua/Makefile src/plugins/job_submit/partition/Makefile src/plugins/job_submit/pbs/Makefile src/plugins/job_submit/require_timelimit/Makefile src/plugins/job_submit/throttle/Makefile src/plugins/launch/Makefile src/plugins/launch/slurm/Makefile src/plugins/mcs/Makefile src/plugins/mcs/account/Makefile src/plugins/mcs/group/Makefile src/plugins/mcs/none/Makefile src/plugins/mcs/user/Makefile src/plugins/node_features/Makefile src/plugins/node_features/knl_cray/Makefile src/plugins/node_features/knl_generic/Makefile src/plugins/power/Makefile src/plugins/power/common/Makefile src/plugins/power/cray_aries/Makefile src/plugins/power/none/Makefile src/plugins/preempt/Makefile src/plugins/preempt/none/Makefile src/plugins/preempt/partition_prio/Makefile src/plugins/preempt/qos/Makefile src/plugins/priority/Makefile src/plugins/priority/basic/Makefile src/plugins/priority/multifactor/Makefile src/plugins/proctrack/Makefile src/plugins/proctrack/cray_aries/Makefile src/plugins/proctrack/cgroup/Makefile src/plugins/proctrack/pgid/Makefile src/plugins/proctrack/linuxproc/Makefile src/plugins/route/Makefile src/plugins/route/default/Makefile src/plugins/route/topology/Makefile src/plugins/sched/Makefile src/plugins/sched/backfill/Makefile src/plugins/sched/builtin/Makefile src/plugins/sched/hold/Makefile src/plugins/select/Makefile src/plugins/select/cons_res/Makefile src/plugins/select/cons_tres/Makefile src/plugins/select/cray_aries/Makefile src/plugins/select/linear/Makefile src/plugins/select/other/Makefile src/plugins/site_factor/Makefile src/plugins/site_factor/none/Makefile src/plugins/site_factor/sf/Makefile src/plugins/slurmctld/Makefile src/plugins/slurmctld/nonstop/Makefile src/plugins/switch/Makefile src/plugins/switch/cray_aries/Makefile src/plugins/switch/generic/Makefile src/plugins/switch/none/Makefile src/plugins/mpi/Makefile src/plugins/mpi/none/Makefile src/plugins/mpi/openmpi/Makefile src/plugins/mpi/pmi2/Makefile src/plugins/mpi/pmix/Makefile src/plugins/task/Makefile src/plugins/task/affinity/Makefile src/plugins/task/cgroup/Makefile src/plugins/task/cray_aries/Makefile src/plugins/task/none/Makefile src/plugins/topology/Makefile src/plugins/topology/3d_torus/Makefile src/plugins/topology/hypercube/Makefile src/plugins/topology/node_rank/Makefile src/plugins/topology/none/Makefile src/plugins/topology/tree/Makefile testsuite/Makefile testsuite/expect/Makefile testsuite/slurm_unit/Makefile testsuite/slurm_unit/api/Makefile testsuite/slurm_unit/api/manual/Makefile testsuite/slurm_unit/common/Makefile testsuite/slurm_unit/common/slurm_protocol_pack/Makefile testsuite/slurm_unit/common/slurmdb_pack/Makefile" |
| 24642 |
|
| 24643 |
|
| 24644 |
cat >confcache <<\_ACEOF |
| 24645 |
# This file is a shell script that caches the results of configure |
| 24646 |
# tests run on this system so they can be shared between configure |
| 24647 |
# scripts and configure runs, see configure's option --config-cache. |
| 24648 |
# It is not useful on other systems. If it contains results you don't |
| 24649 |
# want to keep, you may remove or edit it. |
| 24650 |
# |
| 24651 |
# config.status only pays attention to the cache file if you give it |
| 24652 |
# the --recheck option to rerun configure. |
| 24653 |
# |
| 24654 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 24655 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 24656 |
# following values. |
| 24657 |
|
| 24658 |
_ACEOF |
| 24659 |
|
| 24660 |
# The following way of writing the cache mishandles newlines in values, |
| 24661 |
# but we know of no workaround that is simple, portable, and efficient. |
| 24662 |
# So, we kill variables containing newlines. |
| 24663 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
| 24664 |
# and sets the high bit in the cache file unless we assign to the vars. |
| 24665 |
( |
| 24666 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 24667 |
eval ac_val=\$$ac_var |
| 24668 |
case $ac_val in #( |
| 24669 |
*${as_nl}*) |
| 24670 |
case $ac_var in #( |
| 24671 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 24672 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 24673 |
esac |
| 24674 |
case $ac_var in #( |
| 24675 |
_ | IFS | as_nl) ;; #( |
| 24676 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 24677 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 24678 |
esac ;; |
| 24679 |
esac |
| 24680 |
done |
| 24681 |
|
| 24682 |
(set) 2>&1 | |
| 24683 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 24684 |
*${as_nl}ac_space=\ *) |
| 24685 |
# `set' does not quote correctly, so add quotes: double-quote |
| 24686 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
| 24687 |
sed -n \ |
| 24688 |
"s/'/'\\\\''/g; |
| 24689 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 24690 |
;; #( |
| 24691 |
*) |
| 24692 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
| 24693 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 24694 |
;; |
| 24695 |
esac | |
| 24696 |
sort |
| 24697 |
) | |
| 24698 |
sed ' |
| 24699 |
/^ac_cv_env_/b end |
| 24700 |
t clear |
| 24701 |
:clear |
| 24702 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 24703 |
t end |
| 24704 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 24705 |
:end' >>confcache |
| 24706 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 24707 |
if test -w "$cache_file"; then |
| 24708 |
if test "x$cache_file" != "x/dev/null"; then |
| 24709 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 24710 |
$as_echo "$as_me: updating cache $cache_file" >&6;} |
| 24711 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 24712 |
cat confcache >"$cache_file" |
| 24713 |
else |
| 24714 |
case $cache_file in #( |
| 24715 |
*/* | ?:*) |
| 24716 |
mv -f confcache "$cache_file"$$ && |
| 24717 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 24718 |
*) |
| 24719 |
mv -f confcache "$cache_file" ;; |
| 24720 |
esac |
| 24721 |
fi |
| 24722 |
fi |
| 24723 |
else |
| 24724 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 24725 |
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 24726 |
fi |
| 24727 |
fi |
| 24728 |
rm -f confcache |
| 24729 |
|
| 24730 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 24731 |
# Let make expand exec_prefix. |
| 24732 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 24733 |
|
| 24734 |
DEFS=-DHAVE_CONFIG_H |
| 24735 |
|
| 24736 |
ac_libobjs= |
| 24737 |
ac_ltlibobjs= |
| 24738 |
U= |
| 24739 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 24740 |
# 1. Remove the extension, and $U if already installed. |
| 24741 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 24742 |
ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 24743 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 24744 |
# will be set to the directory where LIBOBJS objects are built. |
| 24745 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 24746 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 24747 |
done |
| 24748 |
LIBOBJS=$ac_libobjs |
| 24749 |
|
| 24750 |
LTLIBOBJS=$ac_ltlibobjs |
| 24751 |
|
| 24752 |
|
| 24753 |
if test -z "${DONT_BUILD_TRUE}" && test -z "${DONT_BUILD_FALSE}"; then |
| 24754 |
as_fn_error $? "conditional \"DONT_BUILD\" was never defined. |
| 24755 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24756 |
fi |
| 24757 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 24758 |
$as_echo_n "checking that generated files are newer than configure... " >&6; } |
| 24759 |
if test -n "$am_sleep_pid"; then |
| 24760 |
# Hide warnings about reused PIDs. |
| 24761 |
wait $am_sleep_pid 2>/dev/null |
| 24762 |
fi |
| 24763 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 24764 |
$as_echo "done" >&6; } |
| 24765 |
if test -n "$EXEEXT"; then |
| 24766 |
am__EXEEXT_TRUE= |
| 24767 |
am__EXEEXT_FALSE='#' |
| 24768 |
else |
| 24769 |
am__EXEEXT_TRUE='#' |
| 24770 |
am__EXEEXT_FALSE= |
| 24771 |
fi |
| 24772 |
|
| 24773 |
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 24774 |
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
| 24775 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24776 |
fi |
| 24777 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 24778 |
as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 24779 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24780 |
fi |
| 24781 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 24782 |
as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 24783 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24784 |
fi |
| 24785 |
if test -z "${WITH_MYSQL_TRUE}" && test -z "${WITH_MYSQL_FALSE}"; then |
| 24786 |
as_fn_error $? "conditional \"WITH_MYSQL\" was never defined. |
| 24787 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24788 |
fi |
| 24789 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 24790 |
as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 24791 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24792 |
fi |
| 24793 |
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 24794 |
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
| 24795 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24796 |
fi |
| 24797 |
if test -z "${WITH_CXX_TRUE}" && test -z "${WITH_CXX_FALSE}"; then |
| 24798 |
as_fn_error $? "conditional \"WITH_CXX\" was never defined. |
| 24799 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24800 |
fi |
| 24801 |
if test -z "${WITH_GNU_LD_TRUE}" && test -z "${WITH_GNU_LD_FALSE}"; then |
| 24802 |
as_fn_error $? "conditional \"WITH_GNU_LD\" was never defined. |
| 24803 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24804 |
fi |
| 24805 |
if test -z "${HAVE_NUMA_TRUE}" && test -z "${HAVE_NUMA_FALSE}"; then |
| 24806 |
as_fn_error $? "conditional \"HAVE_NUMA\" was never defined. |
| 24807 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24808 |
fi |
| 24809 |
if test -z "${HAVE_SCHED_SETAFFINITY_TRUE}" && test -z "${HAVE_SCHED_SETAFFINITY_FALSE}"; then |
| 24810 |
as_fn_error $? "conditional \"HAVE_SCHED_SETAFFINITY\" was never defined. |
| 24811 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24812 |
fi |
| 24813 |
if test -z "${HAVE_PAM_TRUE}" && test -z "${HAVE_PAM_FALSE}"; then |
| 24814 |
as_fn_error $? "conditional \"HAVE_PAM\" was never defined. |
| 24815 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24816 |
fi |
| 24817 |
|
| 24818 |
if test -z "${WITH_JSON_PARSER_TRUE}" && test -z "${WITH_JSON_PARSER_FALSE}"; then |
| 24819 |
as_fn_error $? "conditional \"WITH_JSON_PARSER\" was never defined. |
| 24820 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24821 |
fi |
| 24822 |
if test -z "${BUILD_OFED_TRUE}" && test -z "${BUILD_OFED_FALSE}"; then |
| 24823 |
as_fn_error $? "conditional \"BUILD_OFED\" was never defined. |
| 24824 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24825 |
fi |
| 24826 |
if test -z "${BUILD_HDF5_TRUE}" && test -z "${BUILD_HDF5_FALSE}"; then |
| 24827 |
as_fn_error $? "conditional \"BUILD_HDF5\" was never defined. |
| 24828 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24829 |
fi |
| 24830 |
if test -z "${BUILD_NVML_TRUE}" && test -z "${BUILD_NVML_FALSE}"; then |
| 24831 |
as_fn_error $? "conditional \"BUILD_NVML\" was never defined. |
| 24832 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24833 |
fi |
| 24834 |
if test -z "${HAVE_PMIX_TRUE}" && test -z "${HAVE_PMIX_FALSE}"; then |
| 24835 |
as_fn_error $? "conditional \"HAVE_PMIX\" was never defined. |
| 24836 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24837 |
fi |
| 24838 |
if test -z "${HAVE_PMIX_V1_TRUE}" && test -z "${HAVE_PMIX_V1_FALSE}"; then |
| 24839 |
as_fn_error $? "conditional \"HAVE_PMIX_V1\" was never defined. |
| 24840 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24841 |
fi |
| 24842 |
if test -z "${HAVE_PMIX_V2_TRUE}" && test -z "${HAVE_PMIX_V2_FALSE}"; then |
| 24843 |
as_fn_error $? "conditional \"HAVE_PMIX_V2\" was never defined. |
| 24844 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24845 |
fi |
| 24846 |
if test -z "${HAVE_PMIX_V3_TRUE}" && test -z "${HAVE_PMIX_V3_FALSE}"; then |
| 24847 |
as_fn_error $? "conditional \"HAVE_PMIX_V3\" was never defined. |
| 24848 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24849 |
fi |
| 24850 |
if test -z "${BUILD_IPMI_TRUE}" && test -z "${BUILD_IPMI_FALSE}"; then |
| 24851 |
as_fn_error $? "conditional \"BUILD_IPMI\" was never defined. |
| 24852 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24853 |
fi |
| 24854 |
if test -z "${BUILD_RRD_TRUE}" && test -z "${BUILD_RRD_FALSE}"; then |
| 24855 |
as_fn_error $? "conditional \"BUILD_RRD\" was never defined. |
| 24856 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24857 |
fi |
| 24858 |
if test -z "${HAVE_UCX_TRUE}" && test -z "${HAVE_UCX_FALSE}"; then |
| 24859 |
as_fn_error $? "conditional \"HAVE_UCX\" was never defined. |
| 24860 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24861 |
fi |
| 24862 |
if test -z "${HAVE_SOME_CURSES_TRUE}" && test -z "${HAVE_SOME_CURSES_FALSE}"; then |
| 24863 |
as_fn_error $? "conditional \"HAVE_SOME_CURSES\" was never defined. |
| 24864 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24865 |
fi |
| 24866 |
if test -z "${WITH_CGROUP_TRUE}" && test -z "${WITH_CGROUP_FALSE}"; then |
| 24867 |
as_fn_error $? "conditional \"WITH_CGROUP\" was never defined. |
| 24868 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24869 |
fi |
| 24870 |
if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then |
| 24871 |
as_fn_error $? "conditional \"HAVE_CHECK\" was never defined. |
| 24872 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24873 |
fi |
| 24874 |
if test -z "${BUILD_SVIEW_TRUE}" && test -z "${BUILD_SVIEW_FALSE}"; then |
| 24875 |
as_fn_error $? "conditional \"BUILD_SVIEW\" was never defined. |
| 24876 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24877 |
fi |
| 24878 |
if test -z "${HAVE_NATIVE_CRAY_TRUE}" && test -z "${HAVE_NATIVE_CRAY_FALSE}"; then |
| 24879 |
as_fn_error $? "conditional \"HAVE_NATIVE_CRAY\" was never defined. |
| 24880 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24881 |
fi |
| 24882 |
if test -z "${HAVE_CRAY_NETWORK_TRUE}" && test -z "${HAVE_CRAY_NETWORK_FALSE}"; then |
| 24883 |
as_fn_error $? "conditional \"HAVE_CRAY_NETWORK\" was never defined. |
| 24884 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24885 |
fi |
| 24886 |
if test -z "${WITH_SWITCH_CRAY_ARIES_TRUE}" && test -z "${WITH_SWITCH_CRAY_ARIES_FALSE}"; then |
| 24887 |
as_fn_error $? "conditional \"WITH_SWITCH_CRAY_ARIES\" was never defined. |
| 24888 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24889 |
fi |
| 24890 |
if test -z "${HAVE_NETLOC_TRUE}" && test -z "${HAVE_NETLOC_FALSE}"; then |
| 24891 |
as_fn_error $? "conditional \"HAVE_NETLOC\" was never defined. |
| 24892 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24893 |
fi |
| 24894 |
if test -z "${HAVE_LUA_TRUE}" && test -z "${HAVE_LUA_FALSE}"; then |
| 24895 |
as_fn_error $? "conditional \"HAVE_LUA\" was never defined. |
| 24896 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24897 |
fi |
| 24898 |
if test -z "${HAVE_MAN2HTML_TRUE}" && test -z "${HAVE_MAN2HTML_FALSE}"; then |
| 24899 |
as_fn_error $? "conditional \"HAVE_MAN2HTML\" was never defined. |
| 24900 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24901 |
fi |
| 24902 |
if test -z "${HAVE_MAN2HTML_TRUE}" && test -z "${HAVE_MAN2HTML_FALSE}"; then |
| 24903 |
as_fn_error $? "conditional \"HAVE_MAN2HTML\" was never defined. |
| 24904 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24905 |
fi |
| 24906 |
if test -z "${WITH_MUNGE_TRUE}" && test -z "${WITH_MUNGE_FALSE}"; then |
| 24907 |
as_fn_error $? "conditional \"WITH_MUNGE\" was never defined. |
| 24908 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24909 |
fi |
| 24910 |
if test -z "${WITH_CURL_TRUE}" && test -z "${WITH_CURL_FALSE}"; then |
| 24911 |
as_fn_error $? "conditional \"WITH_CURL\" was never defined. |
| 24912 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24913 |
fi |
| 24914 |
if test -z "${BUILD_SMAP_TRUE}" && test -z "${BUILD_SMAP_FALSE}"; then |
| 24915 |
as_fn_error $? "conditional \"BUILD_SMAP\" was never defined. |
| 24916 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24917 |
fi |
| 24918 |
|
| 24919 |
: "${CONFIG_STATUS=./config.status}" |
| 24920 |
ac_write_fail=0 |
| 24921 |
ac_clean_files_save=$ac_clean_files |
| 24922 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 24923 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 24924 |
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 24925 |
as_write_fail=0 |
| 24926 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 24927 |
#! $SHELL |
| 24928 |
# Generated by $as_me. |
| 24929 |
# Run this file to recreate the current configuration. |
| 24930 |
# Compiler output produced by configure, useful for debugging |
| 24931 |
# configure, is in config.log if it exists. |
| 24932 |
|
| 24933 |
debug=false |
| 24934 |
ac_cs_recheck=false |
| 24935 |
ac_cs_silent=false |
| 24936 |
|
| 24937 |
SHELL=\${CONFIG_SHELL-$SHELL} |
| 24938 |
export SHELL |
| 24939 |
_ASEOF |
| 24940 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 24941 |
## -------------------- ## |
| 24942 |
## M4sh Initialization. ## |
| 24943 |
## -------------------- ## |
| 24944 |
|
| 24945 |
# Be more Bourne compatible |
| 24946 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 24947 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 24948 |
emulate sh |
| 24949 |
NULLCMD=: |
| 24950 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 24951 |
# is contrary to our usage. Disable this feature. |
| 24952 |
alias -g '${1+"$@"}'='"$@"' |
| 24953 |
setopt NO_GLOB_SUBST |
| 24954 |
else |
| 24955 |
case `(set -o) 2>/dev/null` in #( |
| 24956 |
*posix*) : |
| 24957 |
set -o posix ;; #( |
| 24958 |
*) : |
| 24959 |
;; |
| 24960 |
esac |
| 24961 |
fi |
| 24962 |
|
| 24963 |
|
| 24964 |
as_nl=' |
| 24965 |
' |
| 24966 |
export as_nl |
| 24967 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 24968 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 24969 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 24970 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 24971 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
| 24972 |
# but without wasting forks for bash or zsh. |
| 24973 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 24974 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 24975 |
as_echo='print -r --' |
| 24976 |
as_echo_n='print -rn --' |
| 24977 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 24978 |
as_echo='printf %s\n' |
| 24979 |
as_echo_n='printf %s' |
| 24980 |
else |
| 24981 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 24982 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 24983 |
as_echo_n='/usr/ucb/echo -n' |
| 24984 |
else |
| 24985 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 24986 |
as_echo_n_body='eval |
| 24987 |
arg=$1; |
| 24988 |
case $arg in #( |
| 24989 |
*"$as_nl"*) |
| 24990 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 24991 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 24992 |
esac; |
| 24993 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 24994 |
' |
| 24995 |
export as_echo_n_body |
| 24996 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
| 24997 |
fi |
| 24998 |
export as_echo_body |
| 24999 |
as_echo='sh -c $as_echo_body as_echo' |
| 25000 |
fi |
| 25001 |
|
| 25002 |
# The user is always right. |
| 25003 |
if test "${PATH_SEPARATOR+set}" != set; then |
| 25004 |
PATH_SEPARATOR=: |
| 25005 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 25006 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 25007 |
PATH_SEPARATOR=';' |
| 25008 |
} |
| 25009 |
fi |
| 25010 |
|
| 25011 |
|
| 25012 |
# IFS |
| 25013 |
# We need space, tab and new line, in precisely that order. Quoting is |
| 25014 |
# there to prevent editors from complaining about space-tab. |
| 25015 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 25016 |
# splitting by setting IFS to empty value.) |
| 25017 |
IFS=" "" $as_nl" |
| 25018 |
|
| 25019 |
# Find who we are. Look in the path if we contain no directory separator. |
| 25020 |
as_myself= |
| 25021 |
case $0 in #(( |
| 25022 |
*[\\/]* ) as_myself=$0 ;; |
| 25023 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25024 |
for as_dir in $PATH |
| 25025 |
do |
| 25026 |
IFS=$as_save_IFS |
| 25027 |
test -z "$as_dir" && as_dir=. |
| 25028 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 25029 |
done |
| 25030 |
IFS=$as_save_IFS |
| 25031 |
|
| 25032 |
;; |
| 25033 |
esac |
| 25034 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 25035 |
# in which case we are not to be found in the path. |
| 25036 |
if test "x$as_myself" = x; then |
| 25037 |
as_myself=$0 |
| 25038 |
fi |
| 25039 |
if test ! -f "$as_myself"; then |
| 25040 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 25041 |
exit 1 |
| 25042 |
fi |
| 25043 |
|
| 25044 |
# Unset variables that we do not need and which cause bugs (e.g. in |
| 25045 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 25046 |
# suppresses any "Segmentation fault" message there. '((' could |
| 25047 |
# trigger a bug in pdksh 5.2.14. |
| 25048 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
| 25049 |
do eval test x\${$as_var+set} = xset \ |
| 25050 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 25051 |
done |
| 25052 |
PS1='$ ' |
| 25053 |
PS2='> ' |
| 25054 |
PS4='+ ' |
| 25055 |
|
| 25056 |
# NLS nuisances. |
| 25057 |
LC_ALL=C |
| 25058 |
export LC_ALL |
| 25059 |
LANGUAGE=C |
| 25060 |
export LANGUAGE |
| 25061 |
|
| 25062 |
# CDPATH. |
| 25063 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 25064 |
|
| 25065 |
|
| 25066 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 25067 |
# ---------------------------------------- |
| 25068 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 25069 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 25070 |
# script with STATUS, using 1 if that was 0. |
| 25071 |
as_fn_error () |
| 25072 |
{ |
| 25073 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 25074 |
if test "$4"; then |
| 25075 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 25076 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 25077 |
fi |
| 25078 |
$as_echo "$as_me: error: $2" >&2 |
| 25079 |
as_fn_exit $as_status |
| 25080 |
} # as_fn_error |
| 25081 |
|
| 25082 |
|
| 25083 |
# as_fn_set_status STATUS |
| 25084 |
# ----------------------- |
| 25085 |
# Set $? to STATUS, without forking. |
| 25086 |
as_fn_set_status () |
| 25087 |
{ |
| 25088 |
return $1 |
| 25089 |
} # as_fn_set_status |
| 25090 |
|
| 25091 |
# as_fn_exit STATUS |
| 25092 |
# ----------------- |
| 25093 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 25094 |
as_fn_exit () |
| 25095 |
{ |
| 25096 |
set +e |
| 25097 |
as_fn_set_status $1 |
| 25098 |
exit $1 |
| 25099 |
} # as_fn_exit |
| 25100 |
|
| 25101 |
# as_fn_unset VAR |
| 25102 |
# --------------- |
| 25103 |
# Portably unset VAR. |
| 25104 |
as_fn_unset () |
| 25105 |
{ |
| 25106 |
{ eval $1=; unset $1;} |
| 25107 |
} |
| 25108 |
as_unset=as_fn_unset |
| 25109 |
# as_fn_append VAR VALUE |
| 25110 |
# ---------------------- |
| 25111 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 25112 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 25113 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 25114 |
# implementations. |
| 25115 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 25116 |
eval 'as_fn_append () |
| 25117 |
{ |
| 25118 |
eval $1+=\$2 |
| 25119 |
}' |
| 25120 |
else |
| 25121 |
as_fn_append () |
| 25122 |
{ |
| 25123 |
eval $1=\$$1\$2 |
| 25124 |
} |
| 25125 |
fi # as_fn_append |
| 25126 |
|
| 25127 |
# as_fn_arith ARG... |
| 25128 |
# ------------------ |
| 25129 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 25130 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 25131 |
# must be portable across $(()) and expr. |
| 25132 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 25133 |
eval 'as_fn_arith () |
| 25134 |
{ |
| 25135 |
as_val=$(( $* )) |
| 25136 |
}' |
| 25137 |
else |
| 25138 |
as_fn_arith () |
| 25139 |
{ |
| 25140 |
as_val=`expr "$@" || test $? -eq 1` |
| 25141 |
} |
| 25142 |
fi # as_fn_arith |
| 25143 |
|
| 25144 |
|
| 25145 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 25146 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 25147 |
as_expr=expr |
| 25148 |
else |
| 25149 |
as_expr=false |
| 25150 |
fi |
| 25151 |
|
| 25152 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 25153 |
as_basename=basename |
| 25154 |
else |
| 25155 |
as_basename=false |
| 25156 |
fi |
| 25157 |
|
| 25158 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 25159 |
as_dirname=dirname |
| 25160 |
else |
| 25161 |
as_dirname=false |
| 25162 |
fi |
| 25163 |
|
| 25164 |
as_me=`$as_basename -- "$0" || |
| 25165 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 25166 |
X"$0" : 'X\(//\)$' \| \ |
| 25167 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 25168 |
$as_echo X/"$0" | |
| 25169 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 25170 |
s//\1/ |
| 25171 |
q |
| 25172 |
} |
| 25173 |
/^X\/\(\/\/\)$/{ |
| 25174 |
s//\1/ |
| 25175 |
q |
| 25176 |
} |
| 25177 |
/^X\/\(\/\).*/{ |
| 25178 |
s//\1/ |
| 25179 |
q |
| 25180 |
} |
| 25181 |
s/.*/./; q'` |
| 25182 |
|
| 25183 |
# Avoid depending upon Character Ranges. |
| 25184 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 25185 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 25186 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 25187 |
as_cr_digits='0123456789' |
| 25188 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 25189 |
|
| 25190 |
ECHO_C= ECHO_N= ECHO_T= |
| 25191 |
case `echo -n x` in #((((( |
| 25192 |
-n*) |
| 25193 |
case `echo 'xy\c'` in |
| 25194 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 25195 |
xy) ECHO_C='\c';; |
| 25196 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 25197 |
ECHO_T=' ';; |
| 25198 |
esac;; |
| 25199 |
*) |
| 25200 |
ECHO_N='-n';; |
| 25201 |
esac |
| 25202 |
|
| 25203 |
rm -f conf$$ conf$$.exe conf$$.file |
| 25204 |
if test -d conf$$.dir; then |
| 25205 |
rm -f conf$$.dir/conf$$.file |
| 25206 |
else |
| 25207 |
rm -f conf$$.dir |
| 25208 |
mkdir conf$$.dir 2>/dev/null |
| 25209 |
fi |
| 25210 |
if (echo >conf$$.file) 2>/dev/null; then |
| 25211 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 25212 |
as_ln_s='ln -s' |
| 25213 |
# ... but there are two gotchas: |
| 25214 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 25215 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 25216 |
# In both cases, we have to default to `cp -pR'. |
| 25217 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 25218 |
as_ln_s='cp -pR' |
| 25219 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 25220 |
as_ln_s=ln |
| 25221 |
else |
| 25222 |
as_ln_s='cp -pR' |
| 25223 |
fi |
| 25224 |
else |
| 25225 |
as_ln_s='cp -pR' |
| 25226 |
fi |
| 25227 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 25228 |
rmdir conf$$.dir 2>/dev/null |
| 25229 |
|
| 25230 |
|
| 25231 |
# as_fn_mkdir_p |
| 25232 |
# ------------- |
| 25233 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 25234 |
as_fn_mkdir_p () |
| 25235 |
{ |
| 25236 |
|
| 25237 |
case $as_dir in #( |
| 25238 |
-*) as_dir=./$as_dir;; |
| 25239 |
esac |
| 25240 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 25241 |
as_dirs= |
| 25242 |
while :; do |
| 25243 |
case $as_dir in #( |
| 25244 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 25245 |
*) as_qdir=$as_dir;; |
| 25246 |
esac |
| 25247 |
as_dirs="'$as_qdir' $as_dirs" |
| 25248 |
as_dir=`$as_dirname -- "$as_dir" || |
| 25249 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 25250 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 25251 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 25252 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 25253 |
$as_echo X"$as_dir" | |
| 25254 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 25255 |
s//\1/ |
| 25256 |
q |
| 25257 |
} |
| 25258 |
/^X\(\/\/\)[^/].*/{ |
| 25259 |
s//\1/ |
| 25260 |
q |
| 25261 |
} |
| 25262 |
/^X\(\/\/\)$/{ |
| 25263 |
s//\1/ |
| 25264 |
q |
| 25265 |
} |
| 25266 |
/^X\(\/\).*/{ |
| 25267 |
s//\1/ |
| 25268 |
q |
| 25269 |
} |
| 25270 |
s/.*/./; q'` |
| 25271 |
test -d "$as_dir" && break |
| 25272 |
done |
| 25273 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 25274 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 25275 |
|
| 25276 |
|
| 25277 |
} # as_fn_mkdir_p |
| 25278 |
if mkdir -p . 2>/dev/null; then |
| 25279 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 25280 |
else |
| 25281 |
test -d ./-p && rmdir ./-p |
| 25282 |
as_mkdir_p=false |
| 25283 |
fi |
| 25284 |
|
| 25285 |
|
| 25286 |
# as_fn_executable_p FILE |
| 25287 |
# ----------------------- |
| 25288 |
# Test if FILE is an executable regular file. |
| 25289 |
as_fn_executable_p () |
| 25290 |
{ |
| 25291 |
test -f "$1" && test -x "$1" |
| 25292 |
} # as_fn_executable_p |
| 25293 |
as_test_x='test -x' |
| 25294 |
as_executable_p=as_fn_executable_p |
| 25295 |
|
| 25296 |
# Sed expression to map a string onto a valid CPP name. |
| 25297 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 25298 |
|
| 25299 |
# Sed expression to map a string onto a valid variable name. |
| 25300 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 25301 |
|
| 25302 |
|
| 25303 |
exec 6>&1 |
| 25304 |
## ----------------------------------- ## |
| 25305 |
## Main body of $CONFIG_STATUS script. ## |
| 25306 |
## ----------------------------------- ## |
| 25307 |
_ASEOF |
| 25308 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 25309 |
|
| 25310 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 25311 |
# Save the log message, to keep $0 and so on meaningful, and to |
| 25312 |
# report actual input values of CONFIG_FILES etc. instead of their |
| 25313 |
# values after options handling. |
| 25314 |
ac_log=" |
| 25315 |
This file was extended by slurm $as_me 19.05, which was |
| 25316 |
generated by GNU Autoconf 2.69. Invocation command line was |
| 25317 |
|
| 25318 |
CONFIG_FILES = $CONFIG_FILES |
| 25319 |
CONFIG_HEADERS = $CONFIG_HEADERS |
| 25320 |
CONFIG_LINKS = $CONFIG_LINKS |
| 25321 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 25322 |
$ $0 $@ |
| 25323 |
|
| 25324 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 25325 |
" |
| 25326 |
|
| 25327 |
_ACEOF |
| 25328 |
|
| 25329 |
case $ac_config_files in *" |
| 25330 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 25331 |
esac |
| 25332 |
|
| 25333 |
case $ac_config_headers in *" |
| 25334 |
"*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 25335 |
esac |
| 25336 |
|
| 25337 |
|
| 25338 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 25339 |
# Files that config.status was made for. |
| 25340 |
config_files="$ac_config_files" |
| 25341 |
config_headers="$ac_config_headers" |
| 25342 |
config_commands="$ac_config_commands" |
| 25343 |
|
| 25344 |
_ACEOF |
| 25345 |
|
| 25346 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 25347 |
ac_cs_usage="\ |
| 25348 |
\`$as_me' instantiates files and other configuration actions |
| 25349 |
from templates according to the current configuration. Unless the files |
| 25350 |
and actions are specified as TAGs, all are instantiated by default. |
| 25351 |
|
| 25352 |
Usage: $0 [OPTION]... [TAG]... |
| 25353 |
|
| 25354 |
-h, --help print this help, then exit |
| 25355 |
-V, --version print version number and configuration settings, then exit |
| 25356 |
--config print configuration, then exit |
| 25357 |
-q, --quiet, --silent |
| 25358 |
do not print progress messages |
| 25359 |
-d, --debug don't remove temporary files |
| 25360 |
--recheck update $as_me by reconfiguring in the same conditions |
| 25361 |
--file=FILE[:TEMPLATE] |
| 25362 |
instantiate the configuration file FILE |
| 25363 |
--header=FILE[:TEMPLATE] |
| 25364 |
instantiate the configuration header FILE |
| 25365 |
|
| 25366 |
Configuration files: |
| 25367 |
$config_files |
| 25368 |
|
| 25369 |
Configuration headers: |
| 25370 |
$config_headers |
| 25371 |
|
| 25372 |
Configuration commands: |
| 25373 |
$config_commands |
| 25374 |
|
| 25375 |
Report bugs to the package provider. |
| 25376 |
slurm home page: <https://slurm.schedmd.com>." |
| 25377 |
|
| 25378 |
_ACEOF |
| 25379 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 25380 |
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 25381 |
ac_cs_version="\\ |
| 25382 |
slurm config.status 19.05 |
| 25383 |
configured by $0, generated by GNU Autoconf 2.69, |
| 25384 |
with options \\"\$ac_cs_config\\" |
| 25385 |
|
| 25386 |
Copyright (C) 2012 Free Software Foundation, Inc. |
| 25387 |
This config.status script is free software; the Free Software Foundation |
| 25388 |
gives unlimited permission to copy, distribute and modify it." |
| 25389 |
|
| 25390 |
ac_pwd='$ac_pwd' |
| 25391 |
srcdir='$srcdir' |
| 25392 |
INSTALL='$INSTALL' |
| 25393 |
MKDIR_P='$MKDIR_P' |
| 25394 |
AWK='$AWK' |
| 25395 |
test -n "\$AWK" || AWK=awk |
| 25396 |
_ACEOF |
| 25397 |
|
| 25398 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 25399 |
# The default lists apply if the user does not specify any file. |
| 25400 |
ac_need_defaults=: |
| 25401 |
while test $# != 0 |
| 25402 |
do |
| 25403 |
case $1 in |
| 25404 |
--*=?*) |
| 25405 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 25406 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 25407 |
ac_shift=: |
| 25408 |
;; |
| 25409 |
--*=) |
| 25410 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 25411 |
ac_optarg= |
| 25412 |
ac_shift=: |
| 25413 |
;; |
| 25414 |
*) |
| 25415 |
ac_option=$1 |
| 25416 |
ac_optarg=$2 |
| 25417 |
ac_shift=shift |
| 25418 |
;; |
| 25419 |
esac |
| 25420 |
|
| 25421 |
case $ac_option in |
| 25422 |
# Handling of the options. |
| 25423 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 25424 |
ac_cs_recheck=: ;; |
| 25425 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 25426 |
$as_echo "$ac_cs_version"; exit ;; |
| 25427 |
--config | --confi | --conf | --con | --co | --c ) |
| 25428 |
$as_echo "$ac_cs_config"; exit ;; |
| 25429 |
--debug | --debu | --deb | --de | --d | -d ) |
| 25430 |
debug=: ;; |
| 25431 |
--file | --fil | --fi | --f ) |
| 25432 |
$ac_shift |
| 25433 |
case $ac_optarg in |
| 25434 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 25435 |
'') as_fn_error $? "missing file argument" ;; |
| 25436 |
esac |
| 25437 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 25438 |
ac_need_defaults=false;; |
| 25439 |
--header | --heade | --head | --hea ) |
| 25440 |
$ac_shift |
| 25441 |
case $ac_optarg in |
| 25442 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 25443 |
esac |
| 25444 |
as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 25445 |
ac_need_defaults=false;; |
| 25446 |
--he | --h) |
| 25447 |
# Conflict between --help and --header |
| 25448 |
as_fn_error $? "ambiguous option: \`$1' |
| 25449 |
Try \`$0 --help' for more information.";; |
| 25450 |
--help | --hel | -h ) |
| 25451 |
$as_echo "$ac_cs_usage"; exit ;; |
| 25452 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 25453 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 25454 |
ac_cs_silent=: ;; |
| 25455 |
|
| 25456 |
# This is an error. |
| 25457 |
-*) as_fn_error $? "unrecognized option: \`$1' |
| 25458 |
Try \`$0 --help' for more information." ;; |
| 25459 |
|
| 25460 |
*) as_fn_append ac_config_targets " $1" |
| 25461 |
ac_need_defaults=false ;; |
| 25462 |
|
| 25463 |
esac |
| 25464 |
shift |
| 25465 |
done |
| 25466 |
|
| 25467 |
ac_configure_extra_args= |
| 25468 |
|
| 25469 |
if $ac_cs_silent; then |
| 25470 |
exec 6>/dev/null |
| 25471 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 25472 |
fi |
| 25473 |
|
| 25474 |
_ACEOF |
| 25475 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 25476 |
if \$ac_cs_recheck; then |
| 25477 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 25478 |
shift |
| 25479 |
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 25480 |
CONFIG_SHELL='$SHELL' |
| 25481 |
export CONFIG_SHELL |
| 25482 |
exec "\$@" |
| 25483 |
fi |
| 25484 |
|
| 25485 |
_ACEOF |
| 25486 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 25487 |
exec 5>>config.log |
| 25488 |
{ |
| 25489 |
echo |
| 25490 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 25491 |
## Running $as_me. ## |
| 25492 |
_ASBOX |
| 25493 |
$as_echo "$ac_log" |
| 25494 |
} >&5 |
| 25495 |
|
| 25496 |
_ACEOF |
| 25497 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 25498 |
# |
| 25499 |
# INIT-COMMANDS |
| 25500 |
# |
| 25501 |
AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" |
| 25502 |
|
| 25503 |
|
| 25504 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 25505 |
# if CDPATH is set. |
| 25506 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 25507 |
|
| 25508 |
sed_quote_subst='$sed_quote_subst' |
| 25509 |
double_quote_subst='$double_quote_subst' |
| 25510 |
delay_variable_subst='$delay_variable_subst' |
| 25511 |
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 25512 |
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 25513 |
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 25514 |
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 25515 |
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 25516 |
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 25517 |
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
| 25518 |
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 25519 |
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 25520 |
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
| 25521 |
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 25522 |
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 25523 |
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 25524 |
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 25525 |
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 25526 |
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 25527 |
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 25528 |
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 25529 |
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 25530 |
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 25531 |
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 25532 |
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 25533 |
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 25534 |
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 25535 |
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 25536 |
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 25537 |
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 25538 |
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 25539 |
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 25540 |
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 25541 |
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 25542 |
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 25543 |
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 25544 |
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 25545 |
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 25546 |
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 25547 |
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 25548 |
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 25549 |
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 25550 |
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 25551 |
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| 25552 |
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 25553 |
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 25554 |
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| 25555 |
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 25556 |
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 25557 |
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 25558 |
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 25559 |
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 25560 |
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 25561 |
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 25562 |
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 25563 |
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 25564 |
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 25565 |
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 25566 |
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 25567 |
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
| 25568 |
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 25569 |
lt_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"`' |
| 25570 |
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
| 25571 |
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 25572 |
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 25573 |
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
| 25574 |
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 25575 |
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 25576 |
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 25577 |
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 25578 |
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 25579 |
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 25580 |
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 25581 |
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 25582 |
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| 25583 |
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 25584 |
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 25585 |
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 25586 |
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 25587 |
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 25588 |
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 25589 |
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 25590 |
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 25591 |
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 25592 |
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 25593 |
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 25594 |
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 25595 |
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 25596 |
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 25597 |
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 25598 |
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 25599 |
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 25600 |
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 25601 |
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 25602 |
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 25603 |
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 25604 |
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 25605 |
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 25606 |
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 25607 |
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 25608 |
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 25609 |
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 25610 |
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 25611 |
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 25612 |
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 25613 |
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 25614 |
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 25615 |
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 25616 |
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 25617 |
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 25618 |
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 25619 |
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| 25620 |
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 25621 |
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 25622 |
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 25623 |
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 25624 |
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 25625 |
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 25626 |
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 25627 |
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 25628 |
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 25629 |
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 25630 |
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 25631 |
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 25632 |
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 25633 |
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 25634 |
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 25635 |
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 25636 |
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 25637 |
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 25638 |
configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
| 25639 |
configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' |
| 25640 |
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 25641 |
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 25642 |
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 25643 |
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 25644 |
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 25645 |
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 25646 |
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
| 25647 |
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' |
| 25648 |
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' |
| 25649 |
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' |
| 25650 |
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' |
| 25651 |
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' |
| 25652 |
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' |
| 25653 |
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 25654 |
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 25655 |
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 25656 |
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' |
| 25657 |
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' |
| 25658 |
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 25659 |
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' |
| 25660 |
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' |
| 25661 |
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' |
| 25662 |
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' |
| 25663 |
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' |
| 25664 |
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' |
| 25665 |
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 25666 |
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 25667 |
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' |
| 25668 |
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 25669 |
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 25670 |
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 25671 |
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 25672 |
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 25673 |
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 25674 |
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' |
| 25675 |
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 25676 |
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 25677 |
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 25678 |
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
| 25679 |
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' |
| 25680 |
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' |
| 25681 |
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' |
| 25682 |
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' |
| 25683 |
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' |
| 25684 |
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' |
| 25685 |
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' |
| 25686 |
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' |
| 25687 |
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 25688 |
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 25689 |
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 25690 |
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 25691 |
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 25692 |
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 25693 |
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' |
| 25694 |
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' |
| 25695 |
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 25696 |
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 25697 |
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 25698 |
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 25699 |
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' |
| 25700 |
|
| 25701 |
LTCC='$LTCC' |
| 25702 |
LTCFLAGS='$LTCFLAGS' |
| 25703 |
compiler='$compiler_DEFAULT' |
| 25704 |
|
| 25705 |
# A function that is used when there is no print builtin or printf. |
| 25706 |
func_fallback_echo () |
| 25707 |
{ |
| 25708 |
eval 'cat <<_LTECHO_EOF |
| 25709 |
\$1 |
| 25710 |
_LTECHO_EOF' |
| 25711 |
} |
| 25712 |
|
| 25713 |
# Quote evaled strings. |
| 25714 |
for var in SHELL \ |
| 25715 |
ECHO \ |
| 25716 |
PATH_SEPARATOR \ |
| 25717 |
SED \ |
| 25718 |
GREP \ |
| 25719 |
EGREP \ |
| 25720 |
FGREP \ |
| 25721 |
LD \ |
| 25722 |
NM \ |
| 25723 |
LN_S \ |
| 25724 |
lt_SP2NL \ |
| 25725 |
lt_NL2SP \ |
| 25726 |
reload_flag \ |
| 25727 |
OBJDUMP \ |
| 25728 |
deplibs_check_method \ |
| 25729 |
file_magic_cmd \ |
| 25730 |
file_magic_glob \ |
| 25731 |
want_nocaseglob \ |
| 25732 |
DLLTOOL \ |
| 25733 |
sharedlib_from_linklib_cmd \ |
| 25734 |
AR \ |
| 25735 |
AR_FLAGS \ |
| 25736 |
archiver_list_spec \ |
| 25737 |
STRIP \ |
| 25738 |
RANLIB \ |
| 25739 |
CC \ |
| 25740 |
CFLAGS \ |
| 25741 |
compiler \ |
| 25742 |
lt_cv_sys_global_symbol_pipe \ |
| 25743 |
lt_cv_sys_global_symbol_to_cdecl \ |
| 25744 |
lt_cv_sys_global_symbol_to_import \ |
| 25745 |
lt_cv_sys_global_symbol_to_c_name_address \ |
| 25746 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 25747 |
lt_cv_nm_interface \ |
| 25748 |
nm_file_list_spec \ |
| 25749 |
lt_cv_truncate_bin \ |
| 25750 |
lt_prog_compiler_no_builtin_flag \ |
| 25751 |
lt_prog_compiler_pic \ |
| 25752 |
lt_prog_compiler_wl \ |
| 25753 |
lt_prog_compiler_static \ |
| 25754 |
lt_cv_prog_compiler_c_o \ |
| 25755 |
need_locks \ |
| 25756 |
MANIFEST_TOOL \ |
| 25757 |
DSYMUTIL \ |
| 25758 |
NMEDIT \ |
| 25759 |
LIPO \ |
| 25760 |
OTOOL \ |
| 25761 |
OTOOL64 \ |
| 25762 |
shrext_cmds \ |
| 25763 |
export_dynamic_flag_spec \ |
| 25764 |
whole_archive_flag_spec \ |
| 25765 |
compiler_needs_object \ |
| 25766 |
with_gnu_ld \ |
| 25767 |
allow_undefined_flag \ |
| 25768 |
no_undefined_flag \ |
| 25769 |
hardcode_libdir_flag_spec \ |
| 25770 |
hardcode_libdir_separator \ |
| 25771 |
exclude_expsyms \ |
| 25772 |
include_expsyms \ |
| 25773 |
file_list_spec \ |
| 25774 |
variables_saved_for_relink \ |
| 25775 |
libname_spec \ |
| 25776 |
library_names_spec \ |
| 25777 |
soname_spec \ |
| 25778 |
install_override_mode \ |
| 25779 |
finish_eval \ |
| 25780 |
old_striplib \ |
| 25781 |
striplib \ |
| 25782 |
compiler_lib_search_dirs \ |
| 25783 |
predep_objects \ |
| 25784 |
postdep_objects \ |
| 25785 |
predeps \ |
| 25786 |
postdeps \ |
| 25787 |
compiler_lib_search_path \ |
| 25788 |
LD_CXX \ |
| 25789 |
reload_flag_CXX \ |
| 25790 |
compiler_CXX \ |
| 25791 |
lt_prog_compiler_no_builtin_flag_CXX \ |
| 25792 |
lt_prog_compiler_pic_CXX \ |
| 25793 |
lt_prog_compiler_wl_CXX \ |
| 25794 |
lt_prog_compiler_static_CXX \ |
| 25795 |
lt_cv_prog_compiler_c_o_CXX \ |
| 25796 |
export_dynamic_flag_spec_CXX \ |
| 25797 |
whole_archive_flag_spec_CXX \ |
| 25798 |
compiler_needs_object_CXX \ |
| 25799 |
with_gnu_ld_CXX \ |
| 25800 |
allow_undefined_flag_CXX \ |
| 25801 |
no_undefined_flag_CXX \ |
| 25802 |
hardcode_libdir_flag_spec_CXX \ |
| 25803 |
hardcode_libdir_separator_CXX \ |
| 25804 |
exclude_expsyms_CXX \ |
| 25805 |
include_expsyms_CXX \ |
| 25806 |
file_list_spec_CXX \ |
| 25807 |
compiler_lib_search_dirs_CXX \ |
| 25808 |
predep_objects_CXX \ |
| 25809 |
postdep_objects_CXX \ |
| 25810 |
predeps_CXX \ |
| 25811 |
postdeps_CXX \ |
| 25812 |
compiler_lib_search_path_CXX; do |
| 25813 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 25814 |
*[\\\\\\\`\\"\\\$]*) |
| 25815 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 25816 |
;; |
| 25817 |
*) |
| 25818 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 25819 |
;; |
| 25820 |
esac |
| 25821 |
done |
| 25822 |
|
| 25823 |
# Double-quote double-evaled strings. |
| 25824 |
for var in reload_cmds \ |
| 25825 |
old_postinstall_cmds \ |
| 25826 |
old_postuninstall_cmds \ |
| 25827 |
old_archive_cmds \ |
| 25828 |
extract_expsyms_cmds \ |
| 25829 |
old_archive_from_new_cmds \ |
| 25830 |
old_archive_from_expsyms_cmds \ |
| 25831 |
archive_cmds \ |
| 25832 |
archive_expsym_cmds \ |
| 25833 |
module_cmds \ |
| 25834 |
module_expsym_cmds \ |
| 25835 |
export_symbols_cmds \ |
| 25836 |
prelink_cmds \ |
| 25837 |
postlink_cmds \ |
| 25838 |
postinstall_cmds \ |
| 25839 |
postuninstall_cmds \ |
| 25840 |
finish_cmds \ |
| 25841 |
sys_lib_search_path_spec \ |
| 25842 |
configure_time_dlsearch_path \ |
| 25843 |
configure_time_lt_sys_library_path \ |
| 25844 |
reload_cmds_CXX \ |
| 25845 |
old_archive_cmds_CXX \ |
| 25846 |
old_archive_from_new_cmds_CXX \ |
| 25847 |
old_archive_from_expsyms_cmds_CXX \ |
| 25848 |
archive_cmds_CXX \ |
| 25849 |
archive_expsym_cmds_CXX \ |
| 25850 |
module_cmds_CXX \ |
| 25851 |
module_expsym_cmds_CXX \ |
| 25852 |
export_symbols_cmds_CXX \ |
| 25853 |
prelink_cmds_CXX \ |
| 25854 |
postlink_cmds_CXX; do |
| 25855 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 25856 |
*[\\\\\\\`\\"\\\$]*) |
| 25857 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 25858 |
;; |
| 25859 |
*) |
| 25860 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 25861 |
;; |
| 25862 |
esac |
| 25863 |
done |
| 25864 |
|
| 25865 |
ac_aux_dir='$ac_aux_dir' |
| 25866 |
|
| 25867 |
# See if we are running on zsh, and set the options that allow our |
| 25868 |
# commands through without removal of \ escapes INIT. |
| 25869 |
if test -n "\${ZSH_VERSION+set}"; then |
| 25870 |
setopt NO_GLOB_SUBST |
| 25871 |
fi |
| 25872 |
|
| 25873 |
|
| 25874 |
PACKAGE='$PACKAGE' |
| 25875 |
VERSION='$VERSION' |
| 25876 |
RM='$RM' |
| 25877 |
ofile='$ofile' |
| 25878 |
|
| 25879 |
|
| 25880 |
|
| 25881 |
|
| 25882 |
|
| 25883 |
|
| 25884 |
_ACEOF |
| 25885 |
|
| 25886 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 25887 |
|
| 25888 |
# Handling of arguments. |
| 25889 |
for ac_config_target in $ac_config_targets |
| 25890 |
do |
| 25891 |
case $ac_config_target in |
| 25892 |
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 25893 |
"slurm/slurm.h") CONFIG_HEADERS="$CONFIG_HEADERS slurm/slurm.h" ;; |
| 25894 |
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 25895 |
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 25896 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 25897 |
"auxdir/Makefile") CONFIG_FILES="$CONFIG_FILES auxdir/Makefile" ;; |
| 25898 |
"contribs/Makefile") CONFIG_FILES="$CONFIG_FILES contribs/Makefile" ;; |
| 25899 |
"contribs/cray/Makefile") CONFIG_FILES="$CONFIG_FILES contribs/cray/Makefile" ;; |
| 25900 |
"contribs/cray/csm/Makefile") CONFIG_FILES="$CONFIG_FILES contribs/cray/csm/Makefile" ;; |
| 25901 |
"contribs/cray/slurmsmwd/Makefile") CONFIG_FILES="$CONFIG_FILES contribs/cray/slurmsmwd/Makefile" ;; |
| 25902 |
"contribs/lua/Makefile") CONFIG_FILES="$CONFIG_FILES contribs/lua/Makefile" ;; |
| 25903 |
"contribs/mic/Makefile") CONFIG_FILES="$CONFIG_FILES contribs/mic/Makefile" ;; |
| 25904 |
"contribs/nss_slurm/Makefile") CONFIG_FILES="$CONFIG_FILES contribs/nss_slurm/Makefile" ;; |
| 25905 |
"contribs/pam/Makefile") CONFIG_FILES="$CONFIG_FILES contribs/pam/Makefile" ;; |
| 25906 |
"contribs/pam_slurm_adopt/Makefile") CONFIG_FILES="$CONFIG_FILES contribs/pam_slurm_adopt/Makefile" ;; |
| 25907 |
"contribs/perlapi/Makefile") CONFIG_FILES="$CONFIG_FILES contribs/perlapi/Makefile" ;; |
| 25908 |
"contribs/perlapi/libslurm/Makefile") CONFIG_FILES="$CONFIG_FILES contribs/perlapi/libslurm/Makefile" ;; |
| 25909 |
"contribs/perlapi/libslurm/perl/Makefile.PL") CONFIG_FILES="$CONFIG_FILES contribs/perlapi/libslurm/perl/Makefile.PL" ;; |
| 25910 |
"contribs/perlapi/libslurmdb/Makefile") CONFIG_FILES="$CONFIG_FILES contribs/perlapi/libslurmdb/Makefile" ;; |
| 25911 |
"contribs/perlapi/libslurmdb/perl/Makefile.PL") CONFIG_FILES="$CONFIG_FILES contribs/perlapi/libslurmdb/perl/Makefile.PL" ;; |
| 25912 |
"contribs/seff/Makefile") CONFIG_FILES="$CONFIG_FILES contribs/seff/Makefile" ;; |
| 25913 |
"contribs/torque/Makefile") CONFIG_FILES="$CONFIG_FILES contribs/torque/Makefile" ;; |
| 25914 |
"contribs/openlava/Makefile") CONFIG_FILES="$CONFIG_FILES contribs/openlava/Makefile" ;; |
| 25915 |
"contribs/sgather/Makefile") CONFIG_FILES="$CONFIG_FILES contribs/sgather/Makefile" ;; |
| 25916 |
"contribs/sgi/Makefile") CONFIG_FILES="$CONFIG_FILES contribs/sgi/Makefile" ;; |
| 25917 |
"contribs/sjobexit/Makefile") CONFIG_FILES="$CONFIG_FILES contribs/sjobexit/Makefile" ;; |
| 25918 |
"contribs/pmi/Makefile") CONFIG_FILES="$CONFIG_FILES contribs/pmi/Makefile" ;; |
| 25919 |
"contribs/pmi2/Makefile") CONFIG_FILES="$CONFIG_FILES contribs/pmi2/Makefile" ;; |
| 25920 |
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 25921 |
"doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;; |
| 25922 |
"doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile" ;; |
| 25923 |
"doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile" ;; |
| 25924 |
"doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile" ;; |
| 25925 |
"doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile" ;; |
| 25926 |
"doc/html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;; |
| 25927 |
"doc/html/configurator.html") CONFIG_FILES="$CONFIG_FILES doc/html/configurator.html" ;; |
| 25928 |
"doc/html/configurator.easy.html") CONFIG_FILES="$CONFIG_FILES doc/html/configurator.easy.html" ;; |
| 25929 |
"etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;; |
| 25930 |
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 25931 |
"src/api/Makefile") CONFIG_FILES="$CONFIG_FILES src/api/Makefile" ;; |
| 25932 |
"src/bcast/Makefile") CONFIG_FILES="$CONFIG_FILES src/bcast/Makefile" ;; |
| 25933 |
"src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;; |
| 25934 |
"src/layouts/Makefile") CONFIG_FILES="$CONFIG_FILES src/layouts/Makefile" ;; |
| 25935 |
"src/layouts/power/Makefile") CONFIG_FILES="$CONFIG_FILES src/layouts/power/Makefile" ;; |
| 25936 |
"src/layouts/unit/Makefile") CONFIG_FILES="$CONFIG_FILES src/layouts/unit/Makefile" ;; |
| 25937 |
"src/database/Makefile") CONFIG_FILES="$CONFIG_FILES src/database/Makefile" ;; |
| 25938 |
"src/sacct/Makefile") CONFIG_FILES="$CONFIG_FILES src/sacct/Makefile" ;; |
| 25939 |
"src/sacctmgr/Makefile") CONFIG_FILES="$CONFIG_FILES src/sacctmgr/Makefile" ;; |
| 25940 |
"src/sreport/Makefile") CONFIG_FILES="$CONFIG_FILES src/sreport/Makefile" ;; |
| 25941 |
"src/salloc/Makefile") CONFIG_FILES="$CONFIG_FILES src/salloc/Makefile" ;; |
| 25942 |
"src/sbatch/Makefile") CONFIG_FILES="$CONFIG_FILES src/sbatch/Makefile" ;; |
| 25943 |
"src/sbcast/Makefile") CONFIG_FILES="$CONFIG_FILES src/sbcast/Makefile" ;; |
| 25944 |
"src/sattach/Makefile") CONFIG_FILES="$CONFIG_FILES src/sattach/Makefile" ;; |
| 25945 |
"src/scancel/Makefile") CONFIG_FILES="$CONFIG_FILES src/scancel/Makefile" ;; |
| 25946 |
"src/scontrol/Makefile") CONFIG_FILES="$CONFIG_FILES src/scontrol/Makefile" ;; |
| 25947 |
"src/sdiag/Makefile") CONFIG_FILES="$CONFIG_FILES src/sdiag/Makefile" ;; |
| 25948 |
"src/sinfo/Makefile") CONFIG_FILES="$CONFIG_FILES src/sinfo/Makefile" ;; |
| 25949 |
"src/slurmctld/Makefile") CONFIG_FILES="$CONFIG_FILES src/slurmctld/Makefile" ;; |
| 25950 |
"src/slurmd/Makefile") CONFIG_FILES="$CONFIG_FILES src/slurmd/Makefile" ;; |
| 25951 |
"src/slurmd/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/slurmd/common/Makefile" ;; |
| 25952 |
"src/slurmd/slurmd/Makefile") CONFIG_FILES="$CONFIG_FILES src/slurmd/slurmd/Makefile" ;; |
| 25953 |
"src/slurmd/slurmstepd/Makefile") CONFIG_FILES="$CONFIG_FILES src/slurmd/slurmstepd/Makefile" ;; |
| 25954 |
"src/slurmdbd/Makefile") CONFIG_FILES="$CONFIG_FILES src/slurmdbd/Makefile" ;; |
| 25955 |
"src/smap/Makefile") CONFIG_FILES="$CONFIG_FILES src/smap/Makefile" ;; |
| 25956 |
"src/sprio/Makefile") CONFIG_FILES="$CONFIG_FILES src/sprio/Makefile" ;; |
| 25957 |
"src/squeue/Makefile") CONFIG_FILES="$CONFIG_FILES src/squeue/Makefile" ;; |
| 25958 |
"src/srun/Makefile") CONFIG_FILES="$CONFIG_FILES src/srun/Makefile" ;; |
| 25959 |
"src/srun/libsrun/Makefile") CONFIG_FILES="$CONFIG_FILES src/srun/libsrun/Makefile" ;; |
| 25960 |
"src/sshare/Makefile") CONFIG_FILES="$CONFIG_FILES src/sshare/Makefile" ;; |
| 25961 |
"src/sstat/Makefile") CONFIG_FILES="$CONFIG_FILES src/sstat/Makefile" ;; |
| 25962 |
"src/strigger/Makefile") CONFIG_FILES="$CONFIG_FILES src/strigger/Makefile" ;; |
| 25963 |
"src/sview/Makefile") CONFIG_FILES="$CONFIG_FILES src/sview/Makefile" ;; |
| 25964 |
"src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;; |
| 25965 |
"src/plugins/accounting_storage/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/accounting_storage/Makefile" ;; |
| 25966 |
"src/plugins/accounting_storage/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/accounting_storage/common/Makefile" ;; |
| 25967 |
"src/plugins/accounting_storage/filetxt/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/accounting_storage/filetxt/Makefile" ;; |
| 25968 |
"src/plugins/accounting_storage/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/accounting_storage/mysql/Makefile" ;; |
| 25969 |
"src/plugins/accounting_storage/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/accounting_storage/none/Makefile" ;; |
| 25970 |
"src/plugins/accounting_storage/slurmdbd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/accounting_storage/slurmdbd/Makefile" ;; |
| 25971 |
"src/plugins/acct_gather_energy/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/acct_gather_energy/Makefile" ;; |
| 25972 |
"src/plugins/acct_gather_energy/cray_aries/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/acct_gather_energy/cray_aries/Makefile" ;; |
| 25973 |
"src/plugins/acct_gather_energy/rapl/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/acct_gather_energy/rapl/Makefile" ;; |
| 25974 |
"src/plugins/acct_gather_energy/ibmaem/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/acct_gather_energy/ibmaem/Makefile" ;; |
| 25975 |
"src/plugins/acct_gather_energy/ipmi/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/acct_gather_energy/ipmi/Makefile" ;; |
| 25976 |
"src/plugins/acct_gather_energy/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/acct_gather_energy/none/Makefile" ;; |
| 25977 |
"src/plugins/acct_gather_energy/xcc/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/acct_gather_energy/xcc/Makefile" ;; |
| 25978 |
"src/plugins/acct_gather_interconnect/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/acct_gather_interconnect/Makefile" ;; |
| 25979 |
"src/plugins/acct_gather_interconnect/ofed/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/acct_gather_interconnect/ofed/Makefile" ;; |
| 25980 |
"src/plugins/acct_gather_interconnect/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/acct_gather_interconnect/none/Makefile" ;; |
| 25981 |
"src/plugins/acct_gather_filesystem/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/acct_gather_filesystem/Makefile" ;; |
| 25982 |
"src/plugins/acct_gather_filesystem/lustre/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/acct_gather_filesystem/lustre/Makefile" ;; |
| 25983 |
"src/plugins/acct_gather_filesystem/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/acct_gather_filesystem/none/Makefile" ;; |
| 25984 |
"src/plugins/acct_gather_profile/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/acct_gather_profile/Makefile" ;; |
| 25985 |
"src/plugins/acct_gather_profile/hdf5/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/acct_gather_profile/hdf5/Makefile" ;; |
| 25986 |
"src/plugins/acct_gather_profile/hdf5/sh5util/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/acct_gather_profile/hdf5/sh5util/Makefile" ;; |
| 25987 |
"src/plugins/acct_gather_profile/influxdb/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/acct_gather_profile/influxdb/Makefile" ;; |
| 25988 |
"src/plugins/acct_gather_profile/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/acct_gather_profile/none/Makefile" ;; |
| 25989 |
"src/plugins/auth/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/auth/Makefile" ;; |
| 25990 |
"src/plugins/auth/munge/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/auth/munge/Makefile" ;; |
| 25991 |
"src/plugins/auth/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/auth/none/Makefile" ;; |
| 25992 |
"src/plugins/burst_buffer/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/burst_buffer/Makefile" ;; |
| 25993 |
"src/plugins/burst_buffer/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/burst_buffer/common/Makefile" ;; |
| 25994 |
"src/plugins/burst_buffer/datawarp/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/burst_buffer/datawarp/Makefile" ;; |
| 25995 |
"src/plugins/burst_buffer/generic/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/burst_buffer/generic/Makefile" ;; |
| 25996 |
"src/plugins/checkpoint/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/checkpoint/Makefile" ;; |
| 25997 |
"src/plugins/checkpoint/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/checkpoint/none/Makefile" ;; |
| 25998 |
"src/plugins/checkpoint/ompi/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/checkpoint/ompi/Makefile" ;; |
| 25999 |
"src/plugins/cli_filter/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/cli_filter/Makefile" ;; |
| 26000 |
"src/plugins/cli_filter/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/cli_filter/none/Makefile" ;; |
| 26001 |
"src/plugins/core_spec/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/core_spec/Makefile" ;; |
| 26002 |
"src/plugins/core_spec/cray_aries/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/core_spec/cray_aries/Makefile" ;; |
| 26003 |
"src/plugins/core_spec/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/core_spec/none/Makefile" ;; |
| 26004 |
"src/plugins/cred/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/cred/Makefile" ;; |
| 26005 |
"src/plugins/cred/munge/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/cred/munge/Makefile" ;; |
| 26006 |
"src/plugins/cred/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/cred/none/Makefile" ;; |
| 26007 |
"src/plugins/ext_sensors/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/ext_sensors/Makefile" ;; |
| 26008 |
"src/plugins/ext_sensors/rrd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/ext_sensors/rrd/Makefile" ;; |
| 26009 |
"src/plugins/ext_sensors/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/ext_sensors/none/Makefile" ;; |
| 26010 |
"src/plugins/gpu/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/gpu/Makefile" ;; |
| 26011 |
"src/plugins/gpu/generic/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/gpu/generic/Makefile" ;; |
| 26012 |
"src/plugins/gpu/nvml/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/gpu/nvml/Makefile" ;; |
| 26013 |
"src/plugins/gres/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/gres/Makefile" ;; |
| 26014 |
"src/plugins/gres/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/gres/common/Makefile" ;; |
| 26015 |
"src/plugins/gres/gpu/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/gres/gpu/Makefile" ;; |
| 26016 |
"src/plugins/gres/dcu/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/gres/dcu/Makefile" ;; |
| 26017 |
"src/plugins/gres/nic/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/gres/nic/Makefile" ;; |
| 26018 |
"src/plugins/gres/mic/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/gres/mic/Makefile" ;; |
| 26019 |
"src/plugins/gres/mps/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/gres/mps/Makefile" ;; |
| 26020 |
"src/plugins/jobacct_gather/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/jobacct_gather/Makefile" ;; |
| 26021 |
"src/plugins/jobacct_gather/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/jobacct_gather/common/Makefile" ;; |
| 26022 |
"src/plugins/jobacct_gather/linux/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/jobacct_gather/linux/Makefile" ;; |
| 26023 |
"src/plugins/jobacct_gather/cgroup/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/jobacct_gather/cgroup/Makefile" ;; |
| 26024 |
"src/plugins/jobacct_gather/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/jobacct_gather/none/Makefile" ;; |
| 26025 |
"src/plugins/jobcomp/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/jobcomp/Makefile" ;; |
| 26026 |
"src/plugins/jobcomp/elasticsearch/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/jobcomp/elasticsearch/Makefile" ;; |
| 26027 |
"src/plugins/jobcomp/filetxt/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/jobcomp/filetxt/Makefile" ;; |
| 26028 |
"src/plugins/jobcomp/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/jobcomp/none/Makefile" ;; |
| 26029 |
"src/plugins/jobcomp/script/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/jobcomp/script/Makefile" ;; |
| 26030 |
"src/plugins/jobcomp/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/jobcomp/mysql/Makefile" ;; |
| 26031 |
"src/plugins/job_container/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/job_container/Makefile" ;; |
| 26032 |
"src/plugins/job_container/cncu/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/job_container/cncu/Makefile" ;; |
| 26033 |
"src/plugins/job_container/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/job_container/none/Makefile" ;; |
| 26034 |
"src/plugins/job_submit/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/job_submit/Makefile" ;; |
| 26035 |
"src/plugins/job_submit/all_partitions/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/job_submit/all_partitions/Makefile" ;; |
| 26036 |
"src/plugins/job_submit/cray_aries/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/job_submit/cray_aries/Makefile" ;; |
| 26037 |
"src/plugins/job_submit/defaults/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/job_submit/defaults/Makefile" ;; |
| 26038 |
"src/plugins/job_submit/logging/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/job_submit/logging/Makefile" ;; |
| 26039 |
"src/plugins/job_submit/lua/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/job_submit/lua/Makefile" ;; |
| 26040 |
"src/plugins/job_submit/partition/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/job_submit/partition/Makefile" ;; |
| 26041 |
"src/plugins/job_submit/pbs/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/job_submit/pbs/Makefile" ;; |
| 26042 |
"src/plugins/job_submit/require_timelimit/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/job_submit/require_timelimit/Makefile" ;; |
| 26043 |
"src/plugins/job_submit/throttle/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/job_submit/throttle/Makefile" ;; |
| 26044 |
"src/plugins/launch/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/launch/Makefile" ;; |
| 26045 |
"src/plugins/launch/slurm/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/launch/slurm/Makefile" ;; |
| 26046 |
"src/plugins/mcs/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/mcs/Makefile" ;; |
| 26047 |
"src/plugins/mcs/account/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/mcs/account/Makefile" ;; |
| 26048 |
"src/plugins/mcs/group/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/mcs/group/Makefile" ;; |
| 26049 |
"src/plugins/mcs/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/mcs/none/Makefile" ;; |
| 26050 |
"src/plugins/mcs/user/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/mcs/user/Makefile" ;; |
| 26051 |
"src/plugins/node_features/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/node_features/Makefile" ;; |
| 26052 |
"src/plugins/node_features/knl_cray/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/node_features/knl_cray/Makefile" ;; |
| 26053 |
"src/plugins/node_features/knl_generic/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/node_features/knl_generic/Makefile" ;; |
| 26054 |
"src/plugins/power/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/power/Makefile" ;; |
| 26055 |
"src/plugins/power/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/power/common/Makefile" ;; |
| 26056 |
"src/plugins/power/cray_aries/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/power/cray_aries/Makefile" ;; |
| 26057 |
"src/plugins/power/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/power/none/Makefile" ;; |
| 26058 |
"src/plugins/preempt/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/preempt/Makefile" ;; |
| 26059 |
"src/plugins/preempt/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/preempt/none/Makefile" ;; |
| 26060 |
"src/plugins/preempt/partition_prio/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/preempt/partition_prio/Makefile" ;; |
| 26061 |
"src/plugins/preempt/qos/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/preempt/qos/Makefile" ;; |
| 26062 |
"src/plugins/priority/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/priority/Makefile" ;; |
| 26063 |
"src/plugins/priority/basic/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/priority/basic/Makefile" ;; |
| 26064 |
"src/plugins/priority/multifactor/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/priority/multifactor/Makefile" ;; |
| 26065 |
"src/plugins/proctrack/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/proctrack/Makefile" ;; |
| 26066 |
"src/plugins/proctrack/cray_aries/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/proctrack/cray_aries/Makefile" ;; |
| 26067 |
"src/plugins/proctrack/cgroup/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/proctrack/cgroup/Makefile" ;; |
| 26068 |
"src/plugins/proctrack/pgid/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/proctrack/pgid/Makefile" ;; |
| 26069 |
"src/plugins/proctrack/linuxproc/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/proctrack/linuxproc/Makefile" ;; |
| 26070 |
"src/plugins/route/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/route/Makefile" ;; |
| 26071 |
"src/plugins/route/default/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/route/default/Makefile" ;; |
| 26072 |
"src/plugins/route/topology/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/route/topology/Makefile" ;; |
| 26073 |
"src/plugins/sched/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sched/Makefile" ;; |
| 26074 |
"src/plugins/sched/backfill/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sched/backfill/Makefile" ;; |
| 26075 |
"src/plugins/sched/builtin/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sched/builtin/Makefile" ;; |
| 26076 |
"src/plugins/sched/hold/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sched/hold/Makefile" ;; |
| 26077 |
"src/plugins/select/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/select/Makefile" ;; |
| 26078 |
"src/plugins/select/cons_res/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/select/cons_res/Makefile" ;; |
| 26079 |
"src/plugins/select/cons_tres/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/select/cons_tres/Makefile" ;; |
| 26080 |
"src/plugins/select/cray_aries/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/select/cray_aries/Makefile" ;; |
| 26081 |
"src/plugins/select/linear/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/select/linear/Makefile" ;; |
| 26082 |
"src/plugins/select/other/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/select/other/Makefile" ;; |
| 26083 |
"src/plugins/site_factor/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/site_factor/Makefile" ;; |
| 26084 |
"src/plugins/site_factor/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/site_factor/none/Makefile" ;; |
| 26085 |
"src/plugins/site_factor/sf/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/site_factor/sf/Makefile" ;; |
| 26086 |
"src/plugins/slurmctld/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/slurmctld/Makefile" ;; |
| 26087 |
"src/plugins/slurmctld/nonstop/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/slurmctld/nonstop/Makefile" ;; |
| 26088 |
"src/plugins/switch/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/switch/Makefile" ;; |
| 26089 |
"src/plugins/switch/cray_aries/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/switch/cray_aries/Makefile" ;; |
| 26090 |
"src/plugins/switch/generic/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/switch/generic/Makefile" ;; |
| 26091 |
"src/plugins/switch/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/switch/none/Makefile" ;; |
| 26092 |
"src/plugins/mpi/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/mpi/Makefile" ;; |
| 26093 |
"src/plugins/mpi/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/mpi/none/Makefile" ;; |
| 26094 |
"src/plugins/mpi/openmpi/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/mpi/openmpi/Makefile" ;; |
| 26095 |
"src/plugins/mpi/pmi2/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/mpi/pmi2/Makefile" ;; |
| 26096 |
"src/plugins/mpi/pmix/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/mpi/pmix/Makefile" ;; |
| 26097 |
"src/plugins/task/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/task/Makefile" ;; |
| 26098 |
"src/plugins/task/affinity/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/task/affinity/Makefile" ;; |
| 26099 |
"src/plugins/task/cgroup/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/task/cgroup/Makefile" ;; |
| 26100 |
"src/plugins/task/cray_aries/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/task/cray_aries/Makefile" ;; |
| 26101 |
"src/plugins/task/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/task/none/Makefile" ;; |
| 26102 |
"src/plugins/topology/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/topology/Makefile" ;; |
| 26103 |
"src/plugins/topology/3d_torus/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/topology/3d_torus/Makefile" ;; |
| 26104 |
"src/plugins/topology/hypercube/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/topology/hypercube/Makefile" ;; |
| 26105 |
"src/plugins/topology/node_rank/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/topology/node_rank/Makefile" ;; |
| 26106 |
"src/plugins/topology/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/topology/none/Makefile" ;; |
| 26107 |
"src/plugins/topology/tree/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/topology/tree/Makefile" ;; |
| 26108 |
"testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; |
| 26109 |
"testsuite/expect/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/expect/Makefile" ;; |
| 26110 |
"testsuite/slurm_unit/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/slurm_unit/Makefile" ;; |
| 26111 |
"testsuite/slurm_unit/api/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/slurm_unit/api/Makefile" ;; |
| 26112 |
"testsuite/slurm_unit/api/manual/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/slurm_unit/api/manual/Makefile" ;; |
| 26113 |
"testsuite/slurm_unit/common/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/slurm_unit/common/Makefile" ;; |
| 26114 |
"testsuite/slurm_unit/common/slurm_protocol_pack/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/slurm_unit/common/slurm_protocol_pack/Makefile" ;; |
| 26115 |
"testsuite/slurm_unit/common/slurmdb_pack/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/slurm_unit/common/slurmdb_pack/Makefile" ;; |
| 26116 |
|
| 26117 |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 26118 |
esac |
| 26119 |
done |
| 26120 |
|
| 26121 |
|
| 26122 |
# If the user did not use the arguments to specify the items to instantiate, |
| 26123 |
# then the envvar interface is used. Set only those that are not. |
| 26124 |
# We use the long form for the default assignment because of an extremely |
| 26125 |
# bizarre bug on SunOS 4.1.3. |
| 26126 |
if $ac_need_defaults; then |
| 26127 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 26128 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 26129 |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 26130 |
fi |
| 26131 |
|
| 26132 |
# Have a temporary directory for convenience. Make it in the build tree |
| 26133 |
# simply because there is no reason against having it here, and in addition, |
| 26134 |
# creating and moving files from /tmp can sometimes cause problems. |
| 26135 |
# Hook for its removal unless debugging. |
| 26136 |
# Note that there is a small window in which the directory will not be cleaned: |
| 26137 |
# after its creation but before its name has been assigned to `$tmp'. |
| 26138 |
$debug || |
| 26139 |
{ |
| 26140 |
tmp= ac_tmp= |
| 26141 |
trap 'exit_status=$? |
| 26142 |
: "${ac_tmp:=$tmp}" |
| 26143 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 26144 |
' 0 |
| 26145 |
trap 'as_fn_exit 1' 1 2 13 15 |
| 26146 |
} |
| 26147 |
# Create a (secure) tmp directory for tmp files. |
| 26148 |
|
| 26149 |
{ |
| 26150 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 26151 |
test -d "$tmp" |
| 26152 |
} || |
| 26153 |
{ |
| 26154 |
tmp=./conf$$-$RANDOM |
| 26155 |
(umask 077 && mkdir "$tmp") |
| 26156 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 26157 |
ac_tmp=$tmp |
| 26158 |
|
| 26159 |
# Set up the scripts for CONFIG_FILES section. |
| 26160 |
# No need to generate them if there are no CONFIG_FILES. |
| 26161 |
# This happens for instance with `./config.status config.h'. |
| 26162 |
if test -n "$CONFIG_FILES"; then |
| 26163 |
|
| 26164 |
|
| 26165 |
ac_cr=`echo X | tr X '\015'` |
| 26166 |
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 26167 |
# But we know of no other shell where ac_cr would be empty at this |
| 26168 |
# point, so we can use a bashism as a fallback. |
| 26169 |
if test "x$ac_cr" = x; then |
| 26170 |
eval ac_cr=\$\'\\r\' |
| 26171 |
fi |
| 26172 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 26173 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 26174 |
ac_cs_awk_cr='\\r' |
| 26175 |
else |
| 26176 |
ac_cs_awk_cr=$ac_cr |
| 26177 |
fi |
| 26178 |
|
| 26179 |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 26180 |
_ACEOF |
| 26181 |
|
| 26182 |
|
| 26183 |
{ |
| 26184 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
| 26185 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 26186 |
echo "_ACEOF" |
| 26187 |
} >conf$$subs.sh || |
| 26188 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 26189 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 26190 |
ac_delim='%!_!# ' |
| 26191 |
for ac_last_try in false false false false false :; do |
| 26192 |
. ./conf$$subs.sh || |
| 26193 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 26194 |
|
| 26195 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 26196 |
if test $ac_delim_n = $ac_delim_num; then |
| 26197 |
break |
| 26198 |
elif $ac_last_try; then |
| 26199 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 26200 |
else |
| 26201 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 26202 |
fi |
| 26203 |
done |
| 26204 |
rm -f conf$$subs.sh |
| 26205 |
|
| 26206 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26207 |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 26208 |
_ACEOF |
| 26209 |
sed -n ' |
| 26210 |
h |
| 26211 |
s/^/S["/; s/!.*/"]=/ |
| 26212 |
p |
| 26213 |
g |
| 26214 |
s/^[^!]*!// |
| 26215 |
:repl |
| 26216 |
t repl |
| 26217 |
s/'"$ac_delim"'$// |
| 26218 |
t delim |
| 26219 |
:nl |
| 26220 |
h |
| 26221 |
s/\(.\{148\}\)..*/\1/ |
| 26222 |
t more1 |
| 26223 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 26224 |
p |
| 26225 |
n |
| 26226 |
b repl |
| 26227 |
:more1 |
| 26228 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 26229 |
p |
| 26230 |
g |
| 26231 |
s/.\{148\}// |
| 26232 |
t nl |
| 26233 |
:delim |
| 26234 |
h |
| 26235 |
s/\(.\{148\}\)..*/\1/ |
| 26236 |
t more2 |
| 26237 |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 26238 |
p |
| 26239 |
b |
| 26240 |
:more2 |
| 26241 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 26242 |
p |
| 26243 |
g |
| 26244 |
s/.\{148\}// |
| 26245 |
t delim |
| 26246 |
' <conf$$subs.awk | sed ' |
| 26247 |
/^[^""]/{ |
| 26248 |
N |
| 26249 |
s/\n// |
| 26250 |
} |
| 26251 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
| 26252 |
rm -f conf$$subs.awk |
| 26253 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26254 |
_ACAWK |
| 26255 |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 26256 |
for (key in S) S_is_set[key] = 1 |
| 26257 |
FS = "" |
| 26258 |
|
| 26259 |
} |
| 26260 |
{ |
| 26261 |
line = $ 0 |
| 26262 |
nfields = split(line, field, "@") |
| 26263 |
substed = 0 |
| 26264 |
len = length(field[1]) |
| 26265 |
for (i = 2; i < nfields; i++) { |
| 26266 |
key = field[i] |
| 26267 |
keylen = length(key) |
| 26268 |
if (S_is_set[key]) { |
| 26269 |
value = S[key] |
| 26270 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 26271 |
len += length(value) + length(field[++i]) |
| 26272 |
substed = 1 |
| 26273 |
} else |
| 26274 |
len += 1 + keylen |
| 26275 |
} |
| 26276 |
|
| 26277 |
print line |
| 26278 |
} |
| 26279 |
|
| 26280 |
_ACAWK |
| 26281 |
_ACEOF |
| 26282 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26283 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 26284 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 26285 |
else |
| 26286 |
cat |
| 26287 |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 26288 |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 26289 |
_ACEOF |
| 26290 |
|
| 26291 |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 26292 |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 26293 |
# trailing colons and then remove the whole line if VPATH becomes empty |
| 26294 |
# (actually we leave an empty line to preserve line numbers). |
| 26295 |
if test "x$srcdir" = x.; then |
| 26296 |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 26297 |
h |
| 26298 |
s/// |
| 26299 |
s/^/:/ |
| 26300 |
s/[ ]*$/:/ |
| 26301 |
s/:\$(srcdir):/:/g |
| 26302 |
s/:\${srcdir}:/:/g |
| 26303 |
s/:@srcdir@:/:/g |
| 26304 |
s/^:*// |
| 26305 |
s/:*$// |
| 26306 |
x |
| 26307 |
s/\(=[ ]*\).*/\1/ |
| 26308 |
G |
| 26309 |
s/\n// |
| 26310 |
s/^[^=]*=[ ]*$// |
| 26311 |
}' |
| 26312 |
fi |
| 26313 |
|
| 26314 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26315 |
fi # test -n "$CONFIG_FILES" |
| 26316 |
|
| 26317 |
# Set up the scripts for CONFIG_HEADERS section. |
| 26318 |
# No need to generate them if there are no CONFIG_HEADERS. |
| 26319 |
# This happens for instance with `./config.status Makefile'. |
| 26320 |
if test -n "$CONFIG_HEADERS"; then |
| 26321 |
cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 26322 |
BEGIN { |
| 26323 |
_ACEOF |
| 26324 |
|
| 26325 |
# Transform confdefs.h into an awk script `defines.awk', embedded as |
| 26326 |
# here-document in config.status, that substitutes the proper values into |
| 26327 |
# config.h.in to produce config.h. |
| 26328 |
|
| 26329 |
# Create a delimiter string that does not exist in confdefs.h, to ease |
| 26330 |
# handling of long lines. |
| 26331 |
ac_delim='%!_!# ' |
| 26332 |
for ac_last_try in false false :; do |
| 26333 |
ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 26334 |
if test -z "$ac_tt"; then |
| 26335 |
break |
| 26336 |
elif $ac_last_try; then |
| 26337 |
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 26338 |
else |
| 26339 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 26340 |
fi |
| 26341 |
done |
| 26342 |
|
| 26343 |
# For the awk script, D is an array of macro values keyed by name, |
| 26344 |
# likewise P contains macro parameters if any. Preserve backslash |
| 26345 |
# newline sequences. |
| 26346 |
|
| 26347 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 26348 |
sed -n ' |
| 26349 |
s/.\{148\}/&'"$ac_delim"'/g |
| 26350 |
t rset |
| 26351 |
:rset |
| 26352 |
s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 26353 |
t def |
| 26354 |
d |
| 26355 |
:def |
| 26356 |
s/\\$// |
| 26357 |
t bsnl |
| 26358 |
s/["\\]/\\&/g |
| 26359 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 26360 |
D["\1"]=" \3"/p |
| 26361 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 26362 |
d |
| 26363 |
:bsnl |
| 26364 |
s/["\\]/\\&/g |
| 26365 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 26366 |
D["\1"]=" \3\\\\\\n"\\/p |
| 26367 |
t cont |
| 26368 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 26369 |
t cont |
| 26370 |
d |
| 26371 |
:cont |
| 26372 |
n |
| 26373 |
s/.\{148\}/&'"$ac_delim"'/g |
| 26374 |
t clear |
| 26375 |
:clear |
| 26376 |
s/\\$// |
| 26377 |
t bsnlc |
| 26378 |
s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 26379 |
d |
| 26380 |
:bsnlc |
| 26381 |
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 26382 |
b cont |
| 26383 |
' <confdefs.h | sed ' |
| 26384 |
s/'"$ac_delim"'/"\\\ |
| 26385 |
"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 26386 |
|
| 26387 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26388 |
for (key in D) D_is_set[key] = 1 |
| 26389 |
FS = "" |
| 26390 |
} |
| 26391 |
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 26392 |
line = \$ 0 |
| 26393 |
split(line, arg, " ") |
| 26394 |
if (arg[1] == "#") { |
| 26395 |
defundef = arg[2] |
| 26396 |
mac1 = arg[3] |
| 26397 |
} else { |
| 26398 |
defundef = substr(arg[1], 2) |
| 26399 |
mac1 = arg[2] |
| 26400 |
} |
| 26401 |
split(mac1, mac2, "(") #) |
| 26402 |
macro = mac2[1] |
| 26403 |
prefix = substr(line, 1, index(line, defundef) - 1) |
| 26404 |
if (D_is_set[macro]) { |
| 26405 |
# Preserve the white space surrounding the "#". |
| 26406 |
print prefix "define", macro P[macro] D[macro] |
| 26407 |
next |
| 26408 |
} else { |
| 26409 |
# Replace #undef with comments. This is necessary, for example, |
| 26410 |
# in the case of _POSIX_SOURCE, which is predefined and required |
| 26411 |
# on some systems where configure will not decide to define it. |
| 26412 |
if (defundef == "undef") { |
| 26413 |
print "/*", prefix defundef, macro, "*/" |
| 26414 |
next |
| 26415 |
} |
| 26416 |
} |
| 26417 |
} |
| 26418 |
{ print } |
| 26419 |
_ACAWK |
| 26420 |
_ACEOF |
| 26421 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26422 |
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 26423 |
fi # test -n "$CONFIG_HEADERS" |
| 26424 |
|
| 26425 |
|
| 26426 |
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 26427 |
shift |
| 26428 |
for ac_tag |
| 26429 |
do |
| 26430 |
case $ac_tag in |
| 26431 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
| 26432 |
esac |
| 26433 |
case $ac_mode$ac_tag in |
| 26434 |
:[FHL]*:*);; |
| 26435 |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 26436 |
:[FH]-) ac_tag=-:-;; |
| 26437 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 26438 |
esac |
| 26439 |
ac_save_IFS=$IFS |
| 26440 |
IFS=: |
| 26441 |
set x $ac_tag |
| 26442 |
IFS=$ac_save_IFS |
| 26443 |
shift |
| 26444 |
ac_file=$1 |
| 26445 |
shift |
| 26446 |
|
| 26447 |
case $ac_mode in |
| 26448 |
:L) ac_source=$1;; |
| 26449 |
:[FH]) |
| 26450 |
ac_file_inputs= |
| 26451 |
for ac_f |
| 26452 |
do |
| 26453 |
case $ac_f in |
| 26454 |
-) ac_f="$ac_tmp/stdin";; |
| 26455 |
*) # Look for the file first in the build tree, then in the source tree |
| 26456 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
| 26457 |
# because $ac_f cannot contain `:'. |
| 26458 |
test -f "$ac_f" || |
| 26459 |
case $ac_f in |
| 26460 |
[\\/$]*) false;; |
| 26461 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 26462 |
esac || |
| 26463 |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 26464 |
esac |
| 26465 |
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 26466 |
as_fn_append ac_file_inputs " '$ac_f'" |
| 26467 |
done |
| 26468 |
|
| 26469 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
| 26470 |
# use $as_me), people would be surprised to read: |
| 26471 |
# /* config.h. Generated by config.status. */ |
| 26472 |
configure_input='Generated from '` |
| 26473 |
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 26474 |
`' by configure.' |
| 26475 |
if test x"$ac_file" != x-; then |
| 26476 |
configure_input="$ac_file. $configure_input" |
| 26477 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 26478 |
$as_echo "$as_me: creating $ac_file" >&6;} |
| 26479 |
fi |
| 26480 |
# Neutralize special characters interpreted by sed in replacement strings. |
| 26481 |
case $configure_input in #( |
| 26482 |
*\&* | *\|* | *\\* ) |
| 26483 |
ac_sed_conf_input=`$as_echo "$configure_input" | |
| 26484 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 26485 |
*) ac_sed_conf_input=$configure_input;; |
| 26486 |
esac |
| 26487 |
|
| 26488 |
case $ac_tag in |
| 26489 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 26490 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 26491 |
esac |
| 26492 |
;; |
| 26493 |
esac |
| 26494 |
|
| 26495 |
ac_dir=`$as_dirname -- "$ac_file" || |
| 26496 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 26497 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 26498 |
X"$ac_file" : 'X\(//\)$' \| \ |
| 26499 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 26500 |
$as_echo X"$ac_file" | |
| 26501 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 26502 |
s//\1/ |
| 26503 |
q |
| 26504 |
} |
| 26505 |
/^X\(\/\/\)[^/].*/{ |
| 26506 |
s//\1/ |
| 26507 |
q |
| 26508 |
} |
| 26509 |
/^X\(\/\/\)$/{ |
| 26510 |
s//\1/ |
| 26511 |
q |
| 26512 |
} |
| 26513 |
/^X\(\/\).*/{ |
| 26514 |
s//\1/ |
| 26515 |
q |
| 26516 |
} |
| 26517 |
s/.*/./; q'` |
| 26518 |
as_dir="$ac_dir"; as_fn_mkdir_p |
| 26519 |
ac_builddir=. |
| 26520 |
|
| 26521 |
case "$ac_dir" in |
| 26522 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 26523 |
*) |
| 26524 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 26525 |
# A ".." for each directory in $ac_dir_suffix. |
| 26526 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 26527 |
case $ac_top_builddir_sub in |
| 26528 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 26529 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 26530 |
esac ;; |
| 26531 |
esac |
| 26532 |
ac_abs_top_builddir=$ac_pwd |
| 26533 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 26534 |
# for backward compatibility: |
| 26535 |
ac_top_builddir=$ac_top_build_prefix |
| 26536 |
|
| 26537 |
case $srcdir in |
| 26538 |
.) # We are building in place. |
| 26539 |
ac_srcdir=. |
| 26540 |
ac_top_srcdir=$ac_top_builddir_sub |
| 26541 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 26542 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 26543 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 26544 |
ac_top_srcdir=$srcdir |
| 26545 |
ac_abs_top_srcdir=$srcdir ;; |
| 26546 |
*) # Relative name. |
| 26547 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 26548 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 26549 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 26550 |
esac |
| 26551 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 26552 |
|
| 26553 |
|
| 26554 |
case $ac_mode in |
| 26555 |
:F) |
| 26556 |
# |
| 26557 |
# CONFIG_FILE |
| 26558 |
# |
| 26559 |
|
| 26560 |
case $INSTALL in |
| 26561 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 26562 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 26563 |
esac |
| 26564 |
ac_MKDIR_P=$MKDIR_P |
| 26565 |
case $MKDIR_P in |
| 26566 |
[\\/$]* | ?:[\\/]* ) ;; |
| 26567 |
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 26568 |
esac |
| 26569 |
_ACEOF |
| 26570 |
|
| 26571 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26572 |
# If the template does not know about datarootdir, expand it. |
| 26573 |
# FIXME: This hack should be removed a few years after 2.60. |
| 26574 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
| 26575 |
ac_sed_dataroot=' |
| 26576 |
/datarootdir/ { |
| 26577 |
p |
| 26578 |
q |
| 26579 |
} |
| 26580 |
/@datadir@/p |
| 26581 |
/@docdir@/p |
| 26582 |
/@infodir@/p |
| 26583 |
/@localedir@/p |
| 26584 |
/@mandir@/p' |
| 26585 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 26586 |
*datarootdir*) ac_datarootdir_seen=yes;; |
| 26587 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 26588 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 26589 |
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 26590 |
_ACEOF |
| 26591 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26592 |
ac_datarootdir_hack=' |
| 26593 |
s&@datadir@&$datadir&g |
| 26594 |
s&@docdir@&$docdir&g |
| 26595 |
s&@infodir@&$infodir&g |
| 26596 |
s&@localedir@&$localedir&g |
| 26597 |
s&@mandir@&$mandir&g |
| 26598 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
| 26599 |
esac |
| 26600 |
_ACEOF |
| 26601 |
|
| 26602 |
# Neutralize VPATH when `$srcdir' = `.'. |
| 26603 |
# Shell code in configure.ac might set extrasub. |
| 26604 |
# FIXME: do we really want to maintain this feature? |
| 26605 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26606 |
ac_sed_extra="$ac_vpsub |
| 26607 |
$extrasub |
| 26608 |
_ACEOF |
| 26609 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26610 |
:t |
| 26611 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 26612 |
s|@configure_input@|$ac_sed_conf_input|;t t |
| 26613 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 26614 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 26615 |
s&@srcdir@&$ac_srcdir&;t t |
| 26616 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 26617 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
| 26618 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 26619 |
s&@builddir@&$ac_builddir&;t t |
| 26620 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
| 26621 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 26622 |
s&@INSTALL@&$ac_INSTALL&;t t |
| 26623 |
s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 26624 |
$ac_datarootdir_hack |
| 26625 |
" |
| 26626 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 26627 |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 26628 |
|
| 26629 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 26630 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 26631 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 26632 |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
| 26633 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 26634 |
which seems to be undefined. Please make sure it is defined" >&5 |
| 26635 |
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 26636 |
which seems to be undefined. Please make sure it is defined" >&2;} |
| 26637 |
|
| 26638 |
rm -f "$ac_tmp/stdin" |
| 26639 |
case $ac_file in |
| 26640 |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 26641 |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 26642 |
esac \ |
| 26643 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 26644 |
;; |
| 26645 |
:H) |
| 26646 |
# |
| 26647 |
# CONFIG_HEADER |
| 26648 |
# |
| 26649 |
if test x"$ac_file" != x-; then |
| 26650 |
{ |
| 26651 |
$as_echo "/* $configure_input */" \ |
| 26652 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 26653 |
} >"$ac_tmp/config.h" \ |
| 26654 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 26655 |
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 26656 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 26657 |
$as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 26658 |
else |
| 26659 |
rm -f "$ac_file" |
| 26660 |
mv "$ac_tmp/config.h" "$ac_file" \ |
| 26661 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 26662 |
fi |
| 26663 |
else |
| 26664 |
$as_echo "/* $configure_input */" \ |
| 26665 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 26666 |
|| as_fn_error $? "could not create -" "$LINENO" 5 |
| 26667 |
fi |
| 26668 |
# Compute "$ac_file"'s index in $config_headers. |
| 26669 |
_am_arg="$ac_file" |
| 26670 |
_am_stamp_count=1 |
| 26671 |
for _am_header in $config_headers :; do |
| 26672 |
case $_am_header in |
| 26673 |
$_am_arg | $_am_arg:* ) |
| 26674 |
break ;; |
| 26675 |
* ) |
| 26676 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 26677 |
esac |
| 26678 |
done |
| 26679 |
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 26680 |
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 26681 |
X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 26682 |
X"$_am_arg" : 'X\(//\)$' \| \ |
| 26683 |
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 26684 |
$as_echo X"$_am_arg" | |
| 26685 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 26686 |
s//\1/ |
| 26687 |
q |
| 26688 |
} |
| 26689 |
/^X\(\/\/\)[^/].*/{ |
| 26690 |
s//\1/ |
| 26691 |
q |
| 26692 |
} |
| 26693 |
/^X\(\/\/\)$/{ |
| 26694 |
s//\1/ |
| 26695 |
q |
| 26696 |
} |
| 26697 |
/^X\(\/\).*/{ |
| 26698 |
s//\1/ |
| 26699 |
q |
| 26700 |
} |
| 26701 |
s/.*/./; q'`/stamp-h$_am_stamp_count |
| 26702 |
;; |
| 26703 |
|
| 26704 |
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 26705 |
$as_echo "$as_me: executing $ac_file commands" >&6;} |
| 26706 |
;; |
| 26707 |
esac |
| 26708 |
|
| 26709 |
|
| 26710 |
case $ac_file$ac_mode in |
| 26711 |
"depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 26712 |
# Older Autoconf quotes --file arguments for eval, but not when files |
| 26713 |
# are listed without --file. Let's play safe and only enable the eval |
| 26714 |
# if we detect the quoting. |
| 26715 |
# TODO: see whether this extra hack can be removed once we start |
| 26716 |
# requiring Autoconf 2.70 or later. |
| 26717 |
case $CONFIG_FILES in #( |
| 26718 |
*\'*) : |
| 26719 |
eval set x "$CONFIG_FILES" ;; #( |
| 26720 |
*) : |
| 26721 |
set x $CONFIG_FILES ;; #( |
| 26722 |
*) : |
| 26723 |
;; |
| 26724 |
esac |
| 26725 |
shift |
| 26726 |
# Used to flag and report bootstrapping failures. |
| 26727 |
am_rc=0 |
| 26728 |
for am_mf |
| 26729 |
do |
| 26730 |
# Strip MF so we end up with the name of the file. |
| 26731 |
am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` |
| 26732 |
# Check whether this is an Automake generated Makefile which includes |
| 26733 |
# dependency-tracking related rules and includes. |
| 26734 |
# Grep'ing the whole file directly is not great: AIX grep has a line |
| 26735 |
# limit of 2048, but all sed's we know have understand at least 4000. |
| 26736 |
sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ |
| 26737 |
|| continue |
| 26738 |
am_dirpart=`$as_dirname -- "$am_mf" || |
| 26739 |
$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 26740 |
X"$am_mf" : 'X\(//\)[^/]' \| \ |
| 26741 |
X"$am_mf" : 'X\(//\)$' \| \ |
| 26742 |
X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 26743 |
$as_echo X"$am_mf" | |
| 26744 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 26745 |
s//\1/ |
| 26746 |
q |
| 26747 |
} |
| 26748 |
/^X\(\/\/\)[^/].*/{ |
| 26749 |
s//\1/ |
| 26750 |
q |
| 26751 |
} |
| 26752 |
/^X\(\/\/\)$/{ |
| 26753 |
s//\1/ |
| 26754 |
q |
| 26755 |
} |
| 26756 |
/^X\(\/\).*/{ |
| 26757 |
s//\1/ |
| 26758 |
q |
| 26759 |
} |
| 26760 |
s/.*/./; q'` |
| 26761 |
am_filepart=`$as_basename -- "$am_mf" || |
| 26762 |
$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ |
| 26763 |
X"$am_mf" : 'X\(//\)$' \| \ |
| 26764 |
X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 26765 |
$as_echo X/"$am_mf" | |
| 26766 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 26767 |
s//\1/ |
| 26768 |
q |
| 26769 |
} |
| 26770 |
/^X\/\(\/\/\)$/{ |
| 26771 |
s//\1/ |
| 26772 |
q |
| 26773 |
} |
| 26774 |
/^X\/\(\/\).*/{ |
| 26775 |
s//\1/ |
| 26776 |
q |
| 26777 |
} |
| 26778 |
s/.*/./; q'` |
| 26779 |
{ echo "$as_me:$LINENO: cd "$am_dirpart" \ |
| 26780 |
&& sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 26781 |
| $MAKE -f - am--depfiles" >&5 |
| 26782 |
(cd "$am_dirpart" \ |
| 26783 |
&& sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 26784 |
| $MAKE -f - am--depfiles) >&5 2>&5 |
| 26785 |
ac_status=$? |
| 26786 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26787 |
(exit $ac_status); } || am_rc=$? |
| 26788 |
done |
| 26789 |
if test $am_rc -ne 0; then |
| 26790 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 26791 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 26792 |
as_fn_error $? "Something went wrong bootstrapping makefile fragments |
| 26793 |
for automatic dependency tracking. Try re-running configure with the |
| 26794 |
'--disable-dependency-tracking' option to at least be able to build |
| 26795 |
the package (albeit without support for automatic dependency tracking). |
| 26796 |
See \`config.log' for more details" "$LINENO" 5; } |
| 26797 |
fi |
| 26798 |
{ am_dirpart=; unset am_dirpart;} |
| 26799 |
{ am_filepart=; unset am_filepart;} |
| 26800 |
{ am_mf=; unset am_mf;} |
| 26801 |
{ am_rc=; unset am_rc;} |
| 26802 |
rm -f conftest-deps.mk |
| 26803 |
} |
| 26804 |
;; |
| 26805 |
"libtool":C) |
| 26806 |
|
| 26807 |
# See if we are running on zsh, and set the options that allow our |
| 26808 |
# commands through without removal of \ escapes. |
| 26809 |
if test -n "${ZSH_VERSION+set}"; then |
| 26810 |
setopt NO_GLOB_SUBST |
| 26811 |
fi |
| 26812 |
|
| 26813 |
cfgfile=${ofile}T |
| 26814 |
trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 26815 |
$RM "$cfgfile" |
| 26816 |
|
| 26817 |
cat <<_LT_EOF >> "$cfgfile" |
| 26818 |
#! $SHELL |
| 26819 |
# Generated automatically by $as_me ($PACKAGE) $VERSION |
| 26820 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 26821 |
|
| 26822 |
# Provide generalized library-building support services. |
| 26823 |
# Written by Gordon Matzigkeit, 1996 |
| 26824 |
|
| 26825 |
# Copyright (C) 2014 Free Software Foundation, Inc. |
| 26826 |
# This is free software; see the source for copying conditions. There is NO |
| 26827 |
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 26828 |
|
| 26829 |
# GNU Libtool is free software; you can redistribute it and/or modify |
| 26830 |
# it under the terms of the GNU General Public License as published by |
| 26831 |
# the Free Software Foundation; either version 2 of of the License, or |
| 26832 |
# (at your option) any later version. |
| 26833 |
# |
| 26834 |
# As a special exception to the GNU General Public License, if you |
| 26835 |
# distribute this file as part of a program or library that is built |
| 26836 |
# using GNU Libtool, you may include this file under the same |
| 26837 |
# distribution terms that you use for the rest of that program. |
| 26838 |
# |
| 26839 |
# GNU Libtool is distributed in the hope that it will be useful, but |
| 26840 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 26841 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 26842 |
# GNU General Public License for more details. |
| 26843 |
# |
| 26844 |
# You should have received a copy of the GNU General Public License |
| 26845 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 26846 |
|
| 26847 |
|
| 26848 |
# The names of the tagged configurations supported by this script. |
| 26849 |
available_tags='CXX ' |
| 26850 |
|
| 26851 |
# Configured defaults for sys_lib_dlsearch_path munging. |
| 26852 |
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} |
| 26853 |
|
| 26854 |
# ### BEGIN LIBTOOL CONFIG |
| 26855 |
|
| 26856 |
# Which release of libtool.m4 was used? |
| 26857 |
macro_version=$macro_version |
| 26858 |
macro_revision=$macro_revision |
| 26859 |
|
| 26860 |
# Whether or not to build shared libraries. |
| 26861 |
build_libtool_libs=$enable_shared |
| 26862 |
|
| 26863 |
# Whether or not to build static libraries. |
| 26864 |
build_old_libs=$enable_static |
| 26865 |
|
| 26866 |
# What type of objects to build. |
| 26867 |
pic_mode=$pic_mode |
| 26868 |
|
| 26869 |
# Whether or not to optimize for fast installation. |
| 26870 |
fast_install=$enable_fast_install |
| 26871 |
|
| 26872 |
# Shared archive member basename,for filename based shared library versioning on AIX. |
| 26873 |
shared_archive_member_spec=$shared_archive_member_spec |
| 26874 |
|
| 26875 |
# Shell to use when invoking shell scripts. |
| 26876 |
SHELL=$lt_SHELL |
| 26877 |
|
| 26878 |
# An echo program that protects backslashes. |
| 26879 |
ECHO=$lt_ECHO |
| 26880 |
|
| 26881 |
# The PATH separator for the build system. |
| 26882 |
PATH_SEPARATOR=$lt_PATH_SEPARATOR |
| 26883 |
|
| 26884 |
# The host system. |
| 26885 |
host_alias=$host_alias |
| 26886 |
host=$host |
| 26887 |
host_os=$host_os |
| 26888 |
|
| 26889 |
# The build system. |
| 26890 |
build_alias=$build_alias |
| 26891 |
build=$build |
| 26892 |
build_os=$build_os |
| 26893 |
|
| 26894 |
# A sed program that does not truncate output. |
| 26895 |
SED=$lt_SED |
| 26896 |
|
| 26897 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 26898 |
Xsed="\$SED -e 1s/^X//" |
| 26899 |
|
| 26900 |
# A grep program that handles long lines. |
| 26901 |
GREP=$lt_GREP |
| 26902 |
|
| 26903 |
# An ERE matcher. |
| 26904 |
EGREP=$lt_EGREP |
| 26905 |
|
| 26906 |
# A literal string matcher. |
| 26907 |
FGREP=$lt_FGREP |
| 26908 |
|
| 26909 |
# A BSD- or MS-compatible name lister. |
| 26910 |
NM=$lt_NM |
| 26911 |
|
| 26912 |
# Whether we need soft or hard links. |
| 26913 |
LN_S=$lt_LN_S |
| 26914 |
|
| 26915 |
# What is the maximum length of a command? |
| 26916 |
max_cmd_len=$max_cmd_len |
| 26917 |
|
| 26918 |
# Object file suffix (normally "o"). |
| 26919 |
objext=$ac_objext |
| 26920 |
|
| 26921 |
# Executable file suffix (normally ""). |
| 26922 |
exeext=$exeext |
| 26923 |
|
| 26924 |
# whether the shell understands "unset". |
| 26925 |
lt_unset=$lt_unset |
| 26926 |
|
| 26927 |
# turn spaces into newlines. |
| 26928 |
SP2NL=$lt_lt_SP2NL |
| 26929 |
|
| 26930 |
# turn newlines into spaces. |
| 26931 |
NL2SP=$lt_lt_NL2SP |
| 26932 |
|
| 26933 |
# convert \$build file names to \$host format. |
| 26934 |
to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 26935 |
|
| 26936 |
# convert \$build files to toolchain format. |
| 26937 |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 26938 |
|
| 26939 |
# An object symbol dumper. |
| 26940 |
OBJDUMP=$lt_OBJDUMP |
| 26941 |
|
| 26942 |
# Method to check whether dependent libraries are shared objects. |
| 26943 |
deplibs_check_method=$lt_deplibs_check_method |
| 26944 |
|
| 26945 |
# Command to use when deplibs_check_method = "file_magic". |
| 26946 |
file_magic_cmd=$lt_file_magic_cmd |
| 26947 |
|
| 26948 |
# How to find potential files when deplibs_check_method = "file_magic". |
| 26949 |
file_magic_glob=$lt_file_magic_glob |
| 26950 |
|
| 26951 |
# Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 26952 |
want_nocaseglob=$lt_want_nocaseglob |
| 26953 |
|
| 26954 |
# DLL creation program. |
| 26955 |
DLLTOOL=$lt_DLLTOOL |
| 26956 |
|
| 26957 |
# Command to associate shared and link libraries. |
| 26958 |
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 26959 |
|
| 26960 |
# The archiver. |
| 26961 |
AR=$lt_AR |
| 26962 |
|
| 26963 |
# Flags to create an archive. |
| 26964 |
AR_FLAGS=$lt_AR_FLAGS |
| 26965 |
|
| 26966 |
# How to feed a file listing to the archiver. |
| 26967 |
archiver_list_spec=$lt_archiver_list_spec |
| 26968 |
|
| 26969 |
# A symbol stripping program. |
| 26970 |
STRIP=$lt_STRIP |
| 26971 |
|
| 26972 |
# Commands used to install an old-style archive. |
| 26973 |
RANLIB=$lt_RANLIB |
| 26974 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26975 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26976 |
|
| 26977 |
# Whether to use a lock for old archive extraction. |
| 26978 |
lock_old_archive_extraction=$lock_old_archive_extraction |
| 26979 |
|
| 26980 |
# A C compiler. |
| 26981 |
LTCC=$lt_CC |
| 26982 |
|
| 26983 |
# LTCC compiler flags. |
| 26984 |
LTCFLAGS=$lt_CFLAGS |
| 26985 |
|
| 26986 |
# Take the output of nm and produce a listing of raw symbols and C names. |
| 26987 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 26988 |
|
| 26989 |
# Transform the output of nm in a proper C declaration. |
| 26990 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 26991 |
|
| 26992 |
# Transform the output of nm into a list of symbols to manually relocate. |
| 26993 |
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import |
| 26994 |
|
| 26995 |
# Transform the output of nm in a C name address pair. |
| 26996 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 26997 |
|
| 26998 |
# Transform the output of nm in a C name address pair when lib prefix is needed. |
| 26999 |
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 27000 |
|
| 27001 |
# The name lister interface. |
| 27002 |
nm_interface=$lt_lt_cv_nm_interface |
| 27003 |
|
| 27004 |
# Specify filename containing input files for \$NM. |
| 27005 |
nm_file_list_spec=$lt_nm_file_list_spec |
| 27006 |
|
| 27007 |
# The root where to search for dependent libraries,and where our libraries should be installed. |
| 27008 |
lt_sysroot=$lt_sysroot |
| 27009 |
|
| 27010 |
# Command to truncate a binary pipe. |
| 27011 |
lt_truncate_bin=$lt_lt_cv_truncate_bin |
| 27012 |
|
| 27013 |
# The name of the directory that contains temporary libtool files. |
| 27014 |
objdir=$objdir |
| 27015 |
|
| 27016 |
# Used to examine libraries when file_magic_cmd begins with "file". |
| 27017 |
MAGIC_CMD=$MAGIC_CMD |
| 27018 |
|
| 27019 |
# Must we lock files when doing compilation? |
| 27020 |
need_locks=$lt_need_locks |
| 27021 |
|
| 27022 |
# Manifest tool. |
| 27023 |
MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 27024 |
|
| 27025 |
# Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 27026 |
DSYMUTIL=$lt_DSYMUTIL |
| 27027 |
|
| 27028 |
# Tool to change global to local symbols on Mac OS X. |
| 27029 |
NMEDIT=$lt_NMEDIT |
| 27030 |
|
| 27031 |
# Tool to manipulate fat objects and archives on Mac OS X. |
| 27032 |
LIPO=$lt_LIPO |
| 27033 |
|
| 27034 |
# ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 27035 |
OTOOL=$lt_OTOOL |
| 27036 |
|
| 27037 |
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 27038 |
OTOOL64=$lt_OTOOL64 |
| 27039 |
|
| 27040 |
# Old archive suffix (normally "a"). |
| 27041 |
libext=$libext |
| 27042 |
|
| 27043 |
# Shared library suffix (normally ".so"). |
| 27044 |
shrext_cmds=$lt_shrext_cmds |
| 27045 |
|
| 27046 |
# The commands to extract the exported symbol list from a shared archive. |
| 27047 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 27048 |
|
| 27049 |
# Variables whose values should be saved in libtool wrapper scripts and |
| 27050 |
# restored at link time. |
| 27051 |
variables_saved_for_relink=$lt_variables_saved_for_relink |
| 27052 |
|
| 27053 |
# Do we need the "lib" prefix for modules? |
| 27054 |
need_lib_prefix=$need_lib_prefix |
| 27055 |
|
| 27056 |
# Do we need a version for libraries? |
| 27057 |
need_version=$need_version |
| 27058 |
|
| 27059 |
# Library versioning type. |
| 27060 |
version_type=$version_type |
| 27061 |
|
| 27062 |
# Shared library runtime path variable. |
| 27063 |
runpath_var=$runpath_var |
| 27064 |
|
| 27065 |
# Shared library path variable. |
| 27066 |
shlibpath_var=$shlibpath_var |
| 27067 |
|
| 27068 |
# Is shlibpath searched before the hard-coded library search path? |
| 27069 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 27070 |
|
| 27071 |
# Format of library name prefix. |
| 27072 |
libname_spec=$lt_libname_spec |
| 27073 |
|
| 27074 |
# List of archive names. First name is the real one, the rest are links. |
| 27075 |
# The last name is the one that the linker finds with -lNAME |
| 27076 |
library_names_spec=$lt_library_names_spec |
| 27077 |
|
| 27078 |
# The coded name of the library, if different from the real name. |
| 27079 |
soname_spec=$lt_soname_spec |
| 27080 |
|
| 27081 |
# Permission mode override for installation of shared libraries. |
| 27082 |
install_override_mode=$lt_install_override_mode |
| 27083 |
|
| 27084 |
# Command to use after installation of a shared archive. |
| 27085 |
postinstall_cmds=$lt_postinstall_cmds |
| 27086 |
|
| 27087 |
# Command to use after uninstallation of a shared archive. |
| 27088 |
postuninstall_cmds=$lt_postuninstall_cmds |
| 27089 |
|
| 27090 |
# Commands used to finish a libtool library installation in a directory. |
| 27091 |
finish_cmds=$lt_finish_cmds |
| 27092 |
|
| 27093 |
# As "finish_cmds", except a single script fragment to be evaled but |
| 27094 |
# not shown. |
| 27095 |
finish_eval=$lt_finish_eval |
| 27096 |
|
| 27097 |
# Whether we should hardcode library paths into libraries. |
| 27098 |
hardcode_into_libs=$hardcode_into_libs |
| 27099 |
|
| 27100 |
# Compile-time system search path for libraries. |
| 27101 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 27102 |
|
| 27103 |
# Detected run-time system search path for libraries. |
| 27104 |
sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path |
| 27105 |
|
| 27106 |
# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. |
| 27107 |
configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path |
| 27108 |
|
| 27109 |
# Whether dlopen is supported. |
| 27110 |
dlopen_support=$enable_dlopen |
| 27111 |
|
| 27112 |
# Whether dlopen of programs is supported. |
| 27113 |
dlopen_self=$enable_dlopen_self |
| 27114 |
|
| 27115 |
# Whether dlopen of statically linked programs is supported. |
| 27116 |
dlopen_self_static=$enable_dlopen_self_static |
| 27117 |
|
| 27118 |
# Commands to strip libraries. |
| 27119 |
old_striplib=$lt_old_striplib |
| 27120 |
striplib=$lt_striplib |
| 27121 |
|
| 27122 |
|
| 27123 |
# The linker used to build libraries. |
| 27124 |
LD=$lt_LD |
| 27125 |
|
| 27126 |
# How to create reloadable object files. |
| 27127 |
reload_flag=$lt_reload_flag |
| 27128 |
reload_cmds=$lt_reload_cmds |
| 27129 |
|
| 27130 |
# Commands used to build an old-style archive. |
| 27131 |
old_archive_cmds=$lt_old_archive_cmds |
| 27132 |
|
| 27133 |
# A language specific compiler. |
| 27134 |
CC=$lt_compiler |
| 27135 |
|
| 27136 |
# Is the compiler the GNU compiler? |
| 27137 |
with_gcc=$GCC |
| 27138 |
|
| 27139 |
# Compiler flag to turn off builtin functions. |
| 27140 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 27141 |
|
| 27142 |
# Additional compiler flags for building library objects. |
| 27143 |
pic_flag=$lt_lt_prog_compiler_pic |
| 27144 |
|
| 27145 |
# How to pass a linker flag through the compiler. |
| 27146 |
wl=$lt_lt_prog_compiler_wl |
| 27147 |
|
| 27148 |
# Compiler flag to prevent dynamic linking. |
| 27149 |
link_static_flag=$lt_lt_prog_compiler_static |
| 27150 |
|
| 27151 |
# Does compiler simultaneously support -c and -o options? |
| 27152 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 27153 |
|
| 27154 |
# Whether or not to add -lc for building shared libraries. |
| 27155 |
build_libtool_need_lc=$archive_cmds_need_lc |
| 27156 |
|
| 27157 |
# Whether or not to disallow shared libs when runtime libs are static. |
| 27158 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 27159 |
|
| 27160 |
# Compiler flag to allow reflexive dlopens. |
| 27161 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 27162 |
|
| 27163 |
# Compiler flag to generate shared objects directly from archives. |
| 27164 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 27165 |
|
| 27166 |
# Whether the compiler copes with passing no objects directly. |
| 27167 |
compiler_needs_object=$lt_compiler_needs_object |
| 27168 |
|
| 27169 |
# Create an old-style archive from a shared archive. |
| 27170 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 27171 |
|
| 27172 |
# Create a temporary old-style archive to link instead of a shared archive. |
| 27173 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 27174 |
|
| 27175 |
# Commands used to build a shared archive. |
| 27176 |
archive_cmds=$lt_archive_cmds |
| 27177 |
archive_expsym_cmds=$lt_archive_expsym_cmds |
| 27178 |
|
| 27179 |
# Commands used to build a loadable module if different from building |
| 27180 |
# a shared archive. |
| 27181 |
module_cmds=$lt_module_cmds |
| 27182 |
module_expsym_cmds=$lt_module_expsym_cmds |
| 27183 |
|
| 27184 |
# Whether we are building with GNU ld or not. |
| 27185 |
with_gnu_ld=$lt_with_gnu_ld |
| 27186 |
|
| 27187 |
# Flag that allows shared libraries with undefined symbols to be built. |
| 27188 |
allow_undefined_flag=$lt_allow_undefined_flag |
| 27189 |
|
| 27190 |
# Flag that enforces no undefined symbols. |
| 27191 |
no_undefined_flag=$lt_no_undefined_flag |
| 27192 |
|
| 27193 |
# Flag to hardcode \$libdir into a binary during linking. |
| 27194 |
# This must work even if \$libdir does not exist |
| 27195 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 27196 |
|
| 27197 |
# Whether we need a single "-rpath" flag with a separated argument. |
| 27198 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 27199 |
|
| 27200 |
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 27201 |
# DIR into the resulting binary. |
| 27202 |
hardcode_direct=$hardcode_direct |
| 27203 |
|
| 27204 |
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 27205 |
# DIR into the resulting binary and the resulting library dependency is |
| 27206 |
# "absolute",i.e impossible to change by setting \$shlibpath_var if the |
| 27207 |
# library is relocated. |
| 27208 |
hardcode_direct_absolute=$hardcode_direct_absolute |
| 27209 |
|
| 27210 |
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 27211 |
# into the resulting binary. |
| 27212 |
hardcode_minus_L=$hardcode_minus_L |
| 27213 |
|
| 27214 |
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 27215 |
# into the resulting binary. |
| 27216 |
hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 27217 |
|
| 27218 |
# Set to "yes" if building a shared library automatically hardcodes DIR |
| 27219 |
# into the library and all subsequent libraries and executables linked |
| 27220 |
# against it. |
| 27221 |
hardcode_automatic=$hardcode_automatic |
| 27222 |
|
| 27223 |
# Set to yes if linker adds runtime paths of dependent libraries |
| 27224 |
# to runtime path list. |
| 27225 |
inherit_rpath=$inherit_rpath |
| 27226 |
|
| 27227 |
# Whether libtool must link a program against all its dependency libraries. |
| 27228 |
link_all_deplibs=$link_all_deplibs |
| 27229 |
|
| 27230 |
# Set to "yes" if exported symbols are required. |
| 27231 |
always_export_symbols=$always_export_symbols |
| 27232 |
|
| 27233 |
# The commands to list exported symbols. |
| 27234 |
export_symbols_cmds=$lt_export_symbols_cmds |
| 27235 |
|
| 27236 |
# Symbols that should not be listed in the preloaded symbols. |
| 27237 |
exclude_expsyms=$lt_exclude_expsyms |
| 27238 |
|
| 27239 |
# Symbols that must always be exported. |
| 27240 |
include_expsyms=$lt_include_expsyms |
| 27241 |
|
| 27242 |
# Commands necessary for linking programs (against libraries) with templates. |
| 27243 |
prelink_cmds=$lt_prelink_cmds |
| 27244 |
|
| 27245 |
# Commands necessary for finishing linking programs. |
| 27246 |
postlink_cmds=$lt_postlink_cmds |
| 27247 |
|
| 27248 |
# Specify filename containing input files. |
| 27249 |
file_list_spec=$lt_file_list_spec |
| 27250 |
|
| 27251 |
# How to hardcode a shared library path into an executable. |
| 27252 |
hardcode_action=$hardcode_action |
| 27253 |
|
| 27254 |
# The directories searched by this compiler when creating a shared library. |
| 27255 |
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 27256 |
|
| 27257 |
# Dependencies to place before and after the objects being linked to |
| 27258 |
# create a shared library. |
| 27259 |
predep_objects=$lt_predep_objects |
| 27260 |
postdep_objects=$lt_postdep_objects |
| 27261 |
predeps=$lt_predeps |
| 27262 |
postdeps=$lt_postdeps |
| 27263 |
|
| 27264 |
# The library search path used internally by the compiler when linking |
| 27265 |
# a shared library. |
| 27266 |
compiler_lib_search_path=$lt_compiler_lib_search_path |
| 27267 |
|
| 27268 |
# ### END LIBTOOL CONFIG |
| 27269 |
|
| 27270 |
_LT_EOF |
| 27271 |
|
| 27272 |
cat <<'_LT_EOF' >> "$cfgfile" |
| 27273 |
|
| 27274 |
# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE |
| 27275 |
|
| 27276 |
# func_munge_path_list VARIABLE PATH |
| 27277 |
# ----------------------------------- |
| 27278 |
# VARIABLE is name of variable containing _space_ separated list of |
| 27279 |
# directories to be munged by the contents of PATH, which is string |
| 27280 |
# having a format: |
| 27281 |
# "DIR[:DIR]:" |
| 27282 |
# string "DIR[ DIR]" will be prepended to VARIABLE |
| 27283 |
# ":DIR[:DIR]" |
| 27284 |
# string "DIR[ DIR]" will be appended to VARIABLE |
| 27285 |
# "DIRP[:DIRP]::[DIRA:]DIRA" |
| 27286 |
# string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 27287 |
# "DIRA[ DIRA]" will be appended to VARIABLE |
| 27288 |
# "DIR[:DIR]" |
| 27289 |
# VARIABLE will be replaced by "DIR[ DIR]" |
| 27290 |
func_munge_path_list () |
| 27291 |
{ |
| 27292 |
case x$2 in |
| 27293 |
x) |
| 27294 |
;; |
| 27295 |
*:) |
| 27296 |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 27297 |
;; |
| 27298 |
x:*) |
| 27299 |
eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 27300 |
;; |
| 27301 |
*::*) |
| 27302 |
eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 27303 |
eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 27304 |
;; |
| 27305 |
*) |
| 27306 |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 27307 |
;; |
| 27308 |
esac |
| 27309 |
} |
| 27310 |
|
| 27311 |
|
| 27312 |
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 27313 |
func_cc_basename () |
| 27314 |
{ |
| 27315 |
for cc_temp in $*""; do |
| 27316 |
case $cc_temp in |
| 27317 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 27318 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 27319 |
\-*) ;; |
| 27320 |
*) break;; |
| 27321 |
esac |
| 27322 |
done |
| 27323 |
func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 27324 |
} |
| 27325 |
|
| 27326 |
|
| 27327 |
# ### END FUNCTIONS SHARED WITH CONFIGURE |
| 27328 |
|
| 27329 |
_LT_EOF |
| 27330 |
|
| 27331 |
case $host_os in |
| 27332 |
aix3*) |
| 27333 |
cat <<\_LT_EOF >> "$cfgfile" |
| 27334 |
# AIX sometimes has problems with the GCC collect2 program. For some |
| 27335 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 27336 |
# vanish in a puff of smoke. |
| 27337 |
if test set != "${COLLECT_NAMES+set}"; then |
| 27338 |
COLLECT_NAMES= |
| 27339 |
export COLLECT_NAMES |
| 27340 |
fi |
| 27341 |
_LT_EOF |
| 27342 |
;; |
| 27343 |
esac |
| 27344 |
|
| 27345 |
|
| 27346 |
ltmain=$ac_aux_dir/ltmain.sh |
| 27347 |
|
| 27348 |
|
| 27349 |
# We use sed instead of cat because bash on DJGPP gets confused if |
| 27350 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 27351 |
# text mode, it properly converts lines to CR/LF. This bash problem |
| 27352 |
# is reportedly fixed, but why not run on old versions too? |
| 27353 |
sed '$q' "$ltmain" >> "$cfgfile" \ |
| 27354 |
|| (rm -f "$cfgfile"; exit 1) |
| 27355 |
|
| 27356 |
mv -f "$cfgfile" "$ofile" || |
| 27357 |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 27358 |
chmod +x "$ofile" |
| 27359 |
|
| 27360 |
|
| 27361 |
cat <<_LT_EOF >> "$ofile" |
| 27362 |
|
| 27363 |
# ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 27364 |
|
| 27365 |
# The linker used to build libraries. |
| 27366 |
LD=$lt_LD_CXX |
| 27367 |
|
| 27368 |
# How to create reloadable object files. |
| 27369 |
reload_flag=$lt_reload_flag_CXX |
| 27370 |
reload_cmds=$lt_reload_cmds_CXX |
| 27371 |
|
| 27372 |
# Commands used to build an old-style archive. |
| 27373 |
old_archive_cmds=$lt_old_archive_cmds_CXX |
| 27374 |
|
| 27375 |
# A language specific compiler. |
| 27376 |
CC=$lt_compiler_CXX |
| 27377 |
|
| 27378 |
# Is the compiler the GNU compiler? |
| 27379 |
with_gcc=$GCC_CXX |
| 27380 |
|
| 27381 |
# Compiler flag to turn off builtin functions. |
| 27382 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 27383 |
|
| 27384 |
# Additional compiler flags for building library objects. |
| 27385 |
pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 27386 |
|
| 27387 |
# How to pass a linker flag through the compiler. |
| 27388 |
wl=$lt_lt_prog_compiler_wl_CXX |
| 27389 |
|
| 27390 |
# Compiler flag to prevent dynamic linking. |
| 27391 |
link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 27392 |
|
| 27393 |
# Does compiler simultaneously support -c and -o options? |
| 27394 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 27395 |
|
| 27396 |
# Whether or not to add -lc for building shared libraries. |
| 27397 |
build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 27398 |
|
| 27399 |
# Whether or not to disallow shared libs when runtime libs are static. |
| 27400 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 27401 |
|
| 27402 |
# Compiler flag to allow reflexive dlopens. |
| 27403 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 27404 |
|
| 27405 |
# Compiler flag to generate shared objects directly from archives. |
| 27406 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 27407 |
|
| 27408 |
# Whether the compiler copes with passing no objects directly. |
| 27409 |
compiler_needs_object=$lt_compiler_needs_object_CXX |
| 27410 |
|
| 27411 |
# Create an old-style archive from a shared archive. |
| 27412 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 27413 |
|
| 27414 |
# Create a temporary old-style archive to link instead of a shared archive. |
| 27415 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 27416 |
|
| 27417 |
# Commands used to build a shared archive. |
| 27418 |
archive_cmds=$lt_archive_cmds_CXX |
| 27419 |
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 27420 |
|
| 27421 |
# Commands used to build a loadable module if different from building |
| 27422 |
# a shared archive. |
| 27423 |
module_cmds=$lt_module_cmds_CXX |
| 27424 |
module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 27425 |
|
| 27426 |
# Whether we are building with GNU ld or not. |
| 27427 |
with_gnu_ld=$lt_with_gnu_ld_CXX |
| 27428 |
|
| 27429 |
# Flag that allows shared libraries with undefined symbols to be built. |
| 27430 |
allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 27431 |
|
| 27432 |
# Flag that enforces no undefined symbols. |
| 27433 |
no_undefined_flag=$lt_no_undefined_flag_CXX |
| 27434 |
|
| 27435 |
# Flag to hardcode \$libdir into a binary during linking. |
| 27436 |
# This must work even if \$libdir does not exist |
| 27437 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 27438 |
|
| 27439 |
# Whether we need a single "-rpath" flag with a separated argument. |
| 27440 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 27441 |
|
| 27442 |
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 27443 |
# DIR into the resulting binary. |
| 27444 |
hardcode_direct=$hardcode_direct_CXX |
| 27445 |
|
| 27446 |
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 27447 |
# DIR into the resulting binary and the resulting library dependency is |
| 27448 |
# "absolute",i.e impossible to change by setting \$shlibpath_var if the |
| 27449 |
# library is relocated. |
| 27450 |
hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 27451 |
|
| 27452 |
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 27453 |
# into the resulting binary. |
| 27454 |
hardcode_minus_L=$hardcode_minus_L_CXX |
| 27455 |
|
| 27456 |
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 27457 |
# into the resulting binary. |
| 27458 |
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 27459 |
|
| 27460 |
# Set to "yes" if building a shared library automatically hardcodes DIR |
| 27461 |
# into the library and all subsequent libraries and executables linked |
| 27462 |
# against it. |
| 27463 |
hardcode_automatic=$hardcode_automatic_CXX |
| 27464 |
|
| 27465 |
# Set to yes if linker adds runtime paths of dependent libraries |
| 27466 |
# to runtime path list. |
| 27467 |
inherit_rpath=$inherit_rpath_CXX |
| 27468 |
|
| 27469 |
# Whether libtool must link a program against all its dependency libraries. |
| 27470 |
link_all_deplibs=$link_all_deplibs_CXX |
| 27471 |
|
| 27472 |
# Set to "yes" if exported symbols are required. |
| 27473 |
always_export_symbols=$always_export_symbols_CXX |
| 27474 |
|
| 27475 |
# The commands to list exported symbols. |
| 27476 |
export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 27477 |
|
| 27478 |
# Symbols that should not be listed in the preloaded symbols. |
| 27479 |
exclude_expsyms=$lt_exclude_expsyms_CXX |
| 27480 |
|
| 27481 |
# Symbols that must always be exported. |
| 27482 |
include_expsyms=$lt_include_expsyms_CXX |
| 27483 |
|
| 27484 |
# Commands necessary for linking programs (against libraries) with templates. |
| 27485 |
prelink_cmds=$lt_prelink_cmds_CXX |
| 27486 |
|
| 27487 |
# Commands necessary for finishing linking programs. |
| 27488 |
postlink_cmds=$lt_postlink_cmds_CXX |
| 27489 |
|
| 27490 |
# Specify filename containing input files. |
| 27491 |
file_list_spec=$lt_file_list_spec_CXX |
| 27492 |
|
| 27493 |
# How to hardcode a shared library path into an executable. |
| 27494 |
hardcode_action=$hardcode_action_CXX |
| 27495 |
|
| 27496 |
# The directories searched by this compiler when creating a shared library. |
| 27497 |
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 27498 |
|
| 27499 |
# Dependencies to place before and after the objects being linked to |
| 27500 |
# create a shared library. |
| 27501 |
predep_objects=$lt_predep_objects_CXX |
| 27502 |
postdep_objects=$lt_postdep_objects_CXX |
| 27503 |
predeps=$lt_predeps_CXX |
| 27504 |
postdeps=$lt_postdeps_CXX |
| 27505 |
|
| 27506 |
# The library search path used internally by the compiler when linking |
| 27507 |
# a shared library. |
| 27508 |
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 27509 |
|
| 27510 |
# ### END LIBTOOL TAG CONFIG: CXX |
| 27511 |
_LT_EOF |
| 27512 |
|
| 27513 |
;; |
| 27514 |
|
| 27515 |
esac |
| 27516 |
done # for ac_tag |
| 27517 |
|
| 27518 |
|
| 27519 |
as_fn_exit 0 |
| 27520 |
_ACEOF |
| 27521 |
ac_clean_files=$ac_clean_files_save |
| 27522 |
|
| 27523 |
test $ac_write_fail = 0 || |
| 27524 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 27525 |
|
| 27526 |
|
| 27527 |
# configure is writing to config.log, and then calls config.status. |
| 27528 |
# config.status does its own redirection, appending to config.log. |
| 27529 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
| 27530 |
# by configure, so config.status won't be able to write to it; its |
| 27531 |
# output is simply discarded. So we exec the FD to /dev/null, |
| 27532 |
# effectively closing config.log, so it can be properly (re)opened and |
| 27533 |
# appended to by config.status. When coming back to configure, we |
| 27534 |
# need to make the FD available again. |
| 27535 |
if test "$no_create" != yes; then |
| 27536 |
ac_cs_success=: |
| 27537 |
ac_config_status_args= |
| 27538 |
test "$silent" = yes && |
| 27539 |
ac_config_status_args="$ac_config_status_args --quiet" |
| 27540 |
exec 5>/dev/null |
| 27541 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 27542 |
exec 5>>config.log |
| 27543 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 27544 |
# would make configure fail if this is the last instruction. |
| 27545 |
$ac_cs_success || as_fn_exit 1 |
| 27546 |
fi |
| 27547 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 27548 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 27549 |
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 27550 |
fi |
| 27551 |
|