[6328] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
| 3 | # Generated by GNU Autoconf 2.70 for MCT 2.10. |
---|
| 4 | # |
---|
| 5 | # |
---|
| 6 | # Copyright (C) 1992-1996, 1998-2017, 2020 Free Software Foundation, Inc. |
---|
| 7 | # |
---|
| 8 | # |
---|
| 9 | # This configure script is free software; the Free Software Foundation |
---|
| 10 | # gives unlimited permission to copy, distribute and modify it. |
---|
| 11 | ## -------------------- ## |
---|
| 12 | ## M4sh Initialization. ## |
---|
| 13 | ## -------------------- ## |
---|
| 14 | |
---|
| 15 | # Be more Bourne compatible |
---|
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 17 | as_nop=: |
---|
| 18 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
---|
| 19 | then : |
---|
| 20 | emulate sh |
---|
| 21 | NULLCMD=: |
---|
| 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
| 23 | # is contrary to our usage. Disable this feature. |
---|
| 24 | alias -g '${1+"$@"}'='"$@"' |
---|
| 25 | setopt NO_GLOB_SUBST |
---|
| 26 | else $as_nop |
---|
| 27 | case `(set -o) 2>/dev/null` in #( |
---|
| 28 | *posix*) : |
---|
| 29 | set -o posix ;; #( |
---|
| 30 | *) : |
---|
| 31 | ;; |
---|
| 32 | esac |
---|
| 33 | fi |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | # Reset variables that may have inherited troublesome values from |
---|
| 38 | # the environment. |
---|
| 39 | |
---|
| 40 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
---|
| 41 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
---|
| 42 | # side effect of setting IFS to empty, thus disabling word splitting.) |
---|
| 43 | # Quoting is to prevent editors from complaining about space-tab. |
---|
| 44 | as_nl=' |
---|
| 45 | ' |
---|
| 46 | export as_nl |
---|
| 47 | IFS=" "" $as_nl" |
---|
| 48 | |
---|
| 49 | PS1='$ ' |
---|
| 50 | PS2='> ' |
---|
| 51 | PS4='+ ' |
---|
| 52 | |
---|
| 53 | # Ensure predictable behavior from utilities with locale-dependent output. |
---|
| 54 | LC_ALL=C |
---|
| 55 | export LC_ALL |
---|
| 56 | LANGUAGE=C |
---|
| 57 | export LANGUAGE |
---|
| 58 | |
---|
| 59 | # We cannot yet rely on "unset" to work, but we need these variables |
---|
| 60 | # to be unset--not just set to an empty or harmless value--now, to |
---|
| 61 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
---|
| 62 | # also avoids known problems related to "unset" and subshell syntax |
---|
| 63 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
---|
| 64 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
---|
| 65 | do eval test \${$as_var+y} \ |
---|
| 66 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
| 67 | done |
---|
| 68 | |
---|
| 69 | # Ensure that fds 0, 1, and 2 are open. |
---|
| 70 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
---|
| 71 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
---|
| 72 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
---|
| 73 | |
---|
| 74 | # The user is always right. |
---|
| 75 | if ${PATH_SEPARATOR+false} :; then |
---|
| 76 | PATH_SEPARATOR=: |
---|
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
| 79 | PATH_SEPARATOR=';' |
---|
| 80 | } |
---|
| 81 | fi |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | # Find who we are. Look in the path if we contain no directory separator. |
---|
| 85 | as_myself= |
---|
| 86 | case $0 in #(( |
---|
| 87 | *[\\/]* ) as_myself=$0 ;; |
---|
| 88 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 89 | for as_dir in $PATH |
---|
| 90 | do |
---|
| 91 | IFS=$as_save_IFS |
---|
| 92 | case $as_dir in #((( |
---|
| 93 | '') as_dir=./ ;; |
---|
| 94 | */) ;; |
---|
| 95 | *) as_dir=$as_dir/ ;; |
---|
| 96 | esac |
---|
| 97 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
---|
| 98 | done |
---|
| 99 | IFS=$as_save_IFS |
---|
| 100 | |
---|
| 101 | ;; |
---|
| 102 | esac |
---|
| 103 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 104 | # in which case we are not to be found in the path. |
---|
| 105 | if test "x$as_myself" = x; then |
---|
| 106 | as_myself=$0 |
---|
| 107 | fi |
---|
| 108 | if test ! -f "$as_myself"; then |
---|
| 109 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
| 110 | exit 1 |
---|
| 111 | fi |
---|
| 112 | |
---|
| 113 | |
---|
| 114 | # Use a proper internal environment variable to ensure we don't fall |
---|
| 115 | # into an infinite loop, continuously re-executing ourselves. |
---|
| 116 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
---|
| 117 | _as_can_reexec=no; export _as_can_reexec; |
---|
| 118 | # We cannot yet assume a decent shell, so we have to provide a |
---|
| 119 | # neutralization value for shells without unset; and this also |
---|
| 120 | # works around shells that cannot unset nonexistent variables. |
---|
| 121 | # Preserve -v and -x to the replacement shell. |
---|
| 122 | BASH_ENV=/dev/null |
---|
| 123 | ENV=/dev/null |
---|
| 124 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
| 125 | case $- in # (((( |
---|
| 126 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
| 127 | *v* ) as_opts=-v ;; |
---|
| 128 | *x* ) as_opts=-x ;; |
---|
| 129 | * ) as_opts= ;; |
---|
| 130 | esac |
---|
| 131 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
---|
| 132 | # Admittedly, this is quite paranoid, since all the known shells bail |
---|
| 133 | # out after a failed `exec'. |
---|
| 134 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
---|
| 135 | exit 255 |
---|
| 136 | fi |
---|
| 137 | # We don't want this to propagate to other subprocesses. |
---|
| 138 | { _as_can_reexec=; unset _as_can_reexec;} |
---|
| 139 | if test "x$CONFIG_SHELL" = x; then |
---|
| 140 | as_bourne_compatible="as_nop=: |
---|
| 141 | if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
---|
| 142 | then : |
---|
| 143 | emulate sh |
---|
| 144 | NULLCMD=: |
---|
| 145 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
---|
| 146 | # is contrary to our usage. Disable this feature. |
---|
| 147 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
---|
| 148 | setopt NO_GLOB_SUBST |
---|
| 149 | else \$as_nop |
---|
| 150 | case \`(set -o) 2>/dev/null\` in #( |
---|
| 151 | *posix*) : |
---|
| 152 | set -o posix ;; #( |
---|
| 153 | *) : |
---|
| 154 | ;; |
---|
| 155 | esac |
---|
| 156 | fi |
---|
| 157 | " |
---|
| 158 | as_required="as_fn_return () { (exit \$1); } |
---|
| 159 | as_fn_success () { as_fn_return 0; } |
---|
| 160 | as_fn_failure () { as_fn_return 1; } |
---|
| 161 | as_fn_ret_success () { return 0; } |
---|
| 162 | as_fn_ret_failure () { return 1; } |
---|
| 163 | |
---|
| 164 | exitcode=0 |
---|
| 165 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
---|
| 166 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
---|
| 167 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
---|
| 168 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
---|
| 169 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
---|
| 170 | then : |
---|
| 171 | |
---|
| 172 | else \$as_nop |
---|
| 173 | exitcode=1; echo positional parameters were not saved. |
---|
| 174 | fi |
---|
| 175 | test x\$exitcode = x0 || exit 1 |
---|
| 176 | blah=\$(echo \$(echo blah)) |
---|
| 177 | test x\"\$blah\" = xblah || exit 1 |
---|
| 178 | test -x / || exit 1" |
---|
| 179 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
---|
| 180 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
---|
| 181 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
---|
| 182 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" |
---|
| 183 | if (eval "$as_required") 2>/dev/null |
---|
| 184 | then : |
---|
| 185 | as_have_required=yes |
---|
| 186 | else $as_nop |
---|
| 187 | as_have_required=no |
---|
| 188 | fi |
---|
| 189 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
---|
| 190 | then : |
---|
| 191 | |
---|
| 192 | else $as_nop |
---|
| 193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 194 | as_found=false |
---|
| 195 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 196 | do |
---|
| 197 | IFS=$as_save_IFS |
---|
| 198 | case $as_dir in #((( |
---|
| 199 | '') as_dir=./ ;; |
---|
| 200 | */) ;; |
---|
| 201 | *) as_dir=$as_dir/ ;; |
---|
| 202 | esac |
---|
| 203 | as_found=: |
---|
| 204 | case $as_dir in #( |
---|
| 205 | /*) |
---|
| 206 | for as_base in sh bash ksh sh5; do |
---|
| 207 | # Try only shells that exist, to save several forks. |
---|
| 208 | as_shell=$as_dir$as_base |
---|
| 209 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
| 210 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
---|
| 211 | then : |
---|
| 212 | CONFIG_SHELL=$as_shell as_have_required=yes |
---|
| 213 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
---|
| 214 | then : |
---|
| 215 | break 2 |
---|
| 216 | fi |
---|
| 217 | fi |
---|
| 218 | done;; |
---|
| 219 | esac |
---|
| 220 | as_found=false |
---|
| 221 | done |
---|
| 222 | IFS=$as_save_IFS |
---|
| 223 | if $as_found |
---|
| 224 | then : |
---|
| 225 | |
---|
| 226 | else $as_nop |
---|
| 227 | if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
---|
| 228 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
---|
| 229 | then : |
---|
| 230 | CONFIG_SHELL=$SHELL as_have_required=yes |
---|
| 231 | fi |
---|
| 232 | fi |
---|
| 233 | |
---|
| 234 | |
---|
| 235 | if test "x$CONFIG_SHELL" != x |
---|
| 236 | then : |
---|
| 237 | export CONFIG_SHELL |
---|
| 238 | # We cannot yet assume a decent shell, so we have to provide a |
---|
| 239 | # neutralization value for shells without unset; and this also |
---|
| 240 | # works around shells that cannot unset nonexistent variables. |
---|
| 241 | # Preserve -v and -x to the replacement shell. |
---|
| 242 | BASH_ENV=/dev/null |
---|
| 243 | ENV=/dev/null |
---|
| 244 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
| 245 | case $- in # (((( |
---|
| 246 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
| 247 | *v* ) as_opts=-v ;; |
---|
| 248 | *x* ) as_opts=-x ;; |
---|
| 249 | * ) as_opts= ;; |
---|
| 250 | esac |
---|
| 251 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
---|
| 252 | # Admittedly, this is quite paranoid, since all the known shells bail |
---|
| 253 | # out after a failed `exec'. |
---|
| 254 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
---|
| 255 | exit 255 |
---|
| 256 | fi |
---|
| 257 | |
---|
| 258 | if test x$as_have_required = xno |
---|
| 259 | then : |
---|
| 260 | printf "%s\n" "$0: This script requires a shell more modern than all" |
---|
| 261 | printf "%s\n" "$0: the shells that I found on your system." |
---|
| 262 | if test ${ZSH_VERSION+y} ; then |
---|
| 263 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
---|
| 264 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
---|
| 265 | else |
---|
| 266 | printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, |
---|
| 267 | $0: including any error possibly output before this |
---|
| 268 | $0: message. Then install a modern shell, or manually run |
---|
| 269 | $0: the script under such a shell if you do have one." |
---|
| 270 | fi |
---|
| 271 | exit 1 |
---|
| 272 | fi |
---|
| 273 | fi |
---|
| 274 | fi |
---|
| 275 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 276 | export SHELL |
---|
| 277 | # Unset more variables known to interfere with behavior of common tools. |
---|
| 278 | CLICOLOR_FORCE= GREP_OPTIONS= |
---|
| 279 | unset CLICOLOR_FORCE GREP_OPTIONS |
---|
| 280 | |
---|
| 281 | ## --------------------- ## |
---|
| 282 | ## M4sh Shell Functions. ## |
---|
| 283 | ## --------------------- ## |
---|
| 284 | # as_fn_unset VAR |
---|
| 285 | # --------------- |
---|
| 286 | # Portably unset VAR. |
---|
| 287 | as_fn_unset () |
---|
| 288 | { |
---|
| 289 | { eval $1=; unset $1;} |
---|
| 290 | } |
---|
| 291 | as_unset=as_fn_unset |
---|
| 292 | |
---|
| 293 | |
---|
| 294 | # as_fn_set_status STATUS |
---|
| 295 | # ----------------------- |
---|
| 296 | # Set $? to STATUS, without forking. |
---|
| 297 | as_fn_set_status () |
---|
| 298 | { |
---|
| 299 | return $1 |
---|
| 300 | } # as_fn_set_status |
---|
| 301 | |
---|
| 302 | # as_fn_exit STATUS |
---|
| 303 | # ----------------- |
---|
| 304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
| 305 | as_fn_exit () |
---|
| 306 | { |
---|
| 307 | set +e |
---|
| 308 | as_fn_set_status $1 |
---|
| 309 | exit $1 |
---|
| 310 | } # as_fn_exit |
---|
| 311 | # as_fn_nop |
---|
| 312 | # --------- |
---|
| 313 | # Do nothing but, unlike ":", preserve the value of $?. |
---|
| 314 | as_fn_nop () |
---|
| 315 | { |
---|
| 316 | return $? |
---|
| 317 | } |
---|
| 318 | as_nop=as_fn_nop |
---|
| 319 | |
---|
| 320 | # as_fn_mkdir_p |
---|
| 321 | # ------------- |
---|
| 322 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
| 323 | as_fn_mkdir_p () |
---|
| 324 | { |
---|
| 325 | |
---|
| 326 | case $as_dir in #( |
---|
| 327 | -*) as_dir=./$as_dir;; |
---|
| 328 | esac |
---|
| 329 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
| 330 | as_dirs= |
---|
| 331 | while :; do |
---|
| 332 | case $as_dir in #( |
---|
| 333 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
| 334 | *) as_qdir=$as_dir;; |
---|
| 335 | esac |
---|
| 336 | as_dirs="'$as_qdir' $as_dirs" |
---|
| 337 | as_dir=`$as_dirname -- "$as_dir" || |
---|
| 338 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 339 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 340 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 341 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 342 | printf "%s\n" X"$as_dir" | |
---|
| 343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 344 | s//\1/ |
---|
| 345 | q |
---|
| 346 | } |
---|
| 347 | /^X\(\/\/\)[^/].*/{ |
---|
| 348 | s//\1/ |
---|
| 349 | q |
---|
| 350 | } |
---|
| 351 | /^X\(\/\/\)$/{ |
---|
| 352 | s//\1/ |
---|
| 353 | q |
---|
| 354 | } |
---|
| 355 | /^X\(\/\).*/{ |
---|
| 356 | s//\1/ |
---|
| 357 | q |
---|
| 358 | } |
---|
| 359 | s/.*/./; q'` |
---|
| 360 | test -d "$as_dir" && break |
---|
| 361 | done |
---|
| 362 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
| 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
| 364 | |
---|
| 365 | |
---|
| 366 | } # as_fn_mkdir_p |
---|
| 367 | |
---|
| 368 | # as_fn_executable_p FILE |
---|
| 369 | # ----------------------- |
---|
| 370 | # Test if FILE is an executable regular file. |
---|
| 371 | as_fn_executable_p () |
---|
| 372 | { |
---|
| 373 | test -f "$1" && test -x "$1" |
---|
| 374 | } # as_fn_executable_p |
---|
| 375 | # as_fn_append VAR VALUE |
---|
| 376 | # ---------------------- |
---|
| 377 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
| 378 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
| 379 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
| 380 | # implementations. |
---|
| 381 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
---|
| 382 | then : |
---|
| 383 | eval 'as_fn_append () |
---|
| 384 | { |
---|
| 385 | eval $1+=\$2 |
---|
| 386 | }' |
---|
| 387 | else $as_nop |
---|
| 388 | as_fn_append () |
---|
| 389 | { |
---|
| 390 | eval $1=\$$1\$2 |
---|
| 391 | } |
---|
| 392 | fi # as_fn_append |
---|
| 393 | |
---|
| 394 | # as_fn_arith ARG... |
---|
| 395 | # ------------------ |
---|
| 396 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
| 397 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
| 398 | # must be portable across $(()) and expr. |
---|
| 399 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
---|
| 400 | then : |
---|
| 401 | eval 'as_fn_arith () |
---|
| 402 | { |
---|
| 403 | as_val=$(( $* )) |
---|
| 404 | }' |
---|
| 405 | else $as_nop |
---|
| 406 | as_fn_arith () |
---|
| 407 | { |
---|
| 408 | as_val=`expr "$@" || test $? -eq 1` |
---|
| 409 | } |
---|
| 410 | fi # as_fn_arith |
---|
| 411 | |
---|
| 412 | # as_fn_nop |
---|
| 413 | # --------- |
---|
| 414 | # Do nothing but, unlike ":", preserve the value of $?. |
---|
| 415 | as_fn_nop () |
---|
| 416 | { |
---|
| 417 | return $? |
---|
| 418 | } |
---|
| 419 | as_nop=as_fn_nop |
---|
| 420 | |
---|
| 421 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
| 422 | # ---------------------------------------- |
---|
| 423 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
| 424 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
| 425 | # script with STATUS, using 1 if that was 0. |
---|
| 426 | as_fn_error () |
---|
| 427 | { |
---|
| 428 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
| 429 | if test "$4"; then |
---|
| 430 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 431 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
| 432 | fi |
---|
| 433 | printf "%s\n" "$as_me: error: $2" >&2 |
---|
| 434 | as_fn_exit $as_status |
---|
| 435 | } # as_fn_error |
---|
| 436 | |
---|
| 437 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 438 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
| 439 | as_expr=expr |
---|
| 440 | else |
---|
| 441 | as_expr=false |
---|
| 442 | fi |
---|
| 443 | |
---|
| 444 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
| 445 | as_basename=basename |
---|
| 446 | else |
---|
| 447 | as_basename=false |
---|
| 448 | fi |
---|
| 449 | |
---|
| 450 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
| 451 | as_dirname=dirname |
---|
| 452 | else |
---|
| 453 | as_dirname=false |
---|
| 454 | fi |
---|
| 455 | |
---|
| 456 | as_me=`$as_basename -- "$0" || |
---|
| 457 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 458 | X"$0" : 'X\(//\)$' \| \ |
---|
| 459 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 460 | printf "%s\n" X/"$0" | |
---|
| 461 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
| 462 | s//\1/ |
---|
| 463 | q |
---|
| 464 | } |
---|
| 465 | /^X\/\(\/\/\)$/{ |
---|
| 466 | s//\1/ |
---|
| 467 | q |
---|
| 468 | } |
---|
| 469 | /^X\/\(\/\).*/{ |
---|
| 470 | s//\1/ |
---|
| 471 | q |
---|
| 472 | } |
---|
| 473 | s/.*/./; q'` |
---|
| 474 | |
---|
| 475 | # Avoid depending upon Character Ranges. |
---|
| 476 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 477 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 478 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 479 | as_cr_digits='0123456789' |
---|
| 480 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 481 | |
---|
| 482 | |
---|
| 483 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
---|
| 484 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
---|
| 485 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
---|
| 486 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
---|
| 487 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
---|
| 488 | sed -n ' |
---|
| 489 | p |
---|
| 490 | /[$]LINENO/= |
---|
| 491 | ' <$as_myself | |
---|
| 492 | sed ' |
---|
| 493 | s/[$]LINENO.*/&-/ |
---|
| 494 | t lineno |
---|
| 495 | b |
---|
| 496 | :lineno |
---|
| 497 | N |
---|
| 498 | :loop |
---|
| 499 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
| 500 | t loop |
---|
| 501 | s/-\n.*// |
---|
| 502 | ' >$as_me.lineno && |
---|
| 503 | chmod +x "$as_me.lineno" || |
---|
| 504 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
---|
| 505 | |
---|
| 506 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
---|
| 507 | # already done that, so ensure we don't try to do so again and fall |
---|
| 508 | # in an infinite loop. This has already happened in practice. |
---|
| 509 | _as_can_reexec=no; export _as_can_reexec |
---|
| 510 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 511 | # (the dirname of $[0] is not the place where we might find the |
---|
| 512 | # original and so on. Autoconf is especially sensitive to this). |
---|
| 513 | . "./$as_me.lineno" |
---|
| 514 | # Exit status is that of the last command. |
---|
| 515 | exit |
---|
| 516 | } |
---|
| 517 | |
---|
| 518 | |
---|
| 519 | # Determine whether it's possible to make 'echo' print without a newline. |
---|
| 520 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
---|
| 521 | # for compatibility with existing Makefiles. |
---|
| 522 | ECHO_C= ECHO_N= ECHO_T= |
---|
| 523 | case `echo -n x` in #((((( |
---|
| 524 | -n*) |
---|
| 525 | case `echo 'xy\c'` in |
---|
| 526 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
| 527 | xy) ECHO_C='\c';; |
---|
| 528 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
| 529 | ECHO_T=' ';; |
---|
| 530 | esac;; |
---|
| 531 | *) |
---|
| 532 | ECHO_N='-n';; |
---|
| 533 | esac |
---|
| 534 | |
---|
| 535 | # For backward compatibility with old third-party macros, we provide |
---|
| 536 | # the shell variables $as_echo and $as_echo_n. New code should use |
---|
| 537 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
---|
| 538 | as_echo='printf %s\n' |
---|
| 539 | as_echo_n='printf %s' |
---|
| 540 | |
---|
| 541 | |
---|
| 542 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 543 | if test -d conf$$.dir; then |
---|
| 544 | rm -f conf$$.dir/conf$$.file |
---|
| 545 | else |
---|
| 546 | rm -f conf$$.dir |
---|
| 547 | mkdir conf$$.dir 2>/dev/null |
---|
| 548 | fi |
---|
| 549 | if (echo >conf$$.file) 2>/dev/null; then |
---|
| 550 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 551 | as_ln_s='ln -s' |
---|
| 552 | # ... but there are two gotchas: |
---|
| 553 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
| 554 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
| 555 | # In both cases, we have to default to `cp -pR'. |
---|
| 556 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
| 557 | as_ln_s='cp -pR' |
---|
| 558 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 559 | as_ln_s=ln |
---|
| 560 | else |
---|
| 561 | as_ln_s='cp -pR' |
---|
| 562 | fi |
---|
| 563 | else |
---|
| 564 | as_ln_s='cp -pR' |
---|
| 565 | fi |
---|
| 566 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
| 567 | rmdir conf$$.dir 2>/dev/null |
---|
| 568 | |
---|
| 569 | if mkdir -p . 2>/dev/null; then |
---|
| 570 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
| 571 | else |
---|
| 572 | test -d ./-p && rmdir ./-p |
---|
| 573 | as_mkdir_p=false |
---|
| 574 | fi |
---|
| 575 | |
---|
| 576 | as_test_x='test -x' |
---|
| 577 | as_executable_p=as_fn_executable_p |
---|
| 578 | |
---|
| 579 | # Sed expression to map a string onto a valid CPP name. |
---|
| 580 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 581 | |
---|
| 582 | # Sed expression to map a string onto a valid variable name. |
---|
| 583 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 584 | |
---|
| 585 | |
---|
| 586 | test -n "$DJDIR" || exec 7<&0 </dev/null |
---|
| 587 | exec 6>&1 |
---|
| 588 | |
---|
| 589 | # Name of the host. |
---|
| 590 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
---|
| 591 | # so uname gets run too. |
---|
| 592 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 593 | |
---|
| 594 | # |
---|
| 595 | # Initializations. |
---|
| 596 | # |
---|
| 597 | ac_default_prefix=/usr/local |
---|
| 598 | ac_clean_files= |
---|
| 599 | ac_config_libobj_dir=. |
---|
| 600 | LIBOBJS= |
---|
| 601 | cross_compiling=no |
---|
| 602 | subdirs= |
---|
| 603 | MFLAGS= |
---|
| 604 | MAKEFLAGS= |
---|
| 605 | |
---|
| 606 | # Identity of this package. |
---|
| 607 | PACKAGE_NAME='MCT' |
---|
| 608 | PACKAGE_TARNAME='mct' |
---|
| 609 | PACKAGE_VERSION='2.10' |
---|
| 610 | PACKAGE_STRING='MCT 2.10' |
---|
| 611 | PACKAGE_BUGREPORT='' |
---|
| 612 | PACKAGE_URL='' |
---|
| 613 | |
---|
| 614 | # Factoring default headers for most tests. |
---|
| 615 | ac_includes_default="\ |
---|
| 616 | #include <stddef.h> |
---|
| 617 | #ifdef HAVE_STDIO_H |
---|
| 618 | # include <stdio.h> |
---|
| 619 | #endif |
---|
| 620 | #ifdef HAVE_STDLIB_H |
---|
| 621 | # include <stdlib.h> |
---|
| 622 | #endif |
---|
| 623 | #ifdef HAVE_STRING_H |
---|
| 624 | # include <string.h> |
---|
| 625 | #endif |
---|
| 626 | #ifdef HAVE_INTTYPES_H |
---|
| 627 | # include <inttypes.h> |
---|
| 628 | #endif |
---|
| 629 | #ifdef HAVE_STDINT_H |
---|
| 630 | # include <stdint.h> |
---|
| 631 | #endif |
---|
| 632 | #ifdef HAVE_STRINGS_H |
---|
| 633 | # include <strings.h> |
---|
| 634 | #endif |
---|
| 635 | #ifdef HAVE_SYS_TYPES_H |
---|
| 636 | # include <sys/types.h> |
---|
| 637 | #endif |
---|
| 638 | #ifdef HAVE_SYS_STAT_H |
---|
| 639 | # include <sys/stat.h> |
---|
| 640 | #endif |
---|
| 641 | #ifdef HAVE_UNISTD_H |
---|
| 642 | # include <unistd.h> |
---|
| 643 | #endif" |
---|
| 644 | |
---|
| 645 | ac_header_c_list= |
---|
| 646 | enable_option_checking=no |
---|
| 647 | ac_subst_vars='LTLIBOBJS |
---|
| 648 | LIBOBJS |
---|
| 649 | subdirs |
---|
| 650 | CPPDEFS |
---|
| 651 | CRULE |
---|
| 652 | FCLIBS |
---|
| 653 | host_os |
---|
| 654 | host_vendor |
---|
| 655 | host_cpu |
---|
| 656 | host |
---|
| 657 | build_os |
---|
| 658 | build_vendor |
---|
| 659 | build_cpu |
---|
| 660 | build |
---|
| 661 | FC_DEFINE |
---|
| 662 | FCFLAGS_F |
---|
| 663 | MPISERPATH |
---|
| 664 | MPIFC |
---|
| 665 | FCFLAGS_F90 |
---|
| 666 | ac_ct_FC |
---|
| 667 | OBJEXT |
---|
| 668 | EXEEXT |
---|
| 669 | ac_ct_CC |
---|
| 670 | CPPFLAGS |
---|
| 671 | LDFLAGS |
---|
| 672 | CC |
---|
| 673 | PYTHONOPTS |
---|
| 674 | PYTHON |
---|
| 675 | FORT_SIZE |
---|
| 676 | COMPILER_ROOT |
---|
| 677 | BABELROOT |
---|
| 678 | RANLIB |
---|
| 679 | AR |
---|
| 680 | INCLUDEPATH |
---|
| 681 | INCLUDEFLAG |
---|
| 682 | ENDIAN |
---|
| 683 | BIT64 |
---|
| 684 | REAL8 |
---|
| 685 | OPT |
---|
| 686 | DEBUG |
---|
| 687 | CFLAGS |
---|
| 688 | PROGFCFLAGS |
---|
| 689 | FCFLAGS |
---|
| 690 | FC |
---|
| 691 | FPPFLAGS |
---|
| 692 | FPP |
---|
| 693 | MPIHEADER |
---|
| 694 | MPILIBS |
---|
| 695 | target_alias |
---|
| 696 | host_alias |
---|
| 697 | build_alias |
---|
| 698 | LIBS |
---|
| 699 | ECHO_T |
---|
| 700 | ECHO_N |
---|
| 701 | ECHO_C |
---|
| 702 | DEFS |
---|
| 703 | mandir |
---|
| 704 | localedir |
---|
| 705 | libdir |
---|
| 706 | psdir |
---|
| 707 | pdfdir |
---|
| 708 | dvidir |
---|
| 709 | htmldir |
---|
| 710 | infodir |
---|
| 711 | docdir |
---|
| 712 | oldincludedir |
---|
| 713 | includedir |
---|
| 714 | runstatedir |
---|
| 715 | localstatedir |
---|
| 716 | sharedstatedir |
---|
| 717 | sysconfdir |
---|
| 718 | datadir |
---|
| 719 | datarootdir |
---|
| 720 | libexecdir |
---|
| 721 | sbindir |
---|
| 722 | bindir |
---|
| 723 | program_transform_name |
---|
| 724 | prefix |
---|
| 725 | exec_prefix |
---|
| 726 | PACKAGE_URL |
---|
| 727 | PACKAGE_BUGREPORT |
---|
| 728 | PACKAGE_STRING |
---|
| 729 | PACKAGE_VERSION |
---|
| 730 | PACKAGE_TARNAME |
---|
| 731 | PACKAGE_NAME |
---|
| 732 | PATH_SEPARATOR |
---|
| 733 | SHELL' |
---|
| 734 | ac_subst_files='' |
---|
| 735 | ac_user_opts=' |
---|
| 736 | enable_option_checking |
---|
| 737 | enable_mpiserial |
---|
| 738 | enable_debugging |
---|
| 739 | enable_selectedrealkind |
---|
| 740 | enable_sequence |
---|
| 741 | enable_babel |
---|
| 742 | ' |
---|
| 743 | ac_precious_vars='build_alias |
---|
| 744 | host_alias |
---|
| 745 | target_alias |
---|
| 746 | MPILIBS |
---|
| 747 | MPIHEADER |
---|
| 748 | FPP |
---|
| 749 | FPPFLAGS |
---|
| 750 | FC |
---|
| 751 | FCFLAGS |
---|
| 752 | PROGFCFLAGS |
---|
| 753 | CFLAGS |
---|
| 754 | DEBUG |
---|
| 755 | OPT |
---|
| 756 | REAL8 |
---|
| 757 | BIT64 |
---|
| 758 | ENDIAN |
---|
| 759 | INCLUDEFLAG |
---|
| 760 | INCLUDEPATH |
---|
| 761 | AR |
---|
| 762 | RANLIB |
---|
| 763 | BABELROOT |
---|
| 764 | COMPILER_ROOT |
---|
| 765 | FORT_SIZE |
---|
| 766 | CC |
---|
| 767 | LDFLAGS |
---|
| 768 | LIBS |
---|
| 769 | CPPFLAGS |
---|
| 770 | MPIFC' |
---|
| 771 | ac_subdirs_all='mpi-serial' |
---|
| 772 | |
---|
| 773 | # Initialize some variables set by options. |
---|
| 774 | ac_init_help= |
---|
| 775 | ac_init_version=false |
---|
| 776 | ac_unrecognized_opts= |
---|
| 777 | ac_unrecognized_sep= |
---|
| 778 | # The variables have the same names as the options, with |
---|
| 779 | # dashes changed to underlines. |
---|
| 780 | cache_file=/dev/null |
---|
| 781 | exec_prefix=NONE |
---|
| 782 | no_create= |
---|
| 783 | no_recursion= |
---|
| 784 | prefix=NONE |
---|
| 785 | program_prefix=NONE |
---|
| 786 | program_suffix=NONE |
---|
| 787 | program_transform_name=s,x,x, |
---|
| 788 | silent= |
---|
| 789 | site= |
---|
| 790 | srcdir= |
---|
| 791 | verbose= |
---|
| 792 | x_includes=NONE |
---|
| 793 | x_libraries=NONE |
---|
| 794 | |
---|
| 795 | # Installation directory options. |
---|
| 796 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
| 797 | # and all the variables that are supposed to be based on exec_prefix |
---|
| 798 | # by default will actually change. |
---|
| 799 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
| 800 | # (The list follows the same order as the GNU Coding Standards.) |
---|
| 801 | bindir='${exec_prefix}/bin' |
---|
| 802 | sbindir='${exec_prefix}/sbin' |
---|
| 803 | libexecdir='${exec_prefix}/libexec' |
---|
| 804 | datarootdir='${prefix}/share' |
---|
| 805 | datadir='${datarootdir}' |
---|
| 806 | sysconfdir='${prefix}/etc' |
---|
| 807 | sharedstatedir='${prefix}/com' |
---|
| 808 | localstatedir='${prefix}/var' |
---|
| 809 | runstatedir='${localstatedir}/run' |
---|
| 810 | includedir='${prefix}/include' |
---|
| 811 | oldincludedir='/usr/include' |
---|
| 812 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
| 813 | infodir='${datarootdir}/info' |
---|
| 814 | htmldir='${docdir}' |
---|
| 815 | dvidir='${docdir}' |
---|
| 816 | pdfdir='${docdir}' |
---|
| 817 | psdir='${docdir}' |
---|
| 818 | libdir='${exec_prefix}/lib' |
---|
| 819 | localedir='${datarootdir}/locale' |
---|
| 820 | mandir='${datarootdir}/man' |
---|
| 821 | |
---|
| 822 | ac_prev= |
---|
| 823 | ac_dashdash= |
---|
| 824 | for ac_option |
---|
| 825 | do |
---|
| 826 | # If the previous option needs an argument, assign it. |
---|
| 827 | if test -n "$ac_prev"; then |
---|
| 828 | eval $ac_prev=\$ac_option |
---|
| 829 | ac_prev= |
---|
| 830 | continue |
---|
| 831 | fi |
---|
| 832 | |
---|
| 833 | case $ac_option in |
---|
| 834 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
| 835 | *=) ac_optarg= ;; |
---|
| 836 | *) ac_optarg=yes ;; |
---|
| 837 | esac |
---|
| 838 | |
---|
| 839 | case $ac_dashdash$ac_option in |
---|
| 840 | --) |
---|
| 841 | ac_dashdash=yes ;; |
---|
| 842 | |
---|
| 843 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 844 | ac_prev=bindir ;; |
---|
| 845 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 846 | bindir=$ac_optarg ;; |
---|
| 847 | |
---|
| 848 | -build | --build | --buil | --bui | --bu) |
---|
| 849 | ac_prev=build_alias ;; |
---|
| 850 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 851 | build_alias=$ac_optarg ;; |
---|
| 852 | |
---|
| 853 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 854 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 855 | ac_prev=cache_file ;; |
---|
| 856 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 857 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 858 | cache_file=$ac_optarg ;; |
---|
| 859 | |
---|
| 860 | --config-cache | -C) |
---|
| 861 | cache_file=config.cache ;; |
---|
| 862 | |
---|
| 863 | -datadir | --datadir | --datadi | --datad) |
---|
| 864 | ac_prev=datadir ;; |
---|
| 865 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
| 866 | datadir=$ac_optarg ;; |
---|
| 867 | |
---|
| 868 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
| 869 | | --dataroo | --dataro | --datar) |
---|
| 870 | ac_prev=datarootdir ;; |
---|
| 871 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
| 872 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
| 873 | datarootdir=$ac_optarg ;; |
---|
| 874 | |
---|
| 875 | -disable-* | --disable-*) |
---|
| 876 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
| 877 | # Reject names that are not valid shell variable names. |
---|
| 878 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 879 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
---|
| 880 | ac_useropt_orig=$ac_useropt |
---|
| 881 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 882 | case $ac_user_opts in |
---|
| 883 | *" |
---|
| 884 | "enable_$ac_useropt" |
---|
| 885 | "*) ;; |
---|
| 886 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
| 887 | ac_unrecognized_sep=', ';; |
---|
| 888 | esac |
---|
| 889 | eval enable_$ac_useropt=no ;; |
---|
| 890 | |
---|
| 891 | -docdir | --docdir | --docdi | --doc | --do) |
---|
| 892 | ac_prev=docdir ;; |
---|
| 893 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
| 894 | docdir=$ac_optarg ;; |
---|
| 895 | |
---|
| 896 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
| 897 | ac_prev=dvidir ;; |
---|
| 898 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
| 899 | dvidir=$ac_optarg ;; |
---|
| 900 | |
---|
| 901 | -enable-* | --enable-*) |
---|
| 902 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
| 903 | # Reject names that are not valid shell variable names. |
---|
| 904 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 905 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
---|
| 906 | ac_useropt_orig=$ac_useropt |
---|
| 907 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 908 | case $ac_user_opts in |
---|
| 909 | *" |
---|
| 910 | "enable_$ac_useropt" |
---|
| 911 | "*) ;; |
---|
| 912 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
| 913 | ac_unrecognized_sep=', ';; |
---|
| 914 | esac |
---|
| 915 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
| 916 | |
---|
| 917 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 918 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 919 | | --exec | --exe | --ex) |
---|
| 920 | ac_prev=exec_prefix ;; |
---|
| 921 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 922 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 923 | | --exec=* | --exe=* | --ex=*) |
---|
| 924 | exec_prefix=$ac_optarg ;; |
---|
| 925 | |
---|
| 926 | -gas | --gas | --ga | --g) |
---|
| 927 | # Obsolete; use --with-gas. |
---|
| 928 | with_gas=yes ;; |
---|
| 929 | |
---|
| 930 | -help | --help | --hel | --he | -h) |
---|
| 931 | ac_init_help=long ;; |
---|
| 932 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
| 933 | ac_init_help=recursive ;; |
---|
| 934 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
| 935 | ac_init_help=short ;; |
---|
| 936 | |
---|
| 937 | -host | --host | --hos | --ho) |
---|
| 938 | ac_prev=host_alias ;; |
---|
| 939 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 940 | host_alias=$ac_optarg ;; |
---|
| 941 | |
---|
| 942 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
| 943 | ac_prev=htmldir ;; |
---|
| 944 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
| 945 | | --ht=*) |
---|
| 946 | htmldir=$ac_optarg ;; |
---|
| 947 | |
---|
| 948 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 949 | | --includ | --inclu | --incl | --inc) |
---|
| 950 | ac_prev=includedir ;; |
---|
| 951 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 952 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 953 | includedir=$ac_optarg ;; |
---|
| 954 | |
---|
| 955 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 956 | ac_prev=infodir ;; |
---|
| 957 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 958 | infodir=$ac_optarg ;; |
---|
| 959 | |
---|
| 960 | -libdir | --libdir | --libdi | --libd) |
---|
| 961 | ac_prev=libdir ;; |
---|
| 962 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 963 | libdir=$ac_optarg ;; |
---|
| 964 | |
---|
| 965 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 966 | | --libexe | --libex | --libe) |
---|
| 967 | ac_prev=libexecdir ;; |
---|
| 968 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 969 | | --libexe=* | --libex=* | --libe=*) |
---|
| 970 | libexecdir=$ac_optarg ;; |
---|
| 971 | |
---|
| 972 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
| 973 | ac_prev=localedir ;; |
---|
| 974 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
| 975 | localedir=$ac_optarg ;; |
---|
| 976 | |
---|
| 977 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 978 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
| 979 | ac_prev=localstatedir ;; |
---|
| 980 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 981 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
| 982 | localstatedir=$ac_optarg ;; |
---|
| 983 | |
---|
| 984 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 985 | ac_prev=mandir ;; |
---|
| 986 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 987 | mandir=$ac_optarg ;; |
---|
| 988 | |
---|
| 989 | -nfp | --nfp | --nf) |
---|
| 990 | # Obsolete; use --without-fp. |
---|
| 991 | with_fp=no ;; |
---|
| 992 | |
---|
| 993 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 994 | | --no-cr | --no-c | -n) |
---|
| 995 | no_create=yes ;; |
---|
| 996 | |
---|
| 997 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 998 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 999 | no_recursion=yes ;; |
---|
| 1000 | |
---|
| 1001 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 1002 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 1003 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 1004 | ac_prev=oldincludedir ;; |
---|
| 1005 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 1006 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 1007 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 1008 | oldincludedir=$ac_optarg ;; |
---|
| 1009 | |
---|
| 1010 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 1011 | ac_prev=prefix ;; |
---|
| 1012 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 1013 | prefix=$ac_optarg ;; |
---|
| 1014 | |
---|
| 1015 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 1016 | | --program-pre | --program-pr | --program-p) |
---|
| 1017 | ac_prev=program_prefix ;; |
---|
| 1018 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 1019 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 1020 | program_prefix=$ac_optarg ;; |
---|
| 1021 | |
---|
| 1022 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 1023 | | --program-suf | --program-su | --program-s) |
---|
| 1024 | ac_prev=program_suffix ;; |
---|
| 1025 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 1026 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 1027 | program_suffix=$ac_optarg ;; |
---|
| 1028 | |
---|
| 1029 | -program-transform-name | --program-transform-name \ |
---|
| 1030 | | --program-transform-nam | --program-transform-na \ |
---|
| 1031 | | --program-transform-n | --program-transform- \ |
---|
| 1032 | | --program-transform | --program-transfor \ |
---|
| 1033 | | --program-transfo | --program-transf \ |
---|
| 1034 | | --program-trans | --program-tran \ |
---|
| 1035 | | --progr-tra | --program-tr | --program-t) |
---|
| 1036 | ac_prev=program_transform_name ;; |
---|
| 1037 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 1038 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 1039 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 1040 | | --program-transform=* | --program-transfor=* \ |
---|
| 1041 | | --program-transfo=* | --program-transf=* \ |
---|
| 1042 | | --program-trans=* | --program-tran=* \ |
---|
| 1043 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 1044 | program_transform_name=$ac_optarg ;; |
---|
| 1045 | |
---|
| 1046 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
| 1047 | ac_prev=pdfdir ;; |
---|
| 1048 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
| 1049 | pdfdir=$ac_optarg ;; |
---|
| 1050 | |
---|
| 1051 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
| 1052 | ac_prev=psdir ;; |
---|
| 1053 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
| 1054 | psdir=$ac_optarg ;; |
---|
| 1055 | |
---|
| 1056 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1057 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1058 | silent=yes ;; |
---|
| 1059 | |
---|
| 1060 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
---|
| 1061 | | --runstate | --runstat | --runsta | --runst | --runs \ |
---|
| 1062 | | --run | --ru | --r) |
---|
| 1063 | ac_prev=runstatedir ;; |
---|
| 1064 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
---|
| 1065 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
---|
| 1066 | | --run=* | --ru=* | --r=*) |
---|
| 1067 | runstatedir=$ac_optarg ;; |
---|
| 1068 | |
---|
| 1069 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 1070 | ac_prev=sbindir ;; |
---|
| 1071 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 1072 | | --sbi=* | --sb=*) |
---|
| 1073 | sbindir=$ac_optarg ;; |
---|
| 1074 | |
---|
| 1075 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 1076 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 1077 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 1078 | | --sha | --sh) |
---|
| 1079 | ac_prev=sharedstatedir ;; |
---|
| 1080 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 1081 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 1082 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 1083 | | --sha=* | --sh=*) |
---|
| 1084 | sharedstatedir=$ac_optarg ;; |
---|
| 1085 | |
---|
| 1086 | -site | --site | --sit) |
---|
| 1087 | ac_prev=site ;; |
---|
| 1088 | -site=* | --site=* | --sit=*) |
---|
| 1089 | site=$ac_optarg ;; |
---|
| 1090 | |
---|
| 1091 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 1092 | ac_prev=srcdir ;; |
---|
| 1093 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 1094 | srcdir=$ac_optarg ;; |
---|
| 1095 | |
---|
| 1096 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 1097 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 1098 | ac_prev=sysconfdir ;; |
---|
| 1099 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 1100 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 1101 | sysconfdir=$ac_optarg ;; |
---|
| 1102 | |
---|
| 1103 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 1104 | ac_prev=target_alias ;; |
---|
| 1105 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 1106 | target_alias=$ac_optarg ;; |
---|
| 1107 | |
---|
| 1108 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 1109 | verbose=yes ;; |
---|
| 1110 | |
---|
| 1111 | -version | --version | --versio | --versi | --vers | -V) |
---|
| 1112 | ac_init_version=: ;; |
---|
| 1113 | |
---|
| 1114 | -with-* | --with-*) |
---|
| 1115 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
| 1116 | # Reject names that are not valid shell variable names. |
---|
| 1117 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 1118 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
---|
| 1119 | ac_useropt_orig=$ac_useropt |
---|
| 1120 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 1121 | case $ac_user_opts in |
---|
| 1122 | *" |
---|
| 1123 | "with_$ac_useropt" |
---|
| 1124 | "*) ;; |
---|
| 1125 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
| 1126 | ac_unrecognized_sep=', ';; |
---|
| 1127 | esac |
---|
| 1128 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
| 1129 | |
---|
| 1130 | -without-* | --without-*) |
---|
| 1131 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
| 1132 | # Reject names that are not valid shell variable names. |
---|
| 1133 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 1134 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
---|
| 1135 | ac_useropt_orig=$ac_useropt |
---|
| 1136 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 1137 | case $ac_user_opts in |
---|
| 1138 | *" |
---|
| 1139 | "with_$ac_useropt" |
---|
| 1140 | "*) ;; |
---|
| 1141 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
| 1142 | ac_unrecognized_sep=', ';; |
---|
| 1143 | esac |
---|
| 1144 | eval with_$ac_useropt=no ;; |
---|
| 1145 | |
---|
| 1146 | --x) |
---|
| 1147 | # Obsolete; use --with-x. |
---|
| 1148 | with_x=yes ;; |
---|
| 1149 | |
---|
| 1150 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 1151 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 1152 | ac_prev=x_includes ;; |
---|
| 1153 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 1154 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 1155 | x_includes=$ac_optarg ;; |
---|
| 1156 | |
---|
| 1157 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 1158 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 1159 | ac_prev=x_libraries ;; |
---|
| 1160 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 1161 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 1162 | x_libraries=$ac_optarg ;; |
---|
| 1163 | |
---|
| 1164 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
| 1165 | Try \`$0 --help' for more information" |
---|
| 1166 | ;; |
---|
| 1167 | |
---|
| 1168 | *=*) |
---|
| 1169 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
| 1170 | # Reject names that are not valid shell variable names. |
---|
| 1171 | case $ac_envvar in #( |
---|
| 1172 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
| 1173 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
| 1174 | esac |
---|
| 1175 | eval $ac_envvar=\$ac_optarg |
---|
| 1176 | export $ac_envvar ;; |
---|
| 1177 | |
---|
| 1178 | *) |
---|
| 1179 | # FIXME: should be removed in autoconf 3.0. |
---|
| 1180 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
| 1181 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
| 1182 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
| 1183 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
| 1184 | ;; |
---|
| 1185 | |
---|
| 1186 | esac |
---|
| 1187 | done |
---|
| 1188 | |
---|
| 1189 | if test -n "$ac_prev"; then |
---|
| 1190 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
| 1191 | as_fn_error $? "missing argument to $ac_option" |
---|
| 1192 | fi |
---|
| 1193 | |
---|
| 1194 | if test -n "$ac_unrecognized_opts"; then |
---|
| 1195 | case $enable_option_checking in |
---|
| 1196 | no) ;; |
---|
| 1197 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
| 1198 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
| 1199 | esac |
---|
| 1200 | fi |
---|
| 1201 | |
---|
| 1202 | # Check all directory arguments for consistency. |
---|
| 1203 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
| 1204 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
| 1205 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
| 1206 | libdir localedir mandir runstatedir |
---|
| 1207 | do |
---|
| 1208 | eval ac_val=\$$ac_var |
---|
| 1209 | # Remove trailing slashes. |
---|
| 1210 | case $ac_val in |
---|
| 1211 | */ ) |
---|
| 1212 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
| 1213 | eval $ac_var=\$ac_val;; |
---|
| 1214 | esac |
---|
| 1215 | # Be sure to have absolute directory names. |
---|
| 1216 | case $ac_val in |
---|
| 1217 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
| 1218 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
| 1219 | esac |
---|
| 1220 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
| 1221 | done |
---|
| 1222 | |
---|
| 1223 | # There might be people who depend on the old broken behavior: `$host' |
---|
| 1224 | # used to hold the argument of --host etc. |
---|
| 1225 | # FIXME: To remove some day. |
---|
| 1226 | build=$build_alias |
---|
| 1227 | host=$host_alias |
---|
| 1228 | target=$target_alias |
---|
| 1229 | |
---|
| 1230 | # FIXME: To remove some day. |
---|
| 1231 | if test "x$host_alias" != x; then |
---|
| 1232 | if test "x$build_alias" = x; then |
---|
| 1233 | cross_compiling=maybe |
---|
| 1234 | elif test "x$build_alias" != "x$host_alias"; then |
---|
| 1235 | cross_compiling=yes |
---|
| 1236 | fi |
---|
| 1237 | fi |
---|
| 1238 | |
---|
| 1239 | ac_tool_prefix= |
---|
| 1240 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
| 1241 | |
---|
| 1242 | test "$silent" = yes && exec 6>/dev/null |
---|
| 1243 | |
---|
| 1244 | |
---|
| 1245 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
| 1246 | ac_ls_di=`ls -di .` && |
---|
| 1247 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
| 1248 | as_fn_error $? "working directory cannot be determined" |
---|
| 1249 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
| 1250 | as_fn_error $? "pwd does not report name of working directory" |
---|
| 1251 | |
---|
| 1252 | |
---|
| 1253 | # Find the source files, if location was not specified. |
---|
| 1254 | if test -z "$srcdir"; then |
---|
| 1255 | ac_srcdir_defaulted=yes |
---|
| 1256 | # Try the directory containing this script, then the parent directory. |
---|
| 1257 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
| 1258 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 1259 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
| 1260 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
| 1261 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 1262 | printf "%s\n" X"$as_myself" | |
---|
| 1263 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 1264 | s//\1/ |
---|
| 1265 | q |
---|
| 1266 | } |
---|
| 1267 | /^X\(\/\/\)[^/].*/{ |
---|
| 1268 | s//\1/ |
---|
| 1269 | q |
---|
| 1270 | } |
---|
| 1271 | /^X\(\/\/\)$/{ |
---|
| 1272 | s//\1/ |
---|
| 1273 | q |
---|
| 1274 | } |
---|
| 1275 | /^X\(\/\).*/{ |
---|
| 1276 | s//\1/ |
---|
| 1277 | q |
---|
| 1278 | } |
---|
| 1279 | s/.*/./; q'` |
---|
| 1280 | srcdir=$ac_confdir |
---|
| 1281 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
| 1282 | srcdir=.. |
---|
| 1283 | fi |
---|
| 1284 | else |
---|
| 1285 | ac_srcdir_defaulted=no |
---|
| 1286 | fi |
---|
| 1287 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
| 1288 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
| 1289 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
| 1290 | fi |
---|
| 1291 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
| 1292 | ac_abs_confdir=`( |
---|
| 1293 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
| 1294 | pwd)` |
---|
| 1295 | # When building in place, set srcdir=. |
---|
| 1296 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
| 1297 | srcdir=. |
---|
| 1298 | fi |
---|
| 1299 | # Remove unnecessary trailing slashes from srcdir. |
---|
| 1300 | # Double slashes in file names in object file debugging info |
---|
| 1301 | # mess up M-x gdb in Emacs. |
---|
| 1302 | case $srcdir in |
---|
| 1303 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
| 1304 | esac |
---|
| 1305 | for ac_var in $ac_precious_vars; do |
---|
| 1306 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
| 1307 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
| 1308 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
| 1309 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
| 1310 | done |
---|
| 1311 | |
---|
| 1312 | # |
---|
| 1313 | # Report the --help message. |
---|
| 1314 | # |
---|
| 1315 | if test "$ac_init_help" = "long"; then |
---|
| 1316 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 1317 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 1318 | cat <<_ACEOF |
---|
| 1319 | \`configure' configures MCT 2.10 to adapt to many kinds of systems. |
---|
| 1320 | |
---|
| 1321 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
| 1322 | |
---|
| 1323 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
| 1324 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
| 1325 | |
---|
| 1326 | Defaults for the options are specified in brackets. |
---|
| 1327 | |
---|
| 1328 | Configuration: |
---|
| 1329 | -h, --help display this help and exit |
---|
| 1330 | --help=short display options specific to this package |
---|
| 1331 | --help=recursive display the short help of all the included packages |
---|
| 1332 | -V, --version display version information and exit |
---|
| 1333 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
| 1334 | --cache-file=FILE cache test results in FILE [disabled] |
---|
| 1335 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
| 1336 | -n, --no-create do not create output files |
---|
| 1337 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
| 1338 | |
---|
| 1339 | Installation directories: |
---|
| 1340 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 1341 | [$ac_default_prefix] |
---|
| 1342 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 1343 | [PREFIX] |
---|
| 1344 | |
---|
| 1345 | By default, \`make install' will install all the files in |
---|
| 1346 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
| 1347 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
| 1348 | for instance \`--prefix=\$HOME'. |
---|
| 1349 | |
---|
| 1350 | For better control, use the options below. |
---|
| 1351 | |
---|
| 1352 | Fine tuning of the installation directories: |
---|
| 1353 | --bindir=DIR user executables [EPREFIX/bin] |
---|
| 1354 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
| 1355 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
| 1356 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
| 1357 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
| 1358 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
| 1359 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
---|
| 1360 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
| 1361 | --includedir=DIR C header files [PREFIX/include] |
---|
| 1362 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
| 1363 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
| 1364 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
| 1365 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
| 1366 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
| 1367 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
| 1368 | --docdir=DIR documentation root [DATAROOTDIR/doc/mct] |
---|
| 1369 | --htmldir=DIR html documentation [DOCDIR] |
---|
| 1370 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
| 1371 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
| 1372 | --psdir=DIR ps documentation [DOCDIR] |
---|
| 1373 | _ACEOF |
---|
| 1374 | |
---|
| 1375 | cat <<\_ACEOF |
---|
| 1376 | |
---|
| 1377 | System types: |
---|
| 1378 | --build=BUILD configure for building on BUILD [guessed] |
---|
| 1379 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
| 1380 | _ACEOF |
---|
| 1381 | fi |
---|
| 1382 | |
---|
| 1383 | if test -n "$ac_init_help"; then |
---|
| 1384 | case $ac_init_help in |
---|
| 1385 | short | recursive ) echo "Configuration of MCT 2.10:";; |
---|
| 1386 | esac |
---|
| 1387 | cat <<\_ACEOF |
---|
| 1388 | |
---|
| 1389 | Optional Features: |
---|
| 1390 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
| 1391 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 1392 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
| 1393 | --enable-mpiserial Use the included MPI replacement library for single |
---|
| 1394 | processor |
---|
| 1395 | --enable-debugging Use the debugging flag and disable the optimization |
---|
| 1396 | flag |
---|
| 1397 | --enable-selectedrealkind |
---|
| 1398 | define single precision and double precision numbers |
---|
| 1399 | using the selected_real_kind function. Default uses |
---|
| 1400 | the kind inquiry function. |
---|
| 1401 | --enable-sequence Modify MCT types to make them contiguous in memory. |
---|
| 1402 | --enable-babel Supply this option if you plan on building the Babel |
---|
| 1403 | bindings to MCT |
---|
| 1404 | |
---|
| 1405 | Some influential environment variables: |
---|
| 1406 | MPILIBS MPI library command line invocation |
---|
| 1407 | MPIHEADER MPI header include path with INCLUDEFLAG |
---|
| 1408 | FPP C-preprocessor for Fortran source code |
---|
| 1409 | FPPFLAGS C-preprocessing flags for Fortran source code |
---|
| 1410 | FC The Fortran compiler |
---|
| 1411 | FCFLAGS User-defined Fortran compiler flags |
---|
| 1412 | PROGFCFLAGS User-defined Fortran compiler flags for example programs |
---|
| 1413 | CFLAGS Customized C source compilation flags |
---|
| 1414 | DEBUG Fortran compiler flag for generating symbolic debugging |
---|
| 1415 | information |
---|
| 1416 | OPT Fortran compiler flag for optimization level |
---|
| 1417 | REAL8 Fortran compiler flag for setting the default REAL size to |
---|
| 1418 | REAL(KIND=8) |
---|
| 1419 | BIT64 Fortran compiler flag for generating 64-bit objects |
---|
| 1420 | ENDIAN Fortran compiler flag for converting big-endian to little-endian |
---|
| 1421 | INCLUDEFLAG Fortran compiler flag for specifying module search path |
---|
| 1422 | INCLUDEPATH Additional library and module paths with INCLUDEFLAG |
---|
| 1423 | AR Archive command |
---|
| 1424 | RANLIB Archive index update command |
---|
| 1425 | BABELROOT Root directory of your Babel installation. i.e.: |
---|
| 1426 | $BABELROOT/bin/babel $BABELROOT/lib/libsidl.so |
---|
| 1427 | COMPILER_ROOT |
---|
| 1428 | Root directory of your FORTRAN compiler |
---|
| 1429 | FORT_SIZE Number of bits in Fortran real and double kind |
---|
| 1430 | CC C compiler command |
---|
| 1431 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 1432 | nonstandard directory <lib dir> |
---|
| 1433 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
| 1434 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
| 1435 | you have headers in a nonstandard directory <include dir> |
---|
| 1436 | MPIFC MPI Fortran compiler command |
---|
| 1437 | |
---|
| 1438 | Use these variables to override the choices made by `configure' or to help |
---|
| 1439 | it to find libraries and programs with nonstandard names/locations. |
---|
| 1440 | |
---|
| 1441 | Report bugs to the package provider. |
---|
| 1442 | _ACEOF |
---|
| 1443 | ac_status=$? |
---|
| 1444 | fi |
---|
| 1445 | |
---|
| 1446 | if test "$ac_init_help" = "recursive"; then |
---|
| 1447 | # If there are subdirs, report their specific --help. |
---|
| 1448 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 1449 | test -d "$ac_dir" || |
---|
| 1450 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
| 1451 | continue |
---|
| 1452 | ac_builddir=. |
---|
| 1453 | |
---|
| 1454 | case "$ac_dir" in |
---|
| 1455 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 1456 | *) |
---|
| 1457 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
| 1458 | # A ".." for each directory in $ac_dir_suffix. |
---|
| 1459 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
| 1460 | case $ac_top_builddir_sub in |
---|
| 1461 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 1462 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
| 1463 | esac ;; |
---|
| 1464 | esac |
---|
| 1465 | ac_abs_top_builddir=$ac_pwd |
---|
| 1466 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
| 1467 | # for backward compatibility: |
---|
| 1468 | ac_top_builddir=$ac_top_build_prefix |
---|
| 1469 | |
---|
| 1470 | case $srcdir in |
---|
| 1471 | .) # We are building in place. |
---|
| 1472 | ac_srcdir=. |
---|
| 1473 | ac_top_srcdir=$ac_top_builddir_sub |
---|
| 1474 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
| 1475 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
| 1476 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 1477 | ac_top_srcdir=$srcdir |
---|
| 1478 | ac_abs_top_srcdir=$srcdir ;; |
---|
| 1479 | *) # Relative name. |
---|
| 1480 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
| 1481 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
| 1482 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
| 1483 | esac |
---|
| 1484 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
| 1485 | |
---|
| 1486 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
| 1487 | # Check for configure.gnu first; this name is used for a wrapper for |
---|
| 1488 | # Metaconfig's "Configure" on case-insensitive file systems. |
---|
| 1489 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
| 1490 | echo && |
---|
| 1491 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
| 1492 | elif test -f "$ac_srcdir/configure"; then |
---|
| 1493 | echo && |
---|
| 1494 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
| 1495 | else |
---|
| 1496 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 1497 | fi || ac_status=$? |
---|
| 1498 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
| 1499 | done |
---|
| 1500 | fi |
---|
| 1501 | |
---|
| 1502 | test -n "$ac_init_help" && exit $ac_status |
---|
| 1503 | if $ac_init_version; then |
---|
| 1504 | cat <<\_ACEOF |
---|
| 1505 | MCT configure 2.10 |
---|
| 1506 | generated by GNU Autoconf 2.70 |
---|
| 1507 | |
---|
| 1508 | Copyright (C) 2020 Free Software Foundation, Inc. |
---|
| 1509 | This configure script is free software; the Free Software Foundation |
---|
| 1510 | gives unlimited permission to copy, distribute and modify it. |
---|
| 1511 | _ACEOF |
---|
| 1512 | exit |
---|
| 1513 | fi |
---|
| 1514 | |
---|
| 1515 | ## ------------------------ ## |
---|
| 1516 | ## Autoconf initialization. ## |
---|
| 1517 | ## ------------------------ ## |
---|
| 1518 | |
---|
| 1519 | # ac_fn_c_try_compile LINENO |
---|
| 1520 | # -------------------------- |
---|
| 1521 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
| 1522 | ac_fn_c_try_compile () |
---|
| 1523 | { |
---|
| 1524 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1525 | rm -f conftest.$ac_objext conftest.beam |
---|
| 1526 | if { { ac_try="$ac_compile" |
---|
| 1527 | case "(($ac_try" in |
---|
| 1528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1529 | *) ac_try_echo=$ac_try;; |
---|
| 1530 | esac |
---|
| 1531 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1532 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
| 1533 | (eval "$ac_compile") 2>conftest.err |
---|
| 1534 | ac_status=$? |
---|
| 1535 | if test -s conftest.err; then |
---|
| 1536 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1537 | cat conftest.er1 >&5 |
---|
| 1538 | mv -f conftest.er1 conftest.err |
---|
| 1539 | fi |
---|
| 1540 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1541 | test $ac_status = 0; } && { |
---|
| 1542 | test -z "$ac_c_werror_flag" || |
---|
| 1543 | test ! -s conftest.err |
---|
| 1544 | } && test -s conftest.$ac_objext |
---|
| 1545 | then : |
---|
| 1546 | ac_retval=0 |
---|
| 1547 | else $as_nop |
---|
| 1548 | printf "%s\n" "$as_me: failed program was:" >&5 |
---|
| 1549 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1550 | |
---|
| 1551 | ac_retval=1 |
---|
| 1552 | fi |
---|
| 1553 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1554 | as_fn_set_status $ac_retval |
---|
| 1555 | |
---|
| 1556 | } # ac_fn_c_try_compile |
---|
| 1557 | |
---|
| 1558 | # ac_fn_c_try_run LINENO |
---|
| 1559 | # ---------------------- |
---|
| 1560 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
---|
| 1561 | # executables *can* be run. |
---|
| 1562 | ac_fn_c_try_run () |
---|
| 1563 | { |
---|
| 1564 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1565 | if { { ac_try="$ac_link" |
---|
| 1566 | case "(($ac_try" in |
---|
| 1567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1568 | *) ac_try_echo=$ac_try;; |
---|
| 1569 | esac |
---|
| 1570 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1571 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
| 1572 | (eval "$ac_link") 2>&5 |
---|
| 1573 | ac_status=$? |
---|
| 1574 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1575 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
| 1576 | { { case "(($ac_try" in |
---|
| 1577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1578 | *) ac_try_echo=$ac_try;; |
---|
| 1579 | esac |
---|
| 1580 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1581 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
| 1582 | (eval "$ac_try") 2>&5 |
---|
| 1583 | ac_status=$? |
---|
| 1584 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1585 | test $ac_status = 0; }; } |
---|
| 1586 | then : |
---|
| 1587 | ac_retval=0 |
---|
| 1588 | else $as_nop |
---|
| 1589 | printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
---|
| 1590 | printf "%s\n" "$as_me: failed program was:" >&5 |
---|
| 1591 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1592 | |
---|
| 1593 | ac_retval=$ac_status |
---|
| 1594 | fi |
---|
| 1595 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
| 1596 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1597 | as_fn_set_status $ac_retval |
---|
| 1598 | |
---|
| 1599 | } # ac_fn_c_try_run |
---|
| 1600 | |
---|
| 1601 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
| 1602 | # ------------------------------------------------------- |
---|
| 1603 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
| 1604 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
| 1605 | ac_fn_c_check_header_compile () |
---|
| 1606 | { |
---|
| 1607 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1608 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
| 1609 | printf %s "checking for $2... " >&6; } |
---|
| 1610 | if eval test \${$3+y} |
---|
| 1611 | then : |
---|
| 1612 | printf %s "(cached) " >&6 |
---|
| 1613 | else $as_nop |
---|
| 1614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 1615 | /* end confdefs.h. */ |
---|
| 1616 | $4 |
---|
| 1617 | #include <$2> |
---|
| 1618 | _ACEOF |
---|
| 1619 | if ac_fn_c_try_compile "$LINENO" |
---|
| 1620 | then : |
---|
| 1621 | eval "$3=yes" |
---|
| 1622 | else $as_nop |
---|
| 1623 | eval "$3=no" |
---|
| 1624 | fi |
---|
| 1625 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 1626 | fi |
---|
| 1627 | eval ac_res=\$$3 |
---|
| 1628 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 1629 | printf "%s\n" "$ac_res" >&6; } |
---|
| 1630 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1631 | |
---|
| 1632 | } # ac_fn_c_check_header_compile |
---|
| 1633 | |
---|
| 1634 | # ac_fn_fc_try_compile LINENO |
---|
| 1635 | # --------------------------- |
---|
| 1636 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
| 1637 | ac_fn_fc_try_compile () |
---|
| 1638 | { |
---|
| 1639 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1640 | rm -f conftest.$ac_objext conftest.beam |
---|
| 1641 | if { { ac_try="$ac_compile" |
---|
| 1642 | case "(($ac_try" in |
---|
| 1643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1644 | *) ac_try_echo=$ac_try;; |
---|
| 1645 | esac |
---|
| 1646 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1647 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
| 1648 | (eval "$ac_compile") 2>conftest.err |
---|
| 1649 | ac_status=$? |
---|
| 1650 | if test -s conftest.err; then |
---|
| 1651 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1652 | cat conftest.er1 >&5 |
---|
| 1653 | mv -f conftest.er1 conftest.err |
---|
| 1654 | fi |
---|
| 1655 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1656 | test $ac_status = 0; } && { |
---|
| 1657 | test -z "$ac_fc_werror_flag" || |
---|
| 1658 | test ! -s conftest.err |
---|
| 1659 | } && test -s conftest.$ac_objext |
---|
| 1660 | then : |
---|
| 1661 | ac_retval=0 |
---|
| 1662 | else $as_nop |
---|
| 1663 | printf "%s\n" "$as_me: failed program was:" >&5 |
---|
| 1664 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1665 | |
---|
| 1666 | ac_retval=1 |
---|
| 1667 | fi |
---|
| 1668 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1669 | as_fn_set_status $ac_retval |
---|
| 1670 | |
---|
| 1671 | } # ac_fn_fc_try_compile |
---|
| 1672 | |
---|
| 1673 | # ac_fn_fc_try_link LINENO |
---|
| 1674 | # ------------------------ |
---|
| 1675 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
| 1676 | ac_fn_fc_try_link () |
---|
| 1677 | { |
---|
| 1678 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1679 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
---|
| 1680 | if { { ac_try="$ac_link" |
---|
| 1681 | case "(($ac_try" in |
---|
| 1682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1683 | *) ac_try_echo=$ac_try;; |
---|
| 1684 | esac |
---|
| 1685 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1686 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
| 1687 | (eval "$ac_link") 2>conftest.err |
---|
| 1688 | ac_status=$? |
---|
| 1689 | if test -s conftest.err; then |
---|
| 1690 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1691 | cat conftest.er1 >&5 |
---|
| 1692 | mv -f conftest.er1 conftest.err |
---|
| 1693 | fi |
---|
| 1694 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1695 | test $ac_status = 0; } && { |
---|
| 1696 | test -z "$ac_fc_werror_flag" || |
---|
| 1697 | test ! -s conftest.err |
---|
| 1698 | } && test -s conftest$ac_exeext && { |
---|
| 1699 | test "$cross_compiling" = yes || |
---|
| 1700 | test -x conftest$ac_exeext |
---|
| 1701 | } |
---|
| 1702 | then : |
---|
| 1703 | ac_retval=0 |
---|
| 1704 | else $as_nop |
---|
| 1705 | printf "%s\n" "$as_me: failed program was:" >&5 |
---|
| 1706 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1707 | |
---|
| 1708 | ac_retval=1 |
---|
| 1709 | fi |
---|
| 1710 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
| 1711 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
| 1712 | # interfere with the next link command; also delete a directory that is |
---|
| 1713 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
| 1714 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
| 1715 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1716 | as_fn_set_status $ac_retval |
---|
| 1717 | |
---|
| 1718 | } # ac_fn_fc_try_link |
---|
| 1719 | |
---|
| 1720 | # ac_fn_c_try_link LINENO |
---|
| 1721 | # ----------------------- |
---|
| 1722 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
| 1723 | ac_fn_c_try_link () |
---|
| 1724 | { |
---|
| 1725 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1726 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
---|
| 1727 | if { { ac_try="$ac_link" |
---|
| 1728 | case "(($ac_try" in |
---|
| 1729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1730 | *) ac_try_echo=$ac_try;; |
---|
| 1731 | esac |
---|
| 1732 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1733 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
| 1734 | (eval "$ac_link") 2>conftest.err |
---|
| 1735 | ac_status=$? |
---|
| 1736 | if test -s conftest.err; then |
---|
| 1737 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1738 | cat conftest.er1 >&5 |
---|
| 1739 | mv -f conftest.er1 conftest.err |
---|
| 1740 | fi |
---|
| 1741 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1742 | test $ac_status = 0; } && { |
---|
| 1743 | test -z "$ac_c_werror_flag" || |
---|
| 1744 | test ! -s conftest.err |
---|
| 1745 | } && test -s conftest$ac_exeext && { |
---|
| 1746 | test "$cross_compiling" = yes || |
---|
| 1747 | test -x conftest$ac_exeext |
---|
| 1748 | } |
---|
| 1749 | then : |
---|
| 1750 | ac_retval=0 |
---|
| 1751 | else $as_nop |
---|
| 1752 | printf "%s\n" "$as_me: failed program was:" >&5 |
---|
| 1753 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1754 | |
---|
| 1755 | ac_retval=1 |
---|
| 1756 | fi |
---|
| 1757 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
| 1758 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
| 1759 | # interfere with the next link command; also delete a directory that is |
---|
| 1760 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
| 1761 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
| 1762 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1763 | as_fn_set_status $ac_retval |
---|
| 1764 | |
---|
| 1765 | } # ac_fn_c_try_link |
---|
| 1766 | ac_configure_args_raw= |
---|
| 1767 | for ac_arg |
---|
| 1768 | do |
---|
| 1769 | case $ac_arg in |
---|
| 1770 | *\'*) |
---|
| 1771 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1772 | esac |
---|
| 1773 | as_fn_append ac_configure_args_raw " '$ac_arg'" |
---|
| 1774 | done |
---|
| 1775 | |
---|
| 1776 | case $ac_configure_args_raw in |
---|
| 1777 | *$as_nl*) |
---|
| 1778 | ac_safe_unquote= ;; |
---|
| 1779 | *) |
---|
| 1780 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
---|
| 1781 | ac_unsafe_a="$ac_unsafe_z#~" |
---|
| 1782 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
---|
| 1783 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
---|
| 1784 | esac |
---|
| 1785 | |
---|
| 1786 | cat >config.log <<_ACEOF |
---|
| 1787 | This file contains any messages produced by compilers while |
---|
| 1788 | running configure, to aid debugging if configure makes a mistake. |
---|
| 1789 | |
---|
| 1790 | It was created by MCT $as_me 2.10, which was |
---|
| 1791 | generated by GNU Autoconf 2.70. Invocation command line was |
---|
| 1792 | |
---|
| 1793 | $ $0$ac_configure_args_raw |
---|
| 1794 | |
---|
| 1795 | _ACEOF |
---|
| 1796 | exec 5>>config.log |
---|
| 1797 | { |
---|
| 1798 | cat <<_ASUNAME |
---|
| 1799 | ## --------- ## |
---|
| 1800 | ## Platform. ## |
---|
| 1801 | ## --------- ## |
---|
| 1802 | |
---|
| 1803 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 1804 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 1805 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 1806 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 1807 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 1808 | |
---|
| 1809 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 1810 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 1811 | |
---|
| 1812 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 1813 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 1814 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 1815 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
| 1816 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 1817 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 1818 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 1819 | |
---|
| 1820 | _ASUNAME |
---|
| 1821 | |
---|
| 1822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1823 | for as_dir in $PATH |
---|
| 1824 | do |
---|
| 1825 | IFS=$as_save_IFS |
---|
| 1826 | case $as_dir in #((( |
---|
| 1827 | '') as_dir=./ ;; |
---|
| 1828 | */) ;; |
---|
| 1829 | *) as_dir=$as_dir/ ;; |
---|
| 1830 | esac |
---|
| 1831 | printf "%s\n" "PATH: $as_dir" |
---|
| 1832 | done |
---|
| 1833 | IFS=$as_save_IFS |
---|
| 1834 | |
---|
| 1835 | } >&5 |
---|
| 1836 | |
---|
| 1837 | cat >&5 <<_ACEOF |
---|
| 1838 | |
---|
| 1839 | |
---|
| 1840 | ## ----------- ## |
---|
| 1841 | ## Core tests. ## |
---|
| 1842 | ## ----------- ## |
---|
| 1843 | |
---|
| 1844 | _ACEOF |
---|
| 1845 | |
---|
| 1846 | |
---|
| 1847 | # Keep a trace of the command line. |
---|
| 1848 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1849 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1850 | # Also quote any args containing shell meta-characters. |
---|
| 1851 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1852 | ac_configure_args= |
---|
| 1853 | ac_configure_args0= |
---|
| 1854 | ac_configure_args1= |
---|
| 1855 | ac_must_keep_next=false |
---|
| 1856 | for ac_pass in 1 2 |
---|
| 1857 | do |
---|
| 1858 | for ac_arg |
---|
| 1859 | do |
---|
| 1860 | case $ac_arg in |
---|
| 1861 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1862 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1863 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1864 | continue ;; |
---|
| 1865 | *\'*) |
---|
| 1866 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1867 | esac |
---|
| 1868 | case $ac_pass in |
---|
| 1869 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
| 1870 | 2) |
---|
| 1871 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
| 1872 | if test $ac_must_keep_next = true; then |
---|
| 1873 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 1874 | else |
---|
| 1875 | case $ac_arg in |
---|
| 1876 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1877 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1878 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1879 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1880 | case "$ac_configure_args0 " in |
---|
| 1881 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1882 | esac |
---|
| 1883 | ;; |
---|
| 1884 | -* ) ac_must_keep_next=true ;; |
---|
| 1885 | esac |
---|
| 1886 | fi |
---|
| 1887 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
| 1888 | ;; |
---|
| 1889 | esac |
---|
| 1890 | done |
---|
| 1891 | done |
---|
| 1892 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
| 1893 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
| 1894 | |
---|
| 1895 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1896 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1897 | # would cause problems or look ugly. |
---|
| 1898 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
| 1899 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
| 1900 | trap 'exit_status=$? |
---|
| 1901 | # Sanitize IFS. |
---|
| 1902 | IFS=" "" $as_nl" |
---|
| 1903 | # Save into config.log some information that might help in debugging. |
---|
| 1904 | { |
---|
| 1905 | echo |
---|
| 1906 | |
---|
| 1907 | printf "%s\n" "## ---------------- ## |
---|
| 1908 | ## Cache variables. ## |
---|
| 1909 | ## ---------------- ##" |
---|
| 1910 | echo |
---|
| 1911 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1912 | ( |
---|
| 1913 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
| 1914 | eval ac_val=\$$ac_var |
---|
| 1915 | case $ac_val in #( |
---|
| 1916 | *${as_nl}*) |
---|
| 1917 | case $ac_var in #( |
---|
| 1918 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
| 1919 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
| 1920 | esac |
---|
| 1921 | case $ac_var in #( |
---|
| 1922 | _ | IFS | as_nl) ;; #( |
---|
| 1923 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
| 1924 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
| 1925 | esac ;; |
---|
| 1926 | esac |
---|
| 1927 | done |
---|
| 1928 | (set) 2>&1 | |
---|
| 1929 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
| 1930 | *${as_nl}ac_space=\ *) |
---|
| 1931 | sed -n \ |
---|
| 1932 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
| 1933 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
| 1934 | ;; #( |
---|
| 1935 | *) |
---|
| 1936 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
| 1937 | ;; |
---|
| 1938 | esac | |
---|
| 1939 | sort |
---|
| 1940 | ) |
---|
| 1941 | echo |
---|
| 1942 | |
---|
| 1943 | printf "%s\n" "## ----------------- ## |
---|
| 1944 | ## Output variables. ## |
---|
| 1945 | ## ----------------- ##" |
---|
| 1946 | echo |
---|
| 1947 | for ac_var in $ac_subst_vars |
---|
| 1948 | do |
---|
| 1949 | eval ac_val=\$$ac_var |
---|
| 1950 | case $ac_val in |
---|
| 1951 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
| 1952 | esac |
---|
| 1953 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
---|
| 1954 | done | sort |
---|
| 1955 | echo |
---|
| 1956 | |
---|
| 1957 | if test -n "$ac_subst_files"; then |
---|
| 1958 | printf "%s\n" "## ------------------- ## |
---|
| 1959 | ## File substitutions. ## |
---|
| 1960 | ## ------------------- ##" |
---|
| 1961 | echo |
---|
| 1962 | for ac_var in $ac_subst_files |
---|
| 1963 | do |
---|
| 1964 | eval ac_val=\$$ac_var |
---|
| 1965 | case $ac_val in |
---|
| 1966 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
| 1967 | esac |
---|
| 1968 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
---|
| 1969 | done | sort |
---|
| 1970 | echo |
---|
| 1971 | fi |
---|
| 1972 | |
---|
| 1973 | if test -s confdefs.h; then |
---|
| 1974 | printf "%s\n" "## ----------- ## |
---|
| 1975 | ## confdefs.h. ## |
---|
| 1976 | ## ----------- ##" |
---|
| 1977 | echo |
---|
| 1978 | cat confdefs.h |
---|
| 1979 | echo |
---|
| 1980 | fi |
---|
| 1981 | test "$ac_signal" != 0 && |
---|
| 1982 | printf "%s\n" "$as_me: caught signal $ac_signal" |
---|
| 1983 | printf "%s\n" "$as_me: exit $exit_status" |
---|
| 1984 | } >&5 |
---|
| 1985 | rm -f core *.core core.conftest.* && |
---|
| 1986 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 1987 | exit $exit_status |
---|
| 1988 | ' 0 |
---|
| 1989 | for ac_signal in 1 2 13 15; do |
---|
| 1990 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
| 1991 | done |
---|
| 1992 | ac_signal=0 |
---|
| 1993 | |
---|
| 1994 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 1995 | rm -f -r conftest* confdefs.h |
---|
| 1996 | |
---|
| 1997 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
---|
| 1998 | |
---|
| 1999 | # Predefined preprocessor variables. |
---|
| 2000 | |
---|
| 2001 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
---|
| 2002 | |
---|
| 2003 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
---|
| 2004 | |
---|
| 2005 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
---|
| 2006 | |
---|
| 2007 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
---|
| 2008 | |
---|
| 2009 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
---|
| 2010 | |
---|
| 2011 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
---|
| 2012 | |
---|
| 2013 | |
---|
| 2014 | # Let the site file select an alternate cache file if it wants to. |
---|
| 2015 | # Prefer an explicitly selected file to automatically selected ones. |
---|
| 2016 | if test -n "$CONFIG_SITE"; then |
---|
| 2017 | ac_site_files="$CONFIG_SITE" |
---|
| 2018 | elif test "x$prefix" != xNONE; then |
---|
| 2019 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 2020 | else |
---|
| 2021 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 2022 | fi |
---|
| 2023 | |
---|
| 2024 | for ac_site_file in $ac_site_files |
---|
| 2025 | do |
---|
| 2026 | case $ac_site_file in #( |
---|
| 2027 | */*) : |
---|
| 2028 | ;; #( |
---|
| 2029 | *) : |
---|
| 2030 | ac_site_file=./$ac_site_file ;; |
---|
| 2031 | esac |
---|
| 2032 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
---|
| 2033 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
| 2034 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 2035 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 2036 | . "$ac_site_file" \ |
---|
| 2037 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2038 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2039 | as_fn_error $? "failed to load site script $ac_site_file |
---|
| 2040 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 2041 | fi |
---|
| 2042 | done |
---|
| 2043 | |
---|
| 2044 | if test -r "$cache_file"; then |
---|
| 2045 | # Some versions of bash will fail to source /dev/null (special files |
---|
| 2046 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
| 2047 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
| 2048 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
| 2049 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
---|
| 2050 | case $cache_file in |
---|
| 2051 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
| 2052 | *) . "./$cache_file";; |
---|
| 2053 | esac |
---|
| 2054 | fi |
---|
| 2055 | else |
---|
| 2056 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
| 2057 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
---|
| 2058 | >$cache_file |
---|
| 2059 | fi |
---|
| 2060 | |
---|
| 2061 | # Test code for whether the C compiler supports C89 (global declarations) |
---|
| 2062 | ac_c_conftest_c89_globals=' |
---|
| 2063 | /* Does the compiler advertise C89 conformance? |
---|
| 2064 | Do not test the value of __STDC__, because some compilers set it to 0 |
---|
| 2065 | while being otherwise adequately conformant. */ |
---|
| 2066 | #if !defined __STDC__ |
---|
| 2067 | # error "Compiler does not advertise C89 conformance" |
---|
| 2068 | #endif |
---|
| 2069 | |
---|
| 2070 | #include <stddef.h> |
---|
| 2071 | #include <stdarg.h> |
---|
| 2072 | struct stat; |
---|
| 2073 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
---|
| 2074 | struct buf { int x; }; |
---|
| 2075 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 2076 | static char *e (p, i) |
---|
| 2077 | char **p; |
---|
| 2078 | int i; |
---|
| 2079 | { |
---|
| 2080 | return p[i]; |
---|
| 2081 | } |
---|
| 2082 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 2083 | { |
---|
| 2084 | char *s; |
---|
| 2085 | va_list v; |
---|
| 2086 | va_start (v,p); |
---|
| 2087 | s = g (p, va_arg (v,int)); |
---|
| 2088 | va_end (v); |
---|
| 2089 | return s; |
---|
| 2090 | } |
---|
| 2091 | |
---|
| 2092 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 2093 | function prototypes and stuff, but not \xHH hex character constants. |
---|
| 2094 | These do not provoke an error unfortunately, instead are silently treated |
---|
| 2095 | as an "x". The following induces an error, until -std is added to get |
---|
| 2096 | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
---|
| 2097 | array size at least. It is necessary to write \x00 == 0 to get something |
---|
| 2098 | that is true only with -std. */ |
---|
| 2099 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
---|
| 2100 | |
---|
| 2101 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
| 2102 | inside strings and character constants. */ |
---|
| 2103 | #define FOO(x) '\''x'\'' |
---|
| 2104 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
---|
| 2105 | |
---|
| 2106 | int test (int i, double x); |
---|
| 2107 | struct s1 {int (*f) (int a);}; |
---|
| 2108 | struct s2 {int (*f) (double a);}; |
---|
| 2109 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
---|
| 2110 | int, int);' |
---|
| 2111 | |
---|
| 2112 | # Test code for whether the C compiler supports C89 (body of main). |
---|
| 2113 | ac_c_conftest_c89_main=' |
---|
| 2114 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
---|
| 2115 | ' |
---|
| 2116 | |
---|
| 2117 | # Test code for whether the C compiler supports C99 (global declarations) |
---|
| 2118 | ac_c_conftest_c99_globals=' |
---|
| 2119 | // Does the compiler advertise C99 conformance? |
---|
| 2120 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
---|
| 2121 | # error "Compiler does not advertise C99 conformance" |
---|
| 2122 | #endif |
---|
| 2123 | |
---|
| 2124 | #include <stdbool.h> |
---|
| 2125 | extern int puts (const char *); |
---|
| 2126 | extern int printf (const char *, ...); |
---|
| 2127 | extern int dprintf (int, const char *, ...); |
---|
| 2128 | extern void *malloc (size_t); |
---|
| 2129 | |
---|
| 2130 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
---|
| 2131 | // dprintf is used instead of fprintf to avoid needing to declare |
---|
| 2132 | // FILE and stderr. |
---|
| 2133 | #define debug(...) dprintf (2, __VA_ARGS__) |
---|
| 2134 | #define showlist(...) puts (#__VA_ARGS__) |
---|
| 2135 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
---|
| 2136 | static void |
---|
| 2137 | test_varargs_macros (void) |
---|
| 2138 | { |
---|
| 2139 | int x = 1234; |
---|
| 2140 | int y = 5678; |
---|
| 2141 | debug ("Flag"); |
---|
| 2142 | debug ("X = %d\n", x); |
---|
| 2143 | showlist (The first, second, and third items.); |
---|
| 2144 | report (x>y, "x is %d but y is %d", x, y); |
---|
| 2145 | } |
---|
| 2146 | |
---|
| 2147 | // Check long long types. |
---|
| 2148 | #define BIG64 18446744073709551615ull |
---|
| 2149 | #define BIG32 4294967295ul |
---|
| 2150 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
---|
| 2151 | #if !BIG_OK |
---|
| 2152 | #error "your preprocessor is broken" |
---|
| 2153 | #endif |
---|
| 2154 | #if BIG_OK |
---|
| 2155 | #else |
---|
| 2156 | #error "your preprocessor is broken" |
---|
| 2157 | #endif |
---|
| 2158 | static long long int bignum = -9223372036854775807LL; |
---|
| 2159 | static unsigned long long int ubignum = BIG64; |
---|
| 2160 | |
---|
| 2161 | struct incomplete_array |
---|
| 2162 | { |
---|
| 2163 | int datasize; |
---|
| 2164 | double data[]; |
---|
| 2165 | }; |
---|
| 2166 | |
---|
| 2167 | struct named_init { |
---|
| 2168 | int number; |
---|
| 2169 | const wchar_t *name; |
---|
| 2170 | double average; |
---|
| 2171 | }; |
---|
| 2172 | |
---|
| 2173 | typedef const char *ccp; |
---|
| 2174 | |
---|
| 2175 | static inline int |
---|
| 2176 | test_restrict (ccp restrict text) |
---|
| 2177 | { |
---|
| 2178 | // See if C++-style comments work. |
---|
| 2179 | // Iterate through items via the restricted pointer. |
---|
| 2180 | // Also check for declarations in for loops. |
---|
| 2181 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
---|
| 2182 | continue; |
---|
| 2183 | return 0; |
---|
| 2184 | } |
---|
| 2185 | |
---|
| 2186 | // Check varargs and va_copy. |
---|
| 2187 | static bool |
---|
| 2188 | test_varargs (const char *format, ...) |
---|
| 2189 | { |
---|
| 2190 | va_list args; |
---|
| 2191 | va_start (args, format); |
---|
| 2192 | va_list args_copy; |
---|
| 2193 | va_copy (args_copy, args); |
---|
| 2194 | |
---|
| 2195 | const char *str = ""; |
---|
| 2196 | int number = 0; |
---|
| 2197 | float fnumber = 0; |
---|
| 2198 | |
---|
| 2199 | while (*format) |
---|
| 2200 | { |
---|
| 2201 | switch (*format++) |
---|
| 2202 | { |
---|
| 2203 | case '\''s'\'': // string |
---|
| 2204 | str = va_arg (args_copy, const char *); |
---|
| 2205 | break; |
---|
| 2206 | case '\''d'\'': // int |
---|
| 2207 | number = va_arg (args_copy, int); |
---|
| 2208 | break; |
---|
| 2209 | case '\''f'\'': // float |
---|
| 2210 | fnumber = va_arg (args_copy, double); |
---|
| 2211 | break; |
---|
| 2212 | default: |
---|
| 2213 | break; |
---|
| 2214 | } |
---|
| 2215 | } |
---|
| 2216 | va_end (args_copy); |
---|
| 2217 | va_end (args); |
---|
| 2218 | |
---|
| 2219 | return *str && number && fnumber; |
---|
| 2220 | } |
---|
| 2221 | ' |
---|
| 2222 | |
---|
| 2223 | # Test code for whether the C compiler supports C99 (body of main). |
---|
| 2224 | ac_c_conftest_c99_main=' |
---|
| 2225 | // Check bool. |
---|
| 2226 | _Bool success = false; |
---|
| 2227 | success |= (argc != 0); |
---|
| 2228 | |
---|
| 2229 | // Check restrict. |
---|
| 2230 | if (test_restrict ("String literal") == 0) |
---|
| 2231 | success = true; |
---|
| 2232 | char *restrict newvar = "Another string"; |
---|
| 2233 | |
---|
| 2234 | // Check varargs. |
---|
| 2235 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
---|
| 2236 | test_varargs_macros (); |
---|
| 2237 | |
---|
| 2238 | // Check flexible array members. |
---|
| 2239 | struct incomplete_array *ia = |
---|
| 2240 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
---|
| 2241 | ia->datasize = 10; |
---|
| 2242 | for (int i = 0; i < ia->datasize; ++i) |
---|
| 2243 | ia->data[i] = i * 1.234; |
---|
| 2244 | |
---|
| 2245 | // Check named initializers. |
---|
| 2246 | struct named_init ni = { |
---|
| 2247 | .number = 34, |
---|
| 2248 | .name = L"Test wide string", |
---|
| 2249 | .average = 543.34343, |
---|
| 2250 | }; |
---|
| 2251 | |
---|
| 2252 | ni.number = 58; |
---|
| 2253 | |
---|
| 2254 | int dynamic_array[ni.number]; |
---|
| 2255 | dynamic_array[0] = argv[0][0]; |
---|
| 2256 | dynamic_array[ni.number - 1] = 543; |
---|
| 2257 | |
---|
| 2258 | // work around unused variable warnings |
---|
| 2259 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
---|
| 2260 | || dynamic_array[ni.number - 1] != 543); |
---|
| 2261 | ' |
---|
| 2262 | |
---|
| 2263 | # Test code for whether the C compiler supports C11 (global declarations) |
---|
| 2264 | ac_c_conftest_c11_globals=' |
---|
| 2265 | // Does the compiler advertise C11 conformance? |
---|
| 2266 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
---|
| 2267 | # error "Compiler does not advertise C11 conformance" |
---|
| 2268 | #endif |
---|
| 2269 | |
---|
| 2270 | // Check _Alignas. |
---|
| 2271 | char _Alignas (double) aligned_as_double; |
---|
| 2272 | char _Alignas (0) no_special_alignment; |
---|
| 2273 | extern char aligned_as_int; |
---|
| 2274 | char _Alignas (0) _Alignas (int) aligned_as_int; |
---|
| 2275 | |
---|
| 2276 | // Check _Alignof. |
---|
| 2277 | enum |
---|
| 2278 | { |
---|
| 2279 | int_alignment = _Alignof (int), |
---|
| 2280 | int_array_alignment = _Alignof (int[100]), |
---|
| 2281 | char_alignment = _Alignof (char) |
---|
| 2282 | }; |
---|
| 2283 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
---|
| 2284 | |
---|
| 2285 | // Check _Noreturn. |
---|
| 2286 | int _Noreturn does_not_return (void) { for (;;) continue; } |
---|
| 2287 | |
---|
| 2288 | // Check _Static_assert. |
---|
| 2289 | struct test_static_assert |
---|
| 2290 | { |
---|
| 2291 | int x; |
---|
| 2292 | _Static_assert (sizeof (int) <= sizeof (long int), |
---|
| 2293 | "_Static_assert does not work in struct"); |
---|
| 2294 | long int y; |
---|
| 2295 | }; |
---|
| 2296 | |
---|
| 2297 | // Check UTF-8 literals. |
---|
| 2298 | #define u8 syntax error! |
---|
| 2299 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
---|
| 2300 | |
---|
| 2301 | // Check duplicate typedefs. |
---|
| 2302 | typedef long *long_ptr; |
---|
| 2303 | typedef long int *long_ptr; |
---|
| 2304 | typedef long_ptr long_ptr; |
---|
| 2305 | |
---|
| 2306 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
---|
| 2307 | struct anonymous |
---|
| 2308 | { |
---|
| 2309 | union { |
---|
| 2310 | struct { int i; int j; }; |
---|
| 2311 | struct { int k; long int l; } w; |
---|
| 2312 | }; |
---|
| 2313 | int m; |
---|
| 2314 | } v1; |
---|
| 2315 | ' |
---|
| 2316 | |
---|
| 2317 | # Test code for whether the C compiler supports C11 (body of main). |
---|
| 2318 | ac_c_conftest_c11_main=' |
---|
| 2319 | _Static_assert ((offsetof (struct anonymous, i) |
---|
| 2320 | == offsetof (struct anonymous, w.k)), |
---|
| 2321 | "Anonymous union alignment botch"); |
---|
| 2322 | v1.i = 2; |
---|
| 2323 | v1.w.k = 5; |
---|
| 2324 | ok |= v1.i != 5; |
---|
| 2325 | ' |
---|
| 2326 | |
---|
| 2327 | # Test code for whether the C compiler supports C11 (complete). |
---|
| 2328 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
---|
| 2329 | ${ac_c_conftest_c99_globals} |
---|
| 2330 | ${ac_c_conftest_c11_globals} |
---|
| 2331 | |
---|
| 2332 | int |
---|
| 2333 | main (int argc, char **argv) |
---|
| 2334 | { |
---|
| 2335 | int ok = 0; |
---|
| 2336 | ${ac_c_conftest_c89_main} |
---|
| 2337 | ${ac_c_conftest_c99_main} |
---|
| 2338 | ${ac_c_conftest_c11_main} |
---|
| 2339 | return ok; |
---|
| 2340 | } |
---|
| 2341 | " |
---|
| 2342 | |
---|
| 2343 | # Test code for whether the C compiler supports C99 (complete). |
---|
| 2344 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
---|
| 2345 | ${ac_c_conftest_c99_globals} |
---|
| 2346 | |
---|
| 2347 | int |
---|
| 2348 | main (int argc, char **argv) |
---|
| 2349 | { |
---|
| 2350 | int ok = 0; |
---|
| 2351 | ${ac_c_conftest_c89_main} |
---|
| 2352 | ${ac_c_conftest_c99_main} |
---|
| 2353 | return ok; |
---|
| 2354 | } |
---|
| 2355 | " |
---|
| 2356 | |
---|
| 2357 | # Test code for whether the C compiler supports C89 (complete). |
---|
| 2358 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
---|
| 2359 | |
---|
| 2360 | int |
---|
| 2361 | main (int argc, char **argv) |
---|
| 2362 | { |
---|
| 2363 | int ok = 0; |
---|
| 2364 | ${ac_c_conftest_c89_main} |
---|
| 2365 | return ok; |
---|
| 2366 | } |
---|
| 2367 | " |
---|
| 2368 | |
---|
| 2369 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
---|
| 2370 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
---|
| 2371 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
---|
| 2372 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
---|
| 2373 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
---|
| 2374 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
---|
| 2375 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
---|
| 2376 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
---|
| 2377 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
---|
| 2378 | |
---|
| 2379 | # Auxiliary files required by this configure script. |
---|
| 2380 | ac_aux_files="config.guess config.sub" |
---|
| 2381 | |
---|
| 2382 | # Locations in which to look for auxiliary files. |
---|
| 2383 | ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." |
---|
| 2384 | |
---|
| 2385 | # Search for a directory containing all of the required auxiliary files, |
---|
| 2386 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
---|
| 2387 | # If we don't find one directory that contains all the files we need, |
---|
| 2388 | # we report the set of missing files from the *first* directory in |
---|
| 2389 | # $ac_aux_dir_candidates and give up. |
---|
| 2390 | ac_missing_aux_files="" |
---|
| 2391 | ac_first_candidate=: |
---|
| 2392 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
---|
| 2393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2394 | as_found=false |
---|
| 2395 | for as_dir in $ac_aux_dir_candidates |
---|
| 2396 | do |
---|
| 2397 | IFS=$as_save_IFS |
---|
| 2398 | case $as_dir in #((( |
---|
| 2399 | '') as_dir=./ ;; |
---|
| 2400 | */) ;; |
---|
| 2401 | *) as_dir=$as_dir/ ;; |
---|
| 2402 | esac |
---|
| 2403 | as_found=: |
---|
| 2404 | |
---|
| 2405 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
---|
| 2406 | ac_aux_dir_found=yes |
---|
| 2407 | ac_install_sh= |
---|
| 2408 | for ac_aux in $ac_aux_files |
---|
| 2409 | do |
---|
| 2410 | # As a special case, if "install-sh" is required, that requirement |
---|
| 2411 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", |
---|
| 2412 | # and $ac_install_sh is set appropriately for whichever one is found. |
---|
| 2413 | if test x"$ac_aux" = x"install-sh" |
---|
| 2414 | then |
---|
| 2415 | if test -f "${as_dir}install-sh"; then |
---|
| 2416 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
---|
| 2417 | ac_install_sh="${as_dir}install-sh -c" |
---|
| 2418 | elif test -f "${as_dir}install.sh"; then |
---|
| 2419 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
---|
| 2420 | ac_install_sh="${as_dir}install.sh -c" |
---|
| 2421 | elif test -f "${as_dir}shtool"; then |
---|
| 2422 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
---|
| 2423 | ac_install_sh="${as_dir}shtool install -c" |
---|
| 2424 | else |
---|
| 2425 | ac_aux_dir_found=no |
---|
| 2426 | if $ac_first_candidate; then |
---|
| 2427 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
---|
| 2428 | else |
---|
| 2429 | break |
---|
| 2430 | fi |
---|
| 2431 | fi |
---|
| 2432 | else |
---|
| 2433 | if test -f "${as_dir}${ac_aux}"; then |
---|
| 2434 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
---|
| 2435 | else |
---|
| 2436 | ac_aux_dir_found=no |
---|
| 2437 | if $ac_first_candidate; then |
---|
| 2438 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
---|
| 2439 | else |
---|
| 2440 | break |
---|
| 2441 | fi |
---|
| 2442 | fi |
---|
| 2443 | fi |
---|
| 2444 | done |
---|
| 2445 | if test "$ac_aux_dir_found" = yes; then |
---|
| 2446 | ac_aux_dir="$as_dir" |
---|
| 2447 | break |
---|
| 2448 | fi |
---|
| 2449 | ac_first_candidate=false |
---|
| 2450 | |
---|
| 2451 | as_found=false |
---|
| 2452 | done |
---|
| 2453 | IFS=$as_save_IFS |
---|
| 2454 | if $as_found |
---|
| 2455 | then : |
---|
| 2456 | |
---|
| 2457 | else $as_nop |
---|
| 2458 | as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 |
---|
| 2459 | fi |
---|
| 2460 | |
---|
| 2461 | |
---|
| 2462 | # These three variables are undocumented and unsupported, |
---|
| 2463 | # and are intended to be withdrawn in a future Autoconf release. |
---|
| 2464 | # They can cause serious problems if a builder's source tree is in a directory |
---|
| 2465 | # whose full name contains unusual characters. |
---|
| 2466 | if test -f "${ac_aux_dir}config.guess"; then |
---|
| 2467 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
---|
| 2468 | fi |
---|
| 2469 | if test -f "${ac_aux_dir}config.sub"; then |
---|
| 2470 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
---|
| 2471 | fi |
---|
| 2472 | if test -f "$ac_aux_dir/configure"; then |
---|
| 2473 | ac_configure="$SHELL ${ac_aux_dir}configure" |
---|
| 2474 | fi |
---|
| 2475 | |
---|
| 2476 | # Check that the precious variables saved in the cache have kept the same |
---|
| 2477 | # value. |
---|
| 2478 | ac_cache_corrupted=false |
---|
| 2479 | for ac_var in $ac_precious_vars; do |
---|
| 2480 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 2481 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 2482 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
| 2483 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
| 2484 | case $ac_old_set,$ac_new_set in |
---|
| 2485 | set,) |
---|
| 2486 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 2487 | printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 2488 | ac_cache_corrupted=: ;; |
---|
| 2489 | ,set) |
---|
| 2490 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 2491 | printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 2492 | ac_cache_corrupted=: ;; |
---|
| 2493 | ,);; |
---|
| 2494 | *) |
---|
| 2495 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 2496 | # differences in whitespace do not lead to failure. |
---|
| 2497 | ac_old_val_w=`echo x $ac_old_val` |
---|
| 2498 | ac_new_val_w=`echo x $ac_new_val` |
---|
| 2499 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
| 2500 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 2501 | printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 2502 | ac_cache_corrupted=: |
---|
| 2503 | else |
---|
| 2504 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
| 2505 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
| 2506 | eval $ac_var=\$ac_old_val |
---|
| 2507 | fi |
---|
| 2508 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
| 2509 | printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
| 2510 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
| 2511 | printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
| 2512 | fi;; |
---|
| 2513 | esac |
---|
| 2514 | # Pass precious variables to config.status. |
---|
| 2515 | if test "$ac_new_set" = set; then |
---|
| 2516 | case $ac_new_val in |
---|
| 2517 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 2518 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 2519 | esac |
---|
| 2520 | case " $ac_configure_args " in |
---|
| 2521 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 2522 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
| 2523 | esac |
---|
| 2524 | fi |
---|
| 2525 | done |
---|
| 2526 | if $ac_cache_corrupted; then |
---|
| 2527 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2528 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2529 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
| 2530 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 2531 | as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
---|
| 2532 | and start over" "$LINENO" 5 |
---|
| 2533 | fi |
---|
| 2534 | ## -------------------- ## |
---|
| 2535 | ## Main body of script. ## |
---|
| 2536 | ## -------------------- ## |
---|
| 2537 | |
---|
| 2538 | ac_ext=c |
---|
| 2539 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2540 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2541 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2542 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2543 | |
---|
| 2544 | |
---|
| 2545 | |
---|
| 2546 | # PROCESS THE FOLLOWING MAKEFILES |
---|
| 2547 | |
---|
| 2548 | ac_config_files="$ac_config_files Makefile.conf" |
---|
| 2549 | |
---|
| 2550 | ac_config_headers="$ac_config_headers config.h" |
---|
| 2551 | |
---|
| 2552 | |
---|
| 2553 | # DECLARE PACKAGE OPTIONS |
---|
| 2554 | |
---|
| 2555 | # Check whether --enable-mpiserial was given. |
---|
| 2556 | if test ${enable_mpiserial+y} |
---|
| 2557 | then : |
---|
| 2558 | enableval=$enable_mpiserial; DONOTCHECKMPI="DONOTCHECKMPI" |
---|
| 2559 | |
---|
| 2560 | fi |
---|
| 2561 | |
---|
| 2562 | |
---|
| 2563 | # Check whether --enable-debugging was given. |
---|
| 2564 | if test ${enable_debugging+y} |
---|
| 2565 | then : |
---|
| 2566 | enableval=$enable_debugging; DEBUGGING="ENABLED" |
---|
| 2567 | |
---|
| 2568 | fi |
---|
| 2569 | |
---|
| 2570 | |
---|
| 2571 | # Check whether --enable-selectedrealkind was given. |
---|
| 2572 | if test ${enable_selectedrealkind+y} |
---|
| 2573 | then : |
---|
| 2574 | enableval=$enable_selectedrealkind; SRKDEF="SELECTEDREALKIND" |
---|
| 2575 | |
---|
| 2576 | fi |
---|
| 2577 | |
---|
| 2578 | |
---|
| 2579 | # Check whether --enable-sequence was given. |
---|
| 2580 | if test ${enable_sequence+y} |
---|
| 2581 | then : |
---|
| 2582 | enableval=$enable_sequence; SRKDEF="SEQUENCE" |
---|
| 2583 | fi |
---|
| 2584 | |
---|
| 2585 | |
---|
| 2586 | # Check whether --enable-babel was given. |
---|
| 2587 | if test ${enable_babel+y} |
---|
| 2588 | then : |
---|
| 2589 | enableval=$enable_babel; SRKDEF="SEQUENCE" |
---|
| 2590 | fi |
---|
| 2591 | |
---|
| 2592 | |
---|
| 2593 | |
---|
| 2594 | |
---|
| 2595 | # DECLARE THE FOLLOWING PRECIOUS VARIABLES |
---|
| 2596 | |
---|
| 2597 | |
---|
| 2598 | |
---|
| 2599 | |
---|
| 2600 | |
---|
| 2601 | |
---|
| 2602 | |
---|
| 2603 | |
---|
| 2604 | |
---|
| 2605 | |
---|
| 2606 | |
---|
| 2607 | |
---|
| 2608 | |
---|
| 2609 | |
---|
| 2610 | |
---|
| 2611 | |
---|
| 2612 | |
---|
| 2613 | |
---|
| 2614 | |
---|
| 2615 | |
---|
| 2616 | |
---|
| 2617 | |
---|
| 2618 | # INCLUDE BABELROOT and COMPILER_ROOT in Makefile.conf(autoconf output) |
---|
| 2619 | |
---|
| 2620 | |
---|
| 2621 | |
---|
| 2622 | |
---|
| 2623 | |
---|
| 2624 | # SET TEMPORARY VARIABLES |
---|
| 2625 | |
---|
| 2626 | # OS AND PLATFORM NAME |
---|
| 2627 | test "$osname"=NONE && osname=`uname -s` |
---|
| 2628 | test "$machinename"=NONE && machinename=`uname -m` |
---|
| 2629 | fullhostname=`hostname -f` |
---|
| 2630 | |
---|
| 2631 | # START TESTS |
---|
| 2632 | |
---|
| 2633 | # CHECK FOR THE C COMPILER |
---|
| 2634 | |
---|
| 2635 | |
---|
| 2636 | |
---|
| 2637 | |
---|
| 2638 | |
---|
| 2639 | |
---|
| 2640 | |
---|
| 2641 | |
---|
| 2642 | |
---|
| 2643 | ac_ext=c |
---|
| 2644 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2645 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2646 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2647 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2648 | if test -n "$ac_tool_prefix"; then |
---|
| 2649 | for ac_prog in cc |
---|
| 2650 | do |
---|
| 2651 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2652 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2653 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2654 | printf %s "checking for $ac_word... " >&6; } |
---|
| 2655 | if test ${ac_cv_prog_CC+y} |
---|
| 2656 | then : |
---|
| 2657 | printf %s "(cached) " >&6 |
---|
| 2658 | else $as_nop |
---|
| 2659 | if test -n "$CC"; then |
---|
| 2660 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2661 | else |
---|
| 2662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2663 | for as_dir in $PATH |
---|
| 2664 | do |
---|
| 2665 | IFS=$as_save_IFS |
---|
| 2666 | case $as_dir in #((( |
---|
| 2667 | '') as_dir=./ ;; |
---|
| 2668 | */) ;; |
---|
| 2669 | *) as_dir=$as_dir/ ;; |
---|
| 2670 | esac |
---|
| 2671 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2672 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
---|
| 2673 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2674 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
---|
| 2675 | break 2 |
---|
| 2676 | fi |
---|
| 2677 | done |
---|
| 2678 | done |
---|
| 2679 | IFS=$as_save_IFS |
---|
| 2680 | |
---|
| 2681 | fi |
---|
| 2682 | fi |
---|
| 2683 | CC=$ac_cv_prog_CC |
---|
| 2684 | if test -n "$CC"; then |
---|
| 2685 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
| 2686 | printf "%s\n" "$CC" >&6; } |
---|
| 2687 | else |
---|
| 2688 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2689 | printf "%s\n" "no" >&6; } |
---|
| 2690 | fi |
---|
| 2691 | |
---|
| 2692 | |
---|
| 2693 | test -n "$CC" && break |
---|
| 2694 | done |
---|
| 2695 | fi |
---|
| 2696 | if test -z "$CC"; then |
---|
| 2697 | ac_ct_CC=$CC |
---|
| 2698 | for ac_prog in cc |
---|
| 2699 | do |
---|
| 2700 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2701 | set dummy $ac_prog; ac_word=$2 |
---|
| 2702 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2703 | printf %s "checking for $ac_word... " >&6; } |
---|
| 2704 | if test ${ac_cv_prog_ac_ct_CC+y} |
---|
| 2705 | then : |
---|
| 2706 | printf %s "(cached) " >&6 |
---|
| 2707 | else $as_nop |
---|
| 2708 | if test -n "$ac_ct_CC"; then |
---|
| 2709 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2710 | else |
---|
| 2711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2712 | for as_dir in $PATH |
---|
| 2713 | do |
---|
| 2714 | IFS=$as_save_IFS |
---|
| 2715 | case $as_dir in #((( |
---|
| 2716 | '') as_dir=./ ;; |
---|
| 2717 | */) ;; |
---|
| 2718 | *) as_dir=$as_dir/ ;; |
---|
| 2719 | esac |
---|
| 2720 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2721 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
---|
| 2722 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2723 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
---|
| 2724 | break 2 |
---|
| 2725 | fi |
---|
| 2726 | done |
---|
| 2727 | done |
---|
| 2728 | IFS=$as_save_IFS |
---|
| 2729 | |
---|
| 2730 | fi |
---|
| 2731 | fi |
---|
| 2732 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2733 | if test -n "$ac_ct_CC"; then |
---|
| 2734 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
| 2735 | printf "%s\n" "$ac_ct_CC" >&6; } |
---|
| 2736 | else |
---|
| 2737 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2738 | printf "%s\n" "no" >&6; } |
---|
| 2739 | fi |
---|
| 2740 | |
---|
| 2741 | |
---|
| 2742 | test -n "$ac_ct_CC" && break |
---|
| 2743 | done |
---|
| 2744 | |
---|
| 2745 | if test "x$ac_ct_CC" = x; then |
---|
| 2746 | CC="" |
---|
| 2747 | else |
---|
| 2748 | case $cross_compiling:$ac_tool_warned in |
---|
| 2749 | yes:) |
---|
| 2750 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 2751 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
| 2752 | ac_tool_warned=yes ;; |
---|
| 2753 | esac |
---|
| 2754 | CC=$ac_ct_CC |
---|
| 2755 | fi |
---|
| 2756 | fi |
---|
| 2757 | |
---|
| 2758 | |
---|
| 2759 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2760 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2761 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
| 2762 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 2763 | |
---|
| 2764 | # Provide some information about the compiler. |
---|
| 2765 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
| 2766 | set X $ac_compile |
---|
| 2767 | ac_compiler=$2 |
---|
| 2768 | for ac_option in --version -v -V -qversion -version; do |
---|
| 2769 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
| 2770 | case "(($ac_try" in |
---|
| 2771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2772 | *) ac_try_echo=$ac_try;; |
---|
| 2773 | esac |
---|
| 2774 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 2775 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
| 2776 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
| 2777 | ac_status=$? |
---|
| 2778 | if test -s conftest.err; then |
---|
| 2779 | sed '10a\ |
---|
| 2780 | ... rest of stderr output deleted ... |
---|
| 2781 | 10q' conftest.err >conftest.er1 |
---|
| 2782 | cat conftest.er1 >&5 |
---|
| 2783 | fi |
---|
| 2784 | rm -f conftest.er1 conftest.err |
---|
| 2785 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 2786 | test $ac_status = 0; } |
---|
| 2787 | done |
---|
| 2788 | |
---|
| 2789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 2790 | /* end confdefs.h. */ |
---|
| 2791 | |
---|
| 2792 | int |
---|
| 2793 | main (void) |
---|
| 2794 | { |
---|
| 2795 | |
---|
| 2796 | ; |
---|
| 2797 | return 0; |
---|
| 2798 | } |
---|
| 2799 | _ACEOF |
---|
| 2800 | ac_clean_files_save=$ac_clean_files |
---|
| 2801 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
| 2802 | # Try to create an executable without -o first, disregard a.out. |
---|
| 2803 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 2804 | # of exeext. |
---|
| 2805 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
---|
| 2806 | printf %s "checking whether the C compiler works... " >&6; } |
---|
| 2807 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 2808 | |
---|
| 2809 | # The possible output files: |
---|
| 2810 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
| 2811 | |
---|
| 2812 | ac_rmfiles= |
---|
| 2813 | for ac_file in $ac_files |
---|
| 2814 | do |
---|
| 2815 | case $ac_file in |
---|
| 2816 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
| 2817 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
| 2818 | esac |
---|
| 2819 | done |
---|
| 2820 | rm -f $ac_rmfiles |
---|
| 2821 | |
---|
| 2822 | if { { ac_try="$ac_link_default" |
---|
| 2823 | case "(($ac_try" in |
---|
| 2824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2825 | *) ac_try_echo=$ac_try;; |
---|
| 2826 | esac |
---|
| 2827 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 2828 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
| 2829 | (eval "$ac_link_default") 2>&5 |
---|
| 2830 | ac_status=$? |
---|
| 2831 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 2832 | test $ac_status = 0; } |
---|
| 2833 | then : |
---|
| 2834 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
| 2835 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
| 2836 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
| 2837 | # so that the user can short-circuit this test for compilers unknown to |
---|
| 2838 | # Autoconf. |
---|
| 2839 | for ac_file in $ac_files '' |
---|
| 2840 | do |
---|
| 2841 | test -f "$ac_file" || continue |
---|
| 2842 | case $ac_file in |
---|
| 2843 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
| 2844 | ;; |
---|
| 2845 | [ab].out ) |
---|
| 2846 | # We found the default executable, but exeext='' is most |
---|
| 2847 | # certainly right. |
---|
| 2848 | break;; |
---|
| 2849 | *.* ) |
---|
| 2850 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
---|
| 2851 | then :; else |
---|
| 2852 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2853 | fi |
---|
| 2854 | # We set ac_cv_exeext here because the later test for it is not |
---|
| 2855 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
| 2856 | # argument, so we may need to know it at that point already. |
---|
| 2857 | # Even if this section looks crufty: it has the advantage of |
---|
| 2858 | # actually working. |
---|
| 2859 | break;; |
---|
| 2860 | * ) |
---|
| 2861 | break;; |
---|
| 2862 | esac |
---|
| 2863 | done |
---|
| 2864 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
| 2865 | |
---|
| 2866 | else $as_nop |
---|
| 2867 | ac_file='' |
---|
| 2868 | fi |
---|
| 2869 | if test -z "$ac_file" |
---|
| 2870 | then : |
---|
| 2871 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2872 | printf "%s\n" "no" >&6; } |
---|
| 2873 | printf "%s\n" "$as_me: failed program was:" >&5 |
---|
| 2874 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2875 | |
---|
| 2876 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2877 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2878 | as_fn_error 77 "C compiler cannot create executables |
---|
| 2879 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 2880 | else $as_nop |
---|
| 2881 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
| 2882 | printf "%s\n" "yes" >&6; } |
---|
| 2883 | fi |
---|
| 2884 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
---|
| 2885 | printf %s "checking for C compiler default output file name... " >&6; } |
---|
| 2886 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
| 2887 | printf "%s\n" "$ac_file" >&6; } |
---|
| 2888 | ac_exeext=$ac_cv_exeext |
---|
| 2889 | |
---|
| 2890 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
| 2891 | ac_clean_files=$ac_clean_files_save |
---|
| 2892 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
| 2893 | printf %s "checking for suffix of executables... " >&6; } |
---|
| 2894 | if { { ac_try="$ac_link" |
---|
| 2895 | case "(($ac_try" in |
---|
| 2896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2897 | *) ac_try_echo=$ac_try;; |
---|
| 2898 | esac |
---|
| 2899 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 2900 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
| 2901 | (eval "$ac_link") 2>&5 |
---|
| 2902 | ac_status=$? |
---|
| 2903 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 2904 | test $ac_status = 0; } |
---|
| 2905 | then : |
---|
| 2906 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 2907 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 2908 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 2909 | # `rm'. |
---|
| 2910 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 2911 | test -f "$ac_file" || continue |
---|
| 2912 | case $ac_file in |
---|
| 2913 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
| 2914 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2915 | break;; |
---|
| 2916 | * ) break;; |
---|
| 2917 | esac |
---|
| 2918 | done |
---|
| 2919 | else $as_nop |
---|
| 2920 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2921 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2922 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
| 2923 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 2924 | fi |
---|
| 2925 | rm -f conftest conftest$ac_cv_exeext |
---|
| 2926 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
| 2927 | printf "%s\n" "$ac_cv_exeext" >&6; } |
---|
| 2928 | |
---|
| 2929 | rm -f conftest.$ac_ext |
---|
| 2930 | EXEEXT=$ac_cv_exeext |
---|
| 2931 | ac_exeext=$EXEEXT |
---|
| 2932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 2933 | /* end confdefs.h. */ |
---|
| 2934 | #include <stdio.h> |
---|
| 2935 | int |
---|
| 2936 | main (void) |
---|
| 2937 | { |
---|
| 2938 | FILE *f = fopen ("conftest.out", "w"); |
---|
| 2939 | return ferror (f) || fclose (f) != 0; |
---|
| 2940 | |
---|
| 2941 | ; |
---|
| 2942 | return 0; |
---|
| 2943 | } |
---|
| 2944 | _ACEOF |
---|
| 2945 | ac_clean_files="$ac_clean_files conftest.out" |
---|
| 2946 | # Check that the compiler produces executables we can run. If not, either |
---|
| 2947 | # the compiler is broken, or we cross compile. |
---|
| 2948 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
| 2949 | printf %s "checking whether we are cross compiling... " >&6; } |
---|
| 2950 | if test "$cross_compiling" != yes; then |
---|
| 2951 | { { ac_try="$ac_link" |
---|
| 2952 | case "(($ac_try" in |
---|
| 2953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2954 | *) ac_try_echo=$ac_try;; |
---|
| 2955 | esac |
---|
| 2956 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 2957 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
| 2958 | (eval "$ac_link") 2>&5 |
---|
| 2959 | ac_status=$? |
---|
| 2960 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 2961 | test $ac_status = 0; } |
---|
| 2962 | if { ac_try='./conftest$ac_cv_exeext' |
---|
| 2963 | { { case "(($ac_try" in |
---|
| 2964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2965 | *) ac_try_echo=$ac_try;; |
---|
| 2966 | esac |
---|
| 2967 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 2968 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
| 2969 | (eval "$ac_try") 2>&5 |
---|
| 2970 | ac_status=$? |
---|
| 2971 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 2972 | test $ac_status = 0; }; }; then |
---|
| 2973 | cross_compiling=no |
---|
| 2974 | else |
---|
| 2975 | if test "$cross_compiling" = maybe; then |
---|
| 2976 | cross_compiling=yes |
---|
| 2977 | else |
---|
| 2978 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2979 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2980 | as_fn_error 77 "cannot run C compiled programs. |
---|
| 2981 | If you meant to cross compile, use \`--host'. |
---|
| 2982 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 2983 | fi |
---|
| 2984 | fi |
---|
| 2985 | fi |
---|
| 2986 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
| 2987 | printf "%s\n" "$cross_compiling" >&6; } |
---|
| 2988 | |
---|
| 2989 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
| 2990 | ac_clean_files=$ac_clean_files_save |
---|
| 2991 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
| 2992 | printf %s "checking for suffix of object files... " >&6; } |
---|
| 2993 | if test ${ac_cv_objext+y} |
---|
| 2994 | then : |
---|
| 2995 | printf %s "(cached) " >&6 |
---|
| 2996 | else $as_nop |
---|
| 2997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 2998 | /* end confdefs.h. */ |
---|
| 2999 | |
---|
| 3000 | int |
---|
| 3001 | main (void) |
---|
| 3002 | { |
---|
| 3003 | |
---|
| 3004 | ; |
---|
| 3005 | return 0; |
---|
| 3006 | } |
---|
| 3007 | _ACEOF |
---|
| 3008 | rm -f conftest.o conftest.obj |
---|
| 3009 | if { { ac_try="$ac_compile" |
---|
| 3010 | case "(($ac_try" in |
---|
| 3011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3012 | *) ac_try_echo=$ac_try;; |
---|
| 3013 | esac |
---|
| 3014 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 3015 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
| 3016 | (eval "$ac_compile") 2>&5 |
---|
| 3017 | ac_status=$? |
---|
| 3018 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 3019 | test $ac_status = 0; } |
---|
| 3020 | then : |
---|
| 3021 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
| 3022 | test -f "$ac_file" || continue; |
---|
| 3023 | case $ac_file in |
---|
| 3024 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
| 3025 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 3026 | break;; |
---|
| 3027 | esac |
---|
| 3028 | done |
---|
| 3029 | else $as_nop |
---|
| 3030 | printf "%s\n" "$as_me: failed program was:" >&5 |
---|
| 3031 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3032 | |
---|
| 3033 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 3034 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 3035 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
| 3036 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 3037 | fi |
---|
| 3038 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 3039 | fi |
---|
| 3040 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
| 3041 | printf "%s\n" "$ac_cv_objext" >&6; } |
---|
| 3042 | OBJEXT=$ac_cv_objext |
---|
| 3043 | ac_objext=$OBJEXT |
---|
| 3044 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
---|
| 3045 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
---|
| 3046 | if test ${ac_cv_c_compiler_gnu+y} |
---|
| 3047 | then : |
---|
| 3048 | printf %s "(cached) " >&6 |
---|
| 3049 | else $as_nop |
---|
| 3050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3051 | /* end confdefs.h. */ |
---|
| 3052 | |
---|
| 3053 | int |
---|
| 3054 | main (void) |
---|
| 3055 | { |
---|
| 3056 | #ifndef __GNUC__ |
---|
| 3057 | choke me |
---|
| 3058 | #endif |
---|
| 3059 | |
---|
| 3060 | ; |
---|
| 3061 | return 0; |
---|
| 3062 | } |
---|
| 3063 | _ACEOF |
---|
| 3064 | if ac_fn_c_try_compile "$LINENO" |
---|
| 3065 | then : |
---|
| 3066 | ac_compiler_gnu=yes |
---|
| 3067 | else $as_nop |
---|
| 3068 | ac_compiler_gnu=no |
---|
| 3069 | fi |
---|
| 3070 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 3071 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 3072 | |
---|
| 3073 | fi |
---|
| 3074 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 3075 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
---|
| 3076 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3077 | |
---|
| 3078 | if test $ac_compiler_gnu = yes; then |
---|
| 3079 | GCC=yes |
---|
| 3080 | else |
---|
| 3081 | GCC= |
---|
| 3082 | fi |
---|
| 3083 | ac_test_CFLAGS=${CFLAGS+y} |
---|
| 3084 | ac_save_CFLAGS=$CFLAGS |
---|
| 3085 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
| 3086 | printf %s "checking whether $CC accepts -g... " >&6; } |
---|
| 3087 | if test ${ac_cv_prog_cc_g+y} |
---|
| 3088 | then : |
---|
| 3089 | printf %s "(cached) " >&6 |
---|
| 3090 | else $as_nop |
---|
| 3091 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
| 3092 | ac_c_werror_flag=yes |
---|
| 3093 | ac_cv_prog_cc_g=no |
---|
| 3094 | CFLAGS="-g" |
---|
| 3095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3096 | /* end confdefs.h. */ |
---|
| 3097 | |
---|
| 3098 | int |
---|
| 3099 | main (void) |
---|
| 3100 | { |
---|
| 3101 | |
---|
| 3102 | ; |
---|
| 3103 | return 0; |
---|
| 3104 | } |
---|
| 3105 | _ACEOF |
---|
| 3106 | if ac_fn_c_try_compile "$LINENO" |
---|
| 3107 | then : |
---|
| 3108 | ac_cv_prog_cc_g=yes |
---|
| 3109 | else $as_nop |
---|
| 3110 | CFLAGS="" |
---|
| 3111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3112 | /* end confdefs.h. */ |
---|
| 3113 | |
---|
| 3114 | int |
---|
| 3115 | main (void) |
---|
| 3116 | { |
---|
| 3117 | |
---|
| 3118 | ; |
---|
| 3119 | return 0; |
---|
| 3120 | } |
---|
| 3121 | _ACEOF |
---|
| 3122 | if ac_fn_c_try_compile "$LINENO" |
---|
| 3123 | then : |
---|
| 3124 | |
---|
| 3125 | else $as_nop |
---|
| 3126 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
| 3127 | CFLAGS="-g" |
---|
| 3128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3129 | /* end confdefs.h. */ |
---|
| 3130 | |
---|
| 3131 | int |
---|
| 3132 | main (void) |
---|
| 3133 | { |
---|
| 3134 | |
---|
| 3135 | ; |
---|
| 3136 | return 0; |
---|
| 3137 | } |
---|
| 3138 | _ACEOF |
---|
| 3139 | if ac_fn_c_try_compile "$LINENO" |
---|
| 3140 | then : |
---|
| 3141 | ac_cv_prog_cc_g=yes |
---|
| 3142 | fi |
---|
| 3143 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 3144 | fi |
---|
| 3145 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 3146 | fi |
---|
| 3147 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 3148 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
| 3149 | fi |
---|
| 3150 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
| 3151 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
---|
| 3152 | if test $ac_test_CFLAGS; then |
---|
| 3153 | CFLAGS=$ac_save_CFLAGS |
---|
| 3154 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 3155 | if test "$GCC" = yes; then |
---|
| 3156 | CFLAGS="-g -O2" |
---|
| 3157 | else |
---|
| 3158 | CFLAGS="-g" |
---|
| 3159 | fi |
---|
| 3160 | else |
---|
| 3161 | if test "$GCC" = yes; then |
---|
| 3162 | CFLAGS="-O2" |
---|
| 3163 | else |
---|
| 3164 | CFLAGS= |
---|
| 3165 | fi |
---|
| 3166 | fi |
---|
| 3167 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
---|
| 3168 | printf %s "checking for $CC option to enable C11 features... " >&6; } |
---|
| 3169 | if test ${ac_cv_prog_cc_c11+y} |
---|
| 3170 | then : |
---|
| 3171 | printf %s "(cached) " >&6 |
---|
| 3172 | else $as_nop |
---|
| 3173 | ac_cv_prog_cc_c11=no |
---|
| 3174 | ac_save_CC=$CC |
---|
| 3175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3176 | /* end confdefs.h. */ |
---|
| 3177 | $ac_c_conftest_c11_program |
---|
| 3178 | _ACEOF |
---|
| 3179 | for ac_arg in '' -std=gnu11 |
---|
| 3180 | do |
---|
| 3181 | CC="$ac_save_CC $ac_arg" |
---|
| 3182 | if ac_fn_c_try_compile "$LINENO" |
---|
| 3183 | then : |
---|
| 3184 | ac_cv_prog_cc_c11=$ac_arg |
---|
| 3185 | fi |
---|
| 3186 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
---|
| 3187 | test "x$ac_cv_prog_cc_c11" != "xno" && break |
---|
| 3188 | done |
---|
| 3189 | rm -f conftest.$ac_ext |
---|
| 3190 | CC=$ac_save_CC |
---|
| 3191 | |
---|
| 3192 | fi |
---|
| 3193 | # AC_CACHE_VAL |
---|
| 3194 | ac_prog_cc_stdc_options= |
---|
| 3195 | case "x$ac_cv_prog_cc_c11" in #( |
---|
| 3196 | x) : |
---|
| 3197 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
| 3198 | printf "%s\n" "none needed" >&6; } ;; #( |
---|
| 3199 | xno) : |
---|
| 3200 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
| 3201 | printf "%s\n" "unsupported" >&6; } ;; #( |
---|
| 3202 | *) : |
---|
| 3203 | ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11" |
---|
| 3204 | CC="$CC$ac_prog_cc_stdc_options" |
---|
| 3205 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
---|
| 3206 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } ;; |
---|
| 3207 | esac |
---|
| 3208 | if test "x$ac_cv_prog_cc_c11" != xno |
---|
| 3209 | then : |
---|
| 3210 | ac_prog_cc_stdc=c11 |
---|
| 3211 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
---|
| 3212 | else $as_nop |
---|
| 3213 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
---|
| 3214 | printf %s "checking for $CC option to enable C99 features... " >&6; } |
---|
| 3215 | if test ${ac_cv_prog_cc_c99+y} |
---|
| 3216 | then : |
---|
| 3217 | printf %s "(cached) " >&6 |
---|
| 3218 | else $as_nop |
---|
| 3219 | ac_cv_prog_cc_c99=no |
---|
| 3220 | ac_save_CC=$CC |
---|
| 3221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3222 | /* end confdefs.h. */ |
---|
| 3223 | $ac_c_conftest_c89_program |
---|
| 3224 | _ACEOF |
---|
| 3225 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99 |
---|
| 3226 | do |
---|
| 3227 | CC="$ac_save_CC $ac_arg" |
---|
| 3228 | if ac_fn_c_try_compile "$LINENO" |
---|
| 3229 | then : |
---|
| 3230 | ac_cv_prog_cc_c99=$ac_arg |
---|
| 3231 | fi |
---|
| 3232 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
---|
| 3233 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
---|
| 3234 | done |
---|
| 3235 | rm -f conftest.$ac_ext |
---|
| 3236 | CC=$ac_save_CC |
---|
| 3237 | |
---|
| 3238 | fi |
---|
| 3239 | # AC_CACHE_VAL |
---|
| 3240 | ac_prog_cc_stdc_options= |
---|
| 3241 | case "x$ac_cv_prog_cc_c99" in #( |
---|
| 3242 | x) : |
---|
| 3243 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
| 3244 | printf "%s\n" "none needed" >&6; } ;; #( |
---|
| 3245 | xno) : |
---|
| 3246 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
| 3247 | printf "%s\n" "unsupported" >&6; } ;; #( |
---|
| 3248 | *) : |
---|
| 3249 | ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99" |
---|
| 3250 | CC="$CC$ac_prog_cc_stdc_options" |
---|
| 3251 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
---|
| 3252 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } ;; |
---|
| 3253 | esac |
---|
| 3254 | if test "x$ac_cv_prog_cc_c99" != xno |
---|
| 3255 | then : |
---|
| 3256 | ac_prog_cc_stdc=c99 |
---|
| 3257 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
---|
| 3258 | else $as_nop |
---|
| 3259 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
---|
| 3260 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
---|
| 3261 | if test ${ac_cv_prog_cc_c89+y} |
---|
| 3262 | then : |
---|
| 3263 | printf %s "(cached) " >&6 |
---|
| 3264 | else $as_nop |
---|
| 3265 | ac_cv_prog_cc_c89=no |
---|
| 3266 | ac_save_CC=$CC |
---|
| 3267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3268 | /* end confdefs.h. */ |
---|
| 3269 | $ac_c_conftest_c89_program |
---|
| 3270 | _ACEOF |
---|
| 3271 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
| 3272 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 3273 | do |
---|
| 3274 | CC="$ac_save_CC $ac_arg" |
---|
| 3275 | if ac_fn_c_try_compile "$LINENO" |
---|
| 3276 | then : |
---|
| 3277 | ac_cv_prog_cc_c89=$ac_arg |
---|
| 3278 | fi |
---|
| 3279 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
---|
| 3280 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
| 3281 | done |
---|
| 3282 | rm -f conftest.$ac_ext |
---|
| 3283 | CC=$ac_save_CC |
---|
| 3284 | |
---|
| 3285 | fi |
---|
| 3286 | # AC_CACHE_VAL |
---|
| 3287 | ac_prog_cc_stdc_options= |
---|
| 3288 | case "x$ac_cv_prog_cc_c89" in #( |
---|
| 3289 | x) : |
---|
| 3290 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
| 3291 | printf "%s\n" "none needed" >&6; } ;; #( |
---|
| 3292 | xno) : |
---|
| 3293 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
| 3294 | printf "%s\n" "unsupported" >&6; } ;; #( |
---|
| 3295 | *) : |
---|
| 3296 | ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89" |
---|
| 3297 | CC="$CC$ac_prog_cc_stdc_options" |
---|
| 3298 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
| 3299 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
| 3300 | esac |
---|
| 3301 | if test "x$ac_cv_prog_cc_c89" != xno |
---|
| 3302 | then : |
---|
| 3303 | ac_prog_cc_stdc=c89 |
---|
| 3304 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
---|
| 3305 | else $as_nop |
---|
| 3306 | ac_prog_cc_stdc=no |
---|
| 3307 | ac_cv_prog_cc_stdc=no |
---|
| 3308 | fi |
---|
| 3309 | |
---|
| 3310 | fi |
---|
| 3311 | |
---|
| 3312 | fi |
---|
| 3313 | |
---|
| 3314 | ac_ext=c |
---|
| 3315 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3316 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3317 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3318 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3319 | |
---|
| 3320 | |
---|
| 3321 | # CHECK FOR BYTE ORDERING |
---|
| 3322 | |
---|
| 3323 | ac_header= ac_cache= |
---|
| 3324 | for ac_item in $ac_header_c_list |
---|
| 3325 | do |
---|
| 3326 | if test $ac_cache; then |
---|
| 3327 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
---|
| 3328 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
---|
| 3329 | printf "%s\n" "#define $ac_item 1" >> confdefs.h |
---|
| 3330 | fi |
---|
| 3331 | ac_header= ac_cache= |
---|
| 3332 | elif test $ac_header; then |
---|
| 3333 | ac_cache=$ac_item |
---|
| 3334 | else |
---|
| 3335 | ac_header=$ac_item |
---|
| 3336 | fi |
---|
| 3337 | done |
---|
| 3338 | |
---|
| 3339 | |
---|
| 3340 | |
---|
| 3341 | |
---|
| 3342 | |
---|
| 3343 | |
---|
| 3344 | |
---|
| 3345 | |
---|
| 3346 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
---|
| 3347 | then : |
---|
| 3348 | |
---|
| 3349 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
---|
| 3350 | |
---|
| 3351 | fi |
---|
| 3352 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
---|
| 3353 | printf %s "checking whether byte ordering is bigendian... " >&6; } |
---|
| 3354 | if test ${ac_cv_c_bigendian+y} |
---|
| 3355 | then : |
---|
| 3356 | printf %s "(cached) " >&6 |
---|
| 3357 | else $as_nop |
---|
| 3358 | ac_cv_c_bigendian=unknown |
---|
| 3359 | # See if we're dealing with a universal compiler. |
---|
| 3360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3361 | /* end confdefs.h. */ |
---|
| 3362 | #ifndef __APPLE_CC__ |
---|
| 3363 | not a universal capable compiler |
---|
| 3364 | #endif |
---|
| 3365 | typedef int dummy; |
---|
| 3366 | |
---|
| 3367 | _ACEOF |
---|
| 3368 | if ac_fn_c_try_compile "$LINENO" |
---|
| 3369 | then : |
---|
| 3370 | |
---|
| 3371 | # Check for potential -arch flags. It is not universal unless |
---|
| 3372 | # there are at least two -arch flags with different values. |
---|
| 3373 | ac_arch= |
---|
| 3374 | ac_prev= |
---|
| 3375 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
---|
| 3376 | if test -n "$ac_prev"; then |
---|
| 3377 | case $ac_word in |
---|
| 3378 | i?86 | x86_64 | ppc | ppc64) |
---|
| 3379 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
---|
| 3380 | ac_arch=$ac_word |
---|
| 3381 | else |
---|
| 3382 | ac_cv_c_bigendian=universal |
---|
| 3383 | break |
---|
| 3384 | fi |
---|
| 3385 | ;; |
---|
| 3386 | esac |
---|
| 3387 | ac_prev= |
---|
| 3388 | elif test "x$ac_word" = "x-arch"; then |
---|
| 3389 | ac_prev=arch |
---|
| 3390 | fi |
---|
| 3391 | done |
---|
| 3392 | fi |
---|
| 3393 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 3394 | if test $ac_cv_c_bigendian = unknown; then |
---|
| 3395 | # See if sys/param.h defines the BYTE_ORDER macro. |
---|
| 3396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3397 | /* end confdefs.h. */ |
---|
| 3398 | #include <sys/types.h> |
---|
| 3399 | #include <sys/param.h> |
---|
| 3400 | |
---|
| 3401 | int |
---|
| 3402 | main (void) |
---|
| 3403 | { |
---|
| 3404 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
---|
| 3405 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
---|
| 3406 | && LITTLE_ENDIAN) |
---|
| 3407 | bogus endian macros |
---|
| 3408 | #endif |
---|
| 3409 | |
---|
| 3410 | ; |
---|
| 3411 | return 0; |
---|
| 3412 | } |
---|
| 3413 | _ACEOF |
---|
| 3414 | if ac_fn_c_try_compile "$LINENO" |
---|
| 3415 | then : |
---|
| 3416 | # It does; now see whether it defined to BIG_ENDIAN or not. |
---|
| 3417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3418 | /* end confdefs.h. */ |
---|
| 3419 | #include <sys/types.h> |
---|
| 3420 | #include <sys/param.h> |
---|
| 3421 | |
---|
| 3422 | int |
---|
| 3423 | main (void) |
---|
| 3424 | { |
---|
| 3425 | #if BYTE_ORDER != BIG_ENDIAN |
---|
| 3426 | not big endian |
---|
| 3427 | #endif |
---|
| 3428 | |
---|
| 3429 | ; |
---|
| 3430 | return 0; |
---|
| 3431 | } |
---|
| 3432 | _ACEOF |
---|
| 3433 | if ac_fn_c_try_compile "$LINENO" |
---|
| 3434 | then : |
---|
| 3435 | ac_cv_c_bigendian=yes |
---|
| 3436 | else $as_nop |
---|
| 3437 | ac_cv_c_bigendian=no |
---|
| 3438 | fi |
---|
| 3439 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 3440 | fi |
---|
| 3441 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 3442 | fi |
---|
| 3443 | if test $ac_cv_c_bigendian = unknown; then |
---|
| 3444 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
---|
| 3445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3446 | /* end confdefs.h. */ |
---|
| 3447 | #include <limits.h> |
---|
| 3448 | |
---|
| 3449 | int |
---|
| 3450 | main (void) |
---|
| 3451 | { |
---|
| 3452 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
---|
| 3453 | bogus endian macros |
---|
| 3454 | #endif |
---|
| 3455 | |
---|
| 3456 | ; |
---|
| 3457 | return 0; |
---|
| 3458 | } |
---|
| 3459 | _ACEOF |
---|
| 3460 | if ac_fn_c_try_compile "$LINENO" |
---|
| 3461 | then : |
---|
| 3462 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
---|
| 3463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3464 | /* end confdefs.h. */ |
---|
| 3465 | #include <limits.h> |
---|
| 3466 | |
---|
| 3467 | int |
---|
| 3468 | main (void) |
---|
| 3469 | { |
---|
| 3470 | #ifndef _BIG_ENDIAN |
---|
| 3471 | not big endian |
---|
| 3472 | #endif |
---|
| 3473 | |
---|
| 3474 | ; |
---|
| 3475 | return 0; |
---|
| 3476 | } |
---|
| 3477 | _ACEOF |
---|
| 3478 | if ac_fn_c_try_compile "$LINENO" |
---|
| 3479 | then : |
---|
| 3480 | ac_cv_c_bigendian=yes |
---|
| 3481 | else $as_nop |
---|
| 3482 | ac_cv_c_bigendian=no |
---|
| 3483 | fi |
---|
| 3484 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 3485 | fi |
---|
| 3486 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 3487 | fi |
---|
| 3488 | if test $ac_cv_c_bigendian = unknown; then |
---|
| 3489 | # Compile a test program. |
---|
| 3490 | if test "$cross_compiling" = yes |
---|
| 3491 | then : |
---|
| 3492 | # Try to guess by grepping values from an object file. |
---|
| 3493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3494 | /* end confdefs.h. */ |
---|
| 3495 | unsigned short int ascii_mm[] = |
---|
| 3496 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
---|
| 3497 | unsigned short int ascii_ii[] = |
---|
| 3498 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
---|
| 3499 | int use_ascii (int i) { |
---|
| 3500 | return ascii_mm[i] + ascii_ii[i]; |
---|
| 3501 | } |
---|
| 3502 | unsigned short int ebcdic_ii[] = |
---|
| 3503 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
---|
| 3504 | unsigned short int ebcdic_mm[] = |
---|
| 3505 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
---|
| 3506 | int use_ebcdic (int i) { |
---|
| 3507 | return ebcdic_mm[i] + ebcdic_ii[i]; |
---|
| 3508 | } |
---|
| 3509 | extern int foo; |
---|
| 3510 | |
---|
| 3511 | int |
---|
| 3512 | main (void) |
---|
| 3513 | { |
---|
| 3514 | return use_ascii (foo) == use_ebcdic (foo); |
---|
| 3515 | ; |
---|
| 3516 | return 0; |
---|
| 3517 | } |
---|
| 3518 | _ACEOF |
---|
| 3519 | if ac_fn_c_try_compile "$LINENO" |
---|
| 3520 | then : |
---|
| 3521 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
---|
| 3522 | ac_cv_c_bigendian=yes |
---|
| 3523 | fi |
---|
| 3524 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
---|
| 3525 | if test "$ac_cv_c_bigendian" = unknown; then |
---|
| 3526 | ac_cv_c_bigendian=no |
---|
| 3527 | else |
---|
| 3528 | # finding both strings is unlikely to happen, but who knows? |
---|
| 3529 | ac_cv_c_bigendian=unknown |
---|
| 3530 | fi |
---|
| 3531 | fi |
---|
| 3532 | fi |
---|
| 3533 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 3534 | else $as_nop |
---|
| 3535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3536 | /* end confdefs.h. */ |
---|
| 3537 | $ac_includes_default |
---|
| 3538 | int |
---|
| 3539 | main (void) |
---|
| 3540 | { |
---|
| 3541 | |
---|
| 3542 | /* Are we little or big endian? From Harbison&Steele. */ |
---|
| 3543 | union |
---|
| 3544 | { |
---|
| 3545 | long int l; |
---|
| 3546 | char c[sizeof (long int)]; |
---|
| 3547 | } u; |
---|
| 3548 | u.l = 1; |
---|
| 3549 | return u.c[sizeof (long int) - 1] == 1; |
---|
| 3550 | |
---|
| 3551 | ; |
---|
| 3552 | return 0; |
---|
| 3553 | } |
---|
| 3554 | _ACEOF |
---|
| 3555 | if ac_fn_c_try_run "$LINENO" |
---|
| 3556 | then : |
---|
| 3557 | ac_cv_c_bigendian=no |
---|
| 3558 | else $as_nop |
---|
| 3559 | ac_cv_c_bigendian=yes |
---|
| 3560 | fi |
---|
| 3561 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
| 3562 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 3563 | fi |
---|
| 3564 | |
---|
| 3565 | fi |
---|
| 3566 | fi |
---|
| 3567 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
---|
| 3568 | printf "%s\n" "$ac_cv_c_bigendian" >&6; } |
---|
| 3569 | case $ac_cv_c_bigendian in #( |
---|
| 3570 | yes) |
---|
| 3571 | printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h |
---|
| 3572 | ;; #( |
---|
| 3573 | no) |
---|
| 3574 | ;; #( |
---|
| 3575 | universal) |
---|
| 3576 | |
---|
| 3577 | printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
---|
| 3578 | |
---|
| 3579 | ;; #( |
---|
| 3580 | *) |
---|
| 3581 | as_fn_error $? "unknown endianness |
---|
| 3582 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
---|
| 3583 | esac |
---|
| 3584 | |
---|
| 3585 | |
---|
| 3586 | # CHECK FOR THE FORTRAN COMPILER |
---|
| 3587 | # RLJ- specify the order, include PathScale and do not search for F77 |
---|
| 3588 | ac_ext=${ac_fc_srcext-f} |
---|
| 3589 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
| 3590 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
| 3591 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
| 3592 | if test -n "$ac_tool_prefix"; then |
---|
| 3593 | for ac_prog in nagfor xlf95 pgf95 ifort gfortran pathf95 ftn lf95 f95 fort ifc efc xlf90 pgf90 pathf90 epcf90 pghpf |
---|
| 3594 | do |
---|
| 3595 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 3596 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 3597 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 3598 | printf %s "checking for $ac_word... " >&6; } |
---|
| 3599 | if test ${ac_cv_prog_FC+y} |
---|
| 3600 | then : |
---|
| 3601 | printf %s "(cached) " >&6 |
---|
| 3602 | else $as_nop |
---|
| 3603 | if test -n "$FC"; then |
---|
| 3604 | ac_cv_prog_FC="$FC" # Let the user override the test. |
---|
| 3605 | else |
---|
| 3606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3607 | for as_dir in $PATH |
---|
| 3608 | do |
---|
| 3609 | IFS=$as_save_IFS |
---|
| 3610 | case $as_dir in #((( |
---|
| 3611 | '') as_dir=./ ;; |
---|
| 3612 | */) ;; |
---|
| 3613 | *) as_dir=$as_dir/ ;; |
---|
| 3614 | esac |
---|
| 3615 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3616 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
---|
| 3617 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
---|
| 3618 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
---|
| 3619 | break 2 |
---|
| 3620 | fi |
---|
| 3621 | done |
---|
| 3622 | done |
---|
| 3623 | IFS=$as_save_IFS |
---|
| 3624 | |
---|
| 3625 | fi |
---|
| 3626 | fi |
---|
| 3627 | FC=$ac_cv_prog_FC |
---|
| 3628 | if test -n "$FC"; then |
---|
| 3629 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 |
---|
| 3630 | printf "%s\n" "$FC" >&6; } |
---|
| 3631 | else |
---|
| 3632 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3633 | printf "%s\n" "no" >&6; } |
---|
| 3634 | fi |
---|
| 3635 | |
---|
| 3636 | |
---|
| 3637 | test -n "$FC" && break |
---|
| 3638 | done |
---|
| 3639 | fi |
---|
| 3640 | if test -z "$FC"; then |
---|
| 3641 | ac_ct_FC=$FC |
---|
| 3642 | for ac_prog in nagfor xlf95 pgf95 ifort gfortran pathf95 ftn lf95 f95 fort ifc efc xlf90 pgf90 pathf90 epcf90 pghpf |
---|
| 3643 | do |
---|
| 3644 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 3645 | set dummy $ac_prog; ac_word=$2 |
---|
| 3646 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 3647 | printf %s "checking for $ac_word... " >&6; } |
---|
| 3648 | if test ${ac_cv_prog_ac_ct_FC+y} |
---|
| 3649 | then : |
---|
| 3650 | printf %s "(cached) " >&6 |
---|
| 3651 | else $as_nop |
---|
| 3652 | if test -n "$ac_ct_FC"; then |
---|
| 3653 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. |
---|
| 3654 | else |
---|
| 3655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3656 | for as_dir in $PATH |
---|
| 3657 | do |
---|
| 3658 | IFS=$as_save_IFS |
---|
| 3659 | case $as_dir in #((( |
---|
| 3660 | '') as_dir=./ ;; |
---|
| 3661 | */) ;; |
---|
| 3662 | *) as_dir=$as_dir/ ;; |
---|
| 3663 | esac |
---|
| 3664 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3665 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
---|
| 3666 | ac_cv_prog_ac_ct_FC="$ac_prog" |
---|
| 3667 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
---|
| 3668 | break 2 |
---|
| 3669 | fi |
---|
| 3670 | done |
---|
| 3671 | done |
---|
| 3672 | IFS=$as_save_IFS |
---|
| 3673 | |
---|
| 3674 | fi |
---|
| 3675 | fi |
---|
| 3676 | ac_ct_FC=$ac_cv_prog_ac_ct_FC |
---|
| 3677 | if test -n "$ac_ct_FC"; then |
---|
| 3678 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 |
---|
| 3679 | printf "%s\n" "$ac_ct_FC" >&6; } |
---|
| 3680 | else |
---|
| 3681 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3682 | printf "%s\n" "no" >&6; } |
---|
| 3683 | fi |
---|
| 3684 | |
---|
| 3685 | |
---|
| 3686 | test -n "$ac_ct_FC" && break |
---|
| 3687 | done |
---|
| 3688 | |
---|
| 3689 | if test "x$ac_ct_FC" = x; then |
---|
| 3690 | FC="" |
---|
| 3691 | else |
---|
| 3692 | case $cross_compiling:$ac_tool_warned in |
---|
| 3693 | yes:) |
---|
| 3694 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 3695 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
| 3696 | ac_tool_warned=yes ;; |
---|
| 3697 | esac |
---|
| 3698 | FC=$ac_ct_FC |
---|
| 3699 | fi |
---|
| 3700 | fi |
---|
| 3701 | |
---|
| 3702 | |
---|
| 3703 | # Provide some information about the compiler. |
---|
| 3704 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 |
---|
| 3705 | set X $ac_compile |
---|
| 3706 | ac_compiler=$2 |
---|
| 3707 | for ac_option in --version -v -V -qversion; do |
---|
| 3708 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
| 3709 | case "(($ac_try" in |
---|
| 3710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3711 | *) ac_try_echo=$ac_try;; |
---|
| 3712 | esac |
---|
| 3713 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 3714 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
| 3715 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
| 3716 | ac_status=$? |
---|
| 3717 | if test -s conftest.err; then |
---|
| 3718 | sed '10a\ |
---|
| 3719 | ... rest of stderr output deleted ... |
---|
| 3720 | 10q' conftest.err >conftest.er1 |
---|
| 3721 | cat conftest.er1 >&5 |
---|
| 3722 | fi |
---|
| 3723 | rm -f conftest.er1 conftest.err |
---|
| 3724 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 3725 | test $ac_status = 0; } |
---|
| 3726 | done |
---|
| 3727 | rm -f a.out |
---|
| 3728 | |
---|
| 3729 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
| 3730 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
| 3731 | ac_save_ext=$ac_ext |
---|
| 3732 | ac_ext=F |
---|
| 3733 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU Fortran" >&5 |
---|
| 3734 | printf %s "checking whether the compiler supports GNU Fortran... " >&6; } |
---|
| 3735 | if test ${ac_cv_fc_compiler_gnu+y} |
---|
| 3736 | then : |
---|
| 3737 | printf %s "(cached) " >&6 |
---|
| 3738 | else $as_nop |
---|
| 3739 | cat > conftest.$ac_ext <<_ACEOF |
---|
| 3740 | program main |
---|
| 3741 | #ifndef __GNUC__ |
---|
| 3742 | choke me |
---|
| 3743 | #endif |
---|
| 3744 | |
---|
| 3745 | end |
---|
| 3746 | _ACEOF |
---|
| 3747 | if ac_fn_fc_try_compile "$LINENO" |
---|
| 3748 | then : |
---|
| 3749 | ac_compiler_gnu=yes |
---|
| 3750 | else $as_nop |
---|
| 3751 | ac_compiler_gnu=no |
---|
| 3752 | fi |
---|
| 3753 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 3754 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
---|
| 3755 | |
---|
| 3756 | fi |
---|
| 3757 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 |
---|
| 3758 | printf "%s\n" "$ac_cv_fc_compiler_gnu" >&6; } |
---|
| 3759 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
| 3760 | |
---|
| 3761 | ac_ext=$ac_save_ext |
---|
| 3762 | ac_test_FCFLAGS=${FCFLAGS+y} |
---|
| 3763 | ac_save_FCFLAGS=$FCFLAGS |
---|
| 3764 | FCFLAGS= |
---|
| 3765 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
---|
| 3766 | printf %s "checking whether $FC accepts -g... " >&6; } |
---|
| 3767 | if test ${ac_cv_prog_fc_g+y} |
---|
| 3768 | then : |
---|
| 3769 | printf %s "(cached) " >&6 |
---|
| 3770 | else $as_nop |
---|
| 3771 | FCFLAGS=-g |
---|
| 3772 | cat > conftest.$ac_ext <<_ACEOF |
---|
| 3773 | program main |
---|
| 3774 | |
---|
| 3775 | end |
---|
| 3776 | _ACEOF |
---|
| 3777 | if ac_fn_fc_try_compile "$LINENO" |
---|
| 3778 | then : |
---|
| 3779 | ac_cv_prog_fc_g=yes |
---|
| 3780 | else $as_nop |
---|
| 3781 | ac_cv_prog_fc_g=no |
---|
| 3782 | fi |
---|
| 3783 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 3784 | |
---|
| 3785 | fi |
---|
| 3786 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 |
---|
| 3787 | printf "%s\n" "$ac_cv_prog_fc_g" >&6; } |
---|
| 3788 | if test $ac_test_FCFLAGS; then |
---|
| 3789 | FCFLAGS=$ac_save_FCFLAGS |
---|
| 3790 | elif test $ac_cv_prog_fc_g = yes; then |
---|
| 3791 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
---|
| 3792 | FCFLAGS="-g -O2" |
---|
| 3793 | else |
---|
| 3794 | FCFLAGS="-g" |
---|
| 3795 | fi |
---|
| 3796 | else |
---|
| 3797 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
---|
| 3798 | FCFLAGS="-O2" |
---|
| 3799 | else |
---|
| 3800 | FCFLAGS= |
---|
| 3801 | fi |
---|
| 3802 | fi |
---|
| 3803 | |
---|
| 3804 | if test $ac_compiler_gnu = yes; then |
---|
| 3805 | GFC=yes |
---|
| 3806 | else |
---|
| 3807 | GFC= |
---|
| 3808 | fi |
---|
| 3809 | ac_ext=c |
---|
| 3810 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3811 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3812 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3813 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3814 | |
---|
| 3815 | |
---|
| 3816 | if test -z "$GFC"; then |
---|
| 3817 | IS_GNU="no" |
---|
| 3818 | else |
---|
| 3819 | IS_GNU=$GFC |
---|
| 3820 | fi |
---|
| 3821 | |
---|
| 3822 | # CHECK FOR MPI LIBRARIES |
---|
| 3823 | ac_ext=${ac_fc_srcext-f} |
---|
| 3824 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
| 3825 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
| 3826 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
| 3827 | |
---|
| 3828 | |
---|
| 3829 | |
---|
| 3830 | ac_ext=${ac_fc_srcext-f} |
---|
| 3831 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
| 3832 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
| 3833 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
| 3834 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .F90 files" >&5 |
---|
| 3835 | printf %s "checking for Fortran flag to compile .F90 files... " >&6; } |
---|
| 3836 | if test ${ac_cv_fc_srcext_F90+y} |
---|
| 3837 | then : |
---|
| 3838 | printf %s "(cached) " >&6 |
---|
| 3839 | else $as_nop |
---|
| 3840 | ac_ext=F90 |
---|
| 3841 | ac_fcflags_srcext_save=$ac_fcflags_srcext |
---|
| 3842 | ac_fcflags_srcext= |
---|
| 3843 | ac_cv_fc_srcext_F90=unknown |
---|
| 3844 | case $ac_ext in #( |
---|
| 3845 | [fF]77) ac_try=f77;; #( |
---|
| 3846 | *) ac_try=f95;; |
---|
| 3847 | esac |
---|
| 3848 | for ac_flag in none -qsuffix=f=F90 -Tf "-x $ac_try"; do |
---|
| 3849 | test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag" |
---|
| 3850 | cat > conftest.$ac_ext <<_ACEOF |
---|
| 3851 | program main |
---|
| 3852 | |
---|
| 3853 | end |
---|
| 3854 | _ACEOF |
---|
| 3855 | if ac_fn_fc_try_compile "$LINENO" |
---|
| 3856 | then : |
---|
| 3857 | ac_cv_fc_srcext_F90=$ac_flag; break |
---|
| 3858 | fi |
---|
| 3859 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 3860 | done |
---|
| 3861 | rm -f conftest.$ac_objext conftest.F90 |
---|
| 3862 | ac_fcflags_srcext=$ac_fcflags_srcext_save |
---|
| 3863 | |
---|
| 3864 | fi |
---|
| 3865 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_F90" >&5 |
---|
| 3866 | printf "%s\n" "$ac_cv_fc_srcext_F90" >&6; } |
---|
| 3867 | if test "x$ac_cv_fc_srcext_F90" = xunknown; then |
---|
| 3868 | as_fn_error $? "Fortran could not compile .F90 files" "$LINENO" 5 |
---|
| 3869 | else |
---|
| 3870 | ac_fc_srcext=F90 |
---|
| 3871 | if test "x$ac_cv_fc_srcext_F90" = xnone; then |
---|
| 3872 | ac_fcflags_srcext="" |
---|
| 3873 | FCFLAGS_F90="" |
---|
| 3874 | else |
---|
| 3875 | ac_fcflags_srcext=$ac_cv_fc_srcext_F90 |
---|
| 3876 | FCFLAGS_F90=$ac_cv_fc_srcext_F90 |
---|
| 3877 | fi |
---|
| 3878 | |
---|
| 3879 | |
---|
| 3880 | fi |
---|
| 3881 | ac_ext=${ac_fc_srcext-f} |
---|
| 3882 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
| 3883 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
| 3884 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
| 3885 | |
---|
| 3886 | |
---|
| 3887 | OLDFCFLAGS="$FCFLAGS" |
---|
| 3888 | |
---|
| 3889 | if test -n "$MPIHEADER"; then |
---|
| 3890 | FCFLAGS="$FCFLAGS $MPIHEADER" |
---|
| 3891 | fi |
---|
| 3892 | |
---|
| 3893 | # CHECK MPI BY DEFAULT |
---|
| 3894 | if test -z "$DONOTCHECKMPI"; then |
---|
| 3895 | |
---|
| 3896 | |
---|
| 3897 | |
---|
| 3898 | |
---|
| 3899 | |
---|
| 3900 | for ac_prog in mpif90 hf90 mpxlf90 mpxlf95 mpf90 cmpifc cmpif90c |
---|
| 3901 | do |
---|
| 3902 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 3903 | set dummy $ac_prog; ac_word=$2 |
---|
| 3904 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 3905 | printf %s "checking for $ac_word... " >&6; } |
---|
| 3906 | if test ${ac_cv_prog_MPIFC+y} |
---|
| 3907 | then : |
---|
| 3908 | printf %s "(cached) " >&6 |
---|
| 3909 | else $as_nop |
---|
| 3910 | if test -n "$MPIFC"; then |
---|
| 3911 | ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test. |
---|
| 3912 | else |
---|
| 3913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3914 | for as_dir in $PATH |
---|
| 3915 | do |
---|
| 3916 | IFS=$as_save_IFS |
---|
| 3917 | case $as_dir in #((( |
---|
| 3918 | '') as_dir=./ ;; |
---|
| 3919 | */) ;; |
---|
| 3920 | *) as_dir=$as_dir/ ;; |
---|
| 3921 | esac |
---|
| 3922 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3923 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
---|
| 3924 | ac_cv_prog_MPIFC="$ac_prog" |
---|
| 3925 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
---|
| 3926 | break 2 |
---|
| 3927 | fi |
---|
| 3928 | done |
---|
| 3929 | done |
---|
| 3930 | IFS=$as_save_IFS |
---|
| 3931 | |
---|
| 3932 | fi |
---|
| 3933 | fi |
---|
| 3934 | MPIFC=$ac_cv_prog_MPIFC |
---|
| 3935 | if test -n "$MPIFC"; then |
---|
| 3936 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5 |
---|
| 3937 | printf "%s\n" "$MPIFC" >&6; } |
---|
| 3938 | else |
---|
| 3939 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3940 | printf "%s\n" "no" >&6; } |
---|
| 3941 | fi |
---|
| 3942 | |
---|
| 3943 | |
---|
| 3944 | test -n "$MPIFC" && break |
---|
| 3945 | done |
---|
| 3946 | test -n "$MPIFC" || MPIFC="$FC" |
---|
| 3947 | |
---|
| 3948 | acx_mpi_save_FC="$FC" |
---|
| 3949 | FC="$MPIFC" |
---|
| 3950 | |
---|
| 3951 | |
---|
| 3952 | |
---|
| 3953 | if test x = x"$MPILIBS"; then |
---|
| 3954 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5 |
---|
| 3955 | printf %s "checking for MPI_Init... " >&6; } |
---|
| 3956 | cat > conftest.$ac_ext <<_ACEOF |
---|
| 3957 | program main |
---|
| 3958 | call MPI_Init |
---|
| 3959 | end |
---|
| 3960 | _ACEOF |
---|
| 3961 | if ac_fn_fc_try_link "$LINENO" |
---|
| 3962 | then : |
---|
| 3963 | MPILIBS=" " |
---|
| 3964 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
| 3965 | printf "%s\n" "yes" >&6; } |
---|
| 3966 | else $as_nop |
---|
| 3967 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3968 | printf "%s\n" "no" >&6; } |
---|
| 3969 | fi |
---|
| 3970 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
---|
| 3971 | conftest$ac_exeext conftest.$ac_ext |
---|
| 3972 | fi |
---|
| 3973 | |
---|
| 3974 | if test x = x"$MPILIBS"; then |
---|
| 3975 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5 |
---|
| 3976 | printf %s "checking for MPI_Init in -lfmpi... " >&6; } |
---|
| 3977 | if test ${ac_cv_lib_fmpi_MPI_Init+y} |
---|
| 3978 | then : |
---|
| 3979 | printf %s "(cached) " >&6 |
---|
| 3980 | else $as_nop |
---|
| 3981 | ac_check_lib_save_LIBS=$LIBS |
---|
| 3982 | LIBS="-lfmpi $LIBS" |
---|
| 3983 | cat > conftest.$ac_ext <<_ACEOF |
---|
| 3984 | program main |
---|
| 3985 | call MPI_Init |
---|
| 3986 | end |
---|
| 3987 | _ACEOF |
---|
| 3988 | if ac_fn_fc_try_link "$LINENO" |
---|
| 3989 | then : |
---|
| 3990 | ac_cv_lib_fmpi_MPI_Init=yes |
---|
| 3991 | else $as_nop |
---|
| 3992 | ac_cv_lib_fmpi_MPI_Init=no |
---|
| 3993 | fi |
---|
| 3994 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
---|
| 3995 | conftest$ac_exeext conftest.$ac_ext |
---|
| 3996 | LIBS=$ac_check_lib_save_LIBS |
---|
| 3997 | fi |
---|
| 3998 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5 |
---|
| 3999 | printf "%s\n" "$ac_cv_lib_fmpi_MPI_Init" >&6; } |
---|
| 4000 | if test "x$ac_cv_lib_fmpi_MPI_Init" = xyes |
---|
| 4001 | then : |
---|
| 4002 | MPILIBS="-lfmpi" |
---|
| 4003 | fi |
---|
| 4004 | |
---|
| 4005 | fi |
---|
| 4006 | if test x = x"$MPILIBS"; then |
---|
| 4007 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5 |
---|
| 4008 | printf %s "checking for MPI_Init in -lmpichf90... " >&6; } |
---|
| 4009 | if test ${ac_cv_lib_mpichf90_MPI_Init+y} |
---|
| 4010 | then : |
---|
| 4011 | printf %s "(cached) " >&6 |
---|
| 4012 | else $as_nop |
---|
| 4013 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4014 | LIBS="-lmpichf90 $LIBS" |
---|
| 4015 | cat > conftest.$ac_ext <<_ACEOF |
---|
| 4016 | program main |
---|
| 4017 | call MPI_Init |
---|
| 4018 | end |
---|
| 4019 | _ACEOF |
---|
| 4020 | if ac_fn_fc_try_link "$LINENO" |
---|
| 4021 | then : |
---|
| 4022 | ac_cv_lib_mpichf90_MPI_Init=yes |
---|
| 4023 | else $as_nop |
---|
| 4024 | ac_cv_lib_mpichf90_MPI_Init=no |
---|
| 4025 | fi |
---|
| 4026 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
---|
| 4027 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4028 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4029 | fi |
---|
| 4030 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5 |
---|
| 4031 | printf "%s\n" "$ac_cv_lib_mpichf90_MPI_Init" >&6; } |
---|
| 4032 | if test "x$ac_cv_lib_mpichf90_MPI_Init" = xyes |
---|
| 4033 | then : |
---|
| 4034 | MPILIBS="-lmpichf90" |
---|
| 4035 | fi |
---|
| 4036 | |
---|
| 4037 | fi |
---|
| 4038 | |
---|
| 4039 | if test x = x"$MPILIBS"; then |
---|
| 4040 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 |
---|
| 4041 | printf %s "checking for MPI_Init in -lmpi... " >&6; } |
---|
| 4042 | if test ${ac_cv_lib_mpi_MPI_Init+y} |
---|
| 4043 | then : |
---|
| 4044 | printf %s "(cached) " >&6 |
---|
| 4045 | else $as_nop |
---|
| 4046 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4047 | LIBS="-lmpi $LIBS" |
---|
| 4048 | cat > conftest.$ac_ext <<_ACEOF |
---|
| 4049 | program main |
---|
| 4050 | call MPI_Init |
---|
| 4051 | end |
---|
| 4052 | _ACEOF |
---|
| 4053 | if ac_fn_fc_try_link "$LINENO" |
---|
| 4054 | then : |
---|
| 4055 | ac_cv_lib_mpi_MPI_Init=yes |
---|
| 4056 | else $as_nop |
---|
| 4057 | ac_cv_lib_mpi_MPI_Init=no |
---|
| 4058 | fi |
---|
| 4059 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
---|
| 4060 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4061 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4062 | fi |
---|
| 4063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
---|
| 4064 | printf "%s\n" "$ac_cv_lib_mpi_MPI_Init" >&6; } |
---|
| 4065 | if test "x$ac_cv_lib_mpi_MPI_Init" = xyes |
---|
| 4066 | then : |
---|
| 4067 | MPILIBS="-lmpi" |
---|
| 4068 | fi |
---|
| 4069 | |
---|
| 4070 | fi |
---|
| 4071 | if test x = x"$MPILIBS"; then |
---|
| 4072 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 |
---|
| 4073 | printf %s "checking for MPI_Init in -lmpich... " >&6; } |
---|
| 4074 | if test ${ac_cv_lib_mpich_MPI_Init+y} |
---|
| 4075 | then : |
---|
| 4076 | printf %s "(cached) " >&6 |
---|
| 4077 | else $as_nop |
---|
| 4078 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4079 | LIBS="-lmpich $LIBS" |
---|
| 4080 | cat > conftest.$ac_ext <<_ACEOF |
---|
| 4081 | program main |
---|
| 4082 | call MPI_Init |
---|
| 4083 | end |
---|
| 4084 | _ACEOF |
---|
| 4085 | if ac_fn_fc_try_link "$LINENO" |
---|
| 4086 | then : |
---|
| 4087 | ac_cv_lib_mpich_MPI_Init=yes |
---|
| 4088 | else $as_nop |
---|
| 4089 | ac_cv_lib_mpich_MPI_Init=no |
---|
| 4090 | fi |
---|
| 4091 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
---|
| 4092 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4093 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4094 | fi |
---|
| 4095 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
---|
| 4096 | printf "%s\n" "$ac_cv_lib_mpich_MPI_Init" >&6; } |
---|
| 4097 | if test "x$ac_cv_lib_mpich_MPI_Init" = xyes |
---|
| 4098 | then : |
---|
| 4099 | MPILIBS="-lmpich" |
---|
| 4100 | fi |
---|
| 4101 | |
---|
| 4102 | fi |
---|
| 4103 | |
---|
| 4104 | if test x != x"$MPILIBS"; then |
---|
| 4105 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5 |
---|
| 4106 | printf %s "checking for mpif.h... " >&6; } |
---|
| 4107 | cat > conftest.$ac_ext <<_ACEOF |
---|
| 4108 | program main |
---|
| 4109 | include 'mpif.h' |
---|
| 4110 | end |
---|
| 4111 | _ACEOF |
---|
| 4112 | if ac_fn_fc_try_compile "$LINENO" |
---|
| 4113 | then : |
---|
| 4114 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
| 4115 | printf "%s\n" "yes" >&6; } |
---|
| 4116 | else $as_nop |
---|
| 4117 | MPILIBS="" |
---|
| 4118 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 4119 | printf "%s\n" "no" >&6; } |
---|
| 4120 | fi |
---|
| 4121 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 4122 | fi |
---|
| 4123 | |
---|
| 4124 | FC="$acx_mpi_save_FC" |
---|
| 4125 | |
---|
| 4126 | |
---|
| 4127 | |
---|
| 4128 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
---|
| 4129 | if test x = x"$MPILIBS"; then |
---|
| 4130 | |
---|
| 4131 | : |
---|
| 4132 | else |
---|
| 4133 | |
---|
| 4134 | printf "%s\n" "#define HAVE_MPI 1" >>confdefs.h |
---|
| 4135 | |
---|
| 4136 | : |
---|
| 4137 | fi |
---|
| 4138 | |
---|
| 4139 | fi |
---|
| 4140 | |
---|
| 4141 | # DONT CHECK MPI IF SERIALMPI OPTION IS ENABLED |
---|
| 4142 | if test -n "$DONOTCHECKMPI"; then |
---|
| 4143 | echo "MPISERIAL ENABLED: BYPASSING MPI CHECK" |
---|
| 4144 | if test -z "$MPIFC"; then |
---|
| 4145 | MPIFC=$FC |
---|
| 4146 | fi |
---|
| 4147 | if test -z "$FORT_SIZE"; then |
---|
| 4148 | FORT_SIZE="real4double8" |
---|
| 4149 | echo "FORT_SIZE IS PRESET TO $FORT_SIZE" |
---|
| 4150 | fi |
---|
| 4151 | abs_top_builddir=`pwd` |
---|
| 4152 | MPISERPATH=$abs_top_builddir/mpi-serial |
---|
| 4153 | |
---|
| 4154 | MPIHEADER=-I$MPISERPATH |
---|
| 4155 | MPILIBS="-L$MPISERPATH -lmpi-serial" |
---|
| 4156 | fi |
---|
| 4157 | |
---|
| 4158 | FCFLAGS="$OLDFCFLAGS" |
---|
| 4159 | |
---|
| 4160 | # A HACK TO FIX ACX_MPI TO GET MPILIBS TO BE AN EMPTY STRING |
---|
| 4161 | if test "$MPILIBS" = " "; then |
---|
| 4162 | MPILIBS="" |
---|
| 4163 | fi |
---|
| 4164 | |
---|
| 4165 | # SET FC TO MPIFC. IF MPILIBS IS PRESENT, SET FC TO FC. |
---|
| 4166 | if test -z "$FC"; then |
---|
| 4167 | FC=$MPIFC |
---|
| 4168 | if test "$FC" != "$MPIFC"; then |
---|
| 4169 | if test -n "$MPILIBS"; then |
---|
| 4170 | FC=$FC |
---|
| 4171 | fi |
---|
| 4172 | fi |
---|
| 4173 | fi |
---|
| 4174 | |
---|
| 4175 | # FOR SANITY, CHECK THAT FILENAME EXTENSION FOR FC IS CONSISTENT WITH FC |
---|
| 4176 | OLDFC="$FC" |
---|
| 4177 | FC="$FC" |
---|
| 4178 | |
---|
| 4179 | cat > conftest.$ac_ext <<_ACEOF |
---|
| 4180 | subroutine oof() |
---|
| 4181 | return |
---|
| 4182 | end |
---|
| 4183 | _ACEOF |
---|
| 4184 | if ac_fn_fc_try_compile "$LINENO" |
---|
| 4185 | then : |
---|
| 4186 | |
---|
| 4187 | else $as_nop |
---|
| 4188 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $FC FAILED TO COMPILE FILENAME EXTENSION $ac_ext" >&5 |
---|
| 4189 | printf "%s\n" "$as_me: WARNING: $FC FAILED TO COMPILE FILENAME EXTENSION $ac_ext" >&2;} |
---|
| 4190 | |
---|
| 4191 | fi |
---|
| 4192 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 4193 | |
---|
| 4194 | |
---|
| 4195 | |
---|
| 4196 | FC="$OLDFC" |
---|
| 4197 | |
---|
| 4198 | # CHECK HOW TO GET THE COMPILER VERSION. |
---|
| 4199 | echo "Checking Compiler Version" |
---|
| 4200 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get the version output from $FC" >&5 |
---|
| 4201 | printf %s "checking how to get the version output from $FC... " >&6; } |
---|
| 4202 | if test ${ac_cv_prog_fc_version+y} |
---|
| 4203 | then : |
---|
| 4204 | printf %s "(cached) " >&6 |
---|
| 4205 | else $as_nop |
---|
| 4206 | |
---|
| 4207 | cat > conftest.$ac_ext <<_ACEOF |
---|
| 4208 | program main |
---|
| 4209 | |
---|
| 4210 | end |
---|
| 4211 | _ACEOF |
---|
| 4212 | if ac_fn_fc_try_compile "$LINENO" |
---|
| 4213 | then : |
---|
| 4214 | ac_cv_prog_fc_version= |
---|
| 4215 | # Try some options frequently used verbose output |
---|
| 4216 | for ac_version in -V -version --version +version -qversion; do |
---|
| 4217 | ac_ext=${ac_fc_srcext-f} |
---|
| 4218 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
| 4219 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
| 4220 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
| 4221 | |
---|
| 4222 | cat > conftest.$ac_ext <<_ACEOF |
---|
| 4223 | program main |
---|
| 4224 | |
---|
| 4225 | end |
---|
| 4226 | _ACEOF |
---|
| 4227 | |
---|
| 4228 | # Compile and link our simple test program by passing a flag (argument |
---|
| 4229 | # 1 to this macro) to the Fortran 90 compiler in order to get "version" output |
---|
| 4230 | ac_save_FCFLAGS=$FCFLAGS |
---|
| 4231 | FCFLAGS="$FCFLAGS $ac_version" |
---|
| 4232 | (eval echo $as_me:4232: \"$ac_link\") >&5 |
---|
| 4233 | ac_fc_version_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
---|
| 4234 | echo "$ac_fc_version_output" >&5 |
---|
| 4235 | FCFLAGS=$ac_save_FCFLAGS |
---|
| 4236 | |
---|
| 4237 | rm -f conftest.* |
---|
| 4238 | ac_ext=${ac_fc_srcext-f} |
---|
| 4239 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
| 4240 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
| 4241 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
| 4242 | |
---|
| 4243 | |
---|
| 4244 | # look for "copyright" constructs in the output |
---|
| 4245 | for ac_arg in $ac_fc_version_output; do |
---|
| 4246 | case $ac_arg in |
---|
| 4247 | COPYRIGHT | copyright | Copyright | '(c)' | '(C)' | Compiler | Compilers | Version | Version:) |
---|
| 4248 | ac_cv_prog_fc_version=$ac_version |
---|
| 4249 | break 2 ;; |
---|
| 4250 | esac |
---|
| 4251 | done |
---|
| 4252 | done |
---|
| 4253 | if test -z "$ac_cv_prog_fc_version"; then |
---|
| 4254 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain version information from $FC" >&5 |
---|
| 4255 | printf "%s\n" "$as_me: WARNING: cannot determine how to obtain version information from $FC" >&2;} |
---|
| 4256 | fi |
---|
| 4257 | else $as_nop |
---|
| 4258 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 |
---|
| 4259 | printf "%s\n" "$as_me: WARNING: compilation failed" >&2;} |
---|
| 4260 | fi |
---|
| 4261 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 4262 | |
---|
| 4263 | fi |
---|
| 4264 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_version" >&5 |
---|
| 4265 | printf "%s\n" "$ac_cv_prog_fc_version" >&6; } |
---|
| 4266 | |
---|
| 4267 | ac_ext=c |
---|
| 4268 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 4269 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 4270 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 4271 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 4272 | |
---|
| 4273 | |
---|
| 4274 | # Check how to use the cpp with fortran |
---|
| 4275 | |
---|
| 4276 | ac_ext=${ac_fc_srcext-f} |
---|
| 4277 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
| 4278 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
| 4279 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
| 4280 | ac_fc_pp_define_srcext_save=$ac_fc_srcext |
---|
| 4281 | ac_ext=${ac_fc_srcext-f} |
---|
| 4282 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
| 4283 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
| 4284 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
| 4285 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile preprocessed .F files" >&5 |
---|
| 4286 | printf %s "checking for Fortran flag to compile preprocessed .F files... " >&6; } |
---|
| 4287 | if test ${ac_cv_fc_pp_srcext_F+y} |
---|
| 4288 | then : |
---|
| 4289 | printf %s "(cached) " >&6 |
---|
| 4290 | else $as_nop |
---|
| 4291 | ac_ext=F |
---|
| 4292 | ac_fcflags_pp_srcext_save=$ac_fcflags_srcext |
---|
| 4293 | ac_fcflags_srcext= |
---|
| 4294 | ac_cv_fc_pp_srcext_F=unknown |
---|
| 4295 | case $ac_ext in #( |
---|
| 4296 | [fF]77) ac_try=f77-cpp-input;; #( |
---|
| 4297 | *) ac_try=f95-cpp-input;; |
---|
| 4298 | esac |
---|
| 4299 | for ac_flag in none -ftpp -fpp -Tf "-fpp -Tf" -xpp=fpp -Mpreprocess "-e Z" \ |
---|
| 4300 | -cpp -xpp=cpp -qsuffix=cpp=F "-x $ac_try" +cpp -Cpp; do |
---|
| 4301 | test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag" |
---|
| 4302 | cat > conftest.$ac_ext <<_ACEOF |
---|
| 4303 | program main |
---|
| 4304 | |
---|
| 4305 | #if 0 |
---|
| 4306 | #include <ac_nonexistent.h> |
---|
| 4307 | choke me |
---|
| 4308 | #endif |
---|
| 4309 | end |
---|
| 4310 | _ACEOF |
---|
| 4311 | if ac_fn_fc_try_compile "$LINENO" |
---|
| 4312 | then : |
---|
| 4313 | cat > conftest.$ac_ext <<_ACEOF |
---|
| 4314 | program main |
---|
| 4315 | |
---|
| 4316 | #if 1 |
---|
| 4317 | #include <ac_nonexistent.h> |
---|
| 4318 | choke me |
---|
| 4319 | #endif |
---|
| 4320 | end |
---|
| 4321 | _ACEOF |
---|
| 4322 | if ac_fn_fc_try_compile "$LINENO" |
---|
| 4323 | then : |
---|
| 4324 | |
---|
| 4325 | else $as_nop |
---|
| 4326 | ac_cv_fc_pp_srcext_F=$ac_flag; break |
---|
| 4327 | fi |
---|
| 4328 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 4329 | fi |
---|
| 4330 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 4331 | done |
---|
| 4332 | rm -f conftest.$ac_objext conftest.F |
---|
| 4333 | ac_fcflags_srcext=$ac_fcflags_pp_srcext_save |
---|
| 4334 | |
---|
| 4335 | fi |
---|
| 4336 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_pp_srcext_F" >&5 |
---|
| 4337 | printf "%s\n" "$ac_cv_fc_pp_srcext_F" >&6; } |
---|
| 4338 | if test "x$ac_cv_fc_pp_srcext_F" = xunknown; then |
---|
| 4339 | as_fn_error $? "Fortran could not compile preprocessed .F files" "$LINENO" 5 |
---|
| 4340 | else |
---|
| 4341 | ac_fc_srcext=F |
---|
| 4342 | if test "x$ac_cv_fc_pp_srcext_F" = xnone; then |
---|
| 4343 | ac_fcflags_srcext="" |
---|
| 4344 | FCFLAGS_F="" |
---|
| 4345 | else |
---|
| 4346 | ac_fcflags_srcext=$ac_cv_fc_pp_srcext_F |
---|
| 4347 | FCFLAGS_F=$ac_cv_fc_pp_srcext_F |
---|
| 4348 | fi |
---|
| 4349 | |
---|
| 4350 | |
---|
| 4351 | fi |
---|
| 4352 | ac_ext=${ac_fc_srcext-f} |
---|
| 4353 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
| 4354 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
| 4355 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
| 4356 | |
---|
| 4357 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to define symbols for preprocessed Fortran" >&5 |
---|
| 4358 | printf %s "checking how to define symbols for preprocessed Fortran... " >&6; } |
---|
| 4359 | if test ${ac_cv_fc_pp_define+y} |
---|
| 4360 | then : |
---|
| 4361 | printf %s "(cached) " >&6 |
---|
| 4362 | else $as_nop |
---|
| 4363 | ac_fc_pp_define_srcext_save=$ac_fc_srcext |
---|
| 4364 | ac_cv_fc_pp_define=unknown |
---|
| 4365 | ac_fc_pp_define_FCFLAGS_save=$FCFLAGS |
---|
| 4366 | for ac_flag in -D -WF,-D -Wp,-D -Wc,-D |
---|
| 4367 | do |
---|
| 4368 | FCFLAGS="$ac_fc_pp_define_FCFLAGS_save ${ac_flag}FOOBAR ${ac_flag}ZORK=42" |
---|
| 4369 | cat > conftest.$ac_ext <<_ACEOF |
---|
| 4370 | program main |
---|
| 4371 | |
---|
| 4372 | #ifndef FOOBAR |
---|
| 4373 | choke me |
---|
| 4374 | #endif |
---|
| 4375 | #if ZORK != 42 |
---|
| 4376 | choke me |
---|
| 4377 | #endif |
---|
| 4378 | end |
---|
| 4379 | _ACEOF |
---|
| 4380 | if ac_fn_fc_try_compile "$LINENO" |
---|
| 4381 | then : |
---|
| 4382 | ac_cv_fc_pp_define=$ac_flag |
---|
| 4383 | fi |
---|
| 4384 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 4385 | test x"$ac_cv_fc_pp_define" != xunknown && break |
---|
| 4386 | done |
---|
| 4387 | FCFLAGS=$ac_fc_pp_define_FCFLAGS_save |
---|
| 4388 | |
---|
| 4389 | fi |
---|
| 4390 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_pp_define" >&5 |
---|
| 4391 | printf "%s\n" "$ac_cv_fc_pp_define" >&6; } |
---|
| 4392 | ac_fc_srcext=$ac_fc_pp_define_srcext_save |
---|
| 4393 | if test "x$ac_cv_fc_pp_define" = xunknown; then |
---|
| 4394 | FC_DEFINE= |
---|
| 4395 | as_fn_error 77 "Fortran does not allow to define preprocessor symbols" "$LINENO" 5 |
---|
| 4396 | else |
---|
| 4397 | FC_DEFINE=$ac_cv_fc_pp_define |
---|
| 4398 | |
---|
| 4399 | fi |
---|
| 4400 | ac_ext=c |
---|
| 4401 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 4402 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 4403 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 4404 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 4405 | |
---|
| 4406 | |
---|
| 4407 | |
---|
| 4408 | # CHECK HOW TO NAME MANGLE C FUNCTIONS SO THAT IT CAN BE CALLED FROM FORTRAN |
---|
| 4409 | OLDFC="$FC" |
---|
| 4410 | |
---|
| 4411 | |
---|
| 4412 | |
---|
| 4413 | |
---|
| 4414 | # Make sure we can run config.sub. |
---|
| 4415 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || |
---|
| 4416 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 |
---|
| 4417 | |
---|
| 4418 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
---|
| 4419 | printf %s "checking build system type... " >&6; } |
---|
| 4420 | if test ${ac_cv_build+y} |
---|
| 4421 | then : |
---|
| 4422 | printf %s "(cached) " >&6 |
---|
| 4423 | else $as_nop |
---|
| 4424 | ac_build_alias=$build_alias |
---|
| 4425 | test "x$ac_build_alias" = x && |
---|
| 4426 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
---|
| 4427 | test "x$ac_build_alias" = x && |
---|
| 4428 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
---|
| 4429 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
---|
| 4430 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 |
---|
| 4431 | |
---|
| 4432 | fi |
---|
| 4433 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
---|
| 4434 | printf "%s\n" "$ac_cv_build" >&6; } |
---|
| 4435 | case $ac_cv_build in |
---|
| 4436 | *-*-*) ;; |
---|
| 4437 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
---|
| 4438 | esac |
---|
| 4439 | build=$ac_cv_build |
---|
| 4440 | ac_save_IFS=$IFS; IFS='-' |
---|
| 4441 | set x $ac_cv_build |
---|
| 4442 | shift |
---|
| 4443 | build_cpu=$1 |
---|
| 4444 | build_vendor=$2 |
---|
| 4445 | shift; shift |
---|
| 4446 | # Remember, the first character of IFS is used to create $*, |
---|
| 4447 | # except with old shells: |
---|
| 4448 | build_os=$* |
---|
| 4449 | IFS=$ac_save_IFS |
---|
| 4450 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
---|
| 4451 | |
---|
| 4452 | |
---|
| 4453 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
---|
| 4454 | printf %s "checking host system type... " >&6; } |
---|
| 4455 | if test ${ac_cv_host+y} |
---|
| 4456 | then : |
---|
| 4457 | printf %s "(cached) " >&6 |
---|
| 4458 | else $as_nop |
---|
| 4459 | if test "x$host_alias" = x; then |
---|
| 4460 | ac_cv_host=$ac_cv_build |
---|
| 4461 | else |
---|
| 4462 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
---|
| 4463 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 |
---|
| 4464 | fi |
---|
| 4465 | |
---|
| 4466 | fi |
---|
| 4467 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
---|
| 4468 | printf "%s\n" "$ac_cv_host" >&6; } |
---|
| 4469 | case $ac_cv_host in |
---|
| 4470 | *-*-*) ;; |
---|
| 4471 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
---|
| 4472 | esac |
---|
| 4473 | host=$ac_cv_host |
---|
| 4474 | ac_save_IFS=$IFS; IFS='-' |
---|
| 4475 | set x $ac_cv_host |
---|
| 4476 | shift |
---|
| 4477 | host_cpu=$1 |
---|
| 4478 | host_vendor=$2 |
---|
| 4479 | shift; shift |
---|
| 4480 | # Remember, the first character of IFS is used to create $*, |
---|
| 4481 | # except with old shells: |
---|
| 4482 | host_os=$* |
---|
| 4483 | IFS=$ac_save_IFS |
---|
| 4484 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
---|
| 4485 | |
---|
| 4486 | |
---|
| 4487 | ac_ext=${ac_fc_srcext-f} |
---|
| 4488 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
| 4489 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
| 4490 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
| 4491 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5 |
---|
| 4492 | printf %s "checking how to get verbose linking output from $FC... " >&6; } |
---|
| 4493 | if test ${ac_cv_prog_fc_v+y} |
---|
| 4494 | then : |
---|
| 4495 | printf %s "(cached) " >&6 |
---|
| 4496 | else $as_nop |
---|
| 4497 | cat > conftest.$ac_ext <<_ACEOF |
---|
| 4498 | program main |
---|
| 4499 | |
---|
| 4500 | end |
---|
| 4501 | _ACEOF |
---|
| 4502 | if ac_fn_fc_try_compile "$LINENO" |
---|
| 4503 | then : |
---|
| 4504 | ac_cv_prog_fc_v= |
---|
| 4505 | # Try some options frequently used verbose output |
---|
| 4506 | for ac_verb in -v -verbose --verbose -V -\#\#\#; do |
---|
| 4507 | cat > conftest.$ac_ext <<_ACEOF |
---|
| 4508 | program main |
---|
| 4509 | |
---|
| 4510 | end |
---|
| 4511 | _ACEOF |
---|
| 4512 | |
---|
| 4513 | # Compile and link our simple test program by passing a flag (argument |
---|
| 4514 | # 1 to this macro) to the Fortran compiler in order to get |
---|
| 4515 | # "verbose" output that we can then parse for the Fortran linker |
---|
| 4516 | # flags. |
---|
| 4517 | ac_save_FCFLAGS=$FCFLAGS |
---|
| 4518 | FCFLAGS="$FCFLAGS $ac_verb" |
---|
| 4519 | eval "set x $ac_link" |
---|
| 4520 | shift |
---|
| 4521 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: $*" >&5 |
---|
| 4522 | # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, |
---|
| 4523 | # LIBRARY_PATH; skip all such settings. |
---|
| 4524 | ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | |
---|
| 4525 | sed '/^Driving:/d; /^Configured with:/d; |
---|
| 4526 | '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` |
---|
| 4527 | printf "%s\n" "$ac_fc_v_output" >&5 |
---|
| 4528 | FCFLAGS=$ac_save_FCFLAGS |
---|
| 4529 | |
---|
| 4530 | rm -rf conftest* |
---|
| 4531 | |
---|
| 4532 | # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
---|
| 4533 | # /foo, /bar, and /baz are search directories for the Fortran linker. |
---|
| 4534 | # Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
---|
| 4535 | ac_fc_v_output="`echo $ac_fc_v_output | |
---|
| 4536 | grep 'LPATH is:' | |
---|
| 4537 | sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output" |
---|
| 4538 | |
---|
| 4539 | # FIXME: we keep getting bitten by quoted arguments; a more general fix |
---|
| 4540 | # that detects unbalanced quotes in FLIBS should be implemented |
---|
| 4541 | # and (ugh) tested at some point. |
---|
| 4542 | case $ac_fc_v_output in |
---|
| 4543 | # With xlf replace commas with spaces, |
---|
| 4544 | # and remove "-link" and closing parenthesis. |
---|
| 4545 | *xlfentry*) |
---|
| 4546 | ac_fc_v_output=`echo $ac_fc_v_output | |
---|
| 4547 | sed ' |
---|
| 4548 | s/,/ /g |
---|
| 4549 | s/ -link / /g |
---|
| 4550 | s/) *$// |
---|
| 4551 | ' |
---|
| 4552 | ` ;; |
---|
| 4553 | |
---|
| 4554 | # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
---|
| 4555 | # $LIBS confuse us, and the libraries appear later in the output anyway). |
---|
| 4556 | *mGLOB_options_string*) |
---|
| 4557 | ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; |
---|
| 4558 | |
---|
| 4559 | # Portland Group compiler has singly- or doubly-quoted -cmdline argument |
---|
| 4560 | # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. |
---|
| 4561 | # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". |
---|
| 4562 | *-cmdline\ * | *-ignore\ * | *-def\ *) |
---|
| 4563 | ac_fc_v_output=`echo $ac_fc_v_output | sed "\ |
---|
| 4564 | s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g |
---|
| 4565 | s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g |
---|
| 4566 | s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; |
---|
| 4567 | |
---|
| 4568 | # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. |
---|
| 4569 | *fort77*f2c*gcc*) |
---|
| 4570 | ac_fc_v_output=`echo "$ac_fc_v_output" | sed -n ' |
---|
| 4571 | /:[ ]\+Running[ ]\{1,\}"gcc"/{ |
---|
| 4572 | /"-c"/d |
---|
| 4573 | /[.]c"*/d |
---|
| 4574 | s/^.*"gcc"/"gcc"/ |
---|
| 4575 | s/"//gp |
---|
| 4576 | }'` ;; |
---|
| 4577 | |
---|
| 4578 | # If we are using Cray Fortran then delete quotes. |
---|
| 4579 | *cft90*) |
---|
| 4580 | ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; |
---|
| 4581 | esac |
---|
| 4582 | |
---|
| 4583 | |
---|
| 4584 | # look for -l* and *.a constructs in the output |
---|
| 4585 | for ac_arg in $ac_fc_v_output; do |
---|
| 4586 | case $ac_arg in |
---|
| 4587 | [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) |
---|
| 4588 | ac_cv_prog_fc_v=$ac_verb |
---|
| 4589 | break 2 ;; |
---|
| 4590 | esac |
---|
| 4591 | done |
---|
| 4592 | done |
---|
| 4593 | if test -z "$ac_cv_prog_fc_v"; then |
---|
| 4594 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5 |
---|
| 4595 | printf "%s\n" "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;} |
---|
| 4596 | fi |
---|
| 4597 | else $as_nop |
---|
| 4598 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 |
---|
| 4599 | printf "%s\n" "$as_me: WARNING: compilation failed" >&2;} |
---|
| 4600 | fi |
---|
| 4601 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 4602 | |
---|
| 4603 | fi |
---|
| 4604 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5 |
---|
| 4605 | printf "%s\n" "$ac_cv_prog_fc_v" >&6; } |
---|
| 4606 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5 |
---|
| 4607 | printf %s "checking for Fortran libraries of $FC... " >&6; } |
---|
| 4608 | if test ${ac_cv_fc_libs+y} |
---|
| 4609 | then : |
---|
| 4610 | printf %s "(cached) " >&6 |
---|
| 4611 | else $as_nop |
---|
| 4612 | if test "x$FCLIBS" != "x"; then |
---|
| 4613 | ac_cv_fc_libs="$FCLIBS" # Let the user override the test. |
---|
| 4614 | else |
---|
| 4615 | |
---|
| 4616 | cat > conftest.$ac_ext <<_ACEOF |
---|
| 4617 | program main |
---|
| 4618 | |
---|
| 4619 | end |
---|
| 4620 | _ACEOF |
---|
| 4621 | |
---|
| 4622 | # Compile and link our simple test program by passing a flag (argument |
---|
| 4623 | # 1 to this macro) to the Fortran compiler in order to get |
---|
| 4624 | # "verbose" output that we can then parse for the Fortran linker |
---|
| 4625 | # flags. |
---|
| 4626 | ac_save_FCFLAGS=$FCFLAGS |
---|
| 4627 | FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v" |
---|
| 4628 | eval "set x $ac_link" |
---|
| 4629 | shift |
---|
| 4630 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: $*" >&5 |
---|
| 4631 | # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, |
---|
| 4632 | # LIBRARY_PATH; skip all such settings. |
---|
| 4633 | ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | |
---|
| 4634 | sed '/^Driving:/d; /^Configured with:/d; |
---|
| 4635 | '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` |
---|
| 4636 | printf "%s\n" "$ac_fc_v_output" >&5 |
---|
| 4637 | FCFLAGS=$ac_save_FCFLAGS |
---|
| 4638 | |
---|
| 4639 | rm -rf conftest* |
---|
| 4640 | |
---|
| 4641 | # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
---|
| 4642 | # /foo, /bar, and /baz are search directories for the Fortran linker. |
---|
| 4643 | # Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
---|
| 4644 | ac_fc_v_output="`echo $ac_fc_v_output | |
---|
| 4645 | grep 'LPATH is:' | |
---|
| 4646 | sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output" |
---|
| 4647 | |
---|
| 4648 | # FIXME: we keep getting bitten by quoted arguments; a more general fix |
---|
| 4649 | # that detects unbalanced quotes in FLIBS should be implemented |
---|
| 4650 | # and (ugh) tested at some point. |
---|
| 4651 | case $ac_fc_v_output in |
---|
| 4652 | # With xlf replace commas with spaces, |
---|
| 4653 | # and remove "-link" and closing parenthesis. |
---|
| 4654 | *xlfentry*) |
---|
| 4655 | ac_fc_v_output=`echo $ac_fc_v_output | |
---|
| 4656 | sed ' |
---|
| 4657 | s/,/ /g |
---|
| 4658 | s/ -link / /g |
---|
| 4659 | s/) *$// |
---|
| 4660 | ' |
---|
| 4661 | ` ;; |
---|
| 4662 | |
---|
| 4663 | # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
---|
| 4664 | # $LIBS confuse us, and the libraries appear later in the output anyway). |
---|
| 4665 | *mGLOB_options_string*) |
---|
| 4666 | ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; |
---|
| 4667 | |
---|
| 4668 | # Portland Group compiler has singly- or doubly-quoted -cmdline argument |
---|
| 4669 | # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. |
---|
| 4670 | # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". |
---|
| 4671 | *-cmdline\ * | *-ignore\ * | *-def\ *) |
---|
| 4672 | ac_fc_v_output=`echo $ac_fc_v_output | sed "\ |
---|
| 4673 | s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g |
---|
| 4674 | s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g |
---|
| 4675 | s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; |
---|
| 4676 | |
---|
| 4677 | # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. |
---|
| 4678 | *fort77*f2c*gcc*) |
---|
| 4679 | ac_fc_v_output=`echo "$ac_fc_v_output" | sed -n ' |
---|
| 4680 | /:[ ]\+Running[ ]\{1,\}"gcc"/{ |
---|
| 4681 | /"-c"/d |
---|
| 4682 | /[.]c"*/d |
---|
| 4683 | s/^.*"gcc"/"gcc"/ |
---|
| 4684 | s/"//gp |
---|
| 4685 | }'` ;; |
---|
| 4686 | |
---|
| 4687 | # If we are using Cray Fortran then delete quotes. |
---|
| 4688 | *cft90*) |
---|
| 4689 | ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; |
---|
| 4690 | esac |
---|
| 4691 | |
---|
| 4692 | |
---|
| 4693 | |
---|
| 4694 | ac_cv_fc_libs= |
---|
| 4695 | |
---|
| 4696 | # Save positional arguments (if any) |
---|
| 4697 | ac_save_positional="$@" |
---|
| 4698 | |
---|
| 4699 | set X $ac_fc_v_output |
---|
| 4700 | while test $# != 1; do |
---|
| 4701 | shift |
---|
| 4702 | ac_arg=$1 |
---|
| 4703 | case $ac_arg in |
---|
| 4704 | [\\/]*.a | ?:[\\/]*.a) |
---|
| 4705 | ac_exists=false |
---|
| 4706 | for ac_i in $ac_cv_fc_libs; do |
---|
| 4707 | if test x"$ac_arg" = x"$ac_i"; then |
---|
| 4708 | ac_exists=true |
---|
| 4709 | break |
---|
| 4710 | fi |
---|
| 4711 | done |
---|
| 4712 | |
---|
| 4713 | if test x"$ac_exists" = xtrue |
---|
| 4714 | then : |
---|
| 4715 | |
---|
| 4716 | else $as_nop |
---|
| 4717 | ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
---|
| 4718 | fi |
---|
| 4719 | ;; |
---|
| 4720 | -bI:*) |
---|
| 4721 | ac_exists=false |
---|
| 4722 | for ac_i in $ac_cv_fc_libs; do |
---|
| 4723 | if test x"$ac_arg" = x"$ac_i"; then |
---|
| 4724 | ac_exists=true |
---|
| 4725 | break |
---|
| 4726 | fi |
---|
| 4727 | done |
---|
| 4728 | |
---|
| 4729 | if test x"$ac_exists" = xtrue |
---|
| 4730 | then : |
---|
| 4731 | |
---|
| 4732 | else $as_nop |
---|
| 4733 | if test "$ac_compiler_gnu" = yes; then |
---|
| 4734 | for ac_link_opt in $ac_arg; do |
---|
| 4735 | ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" |
---|
| 4736 | done |
---|
| 4737 | else |
---|
| 4738 | ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
---|
| 4739 | fi |
---|
| 4740 | fi |
---|
| 4741 | ;; |
---|
| 4742 | # Ignore these flags. |
---|
| 4743 | -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ |
---|
| 4744 | |-LANG:=* | -LIST:* | -LNO:* | -link) |
---|
| 4745 | ;; |
---|
| 4746 | -lkernel32) |
---|
| 4747 | # Ignore this library only on Windows-like systems. |
---|
| 4748 | case $host_os in |
---|
| 4749 | cygwin* | msys* ) ;; |
---|
| 4750 | *) |
---|
| 4751 | ac_exists=false |
---|
| 4752 | for ac_i in $ac_cv_fc_libs; do |
---|
| 4753 | if test x"$ac_arg" = x"$ac_i"; then |
---|
| 4754 | ac_exists=true |
---|
| 4755 | break |
---|
| 4756 | fi |
---|
| 4757 | done |
---|
| 4758 | |
---|
| 4759 | if test x"$ac_exists" = xtrue |
---|
| 4760 | then : |
---|
| 4761 | |
---|
| 4762 | else $as_nop |
---|
| 4763 | ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
---|
| 4764 | fi |
---|
| 4765 | ;; |
---|
| 4766 | esac |
---|
| 4767 | ;; |
---|
| 4768 | -[LRuYz]) |
---|
| 4769 | # These flags, when seen by themselves, take an argument. |
---|
| 4770 | # We remove the space between option and argument and re-iterate |
---|
| 4771 | # unless we find an empty arg or a new option (starting with -) |
---|
| 4772 | case $2 in |
---|
| 4773 | "" | -*);; |
---|
| 4774 | *) |
---|
| 4775 | ac_arg="$ac_arg$2" |
---|
| 4776 | shift; shift |
---|
| 4777 | set X $ac_arg "$@" |
---|
| 4778 | ;; |
---|
| 4779 | esac |
---|
| 4780 | ;; |
---|
| 4781 | -YP,*) |
---|
| 4782 | for ac_j in `printf "%s\n" "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
---|
| 4783 | ac_exists=false |
---|
| 4784 | for ac_i in $ac_cv_fc_libs; do |
---|
| 4785 | if test x"$ac_j" = x"$ac_i"; then |
---|
| 4786 | ac_exists=true |
---|
| 4787 | break |
---|
| 4788 | fi |
---|
| 4789 | done |
---|
| 4790 | |
---|
| 4791 | if test x"$ac_exists" = xtrue |
---|
| 4792 | then : |
---|
| 4793 | |
---|
| 4794 | else $as_nop |
---|
| 4795 | ac_arg="$ac_arg $ac_j" |
---|
| 4796 | ac_cv_fc_libs="$ac_cv_fc_libs $ac_j" |
---|
| 4797 | fi |
---|
| 4798 | done |
---|
| 4799 | ;; |
---|
| 4800 | -[lLR]*) |
---|
| 4801 | ac_exists=false |
---|
| 4802 | for ac_i in $ac_cv_fc_libs; do |
---|
| 4803 | if test x"$ac_arg" = x"$ac_i"; then |
---|
| 4804 | ac_exists=true |
---|
| 4805 | break |
---|
| 4806 | fi |
---|
| 4807 | done |
---|
| 4808 | |
---|
| 4809 | if test x"$ac_exists" = xtrue |
---|
| 4810 | then : |
---|
| 4811 | |
---|
| 4812 | else $as_nop |
---|
| 4813 | ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
---|
| 4814 | fi |
---|
| 4815 | ;; |
---|
| 4816 | -zallextract*| -zdefaultextract) |
---|
| 4817 | ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
---|
| 4818 | ;; |
---|
| 4819 | -mllvm) ${2+shift};; # Defend against 'clang -mllvm -loopopt=0'. |
---|
| 4820 | # Ignore everything else. |
---|
| 4821 | esac |
---|
| 4822 | done |
---|
| 4823 | # restore positional arguments |
---|
| 4824 | set X $ac_save_positional; shift |
---|
| 4825 | |
---|
| 4826 | # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, |
---|
| 4827 | # then we insist that the "run path" must be an absolute path (i.e. it |
---|
| 4828 | # must begin with a "/"). |
---|
| 4829 | case `(uname -sr) 2>/dev/null` in |
---|
| 4830 | "SunOS 5"*) |
---|
| 4831 | ac_ld_run_path=`printf "%s\n" "$ac_fc_v_output" | |
---|
| 4832 | sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` |
---|
| 4833 | test "x$ac_ld_run_path" != x && |
---|
| 4834 | if test "$ac_compiler_gnu" = yes; then |
---|
| 4835 | for ac_link_opt in $ac_ld_run_path; do |
---|
| 4836 | ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" |
---|
| 4837 | done |
---|
| 4838 | else |
---|
| 4839 | ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path" |
---|
| 4840 | fi |
---|
| 4841 | ;; |
---|
| 4842 | esac |
---|
| 4843 | fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" |
---|
| 4844 | |
---|
| 4845 | fi |
---|
| 4846 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5 |
---|
| 4847 | printf "%s\n" "$ac_cv_fc_libs" >&6; } |
---|
| 4848 | FCLIBS="$ac_cv_fc_libs" |
---|
| 4849 | |
---|
| 4850 | |
---|
| 4851 | ac_ext=c |
---|
| 4852 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 4853 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 4854 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 4855 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 4856 | |
---|
| 4857 | ac_ext=${ac_fc_srcext-f} |
---|
| 4858 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
| 4859 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
| 4860 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
| 4861 | |
---|
| 4862 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5 |
---|
| 4863 | printf %s "checking for dummy main to link with Fortran libraries... " >&6; } |
---|
| 4864 | if test ${ac_cv_fc_dummy_main+y} |
---|
| 4865 | then : |
---|
| 4866 | printf %s "(cached) " >&6 |
---|
| 4867 | else $as_nop |
---|
| 4868 | ac_fc_dm_save_LIBS=$LIBS |
---|
| 4869 | LIBS="$LIBS $FCLIBS" |
---|
| 4870 | ac_fortran_dm_var=FC_DUMMY_MAIN |
---|
| 4871 | ac_ext=c |
---|
| 4872 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 4873 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 4874 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 4875 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 4876 | |
---|
| 4877 | # First, try linking without a dummy main: |
---|
| 4878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4879 | /* end confdefs.h. */ |
---|
| 4880 | |
---|
| 4881 | #ifdef FC_DUMMY_MAIN |
---|
| 4882 | #ifndef FC_DUMMY_MAIN_EQ_F77 |
---|
| 4883 | # ifdef __cplusplus |
---|
| 4884 | extern "C" |
---|
| 4885 | # endif |
---|
| 4886 | int FC_DUMMY_MAIN() { return 1; } |
---|
| 4887 | #endif |
---|
| 4888 | #endif |
---|
| 4889 | int |
---|
| 4890 | main (void) |
---|
| 4891 | { |
---|
| 4892 | |
---|
| 4893 | ; |
---|
| 4894 | return 0; |
---|
| 4895 | } |
---|
| 4896 | _ACEOF |
---|
| 4897 | if ac_fn_c_try_link "$LINENO" |
---|
| 4898 | then : |
---|
| 4899 | ac_cv_fortran_dummy_main=none |
---|
| 4900 | else $as_nop |
---|
| 4901 | ac_cv_fortran_dummy_main=unknown |
---|
| 4902 | fi |
---|
| 4903 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
---|
| 4904 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4905 | |
---|
| 4906 | if test $ac_cv_fortran_dummy_main = unknown; then |
---|
| 4907 | for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do |
---|
| 4908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4909 | /* end confdefs.h. */ |
---|
| 4910 | #define $ac_fortran_dm_var $ac_func |
---|
| 4911 | #ifdef FC_DUMMY_MAIN |
---|
| 4912 | #ifndef FC_DUMMY_MAIN_EQ_F77 |
---|
| 4913 | # ifdef __cplusplus |
---|
| 4914 | extern "C" |
---|
| 4915 | # endif |
---|
| 4916 | int FC_DUMMY_MAIN() { return 1; } |
---|
| 4917 | #endif |
---|
| 4918 | #endif |
---|
| 4919 | int |
---|
| 4920 | main (void) |
---|
| 4921 | { |
---|
| 4922 | |
---|
| 4923 | ; |
---|
| 4924 | return 0; |
---|
| 4925 | } |
---|
| 4926 | _ACEOF |
---|
| 4927 | if ac_fn_c_try_link "$LINENO" |
---|
| 4928 | then : |
---|
| 4929 | ac_cv_fortran_dummy_main=$ac_func; break |
---|
| 4930 | fi |
---|
| 4931 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
---|
| 4932 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4933 | done |
---|
| 4934 | fi |
---|
| 4935 | ac_ext=${ac_fc_srcext-f} |
---|
| 4936 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
| 4937 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
| 4938 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
| 4939 | ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main |
---|
| 4940 | rm -rf conftest* |
---|
| 4941 | LIBS=$ac_fc_dm_save_LIBS |
---|
| 4942 | |
---|
| 4943 | fi |
---|
| 4944 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5 |
---|
| 4945 | printf "%s\n" "$ac_cv_fc_dummy_main" >&6; } |
---|
| 4946 | FC_DUMMY_MAIN=$ac_cv_fc_dummy_main |
---|
| 4947 | if test "$FC_DUMMY_MAIN" != unknown |
---|
| 4948 | then : |
---|
| 4949 | if test $FC_DUMMY_MAIN != none; then |
---|
| 4950 | |
---|
| 4951 | printf "%s\n" "#define FC_DUMMY_MAIN $FC_DUMMY_MAIN" >>confdefs.h |
---|
| 4952 | |
---|
| 4953 | if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then |
---|
| 4954 | |
---|
| 4955 | printf "%s\n" "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h |
---|
| 4956 | |
---|
| 4957 | fi |
---|
| 4958 | fi |
---|
| 4959 | else $as_nop |
---|
| 4960 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 4961 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 4962 | as_fn_error $? "linking to Fortran libraries from C fails |
---|
| 4963 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 4964 | fi |
---|
| 4965 | |
---|
| 4966 | ac_ext=c |
---|
| 4967 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 4968 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 4969 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 4970 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 4971 | |
---|
| 4972 | ac_ext=${ac_fc_srcext-f} |
---|
| 4973 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
| 4974 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
| 4975 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
| 4976 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5 |
---|
| 4977 | printf %s "checking for Fortran name-mangling scheme... " >&6; } |
---|
| 4978 | if test ${ac_cv_fc_mangling+y} |
---|
| 4979 | then : |
---|
| 4980 | printf %s "(cached) " >&6 |
---|
| 4981 | else $as_nop |
---|
| 4982 | cat > conftest.$ac_ext <<_ACEOF |
---|
| 4983 | subroutine foobar() |
---|
| 4984 | return |
---|
| 4985 | end |
---|
| 4986 | subroutine foo_bar() |
---|
| 4987 | return |
---|
| 4988 | end |
---|
| 4989 | _ACEOF |
---|
| 4990 | if ac_fn_fc_try_compile "$LINENO" |
---|
| 4991 | then : |
---|
| 4992 | mv conftest.$ac_objext cfortran_test.$ac_objext |
---|
| 4993 | |
---|
| 4994 | ac_save_LIBS=$LIBS |
---|
| 4995 | LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS" |
---|
| 4996 | |
---|
| 4997 | ac_ext=c |
---|
| 4998 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 4999 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 5000 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 5001 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 5002 | ac_success=no |
---|
| 5003 | for ac_foobar in foobar FOOBAR; do |
---|
| 5004 | for ac_underscore in "" "_"; do |
---|
| 5005 | ac_func="$ac_foobar$ac_underscore" |
---|
| 5006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5007 | /* end confdefs.h. */ |
---|
| 5008 | |
---|
| 5009 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5010 | Use char because int might match the return type of a GCC |
---|
| 5011 | builtin and then its argument prototype would still apply. */ |
---|
| 5012 | char $ac_func (); |
---|
| 5013 | #ifdef FC_DUMMY_MAIN |
---|
| 5014 | #ifndef FC_DUMMY_MAIN_EQ_F77 |
---|
| 5015 | # ifdef __cplusplus |
---|
| 5016 | extern "C" |
---|
| 5017 | # endif |
---|
| 5018 | int FC_DUMMY_MAIN() { return 1; } |
---|
| 5019 | #endif |
---|
| 5020 | #endif |
---|
| 5021 | int |
---|
| 5022 | main (void) |
---|
| 5023 | { |
---|
| 5024 | return $ac_func (); |
---|
| 5025 | ; |
---|
| 5026 | return 0; |
---|
| 5027 | } |
---|
| 5028 | _ACEOF |
---|
| 5029 | if ac_fn_c_try_link "$LINENO" |
---|
| 5030 | then : |
---|
| 5031 | ac_success=yes; break 2 |
---|
| 5032 | fi |
---|
| 5033 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
---|
| 5034 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5035 | done |
---|
| 5036 | done |
---|
| 5037 | ac_ext=${ac_fc_srcext-f} |
---|
| 5038 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
| 5039 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
| 5040 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
| 5041 | |
---|
| 5042 | if test "$ac_success" = "yes"; then |
---|
| 5043 | case $ac_foobar in |
---|
| 5044 | foobar) |
---|
| 5045 | ac_case=lower |
---|
| 5046 | ac_foo_bar=foo_bar |
---|
| 5047 | ;; |
---|
| 5048 | FOOBAR) |
---|
| 5049 | ac_case=upper |
---|
| 5050 | ac_foo_bar=FOO_BAR |
---|
| 5051 | ;; |
---|
| 5052 | esac |
---|
| 5053 | |
---|
| 5054 | ac_ext=c |
---|
| 5055 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 5056 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 5057 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 5058 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 5059 | ac_success_extra=no |
---|
| 5060 | for ac_extra in "" "_"; do |
---|
| 5061 | ac_func="$ac_foo_bar$ac_underscore$ac_extra" |
---|
| 5062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5063 | /* end confdefs.h. */ |
---|
| 5064 | |
---|
| 5065 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5066 | Use char because int might match the return type of a GCC |
---|
| 5067 | builtin and then its argument prototype would still apply. */ |
---|
| 5068 | char $ac_func (); |
---|
| 5069 | #ifdef FC_DUMMY_MAIN |
---|
| 5070 | #ifndef FC_DUMMY_MAIN_EQ_F77 |
---|
| 5071 | # ifdef __cplusplus |
---|
| 5072 | extern "C" |
---|
| 5073 | # endif |
---|
| 5074 | int FC_DUMMY_MAIN() { return 1; } |
---|
| 5075 | #endif |
---|
| 5076 | #endif |
---|
| 5077 | int |
---|
| 5078 | main (void) |
---|
| 5079 | { |
---|
| 5080 | return $ac_func (); |
---|
| 5081 | ; |
---|
| 5082 | return 0; |
---|
| 5083 | } |
---|
| 5084 | _ACEOF |
---|
| 5085 | if ac_fn_c_try_link "$LINENO" |
---|
| 5086 | then : |
---|
| 5087 | ac_success_extra=yes; break |
---|
| 5088 | fi |
---|
| 5089 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
---|
| 5090 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5091 | done |
---|
| 5092 | ac_ext=${ac_fc_srcext-f} |
---|
| 5093 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
| 5094 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
| 5095 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
| 5096 | |
---|
| 5097 | if test "$ac_success_extra" = "yes"; then |
---|
| 5098 | ac_cv_fc_mangling="$ac_case case" |
---|
| 5099 | if test -z "$ac_underscore"; then |
---|
| 5100 | ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore" |
---|
| 5101 | else |
---|
| 5102 | ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore" |
---|
| 5103 | fi |
---|
| 5104 | if test -z "$ac_extra"; then |
---|
| 5105 | ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore" |
---|
| 5106 | else |
---|
| 5107 | ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore" |
---|
| 5108 | fi |
---|
| 5109 | else |
---|
| 5110 | ac_cv_fc_mangling="unknown" |
---|
| 5111 | fi |
---|
| 5112 | else |
---|
| 5113 | ac_cv_fc_mangling="unknown" |
---|
| 5114 | fi |
---|
| 5115 | |
---|
| 5116 | LIBS=$ac_save_LIBS |
---|
| 5117 | rm -rf conftest* |
---|
| 5118 | rm -f cfortran_test* |
---|
| 5119 | else $as_nop |
---|
| 5120 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 5121 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 5122 | as_fn_error $? "cannot compile a simple Fortran program |
---|
| 5123 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 5124 | fi |
---|
| 5125 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 5126 | |
---|
| 5127 | fi |
---|
| 5128 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5 |
---|
| 5129 | printf "%s\n" "$ac_cv_fc_mangling" >&6; } |
---|
| 5130 | |
---|
| 5131 | ac_ext=c |
---|
| 5132 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 5133 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 5134 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 5135 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 5136 | |
---|
| 5137 | ac_ext=${ac_fc_srcext-f} |
---|
| 5138 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
| 5139 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
| 5140 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
| 5141 | case $ac_cv_fc_mangling in |
---|
| 5142 | "lower case, no underscore, no extra underscore") |
---|
| 5143 | printf "%s\n" "#define FC_FUNC(name,NAME) name" >>confdefs.h |
---|
| 5144 | |
---|
| 5145 | printf "%s\n" "#define FC_FUNC_(name,NAME) name" >>confdefs.h |
---|
| 5146 | ;; |
---|
| 5147 | "lower case, no underscore, extra underscore") |
---|
| 5148 | printf "%s\n" "#define FC_FUNC(name,NAME) name" >>confdefs.h |
---|
| 5149 | |
---|
| 5150 | printf "%s\n" "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h |
---|
| 5151 | ;; |
---|
| 5152 | "lower case, underscore, no extra underscore") |
---|
| 5153 | printf "%s\n" "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h |
---|
| 5154 | |
---|
| 5155 | printf "%s\n" "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h |
---|
| 5156 | ;; |
---|
| 5157 | "lower case, underscore, extra underscore") |
---|
| 5158 | printf "%s\n" "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h |
---|
| 5159 | |
---|
| 5160 | printf "%s\n" "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h |
---|
| 5161 | ;; |
---|
| 5162 | "upper case, no underscore, no extra underscore") |
---|
| 5163 | printf "%s\n" "#define FC_FUNC(name,NAME) NAME" >>confdefs.h |
---|
| 5164 | |
---|
| 5165 | printf "%s\n" "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h |
---|
| 5166 | ;; |
---|
| 5167 | "upper case, no underscore, extra underscore") |
---|
| 5168 | printf "%s\n" "#define FC_FUNC(name,NAME) NAME" >>confdefs.h |
---|
| 5169 | |
---|
| 5170 | printf "%s\n" "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h |
---|
| 5171 | ;; |
---|
| 5172 | "upper case, underscore, no extra underscore") |
---|
| 5173 | printf "%s\n" "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h |
---|
| 5174 | |
---|
| 5175 | printf "%s\n" "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h |
---|
| 5176 | ;; |
---|
| 5177 | "upper case, underscore, extra underscore") |
---|
| 5178 | printf "%s\n" "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h |
---|
| 5179 | |
---|
| 5180 | printf "%s\n" "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h |
---|
| 5181 | ;; |
---|
| 5182 | *) |
---|
| 5183 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5 |
---|
| 5184 | printf "%s\n" "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} |
---|
| 5185 | ;; |
---|
| 5186 | esac |
---|
| 5187 | |
---|
| 5188 | ac_ext=c |
---|
| 5189 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 5190 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 5191 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 5192 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 5193 | |
---|
| 5194 | |
---|
| 5195 | FC="$OLDFC" |
---|
| 5196 | |
---|
| 5197 | # CHECK THAT THE FORTRAN COMPILER CAN CORRECTLY PROCESS THESE DIRECTIVES |
---|
| 5198 | # IF NOT, USE THE EXTERNAL C PREPROCESSOR |
---|
| 5199 | OLDFC="$FC" |
---|
| 5200 | |
---|
| 5201 | defineflag="-Daardvark" |
---|
| 5202 | if test "$OLDFC" = "xlf90"; then |
---|
| 5203 | defineflag="-WF,-Daardvark" |
---|
| 5204 | fi |
---|
| 5205 | if test "$OLDFC" = "frt"; then |
---|
| 5206 | defineflag="-Wp,-Daardvark" |
---|
| 5207 | fi |
---|
| 5208 | |
---|
| 5209 | FC="$OLDFC" |
---|
| 5210 | |
---|
| 5211 | # DEFINE VARIABLES ACCORDING TO OS AND COMPILER |
---|
| 5212 | |
---|
| 5213 | echo "Hostname=$ac_hostname" |
---|
| 5214 | echo "Machine=$machinename" |
---|
| 5215 | echo "OS=$osname" |
---|
| 5216 | |
---|
| 5217 | # CHECK OS NAME |
---|
| 5218 | if echo $osname | grep -i aix >/dev/null 2>&1; then |
---|
| 5219 | SYSDEF="AIX" |
---|
| 5220 | fi |
---|
| 5221 | if echo $osname | grep -i darwin >/dev/null 2>&1; then |
---|
| 5222 | SYSDEF="DARWIN" |
---|
| 5223 | fi |
---|
| 5224 | if echo $osname | grep -i unix_system_v >/dev/null 2>&1; then |
---|
| 5225 | SYSDEF="UNIXSYSTEMV" |
---|
| 5226 | fi |
---|
| 5227 | if echo $osname | grep -i irix >/dev/null 2>&1; then |
---|
| 5228 | SYSDEF="IRIX" |
---|
| 5229 | fi |
---|
| 5230 | if echo $osname | grep -i irix64 >/dev/null 2>&1; then |
---|
| 5231 | SYSDEF="IRIX64" |
---|
| 5232 | fi |
---|
| 5233 | if echo $osname | grep -i linux >/dev/null 2>&1; then |
---|
| 5234 | SYSDEF="LINUX" |
---|
| 5235 | fi |
---|
| 5236 | if echo $osname | grep -i osf1 >/dev/null 2>&1; then |
---|
| 5237 | SYSDEF="OSF1" |
---|
| 5238 | fi |
---|
| 5239 | if echo $osname | grep -i super >/dev/null 2>&1; then |
---|
| 5240 | SYSDEF="SUPERUX" |
---|
| 5241 | fi |
---|
| 5242 | if echo $osname | grep -i sun >/dev/null 2>&1; then |
---|
| 5243 | SYSDEF="SUNOS" |
---|
| 5244 | fi |
---|
| 5245 | if echo $osname | grep -i unicos >/dev/null 2>&1; then |
---|
| 5246 | SYSDEF="UNICOS" |
---|
| 5247 | fi |
---|
| 5248 | if test -z "$SYSDEF"; then |
---|
| 5249 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: OPERATING SYSTEM UNKNOWN" >&5 |
---|
| 5250 | printf "%s\n" "$as_me: WARNING: OPERATING SYSTEM UNKNOWN" >&2;} |
---|
| 5251 | SYSDEF="UNKNOWNOS" |
---|
| 5252 | fi |
---|
| 5253 | |
---|
| 5254 | # Set the default FCFLAGS for non-gfortran compilers. |
---|
| 5255 | # NOTE: This may change with a new version of autoconf. |
---|
| 5256 | DEFFCFLAGS="-g" |
---|
| 5257 | |
---|
| 5258 | ##################################################### |
---|
| 5259 | # CHECK COMPILER NAME and add specific flags |
---|
| 5260 | if echo $FC | grep xlf >/dev/null 2>&1; then |
---|
| 5261 | echo "Fortran Compiler is XLF" |
---|
| 5262 | CPRDEF="XLF" |
---|
| 5263 | if test -z "$REAL8"; then |
---|
| 5264 | REAL8="-qrealsize=8" |
---|
| 5265 | fi |
---|
| 5266 | if test -z "$OPT"; then |
---|
| 5267 | OPT="-O2 -qarch=auto" |
---|
| 5268 | fi |
---|
| 5269 | if test -z "$DEBUG"; then |
---|
| 5270 | DEBUG="-qdbg" |
---|
| 5271 | fi |
---|
| 5272 | if test "$FCFLAGS" = "$DEFFCFLAGS"; then |
---|
| 5273 | FCFLAGS="" |
---|
| 5274 | fi |
---|
| 5275 | elif echo $ac_fc_version_output | grep -i pgfor >/dev/null 2>&1; then |
---|
| 5276 | echo "Fortran Compiler is Portland Group" |
---|
| 5277 | CPRDEF="PGI" |
---|
| 5278 | if test -z "$REAL8"; then |
---|
| 5279 | REAL8="-r8" |
---|
| 5280 | fi |
---|
| 5281 | if test -z "$BIT64"; then |
---|
| 5282 | BIT64="-pc 64" |
---|
| 5283 | fi |
---|
| 5284 | if test "$FCFLAGS" = "$DEFFCFLAGS"; then |
---|
| 5285 | FCFLAGS="" |
---|
| 5286 | fi |
---|
| 5287 | if test -z "$ENDIAN"; then |
---|
| 5288 | ENDIAN="-byteswapio" |
---|
| 5289 | fi |
---|
| 5290 | if test -z "$OPT"; then |
---|
| 5291 | OPT="-O2" |
---|
| 5292 | fi |
---|
| 5293 | if test -z "$DEBUG"; then |
---|
| 5294 | DEBUG="-g" |
---|
| 5295 | fi |
---|
| 5296 | elif test "$IS_GNU" = "yes" ; then |
---|
| 5297 | # The GNU compiler can hide inside other compilers like ftn |
---|
| 5298 | if echo $ac_fc_version_output | grep -i Cray >/dev/null 2>&1; then |
---|
| 5299 | echo "Fortran Compiler is GNU, Cray" |
---|
| 5300 | CPRDEF="GNU" |
---|
| 5301 | else |
---|
| 5302 | echo "Fortran Compiler is GNU" |
---|
| 5303 | CPRDEF="GNU" |
---|
| 5304 | fi |
---|
| 5305 | # For gfortran, default flags are different |
---|
| 5306 | if test "$FCFLAGS" = "-g -O2"; then |
---|
| 5307 | FCFLAGS="" |
---|
| 5308 | fi |
---|
| 5309 | if test -z "$DEBUG"; then |
---|
| 5310 | DEBUG="-g" |
---|
| 5311 | fi |
---|
| 5312 | if test -z "$OPT"; then |
---|
| 5313 | OPT="-O2" |
---|
| 5314 | fi |
---|
| 5315 | # Put ifort after gnu in case wrapper script mpifort |
---|
| 5316 | # from openmpi is wrapping gnu. Prevents misidentification |
---|
| 5317 | elif echo $ac_fc_version_output | grep -i 'intel.*fortran' >/dev/null 2>&1; then |
---|
| 5318 | echo "Fortran Compiler is Intel ifort" |
---|
| 5319 | CPRDEF="INTEL" |
---|
| 5320 | if test -z "$REAL8"; then |
---|
| 5321 | REAL8="-r8" |
---|
| 5322 | fi |
---|
| 5323 | if test "$FCFLAGS" = "$DEFFCFLAGS"; then |
---|
| 5324 | FCFLAGS="-w -ftz" |
---|
| 5325 | fi |
---|
| 5326 | if test -z "$PROGFCFLAGS"; then |
---|
| 5327 | PROGFCFLAGS="-assume byterecl" |
---|
| 5328 | fi |
---|
| 5329 | if test -z "$ENDIAN"; then |
---|
| 5330 | ENDIAN="-convert big_endian" |
---|
| 5331 | fi |
---|
| 5332 | if test -z "$OPT"; then |
---|
| 5333 | OPT="-O2" |
---|
| 5334 | fi |
---|
| 5335 | if test -z "$DEBUG"; then |
---|
| 5336 | DEBUG="-g" |
---|
| 5337 | fi |
---|
| 5338 | # Put ftn after GNU for the case where ftn is wrapping PGF |
---|
| 5339 | elif echo $FC | grep ftn >/dev/null 2>&1; then |
---|
| 5340 | if echo $ac_fc_version_output | grep -i Portland >/dev/null 2>&1; then |
---|
| 5341 | echo "Fortran Compiler is Portland Group, Cray" |
---|
| 5342 | CPRDEF="PGI" |
---|
| 5343 | SYSDEF="CNLINUX" |
---|
| 5344 | if test -z "$REAL8"; then |
---|
| 5345 | REAL8="-r8" |
---|
| 5346 | fi |
---|
| 5347 | if test -z "$BIT64"; then |
---|
| 5348 | BIT64="-pc 64" |
---|
| 5349 | fi |
---|
| 5350 | if test "$FCFLAGS" = "$DEFFCFLAGS"; then |
---|
| 5351 | FCFLAGS="" |
---|
| 5352 | fi |
---|
| 5353 | if test -z "$ENDIAN"; then |
---|
| 5354 | ENDIAN="-byteswapio" |
---|
| 5355 | fi |
---|
| 5356 | if test -z "$OPT"; then |
---|
| 5357 | OPT="-O2" |
---|
| 5358 | fi |
---|
| 5359 | if test -z "$DEBUG"; then |
---|
| 5360 | DEBUG="-g" |
---|
| 5361 | fi |
---|
| 5362 | fi |
---|
| 5363 | elif echo $ac_fc_version_output | grep -i nag >/dev/null 2>&1; then |
---|
| 5364 | echo "Fortran Compiler is NAG" |
---|
| 5365 | CPRDEF="NAG" |
---|
| 5366 | if test -z "$REAL8"; then |
---|
| 5367 | REAL8="-r8" |
---|
| 5368 | fi |
---|
| 5369 | if test "$FCFLAGS" = "$DEFFCFLAGS"; then |
---|
| 5370 | FCFLAGS="-wmismatch=mpi_send,mpi_recv,mpi_bcast,mpi_allreduce,mpi_reduce,mpi_gatherv,mpi_gather,mpi_rsend,mpi_irecv,mpi_isend,mpi_scatterv,mpi_alltoallv -dusty" |
---|
| 5371 | fi |
---|
| 5372 | if test -z "$ENDIAN"; then |
---|
| 5373 | ENDIAN="-convert=BIG_IEEE" |
---|
| 5374 | fi |
---|
| 5375 | if test -z "$OPT"; then |
---|
| 5376 | OPT="-O2" |
---|
| 5377 | fi |
---|
| 5378 | if test -z "$DEBUG"; then |
---|
| 5379 | DEBUG="-g" |
---|
| 5380 | fi |
---|
| 5381 | ########################################################### |
---|
| 5382 | # the compiler flags below have not been verified recently |
---|
| 5383 | ########################################################### |
---|
| 5384 | elif echo $FC | grep frt >/dev/null 2>&1; then |
---|
| 5385 | echo "Fortran Compiler is UXP/V" |
---|
| 5386 | echo "Suggested additional vectorization flags: -Wv,-s5,-t3,-noalias,-ilfunc,-md" |
---|
| 5387 | CPRDEF="FUJITSU" |
---|
| 5388 | if test -z "$F90FLAGS"; then |
---|
| 5389 | F90FLAGS="-Am -X9" |
---|
| 5390 | fi |
---|
| 5391 | if test -z "$BIT64"; then |
---|
| 5392 | BIT64="-KA64" |
---|
| 5393 | fi |
---|
| 5394 | if test -z "$REAL8"; then |
---|
| 5395 | REAL8="-Ad" |
---|
| 5396 | fi |
---|
| 5397 | elif echo $ac_fc_version_output | grep Lahey >/dev/null 2>&1; then |
---|
| 5398 | echo "Fortran Compiler is Lahey" |
---|
| 5399 | CPRDEF="LAHEY" |
---|
| 5400 | elif echo $FC | grep pathf90 >/dev/null 2>&1; then |
---|
| 5401 | echo "Fortran Compiler is PathScale" |
---|
| 5402 | CPRDEF="PATHSC" |
---|
| 5403 | if test -z "$REAL8"; then |
---|
| 5404 | REAL8="-r8" |
---|
| 5405 | fi |
---|
| 5406 | if test -z "$BIT64"; then |
---|
| 5407 | BIT64="-m64" |
---|
| 5408 | fi |
---|
| 5409 | if test -z "$OPT"; then |
---|
| 5410 | OPT="-O2" |
---|
| 5411 | fi |
---|
| 5412 | elif echo $ac_fc_version_output | grep -i absoft >/dev/null 2>&1; then |
---|
| 5413 | echo "Fortran Compiler is Absoft" |
---|
| 5414 | CPRDEF="ABSOFT" |
---|
| 5415 | if test -z "$REAL8"; then |
---|
| 5416 | REAL8="-N113" |
---|
| 5417 | fi |
---|
| 5418 | if test -z "$INCLUDEFLAG"; then |
---|
| 5419 | INCLUDEFLAG="-p" |
---|
| 5420 | fi |
---|
| 5421 | if test -z "$OPT"; then |
---|
| 5422 | OPT="-O2" |
---|
| 5423 | fi |
---|
| 5424 | elif echo $ac_fc_version_output | grep -i workshop >/dev/null 2>&1; then |
---|
| 5425 | echo "Fortran Compiler is Workshop" |
---|
| 5426 | CPRDEF="WORKSHOP" |
---|
| 5427 | if test -z "$INCLUDEFLAG"; then |
---|
| 5428 | INCLUDEFLAG="-M" |
---|
| 5429 | fi |
---|
| 5430 | elif echo $ac_fc_version_output | grep -i mipspro >/dev/null 2>&1; then |
---|
| 5431 | echo "Fortran Compiler is MIPSPro" |
---|
| 5432 | CPRDEF="MIPSPRO" |
---|
| 5433 | EXTRACFLAGS="-64" |
---|
| 5434 | if test -z "$OPT"; then |
---|
| 5435 | OPT="-O3" |
---|
| 5436 | fi |
---|
| 5437 | if test -z "$REAL8"; then |
---|
| 5438 | REAL8="-r8" |
---|
| 5439 | fi |
---|
| 5440 | if test -z "$BIT64"; then |
---|
| 5441 | BIT64="-64" |
---|
| 5442 | fi |
---|
| 5443 | elif echo $ac_fc_version_output | grep -i compaq >/dev/null 2>&1; then |
---|
| 5444 | echo "Fortran Compiler is Compaq" |
---|
| 5445 | CPRDEF="COMPAQ" |
---|
| 5446 | MPILIBS="$MPILIBS -lelan" |
---|
| 5447 | if test -z "$OPT"; then |
---|
| 5448 | OPT="-fast" |
---|
| 5449 | fi |
---|
| 5450 | if test -z "$REAL8"; then |
---|
| 5451 | REAL8="-real_size 64" |
---|
| 5452 | fi |
---|
| 5453 | if test -z "$ENDIAN"; then |
---|
| 5454 | ENDIAN="-convert big_endian" |
---|
| 5455 | fi |
---|
| 5456 | |
---|
| 5457 | # Compaq Fortran changed its name to HP Fortran. |
---|
| 5458 | # Lets support both versions for now. |
---|
| 5459 | elif echo $ac_fc_version_output | grep HP >/dev/null 2>&1; then |
---|
| 5460 | echo "Fortran Compiler is HP" |
---|
| 5461 | CPRDEF="COMPAQ" |
---|
| 5462 | MPILIBS="$MPILIBS -lelan" |
---|
| 5463 | if test -z "$OPT"; then |
---|
| 5464 | OPT="-fast" |
---|
| 5465 | fi |
---|
| 5466 | if test -z "$REAL8"; then |
---|
| 5467 | REAL8="-real_size 64" |
---|
| 5468 | fi |
---|
| 5469 | if test -z "$ENDIAN"; then |
---|
| 5470 | ENDIAN="-convert big_endian" |
---|
| 5471 | fi |
---|
| 5472 | |
---|
| 5473 | elif echo $ac_fc_version_output | grep -i sx >/dev/null 2>&1; then |
---|
| 5474 | echo "Fortran Compiler is SX" |
---|
| 5475 | CPRDEF="SX" |
---|
| 5476 | if test -z "$F90FLAGS"; then |
---|
| 5477 | F90FLAGS="-EP -Wf'-pvctl noassoc'" |
---|
| 5478 | fi |
---|
| 5479 | if test -z "$OPT"; then |
---|
| 5480 | OPT="-Chopt" |
---|
| 5481 | fi |
---|
| 5482 | fi |
---|
| 5483 | |
---|
| 5484 | # Test to see if fortran compiler supports the flag |
---|
| 5485 | # -fallow-argument-mismatch flag introduced in gfortran 10. |
---|
| 5486 | # |
---|
| 5487 | # Also allow support for NAG compiler using the -mismatch_all flag. |
---|
| 5488 | # |
---|
| 5489 | # See https://github.com/Unidata/netcdf-fortran/issues/212 |
---|
| 5490 | # See https://github.com/Unidata/netcdf-fortran/issues/218 |
---|
| 5491 | ac_save_FCFLAGS="$FCFLAGS" |
---|
| 5492 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports allow-mismatch flag" >&5 |
---|
| 5493 | printf %s "checking if Fortran compiler supports allow-mismatch flag... " >&6; } |
---|
| 5494 | cat <<EOF >conftest.f90 |
---|
| 5495 | Program test |
---|
| 5496 | USE ISO_C_BINDING, ONLY: C_PTRDIFF_T |
---|
| 5497 | End Program |
---|
| 5498 | EOF |
---|
| 5499 | doit='$FC -c ${FCFLAGS} ${FCFLAGS_f90} -fallow-argument-mismatch conftest.f90' |
---|
| 5500 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 |
---|
| 5501 | (eval $doit) 2>&5 |
---|
| 5502 | ac_status=$? |
---|
| 5503 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 5504 | test $ac_status = 0; }; then |
---|
| 5505 | nf_allow_mismatch=yes |
---|
| 5506 | FCFLAGS="${FCFLAGS} -fallow-argument-mismatch" |
---|
| 5507 | else |
---|
| 5508 | nf_allow_mismatch=no |
---|
| 5509 | fi |
---|
| 5510 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nf_allow_mismatch" >&5 |
---|
| 5511 | printf "%s\n" "$nf_allow_mismatch" >&6; } |
---|
| 5512 | # End testing of gfortan allow-mismatch flags. |
---|
| 5513 | |
---|
| 5514 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports mismatch_all flag" >&5 |
---|
| 5515 | printf %s "checking if Fortran compiler supports mismatch_all flag... " >&6; } |
---|
| 5516 | cat <<EOF >conftest.f90 |
---|
| 5517 | Program test |
---|
| 5518 | USE ISO_C_BINDING, ONLY: C_PTRDIFF_T |
---|
| 5519 | End Program |
---|
| 5520 | EOF |
---|
| 5521 | doit='$FC -c ${FCFLAGS} ${FCFLAGS_f90} -mismatch_all conftest.f90' |
---|
| 5522 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 |
---|
| 5523 | (eval $doit) 2>&5 |
---|
| 5524 | ac_status=$? |
---|
| 5525 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 5526 | test $ac_status = 0; }; then |
---|
| 5527 | nf_mismatch_all=yes |
---|
| 5528 | FCFLAGS="${FCFLAGS} -mismatch_all" |
---|
| 5529 | else |
---|
| 5530 | nf_mismatch_all=no |
---|
| 5531 | fi |
---|
| 5532 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nf_mismatch_all" >&5 |
---|
| 5533 | printf "%s\n" "$nf_mismatch_all" >&6; } |
---|
| 5534 | |
---|
| 5535 | #end testing of NAG mismatch_all flag. |
---|
| 5536 | |
---|
| 5537 | ## |
---|
| 5538 | # End mismatch checks |
---|
| 5539 | ## |
---|
| 5540 | |
---|
| 5541 | |
---|
| 5542 | ########################################################### |
---|
| 5543 | # END of compiler-specific flag setting |
---|
| 5544 | ########################################################### |
---|
| 5545 | |
---|
| 5546 | CPPDEFS="$CPPDEFS -DSYS$SYSDEF -DCPR$CPRDEF" |
---|
| 5547 | if test -n "$SRKDEF"; then |
---|
| 5548 | CPPDEFS="$CPPDEFS -D$SRKDEF" |
---|
| 5549 | fi |
---|
| 5550 | |
---|
| 5551 | # IF DEBUGGING ENABLED, DISABLE OPTIMIZATION FLAG |
---|
| 5552 | if test "$DEBUGGING" = "ENABLED"; then |
---|
| 5553 | OPT="" |
---|
| 5554 | else |
---|
| 5555 | DEBUG="" |
---|
| 5556 | fi |
---|
| 5557 | |
---|
| 5558 | # SET HARDCODED VARIABLES AS A LAST RESORT |
---|
| 5559 | |
---|
| 5560 | # ALWAYS ENABLE CRULE IN MAKEFILE |
---|
| 5561 | CRULE=.c.o |
---|
| 5562 | |
---|
| 5563 | |
---|
| 5564 | |
---|
| 5565 | |
---|
| 5566 | # INCLUDE FLAG IF NOT ALREADY SET IS MOST LIKELY -I |
---|
| 5567 | if test -z "$INCLUDEFLAG"; then |
---|
| 5568 | INCLUDEFLAG="-I" |
---|
| 5569 | fi |
---|
| 5570 | |
---|
| 5571 | # ARCHIVE COMMAND SIMILAR ACROSS ALL PLATFORMS |
---|
| 5572 | if test -z "$AR"; then |
---|
| 5573 | AR="ar cq" |
---|
| 5574 | fi |
---|
| 5575 | |
---|
| 5576 | # RANLIB |
---|
| 5577 | if test -z "$RANLIB"; then |
---|
| 5578 | # Necessary on Darwin to deal with common symbols (particularly when |
---|
| 5579 | # using ifort). |
---|
| 5580 | if test "$SYSDEF"x = DARWINx; then |
---|
| 5581 | RANLIB="ranlib -c" |
---|
| 5582 | else |
---|
| 5583 | if test -n "$ac_tool_prefix"; then |
---|
| 5584 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
| 5585 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
| 5586 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 5587 | printf %s "checking for $ac_word... " >&6; } |
---|
| 5588 | if test ${ac_cv_prog_RANLIB+y} |
---|
| 5589 | then : |
---|
| 5590 | printf %s "(cached) " >&6 |
---|
| 5591 | else $as_nop |
---|
| 5592 | if test -n "$RANLIB"; then |
---|
| 5593 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
| 5594 | else |
---|
| 5595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 5596 | for as_dir in $PATH |
---|
| 5597 | do |
---|
| 5598 | IFS=$as_save_IFS |
---|
| 5599 | case $as_dir in #((( |
---|
| 5600 | '') as_dir=./ ;; |
---|
| 5601 | */) ;; |
---|
| 5602 | *) as_dir=$as_dir/ ;; |
---|
| 5603 | esac |
---|
| 5604 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 5605 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
---|
| 5606 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
| 5607 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
---|
| 5608 | break 2 |
---|
| 5609 | fi |
---|
| 5610 | done |
---|
| 5611 | done |
---|
| 5612 | IFS=$as_save_IFS |
---|
| 5613 | |
---|
| 5614 | fi |
---|
| 5615 | fi |
---|
| 5616 | RANLIB=$ac_cv_prog_RANLIB |
---|
| 5617 | if test -n "$RANLIB"; then |
---|
| 5618 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
| 5619 | printf "%s\n" "$RANLIB" >&6; } |
---|
| 5620 | else |
---|
| 5621 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 5622 | printf "%s\n" "no" >&6; } |
---|
| 5623 | fi |
---|
| 5624 | |
---|
| 5625 | |
---|
| 5626 | fi |
---|
| 5627 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
| 5628 | ac_ct_RANLIB=$RANLIB |
---|
| 5629 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
| 5630 | set dummy ranlib; ac_word=$2 |
---|
| 5631 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 5632 | printf %s "checking for $ac_word... " >&6; } |
---|
| 5633 | if test ${ac_cv_prog_ac_ct_RANLIB+y} |
---|
| 5634 | then : |
---|
| 5635 | printf %s "(cached) " >&6 |
---|
| 5636 | else $as_nop |
---|
| 5637 | if test -n "$ac_ct_RANLIB"; then |
---|
| 5638 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
| 5639 | else |
---|
| 5640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 5641 | for as_dir in $PATH |
---|
| 5642 | do |
---|
| 5643 | IFS=$as_save_IFS |
---|
| 5644 | case $as_dir in #((( |
---|
| 5645 | '') as_dir=./ ;; |
---|
| 5646 | */) ;; |
---|
| 5647 | *) as_dir=$as_dir/ ;; |
---|
| 5648 | esac |
---|
| 5649 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 5650 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
---|
| 5651 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
| 5652 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
---|
| 5653 | break 2 |
---|
| 5654 | fi |
---|
| 5655 | done |
---|
| 5656 | done |
---|
| 5657 | IFS=$as_save_IFS |
---|
| 5658 | |
---|
| 5659 | fi |
---|
| 5660 | fi |
---|
| 5661 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
| 5662 | if test -n "$ac_ct_RANLIB"; then |
---|
| 5663 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
| 5664 | printf "%s\n" "$ac_ct_RANLIB" >&6; } |
---|
| 5665 | else |
---|
| 5666 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 5667 | printf "%s\n" "no" >&6; } |
---|
| 5668 | fi |
---|
| 5669 | |
---|
| 5670 | if test "x$ac_ct_RANLIB" = x; then |
---|
| 5671 | RANLIB=":" |
---|
| 5672 | else |
---|
| 5673 | case $cross_compiling:$ac_tool_warned in |
---|
| 5674 | yes:) |
---|
| 5675 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 5676 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
| 5677 | ac_tool_warned=yes ;; |
---|
| 5678 | esac |
---|
| 5679 | RANLIB=$ac_ct_RANLIB |
---|
| 5680 | fi |
---|
| 5681 | else |
---|
| 5682 | RANLIB="$ac_cv_prog_RANLIB" |
---|
| 5683 | fi |
---|
| 5684 | |
---|
| 5685 | fi |
---|
| 5686 | fi |
---|
| 5687 | |
---|
| 5688 | echo |
---|
| 5689 | echo Output Variables: {CC=$CC} {CFLAGS=$CFLAGS} \ |
---|
| 5690 | {FC=$FC} {FCFLAGS=$FCFLAGS} {PROGFCFLAGS=$PROGFCFLAGS}\ |
---|
| 5691 | {CPPDEFS=$CPPDEFS} {OPT=$OPT} {DEBUG=$DEBUG} {REAL8=$REAL8} \ |
---|
| 5692 | {BIT64=$BIT64} {ENDIAN=$ENDIAN} {MPIFC=$MPIFC} \ |
---|
| 5693 | {MPILIBS=$MPILIBS} {MPIHEADER=$MPIHEADER} \ |
---|
| 5694 | {INCLUDEFLAG=$INCLUDEFLAG} {INCLUDEPATH=$INCLUDEPATH} \ |
---|
| 5695 | {AR=$AR} {RANLIB=$RANLIB} {BABELROOT=$BABELROOT} {COMPILER_ROOT=$COMPILER_ROOT} \ |
---|
| 5696 | {PYTHON=$PYTHON} {PYTHONOPTS=$PYTHONOPTS} {FORT_SIZE=$FORT_SIZE} {prefix=$prefix} \ |
---|
| 5697 | {SRCDIR=$SRCDIR} {FC_DEFINE=$FC_DEFINE} |
---|
| 5698 | echo |
---|
| 5699 | |
---|
| 5700 | if test -n "$DONOTCHECKMPI"; then |
---|
| 5701 | echo "MPISERIAL ENABLED: CONFIGURING mpi-serial" |
---|
| 5702 | |
---|
| 5703 | |
---|
| 5704 | subdirs="$subdirs mpi-serial" |
---|
| 5705 | |
---|
| 5706 | fi |
---|
| 5707 | |
---|
| 5708 | cat >confcache <<\_ACEOF |
---|
| 5709 | # This file is a shell script that caches the results of configure |
---|
| 5710 | # tests run on this system so they can be shared between configure |
---|
| 5711 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 5712 | # It is not useful on other systems. If it contains results you don't |
---|
| 5713 | # want to keep, you may remove or edit it. |
---|
| 5714 | # |
---|
| 5715 | # config.status only pays attention to the cache file if you give it |
---|
| 5716 | # the --recheck option to rerun configure. |
---|
| 5717 | # |
---|
| 5718 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 5719 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 5720 | # following values. |
---|
| 5721 | |
---|
| 5722 | _ACEOF |
---|
| 5723 | |
---|
| 5724 | # The following way of writing the cache mishandles newlines in values, |
---|
| 5725 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 5726 | # So, we kill variables containing newlines. |
---|
| 5727 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 5728 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 5729 | ( |
---|
| 5730 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
| 5731 | eval ac_val=\$$ac_var |
---|
| 5732 | case $ac_val in #( |
---|
| 5733 | *${as_nl}*) |
---|
| 5734 | case $ac_var in #( |
---|
| 5735 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
| 5736 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
| 5737 | esac |
---|
| 5738 | case $ac_var in #( |
---|
| 5739 | _ | IFS | as_nl) ;; #( |
---|
| 5740 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
| 5741 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
| 5742 | esac ;; |
---|
| 5743 | esac |
---|
| 5744 | done |
---|
| 5745 | |
---|
| 5746 | (set) 2>&1 | |
---|
| 5747 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
| 5748 | *${as_nl}ac_space=\ *) |
---|
| 5749 | # `set' does not quote correctly, so add quotes: double-quote |
---|
| 5750 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
| 5751 | sed -n \ |
---|
| 5752 | "s/'/'\\\\''/g; |
---|
| 5753 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 5754 | ;; #( |
---|
| 5755 | *) |
---|
| 5756 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 5757 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
| 5758 | ;; |
---|
| 5759 | esac | |
---|
| 5760 | sort |
---|
| 5761 | ) | |
---|
| 5762 | sed ' |
---|
| 5763 | /^ac_cv_env_/b end |
---|
| 5764 | t clear |
---|
| 5765 | :clear |
---|
| 5766 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
---|
| 5767 | t end |
---|
| 5768 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 5769 | :end' >>confcache |
---|
| 5770 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
| 5771 | if test -w "$cache_file"; then |
---|
| 5772 | if test "x$cache_file" != "x/dev/null"; then |
---|
| 5773 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
| 5774 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
---|
| 5775 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
| 5776 | cat confcache >"$cache_file" |
---|
| 5777 | else |
---|
| 5778 | case $cache_file in #( |
---|
| 5779 | */* | ?:*) |
---|
| 5780 | mv -f confcache "$cache_file"$$ && |
---|
| 5781 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
| 5782 | *) |
---|
| 5783 | mv -f confcache "$cache_file" ;; |
---|
| 5784 | esac |
---|
| 5785 | fi |
---|
| 5786 | fi |
---|
| 5787 | else |
---|
| 5788 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
| 5789 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
| 5790 | fi |
---|
| 5791 | fi |
---|
| 5792 | rm -f confcache |
---|
| 5793 | |
---|
| 5794 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 5795 | # Let make expand exec_prefix. |
---|
| 5796 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 5797 | |
---|
| 5798 | DEFS=-DHAVE_CONFIG_H |
---|
| 5799 | |
---|
| 5800 | ac_libobjs= |
---|
| 5801 | ac_ltlibobjs= |
---|
| 5802 | U= |
---|
| 5803 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 5804 | # 1. Remove the extension, and $U if already installed. |
---|
| 5805 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
| 5806 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
---|
| 5807 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
| 5808 | # will be set to the directory where LIBOBJS objects are built. |
---|
| 5809 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
| 5810 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
| 5811 | done |
---|
| 5812 | LIBOBJS=$ac_libobjs |
---|
| 5813 | |
---|
| 5814 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 5815 | |
---|
| 5816 | |
---|
| 5817 | |
---|
| 5818 | |
---|
| 5819 | : "${CONFIG_STATUS=./config.status}" |
---|
| 5820 | ac_write_fail=0 |
---|
| 5821 | ac_clean_files_save=$ac_clean_files |
---|
| 5822 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 5823 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
| 5824 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 5825 | as_write_fail=0 |
---|
| 5826 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
| 5827 | #! $SHELL |
---|
| 5828 | # Generated by $as_me. |
---|
| 5829 | # Run this file to recreate the current configuration. |
---|
| 5830 | # Compiler output produced by configure, useful for debugging |
---|
| 5831 | # configure, is in config.log if it exists. |
---|
| 5832 | |
---|
| 5833 | debug=false |
---|
| 5834 | ac_cs_recheck=false |
---|
| 5835 | ac_cs_silent=false |
---|
| 5836 | |
---|
| 5837 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 5838 | export SHELL |
---|
| 5839 | _ASEOF |
---|
| 5840 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
| 5841 | ## -------------------- ## |
---|
| 5842 | ## M4sh Initialization. ## |
---|
| 5843 | ## -------------------- ## |
---|
| 5844 | |
---|
| 5845 | # Be more Bourne compatible |
---|
| 5846 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 5847 | as_nop=: |
---|
| 5848 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
---|
| 5849 | then : |
---|
| 5850 | emulate sh |
---|
| 5851 | NULLCMD=: |
---|
| 5852 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
| 5853 | # is contrary to our usage. Disable this feature. |
---|
| 5854 | alias -g '${1+"$@"}'='"$@"' |
---|
| 5855 | setopt NO_GLOB_SUBST |
---|
| 5856 | else $as_nop |
---|
| 5857 | case `(set -o) 2>/dev/null` in #( |
---|
| 5858 | *posix*) : |
---|
| 5859 | set -o posix ;; #( |
---|
| 5860 | *) : |
---|
| 5861 | ;; |
---|
| 5862 | esac |
---|
| 5863 | fi |
---|
| 5864 | |
---|
| 5865 | |
---|
| 5866 | |
---|
| 5867 | # Reset variables that may have inherited troublesome values from |
---|
| 5868 | # the environment. |
---|
| 5869 | |
---|
| 5870 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
---|
| 5871 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
---|
| 5872 | # side effect of setting IFS to empty, thus disabling word splitting.) |
---|
| 5873 | # Quoting is to prevent editors from complaining about space-tab. |
---|
| 5874 | as_nl=' |
---|
| 5875 | ' |
---|
| 5876 | export as_nl |
---|
| 5877 | IFS=" "" $as_nl" |
---|
| 5878 | |
---|
| 5879 | PS1='$ ' |
---|
| 5880 | PS2='> ' |
---|
| 5881 | PS4='+ ' |
---|
| 5882 | |
---|
| 5883 | # Ensure predictable behavior from utilities with locale-dependent output. |
---|
| 5884 | LC_ALL=C |
---|
| 5885 | export LC_ALL |
---|
| 5886 | LANGUAGE=C |
---|
| 5887 | export LANGUAGE |
---|
| 5888 | |
---|
| 5889 | # We cannot yet rely on "unset" to work, but we need these variables |
---|
| 5890 | # to be unset--not just set to an empty or harmless value--now, to |
---|
| 5891 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
---|
| 5892 | # also avoids known problems related to "unset" and subshell syntax |
---|
| 5893 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
---|
| 5894 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
---|
| 5895 | do eval test \${$as_var+y} \ |
---|
| 5896 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
| 5897 | done |
---|
| 5898 | |
---|
| 5899 | # Ensure that fds 0, 1, and 2 are open. |
---|
| 5900 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
---|
| 5901 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
---|
| 5902 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
---|
| 5903 | |
---|
| 5904 | # The user is always right. |
---|
| 5905 | if ${PATH_SEPARATOR+false} :; then |
---|
| 5906 | PATH_SEPARATOR=: |
---|
| 5907 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
| 5908 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
| 5909 | PATH_SEPARATOR=';' |
---|
| 5910 | } |
---|
| 5911 | fi |
---|
| 5912 | |
---|
| 5913 | |
---|
| 5914 | # Find who we are. Look in the path if we contain no directory separator. |
---|
| 5915 | as_myself= |
---|
| 5916 | case $0 in #(( |
---|
| 5917 | *[\\/]* ) as_myself=$0 ;; |
---|
| 5918 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 5919 | for as_dir in $PATH |
---|
| 5920 | do |
---|
| 5921 | IFS=$as_save_IFS |
---|
| 5922 | case $as_dir in #((( |
---|
| 5923 | '') as_dir=./ ;; |
---|
| 5924 | */) ;; |
---|
| 5925 | *) as_dir=$as_dir/ ;; |
---|
| 5926 | esac |
---|
| 5927 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
---|
| 5928 | done |
---|
| 5929 | IFS=$as_save_IFS |
---|
| 5930 | |
---|
| 5931 | ;; |
---|
| 5932 | esac |
---|
| 5933 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 5934 | # in which case we are not to be found in the path. |
---|
| 5935 | if test "x$as_myself" = x; then |
---|
| 5936 | as_myself=$0 |
---|
| 5937 | fi |
---|
| 5938 | if test ! -f "$as_myself"; then |
---|
| 5939 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
| 5940 | exit 1 |
---|
| 5941 | fi |
---|
| 5942 | |
---|
| 5943 | |
---|
| 5944 | |
---|
| 5945 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
| 5946 | # ---------------------------------------- |
---|
| 5947 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
| 5948 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
| 5949 | # script with STATUS, using 1 if that was 0. |
---|
| 5950 | as_fn_error () |
---|
| 5951 | { |
---|
| 5952 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
| 5953 | if test "$4"; then |
---|
| 5954 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 5955 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
| 5956 | fi |
---|
| 5957 | printf "%s\n" "$as_me: error: $2" >&2 |
---|
| 5958 | as_fn_exit $as_status |
---|
| 5959 | } # as_fn_error |
---|
| 5960 | |
---|
| 5961 | |
---|
| 5962 | |
---|
| 5963 | # as_fn_set_status STATUS |
---|
| 5964 | # ----------------------- |
---|
| 5965 | # Set $? to STATUS, without forking. |
---|
| 5966 | as_fn_set_status () |
---|
| 5967 | { |
---|
| 5968 | return $1 |
---|
| 5969 | } # as_fn_set_status |
---|
| 5970 | |
---|
| 5971 | # as_fn_exit STATUS |
---|
| 5972 | # ----------------- |
---|
| 5973 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
| 5974 | as_fn_exit () |
---|
| 5975 | { |
---|
| 5976 | set +e |
---|
| 5977 | as_fn_set_status $1 |
---|
| 5978 | exit $1 |
---|
| 5979 | } # as_fn_exit |
---|
| 5980 | |
---|
| 5981 | # as_fn_unset VAR |
---|
| 5982 | # --------------- |
---|
| 5983 | # Portably unset VAR. |
---|
| 5984 | as_fn_unset () |
---|
| 5985 | { |
---|
| 5986 | { eval $1=; unset $1;} |
---|
| 5987 | } |
---|
| 5988 | as_unset=as_fn_unset |
---|
| 5989 | |
---|
| 5990 | # as_fn_append VAR VALUE |
---|
| 5991 | # ---------------------- |
---|
| 5992 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
| 5993 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
| 5994 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
| 5995 | # implementations. |
---|
| 5996 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
---|
| 5997 | then : |
---|
| 5998 | eval 'as_fn_append () |
---|
| 5999 | { |
---|
| 6000 | eval $1+=\$2 |
---|
| 6001 | }' |
---|
| 6002 | else $as_nop |
---|
| 6003 | as_fn_append () |
---|
| 6004 | { |
---|
| 6005 | eval $1=\$$1\$2 |
---|
| 6006 | } |
---|
| 6007 | fi # as_fn_append |
---|
| 6008 | |
---|
| 6009 | # as_fn_arith ARG... |
---|
| 6010 | # ------------------ |
---|
| 6011 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
| 6012 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
| 6013 | # must be portable across $(()) and expr. |
---|
| 6014 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
---|
| 6015 | then : |
---|
| 6016 | eval 'as_fn_arith () |
---|
| 6017 | { |
---|
| 6018 | as_val=$(( $* )) |
---|
| 6019 | }' |
---|
| 6020 | else $as_nop |
---|
| 6021 | as_fn_arith () |
---|
| 6022 | { |
---|
| 6023 | as_val=`expr "$@" || test $? -eq 1` |
---|
| 6024 | } |
---|
| 6025 | fi # as_fn_arith |
---|
| 6026 | |
---|
| 6027 | |
---|
| 6028 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 6029 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
| 6030 | as_expr=expr |
---|
| 6031 | else |
---|
| 6032 | as_expr=false |
---|
| 6033 | fi |
---|
| 6034 | |
---|
| 6035 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
| 6036 | as_basename=basename |
---|
| 6037 | else |
---|
| 6038 | as_basename=false |
---|
| 6039 | fi |
---|
| 6040 | |
---|
| 6041 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
| 6042 | as_dirname=dirname |
---|
| 6043 | else |
---|
| 6044 | as_dirname=false |
---|
| 6045 | fi |
---|
| 6046 | |
---|
| 6047 | as_me=`$as_basename -- "$0" || |
---|
| 6048 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 6049 | X"$0" : 'X\(//\)$' \| \ |
---|
| 6050 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 6051 | printf "%s\n" X/"$0" | |
---|
| 6052 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
| 6053 | s//\1/ |
---|
| 6054 | q |
---|
| 6055 | } |
---|
| 6056 | /^X\/\(\/\/\)$/{ |
---|
| 6057 | s//\1/ |
---|
| 6058 | q |
---|
| 6059 | } |
---|
| 6060 | /^X\/\(\/\).*/{ |
---|
| 6061 | s//\1/ |
---|
| 6062 | q |
---|
| 6063 | } |
---|
| 6064 | s/.*/./; q'` |
---|
| 6065 | |
---|
| 6066 | # Avoid depending upon Character Ranges. |
---|
| 6067 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 6068 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 6069 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 6070 | as_cr_digits='0123456789' |
---|
| 6071 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 6072 | |
---|
| 6073 | |
---|
| 6074 | # Determine whether it's possible to make 'echo' print without a newline. |
---|
| 6075 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
---|
| 6076 | # for compatibility with existing Makefiles. |
---|
| 6077 | ECHO_C= ECHO_N= ECHO_T= |
---|
| 6078 | case `echo -n x` in #((((( |
---|
| 6079 | -n*) |
---|
| 6080 | case `echo 'xy\c'` in |
---|
| 6081 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
| 6082 | xy) ECHO_C='\c';; |
---|
| 6083 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
| 6084 | ECHO_T=' ';; |
---|
| 6085 | esac;; |
---|
| 6086 | *) |
---|
| 6087 | ECHO_N='-n';; |
---|
| 6088 | esac |
---|
| 6089 | |
---|
| 6090 | # For backward compatibility with old third-party macros, we provide |
---|
| 6091 | # the shell variables $as_echo and $as_echo_n. New code should use |
---|
| 6092 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
---|
| 6093 | as_echo='printf %s\n' |
---|
| 6094 | as_echo_n='printf %s' |
---|
| 6095 | |
---|
| 6096 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 6097 | if test -d conf$$.dir; then |
---|
| 6098 | rm -f conf$$.dir/conf$$.file |
---|
| 6099 | else |
---|
| 6100 | rm -f conf$$.dir |
---|
| 6101 | mkdir conf$$.dir 2>/dev/null |
---|
| 6102 | fi |
---|
| 6103 | if (echo >conf$$.file) 2>/dev/null; then |
---|
| 6104 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 6105 | as_ln_s='ln -s' |
---|
| 6106 | # ... but there are two gotchas: |
---|
| 6107 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
| 6108 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
| 6109 | # In both cases, we have to default to `cp -pR'. |
---|
| 6110 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
| 6111 | as_ln_s='cp -pR' |
---|
| 6112 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 6113 | as_ln_s=ln |
---|
| 6114 | else |
---|
| 6115 | as_ln_s='cp -pR' |
---|
| 6116 | fi |
---|
| 6117 | else |
---|
| 6118 | as_ln_s='cp -pR' |
---|
| 6119 | fi |
---|
| 6120 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
| 6121 | rmdir conf$$.dir 2>/dev/null |
---|
| 6122 | |
---|
| 6123 | |
---|
| 6124 | # as_fn_mkdir_p |
---|
| 6125 | # ------------- |
---|
| 6126 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
| 6127 | as_fn_mkdir_p () |
---|
| 6128 | { |
---|
| 6129 | |
---|
| 6130 | case $as_dir in #( |
---|
| 6131 | -*) as_dir=./$as_dir;; |
---|
| 6132 | esac |
---|
| 6133 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
| 6134 | as_dirs= |
---|
| 6135 | while :; do |
---|
| 6136 | case $as_dir in #( |
---|
| 6137 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
| 6138 | *) as_qdir=$as_dir;; |
---|
| 6139 | esac |
---|
| 6140 | as_dirs="'$as_qdir' $as_dirs" |
---|
| 6141 | as_dir=`$as_dirname -- "$as_dir" || |
---|
| 6142 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 6143 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 6144 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 6145 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 6146 | printf "%s\n" X"$as_dir" | |
---|
| 6147 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 6148 | s//\1/ |
---|
| 6149 | q |
---|
| 6150 | } |
---|
| 6151 | /^X\(\/\/\)[^/].*/{ |
---|
| 6152 | s//\1/ |
---|
| 6153 | q |
---|
| 6154 | } |
---|
| 6155 | /^X\(\/\/\)$/{ |
---|
| 6156 | s//\1/ |
---|
| 6157 | q |
---|
| 6158 | } |
---|
| 6159 | /^X\(\/\).*/{ |
---|
| 6160 | s//\1/ |
---|
| 6161 | q |
---|
| 6162 | } |
---|
| 6163 | s/.*/./; q'` |
---|
| 6164 | test -d "$as_dir" && break |
---|
| 6165 | done |
---|
| 6166 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
| 6167 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
| 6168 | |
---|
| 6169 | |
---|
| 6170 | } # as_fn_mkdir_p |
---|
| 6171 | if mkdir -p . 2>/dev/null; then |
---|
| 6172 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
| 6173 | else |
---|
| 6174 | test -d ./-p && rmdir ./-p |
---|
| 6175 | as_mkdir_p=false |
---|
| 6176 | fi |
---|
| 6177 | |
---|
| 6178 | |
---|
| 6179 | # as_fn_executable_p FILE |
---|
| 6180 | # ----------------------- |
---|
| 6181 | # Test if FILE is an executable regular file. |
---|
| 6182 | as_fn_executable_p () |
---|
| 6183 | { |
---|
| 6184 | test -f "$1" && test -x "$1" |
---|
| 6185 | } # as_fn_executable_p |
---|
| 6186 | as_test_x='test -x' |
---|
| 6187 | as_executable_p=as_fn_executable_p |
---|
| 6188 | |
---|
| 6189 | # Sed expression to map a string onto a valid CPP name. |
---|
| 6190 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 6191 | |
---|
| 6192 | # Sed expression to map a string onto a valid variable name. |
---|
| 6193 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 6194 | |
---|
| 6195 | |
---|
| 6196 | exec 6>&1 |
---|
| 6197 | ## ----------------------------------- ## |
---|
| 6198 | ## Main body of $CONFIG_STATUS script. ## |
---|
| 6199 | ## ----------------------------------- ## |
---|
| 6200 | _ASEOF |
---|
| 6201 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
| 6202 | |
---|
| 6203 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 6204 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
| 6205 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 6206 | # values after options handling. |
---|
| 6207 | ac_log=" |
---|
| 6208 | This file was extended by MCT $as_me 2.10, which was |
---|
| 6209 | generated by GNU Autoconf 2.70. Invocation command line was |
---|
| 6210 | |
---|
| 6211 | CONFIG_FILES = $CONFIG_FILES |
---|
| 6212 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 6213 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 6214 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 6215 | $ $0 $@ |
---|
| 6216 | |
---|
| 6217 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 6218 | " |
---|
| 6219 | |
---|
| 6220 | _ACEOF |
---|
| 6221 | |
---|
| 6222 | case $ac_config_files in *" |
---|
| 6223 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
| 6224 | esac |
---|
| 6225 | |
---|
| 6226 | case $ac_config_headers in *" |
---|
| 6227 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
---|
| 6228 | esac |
---|
| 6229 | |
---|
| 6230 | |
---|
| 6231 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 6232 | # Files that config.status was made for. |
---|
| 6233 | config_files="$ac_config_files" |
---|
| 6234 | config_headers="$ac_config_headers" |
---|
| 6235 | |
---|
| 6236 | _ACEOF |
---|
| 6237 | |
---|
| 6238 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 6239 | ac_cs_usage="\ |
---|
| 6240 | \`$as_me' instantiates files and other configuration actions |
---|
| 6241 | from templates according to the current configuration. Unless the files |
---|
| 6242 | and actions are specified as TAGs, all are instantiated by default. |
---|
| 6243 | |
---|
| 6244 | Usage: $0 [OPTION]... [TAG]... |
---|
| 6245 | |
---|
| 6246 | -h, --help print this help, then exit |
---|
| 6247 | -V, --version print version number and configuration settings, then exit |
---|
| 6248 | --config print configuration, then exit |
---|
| 6249 | -q, --quiet, --silent |
---|
| 6250 | do not print progress messages |
---|
| 6251 | -d, --debug don't remove temporary files |
---|
| 6252 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 6253 | --file=FILE[:TEMPLATE] |
---|
| 6254 | instantiate the configuration file FILE |
---|
| 6255 | --header=FILE[:TEMPLATE] |
---|
| 6256 | instantiate the configuration header FILE |
---|
| 6257 | |
---|
| 6258 | Configuration files: |
---|
| 6259 | $config_files |
---|
| 6260 | |
---|
| 6261 | Configuration headers: |
---|
| 6262 | $config_headers |
---|
| 6263 | |
---|
| 6264 | Report bugs to the package provider." |
---|
| 6265 | |
---|
| 6266 | _ACEOF |
---|
| 6267 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
---|
| 6268 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
---|
| 6269 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 6270 | ac_cs_config='$ac_cs_config_escaped' |
---|
| 6271 | ac_cs_version="\\ |
---|
| 6272 | MCT config.status 2.10 |
---|
| 6273 | configured by $0, generated by GNU Autoconf 2.70, |
---|
| 6274 | with options \\"\$ac_cs_config\\" |
---|
| 6275 | |
---|
| 6276 | Copyright (C) 2020 Free Software Foundation, Inc. |
---|
| 6277 | This config.status script is free software; the Free Software Foundation |
---|
| 6278 | gives unlimited permission to copy, distribute and modify it." |
---|
| 6279 | |
---|
| 6280 | ac_pwd='$ac_pwd' |
---|
| 6281 | srcdir='$srcdir' |
---|
| 6282 | test -n "\$AWK" || AWK=awk |
---|
| 6283 | _ACEOF |
---|
| 6284 | |
---|
| 6285 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 6286 | # The default lists apply if the user does not specify any file. |
---|
| 6287 | ac_need_defaults=: |
---|
| 6288 | while test $# != 0 |
---|
| 6289 | do |
---|
| 6290 | case $1 in |
---|
| 6291 | --*=?*) |
---|
| 6292 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
| 6293 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
| 6294 | ac_shift=: |
---|
| 6295 | ;; |
---|
| 6296 | --*=) |
---|
| 6297 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
| 6298 | ac_optarg= |
---|
| 6299 | ac_shift=: |
---|
| 6300 | ;; |
---|
| 6301 | *) |
---|
| 6302 | ac_option=$1 |
---|
| 6303 | ac_optarg=$2 |
---|
| 6304 | ac_shift=shift |
---|
| 6305 | ;; |
---|
| 6306 | esac |
---|
| 6307 | |
---|
| 6308 | case $ac_option in |
---|
| 6309 | # Handling of the options. |
---|
| 6310 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 6311 | ac_cs_recheck=: ;; |
---|
| 6312 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
| 6313 | printf "%s\n" "$ac_cs_version"; exit ;; |
---|
| 6314 | --config | --confi | --conf | --con | --co | --c ) |
---|
| 6315 | printf "%s\n" "$ac_cs_config"; exit ;; |
---|
| 6316 | --debug | --debu | --deb | --de | --d | -d ) |
---|
| 6317 | debug=: ;; |
---|
| 6318 | --file | --fil | --fi | --f ) |
---|
| 6319 | $ac_shift |
---|
| 6320 | case $ac_optarg in |
---|
| 6321 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 6322 | '') as_fn_error $? "missing file argument" ;; |
---|
| 6323 | esac |
---|
| 6324 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
| 6325 | ac_need_defaults=false;; |
---|
| 6326 | --header | --heade | --head | --hea ) |
---|
| 6327 | $ac_shift |
---|
| 6328 | case $ac_optarg in |
---|
| 6329 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 6330 | esac |
---|
| 6331 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
---|
| 6332 | ac_need_defaults=false;; |
---|
| 6333 | --he | --h) |
---|
| 6334 | # Conflict between --help and --header |
---|
| 6335 | as_fn_error $? "ambiguous option: \`$1' |
---|
| 6336 | Try \`$0 --help' for more information.";; |
---|
| 6337 | --help | --hel | -h ) |
---|
| 6338 | printf "%s\n" "$ac_cs_usage"; exit ;; |
---|
| 6339 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 6340 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 6341 | ac_cs_silent=: ;; |
---|
| 6342 | |
---|
| 6343 | # This is an error. |
---|
| 6344 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
| 6345 | Try \`$0 --help' for more information." ;; |
---|
| 6346 | |
---|
| 6347 | *) as_fn_append ac_config_targets " $1" |
---|
| 6348 | ac_need_defaults=false ;; |
---|
| 6349 | |
---|
| 6350 | esac |
---|
| 6351 | shift |
---|
| 6352 | done |
---|
| 6353 | |
---|
| 6354 | ac_configure_extra_args= |
---|
| 6355 | |
---|
| 6356 | if $ac_cs_silent; then |
---|
| 6357 | exec 6>/dev/null |
---|
| 6358 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 6359 | fi |
---|
| 6360 | |
---|
| 6361 | _ACEOF |
---|
| 6362 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 6363 | if \$ac_cs_recheck; then |
---|
| 6364 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 6365 | shift |
---|
| 6366 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
| 6367 | CONFIG_SHELL='$SHELL' |
---|
| 6368 | export CONFIG_SHELL |
---|
| 6369 | exec "\$@" |
---|
| 6370 | fi |
---|
| 6371 | |
---|
| 6372 | _ACEOF |
---|
| 6373 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 6374 | exec 5>>config.log |
---|
| 6375 | { |
---|
| 6376 | echo |
---|
| 6377 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 6378 | ## Running $as_me. ## |
---|
| 6379 | _ASBOX |
---|
| 6380 | printf "%s\n" "$ac_log" |
---|
| 6381 | } >&5 |
---|
| 6382 | |
---|
| 6383 | _ACEOF |
---|
| 6384 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 6385 | _ACEOF |
---|
| 6386 | |
---|
| 6387 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 6388 | |
---|
| 6389 | # Handling of arguments. |
---|
| 6390 | for ac_config_target in $ac_config_targets |
---|
| 6391 | do |
---|
| 6392 | case $ac_config_target in |
---|
| 6393 | "Makefile.conf") CONFIG_FILES="$CONFIG_FILES Makefile.conf" ;; |
---|
| 6394 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
| 6395 | |
---|
| 6396 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
| 6397 | esac |
---|
| 6398 | done |
---|
| 6399 | |
---|
| 6400 | |
---|
| 6401 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 6402 | # then the envvar interface is used. Set only those that are not. |
---|
| 6403 | # We use the long form for the default assignment because of an extremely |
---|
| 6404 | # bizarre bug on SunOS 4.1.3. |
---|
| 6405 | if $ac_need_defaults; then |
---|
| 6406 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
---|
| 6407 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
---|
| 6408 | fi |
---|
| 6409 | |
---|
| 6410 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 6411 | # simply because there is no reason against having it here, and in addition, |
---|
| 6412 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 6413 | # Hook for its removal unless debugging. |
---|
| 6414 | # Note that there is a small window in which the directory will not be cleaned: |
---|
| 6415 | # after its creation but before its name has been assigned to `$tmp'. |
---|
| 6416 | $debug || |
---|
| 6417 | { |
---|
| 6418 | tmp= ac_tmp= |
---|
| 6419 | trap 'exit_status=$? |
---|
| 6420 | : "${ac_tmp:=$tmp}" |
---|
| 6421 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
| 6422 | ' 0 |
---|
| 6423 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
| 6424 | } |
---|
| 6425 | # Create a (secure) tmp directory for tmp files. |
---|
| 6426 | |
---|
| 6427 | { |
---|
| 6428 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
| 6429 | test -d "$tmp" |
---|
| 6430 | } || |
---|
| 6431 | { |
---|
| 6432 | tmp=./conf$$-$RANDOM |
---|
| 6433 | (umask 077 && mkdir "$tmp") |
---|
| 6434 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
| 6435 | ac_tmp=$tmp |
---|
| 6436 | |
---|
| 6437 | # Set up the scripts for CONFIG_FILES section. |
---|
| 6438 | # No need to generate them if there are no CONFIG_FILES. |
---|
| 6439 | # This happens for instance with `./config.status config.h'. |
---|
| 6440 | if test -n "$CONFIG_FILES"; then |
---|
| 6441 | |
---|
| 6442 | |
---|
| 6443 | ac_cr=`echo X | tr X '\015'` |
---|
| 6444 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
| 6445 | # But we know of no other shell where ac_cr would be empty at this |
---|
| 6446 | # point, so we can use a bashism as a fallback. |
---|
| 6447 | if test "x$ac_cr" = x; then |
---|
| 6448 | eval ac_cr=\$\'\\r\' |
---|
| 6449 | fi |
---|
| 6450 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
| 6451 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
| 6452 | ac_cs_awk_cr='\\r' |
---|
| 6453 | else |
---|
| 6454 | ac_cs_awk_cr=$ac_cr |
---|
| 6455 | fi |
---|
| 6456 | |
---|
| 6457 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
| 6458 | _ACEOF |
---|
| 6459 | |
---|
| 6460 | |
---|
| 6461 | { |
---|
| 6462 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
| 6463 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
| 6464 | echo "_ACEOF" |
---|
| 6465 | } >conf$$subs.sh || |
---|
| 6466 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
| 6467 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
| 6468 | ac_delim='%!_!# ' |
---|
| 6469 | for ac_last_try in false false false false false :; do |
---|
| 6470 | . ./conf$$subs.sh || |
---|
| 6471 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
| 6472 | |
---|
| 6473 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
| 6474 | if test $ac_delim_n = $ac_delim_num; then |
---|
| 6475 | break |
---|
| 6476 | elif $ac_last_try; then |
---|
| 6477 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
| 6478 | else |
---|
| 6479 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
| 6480 | fi |
---|
| 6481 | done |
---|
| 6482 | rm -f conf$$subs.sh |
---|
| 6483 | |
---|
| 6484 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 6485 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
| 6486 | _ACEOF |
---|
| 6487 | sed -n ' |
---|
| 6488 | h |
---|
| 6489 | s/^/S["/; s/!.*/"]=/ |
---|
| 6490 | p |
---|
| 6491 | g |
---|
| 6492 | s/^[^!]*!// |
---|
| 6493 | :repl |
---|
| 6494 | t repl |
---|
| 6495 | s/'"$ac_delim"'$// |
---|
| 6496 | t delim |
---|
| 6497 | :nl |
---|
| 6498 | h |
---|
| 6499 | s/\(.\{148\}\)..*/\1/ |
---|
| 6500 | t more1 |
---|
| 6501 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
| 6502 | p |
---|
| 6503 | n |
---|
| 6504 | b repl |
---|
| 6505 | :more1 |
---|
| 6506 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
| 6507 | p |
---|
| 6508 | g |
---|
| 6509 | s/.\{148\}// |
---|
| 6510 | t nl |
---|
| 6511 | :delim |
---|
| 6512 | h |
---|
| 6513 | s/\(.\{148\}\)..*/\1/ |
---|
| 6514 | t more2 |
---|
| 6515 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
| 6516 | p |
---|
| 6517 | b |
---|
| 6518 | :more2 |
---|
| 6519 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
| 6520 | p |
---|
| 6521 | g |
---|
| 6522 | s/.\{148\}// |
---|
| 6523 | t delim |
---|
| 6524 | ' <conf$$subs.awk | sed ' |
---|
| 6525 | /^[^""]/{ |
---|
| 6526 | N |
---|
| 6527 | s/\n// |
---|
| 6528 | } |
---|
| 6529 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
| 6530 | rm -f conf$$subs.awk |
---|
| 6531 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 6532 | _ACAWK |
---|
| 6533 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
| 6534 | for (key in S) S_is_set[key] = 1 |
---|
| 6535 | FS = "" |
---|
| 6536 | |
---|
| 6537 | } |
---|
| 6538 | { |
---|
| 6539 | line = $ 0 |
---|
| 6540 | nfields = split(line, field, "@") |
---|
| 6541 | substed = 0 |
---|
| 6542 | len = length(field[1]) |
---|
| 6543 | for (i = 2; i < nfields; i++) { |
---|
| 6544 | key = field[i] |
---|
| 6545 | keylen = length(key) |
---|
| 6546 | if (S_is_set[key]) { |
---|
| 6547 | value = S[key] |
---|
| 6548 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
| 6549 | len += length(value) + length(field[++i]) |
---|
| 6550 | substed = 1 |
---|
| 6551 | } else |
---|
| 6552 | len += 1 + keylen |
---|
| 6553 | } |
---|
| 6554 | |
---|
| 6555 | print line |
---|
| 6556 | } |
---|
| 6557 | |
---|
| 6558 | _ACAWK |
---|
| 6559 | _ACEOF |
---|
| 6560 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 6561 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
| 6562 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
| 6563 | else |
---|
| 6564 | cat |
---|
| 6565 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
| 6566 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
| 6567 | _ACEOF |
---|
| 6568 | |
---|
| 6569 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
| 6570 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
| 6571 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 6572 | # (actually we leave an empty line to preserve line numbers). |
---|
| 6573 | if test "x$srcdir" = x.; then |
---|
| 6574 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
| 6575 | h |
---|
| 6576 | s/// |
---|
| 6577 | s/^/:/ |
---|
| 6578 | s/[ ]*$/:/ |
---|
| 6579 | s/:\$(srcdir):/:/g |
---|
| 6580 | s/:\${srcdir}:/:/g |
---|
| 6581 | s/:@srcdir@:/:/g |
---|
| 6582 | s/^:*// |
---|
| 6583 | s/:*$// |
---|
| 6584 | x |
---|
| 6585 | s/\(=[ ]*\).*/\1/ |
---|
| 6586 | G |
---|
| 6587 | s/\n// |
---|
| 6588 | s/^[^=]*=[ ]*$// |
---|
| 6589 | }' |
---|
| 6590 | fi |
---|
| 6591 | |
---|
| 6592 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 6593 | fi # test -n "$CONFIG_FILES" |
---|
| 6594 | |
---|
| 6595 | # Set up the scripts for CONFIG_HEADERS section. |
---|
| 6596 | # No need to generate them if there are no CONFIG_HEADERS. |
---|
| 6597 | # This happens for instance with `./config.status Makefile'. |
---|
| 6598 | if test -n "$CONFIG_HEADERS"; then |
---|
| 6599 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
---|
| 6600 | BEGIN { |
---|
| 6601 | _ACEOF |
---|
| 6602 | |
---|
| 6603 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
---|
| 6604 | # here-document in config.status, that substitutes the proper values into |
---|
| 6605 | # config.h.in to produce config.h. |
---|
| 6606 | |
---|
| 6607 | # Create a delimiter string that does not exist in confdefs.h, to ease |
---|
| 6608 | # handling of long lines. |
---|
| 6609 | ac_delim='%!_!# ' |
---|
| 6610 | for ac_last_try in false false :; do |
---|
| 6611 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
---|
| 6612 | if test -z "$ac_tt"; then |
---|
| 6613 | break |
---|
| 6614 | elif $ac_last_try; then |
---|
| 6615 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
---|
| 6616 | else |
---|
| 6617 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
| 6618 | fi |
---|
| 6619 | done |
---|
| 6620 | |
---|
| 6621 | # For the awk script, D is an array of macro values keyed by name, |
---|
| 6622 | # likewise P contains macro parameters if any. Preserve backslash |
---|
| 6623 | # newline sequences. |
---|
| 6624 | |
---|
| 6625 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
| 6626 | sed -n ' |
---|
| 6627 | s/.\{148\}/&'"$ac_delim"'/g |
---|
| 6628 | t rset |
---|
| 6629 | :rset |
---|
| 6630 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
---|
| 6631 | t def |
---|
| 6632 | d |
---|
| 6633 | :def |
---|
| 6634 | s/\\$// |
---|
| 6635 | t bsnl |
---|
| 6636 | s/["\\]/\\&/g |
---|
| 6637 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
| 6638 | D["\1"]=" \3"/p |
---|
| 6639 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
---|
| 6640 | d |
---|
| 6641 | :bsnl |
---|
| 6642 | s/["\\]/\\&/g |
---|
| 6643 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
| 6644 | D["\1"]=" \3\\\\\\n"\\/p |
---|
| 6645 | t cont |
---|
| 6646 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
---|
| 6647 | t cont |
---|
| 6648 | d |
---|
| 6649 | :cont |
---|
| 6650 | n |
---|
| 6651 | s/.\{148\}/&'"$ac_delim"'/g |
---|
| 6652 | t clear |
---|
| 6653 | :clear |
---|
| 6654 | s/\\$// |
---|
| 6655 | t bsnlc |
---|
| 6656 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
---|
| 6657 | d |
---|
| 6658 | :bsnlc |
---|
| 6659 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
---|
| 6660 | b cont |
---|
| 6661 | ' <confdefs.h | sed ' |
---|
| 6662 | s/'"$ac_delim"'/"\\\ |
---|
| 6663 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
| 6664 | |
---|
| 6665 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 6666 | for (key in D) D_is_set[key] = 1 |
---|
| 6667 | FS = "" |
---|
| 6668 | } |
---|
| 6669 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
---|
| 6670 | line = \$ 0 |
---|
| 6671 | split(line, arg, " ") |
---|
| 6672 | if (arg[1] == "#") { |
---|
| 6673 | defundef = arg[2] |
---|
| 6674 | mac1 = arg[3] |
---|
| 6675 | } else { |
---|
| 6676 | defundef = substr(arg[1], 2) |
---|
| 6677 | mac1 = arg[2] |
---|
| 6678 | } |
---|
| 6679 | split(mac1, mac2, "(") #) |
---|
| 6680 | macro = mac2[1] |
---|
| 6681 | prefix = substr(line, 1, index(line, defundef) - 1) |
---|
| 6682 | if (D_is_set[macro]) { |
---|
| 6683 | # Preserve the white space surrounding the "#". |
---|
| 6684 | print prefix "define", macro P[macro] D[macro] |
---|
| 6685 | next |
---|
| 6686 | } else { |
---|
| 6687 | # Replace #undef with comments. This is necessary, for example, |
---|
| 6688 | # in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 6689 | # on some systems where configure will not decide to define it. |
---|
| 6690 | if (defundef == "undef") { |
---|
| 6691 | print "/*", prefix defundef, macro, "*/" |
---|
| 6692 | next |
---|
| 6693 | } |
---|
| 6694 | } |
---|
| 6695 | } |
---|
| 6696 | { print } |
---|
| 6697 | _ACAWK |
---|
| 6698 | _ACEOF |
---|
| 6699 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 6700 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
---|
| 6701 | fi # test -n "$CONFIG_HEADERS" |
---|
| 6702 | |
---|
| 6703 | |
---|
| 6704 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
---|
| 6705 | shift |
---|
| 6706 | for ac_tag |
---|
| 6707 | do |
---|
| 6708 | case $ac_tag in |
---|
| 6709 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
| 6710 | esac |
---|
| 6711 | case $ac_mode$ac_tag in |
---|
| 6712 | :[FHL]*:*);; |
---|
| 6713 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
| 6714 | :[FH]-) ac_tag=-:-;; |
---|
| 6715 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
| 6716 | esac |
---|
| 6717 | ac_save_IFS=$IFS |
---|
| 6718 | IFS=: |
---|
| 6719 | set x $ac_tag |
---|
| 6720 | IFS=$ac_save_IFS |
---|
| 6721 | shift |
---|
| 6722 | ac_file=$1 |
---|
| 6723 | shift |
---|
| 6724 | |
---|
| 6725 | case $ac_mode in |
---|
| 6726 | :L) ac_source=$1;; |
---|
| 6727 | :[FH]) |
---|
| 6728 | ac_file_inputs= |
---|
| 6729 | for ac_f |
---|
| 6730 | do |
---|
| 6731 | case $ac_f in |
---|
| 6732 | -) ac_f="$ac_tmp/stdin";; |
---|
| 6733 | *) # Look for the file first in the build tree, then in the source tree |
---|
| 6734 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
| 6735 | # because $ac_f cannot contain `:'. |
---|
| 6736 | test -f "$ac_f" || |
---|
| 6737 | case $ac_f in |
---|
| 6738 | [\\/$]*) false;; |
---|
| 6739 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
| 6740 | esac || |
---|
| 6741 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
| 6742 | esac |
---|
| 6743 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
| 6744 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
| 6745 | done |
---|
| 6746 | |
---|
| 6747 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 6748 | # use $as_me), people would be surprised to read: |
---|
| 6749 | # /* config.h. Generated by config.status. */ |
---|
| 6750 | configure_input='Generated from '` |
---|
| 6751 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
| 6752 | `' by configure.' |
---|
| 6753 | if test x"$ac_file" != x-; then |
---|
| 6754 | configure_input="$ac_file. $configure_input" |
---|
| 6755 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
| 6756 | printf "%s\n" "$as_me: creating $ac_file" >&6;} |
---|
| 6757 | fi |
---|
| 6758 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
| 6759 | case $configure_input in #( |
---|
| 6760 | *\&* | *\|* | *\\* ) |
---|
| 6761 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
---|
| 6762 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
| 6763 | *) ac_sed_conf_input=$configure_input;; |
---|
| 6764 | esac |
---|
| 6765 | |
---|
| 6766 | case $ac_tag in |
---|
| 6767 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
| 6768 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
| 6769 | esac |
---|
| 6770 | ;; |
---|
| 6771 | esac |
---|
| 6772 | |
---|
| 6773 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
| 6774 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 6775 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 6776 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 6777 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 6778 | printf "%s\n" X"$ac_file" | |
---|
| 6779 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 6780 | s//\1/ |
---|
| 6781 | q |
---|
| 6782 | } |
---|
| 6783 | /^X\(\/\/\)[^/].*/{ |
---|
| 6784 | s//\1/ |
---|
| 6785 | q |
---|
| 6786 | } |
---|
| 6787 | /^X\(\/\/\)$/{ |
---|
| 6788 | s//\1/ |
---|
| 6789 | q |
---|
| 6790 | } |
---|
| 6791 | /^X\(\/\).*/{ |
---|
| 6792 | s//\1/ |
---|
| 6793 | q |
---|
| 6794 | } |
---|
| 6795 | s/.*/./; q'` |
---|
| 6796 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
| 6797 | ac_builddir=. |
---|
| 6798 | |
---|
| 6799 | case "$ac_dir" in |
---|
| 6800 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 6801 | *) |
---|
| 6802 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
| 6803 | # A ".." for each directory in $ac_dir_suffix. |
---|
| 6804 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
| 6805 | case $ac_top_builddir_sub in |
---|
| 6806 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 6807 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
| 6808 | esac ;; |
---|
| 6809 | esac |
---|
| 6810 | ac_abs_top_builddir=$ac_pwd |
---|
| 6811 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
| 6812 | # for backward compatibility: |
---|
| 6813 | ac_top_builddir=$ac_top_build_prefix |
---|
| 6814 | |
---|
| 6815 | case $srcdir in |
---|
| 6816 | .) # We are building in place. |
---|
| 6817 | ac_srcdir=. |
---|
| 6818 | ac_top_srcdir=$ac_top_builddir_sub |
---|
| 6819 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
| 6820 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
| 6821 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 6822 | ac_top_srcdir=$srcdir |
---|
| 6823 | ac_abs_top_srcdir=$srcdir ;; |
---|
| 6824 | *) # Relative name. |
---|
| 6825 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
| 6826 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
| 6827 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
| 6828 | esac |
---|
| 6829 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
| 6830 | |
---|
| 6831 | |
---|
| 6832 | case $ac_mode in |
---|
| 6833 | :F) |
---|
| 6834 | # |
---|
| 6835 | # CONFIG_FILE |
---|
| 6836 | # |
---|
| 6837 | |
---|
| 6838 | _ACEOF |
---|
| 6839 | |
---|
| 6840 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 6841 | # If the template does not know about datarootdir, expand it. |
---|
| 6842 | # FIXME: This hack should be removed a few years after 2.60. |
---|
| 6843 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
| 6844 | ac_sed_dataroot=' |
---|
| 6845 | /datarootdir/ { |
---|
| 6846 | p |
---|
| 6847 | q |
---|
| 6848 | } |
---|
| 6849 | /@datadir@/p |
---|
| 6850 | /@docdir@/p |
---|
| 6851 | /@infodir@/p |
---|
| 6852 | /@localedir@/p |
---|
| 6853 | /@mandir@/p' |
---|
| 6854 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
| 6855 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
| 6856 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
| 6857 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
| 6858 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
| 6859 | _ACEOF |
---|
| 6860 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 6861 | ac_datarootdir_hack=' |
---|
| 6862 | s&@datadir@&$datadir&g |
---|
| 6863 | s&@docdir@&$docdir&g |
---|
| 6864 | s&@infodir@&$infodir&g |
---|
| 6865 | s&@localedir@&$localedir&g |
---|
| 6866 | s&@mandir@&$mandir&g |
---|
| 6867 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
| 6868 | esac |
---|
| 6869 | _ACEOF |
---|
| 6870 | |
---|
| 6871 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
| 6872 | # Shell code in configure.ac might set extrasub. |
---|
| 6873 | # FIXME: do we really want to maintain this feature? |
---|
| 6874 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 6875 | ac_sed_extra="$ac_vpsub |
---|
| 6876 | $extrasub |
---|
| 6877 | _ACEOF |
---|
| 6878 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 6879 | :t |
---|
| 6880 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 6881 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
| 6882 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
| 6883 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
| 6884 | s&@srcdir@&$ac_srcdir&;t t |
---|
| 6885 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
| 6886 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
| 6887 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
| 6888 | s&@builddir@&$ac_builddir&;t t |
---|
| 6889 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
| 6890 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
| 6891 | $ac_datarootdir_hack |
---|
| 6892 | " |
---|
| 6893 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
| 6894 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
| 6895 | |
---|
| 6896 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
| 6897 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
| 6898 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
| 6899 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
| 6900 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
| 6901 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
| 6902 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
| 6903 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
| 6904 | |
---|
| 6905 | rm -f "$ac_tmp/stdin" |
---|
| 6906 | case $ac_file in |
---|
| 6907 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
| 6908 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
| 6909 | esac \ |
---|
| 6910 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
| 6911 | ;; |
---|
| 6912 | :H) |
---|
| 6913 | # |
---|
| 6914 | # CONFIG_HEADER |
---|
| 6915 | # |
---|
| 6916 | if test x"$ac_file" != x-; then |
---|
| 6917 | { |
---|
| 6918 | printf "%s\n" "/* $configure_input */" >&1 \ |
---|
| 6919 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
---|
| 6920 | } >"$ac_tmp/config.h" \ |
---|
| 6921 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
| 6922 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
---|
| 6923 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
---|
| 6924 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
---|
| 6925 | else |
---|
| 6926 | rm -f "$ac_file" |
---|
| 6927 | mv "$ac_tmp/config.h" "$ac_file" \ |
---|
| 6928 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
| 6929 | fi |
---|
| 6930 | else |
---|
| 6931 | printf "%s\n" "/* $configure_input */" >&1 \ |
---|
| 6932 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
---|
| 6933 | || as_fn_error $? "could not create -" "$LINENO" 5 |
---|
| 6934 | fi |
---|
| 6935 | ;; |
---|
| 6936 | |
---|
| 6937 | |
---|
| 6938 | esac |
---|
| 6939 | |
---|
| 6940 | done # for ac_tag |
---|
| 6941 | |
---|
| 6942 | |
---|
| 6943 | as_fn_exit 0 |
---|
| 6944 | _ACEOF |
---|
| 6945 | ac_clean_files=$ac_clean_files_save |
---|
| 6946 | |
---|
| 6947 | test $ac_write_fail = 0 || |
---|
| 6948 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
| 6949 | |
---|
| 6950 | |
---|
| 6951 | # configure is writing to config.log, and then calls config.status. |
---|
| 6952 | # config.status does its own redirection, appending to config.log. |
---|
| 6953 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 6954 | # by configure, so config.status won't be able to write to it; its |
---|
| 6955 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 6956 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 6957 | # appended to by config.status. When coming back to configure, we |
---|
| 6958 | # need to make the FD available again. |
---|
| 6959 | if test "$no_create" != yes; then |
---|
| 6960 | ac_cs_success=: |
---|
| 6961 | ac_config_status_args= |
---|
| 6962 | test "$silent" = yes && |
---|
| 6963 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 6964 | exec 5>/dev/null |
---|
| 6965 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 6966 | exec 5>>config.log |
---|
| 6967 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 6968 | # would make configure fail if this is the last instruction. |
---|
| 6969 | $ac_cs_success || as_fn_exit 1 |
---|
| 6970 | fi |
---|
| 6971 | |
---|
| 6972 | # |
---|
| 6973 | # CONFIG_SUBDIRS section. |
---|
| 6974 | # |
---|
| 6975 | if test "$no_recursion" != yes; then |
---|
| 6976 | |
---|
| 6977 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
---|
| 6978 | # so they do not pile up. |
---|
| 6979 | ac_sub_configure_args= |
---|
| 6980 | ac_prev= |
---|
| 6981 | eval "set x $ac_configure_args" |
---|
| 6982 | shift |
---|
| 6983 | for ac_arg |
---|
| 6984 | do |
---|
| 6985 | if test -n "$ac_prev"; then |
---|
| 6986 | ac_prev= |
---|
| 6987 | continue |
---|
| 6988 | fi |
---|
| 6989 | case $ac_arg in |
---|
| 6990 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 6991 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 6992 | ac_prev=cache_file ;; |
---|
| 6993 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 6994 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
---|
| 6995 | | --c=*) |
---|
| 6996 | ;; |
---|
| 6997 | --config-cache | -C) |
---|
| 6998 | ;; |
---|
| 6999 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 7000 | ac_prev=srcdir ;; |
---|
| 7001 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 7002 | ;; |
---|
| 7003 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 7004 | ac_prev=prefix ;; |
---|
| 7005 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 7006 | ;; |
---|
| 7007 | --disable-option-checking) |
---|
| 7008 | ;; |
---|
| 7009 | *) |
---|
| 7010 | case $ac_arg in |
---|
| 7011 | *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 7012 | esac |
---|
| 7013 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
---|
| 7014 | esac |
---|
| 7015 | done |
---|
| 7016 | |
---|
| 7017 | # Always prepend --prefix to ensure using the same prefix |
---|
| 7018 | # in subdir configurations. |
---|
| 7019 | ac_arg="--prefix=$prefix" |
---|
| 7020 | case $ac_arg in |
---|
| 7021 | *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 7022 | esac |
---|
| 7023 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" |
---|
| 7024 | |
---|
| 7025 | # Pass --silent |
---|
| 7026 | if test "$silent" = yes; then |
---|
| 7027 | ac_sub_configure_args="--silent $ac_sub_configure_args" |
---|
| 7028 | fi |
---|
| 7029 | |
---|
| 7030 | # Always prepend --disable-option-checking to silence warnings, since |
---|
| 7031 | # different subdirs can have different --enable and --with options. |
---|
| 7032 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" |
---|
| 7033 | |
---|
| 7034 | ac_popdir=`pwd` |
---|
| 7035 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
---|
| 7036 | |
---|
| 7037 | # Do not complain, so a configure script can configure whichever |
---|
| 7038 | # parts of a large source tree are present. |
---|
| 7039 | test -d "$srcdir/$ac_dir" || continue |
---|
| 7040 | |
---|
| 7041 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
---|
| 7042 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
---|
| 7043 | printf "%s\n" "$ac_msg" >&6 |
---|
| 7044 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
| 7045 | ac_builddir=. |
---|
| 7046 | |
---|
| 7047 | case "$ac_dir" in |
---|
| 7048 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 7049 | *) |
---|
| 7050 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
| 7051 | # A ".." for each directory in $ac_dir_suffix. |
---|
| 7052 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
| 7053 | case $ac_top_builddir_sub in |
---|
| 7054 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 7055 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
| 7056 | esac ;; |
---|
| 7057 | esac |
---|
| 7058 | ac_abs_top_builddir=$ac_pwd |
---|
| 7059 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
| 7060 | # for backward compatibility: |
---|
| 7061 | ac_top_builddir=$ac_top_build_prefix |
---|
| 7062 | |
---|
| 7063 | case $srcdir in |
---|
| 7064 | .) # We are building in place. |
---|
| 7065 | ac_srcdir=. |
---|
| 7066 | ac_top_srcdir=$ac_top_builddir_sub |
---|
| 7067 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
| 7068 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
| 7069 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 7070 | ac_top_srcdir=$srcdir |
---|
| 7071 | ac_abs_top_srcdir=$srcdir ;; |
---|
| 7072 | *) # Relative name. |
---|
| 7073 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
| 7074 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
| 7075 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
| 7076 | esac |
---|
| 7077 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
| 7078 | |
---|
| 7079 | |
---|
| 7080 | cd "$ac_dir" |
---|
| 7081 | |
---|
| 7082 | # Check for configure.gnu first; this name is used for a wrapper for |
---|
| 7083 | # Metaconfig's "Configure" on case-insensitive file systems. |
---|
| 7084 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
| 7085 | ac_sub_configure=$ac_srcdir/configure.gnu |
---|
| 7086 | elif test -f "$ac_srcdir/configure"; then |
---|
| 7087 | ac_sub_configure=$ac_srcdir/configure |
---|
| 7088 | else |
---|
| 7089 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
---|
| 7090 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
---|
| 7091 | ac_sub_configure= |
---|
| 7092 | fi |
---|
| 7093 | |
---|
| 7094 | # The recursion is here. |
---|
| 7095 | if test -n "$ac_sub_configure"; then |
---|
| 7096 | # Make the cache file name correct relative to the subdirectory. |
---|
| 7097 | case $cache_file in |
---|
| 7098 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
---|
| 7099 | *) # Relative name. |
---|
| 7100 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
---|
| 7101 | esac |
---|
| 7102 | |
---|
| 7103 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
---|
| 7104 | printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
---|
| 7105 | # The eval makes quoting arguments work. |
---|
| 7106 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
---|
| 7107 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
---|
| 7108 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
---|
| 7109 | fi |
---|
| 7110 | |
---|
| 7111 | cd "$ac_popdir" |
---|
| 7112 | done |
---|
| 7113 | fi |
---|
| 7114 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
| 7115 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
| 7116 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
| 7117 | fi |
---|
| 7118 | |
---|
| 7119 | |
---|
| 7120 | echo Please check the Makefile.conf |
---|
| 7121 | echo Have a nice day! |
---|
| 7122 | |
---|
| 7123 | # test -z is true for empty strings |
---|
| 7124 | # test -n is true for non-empty strings |
---|
| 7125 | |
---|
| 7126 | |
---|
| 7127 | |
---|
| 7128 | |
---|
| 7129 | |
---|