| 1 |
Description: configure update to look for orted or prted |
| 2 |
Author: Dirk Eddelbuettel <[email protected]> |
| 3 |
Bug-Debian: https://bugs.debian.org/1086312 |
| 4 |
Last-Update: 2024-10-29 |
| 5 |
|
| 6 |
--- rmpi-0.7-2.1.orig/configure |
| 7 |
+++ rmpi-0.7-2.1/configure |
| 8 |
@@ -1,9 +1,10 @@ |
| 9 |
#! /bin/sh |
| 10 |
# Guess values for system-dependent variables and create Makefiles. |
| 11 |
-# Generated by GNU Autoconf 2.69. |
| 12 |
+# Generated by GNU Autoconf 2.71. |
| 13 |
# |
| 14 |
# |
| 15 |
-# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| 16 |
+# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
| 17 |
+# Inc. |
| 18 |
# |
| 19 |
# |
| 20 |
# This configure script is free software; the Free Software Foundation |
| 21 |
@@ -14,14 +15,16 @@ |
| 22 |
|
| 23 |
# Be more Bourne compatible |
| 24 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 25 |
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 26 |
+as_nop=: |
| 27 |
+if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 28 |
+then : |
| 29 |
emulate sh |
| 30 |
NULLCMD=: |
| 31 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 32 |
# is contrary to our usage. Disable this feature. |
| 33 |
alias -g '${1+"$@"}'='"$@"' |
| 34 |
setopt NO_GLOB_SUBST |
| 35 |
-else |
| 36 |
+else $as_nop |
| 37 |
case `(set -o) 2>/dev/null` in #( |
| 38 |
*posix*) : |
| 39 |
set -o posix ;; #( |
| 40 |
@@ -31,46 +34,46 @@ esac |
| 41 |
fi |
| 42 |
|
| 43 |
|
| 44 |
+ |
| 45 |
+# Reset variables that may have inherited troublesome values from |
| 46 |
+# the environment. |
| 47 |
+ |
| 48 |
+# IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 49 |
+# (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 50 |
+# side effect of setting IFS to empty, thus disabling word splitting.) |
| 51 |
+# Quoting is to prevent editors from complaining about space-tab. |
| 52 |
as_nl=' |
| 53 |
' |
| 54 |
export as_nl |
| 55 |
-# Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 56 |
-as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 57 |
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 58 |
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 59 |
-# Prefer a ksh shell builtin over an external printf program on Solaris, |
| 60 |
-# but without wasting forks for bash or zsh. |
| 61 |
-if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 62 |
- && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 63 |
- as_echo='print -r --' |
| 64 |
- as_echo_n='print -rn --' |
| 65 |
-elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 66 |
- as_echo='printf %s\n' |
| 67 |
- as_echo_n='printf %s' |
| 68 |
-else |
| 69 |
- if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 70 |
- as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 71 |
- as_echo_n='/usr/ucb/echo -n' |
| 72 |
- else |
| 73 |
- as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 74 |
- as_echo_n_body='eval |
| 75 |
- arg=$1; |
| 76 |
- case $arg in #( |
| 77 |
- *"$as_nl"*) |
| 78 |
- expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 79 |
- arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 80 |
- esac; |
| 81 |
- expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 82 |
- ' |
| 83 |
- export as_echo_n_body |
| 84 |
- as_echo_n='sh -c $as_echo_n_body as_echo' |
| 85 |
- fi |
| 86 |
- export as_echo_body |
| 87 |
- as_echo='sh -c $as_echo_body as_echo' |
| 88 |
-fi |
| 89 |
+IFS=" "" $as_nl" |
| 90 |
+ |
| 91 |
+PS1='$ ' |
| 92 |
+PS2='> ' |
| 93 |
+PS4='+ ' |
| 94 |
+ |
| 95 |
+# Ensure predictable behavior from utilities with locale-dependent output. |
| 96 |
+LC_ALL=C |
| 97 |
+export LC_ALL |
| 98 |
+LANGUAGE=C |
| 99 |
+export LANGUAGE |
| 100 |
+ |
| 101 |
+# We cannot yet rely on "unset" to work, but we need these variables |
| 102 |
+# to be unset--not just set to an empty or harmless value--now, to |
| 103 |
+# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 104 |
+# also avoids known problems related to "unset" and subshell syntax |
| 105 |
+# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 106 |
+for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 107 |
+do eval test \${$as_var+y} \ |
| 108 |
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 109 |
+done |
| 110 |
+ |
| 111 |
+# Ensure that fds 0, 1, and 2 are open. |
| 112 |
+if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 113 |
+if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 114 |
+if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 115 |
|
| 116 |
# The user is always right. |
| 117 |
-if test "${PATH_SEPARATOR+set}" != set; then |
| 118 |
+if ${PATH_SEPARATOR+false} :; then |
| 119 |
PATH_SEPARATOR=: |
| 120 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 121 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 122 |
@@ -79,13 +82,6 @@ if test "${PATH_SEPARATOR+set}" != set; |
| 123 |
fi |
| 124 |
|
| 125 |
|
| 126 |
-# IFS |
| 127 |
-# We need space, tab and new line, in precisely that order. Quoting is |
| 128 |
-# there to prevent editors from complaining about space-tab. |
| 129 |
-# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 130 |
-# splitting by setting IFS to empty value.) |
| 131 |
-IFS=" "" $as_nl" |
| 132 |
- |
| 133 |
# Find who we are. Look in the path if we contain no directory separator. |
| 134 |
as_myself= |
| 135 |
case $0 in #(( |
| 136 |
@@ -94,8 +90,12 @@ case $0 in #(( |
| 137 |
for as_dir in $PATH |
| 138 |
do |
| 139 |
IFS=$as_save_IFS |
| 140 |
- test -z "$as_dir" && as_dir=. |
| 141 |
- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 142 |
+ case $as_dir in #((( |
| 143 |
+ '') as_dir=./ ;; |
| 144 |
+ */) ;; |
| 145 |
+ *) as_dir=$as_dir/ ;; |
| 146 |
+ esac |
| 147 |
+ test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 148 |
done |
| 149 |
IFS=$as_save_IFS |
| 150 |
|
| 151 |
@@ -107,30 +107,10 @@ if test "x$as_myself" = x; then |
| 152 |
as_myself=$0 |
| 153 |
fi |
| 154 |
if test ! -f "$as_myself"; then |
| 155 |
- $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 156 |
+ printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 157 |
exit 1 |
| 158 |
fi |
| 159 |
|
| 160 |
-# Unset variables that we do not need and which cause bugs (e.g. in |
| 161 |
-# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 162 |
-# suppresses any "Segmentation fault" message there. '((' could |
| 163 |
-# trigger a bug in pdksh 5.2.14. |
| 164 |
-for as_var in BASH_ENV ENV MAIL MAILPATH |
| 165 |
-do eval test x\${$as_var+set} = xset \ |
| 166 |
- && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 167 |
-done |
| 168 |
-PS1='$ ' |
| 169 |
-PS2='> ' |
| 170 |
-PS4='+ ' |
| 171 |
- |
| 172 |
-# NLS nuisances. |
| 173 |
-LC_ALL=C |
| 174 |
-export LC_ALL |
| 175 |
-LANGUAGE=C |
| 176 |
-export LANGUAGE |
| 177 |
- |
| 178 |
-# CDPATH. |
| 179 |
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 180 |
|
| 181 |
# Use a proper internal environment variable to ensure we don't fall |
| 182 |
# into an infinite loop, continuously re-executing ourselves. |
| 183 |
@@ -152,20 +132,22 @@ esac |
| 184 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 185 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 186 |
# out after a failed `exec'. |
| 187 |
-$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 188 |
-as_fn_exit 255 |
| 189 |
+printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 190 |
+exit 255 |
| 191 |
fi |
| 192 |
# We don't want this to propagate to other subprocesses. |
| 193 |
{ _as_can_reexec=; unset _as_can_reexec;} |
| 194 |
if test "x$CONFIG_SHELL" = x; then |
| 195 |
- as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 196 |
+ as_bourne_compatible="as_nop=: |
| 197 |
+if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 198 |
+then : |
| 199 |
emulate sh |
| 200 |
NULLCMD=: |
| 201 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 202 |
# is contrary to our usage. Disable this feature. |
| 203 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 204 |
setopt NO_GLOB_SUBST |
| 205 |
-else |
| 206 |
+else \$as_nop |
| 207 |
case \`(set -o) 2>/dev/null\` in #( |
| 208 |
*posix*) : |
| 209 |
set -o posix ;; #( |
| 210 |
@@ -185,42 +167,52 @@ as_fn_success || { exitcode=1; echo as_f |
| 211 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 212 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 213 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 214 |
-if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 215 |
+if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
| 216 |
+then : |
| 217 |
|
| 218 |
-else |
| 219 |
+else \$as_nop |
| 220 |
exitcode=1; echo positional parameters were not saved. |
| 221 |
fi |
| 222 |
test x\$exitcode = x0 || exit 1 |
| 223 |
+blah=\$(echo \$(echo blah)) |
| 224 |
+test x\"\$blah\" = xblah || exit 1 |
| 225 |
test -x / || exit 1" |
| 226 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 227 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 228 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 229 |
- test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 230 |
-test \$(( 1 + 1 )) = 2 || exit 1" |
| 231 |
- if (eval "$as_required") 2>/dev/null; then : |
| 232 |
+ test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" |
| 233 |
+ if (eval "$as_required") 2>/dev/null |
| 234 |
+then : |
| 235 |
as_have_required=yes |
| 236 |
-else |
| 237 |
+else $as_nop |
| 238 |
as_have_required=no |
| 239 |
fi |
| 240 |
- if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 241 |
+ if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
| 242 |
+then : |
| 243 |
|
| 244 |
-else |
| 245 |
+else $as_nop |
| 246 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 247 |
as_found=false |
| 248 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 249 |
do |
| 250 |
IFS=$as_save_IFS |
| 251 |
- test -z "$as_dir" && as_dir=. |
| 252 |
+ case $as_dir in #((( |
| 253 |
+ '') as_dir=./ ;; |
| 254 |
+ */) ;; |
| 255 |
+ *) as_dir=$as_dir/ ;; |
| 256 |
+ esac |
| 257 |
as_found=: |
| 258 |
case $as_dir in #( |
| 259 |
/*) |
| 260 |
for as_base in sh bash ksh sh5; do |
| 261 |
# Try only shells that exist, to save several forks. |
| 262 |
- as_shell=$as_dir/$as_base |
| 263 |
+ as_shell=$as_dir$as_base |
| 264 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 265 |
- { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 266 |
+ as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 267 |
+then : |
| 268 |
CONFIG_SHELL=$as_shell as_have_required=yes |
| 269 |
- if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 270 |
+ if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
| 271 |
+then : |
| 272 |
break 2 |
| 273 |
fi |
| 274 |
fi |
| 275 |
@@ -228,14 +220,21 @@ fi |
| 276 |
esac |
| 277 |
as_found=false |
| 278 |
done |
| 279 |
-$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 280 |
- { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 281 |
- CONFIG_SHELL=$SHELL as_have_required=yes |
| 282 |
-fi; } |
| 283 |
IFS=$as_save_IFS |
| 284 |
+if $as_found |
| 285 |
+then : |
| 286 |
|
| 287 |
+else $as_nop |
| 288 |
+ if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 289 |
+ as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 290 |
+then : |
| 291 |
+ CONFIG_SHELL=$SHELL as_have_required=yes |
| 292 |
+fi |
| 293 |
+fi |
| 294 |
|
| 295 |
- if test "x$CONFIG_SHELL" != x; then : |
| 296 |
+ |
| 297 |
+ if test "x$CONFIG_SHELL" != x |
| 298 |
+then : |
| 299 |
export CONFIG_SHELL |
| 300 |
# We cannot yet assume a decent shell, so we have to provide a |
| 301 |
# neutralization value for shells without unset; and this also |
| 302 |
@@ -253,18 +252,19 @@ esac |
| 303 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 304 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 305 |
# out after a failed `exec'. |
| 306 |
-$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 307 |
+printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 308 |
exit 255 |
| 309 |
fi |
| 310 |
|
| 311 |
- if test x$as_have_required = xno; then : |
| 312 |
- $as_echo "$0: This script requires a shell more modern than all" |
| 313 |
- $as_echo "$0: the shells that I found on your system." |
| 314 |
- if test x${ZSH_VERSION+set} = xset ; then |
| 315 |
- $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 316 |
- $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 317 |
+ if test x$as_have_required = xno |
| 318 |
+then : |
| 319 |
+ printf "%s\n" "$0: This script requires a shell more modern than all" |
| 320 |
+ printf "%s\n" "$0: the shells that I found on your system." |
| 321 |
+ if test ${ZSH_VERSION+y} ; then |
| 322 |
+ printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 323 |
+ printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
| 324 |
else |
| 325 |
- $as_echo "$0: Please tell [email protected] about your system, |
| 326 |
+ printf "%s\n" "$0: Please tell [email protected] about your system, |
| 327 |
$0: including any error possibly output before this |
| 328 |
$0: message. Then install a modern shell, or manually run |
| 329 |
$0: the script under such a shell if you do have one." |
| 330 |
@@ -291,6 +291,7 @@ as_fn_unset () |
| 331 |
} |
| 332 |
as_unset=as_fn_unset |
| 333 |
|
| 334 |
+ |
| 335 |
# as_fn_set_status STATUS |
| 336 |
# ----------------------- |
| 337 |
# Set $? to STATUS, without forking. |
| 338 |
@@ -308,6 +309,14 @@ as_fn_exit () |
| 339 |
as_fn_set_status $1 |
| 340 |
exit $1 |
| 341 |
} # as_fn_exit |
| 342 |
+# as_fn_nop |
| 343 |
+# --------- |
| 344 |
+# Do nothing but, unlike ":", preserve the value of $?. |
| 345 |
+as_fn_nop () |
| 346 |
+{ |
| 347 |
+ return $? |
| 348 |
+} |
| 349 |
+as_nop=as_fn_nop |
| 350 |
|
| 351 |
# as_fn_mkdir_p |
| 352 |
# ------------- |
| 353 |
@@ -322,7 +331,7 @@ as_fn_mkdir_p () |
| 354 |
as_dirs= |
| 355 |
while :; do |
| 356 |
case $as_dir in #( |
| 357 |
- *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 358 |
+ *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 359 |
*) as_qdir=$as_dir;; |
| 360 |
esac |
| 361 |
as_dirs="'$as_qdir' $as_dirs" |
| 362 |
@@ -331,7 +340,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/ |
| 363 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 364 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 365 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 366 |
-$as_echo X"$as_dir" | |
| 367 |
+printf "%s\n" X"$as_dir" | |
| 368 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 369 |
s//\1/ |
| 370 |
q |
| 371 |
@@ -370,12 +379,13 @@ as_fn_executable_p () |
| 372 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 373 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 374 |
# implementations. |
| 375 |
-if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 376 |
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 377 |
+then : |
| 378 |
eval 'as_fn_append () |
| 379 |
{ |
| 380 |
eval $1+=\$2 |
| 381 |
}' |
| 382 |
-else |
| 383 |
+else $as_nop |
| 384 |
as_fn_append () |
| 385 |
{ |
| 386 |
eval $1=\$$1\$2 |
| 387 |
@@ -387,18 +397,27 @@ fi # as_fn_append |
| 388 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 389 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 390 |
# must be portable across $(()) and expr. |
| 391 |
-if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 392 |
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 393 |
+then : |
| 394 |
eval 'as_fn_arith () |
| 395 |
{ |
| 396 |
as_val=$(( $* )) |
| 397 |
}' |
| 398 |
-else |
| 399 |
+else $as_nop |
| 400 |
as_fn_arith () |
| 401 |
{ |
| 402 |
as_val=`expr "$@" || test $? -eq 1` |
| 403 |
} |
| 404 |
fi # as_fn_arith |
| 405 |
|
| 406 |
+# as_fn_nop |
| 407 |
+# --------- |
| 408 |
+# Do nothing but, unlike ":", preserve the value of $?. |
| 409 |
+as_fn_nop () |
| 410 |
+{ |
| 411 |
+ return $? |
| 412 |
+} |
| 413 |
+as_nop=as_fn_nop |
| 414 |
|
| 415 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 416 |
# ---------------------------------------- |
| 417 |
@@ -410,9 +429,9 @@ as_fn_error () |
| 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 |
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 423 |
fi |
| 424 |
- $as_echo "$as_me: error: $2" >&2 |
| 425 |
+ printf "%s\n" "$as_me: error: $2" >&2 |
| 426 |
as_fn_exit $as_status |
| 427 |
} # as_fn_error |
| 428 |
|
| 429 |
@@ -439,7 +458,7 @@ as_me=`$as_basename -- "$0" || |
| 430 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 431 |
X"$0" : 'X\(//\)$' \| \ |
| 432 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 433 |
-$as_echo X/"$0" | |
| 434 |
+printf "%s\n" X/"$0" | |
| 435 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 436 |
s//\1/ |
| 437 |
q |
| 438 |
@@ -483,7 +502,7 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 439 |
s/-\n.*// |
| 440 |
' >$as_me.lineno && |
| 441 |
chmod +x "$as_me.lineno" || |
| 442 |
- { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 443 |
+ { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 444 |
|
| 445 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 446 |
# already done that, so ensure we don't try to do so again and fall |
| 447 |
@@ -497,6 +516,10 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 448 |
exit |
| 449 |
} |
| 450 |
|
| 451 |
+ |
| 452 |
+# Determine whether it's possible to make 'echo' print without a newline. |
| 453 |
+# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 454 |
+# for compatibility with existing Makefiles. |
| 455 |
ECHO_C= ECHO_N= ECHO_T= |
| 456 |
case `echo -n x` in #((((( |
| 457 |
-n*) |
| 458 |
@@ -510,6 +533,13 @@ case `echo -n x` in #((((( |
| 459 |
ECHO_N='-n';; |
| 460 |
esac |
| 461 |
|
| 462 |
+# For backward compatibility with old third-party macros, we provide |
| 463 |
+# the shell variables $as_echo and $as_echo_n. New code should use |
| 464 |
+# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 465 |
+as_echo='printf %s\n' |
| 466 |
+as_echo_n='printf %s' |
| 467 |
+ |
| 468 |
+ |
| 469 |
rm -f conf$$ conf$$.exe conf$$.file |
| 470 |
if test -d conf$$.dir; then |
| 471 |
rm -f conf$$.dir/conf$$.file |
| 472 |
@@ -575,58 +605,52 @@ MFLAGS= |
| 473 |
MAKEFLAGS= |
| 474 |
|
| 475 |
# Identity of this package. |
| 476 |
-PACKAGE_NAME= |
| 477 |
-PACKAGE_TARNAME= |
| 478 |
-PACKAGE_VERSION= |
| 479 |
-PACKAGE_STRING= |
| 480 |
-PACKAGE_BUGREPORT= |
| 481 |
-PACKAGE_URL= |
| 482 |
+PACKAGE_NAME='' |
| 483 |
+PACKAGE_TARNAME='' |
| 484 |
+PACKAGE_VERSION='' |
| 485 |
+PACKAGE_STRING='' |
| 486 |
+PACKAGE_BUGREPORT='' |
| 487 |
+PACKAGE_URL='' |
| 488 |
|
| 489 |
ac_unique_file="DESCRIPTION" |
| 490 |
# Factoring default headers for most tests. |
| 491 |
ac_includes_default="\ |
| 492 |
-#include <stdio.h> |
| 493 |
-#ifdef HAVE_SYS_TYPES_H |
| 494 |
-# include <sys/types.h> |
| 495 |
-#endif |
| 496 |
-#ifdef HAVE_SYS_STAT_H |
| 497 |
-# include <sys/stat.h> |
| 498 |
+#include <stddef.h> |
| 499 |
+#ifdef HAVE_STDIO_H |
| 500 |
+# include <stdio.h> |
| 501 |
#endif |
| 502 |
-#ifdef STDC_HEADERS |
| 503 |
+#ifdef HAVE_STDLIB_H |
| 504 |
# include <stdlib.h> |
| 505 |
-# include <stddef.h> |
| 506 |
-#else |
| 507 |
-# ifdef HAVE_STDLIB_H |
| 508 |
-# include <stdlib.h> |
| 509 |
-# endif |
| 510 |
#endif |
| 511 |
#ifdef HAVE_STRING_H |
| 512 |
-# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 513 |
-# include <memory.h> |
| 514 |
-# endif |
| 515 |
# include <string.h> |
| 516 |
#endif |
| 517 |
-#ifdef HAVE_STRINGS_H |
| 518 |
-# include <strings.h> |
| 519 |
-#endif |
| 520 |
#ifdef HAVE_INTTYPES_H |
| 521 |
# include <inttypes.h> |
| 522 |
#endif |
| 523 |
#ifdef HAVE_STDINT_H |
| 524 |
# include <stdint.h> |
| 525 |
#endif |
| 526 |
+#ifdef HAVE_STRINGS_H |
| 527 |
+# include <strings.h> |
| 528 |
+#endif |
| 529 |
+#ifdef HAVE_SYS_TYPES_H |
| 530 |
+# include <sys/types.h> |
| 531 |
+#endif |
| 532 |
+#ifdef HAVE_SYS_STAT_H |
| 533 |
+# include <sys/stat.h> |
| 534 |
+#endif |
| 535 |
#ifdef HAVE_UNISTD_H |
| 536 |
# include <unistd.h> |
| 537 |
#endif" |
| 538 |
|
| 539 |
+ac_header_c_list= |
| 540 |
ac_subst_vars='LTLIBOBJS |
| 541 |
LIBOBJS |
| 542 |
PKG_LIBS |
| 543 |
PKG_CPPFLAGS |
| 544 |
+PRTED |
| 545 |
ORTED |
| 546 |
-EGREP |
| 547 |
-GREP |
| 548 |
-CPP |
| 549 |
PKG_CONFIG |
| 550 |
OBJEXT |
| 551 |
EXEEXT |
| 552 |
@@ -689,8 +713,7 @@ CC |
| 553 |
CFLAGS |
| 554 |
LDFLAGS |
| 555 |
LIBS |
| 556 |
-CPPFLAGS |
| 557 |
-CPP' |
| 558 |
+CPPFLAGS' |
| 559 |
|
| 560 |
|
| 561 |
# Initialize some variables set by options. |
| 562 |
@@ -759,8 +782,6 @@ do |
| 563 |
*) ac_optarg=yes ;; |
| 564 |
esac |
| 565 |
|
| 566 |
- # Accept the important Cygnus configure options, so we can diagnose typos. |
| 567 |
- |
| 568 |
case $ac_dashdash$ac_option in |
| 569 |
--) |
| 570 |
ac_dashdash=yes ;; |
| 571 |
@@ -801,9 +822,9 @@ do |
| 572 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 573 |
# Reject names that are not valid shell variable names. |
| 574 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 575 |
- as_fn_error $? "invalid feature name: $ac_useropt" |
| 576 |
+ as_fn_error $? "invalid feature name: \`$ac_useropt'" |
| 577 |
ac_useropt_orig=$ac_useropt |
| 578 |
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 579 |
+ ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 580 |
case $ac_user_opts in |
| 581 |
*" |
| 582 |
"enable_$ac_useropt" |
| 583 |
@@ -827,9 +848,9 @@ do |
| 584 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 585 |
# Reject names that are not valid shell variable names. |
| 586 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 587 |
- as_fn_error $? "invalid feature name: $ac_useropt" |
| 588 |
+ as_fn_error $? "invalid feature name: \`$ac_useropt'" |
| 589 |
ac_useropt_orig=$ac_useropt |
| 590 |
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 591 |
+ ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 592 |
case $ac_user_opts in |
| 593 |
*" |
| 594 |
"enable_$ac_useropt" |
| 595 |
@@ -1040,9 +1061,9 @@ do |
| 596 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 597 |
# Reject names that are not valid shell variable names. |
| 598 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 599 |
- as_fn_error $? "invalid package name: $ac_useropt" |
| 600 |
+ as_fn_error $? "invalid package name: \`$ac_useropt'" |
| 601 |
ac_useropt_orig=$ac_useropt |
| 602 |
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 603 |
+ ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 604 |
case $ac_user_opts in |
| 605 |
*" |
| 606 |
"with_$ac_useropt" |
| 607 |
@@ -1056,9 +1077,9 @@ do |
| 608 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 609 |
# Reject names that are not valid shell variable names. |
| 610 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 611 |
- as_fn_error $? "invalid package name: $ac_useropt" |
| 612 |
+ as_fn_error $? "invalid package name: \`$ac_useropt'" |
| 613 |
ac_useropt_orig=$ac_useropt |
| 614 |
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 615 |
+ ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 616 |
case $ac_user_opts in |
| 617 |
*" |
| 618 |
"with_$ac_useropt" |
| 619 |
@@ -1102,9 +1123,9 @@ Try \`$0 --help' for more information" |
| 620 |
|
| 621 |
*) |
| 622 |
# FIXME: should be removed in autoconf 3.0. |
| 623 |
- $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 624 |
+ printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 625 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 626 |
- $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 627 |
+ printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 628 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 629 |
;; |
| 630 |
|
| 631 |
@@ -1120,7 +1141,7 @@ if test -n "$ac_unrecognized_opts"; then |
| 632 |
case $enable_option_checking in |
| 633 |
no) ;; |
| 634 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 635 |
- *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 636 |
+ *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 637 |
esac |
| 638 |
fi |
| 639 |
|
| 640 |
@@ -1184,7 +1205,7 @@ $as_expr X"$as_myself" : 'X\(.*[^/]\)//* |
| 641 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 642 |
X"$as_myself" : 'X\(//\)$' \| \ |
| 643 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 644 |
-$as_echo X"$as_myself" | |
| 645 |
+printf "%s\n" X"$as_myself" | |
| 646 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 647 |
s//\1/ |
| 648 |
q |
| 649 |
@@ -1324,7 +1345,6 @@ Some influential environment variables: |
| 650 |
LIBS libraries to pass to the linker, e.g. -l<library> |
| 651 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 652 |
you have headers in a nonstandard directory <include dir> |
| 653 |
- CPP C preprocessor |
| 654 |
|
| 655 |
Use these variables to override the choices made by `configure' or to help |
| 656 |
it to find libraries and programs with nonstandard names/locations. |
| 657 |
@@ -1345,9 +1365,9 @@ if test "$ac_init_help" = "recursive"; t |
| 658 |
case "$ac_dir" in |
| 659 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 660 |
*) |
| 661 |
- ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 662 |
+ ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 663 |
# A ".." for each directory in $ac_dir_suffix. |
| 664 |
- ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 665 |
+ ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 666 |
case $ac_top_builddir_sub in |
| 667 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 668 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 669 |
@@ -1375,7 +1395,8 @@ esac |
| 670 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 671 |
|
| 672 |
cd "$ac_dir" || { ac_status=$?; continue; } |
| 673 |
- # Check for guested configure. |
| 674 |
+ # Check for configure.gnu first; this name is used for a wrapper for |
| 675 |
+ # Metaconfig's "Configure" on case-insensitive file systems. |
| 676 |
if test -f "$ac_srcdir/configure.gnu"; then |
| 677 |
echo && |
| 678 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 679 |
@@ -1383,7 +1404,7 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_ |
| 680 |
echo && |
| 681 |
$SHELL "$ac_srcdir/configure" --help=recursive |
| 682 |
else |
| 683 |
- $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 684 |
+ printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 685 |
fi || ac_status=$? |
| 686 |
cd "$ac_pwd" || { ac_status=$?; break; } |
| 687 |
done |
| 688 |
@@ -1393,9 +1414,9 @@ test -n "$ac_init_help" && exit $ac_stat |
| 689 |
if $ac_init_version; then |
| 690 |
cat <<\_ACEOF |
| 691 |
configure |
| 692 |
-generated by GNU Autoconf 2.69 |
| 693 |
+generated by GNU Autoconf 2.71 |
| 694 |
|
| 695 |
-Copyright (C) 2012 Free Software Foundation, Inc. |
| 696 |
+Copyright (C) 2021 Free Software Foundation, Inc. |
| 697 |
This configure script is free software; the Free Software Foundation |
| 698 |
gives unlimited permission to copy, distribute and modify it. |
| 699 |
_ACEOF |
| 700 |
@@ -1412,14 +1433,14 @@ fi |
| 701 |
ac_fn_c_try_compile () |
| 702 |
{ |
| 703 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 704 |
- rm -f conftest.$ac_objext |
| 705 |
+ rm -f conftest.$ac_objext conftest.beam |
| 706 |
if { { ac_try="$ac_compile" |
| 707 |
case "(($ac_try" in |
| 708 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 709 |
*) ac_try_echo=$ac_try;; |
| 710 |
esac |
| 711 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 712 |
-$as_echo "$ac_try_echo"; } >&5 |
| 713 |
+printf "%s\n" "$ac_try_echo"; } >&5 |
| 714 |
(eval "$ac_compile") 2>conftest.err |
| 715 |
ac_status=$? |
| 716 |
if test -s conftest.err; then |
| 717 |
@@ -1427,14 +1448,15 @@ $as_echo "$ac_try_echo"; } >&5 |
| 718 |
cat conftest.er1 >&5 |
| 719 |
mv -f conftest.er1 conftest.err |
| 720 |
fi |
| 721 |
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 722 |
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 723 |
test $ac_status = 0; } && { |
| 724 |
test -z "$ac_c_werror_flag" || |
| 725 |
test ! -s conftest.err |
| 726 |
- } && test -s conftest.$ac_objext; then : |
| 727 |
+ } && test -s conftest.$ac_objext |
| 728 |
+then : |
| 729 |
ac_retval=0 |
| 730 |
-else |
| 731 |
- $as_echo "$as_me: failed program was:" >&5 |
| 732 |
+else $as_nop |
| 733 |
+ printf "%s\n" "$as_me: failed program was:" >&5 |
| 734 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 735 |
|
| 736 |
ac_retval=1 |
| 737 |
@@ -1444,172 +1466,6 @@ fi |
| 738 |
|
| 739 |
} # ac_fn_c_try_compile |
| 740 |
|
| 741 |
-# ac_fn_c_try_cpp LINENO |
| 742 |
-# ---------------------- |
| 743 |
-# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 744 |
-ac_fn_c_try_cpp () |
| 745 |
-{ |
| 746 |
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 747 |
- if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 748 |
-case "(($ac_try" in |
| 749 |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 750 |
- *) ac_try_echo=$ac_try;; |
| 751 |
-esac |
| 752 |
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 753 |
-$as_echo "$ac_try_echo"; } >&5 |
| 754 |
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 755 |
- ac_status=$? |
| 756 |
- if test -s conftest.err; then |
| 757 |
- grep -v '^ *+' conftest.err >conftest.er1 |
| 758 |
- cat conftest.er1 >&5 |
| 759 |
- mv -f conftest.er1 conftest.err |
| 760 |
- fi |
| 761 |
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 762 |
- test $ac_status = 0; } > conftest.i && { |
| 763 |
- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 764 |
- test ! -s conftest.err |
| 765 |
- }; then : |
| 766 |
- ac_retval=0 |
| 767 |
-else |
| 768 |
- $as_echo "$as_me: failed program was:" >&5 |
| 769 |
-sed 's/^/| /' conftest.$ac_ext >&5 |
| 770 |
- |
| 771 |
- ac_retval=1 |
| 772 |
-fi |
| 773 |
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 774 |
- as_fn_set_status $ac_retval |
| 775 |
- |
| 776 |
-} # ac_fn_c_try_cpp |
| 777 |
- |
| 778 |
-# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 779 |
-# ------------------------------------------------------- |
| 780 |
-# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 781 |
-# the include files in INCLUDES and setting the cache variable VAR |
| 782 |
-# accordingly. |
| 783 |
-ac_fn_c_check_header_mongrel () |
| 784 |
-{ |
| 785 |
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 786 |
- if eval \${$3+:} false; then : |
| 787 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 788 |
-$as_echo_n "checking for $2... " >&6; } |
| 789 |
-if eval \${$3+:} false; then : |
| 790 |
- $as_echo_n "(cached) " >&6 |
| 791 |
-fi |
| 792 |
-eval ac_res=\$$3 |
| 793 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 794 |
-$as_echo "$ac_res" >&6; } |
| 795 |
-else |
| 796 |
- # Is the header compilable? |
| 797 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 798 |
-$as_echo_n "checking $2 usability... " >&6; } |
| 799 |
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 800 |
-/* end confdefs.h. */ |
| 801 |
-$4 |
| 802 |
-#include <$2> |
| 803 |
-_ACEOF |
| 804 |
-if ac_fn_c_try_compile "$LINENO"; then : |
| 805 |
- ac_header_compiler=yes |
| 806 |
-else |
| 807 |
- ac_header_compiler=no |
| 808 |
-fi |
| 809 |
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 810 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 811 |
-$as_echo "$ac_header_compiler" >&6; } |
| 812 |
- |
| 813 |
-# Is the header present? |
| 814 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 815 |
-$as_echo_n "checking $2 presence... " >&6; } |
| 816 |
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 817 |
-/* end confdefs.h. */ |
| 818 |
-#include <$2> |
| 819 |
-_ACEOF |
| 820 |
-if ac_fn_c_try_cpp "$LINENO"; then : |
| 821 |
- ac_header_preproc=yes |
| 822 |
-else |
| 823 |
- ac_header_preproc=no |
| 824 |
-fi |
| 825 |
-rm -f conftest.err conftest.i conftest.$ac_ext |
| 826 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 827 |
-$as_echo "$ac_header_preproc" >&6; } |
| 828 |
- |
| 829 |
-# So? What about this header? |
| 830 |
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 831 |
- yes:no: ) |
| 832 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 833 |
-$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 834 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 835 |
-$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 836 |
- ;; |
| 837 |
- no:yes:* ) |
| 838 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 839 |
-$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 840 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 841 |
-$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 842 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 843 |
-$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 844 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 845 |
-$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 846 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 847 |
-$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 848 |
- ;; |
| 849 |
-esac |
| 850 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 851 |
-$as_echo_n "checking for $2... " >&6; } |
| 852 |
-if eval \${$3+:} false; then : |
| 853 |
- $as_echo_n "(cached) " >&6 |
| 854 |
-else |
| 855 |
- eval "$3=\$ac_header_compiler" |
| 856 |
-fi |
| 857 |
-eval ac_res=\$$3 |
| 858 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 859 |
-$as_echo "$ac_res" >&6; } |
| 860 |
-fi |
| 861 |
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 862 |
- |
| 863 |
-} # ac_fn_c_check_header_mongrel |
| 864 |
- |
| 865 |
-# ac_fn_c_try_run LINENO |
| 866 |
-# ---------------------- |
| 867 |
-# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 868 |
-# that executables *can* be run. |
| 869 |
-ac_fn_c_try_run () |
| 870 |
-{ |
| 871 |
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 872 |
- if { { ac_try="$ac_link" |
| 873 |
-case "(($ac_try" in |
| 874 |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 875 |
- *) ac_try_echo=$ac_try;; |
| 876 |
-esac |
| 877 |
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 878 |
-$as_echo "$ac_try_echo"; } >&5 |
| 879 |
- (eval "$ac_link") 2>&5 |
| 880 |
- ac_status=$? |
| 881 |
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 882 |
- test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 883 |
- { { case "(($ac_try" in |
| 884 |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 885 |
- *) ac_try_echo=$ac_try;; |
| 886 |
-esac |
| 887 |
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 888 |
-$as_echo "$ac_try_echo"; } >&5 |
| 889 |
- (eval "$ac_try") 2>&5 |
| 890 |
- ac_status=$? |
| 891 |
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 892 |
- test $ac_status = 0; }; }; then : |
| 893 |
- ac_retval=0 |
| 894 |
-else |
| 895 |
- $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 896 |
- $as_echo "$as_me: failed program was:" >&5 |
| 897 |
-sed 's/^/| /' conftest.$ac_ext >&5 |
| 898 |
- |
| 899 |
- ac_retval=$ac_status |
| 900 |
-fi |
| 901 |
- rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 902 |
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 903 |
- as_fn_set_status $ac_retval |
| 904 |
- |
| 905 |
-} # ac_fn_c_try_run |
| 906 |
- |
| 907 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 908 |
# ------------------------------------------------------- |
| 909 |
# Tests whether HEADER exists and can be compiled using the include files in |
| 910 |
@@ -1617,49 +1473,54 @@ fi |
| 911 |
ac_fn_c_check_header_compile () |
| 912 |
{ |
| 913 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 914 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 915 |
-$as_echo_n "checking for $2... " >&6; } |
| 916 |
-if eval \${$3+:} false; then : |
| 917 |
- $as_echo_n "(cached) " >&6 |
| 918 |
-else |
| 919 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 920 |
+printf %s "checking for $2... " >&6; } |
| 921 |
+if eval test \${$3+y} |
| 922 |
+then : |
| 923 |
+ printf %s "(cached) " >&6 |
| 924 |
+else $as_nop |
| 925 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 926 |
/* end confdefs.h. */ |
| 927 |
$4 |
| 928 |
#include <$2> |
| 929 |
_ACEOF |
| 930 |
-if ac_fn_c_try_compile "$LINENO"; then : |
| 931 |
+if ac_fn_c_try_compile "$LINENO" |
| 932 |
+then : |
| 933 |
eval "$3=yes" |
| 934 |
-else |
| 935 |
+else $as_nop |
| 936 |
eval "$3=no" |
| 937 |
fi |
| 938 |
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 939 |
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 940 |
fi |
| 941 |
eval ac_res=\$$3 |
| 942 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 943 |
-$as_echo "$ac_res" >&6; } |
| 944 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 945 |
+printf "%s\n" "$ac_res" >&6; } |
| 946 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 947 |
|
| 948 |
} # ac_fn_c_check_header_compile |
| 949 |
|
| 950 |
-# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 951 |
-# --------------------------------------------- |
| 952 |
+# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR |
| 953 |
+# ------------------------------------------------------------------ |
| 954 |
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 955 |
-# accordingly. |
| 956 |
-ac_fn_c_check_decl () |
| 957 |
+# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. |
| 958 |
+ac_fn_check_decl () |
| 959 |
{ |
| 960 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 961 |
as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 962 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 963 |
+printf %s "checking whether $as_decl_name is declared... " >&6; } |
| 964 |
+if eval test \${$3+y} |
| 965 |
+then : |
| 966 |
+ printf %s "(cached) " >&6 |
| 967 |
+else $as_nop |
| 968 |
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 969 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 970 |
-$as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 971 |
-if eval \${$3+:} false; then : |
| 972 |
- $as_echo_n "(cached) " >&6 |
| 973 |
-else |
| 974 |
+ eval ac_save_FLAGS=\$$6 |
| 975 |
+ as_fn_append $6 " $5" |
| 976 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 977 |
/* end confdefs.h. */ |
| 978 |
$4 |
| 979 |
int |
| 980 |
-main () |
| 981 |
+main (void) |
| 982 |
{ |
| 983 |
#ifndef $as_decl_name |
| 984 |
#ifdef __cplusplus |
| 985 |
@@ -1673,19 +1534,22 @@ main () |
| 986 |
return 0; |
| 987 |
} |
| 988 |
_ACEOF |
| 989 |
-if ac_fn_c_try_compile "$LINENO"; then : |
| 990 |
+if ac_fn_c_try_compile "$LINENO" |
| 991 |
+then : |
| 992 |
eval "$3=yes" |
| 993 |
-else |
| 994 |
+else $as_nop |
| 995 |
eval "$3=no" |
| 996 |
fi |
| 997 |
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 998 |
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 999 |
+ eval $6=\$ac_save_FLAGS |
| 1000 |
+ |
| 1001 |
fi |
| 1002 |
eval ac_res=\$$3 |
| 1003 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1004 |
-$as_echo "$ac_res" >&6; } |
| 1005 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1006 |
+printf "%s\n" "$ac_res" >&6; } |
| 1007 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1008 |
|
| 1009 |
-} # ac_fn_c_check_decl |
| 1010 |
+} # ac_fn_check_decl |
| 1011 |
|
| 1012 |
# ac_fn_c_try_link LINENO |
| 1013 |
# ----------------------- |
| 1014 |
@@ -1693,14 +1557,14 @@ $as_echo "$ac_res" >&6; } |
| 1015 |
ac_fn_c_try_link () |
| 1016 |
{ |
| 1017 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1018 |
- rm -f conftest.$ac_objext conftest$ac_exeext |
| 1019 |
+ rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
| 1020 |
if { { ac_try="$ac_link" |
| 1021 |
case "(($ac_try" in |
| 1022 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1023 |
*) ac_try_echo=$ac_try;; |
| 1024 |
esac |
| 1025 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1026 |
-$as_echo "$ac_try_echo"; } >&5 |
| 1027 |
+printf "%s\n" "$ac_try_echo"; } >&5 |
| 1028 |
(eval "$ac_link") 2>conftest.err |
| 1029 |
ac_status=$? |
| 1030 |
if test -s conftest.err; then |
| 1031 |
@@ -1708,17 +1572,18 @@ $as_echo "$ac_try_echo"; } >&5 |
| 1032 |
cat conftest.er1 >&5 |
| 1033 |
mv -f conftest.er1 conftest.err |
| 1034 |
fi |
| 1035 |
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1036 |
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1037 |
test $ac_status = 0; } && { |
| 1038 |
test -z "$ac_c_werror_flag" || |
| 1039 |
test ! -s conftest.err |
| 1040 |
} && test -s conftest$ac_exeext && { |
| 1041 |
test "$cross_compiling" = yes || |
| 1042 |
test -x conftest$ac_exeext |
| 1043 |
- }; then : |
| 1044 |
+ } |
| 1045 |
+then : |
| 1046 |
ac_retval=0 |
| 1047 |
-else |
| 1048 |
- $as_echo "$as_me: failed program was:" >&5 |
| 1049 |
+else $as_nop |
| 1050 |
+ printf "%s\n" "$as_me: failed program was:" >&5 |
| 1051 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1052 |
|
| 1053 |
ac_retval=1 |
| 1054 |
@@ -1732,14 +1597,34 @@ fi |
| 1055 |
as_fn_set_status $ac_retval |
| 1056 |
|
| 1057 |
} # ac_fn_c_try_link |
| 1058 |
+ac_configure_args_raw= |
| 1059 |
+for ac_arg |
| 1060 |
+do |
| 1061 |
+ case $ac_arg in |
| 1062 |
+ *\'*) |
| 1063 |
+ ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1064 |
+ esac |
| 1065 |
+ as_fn_append ac_configure_args_raw " '$ac_arg'" |
| 1066 |
+done |
| 1067 |
+ |
| 1068 |
+case $ac_configure_args_raw in |
| 1069 |
+ *$as_nl*) |
| 1070 |
+ ac_safe_unquote= ;; |
| 1071 |
+ *) |
| 1072 |
+ ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
| 1073 |
+ ac_unsafe_a="$ac_unsafe_z#~" |
| 1074 |
+ ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
| 1075 |
+ ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
| 1076 |
+esac |
| 1077 |
+ |
| 1078 |
cat >config.log <<_ACEOF |
| 1079 |
This file contains any messages produced by compilers while |
| 1080 |
running configure, to aid debugging if configure makes a mistake. |
| 1081 |
|
| 1082 |
It was created by $as_me, which was |
| 1083 |
-generated by GNU Autoconf 2.69. Invocation command line was |
| 1084 |
+generated by GNU Autoconf 2.71. Invocation command line was |
| 1085 |
|
| 1086 |
- $ $0 $@ |
| 1087 |
+ $ $0$ac_configure_args_raw |
| 1088 |
|
| 1089 |
_ACEOF |
| 1090 |
exec 5>>config.log |
| 1091 |
@@ -1772,8 +1657,12 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1092 |
for as_dir in $PATH |
| 1093 |
do |
| 1094 |
IFS=$as_save_IFS |
| 1095 |
- test -z "$as_dir" && as_dir=. |
| 1096 |
- $as_echo "PATH: $as_dir" |
| 1097 |
+ case $as_dir in #((( |
| 1098 |
+ '') as_dir=./ ;; |
| 1099 |
+ */) ;; |
| 1100 |
+ *) as_dir=$as_dir/ ;; |
| 1101 |
+ esac |
| 1102 |
+ printf "%s\n" "PATH: $as_dir" |
| 1103 |
done |
| 1104 |
IFS=$as_save_IFS |
| 1105 |
|
| 1106 |
@@ -1808,7 +1697,7 @@ do |
| 1107 |
| -silent | --silent | --silen | --sile | --sil) |
| 1108 |
continue ;; |
| 1109 |
*\'*) |
| 1110 |
- ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1111 |
+ ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1112 |
esac |
| 1113 |
case $ac_pass in |
| 1114 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 1115 |
@@ -1843,11 +1732,13 @@ done |
| 1116 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1117 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 1118 |
trap 'exit_status=$? |
| 1119 |
+ # Sanitize IFS. |
| 1120 |
+ IFS=" "" $as_nl" |
| 1121 |
# Save into config.log some information that might help in debugging. |
| 1122 |
{ |
| 1123 |
echo |
| 1124 |
|
| 1125 |
- $as_echo "## ---------------- ## |
| 1126 |
+ printf "%s\n" "## ---------------- ## |
| 1127 |
## Cache variables. ## |
| 1128 |
## ---------------- ##" |
| 1129 |
echo |
| 1130 |
@@ -1858,8 +1749,8 @@ trap 'exit_status=$? |
| 1131 |
case $ac_val in #( |
| 1132 |
*${as_nl}*) |
| 1133 |
case $ac_var in #( |
| 1134 |
- *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1135 |
-$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 1136 |
+ *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1137 |
+printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 1138 |
esac |
| 1139 |
case $ac_var in #( |
| 1140 |
_ | IFS | as_nl) ;; #( |
| 1141 |
@@ -1883,7 +1774,7 @@ $as_echo "$as_me: WARNING: cache variabl |
| 1142 |
) |
| 1143 |
echo |
| 1144 |
|
| 1145 |
- $as_echo "## ----------------- ## |
| 1146 |
+ printf "%s\n" "## ----------------- ## |
| 1147 |
## Output variables. ## |
| 1148 |
## ----------------- ##" |
| 1149 |
echo |
| 1150 |
@@ -1891,14 +1782,14 @@ $as_echo "$as_me: WARNING: cache variabl |
| 1151 |
do |
| 1152 |
eval ac_val=\$$ac_var |
| 1153 |
case $ac_val in |
| 1154 |
- *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1155 |
+ *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1156 |
esac |
| 1157 |
- $as_echo "$ac_var='\''$ac_val'\''" |
| 1158 |
+ printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 1159 |
done | sort |
| 1160 |
echo |
| 1161 |
|
| 1162 |
if test -n "$ac_subst_files"; then |
| 1163 |
- $as_echo "## ------------------- ## |
| 1164 |
+ printf "%s\n" "## ------------------- ## |
| 1165 |
## File substitutions. ## |
| 1166 |
## ------------------- ##" |
| 1167 |
echo |
| 1168 |
@@ -1906,15 +1797,15 @@ $as_echo "$as_me: WARNING: cache variabl |
| 1169 |
do |
| 1170 |
eval ac_val=\$$ac_var |
| 1171 |
case $ac_val in |
| 1172 |
- *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1173 |
+ *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1174 |
esac |
| 1175 |
- $as_echo "$ac_var='\''$ac_val'\''" |
| 1176 |
+ printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 1177 |
done | sort |
| 1178 |
echo |
| 1179 |
fi |
| 1180 |
|
| 1181 |
if test -s confdefs.h; then |
| 1182 |
- $as_echo "## ----------- ## |
| 1183 |
+ printf "%s\n" "## ----------- ## |
| 1184 |
## confdefs.h. ## |
| 1185 |
## ----------- ##" |
| 1186 |
echo |
| 1187 |
@@ -1922,8 +1813,8 @@ $as_echo "$as_me: WARNING: cache variabl |
| 1188 |
echo |
| 1189 |
fi |
| 1190 |
test "$ac_signal" != 0 && |
| 1191 |
- $as_echo "$as_me: caught signal $ac_signal" |
| 1192 |
- $as_echo "$as_me: exit $exit_status" |
| 1193 |
+ printf "%s\n" "$as_me: caught signal $ac_signal" |
| 1194 |
+ printf "%s\n" "$as_me: exit $exit_status" |
| 1195 |
} >&5 |
| 1196 |
rm -f core *.core core.conftest.* && |
| 1197 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 1198 |
@@ -1937,63 +1828,48 @@ ac_signal=0 |
| 1199 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1200 |
rm -f -r conftest* confdefs.h |
| 1201 |
|
| 1202 |
-$as_echo "/* confdefs.h */" > confdefs.h |
| 1203 |
+printf "%s\n" "/* confdefs.h */" > confdefs.h |
| 1204 |
|
| 1205 |
# Predefined preprocessor variables. |
| 1206 |
|
| 1207 |
-cat >>confdefs.h <<_ACEOF |
| 1208 |
-#define PACKAGE_NAME "$PACKAGE_NAME" |
| 1209 |
-_ACEOF |
| 1210 |
+printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
| 1211 |
|
| 1212 |
-cat >>confdefs.h <<_ACEOF |
| 1213 |
-#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1214 |
-_ACEOF |
| 1215 |
+printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
| 1216 |
|
| 1217 |
-cat >>confdefs.h <<_ACEOF |
| 1218 |
-#define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1219 |
-_ACEOF |
| 1220 |
+printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
| 1221 |
|
| 1222 |
-cat >>confdefs.h <<_ACEOF |
| 1223 |
-#define PACKAGE_STRING "$PACKAGE_STRING" |
| 1224 |
-_ACEOF |
| 1225 |
+printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
| 1226 |
|
| 1227 |
-cat >>confdefs.h <<_ACEOF |
| 1228 |
-#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1229 |
-_ACEOF |
| 1230 |
+printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
| 1231 |
|
| 1232 |
-cat >>confdefs.h <<_ACEOF |
| 1233 |
-#define PACKAGE_URL "$PACKAGE_URL" |
| 1234 |
-_ACEOF |
| 1235 |
+printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
| 1236 |
|
| 1237 |
|
| 1238 |
# Let the site file select an alternate cache file if it wants to. |
| 1239 |
# Prefer an explicitly selected file to automatically selected ones. |
| 1240 |
-ac_site_file1=NONE |
| 1241 |
-ac_site_file2=NONE |
| 1242 |
if test -n "$CONFIG_SITE"; then |
| 1243 |
- # We do not want a PATH search for config.site. |
| 1244 |
- case $CONFIG_SITE in #(( |
| 1245 |
- -*) ac_site_file1=./$CONFIG_SITE;; |
| 1246 |
- */*) ac_site_file1=$CONFIG_SITE;; |
| 1247 |
- *) ac_site_file1=./$CONFIG_SITE;; |
| 1248 |
- esac |
| 1249 |
+ ac_site_files="$CONFIG_SITE" |
| 1250 |
elif test "x$prefix" != xNONE; then |
| 1251 |
- ac_site_file1=$prefix/share/config.site |
| 1252 |
- ac_site_file2=$prefix/etc/config.site |
| 1253 |
+ ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
| 1254 |
else |
| 1255 |
- ac_site_file1=$ac_default_prefix/share/config.site |
| 1256 |
- ac_site_file2=$ac_default_prefix/etc/config.site |
| 1257 |
+ ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1258 |
fi |
| 1259 |
-for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 1260 |
+ |
| 1261 |
+for ac_site_file in $ac_site_files |
| 1262 |
do |
| 1263 |
- test "x$ac_site_file" = xNONE && continue |
| 1264 |
- if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 1265 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 1266 |
-$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1267 |
+ case $ac_site_file in #( |
| 1268 |
+ */*) : |
| 1269 |
+ ;; #( |
| 1270 |
+ *) : |
| 1271 |
+ ac_site_file=./$ac_site_file ;; |
| 1272 |
+esac |
| 1273 |
+ if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
| 1274 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 1275 |
+printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
| 1276 |
sed 's/^/| /' "$ac_site_file" >&5 |
| 1277 |
. "$ac_site_file" \ |
| 1278 |
- || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 1279 |
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1280 |
+ || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 1281 |
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1282 |
as_fn_error $? "failed to load site script $ac_site_file |
| 1283 |
See \`config.log' for more details" "$LINENO" 5; } |
| 1284 |
fi |
| 1285 |
@@ -2003,19 +1879,336 @@ if test -r "$cache_file"; then |
| 1286 |
# Some versions of bash will fail to source /dev/null (special files |
| 1287 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 1288 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 1289 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 1290 |
-$as_echo "$as_me: loading cache $cache_file" >&6;} |
| 1291 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 1292 |
+printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
| 1293 |
case $cache_file in |
| 1294 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1295 |
*) . "./$cache_file";; |
| 1296 |
esac |
| 1297 |
fi |
| 1298 |
else |
| 1299 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 1300 |
-$as_echo "$as_me: creating cache $cache_file" >&6;} |
| 1301 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 1302 |
+printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
| 1303 |
>$cache_file |
| 1304 |
fi |
| 1305 |
|
| 1306 |
+# Test code for whether the C compiler supports C89 (global declarations) |
| 1307 |
+ac_c_conftest_c89_globals=' |
| 1308 |
+/* Does the compiler advertise C89 conformance? |
| 1309 |
+ Do not test the value of __STDC__, because some compilers set it to 0 |
| 1310 |
+ while being otherwise adequately conformant. */ |
| 1311 |
+#if !defined __STDC__ |
| 1312 |
+# error "Compiler does not advertise C89 conformance" |
| 1313 |
+#endif |
| 1314 |
+ |
| 1315 |
+#include <stddef.h> |
| 1316 |
+#include <stdarg.h> |
| 1317 |
+struct stat; |
| 1318 |
+/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
| 1319 |
+struct buf { int x; }; |
| 1320 |
+struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
| 1321 |
+static char *e (p, i) |
| 1322 |
+ char **p; |
| 1323 |
+ int i; |
| 1324 |
+{ |
| 1325 |
+ return p[i]; |
| 1326 |
+} |
| 1327 |
+static char *f (char * (*g) (char **, int), char **p, ...) |
| 1328 |
+{ |
| 1329 |
+ char *s; |
| 1330 |
+ va_list v; |
| 1331 |
+ va_start (v,p); |
| 1332 |
+ s = g (p, va_arg (v,int)); |
| 1333 |
+ va_end (v); |
| 1334 |
+ return s; |
| 1335 |
+} |
| 1336 |
+ |
| 1337 |
+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 1338 |
+ function prototypes and stuff, but not \xHH hex character constants. |
| 1339 |
+ These do not provoke an error unfortunately, instead are silently treated |
| 1340 |
+ as an "x". The following induces an error, until -std is added to get |
| 1341 |
+ proper ANSI mode. Curiously \x00 != x always comes out true, for an |
| 1342 |
+ array size at least. It is necessary to write \x00 == 0 to get something |
| 1343 |
+ that is true only with -std. */ |
| 1344 |
+int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
| 1345 |
+ |
| 1346 |
+/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 1347 |
+ inside strings and character constants. */ |
| 1348 |
+#define FOO(x) '\''x'\'' |
| 1349 |
+int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
| 1350 |
+ |
| 1351 |
+int test (int i, double x); |
| 1352 |
+struct s1 {int (*f) (int a);}; |
| 1353 |
+struct s2 {int (*f) (double a);}; |
| 1354 |
+int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
| 1355 |
+ int, int);' |
| 1356 |
+ |
| 1357 |
+# Test code for whether the C compiler supports C89 (body of main). |
| 1358 |
+ac_c_conftest_c89_main=' |
| 1359 |
+ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
| 1360 |
+' |
| 1361 |
+ |
| 1362 |
+# Test code for whether the C compiler supports C99 (global declarations) |
| 1363 |
+ac_c_conftest_c99_globals=' |
| 1364 |
+// Does the compiler advertise C99 conformance? |
| 1365 |
+#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
| 1366 |
+# error "Compiler does not advertise C99 conformance" |
| 1367 |
+#endif |
| 1368 |
+ |
| 1369 |
+#include <stdbool.h> |
| 1370 |
+extern int puts (const char *); |
| 1371 |
+extern int printf (const char *, ...); |
| 1372 |
+extern int dprintf (int, const char *, ...); |
| 1373 |
+extern void *malloc (size_t); |
| 1374 |
+ |
| 1375 |
+// Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 1376 |
+// dprintf is used instead of fprintf to avoid needing to declare |
| 1377 |
+// FILE and stderr. |
| 1378 |
+#define debug(...) dprintf (2, __VA_ARGS__) |
| 1379 |
+#define showlist(...) puts (#__VA_ARGS__) |
| 1380 |
+#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 1381 |
+static void |
| 1382 |
+test_varargs_macros (void) |
| 1383 |
+{ |
| 1384 |
+ int x = 1234; |
| 1385 |
+ int y = 5678; |
| 1386 |
+ debug ("Flag"); |
| 1387 |
+ debug ("X = %d\n", x); |
| 1388 |
+ showlist (The first, second, and third items.); |
| 1389 |
+ report (x>y, "x is %d but y is %d", x, y); |
| 1390 |
+} |
| 1391 |
+ |
| 1392 |
+// Check long long types. |
| 1393 |
+#define BIG64 18446744073709551615ull |
| 1394 |
+#define BIG32 4294967295ul |
| 1395 |
+#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 1396 |
+#if !BIG_OK |
| 1397 |
+ #error "your preprocessor is broken" |
| 1398 |
+#endif |
| 1399 |
+#if BIG_OK |
| 1400 |
+#else |
| 1401 |
+ #error "your preprocessor is broken" |
| 1402 |
+#endif |
| 1403 |
+static long long int bignum = -9223372036854775807LL; |
| 1404 |
+static unsigned long long int ubignum = BIG64; |
| 1405 |
+ |
| 1406 |
+struct incomplete_array |
| 1407 |
+{ |
| 1408 |
+ int datasize; |
| 1409 |
+ double data[]; |
| 1410 |
+}; |
| 1411 |
+ |
| 1412 |
+struct named_init { |
| 1413 |
+ int number; |
| 1414 |
+ const wchar_t *name; |
| 1415 |
+ double average; |
| 1416 |
+}; |
| 1417 |
+ |
| 1418 |
+typedef const char *ccp; |
| 1419 |
+ |
| 1420 |
+static inline int |
| 1421 |
+test_restrict (ccp restrict text) |
| 1422 |
+{ |
| 1423 |
+ // See if C++-style comments work. |
| 1424 |
+ // Iterate through items via the restricted pointer. |
| 1425 |
+ // Also check for declarations in for loops. |
| 1426 |
+ for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
| 1427 |
+ continue; |
| 1428 |
+ return 0; |
| 1429 |
+} |
| 1430 |
+ |
| 1431 |
+// Check varargs and va_copy. |
| 1432 |
+static bool |
| 1433 |
+test_varargs (const char *format, ...) |
| 1434 |
+{ |
| 1435 |
+ va_list args; |
| 1436 |
+ va_start (args, format); |
| 1437 |
+ va_list args_copy; |
| 1438 |
+ va_copy (args_copy, args); |
| 1439 |
+ |
| 1440 |
+ const char *str = ""; |
| 1441 |
+ int number = 0; |
| 1442 |
+ float fnumber = 0; |
| 1443 |
+ |
| 1444 |
+ while (*format) |
| 1445 |
+ { |
| 1446 |
+ switch (*format++) |
| 1447 |
+ { |
| 1448 |
+ case '\''s'\'': // string |
| 1449 |
+ str = va_arg (args_copy, const char *); |
| 1450 |
+ break; |
| 1451 |
+ case '\''d'\'': // int |
| 1452 |
+ number = va_arg (args_copy, int); |
| 1453 |
+ break; |
| 1454 |
+ case '\''f'\'': // float |
| 1455 |
+ fnumber = va_arg (args_copy, double); |
| 1456 |
+ break; |
| 1457 |
+ default: |
| 1458 |
+ break; |
| 1459 |
+ } |
| 1460 |
+ } |
| 1461 |
+ va_end (args_copy); |
| 1462 |
+ va_end (args); |
| 1463 |
+ |
| 1464 |
+ return *str && number && fnumber; |
| 1465 |
+} |
| 1466 |
+' |
| 1467 |
+ |
| 1468 |
+# Test code for whether the C compiler supports C99 (body of main). |
| 1469 |
+ac_c_conftest_c99_main=' |
| 1470 |
+ // Check bool. |
| 1471 |
+ _Bool success = false; |
| 1472 |
+ success |= (argc != 0); |
| 1473 |
+ |
| 1474 |
+ // Check restrict. |
| 1475 |
+ if (test_restrict ("String literal") == 0) |
| 1476 |
+ success = true; |
| 1477 |
+ char *restrict newvar = "Another string"; |
| 1478 |
+ |
| 1479 |
+ // Check varargs. |
| 1480 |
+ success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
| 1481 |
+ test_varargs_macros (); |
| 1482 |
+ |
| 1483 |
+ // Check flexible array members. |
| 1484 |
+ struct incomplete_array *ia = |
| 1485 |
+ malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 1486 |
+ ia->datasize = 10; |
| 1487 |
+ for (int i = 0; i < ia->datasize; ++i) |
| 1488 |
+ ia->data[i] = i * 1.234; |
| 1489 |
+ |
| 1490 |
+ // Check named initializers. |
| 1491 |
+ struct named_init ni = { |
| 1492 |
+ .number = 34, |
| 1493 |
+ .name = L"Test wide string", |
| 1494 |
+ .average = 543.34343, |
| 1495 |
+ }; |
| 1496 |
+ |
| 1497 |
+ ni.number = 58; |
| 1498 |
+ |
| 1499 |
+ int dynamic_array[ni.number]; |
| 1500 |
+ dynamic_array[0] = argv[0][0]; |
| 1501 |
+ dynamic_array[ni.number - 1] = 543; |
| 1502 |
+ |
| 1503 |
+ // work around unused variable warnings |
| 1504 |
+ ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
| 1505 |
+ || dynamic_array[ni.number - 1] != 543); |
| 1506 |
+' |
| 1507 |
+ |
| 1508 |
+# Test code for whether the C compiler supports C11 (global declarations) |
| 1509 |
+ac_c_conftest_c11_globals=' |
| 1510 |
+// Does the compiler advertise C11 conformance? |
| 1511 |
+#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
| 1512 |
+# error "Compiler does not advertise C11 conformance" |
| 1513 |
+#endif |
| 1514 |
+ |
| 1515 |
+// Check _Alignas. |
| 1516 |
+char _Alignas (double) aligned_as_double; |
| 1517 |
+char _Alignas (0) no_special_alignment; |
| 1518 |
+extern char aligned_as_int; |
| 1519 |
+char _Alignas (0) _Alignas (int) aligned_as_int; |
| 1520 |
+ |
| 1521 |
+// Check _Alignof. |
| 1522 |
+enum |
| 1523 |
+{ |
| 1524 |
+ int_alignment = _Alignof (int), |
| 1525 |
+ int_array_alignment = _Alignof (int[100]), |
| 1526 |
+ char_alignment = _Alignof (char) |
| 1527 |
+}; |
| 1528 |
+_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
| 1529 |
+ |
| 1530 |
+// Check _Noreturn. |
| 1531 |
+int _Noreturn does_not_return (void) { for (;;) continue; } |
| 1532 |
+ |
| 1533 |
+// Check _Static_assert. |
| 1534 |
+struct test_static_assert |
| 1535 |
+{ |
| 1536 |
+ int x; |
| 1537 |
+ _Static_assert (sizeof (int) <= sizeof (long int), |
| 1538 |
+ "_Static_assert does not work in struct"); |
| 1539 |
+ long int y; |
| 1540 |
+}; |
| 1541 |
+ |
| 1542 |
+// Check UTF-8 literals. |
| 1543 |
+#define u8 syntax error! |
| 1544 |
+char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
| 1545 |
+ |
| 1546 |
+// Check duplicate typedefs. |
| 1547 |
+typedef long *long_ptr; |
| 1548 |
+typedef long int *long_ptr; |
| 1549 |
+typedef long_ptr long_ptr; |
| 1550 |
+ |
| 1551 |
+// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
| 1552 |
+struct anonymous |
| 1553 |
+{ |
| 1554 |
+ union { |
| 1555 |
+ struct { int i; int j; }; |
| 1556 |
+ struct { int k; long int l; } w; |
| 1557 |
+ }; |
| 1558 |
+ int m; |
| 1559 |
+} v1; |
| 1560 |
+' |
| 1561 |
+ |
| 1562 |
+# Test code for whether the C compiler supports C11 (body of main). |
| 1563 |
+ac_c_conftest_c11_main=' |
| 1564 |
+ _Static_assert ((offsetof (struct anonymous, i) |
| 1565 |
+ == offsetof (struct anonymous, w.k)), |
| 1566 |
+ "Anonymous union alignment botch"); |
| 1567 |
+ v1.i = 2; |
| 1568 |
+ v1.w.k = 5; |
| 1569 |
+ ok |= v1.i != 5; |
| 1570 |
+' |
| 1571 |
+ |
| 1572 |
+# Test code for whether the C compiler supports C11 (complete). |
| 1573 |
+ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
| 1574 |
+${ac_c_conftest_c99_globals} |
| 1575 |
+${ac_c_conftest_c11_globals} |
| 1576 |
+ |
| 1577 |
+int |
| 1578 |
+main (int argc, char **argv) |
| 1579 |
+{ |
| 1580 |
+ int ok = 0; |
| 1581 |
+ ${ac_c_conftest_c89_main} |
| 1582 |
+ ${ac_c_conftest_c99_main} |
| 1583 |
+ ${ac_c_conftest_c11_main} |
| 1584 |
+ return ok; |
| 1585 |
+} |
| 1586 |
+" |
| 1587 |
+ |
| 1588 |
+# Test code for whether the C compiler supports C99 (complete). |
| 1589 |
+ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
| 1590 |
+${ac_c_conftest_c99_globals} |
| 1591 |
+ |
| 1592 |
+int |
| 1593 |
+main (int argc, char **argv) |
| 1594 |
+{ |
| 1595 |
+ int ok = 0; |
| 1596 |
+ ${ac_c_conftest_c89_main} |
| 1597 |
+ ${ac_c_conftest_c99_main} |
| 1598 |
+ return ok; |
| 1599 |
+} |
| 1600 |
+" |
| 1601 |
+ |
| 1602 |
+# Test code for whether the C compiler supports C89 (complete). |
| 1603 |
+ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
| 1604 |
+ |
| 1605 |
+int |
| 1606 |
+main (int argc, char **argv) |
| 1607 |
+{ |
| 1608 |
+ int ok = 0; |
| 1609 |
+ ${ac_c_conftest_c89_main} |
| 1610 |
+ return ok; |
| 1611 |
+} |
| 1612 |
+" |
| 1613 |
+ |
| 1614 |
+as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
| 1615 |
+as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
| 1616 |
+as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
| 1617 |
+as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
| 1618 |
+as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
| 1619 |
+as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
| 1620 |
+as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
| 1621 |
+as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
| 1622 |
+as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
| 1623 |
# Check that the precious variables saved in the cache have kept the same |
| 1624 |
# value. |
| 1625 |
ac_cache_corrupted=false |
| 1626 |
@@ -2026,12 +2219,12 @@ for ac_var in $ac_precious_vars; do |
| 1627 |
eval ac_new_val=\$ac_env_${ac_var}_value |
| 1628 |
case $ac_old_set,$ac_new_set in |
| 1629 |
set,) |
| 1630 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1631 |
-$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1632 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1633 |
+printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1634 |
ac_cache_corrupted=: ;; |
| 1635 |
,set) |
| 1636 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 1637 |
-$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1638 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 1639 |
+printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1640 |
ac_cache_corrupted=: ;; |
| 1641 |
,);; |
| 1642 |
*) |
| 1643 |
@@ -2040,24 +2233,24 @@ $as_echo "$as_me: error: \`$ac_var' was |
| 1644 |
ac_old_val_w=`echo x $ac_old_val` |
| 1645 |
ac_new_val_w=`echo x $ac_new_val` |
| 1646 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 1647 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1648 |
-$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1649 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1650 |
+printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1651 |
ac_cache_corrupted=: |
| 1652 |
else |
| 1653 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 1654 |
-$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1655 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 1656 |
+printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1657 |
eval $ac_var=\$ac_old_val |
| 1658 |
fi |
| 1659 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 1660 |
-$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 1661 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 1662 |
-$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 1663 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 1664 |
+printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
| 1665 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 1666 |
+printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} |
| 1667 |
fi;; |
| 1668 |
esac |
| 1669 |
# Pass precious variables to config.status. |
| 1670 |
if test "$ac_new_set" = set; then |
| 1671 |
case $ac_new_val in |
| 1672 |
- *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1673 |
+ *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1674 |
*) ac_arg=$ac_var=$ac_new_val ;; |
| 1675 |
esac |
| 1676 |
case " $ac_configure_args " in |
| 1677 |
@@ -2067,11 +2260,12 @@ $as_echo "$as_me: current value: \`$ac |
| 1678 |
fi |
| 1679 |
done |
| 1680 |
if $ac_cache_corrupted; then |
| 1681 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 1682 |
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1683 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 1684 |
-$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1685 |
- as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 1686 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 1687 |
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1688 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 1689 |
+printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1690 |
+ as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
| 1691 |
+ and start over" "$LINENO" 5 |
| 1692 |
fi |
| 1693 |
## -------------------- ## |
| 1694 |
## Main body of script. ## |
| 1695 |
@@ -2089,7 +2283,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1696 |
## One way is to specify both include and lib paths |
| 1697 |
|
| 1698 |
# Check whether --with-Rmpi-include was given. |
| 1699 |
-if test "${with_Rmpi_include+set}" = set; then : |
| 1700 |
+if test ${with_Rmpi_include+y} |
| 1701 |
+then : |
| 1702 |
withval=$with_Rmpi_include; mpi_include_path=$withval |
| 1703 |
fi |
| 1704 |
|
| 1705 |
@@ -2110,7 +2305,8 @@ fi |
| 1706 |
|
| 1707 |
|
| 1708 |
# Check whether --with-Rmpi-libpath was given. |
| 1709 |
-if test "${with_Rmpi_libpath+set}" = set; then : |
| 1710 |
+if test ${with_Rmpi_libpath+y} |
| 1711 |
+then : |
| 1712 |
withval=$with_Rmpi_libpath; mpi_lib_path=$withval |
| 1713 |
fi |
| 1714 |
|
| 1715 |
@@ -2134,7 +2330,8 @@ MPITYPE="UNKNOWN" |
| 1716 |
|
| 1717 |
|
| 1718 |
# Check whether --with-Rmpi-type was given. |
| 1719 |
-if test "${with_Rmpi_type+set}" = set; then : |
| 1720 |
+if test ${with_Rmpi_type+y} |
| 1721 |
+then : |
| 1722 |
withval=$with_Rmpi_type; mpi_type=$withval |
| 1723 |
fi |
| 1724 |
|
| 1725 |
@@ -2151,7 +2348,8 @@ if test -z "${MPI_INCLUDE_PATH}" ; then |
| 1726 |
## another way is to specify MPI_ROOT, perhaps via --with-mpi |
| 1727 |
|
| 1728 |
# Check whether --with-mpi was given. |
| 1729 |
-if test "${with_mpi+set}" = set; then : |
| 1730 |
+if test ${with_mpi+y} |
| 1731 |
+then : |
| 1732 |
withval=$with_mpi; if test "${withval}" != "no"; then |
| 1733 |
MPI_ROOT=${withval} |
| 1734 |
MPI_INCLUDE_PATH="${MPI_ROOT}/include" |
| 1735 |
@@ -2164,6 +2362,15 @@ fi |
| 1736 |
|
| 1737 |
CC=`"${R_HOME}/bin/R" CMD config CC` |
| 1738 |
CFLAGS=`"${R_HOME}/bin/R" CMD config CFLAGS` |
| 1739 |
+ |
| 1740 |
+ |
| 1741 |
+ |
| 1742 |
+ |
| 1743 |
+ |
| 1744 |
+ |
| 1745 |
+ |
| 1746 |
+ |
| 1747 |
+ |
| 1748 |
ac_ext=c |
| 1749 |
ac_cpp='$CPP $CPPFLAGS' |
| 1750 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1751 |
@@ -2172,11 +2379,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1752 |
if test -n "$ac_tool_prefix"; then |
| 1753 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1754 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1755 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 1756 |
-$as_echo_n "checking for $ac_word... " >&6; } |
| 1757 |
-if ${ac_cv_prog_CC+:} false; then : |
| 1758 |
- $as_echo_n "(cached) " >&6 |
| 1759 |
-else |
| 1760 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 1761 |
+printf %s "checking for $ac_word... " >&6; } |
| 1762 |
+if test ${ac_cv_prog_CC+y} |
| 1763 |
+then : |
| 1764 |
+ printf %s "(cached) " >&6 |
| 1765 |
+else $as_nop |
| 1766 |
if test -n "$CC"; then |
| 1767 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1768 |
else |
| 1769 |
@@ -2184,11 +2392,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1770 |
for as_dir in $PATH |
| 1771 |
do |
| 1772 |
IFS=$as_save_IFS |
| 1773 |
- test -z "$as_dir" && as_dir=. |
| 1774 |
+ case $as_dir in #((( |
| 1775 |
+ '') as_dir=./ ;; |
| 1776 |
+ */) ;; |
| 1777 |
+ *) as_dir=$as_dir/ ;; |
| 1778 |
+ esac |
| 1779 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 1780 |
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1781 |
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 1782 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1783 |
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1784 |
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 1785 |
break 2 |
| 1786 |
fi |
| 1787 |
done |
| 1788 |
@@ -2199,11 +2411,11 @@ fi |
| 1789 |
fi |
| 1790 |
CC=$ac_cv_prog_CC |
| 1791 |
if test -n "$CC"; then |
| 1792 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 1793 |
-$as_echo "$CC" >&6; } |
| 1794 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 1795 |
+printf "%s\n" "$CC" >&6; } |
| 1796 |
else |
| 1797 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 1798 |
-$as_echo "no" >&6; } |
| 1799 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 1800 |
+printf "%s\n" "no" >&6; } |
| 1801 |
fi |
| 1802 |
|
| 1803 |
|
| 1804 |
@@ -2212,11 +2424,12 @@ if test -z "$ac_cv_prog_CC"; then |
| 1805 |
ac_ct_CC=$CC |
| 1806 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 1807 |
set dummy gcc; ac_word=$2 |
| 1808 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 1809 |
-$as_echo_n "checking for $ac_word... " >&6; } |
| 1810 |
-if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 1811 |
- $as_echo_n "(cached) " >&6 |
| 1812 |
-else |
| 1813 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 1814 |
+printf %s "checking for $ac_word... " >&6; } |
| 1815 |
+if test ${ac_cv_prog_ac_ct_CC+y} |
| 1816 |
+then : |
| 1817 |
+ printf %s "(cached) " >&6 |
| 1818 |
+else $as_nop |
| 1819 |
if test -n "$ac_ct_CC"; then |
| 1820 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1821 |
else |
| 1822 |
@@ -2224,11 +2437,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1823 |
for as_dir in $PATH |
| 1824 |
do |
| 1825 |
IFS=$as_save_IFS |
| 1826 |
- test -z "$as_dir" && as_dir=. |
| 1827 |
+ case $as_dir in #((( |
| 1828 |
+ '') as_dir=./ ;; |
| 1829 |
+ */) ;; |
| 1830 |
+ *) as_dir=$as_dir/ ;; |
| 1831 |
+ esac |
| 1832 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 1833 |
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1834 |
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 1835 |
ac_cv_prog_ac_ct_CC="gcc" |
| 1836 |
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1837 |
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 1838 |
break 2 |
| 1839 |
fi |
| 1840 |
done |
| 1841 |
@@ -2239,11 +2456,11 @@ fi |
| 1842 |
fi |
| 1843 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1844 |
if test -n "$ac_ct_CC"; then |
| 1845 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 1846 |
-$as_echo "$ac_ct_CC" >&6; } |
| 1847 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 1848 |
+printf "%s\n" "$ac_ct_CC" >&6; } |
| 1849 |
else |
| 1850 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 1851 |
-$as_echo "no" >&6; } |
| 1852 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 1853 |
+printf "%s\n" "no" >&6; } |
| 1854 |
fi |
| 1855 |
|
| 1856 |
if test "x$ac_ct_CC" = x; then |
| 1857 |
@@ -2251,8 +2468,8 @@ fi |
| 1858 |
else |
| 1859 |
case $cross_compiling:$ac_tool_warned in |
| 1860 |
yes:) |
| 1861 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 1862 |
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 1863 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 1864 |
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 1865 |
ac_tool_warned=yes ;; |
| 1866 |
esac |
| 1867 |
CC=$ac_ct_CC |
| 1868 |
@@ -2265,11 +2482,12 @@ if test -z "$CC"; then |
| 1869 |
if test -n "$ac_tool_prefix"; then |
| 1870 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1871 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1872 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 1873 |
-$as_echo_n "checking for $ac_word... " >&6; } |
| 1874 |
-if ${ac_cv_prog_CC+:} false; then : |
| 1875 |
- $as_echo_n "(cached) " >&6 |
| 1876 |
-else |
| 1877 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 1878 |
+printf %s "checking for $ac_word... " >&6; } |
| 1879 |
+if test ${ac_cv_prog_CC+y} |
| 1880 |
+then : |
| 1881 |
+ printf %s "(cached) " >&6 |
| 1882 |
+else $as_nop |
| 1883 |
if test -n "$CC"; then |
| 1884 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1885 |
else |
| 1886 |
@@ -2277,11 +2495,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1887 |
for as_dir in $PATH |
| 1888 |
do |
| 1889 |
IFS=$as_save_IFS |
| 1890 |
- test -z "$as_dir" && as_dir=. |
| 1891 |
+ case $as_dir in #((( |
| 1892 |
+ '') as_dir=./ ;; |
| 1893 |
+ */) ;; |
| 1894 |
+ *) as_dir=$as_dir/ ;; |
| 1895 |
+ esac |
| 1896 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 1897 |
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1898 |
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 1899 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1900 |
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1901 |
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 1902 |
break 2 |
| 1903 |
fi |
| 1904 |
done |
| 1905 |
@@ -2292,11 +2514,11 @@ fi |
| 1906 |
fi |
| 1907 |
CC=$ac_cv_prog_CC |
| 1908 |
if test -n "$CC"; then |
| 1909 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 1910 |
-$as_echo "$CC" >&6; } |
| 1911 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 1912 |
+printf "%s\n" "$CC" >&6; } |
| 1913 |
else |
| 1914 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 1915 |
-$as_echo "no" >&6; } |
| 1916 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 1917 |
+printf "%s\n" "no" >&6; } |
| 1918 |
fi |
| 1919 |
|
| 1920 |
|
| 1921 |
@@ -2305,11 +2527,12 @@ fi |
| 1922 |
if test -z "$CC"; then |
| 1923 |
# Extract the first word of "cc", so it can be a program name with args. |
| 1924 |
set dummy cc; ac_word=$2 |
| 1925 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 1926 |
-$as_echo_n "checking for $ac_word... " >&6; } |
| 1927 |
-if ${ac_cv_prog_CC+:} false; then : |
| 1928 |
- $as_echo_n "(cached) " >&6 |
| 1929 |
-else |
| 1930 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 1931 |
+printf %s "checking for $ac_word... " >&6; } |
| 1932 |
+if test ${ac_cv_prog_CC+y} |
| 1933 |
+then : |
| 1934 |
+ printf %s "(cached) " >&6 |
| 1935 |
+else $as_nop |
| 1936 |
if test -n "$CC"; then |
| 1937 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1938 |
else |
| 1939 |
@@ -2318,15 +2541,19 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1940 |
for as_dir in $PATH |
| 1941 |
do |
| 1942 |
IFS=$as_save_IFS |
| 1943 |
- test -z "$as_dir" && as_dir=. |
| 1944 |
+ case $as_dir in #((( |
| 1945 |
+ '') as_dir=./ ;; |
| 1946 |
+ */) ;; |
| 1947 |
+ *) as_dir=$as_dir/ ;; |
| 1948 |
+ esac |
| 1949 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 1950 |
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1951 |
- if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1952 |
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 1953 |
+ if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1954 |
ac_prog_rejected=yes |
| 1955 |
continue |
| 1956 |
fi |
| 1957 |
ac_cv_prog_CC="cc" |
| 1958 |
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1959 |
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 1960 |
break 2 |
| 1961 |
fi |
| 1962 |
done |
| 1963 |
@@ -2342,18 +2569,18 @@ if test $ac_prog_rejected = yes; then |
| 1964 |
# However, it has the same basename, so the bogon will be chosen |
| 1965 |
# first if we set CC to just the basename; use the full file name. |
| 1966 |
shift |
| 1967 |
- ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 1968 |
+ ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
| 1969 |
fi |
| 1970 |
fi |
| 1971 |
fi |
| 1972 |
fi |
| 1973 |
CC=$ac_cv_prog_CC |
| 1974 |
if test -n "$CC"; then |
| 1975 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 1976 |
-$as_echo "$CC" >&6; } |
| 1977 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 1978 |
+printf "%s\n" "$CC" >&6; } |
| 1979 |
else |
| 1980 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 1981 |
-$as_echo "no" >&6; } |
| 1982 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 1983 |
+printf "%s\n" "no" >&6; } |
| 1984 |
fi |
| 1985 |
|
| 1986 |
|
| 1987 |
@@ -2364,11 +2591,12 @@ if test -z "$CC"; then |
| 1988 |
do |
| 1989 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1990 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1991 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 1992 |
-$as_echo_n "checking for $ac_word... " >&6; } |
| 1993 |
-if ${ac_cv_prog_CC+:} false; then : |
| 1994 |
- $as_echo_n "(cached) " >&6 |
| 1995 |
-else |
| 1996 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 1997 |
+printf %s "checking for $ac_word... " >&6; } |
| 1998 |
+if test ${ac_cv_prog_CC+y} |
| 1999 |
+then : |
| 2000 |
+ printf %s "(cached) " >&6 |
| 2001 |
+else $as_nop |
| 2002 |
if test -n "$CC"; then |
| 2003 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2004 |
else |
| 2005 |
@@ -2376,11 +2604,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2006 |
for as_dir in $PATH |
| 2007 |
do |
| 2008 |
IFS=$as_save_IFS |
| 2009 |
- test -z "$as_dir" && as_dir=. |
| 2010 |
+ case $as_dir in #((( |
| 2011 |
+ '') as_dir=./ ;; |
| 2012 |
+ */) ;; |
| 2013 |
+ *) as_dir=$as_dir/ ;; |
| 2014 |
+ esac |
| 2015 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2016 |
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2017 |
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2018 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2019 |
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2020 |
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2021 |
break 2 |
| 2022 |
fi |
| 2023 |
done |
| 2024 |
@@ -2391,11 +2623,11 @@ fi |
| 2025 |
fi |
| 2026 |
CC=$ac_cv_prog_CC |
| 2027 |
if test -n "$CC"; then |
| 2028 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2029 |
-$as_echo "$CC" >&6; } |
| 2030 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2031 |
+printf "%s\n" "$CC" >&6; } |
| 2032 |
else |
| 2033 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2034 |
-$as_echo "no" >&6; } |
| 2035 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2036 |
+printf "%s\n" "no" >&6; } |
| 2037 |
fi |
| 2038 |
|
| 2039 |
|
| 2040 |
@@ -2408,11 +2640,12 @@ if test -z "$CC"; then |
| 2041 |
do |
| 2042 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2043 |
set dummy $ac_prog; ac_word=$2 |
| 2044 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2045 |
-$as_echo_n "checking for $ac_word... " >&6; } |
| 2046 |
-if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2047 |
- $as_echo_n "(cached) " >&6 |
| 2048 |
-else |
| 2049 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2050 |
+printf %s "checking for $ac_word... " >&6; } |
| 2051 |
+if test ${ac_cv_prog_ac_ct_CC+y} |
| 2052 |
+then : |
| 2053 |
+ printf %s "(cached) " >&6 |
| 2054 |
+else $as_nop |
| 2055 |
if test -n "$ac_ct_CC"; then |
| 2056 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2057 |
else |
| 2058 |
@@ -2420,11 +2653,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2059 |
for as_dir in $PATH |
| 2060 |
do |
| 2061 |
IFS=$as_save_IFS |
| 2062 |
- test -z "$as_dir" && as_dir=. |
| 2063 |
+ case $as_dir in #((( |
| 2064 |
+ '') as_dir=./ ;; |
| 2065 |
+ */) ;; |
| 2066 |
+ *) as_dir=$as_dir/ ;; |
| 2067 |
+ esac |
| 2068 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2069 |
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2070 |
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2071 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2072 |
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2073 |
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2074 |
break 2 |
| 2075 |
fi |
| 2076 |
done |
| 2077 |
@@ -2435,11 +2672,11 @@ fi |
| 2078 |
fi |
| 2079 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2080 |
if test -n "$ac_ct_CC"; then |
| 2081 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2082 |
-$as_echo "$ac_ct_CC" >&6; } |
| 2083 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2084 |
+printf "%s\n" "$ac_ct_CC" >&6; } |
| 2085 |
else |
| 2086 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2087 |
-$as_echo "no" >&6; } |
| 2088 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2089 |
+printf "%s\n" "no" >&6; } |
| 2090 |
fi |
| 2091 |
|
| 2092 |
|
| 2093 |
@@ -2451,34 +2688,138 @@ done |
| 2094 |
else |
| 2095 |
case $cross_compiling:$ac_tool_warned in |
| 2096 |
yes:) |
| 2097 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2098 |
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2099 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2100 |
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2101 |
+ac_tool_warned=yes ;; |
| 2102 |
+esac |
| 2103 |
+ CC=$ac_ct_CC |
| 2104 |
+ fi |
| 2105 |
+fi |
| 2106 |
+ |
| 2107 |
+fi |
| 2108 |
+if test -z "$CC"; then |
| 2109 |
+ if test -n "$ac_tool_prefix"; then |
| 2110 |
+ # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
| 2111 |
+set dummy ${ac_tool_prefix}clang; ac_word=$2 |
| 2112 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2113 |
+printf %s "checking for $ac_word... " >&6; } |
| 2114 |
+if test ${ac_cv_prog_CC+y} |
| 2115 |
+then : |
| 2116 |
+ printf %s "(cached) " >&6 |
| 2117 |
+else $as_nop |
| 2118 |
+ if test -n "$CC"; then |
| 2119 |
+ ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2120 |
+else |
| 2121 |
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2122 |
+for as_dir in $PATH |
| 2123 |
+do |
| 2124 |
+ IFS=$as_save_IFS |
| 2125 |
+ case $as_dir in #((( |
| 2126 |
+ '') as_dir=./ ;; |
| 2127 |
+ */) ;; |
| 2128 |
+ *) as_dir=$as_dir/ ;; |
| 2129 |
+ esac |
| 2130 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
| 2131 |
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2132 |
+ ac_cv_prog_CC="${ac_tool_prefix}clang" |
| 2133 |
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2134 |
+ break 2 |
| 2135 |
+ fi |
| 2136 |
+done |
| 2137 |
+ done |
| 2138 |
+IFS=$as_save_IFS |
| 2139 |
+ |
| 2140 |
+fi |
| 2141 |
+fi |
| 2142 |
+CC=$ac_cv_prog_CC |
| 2143 |
+if test -n "$CC"; then |
| 2144 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2145 |
+printf "%s\n" "$CC" >&6; } |
| 2146 |
+else |
| 2147 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2148 |
+printf "%s\n" "no" >&6; } |
| 2149 |
+fi |
| 2150 |
+ |
| 2151 |
+ |
| 2152 |
+fi |
| 2153 |
+if test -z "$ac_cv_prog_CC"; then |
| 2154 |
+ ac_ct_CC=$CC |
| 2155 |
+ # Extract the first word of "clang", so it can be a program name with args. |
| 2156 |
+set dummy clang; ac_word=$2 |
| 2157 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2158 |
+printf %s "checking for $ac_word... " >&6; } |
| 2159 |
+if test ${ac_cv_prog_ac_ct_CC+y} |
| 2160 |
+then : |
| 2161 |
+ printf %s "(cached) " >&6 |
| 2162 |
+else $as_nop |
| 2163 |
+ if test -n "$ac_ct_CC"; then |
| 2164 |
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2165 |
+else |
| 2166 |
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2167 |
+for as_dir in $PATH |
| 2168 |
+do |
| 2169 |
+ IFS=$as_save_IFS |
| 2170 |
+ case $as_dir in #((( |
| 2171 |
+ '') as_dir=./ ;; |
| 2172 |
+ */) ;; |
| 2173 |
+ *) as_dir=$as_dir/ ;; |
| 2174 |
+ esac |
| 2175 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
| 2176 |
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2177 |
+ ac_cv_prog_ac_ct_CC="clang" |
| 2178 |
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2179 |
+ break 2 |
| 2180 |
+ fi |
| 2181 |
+done |
| 2182 |
+ done |
| 2183 |
+IFS=$as_save_IFS |
| 2184 |
+ |
| 2185 |
+fi |
| 2186 |
+fi |
| 2187 |
+ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2188 |
+if test -n "$ac_ct_CC"; then |
| 2189 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2190 |
+printf "%s\n" "$ac_ct_CC" >&6; } |
| 2191 |
+else |
| 2192 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2193 |
+printf "%s\n" "no" >&6; } |
| 2194 |
+fi |
| 2195 |
+ |
| 2196 |
+ if test "x$ac_ct_CC" = x; then |
| 2197 |
+ CC="" |
| 2198 |
+ else |
| 2199 |
+ case $cross_compiling:$ac_tool_warned in |
| 2200 |
+yes:) |
| 2201 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2202 |
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2203 |
ac_tool_warned=yes ;; |
| 2204 |
esac |
| 2205 |
CC=$ac_ct_CC |
| 2206 |
fi |
| 2207 |
+else |
| 2208 |
+ CC="$ac_cv_prog_CC" |
| 2209 |
fi |
| 2210 |
|
| 2211 |
fi |
| 2212 |
|
| 2213 |
|
| 2214 |
-test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2215 |
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2216 |
+test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2217 |
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2218 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
| 2219 |
See \`config.log' for more details" "$LINENO" 5; } |
| 2220 |
|
| 2221 |
# Provide some information about the compiler. |
| 2222 |
-$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2223 |
+printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2224 |
set X $ac_compile |
| 2225 |
ac_compiler=$2 |
| 2226 |
-for ac_option in --version -v -V -qversion; do |
| 2227 |
+for ac_option in --version -v -V -qversion -version; do |
| 2228 |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 2229 |
case "(($ac_try" in |
| 2230 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2231 |
*) ac_try_echo=$ac_try;; |
| 2232 |
esac |
| 2233 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2234 |
-$as_echo "$ac_try_echo"; } >&5 |
| 2235 |
+printf "%s\n" "$ac_try_echo"; } >&5 |
| 2236 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 2237 |
ac_status=$? |
| 2238 |
if test -s conftest.err; then |
| 2239 |
@@ -2488,7 +2829,7 @@ $as_echo "$ac_try_echo"; } >&5 |
| 2240 |
cat conftest.er1 >&5 |
| 2241 |
fi |
| 2242 |
rm -f conftest.er1 conftest.err |
| 2243 |
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2244 |
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2245 |
test $ac_status = 0; } |
| 2246 |
done |
| 2247 |
|
| 2248 |
@@ -2496,7 +2837,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ |
| 2249 |
/* end confdefs.h. */ |
| 2250 |
|
| 2251 |
int |
| 2252 |
-main () |
| 2253 |
+main (void) |
| 2254 |
{ |
| 2255 |
|
| 2256 |
; |
| 2257 |
@@ -2508,9 +2849,9 @@ ac_clean_files="$ac_clean_files a.out a. |
| 2258 |
# Try to create an executable without -o first, disregard a.out. |
| 2259 |
# It will help us diagnose broken compilers, and finding out an intuition |
| 2260 |
# of exeext. |
| 2261 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2262 |
-$as_echo_n "checking whether the C compiler works... " >&6; } |
| 2263 |
-ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2264 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2265 |
+printf %s "checking whether the C compiler works... " >&6; } |
| 2266 |
+ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2267 |
|
| 2268 |
# The possible output files: |
| 2269 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2270 |
@@ -2531,11 +2872,12 @@ case "(($ac_try" in |
| 2271 |
*) ac_try_echo=$ac_try;; |
| 2272 |
esac |
| 2273 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2274 |
-$as_echo "$ac_try_echo"; } >&5 |
| 2275 |
+printf "%s\n" "$ac_try_echo"; } >&5 |
| 2276 |
(eval "$ac_link_default") 2>&5 |
| 2277 |
ac_status=$? |
| 2278 |
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2279 |
- test $ac_status = 0; }; then : |
| 2280 |
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2281 |
+ test $ac_status = 0; } |
| 2282 |
+then : |
| 2283 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2284 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2285 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2286 |
@@ -2552,7 +2894,7 @@ do |
| 2287 |
# certainly right. |
| 2288 |
break;; |
| 2289 |
*.* ) |
| 2290 |
- if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2291 |
+ if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
| 2292 |
then :; else |
| 2293 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2294 |
fi |
| 2295 |
@@ -2568,44 +2910,46 @@ do |
| 2296 |
done |
| 2297 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2298 |
|
| 2299 |
-else |
| 2300 |
+else $as_nop |
| 2301 |
ac_file='' |
| 2302 |
fi |
| 2303 |
-if test -z "$ac_file"; then : |
| 2304 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2305 |
-$as_echo "no" >&6; } |
| 2306 |
-$as_echo "$as_me: failed program was:" >&5 |
| 2307 |
+if test -z "$ac_file" |
| 2308 |
+then : |
| 2309 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2310 |
+printf "%s\n" "no" >&6; } |
| 2311 |
+printf "%s\n" "$as_me: failed program was:" >&5 |
| 2312 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2313 |
|
| 2314 |
-{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2315 |
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2316 |
+{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2317 |
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2318 |
as_fn_error 77 "C compiler cannot create executables |
| 2319 |
See \`config.log' for more details" "$LINENO" 5; } |
| 2320 |
-else |
| 2321 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2322 |
-$as_echo "yes" >&6; } |
| 2323 |
-fi |
| 2324 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 2325 |
-$as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2326 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 2327 |
-$as_echo "$ac_file" >&6; } |
| 2328 |
+else $as_nop |
| 2329 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2330 |
+printf "%s\n" "yes" >&6; } |
| 2331 |
+fi |
| 2332 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 2333 |
+printf %s "checking for C compiler default output file name... " >&6; } |
| 2334 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 2335 |
+printf "%s\n" "$ac_file" >&6; } |
| 2336 |
ac_exeext=$ac_cv_exeext |
| 2337 |
|
| 2338 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 2339 |
ac_clean_files=$ac_clean_files_save |
| 2340 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 2341 |
-$as_echo_n "checking for suffix of executables... " >&6; } |
| 2342 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 2343 |
+printf %s "checking for suffix of executables... " >&6; } |
| 2344 |
if { { ac_try="$ac_link" |
| 2345 |
case "(($ac_try" in |
| 2346 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2347 |
*) ac_try_echo=$ac_try;; |
| 2348 |
esac |
| 2349 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2350 |
-$as_echo "$ac_try_echo"; } >&5 |
| 2351 |
+printf "%s\n" "$ac_try_echo"; } >&5 |
| 2352 |
(eval "$ac_link") 2>&5 |
| 2353 |
ac_status=$? |
| 2354 |
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2355 |
- test $ac_status = 0; }; then : |
| 2356 |
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2357 |
+ test $ac_status = 0; } |
| 2358 |
+then : |
| 2359 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2360 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2361 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2362 |
@@ -2619,15 +2963,15 @@ for ac_file in conftest.exe conftest con |
| 2363 |
* ) break;; |
| 2364 |
esac |
| 2365 |
done |
| 2366 |
-else |
| 2367 |
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2368 |
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2369 |
+else $as_nop |
| 2370 |
+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2371 |
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2372 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 2373 |
See \`config.log' for more details" "$LINENO" 5; } |
| 2374 |
fi |
| 2375 |
rm -f conftest conftest$ac_cv_exeext |
| 2376 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 2377 |
-$as_echo "$ac_cv_exeext" >&6; } |
| 2378 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 2379 |
+printf "%s\n" "$ac_cv_exeext" >&6; } |
| 2380 |
|
| 2381 |
rm -f conftest.$ac_ext |
| 2382 |
EXEEXT=$ac_cv_exeext |
| 2383 |
@@ -2636,7 +2980,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ |
| 2384 |
/* end confdefs.h. */ |
| 2385 |
#include <stdio.h> |
| 2386 |
int |
| 2387 |
-main () |
| 2388 |
+main (void) |
| 2389 |
{ |
| 2390 |
FILE *f = fopen ("conftest.out", "w"); |
| 2391 |
return ferror (f) || fclose (f) != 0; |
| 2392 |
@@ -2648,8 +2992,8 @@ _ACEOF |
| 2393 |
ac_clean_files="$ac_clean_files conftest.out" |
| 2394 |
# Check that the compiler produces executables we can run. If not, either |
| 2395 |
# the compiler is broken, or we cross compile. |
| 2396 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 2397 |
-$as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2398 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 2399 |
+printf %s "checking whether we are cross compiling... " >&6; } |
| 2400 |
if test "$cross_compiling" != yes; then |
| 2401 |
{ { ac_try="$ac_link" |
| 2402 |
case "(($ac_try" in |
| 2403 |
@@ -2657,10 +3001,10 @@ case "(($ac_try" in |
| 2404 |
*) ac_try_echo=$ac_try;; |
| 2405 |
esac |
| 2406 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2407 |
-$as_echo "$ac_try_echo"; } >&5 |
| 2408 |
+printf "%s\n" "$ac_try_echo"; } >&5 |
| 2409 |
(eval "$ac_link") 2>&5 |
| 2410 |
ac_status=$? |
| 2411 |
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2412 |
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2413 |
test $ac_status = 0; } |
| 2414 |
if { ac_try='./conftest$ac_cv_exeext' |
| 2415 |
{ { case "(($ac_try" in |
| 2416 |
@@ -2668,39 +3012,40 @@ $as_echo "$ac_try_echo"; } >&5 |
| 2417 |
*) ac_try_echo=$ac_try;; |
| 2418 |
esac |
| 2419 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2420 |
-$as_echo "$ac_try_echo"; } >&5 |
| 2421 |
+printf "%s\n" "$ac_try_echo"; } >&5 |
| 2422 |
(eval "$ac_try") 2>&5 |
| 2423 |
ac_status=$? |
| 2424 |
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2425 |
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2426 |
test $ac_status = 0; }; }; then |
| 2427 |
cross_compiling=no |
| 2428 |
else |
| 2429 |
if test "$cross_compiling" = maybe; then |
| 2430 |
cross_compiling=yes |
| 2431 |
else |
| 2432 |
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2433 |
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2434 |
-as_fn_error $? "cannot run C compiled programs. |
| 2435 |
+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2436 |
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2437 |
+as_fn_error 77 "cannot run C compiled programs. |
| 2438 |
If you meant to cross compile, use \`--host'. |
| 2439 |
See \`config.log' for more details" "$LINENO" 5; } |
| 2440 |
fi |
| 2441 |
fi |
| 2442 |
fi |
| 2443 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 2444 |
-$as_echo "$cross_compiling" >&6; } |
| 2445 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 2446 |
+printf "%s\n" "$cross_compiling" >&6; } |
| 2447 |
|
| 2448 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 2449 |
ac_clean_files=$ac_clean_files_save |
| 2450 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 2451 |
-$as_echo_n "checking for suffix of object files... " >&6; } |
| 2452 |
-if ${ac_cv_objext+:} false; then : |
| 2453 |
- $as_echo_n "(cached) " >&6 |
| 2454 |
-else |
| 2455 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 2456 |
+printf %s "checking for suffix of object files... " >&6; } |
| 2457 |
+if test ${ac_cv_objext+y} |
| 2458 |
+then : |
| 2459 |
+ printf %s "(cached) " >&6 |
| 2460 |
+else $as_nop |
| 2461 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2462 |
/* end confdefs.h. */ |
| 2463 |
|
| 2464 |
int |
| 2465 |
-main () |
| 2466 |
+main (void) |
| 2467 |
{ |
| 2468 |
|
| 2469 |
; |
| 2470 |
@@ -2714,11 +3059,12 @@ case "(($ac_try" in |
| 2471 |
*) ac_try_echo=$ac_try;; |
| 2472 |
esac |
| 2473 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2474 |
-$as_echo "$ac_try_echo"; } >&5 |
| 2475 |
+printf "%s\n" "$ac_try_echo"; } >&5 |
| 2476 |
(eval "$ac_compile") 2>&5 |
| 2477 |
ac_status=$? |
| 2478 |
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2479 |
- test $ac_status = 0; }; then : |
| 2480 |
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2481 |
+ test $ac_status = 0; } |
| 2482 |
+then : |
| 2483 |
for ac_file in conftest.o conftest.obj conftest.*; do |
| 2484 |
test -f "$ac_file" || continue; |
| 2485 |
case $ac_file in |
| 2486 |
@@ -2727,31 +3073,32 @@ $as_echo "$ac_try_echo"; } >&5 |
| 2487 |
break;; |
| 2488 |
esac |
| 2489 |
done |
| 2490 |
-else |
| 2491 |
- $as_echo "$as_me: failed program was:" >&5 |
| 2492 |
+else $as_nop |
| 2493 |
+ printf "%s\n" "$as_me: failed program was:" >&5 |
| 2494 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2495 |
|
| 2496 |
-{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2497 |
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2498 |
+{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2499 |
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2500 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 2501 |
See \`config.log' for more details" "$LINENO" 5; } |
| 2502 |
fi |
| 2503 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2504 |
fi |
| 2505 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 2506 |
-$as_echo "$ac_cv_objext" >&6; } |
| 2507 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 2508 |
+printf "%s\n" "$ac_cv_objext" >&6; } |
| 2509 |
OBJEXT=$ac_cv_objext |
| 2510 |
ac_objext=$OBJEXT |
| 2511 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 2512 |
-$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 2513 |
-if ${ac_cv_c_compiler_gnu+:} false; then : |
| 2514 |
- $as_echo_n "(cached) " >&6 |
| 2515 |
-else |
| 2516 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
| 2517 |
+printf %s "checking whether the compiler supports GNU C... " >&6; } |
| 2518 |
+if test ${ac_cv_c_compiler_gnu+y} |
| 2519 |
+then : |
| 2520 |
+ printf %s "(cached) " >&6 |
| 2521 |
+else $as_nop |
| 2522 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2523 |
/* end confdefs.h. */ |
| 2524 |
|
| 2525 |
int |
| 2526 |
-main () |
| 2527 |
+main (void) |
| 2528 |
{ |
| 2529 |
#ifndef __GNUC__ |
| 2530 |
choke me |
| 2531 |
@@ -2761,29 +3108,33 @@ main () |
| 2532 |
return 0; |
| 2533 |
} |
| 2534 |
_ACEOF |
| 2535 |
-if ac_fn_c_try_compile "$LINENO"; then : |
| 2536 |
+if ac_fn_c_try_compile "$LINENO" |
| 2537 |
+then : |
| 2538 |
ac_compiler_gnu=yes |
| 2539 |
-else |
| 2540 |
+else $as_nop |
| 2541 |
ac_compiler_gnu=no |
| 2542 |
fi |
| 2543 |
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2544 |
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2545 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2546 |
|
| 2547 |
fi |
| 2548 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 2549 |
-$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 2550 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 2551 |
+printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
| 2552 |
+ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2553 |
+ |
| 2554 |
if test $ac_compiler_gnu = yes; then |
| 2555 |
GCC=yes |
| 2556 |
else |
| 2557 |
GCC= |
| 2558 |
fi |
| 2559 |
-ac_test_CFLAGS=${CFLAGS+set} |
| 2560 |
+ac_test_CFLAGS=${CFLAGS+y} |
| 2561 |
ac_save_CFLAGS=$CFLAGS |
| 2562 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 2563 |
-$as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 2564 |
-if ${ac_cv_prog_cc_g+:} false; then : |
| 2565 |
- $as_echo_n "(cached) " >&6 |
| 2566 |
-else |
| 2567 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 2568 |
+printf %s "checking whether $CC accepts -g... " >&6; } |
| 2569 |
+if test ${ac_cv_prog_cc_g+y} |
| 2570 |
+then : |
| 2571 |
+ printf %s "(cached) " >&6 |
| 2572 |
+else $as_nop |
| 2573 |
ac_save_c_werror_flag=$ac_c_werror_flag |
| 2574 |
ac_c_werror_flag=yes |
| 2575 |
ac_cv_prog_cc_g=no |
| 2576 |
@@ -2792,57 +3143,60 @@ else |
| 2577 |
/* end confdefs.h. */ |
| 2578 |
|
| 2579 |
int |
| 2580 |
-main () |
| 2581 |
+main (void) |
| 2582 |
{ |
| 2583 |
|
| 2584 |
; |
| 2585 |
return 0; |
| 2586 |
} |
| 2587 |
_ACEOF |
| 2588 |
-if ac_fn_c_try_compile "$LINENO"; then : |
| 2589 |
+if ac_fn_c_try_compile "$LINENO" |
| 2590 |
+then : |
| 2591 |
ac_cv_prog_cc_g=yes |
| 2592 |
-else |
| 2593 |
+else $as_nop |
| 2594 |
CFLAGS="" |
| 2595 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2596 |
/* end confdefs.h. */ |
| 2597 |
|
| 2598 |
int |
| 2599 |
-main () |
| 2600 |
+main (void) |
| 2601 |
{ |
| 2602 |
|
| 2603 |
; |
| 2604 |
return 0; |
| 2605 |
} |
| 2606 |
_ACEOF |
| 2607 |
-if ac_fn_c_try_compile "$LINENO"; then : |
| 2608 |
+if ac_fn_c_try_compile "$LINENO" |
| 2609 |
+then : |
| 2610 |
|
| 2611 |
-else |
| 2612 |
+else $as_nop |
| 2613 |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 2614 |
CFLAGS="-g" |
| 2615 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2616 |
/* end confdefs.h. */ |
| 2617 |
|
| 2618 |
int |
| 2619 |
-main () |
| 2620 |
+main (void) |
| 2621 |
{ |
| 2622 |
|
| 2623 |
; |
| 2624 |
return 0; |
| 2625 |
} |
| 2626 |
_ACEOF |
| 2627 |
-if ac_fn_c_try_compile "$LINENO"; then : |
| 2628 |
+if ac_fn_c_try_compile "$LINENO" |
| 2629 |
+then : |
| 2630 |
ac_cv_prog_cc_g=yes |
| 2631 |
fi |
| 2632 |
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2633 |
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2634 |
fi |
| 2635 |
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2636 |
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2637 |
fi |
| 2638 |
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2639 |
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2640 |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 2641 |
fi |
| 2642 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 2643 |
-$as_echo "$ac_cv_prog_cc_g" >&6; } |
| 2644 |
-if test "$ac_test_CFLAGS" = set; then |
| 2645 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 2646 |
+printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
| 2647 |
+if test $ac_test_CFLAGS; then |
| 2648 |
CFLAGS=$ac_save_CFLAGS |
| 2649 |
elif test $ac_cv_prog_cc_g = yes; then |
| 2650 |
if test "$GCC" = yes; then |
| 2651 |
@@ -2857,94 +3211,144 @@ else |
| 2652 |
CFLAGS= |
| 2653 |
fi |
| 2654 |
fi |
| 2655 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 2656 |
-$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 2657 |
-if ${ac_cv_prog_cc_c89+:} false; then : |
| 2658 |
- $as_echo_n "(cached) " >&6 |
| 2659 |
-else |
| 2660 |
- ac_cv_prog_cc_c89=no |
| 2661 |
+ac_prog_cc_stdc=no |
| 2662 |
+if test x$ac_prog_cc_stdc = xno |
| 2663 |
+then : |
| 2664 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
| 2665 |
+printf %s "checking for $CC option to enable C11 features... " >&6; } |
| 2666 |
+if test ${ac_cv_prog_cc_c11+y} |
| 2667 |
+then : |
| 2668 |
+ printf %s "(cached) " >&6 |
| 2669 |
+else $as_nop |
| 2670 |
+ ac_cv_prog_cc_c11=no |
| 2671 |
ac_save_CC=$CC |
| 2672 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2673 |
/* end confdefs.h. */ |
| 2674 |
-#include <stdarg.h> |
| 2675 |
-#include <stdio.h> |
| 2676 |
-struct stat; |
| 2677 |
-/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2678 |
-struct buf { int x; }; |
| 2679 |
-FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2680 |
-static char *e (p, i) |
| 2681 |
- char **p; |
| 2682 |
- int i; |
| 2683 |
-{ |
| 2684 |
- return p[i]; |
| 2685 |
-} |
| 2686 |
-static char *f (char * (*g) (char **, int), char **p, ...) |
| 2687 |
-{ |
| 2688 |
- char *s; |
| 2689 |
- va_list v; |
| 2690 |
- va_start (v,p); |
| 2691 |
- s = g (p, va_arg (v,int)); |
| 2692 |
- va_end (v); |
| 2693 |
- return s; |
| 2694 |
-} |
| 2695 |
- |
| 2696 |
-/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2697 |
- function prototypes and stuff, but not '\xHH' hex character constants. |
| 2698 |
- These don't provoke an error unfortunately, instead are silently treated |
| 2699 |
- as 'x'. The following induces an error, until -std is added to get |
| 2700 |
- proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2701 |
- array size at least. It's necessary to write '\x00'==0 to get something |
| 2702 |
- that's true only with -std. */ |
| 2703 |
-int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2704 |
+$ac_c_conftest_c11_program |
| 2705 |
+_ACEOF |
| 2706 |
+for ac_arg in '' -std=gnu11 |
| 2707 |
+do |
| 2708 |
+ CC="$ac_save_CC $ac_arg" |
| 2709 |
+ if ac_fn_c_try_compile "$LINENO" |
| 2710 |
+then : |
| 2711 |
+ ac_cv_prog_cc_c11=$ac_arg |
| 2712 |
+fi |
| 2713 |
+rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 2714 |
+ test "x$ac_cv_prog_cc_c11" != "xno" && break |
| 2715 |
+done |
| 2716 |
+rm -f conftest.$ac_ext |
| 2717 |
+CC=$ac_save_CC |
| 2718 |
+fi |
| 2719 |
|
| 2720 |
-/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2721 |
- inside strings and character constants. */ |
| 2722 |
-#define FOO(x) 'x' |
| 2723 |
-int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2724 |
+if test "x$ac_cv_prog_cc_c11" = xno |
| 2725 |
+then : |
| 2726 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 2727 |
+printf "%s\n" "unsupported" >&6; } |
| 2728 |
+else $as_nop |
| 2729 |
+ if test "x$ac_cv_prog_cc_c11" = x |
| 2730 |
+then : |
| 2731 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 2732 |
+printf "%s\n" "none needed" >&6; } |
| 2733 |
+else $as_nop |
| 2734 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
| 2735 |
+printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
| 2736 |
+ CC="$CC $ac_cv_prog_cc_c11" |
| 2737 |
+fi |
| 2738 |
+ ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
| 2739 |
+ ac_prog_cc_stdc=c11 |
| 2740 |
+fi |
| 2741 |
+fi |
| 2742 |
+if test x$ac_prog_cc_stdc = xno |
| 2743 |
+then : |
| 2744 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
| 2745 |
+printf %s "checking for $CC option to enable C99 features... " >&6; } |
| 2746 |
+if test ${ac_cv_prog_cc_c99+y} |
| 2747 |
+then : |
| 2748 |
+ printf %s "(cached) " >&6 |
| 2749 |
+else $as_nop |
| 2750 |
+ ac_cv_prog_cc_c99=no |
| 2751 |
+ac_save_CC=$CC |
| 2752 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2753 |
+/* end confdefs.h. */ |
| 2754 |
+$ac_c_conftest_c99_program |
| 2755 |
+_ACEOF |
| 2756 |
+for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
| 2757 |
+do |
| 2758 |
+ CC="$ac_save_CC $ac_arg" |
| 2759 |
+ if ac_fn_c_try_compile "$LINENO" |
| 2760 |
+then : |
| 2761 |
+ ac_cv_prog_cc_c99=$ac_arg |
| 2762 |
+fi |
| 2763 |
+rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 2764 |
+ test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 2765 |
+done |
| 2766 |
+rm -f conftest.$ac_ext |
| 2767 |
+CC=$ac_save_CC |
| 2768 |
+fi |
| 2769 |
|
| 2770 |
-int test (int i, double x); |
| 2771 |
-struct s1 {int (*f) (int a);}; |
| 2772 |
-struct s2 {int (*f) (double a);}; |
| 2773 |
-int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2774 |
-int argc; |
| 2775 |
-char **argv; |
| 2776 |
-int |
| 2777 |
-main () |
| 2778 |
-{ |
| 2779 |
-return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2780 |
- ; |
| 2781 |
- return 0; |
| 2782 |
-} |
| 2783 |
+if test "x$ac_cv_prog_cc_c99" = xno |
| 2784 |
+then : |
| 2785 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 2786 |
+printf "%s\n" "unsupported" >&6; } |
| 2787 |
+else $as_nop |
| 2788 |
+ if test "x$ac_cv_prog_cc_c99" = x |
| 2789 |
+then : |
| 2790 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 2791 |
+printf "%s\n" "none needed" >&6; } |
| 2792 |
+else $as_nop |
| 2793 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 2794 |
+printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
| 2795 |
+ CC="$CC $ac_cv_prog_cc_c99" |
| 2796 |
+fi |
| 2797 |
+ ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 2798 |
+ ac_prog_cc_stdc=c99 |
| 2799 |
+fi |
| 2800 |
+fi |
| 2801 |
+if test x$ac_prog_cc_stdc = xno |
| 2802 |
+then : |
| 2803 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
| 2804 |
+printf %s "checking for $CC option to enable C89 features... " >&6; } |
| 2805 |
+if test ${ac_cv_prog_cc_c89+y} |
| 2806 |
+then : |
| 2807 |
+ printf %s "(cached) " >&6 |
| 2808 |
+else $as_nop |
| 2809 |
+ ac_cv_prog_cc_c89=no |
| 2810 |
+ac_save_CC=$CC |
| 2811 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2812 |
+/* end confdefs.h. */ |
| 2813 |
+$ac_c_conftest_c89_program |
| 2814 |
_ACEOF |
| 2815 |
-for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2816 |
- -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2817 |
+for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2818 |
do |
| 2819 |
CC="$ac_save_CC $ac_arg" |
| 2820 |
- if ac_fn_c_try_compile "$LINENO"; then : |
| 2821 |
+ if ac_fn_c_try_compile "$LINENO" |
| 2822 |
+then : |
| 2823 |
ac_cv_prog_cc_c89=$ac_arg |
| 2824 |
fi |
| 2825 |
-rm -f core conftest.err conftest.$ac_objext |
| 2826 |
+rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 2827 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 2828 |
done |
| 2829 |
rm -f conftest.$ac_ext |
| 2830 |
CC=$ac_save_CC |
| 2831 |
- |
| 2832 |
fi |
| 2833 |
-# AC_CACHE_VAL |
| 2834 |
-case "x$ac_cv_prog_cc_c89" in |
| 2835 |
- x) |
| 2836 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 2837 |
-$as_echo "none needed" >&6; } ;; |
| 2838 |
- xno) |
| 2839 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 2840 |
-$as_echo "unsupported" >&6; } ;; |
| 2841 |
- *) |
| 2842 |
- CC="$CC $ac_cv_prog_cc_c89" |
| 2843 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 2844 |
-$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 2845 |
-esac |
| 2846 |
-if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 2847 |
|
| 2848 |
+if test "x$ac_cv_prog_cc_c89" = xno |
| 2849 |
+then : |
| 2850 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 2851 |
+printf "%s\n" "unsupported" >&6; } |
| 2852 |
+else $as_nop |
| 2853 |
+ if test "x$ac_cv_prog_cc_c89" = x |
| 2854 |
+then : |
| 2855 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 2856 |
+printf "%s\n" "none needed" >&6; } |
| 2857 |
+else $as_nop |
| 2858 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 2859 |
+printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
| 2860 |
+ CC="$CC $ac_cv_prog_cc_c89" |
| 2861 |
+fi |
| 2862 |
+ ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 2863 |
+ ac_prog_cc_stdc=c89 |
| 2864 |
+fi |
| 2865 |
fi |
| 2866 |
|
| 2867 |
ac_ext=c |
| 2868 |
@@ -2962,11 +3366,12 @@ if test -z "$MPI_ROOT" ; then |
| 2869 |
#Use pkg-config to find openmpi |
| 2870 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
| 2871 |
set dummy pkg-config; ac_word=$2 |
| 2872 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2873 |
-$as_echo_n "checking for $ac_word... " >&6; } |
| 2874 |
-if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 2875 |
- $as_echo_n "(cached) " >&6 |
| 2876 |
-else |
| 2877 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2878 |
+printf %s "checking for $ac_word... " >&6; } |
| 2879 |
+if test ${ac_cv_path_PKG_CONFIG+y} |
| 2880 |
+then : |
| 2881 |
+ printf %s "(cached) " >&6 |
| 2882 |
+else $as_nop |
| 2883 |
case $PKG_CONFIG in |
| 2884 |
[\\/]* | ?:[\\/]*) |
| 2885 |
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 2886 |
@@ -2976,11 +3381,15 @@ else |
| 2887 |
for as_dir in $PATH |
| 2888 |
do |
| 2889 |
IFS=$as_save_IFS |
| 2890 |
- test -z "$as_dir" && as_dir=. |
| 2891 |
+ case $as_dir in #((( |
| 2892 |
+ '') as_dir=./ ;; |
| 2893 |
+ */) ;; |
| 2894 |
+ *) as_dir=$as_dir/ ;; |
| 2895 |
+ esac |
| 2896 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2897 |
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2898 |
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 2899 |
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2900 |
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2901 |
+ ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
| 2902 |
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2903 |
break 2 |
| 2904 |
fi |
| 2905 |
done |
| 2906 |
@@ -2992,29 +3401,29 @@ esac |
| 2907 |
fi |
| 2908 |
PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 2909 |
if test -n "$PKG_CONFIG"; then |
| 2910 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 2911 |
-$as_echo "$PKG_CONFIG" >&6; } |
| 2912 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 2913 |
+printf "%s\n" "$PKG_CONFIG" >&6; } |
| 2914 |
else |
| 2915 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2916 |
-$as_echo "no" >&6; } |
| 2917 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2918 |
+printf "%s\n" "no" >&6; } |
| 2919 |
fi |
| 2920 |
|
| 2921 |
|
| 2922 |
|
| 2923 |
if test -n "${PKG_CONFIG}"; then |
| 2924 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config knows about OpenMPI" >&5 |
| 2925 |
-$as_echo_n "checking if pkg-config knows about OpenMPI... " >&6; } |
| 2926 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pkg-config knows about OpenMPI" >&5 |
| 2927 |
+printf %s "checking if pkg-config knows about OpenMPI... " >&6; } |
| 2928 |
if "${PKG_CONFIG}" --exists ompi; then |
| 2929 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2930 |
-$as_echo "yes" >&6; } |
| 2931 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2932 |
+printf "%s\n" "yes" >&6; } |
| 2933 |
MPITYPE="OPENMPI" |
| 2934 |
MPI_ROOT="NONEED" |
| 2935 |
|
| 2936 |
OMPI_INCLUDE_PATH=`"${PKG_CONFIG}" --cflags ompi` |
| 2937 |
OMPI_LIBS=`"${PKG_CONFIG}" --libs ompi` |
| 2938 |
else |
| 2939 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2940 |
-$as_echo "no" >&6; } |
| 2941 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2942 |
+printf "%s\n" "no" >&6; } |
| 2943 |
fi |
| 2944 |
fi |
| 2945 |
fi |
| 2946 |
@@ -3127,411 +3536,43 @@ if test "$MPI_ROOT" != "NONEED"; then |
| 2947 |
fi |
| 2948 |
else |
| 2949 |
|
| 2950 |
-ac_ext=c |
| 2951 |
-ac_cpp='$CPP $CPPFLAGS' |
| 2952 |
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2953 |
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2954 |
-ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2955 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 2956 |
-$as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 2957 |
-# On Suns, sometimes $CPP names a directory. |
| 2958 |
-if test -n "$CPP" && test -d "$CPP"; then |
| 2959 |
- CPP= |
| 2960 |
-fi |
| 2961 |
-if test -z "$CPP"; then |
| 2962 |
- if ${ac_cv_prog_CPP+:} false; then : |
| 2963 |
- $as_echo_n "(cached) " >&6 |
| 2964 |
-else |
| 2965 |
- # Double quotes because CPP needs to be expanded |
| 2966 |
- for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2967 |
- do |
| 2968 |
- ac_preproc_ok=false |
| 2969 |
-for ac_c_preproc_warn_flag in '' yes |
| 2970 |
+ac_header= ac_cache= |
| 2971 |
+for ac_item in $ac_header_c_list |
| 2972 |
do |
| 2973 |
- # Use a header file that comes with gcc, so configuring glibc |
| 2974 |
- # with a fresh cross-compiler works. |
| 2975 |
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2976 |
- # <limits.h> exists even on freestanding compilers. |
| 2977 |
- # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2978 |
- # not just through cpp. "Syntax error" is here to catch this case. |
| 2979 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2980 |
-/* end confdefs.h. */ |
| 2981 |
-#ifdef __STDC__ |
| 2982 |
-# include <limits.h> |
| 2983 |
-#else |
| 2984 |
-# include <assert.h> |
| 2985 |
-#endif |
| 2986 |
- Syntax error |
| 2987 |
-_ACEOF |
| 2988 |
-if ac_fn_c_try_cpp "$LINENO"; then : |
| 2989 |
- |
| 2990 |
-else |
| 2991 |
- # Broken: fails on valid input. |
| 2992 |
-continue |
| 2993 |
-fi |
| 2994 |
-rm -f conftest.err conftest.i conftest.$ac_ext |
| 2995 |
- |
| 2996 |
- # OK, works on sane cases. Now check whether nonexistent headers |
| 2997 |
- # can be detected and how. |
| 2998 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2999 |
-/* end confdefs.h. */ |
| 3000 |
-#include <ac_nonexistent.h> |
| 3001 |
-_ACEOF |
| 3002 |
-if ac_fn_c_try_cpp "$LINENO"; then : |
| 3003 |
- # Broken: success on invalid input. |
| 3004 |
-continue |
| 3005 |
-else |
| 3006 |
- # Passes both tests. |
| 3007 |
-ac_preproc_ok=: |
| 3008 |
-break |
| 3009 |
-fi |
| 3010 |
-rm -f conftest.err conftest.i conftest.$ac_ext |
| 3011 |
- |
| 3012 |
-done |
| 3013 |
-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3014 |
-rm -f conftest.i conftest.err conftest.$ac_ext |
| 3015 |
-if $ac_preproc_ok; then : |
| 3016 |
- break |
| 3017 |
-fi |
| 3018 |
- |
| 3019 |
- done |
| 3020 |
- ac_cv_prog_CPP=$CPP |
| 3021 |
- |
| 3022 |
-fi |
| 3023 |
- CPP=$ac_cv_prog_CPP |
| 3024 |
-else |
| 3025 |
- ac_cv_prog_CPP=$CPP |
| 3026 |
-fi |
| 3027 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 3028 |
-$as_echo "$CPP" >&6; } |
| 3029 |
-ac_preproc_ok=false |
| 3030 |
-for ac_c_preproc_warn_flag in '' yes |
| 3031 |
-do |
| 3032 |
- # Use a header file that comes with gcc, so configuring glibc |
| 3033 |
- # with a fresh cross-compiler works. |
| 3034 |
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3035 |
- # <limits.h> exists even on freestanding compilers. |
| 3036 |
- # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3037 |
- # not just through cpp. "Syntax error" is here to catch this case. |
| 3038 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3039 |
-/* end confdefs.h. */ |
| 3040 |
-#ifdef __STDC__ |
| 3041 |
-# include <limits.h> |
| 3042 |
-#else |
| 3043 |
-# include <assert.h> |
| 3044 |
-#endif |
| 3045 |
- Syntax error |
| 3046 |
-_ACEOF |
| 3047 |
-if ac_fn_c_try_cpp "$LINENO"; then : |
| 3048 |
- |
| 3049 |
-else |
| 3050 |
- # Broken: fails on valid input. |
| 3051 |
-continue |
| 3052 |
-fi |
| 3053 |
-rm -f conftest.err conftest.i conftest.$ac_ext |
| 3054 |
- |
| 3055 |
- # OK, works on sane cases. Now check whether nonexistent headers |
| 3056 |
- # can be detected and how. |
| 3057 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3058 |
-/* end confdefs.h. */ |
| 3059 |
-#include <ac_nonexistent.h> |
| 3060 |
-_ACEOF |
| 3061 |
-if ac_fn_c_try_cpp "$LINENO"; then : |
| 3062 |
- # Broken: success on invalid input. |
| 3063 |
-continue |
| 3064 |
-else |
| 3065 |
- # Passes both tests. |
| 3066 |
-ac_preproc_ok=: |
| 3067 |
-break |
| 3068 |
-fi |
| 3069 |
-rm -f conftest.err conftest.i conftest.$ac_ext |
| 3070 |
- |
| 3071 |
-done |
| 3072 |
-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3073 |
-rm -f conftest.i conftest.err conftest.$ac_ext |
| 3074 |
-if $ac_preproc_ok; then : |
| 3075 |
- |
| 3076 |
-else |
| 3077 |
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3078 |
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3079 |
-as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 3080 |
-See \`config.log' for more details" "$LINENO" 5; } |
| 3081 |
-fi |
| 3082 |
- |
| 3083 |
-ac_ext=c |
| 3084 |
-ac_cpp='$CPP $CPPFLAGS' |
| 3085 |
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3086 |
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3087 |
-ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3088 |
- |
| 3089 |
- |
| 3090 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 3091 |
-$as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 3092 |
-if ${ac_cv_path_GREP+:} false; then : |
| 3093 |
- $as_echo_n "(cached) " >&6 |
| 3094 |
-else |
| 3095 |
- if test -z "$GREP"; then |
| 3096 |
- ac_path_GREP_found=false |
| 3097 |
- # Loop through the user's path and test for each of PROGNAME-LIST |
| 3098 |
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3099 |
-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3100 |
-do |
| 3101 |
- IFS=$as_save_IFS |
| 3102 |
- test -z "$as_dir" && as_dir=. |
| 3103 |
- for ac_prog in grep ggrep; do |
| 3104 |
- for ac_exec_ext in '' $ac_executable_extensions; do |
| 3105 |
- ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3106 |
- as_fn_executable_p "$ac_path_GREP" || continue |
| 3107 |
-# Check for GNU ac_path_GREP and select it if it is found. |
| 3108 |
- # Check for GNU $ac_path_GREP |
| 3109 |
-case `"$ac_path_GREP" --version 2>&1` in |
| 3110 |
-*GNU*) |
| 3111 |
- ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3112 |
-*) |
| 3113 |
- ac_count=0 |
| 3114 |
- $as_echo_n 0123456789 >"conftest.in" |
| 3115 |
- while : |
| 3116 |
- do |
| 3117 |
- cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3118 |
- mv "conftest.tmp" "conftest.in" |
| 3119 |
- cp "conftest.in" "conftest.nl" |
| 3120 |
- $as_echo 'GREP' >> "conftest.nl" |
| 3121 |
- "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3122 |
- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3123 |
- as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3124 |
- if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3125 |
- # Best one so far, save it but keep looking for a better one |
| 3126 |
- ac_cv_path_GREP="$ac_path_GREP" |
| 3127 |
- ac_path_GREP_max=$ac_count |
| 3128 |
+ if test $ac_cache; then |
| 3129 |
+ ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
| 3130 |
+ if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
| 3131 |
+ printf "%s\n" "#define $ac_item 1" >> confdefs.h |
| 3132 |
fi |
| 3133 |
- # 10*(2^10) chars as input seems more than enough |
| 3134 |
- test $ac_count -gt 10 && break |
| 3135 |
- done |
| 3136 |
- rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3137 |
-esac |
| 3138 |
- |
| 3139 |
- $ac_path_GREP_found && break 3 |
| 3140 |
- done |
| 3141 |
- done |
| 3142 |
- done |
| 3143 |
-IFS=$as_save_IFS |
| 3144 |
- if test -z "$ac_cv_path_GREP"; then |
| 3145 |
- as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3146 |
- fi |
| 3147 |
-else |
| 3148 |
- ac_cv_path_GREP=$GREP |
| 3149 |
-fi |
| 3150 |
- |
| 3151 |
-fi |
| 3152 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 3153 |
-$as_echo "$ac_cv_path_GREP" >&6; } |
| 3154 |
- GREP="$ac_cv_path_GREP" |
| 3155 |
- |
| 3156 |
- |
| 3157 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 3158 |
-$as_echo_n "checking for egrep... " >&6; } |
| 3159 |
-if ${ac_cv_path_EGREP+:} false; then : |
| 3160 |
- $as_echo_n "(cached) " >&6 |
| 3161 |
-else |
| 3162 |
- if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3163 |
- then ac_cv_path_EGREP="$GREP -E" |
| 3164 |
- else |
| 3165 |
- if test -z "$EGREP"; then |
| 3166 |
- ac_path_EGREP_found=false |
| 3167 |
- # Loop through the user's path and test for each of PROGNAME-LIST |
| 3168 |
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3169 |
-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3170 |
-do |
| 3171 |
- IFS=$as_save_IFS |
| 3172 |
- test -z "$as_dir" && as_dir=. |
| 3173 |
- for ac_prog in egrep; do |
| 3174 |
- for ac_exec_ext in '' $ac_executable_extensions; do |
| 3175 |
- ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3176 |
- as_fn_executable_p "$ac_path_EGREP" || continue |
| 3177 |
-# Check for GNU ac_path_EGREP and select it if it is found. |
| 3178 |
- # Check for GNU $ac_path_EGREP |
| 3179 |
-case `"$ac_path_EGREP" --version 2>&1` in |
| 3180 |
-*GNU*) |
| 3181 |
- ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3182 |
-*) |
| 3183 |
- ac_count=0 |
| 3184 |
- $as_echo_n 0123456789 >"conftest.in" |
| 3185 |
- while : |
| 3186 |
- do |
| 3187 |
- cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3188 |
- mv "conftest.tmp" "conftest.in" |
| 3189 |
- cp "conftest.in" "conftest.nl" |
| 3190 |
- $as_echo 'EGREP' >> "conftest.nl" |
| 3191 |
- "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3192 |
- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3193 |
- as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3194 |
- if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3195 |
- # Best one so far, save it but keep looking for a better one |
| 3196 |
- ac_cv_path_EGREP="$ac_path_EGREP" |
| 3197 |
- ac_path_EGREP_max=$ac_count |
| 3198 |
- fi |
| 3199 |
- # 10*(2^10) chars as input seems more than enough |
| 3200 |
- test $ac_count -gt 10 && break |
| 3201 |
- done |
| 3202 |
- rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3203 |
-esac |
| 3204 |
- |
| 3205 |
- $ac_path_EGREP_found && break 3 |
| 3206 |
- done |
| 3207 |
- done |
| 3208 |
- done |
| 3209 |
-IFS=$as_save_IFS |
| 3210 |
- if test -z "$ac_cv_path_EGREP"; then |
| 3211 |
- as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3212 |
+ ac_header= ac_cache= |
| 3213 |
+ elif test $ac_header; then |
| 3214 |
+ ac_cache=$ac_item |
| 3215 |
+ else |
| 3216 |
+ ac_header=$ac_item |
| 3217 |
fi |
| 3218 |
-else |
| 3219 |
- ac_cv_path_EGREP=$EGREP |
| 3220 |
-fi |
| 3221 |
- |
| 3222 |
- fi |
| 3223 |
-fi |
| 3224 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 3225 |
-$as_echo "$ac_cv_path_EGREP" >&6; } |
| 3226 |
- EGREP="$ac_cv_path_EGREP" |
| 3227 |
- |
| 3228 |
- |
| 3229 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 3230 |
-$as_echo_n "checking for ANSI C header files... " >&6; } |
| 3231 |
-if ${ac_cv_header_stdc+:} false; then : |
| 3232 |
- $as_echo_n "(cached) " >&6 |
| 3233 |
-else |
| 3234 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3235 |
-/* end confdefs.h. */ |
| 3236 |
-#include <stdlib.h> |
| 3237 |
-#include <stdarg.h> |
| 3238 |
-#include <string.h> |
| 3239 |
-#include <float.h> |
| 3240 |
- |
| 3241 |
-int |
| 3242 |
-main () |
| 3243 |
-{ |
| 3244 |
- |
| 3245 |
- ; |
| 3246 |
- return 0; |
| 3247 |
-} |
| 3248 |
-_ACEOF |
| 3249 |
-if ac_fn_c_try_compile "$LINENO"; then : |
| 3250 |
- ac_cv_header_stdc=yes |
| 3251 |
-else |
| 3252 |
- ac_cv_header_stdc=no |
| 3253 |
-fi |
| 3254 |
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3255 |
- |
| 3256 |
-if test $ac_cv_header_stdc = yes; then |
| 3257 |
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3258 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3259 |
-/* end confdefs.h. */ |
| 3260 |
-#include <string.h> |
| 3261 |
- |
| 3262 |
-_ACEOF |
| 3263 |
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3264 |
- $EGREP "memchr" >/dev/null 2>&1; then : |
| 3265 |
+done |
| 3266 |
|
| 3267 |
-else |
| 3268 |
- ac_cv_header_stdc=no |
| 3269 |
-fi |
| 3270 |
-rm -f conftest* |
| 3271 |
|
| 3272 |
-fi |
| 3273 |
|
| 3274 |
-if test $ac_cv_header_stdc = yes; then |
| 3275 |
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3276 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3277 |
-/* end confdefs.h. */ |
| 3278 |
-#include <stdlib.h> |
| 3279 |
- |
| 3280 |
-_ACEOF |
| 3281 |
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3282 |
- $EGREP "free" >/dev/null 2>&1; then : |
| 3283 |
- |
| 3284 |
-else |
| 3285 |
- ac_cv_header_stdc=no |
| 3286 |
-fi |
| 3287 |
-rm -f conftest* |
| 3288 |
|
| 3289 |
-fi |
| 3290 |
- |
| 3291 |
-if test $ac_cv_header_stdc = yes; then |
| 3292 |
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3293 |
- if test "$cross_compiling" = yes; then : |
| 3294 |
- : |
| 3295 |
-else |
| 3296 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3297 |
-/* end confdefs.h. */ |
| 3298 |
-#include <ctype.h> |
| 3299 |
-#include <stdlib.h> |
| 3300 |
-#if ((' ' & 0x0FF) == 0x020) |
| 3301 |
-# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3302 |
-# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3303 |
-#else |
| 3304 |
-# define ISLOWER(c) \ |
| 3305 |
- (('a' <= (c) && (c) <= 'i') \ |
| 3306 |
- || ('j' <= (c) && (c) <= 'r') \ |
| 3307 |
- || ('s' <= (c) && (c) <= 'z')) |
| 3308 |
-# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3309 |
-#endif |
| 3310 |
- |
| 3311 |
-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3312 |
-int |
| 3313 |
-main () |
| 3314 |
-{ |
| 3315 |
- int i; |
| 3316 |
- for (i = 0; i < 256; i++) |
| 3317 |
- if (XOR (islower (i), ISLOWER (i)) |
| 3318 |
- || toupper (i) != TOUPPER (i)) |
| 3319 |
- return 2; |
| 3320 |
- return 0; |
| 3321 |
-} |
| 3322 |
-_ACEOF |
| 3323 |
-if ac_fn_c_try_run "$LINENO"; then : |
| 3324 |
|
| 3325 |
-else |
| 3326 |
- ac_cv_header_stdc=no |
| 3327 |
-fi |
| 3328 |
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 3329 |
- conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3330 |
-fi |
| 3331 |
|
| 3332 |
-fi |
| 3333 |
-fi |
| 3334 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 3335 |
-$as_echo "$ac_cv_header_stdc" >&6; } |
| 3336 |
-if test $ac_cv_header_stdc = yes; then |
| 3337 |
|
| 3338 |
-$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 3339 |
|
| 3340 |
-fi |
| 3341 |
+if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
| 3342 |
+then : |
| 3343 |
|
| 3344 |
-# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3345 |
-for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3346 |
- inttypes.h stdint.h unistd.h |
| 3347 |
-do : |
| 3348 |
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3349 |
-ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 3350 |
-" |
| 3351 |
-if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 3352 |
- cat >>confdefs.h <<_ACEOF |
| 3353 |
-#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3354 |
-_ACEOF |
| 3355 |
+printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
| 3356 |
|
| 3357 |
fi |
| 3358 |
+ac_fn_c_check_header_compile "$LINENO" "mpi.h" "ac_cv_header_mpi_h" "$ac_includes_default" |
| 3359 |
+if test "x$ac_cv_header_mpi_h" = xyes |
| 3360 |
+then : |
| 3361 |
|
| 3362 |
-done |
| 3363 |
- |
| 3364 |
- |
| 3365 |
-ac_fn_c_check_header_mongrel "$LINENO" "mpi.h" "ac_cv_header_mpi_h" "$ac_includes_default" |
| 3366 |
-if test "x$ac_cv_header_mpi_h" = xyes; then : |
| 3367 |
- |
| 3368 |
-else |
| 3369 |
+else $as_nop |
| 3370 |
as_fn_error $? "\"Cannot find mpi.h header file\"" "$LINENO" 5 |
| 3371 |
fi |
| 3372 |
|
| 3373 |
- |
| 3374 |
fi |
| 3375 |
|
| 3376 |
echo "Trying to find libmpi.so or libmpich.a ..." |
| 3377 |
@@ -3561,73 +3602,150 @@ fi |
| 3378 |
elif test -f ${MPI_ROOT}/lib/libmpich.so; then |
| 3379 |
echo "Found libmpich in ${MPI_ROOT}/lib" |
| 3380 |
MPI_LIBPATH="${MPI_ROOT}/lib" |
| 3381 |
- ac_fn_c_check_decl "$LINENO" "MPICH2" "ac_cv_have_decl_MPICH2" "#include <mpi.h> |
| 3382 |
-" |
| 3383 |
-if test "x$ac_cv_have_decl_MPICH2" = xyes; then : |
| 3384 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 |
| 3385 |
+printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } |
| 3386 |
+if test ${ac_cv_c_undeclared_builtin_options+y} |
| 3387 |
+then : |
| 3388 |
+ printf %s "(cached) " >&6 |
| 3389 |
+else $as_nop |
| 3390 |
+ ac_save_CFLAGS=$CFLAGS |
| 3391 |
+ ac_cv_c_undeclared_builtin_options='cannot detect' |
| 3392 |
+ for ac_arg in '' -fno-builtin; do |
| 3393 |
+ CFLAGS="$ac_save_CFLAGS $ac_arg" |
| 3394 |
+ # This test program should *not* compile successfully. |
| 3395 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3396 |
+/* end confdefs.h. */ |
| 3397 |
+ |
| 3398 |
+int |
| 3399 |
+main (void) |
| 3400 |
+{ |
| 3401 |
+(void) strchr; |
| 3402 |
+ ; |
| 3403 |
+ return 0; |
| 3404 |
+} |
| 3405 |
+_ACEOF |
| 3406 |
+if ac_fn_c_try_compile "$LINENO" |
| 3407 |
+then : |
| 3408 |
+ |
| 3409 |
+else $as_nop |
| 3410 |
+ # This test program should compile successfully. |
| 3411 |
+ # No library function is consistently available on |
| 3412 |
+ # freestanding implementations, so test against a dummy |
| 3413 |
+ # declaration. Include always-available headers on the |
| 3414 |
+ # off chance that they somehow elicit warnings. |
| 3415 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3416 |
+/* end confdefs.h. */ |
| 3417 |
+#include <float.h> |
| 3418 |
+#include <limits.h> |
| 3419 |
+#include <stdarg.h> |
| 3420 |
+#include <stddef.h> |
| 3421 |
+extern void ac_decl (int, char *); |
| 3422 |
+ |
| 3423 |
+int |
| 3424 |
+main (void) |
| 3425 |
+{ |
| 3426 |
+(void) ac_decl (0, (char *) 0); |
| 3427 |
+ (void) ac_decl; |
| 3428 |
+ |
| 3429 |
+ ; |
| 3430 |
+ return 0; |
| 3431 |
+} |
| 3432 |
+_ACEOF |
| 3433 |
+if ac_fn_c_try_compile "$LINENO" |
| 3434 |
+then : |
| 3435 |
+ if test x"$ac_arg" = x |
| 3436 |
+then : |
| 3437 |
+ ac_cv_c_undeclared_builtin_options='none needed' |
| 3438 |
+else $as_nop |
| 3439 |
+ ac_cv_c_undeclared_builtin_options=$ac_arg |
| 3440 |
+fi |
| 3441 |
+ break |
| 3442 |
+fi |
| 3443 |
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3444 |
+fi |
| 3445 |
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3446 |
+ done |
| 3447 |
+ CFLAGS=$ac_save_CFLAGS |
| 3448 |
+ |
| 3449 |
+fi |
| 3450 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 |
| 3451 |
+printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } |
| 3452 |
+ case $ac_cv_c_undeclared_builtin_options in #( |
| 3453 |
+ 'cannot detect') : |
| 3454 |
+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3455 |
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3456 |
+as_fn_error $? "cannot make $CC report undeclared builtins |
| 3457 |
+See \`config.log' for more details" "$LINENO" 5; } ;; #( |
| 3458 |
+ 'none needed') : |
| 3459 |
+ ac_c_undeclared_builtin_options='' ;; #( |
| 3460 |
+ *) : |
| 3461 |
+ ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; |
| 3462 |
+esac |
| 3463 |
+ |
| 3464 |
+ac_fn_check_decl "$LINENO" "MPICH2" "ac_cv_have_decl_MPICH2" "#include <mpi.h> |
| 3465 |
+" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 3466 |
+if test "x$ac_cv_have_decl_MPICH2" = xyes |
| 3467 |
+then : |
| 3468 |
ac_have_decl=1 |
| 3469 |
-else |
| 3470 |
+else $as_nop |
| 3471 |
ac_have_decl=0 |
| 3472 |
fi |
| 3473 |
- |
| 3474 |
-cat >>confdefs.h <<_ACEOF |
| 3475 |
-#define HAVE_DECL_MPICH2 $ac_have_decl |
| 3476 |
-_ACEOF |
| 3477 |
-if test $ac_have_decl = 1; then : |
| 3478 |
+printf "%s\n" "#define HAVE_DECL_MPICH2 $ac_have_decl" >>confdefs.h |
| 3479 |
+if test $ac_have_decl = 1 |
| 3480 |
+then : |
| 3481 |
MPI_DEFS="-DMPI2" |
| 3482 |
fi |
| 3483 |
-ac_fn_c_check_decl "$LINENO" "MPICH2" "ac_cv_have_decl_MPICH2" "#include <mpi.h> |
| 3484 |
-" |
| 3485 |
-if test "x$ac_cv_have_decl_MPICH2" = xyes; then : |
| 3486 |
+ac_fn_check_decl "$LINENO" "MPICH2" "ac_cv_have_decl_MPICH2" "#include <mpi.h> |
| 3487 |
+" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 3488 |
+if test "x$ac_cv_have_decl_MPICH2" = xyes |
| 3489 |
+then : |
| 3490 |
ac_have_decl=1 |
| 3491 |
-else |
| 3492 |
+else $as_nop |
| 3493 |
ac_have_decl=0 |
| 3494 |
fi |
| 3495 |
- |
| 3496 |
-cat >>confdefs.h <<_ACEOF |
| 3497 |
-#define HAVE_DECL_MPICH2 $ac_have_decl |
| 3498 |
-_ACEOF |
| 3499 |
-if test $ac_have_decl = 1; then : |
| 3500 |
+printf "%s\n" "#define HAVE_DECL_MPICH2 $ac_have_decl" >>confdefs.h |
| 3501 |
+if test $ac_have_decl = 1 |
| 3502 |
+then : |
| 3503 |
MPI_DEFS="-DMPI2" |
| 3504 |
fi |
| 3505 |
|
| 3506 |
elif test -f ${MPI_ROOT}/lib64/libmpich.a; then |
| 3507 |
echo "Found libmpich in ${MPI_ROOT}/lib64" |
| 3508 |
MPI_LIBPATH="${MPI_ROOT}/lib64" |
| 3509 |
- ac_fn_c_check_decl "$LINENO" "MPICH2" "ac_cv_have_decl_MPICH2" "#include <mpi.h> |
| 3510 |
-" |
| 3511 |
-if test "x$ac_cv_have_decl_MPICH2" = xyes; then : |
| 3512 |
+ ac_fn_check_decl "$LINENO" "MPICH2" "ac_cv_have_decl_MPICH2" "#include <mpi.h> |
| 3513 |
+" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 3514 |
+if test "x$ac_cv_have_decl_MPICH2" = xyes |
| 3515 |
+then : |
| 3516 |
ac_have_decl=1 |
| 3517 |
-else |
| 3518 |
+else $as_nop |
| 3519 |
ac_have_decl=0 |
| 3520 |
fi |
| 3521 |
- |
| 3522 |
-cat >>confdefs.h <<_ACEOF |
| 3523 |
-#define HAVE_DECL_MPICH2 $ac_have_decl |
| 3524 |
-_ACEOF |
| 3525 |
-if test $ac_have_decl = 1; then : |
| 3526 |
+printf "%s\n" "#define HAVE_DECL_MPICH2 $ac_have_decl" >>confdefs.h |
| 3527 |
+if test $ac_have_decl = 1 |
| 3528 |
+then : |
| 3529 |
MPI_DEFS="-DMPI2" |
| 3530 |
fi |
| 3531 |
-ac_fn_c_check_decl "$LINENO" "MPICH2" "ac_cv_have_decl_MPICH2" "#include <mpi.h> |
| 3532 |
-" |
| 3533 |
-if test "x$ac_cv_have_decl_MPICH2" = xyes; then : |
| 3534 |
+ac_fn_check_decl "$LINENO" "MPICH2" "ac_cv_have_decl_MPICH2" "#include <mpi.h> |
| 3535 |
+" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 3536 |
+if test "x$ac_cv_have_decl_MPICH2" = xyes |
| 3537 |
+then : |
| 3538 |
ac_have_decl=1 |
| 3539 |
-else |
| 3540 |
+else $as_nop |
| 3541 |
ac_have_decl=0 |
| 3542 |
fi |
| 3543 |
- |
| 3544 |
-cat >>confdefs.h <<_ACEOF |
| 3545 |
-#define HAVE_DECL_MPICH2 $ac_have_decl |
| 3546 |
-_ACEOF |
| 3547 |
-if test $ac_have_decl = 1; then : |
| 3548 |
+printf "%s\n" "#define HAVE_DECL_MPICH2 $ac_have_decl" >>confdefs.h |
| 3549 |
+if test $ac_have_decl = 1 |
| 3550 |
+then : |
| 3551 |
MPI_DEFS="-DMPI2" |
| 3552 |
fi |
| 3553 |
|
| 3554 |
else |
| 3555 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmpi" >&5 |
| 3556 |
-$as_echo_n "checking for main in -lmpi... " >&6; } |
| 3557 |
-if ${ac_cv_lib_mpi_main+:} false; then : |
| 3558 |
- $as_echo_n "(cached) " >&6 |
| 3559 |
-else |
| 3560 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmpi" >&5 |
| 3561 |
+printf %s "checking for main in -lmpi... " >&6; } |
| 3562 |
+if test ${ac_cv_lib_mpi_main+y} |
| 3563 |
+then : |
| 3564 |
+ printf %s "(cached) " >&6 |
| 3565 |
+else $as_nop |
| 3566 |
ac_check_lib_save_LIBS=$LIBS |
| 3567 |
LIBS="-lmpi $LIBS" |
| 3568 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3569 |
@@ -3635,27 +3753,29 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ |
| 3570 |
|
| 3571 |
|
| 3572 |
int |
| 3573 |
-main () |
| 3574 |
+main (void) |
| 3575 |
{ |
| 3576 |
return main (); |
| 3577 |
; |
| 3578 |
return 0; |
| 3579 |
} |
| 3580 |
_ACEOF |
| 3581 |
-if ac_fn_c_try_link "$LINENO"; then : |
| 3582 |
+if ac_fn_c_try_link "$LINENO" |
| 3583 |
+then : |
| 3584 |
ac_cv_lib_mpi_main=yes |
| 3585 |
-else |
| 3586 |
+else $as_nop |
| 3587 |
ac_cv_lib_mpi_main=no |
| 3588 |
fi |
| 3589 |
-rm -f core conftest.err conftest.$ac_objext \ |
| 3590 |
+rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 3591 |
conftest$ac_exeext conftest.$ac_ext |
| 3592 |
LIBS=$ac_check_lib_save_LIBS |
| 3593 |
fi |
| 3594 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_main" >&5 |
| 3595 |
-$as_echo "$ac_cv_lib_mpi_main" >&6; } |
| 3596 |
-if test "x$ac_cv_lib_mpi_main" = xyes; then : |
| 3597 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_main" >&5 |
| 3598 |
+printf "%s\n" "$ac_cv_lib_mpi_main" >&6; } |
| 3599 |
+if test "x$ac_cv_lib_mpi_main" = xyes |
| 3600 |
+then : |
| 3601 |
MPI_LIBPATH="${MPI_ROOT}/lib" |
| 3602 |
-else |
| 3603 |
+else $as_nop |
| 3604 |
echo "libmpi not found. exiting..." |
| 3605 |
exit 1 |
| 3606 |
|
| 3607 |
@@ -3667,11 +3787,12 @@ fi |
| 3608 |
if test "$MPITYPE" = "OPENMPI" ; then |
| 3609 |
# Extract the first word of "orted", so it can be a program name with args. |
| 3610 |
set dummy orted; ac_word=$2 |
| 3611 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3612 |
-$as_echo_n "checking for $ac_word... " >&6; } |
| 3613 |
-if ${ac_cv_prog_ORTED+:} false; then : |
| 3614 |
- $as_echo_n "(cached) " >&6 |
| 3615 |
-else |
| 3616 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3617 |
+printf %s "checking for $ac_word... " >&6; } |
| 3618 |
+if test ${ac_cv_prog_ORTED+y} |
| 3619 |
+then : |
| 3620 |
+ printf %s "(cached) " >&6 |
| 3621 |
+else $as_nop |
| 3622 |
if test -n "$ORTED"; then |
| 3623 |
ac_cv_prog_ORTED="$ORTED" # Let the user override the test. |
| 3624 |
else |
| 3625 |
@@ -3679,11 +3800,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3626 |
for as_dir in $PATH |
| 3627 |
do |
| 3628 |
IFS=$as_save_IFS |
| 3629 |
- test -z "$as_dir" && as_dir=. |
| 3630 |
+ case $as_dir in #((( |
| 3631 |
+ '') as_dir=./ ;; |
| 3632 |
+ */) ;; |
| 3633 |
+ *) as_dir=$as_dir/ ;; |
| 3634 |
+ esac |
| 3635 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3636 |
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3637 |
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3638 |
ac_cv_prog_ORTED="yes" |
| 3639 |
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3640 |
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3641 |
break 2 |
| 3642 |
fi |
| 3643 |
done |
| 3644 |
@@ -3695,16 +3820,61 @@ fi |
| 3645 |
fi |
| 3646 |
ORTED=$ac_cv_prog_ORTED |
| 3647 |
if test -n "$ORTED"; then |
| 3648 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORTED" >&5 |
| 3649 |
-$as_echo "$ORTED" >&6; } |
| 3650 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ORTED" >&5 |
| 3651 |
+printf "%s\n" "$ORTED" >&6; } |
| 3652 |
+else |
| 3653 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3654 |
+printf "%s\n" "no" >&6; } |
| 3655 |
+fi |
| 3656 |
+ |
| 3657 |
+ |
| 3658 |
+ # Extract the first word of "prted", so it can be a program name with args. |
| 3659 |
+set dummy prted; ac_word=$2 |
| 3660 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3661 |
+printf %s "checking for $ac_word... " >&6; } |
| 3662 |
+if test ${ac_cv_prog_PRTED+y} |
| 3663 |
+then : |
| 3664 |
+ printf %s "(cached) " >&6 |
| 3665 |
+else $as_nop |
| 3666 |
+ if test -n "$PRTED"; then |
| 3667 |
+ ac_cv_prog_PRTED="$PRTED" # Let the user override the test. |
| 3668 |
+else |
| 3669 |
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3670 |
+for as_dir in $PATH |
| 3671 |
+do |
| 3672 |
+ IFS=$as_save_IFS |
| 3673 |
+ case $as_dir in #((( |
| 3674 |
+ '') as_dir=./ ;; |
| 3675 |
+ */) ;; |
| 3676 |
+ *) as_dir=$as_dir/ ;; |
| 3677 |
+ esac |
| 3678 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
| 3679 |
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3680 |
+ ac_cv_prog_PRTED="yes" |
| 3681 |
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3682 |
+ break 2 |
| 3683 |
+ fi |
| 3684 |
+done |
| 3685 |
+ done |
| 3686 |
+IFS=$as_save_IFS |
| 3687 |
+ |
| 3688 |
+ test -z "$ac_cv_prog_PRTED" && ac_cv_prog_PRTED="no" |
| 3689 |
+fi |
| 3690 |
+fi |
| 3691 |
+PRTED=$ac_cv_prog_PRTED |
| 3692 |
+if test -n "$PRTED"; then |
| 3693 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PRTED" >&5 |
| 3694 |
+printf "%s\n" "$PRTED" >&6; } |
| 3695 |
else |
| 3696 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3697 |
-$as_echo "no" >&6; } |
| 3698 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3699 |
+printf "%s\n" "no" >&6; } |
| 3700 |
fi |
| 3701 |
|
| 3702 |
|
| 3703 |
if test "$ORTED" = no ; then |
| 3704 |
- as_fn_error $? "Cannot find orted. Rmpi needs orted to run." "$LINENO" 5 |
| 3705 |
+ if test "$PRTED" = no ; then |
| 3706 |
+ as_fn_error $? "Cannot find orted or prted. Rmpi needs orted or prted to run." "$LINENO" 5 |
| 3707 |
+ fi |
| 3708 |
fi |
| 3709 |
fi |
| 3710 |
|
| 3711 |
@@ -3720,11 +3890,12 @@ if test "$MPITYPE" = "LAM" ; then |
| 3712 |
echo "Found liblam in ${MPI_ROOT}/lib64/lam" |
| 3713 |
MPI_LIBPATH="${MPI_ROOT}/lib64/lam" |
| 3714 |
else |
| 3715 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -llam" >&5 |
| 3716 |
-$as_echo_n "checking for main in -llam... " >&6; } |
| 3717 |
-if ${ac_cv_lib_lam_main+:} false; then : |
| 3718 |
- $as_echo_n "(cached) " >&6 |
| 3719 |
-else |
| 3720 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -llam" >&5 |
| 3721 |
+printf %s "checking for main in -llam... " >&6; } |
| 3722 |
+if test ${ac_cv_lib_lam_main+y} |
| 3723 |
+then : |
| 3724 |
+ printf %s "(cached) " >&6 |
| 3725 |
+else $as_nop |
| 3726 |
ac_check_lib_save_LIBS=$LIBS |
| 3727 |
LIBS="-llam $LIBS" |
| 3728 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3729 |
@@ -3732,25 +3903,27 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ |
| 3730 |
|
| 3731 |
|
| 3732 |
int |
| 3733 |
-main () |
| 3734 |
+main (void) |
| 3735 |
{ |
| 3736 |
return main (); |
| 3737 |
; |
| 3738 |
return 0; |
| 3739 |
} |
| 3740 |
_ACEOF |
| 3741 |
-if ac_fn_c_try_link "$LINENO"; then : |
| 3742 |
+if ac_fn_c_try_link "$LINENO" |
| 3743 |
+then : |
| 3744 |
ac_cv_lib_lam_main=yes |
| 3745 |
-else |
| 3746 |
+else $as_nop |
| 3747 |
ac_cv_lib_lam_main=no |
| 3748 |
fi |
| 3749 |
-rm -f core conftest.err conftest.$ac_objext \ |
| 3750 |
+rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 3751 |
conftest$ac_exeext conftest.$ac_ext |
| 3752 |
LIBS=$ac_check_lib_save_LIBS |
| 3753 |
fi |
| 3754 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lam_main" >&5 |
| 3755 |
-$as_echo "$ac_cv_lib_lam_main" >&6; } |
| 3756 |
-if test "x$ac_cv_lib_lam_main" = xyes; then : |
| 3757 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lam_main" >&5 |
| 3758 |
+printf "%s\n" "$ac_cv_lib_lam_main" >&6; } |
| 3759 |
+if test "x$ac_cv_lib_lam_main" = xyes |
| 3760 |
+then : |
| 3761 |
|
| 3762 |
echo "liblam not found. Probably not LAM-MPI" |
| 3763 |
|
| 3764 |
@@ -3836,8 +4009,8 @@ _ACEOF |
| 3765 |
case $ac_val in #( |
| 3766 |
*${as_nl}*) |
| 3767 |
case $ac_var in #( |
| 3768 |
- *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 3769 |
-$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 3770 |
+ *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 3771 |
+printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 3772 |
esac |
| 3773 |
case $ac_var in #( |
| 3774 |
_ | IFS | as_nl) ;; #( |
| 3775 |
@@ -3867,15 +4040,15 @@ $as_echo "$as_me: WARNING: cache variabl |
| 3776 |
/^ac_cv_env_/b end |
| 3777 |
t clear |
| 3778 |
:clear |
| 3779 |
- s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 3780 |
+ s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
| 3781 |
t end |
| 3782 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 3783 |
:end' >>confcache |
| 3784 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 3785 |
if test -w "$cache_file"; then |
| 3786 |
if test "x$cache_file" != "x/dev/null"; then |
| 3787 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 3788 |
-$as_echo "$as_me: updating cache $cache_file" >&6;} |
| 3789 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 3790 |
+printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
| 3791 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 3792 |
cat confcache >"$cache_file" |
| 3793 |
else |
| 3794 |
@@ -3889,8 +4062,8 @@ $as_echo "$as_me: updating cache $cache_ |
| 3795 |
fi |
| 3796 |
fi |
| 3797 |
else |
| 3798 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 3799 |
-$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 3800 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 3801 |
+printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 3802 |
fi |
| 3803 |
fi |
| 3804 |
rm -f confcache |
| 3805 |
@@ -3943,7 +4116,7 @@ U= |
| 3806 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 3807 |
# 1. Remove the extension, and $U if already installed. |
| 3808 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 3809 |
- ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 3810 |
+ ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
| 3811 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 3812 |
# will be set to the directory where LIBOBJS objects are built. |
| 3813 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 3814 |
@@ -3959,8 +4132,8 @@ LTLIBOBJS=$ac_ltlibobjs |
| 3815 |
ac_write_fail=0 |
| 3816 |
ac_clean_files_save=$ac_clean_files |
| 3817 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 3818 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 3819 |
-$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 3820 |
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 3821 |
+printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
| 3822 |
as_write_fail=0 |
| 3823 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 3824 |
#! $SHELL |
| 3825 |
@@ -3983,14 +4156,16 @@ cat >>$CONFIG_STATUS <<\_ASEOF || as_wri |
| 3826 |
|
| 3827 |
# Be more Bourne compatible |
| 3828 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 3829 |
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 3830 |
+as_nop=: |
| 3831 |
+if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 3832 |
+then : |
| 3833 |
emulate sh |
| 3834 |
NULLCMD=: |
| 3835 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 3836 |
# is contrary to our usage. Disable this feature. |
| 3837 |
alias -g '${1+"$@"}'='"$@"' |
| 3838 |
setopt NO_GLOB_SUBST |
| 3839 |
-else |
| 3840 |
+else $as_nop |
| 3841 |
case `(set -o) 2>/dev/null` in #( |
| 3842 |
*posix*) : |
| 3843 |
set -o posix ;; #( |
| 3844 |
@@ -4000,46 +4175,46 @@ esac |
| 3845 |
fi |
| 3846 |
|
| 3847 |
|
| 3848 |
+ |
| 3849 |
+# Reset variables that may have inherited troublesome values from |
| 3850 |
+# the environment. |
| 3851 |
+ |
| 3852 |
+# IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 3853 |
+# (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 3854 |
+# side effect of setting IFS to empty, thus disabling word splitting.) |
| 3855 |
+# Quoting is to prevent editors from complaining about space-tab. |
| 3856 |
as_nl=' |
| 3857 |
' |
| 3858 |
export as_nl |
| 3859 |
-# Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 3860 |
-as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 3861 |
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 3862 |
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 3863 |
-# Prefer a ksh shell builtin over an external printf program on Solaris, |
| 3864 |
-# but without wasting forks for bash or zsh. |
| 3865 |
-if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 3866 |
- && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 3867 |
- as_echo='print -r --' |
| 3868 |
- as_echo_n='print -rn --' |
| 3869 |
-elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 3870 |
- as_echo='printf %s\n' |
| 3871 |
- as_echo_n='printf %s' |
| 3872 |
-else |
| 3873 |
- if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 3874 |
- as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 3875 |
- as_echo_n='/usr/ucb/echo -n' |
| 3876 |
- else |
| 3877 |
- as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 3878 |
- as_echo_n_body='eval |
| 3879 |
- arg=$1; |
| 3880 |
- case $arg in #( |
| 3881 |
- *"$as_nl"*) |
| 3882 |
- expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 3883 |
- arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 3884 |
- esac; |
| 3885 |
- expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 3886 |
- ' |
| 3887 |
- export as_echo_n_body |
| 3888 |
- as_echo_n='sh -c $as_echo_n_body as_echo' |
| 3889 |
- fi |
| 3890 |
- export as_echo_body |
| 3891 |
- as_echo='sh -c $as_echo_body as_echo' |
| 3892 |
-fi |
| 3893 |
+IFS=" "" $as_nl" |
| 3894 |
+ |
| 3895 |
+PS1='$ ' |
| 3896 |
+PS2='> ' |
| 3897 |
+PS4='+ ' |
| 3898 |
+ |
| 3899 |
+# Ensure predictable behavior from utilities with locale-dependent output. |
| 3900 |
+LC_ALL=C |
| 3901 |
+export LC_ALL |
| 3902 |
+LANGUAGE=C |
| 3903 |
+export LANGUAGE |
| 3904 |
+ |
| 3905 |
+# We cannot yet rely on "unset" to work, but we need these variables |
| 3906 |
+# to be unset--not just set to an empty or harmless value--now, to |
| 3907 |
+# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 3908 |
+# also avoids known problems related to "unset" and subshell syntax |
| 3909 |
+# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 3910 |
+for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 3911 |
+do eval test \${$as_var+y} \ |
| 3912 |
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 3913 |
+done |
| 3914 |
+ |
| 3915 |
+# Ensure that fds 0, 1, and 2 are open. |
| 3916 |
+if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 3917 |
+if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 3918 |
+if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 3919 |
|
| 3920 |
# The user is always right. |
| 3921 |
-if test "${PATH_SEPARATOR+set}" != set; then |
| 3922 |
+if ${PATH_SEPARATOR+false} :; then |
| 3923 |
PATH_SEPARATOR=: |
| 3924 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 3925 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 3926 |
@@ -4048,13 +4223,6 @@ if test "${PATH_SEPARATOR+set}" != set; |
| 3927 |
fi |
| 3928 |
|
| 3929 |
|
| 3930 |
-# IFS |
| 3931 |
-# We need space, tab and new line, in precisely that order. Quoting is |
| 3932 |
-# there to prevent editors from complaining about space-tab. |
| 3933 |
-# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 3934 |
-# splitting by setting IFS to empty value.) |
| 3935 |
-IFS=" "" $as_nl" |
| 3936 |
- |
| 3937 |
# Find who we are. Look in the path if we contain no directory separator. |
| 3938 |
as_myself= |
| 3939 |
case $0 in #(( |
| 3940 |
@@ -4063,8 +4231,12 @@ case $0 in #(( |
| 3941 |
for as_dir in $PATH |
| 3942 |
do |
| 3943 |
IFS=$as_save_IFS |
| 3944 |
- test -z "$as_dir" && as_dir=. |
| 3945 |
- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 3946 |
+ case $as_dir in #((( |
| 3947 |
+ '') as_dir=./ ;; |
| 3948 |
+ */) ;; |
| 3949 |
+ *) as_dir=$as_dir/ ;; |
| 3950 |
+ esac |
| 3951 |
+ test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 3952 |
done |
| 3953 |
IFS=$as_save_IFS |
| 3954 |
|
| 3955 |
@@ -4076,30 +4248,10 @@ if test "x$as_myself" = x; then |
| 3956 |
as_myself=$0 |
| 3957 |
fi |
| 3958 |
if test ! -f "$as_myself"; then |
| 3959 |
- $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 3960 |
+ printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 3961 |
exit 1 |
| 3962 |
fi |
| 3963 |
|
| 3964 |
-# Unset variables that we do not need and which cause bugs (e.g. in |
| 3965 |
-# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 3966 |
-# suppresses any "Segmentation fault" message there. '((' could |
| 3967 |
-# trigger a bug in pdksh 5.2.14. |
| 3968 |
-for as_var in BASH_ENV ENV MAIL MAILPATH |
| 3969 |
-do eval test x\${$as_var+set} = xset \ |
| 3970 |
- && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 3971 |
-done |
| 3972 |
-PS1='$ ' |
| 3973 |
-PS2='> ' |
| 3974 |
-PS4='+ ' |
| 3975 |
- |
| 3976 |
-# NLS nuisances. |
| 3977 |
-LC_ALL=C |
| 3978 |
-export LC_ALL |
| 3979 |
-LANGUAGE=C |
| 3980 |
-export LANGUAGE |
| 3981 |
- |
| 3982 |
-# CDPATH. |
| 3983 |
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 3984 |
|
| 3985 |
|
| 3986 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 3987 |
@@ -4112,13 +4264,14 @@ as_fn_error () |
| 3988 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 3989 |
if test "$4"; then |
| 3990 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 3991 |
- $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 3992 |
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 3993 |
fi |
| 3994 |
- $as_echo "$as_me: error: $2" >&2 |
| 3995 |
+ printf "%s\n" "$as_me: error: $2" >&2 |
| 3996 |
as_fn_exit $as_status |
| 3997 |
} # as_fn_error |
| 3998 |
|
| 3999 |
|
| 4000 |
+ |
| 4001 |
# as_fn_set_status STATUS |
| 4002 |
# ----------------------- |
| 4003 |
# Set $? to STATUS, without forking. |
| 4004 |
@@ -4145,18 +4298,20 @@ as_fn_unset () |
| 4005 |
{ eval $1=; unset $1;} |
| 4006 |
} |
| 4007 |
as_unset=as_fn_unset |
| 4008 |
+ |
| 4009 |
# as_fn_append VAR VALUE |
| 4010 |
# ---------------------- |
| 4011 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 4012 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 4013 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 4014 |
# implementations. |
| 4015 |
-if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 4016 |
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 4017 |
+then : |
| 4018 |
eval 'as_fn_append () |
| 4019 |
{ |
| 4020 |
eval $1+=\$2 |
| 4021 |
}' |
| 4022 |
-else |
| 4023 |
+else $as_nop |
| 4024 |
as_fn_append () |
| 4025 |
{ |
| 4026 |
eval $1=\$$1\$2 |
| 4027 |
@@ -4168,12 +4323,13 @@ fi # as_fn_append |
| 4028 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 4029 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 4030 |
# must be portable across $(()) and expr. |
| 4031 |
-if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 4032 |
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 4033 |
+then : |
| 4034 |
eval 'as_fn_arith () |
| 4035 |
{ |
| 4036 |
as_val=$(( $* )) |
| 4037 |
}' |
| 4038 |
-else |
| 4039 |
+else $as_nop |
| 4040 |
as_fn_arith () |
| 4041 |
{ |
| 4042 |
as_val=`expr "$@" || test $? -eq 1` |
| 4043 |
@@ -4204,7 +4360,7 @@ as_me=`$as_basename -- "$0" || |
| 4044 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 4045 |
X"$0" : 'X\(//\)$' \| \ |
| 4046 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 4047 |
-$as_echo X/"$0" | |
| 4048 |
+printf "%s\n" X/"$0" | |
| 4049 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 4050 |
s//\1/ |
| 4051 |
q |
| 4052 |
@@ -4226,6 +4382,10 @@ as_cr_Letters=$as_cr_letters$as_cr_LETTE |
| 4053 |
as_cr_digits='0123456789' |
| 4054 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 4055 |
|
| 4056 |
+ |
| 4057 |
+# Determine whether it's possible to make 'echo' print without a newline. |
| 4058 |
+# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 4059 |
+# for compatibility with existing Makefiles. |
| 4060 |
ECHO_C= ECHO_N= ECHO_T= |
| 4061 |
case `echo -n x` in #((((( |
| 4062 |
-n*) |
| 4063 |
@@ -4239,6 +4399,12 @@ case `echo -n x` in #((((( |
| 4064 |
ECHO_N='-n';; |
| 4065 |
esac |
| 4066 |
|
| 4067 |
+# For backward compatibility with old third-party macros, we provide |
| 4068 |
+# the shell variables $as_echo and $as_echo_n. New code should use |
| 4069 |
+# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 4070 |
+as_echo='printf %s\n' |
| 4071 |
+as_echo_n='printf %s' |
| 4072 |
+ |
| 4073 |
rm -f conf$$ conf$$.exe conf$$.file |
| 4074 |
if test -d conf$$.dir; then |
| 4075 |
rm -f conf$$.dir/conf$$.file |
| 4076 |
@@ -4280,7 +4446,7 @@ as_fn_mkdir_p () |
| 4077 |
as_dirs= |
| 4078 |
while :; do |
| 4079 |
case $as_dir in #( |
| 4080 |
- *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 4081 |
+ *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 4082 |
*) as_qdir=$as_dir;; |
| 4083 |
esac |
| 4084 |
as_dirs="'$as_qdir' $as_dirs" |
| 4085 |
@@ -4289,7 +4455,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/ |
| 4086 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 4087 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 4088 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 4089 |
-$as_echo X"$as_dir" | |
| 4090 |
+printf "%s\n" X"$as_dir" | |
| 4091 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 4092 |
s//\1/ |
| 4093 |
q |
| 4094 |
@@ -4352,7 +4518,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri |
| 4095 |
# values after options handling. |
| 4096 |
ac_log=" |
| 4097 |
This file was extended by $as_me, which was |
| 4098 |
-generated by GNU Autoconf 2.69. Invocation command line was |
| 4099 |
+generated by GNU Autoconf 2.71. Invocation command line was |
| 4100 |
|
| 4101 |
CONFIG_FILES = $CONFIG_FILES |
| 4102 |
CONFIG_HEADERS = $CONFIG_HEADERS |
| 4103 |
@@ -4401,14 +4567,16 @@ $config_files |
| 4104 |
Report bugs to the package provider." |
| 4105 |
|
| 4106 |
_ACEOF |
| 4107 |
+ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
| 4108 |
+ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
| 4109 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 4110 |
-ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 4111 |
+ac_cs_config='$ac_cs_config_escaped' |
| 4112 |
ac_cs_version="\\ |
| 4113 |
config.status |
| 4114 |
-configured by $0, generated by GNU Autoconf 2.69, |
| 4115 |
+configured by $0, generated by GNU Autoconf 2.71, |
| 4116 |
with options \\"\$ac_cs_config\\" |
| 4117 |
|
| 4118 |
-Copyright (C) 2012 Free Software Foundation, Inc. |
| 4119 |
+Copyright (C) 2021 Free Software Foundation, Inc. |
| 4120 |
This config.status script is free software; the Free Software Foundation |
| 4121 |
gives unlimited permission to copy, distribute and modify it." |
| 4122 |
|
| 4123 |
@@ -4445,21 +4613,21 @@ do |
| 4124 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 4125 |
ac_cs_recheck=: ;; |
| 4126 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 4127 |
- $as_echo "$ac_cs_version"; exit ;; |
| 4128 |
+ printf "%s\n" "$ac_cs_version"; exit ;; |
| 4129 |
--config | --confi | --conf | --con | --co | --c ) |
| 4130 |
- $as_echo "$ac_cs_config"; exit ;; |
| 4131 |
+ printf "%s\n" "$ac_cs_config"; exit ;; |
| 4132 |
--debug | --debu | --deb | --de | --d | -d ) |
| 4133 |
debug=: ;; |
| 4134 |
--file | --fil | --fi | --f ) |
| 4135 |
$ac_shift |
| 4136 |
case $ac_optarg in |
| 4137 |
- *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 4138 |
+ *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 4139 |
'') as_fn_error $? "missing file argument" ;; |
| 4140 |
esac |
| 4141 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 4142 |
ac_need_defaults=false;; |
| 4143 |
--he | --h | --help | --hel | -h ) |
| 4144 |
- $as_echo "$ac_cs_usage"; exit ;; |
| 4145 |
+ printf "%s\n" "$ac_cs_usage"; exit ;; |
| 4146 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 4147 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 4148 |
ac_cs_silent=: ;; |
| 4149 |
@@ -4487,7 +4655,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_writ |
| 4150 |
if \$ac_cs_recheck; then |
| 4151 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 4152 |
shift |
| 4153 |
- \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 4154 |
+ \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 4155 |
CONFIG_SHELL='$SHELL' |
| 4156 |
export CONFIG_SHELL |
| 4157 |
exec "\$@" |
| 4158 |
@@ -4501,7 +4669,7 @@ exec 5>>config.log |
| 4159 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 4160 |
## Running $as_me. ## |
| 4161 |
_ASBOX |
| 4162 |
- $as_echo "$ac_log" |
| 4163 |
+ printf "%s\n" "$ac_log" |
| 4164 |
} >&5 |
| 4165 |
|
| 4166 |
_ACEOF |
| 4167 |
@@ -4526,7 +4694,7 @@ done |
| 4168 |
# We use the long form for the default assignment because of an extremely |
| 4169 |
# bizarre bug on SunOS 4.1.3. |
| 4170 |
if $ac_need_defaults; then |
| 4171 |
- test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 4172 |
+ test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
| 4173 |
fi |
| 4174 |
|
| 4175 |
# Have a temporary directory for convenience. Make it in the build tree |
| 4176 |
@@ -4754,7 +4922,7 @@ do |
| 4177 |
esac || |
| 4178 |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 4179 |
esac |
| 4180 |
- case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 4181 |
+ case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 4182 |
as_fn_append ac_file_inputs " '$ac_f'" |
| 4183 |
done |
| 4184 |
|
| 4185 |
@@ -4762,17 +4930,17 @@ do |
| 4186 |
# use $as_me), people would be surprised to read: |
| 4187 |
# /* config.h. Generated by config.status. */ |
| 4188 |
configure_input='Generated from '` |
| 4189 |
- $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 4190 |
+ printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 4191 |
`' by configure.' |
| 4192 |
if test x"$ac_file" != x-; then |
| 4193 |
configure_input="$ac_file. $configure_input" |
| 4194 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 4195 |
-$as_echo "$as_me: creating $ac_file" >&6;} |
| 4196 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 4197 |
+printf "%s\n" "$as_me: creating $ac_file" >&6;} |
| 4198 |
fi |
| 4199 |
# Neutralize special characters interpreted by sed in replacement strings. |
| 4200 |
case $configure_input in #( |
| 4201 |
*\&* | *\|* | *\\* ) |
| 4202 |
- ac_sed_conf_input=`$as_echo "$configure_input" | |
| 4203 |
+ ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
| 4204 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 4205 |
*) ac_sed_conf_input=$configure_input;; |
| 4206 |
esac |
| 4207 |
@@ -4789,7 +4957,7 @@ $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^ |
| 4208 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 4209 |
X"$ac_file" : 'X\(//\)$' \| \ |
| 4210 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 4211 |
-$as_echo X"$ac_file" | |
| 4212 |
+printf "%s\n" X"$ac_file" | |
| 4213 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 4214 |
s//\1/ |
| 4215 |
q |
| 4216 |
@@ -4813,9 +4981,9 @@ $as_echo X"$ac_file" | |
| 4217 |
case "$ac_dir" in |
| 4218 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 4219 |
*) |
| 4220 |
- ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 4221 |
+ ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 4222 |
# A ".." for each directory in $ac_dir_suffix. |
| 4223 |
- ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 4224 |
+ ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 4225 |
case $ac_top_builddir_sub in |
| 4226 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 4227 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 4228 |
@@ -4868,8 +5036,8 @@ ac_sed_dataroot=' |
| 4229 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 4230 |
*datarootdir*) ac_datarootdir_seen=yes;; |
| 4231 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 4232 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 4233 |
-$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 4234 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 4235 |
+printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 4236 |
_ACEOF |
| 4237 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 4238 |
ac_datarootdir_hack=' |
| 4239 |
@@ -4911,9 +5079,9 @@ test -z "$ac_datarootdir_hack$ac_dataroo |
| 4240 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 4241 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 4242 |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
| 4243 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 4244 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 4245 |
which seems to be undefined. Please make sure it is defined" >&5 |
| 4246 |
-$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 4247 |
+printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 4248 |
which seems to be undefined. Please make sure it is defined" >&2;} |
| 4249 |
|
| 4250 |
rm -f "$ac_tmp/stdin" |
| 4251 |
@@ -4960,7 +5128,8 @@ if test "$no_create" != yes; then |
| 4252 |
$ac_cs_success || as_fn_exit 1 |
| 4253 |
fi |
| 4254 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 4255 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 4256 |
-$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 4257 |
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 4258 |
+printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 4259 |
fi |
| 4260 |
|
| 4261 |
+ |
| 4262 |
--- rmpi-0.7-2.1.orig/configure.ac |
| 4263 |
+++ rmpi-0.7-2.1/configure.ac |
| 4264 |
@@ -255,8 +255,11 @@ fi |
| 4265 |
|
| 4266 |
if test "$MPITYPE" = "OPENMPI" ; then |
| 4267 |
AC_CHECK_PROG(ORTED, orted, yes, no) |
| 4268 |
+ AC_CHECK_PROG(PRTED, prted, yes, no) |
| 4269 |
if test "$ORTED" = no ; then |
| 4270 |
- AC_MSG_ERROR(Cannot find orted. Rmpi needs orted to run.) |
| 4271 |
+ if test "$PRTED" = no ; then |
| 4272 |
+ AC_MSG_ERROR(Cannot find orted or prted. Rmpi needs orted or prted to run.) |
| 4273 |
+ fi |
| 4274 |
fi |
| 4275 |
fi |
| 4276 |
|