annotate src/fftw-3.3.3/configure @ 169:223a55898ab9 tip default

Add null config files
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 02 Mar 2020 14:03:47 +0000
parents 89f5e221ed7b
children
rev   line source
cannam@95 1 #! /bin/sh
cannam@95 2 # Guess values for system-dependent variables and create Makefiles.
cannam@95 3 # Generated by GNU Autoconf 2.69 for fftw 3.3.3.
cannam@95 4 #
cannam@95 5 # Report bugs to <fftw@fftw.org>.
cannam@95 6 #
cannam@95 7 #
cannam@95 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cannam@95 9 #
cannam@95 10 #
cannam@95 11 # This configure script is free software; the Free Software Foundation
cannam@95 12 # gives unlimited permission to copy, distribute and modify it.
cannam@95 13 ## -------------------- ##
cannam@95 14 ## M4sh Initialization. ##
cannam@95 15 ## -------------------- ##
cannam@95 16
cannam@95 17 # Be more Bourne compatible
cannam@95 18 DUALCASE=1; export DUALCASE # for MKS sh
cannam@95 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cannam@95 20 emulate sh
cannam@95 21 NULLCMD=:
cannam@95 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
cannam@95 23 # is contrary to our usage. Disable this feature.
cannam@95 24 alias -g '${1+"$@"}'='"$@"'
cannam@95 25 setopt NO_GLOB_SUBST
cannam@95 26 else
cannam@95 27 case `(set -o) 2>/dev/null` in #(
cannam@95 28 *posix*) :
cannam@95 29 set -o posix ;; #(
cannam@95 30 *) :
cannam@95 31 ;;
cannam@95 32 esac
cannam@95 33 fi
cannam@95 34
cannam@95 35
cannam@95 36 as_nl='
cannam@95 37 '
cannam@95 38 export as_nl
cannam@95 39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
cannam@95 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@95 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@95 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@95 43 # Prefer a ksh shell builtin over an external printf program on Solaris,
cannam@95 44 # but without wasting forks for bash or zsh.
cannam@95 45 if test -z "$BASH_VERSION$ZSH_VERSION" \
cannam@95 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@95 47 as_echo='print -r --'
cannam@95 48 as_echo_n='print -rn --'
cannam@95 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@95 50 as_echo='printf %s\n'
cannam@95 51 as_echo_n='printf %s'
cannam@95 52 else
cannam@95 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
cannam@95 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
cannam@95 55 as_echo_n='/usr/ucb/echo -n'
cannam@95 56 else
cannam@95 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
cannam@95 58 as_echo_n_body='eval
cannam@95 59 arg=$1;
cannam@95 60 case $arg in #(
cannam@95 61 *"$as_nl"*)
cannam@95 62 expr "X$arg" : "X\\(.*\\)$as_nl";
cannam@95 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
cannam@95 64 esac;
cannam@95 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
cannam@95 66 '
cannam@95 67 export as_echo_n_body
cannam@95 68 as_echo_n='sh -c $as_echo_n_body as_echo'
cannam@95 69 fi
cannam@95 70 export as_echo_body
cannam@95 71 as_echo='sh -c $as_echo_body as_echo'
cannam@95 72 fi
cannam@95 73
cannam@95 74 # The user is always right.
cannam@95 75 if test "${PATH_SEPARATOR+set}" != set; then
cannam@95 76 PATH_SEPARATOR=:
cannam@95 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
cannam@95 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
cannam@95 79 PATH_SEPARATOR=';'
cannam@95 80 }
cannam@95 81 fi
cannam@95 82
cannam@95 83
cannam@95 84 # IFS
cannam@95 85 # We need space, tab and new line, in precisely that order. Quoting is
cannam@95 86 # there to prevent editors from complaining about space-tab.
cannam@95 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
cannam@95 88 # splitting by setting IFS to empty value.)
cannam@95 89 IFS=" "" $as_nl"
cannam@95 90
cannam@95 91 # Find who we are. Look in the path if we contain no directory separator.
cannam@95 92 as_myself=
cannam@95 93 case $0 in #((
cannam@95 94 *[\\/]* ) as_myself=$0 ;;
cannam@95 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 96 for as_dir in $PATH
cannam@95 97 do
cannam@95 98 IFS=$as_save_IFS
cannam@95 99 test -z "$as_dir" && as_dir=.
cannam@95 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
cannam@95 101 done
cannam@95 102 IFS=$as_save_IFS
cannam@95 103
cannam@95 104 ;;
cannam@95 105 esac
cannam@95 106 # We did not find ourselves, most probably we were run as `sh COMMAND'
cannam@95 107 # in which case we are not to be found in the path.
cannam@95 108 if test "x$as_myself" = x; then
cannam@95 109 as_myself=$0
cannam@95 110 fi
cannam@95 111 if test ! -f "$as_myself"; then
cannam@95 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cannam@95 113 exit 1
cannam@95 114 fi
cannam@95 115
cannam@95 116 # Unset variables that we do not need and which cause bugs (e.g. in
cannam@95 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
cannam@95 118 # suppresses any "Segmentation fault" message there. '((' could
cannam@95 119 # trigger a bug in pdksh 5.2.14.
cannam@95 120 for as_var in BASH_ENV ENV MAIL MAILPATH
cannam@95 121 do eval test x\${$as_var+set} = xset \
cannam@95 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cannam@95 123 done
cannam@95 124 PS1='$ '
cannam@95 125 PS2='> '
cannam@95 126 PS4='+ '
cannam@95 127
cannam@95 128 # NLS nuisances.
cannam@95 129 LC_ALL=C
cannam@95 130 export LC_ALL
cannam@95 131 LANGUAGE=C
cannam@95 132 export LANGUAGE
cannam@95 133
cannam@95 134 # CDPATH.
cannam@95 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@95 136
cannam@95 137 # Use a proper internal environment variable to ensure we don't fall
cannam@95 138 # into an infinite loop, continuously re-executing ourselves.
cannam@95 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
cannam@95 140 _as_can_reexec=no; export _as_can_reexec;
cannam@95 141 # We cannot yet assume a decent shell, so we have to provide a
cannam@95 142 # neutralization value for shells without unset; and this also
cannam@95 143 # works around shells that cannot unset nonexistent variables.
cannam@95 144 # Preserve -v and -x to the replacement shell.
cannam@95 145 BASH_ENV=/dev/null
cannam@95 146 ENV=/dev/null
cannam@95 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
cannam@95 148 case $- in # ((((
cannam@95 149 *v*x* | *x*v* ) as_opts=-vx ;;
cannam@95 150 *v* ) as_opts=-v ;;
cannam@95 151 *x* ) as_opts=-x ;;
cannam@95 152 * ) as_opts= ;;
cannam@95 153 esac
cannam@95 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
cannam@95 155 # Admittedly, this is quite paranoid, since all the known shells bail
cannam@95 156 # out after a failed `exec'.
cannam@95 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
cannam@95 158 as_fn_exit 255
cannam@95 159 fi
cannam@95 160 # We don't want this to propagate to other subprocesses.
cannam@95 161 { _as_can_reexec=; unset _as_can_reexec;}
cannam@95 162 if test "x$CONFIG_SHELL" = x; then
cannam@95 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
cannam@95 164 emulate sh
cannam@95 165 NULLCMD=:
cannam@95 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
cannam@95 167 # is contrary to our usage. Disable this feature.
cannam@95 168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
cannam@95 169 setopt NO_GLOB_SUBST
cannam@95 170 else
cannam@95 171 case \`(set -o) 2>/dev/null\` in #(
cannam@95 172 *posix*) :
cannam@95 173 set -o posix ;; #(
cannam@95 174 *) :
cannam@95 175 ;;
cannam@95 176 esac
cannam@95 177 fi
cannam@95 178 "
cannam@95 179 as_required="as_fn_return () { (exit \$1); }
cannam@95 180 as_fn_success () { as_fn_return 0; }
cannam@95 181 as_fn_failure () { as_fn_return 1; }
cannam@95 182 as_fn_ret_success () { return 0; }
cannam@95 183 as_fn_ret_failure () { return 1; }
cannam@95 184
cannam@95 185 exitcode=0
cannam@95 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
cannam@95 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
cannam@95 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
cannam@95 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
cannam@95 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
cannam@95 191
cannam@95 192 else
cannam@95 193 exitcode=1; echo positional parameters were not saved.
cannam@95 194 fi
cannam@95 195 test x\$exitcode = x0 || exit 1
cannam@95 196 test -x / || exit 1"
cannam@95 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
cannam@95 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
cannam@95 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
cannam@95 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cannam@95 201
cannam@95 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
cannam@95 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@95 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
cannam@95 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
cannam@95 206 PATH=/empty FPATH=/empty; export PATH FPATH
cannam@95 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
cannam@95 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
cannam@95 209 test \$(( 1 + 1 )) = 2 || exit 1"
cannam@95 210 if (eval "$as_required") 2>/dev/null; then :
cannam@95 211 as_have_required=yes
cannam@95 212 else
cannam@95 213 as_have_required=no
cannam@95 214 fi
cannam@95 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
cannam@95 216
cannam@95 217 else
cannam@95 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 219 as_found=false
cannam@95 220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
cannam@95 221 do
cannam@95 222 IFS=$as_save_IFS
cannam@95 223 test -z "$as_dir" && as_dir=.
cannam@95 224 as_found=:
cannam@95 225 case $as_dir in #(
cannam@95 226 /*)
cannam@95 227 for as_base in sh bash ksh sh5; do
cannam@95 228 # Try only shells that exist, to save several forks.
cannam@95 229 as_shell=$as_dir/$as_base
cannam@95 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
cannam@95 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
cannam@95 232 CONFIG_SHELL=$as_shell as_have_required=yes
cannam@95 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
cannam@95 234 break 2
cannam@95 235 fi
cannam@95 236 fi
cannam@95 237 done;;
cannam@95 238 esac
cannam@95 239 as_found=false
cannam@95 240 done
cannam@95 241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
cannam@95 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
cannam@95 243 CONFIG_SHELL=$SHELL as_have_required=yes
cannam@95 244 fi; }
cannam@95 245 IFS=$as_save_IFS
cannam@95 246
cannam@95 247
cannam@95 248 if test "x$CONFIG_SHELL" != x; then :
cannam@95 249 export CONFIG_SHELL
cannam@95 250 # We cannot yet assume a decent shell, so we have to provide a
cannam@95 251 # neutralization value for shells without unset; and this also
cannam@95 252 # works around shells that cannot unset nonexistent variables.
cannam@95 253 # Preserve -v and -x to the replacement shell.
cannam@95 254 BASH_ENV=/dev/null
cannam@95 255 ENV=/dev/null
cannam@95 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
cannam@95 257 case $- in # ((((
cannam@95 258 *v*x* | *x*v* ) as_opts=-vx ;;
cannam@95 259 *v* ) as_opts=-v ;;
cannam@95 260 *x* ) as_opts=-x ;;
cannam@95 261 * ) as_opts= ;;
cannam@95 262 esac
cannam@95 263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
cannam@95 264 # Admittedly, this is quite paranoid, since all the known shells bail
cannam@95 265 # out after a failed `exec'.
cannam@95 266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
cannam@95 267 exit 255
cannam@95 268 fi
cannam@95 269
cannam@95 270 if test x$as_have_required = xno; then :
cannam@95 271 $as_echo "$0: This script requires a shell more modern than all"
cannam@95 272 $as_echo "$0: the shells that I found on your system."
cannam@95 273 if test x${ZSH_VERSION+set} = xset ; then
cannam@95 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
cannam@95 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
cannam@95 276 else
cannam@95 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and fftw@fftw.org
cannam@95 278 $0: about your system, including any error possibly output
cannam@95 279 $0: before this message. Then install a modern shell, or
cannam@95 280 $0: manually run the script under such a shell if you do
cannam@95 281 $0: have one."
cannam@95 282 fi
cannam@95 283 exit 1
cannam@95 284 fi
cannam@95 285 fi
cannam@95 286 fi
cannam@95 287 SHELL=${CONFIG_SHELL-/bin/sh}
cannam@95 288 export SHELL
cannam@95 289 # Unset more variables known to interfere with behavior of common tools.
cannam@95 290 CLICOLOR_FORCE= GREP_OPTIONS=
cannam@95 291 unset CLICOLOR_FORCE GREP_OPTIONS
cannam@95 292
cannam@95 293 ## --------------------- ##
cannam@95 294 ## M4sh Shell Functions. ##
cannam@95 295 ## --------------------- ##
cannam@95 296 # as_fn_unset VAR
cannam@95 297 # ---------------
cannam@95 298 # Portably unset VAR.
cannam@95 299 as_fn_unset ()
cannam@95 300 {
cannam@95 301 { eval $1=; unset $1;}
cannam@95 302 }
cannam@95 303 as_unset=as_fn_unset
cannam@95 304
cannam@95 305 # as_fn_set_status STATUS
cannam@95 306 # -----------------------
cannam@95 307 # Set $? to STATUS, without forking.
cannam@95 308 as_fn_set_status ()
cannam@95 309 {
cannam@95 310 return $1
cannam@95 311 } # as_fn_set_status
cannam@95 312
cannam@95 313 # as_fn_exit STATUS
cannam@95 314 # -----------------
cannam@95 315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
cannam@95 316 as_fn_exit ()
cannam@95 317 {
cannam@95 318 set +e
cannam@95 319 as_fn_set_status $1
cannam@95 320 exit $1
cannam@95 321 } # as_fn_exit
cannam@95 322
cannam@95 323 # as_fn_mkdir_p
cannam@95 324 # -------------
cannam@95 325 # Create "$as_dir" as a directory, including parents if necessary.
cannam@95 326 as_fn_mkdir_p ()
cannam@95 327 {
cannam@95 328
cannam@95 329 case $as_dir in #(
cannam@95 330 -*) as_dir=./$as_dir;;
cannam@95 331 esac
cannam@95 332 test -d "$as_dir" || eval $as_mkdir_p || {
cannam@95 333 as_dirs=
cannam@95 334 while :; do
cannam@95 335 case $as_dir in #(
cannam@95 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
cannam@95 337 *) as_qdir=$as_dir;;
cannam@95 338 esac
cannam@95 339 as_dirs="'$as_qdir' $as_dirs"
cannam@95 340 as_dir=`$as_dirname -- "$as_dir" ||
cannam@95 341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@95 342 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@95 343 X"$as_dir" : 'X\(//\)$' \| \
cannam@95 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
cannam@95 345 $as_echo X"$as_dir" |
cannam@95 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@95 347 s//\1/
cannam@95 348 q
cannam@95 349 }
cannam@95 350 /^X\(\/\/\)[^/].*/{
cannam@95 351 s//\1/
cannam@95 352 q
cannam@95 353 }
cannam@95 354 /^X\(\/\/\)$/{
cannam@95 355 s//\1/
cannam@95 356 q
cannam@95 357 }
cannam@95 358 /^X\(\/\).*/{
cannam@95 359 s//\1/
cannam@95 360 q
cannam@95 361 }
cannam@95 362 s/.*/./; q'`
cannam@95 363 test -d "$as_dir" && break
cannam@95 364 done
cannam@95 365 test -z "$as_dirs" || eval "mkdir $as_dirs"
cannam@95 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cannam@95 367
cannam@95 368
cannam@95 369 } # as_fn_mkdir_p
cannam@95 370
cannam@95 371 # as_fn_executable_p FILE
cannam@95 372 # -----------------------
cannam@95 373 # Test if FILE is an executable regular file.
cannam@95 374 as_fn_executable_p ()
cannam@95 375 {
cannam@95 376 test -f "$1" && test -x "$1"
cannam@95 377 } # as_fn_executable_p
cannam@95 378 # as_fn_append VAR VALUE
cannam@95 379 # ----------------------
cannam@95 380 # Append the text in VALUE to the end of the definition contained in VAR. Take
cannam@95 381 # advantage of any shell optimizations that allow amortized linear growth over
cannam@95 382 # repeated appends, instead of the typical quadratic growth present in naive
cannam@95 383 # implementations.
cannam@95 384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
cannam@95 385 eval 'as_fn_append ()
cannam@95 386 {
cannam@95 387 eval $1+=\$2
cannam@95 388 }'
cannam@95 389 else
cannam@95 390 as_fn_append ()
cannam@95 391 {
cannam@95 392 eval $1=\$$1\$2
cannam@95 393 }
cannam@95 394 fi # as_fn_append
cannam@95 395
cannam@95 396 # as_fn_arith ARG...
cannam@95 397 # ------------------
cannam@95 398 # Perform arithmetic evaluation on the ARGs, and store the result in the
cannam@95 399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
cannam@95 400 # must be portable across $(()) and expr.
cannam@95 401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
cannam@95 402 eval 'as_fn_arith ()
cannam@95 403 {
cannam@95 404 as_val=$(( $* ))
cannam@95 405 }'
cannam@95 406 else
cannam@95 407 as_fn_arith ()
cannam@95 408 {
cannam@95 409 as_val=`expr "$@" || test $? -eq 1`
cannam@95 410 }
cannam@95 411 fi # as_fn_arith
cannam@95 412
cannam@95 413
cannam@95 414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
cannam@95 415 # ----------------------------------------
cannam@95 416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
cannam@95 417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cannam@95 418 # script with STATUS, using 1 if that was 0.
cannam@95 419 as_fn_error ()
cannam@95 420 {
cannam@95 421 as_status=$1; test $as_status -eq 0 && as_status=1
cannam@95 422 if test "$4"; then
cannam@95 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@95 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cannam@95 425 fi
cannam@95 426 $as_echo "$as_me: error: $2" >&2
cannam@95 427 as_fn_exit $as_status
cannam@95 428 } # as_fn_error
cannam@95 429
cannam@95 430 if expr a : '\(a\)' >/dev/null 2>&1 &&
cannam@95 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
cannam@95 432 as_expr=expr
cannam@95 433 else
cannam@95 434 as_expr=false
cannam@95 435 fi
cannam@95 436
cannam@95 437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
cannam@95 438 as_basename=basename
cannam@95 439 else
cannam@95 440 as_basename=false
cannam@95 441 fi
cannam@95 442
cannam@95 443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
cannam@95 444 as_dirname=dirname
cannam@95 445 else
cannam@95 446 as_dirname=false
cannam@95 447 fi
cannam@95 448
cannam@95 449 as_me=`$as_basename -- "$0" ||
cannam@95 450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
cannam@95 451 X"$0" : 'X\(//\)$' \| \
cannam@95 452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
cannam@95 453 $as_echo X/"$0" |
cannam@95 454 sed '/^.*\/\([^/][^/]*\)\/*$/{
cannam@95 455 s//\1/
cannam@95 456 q
cannam@95 457 }
cannam@95 458 /^X\/\(\/\/\)$/{
cannam@95 459 s//\1/
cannam@95 460 q
cannam@95 461 }
cannam@95 462 /^X\/\(\/\).*/{
cannam@95 463 s//\1/
cannam@95 464 q
cannam@95 465 }
cannam@95 466 s/.*/./; q'`
cannam@95 467
cannam@95 468 # Avoid depending upon Character Ranges.
cannam@95 469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
cannam@95 470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
cannam@95 471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
cannam@95 472 as_cr_digits='0123456789'
cannam@95 473 as_cr_alnum=$as_cr_Letters$as_cr_digits
cannam@95 474
cannam@95 475
cannam@95 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
cannam@95 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
cannam@95 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
cannam@95 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
cannam@95 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cannam@95 481 sed -n '
cannam@95 482 p
cannam@95 483 /[$]LINENO/=
cannam@95 484 ' <$as_myself |
cannam@95 485 sed '
cannam@95 486 s/[$]LINENO.*/&-/
cannam@95 487 t lineno
cannam@95 488 b
cannam@95 489 :lineno
cannam@95 490 N
cannam@95 491 :loop
cannam@95 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
cannam@95 493 t loop
cannam@95 494 s/-\n.*//
cannam@95 495 ' >$as_me.lineno &&
cannam@95 496 chmod +x "$as_me.lineno" ||
cannam@95 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cannam@95 498
cannam@95 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
cannam@95 500 # already done that, so ensure we don't try to do so again and fall
cannam@95 501 # in an infinite loop. This has already happened in practice.
cannam@95 502 _as_can_reexec=no; export _as_can_reexec
cannam@95 503 # Don't try to exec as it changes $[0], causing all sort of problems
cannam@95 504 # (the dirname of $[0] is not the place where we might find the
cannam@95 505 # original and so on. Autoconf is especially sensitive to this).
cannam@95 506 . "./$as_me.lineno"
cannam@95 507 # Exit status is that of the last command.
cannam@95 508 exit
cannam@95 509 }
cannam@95 510
cannam@95 511 ECHO_C= ECHO_N= ECHO_T=
cannam@95 512 case `echo -n x` in #(((((
cannam@95 513 -n*)
cannam@95 514 case `echo 'xy\c'` in
cannam@95 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cannam@95 516 xy) ECHO_C='\c';;
cannam@95 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
cannam@95 518 ECHO_T=' ';;
cannam@95 519 esac;;
cannam@95 520 *)
cannam@95 521 ECHO_N='-n';;
cannam@95 522 esac
cannam@95 523
cannam@95 524 rm -f conf$$ conf$$.exe conf$$.file
cannam@95 525 if test -d conf$$.dir; then
cannam@95 526 rm -f conf$$.dir/conf$$.file
cannam@95 527 else
cannam@95 528 rm -f conf$$.dir
cannam@95 529 mkdir conf$$.dir 2>/dev/null
cannam@95 530 fi
cannam@95 531 if (echo >conf$$.file) 2>/dev/null; then
cannam@95 532 if ln -s conf$$.file conf$$ 2>/dev/null; then
cannam@95 533 as_ln_s='ln -s'
cannam@95 534 # ... but there are two gotchas:
cannam@95 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
cannam@95 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cannam@95 537 # In both cases, we have to default to `cp -pR'.
cannam@95 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cannam@95 539 as_ln_s='cp -pR'
cannam@95 540 elif ln conf$$.file conf$$ 2>/dev/null; then
cannam@95 541 as_ln_s=ln
cannam@95 542 else
cannam@95 543 as_ln_s='cp -pR'
cannam@95 544 fi
cannam@95 545 else
cannam@95 546 as_ln_s='cp -pR'
cannam@95 547 fi
cannam@95 548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
cannam@95 549 rmdir conf$$.dir 2>/dev/null
cannam@95 550
cannam@95 551 if mkdir -p . 2>/dev/null; then
cannam@95 552 as_mkdir_p='mkdir -p "$as_dir"'
cannam@95 553 else
cannam@95 554 test -d ./-p && rmdir ./-p
cannam@95 555 as_mkdir_p=false
cannam@95 556 fi
cannam@95 557
cannam@95 558 as_test_x='test -x'
cannam@95 559 as_executable_p=as_fn_executable_p
cannam@95 560
cannam@95 561 # Sed expression to map a string onto a valid CPP name.
cannam@95 562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
cannam@95 563
cannam@95 564 # Sed expression to map a string onto a valid variable name.
cannam@95 565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
cannam@95 566
cannam@95 567 SHELL=${CONFIG_SHELL-/bin/sh}
cannam@95 568
cannam@95 569
cannam@95 570 test -n "$DJDIR" || exec 7<&0 </dev/null
cannam@95 571 exec 6>&1
cannam@95 572
cannam@95 573 # Name of the host.
cannam@95 574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cannam@95 575 # so uname gets run too.
cannam@95 576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@95 577
cannam@95 578 #
cannam@95 579 # Initializations.
cannam@95 580 #
cannam@95 581 ac_default_prefix=/usr/local
cannam@95 582 ac_clean_files=
cannam@95 583 ac_config_libobj_dir=.
cannam@95 584 LIBOBJS=
cannam@95 585 cross_compiling=no
cannam@95 586 subdirs=
cannam@95 587 MFLAGS=
cannam@95 588 MAKEFLAGS=
cannam@95 589
cannam@95 590 # Identity of this package.
cannam@95 591 PACKAGE_NAME='fftw'
cannam@95 592 PACKAGE_TARNAME='fftw'
cannam@95 593 PACKAGE_VERSION='3.3.3'
cannam@95 594 PACKAGE_STRING='fftw 3.3.3'
cannam@95 595 PACKAGE_BUGREPORT='fftw@fftw.org'
cannam@95 596 PACKAGE_URL=''
cannam@95 597
cannam@95 598 ac_unique_file="kernel/ifftw.h"
cannam@95 599 # Factoring default headers for most tests.
cannam@95 600 ac_includes_default="\
cannam@95 601 #include <stdio.h>
cannam@95 602 #ifdef HAVE_SYS_TYPES_H
cannam@95 603 # include <sys/types.h>
cannam@95 604 #endif
cannam@95 605 #ifdef HAVE_SYS_STAT_H
cannam@95 606 # include <sys/stat.h>
cannam@95 607 #endif
cannam@95 608 #ifdef STDC_HEADERS
cannam@95 609 # include <stdlib.h>
cannam@95 610 # include <stddef.h>
cannam@95 611 #else
cannam@95 612 # ifdef HAVE_STDLIB_H
cannam@95 613 # include <stdlib.h>
cannam@95 614 # endif
cannam@95 615 #endif
cannam@95 616 #ifdef HAVE_STRING_H
cannam@95 617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
cannam@95 618 # include <memory.h>
cannam@95 619 # endif
cannam@95 620 # include <string.h>
cannam@95 621 #endif
cannam@95 622 #ifdef HAVE_STRINGS_H
cannam@95 623 # include <strings.h>
cannam@95 624 #endif
cannam@95 625 #ifdef HAVE_INTTYPES_H
cannam@95 626 # include <inttypes.h>
cannam@95 627 #endif
cannam@95 628 #ifdef HAVE_STDINT_H
cannam@95 629 # include <stdint.h>
cannam@95 630 #endif
cannam@95 631 #ifdef HAVE_UNISTD_H
cannam@95 632 # include <unistd.h>
cannam@95 633 #endif"
cannam@95 634
cannam@95 635 ac_subst_vars='am__EXEEXT_FALSE
cannam@95 636 am__EXEEXT_TRUE
cannam@95 637 LTLIBOBJS
cannam@95 638 COMBINED_THREADS_FALSE
cannam@95 639 COMBINED_THREADS_TRUE
cannam@95 640 SMP_FALSE
cannam@95 641 SMP_TRUE
cannam@95 642 OPENMP_FALSE
cannam@95 643 OPENMP_TRUE
cannam@95 644 THREADS_FALSE
cannam@95 645 THREADS_TRUE
cannam@95 646 THREADLIBS
cannam@95 647 PTHREAD_CFLAGS
cannam@95 648 PTHREAD_LIBS
cannam@95 649 PTHREAD_CC
cannam@95 650 acx_pthread_config
cannam@95 651 OPENMP_CFLAGS
cannam@95 652 FLIBS
cannam@95 653 ac_ct_F77
cannam@95 654 FFLAGS
cannam@95 655 F77
cannam@95 656 LIBQUADMATH
cannam@95 657 LIBOBJS
cannam@95 658 POW_LIB
cannam@95 659 ALLOCA
cannam@95 660 C_FFTW_R2R_KIND
cannam@95 661 STACK_ALIGN_CFLAGS
cannam@95 662 NEON_CFLAGS
cannam@95 663 ALTIVEC_CFLAGS
cannam@95 664 AVX_CFLAGS
cannam@95 665 SSE2_CFLAGS
cannam@95 666 MPI_FALSE
cannam@95 667 MPI_TRUE
cannam@95 668 C_MPI_FINT
cannam@95 669 MPIRUN
cannam@95 670 MPILIBS
cannam@95 671 MPICC
cannam@95 672 OCAMLBUILD
cannam@95 673 CPP
cannam@95 674 OTOOL64
cannam@95 675 OTOOL
cannam@95 676 LIPO
cannam@95 677 NMEDIT
cannam@95 678 DSYMUTIL
cannam@95 679 MANIFEST_TOOL
cannam@95 680 RANLIB
cannam@95 681 ac_ct_AR
cannam@95 682 AR
cannam@95 683 NM
cannam@95 684 ac_ct_DUMPBIN
cannam@95 685 DUMPBIN
cannam@95 686 LD
cannam@95 687 FGREP
cannam@95 688 EGREP
cannam@95 689 GREP
cannam@95 690 SED
cannam@95 691 LIBTOOL
cannam@95 692 OBJDUMP
cannam@95 693 DLLTOOL
cannam@95 694 AS
cannam@95 695 LN_S
cannam@95 696 am__fastdepCC_FALSE
cannam@95 697 am__fastdepCC_TRUE
cannam@95 698 CCDEPMODE
cannam@95 699 am__nodep
cannam@95 700 AMDEPBACKSLASH
cannam@95 701 AMDEP_FALSE
cannam@95 702 AMDEP_TRUE
cannam@95 703 am__quote
cannam@95 704 am__include
cannam@95 705 DEPDIR
cannam@95 706 OBJEXT
cannam@95 707 EXEEXT
cannam@95 708 ac_ct_CC
cannam@95 709 CPPFLAGS
cannam@95 710 LDFLAGS
cannam@95 711 CFLAGS
cannam@95 712 CC
cannam@95 713 PREC_SUFFIX
cannam@95 714 HAVE_NEON_FALSE
cannam@95 715 HAVE_NEON_TRUE
cannam@95 716 HAVE_ALTIVEC_FALSE
cannam@95 717 HAVE_ALTIVEC_TRUE
cannam@95 718 HAVE_AVX_FALSE
cannam@95 719 HAVE_AVX_TRUE
cannam@95 720 HAVE_SSE2_FALSE
cannam@95 721 HAVE_SSE2_TRUE
cannam@95 722 CHECK_PL_OPTS
cannam@95 723 PRECISION
cannam@95 724 QUAD_FALSE
cannam@95 725 QUAD_TRUE
cannam@95 726 LDOUBLE_FALSE
cannam@95 727 LDOUBLE_TRUE
cannam@95 728 SINGLE_FALSE
cannam@95 729 SINGLE_TRUE
cannam@95 730 host_os
cannam@95 731 host_vendor
cannam@95 732 host_cpu
cannam@95 733 host
cannam@95 734 build_os
cannam@95 735 build_vendor
cannam@95 736 build_cpu
cannam@95 737 build
cannam@95 738 SHARED_VERSION_INFO
cannam@95 739 MAINT
cannam@95 740 MAINTAINER_MODE_FALSE
cannam@95 741 MAINTAINER_MODE_TRUE
cannam@95 742 am__untar
cannam@95 743 am__tar
cannam@95 744 AMTAR
cannam@95 745 am__leading_dot
cannam@95 746 SET_MAKE
cannam@95 747 AWK
cannam@95 748 mkdir_p
cannam@95 749 MKDIR_P
cannam@95 750 INSTALL_STRIP_PROGRAM
cannam@95 751 STRIP
cannam@95 752 install_sh
cannam@95 753 MAKEINFO
cannam@95 754 AUTOHEADER
cannam@95 755 AUTOMAKE
cannam@95 756 AUTOCONF
cannam@95 757 ACLOCAL
cannam@95 758 VERSION
cannam@95 759 PACKAGE
cannam@95 760 CYGPATH_W
cannam@95 761 am__isrc
cannam@95 762 INSTALL_DATA
cannam@95 763 INSTALL_SCRIPT
cannam@95 764 INSTALL_PROGRAM
cannam@95 765 target_alias
cannam@95 766 host_alias
cannam@95 767 build_alias
cannam@95 768 LIBS
cannam@95 769 ECHO_T
cannam@95 770 ECHO_N
cannam@95 771 ECHO_C
cannam@95 772 DEFS
cannam@95 773 mandir
cannam@95 774 localedir
cannam@95 775 libdir
cannam@95 776 psdir
cannam@95 777 pdfdir
cannam@95 778 dvidir
cannam@95 779 htmldir
cannam@95 780 infodir
cannam@95 781 docdir
cannam@95 782 oldincludedir
cannam@95 783 includedir
cannam@95 784 localstatedir
cannam@95 785 sharedstatedir
cannam@95 786 sysconfdir
cannam@95 787 datadir
cannam@95 788 datarootdir
cannam@95 789 libexecdir
cannam@95 790 sbindir
cannam@95 791 bindir
cannam@95 792 program_transform_name
cannam@95 793 prefix
cannam@95 794 exec_prefix
cannam@95 795 PACKAGE_URL
cannam@95 796 PACKAGE_BUGREPORT
cannam@95 797 PACKAGE_STRING
cannam@95 798 PACKAGE_VERSION
cannam@95 799 PACKAGE_TARNAME
cannam@95 800 PACKAGE_NAME
cannam@95 801 PATH_SEPARATOR
cannam@95 802 SHELL'
cannam@95 803 ac_subst_files=''
cannam@95 804 ac_user_opts='
cannam@95 805 enable_option_checking
cannam@95 806 enable_maintainer_mode
cannam@95 807 enable_shared
cannam@95 808 enable_fma
cannam@95 809 enable_debug
cannam@95 810 enable_debug_malloc
cannam@95 811 enable_debug_alignment
cannam@95 812 enable_random_estimator
cannam@95 813 enable_alloca
cannam@95 814 enable_single
cannam@95 815 enable_float
cannam@95 816 enable_long_double
cannam@95 817 enable_quad_precision
cannam@95 818 enable_sse
cannam@95 819 enable_sse2
cannam@95 820 enable_avx
cannam@95 821 enable_altivec
cannam@95 822 enable_neon
cannam@95 823 with_slow_timer
cannam@95 824 enable_mips_zbus_timer
cannam@95 825 with_our_malloc
cannam@95 826 with_our_malloc16
cannam@95 827 with_windows_f77_mangling
cannam@95 828 with_incoming_stack_boundary
cannam@95 829 enable_dependency_tracking
cannam@95 830 enable_static
cannam@95 831 with_pic
cannam@95 832 enable_fast_install
cannam@95 833 with_gnu_ld
cannam@95 834 with_sysroot
cannam@95 835 enable_libtool_lock
cannam@95 836 enable_mpi
cannam@95 837 enable_fortran
cannam@95 838 with_g77_wrappers
cannam@95 839 enable_openmp
cannam@95 840 enable_threads
cannam@95 841 with_combined_threads
cannam@95 842 '
cannam@95 843 ac_precious_vars='build_alias
cannam@95 844 host_alias
cannam@95 845 target_alias
cannam@95 846 CC
cannam@95 847 CFLAGS
cannam@95 848 LDFLAGS
cannam@95 849 LIBS
cannam@95 850 CPPFLAGS
cannam@95 851 CPP
cannam@95 852 MPICC
cannam@95 853 F77
cannam@95 854 FFLAGS'
cannam@95 855
cannam@95 856
cannam@95 857 # Initialize some variables set by options.
cannam@95 858 ac_init_help=
cannam@95 859 ac_init_version=false
cannam@95 860 ac_unrecognized_opts=
cannam@95 861 ac_unrecognized_sep=
cannam@95 862 # The variables have the same names as the options, with
cannam@95 863 # dashes changed to underlines.
cannam@95 864 cache_file=/dev/null
cannam@95 865 exec_prefix=NONE
cannam@95 866 no_create=
cannam@95 867 no_recursion=
cannam@95 868 prefix=NONE
cannam@95 869 program_prefix=NONE
cannam@95 870 program_suffix=NONE
cannam@95 871 program_transform_name=s,x,x,
cannam@95 872 silent=
cannam@95 873 site=
cannam@95 874 srcdir=
cannam@95 875 verbose=
cannam@95 876 x_includes=NONE
cannam@95 877 x_libraries=NONE
cannam@95 878
cannam@95 879 # Installation directory options.
cannam@95 880 # These are left unexpanded so users can "make install exec_prefix=/foo"
cannam@95 881 # and all the variables that are supposed to be based on exec_prefix
cannam@95 882 # by default will actually change.
cannam@95 883 # Use braces instead of parens because sh, perl, etc. also accept them.
cannam@95 884 # (The list follows the same order as the GNU Coding Standards.)
cannam@95 885 bindir='${exec_prefix}/bin'
cannam@95 886 sbindir='${exec_prefix}/sbin'
cannam@95 887 libexecdir='${exec_prefix}/libexec'
cannam@95 888 datarootdir='${prefix}/share'
cannam@95 889 datadir='${datarootdir}'
cannam@95 890 sysconfdir='${prefix}/etc'
cannam@95 891 sharedstatedir='${prefix}/com'
cannam@95 892 localstatedir='${prefix}/var'
cannam@95 893 includedir='${prefix}/include'
cannam@95 894 oldincludedir='/usr/include'
cannam@95 895 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
cannam@95 896 infodir='${datarootdir}/info'
cannam@95 897 htmldir='${docdir}'
cannam@95 898 dvidir='${docdir}'
cannam@95 899 pdfdir='${docdir}'
cannam@95 900 psdir='${docdir}'
cannam@95 901 libdir='${exec_prefix}/lib'
cannam@95 902 localedir='${datarootdir}/locale'
cannam@95 903 mandir='${datarootdir}/man'
cannam@95 904
cannam@95 905 ac_prev=
cannam@95 906 ac_dashdash=
cannam@95 907 for ac_option
cannam@95 908 do
cannam@95 909 # If the previous option needs an argument, assign it.
cannam@95 910 if test -n "$ac_prev"; then
cannam@95 911 eval $ac_prev=\$ac_option
cannam@95 912 ac_prev=
cannam@95 913 continue
cannam@95 914 fi
cannam@95 915
cannam@95 916 case $ac_option in
cannam@95 917 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
cannam@95 918 *=) ac_optarg= ;;
cannam@95 919 *) ac_optarg=yes ;;
cannam@95 920 esac
cannam@95 921
cannam@95 922 # Accept the important Cygnus configure options, so we can diagnose typos.
cannam@95 923
cannam@95 924 case $ac_dashdash$ac_option in
cannam@95 925 --)
cannam@95 926 ac_dashdash=yes ;;
cannam@95 927
cannam@95 928 -bindir | --bindir | --bindi | --bind | --bin | --bi)
cannam@95 929 ac_prev=bindir ;;
cannam@95 930 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
cannam@95 931 bindir=$ac_optarg ;;
cannam@95 932
cannam@95 933 -build | --build | --buil | --bui | --bu)
cannam@95 934 ac_prev=build_alias ;;
cannam@95 935 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
cannam@95 936 build_alias=$ac_optarg ;;
cannam@95 937
cannam@95 938 -cache-file | --cache-file | --cache-fil | --cache-fi \
cannam@95 939 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
cannam@95 940 ac_prev=cache_file ;;
cannam@95 941 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
cannam@95 942 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cannam@95 943 cache_file=$ac_optarg ;;
cannam@95 944
cannam@95 945 --config-cache | -C)
cannam@95 946 cache_file=config.cache ;;
cannam@95 947
cannam@95 948 -datadir | --datadir | --datadi | --datad)
cannam@95 949 ac_prev=datadir ;;
cannam@95 950 -datadir=* | --datadir=* | --datadi=* | --datad=*)
cannam@95 951 datadir=$ac_optarg ;;
cannam@95 952
cannam@95 953 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
cannam@95 954 | --dataroo | --dataro | --datar)
cannam@95 955 ac_prev=datarootdir ;;
cannam@95 956 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
cannam@95 957 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
cannam@95 958 datarootdir=$ac_optarg ;;
cannam@95 959
cannam@95 960 -disable-* | --disable-*)
cannam@95 961 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
cannam@95 962 # Reject names that are not valid shell variable names.
cannam@95 963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@95 964 as_fn_error $? "invalid feature name: $ac_useropt"
cannam@95 965 ac_useropt_orig=$ac_useropt
cannam@95 966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@95 967 case $ac_user_opts in
cannam@95 968 *"
cannam@95 969 "enable_$ac_useropt"
cannam@95 970 "*) ;;
cannam@95 971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
cannam@95 972 ac_unrecognized_sep=', ';;
cannam@95 973 esac
cannam@95 974 eval enable_$ac_useropt=no ;;
cannam@95 975
cannam@95 976 -docdir | --docdir | --docdi | --doc | --do)
cannam@95 977 ac_prev=docdir ;;
cannam@95 978 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
cannam@95 979 docdir=$ac_optarg ;;
cannam@95 980
cannam@95 981 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
cannam@95 982 ac_prev=dvidir ;;
cannam@95 983 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
cannam@95 984 dvidir=$ac_optarg ;;
cannam@95 985
cannam@95 986 -enable-* | --enable-*)
cannam@95 987 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
cannam@95 988 # Reject names that are not valid shell variable names.
cannam@95 989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@95 990 as_fn_error $? "invalid feature name: $ac_useropt"
cannam@95 991 ac_useropt_orig=$ac_useropt
cannam@95 992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@95 993 case $ac_user_opts in
cannam@95 994 *"
cannam@95 995 "enable_$ac_useropt"
cannam@95 996 "*) ;;
cannam@95 997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
cannam@95 998 ac_unrecognized_sep=', ';;
cannam@95 999 esac
cannam@95 1000 eval enable_$ac_useropt=\$ac_optarg ;;
cannam@95 1001
cannam@95 1002 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
cannam@95 1003 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
cannam@95 1004 | --exec | --exe | --ex)
cannam@95 1005 ac_prev=exec_prefix ;;
cannam@95 1006 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
cannam@95 1007 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
cannam@95 1008 | --exec=* | --exe=* | --ex=*)
cannam@95 1009 exec_prefix=$ac_optarg ;;
cannam@95 1010
cannam@95 1011 -gas | --gas | --ga | --g)
cannam@95 1012 # Obsolete; use --with-gas.
cannam@95 1013 with_gas=yes ;;
cannam@95 1014
cannam@95 1015 -help | --help | --hel | --he | -h)
cannam@95 1016 ac_init_help=long ;;
cannam@95 1017 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
cannam@95 1018 ac_init_help=recursive ;;
cannam@95 1019 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
cannam@95 1020 ac_init_help=short ;;
cannam@95 1021
cannam@95 1022 -host | --host | --hos | --ho)
cannam@95 1023 ac_prev=host_alias ;;
cannam@95 1024 -host=* | --host=* | --hos=* | --ho=*)
cannam@95 1025 host_alias=$ac_optarg ;;
cannam@95 1026
cannam@95 1027 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
cannam@95 1028 ac_prev=htmldir ;;
cannam@95 1029 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
cannam@95 1030 | --ht=*)
cannam@95 1031 htmldir=$ac_optarg ;;
cannam@95 1032
cannam@95 1033 -includedir | --includedir | --includedi | --included | --include \
cannam@95 1034 | --includ | --inclu | --incl | --inc)
cannam@95 1035 ac_prev=includedir ;;
cannam@95 1036 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
cannam@95 1037 | --includ=* | --inclu=* | --incl=* | --inc=*)
cannam@95 1038 includedir=$ac_optarg ;;
cannam@95 1039
cannam@95 1040 -infodir | --infodir | --infodi | --infod | --info | --inf)
cannam@95 1041 ac_prev=infodir ;;
cannam@95 1042 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
cannam@95 1043 infodir=$ac_optarg ;;
cannam@95 1044
cannam@95 1045 -libdir | --libdir | --libdi | --libd)
cannam@95 1046 ac_prev=libdir ;;
cannam@95 1047 -libdir=* | --libdir=* | --libdi=* | --libd=*)
cannam@95 1048 libdir=$ac_optarg ;;
cannam@95 1049
cannam@95 1050 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
cannam@95 1051 | --libexe | --libex | --libe)
cannam@95 1052 ac_prev=libexecdir ;;
cannam@95 1053 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
cannam@95 1054 | --libexe=* | --libex=* | --libe=*)
cannam@95 1055 libexecdir=$ac_optarg ;;
cannam@95 1056
cannam@95 1057 -localedir | --localedir | --localedi | --localed | --locale)
cannam@95 1058 ac_prev=localedir ;;
cannam@95 1059 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
cannam@95 1060 localedir=$ac_optarg ;;
cannam@95 1061
cannam@95 1062 -localstatedir | --localstatedir | --localstatedi | --localstated \
cannam@95 1063 | --localstate | --localstat | --localsta | --localst | --locals)
cannam@95 1064 ac_prev=localstatedir ;;
cannam@95 1065 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cannam@95 1066 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
cannam@95 1067 localstatedir=$ac_optarg ;;
cannam@95 1068
cannam@95 1069 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
cannam@95 1070 ac_prev=mandir ;;
cannam@95 1071 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
cannam@95 1072 mandir=$ac_optarg ;;
cannam@95 1073
cannam@95 1074 -nfp | --nfp | --nf)
cannam@95 1075 # Obsolete; use --without-fp.
cannam@95 1076 with_fp=no ;;
cannam@95 1077
cannam@95 1078 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
cannam@95 1079 | --no-cr | --no-c | -n)
cannam@95 1080 no_create=yes ;;
cannam@95 1081
cannam@95 1082 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
cannam@95 1083 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
cannam@95 1084 no_recursion=yes ;;
cannam@95 1085
cannam@95 1086 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
cannam@95 1087 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
cannam@95 1088 | --oldin | --oldi | --old | --ol | --o)
cannam@95 1089 ac_prev=oldincludedir ;;
cannam@95 1090 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
cannam@95 1091 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
cannam@95 1092 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
cannam@95 1093 oldincludedir=$ac_optarg ;;
cannam@95 1094
cannam@95 1095 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
cannam@95 1096 ac_prev=prefix ;;
cannam@95 1097 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
cannam@95 1098 prefix=$ac_optarg ;;
cannam@95 1099
cannam@95 1100 -program-prefix | --program-prefix | --program-prefi | --program-pref \
cannam@95 1101 | --program-pre | --program-pr | --program-p)
cannam@95 1102 ac_prev=program_prefix ;;
cannam@95 1103 -program-prefix=* | --program-prefix=* | --program-prefi=* \
cannam@95 1104 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
cannam@95 1105 program_prefix=$ac_optarg ;;
cannam@95 1106
cannam@95 1107 -program-suffix | --program-suffix | --program-suffi | --program-suff \
cannam@95 1108 | --program-suf | --program-su | --program-s)
cannam@95 1109 ac_prev=program_suffix ;;
cannam@95 1110 -program-suffix=* | --program-suffix=* | --program-suffi=* \
cannam@95 1111 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
cannam@95 1112 program_suffix=$ac_optarg ;;
cannam@95 1113
cannam@95 1114 -program-transform-name | --program-transform-name \
cannam@95 1115 | --program-transform-nam | --program-transform-na \
cannam@95 1116 | --program-transform-n | --program-transform- \
cannam@95 1117 | --program-transform | --program-transfor \
cannam@95 1118 | --program-transfo | --program-transf \
cannam@95 1119 | --program-trans | --program-tran \
cannam@95 1120 | --progr-tra | --program-tr | --program-t)
cannam@95 1121 ac_prev=program_transform_name ;;
cannam@95 1122 -program-transform-name=* | --program-transform-name=* \
cannam@95 1123 | --program-transform-nam=* | --program-transform-na=* \
cannam@95 1124 | --program-transform-n=* | --program-transform-=* \
cannam@95 1125 | --program-transform=* | --program-transfor=* \
cannam@95 1126 | --program-transfo=* | --program-transf=* \
cannam@95 1127 | --program-trans=* | --program-tran=* \
cannam@95 1128 | --progr-tra=* | --program-tr=* | --program-t=*)
cannam@95 1129 program_transform_name=$ac_optarg ;;
cannam@95 1130
cannam@95 1131 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
cannam@95 1132 ac_prev=pdfdir ;;
cannam@95 1133 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
cannam@95 1134 pdfdir=$ac_optarg ;;
cannam@95 1135
cannam@95 1136 -psdir | --psdir | --psdi | --psd | --ps)
cannam@95 1137 ac_prev=psdir ;;
cannam@95 1138 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
cannam@95 1139 psdir=$ac_optarg ;;
cannam@95 1140
cannam@95 1141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@95 1142 | -silent | --silent | --silen | --sile | --sil)
cannam@95 1143 silent=yes ;;
cannam@95 1144
cannam@95 1145 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
cannam@95 1146 ac_prev=sbindir ;;
cannam@95 1147 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
cannam@95 1148 | --sbi=* | --sb=*)
cannam@95 1149 sbindir=$ac_optarg ;;
cannam@95 1150
cannam@95 1151 -sharedstatedir | --sharedstatedir | --sharedstatedi \
cannam@95 1152 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
cannam@95 1153 | --sharedst | --shareds | --shared | --share | --shar \
cannam@95 1154 | --sha | --sh)
cannam@95 1155 ac_prev=sharedstatedir ;;
cannam@95 1156 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
cannam@95 1157 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
cannam@95 1158 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
cannam@95 1159 | --sha=* | --sh=*)
cannam@95 1160 sharedstatedir=$ac_optarg ;;
cannam@95 1161
cannam@95 1162 -site | --site | --sit)
cannam@95 1163 ac_prev=site ;;
cannam@95 1164 -site=* | --site=* | --sit=*)
cannam@95 1165 site=$ac_optarg ;;
cannam@95 1166
cannam@95 1167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
cannam@95 1168 ac_prev=srcdir ;;
cannam@95 1169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
cannam@95 1170 srcdir=$ac_optarg ;;
cannam@95 1171
cannam@95 1172 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
cannam@95 1173 | --syscon | --sysco | --sysc | --sys | --sy)
cannam@95 1174 ac_prev=sysconfdir ;;
cannam@95 1175 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
cannam@95 1176 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
cannam@95 1177 sysconfdir=$ac_optarg ;;
cannam@95 1178
cannam@95 1179 -target | --target | --targe | --targ | --tar | --ta | --t)
cannam@95 1180 ac_prev=target_alias ;;
cannam@95 1181 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
cannam@95 1182 target_alias=$ac_optarg ;;
cannam@95 1183
cannam@95 1184 -v | -verbose | --verbose | --verbos | --verbo | --verb)
cannam@95 1185 verbose=yes ;;
cannam@95 1186
cannam@95 1187 -version | --version | --versio | --versi | --vers | -V)
cannam@95 1188 ac_init_version=: ;;
cannam@95 1189
cannam@95 1190 -with-* | --with-*)
cannam@95 1191 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
cannam@95 1192 # Reject names that are not valid shell variable names.
cannam@95 1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@95 1194 as_fn_error $? "invalid package name: $ac_useropt"
cannam@95 1195 ac_useropt_orig=$ac_useropt
cannam@95 1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@95 1197 case $ac_user_opts in
cannam@95 1198 *"
cannam@95 1199 "with_$ac_useropt"
cannam@95 1200 "*) ;;
cannam@95 1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
cannam@95 1202 ac_unrecognized_sep=', ';;
cannam@95 1203 esac
cannam@95 1204 eval with_$ac_useropt=\$ac_optarg ;;
cannam@95 1205
cannam@95 1206 -without-* | --without-*)
cannam@95 1207 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
cannam@95 1208 # Reject names that are not valid shell variable names.
cannam@95 1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@95 1210 as_fn_error $? "invalid package name: $ac_useropt"
cannam@95 1211 ac_useropt_orig=$ac_useropt
cannam@95 1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@95 1213 case $ac_user_opts in
cannam@95 1214 *"
cannam@95 1215 "with_$ac_useropt"
cannam@95 1216 "*) ;;
cannam@95 1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
cannam@95 1218 ac_unrecognized_sep=', ';;
cannam@95 1219 esac
cannam@95 1220 eval with_$ac_useropt=no ;;
cannam@95 1221
cannam@95 1222 --x)
cannam@95 1223 # Obsolete; use --with-x.
cannam@95 1224 with_x=yes ;;
cannam@95 1225
cannam@95 1226 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
cannam@95 1227 | --x-incl | --x-inc | --x-in | --x-i)
cannam@95 1228 ac_prev=x_includes ;;
cannam@95 1229 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
cannam@95 1230 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
cannam@95 1231 x_includes=$ac_optarg ;;
cannam@95 1232
cannam@95 1233 -x-libraries | --x-libraries | --x-librarie | --x-librari \
cannam@95 1234 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
cannam@95 1235 ac_prev=x_libraries ;;
cannam@95 1236 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
cannam@95 1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
cannam@95 1238 x_libraries=$ac_optarg ;;
cannam@95 1239
cannam@95 1240 -*) as_fn_error $? "unrecognized option: \`$ac_option'
cannam@95 1241 Try \`$0 --help' for more information"
cannam@95 1242 ;;
cannam@95 1243
cannam@95 1244 *=*)
cannam@95 1245 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
cannam@95 1246 # Reject names that are not valid shell variable names.
cannam@95 1247 case $ac_envvar in #(
cannam@95 1248 '' | [0-9]* | *[!_$as_cr_alnum]* )
cannam@95 1249 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cannam@95 1250 esac
cannam@95 1251 eval $ac_envvar=\$ac_optarg
cannam@95 1252 export $ac_envvar ;;
cannam@95 1253
cannam@95 1254 *)
cannam@95 1255 # FIXME: should be removed in autoconf 3.0.
cannam@95 1256 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
cannam@95 1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cannam@95 1258 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cannam@95 1259 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cannam@95 1260 ;;
cannam@95 1261
cannam@95 1262 esac
cannam@95 1263 done
cannam@95 1264
cannam@95 1265 if test -n "$ac_prev"; then
cannam@95 1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cannam@95 1267 as_fn_error $? "missing argument to $ac_option"
cannam@95 1268 fi
cannam@95 1269
cannam@95 1270 if test -n "$ac_unrecognized_opts"; then
cannam@95 1271 case $enable_option_checking in
cannam@95 1272 no) ;;
cannam@95 1273 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cannam@95 1274 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
cannam@95 1275 esac
cannam@95 1276 fi
cannam@95 1277
cannam@95 1278 # Check all directory arguments for consistency.
cannam@95 1279 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
cannam@95 1280 datadir sysconfdir sharedstatedir localstatedir includedir \
cannam@95 1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
cannam@95 1282 libdir localedir mandir
cannam@95 1283 do
cannam@95 1284 eval ac_val=\$$ac_var
cannam@95 1285 # Remove trailing slashes.
cannam@95 1286 case $ac_val in
cannam@95 1287 */ )
cannam@95 1288 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
cannam@95 1289 eval $ac_var=\$ac_val;;
cannam@95 1290 esac
cannam@95 1291 # Be sure to have absolute directory names.
cannam@95 1292 case $ac_val in
cannam@95 1293 [\\/$]* | ?:[\\/]* ) continue;;
cannam@95 1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
cannam@95 1295 esac
cannam@95 1296 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cannam@95 1297 done
cannam@95 1298
cannam@95 1299 # There might be people who depend on the old broken behavior: `$host'
cannam@95 1300 # used to hold the argument of --host etc.
cannam@95 1301 # FIXME: To remove some day.
cannam@95 1302 build=$build_alias
cannam@95 1303 host=$host_alias
cannam@95 1304 target=$target_alias
cannam@95 1305
cannam@95 1306 # FIXME: To remove some day.
cannam@95 1307 if test "x$host_alias" != x; then
cannam@95 1308 if test "x$build_alias" = x; then
cannam@95 1309 cross_compiling=maybe
cannam@95 1310 elif test "x$build_alias" != "x$host_alias"; then
cannam@95 1311 cross_compiling=yes
cannam@95 1312 fi
cannam@95 1313 fi
cannam@95 1314
cannam@95 1315 ac_tool_prefix=
cannam@95 1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
cannam@95 1317
cannam@95 1318 test "$silent" = yes && exec 6>/dev/null
cannam@95 1319
cannam@95 1320
cannam@95 1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
cannam@95 1322 ac_ls_di=`ls -di .` &&
cannam@95 1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cannam@95 1324 as_fn_error $? "working directory cannot be determined"
cannam@95 1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cannam@95 1326 as_fn_error $? "pwd does not report name of working directory"
cannam@95 1327
cannam@95 1328
cannam@95 1329 # Find the source files, if location was not specified.
cannam@95 1330 if test -z "$srcdir"; then
cannam@95 1331 ac_srcdir_defaulted=yes
cannam@95 1332 # Try the directory containing this script, then the parent directory.
cannam@95 1333 ac_confdir=`$as_dirname -- "$as_myself" ||
cannam@95 1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@95 1335 X"$as_myself" : 'X\(//\)[^/]' \| \
cannam@95 1336 X"$as_myself" : 'X\(//\)$' \| \
cannam@95 1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
cannam@95 1338 $as_echo X"$as_myself" |
cannam@95 1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@95 1340 s//\1/
cannam@95 1341 q
cannam@95 1342 }
cannam@95 1343 /^X\(\/\/\)[^/].*/{
cannam@95 1344 s//\1/
cannam@95 1345 q
cannam@95 1346 }
cannam@95 1347 /^X\(\/\/\)$/{
cannam@95 1348 s//\1/
cannam@95 1349 q
cannam@95 1350 }
cannam@95 1351 /^X\(\/\).*/{
cannam@95 1352 s//\1/
cannam@95 1353 q
cannam@95 1354 }
cannam@95 1355 s/.*/./; q'`
cannam@95 1356 srcdir=$ac_confdir
cannam@95 1357 if test ! -r "$srcdir/$ac_unique_file"; then
cannam@95 1358 srcdir=..
cannam@95 1359 fi
cannam@95 1360 else
cannam@95 1361 ac_srcdir_defaulted=no
cannam@95 1362 fi
cannam@95 1363 if test ! -r "$srcdir/$ac_unique_file"; then
cannam@95 1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cannam@95 1365 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cannam@95 1366 fi
cannam@95 1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
cannam@95 1368 ac_abs_confdir=`(
cannam@95 1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cannam@95 1370 pwd)`
cannam@95 1371 # When building in place, set srcdir=.
cannam@95 1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
cannam@95 1373 srcdir=.
cannam@95 1374 fi
cannam@95 1375 # Remove unnecessary trailing slashes from srcdir.
cannam@95 1376 # Double slashes in file names in object file debugging info
cannam@95 1377 # mess up M-x gdb in Emacs.
cannam@95 1378 case $srcdir in
cannam@95 1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
cannam@95 1380 esac
cannam@95 1381 for ac_var in $ac_precious_vars; do
cannam@95 1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
cannam@95 1383 eval ac_env_${ac_var}_value=\$${ac_var}
cannam@95 1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
cannam@95 1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
cannam@95 1386 done
cannam@95 1387
cannam@95 1388 #
cannam@95 1389 # Report the --help message.
cannam@95 1390 #
cannam@95 1391 if test "$ac_init_help" = "long"; then
cannam@95 1392 # Omit some internal or obsolete options to make the list less imposing.
cannam@95 1393 # This message is too long to be a string in the A/UX 3.1 sh.
cannam@95 1394 cat <<_ACEOF
cannam@95 1395 \`configure' configures fftw 3.3.3 to adapt to many kinds of systems.
cannam@95 1396
cannam@95 1397 Usage: $0 [OPTION]... [VAR=VALUE]...
cannam@95 1398
cannam@95 1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
cannam@95 1400 VAR=VALUE. See below for descriptions of some of the useful variables.
cannam@95 1401
cannam@95 1402 Defaults for the options are specified in brackets.
cannam@95 1403
cannam@95 1404 Configuration:
cannam@95 1405 -h, --help display this help and exit
cannam@95 1406 --help=short display options specific to this package
cannam@95 1407 --help=recursive display the short help of all the included packages
cannam@95 1408 -V, --version display version information and exit
cannam@95 1409 -q, --quiet, --silent do not print \`checking ...' messages
cannam@95 1410 --cache-file=FILE cache test results in FILE [disabled]
cannam@95 1411 -C, --config-cache alias for \`--cache-file=config.cache'
cannam@95 1412 -n, --no-create do not create output files
cannam@95 1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
cannam@95 1414
cannam@95 1415 Installation directories:
cannam@95 1416 --prefix=PREFIX install architecture-independent files in PREFIX
cannam@95 1417 [$ac_default_prefix]
cannam@95 1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cannam@95 1419 [PREFIX]
cannam@95 1420
cannam@95 1421 By default, \`make install' will install all the files in
cannam@95 1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
cannam@95 1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
cannam@95 1424 for instance \`--prefix=\$HOME'.
cannam@95 1425
cannam@95 1426 For better control, use the options below.
cannam@95 1427
cannam@95 1428 Fine tuning of the installation directories:
cannam@95 1429 --bindir=DIR user executables [EPREFIX/bin]
cannam@95 1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
cannam@95 1431 --libexecdir=DIR program executables [EPREFIX/libexec]
cannam@95 1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
cannam@95 1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
cannam@95 1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
cannam@95 1435 --libdir=DIR object code libraries [EPREFIX/lib]
cannam@95 1436 --includedir=DIR C header files [PREFIX/include]
cannam@95 1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
cannam@95 1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
cannam@95 1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
cannam@95 1440 --infodir=DIR info documentation [DATAROOTDIR/info]
cannam@95 1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
cannam@95 1442 --mandir=DIR man documentation [DATAROOTDIR/man]
cannam@95 1443 --docdir=DIR documentation root [DATAROOTDIR/doc/fftw]
cannam@95 1444 --htmldir=DIR html documentation [DOCDIR]
cannam@95 1445 --dvidir=DIR dvi documentation [DOCDIR]
cannam@95 1446 --pdfdir=DIR pdf documentation [DOCDIR]
cannam@95 1447 --psdir=DIR ps documentation [DOCDIR]
cannam@95 1448 _ACEOF
cannam@95 1449
cannam@95 1450 cat <<\_ACEOF
cannam@95 1451
cannam@95 1452 Program names:
cannam@95 1453 --program-prefix=PREFIX prepend PREFIX to installed program names
cannam@95 1454 --program-suffix=SUFFIX append SUFFIX to installed program names
cannam@95 1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
cannam@95 1456
cannam@95 1457 System types:
cannam@95 1458 --build=BUILD configure for building on BUILD [guessed]
cannam@95 1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
cannam@95 1460 _ACEOF
cannam@95 1461 fi
cannam@95 1462
cannam@95 1463 if test -n "$ac_init_help"; then
cannam@95 1464 case $ac_init_help in
cannam@95 1465 short | recursive ) echo "Configuration of fftw 3.3.3:";;
cannam@95 1466 esac
cannam@95 1467 cat <<\_ACEOF
cannam@95 1468
cannam@95 1469 Optional Features:
cannam@95 1470 --disable-option-checking ignore unrecognized --enable/--with options
cannam@95 1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
cannam@95 1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cannam@95 1473 --enable-maintainer-mode enable make rules and dependencies not useful
cannam@95 1474 (and sometimes confusing) to the casual installer
cannam@95 1475 --enable-shared[=PKGS] build shared libraries [default=no]
cannam@95 1476 --enable-fma enable optimizations for machines with fused
cannam@95 1477 multiply-add
cannam@95 1478 --enable-debug compile fftw with extra runtime checks for debugging
cannam@95 1479 --enable-debug-malloc enable malloc debugging version
cannam@95 1480 --enable-debug-alignment
cannam@95 1481 enable alignment debugging hacks
cannam@95 1482 --enable-random-estimator
cannam@95 1483 enable pseudorandom estimator (debugging hack)
cannam@95 1484 --disable-alloca disable use of the alloca() function (may be broken
cannam@95 1485 on mingw64)
cannam@95 1486 --enable-single compile fftw in single precision
cannam@95 1487 --enable-float synonym for --enable-single
cannam@95 1488 --enable-long-double compile fftw in long-double precision
cannam@95 1489 --enable-quad-precision compile fftw in quadruple precision if available
cannam@95 1490 --enable-sse enable SSE optimizations
cannam@95 1491 --enable-sse2 enable SSE/SSE2 optimizations
cannam@95 1492 --enable-avx enable AVX optimizations
cannam@95 1493 --enable-altivec enable Altivec optimizations
cannam@95 1494 --enable-neon enable ARM NEON optimizations
cannam@95 1495 --enable-mips-zbus-timer
cannam@95 1496 use MIPS ZBus cycle-counter
cannam@95 1497 --disable-dependency-tracking speeds up one-time build
cannam@95 1498 --enable-dependency-tracking do not reject slow dependency extractors
cannam@95 1499 --enable-static[=PKGS] build static libraries [default=yes]
cannam@95 1500 --enable-fast-install[=PKGS]
cannam@95 1501 optimize for fast installation [default=yes]
cannam@95 1502 --disable-libtool-lock avoid locking (might break parallel builds)
cannam@95 1503 --enable-mpi compile FFTW MPI library
cannam@95 1504 --disable-fortran don't include Fortran-callable wrappers
cannam@95 1505 --enable-openmp use OpenMP directives for parallelism
cannam@95 1506 --enable-threads compile FFTW SMP threads library
cannam@95 1507
cannam@95 1508 Optional Packages:
cannam@95 1509 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
cannam@95 1510 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cannam@95 1511 --with-slow-timer use low-precision timers (SLOW)
cannam@95 1512 --with-our-malloc use our aligned malloc (helpful for Win32)
cannam@95 1513 --with-our-malloc16 Obsolete alias for --with-our-malloc16
cannam@95 1514 --with-windows-f77-mangling
cannam@95 1515 use common Win32 Fortran interface styles
cannam@95 1516 --with-incoming-stack-boundary=X
cannam@95 1517 Assume that stack is aligned to (1<<X) bytes
cannam@95 1518 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cannam@95 1519 both]
cannam@95 1520 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cannam@95 1521 --with-sysroot=DIR Search for dependent libraries within DIR
cannam@95 1522 (or the compiler's sysroot if not specified).
cannam@95 1523 --with-g77-wrappers force inclusion of g77-compatible wrappers in
cannam@95 1524 addition to any other Fortran compiler that is
cannam@95 1525 detected
cannam@95 1526 --with-combined-threads combine threads into main libfftw3
cannam@95 1527
cannam@95 1528 Some influential environment variables:
cannam@95 1529 CC C compiler command
cannam@95 1530 CFLAGS C compiler flags
cannam@95 1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
cannam@95 1532 nonstandard directory <lib dir>
cannam@95 1533 LIBS libraries to pass to the linker, e.g. -l<library>
cannam@95 1534 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cannam@95 1535 you have headers in a nonstandard directory <include dir>
cannam@95 1536 CPP C preprocessor
cannam@95 1537 MPICC MPI C compiler command
cannam@95 1538 F77 Fortran 77 compiler command
cannam@95 1539 FFLAGS Fortran 77 compiler flags
cannam@95 1540
cannam@95 1541 Use these variables to override the choices made by `configure' or to help
cannam@95 1542 it to find libraries and programs with nonstandard names/locations.
cannam@95 1543
cannam@95 1544 Report bugs to <fftw@fftw.org>.
cannam@95 1545 _ACEOF
cannam@95 1546 ac_status=$?
cannam@95 1547 fi
cannam@95 1548
cannam@95 1549 if test "$ac_init_help" = "recursive"; then
cannam@95 1550 # If there are subdirs, report their specific --help.
cannam@95 1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cannam@95 1552 test -d "$ac_dir" ||
cannam@95 1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
cannam@95 1554 continue
cannam@95 1555 ac_builddir=.
cannam@95 1556
cannam@95 1557 case "$ac_dir" in
cannam@95 1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@95 1559 *)
cannam@95 1560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
cannam@95 1561 # A ".." for each directory in $ac_dir_suffix.
cannam@95 1562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
cannam@95 1563 case $ac_top_builddir_sub in
cannam@95 1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@95 1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
cannam@95 1566 esac ;;
cannam@95 1567 esac
cannam@95 1568 ac_abs_top_builddir=$ac_pwd
cannam@95 1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
cannam@95 1570 # for backward compatibility:
cannam@95 1571 ac_top_builddir=$ac_top_build_prefix
cannam@95 1572
cannam@95 1573 case $srcdir in
cannam@95 1574 .) # We are building in place.
cannam@95 1575 ac_srcdir=.
cannam@95 1576 ac_top_srcdir=$ac_top_builddir_sub
cannam@95 1577 ac_abs_top_srcdir=$ac_pwd ;;
cannam@95 1578 [\\/]* | ?:[\\/]* ) # Absolute name.
cannam@95 1579 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@95 1580 ac_top_srcdir=$srcdir
cannam@95 1581 ac_abs_top_srcdir=$srcdir ;;
cannam@95 1582 *) # Relative name.
cannam@95 1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
cannam@95 1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
cannam@95 1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
cannam@95 1586 esac
cannam@95 1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cannam@95 1588
cannam@95 1589 cd "$ac_dir" || { ac_status=$?; continue; }
cannam@95 1590 # Check for guested configure.
cannam@95 1591 if test -f "$ac_srcdir/configure.gnu"; then
cannam@95 1592 echo &&
cannam@95 1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
cannam@95 1594 elif test -f "$ac_srcdir/configure"; then
cannam@95 1595 echo &&
cannam@95 1596 $SHELL "$ac_srcdir/configure" --help=recursive
cannam@95 1597 else
cannam@95 1598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
cannam@95 1599 fi || ac_status=$?
cannam@95 1600 cd "$ac_pwd" || { ac_status=$?; break; }
cannam@95 1601 done
cannam@95 1602 fi
cannam@95 1603
cannam@95 1604 test -n "$ac_init_help" && exit $ac_status
cannam@95 1605 if $ac_init_version; then
cannam@95 1606 cat <<\_ACEOF
cannam@95 1607 fftw configure 3.3.3
cannam@95 1608 generated by GNU Autoconf 2.69
cannam@95 1609
cannam@95 1610 Copyright (C) 2012 Free Software Foundation, Inc.
cannam@95 1611 This configure script is free software; the Free Software Foundation
cannam@95 1612 gives unlimited permission to copy, distribute and modify it.
cannam@95 1613 _ACEOF
cannam@95 1614 exit
cannam@95 1615 fi
cannam@95 1616
cannam@95 1617 ## ------------------------ ##
cannam@95 1618 ## Autoconf initialization. ##
cannam@95 1619 ## ------------------------ ##
cannam@95 1620
cannam@95 1621 # ac_fn_c_try_compile LINENO
cannam@95 1622 # --------------------------
cannam@95 1623 # Try to compile conftest.$ac_ext, and return whether this succeeded.
cannam@95 1624 ac_fn_c_try_compile ()
cannam@95 1625 {
cannam@95 1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@95 1627 rm -f conftest.$ac_objext
cannam@95 1628 if { { ac_try="$ac_compile"
cannam@95 1629 case "(($ac_try" in
cannam@95 1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@95 1631 *) ac_try_echo=$ac_try;;
cannam@95 1632 esac
cannam@95 1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@95 1634 $as_echo "$ac_try_echo"; } >&5
cannam@95 1635 (eval "$ac_compile") 2>conftest.err
cannam@95 1636 ac_status=$?
cannam@95 1637 if test -s conftest.err; then
cannam@95 1638 grep -v '^ *+' conftest.err >conftest.er1
cannam@95 1639 cat conftest.er1 >&5
cannam@95 1640 mv -f conftest.er1 conftest.err
cannam@95 1641 fi
cannam@95 1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 1643 test $ac_status = 0; } && {
cannam@95 1644 test -z "$ac_c_werror_flag" ||
cannam@95 1645 test ! -s conftest.err
cannam@95 1646 } && test -s conftest.$ac_objext; then :
cannam@95 1647 ac_retval=0
cannam@95 1648 else
cannam@95 1649 $as_echo "$as_me: failed program was:" >&5
cannam@95 1650 sed 's/^/| /' conftest.$ac_ext >&5
cannam@95 1651
cannam@95 1652 ac_retval=1
cannam@95 1653 fi
cannam@95 1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@95 1655 as_fn_set_status $ac_retval
cannam@95 1656
cannam@95 1657 } # ac_fn_c_try_compile
cannam@95 1658
cannam@95 1659 # ac_fn_c_try_link LINENO
cannam@95 1660 # -----------------------
cannam@95 1661 # Try to link conftest.$ac_ext, and return whether this succeeded.
cannam@95 1662 ac_fn_c_try_link ()
cannam@95 1663 {
cannam@95 1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@95 1665 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@95 1666 if { { ac_try="$ac_link"
cannam@95 1667 case "(($ac_try" in
cannam@95 1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@95 1669 *) ac_try_echo=$ac_try;;
cannam@95 1670 esac
cannam@95 1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@95 1672 $as_echo "$ac_try_echo"; } >&5
cannam@95 1673 (eval "$ac_link") 2>conftest.err
cannam@95 1674 ac_status=$?
cannam@95 1675 if test -s conftest.err; then
cannam@95 1676 grep -v '^ *+' conftest.err >conftest.er1
cannam@95 1677 cat conftest.er1 >&5
cannam@95 1678 mv -f conftest.er1 conftest.err
cannam@95 1679 fi
cannam@95 1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 1681 test $ac_status = 0; } && {
cannam@95 1682 test -z "$ac_c_werror_flag" ||
cannam@95 1683 test ! -s conftest.err
cannam@95 1684 } && test -s conftest$ac_exeext && {
cannam@95 1685 test "$cross_compiling" = yes ||
cannam@95 1686 test -x conftest$ac_exeext
cannam@95 1687 }; then :
cannam@95 1688 ac_retval=0
cannam@95 1689 else
cannam@95 1690 $as_echo "$as_me: failed program was:" >&5
cannam@95 1691 sed 's/^/| /' conftest.$ac_ext >&5
cannam@95 1692
cannam@95 1693 ac_retval=1
cannam@95 1694 fi
cannam@95 1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
cannam@95 1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
cannam@95 1697 # interfere with the next link command; also delete a directory that is
cannam@95 1698 # left behind by Apple's compiler. We do this before executing the actions.
cannam@95 1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cannam@95 1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@95 1701 as_fn_set_status $ac_retval
cannam@95 1702
cannam@95 1703 } # ac_fn_c_try_link
cannam@95 1704
cannam@95 1705 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
cannam@95 1706 # -------------------------------------------------------
cannam@95 1707 # Tests whether HEADER exists and can be compiled using the include files in
cannam@95 1708 # INCLUDES, setting the cache variable VAR accordingly.
cannam@95 1709 ac_fn_c_check_header_compile ()
cannam@95 1710 {
cannam@95 1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@95 1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@95 1713 $as_echo_n "checking for $2... " >&6; }
cannam@95 1714 if eval \${$3+:} false; then :
cannam@95 1715 $as_echo_n "(cached) " >&6
cannam@95 1716 else
cannam@95 1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 1718 /* end confdefs.h. */
cannam@95 1719 $4
cannam@95 1720 #include <$2>
cannam@95 1721 _ACEOF
cannam@95 1722 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 1723 eval "$3=yes"
cannam@95 1724 else
cannam@95 1725 eval "$3=no"
cannam@95 1726 fi
cannam@95 1727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 1728 fi
cannam@95 1729 eval ac_res=\$$3
cannam@95 1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@95 1731 $as_echo "$ac_res" >&6; }
cannam@95 1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@95 1733
cannam@95 1734 } # ac_fn_c_check_header_compile
cannam@95 1735
cannam@95 1736 # ac_fn_c_try_cpp LINENO
cannam@95 1737 # ----------------------
cannam@95 1738 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
cannam@95 1739 ac_fn_c_try_cpp ()
cannam@95 1740 {
cannam@95 1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@95 1742 if { { ac_try="$ac_cpp conftest.$ac_ext"
cannam@95 1743 case "(($ac_try" in
cannam@95 1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@95 1745 *) ac_try_echo=$ac_try;;
cannam@95 1746 esac
cannam@95 1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@95 1748 $as_echo "$ac_try_echo"; } >&5
cannam@95 1749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
cannam@95 1750 ac_status=$?
cannam@95 1751 if test -s conftest.err; then
cannam@95 1752 grep -v '^ *+' conftest.err >conftest.er1
cannam@95 1753 cat conftest.er1 >&5
cannam@95 1754 mv -f conftest.er1 conftest.err
cannam@95 1755 fi
cannam@95 1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 1757 test $ac_status = 0; } > conftest.i && {
cannam@95 1758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
cannam@95 1759 test ! -s conftest.err
cannam@95 1760 }; then :
cannam@95 1761 ac_retval=0
cannam@95 1762 else
cannam@95 1763 $as_echo "$as_me: failed program was:" >&5
cannam@95 1764 sed 's/^/| /' conftest.$ac_ext >&5
cannam@95 1765
cannam@95 1766 ac_retval=1
cannam@95 1767 fi
cannam@95 1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@95 1769 as_fn_set_status $ac_retval
cannam@95 1770
cannam@95 1771 } # ac_fn_c_try_cpp
cannam@95 1772
cannam@95 1773 # ac_fn_c_try_run LINENO
cannam@95 1774 # ----------------------
cannam@95 1775 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
cannam@95 1776 # that executables *can* be run.
cannam@95 1777 ac_fn_c_try_run ()
cannam@95 1778 {
cannam@95 1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@95 1780 if { { ac_try="$ac_link"
cannam@95 1781 case "(($ac_try" in
cannam@95 1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@95 1783 *) ac_try_echo=$ac_try;;
cannam@95 1784 esac
cannam@95 1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@95 1786 $as_echo "$ac_try_echo"; } >&5
cannam@95 1787 (eval "$ac_link") 2>&5
cannam@95 1788 ac_status=$?
cannam@95 1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 1790 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
cannam@95 1791 { { case "(($ac_try" in
cannam@95 1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@95 1793 *) ac_try_echo=$ac_try;;
cannam@95 1794 esac
cannam@95 1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@95 1796 $as_echo "$ac_try_echo"; } >&5
cannam@95 1797 (eval "$ac_try") 2>&5
cannam@95 1798 ac_status=$?
cannam@95 1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 1800 test $ac_status = 0; }; }; then :
cannam@95 1801 ac_retval=0
cannam@95 1802 else
cannam@95 1803 $as_echo "$as_me: program exited with status $ac_status" >&5
cannam@95 1804 $as_echo "$as_me: failed program was:" >&5
cannam@95 1805 sed 's/^/| /' conftest.$ac_ext >&5
cannam@95 1806
cannam@95 1807 ac_retval=$ac_status
cannam@95 1808 fi
cannam@95 1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cannam@95 1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@95 1811 as_fn_set_status $ac_retval
cannam@95 1812
cannam@95 1813 } # ac_fn_c_try_run
cannam@95 1814
cannam@95 1815 # ac_fn_c_check_func LINENO FUNC VAR
cannam@95 1816 # ----------------------------------
cannam@95 1817 # Tests whether FUNC exists, setting the cache variable VAR accordingly
cannam@95 1818 ac_fn_c_check_func ()
cannam@95 1819 {
cannam@95 1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@95 1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@95 1822 $as_echo_n "checking for $2... " >&6; }
cannam@95 1823 if eval \${$3+:} false; then :
cannam@95 1824 $as_echo_n "(cached) " >&6
cannam@95 1825 else
cannam@95 1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 1827 /* end confdefs.h. */
cannam@95 1828 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
cannam@95 1829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
cannam@95 1830 #define $2 innocuous_$2
cannam@95 1831
cannam@95 1832 /* System header to define __stub macros and hopefully few prototypes,
cannam@95 1833 which can conflict with char $2 (); below.
cannam@95 1834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@95 1835 <limits.h> exists even on freestanding compilers. */
cannam@95 1836
cannam@95 1837 #ifdef __STDC__
cannam@95 1838 # include <limits.h>
cannam@95 1839 #else
cannam@95 1840 # include <assert.h>
cannam@95 1841 #endif
cannam@95 1842
cannam@95 1843 #undef $2
cannam@95 1844
cannam@95 1845 /* Override any GCC internal prototype to avoid an error.
cannam@95 1846 Use char because int might match the return type of a GCC
cannam@95 1847 builtin and then its argument prototype would still apply. */
cannam@95 1848 #ifdef __cplusplus
cannam@95 1849 extern "C"
cannam@95 1850 #endif
cannam@95 1851 char $2 ();
cannam@95 1852 /* The GNU C library defines this for functions which it implements
cannam@95 1853 to always fail with ENOSYS. Some functions are actually named
cannam@95 1854 something starting with __ and the normal name is an alias. */
cannam@95 1855 #if defined __stub_$2 || defined __stub___$2
cannam@95 1856 choke me
cannam@95 1857 #endif
cannam@95 1858
cannam@95 1859 int
cannam@95 1860 main ()
cannam@95 1861 {
cannam@95 1862 return $2 ();
cannam@95 1863 ;
cannam@95 1864 return 0;
cannam@95 1865 }
cannam@95 1866 _ACEOF
cannam@95 1867 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 1868 eval "$3=yes"
cannam@95 1869 else
cannam@95 1870 eval "$3=no"
cannam@95 1871 fi
cannam@95 1872 rm -f core conftest.err conftest.$ac_objext \
cannam@95 1873 conftest$ac_exeext conftest.$ac_ext
cannam@95 1874 fi
cannam@95 1875 eval ac_res=\$$3
cannam@95 1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@95 1877 $as_echo "$ac_res" >&6; }
cannam@95 1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@95 1879
cannam@95 1880 } # ac_fn_c_check_func
cannam@95 1881
cannam@95 1882 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
cannam@95 1883 # --------------------------------------------
cannam@95 1884 # Tries to find the compile-time value of EXPR in a program that includes
cannam@95 1885 # INCLUDES, setting VAR accordingly. Returns whether the value could be
cannam@95 1886 # computed
cannam@95 1887 ac_fn_c_compute_int ()
cannam@95 1888 {
cannam@95 1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@95 1890 if test "$cross_compiling" = yes; then
cannam@95 1891 # Depending upon the size, compute the lo and hi bounds.
cannam@95 1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 1893 /* end confdefs.h. */
cannam@95 1894 $4
cannam@95 1895 int
cannam@95 1896 main ()
cannam@95 1897 {
cannam@95 1898 static int test_array [1 - 2 * !(($2) >= 0)];
cannam@95 1899 test_array [0] = 0;
cannam@95 1900 return test_array [0];
cannam@95 1901
cannam@95 1902 ;
cannam@95 1903 return 0;
cannam@95 1904 }
cannam@95 1905 _ACEOF
cannam@95 1906 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 1907 ac_lo=0 ac_mid=0
cannam@95 1908 while :; do
cannam@95 1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 1910 /* end confdefs.h. */
cannam@95 1911 $4
cannam@95 1912 int
cannam@95 1913 main ()
cannam@95 1914 {
cannam@95 1915 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cannam@95 1916 test_array [0] = 0;
cannam@95 1917 return test_array [0];
cannam@95 1918
cannam@95 1919 ;
cannam@95 1920 return 0;
cannam@95 1921 }
cannam@95 1922 _ACEOF
cannam@95 1923 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 1924 ac_hi=$ac_mid; break
cannam@95 1925 else
cannam@95 1926 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
cannam@95 1927 if test $ac_lo -le $ac_mid; then
cannam@95 1928 ac_lo= ac_hi=
cannam@95 1929 break
cannam@95 1930 fi
cannam@95 1931 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
cannam@95 1932 fi
cannam@95 1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 1934 done
cannam@95 1935 else
cannam@95 1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 1937 /* end confdefs.h. */
cannam@95 1938 $4
cannam@95 1939 int
cannam@95 1940 main ()
cannam@95 1941 {
cannam@95 1942 static int test_array [1 - 2 * !(($2) < 0)];
cannam@95 1943 test_array [0] = 0;
cannam@95 1944 return test_array [0];
cannam@95 1945
cannam@95 1946 ;
cannam@95 1947 return 0;
cannam@95 1948 }
cannam@95 1949 _ACEOF
cannam@95 1950 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 1951 ac_hi=-1 ac_mid=-1
cannam@95 1952 while :; do
cannam@95 1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 1954 /* end confdefs.h. */
cannam@95 1955 $4
cannam@95 1956 int
cannam@95 1957 main ()
cannam@95 1958 {
cannam@95 1959 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cannam@95 1960 test_array [0] = 0;
cannam@95 1961 return test_array [0];
cannam@95 1962
cannam@95 1963 ;
cannam@95 1964 return 0;
cannam@95 1965 }
cannam@95 1966 _ACEOF
cannam@95 1967 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 1968 ac_lo=$ac_mid; break
cannam@95 1969 else
cannam@95 1970 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
cannam@95 1971 if test $ac_mid -le $ac_hi; then
cannam@95 1972 ac_lo= ac_hi=
cannam@95 1973 break
cannam@95 1974 fi
cannam@95 1975 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
cannam@95 1976 fi
cannam@95 1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 1978 done
cannam@95 1979 else
cannam@95 1980 ac_lo= ac_hi=
cannam@95 1981 fi
cannam@95 1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 1983 fi
cannam@95 1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 1985 # Binary search between lo and hi bounds.
cannam@95 1986 while test "x$ac_lo" != "x$ac_hi"; do
cannam@95 1987 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
cannam@95 1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 1989 /* end confdefs.h. */
cannam@95 1990 $4
cannam@95 1991 int
cannam@95 1992 main ()
cannam@95 1993 {
cannam@95 1994 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cannam@95 1995 test_array [0] = 0;
cannam@95 1996 return test_array [0];
cannam@95 1997
cannam@95 1998 ;
cannam@95 1999 return 0;
cannam@95 2000 }
cannam@95 2001 _ACEOF
cannam@95 2002 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 2003 ac_hi=$ac_mid
cannam@95 2004 else
cannam@95 2005 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
cannam@95 2006 fi
cannam@95 2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 2008 done
cannam@95 2009 case $ac_lo in #((
cannam@95 2010 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
cannam@95 2011 '') ac_retval=1 ;;
cannam@95 2012 esac
cannam@95 2013 else
cannam@95 2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 2015 /* end confdefs.h. */
cannam@95 2016 $4
cannam@95 2017 static long int longval () { return $2; }
cannam@95 2018 static unsigned long int ulongval () { return $2; }
cannam@95 2019 #include <stdio.h>
cannam@95 2020 #include <stdlib.h>
cannam@95 2021 int
cannam@95 2022 main ()
cannam@95 2023 {
cannam@95 2024
cannam@95 2025 FILE *f = fopen ("conftest.val", "w");
cannam@95 2026 if (! f)
cannam@95 2027 return 1;
cannam@95 2028 if (($2) < 0)
cannam@95 2029 {
cannam@95 2030 long int i = longval ();
cannam@95 2031 if (i != ($2))
cannam@95 2032 return 1;
cannam@95 2033 fprintf (f, "%ld", i);
cannam@95 2034 }
cannam@95 2035 else
cannam@95 2036 {
cannam@95 2037 unsigned long int i = ulongval ();
cannam@95 2038 if (i != ($2))
cannam@95 2039 return 1;
cannam@95 2040 fprintf (f, "%lu", i);
cannam@95 2041 }
cannam@95 2042 /* Do not output a trailing newline, as this causes \r\n confusion
cannam@95 2043 on some platforms. */
cannam@95 2044 return ferror (f) || fclose (f) != 0;
cannam@95 2045
cannam@95 2046 ;
cannam@95 2047 return 0;
cannam@95 2048 }
cannam@95 2049 _ACEOF
cannam@95 2050 if ac_fn_c_try_run "$LINENO"; then :
cannam@95 2051 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
cannam@95 2052 else
cannam@95 2053 ac_retval=1
cannam@95 2054 fi
cannam@95 2055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@95 2056 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@95 2057 rm -f conftest.val
cannam@95 2058
cannam@95 2059 fi
cannam@95 2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@95 2061 as_fn_set_status $ac_retval
cannam@95 2062
cannam@95 2063 } # ac_fn_c_compute_int
cannam@95 2064
cannam@95 2065 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
cannam@95 2066 # -------------------------------------------------------
cannam@95 2067 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
cannam@95 2068 # the include files in INCLUDES and setting the cache variable VAR
cannam@95 2069 # accordingly.
cannam@95 2070 ac_fn_c_check_header_mongrel ()
cannam@95 2071 {
cannam@95 2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@95 2073 if eval \${$3+:} false; then :
cannam@95 2074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@95 2075 $as_echo_n "checking for $2... " >&6; }
cannam@95 2076 if eval \${$3+:} false; then :
cannam@95 2077 $as_echo_n "(cached) " >&6
cannam@95 2078 fi
cannam@95 2079 eval ac_res=\$$3
cannam@95 2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@95 2081 $as_echo "$ac_res" >&6; }
cannam@95 2082 else
cannam@95 2083 # Is the header compilable?
cannam@95 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
cannam@95 2085 $as_echo_n "checking $2 usability... " >&6; }
cannam@95 2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 2087 /* end confdefs.h. */
cannam@95 2088 $4
cannam@95 2089 #include <$2>
cannam@95 2090 _ACEOF
cannam@95 2091 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 2092 ac_header_compiler=yes
cannam@95 2093 else
cannam@95 2094 ac_header_compiler=no
cannam@95 2095 fi
cannam@95 2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
cannam@95 2098 $as_echo "$ac_header_compiler" >&6; }
cannam@95 2099
cannam@95 2100 # Is the header present?
cannam@95 2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
cannam@95 2102 $as_echo_n "checking $2 presence... " >&6; }
cannam@95 2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 2104 /* end confdefs.h. */
cannam@95 2105 #include <$2>
cannam@95 2106 _ACEOF
cannam@95 2107 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@95 2108 ac_header_preproc=yes
cannam@95 2109 else
cannam@95 2110 ac_header_preproc=no
cannam@95 2111 fi
cannam@95 2112 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@95 2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
cannam@95 2114 $as_echo "$ac_header_preproc" >&6; }
cannam@95 2115
cannam@95 2116 # So? What about this header?
cannam@95 2117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
cannam@95 2118 yes:no: )
cannam@95 2119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
cannam@95 2120 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
cannam@95 2121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
cannam@95 2122 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cannam@95 2123 ;;
cannam@95 2124 no:yes:* )
cannam@95 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
cannam@95 2126 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
cannam@95 2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
cannam@95 2128 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
cannam@95 2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
cannam@95 2130 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
cannam@95 2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
cannam@95 2132 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
cannam@95 2133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
cannam@95 2134 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cannam@95 2135 ( $as_echo "## ---------------------------- ##
cannam@95 2136 ## Report this to fftw@fftw.org ##
cannam@95 2137 ## ---------------------------- ##"
cannam@95 2138 ) | sed "s/^/$as_me: WARNING: /" >&2
cannam@95 2139 ;;
cannam@95 2140 esac
cannam@95 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@95 2142 $as_echo_n "checking for $2... " >&6; }
cannam@95 2143 if eval \${$3+:} false; then :
cannam@95 2144 $as_echo_n "(cached) " >&6
cannam@95 2145 else
cannam@95 2146 eval "$3=\$ac_header_compiler"
cannam@95 2147 fi
cannam@95 2148 eval ac_res=\$$3
cannam@95 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@95 2150 $as_echo "$ac_res" >&6; }
cannam@95 2151 fi
cannam@95 2152 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@95 2153
cannam@95 2154 } # ac_fn_c_check_header_mongrel
cannam@95 2155
cannam@95 2156 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
cannam@95 2157 # -------------------------------------------
cannam@95 2158 # Tests whether TYPE exists after having included INCLUDES, setting cache
cannam@95 2159 # variable VAR accordingly.
cannam@95 2160 ac_fn_c_check_type ()
cannam@95 2161 {
cannam@95 2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@95 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@95 2164 $as_echo_n "checking for $2... " >&6; }
cannam@95 2165 if eval \${$3+:} false; then :
cannam@95 2166 $as_echo_n "(cached) " >&6
cannam@95 2167 else
cannam@95 2168 eval "$3=no"
cannam@95 2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 2170 /* end confdefs.h. */
cannam@95 2171 $4
cannam@95 2172 int
cannam@95 2173 main ()
cannam@95 2174 {
cannam@95 2175 if (sizeof ($2))
cannam@95 2176 return 0;
cannam@95 2177 ;
cannam@95 2178 return 0;
cannam@95 2179 }
cannam@95 2180 _ACEOF
cannam@95 2181 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 2183 /* end confdefs.h. */
cannam@95 2184 $4
cannam@95 2185 int
cannam@95 2186 main ()
cannam@95 2187 {
cannam@95 2188 if (sizeof (($2)))
cannam@95 2189 return 0;
cannam@95 2190 ;
cannam@95 2191 return 0;
cannam@95 2192 }
cannam@95 2193 _ACEOF
cannam@95 2194 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 2195
cannam@95 2196 else
cannam@95 2197 eval "$3=yes"
cannam@95 2198 fi
cannam@95 2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 2200 fi
cannam@95 2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 2202 fi
cannam@95 2203 eval ac_res=\$$3
cannam@95 2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@95 2205 $as_echo "$ac_res" >&6; }
cannam@95 2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@95 2207
cannam@95 2208 } # ac_fn_c_check_type
cannam@95 2209
cannam@95 2210 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
cannam@95 2211 # ---------------------------------------------
cannam@95 2212 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
cannam@95 2213 # accordingly.
cannam@95 2214 ac_fn_c_check_decl ()
cannam@95 2215 {
cannam@95 2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@95 2217 as_decl_name=`echo $2|sed 's/ *(.*//'`
cannam@95 2218 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
cannam@95 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
cannam@95 2220 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cannam@95 2221 if eval \${$3+:} false; then :
cannam@95 2222 $as_echo_n "(cached) " >&6
cannam@95 2223 else
cannam@95 2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 2225 /* end confdefs.h. */
cannam@95 2226 $4
cannam@95 2227 int
cannam@95 2228 main ()
cannam@95 2229 {
cannam@95 2230 #ifndef $as_decl_name
cannam@95 2231 #ifdef __cplusplus
cannam@95 2232 (void) $as_decl_use;
cannam@95 2233 #else
cannam@95 2234 (void) $as_decl_name;
cannam@95 2235 #endif
cannam@95 2236 #endif
cannam@95 2237
cannam@95 2238 ;
cannam@95 2239 return 0;
cannam@95 2240 }
cannam@95 2241 _ACEOF
cannam@95 2242 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 2243 eval "$3=yes"
cannam@95 2244 else
cannam@95 2245 eval "$3=no"
cannam@95 2246 fi
cannam@95 2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 2248 fi
cannam@95 2249 eval ac_res=\$$3
cannam@95 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@95 2251 $as_echo "$ac_res" >&6; }
cannam@95 2252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@95 2253
cannam@95 2254 } # ac_fn_c_check_decl
cannam@95 2255
cannam@95 2256 # ac_fn_f77_try_compile LINENO
cannam@95 2257 # ----------------------------
cannam@95 2258 # Try to compile conftest.$ac_ext, and return whether this succeeded.
cannam@95 2259 ac_fn_f77_try_compile ()
cannam@95 2260 {
cannam@95 2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@95 2262 rm -f conftest.$ac_objext
cannam@95 2263 if { { ac_try="$ac_compile"
cannam@95 2264 case "(($ac_try" in
cannam@95 2265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@95 2266 *) ac_try_echo=$ac_try;;
cannam@95 2267 esac
cannam@95 2268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@95 2269 $as_echo "$ac_try_echo"; } >&5
cannam@95 2270 (eval "$ac_compile") 2>conftest.err
cannam@95 2271 ac_status=$?
cannam@95 2272 if test -s conftest.err; then
cannam@95 2273 grep -v '^ *+' conftest.err >conftest.er1
cannam@95 2274 cat conftest.er1 >&5
cannam@95 2275 mv -f conftest.er1 conftest.err
cannam@95 2276 fi
cannam@95 2277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 2278 test $ac_status = 0; } && {
cannam@95 2279 test -z "$ac_f77_werror_flag" ||
cannam@95 2280 test ! -s conftest.err
cannam@95 2281 } && test -s conftest.$ac_objext; then :
cannam@95 2282 ac_retval=0
cannam@95 2283 else
cannam@95 2284 $as_echo "$as_me: failed program was:" >&5
cannam@95 2285 sed 's/^/| /' conftest.$ac_ext >&5
cannam@95 2286
cannam@95 2287 ac_retval=1
cannam@95 2288 fi
cannam@95 2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@95 2290 as_fn_set_status $ac_retval
cannam@95 2291
cannam@95 2292 } # ac_fn_f77_try_compile
cannam@95 2293
cannam@95 2294 # ac_fn_f77_try_link LINENO
cannam@95 2295 # -------------------------
cannam@95 2296 # Try to link conftest.$ac_ext, and return whether this succeeded.
cannam@95 2297 ac_fn_f77_try_link ()
cannam@95 2298 {
cannam@95 2299 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@95 2300 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@95 2301 if { { ac_try="$ac_link"
cannam@95 2302 case "(($ac_try" in
cannam@95 2303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@95 2304 *) ac_try_echo=$ac_try;;
cannam@95 2305 esac
cannam@95 2306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@95 2307 $as_echo "$ac_try_echo"; } >&5
cannam@95 2308 (eval "$ac_link") 2>conftest.err
cannam@95 2309 ac_status=$?
cannam@95 2310 if test -s conftest.err; then
cannam@95 2311 grep -v '^ *+' conftest.err >conftest.er1
cannam@95 2312 cat conftest.er1 >&5
cannam@95 2313 mv -f conftest.er1 conftest.err
cannam@95 2314 fi
cannam@95 2315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 2316 test $ac_status = 0; } && {
cannam@95 2317 test -z "$ac_f77_werror_flag" ||
cannam@95 2318 test ! -s conftest.err
cannam@95 2319 } && test -s conftest$ac_exeext && {
cannam@95 2320 test "$cross_compiling" = yes ||
cannam@95 2321 test -x conftest$ac_exeext
cannam@95 2322 }; then :
cannam@95 2323 ac_retval=0
cannam@95 2324 else
cannam@95 2325 $as_echo "$as_me: failed program was:" >&5
cannam@95 2326 sed 's/^/| /' conftest.$ac_ext >&5
cannam@95 2327
cannam@95 2328 ac_retval=1
cannam@95 2329 fi
cannam@95 2330 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
cannam@95 2331 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
cannam@95 2332 # interfere with the next link command; also delete a directory that is
cannam@95 2333 # left behind by Apple's compiler. We do this before executing the actions.
cannam@95 2334 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cannam@95 2335 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@95 2336 as_fn_set_status $ac_retval
cannam@95 2337
cannam@95 2338 } # ac_fn_f77_try_link
cannam@95 2339 cat >config.log <<_ACEOF
cannam@95 2340 This file contains any messages produced by compilers while
cannam@95 2341 running configure, to aid debugging if configure makes a mistake.
cannam@95 2342
cannam@95 2343 It was created by fftw $as_me 3.3.3, which was
cannam@95 2344 generated by GNU Autoconf 2.69. Invocation command line was
cannam@95 2345
cannam@95 2346 $ $0 $@
cannam@95 2347
cannam@95 2348 _ACEOF
cannam@95 2349 exec 5>>config.log
cannam@95 2350 {
cannam@95 2351 cat <<_ASUNAME
cannam@95 2352 ## --------- ##
cannam@95 2353 ## Platform. ##
cannam@95 2354 ## --------- ##
cannam@95 2355
cannam@95 2356 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@95 2357 uname -m = `(uname -m) 2>/dev/null || echo unknown`
cannam@95 2358 uname -r = `(uname -r) 2>/dev/null || echo unknown`
cannam@95 2359 uname -s = `(uname -s) 2>/dev/null || echo unknown`
cannam@95 2360 uname -v = `(uname -v) 2>/dev/null || echo unknown`
cannam@95 2361
cannam@95 2362 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
cannam@95 2363 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
cannam@95 2364
cannam@95 2365 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
cannam@95 2366 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
cannam@95 2367 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
cannam@95 2368 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
cannam@95 2369 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
cannam@95 2370 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
cannam@95 2371 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
cannam@95 2372
cannam@95 2373 _ASUNAME
cannam@95 2374
cannam@95 2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 2376 for as_dir in $PATH
cannam@95 2377 do
cannam@95 2378 IFS=$as_save_IFS
cannam@95 2379 test -z "$as_dir" && as_dir=.
cannam@95 2380 $as_echo "PATH: $as_dir"
cannam@95 2381 done
cannam@95 2382 IFS=$as_save_IFS
cannam@95 2383
cannam@95 2384 } >&5
cannam@95 2385
cannam@95 2386 cat >&5 <<_ACEOF
cannam@95 2387
cannam@95 2388
cannam@95 2389 ## ----------- ##
cannam@95 2390 ## Core tests. ##
cannam@95 2391 ## ----------- ##
cannam@95 2392
cannam@95 2393 _ACEOF
cannam@95 2394
cannam@95 2395
cannam@95 2396 # Keep a trace of the command line.
cannam@95 2397 # Strip out --no-create and --no-recursion so they do not pile up.
cannam@95 2398 # Strip out --silent because we don't want to record it for future runs.
cannam@95 2399 # Also quote any args containing shell meta-characters.
cannam@95 2400 # Make two passes to allow for proper duplicate-argument suppression.
cannam@95 2401 ac_configure_args=
cannam@95 2402 ac_configure_args0=
cannam@95 2403 ac_configure_args1=
cannam@95 2404 ac_must_keep_next=false
cannam@95 2405 for ac_pass in 1 2
cannam@95 2406 do
cannam@95 2407 for ac_arg
cannam@95 2408 do
cannam@95 2409 case $ac_arg in
cannam@95 2410 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
cannam@95 2411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@95 2412 | -silent | --silent | --silen | --sile | --sil)
cannam@95 2413 continue ;;
cannam@95 2414 *\'*)
cannam@95 2415 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@95 2416 esac
cannam@95 2417 case $ac_pass in
cannam@95 2418 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cannam@95 2419 2)
cannam@95 2420 as_fn_append ac_configure_args1 " '$ac_arg'"
cannam@95 2421 if test $ac_must_keep_next = true; then
cannam@95 2422 ac_must_keep_next=false # Got value, back to normal.
cannam@95 2423 else
cannam@95 2424 case $ac_arg in
cannam@95 2425 *=* | --config-cache | -C | -disable-* | --disable-* \
cannam@95 2426 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
cannam@95 2427 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
cannam@95 2428 | -with-* | --with-* | -without-* | --without-* | --x)
cannam@95 2429 case "$ac_configure_args0 " in
cannam@95 2430 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
cannam@95 2431 esac
cannam@95 2432 ;;
cannam@95 2433 -* ) ac_must_keep_next=true ;;
cannam@95 2434 esac
cannam@95 2435 fi
cannam@95 2436 as_fn_append ac_configure_args " '$ac_arg'"
cannam@95 2437 ;;
cannam@95 2438 esac
cannam@95 2439 done
cannam@95 2440 done
cannam@95 2441 { ac_configure_args0=; unset ac_configure_args0;}
cannam@95 2442 { ac_configure_args1=; unset ac_configure_args1;}
cannam@95 2443
cannam@95 2444 # When interrupted or exit'd, cleanup temporary files, and complete
cannam@95 2445 # config.log. We remove comments because anyway the quotes in there
cannam@95 2446 # would cause problems or look ugly.
cannam@95 2447 # WARNING: Use '\'' to represent an apostrophe within the trap.
cannam@95 2448 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
cannam@95 2449 trap 'exit_status=$?
cannam@95 2450 # Save into config.log some information that might help in debugging.
cannam@95 2451 {
cannam@95 2452 echo
cannam@95 2453
cannam@95 2454 $as_echo "## ---------------- ##
cannam@95 2455 ## Cache variables. ##
cannam@95 2456 ## ---------------- ##"
cannam@95 2457 echo
cannam@95 2458 # The following way of writing the cache mishandles newlines in values,
cannam@95 2459 (
cannam@95 2460 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
cannam@95 2461 eval ac_val=\$$ac_var
cannam@95 2462 case $ac_val in #(
cannam@95 2463 *${as_nl}*)
cannam@95 2464 case $ac_var in #(
cannam@95 2465 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cannam@95 2466 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
cannam@95 2467 esac
cannam@95 2468 case $ac_var in #(
cannam@95 2469 _ | IFS | as_nl) ;; #(
cannam@95 2470 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cannam@95 2471 *) { eval $ac_var=; unset $ac_var;} ;;
cannam@95 2472 esac ;;
cannam@95 2473 esac
cannam@95 2474 done
cannam@95 2475 (set) 2>&1 |
cannam@95 2476 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
cannam@95 2477 *${as_nl}ac_space=\ *)
cannam@95 2478 sed -n \
cannam@95 2479 "s/'\''/'\''\\\\'\'''\''/g;
cannam@95 2480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
cannam@95 2481 ;; #(
cannam@95 2482 *)
cannam@95 2483 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
cannam@95 2484 ;;
cannam@95 2485 esac |
cannam@95 2486 sort
cannam@95 2487 )
cannam@95 2488 echo
cannam@95 2489
cannam@95 2490 $as_echo "## ----------------- ##
cannam@95 2491 ## Output variables. ##
cannam@95 2492 ## ----------------- ##"
cannam@95 2493 echo
cannam@95 2494 for ac_var in $ac_subst_vars
cannam@95 2495 do
cannam@95 2496 eval ac_val=\$$ac_var
cannam@95 2497 case $ac_val in
cannam@95 2498 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
cannam@95 2499 esac
cannam@95 2500 $as_echo "$ac_var='\''$ac_val'\''"
cannam@95 2501 done | sort
cannam@95 2502 echo
cannam@95 2503
cannam@95 2504 if test -n "$ac_subst_files"; then
cannam@95 2505 $as_echo "## ------------------- ##
cannam@95 2506 ## File substitutions. ##
cannam@95 2507 ## ------------------- ##"
cannam@95 2508 echo
cannam@95 2509 for ac_var in $ac_subst_files
cannam@95 2510 do
cannam@95 2511 eval ac_val=\$$ac_var
cannam@95 2512 case $ac_val in
cannam@95 2513 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
cannam@95 2514 esac
cannam@95 2515 $as_echo "$ac_var='\''$ac_val'\''"
cannam@95 2516 done | sort
cannam@95 2517 echo
cannam@95 2518 fi
cannam@95 2519
cannam@95 2520 if test -s confdefs.h; then
cannam@95 2521 $as_echo "## ----------- ##
cannam@95 2522 ## confdefs.h. ##
cannam@95 2523 ## ----------- ##"
cannam@95 2524 echo
cannam@95 2525 cat confdefs.h
cannam@95 2526 echo
cannam@95 2527 fi
cannam@95 2528 test "$ac_signal" != 0 &&
cannam@95 2529 $as_echo "$as_me: caught signal $ac_signal"
cannam@95 2530 $as_echo "$as_me: exit $exit_status"
cannam@95 2531 } >&5
cannam@95 2532 rm -f core *.core core.conftest.* &&
cannam@95 2533 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
cannam@95 2534 exit $exit_status
cannam@95 2535 ' 0
cannam@95 2536 for ac_signal in 1 2 13 15; do
cannam@95 2537 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cannam@95 2538 done
cannam@95 2539 ac_signal=0
cannam@95 2540
cannam@95 2541 # confdefs.h avoids OS command line length limits that DEFS can exceed.
cannam@95 2542 rm -f -r conftest* confdefs.h
cannam@95 2543
cannam@95 2544 $as_echo "/* confdefs.h */" > confdefs.h
cannam@95 2545
cannam@95 2546 # Predefined preprocessor variables.
cannam@95 2547
cannam@95 2548 cat >>confdefs.h <<_ACEOF
cannam@95 2549 #define PACKAGE_NAME "$PACKAGE_NAME"
cannam@95 2550 _ACEOF
cannam@95 2551
cannam@95 2552 cat >>confdefs.h <<_ACEOF
cannam@95 2553 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
cannam@95 2554 _ACEOF
cannam@95 2555
cannam@95 2556 cat >>confdefs.h <<_ACEOF
cannam@95 2557 #define PACKAGE_VERSION "$PACKAGE_VERSION"
cannam@95 2558 _ACEOF
cannam@95 2559
cannam@95 2560 cat >>confdefs.h <<_ACEOF
cannam@95 2561 #define PACKAGE_STRING "$PACKAGE_STRING"
cannam@95 2562 _ACEOF
cannam@95 2563
cannam@95 2564 cat >>confdefs.h <<_ACEOF
cannam@95 2565 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
cannam@95 2566 _ACEOF
cannam@95 2567
cannam@95 2568 cat >>confdefs.h <<_ACEOF
cannam@95 2569 #define PACKAGE_URL "$PACKAGE_URL"
cannam@95 2570 _ACEOF
cannam@95 2571
cannam@95 2572
cannam@95 2573 # Let the site file select an alternate cache file if it wants to.
cannam@95 2574 # Prefer an explicitly selected file to automatically selected ones.
cannam@95 2575 ac_site_file1=NONE
cannam@95 2576 ac_site_file2=NONE
cannam@95 2577 if test -n "$CONFIG_SITE"; then
cannam@95 2578 # We do not want a PATH search for config.site.
cannam@95 2579 case $CONFIG_SITE in #((
cannam@95 2580 -*) ac_site_file1=./$CONFIG_SITE;;
cannam@95 2581 */*) ac_site_file1=$CONFIG_SITE;;
cannam@95 2582 *) ac_site_file1=./$CONFIG_SITE;;
cannam@95 2583 esac
cannam@95 2584 elif test "x$prefix" != xNONE; then
cannam@95 2585 ac_site_file1=$prefix/share/config.site
cannam@95 2586 ac_site_file2=$prefix/etc/config.site
cannam@95 2587 else
cannam@95 2588 ac_site_file1=$ac_default_prefix/share/config.site
cannam@95 2589 ac_site_file2=$ac_default_prefix/etc/config.site
cannam@95 2590 fi
cannam@95 2591 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
cannam@95 2592 do
cannam@95 2593 test "x$ac_site_file" = xNONE && continue
cannam@95 2594 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cannam@95 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cannam@95 2596 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
cannam@95 2597 sed 's/^/| /' "$ac_site_file" >&5
cannam@95 2598 . "$ac_site_file" \
cannam@95 2599 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@95 2600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@95 2601 as_fn_error $? "failed to load site script $ac_site_file
cannam@95 2602 See \`config.log' for more details" "$LINENO" 5; }
cannam@95 2603 fi
cannam@95 2604 done
cannam@95 2605
cannam@95 2606 if test -r "$cache_file"; then
cannam@95 2607 # Some versions of bash will fail to source /dev/null (special files
cannam@95 2608 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
cannam@95 2609 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cannam@95 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cannam@95 2611 $as_echo "$as_me: loading cache $cache_file" >&6;}
cannam@95 2612 case $cache_file in
cannam@95 2613 [\\/]* | ?:[\\/]* ) . "$cache_file";;
cannam@95 2614 *) . "./$cache_file";;
cannam@95 2615 esac
cannam@95 2616 fi
cannam@95 2617 else
cannam@95 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cannam@95 2619 $as_echo "$as_me: creating cache $cache_file" >&6;}
cannam@95 2620 >$cache_file
cannam@95 2621 fi
cannam@95 2622
cannam@95 2623 # Check that the precious variables saved in the cache have kept the same
cannam@95 2624 # value.
cannam@95 2625 ac_cache_corrupted=false
cannam@95 2626 for ac_var in $ac_precious_vars; do
cannam@95 2627 eval ac_old_set=\$ac_cv_env_${ac_var}_set
cannam@95 2628 eval ac_new_set=\$ac_env_${ac_var}_set
cannam@95 2629 eval ac_old_val=\$ac_cv_env_${ac_var}_value
cannam@95 2630 eval ac_new_val=\$ac_env_${ac_var}_value
cannam@95 2631 case $ac_old_set,$ac_new_set in
cannam@95 2632 set,)
cannam@95 2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cannam@95 2634 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
cannam@95 2635 ac_cache_corrupted=: ;;
cannam@95 2636 ,set)
cannam@95 2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cannam@95 2638 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
cannam@95 2639 ac_cache_corrupted=: ;;
cannam@95 2640 ,);;
cannam@95 2641 *)
cannam@95 2642 if test "x$ac_old_val" != "x$ac_new_val"; then
cannam@95 2643 # differences in whitespace do not lead to failure.
cannam@95 2644 ac_old_val_w=`echo x $ac_old_val`
cannam@95 2645 ac_new_val_w=`echo x $ac_new_val`
cannam@95 2646 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cannam@95 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cannam@95 2648 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
cannam@95 2649 ac_cache_corrupted=:
cannam@95 2650 else
cannam@95 2651 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
cannam@95 2652 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
cannam@95 2653 eval $ac_var=\$ac_old_val
cannam@95 2654 fi
cannam@95 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cannam@95 2656 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cannam@95 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cannam@95 2658 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
cannam@95 2659 fi;;
cannam@95 2660 esac
cannam@95 2661 # Pass precious variables to config.status.
cannam@95 2662 if test "$ac_new_set" = set; then
cannam@95 2663 case $ac_new_val in
cannam@95 2664 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@95 2665 *) ac_arg=$ac_var=$ac_new_val ;;
cannam@95 2666 esac
cannam@95 2667 case " $ac_configure_args " in
cannam@95 2668 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cannam@95 2669 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cannam@95 2670 esac
cannam@95 2671 fi
cannam@95 2672 done
cannam@95 2673 if $ac_cache_corrupted; then
cannam@95 2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@95 2675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@95 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cannam@95 2677 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cannam@95 2678 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cannam@95 2679 fi
cannam@95 2680 ## -------------------- ##
cannam@95 2681 ## Main body of script. ##
cannam@95 2682 ## -------------------- ##
cannam@95 2683
cannam@95 2684 ac_ext=c
cannam@95 2685 ac_cpp='$CPP $CPPFLAGS'
cannam@95 2686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@95 2687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 2688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@95 2689
cannam@95 2690
cannam@95 2691
cannam@95 2692 # fftw-3.1.x was 4:X:1
cannam@95 2693 # fftw-3.2.x was 5:X:2
cannam@95 2694 # fftw-3.3.x was 6:X:3
cannam@95 2695 SHARED_VERSION_INFO="6:2:3" # CURRENT:REVISION:AGE
cannam@95 2696
cannam@95 2697 am__api_version='1.11'
cannam@95 2698
cannam@95 2699 ac_aux_dir=
cannam@95 2700 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
cannam@95 2701 if test -f "$ac_dir/install-sh"; then
cannam@95 2702 ac_aux_dir=$ac_dir
cannam@95 2703 ac_install_sh="$ac_aux_dir/install-sh -c"
cannam@95 2704 break
cannam@95 2705 elif test -f "$ac_dir/install.sh"; then
cannam@95 2706 ac_aux_dir=$ac_dir
cannam@95 2707 ac_install_sh="$ac_aux_dir/install.sh -c"
cannam@95 2708 break
cannam@95 2709 elif test -f "$ac_dir/shtool"; then
cannam@95 2710 ac_aux_dir=$ac_dir
cannam@95 2711 ac_install_sh="$ac_aux_dir/shtool install -c"
cannam@95 2712 break
cannam@95 2713 fi
cannam@95 2714 done
cannam@95 2715 if test -z "$ac_aux_dir"; then
cannam@95 2716 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
cannam@95 2717 fi
cannam@95 2718
cannam@95 2719 # These three variables are undocumented and unsupported,
cannam@95 2720 # and are intended to be withdrawn in a future Autoconf release.
cannam@95 2721 # They can cause serious problems if a builder's source tree is in a directory
cannam@95 2722 # whose full name contains unusual characters.
cannam@95 2723 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
cannam@95 2724 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
cannam@95 2725 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
cannam@95 2726
cannam@95 2727
cannam@95 2728 # Find a good install program. We prefer a C program (faster),
cannam@95 2729 # so one script is as good as another. But avoid the broken or
cannam@95 2730 # incompatible versions:
cannam@95 2731 # SysV /etc/install, /usr/sbin/install
cannam@95 2732 # SunOS /usr/etc/install
cannam@95 2733 # IRIX /sbin/install
cannam@95 2734 # AIX /bin/install
cannam@95 2735 # AmigaOS /C/install, which installs bootblocks on floppy discs
cannam@95 2736 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
cannam@95 2737 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
cannam@95 2738 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
cannam@95 2739 # OS/2's system install, which has a completely different semantic
cannam@95 2740 # ./install, which can be erroneously created by make from ./install.sh.
cannam@95 2741 # Reject install programs that cannot install multiple files.
cannam@95 2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cannam@95 2743 $as_echo_n "checking for a BSD-compatible install... " >&6; }
cannam@95 2744 if test -z "$INSTALL"; then
cannam@95 2745 if ${ac_cv_path_install+:} false; then :
cannam@95 2746 $as_echo_n "(cached) " >&6
cannam@95 2747 else
cannam@95 2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 2749 for as_dir in $PATH
cannam@95 2750 do
cannam@95 2751 IFS=$as_save_IFS
cannam@95 2752 test -z "$as_dir" && as_dir=.
cannam@95 2753 # Account for people who put trailing slashes in PATH elements.
cannam@95 2754 case $as_dir/ in #((
cannam@95 2755 ./ | .// | /[cC]/* | \
cannam@95 2756 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cannam@95 2757 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cannam@95 2758 /usr/ucb/* ) ;;
cannam@95 2759 *)
cannam@95 2760 # OSF1 and SCO ODT 3.0 have their own names for install.
cannam@95 2761 # Don't use installbsd from OSF since it installs stuff as root
cannam@95 2762 # by default.
cannam@95 2763 for ac_prog in ginstall scoinst install; do
cannam@95 2764 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 2765 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cannam@95 2766 if test $ac_prog = install &&
cannam@95 2767 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
cannam@95 2768 # AIX install. It has an incompatible calling convention.
cannam@95 2769 :
cannam@95 2770 elif test $ac_prog = install &&
cannam@95 2771 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
cannam@95 2772 # program-specific install script used by HP pwplus--don't use.
cannam@95 2773 :
cannam@95 2774 else
cannam@95 2775 rm -rf conftest.one conftest.two conftest.dir
cannam@95 2776 echo one > conftest.one
cannam@95 2777 echo two > conftest.two
cannam@95 2778 mkdir conftest.dir
cannam@95 2779 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
cannam@95 2780 test -s conftest.one && test -s conftest.two &&
cannam@95 2781 test -s conftest.dir/conftest.one &&
cannam@95 2782 test -s conftest.dir/conftest.two
cannam@95 2783 then
cannam@95 2784 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
cannam@95 2785 break 3
cannam@95 2786 fi
cannam@95 2787 fi
cannam@95 2788 fi
cannam@95 2789 done
cannam@95 2790 done
cannam@95 2791 ;;
cannam@95 2792 esac
cannam@95 2793
cannam@95 2794 done
cannam@95 2795 IFS=$as_save_IFS
cannam@95 2796
cannam@95 2797 rm -rf conftest.one conftest.two conftest.dir
cannam@95 2798
cannam@95 2799 fi
cannam@95 2800 if test "${ac_cv_path_install+set}" = set; then
cannam@95 2801 INSTALL=$ac_cv_path_install
cannam@95 2802 else
cannam@95 2803 # As a last resort, use the slow shell script. Don't cache a
cannam@95 2804 # value for INSTALL within a source directory, because that will
cannam@95 2805 # break other packages using the cache if that directory is
cannam@95 2806 # removed, or if the value is a relative name.
cannam@95 2807 INSTALL=$ac_install_sh
cannam@95 2808 fi
cannam@95 2809 fi
cannam@95 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cannam@95 2811 $as_echo "$INSTALL" >&6; }
cannam@95 2812
cannam@95 2813 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
cannam@95 2814 # It thinks the first close brace ends the variable substitution.
cannam@95 2815 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
cannam@95 2816
cannam@95 2817 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
cannam@95 2818
cannam@95 2819 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
cannam@95 2820
cannam@95 2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cannam@95 2822 $as_echo_n "checking whether build environment is sane... " >&6; }
cannam@95 2823 # Just in case
cannam@95 2824 sleep 1
cannam@95 2825 echo timestamp > conftest.file
cannam@95 2826 # Reject unsafe characters in $srcdir or the absolute working directory
cannam@95 2827 # name. Accept space and tab only in the latter.
cannam@95 2828 am_lf='
cannam@95 2829 '
cannam@95 2830 case `pwd` in
cannam@95 2831 *[\\\"\#\$\&\'\`$am_lf]*)
cannam@95 2832 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cannam@95 2833 esac
cannam@95 2834 case $srcdir in
cannam@95 2835 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cannam@95 2836 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cannam@95 2837 esac
cannam@95 2838
cannam@95 2839 # Do `set' in a subshell so we don't clobber the current shell's
cannam@95 2840 # arguments. Must try -L first in case configure is actually a
cannam@95 2841 # symlink; some systems play weird games with the mod time of symlinks
cannam@95 2842 # (eg FreeBSD returns the mod time of the symlink's containing
cannam@95 2843 # directory).
cannam@95 2844 if (
cannam@95 2845 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
cannam@95 2846 if test "$*" = "X"; then
cannam@95 2847 # -L didn't work.
cannam@95 2848 set X `ls -t "$srcdir/configure" conftest.file`
cannam@95 2849 fi
cannam@95 2850 rm -f conftest.file
cannam@95 2851 if test "$*" != "X $srcdir/configure conftest.file" \
cannam@95 2852 && test "$*" != "X conftest.file $srcdir/configure"; then
cannam@95 2853
cannam@95 2854 # If neither matched, then we have a broken ls. This can happen
cannam@95 2855 # if, for instance, CONFIG_SHELL is bash and it inherits a
cannam@95 2856 # broken ls alias from the environment. This has actually
cannam@95 2857 # happened. Such a system could not be considered "sane".
cannam@95 2858 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cannam@95 2859 alias in your environment" "$LINENO" 5
cannam@95 2860 fi
cannam@95 2861
cannam@95 2862 test "$2" = conftest.file
cannam@95 2863 )
cannam@95 2864 then
cannam@95 2865 # Ok.
cannam@95 2866 :
cannam@95 2867 else
cannam@95 2868 as_fn_error $? "newly created file is older than distributed files!
cannam@95 2869 Check your system clock" "$LINENO" 5
cannam@95 2870 fi
cannam@95 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@95 2872 $as_echo "yes" >&6; }
cannam@95 2873 test "$program_prefix" != NONE &&
cannam@95 2874 program_transform_name="s&^&$program_prefix&;$program_transform_name"
cannam@95 2875 # Use a double $ so make ignores it.
cannam@95 2876 test "$program_suffix" != NONE &&
cannam@95 2877 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
cannam@95 2878 # Double any \ or $.
cannam@95 2879 # By default was `s,x,x', remove it if useless.
cannam@95 2880 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
cannam@95 2881 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cannam@95 2882
cannam@95 2883 # expand $ac_aux_dir to an absolute path
cannam@95 2884 am_aux_dir=`cd $ac_aux_dir && pwd`
cannam@95 2885
cannam@95 2886 if test x"${MISSING+set}" != xset; then
cannam@95 2887 case $am_aux_dir in
cannam@95 2888 *\ * | *\ *)
cannam@95 2889 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
cannam@95 2890 *)
cannam@95 2891 MISSING="\${SHELL} $am_aux_dir/missing" ;;
cannam@95 2892 esac
cannam@95 2893 fi
cannam@95 2894 # Use eval to expand $SHELL
cannam@95 2895 if eval "$MISSING --run true"; then
cannam@95 2896 am_missing_run="$MISSING --run "
cannam@95 2897 else
cannam@95 2898 am_missing_run=
cannam@95 2899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cannam@95 2900 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
cannam@95 2901 fi
cannam@95 2902
cannam@95 2903 if test x"${install_sh}" != xset; then
cannam@95 2904 case $am_aux_dir in
cannam@95 2905 *\ * | *\ *)
cannam@95 2906 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
cannam@95 2907 *)
cannam@95 2908 install_sh="\${SHELL} $am_aux_dir/install-sh"
cannam@95 2909 esac
cannam@95 2910 fi
cannam@95 2911
cannam@95 2912 # Installed binaries are usually stripped using `strip' when the user
cannam@95 2913 # run `make install-strip'. However `strip' might not be the right
cannam@95 2914 # tool to use in cross-compilation environments, therefore Automake
cannam@95 2915 # will honor the `STRIP' environment variable to overrule this program.
cannam@95 2916 if test "$cross_compiling" != no; then
cannam@95 2917 if test -n "$ac_tool_prefix"; then
cannam@95 2918 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
cannam@95 2919 set dummy ${ac_tool_prefix}strip; ac_word=$2
cannam@95 2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 2921 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 2922 if ${ac_cv_prog_STRIP+:} false; then :
cannam@95 2923 $as_echo_n "(cached) " >&6
cannam@95 2924 else
cannam@95 2925 if test -n "$STRIP"; then
cannam@95 2926 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
cannam@95 2927 else
cannam@95 2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 2929 for as_dir in $PATH
cannam@95 2930 do
cannam@95 2931 IFS=$as_save_IFS
cannam@95 2932 test -z "$as_dir" && as_dir=.
cannam@95 2933 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 2934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 2935 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cannam@95 2936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 2937 break 2
cannam@95 2938 fi
cannam@95 2939 done
cannam@95 2940 done
cannam@95 2941 IFS=$as_save_IFS
cannam@95 2942
cannam@95 2943 fi
cannam@95 2944 fi
cannam@95 2945 STRIP=$ac_cv_prog_STRIP
cannam@95 2946 if test -n "$STRIP"; then
cannam@95 2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cannam@95 2948 $as_echo "$STRIP" >&6; }
cannam@95 2949 else
cannam@95 2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 2951 $as_echo "no" >&6; }
cannam@95 2952 fi
cannam@95 2953
cannam@95 2954
cannam@95 2955 fi
cannam@95 2956 if test -z "$ac_cv_prog_STRIP"; then
cannam@95 2957 ac_ct_STRIP=$STRIP
cannam@95 2958 # Extract the first word of "strip", so it can be a program name with args.
cannam@95 2959 set dummy strip; ac_word=$2
cannam@95 2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 2961 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 2962 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cannam@95 2963 $as_echo_n "(cached) " >&6
cannam@95 2964 else
cannam@95 2965 if test -n "$ac_ct_STRIP"; then
cannam@95 2966 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
cannam@95 2967 else
cannam@95 2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 2969 for as_dir in $PATH
cannam@95 2970 do
cannam@95 2971 IFS=$as_save_IFS
cannam@95 2972 test -z "$as_dir" && as_dir=.
cannam@95 2973 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 2974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 2975 ac_cv_prog_ac_ct_STRIP="strip"
cannam@95 2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 2977 break 2
cannam@95 2978 fi
cannam@95 2979 done
cannam@95 2980 done
cannam@95 2981 IFS=$as_save_IFS
cannam@95 2982
cannam@95 2983 fi
cannam@95 2984 fi
cannam@95 2985 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
cannam@95 2986 if test -n "$ac_ct_STRIP"; then
cannam@95 2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cannam@95 2988 $as_echo "$ac_ct_STRIP" >&6; }
cannam@95 2989 else
cannam@95 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 2991 $as_echo "no" >&6; }
cannam@95 2992 fi
cannam@95 2993
cannam@95 2994 if test "x$ac_ct_STRIP" = x; then
cannam@95 2995 STRIP=":"
cannam@95 2996 else
cannam@95 2997 case $cross_compiling:$ac_tool_warned in
cannam@95 2998 yes:)
cannam@95 2999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@95 3000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@95 3001 ac_tool_warned=yes ;;
cannam@95 3002 esac
cannam@95 3003 STRIP=$ac_ct_STRIP
cannam@95 3004 fi
cannam@95 3005 else
cannam@95 3006 STRIP="$ac_cv_prog_STRIP"
cannam@95 3007 fi
cannam@95 3008
cannam@95 3009 fi
cannam@95 3010 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
cannam@95 3011
cannam@95 3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cannam@95 3013 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
cannam@95 3014 if test -z "$MKDIR_P"; then
cannam@95 3015 if ${ac_cv_path_mkdir+:} false; then :
cannam@95 3016 $as_echo_n "(cached) " >&6
cannam@95 3017 else
cannam@95 3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 3019 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
cannam@95 3020 do
cannam@95 3021 IFS=$as_save_IFS
cannam@95 3022 test -z "$as_dir" && as_dir=.
cannam@95 3023 for ac_prog in mkdir gmkdir; do
cannam@95 3024 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 3025 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cannam@95 3026 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
cannam@95 3027 'mkdir (GNU coreutils) '* | \
cannam@95 3028 'mkdir (coreutils) '* | \
cannam@95 3029 'mkdir (fileutils) '4.1*)
cannam@95 3030 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
cannam@95 3031 break 3;;
cannam@95 3032 esac
cannam@95 3033 done
cannam@95 3034 done
cannam@95 3035 done
cannam@95 3036 IFS=$as_save_IFS
cannam@95 3037
cannam@95 3038 fi
cannam@95 3039
cannam@95 3040 test -d ./--version && rmdir ./--version
cannam@95 3041 if test "${ac_cv_path_mkdir+set}" = set; then
cannam@95 3042 MKDIR_P="$ac_cv_path_mkdir -p"
cannam@95 3043 else
cannam@95 3044 # As a last resort, use the slow shell script. Don't cache a
cannam@95 3045 # value for MKDIR_P within a source directory, because that will
cannam@95 3046 # break other packages using the cache if that directory is
cannam@95 3047 # removed, or if the value is a relative name.
cannam@95 3048 MKDIR_P="$ac_install_sh -d"
cannam@95 3049 fi
cannam@95 3050 fi
cannam@95 3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cannam@95 3052 $as_echo "$MKDIR_P" >&6; }
cannam@95 3053
cannam@95 3054 mkdir_p="$MKDIR_P"
cannam@95 3055 case $mkdir_p in
cannam@95 3056 [\\/$]* | ?:[\\/]*) ;;
cannam@95 3057 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
cannam@95 3058 esac
cannam@95 3059
cannam@95 3060 for ac_prog in gawk mawk nawk awk
cannam@95 3061 do
cannam@95 3062 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@95 3063 set dummy $ac_prog; ac_word=$2
cannam@95 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 3065 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 3066 if ${ac_cv_prog_AWK+:} false; then :
cannam@95 3067 $as_echo_n "(cached) " >&6
cannam@95 3068 else
cannam@95 3069 if test -n "$AWK"; then
cannam@95 3070 ac_cv_prog_AWK="$AWK" # Let the user override the test.
cannam@95 3071 else
cannam@95 3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 3073 for as_dir in $PATH
cannam@95 3074 do
cannam@95 3075 IFS=$as_save_IFS
cannam@95 3076 test -z "$as_dir" && as_dir=.
cannam@95 3077 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 3078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 3079 ac_cv_prog_AWK="$ac_prog"
cannam@95 3080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 3081 break 2
cannam@95 3082 fi
cannam@95 3083 done
cannam@95 3084 done
cannam@95 3085 IFS=$as_save_IFS
cannam@95 3086
cannam@95 3087 fi
cannam@95 3088 fi
cannam@95 3089 AWK=$ac_cv_prog_AWK
cannam@95 3090 if test -n "$AWK"; then
cannam@95 3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cannam@95 3092 $as_echo "$AWK" >&6; }
cannam@95 3093 else
cannam@95 3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 3095 $as_echo "no" >&6; }
cannam@95 3096 fi
cannam@95 3097
cannam@95 3098
cannam@95 3099 test -n "$AWK" && break
cannam@95 3100 done
cannam@95 3101
cannam@95 3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cannam@95 3103 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
cannam@95 3104 set x ${MAKE-make}
cannam@95 3105 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cannam@95 3106 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cannam@95 3107 $as_echo_n "(cached) " >&6
cannam@95 3108 else
cannam@95 3109 cat >conftest.make <<\_ACEOF
cannam@95 3110 SHELL = /bin/sh
cannam@95 3111 all:
cannam@95 3112 @echo '@@@%%%=$(MAKE)=@@@%%%'
cannam@95 3113 _ACEOF
cannam@95 3114 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cannam@95 3115 case `${MAKE-make} -f conftest.make 2>/dev/null` in
cannam@95 3116 *@@@%%%=?*=@@@%%%*)
cannam@95 3117 eval ac_cv_prog_make_${ac_make}_set=yes;;
cannam@95 3118 *)
cannam@95 3119 eval ac_cv_prog_make_${ac_make}_set=no;;
cannam@95 3120 esac
cannam@95 3121 rm -f conftest.make
cannam@95 3122 fi
cannam@95 3123 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cannam@95 3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@95 3125 $as_echo "yes" >&6; }
cannam@95 3126 SET_MAKE=
cannam@95 3127 else
cannam@95 3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 3129 $as_echo "no" >&6; }
cannam@95 3130 SET_MAKE="MAKE=${MAKE-make}"
cannam@95 3131 fi
cannam@95 3132
cannam@95 3133 rm -rf .tst 2>/dev/null
cannam@95 3134 mkdir .tst 2>/dev/null
cannam@95 3135 if test -d .tst; then
cannam@95 3136 am__leading_dot=.
cannam@95 3137 else
cannam@95 3138 am__leading_dot=_
cannam@95 3139 fi
cannam@95 3140 rmdir .tst 2>/dev/null
cannam@95 3141
cannam@95 3142 if test "`cd $srcdir && pwd`" != "`pwd`"; then
cannam@95 3143 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
cannam@95 3144 # is not polluted with repeated "-I."
cannam@95 3145 am__isrc=' -I$(srcdir)'
cannam@95 3146 # test to see if srcdir already configured
cannam@95 3147 if test -f $srcdir/config.status; then
cannam@95 3148 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cannam@95 3149 fi
cannam@95 3150 fi
cannam@95 3151
cannam@95 3152 # test whether we have cygpath
cannam@95 3153 if test -z "$CYGPATH_W"; then
cannam@95 3154 if (cygpath --version) >/dev/null 2>/dev/null; then
cannam@95 3155 CYGPATH_W='cygpath -w'
cannam@95 3156 else
cannam@95 3157 CYGPATH_W=echo
cannam@95 3158 fi
cannam@95 3159 fi
cannam@95 3160
cannam@95 3161
cannam@95 3162 # Define the identity of the package.
cannam@95 3163 PACKAGE='fftw'
cannam@95 3164 VERSION='3.3.3'
cannam@95 3165
cannam@95 3166
cannam@95 3167 cat >>confdefs.h <<_ACEOF
cannam@95 3168 #define PACKAGE "$PACKAGE"
cannam@95 3169 _ACEOF
cannam@95 3170
cannam@95 3171
cannam@95 3172 cat >>confdefs.h <<_ACEOF
cannam@95 3173 #define VERSION "$VERSION"
cannam@95 3174 _ACEOF
cannam@95 3175
cannam@95 3176 # Some tools Automake needs.
cannam@95 3177
cannam@95 3178 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
cannam@95 3179
cannam@95 3180
cannam@95 3181 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
cannam@95 3182
cannam@95 3183
cannam@95 3184 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
cannam@95 3185
cannam@95 3186
cannam@95 3187 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
cannam@95 3188
cannam@95 3189
cannam@95 3190 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
cannam@95 3191
cannam@95 3192 # We need awk for the "check" target. The system "awk" is bad on
cannam@95 3193 # some platforms.
cannam@95 3194 # Always define AMTAR for backward compatibility. Yes, it's still used
cannam@95 3195 # in the wild :-( We should find a proper way to deprecate it ...
cannam@95 3196 AMTAR='$${TAR-tar}'
cannam@95 3197
cannam@95 3198 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cannam@95 3199
cannam@95 3200
cannam@95 3201
cannam@95 3202
cannam@95 3203
cannam@95 3204 ac_config_headers="$ac_config_headers config.h"
cannam@95 3205
cannam@95 3206
cannam@95 3207
cannam@95 3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cannam@95 3209 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
cannam@95 3210 # Check whether --enable-maintainer-mode was given.
cannam@95 3211 if test "${enable_maintainer_mode+set}" = set; then :
cannam@95 3212 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
cannam@95 3213 else
cannam@95 3214 USE_MAINTAINER_MODE=no
cannam@95 3215 fi
cannam@95 3216
cannam@95 3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cannam@95 3218 $as_echo "$USE_MAINTAINER_MODE" >&6; }
cannam@95 3219 if test $USE_MAINTAINER_MODE = yes; then
cannam@95 3220 MAINTAINER_MODE_TRUE=
cannam@95 3221 MAINTAINER_MODE_FALSE='#'
cannam@95 3222 else
cannam@95 3223 MAINTAINER_MODE_TRUE='#'
cannam@95 3224 MAINTAINER_MODE_FALSE=
cannam@95 3225 fi
cannam@95 3226
cannam@95 3227 MAINT=$MAINTAINER_MODE_TRUE
cannam@95 3228
cannam@95 3229
cannam@95 3230
cannam@95 3231 # Check whether --enable-shared was given.
cannam@95 3232 if test "${enable_shared+set}" = set; then :
cannam@95 3233 enableval=$enable_shared; p=${PACKAGE-default}
cannam@95 3234 case $enableval in
cannam@95 3235 yes) enable_shared=yes ;;
cannam@95 3236 no) enable_shared=no ;;
cannam@95 3237 *)
cannam@95 3238 enable_shared=no
cannam@95 3239 # Look at the argument we got. We use all the common list separators.
cannam@95 3240 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@95 3241 for pkg in $enableval; do
cannam@95 3242 IFS="$lt_save_ifs"
cannam@95 3243 if test "X$pkg" = "X$p"; then
cannam@95 3244 enable_shared=yes
cannam@95 3245 fi
cannam@95 3246 done
cannam@95 3247 IFS="$lt_save_ifs"
cannam@95 3248 ;;
cannam@95 3249 esac
cannam@95 3250 else
cannam@95 3251 enable_shared=no
cannam@95 3252 fi
cannam@95 3253
cannam@95 3254
cannam@95 3255
cannam@95 3256
cannam@95 3257
cannam@95 3258
cannam@95 3259
cannam@95 3260
cannam@95 3261 # Make sure we can run config.sub.
cannam@95 3262 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cannam@95 3263 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cannam@95 3264
cannam@95 3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cannam@95 3266 $as_echo_n "checking build system type... " >&6; }
cannam@95 3267 if ${ac_cv_build+:} false; then :
cannam@95 3268 $as_echo_n "(cached) " >&6
cannam@95 3269 else
cannam@95 3270 ac_build_alias=$build_alias
cannam@95 3271 test "x$ac_build_alias" = x &&
cannam@95 3272 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
cannam@95 3273 test "x$ac_build_alias" = x &&
cannam@95 3274 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cannam@95 3275 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cannam@95 3276 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cannam@95 3277
cannam@95 3278 fi
cannam@95 3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cannam@95 3280 $as_echo "$ac_cv_build" >&6; }
cannam@95 3281 case $ac_cv_build in
cannam@95 3282 *-*-*) ;;
cannam@95 3283 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cannam@95 3284 esac
cannam@95 3285 build=$ac_cv_build
cannam@95 3286 ac_save_IFS=$IFS; IFS='-'
cannam@95 3287 set x $ac_cv_build
cannam@95 3288 shift
cannam@95 3289 build_cpu=$1
cannam@95 3290 build_vendor=$2
cannam@95 3291 shift; shift
cannam@95 3292 # Remember, the first character of IFS is used to create $*,
cannam@95 3293 # except with old shells:
cannam@95 3294 build_os=$*
cannam@95 3295 IFS=$ac_save_IFS
cannam@95 3296 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
cannam@95 3297
cannam@95 3298
cannam@95 3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cannam@95 3300 $as_echo_n "checking host system type... " >&6; }
cannam@95 3301 if ${ac_cv_host+:} false; then :
cannam@95 3302 $as_echo_n "(cached) " >&6
cannam@95 3303 else
cannam@95 3304 if test "x$host_alias" = x; then
cannam@95 3305 ac_cv_host=$ac_cv_build
cannam@95 3306 else
cannam@95 3307 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cannam@95 3308 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cannam@95 3309 fi
cannam@95 3310
cannam@95 3311 fi
cannam@95 3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cannam@95 3313 $as_echo "$ac_cv_host" >&6; }
cannam@95 3314 case $ac_cv_host in
cannam@95 3315 *-*-*) ;;
cannam@95 3316 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cannam@95 3317 esac
cannam@95 3318 host=$ac_cv_host
cannam@95 3319 ac_save_IFS=$IFS; IFS='-'
cannam@95 3320 set x $ac_cv_host
cannam@95 3321 shift
cannam@95 3322 host_cpu=$1
cannam@95 3323 host_vendor=$2
cannam@95 3324 shift; shift
cannam@95 3325 # Remember, the first character of IFS is used to create $*,
cannam@95 3326 # except with old shells:
cannam@95 3327 host_os=$*
cannam@95 3328 IFS=$ac_save_IFS
cannam@95 3329 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
cannam@95 3330
cannam@95 3331
cannam@95 3332
cannam@95 3333 case "${host_cpu}" in
cannam@95 3334 powerpc*) have_fma=yes;;
cannam@95 3335 ia64*) have_fma=yes;;
cannam@95 3336 hppa*) have_fma=yes;;
cannam@95 3337 mips64*) have_fma=yes;;
cannam@95 3338 *) have_fma=no;;
cannam@95 3339 esac
cannam@95 3340
cannam@95 3341 # Check whether --enable-fma was given.
cannam@95 3342 if test "${enable_fma+set}" = set; then :
cannam@95 3343 enableval=$enable_fma; have_fma=$enableval
cannam@95 3344 fi
cannam@95 3345
cannam@95 3346 if test "$have_fma"x = "yes"x; then
cannam@95 3347
cannam@95 3348 $as_echo "#define HAVE_FMA 1" >>confdefs.h
cannam@95 3349
cannam@95 3350 fi
cannam@95 3351
cannam@95 3352
cannam@95 3353 # Check whether --enable-debug was given.
cannam@95 3354 if test "${enable_debug+set}" = set; then :
cannam@95 3355 enableval=$enable_debug; ok=$enableval
cannam@95 3356 else
cannam@95 3357 ok=no
cannam@95 3358 fi
cannam@95 3359
cannam@95 3360 if test "$ok" = "yes"; then
cannam@95 3361
cannam@95 3362 $as_echo "#define FFTW_DEBUG 1" >>confdefs.h
cannam@95 3363
cannam@95 3364 debug_malloc=yes
cannam@95 3365 else
cannam@95 3366 debug_malloc=no
cannam@95 3367 fi
cannam@95 3368
cannam@95 3369 # Check whether --enable-debug-malloc was given.
cannam@95 3370 if test "${enable_debug_malloc+set}" = set; then :
cannam@95 3371 enableval=$enable_debug_malloc; ok=$enableval
cannam@95 3372 else
cannam@95 3373 ok=$debug_malloc
cannam@95 3374 fi
cannam@95 3375
cannam@95 3376 if test "$ok" = "yes"; then
cannam@95 3377
cannam@95 3378 $as_echo "#define FFTW_DEBUG_MALLOC 1" >>confdefs.h
cannam@95 3379
cannam@95 3380 fi
cannam@95 3381
cannam@95 3382 # Check whether --enable-debug-alignment was given.
cannam@95 3383 if test "${enable_debug_alignment+set}" = set; then :
cannam@95 3384 enableval=$enable_debug_alignment; ok=$enableval
cannam@95 3385 else
cannam@95 3386 ok=no
cannam@95 3387 fi
cannam@95 3388
cannam@95 3389 if test "$ok" = "yes"; then
cannam@95 3390
cannam@95 3391 $as_echo "#define FFTW_DEBUG_ALIGNMENT 1" >>confdefs.h
cannam@95 3392
cannam@95 3393 fi
cannam@95 3394
cannam@95 3395 # Check whether --enable-random-estimator was given.
cannam@95 3396 if test "${enable_random_estimator+set}" = set; then :
cannam@95 3397 enableval=$enable_random_estimator; ok=$enableval
cannam@95 3398 else
cannam@95 3399 ok=no
cannam@95 3400 fi
cannam@95 3401
cannam@95 3402 if test "$ok" = "yes"; then
cannam@95 3403
cannam@95 3404 $as_echo "#define FFTW_RANDOM_ESTIMATOR 1" >>confdefs.h
cannam@95 3405
cannam@95 3406 CHECK_PL_OPTS="--estimate"
cannam@95 3407 fi
cannam@95 3408
cannam@95 3409 # Check whether --enable-alloca was given.
cannam@95 3410 if test "${enable_alloca+set}" = set; then :
cannam@95 3411 enableval=$enable_alloca; ok=$enableval
cannam@95 3412 else
cannam@95 3413 ok=yes
cannam@95 3414 fi
cannam@95 3415
cannam@95 3416 if test "$ok" = "yes"; then
cannam@95 3417
cannam@95 3418 $as_echo "#define FFTW_ENABLE_ALLOCA 1" >>confdefs.h
cannam@95 3419
cannam@95 3420 fi
cannam@95 3421
cannam@95 3422 # Check whether --enable-single was given.
cannam@95 3423 if test "${enable_single+set}" = set; then :
cannam@95 3424 enableval=$enable_single; ok=$enableval
cannam@95 3425 else
cannam@95 3426 ok=no
cannam@95 3427 fi
cannam@95 3428
cannam@95 3429 # Check whether --enable-float was given.
cannam@95 3430 if test "${enable_float+set}" = set; then :
cannam@95 3431 enableval=$enable_float; ok=$enableval
cannam@95 3432 fi
cannam@95 3433
cannam@95 3434 if test "$ok" = "yes"; then
cannam@95 3435
cannam@95 3436 $as_echo "#define FFTW_SINGLE 1" >>confdefs.h
cannam@95 3437
cannam@95 3438
cannam@95 3439 $as_echo "#define BENCHFFT_SINGLE 1" >>confdefs.h
cannam@95 3440
cannam@95 3441 PRECISION=s
cannam@95 3442 else
cannam@95 3443 PRECISION=d
cannam@95 3444 fi
cannam@95 3445 if test "$ok" = "yes"; then
cannam@95 3446 SINGLE_TRUE=
cannam@95 3447 SINGLE_FALSE='#'
cannam@95 3448 else
cannam@95 3449 SINGLE_TRUE='#'
cannam@95 3450 SINGLE_FALSE=
cannam@95 3451 fi
cannam@95 3452
cannam@95 3453
cannam@95 3454 # Check whether --enable-long-double was given.
cannam@95 3455 if test "${enable_long_double+set}" = set; then :
cannam@95 3456 enableval=$enable_long_double; ok=$enableval
cannam@95 3457 else
cannam@95 3458 ok=no
cannam@95 3459 fi
cannam@95 3460
cannam@95 3461 if test "$ok" = "yes"; then
cannam@95 3462 if test "$PRECISION" = "s"; then
cannam@95 3463 as_fn_error $? "--enable-single/--enable-long-double conflict" "$LINENO" 5
cannam@95 3464 fi
cannam@95 3465
cannam@95 3466 $as_echo "#define FFTW_LDOUBLE 1" >>confdefs.h
cannam@95 3467
cannam@95 3468
cannam@95 3469 $as_echo "#define BENCHFFT_LDOUBLE 1" >>confdefs.h
cannam@95 3470
cannam@95 3471 PRECISION=l
cannam@95 3472 fi
cannam@95 3473 if test "$ok" = "yes"; then
cannam@95 3474 LDOUBLE_TRUE=
cannam@95 3475 LDOUBLE_FALSE='#'
cannam@95 3476 else
cannam@95 3477 LDOUBLE_TRUE='#'
cannam@95 3478 LDOUBLE_FALSE=
cannam@95 3479 fi
cannam@95 3480
cannam@95 3481
cannam@95 3482 # Check whether --enable-quad-precision was given.
cannam@95 3483 if test "${enable_quad_precision+set}" = set; then :
cannam@95 3484 enableval=$enable_quad_precision; ok=$enableval
cannam@95 3485 else
cannam@95 3486 ok=no
cannam@95 3487 fi
cannam@95 3488
cannam@95 3489 if test "$ok" = "yes"; then
cannam@95 3490 if test "$PRECISION" != "d"; then
cannam@95 3491 as_fn_error $? "conflicting precisions specified" "$LINENO" 5
cannam@95 3492 fi
cannam@95 3493
cannam@95 3494 $as_echo "#define FFTW_QUAD 1" >>confdefs.h
cannam@95 3495
cannam@95 3496
cannam@95 3497 $as_echo "#define BENCHFFT_QUAD 1" >>confdefs.h
cannam@95 3498
cannam@95 3499 PRECISION=q
cannam@95 3500 fi
cannam@95 3501 if test "$ok" = "yes"; then
cannam@95 3502 QUAD_TRUE=
cannam@95 3503 QUAD_FALSE='#'
cannam@95 3504 else
cannam@95 3505 QUAD_TRUE='#'
cannam@95 3506 QUAD_FALSE=
cannam@95 3507 fi
cannam@95 3508
cannam@95 3509
cannam@95 3510
cannam@95 3511
cannam@95 3512
cannam@95 3513 # Check whether --enable-sse was given.
cannam@95 3514 if test "${enable_sse+set}" = set; then :
cannam@95 3515 enableval=$enable_sse; have_sse=$enableval
cannam@95 3516 else
cannam@95 3517 have_sse=no
cannam@95 3518 fi
cannam@95 3519
cannam@95 3520 if test "$have_sse" = "yes"; then
cannam@95 3521 if test "$PRECISION" != "s"; then
cannam@95 3522 as_fn_error $? "SSE requires single precision" "$LINENO" 5
cannam@95 3523 fi
cannam@95 3524 fi
cannam@95 3525
cannam@95 3526 # Check whether --enable-sse2 was given.
cannam@95 3527 if test "${enable_sse2+set}" = set; then :
cannam@95 3528 enableval=$enable_sse2; have_sse2=$enableval
cannam@95 3529 else
cannam@95 3530 have_sse2=no
cannam@95 3531 fi
cannam@95 3532
cannam@95 3533 if test "$have_sse" = "yes"; then have_sse2=yes; fi
cannam@95 3534 if test "$have_sse2" = "yes"; then
cannam@95 3535
cannam@95 3536 $as_echo "#define HAVE_SSE2 1" >>confdefs.h
cannam@95 3537
cannam@95 3538 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
cannam@95 3539 as_fn_error $? "SSE2 requires single or double precision" "$LINENO" 5
cannam@95 3540 fi
cannam@95 3541 fi
cannam@95 3542 if test "$have_sse2" = "yes"; then
cannam@95 3543 HAVE_SSE2_TRUE=
cannam@95 3544 HAVE_SSE2_FALSE='#'
cannam@95 3545 else
cannam@95 3546 HAVE_SSE2_TRUE='#'
cannam@95 3547 HAVE_SSE2_FALSE=
cannam@95 3548 fi
cannam@95 3549
cannam@95 3550
cannam@95 3551 # Check whether --enable-avx was given.
cannam@95 3552 if test "${enable_avx+set}" = set; then :
cannam@95 3553 enableval=$enable_avx; have_avx=$enableval
cannam@95 3554 else
cannam@95 3555 have_avx=no
cannam@95 3556 fi
cannam@95 3557
cannam@95 3558 if test "$have_avx" = "yes"; then
cannam@95 3559
cannam@95 3560 $as_echo "#define HAVE_AVX 1" >>confdefs.h
cannam@95 3561
cannam@95 3562 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
cannam@95 3563 as_fn_error $? "AVX requires single or double precision" "$LINENO" 5
cannam@95 3564 fi
cannam@95 3565 fi
cannam@95 3566 if test "$have_avx" = "yes"; then
cannam@95 3567 HAVE_AVX_TRUE=
cannam@95 3568 HAVE_AVX_FALSE='#'
cannam@95 3569 else
cannam@95 3570 HAVE_AVX_TRUE='#'
cannam@95 3571 HAVE_AVX_FALSE=
cannam@95 3572 fi
cannam@95 3573
cannam@95 3574
cannam@95 3575 # Check whether --enable-altivec was given.
cannam@95 3576 if test "${enable_altivec+set}" = set; then :
cannam@95 3577 enableval=$enable_altivec; have_altivec=$enableval
cannam@95 3578 else
cannam@95 3579 have_altivec=no
cannam@95 3580 fi
cannam@95 3581
cannam@95 3582 if test "$have_altivec" = "yes"; then
cannam@95 3583
cannam@95 3584 $as_echo "#define HAVE_ALTIVEC 1" >>confdefs.h
cannam@95 3585
cannam@95 3586 if test "$PRECISION" != "s"; then
cannam@95 3587 as_fn_error $? "Altivec requires single precision" "$LINENO" 5
cannam@95 3588 fi
cannam@95 3589 fi
cannam@95 3590 if test "$have_altivec" = "yes"; then
cannam@95 3591 HAVE_ALTIVEC_TRUE=
cannam@95 3592 HAVE_ALTIVEC_FALSE='#'
cannam@95 3593 else
cannam@95 3594 HAVE_ALTIVEC_TRUE='#'
cannam@95 3595 HAVE_ALTIVEC_FALSE=
cannam@95 3596 fi
cannam@95 3597
cannam@95 3598
cannam@95 3599 # Check whether --enable-neon was given.
cannam@95 3600 if test "${enable_neon+set}" = set; then :
cannam@95 3601 enableval=$enable_neon; have_neon=$enableval
cannam@95 3602 else
cannam@95 3603 have_neon=no
cannam@95 3604 fi
cannam@95 3605
cannam@95 3606 if test "$have_neon" = "yes"; then
cannam@95 3607
cannam@95 3608 $as_echo "#define HAVE_NEON 1" >>confdefs.h
cannam@95 3609
cannam@95 3610 if test "$PRECISION" != "s"; then
cannam@95 3611 as_fn_error $? "NEON requires single precision" "$LINENO" 5
cannam@95 3612 fi
cannam@95 3613 fi
cannam@95 3614 if test "$have_neon" = "yes"; then
cannam@95 3615 HAVE_NEON_TRUE=
cannam@95 3616 HAVE_NEON_FALSE='#'
cannam@95 3617 else
cannam@95 3618 HAVE_NEON_TRUE='#'
cannam@95 3619 HAVE_NEON_FALSE=
cannam@95 3620 fi
cannam@95 3621
cannam@95 3622
cannam@95 3623
cannam@95 3624
cannam@95 3625 # Check whether --with-slow-timer was given.
cannam@95 3626 if test "${with_slow_timer+set}" = set; then :
cannam@95 3627 withval=$with_slow_timer; with_slow_timer=$withval
cannam@95 3628 else
cannam@95 3629 with_slow_timer=no
cannam@95 3630 fi
cannam@95 3631
cannam@95 3632 if test "$with_slow_timer" = "yes"; then
cannam@95 3633
cannam@95 3634 $as_echo "#define WITH_SLOW_TIMER 1" >>confdefs.h
cannam@95 3635
cannam@95 3636 fi
cannam@95 3637
cannam@95 3638 # Check whether --enable-mips_zbus_timer was given.
cannam@95 3639 if test "${enable_mips_zbus_timer+set}" = set; then :
cannam@95 3640 enableval=$enable_mips_zbus_timer; have_mips_zbus_timer=$enableval
cannam@95 3641 else
cannam@95 3642 have_mips_zbus_timer=no
cannam@95 3643 fi
cannam@95 3644
cannam@95 3645 if test "$have_mips_zbus_timer" = "yes"; then
cannam@95 3646
cannam@95 3647 $as_echo "#define HAVE_MIPS_ZBUS_TIMER 1" >>confdefs.h
cannam@95 3648
cannam@95 3649 fi
cannam@95 3650
cannam@95 3651
cannam@95 3652 # Check whether --with-our-malloc was given.
cannam@95 3653 if test "${with_our_malloc+set}" = set; then :
cannam@95 3654 withval=$with_our_malloc; with_our_malloc=$withval
cannam@95 3655 else
cannam@95 3656 with_our_malloc=no
cannam@95 3657 fi
cannam@95 3658
cannam@95 3659
cannam@95 3660 # Check whether --with-our-malloc16 was given.
cannam@95 3661 if test "${with_our_malloc16+set}" = set; then :
cannam@95 3662 withval=$with_our_malloc16; with_our_malloc=$withval
cannam@95 3663 fi
cannam@95 3664
cannam@95 3665 if test "$with_our_malloc" = "yes"; then
cannam@95 3666
cannam@95 3667 $as_echo "#define WITH_OUR_MALLOC 1" >>confdefs.h
cannam@95 3668
cannam@95 3669 fi
cannam@95 3670
cannam@95 3671
cannam@95 3672 # Check whether --with-windows-f77-mangling was given.
cannam@95 3673 if test "${with_windows_f77_mangling+set}" = set; then :
cannam@95 3674 withval=$with_windows_f77_mangling; with_windows_f77_mangling=$withval
cannam@95 3675 else
cannam@95 3676 with_windows_f77_mangling=no
cannam@95 3677 fi
cannam@95 3678
cannam@95 3679 if test "$with_windows_f77_mangling" = "yes"; then
cannam@95 3680
cannam@95 3681 $as_echo "#define WINDOWS_F77_MANGLING 1" >>confdefs.h
cannam@95 3682
cannam@95 3683 fi
cannam@95 3684
cannam@95 3685
cannam@95 3686 # Check whether --with-incoming-stack-boundary was given.
cannam@95 3687 if test "${with_incoming_stack_boundary+set}" = set; then :
cannam@95 3688 withval=$with_incoming_stack_boundary; with_incoming_stack_boundary=$withval
cannam@95 3689 else
cannam@95 3690 with_incoming_stack_boundary=no
cannam@95 3691 fi
cannam@95 3692
cannam@95 3693
cannam@95 3694 case "$PRECISION" in
cannam@95 3695 s) PREC_SUFFIX=f;;
cannam@95 3696 d) PREC_SUFFIX=;;
cannam@95 3697 l) PREC_SUFFIX=l;;
cannam@95 3698 q) PREC_SUFFIX=q;;
cannam@95 3699 esac
cannam@95 3700
cannam@95 3701
cannam@95 3702 ac_ext=c
cannam@95 3703 ac_cpp='$CPP $CPPFLAGS'
cannam@95 3704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@95 3705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@95 3707 if test -n "$ac_tool_prefix"; then
cannam@95 3708 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
cannam@95 3709 set dummy ${ac_tool_prefix}gcc; ac_word=$2
cannam@95 3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 3711 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 3712 if ${ac_cv_prog_CC+:} false; then :
cannam@95 3713 $as_echo_n "(cached) " >&6
cannam@95 3714 else
cannam@95 3715 if test -n "$CC"; then
cannam@95 3716 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@95 3717 else
cannam@95 3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 3719 for as_dir in $PATH
cannam@95 3720 do
cannam@95 3721 IFS=$as_save_IFS
cannam@95 3722 test -z "$as_dir" && as_dir=.
cannam@95 3723 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 3724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 3725 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cannam@95 3726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 3727 break 2
cannam@95 3728 fi
cannam@95 3729 done
cannam@95 3730 done
cannam@95 3731 IFS=$as_save_IFS
cannam@95 3732
cannam@95 3733 fi
cannam@95 3734 fi
cannam@95 3735 CC=$ac_cv_prog_CC
cannam@95 3736 if test -n "$CC"; then
cannam@95 3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@95 3738 $as_echo "$CC" >&6; }
cannam@95 3739 else
cannam@95 3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 3741 $as_echo "no" >&6; }
cannam@95 3742 fi
cannam@95 3743
cannam@95 3744
cannam@95 3745 fi
cannam@95 3746 if test -z "$ac_cv_prog_CC"; then
cannam@95 3747 ac_ct_CC=$CC
cannam@95 3748 # Extract the first word of "gcc", so it can be a program name with args.
cannam@95 3749 set dummy gcc; ac_word=$2
cannam@95 3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 3751 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 3752 if ${ac_cv_prog_ac_ct_CC+:} false; then :
cannam@95 3753 $as_echo_n "(cached) " >&6
cannam@95 3754 else
cannam@95 3755 if test -n "$ac_ct_CC"; then
cannam@95 3756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@95 3757 else
cannam@95 3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 3759 for as_dir in $PATH
cannam@95 3760 do
cannam@95 3761 IFS=$as_save_IFS
cannam@95 3762 test -z "$as_dir" && as_dir=.
cannam@95 3763 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 3764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 3765 ac_cv_prog_ac_ct_CC="gcc"
cannam@95 3766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 3767 break 2
cannam@95 3768 fi
cannam@95 3769 done
cannam@95 3770 done
cannam@95 3771 IFS=$as_save_IFS
cannam@95 3772
cannam@95 3773 fi
cannam@95 3774 fi
cannam@95 3775 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@95 3776 if test -n "$ac_ct_CC"; then
cannam@95 3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cannam@95 3778 $as_echo "$ac_ct_CC" >&6; }
cannam@95 3779 else
cannam@95 3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 3781 $as_echo "no" >&6; }
cannam@95 3782 fi
cannam@95 3783
cannam@95 3784 if test "x$ac_ct_CC" = x; then
cannam@95 3785 CC=""
cannam@95 3786 else
cannam@95 3787 case $cross_compiling:$ac_tool_warned in
cannam@95 3788 yes:)
cannam@95 3789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@95 3790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@95 3791 ac_tool_warned=yes ;;
cannam@95 3792 esac
cannam@95 3793 CC=$ac_ct_CC
cannam@95 3794 fi
cannam@95 3795 else
cannam@95 3796 CC="$ac_cv_prog_CC"
cannam@95 3797 fi
cannam@95 3798
cannam@95 3799 if test -z "$CC"; then
cannam@95 3800 if test -n "$ac_tool_prefix"; then
cannam@95 3801 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
cannam@95 3802 set dummy ${ac_tool_prefix}cc; ac_word=$2
cannam@95 3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 3804 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 3805 if ${ac_cv_prog_CC+:} false; then :
cannam@95 3806 $as_echo_n "(cached) " >&6
cannam@95 3807 else
cannam@95 3808 if test -n "$CC"; then
cannam@95 3809 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@95 3810 else
cannam@95 3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 3812 for as_dir in $PATH
cannam@95 3813 do
cannam@95 3814 IFS=$as_save_IFS
cannam@95 3815 test -z "$as_dir" && as_dir=.
cannam@95 3816 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 3817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 3818 ac_cv_prog_CC="${ac_tool_prefix}cc"
cannam@95 3819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 3820 break 2
cannam@95 3821 fi
cannam@95 3822 done
cannam@95 3823 done
cannam@95 3824 IFS=$as_save_IFS
cannam@95 3825
cannam@95 3826 fi
cannam@95 3827 fi
cannam@95 3828 CC=$ac_cv_prog_CC
cannam@95 3829 if test -n "$CC"; then
cannam@95 3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@95 3831 $as_echo "$CC" >&6; }
cannam@95 3832 else
cannam@95 3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 3834 $as_echo "no" >&6; }
cannam@95 3835 fi
cannam@95 3836
cannam@95 3837
cannam@95 3838 fi
cannam@95 3839 fi
cannam@95 3840 if test -z "$CC"; then
cannam@95 3841 # Extract the first word of "cc", so it can be a program name with args.
cannam@95 3842 set dummy cc; ac_word=$2
cannam@95 3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 3844 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 3845 if ${ac_cv_prog_CC+:} false; then :
cannam@95 3846 $as_echo_n "(cached) " >&6
cannam@95 3847 else
cannam@95 3848 if test -n "$CC"; then
cannam@95 3849 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@95 3850 else
cannam@95 3851 ac_prog_rejected=no
cannam@95 3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 3853 for as_dir in $PATH
cannam@95 3854 do
cannam@95 3855 IFS=$as_save_IFS
cannam@95 3856 test -z "$as_dir" && as_dir=.
cannam@95 3857 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 3858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 3859 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
cannam@95 3860 ac_prog_rejected=yes
cannam@95 3861 continue
cannam@95 3862 fi
cannam@95 3863 ac_cv_prog_CC="cc"
cannam@95 3864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 3865 break 2
cannam@95 3866 fi
cannam@95 3867 done
cannam@95 3868 done
cannam@95 3869 IFS=$as_save_IFS
cannam@95 3870
cannam@95 3871 if test $ac_prog_rejected = yes; then
cannam@95 3872 # We found a bogon in the path, so make sure we never use it.
cannam@95 3873 set dummy $ac_cv_prog_CC
cannam@95 3874 shift
cannam@95 3875 if test $# != 0; then
cannam@95 3876 # We chose a different compiler from the bogus one.
cannam@95 3877 # However, it has the same basename, so the bogon will be chosen
cannam@95 3878 # first if we set CC to just the basename; use the full file name.
cannam@95 3879 shift
cannam@95 3880 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
cannam@95 3881 fi
cannam@95 3882 fi
cannam@95 3883 fi
cannam@95 3884 fi
cannam@95 3885 CC=$ac_cv_prog_CC
cannam@95 3886 if test -n "$CC"; then
cannam@95 3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@95 3888 $as_echo "$CC" >&6; }
cannam@95 3889 else
cannam@95 3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 3891 $as_echo "no" >&6; }
cannam@95 3892 fi
cannam@95 3893
cannam@95 3894
cannam@95 3895 fi
cannam@95 3896 if test -z "$CC"; then
cannam@95 3897 if test -n "$ac_tool_prefix"; then
cannam@95 3898 for ac_prog in cl.exe
cannam@95 3899 do
cannam@95 3900 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@95 3901 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@95 3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 3903 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 3904 if ${ac_cv_prog_CC+:} false; then :
cannam@95 3905 $as_echo_n "(cached) " >&6
cannam@95 3906 else
cannam@95 3907 if test -n "$CC"; then
cannam@95 3908 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@95 3909 else
cannam@95 3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 3911 for as_dir in $PATH
cannam@95 3912 do
cannam@95 3913 IFS=$as_save_IFS
cannam@95 3914 test -z "$as_dir" && as_dir=.
cannam@95 3915 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 3916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 3917 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cannam@95 3918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 3919 break 2
cannam@95 3920 fi
cannam@95 3921 done
cannam@95 3922 done
cannam@95 3923 IFS=$as_save_IFS
cannam@95 3924
cannam@95 3925 fi
cannam@95 3926 fi
cannam@95 3927 CC=$ac_cv_prog_CC
cannam@95 3928 if test -n "$CC"; then
cannam@95 3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@95 3930 $as_echo "$CC" >&6; }
cannam@95 3931 else
cannam@95 3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 3933 $as_echo "no" >&6; }
cannam@95 3934 fi
cannam@95 3935
cannam@95 3936
cannam@95 3937 test -n "$CC" && break
cannam@95 3938 done
cannam@95 3939 fi
cannam@95 3940 if test -z "$CC"; then
cannam@95 3941 ac_ct_CC=$CC
cannam@95 3942 for ac_prog in cl.exe
cannam@95 3943 do
cannam@95 3944 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@95 3945 set dummy $ac_prog; ac_word=$2
cannam@95 3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 3947 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 3948 if ${ac_cv_prog_ac_ct_CC+:} false; then :
cannam@95 3949 $as_echo_n "(cached) " >&6
cannam@95 3950 else
cannam@95 3951 if test -n "$ac_ct_CC"; then
cannam@95 3952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@95 3953 else
cannam@95 3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 3955 for as_dir in $PATH
cannam@95 3956 do
cannam@95 3957 IFS=$as_save_IFS
cannam@95 3958 test -z "$as_dir" && as_dir=.
cannam@95 3959 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 3960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 3961 ac_cv_prog_ac_ct_CC="$ac_prog"
cannam@95 3962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 3963 break 2
cannam@95 3964 fi
cannam@95 3965 done
cannam@95 3966 done
cannam@95 3967 IFS=$as_save_IFS
cannam@95 3968
cannam@95 3969 fi
cannam@95 3970 fi
cannam@95 3971 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@95 3972 if test -n "$ac_ct_CC"; then
cannam@95 3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cannam@95 3974 $as_echo "$ac_ct_CC" >&6; }
cannam@95 3975 else
cannam@95 3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 3977 $as_echo "no" >&6; }
cannam@95 3978 fi
cannam@95 3979
cannam@95 3980
cannam@95 3981 test -n "$ac_ct_CC" && break
cannam@95 3982 done
cannam@95 3983
cannam@95 3984 if test "x$ac_ct_CC" = x; then
cannam@95 3985 CC=""
cannam@95 3986 else
cannam@95 3987 case $cross_compiling:$ac_tool_warned in
cannam@95 3988 yes:)
cannam@95 3989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@95 3990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@95 3991 ac_tool_warned=yes ;;
cannam@95 3992 esac
cannam@95 3993 CC=$ac_ct_CC
cannam@95 3994 fi
cannam@95 3995 fi
cannam@95 3996
cannam@95 3997 fi
cannam@95 3998
cannam@95 3999
cannam@95 4000 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@95 4001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@95 4002 as_fn_error $? "no acceptable C compiler found in \$PATH
cannam@95 4003 See \`config.log' for more details" "$LINENO" 5; }
cannam@95 4004
cannam@95 4005 # Provide some information about the compiler.
cannam@95 4006 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cannam@95 4007 set X $ac_compile
cannam@95 4008 ac_compiler=$2
cannam@95 4009 for ac_option in --version -v -V -qversion; do
cannam@95 4010 { { ac_try="$ac_compiler $ac_option >&5"
cannam@95 4011 case "(($ac_try" in
cannam@95 4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@95 4013 *) ac_try_echo=$ac_try;;
cannam@95 4014 esac
cannam@95 4015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@95 4016 $as_echo "$ac_try_echo"; } >&5
cannam@95 4017 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cannam@95 4018 ac_status=$?
cannam@95 4019 if test -s conftest.err; then
cannam@95 4020 sed '10a\
cannam@95 4021 ... rest of stderr output deleted ...
cannam@95 4022 10q' conftest.err >conftest.er1
cannam@95 4023 cat conftest.er1 >&5
cannam@95 4024 fi
cannam@95 4025 rm -f conftest.er1 conftest.err
cannam@95 4026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 4027 test $ac_status = 0; }
cannam@95 4028 done
cannam@95 4029
cannam@95 4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 4031 /* end confdefs.h. */
cannam@95 4032
cannam@95 4033 int
cannam@95 4034 main ()
cannam@95 4035 {
cannam@95 4036
cannam@95 4037 ;
cannam@95 4038 return 0;
cannam@95 4039 }
cannam@95 4040 _ACEOF
cannam@95 4041 ac_clean_files_save=$ac_clean_files
cannam@95 4042 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cannam@95 4043 # Try to create an executable without -o first, disregard a.out.
cannam@95 4044 # It will help us diagnose broken compilers, and finding out an intuition
cannam@95 4045 # of exeext.
cannam@95 4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
cannam@95 4047 $as_echo_n "checking whether the C compiler works... " >&6; }
cannam@95 4048 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
cannam@95 4049
cannam@95 4050 # The possible output files:
cannam@95 4051 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
cannam@95 4052
cannam@95 4053 ac_rmfiles=
cannam@95 4054 for ac_file in $ac_files
cannam@95 4055 do
cannam@95 4056 case $ac_file in
cannam@95 4057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
cannam@95 4058 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
cannam@95 4059 esac
cannam@95 4060 done
cannam@95 4061 rm -f $ac_rmfiles
cannam@95 4062
cannam@95 4063 if { { ac_try="$ac_link_default"
cannam@95 4064 case "(($ac_try" in
cannam@95 4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@95 4066 *) ac_try_echo=$ac_try;;
cannam@95 4067 esac
cannam@95 4068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@95 4069 $as_echo "$ac_try_echo"; } >&5
cannam@95 4070 (eval "$ac_link_default") 2>&5
cannam@95 4071 ac_status=$?
cannam@95 4072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 4073 test $ac_status = 0; }; then :
cannam@95 4074 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
cannam@95 4075 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
cannam@95 4076 # in a Makefile. We should not override ac_cv_exeext if it was cached,
cannam@95 4077 # so that the user can short-circuit this test for compilers unknown to
cannam@95 4078 # Autoconf.
cannam@95 4079 for ac_file in $ac_files ''
cannam@95 4080 do
cannam@95 4081 test -f "$ac_file" || continue
cannam@95 4082 case $ac_file in
cannam@95 4083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
cannam@95 4084 ;;
cannam@95 4085 [ab].out )
cannam@95 4086 # We found the default executable, but exeext='' is most
cannam@95 4087 # certainly right.
cannam@95 4088 break;;
cannam@95 4089 *.* )
cannam@95 4090 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cannam@95 4091 then :; else
cannam@95 4092 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
cannam@95 4093 fi
cannam@95 4094 # We set ac_cv_exeext here because the later test for it is not
cannam@95 4095 # safe: cross compilers may not add the suffix if given an `-o'
cannam@95 4096 # argument, so we may need to know it at that point already.
cannam@95 4097 # Even if this section looks crufty: it has the advantage of
cannam@95 4098 # actually working.
cannam@95 4099 break;;
cannam@95 4100 * )
cannam@95 4101 break;;
cannam@95 4102 esac
cannam@95 4103 done
cannam@95 4104 test "$ac_cv_exeext" = no && ac_cv_exeext=
cannam@95 4105
cannam@95 4106 else
cannam@95 4107 ac_file=''
cannam@95 4108 fi
cannam@95 4109 if test -z "$ac_file"; then :
cannam@95 4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 4111 $as_echo "no" >&6; }
cannam@95 4112 $as_echo "$as_me: failed program was:" >&5
cannam@95 4113 sed 's/^/| /' conftest.$ac_ext >&5
cannam@95 4114
cannam@95 4115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@95 4116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@95 4117 as_fn_error 77 "C compiler cannot create executables
cannam@95 4118 See \`config.log' for more details" "$LINENO" 5; }
cannam@95 4119 else
cannam@95 4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@95 4121 $as_echo "yes" >&6; }
cannam@95 4122 fi
cannam@95 4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
cannam@95 4124 $as_echo_n "checking for C compiler default output file name... " >&6; }
cannam@95 4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
cannam@95 4126 $as_echo "$ac_file" >&6; }
cannam@95 4127 ac_exeext=$ac_cv_exeext
cannam@95 4128
cannam@95 4129 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cannam@95 4130 ac_clean_files=$ac_clean_files_save
cannam@95 4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cannam@95 4132 $as_echo_n "checking for suffix of executables... " >&6; }
cannam@95 4133 if { { ac_try="$ac_link"
cannam@95 4134 case "(($ac_try" in
cannam@95 4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@95 4136 *) ac_try_echo=$ac_try;;
cannam@95 4137 esac
cannam@95 4138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@95 4139 $as_echo "$ac_try_echo"; } >&5
cannam@95 4140 (eval "$ac_link") 2>&5
cannam@95 4141 ac_status=$?
cannam@95 4142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 4143 test $ac_status = 0; }; then :
cannam@95 4144 # If both `conftest.exe' and `conftest' are `present' (well, observable)
cannam@95 4145 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
cannam@95 4146 # work properly (i.e., refer to `conftest.exe'), while it won't with
cannam@95 4147 # `rm'.
cannam@95 4148 for ac_file in conftest.exe conftest conftest.*; do
cannam@95 4149 test -f "$ac_file" || continue
cannam@95 4150 case $ac_file in
cannam@95 4151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
cannam@95 4152 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
cannam@95 4153 break;;
cannam@95 4154 * ) break;;
cannam@95 4155 esac
cannam@95 4156 done
cannam@95 4157 else
cannam@95 4158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@95 4159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@95 4160 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
cannam@95 4161 See \`config.log' for more details" "$LINENO" 5; }
cannam@95 4162 fi
cannam@95 4163 rm -f conftest conftest$ac_cv_exeext
cannam@95 4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cannam@95 4165 $as_echo "$ac_cv_exeext" >&6; }
cannam@95 4166
cannam@95 4167 rm -f conftest.$ac_ext
cannam@95 4168 EXEEXT=$ac_cv_exeext
cannam@95 4169 ac_exeext=$EXEEXT
cannam@95 4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 4171 /* end confdefs.h. */
cannam@95 4172 #include <stdio.h>
cannam@95 4173 int
cannam@95 4174 main ()
cannam@95 4175 {
cannam@95 4176 FILE *f = fopen ("conftest.out", "w");
cannam@95 4177 return ferror (f) || fclose (f) != 0;
cannam@95 4178
cannam@95 4179 ;
cannam@95 4180 return 0;
cannam@95 4181 }
cannam@95 4182 _ACEOF
cannam@95 4183 ac_clean_files="$ac_clean_files conftest.out"
cannam@95 4184 # Check that the compiler produces executables we can run. If not, either
cannam@95 4185 # the compiler is broken, or we cross compile.
cannam@95 4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
cannam@95 4187 $as_echo_n "checking whether we are cross compiling... " >&6; }
cannam@95 4188 if test "$cross_compiling" != yes; then
cannam@95 4189 { { ac_try="$ac_link"
cannam@95 4190 case "(($ac_try" in
cannam@95 4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@95 4192 *) ac_try_echo=$ac_try;;
cannam@95 4193 esac
cannam@95 4194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@95 4195 $as_echo "$ac_try_echo"; } >&5
cannam@95 4196 (eval "$ac_link") 2>&5
cannam@95 4197 ac_status=$?
cannam@95 4198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 4199 test $ac_status = 0; }
cannam@95 4200 if { ac_try='./conftest$ac_cv_exeext'
cannam@95 4201 { { case "(($ac_try" in
cannam@95 4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@95 4203 *) ac_try_echo=$ac_try;;
cannam@95 4204 esac
cannam@95 4205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@95 4206 $as_echo "$ac_try_echo"; } >&5
cannam@95 4207 (eval "$ac_try") 2>&5
cannam@95 4208 ac_status=$?
cannam@95 4209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 4210 test $ac_status = 0; }; }; then
cannam@95 4211 cross_compiling=no
cannam@95 4212 else
cannam@95 4213 if test "$cross_compiling" = maybe; then
cannam@95 4214 cross_compiling=yes
cannam@95 4215 else
cannam@95 4216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@95 4217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@95 4218 as_fn_error $? "cannot run C compiled programs.
cannam@95 4219 If you meant to cross compile, use \`--host'.
cannam@95 4220 See \`config.log' for more details" "$LINENO" 5; }
cannam@95 4221 fi
cannam@95 4222 fi
cannam@95 4223 fi
cannam@95 4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
cannam@95 4225 $as_echo "$cross_compiling" >&6; }
cannam@95 4226
cannam@95 4227 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
cannam@95 4228 ac_clean_files=$ac_clean_files_save
cannam@95 4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cannam@95 4230 $as_echo_n "checking for suffix of object files... " >&6; }
cannam@95 4231 if ${ac_cv_objext+:} false; then :
cannam@95 4232 $as_echo_n "(cached) " >&6
cannam@95 4233 else
cannam@95 4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 4235 /* end confdefs.h. */
cannam@95 4236
cannam@95 4237 int
cannam@95 4238 main ()
cannam@95 4239 {
cannam@95 4240
cannam@95 4241 ;
cannam@95 4242 return 0;
cannam@95 4243 }
cannam@95 4244 _ACEOF
cannam@95 4245 rm -f conftest.o conftest.obj
cannam@95 4246 if { { ac_try="$ac_compile"
cannam@95 4247 case "(($ac_try" in
cannam@95 4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@95 4249 *) ac_try_echo=$ac_try;;
cannam@95 4250 esac
cannam@95 4251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@95 4252 $as_echo "$ac_try_echo"; } >&5
cannam@95 4253 (eval "$ac_compile") 2>&5
cannam@95 4254 ac_status=$?
cannam@95 4255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 4256 test $ac_status = 0; }; then :
cannam@95 4257 for ac_file in conftest.o conftest.obj conftest.*; do
cannam@95 4258 test -f "$ac_file" || continue;
cannam@95 4259 case $ac_file in
cannam@95 4260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
cannam@95 4261 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
cannam@95 4262 break;;
cannam@95 4263 esac
cannam@95 4264 done
cannam@95 4265 else
cannam@95 4266 $as_echo "$as_me: failed program was:" >&5
cannam@95 4267 sed 's/^/| /' conftest.$ac_ext >&5
cannam@95 4268
cannam@95 4269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@95 4270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@95 4271 as_fn_error $? "cannot compute suffix of object files: cannot compile
cannam@95 4272 See \`config.log' for more details" "$LINENO" 5; }
cannam@95 4273 fi
cannam@95 4274 rm -f conftest.$ac_cv_objext conftest.$ac_ext
cannam@95 4275 fi
cannam@95 4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cannam@95 4277 $as_echo "$ac_cv_objext" >&6; }
cannam@95 4278 OBJEXT=$ac_cv_objext
cannam@95 4279 ac_objext=$OBJEXT
cannam@95 4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cannam@95 4281 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cannam@95 4282 if ${ac_cv_c_compiler_gnu+:} false; then :
cannam@95 4283 $as_echo_n "(cached) " >&6
cannam@95 4284 else
cannam@95 4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 4286 /* end confdefs.h. */
cannam@95 4287
cannam@95 4288 int
cannam@95 4289 main ()
cannam@95 4290 {
cannam@95 4291 #ifndef __GNUC__
cannam@95 4292 choke me
cannam@95 4293 #endif
cannam@95 4294
cannam@95 4295 ;
cannam@95 4296 return 0;
cannam@95 4297 }
cannam@95 4298 _ACEOF
cannam@95 4299 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 4300 ac_compiler_gnu=yes
cannam@95 4301 else
cannam@95 4302 ac_compiler_gnu=no
cannam@95 4303 fi
cannam@95 4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 4305 ac_cv_c_compiler_gnu=$ac_compiler_gnu
cannam@95 4306
cannam@95 4307 fi
cannam@95 4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cannam@95 4309 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
cannam@95 4310 if test $ac_compiler_gnu = yes; then
cannam@95 4311 GCC=yes
cannam@95 4312 else
cannam@95 4313 GCC=
cannam@95 4314 fi
cannam@95 4315 ac_test_CFLAGS=${CFLAGS+set}
cannam@95 4316 ac_save_CFLAGS=$CFLAGS
cannam@95 4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cannam@95 4318 $as_echo_n "checking whether $CC accepts -g... " >&6; }
cannam@95 4319 if ${ac_cv_prog_cc_g+:} false; then :
cannam@95 4320 $as_echo_n "(cached) " >&6
cannam@95 4321 else
cannam@95 4322 ac_save_c_werror_flag=$ac_c_werror_flag
cannam@95 4323 ac_c_werror_flag=yes
cannam@95 4324 ac_cv_prog_cc_g=no
cannam@95 4325 CFLAGS="-g"
cannam@95 4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 4327 /* end confdefs.h. */
cannam@95 4328
cannam@95 4329 int
cannam@95 4330 main ()
cannam@95 4331 {
cannam@95 4332
cannam@95 4333 ;
cannam@95 4334 return 0;
cannam@95 4335 }
cannam@95 4336 _ACEOF
cannam@95 4337 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 4338 ac_cv_prog_cc_g=yes
cannam@95 4339 else
cannam@95 4340 CFLAGS=""
cannam@95 4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 4342 /* end confdefs.h. */
cannam@95 4343
cannam@95 4344 int
cannam@95 4345 main ()
cannam@95 4346 {
cannam@95 4347
cannam@95 4348 ;
cannam@95 4349 return 0;
cannam@95 4350 }
cannam@95 4351 _ACEOF
cannam@95 4352 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 4353
cannam@95 4354 else
cannam@95 4355 ac_c_werror_flag=$ac_save_c_werror_flag
cannam@95 4356 CFLAGS="-g"
cannam@95 4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 4358 /* end confdefs.h. */
cannam@95 4359
cannam@95 4360 int
cannam@95 4361 main ()
cannam@95 4362 {
cannam@95 4363
cannam@95 4364 ;
cannam@95 4365 return 0;
cannam@95 4366 }
cannam@95 4367 _ACEOF
cannam@95 4368 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 4369 ac_cv_prog_cc_g=yes
cannam@95 4370 fi
cannam@95 4371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 4372 fi
cannam@95 4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 4374 fi
cannam@95 4375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 4376 ac_c_werror_flag=$ac_save_c_werror_flag
cannam@95 4377 fi
cannam@95 4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cannam@95 4379 $as_echo "$ac_cv_prog_cc_g" >&6; }
cannam@95 4380 if test "$ac_test_CFLAGS" = set; then
cannam@95 4381 CFLAGS=$ac_save_CFLAGS
cannam@95 4382 elif test $ac_cv_prog_cc_g = yes; then
cannam@95 4383 if test "$GCC" = yes; then
cannam@95 4384 CFLAGS="-g -O2"
cannam@95 4385 else
cannam@95 4386 CFLAGS="-g"
cannam@95 4387 fi
cannam@95 4388 else
cannam@95 4389 if test "$GCC" = yes; then
cannam@95 4390 CFLAGS="-O2"
cannam@95 4391 else
cannam@95 4392 CFLAGS=
cannam@95 4393 fi
cannam@95 4394 fi
cannam@95 4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cannam@95 4396 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cannam@95 4397 if ${ac_cv_prog_cc_c89+:} false; then :
cannam@95 4398 $as_echo_n "(cached) " >&6
cannam@95 4399 else
cannam@95 4400 ac_cv_prog_cc_c89=no
cannam@95 4401 ac_save_CC=$CC
cannam@95 4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 4403 /* end confdefs.h. */
cannam@95 4404 #include <stdarg.h>
cannam@95 4405 #include <stdio.h>
cannam@95 4406 struct stat;
cannam@95 4407 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
cannam@95 4408 struct buf { int x; };
cannam@95 4409 FILE * (*rcsopen) (struct buf *, struct stat *, int);
cannam@95 4410 static char *e (p, i)
cannam@95 4411 char **p;
cannam@95 4412 int i;
cannam@95 4413 {
cannam@95 4414 return p[i];
cannam@95 4415 }
cannam@95 4416 static char *f (char * (*g) (char **, int), char **p, ...)
cannam@95 4417 {
cannam@95 4418 char *s;
cannam@95 4419 va_list v;
cannam@95 4420 va_start (v,p);
cannam@95 4421 s = g (p, va_arg (v,int));
cannam@95 4422 va_end (v);
cannam@95 4423 return s;
cannam@95 4424 }
cannam@95 4425
cannam@95 4426 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
cannam@95 4427 function prototypes and stuff, but not '\xHH' hex character constants.
cannam@95 4428 These don't provoke an error unfortunately, instead are silently treated
cannam@95 4429 as 'x'. The following induces an error, until -std is added to get
cannam@95 4430 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
cannam@95 4431 array size at least. It's necessary to write '\x00'==0 to get something
cannam@95 4432 that's true only with -std. */
cannam@95 4433 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
cannam@95 4434
cannam@95 4435 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
cannam@95 4436 inside strings and character constants. */
cannam@95 4437 #define FOO(x) 'x'
cannam@95 4438 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
cannam@95 4439
cannam@95 4440 int test (int i, double x);
cannam@95 4441 struct s1 {int (*f) (int a);};
cannam@95 4442 struct s2 {int (*f) (double a);};
cannam@95 4443 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
cannam@95 4444 int argc;
cannam@95 4445 char **argv;
cannam@95 4446 int
cannam@95 4447 main ()
cannam@95 4448 {
cannam@95 4449 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
cannam@95 4450 ;
cannam@95 4451 return 0;
cannam@95 4452 }
cannam@95 4453 _ACEOF
cannam@95 4454 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
cannam@95 4455 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
cannam@95 4456 do
cannam@95 4457 CC="$ac_save_CC $ac_arg"
cannam@95 4458 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 4459 ac_cv_prog_cc_c89=$ac_arg
cannam@95 4460 fi
cannam@95 4461 rm -f core conftest.err conftest.$ac_objext
cannam@95 4462 test "x$ac_cv_prog_cc_c89" != "xno" && break
cannam@95 4463 done
cannam@95 4464 rm -f conftest.$ac_ext
cannam@95 4465 CC=$ac_save_CC
cannam@95 4466
cannam@95 4467 fi
cannam@95 4468 # AC_CACHE_VAL
cannam@95 4469 case "x$ac_cv_prog_cc_c89" in
cannam@95 4470 x)
cannam@95 4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cannam@95 4472 $as_echo "none needed" >&6; } ;;
cannam@95 4473 xno)
cannam@95 4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cannam@95 4475 $as_echo "unsupported" >&6; } ;;
cannam@95 4476 *)
cannam@95 4477 CC="$CC $ac_cv_prog_cc_c89"
cannam@95 4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cannam@95 4479 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
cannam@95 4480 esac
cannam@95 4481 if test "x$ac_cv_prog_cc_c89" != xno; then :
cannam@95 4482
cannam@95 4483 fi
cannam@95 4484
cannam@95 4485 ac_ext=c
cannam@95 4486 ac_cpp='$CPP $CPPFLAGS'
cannam@95 4487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@95 4488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 4489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@95 4490 DEPDIR="${am__leading_dot}deps"
cannam@95 4491
cannam@95 4492 ac_config_commands="$ac_config_commands depfiles"
cannam@95 4493
cannam@95 4494
cannam@95 4495 am_make=${MAKE-make}
cannam@95 4496 cat > confinc << 'END'
cannam@95 4497 am__doit:
cannam@95 4498 @echo this is the am__doit target
cannam@95 4499 .PHONY: am__doit
cannam@95 4500 END
cannam@95 4501 # If we don't find an include directive, just comment out the code.
cannam@95 4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
cannam@95 4503 $as_echo_n "checking for style of include used by $am_make... " >&6; }
cannam@95 4504 am__include="#"
cannam@95 4505 am__quote=
cannam@95 4506 _am_result=none
cannam@95 4507 # First try GNU make style include.
cannam@95 4508 echo "include confinc" > confmf
cannam@95 4509 # Ignore all kinds of additional output from `make'.
cannam@95 4510 case `$am_make -s -f confmf 2> /dev/null` in #(
cannam@95 4511 *the\ am__doit\ target*)
cannam@95 4512 am__include=include
cannam@95 4513 am__quote=
cannam@95 4514 _am_result=GNU
cannam@95 4515 ;;
cannam@95 4516 esac
cannam@95 4517 # Now try BSD make style include.
cannam@95 4518 if test "$am__include" = "#"; then
cannam@95 4519 echo '.include "confinc"' > confmf
cannam@95 4520 case `$am_make -s -f confmf 2> /dev/null` in #(
cannam@95 4521 *the\ am__doit\ target*)
cannam@95 4522 am__include=.include
cannam@95 4523 am__quote="\""
cannam@95 4524 _am_result=BSD
cannam@95 4525 ;;
cannam@95 4526 esac
cannam@95 4527 fi
cannam@95 4528
cannam@95 4529
cannam@95 4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
cannam@95 4531 $as_echo "$_am_result" >&6; }
cannam@95 4532 rm -f confinc confmf
cannam@95 4533
cannam@95 4534 # Check whether --enable-dependency-tracking was given.
cannam@95 4535 if test "${enable_dependency_tracking+set}" = set; then :
cannam@95 4536 enableval=$enable_dependency_tracking;
cannam@95 4537 fi
cannam@95 4538
cannam@95 4539 if test "x$enable_dependency_tracking" != xno; then
cannam@95 4540 am_depcomp="$ac_aux_dir/depcomp"
cannam@95 4541 AMDEPBACKSLASH='\'
cannam@95 4542 am__nodep='_no'
cannam@95 4543 fi
cannam@95 4544 if test "x$enable_dependency_tracking" != xno; then
cannam@95 4545 AMDEP_TRUE=
cannam@95 4546 AMDEP_FALSE='#'
cannam@95 4547 else
cannam@95 4548 AMDEP_TRUE='#'
cannam@95 4549 AMDEP_FALSE=
cannam@95 4550 fi
cannam@95 4551
cannam@95 4552
cannam@95 4553
cannam@95 4554 depcc="$CC" am_compiler_list=
cannam@95 4555
cannam@95 4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cannam@95 4557 $as_echo_n "checking dependency style of $depcc... " >&6; }
cannam@95 4558 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cannam@95 4559 $as_echo_n "(cached) " >&6
cannam@95 4560 else
cannam@95 4561 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
cannam@95 4562 # We make a subdir and do the tests there. Otherwise we can end up
cannam@95 4563 # making bogus files that we don't know about and never remove. For
cannam@95 4564 # instance it was reported that on HP-UX the gcc test will end up
cannam@95 4565 # making a dummy file named `D' -- because `-MD' means `put the output
cannam@95 4566 # in D'.
cannam@95 4567 rm -rf conftest.dir
cannam@95 4568 mkdir conftest.dir
cannam@95 4569 # Copy depcomp to subdir because otherwise we won't find it if we're
cannam@95 4570 # using a relative directory.
cannam@95 4571 cp "$am_depcomp" conftest.dir
cannam@95 4572 cd conftest.dir
cannam@95 4573 # We will build objects and dependencies in a subdirectory because
cannam@95 4574 # it helps to detect inapplicable dependency modes. For instance
cannam@95 4575 # both Tru64's cc and ICC support -MD to output dependencies as a
cannam@95 4576 # side effect of compilation, but ICC will put the dependencies in
cannam@95 4577 # the current directory while Tru64 will put them in the object
cannam@95 4578 # directory.
cannam@95 4579 mkdir sub
cannam@95 4580
cannam@95 4581 am_cv_CC_dependencies_compiler_type=none
cannam@95 4582 if test "$am_compiler_list" = ""; then
cannam@95 4583 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
cannam@95 4584 fi
cannam@95 4585 am__universal=false
cannam@95 4586 case " $depcc " in #(
cannam@95 4587 *\ -arch\ *\ -arch\ *) am__universal=true ;;
cannam@95 4588 esac
cannam@95 4589
cannam@95 4590 for depmode in $am_compiler_list; do
cannam@95 4591 # Setup a source with many dependencies, because some compilers
cannam@95 4592 # like to wrap large dependency lists on column 80 (with \), and
cannam@95 4593 # we should not choose a depcomp mode which is confused by this.
cannam@95 4594 #
cannam@95 4595 # We need to recreate these files for each test, as the compiler may
cannam@95 4596 # overwrite some of them when testing with obscure command lines.
cannam@95 4597 # This happens at least with the AIX C compiler.
cannam@95 4598 : > sub/conftest.c
cannam@95 4599 for i in 1 2 3 4 5 6; do
cannam@95 4600 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cannam@95 4601 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
cannam@95 4602 # Solaris 8's {/usr,}/bin/sh.
cannam@95 4603 touch sub/conftst$i.h
cannam@95 4604 done
cannam@95 4605 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
cannam@95 4606
cannam@95 4607 # We check with `-c' and `-o' for the sake of the "dashmstdout"
cannam@95 4608 # mode. It turns out that the SunPro C++ compiler does not properly
cannam@95 4609 # handle `-M -o', and we need to detect this. Also, some Intel
cannam@95 4610 # versions had trouble with output in subdirs
cannam@95 4611 am__obj=sub/conftest.${OBJEXT-o}
cannam@95 4612 am__minus_obj="-o $am__obj"
cannam@95 4613 case $depmode in
cannam@95 4614 gcc)
cannam@95 4615 # This depmode causes a compiler race in universal mode.
cannam@95 4616 test "$am__universal" = false || continue
cannam@95 4617 ;;
cannam@95 4618 nosideeffect)
cannam@95 4619 # after this tag, mechanisms are not by side-effect, so they'll
cannam@95 4620 # only be used when explicitly requested
cannam@95 4621 if test "x$enable_dependency_tracking" = xyes; then
cannam@95 4622 continue
cannam@95 4623 else
cannam@95 4624 break
cannam@95 4625 fi
cannam@95 4626 ;;
cannam@95 4627 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cannam@95 4628 # This compiler won't grok `-c -o', but also, the minuso test has
cannam@95 4629 # not run yet. These depmodes are late enough in the game, and
cannam@95 4630 # so weak that their functioning should not be impacted.
cannam@95 4631 am__obj=conftest.${OBJEXT-o}
cannam@95 4632 am__minus_obj=
cannam@95 4633 ;;
cannam@95 4634 none) break ;;
cannam@95 4635 esac
cannam@95 4636 if depmode=$depmode \
cannam@95 4637 source=sub/conftest.c object=$am__obj \
cannam@95 4638 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cannam@95 4639 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
cannam@95 4640 >/dev/null 2>conftest.err &&
cannam@95 4641 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@95 4642 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@95 4643 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
cannam@95 4644 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
cannam@95 4645 # icc doesn't choke on unknown options, it will just issue warnings
cannam@95 4646 # or remarks (even with -Werror). So we grep stderr for any message
cannam@95 4647 # that says an option was ignored or not supported.
cannam@95 4648 # When given -MP, icc 7.0 and 7.1 complain thusly:
cannam@95 4649 # icc: Command line warning: ignoring option '-M'; no argument required
cannam@95 4650 # The diagnosis changed in icc 8.0:
cannam@95 4651 # icc: Command line remark: option '-MP' not supported
cannam@95 4652 if (grep 'ignoring option' conftest.err ||
cannam@95 4653 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
cannam@95 4654 am_cv_CC_dependencies_compiler_type=$depmode
cannam@95 4655 break
cannam@95 4656 fi
cannam@95 4657 fi
cannam@95 4658 done
cannam@95 4659
cannam@95 4660 cd ..
cannam@95 4661 rm -rf conftest.dir
cannam@95 4662 else
cannam@95 4663 am_cv_CC_dependencies_compiler_type=none
cannam@95 4664 fi
cannam@95 4665
cannam@95 4666 fi
cannam@95 4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cannam@95 4668 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
cannam@95 4669 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
cannam@95 4670
cannam@95 4671 if
cannam@95 4672 test "x$enable_dependency_tracking" != xno \
cannam@95 4673 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
cannam@95 4674 am__fastdepCC_TRUE=
cannam@95 4675 am__fastdepCC_FALSE='#'
cannam@95 4676 else
cannam@95 4677 am__fastdepCC_TRUE='#'
cannam@95 4678 am__fastdepCC_FALSE=
cannam@95 4679 fi
cannam@95 4680
cannam@95 4681
cannam@95 4682 if test "x$CC" != xcc; then
cannam@95 4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cannam@95 4684 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
cannam@95 4685 else
cannam@95 4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cannam@95 4687 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
cannam@95 4688 fi
cannam@95 4689 set dummy $CC; ac_cc=`$as_echo "$2" |
cannam@95 4690 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cannam@95 4691 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cannam@95 4692 $as_echo_n "(cached) " >&6
cannam@95 4693 else
cannam@95 4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 4695 /* end confdefs.h. */
cannam@95 4696
cannam@95 4697 int
cannam@95 4698 main ()
cannam@95 4699 {
cannam@95 4700
cannam@95 4701 ;
cannam@95 4702 return 0;
cannam@95 4703 }
cannam@95 4704 _ACEOF
cannam@95 4705 # Make sure it works both with $CC and with simple cc.
cannam@95 4706 # We do the test twice because some compilers refuse to overwrite an
cannam@95 4707 # existing .o file with -o, though they will create one.
cannam@95 4708 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
cannam@95 4709 rm -f conftest2.*
cannam@95 4710 if { { case "(($ac_try" in
cannam@95 4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@95 4712 *) ac_try_echo=$ac_try;;
cannam@95 4713 esac
cannam@95 4714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@95 4715 $as_echo "$ac_try_echo"; } >&5
cannam@95 4716 (eval "$ac_try") 2>&5
cannam@95 4717 ac_status=$?
cannam@95 4718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 4719 test $ac_status = 0; } &&
cannam@95 4720 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cannam@95 4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@95 4722 *) ac_try_echo=$ac_try;;
cannam@95 4723 esac
cannam@95 4724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@95 4725 $as_echo "$ac_try_echo"; } >&5
cannam@95 4726 (eval "$ac_try") 2>&5
cannam@95 4727 ac_status=$?
cannam@95 4728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 4729 test $ac_status = 0; };
cannam@95 4730 then
cannam@95 4731 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
cannam@95 4732 if test "x$CC" != xcc; then
cannam@95 4733 # Test first that cc exists at all.
cannam@95 4734 if { ac_try='cc -c conftest.$ac_ext >&5'
cannam@95 4735 { { case "(($ac_try" in
cannam@95 4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@95 4737 *) ac_try_echo=$ac_try;;
cannam@95 4738 esac
cannam@95 4739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@95 4740 $as_echo "$ac_try_echo"; } >&5
cannam@95 4741 (eval "$ac_try") 2>&5
cannam@95 4742 ac_status=$?
cannam@95 4743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 4744 test $ac_status = 0; }; }; then
cannam@95 4745 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
cannam@95 4746 rm -f conftest2.*
cannam@95 4747 if { { case "(($ac_try" in
cannam@95 4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@95 4749 *) ac_try_echo=$ac_try;;
cannam@95 4750 esac
cannam@95 4751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@95 4752 $as_echo "$ac_try_echo"; } >&5
cannam@95 4753 (eval "$ac_try") 2>&5
cannam@95 4754 ac_status=$?
cannam@95 4755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 4756 test $ac_status = 0; } &&
cannam@95 4757 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cannam@95 4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@95 4759 *) ac_try_echo=$ac_try;;
cannam@95 4760 esac
cannam@95 4761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@95 4762 $as_echo "$ac_try_echo"; } >&5
cannam@95 4763 (eval "$ac_try") 2>&5
cannam@95 4764 ac_status=$?
cannam@95 4765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 4766 test $ac_status = 0; };
cannam@95 4767 then
cannam@95 4768 # cc works too.
cannam@95 4769 :
cannam@95 4770 else
cannam@95 4771 # cc exists but doesn't like -o.
cannam@95 4772 eval ac_cv_prog_cc_${ac_cc}_c_o=no
cannam@95 4773 fi
cannam@95 4774 fi
cannam@95 4775 fi
cannam@95 4776 else
cannam@95 4777 eval ac_cv_prog_cc_${ac_cc}_c_o=no
cannam@95 4778 fi
cannam@95 4779 rm -f core conftest*
cannam@95 4780
cannam@95 4781 fi
cannam@95 4782 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cannam@95 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@95 4784 $as_echo "yes" >&6; }
cannam@95 4785 else
cannam@95 4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 4787 $as_echo "no" >&6; }
cannam@95 4788
cannam@95 4789 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cannam@95 4790
cannam@95 4791 fi
cannam@95 4792
cannam@95 4793 # FIXME: we rely on the cache variable name because
cannam@95 4794 # there is no other way.
cannam@95 4795 set dummy $CC
cannam@95 4796 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cannam@95 4797 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
cannam@95 4798 if test "$am_t" != yes; then
cannam@95 4799 # Losing compiler, so override with the script.
cannam@95 4800 # FIXME: It is wrong to rewrite CC.
cannam@95 4801 # But if we don't then we get into trouble of one sort or another.
cannam@95 4802 # A longer-term fix would be to have automake use am__CC in this case,
cannam@95 4803 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
cannam@95 4804 CC="$am_aux_dir/compile $CC"
cannam@95 4805 fi
cannam@95 4806
cannam@95 4807
cannam@95 4808
cannam@95 4809
cannam@95 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
cannam@95 4811 $as_echo_n "checking for C compiler vendor... " >&6; }
cannam@95 4812 if ${ax_cv_c_compiler_vendor+:} false; then :
cannam@95 4813 $as_echo_n "(cached) " >&6
cannam@95 4814 else
cannam@95 4815 ax_cv_c_compiler_vendor=unknown
cannam@95 4816 # note: don't check for gcc first since some other compilers define __GNUC__
cannam@95 4817 for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do
cannam@95 4818 vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
cannam@95 4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 4820 /* end confdefs.h. */
cannam@95 4821
cannam@95 4822 int
cannam@95 4823 main ()
cannam@95 4824 {
cannam@95 4825
cannam@95 4826 #if !($vencpp)
cannam@95 4827 thisisanerror;
cannam@95 4828 #endif
cannam@95 4829
cannam@95 4830 ;
cannam@95 4831 return 0;
cannam@95 4832 }
cannam@95 4833 _ACEOF
cannam@95 4834 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 4835 ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break
cannam@95 4836 fi
cannam@95 4837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 4838 done
cannam@95 4839
cannam@95 4840 fi
cannam@95 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
cannam@95 4842 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
cannam@95 4843
cannam@95 4844 case $ac_cv_prog_cc_stdc in #(
cannam@95 4845 no) :
cannam@95 4846 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
cannam@95 4847 *) :
cannam@95 4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cannam@95 4849 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cannam@95 4850 if ${ac_cv_prog_cc_c99+:} false; then :
cannam@95 4851 $as_echo_n "(cached) " >&6
cannam@95 4852 else
cannam@95 4853 ac_cv_prog_cc_c99=no
cannam@95 4854 ac_save_CC=$CC
cannam@95 4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 4856 /* end confdefs.h. */
cannam@95 4857 #include <stdarg.h>
cannam@95 4858 #include <stdbool.h>
cannam@95 4859 #include <stdlib.h>
cannam@95 4860 #include <wchar.h>
cannam@95 4861 #include <stdio.h>
cannam@95 4862
cannam@95 4863 // Check varargs macros. These examples are taken from C99 6.10.3.5.
cannam@95 4864 #define debug(...) fprintf (stderr, __VA_ARGS__)
cannam@95 4865 #define showlist(...) puts (#__VA_ARGS__)
cannam@95 4866 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
cannam@95 4867 static void
cannam@95 4868 test_varargs_macros (void)
cannam@95 4869 {
cannam@95 4870 int x = 1234;
cannam@95 4871 int y = 5678;
cannam@95 4872 debug ("Flag");
cannam@95 4873 debug ("X = %d\n", x);
cannam@95 4874 showlist (The first, second, and third items.);
cannam@95 4875 report (x>y, "x is %d but y is %d", x, y);
cannam@95 4876 }
cannam@95 4877
cannam@95 4878 // Check long long types.
cannam@95 4879 #define BIG64 18446744073709551615ull
cannam@95 4880 #define BIG32 4294967295ul
cannam@95 4881 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
cannam@95 4882 #if !BIG_OK
cannam@95 4883 your preprocessor is broken;
cannam@95 4884 #endif
cannam@95 4885 #if BIG_OK
cannam@95 4886 #else
cannam@95 4887 your preprocessor is broken;
cannam@95 4888 #endif
cannam@95 4889 static long long int bignum = -9223372036854775807LL;
cannam@95 4890 static unsigned long long int ubignum = BIG64;
cannam@95 4891
cannam@95 4892 struct incomplete_array
cannam@95 4893 {
cannam@95 4894 int datasize;
cannam@95 4895 double data[];
cannam@95 4896 };
cannam@95 4897
cannam@95 4898 struct named_init {
cannam@95 4899 int number;
cannam@95 4900 const wchar_t *name;
cannam@95 4901 double average;
cannam@95 4902 };
cannam@95 4903
cannam@95 4904 typedef const char *ccp;
cannam@95 4905
cannam@95 4906 static inline int
cannam@95 4907 test_restrict (ccp restrict text)
cannam@95 4908 {
cannam@95 4909 // See if C++-style comments work.
cannam@95 4910 // Iterate through items via the restricted pointer.
cannam@95 4911 // Also check for declarations in for loops.
cannam@95 4912 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
cannam@95 4913 continue;
cannam@95 4914 return 0;
cannam@95 4915 }
cannam@95 4916
cannam@95 4917 // Check varargs and va_copy.
cannam@95 4918 static void
cannam@95 4919 test_varargs (const char *format, ...)
cannam@95 4920 {
cannam@95 4921 va_list args;
cannam@95 4922 va_start (args, format);
cannam@95 4923 va_list args_copy;
cannam@95 4924 va_copy (args_copy, args);
cannam@95 4925
cannam@95 4926 const char *str;
cannam@95 4927 int number;
cannam@95 4928 float fnumber;
cannam@95 4929
cannam@95 4930 while (*format)
cannam@95 4931 {
cannam@95 4932 switch (*format++)
cannam@95 4933 {
cannam@95 4934 case 's': // string
cannam@95 4935 str = va_arg (args_copy, const char *);
cannam@95 4936 break;
cannam@95 4937 case 'd': // int
cannam@95 4938 number = va_arg (args_copy, int);
cannam@95 4939 break;
cannam@95 4940 case 'f': // float
cannam@95 4941 fnumber = va_arg (args_copy, double);
cannam@95 4942 break;
cannam@95 4943 default:
cannam@95 4944 break;
cannam@95 4945 }
cannam@95 4946 }
cannam@95 4947 va_end (args_copy);
cannam@95 4948 va_end (args);
cannam@95 4949 }
cannam@95 4950
cannam@95 4951 int
cannam@95 4952 main ()
cannam@95 4953 {
cannam@95 4954
cannam@95 4955 // Check bool.
cannam@95 4956 _Bool success = false;
cannam@95 4957
cannam@95 4958 // Check restrict.
cannam@95 4959 if (test_restrict ("String literal") == 0)
cannam@95 4960 success = true;
cannam@95 4961 char *restrict newvar = "Another string";
cannam@95 4962
cannam@95 4963 // Check varargs.
cannam@95 4964 test_varargs ("s, d' f .", "string", 65, 34.234);
cannam@95 4965 test_varargs_macros ();
cannam@95 4966
cannam@95 4967 // Check flexible array members.
cannam@95 4968 struct incomplete_array *ia =
cannam@95 4969 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
cannam@95 4970 ia->datasize = 10;
cannam@95 4971 for (int i = 0; i < ia->datasize; ++i)
cannam@95 4972 ia->data[i] = i * 1.234;
cannam@95 4973
cannam@95 4974 // Check named initializers.
cannam@95 4975 struct named_init ni = {
cannam@95 4976 .number = 34,
cannam@95 4977 .name = L"Test wide string",
cannam@95 4978 .average = 543.34343,
cannam@95 4979 };
cannam@95 4980
cannam@95 4981 ni.number = 58;
cannam@95 4982
cannam@95 4983 int dynamic_array[ni.number];
cannam@95 4984 dynamic_array[ni.number - 1] = 543;
cannam@95 4985
cannam@95 4986 // work around unused variable warnings
cannam@95 4987 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
cannam@95 4988 || dynamic_array[ni.number - 1] != 543);
cannam@95 4989
cannam@95 4990 ;
cannam@95 4991 return 0;
cannam@95 4992 }
cannam@95 4993 _ACEOF
cannam@95 4994 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cannam@95 4995 do
cannam@95 4996 CC="$ac_save_CC $ac_arg"
cannam@95 4997 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 4998 ac_cv_prog_cc_c99=$ac_arg
cannam@95 4999 fi
cannam@95 5000 rm -f core conftest.err conftest.$ac_objext
cannam@95 5001 test "x$ac_cv_prog_cc_c99" != "xno" && break
cannam@95 5002 done
cannam@95 5003 rm -f conftest.$ac_ext
cannam@95 5004 CC=$ac_save_CC
cannam@95 5005
cannam@95 5006 fi
cannam@95 5007 # AC_CACHE_VAL
cannam@95 5008 case "x$ac_cv_prog_cc_c99" in
cannam@95 5009 x)
cannam@95 5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cannam@95 5011 $as_echo "none needed" >&6; } ;;
cannam@95 5012 xno)
cannam@95 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cannam@95 5014 $as_echo "unsupported" >&6; } ;;
cannam@95 5015 *)
cannam@95 5016 CC="$CC $ac_cv_prog_cc_c99"
cannam@95 5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cannam@95 5018 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
cannam@95 5019 esac
cannam@95 5020 if test "x$ac_cv_prog_cc_c99" != xno; then :
cannam@95 5021 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
cannam@95 5022 else
cannam@95 5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cannam@95 5024 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cannam@95 5025 if ${ac_cv_prog_cc_c89+:} false; then :
cannam@95 5026 $as_echo_n "(cached) " >&6
cannam@95 5027 else
cannam@95 5028 ac_cv_prog_cc_c89=no
cannam@95 5029 ac_save_CC=$CC
cannam@95 5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 5031 /* end confdefs.h. */
cannam@95 5032 #include <stdarg.h>
cannam@95 5033 #include <stdio.h>
cannam@95 5034 struct stat;
cannam@95 5035 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
cannam@95 5036 struct buf { int x; };
cannam@95 5037 FILE * (*rcsopen) (struct buf *, struct stat *, int);
cannam@95 5038 static char *e (p, i)
cannam@95 5039 char **p;
cannam@95 5040 int i;
cannam@95 5041 {
cannam@95 5042 return p[i];
cannam@95 5043 }
cannam@95 5044 static char *f (char * (*g) (char **, int), char **p, ...)
cannam@95 5045 {
cannam@95 5046 char *s;
cannam@95 5047 va_list v;
cannam@95 5048 va_start (v,p);
cannam@95 5049 s = g (p, va_arg (v,int));
cannam@95 5050 va_end (v);
cannam@95 5051 return s;
cannam@95 5052 }
cannam@95 5053
cannam@95 5054 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
cannam@95 5055 function prototypes and stuff, but not '\xHH' hex character constants.
cannam@95 5056 These don't provoke an error unfortunately, instead are silently treated
cannam@95 5057 as 'x'. The following induces an error, until -std is added to get
cannam@95 5058 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
cannam@95 5059 array size at least. It's necessary to write '\x00'==0 to get something
cannam@95 5060 that's true only with -std. */
cannam@95 5061 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
cannam@95 5062
cannam@95 5063 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
cannam@95 5064 inside strings and character constants. */
cannam@95 5065 #define FOO(x) 'x'
cannam@95 5066 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
cannam@95 5067
cannam@95 5068 int test (int i, double x);
cannam@95 5069 struct s1 {int (*f) (int a);};
cannam@95 5070 struct s2 {int (*f) (double a);};
cannam@95 5071 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
cannam@95 5072 int argc;
cannam@95 5073 char **argv;
cannam@95 5074 int
cannam@95 5075 main ()
cannam@95 5076 {
cannam@95 5077 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
cannam@95 5078 ;
cannam@95 5079 return 0;
cannam@95 5080 }
cannam@95 5081 _ACEOF
cannam@95 5082 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
cannam@95 5083 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
cannam@95 5084 do
cannam@95 5085 CC="$ac_save_CC $ac_arg"
cannam@95 5086 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 5087 ac_cv_prog_cc_c89=$ac_arg
cannam@95 5088 fi
cannam@95 5089 rm -f core conftest.err conftest.$ac_objext
cannam@95 5090 test "x$ac_cv_prog_cc_c89" != "xno" && break
cannam@95 5091 done
cannam@95 5092 rm -f conftest.$ac_ext
cannam@95 5093 CC=$ac_save_CC
cannam@95 5094
cannam@95 5095 fi
cannam@95 5096 # AC_CACHE_VAL
cannam@95 5097 case "x$ac_cv_prog_cc_c89" in
cannam@95 5098 x)
cannam@95 5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cannam@95 5100 $as_echo "none needed" >&6; } ;;
cannam@95 5101 xno)
cannam@95 5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cannam@95 5103 $as_echo "unsupported" >&6; } ;;
cannam@95 5104 *)
cannam@95 5105 CC="$CC $ac_cv_prog_cc_c89"
cannam@95 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cannam@95 5107 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
cannam@95 5108 esac
cannam@95 5109 if test "x$ac_cv_prog_cc_c89" != xno; then :
cannam@95 5110 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
cannam@95 5111 else
cannam@95 5112 ac_cv_prog_cc_stdc=no
cannam@95 5113 fi
cannam@95 5114
cannam@95 5115 fi
cannam@95 5116 ;;
cannam@95 5117 esac
cannam@95 5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cannam@95 5119 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cannam@95 5120 if ${ac_cv_prog_cc_stdc+:} false; then :
cannam@95 5121 $as_echo_n "(cached) " >&6
cannam@95 5122 fi
cannam@95 5123
cannam@95 5124 case $ac_cv_prog_cc_stdc in #(
cannam@95 5125 no) :
cannam@95 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cannam@95 5127 $as_echo "unsupported" >&6; } ;; #(
cannam@95 5128 '') :
cannam@95 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cannam@95 5130 $as_echo "none needed" >&6; } ;; #(
cannam@95 5131 *) :
cannam@95 5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cannam@95 5133 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
cannam@95 5134 esac
cannam@95 5135
cannam@95 5136
cannam@95 5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cannam@95 5138 $as_echo_n "checking whether ln -s works... " >&6; }
cannam@95 5139 LN_S=$as_ln_s
cannam@95 5140 if test "$LN_S" = "ln -s"; then
cannam@95 5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@95 5142 $as_echo "yes" >&6; }
cannam@95 5143 else
cannam@95 5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cannam@95 5145 $as_echo "no, using $LN_S" >&6; }
cannam@95 5146 fi
cannam@95 5147
cannam@95 5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cannam@95 5149 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
cannam@95 5150 set x ${MAKE-make}
cannam@95 5151 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cannam@95 5152 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cannam@95 5153 $as_echo_n "(cached) " >&6
cannam@95 5154 else
cannam@95 5155 cat >conftest.make <<\_ACEOF
cannam@95 5156 SHELL = /bin/sh
cannam@95 5157 all:
cannam@95 5158 @echo '@@@%%%=$(MAKE)=@@@%%%'
cannam@95 5159 _ACEOF
cannam@95 5160 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cannam@95 5161 case `${MAKE-make} -f conftest.make 2>/dev/null` in
cannam@95 5162 *@@@%%%=?*=@@@%%%*)
cannam@95 5163 eval ac_cv_prog_make_${ac_make}_set=yes;;
cannam@95 5164 *)
cannam@95 5165 eval ac_cv_prog_make_${ac_make}_set=no;;
cannam@95 5166 esac
cannam@95 5167 rm -f conftest.make
cannam@95 5168 fi
cannam@95 5169 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cannam@95 5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@95 5171 $as_echo "yes" >&6; }
cannam@95 5172 SET_MAKE=
cannam@95 5173 else
cannam@95 5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 5175 $as_echo "no" >&6; }
cannam@95 5176 SET_MAKE="MAKE=${MAKE-make}"
cannam@95 5177 fi
cannam@95 5178
cannam@95 5179 enable_win32_dll=yes
cannam@95 5180
cannam@95 5181 case $host in
cannam@95 5182 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cannam@95 5183 if test -n "$ac_tool_prefix"; then
cannam@95 5184 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
cannam@95 5185 set dummy ${ac_tool_prefix}as; ac_word=$2
cannam@95 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 5187 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 5188 if ${ac_cv_prog_AS+:} false; then :
cannam@95 5189 $as_echo_n "(cached) " >&6
cannam@95 5190 else
cannam@95 5191 if test -n "$AS"; then
cannam@95 5192 ac_cv_prog_AS="$AS" # Let the user override the test.
cannam@95 5193 else
cannam@95 5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 5195 for as_dir in $PATH
cannam@95 5196 do
cannam@95 5197 IFS=$as_save_IFS
cannam@95 5198 test -z "$as_dir" && as_dir=.
cannam@95 5199 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 5200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 5201 ac_cv_prog_AS="${ac_tool_prefix}as"
cannam@95 5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 5203 break 2
cannam@95 5204 fi
cannam@95 5205 done
cannam@95 5206 done
cannam@95 5207 IFS=$as_save_IFS
cannam@95 5208
cannam@95 5209 fi
cannam@95 5210 fi
cannam@95 5211 AS=$ac_cv_prog_AS
cannam@95 5212 if test -n "$AS"; then
cannam@95 5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cannam@95 5214 $as_echo "$AS" >&6; }
cannam@95 5215 else
cannam@95 5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 5217 $as_echo "no" >&6; }
cannam@95 5218 fi
cannam@95 5219
cannam@95 5220
cannam@95 5221 fi
cannam@95 5222 if test -z "$ac_cv_prog_AS"; then
cannam@95 5223 ac_ct_AS=$AS
cannam@95 5224 # Extract the first word of "as", so it can be a program name with args.
cannam@95 5225 set dummy as; ac_word=$2
cannam@95 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 5227 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 5228 if ${ac_cv_prog_ac_ct_AS+:} false; then :
cannam@95 5229 $as_echo_n "(cached) " >&6
cannam@95 5230 else
cannam@95 5231 if test -n "$ac_ct_AS"; then
cannam@95 5232 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
cannam@95 5233 else
cannam@95 5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 5235 for as_dir in $PATH
cannam@95 5236 do
cannam@95 5237 IFS=$as_save_IFS
cannam@95 5238 test -z "$as_dir" && as_dir=.
cannam@95 5239 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 5240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 5241 ac_cv_prog_ac_ct_AS="as"
cannam@95 5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 5243 break 2
cannam@95 5244 fi
cannam@95 5245 done
cannam@95 5246 done
cannam@95 5247 IFS=$as_save_IFS
cannam@95 5248
cannam@95 5249 fi
cannam@95 5250 fi
cannam@95 5251 ac_ct_AS=$ac_cv_prog_ac_ct_AS
cannam@95 5252 if test -n "$ac_ct_AS"; then
cannam@95 5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cannam@95 5254 $as_echo "$ac_ct_AS" >&6; }
cannam@95 5255 else
cannam@95 5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 5257 $as_echo "no" >&6; }
cannam@95 5258 fi
cannam@95 5259
cannam@95 5260 if test "x$ac_ct_AS" = x; then
cannam@95 5261 AS="false"
cannam@95 5262 else
cannam@95 5263 case $cross_compiling:$ac_tool_warned in
cannam@95 5264 yes:)
cannam@95 5265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@95 5266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@95 5267 ac_tool_warned=yes ;;
cannam@95 5268 esac
cannam@95 5269 AS=$ac_ct_AS
cannam@95 5270 fi
cannam@95 5271 else
cannam@95 5272 AS="$ac_cv_prog_AS"
cannam@95 5273 fi
cannam@95 5274
cannam@95 5275 if test -n "$ac_tool_prefix"; then
cannam@95 5276 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
cannam@95 5277 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cannam@95 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 5279 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 5280 if ${ac_cv_prog_DLLTOOL+:} false; then :
cannam@95 5281 $as_echo_n "(cached) " >&6
cannam@95 5282 else
cannam@95 5283 if test -n "$DLLTOOL"; then
cannam@95 5284 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
cannam@95 5285 else
cannam@95 5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 5287 for as_dir in $PATH
cannam@95 5288 do
cannam@95 5289 IFS=$as_save_IFS
cannam@95 5290 test -z "$as_dir" && as_dir=.
cannam@95 5291 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 5292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 5293 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cannam@95 5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 5295 break 2
cannam@95 5296 fi
cannam@95 5297 done
cannam@95 5298 done
cannam@95 5299 IFS=$as_save_IFS
cannam@95 5300
cannam@95 5301 fi
cannam@95 5302 fi
cannam@95 5303 DLLTOOL=$ac_cv_prog_DLLTOOL
cannam@95 5304 if test -n "$DLLTOOL"; then
cannam@95 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cannam@95 5306 $as_echo "$DLLTOOL" >&6; }
cannam@95 5307 else
cannam@95 5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 5309 $as_echo "no" >&6; }
cannam@95 5310 fi
cannam@95 5311
cannam@95 5312
cannam@95 5313 fi
cannam@95 5314 if test -z "$ac_cv_prog_DLLTOOL"; then
cannam@95 5315 ac_ct_DLLTOOL=$DLLTOOL
cannam@95 5316 # Extract the first word of "dlltool", so it can be a program name with args.
cannam@95 5317 set dummy dlltool; ac_word=$2
cannam@95 5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 5319 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 5320 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cannam@95 5321 $as_echo_n "(cached) " >&6
cannam@95 5322 else
cannam@95 5323 if test -n "$ac_ct_DLLTOOL"; then
cannam@95 5324 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
cannam@95 5325 else
cannam@95 5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 5327 for as_dir in $PATH
cannam@95 5328 do
cannam@95 5329 IFS=$as_save_IFS
cannam@95 5330 test -z "$as_dir" && as_dir=.
cannam@95 5331 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 5332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 5333 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cannam@95 5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 5335 break 2
cannam@95 5336 fi
cannam@95 5337 done
cannam@95 5338 done
cannam@95 5339 IFS=$as_save_IFS
cannam@95 5340
cannam@95 5341 fi
cannam@95 5342 fi
cannam@95 5343 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
cannam@95 5344 if test -n "$ac_ct_DLLTOOL"; then
cannam@95 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cannam@95 5346 $as_echo "$ac_ct_DLLTOOL" >&6; }
cannam@95 5347 else
cannam@95 5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 5349 $as_echo "no" >&6; }
cannam@95 5350 fi
cannam@95 5351
cannam@95 5352 if test "x$ac_ct_DLLTOOL" = x; then
cannam@95 5353 DLLTOOL="false"
cannam@95 5354 else
cannam@95 5355 case $cross_compiling:$ac_tool_warned in
cannam@95 5356 yes:)
cannam@95 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@95 5358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@95 5359 ac_tool_warned=yes ;;
cannam@95 5360 esac
cannam@95 5361 DLLTOOL=$ac_ct_DLLTOOL
cannam@95 5362 fi
cannam@95 5363 else
cannam@95 5364 DLLTOOL="$ac_cv_prog_DLLTOOL"
cannam@95 5365 fi
cannam@95 5366
cannam@95 5367 if test -n "$ac_tool_prefix"; then
cannam@95 5368 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
cannam@95 5369 set dummy ${ac_tool_prefix}objdump; ac_word=$2
cannam@95 5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 5371 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 5372 if ${ac_cv_prog_OBJDUMP+:} false; then :
cannam@95 5373 $as_echo_n "(cached) " >&6
cannam@95 5374 else
cannam@95 5375 if test -n "$OBJDUMP"; then
cannam@95 5376 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
cannam@95 5377 else
cannam@95 5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 5379 for as_dir in $PATH
cannam@95 5380 do
cannam@95 5381 IFS=$as_save_IFS
cannam@95 5382 test -z "$as_dir" && as_dir=.
cannam@95 5383 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 5384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 5385 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cannam@95 5386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 5387 break 2
cannam@95 5388 fi
cannam@95 5389 done
cannam@95 5390 done
cannam@95 5391 IFS=$as_save_IFS
cannam@95 5392
cannam@95 5393 fi
cannam@95 5394 fi
cannam@95 5395 OBJDUMP=$ac_cv_prog_OBJDUMP
cannam@95 5396 if test -n "$OBJDUMP"; then
cannam@95 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cannam@95 5398 $as_echo "$OBJDUMP" >&6; }
cannam@95 5399 else
cannam@95 5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 5401 $as_echo "no" >&6; }
cannam@95 5402 fi
cannam@95 5403
cannam@95 5404
cannam@95 5405 fi
cannam@95 5406 if test -z "$ac_cv_prog_OBJDUMP"; then
cannam@95 5407 ac_ct_OBJDUMP=$OBJDUMP
cannam@95 5408 # Extract the first word of "objdump", so it can be a program name with args.
cannam@95 5409 set dummy objdump; ac_word=$2
cannam@95 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 5411 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 5412 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cannam@95 5413 $as_echo_n "(cached) " >&6
cannam@95 5414 else
cannam@95 5415 if test -n "$ac_ct_OBJDUMP"; then
cannam@95 5416 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
cannam@95 5417 else
cannam@95 5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 5419 for as_dir in $PATH
cannam@95 5420 do
cannam@95 5421 IFS=$as_save_IFS
cannam@95 5422 test -z "$as_dir" && as_dir=.
cannam@95 5423 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 5424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 5425 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cannam@95 5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 5427 break 2
cannam@95 5428 fi
cannam@95 5429 done
cannam@95 5430 done
cannam@95 5431 IFS=$as_save_IFS
cannam@95 5432
cannam@95 5433 fi
cannam@95 5434 fi
cannam@95 5435 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
cannam@95 5436 if test -n "$ac_ct_OBJDUMP"; then
cannam@95 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cannam@95 5438 $as_echo "$ac_ct_OBJDUMP" >&6; }
cannam@95 5439 else
cannam@95 5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 5441 $as_echo "no" >&6; }
cannam@95 5442 fi
cannam@95 5443
cannam@95 5444 if test "x$ac_ct_OBJDUMP" = x; then
cannam@95 5445 OBJDUMP="false"
cannam@95 5446 else
cannam@95 5447 case $cross_compiling:$ac_tool_warned in
cannam@95 5448 yes:)
cannam@95 5449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@95 5450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@95 5451 ac_tool_warned=yes ;;
cannam@95 5452 esac
cannam@95 5453 OBJDUMP=$ac_ct_OBJDUMP
cannam@95 5454 fi
cannam@95 5455 else
cannam@95 5456 OBJDUMP="$ac_cv_prog_OBJDUMP"
cannam@95 5457 fi
cannam@95 5458
cannam@95 5459 ;;
cannam@95 5460 esac
cannam@95 5461
cannam@95 5462 test -z "$AS" && AS=as
cannam@95 5463
cannam@95 5464
cannam@95 5465
cannam@95 5466
cannam@95 5467
cannam@95 5468 test -z "$DLLTOOL" && DLLTOOL=dlltool
cannam@95 5469
cannam@95 5470
cannam@95 5471
cannam@95 5472
cannam@95 5473
cannam@95 5474 test -z "$OBJDUMP" && OBJDUMP=objdump
cannam@95 5475
cannam@95 5476
cannam@95 5477
cannam@95 5478
cannam@95 5479
cannam@95 5480
cannam@95 5481
cannam@95 5482 case `pwd` in
cannam@95 5483 *\ * | *\ *)
cannam@95 5484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cannam@95 5485 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
cannam@95 5486 esac
cannam@95 5487
cannam@95 5488
cannam@95 5489
cannam@95 5490 macro_version='2.4.2'
cannam@95 5491 macro_revision='1.3337'
cannam@95 5492
cannam@95 5493
cannam@95 5494
cannam@95 5495
cannam@95 5496
cannam@95 5497
cannam@95 5498
cannam@95 5499
cannam@95 5500
cannam@95 5501
cannam@95 5502
cannam@95 5503
cannam@95 5504
cannam@95 5505 ltmain="$ac_aux_dir/ltmain.sh"
cannam@95 5506
cannam@95 5507 # Backslashify metacharacters that are still active within
cannam@95 5508 # double-quoted strings.
cannam@95 5509 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
cannam@95 5510
cannam@95 5511 # Same as above, but do not quote variable references.
cannam@95 5512 double_quote_subst='s/\(["`\\]\)/\\\1/g'
cannam@95 5513
cannam@95 5514 # Sed substitution to delay expansion of an escaped shell variable in a
cannam@95 5515 # double_quote_subst'ed string.
cannam@95 5516 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
cannam@95 5517
cannam@95 5518 # Sed substitution to delay expansion of an escaped single quote.
cannam@95 5519 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
cannam@95 5520
cannam@95 5521 # Sed substitution to avoid accidental globbing in evaled expressions
cannam@95 5522 no_glob_subst='s/\*/\\\*/g'
cannam@95 5523
cannam@95 5524 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@95 5525 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
cannam@95 5526 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
cannam@95 5527
cannam@95 5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
cannam@95 5529 $as_echo_n "checking how to print strings... " >&6; }
cannam@95 5530 # Test print first, because it will be a builtin if present.
cannam@95 5531 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cannam@95 5532 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
cannam@95 5533 ECHO='print -r --'
cannam@95 5534 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
cannam@95 5535 ECHO='printf %s\n'
cannam@95 5536 else
cannam@95 5537 # Use this function as a fallback that always works.
cannam@95 5538 func_fallback_echo ()
cannam@95 5539 {
cannam@95 5540 eval 'cat <<_LTECHO_EOF
cannam@95 5541 $1
cannam@95 5542 _LTECHO_EOF'
cannam@95 5543 }
cannam@95 5544 ECHO='func_fallback_echo'
cannam@95 5545 fi
cannam@95 5546
cannam@95 5547 # func_echo_all arg...
cannam@95 5548 # Invoke $ECHO with all args, space-separated.
cannam@95 5549 func_echo_all ()
cannam@95 5550 {
cannam@95 5551 $ECHO ""
cannam@95 5552 }
cannam@95 5553
cannam@95 5554 case "$ECHO" in
cannam@95 5555 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
cannam@95 5556 $as_echo "printf" >&6; } ;;
cannam@95 5557 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
cannam@95 5558 $as_echo "print -r" >&6; } ;;
cannam@95 5559 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
cannam@95 5560 $as_echo "cat" >&6; } ;;
cannam@95 5561 esac
cannam@95 5562
cannam@95 5563
cannam@95 5564
cannam@95 5565
cannam@95 5566
cannam@95 5567
cannam@95 5568
cannam@95 5569
cannam@95 5570
cannam@95 5571
cannam@95 5572
cannam@95 5573
cannam@95 5574
cannam@95 5575
cannam@95 5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cannam@95 5577 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
cannam@95 5578 if ${ac_cv_path_SED+:} false; then :
cannam@95 5579 $as_echo_n "(cached) " >&6
cannam@95 5580 else
cannam@95 5581 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
cannam@95 5582 for ac_i in 1 2 3 4 5 6 7; do
cannam@95 5583 ac_script="$ac_script$as_nl$ac_script"
cannam@95 5584 done
cannam@95 5585 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cannam@95 5586 { ac_script=; unset ac_script;}
cannam@95 5587 if test -z "$SED"; then
cannam@95 5588 ac_path_SED_found=false
cannam@95 5589 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@95 5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 5591 for as_dir in $PATH
cannam@95 5592 do
cannam@95 5593 IFS=$as_save_IFS
cannam@95 5594 test -z "$as_dir" && as_dir=.
cannam@95 5595 for ac_prog in sed gsed; do
cannam@95 5596 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 5597 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cannam@95 5598 as_fn_executable_p "$ac_path_SED" || continue
cannam@95 5599 # Check for GNU ac_path_SED and select it if it is found.
cannam@95 5600 # Check for GNU $ac_path_SED
cannam@95 5601 case `"$ac_path_SED" --version 2>&1` in
cannam@95 5602 *GNU*)
cannam@95 5603 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
cannam@95 5604 *)
cannam@95 5605 ac_count=0
cannam@95 5606 $as_echo_n 0123456789 >"conftest.in"
cannam@95 5607 while :
cannam@95 5608 do
cannam@95 5609 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@95 5610 mv "conftest.tmp" "conftest.in"
cannam@95 5611 cp "conftest.in" "conftest.nl"
cannam@95 5612 $as_echo '' >> "conftest.nl"
cannam@95 5613 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@95 5614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@95 5615 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@95 5616 if test $ac_count -gt ${ac_path_SED_max-0}; then
cannam@95 5617 # Best one so far, save it but keep looking for a better one
cannam@95 5618 ac_cv_path_SED="$ac_path_SED"
cannam@95 5619 ac_path_SED_max=$ac_count
cannam@95 5620 fi
cannam@95 5621 # 10*(2^10) chars as input seems more than enough
cannam@95 5622 test $ac_count -gt 10 && break
cannam@95 5623 done
cannam@95 5624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@95 5625 esac
cannam@95 5626
cannam@95 5627 $ac_path_SED_found && break 3
cannam@95 5628 done
cannam@95 5629 done
cannam@95 5630 done
cannam@95 5631 IFS=$as_save_IFS
cannam@95 5632 if test -z "$ac_cv_path_SED"; then
cannam@95 5633 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cannam@95 5634 fi
cannam@95 5635 else
cannam@95 5636 ac_cv_path_SED=$SED
cannam@95 5637 fi
cannam@95 5638
cannam@95 5639 fi
cannam@95 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cannam@95 5641 $as_echo "$ac_cv_path_SED" >&6; }
cannam@95 5642 SED="$ac_cv_path_SED"
cannam@95 5643 rm -f conftest.sed
cannam@95 5644
cannam@95 5645 test -z "$SED" && SED=sed
cannam@95 5646 Xsed="$SED -e 1s/^X//"
cannam@95 5647
cannam@95 5648
cannam@95 5649
cannam@95 5650
cannam@95 5651
cannam@95 5652
cannam@95 5653
cannam@95 5654
cannam@95 5655
cannam@95 5656
cannam@95 5657
cannam@95 5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
cannam@95 5659 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cannam@95 5660 if ${ac_cv_path_GREP+:} false; then :
cannam@95 5661 $as_echo_n "(cached) " >&6
cannam@95 5662 else
cannam@95 5663 if test -z "$GREP"; then
cannam@95 5664 ac_path_GREP_found=false
cannam@95 5665 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@95 5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 5667 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@95 5668 do
cannam@95 5669 IFS=$as_save_IFS
cannam@95 5670 test -z "$as_dir" && as_dir=.
cannam@95 5671 for ac_prog in grep ggrep; do
cannam@95 5672 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 5673 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@95 5674 as_fn_executable_p "$ac_path_GREP" || continue
cannam@95 5675 # Check for GNU ac_path_GREP and select it if it is found.
cannam@95 5676 # Check for GNU $ac_path_GREP
cannam@95 5677 case `"$ac_path_GREP" --version 2>&1` in
cannam@95 5678 *GNU*)
cannam@95 5679 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
cannam@95 5680 *)
cannam@95 5681 ac_count=0
cannam@95 5682 $as_echo_n 0123456789 >"conftest.in"
cannam@95 5683 while :
cannam@95 5684 do
cannam@95 5685 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@95 5686 mv "conftest.tmp" "conftest.in"
cannam@95 5687 cp "conftest.in" "conftest.nl"
cannam@95 5688 $as_echo 'GREP' >> "conftest.nl"
cannam@95 5689 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@95 5690 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@95 5691 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@95 5692 if test $ac_count -gt ${ac_path_GREP_max-0}; then
cannam@95 5693 # Best one so far, save it but keep looking for a better one
cannam@95 5694 ac_cv_path_GREP="$ac_path_GREP"
cannam@95 5695 ac_path_GREP_max=$ac_count
cannam@95 5696 fi
cannam@95 5697 # 10*(2^10) chars as input seems more than enough
cannam@95 5698 test $ac_count -gt 10 && break
cannam@95 5699 done
cannam@95 5700 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@95 5701 esac
cannam@95 5702
cannam@95 5703 $ac_path_GREP_found && break 3
cannam@95 5704 done
cannam@95 5705 done
cannam@95 5706 done
cannam@95 5707 IFS=$as_save_IFS
cannam@95 5708 if test -z "$ac_cv_path_GREP"; then
cannam@95 5709 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@95 5710 fi
cannam@95 5711 else
cannam@95 5712 ac_cv_path_GREP=$GREP
cannam@95 5713 fi
cannam@95 5714
cannam@95 5715 fi
cannam@95 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
cannam@95 5717 $as_echo "$ac_cv_path_GREP" >&6; }
cannam@95 5718 GREP="$ac_cv_path_GREP"
cannam@95 5719
cannam@95 5720
cannam@95 5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
cannam@95 5722 $as_echo_n "checking for egrep... " >&6; }
cannam@95 5723 if ${ac_cv_path_EGREP+:} false; then :
cannam@95 5724 $as_echo_n "(cached) " >&6
cannam@95 5725 else
cannam@95 5726 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
cannam@95 5727 then ac_cv_path_EGREP="$GREP -E"
cannam@95 5728 else
cannam@95 5729 if test -z "$EGREP"; then
cannam@95 5730 ac_path_EGREP_found=false
cannam@95 5731 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@95 5732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 5733 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@95 5734 do
cannam@95 5735 IFS=$as_save_IFS
cannam@95 5736 test -z "$as_dir" && as_dir=.
cannam@95 5737 for ac_prog in egrep; do
cannam@95 5738 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 5739 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@95 5740 as_fn_executable_p "$ac_path_EGREP" || continue
cannam@95 5741 # Check for GNU ac_path_EGREP and select it if it is found.
cannam@95 5742 # Check for GNU $ac_path_EGREP
cannam@95 5743 case `"$ac_path_EGREP" --version 2>&1` in
cannam@95 5744 *GNU*)
cannam@95 5745 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
cannam@95 5746 *)
cannam@95 5747 ac_count=0
cannam@95 5748 $as_echo_n 0123456789 >"conftest.in"
cannam@95 5749 while :
cannam@95 5750 do
cannam@95 5751 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@95 5752 mv "conftest.tmp" "conftest.in"
cannam@95 5753 cp "conftest.in" "conftest.nl"
cannam@95 5754 $as_echo 'EGREP' >> "conftest.nl"
cannam@95 5755 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@95 5756 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@95 5757 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@95 5758 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
cannam@95 5759 # Best one so far, save it but keep looking for a better one
cannam@95 5760 ac_cv_path_EGREP="$ac_path_EGREP"
cannam@95 5761 ac_path_EGREP_max=$ac_count
cannam@95 5762 fi
cannam@95 5763 # 10*(2^10) chars as input seems more than enough
cannam@95 5764 test $ac_count -gt 10 && break
cannam@95 5765 done
cannam@95 5766 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@95 5767 esac
cannam@95 5768
cannam@95 5769 $ac_path_EGREP_found && break 3
cannam@95 5770 done
cannam@95 5771 done
cannam@95 5772 done
cannam@95 5773 IFS=$as_save_IFS
cannam@95 5774 if test -z "$ac_cv_path_EGREP"; then
cannam@95 5775 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@95 5776 fi
cannam@95 5777 else
cannam@95 5778 ac_cv_path_EGREP=$EGREP
cannam@95 5779 fi
cannam@95 5780
cannam@95 5781 fi
cannam@95 5782 fi
cannam@95 5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
cannam@95 5784 $as_echo "$ac_cv_path_EGREP" >&6; }
cannam@95 5785 EGREP="$ac_cv_path_EGREP"
cannam@95 5786
cannam@95 5787
cannam@95 5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cannam@95 5789 $as_echo_n "checking for fgrep... " >&6; }
cannam@95 5790 if ${ac_cv_path_FGREP+:} false; then :
cannam@95 5791 $as_echo_n "(cached) " >&6
cannam@95 5792 else
cannam@95 5793 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
cannam@95 5794 then ac_cv_path_FGREP="$GREP -F"
cannam@95 5795 else
cannam@95 5796 if test -z "$FGREP"; then
cannam@95 5797 ac_path_FGREP_found=false
cannam@95 5798 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@95 5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 5800 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@95 5801 do
cannam@95 5802 IFS=$as_save_IFS
cannam@95 5803 test -z "$as_dir" && as_dir=.
cannam@95 5804 for ac_prog in fgrep; do
cannam@95 5805 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 5806 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@95 5807 as_fn_executable_p "$ac_path_FGREP" || continue
cannam@95 5808 # Check for GNU ac_path_FGREP and select it if it is found.
cannam@95 5809 # Check for GNU $ac_path_FGREP
cannam@95 5810 case `"$ac_path_FGREP" --version 2>&1` in
cannam@95 5811 *GNU*)
cannam@95 5812 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
cannam@95 5813 *)
cannam@95 5814 ac_count=0
cannam@95 5815 $as_echo_n 0123456789 >"conftest.in"
cannam@95 5816 while :
cannam@95 5817 do
cannam@95 5818 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@95 5819 mv "conftest.tmp" "conftest.in"
cannam@95 5820 cp "conftest.in" "conftest.nl"
cannam@95 5821 $as_echo 'FGREP' >> "conftest.nl"
cannam@95 5822 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@95 5823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@95 5824 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@95 5825 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
cannam@95 5826 # Best one so far, save it but keep looking for a better one
cannam@95 5827 ac_cv_path_FGREP="$ac_path_FGREP"
cannam@95 5828 ac_path_FGREP_max=$ac_count
cannam@95 5829 fi
cannam@95 5830 # 10*(2^10) chars as input seems more than enough
cannam@95 5831 test $ac_count -gt 10 && break
cannam@95 5832 done
cannam@95 5833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@95 5834 esac
cannam@95 5835
cannam@95 5836 $ac_path_FGREP_found && break 3
cannam@95 5837 done
cannam@95 5838 done
cannam@95 5839 done
cannam@95 5840 IFS=$as_save_IFS
cannam@95 5841 if test -z "$ac_cv_path_FGREP"; then
cannam@95 5842 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@95 5843 fi
cannam@95 5844 else
cannam@95 5845 ac_cv_path_FGREP=$FGREP
cannam@95 5846 fi
cannam@95 5847
cannam@95 5848 fi
cannam@95 5849 fi
cannam@95 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cannam@95 5851 $as_echo "$ac_cv_path_FGREP" >&6; }
cannam@95 5852 FGREP="$ac_cv_path_FGREP"
cannam@95 5853
cannam@95 5854
cannam@95 5855 test -z "$GREP" && GREP=grep
cannam@95 5856
cannam@95 5857
cannam@95 5858
cannam@95 5859
cannam@95 5860
cannam@95 5861
cannam@95 5862
cannam@95 5863
cannam@95 5864
cannam@95 5865
cannam@95 5866
cannam@95 5867
cannam@95 5868
cannam@95 5869
cannam@95 5870
cannam@95 5871
cannam@95 5872
cannam@95 5873
cannam@95 5874
cannam@95 5875 # Check whether --with-gnu-ld was given.
cannam@95 5876 if test "${with_gnu_ld+set}" = set; then :
cannam@95 5877 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
cannam@95 5878 else
cannam@95 5879 with_gnu_ld=no
cannam@95 5880 fi
cannam@95 5881
cannam@95 5882 ac_prog=ld
cannam@95 5883 if test "$GCC" = yes; then
cannam@95 5884 # Check if gcc -print-prog-name=ld gives a path.
cannam@95 5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cannam@95 5886 $as_echo_n "checking for ld used by $CC... " >&6; }
cannam@95 5887 case $host in
cannam@95 5888 *-*-mingw*)
cannam@95 5889 # gcc leaves a trailing carriage return which upsets mingw
cannam@95 5890 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
cannam@95 5891 *)
cannam@95 5892 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
cannam@95 5893 esac
cannam@95 5894 case $ac_prog in
cannam@95 5895 # Accept absolute paths.
cannam@95 5896 [\\/]* | ?:[\\/]*)
cannam@95 5897 re_direlt='/[^/][^/]*/\.\./'
cannam@95 5898 # Canonicalize the pathname of ld
cannam@95 5899 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
cannam@95 5900 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
cannam@95 5901 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cannam@95 5902 done
cannam@95 5903 test -z "$LD" && LD="$ac_prog"
cannam@95 5904 ;;
cannam@95 5905 "")
cannam@95 5906 # If it fails, then pretend we aren't using GCC.
cannam@95 5907 ac_prog=ld
cannam@95 5908 ;;
cannam@95 5909 *)
cannam@95 5910 # If it is relative, then search for the first ld in PATH.
cannam@95 5911 with_gnu_ld=unknown
cannam@95 5912 ;;
cannam@95 5913 esac
cannam@95 5914 elif test "$with_gnu_ld" = yes; then
cannam@95 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cannam@95 5916 $as_echo_n "checking for GNU ld... " >&6; }
cannam@95 5917 else
cannam@95 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cannam@95 5919 $as_echo_n "checking for non-GNU ld... " >&6; }
cannam@95 5920 fi
cannam@95 5921 if ${lt_cv_path_LD+:} false; then :
cannam@95 5922 $as_echo_n "(cached) " >&6
cannam@95 5923 else
cannam@95 5924 if test -z "$LD"; then
cannam@95 5925 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@95 5926 for ac_dir in $PATH; do
cannam@95 5927 IFS="$lt_save_ifs"
cannam@95 5928 test -z "$ac_dir" && ac_dir=.
cannam@95 5929 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
cannam@95 5930 lt_cv_path_LD="$ac_dir/$ac_prog"
cannam@95 5931 # Check to see if the program is GNU ld. I'd rather use --version,
cannam@95 5932 # but apparently some variants of GNU ld only accept -v.
cannam@95 5933 # Break only if it was the GNU/non-GNU ld that we prefer.
cannam@95 5934 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
cannam@95 5935 *GNU* | *'with BFD'*)
cannam@95 5936 test "$with_gnu_ld" != no && break
cannam@95 5937 ;;
cannam@95 5938 *)
cannam@95 5939 test "$with_gnu_ld" != yes && break
cannam@95 5940 ;;
cannam@95 5941 esac
cannam@95 5942 fi
cannam@95 5943 done
cannam@95 5944 IFS="$lt_save_ifs"
cannam@95 5945 else
cannam@95 5946 lt_cv_path_LD="$LD" # Let the user override the test with a path.
cannam@95 5947 fi
cannam@95 5948 fi
cannam@95 5949
cannam@95 5950 LD="$lt_cv_path_LD"
cannam@95 5951 if test -n "$LD"; then
cannam@95 5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cannam@95 5953 $as_echo "$LD" >&6; }
cannam@95 5954 else
cannam@95 5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 5956 $as_echo "no" >&6; }
cannam@95 5957 fi
cannam@95 5958 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cannam@95 5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cannam@95 5960 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cannam@95 5961 if ${lt_cv_prog_gnu_ld+:} false; then :
cannam@95 5962 $as_echo_n "(cached) " >&6
cannam@95 5963 else
cannam@95 5964 # I'd rather use --version here, but apparently some GNU lds only accept -v.
cannam@95 5965 case `$LD -v 2>&1 </dev/null` in
cannam@95 5966 *GNU* | *'with BFD'*)
cannam@95 5967 lt_cv_prog_gnu_ld=yes
cannam@95 5968 ;;
cannam@95 5969 *)
cannam@95 5970 lt_cv_prog_gnu_ld=no
cannam@95 5971 ;;
cannam@95 5972 esac
cannam@95 5973 fi
cannam@95 5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cannam@95 5975 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
cannam@95 5976 with_gnu_ld=$lt_cv_prog_gnu_ld
cannam@95 5977
cannam@95 5978
cannam@95 5979
cannam@95 5980
cannam@95 5981
cannam@95 5982
cannam@95 5983
cannam@95 5984
cannam@95 5985
cannam@95 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cannam@95 5987 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cannam@95 5988 if ${lt_cv_path_NM+:} false; then :
cannam@95 5989 $as_echo_n "(cached) " >&6
cannam@95 5990 else
cannam@95 5991 if test -n "$NM"; then
cannam@95 5992 # Let the user override the test.
cannam@95 5993 lt_cv_path_NM="$NM"
cannam@95 5994 else
cannam@95 5995 lt_nm_to_check="${ac_tool_prefix}nm"
cannam@95 5996 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
cannam@95 5997 lt_nm_to_check="$lt_nm_to_check nm"
cannam@95 5998 fi
cannam@95 5999 for lt_tmp_nm in $lt_nm_to_check; do
cannam@95 6000 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@95 6001 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
cannam@95 6002 IFS="$lt_save_ifs"
cannam@95 6003 test -z "$ac_dir" && ac_dir=.
cannam@95 6004 tmp_nm="$ac_dir/$lt_tmp_nm"
cannam@95 6005 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
cannam@95 6006 # Check to see if the nm accepts a BSD-compat flag.
cannam@95 6007 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
cannam@95 6008 # nm: unknown option "B" ignored
cannam@95 6009 # Tru64's nm complains that /dev/null is an invalid object file
cannam@95 6010 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
cannam@95 6011 */dev/null* | *'Invalid file or object type'*)
cannam@95 6012 lt_cv_path_NM="$tmp_nm -B"
cannam@95 6013 break
cannam@95 6014 ;;
cannam@95 6015 *)
cannam@95 6016 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
cannam@95 6017 */dev/null*)
cannam@95 6018 lt_cv_path_NM="$tmp_nm -p"
cannam@95 6019 break
cannam@95 6020 ;;
cannam@95 6021 *)
cannam@95 6022 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
cannam@95 6023 continue # so that we can try to find one that supports BSD flags
cannam@95 6024 ;;
cannam@95 6025 esac
cannam@95 6026 ;;
cannam@95 6027 esac
cannam@95 6028 fi
cannam@95 6029 done
cannam@95 6030 IFS="$lt_save_ifs"
cannam@95 6031 done
cannam@95 6032 : ${lt_cv_path_NM=no}
cannam@95 6033 fi
cannam@95 6034 fi
cannam@95 6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cannam@95 6036 $as_echo "$lt_cv_path_NM" >&6; }
cannam@95 6037 if test "$lt_cv_path_NM" != "no"; then
cannam@95 6038 NM="$lt_cv_path_NM"
cannam@95 6039 else
cannam@95 6040 # Didn't find any BSD compatible name lister, look for dumpbin.
cannam@95 6041 if test -n "$DUMPBIN"; then :
cannam@95 6042 # Let the user override the test.
cannam@95 6043 else
cannam@95 6044 if test -n "$ac_tool_prefix"; then
cannam@95 6045 for ac_prog in dumpbin "link -dump"
cannam@95 6046 do
cannam@95 6047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@95 6048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@95 6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 6050 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 6051 if ${ac_cv_prog_DUMPBIN+:} false; then :
cannam@95 6052 $as_echo_n "(cached) " >&6
cannam@95 6053 else
cannam@95 6054 if test -n "$DUMPBIN"; then
cannam@95 6055 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
cannam@95 6056 else
cannam@95 6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 6058 for as_dir in $PATH
cannam@95 6059 do
cannam@95 6060 IFS=$as_save_IFS
cannam@95 6061 test -z "$as_dir" && as_dir=.
cannam@95 6062 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 6063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 6064 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cannam@95 6065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 6066 break 2
cannam@95 6067 fi
cannam@95 6068 done
cannam@95 6069 done
cannam@95 6070 IFS=$as_save_IFS
cannam@95 6071
cannam@95 6072 fi
cannam@95 6073 fi
cannam@95 6074 DUMPBIN=$ac_cv_prog_DUMPBIN
cannam@95 6075 if test -n "$DUMPBIN"; then
cannam@95 6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cannam@95 6077 $as_echo "$DUMPBIN" >&6; }
cannam@95 6078 else
cannam@95 6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 6080 $as_echo "no" >&6; }
cannam@95 6081 fi
cannam@95 6082
cannam@95 6083
cannam@95 6084 test -n "$DUMPBIN" && break
cannam@95 6085 done
cannam@95 6086 fi
cannam@95 6087 if test -z "$DUMPBIN"; then
cannam@95 6088 ac_ct_DUMPBIN=$DUMPBIN
cannam@95 6089 for ac_prog in dumpbin "link -dump"
cannam@95 6090 do
cannam@95 6091 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@95 6092 set dummy $ac_prog; ac_word=$2
cannam@95 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 6094 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 6095 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cannam@95 6096 $as_echo_n "(cached) " >&6
cannam@95 6097 else
cannam@95 6098 if test -n "$ac_ct_DUMPBIN"; then
cannam@95 6099 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
cannam@95 6100 else
cannam@95 6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 6102 for as_dir in $PATH
cannam@95 6103 do
cannam@95 6104 IFS=$as_save_IFS
cannam@95 6105 test -z "$as_dir" && as_dir=.
cannam@95 6106 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 6107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 6108 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cannam@95 6109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 6110 break 2
cannam@95 6111 fi
cannam@95 6112 done
cannam@95 6113 done
cannam@95 6114 IFS=$as_save_IFS
cannam@95 6115
cannam@95 6116 fi
cannam@95 6117 fi
cannam@95 6118 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
cannam@95 6119 if test -n "$ac_ct_DUMPBIN"; then
cannam@95 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cannam@95 6121 $as_echo "$ac_ct_DUMPBIN" >&6; }
cannam@95 6122 else
cannam@95 6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 6124 $as_echo "no" >&6; }
cannam@95 6125 fi
cannam@95 6126
cannam@95 6127
cannam@95 6128 test -n "$ac_ct_DUMPBIN" && break
cannam@95 6129 done
cannam@95 6130
cannam@95 6131 if test "x$ac_ct_DUMPBIN" = x; then
cannam@95 6132 DUMPBIN=":"
cannam@95 6133 else
cannam@95 6134 case $cross_compiling:$ac_tool_warned in
cannam@95 6135 yes:)
cannam@95 6136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@95 6137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@95 6138 ac_tool_warned=yes ;;
cannam@95 6139 esac
cannam@95 6140 DUMPBIN=$ac_ct_DUMPBIN
cannam@95 6141 fi
cannam@95 6142 fi
cannam@95 6143
cannam@95 6144 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
cannam@95 6145 *COFF*)
cannam@95 6146 DUMPBIN="$DUMPBIN -symbols"
cannam@95 6147 ;;
cannam@95 6148 *)
cannam@95 6149 DUMPBIN=:
cannam@95 6150 ;;
cannam@95 6151 esac
cannam@95 6152 fi
cannam@95 6153
cannam@95 6154 if test "$DUMPBIN" != ":"; then
cannam@95 6155 NM="$DUMPBIN"
cannam@95 6156 fi
cannam@95 6157 fi
cannam@95 6158 test -z "$NM" && NM=nm
cannam@95 6159
cannam@95 6160
cannam@95 6161
cannam@95 6162
cannam@95 6163
cannam@95 6164
cannam@95 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cannam@95 6166 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
cannam@95 6167 if ${lt_cv_nm_interface+:} false; then :
cannam@95 6168 $as_echo_n "(cached) " >&6
cannam@95 6169 else
cannam@95 6170 lt_cv_nm_interface="BSD nm"
cannam@95 6171 echo "int some_variable = 0;" > conftest.$ac_ext
cannam@95 6172 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cannam@95 6173 (eval "$ac_compile" 2>conftest.err)
cannam@95 6174 cat conftest.err >&5
cannam@95 6175 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cannam@95 6176 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cannam@95 6177 cat conftest.err >&5
cannam@95 6178 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cannam@95 6179 cat conftest.out >&5
cannam@95 6180 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
cannam@95 6181 lt_cv_nm_interface="MS dumpbin"
cannam@95 6182 fi
cannam@95 6183 rm -f conftest*
cannam@95 6184 fi
cannam@95 6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cannam@95 6186 $as_echo "$lt_cv_nm_interface" >&6; }
cannam@95 6187
cannam@95 6188 # find the maximum length of command line arguments
cannam@95 6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cannam@95 6190 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
cannam@95 6191 if ${lt_cv_sys_max_cmd_len+:} false; then :
cannam@95 6192 $as_echo_n "(cached) " >&6
cannam@95 6193 else
cannam@95 6194 i=0
cannam@95 6195 teststring="ABCD"
cannam@95 6196
cannam@95 6197 case $build_os in
cannam@95 6198 msdosdjgpp*)
cannam@95 6199 # On DJGPP, this test can blow up pretty badly due to problems in libc
cannam@95 6200 # (any single argument exceeding 2000 bytes causes a buffer overrun
cannam@95 6201 # during glob expansion). Even if it were fixed, the result of this
cannam@95 6202 # check would be larger than it should be.
cannam@95 6203 lt_cv_sys_max_cmd_len=12288; # 12K is about right
cannam@95 6204 ;;
cannam@95 6205
cannam@95 6206 gnu*)
cannam@95 6207 # Under GNU Hurd, this test is not required because there is
cannam@95 6208 # no limit to the length of command line arguments.
cannam@95 6209 # Libtool will interpret -1 as no limit whatsoever
cannam@95 6210 lt_cv_sys_max_cmd_len=-1;
cannam@95 6211 ;;
cannam@95 6212
cannam@95 6213 cygwin* | mingw* | cegcc*)
cannam@95 6214 # On Win9x/ME, this test blows up -- it succeeds, but takes
cannam@95 6215 # about 5 minutes as the teststring grows exponentially.
cannam@95 6216 # Worse, since 9x/ME are not pre-emptively multitasking,
cannam@95 6217 # you end up with a "frozen" computer, even though with patience
cannam@95 6218 # the test eventually succeeds (with a max line length of 256k).
cannam@95 6219 # Instead, let's just punt: use the minimum linelength reported by
cannam@95 6220 # all of the supported platforms: 8192 (on NT/2K/XP).
cannam@95 6221 lt_cv_sys_max_cmd_len=8192;
cannam@95 6222 ;;
cannam@95 6223
cannam@95 6224 mint*)
cannam@95 6225 # On MiNT this can take a long time and run out of memory.
cannam@95 6226 lt_cv_sys_max_cmd_len=8192;
cannam@95 6227 ;;
cannam@95 6228
cannam@95 6229 amigaos*)
cannam@95 6230 # On AmigaOS with pdksh, this test takes hours, literally.
cannam@95 6231 # So we just punt and use a minimum line length of 8192.
cannam@95 6232 lt_cv_sys_max_cmd_len=8192;
cannam@95 6233 ;;
cannam@95 6234
cannam@95 6235 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
cannam@95 6236 # This has been around since 386BSD, at least. Likely further.
cannam@95 6237 if test -x /sbin/sysctl; then
cannam@95 6238 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
cannam@95 6239 elif test -x /usr/sbin/sysctl; then
cannam@95 6240 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
cannam@95 6241 else
cannam@95 6242 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cannam@95 6243 fi
cannam@95 6244 # And add a safety zone
cannam@95 6245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
cannam@95 6246 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
cannam@95 6247 ;;
cannam@95 6248
cannam@95 6249 interix*)
cannam@95 6250 # We know the value 262144 and hardcode it with a safety zone (like BSD)
cannam@95 6251 lt_cv_sys_max_cmd_len=196608
cannam@95 6252 ;;
cannam@95 6253
cannam@95 6254 os2*)
cannam@95 6255 # The test takes a long time on OS/2.
cannam@95 6256 lt_cv_sys_max_cmd_len=8192
cannam@95 6257 ;;
cannam@95 6258
cannam@95 6259 osf*)
cannam@95 6260 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
cannam@95 6261 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
cannam@95 6262 # nice to cause kernel panics so lets avoid the loop below.
cannam@95 6263 # First set a reasonable default.
cannam@95 6264 lt_cv_sys_max_cmd_len=16384
cannam@95 6265 #
cannam@95 6266 if test -x /sbin/sysconfig; then
cannam@95 6267 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
cannam@95 6268 *1*) lt_cv_sys_max_cmd_len=-1 ;;
cannam@95 6269 esac
cannam@95 6270 fi
cannam@95 6271 ;;
cannam@95 6272 sco3.2v5*)
cannam@95 6273 lt_cv_sys_max_cmd_len=102400
cannam@95 6274 ;;
cannam@95 6275 sysv5* | sco5v6* | sysv4.2uw2*)
cannam@95 6276 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
cannam@95 6277 if test -n "$kargmax"; then
cannam@95 6278 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
cannam@95 6279 else
cannam@95 6280 lt_cv_sys_max_cmd_len=32768
cannam@95 6281 fi
cannam@95 6282 ;;
cannam@95 6283 *)
cannam@95 6284 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
cannam@95 6285 if test -n "$lt_cv_sys_max_cmd_len"; then
cannam@95 6286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
cannam@95 6287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
cannam@95 6288 else
cannam@95 6289 # Make teststring a little bigger before we do anything with it.
cannam@95 6290 # a 1K string should be a reasonable start.
cannam@95 6291 for i in 1 2 3 4 5 6 7 8 ; do
cannam@95 6292 teststring=$teststring$teststring
cannam@95 6293 done
cannam@95 6294 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
cannam@95 6295 # If test is not a shell built-in, we'll probably end up computing a
cannam@95 6296 # maximum length that is only half of the actual maximum length, but
cannam@95 6297 # we can't tell.
cannam@95 6298 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cannam@95 6299 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cannam@95 6300 test $i != 17 # 1/2 MB should be enough
cannam@95 6301 do
cannam@95 6302 i=`expr $i + 1`
cannam@95 6303 teststring=$teststring$teststring
cannam@95 6304 done
cannam@95 6305 # Only check the string length outside the loop.
cannam@95 6306 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
cannam@95 6307 teststring=
cannam@95 6308 # Add a significant safety factor because C++ compilers can tack on
cannam@95 6309 # massive amounts of additional arguments before passing them to the
cannam@95 6310 # linker. It appears as though 1/2 is a usable value.
cannam@95 6311 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
cannam@95 6312 fi
cannam@95 6313 ;;
cannam@95 6314 esac
cannam@95 6315
cannam@95 6316 fi
cannam@95 6317
cannam@95 6318 if test -n $lt_cv_sys_max_cmd_len ; then
cannam@95 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cannam@95 6320 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
cannam@95 6321 else
cannam@95 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cannam@95 6323 $as_echo "none" >&6; }
cannam@95 6324 fi
cannam@95 6325 max_cmd_len=$lt_cv_sys_max_cmd_len
cannam@95 6326
cannam@95 6327
cannam@95 6328
cannam@95 6329
cannam@95 6330
cannam@95 6331
cannam@95 6332 : ${CP="cp -f"}
cannam@95 6333 : ${MV="mv -f"}
cannam@95 6334 : ${RM="rm -f"}
cannam@95 6335
cannam@95 6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cannam@95 6337 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
cannam@95 6338 # Try some XSI features
cannam@95 6339 xsi_shell=no
cannam@95 6340 ( _lt_dummy="a/b/c"
cannam@95 6341 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
cannam@95 6342 = c,a/b,b/c, \
cannam@95 6343 && eval 'test $(( 1 + 1 )) -eq 2 \
cannam@95 6344 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
cannam@95 6345 && xsi_shell=yes
cannam@95 6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cannam@95 6347 $as_echo "$xsi_shell" >&6; }
cannam@95 6348
cannam@95 6349
cannam@95 6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cannam@95 6351 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
cannam@95 6352 lt_shell_append=no
cannam@95 6353 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
cannam@95 6354 >/dev/null 2>&1 \
cannam@95 6355 && lt_shell_append=yes
cannam@95 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cannam@95 6357 $as_echo "$lt_shell_append" >&6; }
cannam@95 6358
cannam@95 6359
cannam@95 6360 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
cannam@95 6361 lt_unset=unset
cannam@95 6362 else
cannam@95 6363 lt_unset=false
cannam@95 6364 fi
cannam@95 6365
cannam@95 6366
cannam@95 6367
cannam@95 6368
cannam@95 6369
cannam@95 6370 # test EBCDIC or ASCII
cannam@95 6371 case `echo X|tr X '\101'` in
cannam@95 6372 A) # ASCII based system
cannam@95 6373 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
cannam@95 6374 lt_SP2NL='tr \040 \012'
cannam@95 6375 lt_NL2SP='tr \015\012 \040\040'
cannam@95 6376 ;;
cannam@95 6377 *) # EBCDIC based system
cannam@95 6378 lt_SP2NL='tr \100 \n'
cannam@95 6379 lt_NL2SP='tr \r\n \100\100'
cannam@95 6380 ;;
cannam@95 6381 esac
cannam@95 6382
cannam@95 6383
cannam@95 6384
cannam@95 6385
cannam@95 6386
cannam@95 6387
cannam@95 6388
cannam@95 6389
cannam@95 6390
cannam@95 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
cannam@95 6392 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
cannam@95 6393 if ${lt_cv_to_host_file_cmd+:} false; then :
cannam@95 6394 $as_echo_n "(cached) " >&6
cannam@95 6395 else
cannam@95 6396 case $host in
cannam@95 6397 *-*-mingw* )
cannam@95 6398 case $build in
cannam@95 6399 *-*-mingw* ) # actually msys
cannam@95 6400 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
cannam@95 6401 ;;
cannam@95 6402 *-*-cygwin* )
cannam@95 6403 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
cannam@95 6404 ;;
cannam@95 6405 * ) # otherwise, assume *nix
cannam@95 6406 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
cannam@95 6407 ;;
cannam@95 6408 esac
cannam@95 6409 ;;
cannam@95 6410 *-*-cygwin* )
cannam@95 6411 case $build in
cannam@95 6412 *-*-mingw* ) # actually msys
cannam@95 6413 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
cannam@95 6414 ;;
cannam@95 6415 *-*-cygwin* )
cannam@95 6416 lt_cv_to_host_file_cmd=func_convert_file_noop
cannam@95 6417 ;;
cannam@95 6418 * ) # otherwise, assume *nix
cannam@95 6419 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
cannam@95 6420 ;;
cannam@95 6421 esac
cannam@95 6422 ;;
cannam@95 6423 * ) # unhandled hosts (and "normal" native builds)
cannam@95 6424 lt_cv_to_host_file_cmd=func_convert_file_noop
cannam@95 6425 ;;
cannam@95 6426 esac
cannam@95 6427
cannam@95 6428 fi
cannam@95 6429
cannam@95 6430 to_host_file_cmd=$lt_cv_to_host_file_cmd
cannam@95 6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
cannam@95 6432 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
cannam@95 6433
cannam@95 6434
cannam@95 6435
cannam@95 6436
cannam@95 6437
cannam@95 6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
cannam@95 6439 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
cannam@95 6440 if ${lt_cv_to_tool_file_cmd+:} false; then :
cannam@95 6441 $as_echo_n "(cached) " >&6
cannam@95 6442 else
cannam@95 6443 #assume ordinary cross tools, or native build.
cannam@95 6444 lt_cv_to_tool_file_cmd=func_convert_file_noop
cannam@95 6445 case $host in
cannam@95 6446 *-*-mingw* )
cannam@95 6447 case $build in
cannam@95 6448 *-*-mingw* ) # actually msys
cannam@95 6449 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
cannam@95 6450 ;;
cannam@95 6451 esac
cannam@95 6452 ;;
cannam@95 6453 esac
cannam@95 6454
cannam@95 6455 fi
cannam@95 6456
cannam@95 6457 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
cannam@95 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
cannam@95 6459 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
cannam@95 6460
cannam@95 6461
cannam@95 6462
cannam@95 6463
cannam@95 6464
cannam@95 6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cannam@95 6466 $as_echo_n "checking for $LD option to reload object files... " >&6; }
cannam@95 6467 if ${lt_cv_ld_reload_flag+:} false; then :
cannam@95 6468 $as_echo_n "(cached) " >&6
cannam@95 6469 else
cannam@95 6470 lt_cv_ld_reload_flag='-r'
cannam@95 6471 fi
cannam@95 6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cannam@95 6473 $as_echo "$lt_cv_ld_reload_flag" >&6; }
cannam@95 6474 reload_flag=$lt_cv_ld_reload_flag
cannam@95 6475 case $reload_flag in
cannam@95 6476 "" | " "*) ;;
cannam@95 6477 *) reload_flag=" $reload_flag" ;;
cannam@95 6478 esac
cannam@95 6479 reload_cmds='$LD$reload_flag -o $output$reload_objs'
cannam@95 6480 case $host_os in
cannam@95 6481 cygwin* | mingw* | pw32* | cegcc*)
cannam@95 6482 if test "$GCC" != yes; then
cannam@95 6483 reload_cmds=false
cannam@95 6484 fi
cannam@95 6485 ;;
cannam@95 6486 darwin*)
cannam@95 6487 if test "$GCC" = yes; then
cannam@95 6488 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
cannam@95 6489 else
cannam@95 6490 reload_cmds='$LD$reload_flag -o $output$reload_objs'
cannam@95 6491 fi
cannam@95 6492 ;;
cannam@95 6493 esac
cannam@95 6494
cannam@95 6495
cannam@95 6496
cannam@95 6497
cannam@95 6498
cannam@95 6499
cannam@95 6500
cannam@95 6501
cannam@95 6502
cannam@95 6503 if test -n "$ac_tool_prefix"; then
cannam@95 6504 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
cannam@95 6505 set dummy ${ac_tool_prefix}objdump; ac_word=$2
cannam@95 6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 6507 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 6508 if ${ac_cv_prog_OBJDUMP+:} false; then :
cannam@95 6509 $as_echo_n "(cached) " >&6
cannam@95 6510 else
cannam@95 6511 if test -n "$OBJDUMP"; then
cannam@95 6512 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
cannam@95 6513 else
cannam@95 6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 6515 for as_dir in $PATH
cannam@95 6516 do
cannam@95 6517 IFS=$as_save_IFS
cannam@95 6518 test -z "$as_dir" && as_dir=.
cannam@95 6519 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 6520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 6521 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cannam@95 6522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 6523 break 2
cannam@95 6524 fi
cannam@95 6525 done
cannam@95 6526 done
cannam@95 6527 IFS=$as_save_IFS
cannam@95 6528
cannam@95 6529 fi
cannam@95 6530 fi
cannam@95 6531 OBJDUMP=$ac_cv_prog_OBJDUMP
cannam@95 6532 if test -n "$OBJDUMP"; then
cannam@95 6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cannam@95 6534 $as_echo "$OBJDUMP" >&6; }
cannam@95 6535 else
cannam@95 6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 6537 $as_echo "no" >&6; }
cannam@95 6538 fi
cannam@95 6539
cannam@95 6540
cannam@95 6541 fi
cannam@95 6542 if test -z "$ac_cv_prog_OBJDUMP"; then
cannam@95 6543 ac_ct_OBJDUMP=$OBJDUMP
cannam@95 6544 # Extract the first word of "objdump", so it can be a program name with args.
cannam@95 6545 set dummy objdump; ac_word=$2
cannam@95 6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 6547 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 6548 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cannam@95 6549 $as_echo_n "(cached) " >&6
cannam@95 6550 else
cannam@95 6551 if test -n "$ac_ct_OBJDUMP"; then
cannam@95 6552 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
cannam@95 6553 else
cannam@95 6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 6555 for as_dir in $PATH
cannam@95 6556 do
cannam@95 6557 IFS=$as_save_IFS
cannam@95 6558 test -z "$as_dir" && as_dir=.
cannam@95 6559 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 6560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 6561 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cannam@95 6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 6563 break 2
cannam@95 6564 fi
cannam@95 6565 done
cannam@95 6566 done
cannam@95 6567 IFS=$as_save_IFS
cannam@95 6568
cannam@95 6569 fi
cannam@95 6570 fi
cannam@95 6571 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
cannam@95 6572 if test -n "$ac_ct_OBJDUMP"; then
cannam@95 6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cannam@95 6574 $as_echo "$ac_ct_OBJDUMP" >&6; }
cannam@95 6575 else
cannam@95 6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 6577 $as_echo "no" >&6; }
cannam@95 6578 fi
cannam@95 6579
cannam@95 6580 if test "x$ac_ct_OBJDUMP" = x; then
cannam@95 6581 OBJDUMP="false"
cannam@95 6582 else
cannam@95 6583 case $cross_compiling:$ac_tool_warned in
cannam@95 6584 yes:)
cannam@95 6585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@95 6586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@95 6587 ac_tool_warned=yes ;;
cannam@95 6588 esac
cannam@95 6589 OBJDUMP=$ac_ct_OBJDUMP
cannam@95 6590 fi
cannam@95 6591 else
cannam@95 6592 OBJDUMP="$ac_cv_prog_OBJDUMP"
cannam@95 6593 fi
cannam@95 6594
cannam@95 6595 test -z "$OBJDUMP" && OBJDUMP=objdump
cannam@95 6596
cannam@95 6597
cannam@95 6598
cannam@95 6599
cannam@95 6600
cannam@95 6601
cannam@95 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cannam@95 6603 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
cannam@95 6604 if ${lt_cv_deplibs_check_method+:} false; then :
cannam@95 6605 $as_echo_n "(cached) " >&6
cannam@95 6606 else
cannam@95 6607 lt_cv_file_magic_cmd='$MAGIC_CMD'
cannam@95 6608 lt_cv_file_magic_test_file=
cannam@95 6609 lt_cv_deplibs_check_method='unknown'
cannam@95 6610 # Need to set the preceding variable on all platforms that support
cannam@95 6611 # interlibrary dependencies.
cannam@95 6612 # 'none' -- dependencies not supported.
cannam@95 6613 # `unknown' -- same as none, but documents that we really don't know.
cannam@95 6614 # 'pass_all' -- all dependencies passed with no checks.
cannam@95 6615 # 'test_compile' -- check by making test program.
cannam@95 6616 # 'file_magic [[regex]]' -- check by looking for files in library path
cannam@95 6617 # which responds to the $file_magic_cmd with a given extended regex.
cannam@95 6618 # If you have `file' or equivalent on your system and you're not sure
cannam@95 6619 # whether `pass_all' will *always* work, you probably want this one.
cannam@95 6620
cannam@95 6621 case $host_os in
cannam@95 6622 aix[4-9]*)
cannam@95 6623 lt_cv_deplibs_check_method=pass_all
cannam@95 6624 ;;
cannam@95 6625
cannam@95 6626 beos*)
cannam@95 6627 lt_cv_deplibs_check_method=pass_all
cannam@95 6628 ;;
cannam@95 6629
cannam@95 6630 bsdi[45]*)
cannam@95 6631 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
cannam@95 6632 lt_cv_file_magic_cmd='/usr/bin/file -L'
cannam@95 6633 lt_cv_file_magic_test_file=/shlib/libc.so
cannam@95 6634 ;;
cannam@95 6635
cannam@95 6636 cygwin*)
cannam@95 6637 # func_win32_libid is a shell function defined in ltmain.sh
cannam@95 6638 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
cannam@95 6639 lt_cv_file_magic_cmd='func_win32_libid'
cannam@95 6640 ;;
cannam@95 6641
cannam@95 6642 mingw* | pw32*)
cannam@95 6643 # Base MSYS/MinGW do not provide the 'file' command needed by
cannam@95 6644 # func_win32_libid shell function, so use a weaker test based on 'objdump',
cannam@95 6645 # unless we find 'file', for example because we are cross-compiling.
cannam@95 6646 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
cannam@95 6647 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cannam@95 6648 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
cannam@95 6649 lt_cv_file_magic_cmd='func_win32_libid'
cannam@95 6650 else
cannam@95 6651 # Keep this pattern in sync with the one in func_win32_libid.
cannam@95 6652 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
cannam@95 6653 lt_cv_file_magic_cmd='$OBJDUMP -f'
cannam@95 6654 fi
cannam@95 6655 ;;
cannam@95 6656
cannam@95 6657 cegcc*)
cannam@95 6658 # use the weaker test based on 'objdump'. See mingw*.
cannam@95 6659 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
cannam@95 6660 lt_cv_file_magic_cmd='$OBJDUMP -f'
cannam@95 6661 ;;
cannam@95 6662
cannam@95 6663 darwin* | rhapsody*)
cannam@95 6664 lt_cv_deplibs_check_method=pass_all
cannam@95 6665 ;;
cannam@95 6666
cannam@95 6667 freebsd* | dragonfly*)
cannam@95 6668 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
cannam@95 6669 case $host_cpu in
cannam@95 6670 i*86 )
cannam@95 6671 # Not sure whether the presence of OpenBSD here was a mistake.
cannam@95 6672 # Let's accept both of them until this is cleared up.
cannam@95 6673 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
cannam@95 6674 lt_cv_file_magic_cmd=/usr/bin/file
cannam@95 6675 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
cannam@95 6676 ;;
cannam@95 6677 esac
cannam@95 6678 else
cannam@95 6679 lt_cv_deplibs_check_method=pass_all
cannam@95 6680 fi
cannam@95 6681 ;;
cannam@95 6682
cannam@95 6683 haiku*)
cannam@95 6684 lt_cv_deplibs_check_method=pass_all
cannam@95 6685 ;;
cannam@95 6686
cannam@95 6687 hpux10.20* | hpux11*)
cannam@95 6688 lt_cv_file_magic_cmd=/usr/bin/file
cannam@95 6689 case $host_cpu in
cannam@95 6690 ia64*)
cannam@95 6691 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
cannam@95 6692 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
cannam@95 6693 ;;
cannam@95 6694 hppa*64*)
cannam@95 6695 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
cannam@95 6696 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
cannam@95 6697 ;;
cannam@95 6698 *)
cannam@95 6699 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
cannam@95 6700 lt_cv_file_magic_test_file=/usr/lib/libc.sl
cannam@95 6701 ;;
cannam@95 6702 esac
cannam@95 6703 ;;
cannam@95 6704
cannam@95 6705 interix[3-9]*)
cannam@95 6706 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
cannam@95 6707 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
cannam@95 6708 ;;
cannam@95 6709
cannam@95 6710 irix5* | irix6* | nonstopux*)
cannam@95 6711 case $LD in
cannam@95 6712 *-32|*"-32 ") libmagic=32-bit;;
cannam@95 6713 *-n32|*"-n32 ") libmagic=N32;;
cannam@95 6714 *-64|*"-64 ") libmagic=64-bit;;
cannam@95 6715 *) libmagic=never-match;;
cannam@95 6716 esac
cannam@95 6717 lt_cv_deplibs_check_method=pass_all
cannam@95 6718 ;;
cannam@95 6719
cannam@95 6720 # This must be glibc/ELF.
cannam@95 6721 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@95 6722 lt_cv_deplibs_check_method=pass_all
cannam@95 6723 ;;
cannam@95 6724
cannam@95 6725 netbsd* | netbsdelf*-gnu)
cannam@95 6726 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
cannam@95 6727 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cannam@95 6728 else
cannam@95 6729 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cannam@95 6730 fi
cannam@95 6731 ;;
cannam@95 6732
cannam@95 6733 newos6*)
cannam@95 6734 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
cannam@95 6735 lt_cv_file_magic_cmd=/usr/bin/file
cannam@95 6736 lt_cv_file_magic_test_file=/usr/lib/libnls.so
cannam@95 6737 ;;
cannam@95 6738
cannam@95 6739 *nto* | *qnx*)
cannam@95 6740 lt_cv_deplibs_check_method=pass_all
cannam@95 6741 ;;
cannam@95 6742
cannam@95 6743 openbsd*)
cannam@95 6744 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@95 6745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
cannam@95 6746 else
cannam@95 6747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cannam@95 6748 fi
cannam@95 6749 ;;
cannam@95 6750
cannam@95 6751 osf3* | osf4* | osf5*)
cannam@95 6752 lt_cv_deplibs_check_method=pass_all
cannam@95 6753 ;;
cannam@95 6754
cannam@95 6755 rdos*)
cannam@95 6756 lt_cv_deplibs_check_method=pass_all
cannam@95 6757 ;;
cannam@95 6758
cannam@95 6759 solaris*)
cannam@95 6760 lt_cv_deplibs_check_method=pass_all
cannam@95 6761 ;;
cannam@95 6762
cannam@95 6763 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cannam@95 6764 lt_cv_deplibs_check_method=pass_all
cannam@95 6765 ;;
cannam@95 6766
cannam@95 6767 sysv4 | sysv4.3*)
cannam@95 6768 case $host_vendor in
cannam@95 6769 motorola)
cannam@95 6770 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
cannam@95 6771 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
cannam@95 6772 ;;
cannam@95 6773 ncr)
cannam@95 6774 lt_cv_deplibs_check_method=pass_all
cannam@95 6775 ;;
cannam@95 6776 sequent)
cannam@95 6777 lt_cv_file_magic_cmd='/bin/file'
cannam@95 6778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
cannam@95 6779 ;;
cannam@95 6780 sni)
cannam@95 6781 lt_cv_file_magic_cmd='/bin/file'
cannam@95 6782 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
cannam@95 6783 lt_cv_file_magic_test_file=/lib/libc.so
cannam@95 6784 ;;
cannam@95 6785 siemens)
cannam@95 6786 lt_cv_deplibs_check_method=pass_all
cannam@95 6787 ;;
cannam@95 6788 pc)
cannam@95 6789 lt_cv_deplibs_check_method=pass_all
cannam@95 6790 ;;
cannam@95 6791 esac
cannam@95 6792 ;;
cannam@95 6793
cannam@95 6794 tpf*)
cannam@95 6795 lt_cv_deplibs_check_method=pass_all
cannam@95 6796 ;;
cannam@95 6797 esac
cannam@95 6798
cannam@95 6799 fi
cannam@95 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cannam@95 6801 $as_echo "$lt_cv_deplibs_check_method" >&6; }
cannam@95 6802
cannam@95 6803 file_magic_glob=
cannam@95 6804 want_nocaseglob=no
cannam@95 6805 if test "$build" = "$host"; then
cannam@95 6806 case $host_os in
cannam@95 6807 mingw* | pw32*)
cannam@95 6808 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
cannam@95 6809 want_nocaseglob=yes
cannam@95 6810 else
cannam@95 6811 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
cannam@95 6812 fi
cannam@95 6813 ;;
cannam@95 6814 esac
cannam@95 6815 fi
cannam@95 6816
cannam@95 6817 file_magic_cmd=$lt_cv_file_magic_cmd
cannam@95 6818 deplibs_check_method=$lt_cv_deplibs_check_method
cannam@95 6819 test -z "$deplibs_check_method" && deplibs_check_method=unknown
cannam@95 6820
cannam@95 6821
cannam@95 6822
cannam@95 6823
cannam@95 6824
cannam@95 6825
cannam@95 6826
cannam@95 6827
cannam@95 6828
cannam@95 6829
cannam@95 6830
cannam@95 6831
cannam@95 6832
cannam@95 6833
cannam@95 6834
cannam@95 6835
cannam@95 6836
cannam@95 6837
cannam@95 6838
cannam@95 6839
cannam@95 6840
cannam@95 6841
cannam@95 6842 if test -n "$ac_tool_prefix"; then
cannam@95 6843 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
cannam@95 6844 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cannam@95 6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 6846 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 6847 if ${ac_cv_prog_DLLTOOL+:} false; then :
cannam@95 6848 $as_echo_n "(cached) " >&6
cannam@95 6849 else
cannam@95 6850 if test -n "$DLLTOOL"; then
cannam@95 6851 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
cannam@95 6852 else
cannam@95 6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 6854 for as_dir in $PATH
cannam@95 6855 do
cannam@95 6856 IFS=$as_save_IFS
cannam@95 6857 test -z "$as_dir" && as_dir=.
cannam@95 6858 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 6859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 6860 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cannam@95 6861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 6862 break 2
cannam@95 6863 fi
cannam@95 6864 done
cannam@95 6865 done
cannam@95 6866 IFS=$as_save_IFS
cannam@95 6867
cannam@95 6868 fi
cannam@95 6869 fi
cannam@95 6870 DLLTOOL=$ac_cv_prog_DLLTOOL
cannam@95 6871 if test -n "$DLLTOOL"; then
cannam@95 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cannam@95 6873 $as_echo "$DLLTOOL" >&6; }
cannam@95 6874 else
cannam@95 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 6876 $as_echo "no" >&6; }
cannam@95 6877 fi
cannam@95 6878
cannam@95 6879
cannam@95 6880 fi
cannam@95 6881 if test -z "$ac_cv_prog_DLLTOOL"; then
cannam@95 6882 ac_ct_DLLTOOL=$DLLTOOL
cannam@95 6883 # Extract the first word of "dlltool", so it can be a program name with args.
cannam@95 6884 set dummy dlltool; ac_word=$2
cannam@95 6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 6886 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 6887 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cannam@95 6888 $as_echo_n "(cached) " >&6
cannam@95 6889 else
cannam@95 6890 if test -n "$ac_ct_DLLTOOL"; then
cannam@95 6891 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
cannam@95 6892 else
cannam@95 6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 6894 for as_dir in $PATH
cannam@95 6895 do
cannam@95 6896 IFS=$as_save_IFS
cannam@95 6897 test -z "$as_dir" && as_dir=.
cannam@95 6898 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 6899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 6900 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cannam@95 6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 6902 break 2
cannam@95 6903 fi
cannam@95 6904 done
cannam@95 6905 done
cannam@95 6906 IFS=$as_save_IFS
cannam@95 6907
cannam@95 6908 fi
cannam@95 6909 fi
cannam@95 6910 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
cannam@95 6911 if test -n "$ac_ct_DLLTOOL"; then
cannam@95 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cannam@95 6913 $as_echo "$ac_ct_DLLTOOL" >&6; }
cannam@95 6914 else
cannam@95 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 6916 $as_echo "no" >&6; }
cannam@95 6917 fi
cannam@95 6918
cannam@95 6919 if test "x$ac_ct_DLLTOOL" = x; then
cannam@95 6920 DLLTOOL="false"
cannam@95 6921 else
cannam@95 6922 case $cross_compiling:$ac_tool_warned in
cannam@95 6923 yes:)
cannam@95 6924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@95 6925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@95 6926 ac_tool_warned=yes ;;
cannam@95 6927 esac
cannam@95 6928 DLLTOOL=$ac_ct_DLLTOOL
cannam@95 6929 fi
cannam@95 6930 else
cannam@95 6931 DLLTOOL="$ac_cv_prog_DLLTOOL"
cannam@95 6932 fi
cannam@95 6933
cannam@95 6934 test -z "$DLLTOOL" && DLLTOOL=dlltool
cannam@95 6935
cannam@95 6936
cannam@95 6937
cannam@95 6938
cannam@95 6939
cannam@95 6940
cannam@95 6941
cannam@95 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
cannam@95 6943 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
cannam@95 6944 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
cannam@95 6945 $as_echo_n "(cached) " >&6
cannam@95 6946 else
cannam@95 6947 lt_cv_sharedlib_from_linklib_cmd='unknown'
cannam@95 6948
cannam@95 6949 case $host_os in
cannam@95 6950 cygwin* | mingw* | pw32* | cegcc*)
cannam@95 6951 # two different shell functions defined in ltmain.sh
cannam@95 6952 # decide which to use based on capabilities of $DLLTOOL
cannam@95 6953 case `$DLLTOOL --help 2>&1` in
cannam@95 6954 *--identify-strict*)
cannam@95 6955 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
cannam@95 6956 ;;
cannam@95 6957 *)
cannam@95 6958 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
cannam@95 6959 ;;
cannam@95 6960 esac
cannam@95 6961 ;;
cannam@95 6962 *)
cannam@95 6963 # fallback: assume linklib IS sharedlib
cannam@95 6964 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
cannam@95 6965 ;;
cannam@95 6966 esac
cannam@95 6967
cannam@95 6968 fi
cannam@95 6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
cannam@95 6970 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
cannam@95 6971 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
cannam@95 6972 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
cannam@95 6973
cannam@95 6974
cannam@95 6975
cannam@95 6976
cannam@95 6977
cannam@95 6978
cannam@95 6979
cannam@95 6980 if test -n "$ac_tool_prefix"; then
cannam@95 6981 for ac_prog in ar
cannam@95 6982 do
cannam@95 6983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@95 6984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@95 6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 6986 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 6987 if ${ac_cv_prog_AR+:} false; then :
cannam@95 6988 $as_echo_n "(cached) " >&6
cannam@95 6989 else
cannam@95 6990 if test -n "$AR"; then
cannam@95 6991 ac_cv_prog_AR="$AR" # Let the user override the test.
cannam@95 6992 else
cannam@95 6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 6994 for as_dir in $PATH
cannam@95 6995 do
cannam@95 6996 IFS=$as_save_IFS
cannam@95 6997 test -z "$as_dir" && as_dir=.
cannam@95 6998 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 6999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 7000 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cannam@95 7001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 7002 break 2
cannam@95 7003 fi
cannam@95 7004 done
cannam@95 7005 done
cannam@95 7006 IFS=$as_save_IFS
cannam@95 7007
cannam@95 7008 fi
cannam@95 7009 fi
cannam@95 7010 AR=$ac_cv_prog_AR
cannam@95 7011 if test -n "$AR"; then
cannam@95 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cannam@95 7013 $as_echo "$AR" >&6; }
cannam@95 7014 else
cannam@95 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 7016 $as_echo "no" >&6; }
cannam@95 7017 fi
cannam@95 7018
cannam@95 7019
cannam@95 7020 test -n "$AR" && break
cannam@95 7021 done
cannam@95 7022 fi
cannam@95 7023 if test -z "$AR"; then
cannam@95 7024 ac_ct_AR=$AR
cannam@95 7025 for ac_prog in ar
cannam@95 7026 do
cannam@95 7027 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@95 7028 set dummy $ac_prog; ac_word=$2
cannam@95 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 7030 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 7031 if ${ac_cv_prog_ac_ct_AR+:} false; then :
cannam@95 7032 $as_echo_n "(cached) " >&6
cannam@95 7033 else
cannam@95 7034 if test -n "$ac_ct_AR"; then
cannam@95 7035 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
cannam@95 7036 else
cannam@95 7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 7038 for as_dir in $PATH
cannam@95 7039 do
cannam@95 7040 IFS=$as_save_IFS
cannam@95 7041 test -z "$as_dir" && as_dir=.
cannam@95 7042 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 7043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 7044 ac_cv_prog_ac_ct_AR="$ac_prog"
cannam@95 7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 7046 break 2
cannam@95 7047 fi
cannam@95 7048 done
cannam@95 7049 done
cannam@95 7050 IFS=$as_save_IFS
cannam@95 7051
cannam@95 7052 fi
cannam@95 7053 fi
cannam@95 7054 ac_ct_AR=$ac_cv_prog_ac_ct_AR
cannam@95 7055 if test -n "$ac_ct_AR"; then
cannam@95 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cannam@95 7057 $as_echo "$ac_ct_AR" >&6; }
cannam@95 7058 else
cannam@95 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 7060 $as_echo "no" >&6; }
cannam@95 7061 fi
cannam@95 7062
cannam@95 7063
cannam@95 7064 test -n "$ac_ct_AR" && break
cannam@95 7065 done
cannam@95 7066
cannam@95 7067 if test "x$ac_ct_AR" = x; then
cannam@95 7068 AR="false"
cannam@95 7069 else
cannam@95 7070 case $cross_compiling:$ac_tool_warned in
cannam@95 7071 yes:)
cannam@95 7072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@95 7073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@95 7074 ac_tool_warned=yes ;;
cannam@95 7075 esac
cannam@95 7076 AR=$ac_ct_AR
cannam@95 7077 fi
cannam@95 7078 fi
cannam@95 7079
cannam@95 7080 : ${AR=ar}
cannam@95 7081 : ${AR_FLAGS=cru}
cannam@95 7082
cannam@95 7083
cannam@95 7084
cannam@95 7085
cannam@95 7086
cannam@95 7087
cannam@95 7088
cannam@95 7089
cannam@95 7090
cannam@95 7091
cannam@95 7092
cannam@95 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
cannam@95 7094 $as_echo_n "checking for archiver @FILE support... " >&6; }
cannam@95 7095 if ${lt_cv_ar_at_file+:} false; then :
cannam@95 7096 $as_echo_n "(cached) " >&6
cannam@95 7097 else
cannam@95 7098 lt_cv_ar_at_file=no
cannam@95 7099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 7100 /* end confdefs.h. */
cannam@95 7101
cannam@95 7102 int
cannam@95 7103 main ()
cannam@95 7104 {
cannam@95 7105
cannam@95 7106 ;
cannam@95 7107 return 0;
cannam@95 7108 }
cannam@95 7109 _ACEOF
cannam@95 7110 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 7111 echo conftest.$ac_objext > conftest.lst
cannam@95 7112 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
cannam@95 7113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
cannam@95 7114 (eval $lt_ar_try) 2>&5
cannam@95 7115 ac_status=$?
cannam@95 7116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 7117 test $ac_status = 0; }
cannam@95 7118 if test "$ac_status" -eq 0; then
cannam@95 7119 # Ensure the archiver fails upon bogus file names.
cannam@95 7120 rm -f conftest.$ac_objext libconftest.a
cannam@95 7121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
cannam@95 7122 (eval $lt_ar_try) 2>&5
cannam@95 7123 ac_status=$?
cannam@95 7124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 7125 test $ac_status = 0; }
cannam@95 7126 if test "$ac_status" -ne 0; then
cannam@95 7127 lt_cv_ar_at_file=@
cannam@95 7128 fi
cannam@95 7129 fi
cannam@95 7130 rm -f conftest.* libconftest.a
cannam@95 7131
cannam@95 7132 fi
cannam@95 7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 7134
cannam@95 7135 fi
cannam@95 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
cannam@95 7137 $as_echo "$lt_cv_ar_at_file" >&6; }
cannam@95 7138
cannam@95 7139 if test "x$lt_cv_ar_at_file" = xno; then
cannam@95 7140 archiver_list_spec=
cannam@95 7141 else
cannam@95 7142 archiver_list_spec=$lt_cv_ar_at_file
cannam@95 7143 fi
cannam@95 7144
cannam@95 7145
cannam@95 7146
cannam@95 7147
cannam@95 7148
cannam@95 7149
cannam@95 7150
cannam@95 7151 if test -n "$ac_tool_prefix"; then
cannam@95 7152 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
cannam@95 7153 set dummy ${ac_tool_prefix}strip; ac_word=$2
cannam@95 7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 7155 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 7156 if ${ac_cv_prog_STRIP+:} false; then :
cannam@95 7157 $as_echo_n "(cached) " >&6
cannam@95 7158 else
cannam@95 7159 if test -n "$STRIP"; then
cannam@95 7160 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
cannam@95 7161 else
cannam@95 7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 7163 for as_dir in $PATH
cannam@95 7164 do
cannam@95 7165 IFS=$as_save_IFS
cannam@95 7166 test -z "$as_dir" && as_dir=.
cannam@95 7167 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 7168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 7169 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cannam@95 7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 7171 break 2
cannam@95 7172 fi
cannam@95 7173 done
cannam@95 7174 done
cannam@95 7175 IFS=$as_save_IFS
cannam@95 7176
cannam@95 7177 fi
cannam@95 7178 fi
cannam@95 7179 STRIP=$ac_cv_prog_STRIP
cannam@95 7180 if test -n "$STRIP"; then
cannam@95 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cannam@95 7182 $as_echo "$STRIP" >&6; }
cannam@95 7183 else
cannam@95 7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 7185 $as_echo "no" >&6; }
cannam@95 7186 fi
cannam@95 7187
cannam@95 7188
cannam@95 7189 fi
cannam@95 7190 if test -z "$ac_cv_prog_STRIP"; then
cannam@95 7191 ac_ct_STRIP=$STRIP
cannam@95 7192 # Extract the first word of "strip", so it can be a program name with args.
cannam@95 7193 set dummy strip; ac_word=$2
cannam@95 7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 7195 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 7196 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cannam@95 7197 $as_echo_n "(cached) " >&6
cannam@95 7198 else
cannam@95 7199 if test -n "$ac_ct_STRIP"; then
cannam@95 7200 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
cannam@95 7201 else
cannam@95 7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 7203 for as_dir in $PATH
cannam@95 7204 do
cannam@95 7205 IFS=$as_save_IFS
cannam@95 7206 test -z "$as_dir" && as_dir=.
cannam@95 7207 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 7208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 7209 ac_cv_prog_ac_ct_STRIP="strip"
cannam@95 7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 7211 break 2
cannam@95 7212 fi
cannam@95 7213 done
cannam@95 7214 done
cannam@95 7215 IFS=$as_save_IFS
cannam@95 7216
cannam@95 7217 fi
cannam@95 7218 fi
cannam@95 7219 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
cannam@95 7220 if test -n "$ac_ct_STRIP"; then
cannam@95 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cannam@95 7222 $as_echo "$ac_ct_STRIP" >&6; }
cannam@95 7223 else
cannam@95 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 7225 $as_echo "no" >&6; }
cannam@95 7226 fi
cannam@95 7227
cannam@95 7228 if test "x$ac_ct_STRIP" = x; then
cannam@95 7229 STRIP=":"
cannam@95 7230 else
cannam@95 7231 case $cross_compiling:$ac_tool_warned in
cannam@95 7232 yes:)
cannam@95 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@95 7234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@95 7235 ac_tool_warned=yes ;;
cannam@95 7236 esac
cannam@95 7237 STRIP=$ac_ct_STRIP
cannam@95 7238 fi
cannam@95 7239 else
cannam@95 7240 STRIP="$ac_cv_prog_STRIP"
cannam@95 7241 fi
cannam@95 7242
cannam@95 7243 test -z "$STRIP" && STRIP=:
cannam@95 7244
cannam@95 7245
cannam@95 7246
cannam@95 7247
cannam@95 7248
cannam@95 7249
cannam@95 7250 if test -n "$ac_tool_prefix"; then
cannam@95 7251 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
cannam@95 7252 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cannam@95 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 7254 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 7255 if ${ac_cv_prog_RANLIB+:} false; then :
cannam@95 7256 $as_echo_n "(cached) " >&6
cannam@95 7257 else
cannam@95 7258 if test -n "$RANLIB"; then
cannam@95 7259 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
cannam@95 7260 else
cannam@95 7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 7262 for as_dir in $PATH
cannam@95 7263 do
cannam@95 7264 IFS=$as_save_IFS
cannam@95 7265 test -z "$as_dir" && as_dir=.
cannam@95 7266 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 7267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 7268 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cannam@95 7269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 7270 break 2
cannam@95 7271 fi
cannam@95 7272 done
cannam@95 7273 done
cannam@95 7274 IFS=$as_save_IFS
cannam@95 7275
cannam@95 7276 fi
cannam@95 7277 fi
cannam@95 7278 RANLIB=$ac_cv_prog_RANLIB
cannam@95 7279 if test -n "$RANLIB"; then
cannam@95 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cannam@95 7281 $as_echo "$RANLIB" >&6; }
cannam@95 7282 else
cannam@95 7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 7284 $as_echo "no" >&6; }
cannam@95 7285 fi
cannam@95 7286
cannam@95 7287
cannam@95 7288 fi
cannam@95 7289 if test -z "$ac_cv_prog_RANLIB"; then
cannam@95 7290 ac_ct_RANLIB=$RANLIB
cannam@95 7291 # Extract the first word of "ranlib", so it can be a program name with args.
cannam@95 7292 set dummy ranlib; ac_word=$2
cannam@95 7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 7294 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 7295 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cannam@95 7296 $as_echo_n "(cached) " >&6
cannam@95 7297 else
cannam@95 7298 if test -n "$ac_ct_RANLIB"; then
cannam@95 7299 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
cannam@95 7300 else
cannam@95 7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 7302 for as_dir in $PATH
cannam@95 7303 do
cannam@95 7304 IFS=$as_save_IFS
cannam@95 7305 test -z "$as_dir" && as_dir=.
cannam@95 7306 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 7307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 7308 ac_cv_prog_ac_ct_RANLIB="ranlib"
cannam@95 7309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 7310 break 2
cannam@95 7311 fi
cannam@95 7312 done
cannam@95 7313 done
cannam@95 7314 IFS=$as_save_IFS
cannam@95 7315
cannam@95 7316 fi
cannam@95 7317 fi
cannam@95 7318 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
cannam@95 7319 if test -n "$ac_ct_RANLIB"; then
cannam@95 7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cannam@95 7321 $as_echo "$ac_ct_RANLIB" >&6; }
cannam@95 7322 else
cannam@95 7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 7324 $as_echo "no" >&6; }
cannam@95 7325 fi
cannam@95 7326
cannam@95 7327 if test "x$ac_ct_RANLIB" = x; then
cannam@95 7328 RANLIB=":"
cannam@95 7329 else
cannam@95 7330 case $cross_compiling:$ac_tool_warned in
cannam@95 7331 yes:)
cannam@95 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@95 7333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@95 7334 ac_tool_warned=yes ;;
cannam@95 7335 esac
cannam@95 7336 RANLIB=$ac_ct_RANLIB
cannam@95 7337 fi
cannam@95 7338 else
cannam@95 7339 RANLIB="$ac_cv_prog_RANLIB"
cannam@95 7340 fi
cannam@95 7341
cannam@95 7342 test -z "$RANLIB" && RANLIB=:
cannam@95 7343
cannam@95 7344
cannam@95 7345
cannam@95 7346
cannam@95 7347
cannam@95 7348
cannam@95 7349 # Determine commands to create old-style static archives.
cannam@95 7350 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
cannam@95 7351 old_postinstall_cmds='chmod 644 $oldlib'
cannam@95 7352 old_postuninstall_cmds=
cannam@95 7353
cannam@95 7354 if test -n "$RANLIB"; then
cannam@95 7355 case $host_os in
cannam@95 7356 openbsd*)
cannam@95 7357 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cannam@95 7358 ;;
cannam@95 7359 *)
cannam@95 7360 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cannam@95 7361 ;;
cannam@95 7362 esac
cannam@95 7363 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cannam@95 7364 fi
cannam@95 7365
cannam@95 7366 case $host_os in
cannam@95 7367 darwin*)
cannam@95 7368 lock_old_archive_extraction=yes ;;
cannam@95 7369 *)
cannam@95 7370 lock_old_archive_extraction=no ;;
cannam@95 7371 esac
cannam@95 7372
cannam@95 7373
cannam@95 7374
cannam@95 7375
cannam@95 7376
cannam@95 7377
cannam@95 7378
cannam@95 7379
cannam@95 7380
cannam@95 7381
cannam@95 7382
cannam@95 7383
cannam@95 7384
cannam@95 7385
cannam@95 7386
cannam@95 7387
cannam@95 7388
cannam@95 7389
cannam@95 7390
cannam@95 7391
cannam@95 7392
cannam@95 7393
cannam@95 7394
cannam@95 7395
cannam@95 7396
cannam@95 7397
cannam@95 7398
cannam@95 7399
cannam@95 7400
cannam@95 7401
cannam@95 7402
cannam@95 7403
cannam@95 7404
cannam@95 7405
cannam@95 7406
cannam@95 7407
cannam@95 7408
cannam@95 7409
cannam@95 7410
cannam@95 7411 # If no C compiler was specified, use CC.
cannam@95 7412 LTCC=${LTCC-"$CC"}
cannam@95 7413
cannam@95 7414 # If no C compiler flags were specified, use CFLAGS.
cannam@95 7415 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cannam@95 7416
cannam@95 7417 # Allow CC to be a program name with arguments.
cannam@95 7418 compiler=$CC
cannam@95 7419
cannam@95 7420
cannam@95 7421 # Check for command to grab the raw symbol name followed by C symbol from nm.
cannam@95 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cannam@95 7423 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cannam@95 7424 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cannam@95 7425 $as_echo_n "(cached) " >&6
cannam@95 7426 else
cannam@95 7427
cannam@95 7428 # These are sane defaults that work on at least a few old systems.
cannam@95 7429 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
cannam@95 7430
cannam@95 7431 # Character class describing NM global symbol codes.
cannam@95 7432 symcode='[BCDEGRST]'
cannam@95 7433
cannam@95 7434 # Regexp to match symbols that can be accessed directly from C.
cannam@95 7435 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
cannam@95 7436
cannam@95 7437 # Define system-specific variables.
cannam@95 7438 case $host_os in
cannam@95 7439 aix*)
cannam@95 7440 symcode='[BCDT]'
cannam@95 7441 ;;
cannam@95 7442 cygwin* | mingw* | pw32* | cegcc*)
cannam@95 7443 symcode='[ABCDGISTW]'
cannam@95 7444 ;;
cannam@95 7445 hpux*)
cannam@95 7446 if test "$host_cpu" = ia64; then
cannam@95 7447 symcode='[ABCDEGRST]'
cannam@95 7448 fi
cannam@95 7449 ;;
cannam@95 7450 irix* | nonstopux*)
cannam@95 7451 symcode='[BCDEGRST]'
cannam@95 7452 ;;
cannam@95 7453 osf*)
cannam@95 7454 symcode='[BCDEGQRST]'
cannam@95 7455 ;;
cannam@95 7456 solaris*)
cannam@95 7457 symcode='[BDRT]'
cannam@95 7458 ;;
cannam@95 7459 sco3.2v5*)
cannam@95 7460 symcode='[DT]'
cannam@95 7461 ;;
cannam@95 7462 sysv4.2uw2*)
cannam@95 7463 symcode='[DT]'
cannam@95 7464 ;;
cannam@95 7465 sysv5* | sco5v6* | unixware* | OpenUNIX*)
cannam@95 7466 symcode='[ABDT]'
cannam@95 7467 ;;
cannam@95 7468 sysv4)
cannam@95 7469 symcode='[DFNSTU]'
cannam@95 7470 ;;
cannam@95 7471 esac
cannam@95 7472
cannam@95 7473 # If we're using GNU nm, then use its standard symbol codes.
cannam@95 7474 case `$NM -V 2>&1` in
cannam@95 7475 *GNU* | *'with BFD'*)
cannam@95 7476 symcode='[ABCDGIRSTW]' ;;
cannam@95 7477 esac
cannam@95 7478
cannam@95 7479 # Transform an extracted symbol line into a proper C declaration.
cannam@95 7480 # Some systems (esp. on ia64) link data and code symbols differently,
cannam@95 7481 # so use this general approach.
cannam@95 7482 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
cannam@95 7483
cannam@95 7484 # Transform an extracted symbol line into symbol name and symbol address
cannam@95 7485 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
cannam@95 7486 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
cannam@95 7487
cannam@95 7488 # Handle CRLF in mingw tool chain
cannam@95 7489 opt_cr=
cannam@95 7490 case $build_os in
cannam@95 7491 mingw*)
cannam@95 7492 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
cannam@95 7493 ;;
cannam@95 7494 esac
cannam@95 7495
cannam@95 7496 # Try without a prefix underscore, then with it.
cannam@95 7497 for ac_symprfx in "" "_"; do
cannam@95 7498
cannam@95 7499 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
cannam@95 7500 symxfrm="\\1 $ac_symprfx\\2 \\2"
cannam@95 7501
cannam@95 7502 # Write the raw and C identifiers.
cannam@95 7503 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
cannam@95 7504 # Fake it for dumpbin and say T for any non-static function
cannam@95 7505 # and D for any global variable.
cannam@95 7506 # Also find C++ and __fastcall symbols from MSVC++,
cannam@95 7507 # which start with @ or ?.
cannam@95 7508 lt_cv_sys_global_symbol_pipe="$AWK '"\
cannam@95 7509 " {last_section=section; section=\$ 3};"\
cannam@95 7510 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cannam@95 7511 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
cannam@95 7512 " \$ 0!~/External *\|/{next};"\
cannam@95 7513 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
cannam@95 7514 " {if(hide[section]) next};"\
cannam@95 7515 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
cannam@95 7516 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
cannam@95 7517 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
cannam@95 7518 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
cannam@95 7519 " ' prfx=^$ac_symprfx"
cannam@95 7520 else
cannam@95 7521 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
cannam@95 7522 fi
cannam@95 7523 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cannam@95 7524
cannam@95 7525 # Check to see that the pipe works correctly.
cannam@95 7526 pipe_works=no
cannam@95 7527
cannam@95 7528 rm -f conftest*
cannam@95 7529 cat > conftest.$ac_ext <<_LT_EOF
cannam@95 7530 #ifdef __cplusplus
cannam@95 7531 extern "C" {
cannam@95 7532 #endif
cannam@95 7533 char nm_test_var;
cannam@95 7534 void nm_test_func(void);
cannam@95 7535 void nm_test_func(void){}
cannam@95 7536 #ifdef __cplusplus
cannam@95 7537 }
cannam@95 7538 #endif
cannam@95 7539 int main(){nm_test_var='a';nm_test_func();return(0);}
cannam@95 7540 _LT_EOF
cannam@95 7541
cannam@95 7542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@95 7543 (eval $ac_compile) 2>&5
cannam@95 7544 ac_status=$?
cannam@95 7545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 7546 test $ac_status = 0; }; then
cannam@95 7547 # Now try to grab the symbols.
cannam@95 7548 nlist=conftest.nm
cannam@95 7549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
cannam@95 7550 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cannam@95 7551 ac_status=$?
cannam@95 7552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 7553 test $ac_status = 0; } && test -s "$nlist"; then
cannam@95 7554 # Try sorting and uniquifying the output.
cannam@95 7555 if sort "$nlist" | uniq > "$nlist"T; then
cannam@95 7556 mv -f "$nlist"T "$nlist"
cannam@95 7557 else
cannam@95 7558 rm -f "$nlist"T
cannam@95 7559 fi
cannam@95 7560
cannam@95 7561 # Make sure that we snagged all the symbols we need.
cannam@95 7562 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
cannam@95 7563 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
cannam@95 7564 cat <<_LT_EOF > conftest.$ac_ext
cannam@95 7565 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
cannam@95 7566 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
cannam@95 7567 /* DATA imports from DLLs on WIN32 con't be const, because runtime
cannam@95 7568 relocations are performed -- see ld's documentation on pseudo-relocs. */
cannam@95 7569 # define LT_DLSYM_CONST
cannam@95 7570 #elif defined(__osf__)
cannam@95 7571 /* This system does not cope well with relocations in const data. */
cannam@95 7572 # define LT_DLSYM_CONST
cannam@95 7573 #else
cannam@95 7574 # define LT_DLSYM_CONST const
cannam@95 7575 #endif
cannam@95 7576
cannam@95 7577 #ifdef __cplusplus
cannam@95 7578 extern "C" {
cannam@95 7579 #endif
cannam@95 7580
cannam@95 7581 _LT_EOF
cannam@95 7582 # Now generate the symbol file.
cannam@95 7583 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
cannam@95 7584
cannam@95 7585 cat <<_LT_EOF >> conftest.$ac_ext
cannam@95 7586
cannam@95 7587 /* The mapping between symbol names and symbols. */
cannam@95 7588 LT_DLSYM_CONST struct {
cannam@95 7589 const char *name;
cannam@95 7590 void *address;
cannam@95 7591 }
cannam@95 7592 lt__PROGRAM__LTX_preloaded_symbols[] =
cannam@95 7593 {
cannam@95 7594 { "@PROGRAM@", (void *) 0 },
cannam@95 7595 _LT_EOF
cannam@95 7596 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
cannam@95 7597 cat <<\_LT_EOF >> conftest.$ac_ext
cannam@95 7598 {0, (void *) 0}
cannam@95 7599 };
cannam@95 7600
cannam@95 7601 /* This works around a problem in FreeBSD linker */
cannam@95 7602 #ifdef FREEBSD_WORKAROUND
cannam@95 7603 static const void *lt_preloaded_setup() {
cannam@95 7604 return lt__PROGRAM__LTX_preloaded_symbols;
cannam@95 7605 }
cannam@95 7606 #endif
cannam@95 7607
cannam@95 7608 #ifdef __cplusplus
cannam@95 7609 }
cannam@95 7610 #endif
cannam@95 7611 _LT_EOF
cannam@95 7612 # Now try linking the two files.
cannam@95 7613 mv conftest.$ac_objext conftstm.$ac_objext
cannam@95 7614 lt_globsym_save_LIBS=$LIBS
cannam@95 7615 lt_globsym_save_CFLAGS=$CFLAGS
cannam@95 7616 LIBS="conftstm.$ac_objext"
cannam@95 7617 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cannam@95 7618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@95 7619 (eval $ac_link) 2>&5
cannam@95 7620 ac_status=$?
cannam@95 7621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 7622 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cannam@95 7623 pipe_works=yes
cannam@95 7624 fi
cannam@95 7625 LIBS=$lt_globsym_save_LIBS
cannam@95 7626 CFLAGS=$lt_globsym_save_CFLAGS
cannam@95 7627 else
cannam@95 7628 echo "cannot find nm_test_func in $nlist" >&5
cannam@95 7629 fi
cannam@95 7630 else
cannam@95 7631 echo "cannot find nm_test_var in $nlist" >&5
cannam@95 7632 fi
cannam@95 7633 else
cannam@95 7634 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
cannam@95 7635 fi
cannam@95 7636 else
cannam@95 7637 echo "$progname: failed program was:" >&5
cannam@95 7638 cat conftest.$ac_ext >&5
cannam@95 7639 fi
cannam@95 7640 rm -rf conftest* conftst*
cannam@95 7641
cannam@95 7642 # Do not use the global_symbol_pipe unless it works.
cannam@95 7643 if test "$pipe_works" = yes; then
cannam@95 7644 break
cannam@95 7645 else
cannam@95 7646 lt_cv_sys_global_symbol_pipe=
cannam@95 7647 fi
cannam@95 7648 done
cannam@95 7649
cannam@95 7650 fi
cannam@95 7651
cannam@95 7652 if test -z "$lt_cv_sys_global_symbol_pipe"; then
cannam@95 7653 lt_cv_sys_global_symbol_to_cdecl=
cannam@95 7654 fi
cannam@95 7655 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cannam@95 7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cannam@95 7657 $as_echo "failed" >&6; }
cannam@95 7658 else
cannam@95 7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cannam@95 7660 $as_echo "ok" >&6; }
cannam@95 7661 fi
cannam@95 7662
cannam@95 7663 # Response file support.
cannam@95 7664 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
cannam@95 7665 nm_file_list_spec='@'
cannam@95 7666 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
cannam@95 7667 nm_file_list_spec='@'
cannam@95 7668 fi
cannam@95 7669
cannam@95 7670
cannam@95 7671
cannam@95 7672
cannam@95 7673
cannam@95 7674
cannam@95 7675
cannam@95 7676
cannam@95 7677
cannam@95 7678
cannam@95 7679
cannam@95 7680
cannam@95 7681
cannam@95 7682
cannam@95 7683
cannam@95 7684
cannam@95 7685
cannam@95 7686
cannam@95 7687
cannam@95 7688
cannam@95 7689
cannam@95 7690
cannam@95 7691
cannam@95 7692
cannam@95 7693
cannam@95 7694
cannam@95 7695
cannam@95 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
cannam@95 7697 $as_echo_n "checking for sysroot... " >&6; }
cannam@95 7698
cannam@95 7699 # Check whether --with-sysroot was given.
cannam@95 7700 if test "${with_sysroot+set}" = set; then :
cannam@95 7701 withval=$with_sysroot;
cannam@95 7702 else
cannam@95 7703 with_sysroot=no
cannam@95 7704 fi
cannam@95 7705
cannam@95 7706
cannam@95 7707 lt_sysroot=
cannam@95 7708 case ${with_sysroot} in #(
cannam@95 7709 yes)
cannam@95 7710 if test "$GCC" = yes; then
cannam@95 7711 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
cannam@95 7712 fi
cannam@95 7713 ;; #(
cannam@95 7714 /*)
cannam@95 7715 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
cannam@95 7716 ;; #(
cannam@95 7717 no|'')
cannam@95 7718 ;; #(
cannam@95 7719 *)
cannam@95 7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
cannam@95 7721 $as_echo "${with_sysroot}" >&6; }
cannam@95 7722 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
cannam@95 7723 ;;
cannam@95 7724 esac
cannam@95 7725
cannam@95 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
cannam@95 7727 $as_echo "${lt_sysroot:-no}" >&6; }
cannam@95 7728
cannam@95 7729
cannam@95 7730
cannam@95 7731
cannam@95 7732
cannam@95 7733 # Check whether --enable-libtool-lock was given.
cannam@95 7734 if test "${enable_libtool_lock+set}" = set; then :
cannam@95 7735 enableval=$enable_libtool_lock;
cannam@95 7736 fi
cannam@95 7737
cannam@95 7738 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
cannam@95 7739
cannam@95 7740 # Some flags need to be propagated to the compiler or linker for good
cannam@95 7741 # libtool support.
cannam@95 7742 case $host in
cannam@95 7743 ia64-*-hpux*)
cannam@95 7744 # Find out which ABI we are using.
cannam@95 7745 echo 'int i;' > conftest.$ac_ext
cannam@95 7746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@95 7747 (eval $ac_compile) 2>&5
cannam@95 7748 ac_status=$?
cannam@95 7749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 7750 test $ac_status = 0; }; then
cannam@95 7751 case `/usr/bin/file conftest.$ac_objext` in
cannam@95 7752 *ELF-32*)
cannam@95 7753 HPUX_IA64_MODE="32"
cannam@95 7754 ;;
cannam@95 7755 *ELF-64*)
cannam@95 7756 HPUX_IA64_MODE="64"
cannam@95 7757 ;;
cannam@95 7758 esac
cannam@95 7759 fi
cannam@95 7760 rm -rf conftest*
cannam@95 7761 ;;
cannam@95 7762 *-*-irix6*)
cannam@95 7763 # Find out which ABI we are using.
cannam@95 7764 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cannam@95 7765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@95 7766 (eval $ac_compile) 2>&5
cannam@95 7767 ac_status=$?
cannam@95 7768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 7769 test $ac_status = 0; }; then
cannam@95 7770 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@95 7771 case `/usr/bin/file conftest.$ac_objext` in
cannam@95 7772 *32-bit*)
cannam@95 7773 LD="${LD-ld} -melf32bsmip"
cannam@95 7774 ;;
cannam@95 7775 *N32*)
cannam@95 7776 LD="${LD-ld} -melf32bmipn32"
cannam@95 7777 ;;
cannam@95 7778 *64-bit*)
cannam@95 7779 LD="${LD-ld} -melf64bmip"
cannam@95 7780 ;;
cannam@95 7781 esac
cannam@95 7782 else
cannam@95 7783 case `/usr/bin/file conftest.$ac_objext` in
cannam@95 7784 *32-bit*)
cannam@95 7785 LD="${LD-ld} -32"
cannam@95 7786 ;;
cannam@95 7787 *N32*)
cannam@95 7788 LD="${LD-ld} -n32"
cannam@95 7789 ;;
cannam@95 7790 *64-bit*)
cannam@95 7791 LD="${LD-ld} -64"
cannam@95 7792 ;;
cannam@95 7793 esac
cannam@95 7794 fi
cannam@95 7795 fi
cannam@95 7796 rm -rf conftest*
cannam@95 7797 ;;
cannam@95 7798
cannam@95 7799 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
cannam@95 7800 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
cannam@95 7801 # Find out which ABI we are using.
cannam@95 7802 echo 'int i;' > conftest.$ac_ext
cannam@95 7803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@95 7804 (eval $ac_compile) 2>&5
cannam@95 7805 ac_status=$?
cannam@95 7806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 7807 test $ac_status = 0; }; then
cannam@95 7808 case `/usr/bin/file conftest.o` in
cannam@95 7809 *32-bit*)
cannam@95 7810 case $host in
cannam@95 7811 x86_64-*kfreebsd*-gnu)
cannam@95 7812 LD="${LD-ld} -m elf_i386_fbsd"
cannam@95 7813 ;;
cannam@95 7814 x86_64-*linux*)
cannam@95 7815 LD="${LD-ld} -m elf_i386"
cannam@95 7816 ;;
cannam@95 7817 ppc64-*linux*|powerpc64-*linux*)
cannam@95 7818 LD="${LD-ld} -m elf32ppclinux"
cannam@95 7819 ;;
cannam@95 7820 s390x-*linux*)
cannam@95 7821 LD="${LD-ld} -m elf_s390"
cannam@95 7822 ;;
cannam@95 7823 sparc64-*linux*)
cannam@95 7824 LD="${LD-ld} -m elf32_sparc"
cannam@95 7825 ;;
cannam@95 7826 esac
cannam@95 7827 ;;
cannam@95 7828 *64-bit*)
cannam@95 7829 case $host in
cannam@95 7830 x86_64-*kfreebsd*-gnu)
cannam@95 7831 LD="${LD-ld} -m elf_x86_64_fbsd"
cannam@95 7832 ;;
cannam@95 7833 x86_64-*linux*)
cannam@95 7834 LD="${LD-ld} -m elf_x86_64"
cannam@95 7835 ;;
cannam@95 7836 ppc*-*linux*|powerpc*-*linux*)
cannam@95 7837 LD="${LD-ld} -m elf64ppc"
cannam@95 7838 ;;
cannam@95 7839 s390*-*linux*|s390*-*tpf*)
cannam@95 7840 LD="${LD-ld} -m elf64_s390"
cannam@95 7841 ;;
cannam@95 7842 sparc*-*linux*)
cannam@95 7843 LD="${LD-ld} -m elf64_sparc"
cannam@95 7844 ;;
cannam@95 7845 esac
cannam@95 7846 ;;
cannam@95 7847 esac
cannam@95 7848 fi
cannam@95 7849 rm -rf conftest*
cannam@95 7850 ;;
cannam@95 7851
cannam@95 7852 *-*-sco3.2v5*)
cannam@95 7853 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
cannam@95 7854 SAVE_CFLAGS="$CFLAGS"
cannam@95 7855 CFLAGS="$CFLAGS -belf"
cannam@95 7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cannam@95 7857 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cannam@95 7858 if ${lt_cv_cc_needs_belf+:} false; then :
cannam@95 7859 $as_echo_n "(cached) " >&6
cannam@95 7860 else
cannam@95 7861 ac_ext=c
cannam@95 7862 ac_cpp='$CPP $CPPFLAGS'
cannam@95 7863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@95 7864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 7865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@95 7866
cannam@95 7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 7868 /* end confdefs.h. */
cannam@95 7869
cannam@95 7870 int
cannam@95 7871 main ()
cannam@95 7872 {
cannam@95 7873
cannam@95 7874 ;
cannam@95 7875 return 0;
cannam@95 7876 }
cannam@95 7877 _ACEOF
cannam@95 7878 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 7879 lt_cv_cc_needs_belf=yes
cannam@95 7880 else
cannam@95 7881 lt_cv_cc_needs_belf=no
cannam@95 7882 fi
cannam@95 7883 rm -f core conftest.err conftest.$ac_objext \
cannam@95 7884 conftest$ac_exeext conftest.$ac_ext
cannam@95 7885 ac_ext=c
cannam@95 7886 ac_cpp='$CPP $CPPFLAGS'
cannam@95 7887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@95 7888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 7889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@95 7890
cannam@95 7891 fi
cannam@95 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cannam@95 7893 $as_echo "$lt_cv_cc_needs_belf" >&6; }
cannam@95 7894 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
cannam@95 7895 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
cannam@95 7896 CFLAGS="$SAVE_CFLAGS"
cannam@95 7897 fi
cannam@95 7898 ;;
cannam@95 7899 *-*solaris*)
cannam@95 7900 # Find out which ABI we are using.
cannam@95 7901 echo 'int i;' > conftest.$ac_ext
cannam@95 7902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@95 7903 (eval $ac_compile) 2>&5
cannam@95 7904 ac_status=$?
cannam@95 7905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 7906 test $ac_status = 0; }; then
cannam@95 7907 case `/usr/bin/file conftest.o` in
cannam@95 7908 *64-bit*)
cannam@95 7909 case $lt_cv_prog_gnu_ld in
cannam@95 7910 yes*)
cannam@95 7911 case $host in
cannam@95 7912 i?86-*-solaris*)
cannam@95 7913 LD="${LD-ld} -m elf_x86_64"
cannam@95 7914 ;;
cannam@95 7915 sparc*-*-solaris*)
cannam@95 7916 LD="${LD-ld} -m elf64_sparc"
cannam@95 7917 ;;
cannam@95 7918 esac
cannam@95 7919 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
cannam@95 7920 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
cannam@95 7921 LD="${LD-ld}_sol2"
cannam@95 7922 fi
cannam@95 7923 ;;
cannam@95 7924 *)
cannam@95 7925 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
cannam@95 7926 LD="${LD-ld} -64"
cannam@95 7927 fi
cannam@95 7928 ;;
cannam@95 7929 esac
cannam@95 7930 ;;
cannam@95 7931 esac
cannam@95 7932 fi
cannam@95 7933 rm -rf conftest*
cannam@95 7934 ;;
cannam@95 7935 esac
cannam@95 7936
cannam@95 7937 need_locks="$enable_libtool_lock"
cannam@95 7938
cannam@95 7939 if test -n "$ac_tool_prefix"; then
cannam@95 7940 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
cannam@95 7941 set dummy ${ac_tool_prefix}mt; ac_word=$2
cannam@95 7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 7943 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 7944 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
cannam@95 7945 $as_echo_n "(cached) " >&6
cannam@95 7946 else
cannam@95 7947 if test -n "$MANIFEST_TOOL"; then
cannam@95 7948 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
cannam@95 7949 else
cannam@95 7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 7951 for as_dir in $PATH
cannam@95 7952 do
cannam@95 7953 IFS=$as_save_IFS
cannam@95 7954 test -z "$as_dir" && as_dir=.
cannam@95 7955 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 7956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 7957 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
cannam@95 7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 7959 break 2
cannam@95 7960 fi
cannam@95 7961 done
cannam@95 7962 done
cannam@95 7963 IFS=$as_save_IFS
cannam@95 7964
cannam@95 7965 fi
cannam@95 7966 fi
cannam@95 7967 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
cannam@95 7968 if test -n "$MANIFEST_TOOL"; then
cannam@95 7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
cannam@95 7970 $as_echo "$MANIFEST_TOOL" >&6; }
cannam@95 7971 else
cannam@95 7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 7973 $as_echo "no" >&6; }
cannam@95 7974 fi
cannam@95 7975
cannam@95 7976
cannam@95 7977 fi
cannam@95 7978 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
cannam@95 7979 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
cannam@95 7980 # Extract the first word of "mt", so it can be a program name with args.
cannam@95 7981 set dummy mt; ac_word=$2
cannam@95 7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 7983 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 7984 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
cannam@95 7985 $as_echo_n "(cached) " >&6
cannam@95 7986 else
cannam@95 7987 if test -n "$ac_ct_MANIFEST_TOOL"; then
cannam@95 7988 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
cannam@95 7989 else
cannam@95 7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 7991 for as_dir in $PATH
cannam@95 7992 do
cannam@95 7993 IFS=$as_save_IFS
cannam@95 7994 test -z "$as_dir" && as_dir=.
cannam@95 7995 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 7996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 7997 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
cannam@95 7998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 7999 break 2
cannam@95 8000 fi
cannam@95 8001 done
cannam@95 8002 done
cannam@95 8003 IFS=$as_save_IFS
cannam@95 8004
cannam@95 8005 fi
cannam@95 8006 fi
cannam@95 8007 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
cannam@95 8008 if test -n "$ac_ct_MANIFEST_TOOL"; then
cannam@95 8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
cannam@95 8010 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
cannam@95 8011 else
cannam@95 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 8013 $as_echo "no" >&6; }
cannam@95 8014 fi
cannam@95 8015
cannam@95 8016 if test "x$ac_ct_MANIFEST_TOOL" = x; then
cannam@95 8017 MANIFEST_TOOL=":"
cannam@95 8018 else
cannam@95 8019 case $cross_compiling:$ac_tool_warned in
cannam@95 8020 yes:)
cannam@95 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@95 8022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@95 8023 ac_tool_warned=yes ;;
cannam@95 8024 esac
cannam@95 8025 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
cannam@95 8026 fi
cannam@95 8027 else
cannam@95 8028 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
cannam@95 8029 fi
cannam@95 8030
cannam@95 8031 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
cannam@95 8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
cannam@95 8033 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
cannam@95 8034 if ${lt_cv_path_mainfest_tool+:} false; then :
cannam@95 8035 $as_echo_n "(cached) " >&6
cannam@95 8036 else
cannam@95 8037 lt_cv_path_mainfest_tool=no
cannam@95 8038 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
cannam@95 8039 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
cannam@95 8040 cat conftest.err >&5
cannam@95 8041 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
cannam@95 8042 lt_cv_path_mainfest_tool=yes
cannam@95 8043 fi
cannam@95 8044 rm -f conftest*
cannam@95 8045 fi
cannam@95 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
cannam@95 8047 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
cannam@95 8048 if test "x$lt_cv_path_mainfest_tool" != xyes; then
cannam@95 8049 MANIFEST_TOOL=:
cannam@95 8050 fi
cannam@95 8051
cannam@95 8052
cannam@95 8053
cannam@95 8054
cannam@95 8055
cannam@95 8056
cannam@95 8057 case $host_os in
cannam@95 8058 rhapsody* | darwin*)
cannam@95 8059 if test -n "$ac_tool_prefix"; then
cannam@95 8060 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
cannam@95 8061 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cannam@95 8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 8063 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 8064 if ${ac_cv_prog_DSYMUTIL+:} false; then :
cannam@95 8065 $as_echo_n "(cached) " >&6
cannam@95 8066 else
cannam@95 8067 if test -n "$DSYMUTIL"; then
cannam@95 8068 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
cannam@95 8069 else
cannam@95 8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 8071 for as_dir in $PATH
cannam@95 8072 do
cannam@95 8073 IFS=$as_save_IFS
cannam@95 8074 test -z "$as_dir" && as_dir=.
cannam@95 8075 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 8076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 8077 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cannam@95 8078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 8079 break 2
cannam@95 8080 fi
cannam@95 8081 done
cannam@95 8082 done
cannam@95 8083 IFS=$as_save_IFS
cannam@95 8084
cannam@95 8085 fi
cannam@95 8086 fi
cannam@95 8087 DSYMUTIL=$ac_cv_prog_DSYMUTIL
cannam@95 8088 if test -n "$DSYMUTIL"; then
cannam@95 8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cannam@95 8090 $as_echo "$DSYMUTIL" >&6; }
cannam@95 8091 else
cannam@95 8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 8093 $as_echo "no" >&6; }
cannam@95 8094 fi
cannam@95 8095
cannam@95 8096
cannam@95 8097 fi
cannam@95 8098 if test -z "$ac_cv_prog_DSYMUTIL"; then
cannam@95 8099 ac_ct_DSYMUTIL=$DSYMUTIL
cannam@95 8100 # Extract the first word of "dsymutil", so it can be a program name with args.
cannam@95 8101 set dummy dsymutil; ac_word=$2
cannam@95 8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 8103 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 8104 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cannam@95 8105 $as_echo_n "(cached) " >&6
cannam@95 8106 else
cannam@95 8107 if test -n "$ac_ct_DSYMUTIL"; then
cannam@95 8108 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
cannam@95 8109 else
cannam@95 8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 8111 for as_dir in $PATH
cannam@95 8112 do
cannam@95 8113 IFS=$as_save_IFS
cannam@95 8114 test -z "$as_dir" && as_dir=.
cannam@95 8115 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 8116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 8117 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cannam@95 8118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 8119 break 2
cannam@95 8120 fi
cannam@95 8121 done
cannam@95 8122 done
cannam@95 8123 IFS=$as_save_IFS
cannam@95 8124
cannam@95 8125 fi
cannam@95 8126 fi
cannam@95 8127 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
cannam@95 8128 if test -n "$ac_ct_DSYMUTIL"; then
cannam@95 8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cannam@95 8130 $as_echo "$ac_ct_DSYMUTIL" >&6; }
cannam@95 8131 else
cannam@95 8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 8133 $as_echo "no" >&6; }
cannam@95 8134 fi
cannam@95 8135
cannam@95 8136 if test "x$ac_ct_DSYMUTIL" = x; then
cannam@95 8137 DSYMUTIL=":"
cannam@95 8138 else
cannam@95 8139 case $cross_compiling:$ac_tool_warned in
cannam@95 8140 yes:)
cannam@95 8141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@95 8142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@95 8143 ac_tool_warned=yes ;;
cannam@95 8144 esac
cannam@95 8145 DSYMUTIL=$ac_ct_DSYMUTIL
cannam@95 8146 fi
cannam@95 8147 else
cannam@95 8148 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
cannam@95 8149 fi
cannam@95 8150
cannam@95 8151 if test -n "$ac_tool_prefix"; then
cannam@95 8152 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
cannam@95 8153 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cannam@95 8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 8155 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 8156 if ${ac_cv_prog_NMEDIT+:} false; then :
cannam@95 8157 $as_echo_n "(cached) " >&6
cannam@95 8158 else
cannam@95 8159 if test -n "$NMEDIT"; then
cannam@95 8160 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
cannam@95 8161 else
cannam@95 8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 8163 for as_dir in $PATH
cannam@95 8164 do
cannam@95 8165 IFS=$as_save_IFS
cannam@95 8166 test -z "$as_dir" && as_dir=.
cannam@95 8167 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 8168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 8169 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cannam@95 8170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 8171 break 2
cannam@95 8172 fi
cannam@95 8173 done
cannam@95 8174 done
cannam@95 8175 IFS=$as_save_IFS
cannam@95 8176
cannam@95 8177 fi
cannam@95 8178 fi
cannam@95 8179 NMEDIT=$ac_cv_prog_NMEDIT
cannam@95 8180 if test -n "$NMEDIT"; then
cannam@95 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cannam@95 8182 $as_echo "$NMEDIT" >&6; }
cannam@95 8183 else
cannam@95 8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 8185 $as_echo "no" >&6; }
cannam@95 8186 fi
cannam@95 8187
cannam@95 8188
cannam@95 8189 fi
cannam@95 8190 if test -z "$ac_cv_prog_NMEDIT"; then
cannam@95 8191 ac_ct_NMEDIT=$NMEDIT
cannam@95 8192 # Extract the first word of "nmedit", so it can be a program name with args.
cannam@95 8193 set dummy nmedit; ac_word=$2
cannam@95 8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 8195 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 8196 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cannam@95 8197 $as_echo_n "(cached) " >&6
cannam@95 8198 else
cannam@95 8199 if test -n "$ac_ct_NMEDIT"; then
cannam@95 8200 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
cannam@95 8201 else
cannam@95 8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 8203 for as_dir in $PATH
cannam@95 8204 do
cannam@95 8205 IFS=$as_save_IFS
cannam@95 8206 test -z "$as_dir" && as_dir=.
cannam@95 8207 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 8208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 8209 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cannam@95 8210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 8211 break 2
cannam@95 8212 fi
cannam@95 8213 done
cannam@95 8214 done
cannam@95 8215 IFS=$as_save_IFS
cannam@95 8216
cannam@95 8217 fi
cannam@95 8218 fi
cannam@95 8219 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
cannam@95 8220 if test -n "$ac_ct_NMEDIT"; then
cannam@95 8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cannam@95 8222 $as_echo "$ac_ct_NMEDIT" >&6; }
cannam@95 8223 else
cannam@95 8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 8225 $as_echo "no" >&6; }
cannam@95 8226 fi
cannam@95 8227
cannam@95 8228 if test "x$ac_ct_NMEDIT" = x; then
cannam@95 8229 NMEDIT=":"
cannam@95 8230 else
cannam@95 8231 case $cross_compiling:$ac_tool_warned in
cannam@95 8232 yes:)
cannam@95 8233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@95 8234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@95 8235 ac_tool_warned=yes ;;
cannam@95 8236 esac
cannam@95 8237 NMEDIT=$ac_ct_NMEDIT
cannam@95 8238 fi
cannam@95 8239 else
cannam@95 8240 NMEDIT="$ac_cv_prog_NMEDIT"
cannam@95 8241 fi
cannam@95 8242
cannam@95 8243 if test -n "$ac_tool_prefix"; then
cannam@95 8244 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
cannam@95 8245 set dummy ${ac_tool_prefix}lipo; ac_word=$2
cannam@95 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 8247 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 8248 if ${ac_cv_prog_LIPO+:} false; then :
cannam@95 8249 $as_echo_n "(cached) " >&6
cannam@95 8250 else
cannam@95 8251 if test -n "$LIPO"; then
cannam@95 8252 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
cannam@95 8253 else
cannam@95 8254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 8255 for as_dir in $PATH
cannam@95 8256 do
cannam@95 8257 IFS=$as_save_IFS
cannam@95 8258 test -z "$as_dir" && as_dir=.
cannam@95 8259 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 8260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 8261 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cannam@95 8262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 8263 break 2
cannam@95 8264 fi
cannam@95 8265 done
cannam@95 8266 done
cannam@95 8267 IFS=$as_save_IFS
cannam@95 8268
cannam@95 8269 fi
cannam@95 8270 fi
cannam@95 8271 LIPO=$ac_cv_prog_LIPO
cannam@95 8272 if test -n "$LIPO"; then
cannam@95 8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cannam@95 8274 $as_echo "$LIPO" >&6; }
cannam@95 8275 else
cannam@95 8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 8277 $as_echo "no" >&6; }
cannam@95 8278 fi
cannam@95 8279
cannam@95 8280
cannam@95 8281 fi
cannam@95 8282 if test -z "$ac_cv_prog_LIPO"; then
cannam@95 8283 ac_ct_LIPO=$LIPO
cannam@95 8284 # Extract the first word of "lipo", so it can be a program name with args.
cannam@95 8285 set dummy lipo; ac_word=$2
cannam@95 8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 8287 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 8288 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cannam@95 8289 $as_echo_n "(cached) " >&6
cannam@95 8290 else
cannam@95 8291 if test -n "$ac_ct_LIPO"; then
cannam@95 8292 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
cannam@95 8293 else
cannam@95 8294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 8295 for as_dir in $PATH
cannam@95 8296 do
cannam@95 8297 IFS=$as_save_IFS
cannam@95 8298 test -z "$as_dir" && as_dir=.
cannam@95 8299 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 8300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 8301 ac_cv_prog_ac_ct_LIPO="lipo"
cannam@95 8302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 8303 break 2
cannam@95 8304 fi
cannam@95 8305 done
cannam@95 8306 done
cannam@95 8307 IFS=$as_save_IFS
cannam@95 8308
cannam@95 8309 fi
cannam@95 8310 fi
cannam@95 8311 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
cannam@95 8312 if test -n "$ac_ct_LIPO"; then
cannam@95 8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cannam@95 8314 $as_echo "$ac_ct_LIPO" >&6; }
cannam@95 8315 else
cannam@95 8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 8317 $as_echo "no" >&6; }
cannam@95 8318 fi
cannam@95 8319
cannam@95 8320 if test "x$ac_ct_LIPO" = x; then
cannam@95 8321 LIPO=":"
cannam@95 8322 else
cannam@95 8323 case $cross_compiling:$ac_tool_warned in
cannam@95 8324 yes:)
cannam@95 8325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@95 8326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@95 8327 ac_tool_warned=yes ;;
cannam@95 8328 esac
cannam@95 8329 LIPO=$ac_ct_LIPO
cannam@95 8330 fi
cannam@95 8331 else
cannam@95 8332 LIPO="$ac_cv_prog_LIPO"
cannam@95 8333 fi
cannam@95 8334
cannam@95 8335 if test -n "$ac_tool_prefix"; then
cannam@95 8336 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
cannam@95 8337 set dummy ${ac_tool_prefix}otool; ac_word=$2
cannam@95 8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 8339 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 8340 if ${ac_cv_prog_OTOOL+:} false; then :
cannam@95 8341 $as_echo_n "(cached) " >&6
cannam@95 8342 else
cannam@95 8343 if test -n "$OTOOL"; then
cannam@95 8344 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
cannam@95 8345 else
cannam@95 8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 8347 for as_dir in $PATH
cannam@95 8348 do
cannam@95 8349 IFS=$as_save_IFS
cannam@95 8350 test -z "$as_dir" && as_dir=.
cannam@95 8351 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 8352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 8353 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cannam@95 8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 8355 break 2
cannam@95 8356 fi
cannam@95 8357 done
cannam@95 8358 done
cannam@95 8359 IFS=$as_save_IFS
cannam@95 8360
cannam@95 8361 fi
cannam@95 8362 fi
cannam@95 8363 OTOOL=$ac_cv_prog_OTOOL
cannam@95 8364 if test -n "$OTOOL"; then
cannam@95 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cannam@95 8366 $as_echo "$OTOOL" >&6; }
cannam@95 8367 else
cannam@95 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 8369 $as_echo "no" >&6; }
cannam@95 8370 fi
cannam@95 8371
cannam@95 8372
cannam@95 8373 fi
cannam@95 8374 if test -z "$ac_cv_prog_OTOOL"; then
cannam@95 8375 ac_ct_OTOOL=$OTOOL
cannam@95 8376 # Extract the first word of "otool", so it can be a program name with args.
cannam@95 8377 set dummy otool; ac_word=$2
cannam@95 8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 8379 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 8380 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cannam@95 8381 $as_echo_n "(cached) " >&6
cannam@95 8382 else
cannam@95 8383 if test -n "$ac_ct_OTOOL"; then
cannam@95 8384 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
cannam@95 8385 else
cannam@95 8386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 8387 for as_dir in $PATH
cannam@95 8388 do
cannam@95 8389 IFS=$as_save_IFS
cannam@95 8390 test -z "$as_dir" && as_dir=.
cannam@95 8391 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 8392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 8393 ac_cv_prog_ac_ct_OTOOL="otool"
cannam@95 8394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 8395 break 2
cannam@95 8396 fi
cannam@95 8397 done
cannam@95 8398 done
cannam@95 8399 IFS=$as_save_IFS
cannam@95 8400
cannam@95 8401 fi
cannam@95 8402 fi
cannam@95 8403 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
cannam@95 8404 if test -n "$ac_ct_OTOOL"; then
cannam@95 8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cannam@95 8406 $as_echo "$ac_ct_OTOOL" >&6; }
cannam@95 8407 else
cannam@95 8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 8409 $as_echo "no" >&6; }
cannam@95 8410 fi
cannam@95 8411
cannam@95 8412 if test "x$ac_ct_OTOOL" = x; then
cannam@95 8413 OTOOL=":"
cannam@95 8414 else
cannam@95 8415 case $cross_compiling:$ac_tool_warned in
cannam@95 8416 yes:)
cannam@95 8417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@95 8418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@95 8419 ac_tool_warned=yes ;;
cannam@95 8420 esac
cannam@95 8421 OTOOL=$ac_ct_OTOOL
cannam@95 8422 fi
cannam@95 8423 else
cannam@95 8424 OTOOL="$ac_cv_prog_OTOOL"
cannam@95 8425 fi
cannam@95 8426
cannam@95 8427 if test -n "$ac_tool_prefix"; then
cannam@95 8428 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
cannam@95 8429 set dummy ${ac_tool_prefix}otool64; ac_word=$2
cannam@95 8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 8431 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 8432 if ${ac_cv_prog_OTOOL64+:} false; then :
cannam@95 8433 $as_echo_n "(cached) " >&6
cannam@95 8434 else
cannam@95 8435 if test -n "$OTOOL64"; then
cannam@95 8436 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
cannam@95 8437 else
cannam@95 8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 8439 for as_dir in $PATH
cannam@95 8440 do
cannam@95 8441 IFS=$as_save_IFS
cannam@95 8442 test -z "$as_dir" && as_dir=.
cannam@95 8443 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 8444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 8445 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cannam@95 8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 8447 break 2
cannam@95 8448 fi
cannam@95 8449 done
cannam@95 8450 done
cannam@95 8451 IFS=$as_save_IFS
cannam@95 8452
cannam@95 8453 fi
cannam@95 8454 fi
cannam@95 8455 OTOOL64=$ac_cv_prog_OTOOL64
cannam@95 8456 if test -n "$OTOOL64"; then
cannam@95 8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cannam@95 8458 $as_echo "$OTOOL64" >&6; }
cannam@95 8459 else
cannam@95 8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 8461 $as_echo "no" >&6; }
cannam@95 8462 fi
cannam@95 8463
cannam@95 8464
cannam@95 8465 fi
cannam@95 8466 if test -z "$ac_cv_prog_OTOOL64"; then
cannam@95 8467 ac_ct_OTOOL64=$OTOOL64
cannam@95 8468 # Extract the first word of "otool64", so it can be a program name with args.
cannam@95 8469 set dummy otool64; ac_word=$2
cannam@95 8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 8471 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 8472 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cannam@95 8473 $as_echo_n "(cached) " >&6
cannam@95 8474 else
cannam@95 8475 if test -n "$ac_ct_OTOOL64"; then
cannam@95 8476 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
cannam@95 8477 else
cannam@95 8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 8479 for as_dir in $PATH
cannam@95 8480 do
cannam@95 8481 IFS=$as_save_IFS
cannam@95 8482 test -z "$as_dir" && as_dir=.
cannam@95 8483 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 8484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 8485 ac_cv_prog_ac_ct_OTOOL64="otool64"
cannam@95 8486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 8487 break 2
cannam@95 8488 fi
cannam@95 8489 done
cannam@95 8490 done
cannam@95 8491 IFS=$as_save_IFS
cannam@95 8492
cannam@95 8493 fi
cannam@95 8494 fi
cannam@95 8495 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
cannam@95 8496 if test -n "$ac_ct_OTOOL64"; then
cannam@95 8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cannam@95 8498 $as_echo "$ac_ct_OTOOL64" >&6; }
cannam@95 8499 else
cannam@95 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 8501 $as_echo "no" >&6; }
cannam@95 8502 fi
cannam@95 8503
cannam@95 8504 if test "x$ac_ct_OTOOL64" = x; then
cannam@95 8505 OTOOL64=":"
cannam@95 8506 else
cannam@95 8507 case $cross_compiling:$ac_tool_warned in
cannam@95 8508 yes:)
cannam@95 8509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@95 8510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@95 8511 ac_tool_warned=yes ;;
cannam@95 8512 esac
cannam@95 8513 OTOOL64=$ac_ct_OTOOL64
cannam@95 8514 fi
cannam@95 8515 else
cannam@95 8516 OTOOL64="$ac_cv_prog_OTOOL64"
cannam@95 8517 fi
cannam@95 8518
cannam@95 8519
cannam@95 8520
cannam@95 8521
cannam@95 8522
cannam@95 8523
cannam@95 8524
cannam@95 8525
cannam@95 8526
cannam@95 8527
cannam@95 8528
cannam@95 8529
cannam@95 8530
cannam@95 8531
cannam@95 8532
cannam@95 8533
cannam@95 8534
cannam@95 8535
cannam@95 8536
cannam@95 8537
cannam@95 8538
cannam@95 8539
cannam@95 8540
cannam@95 8541
cannam@95 8542
cannam@95 8543
cannam@95 8544
cannam@95 8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cannam@95 8546 $as_echo_n "checking for -single_module linker flag... " >&6; }
cannam@95 8547 if ${lt_cv_apple_cc_single_mod+:} false; then :
cannam@95 8548 $as_echo_n "(cached) " >&6
cannam@95 8549 else
cannam@95 8550 lt_cv_apple_cc_single_mod=no
cannam@95 8551 if test -z "${LT_MULTI_MODULE}"; then
cannam@95 8552 # By default we will add the -single_module flag. You can override
cannam@95 8553 # by either setting the environment variable LT_MULTI_MODULE
cannam@95 8554 # non-empty at configure time, or by adding -multi_module to the
cannam@95 8555 # link flags.
cannam@95 8556 rm -rf libconftest.dylib*
cannam@95 8557 echo "int foo(void){return 1;}" > conftest.c
cannam@95 8558 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
cannam@95 8559 -dynamiclib -Wl,-single_module conftest.c" >&5
cannam@95 8560 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
cannam@95 8561 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
cannam@95 8562 _lt_result=$?
cannam@95 8563 # If there is a non-empty error log, and "single_module"
cannam@95 8564 # appears in it, assume the flag caused a linker warning
cannam@95 8565 if test -s conftest.err && $GREP single_module conftest.err; then
cannam@95 8566 cat conftest.err >&5
cannam@95 8567 # Otherwise, if the output was created with a 0 exit code from
cannam@95 8568 # the compiler, it worked.
cannam@95 8569 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cannam@95 8570 lt_cv_apple_cc_single_mod=yes
cannam@95 8571 else
cannam@95 8572 cat conftest.err >&5
cannam@95 8573 fi
cannam@95 8574 rm -rf libconftest.dylib*
cannam@95 8575 rm -f conftest.*
cannam@95 8576 fi
cannam@95 8577 fi
cannam@95 8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cannam@95 8579 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cannam@95 8580
cannam@95 8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cannam@95 8582 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cannam@95 8583 if ${lt_cv_ld_exported_symbols_list+:} false; then :
cannam@95 8584 $as_echo_n "(cached) " >&6
cannam@95 8585 else
cannam@95 8586 lt_cv_ld_exported_symbols_list=no
cannam@95 8587 save_LDFLAGS=$LDFLAGS
cannam@95 8588 echo "_main" > conftest.sym
cannam@95 8589 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cannam@95 8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 8591 /* end confdefs.h. */
cannam@95 8592
cannam@95 8593 int
cannam@95 8594 main ()
cannam@95 8595 {
cannam@95 8596
cannam@95 8597 ;
cannam@95 8598 return 0;
cannam@95 8599 }
cannam@95 8600 _ACEOF
cannam@95 8601 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 8602 lt_cv_ld_exported_symbols_list=yes
cannam@95 8603 else
cannam@95 8604 lt_cv_ld_exported_symbols_list=no
cannam@95 8605 fi
cannam@95 8606 rm -f core conftest.err conftest.$ac_objext \
cannam@95 8607 conftest$ac_exeext conftest.$ac_ext
cannam@95 8608 LDFLAGS="$save_LDFLAGS"
cannam@95 8609
cannam@95 8610 fi
cannam@95 8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cannam@95 8612 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cannam@95 8613
cannam@95 8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
cannam@95 8615 $as_echo_n "checking for -force_load linker flag... " >&6; }
cannam@95 8616 if ${lt_cv_ld_force_load+:} false; then :
cannam@95 8617 $as_echo_n "(cached) " >&6
cannam@95 8618 else
cannam@95 8619 lt_cv_ld_force_load=no
cannam@95 8620 cat > conftest.c << _LT_EOF
cannam@95 8621 int forced_loaded() { return 2;}
cannam@95 8622 _LT_EOF
cannam@95 8623 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
cannam@95 8624 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
cannam@95 8625 echo "$AR cru libconftest.a conftest.o" >&5
cannam@95 8626 $AR cru libconftest.a conftest.o 2>&5
cannam@95 8627 echo "$RANLIB libconftest.a" >&5
cannam@95 8628 $RANLIB libconftest.a 2>&5
cannam@95 8629 cat > conftest.c << _LT_EOF
cannam@95 8630 int main() { return 0;}
cannam@95 8631 _LT_EOF
cannam@95 8632 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
cannam@95 8633 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
cannam@95 8634 _lt_result=$?
cannam@95 8635 if test -s conftest.err && $GREP force_load conftest.err; then
cannam@95 8636 cat conftest.err >&5
cannam@95 8637 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cannam@95 8638 lt_cv_ld_force_load=yes
cannam@95 8639 else
cannam@95 8640 cat conftest.err >&5
cannam@95 8641 fi
cannam@95 8642 rm -f conftest.err libconftest.a conftest conftest.c
cannam@95 8643 rm -rf conftest.dSYM
cannam@95 8644
cannam@95 8645 fi
cannam@95 8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
cannam@95 8647 $as_echo "$lt_cv_ld_force_load" >&6; }
cannam@95 8648 case $host_os in
cannam@95 8649 rhapsody* | darwin1.[012])
cannam@95 8650 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
cannam@95 8651 darwin1.*)
cannam@95 8652 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
cannam@95 8653 darwin*) # darwin 5.x on
cannam@95 8654 # if running on 10.5 or later, the deployment target defaults
cannam@95 8655 # to the OS version, if on x86, and 10.4, the deployment
cannam@95 8656 # target defaults to 10.4. Don't you love it?
cannam@95 8657 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
cannam@95 8658 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
cannam@95 8659 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
cannam@95 8660 10.[012]*)
cannam@95 8661 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
cannam@95 8662 10.*)
cannam@95 8663 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
cannam@95 8664 esac
cannam@95 8665 ;;
cannam@95 8666 esac
cannam@95 8667 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
cannam@95 8668 _lt_dar_single_mod='$single_module'
cannam@95 8669 fi
cannam@95 8670 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
cannam@95 8671 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
cannam@95 8672 else
cannam@95 8673 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
cannam@95 8674 fi
cannam@95 8675 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cannam@95 8676 _lt_dsymutil='~$DSYMUTIL $lib || :'
cannam@95 8677 else
cannam@95 8678 _lt_dsymutil=
cannam@95 8679 fi
cannam@95 8680 ;;
cannam@95 8681 esac
cannam@95 8682
cannam@95 8683 ac_ext=c
cannam@95 8684 ac_cpp='$CPP $CPPFLAGS'
cannam@95 8685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@95 8686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 8687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@95 8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cannam@95 8689 $as_echo_n "checking how to run the C preprocessor... " >&6; }
cannam@95 8690 # On Suns, sometimes $CPP names a directory.
cannam@95 8691 if test -n "$CPP" && test -d "$CPP"; then
cannam@95 8692 CPP=
cannam@95 8693 fi
cannam@95 8694 if test -z "$CPP"; then
cannam@95 8695 if ${ac_cv_prog_CPP+:} false; then :
cannam@95 8696 $as_echo_n "(cached) " >&6
cannam@95 8697 else
cannam@95 8698 # Double quotes because CPP needs to be expanded
cannam@95 8699 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
cannam@95 8700 do
cannam@95 8701 ac_preproc_ok=false
cannam@95 8702 for ac_c_preproc_warn_flag in '' yes
cannam@95 8703 do
cannam@95 8704 # Use a header file that comes with gcc, so configuring glibc
cannam@95 8705 # with a fresh cross-compiler works.
cannam@95 8706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@95 8707 # <limits.h> exists even on freestanding compilers.
cannam@95 8708 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@95 8709 # not just through cpp. "Syntax error" is here to catch this case.
cannam@95 8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 8711 /* end confdefs.h. */
cannam@95 8712 #ifdef __STDC__
cannam@95 8713 # include <limits.h>
cannam@95 8714 #else
cannam@95 8715 # include <assert.h>
cannam@95 8716 #endif
cannam@95 8717 Syntax error
cannam@95 8718 _ACEOF
cannam@95 8719 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@95 8720
cannam@95 8721 else
cannam@95 8722 # Broken: fails on valid input.
cannam@95 8723 continue
cannam@95 8724 fi
cannam@95 8725 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@95 8726
cannam@95 8727 # OK, works on sane cases. Now check whether nonexistent headers
cannam@95 8728 # can be detected and how.
cannam@95 8729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 8730 /* end confdefs.h. */
cannam@95 8731 #include <ac_nonexistent.h>
cannam@95 8732 _ACEOF
cannam@95 8733 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@95 8734 # Broken: success on invalid input.
cannam@95 8735 continue
cannam@95 8736 else
cannam@95 8737 # Passes both tests.
cannam@95 8738 ac_preproc_ok=:
cannam@95 8739 break
cannam@95 8740 fi
cannam@95 8741 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@95 8742
cannam@95 8743 done
cannam@95 8744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@95 8745 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@95 8746 if $ac_preproc_ok; then :
cannam@95 8747 break
cannam@95 8748 fi
cannam@95 8749
cannam@95 8750 done
cannam@95 8751 ac_cv_prog_CPP=$CPP
cannam@95 8752
cannam@95 8753 fi
cannam@95 8754 CPP=$ac_cv_prog_CPP
cannam@95 8755 else
cannam@95 8756 ac_cv_prog_CPP=$CPP
cannam@95 8757 fi
cannam@95 8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cannam@95 8759 $as_echo "$CPP" >&6; }
cannam@95 8760 ac_preproc_ok=false
cannam@95 8761 for ac_c_preproc_warn_flag in '' yes
cannam@95 8762 do
cannam@95 8763 # Use a header file that comes with gcc, so configuring glibc
cannam@95 8764 # with a fresh cross-compiler works.
cannam@95 8765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@95 8766 # <limits.h> exists even on freestanding compilers.
cannam@95 8767 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@95 8768 # not just through cpp. "Syntax error" is here to catch this case.
cannam@95 8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 8770 /* end confdefs.h. */
cannam@95 8771 #ifdef __STDC__
cannam@95 8772 # include <limits.h>
cannam@95 8773 #else
cannam@95 8774 # include <assert.h>
cannam@95 8775 #endif
cannam@95 8776 Syntax error
cannam@95 8777 _ACEOF
cannam@95 8778 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@95 8779
cannam@95 8780 else
cannam@95 8781 # Broken: fails on valid input.
cannam@95 8782 continue
cannam@95 8783 fi
cannam@95 8784 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@95 8785
cannam@95 8786 # OK, works on sane cases. Now check whether nonexistent headers
cannam@95 8787 # can be detected and how.
cannam@95 8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 8789 /* end confdefs.h. */
cannam@95 8790 #include <ac_nonexistent.h>
cannam@95 8791 _ACEOF
cannam@95 8792 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@95 8793 # Broken: success on invalid input.
cannam@95 8794 continue
cannam@95 8795 else
cannam@95 8796 # Passes both tests.
cannam@95 8797 ac_preproc_ok=:
cannam@95 8798 break
cannam@95 8799 fi
cannam@95 8800 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@95 8801
cannam@95 8802 done
cannam@95 8803 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@95 8804 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@95 8805 if $ac_preproc_ok; then :
cannam@95 8806
cannam@95 8807 else
cannam@95 8808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@95 8809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@95 8810 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
cannam@95 8811 See \`config.log' for more details" "$LINENO" 5; }
cannam@95 8812 fi
cannam@95 8813
cannam@95 8814 ac_ext=c
cannam@95 8815 ac_cpp='$CPP $CPPFLAGS'
cannam@95 8816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@95 8817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 8818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@95 8819
cannam@95 8820
cannam@95 8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cannam@95 8822 $as_echo_n "checking for ANSI C header files... " >&6; }
cannam@95 8823 if ${ac_cv_header_stdc+:} false; then :
cannam@95 8824 $as_echo_n "(cached) " >&6
cannam@95 8825 else
cannam@95 8826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 8827 /* end confdefs.h. */
cannam@95 8828 #include <stdlib.h>
cannam@95 8829 #include <stdarg.h>
cannam@95 8830 #include <string.h>
cannam@95 8831 #include <float.h>
cannam@95 8832
cannam@95 8833 int
cannam@95 8834 main ()
cannam@95 8835 {
cannam@95 8836
cannam@95 8837 ;
cannam@95 8838 return 0;
cannam@95 8839 }
cannam@95 8840 _ACEOF
cannam@95 8841 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 8842 ac_cv_header_stdc=yes
cannam@95 8843 else
cannam@95 8844 ac_cv_header_stdc=no
cannam@95 8845 fi
cannam@95 8846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 8847
cannam@95 8848 if test $ac_cv_header_stdc = yes; then
cannam@95 8849 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cannam@95 8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 8851 /* end confdefs.h. */
cannam@95 8852 #include <string.h>
cannam@95 8853
cannam@95 8854 _ACEOF
cannam@95 8855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@95 8856 $EGREP "memchr" >/dev/null 2>&1; then :
cannam@95 8857
cannam@95 8858 else
cannam@95 8859 ac_cv_header_stdc=no
cannam@95 8860 fi
cannam@95 8861 rm -f conftest*
cannam@95 8862
cannam@95 8863 fi
cannam@95 8864
cannam@95 8865 if test $ac_cv_header_stdc = yes; then
cannam@95 8866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cannam@95 8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 8868 /* end confdefs.h. */
cannam@95 8869 #include <stdlib.h>
cannam@95 8870
cannam@95 8871 _ACEOF
cannam@95 8872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@95 8873 $EGREP "free" >/dev/null 2>&1; then :
cannam@95 8874
cannam@95 8875 else
cannam@95 8876 ac_cv_header_stdc=no
cannam@95 8877 fi
cannam@95 8878 rm -f conftest*
cannam@95 8879
cannam@95 8880 fi
cannam@95 8881
cannam@95 8882 if test $ac_cv_header_stdc = yes; then
cannam@95 8883 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cannam@95 8884 if test "$cross_compiling" = yes; then :
cannam@95 8885 :
cannam@95 8886 else
cannam@95 8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 8888 /* end confdefs.h. */
cannam@95 8889 #include <ctype.h>
cannam@95 8890 #include <stdlib.h>
cannam@95 8891 #if ((' ' & 0x0FF) == 0x020)
cannam@95 8892 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
cannam@95 8893 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
cannam@95 8894 #else
cannam@95 8895 # define ISLOWER(c) \
cannam@95 8896 (('a' <= (c) && (c) <= 'i') \
cannam@95 8897 || ('j' <= (c) && (c) <= 'r') \
cannam@95 8898 || ('s' <= (c) && (c) <= 'z'))
cannam@95 8899 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
cannam@95 8900 #endif
cannam@95 8901
cannam@95 8902 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
cannam@95 8903 int
cannam@95 8904 main ()
cannam@95 8905 {
cannam@95 8906 int i;
cannam@95 8907 for (i = 0; i < 256; i++)
cannam@95 8908 if (XOR (islower (i), ISLOWER (i))
cannam@95 8909 || toupper (i) != TOUPPER (i))
cannam@95 8910 return 2;
cannam@95 8911 return 0;
cannam@95 8912 }
cannam@95 8913 _ACEOF
cannam@95 8914 if ac_fn_c_try_run "$LINENO"; then :
cannam@95 8915
cannam@95 8916 else
cannam@95 8917 ac_cv_header_stdc=no
cannam@95 8918 fi
cannam@95 8919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@95 8920 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@95 8921 fi
cannam@95 8922
cannam@95 8923 fi
cannam@95 8924 fi
cannam@95 8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cannam@95 8926 $as_echo "$ac_cv_header_stdc" >&6; }
cannam@95 8927 if test $ac_cv_header_stdc = yes; then
cannam@95 8928
cannam@95 8929 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
cannam@95 8930
cannam@95 8931 fi
cannam@95 8932
cannam@95 8933 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
cannam@95 8934 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
cannam@95 8935 inttypes.h stdint.h unistd.h
cannam@95 8936 do :
cannam@95 8937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cannam@95 8938 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
cannam@95 8939 "
cannam@95 8940 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cannam@95 8941 cat >>confdefs.h <<_ACEOF
cannam@95 8942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
cannam@95 8943 _ACEOF
cannam@95 8944
cannam@95 8945 fi
cannam@95 8946
cannam@95 8947 done
cannam@95 8948
cannam@95 8949
cannam@95 8950 for ac_header in dlfcn.h
cannam@95 8951 do :
cannam@95 8952 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
cannam@95 8953 "
cannam@95 8954 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cannam@95 8955 cat >>confdefs.h <<_ACEOF
cannam@95 8956 #define HAVE_DLFCN_H 1
cannam@95 8957 _ACEOF
cannam@95 8958
cannam@95 8959 fi
cannam@95 8960
cannam@95 8961 done
cannam@95 8962
cannam@95 8963
cannam@95 8964
cannam@95 8965
cannam@95 8966
cannam@95 8967 # Set options
cannam@95 8968
cannam@95 8969
cannam@95 8970
cannam@95 8971 enable_dlopen=no
cannam@95 8972
cannam@95 8973
cannam@95 8974
cannam@95 8975
cannam@95 8976 # Check whether --enable-static was given.
cannam@95 8977 if test "${enable_static+set}" = set; then :
cannam@95 8978 enableval=$enable_static; p=${PACKAGE-default}
cannam@95 8979 case $enableval in
cannam@95 8980 yes) enable_static=yes ;;
cannam@95 8981 no) enable_static=no ;;
cannam@95 8982 *)
cannam@95 8983 enable_static=no
cannam@95 8984 # Look at the argument we got. We use all the common list separators.
cannam@95 8985 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@95 8986 for pkg in $enableval; do
cannam@95 8987 IFS="$lt_save_ifs"
cannam@95 8988 if test "X$pkg" = "X$p"; then
cannam@95 8989 enable_static=yes
cannam@95 8990 fi
cannam@95 8991 done
cannam@95 8992 IFS="$lt_save_ifs"
cannam@95 8993 ;;
cannam@95 8994 esac
cannam@95 8995 else
cannam@95 8996 enable_static=yes
cannam@95 8997 fi
cannam@95 8998
cannam@95 8999
cannam@95 9000
cannam@95 9001
cannam@95 9002
cannam@95 9003
cannam@95 9004
cannam@95 9005
cannam@95 9006
cannam@95 9007
cannam@95 9008 # Check whether --with-pic was given.
cannam@95 9009 if test "${with_pic+set}" = set; then :
cannam@95 9010 withval=$with_pic; lt_p=${PACKAGE-default}
cannam@95 9011 case $withval in
cannam@95 9012 yes|no) pic_mode=$withval ;;
cannam@95 9013 *)
cannam@95 9014 pic_mode=default
cannam@95 9015 # Look at the argument we got. We use all the common list separators.
cannam@95 9016 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@95 9017 for lt_pkg in $withval; do
cannam@95 9018 IFS="$lt_save_ifs"
cannam@95 9019 if test "X$lt_pkg" = "X$lt_p"; then
cannam@95 9020 pic_mode=yes
cannam@95 9021 fi
cannam@95 9022 done
cannam@95 9023 IFS="$lt_save_ifs"
cannam@95 9024 ;;
cannam@95 9025 esac
cannam@95 9026 else
cannam@95 9027 pic_mode=default
cannam@95 9028 fi
cannam@95 9029
cannam@95 9030
cannam@95 9031 test -z "$pic_mode" && pic_mode=default
cannam@95 9032
cannam@95 9033
cannam@95 9034
cannam@95 9035
cannam@95 9036
cannam@95 9037
cannam@95 9038
cannam@95 9039 # Check whether --enable-fast-install was given.
cannam@95 9040 if test "${enable_fast_install+set}" = set; then :
cannam@95 9041 enableval=$enable_fast_install; p=${PACKAGE-default}
cannam@95 9042 case $enableval in
cannam@95 9043 yes) enable_fast_install=yes ;;
cannam@95 9044 no) enable_fast_install=no ;;
cannam@95 9045 *)
cannam@95 9046 enable_fast_install=no
cannam@95 9047 # Look at the argument we got. We use all the common list separators.
cannam@95 9048 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@95 9049 for pkg in $enableval; do
cannam@95 9050 IFS="$lt_save_ifs"
cannam@95 9051 if test "X$pkg" = "X$p"; then
cannam@95 9052 enable_fast_install=yes
cannam@95 9053 fi
cannam@95 9054 done
cannam@95 9055 IFS="$lt_save_ifs"
cannam@95 9056 ;;
cannam@95 9057 esac
cannam@95 9058 else
cannam@95 9059 enable_fast_install=yes
cannam@95 9060 fi
cannam@95 9061
cannam@95 9062
cannam@95 9063
cannam@95 9064
cannam@95 9065
cannam@95 9066
cannam@95 9067
cannam@95 9068
cannam@95 9069
cannam@95 9070
cannam@95 9071
cannam@95 9072 # This can be used to rebuild libtool when needed
cannam@95 9073 LIBTOOL_DEPS="$ltmain"
cannam@95 9074
cannam@95 9075 # Always use our own libtool.
cannam@95 9076 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
cannam@95 9077
cannam@95 9078
cannam@95 9079
cannam@95 9080
cannam@95 9081
cannam@95 9082
cannam@95 9083
cannam@95 9084
cannam@95 9085
cannam@95 9086
cannam@95 9087
cannam@95 9088
cannam@95 9089
cannam@95 9090
cannam@95 9091
cannam@95 9092
cannam@95 9093
cannam@95 9094
cannam@95 9095
cannam@95 9096
cannam@95 9097
cannam@95 9098
cannam@95 9099
cannam@95 9100
cannam@95 9101
cannam@95 9102
cannam@95 9103
cannam@95 9104
cannam@95 9105
cannam@95 9106
cannam@95 9107 test -z "$LN_S" && LN_S="ln -s"
cannam@95 9108
cannam@95 9109
cannam@95 9110
cannam@95 9111
cannam@95 9112
cannam@95 9113
cannam@95 9114
cannam@95 9115
cannam@95 9116
cannam@95 9117
cannam@95 9118
cannam@95 9119
cannam@95 9120
cannam@95 9121
cannam@95 9122 if test -n "${ZSH_VERSION+set}" ; then
cannam@95 9123 setopt NO_GLOB_SUBST
cannam@95 9124 fi
cannam@95 9125
cannam@95 9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cannam@95 9127 $as_echo_n "checking for objdir... " >&6; }
cannam@95 9128 if ${lt_cv_objdir+:} false; then :
cannam@95 9129 $as_echo_n "(cached) " >&6
cannam@95 9130 else
cannam@95 9131 rm -f .libs 2>/dev/null
cannam@95 9132 mkdir .libs 2>/dev/null
cannam@95 9133 if test -d .libs; then
cannam@95 9134 lt_cv_objdir=.libs
cannam@95 9135 else
cannam@95 9136 # MS-DOS does not allow filenames that begin with a dot.
cannam@95 9137 lt_cv_objdir=_libs
cannam@95 9138 fi
cannam@95 9139 rmdir .libs 2>/dev/null
cannam@95 9140 fi
cannam@95 9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cannam@95 9142 $as_echo "$lt_cv_objdir" >&6; }
cannam@95 9143 objdir=$lt_cv_objdir
cannam@95 9144
cannam@95 9145
cannam@95 9146
cannam@95 9147
cannam@95 9148
cannam@95 9149 cat >>confdefs.h <<_ACEOF
cannam@95 9150 #define LT_OBJDIR "$lt_cv_objdir/"
cannam@95 9151 _ACEOF
cannam@95 9152
cannam@95 9153
cannam@95 9154
cannam@95 9155
cannam@95 9156 case $host_os in
cannam@95 9157 aix3*)
cannam@95 9158 # AIX sometimes has problems with the GCC collect2 program. For some
cannam@95 9159 # reason, if we set the COLLECT_NAMES environment variable, the problems
cannam@95 9160 # vanish in a puff of smoke.
cannam@95 9161 if test "X${COLLECT_NAMES+set}" != Xset; then
cannam@95 9162 COLLECT_NAMES=
cannam@95 9163 export COLLECT_NAMES
cannam@95 9164 fi
cannam@95 9165 ;;
cannam@95 9166 esac
cannam@95 9167
cannam@95 9168 # Global variables:
cannam@95 9169 ofile=libtool
cannam@95 9170 can_build_shared=yes
cannam@95 9171
cannam@95 9172 # All known linkers require a `.a' archive for static linking (except MSVC,
cannam@95 9173 # which needs '.lib').
cannam@95 9174 libext=a
cannam@95 9175
cannam@95 9176 with_gnu_ld="$lt_cv_prog_gnu_ld"
cannam@95 9177
cannam@95 9178 old_CC="$CC"
cannam@95 9179 old_CFLAGS="$CFLAGS"
cannam@95 9180
cannam@95 9181 # Set sane defaults for various variables
cannam@95 9182 test -z "$CC" && CC=cc
cannam@95 9183 test -z "$LTCC" && LTCC=$CC
cannam@95 9184 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
cannam@95 9185 test -z "$LD" && LD=ld
cannam@95 9186 test -z "$ac_objext" && ac_objext=o
cannam@95 9187
cannam@95 9188 for cc_temp in $compiler""; do
cannam@95 9189 case $cc_temp in
cannam@95 9190 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
cannam@95 9191 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
cannam@95 9192 \-*) ;;
cannam@95 9193 *) break;;
cannam@95 9194 esac
cannam@95 9195 done
cannam@95 9196 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cannam@95 9197
cannam@95 9198
cannam@95 9199 # Only perform the check for file, if the check method requires it
cannam@95 9200 test -z "$MAGIC_CMD" && MAGIC_CMD=file
cannam@95 9201 case $deplibs_check_method in
cannam@95 9202 file_magic*)
cannam@95 9203 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cannam@95 9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cannam@95 9205 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cannam@95 9206 if ${lt_cv_path_MAGIC_CMD+:} false; then :
cannam@95 9207 $as_echo_n "(cached) " >&6
cannam@95 9208 else
cannam@95 9209 case $MAGIC_CMD in
cannam@95 9210 [\\/*] | ?:[\\/]*)
cannam@95 9211 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
cannam@95 9212 ;;
cannam@95 9213 *)
cannam@95 9214 lt_save_MAGIC_CMD="$MAGIC_CMD"
cannam@95 9215 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@95 9216 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
cannam@95 9217 for ac_dir in $ac_dummy; do
cannam@95 9218 IFS="$lt_save_ifs"
cannam@95 9219 test -z "$ac_dir" && ac_dir=.
cannam@95 9220 if test -f $ac_dir/${ac_tool_prefix}file; then
cannam@95 9221 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
cannam@95 9222 if test -n "$file_magic_test_file"; then
cannam@95 9223 case $deplibs_check_method in
cannam@95 9224 "file_magic "*)
cannam@95 9225 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
cannam@95 9226 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@95 9227 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
cannam@95 9228 $EGREP "$file_magic_regex" > /dev/null; then
cannam@95 9229 :
cannam@95 9230 else
cannam@95 9231 cat <<_LT_EOF 1>&2
cannam@95 9232
cannam@95 9233 *** Warning: the command libtool uses to detect shared libraries,
cannam@95 9234 *** $file_magic_cmd, produces output that libtool cannot recognize.
cannam@95 9235 *** The result is that libtool may fail to recognize shared libraries
cannam@95 9236 *** as such. This will affect the creation of libtool libraries that
cannam@95 9237 *** depend on shared libraries, but programs linked with such libtool
cannam@95 9238 *** libraries will work regardless of this problem. Nevertheless, you
cannam@95 9239 *** may want to report the problem to your system manager and/or to
cannam@95 9240 *** bug-libtool@gnu.org
cannam@95 9241
cannam@95 9242 _LT_EOF
cannam@95 9243 fi ;;
cannam@95 9244 esac
cannam@95 9245 fi
cannam@95 9246 break
cannam@95 9247 fi
cannam@95 9248 done
cannam@95 9249 IFS="$lt_save_ifs"
cannam@95 9250 MAGIC_CMD="$lt_save_MAGIC_CMD"
cannam@95 9251 ;;
cannam@95 9252 esac
cannam@95 9253 fi
cannam@95 9254
cannam@95 9255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@95 9256 if test -n "$MAGIC_CMD"; then
cannam@95 9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cannam@95 9258 $as_echo "$MAGIC_CMD" >&6; }
cannam@95 9259 else
cannam@95 9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 9261 $as_echo "no" >&6; }
cannam@95 9262 fi
cannam@95 9263
cannam@95 9264
cannam@95 9265
cannam@95 9266
cannam@95 9267
cannam@95 9268 if test -z "$lt_cv_path_MAGIC_CMD"; then
cannam@95 9269 if test -n "$ac_tool_prefix"; then
cannam@95 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cannam@95 9271 $as_echo_n "checking for file... " >&6; }
cannam@95 9272 if ${lt_cv_path_MAGIC_CMD+:} false; then :
cannam@95 9273 $as_echo_n "(cached) " >&6
cannam@95 9274 else
cannam@95 9275 case $MAGIC_CMD in
cannam@95 9276 [\\/*] | ?:[\\/]*)
cannam@95 9277 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
cannam@95 9278 ;;
cannam@95 9279 *)
cannam@95 9280 lt_save_MAGIC_CMD="$MAGIC_CMD"
cannam@95 9281 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@95 9282 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
cannam@95 9283 for ac_dir in $ac_dummy; do
cannam@95 9284 IFS="$lt_save_ifs"
cannam@95 9285 test -z "$ac_dir" && ac_dir=.
cannam@95 9286 if test -f $ac_dir/file; then
cannam@95 9287 lt_cv_path_MAGIC_CMD="$ac_dir/file"
cannam@95 9288 if test -n "$file_magic_test_file"; then
cannam@95 9289 case $deplibs_check_method in
cannam@95 9290 "file_magic "*)
cannam@95 9291 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
cannam@95 9292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@95 9293 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
cannam@95 9294 $EGREP "$file_magic_regex" > /dev/null; then
cannam@95 9295 :
cannam@95 9296 else
cannam@95 9297 cat <<_LT_EOF 1>&2
cannam@95 9298
cannam@95 9299 *** Warning: the command libtool uses to detect shared libraries,
cannam@95 9300 *** $file_magic_cmd, produces output that libtool cannot recognize.
cannam@95 9301 *** The result is that libtool may fail to recognize shared libraries
cannam@95 9302 *** as such. This will affect the creation of libtool libraries that
cannam@95 9303 *** depend on shared libraries, but programs linked with such libtool
cannam@95 9304 *** libraries will work regardless of this problem. Nevertheless, you
cannam@95 9305 *** may want to report the problem to your system manager and/or to
cannam@95 9306 *** bug-libtool@gnu.org
cannam@95 9307
cannam@95 9308 _LT_EOF
cannam@95 9309 fi ;;
cannam@95 9310 esac
cannam@95 9311 fi
cannam@95 9312 break
cannam@95 9313 fi
cannam@95 9314 done
cannam@95 9315 IFS="$lt_save_ifs"
cannam@95 9316 MAGIC_CMD="$lt_save_MAGIC_CMD"
cannam@95 9317 ;;
cannam@95 9318 esac
cannam@95 9319 fi
cannam@95 9320
cannam@95 9321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@95 9322 if test -n "$MAGIC_CMD"; then
cannam@95 9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cannam@95 9324 $as_echo "$MAGIC_CMD" >&6; }
cannam@95 9325 else
cannam@95 9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 9327 $as_echo "no" >&6; }
cannam@95 9328 fi
cannam@95 9329
cannam@95 9330
cannam@95 9331 else
cannam@95 9332 MAGIC_CMD=:
cannam@95 9333 fi
cannam@95 9334 fi
cannam@95 9335
cannam@95 9336 fi
cannam@95 9337 ;;
cannam@95 9338 esac
cannam@95 9339
cannam@95 9340 # Use C for the default configuration in the libtool script
cannam@95 9341
cannam@95 9342 lt_save_CC="$CC"
cannam@95 9343 ac_ext=c
cannam@95 9344 ac_cpp='$CPP $CPPFLAGS'
cannam@95 9345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@95 9346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 9347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@95 9348
cannam@95 9349
cannam@95 9350 # Source file extension for C test sources.
cannam@95 9351 ac_ext=c
cannam@95 9352
cannam@95 9353 # Object file extension for compiled C test sources.
cannam@95 9354 objext=o
cannam@95 9355 objext=$objext
cannam@95 9356
cannam@95 9357 # Code to be used in simple compile tests
cannam@95 9358 lt_simple_compile_test_code="int some_variable = 0;"
cannam@95 9359
cannam@95 9360 # Code to be used in simple link tests
cannam@95 9361 lt_simple_link_test_code='int main(){return(0);}'
cannam@95 9362
cannam@95 9363
cannam@95 9364
cannam@95 9365
cannam@95 9366
cannam@95 9367
cannam@95 9368
cannam@95 9369 # If no C compiler was specified, use CC.
cannam@95 9370 LTCC=${LTCC-"$CC"}
cannam@95 9371
cannam@95 9372 # If no C compiler flags were specified, use CFLAGS.
cannam@95 9373 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cannam@95 9374
cannam@95 9375 # Allow CC to be a program name with arguments.
cannam@95 9376 compiler=$CC
cannam@95 9377
cannam@95 9378 # Save the default compiler, since it gets overwritten when the other
cannam@95 9379 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
cannam@95 9380 compiler_DEFAULT=$CC
cannam@95 9381
cannam@95 9382 # save warnings/boilerplate of simple test code
cannam@95 9383 ac_outfile=conftest.$ac_objext
cannam@95 9384 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
cannam@95 9385 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@95 9386 _lt_compiler_boilerplate=`cat conftest.err`
cannam@95 9387 $RM conftest*
cannam@95 9388
cannam@95 9389 ac_outfile=conftest.$ac_objext
cannam@95 9390 echo "$lt_simple_link_test_code" >conftest.$ac_ext
cannam@95 9391 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@95 9392 _lt_linker_boilerplate=`cat conftest.err`
cannam@95 9393 $RM -r conftest*
cannam@95 9394
cannam@95 9395
cannam@95 9396 ## CAVEAT EMPTOR:
cannam@95 9397 ## There is no encapsulation within the following macros, do not change
cannam@95 9398 ## the running order or otherwise move them around unless you know exactly
cannam@95 9399 ## what you are doing...
cannam@95 9400 if test -n "$compiler"; then
cannam@95 9401
cannam@95 9402 lt_prog_compiler_no_builtin_flag=
cannam@95 9403
cannam@95 9404 if test "$GCC" = yes; then
cannam@95 9405 case $cc_basename in
cannam@95 9406 nvcc*)
cannam@95 9407 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
cannam@95 9408 *)
cannam@95 9409 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
cannam@95 9410 esac
cannam@95 9411
cannam@95 9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cannam@95 9413 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cannam@95 9414 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cannam@95 9415 $as_echo_n "(cached) " >&6
cannam@95 9416 else
cannam@95 9417 lt_cv_prog_compiler_rtti_exceptions=no
cannam@95 9418 ac_outfile=conftest.$ac_objext
cannam@95 9419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@95 9420 lt_compiler_flag="-fno-rtti -fno-exceptions"
cannam@95 9421 # Insert the option either (1) after the last *FLAGS variable, or
cannam@95 9422 # (2) before a word containing "conftest.", or (3) at the end.
cannam@95 9423 # Note that $ac_compile itself does not contain backslashes and begins
cannam@95 9424 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@95 9425 # The option is referenced via a variable to avoid confusing sed.
cannam@95 9426 lt_compile=`echo "$ac_compile" | $SED \
cannam@95 9427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@95 9428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@95 9429 -e 's:$: $lt_compiler_flag:'`
cannam@95 9430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@95 9431 (eval "$lt_compile" 2>conftest.err)
cannam@95 9432 ac_status=$?
cannam@95 9433 cat conftest.err >&5
cannam@95 9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@95 9435 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@95 9436 # The compiler can only warn and ignore the option if not recognized
cannam@95 9437 # So say no if there are warnings other than the usual output.
cannam@95 9438 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cannam@95 9439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@95 9440 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
cannam@95 9441 lt_cv_prog_compiler_rtti_exceptions=yes
cannam@95 9442 fi
cannam@95 9443 fi
cannam@95 9444 $RM conftest*
cannam@95 9445
cannam@95 9446 fi
cannam@95 9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cannam@95 9448 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
cannam@95 9449
cannam@95 9450 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
cannam@95 9451 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
cannam@95 9452 else
cannam@95 9453 :
cannam@95 9454 fi
cannam@95 9455
cannam@95 9456 fi
cannam@95 9457
cannam@95 9458
cannam@95 9459
cannam@95 9460
cannam@95 9461
cannam@95 9462
cannam@95 9463 lt_prog_compiler_wl=
cannam@95 9464 lt_prog_compiler_pic=
cannam@95 9465 lt_prog_compiler_static=
cannam@95 9466
cannam@95 9467
cannam@95 9468 if test "$GCC" = yes; then
cannam@95 9469 lt_prog_compiler_wl='-Wl,'
cannam@95 9470 lt_prog_compiler_static='-static'
cannam@95 9471
cannam@95 9472 case $host_os in
cannam@95 9473 aix*)
cannam@95 9474 # All AIX code is PIC.
cannam@95 9475 if test "$host_cpu" = ia64; then
cannam@95 9476 # AIX 5 now supports IA64 processor
cannam@95 9477 lt_prog_compiler_static='-Bstatic'
cannam@95 9478 fi
cannam@95 9479 ;;
cannam@95 9480
cannam@95 9481 amigaos*)
cannam@95 9482 case $host_cpu in
cannam@95 9483 powerpc)
cannam@95 9484 # see comment about AmigaOS4 .so support
cannam@95 9485 lt_prog_compiler_pic='-fPIC'
cannam@95 9486 ;;
cannam@95 9487 m68k)
cannam@95 9488 # FIXME: we need at least 68020 code to build shared libraries, but
cannam@95 9489 # adding the `-m68020' flag to GCC prevents building anything better,
cannam@95 9490 # like `-m68040'.
cannam@95 9491 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
cannam@95 9492 ;;
cannam@95 9493 esac
cannam@95 9494 ;;
cannam@95 9495
cannam@95 9496 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cannam@95 9497 # PIC is the default for these OSes.
cannam@95 9498 ;;
cannam@95 9499
cannam@95 9500 mingw* | cygwin* | pw32* | os2* | cegcc*)
cannam@95 9501 # This hack is so that the source file can tell whether it is being
cannam@95 9502 # built for inclusion in a dll (and should export symbols for example).
cannam@95 9503 # Although the cygwin gcc ignores -fPIC, still need this for old-style
cannam@95 9504 # (--disable-auto-import) libraries
cannam@95 9505 lt_prog_compiler_pic='-DDLL_EXPORT'
cannam@95 9506 ;;
cannam@95 9507
cannam@95 9508 darwin* | rhapsody*)
cannam@95 9509 # PIC is the default on this platform
cannam@95 9510 # Common symbols not allowed in MH_DYLIB files
cannam@95 9511 lt_prog_compiler_pic='-fno-common'
cannam@95 9512 ;;
cannam@95 9513
cannam@95 9514 haiku*)
cannam@95 9515 # PIC is the default for Haiku.
cannam@95 9516 # The "-static" flag exists, but is broken.
cannam@95 9517 lt_prog_compiler_static=
cannam@95 9518 ;;
cannam@95 9519
cannam@95 9520 hpux*)
cannam@95 9521 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
cannam@95 9522 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
cannam@95 9523 # sets the default TLS model and affects inlining.
cannam@95 9524 case $host_cpu in
cannam@95 9525 hppa*64*)
cannam@95 9526 # +Z the default
cannam@95 9527 ;;
cannam@95 9528 *)
cannam@95 9529 lt_prog_compiler_pic='-fPIC'
cannam@95 9530 ;;
cannam@95 9531 esac
cannam@95 9532 ;;
cannam@95 9533
cannam@95 9534 interix[3-9]*)
cannam@95 9535 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
cannam@95 9536 # Instead, we relocate shared libraries at runtime.
cannam@95 9537 ;;
cannam@95 9538
cannam@95 9539 msdosdjgpp*)
cannam@95 9540 # Just because we use GCC doesn't mean we suddenly get shared libraries
cannam@95 9541 # on systems that don't support them.
cannam@95 9542 lt_prog_compiler_can_build_shared=no
cannam@95 9543 enable_shared=no
cannam@95 9544 ;;
cannam@95 9545
cannam@95 9546 *nto* | *qnx*)
cannam@95 9547 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@95 9548 # it will coredump.
cannam@95 9549 lt_prog_compiler_pic='-fPIC -shared'
cannam@95 9550 ;;
cannam@95 9551
cannam@95 9552 sysv4*MP*)
cannam@95 9553 if test -d /usr/nec; then
cannam@95 9554 lt_prog_compiler_pic=-Kconform_pic
cannam@95 9555 fi
cannam@95 9556 ;;
cannam@95 9557
cannam@95 9558 *)
cannam@95 9559 lt_prog_compiler_pic='-fPIC'
cannam@95 9560 ;;
cannam@95 9561 esac
cannam@95 9562
cannam@95 9563 case $cc_basename in
cannam@95 9564 nvcc*) # Cuda Compiler Driver 2.2
cannam@95 9565 lt_prog_compiler_wl='-Xlinker '
cannam@95 9566 if test -n "$lt_prog_compiler_pic"; then
cannam@95 9567 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
cannam@95 9568 fi
cannam@95 9569 ;;
cannam@95 9570 esac
cannam@95 9571 else
cannam@95 9572 # PORTME Check for flag to pass linker flags through the system compiler.
cannam@95 9573 case $host_os in
cannam@95 9574 aix*)
cannam@95 9575 lt_prog_compiler_wl='-Wl,'
cannam@95 9576 if test "$host_cpu" = ia64; then
cannam@95 9577 # AIX 5 now supports IA64 processor
cannam@95 9578 lt_prog_compiler_static='-Bstatic'
cannam@95 9579 else
cannam@95 9580 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
cannam@95 9581 fi
cannam@95 9582 ;;
cannam@95 9583
cannam@95 9584 mingw* | cygwin* | pw32* | os2* | cegcc*)
cannam@95 9585 # This hack is so that the source file can tell whether it is being
cannam@95 9586 # built for inclusion in a dll (and should export symbols for example).
cannam@95 9587 lt_prog_compiler_pic='-DDLL_EXPORT'
cannam@95 9588 ;;
cannam@95 9589
cannam@95 9590 hpux9* | hpux10* | hpux11*)
cannam@95 9591 lt_prog_compiler_wl='-Wl,'
cannam@95 9592 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cannam@95 9593 # not for PA HP-UX.
cannam@95 9594 case $host_cpu in
cannam@95 9595 hppa*64*|ia64*)
cannam@95 9596 # +Z the default
cannam@95 9597 ;;
cannam@95 9598 *)
cannam@95 9599 lt_prog_compiler_pic='+Z'
cannam@95 9600 ;;
cannam@95 9601 esac
cannam@95 9602 # Is there a better lt_prog_compiler_static that works with the bundled CC?
cannam@95 9603 lt_prog_compiler_static='${wl}-a ${wl}archive'
cannam@95 9604 ;;
cannam@95 9605
cannam@95 9606 irix5* | irix6* | nonstopux*)
cannam@95 9607 lt_prog_compiler_wl='-Wl,'
cannam@95 9608 # PIC (with -KPIC) is the default.
cannam@95 9609 lt_prog_compiler_static='-non_shared'
cannam@95 9610 ;;
cannam@95 9611
cannam@95 9612 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@95 9613 case $cc_basename in
cannam@95 9614 # old Intel for x86_64 which still supported -KPIC.
cannam@95 9615 ecc*)
cannam@95 9616 lt_prog_compiler_wl='-Wl,'
cannam@95 9617 lt_prog_compiler_pic='-KPIC'
cannam@95 9618 lt_prog_compiler_static='-static'
cannam@95 9619 ;;
cannam@95 9620 # icc used to be incompatible with GCC.
cannam@95 9621 # ICC 10 doesn't accept -KPIC any more.
cannam@95 9622 icc* | ifort*)
cannam@95 9623 lt_prog_compiler_wl='-Wl,'
cannam@95 9624 lt_prog_compiler_pic='-fPIC'
cannam@95 9625 lt_prog_compiler_static='-static'
cannam@95 9626 ;;
cannam@95 9627 # Lahey Fortran 8.1.
cannam@95 9628 lf95*)
cannam@95 9629 lt_prog_compiler_wl='-Wl,'
cannam@95 9630 lt_prog_compiler_pic='--shared'
cannam@95 9631 lt_prog_compiler_static='--static'
cannam@95 9632 ;;
cannam@95 9633 nagfor*)
cannam@95 9634 # NAG Fortran compiler
cannam@95 9635 lt_prog_compiler_wl='-Wl,-Wl,,'
cannam@95 9636 lt_prog_compiler_pic='-PIC'
cannam@95 9637 lt_prog_compiler_static='-Bstatic'
cannam@95 9638 ;;
cannam@95 9639 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cannam@95 9640 # Portland Group compilers (*not* the Pentium gcc compiler,
cannam@95 9641 # which looks to be a dead project)
cannam@95 9642 lt_prog_compiler_wl='-Wl,'
cannam@95 9643 lt_prog_compiler_pic='-fpic'
cannam@95 9644 lt_prog_compiler_static='-Bstatic'
cannam@95 9645 ;;
cannam@95 9646 ccc*)
cannam@95 9647 lt_prog_compiler_wl='-Wl,'
cannam@95 9648 # All Alpha code is PIC.
cannam@95 9649 lt_prog_compiler_static='-non_shared'
cannam@95 9650 ;;
cannam@95 9651 xl* | bgxl* | bgf* | mpixl*)
cannam@95 9652 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cannam@95 9653 lt_prog_compiler_wl='-Wl,'
cannam@95 9654 lt_prog_compiler_pic='-qpic'
cannam@95 9655 lt_prog_compiler_static='-qstaticlink'
cannam@95 9656 ;;
cannam@95 9657 *)
cannam@95 9658 case `$CC -V 2>&1 | sed 5q` in
cannam@95 9659 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cannam@95 9660 # Sun Fortran 8.3 passes all unrecognized flags to the linker
cannam@95 9661 lt_prog_compiler_pic='-KPIC'
cannam@95 9662 lt_prog_compiler_static='-Bstatic'
cannam@95 9663 lt_prog_compiler_wl=''
cannam@95 9664 ;;
cannam@95 9665 *Sun\ F* | *Sun*Fortran*)
cannam@95 9666 lt_prog_compiler_pic='-KPIC'
cannam@95 9667 lt_prog_compiler_static='-Bstatic'
cannam@95 9668 lt_prog_compiler_wl='-Qoption ld '
cannam@95 9669 ;;
cannam@95 9670 *Sun\ C*)
cannam@95 9671 # Sun C 5.9
cannam@95 9672 lt_prog_compiler_pic='-KPIC'
cannam@95 9673 lt_prog_compiler_static='-Bstatic'
cannam@95 9674 lt_prog_compiler_wl='-Wl,'
cannam@95 9675 ;;
cannam@95 9676 *Intel*\ [CF]*Compiler*)
cannam@95 9677 lt_prog_compiler_wl='-Wl,'
cannam@95 9678 lt_prog_compiler_pic='-fPIC'
cannam@95 9679 lt_prog_compiler_static='-static'
cannam@95 9680 ;;
cannam@95 9681 *Portland\ Group*)
cannam@95 9682 lt_prog_compiler_wl='-Wl,'
cannam@95 9683 lt_prog_compiler_pic='-fpic'
cannam@95 9684 lt_prog_compiler_static='-Bstatic'
cannam@95 9685 ;;
cannam@95 9686 esac
cannam@95 9687 ;;
cannam@95 9688 esac
cannam@95 9689 ;;
cannam@95 9690
cannam@95 9691 newsos6)
cannam@95 9692 lt_prog_compiler_pic='-KPIC'
cannam@95 9693 lt_prog_compiler_static='-Bstatic'
cannam@95 9694 ;;
cannam@95 9695
cannam@95 9696 *nto* | *qnx*)
cannam@95 9697 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@95 9698 # it will coredump.
cannam@95 9699 lt_prog_compiler_pic='-fPIC -shared'
cannam@95 9700 ;;
cannam@95 9701
cannam@95 9702 osf3* | osf4* | osf5*)
cannam@95 9703 lt_prog_compiler_wl='-Wl,'
cannam@95 9704 # All OSF/1 code is PIC.
cannam@95 9705 lt_prog_compiler_static='-non_shared'
cannam@95 9706 ;;
cannam@95 9707
cannam@95 9708 rdos*)
cannam@95 9709 lt_prog_compiler_static='-non_shared'
cannam@95 9710 ;;
cannam@95 9711
cannam@95 9712 solaris*)
cannam@95 9713 lt_prog_compiler_pic='-KPIC'
cannam@95 9714 lt_prog_compiler_static='-Bstatic'
cannam@95 9715 case $cc_basename in
cannam@95 9716 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cannam@95 9717 lt_prog_compiler_wl='-Qoption ld ';;
cannam@95 9718 *)
cannam@95 9719 lt_prog_compiler_wl='-Wl,';;
cannam@95 9720 esac
cannam@95 9721 ;;
cannam@95 9722
cannam@95 9723 sunos4*)
cannam@95 9724 lt_prog_compiler_wl='-Qoption ld '
cannam@95 9725 lt_prog_compiler_pic='-PIC'
cannam@95 9726 lt_prog_compiler_static='-Bstatic'
cannam@95 9727 ;;
cannam@95 9728
cannam@95 9729 sysv4 | sysv4.2uw2* | sysv4.3*)
cannam@95 9730 lt_prog_compiler_wl='-Wl,'
cannam@95 9731 lt_prog_compiler_pic='-KPIC'
cannam@95 9732 lt_prog_compiler_static='-Bstatic'
cannam@95 9733 ;;
cannam@95 9734
cannam@95 9735 sysv4*MP*)
cannam@95 9736 if test -d /usr/nec ;then
cannam@95 9737 lt_prog_compiler_pic='-Kconform_pic'
cannam@95 9738 lt_prog_compiler_static='-Bstatic'
cannam@95 9739 fi
cannam@95 9740 ;;
cannam@95 9741
cannam@95 9742 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
cannam@95 9743 lt_prog_compiler_wl='-Wl,'
cannam@95 9744 lt_prog_compiler_pic='-KPIC'
cannam@95 9745 lt_prog_compiler_static='-Bstatic'
cannam@95 9746 ;;
cannam@95 9747
cannam@95 9748 unicos*)
cannam@95 9749 lt_prog_compiler_wl='-Wl,'
cannam@95 9750 lt_prog_compiler_can_build_shared=no
cannam@95 9751 ;;
cannam@95 9752
cannam@95 9753 uts4*)
cannam@95 9754 lt_prog_compiler_pic='-pic'
cannam@95 9755 lt_prog_compiler_static='-Bstatic'
cannam@95 9756 ;;
cannam@95 9757
cannam@95 9758 *)
cannam@95 9759 lt_prog_compiler_can_build_shared=no
cannam@95 9760 ;;
cannam@95 9761 esac
cannam@95 9762 fi
cannam@95 9763
cannam@95 9764 case $host_os in
cannam@95 9765 # For platforms which do not support PIC, -DPIC is meaningless:
cannam@95 9766 *djgpp*)
cannam@95 9767 lt_prog_compiler_pic=
cannam@95 9768 ;;
cannam@95 9769 *)
cannam@95 9770 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
cannam@95 9771 ;;
cannam@95 9772 esac
cannam@95 9773
cannam@95 9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cannam@95 9775 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
cannam@95 9776 if ${lt_cv_prog_compiler_pic+:} false; then :
cannam@95 9777 $as_echo_n "(cached) " >&6
cannam@95 9778 else
cannam@95 9779 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
cannam@95 9780 fi
cannam@95 9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
cannam@95 9782 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
cannam@95 9783 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cannam@95 9784
cannam@95 9785 #
cannam@95 9786 # Check to make sure the PIC flag actually works.
cannam@95 9787 #
cannam@95 9788 if test -n "$lt_prog_compiler_pic"; then
cannam@95 9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cannam@95 9790 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cannam@95 9791 if ${lt_cv_prog_compiler_pic_works+:} false; then :
cannam@95 9792 $as_echo_n "(cached) " >&6
cannam@95 9793 else
cannam@95 9794 lt_cv_prog_compiler_pic_works=no
cannam@95 9795 ac_outfile=conftest.$ac_objext
cannam@95 9796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@95 9797 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
cannam@95 9798 # Insert the option either (1) after the last *FLAGS variable, or
cannam@95 9799 # (2) before a word containing "conftest.", or (3) at the end.
cannam@95 9800 # Note that $ac_compile itself does not contain backslashes and begins
cannam@95 9801 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@95 9802 # The option is referenced via a variable to avoid confusing sed.
cannam@95 9803 lt_compile=`echo "$ac_compile" | $SED \
cannam@95 9804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@95 9805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@95 9806 -e 's:$: $lt_compiler_flag:'`
cannam@95 9807 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@95 9808 (eval "$lt_compile" 2>conftest.err)
cannam@95 9809 ac_status=$?
cannam@95 9810 cat conftest.err >&5
cannam@95 9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@95 9812 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@95 9813 # The compiler can only warn and ignore the option if not recognized
cannam@95 9814 # So say no if there are warnings other than the usual output.
cannam@95 9815 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cannam@95 9816 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@95 9817 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
cannam@95 9818 lt_cv_prog_compiler_pic_works=yes
cannam@95 9819 fi
cannam@95 9820 fi
cannam@95 9821 $RM conftest*
cannam@95 9822
cannam@95 9823 fi
cannam@95 9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cannam@95 9825 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
cannam@95 9826
cannam@95 9827 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
cannam@95 9828 case $lt_prog_compiler_pic in
cannam@95 9829 "" | " "*) ;;
cannam@95 9830 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
cannam@95 9831 esac
cannam@95 9832 else
cannam@95 9833 lt_prog_compiler_pic=
cannam@95 9834 lt_prog_compiler_can_build_shared=no
cannam@95 9835 fi
cannam@95 9836
cannam@95 9837 fi
cannam@95 9838
cannam@95 9839
cannam@95 9840
cannam@95 9841
cannam@95 9842
cannam@95 9843
cannam@95 9844
cannam@95 9845
cannam@95 9846
cannam@95 9847
cannam@95 9848
cannam@95 9849 #
cannam@95 9850 # Check to make sure the static flag actually works.
cannam@95 9851 #
cannam@95 9852 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cannam@95 9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cannam@95 9854 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cannam@95 9855 if ${lt_cv_prog_compiler_static_works+:} false; then :
cannam@95 9856 $as_echo_n "(cached) " >&6
cannam@95 9857 else
cannam@95 9858 lt_cv_prog_compiler_static_works=no
cannam@95 9859 save_LDFLAGS="$LDFLAGS"
cannam@95 9860 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
cannam@95 9861 echo "$lt_simple_link_test_code" > conftest.$ac_ext
cannam@95 9862 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cannam@95 9863 # The linker can only warn and ignore the option if not recognized
cannam@95 9864 # So say no if there are warnings
cannam@95 9865 if test -s conftest.err; then
cannam@95 9866 # Append any errors to the config.log.
cannam@95 9867 cat conftest.err 1>&5
cannam@95 9868 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cannam@95 9869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@95 9870 if diff conftest.exp conftest.er2 >/dev/null; then
cannam@95 9871 lt_cv_prog_compiler_static_works=yes
cannam@95 9872 fi
cannam@95 9873 else
cannam@95 9874 lt_cv_prog_compiler_static_works=yes
cannam@95 9875 fi
cannam@95 9876 fi
cannam@95 9877 $RM -r conftest*
cannam@95 9878 LDFLAGS="$save_LDFLAGS"
cannam@95 9879
cannam@95 9880 fi
cannam@95 9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cannam@95 9882 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
cannam@95 9883
cannam@95 9884 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
cannam@95 9885 :
cannam@95 9886 else
cannam@95 9887 lt_prog_compiler_static=
cannam@95 9888 fi
cannam@95 9889
cannam@95 9890
cannam@95 9891
cannam@95 9892
cannam@95 9893
cannam@95 9894
cannam@95 9895
cannam@95 9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@95 9897 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@95 9898 if ${lt_cv_prog_compiler_c_o+:} false; then :
cannam@95 9899 $as_echo_n "(cached) " >&6
cannam@95 9900 else
cannam@95 9901 lt_cv_prog_compiler_c_o=no
cannam@95 9902 $RM -r conftest 2>/dev/null
cannam@95 9903 mkdir conftest
cannam@95 9904 cd conftest
cannam@95 9905 mkdir out
cannam@95 9906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@95 9907
cannam@95 9908 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@95 9909 # Insert the option either (1) after the last *FLAGS variable, or
cannam@95 9910 # (2) before a word containing "conftest.", or (3) at the end.
cannam@95 9911 # Note that $ac_compile itself does not contain backslashes and begins
cannam@95 9912 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@95 9913 lt_compile=`echo "$ac_compile" | $SED \
cannam@95 9914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@95 9915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@95 9916 -e 's:$: $lt_compiler_flag:'`
cannam@95 9917 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@95 9918 (eval "$lt_compile" 2>out/conftest.err)
cannam@95 9919 ac_status=$?
cannam@95 9920 cat out/conftest.err >&5
cannam@95 9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@95 9922 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@95 9923 then
cannam@95 9924 # The compiler can only warn and ignore the option if not recognized
cannam@95 9925 # So say no if there are warnings
cannam@95 9926 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@95 9927 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@95 9928 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@95 9929 lt_cv_prog_compiler_c_o=yes
cannam@95 9930 fi
cannam@95 9931 fi
cannam@95 9932 chmod u+w . 2>&5
cannam@95 9933 $RM conftest*
cannam@95 9934 # SGI C++ compiler will create directory out/ii_files/ for
cannam@95 9935 # template instantiation
cannam@95 9936 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@95 9937 $RM out/* && rmdir out
cannam@95 9938 cd ..
cannam@95 9939 $RM -r conftest
cannam@95 9940 $RM conftest*
cannam@95 9941
cannam@95 9942 fi
cannam@95 9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cannam@95 9944 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
cannam@95 9945
cannam@95 9946
cannam@95 9947
cannam@95 9948
cannam@95 9949
cannam@95 9950
cannam@95 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@95 9952 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@95 9953 if ${lt_cv_prog_compiler_c_o+:} false; then :
cannam@95 9954 $as_echo_n "(cached) " >&6
cannam@95 9955 else
cannam@95 9956 lt_cv_prog_compiler_c_o=no
cannam@95 9957 $RM -r conftest 2>/dev/null
cannam@95 9958 mkdir conftest
cannam@95 9959 cd conftest
cannam@95 9960 mkdir out
cannam@95 9961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@95 9962
cannam@95 9963 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@95 9964 # Insert the option either (1) after the last *FLAGS variable, or
cannam@95 9965 # (2) before a word containing "conftest.", or (3) at the end.
cannam@95 9966 # Note that $ac_compile itself does not contain backslashes and begins
cannam@95 9967 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@95 9968 lt_compile=`echo "$ac_compile" | $SED \
cannam@95 9969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@95 9970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@95 9971 -e 's:$: $lt_compiler_flag:'`
cannam@95 9972 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@95 9973 (eval "$lt_compile" 2>out/conftest.err)
cannam@95 9974 ac_status=$?
cannam@95 9975 cat out/conftest.err >&5
cannam@95 9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@95 9977 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@95 9978 then
cannam@95 9979 # The compiler can only warn and ignore the option if not recognized
cannam@95 9980 # So say no if there are warnings
cannam@95 9981 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@95 9982 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@95 9983 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@95 9984 lt_cv_prog_compiler_c_o=yes
cannam@95 9985 fi
cannam@95 9986 fi
cannam@95 9987 chmod u+w . 2>&5
cannam@95 9988 $RM conftest*
cannam@95 9989 # SGI C++ compiler will create directory out/ii_files/ for
cannam@95 9990 # template instantiation
cannam@95 9991 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@95 9992 $RM out/* && rmdir out
cannam@95 9993 cd ..
cannam@95 9994 $RM -r conftest
cannam@95 9995 $RM conftest*
cannam@95 9996
cannam@95 9997 fi
cannam@95 9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cannam@95 9999 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
cannam@95 10000
cannam@95 10001
cannam@95 10002
cannam@95 10003
cannam@95 10004 hard_links="nottested"
cannam@95 10005 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
cannam@95 10006 # do not overwrite the value of need_locks provided by the user
cannam@95 10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cannam@95 10008 $as_echo_n "checking if we can lock with hard links... " >&6; }
cannam@95 10009 hard_links=yes
cannam@95 10010 $RM conftest*
cannam@95 10011 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@95 10012 touch conftest.a
cannam@95 10013 ln conftest.a conftest.b 2>&5 || hard_links=no
cannam@95 10014 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@95 10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cannam@95 10016 $as_echo "$hard_links" >&6; }
cannam@95 10017 if test "$hard_links" = no; then
cannam@95 10018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cannam@95 10019 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
cannam@95 10020 need_locks=warn
cannam@95 10021 fi
cannam@95 10022 else
cannam@95 10023 need_locks=no
cannam@95 10024 fi
cannam@95 10025
cannam@95 10026
cannam@95 10027
cannam@95 10028
cannam@95 10029
cannam@95 10030
cannam@95 10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@95 10032 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
cannam@95 10033
cannam@95 10034 runpath_var=
cannam@95 10035 allow_undefined_flag=
cannam@95 10036 always_export_symbols=no
cannam@95 10037 archive_cmds=
cannam@95 10038 archive_expsym_cmds=
cannam@95 10039 compiler_needs_object=no
cannam@95 10040 enable_shared_with_static_runtimes=no
cannam@95 10041 export_dynamic_flag_spec=
cannam@95 10042 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@95 10043 hardcode_automatic=no
cannam@95 10044 hardcode_direct=no
cannam@95 10045 hardcode_direct_absolute=no
cannam@95 10046 hardcode_libdir_flag_spec=
cannam@95 10047 hardcode_libdir_separator=
cannam@95 10048 hardcode_minus_L=no
cannam@95 10049 hardcode_shlibpath_var=unsupported
cannam@95 10050 inherit_rpath=no
cannam@95 10051 link_all_deplibs=unknown
cannam@95 10052 module_cmds=
cannam@95 10053 module_expsym_cmds=
cannam@95 10054 old_archive_from_new_cmds=
cannam@95 10055 old_archive_from_expsyms_cmds=
cannam@95 10056 thread_safe_flag_spec=
cannam@95 10057 whole_archive_flag_spec=
cannam@95 10058 # include_expsyms should be a list of space-separated symbols to be *always*
cannam@95 10059 # included in the symbol list
cannam@95 10060 include_expsyms=
cannam@95 10061 # exclude_expsyms can be an extended regexp of symbols to exclude
cannam@95 10062 # it will be wrapped by ` (' and `)$', so one must not match beginning or
cannam@95 10063 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
cannam@95 10064 # as well as any symbol that contains `d'.
cannam@95 10065 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cannam@95 10066 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
cannam@95 10067 # platforms (ab)use it in PIC code, but their linkers get confused if
cannam@95 10068 # the symbol is explicitly referenced. Since portable code cannot
cannam@95 10069 # rely on this symbol name, it's probably fine to never include it in
cannam@95 10070 # preloaded symbol tables.
cannam@95 10071 # Exclude shared library initialization/finalization symbols.
cannam@95 10072 extract_expsyms_cmds=
cannam@95 10073
cannam@95 10074 case $host_os in
cannam@95 10075 cygwin* | mingw* | pw32* | cegcc*)
cannam@95 10076 # FIXME: the MSVC++ port hasn't been tested in a loooong time
cannam@95 10077 # When not using gcc, we currently assume that we are using
cannam@95 10078 # Microsoft Visual C++.
cannam@95 10079 if test "$GCC" != yes; then
cannam@95 10080 with_gnu_ld=no
cannam@95 10081 fi
cannam@95 10082 ;;
cannam@95 10083 interix*)
cannam@95 10084 # we just hope/assume this is gcc and not c89 (= MSVC++)
cannam@95 10085 with_gnu_ld=yes
cannam@95 10086 ;;
cannam@95 10087 openbsd*)
cannam@95 10088 with_gnu_ld=no
cannam@95 10089 ;;
cannam@95 10090 linux* | k*bsd*-gnu | gnu*)
cannam@95 10091 link_all_deplibs=no
cannam@95 10092 ;;
cannam@95 10093 esac
cannam@95 10094
cannam@95 10095 ld_shlibs=yes
cannam@95 10096
cannam@95 10097 # On some targets, GNU ld is compatible enough with the native linker
cannam@95 10098 # that we're better off using the native interface for both.
cannam@95 10099 lt_use_gnu_ld_interface=no
cannam@95 10100 if test "$with_gnu_ld" = yes; then
cannam@95 10101 case $host_os in
cannam@95 10102 aix*)
cannam@95 10103 # The AIX port of GNU ld has always aspired to compatibility
cannam@95 10104 # with the native linker. However, as the warning in the GNU ld
cannam@95 10105 # block says, versions before 2.19.5* couldn't really create working
cannam@95 10106 # shared libraries, regardless of the interface used.
cannam@95 10107 case `$LD -v 2>&1` in
cannam@95 10108 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
cannam@95 10109 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
cannam@95 10110 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
cannam@95 10111 *)
cannam@95 10112 lt_use_gnu_ld_interface=yes
cannam@95 10113 ;;
cannam@95 10114 esac
cannam@95 10115 ;;
cannam@95 10116 *)
cannam@95 10117 lt_use_gnu_ld_interface=yes
cannam@95 10118 ;;
cannam@95 10119 esac
cannam@95 10120 fi
cannam@95 10121
cannam@95 10122 if test "$lt_use_gnu_ld_interface" = yes; then
cannam@95 10123 # If archive_cmds runs LD, not CC, wlarc should be empty
cannam@95 10124 wlarc='${wl}'
cannam@95 10125
cannam@95 10126 # Set some defaults for GNU ld with shared library support. These
cannam@95 10127 # are reset later if shared libraries are not supported. Putting them
cannam@95 10128 # here allows them to be overridden if necessary.
cannam@95 10129 runpath_var=LD_RUN_PATH
cannam@95 10130 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@95 10131 export_dynamic_flag_spec='${wl}--export-dynamic'
cannam@95 10132 # ancient GNU ld didn't support --whole-archive et. al.
cannam@95 10133 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
cannam@95 10134 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cannam@95 10135 else
cannam@95 10136 whole_archive_flag_spec=
cannam@95 10137 fi
cannam@95 10138 supports_anon_versioning=no
cannam@95 10139 case `$LD -v 2>&1` in
cannam@95 10140 *GNU\ gold*) supports_anon_versioning=yes ;;
cannam@95 10141 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
cannam@95 10142 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
cannam@95 10143 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
cannam@95 10144 *\ 2.11.*) ;; # other 2.11 versions
cannam@95 10145 *) supports_anon_versioning=yes ;;
cannam@95 10146 esac
cannam@95 10147
cannam@95 10148 # See if GNU ld supports shared libraries.
cannam@95 10149 case $host_os in
cannam@95 10150 aix[3-9]*)
cannam@95 10151 # On AIX/PPC, the GNU linker is very broken
cannam@95 10152 if test "$host_cpu" != ia64; then
cannam@95 10153 ld_shlibs=no
cannam@95 10154 cat <<_LT_EOF 1>&2
cannam@95 10155
cannam@95 10156 *** Warning: the GNU linker, at least up to release 2.19, is reported
cannam@95 10157 *** to be unable to reliably create shared libraries on AIX.
cannam@95 10158 *** Therefore, libtool is disabling shared libraries support. If you
cannam@95 10159 *** really care for shared libraries, you may want to install binutils
cannam@95 10160 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
cannam@95 10161 *** You will then need to restart the configuration process.
cannam@95 10162
cannam@95 10163 _LT_EOF
cannam@95 10164 fi
cannam@95 10165 ;;
cannam@95 10166
cannam@95 10167 amigaos*)
cannam@95 10168 case $host_cpu in
cannam@95 10169 powerpc)
cannam@95 10170 # see comment about AmigaOS4 .so support
cannam@95 10171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@95 10172 archive_expsym_cmds=''
cannam@95 10173 ;;
cannam@95 10174 m68k)
cannam@95 10175 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
cannam@95 10176 hardcode_libdir_flag_spec='-L$libdir'
cannam@95 10177 hardcode_minus_L=yes
cannam@95 10178 ;;
cannam@95 10179 esac
cannam@95 10180 ;;
cannam@95 10181
cannam@95 10182 beos*)
cannam@95 10183 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@95 10184 allow_undefined_flag=unsupported
cannam@95 10185 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
cannam@95 10186 # support --undefined. This deserves some investigation. FIXME
cannam@95 10187 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@95 10188 else
cannam@95 10189 ld_shlibs=no
cannam@95 10190 fi
cannam@95 10191 ;;
cannam@95 10192
cannam@95 10193 cygwin* | mingw* | pw32* | cegcc*)
cannam@95 10194 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
cannam@95 10195 # as there is no search path for DLLs.
cannam@95 10196 hardcode_libdir_flag_spec='-L$libdir'
cannam@95 10197 export_dynamic_flag_spec='${wl}--export-all-symbols'
cannam@95 10198 allow_undefined_flag=unsupported
cannam@95 10199 always_export_symbols=no
cannam@95 10200 enable_shared_with_static_runtimes=yes
cannam@95 10201 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
cannam@95 10202 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
cannam@95 10203
cannam@95 10204 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
cannam@95 10205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
cannam@95 10206 # If the export-symbols file already is a .def file (1st line
cannam@95 10207 # is EXPORTS), use it as is; otherwise, prepend...
cannam@95 10208 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@95 10209 cp $export_symbols $output_objdir/$soname.def;
cannam@95 10210 else
cannam@95 10211 echo EXPORTS > $output_objdir/$soname.def;
cannam@95 10212 cat $export_symbols >> $output_objdir/$soname.def;
cannam@95 10213 fi~
cannam@95 10214 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
cannam@95 10215 else
cannam@95 10216 ld_shlibs=no
cannam@95 10217 fi
cannam@95 10218 ;;
cannam@95 10219
cannam@95 10220 haiku*)
cannam@95 10221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@95 10222 link_all_deplibs=yes
cannam@95 10223 ;;
cannam@95 10224
cannam@95 10225 interix[3-9]*)
cannam@95 10226 hardcode_direct=no
cannam@95 10227 hardcode_shlibpath_var=no
cannam@95 10228 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cannam@95 10229 export_dynamic_flag_spec='${wl}-E'
cannam@95 10230 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
cannam@95 10231 # Instead, shared libraries are loaded at an image base (0x10000000 by
cannam@95 10232 # default) and relocated if they conflict, which is a slow very memory
cannam@95 10233 # consuming and fragmenting process. To avoid this, we pick a random,
cannam@95 10234 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
cannam@95 10235 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
cannam@95 10236 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
cannam@95 10237 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
cannam@95 10238 ;;
cannam@95 10239
cannam@95 10240 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cannam@95 10241 tmp_diet=no
cannam@95 10242 if test "$host_os" = linux-dietlibc; then
cannam@95 10243 case $cc_basename in
cannam@95 10244 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
cannam@95 10245 esac
cannam@95 10246 fi
cannam@95 10247 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
cannam@95 10248 && test "$tmp_diet" = no
cannam@95 10249 then
cannam@95 10250 tmp_addflag=' $pic_flag'
cannam@95 10251 tmp_sharedflag='-shared'
cannam@95 10252 case $cc_basename,$host_cpu in
cannam@95 10253 pgcc*) # Portland Group C compiler
cannam@95 10254 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cannam@95 10255 tmp_addflag=' $pic_flag'
cannam@95 10256 ;;
cannam@95 10257 pgf77* | pgf90* | pgf95* | pgfortran*)
cannam@95 10258 # Portland Group f77 and f90 compilers
cannam@95 10259 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cannam@95 10260 tmp_addflag=' $pic_flag -Mnomain' ;;
cannam@95 10261 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
cannam@95 10262 tmp_addflag=' -i_dynamic' ;;
cannam@95 10263 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
cannam@95 10264 tmp_addflag=' -i_dynamic -nofor_main' ;;
cannam@95 10265 ifc* | ifort*) # Intel Fortran compiler
cannam@95 10266 tmp_addflag=' -nofor_main' ;;
cannam@95 10267 lf95*) # Lahey Fortran 8.1
cannam@95 10268 whole_archive_flag_spec=
cannam@95 10269 tmp_sharedflag='--shared' ;;
cannam@95 10270 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cannam@95 10271 tmp_sharedflag='-qmkshrobj'
cannam@95 10272 tmp_addflag= ;;
cannam@95 10273 nvcc*) # Cuda Compiler Driver 2.2
cannam@95 10274 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cannam@95 10275 compiler_needs_object=yes
cannam@95 10276 ;;
cannam@95 10277 esac
cannam@95 10278 case `$CC -V 2>&1 | sed 5q` in
cannam@95 10279 *Sun\ C*) # Sun C 5.9
cannam@95 10280 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cannam@95 10281 compiler_needs_object=yes
cannam@95 10282 tmp_sharedflag='-G' ;;
cannam@95 10283 *Sun\ F*) # Sun Fortran 8.3
cannam@95 10284 tmp_sharedflag='-G' ;;
cannam@95 10285 esac
cannam@95 10286 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@95 10287
cannam@95 10288 if test "x$supports_anon_versioning" = xyes; then
cannam@95 10289 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
cannam@95 10290 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@95 10291 echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@95 10292 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
cannam@95 10293 fi
cannam@95 10294
cannam@95 10295 case $cc_basename in
cannam@95 10296 xlf* | bgf* | bgxlf* | mpixlf*)
cannam@95 10297 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
cannam@95 10298 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cannam@95 10299 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@95 10300 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cannam@95 10301 if test "x$supports_anon_versioning" = xyes; then
cannam@95 10302 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
cannam@95 10303 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@95 10304 echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@95 10305 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cannam@95 10306 fi
cannam@95 10307 ;;
cannam@95 10308 esac
cannam@95 10309 else
cannam@95 10310 ld_shlibs=no
cannam@95 10311 fi
cannam@95 10312 ;;
cannam@95 10313
cannam@95 10314 netbsd* | netbsdelf*-gnu)
cannam@95 10315 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@95 10316 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
cannam@95 10317 wlarc=
cannam@95 10318 else
cannam@95 10319 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@95 10320 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@95 10321 fi
cannam@95 10322 ;;
cannam@95 10323
cannam@95 10324 solaris*)
cannam@95 10325 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
cannam@95 10326 ld_shlibs=no
cannam@95 10327 cat <<_LT_EOF 1>&2
cannam@95 10328
cannam@95 10329 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
cannam@95 10330 *** create shared libraries on Solaris systems. Therefore, libtool
cannam@95 10331 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@95 10332 *** binutils to release 2.9.1 or newer. Another option is to modify
cannam@95 10333 *** your PATH or compiler configuration so that the native linker is
cannam@95 10334 *** used, and then restart.
cannam@95 10335
cannam@95 10336 _LT_EOF
cannam@95 10337 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@95 10338 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@95 10339 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@95 10340 else
cannam@95 10341 ld_shlibs=no
cannam@95 10342 fi
cannam@95 10343 ;;
cannam@95 10344
cannam@95 10345 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
cannam@95 10346 case `$LD -v 2>&1` in
cannam@95 10347 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
cannam@95 10348 ld_shlibs=no
cannam@95 10349 cat <<_LT_EOF 1>&2
cannam@95 10350
cannam@95 10351 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
cannam@95 10352 *** reliably create shared libraries on SCO systems. Therefore, libtool
cannam@95 10353 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@95 10354 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
cannam@95 10355 *** your PATH or compiler configuration so that the native linker is
cannam@95 10356 *** used, and then restart.
cannam@95 10357
cannam@95 10358 _LT_EOF
cannam@95 10359 ;;
cannam@95 10360 *)
cannam@95 10361 # For security reasons, it is highly recommended that you always
cannam@95 10362 # use absolute paths for naming shared libraries, and exclude the
cannam@95 10363 # DT_RUNPATH tag from executables and libraries. But doing so
cannam@95 10364 # requires that you compile everything twice, which is a pain.
cannam@95 10365 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@95 10366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@95 10367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@95 10368 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@95 10369 else
cannam@95 10370 ld_shlibs=no
cannam@95 10371 fi
cannam@95 10372 ;;
cannam@95 10373 esac
cannam@95 10374 ;;
cannam@95 10375
cannam@95 10376 sunos4*)
cannam@95 10377 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@95 10378 wlarc=
cannam@95 10379 hardcode_direct=yes
cannam@95 10380 hardcode_shlibpath_var=no
cannam@95 10381 ;;
cannam@95 10382
cannam@95 10383 *)
cannam@95 10384 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@95 10385 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@95 10386 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@95 10387 else
cannam@95 10388 ld_shlibs=no
cannam@95 10389 fi
cannam@95 10390 ;;
cannam@95 10391 esac
cannam@95 10392
cannam@95 10393 if test "$ld_shlibs" = no; then
cannam@95 10394 runpath_var=
cannam@95 10395 hardcode_libdir_flag_spec=
cannam@95 10396 export_dynamic_flag_spec=
cannam@95 10397 whole_archive_flag_spec=
cannam@95 10398 fi
cannam@95 10399 else
cannam@95 10400 # PORTME fill in a description of your system's linker (not GNU ld)
cannam@95 10401 case $host_os in
cannam@95 10402 aix3*)
cannam@95 10403 allow_undefined_flag=unsupported
cannam@95 10404 always_export_symbols=yes
cannam@95 10405 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
cannam@95 10406 # Note: this linker hardcodes the directories in LIBPATH if there
cannam@95 10407 # are no directories specified by -L.
cannam@95 10408 hardcode_minus_L=yes
cannam@95 10409 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
cannam@95 10410 # Neither direct hardcoding nor static linking is supported with a
cannam@95 10411 # broken collect2.
cannam@95 10412 hardcode_direct=unsupported
cannam@95 10413 fi
cannam@95 10414 ;;
cannam@95 10415
cannam@95 10416 aix[4-9]*)
cannam@95 10417 if test "$host_cpu" = ia64; then
cannam@95 10418 # On IA64, the linker does run time linking by default, so we don't
cannam@95 10419 # have to do anything special.
cannam@95 10420 aix_use_runtimelinking=no
cannam@95 10421 exp_sym_flag='-Bexport'
cannam@95 10422 no_entry_flag=""
cannam@95 10423 else
cannam@95 10424 # If we're using GNU nm, then we don't want the "-C" option.
cannam@95 10425 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cannam@95 10426 # Also, AIX nm treats weak defined symbols like other global
cannam@95 10427 # defined symbols, whereas GNU nm marks them as "W".
cannam@95 10428 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cannam@95 10429 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cannam@95 10430 else
cannam@95 10431 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cannam@95 10432 fi
cannam@95 10433 aix_use_runtimelinking=no
cannam@95 10434
cannam@95 10435 # Test if we are trying to use run time linking or normal
cannam@95 10436 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cannam@95 10437 # need to do runtime linking.
cannam@95 10438 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
cannam@95 10439 for ld_flag in $LDFLAGS; do
cannam@95 10440 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
cannam@95 10441 aix_use_runtimelinking=yes
cannam@95 10442 break
cannam@95 10443 fi
cannam@95 10444 done
cannam@95 10445 ;;
cannam@95 10446 esac
cannam@95 10447
cannam@95 10448 exp_sym_flag='-bexport'
cannam@95 10449 no_entry_flag='-bnoentry'
cannam@95 10450 fi
cannam@95 10451
cannam@95 10452 # When large executables or shared objects are built, AIX ld can
cannam@95 10453 # have problems creating the table of contents. If linking a library
cannam@95 10454 # or program results in "error TOC overflow" add -mminimal-toc to
cannam@95 10455 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cannam@95 10456 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cannam@95 10457
cannam@95 10458 archive_cmds=''
cannam@95 10459 hardcode_direct=yes
cannam@95 10460 hardcode_direct_absolute=yes
cannam@95 10461 hardcode_libdir_separator=':'
cannam@95 10462 link_all_deplibs=yes
cannam@95 10463 file_list_spec='${wl}-f,'
cannam@95 10464
cannam@95 10465 if test "$GCC" = yes; then
cannam@95 10466 case $host_os in aix4.[012]|aix4.[012].*)
cannam@95 10467 # We only want to do this on AIX 4.2 and lower, the check
cannam@95 10468 # below for broken collect2 doesn't work under 4.3+
cannam@95 10469 collect2name=`${CC} -print-prog-name=collect2`
cannam@95 10470 if test -f "$collect2name" &&
cannam@95 10471 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
cannam@95 10472 then
cannam@95 10473 # We have reworked collect2
cannam@95 10474 :
cannam@95 10475 else
cannam@95 10476 # We have old collect2
cannam@95 10477 hardcode_direct=unsupported
cannam@95 10478 # It fails to find uninstalled libraries when the uninstalled
cannam@95 10479 # path is not listed in the libpath. Setting hardcode_minus_L
cannam@95 10480 # to unsupported forces relinking
cannam@95 10481 hardcode_minus_L=yes
cannam@95 10482 hardcode_libdir_flag_spec='-L$libdir'
cannam@95 10483 hardcode_libdir_separator=
cannam@95 10484 fi
cannam@95 10485 ;;
cannam@95 10486 esac
cannam@95 10487 shared_flag='-shared'
cannam@95 10488 if test "$aix_use_runtimelinking" = yes; then
cannam@95 10489 shared_flag="$shared_flag "'${wl}-G'
cannam@95 10490 fi
cannam@95 10491 link_all_deplibs=no
cannam@95 10492 else
cannam@95 10493 # not using gcc
cannam@95 10494 if test "$host_cpu" = ia64; then
cannam@95 10495 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cannam@95 10496 # chokes on -Wl,-G. The following line is correct:
cannam@95 10497 shared_flag='-G'
cannam@95 10498 else
cannam@95 10499 if test "$aix_use_runtimelinking" = yes; then
cannam@95 10500 shared_flag='${wl}-G'
cannam@95 10501 else
cannam@95 10502 shared_flag='${wl}-bM:SRE'
cannam@95 10503 fi
cannam@95 10504 fi
cannam@95 10505 fi
cannam@95 10506
cannam@95 10507 export_dynamic_flag_spec='${wl}-bexpall'
cannam@95 10508 # It seems that -bexpall does not export symbols beginning with
cannam@95 10509 # underscore (_), so it is better to generate a list of symbols to export.
cannam@95 10510 always_export_symbols=yes
cannam@95 10511 if test "$aix_use_runtimelinking" = yes; then
cannam@95 10512 # Warning - without using the other runtime loading flags (-brtl),
cannam@95 10513 # -berok will link without error, but may produce a broken library.
cannam@95 10514 allow_undefined_flag='-berok'
cannam@95 10515 # Determine the default libpath from the value encoded in an
cannam@95 10516 # empty executable.
cannam@95 10517 if test "${lt_cv_aix_libpath+set}" = set; then
cannam@95 10518 aix_libpath=$lt_cv_aix_libpath
cannam@95 10519 else
cannam@95 10520 if ${lt_cv_aix_libpath_+:} false; then :
cannam@95 10521 $as_echo_n "(cached) " >&6
cannam@95 10522 else
cannam@95 10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 10524 /* end confdefs.h. */
cannam@95 10525
cannam@95 10526 int
cannam@95 10527 main ()
cannam@95 10528 {
cannam@95 10529
cannam@95 10530 ;
cannam@95 10531 return 0;
cannam@95 10532 }
cannam@95 10533 _ACEOF
cannam@95 10534 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 10535
cannam@95 10536 lt_aix_libpath_sed='
cannam@95 10537 /Import File Strings/,/^$/ {
cannam@95 10538 /^0/ {
cannam@95 10539 s/^0 *\([^ ]*\) *$/\1/
cannam@95 10540 p
cannam@95 10541 }
cannam@95 10542 }'
cannam@95 10543 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@95 10544 # Check for a 64-bit object if we didn't find anything.
cannam@95 10545 if test -z "$lt_cv_aix_libpath_"; then
cannam@95 10546 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@95 10547 fi
cannam@95 10548 fi
cannam@95 10549 rm -f core conftest.err conftest.$ac_objext \
cannam@95 10550 conftest$ac_exeext conftest.$ac_ext
cannam@95 10551 if test -z "$lt_cv_aix_libpath_"; then
cannam@95 10552 lt_cv_aix_libpath_="/usr/lib:/lib"
cannam@95 10553 fi
cannam@95 10554
cannam@95 10555 fi
cannam@95 10556
cannam@95 10557 aix_libpath=$lt_cv_aix_libpath_
cannam@95 10558 fi
cannam@95 10559
cannam@95 10560 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@95 10561 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cannam@95 10562 else
cannam@95 10563 if test "$host_cpu" = ia64; then
cannam@95 10564 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
cannam@95 10565 allow_undefined_flag="-z nodefs"
cannam@95 10566 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
cannam@95 10567 else
cannam@95 10568 # Determine the default libpath from the value encoded in an
cannam@95 10569 # empty executable.
cannam@95 10570 if test "${lt_cv_aix_libpath+set}" = set; then
cannam@95 10571 aix_libpath=$lt_cv_aix_libpath
cannam@95 10572 else
cannam@95 10573 if ${lt_cv_aix_libpath_+:} false; then :
cannam@95 10574 $as_echo_n "(cached) " >&6
cannam@95 10575 else
cannam@95 10576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 10577 /* end confdefs.h. */
cannam@95 10578
cannam@95 10579 int
cannam@95 10580 main ()
cannam@95 10581 {
cannam@95 10582
cannam@95 10583 ;
cannam@95 10584 return 0;
cannam@95 10585 }
cannam@95 10586 _ACEOF
cannam@95 10587 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 10588
cannam@95 10589 lt_aix_libpath_sed='
cannam@95 10590 /Import File Strings/,/^$/ {
cannam@95 10591 /^0/ {
cannam@95 10592 s/^0 *\([^ ]*\) *$/\1/
cannam@95 10593 p
cannam@95 10594 }
cannam@95 10595 }'
cannam@95 10596 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@95 10597 # Check for a 64-bit object if we didn't find anything.
cannam@95 10598 if test -z "$lt_cv_aix_libpath_"; then
cannam@95 10599 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@95 10600 fi
cannam@95 10601 fi
cannam@95 10602 rm -f core conftest.err conftest.$ac_objext \
cannam@95 10603 conftest$ac_exeext conftest.$ac_ext
cannam@95 10604 if test -z "$lt_cv_aix_libpath_"; then
cannam@95 10605 lt_cv_aix_libpath_="/usr/lib:/lib"
cannam@95 10606 fi
cannam@95 10607
cannam@95 10608 fi
cannam@95 10609
cannam@95 10610 aix_libpath=$lt_cv_aix_libpath_
cannam@95 10611 fi
cannam@95 10612
cannam@95 10613 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@95 10614 # Warning - without using the other run time loading flags,
cannam@95 10615 # -berok will link without error, but may produce a broken library.
cannam@95 10616 no_undefined_flag=' ${wl}-bernotok'
cannam@95 10617 allow_undefined_flag=' ${wl}-berok'
cannam@95 10618 if test "$with_gnu_ld" = yes; then
cannam@95 10619 # We only use this code for GNU lds that support --whole-archive.
cannam@95 10620 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
cannam@95 10621 else
cannam@95 10622 # Exported symbols can be pulled into shared objects from archives
cannam@95 10623 whole_archive_flag_spec='$convenience'
cannam@95 10624 fi
cannam@95 10625 archive_cmds_need_lc=yes
cannam@95 10626 # This is similar to how AIX traditionally builds its shared libraries.
cannam@95 10627 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
cannam@95 10628 fi
cannam@95 10629 fi
cannam@95 10630 ;;
cannam@95 10631
cannam@95 10632 amigaos*)
cannam@95 10633 case $host_cpu in
cannam@95 10634 powerpc)
cannam@95 10635 # see comment about AmigaOS4 .so support
cannam@95 10636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@95 10637 archive_expsym_cmds=''
cannam@95 10638 ;;
cannam@95 10639 m68k)
cannam@95 10640 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
cannam@95 10641 hardcode_libdir_flag_spec='-L$libdir'
cannam@95 10642 hardcode_minus_L=yes
cannam@95 10643 ;;
cannam@95 10644 esac
cannam@95 10645 ;;
cannam@95 10646
cannam@95 10647 bsdi[45]*)
cannam@95 10648 export_dynamic_flag_spec=-rdynamic
cannam@95 10649 ;;
cannam@95 10650
cannam@95 10651 cygwin* | mingw* | pw32* | cegcc*)
cannam@95 10652 # When not using gcc, we currently assume that we are using
cannam@95 10653 # Microsoft Visual C++.
cannam@95 10654 # hardcode_libdir_flag_spec is actually meaningless, as there is
cannam@95 10655 # no search path for DLLs.
cannam@95 10656 case $cc_basename in
cannam@95 10657 cl*)
cannam@95 10658 # Native MSVC
cannam@95 10659 hardcode_libdir_flag_spec=' '
cannam@95 10660 allow_undefined_flag=unsupported
cannam@95 10661 always_export_symbols=yes
cannam@95 10662 file_list_spec='@'
cannam@95 10663 # Tell ltmain to make .lib files, not .a files.
cannam@95 10664 libext=lib
cannam@95 10665 # Tell ltmain to make .dll files, not .so files.
cannam@95 10666 shrext_cmds=".dll"
cannam@95 10667 # FIXME: Setting linknames here is a bad hack.
cannam@95 10668 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
cannam@95 10669 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@95 10670 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
cannam@95 10671 else
cannam@95 10672 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
cannam@95 10673 fi~
cannam@95 10674 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
cannam@95 10675 linknames='
cannam@95 10676 # The linker will not automatically build a static lib if we build a DLL.
cannam@95 10677 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
cannam@95 10678 enable_shared_with_static_runtimes=yes
cannam@95 10679 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cannam@95 10680 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
cannam@95 10681 # Don't use ranlib
cannam@95 10682 old_postinstall_cmds='chmod 644 $oldlib'
cannam@95 10683 postlink_cmds='lt_outputfile="@OUTPUT@"~
cannam@95 10684 lt_tool_outputfile="@TOOL_OUTPUT@"~
cannam@95 10685 case $lt_outputfile in
cannam@95 10686 *.exe|*.EXE) ;;
cannam@95 10687 *)
cannam@95 10688 lt_outputfile="$lt_outputfile.exe"
cannam@95 10689 lt_tool_outputfile="$lt_tool_outputfile.exe"
cannam@95 10690 ;;
cannam@95 10691 esac~
cannam@95 10692 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
cannam@95 10693 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
cannam@95 10694 $RM "$lt_outputfile.manifest";
cannam@95 10695 fi'
cannam@95 10696 ;;
cannam@95 10697 *)
cannam@95 10698 # Assume MSVC wrapper
cannam@95 10699 hardcode_libdir_flag_spec=' '
cannam@95 10700 allow_undefined_flag=unsupported
cannam@95 10701 # Tell ltmain to make .lib files, not .a files.
cannam@95 10702 libext=lib
cannam@95 10703 # Tell ltmain to make .dll files, not .so files.
cannam@95 10704 shrext_cmds=".dll"
cannam@95 10705 # FIXME: Setting linknames here is a bad hack.
cannam@95 10706 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cannam@95 10707 # The linker will automatically build a .lib file if we build a DLL.
cannam@95 10708 old_archive_from_new_cmds='true'
cannam@95 10709 # FIXME: Should let the user specify the lib program.
cannam@95 10710 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
cannam@95 10711 enable_shared_with_static_runtimes=yes
cannam@95 10712 ;;
cannam@95 10713 esac
cannam@95 10714 ;;
cannam@95 10715
cannam@95 10716 darwin* | rhapsody*)
cannam@95 10717
cannam@95 10718
cannam@95 10719 archive_cmds_need_lc=no
cannam@95 10720 hardcode_direct=no
cannam@95 10721 hardcode_automatic=yes
cannam@95 10722 hardcode_shlibpath_var=unsupported
cannam@95 10723 if test "$lt_cv_ld_force_load" = "yes"; then
cannam@95 10724 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
cannam@95 10725
cannam@95 10726 else
cannam@95 10727 whole_archive_flag_spec=''
cannam@95 10728 fi
cannam@95 10729 link_all_deplibs=yes
cannam@95 10730 allow_undefined_flag="$_lt_dar_allow_undefined"
cannam@95 10731 case $cc_basename in
cannam@95 10732 ifort*) _lt_dar_can_shared=yes ;;
cannam@95 10733 *) _lt_dar_can_shared=$GCC ;;
cannam@95 10734 esac
cannam@95 10735 if test "$_lt_dar_can_shared" = "yes"; then
cannam@95 10736 output_verbose_link_cmd=func_echo_all
cannam@95 10737 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
cannam@95 10738 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
cannam@95 10739 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
cannam@95 10740 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
cannam@95 10741
cannam@95 10742 else
cannam@95 10743 ld_shlibs=no
cannam@95 10744 fi
cannam@95 10745
cannam@95 10746 ;;
cannam@95 10747
cannam@95 10748 dgux*)
cannam@95 10749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@95 10750 hardcode_libdir_flag_spec='-L$libdir'
cannam@95 10751 hardcode_shlibpath_var=no
cannam@95 10752 ;;
cannam@95 10753
cannam@95 10754 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
cannam@95 10755 # support. Future versions do this automatically, but an explicit c++rt0.o
cannam@95 10756 # does not break anything, and helps significantly (at the cost of a little
cannam@95 10757 # extra space).
cannam@95 10758 freebsd2.2*)
cannam@95 10759 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
cannam@95 10760 hardcode_libdir_flag_spec='-R$libdir'
cannam@95 10761 hardcode_direct=yes
cannam@95 10762 hardcode_shlibpath_var=no
cannam@95 10763 ;;
cannam@95 10764
cannam@95 10765 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cannam@95 10766 freebsd2.*)
cannam@95 10767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@95 10768 hardcode_direct=yes
cannam@95 10769 hardcode_minus_L=yes
cannam@95 10770 hardcode_shlibpath_var=no
cannam@95 10771 ;;
cannam@95 10772
cannam@95 10773 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
cannam@95 10774 freebsd* | dragonfly*)
cannam@95 10775 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 10776 hardcode_libdir_flag_spec='-R$libdir'
cannam@95 10777 hardcode_direct=yes
cannam@95 10778 hardcode_shlibpath_var=no
cannam@95 10779 ;;
cannam@95 10780
cannam@95 10781 hpux9*)
cannam@95 10782 if test "$GCC" = yes; then
cannam@95 10783 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cannam@95 10784 else
cannam@95 10785 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cannam@95 10786 fi
cannam@95 10787 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@95 10788 hardcode_libdir_separator=:
cannam@95 10789 hardcode_direct=yes
cannam@95 10790
cannam@95 10791 # hardcode_minus_L: Not really in the search PATH,
cannam@95 10792 # but as the default location of the library.
cannam@95 10793 hardcode_minus_L=yes
cannam@95 10794 export_dynamic_flag_spec='${wl}-E'
cannam@95 10795 ;;
cannam@95 10796
cannam@95 10797 hpux10*)
cannam@95 10798 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cannam@95 10799 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 10800 else
cannam@95 10801 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cannam@95 10802 fi
cannam@95 10803 if test "$with_gnu_ld" = no; then
cannam@95 10804 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@95 10805 hardcode_libdir_separator=:
cannam@95 10806 hardcode_direct=yes
cannam@95 10807 hardcode_direct_absolute=yes
cannam@95 10808 export_dynamic_flag_spec='${wl}-E'
cannam@95 10809 # hardcode_minus_L: Not really in the search PATH,
cannam@95 10810 # but as the default location of the library.
cannam@95 10811 hardcode_minus_L=yes
cannam@95 10812 fi
cannam@95 10813 ;;
cannam@95 10814
cannam@95 10815 hpux11*)
cannam@95 10816 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cannam@95 10817 case $host_cpu in
cannam@95 10818 hppa*64*)
cannam@95 10819 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 10820 ;;
cannam@95 10821 ia64*)
cannam@95 10822 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 10823 ;;
cannam@95 10824 *)
cannam@95 10825 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 10826 ;;
cannam@95 10827 esac
cannam@95 10828 else
cannam@95 10829 case $host_cpu in
cannam@95 10830 hppa*64*)
cannam@95 10831 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 10832 ;;
cannam@95 10833 ia64*)
cannam@95 10834 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 10835 ;;
cannam@95 10836 *)
cannam@95 10837
cannam@95 10838 # Older versions of the 11.00 compiler do not understand -b yet
cannam@95 10839 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
cannam@95 10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
cannam@95 10841 $as_echo_n "checking if $CC understands -b... " >&6; }
cannam@95 10842 if ${lt_cv_prog_compiler__b+:} false; then :
cannam@95 10843 $as_echo_n "(cached) " >&6
cannam@95 10844 else
cannam@95 10845 lt_cv_prog_compiler__b=no
cannam@95 10846 save_LDFLAGS="$LDFLAGS"
cannam@95 10847 LDFLAGS="$LDFLAGS -b"
cannam@95 10848 echo "$lt_simple_link_test_code" > conftest.$ac_ext
cannam@95 10849 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cannam@95 10850 # The linker can only warn and ignore the option if not recognized
cannam@95 10851 # So say no if there are warnings
cannam@95 10852 if test -s conftest.err; then
cannam@95 10853 # Append any errors to the config.log.
cannam@95 10854 cat conftest.err 1>&5
cannam@95 10855 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cannam@95 10856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@95 10857 if diff conftest.exp conftest.er2 >/dev/null; then
cannam@95 10858 lt_cv_prog_compiler__b=yes
cannam@95 10859 fi
cannam@95 10860 else
cannam@95 10861 lt_cv_prog_compiler__b=yes
cannam@95 10862 fi
cannam@95 10863 fi
cannam@95 10864 $RM -r conftest*
cannam@95 10865 LDFLAGS="$save_LDFLAGS"
cannam@95 10866
cannam@95 10867 fi
cannam@95 10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
cannam@95 10869 $as_echo "$lt_cv_prog_compiler__b" >&6; }
cannam@95 10870
cannam@95 10871 if test x"$lt_cv_prog_compiler__b" = xyes; then
cannam@95 10872 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 10873 else
cannam@95 10874 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cannam@95 10875 fi
cannam@95 10876
cannam@95 10877 ;;
cannam@95 10878 esac
cannam@95 10879 fi
cannam@95 10880 if test "$with_gnu_ld" = no; then
cannam@95 10881 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@95 10882 hardcode_libdir_separator=:
cannam@95 10883
cannam@95 10884 case $host_cpu in
cannam@95 10885 hppa*64*|ia64*)
cannam@95 10886 hardcode_direct=no
cannam@95 10887 hardcode_shlibpath_var=no
cannam@95 10888 ;;
cannam@95 10889 *)
cannam@95 10890 hardcode_direct=yes
cannam@95 10891 hardcode_direct_absolute=yes
cannam@95 10892 export_dynamic_flag_spec='${wl}-E'
cannam@95 10893
cannam@95 10894 # hardcode_minus_L: Not really in the search PATH,
cannam@95 10895 # but as the default location of the library.
cannam@95 10896 hardcode_minus_L=yes
cannam@95 10897 ;;
cannam@95 10898 esac
cannam@95 10899 fi
cannam@95 10900 ;;
cannam@95 10901
cannam@95 10902 irix5* | irix6* | nonstopux*)
cannam@95 10903 if test "$GCC" = yes; then
cannam@95 10904 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cannam@95 10905 # Try to use the -exported_symbol ld option, if it does not
cannam@95 10906 # work, assume that -exports_file does not work either and
cannam@95 10907 # implicitly export all symbols.
cannam@95 10908 # This should be the same for all languages, so no per-tag cache variable.
cannam@95 10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
cannam@95 10910 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
cannam@95 10911 if ${lt_cv_irix_exported_symbol+:} false; then :
cannam@95 10912 $as_echo_n "(cached) " >&6
cannam@95 10913 else
cannam@95 10914 save_LDFLAGS="$LDFLAGS"
cannam@95 10915 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cannam@95 10916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 10917 /* end confdefs.h. */
cannam@95 10918 int foo (void) { return 0; }
cannam@95 10919 _ACEOF
cannam@95 10920 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 10921 lt_cv_irix_exported_symbol=yes
cannam@95 10922 else
cannam@95 10923 lt_cv_irix_exported_symbol=no
cannam@95 10924 fi
cannam@95 10925 rm -f core conftest.err conftest.$ac_objext \
cannam@95 10926 conftest$ac_exeext conftest.$ac_ext
cannam@95 10927 LDFLAGS="$save_LDFLAGS"
cannam@95 10928 fi
cannam@95 10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
cannam@95 10930 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
cannam@95 10931 if test "$lt_cv_irix_exported_symbol" = yes; then
cannam@95 10932 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
cannam@95 10933 fi
cannam@95 10934 else
cannam@95 10935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cannam@95 10936 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
cannam@95 10937 fi
cannam@95 10938 archive_cmds_need_lc='no'
cannam@95 10939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@95 10940 hardcode_libdir_separator=:
cannam@95 10941 inherit_rpath=yes
cannam@95 10942 link_all_deplibs=yes
cannam@95 10943 ;;
cannam@95 10944
cannam@95 10945 netbsd* | netbsdelf*-gnu)
cannam@95 10946 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@95 10947 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
cannam@95 10948 else
cannam@95 10949 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
cannam@95 10950 fi
cannam@95 10951 hardcode_libdir_flag_spec='-R$libdir'
cannam@95 10952 hardcode_direct=yes
cannam@95 10953 hardcode_shlibpath_var=no
cannam@95 10954 ;;
cannam@95 10955
cannam@95 10956 newsos6)
cannam@95 10957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@95 10958 hardcode_direct=yes
cannam@95 10959 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@95 10960 hardcode_libdir_separator=:
cannam@95 10961 hardcode_shlibpath_var=no
cannam@95 10962 ;;
cannam@95 10963
cannam@95 10964 *nto* | *qnx*)
cannam@95 10965 ;;
cannam@95 10966
cannam@95 10967 openbsd*)
cannam@95 10968 if test -f /usr/libexec/ld.so; then
cannam@95 10969 hardcode_direct=yes
cannam@95 10970 hardcode_shlibpath_var=no
cannam@95 10971 hardcode_direct_absolute=yes
cannam@95 10972 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@95 10973 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 10974 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
cannam@95 10975 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cannam@95 10976 export_dynamic_flag_spec='${wl}-E'
cannam@95 10977 else
cannam@95 10978 case $host_os in
cannam@95 10979 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
cannam@95 10980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@95 10981 hardcode_libdir_flag_spec='-R$libdir'
cannam@95 10982 ;;
cannam@95 10983 *)
cannam@95 10984 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 10985 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cannam@95 10986 ;;
cannam@95 10987 esac
cannam@95 10988 fi
cannam@95 10989 else
cannam@95 10990 ld_shlibs=no
cannam@95 10991 fi
cannam@95 10992 ;;
cannam@95 10993
cannam@95 10994 os2*)
cannam@95 10995 hardcode_libdir_flag_spec='-L$libdir'
cannam@95 10996 hardcode_minus_L=yes
cannam@95 10997 allow_undefined_flag=unsupported
cannam@95 10998 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
cannam@95 10999 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
cannam@95 11000 ;;
cannam@95 11001
cannam@95 11002 osf3*)
cannam@95 11003 if test "$GCC" = yes; then
cannam@95 11004 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cannam@95 11005 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cannam@95 11006 else
cannam@95 11007 allow_undefined_flag=' -expect_unresolved \*'
cannam@95 11008 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cannam@95 11009 fi
cannam@95 11010 archive_cmds_need_lc='no'
cannam@95 11011 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@95 11012 hardcode_libdir_separator=:
cannam@95 11013 ;;
cannam@95 11014
cannam@95 11015 osf4* | osf5*) # as osf3* with the addition of -msym flag
cannam@95 11016 if test "$GCC" = yes; then
cannam@95 11017 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cannam@95 11018 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cannam@95 11019 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@95 11020 else
cannam@95 11021 allow_undefined_flag=' -expect_unresolved \*'
cannam@95 11022 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cannam@95 11023 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
cannam@95 11024 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
cannam@95 11025
cannam@95 11026 # Both c and cxx compiler support -rpath directly
cannam@95 11027 hardcode_libdir_flag_spec='-rpath $libdir'
cannam@95 11028 fi
cannam@95 11029 archive_cmds_need_lc='no'
cannam@95 11030 hardcode_libdir_separator=:
cannam@95 11031 ;;
cannam@95 11032
cannam@95 11033 solaris*)
cannam@95 11034 no_undefined_flag=' -z defs'
cannam@95 11035 if test "$GCC" = yes; then
cannam@95 11036 wlarc='${wl}'
cannam@95 11037 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 11038 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@95 11039 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
cannam@95 11040 else
cannam@95 11041 case `$CC -V 2>&1` in
cannam@95 11042 *"Compilers 5.0"*)
cannam@95 11043 wlarc=''
cannam@95 11044 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@95 11045 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@95 11046 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
cannam@95 11047 ;;
cannam@95 11048 *)
cannam@95 11049 wlarc='${wl}'
cannam@95 11050 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 11051 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@95 11052 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
cannam@95 11053 ;;
cannam@95 11054 esac
cannam@95 11055 fi
cannam@95 11056 hardcode_libdir_flag_spec='-R$libdir'
cannam@95 11057 hardcode_shlibpath_var=no
cannam@95 11058 case $host_os in
cannam@95 11059 solaris2.[0-5] | solaris2.[0-5].*) ;;
cannam@95 11060 *)
cannam@95 11061 # The compiler driver will combine and reorder linker options,
cannam@95 11062 # but understands `-z linker_flag'. GCC discards it without `$wl',
cannam@95 11063 # but is careful enough not to reorder.
cannam@95 11064 # Supported since Solaris 2.6 (maybe 2.5.1?)
cannam@95 11065 if test "$GCC" = yes; then
cannam@95 11066 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
cannam@95 11067 else
cannam@95 11068 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
cannam@95 11069 fi
cannam@95 11070 ;;
cannam@95 11071 esac
cannam@95 11072 link_all_deplibs=yes
cannam@95 11073 ;;
cannam@95 11074
cannam@95 11075 sunos4*)
cannam@95 11076 if test "x$host_vendor" = xsequent; then
cannam@95 11077 # Use $CC to link under sequent, because it throws in some extra .o
cannam@95 11078 # files that make .init and .fini sections work.
cannam@95 11079 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 11080 else
cannam@95 11081 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
cannam@95 11082 fi
cannam@95 11083 hardcode_libdir_flag_spec='-L$libdir'
cannam@95 11084 hardcode_direct=yes
cannam@95 11085 hardcode_minus_L=yes
cannam@95 11086 hardcode_shlibpath_var=no
cannam@95 11087 ;;
cannam@95 11088
cannam@95 11089 sysv4)
cannam@95 11090 case $host_vendor in
cannam@95 11091 sni)
cannam@95 11092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@95 11093 hardcode_direct=yes # is this really true???
cannam@95 11094 ;;
cannam@95 11095 siemens)
cannam@95 11096 ## LD is ld it makes a PLAMLIB
cannam@95 11097 ## CC just makes a GrossModule.
cannam@95 11098 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cannam@95 11099 reload_cmds='$CC -r -o $output$reload_objs'
cannam@95 11100 hardcode_direct=no
cannam@95 11101 ;;
cannam@95 11102 motorola)
cannam@95 11103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@95 11104 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
cannam@95 11105 ;;
cannam@95 11106 esac
cannam@95 11107 runpath_var='LD_RUN_PATH'
cannam@95 11108 hardcode_shlibpath_var=no
cannam@95 11109 ;;
cannam@95 11110
cannam@95 11111 sysv4.3*)
cannam@95 11112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@95 11113 hardcode_shlibpath_var=no
cannam@95 11114 export_dynamic_flag_spec='-Bexport'
cannam@95 11115 ;;
cannam@95 11116
cannam@95 11117 sysv4*MP*)
cannam@95 11118 if test -d /usr/nec; then
cannam@95 11119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@95 11120 hardcode_shlibpath_var=no
cannam@95 11121 runpath_var=LD_RUN_PATH
cannam@95 11122 hardcode_runpath_var=yes
cannam@95 11123 ld_shlibs=yes
cannam@95 11124 fi
cannam@95 11125 ;;
cannam@95 11126
cannam@95 11127 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
cannam@95 11128 no_undefined_flag='${wl}-z,text'
cannam@95 11129 archive_cmds_need_lc=no
cannam@95 11130 hardcode_shlibpath_var=no
cannam@95 11131 runpath_var='LD_RUN_PATH'
cannam@95 11132
cannam@95 11133 if test "$GCC" = yes; then
cannam@95 11134 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 11135 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 11136 else
cannam@95 11137 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 11138 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 11139 fi
cannam@95 11140 ;;
cannam@95 11141
cannam@95 11142 sysv5* | sco3.2v5* | sco5v6*)
cannam@95 11143 # Note: We can NOT use -z defs as we might desire, because we do not
cannam@95 11144 # link with -lc, and that would cause any symbols used from libc to
cannam@95 11145 # always be unresolved, which means just about no library would
cannam@95 11146 # ever link correctly. If we're not using GNU ld we use -z text
cannam@95 11147 # though, which does catch some bad symbols but isn't as heavy-handed
cannam@95 11148 # as -z defs.
cannam@95 11149 no_undefined_flag='${wl}-z,text'
cannam@95 11150 allow_undefined_flag='${wl}-z,nodefs'
cannam@95 11151 archive_cmds_need_lc=no
cannam@95 11152 hardcode_shlibpath_var=no
cannam@95 11153 hardcode_libdir_flag_spec='${wl}-R,$libdir'
cannam@95 11154 hardcode_libdir_separator=':'
cannam@95 11155 link_all_deplibs=yes
cannam@95 11156 export_dynamic_flag_spec='${wl}-Bexport'
cannam@95 11157 runpath_var='LD_RUN_PATH'
cannam@95 11158
cannam@95 11159 if test "$GCC" = yes; then
cannam@95 11160 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 11161 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 11162 else
cannam@95 11163 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 11164 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 11165 fi
cannam@95 11166 ;;
cannam@95 11167
cannam@95 11168 uts4*)
cannam@95 11169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@95 11170 hardcode_libdir_flag_spec='-L$libdir'
cannam@95 11171 hardcode_shlibpath_var=no
cannam@95 11172 ;;
cannam@95 11173
cannam@95 11174 *)
cannam@95 11175 ld_shlibs=no
cannam@95 11176 ;;
cannam@95 11177 esac
cannam@95 11178
cannam@95 11179 if test x$host_vendor = xsni; then
cannam@95 11180 case $host in
cannam@95 11181 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@95 11182 export_dynamic_flag_spec='${wl}-Blargedynsym'
cannam@95 11183 ;;
cannam@95 11184 esac
cannam@95 11185 fi
cannam@95 11186 fi
cannam@95 11187
cannam@95 11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cannam@95 11189 $as_echo "$ld_shlibs" >&6; }
cannam@95 11190 test "$ld_shlibs" = no && can_build_shared=no
cannam@95 11191
cannam@95 11192 with_gnu_ld=$with_gnu_ld
cannam@95 11193
cannam@95 11194
cannam@95 11195
cannam@95 11196
cannam@95 11197
cannam@95 11198
cannam@95 11199
cannam@95 11200
cannam@95 11201
cannam@95 11202
cannam@95 11203
cannam@95 11204
cannam@95 11205
cannam@95 11206
cannam@95 11207
cannam@95 11208 #
cannam@95 11209 # Do we need to explicitly link libc?
cannam@95 11210 #
cannam@95 11211 case "x$archive_cmds_need_lc" in
cannam@95 11212 x|xyes)
cannam@95 11213 # Assume -lc should be added
cannam@95 11214 archive_cmds_need_lc=yes
cannam@95 11215
cannam@95 11216 if test "$enable_shared" = yes && test "$GCC" = yes; then
cannam@95 11217 case $archive_cmds in
cannam@95 11218 *'~'*)
cannam@95 11219 # FIXME: we may have to deal with multi-command sequences.
cannam@95 11220 ;;
cannam@95 11221 '$CC '*)
cannam@95 11222 # Test whether the compiler implicitly links with -lc since on some
cannam@95 11223 # systems, -lgcc has to come before -lc. If gcc already passes -lc
cannam@95 11224 # to ld, don't add -lc before -lgcc.
cannam@95 11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cannam@95 11226 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cannam@95 11227 if ${lt_cv_archive_cmds_need_lc+:} false; then :
cannam@95 11228 $as_echo_n "(cached) " >&6
cannam@95 11229 else
cannam@95 11230 $RM conftest*
cannam@95 11231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@95 11232
cannam@95 11233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@95 11234 (eval $ac_compile) 2>&5
cannam@95 11235 ac_status=$?
cannam@95 11236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 11237 test $ac_status = 0; } 2>conftest.err; then
cannam@95 11238 soname=conftest
cannam@95 11239 lib=conftest
cannam@95 11240 libobjs=conftest.$ac_objext
cannam@95 11241 deplibs=
cannam@95 11242 wl=$lt_prog_compiler_wl
cannam@95 11243 pic_flag=$lt_prog_compiler_pic
cannam@95 11244 compiler_flags=-v
cannam@95 11245 linker_flags=-v
cannam@95 11246 verstring=
cannam@95 11247 output_objdir=.
cannam@95 11248 libname=conftest
cannam@95 11249 lt_save_allow_undefined_flag=$allow_undefined_flag
cannam@95 11250 allow_undefined_flag=
cannam@95 11251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cannam@95 11252 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
cannam@95 11253 ac_status=$?
cannam@95 11254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 11255 test $ac_status = 0; }
cannam@95 11256 then
cannam@95 11257 lt_cv_archive_cmds_need_lc=no
cannam@95 11258 else
cannam@95 11259 lt_cv_archive_cmds_need_lc=yes
cannam@95 11260 fi
cannam@95 11261 allow_undefined_flag=$lt_save_allow_undefined_flag
cannam@95 11262 else
cannam@95 11263 cat conftest.err 1>&5
cannam@95 11264 fi
cannam@95 11265 $RM conftest*
cannam@95 11266
cannam@95 11267 fi
cannam@95 11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
cannam@95 11269 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
cannam@95 11270 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cannam@95 11271 ;;
cannam@95 11272 esac
cannam@95 11273 fi
cannam@95 11274 ;;
cannam@95 11275 esac
cannam@95 11276
cannam@95 11277
cannam@95 11278
cannam@95 11279
cannam@95 11280
cannam@95 11281
cannam@95 11282
cannam@95 11283
cannam@95 11284
cannam@95 11285
cannam@95 11286
cannam@95 11287
cannam@95 11288
cannam@95 11289
cannam@95 11290
cannam@95 11291
cannam@95 11292
cannam@95 11293
cannam@95 11294
cannam@95 11295
cannam@95 11296
cannam@95 11297
cannam@95 11298
cannam@95 11299
cannam@95 11300
cannam@95 11301
cannam@95 11302
cannam@95 11303
cannam@95 11304
cannam@95 11305
cannam@95 11306
cannam@95 11307
cannam@95 11308
cannam@95 11309
cannam@95 11310
cannam@95 11311
cannam@95 11312
cannam@95 11313
cannam@95 11314
cannam@95 11315
cannam@95 11316
cannam@95 11317
cannam@95 11318
cannam@95 11319
cannam@95 11320
cannam@95 11321
cannam@95 11322
cannam@95 11323
cannam@95 11324
cannam@95 11325
cannam@95 11326
cannam@95 11327
cannam@95 11328
cannam@95 11329
cannam@95 11330
cannam@95 11331
cannam@95 11332
cannam@95 11333
cannam@95 11334
cannam@95 11335
cannam@95 11336
cannam@95 11337
cannam@95 11338
cannam@95 11339
cannam@95 11340
cannam@95 11341
cannam@95 11342
cannam@95 11343
cannam@95 11344
cannam@95 11345
cannam@95 11346
cannam@95 11347
cannam@95 11348
cannam@95 11349
cannam@95 11350
cannam@95 11351
cannam@95 11352
cannam@95 11353
cannam@95 11354
cannam@95 11355
cannam@95 11356
cannam@95 11357
cannam@95 11358
cannam@95 11359
cannam@95 11360
cannam@95 11361
cannam@95 11362
cannam@95 11363
cannam@95 11364
cannam@95 11365
cannam@95 11366
cannam@95 11367
cannam@95 11368
cannam@95 11369
cannam@95 11370
cannam@95 11371
cannam@95 11372
cannam@95 11373
cannam@95 11374
cannam@95 11375
cannam@95 11376
cannam@95 11377
cannam@95 11378
cannam@95 11379
cannam@95 11380
cannam@95 11381
cannam@95 11382
cannam@95 11383
cannam@95 11384
cannam@95 11385
cannam@95 11386
cannam@95 11387
cannam@95 11388
cannam@95 11389
cannam@95 11390
cannam@95 11391
cannam@95 11392
cannam@95 11393
cannam@95 11394
cannam@95 11395
cannam@95 11396
cannam@95 11397
cannam@95 11398
cannam@95 11399
cannam@95 11400
cannam@95 11401
cannam@95 11402
cannam@95 11403
cannam@95 11404
cannam@95 11405
cannam@95 11406
cannam@95 11407
cannam@95 11408
cannam@95 11409
cannam@95 11410
cannam@95 11411
cannam@95 11412
cannam@95 11413
cannam@95 11414
cannam@95 11415
cannam@95 11416
cannam@95 11417
cannam@95 11418
cannam@95 11419
cannam@95 11420
cannam@95 11421
cannam@95 11422
cannam@95 11423
cannam@95 11424
cannam@95 11425
cannam@95 11426
cannam@95 11427
cannam@95 11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cannam@95 11429 $as_echo_n "checking dynamic linker characteristics... " >&6; }
cannam@95 11430
cannam@95 11431 if test "$GCC" = yes; then
cannam@95 11432 case $host_os in
cannam@95 11433 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
cannam@95 11434 *) lt_awk_arg="/^libraries:/" ;;
cannam@95 11435 esac
cannam@95 11436 case $host_os in
cannam@95 11437 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
cannam@95 11438 *) lt_sed_strip_eq="s,=/,/,g" ;;
cannam@95 11439 esac
cannam@95 11440 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
cannam@95 11441 case $lt_search_path_spec in
cannam@95 11442 *\;*)
cannam@95 11443 # if the path contains ";" then we assume it to be the separator
cannam@95 11444 # otherwise default to the standard path separator (i.e. ":") - it is
cannam@95 11445 # assumed that no part of a normal pathname contains ";" but that should
cannam@95 11446 # okay in the real world where ";" in dirpaths is itself problematic.
cannam@95 11447 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
cannam@95 11448 ;;
cannam@95 11449 *)
cannam@95 11450 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
cannam@95 11451 ;;
cannam@95 11452 esac
cannam@95 11453 # Ok, now we have the path, separated by spaces, we can step through it
cannam@95 11454 # and add multilib dir if necessary.
cannam@95 11455 lt_tmp_lt_search_path_spec=
cannam@95 11456 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
cannam@95 11457 for lt_sys_path in $lt_search_path_spec; do
cannam@95 11458 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
cannam@95 11459 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
cannam@95 11460 else
cannam@95 11461 test -d "$lt_sys_path" && \
cannam@95 11462 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
cannam@95 11463 fi
cannam@95 11464 done
cannam@95 11465 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cannam@95 11466 BEGIN {RS=" "; FS="/|\n";} {
cannam@95 11467 lt_foo="";
cannam@95 11468 lt_count=0;
cannam@95 11469 for (lt_i = NF; lt_i > 0; lt_i--) {
cannam@95 11470 if ($lt_i != "" && $lt_i != ".") {
cannam@95 11471 if ($lt_i == "..") {
cannam@95 11472 lt_count++;
cannam@95 11473 } else {
cannam@95 11474 if (lt_count == 0) {
cannam@95 11475 lt_foo="/" $lt_i lt_foo;
cannam@95 11476 } else {
cannam@95 11477 lt_count--;
cannam@95 11478 }
cannam@95 11479 }
cannam@95 11480 }
cannam@95 11481 }
cannam@95 11482 if (lt_foo != "") { lt_freq[lt_foo]++; }
cannam@95 11483 if (lt_freq[lt_foo] == 1) { print lt_foo; }
cannam@95 11484 }'`
cannam@95 11485 # AWK program above erroneously prepends '/' to C:/dos/paths
cannam@95 11486 # for these hosts.
cannam@95 11487 case $host_os in
cannam@95 11488 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
cannam@95 11489 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
cannam@95 11490 esac
cannam@95 11491 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cannam@95 11492 else
cannam@95 11493 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
cannam@95 11494 fi
cannam@95 11495 library_names_spec=
cannam@95 11496 libname_spec='lib$name'
cannam@95 11497 soname_spec=
cannam@95 11498 shrext_cmds=".so"
cannam@95 11499 postinstall_cmds=
cannam@95 11500 postuninstall_cmds=
cannam@95 11501 finish_cmds=
cannam@95 11502 finish_eval=
cannam@95 11503 shlibpath_var=
cannam@95 11504 shlibpath_overrides_runpath=unknown
cannam@95 11505 version_type=none
cannam@95 11506 dynamic_linker="$host_os ld.so"
cannam@95 11507 sys_lib_dlsearch_path_spec="/lib /usr/lib"
cannam@95 11508 need_lib_prefix=unknown
cannam@95 11509 hardcode_into_libs=no
cannam@95 11510
cannam@95 11511 # when you set need_version to no, make sure it does not cause -set_version
cannam@95 11512 # flags to be left without arguments
cannam@95 11513 need_version=unknown
cannam@95 11514
cannam@95 11515 case $host_os in
cannam@95 11516 aix3*)
cannam@95 11517 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 11518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
cannam@95 11519 shlibpath_var=LIBPATH
cannam@95 11520
cannam@95 11521 # AIX 3 has no versioning support, so we append a major version to the name.
cannam@95 11522 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 11523 ;;
cannam@95 11524
cannam@95 11525 aix[4-9]*)
cannam@95 11526 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 11527 need_lib_prefix=no
cannam@95 11528 need_version=no
cannam@95 11529 hardcode_into_libs=yes
cannam@95 11530 if test "$host_cpu" = ia64; then
cannam@95 11531 # AIX 5 supports IA64
cannam@95 11532 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
cannam@95 11533 shlibpath_var=LD_LIBRARY_PATH
cannam@95 11534 else
cannam@95 11535 # With GCC up to 2.95.x, collect2 would create an import file
cannam@95 11536 # for dependence libraries. The import file would start with
cannam@95 11537 # the line `#! .'. This would cause the generated library to
cannam@95 11538 # depend on `.', always an invalid library. This was fixed in
cannam@95 11539 # development snapshots of GCC prior to 3.0.
cannam@95 11540 case $host_os in
cannam@95 11541 aix4 | aix4.[01] | aix4.[01].*)
cannam@95 11542 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
cannam@95 11543 echo ' yes '
cannam@95 11544 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
cannam@95 11545 :
cannam@95 11546 else
cannam@95 11547 can_build_shared=no
cannam@95 11548 fi
cannam@95 11549 ;;
cannam@95 11550 esac
cannam@95 11551 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
cannam@95 11552 # soname into executable. Probably we can add versioning support to
cannam@95 11553 # collect2, so additional links can be useful in future.
cannam@95 11554 if test "$aix_use_runtimelinking" = yes; then
cannam@95 11555 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
cannam@95 11556 # instead of lib<name>.a to let people know that these are not
cannam@95 11557 # typical AIX shared libraries.
cannam@95 11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 11559 else
cannam@95 11560 # We preserve .a as extension for shared libraries through AIX4.2
cannam@95 11561 # and later when we are not doing run time linking.
cannam@95 11562 library_names_spec='${libname}${release}.a $libname.a'
cannam@95 11563 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 11564 fi
cannam@95 11565 shlibpath_var=LIBPATH
cannam@95 11566 fi
cannam@95 11567 ;;
cannam@95 11568
cannam@95 11569 amigaos*)
cannam@95 11570 case $host_cpu in
cannam@95 11571 powerpc)
cannam@95 11572 # Since July 2007 AmigaOS4 officially supports .so libraries.
cannam@95 11573 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
cannam@95 11574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 11575 ;;
cannam@95 11576 m68k)
cannam@95 11577 library_names_spec='$libname.ixlibrary $libname.a'
cannam@95 11578 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cannam@95 11579 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cannam@95 11580 ;;
cannam@95 11581 esac
cannam@95 11582 ;;
cannam@95 11583
cannam@95 11584 beos*)
cannam@95 11585 library_names_spec='${libname}${shared_ext}'
cannam@95 11586 dynamic_linker="$host_os ld.so"
cannam@95 11587 shlibpath_var=LIBRARY_PATH
cannam@95 11588 ;;
cannam@95 11589
cannam@95 11590 bsdi[45]*)
cannam@95 11591 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 11592 need_version=no
cannam@95 11593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 11594 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 11595 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
cannam@95 11596 shlibpath_var=LD_LIBRARY_PATH
cannam@95 11597 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
cannam@95 11598 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
cannam@95 11599 # the default ld.so.conf also contains /usr/contrib/lib and
cannam@95 11600 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
cannam@95 11601 # libtool to hard-code these into programs
cannam@95 11602 ;;
cannam@95 11603
cannam@95 11604 cygwin* | mingw* | pw32* | cegcc*)
cannam@95 11605 version_type=windows
cannam@95 11606 shrext_cmds=".dll"
cannam@95 11607 need_version=no
cannam@95 11608 need_lib_prefix=no
cannam@95 11609
cannam@95 11610 case $GCC,$cc_basename in
cannam@95 11611 yes,*)
cannam@95 11612 # gcc
cannam@95 11613 library_names_spec='$libname.dll.a'
cannam@95 11614 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@95 11615 postinstall_cmds='base_file=`basename \${file}`~
cannam@95 11616 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
cannam@95 11617 dldir=$destdir/`dirname \$dlpath`~
cannam@95 11618 test -d \$dldir || mkdir -p \$dldir~
cannam@95 11619 $install_prog $dir/$dlname \$dldir/$dlname~
cannam@95 11620 chmod a+x \$dldir/$dlname~
cannam@95 11621 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
cannam@95 11622 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
cannam@95 11623 fi'
cannam@95 11624 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@95 11625 dlpath=$dir/\$dldll~
cannam@95 11626 $RM \$dlpath'
cannam@95 11627 shlibpath_overrides_runpath=yes
cannam@95 11628
cannam@95 11629 case $host_os in
cannam@95 11630 cygwin*)
cannam@95 11631 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cannam@95 11632 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@95 11633
cannam@95 11634 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cannam@95 11635 ;;
cannam@95 11636 mingw* | cegcc*)
cannam@95 11637 # MinGW DLLs use traditional 'lib' prefix
cannam@95 11638 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@95 11639 ;;
cannam@95 11640 pw32*)
cannam@95 11641 # pw32 DLLs use 'pw' prefix rather than 'lib'
cannam@95 11642 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@95 11643 ;;
cannam@95 11644 esac
cannam@95 11645 dynamic_linker='Win32 ld.exe'
cannam@95 11646 ;;
cannam@95 11647
cannam@95 11648 *,cl*)
cannam@95 11649 # Native MSVC
cannam@95 11650 libname_spec='$name'
cannam@95 11651 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@95 11652 library_names_spec='${libname}.dll.lib'
cannam@95 11653
cannam@95 11654 case $build_os in
cannam@95 11655 mingw*)
cannam@95 11656 sys_lib_search_path_spec=
cannam@95 11657 lt_save_ifs=$IFS
cannam@95 11658 IFS=';'
cannam@95 11659 for lt_path in $LIB
cannam@95 11660 do
cannam@95 11661 IFS=$lt_save_ifs
cannam@95 11662 # Let DOS variable expansion print the short 8.3 style file name.
cannam@95 11663 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
cannam@95 11664 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
cannam@95 11665 done
cannam@95 11666 IFS=$lt_save_ifs
cannam@95 11667 # Convert to MSYS style.
cannam@95 11668 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
cannam@95 11669 ;;
cannam@95 11670 cygwin*)
cannam@95 11671 # Convert to unix form, then to dos form, then back to unix form
cannam@95 11672 # but this time dos style (no spaces!) so that the unix form looks
cannam@95 11673 # like /cygdrive/c/PROGRA~1:/cygdr...
cannam@95 11674 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
cannam@95 11675 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
cannam@95 11676 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@95 11677 ;;
cannam@95 11678 *)
cannam@95 11679 sys_lib_search_path_spec="$LIB"
cannam@95 11680 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
cannam@95 11681 # It is most probably a Windows format PATH.
cannam@95 11682 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@95 11683 else
cannam@95 11684 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@95 11685 fi
cannam@95 11686 # FIXME: find the short name or the path components, as spaces are
cannam@95 11687 # common. (e.g. "Program Files" -> "PROGRA~1")
cannam@95 11688 ;;
cannam@95 11689 esac
cannam@95 11690
cannam@95 11691 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@95 11692 postinstall_cmds='base_file=`basename \${file}`~
cannam@95 11693 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
cannam@95 11694 dldir=$destdir/`dirname \$dlpath`~
cannam@95 11695 test -d \$dldir || mkdir -p \$dldir~
cannam@95 11696 $install_prog $dir/$dlname \$dldir/$dlname'
cannam@95 11697 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@95 11698 dlpath=$dir/\$dldll~
cannam@95 11699 $RM \$dlpath'
cannam@95 11700 shlibpath_overrides_runpath=yes
cannam@95 11701 dynamic_linker='Win32 link.exe'
cannam@95 11702 ;;
cannam@95 11703
cannam@95 11704 *)
cannam@95 11705 # Assume MSVC wrapper
cannam@95 11706 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cannam@95 11707 dynamic_linker='Win32 ld.exe'
cannam@95 11708 ;;
cannam@95 11709 esac
cannam@95 11710 # FIXME: first we should search . and the directory the executable is in
cannam@95 11711 shlibpath_var=PATH
cannam@95 11712 ;;
cannam@95 11713
cannam@95 11714 darwin* | rhapsody*)
cannam@95 11715 dynamic_linker="$host_os dyld"
cannam@95 11716 version_type=darwin
cannam@95 11717 need_lib_prefix=no
cannam@95 11718 need_version=no
cannam@95 11719 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
cannam@95 11720 soname_spec='${libname}${release}${major}$shared_ext'
cannam@95 11721 shlibpath_overrides_runpath=yes
cannam@95 11722 shlibpath_var=DYLD_LIBRARY_PATH
cannam@95 11723 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
cannam@95 11724
cannam@95 11725 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
cannam@95 11726 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
cannam@95 11727 ;;
cannam@95 11728
cannam@95 11729 dgux*)
cannam@95 11730 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 11731 need_lib_prefix=no
cannam@95 11732 need_version=no
cannam@95 11733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
cannam@95 11734 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 11735 shlibpath_var=LD_LIBRARY_PATH
cannam@95 11736 ;;
cannam@95 11737
cannam@95 11738 freebsd* | dragonfly*)
cannam@95 11739 # DragonFly does not have aout. When/if they implement a new
cannam@95 11740 # versioning mechanism, adjust this.
cannam@95 11741 if test -x /usr/bin/objformat; then
cannam@95 11742 objformat=`/usr/bin/objformat`
cannam@95 11743 else
cannam@95 11744 case $host_os in
cannam@95 11745 freebsd[23].*) objformat=aout ;;
cannam@95 11746 *) objformat=elf ;;
cannam@95 11747 esac
cannam@95 11748 fi
cannam@95 11749 version_type=freebsd-$objformat
cannam@95 11750 case $version_type in
cannam@95 11751 freebsd-elf*)
cannam@95 11752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@95 11753 need_version=no
cannam@95 11754 need_lib_prefix=no
cannam@95 11755 ;;
cannam@95 11756 freebsd-*)
cannam@95 11757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
cannam@95 11758 need_version=yes
cannam@95 11759 ;;
cannam@95 11760 esac
cannam@95 11761 shlibpath_var=LD_LIBRARY_PATH
cannam@95 11762 case $host_os in
cannam@95 11763 freebsd2.*)
cannam@95 11764 shlibpath_overrides_runpath=yes
cannam@95 11765 ;;
cannam@95 11766 freebsd3.[01]* | freebsdelf3.[01]*)
cannam@95 11767 shlibpath_overrides_runpath=yes
cannam@95 11768 hardcode_into_libs=yes
cannam@95 11769 ;;
cannam@95 11770 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
cannam@95 11771 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
cannam@95 11772 shlibpath_overrides_runpath=no
cannam@95 11773 hardcode_into_libs=yes
cannam@95 11774 ;;
cannam@95 11775 *) # from 4.6 on, and DragonFly
cannam@95 11776 shlibpath_overrides_runpath=yes
cannam@95 11777 hardcode_into_libs=yes
cannam@95 11778 ;;
cannam@95 11779 esac
cannam@95 11780 ;;
cannam@95 11781
cannam@95 11782 haiku*)
cannam@95 11783 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 11784 need_lib_prefix=no
cannam@95 11785 need_version=no
cannam@95 11786 dynamic_linker="$host_os runtime_loader"
cannam@95 11787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
cannam@95 11788 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 11789 shlibpath_var=LIBRARY_PATH
cannam@95 11790 shlibpath_overrides_runpath=yes
cannam@95 11791 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
cannam@95 11792 hardcode_into_libs=yes
cannam@95 11793 ;;
cannam@95 11794
cannam@95 11795 hpux9* | hpux10* | hpux11*)
cannam@95 11796 # Give a soname corresponding to the major version so that dld.sl refuses to
cannam@95 11797 # link against other versions.
cannam@95 11798 version_type=sunos
cannam@95 11799 need_lib_prefix=no
cannam@95 11800 need_version=no
cannam@95 11801 case $host_cpu in
cannam@95 11802 ia64*)
cannam@95 11803 shrext_cmds='.so'
cannam@95 11804 hardcode_into_libs=yes
cannam@95 11805 dynamic_linker="$host_os dld.so"
cannam@95 11806 shlibpath_var=LD_LIBRARY_PATH
cannam@95 11807 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@95 11808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 11809 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 11810 if test "X$HPUX_IA64_MODE" = X32; then
cannam@95 11811 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
cannam@95 11812 else
cannam@95 11813 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
cannam@95 11814 fi
cannam@95 11815 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@95 11816 ;;
cannam@95 11817 hppa*64*)
cannam@95 11818 shrext_cmds='.sl'
cannam@95 11819 hardcode_into_libs=yes
cannam@95 11820 dynamic_linker="$host_os dld.sl"
cannam@95 11821 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
cannam@95 11822 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@95 11823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 11824 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 11825 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
cannam@95 11826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@95 11827 ;;
cannam@95 11828 *)
cannam@95 11829 shrext_cmds='.sl'
cannam@95 11830 dynamic_linker="$host_os dld.sl"
cannam@95 11831 shlibpath_var=SHLIB_PATH
cannam@95 11832 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cannam@95 11833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 11834 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 11835 ;;
cannam@95 11836 esac
cannam@95 11837 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cannam@95 11838 postinstall_cmds='chmod 555 $lib'
cannam@95 11839 # or fails outright, so override atomically:
cannam@95 11840 install_override_mode=555
cannam@95 11841 ;;
cannam@95 11842
cannam@95 11843 interix[3-9]*)
cannam@95 11844 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 11845 need_lib_prefix=no
cannam@95 11846 need_version=no
cannam@95 11847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@95 11848 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 11849 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
cannam@95 11850 shlibpath_var=LD_LIBRARY_PATH
cannam@95 11851 shlibpath_overrides_runpath=no
cannam@95 11852 hardcode_into_libs=yes
cannam@95 11853 ;;
cannam@95 11854
cannam@95 11855 irix5* | irix6* | nonstopux*)
cannam@95 11856 case $host_os in
cannam@95 11857 nonstopux*) version_type=nonstopux ;;
cannam@95 11858 *)
cannam@95 11859 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@95 11860 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 11861 else
cannam@95 11862 version_type=irix
cannam@95 11863 fi ;;
cannam@95 11864 esac
cannam@95 11865 need_lib_prefix=no
cannam@95 11866 need_version=no
cannam@95 11867 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 11868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@95 11869 case $host_os in
cannam@95 11870 irix5* | nonstopux*)
cannam@95 11871 libsuff= shlibsuff=
cannam@95 11872 ;;
cannam@95 11873 *)
cannam@95 11874 case $LD in # libtool.m4 will add one of these switches to LD
cannam@95 11875 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
cannam@95 11876 libsuff= shlibsuff= libmagic=32-bit;;
cannam@95 11877 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
cannam@95 11878 libsuff=32 shlibsuff=N32 libmagic=N32;;
cannam@95 11879 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
cannam@95 11880 libsuff=64 shlibsuff=64 libmagic=64-bit;;
cannam@95 11881 *) libsuff= shlibsuff= libmagic=never-match;;
cannam@95 11882 esac
cannam@95 11883 ;;
cannam@95 11884 esac
cannam@95 11885 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
cannam@95 11886 shlibpath_overrides_runpath=no
cannam@95 11887 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
cannam@95 11888 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
cannam@95 11889 hardcode_into_libs=yes
cannam@95 11890 ;;
cannam@95 11891
cannam@95 11892 # No shared lib support for Linux oldld, aout, or coff.
cannam@95 11893 linux*oldld* | linux*aout* | linux*coff*)
cannam@95 11894 dynamic_linker=no
cannam@95 11895 ;;
cannam@95 11896
cannam@95 11897 # This must be glibc/ELF.
cannam@95 11898 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@95 11899 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 11900 need_lib_prefix=no
cannam@95 11901 need_version=no
cannam@95 11902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 11903 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 11904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
cannam@95 11905 shlibpath_var=LD_LIBRARY_PATH
cannam@95 11906 shlibpath_overrides_runpath=no
cannam@95 11907
cannam@95 11908 # Some binutils ld are patched to set DT_RUNPATH
cannam@95 11909 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cannam@95 11910 $as_echo_n "(cached) " >&6
cannam@95 11911 else
cannam@95 11912 lt_cv_shlibpath_overrides_runpath=no
cannam@95 11913 save_LDFLAGS=$LDFLAGS
cannam@95 11914 save_libdir=$libdir
cannam@95 11915 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
cannam@95 11916 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
cannam@95 11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 11918 /* end confdefs.h. */
cannam@95 11919
cannam@95 11920 int
cannam@95 11921 main ()
cannam@95 11922 {
cannam@95 11923
cannam@95 11924 ;
cannam@95 11925 return 0;
cannam@95 11926 }
cannam@95 11927 _ACEOF
cannam@95 11928 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 11929 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cannam@95 11930 lt_cv_shlibpath_overrides_runpath=yes
cannam@95 11931 fi
cannam@95 11932 fi
cannam@95 11933 rm -f core conftest.err conftest.$ac_objext \
cannam@95 11934 conftest$ac_exeext conftest.$ac_ext
cannam@95 11935 LDFLAGS=$save_LDFLAGS
cannam@95 11936 libdir=$save_libdir
cannam@95 11937
cannam@95 11938 fi
cannam@95 11939
cannam@95 11940 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cannam@95 11941
cannam@95 11942 # This implies no fast_install, which is unacceptable.
cannam@95 11943 # Some rework will be needed to allow for fast_install
cannam@95 11944 # before this can be enabled.
cannam@95 11945 hardcode_into_libs=yes
cannam@95 11946
cannam@95 11947 # Append ld.so.conf contents to the search path
cannam@95 11948 if test -f /etc/ld.so.conf; then
cannam@95 11949 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
cannam@95 11950 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
cannam@95 11951 fi
cannam@95 11952
cannam@95 11953 # We used to test for /lib/ld.so.1 and disable shared libraries on
cannam@95 11954 # powerpc, because MkLinux only supported shared libraries with the
cannam@95 11955 # GNU dynamic linker. Since this was broken with cross compilers,
cannam@95 11956 # most powerpc-linux boxes support dynamic linking these days and
cannam@95 11957 # people can always --disable-shared, the test was removed, and we
cannam@95 11958 # assume the GNU/Linux dynamic linker is in use.
cannam@95 11959 dynamic_linker='GNU/Linux ld.so'
cannam@95 11960 ;;
cannam@95 11961
cannam@95 11962 netbsdelf*-gnu)
cannam@95 11963 version_type=linux
cannam@95 11964 need_lib_prefix=no
cannam@95 11965 need_version=no
cannam@95 11966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@95 11967 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 11968 shlibpath_var=LD_LIBRARY_PATH
cannam@95 11969 shlibpath_overrides_runpath=no
cannam@95 11970 hardcode_into_libs=yes
cannam@95 11971 dynamic_linker='NetBSD ld.elf_so'
cannam@95 11972 ;;
cannam@95 11973
cannam@95 11974 netbsd*)
cannam@95 11975 version_type=sunos
cannam@95 11976 need_lib_prefix=no
cannam@95 11977 need_version=no
cannam@95 11978 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@95 11979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@95 11980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@95 11981 dynamic_linker='NetBSD (a.out) ld.so'
cannam@95 11982 else
cannam@95 11983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@95 11984 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 11985 dynamic_linker='NetBSD ld.elf_so'
cannam@95 11986 fi
cannam@95 11987 shlibpath_var=LD_LIBRARY_PATH
cannam@95 11988 shlibpath_overrides_runpath=yes
cannam@95 11989 hardcode_into_libs=yes
cannam@95 11990 ;;
cannam@95 11991
cannam@95 11992 newsos6)
cannam@95 11993 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 11994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 11995 shlibpath_var=LD_LIBRARY_PATH
cannam@95 11996 shlibpath_overrides_runpath=yes
cannam@95 11997 ;;
cannam@95 11998
cannam@95 11999 *nto* | *qnx*)
cannam@95 12000 version_type=qnx
cannam@95 12001 need_lib_prefix=no
cannam@95 12002 need_version=no
cannam@95 12003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 12004 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 12005 shlibpath_var=LD_LIBRARY_PATH
cannam@95 12006 shlibpath_overrides_runpath=no
cannam@95 12007 hardcode_into_libs=yes
cannam@95 12008 dynamic_linker='ldqnx.so'
cannam@95 12009 ;;
cannam@95 12010
cannam@95 12011 openbsd*)
cannam@95 12012 version_type=sunos
cannam@95 12013 sys_lib_dlsearch_path_spec="/usr/lib"
cannam@95 12014 need_lib_prefix=no
cannam@95 12015 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
cannam@95 12016 case $host_os in
cannam@95 12017 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
cannam@95 12018 *) need_version=no ;;
cannam@95 12019 esac
cannam@95 12020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@95 12021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@95 12022 shlibpath_var=LD_LIBRARY_PATH
cannam@95 12023 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@95 12024 case $host_os in
cannam@95 12025 openbsd2.[89] | openbsd2.[89].*)
cannam@95 12026 shlibpath_overrides_runpath=no
cannam@95 12027 ;;
cannam@95 12028 *)
cannam@95 12029 shlibpath_overrides_runpath=yes
cannam@95 12030 ;;
cannam@95 12031 esac
cannam@95 12032 else
cannam@95 12033 shlibpath_overrides_runpath=yes
cannam@95 12034 fi
cannam@95 12035 ;;
cannam@95 12036
cannam@95 12037 os2*)
cannam@95 12038 libname_spec='$name'
cannam@95 12039 shrext_cmds=".dll"
cannam@95 12040 need_lib_prefix=no
cannam@95 12041 library_names_spec='$libname${shared_ext} $libname.a'
cannam@95 12042 dynamic_linker='OS/2 ld.exe'
cannam@95 12043 shlibpath_var=LIBPATH
cannam@95 12044 ;;
cannam@95 12045
cannam@95 12046 osf3* | osf4* | osf5*)
cannam@95 12047 version_type=osf
cannam@95 12048 need_lib_prefix=no
cannam@95 12049 need_version=no
cannam@95 12050 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 12051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 12052 shlibpath_var=LD_LIBRARY_PATH
cannam@95 12053 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cannam@95 12054 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
cannam@95 12055 ;;
cannam@95 12056
cannam@95 12057 rdos*)
cannam@95 12058 dynamic_linker=no
cannam@95 12059 ;;
cannam@95 12060
cannam@95 12061 solaris*)
cannam@95 12062 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 12063 need_lib_prefix=no
cannam@95 12064 need_version=no
cannam@95 12065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 12066 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 12067 shlibpath_var=LD_LIBRARY_PATH
cannam@95 12068 shlibpath_overrides_runpath=yes
cannam@95 12069 hardcode_into_libs=yes
cannam@95 12070 # ldd complains unless libraries are executable
cannam@95 12071 postinstall_cmds='chmod +x $lib'
cannam@95 12072 ;;
cannam@95 12073
cannam@95 12074 sunos4*)
cannam@95 12075 version_type=sunos
cannam@95 12076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@95 12077 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
cannam@95 12078 shlibpath_var=LD_LIBRARY_PATH
cannam@95 12079 shlibpath_overrides_runpath=yes
cannam@95 12080 if test "$with_gnu_ld" = yes; then
cannam@95 12081 need_lib_prefix=no
cannam@95 12082 fi
cannam@95 12083 need_version=yes
cannam@95 12084 ;;
cannam@95 12085
cannam@95 12086 sysv4 | sysv4.3*)
cannam@95 12087 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 12088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 12089 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 12090 shlibpath_var=LD_LIBRARY_PATH
cannam@95 12091 case $host_vendor in
cannam@95 12092 sni)
cannam@95 12093 shlibpath_overrides_runpath=no
cannam@95 12094 need_lib_prefix=no
cannam@95 12095 runpath_var=LD_RUN_PATH
cannam@95 12096 ;;
cannam@95 12097 siemens)
cannam@95 12098 need_lib_prefix=no
cannam@95 12099 ;;
cannam@95 12100 motorola)
cannam@95 12101 need_lib_prefix=no
cannam@95 12102 need_version=no
cannam@95 12103 shlibpath_overrides_runpath=no
cannam@95 12104 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
cannam@95 12105 ;;
cannam@95 12106 esac
cannam@95 12107 ;;
cannam@95 12108
cannam@95 12109 sysv4*MP*)
cannam@95 12110 if test -d /usr/nec ;then
cannam@95 12111 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 12112 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
cannam@95 12113 soname_spec='$libname${shared_ext}.$major'
cannam@95 12114 shlibpath_var=LD_LIBRARY_PATH
cannam@95 12115 fi
cannam@95 12116 ;;
cannam@95 12117
cannam@95 12118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cannam@95 12119 version_type=freebsd-elf
cannam@95 12120 need_lib_prefix=no
cannam@95 12121 need_version=no
cannam@95 12122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@95 12123 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 12124 shlibpath_var=LD_LIBRARY_PATH
cannam@95 12125 shlibpath_overrides_runpath=yes
cannam@95 12126 hardcode_into_libs=yes
cannam@95 12127 if test "$with_gnu_ld" = yes; then
cannam@95 12128 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
cannam@95 12129 else
cannam@95 12130 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
cannam@95 12131 case $host_os in
cannam@95 12132 sco3.2v5*)
cannam@95 12133 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
cannam@95 12134 ;;
cannam@95 12135 esac
cannam@95 12136 fi
cannam@95 12137 sys_lib_dlsearch_path_spec='/usr/lib'
cannam@95 12138 ;;
cannam@95 12139
cannam@95 12140 tpf*)
cannam@95 12141 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cannam@95 12142 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 12143 need_lib_prefix=no
cannam@95 12144 need_version=no
cannam@95 12145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 12146 shlibpath_var=LD_LIBRARY_PATH
cannam@95 12147 shlibpath_overrides_runpath=no
cannam@95 12148 hardcode_into_libs=yes
cannam@95 12149 ;;
cannam@95 12150
cannam@95 12151 uts4*)
cannam@95 12152 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 12153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 12154 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 12155 shlibpath_var=LD_LIBRARY_PATH
cannam@95 12156 ;;
cannam@95 12157
cannam@95 12158 *)
cannam@95 12159 dynamic_linker=no
cannam@95 12160 ;;
cannam@95 12161 esac
cannam@95 12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cannam@95 12163 $as_echo "$dynamic_linker" >&6; }
cannam@95 12164 test "$dynamic_linker" = no && can_build_shared=no
cannam@95 12165
cannam@95 12166 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cannam@95 12167 if test "$GCC" = yes; then
cannam@95 12168 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
cannam@95 12169 fi
cannam@95 12170
cannam@95 12171 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
cannam@95 12172 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
cannam@95 12173 fi
cannam@95 12174 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
cannam@95 12175 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
cannam@95 12176 fi
cannam@95 12177
cannam@95 12178
cannam@95 12179
cannam@95 12180
cannam@95 12181
cannam@95 12182
cannam@95 12183
cannam@95 12184
cannam@95 12185
cannam@95 12186
cannam@95 12187
cannam@95 12188
cannam@95 12189
cannam@95 12190
cannam@95 12191
cannam@95 12192
cannam@95 12193
cannam@95 12194
cannam@95 12195
cannam@95 12196
cannam@95 12197
cannam@95 12198
cannam@95 12199
cannam@95 12200
cannam@95 12201
cannam@95 12202
cannam@95 12203
cannam@95 12204
cannam@95 12205
cannam@95 12206
cannam@95 12207
cannam@95 12208
cannam@95 12209
cannam@95 12210
cannam@95 12211
cannam@95 12212
cannam@95 12213
cannam@95 12214
cannam@95 12215
cannam@95 12216
cannam@95 12217
cannam@95 12218
cannam@95 12219
cannam@95 12220
cannam@95 12221
cannam@95 12222
cannam@95 12223
cannam@95 12224
cannam@95 12225
cannam@95 12226
cannam@95 12227
cannam@95 12228
cannam@95 12229
cannam@95 12230
cannam@95 12231
cannam@95 12232
cannam@95 12233
cannam@95 12234
cannam@95 12235
cannam@95 12236
cannam@95 12237
cannam@95 12238
cannam@95 12239
cannam@95 12240
cannam@95 12241
cannam@95 12242
cannam@95 12243
cannam@95 12244
cannam@95 12245
cannam@95 12246
cannam@95 12247
cannam@95 12248
cannam@95 12249
cannam@95 12250
cannam@95 12251
cannam@95 12252
cannam@95 12253
cannam@95 12254
cannam@95 12255
cannam@95 12256
cannam@95 12257
cannam@95 12258
cannam@95 12259
cannam@95 12260
cannam@95 12261
cannam@95 12262
cannam@95 12263
cannam@95 12264
cannam@95 12265
cannam@95 12266
cannam@95 12267
cannam@95 12268
cannam@95 12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cannam@95 12270 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
cannam@95 12271 hardcode_action=
cannam@95 12272 if test -n "$hardcode_libdir_flag_spec" ||
cannam@95 12273 test -n "$runpath_var" ||
cannam@95 12274 test "X$hardcode_automatic" = "Xyes" ; then
cannam@95 12275
cannam@95 12276 # We can hardcode non-existent directories.
cannam@95 12277 if test "$hardcode_direct" != no &&
cannam@95 12278 # If the only mechanism to avoid hardcoding is shlibpath_var, we
cannam@95 12279 # have to relink, otherwise we might link with an installed library
cannam@95 12280 # when we should be linking with a yet-to-be-installed one
cannam@95 12281 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
cannam@95 12282 test "$hardcode_minus_L" != no; then
cannam@95 12283 # Linking always hardcodes the temporary library directory.
cannam@95 12284 hardcode_action=relink
cannam@95 12285 else
cannam@95 12286 # We can link without hardcoding, and we can hardcode nonexisting dirs.
cannam@95 12287 hardcode_action=immediate
cannam@95 12288 fi
cannam@95 12289 else
cannam@95 12290 # We cannot hardcode anything, or else we can only hardcode existing
cannam@95 12291 # directories.
cannam@95 12292 hardcode_action=unsupported
cannam@95 12293 fi
cannam@95 12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cannam@95 12295 $as_echo "$hardcode_action" >&6; }
cannam@95 12296
cannam@95 12297 if test "$hardcode_action" = relink ||
cannam@95 12298 test "$inherit_rpath" = yes; then
cannam@95 12299 # Fast installation is not supported
cannam@95 12300 enable_fast_install=no
cannam@95 12301 elif test "$shlibpath_overrides_runpath" = yes ||
cannam@95 12302 test "$enable_shared" = no; then
cannam@95 12303 # Fast installation is not necessary
cannam@95 12304 enable_fast_install=needless
cannam@95 12305 fi
cannam@95 12306
cannam@95 12307
cannam@95 12308
cannam@95 12309
cannam@95 12310
cannam@95 12311
cannam@95 12312 if test "x$enable_dlopen" != xyes; then
cannam@95 12313 enable_dlopen=unknown
cannam@95 12314 enable_dlopen_self=unknown
cannam@95 12315 enable_dlopen_self_static=unknown
cannam@95 12316 else
cannam@95 12317 lt_cv_dlopen=no
cannam@95 12318 lt_cv_dlopen_libs=
cannam@95 12319
cannam@95 12320 case $host_os in
cannam@95 12321 beos*)
cannam@95 12322 lt_cv_dlopen="load_add_on"
cannam@95 12323 lt_cv_dlopen_libs=
cannam@95 12324 lt_cv_dlopen_self=yes
cannam@95 12325 ;;
cannam@95 12326
cannam@95 12327 mingw* | pw32* | cegcc*)
cannam@95 12328 lt_cv_dlopen="LoadLibrary"
cannam@95 12329 lt_cv_dlopen_libs=
cannam@95 12330 ;;
cannam@95 12331
cannam@95 12332 cygwin*)
cannam@95 12333 lt_cv_dlopen="dlopen"
cannam@95 12334 lt_cv_dlopen_libs=
cannam@95 12335 ;;
cannam@95 12336
cannam@95 12337 darwin*)
cannam@95 12338 # if libdl is installed we need to link against it
cannam@95 12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cannam@95 12340 $as_echo_n "checking for dlopen in -ldl... " >&6; }
cannam@95 12341 if ${ac_cv_lib_dl_dlopen+:} false; then :
cannam@95 12342 $as_echo_n "(cached) " >&6
cannam@95 12343 else
cannam@95 12344 ac_check_lib_save_LIBS=$LIBS
cannam@95 12345 LIBS="-ldl $LIBS"
cannam@95 12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 12347 /* end confdefs.h. */
cannam@95 12348
cannam@95 12349 /* Override any GCC internal prototype to avoid an error.
cannam@95 12350 Use char because int might match the return type of a GCC
cannam@95 12351 builtin and then its argument prototype would still apply. */
cannam@95 12352 #ifdef __cplusplus
cannam@95 12353 extern "C"
cannam@95 12354 #endif
cannam@95 12355 char dlopen ();
cannam@95 12356 int
cannam@95 12357 main ()
cannam@95 12358 {
cannam@95 12359 return dlopen ();
cannam@95 12360 ;
cannam@95 12361 return 0;
cannam@95 12362 }
cannam@95 12363 _ACEOF
cannam@95 12364 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 12365 ac_cv_lib_dl_dlopen=yes
cannam@95 12366 else
cannam@95 12367 ac_cv_lib_dl_dlopen=no
cannam@95 12368 fi
cannam@95 12369 rm -f core conftest.err conftest.$ac_objext \
cannam@95 12370 conftest$ac_exeext conftest.$ac_ext
cannam@95 12371 LIBS=$ac_check_lib_save_LIBS
cannam@95 12372 fi
cannam@95 12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cannam@95 12374 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cannam@95 12375 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cannam@95 12376 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@95 12377 else
cannam@95 12378
cannam@95 12379 lt_cv_dlopen="dyld"
cannam@95 12380 lt_cv_dlopen_libs=
cannam@95 12381 lt_cv_dlopen_self=yes
cannam@95 12382
cannam@95 12383 fi
cannam@95 12384
cannam@95 12385 ;;
cannam@95 12386
cannam@95 12387 *)
cannam@95 12388 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cannam@95 12389 if test "x$ac_cv_func_shl_load" = xyes; then :
cannam@95 12390 lt_cv_dlopen="shl_load"
cannam@95 12391 else
cannam@95 12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cannam@95 12393 $as_echo_n "checking for shl_load in -ldld... " >&6; }
cannam@95 12394 if ${ac_cv_lib_dld_shl_load+:} false; then :
cannam@95 12395 $as_echo_n "(cached) " >&6
cannam@95 12396 else
cannam@95 12397 ac_check_lib_save_LIBS=$LIBS
cannam@95 12398 LIBS="-ldld $LIBS"
cannam@95 12399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 12400 /* end confdefs.h. */
cannam@95 12401
cannam@95 12402 /* Override any GCC internal prototype to avoid an error.
cannam@95 12403 Use char because int might match the return type of a GCC
cannam@95 12404 builtin and then its argument prototype would still apply. */
cannam@95 12405 #ifdef __cplusplus
cannam@95 12406 extern "C"
cannam@95 12407 #endif
cannam@95 12408 char shl_load ();
cannam@95 12409 int
cannam@95 12410 main ()
cannam@95 12411 {
cannam@95 12412 return shl_load ();
cannam@95 12413 ;
cannam@95 12414 return 0;
cannam@95 12415 }
cannam@95 12416 _ACEOF
cannam@95 12417 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 12418 ac_cv_lib_dld_shl_load=yes
cannam@95 12419 else
cannam@95 12420 ac_cv_lib_dld_shl_load=no
cannam@95 12421 fi
cannam@95 12422 rm -f core conftest.err conftest.$ac_objext \
cannam@95 12423 conftest$ac_exeext conftest.$ac_ext
cannam@95 12424 LIBS=$ac_check_lib_save_LIBS
cannam@95 12425 fi
cannam@95 12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cannam@95 12427 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cannam@95 12428 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cannam@95 12429 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
cannam@95 12430 else
cannam@95 12431 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cannam@95 12432 if test "x$ac_cv_func_dlopen" = xyes; then :
cannam@95 12433 lt_cv_dlopen="dlopen"
cannam@95 12434 else
cannam@95 12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cannam@95 12436 $as_echo_n "checking for dlopen in -ldl... " >&6; }
cannam@95 12437 if ${ac_cv_lib_dl_dlopen+:} false; then :
cannam@95 12438 $as_echo_n "(cached) " >&6
cannam@95 12439 else
cannam@95 12440 ac_check_lib_save_LIBS=$LIBS
cannam@95 12441 LIBS="-ldl $LIBS"
cannam@95 12442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 12443 /* end confdefs.h. */
cannam@95 12444
cannam@95 12445 /* Override any GCC internal prototype to avoid an error.
cannam@95 12446 Use char because int might match the return type of a GCC
cannam@95 12447 builtin and then its argument prototype would still apply. */
cannam@95 12448 #ifdef __cplusplus
cannam@95 12449 extern "C"
cannam@95 12450 #endif
cannam@95 12451 char dlopen ();
cannam@95 12452 int
cannam@95 12453 main ()
cannam@95 12454 {
cannam@95 12455 return dlopen ();
cannam@95 12456 ;
cannam@95 12457 return 0;
cannam@95 12458 }
cannam@95 12459 _ACEOF
cannam@95 12460 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 12461 ac_cv_lib_dl_dlopen=yes
cannam@95 12462 else
cannam@95 12463 ac_cv_lib_dl_dlopen=no
cannam@95 12464 fi
cannam@95 12465 rm -f core conftest.err conftest.$ac_objext \
cannam@95 12466 conftest$ac_exeext conftest.$ac_ext
cannam@95 12467 LIBS=$ac_check_lib_save_LIBS
cannam@95 12468 fi
cannam@95 12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cannam@95 12470 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cannam@95 12471 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cannam@95 12472 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@95 12473 else
cannam@95 12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cannam@95 12475 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
cannam@95 12476 if ${ac_cv_lib_svld_dlopen+:} false; then :
cannam@95 12477 $as_echo_n "(cached) " >&6
cannam@95 12478 else
cannam@95 12479 ac_check_lib_save_LIBS=$LIBS
cannam@95 12480 LIBS="-lsvld $LIBS"
cannam@95 12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 12482 /* end confdefs.h. */
cannam@95 12483
cannam@95 12484 /* Override any GCC internal prototype to avoid an error.
cannam@95 12485 Use char because int might match the return type of a GCC
cannam@95 12486 builtin and then its argument prototype would still apply. */
cannam@95 12487 #ifdef __cplusplus
cannam@95 12488 extern "C"
cannam@95 12489 #endif
cannam@95 12490 char dlopen ();
cannam@95 12491 int
cannam@95 12492 main ()
cannam@95 12493 {
cannam@95 12494 return dlopen ();
cannam@95 12495 ;
cannam@95 12496 return 0;
cannam@95 12497 }
cannam@95 12498 _ACEOF
cannam@95 12499 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 12500 ac_cv_lib_svld_dlopen=yes
cannam@95 12501 else
cannam@95 12502 ac_cv_lib_svld_dlopen=no
cannam@95 12503 fi
cannam@95 12504 rm -f core conftest.err conftest.$ac_objext \
cannam@95 12505 conftest$ac_exeext conftest.$ac_ext
cannam@95 12506 LIBS=$ac_check_lib_save_LIBS
cannam@95 12507 fi
cannam@95 12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cannam@95 12509 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cannam@95 12510 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cannam@95 12511 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
cannam@95 12512 else
cannam@95 12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cannam@95 12514 $as_echo_n "checking for dld_link in -ldld... " >&6; }
cannam@95 12515 if ${ac_cv_lib_dld_dld_link+:} false; then :
cannam@95 12516 $as_echo_n "(cached) " >&6
cannam@95 12517 else
cannam@95 12518 ac_check_lib_save_LIBS=$LIBS
cannam@95 12519 LIBS="-ldld $LIBS"
cannam@95 12520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 12521 /* end confdefs.h. */
cannam@95 12522
cannam@95 12523 /* Override any GCC internal prototype to avoid an error.
cannam@95 12524 Use char because int might match the return type of a GCC
cannam@95 12525 builtin and then its argument prototype would still apply. */
cannam@95 12526 #ifdef __cplusplus
cannam@95 12527 extern "C"
cannam@95 12528 #endif
cannam@95 12529 char dld_link ();
cannam@95 12530 int
cannam@95 12531 main ()
cannam@95 12532 {
cannam@95 12533 return dld_link ();
cannam@95 12534 ;
cannam@95 12535 return 0;
cannam@95 12536 }
cannam@95 12537 _ACEOF
cannam@95 12538 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 12539 ac_cv_lib_dld_dld_link=yes
cannam@95 12540 else
cannam@95 12541 ac_cv_lib_dld_dld_link=no
cannam@95 12542 fi
cannam@95 12543 rm -f core conftest.err conftest.$ac_objext \
cannam@95 12544 conftest$ac_exeext conftest.$ac_ext
cannam@95 12545 LIBS=$ac_check_lib_save_LIBS
cannam@95 12546 fi
cannam@95 12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cannam@95 12548 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cannam@95 12549 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cannam@95 12550 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
cannam@95 12551 fi
cannam@95 12552
cannam@95 12553
cannam@95 12554 fi
cannam@95 12555
cannam@95 12556
cannam@95 12557 fi
cannam@95 12558
cannam@95 12559
cannam@95 12560 fi
cannam@95 12561
cannam@95 12562
cannam@95 12563 fi
cannam@95 12564
cannam@95 12565
cannam@95 12566 fi
cannam@95 12567
cannam@95 12568 ;;
cannam@95 12569 esac
cannam@95 12570
cannam@95 12571 if test "x$lt_cv_dlopen" != xno; then
cannam@95 12572 enable_dlopen=yes
cannam@95 12573 else
cannam@95 12574 enable_dlopen=no
cannam@95 12575 fi
cannam@95 12576
cannam@95 12577 case $lt_cv_dlopen in
cannam@95 12578 dlopen)
cannam@95 12579 save_CPPFLAGS="$CPPFLAGS"
cannam@95 12580 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
cannam@95 12581
cannam@95 12582 save_LDFLAGS="$LDFLAGS"
cannam@95 12583 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
cannam@95 12584
cannam@95 12585 save_LIBS="$LIBS"
cannam@95 12586 LIBS="$lt_cv_dlopen_libs $LIBS"
cannam@95 12587
cannam@95 12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cannam@95 12589 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
cannam@95 12590 if ${lt_cv_dlopen_self+:} false; then :
cannam@95 12591 $as_echo_n "(cached) " >&6
cannam@95 12592 else
cannam@95 12593 if test "$cross_compiling" = yes; then :
cannam@95 12594 lt_cv_dlopen_self=cross
cannam@95 12595 else
cannam@95 12596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@95 12597 lt_status=$lt_dlunknown
cannam@95 12598 cat > conftest.$ac_ext <<_LT_EOF
cannam@95 12599 #line $LINENO "configure"
cannam@95 12600 #include "confdefs.h"
cannam@95 12601
cannam@95 12602 #if HAVE_DLFCN_H
cannam@95 12603 #include <dlfcn.h>
cannam@95 12604 #endif
cannam@95 12605
cannam@95 12606 #include <stdio.h>
cannam@95 12607
cannam@95 12608 #ifdef RTLD_GLOBAL
cannam@95 12609 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@95 12610 #else
cannam@95 12611 # ifdef DL_GLOBAL
cannam@95 12612 # define LT_DLGLOBAL DL_GLOBAL
cannam@95 12613 # else
cannam@95 12614 # define LT_DLGLOBAL 0
cannam@95 12615 # endif
cannam@95 12616 #endif
cannam@95 12617
cannam@95 12618 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@95 12619 find out it does not work in some platform. */
cannam@95 12620 #ifndef LT_DLLAZY_OR_NOW
cannam@95 12621 # ifdef RTLD_LAZY
cannam@95 12622 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@95 12623 # else
cannam@95 12624 # ifdef DL_LAZY
cannam@95 12625 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@95 12626 # else
cannam@95 12627 # ifdef RTLD_NOW
cannam@95 12628 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@95 12629 # else
cannam@95 12630 # ifdef DL_NOW
cannam@95 12631 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@95 12632 # else
cannam@95 12633 # define LT_DLLAZY_OR_NOW 0
cannam@95 12634 # endif
cannam@95 12635 # endif
cannam@95 12636 # endif
cannam@95 12637 # endif
cannam@95 12638 #endif
cannam@95 12639
cannam@95 12640 /* When -fvisbility=hidden is used, assume the code has been annotated
cannam@95 12641 correspondingly for the symbols needed. */
cannam@95 12642 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cannam@95 12643 int fnord () __attribute__((visibility("default")));
cannam@95 12644 #endif
cannam@95 12645
cannam@95 12646 int fnord () { return 42; }
cannam@95 12647 int main ()
cannam@95 12648 {
cannam@95 12649 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@95 12650 int status = $lt_dlunknown;
cannam@95 12651
cannam@95 12652 if (self)
cannam@95 12653 {
cannam@95 12654 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@95 12655 else
cannam@95 12656 {
cannam@95 12657 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@95 12658 else puts (dlerror ());
cannam@95 12659 }
cannam@95 12660 /* dlclose (self); */
cannam@95 12661 }
cannam@95 12662 else
cannam@95 12663 puts (dlerror ());
cannam@95 12664
cannam@95 12665 return status;
cannam@95 12666 }
cannam@95 12667 _LT_EOF
cannam@95 12668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@95 12669 (eval $ac_link) 2>&5
cannam@95 12670 ac_status=$?
cannam@95 12671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 12672 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@95 12673 (./conftest; exit; ) >&5 2>/dev/null
cannam@95 12674 lt_status=$?
cannam@95 12675 case x$lt_status in
cannam@95 12676 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
cannam@95 12677 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
cannam@95 12678 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
cannam@95 12679 esac
cannam@95 12680 else :
cannam@95 12681 # compilation failed
cannam@95 12682 lt_cv_dlopen_self=no
cannam@95 12683 fi
cannam@95 12684 fi
cannam@95 12685 rm -fr conftest*
cannam@95 12686
cannam@95 12687
cannam@95 12688 fi
cannam@95 12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cannam@95 12690 $as_echo "$lt_cv_dlopen_self" >&6; }
cannam@95 12691
cannam@95 12692 if test "x$lt_cv_dlopen_self" = xyes; then
cannam@95 12693 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cannam@95 12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cannam@95 12695 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cannam@95 12696 if ${lt_cv_dlopen_self_static+:} false; then :
cannam@95 12697 $as_echo_n "(cached) " >&6
cannam@95 12698 else
cannam@95 12699 if test "$cross_compiling" = yes; then :
cannam@95 12700 lt_cv_dlopen_self_static=cross
cannam@95 12701 else
cannam@95 12702 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@95 12703 lt_status=$lt_dlunknown
cannam@95 12704 cat > conftest.$ac_ext <<_LT_EOF
cannam@95 12705 #line $LINENO "configure"
cannam@95 12706 #include "confdefs.h"
cannam@95 12707
cannam@95 12708 #if HAVE_DLFCN_H
cannam@95 12709 #include <dlfcn.h>
cannam@95 12710 #endif
cannam@95 12711
cannam@95 12712 #include <stdio.h>
cannam@95 12713
cannam@95 12714 #ifdef RTLD_GLOBAL
cannam@95 12715 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@95 12716 #else
cannam@95 12717 # ifdef DL_GLOBAL
cannam@95 12718 # define LT_DLGLOBAL DL_GLOBAL
cannam@95 12719 # else
cannam@95 12720 # define LT_DLGLOBAL 0
cannam@95 12721 # endif
cannam@95 12722 #endif
cannam@95 12723
cannam@95 12724 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@95 12725 find out it does not work in some platform. */
cannam@95 12726 #ifndef LT_DLLAZY_OR_NOW
cannam@95 12727 # ifdef RTLD_LAZY
cannam@95 12728 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@95 12729 # else
cannam@95 12730 # ifdef DL_LAZY
cannam@95 12731 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@95 12732 # else
cannam@95 12733 # ifdef RTLD_NOW
cannam@95 12734 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@95 12735 # else
cannam@95 12736 # ifdef DL_NOW
cannam@95 12737 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@95 12738 # else
cannam@95 12739 # define LT_DLLAZY_OR_NOW 0
cannam@95 12740 # endif
cannam@95 12741 # endif
cannam@95 12742 # endif
cannam@95 12743 # endif
cannam@95 12744 #endif
cannam@95 12745
cannam@95 12746 /* When -fvisbility=hidden is used, assume the code has been annotated
cannam@95 12747 correspondingly for the symbols needed. */
cannam@95 12748 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cannam@95 12749 int fnord () __attribute__((visibility("default")));
cannam@95 12750 #endif
cannam@95 12751
cannam@95 12752 int fnord () { return 42; }
cannam@95 12753 int main ()
cannam@95 12754 {
cannam@95 12755 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@95 12756 int status = $lt_dlunknown;
cannam@95 12757
cannam@95 12758 if (self)
cannam@95 12759 {
cannam@95 12760 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@95 12761 else
cannam@95 12762 {
cannam@95 12763 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@95 12764 else puts (dlerror ());
cannam@95 12765 }
cannam@95 12766 /* dlclose (self); */
cannam@95 12767 }
cannam@95 12768 else
cannam@95 12769 puts (dlerror ());
cannam@95 12770
cannam@95 12771 return status;
cannam@95 12772 }
cannam@95 12773 _LT_EOF
cannam@95 12774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@95 12775 (eval $ac_link) 2>&5
cannam@95 12776 ac_status=$?
cannam@95 12777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 12778 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@95 12779 (./conftest; exit; ) >&5 2>/dev/null
cannam@95 12780 lt_status=$?
cannam@95 12781 case x$lt_status in
cannam@95 12782 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@95 12783 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@95 12784 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
cannam@95 12785 esac
cannam@95 12786 else :
cannam@95 12787 # compilation failed
cannam@95 12788 lt_cv_dlopen_self_static=no
cannam@95 12789 fi
cannam@95 12790 fi
cannam@95 12791 rm -fr conftest*
cannam@95 12792
cannam@95 12793
cannam@95 12794 fi
cannam@95 12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cannam@95 12796 $as_echo "$lt_cv_dlopen_self_static" >&6; }
cannam@95 12797 fi
cannam@95 12798
cannam@95 12799 CPPFLAGS="$save_CPPFLAGS"
cannam@95 12800 LDFLAGS="$save_LDFLAGS"
cannam@95 12801 LIBS="$save_LIBS"
cannam@95 12802 ;;
cannam@95 12803 esac
cannam@95 12804
cannam@95 12805 case $lt_cv_dlopen_self in
cannam@95 12806 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
cannam@95 12807 *) enable_dlopen_self=unknown ;;
cannam@95 12808 esac
cannam@95 12809
cannam@95 12810 case $lt_cv_dlopen_self_static in
cannam@95 12811 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
cannam@95 12812 *) enable_dlopen_self_static=unknown ;;
cannam@95 12813 esac
cannam@95 12814 fi
cannam@95 12815
cannam@95 12816
cannam@95 12817
cannam@95 12818
cannam@95 12819
cannam@95 12820
cannam@95 12821
cannam@95 12822
cannam@95 12823
cannam@95 12824
cannam@95 12825
cannam@95 12826
cannam@95 12827
cannam@95 12828
cannam@95 12829
cannam@95 12830
cannam@95 12831
cannam@95 12832 striplib=
cannam@95 12833 old_striplib=
cannam@95 12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cannam@95 12835 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
cannam@95 12836 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
cannam@95 12837 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
cannam@95 12838 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cannam@95 12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@95 12840 $as_echo "yes" >&6; }
cannam@95 12841 else
cannam@95 12842 # FIXME - insert some real tests, host_os isn't really good enough
cannam@95 12843 case $host_os in
cannam@95 12844 darwin*)
cannam@95 12845 if test -n "$STRIP" ; then
cannam@95 12846 striplib="$STRIP -x"
cannam@95 12847 old_striplib="$STRIP -S"
cannam@95 12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@95 12849 $as_echo "yes" >&6; }
cannam@95 12850 else
cannam@95 12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 12852 $as_echo "no" >&6; }
cannam@95 12853 fi
cannam@95 12854 ;;
cannam@95 12855 *)
cannam@95 12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 12857 $as_echo "no" >&6; }
cannam@95 12858 ;;
cannam@95 12859 esac
cannam@95 12860 fi
cannam@95 12861
cannam@95 12862
cannam@95 12863
cannam@95 12864
cannam@95 12865
cannam@95 12866
cannam@95 12867
cannam@95 12868
cannam@95 12869
cannam@95 12870
cannam@95 12871
cannam@95 12872
cannam@95 12873 # Report which library types will actually be built
cannam@95 12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cannam@95 12875 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
cannam@95 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cannam@95 12877 $as_echo "$can_build_shared" >&6; }
cannam@95 12878
cannam@95 12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cannam@95 12880 $as_echo_n "checking whether to build shared libraries... " >&6; }
cannam@95 12881 test "$can_build_shared" = "no" && enable_shared=no
cannam@95 12882
cannam@95 12883 # On AIX, shared libraries and static libraries use the same namespace, and
cannam@95 12884 # are all built from PIC.
cannam@95 12885 case $host_os in
cannam@95 12886 aix3*)
cannam@95 12887 test "$enable_shared" = yes && enable_static=no
cannam@95 12888 if test -n "$RANLIB"; then
cannam@95 12889 archive_cmds="$archive_cmds~\$RANLIB \$lib"
cannam@95 12890 postinstall_cmds='$RANLIB $lib'
cannam@95 12891 fi
cannam@95 12892 ;;
cannam@95 12893
cannam@95 12894 aix[4-9]*)
cannam@95 12895 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
cannam@95 12896 test "$enable_shared" = yes && enable_static=no
cannam@95 12897 fi
cannam@95 12898 ;;
cannam@95 12899 esac
cannam@95 12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cannam@95 12901 $as_echo "$enable_shared" >&6; }
cannam@95 12902
cannam@95 12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cannam@95 12904 $as_echo_n "checking whether to build static libraries... " >&6; }
cannam@95 12905 # Make sure either enable_shared or enable_static is yes.
cannam@95 12906 test "$enable_shared" = yes || enable_static=yes
cannam@95 12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cannam@95 12908 $as_echo "$enable_static" >&6; }
cannam@95 12909
cannam@95 12910
cannam@95 12911
cannam@95 12912
cannam@95 12913 fi
cannam@95 12914 ac_ext=c
cannam@95 12915 ac_cpp='$CPP $CPPFLAGS'
cannam@95 12916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@95 12917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 12918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@95 12919
cannam@95 12920 CC="$lt_save_CC"
cannam@95 12921
cannam@95 12922
cannam@95 12923
cannam@95 12924
cannam@95 12925
cannam@95 12926
cannam@95 12927
cannam@95 12928
cannam@95 12929
cannam@95 12930
cannam@95 12931
cannam@95 12932
cannam@95 12933
cannam@95 12934
cannam@95 12935
cannam@95 12936 ac_config_commands="$ac_config_commands libtool"
cannam@95 12937
cannam@95 12938
cannam@95 12939
cannam@95 12940
cannam@95 12941 # Only expand once:
cannam@95 12942
cannam@95 12943
cannam@95 12944
cannam@95 12945 # Extract the first word of "ocamlbuild", so it can be a program name with args.
cannam@95 12946 set dummy ocamlbuild; ac_word=$2
cannam@95 12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 12948 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 12949 if ${ac_cv_prog_OCAMLBUILD+:} false; then :
cannam@95 12950 $as_echo_n "(cached) " >&6
cannam@95 12951 else
cannam@95 12952 if test -n "$OCAMLBUILD"; then
cannam@95 12953 ac_cv_prog_OCAMLBUILD="$OCAMLBUILD" # Let the user override the test.
cannam@95 12954 else
cannam@95 12955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 12956 for as_dir in $PATH
cannam@95 12957 do
cannam@95 12958 IFS=$as_save_IFS
cannam@95 12959 test -z "$as_dir" && as_dir=.
cannam@95 12960 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 12961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 12962 ac_cv_prog_OCAMLBUILD="ocamlbuild"
cannam@95 12963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 12964 break 2
cannam@95 12965 fi
cannam@95 12966 done
cannam@95 12967 done
cannam@95 12968 IFS=$as_save_IFS
cannam@95 12969
cannam@95 12970 fi
cannam@95 12971 fi
cannam@95 12972 OCAMLBUILD=$ac_cv_prog_OCAMLBUILD
cannam@95 12973 if test -n "$OCAMLBUILD"; then
cannam@95 12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLBUILD" >&5
cannam@95 12975 $as_echo "$OCAMLBUILD" >&6; }
cannam@95 12976 else
cannam@95 12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 12978 $as_echo "no" >&6; }
cannam@95 12979 fi
cannam@95 12980
cannam@95 12981
cannam@95 12982
cannam@95 12983
cannam@95 12984 # Check whether --enable-mpi was given.
cannam@95 12985 if test "${enable_mpi+set}" = set; then :
cannam@95 12986 enableval=$enable_mpi; enable_mpi=$enableval
cannam@95 12987 else
cannam@95 12988 enable_mpi=no
cannam@95 12989 fi
cannam@95 12990
cannam@95 12991
cannam@95 12992 if test "$enable_mpi" = "yes"; then
cannam@95 12993 if test $PRECISION = q; then
cannam@95 12994 as_fn_error $? "quad precision is not supported in MPI" "$LINENO" 5
cannam@95 12995 fi
cannam@95 12996
cannam@95 12997
cannam@95 12998
cannam@95 12999
cannam@95 13000
cannam@95 13001 for ac_prog in mpicc hcc mpcc mpcc_r mpxlc cmpicc
cannam@95 13002 do
cannam@95 13003 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@95 13004 set dummy $ac_prog; ac_word=$2
cannam@95 13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 13006 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 13007 if ${ac_cv_prog_MPICC+:} false; then :
cannam@95 13008 $as_echo_n "(cached) " >&6
cannam@95 13009 else
cannam@95 13010 if test -n "$MPICC"; then
cannam@95 13011 ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
cannam@95 13012 else
cannam@95 13013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 13014 for as_dir in $PATH
cannam@95 13015 do
cannam@95 13016 IFS=$as_save_IFS
cannam@95 13017 test -z "$as_dir" && as_dir=.
cannam@95 13018 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 13019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 13020 ac_cv_prog_MPICC="$ac_prog"
cannam@95 13021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 13022 break 2
cannam@95 13023 fi
cannam@95 13024 done
cannam@95 13025 done
cannam@95 13026 IFS=$as_save_IFS
cannam@95 13027
cannam@95 13028 fi
cannam@95 13029 fi
cannam@95 13030 MPICC=$ac_cv_prog_MPICC
cannam@95 13031 if test -n "$MPICC"; then
cannam@95 13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
cannam@95 13033 $as_echo "$MPICC" >&6; }
cannam@95 13034 else
cannam@95 13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 13036 $as_echo "no" >&6; }
cannam@95 13037 fi
cannam@95 13038
cannam@95 13039
cannam@95 13040 test -n "$MPICC" && break
cannam@95 13041 done
cannam@95 13042 test -n "$MPICC" || MPICC="$CC"
cannam@95 13043
cannam@95 13044 acx_mpi_save_CC="$CC"
cannam@95 13045 CC="$MPICC"
cannam@95 13046
cannam@95 13047
cannam@95 13048
cannam@95 13049 if test x = x"$MPILIBS"; then
cannam@95 13050 ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
cannam@95 13051 if test "x$ac_cv_func_MPI_Init" = xyes; then :
cannam@95 13052 MPILIBS=" "
cannam@95 13053 fi
cannam@95 13054
cannam@95 13055 fi
cannam@95 13056 if test x = x"$MPILIBS"; then
cannam@95 13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
cannam@95 13058 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
cannam@95 13059 if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
cannam@95 13060 $as_echo_n "(cached) " >&6
cannam@95 13061 else
cannam@95 13062 ac_check_lib_save_LIBS=$LIBS
cannam@95 13063 LIBS="-lmpi $LIBS"
cannam@95 13064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 13065 /* end confdefs.h. */
cannam@95 13066
cannam@95 13067 /* Override any GCC internal prototype to avoid an error.
cannam@95 13068 Use char because int might match the return type of a GCC
cannam@95 13069 builtin and then its argument prototype would still apply. */
cannam@95 13070 #ifdef __cplusplus
cannam@95 13071 extern "C"
cannam@95 13072 #endif
cannam@95 13073 char MPI_Init ();
cannam@95 13074 int
cannam@95 13075 main ()
cannam@95 13076 {
cannam@95 13077 return MPI_Init ();
cannam@95 13078 ;
cannam@95 13079 return 0;
cannam@95 13080 }
cannam@95 13081 _ACEOF
cannam@95 13082 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 13083 ac_cv_lib_mpi_MPI_Init=yes
cannam@95 13084 else
cannam@95 13085 ac_cv_lib_mpi_MPI_Init=no
cannam@95 13086 fi
cannam@95 13087 rm -f core conftest.err conftest.$ac_objext \
cannam@95 13088 conftest$ac_exeext conftest.$ac_ext
cannam@95 13089 LIBS=$ac_check_lib_save_LIBS
cannam@95 13090 fi
cannam@95 13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
cannam@95 13092 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
cannam@95 13093 if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
cannam@95 13094 MPILIBS="-lmpi"
cannam@95 13095 fi
cannam@95 13096
cannam@95 13097 fi
cannam@95 13098 if test x = x"$MPILIBS"; then
cannam@95 13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
cannam@95 13100 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
cannam@95 13101 if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
cannam@95 13102 $as_echo_n "(cached) " >&6
cannam@95 13103 else
cannam@95 13104 ac_check_lib_save_LIBS=$LIBS
cannam@95 13105 LIBS="-lmpich $LIBS"
cannam@95 13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 13107 /* end confdefs.h. */
cannam@95 13108
cannam@95 13109 /* Override any GCC internal prototype to avoid an error.
cannam@95 13110 Use char because int might match the return type of a GCC
cannam@95 13111 builtin and then its argument prototype would still apply. */
cannam@95 13112 #ifdef __cplusplus
cannam@95 13113 extern "C"
cannam@95 13114 #endif
cannam@95 13115 char MPI_Init ();
cannam@95 13116 int
cannam@95 13117 main ()
cannam@95 13118 {
cannam@95 13119 return MPI_Init ();
cannam@95 13120 ;
cannam@95 13121 return 0;
cannam@95 13122 }
cannam@95 13123 _ACEOF
cannam@95 13124 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 13125 ac_cv_lib_mpich_MPI_Init=yes
cannam@95 13126 else
cannam@95 13127 ac_cv_lib_mpich_MPI_Init=no
cannam@95 13128 fi
cannam@95 13129 rm -f core conftest.err conftest.$ac_objext \
cannam@95 13130 conftest$ac_exeext conftest.$ac_ext
cannam@95 13131 LIBS=$ac_check_lib_save_LIBS
cannam@95 13132 fi
cannam@95 13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
cannam@95 13134 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
cannam@95 13135 if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
cannam@95 13136 MPILIBS="-lmpich"
cannam@95 13137 fi
cannam@95 13138
cannam@95 13139 fi
cannam@95 13140
cannam@95 13141 if test x != x"$MPILIBS"; then
cannam@95 13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
cannam@95 13143 $as_echo_n "checking for mpi.h... " >&6; }
cannam@95 13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 13145 /* end confdefs.h. */
cannam@95 13146 #include <mpi.h>
cannam@95 13147 int
cannam@95 13148 main ()
cannam@95 13149 {
cannam@95 13150
cannam@95 13151 ;
cannam@95 13152 return 0;
cannam@95 13153 }
cannam@95 13154 _ACEOF
cannam@95 13155 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@95 13157 $as_echo "yes" >&6; }
cannam@95 13158 else
cannam@95 13159 MPILIBS=""
cannam@95 13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 13161 $as_echo "no" >&6; }
cannam@95 13162 fi
cannam@95 13163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 13164 fi
cannam@95 13165
cannam@95 13166 CC="$acx_mpi_save_CC"
cannam@95 13167
cannam@95 13168
cannam@95 13169
cannam@95 13170 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
cannam@95 13171 if test x = x"$MPILIBS"; then
cannam@95 13172 as_fn_error $? "could not find mpi library for --enable-mpi" "$LINENO" 5
cannam@95 13173 :
cannam@95 13174 else
cannam@95 13175
cannam@95 13176 $as_echo "#define HAVE_MPI 1" >>confdefs.h
cannam@95 13177
cannam@95 13178 :
cannam@95 13179 fi
cannam@95 13180
cannam@95 13181 # Extract the first word of "mpirun", so it can be a program name with args.
cannam@95 13182 set dummy mpirun; ac_word=$2
cannam@95 13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 13184 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 13185 if ${ac_cv_prog_MPIRUN+:} false; then :
cannam@95 13186 $as_echo_n "(cached) " >&6
cannam@95 13187 else
cannam@95 13188 if test -n "$MPIRUN"; then
cannam@95 13189 ac_cv_prog_MPIRUN="$MPIRUN" # Let the user override the test.
cannam@95 13190 else
cannam@95 13191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 13192 for as_dir in $PATH
cannam@95 13193 do
cannam@95 13194 IFS=$as_save_IFS
cannam@95 13195 test -z "$as_dir" && as_dir=.
cannam@95 13196 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 13197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 13198 ac_cv_prog_MPIRUN="mpirun"
cannam@95 13199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 13200 break 2
cannam@95 13201 fi
cannam@95 13202 done
cannam@95 13203 done
cannam@95 13204 IFS=$as_save_IFS
cannam@95 13205
cannam@95 13206 fi
cannam@95 13207 fi
cannam@95 13208 MPIRUN=$ac_cv_prog_MPIRUN
cannam@95 13209 if test -n "$MPIRUN"; then
cannam@95 13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIRUN" >&5
cannam@95 13211 $as_echo "$MPIRUN" >&6; }
cannam@95 13212 else
cannam@95 13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 13214 $as_echo "no" >&6; }
cannam@95 13215 fi
cannam@95 13216
cannam@95 13217
cannam@95 13218
cannam@95 13219
cannam@95 13220 save_CC=$CC
cannam@95 13221 CC=$MPICC
cannam@95 13222 # The cast to long int works around a bug in the HP C Compiler
cannam@95 13223 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@95 13224 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@95 13225 # This bug is HP SR number 8606223364.
cannam@95 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of MPI_Fint" >&5
cannam@95 13227 $as_echo_n "checking size of MPI_Fint... " >&6; }
cannam@95 13228 if ${ac_cv_sizeof_MPI_Fint+:} false; then :
cannam@95 13229 $as_echo_n "(cached) " >&6
cannam@95 13230 else
cannam@95 13231 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (MPI_Fint))" "ac_cv_sizeof_MPI_Fint" "#include <mpi.h>
cannam@95 13232 "; then :
cannam@95 13233
cannam@95 13234 else
cannam@95 13235 if test "$ac_cv_type_MPI_Fint" = yes; then
cannam@95 13236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@95 13237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@95 13238 as_fn_error 77 "cannot compute sizeof (MPI_Fint)
cannam@95 13239 See \`config.log' for more details" "$LINENO" 5; }
cannam@95 13240 else
cannam@95 13241 ac_cv_sizeof_MPI_Fint=0
cannam@95 13242 fi
cannam@95 13243 fi
cannam@95 13244
cannam@95 13245 fi
cannam@95 13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_MPI_Fint" >&5
cannam@95 13247 $as_echo "$ac_cv_sizeof_MPI_Fint" >&6; }
cannam@95 13248
cannam@95 13249
cannam@95 13250
cannam@95 13251 cat >>confdefs.h <<_ACEOF
cannam@95 13252 #define SIZEOF_MPI_FINT $ac_cv_sizeof_MPI_Fint
cannam@95 13253 _ACEOF
cannam@95 13254
cannam@95 13255
cannam@95 13256 CC=$save_CC
cannam@95 13257 if test 0 = $ac_cv_sizeof_MPI_Fint; then
cannam@95 13258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sizeof(MPI_Fint) test failed" >&5
cannam@95 13259 $as_echo "$as_me: WARNING: sizeof(MPI_Fint) test failed" >&2;};
cannam@95 13260 # The cast to long int works around a bug in the HP C Compiler
cannam@95 13261 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@95 13262 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@95 13263 # This bug is HP SR number 8606223364.
cannam@95 13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
cannam@95 13265 $as_echo_n "checking size of int... " >&6; }
cannam@95 13266 if ${ac_cv_sizeof_int+:} false; then :
cannam@95 13267 $as_echo_n "(cached) " >&6
cannam@95 13268 else
cannam@95 13269 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
cannam@95 13270
cannam@95 13271 else
cannam@95 13272 if test "$ac_cv_type_int" = yes; then
cannam@95 13273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@95 13274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@95 13275 as_fn_error 77 "cannot compute sizeof (int)
cannam@95 13276 See \`config.log' for more details" "$LINENO" 5; }
cannam@95 13277 else
cannam@95 13278 ac_cv_sizeof_int=0
cannam@95 13279 fi
cannam@95 13280 fi
cannam@95 13281
cannam@95 13282 fi
cannam@95 13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
cannam@95 13284 $as_echo "$ac_cv_sizeof_int" >&6; }
cannam@95 13285
cannam@95 13286
cannam@95 13287
cannam@95 13288 cat >>confdefs.h <<_ACEOF
cannam@95 13289 #define SIZEOF_INT $ac_cv_sizeof_int
cannam@95 13290 _ACEOF
cannam@95 13291
cannam@95 13292
cannam@95 13293 if test 0 = $ac_cv_sizeof_int; then as_fn_error $? "sizeof(int) test failed" "$LINENO" 5; fi
cannam@95 13294 ac_cv_sizeof_MPI_Fint=$ac_cv_sizeof_int
cannam@95 13295 fi
cannam@95 13296 C_MPI_FINT=C_INT`expr $ac_cv_sizeof_MPI_Fint \* 8`_T
cannam@95 13297
cannam@95 13298 fi
cannam@95 13299 if test "$enable_mpi" = "yes"; then
cannam@95 13300 MPI_TRUE=
cannam@95 13301 MPI_FALSE='#'
cannam@95 13302 else
cannam@95 13303 MPI_TRUE='#'
cannam@95 13304 MPI_FALSE=
cannam@95 13305 fi
cannam@95 13306
cannam@95 13307
cannam@95 13308
cannam@95 13309
cannam@95 13310
cannam@95 13311
cannam@95 13312
cannam@95 13313
cannam@95 13314 # Try to determine "good" native compiler flags if none specified via CFLAGS
cannam@95 13315 if test "$ac_test_CFLAGS" != "set"; then
cannam@95 13316 CFLAGS=""
cannam@95 13317 case $ax_cv_c_compiler_vendor in
cannam@95 13318 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
cannam@95 13319 ;;
cannam@95 13320
cannam@95 13321 sun) CFLAGS="-native -fast -xO5 -dalign"
cannam@95 13322 ;;
cannam@95 13323
cannam@95 13324 hp) CFLAGS="+Oall +Optrs_ansi +DSnative"
cannam@95 13325 ;;
cannam@95 13326
cannam@95 13327 ibm) xlc_opt="-qtune=auto"
cannam@95 13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
cannam@95 13329 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
cannam@95 13330 ax_save_FLAGS=$CFLAGS
cannam@95 13331 CFLAGS="$xlc_opt"
cannam@95 13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 13333 /* end confdefs.h. */
cannam@95 13334
cannam@95 13335 int
cannam@95 13336 main ()
cannam@95 13337 {
cannam@95 13338
cannam@95 13339 ;
cannam@95 13340 return 0;
cannam@95 13341 }
cannam@95 13342 _ACEOF
cannam@95 13343 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 13344 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=yes
cannam@95 13345 else
cannam@95 13346 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=no
cannam@95 13347 fi
cannam@95 13348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 13349 CFLAGS=$ax_save_FLAGS
cannam@95 13350 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`
cannam@95 13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
cannam@95 13352 $as_echo "$ax_check_compiler_flags" >&6; }
cannam@95 13353 if test "x$ax_check_compiler_flags" = xyes; then
cannam@95 13354 CFLAGS="-O3 -qansialias -w $xlc_opt"
cannam@95 13355 else
cannam@95 13356 CFLAGS="-O3 -qansialias -w"
cannam@95 13357 echo "******************************************************"
cannam@95 13358 echo "* You seem to have the IBM C compiler. It is *"
cannam@95 13359 echo "* recommended for best performance that you use: *"
cannam@95 13360 echo "* *"
cannam@95 13361 echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
cannam@95 13362 echo "* ^^^ ^^^ *"
cannam@95 13363 echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *"
cannam@95 13364 echo "* CPU you have. (Set the CFLAGS environment var. *"
cannam@95 13365 echo "* and re-run configure.) For more info, man cc. *"
cannam@95 13366 echo "******************************************************"
cannam@95 13367 fi
cannam@95 13368
cannam@95 13369 ;;
cannam@95 13370
cannam@95 13371 intel) CFLAGS="-O3"
cannam@95 13372 # Intel seems to have changed the spelling of this flag recently
cannam@95 13373 icc_ansi_alias="unknown"
cannam@95 13374 for flag in -ansi-alias -ansi_alias; do
cannam@95 13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
cannam@95 13376 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
cannam@95 13377 ax_save_FLAGS=$CFLAGS
cannam@95 13378 CFLAGS="$flag"
cannam@95 13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 13380 /* end confdefs.h. */
cannam@95 13381
cannam@95 13382 int
cannam@95 13383 main ()
cannam@95 13384 {
cannam@95 13385
cannam@95 13386 ;
cannam@95 13387 return 0;
cannam@95 13388 }
cannam@95 13389 _ACEOF
cannam@95 13390 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 13391 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes
cannam@95 13392 else
cannam@95 13393 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no
cannam@95 13394 fi
cannam@95 13395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 13396 CFLAGS=$ax_save_FLAGS
cannam@95 13397 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`
cannam@95 13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
cannam@95 13399 $as_echo "$ax_check_compiler_flags" >&6; }
cannam@95 13400 if test "x$ax_check_compiler_flags" = xyes; then
cannam@95 13401 icc_ansi_alias=$flag; break
cannam@95 13402 else
cannam@95 13403 :
cannam@95 13404 fi
cannam@95 13405
cannam@95 13406 done
cannam@95 13407 if test "x$icc_ansi_alias" != xunknown; then
cannam@95 13408 CFLAGS="$CFLAGS $icc_ansi_alias"
cannam@95 13409 fi
cannam@95 13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
cannam@95 13411 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
cannam@95 13412 if ${ax_cv_c_flags__malign_double+:} false; then :
cannam@95 13413 $as_echo_n "(cached) " >&6
cannam@95 13414 else
cannam@95 13415
cannam@95 13416 ax_save_FLAGS=$CFLAGS
cannam@95 13417 CFLAGS="-malign-double"
cannam@95 13418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 13419 /* end confdefs.h. */
cannam@95 13420
cannam@95 13421 int
cannam@95 13422 main ()
cannam@95 13423 {
cannam@95 13424
cannam@95 13425 ;
cannam@95 13426 return 0;
cannam@95 13427 }
cannam@95 13428 _ACEOF
cannam@95 13429 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 13430 ax_cv_c_flags__malign_double=yes
cannam@95 13431 else
cannam@95 13432 ax_cv_c_flags__malign_double=no
cannam@95 13433 fi
cannam@95 13434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 13435 CFLAGS=$ax_save_FLAGS
cannam@95 13436 fi
cannam@95 13437
cannam@95 13438 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
cannam@95 13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
cannam@95 13440 $as_echo "$ax_check_compiler_flags" >&6; }
cannam@95 13441 if test "x$ax_check_compiler_flags" = xyes; then
cannam@95 13442 CFLAGS="$CFLAGS -malign-double"
cannam@95 13443 else
cannam@95 13444 :
cannam@95 13445 fi
cannam@95 13446
cannam@95 13447 # We used to check for architecture flags here, e.g. -xHost etc.,
cannam@95 13448 # but these flags are problematic. On icc-12.0.0, "-mavx -xHost"
cannam@95 13449 # overrides -mavx with -xHost, generating SSE2 code instead of AVX
cannam@95 13450 # code. ICC does not seem to support -mtune=host or equivalent
cannam@95 13451 # non-ABI changing flag.
cannam@95 13452 ;;
cannam@95 13453
cannam@95 13454 gnu)
cannam@95 13455 # Default optimization flags for gcc on all systems.
cannam@95 13456 # Somehow -O3 does not imply -fomit-frame-pointer on ia32
cannam@95 13457 CFLAGS="-O3 -fomit-frame-pointer"
cannam@95 13458
cannam@95 13459 # tune for the host by default
cannam@95 13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mtune=native" >&5
cannam@95 13461 $as_echo_n "checking whether C compiler accepts -mtune=native... " >&6; }
cannam@95 13462 if ${ax_cv_c_flags__mtune_native+:} false; then :
cannam@95 13463 $as_echo_n "(cached) " >&6
cannam@95 13464 else
cannam@95 13465
cannam@95 13466 ax_save_FLAGS=$CFLAGS
cannam@95 13467 CFLAGS="-mtune=native"
cannam@95 13468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 13469 /* end confdefs.h. */
cannam@95 13470
cannam@95 13471 int
cannam@95 13472 main ()
cannam@95 13473 {
cannam@95 13474
cannam@95 13475 ;
cannam@95 13476 return 0;
cannam@95 13477 }
cannam@95 13478 _ACEOF
cannam@95 13479 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 13480 ax_cv_c_flags__mtune_native=yes
cannam@95 13481 else
cannam@95 13482 ax_cv_c_flags__mtune_native=no
cannam@95 13483 fi
cannam@95 13484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 13485 CFLAGS=$ax_save_FLAGS
cannam@95 13486 fi
cannam@95 13487
cannam@95 13488 eval ax_check_compiler_flags=$ax_cv_c_flags__mtune_native
cannam@95 13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
cannam@95 13490 $as_echo "$ax_check_compiler_flags" >&6; }
cannam@95 13491 if test "x$ax_check_compiler_flags" = xyes; then
cannam@95 13492 CFLAGS="$CFLAGS -mtune=native"
cannam@95 13493 else
cannam@95 13494 :
cannam@95 13495 fi
cannam@95 13496
cannam@95 13497
cannam@95 13498 # -malign-double for x86 systems
cannam@95 13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
cannam@95 13500 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
cannam@95 13501 if ${ax_cv_c_flags__malign_double+:} false; then :
cannam@95 13502 $as_echo_n "(cached) " >&6
cannam@95 13503 else
cannam@95 13504
cannam@95 13505 ax_save_FLAGS=$CFLAGS
cannam@95 13506 CFLAGS="-malign-double"
cannam@95 13507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 13508 /* end confdefs.h. */
cannam@95 13509
cannam@95 13510 int
cannam@95 13511 main ()
cannam@95 13512 {
cannam@95 13513
cannam@95 13514 ;
cannam@95 13515 return 0;
cannam@95 13516 }
cannam@95 13517 _ACEOF
cannam@95 13518 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 13519 ax_cv_c_flags__malign_double=yes
cannam@95 13520 else
cannam@95 13521 ax_cv_c_flags__malign_double=no
cannam@95 13522 fi
cannam@95 13523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 13524 CFLAGS=$ax_save_FLAGS
cannam@95 13525 fi
cannam@95 13526
cannam@95 13527 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
cannam@95 13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
cannam@95 13529 $as_echo "$ax_check_compiler_flags" >&6; }
cannam@95 13530 if test "x$ax_check_compiler_flags" = xyes; then
cannam@95 13531 CFLAGS="$CFLAGS -malign-double"
cannam@95 13532 else
cannam@95 13533 :
cannam@95 13534 fi
cannam@95 13535
cannam@95 13536
cannam@95 13537 # -fstrict-aliasing for gcc-2.95+
cannam@95 13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
cannam@95 13539 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
cannam@95 13540 if ${ax_cv_c_flags__fstrict_aliasing+:} false; then :
cannam@95 13541 $as_echo_n "(cached) " >&6
cannam@95 13542 else
cannam@95 13543
cannam@95 13544 ax_save_FLAGS=$CFLAGS
cannam@95 13545 CFLAGS="-fstrict-aliasing"
cannam@95 13546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 13547 /* end confdefs.h. */
cannam@95 13548
cannam@95 13549 int
cannam@95 13550 main ()
cannam@95 13551 {
cannam@95 13552
cannam@95 13553 ;
cannam@95 13554 return 0;
cannam@95 13555 }
cannam@95 13556 _ACEOF
cannam@95 13557 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 13558 ax_cv_c_flags__fstrict_aliasing=yes
cannam@95 13559 else
cannam@95 13560 ax_cv_c_flags__fstrict_aliasing=no
cannam@95 13561 fi
cannam@95 13562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 13563 CFLAGS=$ax_save_FLAGS
cannam@95 13564 fi
cannam@95 13565
cannam@95 13566 eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing
cannam@95 13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
cannam@95 13568 $as_echo "$ax_check_compiler_flags" >&6; }
cannam@95 13569 if test "x$ax_check_compiler_flags" = xyes; then
cannam@95 13570 CFLAGS="$CFLAGS -fstrict-aliasing"
cannam@95 13571 else
cannam@95 13572 :
cannam@95 13573 fi
cannam@95 13574
cannam@95 13575
cannam@95 13576 # -fno-schedule-insns is pretty much required on all risc
cannam@95 13577 # processors.
cannam@95 13578 #
cannam@95 13579 # gcc performs one pass of instruction scheduling, then a pass of
cannam@95 13580 # register allocation, then another pass of instruction
cannam@95 13581 # scheduling. The first pass reorders instructions in a way that
cannam@95 13582 # is pretty much the worst possible for the purposes of register
cannam@95 13583 # allocation. We disable the first pass.
cannam@95 13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-schedule-insns" >&5
cannam@95 13585 $as_echo_n "checking whether C compiler accepts -fno-schedule-insns... " >&6; }
cannam@95 13586 if ${ax_cv_c_flags__fno_schedule_insns+:} false; then :
cannam@95 13587 $as_echo_n "(cached) " >&6
cannam@95 13588 else
cannam@95 13589
cannam@95 13590 ax_save_FLAGS=$CFLAGS
cannam@95 13591 CFLAGS="-fno-schedule-insns"
cannam@95 13592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 13593 /* end confdefs.h. */
cannam@95 13594
cannam@95 13595 int
cannam@95 13596 main ()
cannam@95 13597 {
cannam@95 13598
cannam@95 13599 ;
cannam@95 13600 return 0;
cannam@95 13601 }
cannam@95 13602 _ACEOF
cannam@95 13603 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 13604 ax_cv_c_flags__fno_schedule_insns=yes
cannam@95 13605 else
cannam@95 13606 ax_cv_c_flags__fno_schedule_insns=no
cannam@95 13607 fi
cannam@95 13608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 13609 CFLAGS=$ax_save_FLAGS
cannam@95 13610 fi
cannam@95 13611
cannam@95 13612 eval ax_check_compiler_flags=$ax_cv_c_flags__fno_schedule_insns
cannam@95 13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
cannam@95 13614 $as_echo "$ax_check_compiler_flags" >&6; }
cannam@95 13615 if test "x$ax_check_compiler_flags" = xyes; then
cannam@95 13616 CFLAGS="$CFLAGS -fno-schedule-insns"
cannam@95 13617 else
cannam@95 13618 :
cannam@95 13619 fi
cannam@95 13620
cannam@95 13621
cannam@95 13622 # note that we enable "unsafe" fp optimization with other compilers, too
cannam@95 13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
cannam@95 13624 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
cannam@95 13625 if ${ax_cv_c_flags__ffast_math+:} false; then :
cannam@95 13626 $as_echo_n "(cached) " >&6
cannam@95 13627 else
cannam@95 13628
cannam@95 13629 ax_save_FLAGS=$CFLAGS
cannam@95 13630 CFLAGS="-ffast-math"
cannam@95 13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 13632 /* end confdefs.h. */
cannam@95 13633
cannam@95 13634 int
cannam@95 13635 main ()
cannam@95 13636 {
cannam@95 13637
cannam@95 13638 ;
cannam@95 13639 return 0;
cannam@95 13640 }
cannam@95 13641 _ACEOF
cannam@95 13642 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 13643 ax_cv_c_flags__ffast_math=yes
cannam@95 13644 else
cannam@95 13645 ax_cv_c_flags__ffast_math=no
cannam@95 13646 fi
cannam@95 13647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 13648 CFLAGS=$ax_save_FLAGS
cannam@95 13649 fi
cannam@95 13650
cannam@95 13651 eval ax_check_compiler_flags=$ax_cv_c_flags__ffast_math
cannam@95 13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
cannam@95 13653 $as_echo "$ax_check_compiler_flags" >&6; }
cannam@95 13654 if test "x$ax_check_compiler_flags" = xyes; then
cannam@95 13655 CFLAGS="$CFLAGS -ffast-math"
cannam@95 13656 else
cannam@95 13657 :
cannam@95 13658 fi
cannam@95 13659
cannam@95 13660
cannam@95 13661 ;;
cannam@95 13662 esac
cannam@95 13663
cannam@95 13664 if test -z "$CFLAGS"; then
cannam@95 13665 echo ""
cannam@95 13666 echo "********************************************************"
cannam@95 13667 echo "* WARNING: Don't know the best CFLAGS for this system *"
cannam@95 13668 echo "* Use ./configure CFLAGS=... to specify your own flags *"
cannam@95 13669 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
cannam@95 13670 echo "********************************************************"
cannam@95 13671 echo ""
cannam@95 13672 CFLAGS="-O3"
cannam@95 13673 fi
cannam@95 13674
cannam@95 13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
cannam@95 13676 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
cannam@95 13677 ax_save_FLAGS=$CFLAGS
cannam@95 13678 CFLAGS="$CFLAGS"
cannam@95 13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 13680 /* end confdefs.h. */
cannam@95 13681
cannam@95 13682 int
cannam@95 13683 main ()
cannam@95 13684 {
cannam@95 13685
cannam@95 13686 ;
cannam@95 13687 return 0;
cannam@95 13688 }
cannam@95 13689 _ACEOF
cannam@95 13690 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 13691 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=yes
cannam@95 13692 else
cannam@95 13693 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=no
cannam@95 13694 fi
cannam@95 13695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 13696 CFLAGS=$ax_save_FLAGS
cannam@95 13697 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`
cannam@95 13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
cannam@95 13699 $as_echo "$ax_check_compiler_flags" >&6; }
cannam@95 13700 if test "x$ax_check_compiler_flags" = xyes; then
cannam@95 13701 :
cannam@95 13702 else
cannam@95 13703
cannam@95 13704 echo ""
cannam@95 13705 echo "********************************************************"
cannam@95 13706 echo "* WARNING: The guessed CFLAGS don't seem to work with *"
cannam@95 13707 echo "* your compiler. *"
cannam@95 13708 echo "* Use ./configure CFLAGS=... to specify your own flags *"
cannam@95 13709 echo "********************************************************"
cannam@95 13710 echo ""
cannam@95 13711 CFLAGS=""
cannam@95 13712
cannam@95 13713 fi
cannam@95 13714
cannam@95 13715
cannam@95 13716 fi
cannam@95 13717
cannam@95 13718
cannam@95 13719 case "${ax_cv_c_compiler_vendor}" in
cannam@95 13720 intel) # Stop icc from defining __GNUC__, except on MacOS where this fails
cannam@95 13721 case "${host_os}" in
cannam@95 13722 *darwin*) ;; # icc -no-gcc fails to compile some system headers
cannam@95 13723 *)
cannam@95 13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -no-gcc" >&5
cannam@95 13725 $as_echo_n "checking whether C compiler accepts -no-gcc... " >&6; }
cannam@95 13726 if ${ax_cv_c_flags__no_gcc+:} false; then :
cannam@95 13727 $as_echo_n "(cached) " >&6
cannam@95 13728 else
cannam@95 13729
cannam@95 13730 ax_save_FLAGS=$CFLAGS
cannam@95 13731 CFLAGS="-no-gcc"
cannam@95 13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 13733 /* end confdefs.h. */
cannam@95 13734
cannam@95 13735 int
cannam@95 13736 main ()
cannam@95 13737 {
cannam@95 13738
cannam@95 13739 ;
cannam@95 13740 return 0;
cannam@95 13741 }
cannam@95 13742 _ACEOF
cannam@95 13743 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 13744 ax_cv_c_flags__no_gcc=yes
cannam@95 13745 else
cannam@95 13746 ax_cv_c_flags__no_gcc=no
cannam@95 13747 fi
cannam@95 13748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 13749 CFLAGS=$ax_save_FLAGS
cannam@95 13750 fi
cannam@95 13751
cannam@95 13752 eval ax_check_compiler_flags=$ax_cv_c_flags__no_gcc
cannam@95 13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
cannam@95 13754 $as_echo "$ax_check_compiler_flags" >&6; }
cannam@95 13755 if test "x$ax_check_compiler_flags" = xyes; then
cannam@95 13756 CC="$CC -no-gcc"
cannam@95 13757 else
cannam@95 13758 :
cannam@95 13759 fi
cannam@95 13760
cannam@95 13761 ;;
cannam@95 13762 esac
cannam@95 13763 ;;
cannam@95 13764
cannam@95 13765 hp) # must (sometimes) manually increase cpp limits to handle fftw3.h
cannam@95 13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wp,-H128000" >&5
cannam@95 13767 $as_echo_n "checking whether C compiler accepts -Wp,-H128000... " >&6; }
cannam@95 13768 if ${ax_cv_c_flags__Wp+:} false; then :
cannam@95 13769 $as_echo_n "(cached) " >&6
cannam@95 13770 else
cannam@95 13771
cannam@95 13772 ax_save_FLAGS=$CFLAGS
cannam@95 13773 CFLAGS="-Wp,-H128000"
cannam@95 13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 13775 /* end confdefs.h. */
cannam@95 13776
cannam@95 13777 int
cannam@95 13778 main ()
cannam@95 13779 {
cannam@95 13780
cannam@95 13781 ;
cannam@95 13782 return 0;
cannam@95 13783 }
cannam@95 13784 _ACEOF
cannam@95 13785 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 13786 ax_cv_c_flags__Wp=yes
cannam@95 13787 else
cannam@95 13788 ax_cv_c_flags__Wp=no
cannam@95 13789 fi
cannam@95 13790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 13791 CFLAGS=$ax_save_FLAGS
cannam@95 13792 fi
cannam@95 13793
cannam@95 13794 eval ax_check_compiler_flags=$ax_cv_c_flags__Wp
cannam@95 13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
cannam@95 13796 $as_echo "$ax_check_compiler_flags" >&6; }
cannam@95 13797 if test "x$ax_check_compiler_flags" = xyes; then
cannam@95 13798 CC="$CC -Wp,-H128000"
cannam@95 13799 else
cannam@95 13800 :
cannam@95 13801 fi
cannam@95 13802
cannam@95 13803 ;;
cannam@95 13804
cannam@95 13805 portland) # -Masmkeyword required for asm("") cycle counters
cannam@95 13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Masmkeyword" >&5
cannam@95 13807 $as_echo_n "checking whether C compiler accepts -Masmkeyword... " >&6; }
cannam@95 13808 if ${ax_cv_c_flags__Masmkeyword+:} false; then :
cannam@95 13809 $as_echo_n "(cached) " >&6
cannam@95 13810 else
cannam@95 13811
cannam@95 13812 ax_save_FLAGS=$CFLAGS
cannam@95 13813 CFLAGS="-Masmkeyword"
cannam@95 13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 13815 /* end confdefs.h. */
cannam@95 13816
cannam@95 13817 int
cannam@95 13818 main ()
cannam@95 13819 {
cannam@95 13820
cannam@95 13821 ;
cannam@95 13822 return 0;
cannam@95 13823 }
cannam@95 13824 _ACEOF
cannam@95 13825 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 13826 ax_cv_c_flags__Masmkeyword=yes
cannam@95 13827 else
cannam@95 13828 ax_cv_c_flags__Masmkeyword=no
cannam@95 13829 fi
cannam@95 13830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 13831 CFLAGS=$ax_save_FLAGS
cannam@95 13832 fi
cannam@95 13833
cannam@95 13834 eval ax_check_compiler_flags=$ax_cv_c_flags__Masmkeyword
cannam@95 13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
cannam@95 13836 $as_echo "$ax_check_compiler_flags" >&6; }
cannam@95 13837 if test "x$ax_check_compiler_flags" = xyes; then
cannam@95 13838 CC="$CC -Masmkeyword"
cannam@95 13839 else
cannam@95 13840 :
cannam@95 13841 fi
cannam@95 13842
cannam@95 13843 ;;
cannam@95 13844 esac
cannam@95 13845
cannam@95 13846 case "${ax_cv_c_compiler_vendor}" in
cannam@95 13847 gnu|intel)
cannam@95 13848 # SSE/SSE2
cannam@95 13849 if test "$have_sse2" = "yes" -a "x$SSE2_CFLAGS" = x; then
cannam@95 13850 if test "$PRECISION" = d; then flag=msse2; else flag=msse; fi
cannam@95 13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -$flag" >&5
cannam@95 13852 $as_echo_n "checking whether C compiler accepts -$flag... " >&6; }
cannam@95 13853 ax_save_FLAGS=$CFLAGS
cannam@95 13854 CFLAGS="-$flag"
cannam@95 13855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 13856 /* end confdefs.h. */
cannam@95 13857
cannam@95 13858 int
cannam@95 13859 main ()
cannam@95 13860 {
cannam@95 13861
cannam@95 13862 ;
cannam@95 13863 return 0;
cannam@95 13864 }
cannam@95 13865 _ACEOF
cannam@95 13866 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 13867 eval `$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`=yes
cannam@95 13868 else
cannam@95 13869 eval `$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`=no
cannam@95 13870 fi
cannam@95 13871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 13872 CFLAGS=$ax_save_FLAGS
cannam@95 13873 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`
cannam@95 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
cannam@95 13875 $as_echo "$ax_check_compiler_flags" >&6; }
cannam@95 13876 if test "x$ax_check_compiler_flags" = xyes; then
cannam@95 13877 SSE2_CFLAGS="-$flag"
cannam@95 13878 else
cannam@95 13879 as_fn_error $? "Need a version of gcc with -$flag" "$LINENO" 5
cannam@95 13880 fi
cannam@95 13881
cannam@95 13882 fi
cannam@95 13883
cannam@95 13884 # AVX
cannam@95 13885 if test "$have_avx" = "yes" -a "x$AVX_CFLAGS" = x; then
cannam@95 13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
cannam@95 13887 $as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
cannam@95 13888 if ${ax_cv_c_flags__mavx+:} false; then :
cannam@95 13889 $as_echo_n "(cached) " >&6
cannam@95 13890 else
cannam@95 13891
cannam@95 13892 ax_save_FLAGS=$CFLAGS
cannam@95 13893 CFLAGS="-mavx"
cannam@95 13894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 13895 /* end confdefs.h. */
cannam@95 13896
cannam@95 13897 int
cannam@95 13898 main ()
cannam@95 13899 {
cannam@95 13900
cannam@95 13901 ;
cannam@95 13902 return 0;
cannam@95 13903 }
cannam@95 13904 _ACEOF
cannam@95 13905 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 13906 ax_cv_c_flags__mavx=yes
cannam@95 13907 else
cannam@95 13908 ax_cv_c_flags__mavx=no
cannam@95 13909 fi
cannam@95 13910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 13911 CFLAGS=$ax_save_FLAGS
cannam@95 13912 fi
cannam@95 13913
cannam@95 13914 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx
cannam@95 13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
cannam@95 13916 $as_echo "$ax_check_compiler_flags" >&6; }
cannam@95 13917 if test "x$ax_check_compiler_flags" = xyes; then
cannam@95 13918 AVX_CFLAGS="-mavx"
cannam@95 13919 else
cannam@95 13920 as_fn_error $? "Need a version of gcc with -mavx" "$LINENO" 5
cannam@95 13921 fi
cannam@95 13922
cannam@95 13923 fi
cannam@95 13924
cannam@95 13925 if test "$have_altivec" = "yes" -a "x$ALTIVEC_CFLAGS" = x; then
cannam@95 13926 # -DFAKE__VEC__ is a workaround because gcc-3.3 does not
cannam@95 13927 # #define __VEC__ with -maltivec.
cannam@95 13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -faltivec" >&5
cannam@95 13929 $as_echo_n "checking whether C compiler accepts -faltivec... " >&6; }
cannam@95 13930 if ${ax_cv_c_flags__faltivec+:} false; then :
cannam@95 13931 $as_echo_n "(cached) " >&6
cannam@95 13932 else
cannam@95 13933
cannam@95 13934 ax_save_FLAGS=$CFLAGS
cannam@95 13935 CFLAGS="-faltivec"
cannam@95 13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 13937 /* end confdefs.h. */
cannam@95 13938
cannam@95 13939 int
cannam@95 13940 main ()
cannam@95 13941 {
cannam@95 13942
cannam@95 13943 ;
cannam@95 13944 return 0;
cannam@95 13945 }
cannam@95 13946 _ACEOF
cannam@95 13947 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 13948 ax_cv_c_flags__faltivec=yes
cannam@95 13949 else
cannam@95 13950 ax_cv_c_flags__faltivec=no
cannam@95 13951 fi
cannam@95 13952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 13953 CFLAGS=$ax_save_FLAGS
cannam@95 13954 fi
cannam@95 13955
cannam@95 13956 eval ax_check_compiler_flags=$ax_cv_c_flags__faltivec
cannam@95 13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
cannam@95 13958 $as_echo "$ax_check_compiler_flags" >&6; }
cannam@95 13959 if test "x$ax_check_compiler_flags" = xyes; then
cannam@95 13960 ALTIVEC_CFLAGS="-faltivec"
cannam@95 13961 else
cannam@95 13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maltivec -mabi=altivec" >&5
cannam@95 13963 $as_echo_n "checking whether C compiler accepts -maltivec -mabi=altivec... " >&6; }
cannam@95 13964 if ${ax_cv_c_flags__maltivec__mabi_altivec+:} false; then :
cannam@95 13965 $as_echo_n "(cached) " >&6
cannam@95 13966 else
cannam@95 13967
cannam@95 13968 ax_save_FLAGS=$CFLAGS
cannam@95 13969 CFLAGS="-maltivec -mabi=altivec"
cannam@95 13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 13971 /* end confdefs.h. */
cannam@95 13972
cannam@95 13973 int
cannam@95 13974 main ()
cannam@95 13975 {
cannam@95 13976
cannam@95 13977 ;
cannam@95 13978 return 0;
cannam@95 13979 }
cannam@95 13980 _ACEOF
cannam@95 13981 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 13982 ax_cv_c_flags__maltivec__mabi_altivec=yes
cannam@95 13983 else
cannam@95 13984 ax_cv_c_flags__maltivec__mabi_altivec=no
cannam@95 13985 fi
cannam@95 13986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 13987 CFLAGS=$ax_save_FLAGS
cannam@95 13988 fi
cannam@95 13989
cannam@95 13990 eval ax_check_compiler_flags=$ax_cv_c_flags__maltivec__mabi_altivec
cannam@95 13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
cannam@95 13992 $as_echo "$ax_check_compiler_flags" >&6; }
cannam@95 13993 if test "x$ax_check_compiler_flags" = xyes; then
cannam@95 13994 ALTIVEC_CFLAGS="-maltivec -mabi=altivec -DFAKE__VEC__"
cannam@95 13995 else
cannam@95 13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvec" >&5
cannam@95 13997 $as_echo_n "checking whether C compiler accepts -fvec... " >&6; }
cannam@95 13998 if ${ax_cv_c_flags__fvec+:} false; then :
cannam@95 13999 $as_echo_n "(cached) " >&6
cannam@95 14000 else
cannam@95 14001
cannam@95 14002 ax_save_FLAGS=$CFLAGS
cannam@95 14003 CFLAGS="-fvec"
cannam@95 14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 14005 /* end confdefs.h. */
cannam@95 14006
cannam@95 14007 int
cannam@95 14008 main ()
cannam@95 14009 {
cannam@95 14010
cannam@95 14011 ;
cannam@95 14012 return 0;
cannam@95 14013 }
cannam@95 14014 _ACEOF
cannam@95 14015 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 14016 ax_cv_c_flags__fvec=yes
cannam@95 14017 else
cannam@95 14018 ax_cv_c_flags__fvec=no
cannam@95 14019 fi
cannam@95 14020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 14021 CFLAGS=$ax_save_FLAGS
cannam@95 14022 fi
cannam@95 14023
cannam@95 14024 eval ax_check_compiler_flags=$ax_cv_c_flags__fvec
cannam@95 14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
cannam@95 14026 $as_echo "$ax_check_compiler_flags" >&6; }
cannam@95 14027 if test "x$ax_check_compiler_flags" = xyes; then
cannam@95 14028 ALTIVEC_CFLAGS="-fvec"
cannam@95 14029 else
cannam@95 14030 as_fn_error $? "Need a version of gcc with -maltivec" "$LINENO" 5
cannam@95 14031 fi
cannam@95 14032
cannam@95 14033 fi
cannam@95 14034
cannam@95 14035 fi
cannam@95 14036
cannam@95 14037 fi
cannam@95 14038
cannam@95 14039 if test "$have_neon" = "yes" -a "x$NEON_CFLAGS" = x; then
cannam@95 14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfpu=neon" >&5
cannam@95 14041 $as_echo_n "checking whether C compiler accepts -mfpu=neon... " >&6; }
cannam@95 14042 if ${ax_cv_c_flags__mfpu_neon+:} false; then :
cannam@95 14043 $as_echo_n "(cached) " >&6
cannam@95 14044 else
cannam@95 14045
cannam@95 14046 ax_save_FLAGS=$CFLAGS
cannam@95 14047 CFLAGS="-mfpu=neon"
cannam@95 14048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 14049 /* end confdefs.h. */
cannam@95 14050
cannam@95 14051 int
cannam@95 14052 main ()
cannam@95 14053 {
cannam@95 14054
cannam@95 14055 ;
cannam@95 14056 return 0;
cannam@95 14057 }
cannam@95 14058 _ACEOF
cannam@95 14059 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 14060 ax_cv_c_flags__mfpu_neon=yes
cannam@95 14061 else
cannam@95 14062 ax_cv_c_flags__mfpu_neon=no
cannam@95 14063 fi
cannam@95 14064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 14065 CFLAGS=$ax_save_FLAGS
cannam@95 14066 fi
cannam@95 14067
cannam@95 14068 eval ax_check_compiler_flags=$ax_cv_c_flags__mfpu_neon
cannam@95 14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
cannam@95 14070 $as_echo "$ax_check_compiler_flags" >&6; }
cannam@95 14071 if test "x$ax_check_compiler_flags" = xyes; then
cannam@95 14072 NEON_CFLAGS="-mfpu=neon"
cannam@95 14073 else
cannam@95 14074 as_fn_error $? "Need a version of gcc with -mfpu=neon" "$LINENO" 5
cannam@95 14075 fi
cannam@95 14076
cannam@95 14077 fi
cannam@95 14078
cannam@95 14079 ;;
cannam@95 14080 esac
cannam@95 14081
cannam@95 14082
cannam@95 14083
cannam@95 14084
cannam@95 14085
cannam@95 14086
cannam@95 14087 if test "$with_incoming_stack_boundary"x != "no"x; then
cannam@95 14088 case "${ax_cv_c_compiler_vendor}" in
cannam@95 14089 gnu)
cannam@95 14090 tentative_flags="-mincoming-stack-boundary=$with_incoming_stack_boundary";
cannam@95 14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $tentative_flags" >&5
cannam@95 14092 $as_echo_n "checking whether C compiler accepts $tentative_flags... " >&6; }
cannam@95 14093 ax_save_FLAGS=$CFLAGS
cannam@95 14094 CFLAGS="$tentative_flags"
cannam@95 14095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 14096 /* end confdefs.h. */
cannam@95 14097
cannam@95 14098 int
cannam@95 14099 main ()
cannam@95 14100 {
cannam@95 14101
cannam@95 14102 ;
cannam@95 14103 return 0;
cannam@95 14104 }
cannam@95 14105 _ACEOF
cannam@95 14106 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 14107 eval `$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`=yes
cannam@95 14108 else
cannam@95 14109 eval `$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`=no
cannam@95 14110 fi
cannam@95 14111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 14112 CFLAGS=$ax_save_FLAGS
cannam@95 14113 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`
cannam@95 14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
cannam@95 14115 $as_echo "$ax_check_compiler_flags" >&6; }
cannam@95 14116 if test "x$ax_check_compiler_flags" = xyes; then
cannam@95 14117 STACK_ALIGN_CFLAGS=$tentative_flags
cannam@95 14118 else
cannam@95 14119 :
cannam@95 14120 fi
cannam@95 14121
cannam@95 14122 ;;
cannam@95 14123 esac
cannam@95 14124 fi
cannam@95 14125
cannam@95 14126
cannam@95 14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cannam@95 14128 $as_echo_n "checking for ANSI C header files... " >&6; }
cannam@95 14129 if ${ac_cv_header_stdc+:} false; then :
cannam@95 14130 $as_echo_n "(cached) " >&6
cannam@95 14131 else
cannam@95 14132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 14133 /* end confdefs.h. */
cannam@95 14134 #include <stdlib.h>
cannam@95 14135 #include <stdarg.h>
cannam@95 14136 #include <string.h>
cannam@95 14137 #include <float.h>
cannam@95 14138
cannam@95 14139 int
cannam@95 14140 main ()
cannam@95 14141 {
cannam@95 14142
cannam@95 14143 ;
cannam@95 14144 return 0;
cannam@95 14145 }
cannam@95 14146 _ACEOF
cannam@95 14147 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 14148 ac_cv_header_stdc=yes
cannam@95 14149 else
cannam@95 14150 ac_cv_header_stdc=no
cannam@95 14151 fi
cannam@95 14152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 14153
cannam@95 14154 if test $ac_cv_header_stdc = yes; then
cannam@95 14155 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cannam@95 14156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 14157 /* end confdefs.h. */
cannam@95 14158 #include <string.h>
cannam@95 14159
cannam@95 14160 _ACEOF
cannam@95 14161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@95 14162 $EGREP "memchr" >/dev/null 2>&1; then :
cannam@95 14163
cannam@95 14164 else
cannam@95 14165 ac_cv_header_stdc=no
cannam@95 14166 fi
cannam@95 14167 rm -f conftest*
cannam@95 14168
cannam@95 14169 fi
cannam@95 14170
cannam@95 14171 if test $ac_cv_header_stdc = yes; then
cannam@95 14172 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cannam@95 14173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 14174 /* end confdefs.h. */
cannam@95 14175 #include <stdlib.h>
cannam@95 14176
cannam@95 14177 _ACEOF
cannam@95 14178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@95 14179 $EGREP "free" >/dev/null 2>&1; then :
cannam@95 14180
cannam@95 14181 else
cannam@95 14182 ac_cv_header_stdc=no
cannam@95 14183 fi
cannam@95 14184 rm -f conftest*
cannam@95 14185
cannam@95 14186 fi
cannam@95 14187
cannam@95 14188 if test $ac_cv_header_stdc = yes; then
cannam@95 14189 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cannam@95 14190 if test "$cross_compiling" = yes; then :
cannam@95 14191 :
cannam@95 14192 else
cannam@95 14193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 14194 /* end confdefs.h. */
cannam@95 14195 #include <ctype.h>
cannam@95 14196 #include <stdlib.h>
cannam@95 14197 #if ((' ' & 0x0FF) == 0x020)
cannam@95 14198 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
cannam@95 14199 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
cannam@95 14200 #else
cannam@95 14201 # define ISLOWER(c) \
cannam@95 14202 (('a' <= (c) && (c) <= 'i') \
cannam@95 14203 || ('j' <= (c) && (c) <= 'r') \
cannam@95 14204 || ('s' <= (c) && (c) <= 'z'))
cannam@95 14205 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
cannam@95 14206 #endif
cannam@95 14207
cannam@95 14208 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
cannam@95 14209 int
cannam@95 14210 main ()
cannam@95 14211 {
cannam@95 14212 int i;
cannam@95 14213 for (i = 0; i < 256; i++)
cannam@95 14214 if (XOR (islower (i), ISLOWER (i))
cannam@95 14215 || toupper (i) != TOUPPER (i))
cannam@95 14216 return 2;
cannam@95 14217 return 0;
cannam@95 14218 }
cannam@95 14219 _ACEOF
cannam@95 14220 if ac_fn_c_try_run "$LINENO"; then :
cannam@95 14221
cannam@95 14222 else
cannam@95 14223 ac_cv_header_stdc=no
cannam@95 14224 fi
cannam@95 14225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@95 14226 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@95 14227 fi
cannam@95 14228
cannam@95 14229 fi
cannam@95 14230 fi
cannam@95 14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cannam@95 14232 $as_echo "$ac_cv_header_stdc" >&6; }
cannam@95 14233 if test $ac_cv_header_stdc = yes; then
cannam@95 14234
cannam@95 14235 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
cannam@95 14236
cannam@95 14237 fi
cannam@95 14238
cannam@95 14239 for ac_header in libintl.h malloc.h stddef.h stdlib.h string.h strings.h sys/time.h unistd.h limits.h c_asm.h intrinsics.h stdint.h mach/mach_time.h sys/sysctl.h
cannam@95 14240 do :
cannam@95 14241 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cannam@95 14242 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cannam@95 14243 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cannam@95 14244 cat >>confdefs.h <<_ACEOF
cannam@95 14245 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
cannam@95 14246 _ACEOF
cannam@95 14247
cannam@95 14248 fi
cannam@95 14249
cannam@95 14250 done
cannam@95 14251
cannam@95 14252
cannam@95 14253 save_CFLAGS="$CFLAGS"
cannam@95 14254 save_CPPFLAGS="$CPPFLAGS"
cannam@95 14255 CFLAGS="$CFLAGS $ALTIVEC_CFLAGS"
cannam@95 14256 CPPFLAGS="$CPPFLAGS $ALTIVEC_CFLAGS"
cannam@95 14257 for ac_header in altivec.h
cannam@95 14258 do :
cannam@95 14259 ac_fn_c_check_header_mongrel "$LINENO" "altivec.h" "ac_cv_header_altivec_h" "$ac_includes_default"
cannam@95 14260 if test "x$ac_cv_header_altivec_h" = xyes; then :
cannam@95 14261 cat >>confdefs.h <<_ACEOF
cannam@95 14262 #define HAVE_ALTIVEC_H 1
cannam@95 14263 _ACEOF
cannam@95 14264
cannam@95 14265 fi
cannam@95 14266
cannam@95 14267 done
cannam@95 14268
cannam@95 14269 CFLAGS="$save_CFLAGS"
cannam@95 14270 CPPFLAGS="$save_CPPFLAGS"
cannam@95 14271
cannam@95 14272
cannam@95 14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
cannam@95 14274 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
cannam@95 14275 if ${ac_cv_c_const+:} false; then :
cannam@95 14276 $as_echo_n "(cached) " >&6
cannam@95 14277 else
cannam@95 14278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 14279 /* end confdefs.h. */
cannam@95 14280
cannam@95 14281 int
cannam@95 14282 main ()
cannam@95 14283 {
cannam@95 14284
cannam@95 14285 #ifndef __cplusplus
cannam@95 14286 /* Ultrix mips cc rejects this sort of thing. */
cannam@95 14287 typedef int charset[2];
cannam@95 14288 const charset cs = { 0, 0 };
cannam@95 14289 /* SunOS 4.1.1 cc rejects this. */
cannam@95 14290 char const *const *pcpcc;
cannam@95 14291 char **ppc;
cannam@95 14292 /* NEC SVR4.0.2 mips cc rejects this. */
cannam@95 14293 struct point {int x, y;};
cannam@95 14294 static struct point const zero = {0,0};
cannam@95 14295 /* AIX XL C 1.02.0.0 rejects this.
cannam@95 14296 It does not let you subtract one const X* pointer from another in
cannam@95 14297 an arm of an if-expression whose if-part is not a constant
cannam@95 14298 expression */
cannam@95 14299 const char *g = "string";
cannam@95 14300 pcpcc = &g + (g ? g-g : 0);
cannam@95 14301 /* HPUX 7.0 cc rejects these. */
cannam@95 14302 ++pcpcc;
cannam@95 14303 ppc = (char**) pcpcc;
cannam@95 14304 pcpcc = (char const *const *) ppc;
cannam@95 14305 { /* SCO 3.2v4 cc rejects this sort of thing. */
cannam@95 14306 char tx;
cannam@95 14307 char *t = &tx;
cannam@95 14308 char const *s = 0 ? (char *) 0 : (char const *) 0;
cannam@95 14309
cannam@95 14310 *t++ = 0;
cannam@95 14311 if (s) return 0;
cannam@95 14312 }
cannam@95 14313 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
cannam@95 14314 int x[] = {25, 17};
cannam@95 14315 const int *foo = &x[0];
cannam@95 14316 ++foo;
cannam@95 14317 }
cannam@95 14318 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
cannam@95 14319 typedef const int *iptr;
cannam@95 14320 iptr p = 0;
cannam@95 14321 ++p;
cannam@95 14322 }
cannam@95 14323 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
cannam@95 14324 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
cannam@95 14325 struct s { int j; const int *ap[3]; } bx;
cannam@95 14326 struct s *b = &bx; b->j = 5;
cannam@95 14327 }
cannam@95 14328 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
cannam@95 14329 const int foo = 10;
cannam@95 14330 if (!foo) return 0;
cannam@95 14331 }
cannam@95 14332 return !cs[0] && !zero.x;
cannam@95 14333 #endif
cannam@95 14334
cannam@95 14335 ;
cannam@95 14336 return 0;
cannam@95 14337 }
cannam@95 14338 _ACEOF
cannam@95 14339 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 14340 ac_cv_c_const=yes
cannam@95 14341 else
cannam@95 14342 ac_cv_c_const=no
cannam@95 14343 fi
cannam@95 14344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 14345 fi
cannam@95 14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
cannam@95 14347 $as_echo "$ac_cv_c_const" >&6; }
cannam@95 14348 if test $ac_cv_c_const = no; then
cannam@95 14349
cannam@95 14350 $as_echo "#define const /**/" >>confdefs.h
cannam@95 14351
cannam@95 14352 fi
cannam@95 14353
cannam@95 14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cannam@95 14355 $as_echo_n "checking for inline... " >&6; }
cannam@95 14356 if ${ac_cv_c_inline+:} false; then :
cannam@95 14357 $as_echo_n "(cached) " >&6
cannam@95 14358 else
cannam@95 14359 ac_cv_c_inline=no
cannam@95 14360 for ac_kw in inline __inline__ __inline; do
cannam@95 14361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 14362 /* end confdefs.h. */
cannam@95 14363 #ifndef __cplusplus
cannam@95 14364 typedef int foo_t;
cannam@95 14365 static $ac_kw foo_t static_foo () {return 0; }
cannam@95 14366 $ac_kw foo_t foo () {return 0; }
cannam@95 14367 #endif
cannam@95 14368
cannam@95 14369 _ACEOF
cannam@95 14370 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 14371 ac_cv_c_inline=$ac_kw
cannam@95 14372 fi
cannam@95 14373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 14374 test "$ac_cv_c_inline" != no && break
cannam@95 14375 done
cannam@95 14376
cannam@95 14377 fi
cannam@95 14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cannam@95 14379 $as_echo "$ac_cv_c_inline" >&6; }
cannam@95 14380
cannam@95 14381 case $ac_cv_c_inline in
cannam@95 14382 inline | yes) ;;
cannam@95 14383 *)
cannam@95 14384 case $ac_cv_c_inline in
cannam@95 14385 no) ac_val=;;
cannam@95 14386 *) ac_val=$ac_cv_c_inline;;
cannam@95 14387 esac
cannam@95 14388 cat >>confdefs.h <<_ACEOF
cannam@95 14389 #ifndef __cplusplus
cannam@95 14390 #define inline $ac_val
cannam@95 14391 #endif
cannam@95 14392 _ACEOF
cannam@95 14393 ;;
cannam@95 14394 esac
cannam@95 14395
cannam@95 14396 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
cannam@95 14397 if test "x$ac_cv_type_size_t" = xyes; then :
cannam@95 14398
cannam@95 14399 else
cannam@95 14400
cannam@95 14401 cat >>confdefs.h <<_ACEOF
cannam@95 14402 #define size_t unsigned int
cannam@95 14403 _ACEOF
cannam@95 14404
cannam@95 14405 fi
cannam@95 14406
cannam@95 14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
cannam@95 14408 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cannam@95 14409 if ${ac_cv_header_time+:} false; then :
cannam@95 14410 $as_echo_n "(cached) " >&6
cannam@95 14411 else
cannam@95 14412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 14413 /* end confdefs.h. */
cannam@95 14414 #include <sys/types.h>
cannam@95 14415 #include <sys/time.h>
cannam@95 14416 #include <time.h>
cannam@95 14417
cannam@95 14418 int
cannam@95 14419 main ()
cannam@95 14420 {
cannam@95 14421 if ((struct tm *) 0)
cannam@95 14422 return 0;
cannam@95 14423 ;
cannam@95 14424 return 0;
cannam@95 14425 }
cannam@95 14426 _ACEOF
cannam@95 14427 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 14428 ac_cv_header_time=yes
cannam@95 14429 else
cannam@95 14430 ac_cv_header_time=no
cannam@95 14431 fi
cannam@95 14432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 14433 fi
cannam@95 14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cannam@95 14435 $as_echo "$ac_cv_header_time" >&6; }
cannam@95 14436 if test $ac_cv_header_time = yes; then
cannam@95 14437
cannam@95 14438 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cannam@95 14439
cannam@95 14440 fi
cannam@95 14441
cannam@95 14442 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
cannam@95 14443 if test "x$ac_cv_type_long_double" = xyes; then :
cannam@95 14444
cannam@95 14445 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cannam@95 14446
cannam@95 14447 else
cannam@95 14448
cannam@95 14449 if test $PRECISION = l; then
cannam@95 14450 as_fn_error $? "long double is not a supported type with your compiler." "$LINENO" 5
cannam@95 14451 fi
cannam@95 14452
cannam@95 14453 fi
cannam@95 14454
cannam@95 14455 ac_fn_c_check_type "$LINENO" "hrtime_t" "ac_cv_type_hrtime_t" "
cannam@95 14456 #if HAVE_SYS_TIME_H
cannam@95 14457 #include <sys/time.h>
cannam@95 14458 #endif
cannam@95 14459
cannam@95 14460 "
cannam@95 14461 if test "x$ac_cv_type_hrtime_t" = xyes; then :
cannam@95 14462
cannam@95 14463 $as_echo "#define HAVE_HRTIME_T 1" >>confdefs.h
cannam@95 14464
cannam@95 14465 fi
cannam@95 14466
cannam@95 14467
cannam@95 14468 # The cast to long int works around a bug in the HP C Compiler
cannam@95 14469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@95 14470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@95 14471 # This bug is HP SR number 8606223364.
cannam@95 14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
cannam@95 14473 $as_echo_n "checking size of int... " >&6; }
cannam@95 14474 if ${ac_cv_sizeof_int+:} false; then :
cannam@95 14475 $as_echo_n "(cached) " >&6
cannam@95 14476 else
cannam@95 14477 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
cannam@95 14478
cannam@95 14479 else
cannam@95 14480 if test "$ac_cv_type_int" = yes; then
cannam@95 14481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@95 14482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@95 14483 as_fn_error 77 "cannot compute sizeof (int)
cannam@95 14484 See \`config.log' for more details" "$LINENO" 5; }
cannam@95 14485 else
cannam@95 14486 ac_cv_sizeof_int=0
cannam@95 14487 fi
cannam@95 14488 fi
cannam@95 14489
cannam@95 14490 fi
cannam@95 14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
cannam@95 14492 $as_echo "$ac_cv_sizeof_int" >&6; }
cannam@95 14493
cannam@95 14494
cannam@95 14495
cannam@95 14496 cat >>confdefs.h <<_ACEOF
cannam@95 14497 #define SIZEOF_INT $ac_cv_sizeof_int
cannam@95 14498 _ACEOF
cannam@95 14499
cannam@95 14500
cannam@95 14501 # The cast to long int works around a bug in the HP C Compiler
cannam@95 14502 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@95 14503 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@95 14504 # This bug is HP SR number 8606223364.
cannam@95 14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cannam@95 14506 $as_echo_n "checking size of unsigned int... " >&6; }
cannam@95 14507 if ${ac_cv_sizeof_unsigned_int+:} false; then :
cannam@95 14508 $as_echo_n "(cached) " >&6
cannam@95 14509 else
cannam@95 14510 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
cannam@95 14511
cannam@95 14512 else
cannam@95 14513 if test "$ac_cv_type_unsigned_int" = yes; then
cannam@95 14514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@95 14515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@95 14516 as_fn_error 77 "cannot compute sizeof (unsigned int)
cannam@95 14517 See \`config.log' for more details" "$LINENO" 5; }
cannam@95 14518 else
cannam@95 14519 ac_cv_sizeof_unsigned_int=0
cannam@95 14520 fi
cannam@95 14521 fi
cannam@95 14522
cannam@95 14523 fi
cannam@95 14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cannam@95 14525 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
cannam@95 14526
cannam@95 14527
cannam@95 14528
cannam@95 14529 cat >>confdefs.h <<_ACEOF
cannam@95 14530 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
cannam@95 14531 _ACEOF
cannam@95 14532
cannam@95 14533
cannam@95 14534 # The cast to long int works around a bug in the HP C Compiler
cannam@95 14535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@95 14536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@95 14537 # This bug is HP SR number 8606223364.
cannam@95 14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
cannam@95 14539 $as_echo_n "checking size of long... " >&6; }
cannam@95 14540 if ${ac_cv_sizeof_long+:} false; then :
cannam@95 14541 $as_echo_n "(cached) " >&6
cannam@95 14542 else
cannam@95 14543 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
cannam@95 14544
cannam@95 14545 else
cannam@95 14546 if test "$ac_cv_type_long" = yes; then
cannam@95 14547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@95 14548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@95 14549 as_fn_error 77 "cannot compute sizeof (long)
cannam@95 14550 See \`config.log' for more details" "$LINENO" 5; }
cannam@95 14551 else
cannam@95 14552 ac_cv_sizeof_long=0
cannam@95 14553 fi
cannam@95 14554 fi
cannam@95 14555
cannam@95 14556 fi
cannam@95 14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
cannam@95 14558 $as_echo "$ac_cv_sizeof_long" >&6; }
cannam@95 14559
cannam@95 14560
cannam@95 14561
cannam@95 14562 cat >>confdefs.h <<_ACEOF
cannam@95 14563 #define SIZEOF_LONG $ac_cv_sizeof_long
cannam@95 14564 _ACEOF
cannam@95 14565
cannam@95 14566
cannam@95 14567 # The cast to long int works around a bug in the HP C Compiler
cannam@95 14568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@95 14569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@95 14570 # This bug is HP SR number 8606223364.
cannam@95 14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cannam@95 14572 $as_echo_n "checking size of unsigned long... " >&6; }
cannam@95 14573 if ${ac_cv_sizeof_unsigned_long+:} false; then :
cannam@95 14574 $as_echo_n "(cached) " >&6
cannam@95 14575 else
cannam@95 14576 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
cannam@95 14577
cannam@95 14578 else
cannam@95 14579 if test "$ac_cv_type_unsigned_long" = yes; then
cannam@95 14580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@95 14581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@95 14582 as_fn_error 77 "cannot compute sizeof (unsigned long)
cannam@95 14583 See \`config.log' for more details" "$LINENO" 5; }
cannam@95 14584 else
cannam@95 14585 ac_cv_sizeof_unsigned_long=0
cannam@95 14586 fi
cannam@95 14587 fi
cannam@95 14588
cannam@95 14589 fi
cannam@95 14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cannam@95 14591 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
cannam@95 14592
cannam@95 14593
cannam@95 14594
cannam@95 14595 cat >>confdefs.h <<_ACEOF
cannam@95 14596 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
cannam@95 14597 _ACEOF
cannam@95 14598
cannam@95 14599
cannam@95 14600 # The cast to long int works around a bug in the HP C Compiler
cannam@95 14601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@95 14602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@95 14603 # This bug is HP SR number 8606223364.
cannam@95 14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
cannam@95 14605 $as_echo_n "checking size of long long... " >&6; }
cannam@95 14606 if ${ac_cv_sizeof_long_long+:} false; then :
cannam@95 14607 $as_echo_n "(cached) " >&6
cannam@95 14608 else
cannam@95 14609 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
cannam@95 14610
cannam@95 14611 else
cannam@95 14612 if test "$ac_cv_type_long_long" = yes; then
cannam@95 14613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@95 14614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@95 14615 as_fn_error 77 "cannot compute sizeof (long long)
cannam@95 14616 See \`config.log' for more details" "$LINENO" 5; }
cannam@95 14617 else
cannam@95 14618 ac_cv_sizeof_long_long=0
cannam@95 14619 fi
cannam@95 14620 fi
cannam@95 14621
cannam@95 14622 fi
cannam@95 14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
cannam@95 14624 $as_echo "$ac_cv_sizeof_long_long" >&6; }
cannam@95 14625
cannam@95 14626
cannam@95 14627
cannam@95 14628 cat >>confdefs.h <<_ACEOF
cannam@95 14629 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
cannam@95 14630 _ACEOF
cannam@95 14631
cannam@95 14632
cannam@95 14633 # The cast to long int works around a bug in the HP C Compiler
cannam@95 14634 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@95 14635 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@95 14636 # This bug is HP SR number 8606223364.
cannam@95 14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cannam@95 14638 $as_echo_n "checking size of unsigned long long... " >&6; }
cannam@95 14639 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cannam@95 14640 $as_echo_n "(cached) " >&6
cannam@95 14641 else
cannam@95 14642 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
cannam@95 14643
cannam@95 14644 else
cannam@95 14645 if test "$ac_cv_type_unsigned_long_long" = yes; then
cannam@95 14646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@95 14647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@95 14648 as_fn_error 77 "cannot compute sizeof (unsigned long long)
cannam@95 14649 See \`config.log' for more details" "$LINENO" 5; }
cannam@95 14650 else
cannam@95 14651 ac_cv_sizeof_unsigned_long_long=0
cannam@95 14652 fi
cannam@95 14653 fi
cannam@95 14654
cannam@95 14655 fi
cannam@95 14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cannam@95 14657 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
cannam@95 14658
cannam@95 14659
cannam@95 14660
cannam@95 14661 cat >>confdefs.h <<_ACEOF
cannam@95 14662 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
cannam@95 14663 _ACEOF
cannam@95 14664
cannam@95 14665
cannam@95 14666 # The cast to long int works around a bug in the HP C Compiler
cannam@95 14667 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@95 14668 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@95 14669 # This bug is HP SR number 8606223364.
cannam@95 14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cannam@95 14671 $as_echo_n "checking size of size_t... " >&6; }
cannam@95 14672 if ${ac_cv_sizeof_size_t+:} false; then :
cannam@95 14673 $as_echo_n "(cached) " >&6
cannam@95 14674 else
cannam@95 14675 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
cannam@95 14676
cannam@95 14677 else
cannam@95 14678 if test "$ac_cv_type_size_t" = yes; then
cannam@95 14679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@95 14680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@95 14681 as_fn_error 77 "cannot compute sizeof (size_t)
cannam@95 14682 See \`config.log' for more details" "$LINENO" 5; }
cannam@95 14683 else
cannam@95 14684 ac_cv_sizeof_size_t=0
cannam@95 14685 fi
cannam@95 14686 fi
cannam@95 14687
cannam@95 14688 fi
cannam@95 14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cannam@95 14690 $as_echo "$ac_cv_sizeof_size_t" >&6; }
cannam@95 14691
cannam@95 14692
cannam@95 14693
cannam@95 14694 cat >>confdefs.h <<_ACEOF
cannam@95 14695 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
cannam@95 14696 _ACEOF
cannam@95 14697
cannam@95 14698
cannam@95 14699 # The cast to long int works around a bug in the HP C Compiler
cannam@95 14700 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@95 14701 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@95 14702 # This bug is HP SR number 8606223364.
cannam@95 14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5
cannam@95 14704 $as_echo_n "checking size of ptrdiff_t... " >&6; }
cannam@95 14705 if ${ac_cv_sizeof_ptrdiff_t+:} false; then :
cannam@95 14706 $as_echo_n "(cached) " >&6
cannam@95 14707 else
cannam@95 14708 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "$ac_includes_default"; then :
cannam@95 14709
cannam@95 14710 else
cannam@95 14711 if test "$ac_cv_type_ptrdiff_t" = yes; then
cannam@95 14712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@95 14713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@95 14714 as_fn_error 77 "cannot compute sizeof (ptrdiff_t)
cannam@95 14715 See \`config.log' for more details" "$LINENO" 5; }
cannam@95 14716 else
cannam@95 14717 ac_cv_sizeof_ptrdiff_t=0
cannam@95 14718 fi
cannam@95 14719 fi
cannam@95 14720
cannam@95 14721 fi
cannam@95 14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5
cannam@95 14723 $as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }
cannam@95 14724
cannam@95 14725
cannam@95 14726
cannam@95 14727 cat >>confdefs.h <<_ACEOF
cannam@95 14728 #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
cannam@95 14729 _ACEOF
cannam@95 14730
cannam@95 14731
cannam@95 14732
cannam@95 14733 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default
cannam@95 14734 #ifdef HAVE_STDINT_H
cannam@95 14735 # include <stdint.h>
cannam@95 14736 #endif
cannam@95 14737 "
cannam@95 14738 if test "x$ac_cv_type_uintptr_t" = xyes; then :
cannam@95 14739
cannam@95 14740 cat >>confdefs.h <<_ACEOF
cannam@95 14741 #define HAVE_UINTPTR_T 1
cannam@95 14742 _ACEOF
cannam@95 14743
cannam@95 14744
cannam@95 14745 else
cannam@95 14746 # The cast to long int works around a bug in the HP C Compiler
cannam@95 14747 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@95 14748 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@95 14749 # This bug is HP SR number 8606223364.
cannam@95 14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
cannam@95 14751 $as_echo_n "checking size of void *... " >&6; }
cannam@95 14752 if ${ac_cv_sizeof_void_p+:} false; then :
cannam@95 14753 $as_echo_n "(cached) " >&6
cannam@95 14754 else
cannam@95 14755 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
cannam@95 14756
cannam@95 14757 else
cannam@95 14758 if test "$ac_cv_type_void_p" = yes; then
cannam@95 14759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@95 14760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@95 14761 as_fn_error 77 "cannot compute sizeof (void *)
cannam@95 14762 See \`config.log' for more details" "$LINENO" 5; }
cannam@95 14763 else
cannam@95 14764 ac_cv_sizeof_void_p=0
cannam@95 14765 fi
cannam@95 14766 fi
cannam@95 14767
cannam@95 14768 fi
cannam@95 14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
cannam@95 14770 $as_echo "$ac_cv_sizeof_void_p" >&6; }
cannam@95 14771
cannam@95 14772
cannam@95 14773
cannam@95 14774 cat >>confdefs.h <<_ACEOF
cannam@95 14775 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
cannam@95 14776 _ACEOF
cannam@95 14777
cannam@95 14778
cannam@95 14779 fi
cannam@95 14780
cannam@95 14781
cannam@95 14782 # The cast to long int works around a bug in the HP C Compiler
cannam@95 14783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@95 14784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@95 14785 # This bug is HP SR number 8606223364.
cannam@95 14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
cannam@95 14787 $as_echo_n "checking size of float... " >&6; }
cannam@95 14788 if ${ac_cv_sizeof_float+:} false; then :
cannam@95 14789 $as_echo_n "(cached) " >&6
cannam@95 14790 else
cannam@95 14791 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
cannam@95 14792
cannam@95 14793 else
cannam@95 14794 if test "$ac_cv_type_float" = yes; then
cannam@95 14795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@95 14796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@95 14797 as_fn_error 77 "cannot compute sizeof (float)
cannam@95 14798 See \`config.log' for more details" "$LINENO" 5; }
cannam@95 14799 else
cannam@95 14800 ac_cv_sizeof_float=0
cannam@95 14801 fi
cannam@95 14802 fi
cannam@95 14803
cannam@95 14804 fi
cannam@95 14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
cannam@95 14806 $as_echo "$ac_cv_sizeof_float" >&6; }
cannam@95 14807
cannam@95 14808
cannam@95 14809
cannam@95 14810 cat >>confdefs.h <<_ACEOF
cannam@95 14811 #define SIZEOF_FLOAT $ac_cv_sizeof_float
cannam@95 14812 _ACEOF
cannam@95 14813
cannam@95 14814
cannam@95 14815 # The cast to long int works around a bug in the HP C Compiler
cannam@95 14816 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@95 14817 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@95 14818 # This bug is HP SR number 8606223364.
cannam@95 14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
cannam@95 14820 $as_echo_n "checking size of double... " >&6; }
cannam@95 14821 if ${ac_cv_sizeof_double+:} false; then :
cannam@95 14822 $as_echo_n "(cached) " >&6
cannam@95 14823 else
cannam@95 14824 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
cannam@95 14825
cannam@95 14826 else
cannam@95 14827 if test "$ac_cv_type_double" = yes; then
cannam@95 14828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@95 14829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@95 14830 as_fn_error 77 "cannot compute sizeof (double)
cannam@95 14831 See \`config.log' for more details" "$LINENO" 5; }
cannam@95 14832 else
cannam@95 14833 ac_cv_sizeof_double=0
cannam@95 14834 fi
cannam@95 14835 fi
cannam@95 14836
cannam@95 14837 fi
cannam@95 14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
cannam@95 14839 $as_echo "$ac_cv_sizeof_double" >&6; }
cannam@95 14840
cannam@95 14841
cannam@95 14842
cannam@95 14843 cat >>confdefs.h <<_ACEOF
cannam@95 14844 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
cannam@95 14845 _ACEOF
cannam@95 14846
cannam@95 14847
cannam@95 14848
cannam@95 14849 # The cast to long int works around a bug in the HP C Compiler
cannam@95 14850 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@95 14851 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@95 14852 # This bug is HP SR number 8606223364.
cannam@95 14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fftw_r2r_kind" >&5
cannam@95 14854 $as_echo_n "checking size of fftw_r2r_kind... " >&6; }
cannam@95 14855 if ${ac_cv_sizeof_fftw_r2r_kind+:} false; then :
cannam@95 14856 $as_echo_n "(cached) " >&6
cannam@95 14857 else
cannam@95 14858 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fftw_r2r_kind))" "ac_cv_sizeof_fftw_r2r_kind" "typedef enum {
cannam@95 14859 FFTW_R2HC=0, FFTW_HC2R=1, FFTW_DHT=2,
cannam@95 14860 FFTW_REDFT00=3, FFTW_REDFT01=4, FFTW_REDFT10=5, FFTW_REDFT11=6,
cannam@95 14861 FFTW_RODFT00=7, FFTW_RODFT01=8, FFTW_RODFT10=9, FFTW_RODFT11=10
cannam@95 14862 } fftw_r2r_kind;
cannam@95 14863 "; then :
cannam@95 14864
cannam@95 14865 else
cannam@95 14866 if test "$ac_cv_type_fftw_r2r_kind" = yes; then
cannam@95 14867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@95 14868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@95 14869 as_fn_error 77 "cannot compute sizeof (fftw_r2r_kind)
cannam@95 14870 See \`config.log' for more details" "$LINENO" 5; }
cannam@95 14871 else
cannam@95 14872 ac_cv_sizeof_fftw_r2r_kind=0
cannam@95 14873 fi
cannam@95 14874 fi
cannam@95 14875
cannam@95 14876 fi
cannam@95 14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fftw_r2r_kind" >&5
cannam@95 14878 $as_echo "$ac_cv_sizeof_fftw_r2r_kind" >&6; }
cannam@95 14879
cannam@95 14880
cannam@95 14881
cannam@95 14882 cat >>confdefs.h <<_ACEOF
cannam@95 14883 #define SIZEOF_FFTW_R2R_KIND $ac_cv_sizeof_fftw_r2r_kind
cannam@95 14884 _ACEOF
cannam@95 14885
cannam@95 14886
cannam@95 14887 if test 0 = $ac_cv_sizeof_fftw_r2r_kind; then as_fn_error $? "sizeof(fftw_r2r_kind) test failed" "$LINENO" 5; fi
cannam@95 14888 C_FFTW_R2R_KIND=C_INT`expr $ac_cv_sizeof_fftw_r2r_kind \* 8`_T
cannam@95 14889
cannam@95 14890
cannam@95 14891 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
cannam@95 14892 # for constant arguments. Useless!
cannam@95 14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
cannam@95 14894 $as_echo_n "checking for working alloca.h... " >&6; }
cannam@95 14895 if ${ac_cv_working_alloca_h+:} false; then :
cannam@95 14896 $as_echo_n "(cached) " >&6
cannam@95 14897 else
cannam@95 14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 14899 /* end confdefs.h. */
cannam@95 14900 #include <alloca.h>
cannam@95 14901 int
cannam@95 14902 main ()
cannam@95 14903 {
cannam@95 14904 char *p = (char *) alloca (2 * sizeof (int));
cannam@95 14905 if (p) return 0;
cannam@95 14906 ;
cannam@95 14907 return 0;
cannam@95 14908 }
cannam@95 14909 _ACEOF
cannam@95 14910 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 14911 ac_cv_working_alloca_h=yes
cannam@95 14912 else
cannam@95 14913 ac_cv_working_alloca_h=no
cannam@95 14914 fi
cannam@95 14915 rm -f core conftest.err conftest.$ac_objext \
cannam@95 14916 conftest$ac_exeext conftest.$ac_ext
cannam@95 14917 fi
cannam@95 14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
cannam@95 14919 $as_echo "$ac_cv_working_alloca_h" >&6; }
cannam@95 14920 if test $ac_cv_working_alloca_h = yes; then
cannam@95 14921
cannam@95 14922 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
cannam@95 14923
cannam@95 14924 fi
cannam@95 14925
cannam@95 14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
cannam@95 14927 $as_echo_n "checking for alloca... " >&6; }
cannam@95 14928 if ${ac_cv_func_alloca_works+:} false; then :
cannam@95 14929 $as_echo_n "(cached) " >&6
cannam@95 14930 else
cannam@95 14931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 14932 /* end confdefs.h. */
cannam@95 14933 #ifdef __GNUC__
cannam@95 14934 # define alloca __builtin_alloca
cannam@95 14935 #else
cannam@95 14936 # ifdef _MSC_VER
cannam@95 14937 # include <malloc.h>
cannam@95 14938 # define alloca _alloca
cannam@95 14939 # else
cannam@95 14940 # ifdef HAVE_ALLOCA_H
cannam@95 14941 # include <alloca.h>
cannam@95 14942 # else
cannam@95 14943 # ifdef _AIX
cannam@95 14944 #pragma alloca
cannam@95 14945 # else
cannam@95 14946 # ifndef alloca /* predefined by HP cc +Olibcalls */
cannam@95 14947 void *alloca (size_t);
cannam@95 14948 # endif
cannam@95 14949 # endif
cannam@95 14950 # endif
cannam@95 14951 # endif
cannam@95 14952 #endif
cannam@95 14953
cannam@95 14954 int
cannam@95 14955 main ()
cannam@95 14956 {
cannam@95 14957 char *p = (char *) alloca (1);
cannam@95 14958 if (p) return 0;
cannam@95 14959 ;
cannam@95 14960 return 0;
cannam@95 14961 }
cannam@95 14962 _ACEOF
cannam@95 14963 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 14964 ac_cv_func_alloca_works=yes
cannam@95 14965 else
cannam@95 14966 ac_cv_func_alloca_works=no
cannam@95 14967 fi
cannam@95 14968 rm -f core conftest.err conftest.$ac_objext \
cannam@95 14969 conftest$ac_exeext conftest.$ac_ext
cannam@95 14970 fi
cannam@95 14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
cannam@95 14972 $as_echo "$ac_cv_func_alloca_works" >&6; }
cannam@95 14973
cannam@95 14974 if test $ac_cv_func_alloca_works = yes; then
cannam@95 14975
cannam@95 14976 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
cannam@95 14977
cannam@95 14978 else
cannam@95 14979 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
cannam@95 14980 # that cause trouble. Some versions do not even contain alloca or
cannam@95 14981 # contain a buggy version. If you still want to use their alloca,
cannam@95 14982 # use ar to extract alloca.o from them instead of compiling alloca.c.
cannam@95 14983
cannam@95 14984 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
cannam@95 14985
cannam@95 14986 $as_echo "#define C_ALLOCA 1" >>confdefs.h
cannam@95 14987
cannam@95 14988
cannam@95 14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
cannam@95 14990 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
cannam@95 14991 if ${ac_cv_os_cray+:} false; then :
cannam@95 14992 $as_echo_n "(cached) " >&6
cannam@95 14993 else
cannam@95 14994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 14995 /* end confdefs.h. */
cannam@95 14996 #if defined CRAY && ! defined CRAY2
cannam@95 14997 webecray
cannam@95 14998 #else
cannam@95 14999 wenotbecray
cannam@95 15000 #endif
cannam@95 15001
cannam@95 15002 _ACEOF
cannam@95 15003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@95 15004 $EGREP "webecray" >/dev/null 2>&1; then :
cannam@95 15005 ac_cv_os_cray=yes
cannam@95 15006 else
cannam@95 15007 ac_cv_os_cray=no
cannam@95 15008 fi
cannam@95 15009 rm -f conftest*
cannam@95 15010
cannam@95 15011 fi
cannam@95 15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
cannam@95 15013 $as_echo "$ac_cv_os_cray" >&6; }
cannam@95 15014 if test $ac_cv_os_cray = yes; then
cannam@95 15015 for ac_func in _getb67 GETB67 getb67; do
cannam@95 15016 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
cannam@95 15017 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cannam@95 15018 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cannam@95 15019
cannam@95 15020 cat >>confdefs.h <<_ACEOF
cannam@95 15021 #define CRAY_STACKSEG_END $ac_func
cannam@95 15022 _ACEOF
cannam@95 15023
cannam@95 15024 break
cannam@95 15025 fi
cannam@95 15026
cannam@95 15027 done
cannam@95 15028 fi
cannam@95 15029
cannam@95 15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
cannam@95 15031 $as_echo_n "checking stack direction for C alloca... " >&6; }
cannam@95 15032 if ${ac_cv_c_stack_direction+:} false; then :
cannam@95 15033 $as_echo_n "(cached) " >&6
cannam@95 15034 else
cannam@95 15035 if test "$cross_compiling" = yes; then :
cannam@95 15036 ac_cv_c_stack_direction=0
cannam@95 15037 else
cannam@95 15038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 15039 /* end confdefs.h. */
cannam@95 15040 $ac_includes_default
cannam@95 15041 int
cannam@95 15042 find_stack_direction (int *addr, int depth)
cannam@95 15043 {
cannam@95 15044 int dir, dummy = 0;
cannam@95 15045 if (! addr)
cannam@95 15046 addr = &dummy;
cannam@95 15047 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
cannam@95 15048 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
cannam@95 15049 return dir + dummy;
cannam@95 15050 }
cannam@95 15051
cannam@95 15052 int
cannam@95 15053 main (int argc, char **argv)
cannam@95 15054 {
cannam@95 15055 return find_stack_direction (0, argc + !argv + 20) < 0;
cannam@95 15056 }
cannam@95 15057 _ACEOF
cannam@95 15058 if ac_fn_c_try_run "$LINENO"; then :
cannam@95 15059 ac_cv_c_stack_direction=1
cannam@95 15060 else
cannam@95 15061 ac_cv_c_stack_direction=-1
cannam@95 15062 fi
cannam@95 15063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@95 15064 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@95 15065 fi
cannam@95 15066
cannam@95 15067 fi
cannam@95 15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
cannam@95 15069 $as_echo "$ac_cv_c_stack_direction" >&6; }
cannam@95 15070 cat >>confdefs.h <<_ACEOF
cannam@95 15071 #define STACK_DIRECTION $ac_cv_c_stack_direction
cannam@95 15072 _ACEOF
cannam@95 15073
cannam@95 15074
cannam@95 15075 fi
cannam@95 15076
cannam@95 15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cannam@95 15078 $as_echo_n "checking for working strtod... " >&6; }
cannam@95 15079 if ${ac_cv_func_strtod+:} false; then :
cannam@95 15080 $as_echo_n "(cached) " >&6
cannam@95 15081 else
cannam@95 15082 if test "$cross_compiling" = yes; then :
cannam@95 15083 ac_cv_func_strtod=no
cannam@95 15084 else
cannam@95 15085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 15086 /* end confdefs.h. */
cannam@95 15087
cannam@95 15088 $ac_includes_default
cannam@95 15089 #ifndef strtod
cannam@95 15090 double strtod ();
cannam@95 15091 #endif
cannam@95 15092 int
cannam@95 15093 main()
cannam@95 15094 {
cannam@95 15095 {
cannam@95 15096 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
cannam@95 15097 char *string = " +69";
cannam@95 15098 char *term;
cannam@95 15099 double value;
cannam@95 15100 value = strtod (string, &term);
cannam@95 15101 if (value != 69 || term != (string + 4))
cannam@95 15102 return 1;
cannam@95 15103 }
cannam@95 15104
cannam@95 15105 {
cannam@95 15106 /* Under Solaris 2.4, strtod returns the wrong value for the
cannam@95 15107 terminating character under some conditions. */
cannam@95 15108 char *string = "NaN";
cannam@95 15109 char *term;
cannam@95 15110 strtod (string, &term);
cannam@95 15111 if (term != string && *(term - 1) == 0)
cannam@95 15112 return 1;
cannam@95 15113 }
cannam@95 15114 return 0;
cannam@95 15115 }
cannam@95 15116
cannam@95 15117 _ACEOF
cannam@95 15118 if ac_fn_c_try_run "$LINENO"; then :
cannam@95 15119 ac_cv_func_strtod=yes
cannam@95 15120 else
cannam@95 15121 ac_cv_func_strtod=no
cannam@95 15122 fi
cannam@95 15123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@95 15124 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@95 15125 fi
cannam@95 15126
cannam@95 15127 fi
cannam@95 15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cannam@95 15129 $as_echo "$ac_cv_func_strtod" >&6; }
cannam@95 15130 if test $ac_cv_func_strtod = no; then
cannam@95 15131 case " $LIBOBJS " in
cannam@95 15132 *" strtod.$ac_objext "* ) ;;
cannam@95 15133 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
cannam@95 15134 ;;
cannam@95 15135 esac
cannam@95 15136
cannam@95 15137 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cannam@95 15138 if test "x$ac_cv_func_pow" = xyes; then :
cannam@95 15139
cannam@95 15140 fi
cannam@95 15141
cannam@95 15142 if test $ac_cv_func_pow = no; then
cannam@95 15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cannam@95 15144 $as_echo_n "checking for pow in -lm... " >&6; }
cannam@95 15145 if ${ac_cv_lib_m_pow+:} false; then :
cannam@95 15146 $as_echo_n "(cached) " >&6
cannam@95 15147 else
cannam@95 15148 ac_check_lib_save_LIBS=$LIBS
cannam@95 15149 LIBS="-lm $LIBS"
cannam@95 15150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 15151 /* end confdefs.h. */
cannam@95 15152
cannam@95 15153 /* Override any GCC internal prototype to avoid an error.
cannam@95 15154 Use char because int might match the return type of a GCC
cannam@95 15155 builtin and then its argument prototype would still apply. */
cannam@95 15156 #ifdef __cplusplus
cannam@95 15157 extern "C"
cannam@95 15158 #endif
cannam@95 15159 char pow ();
cannam@95 15160 int
cannam@95 15161 main ()
cannam@95 15162 {
cannam@95 15163 return pow ();
cannam@95 15164 ;
cannam@95 15165 return 0;
cannam@95 15166 }
cannam@95 15167 _ACEOF
cannam@95 15168 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 15169 ac_cv_lib_m_pow=yes
cannam@95 15170 else
cannam@95 15171 ac_cv_lib_m_pow=no
cannam@95 15172 fi
cannam@95 15173 rm -f core conftest.err conftest.$ac_objext \
cannam@95 15174 conftest$ac_exeext conftest.$ac_ext
cannam@95 15175 LIBS=$ac_check_lib_save_LIBS
cannam@95 15176 fi
cannam@95 15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cannam@95 15178 $as_echo "$ac_cv_lib_m_pow" >&6; }
cannam@95 15179 if test "x$ac_cv_lib_m_pow" = xyes; then :
cannam@95 15180 POW_LIB=-lm
cannam@95 15181 else
cannam@95 15182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cannam@95 15183 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
cannam@95 15184 fi
cannam@95 15185
cannam@95 15186 fi
cannam@95 15187
cannam@95 15188 fi
cannam@95 15189
cannam@95 15190 for ac_func in vprintf
cannam@95 15191 do :
cannam@95 15192 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cannam@95 15193 if test "x$ac_cv_func_vprintf" = xyes; then :
cannam@95 15194 cat >>confdefs.h <<_ACEOF
cannam@95 15195 #define HAVE_VPRINTF 1
cannam@95 15196 _ACEOF
cannam@95 15197
cannam@95 15198 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cannam@95 15199 if test "x$ac_cv_func__doprnt" = xyes; then :
cannam@95 15200
cannam@95 15201 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cannam@95 15202
cannam@95 15203 fi
cannam@95 15204
cannam@95 15205 fi
cannam@95 15206 done
cannam@95 15207
cannam@95 15208
cannam@95 15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
cannam@95 15210 $as_echo_n "checking for sin in -lm... " >&6; }
cannam@95 15211 if ${ac_cv_lib_m_sin+:} false; then :
cannam@95 15212 $as_echo_n "(cached) " >&6
cannam@95 15213 else
cannam@95 15214 ac_check_lib_save_LIBS=$LIBS
cannam@95 15215 LIBS="-lm $LIBS"
cannam@95 15216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 15217 /* end confdefs.h. */
cannam@95 15218
cannam@95 15219 /* Override any GCC internal prototype to avoid an error.
cannam@95 15220 Use char because int might match the return type of a GCC
cannam@95 15221 builtin and then its argument prototype would still apply. */
cannam@95 15222 #ifdef __cplusplus
cannam@95 15223 extern "C"
cannam@95 15224 #endif
cannam@95 15225 char sin ();
cannam@95 15226 int
cannam@95 15227 main ()
cannam@95 15228 {
cannam@95 15229 return sin ();
cannam@95 15230 ;
cannam@95 15231 return 0;
cannam@95 15232 }
cannam@95 15233 _ACEOF
cannam@95 15234 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 15235 ac_cv_lib_m_sin=yes
cannam@95 15236 else
cannam@95 15237 ac_cv_lib_m_sin=no
cannam@95 15238 fi
cannam@95 15239 rm -f core conftest.err conftest.$ac_objext \
cannam@95 15240 conftest$ac_exeext conftest.$ac_ext
cannam@95 15241 LIBS=$ac_check_lib_save_LIBS
cannam@95 15242 fi
cannam@95 15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
cannam@95 15244 $as_echo "$ac_cv_lib_m_sin" >&6; }
cannam@95 15245 if test "x$ac_cv_lib_m_sin" = xyes; then :
cannam@95 15246 cat >>confdefs.h <<_ACEOF
cannam@95 15247 #define HAVE_LIBM 1
cannam@95 15248 _ACEOF
cannam@95 15249
cannam@95 15250 LIBS="-lm $LIBS"
cannam@95 15251
cannam@95 15252 fi
cannam@95 15253
cannam@95 15254
cannam@95 15255 if test $PRECISION = q; then
cannam@95 15256
cannam@95 15257
cannam@95 15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc 4.6.0 or later" >&5
cannam@95 15259 $as_echo_n "checking whether we are using gcc 4.6.0 or later... " >&6; }
cannam@95 15260 if ${ax_cv_gcc_4_6_0+:} false; then :
cannam@95 15261 $as_echo_n "(cached) " >&6
cannam@95 15262 else
cannam@95 15263
cannam@95 15264 ax_cv_gcc_4_6_0=no
cannam@95 15265 if test "$GCC" = "yes"; then
cannam@95 15266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 15267 /* end confdefs.h. */
cannam@95 15268
cannam@95 15269 #ifdef __GNUC__
cannam@95 15270 # if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ > 6) \
cannam@95 15271 || (__GNUC__ == 4 && __GNUC_MINOR__ == 6 && __GNUC_PATCHLEVEL__ >= 0)
cannam@95 15272 yes;
cannam@95 15273 # endif
cannam@95 15274 #endif
cannam@95 15275
cannam@95 15276 _ACEOF
cannam@95 15277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@95 15278 $EGREP "yes" >/dev/null 2>&1; then :
cannam@95 15279 ax_cv_gcc_4_6_0=yes
cannam@95 15280 fi
cannam@95 15281 rm -f conftest*
cannam@95 15282
cannam@95 15283 fi
cannam@95 15284
cannam@95 15285 fi
cannam@95 15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_4_6_0" >&5
cannam@95 15287 $as_echo "$ax_cv_gcc_4_6_0" >&6; }
cannam@95 15288 if test "$ax_cv_gcc_4_6_0" = yes; then
cannam@95 15289 :
cannam@95 15290 else
cannam@95 15291 as_fn_error $? "gcc 4.6 or later required for quad precision support" "$LINENO" 5
cannam@95 15292 fi
cannam@95 15293
cannam@95 15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinq in -lquadmath" >&5
cannam@95 15295 $as_echo_n "checking for sinq in -lquadmath... " >&6; }
cannam@95 15296 if ${ac_cv_lib_quadmath_sinq+:} false; then :
cannam@95 15297 $as_echo_n "(cached) " >&6
cannam@95 15298 else
cannam@95 15299 ac_check_lib_save_LIBS=$LIBS
cannam@95 15300 LIBS="-lquadmath $LIBS"
cannam@95 15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 15302 /* end confdefs.h. */
cannam@95 15303
cannam@95 15304 /* Override any GCC internal prototype to avoid an error.
cannam@95 15305 Use char because int might match the return type of a GCC
cannam@95 15306 builtin and then its argument prototype would still apply. */
cannam@95 15307 #ifdef __cplusplus
cannam@95 15308 extern "C"
cannam@95 15309 #endif
cannam@95 15310 char sinq ();
cannam@95 15311 int
cannam@95 15312 main ()
cannam@95 15313 {
cannam@95 15314 return sinq ();
cannam@95 15315 ;
cannam@95 15316 return 0;
cannam@95 15317 }
cannam@95 15318 _ACEOF
cannam@95 15319 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 15320 ac_cv_lib_quadmath_sinq=yes
cannam@95 15321 else
cannam@95 15322 ac_cv_lib_quadmath_sinq=no
cannam@95 15323 fi
cannam@95 15324 rm -f core conftest.err conftest.$ac_objext \
cannam@95 15325 conftest$ac_exeext conftest.$ac_ext
cannam@95 15326 LIBS=$ac_check_lib_save_LIBS
cannam@95 15327 fi
cannam@95 15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quadmath_sinq" >&5
cannam@95 15329 $as_echo "$ac_cv_lib_quadmath_sinq" >&6; }
cannam@95 15330 if test "x$ac_cv_lib_quadmath_sinq" = xyes; then :
cannam@95 15331 cat >>confdefs.h <<_ACEOF
cannam@95 15332 #define HAVE_LIBQUADMATH 1
cannam@95 15333 _ACEOF
cannam@95 15334
cannam@95 15335 LIBS="-lquadmath $LIBS"
cannam@95 15336
cannam@95 15337 else
cannam@95 15338 as_fn_error $? "quad precision requires libquadmath for quad-precision trigonometric routines" "$LINENO" 5
cannam@95 15339 fi
cannam@95 15340
cannam@95 15341 LIBQUADMATH=-lquadmath
cannam@95 15342 fi
cannam@95 15343
cannam@95 15344
cannam@95 15345 for ac_func in BSDgettimeofday gettimeofday gethrtime read_real_time time_base_to_time drand48 sqrt memset posix_memalign memalign _mm_malloc _mm_free clock_gettime mach_absolute_time sysctl abort sinl cosl snprintf
cannam@95 15346 do :
cannam@95 15347 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
cannam@95 15348 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cannam@95 15349 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cannam@95 15350 cat >>confdefs.h <<_ACEOF
cannam@95 15351 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
cannam@95 15352 _ACEOF
cannam@95 15353
cannam@95 15354 fi
cannam@95 15355 done
cannam@95 15356
cannam@95 15357 ac_fn_c_check_decl "$LINENO" "drand48" "ac_cv_have_decl_drand48" "$ac_includes_default"
cannam@95 15358 if test "x$ac_cv_have_decl_drand48" = xyes; then :
cannam@95 15359 ac_have_decl=1
cannam@95 15360 else
cannam@95 15361 ac_have_decl=0
cannam@95 15362 fi
cannam@95 15363
cannam@95 15364 cat >>confdefs.h <<_ACEOF
cannam@95 15365 #define HAVE_DECL_DRAND48 $ac_have_decl
cannam@95 15366 _ACEOF
cannam@95 15367 ac_fn_c_check_decl "$LINENO" "srand48" "ac_cv_have_decl_srand48" "$ac_includes_default"
cannam@95 15368 if test "x$ac_cv_have_decl_srand48" = xyes; then :
cannam@95 15369 ac_have_decl=1
cannam@95 15370 else
cannam@95 15371 ac_have_decl=0
cannam@95 15372 fi
cannam@95 15373
cannam@95 15374 cat >>confdefs.h <<_ACEOF
cannam@95 15375 #define HAVE_DECL_SRAND48 $ac_have_decl
cannam@95 15376 _ACEOF
cannam@95 15377 ac_fn_c_check_decl "$LINENO" "memalign" "ac_cv_have_decl_memalign" "$ac_includes_default"
cannam@95 15378 if test "x$ac_cv_have_decl_memalign" = xyes; then :
cannam@95 15379 ac_have_decl=1
cannam@95 15380 else
cannam@95 15381 ac_have_decl=0
cannam@95 15382 fi
cannam@95 15383
cannam@95 15384 cat >>confdefs.h <<_ACEOF
cannam@95 15385 #define HAVE_DECL_MEMALIGN $ac_have_decl
cannam@95 15386 _ACEOF
cannam@95 15387 ac_fn_c_check_decl "$LINENO" "posix_memalign" "ac_cv_have_decl_posix_memalign" "$ac_includes_default"
cannam@95 15388 if test "x$ac_cv_have_decl_posix_memalign" = xyes; then :
cannam@95 15389 ac_have_decl=1
cannam@95 15390 else
cannam@95 15391 ac_have_decl=0
cannam@95 15392 fi
cannam@95 15393
cannam@95 15394 cat >>confdefs.h <<_ACEOF
cannam@95 15395 #define HAVE_DECL_POSIX_MEMALIGN $ac_have_decl
cannam@95 15396 _ACEOF
cannam@95 15397 ac_fn_c_check_decl "$LINENO" "sinl" "ac_cv_have_decl_sinl" "$ac_includes_default"
cannam@95 15398 if test "x$ac_cv_have_decl_sinl" = xyes; then :
cannam@95 15399 ac_have_decl=1
cannam@95 15400 else
cannam@95 15401 ac_have_decl=0
cannam@95 15402 fi
cannam@95 15403
cannam@95 15404 cat >>confdefs.h <<_ACEOF
cannam@95 15405 #define HAVE_DECL_SINL $ac_have_decl
cannam@95 15406 _ACEOF
cannam@95 15407 ac_fn_c_check_decl "$LINENO" "cosl" "ac_cv_have_decl_cosl" "$ac_includes_default"
cannam@95 15408 if test "x$ac_cv_have_decl_cosl" = xyes; then :
cannam@95 15409 ac_have_decl=1
cannam@95 15410 else
cannam@95 15411 ac_have_decl=0
cannam@95 15412 fi
cannam@95 15413
cannam@95 15414 cat >>confdefs.h <<_ACEOF
cannam@95 15415 #define HAVE_DECL_COSL $ac_have_decl
cannam@95 15416 _ACEOF
cannam@95 15417 ac_fn_c_check_decl "$LINENO" "sinq" "ac_cv_have_decl_sinq" "$ac_includes_default"
cannam@95 15418 if test "x$ac_cv_have_decl_sinq" = xyes; then :
cannam@95 15419 ac_have_decl=1
cannam@95 15420 else
cannam@95 15421 ac_have_decl=0
cannam@95 15422 fi
cannam@95 15423
cannam@95 15424 cat >>confdefs.h <<_ACEOF
cannam@95 15425 #define HAVE_DECL_SINQ $ac_have_decl
cannam@95 15426 _ACEOF
cannam@95 15427 ac_fn_c_check_decl "$LINENO" "cosq" "ac_cv_have_decl_cosq" "$ac_includes_default"
cannam@95 15428 if test "x$ac_cv_have_decl_cosq" = xyes; then :
cannam@95 15429 ac_have_decl=1
cannam@95 15430 else
cannam@95 15431 ac_have_decl=0
cannam@95 15432 fi
cannam@95 15433
cannam@95 15434 cat >>confdefs.h <<_ACEOF
cannam@95 15435 #define HAVE_DECL_COSQ $ac_have_decl
cannam@95 15436 _ACEOF
cannam@95 15437
cannam@95 15438
cannam@95 15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _rtc intrinsic" >&5
cannam@95 15440 $as_echo_n "checking for _rtc intrinsic... " >&6; }
cannam@95 15441 rtc_ok=yes
cannam@95 15442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 15443 /* end confdefs.h. */
cannam@95 15444 #ifdef HAVE_INTRINSICS_H
cannam@95 15445 #include <intrinsics.h>
cannam@95 15446 #endif
cannam@95 15447 int
cannam@95 15448 main ()
cannam@95 15449 {
cannam@95 15450 _rtc()
cannam@95 15451 ;
cannam@95 15452 return 0;
cannam@95 15453 }
cannam@95 15454 _ACEOF
cannam@95 15455 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 15456
cannam@95 15457 $as_echo "#define HAVE__RTC 1" >>confdefs.h
cannam@95 15458
cannam@95 15459 else
cannam@95 15460 rtc_ok=no
cannam@95 15461 fi
cannam@95 15462 rm -f core conftest.err conftest.$ac_objext \
cannam@95 15463 conftest$ac_exeext conftest.$ac_ext
cannam@95 15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rtc_ok" >&5
cannam@95 15465 $as_echo "$rtc_ok" >&6; }
cannam@95 15466
cannam@95 15467 if test "$PRECISION" = "l"; then
cannam@95 15468 for ac_func in cosl sinl tanl
cannam@95 15469 do :
cannam@95 15470 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
cannam@95 15471 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cannam@95 15472 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cannam@95 15473 cat >>confdefs.h <<_ACEOF
cannam@95 15474 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
cannam@95 15475 _ACEOF
cannam@95 15476
cannam@95 15477 else
cannam@95 15478 as_fn_error $? "long-double precision requires long-double trigonometric routines" "$LINENO" 5
cannam@95 15479 fi
cannam@95 15480 done
cannam@95 15481
cannam@95 15482 fi
cannam@95 15483
cannam@95 15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
cannam@95 15485 $as_echo_n "checking for isnan... " >&6; }
cannam@95 15486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 15487 /* end confdefs.h. */
cannam@95 15488 #include <math.h>
cannam@95 15489
cannam@95 15490 int
cannam@95 15491 main ()
cannam@95 15492 {
cannam@95 15493 if (!isnan(3.14159)) isnan(2.7183);
cannam@95 15494 ;
cannam@95 15495 return 0;
cannam@95 15496 }
cannam@95 15497 _ACEOF
cannam@95 15498 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 15499 ok=yes
cannam@95 15500 else
cannam@95 15501 ok=no
cannam@95 15502 fi
cannam@95 15503 rm -f core conftest.err conftest.$ac_objext \
cannam@95 15504 conftest$ac_exeext conftest.$ac_ext
cannam@95 15505 if test "$ok" = "yes"; then
cannam@95 15506
cannam@95 15507 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
cannam@95 15508
cannam@95 15509 fi
cannam@95 15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
cannam@95 15511 $as_echo "${ok}" >&6; }
cannam@95 15512
cannam@95 15513
cannam@95 15514
cannam@95 15515 ax_gcc_aligns_stack=no
cannam@95 15516 if test "$GCC" = "yes"; then
cannam@95 15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpreferred-stack-boundary=4" >&5
cannam@95 15518 $as_echo_n "checking whether C compiler accepts -mpreferred-stack-boundary=4... " >&6; }
cannam@95 15519 if ${ax_cv_c_flags__mpreferred_stack_boundary_4+:} false; then :
cannam@95 15520 $as_echo_n "(cached) " >&6
cannam@95 15521 else
cannam@95 15522
cannam@95 15523 ax_save_FLAGS=$CFLAGS
cannam@95 15524 CFLAGS="-mpreferred-stack-boundary=4"
cannam@95 15525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 15526 /* end confdefs.h. */
cannam@95 15527
cannam@95 15528 int
cannam@95 15529 main ()
cannam@95 15530 {
cannam@95 15531
cannam@95 15532 ;
cannam@95 15533 return 0;
cannam@95 15534 }
cannam@95 15535 _ACEOF
cannam@95 15536 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 15537 ax_cv_c_flags__mpreferred_stack_boundary_4=yes
cannam@95 15538 else
cannam@95 15539 ax_cv_c_flags__mpreferred_stack_boundary_4=no
cannam@95 15540 fi
cannam@95 15541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 15542 CFLAGS=$ax_save_FLAGS
cannam@95 15543 fi
cannam@95 15544
cannam@95 15545 eval ax_check_compiler_flags=$ax_cv_c_flags__mpreferred_stack_boundary_4
cannam@95 15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
cannam@95 15547 $as_echo "$ax_check_compiler_flags" >&6; }
cannam@95 15548 if test "x$ax_check_compiler_flags" = xyes; then
cannam@95 15549
cannam@95 15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the stack is at least 8-byte aligned by gcc" >&5
cannam@95 15551 $as_echo_n "checking whether the stack is at least 8-byte aligned by gcc... " >&6; }
cannam@95 15552 save_CFLAGS="$CFLAGS"
cannam@95 15553 CFLAGS="-O"
cannam@95 15554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
cannam@95 15555 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
cannam@95 15556 if ${ax_cv_c_flags__malign_double+:} false; then :
cannam@95 15557 $as_echo_n "(cached) " >&6
cannam@95 15558 else
cannam@95 15559
cannam@95 15560 ax_save_FLAGS=$CFLAGS
cannam@95 15561 CFLAGS="-malign-double"
cannam@95 15562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 15563 /* end confdefs.h. */
cannam@95 15564
cannam@95 15565 int
cannam@95 15566 main ()
cannam@95 15567 {
cannam@95 15568
cannam@95 15569 ;
cannam@95 15570 return 0;
cannam@95 15571 }
cannam@95 15572 _ACEOF
cannam@95 15573 if ac_fn_c_try_compile "$LINENO"; then :
cannam@95 15574 ax_cv_c_flags__malign_double=yes
cannam@95 15575 else
cannam@95 15576 ax_cv_c_flags__malign_double=no
cannam@95 15577 fi
cannam@95 15578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 15579 CFLAGS=$ax_save_FLAGS
cannam@95 15580 fi
cannam@95 15581
cannam@95 15582 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
cannam@95 15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
cannam@95 15584 $as_echo "$ax_check_compiler_flags" >&6; }
cannam@95 15585 if test "x$ax_check_compiler_flags" = xyes; then
cannam@95 15586 CFLAGS="$CFLAGS -malign-double"
cannam@95 15587 else
cannam@95 15588 :
cannam@95 15589 fi
cannam@95 15590
cannam@95 15591 if test "$cross_compiling" = yes; then :
cannam@95 15592
cannam@95 15593
cannam@95 15594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc 3.0.0 or later" >&5
cannam@95 15595 $as_echo_n "checking whether we are using gcc 3.0.0 or later... " >&6; }
cannam@95 15596 if ${ax_cv_gcc_3_0_0+:} false; then :
cannam@95 15597 $as_echo_n "(cached) " >&6
cannam@95 15598 else
cannam@95 15599
cannam@95 15600 ax_cv_gcc_3_0_0=no
cannam@95 15601 if test "$GCC" = "yes"; then
cannam@95 15602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 15603 /* end confdefs.h. */
cannam@95 15604
cannam@95 15605 #ifdef __GNUC__
cannam@95 15606 # if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ > 0) \
cannam@95 15607 || (__GNUC__ == 3 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ >= 0)
cannam@95 15608 yes;
cannam@95 15609 # endif
cannam@95 15610 #endif
cannam@95 15611
cannam@95 15612 _ACEOF
cannam@95 15613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@95 15614 $EGREP "yes" >/dev/null 2>&1; then :
cannam@95 15615 ax_cv_gcc_3_0_0=yes
cannam@95 15616 fi
cannam@95 15617 rm -f conftest*
cannam@95 15618
cannam@95 15619 fi
cannam@95 15620
cannam@95 15621 fi
cannam@95 15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_3_0_0" >&5
cannam@95 15623 $as_echo "$ax_cv_gcc_3_0_0" >&6; }
cannam@95 15624 if test "$ax_cv_gcc_3_0_0" = yes; then
cannam@95 15625 ax_gcc_stack_align_bug=no
cannam@95 15626 else
cannam@95 15627 ax_gcc_stack_align_bug=yes
cannam@95 15628 fi
cannam@95 15629
cannam@95 15630 else
cannam@95 15631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 15632 /* end confdefs.h. */
cannam@95 15633 #include <stdlib.h>
cannam@95 15634 # include <stdio.h>
cannam@95 15635 struct yuck { int blechh; };
cannam@95 15636 int one(void) { return 1; }
cannam@95 15637 struct yuck ick(void) { struct yuck y; y.blechh = 3; return y; }
cannam@95 15638 # define CHK_ALIGN(x) if ((((long) &(x)) & 0x7)) { fprintf(stderr, "bad alignment of " #x "\n"); exit(1); }
cannam@95 15639 void blah(int foo) { double foobar; CHK_ALIGN(foobar); }
cannam@95 15640 int main2(void) {double ok1; struct yuck y; double ok2; CHK_ALIGN(ok1);
cannam@95 15641 CHK_ALIGN(ok2); y = ick(); blah(one()); return 0;}
cannam@95 15642 int main(void) { if ((((long) (__builtin_alloca(0))) & 0x7)) __builtin_alloca(4); return main2(); }
cannam@95 15643
cannam@95 15644 _ACEOF
cannam@95 15645 if ac_fn_c_try_run "$LINENO"; then :
cannam@95 15646 ax_gcc_aligns_stack=yes; ax_gcc_stack_align_bug=no
cannam@95 15647 else
cannam@95 15648 ax_gcc_stack_align_bug=yes
cannam@95 15649 fi
cannam@95 15650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@95 15651 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@95 15652 fi
cannam@95 15653
cannam@95 15654 CFLAGS="$save_CFLAGS"
cannam@95 15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_gcc_aligns_stack" >&5
cannam@95 15656 $as_echo "$ax_gcc_aligns_stack" >&6; }
cannam@95 15657
cannam@95 15658 else
cannam@95 15659 :
cannam@95 15660 fi
cannam@95 15661
cannam@95 15662 fi
cannam@95 15663 if test "$ax_gcc_aligns_stack" = yes; then
cannam@95 15664 :
cannam@95 15665 else
cannam@95 15666 :
cannam@95 15667 fi
cannam@95 15668
cannam@95 15669
cannam@95 15670 if test "${enable_debug}" = "yes"; then
cannam@95 15671 CFLAGS="-g"
cannam@95 15672 fi
cannam@95 15673
cannam@95 15674 if test "$enable_debug" = yes || test "$USE_MAINTAINER_MODE" = yes; then
cannam@95 15675 if test "$ac_test_CFLAGS" != "set"; then
cannam@95 15676 if test $ac_cv_c_compiler_gnu = yes; then
cannam@95 15677 CFLAGS="$CFLAGS -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic -Wno-long-long -Wshadow -Wbad-function-cast -Wwrite-strings -Wstrict-prototypes -Wredundant-decls -Wnested-externs" # -Wundef -Wconversion -Wmissing-prototypes -Wmissing-declarations
cannam@95 15678 fi
cannam@95 15679 fi
cannam@95 15680 fi
cannam@95 15681
cannam@95 15682
cannam@95 15683 # Check whether --enable-fortran was given.
cannam@95 15684 if test "${enable_fortran+set}" = set; then :
cannam@95 15685 enableval=$enable_fortran; enable_fortran=$enableval
cannam@95 15686 else
cannam@95 15687 enable_fortran=yes
cannam@95 15688 fi
cannam@95 15689
cannam@95 15690
cannam@95 15691 if test "$enable_fortran" = "yes"; then
cannam@95 15692 ac_ext=f
cannam@95 15693 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
cannam@95 15694 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 15695 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cannam@95 15696 if test -n "$ac_tool_prefix"; then
cannam@95 15697 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
cannam@95 15698 do
cannam@95 15699 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@95 15700 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@95 15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 15702 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 15703 if ${ac_cv_prog_F77+:} false; then :
cannam@95 15704 $as_echo_n "(cached) " >&6
cannam@95 15705 else
cannam@95 15706 if test -n "$F77"; then
cannam@95 15707 ac_cv_prog_F77="$F77" # Let the user override the test.
cannam@95 15708 else
cannam@95 15709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 15710 for as_dir in $PATH
cannam@95 15711 do
cannam@95 15712 IFS=$as_save_IFS
cannam@95 15713 test -z "$as_dir" && as_dir=.
cannam@95 15714 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 15715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 15716 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
cannam@95 15717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 15718 break 2
cannam@95 15719 fi
cannam@95 15720 done
cannam@95 15721 done
cannam@95 15722 IFS=$as_save_IFS
cannam@95 15723
cannam@95 15724 fi
cannam@95 15725 fi
cannam@95 15726 F77=$ac_cv_prog_F77
cannam@95 15727 if test -n "$F77"; then
cannam@95 15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
cannam@95 15729 $as_echo "$F77" >&6; }
cannam@95 15730 else
cannam@95 15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 15732 $as_echo "no" >&6; }
cannam@95 15733 fi
cannam@95 15734
cannam@95 15735
cannam@95 15736 test -n "$F77" && break
cannam@95 15737 done
cannam@95 15738 fi
cannam@95 15739 if test -z "$F77"; then
cannam@95 15740 ac_ct_F77=$F77
cannam@95 15741 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
cannam@95 15742 do
cannam@95 15743 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@95 15744 set dummy $ac_prog; ac_word=$2
cannam@95 15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 15746 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 15747 if ${ac_cv_prog_ac_ct_F77+:} false; then :
cannam@95 15748 $as_echo_n "(cached) " >&6
cannam@95 15749 else
cannam@95 15750 if test -n "$ac_ct_F77"; then
cannam@95 15751 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
cannam@95 15752 else
cannam@95 15753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 15754 for as_dir in $PATH
cannam@95 15755 do
cannam@95 15756 IFS=$as_save_IFS
cannam@95 15757 test -z "$as_dir" && as_dir=.
cannam@95 15758 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 15759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 15760 ac_cv_prog_ac_ct_F77="$ac_prog"
cannam@95 15761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 15762 break 2
cannam@95 15763 fi
cannam@95 15764 done
cannam@95 15765 done
cannam@95 15766 IFS=$as_save_IFS
cannam@95 15767
cannam@95 15768 fi
cannam@95 15769 fi
cannam@95 15770 ac_ct_F77=$ac_cv_prog_ac_ct_F77
cannam@95 15771 if test -n "$ac_ct_F77"; then
cannam@95 15772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
cannam@95 15773 $as_echo "$ac_ct_F77" >&6; }
cannam@95 15774 else
cannam@95 15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 15776 $as_echo "no" >&6; }
cannam@95 15777 fi
cannam@95 15778
cannam@95 15779
cannam@95 15780 test -n "$ac_ct_F77" && break
cannam@95 15781 done
cannam@95 15782
cannam@95 15783 if test "x$ac_ct_F77" = x; then
cannam@95 15784 F77=""
cannam@95 15785 else
cannam@95 15786 case $cross_compiling:$ac_tool_warned in
cannam@95 15787 yes:)
cannam@95 15788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@95 15789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@95 15790 ac_tool_warned=yes ;;
cannam@95 15791 esac
cannam@95 15792 F77=$ac_ct_F77
cannam@95 15793 fi
cannam@95 15794 fi
cannam@95 15795
cannam@95 15796
cannam@95 15797 # Provide some information about the compiler.
cannam@95 15798 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
cannam@95 15799 set X $ac_compile
cannam@95 15800 ac_compiler=$2
cannam@95 15801 for ac_option in --version -v -V -qversion; do
cannam@95 15802 { { ac_try="$ac_compiler $ac_option >&5"
cannam@95 15803 case "(($ac_try" in
cannam@95 15804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@95 15805 *) ac_try_echo=$ac_try;;
cannam@95 15806 esac
cannam@95 15807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@95 15808 $as_echo "$ac_try_echo"; } >&5
cannam@95 15809 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cannam@95 15810 ac_status=$?
cannam@95 15811 if test -s conftest.err; then
cannam@95 15812 sed '10a\
cannam@95 15813 ... rest of stderr output deleted ...
cannam@95 15814 10q' conftest.err >conftest.er1
cannam@95 15815 cat conftest.er1 >&5
cannam@95 15816 fi
cannam@95 15817 rm -f conftest.er1 conftest.err
cannam@95 15818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 15819 test $ac_status = 0; }
cannam@95 15820 done
cannam@95 15821 rm -f a.out
cannam@95 15822
cannam@95 15823 # If we don't use `.F' as extension, the preprocessor is not run on the
cannam@95 15824 # input file. (Note that this only needs to work for GNU compilers.)
cannam@95 15825 ac_save_ext=$ac_ext
cannam@95 15826 ac_ext=F
cannam@95 15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
cannam@95 15828 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
cannam@95 15829 if ${ac_cv_f77_compiler_gnu+:} false; then :
cannam@95 15830 $as_echo_n "(cached) " >&6
cannam@95 15831 else
cannam@95 15832 cat > conftest.$ac_ext <<_ACEOF
cannam@95 15833 program main
cannam@95 15834 #ifndef __GNUC__
cannam@95 15835 choke me
cannam@95 15836 #endif
cannam@95 15837
cannam@95 15838 end
cannam@95 15839 _ACEOF
cannam@95 15840 if ac_fn_f77_try_compile "$LINENO"; then :
cannam@95 15841 ac_compiler_gnu=yes
cannam@95 15842 else
cannam@95 15843 ac_compiler_gnu=no
cannam@95 15844 fi
cannam@95 15845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 15846 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
cannam@95 15847
cannam@95 15848 fi
cannam@95 15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
cannam@95 15850 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
cannam@95 15851 ac_ext=$ac_save_ext
cannam@95 15852 ac_test_FFLAGS=${FFLAGS+set}
cannam@95 15853 ac_save_FFLAGS=$FFLAGS
cannam@95 15854 FFLAGS=
cannam@95 15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
cannam@95 15856 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
cannam@95 15857 if ${ac_cv_prog_f77_g+:} false; then :
cannam@95 15858 $as_echo_n "(cached) " >&6
cannam@95 15859 else
cannam@95 15860 FFLAGS=-g
cannam@95 15861 cat > conftest.$ac_ext <<_ACEOF
cannam@95 15862 program main
cannam@95 15863
cannam@95 15864 end
cannam@95 15865 _ACEOF
cannam@95 15866 if ac_fn_f77_try_compile "$LINENO"; then :
cannam@95 15867 ac_cv_prog_f77_g=yes
cannam@95 15868 else
cannam@95 15869 ac_cv_prog_f77_g=no
cannam@95 15870 fi
cannam@95 15871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 15872
cannam@95 15873 fi
cannam@95 15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
cannam@95 15875 $as_echo "$ac_cv_prog_f77_g" >&6; }
cannam@95 15876 if test "$ac_test_FFLAGS" = set; then
cannam@95 15877 FFLAGS=$ac_save_FFLAGS
cannam@95 15878 elif test $ac_cv_prog_f77_g = yes; then
cannam@95 15879 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
cannam@95 15880 FFLAGS="-g -O2"
cannam@95 15881 else
cannam@95 15882 FFLAGS="-g"
cannam@95 15883 fi
cannam@95 15884 else
cannam@95 15885 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
cannam@95 15886 FFLAGS="-O2"
cannam@95 15887 else
cannam@95 15888 FFLAGS=
cannam@95 15889 fi
cannam@95 15890 fi
cannam@95 15891
cannam@95 15892 if test $ac_compiler_gnu = yes; then
cannam@95 15893 G77=yes
cannam@95 15894 else
cannam@95 15895 G77=
cannam@95 15896 fi
cannam@95 15897 ac_ext=c
cannam@95 15898 ac_cpp='$CPP $CPPFLAGS'
cannam@95 15899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@95 15900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 15901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@95 15902
cannam@95 15903 ac_ext=f
cannam@95 15904 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
cannam@95 15905 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 15906 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cannam@95 15907
cannam@95 15908 if test -z "$F77" || test "X$F77" = "Xno"; then
cannam@95 15909 _lt_disable_F77=yes
cannam@95 15910 fi
cannam@95 15911
cannam@95 15912 archive_cmds_need_lc_F77=no
cannam@95 15913 allow_undefined_flag_F77=
cannam@95 15914 always_export_symbols_F77=no
cannam@95 15915 archive_expsym_cmds_F77=
cannam@95 15916 export_dynamic_flag_spec_F77=
cannam@95 15917 hardcode_direct_F77=no
cannam@95 15918 hardcode_direct_absolute_F77=no
cannam@95 15919 hardcode_libdir_flag_spec_F77=
cannam@95 15920 hardcode_libdir_separator_F77=
cannam@95 15921 hardcode_minus_L_F77=no
cannam@95 15922 hardcode_automatic_F77=no
cannam@95 15923 inherit_rpath_F77=no
cannam@95 15924 module_cmds_F77=
cannam@95 15925 module_expsym_cmds_F77=
cannam@95 15926 link_all_deplibs_F77=unknown
cannam@95 15927 old_archive_cmds_F77=$old_archive_cmds
cannam@95 15928 reload_flag_F77=$reload_flag
cannam@95 15929 reload_cmds_F77=$reload_cmds
cannam@95 15930 no_undefined_flag_F77=
cannam@95 15931 whole_archive_flag_spec_F77=
cannam@95 15932 enable_shared_with_static_runtimes_F77=no
cannam@95 15933
cannam@95 15934 # Source file extension for f77 test sources.
cannam@95 15935 ac_ext=f
cannam@95 15936
cannam@95 15937 # Object file extension for compiled f77 test sources.
cannam@95 15938 objext=o
cannam@95 15939 objext_F77=$objext
cannam@95 15940
cannam@95 15941 # No sense in running all these tests if we already determined that
cannam@95 15942 # the F77 compiler isn't working. Some variables (like enable_shared)
cannam@95 15943 # are currently assumed to apply to all compilers on this platform,
cannam@95 15944 # and will be corrupted by setting them based on a non-working compiler.
cannam@95 15945 if test "$_lt_disable_F77" != yes; then
cannam@95 15946 # Code to be used in simple compile tests
cannam@95 15947 lt_simple_compile_test_code="\
cannam@95 15948 subroutine t
cannam@95 15949 return
cannam@95 15950 end
cannam@95 15951 "
cannam@95 15952
cannam@95 15953 # Code to be used in simple link tests
cannam@95 15954 lt_simple_link_test_code="\
cannam@95 15955 program t
cannam@95 15956 end
cannam@95 15957 "
cannam@95 15958
cannam@95 15959 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
cannam@95 15960
cannam@95 15961
cannam@95 15962
cannam@95 15963
cannam@95 15964
cannam@95 15965
cannam@95 15966 # If no C compiler was specified, use CC.
cannam@95 15967 LTCC=${LTCC-"$CC"}
cannam@95 15968
cannam@95 15969 # If no C compiler flags were specified, use CFLAGS.
cannam@95 15970 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cannam@95 15971
cannam@95 15972 # Allow CC to be a program name with arguments.
cannam@95 15973 compiler=$CC
cannam@95 15974
cannam@95 15975
cannam@95 15976 # save warnings/boilerplate of simple test code
cannam@95 15977 ac_outfile=conftest.$ac_objext
cannam@95 15978 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
cannam@95 15979 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@95 15980 _lt_compiler_boilerplate=`cat conftest.err`
cannam@95 15981 $RM conftest*
cannam@95 15982
cannam@95 15983 ac_outfile=conftest.$ac_objext
cannam@95 15984 echo "$lt_simple_link_test_code" >conftest.$ac_ext
cannam@95 15985 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@95 15986 _lt_linker_boilerplate=`cat conftest.err`
cannam@95 15987 $RM -r conftest*
cannam@95 15988
cannam@95 15989
cannam@95 15990 # Allow CC to be a program name with arguments.
cannam@95 15991 lt_save_CC="$CC"
cannam@95 15992 lt_save_GCC=$GCC
cannam@95 15993 lt_save_CFLAGS=$CFLAGS
cannam@95 15994 CC=${F77-"f77"}
cannam@95 15995 CFLAGS=$FFLAGS
cannam@95 15996 compiler=$CC
cannam@95 15997 compiler_F77=$CC
cannam@95 15998 for cc_temp in $compiler""; do
cannam@95 15999 case $cc_temp in
cannam@95 16000 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
cannam@95 16001 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
cannam@95 16002 \-*) ;;
cannam@95 16003 *) break;;
cannam@95 16004 esac
cannam@95 16005 done
cannam@95 16006 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cannam@95 16007
cannam@95 16008 GCC=$G77
cannam@95 16009 if test -n "$compiler"; then
cannam@95 16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cannam@95 16011 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
cannam@95 16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cannam@95 16013 $as_echo "$can_build_shared" >&6; }
cannam@95 16014
cannam@95 16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cannam@95 16016 $as_echo_n "checking whether to build shared libraries... " >&6; }
cannam@95 16017 test "$can_build_shared" = "no" && enable_shared=no
cannam@95 16018
cannam@95 16019 # On AIX, shared libraries and static libraries use the same namespace, and
cannam@95 16020 # are all built from PIC.
cannam@95 16021 case $host_os in
cannam@95 16022 aix3*)
cannam@95 16023 test "$enable_shared" = yes && enable_static=no
cannam@95 16024 if test -n "$RANLIB"; then
cannam@95 16025 archive_cmds="$archive_cmds~\$RANLIB \$lib"
cannam@95 16026 postinstall_cmds='$RANLIB $lib'
cannam@95 16027 fi
cannam@95 16028 ;;
cannam@95 16029 aix[4-9]*)
cannam@95 16030 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
cannam@95 16031 test "$enable_shared" = yes && enable_static=no
cannam@95 16032 fi
cannam@95 16033 ;;
cannam@95 16034 esac
cannam@95 16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cannam@95 16036 $as_echo "$enable_shared" >&6; }
cannam@95 16037
cannam@95 16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cannam@95 16039 $as_echo_n "checking whether to build static libraries... " >&6; }
cannam@95 16040 # Make sure either enable_shared or enable_static is yes.
cannam@95 16041 test "$enable_shared" = yes || enable_static=yes
cannam@95 16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cannam@95 16043 $as_echo "$enable_static" >&6; }
cannam@95 16044
cannam@95 16045 GCC_F77="$G77"
cannam@95 16046 LD_F77="$LD"
cannam@95 16047
cannam@95 16048 ## CAVEAT EMPTOR:
cannam@95 16049 ## There is no encapsulation within the following macros, do not change
cannam@95 16050 ## the running order or otherwise move them around unless you know exactly
cannam@95 16051 ## what you are doing...
cannam@95 16052 lt_prog_compiler_wl_F77=
cannam@95 16053 lt_prog_compiler_pic_F77=
cannam@95 16054 lt_prog_compiler_static_F77=
cannam@95 16055
cannam@95 16056
cannam@95 16057 if test "$GCC" = yes; then
cannam@95 16058 lt_prog_compiler_wl_F77='-Wl,'
cannam@95 16059 lt_prog_compiler_static_F77='-static'
cannam@95 16060
cannam@95 16061 case $host_os in
cannam@95 16062 aix*)
cannam@95 16063 # All AIX code is PIC.
cannam@95 16064 if test "$host_cpu" = ia64; then
cannam@95 16065 # AIX 5 now supports IA64 processor
cannam@95 16066 lt_prog_compiler_static_F77='-Bstatic'
cannam@95 16067 fi
cannam@95 16068 ;;
cannam@95 16069
cannam@95 16070 amigaos*)
cannam@95 16071 case $host_cpu in
cannam@95 16072 powerpc)
cannam@95 16073 # see comment about AmigaOS4 .so support
cannam@95 16074 lt_prog_compiler_pic_F77='-fPIC'
cannam@95 16075 ;;
cannam@95 16076 m68k)
cannam@95 16077 # FIXME: we need at least 68020 code to build shared libraries, but
cannam@95 16078 # adding the `-m68020' flag to GCC prevents building anything better,
cannam@95 16079 # like `-m68040'.
cannam@95 16080 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
cannam@95 16081 ;;
cannam@95 16082 esac
cannam@95 16083 ;;
cannam@95 16084
cannam@95 16085 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cannam@95 16086 # PIC is the default for these OSes.
cannam@95 16087 ;;
cannam@95 16088
cannam@95 16089 mingw* | cygwin* | pw32* | os2* | cegcc*)
cannam@95 16090 # This hack is so that the source file can tell whether it is being
cannam@95 16091 # built for inclusion in a dll (and should export symbols for example).
cannam@95 16092 # Although the cygwin gcc ignores -fPIC, still need this for old-style
cannam@95 16093 # (--disable-auto-import) libraries
cannam@95 16094 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
cannam@95 16095 ;;
cannam@95 16096
cannam@95 16097 darwin* | rhapsody*)
cannam@95 16098 # PIC is the default on this platform
cannam@95 16099 # Common symbols not allowed in MH_DYLIB files
cannam@95 16100 lt_prog_compiler_pic_F77='-fno-common'
cannam@95 16101 ;;
cannam@95 16102
cannam@95 16103 haiku*)
cannam@95 16104 # PIC is the default for Haiku.
cannam@95 16105 # The "-static" flag exists, but is broken.
cannam@95 16106 lt_prog_compiler_static_F77=
cannam@95 16107 ;;
cannam@95 16108
cannam@95 16109 hpux*)
cannam@95 16110 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
cannam@95 16111 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
cannam@95 16112 # sets the default TLS model and affects inlining.
cannam@95 16113 case $host_cpu in
cannam@95 16114 hppa*64*)
cannam@95 16115 # +Z the default
cannam@95 16116 ;;
cannam@95 16117 *)
cannam@95 16118 lt_prog_compiler_pic_F77='-fPIC'
cannam@95 16119 ;;
cannam@95 16120 esac
cannam@95 16121 ;;
cannam@95 16122
cannam@95 16123 interix[3-9]*)
cannam@95 16124 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
cannam@95 16125 # Instead, we relocate shared libraries at runtime.
cannam@95 16126 ;;
cannam@95 16127
cannam@95 16128 msdosdjgpp*)
cannam@95 16129 # Just because we use GCC doesn't mean we suddenly get shared libraries
cannam@95 16130 # on systems that don't support them.
cannam@95 16131 lt_prog_compiler_can_build_shared_F77=no
cannam@95 16132 enable_shared=no
cannam@95 16133 ;;
cannam@95 16134
cannam@95 16135 *nto* | *qnx*)
cannam@95 16136 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@95 16137 # it will coredump.
cannam@95 16138 lt_prog_compiler_pic_F77='-fPIC -shared'
cannam@95 16139 ;;
cannam@95 16140
cannam@95 16141 sysv4*MP*)
cannam@95 16142 if test -d /usr/nec; then
cannam@95 16143 lt_prog_compiler_pic_F77=-Kconform_pic
cannam@95 16144 fi
cannam@95 16145 ;;
cannam@95 16146
cannam@95 16147 *)
cannam@95 16148 lt_prog_compiler_pic_F77='-fPIC'
cannam@95 16149 ;;
cannam@95 16150 esac
cannam@95 16151
cannam@95 16152 case $cc_basename in
cannam@95 16153 nvcc*) # Cuda Compiler Driver 2.2
cannam@95 16154 lt_prog_compiler_wl_F77='-Xlinker '
cannam@95 16155 if test -n "$lt_prog_compiler_pic_F77"; then
cannam@95 16156 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
cannam@95 16157 fi
cannam@95 16158 ;;
cannam@95 16159 esac
cannam@95 16160 else
cannam@95 16161 # PORTME Check for flag to pass linker flags through the system compiler.
cannam@95 16162 case $host_os in
cannam@95 16163 aix*)
cannam@95 16164 lt_prog_compiler_wl_F77='-Wl,'
cannam@95 16165 if test "$host_cpu" = ia64; then
cannam@95 16166 # AIX 5 now supports IA64 processor
cannam@95 16167 lt_prog_compiler_static_F77='-Bstatic'
cannam@95 16168 else
cannam@95 16169 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
cannam@95 16170 fi
cannam@95 16171 ;;
cannam@95 16172
cannam@95 16173 mingw* | cygwin* | pw32* | os2* | cegcc*)
cannam@95 16174 # This hack is so that the source file can tell whether it is being
cannam@95 16175 # built for inclusion in a dll (and should export symbols for example).
cannam@95 16176 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
cannam@95 16177 ;;
cannam@95 16178
cannam@95 16179 hpux9* | hpux10* | hpux11*)
cannam@95 16180 lt_prog_compiler_wl_F77='-Wl,'
cannam@95 16181 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cannam@95 16182 # not for PA HP-UX.
cannam@95 16183 case $host_cpu in
cannam@95 16184 hppa*64*|ia64*)
cannam@95 16185 # +Z the default
cannam@95 16186 ;;
cannam@95 16187 *)
cannam@95 16188 lt_prog_compiler_pic_F77='+Z'
cannam@95 16189 ;;
cannam@95 16190 esac
cannam@95 16191 # Is there a better lt_prog_compiler_static that works with the bundled CC?
cannam@95 16192 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
cannam@95 16193 ;;
cannam@95 16194
cannam@95 16195 irix5* | irix6* | nonstopux*)
cannam@95 16196 lt_prog_compiler_wl_F77='-Wl,'
cannam@95 16197 # PIC (with -KPIC) is the default.
cannam@95 16198 lt_prog_compiler_static_F77='-non_shared'
cannam@95 16199 ;;
cannam@95 16200
cannam@95 16201 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@95 16202 case $cc_basename in
cannam@95 16203 # old Intel for x86_64 which still supported -KPIC.
cannam@95 16204 ecc*)
cannam@95 16205 lt_prog_compiler_wl_F77='-Wl,'
cannam@95 16206 lt_prog_compiler_pic_F77='-KPIC'
cannam@95 16207 lt_prog_compiler_static_F77='-static'
cannam@95 16208 ;;
cannam@95 16209 # icc used to be incompatible with GCC.
cannam@95 16210 # ICC 10 doesn't accept -KPIC any more.
cannam@95 16211 icc* | ifort*)
cannam@95 16212 lt_prog_compiler_wl_F77='-Wl,'
cannam@95 16213 lt_prog_compiler_pic_F77='-fPIC'
cannam@95 16214 lt_prog_compiler_static_F77='-static'
cannam@95 16215 ;;
cannam@95 16216 # Lahey Fortran 8.1.
cannam@95 16217 lf95*)
cannam@95 16218 lt_prog_compiler_wl_F77='-Wl,'
cannam@95 16219 lt_prog_compiler_pic_F77='--shared'
cannam@95 16220 lt_prog_compiler_static_F77='--static'
cannam@95 16221 ;;
cannam@95 16222 nagfor*)
cannam@95 16223 # NAG Fortran compiler
cannam@95 16224 lt_prog_compiler_wl_F77='-Wl,-Wl,,'
cannam@95 16225 lt_prog_compiler_pic_F77='-PIC'
cannam@95 16226 lt_prog_compiler_static_F77='-Bstatic'
cannam@95 16227 ;;
cannam@95 16228 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cannam@95 16229 # Portland Group compilers (*not* the Pentium gcc compiler,
cannam@95 16230 # which looks to be a dead project)
cannam@95 16231 lt_prog_compiler_wl_F77='-Wl,'
cannam@95 16232 lt_prog_compiler_pic_F77='-fpic'
cannam@95 16233 lt_prog_compiler_static_F77='-Bstatic'
cannam@95 16234 ;;
cannam@95 16235 ccc*)
cannam@95 16236 lt_prog_compiler_wl_F77='-Wl,'
cannam@95 16237 # All Alpha code is PIC.
cannam@95 16238 lt_prog_compiler_static_F77='-non_shared'
cannam@95 16239 ;;
cannam@95 16240 xl* | bgxl* | bgf* | mpixl*)
cannam@95 16241 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cannam@95 16242 lt_prog_compiler_wl_F77='-Wl,'
cannam@95 16243 lt_prog_compiler_pic_F77='-qpic'
cannam@95 16244 lt_prog_compiler_static_F77='-qstaticlink'
cannam@95 16245 ;;
cannam@95 16246 *)
cannam@95 16247 case `$CC -V 2>&1 | sed 5q` in
cannam@95 16248 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cannam@95 16249 # Sun Fortran 8.3 passes all unrecognized flags to the linker
cannam@95 16250 lt_prog_compiler_pic_F77='-KPIC'
cannam@95 16251 lt_prog_compiler_static_F77='-Bstatic'
cannam@95 16252 lt_prog_compiler_wl_F77=''
cannam@95 16253 ;;
cannam@95 16254 *Sun\ F* | *Sun*Fortran*)
cannam@95 16255 lt_prog_compiler_pic_F77='-KPIC'
cannam@95 16256 lt_prog_compiler_static_F77='-Bstatic'
cannam@95 16257 lt_prog_compiler_wl_F77='-Qoption ld '
cannam@95 16258 ;;
cannam@95 16259 *Sun\ C*)
cannam@95 16260 # Sun C 5.9
cannam@95 16261 lt_prog_compiler_pic_F77='-KPIC'
cannam@95 16262 lt_prog_compiler_static_F77='-Bstatic'
cannam@95 16263 lt_prog_compiler_wl_F77='-Wl,'
cannam@95 16264 ;;
cannam@95 16265 *Intel*\ [CF]*Compiler*)
cannam@95 16266 lt_prog_compiler_wl_F77='-Wl,'
cannam@95 16267 lt_prog_compiler_pic_F77='-fPIC'
cannam@95 16268 lt_prog_compiler_static_F77='-static'
cannam@95 16269 ;;
cannam@95 16270 *Portland\ Group*)
cannam@95 16271 lt_prog_compiler_wl_F77='-Wl,'
cannam@95 16272 lt_prog_compiler_pic_F77='-fpic'
cannam@95 16273 lt_prog_compiler_static_F77='-Bstatic'
cannam@95 16274 ;;
cannam@95 16275 esac
cannam@95 16276 ;;
cannam@95 16277 esac
cannam@95 16278 ;;
cannam@95 16279
cannam@95 16280 newsos6)
cannam@95 16281 lt_prog_compiler_pic_F77='-KPIC'
cannam@95 16282 lt_prog_compiler_static_F77='-Bstatic'
cannam@95 16283 ;;
cannam@95 16284
cannam@95 16285 *nto* | *qnx*)
cannam@95 16286 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@95 16287 # it will coredump.
cannam@95 16288 lt_prog_compiler_pic_F77='-fPIC -shared'
cannam@95 16289 ;;
cannam@95 16290
cannam@95 16291 osf3* | osf4* | osf5*)
cannam@95 16292 lt_prog_compiler_wl_F77='-Wl,'
cannam@95 16293 # All OSF/1 code is PIC.
cannam@95 16294 lt_prog_compiler_static_F77='-non_shared'
cannam@95 16295 ;;
cannam@95 16296
cannam@95 16297 rdos*)
cannam@95 16298 lt_prog_compiler_static_F77='-non_shared'
cannam@95 16299 ;;
cannam@95 16300
cannam@95 16301 solaris*)
cannam@95 16302 lt_prog_compiler_pic_F77='-KPIC'
cannam@95 16303 lt_prog_compiler_static_F77='-Bstatic'
cannam@95 16304 case $cc_basename in
cannam@95 16305 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cannam@95 16306 lt_prog_compiler_wl_F77='-Qoption ld ';;
cannam@95 16307 *)
cannam@95 16308 lt_prog_compiler_wl_F77='-Wl,';;
cannam@95 16309 esac
cannam@95 16310 ;;
cannam@95 16311
cannam@95 16312 sunos4*)
cannam@95 16313 lt_prog_compiler_wl_F77='-Qoption ld '
cannam@95 16314 lt_prog_compiler_pic_F77='-PIC'
cannam@95 16315 lt_prog_compiler_static_F77='-Bstatic'
cannam@95 16316 ;;
cannam@95 16317
cannam@95 16318 sysv4 | sysv4.2uw2* | sysv4.3*)
cannam@95 16319 lt_prog_compiler_wl_F77='-Wl,'
cannam@95 16320 lt_prog_compiler_pic_F77='-KPIC'
cannam@95 16321 lt_prog_compiler_static_F77='-Bstatic'
cannam@95 16322 ;;
cannam@95 16323
cannam@95 16324 sysv4*MP*)
cannam@95 16325 if test -d /usr/nec ;then
cannam@95 16326 lt_prog_compiler_pic_F77='-Kconform_pic'
cannam@95 16327 lt_prog_compiler_static_F77='-Bstatic'
cannam@95 16328 fi
cannam@95 16329 ;;
cannam@95 16330
cannam@95 16331 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
cannam@95 16332 lt_prog_compiler_wl_F77='-Wl,'
cannam@95 16333 lt_prog_compiler_pic_F77='-KPIC'
cannam@95 16334 lt_prog_compiler_static_F77='-Bstatic'
cannam@95 16335 ;;
cannam@95 16336
cannam@95 16337 unicos*)
cannam@95 16338 lt_prog_compiler_wl_F77='-Wl,'
cannam@95 16339 lt_prog_compiler_can_build_shared_F77=no
cannam@95 16340 ;;
cannam@95 16341
cannam@95 16342 uts4*)
cannam@95 16343 lt_prog_compiler_pic_F77='-pic'
cannam@95 16344 lt_prog_compiler_static_F77='-Bstatic'
cannam@95 16345 ;;
cannam@95 16346
cannam@95 16347 *)
cannam@95 16348 lt_prog_compiler_can_build_shared_F77=no
cannam@95 16349 ;;
cannam@95 16350 esac
cannam@95 16351 fi
cannam@95 16352
cannam@95 16353 case $host_os in
cannam@95 16354 # For platforms which do not support PIC, -DPIC is meaningless:
cannam@95 16355 *djgpp*)
cannam@95 16356 lt_prog_compiler_pic_F77=
cannam@95 16357 ;;
cannam@95 16358 *)
cannam@95 16359 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
cannam@95 16360 ;;
cannam@95 16361 esac
cannam@95 16362
cannam@95 16363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cannam@95 16364 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
cannam@95 16365 if ${lt_cv_prog_compiler_pic_F77+:} false; then :
cannam@95 16366 $as_echo_n "(cached) " >&6
cannam@95 16367 else
cannam@95 16368 lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
cannam@95 16369 fi
cannam@95 16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
cannam@95 16371 $as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
cannam@95 16372 lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
cannam@95 16373
cannam@95 16374 #
cannam@95 16375 # Check to make sure the PIC flag actually works.
cannam@95 16376 #
cannam@95 16377 if test -n "$lt_prog_compiler_pic_F77"; then
cannam@95 16378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
cannam@95 16379 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
cannam@95 16380 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
cannam@95 16381 $as_echo_n "(cached) " >&6
cannam@95 16382 else
cannam@95 16383 lt_cv_prog_compiler_pic_works_F77=no
cannam@95 16384 ac_outfile=conftest.$ac_objext
cannam@95 16385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@95 16386 lt_compiler_flag="$lt_prog_compiler_pic_F77"
cannam@95 16387 # Insert the option either (1) after the last *FLAGS variable, or
cannam@95 16388 # (2) before a word containing "conftest.", or (3) at the end.
cannam@95 16389 # Note that $ac_compile itself does not contain backslashes and begins
cannam@95 16390 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@95 16391 # The option is referenced via a variable to avoid confusing sed.
cannam@95 16392 lt_compile=`echo "$ac_compile" | $SED \
cannam@95 16393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@95 16394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@95 16395 -e 's:$: $lt_compiler_flag:'`
cannam@95 16396 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@95 16397 (eval "$lt_compile" 2>conftest.err)
cannam@95 16398 ac_status=$?
cannam@95 16399 cat conftest.err >&5
cannam@95 16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@95 16401 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@95 16402 # The compiler can only warn and ignore the option if not recognized
cannam@95 16403 # So say no if there are warnings other than the usual output.
cannam@95 16404 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cannam@95 16405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@95 16406 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
cannam@95 16407 lt_cv_prog_compiler_pic_works_F77=yes
cannam@95 16408 fi
cannam@95 16409 fi
cannam@95 16410 $RM conftest*
cannam@95 16411
cannam@95 16412 fi
cannam@95 16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
cannam@95 16414 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
cannam@95 16415
cannam@95 16416 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
cannam@95 16417 case $lt_prog_compiler_pic_F77 in
cannam@95 16418 "" | " "*) ;;
cannam@95 16419 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
cannam@95 16420 esac
cannam@95 16421 else
cannam@95 16422 lt_prog_compiler_pic_F77=
cannam@95 16423 lt_prog_compiler_can_build_shared_F77=no
cannam@95 16424 fi
cannam@95 16425
cannam@95 16426 fi
cannam@95 16427
cannam@95 16428
cannam@95 16429
cannam@95 16430
cannam@95 16431
cannam@95 16432 #
cannam@95 16433 # Check to make sure the static flag actually works.
cannam@95 16434 #
cannam@95 16435 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
cannam@95 16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cannam@95 16437 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cannam@95 16438 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
cannam@95 16439 $as_echo_n "(cached) " >&6
cannam@95 16440 else
cannam@95 16441 lt_cv_prog_compiler_static_works_F77=no
cannam@95 16442 save_LDFLAGS="$LDFLAGS"
cannam@95 16443 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
cannam@95 16444 echo "$lt_simple_link_test_code" > conftest.$ac_ext
cannam@95 16445 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cannam@95 16446 # The linker can only warn and ignore the option if not recognized
cannam@95 16447 # So say no if there are warnings
cannam@95 16448 if test -s conftest.err; then
cannam@95 16449 # Append any errors to the config.log.
cannam@95 16450 cat conftest.err 1>&5
cannam@95 16451 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cannam@95 16452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@95 16453 if diff conftest.exp conftest.er2 >/dev/null; then
cannam@95 16454 lt_cv_prog_compiler_static_works_F77=yes
cannam@95 16455 fi
cannam@95 16456 else
cannam@95 16457 lt_cv_prog_compiler_static_works_F77=yes
cannam@95 16458 fi
cannam@95 16459 fi
cannam@95 16460 $RM -r conftest*
cannam@95 16461 LDFLAGS="$save_LDFLAGS"
cannam@95 16462
cannam@95 16463 fi
cannam@95 16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
cannam@95 16465 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
cannam@95 16466
cannam@95 16467 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
cannam@95 16468 :
cannam@95 16469 else
cannam@95 16470 lt_prog_compiler_static_F77=
cannam@95 16471 fi
cannam@95 16472
cannam@95 16473
cannam@95 16474
cannam@95 16475
cannam@95 16476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@95 16477 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@95 16478 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
cannam@95 16479 $as_echo_n "(cached) " >&6
cannam@95 16480 else
cannam@95 16481 lt_cv_prog_compiler_c_o_F77=no
cannam@95 16482 $RM -r conftest 2>/dev/null
cannam@95 16483 mkdir conftest
cannam@95 16484 cd conftest
cannam@95 16485 mkdir out
cannam@95 16486 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@95 16487
cannam@95 16488 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@95 16489 # Insert the option either (1) after the last *FLAGS variable, or
cannam@95 16490 # (2) before a word containing "conftest.", or (3) at the end.
cannam@95 16491 # Note that $ac_compile itself does not contain backslashes and begins
cannam@95 16492 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@95 16493 lt_compile=`echo "$ac_compile" | $SED \
cannam@95 16494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@95 16495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@95 16496 -e 's:$: $lt_compiler_flag:'`
cannam@95 16497 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@95 16498 (eval "$lt_compile" 2>out/conftest.err)
cannam@95 16499 ac_status=$?
cannam@95 16500 cat out/conftest.err >&5
cannam@95 16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@95 16502 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@95 16503 then
cannam@95 16504 # The compiler can only warn and ignore the option if not recognized
cannam@95 16505 # So say no if there are warnings
cannam@95 16506 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@95 16507 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@95 16508 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@95 16509 lt_cv_prog_compiler_c_o_F77=yes
cannam@95 16510 fi
cannam@95 16511 fi
cannam@95 16512 chmod u+w . 2>&5
cannam@95 16513 $RM conftest*
cannam@95 16514 # SGI C++ compiler will create directory out/ii_files/ for
cannam@95 16515 # template instantiation
cannam@95 16516 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@95 16517 $RM out/* && rmdir out
cannam@95 16518 cd ..
cannam@95 16519 $RM -r conftest
cannam@95 16520 $RM conftest*
cannam@95 16521
cannam@95 16522 fi
cannam@95 16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
cannam@95 16524 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
cannam@95 16525
cannam@95 16526
cannam@95 16527
cannam@95 16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@95 16529 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@95 16530 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
cannam@95 16531 $as_echo_n "(cached) " >&6
cannam@95 16532 else
cannam@95 16533 lt_cv_prog_compiler_c_o_F77=no
cannam@95 16534 $RM -r conftest 2>/dev/null
cannam@95 16535 mkdir conftest
cannam@95 16536 cd conftest
cannam@95 16537 mkdir out
cannam@95 16538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@95 16539
cannam@95 16540 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@95 16541 # Insert the option either (1) after the last *FLAGS variable, or
cannam@95 16542 # (2) before a word containing "conftest.", or (3) at the end.
cannam@95 16543 # Note that $ac_compile itself does not contain backslashes and begins
cannam@95 16544 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@95 16545 lt_compile=`echo "$ac_compile" | $SED \
cannam@95 16546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@95 16547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@95 16548 -e 's:$: $lt_compiler_flag:'`
cannam@95 16549 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@95 16550 (eval "$lt_compile" 2>out/conftest.err)
cannam@95 16551 ac_status=$?
cannam@95 16552 cat out/conftest.err >&5
cannam@95 16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@95 16554 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@95 16555 then
cannam@95 16556 # The compiler can only warn and ignore the option if not recognized
cannam@95 16557 # So say no if there are warnings
cannam@95 16558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@95 16559 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@95 16560 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@95 16561 lt_cv_prog_compiler_c_o_F77=yes
cannam@95 16562 fi
cannam@95 16563 fi
cannam@95 16564 chmod u+w . 2>&5
cannam@95 16565 $RM conftest*
cannam@95 16566 # SGI C++ compiler will create directory out/ii_files/ for
cannam@95 16567 # template instantiation
cannam@95 16568 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@95 16569 $RM out/* && rmdir out
cannam@95 16570 cd ..
cannam@95 16571 $RM -r conftest
cannam@95 16572 $RM conftest*
cannam@95 16573
cannam@95 16574 fi
cannam@95 16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
cannam@95 16576 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
cannam@95 16577
cannam@95 16578
cannam@95 16579
cannam@95 16580
cannam@95 16581 hard_links="nottested"
cannam@95 16582 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
cannam@95 16583 # do not overwrite the value of need_locks provided by the user
cannam@95 16584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cannam@95 16585 $as_echo_n "checking if we can lock with hard links... " >&6; }
cannam@95 16586 hard_links=yes
cannam@95 16587 $RM conftest*
cannam@95 16588 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@95 16589 touch conftest.a
cannam@95 16590 ln conftest.a conftest.b 2>&5 || hard_links=no
cannam@95 16591 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@95 16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cannam@95 16593 $as_echo "$hard_links" >&6; }
cannam@95 16594 if test "$hard_links" = no; then
cannam@95 16595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cannam@95 16596 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
cannam@95 16597 need_locks=warn
cannam@95 16598 fi
cannam@95 16599 else
cannam@95 16600 need_locks=no
cannam@95 16601 fi
cannam@95 16602
cannam@95 16603
cannam@95 16604
cannam@95 16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@95 16606 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
cannam@95 16607
cannam@95 16608 runpath_var=
cannam@95 16609 allow_undefined_flag_F77=
cannam@95 16610 always_export_symbols_F77=no
cannam@95 16611 archive_cmds_F77=
cannam@95 16612 archive_expsym_cmds_F77=
cannam@95 16613 compiler_needs_object_F77=no
cannam@95 16614 enable_shared_with_static_runtimes_F77=no
cannam@95 16615 export_dynamic_flag_spec_F77=
cannam@95 16616 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@95 16617 hardcode_automatic_F77=no
cannam@95 16618 hardcode_direct_F77=no
cannam@95 16619 hardcode_direct_absolute_F77=no
cannam@95 16620 hardcode_libdir_flag_spec_F77=
cannam@95 16621 hardcode_libdir_separator_F77=
cannam@95 16622 hardcode_minus_L_F77=no
cannam@95 16623 hardcode_shlibpath_var_F77=unsupported
cannam@95 16624 inherit_rpath_F77=no
cannam@95 16625 link_all_deplibs_F77=unknown
cannam@95 16626 module_cmds_F77=
cannam@95 16627 module_expsym_cmds_F77=
cannam@95 16628 old_archive_from_new_cmds_F77=
cannam@95 16629 old_archive_from_expsyms_cmds_F77=
cannam@95 16630 thread_safe_flag_spec_F77=
cannam@95 16631 whole_archive_flag_spec_F77=
cannam@95 16632 # include_expsyms should be a list of space-separated symbols to be *always*
cannam@95 16633 # included in the symbol list
cannam@95 16634 include_expsyms_F77=
cannam@95 16635 # exclude_expsyms can be an extended regexp of symbols to exclude
cannam@95 16636 # it will be wrapped by ` (' and `)$', so one must not match beginning or
cannam@95 16637 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
cannam@95 16638 # as well as any symbol that contains `d'.
cannam@95 16639 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cannam@95 16640 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
cannam@95 16641 # platforms (ab)use it in PIC code, but their linkers get confused if
cannam@95 16642 # the symbol is explicitly referenced. Since portable code cannot
cannam@95 16643 # rely on this symbol name, it's probably fine to never include it in
cannam@95 16644 # preloaded symbol tables.
cannam@95 16645 # Exclude shared library initialization/finalization symbols.
cannam@95 16646 extract_expsyms_cmds=
cannam@95 16647
cannam@95 16648 case $host_os in
cannam@95 16649 cygwin* | mingw* | pw32* | cegcc*)
cannam@95 16650 # FIXME: the MSVC++ port hasn't been tested in a loooong time
cannam@95 16651 # When not using gcc, we currently assume that we are using
cannam@95 16652 # Microsoft Visual C++.
cannam@95 16653 if test "$GCC" != yes; then
cannam@95 16654 with_gnu_ld=no
cannam@95 16655 fi
cannam@95 16656 ;;
cannam@95 16657 interix*)
cannam@95 16658 # we just hope/assume this is gcc and not c89 (= MSVC++)
cannam@95 16659 with_gnu_ld=yes
cannam@95 16660 ;;
cannam@95 16661 openbsd*)
cannam@95 16662 with_gnu_ld=no
cannam@95 16663 ;;
cannam@95 16664 linux* | k*bsd*-gnu | gnu*)
cannam@95 16665 link_all_deplibs_F77=no
cannam@95 16666 ;;
cannam@95 16667 esac
cannam@95 16668
cannam@95 16669 ld_shlibs_F77=yes
cannam@95 16670
cannam@95 16671 # On some targets, GNU ld is compatible enough with the native linker
cannam@95 16672 # that we're better off using the native interface for both.
cannam@95 16673 lt_use_gnu_ld_interface=no
cannam@95 16674 if test "$with_gnu_ld" = yes; then
cannam@95 16675 case $host_os in
cannam@95 16676 aix*)
cannam@95 16677 # The AIX port of GNU ld has always aspired to compatibility
cannam@95 16678 # with the native linker. However, as the warning in the GNU ld
cannam@95 16679 # block says, versions before 2.19.5* couldn't really create working
cannam@95 16680 # shared libraries, regardless of the interface used.
cannam@95 16681 case `$LD -v 2>&1` in
cannam@95 16682 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
cannam@95 16683 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
cannam@95 16684 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
cannam@95 16685 *)
cannam@95 16686 lt_use_gnu_ld_interface=yes
cannam@95 16687 ;;
cannam@95 16688 esac
cannam@95 16689 ;;
cannam@95 16690 *)
cannam@95 16691 lt_use_gnu_ld_interface=yes
cannam@95 16692 ;;
cannam@95 16693 esac
cannam@95 16694 fi
cannam@95 16695
cannam@95 16696 if test "$lt_use_gnu_ld_interface" = yes; then
cannam@95 16697 # If archive_cmds runs LD, not CC, wlarc should be empty
cannam@95 16698 wlarc='${wl}'
cannam@95 16699
cannam@95 16700 # Set some defaults for GNU ld with shared library support. These
cannam@95 16701 # are reset later if shared libraries are not supported. Putting them
cannam@95 16702 # here allows them to be overridden if necessary.
cannam@95 16703 runpath_var=LD_RUN_PATH
cannam@95 16704 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
cannam@95 16705 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
cannam@95 16706 # ancient GNU ld didn't support --whole-archive et. al.
cannam@95 16707 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
cannam@95 16708 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cannam@95 16709 else
cannam@95 16710 whole_archive_flag_spec_F77=
cannam@95 16711 fi
cannam@95 16712 supports_anon_versioning=no
cannam@95 16713 case `$LD -v 2>&1` in
cannam@95 16714 *GNU\ gold*) supports_anon_versioning=yes ;;
cannam@95 16715 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
cannam@95 16716 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
cannam@95 16717 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
cannam@95 16718 *\ 2.11.*) ;; # other 2.11 versions
cannam@95 16719 *) supports_anon_versioning=yes ;;
cannam@95 16720 esac
cannam@95 16721
cannam@95 16722 # See if GNU ld supports shared libraries.
cannam@95 16723 case $host_os in
cannam@95 16724 aix[3-9]*)
cannam@95 16725 # On AIX/PPC, the GNU linker is very broken
cannam@95 16726 if test "$host_cpu" != ia64; then
cannam@95 16727 ld_shlibs_F77=no
cannam@95 16728 cat <<_LT_EOF 1>&2
cannam@95 16729
cannam@95 16730 *** Warning: the GNU linker, at least up to release 2.19, is reported
cannam@95 16731 *** to be unable to reliably create shared libraries on AIX.
cannam@95 16732 *** Therefore, libtool is disabling shared libraries support. If you
cannam@95 16733 *** really care for shared libraries, you may want to install binutils
cannam@95 16734 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
cannam@95 16735 *** You will then need to restart the configuration process.
cannam@95 16736
cannam@95 16737 _LT_EOF
cannam@95 16738 fi
cannam@95 16739 ;;
cannam@95 16740
cannam@95 16741 amigaos*)
cannam@95 16742 case $host_cpu in
cannam@95 16743 powerpc)
cannam@95 16744 # see comment about AmigaOS4 .so support
cannam@95 16745 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@95 16746 archive_expsym_cmds_F77=''
cannam@95 16747 ;;
cannam@95 16748 m68k)
cannam@95 16749 archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
cannam@95 16750 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@95 16751 hardcode_minus_L_F77=yes
cannam@95 16752 ;;
cannam@95 16753 esac
cannam@95 16754 ;;
cannam@95 16755
cannam@95 16756 beos*)
cannam@95 16757 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@95 16758 allow_undefined_flag_F77=unsupported
cannam@95 16759 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
cannam@95 16760 # support --undefined. This deserves some investigation. FIXME
cannam@95 16761 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@95 16762 else
cannam@95 16763 ld_shlibs_F77=no
cannam@95 16764 fi
cannam@95 16765 ;;
cannam@95 16766
cannam@95 16767 cygwin* | mingw* | pw32* | cegcc*)
cannam@95 16768 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
cannam@95 16769 # as there is no search path for DLLs.
cannam@95 16770 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@95 16771 export_dynamic_flag_spec_F77='${wl}--export-all-symbols'
cannam@95 16772 allow_undefined_flag_F77=unsupported
cannam@95 16773 always_export_symbols_F77=no
cannam@95 16774 enable_shared_with_static_runtimes_F77=yes
cannam@95 16775 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
cannam@95 16776 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
cannam@95 16777
cannam@95 16778 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
cannam@95 16779 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
cannam@95 16780 # If the export-symbols file already is a .def file (1st line
cannam@95 16781 # is EXPORTS), use it as is; otherwise, prepend...
cannam@95 16782 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@95 16783 cp $export_symbols $output_objdir/$soname.def;
cannam@95 16784 else
cannam@95 16785 echo EXPORTS > $output_objdir/$soname.def;
cannam@95 16786 cat $export_symbols >> $output_objdir/$soname.def;
cannam@95 16787 fi~
cannam@95 16788 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
cannam@95 16789 else
cannam@95 16790 ld_shlibs_F77=no
cannam@95 16791 fi
cannam@95 16792 ;;
cannam@95 16793
cannam@95 16794 haiku*)
cannam@95 16795 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@95 16796 link_all_deplibs_F77=yes
cannam@95 16797 ;;
cannam@95 16798
cannam@95 16799 interix[3-9]*)
cannam@95 16800 hardcode_direct_F77=no
cannam@95 16801 hardcode_shlibpath_var_F77=no
cannam@95 16802 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
cannam@95 16803 export_dynamic_flag_spec_F77='${wl}-E'
cannam@95 16804 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
cannam@95 16805 # Instead, shared libraries are loaded at an image base (0x10000000 by
cannam@95 16806 # default) and relocated if they conflict, which is a slow very memory
cannam@95 16807 # consuming and fragmenting process. To avoid this, we pick a random,
cannam@95 16808 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
cannam@95 16809 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
cannam@95 16810 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
cannam@95 16811 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
cannam@95 16812 ;;
cannam@95 16813
cannam@95 16814 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cannam@95 16815 tmp_diet=no
cannam@95 16816 if test "$host_os" = linux-dietlibc; then
cannam@95 16817 case $cc_basename in
cannam@95 16818 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
cannam@95 16819 esac
cannam@95 16820 fi
cannam@95 16821 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
cannam@95 16822 && test "$tmp_diet" = no
cannam@95 16823 then
cannam@95 16824 tmp_addflag=' $pic_flag'
cannam@95 16825 tmp_sharedflag='-shared'
cannam@95 16826 case $cc_basename,$host_cpu in
cannam@95 16827 pgcc*) # Portland Group C compiler
cannam@95 16828 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cannam@95 16829 tmp_addflag=' $pic_flag'
cannam@95 16830 ;;
cannam@95 16831 pgf77* | pgf90* | pgf95* | pgfortran*)
cannam@95 16832 # Portland Group f77 and f90 compilers
cannam@95 16833 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cannam@95 16834 tmp_addflag=' $pic_flag -Mnomain' ;;
cannam@95 16835 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
cannam@95 16836 tmp_addflag=' -i_dynamic' ;;
cannam@95 16837 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
cannam@95 16838 tmp_addflag=' -i_dynamic -nofor_main' ;;
cannam@95 16839 ifc* | ifort*) # Intel Fortran compiler
cannam@95 16840 tmp_addflag=' -nofor_main' ;;
cannam@95 16841 lf95*) # Lahey Fortran 8.1
cannam@95 16842 whole_archive_flag_spec_F77=
cannam@95 16843 tmp_sharedflag='--shared' ;;
cannam@95 16844 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cannam@95 16845 tmp_sharedflag='-qmkshrobj'
cannam@95 16846 tmp_addflag= ;;
cannam@95 16847 nvcc*) # Cuda Compiler Driver 2.2
cannam@95 16848 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cannam@95 16849 compiler_needs_object_F77=yes
cannam@95 16850 ;;
cannam@95 16851 esac
cannam@95 16852 case `$CC -V 2>&1 | sed 5q` in
cannam@95 16853 *Sun\ C*) # Sun C 5.9
cannam@95 16854 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cannam@95 16855 compiler_needs_object_F77=yes
cannam@95 16856 tmp_sharedflag='-G' ;;
cannam@95 16857 *Sun\ F*) # Sun Fortran 8.3
cannam@95 16858 tmp_sharedflag='-G' ;;
cannam@95 16859 esac
cannam@95 16860 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@95 16861
cannam@95 16862 if test "x$supports_anon_versioning" = xyes; then
cannam@95 16863 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
cannam@95 16864 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@95 16865 echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@95 16866 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
cannam@95 16867 fi
cannam@95 16868
cannam@95 16869 case $cc_basename in
cannam@95 16870 xlf* | bgf* | bgxlf* | mpixlf*)
cannam@95 16871 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
cannam@95 16872 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
cannam@95 16873 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
cannam@95 16874 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cannam@95 16875 if test "x$supports_anon_versioning" = xyes; then
cannam@95 16876 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
cannam@95 16877 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@95 16878 echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@95 16879 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cannam@95 16880 fi
cannam@95 16881 ;;
cannam@95 16882 esac
cannam@95 16883 else
cannam@95 16884 ld_shlibs_F77=no
cannam@95 16885 fi
cannam@95 16886 ;;
cannam@95 16887
cannam@95 16888 netbsd* | netbsdelf*-gnu)
cannam@95 16889 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@95 16890 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
cannam@95 16891 wlarc=
cannam@95 16892 else
cannam@95 16893 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@95 16894 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@95 16895 fi
cannam@95 16896 ;;
cannam@95 16897
cannam@95 16898 solaris*)
cannam@95 16899 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
cannam@95 16900 ld_shlibs_F77=no
cannam@95 16901 cat <<_LT_EOF 1>&2
cannam@95 16902
cannam@95 16903 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
cannam@95 16904 *** create shared libraries on Solaris systems. Therefore, libtool
cannam@95 16905 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@95 16906 *** binutils to release 2.9.1 or newer. Another option is to modify
cannam@95 16907 *** your PATH or compiler configuration so that the native linker is
cannam@95 16908 *** used, and then restart.
cannam@95 16909
cannam@95 16910 _LT_EOF
cannam@95 16911 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@95 16912 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@95 16913 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@95 16914 else
cannam@95 16915 ld_shlibs_F77=no
cannam@95 16916 fi
cannam@95 16917 ;;
cannam@95 16918
cannam@95 16919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
cannam@95 16920 case `$LD -v 2>&1` in
cannam@95 16921 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
cannam@95 16922 ld_shlibs_F77=no
cannam@95 16923 cat <<_LT_EOF 1>&2
cannam@95 16924
cannam@95 16925 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
cannam@95 16926 *** reliably create shared libraries on SCO systems. Therefore, libtool
cannam@95 16927 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@95 16928 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
cannam@95 16929 *** your PATH or compiler configuration so that the native linker is
cannam@95 16930 *** used, and then restart.
cannam@95 16931
cannam@95 16932 _LT_EOF
cannam@95 16933 ;;
cannam@95 16934 *)
cannam@95 16935 # For security reasons, it is highly recommended that you always
cannam@95 16936 # use absolute paths for naming shared libraries, and exclude the
cannam@95 16937 # DT_RUNPATH tag from executables and libraries. But doing so
cannam@95 16938 # requires that you compile everything twice, which is a pain.
cannam@95 16939 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@95 16940 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
cannam@95 16941 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@95 16942 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@95 16943 else
cannam@95 16944 ld_shlibs_F77=no
cannam@95 16945 fi
cannam@95 16946 ;;
cannam@95 16947 esac
cannam@95 16948 ;;
cannam@95 16949
cannam@95 16950 sunos4*)
cannam@95 16951 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@95 16952 wlarc=
cannam@95 16953 hardcode_direct_F77=yes
cannam@95 16954 hardcode_shlibpath_var_F77=no
cannam@95 16955 ;;
cannam@95 16956
cannam@95 16957 *)
cannam@95 16958 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@95 16959 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@95 16960 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@95 16961 else
cannam@95 16962 ld_shlibs_F77=no
cannam@95 16963 fi
cannam@95 16964 ;;
cannam@95 16965 esac
cannam@95 16966
cannam@95 16967 if test "$ld_shlibs_F77" = no; then
cannam@95 16968 runpath_var=
cannam@95 16969 hardcode_libdir_flag_spec_F77=
cannam@95 16970 export_dynamic_flag_spec_F77=
cannam@95 16971 whole_archive_flag_spec_F77=
cannam@95 16972 fi
cannam@95 16973 else
cannam@95 16974 # PORTME fill in a description of your system's linker (not GNU ld)
cannam@95 16975 case $host_os in
cannam@95 16976 aix3*)
cannam@95 16977 allow_undefined_flag_F77=unsupported
cannam@95 16978 always_export_symbols_F77=yes
cannam@95 16979 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
cannam@95 16980 # Note: this linker hardcodes the directories in LIBPATH if there
cannam@95 16981 # are no directories specified by -L.
cannam@95 16982 hardcode_minus_L_F77=yes
cannam@95 16983 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
cannam@95 16984 # Neither direct hardcoding nor static linking is supported with a
cannam@95 16985 # broken collect2.
cannam@95 16986 hardcode_direct_F77=unsupported
cannam@95 16987 fi
cannam@95 16988 ;;
cannam@95 16989
cannam@95 16990 aix[4-9]*)
cannam@95 16991 if test "$host_cpu" = ia64; then
cannam@95 16992 # On IA64, the linker does run time linking by default, so we don't
cannam@95 16993 # have to do anything special.
cannam@95 16994 aix_use_runtimelinking=no
cannam@95 16995 exp_sym_flag='-Bexport'
cannam@95 16996 no_entry_flag=""
cannam@95 16997 else
cannam@95 16998 # If we're using GNU nm, then we don't want the "-C" option.
cannam@95 16999 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cannam@95 17000 # Also, AIX nm treats weak defined symbols like other global
cannam@95 17001 # defined symbols, whereas GNU nm marks them as "W".
cannam@95 17002 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cannam@95 17003 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cannam@95 17004 else
cannam@95 17005 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cannam@95 17006 fi
cannam@95 17007 aix_use_runtimelinking=no
cannam@95 17008
cannam@95 17009 # Test if we are trying to use run time linking or normal
cannam@95 17010 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cannam@95 17011 # need to do runtime linking.
cannam@95 17012 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
cannam@95 17013 for ld_flag in $LDFLAGS; do
cannam@95 17014 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
cannam@95 17015 aix_use_runtimelinking=yes
cannam@95 17016 break
cannam@95 17017 fi
cannam@95 17018 done
cannam@95 17019 ;;
cannam@95 17020 esac
cannam@95 17021
cannam@95 17022 exp_sym_flag='-bexport'
cannam@95 17023 no_entry_flag='-bnoentry'
cannam@95 17024 fi
cannam@95 17025
cannam@95 17026 # When large executables or shared objects are built, AIX ld can
cannam@95 17027 # have problems creating the table of contents. If linking a library
cannam@95 17028 # or program results in "error TOC overflow" add -mminimal-toc to
cannam@95 17029 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cannam@95 17030 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cannam@95 17031
cannam@95 17032 archive_cmds_F77=''
cannam@95 17033 hardcode_direct_F77=yes
cannam@95 17034 hardcode_direct_absolute_F77=yes
cannam@95 17035 hardcode_libdir_separator_F77=':'
cannam@95 17036 link_all_deplibs_F77=yes
cannam@95 17037 file_list_spec_F77='${wl}-f,'
cannam@95 17038
cannam@95 17039 if test "$GCC" = yes; then
cannam@95 17040 case $host_os in aix4.[012]|aix4.[012].*)
cannam@95 17041 # We only want to do this on AIX 4.2 and lower, the check
cannam@95 17042 # below for broken collect2 doesn't work under 4.3+
cannam@95 17043 collect2name=`${CC} -print-prog-name=collect2`
cannam@95 17044 if test -f "$collect2name" &&
cannam@95 17045 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
cannam@95 17046 then
cannam@95 17047 # We have reworked collect2
cannam@95 17048 :
cannam@95 17049 else
cannam@95 17050 # We have old collect2
cannam@95 17051 hardcode_direct_F77=unsupported
cannam@95 17052 # It fails to find uninstalled libraries when the uninstalled
cannam@95 17053 # path is not listed in the libpath. Setting hardcode_minus_L
cannam@95 17054 # to unsupported forces relinking
cannam@95 17055 hardcode_minus_L_F77=yes
cannam@95 17056 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@95 17057 hardcode_libdir_separator_F77=
cannam@95 17058 fi
cannam@95 17059 ;;
cannam@95 17060 esac
cannam@95 17061 shared_flag='-shared'
cannam@95 17062 if test "$aix_use_runtimelinking" = yes; then
cannam@95 17063 shared_flag="$shared_flag "'${wl}-G'
cannam@95 17064 fi
cannam@95 17065 link_all_deplibs_F77=no
cannam@95 17066 else
cannam@95 17067 # not using gcc
cannam@95 17068 if test "$host_cpu" = ia64; then
cannam@95 17069 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cannam@95 17070 # chokes on -Wl,-G. The following line is correct:
cannam@95 17071 shared_flag='-G'
cannam@95 17072 else
cannam@95 17073 if test "$aix_use_runtimelinking" = yes; then
cannam@95 17074 shared_flag='${wl}-G'
cannam@95 17075 else
cannam@95 17076 shared_flag='${wl}-bM:SRE'
cannam@95 17077 fi
cannam@95 17078 fi
cannam@95 17079 fi
cannam@95 17080
cannam@95 17081 export_dynamic_flag_spec_F77='${wl}-bexpall'
cannam@95 17082 # It seems that -bexpall does not export symbols beginning with
cannam@95 17083 # underscore (_), so it is better to generate a list of symbols to export.
cannam@95 17084 always_export_symbols_F77=yes
cannam@95 17085 if test "$aix_use_runtimelinking" = yes; then
cannam@95 17086 # Warning - without using the other runtime loading flags (-brtl),
cannam@95 17087 # -berok will link without error, but may produce a broken library.
cannam@95 17088 allow_undefined_flag_F77='-berok'
cannam@95 17089 # Determine the default libpath from the value encoded in an
cannam@95 17090 # empty executable.
cannam@95 17091 if test "${lt_cv_aix_libpath+set}" = set; then
cannam@95 17092 aix_libpath=$lt_cv_aix_libpath
cannam@95 17093 else
cannam@95 17094 if ${lt_cv_aix_libpath__F77+:} false; then :
cannam@95 17095 $as_echo_n "(cached) " >&6
cannam@95 17096 else
cannam@95 17097 cat > conftest.$ac_ext <<_ACEOF
cannam@95 17098 program main
cannam@95 17099
cannam@95 17100 end
cannam@95 17101 _ACEOF
cannam@95 17102 if ac_fn_f77_try_link "$LINENO"; then :
cannam@95 17103
cannam@95 17104 lt_aix_libpath_sed='
cannam@95 17105 /Import File Strings/,/^$/ {
cannam@95 17106 /^0/ {
cannam@95 17107 s/^0 *\([^ ]*\) *$/\1/
cannam@95 17108 p
cannam@95 17109 }
cannam@95 17110 }'
cannam@95 17111 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@95 17112 # Check for a 64-bit object if we didn't find anything.
cannam@95 17113 if test -z "$lt_cv_aix_libpath__F77"; then
cannam@95 17114 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@95 17115 fi
cannam@95 17116 fi
cannam@95 17117 rm -f core conftest.err conftest.$ac_objext \
cannam@95 17118 conftest$ac_exeext conftest.$ac_ext
cannam@95 17119 if test -z "$lt_cv_aix_libpath__F77"; then
cannam@95 17120 lt_cv_aix_libpath__F77="/usr/lib:/lib"
cannam@95 17121 fi
cannam@95 17122
cannam@95 17123 fi
cannam@95 17124
cannam@95 17125 aix_libpath=$lt_cv_aix_libpath__F77
cannam@95 17126 fi
cannam@95 17127
cannam@95 17128 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@95 17129 archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cannam@95 17130 else
cannam@95 17131 if test "$host_cpu" = ia64; then
cannam@95 17132 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
cannam@95 17133 allow_undefined_flag_F77="-z nodefs"
cannam@95 17134 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
cannam@95 17135 else
cannam@95 17136 # Determine the default libpath from the value encoded in an
cannam@95 17137 # empty executable.
cannam@95 17138 if test "${lt_cv_aix_libpath+set}" = set; then
cannam@95 17139 aix_libpath=$lt_cv_aix_libpath
cannam@95 17140 else
cannam@95 17141 if ${lt_cv_aix_libpath__F77+:} false; then :
cannam@95 17142 $as_echo_n "(cached) " >&6
cannam@95 17143 else
cannam@95 17144 cat > conftest.$ac_ext <<_ACEOF
cannam@95 17145 program main
cannam@95 17146
cannam@95 17147 end
cannam@95 17148 _ACEOF
cannam@95 17149 if ac_fn_f77_try_link "$LINENO"; then :
cannam@95 17150
cannam@95 17151 lt_aix_libpath_sed='
cannam@95 17152 /Import File Strings/,/^$/ {
cannam@95 17153 /^0/ {
cannam@95 17154 s/^0 *\([^ ]*\) *$/\1/
cannam@95 17155 p
cannam@95 17156 }
cannam@95 17157 }'
cannam@95 17158 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@95 17159 # Check for a 64-bit object if we didn't find anything.
cannam@95 17160 if test -z "$lt_cv_aix_libpath__F77"; then
cannam@95 17161 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@95 17162 fi
cannam@95 17163 fi
cannam@95 17164 rm -f core conftest.err conftest.$ac_objext \
cannam@95 17165 conftest$ac_exeext conftest.$ac_ext
cannam@95 17166 if test -z "$lt_cv_aix_libpath__F77"; then
cannam@95 17167 lt_cv_aix_libpath__F77="/usr/lib:/lib"
cannam@95 17168 fi
cannam@95 17169
cannam@95 17170 fi
cannam@95 17171
cannam@95 17172 aix_libpath=$lt_cv_aix_libpath__F77
cannam@95 17173 fi
cannam@95 17174
cannam@95 17175 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@95 17176 # Warning - without using the other run time loading flags,
cannam@95 17177 # -berok will link without error, but may produce a broken library.
cannam@95 17178 no_undefined_flag_F77=' ${wl}-bernotok'
cannam@95 17179 allow_undefined_flag_F77=' ${wl}-berok'
cannam@95 17180 if test "$with_gnu_ld" = yes; then
cannam@95 17181 # We only use this code for GNU lds that support --whole-archive.
cannam@95 17182 whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
cannam@95 17183 else
cannam@95 17184 # Exported symbols can be pulled into shared objects from archives
cannam@95 17185 whole_archive_flag_spec_F77='$convenience'
cannam@95 17186 fi
cannam@95 17187 archive_cmds_need_lc_F77=yes
cannam@95 17188 # This is similar to how AIX traditionally builds its shared libraries.
cannam@95 17189 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
cannam@95 17190 fi
cannam@95 17191 fi
cannam@95 17192 ;;
cannam@95 17193
cannam@95 17194 amigaos*)
cannam@95 17195 case $host_cpu in
cannam@95 17196 powerpc)
cannam@95 17197 # see comment about AmigaOS4 .so support
cannam@95 17198 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@95 17199 archive_expsym_cmds_F77=''
cannam@95 17200 ;;
cannam@95 17201 m68k)
cannam@95 17202 archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
cannam@95 17203 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@95 17204 hardcode_minus_L_F77=yes
cannam@95 17205 ;;
cannam@95 17206 esac
cannam@95 17207 ;;
cannam@95 17208
cannam@95 17209 bsdi[45]*)
cannam@95 17210 export_dynamic_flag_spec_F77=-rdynamic
cannam@95 17211 ;;
cannam@95 17212
cannam@95 17213 cygwin* | mingw* | pw32* | cegcc*)
cannam@95 17214 # When not using gcc, we currently assume that we are using
cannam@95 17215 # Microsoft Visual C++.
cannam@95 17216 # hardcode_libdir_flag_spec is actually meaningless, as there is
cannam@95 17217 # no search path for DLLs.
cannam@95 17218 case $cc_basename in
cannam@95 17219 cl*)
cannam@95 17220 # Native MSVC
cannam@95 17221 hardcode_libdir_flag_spec_F77=' '
cannam@95 17222 allow_undefined_flag_F77=unsupported
cannam@95 17223 always_export_symbols_F77=yes
cannam@95 17224 file_list_spec_F77='@'
cannam@95 17225 # Tell ltmain to make .lib files, not .a files.
cannam@95 17226 libext=lib
cannam@95 17227 # Tell ltmain to make .dll files, not .so files.
cannam@95 17228 shrext_cmds=".dll"
cannam@95 17229 # FIXME: Setting linknames here is a bad hack.
cannam@95 17230 archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
cannam@95 17231 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@95 17232 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
cannam@95 17233 else
cannam@95 17234 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
cannam@95 17235 fi~
cannam@95 17236 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
cannam@95 17237 linknames='
cannam@95 17238 # The linker will not automatically build a static lib if we build a DLL.
cannam@95 17239 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
cannam@95 17240 enable_shared_with_static_runtimes_F77=yes
cannam@95 17241 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cannam@95 17242 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
cannam@95 17243 # Don't use ranlib
cannam@95 17244 old_postinstall_cmds_F77='chmod 644 $oldlib'
cannam@95 17245 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
cannam@95 17246 lt_tool_outputfile="@TOOL_OUTPUT@"~
cannam@95 17247 case $lt_outputfile in
cannam@95 17248 *.exe|*.EXE) ;;
cannam@95 17249 *)
cannam@95 17250 lt_outputfile="$lt_outputfile.exe"
cannam@95 17251 lt_tool_outputfile="$lt_tool_outputfile.exe"
cannam@95 17252 ;;
cannam@95 17253 esac~
cannam@95 17254 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
cannam@95 17255 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
cannam@95 17256 $RM "$lt_outputfile.manifest";
cannam@95 17257 fi'
cannam@95 17258 ;;
cannam@95 17259 *)
cannam@95 17260 # Assume MSVC wrapper
cannam@95 17261 hardcode_libdir_flag_spec_F77=' '
cannam@95 17262 allow_undefined_flag_F77=unsupported
cannam@95 17263 # Tell ltmain to make .lib files, not .a files.
cannam@95 17264 libext=lib
cannam@95 17265 # Tell ltmain to make .dll files, not .so files.
cannam@95 17266 shrext_cmds=".dll"
cannam@95 17267 # FIXME: Setting linknames here is a bad hack.
cannam@95 17268 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cannam@95 17269 # The linker will automatically build a .lib file if we build a DLL.
cannam@95 17270 old_archive_from_new_cmds_F77='true'
cannam@95 17271 # FIXME: Should let the user specify the lib program.
cannam@95 17272 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
cannam@95 17273 enable_shared_with_static_runtimes_F77=yes
cannam@95 17274 ;;
cannam@95 17275 esac
cannam@95 17276 ;;
cannam@95 17277
cannam@95 17278 darwin* | rhapsody*)
cannam@95 17279
cannam@95 17280
cannam@95 17281 archive_cmds_need_lc_F77=no
cannam@95 17282 hardcode_direct_F77=no
cannam@95 17283 hardcode_automatic_F77=yes
cannam@95 17284 hardcode_shlibpath_var_F77=unsupported
cannam@95 17285 if test "$lt_cv_ld_force_load" = "yes"; then
cannam@95 17286 whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
cannam@95 17287 compiler_needs_object_F77=yes
cannam@95 17288 else
cannam@95 17289 whole_archive_flag_spec_F77=''
cannam@95 17290 fi
cannam@95 17291 link_all_deplibs_F77=yes
cannam@95 17292 allow_undefined_flag_F77="$_lt_dar_allow_undefined"
cannam@95 17293 case $cc_basename in
cannam@95 17294 ifort*) _lt_dar_can_shared=yes ;;
cannam@95 17295 *) _lt_dar_can_shared=$GCC ;;
cannam@95 17296 esac
cannam@95 17297 if test "$_lt_dar_can_shared" = "yes"; then
cannam@95 17298 output_verbose_link_cmd=func_echo_all
cannam@95 17299 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
cannam@95 17300 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
cannam@95 17301 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
cannam@95 17302 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
cannam@95 17303
cannam@95 17304 else
cannam@95 17305 ld_shlibs_F77=no
cannam@95 17306 fi
cannam@95 17307
cannam@95 17308 ;;
cannam@95 17309
cannam@95 17310 dgux*)
cannam@95 17311 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@95 17312 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@95 17313 hardcode_shlibpath_var_F77=no
cannam@95 17314 ;;
cannam@95 17315
cannam@95 17316 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
cannam@95 17317 # support. Future versions do this automatically, but an explicit c++rt0.o
cannam@95 17318 # does not break anything, and helps significantly (at the cost of a little
cannam@95 17319 # extra space).
cannam@95 17320 freebsd2.2*)
cannam@95 17321 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
cannam@95 17322 hardcode_libdir_flag_spec_F77='-R$libdir'
cannam@95 17323 hardcode_direct_F77=yes
cannam@95 17324 hardcode_shlibpath_var_F77=no
cannam@95 17325 ;;
cannam@95 17326
cannam@95 17327 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cannam@95 17328 freebsd2.*)
cannam@95 17329 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@95 17330 hardcode_direct_F77=yes
cannam@95 17331 hardcode_minus_L_F77=yes
cannam@95 17332 hardcode_shlibpath_var_F77=no
cannam@95 17333 ;;
cannam@95 17334
cannam@95 17335 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
cannam@95 17336 freebsd* | dragonfly*)
cannam@95 17337 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 17338 hardcode_libdir_flag_spec_F77='-R$libdir'
cannam@95 17339 hardcode_direct_F77=yes
cannam@95 17340 hardcode_shlibpath_var_F77=no
cannam@95 17341 ;;
cannam@95 17342
cannam@95 17343 hpux9*)
cannam@95 17344 if test "$GCC" = yes; then
cannam@95 17345 archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cannam@95 17346 else
cannam@95 17347 archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cannam@95 17348 fi
cannam@95 17349 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
cannam@95 17350 hardcode_libdir_separator_F77=:
cannam@95 17351 hardcode_direct_F77=yes
cannam@95 17352
cannam@95 17353 # hardcode_minus_L: Not really in the search PATH,
cannam@95 17354 # but as the default location of the library.
cannam@95 17355 hardcode_minus_L_F77=yes
cannam@95 17356 export_dynamic_flag_spec_F77='${wl}-E'
cannam@95 17357 ;;
cannam@95 17358
cannam@95 17359 hpux10*)
cannam@95 17360 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cannam@95 17361 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 17362 else
cannam@95 17363 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cannam@95 17364 fi
cannam@95 17365 if test "$with_gnu_ld" = no; then
cannam@95 17366 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
cannam@95 17367 hardcode_libdir_separator_F77=:
cannam@95 17368 hardcode_direct_F77=yes
cannam@95 17369 hardcode_direct_absolute_F77=yes
cannam@95 17370 export_dynamic_flag_spec_F77='${wl}-E'
cannam@95 17371 # hardcode_minus_L: Not really in the search PATH,
cannam@95 17372 # but as the default location of the library.
cannam@95 17373 hardcode_minus_L_F77=yes
cannam@95 17374 fi
cannam@95 17375 ;;
cannam@95 17376
cannam@95 17377 hpux11*)
cannam@95 17378 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cannam@95 17379 case $host_cpu in
cannam@95 17380 hppa*64*)
cannam@95 17381 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 17382 ;;
cannam@95 17383 ia64*)
cannam@95 17384 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 17385 ;;
cannam@95 17386 *)
cannam@95 17387 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 17388 ;;
cannam@95 17389 esac
cannam@95 17390 else
cannam@95 17391 case $host_cpu in
cannam@95 17392 hppa*64*)
cannam@95 17393 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 17394 ;;
cannam@95 17395 ia64*)
cannam@95 17396 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 17397 ;;
cannam@95 17398 *)
cannam@95 17399 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 17400 ;;
cannam@95 17401 esac
cannam@95 17402 fi
cannam@95 17403 if test "$with_gnu_ld" = no; then
cannam@95 17404 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
cannam@95 17405 hardcode_libdir_separator_F77=:
cannam@95 17406
cannam@95 17407 case $host_cpu in
cannam@95 17408 hppa*64*|ia64*)
cannam@95 17409 hardcode_direct_F77=no
cannam@95 17410 hardcode_shlibpath_var_F77=no
cannam@95 17411 ;;
cannam@95 17412 *)
cannam@95 17413 hardcode_direct_F77=yes
cannam@95 17414 hardcode_direct_absolute_F77=yes
cannam@95 17415 export_dynamic_flag_spec_F77='${wl}-E'
cannam@95 17416
cannam@95 17417 # hardcode_minus_L: Not really in the search PATH,
cannam@95 17418 # but as the default location of the library.
cannam@95 17419 hardcode_minus_L_F77=yes
cannam@95 17420 ;;
cannam@95 17421 esac
cannam@95 17422 fi
cannam@95 17423 ;;
cannam@95 17424
cannam@95 17425 irix5* | irix6* | nonstopux*)
cannam@95 17426 if test "$GCC" = yes; then
cannam@95 17427 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cannam@95 17428 # Try to use the -exported_symbol ld option, if it does not
cannam@95 17429 # work, assume that -exports_file does not work either and
cannam@95 17430 # implicitly export all symbols.
cannam@95 17431 # This should be the same for all languages, so no per-tag cache variable.
cannam@95 17432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
cannam@95 17433 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
cannam@95 17434 if ${lt_cv_irix_exported_symbol+:} false; then :
cannam@95 17435 $as_echo_n "(cached) " >&6
cannam@95 17436 else
cannam@95 17437 save_LDFLAGS="$LDFLAGS"
cannam@95 17438 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cannam@95 17439 cat > conftest.$ac_ext <<_ACEOF
cannam@95 17440
cannam@95 17441 subroutine foo
cannam@95 17442 end
cannam@95 17443 _ACEOF
cannam@95 17444 if ac_fn_f77_try_link "$LINENO"; then :
cannam@95 17445 lt_cv_irix_exported_symbol=yes
cannam@95 17446 else
cannam@95 17447 lt_cv_irix_exported_symbol=no
cannam@95 17448 fi
cannam@95 17449 rm -f core conftest.err conftest.$ac_objext \
cannam@95 17450 conftest$ac_exeext conftest.$ac_ext
cannam@95 17451 LDFLAGS="$save_LDFLAGS"
cannam@95 17452 fi
cannam@95 17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
cannam@95 17454 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
cannam@95 17455 if test "$lt_cv_irix_exported_symbol" = yes; then
cannam@95 17456 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
cannam@95 17457 fi
cannam@95 17458 else
cannam@95 17459 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cannam@95 17460 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
cannam@95 17461 fi
cannam@95 17462 archive_cmds_need_lc_F77='no'
cannam@95 17463 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
cannam@95 17464 hardcode_libdir_separator_F77=:
cannam@95 17465 inherit_rpath_F77=yes
cannam@95 17466 link_all_deplibs_F77=yes
cannam@95 17467 ;;
cannam@95 17468
cannam@95 17469 netbsd* | netbsdelf*-gnu)
cannam@95 17470 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@95 17471 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
cannam@95 17472 else
cannam@95 17473 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
cannam@95 17474 fi
cannam@95 17475 hardcode_libdir_flag_spec_F77='-R$libdir'
cannam@95 17476 hardcode_direct_F77=yes
cannam@95 17477 hardcode_shlibpath_var_F77=no
cannam@95 17478 ;;
cannam@95 17479
cannam@95 17480 newsos6)
cannam@95 17481 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@95 17482 hardcode_direct_F77=yes
cannam@95 17483 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
cannam@95 17484 hardcode_libdir_separator_F77=:
cannam@95 17485 hardcode_shlibpath_var_F77=no
cannam@95 17486 ;;
cannam@95 17487
cannam@95 17488 *nto* | *qnx*)
cannam@95 17489 ;;
cannam@95 17490
cannam@95 17491 openbsd*)
cannam@95 17492 if test -f /usr/libexec/ld.so; then
cannam@95 17493 hardcode_direct_F77=yes
cannam@95 17494 hardcode_shlibpath_var_F77=no
cannam@95 17495 hardcode_direct_absolute_F77=yes
cannam@95 17496 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@95 17497 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 17498 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
cannam@95 17499 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
cannam@95 17500 export_dynamic_flag_spec_F77='${wl}-E'
cannam@95 17501 else
cannam@95 17502 case $host_os in
cannam@95 17503 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
cannam@95 17504 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@95 17505 hardcode_libdir_flag_spec_F77='-R$libdir'
cannam@95 17506 ;;
cannam@95 17507 *)
cannam@95 17508 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 17509 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
cannam@95 17510 ;;
cannam@95 17511 esac
cannam@95 17512 fi
cannam@95 17513 else
cannam@95 17514 ld_shlibs_F77=no
cannam@95 17515 fi
cannam@95 17516 ;;
cannam@95 17517
cannam@95 17518 os2*)
cannam@95 17519 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@95 17520 hardcode_minus_L_F77=yes
cannam@95 17521 allow_undefined_flag_F77=unsupported
cannam@95 17522 archive_cmds_F77='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
cannam@95 17523 old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
cannam@95 17524 ;;
cannam@95 17525
cannam@95 17526 osf3*)
cannam@95 17527 if test "$GCC" = yes; then
cannam@95 17528 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
cannam@95 17529 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cannam@95 17530 else
cannam@95 17531 allow_undefined_flag_F77=' -expect_unresolved \*'
cannam@95 17532 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cannam@95 17533 fi
cannam@95 17534 archive_cmds_need_lc_F77='no'
cannam@95 17535 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
cannam@95 17536 hardcode_libdir_separator_F77=:
cannam@95 17537 ;;
cannam@95 17538
cannam@95 17539 osf4* | osf5*) # as osf3* with the addition of -msym flag
cannam@95 17540 if test "$GCC" = yes; then
cannam@95 17541 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
cannam@95 17542 archive_cmds_F77='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cannam@95 17543 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
cannam@95 17544 else
cannam@95 17545 allow_undefined_flag_F77=' -expect_unresolved \*'
cannam@95 17546 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cannam@95 17547 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
cannam@95 17548 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
cannam@95 17549
cannam@95 17550 # Both c and cxx compiler support -rpath directly
cannam@95 17551 hardcode_libdir_flag_spec_F77='-rpath $libdir'
cannam@95 17552 fi
cannam@95 17553 archive_cmds_need_lc_F77='no'
cannam@95 17554 hardcode_libdir_separator_F77=:
cannam@95 17555 ;;
cannam@95 17556
cannam@95 17557 solaris*)
cannam@95 17558 no_undefined_flag_F77=' -z defs'
cannam@95 17559 if test "$GCC" = yes; then
cannam@95 17560 wlarc='${wl}'
cannam@95 17561 archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 17562 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@95 17563 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
cannam@95 17564 else
cannam@95 17565 case `$CC -V 2>&1` in
cannam@95 17566 *"Compilers 5.0"*)
cannam@95 17567 wlarc=''
cannam@95 17568 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@95 17569 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@95 17570 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
cannam@95 17571 ;;
cannam@95 17572 *)
cannam@95 17573 wlarc='${wl}'
cannam@95 17574 archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 17575 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@95 17576 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
cannam@95 17577 ;;
cannam@95 17578 esac
cannam@95 17579 fi
cannam@95 17580 hardcode_libdir_flag_spec_F77='-R$libdir'
cannam@95 17581 hardcode_shlibpath_var_F77=no
cannam@95 17582 case $host_os in
cannam@95 17583 solaris2.[0-5] | solaris2.[0-5].*) ;;
cannam@95 17584 *)
cannam@95 17585 # The compiler driver will combine and reorder linker options,
cannam@95 17586 # but understands `-z linker_flag'. GCC discards it without `$wl',
cannam@95 17587 # but is careful enough not to reorder.
cannam@95 17588 # Supported since Solaris 2.6 (maybe 2.5.1?)
cannam@95 17589 if test "$GCC" = yes; then
cannam@95 17590 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
cannam@95 17591 else
cannam@95 17592 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
cannam@95 17593 fi
cannam@95 17594 ;;
cannam@95 17595 esac
cannam@95 17596 link_all_deplibs_F77=yes
cannam@95 17597 ;;
cannam@95 17598
cannam@95 17599 sunos4*)
cannam@95 17600 if test "x$host_vendor" = xsequent; then
cannam@95 17601 # Use $CC to link under sequent, because it throws in some extra .o
cannam@95 17602 # files that make .init and .fini sections work.
cannam@95 17603 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 17604 else
cannam@95 17605 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
cannam@95 17606 fi
cannam@95 17607 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@95 17608 hardcode_direct_F77=yes
cannam@95 17609 hardcode_minus_L_F77=yes
cannam@95 17610 hardcode_shlibpath_var_F77=no
cannam@95 17611 ;;
cannam@95 17612
cannam@95 17613 sysv4)
cannam@95 17614 case $host_vendor in
cannam@95 17615 sni)
cannam@95 17616 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@95 17617 hardcode_direct_F77=yes # is this really true???
cannam@95 17618 ;;
cannam@95 17619 siemens)
cannam@95 17620 ## LD is ld it makes a PLAMLIB
cannam@95 17621 ## CC just makes a GrossModule.
cannam@95 17622 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cannam@95 17623 reload_cmds_F77='$CC -r -o $output$reload_objs'
cannam@95 17624 hardcode_direct_F77=no
cannam@95 17625 ;;
cannam@95 17626 motorola)
cannam@95 17627 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@95 17628 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
cannam@95 17629 ;;
cannam@95 17630 esac
cannam@95 17631 runpath_var='LD_RUN_PATH'
cannam@95 17632 hardcode_shlibpath_var_F77=no
cannam@95 17633 ;;
cannam@95 17634
cannam@95 17635 sysv4.3*)
cannam@95 17636 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@95 17637 hardcode_shlibpath_var_F77=no
cannam@95 17638 export_dynamic_flag_spec_F77='-Bexport'
cannam@95 17639 ;;
cannam@95 17640
cannam@95 17641 sysv4*MP*)
cannam@95 17642 if test -d /usr/nec; then
cannam@95 17643 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@95 17644 hardcode_shlibpath_var_F77=no
cannam@95 17645 runpath_var=LD_RUN_PATH
cannam@95 17646 hardcode_runpath_var=yes
cannam@95 17647 ld_shlibs_F77=yes
cannam@95 17648 fi
cannam@95 17649 ;;
cannam@95 17650
cannam@95 17651 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
cannam@95 17652 no_undefined_flag_F77='${wl}-z,text'
cannam@95 17653 archive_cmds_need_lc_F77=no
cannam@95 17654 hardcode_shlibpath_var_F77=no
cannam@95 17655 runpath_var='LD_RUN_PATH'
cannam@95 17656
cannam@95 17657 if test "$GCC" = yes; then
cannam@95 17658 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 17659 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 17660 else
cannam@95 17661 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 17662 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 17663 fi
cannam@95 17664 ;;
cannam@95 17665
cannam@95 17666 sysv5* | sco3.2v5* | sco5v6*)
cannam@95 17667 # Note: We can NOT use -z defs as we might desire, because we do not
cannam@95 17668 # link with -lc, and that would cause any symbols used from libc to
cannam@95 17669 # always be unresolved, which means just about no library would
cannam@95 17670 # ever link correctly. If we're not using GNU ld we use -z text
cannam@95 17671 # though, which does catch some bad symbols but isn't as heavy-handed
cannam@95 17672 # as -z defs.
cannam@95 17673 no_undefined_flag_F77='${wl}-z,text'
cannam@95 17674 allow_undefined_flag_F77='${wl}-z,nodefs'
cannam@95 17675 archive_cmds_need_lc_F77=no
cannam@95 17676 hardcode_shlibpath_var_F77=no
cannam@95 17677 hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
cannam@95 17678 hardcode_libdir_separator_F77=':'
cannam@95 17679 link_all_deplibs_F77=yes
cannam@95 17680 export_dynamic_flag_spec_F77='${wl}-Bexport'
cannam@95 17681 runpath_var='LD_RUN_PATH'
cannam@95 17682
cannam@95 17683 if test "$GCC" = yes; then
cannam@95 17684 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 17685 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 17686 else
cannam@95 17687 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 17688 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@95 17689 fi
cannam@95 17690 ;;
cannam@95 17691
cannam@95 17692 uts4*)
cannam@95 17693 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@95 17694 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@95 17695 hardcode_shlibpath_var_F77=no
cannam@95 17696 ;;
cannam@95 17697
cannam@95 17698 *)
cannam@95 17699 ld_shlibs_F77=no
cannam@95 17700 ;;
cannam@95 17701 esac
cannam@95 17702
cannam@95 17703 if test x$host_vendor = xsni; then
cannam@95 17704 case $host in
cannam@95 17705 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@95 17706 export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
cannam@95 17707 ;;
cannam@95 17708 esac
cannam@95 17709 fi
cannam@95 17710 fi
cannam@95 17711
cannam@95 17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
cannam@95 17713 $as_echo "$ld_shlibs_F77" >&6; }
cannam@95 17714 test "$ld_shlibs_F77" = no && can_build_shared=no
cannam@95 17715
cannam@95 17716 with_gnu_ld_F77=$with_gnu_ld
cannam@95 17717
cannam@95 17718
cannam@95 17719
cannam@95 17720
cannam@95 17721
cannam@95 17722
cannam@95 17723 #
cannam@95 17724 # Do we need to explicitly link libc?
cannam@95 17725 #
cannam@95 17726 case "x$archive_cmds_need_lc_F77" in
cannam@95 17727 x|xyes)
cannam@95 17728 # Assume -lc should be added
cannam@95 17729 archive_cmds_need_lc_F77=yes
cannam@95 17730
cannam@95 17731 if test "$enable_shared" = yes && test "$GCC" = yes; then
cannam@95 17732 case $archive_cmds_F77 in
cannam@95 17733 *'~'*)
cannam@95 17734 # FIXME: we may have to deal with multi-command sequences.
cannam@95 17735 ;;
cannam@95 17736 '$CC '*)
cannam@95 17737 # Test whether the compiler implicitly links with -lc since on some
cannam@95 17738 # systems, -lgcc has to come before -lc. If gcc already passes -lc
cannam@95 17739 # to ld, don't add -lc before -lgcc.
cannam@95 17740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cannam@95 17741 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cannam@95 17742 if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
cannam@95 17743 $as_echo_n "(cached) " >&6
cannam@95 17744 else
cannam@95 17745 $RM conftest*
cannam@95 17746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@95 17747
cannam@95 17748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@95 17749 (eval $ac_compile) 2>&5
cannam@95 17750 ac_status=$?
cannam@95 17751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 17752 test $ac_status = 0; } 2>conftest.err; then
cannam@95 17753 soname=conftest
cannam@95 17754 lib=conftest
cannam@95 17755 libobjs=conftest.$ac_objext
cannam@95 17756 deplibs=
cannam@95 17757 wl=$lt_prog_compiler_wl_F77
cannam@95 17758 pic_flag=$lt_prog_compiler_pic_F77
cannam@95 17759 compiler_flags=-v
cannam@95 17760 linker_flags=-v
cannam@95 17761 verstring=
cannam@95 17762 output_objdir=.
cannam@95 17763 libname=conftest
cannam@95 17764 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
cannam@95 17765 allow_undefined_flag_F77=
cannam@95 17766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cannam@95 17767 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
cannam@95 17768 ac_status=$?
cannam@95 17769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@95 17770 test $ac_status = 0; }
cannam@95 17771 then
cannam@95 17772 lt_cv_archive_cmds_need_lc_F77=no
cannam@95 17773 else
cannam@95 17774 lt_cv_archive_cmds_need_lc_F77=yes
cannam@95 17775 fi
cannam@95 17776 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
cannam@95 17777 else
cannam@95 17778 cat conftest.err 1>&5
cannam@95 17779 fi
cannam@95 17780 $RM conftest*
cannam@95 17781
cannam@95 17782 fi
cannam@95 17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
cannam@95 17784 $as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
cannam@95 17785 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
cannam@95 17786 ;;
cannam@95 17787 esac
cannam@95 17788 fi
cannam@95 17789 ;;
cannam@95 17790 esac
cannam@95 17791
cannam@95 17792
cannam@95 17793
cannam@95 17794
cannam@95 17795
cannam@95 17796
cannam@95 17797
cannam@95 17798
cannam@95 17799
cannam@95 17800
cannam@95 17801
cannam@95 17802
cannam@95 17803
cannam@95 17804
cannam@95 17805
cannam@95 17806
cannam@95 17807
cannam@95 17808
cannam@95 17809
cannam@95 17810
cannam@95 17811
cannam@95 17812
cannam@95 17813
cannam@95 17814
cannam@95 17815
cannam@95 17816
cannam@95 17817
cannam@95 17818
cannam@95 17819
cannam@95 17820
cannam@95 17821
cannam@95 17822
cannam@95 17823
cannam@95 17824
cannam@95 17825
cannam@95 17826
cannam@95 17827
cannam@95 17828
cannam@95 17829
cannam@95 17830
cannam@95 17831
cannam@95 17832
cannam@95 17833
cannam@95 17834
cannam@95 17835
cannam@95 17836
cannam@95 17837
cannam@95 17838
cannam@95 17839
cannam@95 17840
cannam@95 17841
cannam@95 17842
cannam@95 17843
cannam@95 17844
cannam@95 17845
cannam@95 17846
cannam@95 17847
cannam@95 17848
cannam@95 17849
cannam@95 17850
cannam@95 17851
cannam@95 17852
cannam@95 17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cannam@95 17854 $as_echo_n "checking dynamic linker characteristics... " >&6; }
cannam@95 17855
cannam@95 17856 library_names_spec=
cannam@95 17857 libname_spec='lib$name'
cannam@95 17858 soname_spec=
cannam@95 17859 shrext_cmds=".so"
cannam@95 17860 postinstall_cmds=
cannam@95 17861 postuninstall_cmds=
cannam@95 17862 finish_cmds=
cannam@95 17863 finish_eval=
cannam@95 17864 shlibpath_var=
cannam@95 17865 shlibpath_overrides_runpath=unknown
cannam@95 17866 version_type=none
cannam@95 17867 dynamic_linker="$host_os ld.so"
cannam@95 17868 sys_lib_dlsearch_path_spec="/lib /usr/lib"
cannam@95 17869 need_lib_prefix=unknown
cannam@95 17870 hardcode_into_libs=no
cannam@95 17871
cannam@95 17872 # when you set need_version to no, make sure it does not cause -set_version
cannam@95 17873 # flags to be left without arguments
cannam@95 17874 need_version=unknown
cannam@95 17875
cannam@95 17876 case $host_os in
cannam@95 17877 aix3*)
cannam@95 17878 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 17879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
cannam@95 17880 shlibpath_var=LIBPATH
cannam@95 17881
cannam@95 17882 # AIX 3 has no versioning support, so we append a major version to the name.
cannam@95 17883 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 17884 ;;
cannam@95 17885
cannam@95 17886 aix[4-9]*)
cannam@95 17887 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 17888 need_lib_prefix=no
cannam@95 17889 need_version=no
cannam@95 17890 hardcode_into_libs=yes
cannam@95 17891 if test "$host_cpu" = ia64; then
cannam@95 17892 # AIX 5 supports IA64
cannam@95 17893 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
cannam@95 17894 shlibpath_var=LD_LIBRARY_PATH
cannam@95 17895 else
cannam@95 17896 # With GCC up to 2.95.x, collect2 would create an import file
cannam@95 17897 # for dependence libraries. The import file would start with
cannam@95 17898 # the line `#! .'. This would cause the generated library to
cannam@95 17899 # depend on `.', always an invalid library. This was fixed in
cannam@95 17900 # development snapshots of GCC prior to 3.0.
cannam@95 17901 case $host_os in
cannam@95 17902 aix4 | aix4.[01] | aix4.[01].*)
cannam@95 17903 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
cannam@95 17904 echo ' yes '
cannam@95 17905 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
cannam@95 17906 :
cannam@95 17907 else
cannam@95 17908 can_build_shared=no
cannam@95 17909 fi
cannam@95 17910 ;;
cannam@95 17911 esac
cannam@95 17912 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
cannam@95 17913 # soname into executable. Probably we can add versioning support to
cannam@95 17914 # collect2, so additional links can be useful in future.
cannam@95 17915 if test "$aix_use_runtimelinking" = yes; then
cannam@95 17916 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
cannam@95 17917 # instead of lib<name>.a to let people know that these are not
cannam@95 17918 # typical AIX shared libraries.
cannam@95 17919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 17920 else
cannam@95 17921 # We preserve .a as extension for shared libraries through AIX4.2
cannam@95 17922 # and later when we are not doing run time linking.
cannam@95 17923 library_names_spec='${libname}${release}.a $libname.a'
cannam@95 17924 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 17925 fi
cannam@95 17926 shlibpath_var=LIBPATH
cannam@95 17927 fi
cannam@95 17928 ;;
cannam@95 17929
cannam@95 17930 amigaos*)
cannam@95 17931 case $host_cpu in
cannam@95 17932 powerpc)
cannam@95 17933 # Since July 2007 AmigaOS4 officially supports .so libraries.
cannam@95 17934 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
cannam@95 17935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 17936 ;;
cannam@95 17937 m68k)
cannam@95 17938 library_names_spec='$libname.ixlibrary $libname.a'
cannam@95 17939 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cannam@95 17940 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cannam@95 17941 ;;
cannam@95 17942 esac
cannam@95 17943 ;;
cannam@95 17944
cannam@95 17945 beos*)
cannam@95 17946 library_names_spec='${libname}${shared_ext}'
cannam@95 17947 dynamic_linker="$host_os ld.so"
cannam@95 17948 shlibpath_var=LIBRARY_PATH
cannam@95 17949 ;;
cannam@95 17950
cannam@95 17951 bsdi[45]*)
cannam@95 17952 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 17953 need_version=no
cannam@95 17954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 17955 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 17956 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
cannam@95 17957 shlibpath_var=LD_LIBRARY_PATH
cannam@95 17958 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
cannam@95 17959 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
cannam@95 17960 # the default ld.so.conf also contains /usr/contrib/lib and
cannam@95 17961 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
cannam@95 17962 # libtool to hard-code these into programs
cannam@95 17963 ;;
cannam@95 17964
cannam@95 17965 cygwin* | mingw* | pw32* | cegcc*)
cannam@95 17966 version_type=windows
cannam@95 17967 shrext_cmds=".dll"
cannam@95 17968 need_version=no
cannam@95 17969 need_lib_prefix=no
cannam@95 17970
cannam@95 17971 case $GCC,$cc_basename in
cannam@95 17972 yes,*)
cannam@95 17973 # gcc
cannam@95 17974 library_names_spec='$libname.dll.a'
cannam@95 17975 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@95 17976 postinstall_cmds='base_file=`basename \${file}`~
cannam@95 17977 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
cannam@95 17978 dldir=$destdir/`dirname \$dlpath`~
cannam@95 17979 test -d \$dldir || mkdir -p \$dldir~
cannam@95 17980 $install_prog $dir/$dlname \$dldir/$dlname~
cannam@95 17981 chmod a+x \$dldir/$dlname~
cannam@95 17982 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
cannam@95 17983 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
cannam@95 17984 fi'
cannam@95 17985 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@95 17986 dlpath=$dir/\$dldll~
cannam@95 17987 $RM \$dlpath'
cannam@95 17988 shlibpath_overrides_runpath=yes
cannam@95 17989
cannam@95 17990 case $host_os in
cannam@95 17991 cygwin*)
cannam@95 17992 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cannam@95 17993 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@95 17994
cannam@95 17995 ;;
cannam@95 17996 mingw* | cegcc*)
cannam@95 17997 # MinGW DLLs use traditional 'lib' prefix
cannam@95 17998 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@95 17999 ;;
cannam@95 18000 pw32*)
cannam@95 18001 # pw32 DLLs use 'pw' prefix rather than 'lib'
cannam@95 18002 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@95 18003 ;;
cannam@95 18004 esac
cannam@95 18005 dynamic_linker='Win32 ld.exe'
cannam@95 18006 ;;
cannam@95 18007
cannam@95 18008 *,cl*)
cannam@95 18009 # Native MSVC
cannam@95 18010 libname_spec='$name'
cannam@95 18011 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@95 18012 library_names_spec='${libname}.dll.lib'
cannam@95 18013
cannam@95 18014 case $build_os in
cannam@95 18015 mingw*)
cannam@95 18016 sys_lib_search_path_spec=
cannam@95 18017 lt_save_ifs=$IFS
cannam@95 18018 IFS=';'
cannam@95 18019 for lt_path in $LIB
cannam@95 18020 do
cannam@95 18021 IFS=$lt_save_ifs
cannam@95 18022 # Let DOS variable expansion print the short 8.3 style file name.
cannam@95 18023 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
cannam@95 18024 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
cannam@95 18025 done
cannam@95 18026 IFS=$lt_save_ifs
cannam@95 18027 # Convert to MSYS style.
cannam@95 18028 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
cannam@95 18029 ;;
cannam@95 18030 cygwin*)
cannam@95 18031 # Convert to unix form, then to dos form, then back to unix form
cannam@95 18032 # but this time dos style (no spaces!) so that the unix form looks
cannam@95 18033 # like /cygdrive/c/PROGRA~1:/cygdr...
cannam@95 18034 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
cannam@95 18035 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
cannam@95 18036 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@95 18037 ;;
cannam@95 18038 *)
cannam@95 18039 sys_lib_search_path_spec="$LIB"
cannam@95 18040 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
cannam@95 18041 # It is most probably a Windows format PATH.
cannam@95 18042 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@95 18043 else
cannam@95 18044 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@95 18045 fi
cannam@95 18046 # FIXME: find the short name or the path components, as spaces are
cannam@95 18047 # common. (e.g. "Program Files" -> "PROGRA~1")
cannam@95 18048 ;;
cannam@95 18049 esac
cannam@95 18050
cannam@95 18051 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@95 18052 postinstall_cmds='base_file=`basename \${file}`~
cannam@95 18053 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
cannam@95 18054 dldir=$destdir/`dirname \$dlpath`~
cannam@95 18055 test -d \$dldir || mkdir -p \$dldir~
cannam@95 18056 $install_prog $dir/$dlname \$dldir/$dlname'
cannam@95 18057 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@95 18058 dlpath=$dir/\$dldll~
cannam@95 18059 $RM \$dlpath'
cannam@95 18060 shlibpath_overrides_runpath=yes
cannam@95 18061 dynamic_linker='Win32 link.exe'
cannam@95 18062 ;;
cannam@95 18063
cannam@95 18064 *)
cannam@95 18065 # Assume MSVC wrapper
cannam@95 18066 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cannam@95 18067 dynamic_linker='Win32 ld.exe'
cannam@95 18068 ;;
cannam@95 18069 esac
cannam@95 18070 # FIXME: first we should search . and the directory the executable is in
cannam@95 18071 shlibpath_var=PATH
cannam@95 18072 ;;
cannam@95 18073
cannam@95 18074 darwin* | rhapsody*)
cannam@95 18075 dynamic_linker="$host_os dyld"
cannam@95 18076 version_type=darwin
cannam@95 18077 need_lib_prefix=no
cannam@95 18078 need_version=no
cannam@95 18079 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
cannam@95 18080 soname_spec='${libname}${release}${major}$shared_ext'
cannam@95 18081 shlibpath_overrides_runpath=yes
cannam@95 18082 shlibpath_var=DYLD_LIBRARY_PATH
cannam@95 18083 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
cannam@95 18084
cannam@95 18085 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
cannam@95 18086 ;;
cannam@95 18087
cannam@95 18088 dgux*)
cannam@95 18089 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 18090 need_lib_prefix=no
cannam@95 18091 need_version=no
cannam@95 18092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
cannam@95 18093 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 18094 shlibpath_var=LD_LIBRARY_PATH
cannam@95 18095 ;;
cannam@95 18096
cannam@95 18097 freebsd* | dragonfly*)
cannam@95 18098 # DragonFly does not have aout. When/if they implement a new
cannam@95 18099 # versioning mechanism, adjust this.
cannam@95 18100 if test -x /usr/bin/objformat; then
cannam@95 18101 objformat=`/usr/bin/objformat`
cannam@95 18102 else
cannam@95 18103 case $host_os in
cannam@95 18104 freebsd[23].*) objformat=aout ;;
cannam@95 18105 *) objformat=elf ;;
cannam@95 18106 esac
cannam@95 18107 fi
cannam@95 18108 version_type=freebsd-$objformat
cannam@95 18109 case $version_type in
cannam@95 18110 freebsd-elf*)
cannam@95 18111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@95 18112 need_version=no
cannam@95 18113 need_lib_prefix=no
cannam@95 18114 ;;
cannam@95 18115 freebsd-*)
cannam@95 18116 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
cannam@95 18117 need_version=yes
cannam@95 18118 ;;
cannam@95 18119 esac
cannam@95 18120 shlibpath_var=LD_LIBRARY_PATH
cannam@95 18121 case $host_os in
cannam@95 18122 freebsd2.*)
cannam@95 18123 shlibpath_overrides_runpath=yes
cannam@95 18124 ;;
cannam@95 18125 freebsd3.[01]* | freebsdelf3.[01]*)
cannam@95 18126 shlibpath_overrides_runpath=yes
cannam@95 18127 hardcode_into_libs=yes
cannam@95 18128 ;;
cannam@95 18129 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
cannam@95 18130 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
cannam@95 18131 shlibpath_overrides_runpath=no
cannam@95 18132 hardcode_into_libs=yes
cannam@95 18133 ;;
cannam@95 18134 *) # from 4.6 on, and DragonFly
cannam@95 18135 shlibpath_overrides_runpath=yes
cannam@95 18136 hardcode_into_libs=yes
cannam@95 18137 ;;
cannam@95 18138 esac
cannam@95 18139 ;;
cannam@95 18140
cannam@95 18141 haiku*)
cannam@95 18142 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 18143 need_lib_prefix=no
cannam@95 18144 need_version=no
cannam@95 18145 dynamic_linker="$host_os runtime_loader"
cannam@95 18146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
cannam@95 18147 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 18148 shlibpath_var=LIBRARY_PATH
cannam@95 18149 shlibpath_overrides_runpath=yes
cannam@95 18150 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
cannam@95 18151 hardcode_into_libs=yes
cannam@95 18152 ;;
cannam@95 18153
cannam@95 18154 hpux9* | hpux10* | hpux11*)
cannam@95 18155 # Give a soname corresponding to the major version so that dld.sl refuses to
cannam@95 18156 # link against other versions.
cannam@95 18157 version_type=sunos
cannam@95 18158 need_lib_prefix=no
cannam@95 18159 need_version=no
cannam@95 18160 case $host_cpu in
cannam@95 18161 ia64*)
cannam@95 18162 shrext_cmds='.so'
cannam@95 18163 hardcode_into_libs=yes
cannam@95 18164 dynamic_linker="$host_os dld.so"
cannam@95 18165 shlibpath_var=LD_LIBRARY_PATH
cannam@95 18166 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@95 18167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 18168 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 18169 if test "X$HPUX_IA64_MODE" = X32; then
cannam@95 18170 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
cannam@95 18171 else
cannam@95 18172 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
cannam@95 18173 fi
cannam@95 18174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@95 18175 ;;
cannam@95 18176 hppa*64*)
cannam@95 18177 shrext_cmds='.sl'
cannam@95 18178 hardcode_into_libs=yes
cannam@95 18179 dynamic_linker="$host_os dld.sl"
cannam@95 18180 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
cannam@95 18181 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@95 18182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 18183 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 18184 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
cannam@95 18185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@95 18186 ;;
cannam@95 18187 *)
cannam@95 18188 shrext_cmds='.sl'
cannam@95 18189 dynamic_linker="$host_os dld.sl"
cannam@95 18190 shlibpath_var=SHLIB_PATH
cannam@95 18191 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cannam@95 18192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 18193 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 18194 ;;
cannam@95 18195 esac
cannam@95 18196 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cannam@95 18197 postinstall_cmds='chmod 555 $lib'
cannam@95 18198 # or fails outright, so override atomically:
cannam@95 18199 install_override_mode=555
cannam@95 18200 ;;
cannam@95 18201
cannam@95 18202 interix[3-9]*)
cannam@95 18203 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 18204 need_lib_prefix=no
cannam@95 18205 need_version=no
cannam@95 18206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@95 18207 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 18208 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
cannam@95 18209 shlibpath_var=LD_LIBRARY_PATH
cannam@95 18210 shlibpath_overrides_runpath=no
cannam@95 18211 hardcode_into_libs=yes
cannam@95 18212 ;;
cannam@95 18213
cannam@95 18214 irix5* | irix6* | nonstopux*)
cannam@95 18215 case $host_os in
cannam@95 18216 nonstopux*) version_type=nonstopux ;;
cannam@95 18217 *)
cannam@95 18218 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@95 18219 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 18220 else
cannam@95 18221 version_type=irix
cannam@95 18222 fi ;;
cannam@95 18223 esac
cannam@95 18224 need_lib_prefix=no
cannam@95 18225 need_version=no
cannam@95 18226 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 18227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@95 18228 case $host_os in
cannam@95 18229 irix5* | nonstopux*)
cannam@95 18230 libsuff= shlibsuff=
cannam@95 18231 ;;
cannam@95 18232 *)
cannam@95 18233 case $LD in # libtool.m4 will add one of these switches to LD
cannam@95 18234 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
cannam@95 18235 libsuff= shlibsuff= libmagic=32-bit;;
cannam@95 18236 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
cannam@95 18237 libsuff=32 shlibsuff=N32 libmagic=N32;;
cannam@95 18238 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
cannam@95 18239 libsuff=64 shlibsuff=64 libmagic=64-bit;;
cannam@95 18240 *) libsuff= shlibsuff= libmagic=never-match;;
cannam@95 18241 esac
cannam@95 18242 ;;
cannam@95 18243 esac
cannam@95 18244 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
cannam@95 18245 shlibpath_overrides_runpath=no
cannam@95 18246 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
cannam@95 18247 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
cannam@95 18248 hardcode_into_libs=yes
cannam@95 18249 ;;
cannam@95 18250
cannam@95 18251 # No shared lib support for Linux oldld, aout, or coff.
cannam@95 18252 linux*oldld* | linux*aout* | linux*coff*)
cannam@95 18253 dynamic_linker=no
cannam@95 18254 ;;
cannam@95 18255
cannam@95 18256 # This must be glibc/ELF.
cannam@95 18257 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@95 18258 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 18259 need_lib_prefix=no
cannam@95 18260 need_version=no
cannam@95 18261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 18262 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 18263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
cannam@95 18264 shlibpath_var=LD_LIBRARY_PATH
cannam@95 18265 shlibpath_overrides_runpath=no
cannam@95 18266
cannam@95 18267 # Some binutils ld are patched to set DT_RUNPATH
cannam@95 18268 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cannam@95 18269 $as_echo_n "(cached) " >&6
cannam@95 18270 else
cannam@95 18271 lt_cv_shlibpath_overrides_runpath=no
cannam@95 18272 save_LDFLAGS=$LDFLAGS
cannam@95 18273 save_libdir=$libdir
cannam@95 18274 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
cannam@95 18275 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
cannam@95 18276 cat > conftest.$ac_ext <<_ACEOF
cannam@95 18277 program main
cannam@95 18278
cannam@95 18279 end
cannam@95 18280 _ACEOF
cannam@95 18281 if ac_fn_f77_try_link "$LINENO"; then :
cannam@95 18282 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cannam@95 18283 lt_cv_shlibpath_overrides_runpath=yes
cannam@95 18284 fi
cannam@95 18285 fi
cannam@95 18286 rm -f core conftest.err conftest.$ac_objext \
cannam@95 18287 conftest$ac_exeext conftest.$ac_ext
cannam@95 18288 LDFLAGS=$save_LDFLAGS
cannam@95 18289 libdir=$save_libdir
cannam@95 18290
cannam@95 18291 fi
cannam@95 18292
cannam@95 18293 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cannam@95 18294
cannam@95 18295 # This implies no fast_install, which is unacceptable.
cannam@95 18296 # Some rework will be needed to allow for fast_install
cannam@95 18297 # before this can be enabled.
cannam@95 18298 hardcode_into_libs=yes
cannam@95 18299
cannam@95 18300 # Append ld.so.conf contents to the search path
cannam@95 18301 if test -f /etc/ld.so.conf; then
cannam@95 18302 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
cannam@95 18303 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
cannam@95 18304 fi
cannam@95 18305
cannam@95 18306 # We used to test for /lib/ld.so.1 and disable shared libraries on
cannam@95 18307 # powerpc, because MkLinux only supported shared libraries with the
cannam@95 18308 # GNU dynamic linker. Since this was broken with cross compilers,
cannam@95 18309 # most powerpc-linux boxes support dynamic linking these days and
cannam@95 18310 # people can always --disable-shared, the test was removed, and we
cannam@95 18311 # assume the GNU/Linux dynamic linker is in use.
cannam@95 18312 dynamic_linker='GNU/Linux ld.so'
cannam@95 18313 ;;
cannam@95 18314
cannam@95 18315 netbsdelf*-gnu)
cannam@95 18316 version_type=linux
cannam@95 18317 need_lib_prefix=no
cannam@95 18318 need_version=no
cannam@95 18319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@95 18320 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 18321 shlibpath_var=LD_LIBRARY_PATH
cannam@95 18322 shlibpath_overrides_runpath=no
cannam@95 18323 hardcode_into_libs=yes
cannam@95 18324 dynamic_linker='NetBSD ld.elf_so'
cannam@95 18325 ;;
cannam@95 18326
cannam@95 18327 netbsd*)
cannam@95 18328 version_type=sunos
cannam@95 18329 need_lib_prefix=no
cannam@95 18330 need_version=no
cannam@95 18331 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@95 18332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@95 18333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@95 18334 dynamic_linker='NetBSD (a.out) ld.so'
cannam@95 18335 else
cannam@95 18336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@95 18337 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 18338 dynamic_linker='NetBSD ld.elf_so'
cannam@95 18339 fi
cannam@95 18340 shlibpath_var=LD_LIBRARY_PATH
cannam@95 18341 shlibpath_overrides_runpath=yes
cannam@95 18342 hardcode_into_libs=yes
cannam@95 18343 ;;
cannam@95 18344
cannam@95 18345 newsos6)
cannam@95 18346 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 18347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 18348 shlibpath_var=LD_LIBRARY_PATH
cannam@95 18349 shlibpath_overrides_runpath=yes
cannam@95 18350 ;;
cannam@95 18351
cannam@95 18352 *nto* | *qnx*)
cannam@95 18353 version_type=qnx
cannam@95 18354 need_lib_prefix=no
cannam@95 18355 need_version=no
cannam@95 18356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 18357 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 18358 shlibpath_var=LD_LIBRARY_PATH
cannam@95 18359 shlibpath_overrides_runpath=no
cannam@95 18360 hardcode_into_libs=yes
cannam@95 18361 dynamic_linker='ldqnx.so'
cannam@95 18362 ;;
cannam@95 18363
cannam@95 18364 openbsd*)
cannam@95 18365 version_type=sunos
cannam@95 18366 sys_lib_dlsearch_path_spec="/usr/lib"
cannam@95 18367 need_lib_prefix=no
cannam@95 18368 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
cannam@95 18369 case $host_os in
cannam@95 18370 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
cannam@95 18371 *) need_version=no ;;
cannam@95 18372 esac
cannam@95 18373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@95 18374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@95 18375 shlibpath_var=LD_LIBRARY_PATH
cannam@95 18376 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@95 18377 case $host_os in
cannam@95 18378 openbsd2.[89] | openbsd2.[89].*)
cannam@95 18379 shlibpath_overrides_runpath=no
cannam@95 18380 ;;
cannam@95 18381 *)
cannam@95 18382 shlibpath_overrides_runpath=yes
cannam@95 18383 ;;
cannam@95 18384 esac
cannam@95 18385 else
cannam@95 18386 shlibpath_overrides_runpath=yes
cannam@95 18387 fi
cannam@95 18388 ;;
cannam@95 18389
cannam@95 18390 os2*)
cannam@95 18391 libname_spec='$name'
cannam@95 18392 shrext_cmds=".dll"
cannam@95 18393 need_lib_prefix=no
cannam@95 18394 library_names_spec='$libname${shared_ext} $libname.a'
cannam@95 18395 dynamic_linker='OS/2 ld.exe'
cannam@95 18396 shlibpath_var=LIBPATH
cannam@95 18397 ;;
cannam@95 18398
cannam@95 18399 osf3* | osf4* | osf5*)
cannam@95 18400 version_type=osf
cannam@95 18401 need_lib_prefix=no
cannam@95 18402 need_version=no
cannam@95 18403 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 18404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 18405 shlibpath_var=LD_LIBRARY_PATH
cannam@95 18406 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cannam@95 18407 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
cannam@95 18408 ;;
cannam@95 18409
cannam@95 18410 rdos*)
cannam@95 18411 dynamic_linker=no
cannam@95 18412 ;;
cannam@95 18413
cannam@95 18414 solaris*)
cannam@95 18415 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 18416 need_lib_prefix=no
cannam@95 18417 need_version=no
cannam@95 18418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 18419 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 18420 shlibpath_var=LD_LIBRARY_PATH
cannam@95 18421 shlibpath_overrides_runpath=yes
cannam@95 18422 hardcode_into_libs=yes
cannam@95 18423 # ldd complains unless libraries are executable
cannam@95 18424 postinstall_cmds='chmod +x $lib'
cannam@95 18425 ;;
cannam@95 18426
cannam@95 18427 sunos4*)
cannam@95 18428 version_type=sunos
cannam@95 18429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@95 18430 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
cannam@95 18431 shlibpath_var=LD_LIBRARY_PATH
cannam@95 18432 shlibpath_overrides_runpath=yes
cannam@95 18433 if test "$with_gnu_ld" = yes; then
cannam@95 18434 need_lib_prefix=no
cannam@95 18435 fi
cannam@95 18436 need_version=yes
cannam@95 18437 ;;
cannam@95 18438
cannam@95 18439 sysv4 | sysv4.3*)
cannam@95 18440 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 18441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 18442 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 18443 shlibpath_var=LD_LIBRARY_PATH
cannam@95 18444 case $host_vendor in
cannam@95 18445 sni)
cannam@95 18446 shlibpath_overrides_runpath=no
cannam@95 18447 need_lib_prefix=no
cannam@95 18448 runpath_var=LD_RUN_PATH
cannam@95 18449 ;;
cannam@95 18450 siemens)
cannam@95 18451 need_lib_prefix=no
cannam@95 18452 ;;
cannam@95 18453 motorola)
cannam@95 18454 need_lib_prefix=no
cannam@95 18455 need_version=no
cannam@95 18456 shlibpath_overrides_runpath=no
cannam@95 18457 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
cannam@95 18458 ;;
cannam@95 18459 esac
cannam@95 18460 ;;
cannam@95 18461
cannam@95 18462 sysv4*MP*)
cannam@95 18463 if test -d /usr/nec ;then
cannam@95 18464 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 18465 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
cannam@95 18466 soname_spec='$libname${shared_ext}.$major'
cannam@95 18467 shlibpath_var=LD_LIBRARY_PATH
cannam@95 18468 fi
cannam@95 18469 ;;
cannam@95 18470
cannam@95 18471 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cannam@95 18472 version_type=freebsd-elf
cannam@95 18473 need_lib_prefix=no
cannam@95 18474 need_version=no
cannam@95 18475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@95 18476 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 18477 shlibpath_var=LD_LIBRARY_PATH
cannam@95 18478 shlibpath_overrides_runpath=yes
cannam@95 18479 hardcode_into_libs=yes
cannam@95 18480 if test "$with_gnu_ld" = yes; then
cannam@95 18481 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
cannam@95 18482 else
cannam@95 18483 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
cannam@95 18484 case $host_os in
cannam@95 18485 sco3.2v5*)
cannam@95 18486 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
cannam@95 18487 ;;
cannam@95 18488 esac
cannam@95 18489 fi
cannam@95 18490 sys_lib_dlsearch_path_spec='/usr/lib'
cannam@95 18491 ;;
cannam@95 18492
cannam@95 18493 tpf*)
cannam@95 18494 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cannam@95 18495 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 18496 need_lib_prefix=no
cannam@95 18497 need_version=no
cannam@95 18498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 18499 shlibpath_var=LD_LIBRARY_PATH
cannam@95 18500 shlibpath_overrides_runpath=no
cannam@95 18501 hardcode_into_libs=yes
cannam@95 18502 ;;
cannam@95 18503
cannam@95 18504 uts4*)
cannam@95 18505 version_type=linux # correct to gnu/linux during the next big refactor
cannam@95 18506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@95 18507 soname_spec='${libname}${release}${shared_ext}$major'
cannam@95 18508 shlibpath_var=LD_LIBRARY_PATH
cannam@95 18509 ;;
cannam@95 18510
cannam@95 18511 *)
cannam@95 18512 dynamic_linker=no
cannam@95 18513 ;;
cannam@95 18514 esac
cannam@95 18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cannam@95 18516 $as_echo "$dynamic_linker" >&6; }
cannam@95 18517 test "$dynamic_linker" = no && can_build_shared=no
cannam@95 18518
cannam@95 18519 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cannam@95 18520 if test "$GCC" = yes; then
cannam@95 18521 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
cannam@95 18522 fi
cannam@95 18523
cannam@95 18524 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
cannam@95 18525 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
cannam@95 18526 fi
cannam@95 18527 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
cannam@95 18528 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
cannam@95 18529 fi
cannam@95 18530
cannam@95 18531
cannam@95 18532
cannam@95 18533
cannam@95 18534
cannam@95 18535
cannam@95 18536
cannam@95 18537
cannam@95 18538
cannam@95 18539
cannam@95 18540
cannam@95 18541
cannam@95 18542
cannam@95 18543
cannam@95 18544
cannam@95 18545
cannam@95 18546
cannam@95 18547
cannam@95 18548
cannam@95 18549
cannam@95 18550
cannam@95 18551
cannam@95 18552
cannam@95 18553
cannam@95 18554
cannam@95 18555
cannam@95 18556
cannam@95 18557
cannam@95 18558
cannam@95 18559
cannam@95 18560
cannam@95 18561
cannam@95 18562
cannam@95 18563
cannam@95 18564
cannam@95 18565
cannam@95 18566
cannam@95 18567
cannam@95 18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cannam@95 18569 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
cannam@95 18570 hardcode_action_F77=
cannam@95 18571 if test -n "$hardcode_libdir_flag_spec_F77" ||
cannam@95 18572 test -n "$runpath_var_F77" ||
cannam@95 18573 test "X$hardcode_automatic_F77" = "Xyes" ; then
cannam@95 18574
cannam@95 18575 # We can hardcode non-existent directories.
cannam@95 18576 if test "$hardcode_direct_F77" != no &&
cannam@95 18577 # If the only mechanism to avoid hardcoding is shlibpath_var, we
cannam@95 18578 # have to relink, otherwise we might link with an installed library
cannam@95 18579 # when we should be linking with a yet-to-be-installed one
cannam@95 18580 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
cannam@95 18581 test "$hardcode_minus_L_F77" != no; then
cannam@95 18582 # Linking always hardcodes the temporary library directory.
cannam@95 18583 hardcode_action_F77=relink
cannam@95 18584 else
cannam@95 18585 # We can link without hardcoding, and we can hardcode nonexisting dirs.
cannam@95 18586 hardcode_action_F77=immediate
cannam@95 18587 fi
cannam@95 18588 else
cannam@95 18589 # We cannot hardcode anything, or else we can only hardcode existing
cannam@95 18590 # directories.
cannam@95 18591 hardcode_action_F77=unsupported
cannam@95 18592 fi
cannam@95 18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
cannam@95 18594 $as_echo "$hardcode_action_F77" >&6; }
cannam@95 18595
cannam@95 18596 if test "$hardcode_action_F77" = relink ||
cannam@95 18597 test "$inherit_rpath_F77" = yes; then
cannam@95 18598 # Fast installation is not supported
cannam@95 18599 enable_fast_install=no
cannam@95 18600 elif test "$shlibpath_overrides_runpath" = yes ||
cannam@95 18601 test "$enable_shared" = no; then
cannam@95 18602 # Fast installation is not necessary
cannam@95 18603 enable_fast_install=needless
cannam@95 18604 fi
cannam@95 18605
cannam@95 18606
cannam@95 18607
cannam@95 18608
cannam@95 18609
cannam@95 18610
cannam@95 18611
cannam@95 18612 fi # test -n "$compiler"
cannam@95 18613
cannam@95 18614 GCC=$lt_save_GCC
cannam@95 18615 CC="$lt_save_CC"
cannam@95 18616 CFLAGS="$lt_save_CFLAGS"
cannam@95 18617 fi # test "$_lt_disable_F77" != yes
cannam@95 18618
cannam@95 18619 ac_ext=c
cannam@95 18620 ac_cpp='$CPP $CPPFLAGS'
cannam@95 18621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@95 18622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 18623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@95 18624
cannam@95 18625
cannam@95 18626 if test -z "$F77"; then
cannam@95 18627 enable_fortran=no
cannam@95 18628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Couldn't find f77 compiler; using default Fortran wrappers." >&5
cannam@95 18629 $as_echo "$as_me: WARNING: *** Couldn't find f77 compiler; using default Fortran wrappers." >&2;}
cannam@95 18630 else
cannam@95 18631 ac_ext=f
cannam@95 18632 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
cannam@95 18633 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 18634 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cannam@95 18635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
cannam@95 18636 $as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
cannam@95 18637 if ${ac_cv_prog_f77_v+:} false; then :
cannam@95 18638 $as_echo_n "(cached) " >&6
cannam@95 18639 else
cannam@95 18640 cat > conftest.$ac_ext <<_ACEOF
cannam@95 18641 program main
cannam@95 18642
cannam@95 18643 end
cannam@95 18644 _ACEOF
cannam@95 18645 if ac_fn_f77_try_compile "$LINENO"; then :
cannam@95 18646 ac_cv_prog_f77_v=
cannam@95 18647 # Try some options frequently used verbose output
cannam@95 18648 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
cannam@95 18649 cat > conftest.$ac_ext <<_ACEOF
cannam@95 18650 program main
cannam@95 18651
cannam@95 18652 end
cannam@95 18653 _ACEOF
cannam@95 18654
cannam@95 18655 # Compile and link our simple test program by passing a flag (argument
cannam@95 18656 # 1 to this macro) to the Fortran compiler in order to get
cannam@95 18657 # "verbose" output that we can then parse for the Fortran linker
cannam@95 18658 # flags.
cannam@95 18659 ac_save_FFLAGS=$FFLAGS
cannam@95 18660 FFLAGS="$FFLAGS $ac_verb"
cannam@95 18661 eval "set x $ac_link"
cannam@95 18662 shift
cannam@95 18663 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
cannam@95 18664 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
cannam@95 18665 # LIBRARY_PATH; skip all such settings.
cannam@95 18666 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
cannam@95 18667 sed '/^Driving:/d; /^Configured with:/d;
cannam@95 18668 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
cannam@95 18669 $as_echo "$ac_f77_v_output" >&5
cannam@95 18670 FFLAGS=$ac_save_FFLAGS
cannam@95 18671
cannam@95 18672 rm -rf conftest*
cannam@95 18673
cannam@95 18674 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
cannam@95 18675 # /foo, /bar, and /baz are search directories for the Fortran linker.
cannam@95 18676 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
cannam@95 18677 ac_f77_v_output="`echo $ac_f77_v_output |
cannam@95 18678 grep 'LPATH is:' |
cannam@95 18679 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
cannam@95 18680
cannam@95 18681 # FIXME: we keep getting bitten by quoted arguments; a more general fix
cannam@95 18682 # that detects unbalanced quotes in FLIBS should be implemented
cannam@95 18683 # and (ugh) tested at some point.
cannam@95 18684 case $ac_f77_v_output in
cannam@95 18685 # With xlf replace commas with spaces,
cannam@95 18686 # and remove "-link" and closing parenthesis.
cannam@95 18687 *xlfentry*)
cannam@95 18688 ac_f77_v_output=`echo $ac_f77_v_output |
cannam@95 18689 sed '
cannam@95 18690 s/,/ /g
cannam@95 18691 s/ -link / /g
cannam@95 18692 s/) *$//
cannam@95 18693 '
cannam@95 18694 ` ;;
cannam@95 18695
cannam@95 18696 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
cannam@95 18697 # $LIBS confuse us, and the libraries appear later in the output anyway).
cannam@95 18698 *mGLOB_options_string*)
cannam@95 18699 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
cannam@95 18700
cannam@95 18701 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
cannam@95 18702 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
cannam@95 18703 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
cannam@95 18704 *-cmdline\ * | *-ignore\ * | *-def\ *)
cannam@95 18705 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
cannam@95 18706 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
cannam@95 18707 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
cannam@95 18708 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
cannam@95 18709
cannam@95 18710 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
cannam@95 18711 *fort77*f2c*gcc*)
cannam@95 18712 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
cannam@95 18713 /:[ ]\+Running[ ]\{1,\}"gcc"/{
cannam@95 18714 /"-c"/d
cannam@95 18715 /[.]c"*/d
cannam@95 18716 s/^.*"gcc"/"gcc"/
cannam@95 18717 s/"//gp
cannam@95 18718 }'` ;;
cannam@95 18719
cannam@95 18720 # If we are using Cray Fortran then delete quotes.
cannam@95 18721 *cft90*)
cannam@95 18722 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
cannam@95 18723 esac
cannam@95 18724
cannam@95 18725
cannam@95 18726 # look for -l* and *.a constructs in the output
cannam@95 18727 for ac_arg in $ac_f77_v_output; do
cannam@95 18728 case $ac_arg in
cannam@95 18729 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
cannam@95 18730 ac_cv_prog_f77_v=$ac_verb
cannam@95 18731 break 2 ;;
cannam@95 18732 esac
cannam@95 18733 done
cannam@95 18734 done
cannam@95 18735 if test -z "$ac_cv_prog_f77_v"; then
cannam@95 18736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5
cannam@95 18737 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
cannam@95 18738 fi
cannam@95 18739 else
cannam@95 18740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
cannam@95 18741 $as_echo "$as_me: WARNING: compilation failed" >&2;}
cannam@95 18742 fi
cannam@95 18743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 18744
cannam@95 18745 fi
cannam@95 18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5
cannam@95 18747 $as_echo "$ac_cv_prog_f77_v" >&6; }
cannam@95 18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
cannam@95 18749 $as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
cannam@95 18750 if ${ac_cv_f77_libs+:} false; then :
cannam@95 18751 $as_echo_n "(cached) " >&6
cannam@95 18752 else
cannam@95 18753 if test "x$FLIBS" != "x"; then
cannam@95 18754 ac_cv_f77_libs="$FLIBS" # Let the user override the test.
cannam@95 18755 else
cannam@95 18756
cannam@95 18757 cat > conftest.$ac_ext <<_ACEOF
cannam@95 18758 program main
cannam@95 18759
cannam@95 18760 end
cannam@95 18761 _ACEOF
cannam@95 18762
cannam@95 18763 # Compile and link our simple test program by passing a flag (argument
cannam@95 18764 # 1 to this macro) to the Fortran compiler in order to get
cannam@95 18765 # "verbose" output that we can then parse for the Fortran linker
cannam@95 18766 # flags.
cannam@95 18767 ac_save_FFLAGS=$FFLAGS
cannam@95 18768 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
cannam@95 18769 eval "set x $ac_link"
cannam@95 18770 shift
cannam@95 18771 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
cannam@95 18772 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
cannam@95 18773 # LIBRARY_PATH; skip all such settings.
cannam@95 18774 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
cannam@95 18775 sed '/^Driving:/d; /^Configured with:/d;
cannam@95 18776 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
cannam@95 18777 $as_echo "$ac_f77_v_output" >&5
cannam@95 18778 FFLAGS=$ac_save_FFLAGS
cannam@95 18779
cannam@95 18780 rm -rf conftest*
cannam@95 18781
cannam@95 18782 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
cannam@95 18783 # /foo, /bar, and /baz are search directories for the Fortran linker.
cannam@95 18784 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
cannam@95 18785 ac_f77_v_output="`echo $ac_f77_v_output |
cannam@95 18786 grep 'LPATH is:' |
cannam@95 18787 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
cannam@95 18788
cannam@95 18789 # FIXME: we keep getting bitten by quoted arguments; a more general fix
cannam@95 18790 # that detects unbalanced quotes in FLIBS should be implemented
cannam@95 18791 # and (ugh) tested at some point.
cannam@95 18792 case $ac_f77_v_output in
cannam@95 18793 # With xlf replace commas with spaces,
cannam@95 18794 # and remove "-link" and closing parenthesis.
cannam@95 18795 *xlfentry*)
cannam@95 18796 ac_f77_v_output=`echo $ac_f77_v_output |
cannam@95 18797 sed '
cannam@95 18798 s/,/ /g
cannam@95 18799 s/ -link / /g
cannam@95 18800 s/) *$//
cannam@95 18801 '
cannam@95 18802 ` ;;
cannam@95 18803
cannam@95 18804 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
cannam@95 18805 # $LIBS confuse us, and the libraries appear later in the output anyway).
cannam@95 18806 *mGLOB_options_string*)
cannam@95 18807 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
cannam@95 18808
cannam@95 18809 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
cannam@95 18810 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
cannam@95 18811 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
cannam@95 18812 *-cmdline\ * | *-ignore\ * | *-def\ *)
cannam@95 18813 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
cannam@95 18814 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
cannam@95 18815 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
cannam@95 18816 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
cannam@95 18817
cannam@95 18818 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
cannam@95 18819 *fort77*f2c*gcc*)
cannam@95 18820 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
cannam@95 18821 /:[ ]\+Running[ ]\{1,\}"gcc"/{
cannam@95 18822 /"-c"/d
cannam@95 18823 /[.]c"*/d
cannam@95 18824 s/^.*"gcc"/"gcc"/
cannam@95 18825 s/"//gp
cannam@95 18826 }'` ;;
cannam@95 18827
cannam@95 18828 # If we are using Cray Fortran then delete quotes.
cannam@95 18829 *cft90*)
cannam@95 18830 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
cannam@95 18831 esac
cannam@95 18832
cannam@95 18833
cannam@95 18834
cannam@95 18835 ac_cv_f77_libs=
cannam@95 18836
cannam@95 18837 # Save positional arguments (if any)
cannam@95 18838 ac_save_positional="$@"
cannam@95 18839
cannam@95 18840 set X $ac_f77_v_output
cannam@95 18841 while test $# != 1; do
cannam@95 18842 shift
cannam@95 18843 ac_arg=$1
cannam@95 18844 case $ac_arg in
cannam@95 18845 [\\/]*.a | ?:[\\/]*.a)
cannam@95 18846 ac_exists=false
cannam@95 18847 for ac_i in $ac_cv_f77_libs; do
cannam@95 18848 if test x"$ac_arg" = x"$ac_i"; then
cannam@95 18849 ac_exists=true
cannam@95 18850 break
cannam@95 18851 fi
cannam@95 18852 done
cannam@95 18853
cannam@95 18854 if test x"$ac_exists" = xtrue; then :
cannam@95 18855
cannam@95 18856 else
cannam@95 18857 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
cannam@95 18858 fi
cannam@95 18859 ;;
cannam@95 18860 -bI:*)
cannam@95 18861 ac_exists=false
cannam@95 18862 for ac_i in $ac_cv_f77_libs; do
cannam@95 18863 if test x"$ac_arg" = x"$ac_i"; then
cannam@95 18864 ac_exists=true
cannam@95 18865 break
cannam@95 18866 fi
cannam@95 18867 done
cannam@95 18868
cannam@95 18869 if test x"$ac_exists" = xtrue; then :
cannam@95 18870
cannam@95 18871 else
cannam@95 18872 if test "$ac_compiler_gnu" = yes; then
cannam@95 18873 for ac_link_opt in $ac_arg; do
cannam@95 18874 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
cannam@95 18875 done
cannam@95 18876 else
cannam@95 18877 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
cannam@95 18878 fi
cannam@95 18879 fi
cannam@95 18880 ;;
cannam@95 18881 # Ignore these flags.
cannam@95 18882 -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
cannam@95 18883 |-LANG:=* | -LIST:* | -LNO:* | -link)
cannam@95 18884 ;;
cannam@95 18885 -lkernel32)
cannam@95 18886 case $host_os in
cannam@95 18887 *cygwin*) ;;
cannam@95 18888 *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
cannam@95 18889 ;;
cannam@95 18890 esac
cannam@95 18891 ;;
cannam@95 18892 -[LRuYz])
cannam@95 18893 # These flags, when seen by themselves, take an argument.
cannam@95 18894 # We remove the space between option and argument and re-iterate
cannam@95 18895 # unless we find an empty arg or a new option (starting with -)
cannam@95 18896 case $2 in
cannam@95 18897 "" | -*);;
cannam@95 18898 *)
cannam@95 18899 ac_arg="$ac_arg$2"
cannam@95 18900 shift; shift
cannam@95 18901 set X $ac_arg "$@"
cannam@95 18902 ;;
cannam@95 18903 esac
cannam@95 18904 ;;
cannam@95 18905 -YP,*)
cannam@95 18906 for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
cannam@95 18907 ac_exists=false
cannam@95 18908 for ac_i in $ac_cv_f77_libs; do
cannam@95 18909 if test x"$ac_j" = x"$ac_i"; then
cannam@95 18910 ac_exists=true
cannam@95 18911 break
cannam@95 18912 fi
cannam@95 18913 done
cannam@95 18914
cannam@95 18915 if test x"$ac_exists" = xtrue; then :
cannam@95 18916
cannam@95 18917 else
cannam@95 18918 ac_arg="$ac_arg $ac_j"
cannam@95 18919 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
cannam@95 18920 fi
cannam@95 18921 done
cannam@95 18922 ;;
cannam@95 18923 -[lLR]*)
cannam@95 18924 ac_exists=false
cannam@95 18925 for ac_i in $ac_cv_f77_libs; do
cannam@95 18926 if test x"$ac_arg" = x"$ac_i"; then
cannam@95 18927 ac_exists=true
cannam@95 18928 break
cannam@95 18929 fi
cannam@95 18930 done
cannam@95 18931
cannam@95 18932 if test x"$ac_exists" = xtrue; then :
cannam@95 18933
cannam@95 18934 else
cannam@95 18935 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
cannam@95 18936 fi
cannam@95 18937 ;;
cannam@95 18938 -zallextract*| -zdefaultextract)
cannam@95 18939 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
cannam@95 18940 ;;
cannam@95 18941 # Ignore everything else.
cannam@95 18942 esac
cannam@95 18943 done
cannam@95 18944 # restore positional arguments
cannam@95 18945 set X $ac_save_positional; shift
cannam@95 18946
cannam@95 18947 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
cannam@95 18948 # then we insist that the "run path" must be an absolute path (i.e. it
cannam@95 18949 # must begin with a "/").
cannam@95 18950 case `(uname -sr) 2>/dev/null` in
cannam@95 18951 "SunOS 5"*)
cannam@95 18952 ac_ld_run_path=`$as_echo "$ac_f77_v_output" |
cannam@95 18953 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
cannam@95 18954 test "x$ac_ld_run_path" != x &&
cannam@95 18955 if test "$ac_compiler_gnu" = yes; then
cannam@95 18956 for ac_link_opt in $ac_ld_run_path; do
cannam@95 18957 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
cannam@95 18958 done
cannam@95 18959 else
cannam@95 18960 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
cannam@95 18961 fi
cannam@95 18962 ;;
cannam@95 18963 esac
cannam@95 18964 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
cannam@95 18965
cannam@95 18966 fi
cannam@95 18967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5
cannam@95 18968 $as_echo "$ac_cv_f77_libs" >&6; }
cannam@95 18969 FLIBS="$ac_cv_f77_libs"
cannam@95 18970
cannam@95 18971
cannam@95 18972 ac_ext=c
cannam@95 18973 ac_cpp='$CPP $CPPFLAGS'
cannam@95 18974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@95 18975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 18976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@95 18977
cannam@95 18978 ac_ext=f
cannam@95 18979 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
cannam@95 18980 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 18981 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cannam@95 18982
cannam@95 18983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5
cannam@95 18984 $as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; }
cannam@95 18985 if ${ac_cv_f77_dummy_main+:} false; then :
cannam@95 18986 $as_echo_n "(cached) " >&6
cannam@95 18987 else
cannam@95 18988 ac_f77_dm_save_LIBS=$LIBS
cannam@95 18989 LIBS="$LIBS $FLIBS"
cannam@95 18990 ac_fortran_dm_var=F77_DUMMY_MAIN
cannam@95 18991 ac_ext=c
cannam@95 18992 ac_cpp='$CPP $CPPFLAGS'
cannam@95 18993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@95 18994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 18995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@95 18996
cannam@95 18997 # First, try linking without a dummy main:
cannam@95 18998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 18999 /* end confdefs.h. */
cannam@95 19000
cannam@95 19001 #ifdef F77_DUMMY_MAIN
cannam@95 19002
cannam@95 19003 # ifdef __cplusplus
cannam@95 19004 extern "C"
cannam@95 19005 # endif
cannam@95 19006 int F77_DUMMY_MAIN() { return 1; }
cannam@95 19007
cannam@95 19008 #endif
cannam@95 19009 int
cannam@95 19010 main ()
cannam@95 19011 {
cannam@95 19012
cannam@95 19013 ;
cannam@95 19014 return 0;
cannam@95 19015 }
cannam@95 19016 _ACEOF
cannam@95 19017 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 19018 ac_cv_fortran_dummy_main=none
cannam@95 19019 else
cannam@95 19020 ac_cv_fortran_dummy_main=unknown
cannam@95 19021 fi
cannam@95 19022 rm -f core conftest.err conftest.$ac_objext \
cannam@95 19023 conftest$ac_exeext conftest.$ac_ext
cannam@95 19024
cannam@95 19025 if test $ac_cv_fortran_dummy_main = unknown; then
cannam@95 19026 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
cannam@95 19027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 19028 /* end confdefs.h. */
cannam@95 19029 #define $ac_fortran_dm_var $ac_func
cannam@95 19030 #ifdef F77_DUMMY_MAIN
cannam@95 19031
cannam@95 19032 # ifdef __cplusplus
cannam@95 19033 extern "C"
cannam@95 19034 # endif
cannam@95 19035 int F77_DUMMY_MAIN() { return 1; }
cannam@95 19036
cannam@95 19037 #endif
cannam@95 19038 int
cannam@95 19039 main ()
cannam@95 19040 {
cannam@95 19041
cannam@95 19042 ;
cannam@95 19043 return 0;
cannam@95 19044 }
cannam@95 19045 _ACEOF
cannam@95 19046 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 19047 ac_cv_fortran_dummy_main=$ac_func; break
cannam@95 19048 fi
cannam@95 19049 rm -f core conftest.err conftest.$ac_objext \
cannam@95 19050 conftest$ac_exeext conftest.$ac_ext
cannam@95 19051 done
cannam@95 19052 fi
cannam@95 19053 ac_ext=f
cannam@95 19054 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
cannam@95 19055 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 19056 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cannam@95 19057 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
cannam@95 19058 rm -rf conftest*
cannam@95 19059 LIBS=$ac_f77_dm_save_LIBS
cannam@95 19060
cannam@95 19061 fi
cannam@95 19062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5
cannam@95 19063 $as_echo "$ac_cv_f77_dummy_main" >&6; }
cannam@95 19064 F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
cannam@95 19065 if test "$F77_DUMMY_MAIN" != unknown; then :
cannam@95 19066 if test $F77_DUMMY_MAIN != none; then
cannam@95 19067
cannam@95 19068 cat >>confdefs.h <<_ACEOF
cannam@95 19069 #define F77_DUMMY_MAIN $F77_DUMMY_MAIN
cannam@95 19070 _ACEOF
cannam@95 19071
cannam@95 19072 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
cannam@95 19073
cannam@95 19074 $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
cannam@95 19075
cannam@95 19076 fi
cannam@95 19077 fi
cannam@95 19078 else
cannam@95 19079 enable_fortran=no
cannam@95 19080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Couldn't figure out how to link C and Fortran; using default Fortran wrappers." >&5
cannam@95 19081 $as_echo "$as_me: WARNING: *** Couldn't figure out how to link C and Fortran; using default Fortran wrappers." >&2;}
cannam@95 19082 fi
cannam@95 19083
cannam@95 19084 ac_ext=c
cannam@95 19085 ac_cpp='$CPP $CPPFLAGS'
cannam@95 19086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@95 19087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 19088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@95 19089
cannam@95 19090 fi
cannam@95 19091 else
cannam@95 19092
cannam@95 19093 $as_echo "#define DISABLE_FORTRAN 1" >>confdefs.h
cannam@95 19094
cannam@95 19095 fi
cannam@95 19096
cannam@95 19097 if test "x$enable_fortran" = xyes; then
cannam@95 19098 ac_ext=f
cannam@95 19099 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
cannam@95 19100 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 19101 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cannam@95 19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5
cannam@95 19103 $as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; }
cannam@95 19104 if ${ac_cv_f77_mangling+:} false; then :
cannam@95 19105 $as_echo_n "(cached) " >&6
cannam@95 19106 else
cannam@95 19107 cat > conftest.$ac_ext <<_ACEOF
cannam@95 19108 subroutine foobar()
cannam@95 19109 return
cannam@95 19110 end
cannam@95 19111 subroutine foo_bar()
cannam@95 19112 return
cannam@95 19113 end
cannam@95 19114 _ACEOF
cannam@95 19115 if ac_fn_f77_try_compile "$LINENO"; then :
cannam@95 19116 mv conftest.$ac_objext cfortran_test.$ac_objext
cannam@95 19117
cannam@95 19118 ac_save_LIBS=$LIBS
cannam@95 19119 LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
cannam@95 19120
cannam@95 19121 ac_ext=c
cannam@95 19122 ac_cpp='$CPP $CPPFLAGS'
cannam@95 19123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@95 19124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 19125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@95 19126 ac_success=no
cannam@95 19127 for ac_foobar in foobar FOOBAR; do
cannam@95 19128 for ac_underscore in "" "_"; do
cannam@95 19129 ac_func="$ac_foobar$ac_underscore"
cannam@95 19130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 19131 /* end confdefs.h. */
cannam@95 19132
cannam@95 19133 /* Override any GCC internal prototype to avoid an error.
cannam@95 19134 Use char because int might match the return type of a GCC
cannam@95 19135 builtin and then its argument prototype would still apply. */
cannam@95 19136 #ifdef __cplusplus
cannam@95 19137 extern "C"
cannam@95 19138 #endif
cannam@95 19139 char $ac_func ();
cannam@95 19140 #ifdef F77_DUMMY_MAIN
cannam@95 19141
cannam@95 19142 # ifdef __cplusplus
cannam@95 19143 extern "C"
cannam@95 19144 # endif
cannam@95 19145 int F77_DUMMY_MAIN() { return 1; }
cannam@95 19146
cannam@95 19147 #endif
cannam@95 19148 int
cannam@95 19149 main ()
cannam@95 19150 {
cannam@95 19151 return $ac_func ();
cannam@95 19152 ;
cannam@95 19153 return 0;
cannam@95 19154 }
cannam@95 19155 _ACEOF
cannam@95 19156 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 19157 ac_success=yes; break 2
cannam@95 19158 fi
cannam@95 19159 rm -f core conftest.err conftest.$ac_objext \
cannam@95 19160 conftest$ac_exeext conftest.$ac_ext
cannam@95 19161 done
cannam@95 19162 done
cannam@95 19163 ac_ext=f
cannam@95 19164 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
cannam@95 19165 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 19166 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cannam@95 19167
cannam@95 19168 if test "$ac_success" = "yes"; then
cannam@95 19169 case $ac_foobar in
cannam@95 19170 foobar)
cannam@95 19171 ac_case=lower
cannam@95 19172 ac_foo_bar=foo_bar
cannam@95 19173 ;;
cannam@95 19174 FOOBAR)
cannam@95 19175 ac_case=upper
cannam@95 19176 ac_foo_bar=FOO_BAR
cannam@95 19177 ;;
cannam@95 19178 esac
cannam@95 19179
cannam@95 19180 ac_ext=c
cannam@95 19181 ac_cpp='$CPP $CPPFLAGS'
cannam@95 19182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@95 19183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 19184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@95 19185 ac_success_extra=no
cannam@95 19186 for ac_extra in "" "_"; do
cannam@95 19187 ac_func="$ac_foo_bar$ac_underscore$ac_extra"
cannam@95 19188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 19189 /* end confdefs.h. */
cannam@95 19190
cannam@95 19191 /* Override any GCC internal prototype to avoid an error.
cannam@95 19192 Use char because int might match the return type of a GCC
cannam@95 19193 builtin and then its argument prototype would still apply. */
cannam@95 19194 #ifdef __cplusplus
cannam@95 19195 extern "C"
cannam@95 19196 #endif
cannam@95 19197 char $ac_func ();
cannam@95 19198 #ifdef F77_DUMMY_MAIN
cannam@95 19199
cannam@95 19200 # ifdef __cplusplus
cannam@95 19201 extern "C"
cannam@95 19202 # endif
cannam@95 19203 int F77_DUMMY_MAIN() { return 1; }
cannam@95 19204
cannam@95 19205 #endif
cannam@95 19206 int
cannam@95 19207 main ()
cannam@95 19208 {
cannam@95 19209 return $ac_func ();
cannam@95 19210 ;
cannam@95 19211 return 0;
cannam@95 19212 }
cannam@95 19213 _ACEOF
cannam@95 19214 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 19215 ac_success_extra=yes; break
cannam@95 19216 fi
cannam@95 19217 rm -f core conftest.err conftest.$ac_objext \
cannam@95 19218 conftest$ac_exeext conftest.$ac_ext
cannam@95 19219 done
cannam@95 19220 ac_ext=f
cannam@95 19221 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
cannam@95 19222 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 19223 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cannam@95 19224
cannam@95 19225 if test "$ac_success_extra" = "yes"; then
cannam@95 19226 ac_cv_f77_mangling="$ac_case case"
cannam@95 19227 if test -z "$ac_underscore"; then
cannam@95 19228 ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
cannam@95 19229 else
cannam@95 19230 ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
cannam@95 19231 fi
cannam@95 19232 if test -z "$ac_extra"; then
cannam@95 19233 ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
cannam@95 19234 else
cannam@95 19235 ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
cannam@95 19236 fi
cannam@95 19237 else
cannam@95 19238 ac_cv_f77_mangling="unknown"
cannam@95 19239 fi
cannam@95 19240 else
cannam@95 19241 ac_cv_f77_mangling="unknown"
cannam@95 19242 fi
cannam@95 19243
cannam@95 19244 LIBS=$ac_save_LIBS
cannam@95 19245 rm -rf conftest*
cannam@95 19246 rm -f cfortran_test*
cannam@95 19247 else
cannam@95 19248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@95 19249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@95 19250 as_fn_error $? "cannot compile a simple Fortran program
cannam@95 19251 See \`config.log' for more details" "$LINENO" 5; }
cannam@95 19252 fi
cannam@95 19253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@95 19254
cannam@95 19255 fi
cannam@95 19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5
cannam@95 19257 $as_echo "$ac_cv_f77_mangling" >&6; }
cannam@95 19258
cannam@95 19259 ac_ext=c
cannam@95 19260 ac_cpp='$CPP $CPPFLAGS'
cannam@95 19261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@95 19262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 19263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@95 19264
cannam@95 19265 ac_ext=f
cannam@95 19266 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
cannam@95 19267 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 19268 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cannam@95 19269 case $ac_cv_f77_mangling in
cannam@95 19270 "lower case, no underscore, no extra underscore")
cannam@95 19271 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
cannam@95 19272
cannam@95 19273 $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h
cannam@95 19274 ;;
cannam@95 19275 "lower case, no underscore, extra underscore")
cannam@95 19276 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
cannam@95 19277
cannam@95 19278 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
cannam@95 19279 ;;
cannam@95 19280 "lower case, underscore, no extra underscore")
cannam@95 19281 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
cannam@95 19282
cannam@95 19283 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
cannam@95 19284 ;;
cannam@95 19285 "lower case, underscore, extra underscore")
cannam@95 19286 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
cannam@95 19287
cannam@95 19288 $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h
cannam@95 19289 ;;
cannam@95 19290 "upper case, no underscore, no extra underscore")
cannam@95 19291 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
cannam@95 19292
cannam@95 19293 $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h
cannam@95 19294 ;;
cannam@95 19295 "upper case, no underscore, extra underscore")
cannam@95 19296 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
cannam@95 19297
cannam@95 19298 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
cannam@95 19299 ;;
cannam@95 19300 "upper case, underscore, no extra underscore")
cannam@95 19301 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
cannam@95 19302
cannam@95 19303 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
cannam@95 19304 ;;
cannam@95 19305 "upper case, underscore, extra underscore")
cannam@95 19306 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
cannam@95 19307
cannam@95 19308 $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h
cannam@95 19309 ;;
cannam@95 19310 *)
cannam@95 19311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
cannam@95 19312 $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
cannam@95 19313 ;;
cannam@95 19314 esac
cannam@95 19315
cannam@95 19316 ac_ext=c
cannam@95 19317 ac_cpp='$CPP $CPPFLAGS'
cannam@95 19318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@95 19319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 19320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@95 19321
cannam@95 19322 ac_ext=f
cannam@95 19323 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
cannam@95 19324 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 19325 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cannam@95 19326 case $ac_cv_f77_mangling in
cannam@95 19327 upper*) ac_val="F77FOO" ;;
cannam@95 19328 lower*) ac_val="f77foo" ;;
cannam@95 19329 *) ac_val="unknown" ;;
cannam@95 19330 esac
cannam@95 19331 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
cannam@95 19332
cannam@95 19333 f77foo="$ac_val"
cannam@95 19334
cannam@95 19335 ac_ext=c
cannam@95 19336 ac_cpp='$CPP $CPPFLAGS'
cannam@95 19337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@95 19338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 19339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@95 19340
cannam@95 19341 ac_ext=f
cannam@95 19342 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
cannam@95 19343 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 19344 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cannam@95 19345 case $ac_cv_f77_mangling in
cannam@95 19346 upper*) ac_val="F77_FOO" ;;
cannam@95 19347 lower*) ac_val="f77_foo" ;;
cannam@95 19348 *) ac_val="unknown" ;;
cannam@95 19349 esac
cannam@95 19350 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
cannam@95 19351 case $ac_cv_f77_mangling in *," extra underscore"*) ac_val="$ac_val"_ ;; esac
cannam@95 19352
cannam@95 19353 f77_foo="$ac_val"
cannam@95 19354
cannam@95 19355 ac_ext=c
cannam@95 19356 ac_cpp='$CPP $CPPFLAGS'
cannam@95 19357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@95 19358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 19359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@95 19360
cannam@95 19361 f77_foo2=`echo $f77foo | sed 's/77/77_/'`
cannam@95 19362 if test "$f77_foo" = "$f77_foo2"; then
cannam@95 19363
cannam@95 19364 $as_echo "#define F77_FUNC_EQUIV 1" >>confdefs.h
cannam@95 19365
cannam@95 19366
cannam@95 19367 # Include g77 wrappers by default for GNU systems or gfortran
cannam@95 19368 with_g77_wrappers=$ac_cv_f77_compiler_gnu
cannam@95 19369 case $host_os in *gnu*) with_g77_wrappers=yes ;; esac
cannam@95 19370 fi
cannam@95 19371 else
cannam@95 19372 with_g77_wrappers=no
cannam@95 19373 fi
cannam@95 19374
cannam@95 19375
cannam@95 19376 # Check whether --with-g77-wrappers was given.
cannam@95 19377 if test "${with_g77_wrappers+set}" = set; then :
cannam@95 19378 withval=$with_g77_wrappers; with_g77_wrappers=$withval
cannam@95 19379 fi
cannam@95 19380
cannam@95 19381 if test "x$with_g77_wrappers" = "xyes"; then
cannam@95 19382
cannam@95 19383 $as_echo "#define WITH_G77_WRAPPERS 1" >>confdefs.h
cannam@95 19384
cannam@95 19385 fi
cannam@95 19386
cannam@95 19387 have_smp="no"
cannam@95 19388 # Check whether --enable-openmp was given.
cannam@95 19389 if test "${enable_openmp+set}" = set; then :
cannam@95 19390 enableval=$enable_openmp; enable_openmp=$enableval
cannam@95 19391 else
cannam@95 19392 enable_openmp=no
cannam@95 19393 fi
cannam@95 19394
cannam@95 19395
cannam@95 19396 if test "$enable_openmp" = "yes"; then
cannam@95 19397
cannam@95 19398 $as_echo "#define HAVE_OPENMP 1" >>confdefs.h
cannam@95 19399
cannam@95 19400
cannam@95 19401
cannam@95 19402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP flag of C compiler" >&5
cannam@95 19403 $as_echo_n "checking for OpenMP flag of C compiler... " >&6; }
cannam@95 19404 if ${ax_cv_c_openmp+:} false; then :
cannam@95 19405 $as_echo_n "(cached) " >&6
cannam@95 19406 else
cannam@95 19407 saveCFLAGS=$CFLAGS
cannam@95 19408 ax_cv_c_openmp=unknown
cannam@95 19409 # Flags to try: -fopenmp (gcc), -openmp (icc), -mp (SGI & PGI),
cannam@95 19410 # -xopenmp (Sun), -omp (Tru64), -qsmp=omp (AIX), none
cannam@95 19411 ax_openmp_flags="-fopenmp -openmp -mp -xopenmp -omp -qsmp=omp none"
cannam@95 19412 if test "x$OPENMP_CFLAGS" != x; then
cannam@95 19413 ax_openmp_flags="$OPENMP_CFLAGS $ax_openmp_flags"
cannam@95 19414 fi
cannam@95 19415 for ax_openmp_flag in $ax_openmp_flags; do
cannam@95 19416 case $ax_openmp_flag in
cannam@95 19417 none) CFLAGS=$saveC ;;
cannam@95 19418 *) CFLAGS="$saveCFLAGS $ax_openmp_flag" ;;
cannam@95 19419 esac
cannam@95 19420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 19421 /* end confdefs.h. */
cannam@95 19422
cannam@95 19423 /* Override any GCC internal prototype to avoid an error.
cannam@95 19424 Use char because int might match the return type of a GCC
cannam@95 19425 builtin and then its argument prototype would still apply. */
cannam@95 19426 #ifdef __cplusplus
cannam@95 19427 extern "C"
cannam@95 19428 #endif
cannam@95 19429 char omp_set_num_threads ();
cannam@95 19430 #ifdef F77_DUMMY_MAIN
cannam@95 19431
cannam@95 19432 # ifdef __cplusplus
cannam@95 19433 extern "C"
cannam@95 19434 # endif
cannam@95 19435 int F77_DUMMY_MAIN() { return 1; }
cannam@95 19436
cannam@95 19437 #endif
cannam@95 19438 int
cannam@95 19439 main ()
cannam@95 19440 {
cannam@95 19441 return omp_set_num_threads ();
cannam@95 19442 ;
cannam@95 19443 return 0;
cannam@95 19444 }
cannam@95 19445 _ACEOF
cannam@95 19446 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 19447 ax_cv_c_openmp=$ax_openmp_flag; break
cannam@95 19448 fi
cannam@95 19449 rm -f core conftest.err conftest.$ac_objext \
cannam@95 19450 conftest$ac_exeext conftest.$ac_ext
cannam@95 19451 done
cannam@95 19452 CFLAGS=$saveCFLAGS
cannam@95 19453
cannam@95 19454 fi
cannam@95 19455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_openmp" >&5
cannam@95 19456 $as_echo "$ax_cv_c_openmp" >&6; }
cannam@95 19457 if test "x$ax_cv_c_openmp" = "xunknown"; then
cannam@95 19458 as_fn_error $? "don't know how to enable OpenMP" "$LINENO" 5
cannam@95 19459 else
cannam@95 19460 if test "x$ax_cv_c_openmp" != "xnone"; then
cannam@95 19461 OPENMP_CFLAGS=$ax_cv_c_openmp
cannam@95 19462 fi
cannam@95 19463
cannam@95 19464 $as_echo "#define HAVE_OPENMP 1" >>confdefs.h
cannam@95 19465
cannam@95 19466 fi
cannam@95 19467
cannam@95 19468
cannam@95 19469 fi
cannam@95 19470
cannam@95 19471 # Check whether --enable-threads was given.
cannam@95 19472 if test "${enable_threads+set}" = set; then :
cannam@95 19473 enableval=$enable_threads; enable_threads=$enableval
cannam@95 19474 else
cannam@95 19475 enable_threads=no
cannam@95 19476 fi
cannam@95 19477
cannam@95 19478
cannam@95 19479 if test "$enable_threads" = "yes"; then
cannam@95 19480
cannam@95 19481 $as_echo "#define HAVE_THREADS 1" >>confdefs.h
cannam@95 19482
cannam@95 19483 fi
cannam@95 19484
cannam@95 19485
cannam@95 19486 # Check whether --with-combined-threads was given.
cannam@95 19487 if test "${with_combined_threads+set}" = set; then :
cannam@95 19488 withval=$with_combined_threads; with_combined_threads=$withval
cannam@95 19489 else
cannam@95 19490 with_combined_threads=no
cannam@95 19491 fi
cannam@95 19492
cannam@95 19493
cannam@95 19494 if test "$with_combined_threads" = yes; then
cannam@95 19495 if test "$enable_openmp" = "yes"; then
cannam@95 19496 as_fn_error $? "--with-combined-threads incompatible with --enable-openmp" "$LINENO" 5
cannam@95 19497 fi
cannam@95 19498 if test "$enable_threads" != "yes"; then
cannam@95 19499 as_fn_error $? "--with-combined-threads requires --enable-threads" "$LINENO" 5
cannam@95 19500 fi
cannam@95 19501 fi
cannam@95 19502
cannam@95 19503 THREADLIBS=""
cannam@95 19504 if test "$enable_threads" = "yes"; then
cannam@95 19505 # POSIX threads, the default choice:
cannam@95 19506 if test -z "$THREADLIBS"; then
cannam@95 19507
cannam@95 19508
cannam@95 19509
cannam@95 19510 ac_ext=c
cannam@95 19511 ac_cpp='$CPP $CPPFLAGS'
cannam@95 19512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@95 19513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 19514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@95 19515
cannam@95 19516 acx_pthread_ok=no
cannam@95 19517
cannam@95 19518 # We used to check for pthread.h first, but this fails if pthread.h
cannam@95 19519 # requires special compiler flags (e.g. on True64 or Sequent).
cannam@95 19520 # It gets checked for in the link test anyway.
cannam@95 19521
cannam@95 19522 # First of all, check if the user has set any of the PTHREAD_LIBS,
cannam@95 19523 # etcetera environment variables, and if threads linking works using
cannam@95 19524 # them:
cannam@95 19525 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
cannam@95 19526 save_CFLAGS="$CFLAGS"
cannam@95 19527 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
cannam@95 19528 save_LIBS="$LIBS"
cannam@95 19529 LIBS="$PTHREAD_LIBS $LIBS"
cannam@95 19530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
cannam@95 19531 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cannam@95 19532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 19533 /* end confdefs.h. */
cannam@95 19534
cannam@95 19535 /* Override any GCC internal prototype to avoid an error.
cannam@95 19536 Use char because int might match the return type of a GCC
cannam@95 19537 builtin and then its argument prototype would still apply. */
cannam@95 19538 #ifdef __cplusplus
cannam@95 19539 extern "C"
cannam@95 19540 #endif
cannam@95 19541 char pthread_join ();
cannam@95 19542 #ifdef F77_DUMMY_MAIN
cannam@95 19543
cannam@95 19544 # ifdef __cplusplus
cannam@95 19545 extern "C"
cannam@95 19546 # endif
cannam@95 19547 int F77_DUMMY_MAIN() { return 1; }
cannam@95 19548
cannam@95 19549 #endif
cannam@95 19550 int
cannam@95 19551 main ()
cannam@95 19552 {
cannam@95 19553 return pthread_join ();
cannam@95 19554 ;
cannam@95 19555 return 0;
cannam@95 19556 }
cannam@95 19557 _ACEOF
cannam@95 19558 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 19559 acx_pthread_ok=yes
cannam@95 19560 fi
cannam@95 19561 rm -f core conftest.err conftest.$ac_objext \
cannam@95 19562 conftest$ac_exeext conftest.$ac_ext
cannam@95 19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cannam@95 19564 $as_echo "$acx_pthread_ok" >&6; }
cannam@95 19565 if test x"$acx_pthread_ok" = xno; then
cannam@95 19566 PTHREAD_LIBS=""
cannam@95 19567 PTHREAD_CFLAGS=""
cannam@95 19568 fi
cannam@95 19569 LIBS="$save_LIBS"
cannam@95 19570 CFLAGS="$save_CFLAGS"
cannam@95 19571 fi
cannam@95 19572
cannam@95 19573 # We must check for the threads library under a number of different
cannam@95 19574 # names; the ordering is very important because some systems
cannam@95 19575 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
cannam@95 19576 # libraries is broken (non-POSIX).
cannam@95 19577
cannam@95 19578 # Create a list of thread flags to try. Items starting with a "-" are
cannam@95 19579 # C compiler flags, and other items are library names, except for "none"
cannam@95 19580 # which indicates that we try without any flags at all, and "pthread-config"
cannam@95 19581 # which is a program returning the flags for the Pth emulation library.
cannam@95 19582
cannam@95 19583 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
cannam@95 19584
cannam@95 19585 # The ordering *is* (sometimes) important. Some notes on the
cannam@95 19586 # individual items follow:
cannam@95 19587
cannam@95 19588 # pthreads: AIX (must check this before -lpthread)
cannam@95 19589 # none: in case threads are in libc; should be tried before -Kthread and
cannam@95 19590 # other compiler flags to prevent continual compiler warnings
cannam@95 19591 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
cannam@95 19592 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
cannam@95 19593 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
cannam@95 19594 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
cannam@95 19595 # -pthreads: Solaris/gcc
cannam@95 19596 # -mthreads: Mingw32/gcc, Lynx/gcc
cannam@95 19597 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
cannam@95 19598 # doesn't hurt to check since this sometimes defines pthreads too;
cannam@95 19599 # also defines -D_REENTRANT)
cannam@95 19600 # ... -mt is also the pthreads flag for HP/aCC
cannam@95 19601 # (where it should come before -mthreads to avoid spurious warnings)
cannam@95 19602 # pthread: Linux, etcetera
cannam@95 19603 # --thread-safe: KAI C++
cannam@95 19604 # pthread-config: use pthread-config program (for GNU Pth library)
cannam@95 19605
cannam@95 19606 case "${host_cpu}-${host_os}" in
cannam@95 19607 *solaris*)
cannam@95 19608
cannam@95 19609 # On Solaris (at least, for some versions), libc contains stubbed
cannam@95 19610 # (non-functional) versions of the pthreads routines, so link-based
cannam@95 19611 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
cannam@95 19612 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
cannam@95 19613 # a function called by this macro, so we could check for that, but
cannam@95 19614 # who knows whether they'll stub that too in a future libc.) So,
cannam@95 19615 # we'll just look for -pthreads and -lpthread first:
cannam@95 19616
cannam@95 19617 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
cannam@95 19618 ;;
cannam@95 19619 esac
cannam@95 19620
cannam@95 19621 if test x"$acx_pthread_ok" = xno; then
cannam@95 19622 for flag in $acx_pthread_flags; do
cannam@95 19623
cannam@95 19624 case $flag in
cannam@95 19625 none)
cannam@95 19626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cannam@95 19627 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
cannam@95 19628 ;;
cannam@95 19629
cannam@95 19630 -*)
cannam@95 19631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cannam@95 19632 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
cannam@95 19633 PTHREAD_CFLAGS="$flag"
cannam@95 19634 ;;
cannam@95 19635
cannam@95 19636 pthread-config)
cannam@95 19637 # Extract the first word of "pthread-config", so it can be a program name with args.
cannam@95 19638 set dummy pthread-config; ac_word=$2
cannam@95 19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 19640 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 19641 if ${ac_cv_prog_acx_pthread_config+:} false; then :
cannam@95 19642 $as_echo_n "(cached) " >&6
cannam@95 19643 else
cannam@95 19644 if test -n "$acx_pthread_config"; then
cannam@95 19645 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
cannam@95 19646 else
cannam@95 19647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 19648 for as_dir in $PATH
cannam@95 19649 do
cannam@95 19650 IFS=$as_save_IFS
cannam@95 19651 test -z "$as_dir" && as_dir=.
cannam@95 19652 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 19653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 19654 ac_cv_prog_acx_pthread_config="yes"
cannam@95 19655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 19656 break 2
cannam@95 19657 fi
cannam@95 19658 done
cannam@95 19659 done
cannam@95 19660 IFS=$as_save_IFS
cannam@95 19661
cannam@95 19662 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
cannam@95 19663 fi
cannam@95 19664 fi
cannam@95 19665 acx_pthread_config=$ac_cv_prog_acx_pthread_config
cannam@95 19666 if test -n "$acx_pthread_config"; then
cannam@95 19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
cannam@95 19668 $as_echo "$acx_pthread_config" >&6; }
cannam@95 19669 else
cannam@95 19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 19671 $as_echo "no" >&6; }
cannam@95 19672 fi
cannam@95 19673
cannam@95 19674
cannam@95 19675 if test x"$acx_pthread_config" = xno; then continue; fi
cannam@95 19676 PTHREAD_CFLAGS="`pthread-config --cflags`"
cannam@95 19677 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
cannam@95 19678 ;;
cannam@95 19679
cannam@95 19680 *)
cannam@95 19681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cannam@95 19682 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
cannam@95 19683 PTHREAD_LIBS="-l$flag"
cannam@95 19684 ;;
cannam@95 19685 esac
cannam@95 19686
cannam@95 19687 save_LIBS="$LIBS"
cannam@95 19688 save_CFLAGS="$CFLAGS"
cannam@95 19689 LIBS="$PTHREAD_LIBS $LIBS"
cannam@95 19690 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
cannam@95 19691
cannam@95 19692 # Check for various functions. We must include pthread.h,
cannam@95 19693 # since some functions may be macros. (On the Sequent, we
cannam@95 19694 # need a special flag -Kthread to make this header compile.)
cannam@95 19695 # We check for pthread_join because it is in -lpthread on IRIX
cannam@95 19696 # while pthread_create is in libc. We check for pthread_attr_init
cannam@95 19697 # due to DEC craziness with -lpthreads. We check for
cannam@95 19698 # pthread_cleanup_push because it is one of the few pthread
cannam@95 19699 # functions on Solaris that doesn't have a non-functional libc stub.
cannam@95 19700 # We try pthread_create on general principles.
cannam@95 19701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 19702 /* end confdefs.h. */
cannam@95 19703 #include <pthread.h>
cannam@95 19704 #ifdef F77_DUMMY_MAIN
cannam@95 19705
cannam@95 19706 # ifdef __cplusplus
cannam@95 19707 extern "C"
cannam@95 19708 # endif
cannam@95 19709 int F77_DUMMY_MAIN() { return 1; }
cannam@95 19710
cannam@95 19711 #endif
cannam@95 19712 int
cannam@95 19713 main ()
cannam@95 19714 {
cannam@95 19715 pthread_t th; pthread_join(th, (void**) 0);
cannam@95 19716 pthread_attr_init((pthread_attr_t*) 0);
cannam@95 19717 pthread_cleanup_push((void(*)(void *)) 0, (void*) 0);
cannam@95 19718 pthread_create((pthread_t*) 0, (pthread_attr_t*) 0,
cannam@95 19719 (void*(*)(void *)) 0, (void*) 0);
cannam@95 19720 pthread_cleanup_pop(0);
cannam@95 19721 ;
cannam@95 19722 return 0;
cannam@95 19723 }
cannam@95 19724 _ACEOF
cannam@95 19725 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 19726 acx_pthread_ok=yes
cannam@95 19727 fi
cannam@95 19728 rm -f core conftest.err conftest.$ac_objext \
cannam@95 19729 conftest$ac_exeext conftest.$ac_ext
cannam@95 19730
cannam@95 19731 LIBS="$save_LIBS"
cannam@95 19732 CFLAGS="$save_CFLAGS"
cannam@95 19733
cannam@95 19734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cannam@95 19735 $as_echo "$acx_pthread_ok" >&6; }
cannam@95 19736 if test "x$acx_pthread_ok" = xyes; then
cannam@95 19737 break;
cannam@95 19738 fi
cannam@95 19739
cannam@95 19740 PTHREAD_LIBS=""
cannam@95 19741 PTHREAD_CFLAGS=""
cannam@95 19742 done
cannam@95 19743 fi
cannam@95 19744
cannam@95 19745 # Various other checks:
cannam@95 19746 if test "x$acx_pthread_ok" = xyes; then
cannam@95 19747 save_LIBS="$LIBS"
cannam@95 19748 LIBS="$PTHREAD_LIBS $LIBS"
cannam@95 19749 save_CFLAGS="$CFLAGS"
cannam@95 19750 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
cannam@95 19751
cannam@95 19752 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cannam@95 19753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cannam@95 19754 $as_echo_n "checking for joinable pthread attribute... " >&6; }
cannam@95 19755 attr_name=unknown
cannam@95 19756 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cannam@95 19757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 19758 /* end confdefs.h. */
cannam@95 19759 #include <pthread.h>
cannam@95 19760 #ifdef F77_DUMMY_MAIN
cannam@95 19761
cannam@95 19762 # ifdef __cplusplus
cannam@95 19763 extern "C"
cannam@95 19764 # endif
cannam@95 19765 int F77_DUMMY_MAIN() { return 1; }
cannam@95 19766
cannam@95 19767 #endif
cannam@95 19768 int
cannam@95 19769 main ()
cannam@95 19770 {
cannam@95 19771 int attr=$attr; return attr;
cannam@95 19772 ;
cannam@95 19773 return 0;
cannam@95 19774 }
cannam@95 19775 _ACEOF
cannam@95 19776 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 19777 attr_name=$attr; break
cannam@95 19778 fi
cannam@95 19779 rm -f core conftest.err conftest.$ac_objext \
cannam@95 19780 conftest$ac_exeext conftest.$ac_ext
cannam@95 19781 done
cannam@95 19782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cannam@95 19783 $as_echo "$attr_name" >&6; }
cannam@95 19784 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
cannam@95 19785
cannam@95 19786 cat >>confdefs.h <<_ACEOF
cannam@95 19787 #define PTHREAD_CREATE_JOINABLE $attr_name
cannam@95 19788 _ACEOF
cannam@95 19789
cannam@95 19790 fi
cannam@95 19791
cannam@95 19792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cannam@95 19793 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
cannam@95 19794 flag=no
cannam@95 19795 case "${host_cpu}-${host_os}" in
cannam@95 19796 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
cannam@95 19797 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
cannam@95 19798 esac
cannam@95 19799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cannam@95 19800 $as_echo "${flag}" >&6; }
cannam@95 19801 if test "x$flag" != xno; then
cannam@95 19802 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
cannam@95 19803 fi
cannam@95 19804
cannam@95 19805 LIBS="$save_LIBS"
cannam@95 19806 CFLAGS="$save_CFLAGS"
cannam@95 19807
cannam@95 19808 # More AIX lossage: must compile with xlc_r or cc_r
cannam@95 19809 if test x"$GCC" != xyes; then
cannam@95 19810 for ac_prog in xlc_r cc_r
cannam@95 19811 do
cannam@95 19812 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@95 19813 set dummy $ac_prog; ac_word=$2
cannam@95 19814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@95 19815 $as_echo_n "checking for $ac_word... " >&6; }
cannam@95 19816 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cannam@95 19817 $as_echo_n "(cached) " >&6
cannam@95 19818 else
cannam@95 19819 if test -n "$PTHREAD_CC"; then
cannam@95 19820 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
cannam@95 19821 else
cannam@95 19822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 19823 for as_dir in $PATH
cannam@95 19824 do
cannam@95 19825 IFS=$as_save_IFS
cannam@95 19826 test -z "$as_dir" && as_dir=.
cannam@95 19827 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@95 19828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@95 19829 ac_cv_prog_PTHREAD_CC="$ac_prog"
cannam@95 19830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@95 19831 break 2
cannam@95 19832 fi
cannam@95 19833 done
cannam@95 19834 done
cannam@95 19835 IFS=$as_save_IFS
cannam@95 19836
cannam@95 19837 fi
cannam@95 19838 fi
cannam@95 19839 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
cannam@95 19840 if test -n "$PTHREAD_CC"; then
cannam@95 19841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cannam@95 19842 $as_echo "$PTHREAD_CC" >&6; }
cannam@95 19843 else
cannam@95 19844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 19845 $as_echo "no" >&6; }
cannam@95 19846 fi
cannam@95 19847
cannam@95 19848
cannam@95 19849 test -n "$PTHREAD_CC" && break
cannam@95 19850 done
cannam@95 19851 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cannam@95 19852
cannam@95 19853 else
cannam@95 19854 PTHREAD_CC=$CC
cannam@95 19855 fi
cannam@95 19856 else
cannam@95 19857 PTHREAD_CC="$CC"
cannam@95 19858 fi
cannam@95 19859
cannam@95 19860
cannam@95 19861
cannam@95 19862
cannam@95 19863
cannam@95 19864 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
cannam@95 19865 if test x"$acx_pthread_ok" = xyes; then
cannam@95 19866 THREADLIBS="$PTHREAD_LIBS "
cannam@95 19867 CC="$PTHREAD_CC"
cannam@95 19868
cannam@95 19869 $as_echo "#define USING_POSIX_THREADS 1" >>confdefs.h
cannam@95 19870
cannam@95 19871 :
cannam@95 19872 else
cannam@95 19873 acx_pthread_ok=no
cannam@95 19874
cannam@95 19875 fi
cannam@95 19876 ac_ext=c
cannam@95 19877 ac_cpp='$CPP $CPPFLAGS'
cannam@95 19878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@95 19879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@95 19880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@95 19881
cannam@95 19882
cannam@95 19883 fi
cannam@95 19884
cannam@95 19885 if test -z "$THREADLIBS"; then
cannam@95 19886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32 threads" >&5
cannam@95 19887 $as_echo_n "checking for Win32 threads... " >&6; }
cannam@95 19888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 19889 /* end confdefs.h. */
cannam@95 19890 #include <windows.h>
cannam@95 19891 #ifdef F77_DUMMY_MAIN
cannam@95 19892
cannam@95 19893 # ifdef __cplusplus
cannam@95 19894 extern "C"
cannam@95 19895 # endif
cannam@95 19896 int F77_DUMMY_MAIN() { return 1; }
cannam@95 19897
cannam@95 19898 #endif
cannam@95 19899 int
cannam@95 19900 main ()
cannam@95 19901 {
cannam@95 19902 _beginthreadex(0,0,0,0,0,0);
cannam@95 19903 ;
cannam@95 19904 return 0;
cannam@95 19905 }
cannam@95 19906 _ACEOF
cannam@95 19907 if ac_fn_c_try_link "$LINENO"; then :
cannam@95 19908 THREADLIBS=" "; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@95 19909 $as_echo "yes" >&6; }
cannam@95 19910 else
cannam@95 19911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@95 19912 $as_echo "no" >&6; }
cannam@95 19913 fi
cannam@95 19914 rm -f core conftest.err conftest.$ac_objext \
cannam@95 19915 conftest$ac_exeext conftest.$ac_ext
cannam@95 19916 fi
cannam@95 19917
cannam@95 19918 if test -z "$THREADLIBS"; then
cannam@95 19919 as_fn_error $? "couldn't find threads library for --enable-threads" "$LINENO" 5
cannam@95 19920 fi
cannam@95 19921
cannam@95 19922 $as_echo "#define HAVE_THREADS 1" >>confdefs.h
cannam@95 19923
cannam@95 19924 fi
cannam@95 19925
cannam@95 19926 if test "$enable_threads" = "yes"; then
cannam@95 19927 THREADS_TRUE=
cannam@95 19928 THREADS_FALSE='#'
cannam@95 19929 else
cannam@95 19930 THREADS_TRUE='#'
cannam@95 19931 THREADS_FALSE=
cannam@95 19932 fi
cannam@95 19933
cannam@95 19934 if test "$enable_openmp" = "yes"; then
cannam@95 19935 OPENMP_TRUE=
cannam@95 19936 OPENMP_FALSE='#'
cannam@95 19937 else
cannam@95 19938 OPENMP_TRUE='#'
cannam@95 19939 OPENMP_FALSE=
cannam@95 19940 fi
cannam@95 19941
cannam@95 19942 if test "$enable_threads" = "yes" -o "$enable_openmp" = "yes"; then
cannam@95 19943 SMP_TRUE=
cannam@95 19944 SMP_FALSE='#'
cannam@95 19945 else
cannam@95 19946 SMP_TRUE='#'
cannam@95 19947 SMP_FALSE=
cannam@95 19948 fi
cannam@95 19949
cannam@95 19950 if test x"$with_combined_threads" = xyes; then
cannam@95 19951 COMBINED_THREADS_TRUE=
cannam@95 19952 COMBINED_THREADS_FALSE='#'
cannam@95 19953 else
cannam@95 19954 COMBINED_THREADS_TRUE='#'
cannam@95 19955 COMBINED_THREADS_FALSE=
cannam@95 19956 fi
cannam@95 19957
cannam@95 19958
cannam@95 19959
cannam@95 19960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a cycle counter is available" >&5
cannam@95 19961 $as_echo_n "checking whether a cycle counter is available... " >&6; }
cannam@95 19962 save_CPPFLAGS=$CPPFLAGS
cannam@95 19963 CPPFLAGS="$CPPFLAGS -I$srcdir/kernel"
cannam@95 19964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@95 19965 /* end confdefs.h. */
cannam@95 19966 #include "cycle.h"
cannam@95 19967 #ifndef HAVE_TICK_COUNTER
cannam@95 19968 # error No cycle counter
cannam@95 19969 #endif
cannam@95 19970 _ACEOF
cannam@95 19971 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@95 19972 ok=yes
cannam@95 19973 else
cannam@95 19974 ok=no
cannam@95 19975 fi
cannam@95 19976 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@95 19977 CPPFLAGS=$save_CPPFLAGS
cannam@95 19978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5
cannam@95 19979 $as_echo "$ok" >&6; }
cannam@95 19980 if test $ok = no && test "x$with_slow_timer" = xno; then
cannam@95 19981 echo "***************************************************************"
cannam@95 19982 echo "WARNING: No cycle counter found. FFTW will use ESTIMATE mode "
cannam@95 19983 echo " for all plans. See the manual for more information."
cannam@95 19984 echo "***************************************************************"
cannam@95 19985 fi
cannam@95 19986
cannam@95 19987
cannam@95 19988
cannam@95 19989 cat >>confdefs.h <<_ACEOF
cannam@95 19990 #define FFTW_CC "$CC $CFLAGS"
cannam@95 19991 _ACEOF
cannam@95 19992
cannam@95 19993
cannam@95 19994 ac_config_files="$ac_config_files Makefile support/Makefile genfft/Makefile kernel/Makefile simd-support/Makefile dft/Makefile dft/scalar/Makefile dft/scalar/codelets/Makefile dft/simd/Makefile dft/simd/common/Makefile dft/simd/sse2/Makefile dft/simd/avx/Makefile dft/simd/altivec/Makefile dft/simd/neon/Makefile rdft/Makefile rdft/scalar/Makefile rdft/scalar/r2cf/Makefile rdft/scalar/r2cb/Makefile rdft/scalar/r2r/Makefile rdft/simd/Makefile rdft/simd/common/Makefile rdft/simd/sse2/Makefile rdft/simd/avx/Makefile rdft/simd/altivec/Makefile rdft/simd/neon/Makefile reodft/Makefile threads/Makefile api/Makefile mpi/Makefile libbench2/Makefile tests/Makefile doc/Makefile doc/FAQ/Makefile tools/Makefile tools/fftw_wisdom.1 tools/fftw-wisdom-to-conf m4/Makefile fftw.pc"
cannam@95 19995
cannam@95 19996
cannam@95 19997 cat >confcache <<\_ACEOF
cannam@95 19998 # This file is a shell script that caches the results of configure
cannam@95 19999 # tests run on this system so they can be shared between configure
cannam@95 20000 # scripts and configure runs, see configure's option --config-cache.
cannam@95 20001 # It is not useful on other systems. If it contains results you don't
cannam@95 20002 # want to keep, you may remove or edit it.
cannam@95 20003 #
cannam@95 20004 # config.status only pays attention to the cache file if you give it
cannam@95 20005 # the --recheck option to rerun configure.
cannam@95 20006 #
cannam@95 20007 # `ac_cv_env_foo' variables (set or unset) will be overridden when
cannam@95 20008 # loading this file, other *unset* `ac_cv_foo' will be assigned the
cannam@95 20009 # following values.
cannam@95 20010
cannam@95 20011 _ACEOF
cannam@95 20012
cannam@95 20013 # The following way of writing the cache mishandles newlines in values,
cannam@95 20014 # but we know of no workaround that is simple, portable, and efficient.
cannam@95 20015 # So, we kill variables containing newlines.
cannam@95 20016 # Ultrix sh set writes to stderr and can't be redirected directly,
cannam@95 20017 # and sets the high bit in the cache file unless we assign to the vars.
cannam@95 20018 (
cannam@95 20019 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
cannam@95 20020 eval ac_val=\$$ac_var
cannam@95 20021 case $ac_val in #(
cannam@95 20022 *${as_nl}*)
cannam@95 20023 case $ac_var in #(
cannam@95 20024 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cannam@95 20025 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
cannam@95 20026 esac
cannam@95 20027 case $ac_var in #(
cannam@95 20028 _ | IFS | as_nl) ;; #(
cannam@95 20029 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cannam@95 20030 *) { eval $ac_var=; unset $ac_var;} ;;
cannam@95 20031 esac ;;
cannam@95 20032 esac
cannam@95 20033 done
cannam@95 20034
cannam@95 20035 (set) 2>&1 |
cannam@95 20036 case $as_nl`(ac_space=' '; set) 2>&1` in #(
cannam@95 20037 *${as_nl}ac_space=\ *)
cannam@95 20038 # `set' does not quote correctly, so add quotes: double-quote
cannam@95 20039 # substitution turns \\\\ into \\, and sed turns \\ into \.
cannam@95 20040 sed -n \
cannam@95 20041 "s/'/'\\\\''/g;
cannam@95 20042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cannam@95 20043 ;; #(
cannam@95 20044 *)
cannam@95 20045 # `set' quotes correctly as required by POSIX, so do not add quotes.
cannam@95 20046 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
cannam@95 20047 ;;
cannam@95 20048 esac |
cannam@95 20049 sort
cannam@95 20050 ) |
cannam@95 20051 sed '
cannam@95 20052 /^ac_cv_env_/b end
cannam@95 20053 t clear
cannam@95 20054 :clear
cannam@95 20055 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
cannam@95 20056 t end
cannam@95 20057 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
cannam@95 20058 :end' >>confcache
cannam@95 20059 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
cannam@95 20060 if test -w "$cache_file"; then
cannam@95 20061 if test "x$cache_file" != "x/dev/null"; then
cannam@95 20062 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cannam@95 20063 $as_echo "$as_me: updating cache $cache_file" >&6;}
cannam@95 20064 if test ! -f "$cache_file" || test -h "$cache_file"; then
cannam@95 20065 cat confcache >"$cache_file"
cannam@95 20066 else
cannam@95 20067 case $cache_file in #(
cannam@95 20068 */* | ?:*)
cannam@95 20069 mv -f confcache "$cache_file"$$ &&
cannam@95 20070 mv -f "$cache_file"$$ "$cache_file" ;; #(
cannam@95 20071 *)
cannam@95 20072 mv -f confcache "$cache_file" ;;
cannam@95 20073 esac
cannam@95 20074 fi
cannam@95 20075 fi
cannam@95 20076 else
cannam@95 20077 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cannam@95 20078 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
cannam@95 20079 fi
cannam@95 20080 fi
cannam@95 20081 rm -f confcache
cannam@95 20082
cannam@95 20083 test "x$prefix" = xNONE && prefix=$ac_default_prefix
cannam@95 20084 # Let make expand exec_prefix.
cannam@95 20085 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
cannam@95 20086
cannam@95 20087 DEFS=-DHAVE_CONFIG_H
cannam@95 20088
cannam@95 20089 ac_libobjs=
cannam@95 20090 ac_ltlibobjs=
cannam@95 20091 U=
cannam@95 20092 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
cannam@95 20093 # 1. Remove the extension, and $U if already installed.
cannam@95 20094 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
cannam@95 20095 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
cannam@95 20096 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
cannam@95 20097 # will be set to the directory where LIBOBJS objects are built.
cannam@95 20098 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
cannam@95 20099 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cannam@95 20100 done
cannam@95 20101 LIBOBJS=$ac_libobjs
cannam@95 20102
cannam@95 20103 LTLIBOBJS=$ac_ltlibobjs
cannam@95 20104
cannam@95 20105
cannam@95 20106 if test -n "$EXEEXT"; then
cannam@95 20107 am__EXEEXT_TRUE=
cannam@95 20108 am__EXEEXT_FALSE='#'
cannam@95 20109 else
cannam@95 20110 am__EXEEXT_TRUE='#'
cannam@95 20111 am__EXEEXT_FALSE=
cannam@95 20112 fi
cannam@95 20113
cannam@95 20114 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cannam@95 20115 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cannam@95 20116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@95 20117 fi
cannam@95 20118 if test -z "${SINGLE_TRUE}" && test -z "${SINGLE_FALSE}"; then
cannam@95 20119 as_fn_error $? "conditional \"SINGLE\" was never defined.
cannam@95 20120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@95 20121 fi
cannam@95 20122 if test -z "${LDOUBLE_TRUE}" && test -z "${LDOUBLE_FALSE}"; then
cannam@95 20123 as_fn_error $? "conditional \"LDOUBLE\" was never defined.
cannam@95 20124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@95 20125 fi
cannam@95 20126 if test -z "${QUAD_TRUE}" && test -z "${QUAD_FALSE}"; then
cannam@95 20127 as_fn_error $? "conditional \"QUAD\" was never defined.
cannam@95 20128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@95 20129 fi
cannam@95 20130 if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then
cannam@95 20131 as_fn_error $? "conditional \"HAVE_SSE2\" was never defined.
cannam@95 20132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@95 20133 fi
cannam@95 20134 if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then
cannam@95 20135 as_fn_error $? "conditional \"HAVE_AVX\" was never defined.
cannam@95 20136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@95 20137 fi
cannam@95 20138 if test -z "${HAVE_ALTIVEC_TRUE}" && test -z "${HAVE_ALTIVEC_FALSE}"; then
cannam@95 20139 as_fn_error $? "conditional \"HAVE_ALTIVEC\" was never defined.
cannam@95 20140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@95 20141 fi
cannam@95 20142 if test -z "${HAVE_NEON_TRUE}" && test -z "${HAVE_NEON_FALSE}"; then
cannam@95 20143 as_fn_error $? "conditional \"HAVE_NEON\" was never defined.
cannam@95 20144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@95 20145 fi
cannam@95 20146 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cannam@95 20147 as_fn_error $? "conditional \"AMDEP\" was never defined.
cannam@95 20148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@95 20149 fi
cannam@95 20150 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cannam@95 20151 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cannam@95 20152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@95 20153 fi
cannam@95 20154 if test -z "${MPI_TRUE}" && test -z "${MPI_FALSE}"; then
cannam@95 20155 as_fn_error $? "conditional \"MPI\" was never defined.
cannam@95 20156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@95 20157 fi
cannam@95 20158 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
cannam@95 20159 as_fn_error $? "conditional \"THREADS\" was never defined.
cannam@95 20160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@95 20161 fi
cannam@95 20162 if test -z "${OPENMP_TRUE}" && test -z "${OPENMP_FALSE}"; then
cannam@95 20163 as_fn_error $? "conditional \"OPENMP\" was never defined.
cannam@95 20164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@95 20165 fi
cannam@95 20166 if test -z "${SMP_TRUE}" && test -z "${SMP_FALSE}"; then
cannam@95 20167 as_fn_error $? "conditional \"SMP\" was never defined.
cannam@95 20168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@95 20169 fi
cannam@95 20170 if test -z "${COMBINED_THREADS_TRUE}" && test -z "${COMBINED_THREADS_FALSE}"; then
cannam@95 20171 as_fn_error $? "conditional \"COMBINED_THREADS\" was never defined.
cannam@95 20172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@95 20173 fi
cannam@95 20174
cannam@95 20175 : "${CONFIG_STATUS=./config.status}"
cannam@95 20176 ac_write_fail=0
cannam@95 20177 ac_clean_files_save=$ac_clean_files
cannam@95 20178 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cannam@95 20179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cannam@95 20180 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cannam@95 20181 as_write_fail=0
cannam@95 20182 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cannam@95 20183 #! $SHELL
cannam@95 20184 # Generated by $as_me.
cannam@95 20185 # Run this file to recreate the current configuration.
cannam@95 20186 # Compiler output produced by configure, useful for debugging
cannam@95 20187 # configure, is in config.log if it exists.
cannam@95 20188
cannam@95 20189 debug=false
cannam@95 20190 ac_cs_recheck=false
cannam@95 20191 ac_cs_silent=false
cannam@95 20192
cannam@95 20193 SHELL=\${CONFIG_SHELL-$SHELL}
cannam@95 20194 export SHELL
cannam@95 20195 _ASEOF
cannam@95 20196 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
cannam@95 20197 ## -------------------- ##
cannam@95 20198 ## M4sh Initialization. ##
cannam@95 20199 ## -------------------- ##
cannam@95 20200
cannam@95 20201 # Be more Bourne compatible
cannam@95 20202 DUALCASE=1; export DUALCASE # for MKS sh
cannam@95 20203 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cannam@95 20204 emulate sh
cannam@95 20205 NULLCMD=:
cannam@95 20206 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
cannam@95 20207 # is contrary to our usage. Disable this feature.
cannam@95 20208 alias -g '${1+"$@"}'='"$@"'
cannam@95 20209 setopt NO_GLOB_SUBST
cannam@95 20210 else
cannam@95 20211 case `(set -o) 2>/dev/null` in #(
cannam@95 20212 *posix*) :
cannam@95 20213 set -o posix ;; #(
cannam@95 20214 *) :
cannam@95 20215 ;;
cannam@95 20216 esac
cannam@95 20217 fi
cannam@95 20218
cannam@95 20219
cannam@95 20220 as_nl='
cannam@95 20221 '
cannam@95 20222 export as_nl
cannam@95 20223 # Printing a long string crashes Solaris 7 /usr/bin/printf.
cannam@95 20224 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@95 20225 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@95 20226 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@95 20227 # Prefer a ksh shell builtin over an external printf program on Solaris,
cannam@95 20228 # but without wasting forks for bash or zsh.
cannam@95 20229 if test -z "$BASH_VERSION$ZSH_VERSION" \
cannam@95 20230 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@95 20231 as_echo='print -r --'
cannam@95 20232 as_echo_n='print -rn --'
cannam@95 20233 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@95 20234 as_echo='printf %s\n'
cannam@95 20235 as_echo_n='printf %s'
cannam@95 20236 else
cannam@95 20237 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
cannam@95 20238 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
cannam@95 20239 as_echo_n='/usr/ucb/echo -n'
cannam@95 20240 else
cannam@95 20241 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
cannam@95 20242 as_echo_n_body='eval
cannam@95 20243 arg=$1;
cannam@95 20244 case $arg in #(
cannam@95 20245 *"$as_nl"*)
cannam@95 20246 expr "X$arg" : "X\\(.*\\)$as_nl";
cannam@95 20247 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
cannam@95 20248 esac;
cannam@95 20249 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
cannam@95 20250 '
cannam@95 20251 export as_echo_n_body
cannam@95 20252 as_echo_n='sh -c $as_echo_n_body as_echo'
cannam@95 20253 fi
cannam@95 20254 export as_echo_body
cannam@95 20255 as_echo='sh -c $as_echo_body as_echo'
cannam@95 20256 fi
cannam@95 20257
cannam@95 20258 # The user is always right.
cannam@95 20259 if test "${PATH_SEPARATOR+set}" != set; then
cannam@95 20260 PATH_SEPARATOR=:
cannam@95 20261 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
cannam@95 20262 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
cannam@95 20263 PATH_SEPARATOR=';'
cannam@95 20264 }
cannam@95 20265 fi
cannam@95 20266
cannam@95 20267
cannam@95 20268 # IFS
cannam@95 20269 # We need space, tab and new line, in precisely that order. Quoting is
cannam@95 20270 # there to prevent editors from complaining about space-tab.
cannam@95 20271 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
cannam@95 20272 # splitting by setting IFS to empty value.)
cannam@95 20273 IFS=" "" $as_nl"
cannam@95 20274
cannam@95 20275 # Find who we are. Look in the path if we contain no directory separator.
cannam@95 20276 as_myself=
cannam@95 20277 case $0 in #((
cannam@95 20278 *[\\/]* ) as_myself=$0 ;;
cannam@95 20279 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@95 20280 for as_dir in $PATH
cannam@95 20281 do
cannam@95 20282 IFS=$as_save_IFS
cannam@95 20283 test -z "$as_dir" && as_dir=.
cannam@95 20284 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
cannam@95 20285 done
cannam@95 20286 IFS=$as_save_IFS
cannam@95 20287
cannam@95 20288 ;;
cannam@95 20289 esac
cannam@95 20290 # We did not find ourselves, most probably we were run as `sh COMMAND'
cannam@95 20291 # in which case we are not to be found in the path.
cannam@95 20292 if test "x$as_myself" = x; then
cannam@95 20293 as_myself=$0
cannam@95 20294 fi
cannam@95 20295 if test ! -f "$as_myself"; then
cannam@95 20296 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cannam@95 20297 exit 1
cannam@95 20298 fi
cannam@95 20299
cannam@95 20300 # Unset variables that we do not need and which cause bugs (e.g. in
cannam@95 20301 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
cannam@95 20302 # suppresses any "Segmentation fault" message there. '((' could
cannam@95 20303 # trigger a bug in pdksh 5.2.14.
cannam@95 20304 for as_var in BASH_ENV ENV MAIL MAILPATH
cannam@95 20305 do eval test x\${$as_var+set} = xset \
cannam@95 20306 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cannam@95 20307 done
cannam@95 20308 PS1='$ '
cannam@95 20309 PS2='> '
cannam@95 20310 PS4='+ '
cannam@95 20311
cannam@95 20312 # NLS nuisances.
cannam@95 20313 LC_ALL=C
cannam@95 20314 export LC_ALL
cannam@95 20315 LANGUAGE=C
cannam@95 20316 export LANGUAGE
cannam@95 20317
cannam@95 20318 # CDPATH.
cannam@95 20319 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@95 20320
cannam@95 20321
cannam@95 20322 # as_fn_error STATUS ERROR [LINENO LOG_FD]
cannam@95 20323 # ----------------------------------------
cannam@95 20324 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
cannam@95 20325 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cannam@95 20326 # script with STATUS, using 1 if that was 0.
cannam@95 20327 as_fn_error ()
cannam@95 20328 {
cannam@95 20329 as_status=$1; test $as_status -eq 0 && as_status=1
cannam@95 20330 if test "$4"; then
cannam@95 20331 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@95 20332 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cannam@95 20333 fi
cannam@95 20334 $as_echo "$as_me: error: $2" >&2
cannam@95 20335 as_fn_exit $as_status
cannam@95 20336 } # as_fn_error
cannam@95 20337
cannam@95 20338
cannam@95 20339 # as_fn_set_status STATUS
cannam@95 20340 # -----------------------
cannam@95 20341 # Set $? to STATUS, without forking.
cannam@95 20342 as_fn_set_status ()
cannam@95 20343 {
cannam@95 20344 return $1
cannam@95 20345 } # as_fn_set_status
cannam@95 20346
cannam@95 20347 # as_fn_exit STATUS
cannam@95 20348 # -----------------
cannam@95 20349 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
cannam@95 20350 as_fn_exit ()
cannam@95 20351 {
cannam@95 20352 set +e
cannam@95 20353 as_fn_set_status $1
cannam@95 20354 exit $1
cannam@95 20355 } # as_fn_exit
cannam@95 20356
cannam@95 20357 # as_fn_unset VAR
cannam@95 20358 # ---------------
cannam@95 20359 # Portably unset VAR.
cannam@95 20360 as_fn_unset ()
cannam@95 20361 {
cannam@95 20362 { eval $1=; unset $1;}
cannam@95 20363 }
cannam@95 20364 as_unset=as_fn_unset
cannam@95 20365 # as_fn_append VAR VALUE
cannam@95 20366 # ----------------------
cannam@95 20367 # Append the text in VALUE to the end of the definition contained in VAR. Take
cannam@95 20368 # advantage of any shell optimizations that allow amortized linear growth over
cannam@95 20369 # repeated appends, instead of the typical quadratic growth present in naive
cannam@95 20370 # implementations.
cannam@95 20371 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
cannam@95 20372 eval 'as_fn_append ()
cannam@95 20373 {
cannam@95 20374 eval $1+=\$2
cannam@95 20375 }'
cannam@95 20376 else
cannam@95 20377 as_fn_append ()
cannam@95 20378 {
cannam@95 20379 eval $1=\$$1\$2
cannam@95 20380 }
cannam@95 20381 fi # as_fn_append
cannam@95 20382
cannam@95 20383 # as_fn_arith ARG...
cannam@95 20384 # ------------------
cannam@95 20385 # Perform arithmetic evaluation on the ARGs, and store the result in the
cannam@95 20386 # global $as_val. Take advantage of shells that can avoid forks. The arguments
cannam@95 20387 # must be portable across $(()) and expr.
cannam@95 20388 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
cannam@95 20389 eval 'as_fn_arith ()
cannam@95 20390 {
cannam@95 20391 as_val=$(( $* ))
cannam@95 20392 }'
cannam@95 20393 else
cannam@95 20394 as_fn_arith ()
cannam@95 20395 {
cannam@95 20396 as_val=`expr "$@" || test $? -eq 1`
cannam@95 20397 }
cannam@95 20398 fi # as_fn_arith
cannam@95 20399
cannam@95 20400
cannam@95 20401 if expr a : '\(a\)' >/dev/null 2>&1 &&
cannam@95 20402 test "X`expr 00001 : '.*\(...\)'`" = X001; then
cannam@95 20403 as_expr=expr
cannam@95 20404 else
cannam@95 20405 as_expr=false
cannam@95 20406 fi
cannam@95 20407
cannam@95 20408 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
cannam@95 20409 as_basename=basename
cannam@95 20410 else
cannam@95 20411 as_basename=false
cannam@95 20412 fi
cannam@95 20413
cannam@95 20414 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
cannam@95 20415 as_dirname=dirname
cannam@95 20416 else
cannam@95 20417 as_dirname=false
cannam@95 20418 fi
cannam@95 20419
cannam@95 20420 as_me=`$as_basename -- "$0" ||
cannam@95 20421 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
cannam@95 20422 X"$0" : 'X\(//\)$' \| \
cannam@95 20423 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
cannam@95 20424 $as_echo X/"$0" |
cannam@95 20425 sed '/^.*\/\([^/][^/]*\)\/*$/{
cannam@95 20426 s//\1/
cannam@95 20427 q
cannam@95 20428 }
cannam@95 20429 /^X\/\(\/\/\)$/{
cannam@95 20430 s//\1/
cannam@95 20431 q
cannam@95 20432 }
cannam@95 20433 /^X\/\(\/\).*/{
cannam@95 20434 s//\1/
cannam@95 20435 q
cannam@95 20436 }
cannam@95 20437 s/.*/./; q'`
cannam@95 20438
cannam@95 20439 # Avoid depending upon Character Ranges.
cannam@95 20440 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
cannam@95 20441 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
cannam@95 20442 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
cannam@95 20443 as_cr_digits='0123456789'
cannam@95 20444 as_cr_alnum=$as_cr_Letters$as_cr_digits
cannam@95 20445
cannam@95 20446 ECHO_C= ECHO_N= ECHO_T=
cannam@95 20447 case `echo -n x` in #(((((
cannam@95 20448 -n*)
cannam@95 20449 case `echo 'xy\c'` in
cannam@95 20450 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cannam@95 20451 xy) ECHO_C='\c';;
cannam@95 20452 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
cannam@95 20453 ECHO_T=' ';;
cannam@95 20454 esac;;
cannam@95 20455 *)
cannam@95 20456 ECHO_N='-n';;
cannam@95 20457 esac
cannam@95 20458
cannam@95 20459 rm -f conf$$ conf$$.exe conf$$.file
cannam@95 20460 if test -d conf$$.dir; then
cannam@95 20461 rm -f conf$$.dir/conf$$.file
cannam@95 20462 else
cannam@95 20463 rm -f conf$$.dir
cannam@95 20464 mkdir conf$$.dir 2>/dev/null
cannam@95 20465 fi
cannam@95 20466 if (echo >conf$$.file) 2>/dev/null; then
cannam@95 20467 if ln -s conf$$.file conf$$ 2>/dev/null; then
cannam@95 20468 as_ln_s='ln -s'
cannam@95 20469 # ... but there are two gotchas:
cannam@95 20470 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
cannam@95 20471 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cannam@95 20472 # In both cases, we have to default to `cp -pR'.
cannam@95 20473 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cannam@95 20474 as_ln_s='cp -pR'
cannam@95 20475 elif ln conf$$.file conf$$ 2>/dev/null; then
cannam@95 20476 as_ln_s=ln
cannam@95 20477 else
cannam@95 20478 as_ln_s='cp -pR'
cannam@95 20479 fi
cannam@95 20480 else
cannam@95 20481 as_ln_s='cp -pR'
cannam@95 20482 fi
cannam@95 20483 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
cannam@95 20484 rmdir conf$$.dir 2>/dev/null
cannam@95 20485
cannam@95 20486
cannam@95 20487 # as_fn_mkdir_p
cannam@95 20488 # -------------
cannam@95 20489 # Create "$as_dir" as a directory, including parents if necessary.
cannam@95 20490 as_fn_mkdir_p ()
cannam@95 20491 {
cannam@95 20492
cannam@95 20493 case $as_dir in #(
cannam@95 20494 -*) as_dir=./$as_dir;;
cannam@95 20495 esac
cannam@95 20496 test -d "$as_dir" || eval $as_mkdir_p || {
cannam@95 20497 as_dirs=
cannam@95 20498 while :; do
cannam@95 20499 case $as_dir in #(
cannam@95 20500 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
cannam@95 20501 *) as_qdir=$as_dir;;
cannam@95 20502 esac
cannam@95 20503 as_dirs="'$as_qdir' $as_dirs"
cannam@95 20504 as_dir=`$as_dirname -- "$as_dir" ||
cannam@95 20505 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@95 20506 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@95 20507 X"$as_dir" : 'X\(//\)$' \| \
cannam@95 20508 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
cannam@95 20509 $as_echo X"$as_dir" |
cannam@95 20510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@95 20511 s//\1/
cannam@95 20512 q
cannam@95 20513 }
cannam@95 20514 /^X\(\/\/\)[^/].*/{
cannam@95 20515 s//\1/
cannam@95 20516 q
cannam@95 20517 }
cannam@95 20518 /^X\(\/\/\)$/{
cannam@95 20519 s//\1/
cannam@95 20520 q
cannam@95 20521 }
cannam@95 20522 /^X\(\/\).*/{
cannam@95 20523 s//\1/
cannam@95 20524 q
cannam@95 20525 }
cannam@95 20526 s/.*/./; q'`
cannam@95 20527 test -d "$as_dir" && break
cannam@95 20528 done
cannam@95 20529 test -z "$as_dirs" || eval "mkdir $as_dirs"
cannam@95 20530 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cannam@95 20531
cannam@95 20532
cannam@95 20533 } # as_fn_mkdir_p
cannam@95 20534 if mkdir -p . 2>/dev/null; then
cannam@95 20535 as_mkdir_p='mkdir -p "$as_dir"'
cannam@95 20536 else
cannam@95 20537 test -d ./-p && rmdir ./-p
cannam@95 20538 as_mkdir_p=false
cannam@95 20539 fi
cannam@95 20540
cannam@95 20541
cannam@95 20542 # as_fn_executable_p FILE
cannam@95 20543 # -----------------------
cannam@95 20544 # Test if FILE is an executable regular file.
cannam@95 20545 as_fn_executable_p ()
cannam@95 20546 {
cannam@95 20547 test -f "$1" && test -x "$1"
cannam@95 20548 } # as_fn_executable_p
cannam@95 20549 as_test_x='test -x'
cannam@95 20550 as_executable_p=as_fn_executable_p
cannam@95 20551
cannam@95 20552 # Sed expression to map a string onto a valid CPP name.
cannam@95 20553 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
cannam@95 20554
cannam@95 20555 # Sed expression to map a string onto a valid variable name.
cannam@95 20556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
cannam@95 20557
cannam@95 20558
cannam@95 20559 exec 6>&1
cannam@95 20560 ## ----------------------------------- ##
cannam@95 20561 ## Main body of $CONFIG_STATUS script. ##
cannam@95 20562 ## ----------------------------------- ##
cannam@95 20563 _ASEOF
cannam@95 20564 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cannam@95 20565
cannam@95 20566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@95 20567 # Save the log message, to keep $0 and so on meaningful, and to
cannam@95 20568 # report actual input values of CONFIG_FILES etc. instead of their
cannam@95 20569 # values after options handling.
cannam@95 20570 ac_log="
cannam@95 20571 This file was extended by fftw $as_me 3.3.3, which was
cannam@95 20572 generated by GNU Autoconf 2.69. Invocation command line was
cannam@95 20573
cannam@95 20574 CONFIG_FILES = $CONFIG_FILES
cannam@95 20575 CONFIG_HEADERS = $CONFIG_HEADERS
cannam@95 20576 CONFIG_LINKS = $CONFIG_LINKS
cannam@95 20577 CONFIG_COMMANDS = $CONFIG_COMMANDS
cannam@95 20578 $ $0 $@
cannam@95 20579
cannam@95 20580 on `(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@95 20581 "
cannam@95 20582
cannam@95 20583 _ACEOF
cannam@95 20584
cannam@95 20585 case $ac_config_files in *"
cannam@95 20586 "*) set x $ac_config_files; shift; ac_config_files=$*;;
cannam@95 20587 esac
cannam@95 20588
cannam@95 20589 case $ac_config_headers in *"
cannam@95 20590 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
cannam@95 20591 esac
cannam@95 20592
cannam@95 20593
cannam@95 20594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@95 20595 # Files that config.status was made for.
cannam@95 20596 config_files="$ac_config_files"
cannam@95 20597 config_headers="$ac_config_headers"
cannam@95 20598 config_commands="$ac_config_commands"
cannam@95 20599
cannam@95 20600 _ACEOF
cannam@95 20601
cannam@95 20602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@95 20603 ac_cs_usage="\
cannam@95 20604 \`$as_me' instantiates files and other configuration actions
cannam@95 20605 from templates according to the current configuration. Unless the files
cannam@95 20606 and actions are specified as TAGs, all are instantiated by default.
cannam@95 20607
cannam@95 20608 Usage: $0 [OPTION]... [TAG]...
cannam@95 20609
cannam@95 20610 -h, --help print this help, then exit
cannam@95 20611 -V, --version print version number and configuration settings, then exit
cannam@95 20612 --config print configuration, then exit
cannam@95 20613 -q, --quiet, --silent
cannam@95 20614 do not print progress messages
cannam@95 20615 -d, --debug don't remove temporary files
cannam@95 20616 --recheck update $as_me by reconfiguring in the same conditions
cannam@95 20617 --file=FILE[:TEMPLATE]
cannam@95 20618 instantiate the configuration file FILE
cannam@95 20619 --header=FILE[:TEMPLATE]
cannam@95 20620 instantiate the configuration header FILE
cannam@95 20621
cannam@95 20622 Configuration files:
cannam@95 20623 $config_files
cannam@95 20624
cannam@95 20625 Configuration headers:
cannam@95 20626 $config_headers
cannam@95 20627
cannam@95 20628 Configuration commands:
cannam@95 20629 $config_commands
cannam@95 20630
cannam@95 20631 Report bugs to <fftw@fftw.org>."
cannam@95 20632
cannam@95 20633 _ACEOF
cannam@95 20634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@95 20635 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cannam@95 20636 ac_cs_version="\\
cannam@95 20637 fftw config.status 3.3.3
cannam@95 20638 configured by $0, generated by GNU Autoconf 2.69,
cannam@95 20639 with options \\"\$ac_cs_config\\"
cannam@95 20640
cannam@95 20641 Copyright (C) 2012 Free Software Foundation, Inc.
cannam@95 20642 This config.status script is free software; the Free Software Foundation
cannam@95 20643 gives unlimited permission to copy, distribute and modify it."
cannam@95 20644
cannam@95 20645 ac_pwd='$ac_pwd'
cannam@95 20646 srcdir='$srcdir'
cannam@95 20647 INSTALL='$INSTALL'
cannam@95 20648 MKDIR_P='$MKDIR_P'
cannam@95 20649 AWK='$AWK'
cannam@95 20650 test -n "\$AWK" || AWK=awk
cannam@95 20651 _ACEOF
cannam@95 20652
cannam@95 20653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@95 20654 # The default lists apply if the user does not specify any file.
cannam@95 20655 ac_need_defaults=:
cannam@95 20656 while test $# != 0
cannam@95 20657 do
cannam@95 20658 case $1 in
cannam@95 20659 --*=?*)
cannam@95 20660 ac_option=`expr "X$1" : 'X\([^=]*\)='`
cannam@95 20661 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
cannam@95 20662 ac_shift=:
cannam@95 20663 ;;
cannam@95 20664 --*=)
cannam@95 20665 ac_option=`expr "X$1" : 'X\([^=]*\)='`
cannam@95 20666 ac_optarg=
cannam@95 20667 ac_shift=:
cannam@95 20668 ;;
cannam@95 20669 *)
cannam@95 20670 ac_option=$1
cannam@95 20671 ac_optarg=$2
cannam@95 20672 ac_shift=shift
cannam@95 20673 ;;
cannam@95 20674 esac
cannam@95 20675
cannam@95 20676 case $ac_option in
cannam@95 20677 # Handling of the options.
cannam@95 20678 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
cannam@95 20679 ac_cs_recheck=: ;;
cannam@95 20680 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
cannam@95 20681 $as_echo "$ac_cs_version"; exit ;;
cannam@95 20682 --config | --confi | --conf | --con | --co | --c )
cannam@95 20683 $as_echo "$ac_cs_config"; exit ;;
cannam@95 20684 --debug | --debu | --deb | --de | --d | -d )
cannam@95 20685 debug=: ;;
cannam@95 20686 --file | --fil | --fi | --f )
cannam@95 20687 $ac_shift
cannam@95 20688 case $ac_optarg in
cannam@95 20689 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@95 20690 '') as_fn_error $? "missing file argument" ;;
cannam@95 20691 esac
cannam@95 20692 as_fn_append CONFIG_FILES " '$ac_optarg'"
cannam@95 20693 ac_need_defaults=false;;
cannam@95 20694 --header | --heade | --head | --hea )
cannam@95 20695 $ac_shift
cannam@95 20696 case $ac_optarg in
cannam@95 20697 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@95 20698 esac
cannam@95 20699 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cannam@95 20700 ac_need_defaults=false;;
cannam@95 20701 --he | --h)
cannam@95 20702 # Conflict between --help and --header
cannam@95 20703 as_fn_error $? "ambiguous option: \`$1'
cannam@95 20704 Try \`$0 --help' for more information.";;
cannam@95 20705 --help | --hel | -h )
cannam@95 20706 $as_echo "$ac_cs_usage"; exit ;;
cannam@95 20707 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@95 20708 | -silent | --silent | --silen | --sile | --sil | --si | --s)
cannam@95 20709 ac_cs_silent=: ;;
cannam@95 20710
cannam@95 20711 # This is an error.
cannam@95 20712 -*) as_fn_error $? "unrecognized option: \`$1'
cannam@95 20713 Try \`$0 --help' for more information." ;;
cannam@95 20714
cannam@95 20715 *) as_fn_append ac_config_targets " $1"
cannam@95 20716 ac_need_defaults=false ;;
cannam@95 20717
cannam@95 20718 esac
cannam@95 20719 shift
cannam@95 20720 done
cannam@95 20721
cannam@95 20722 ac_configure_extra_args=
cannam@95 20723
cannam@95 20724 if $ac_cs_silent; then
cannam@95 20725 exec 6>/dev/null
cannam@95 20726 ac_configure_extra_args="$ac_configure_extra_args --silent"
cannam@95 20727 fi
cannam@95 20728
cannam@95 20729 _ACEOF
cannam@95 20730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@95 20731 if \$ac_cs_recheck; then
cannam@95 20732 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cannam@95 20733 shift
cannam@95 20734 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
cannam@95 20735 CONFIG_SHELL='$SHELL'
cannam@95 20736 export CONFIG_SHELL
cannam@95 20737 exec "\$@"
cannam@95 20738 fi
cannam@95 20739
cannam@95 20740 _ACEOF
cannam@95 20741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@95 20742 exec 5>>config.log
cannam@95 20743 {
cannam@95 20744 echo
cannam@95 20745 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
cannam@95 20746 ## Running $as_me. ##
cannam@95 20747 _ASBOX
cannam@95 20748 $as_echo "$ac_log"
cannam@95 20749 } >&5
cannam@95 20750
cannam@95 20751 _ACEOF
cannam@95 20752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@95 20753 #
cannam@95 20754 # INIT-COMMANDS
cannam@95 20755 #
cannam@95 20756 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
cannam@95 20757
cannam@95 20758
cannam@95 20759 # The HP-UX ksh and POSIX shell print the target directory to stdout
cannam@95 20760 # if CDPATH is set.
cannam@95 20761 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@95 20762
cannam@95 20763 sed_quote_subst='$sed_quote_subst'
cannam@95 20764 double_quote_subst='$double_quote_subst'
cannam@95 20765 delay_variable_subst='$delay_variable_subst'
cannam@95 20766 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
cannam@95 20767 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
cannam@95 20768 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
cannam@95 20769 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
cannam@95 20770 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
cannam@95 20771 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
cannam@95 20772 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
cannam@95 20773 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
cannam@95 20774 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cannam@95 20775 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
cannam@95 20776 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
cannam@95 20777 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cannam@95 20778 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
cannam@95 20779 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
cannam@95 20780 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
cannam@95 20781 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
cannam@95 20782 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
cannam@95 20783 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
cannam@95 20784 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
cannam@95 20785 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
cannam@95 20786 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
cannam@95 20787 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
cannam@95 20788 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
cannam@95 20789 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
cannam@95 20790 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
cannam@95 20791 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
cannam@95 20792 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
cannam@95 20793 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
cannam@95 20794 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
cannam@95 20795 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
cannam@95 20796 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
cannam@95 20797 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cannam@95 20798 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
cannam@95 20799 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cannam@95 20800 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
cannam@95 20801 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
cannam@95 20802 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
cannam@95 20803 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cannam@95 20804 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
cannam@95 20805 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
cannam@95 20806 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cannam@95 20807 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
cannam@95 20808 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cannam@95 20809 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@95 20810 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
cannam@95 20811 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
cannam@95 20812 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@95 20813 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@95 20814 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
cannam@95 20815 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
cannam@95 20816 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
cannam@95 20817 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
cannam@95 20818 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
cannam@95 20819 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
cannam@95 20820 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
cannam@95 20821 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
cannam@95 20822 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
cannam@95 20823 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
cannam@95 20824 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@95 20825 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cannam@95 20826 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
cannam@95 20827 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
cannam@95 20828 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cannam@95 20829 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cannam@95 20830 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cannam@95 20831 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
cannam@95 20832 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
cannam@95 20833 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cannam@95 20834 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cannam@95 20835 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
cannam@95 20836 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
cannam@95 20837 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
cannam@95 20838 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
cannam@95 20839 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
cannam@95 20840 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
cannam@95 20841 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
cannam@95 20842 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
cannam@95 20843 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
cannam@95 20844 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
cannam@95 20845 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@95 20846 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@95 20847 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
cannam@95 20848 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
cannam@95 20849 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
cannam@95 20850 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
cannam@95 20851 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
cannam@95 20852 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
cannam@95 20853 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
cannam@95 20854 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
cannam@95 20855 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
cannam@95 20856 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
cannam@95 20857 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@95 20858 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
cannam@95 20859 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
cannam@95 20860 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
cannam@95 20861 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
cannam@95 20862 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
cannam@95 20863 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
cannam@95 20864 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
cannam@95 20865 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cannam@95 20866 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
cannam@95 20867 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
cannam@95 20868 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
cannam@95 20869 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
cannam@95 20870 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cannam@95 20871 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cannam@95 20872 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@95 20873 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
cannam@95 20874 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
cannam@95 20875 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
cannam@95 20876 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
cannam@95 20877 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
cannam@95 20878 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
cannam@95 20879 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
cannam@95 20880 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
cannam@95 20881 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
cannam@95 20882 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
cannam@95 20883 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
cannam@95 20884 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@95 20885 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@95 20886 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
cannam@95 20887 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
cannam@95 20888 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
cannam@95 20889 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
cannam@95 20890 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
cannam@95 20891 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
cannam@95 20892 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
cannam@95 20893 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
cannam@95 20894 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
cannam@95 20895 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
cannam@95 20896 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
cannam@95 20897 LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20898 reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20899 reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20900 old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20901 compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20902 GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20903 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20904 lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20905 lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20906 lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20907 lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20908 archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20909 enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20910 export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20911 whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20912 compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20913 old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20914 old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20915 archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20916 archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20917 module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20918 module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20919 with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20920 allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20921 no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20922 hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20923 hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20924 hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20925 hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20926 hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20927 hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20928 hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20929 inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20930 link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20931 always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20932 export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20933 exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20934 include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20935 prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20936 postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20937 file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20938 hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
cannam@95 20939
cannam@95 20940 LTCC='$LTCC'
cannam@95 20941 LTCFLAGS='$LTCFLAGS'
cannam@95 20942 compiler='$compiler_DEFAULT'
cannam@95 20943
cannam@95 20944 # A function that is used when there is no print builtin or printf.
cannam@95 20945 func_fallback_echo ()
cannam@95 20946 {
cannam@95 20947 eval 'cat <<_LTECHO_EOF
cannam@95 20948 \$1
cannam@95 20949 _LTECHO_EOF'
cannam@95 20950 }
cannam@95 20951
cannam@95 20952 # Quote evaled strings.
cannam@95 20953 for var in AS \
cannam@95 20954 DLLTOOL \
cannam@95 20955 OBJDUMP \
cannam@95 20956 SHELL \
cannam@95 20957 ECHO \
cannam@95 20958 PATH_SEPARATOR \
cannam@95 20959 SED \
cannam@95 20960 GREP \
cannam@95 20961 EGREP \
cannam@95 20962 FGREP \
cannam@95 20963 LD \
cannam@95 20964 NM \
cannam@95 20965 LN_S \
cannam@95 20966 lt_SP2NL \
cannam@95 20967 lt_NL2SP \
cannam@95 20968 reload_flag \
cannam@95 20969 deplibs_check_method \
cannam@95 20970 file_magic_cmd \
cannam@95 20971 file_magic_glob \
cannam@95 20972 want_nocaseglob \
cannam@95 20973 sharedlib_from_linklib_cmd \
cannam@95 20974 AR \
cannam@95 20975 AR_FLAGS \
cannam@95 20976 archiver_list_spec \
cannam@95 20977 STRIP \
cannam@95 20978 RANLIB \
cannam@95 20979 CC \
cannam@95 20980 CFLAGS \
cannam@95 20981 compiler \
cannam@95 20982 lt_cv_sys_global_symbol_pipe \
cannam@95 20983 lt_cv_sys_global_symbol_to_cdecl \
cannam@95 20984 lt_cv_sys_global_symbol_to_c_name_address \
cannam@95 20985 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cannam@95 20986 nm_file_list_spec \
cannam@95 20987 lt_prog_compiler_no_builtin_flag \
cannam@95 20988 lt_prog_compiler_pic \
cannam@95 20989 lt_prog_compiler_wl \
cannam@95 20990 lt_prog_compiler_static \
cannam@95 20991 lt_cv_prog_compiler_c_o \
cannam@95 20992 need_locks \
cannam@95 20993 MANIFEST_TOOL \
cannam@95 20994 DSYMUTIL \
cannam@95 20995 NMEDIT \
cannam@95 20996 LIPO \
cannam@95 20997 OTOOL \
cannam@95 20998 OTOOL64 \
cannam@95 20999 shrext_cmds \
cannam@95 21000 export_dynamic_flag_spec \
cannam@95 21001 whole_archive_flag_spec \
cannam@95 21002 compiler_needs_object \
cannam@95 21003 with_gnu_ld \
cannam@95 21004 allow_undefined_flag \
cannam@95 21005 no_undefined_flag \
cannam@95 21006 hardcode_libdir_flag_spec \
cannam@95 21007 hardcode_libdir_separator \
cannam@95 21008 exclude_expsyms \
cannam@95 21009 include_expsyms \
cannam@95 21010 file_list_spec \
cannam@95 21011 variables_saved_for_relink \
cannam@95 21012 libname_spec \
cannam@95 21013 library_names_spec \
cannam@95 21014 soname_spec \
cannam@95 21015 install_override_mode \
cannam@95 21016 finish_eval \
cannam@95 21017 old_striplib \
cannam@95 21018 striplib \
cannam@95 21019 LD_F77 \
cannam@95 21020 reload_flag_F77 \
cannam@95 21021 compiler_F77 \
cannam@95 21022 lt_prog_compiler_no_builtin_flag_F77 \
cannam@95 21023 lt_prog_compiler_pic_F77 \
cannam@95 21024 lt_prog_compiler_wl_F77 \
cannam@95 21025 lt_prog_compiler_static_F77 \
cannam@95 21026 lt_cv_prog_compiler_c_o_F77 \
cannam@95 21027 export_dynamic_flag_spec_F77 \
cannam@95 21028 whole_archive_flag_spec_F77 \
cannam@95 21029 compiler_needs_object_F77 \
cannam@95 21030 with_gnu_ld_F77 \
cannam@95 21031 allow_undefined_flag_F77 \
cannam@95 21032 no_undefined_flag_F77 \
cannam@95 21033 hardcode_libdir_flag_spec_F77 \
cannam@95 21034 hardcode_libdir_separator_F77 \
cannam@95 21035 exclude_expsyms_F77 \
cannam@95 21036 include_expsyms_F77 \
cannam@95 21037 file_list_spec_F77; do
cannam@95 21038 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cannam@95 21039 *[\\\\\\\`\\"\\\$]*)
cannam@95 21040 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cannam@95 21041 ;;
cannam@95 21042 *)
cannam@95 21043 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
cannam@95 21044 ;;
cannam@95 21045 esac
cannam@95 21046 done
cannam@95 21047
cannam@95 21048 # Double-quote double-evaled strings.
cannam@95 21049 for var in reload_cmds \
cannam@95 21050 old_postinstall_cmds \
cannam@95 21051 old_postuninstall_cmds \
cannam@95 21052 old_archive_cmds \
cannam@95 21053 extract_expsyms_cmds \
cannam@95 21054 old_archive_from_new_cmds \
cannam@95 21055 old_archive_from_expsyms_cmds \
cannam@95 21056 archive_cmds \
cannam@95 21057 archive_expsym_cmds \
cannam@95 21058 module_cmds \
cannam@95 21059 module_expsym_cmds \
cannam@95 21060 export_symbols_cmds \
cannam@95 21061 prelink_cmds \
cannam@95 21062 postlink_cmds \
cannam@95 21063 postinstall_cmds \
cannam@95 21064 postuninstall_cmds \
cannam@95 21065 finish_cmds \
cannam@95 21066 sys_lib_search_path_spec \
cannam@95 21067 sys_lib_dlsearch_path_spec \
cannam@95 21068 reload_cmds_F77 \
cannam@95 21069 old_archive_cmds_F77 \
cannam@95 21070 old_archive_from_new_cmds_F77 \
cannam@95 21071 old_archive_from_expsyms_cmds_F77 \
cannam@95 21072 archive_cmds_F77 \
cannam@95 21073 archive_expsym_cmds_F77 \
cannam@95 21074 module_cmds_F77 \
cannam@95 21075 module_expsym_cmds_F77 \
cannam@95 21076 export_symbols_cmds_F77 \
cannam@95 21077 prelink_cmds_F77 \
cannam@95 21078 postlink_cmds_F77; do
cannam@95 21079 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cannam@95 21080 *[\\\\\\\`\\"\\\$]*)
cannam@95 21081 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cannam@95 21082 ;;
cannam@95 21083 *)
cannam@95 21084 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
cannam@95 21085 ;;
cannam@95 21086 esac
cannam@95 21087 done
cannam@95 21088
cannam@95 21089 ac_aux_dir='$ac_aux_dir'
cannam@95 21090 xsi_shell='$xsi_shell'
cannam@95 21091 lt_shell_append='$lt_shell_append'
cannam@95 21092
cannam@95 21093 # See if we are running on zsh, and set the options which allow our
cannam@95 21094 # commands through without removal of \ escapes INIT.
cannam@95 21095 if test -n "\${ZSH_VERSION+set}" ; then
cannam@95 21096 setopt NO_GLOB_SUBST
cannam@95 21097 fi
cannam@95 21098
cannam@95 21099
cannam@95 21100 PACKAGE='$PACKAGE'
cannam@95 21101 VERSION='$VERSION'
cannam@95 21102 TIMESTAMP='$TIMESTAMP'
cannam@95 21103 RM='$RM'
cannam@95 21104 ofile='$ofile'
cannam@95 21105
cannam@95 21106
cannam@95 21107
cannam@95 21108
cannam@95 21109
cannam@95 21110
cannam@95 21111 _ACEOF
cannam@95 21112
cannam@95 21113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@95 21114
cannam@95 21115 # Handling of arguments.
cannam@95 21116 for ac_config_target in $ac_config_targets
cannam@95 21117 do
cannam@95 21118 case $ac_config_target in
cannam@95 21119 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
cannam@95 21120 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
cannam@95 21121 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cannam@95 21122 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
cannam@95 21123 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
cannam@95 21124 "genfft/Makefile") CONFIG_FILES="$CONFIG_FILES genfft/Makefile" ;;
cannam@95 21125 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
cannam@95 21126 "simd-support/Makefile") CONFIG_FILES="$CONFIG_FILES simd-support/Makefile" ;;
cannam@95 21127 "dft/Makefile") CONFIG_FILES="$CONFIG_FILES dft/Makefile" ;;
cannam@95 21128 "dft/scalar/Makefile") CONFIG_FILES="$CONFIG_FILES dft/scalar/Makefile" ;;
cannam@95 21129 "dft/scalar/codelets/Makefile") CONFIG_FILES="$CONFIG_FILES dft/scalar/codelets/Makefile" ;;
cannam@95 21130 "dft/simd/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/Makefile" ;;
cannam@95 21131 "dft/simd/common/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/common/Makefile" ;;
cannam@95 21132 "dft/simd/sse2/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/sse2/Makefile" ;;
cannam@95 21133 "dft/simd/avx/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx/Makefile" ;;
cannam@95 21134 "dft/simd/altivec/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/altivec/Makefile" ;;
cannam@95 21135 "dft/simd/neon/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/neon/Makefile" ;;
cannam@95 21136 "rdft/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/Makefile" ;;
cannam@95 21137 "rdft/scalar/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/Makefile" ;;
cannam@95 21138 "rdft/scalar/r2cf/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2cf/Makefile" ;;
cannam@95 21139 "rdft/scalar/r2cb/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2cb/Makefile" ;;
cannam@95 21140 "rdft/scalar/r2r/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2r/Makefile" ;;
cannam@95 21141 "rdft/simd/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/Makefile" ;;
cannam@95 21142 "rdft/simd/common/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/common/Makefile" ;;
cannam@95 21143 "rdft/simd/sse2/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/sse2/Makefile" ;;
cannam@95 21144 "rdft/simd/avx/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx/Makefile" ;;
cannam@95 21145 "rdft/simd/altivec/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/altivec/Makefile" ;;
cannam@95 21146 "rdft/simd/neon/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/neon/Makefile" ;;
cannam@95 21147 "reodft/Makefile") CONFIG_FILES="$CONFIG_FILES reodft/Makefile" ;;
cannam@95 21148 "threads/Makefile") CONFIG_FILES="$CONFIG_FILES threads/Makefile" ;;
cannam@95 21149 "api/Makefile") CONFIG_FILES="$CONFIG_FILES api/Makefile" ;;
cannam@95 21150 "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
cannam@95 21151 "libbench2/Makefile") CONFIG_FILES="$CONFIG_FILES libbench2/Makefile" ;;
cannam@95 21152 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
cannam@95 21153 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
cannam@95 21154 "doc/FAQ/Makefile") CONFIG_FILES="$CONFIG_FILES doc/FAQ/Makefile" ;;
cannam@95 21155 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
cannam@95 21156 "tools/fftw_wisdom.1") CONFIG_FILES="$CONFIG_FILES tools/fftw_wisdom.1" ;;
cannam@95 21157 "tools/fftw-wisdom-to-conf") CONFIG_FILES="$CONFIG_FILES tools/fftw-wisdom-to-conf" ;;
cannam@95 21158 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
cannam@95 21159 "fftw.pc") CONFIG_FILES="$CONFIG_FILES fftw.pc" ;;
cannam@95 21160
cannam@95 21161 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cannam@95 21162 esac
cannam@95 21163 done
cannam@95 21164
cannam@95 21165
cannam@95 21166 # If the user did not use the arguments to specify the items to instantiate,
cannam@95 21167 # then the envvar interface is used. Set only those that are not.
cannam@95 21168 # We use the long form for the default assignment because of an extremely
cannam@95 21169 # bizarre bug on SunOS 4.1.3.
cannam@95 21170 if $ac_need_defaults; then
cannam@95 21171 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
cannam@95 21172 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
cannam@95 21173 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
cannam@95 21174 fi
cannam@95 21175
cannam@95 21176 # Have a temporary directory for convenience. Make it in the build tree
cannam@95 21177 # simply because there is no reason against having it here, and in addition,
cannam@95 21178 # creating and moving files from /tmp can sometimes cause problems.
cannam@95 21179 # Hook for its removal unless debugging.
cannam@95 21180 # Note that there is a small window in which the directory will not be cleaned:
cannam@95 21181 # after its creation but before its name has been assigned to `$tmp'.
cannam@95 21182 $debug ||
cannam@95 21183 {
cannam@95 21184 tmp= ac_tmp=
cannam@95 21185 trap 'exit_status=$?
cannam@95 21186 : "${ac_tmp:=$tmp}"
cannam@95 21187 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cannam@95 21188 ' 0
cannam@95 21189 trap 'as_fn_exit 1' 1 2 13 15
cannam@95 21190 }
cannam@95 21191 # Create a (secure) tmp directory for tmp files.
cannam@95 21192
cannam@95 21193 {
cannam@95 21194 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cannam@95 21195 test -d "$tmp"
cannam@95 21196 } ||
cannam@95 21197 {
cannam@95 21198 tmp=./conf$$-$RANDOM
cannam@95 21199 (umask 077 && mkdir "$tmp")
cannam@95 21200 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cannam@95 21201 ac_tmp=$tmp
cannam@95 21202
cannam@95 21203 # Set up the scripts for CONFIG_FILES section.
cannam@95 21204 # No need to generate them if there are no CONFIG_FILES.
cannam@95 21205 # This happens for instance with `./config.status config.h'.
cannam@95 21206 if test -n "$CONFIG_FILES"; then
cannam@95 21207
cannam@95 21208
cannam@95 21209 ac_cr=`echo X | tr X '\015'`
cannam@95 21210 # On cygwin, bash can eat \r inside `` if the user requested igncr.
cannam@95 21211 # But we know of no other shell where ac_cr would be empty at this
cannam@95 21212 # point, so we can use a bashism as a fallback.
cannam@95 21213 if test "x$ac_cr" = x; then
cannam@95 21214 eval ac_cr=\$\'\\r\'
cannam@95 21215 fi
cannam@95 21216 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
cannam@95 21217 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cannam@95 21218 ac_cs_awk_cr='\\r'
cannam@95 21219 else
cannam@95 21220 ac_cs_awk_cr=$ac_cr
cannam@95 21221 fi
cannam@95 21222
cannam@95 21223 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cannam@95 21224 _ACEOF
cannam@95 21225
cannam@95 21226
cannam@95 21227 {
cannam@95 21228 echo "cat >conf$$subs.awk <<_ACEOF" &&
cannam@95 21229 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
cannam@95 21230 echo "_ACEOF"
cannam@95 21231 } >conf$$subs.sh ||
cannam@95 21232 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@95 21233 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cannam@95 21234 ac_delim='%!_!# '
cannam@95 21235 for ac_last_try in false false false false false :; do
cannam@95 21236 . ./conf$$subs.sh ||
cannam@95 21237 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@95 21238
cannam@95 21239 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
cannam@95 21240 if test $ac_delim_n = $ac_delim_num; then
cannam@95 21241 break
cannam@95 21242 elif $ac_last_try; then
cannam@95 21243 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@95 21244 else
cannam@95 21245 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
cannam@95 21246 fi
cannam@95 21247 done
cannam@95 21248 rm -f conf$$subs.sh
cannam@95 21249
cannam@95 21250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@95 21251 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cannam@95 21252 _ACEOF
cannam@95 21253 sed -n '
cannam@95 21254 h
cannam@95 21255 s/^/S["/; s/!.*/"]=/
cannam@95 21256 p
cannam@95 21257 g
cannam@95 21258 s/^[^!]*!//
cannam@95 21259 :repl
cannam@95 21260 t repl
cannam@95 21261 s/'"$ac_delim"'$//
cannam@95 21262 t delim
cannam@95 21263 :nl
cannam@95 21264 h
cannam@95 21265 s/\(.\{148\}\)..*/\1/
cannam@95 21266 t more1
cannam@95 21267 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
cannam@95 21268 p
cannam@95 21269 n
cannam@95 21270 b repl
cannam@95 21271 :more1
cannam@95 21272 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
cannam@95 21273 p
cannam@95 21274 g
cannam@95 21275 s/.\{148\}//
cannam@95 21276 t nl
cannam@95 21277 :delim
cannam@95 21278 h
cannam@95 21279 s/\(.\{148\}\)..*/\1/
cannam@95 21280 t more2
cannam@95 21281 s/["\\]/\\&/g; s/^/"/; s/$/"/
cannam@95 21282 p
cannam@95 21283 b
cannam@95 21284 :more2
cannam@95 21285 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
cannam@95 21286 p
cannam@95 21287 g
cannam@95 21288 s/.\{148\}//
cannam@95 21289 t delim
cannam@95 21290 ' <conf$$subs.awk | sed '
cannam@95 21291 /^[^""]/{
cannam@95 21292 N
cannam@95 21293 s/\n//
cannam@95 21294 }
cannam@95 21295 ' >>$CONFIG_STATUS || ac_write_fail=1
cannam@95 21296 rm -f conf$$subs.awk
cannam@95 21297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@95 21298 _ACAWK
cannam@95 21299 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cannam@95 21300 for (key in S) S_is_set[key] = 1
cannam@95 21301 FS = ""
cannam@95 21302
cannam@95 21303 }
cannam@95 21304 {
cannam@95 21305 line = $ 0
cannam@95 21306 nfields = split(line, field, "@")
cannam@95 21307 substed = 0
cannam@95 21308 len = length(field[1])
cannam@95 21309 for (i = 2; i < nfields; i++) {
cannam@95 21310 key = field[i]
cannam@95 21311 keylen = length(key)
cannam@95 21312 if (S_is_set[key]) {
cannam@95 21313 value = S[key]
cannam@95 21314 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
cannam@95 21315 len += length(value) + length(field[++i])
cannam@95 21316 substed = 1
cannam@95 21317 } else
cannam@95 21318 len += 1 + keylen
cannam@95 21319 }
cannam@95 21320
cannam@95 21321 print line
cannam@95 21322 }
cannam@95 21323
cannam@95 21324 _ACAWK
cannam@95 21325 _ACEOF
cannam@95 21326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@95 21327 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
cannam@95 21328 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
cannam@95 21329 else
cannam@95 21330 cat
cannam@95 21331 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cannam@95 21332 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cannam@95 21333 _ACEOF
cannam@95 21334
cannam@95 21335 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
cannam@95 21336 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cannam@95 21337 # trailing colons and then remove the whole line if VPATH becomes empty
cannam@95 21338 # (actually we leave an empty line to preserve line numbers).
cannam@95 21339 if test "x$srcdir" = x.; then
cannam@95 21340 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
cannam@95 21341 h
cannam@95 21342 s///
cannam@95 21343 s/^/:/
cannam@95 21344 s/[ ]*$/:/
cannam@95 21345 s/:\$(srcdir):/:/g
cannam@95 21346 s/:\${srcdir}:/:/g
cannam@95 21347 s/:@srcdir@:/:/g
cannam@95 21348 s/^:*//
cannam@95 21349 s/:*$//
cannam@95 21350 x
cannam@95 21351 s/\(=[ ]*\).*/\1/
cannam@95 21352 G
cannam@95 21353 s/\n//
cannam@95 21354 s/^[^=]*=[ ]*$//
cannam@95 21355 }'
cannam@95 21356 fi
cannam@95 21357
cannam@95 21358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@95 21359 fi # test -n "$CONFIG_FILES"
cannam@95 21360
cannam@95 21361 # Set up the scripts for CONFIG_HEADERS section.
cannam@95 21362 # No need to generate them if there are no CONFIG_HEADERS.
cannam@95 21363 # This happens for instance with `./config.status Makefile'.
cannam@95 21364 if test -n "$CONFIG_HEADERS"; then
cannam@95 21365 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cannam@95 21366 BEGIN {
cannam@95 21367 _ACEOF
cannam@95 21368
cannam@95 21369 # Transform confdefs.h into an awk script `defines.awk', embedded as
cannam@95 21370 # here-document in config.status, that substitutes the proper values into
cannam@95 21371 # config.h.in to produce config.h.
cannam@95 21372
cannam@95 21373 # Create a delimiter string that does not exist in confdefs.h, to ease
cannam@95 21374 # handling of long lines.
cannam@95 21375 ac_delim='%!_!# '
cannam@95 21376 for ac_last_try in false false :; do
cannam@95 21377 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
cannam@95 21378 if test -z "$ac_tt"; then
cannam@95 21379 break
cannam@95 21380 elif $ac_last_try; then
cannam@95 21381 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cannam@95 21382 else
cannam@95 21383 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
cannam@95 21384 fi
cannam@95 21385 done
cannam@95 21386
cannam@95 21387 # For the awk script, D is an array of macro values keyed by name,
cannam@95 21388 # likewise P contains macro parameters if any. Preserve backslash
cannam@95 21389 # newline sequences.
cannam@95 21390
cannam@95 21391 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
cannam@95 21392 sed -n '
cannam@95 21393 s/.\{148\}/&'"$ac_delim"'/g
cannam@95 21394 t rset
cannam@95 21395 :rset
cannam@95 21396 s/^[ ]*#[ ]*define[ ][ ]*/ /
cannam@95 21397 t def
cannam@95 21398 d
cannam@95 21399 :def
cannam@95 21400 s/\\$//
cannam@95 21401 t bsnl
cannam@95 21402 s/["\\]/\\&/g
cannam@95 21403 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
cannam@95 21404 D["\1"]=" \3"/p
cannam@95 21405 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
cannam@95 21406 d
cannam@95 21407 :bsnl
cannam@95 21408 s/["\\]/\\&/g
cannam@95 21409 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
cannam@95 21410 D["\1"]=" \3\\\\\\n"\\/p
cannam@95 21411 t cont
cannam@95 21412 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
cannam@95 21413 t cont
cannam@95 21414 d
cannam@95 21415 :cont
cannam@95 21416 n
cannam@95 21417 s/.\{148\}/&'"$ac_delim"'/g
cannam@95 21418 t clear
cannam@95 21419 :clear
cannam@95 21420 s/\\$//
cannam@95 21421 t bsnlc
cannam@95 21422 s/["\\]/\\&/g; s/^/"/; s/$/"/p
cannam@95 21423 d
cannam@95 21424 :bsnlc
cannam@95 21425 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
cannam@95 21426 b cont
cannam@95 21427 ' <confdefs.h | sed '
cannam@95 21428 s/'"$ac_delim"'/"\\\
cannam@95 21429 "/g' >>$CONFIG_STATUS || ac_write_fail=1
cannam@95 21430
cannam@95 21431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@95 21432 for (key in D) D_is_set[key] = 1
cannam@95 21433 FS = ""
cannam@95 21434 }
cannam@95 21435 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
cannam@95 21436 line = \$ 0
cannam@95 21437 split(line, arg, " ")
cannam@95 21438 if (arg[1] == "#") {
cannam@95 21439 defundef = arg[2]
cannam@95 21440 mac1 = arg[3]
cannam@95 21441 } else {
cannam@95 21442 defundef = substr(arg[1], 2)
cannam@95 21443 mac1 = arg[2]
cannam@95 21444 }
cannam@95 21445 split(mac1, mac2, "(") #)
cannam@95 21446 macro = mac2[1]
cannam@95 21447 prefix = substr(line, 1, index(line, defundef) - 1)
cannam@95 21448 if (D_is_set[macro]) {
cannam@95 21449 # Preserve the white space surrounding the "#".
cannam@95 21450 print prefix "define", macro P[macro] D[macro]
cannam@95 21451 next
cannam@95 21452 } else {
cannam@95 21453 # Replace #undef with comments. This is necessary, for example,
cannam@95 21454 # in the case of _POSIX_SOURCE, which is predefined and required
cannam@95 21455 # on some systems where configure will not decide to define it.
cannam@95 21456 if (defundef == "undef") {
cannam@95 21457 print "/*", prefix defundef, macro, "*/"
cannam@95 21458 next
cannam@95 21459 }
cannam@95 21460 }
cannam@95 21461 }
cannam@95 21462 { print }
cannam@95 21463 _ACAWK
cannam@95 21464 _ACEOF
cannam@95 21465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@95 21466 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cannam@95 21467 fi # test -n "$CONFIG_HEADERS"
cannam@95 21468
cannam@95 21469
cannam@95 21470 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
cannam@95 21471 shift
cannam@95 21472 for ac_tag
cannam@95 21473 do
cannam@95 21474 case $ac_tag in
cannam@95 21475 :[FHLC]) ac_mode=$ac_tag; continue;;
cannam@95 21476 esac
cannam@95 21477 case $ac_mode$ac_tag in
cannam@95 21478 :[FHL]*:*);;
cannam@95 21479 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cannam@95 21480 :[FH]-) ac_tag=-:-;;
cannam@95 21481 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
cannam@95 21482 esac
cannam@95 21483 ac_save_IFS=$IFS
cannam@95 21484 IFS=:
cannam@95 21485 set x $ac_tag
cannam@95 21486 IFS=$ac_save_IFS
cannam@95 21487 shift
cannam@95 21488 ac_file=$1
cannam@95 21489 shift
cannam@95 21490
cannam@95 21491 case $ac_mode in
cannam@95 21492 :L) ac_source=$1;;
cannam@95 21493 :[FH])
cannam@95 21494 ac_file_inputs=
cannam@95 21495 for ac_f
cannam@95 21496 do
cannam@95 21497 case $ac_f in
cannam@95 21498 -) ac_f="$ac_tmp/stdin";;
cannam@95 21499 *) # Look for the file first in the build tree, then in the source tree
cannam@95 21500 # (if the path is not absolute). The absolute path cannot be DOS-style,
cannam@95 21501 # because $ac_f cannot contain `:'.
cannam@95 21502 test -f "$ac_f" ||
cannam@95 21503 case $ac_f in
cannam@95 21504 [\\/$]*) false;;
cannam@95 21505 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
cannam@95 21506 esac ||
cannam@95 21507 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cannam@95 21508 esac
cannam@95 21509 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cannam@95 21510 as_fn_append ac_file_inputs " '$ac_f'"
cannam@95 21511 done
cannam@95 21512
cannam@95 21513 # Let's still pretend it is `configure' which instantiates (i.e., don't
cannam@95 21514 # use $as_me), people would be surprised to read:
cannam@95 21515 # /* config.h. Generated by config.status. */
cannam@95 21516 configure_input='Generated from '`
cannam@95 21517 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
cannam@95 21518 `' by configure.'
cannam@95 21519 if test x"$ac_file" != x-; then
cannam@95 21520 configure_input="$ac_file. $configure_input"
cannam@95 21521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cannam@95 21522 $as_echo "$as_me: creating $ac_file" >&6;}
cannam@95 21523 fi
cannam@95 21524 # Neutralize special characters interpreted by sed in replacement strings.
cannam@95 21525 case $configure_input in #(
cannam@95 21526 *\&* | *\|* | *\\* )
cannam@95 21527 ac_sed_conf_input=`$as_echo "$configure_input" |
cannam@95 21528 sed 's/[\\\\&|]/\\\\&/g'`;; #(
cannam@95 21529 *) ac_sed_conf_input=$configure_input;;
cannam@95 21530 esac
cannam@95 21531
cannam@95 21532 case $ac_tag in
cannam@95 21533 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cannam@95 21534 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cannam@95 21535 esac
cannam@95 21536 ;;
cannam@95 21537 esac
cannam@95 21538
cannam@95 21539 ac_dir=`$as_dirname -- "$ac_file" ||
cannam@95 21540 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@95 21541 X"$ac_file" : 'X\(//\)[^/]' \| \
cannam@95 21542 X"$ac_file" : 'X\(//\)$' \| \
cannam@95 21543 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
cannam@95 21544 $as_echo X"$ac_file" |
cannam@95 21545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@95 21546 s//\1/
cannam@95 21547 q
cannam@95 21548 }
cannam@95 21549 /^X\(\/\/\)[^/].*/{
cannam@95 21550 s//\1/
cannam@95 21551 q
cannam@95 21552 }
cannam@95 21553 /^X\(\/\/\)$/{
cannam@95 21554 s//\1/
cannam@95 21555 q
cannam@95 21556 }
cannam@95 21557 /^X\(\/\).*/{
cannam@95 21558 s//\1/
cannam@95 21559 q
cannam@95 21560 }
cannam@95 21561 s/.*/./; q'`
cannam@95 21562 as_dir="$ac_dir"; as_fn_mkdir_p
cannam@95 21563 ac_builddir=.
cannam@95 21564
cannam@95 21565 case "$ac_dir" in
cannam@95 21566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@95 21567 *)
cannam@95 21568 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
cannam@95 21569 # A ".." for each directory in $ac_dir_suffix.
cannam@95 21570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
cannam@95 21571 case $ac_top_builddir_sub in
cannam@95 21572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@95 21573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
cannam@95 21574 esac ;;
cannam@95 21575 esac
cannam@95 21576 ac_abs_top_builddir=$ac_pwd
cannam@95 21577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
cannam@95 21578 # for backward compatibility:
cannam@95 21579 ac_top_builddir=$ac_top_build_prefix
cannam@95 21580
cannam@95 21581 case $srcdir in
cannam@95 21582 .) # We are building in place.
cannam@95 21583 ac_srcdir=.
cannam@95 21584 ac_top_srcdir=$ac_top_builddir_sub
cannam@95 21585 ac_abs_top_srcdir=$ac_pwd ;;
cannam@95 21586 [\\/]* | ?:[\\/]* ) # Absolute name.
cannam@95 21587 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@95 21588 ac_top_srcdir=$srcdir
cannam@95 21589 ac_abs_top_srcdir=$srcdir ;;
cannam@95 21590 *) # Relative name.
cannam@95 21591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
cannam@95 21592 ac_top_srcdir=$ac_top_build_prefix$srcdir
cannam@95 21593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
cannam@95 21594 esac
cannam@95 21595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cannam@95 21596
cannam@95 21597
cannam@95 21598 case $ac_mode in
cannam@95 21599 :F)
cannam@95 21600 #
cannam@95 21601 # CONFIG_FILE
cannam@95 21602 #
cannam@95 21603
cannam@95 21604 case $INSTALL in
cannam@95 21605 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cannam@95 21606 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
cannam@95 21607 esac
cannam@95 21608 ac_MKDIR_P=$MKDIR_P
cannam@95 21609 case $MKDIR_P in
cannam@95 21610 [\\/$]* | ?:[\\/]* ) ;;
cannam@95 21611 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
cannam@95 21612 esac
cannam@95 21613 _ACEOF
cannam@95 21614
cannam@95 21615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@95 21616 # If the template does not know about datarootdir, expand it.
cannam@95 21617 # FIXME: This hack should be removed a few years after 2.60.
cannam@95 21618 ac_datarootdir_hack=; ac_datarootdir_seen=
cannam@95 21619 ac_sed_dataroot='
cannam@95 21620 /datarootdir/ {
cannam@95 21621 p
cannam@95 21622 q
cannam@95 21623 }
cannam@95 21624 /@datadir@/p
cannam@95 21625 /@docdir@/p
cannam@95 21626 /@infodir@/p
cannam@95 21627 /@localedir@/p
cannam@95 21628 /@mandir@/p'
cannam@95 21629 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
cannam@95 21630 *datarootdir*) ac_datarootdir_seen=yes;;
cannam@95 21631 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cannam@95 21632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cannam@95 21633 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
cannam@95 21634 _ACEOF
cannam@95 21635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@95 21636 ac_datarootdir_hack='
cannam@95 21637 s&@datadir@&$datadir&g
cannam@95 21638 s&@docdir@&$docdir&g
cannam@95 21639 s&@infodir@&$infodir&g
cannam@95 21640 s&@localedir@&$localedir&g
cannam@95 21641 s&@mandir@&$mandir&g
cannam@95 21642 s&\\\${datarootdir}&$datarootdir&g' ;;
cannam@95 21643 esac
cannam@95 21644 _ACEOF
cannam@95 21645
cannam@95 21646 # Neutralize VPATH when `$srcdir' = `.'.
cannam@95 21647 # Shell code in configure.ac might set extrasub.
cannam@95 21648 # FIXME: do we really want to maintain this feature?
cannam@95 21649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@95 21650 ac_sed_extra="$ac_vpsub
cannam@95 21651 $extrasub
cannam@95 21652 _ACEOF
cannam@95 21653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@95 21654 :t
cannam@95 21655 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cannam@95 21656 s|@configure_input@|$ac_sed_conf_input|;t t
cannam@95 21657 s&@top_builddir@&$ac_top_builddir_sub&;t t
cannam@95 21658 s&@top_build_prefix@&$ac_top_build_prefix&;t t
cannam@95 21659 s&@srcdir@&$ac_srcdir&;t t
cannam@95 21660 s&@abs_srcdir@&$ac_abs_srcdir&;t t
cannam@95 21661 s&@top_srcdir@&$ac_top_srcdir&;t t
cannam@95 21662 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
cannam@95 21663 s&@builddir@&$ac_builddir&;t t
cannam@95 21664 s&@abs_builddir@&$ac_abs_builddir&;t t
cannam@95 21665 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
cannam@95 21666 s&@INSTALL@&$ac_INSTALL&;t t
cannam@95 21667 s&@MKDIR_P@&$ac_MKDIR_P&;t t
cannam@95 21668 $ac_datarootdir_hack
cannam@95 21669 "
cannam@95 21670 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
cannam@95 21671 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@95 21672
cannam@95 21673 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cannam@95 21674 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
cannam@95 21675 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
cannam@95 21676 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cannam@95 21677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cannam@95 21678 which seems to be undefined. Please make sure it is defined" >&5
cannam@95 21679 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cannam@95 21680 which seems to be undefined. Please make sure it is defined" >&2;}
cannam@95 21681
cannam@95 21682 rm -f "$ac_tmp/stdin"
cannam@95 21683 case $ac_file in
cannam@95 21684 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
cannam@95 21685 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cannam@95 21686 esac \
cannam@95 21687 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@95 21688 ;;
cannam@95 21689 :H)
cannam@95 21690 #
cannam@95 21691 # CONFIG_HEADER
cannam@95 21692 #
cannam@95 21693 if test x"$ac_file" != x-; then
cannam@95 21694 {
cannam@95 21695 $as_echo "/* $configure_input */" \
cannam@95 21696 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
cannam@95 21697 } >"$ac_tmp/config.h" \
cannam@95 21698 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@95 21699 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cannam@95 21700 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cannam@95 21701 $as_echo "$as_me: $ac_file is unchanged" >&6;}
cannam@95 21702 else
cannam@95 21703 rm -f "$ac_file"
cannam@95 21704 mv "$ac_tmp/config.h" "$ac_file" \
cannam@95 21705 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@95 21706 fi
cannam@95 21707 else
cannam@95 21708 $as_echo "/* $configure_input */" \
cannam@95 21709 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cannam@95 21710 || as_fn_error $? "could not create -" "$LINENO" 5
cannam@95 21711 fi
cannam@95 21712 # Compute "$ac_file"'s index in $config_headers.
cannam@95 21713 _am_arg="$ac_file"
cannam@95 21714 _am_stamp_count=1
cannam@95 21715 for _am_header in $config_headers :; do
cannam@95 21716 case $_am_header in
cannam@95 21717 $_am_arg | $_am_arg:* )
cannam@95 21718 break ;;
cannam@95 21719 * )
cannam@95 21720 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
cannam@95 21721 esac
cannam@95 21722 done
cannam@95 21723 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
cannam@95 21724 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@95 21725 X"$_am_arg" : 'X\(//\)[^/]' \| \
cannam@95 21726 X"$_am_arg" : 'X\(//\)$' \| \
cannam@95 21727 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
cannam@95 21728 $as_echo X"$_am_arg" |
cannam@95 21729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@95 21730 s//\1/
cannam@95 21731 q
cannam@95 21732 }
cannam@95 21733 /^X\(\/\/\)[^/].*/{
cannam@95 21734 s//\1/
cannam@95 21735 q
cannam@95 21736 }
cannam@95 21737 /^X\(\/\/\)$/{
cannam@95 21738 s//\1/
cannam@95 21739 q
cannam@95 21740 }
cannam@95 21741 /^X\(\/\).*/{
cannam@95 21742 s//\1/
cannam@95 21743 q
cannam@95 21744 }
cannam@95 21745 s/.*/./; q'`/stamp-h$_am_stamp_count
cannam@95 21746 ;;
cannam@95 21747
cannam@95 21748 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cannam@95 21749 $as_echo "$as_me: executing $ac_file commands" >&6;}
cannam@95 21750 ;;
cannam@95 21751 esac
cannam@95 21752
cannam@95 21753
cannam@95 21754 case $ac_file$ac_mode in
cannam@95 21755 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cannam@95 21756 # Autoconf 2.62 quotes --file arguments for eval, but not when files
cannam@95 21757 # are listed without --file. Let's play safe and only enable the eval
cannam@95 21758 # if we detect the quoting.
cannam@95 21759 case $CONFIG_FILES in
cannam@95 21760 *\'*) eval set x "$CONFIG_FILES" ;;
cannam@95 21761 *) set x $CONFIG_FILES ;;
cannam@95 21762 esac
cannam@95 21763 shift
cannam@95 21764 for mf
cannam@95 21765 do
cannam@95 21766 # Strip MF so we end up with the name of the file.
cannam@95 21767 mf=`echo "$mf" | sed -e 's/:.*$//'`
cannam@95 21768 # Check whether this is an Automake generated Makefile or not.
cannam@95 21769 # We used to match only the files named `Makefile.in', but
cannam@95 21770 # some people rename them; so instead we look at the file content.
cannam@95 21771 # Grep'ing the first line is not enough: some people post-process
cannam@95 21772 # each Makefile.in and add a new line on top of each file to say so.
cannam@95 21773 # Grep'ing the whole file is not good either: AIX grep has a line
cannam@95 21774 # limit of 2048, but all sed's we know have understand at least 4000.
cannam@95 21775 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
cannam@95 21776 dirpart=`$as_dirname -- "$mf" ||
cannam@95 21777 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@95 21778 X"$mf" : 'X\(//\)[^/]' \| \
cannam@95 21779 X"$mf" : 'X\(//\)$' \| \
cannam@95 21780 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
cannam@95 21781 $as_echo X"$mf" |
cannam@95 21782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@95 21783 s//\1/
cannam@95 21784 q
cannam@95 21785 }
cannam@95 21786 /^X\(\/\/\)[^/].*/{
cannam@95 21787 s//\1/
cannam@95 21788 q
cannam@95 21789 }
cannam@95 21790 /^X\(\/\/\)$/{
cannam@95 21791 s//\1/
cannam@95 21792 q
cannam@95 21793 }
cannam@95 21794 /^X\(\/\).*/{
cannam@95 21795 s//\1/
cannam@95 21796 q
cannam@95 21797 }
cannam@95 21798 s/.*/./; q'`
cannam@95 21799 else
cannam@95 21800 continue
cannam@95 21801 fi
cannam@95 21802 # Extract the definition of DEPDIR, am__include, and am__quote
cannam@95 21803 # from the Makefile without running `make'.
cannam@95 21804 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
cannam@95 21805 test -z "$DEPDIR" && continue
cannam@95 21806 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cannam@95 21807 test -z "am__include" && continue
cannam@95 21808 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cannam@95 21809 # When using ansi2knr, U may be empty or an underscore; expand it
cannam@95 21810 U=`sed -n 's/^U = //p' < "$mf"`
cannam@95 21811 # Find all dependency output files, they are included files with
cannam@95 21812 # $(DEPDIR) in their names. We invoke sed twice because it is the
cannam@95 21813 # simplest approach to changing $(DEPDIR) to its actual value in the
cannam@95 21814 # expansion.
cannam@95 21815 for file in `sed -n "
cannam@95 21816 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cannam@95 21817 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
cannam@95 21818 # Make sure the directory exists.
cannam@95 21819 test -f "$dirpart/$file" && continue
cannam@95 21820 fdir=`$as_dirname -- "$file" ||
cannam@95 21821 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@95 21822 X"$file" : 'X\(//\)[^/]' \| \
cannam@95 21823 X"$file" : 'X\(//\)$' \| \
cannam@95 21824 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
cannam@95 21825 $as_echo X"$file" |
cannam@95 21826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@95 21827 s//\1/
cannam@95 21828 q
cannam@95 21829 }
cannam@95 21830 /^X\(\/\/\)[^/].*/{
cannam@95 21831 s//\1/
cannam@95 21832 q
cannam@95 21833 }
cannam@95 21834 /^X\(\/\/\)$/{
cannam@95 21835 s//\1/
cannam@95 21836 q
cannam@95 21837 }
cannam@95 21838 /^X\(\/\).*/{
cannam@95 21839 s//\1/
cannam@95 21840 q
cannam@95 21841 }
cannam@95 21842 s/.*/./; q'`
cannam@95 21843 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cannam@95 21844 # echo "creating $dirpart/$file"
cannam@95 21845 echo '# dummy' > "$dirpart/$file"
cannam@95 21846 done
cannam@95 21847 done
cannam@95 21848 }
cannam@95 21849 ;;
cannam@95 21850 "libtool":C)
cannam@95 21851
cannam@95 21852 # See if we are running on zsh, and set the options which allow our
cannam@95 21853 # commands through without removal of \ escapes.
cannam@95 21854 if test -n "${ZSH_VERSION+set}" ; then
cannam@95 21855 setopt NO_GLOB_SUBST
cannam@95 21856 fi
cannam@95 21857
cannam@95 21858 cfgfile="${ofile}T"
cannam@95 21859 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
cannam@95 21860 $RM "$cfgfile"
cannam@95 21861
cannam@95 21862 cat <<_LT_EOF >> "$cfgfile"
cannam@95 21863 #! $SHELL
cannam@95 21864
cannam@95 21865 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
cannam@95 21866 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
cannam@95 21867 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
cannam@95 21868 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
cannam@95 21869 #
cannam@95 21870 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cannam@95 21871 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
cannam@95 21872 # Foundation, Inc.
cannam@95 21873 # Written by Gordon Matzigkeit, 1996
cannam@95 21874 #
cannam@95 21875 # This file is part of GNU Libtool.
cannam@95 21876 #
cannam@95 21877 # GNU Libtool is free software; you can redistribute it and/or
cannam@95 21878 # modify it under the terms of the GNU General Public License as
cannam@95 21879 # published by the Free Software Foundation; either version 2 of
cannam@95 21880 # the License, or (at your option) any later version.
cannam@95 21881 #
cannam@95 21882 # As a special exception to the GNU General Public License,
cannam@95 21883 # if you distribute this file as part of a program or library that
cannam@95 21884 # is built using GNU Libtool, you may include this file under the
cannam@95 21885 # same distribution terms that you use for the rest of that program.
cannam@95 21886 #
cannam@95 21887 # GNU Libtool is distributed in the hope that it will be useful,
cannam@95 21888 # but WITHOUT ANY WARRANTY; without even the implied warranty of
cannam@95 21889 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cannam@95 21890 # GNU General Public License for more details.
cannam@95 21891 #
cannam@95 21892 # You should have received a copy of the GNU General Public License
cannam@95 21893 # along with GNU Libtool; see the file COPYING. If not, a copy
cannam@95 21894 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
cannam@95 21895 # obtained by writing to the Free Software Foundation, Inc.,
cannam@95 21896 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
cannam@95 21897
cannam@95 21898
cannam@95 21899 # The names of the tagged configurations supported by this script.
cannam@95 21900 available_tags="F77 "
cannam@95 21901
cannam@95 21902 # ### BEGIN LIBTOOL CONFIG
cannam@95 21903
cannam@95 21904 # Whether or not to build shared libraries.
cannam@95 21905 build_libtool_libs=$enable_shared
cannam@95 21906
cannam@95 21907 # Assembler program.
cannam@95 21908 AS=$lt_AS
cannam@95 21909
cannam@95 21910 # DLL creation program.
cannam@95 21911 DLLTOOL=$lt_DLLTOOL
cannam@95 21912
cannam@95 21913 # Object dumper program.
cannam@95 21914 OBJDUMP=$lt_OBJDUMP
cannam@95 21915
cannam@95 21916 # Which release of libtool.m4 was used?
cannam@95 21917 macro_version=$macro_version
cannam@95 21918 macro_revision=$macro_revision
cannam@95 21919
cannam@95 21920 # Whether or not to build static libraries.
cannam@95 21921 build_old_libs=$enable_static
cannam@95 21922
cannam@95 21923 # What type of objects to build.
cannam@95 21924 pic_mode=$pic_mode
cannam@95 21925
cannam@95 21926 # Whether or not to optimize for fast installation.
cannam@95 21927 fast_install=$enable_fast_install
cannam@95 21928
cannam@95 21929 # Shell to use when invoking shell scripts.
cannam@95 21930 SHELL=$lt_SHELL
cannam@95 21931
cannam@95 21932 # An echo program that protects backslashes.
cannam@95 21933 ECHO=$lt_ECHO
cannam@95 21934
cannam@95 21935 # The PATH separator for the build system.
cannam@95 21936 PATH_SEPARATOR=$lt_PATH_SEPARATOR
cannam@95 21937
cannam@95 21938 # The host system.
cannam@95 21939 host_alias=$host_alias
cannam@95 21940 host=$host
cannam@95 21941 host_os=$host_os
cannam@95 21942
cannam@95 21943 # The build system.
cannam@95 21944 build_alias=$build_alias
cannam@95 21945 build=$build
cannam@95 21946 build_os=$build_os
cannam@95 21947
cannam@95 21948 # A sed program that does not truncate output.
cannam@95 21949 SED=$lt_SED
cannam@95 21950
cannam@95 21951 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
cannam@95 21952 Xsed="\$SED -e 1s/^X//"
cannam@95 21953
cannam@95 21954 # A grep program that handles long lines.
cannam@95 21955 GREP=$lt_GREP
cannam@95 21956
cannam@95 21957 # An ERE matcher.
cannam@95 21958 EGREP=$lt_EGREP
cannam@95 21959
cannam@95 21960 # A literal string matcher.
cannam@95 21961 FGREP=$lt_FGREP
cannam@95 21962
cannam@95 21963 # A BSD- or MS-compatible name lister.
cannam@95 21964 NM=$lt_NM
cannam@95 21965
cannam@95 21966 # Whether we need soft or hard links.
cannam@95 21967 LN_S=$lt_LN_S
cannam@95 21968
cannam@95 21969 # What is the maximum length of a command?
cannam@95 21970 max_cmd_len=$max_cmd_len
cannam@95 21971
cannam@95 21972 # Object file suffix (normally "o").
cannam@95 21973 objext=$ac_objext
cannam@95 21974
cannam@95 21975 # Executable file suffix (normally "").
cannam@95 21976 exeext=$exeext
cannam@95 21977
cannam@95 21978 # whether the shell understands "unset".
cannam@95 21979 lt_unset=$lt_unset
cannam@95 21980
cannam@95 21981 # turn spaces into newlines.
cannam@95 21982 SP2NL=$lt_lt_SP2NL
cannam@95 21983
cannam@95 21984 # turn newlines into spaces.
cannam@95 21985 NL2SP=$lt_lt_NL2SP
cannam@95 21986
cannam@95 21987 # convert \$build file names to \$host format.
cannam@95 21988 to_host_file_cmd=$lt_cv_to_host_file_cmd
cannam@95 21989
cannam@95 21990 # convert \$build files to toolchain format.
cannam@95 21991 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
cannam@95 21992
cannam@95 21993 # Method to check whether dependent libraries are shared objects.
cannam@95 21994 deplibs_check_method=$lt_deplibs_check_method
cannam@95 21995
cannam@95 21996 # Command to use when deplibs_check_method = "file_magic".
cannam@95 21997 file_magic_cmd=$lt_file_magic_cmd
cannam@95 21998
cannam@95 21999 # How to find potential files when deplibs_check_method = "file_magic".
cannam@95 22000 file_magic_glob=$lt_file_magic_glob
cannam@95 22001
cannam@95 22002 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
cannam@95 22003 want_nocaseglob=$lt_want_nocaseglob
cannam@95 22004
cannam@95 22005 # Command to associate shared and link libraries.
cannam@95 22006 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
cannam@95 22007
cannam@95 22008 # The archiver.
cannam@95 22009 AR=$lt_AR
cannam@95 22010
cannam@95 22011 # Flags to create an archive.
cannam@95 22012 AR_FLAGS=$lt_AR_FLAGS
cannam@95 22013
cannam@95 22014 # How to feed a file listing to the archiver.
cannam@95 22015 archiver_list_spec=$lt_archiver_list_spec
cannam@95 22016
cannam@95 22017 # A symbol stripping program.
cannam@95 22018 STRIP=$lt_STRIP
cannam@95 22019
cannam@95 22020 # Commands used to install an old-style archive.
cannam@95 22021 RANLIB=$lt_RANLIB
cannam@95 22022 old_postinstall_cmds=$lt_old_postinstall_cmds
cannam@95 22023 old_postuninstall_cmds=$lt_old_postuninstall_cmds
cannam@95 22024
cannam@95 22025 # Whether to use a lock for old archive extraction.
cannam@95 22026 lock_old_archive_extraction=$lock_old_archive_extraction
cannam@95 22027
cannam@95 22028 # A C compiler.
cannam@95 22029 LTCC=$lt_CC
cannam@95 22030
cannam@95 22031 # LTCC compiler flags.
cannam@95 22032 LTCFLAGS=$lt_CFLAGS
cannam@95 22033
cannam@95 22034 # Take the output of nm and produce a listing of raw symbols and C names.
cannam@95 22035 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
cannam@95 22036
cannam@95 22037 # Transform the output of nm in a proper C declaration.
cannam@95 22038 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
cannam@95 22039
cannam@95 22040 # Transform the output of nm in a C name address pair.
cannam@95 22041 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
cannam@95 22042
cannam@95 22043 # Transform the output of nm in a C name address pair when lib prefix is needed.
cannam@95 22044 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
cannam@95 22045
cannam@95 22046 # Specify filename containing input files for \$NM.
cannam@95 22047 nm_file_list_spec=$lt_nm_file_list_spec
cannam@95 22048
cannam@95 22049 # The root where to search for dependent libraries,and in which our libraries should be installed.
cannam@95 22050 lt_sysroot=$lt_sysroot
cannam@95 22051
cannam@95 22052 # The name of the directory that contains temporary libtool files.
cannam@95 22053 objdir=$objdir
cannam@95 22054
cannam@95 22055 # Used to examine libraries when file_magic_cmd begins with "file".
cannam@95 22056 MAGIC_CMD=$MAGIC_CMD
cannam@95 22057
cannam@95 22058 # Must we lock files when doing compilation?
cannam@95 22059 need_locks=$lt_need_locks
cannam@95 22060
cannam@95 22061 # Manifest tool.
cannam@95 22062 MANIFEST_TOOL=$lt_MANIFEST_TOOL
cannam@95 22063
cannam@95 22064 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
cannam@95 22065 DSYMUTIL=$lt_DSYMUTIL
cannam@95 22066
cannam@95 22067 # Tool to change global to local symbols on Mac OS X.
cannam@95 22068 NMEDIT=$lt_NMEDIT
cannam@95 22069
cannam@95 22070 # Tool to manipulate fat objects and archives on Mac OS X.
cannam@95 22071 LIPO=$lt_LIPO
cannam@95 22072
cannam@95 22073 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
cannam@95 22074 OTOOL=$lt_OTOOL
cannam@95 22075
cannam@95 22076 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
cannam@95 22077 OTOOL64=$lt_OTOOL64
cannam@95 22078
cannam@95 22079 # Old archive suffix (normally "a").
cannam@95 22080 libext=$libext
cannam@95 22081
cannam@95 22082 # Shared library suffix (normally ".so").
cannam@95 22083 shrext_cmds=$lt_shrext_cmds
cannam@95 22084
cannam@95 22085 # The commands to extract the exported symbol list from a shared archive.
cannam@95 22086 extract_expsyms_cmds=$lt_extract_expsyms_cmds
cannam@95 22087
cannam@95 22088 # Variables whose values should be saved in libtool wrapper scripts and
cannam@95 22089 # restored at link time.
cannam@95 22090 variables_saved_for_relink=$lt_variables_saved_for_relink
cannam@95 22091
cannam@95 22092 # Do we need the "lib" prefix for modules?
cannam@95 22093 need_lib_prefix=$need_lib_prefix
cannam@95 22094
cannam@95 22095 # Do we need a version for libraries?
cannam@95 22096 need_version=$need_version
cannam@95 22097
cannam@95 22098 # Library versioning type.
cannam@95 22099 version_type=$version_type
cannam@95 22100
cannam@95 22101 # Shared library runtime path variable.
cannam@95 22102 runpath_var=$runpath_var
cannam@95 22103
cannam@95 22104 # Shared library path variable.
cannam@95 22105 shlibpath_var=$shlibpath_var
cannam@95 22106
cannam@95 22107 # Is shlibpath searched before the hard-coded library search path?
cannam@95 22108 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
cannam@95 22109
cannam@95 22110 # Format of library name prefix.
cannam@95 22111 libname_spec=$lt_libname_spec
cannam@95 22112
cannam@95 22113 # List of archive names. First name is the real one, the rest are links.
cannam@95 22114 # The last name is the one that the linker finds with -lNAME
cannam@95 22115 library_names_spec=$lt_library_names_spec
cannam@95 22116
cannam@95 22117 # The coded name of the library, if different from the real name.
cannam@95 22118 soname_spec=$lt_soname_spec
cannam@95 22119
cannam@95 22120 # Permission mode override for installation of shared libraries.
cannam@95 22121 install_override_mode=$lt_install_override_mode
cannam@95 22122
cannam@95 22123 # Command to use after installation of a shared archive.
cannam@95 22124 postinstall_cmds=$lt_postinstall_cmds
cannam@95 22125
cannam@95 22126 # Command to use after uninstallation of a shared archive.
cannam@95 22127 postuninstall_cmds=$lt_postuninstall_cmds
cannam@95 22128
cannam@95 22129 # Commands used to finish a libtool library installation in a directory.
cannam@95 22130 finish_cmds=$lt_finish_cmds
cannam@95 22131
cannam@95 22132 # As "finish_cmds", except a single script fragment to be evaled but
cannam@95 22133 # not shown.
cannam@95 22134 finish_eval=$lt_finish_eval
cannam@95 22135
cannam@95 22136 # Whether we should hardcode library paths into libraries.
cannam@95 22137 hardcode_into_libs=$hardcode_into_libs
cannam@95 22138
cannam@95 22139 # Compile-time system search path for libraries.
cannam@95 22140 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
cannam@95 22141
cannam@95 22142 # Run-time system search path for libraries.
cannam@95 22143 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
cannam@95 22144
cannam@95 22145 # Whether dlopen is supported.
cannam@95 22146 dlopen_support=$enable_dlopen
cannam@95 22147
cannam@95 22148 # Whether dlopen of programs is supported.
cannam@95 22149 dlopen_self=$enable_dlopen_self
cannam@95 22150
cannam@95 22151 # Whether dlopen of statically linked programs is supported.
cannam@95 22152 dlopen_self_static=$enable_dlopen_self_static
cannam@95 22153
cannam@95 22154 # Commands to strip libraries.
cannam@95 22155 old_striplib=$lt_old_striplib
cannam@95 22156 striplib=$lt_striplib
cannam@95 22157
cannam@95 22158
cannam@95 22159 # The linker used to build libraries.
cannam@95 22160 LD=$lt_LD
cannam@95 22161
cannam@95 22162 # How to create reloadable object files.
cannam@95 22163 reload_flag=$lt_reload_flag
cannam@95 22164 reload_cmds=$lt_reload_cmds
cannam@95 22165
cannam@95 22166 # Commands used to build an old-style archive.
cannam@95 22167 old_archive_cmds=$lt_old_archive_cmds
cannam@95 22168
cannam@95 22169 # A language specific compiler.
cannam@95 22170 CC=$lt_compiler
cannam@95 22171
cannam@95 22172 # Is the compiler the GNU compiler?
cannam@95 22173 with_gcc=$GCC
cannam@95 22174
cannam@95 22175 # Compiler flag to turn off builtin functions.
cannam@95 22176 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
cannam@95 22177
cannam@95 22178 # Additional compiler flags for building library objects.
cannam@95 22179 pic_flag=$lt_lt_prog_compiler_pic
cannam@95 22180
cannam@95 22181 # How to pass a linker flag through the compiler.
cannam@95 22182 wl=$lt_lt_prog_compiler_wl
cannam@95 22183
cannam@95 22184 # Compiler flag to prevent dynamic linking.
cannam@95 22185 link_static_flag=$lt_lt_prog_compiler_static
cannam@95 22186
cannam@95 22187 # Does compiler simultaneously support -c and -o options?
cannam@95 22188 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
cannam@95 22189
cannam@95 22190 # Whether or not to add -lc for building shared libraries.
cannam@95 22191 build_libtool_need_lc=$archive_cmds_need_lc
cannam@95 22192
cannam@95 22193 # Whether or not to disallow shared libs when runtime libs are static.
cannam@95 22194 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
cannam@95 22195
cannam@95 22196 # Compiler flag to allow reflexive dlopens.
cannam@95 22197 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
cannam@95 22198
cannam@95 22199 # Compiler flag to generate shared objects directly from archives.
cannam@95 22200 whole_archive_flag_spec=$lt_whole_archive_flag_spec
cannam@95 22201
cannam@95 22202 # Whether the compiler copes with passing no objects directly.
cannam@95 22203 compiler_needs_object=$lt_compiler_needs_object
cannam@95 22204
cannam@95 22205 # Create an old-style archive from a shared archive.
cannam@95 22206 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
cannam@95 22207
cannam@95 22208 # Create a temporary old-style archive to link instead of a shared archive.
cannam@95 22209 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
cannam@95 22210
cannam@95 22211 # Commands used to build a shared archive.
cannam@95 22212 archive_cmds=$lt_archive_cmds
cannam@95 22213 archive_expsym_cmds=$lt_archive_expsym_cmds
cannam@95 22214
cannam@95 22215 # Commands used to build a loadable module if different from building
cannam@95 22216 # a shared archive.
cannam@95 22217 module_cmds=$lt_module_cmds
cannam@95 22218 module_expsym_cmds=$lt_module_expsym_cmds
cannam@95 22219
cannam@95 22220 # Whether we are building with GNU ld or not.
cannam@95 22221 with_gnu_ld=$lt_with_gnu_ld
cannam@95 22222
cannam@95 22223 # Flag that allows shared libraries with undefined symbols to be built.
cannam@95 22224 allow_undefined_flag=$lt_allow_undefined_flag
cannam@95 22225
cannam@95 22226 # Flag that enforces no undefined symbols.
cannam@95 22227 no_undefined_flag=$lt_no_undefined_flag
cannam@95 22228
cannam@95 22229 # Flag to hardcode \$libdir into a binary during linking.
cannam@95 22230 # This must work even if \$libdir does not exist
cannam@95 22231 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
cannam@95 22232
cannam@95 22233 # Whether we need a single "-rpath" flag with a separated argument.
cannam@95 22234 hardcode_libdir_separator=$lt_hardcode_libdir_separator
cannam@95 22235
cannam@95 22236 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
cannam@95 22237 # DIR into the resulting binary.
cannam@95 22238 hardcode_direct=$hardcode_direct
cannam@95 22239
cannam@95 22240 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
cannam@95 22241 # DIR into the resulting binary and the resulting library dependency is
cannam@95 22242 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
cannam@95 22243 # library is relocated.
cannam@95 22244 hardcode_direct_absolute=$hardcode_direct_absolute
cannam@95 22245
cannam@95 22246 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
cannam@95 22247 # into the resulting binary.
cannam@95 22248 hardcode_minus_L=$hardcode_minus_L
cannam@95 22249
cannam@95 22250 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
cannam@95 22251 # into the resulting binary.
cannam@95 22252 hardcode_shlibpath_var=$hardcode_shlibpath_var
cannam@95 22253
cannam@95 22254 # Set to "yes" if building a shared library automatically hardcodes DIR
cannam@95 22255 # into the library and all subsequent libraries and executables linked
cannam@95 22256 # against it.
cannam@95 22257 hardcode_automatic=$hardcode_automatic
cannam@95 22258
cannam@95 22259 # Set to yes if linker adds runtime paths of dependent libraries
cannam@95 22260 # to runtime path list.
cannam@95 22261 inherit_rpath=$inherit_rpath
cannam@95 22262
cannam@95 22263 # Whether libtool must link a program against all its dependency libraries.
cannam@95 22264 link_all_deplibs=$link_all_deplibs
cannam@95 22265
cannam@95 22266 # Set to "yes" if exported symbols are required.
cannam@95 22267 always_export_symbols=$always_export_symbols
cannam@95 22268
cannam@95 22269 # The commands to list exported symbols.
cannam@95 22270 export_symbols_cmds=$lt_export_symbols_cmds
cannam@95 22271
cannam@95 22272 # Symbols that should not be listed in the preloaded symbols.
cannam@95 22273 exclude_expsyms=$lt_exclude_expsyms
cannam@95 22274
cannam@95 22275 # Symbols that must always be exported.
cannam@95 22276 include_expsyms=$lt_include_expsyms
cannam@95 22277
cannam@95 22278 # Commands necessary for linking programs (against libraries) with templates.
cannam@95 22279 prelink_cmds=$lt_prelink_cmds
cannam@95 22280
cannam@95 22281 # Commands necessary for finishing linking programs.
cannam@95 22282 postlink_cmds=$lt_postlink_cmds
cannam@95 22283
cannam@95 22284 # Specify filename containing input files.
cannam@95 22285 file_list_spec=$lt_file_list_spec
cannam@95 22286
cannam@95 22287 # How to hardcode a shared library path into an executable.
cannam@95 22288 hardcode_action=$hardcode_action
cannam@95 22289
cannam@95 22290 # ### END LIBTOOL CONFIG
cannam@95 22291
cannam@95 22292 _LT_EOF
cannam@95 22293
cannam@95 22294 case $host_os in
cannam@95 22295 aix3*)
cannam@95 22296 cat <<\_LT_EOF >> "$cfgfile"
cannam@95 22297 # AIX sometimes has problems with the GCC collect2 program. For some
cannam@95 22298 # reason, if we set the COLLECT_NAMES environment variable, the problems
cannam@95 22299 # vanish in a puff of smoke.
cannam@95 22300 if test "X${COLLECT_NAMES+set}" != Xset; then
cannam@95 22301 COLLECT_NAMES=
cannam@95 22302 export COLLECT_NAMES
cannam@95 22303 fi
cannam@95 22304 _LT_EOF
cannam@95 22305 ;;
cannam@95 22306 esac
cannam@95 22307
cannam@95 22308
cannam@95 22309 ltmain="$ac_aux_dir/ltmain.sh"
cannam@95 22310
cannam@95 22311
cannam@95 22312 # We use sed instead of cat because bash on DJGPP gets confused if
cannam@95 22313 # if finds mixed CR/LF and LF-only lines. Since sed operates in
cannam@95 22314 # text mode, it properly converts lines to CR/LF. This bash problem
cannam@95 22315 # is reportedly fixed, but why not run on old versions too?
cannam@95 22316 sed '$q' "$ltmain" >> "$cfgfile" \
cannam@95 22317 || (rm -f "$cfgfile"; exit 1)
cannam@95 22318
cannam@95 22319 if test x"$xsi_shell" = xyes; then
cannam@95 22320 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
cannam@95 22321 func_dirname ()\
cannam@95 22322 {\
cannam@95 22323 \ case ${1} in\
cannam@95 22324 \ */*) func_dirname_result="${1%/*}${2}" ;;\
cannam@95 22325 \ * ) func_dirname_result="${3}" ;;\
cannam@95 22326 \ esac\
cannam@95 22327 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
cannam@95 22328 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@95 22329 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@95 22330 test 0 -eq $? || _lt_function_replace_fail=:
cannam@95 22331
cannam@95 22332
cannam@95 22333 sed -e '/^func_basename ()$/,/^} # func_basename /c\
cannam@95 22334 func_basename ()\
cannam@95 22335 {\
cannam@95 22336 \ func_basename_result="${1##*/}"\
cannam@95 22337 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
cannam@95 22338 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@95 22339 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@95 22340 test 0 -eq $? || _lt_function_replace_fail=:
cannam@95 22341
cannam@95 22342
cannam@95 22343 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
cannam@95 22344 func_dirname_and_basename ()\
cannam@95 22345 {\
cannam@95 22346 \ case ${1} in\
cannam@95 22347 \ */*) func_dirname_result="${1%/*}${2}" ;;\
cannam@95 22348 \ * ) func_dirname_result="${3}" ;;\
cannam@95 22349 \ esac\
cannam@95 22350 \ func_basename_result="${1##*/}"\
cannam@95 22351 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
cannam@95 22352 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@95 22353 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@95 22354 test 0 -eq $? || _lt_function_replace_fail=:
cannam@95 22355
cannam@95 22356
cannam@95 22357 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
cannam@95 22358 func_stripname ()\
cannam@95 22359 {\
cannam@95 22360 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
cannam@95 22361 \ # positional parameters, so assign one to ordinary parameter first.\
cannam@95 22362 \ func_stripname_result=${3}\
cannam@95 22363 \ func_stripname_result=${func_stripname_result#"${1}"}\
cannam@95 22364 \ func_stripname_result=${func_stripname_result%"${2}"}\
cannam@95 22365 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
cannam@95 22366 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@95 22367 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@95 22368 test 0 -eq $? || _lt_function_replace_fail=:
cannam@95 22369
cannam@95 22370
cannam@95 22371 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
cannam@95 22372 func_split_long_opt ()\
cannam@95 22373 {\
cannam@95 22374 \ func_split_long_opt_name=${1%%=*}\
cannam@95 22375 \ func_split_long_opt_arg=${1#*=}\
cannam@95 22376 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
cannam@95 22377 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@95 22378 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@95 22379 test 0 -eq $? || _lt_function_replace_fail=:
cannam@95 22380
cannam@95 22381
cannam@95 22382 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
cannam@95 22383 func_split_short_opt ()\
cannam@95 22384 {\
cannam@95 22385 \ func_split_short_opt_arg=${1#??}\
cannam@95 22386 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
cannam@95 22387 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
cannam@95 22388 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@95 22389 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@95 22390 test 0 -eq $? || _lt_function_replace_fail=:
cannam@95 22391
cannam@95 22392
cannam@95 22393 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
cannam@95 22394 func_lo2o ()\
cannam@95 22395 {\
cannam@95 22396 \ case ${1} in\
cannam@95 22397 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
cannam@95 22398 \ *) func_lo2o_result=${1} ;;\
cannam@95 22399 \ esac\
cannam@95 22400 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
cannam@95 22401 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@95 22402 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@95 22403 test 0 -eq $? || _lt_function_replace_fail=:
cannam@95 22404
cannam@95 22405
cannam@95 22406 sed -e '/^func_xform ()$/,/^} # func_xform /c\
cannam@95 22407 func_xform ()\
cannam@95 22408 {\
cannam@95 22409 func_xform_result=${1%.*}.lo\
cannam@95 22410 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
cannam@95 22411 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@95 22412 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@95 22413 test 0 -eq $? || _lt_function_replace_fail=:
cannam@95 22414
cannam@95 22415
cannam@95 22416 sed -e '/^func_arith ()$/,/^} # func_arith /c\
cannam@95 22417 func_arith ()\
cannam@95 22418 {\
cannam@95 22419 func_arith_result=$(( $* ))\
cannam@95 22420 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
cannam@95 22421 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@95 22422 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@95 22423 test 0 -eq $? || _lt_function_replace_fail=:
cannam@95 22424
cannam@95 22425
cannam@95 22426 sed -e '/^func_len ()$/,/^} # func_len /c\
cannam@95 22427 func_len ()\
cannam@95 22428 {\
cannam@95 22429 func_len_result=${#1}\
cannam@95 22430 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
cannam@95 22431 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@95 22432 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@95 22433 test 0 -eq $? || _lt_function_replace_fail=:
cannam@95 22434
cannam@95 22435 fi
cannam@95 22436
cannam@95 22437 if test x"$lt_shell_append" = xyes; then
cannam@95 22438 sed -e '/^func_append ()$/,/^} # func_append /c\
cannam@95 22439 func_append ()\
cannam@95 22440 {\
cannam@95 22441 eval "${1}+=\\${2}"\
cannam@95 22442 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
cannam@95 22443 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@95 22444 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@95 22445 test 0 -eq $? || _lt_function_replace_fail=:
cannam@95 22446
cannam@95 22447
cannam@95 22448 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
cannam@95 22449 func_append_quoted ()\
cannam@95 22450 {\
cannam@95 22451 \ func_quote_for_eval "${2}"\
cannam@95 22452 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
cannam@95 22453 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
cannam@95 22454 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@95 22455 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@95 22456 test 0 -eq $? || _lt_function_replace_fail=:
cannam@95 22457
cannam@95 22458
cannam@95 22459 # Save a `func_append' function call where possible by direct use of '+='
cannam@95 22460 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
cannam@95 22461 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@95 22462 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@95 22463 test 0 -eq $? || _lt_function_replace_fail=:
cannam@95 22464 else
cannam@95 22465 # Save a `func_append' function call even when '+=' is not available
cannam@95 22466 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
cannam@95 22467 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@95 22468 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@95 22469 test 0 -eq $? || _lt_function_replace_fail=:
cannam@95 22470 fi
cannam@95 22471
cannam@95 22472 if test x"$_lt_function_replace_fail" = x":"; then
cannam@95 22473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
cannam@95 22474 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
cannam@95 22475 fi
cannam@95 22476
cannam@95 22477
cannam@95 22478 mv -f "$cfgfile" "$ofile" ||
cannam@95 22479 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
cannam@95 22480 chmod +x "$ofile"
cannam@95 22481
cannam@95 22482
cannam@95 22483 cat <<_LT_EOF >> "$ofile"
cannam@95 22484
cannam@95 22485 # ### BEGIN LIBTOOL TAG CONFIG: F77
cannam@95 22486
cannam@95 22487 # The linker used to build libraries.
cannam@95 22488 LD=$lt_LD_F77
cannam@95 22489
cannam@95 22490 # How to create reloadable object files.
cannam@95 22491 reload_flag=$lt_reload_flag_F77
cannam@95 22492 reload_cmds=$lt_reload_cmds_F77
cannam@95 22493
cannam@95 22494 # Commands used to build an old-style archive.
cannam@95 22495 old_archive_cmds=$lt_old_archive_cmds_F77
cannam@95 22496
cannam@95 22497 # A language specific compiler.
cannam@95 22498 CC=$lt_compiler_F77
cannam@95 22499
cannam@95 22500 # Is the compiler the GNU compiler?
cannam@95 22501 with_gcc=$GCC_F77
cannam@95 22502
cannam@95 22503 # Compiler flag to turn off builtin functions.
cannam@95 22504 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
cannam@95 22505
cannam@95 22506 # Additional compiler flags for building library objects.
cannam@95 22507 pic_flag=$lt_lt_prog_compiler_pic_F77
cannam@95 22508
cannam@95 22509 # How to pass a linker flag through the compiler.
cannam@95 22510 wl=$lt_lt_prog_compiler_wl_F77
cannam@95 22511
cannam@95 22512 # Compiler flag to prevent dynamic linking.
cannam@95 22513 link_static_flag=$lt_lt_prog_compiler_static_F77
cannam@95 22514
cannam@95 22515 # Does compiler simultaneously support -c and -o options?
cannam@95 22516 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
cannam@95 22517
cannam@95 22518 # Whether or not to add -lc for building shared libraries.
cannam@95 22519 build_libtool_need_lc=$archive_cmds_need_lc_F77
cannam@95 22520
cannam@95 22521 # Whether or not to disallow shared libs when runtime libs are static.
cannam@95 22522 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
cannam@95 22523
cannam@95 22524 # Compiler flag to allow reflexive dlopens.
cannam@95 22525 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
cannam@95 22526
cannam@95 22527 # Compiler flag to generate shared objects directly from archives.
cannam@95 22528 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
cannam@95 22529
cannam@95 22530 # Whether the compiler copes with passing no objects directly.
cannam@95 22531 compiler_needs_object=$lt_compiler_needs_object_F77
cannam@95 22532
cannam@95 22533 # Create an old-style archive from a shared archive.
cannam@95 22534 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
cannam@95 22535
cannam@95 22536 # Create a temporary old-style archive to link instead of a shared archive.
cannam@95 22537 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
cannam@95 22538
cannam@95 22539 # Commands used to build a shared archive.
cannam@95 22540 archive_cmds=$lt_archive_cmds_F77
cannam@95 22541 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
cannam@95 22542
cannam@95 22543 # Commands used to build a loadable module if different from building
cannam@95 22544 # a shared archive.
cannam@95 22545 module_cmds=$lt_module_cmds_F77
cannam@95 22546 module_expsym_cmds=$lt_module_expsym_cmds_F77
cannam@95 22547
cannam@95 22548 # Whether we are building with GNU ld or not.
cannam@95 22549 with_gnu_ld=$lt_with_gnu_ld_F77
cannam@95 22550
cannam@95 22551 # Flag that allows shared libraries with undefined symbols to be built.
cannam@95 22552 allow_undefined_flag=$lt_allow_undefined_flag_F77
cannam@95 22553
cannam@95 22554 # Flag that enforces no undefined symbols.
cannam@95 22555 no_undefined_flag=$lt_no_undefined_flag_F77
cannam@95 22556
cannam@95 22557 # Flag to hardcode \$libdir into a binary during linking.
cannam@95 22558 # This must work even if \$libdir does not exist
cannam@95 22559 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
cannam@95 22560
cannam@95 22561 # Whether we need a single "-rpath" flag with a separated argument.
cannam@95 22562 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
cannam@95 22563
cannam@95 22564 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
cannam@95 22565 # DIR into the resulting binary.
cannam@95 22566 hardcode_direct=$hardcode_direct_F77
cannam@95 22567
cannam@95 22568 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
cannam@95 22569 # DIR into the resulting binary and the resulting library dependency is
cannam@95 22570 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
cannam@95 22571 # library is relocated.
cannam@95 22572 hardcode_direct_absolute=$hardcode_direct_absolute_F77
cannam@95 22573
cannam@95 22574 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
cannam@95 22575 # into the resulting binary.
cannam@95 22576 hardcode_minus_L=$hardcode_minus_L_F77
cannam@95 22577
cannam@95 22578 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
cannam@95 22579 # into the resulting binary.
cannam@95 22580 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
cannam@95 22581
cannam@95 22582 # Set to "yes" if building a shared library automatically hardcodes DIR
cannam@95 22583 # into the library and all subsequent libraries and executables linked
cannam@95 22584 # against it.
cannam@95 22585 hardcode_automatic=$hardcode_automatic_F77
cannam@95 22586
cannam@95 22587 # Set to yes if linker adds runtime paths of dependent libraries
cannam@95 22588 # to runtime path list.
cannam@95 22589 inherit_rpath=$inherit_rpath_F77
cannam@95 22590
cannam@95 22591 # Whether libtool must link a program against all its dependency libraries.
cannam@95 22592 link_all_deplibs=$link_all_deplibs_F77
cannam@95 22593
cannam@95 22594 # Set to "yes" if exported symbols are required.
cannam@95 22595 always_export_symbols=$always_export_symbols_F77
cannam@95 22596
cannam@95 22597 # The commands to list exported symbols.
cannam@95 22598 export_symbols_cmds=$lt_export_symbols_cmds_F77
cannam@95 22599
cannam@95 22600 # Symbols that should not be listed in the preloaded symbols.
cannam@95 22601 exclude_expsyms=$lt_exclude_expsyms_F77
cannam@95 22602
cannam@95 22603 # Symbols that must always be exported.
cannam@95 22604 include_expsyms=$lt_include_expsyms_F77
cannam@95 22605
cannam@95 22606 # Commands necessary for linking programs (against libraries) with templates.
cannam@95 22607 prelink_cmds=$lt_prelink_cmds_F77
cannam@95 22608
cannam@95 22609 # Commands necessary for finishing linking programs.
cannam@95 22610 postlink_cmds=$lt_postlink_cmds_F77
cannam@95 22611
cannam@95 22612 # Specify filename containing input files.
cannam@95 22613 file_list_spec=$lt_file_list_spec_F77
cannam@95 22614
cannam@95 22615 # How to hardcode a shared library path into an executable.
cannam@95 22616 hardcode_action=$hardcode_action_F77
cannam@95 22617
cannam@95 22618 # ### END LIBTOOL TAG CONFIG: F77
cannam@95 22619 _LT_EOF
cannam@95 22620
cannam@95 22621 ;;
cannam@95 22622
cannam@95 22623 esac
cannam@95 22624 done # for ac_tag
cannam@95 22625
cannam@95 22626
cannam@95 22627 as_fn_exit 0
cannam@95 22628 _ACEOF
cannam@95 22629 ac_clean_files=$ac_clean_files_save
cannam@95 22630
cannam@95 22631 test $ac_write_fail = 0 ||
cannam@95 22632 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cannam@95 22633
cannam@95 22634
cannam@95 22635 # configure is writing to config.log, and then calls config.status.
cannam@95 22636 # config.status does its own redirection, appending to config.log.
cannam@95 22637 # Unfortunately, on DOS this fails, as config.log is still kept open
cannam@95 22638 # by configure, so config.status won't be able to write to it; its
cannam@95 22639 # output is simply discarded. So we exec the FD to /dev/null,
cannam@95 22640 # effectively closing config.log, so it can be properly (re)opened and
cannam@95 22641 # appended to by config.status. When coming back to configure, we
cannam@95 22642 # need to make the FD available again.
cannam@95 22643 if test "$no_create" != yes; then
cannam@95 22644 ac_cs_success=:
cannam@95 22645 ac_config_status_args=
cannam@95 22646 test "$silent" = yes &&
cannam@95 22647 ac_config_status_args="$ac_config_status_args --quiet"
cannam@95 22648 exec 5>/dev/null
cannam@95 22649 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
cannam@95 22650 exec 5>>config.log
cannam@95 22651 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
cannam@95 22652 # would make configure fail if this is the last instruction.
cannam@95 22653 $ac_cs_success || as_fn_exit 1
cannam@95 22654 fi
cannam@95 22655 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cannam@95 22656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cannam@95 22657 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
cannam@95 22658 fi
cannam@95 22659