annotate src/libmad-0.15.1b/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 545efbb81310
children
rev   line source
cannam@85 1 #! /bin/sh
cannam@85 2 # From configure.ac Id: configure.ac,v 1.9 2004/01/23 09:41:32 rob Exp .
cannam@85 3 # Guess values for system-dependent variables and create Makefiles.
cannam@85 4 # Generated by GNU Autoconf 2.59 for MPEG Audio Decoder 0.15.1b.
cannam@85 5 #
cannam@85 6 # Report bugs to <support@underbit.com>.
cannam@85 7 #
cannam@85 8 # Copyright (C) 2003 Free Software Foundation, Inc.
cannam@85 9 # This configure script is free software; the Free Software Foundation
cannam@85 10 # gives unlimited permission to copy, distribute and modify it.
cannam@85 11 ## --------------------- ##
cannam@85 12 ## M4sh Initialization. ##
cannam@85 13 ## --------------------- ##
cannam@85 14
cannam@85 15 # Be Bourne compatible
cannam@85 16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
cannam@85 17 emulate sh
cannam@85 18 NULLCMD=:
cannam@85 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
cannam@85 20 # is contrary to our usage. Disable this feature.
cannam@85 21 alias -g '${1+"$@"}'='"$@"'
cannam@85 22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
cannam@85 23 set -o posix
cannam@85 24 fi
cannam@85 25 DUALCASE=1; export DUALCASE # for MKS sh
cannam@85 26
cannam@85 27 # Support unset when possible.
cannam@85 28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
cannam@85 29 as_unset=unset
cannam@85 30 else
cannam@85 31 as_unset=false
cannam@85 32 fi
cannam@85 33
cannam@85 34
cannam@85 35 # Work around bugs in pre-3.0 UWIN ksh.
cannam@85 36 $as_unset ENV MAIL MAILPATH
cannam@85 37 PS1='$ '
cannam@85 38 PS2='> '
cannam@85 39 PS4='+ '
cannam@85 40
cannam@85 41 # NLS nuisances.
cannam@85 42 for as_var in \
cannam@85 43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
cannam@85 44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
cannam@85 45 LC_TELEPHONE LC_TIME
cannam@85 46 do
cannam@85 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
cannam@85 48 eval $as_var=C; export $as_var
cannam@85 49 else
cannam@85 50 $as_unset $as_var
cannam@85 51 fi
cannam@85 52 done
cannam@85 53
cannam@85 54 # Required to use basename.
cannam@85 55 if expr a : '\(a\)' >/dev/null 2>&1; then
cannam@85 56 as_expr=expr
cannam@85 57 else
cannam@85 58 as_expr=false
cannam@85 59 fi
cannam@85 60
cannam@85 61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
cannam@85 62 as_basename=basename
cannam@85 63 else
cannam@85 64 as_basename=false
cannam@85 65 fi
cannam@85 66
cannam@85 67
cannam@85 68 # Name of the executable.
cannam@85 69 as_me=`$as_basename "$0" ||
cannam@85 70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
cannam@85 71 X"$0" : 'X\(//\)$' \| \
cannam@85 72 X"$0" : 'X\(/\)$' \| \
cannam@85 73 . : '\(.\)' 2>/dev/null ||
cannam@85 74 echo X/"$0" |
cannam@85 75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
cannam@85 76 /^X\/\(\/\/\)$/{ s//\1/; q; }
cannam@85 77 /^X\/\(\/\).*/{ s//\1/; q; }
cannam@85 78 s/.*/./; q'`
cannam@85 79
cannam@85 80
cannam@85 81 # PATH needs CR, and LINENO needs CR and PATH.
cannam@85 82 # Avoid depending upon Character Ranges.
cannam@85 83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
cannam@85 84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
cannam@85 85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
cannam@85 86 as_cr_digits='0123456789'
cannam@85 87 as_cr_alnum=$as_cr_Letters$as_cr_digits
cannam@85 88
cannam@85 89 # The user is always right.
cannam@85 90 if test "${PATH_SEPARATOR+set}" != set; then
cannam@85 91 echo "#! /bin/sh" >conf$$.sh
cannam@85 92 echo "exit 0" >>conf$$.sh
cannam@85 93 chmod +x conf$$.sh
cannam@85 94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
cannam@85 95 PATH_SEPARATOR=';'
cannam@85 96 else
cannam@85 97 PATH_SEPARATOR=:
cannam@85 98 fi
cannam@85 99 rm -f conf$$.sh
cannam@85 100 fi
cannam@85 101
cannam@85 102
cannam@85 103 as_lineno_1=$LINENO
cannam@85 104 as_lineno_2=$LINENO
cannam@85 105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
cannam@85 106 test "x$as_lineno_1" != "x$as_lineno_2" &&
cannam@85 107 test "x$as_lineno_3" = "x$as_lineno_2" || {
cannam@85 108 # Find who we are. Look in the path if we contain no path at all
cannam@85 109 # relative or not.
cannam@85 110 case $0 in
cannam@85 111 *[\\/]* ) as_myself=$0 ;;
cannam@85 112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 113 for as_dir in $PATH
cannam@85 114 do
cannam@85 115 IFS=$as_save_IFS
cannam@85 116 test -z "$as_dir" && as_dir=.
cannam@85 117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
cannam@85 118 done
cannam@85 119
cannam@85 120 ;;
cannam@85 121 esac
cannam@85 122 # We did not find ourselves, most probably we were run as `sh COMMAND'
cannam@85 123 # in which case we are not to be found in the path.
cannam@85 124 if test "x$as_myself" = x; then
cannam@85 125 as_myself=$0
cannam@85 126 fi
cannam@85 127 if test ! -f "$as_myself"; then
cannam@85 128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
cannam@85 129 { (exit 1); exit 1; }; }
cannam@85 130 fi
cannam@85 131 case $CONFIG_SHELL in
cannam@85 132 '')
cannam@85 133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
cannam@85 135 do
cannam@85 136 IFS=$as_save_IFS
cannam@85 137 test -z "$as_dir" && as_dir=.
cannam@85 138 for as_base in sh bash ksh sh5; do
cannam@85 139 case $as_dir in
cannam@85 140 /*)
cannam@85 141 if ("$as_dir/$as_base" -c '
cannam@85 142 as_lineno_1=$LINENO
cannam@85 143 as_lineno_2=$LINENO
cannam@85 144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
cannam@85 145 test "x$as_lineno_1" != "x$as_lineno_2" &&
cannam@85 146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
cannam@85 147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
cannam@85 148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
cannam@85 149 CONFIG_SHELL=$as_dir/$as_base
cannam@85 150 export CONFIG_SHELL
cannam@85 151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
cannam@85 152 fi;;
cannam@85 153 esac
cannam@85 154 done
cannam@85 155 done
cannam@85 156 ;;
cannam@85 157 esac
cannam@85 158
cannam@85 159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
cannam@85 160 # uniformly replaced by the line number. The first 'sed' inserts a
cannam@85 161 # line-number line before each line; the second 'sed' does the real
cannam@85 162 # work. The second script uses 'N' to pair each line-number line
cannam@85 163 # with the numbered line, and appends trailing '-' during
cannam@85 164 # substitution so that $LINENO is not a special case at line end.
cannam@85 165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
cannam@85 166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
cannam@85 167 sed '=' <$as_myself |
cannam@85 168 sed '
cannam@85 169 N
cannam@85 170 s,$,-,
cannam@85 171 : loop
cannam@85 172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
cannam@85 173 t loop
cannam@85 174 s,-$,,
cannam@85 175 s,^['$as_cr_digits']*\n,,
cannam@85 176 ' >$as_me.lineno &&
cannam@85 177 chmod +x $as_me.lineno ||
cannam@85 178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
cannam@85 179 { (exit 1); exit 1; }; }
cannam@85 180
cannam@85 181 # Don't try to exec as it changes $[0], causing all sort of problems
cannam@85 182 # (the dirname of $[0] is not the place where we might find the
cannam@85 183 # original and so on. Autoconf is especially sensible to this).
cannam@85 184 . ./$as_me.lineno
cannam@85 185 # Exit status is that of the last command.
cannam@85 186 exit
cannam@85 187 }
cannam@85 188
cannam@85 189
cannam@85 190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
cannam@85 191 *c*,-n*) ECHO_N= ECHO_C='
cannam@85 192 ' ECHO_T=' ' ;;
cannam@85 193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
cannam@85 194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
cannam@85 195 esac
cannam@85 196
cannam@85 197 if expr a : '\(a\)' >/dev/null 2>&1; then
cannam@85 198 as_expr=expr
cannam@85 199 else
cannam@85 200 as_expr=false
cannam@85 201 fi
cannam@85 202
cannam@85 203 rm -f conf$$ conf$$.exe conf$$.file
cannam@85 204 echo >conf$$.file
cannam@85 205 if ln -s conf$$.file conf$$ 2>/dev/null; then
cannam@85 206 # We could just check for DJGPP; but this test a) works b) is more generic
cannam@85 207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
cannam@85 208 if test -f conf$$.exe; then
cannam@85 209 # Don't use ln at all; we don't have any links
cannam@85 210 as_ln_s='cp -p'
cannam@85 211 else
cannam@85 212 as_ln_s='ln -s'
cannam@85 213 fi
cannam@85 214 elif ln conf$$.file conf$$ 2>/dev/null; then
cannam@85 215 as_ln_s=ln
cannam@85 216 else
cannam@85 217 as_ln_s='cp -p'
cannam@85 218 fi
cannam@85 219 rm -f conf$$ conf$$.exe conf$$.file
cannam@85 220
cannam@85 221 if mkdir -p . 2>/dev/null; then
cannam@85 222 as_mkdir_p=:
cannam@85 223 else
cannam@85 224 test -d ./-p && rmdir ./-p
cannam@85 225 as_mkdir_p=false
cannam@85 226 fi
cannam@85 227
cannam@85 228 as_executable_p="test -f"
cannam@85 229
cannam@85 230 # Sed expression to map a string onto a valid CPP name.
cannam@85 231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
cannam@85 232
cannam@85 233 # Sed expression to map a string onto a valid variable name.
cannam@85 234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
cannam@85 235
cannam@85 236
cannam@85 237 # IFS
cannam@85 238 # We need space, tab and new line, in precisely that order.
cannam@85 239 as_nl='
cannam@85 240 '
cannam@85 241 IFS=" $as_nl"
cannam@85 242
cannam@85 243 # CDPATH.
cannam@85 244 $as_unset CDPATH
cannam@85 245
cannam@85 246
cannam@85 247
cannam@85 248 # Check that we are running under the correct shell.
cannam@85 249 SHELL=${CONFIG_SHELL-/bin/sh}
cannam@85 250
cannam@85 251 case X$ECHO in
cannam@85 252 X*--fallback-echo)
cannam@85 253 # Remove one level of quotation (which was required for Make).
cannam@85 254 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
cannam@85 255 ;;
cannam@85 256 esac
cannam@85 257
cannam@85 258 echo=${ECHO-echo}
cannam@85 259 if test "X$1" = X--no-reexec; then
cannam@85 260 # Discard the --no-reexec flag, and continue.
cannam@85 261 shift
cannam@85 262 elif test "X$1" = X--fallback-echo; then
cannam@85 263 # Avoid inline document here, it may be left over
cannam@85 264 :
cannam@85 265 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
cannam@85 266 # Yippee, $echo works!
cannam@85 267 :
cannam@85 268 else
cannam@85 269 # Restart under the correct shell.
cannam@85 270 exec $SHELL "$0" --no-reexec ${1+"$@"}
cannam@85 271 fi
cannam@85 272
cannam@85 273 if test "X$1" = X--fallback-echo; then
cannam@85 274 # used as fallback echo
cannam@85 275 shift
cannam@85 276 cat <<EOF
cannam@85 277 $*
cannam@85 278 EOF
cannam@85 279 exit 0
cannam@85 280 fi
cannam@85 281
cannam@85 282 # The HP-UX ksh and POSIX shell print the target directory to stdout
cannam@85 283 # if CDPATH is set.
cannam@85 284 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
cannam@85 285
cannam@85 286 if test -z "$ECHO"; then
cannam@85 287 if test "X${echo_test_string+set}" != Xset; then
cannam@85 288 # find a string as large as possible, as long as the shell can cope with it
cannam@85 289 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
cannam@85 290 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
cannam@85 291 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
cannam@85 292 echo_test_string="`eval $cmd`" &&
cannam@85 293 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
cannam@85 294 then
cannam@85 295 break
cannam@85 296 fi
cannam@85 297 done
cannam@85 298 fi
cannam@85 299
cannam@85 300 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
cannam@85 301 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
cannam@85 302 test "X$echo_testing_string" = "X$echo_test_string"; then
cannam@85 303 :
cannam@85 304 else
cannam@85 305 # The Solaris, AIX, and Digital Unix default echo programs unquote
cannam@85 306 # backslashes. This makes it impossible to quote backslashes using
cannam@85 307 # echo "$something" | sed 's/\\/\\\\/g'
cannam@85 308 #
cannam@85 309 # So, first we look for a working echo in the user's PATH.
cannam@85 310
cannam@85 311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@85 312 for dir in $PATH /usr/ucb; do
cannam@85 313 IFS="$lt_save_ifs"
cannam@85 314 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
cannam@85 315 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
cannam@85 316 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
cannam@85 317 test "X$echo_testing_string" = "X$echo_test_string"; then
cannam@85 318 echo="$dir/echo"
cannam@85 319 break
cannam@85 320 fi
cannam@85 321 done
cannam@85 322 IFS="$lt_save_ifs"
cannam@85 323
cannam@85 324 if test "X$echo" = Xecho; then
cannam@85 325 # We didn't find a better echo, so look for alternatives.
cannam@85 326 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
cannam@85 327 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
cannam@85 328 test "X$echo_testing_string" = "X$echo_test_string"; then
cannam@85 329 # This shell has a builtin print -r that does the trick.
cannam@85 330 echo='print -r'
cannam@85 331 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
cannam@85 332 test "X$CONFIG_SHELL" != X/bin/ksh; then
cannam@85 333 # If we have ksh, try running configure again with it.
cannam@85 334 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
cannam@85 335 export ORIGINAL_CONFIG_SHELL
cannam@85 336 CONFIG_SHELL=/bin/ksh
cannam@85 337 export CONFIG_SHELL
cannam@85 338 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
cannam@85 339 else
cannam@85 340 # Try using printf.
cannam@85 341 echo='printf %s\n'
cannam@85 342 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
cannam@85 343 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
cannam@85 344 test "X$echo_testing_string" = "X$echo_test_string"; then
cannam@85 345 # Cool, printf works
cannam@85 346 :
cannam@85 347 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
cannam@85 348 test "X$echo_testing_string" = 'X\t' &&
cannam@85 349 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
cannam@85 350 test "X$echo_testing_string" = "X$echo_test_string"; then
cannam@85 351 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
cannam@85 352 export CONFIG_SHELL
cannam@85 353 SHELL="$CONFIG_SHELL"
cannam@85 354 export SHELL
cannam@85 355 echo="$CONFIG_SHELL $0 --fallback-echo"
cannam@85 356 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
cannam@85 357 test "X$echo_testing_string" = 'X\t' &&
cannam@85 358 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
cannam@85 359 test "X$echo_testing_string" = "X$echo_test_string"; then
cannam@85 360 echo="$CONFIG_SHELL $0 --fallback-echo"
cannam@85 361 else
cannam@85 362 # maybe with a smaller string...
cannam@85 363 prev=:
cannam@85 364
cannam@85 365 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
cannam@85 366 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
cannam@85 367 then
cannam@85 368 break
cannam@85 369 fi
cannam@85 370 prev="$cmd"
cannam@85 371 done
cannam@85 372
cannam@85 373 if test "$prev" != 'sed 50q "$0"'; then
cannam@85 374 echo_test_string=`eval $prev`
cannam@85 375 export echo_test_string
cannam@85 376 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
cannam@85 377 else
cannam@85 378 # Oops. We lost completely, so just stick with echo.
cannam@85 379 echo=echo
cannam@85 380 fi
cannam@85 381 fi
cannam@85 382 fi
cannam@85 383 fi
cannam@85 384 fi
cannam@85 385 fi
cannam@85 386
cannam@85 387 # Copy echo and quote the copy suitably for passing to libtool from
cannam@85 388 # the Makefile, instead of quoting the original, which is used later.
cannam@85 389 ECHO=$echo
cannam@85 390 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
cannam@85 391 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
cannam@85 392 fi
cannam@85 393
cannam@85 394
cannam@85 395
cannam@85 396
cannam@85 397 tagnames=${tagnames+${tagnames},}CXX
cannam@85 398
cannam@85 399 tagnames=${tagnames+${tagnames},}F77
cannam@85 400
cannam@85 401 # Name of the host.
cannam@85 402 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
cannam@85 403 # so uname gets run too.
cannam@85 404 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@85 405
cannam@85 406 exec 6>&1
cannam@85 407
cannam@85 408 #
cannam@85 409 # Initializations.
cannam@85 410 #
cannam@85 411 ac_default_prefix=/usr/local
cannam@85 412 ac_config_libobj_dir=.
cannam@85 413 cross_compiling=no
cannam@85 414 subdirs=
cannam@85 415 MFLAGS=
cannam@85 416 MAKEFLAGS=
cannam@85 417 SHELL=${CONFIG_SHELL-/bin/sh}
cannam@85 418
cannam@85 419 # Maximum number of lines to put in a shell here document.
cannam@85 420 # This variable seems obsolete. It should probably be removed, and
cannam@85 421 # only ac_max_sed_lines should be used.
cannam@85 422 : ${ac_max_here_lines=38}
cannam@85 423
cannam@85 424 # Identity of this package.
cannam@85 425 PACKAGE_NAME='MPEG Audio Decoder'
cannam@85 426 PACKAGE_TARNAME='libmad'
cannam@85 427 PACKAGE_VERSION='0.15.1b'
cannam@85 428 PACKAGE_STRING='MPEG Audio Decoder 0.15.1b'
cannam@85 429 PACKAGE_BUGREPORT='support@underbit.com'
cannam@85 430
cannam@85 431 ac_unique_file="decoder.h"
cannam@85 432 # Factoring default headers for most tests.
cannam@85 433 ac_includes_default="\
cannam@85 434 #include <stdio.h>
cannam@85 435 #if HAVE_SYS_TYPES_H
cannam@85 436 # include <sys/types.h>
cannam@85 437 #endif
cannam@85 438 #if HAVE_SYS_STAT_H
cannam@85 439 # include <sys/stat.h>
cannam@85 440 #endif
cannam@85 441 #if STDC_HEADERS
cannam@85 442 # include <stdlib.h>
cannam@85 443 # include <stddef.h>
cannam@85 444 #else
cannam@85 445 # if HAVE_STDLIB_H
cannam@85 446 # include <stdlib.h>
cannam@85 447 # endif
cannam@85 448 #endif
cannam@85 449 #if HAVE_STRING_H
cannam@85 450 # if !STDC_HEADERS && HAVE_MEMORY_H
cannam@85 451 # include <memory.h>
cannam@85 452 # endif
cannam@85 453 # include <string.h>
cannam@85 454 #endif
cannam@85 455 #if HAVE_STRINGS_H
cannam@85 456 # include <strings.h>
cannam@85 457 #endif
cannam@85 458 #if HAVE_INTTYPES_H
cannam@85 459 # include <inttypes.h>
cannam@85 460 #else
cannam@85 461 # if HAVE_STDINT_H
cannam@85 462 # include <stdint.h>
cannam@85 463 # endif
cannam@85 464 #endif
cannam@85 465 #if HAVE_UNISTD_H
cannam@85 466 # include <unistd.h>
cannam@85 467 #endif"
cannam@85 468
cannam@85 469 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CCAS CCASFLAGS EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS FPM ASO ASO_OBJS LIBOBJS LTLIBOBJS'
cannam@85 470 ac_subst_files=''
cannam@85 471
cannam@85 472 # Initialize some variables set by options.
cannam@85 473 ac_init_help=
cannam@85 474 ac_init_version=false
cannam@85 475 # The variables have the same names as the options, with
cannam@85 476 # dashes changed to underlines.
cannam@85 477 cache_file=/dev/null
cannam@85 478 exec_prefix=NONE
cannam@85 479 no_create=
cannam@85 480 no_recursion=
cannam@85 481 prefix=NONE
cannam@85 482 program_prefix=NONE
cannam@85 483 program_suffix=NONE
cannam@85 484 program_transform_name=s,x,x,
cannam@85 485 silent=
cannam@85 486 site=
cannam@85 487 srcdir=
cannam@85 488 verbose=
cannam@85 489 x_includes=NONE
cannam@85 490 x_libraries=NONE
cannam@85 491
cannam@85 492 # Installation directory options.
cannam@85 493 # These are left unexpanded so users can "make install exec_prefix=/foo"
cannam@85 494 # and all the variables that are supposed to be based on exec_prefix
cannam@85 495 # by default will actually change.
cannam@85 496 # Use braces instead of parens because sh, perl, etc. also accept them.
cannam@85 497 bindir='${exec_prefix}/bin'
cannam@85 498 sbindir='${exec_prefix}/sbin'
cannam@85 499 libexecdir='${exec_prefix}/libexec'
cannam@85 500 datadir='${prefix}/share'
cannam@85 501 sysconfdir='${prefix}/etc'
cannam@85 502 sharedstatedir='${prefix}/com'
cannam@85 503 localstatedir='${prefix}/var'
cannam@85 504 libdir='${exec_prefix}/lib'
cannam@85 505 includedir='${prefix}/include'
cannam@85 506 oldincludedir='/usr/include'
cannam@85 507 infodir='${prefix}/info'
cannam@85 508 mandir='${prefix}/man'
cannam@85 509
cannam@85 510 ac_prev=
cannam@85 511 for ac_option
cannam@85 512 do
cannam@85 513 # If the previous option needs an argument, assign it.
cannam@85 514 if test -n "$ac_prev"; then
cannam@85 515 eval "$ac_prev=\$ac_option"
cannam@85 516 ac_prev=
cannam@85 517 continue
cannam@85 518 fi
cannam@85 519
cannam@85 520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
cannam@85 521
cannam@85 522 # Accept the important Cygnus configure options, so we can diagnose typos.
cannam@85 523
cannam@85 524 case $ac_option in
cannam@85 525
cannam@85 526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
cannam@85 527 ac_prev=bindir ;;
cannam@85 528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
cannam@85 529 bindir=$ac_optarg ;;
cannam@85 530
cannam@85 531 -build | --build | --buil | --bui | --bu)
cannam@85 532 ac_prev=build_alias ;;
cannam@85 533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
cannam@85 534 build_alias=$ac_optarg ;;
cannam@85 535
cannam@85 536 -cache-file | --cache-file | --cache-fil | --cache-fi \
cannam@85 537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
cannam@85 538 ac_prev=cache_file ;;
cannam@85 539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
cannam@85 540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cannam@85 541 cache_file=$ac_optarg ;;
cannam@85 542
cannam@85 543 --config-cache | -C)
cannam@85 544 cache_file=config.cache ;;
cannam@85 545
cannam@85 546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
cannam@85 547 ac_prev=datadir ;;
cannam@85 548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
cannam@85 549 | --da=*)
cannam@85 550 datadir=$ac_optarg ;;
cannam@85 551
cannam@85 552 -disable-* | --disable-*)
cannam@85 553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
cannam@85 554 # Reject names that are not valid shell variable names.
cannam@85 555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
cannam@85 556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
cannam@85 557 { (exit 1); exit 1; }; }
cannam@85 558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
cannam@85 559 eval "enable_$ac_feature=no" ;;
cannam@85 560
cannam@85 561 -enable-* | --enable-*)
cannam@85 562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
cannam@85 563 # Reject names that are not valid shell variable names.
cannam@85 564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
cannam@85 565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
cannam@85 566 { (exit 1); exit 1; }; }
cannam@85 567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
cannam@85 568 case $ac_option in
cannam@85 569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
cannam@85 570 *) ac_optarg=yes ;;
cannam@85 571 esac
cannam@85 572 eval "enable_$ac_feature='$ac_optarg'" ;;
cannam@85 573
cannam@85 574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
cannam@85 575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
cannam@85 576 | --exec | --exe | --ex)
cannam@85 577 ac_prev=exec_prefix ;;
cannam@85 578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
cannam@85 579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
cannam@85 580 | --exec=* | --exe=* | --ex=*)
cannam@85 581 exec_prefix=$ac_optarg ;;
cannam@85 582
cannam@85 583 -gas | --gas | --ga | --g)
cannam@85 584 # Obsolete; use --with-gas.
cannam@85 585 with_gas=yes ;;
cannam@85 586
cannam@85 587 -help | --help | --hel | --he | -h)
cannam@85 588 ac_init_help=long ;;
cannam@85 589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
cannam@85 590 ac_init_help=recursive ;;
cannam@85 591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
cannam@85 592 ac_init_help=short ;;
cannam@85 593
cannam@85 594 -host | --host | --hos | --ho)
cannam@85 595 ac_prev=host_alias ;;
cannam@85 596 -host=* | --host=* | --hos=* | --ho=*)
cannam@85 597 host_alias=$ac_optarg ;;
cannam@85 598
cannam@85 599 -includedir | --includedir | --includedi | --included | --include \
cannam@85 600 | --includ | --inclu | --incl | --inc)
cannam@85 601 ac_prev=includedir ;;
cannam@85 602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
cannam@85 603 | --includ=* | --inclu=* | --incl=* | --inc=*)
cannam@85 604 includedir=$ac_optarg ;;
cannam@85 605
cannam@85 606 -infodir | --infodir | --infodi | --infod | --info | --inf)
cannam@85 607 ac_prev=infodir ;;
cannam@85 608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
cannam@85 609 infodir=$ac_optarg ;;
cannam@85 610
cannam@85 611 -libdir | --libdir | --libdi | --libd)
cannam@85 612 ac_prev=libdir ;;
cannam@85 613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
cannam@85 614 libdir=$ac_optarg ;;
cannam@85 615
cannam@85 616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
cannam@85 617 | --libexe | --libex | --libe)
cannam@85 618 ac_prev=libexecdir ;;
cannam@85 619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
cannam@85 620 | --libexe=* | --libex=* | --libe=*)
cannam@85 621 libexecdir=$ac_optarg ;;
cannam@85 622
cannam@85 623 -localstatedir | --localstatedir | --localstatedi | --localstated \
cannam@85 624 | --localstate | --localstat | --localsta | --localst \
cannam@85 625 | --locals | --local | --loca | --loc | --lo)
cannam@85 626 ac_prev=localstatedir ;;
cannam@85 627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cannam@85 628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
cannam@85 629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
cannam@85 630 localstatedir=$ac_optarg ;;
cannam@85 631
cannam@85 632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
cannam@85 633 ac_prev=mandir ;;
cannam@85 634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
cannam@85 635 mandir=$ac_optarg ;;
cannam@85 636
cannam@85 637 -nfp | --nfp | --nf)
cannam@85 638 # Obsolete; use --without-fp.
cannam@85 639 with_fp=no ;;
cannam@85 640
cannam@85 641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
cannam@85 642 | --no-cr | --no-c | -n)
cannam@85 643 no_create=yes ;;
cannam@85 644
cannam@85 645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
cannam@85 646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
cannam@85 647 no_recursion=yes ;;
cannam@85 648
cannam@85 649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
cannam@85 650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
cannam@85 651 | --oldin | --oldi | --old | --ol | --o)
cannam@85 652 ac_prev=oldincludedir ;;
cannam@85 653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
cannam@85 654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
cannam@85 655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
cannam@85 656 oldincludedir=$ac_optarg ;;
cannam@85 657
cannam@85 658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
cannam@85 659 ac_prev=prefix ;;
cannam@85 660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
cannam@85 661 prefix=$ac_optarg ;;
cannam@85 662
cannam@85 663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
cannam@85 664 | --program-pre | --program-pr | --program-p)
cannam@85 665 ac_prev=program_prefix ;;
cannam@85 666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
cannam@85 667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
cannam@85 668 program_prefix=$ac_optarg ;;
cannam@85 669
cannam@85 670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
cannam@85 671 | --program-suf | --program-su | --program-s)
cannam@85 672 ac_prev=program_suffix ;;
cannam@85 673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
cannam@85 674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
cannam@85 675 program_suffix=$ac_optarg ;;
cannam@85 676
cannam@85 677 -program-transform-name | --program-transform-name \
cannam@85 678 | --program-transform-nam | --program-transform-na \
cannam@85 679 | --program-transform-n | --program-transform- \
cannam@85 680 | --program-transform | --program-transfor \
cannam@85 681 | --program-transfo | --program-transf \
cannam@85 682 | --program-trans | --program-tran \
cannam@85 683 | --progr-tra | --program-tr | --program-t)
cannam@85 684 ac_prev=program_transform_name ;;
cannam@85 685 -program-transform-name=* | --program-transform-name=* \
cannam@85 686 | --program-transform-nam=* | --program-transform-na=* \
cannam@85 687 | --program-transform-n=* | --program-transform-=* \
cannam@85 688 | --program-transform=* | --program-transfor=* \
cannam@85 689 | --program-transfo=* | --program-transf=* \
cannam@85 690 | --program-trans=* | --program-tran=* \
cannam@85 691 | --progr-tra=* | --program-tr=* | --program-t=*)
cannam@85 692 program_transform_name=$ac_optarg ;;
cannam@85 693
cannam@85 694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@85 695 | -silent | --silent | --silen | --sile | --sil)
cannam@85 696 silent=yes ;;
cannam@85 697
cannam@85 698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
cannam@85 699 ac_prev=sbindir ;;
cannam@85 700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
cannam@85 701 | --sbi=* | --sb=*)
cannam@85 702 sbindir=$ac_optarg ;;
cannam@85 703
cannam@85 704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
cannam@85 705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
cannam@85 706 | --sharedst | --shareds | --shared | --share | --shar \
cannam@85 707 | --sha | --sh)
cannam@85 708 ac_prev=sharedstatedir ;;
cannam@85 709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
cannam@85 710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
cannam@85 711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
cannam@85 712 | --sha=* | --sh=*)
cannam@85 713 sharedstatedir=$ac_optarg ;;
cannam@85 714
cannam@85 715 -site | --site | --sit)
cannam@85 716 ac_prev=site ;;
cannam@85 717 -site=* | --site=* | --sit=*)
cannam@85 718 site=$ac_optarg ;;
cannam@85 719
cannam@85 720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
cannam@85 721 ac_prev=srcdir ;;
cannam@85 722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
cannam@85 723 srcdir=$ac_optarg ;;
cannam@85 724
cannam@85 725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
cannam@85 726 | --syscon | --sysco | --sysc | --sys | --sy)
cannam@85 727 ac_prev=sysconfdir ;;
cannam@85 728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
cannam@85 729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
cannam@85 730 sysconfdir=$ac_optarg ;;
cannam@85 731
cannam@85 732 -target | --target | --targe | --targ | --tar | --ta | --t)
cannam@85 733 ac_prev=target_alias ;;
cannam@85 734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
cannam@85 735 target_alias=$ac_optarg ;;
cannam@85 736
cannam@85 737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
cannam@85 738 verbose=yes ;;
cannam@85 739
cannam@85 740 -version | --version | --versio | --versi | --vers | -V)
cannam@85 741 ac_init_version=: ;;
cannam@85 742
cannam@85 743 -with-* | --with-*)
cannam@85 744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
cannam@85 745 # Reject names that are not valid shell variable names.
cannam@85 746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
cannam@85 747 { echo "$as_me: error: invalid package name: $ac_package" >&2
cannam@85 748 { (exit 1); exit 1; }; }
cannam@85 749 ac_package=`echo $ac_package| sed 's/-/_/g'`
cannam@85 750 case $ac_option in
cannam@85 751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
cannam@85 752 *) ac_optarg=yes ;;
cannam@85 753 esac
cannam@85 754 eval "with_$ac_package='$ac_optarg'" ;;
cannam@85 755
cannam@85 756 -without-* | --without-*)
cannam@85 757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
cannam@85 758 # Reject names that are not valid shell variable names.
cannam@85 759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
cannam@85 760 { echo "$as_me: error: invalid package name: $ac_package" >&2
cannam@85 761 { (exit 1); exit 1; }; }
cannam@85 762 ac_package=`echo $ac_package | sed 's/-/_/g'`
cannam@85 763 eval "with_$ac_package=no" ;;
cannam@85 764
cannam@85 765 --x)
cannam@85 766 # Obsolete; use --with-x.
cannam@85 767 with_x=yes ;;
cannam@85 768
cannam@85 769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
cannam@85 770 | --x-incl | --x-inc | --x-in | --x-i)
cannam@85 771 ac_prev=x_includes ;;
cannam@85 772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
cannam@85 773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
cannam@85 774 x_includes=$ac_optarg ;;
cannam@85 775
cannam@85 776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
cannam@85 777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
cannam@85 778 ac_prev=x_libraries ;;
cannam@85 779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
cannam@85 780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
cannam@85 781 x_libraries=$ac_optarg ;;
cannam@85 782
cannam@85 783 -*) { echo "$as_me: error: unrecognized option: $ac_option
cannam@85 784 Try \`$0 --help' for more information." >&2
cannam@85 785 { (exit 1); exit 1; }; }
cannam@85 786 ;;
cannam@85 787
cannam@85 788 *=*)
cannam@85 789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
cannam@85 790 # Reject names that are not valid shell variable names.
cannam@85 791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
cannam@85 792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
cannam@85 793 { (exit 1); exit 1; }; }
cannam@85 794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
cannam@85 795 eval "$ac_envvar='$ac_optarg'"
cannam@85 796 export $ac_envvar ;;
cannam@85 797
cannam@85 798 *)
cannam@85 799 # FIXME: should be removed in autoconf 3.0.
cannam@85 800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
cannam@85 801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cannam@85 802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cannam@85 803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
cannam@85 804 ;;
cannam@85 805
cannam@85 806 esac
cannam@85 807 done
cannam@85 808
cannam@85 809 if test -n "$ac_prev"; then
cannam@85 810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cannam@85 811 { echo "$as_me: error: missing argument to $ac_option" >&2
cannam@85 812 { (exit 1); exit 1; }; }
cannam@85 813 fi
cannam@85 814
cannam@85 815 # Be sure to have absolute paths.
cannam@85 816 for ac_var in exec_prefix prefix
cannam@85 817 do
cannam@85 818 eval ac_val=$`echo $ac_var`
cannam@85 819 case $ac_val in
cannam@85 820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
cannam@85 821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
cannam@85 822 { (exit 1); exit 1; }; };;
cannam@85 823 esac
cannam@85 824 done
cannam@85 825
cannam@85 826 # Be sure to have absolute paths.
cannam@85 827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
cannam@85 828 localstatedir libdir includedir oldincludedir infodir mandir
cannam@85 829 do
cannam@85 830 eval ac_val=$`echo $ac_var`
cannam@85 831 case $ac_val in
cannam@85 832 [\\/$]* | ?:[\\/]* ) ;;
cannam@85 833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
cannam@85 834 { (exit 1); exit 1; }; };;
cannam@85 835 esac
cannam@85 836 done
cannam@85 837
cannam@85 838 # There might be people who depend on the old broken behavior: `$host'
cannam@85 839 # used to hold the argument of --host etc.
cannam@85 840 # FIXME: To remove some day.
cannam@85 841 build=$build_alias
cannam@85 842 host=$host_alias
cannam@85 843 target=$target_alias
cannam@85 844
cannam@85 845 # FIXME: To remove some day.
cannam@85 846 if test "x$host_alias" != x; then
cannam@85 847 if test "x$build_alias" = x; then
cannam@85 848 cross_compiling=maybe
cannam@85 849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
cannam@85 850 If a cross compiler is detected then cross compile mode will be used." >&2
cannam@85 851 elif test "x$build_alias" != "x$host_alias"; then
cannam@85 852 cross_compiling=yes
cannam@85 853 fi
cannam@85 854 fi
cannam@85 855
cannam@85 856 ac_tool_prefix=
cannam@85 857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
cannam@85 858
cannam@85 859 test "$silent" = yes && exec 6>/dev/null
cannam@85 860
cannam@85 861
cannam@85 862 # Find the source files, if location was not specified.
cannam@85 863 if test -z "$srcdir"; then
cannam@85 864 ac_srcdir_defaulted=yes
cannam@85 865 # Try the directory containing this script, then its parent.
cannam@85 866 ac_confdir=`(dirname "$0") 2>/dev/null ||
cannam@85 867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 868 X"$0" : 'X\(//\)[^/]' \| \
cannam@85 869 X"$0" : 'X\(//\)$' \| \
cannam@85 870 X"$0" : 'X\(/\)' \| \
cannam@85 871 . : '\(.\)' 2>/dev/null ||
cannam@85 872 echo X"$0" |
cannam@85 873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
cannam@85 874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
cannam@85 875 /^X\(\/\/\)$/{ s//\1/; q; }
cannam@85 876 /^X\(\/\).*/{ s//\1/; q; }
cannam@85 877 s/.*/./; q'`
cannam@85 878 srcdir=$ac_confdir
cannam@85 879 if test ! -r $srcdir/$ac_unique_file; then
cannam@85 880 srcdir=..
cannam@85 881 fi
cannam@85 882 else
cannam@85 883 ac_srcdir_defaulted=no
cannam@85 884 fi
cannam@85 885 if test ! -r $srcdir/$ac_unique_file; then
cannam@85 886 if test "$ac_srcdir_defaulted" = yes; then
cannam@85 887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
cannam@85 888 { (exit 1); exit 1; }; }
cannam@85 889 else
cannam@85 890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
cannam@85 891 { (exit 1); exit 1; }; }
cannam@85 892 fi
cannam@85 893 fi
cannam@85 894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
cannam@85 895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
cannam@85 896 { (exit 1); exit 1; }; }
cannam@85 897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
cannam@85 898 ac_env_build_alias_set=${build_alias+set}
cannam@85 899 ac_env_build_alias_value=$build_alias
cannam@85 900 ac_cv_env_build_alias_set=${build_alias+set}
cannam@85 901 ac_cv_env_build_alias_value=$build_alias
cannam@85 902 ac_env_host_alias_set=${host_alias+set}
cannam@85 903 ac_env_host_alias_value=$host_alias
cannam@85 904 ac_cv_env_host_alias_set=${host_alias+set}
cannam@85 905 ac_cv_env_host_alias_value=$host_alias
cannam@85 906 ac_env_target_alias_set=${target_alias+set}
cannam@85 907 ac_env_target_alias_value=$target_alias
cannam@85 908 ac_cv_env_target_alias_set=${target_alias+set}
cannam@85 909 ac_cv_env_target_alias_value=$target_alias
cannam@85 910 ac_env_CC_set=${CC+set}
cannam@85 911 ac_env_CC_value=$CC
cannam@85 912 ac_cv_env_CC_set=${CC+set}
cannam@85 913 ac_cv_env_CC_value=$CC
cannam@85 914 ac_env_CFLAGS_set=${CFLAGS+set}
cannam@85 915 ac_env_CFLAGS_value=$CFLAGS
cannam@85 916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
cannam@85 917 ac_cv_env_CFLAGS_value=$CFLAGS
cannam@85 918 ac_env_LDFLAGS_set=${LDFLAGS+set}
cannam@85 919 ac_env_LDFLAGS_value=$LDFLAGS
cannam@85 920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
cannam@85 921 ac_cv_env_LDFLAGS_value=$LDFLAGS
cannam@85 922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
cannam@85 923 ac_env_CPPFLAGS_value=$CPPFLAGS
cannam@85 924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
cannam@85 925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
cannam@85 926 ac_env_CCAS_set=${CCAS+set}
cannam@85 927 ac_env_CCAS_value=$CCAS
cannam@85 928 ac_cv_env_CCAS_set=${CCAS+set}
cannam@85 929 ac_cv_env_CCAS_value=$CCAS
cannam@85 930 ac_env_CCASFLAGS_set=${CCASFLAGS+set}
cannam@85 931 ac_env_CCASFLAGS_value=$CCASFLAGS
cannam@85 932 ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
cannam@85 933 ac_cv_env_CCASFLAGS_value=$CCASFLAGS
cannam@85 934 ac_env_CPP_set=${CPP+set}
cannam@85 935 ac_env_CPP_value=$CPP
cannam@85 936 ac_cv_env_CPP_set=${CPP+set}
cannam@85 937 ac_cv_env_CPP_value=$CPP
cannam@85 938 ac_env_CXX_set=${CXX+set}
cannam@85 939 ac_env_CXX_value=$CXX
cannam@85 940 ac_cv_env_CXX_set=${CXX+set}
cannam@85 941 ac_cv_env_CXX_value=$CXX
cannam@85 942 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
cannam@85 943 ac_env_CXXFLAGS_value=$CXXFLAGS
cannam@85 944 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
cannam@85 945 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
cannam@85 946 ac_env_CXXCPP_set=${CXXCPP+set}
cannam@85 947 ac_env_CXXCPP_value=$CXXCPP
cannam@85 948 ac_cv_env_CXXCPP_set=${CXXCPP+set}
cannam@85 949 ac_cv_env_CXXCPP_value=$CXXCPP
cannam@85 950 ac_env_F77_set=${F77+set}
cannam@85 951 ac_env_F77_value=$F77
cannam@85 952 ac_cv_env_F77_set=${F77+set}
cannam@85 953 ac_cv_env_F77_value=$F77
cannam@85 954 ac_env_FFLAGS_set=${FFLAGS+set}
cannam@85 955 ac_env_FFLAGS_value=$FFLAGS
cannam@85 956 ac_cv_env_FFLAGS_set=${FFLAGS+set}
cannam@85 957 ac_cv_env_FFLAGS_value=$FFLAGS
cannam@85 958
cannam@85 959 #
cannam@85 960 # Report the --help message.
cannam@85 961 #
cannam@85 962 if test "$ac_init_help" = "long"; then
cannam@85 963 # Omit some internal or obsolete options to make the list less imposing.
cannam@85 964 # This message is too long to be a string in the A/UX 3.1 sh.
cannam@85 965 cat <<_ACEOF
cannam@85 966 \`configure' configures MPEG Audio Decoder 0.15.1b to adapt to many kinds of systems.
cannam@85 967
cannam@85 968 Usage: $0 [OPTION]... [VAR=VALUE]...
cannam@85 969
cannam@85 970 To assign environment variables (e.g., CC, CFLAGS...), specify them as
cannam@85 971 VAR=VALUE. See below for descriptions of some of the useful variables.
cannam@85 972
cannam@85 973 Defaults for the options are specified in brackets.
cannam@85 974
cannam@85 975 Configuration:
cannam@85 976 -h, --help display this help and exit
cannam@85 977 --help=short display options specific to this package
cannam@85 978 --help=recursive display the short help of all the included packages
cannam@85 979 -V, --version display version information and exit
cannam@85 980 -q, --quiet, --silent do not print \`checking...' messages
cannam@85 981 --cache-file=FILE cache test results in FILE [disabled]
cannam@85 982 -C, --config-cache alias for \`--cache-file=config.cache'
cannam@85 983 -n, --no-create do not create output files
cannam@85 984 --srcdir=DIR find the sources in DIR [configure dir or \`..']
cannam@85 985
cannam@85 986 _ACEOF
cannam@85 987
cannam@85 988 cat <<_ACEOF
cannam@85 989 Installation directories:
cannam@85 990 --prefix=PREFIX install architecture-independent files in PREFIX
cannam@85 991 [$ac_default_prefix]
cannam@85 992 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cannam@85 993 [PREFIX]
cannam@85 994
cannam@85 995 By default, \`make install' will install all the files in
cannam@85 996 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
cannam@85 997 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
cannam@85 998 for instance \`--prefix=\$HOME'.
cannam@85 999
cannam@85 1000 For better control, use the options below.
cannam@85 1001
cannam@85 1002 Fine tuning of the installation directories:
cannam@85 1003 --bindir=DIR user executables [EPREFIX/bin]
cannam@85 1004 --sbindir=DIR system admin executables [EPREFIX/sbin]
cannam@85 1005 --libexecdir=DIR program executables [EPREFIX/libexec]
cannam@85 1006 --datadir=DIR read-only architecture-independent data [PREFIX/share]
cannam@85 1007 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
cannam@85 1008 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
cannam@85 1009 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
cannam@85 1010 --libdir=DIR object code libraries [EPREFIX/lib]
cannam@85 1011 --includedir=DIR C header files [PREFIX/include]
cannam@85 1012 --oldincludedir=DIR C header files for non-gcc [/usr/include]
cannam@85 1013 --infodir=DIR info documentation [PREFIX/info]
cannam@85 1014 --mandir=DIR man documentation [PREFIX/man]
cannam@85 1015 _ACEOF
cannam@85 1016
cannam@85 1017 cat <<\_ACEOF
cannam@85 1018
cannam@85 1019 Program names:
cannam@85 1020 --program-prefix=PREFIX prepend PREFIX to installed program names
cannam@85 1021 --program-suffix=SUFFIX append SUFFIX to installed program names
cannam@85 1022 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
cannam@85 1023
cannam@85 1024 System types:
cannam@85 1025 --build=BUILD configure for building on BUILD [guessed]
cannam@85 1026 --host=HOST cross-compile to build programs to run on HOST [BUILD]
cannam@85 1027 _ACEOF
cannam@85 1028 fi
cannam@85 1029
cannam@85 1030 if test -n "$ac_init_help"; then
cannam@85 1031 case $ac_init_help in
cannam@85 1032 short | recursive ) echo "Configuration of MPEG Audio Decoder 0.15.1b:";;
cannam@85 1033 esac
cannam@85 1034 cat <<\_ACEOF
cannam@85 1035
cannam@85 1036 Optional Features:
cannam@85 1037 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
cannam@85 1038 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cannam@85 1039 --disable-dependency-tracking speeds up one-time build
cannam@85 1040 --enable-dependency-tracking do not reject slow dependency extractors
cannam@85 1041 --enable-shared[=PKGS]
cannam@85 1042 build shared libraries [default=yes]
cannam@85 1043 --enable-static[=PKGS]
cannam@85 1044 build static libraries [default=yes]
cannam@85 1045 --enable-fast-install[=PKGS]
cannam@85 1046 optimize for fast installation [default=yes]
cannam@85 1047 --disable-libtool-lock avoid locking (might break parallel builds)
cannam@85 1048 --enable-speed optimize for speed over accuracy
cannam@85 1049 --enable-accuracy optimize for accuracy over speed
cannam@85 1050 --enable-fpm=ARCH use ARCH-specific fixed-point math routines (one of:
cannam@85 1051 intel, arm, mips, sparc, ppc, 64bit, default)
cannam@85 1052 --enable-sso use subband synthesis optimization
cannam@85 1053 --disable-aso disable architecture-specific optimizations
cannam@85 1054 --enable-strict-iso use strict ISO/IEC interpretations
cannam@85 1055 --enable-profiling generate profiling code
cannam@85 1056 --enable-debugging enable diagnostic debugging support
cannam@85 1057 --disable-debugging do not enable debugging and use more optimization
cannam@85 1058 --enable-experimental enable experimental code
cannam@85 1059
cannam@85 1060 Optional Packages:
cannam@85 1061 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
cannam@85 1062 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cannam@85 1063 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cannam@85 1064 --with-pic try to use only PIC/non-PIC objects [default=use
cannam@85 1065 both]
cannam@85 1066 --with-tags[=TAGS]
cannam@85 1067 include additional configurations [automatic]
cannam@85 1068
cannam@85 1069 Some influential environment variables:
cannam@85 1070 CC C compiler command
cannam@85 1071 CFLAGS C compiler flags
cannam@85 1072 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
cannam@85 1073 nonstandard directory <lib dir>
cannam@85 1074 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
cannam@85 1075 headers in a nonstandard directory <include dir>
cannam@85 1076 CCAS assembler compiler command (defaults to CC)
cannam@85 1077 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
cannam@85 1078 CPP C preprocessor
cannam@85 1079 CXX C++ compiler command
cannam@85 1080 CXXFLAGS C++ compiler flags
cannam@85 1081 CXXCPP C++ preprocessor
cannam@85 1082 F77 Fortran 77 compiler command
cannam@85 1083 FFLAGS Fortran 77 compiler flags
cannam@85 1084
cannam@85 1085 Use these variables to override the choices made by `configure' or to help
cannam@85 1086 it to find libraries and programs with nonstandard names/locations.
cannam@85 1087
cannam@85 1088 Report bugs to <support@underbit.com>.
cannam@85 1089 _ACEOF
cannam@85 1090 fi
cannam@85 1091
cannam@85 1092 if test "$ac_init_help" = "recursive"; then
cannam@85 1093 # If there are subdirs, report their specific --help.
cannam@85 1094 ac_popdir=`pwd`
cannam@85 1095 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cannam@85 1096 test -d $ac_dir || continue
cannam@85 1097 ac_builddir=.
cannam@85 1098
cannam@85 1099 if test "$ac_dir" != .; then
cannam@85 1100 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
cannam@85 1101 # A "../" for each directory in $ac_dir_suffix.
cannam@85 1102 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
cannam@85 1103 else
cannam@85 1104 ac_dir_suffix= ac_top_builddir=
cannam@85 1105 fi
cannam@85 1106
cannam@85 1107 case $srcdir in
cannam@85 1108 .) # No --srcdir option. We are building in place.
cannam@85 1109 ac_srcdir=.
cannam@85 1110 if test -z "$ac_top_builddir"; then
cannam@85 1111 ac_top_srcdir=.
cannam@85 1112 else
cannam@85 1113 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
cannam@85 1114 fi ;;
cannam@85 1115 [\\/]* | ?:[\\/]* ) # Absolute path.
cannam@85 1116 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@85 1117 ac_top_srcdir=$srcdir ;;
cannam@85 1118 *) # Relative path.
cannam@85 1119 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
cannam@85 1120 ac_top_srcdir=$ac_top_builddir$srcdir ;;
cannam@85 1121 esac
cannam@85 1122
cannam@85 1123 # Do not use `cd foo && pwd` to compute absolute paths, because
cannam@85 1124 # the directories may not exist.
cannam@85 1125 case `pwd` in
cannam@85 1126 .) ac_abs_builddir="$ac_dir";;
cannam@85 1127 *)
cannam@85 1128 case "$ac_dir" in
cannam@85 1129 .) ac_abs_builddir=`pwd`;;
cannam@85 1130 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
cannam@85 1131 *) ac_abs_builddir=`pwd`/"$ac_dir";;
cannam@85 1132 esac;;
cannam@85 1133 esac
cannam@85 1134 case $ac_abs_builddir in
cannam@85 1135 .) ac_abs_top_builddir=${ac_top_builddir}.;;
cannam@85 1136 *)
cannam@85 1137 case ${ac_top_builddir}. in
cannam@85 1138 .) ac_abs_top_builddir=$ac_abs_builddir;;
cannam@85 1139 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
cannam@85 1140 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
cannam@85 1141 esac;;
cannam@85 1142 esac
cannam@85 1143 case $ac_abs_builddir in
cannam@85 1144 .) ac_abs_srcdir=$ac_srcdir;;
cannam@85 1145 *)
cannam@85 1146 case $ac_srcdir in
cannam@85 1147 .) ac_abs_srcdir=$ac_abs_builddir;;
cannam@85 1148 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
cannam@85 1149 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
cannam@85 1150 esac;;
cannam@85 1151 esac
cannam@85 1152 case $ac_abs_builddir in
cannam@85 1153 .) ac_abs_top_srcdir=$ac_top_srcdir;;
cannam@85 1154 *)
cannam@85 1155 case $ac_top_srcdir in
cannam@85 1156 .) ac_abs_top_srcdir=$ac_abs_builddir;;
cannam@85 1157 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
cannam@85 1158 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
cannam@85 1159 esac;;
cannam@85 1160 esac
cannam@85 1161
cannam@85 1162 cd $ac_dir
cannam@85 1163 # Check for guested configure; otherwise get Cygnus style configure.
cannam@85 1164 if test -f $ac_srcdir/configure.gnu; then
cannam@85 1165 echo
cannam@85 1166 $SHELL $ac_srcdir/configure.gnu --help=recursive
cannam@85 1167 elif test -f $ac_srcdir/configure; then
cannam@85 1168 echo
cannam@85 1169 $SHELL $ac_srcdir/configure --help=recursive
cannam@85 1170 elif test -f $ac_srcdir/configure.ac ||
cannam@85 1171 test -f $ac_srcdir/configure.in; then
cannam@85 1172 echo
cannam@85 1173 $ac_configure --help
cannam@85 1174 else
cannam@85 1175 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
cannam@85 1176 fi
cannam@85 1177 cd "$ac_popdir"
cannam@85 1178 done
cannam@85 1179 fi
cannam@85 1180
cannam@85 1181 test -n "$ac_init_help" && exit 0
cannam@85 1182 if $ac_init_version; then
cannam@85 1183 cat <<\_ACEOF
cannam@85 1184 MPEG Audio Decoder configure 0.15.1b
cannam@85 1185 generated by GNU Autoconf 2.59
cannam@85 1186
cannam@85 1187 Copyright (C) 2003 Free Software Foundation, Inc.
cannam@85 1188 This configure script is free software; the Free Software Foundation
cannam@85 1189 gives unlimited permission to copy, distribute and modify it.
cannam@85 1190 _ACEOF
cannam@85 1191 exit 0
cannam@85 1192 fi
cannam@85 1193 exec 5>config.log
cannam@85 1194 cat >&5 <<_ACEOF
cannam@85 1195 This file contains any messages produced by compilers while
cannam@85 1196 running configure, to aid debugging if configure makes a mistake.
cannam@85 1197
cannam@85 1198 It was created by MPEG Audio Decoder $as_me 0.15.1b, which was
cannam@85 1199 generated by GNU Autoconf 2.59. Invocation command line was
cannam@85 1200
cannam@85 1201 $ $0 $@
cannam@85 1202
cannam@85 1203 _ACEOF
cannam@85 1204 {
cannam@85 1205 cat <<_ASUNAME
cannam@85 1206 ## --------- ##
cannam@85 1207 ## Platform. ##
cannam@85 1208 ## --------- ##
cannam@85 1209
cannam@85 1210 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@85 1211 uname -m = `(uname -m) 2>/dev/null || echo unknown`
cannam@85 1212 uname -r = `(uname -r) 2>/dev/null || echo unknown`
cannam@85 1213 uname -s = `(uname -s) 2>/dev/null || echo unknown`
cannam@85 1214 uname -v = `(uname -v) 2>/dev/null || echo unknown`
cannam@85 1215
cannam@85 1216 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
cannam@85 1217 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
cannam@85 1218
cannam@85 1219 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
cannam@85 1220 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
cannam@85 1221 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
cannam@85 1222 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
cannam@85 1223 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
cannam@85 1224 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
cannam@85 1225 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
cannam@85 1226
cannam@85 1227 _ASUNAME
cannam@85 1228
cannam@85 1229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 1230 for as_dir in $PATH
cannam@85 1231 do
cannam@85 1232 IFS=$as_save_IFS
cannam@85 1233 test -z "$as_dir" && as_dir=.
cannam@85 1234 echo "PATH: $as_dir"
cannam@85 1235 done
cannam@85 1236
cannam@85 1237 } >&5
cannam@85 1238
cannam@85 1239 cat >&5 <<_ACEOF
cannam@85 1240
cannam@85 1241
cannam@85 1242 ## ----------- ##
cannam@85 1243 ## Core tests. ##
cannam@85 1244 ## ----------- ##
cannam@85 1245
cannam@85 1246 _ACEOF
cannam@85 1247
cannam@85 1248
cannam@85 1249 # Keep a trace of the command line.
cannam@85 1250 # Strip out --no-create and --no-recursion so they do not pile up.
cannam@85 1251 # Strip out --silent because we don't want to record it for future runs.
cannam@85 1252 # Also quote any args containing shell meta-characters.
cannam@85 1253 # Make two passes to allow for proper duplicate-argument suppression.
cannam@85 1254 ac_configure_args=
cannam@85 1255 ac_configure_args0=
cannam@85 1256 ac_configure_args1=
cannam@85 1257 ac_sep=
cannam@85 1258 ac_must_keep_next=false
cannam@85 1259 for ac_pass in 1 2
cannam@85 1260 do
cannam@85 1261 for ac_arg
cannam@85 1262 do
cannam@85 1263 case $ac_arg in
cannam@85 1264 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
cannam@85 1265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@85 1266 | -silent | --silent | --silen | --sile | --sil)
cannam@85 1267 continue ;;
cannam@85 1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
cannam@85 1269 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@85 1270 esac
cannam@85 1271 case $ac_pass in
cannam@85 1272 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
cannam@85 1273 2)
cannam@85 1274 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
cannam@85 1275 if test $ac_must_keep_next = true; then
cannam@85 1276 ac_must_keep_next=false # Got value, back to normal.
cannam@85 1277 else
cannam@85 1278 case $ac_arg in
cannam@85 1279 *=* | --config-cache | -C | -disable-* | --disable-* \
cannam@85 1280 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
cannam@85 1281 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
cannam@85 1282 | -with-* | --with-* | -without-* | --without-* | --x)
cannam@85 1283 case "$ac_configure_args0 " in
cannam@85 1284 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
cannam@85 1285 esac
cannam@85 1286 ;;
cannam@85 1287 -* ) ac_must_keep_next=true ;;
cannam@85 1288 esac
cannam@85 1289 fi
cannam@85 1290 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
cannam@85 1291 # Get rid of the leading space.
cannam@85 1292 ac_sep=" "
cannam@85 1293 ;;
cannam@85 1294 esac
cannam@85 1295 done
cannam@85 1296 done
cannam@85 1297 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
cannam@85 1298 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
cannam@85 1299
cannam@85 1300 # When interrupted or exit'd, cleanup temporary files, and complete
cannam@85 1301 # config.log. We remove comments because anyway the quotes in there
cannam@85 1302 # would cause problems or look ugly.
cannam@85 1303 # WARNING: Be sure not to use single quotes in there, as some shells,
cannam@85 1304 # such as our DU 5.0 friend, will then `close' the trap.
cannam@85 1305 trap 'exit_status=$?
cannam@85 1306 # Save into config.log some information that might help in debugging.
cannam@85 1307 {
cannam@85 1308 echo
cannam@85 1309
cannam@85 1310 cat <<\_ASBOX
cannam@85 1311 ## ---------------- ##
cannam@85 1312 ## Cache variables. ##
cannam@85 1313 ## ---------------- ##
cannam@85 1314 _ASBOX
cannam@85 1315 echo
cannam@85 1316 # The following way of writing the cache mishandles newlines in values,
cannam@85 1317 {
cannam@85 1318 (set) 2>&1 |
cannam@85 1319 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
cannam@85 1320 *ac_space=\ *)
cannam@85 1321 sed -n \
cannam@85 1322 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
cannam@85 1323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
cannam@85 1324 ;;
cannam@85 1325 *)
cannam@85 1326 sed -n \
cannam@85 1327 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
cannam@85 1328 ;;
cannam@85 1329 esac;
cannam@85 1330 }
cannam@85 1331 echo
cannam@85 1332
cannam@85 1333 cat <<\_ASBOX
cannam@85 1334 ## ----------------- ##
cannam@85 1335 ## Output variables. ##
cannam@85 1336 ## ----------------- ##
cannam@85 1337 _ASBOX
cannam@85 1338 echo
cannam@85 1339 for ac_var in $ac_subst_vars
cannam@85 1340 do
cannam@85 1341 eval ac_val=$`echo $ac_var`
cannam@85 1342 echo "$ac_var='"'"'$ac_val'"'"'"
cannam@85 1343 done | sort
cannam@85 1344 echo
cannam@85 1345
cannam@85 1346 if test -n "$ac_subst_files"; then
cannam@85 1347 cat <<\_ASBOX
cannam@85 1348 ## ------------- ##
cannam@85 1349 ## Output files. ##
cannam@85 1350 ## ------------- ##
cannam@85 1351 _ASBOX
cannam@85 1352 echo
cannam@85 1353 for ac_var in $ac_subst_files
cannam@85 1354 do
cannam@85 1355 eval ac_val=$`echo $ac_var`
cannam@85 1356 echo "$ac_var='"'"'$ac_val'"'"'"
cannam@85 1357 done | sort
cannam@85 1358 echo
cannam@85 1359 fi
cannam@85 1360
cannam@85 1361 if test -s confdefs.h; then
cannam@85 1362 cat <<\_ASBOX
cannam@85 1363 ## ----------- ##
cannam@85 1364 ## confdefs.h. ##
cannam@85 1365 ## ----------- ##
cannam@85 1366 _ASBOX
cannam@85 1367 echo
cannam@85 1368 sed "/^$/d" confdefs.h | sort
cannam@85 1369 echo
cannam@85 1370 fi
cannam@85 1371 test "$ac_signal" != 0 &&
cannam@85 1372 echo "$as_me: caught signal $ac_signal"
cannam@85 1373 echo "$as_me: exit $exit_status"
cannam@85 1374 } >&5
cannam@85 1375 rm -f core *.core &&
cannam@85 1376 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
cannam@85 1377 exit $exit_status
cannam@85 1378 ' 0
cannam@85 1379 for ac_signal in 1 2 13 15; do
cannam@85 1380 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
cannam@85 1381 done
cannam@85 1382 ac_signal=0
cannam@85 1383
cannam@85 1384 # confdefs.h avoids OS command line length limits that DEFS can exceed.
cannam@85 1385 rm -rf conftest* confdefs.h
cannam@85 1386 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
cannam@85 1387 echo >confdefs.h
cannam@85 1388
cannam@85 1389 # Predefined preprocessor variables.
cannam@85 1390
cannam@85 1391 cat >>confdefs.h <<_ACEOF
cannam@85 1392 #define PACKAGE_NAME "$PACKAGE_NAME"
cannam@85 1393 _ACEOF
cannam@85 1394
cannam@85 1395
cannam@85 1396 cat >>confdefs.h <<_ACEOF
cannam@85 1397 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
cannam@85 1398 _ACEOF
cannam@85 1399
cannam@85 1400
cannam@85 1401 cat >>confdefs.h <<_ACEOF
cannam@85 1402 #define PACKAGE_VERSION "$PACKAGE_VERSION"
cannam@85 1403 _ACEOF
cannam@85 1404
cannam@85 1405
cannam@85 1406 cat >>confdefs.h <<_ACEOF
cannam@85 1407 #define PACKAGE_STRING "$PACKAGE_STRING"
cannam@85 1408 _ACEOF
cannam@85 1409
cannam@85 1410
cannam@85 1411 cat >>confdefs.h <<_ACEOF
cannam@85 1412 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
cannam@85 1413 _ACEOF
cannam@85 1414
cannam@85 1415
cannam@85 1416 # Let the site file select an alternate cache file if it wants to.
cannam@85 1417 # Prefer explicitly selected file to automatically selected ones.
cannam@85 1418 if test -z "$CONFIG_SITE"; then
cannam@85 1419 if test "x$prefix" != xNONE; then
cannam@85 1420 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
cannam@85 1421 else
cannam@85 1422 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
cannam@85 1423 fi
cannam@85 1424 fi
cannam@85 1425 for ac_site_file in $CONFIG_SITE; do
cannam@85 1426 if test -r "$ac_site_file"; then
cannam@85 1427 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
cannam@85 1428 echo "$as_me: loading site script $ac_site_file" >&6;}
cannam@85 1429 sed 's/^/| /' "$ac_site_file" >&5
cannam@85 1430 . "$ac_site_file"
cannam@85 1431 fi
cannam@85 1432 done
cannam@85 1433
cannam@85 1434 if test -r "$cache_file"; then
cannam@85 1435 # Some versions of bash will fail to source /dev/null (special
cannam@85 1436 # files actually), so we avoid doing that.
cannam@85 1437 if test -f "$cache_file"; then
cannam@85 1438 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
cannam@85 1439 echo "$as_me: loading cache $cache_file" >&6;}
cannam@85 1440 case $cache_file in
cannam@85 1441 [\\/]* | ?:[\\/]* ) . $cache_file;;
cannam@85 1442 *) . ./$cache_file;;
cannam@85 1443 esac
cannam@85 1444 fi
cannam@85 1445 else
cannam@85 1446 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
cannam@85 1447 echo "$as_me: creating cache $cache_file" >&6;}
cannam@85 1448 >$cache_file
cannam@85 1449 fi
cannam@85 1450
cannam@85 1451 # Check that the precious variables saved in the cache have kept the same
cannam@85 1452 # value.
cannam@85 1453 ac_cache_corrupted=false
cannam@85 1454 for ac_var in `(set) 2>&1 |
cannam@85 1455 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
cannam@85 1456 eval ac_old_set=\$ac_cv_env_${ac_var}_set
cannam@85 1457 eval ac_new_set=\$ac_env_${ac_var}_set
cannam@85 1458 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
cannam@85 1459 eval ac_new_val="\$ac_env_${ac_var}_value"
cannam@85 1460 case $ac_old_set,$ac_new_set in
cannam@85 1461 set,)
cannam@85 1462 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cannam@85 1463 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
cannam@85 1464 ac_cache_corrupted=: ;;
cannam@85 1465 ,set)
cannam@85 1466 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
cannam@85 1467 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
cannam@85 1468 ac_cache_corrupted=: ;;
cannam@85 1469 ,);;
cannam@85 1470 *)
cannam@85 1471 if test "x$ac_old_val" != "x$ac_new_val"; then
cannam@85 1472 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
cannam@85 1473 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
cannam@85 1474 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
cannam@85 1475 echo "$as_me: former value: $ac_old_val" >&2;}
cannam@85 1476 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
cannam@85 1477 echo "$as_me: current value: $ac_new_val" >&2;}
cannam@85 1478 ac_cache_corrupted=:
cannam@85 1479 fi;;
cannam@85 1480 esac
cannam@85 1481 # Pass precious variables to config.status.
cannam@85 1482 if test "$ac_new_set" = set; then
cannam@85 1483 case $ac_new_val in
cannam@85 1484 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
cannam@85 1485 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@85 1486 *) ac_arg=$ac_var=$ac_new_val ;;
cannam@85 1487 esac
cannam@85 1488 case " $ac_configure_args " in
cannam@85 1489 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cannam@85 1490 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
cannam@85 1491 esac
cannam@85 1492 fi
cannam@85 1493 done
cannam@85 1494 if $ac_cache_corrupted; then
cannam@85 1495 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
cannam@85 1496 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cannam@85 1497 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
cannam@85 1498 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
cannam@85 1499 { (exit 1); exit 1; }; }
cannam@85 1500 fi
cannam@85 1501
cannam@85 1502 ac_ext=c
cannam@85 1503 ac_cpp='$CPP $CPPFLAGS'
cannam@85 1504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 1505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 1506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 1507
cannam@85 1508
cannam@85 1509
cannam@85 1510
cannam@85 1511
cannam@85 1512
cannam@85 1513
cannam@85 1514
cannam@85 1515
cannam@85 1516
cannam@85 1517
cannam@85 1518
cannam@85 1519
cannam@85 1520
cannam@85 1521
cannam@85 1522
cannam@85 1523
cannam@85 1524
cannam@85 1525
cannam@85 1526
cannam@85 1527
cannam@85 1528
cannam@85 1529
cannam@85 1530
cannam@85 1531
cannam@85 1532
cannam@85 1533
cannam@85 1534
cannam@85 1535
cannam@85 1536
cannam@85 1537
cannam@85 1538 am__api_version="1.8"
cannam@85 1539 ac_aux_dir=
cannam@85 1540 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
cannam@85 1541 if test -f $ac_dir/install-sh; then
cannam@85 1542 ac_aux_dir=$ac_dir
cannam@85 1543 ac_install_sh="$ac_aux_dir/install-sh -c"
cannam@85 1544 break
cannam@85 1545 elif test -f $ac_dir/install.sh; then
cannam@85 1546 ac_aux_dir=$ac_dir
cannam@85 1547 ac_install_sh="$ac_aux_dir/install.sh -c"
cannam@85 1548 break
cannam@85 1549 elif test -f $ac_dir/shtool; then
cannam@85 1550 ac_aux_dir=$ac_dir
cannam@85 1551 ac_install_sh="$ac_aux_dir/shtool install -c"
cannam@85 1552 break
cannam@85 1553 fi
cannam@85 1554 done
cannam@85 1555 if test -z "$ac_aux_dir"; then
cannam@85 1556 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
cannam@85 1557 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
cannam@85 1558 { (exit 1); exit 1; }; }
cannam@85 1559 fi
cannam@85 1560 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
cannam@85 1561 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
cannam@85 1562 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
cannam@85 1563
cannam@85 1564 # Find a good install program. We prefer a C program (faster),
cannam@85 1565 # so one script is as good as another. But avoid the broken or
cannam@85 1566 # incompatible versions:
cannam@85 1567 # SysV /etc/install, /usr/sbin/install
cannam@85 1568 # SunOS /usr/etc/install
cannam@85 1569 # IRIX /sbin/install
cannam@85 1570 # AIX /bin/install
cannam@85 1571 # AmigaOS /C/install, which installs bootblocks on floppy discs
cannam@85 1572 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
cannam@85 1573 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
cannam@85 1574 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
cannam@85 1575 # OS/2's system install, which has a completely different semantic
cannam@85 1576 # ./install, which can be erroneously created by make from ./install.sh.
cannam@85 1577 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
cannam@85 1578 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
cannam@85 1579 if test -z "$INSTALL"; then
cannam@85 1580 if test "${ac_cv_path_install+set}" = set; then
cannam@85 1581 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 1582 else
cannam@85 1583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 1584 for as_dir in $PATH
cannam@85 1585 do
cannam@85 1586 IFS=$as_save_IFS
cannam@85 1587 test -z "$as_dir" && as_dir=.
cannam@85 1588 # Account for people who put trailing slashes in PATH elements.
cannam@85 1589 case $as_dir/ in
cannam@85 1590 ./ | .// | /cC/* | \
cannam@85 1591 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cannam@85 1592 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
cannam@85 1593 /usr/ucb/* ) ;;
cannam@85 1594 *)
cannam@85 1595 # OSF1 and SCO ODT 3.0 have their own names for install.
cannam@85 1596 # Don't use installbsd from OSF since it installs stuff as root
cannam@85 1597 # by default.
cannam@85 1598 for ac_prog in ginstall scoinst install; do
cannam@85 1599 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 1600 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cannam@85 1601 if test $ac_prog = install &&
cannam@85 1602 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
cannam@85 1603 # AIX install. It has an incompatible calling convention.
cannam@85 1604 :
cannam@85 1605 elif test $ac_prog = install &&
cannam@85 1606 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
cannam@85 1607 # program-specific install script used by HP pwplus--don't use.
cannam@85 1608 :
cannam@85 1609 else
cannam@85 1610 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
cannam@85 1611 break 3
cannam@85 1612 fi
cannam@85 1613 fi
cannam@85 1614 done
cannam@85 1615 done
cannam@85 1616 ;;
cannam@85 1617 esac
cannam@85 1618 done
cannam@85 1619
cannam@85 1620
cannam@85 1621 fi
cannam@85 1622 if test "${ac_cv_path_install+set}" = set; then
cannam@85 1623 INSTALL=$ac_cv_path_install
cannam@85 1624 else
cannam@85 1625 # As a last resort, use the slow shell script. We don't cache a
cannam@85 1626 # path for INSTALL within a source directory, because that will
cannam@85 1627 # break other packages using the cache if that directory is
cannam@85 1628 # removed, or if the path is relative.
cannam@85 1629 INSTALL=$ac_install_sh
cannam@85 1630 fi
cannam@85 1631 fi
cannam@85 1632 echo "$as_me:$LINENO: result: $INSTALL" >&5
cannam@85 1633 echo "${ECHO_T}$INSTALL" >&6
cannam@85 1634
cannam@85 1635 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
cannam@85 1636 # It thinks the first close brace ends the variable substitution.
cannam@85 1637 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
cannam@85 1638
cannam@85 1639 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
cannam@85 1640
cannam@85 1641 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
cannam@85 1642
cannam@85 1643 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
cannam@85 1644 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
cannam@85 1645 # Just in case
cannam@85 1646 sleep 1
cannam@85 1647 echo timestamp > conftest.file
cannam@85 1648 # Do `set' in a subshell so we don't clobber the current shell's
cannam@85 1649 # arguments. Must try -L first in case configure is actually a
cannam@85 1650 # symlink; some systems play weird games with the mod time of symlinks
cannam@85 1651 # (eg FreeBSD returns the mod time of the symlink's containing
cannam@85 1652 # directory).
cannam@85 1653 if (
cannam@85 1654 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
cannam@85 1655 if test "$*" = "X"; then
cannam@85 1656 # -L didn't work.
cannam@85 1657 set X `ls -t $srcdir/configure conftest.file`
cannam@85 1658 fi
cannam@85 1659 rm -f conftest.file
cannam@85 1660 if test "$*" != "X $srcdir/configure conftest.file" \
cannam@85 1661 && test "$*" != "X conftest.file $srcdir/configure"; then
cannam@85 1662
cannam@85 1663 # If neither matched, then we have a broken ls. This can happen
cannam@85 1664 # if, for instance, CONFIG_SHELL is bash and it inherits a
cannam@85 1665 # broken ls alias from the environment. This has actually
cannam@85 1666 # happened. Such a system could not be considered "sane".
cannam@85 1667 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
cannam@85 1668 alias in your environment" >&5
cannam@85 1669 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
cannam@85 1670 alias in your environment" >&2;}
cannam@85 1671 { (exit 1); exit 1; }; }
cannam@85 1672 fi
cannam@85 1673
cannam@85 1674 test "$2" = conftest.file
cannam@85 1675 )
cannam@85 1676 then
cannam@85 1677 # Ok.
cannam@85 1678 :
cannam@85 1679 else
cannam@85 1680 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
cannam@85 1681 Check your system clock" >&5
cannam@85 1682 echo "$as_me: error: newly created file is older than distributed files!
cannam@85 1683 Check your system clock" >&2;}
cannam@85 1684 { (exit 1); exit 1; }; }
cannam@85 1685 fi
cannam@85 1686 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 1687 echo "${ECHO_T}yes" >&6
cannam@85 1688 test "$program_prefix" != NONE &&
cannam@85 1689 program_transform_name="s,^,$program_prefix,;$program_transform_name"
cannam@85 1690 # Use a double $ so make ignores it.
cannam@85 1691 test "$program_suffix" != NONE &&
cannam@85 1692 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
cannam@85 1693 # Double any \ or $. echo might interpret backslashes.
cannam@85 1694 # By default was `s,x,x', remove it if useless.
cannam@85 1695 cat <<\_ACEOF >conftest.sed
cannam@85 1696 s/[\\$]/&&/g;s/;s,x,x,$//
cannam@85 1697 _ACEOF
cannam@85 1698 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
cannam@85 1699 rm conftest.sed
cannam@85 1700
cannam@85 1701 # expand $ac_aux_dir to an absolute path
cannam@85 1702 am_aux_dir=`cd $ac_aux_dir && pwd`
cannam@85 1703
cannam@85 1704 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
cannam@85 1705 # Use eval to expand $SHELL
cannam@85 1706 if eval "$MISSING --run true"; then
cannam@85 1707 am_missing_run="$MISSING --run "
cannam@85 1708 else
cannam@85 1709 am_missing_run=
cannam@85 1710 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
cannam@85 1711 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
cannam@85 1712 fi
cannam@85 1713
cannam@85 1714 if mkdir -p -- . 2>/dev/null; then
cannam@85 1715 # Keeping the `.' argument allows $(mkdir_p) to be used without
cannam@85 1716 # argument. Indeed, we sometimes output rules like
cannam@85 1717 # $(mkdir_p) $(somedir)
cannam@85 1718 # where $(somedir) is conditionally defined.
cannam@85 1719 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
cannam@85 1720 # expensive solution, as it forces Make to start a sub-shell.)
cannam@85 1721 mkdir_p='mkdir -p -- .'
cannam@85 1722 else
cannam@85 1723 # On NextStep and OpenStep, the `mkdir' command does not
cannam@85 1724 # recognize any option. It will interpret all options as
cannam@85 1725 # directories to create, and then abort because `.' already
cannam@85 1726 # exists.
cannam@85 1727 for d in ./-p ./--;
cannam@85 1728 do
cannam@85 1729 test -d $d && rmdir $d
cannam@85 1730 done
cannam@85 1731 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
cannam@85 1732 if test -f "$ac_aux_dir/mkinstalldirs"; then
cannam@85 1733 mkdir_p='$(mkinstalldirs)'
cannam@85 1734 else
cannam@85 1735 mkdir_p='$(install_sh) -d'
cannam@85 1736 fi
cannam@85 1737 fi
cannam@85 1738
cannam@85 1739 for ac_prog in gawk mawk nawk awk
cannam@85 1740 do
cannam@85 1741 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@85 1742 set dummy $ac_prog; ac_word=$2
cannam@85 1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 1745 if test "${ac_cv_prog_AWK+set}" = set; then
cannam@85 1746 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 1747 else
cannam@85 1748 if test -n "$AWK"; then
cannam@85 1749 ac_cv_prog_AWK="$AWK" # Let the user override the test.
cannam@85 1750 else
cannam@85 1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 1752 for as_dir in $PATH
cannam@85 1753 do
cannam@85 1754 IFS=$as_save_IFS
cannam@85 1755 test -z "$as_dir" && as_dir=.
cannam@85 1756 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 1757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 1758 ac_cv_prog_AWK="$ac_prog"
cannam@85 1759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 1760 break 2
cannam@85 1761 fi
cannam@85 1762 done
cannam@85 1763 done
cannam@85 1764
cannam@85 1765 fi
cannam@85 1766 fi
cannam@85 1767 AWK=$ac_cv_prog_AWK
cannam@85 1768 if test -n "$AWK"; then
cannam@85 1769 echo "$as_me:$LINENO: result: $AWK" >&5
cannam@85 1770 echo "${ECHO_T}$AWK" >&6
cannam@85 1771 else
cannam@85 1772 echo "$as_me:$LINENO: result: no" >&5
cannam@85 1773 echo "${ECHO_T}no" >&6
cannam@85 1774 fi
cannam@85 1775
cannam@85 1776 test -n "$AWK" && break
cannam@85 1777 done
cannam@85 1778
cannam@85 1779 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cannam@85 1780 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
cannam@85 1781 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
cannam@85 1782 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
cannam@85 1783 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 1784 else
cannam@85 1785 cat >conftest.make <<\_ACEOF
cannam@85 1786 all:
cannam@85 1787 @echo 'ac_maketemp="$(MAKE)"'
cannam@85 1788 _ACEOF
cannam@85 1789 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cannam@85 1790 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
cannam@85 1791 if test -n "$ac_maketemp"; then
cannam@85 1792 eval ac_cv_prog_make_${ac_make}_set=yes
cannam@85 1793 else
cannam@85 1794 eval ac_cv_prog_make_${ac_make}_set=no
cannam@85 1795 fi
cannam@85 1796 rm -f conftest.make
cannam@85 1797 fi
cannam@85 1798 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
cannam@85 1799 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 1800 echo "${ECHO_T}yes" >&6
cannam@85 1801 SET_MAKE=
cannam@85 1802 else
cannam@85 1803 echo "$as_me:$LINENO: result: no" >&5
cannam@85 1804 echo "${ECHO_T}no" >&6
cannam@85 1805 SET_MAKE="MAKE=${MAKE-make}"
cannam@85 1806 fi
cannam@85 1807
cannam@85 1808 rm -rf .tst 2>/dev/null
cannam@85 1809 mkdir .tst 2>/dev/null
cannam@85 1810 if test -d .tst; then
cannam@85 1811 am__leading_dot=.
cannam@85 1812 else
cannam@85 1813 am__leading_dot=_
cannam@85 1814 fi
cannam@85 1815 rmdir .tst 2>/dev/null
cannam@85 1816
cannam@85 1817 # test to see if srcdir already configured
cannam@85 1818 if test "`cd $srcdir && pwd`" != "`pwd`" &&
cannam@85 1819 test -f $srcdir/config.status; then
cannam@85 1820 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
cannam@85 1821 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
cannam@85 1822 { (exit 1); exit 1; }; }
cannam@85 1823 fi
cannam@85 1824
cannam@85 1825 # test whether we have cygpath
cannam@85 1826 if test -z "$CYGPATH_W"; then
cannam@85 1827 if (cygpath --version) >/dev/null 2>/dev/null; then
cannam@85 1828 CYGPATH_W='cygpath -w'
cannam@85 1829 else
cannam@85 1830 CYGPATH_W=echo
cannam@85 1831 fi
cannam@85 1832 fi
cannam@85 1833
cannam@85 1834
cannam@85 1835 # Define the identity of the package.
cannam@85 1836 PACKAGE='libmad'
cannam@85 1837 VERSION='0.15.1b'
cannam@85 1838
cannam@85 1839
cannam@85 1840 cat >>confdefs.h <<_ACEOF
cannam@85 1841 #define PACKAGE "$PACKAGE"
cannam@85 1842 _ACEOF
cannam@85 1843
cannam@85 1844
cannam@85 1845 cat >>confdefs.h <<_ACEOF
cannam@85 1846 #define VERSION "$VERSION"
cannam@85 1847 _ACEOF
cannam@85 1848
cannam@85 1849 # Some tools Automake needs.
cannam@85 1850
cannam@85 1851 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
cannam@85 1852
cannam@85 1853
cannam@85 1854 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
cannam@85 1855
cannam@85 1856
cannam@85 1857 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
cannam@85 1858
cannam@85 1859
cannam@85 1860 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
cannam@85 1861
cannam@85 1862
cannam@85 1863 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
cannam@85 1864
cannam@85 1865
cannam@85 1866 AMTAR=${AMTAR-"${am_missing_run}tar"}
cannam@85 1867
cannam@85 1868 install_sh=${install_sh-"$am_aux_dir/install-sh"}
cannam@85 1869
cannam@85 1870 # Installed binaries are usually stripped using `strip' when the user
cannam@85 1871 # run `make install-strip'. However `strip' might not be the right
cannam@85 1872 # tool to use in cross-compilation environments, therefore Automake
cannam@85 1873 # will honor the `STRIP' environment variable to overrule this program.
cannam@85 1874 if test "$cross_compiling" != no; then
cannam@85 1875 if test -n "$ac_tool_prefix"; then
cannam@85 1876 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
cannam@85 1877 set dummy ${ac_tool_prefix}strip; ac_word=$2
cannam@85 1878 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 1880 if test "${ac_cv_prog_STRIP+set}" = set; then
cannam@85 1881 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 1882 else
cannam@85 1883 if test -n "$STRIP"; then
cannam@85 1884 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
cannam@85 1885 else
cannam@85 1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 1887 for as_dir in $PATH
cannam@85 1888 do
cannam@85 1889 IFS=$as_save_IFS
cannam@85 1890 test -z "$as_dir" && as_dir=.
cannam@85 1891 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 1892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 1893 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cannam@85 1894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 1895 break 2
cannam@85 1896 fi
cannam@85 1897 done
cannam@85 1898 done
cannam@85 1899
cannam@85 1900 fi
cannam@85 1901 fi
cannam@85 1902 STRIP=$ac_cv_prog_STRIP
cannam@85 1903 if test -n "$STRIP"; then
cannam@85 1904 echo "$as_me:$LINENO: result: $STRIP" >&5
cannam@85 1905 echo "${ECHO_T}$STRIP" >&6
cannam@85 1906 else
cannam@85 1907 echo "$as_me:$LINENO: result: no" >&5
cannam@85 1908 echo "${ECHO_T}no" >&6
cannam@85 1909 fi
cannam@85 1910
cannam@85 1911 fi
cannam@85 1912 if test -z "$ac_cv_prog_STRIP"; then
cannam@85 1913 ac_ct_STRIP=$STRIP
cannam@85 1914 # Extract the first word of "strip", so it can be a program name with args.
cannam@85 1915 set dummy strip; ac_word=$2
cannam@85 1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 1918 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
cannam@85 1919 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 1920 else
cannam@85 1921 if test -n "$ac_ct_STRIP"; then
cannam@85 1922 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
cannam@85 1923 else
cannam@85 1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 1925 for as_dir in $PATH
cannam@85 1926 do
cannam@85 1927 IFS=$as_save_IFS
cannam@85 1928 test -z "$as_dir" && as_dir=.
cannam@85 1929 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 1930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 1931 ac_cv_prog_ac_ct_STRIP="strip"
cannam@85 1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 1933 break 2
cannam@85 1934 fi
cannam@85 1935 done
cannam@85 1936 done
cannam@85 1937
cannam@85 1938 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
cannam@85 1939 fi
cannam@85 1940 fi
cannam@85 1941 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
cannam@85 1942 if test -n "$ac_ct_STRIP"; then
cannam@85 1943 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
cannam@85 1944 echo "${ECHO_T}$ac_ct_STRIP" >&6
cannam@85 1945 else
cannam@85 1946 echo "$as_me:$LINENO: result: no" >&5
cannam@85 1947 echo "${ECHO_T}no" >&6
cannam@85 1948 fi
cannam@85 1949
cannam@85 1950 STRIP=$ac_ct_STRIP
cannam@85 1951 else
cannam@85 1952 STRIP="$ac_cv_prog_STRIP"
cannam@85 1953 fi
cannam@85 1954
cannam@85 1955 fi
cannam@85 1956 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
cannam@85 1957
cannam@85 1958 # We need awk for the "check" target. The system "awk" is bad on
cannam@85 1959 # some platforms.
cannam@85 1960
cannam@85 1961
cannam@85 1962
cannam@85 1963
cannam@85 1964 ac_config_headers="$ac_config_headers config.h"
cannam@85 1965
cannam@85 1966
cannam@85 1967
cannam@85 1968 # Make sure we can run config.sub.
cannam@85 1969 $ac_config_sub sun4 >/dev/null 2>&1 ||
cannam@85 1970 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
cannam@85 1971 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
cannam@85 1972 { (exit 1); exit 1; }; }
cannam@85 1973
cannam@85 1974 echo "$as_me:$LINENO: checking build system type" >&5
cannam@85 1975 echo $ECHO_N "checking build system type... $ECHO_C" >&6
cannam@85 1976 if test "${ac_cv_build+set}" = set; then
cannam@85 1977 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 1978 else
cannam@85 1979 ac_cv_build_alias=$build_alias
cannam@85 1980 test -z "$ac_cv_build_alias" &&
cannam@85 1981 ac_cv_build_alias=`$ac_config_guess`
cannam@85 1982 test -z "$ac_cv_build_alias" &&
cannam@85 1983 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
cannam@85 1984 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
cannam@85 1985 { (exit 1); exit 1; }; }
cannam@85 1986 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
cannam@85 1987 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
cannam@85 1988 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
cannam@85 1989 { (exit 1); exit 1; }; }
cannam@85 1990
cannam@85 1991 fi
cannam@85 1992 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
cannam@85 1993 echo "${ECHO_T}$ac_cv_build" >&6
cannam@85 1994 build=$ac_cv_build
cannam@85 1995 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
cannam@85 1996 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
cannam@85 1997 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
cannam@85 1998
cannam@85 1999
cannam@85 2000 echo "$as_me:$LINENO: checking host system type" >&5
cannam@85 2001 echo $ECHO_N "checking host system type... $ECHO_C" >&6
cannam@85 2002 if test "${ac_cv_host+set}" = set; then
cannam@85 2003 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 2004 else
cannam@85 2005 ac_cv_host_alias=$host_alias
cannam@85 2006 test -z "$ac_cv_host_alias" &&
cannam@85 2007 ac_cv_host_alias=$ac_cv_build_alias
cannam@85 2008 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
cannam@85 2009 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
cannam@85 2010 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
cannam@85 2011 { (exit 1); exit 1; }; }
cannam@85 2012
cannam@85 2013 fi
cannam@85 2014 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
cannam@85 2015 echo "${ECHO_T}$ac_cv_host" >&6
cannam@85 2016 host=$ac_cv_host
cannam@85 2017 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
cannam@85 2018 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
cannam@85 2019 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
cannam@85 2020
cannam@85 2021
cannam@85 2022
cannam@85 2023
cannam@85 2024 ac_ext=c
cannam@85 2025 ac_cpp='$CPP $CPPFLAGS'
cannam@85 2026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 2027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 2028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 2029 if test -n "$ac_tool_prefix"; then
cannam@85 2030 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
cannam@85 2031 set dummy ${ac_tool_prefix}gcc; ac_word=$2
cannam@85 2032 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 2034 if test "${ac_cv_prog_CC+set}" = set; then
cannam@85 2035 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 2036 else
cannam@85 2037 if test -n "$CC"; then
cannam@85 2038 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@85 2039 else
cannam@85 2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 2041 for as_dir in $PATH
cannam@85 2042 do
cannam@85 2043 IFS=$as_save_IFS
cannam@85 2044 test -z "$as_dir" && as_dir=.
cannam@85 2045 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 2046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 2047 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cannam@85 2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 2049 break 2
cannam@85 2050 fi
cannam@85 2051 done
cannam@85 2052 done
cannam@85 2053
cannam@85 2054 fi
cannam@85 2055 fi
cannam@85 2056 CC=$ac_cv_prog_CC
cannam@85 2057 if test -n "$CC"; then
cannam@85 2058 echo "$as_me:$LINENO: result: $CC" >&5
cannam@85 2059 echo "${ECHO_T}$CC" >&6
cannam@85 2060 else
cannam@85 2061 echo "$as_me:$LINENO: result: no" >&5
cannam@85 2062 echo "${ECHO_T}no" >&6
cannam@85 2063 fi
cannam@85 2064
cannam@85 2065 fi
cannam@85 2066 if test -z "$ac_cv_prog_CC"; then
cannam@85 2067 ac_ct_CC=$CC
cannam@85 2068 # Extract the first word of "gcc", so it can be a program name with args.
cannam@85 2069 set dummy gcc; ac_word=$2
cannam@85 2070 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 2072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
cannam@85 2073 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 2074 else
cannam@85 2075 if test -n "$ac_ct_CC"; then
cannam@85 2076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@85 2077 else
cannam@85 2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 2079 for as_dir in $PATH
cannam@85 2080 do
cannam@85 2081 IFS=$as_save_IFS
cannam@85 2082 test -z "$as_dir" && as_dir=.
cannam@85 2083 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 2085 ac_cv_prog_ac_ct_CC="gcc"
cannam@85 2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 2087 break 2
cannam@85 2088 fi
cannam@85 2089 done
cannam@85 2090 done
cannam@85 2091
cannam@85 2092 fi
cannam@85 2093 fi
cannam@85 2094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@85 2095 if test -n "$ac_ct_CC"; then
cannam@85 2096 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
cannam@85 2097 echo "${ECHO_T}$ac_ct_CC" >&6
cannam@85 2098 else
cannam@85 2099 echo "$as_me:$LINENO: result: no" >&5
cannam@85 2100 echo "${ECHO_T}no" >&6
cannam@85 2101 fi
cannam@85 2102
cannam@85 2103 CC=$ac_ct_CC
cannam@85 2104 else
cannam@85 2105 CC="$ac_cv_prog_CC"
cannam@85 2106 fi
cannam@85 2107
cannam@85 2108 if test -z "$CC"; then
cannam@85 2109 if test -n "$ac_tool_prefix"; then
cannam@85 2110 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
cannam@85 2111 set dummy ${ac_tool_prefix}cc; ac_word=$2
cannam@85 2112 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 2113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 2114 if test "${ac_cv_prog_CC+set}" = set; then
cannam@85 2115 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 2116 else
cannam@85 2117 if test -n "$CC"; then
cannam@85 2118 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@85 2119 else
cannam@85 2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 2121 for as_dir in $PATH
cannam@85 2122 do
cannam@85 2123 IFS=$as_save_IFS
cannam@85 2124 test -z "$as_dir" && as_dir=.
cannam@85 2125 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 2126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 2127 ac_cv_prog_CC="${ac_tool_prefix}cc"
cannam@85 2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 2129 break 2
cannam@85 2130 fi
cannam@85 2131 done
cannam@85 2132 done
cannam@85 2133
cannam@85 2134 fi
cannam@85 2135 fi
cannam@85 2136 CC=$ac_cv_prog_CC
cannam@85 2137 if test -n "$CC"; then
cannam@85 2138 echo "$as_me:$LINENO: result: $CC" >&5
cannam@85 2139 echo "${ECHO_T}$CC" >&6
cannam@85 2140 else
cannam@85 2141 echo "$as_me:$LINENO: result: no" >&5
cannam@85 2142 echo "${ECHO_T}no" >&6
cannam@85 2143 fi
cannam@85 2144
cannam@85 2145 fi
cannam@85 2146 if test -z "$ac_cv_prog_CC"; then
cannam@85 2147 ac_ct_CC=$CC
cannam@85 2148 # Extract the first word of "cc", so it can be a program name with args.
cannam@85 2149 set dummy cc; ac_word=$2
cannam@85 2150 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 2152 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
cannam@85 2153 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 2154 else
cannam@85 2155 if test -n "$ac_ct_CC"; then
cannam@85 2156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@85 2157 else
cannam@85 2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 2159 for as_dir in $PATH
cannam@85 2160 do
cannam@85 2161 IFS=$as_save_IFS
cannam@85 2162 test -z "$as_dir" && as_dir=.
cannam@85 2163 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 2164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 2165 ac_cv_prog_ac_ct_CC="cc"
cannam@85 2166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 2167 break 2
cannam@85 2168 fi
cannam@85 2169 done
cannam@85 2170 done
cannam@85 2171
cannam@85 2172 fi
cannam@85 2173 fi
cannam@85 2174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@85 2175 if test -n "$ac_ct_CC"; then
cannam@85 2176 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
cannam@85 2177 echo "${ECHO_T}$ac_ct_CC" >&6
cannam@85 2178 else
cannam@85 2179 echo "$as_me:$LINENO: result: no" >&5
cannam@85 2180 echo "${ECHO_T}no" >&6
cannam@85 2181 fi
cannam@85 2182
cannam@85 2183 CC=$ac_ct_CC
cannam@85 2184 else
cannam@85 2185 CC="$ac_cv_prog_CC"
cannam@85 2186 fi
cannam@85 2187
cannam@85 2188 fi
cannam@85 2189 if test -z "$CC"; then
cannam@85 2190 # Extract the first word of "cc", so it can be a program name with args.
cannam@85 2191 set dummy cc; ac_word=$2
cannam@85 2192 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 2193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 2194 if test "${ac_cv_prog_CC+set}" = set; then
cannam@85 2195 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 2196 else
cannam@85 2197 if test -n "$CC"; then
cannam@85 2198 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@85 2199 else
cannam@85 2200 ac_prog_rejected=no
cannam@85 2201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 2202 for as_dir in $PATH
cannam@85 2203 do
cannam@85 2204 IFS=$as_save_IFS
cannam@85 2205 test -z "$as_dir" && as_dir=.
cannam@85 2206 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 2207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 2208 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
cannam@85 2209 ac_prog_rejected=yes
cannam@85 2210 continue
cannam@85 2211 fi
cannam@85 2212 ac_cv_prog_CC="cc"
cannam@85 2213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 2214 break 2
cannam@85 2215 fi
cannam@85 2216 done
cannam@85 2217 done
cannam@85 2218
cannam@85 2219 if test $ac_prog_rejected = yes; then
cannam@85 2220 # We found a bogon in the path, so make sure we never use it.
cannam@85 2221 set dummy $ac_cv_prog_CC
cannam@85 2222 shift
cannam@85 2223 if test $# != 0; then
cannam@85 2224 # We chose a different compiler from the bogus one.
cannam@85 2225 # However, it has the same basename, so the bogon will be chosen
cannam@85 2226 # first if we set CC to just the basename; use the full file name.
cannam@85 2227 shift
cannam@85 2228 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
cannam@85 2229 fi
cannam@85 2230 fi
cannam@85 2231 fi
cannam@85 2232 fi
cannam@85 2233 CC=$ac_cv_prog_CC
cannam@85 2234 if test -n "$CC"; then
cannam@85 2235 echo "$as_me:$LINENO: result: $CC" >&5
cannam@85 2236 echo "${ECHO_T}$CC" >&6
cannam@85 2237 else
cannam@85 2238 echo "$as_me:$LINENO: result: no" >&5
cannam@85 2239 echo "${ECHO_T}no" >&6
cannam@85 2240 fi
cannam@85 2241
cannam@85 2242 fi
cannam@85 2243 if test -z "$CC"; then
cannam@85 2244 if test -n "$ac_tool_prefix"; then
cannam@85 2245 for ac_prog in cl
cannam@85 2246 do
cannam@85 2247 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@85 2248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@85 2249 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 2251 if test "${ac_cv_prog_CC+set}" = set; then
cannam@85 2252 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 2253 else
cannam@85 2254 if test -n "$CC"; then
cannam@85 2255 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@85 2256 else
cannam@85 2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 2258 for as_dir in $PATH
cannam@85 2259 do
cannam@85 2260 IFS=$as_save_IFS
cannam@85 2261 test -z "$as_dir" && as_dir=.
cannam@85 2262 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 2263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 2264 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cannam@85 2265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 2266 break 2
cannam@85 2267 fi
cannam@85 2268 done
cannam@85 2269 done
cannam@85 2270
cannam@85 2271 fi
cannam@85 2272 fi
cannam@85 2273 CC=$ac_cv_prog_CC
cannam@85 2274 if test -n "$CC"; then
cannam@85 2275 echo "$as_me:$LINENO: result: $CC" >&5
cannam@85 2276 echo "${ECHO_T}$CC" >&6
cannam@85 2277 else
cannam@85 2278 echo "$as_me:$LINENO: result: no" >&5
cannam@85 2279 echo "${ECHO_T}no" >&6
cannam@85 2280 fi
cannam@85 2281
cannam@85 2282 test -n "$CC" && break
cannam@85 2283 done
cannam@85 2284 fi
cannam@85 2285 if test -z "$CC"; then
cannam@85 2286 ac_ct_CC=$CC
cannam@85 2287 for ac_prog in cl
cannam@85 2288 do
cannam@85 2289 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@85 2290 set dummy $ac_prog; ac_word=$2
cannam@85 2291 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 2292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 2293 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
cannam@85 2294 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 2295 else
cannam@85 2296 if test -n "$ac_ct_CC"; then
cannam@85 2297 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@85 2298 else
cannam@85 2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 2300 for as_dir in $PATH
cannam@85 2301 do
cannam@85 2302 IFS=$as_save_IFS
cannam@85 2303 test -z "$as_dir" && as_dir=.
cannam@85 2304 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 2305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 2306 ac_cv_prog_ac_ct_CC="$ac_prog"
cannam@85 2307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 2308 break 2
cannam@85 2309 fi
cannam@85 2310 done
cannam@85 2311 done
cannam@85 2312
cannam@85 2313 fi
cannam@85 2314 fi
cannam@85 2315 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@85 2316 if test -n "$ac_ct_CC"; then
cannam@85 2317 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
cannam@85 2318 echo "${ECHO_T}$ac_ct_CC" >&6
cannam@85 2319 else
cannam@85 2320 echo "$as_me:$LINENO: result: no" >&5
cannam@85 2321 echo "${ECHO_T}no" >&6
cannam@85 2322 fi
cannam@85 2323
cannam@85 2324 test -n "$ac_ct_CC" && break
cannam@85 2325 done
cannam@85 2326
cannam@85 2327 CC=$ac_ct_CC
cannam@85 2328 fi
cannam@85 2329
cannam@85 2330 fi
cannam@85 2331
cannam@85 2332
cannam@85 2333 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
cannam@85 2334 See \`config.log' for more details." >&5
cannam@85 2335 echo "$as_me: error: no acceptable C compiler found in \$PATH
cannam@85 2336 See \`config.log' for more details." >&2;}
cannam@85 2337 { (exit 1); exit 1; }; }
cannam@85 2338
cannam@85 2339 # Provide some information about the compiler.
cannam@85 2340 echo "$as_me:$LINENO:" \
cannam@85 2341 "checking for C compiler version" >&5
cannam@85 2342 ac_compiler=`set X $ac_compile; echo $2`
cannam@85 2343 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
cannam@85 2344 (eval $ac_compiler --version </dev/null >&5) 2>&5
cannam@85 2345 ac_status=$?
cannam@85 2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2347 (exit $ac_status); }
cannam@85 2348 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
cannam@85 2349 (eval $ac_compiler -v </dev/null >&5) 2>&5
cannam@85 2350 ac_status=$?
cannam@85 2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2352 (exit $ac_status); }
cannam@85 2353 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
cannam@85 2354 (eval $ac_compiler -V </dev/null >&5) 2>&5
cannam@85 2355 ac_status=$?
cannam@85 2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2357 (exit $ac_status); }
cannam@85 2358
cannam@85 2359 cat >conftest.$ac_ext <<_ACEOF
cannam@85 2360 /* confdefs.h. */
cannam@85 2361 _ACEOF
cannam@85 2362 cat confdefs.h >>conftest.$ac_ext
cannam@85 2363 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 2364 /* end confdefs.h. */
cannam@85 2365
cannam@85 2366 int
cannam@85 2367 main ()
cannam@85 2368 {
cannam@85 2369
cannam@85 2370 ;
cannam@85 2371 return 0;
cannam@85 2372 }
cannam@85 2373 _ACEOF
cannam@85 2374 ac_clean_files_save=$ac_clean_files
cannam@85 2375 ac_clean_files="$ac_clean_files a.out a.exe b.out"
cannam@85 2376 # Try to create an executable without -o first, disregard a.out.
cannam@85 2377 # It will help us diagnose broken compilers, and finding out an intuition
cannam@85 2378 # of exeext.
cannam@85 2379 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
cannam@85 2380 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
cannam@85 2381 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
cannam@85 2382 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
cannam@85 2383 (eval $ac_link_default) 2>&5
cannam@85 2384 ac_status=$?
cannam@85 2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2386 (exit $ac_status); }; then
cannam@85 2387 # Find the output, starting from the most likely. This scheme is
cannam@85 2388 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
cannam@85 2389 # resort.
cannam@85 2390
cannam@85 2391 # Be careful to initialize this variable, since it used to be cached.
cannam@85 2392 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
cannam@85 2393 ac_cv_exeext=
cannam@85 2394 # b.out is created by i960 compilers.
cannam@85 2395 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
cannam@85 2396 do
cannam@85 2397 test -f "$ac_file" || continue
cannam@85 2398 case $ac_file in
cannam@85 2399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
cannam@85 2400 ;;
cannam@85 2401 conftest.$ac_ext )
cannam@85 2402 # This is the source file.
cannam@85 2403 ;;
cannam@85 2404 [ab].out )
cannam@85 2405 # We found the default executable, but exeext='' is most
cannam@85 2406 # certainly right.
cannam@85 2407 break;;
cannam@85 2408 *.* )
cannam@85 2409 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
cannam@85 2410 # FIXME: I believe we export ac_cv_exeext for Libtool,
cannam@85 2411 # but it would be cool to find out if it's true. Does anybody
cannam@85 2412 # maintain Libtool? --akim.
cannam@85 2413 export ac_cv_exeext
cannam@85 2414 break;;
cannam@85 2415 * )
cannam@85 2416 break;;
cannam@85 2417 esac
cannam@85 2418 done
cannam@85 2419 else
cannam@85 2420 echo "$as_me: failed program was:" >&5
cannam@85 2421 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 2422
cannam@85 2423 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
cannam@85 2424 See \`config.log' for more details." >&5
cannam@85 2425 echo "$as_me: error: C compiler cannot create executables
cannam@85 2426 See \`config.log' for more details." >&2;}
cannam@85 2427 { (exit 77); exit 77; }; }
cannam@85 2428 fi
cannam@85 2429
cannam@85 2430 ac_exeext=$ac_cv_exeext
cannam@85 2431 echo "$as_me:$LINENO: result: $ac_file" >&5
cannam@85 2432 echo "${ECHO_T}$ac_file" >&6
cannam@85 2433
cannam@85 2434 # Check the compiler produces executables we can run. If not, either
cannam@85 2435 # the compiler is broken, or we cross compile.
cannam@85 2436 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
cannam@85 2437 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
cannam@85 2438 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
cannam@85 2439 # If not cross compiling, check that we can run a simple program.
cannam@85 2440 if test "$cross_compiling" != yes; then
cannam@85 2441 if { ac_try='./$ac_file'
cannam@85 2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2443 (eval $ac_try) 2>&5
cannam@85 2444 ac_status=$?
cannam@85 2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2446 (exit $ac_status); }; }; then
cannam@85 2447 cross_compiling=no
cannam@85 2448 else
cannam@85 2449 if test "$cross_compiling" = maybe; then
cannam@85 2450 cross_compiling=yes
cannam@85 2451 else
cannam@85 2452 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
cannam@85 2453 If you meant to cross compile, use \`--host'.
cannam@85 2454 See \`config.log' for more details." >&5
cannam@85 2455 echo "$as_me: error: cannot run C compiled programs.
cannam@85 2456 If you meant to cross compile, use \`--host'.
cannam@85 2457 See \`config.log' for more details." >&2;}
cannam@85 2458 { (exit 1); exit 1; }; }
cannam@85 2459 fi
cannam@85 2460 fi
cannam@85 2461 fi
cannam@85 2462 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 2463 echo "${ECHO_T}yes" >&6
cannam@85 2464
cannam@85 2465 rm -f a.out a.exe conftest$ac_cv_exeext b.out
cannam@85 2466 ac_clean_files=$ac_clean_files_save
cannam@85 2467 # Check the compiler produces executables we can run. If not, either
cannam@85 2468 # the compiler is broken, or we cross compile.
cannam@85 2469 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
cannam@85 2470 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
cannam@85 2471 echo "$as_me:$LINENO: result: $cross_compiling" >&5
cannam@85 2472 echo "${ECHO_T}$cross_compiling" >&6
cannam@85 2473
cannam@85 2474 echo "$as_me:$LINENO: checking for suffix of executables" >&5
cannam@85 2475 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
cannam@85 2476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 2477 (eval $ac_link) 2>&5
cannam@85 2478 ac_status=$?
cannam@85 2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2480 (exit $ac_status); }; then
cannam@85 2481 # If both `conftest.exe' and `conftest' are `present' (well, observable)
cannam@85 2482 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
cannam@85 2483 # work properly (i.e., refer to `conftest.exe'), while it won't with
cannam@85 2484 # `rm'.
cannam@85 2485 for ac_file in conftest.exe conftest conftest.*; do
cannam@85 2486 test -f "$ac_file" || continue
cannam@85 2487 case $ac_file in
cannam@85 2488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
cannam@85 2489 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
cannam@85 2490 export ac_cv_exeext
cannam@85 2491 break;;
cannam@85 2492 * ) break;;
cannam@85 2493 esac
cannam@85 2494 done
cannam@85 2495 else
cannam@85 2496 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
cannam@85 2497 See \`config.log' for more details." >&5
cannam@85 2498 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
cannam@85 2499 See \`config.log' for more details." >&2;}
cannam@85 2500 { (exit 1); exit 1; }; }
cannam@85 2501 fi
cannam@85 2502
cannam@85 2503 rm -f conftest$ac_cv_exeext
cannam@85 2504 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
cannam@85 2505 echo "${ECHO_T}$ac_cv_exeext" >&6
cannam@85 2506
cannam@85 2507 rm -f conftest.$ac_ext
cannam@85 2508 EXEEXT=$ac_cv_exeext
cannam@85 2509 ac_exeext=$EXEEXT
cannam@85 2510 echo "$as_me:$LINENO: checking for suffix of object files" >&5
cannam@85 2511 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
cannam@85 2512 if test "${ac_cv_objext+set}" = set; then
cannam@85 2513 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 2514 else
cannam@85 2515 cat >conftest.$ac_ext <<_ACEOF
cannam@85 2516 /* confdefs.h. */
cannam@85 2517 _ACEOF
cannam@85 2518 cat confdefs.h >>conftest.$ac_ext
cannam@85 2519 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 2520 /* end confdefs.h. */
cannam@85 2521
cannam@85 2522 int
cannam@85 2523 main ()
cannam@85 2524 {
cannam@85 2525
cannam@85 2526 ;
cannam@85 2527 return 0;
cannam@85 2528 }
cannam@85 2529 _ACEOF
cannam@85 2530 rm -f conftest.o conftest.obj
cannam@85 2531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 2532 (eval $ac_compile) 2>&5
cannam@85 2533 ac_status=$?
cannam@85 2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2535 (exit $ac_status); }; then
cannam@85 2536 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
cannam@85 2537 case $ac_file in
cannam@85 2538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
cannam@85 2539 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
cannam@85 2540 break;;
cannam@85 2541 esac
cannam@85 2542 done
cannam@85 2543 else
cannam@85 2544 echo "$as_me: failed program was:" >&5
cannam@85 2545 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 2546
cannam@85 2547 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
cannam@85 2548 See \`config.log' for more details." >&5
cannam@85 2549 echo "$as_me: error: cannot compute suffix of object files: cannot compile
cannam@85 2550 See \`config.log' for more details." >&2;}
cannam@85 2551 { (exit 1); exit 1; }; }
cannam@85 2552 fi
cannam@85 2553
cannam@85 2554 rm -f conftest.$ac_cv_objext conftest.$ac_ext
cannam@85 2555 fi
cannam@85 2556 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
cannam@85 2557 echo "${ECHO_T}$ac_cv_objext" >&6
cannam@85 2558 OBJEXT=$ac_cv_objext
cannam@85 2559 ac_objext=$OBJEXT
cannam@85 2560 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
cannam@85 2561 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
cannam@85 2562 if test "${ac_cv_c_compiler_gnu+set}" = set; then
cannam@85 2563 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 2564 else
cannam@85 2565 cat >conftest.$ac_ext <<_ACEOF
cannam@85 2566 /* confdefs.h. */
cannam@85 2567 _ACEOF
cannam@85 2568 cat confdefs.h >>conftest.$ac_ext
cannam@85 2569 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 2570 /* end confdefs.h. */
cannam@85 2571
cannam@85 2572 int
cannam@85 2573 main ()
cannam@85 2574 {
cannam@85 2575 #ifndef __GNUC__
cannam@85 2576 choke me
cannam@85 2577 #endif
cannam@85 2578
cannam@85 2579 ;
cannam@85 2580 return 0;
cannam@85 2581 }
cannam@85 2582 _ACEOF
cannam@85 2583 rm -f conftest.$ac_objext
cannam@85 2584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 2585 (eval $ac_compile) 2>conftest.er1
cannam@85 2586 ac_status=$?
cannam@85 2587 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 2588 rm -f conftest.er1
cannam@85 2589 cat conftest.err >&5
cannam@85 2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2591 (exit $ac_status); } &&
cannam@85 2592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2594 (eval $ac_try) 2>&5
cannam@85 2595 ac_status=$?
cannam@85 2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2597 (exit $ac_status); }; } &&
cannam@85 2598 { ac_try='test -s conftest.$ac_objext'
cannam@85 2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2600 (eval $ac_try) 2>&5
cannam@85 2601 ac_status=$?
cannam@85 2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2603 (exit $ac_status); }; }; then
cannam@85 2604 ac_compiler_gnu=yes
cannam@85 2605 else
cannam@85 2606 echo "$as_me: failed program was:" >&5
cannam@85 2607 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 2608
cannam@85 2609 ac_compiler_gnu=no
cannam@85 2610 fi
cannam@85 2611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 2612 ac_cv_c_compiler_gnu=$ac_compiler_gnu
cannam@85 2613
cannam@85 2614 fi
cannam@85 2615 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
cannam@85 2616 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
cannam@85 2617 GCC=`test $ac_compiler_gnu = yes && echo yes`
cannam@85 2618 ac_test_CFLAGS=${CFLAGS+set}
cannam@85 2619 ac_save_CFLAGS=$CFLAGS
cannam@85 2620 CFLAGS="-g"
cannam@85 2621 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
cannam@85 2622 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
cannam@85 2623 if test "${ac_cv_prog_cc_g+set}" = set; then
cannam@85 2624 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 2625 else
cannam@85 2626 cat >conftest.$ac_ext <<_ACEOF
cannam@85 2627 /* confdefs.h. */
cannam@85 2628 _ACEOF
cannam@85 2629 cat confdefs.h >>conftest.$ac_ext
cannam@85 2630 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 2631 /* end confdefs.h. */
cannam@85 2632
cannam@85 2633 int
cannam@85 2634 main ()
cannam@85 2635 {
cannam@85 2636
cannam@85 2637 ;
cannam@85 2638 return 0;
cannam@85 2639 }
cannam@85 2640 _ACEOF
cannam@85 2641 rm -f conftest.$ac_objext
cannam@85 2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 2643 (eval $ac_compile) 2>conftest.er1
cannam@85 2644 ac_status=$?
cannam@85 2645 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 2646 rm -f conftest.er1
cannam@85 2647 cat conftest.err >&5
cannam@85 2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2649 (exit $ac_status); } &&
cannam@85 2650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2652 (eval $ac_try) 2>&5
cannam@85 2653 ac_status=$?
cannam@85 2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2655 (exit $ac_status); }; } &&
cannam@85 2656 { ac_try='test -s conftest.$ac_objext'
cannam@85 2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2658 (eval $ac_try) 2>&5
cannam@85 2659 ac_status=$?
cannam@85 2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2661 (exit $ac_status); }; }; then
cannam@85 2662 ac_cv_prog_cc_g=yes
cannam@85 2663 else
cannam@85 2664 echo "$as_me: failed program was:" >&5
cannam@85 2665 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 2666
cannam@85 2667 ac_cv_prog_cc_g=no
cannam@85 2668 fi
cannam@85 2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 2670 fi
cannam@85 2671 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
cannam@85 2672 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
cannam@85 2673 if test "$ac_test_CFLAGS" = set; then
cannam@85 2674 CFLAGS=$ac_save_CFLAGS
cannam@85 2675 elif test $ac_cv_prog_cc_g = yes; then
cannam@85 2676 if test "$GCC" = yes; then
cannam@85 2677 CFLAGS="-g -O2"
cannam@85 2678 else
cannam@85 2679 CFLAGS="-g"
cannam@85 2680 fi
cannam@85 2681 else
cannam@85 2682 if test "$GCC" = yes; then
cannam@85 2683 CFLAGS="-O2"
cannam@85 2684 else
cannam@85 2685 CFLAGS=
cannam@85 2686 fi
cannam@85 2687 fi
cannam@85 2688 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
cannam@85 2689 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
cannam@85 2690 if test "${ac_cv_prog_cc_stdc+set}" = set; then
cannam@85 2691 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 2692 else
cannam@85 2693 ac_cv_prog_cc_stdc=no
cannam@85 2694 ac_save_CC=$CC
cannam@85 2695 cat >conftest.$ac_ext <<_ACEOF
cannam@85 2696 /* confdefs.h. */
cannam@85 2697 _ACEOF
cannam@85 2698 cat confdefs.h >>conftest.$ac_ext
cannam@85 2699 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 2700 /* end confdefs.h. */
cannam@85 2701 #include <stdarg.h>
cannam@85 2702 #include <stdio.h>
cannam@85 2703 #include <sys/types.h>
cannam@85 2704 #include <sys/stat.h>
cannam@85 2705 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
cannam@85 2706 struct buf { int x; };
cannam@85 2707 FILE * (*rcsopen) (struct buf *, struct stat *, int);
cannam@85 2708 static char *e (p, i)
cannam@85 2709 char **p;
cannam@85 2710 int i;
cannam@85 2711 {
cannam@85 2712 return p[i];
cannam@85 2713 }
cannam@85 2714 static char *f (char * (*g) (char **, int), char **p, ...)
cannam@85 2715 {
cannam@85 2716 char *s;
cannam@85 2717 va_list v;
cannam@85 2718 va_start (v,p);
cannam@85 2719 s = g (p, va_arg (v,int));
cannam@85 2720 va_end (v);
cannam@85 2721 return s;
cannam@85 2722 }
cannam@85 2723
cannam@85 2724 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
cannam@85 2725 function prototypes and stuff, but not '\xHH' hex character constants.
cannam@85 2726 These don't provoke an error unfortunately, instead are silently treated
cannam@85 2727 as 'x'. The following induces an error, until -std1 is added to get
cannam@85 2728 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
cannam@85 2729 array size at least. It's necessary to write '\x00'==0 to get something
cannam@85 2730 that's true only with -std1. */
cannam@85 2731 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
cannam@85 2732
cannam@85 2733 int test (int i, double x);
cannam@85 2734 struct s1 {int (*f) (int a);};
cannam@85 2735 struct s2 {int (*f) (double a);};
cannam@85 2736 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
cannam@85 2737 int argc;
cannam@85 2738 char **argv;
cannam@85 2739 int
cannam@85 2740 main ()
cannam@85 2741 {
cannam@85 2742 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
cannam@85 2743 ;
cannam@85 2744 return 0;
cannam@85 2745 }
cannam@85 2746 _ACEOF
cannam@85 2747 # Don't try gcc -ansi; that turns off useful extensions and
cannam@85 2748 # breaks some systems' header files.
cannam@85 2749 # AIX -qlanglvl=ansi
cannam@85 2750 # Ultrix and OSF/1 -std1
cannam@85 2751 # HP-UX 10.20 and later -Ae
cannam@85 2752 # HP-UX older versions -Aa -D_HPUX_SOURCE
cannam@85 2753 # SVR4 -Xc -D__EXTENSIONS__
cannam@85 2754 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
cannam@85 2755 do
cannam@85 2756 CC="$ac_save_CC $ac_arg"
cannam@85 2757 rm -f conftest.$ac_objext
cannam@85 2758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 2759 (eval $ac_compile) 2>conftest.er1
cannam@85 2760 ac_status=$?
cannam@85 2761 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 2762 rm -f conftest.er1
cannam@85 2763 cat conftest.err >&5
cannam@85 2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2765 (exit $ac_status); } &&
cannam@85 2766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2768 (eval $ac_try) 2>&5
cannam@85 2769 ac_status=$?
cannam@85 2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2771 (exit $ac_status); }; } &&
cannam@85 2772 { ac_try='test -s conftest.$ac_objext'
cannam@85 2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2774 (eval $ac_try) 2>&5
cannam@85 2775 ac_status=$?
cannam@85 2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2777 (exit $ac_status); }; }; then
cannam@85 2778 ac_cv_prog_cc_stdc=$ac_arg
cannam@85 2779 break
cannam@85 2780 else
cannam@85 2781 echo "$as_me: failed program was:" >&5
cannam@85 2782 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 2783
cannam@85 2784 fi
cannam@85 2785 rm -f conftest.err conftest.$ac_objext
cannam@85 2786 done
cannam@85 2787 rm -f conftest.$ac_ext conftest.$ac_objext
cannam@85 2788 CC=$ac_save_CC
cannam@85 2789
cannam@85 2790 fi
cannam@85 2791
cannam@85 2792 case "x$ac_cv_prog_cc_stdc" in
cannam@85 2793 x|xno)
cannam@85 2794 echo "$as_me:$LINENO: result: none needed" >&5
cannam@85 2795 echo "${ECHO_T}none needed" >&6 ;;
cannam@85 2796 *)
cannam@85 2797 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
cannam@85 2798 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
cannam@85 2799 CC="$CC $ac_cv_prog_cc_stdc" ;;
cannam@85 2800 esac
cannam@85 2801
cannam@85 2802 # Some people use a C++ compiler to compile C. Since we use `exit',
cannam@85 2803 # in C++ we need to declare it. In case someone uses the same compiler
cannam@85 2804 # for both compiling C and C++ we need to have the C++ compiler decide
cannam@85 2805 # the declaration of exit, since it's the most demanding environment.
cannam@85 2806 cat >conftest.$ac_ext <<_ACEOF
cannam@85 2807 #ifndef __cplusplus
cannam@85 2808 choke me
cannam@85 2809 #endif
cannam@85 2810 _ACEOF
cannam@85 2811 rm -f conftest.$ac_objext
cannam@85 2812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 2813 (eval $ac_compile) 2>conftest.er1
cannam@85 2814 ac_status=$?
cannam@85 2815 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 2816 rm -f conftest.er1
cannam@85 2817 cat conftest.err >&5
cannam@85 2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2819 (exit $ac_status); } &&
cannam@85 2820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2822 (eval $ac_try) 2>&5
cannam@85 2823 ac_status=$?
cannam@85 2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2825 (exit $ac_status); }; } &&
cannam@85 2826 { ac_try='test -s conftest.$ac_objext'
cannam@85 2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2828 (eval $ac_try) 2>&5
cannam@85 2829 ac_status=$?
cannam@85 2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2831 (exit $ac_status); }; }; then
cannam@85 2832 for ac_declaration in \
cannam@85 2833 '' \
cannam@85 2834 'extern "C" void std::exit (int) throw (); using std::exit;' \
cannam@85 2835 'extern "C" void std::exit (int); using std::exit;' \
cannam@85 2836 'extern "C" void exit (int) throw ();' \
cannam@85 2837 'extern "C" void exit (int);' \
cannam@85 2838 'void exit (int);'
cannam@85 2839 do
cannam@85 2840 cat >conftest.$ac_ext <<_ACEOF
cannam@85 2841 /* confdefs.h. */
cannam@85 2842 _ACEOF
cannam@85 2843 cat confdefs.h >>conftest.$ac_ext
cannam@85 2844 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 2845 /* end confdefs.h. */
cannam@85 2846 $ac_declaration
cannam@85 2847 #include <stdlib.h>
cannam@85 2848 int
cannam@85 2849 main ()
cannam@85 2850 {
cannam@85 2851 exit (42);
cannam@85 2852 ;
cannam@85 2853 return 0;
cannam@85 2854 }
cannam@85 2855 _ACEOF
cannam@85 2856 rm -f conftest.$ac_objext
cannam@85 2857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 2858 (eval $ac_compile) 2>conftest.er1
cannam@85 2859 ac_status=$?
cannam@85 2860 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 2861 rm -f conftest.er1
cannam@85 2862 cat conftest.err >&5
cannam@85 2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2864 (exit $ac_status); } &&
cannam@85 2865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2867 (eval $ac_try) 2>&5
cannam@85 2868 ac_status=$?
cannam@85 2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2870 (exit $ac_status); }; } &&
cannam@85 2871 { ac_try='test -s conftest.$ac_objext'
cannam@85 2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2873 (eval $ac_try) 2>&5
cannam@85 2874 ac_status=$?
cannam@85 2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2876 (exit $ac_status); }; }; then
cannam@85 2877 :
cannam@85 2878 else
cannam@85 2879 echo "$as_me: failed program was:" >&5
cannam@85 2880 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 2881
cannam@85 2882 continue
cannam@85 2883 fi
cannam@85 2884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 2885 cat >conftest.$ac_ext <<_ACEOF
cannam@85 2886 /* confdefs.h. */
cannam@85 2887 _ACEOF
cannam@85 2888 cat confdefs.h >>conftest.$ac_ext
cannam@85 2889 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 2890 /* end confdefs.h. */
cannam@85 2891 $ac_declaration
cannam@85 2892 int
cannam@85 2893 main ()
cannam@85 2894 {
cannam@85 2895 exit (42);
cannam@85 2896 ;
cannam@85 2897 return 0;
cannam@85 2898 }
cannam@85 2899 _ACEOF
cannam@85 2900 rm -f conftest.$ac_objext
cannam@85 2901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 2902 (eval $ac_compile) 2>conftest.er1
cannam@85 2903 ac_status=$?
cannam@85 2904 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 2905 rm -f conftest.er1
cannam@85 2906 cat conftest.err >&5
cannam@85 2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2908 (exit $ac_status); } &&
cannam@85 2909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 2910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2911 (eval $ac_try) 2>&5
cannam@85 2912 ac_status=$?
cannam@85 2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2914 (exit $ac_status); }; } &&
cannam@85 2915 { ac_try='test -s conftest.$ac_objext'
cannam@85 2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2917 (eval $ac_try) 2>&5
cannam@85 2918 ac_status=$?
cannam@85 2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2920 (exit $ac_status); }; }; then
cannam@85 2921 break
cannam@85 2922 else
cannam@85 2923 echo "$as_me: failed program was:" >&5
cannam@85 2924 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 2925
cannam@85 2926 fi
cannam@85 2927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 2928 done
cannam@85 2929 rm -f conftest*
cannam@85 2930 if test -n "$ac_declaration"; then
cannam@85 2931 echo '#ifdef __cplusplus' >>confdefs.h
cannam@85 2932 echo $ac_declaration >>confdefs.h
cannam@85 2933 echo '#endif' >>confdefs.h
cannam@85 2934 fi
cannam@85 2935
cannam@85 2936 else
cannam@85 2937 echo "$as_me: failed program was:" >&5
cannam@85 2938 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 2939
cannam@85 2940 fi
cannam@85 2941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 2942 ac_ext=c
cannam@85 2943 ac_cpp='$CPP $CPPFLAGS'
cannam@85 2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 2947 DEPDIR="${am__leading_dot}deps"
cannam@85 2948
cannam@85 2949 ac_config_commands="$ac_config_commands depfiles"
cannam@85 2950
cannam@85 2951
cannam@85 2952 am_make=${MAKE-make}
cannam@85 2953 cat > confinc << 'END'
cannam@85 2954 am__doit:
cannam@85 2955 @echo done
cannam@85 2956 .PHONY: am__doit
cannam@85 2957 END
cannam@85 2958 # If we don't find an include directive, just comment out the code.
cannam@85 2959 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
cannam@85 2960 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
cannam@85 2961 am__include="#"
cannam@85 2962 am__quote=
cannam@85 2963 _am_result=none
cannam@85 2964 # First try GNU make style include.
cannam@85 2965 echo "include confinc" > confmf
cannam@85 2966 # We grep out `Entering directory' and `Leaving directory'
cannam@85 2967 # messages which can occur if `w' ends up in MAKEFLAGS.
cannam@85 2968 # In particular we don't look at `^make:' because GNU make might
cannam@85 2969 # be invoked under some other name (usually "gmake"), in which
cannam@85 2970 # case it prints its new name instead of `make'.
cannam@85 2971 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
cannam@85 2972 am__include=include
cannam@85 2973 am__quote=
cannam@85 2974 _am_result=GNU
cannam@85 2975 fi
cannam@85 2976 # Now try BSD make style include.
cannam@85 2977 if test "$am__include" = "#"; then
cannam@85 2978 echo '.include "confinc"' > confmf
cannam@85 2979 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
cannam@85 2980 am__include=.include
cannam@85 2981 am__quote="\""
cannam@85 2982 _am_result=BSD
cannam@85 2983 fi
cannam@85 2984 fi
cannam@85 2985
cannam@85 2986
cannam@85 2987 echo "$as_me:$LINENO: result: $_am_result" >&5
cannam@85 2988 echo "${ECHO_T}$_am_result" >&6
cannam@85 2989 rm -f confinc confmf
cannam@85 2990
cannam@85 2991 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
cannam@85 2992 if test "${enable_dependency_tracking+set}" = set; then
cannam@85 2993 enableval="$enable_dependency_tracking"
cannam@85 2994
cannam@85 2995 fi;
cannam@85 2996 if test "x$enable_dependency_tracking" != xno; then
cannam@85 2997 am_depcomp="$ac_aux_dir/depcomp"
cannam@85 2998 AMDEPBACKSLASH='\'
cannam@85 2999 fi
cannam@85 3000
cannam@85 3001
cannam@85 3002 if test "x$enable_dependency_tracking" != xno; then
cannam@85 3003 AMDEP_TRUE=
cannam@85 3004 AMDEP_FALSE='#'
cannam@85 3005 else
cannam@85 3006 AMDEP_TRUE='#'
cannam@85 3007 AMDEP_FALSE=
cannam@85 3008 fi
cannam@85 3009
cannam@85 3010
cannam@85 3011
cannam@85 3012
cannam@85 3013 depcc="$CC" am_compiler_list=
cannam@85 3014
cannam@85 3015 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
cannam@85 3016 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
cannam@85 3017 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
cannam@85 3018 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 3019 else
cannam@85 3020 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
cannam@85 3021 # We make a subdir and do the tests there. Otherwise we can end up
cannam@85 3022 # making bogus files that we don't know about and never remove. For
cannam@85 3023 # instance it was reported that on HP-UX the gcc test will end up
cannam@85 3024 # making a dummy file named `D' -- because `-MD' means `put the output
cannam@85 3025 # in D'.
cannam@85 3026 mkdir conftest.dir
cannam@85 3027 # Copy depcomp to subdir because otherwise we won't find it if we're
cannam@85 3028 # using a relative directory.
cannam@85 3029 cp "$am_depcomp" conftest.dir
cannam@85 3030 cd conftest.dir
cannam@85 3031 # We will build objects and dependencies in a subdirectory because
cannam@85 3032 # it helps to detect inapplicable dependency modes. For instance
cannam@85 3033 # both Tru64's cc and ICC support -MD to output dependencies as a
cannam@85 3034 # side effect of compilation, but ICC will put the dependencies in
cannam@85 3035 # the current directory while Tru64 will put them in the object
cannam@85 3036 # directory.
cannam@85 3037 mkdir sub
cannam@85 3038
cannam@85 3039 am_cv_CC_dependencies_compiler_type=none
cannam@85 3040 if test "$am_compiler_list" = ""; then
cannam@85 3041 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
cannam@85 3042 fi
cannam@85 3043 for depmode in $am_compiler_list; do
cannam@85 3044 # Setup a source with many dependencies, because some compilers
cannam@85 3045 # like to wrap large dependency lists on column 80 (with \), and
cannam@85 3046 # we should not choose a depcomp mode which is confused by this.
cannam@85 3047 #
cannam@85 3048 # We need to recreate these files for each test, as the compiler may
cannam@85 3049 # overwrite some of them when testing with obscure command lines.
cannam@85 3050 # This happens at least with the AIX C compiler.
cannam@85 3051 : > sub/conftest.c
cannam@85 3052 for i in 1 2 3 4 5 6; do
cannam@85 3053 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cannam@85 3054 : > sub/conftst$i.h
cannam@85 3055 done
cannam@85 3056 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
cannam@85 3057
cannam@85 3058 case $depmode in
cannam@85 3059 nosideeffect)
cannam@85 3060 # after this tag, mechanisms are not by side-effect, so they'll
cannam@85 3061 # only be used when explicitly requested
cannam@85 3062 if test "x$enable_dependency_tracking" = xyes; then
cannam@85 3063 continue
cannam@85 3064 else
cannam@85 3065 break
cannam@85 3066 fi
cannam@85 3067 ;;
cannam@85 3068 none) break ;;
cannam@85 3069 esac
cannam@85 3070 # We check with `-c' and `-o' for the sake of the "dashmstdout"
cannam@85 3071 # mode. It turns out that the SunPro C++ compiler does not properly
cannam@85 3072 # handle `-M -o', and we need to detect this.
cannam@85 3073 if depmode=$depmode \
cannam@85 3074 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
cannam@85 3075 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cannam@85 3076 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
cannam@85 3077 >/dev/null 2>conftest.err &&
cannam@85 3078 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@85 3079 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
cannam@85 3080 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
cannam@85 3081 # icc doesn't choke on unknown options, it will just issue warnings
cannam@85 3082 # (even with -Werror). So we grep stderr for any message
cannam@85 3083 # that says an option was ignored.
cannam@85 3084 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
cannam@85 3085 am_cv_CC_dependencies_compiler_type=$depmode
cannam@85 3086 break
cannam@85 3087 fi
cannam@85 3088 fi
cannam@85 3089 done
cannam@85 3090
cannam@85 3091 cd ..
cannam@85 3092 rm -rf conftest.dir
cannam@85 3093 else
cannam@85 3094 am_cv_CC_dependencies_compiler_type=none
cannam@85 3095 fi
cannam@85 3096
cannam@85 3097 fi
cannam@85 3098 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
cannam@85 3099 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
cannam@85 3100 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
cannam@85 3101
cannam@85 3102
cannam@85 3103
cannam@85 3104 if
cannam@85 3105 test "x$enable_dependency_tracking" != xno \
cannam@85 3106 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
cannam@85 3107 am__fastdepCC_TRUE=
cannam@85 3108 am__fastdepCC_FALSE='#'
cannam@85 3109 else
cannam@85 3110 am__fastdepCC_TRUE='#'
cannam@85 3111 am__fastdepCC_FALSE=
cannam@85 3112 fi
cannam@85 3113
cannam@85 3114
cannam@85 3115 # By default we simply use the C compiler to build assembly code.
cannam@85 3116
cannam@85 3117 test "${CCAS+set}" = set || CCAS=$CC
cannam@85 3118 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
cannam@85 3119
cannam@85 3120
cannam@85 3121
cannam@85 3122
cannam@85 3123 if test "$GCC" = yes
cannam@85 3124 then
cannam@85 3125 case "$host" in
cannam@85 3126 *-*-mingw*)
cannam@85 3127 case "$build" in
cannam@85 3128 *-*-cygwin*)
cannam@85 3129 CPPFLAGS="$CPPFLAGS -mno-cygwin"
cannam@85 3130 LDFLAGS="$LDFLAGS -mno-cygwin"
cannam@85 3131 ;;
cannam@85 3132 esac
cannam@85 3133 esac
cannam@85 3134
cannam@85 3135 fi
cannam@85 3136
cannam@85 3137
cannam@85 3138 # Check whether --enable-shared or --disable-shared was given.
cannam@85 3139 if test "${enable_shared+set}" = set; then
cannam@85 3140 enableval="$enable_shared"
cannam@85 3141 p=${PACKAGE-default}
cannam@85 3142 case $enableval in
cannam@85 3143 yes) enable_shared=yes ;;
cannam@85 3144 no) enable_shared=no ;;
cannam@85 3145 *)
cannam@85 3146 enable_shared=no
cannam@85 3147 # Look at the argument we got. We use all the common list separators.
cannam@85 3148 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@85 3149 for pkg in $enableval; do
cannam@85 3150 IFS="$lt_save_ifs"
cannam@85 3151 if test "X$pkg" = "X$p"; then
cannam@85 3152 enable_shared=yes
cannam@85 3153 fi
cannam@85 3154 done
cannam@85 3155 IFS="$lt_save_ifs"
cannam@85 3156 ;;
cannam@85 3157 esac
cannam@85 3158 else
cannam@85 3159 enable_shared=yes
cannam@85 3160 fi;
cannam@85 3161
cannam@85 3162 # Check whether --enable-static or --disable-static was given.
cannam@85 3163 if test "${enable_static+set}" = set; then
cannam@85 3164 enableval="$enable_static"
cannam@85 3165 p=${PACKAGE-default}
cannam@85 3166 case $enableval in
cannam@85 3167 yes) enable_static=yes ;;
cannam@85 3168 no) enable_static=no ;;
cannam@85 3169 *)
cannam@85 3170 enable_static=no
cannam@85 3171 # Look at the argument we got. We use all the common list separators.
cannam@85 3172 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@85 3173 for pkg in $enableval; do
cannam@85 3174 IFS="$lt_save_ifs"
cannam@85 3175 if test "X$pkg" = "X$p"; then
cannam@85 3176 enable_static=yes
cannam@85 3177 fi
cannam@85 3178 done
cannam@85 3179 IFS="$lt_save_ifs"
cannam@85 3180 ;;
cannam@85 3181 esac
cannam@85 3182 else
cannam@85 3183 enable_static=yes
cannam@85 3184 fi;
cannam@85 3185
cannam@85 3186 # Check whether --enable-fast-install or --disable-fast-install was given.
cannam@85 3187 if test "${enable_fast_install+set}" = set; then
cannam@85 3188 enableval="$enable_fast_install"
cannam@85 3189 p=${PACKAGE-default}
cannam@85 3190 case $enableval in
cannam@85 3191 yes) enable_fast_install=yes ;;
cannam@85 3192 no) enable_fast_install=no ;;
cannam@85 3193 *)
cannam@85 3194 enable_fast_install=no
cannam@85 3195 # Look at the argument we got. We use all the common list separators.
cannam@85 3196 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@85 3197 for pkg in $enableval; do
cannam@85 3198 IFS="$lt_save_ifs"
cannam@85 3199 if test "X$pkg" = "X$p"; then
cannam@85 3200 enable_fast_install=yes
cannam@85 3201 fi
cannam@85 3202 done
cannam@85 3203 IFS="$lt_save_ifs"
cannam@85 3204 ;;
cannam@85 3205 esac
cannam@85 3206 else
cannam@85 3207 enable_fast_install=yes
cannam@85 3208 fi;
cannam@85 3209
cannam@85 3210 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
cannam@85 3211 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
cannam@85 3212 if test "${lt_cv_path_SED+set}" = set; then
cannam@85 3213 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 3214 else
cannam@85 3215 # Loop through the user's path and test for sed and gsed.
cannam@85 3216 # Then use that list of sed's as ones to test for truncation.
cannam@85 3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 3218 for as_dir in $PATH
cannam@85 3219 do
cannam@85 3220 IFS=$as_save_IFS
cannam@85 3221 test -z "$as_dir" && as_dir=.
cannam@85 3222 for lt_ac_prog in sed gsed; do
cannam@85 3223 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 3224 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
cannam@85 3225 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
cannam@85 3226 fi
cannam@85 3227 done
cannam@85 3228 done
cannam@85 3229 done
cannam@85 3230 lt_ac_max=0
cannam@85 3231 lt_ac_count=0
cannam@85 3232 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
cannam@85 3233 # along with /bin/sed that truncates output.
cannam@85 3234 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
cannam@85 3235 test ! -f $lt_ac_sed && break
cannam@85 3236 cat /dev/null > conftest.in
cannam@85 3237 lt_ac_count=0
cannam@85 3238 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
cannam@85 3239 # Check for GNU sed and select it if it is found.
cannam@85 3240 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
cannam@85 3241 lt_cv_path_SED=$lt_ac_sed
cannam@85 3242 break
cannam@85 3243 fi
cannam@85 3244 while true; do
cannam@85 3245 cat conftest.in conftest.in >conftest.tmp
cannam@85 3246 mv conftest.tmp conftest.in
cannam@85 3247 cp conftest.in conftest.nl
cannam@85 3248 echo >>conftest.nl
cannam@85 3249 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
cannam@85 3250 cmp -s conftest.out conftest.nl || break
cannam@85 3251 # 10000 chars as input seems more than enough
cannam@85 3252 test $lt_ac_count -gt 10 && break
cannam@85 3253 lt_ac_count=`expr $lt_ac_count + 1`
cannam@85 3254 if test $lt_ac_count -gt $lt_ac_max; then
cannam@85 3255 lt_ac_max=$lt_ac_count
cannam@85 3256 lt_cv_path_SED=$lt_ac_sed
cannam@85 3257 fi
cannam@85 3258 done
cannam@85 3259 done
cannam@85 3260 SED=$lt_cv_path_SED
cannam@85 3261
cannam@85 3262 fi
cannam@85 3263
cannam@85 3264 echo "$as_me:$LINENO: result: $SED" >&5
cannam@85 3265 echo "${ECHO_T}$SED" >&6
cannam@85 3266
cannam@85 3267 echo "$as_me:$LINENO: checking for egrep" >&5
cannam@85 3268 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
cannam@85 3269 if test "${ac_cv_prog_egrep+set}" = set; then
cannam@85 3270 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 3271 else
cannam@85 3272 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
cannam@85 3273 then ac_cv_prog_egrep='grep -E'
cannam@85 3274 else ac_cv_prog_egrep='egrep'
cannam@85 3275 fi
cannam@85 3276 fi
cannam@85 3277 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
cannam@85 3278 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
cannam@85 3279 EGREP=$ac_cv_prog_egrep
cannam@85 3280
cannam@85 3281
cannam@85 3282
cannam@85 3283 # Check whether --with-gnu-ld or --without-gnu-ld was given.
cannam@85 3284 if test "${with_gnu_ld+set}" = set; then
cannam@85 3285 withval="$with_gnu_ld"
cannam@85 3286 test "$withval" = no || with_gnu_ld=yes
cannam@85 3287 else
cannam@85 3288 with_gnu_ld=no
cannam@85 3289 fi;
cannam@85 3290 ac_prog=ld
cannam@85 3291 if test "$GCC" = yes; then
cannam@85 3292 # Check if gcc -print-prog-name=ld gives a path.
cannam@85 3293 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
cannam@85 3294 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
cannam@85 3295 case $host in
cannam@85 3296 *-*-mingw*)
cannam@85 3297 # gcc leaves a trailing carriage return which upsets mingw
cannam@85 3298 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
cannam@85 3299 *)
cannam@85 3300 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
cannam@85 3301 esac
cannam@85 3302 case $ac_prog in
cannam@85 3303 # Accept absolute paths.
cannam@85 3304 [\\/]* | ?:[\\/]*)
cannam@85 3305 re_direlt='/[^/][^/]*/\.\./'
cannam@85 3306 # Canonicalize the pathname of ld
cannam@85 3307 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
cannam@85 3308 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
cannam@85 3309 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
cannam@85 3310 done
cannam@85 3311 test -z "$LD" && LD="$ac_prog"
cannam@85 3312 ;;
cannam@85 3313 "")
cannam@85 3314 # If it fails, then pretend we aren't using GCC.
cannam@85 3315 ac_prog=ld
cannam@85 3316 ;;
cannam@85 3317 *)
cannam@85 3318 # If it is relative, then search for the first ld in PATH.
cannam@85 3319 with_gnu_ld=unknown
cannam@85 3320 ;;
cannam@85 3321 esac
cannam@85 3322 elif test "$with_gnu_ld" = yes; then
cannam@85 3323 echo "$as_me:$LINENO: checking for GNU ld" >&5
cannam@85 3324 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
cannam@85 3325 else
cannam@85 3326 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
cannam@85 3327 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
cannam@85 3328 fi
cannam@85 3329 if test "${lt_cv_path_LD+set}" = set; then
cannam@85 3330 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 3331 else
cannam@85 3332 if test -z "$LD"; then
cannam@85 3333 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@85 3334 for ac_dir in $PATH; do
cannam@85 3335 IFS="$lt_save_ifs"
cannam@85 3336 test -z "$ac_dir" && ac_dir=.
cannam@85 3337 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
cannam@85 3338 lt_cv_path_LD="$ac_dir/$ac_prog"
cannam@85 3339 # Check to see if the program is GNU ld. I'd rather use --version,
cannam@85 3340 # but apparently some GNU ld's only accept -v.
cannam@85 3341 # Break only if it was the GNU/non-GNU ld that we prefer.
cannam@85 3342 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
cannam@85 3343 *GNU* | *'with BFD'*)
cannam@85 3344 test "$with_gnu_ld" != no && break
cannam@85 3345 ;;
cannam@85 3346 *)
cannam@85 3347 test "$with_gnu_ld" != yes && break
cannam@85 3348 ;;
cannam@85 3349 esac
cannam@85 3350 fi
cannam@85 3351 done
cannam@85 3352 IFS="$lt_save_ifs"
cannam@85 3353 else
cannam@85 3354 lt_cv_path_LD="$LD" # Let the user override the test with a path.
cannam@85 3355 fi
cannam@85 3356 fi
cannam@85 3357
cannam@85 3358 LD="$lt_cv_path_LD"
cannam@85 3359 if test -n "$LD"; then
cannam@85 3360 echo "$as_me:$LINENO: result: $LD" >&5
cannam@85 3361 echo "${ECHO_T}$LD" >&6
cannam@85 3362 else
cannam@85 3363 echo "$as_me:$LINENO: result: no" >&5
cannam@85 3364 echo "${ECHO_T}no" >&6
cannam@85 3365 fi
cannam@85 3366 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
cannam@85 3367 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
cannam@85 3368 { (exit 1); exit 1; }; }
cannam@85 3369 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
cannam@85 3370 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
cannam@85 3371 if test "${lt_cv_prog_gnu_ld+set}" = set; then
cannam@85 3372 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 3373 else
cannam@85 3374 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
cannam@85 3375 case `$LD -v 2>&1 </dev/null` in
cannam@85 3376 *GNU* | *'with BFD'*)
cannam@85 3377 lt_cv_prog_gnu_ld=yes
cannam@85 3378 ;;
cannam@85 3379 *)
cannam@85 3380 lt_cv_prog_gnu_ld=no
cannam@85 3381 ;;
cannam@85 3382 esac
cannam@85 3383 fi
cannam@85 3384 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
cannam@85 3385 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
cannam@85 3386 with_gnu_ld=$lt_cv_prog_gnu_ld
cannam@85 3387
cannam@85 3388
cannam@85 3389 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
cannam@85 3390 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
cannam@85 3391 if test "${lt_cv_ld_reload_flag+set}" = set; then
cannam@85 3392 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 3393 else
cannam@85 3394 lt_cv_ld_reload_flag='-r'
cannam@85 3395 fi
cannam@85 3396 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
cannam@85 3397 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
cannam@85 3398 reload_flag=$lt_cv_ld_reload_flag
cannam@85 3399 case $reload_flag in
cannam@85 3400 "" | " "*) ;;
cannam@85 3401 *) reload_flag=" $reload_flag" ;;
cannam@85 3402 esac
cannam@85 3403 reload_cmds='$LD$reload_flag -o $output$reload_objs'
cannam@85 3404
cannam@85 3405 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
cannam@85 3406 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
cannam@85 3407 if test "${lt_cv_path_NM+set}" = set; then
cannam@85 3408 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 3409 else
cannam@85 3410 if test -n "$NM"; then
cannam@85 3411 # Let the user override the test.
cannam@85 3412 lt_cv_path_NM="$NM"
cannam@85 3413 else
cannam@85 3414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@85 3415 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
cannam@85 3416 IFS="$lt_save_ifs"
cannam@85 3417 test -z "$ac_dir" && ac_dir=.
cannam@85 3418 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
cannam@85 3419 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
cannam@85 3420 # Check to see if the nm accepts a BSD-compat flag.
cannam@85 3421 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
cannam@85 3422 # nm: unknown option "B" ignored
cannam@85 3423 # Tru64's nm complains that /dev/null is an invalid object file
cannam@85 3424 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
cannam@85 3425 */dev/null* | *'Invalid file or object type'*)
cannam@85 3426 lt_cv_path_NM="$tmp_nm -B"
cannam@85 3427 break
cannam@85 3428 ;;
cannam@85 3429 *)
cannam@85 3430 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
cannam@85 3431 */dev/null*)
cannam@85 3432 lt_cv_path_NM="$tmp_nm -p"
cannam@85 3433 break
cannam@85 3434 ;;
cannam@85 3435 *)
cannam@85 3436 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
cannam@85 3437 continue # so that we can try to find one that supports BSD flags
cannam@85 3438 ;;
cannam@85 3439 esac
cannam@85 3440 esac
cannam@85 3441 fi
cannam@85 3442 done
cannam@85 3443 IFS="$lt_save_ifs"
cannam@85 3444 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
cannam@85 3445 fi
cannam@85 3446 fi
cannam@85 3447 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
cannam@85 3448 echo "${ECHO_T}$lt_cv_path_NM" >&6
cannam@85 3449 NM="$lt_cv_path_NM"
cannam@85 3450
cannam@85 3451 echo "$as_me:$LINENO: checking whether ln -s works" >&5
cannam@85 3452 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
cannam@85 3453 LN_S=$as_ln_s
cannam@85 3454 if test "$LN_S" = "ln -s"; then
cannam@85 3455 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 3456 echo "${ECHO_T}yes" >&6
cannam@85 3457 else
cannam@85 3458 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
cannam@85 3459 echo "${ECHO_T}no, using $LN_S" >&6
cannam@85 3460 fi
cannam@85 3461
cannam@85 3462 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
cannam@85 3463 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
cannam@85 3464 if test "${lt_cv_deplibs_check_method+set}" = set; then
cannam@85 3465 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 3466 else
cannam@85 3467 lt_cv_file_magic_cmd='$MAGIC_CMD'
cannam@85 3468 lt_cv_file_magic_test_file=
cannam@85 3469 lt_cv_deplibs_check_method='unknown'
cannam@85 3470 # Need to set the preceding variable on all platforms that support
cannam@85 3471 # interlibrary dependencies.
cannam@85 3472 # 'none' -- dependencies not supported.
cannam@85 3473 # `unknown' -- same as none, but documents that we really don't know.
cannam@85 3474 # 'pass_all' -- all dependencies passed with no checks.
cannam@85 3475 # 'test_compile' -- check by making test program.
cannam@85 3476 # 'file_magic [[regex]]' -- check by looking for files in library path
cannam@85 3477 # which responds to the $file_magic_cmd with a given extended regex.
cannam@85 3478 # If you have `file' or equivalent on your system and you're not sure
cannam@85 3479 # whether `pass_all' will *always* work, you probably want this one.
cannam@85 3480
cannam@85 3481 case $host_os in
cannam@85 3482 aix4* | aix5*)
cannam@85 3483 lt_cv_deplibs_check_method=pass_all
cannam@85 3484 ;;
cannam@85 3485
cannam@85 3486 beos*)
cannam@85 3487 lt_cv_deplibs_check_method=pass_all
cannam@85 3488 ;;
cannam@85 3489
cannam@85 3490 bsdi4*)
cannam@85 3491 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
cannam@85 3492 lt_cv_file_magic_cmd='/usr/bin/file -L'
cannam@85 3493 lt_cv_file_magic_test_file=/shlib/libc.so
cannam@85 3494 ;;
cannam@85 3495
cannam@85 3496 cygwin*)
cannam@85 3497 # win32_libid is a shell function defined in ltmain.sh
cannam@85 3498 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
cannam@85 3499 lt_cv_file_magic_cmd='win32_libid'
cannam@85 3500 ;;
cannam@85 3501
cannam@85 3502 mingw* | pw32*)
cannam@85 3503 # Base MSYS/MinGW do not provide the 'file' command needed by
cannam@85 3504 # win32_libid shell function, so use a weaker test based on 'objdump'.
cannam@85 3505 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
cannam@85 3506 lt_cv_file_magic_cmd='$OBJDUMP -f'
cannam@85 3507 ;;
cannam@85 3508
cannam@85 3509 darwin* | rhapsody*)
cannam@85 3510 lt_cv_deplibs_check_method=pass_all
cannam@85 3511 ;;
cannam@85 3512
cannam@85 3513 freebsd* | kfreebsd*-gnu)
cannam@85 3514 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
cannam@85 3515 case $host_cpu in
cannam@85 3516 i*86 )
cannam@85 3517 # Not sure whether the presence of OpenBSD here was a mistake.
cannam@85 3518 # Let's accept both of them until this is cleared up.
cannam@85 3519 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
cannam@85 3520 lt_cv_file_magic_cmd=/usr/bin/file
cannam@85 3521 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
cannam@85 3522 ;;
cannam@85 3523 esac
cannam@85 3524 else
cannam@85 3525 lt_cv_deplibs_check_method=pass_all
cannam@85 3526 fi
cannam@85 3527 ;;
cannam@85 3528
cannam@85 3529 gnu*)
cannam@85 3530 lt_cv_deplibs_check_method=pass_all
cannam@85 3531 ;;
cannam@85 3532
cannam@85 3533 hpux10.20* | hpux11*)
cannam@85 3534 lt_cv_file_magic_cmd=/usr/bin/file
cannam@85 3535 case "$host_cpu" in
cannam@85 3536 ia64*)
cannam@85 3537 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
cannam@85 3538 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
cannam@85 3539 ;;
cannam@85 3540 hppa*64*)
cannam@85 3541 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
cannam@85 3542 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
cannam@85 3543 ;;
cannam@85 3544 *)
cannam@85 3545 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
cannam@85 3546 lt_cv_file_magic_test_file=/usr/lib/libc.sl
cannam@85 3547 ;;
cannam@85 3548 esac
cannam@85 3549 ;;
cannam@85 3550
cannam@85 3551 irix5* | irix6* | nonstopux*)
cannam@85 3552 case $LD in
cannam@85 3553 *-32|*"-32 ") libmagic=32-bit;;
cannam@85 3554 *-n32|*"-n32 ") libmagic=N32;;
cannam@85 3555 *-64|*"-64 ") libmagic=64-bit;;
cannam@85 3556 *) libmagic=never-match;;
cannam@85 3557 esac
cannam@85 3558 lt_cv_deplibs_check_method=pass_all
cannam@85 3559 ;;
cannam@85 3560
cannam@85 3561 # This must be Linux ELF.
cannam@85 3562 linux*)
cannam@85 3563 lt_cv_deplibs_check_method=pass_all
cannam@85 3564 ;;
cannam@85 3565
cannam@85 3566 netbsd* | knetbsd*-gnu)
cannam@85 3567 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
cannam@85 3568 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cannam@85 3569 else
cannam@85 3570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cannam@85 3571 fi
cannam@85 3572 ;;
cannam@85 3573
cannam@85 3574 newos6*)
cannam@85 3575 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
cannam@85 3576 lt_cv_file_magic_cmd=/usr/bin/file
cannam@85 3577 lt_cv_file_magic_test_file=/usr/lib/libnls.so
cannam@85 3578 ;;
cannam@85 3579
cannam@85 3580 nto-qnx*)
cannam@85 3581 lt_cv_deplibs_check_method=unknown
cannam@85 3582 ;;
cannam@85 3583
cannam@85 3584 openbsd*)
cannam@85 3585 lt_cv_file_magic_cmd=/usr/bin/file
cannam@85 3586 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
cannam@85 3587 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@85 3588 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
cannam@85 3589 else
cannam@85 3590 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
cannam@85 3591 fi
cannam@85 3592 ;;
cannam@85 3593
cannam@85 3594 osf3* | osf4* | osf5*)
cannam@85 3595 lt_cv_deplibs_check_method=pass_all
cannam@85 3596 ;;
cannam@85 3597
cannam@85 3598 sco3.2v5*)
cannam@85 3599 lt_cv_deplibs_check_method=pass_all
cannam@85 3600 ;;
cannam@85 3601
cannam@85 3602 solaris*)
cannam@85 3603 lt_cv_deplibs_check_method=pass_all
cannam@85 3604 ;;
cannam@85 3605
cannam@85 3606 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@85 3607 case $host_vendor in
cannam@85 3608 motorola)
cannam@85 3609 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@85 3610 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
cannam@85 3611 ;;
cannam@85 3612 ncr)
cannam@85 3613 lt_cv_deplibs_check_method=pass_all
cannam@85 3614 ;;
cannam@85 3615 sequent)
cannam@85 3616 lt_cv_file_magic_cmd='/bin/file'
cannam@85 3617 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
cannam@85 3618 ;;
cannam@85 3619 sni)
cannam@85 3620 lt_cv_file_magic_cmd='/bin/file'
cannam@85 3621 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
cannam@85 3622 lt_cv_file_magic_test_file=/lib/libc.so
cannam@85 3623 ;;
cannam@85 3624 siemens)
cannam@85 3625 lt_cv_deplibs_check_method=pass_all
cannam@85 3626 ;;
cannam@85 3627 esac
cannam@85 3628 ;;
cannam@85 3629
cannam@85 3630 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
cannam@85 3631 lt_cv_deplibs_check_method=pass_all
cannam@85 3632 ;;
cannam@85 3633 esac
cannam@85 3634
cannam@85 3635 fi
cannam@85 3636 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
cannam@85 3637 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
cannam@85 3638 file_magic_cmd=$lt_cv_file_magic_cmd
cannam@85 3639 deplibs_check_method=$lt_cv_deplibs_check_method
cannam@85 3640 test -z "$deplibs_check_method" && deplibs_check_method=unknown
cannam@85 3641
cannam@85 3642
cannam@85 3643
cannam@85 3644
cannam@85 3645 # If no C compiler was specified, use CC.
cannam@85 3646 LTCC=${LTCC-"$CC"}
cannam@85 3647
cannam@85 3648 # Allow CC to be a program name with arguments.
cannam@85 3649 compiler=$CC
cannam@85 3650
cannam@85 3651
cannam@85 3652 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
cannam@85 3653 if test "${enable_libtool_lock+set}" = set; then
cannam@85 3654 enableval="$enable_libtool_lock"
cannam@85 3655
cannam@85 3656 fi;
cannam@85 3657 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
cannam@85 3658
cannam@85 3659 # Some flags need to be propagated to the compiler or linker for good
cannam@85 3660 # libtool support.
cannam@85 3661 case $host in
cannam@85 3662 ia64-*-hpux*)
cannam@85 3663 # Find out which ABI we are using.
cannam@85 3664 echo 'int i;' > conftest.$ac_ext
cannam@85 3665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 3666 (eval $ac_compile) 2>&5
cannam@85 3667 ac_status=$?
cannam@85 3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 3669 (exit $ac_status); }; then
cannam@85 3670 case `/usr/bin/file conftest.$ac_objext` in
cannam@85 3671 *ELF-32*)
cannam@85 3672 HPUX_IA64_MODE="32"
cannam@85 3673 ;;
cannam@85 3674 *ELF-64*)
cannam@85 3675 HPUX_IA64_MODE="64"
cannam@85 3676 ;;
cannam@85 3677 esac
cannam@85 3678 fi
cannam@85 3679 rm -rf conftest*
cannam@85 3680 ;;
cannam@85 3681 *-*-irix6*)
cannam@85 3682 # Find out which ABI we are using.
cannam@85 3683 echo '#line 3683 "configure"' > conftest.$ac_ext
cannam@85 3684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 3685 (eval $ac_compile) 2>&5
cannam@85 3686 ac_status=$?
cannam@85 3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 3688 (exit $ac_status); }; then
cannam@85 3689 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@85 3690 case `/usr/bin/file conftest.$ac_objext` in
cannam@85 3691 *32-bit*)
cannam@85 3692 LD="${LD-ld} -melf32bsmip"
cannam@85 3693 ;;
cannam@85 3694 *N32*)
cannam@85 3695 LD="${LD-ld} -melf32bmipn32"
cannam@85 3696 ;;
cannam@85 3697 *64-bit*)
cannam@85 3698 LD="${LD-ld} -melf64bmip"
cannam@85 3699 ;;
cannam@85 3700 esac
cannam@85 3701 else
cannam@85 3702 case `/usr/bin/file conftest.$ac_objext` in
cannam@85 3703 *32-bit*)
cannam@85 3704 LD="${LD-ld} -32"
cannam@85 3705 ;;
cannam@85 3706 *N32*)
cannam@85 3707 LD="${LD-ld} -n32"
cannam@85 3708 ;;
cannam@85 3709 *64-bit*)
cannam@85 3710 LD="${LD-ld} -64"
cannam@85 3711 ;;
cannam@85 3712 esac
cannam@85 3713 fi
cannam@85 3714 fi
cannam@85 3715 rm -rf conftest*
cannam@85 3716 ;;
cannam@85 3717
cannam@85 3718 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
cannam@85 3719 # Find out which ABI we are using.
cannam@85 3720 echo 'int i;' > conftest.$ac_ext
cannam@85 3721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 3722 (eval $ac_compile) 2>&5
cannam@85 3723 ac_status=$?
cannam@85 3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 3725 (exit $ac_status); }; then
cannam@85 3726 case "`/usr/bin/file conftest.o`" in
cannam@85 3727 *32-bit*)
cannam@85 3728 case $host in
cannam@85 3729 x86_64-*linux*)
cannam@85 3730 LD="${LD-ld} -m elf_i386"
cannam@85 3731 ;;
cannam@85 3732 ppc64-*linux*|powerpc64-*linux*)
cannam@85 3733 LD="${LD-ld} -m elf32ppclinux"
cannam@85 3734 ;;
cannam@85 3735 s390x-*linux*)
cannam@85 3736 LD="${LD-ld} -m elf_s390"
cannam@85 3737 ;;
cannam@85 3738 sparc64-*linux*)
cannam@85 3739 LD="${LD-ld} -m elf32_sparc"
cannam@85 3740 ;;
cannam@85 3741 esac
cannam@85 3742 ;;
cannam@85 3743 *64-bit*)
cannam@85 3744 case $host in
cannam@85 3745 x86_64-*linux*)
cannam@85 3746 LD="${LD-ld} -m elf_x86_64"
cannam@85 3747 ;;
cannam@85 3748 ppc*-*linux*|powerpc*-*linux*)
cannam@85 3749 LD="${LD-ld} -m elf64ppc"
cannam@85 3750 ;;
cannam@85 3751 s390*-*linux*)
cannam@85 3752 LD="${LD-ld} -m elf64_s390"
cannam@85 3753 ;;
cannam@85 3754 sparc*-*linux*)
cannam@85 3755 LD="${LD-ld} -m elf64_sparc"
cannam@85 3756 ;;
cannam@85 3757 esac
cannam@85 3758 ;;
cannam@85 3759 esac
cannam@85 3760 fi
cannam@85 3761 rm -rf conftest*
cannam@85 3762 ;;
cannam@85 3763
cannam@85 3764 *-*-sco3.2v5*)
cannam@85 3765 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
cannam@85 3766 SAVE_CFLAGS="$CFLAGS"
cannam@85 3767 CFLAGS="$CFLAGS -belf"
cannam@85 3768 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
cannam@85 3769 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
cannam@85 3770 if test "${lt_cv_cc_needs_belf+set}" = set; then
cannam@85 3771 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 3772 else
cannam@85 3773 ac_ext=c
cannam@85 3774 ac_cpp='$CPP $CPPFLAGS'
cannam@85 3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 3778
cannam@85 3779 cat >conftest.$ac_ext <<_ACEOF
cannam@85 3780 /* confdefs.h. */
cannam@85 3781 _ACEOF
cannam@85 3782 cat confdefs.h >>conftest.$ac_ext
cannam@85 3783 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 3784 /* end confdefs.h. */
cannam@85 3785
cannam@85 3786 int
cannam@85 3787 main ()
cannam@85 3788 {
cannam@85 3789
cannam@85 3790 ;
cannam@85 3791 return 0;
cannam@85 3792 }
cannam@85 3793 _ACEOF
cannam@85 3794 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 3795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 3796 (eval $ac_link) 2>conftest.er1
cannam@85 3797 ac_status=$?
cannam@85 3798 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 3799 rm -f conftest.er1
cannam@85 3800 cat conftest.err >&5
cannam@85 3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 3802 (exit $ac_status); } &&
cannam@85 3803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 3804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 3805 (eval $ac_try) 2>&5
cannam@85 3806 ac_status=$?
cannam@85 3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 3808 (exit $ac_status); }; } &&
cannam@85 3809 { ac_try='test -s conftest$ac_exeext'
cannam@85 3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 3811 (eval $ac_try) 2>&5
cannam@85 3812 ac_status=$?
cannam@85 3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 3814 (exit $ac_status); }; }; then
cannam@85 3815 lt_cv_cc_needs_belf=yes
cannam@85 3816 else
cannam@85 3817 echo "$as_me: failed program was:" >&5
cannam@85 3818 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 3819
cannam@85 3820 lt_cv_cc_needs_belf=no
cannam@85 3821 fi
cannam@85 3822 rm -f conftest.err conftest.$ac_objext \
cannam@85 3823 conftest$ac_exeext conftest.$ac_ext
cannam@85 3824 ac_ext=c
cannam@85 3825 ac_cpp='$CPP $CPPFLAGS'
cannam@85 3826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 3827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 3828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 3829
cannam@85 3830 fi
cannam@85 3831 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
cannam@85 3832 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
cannam@85 3833 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
cannam@85 3834 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
cannam@85 3835 CFLAGS="$SAVE_CFLAGS"
cannam@85 3836 fi
cannam@85 3837 ;;
cannam@85 3838
cannam@85 3839 esac
cannam@85 3840
cannam@85 3841 need_locks="$enable_libtool_lock"
cannam@85 3842
cannam@85 3843
cannam@85 3844 ac_ext=c
cannam@85 3845 ac_cpp='$CPP $CPPFLAGS'
cannam@85 3846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 3847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 3848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 3849 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
cannam@85 3850 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
cannam@85 3851 # On Suns, sometimes $CPP names a directory.
cannam@85 3852 if test -n "$CPP" && test -d "$CPP"; then
cannam@85 3853 CPP=
cannam@85 3854 fi
cannam@85 3855 if test -z "$CPP"; then
cannam@85 3856 if test "${ac_cv_prog_CPP+set}" = set; then
cannam@85 3857 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 3858 else
cannam@85 3859 # Double quotes because CPP needs to be expanded
cannam@85 3860 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
cannam@85 3861 do
cannam@85 3862 ac_preproc_ok=false
cannam@85 3863 for ac_c_preproc_warn_flag in '' yes
cannam@85 3864 do
cannam@85 3865 # Use a header file that comes with gcc, so configuring glibc
cannam@85 3866 # with a fresh cross-compiler works.
cannam@85 3867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 3868 # <limits.h> exists even on freestanding compilers.
cannam@85 3869 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@85 3870 # not just through cpp. "Syntax error" is here to catch this case.
cannam@85 3871 cat >conftest.$ac_ext <<_ACEOF
cannam@85 3872 /* confdefs.h. */
cannam@85 3873 _ACEOF
cannam@85 3874 cat confdefs.h >>conftest.$ac_ext
cannam@85 3875 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 3876 /* end confdefs.h. */
cannam@85 3877 #ifdef __STDC__
cannam@85 3878 # include <limits.h>
cannam@85 3879 #else
cannam@85 3880 # include <assert.h>
cannam@85 3881 #endif
cannam@85 3882 Syntax error
cannam@85 3883 _ACEOF
cannam@85 3884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
cannam@85 3885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
cannam@85 3886 ac_status=$?
cannam@85 3887 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 3888 rm -f conftest.er1
cannam@85 3889 cat conftest.err >&5
cannam@85 3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 3891 (exit $ac_status); } >/dev/null; then
cannam@85 3892 if test -s conftest.err; then
cannam@85 3893 ac_cpp_err=$ac_c_preproc_warn_flag
cannam@85 3894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
cannam@85 3895 else
cannam@85 3896 ac_cpp_err=
cannam@85 3897 fi
cannam@85 3898 else
cannam@85 3899 ac_cpp_err=yes
cannam@85 3900 fi
cannam@85 3901 if test -z "$ac_cpp_err"; then
cannam@85 3902 :
cannam@85 3903 else
cannam@85 3904 echo "$as_me: failed program was:" >&5
cannam@85 3905 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 3906
cannam@85 3907 # Broken: fails on valid input.
cannam@85 3908 continue
cannam@85 3909 fi
cannam@85 3910 rm -f conftest.err conftest.$ac_ext
cannam@85 3911
cannam@85 3912 # OK, works on sane cases. Now check whether non-existent headers
cannam@85 3913 # can be detected and how.
cannam@85 3914 cat >conftest.$ac_ext <<_ACEOF
cannam@85 3915 /* confdefs.h. */
cannam@85 3916 _ACEOF
cannam@85 3917 cat confdefs.h >>conftest.$ac_ext
cannam@85 3918 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 3919 /* end confdefs.h. */
cannam@85 3920 #include <ac_nonexistent.h>
cannam@85 3921 _ACEOF
cannam@85 3922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
cannam@85 3923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
cannam@85 3924 ac_status=$?
cannam@85 3925 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 3926 rm -f conftest.er1
cannam@85 3927 cat conftest.err >&5
cannam@85 3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 3929 (exit $ac_status); } >/dev/null; then
cannam@85 3930 if test -s conftest.err; then
cannam@85 3931 ac_cpp_err=$ac_c_preproc_warn_flag
cannam@85 3932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
cannam@85 3933 else
cannam@85 3934 ac_cpp_err=
cannam@85 3935 fi
cannam@85 3936 else
cannam@85 3937 ac_cpp_err=yes
cannam@85 3938 fi
cannam@85 3939 if test -z "$ac_cpp_err"; then
cannam@85 3940 # Broken: success on invalid input.
cannam@85 3941 continue
cannam@85 3942 else
cannam@85 3943 echo "$as_me: failed program was:" >&5
cannam@85 3944 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 3945
cannam@85 3946 # Passes both tests.
cannam@85 3947 ac_preproc_ok=:
cannam@85 3948 break
cannam@85 3949 fi
cannam@85 3950 rm -f conftest.err conftest.$ac_ext
cannam@85 3951
cannam@85 3952 done
cannam@85 3953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@85 3954 rm -f conftest.err conftest.$ac_ext
cannam@85 3955 if $ac_preproc_ok; then
cannam@85 3956 break
cannam@85 3957 fi
cannam@85 3958
cannam@85 3959 done
cannam@85 3960 ac_cv_prog_CPP=$CPP
cannam@85 3961
cannam@85 3962 fi
cannam@85 3963 CPP=$ac_cv_prog_CPP
cannam@85 3964 else
cannam@85 3965 ac_cv_prog_CPP=$CPP
cannam@85 3966 fi
cannam@85 3967 echo "$as_me:$LINENO: result: $CPP" >&5
cannam@85 3968 echo "${ECHO_T}$CPP" >&6
cannam@85 3969 ac_preproc_ok=false
cannam@85 3970 for ac_c_preproc_warn_flag in '' yes
cannam@85 3971 do
cannam@85 3972 # Use a header file that comes with gcc, so configuring glibc
cannam@85 3973 # with a fresh cross-compiler works.
cannam@85 3974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 3975 # <limits.h> exists even on freestanding compilers.
cannam@85 3976 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@85 3977 # not just through cpp. "Syntax error" is here to catch this case.
cannam@85 3978 cat >conftest.$ac_ext <<_ACEOF
cannam@85 3979 /* confdefs.h. */
cannam@85 3980 _ACEOF
cannam@85 3981 cat confdefs.h >>conftest.$ac_ext
cannam@85 3982 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 3983 /* end confdefs.h. */
cannam@85 3984 #ifdef __STDC__
cannam@85 3985 # include <limits.h>
cannam@85 3986 #else
cannam@85 3987 # include <assert.h>
cannam@85 3988 #endif
cannam@85 3989 Syntax error
cannam@85 3990 _ACEOF
cannam@85 3991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
cannam@85 3992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
cannam@85 3993 ac_status=$?
cannam@85 3994 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 3995 rm -f conftest.er1
cannam@85 3996 cat conftest.err >&5
cannam@85 3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 3998 (exit $ac_status); } >/dev/null; then
cannam@85 3999 if test -s conftest.err; then
cannam@85 4000 ac_cpp_err=$ac_c_preproc_warn_flag
cannam@85 4001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
cannam@85 4002 else
cannam@85 4003 ac_cpp_err=
cannam@85 4004 fi
cannam@85 4005 else
cannam@85 4006 ac_cpp_err=yes
cannam@85 4007 fi
cannam@85 4008 if test -z "$ac_cpp_err"; then
cannam@85 4009 :
cannam@85 4010 else
cannam@85 4011 echo "$as_me: failed program was:" >&5
cannam@85 4012 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4013
cannam@85 4014 # Broken: fails on valid input.
cannam@85 4015 continue
cannam@85 4016 fi
cannam@85 4017 rm -f conftest.err conftest.$ac_ext
cannam@85 4018
cannam@85 4019 # OK, works on sane cases. Now check whether non-existent headers
cannam@85 4020 # can be detected and how.
cannam@85 4021 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4022 /* confdefs.h. */
cannam@85 4023 _ACEOF
cannam@85 4024 cat confdefs.h >>conftest.$ac_ext
cannam@85 4025 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4026 /* end confdefs.h. */
cannam@85 4027 #include <ac_nonexistent.h>
cannam@85 4028 _ACEOF
cannam@85 4029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
cannam@85 4030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
cannam@85 4031 ac_status=$?
cannam@85 4032 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 4033 rm -f conftest.er1
cannam@85 4034 cat conftest.err >&5
cannam@85 4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4036 (exit $ac_status); } >/dev/null; then
cannam@85 4037 if test -s conftest.err; then
cannam@85 4038 ac_cpp_err=$ac_c_preproc_warn_flag
cannam@85 4039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
cannam@85 4040 else
cannam@85 4041 ac_cpp_err=
cannam@85 4042 fi
cannam@85 4043 else
cannam@85 4044 ac_cpp_err=yes
cannam@85 4045 fi
cannam@85 4046 if test -z "$ac_cpp_err"; then
cannam@85 4047 # Broken: success on invalid input.
cannam@85 4048 continue
cannam@85 4049 else
cannam@85 4050 echo "$as_me: failed program was:" >&5
cannam@85 4051 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4052
cannam@85 4053 # Passes both tests.
cannam@85 4054 ac_preproc_ok=:
cannam@85 4055 break
cannam@85 4056 fi
cannam@85 4057 rm -f conftest.err conftest.$ac_ext
cannam@85 4058
cannam@85 4059 done
cannam@85 4060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@85 4061 rm -f conftest.err conftest.$ac_ext
cannam@85 4062 if $ac_preproc_ok; then
cannam@85 4063 :
cannam@85 4064 else
cannam@85 4065 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
cannam@85 4066 See \`config.log' for more details." >&5
cannam@85 4067 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
cannam@85 4068 See \`config.log' for more details." >&2;}
cannam@85 4069 { (exit 1); exit 1; }; }
cannam@85 4070 fi
cannam@85 4071
cannam@85 4072 ac_ext=c
cannam@85 4073 ac_cpp='$CPP $CPPFLAGS'
cannam@85 4074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 4075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 4076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 4077
cannam@85 4078
cannam@85 4079 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
cannam@85 4080 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
cannam@85 4081 if test "${ac_cv_header_stdc+set}" = set; then
cannam@85 4082 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 4083 else
cannam@85 4084 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4085 /* confdefs.h. */
cannam@85 4086 _ACEOF
cannam@85 4087 cat confdefs.h >>conftest.$ac_ext
cannam@85 4088 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4089 /* end confdefs.h. */
cannam@85 4090 #include <stdlib.h>
cannam@85 4091 #include <stdarg.h>
cannam@85 4092 #include <string.h>
cannam@85 4093 #include <float.h>
cannam@85 4094
cannam@85 4095 int
cannam@85 4096 main ()
cannam@85 4097 {
cannam@85 4098
cannam@85 4099 ;
cannam@85 4100 return 0;
cannam@85 4101 }
cannam@85 4102 _ACEOF
cannam@85 4103 rm -f conftest.$ac_objext
cannam@85 4104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 4105 (eval $ac_compile) 2>conftest.er1
cannam@85 4106 ac_status=$?
cannam@85 4107 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 4108 rm -f conftest.er1
cannam@85 4109 cat conftest.err >&5
cannam@85 4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4111 (exit $ac_status); } &&
cannam@85 4112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4114 (eval $ac_try) 2>&5
cannam@85 4115 ac_status=$?
cannam@85 4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4117 (exit $ac_status); }; } &&
cannam@85 4118 { ac_try='test -s conftest.$ac_objext'
cannam@85 4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4120 (eval $ac_try) 2>&5
cannam@85 4121 ac_status=$?
cannam@85 4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4123 (exit $ac_status); }; }; then
cannam@85 4124 ac_cv_header_stdc=yes
cannam@85 4125 else
cannam@85 4126 echo "$as_me: failed program was:" >&5
cannam@85 4127 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4128
cannam@85 4129 ac_cv_header_stdc=no
cannam@85 4130 fi
cannam@85 4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 4132
cannam@85 4133 if test $ac_cv_header_stdc = yes; then
cannam@85 4134 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cannam@85 4135 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4136 /* confdefs.h. */
cannam@85 4137 _ACEOF
cannam@85 4138 cat confdefs.h >>conftest.$ac_ext
cannam@85 4139 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4140 /* end confdefs.h. */
cannam@85 4141 #include <string.h>
cannam@85 4142
cannam@85 4143 _ACEOF
cannam@85 4144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@85 4145 $EGREP "memchr" >/dev/null 2>&1; then
cannam@85 4146 :
cannam@85 4147 else
cannam@85 4148 ac_cv_header_stdc=no
cannam@85 4149 fi
cannam@85 4150 rm -f conftest*
cannam@85 4151
cannam@85 4152 fi
cannam@85 4153
cannam@85 4154 if test $ac_cv_header_stdc = yes; then
cannam@85 4155 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cannam@85 4156 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4157 /* confdefs.h. */
cannam@85 4158 _ACEOF
cannam@85 4159 cat confdefs.h >>conftest.$ac_ext
cannam@85 4160 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4161 /* end confdefs.h. */
cannam@85 4162 #include <stdlib.h>
cannam@85 4163
cannam@85 4164 _ACEOF
cannam@85 4165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@85 4166 $EGREP "free" >/dev/null 2>&1; then
cannam@85 4167 :
cannam@85 4168 else
cannam@85 4169 ac_cv_header_stdc=no
cannam@85 4170 fi
cannam@85 4171 rm -f conftest*
cannam@85 4172
cannam@85 4173 fi
cannam@85 4174
cannam@85 4175 if test $ac_cv_header_stdc = yes; then
cannam@85 4176 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cannam@85 4177 if test "$cross_compiling" = yes; then
cannam@85 4178 :
cannam@85 4179 else
cannam@85 4180 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4181 /* confdefs.h. */
cannam@85 4182 _ACEOF
cannam@85 4183 cat confdefs.h >>conftest.$ac_ext
cannam@85 4184 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4185 /* end confdefs.h. */
cannam@85 4186 #include <ctype.h>
cannam@85 4187 #if ((' ' & 0x0FF) == 0x020)
cannam@85 4188 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
cannam@85 4189 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
cannam@85 4190 #else
cannam@85 4191 # define ISLOWER(c) \
cannam@85 4192 (('a' <= (c) && (c) <= 'i') \
cannam@85 4193 || ('j' <= (c) && (c) <= 'r') \
cannam@85 4194 || ('s' <= (c) && (c) <= 'z'))
cannam@85 4195 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
cannam@85 4196 #endif
cannam@85 4197
cannam@85 4198 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
cannam@85 4199 int
cannam@85 4200 main ()
cannam@85 4201 {
cannam@85 4202 int i;
cannam@85 4203 for (i = 0; i < 256; i++)
cannam@85 4204 if (XOR (islower (i), ISLOWER (i))
cannam@85 4205 || toupper (i) != TOUPPER (i))
cannam@85 4206 exit(2);
cannam@85 4207 exit (0);
cannam@85 4208 }
cannam@85 4209 _ACEOF
cannam@85 4210 rm -f conftest$ac_exeext
cannam@85 4211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 4212 (eval $ac_link) 2>&5
cannam@85 4213 ac_status=$?
cannam@85 4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
cannam@85 4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4217 (eval $ac_try) 2>&5
cannam@85 4218 ac_status=$?
cannam@85 4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4220 (exit $ac_status); }; }; then
cannam@85 4221 :
cannam@85 4222 else
cannam@85 4223 echo "$as_me: program exited with status $ac_status" >&5
cannam@85 4224 echo "$as_me: failed program was:" >&5
cannam@85 4225 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4226
cannam@85 4227 ( exit $ac_status )
cannam@85 4228 ac_cv_header_stdc=no
cannam@85 4229 fi
cannam@85 4230 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
cannam@85 4231 fi
cannam@85 4232 fi
cannam@85 4233 fi
cannam@85 4234 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
cannam@85 4235 echo "${ECHO_T}$ac_cv_header_stdc" >&6
cannam@85 4236 if test $ac_cv_header_stdc = yes; then
cannam@85 4237
cannam@85 4238 cat >>confdefs.h <<\_ACEOF
cannam@85 4239 #define STDC_HEADERS 1
cannam@85 4240 _ACEOF
cannam@85 4241
cannam@85 4242 fi
cannam@85 4243
cannam@85 4244 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
cannam@85 4245
cannam@85 4246
cannam@85 4247
cannam@85 4248
cannam@85 4249
cannam@85 4250
cannam@85 4251
cannam@85 4252
cannam@85 4253
cannam@85 4254 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
cannam@85 4255 inttypes.h stdint.h unistd.h
cannam@85 4256 do
cannam@85 4257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
cannam@85 4258 echo "$as_me:$LINENO: checking for $ac_header" >&5
cannam@85 4259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
cannam@85 4260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
cannam@85 4261 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 4262 else
cannam@85 4263 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4264 /* confdefs.h. */
cannam@85 4265 _ACEOF
cannam@85 4266 cat confdefs.h >>conftest.$ac_ext
cannam@85 4267 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4268 /* end confdefs.h. */
cannam@85 4269 $ac_includes_default
cannam@85 4270
cannam@85 4271 #include <$ac_header>
cannam@85 4272 _ACEOF
cannam@85 4273 rm -f conftest.$ac_objext
cannam@85 4274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 4275 (eval $ac_compile) 2>conftest.er1
cannam@85 4276 ac_status=$?
cannam@85 4277 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 4278 rm -f conftest.er1
cannam@85 4279 cat conftest.err >&5
cannam@85 4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4281 (exit $ac_status); } &&
cannam@85 4282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 4283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4284 (eval $ac_try) 2>&5
cannam@85 4285 ac_status=$?
cannam@85 4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4287 (exit $ac_status); }; } &&
cannam@85 4288 { ac_try='test -s conftest.$ac_objext'
cannam@85 4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4290 (eval $ac_try) 2>&5
cannam@85 4291 ac_status=$?
cannam@85 4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4293 (exit $ac_status); }; }; then
cannam@85 4294 eval "$as_ac_Header=yes"
cannam@85 4295 else
cannam@85 4296 echo "$as_me: failed program was:" >&5
cannam@85 4297 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4298
cannam@85 4299 eval "$as_ac_Header=no"
cannam@85 4300 fi
cannam@85 4301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 4302 fi
cannam@85 4303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
cannam@85 4304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
cannam@85 4305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
cannam@85 4306 cat >>confdefs.h <<_ACEOF
cannam@85 4307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
cannam@85 4308 _ACEOF
cannam@85 4309
cannam@85 4310 fi
cannam@85 4311
cannam@85 4312 done
cannam@85 4313
cannam@85 4314
cannam@85 4315
cannam@85 4316 for ac_header in dlfcn.h
cannam@85 4317 do
cannam@85 4318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
cannam@85 4319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
cannam@85 4320 echo "$as_me:$LINENO: checking for $ac_header" >&5
cannam@85 4321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
cannam@85 4322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
cannam@85 4323 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 4324 fi
cannam@85 4325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
cannam@85 4326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
cannam@85 4327 else
cannam@85 4328 # Is the header compilable?
cannam@85 4329 echo "$as_me:$LINENO: checking $ac_header usability" >&5
cannam@85 4330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cannam@85 4331 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4332 /* confdefs.h. */
cannam@85 4333 _ACEOF
cannam@85 4334 cat confdefs.h >>conftest.$ac_ext
cannam@85 4335 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4336 /* end confdefs.h. */
cannam@85 4337 $ac_includes_default
cannam@85 4338 #include <$ac_header>
cannam@85 4339 _ACEOF
cannam@85 4340 rm -f conftest.$ac_objext
cannam@85 4341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 4342 (eval $ac_compile) 2>conftest.er1
cannam@85 4343 ac_status=$?
cannam@85 4344 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 4345 rm -f conftest.er1
cannam@85 4346 cat conftest.err >&5
cannam@85 4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4348 (exit $ac_status); } &&
cannam@85 4349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4351 (eval $ac_try) 2>&5
cannam@85 4352 ac_status=$?
cannam@85 4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4354 (exit $ac_status); }; } &&
cannam@85 4355 { ac_try='test -s conftest.$ac_objext'
cannam@85 4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4357 (eval $ac_try) 2>&5
cannam@85 4358 ac_status=$?
cannam@85 4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4360 (exit $ac_status); }; }; then
cannam@85 4361 ac_header_compiler=yes
cannam@85 4362 else
cannam@85 4363 echo "$as_me: failed program was:" >&5
cannam@85 4364 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4365
cannam@85 4366 ac_header_compiler=no
cannam@85 4367 fi
cannam@85 4368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 4369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
cannam@85 4370 echo "${ECHO_T}$ac_header_compiler" >&6
cannam@85 4371
cannam@85 4372 # Is the header present?
cannam@85 4373 echo "$as_me:$LINENO: checking $ac_header presence" >&5
cannam@85 4374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cannam@85 4375 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4376 /* confdefs.h. */
cannam@85 4377 _ACEOF
cannam@85 4378 cat confdefs.h >>conftest.$ac_ext
cannam@85 4379 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4380 /* end confdefs.h. */
cannam@85 4381 #include <$ac_header>
cannam@85 4382 _ACEOF
cannam@85 4383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
cannam@85 4384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
cannam@85 4385 ac_status=$?
cannam@85 4386 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 4387 rm -f conftest.er1
cannam@85 4388 cat conftest.err >&5
cannam@85 4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4390 (exit $ac_status); } >/dev/null; then
cannam@85 4391 if test -s conftest.err; then
cannam@85 4392 ac_cpp_err=$ac_c_preproc_warn_flag
cannam@85 4393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
cannam@85 4394 else
cannam@85 4395 ac_cpp_err=
cannam@85 4396 fi
cannam@85 4397 else
cannam@85 4398 ac_cpp_err=yes
cannam@85 4399 fi
cannam@85 4400 if test -z "$ac_cpp_err"; then
cannam@85 4401 ac_header_preproc=yes
cannam@85 4402 else
cannam@85 4403 echo "$as_me: failed program was:" >&5
cannam@85 4404 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4405
cannam@85 4406 ac_header_preproc=no
cannam@85 4407 fi
cannam@85 4408 rm -f conftest.err conftest.$ac_ext
cannam@85 4409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
cannam@85 4410 echo "${ECHO_T}$ac_header_preproc" >&6
cannam@85 4411
cannam@85 4412 # So? What about this header?
cannam@85 4413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
cannam@85 4414 yes:no: )
cannam@85 4415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
cannam@85 4416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
cannam@85 4417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
cannam@85 4418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
cannam@85 4419 ac_header_preproc=yes
cannam@85 4420 ;;
cannam@85 4421 no:yes:* )
cannam@85 4422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
cannam@85 4423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
cannam@85 4424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
cannam@85 4425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
cannam@85 4426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
cannam@85 4427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
cannam@85 4428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
cannam@85 4429 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
cannam@85 4430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
cannam@85 4431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
cannam@85 4432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
cannam@85 4433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
cannam@85 4434 (
cannam@85 4435 cat <<\_ASBOX
cannam@85 4436 ## ----------------------------------- ##
cannam@85 4437 ## Report this to support@underbit.com ##
cannam@85 4438 ## ----------------------------------- ##
cannam@85 4439 _ASBOX
cannam@85 4440 ) |
cannam@85 4441 sed "s/^/$as_me: WARNING: /" >&2
cannam@85 4442 ;;
cannam@85 4443 esac
cannam@85 4444 echo "$as_me:$LINENO: checking for $ac_header" >&5
cannam@85 4445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
cannam@85 4446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
cannam@85 4447 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 4448 else
cannam@85 4449 eval "$as_ac_Header=\$ac_header_preproc"
cannam@85 4450 fi
cannam@85 4451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
cannam@85 4452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
cannam@85 4453
cannam@85 4454 fi
cannam@85 4455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
cannam@85 4456 cat >>confdefs.h <<_ACEOF
cannam@85 4457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
cannam@85 4458 _ACEOF
cannam@85 4459
cannam@85 4460 fi
cannam@85 4461
cannam@85 4462 done
cannam@85 4463
cannam@85 4464 ac_ext=cc
cannam@85 4465 ac_cpp='$CXXCPP $CPPFLAGS'
cannam@85 4466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 4467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 4468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cannam@85 4469 if test -n "$ac_tool_prefix"; then
cannam@85 4470 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
cannam@85 4471 do
cannam@85 4472 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@85 4473 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@85 4474 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 4476 if test "${ac_cv_prog_CXX+set}" = set; then
cannam@85 4477 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 4478 else
cannam@85 4479 if test -n "$CXX"; then
cannam@85 4480 ac_cv_prog_CXX="$CXX" # Let the user override the test.
cannam@85 4481 else
cannam@85 4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 4483 for as_dir in $PATH
cannam@85 4484 do
cannam@85 4485 IFS=$as_save_IFS
cannam@85 4486 test -z "$as_dir" && as_dir=.
cannam@85 4487 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 4488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 4489 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cannam@85 4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 4491 break 2
cannam@85 4492 fi
cannam@85 4493 done
cannam@85 4494 done
cannam@85 4495
cannam@85 4496 fi
cannam@85 4497 fi
cannam@85 4498 CXX=$ac_cv_prog_CXX
cannam@85 4499 if test -n "$CXX"; then
cannam@85 4500 echo "$as_me:$LINENO: result: $CXX" >&5
cannam@85 4501 echo "${ECHO_T}$CXX" >&6
cannam@85 4502 else
cannam@85 4503 echo "$as_me:$LINENO: result: no" >&5
cannam@85 4504 echo "${ECHO_T}no" >&6
cannam@85 4505 fi
cannam@85 4506
cannam@85 4507 test -n "$CXX" && break
cannam@85 4508 done
cannam@85 4509 fi
cannam@85 4510 if test -z "$CXX"; then
cannam@85 4511 ac_ct_CXX=$CXX
cannam@85 4512 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
cannam@85 4513 do
cannam@85 4514 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@85 4515 set dummy $ac_prog; ac_word=$2
cannam@85 4516 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 4517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 4518 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
cannam@85 4519 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 4520 else
cannam@85 4521 if test -n "$ac_ct_CXX"; then
cannam@85 4522 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
cannam@85 4523 else
cannam@85 4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 4525 for as_dir in $PATH
cannam@85 4526 do
cannam@85 4527 IFS=$as_save_IFS
cannam@85 4528 test -z "$as_dir" && as_dir=.
cannam@85 4529 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 4530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 4531 ac_cv_prog_ac_ct_CXX="$ac_prog"
cannam@85 4532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 4533 break 2
cannam@85 4534 fi
cannam@85 4535 done
cannam@85 4536 done
cannam@85 4537
cannam@85 4538 fi
cannam@85 4539 fi
cannam@85 4540 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
cannam@85 4541 if test -n "$ac_ct_CXX"; then
cannam@85 4542 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
cannam@85 4543 echo "${ECHO_T}$ac_ct_CXX" >&6
cannam@85 4544 else
cannam@85 4545 echo "$as_me:$LINENO: result: no" >&5
cannam@85 4546 echo "${ECHO_T}no" >&6
cannam@85 4547 fi
cannam@85 4548
cannam@85 4549 test -n "$ac_ct_CXX" && break
cannam@85 4550 done
cannam@85 4551 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
cannam@85 4552
cannam@85 4553 CXX=$ac_ct_CXX
cannam@85 4554 fi
cannam@85 4555
cannam@85 4556
cannam@85 4557 # Provide some information about the compiler.
cannam@85 4558 echo "$as_me:$LINENO:" \
cannam@85 4559 "checking for C++ compiler version" >&5
cannam@85 4560 ac_compiler=`set X $ac_compile; echo $2`
cannam@85 4561 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
cannam@85 4562 (eval $ac_compiler --version </dev/null >&5) 2>&5
cannam@85 4563 ac_status=$?
cannam@85 4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4565 (exit $ac_status); }
cannam@85 4566 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
cannam@85 4567 (eval $ac_compiler -v </dev/null >&5) 2>&5
cannam@85 4568 ac_status=$?
cannam@85 4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4570 (exit $ac_status); }
cannam@85 4571 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
cannam@85 4572 (eval $ac_compiler -V </dev/null >&5) 2>&5
cannam@85 4573 ac_status=$?
cannam@85 4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4575 (exit $ac_status); }
cannam@85 4576
cannam@85 4577 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
cannam@85 4578 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
cannam@85 4579 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
cannam@85 4580 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 4581 else
cannam@85 4582 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4583 /* confdefs.h. */
cannam@85 4584 _ACEOF
cannam@85 4585 cat confdefs.h >>conftest.$ac_ext
cannam@85 4586 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4587 /* end confdefs.h. */
cannam@85 4588
cannam@85 4589 int
cannam@85 4590 main ()
cannam@85 4591 {
cannam@85 4592 #ifndef __GNUC__
cannam@85 4593 choke me
cannam@85 4594 #endif
cannam@85 4595
cannam@85 4596 ;
cannam@85 4597 return 0;
cannam@85 4598 }
cannam@85 4599 _ACEOF
cannam@85 4600 rm -f conftest.$ac_objext
cannam@85 4601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 4602 (eval $ac_compile) 2>conftest.er1
cannam@85 4603 ac_status=$?
cannam@85 4604 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 4605 rm -f conftest.er1
cannam@85 4606 cat conftest.err >&5
cannam@85 4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4608 (exit $ac_status); } &&
cannam@85 4609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4611 (eval $ac_try) 2>&5
cannam@85 4612 ac_status=$?
cannam@85 4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4614 (exit $ac_status); }; } &&
cannam@85 4615 { ac_try='test -s conftest.$ac_objext'
cannam@85 4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4617 (eval $ac_try) 2>&5
cannam@85 4618 ac_status=$?
cannam@85 4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4620 (exit $ac_status); }; }; then
cannam@85 4621 ac_compiler_gnu=yes
cannam@85 4622 else
cannam@85 4623 echo "$as_me: failed program was:" >&5
cannam@85 4624 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4625
cannam@85 4626 ac_compiler_gnu=no
cannam@85 4627 fi
cannam@85 4628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 4629 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
cannam@85 4630
cannam@85 4631 fi
cannam@85 4632 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
cannam@85 4633 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
cannam@85 4634 GXX=`test $ac_compiler_gnu = yes && echo yes`
cannam@85 4635 ac_test_CXXFLAGS=${CXXFLAGS+set}
cannam@85 4636 ac_save_CXXFLAGS=$CXXFLAGS
cannam@85 4637 CXXFLAGS="-g"
cannam@85 4638 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
cannam@85 4639 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
cannam@85 4640 if test "${ac_cv_prog_cxx_g+set}" = set; then
cannam@85 4641 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 4642 else
cannam@85 4643 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4644 /* confdefs.h. */
cannam@85 4645 _ACEOF
cannam@85 4646 cat confdefs.h >>conftest.$ac_ext
cannam@85 4647 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4648 /* end confdefs.h. */
cannam@85 4649
cannam@85 4650 int
cannam@85 4651 main ()
cannam@85 4652 {
cannam@85 4653
cannam@85 4654 ;
cannam@85 4655 return 0;
cannam@85 4656 }
cannam@85 4657 _ACEOF
cannam@85 4658 rm -f conftest.$ac_objext
cannam@85 4659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 4660 (eval $ac_compile) 2>conftest.er1
cannam@85 4661 ac_status=$?
cannam@85 4662 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 4663 rm -f conftest.er1
cannam@85 4664 cat conftest.err >&5
cannam@85 4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4666 (exit $ac_status); } &&
cannam@85 4667 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4669 (eval $ac_try) 2>&5
cannam@85 4670 ac_status=$?
cannam@85 4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4672 (exit $ac_status); }; } &&
cannam@85 4673 { ac_try='test -s conftest.$ac_objext'
cannam@85 4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4675 (eval $ac_try) 2>&5
cannam@85 4676 ac_status=$?
cannam@85 4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4678 (exit $ac_status); }; }; then
cannam@85 4679 ac_cv_prog_cxx_g=yes
cannam@85 4680 else
cannam@85 4681 echo "$as_me: failed program was:" >&5
cannam@85 4682 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4683
cannam@85 4684 ac_cv_prog_cxx_g=no
cannam@85 4685 fi
cannam@85 4686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 4687 fi
cannam@85 4688 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
cannam@85 4689 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
cannam@85 4690 if test "$ac_test_CXXFLAGS" = set; then
cannam@85 4691 CXXFLAGS=$ac_save_CXXFLAGS
cannam@85 4692 elif test $ac_cv_prog_cxx_g = yes; then
cannam@85 4693 if test "$GXX" = yes; then
cannam@85 4694 CXXFLAGS="-g -O2"
cannam@85 4695 else
cannam@85 4696 CXXFLAGS="-g"
cannam@85 4697 fi
cannam@85 4698 else
cannam@85 4699 if test "$GXX" = yes; then
cannam@85 4700 CXXFLAGS="-O2"
cannam@85 4701 else
cannam@85 4702 CXXFLAGS=
cannam@85 4703 fi
cannam@85 4704 fi
cannam@85 4705 for ac_declaration in \
cannam@85 4706 '' \
cannam@85 4707 'extern "C" void std::exit (int) throw (); using std::exit;' \
cannam@85 4708 'extern "C" void std::exit (int); using std::exit;' \
cannam@85 4709 'extern "C" void exit (int) throw ();' \
cannam@85 4710 'extern "C" void exit (int);' \
cannam@85 4711 'void exit (int);'
cannam@85 4712 do
cannam@85 4713 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4714 /* confdefs.h. */
cannam@85 4715 _ACEOF
cannam@85 4716 cat confdefs.h >>conftest.$ac_ext
cannam@85 4717 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4718 /* end confdefs.h. */
cannam@85 4719 $ac_declaration
cannam@85 4720 #include <stdlib.h>
cannam@85 4721 int
cannam@85 4722 main ()
cannam@85 4723 {
cannam@85 4724 exit (42);
cannam@85 4725 ;
cannam@85 4726 return 0;
cannam@85 4727 }
cannam@85 4728 _ACEOF
cannam@85 4729 rm -f conftest.$ac_objext
cannam@85 4730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 4731 (eval $ac_compile) 2>conftest.er1
cannam@85 4732 ac_status=$?
cannam@85 4733 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 4734 rm -f conftest.er1
cannam@85 4735 cat conftest.err >&5
cannam@85 4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4737 (exit $ac_status); } &&
cannam@85 4738 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4740 (eval $ac_try) 2>&5
cannam@85 4741 ac_status=$?
cannam@85 4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4743 (exit $ac_status); }; } &&
cannam@85 4744 { ac_try='test -s conftest.$ac_objext'
cannam@85 4745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4746 (eval $ac_try) 2>&5
cannam@85 4747 ac_status=$?
cannam@85 4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4749 (exit $ac_status); }; }; then
cannam@85 4750 :
cannam@85 4751 else
cannam@85 4752 echo "$as_me: failed program was:" >&5
cannam@85 4753 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4754
cannam@85 4755 continue
cannam@85 4756 fi
cannam@85 4757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 4758 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4759 /* confdefs.h. */
cannam@85 4760 _ACEOF
cannam@85 4761 cat confdefs.h >>conftest.$ac_ext
cannam@85 4762 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4763 /* end confdefs.h. */
cannam@85 4764 $ac_declaration
cannam@85 4765 int
cannam@85 4766 main ()
cannam@85 4767 {
cannam@85 4768 exit (42);
cannam@85 4769 ;
cannam@85 4770 return 0;
cannam@85 4771 }
cannam@85 4772 _ACEOF
cannam@85 4773 rm -f conftest.$ac_objext
cannam@85 4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 4775 (eval $ac_compile) 2>conftest.er1
cannam@85 4776 ac_status=$?
cannam@85 4777 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 4778 rm -f conftest.er1
cannam@85 4779 cat conftest.err >&5
cannam@85 4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4781 (exit $ac_status); } &&
cannam@85 4782 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4784 (eval $ac_try) 2>&5
cannam@85 4785 ac_status=$?
cannam@85 4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4787 (exit $ac_status); }; } &&
cannam@85 4788 { ac_try='test -s conftest.$ac_objext'
cannam@85 4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4790 (eval $ac_try) 2>&5
cannam@85 4791 ac_status=$?
cannam@85 4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4793 (exit $ac_status); }; }; then
cannam@85 4794 break
cannam@85 4795 else
cannam@85 4796 echo "$as_me: failed program was:" >&5
cannam@85 4797 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4798
cannam@85 4799 fi
cannam@85 4800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 4801 done
cannam@85 4802 rm -f conftest*
cannam@85 4803 if test -n "$ac_declaration"; then
cannam@85 4804 echo '#ifdef __cplusplus' >>confdefs.h
cannam@85 4805 echo $ac_declaration >>confdefs.h
cannam@85 4806 echo '#endif' >>confdefs.h
cannam@85 4807 fi
cannam@85 4808
cannam@85 4809 ac_ext=cc
cannam@85 4810 ac_cpp='$CXXCPP $CPPFLAGS'
cannam@85 4811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 4812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 4813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cannam@85 4814
cannam@85 4815 depcc="$CXX" am_compiler_list=
cannam@85 4816
cannam@85 4817 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
cannam@85 4818 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
cannam@85 4819 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
cannam@85 4820 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 4821 else
cannam@85 4822 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
cannam@85 4823 # We make a subdir and do the tests there. Otherwise we can end up
cannam@85 4824 # making bogus files that we don't know about and never remove. For
cannam@85 4825 # instance it was reported that on HP-UX the gcc test will end up
cannam@85 4826 # making a dummy file named `D' -- because `-MD' means `put the output
cannam@85 4827 # in D'.
cannam@85 4828 mkdir conftest.dir
cannam@85 4829 # Copy depcomp to subdir because otherwise we won't find it if we're
cannam@85 4830 # using a relative directory.
cannam@85 4831 cp "$am_depcomp" conftest.dir
cannam@85 4832 cd conftest.dir
cannam@85 4833 # We will build objects and dependencies in a subdirectory because
cannam@85 4834 # it helps to detect inapplicable dependency modes. For instance
cannam@85 4835 # both Tru64's cc and ICC support -MD to output dependencies as a
cannam@85 4836 # side effect of compilation, but ICC will put the dependencies in
cannam@85 4837 # the current directory while Tru64 will put them in the object
cannam@85 4838 # directory.
cannam@85 4839 mkdir sub
cannam@85 4840
cannam@85 4841 am_cv_CXX_dependencies_compiler_type=none
cannam@85 4842 if test "$am_compiler_list" = ""; then
cannam@85 4843 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
cannam@85 4844 fi
cannam@85 4845 for depmode in $am_compiler_list; do
cannam@85 4846 # Setup a source with many dependencies, because some compilers
cannam@85 4847 # like to wrap large dependency lists on column 80 (with \), and
cannam@85 4848 # we should not choose a depcomp mode which is confused by this.
cannam@85 4849 #
cannam@85 4850 # We need to recreate these files for each test, as the compiler may
cannam@85 4851 # overwrite some of them when testing with obscure command lines.
cannam@85 4852 # This happens at least with the AIX C compiler.
cannam@85 4853 : > sub/conftest.c
cannam@85 4854 for i in 1 2 3 4 5 6; do
cannam@85 4855 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cannam@85 4856 : > sub/conftst$i.h
cannam@85 4857 done
cannam@85 4858 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
cannam@85 4859
cannam@85 4860 case $depmode in
cannam@85 4861 nosideeffect)
cannam@85 4862 # after this tag, mechanisms are not by side-effect, so they'll
cannam@85 4863 # only be used when explicitly requested
cannam@85 4864 if test "x$enable_dependency_tracking" = xyes; then
cannam@85 4865 continue
cannam@85 4866 else
cannam@85 4867 break
cannam@85 4868 fi
cannam@85 4869 ;;
cannam@85 4870 none) break ;;
cannam@85 4871 esac
cannam@85 4872 # We check with `-c' and `-o' for the sake of the "dashmstdout"
cannam@85 4873 # mode. It turns out that the SunPro C++ compiler does not properly
cannam@85 4874 # handle `-M -o', and we need to detect this.
cannam@85 4875 if depmode=$depmode \
cannam@85 4876 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
cannam@85 4877 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cannam@85 4878 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
cannam@85 4879 >/dev/null 2>conftest.err &&
cannam@85 4880 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@85 4881 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
cannam@85 4882 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
cannam@85 4883 # icc doesn't choke on unknown options, it will just issue warnings
cannam@85 4884 # (even with -Werror). So we grep stderr for any message
cannam@85 4885 # that says an option was ignored.
cannam@85 4886 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
cannam@85 4887 am_cv_CXX_dependencies_compiler_type=$depmode
cannam@85 4888 break
cannam@85 4889 fi
cannam@85 4890 fi
cannam@85 4891 done
cannam@85 4892
cannam@85 4893 cd ..
cannam@85 4894 rm -rf conftest.dir
cannam@85 4895 else
cannam@85 4896 am_cv_CXX_dependencies_compiler_type=none
cannam@85 4897 fi
cannam@85 4898
cannam@85 4899 fi
cannam@85 4900 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
cannam@85 4901 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
cannam@85 4902 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
cannam@85 4903
cannam@85 4904
cannam@85 4905
cannam@85 4906 if
cannam@85 4907 test "x$enable_dependency_tracking" != xno \
cannam@85 4908 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
cannam@85 4909 am__fastdepCXX_TRUE=
cannam@85 4910 am__fastdepCXX_FALSE='#'
cannam@85 4911 else
cannam@85 4912 am__fastdepCXX_TRUE='#'
cannam@85 4913 am__fastdepCXX_FALSE=
cannam@85 4914 fi
cannam@85 4915
cannam@85 4916
cannam@85 4917 ac_ext=cc
cannam@85 4918 ac_cpp='$CXXCPP $CPPFLAGS'
cannam@85 4919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 4920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 4921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cannam@85 4922 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
cannam@85 4923 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
cannam@85 4924 if test -z "$CXXCPP"; then
cannam@85 4925 if test "${ac_cv_prog_CXXCPP+set}" = set; then
cannam@85 4926 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 4927 else
cannam@85 4928 # Double quotes because CXXCPP needs to be expanded
cannam@85 4929 for CXXCPP in "$CXX -E" "/lib/cpp"
cannam@85 4930 do
cannam@85 4931 ac_preproc_ok=false
cannam@85 4932 for ac_cxx_preproc_warn_flag in '' yes
cannam@85 4933 do
cannam@85 4934 # Use a header file that comes with gcc, so configuring glibc
cannam@85 4935 # with a fresh cross-compiler works.
cannam@85 4936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 4937 # <limits.h> exists even on freestanding compilers.
cannam@85 4938 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@85 4939 # not just through cpp. "Syntax error" is here to catch this case.
cannam@85 4940 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4941 /* confdefs.h. */
cannam@85 4942 _ACEOF
cannam@85 4943 cat confdefs.h >>conftest.$ac_ext
cannam@85 4944 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4945 /* end confdefs.h. */
cannam@85 4946 #ifdef __STDC__
cannam@85 4947 # include <limits.h>
cannam@85 4948 #else
cannam@85 4949 # include <assert.h>
cannam@85 4950 #endif
cannam@85 4951 Syntax error
cannam@85 4952 _ACEOF
cannam@85 4953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
cannam@85 4954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
cannam@85 4955 ac_status=$?
cannam@85 4956 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 4957 rm -f conftest.er1
cannam@85 4958 cat conftest.err >&5
cannam@85 4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4960 (exit $ac_status); } >/dev/null; then
cannam@85 4961 if test -s conftest.err; then
cannam@85 4962 ac_cpp_err=$ac_cxx_preproc_warn_flag
cannam@85 4963 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
cannam@85 4964 else
cannam@85 4965 ac_cpp_err=
cannam@85 4966 fi
cannam@85 4967 else
cannam@85 4968 ac_cpp_err=yes
cannam@85 4969 fi
cannam@85 4970 if test -z "$ac_cpp_err"; then
cannam@85 4971 :
cannam@85 4972 else
cannam@85 4973 echo "$as_me: failed program was:" >&5
cannam@85 4974 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4975
cannam@85 4976 # Broken: fails on valid input.
cannam@85 4977 continue
cannam@85 4978 fi
cannam@85 4979 rm -f conftest.err conftest.$ac_ext
cannam@85 4980
cannam@85 4981 # OK, works on sane cases. Now check whether non-existent headers
cannam@85 4982 # can be detected and how.
cannam@85 4983 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4984 /* confdefs.h. */
cannam@85 4985 _ACEOF
cannam@85 4986 cat confdefs.h >>conftest.$ac_ext
cannam@85 4987 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4988 /* end confdefs.h. */
cannam@85 4989 #include <ac_nonexistent.h>
cannam@85 4990 _ACEOF
cannam@85 4991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
cannam@85 4992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
cannam@85 4993 ac_status=$?
cannam@85 4994 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 4995 rm -f conftest.er1
cannam@85 4996 cat conftest.err >&5
cannam@85 4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4998 (exit $ac_status); } >/dev/null; then
cannam@85 4999 if test -s conftest.err; then
cannam@85 5000 ac_cpp_err=$ac_cxx_preproc_warn_flag
cannam@85 5001 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
cannam@85 5002 else
cannam@85 5003 ac_cpp_err=
cannam@85 5004 fi
cannam@85 5005 else
cannam@85 5006 ac_cpp_err=yes
cannam@85 5007 fi
cannam@85 5008 if test -z "$ac_cpp_err"; then
cannam@85 5009 # Broken: success on invalid input.
cannam@85 5010 continue
cannam@85 5011 else
cannam@85 5012 echo "$as_me: failed program was:" >&5
cannam@85 5013 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 5014
cannam@85 5015 # Passes both tests.
cannam@85 5016 ac_preproc_ok=:
cannam@85 5017 break
cannam@85 5018 fi
cannam@85 5019 rm -f conftest.err conftest.$ac_ext
cannam@85 5020
cannam@85 5021 done
cannam@85 5022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@85 5023 rm -f conftest.err conftest.$ac_ext
cannam@85 5024 if $ac_preproc_ok; then
cannam@85 5025 break
cannam@85 5026 fi
cannam@85 5027
cannam@85 5028 done
cannam@85 5029 ac_cv_prog_CXXCPP=$CXXCPP
cannam@85 5030
cannam@85 5031 fi
cannam@85 5032 CXXCPP=$ac_cv_prog_CXXCPP
cannam@85 5033 else
cannam@85 5034 ac_cv_prog_CXXCPP=$CXXCPP
cannam@85 5035 fi
cannam@85 5036 echo "$as_me:$LINENO: result: $CXXCPP" >&5
cannam@85 5037 echo "${ECHO_T}$CXXCPP" >&6
cannam@85 5038 ac_preproc_ok=false
cannam@85 5039 for ac_cxx_preproc_warn_flag in '' yes
cannam@85 5040 do
cannam@85 5041 # Use a header file that comes with gcc, so configuring glibc
cannam@85 5042 # with a fresh cross-compiler works.
cannam@85 5043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 5044 # <limits.h> exists even on freestanding compilers.
cannam@85 5045 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@85 5046 # not just through cpp. "Syntax error" is here to catch this case.
cannam@85 5047 cat >conftest.$ac_ext <<_ACEOF
cannam@85 5048 /* confdefs.h. */
cannam@85 5049 _ACEOF
cannam@85 5050 cat confdefs.h >>conftest.$ac_ext
cannam@85 5051 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 5052 /* end confdefs.h. */
cannam@85 5053 #ifdef __STDC__
cannam@85 5054 # include <limits.h>
cannam@85 5055 #else
cannam@85 5056 # include <assert.h>
cannam@85 5057 #endif
cannam@85 5058 Syntax error
cannam@85 5059 _ACEOF
cannam@85 5060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
cannam@85 5061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
cannam@85 5062 ac_status=$?
cannam@85 5063 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 5064 rm -f conftest.er1
cannam@85 5065 cat conftest.err >&5
cannam@85 5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5067 (exit $ac_status); } >/dev/null; then
cannam@85 5068 if test -s conftest.err; then
cannam@85 5069 ac_cpp_err=$ac_cxx_preproc_warn_flag
cannam@85 5070 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
cannam@85 5071 else
cannam@85 5072 ac_cpp_err=
cannam@85 5073 fi
cannam@85 5074 else
cannam@85 5075 ac_cpp_err=yes
cannam@85 5076 fi
cannam@85 5077 if test -z "$ac_cpp_err"; then
cannam@85 5078 :
cannam@85 5079 else
cannam@85 5080 echo "$as_me: failed program was:" >&5
cannam@85 5081 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 5082
cannam@85 5083 # Broken: fails on valid input.
cannam@85 5084 continue
cannam@85 5085 fi
cannam@85 5086 rm -f conftest.err conftest.$ac_ext
cannam@85 5087
cannam@85 5088 # OK, works on sane cases. Now check whether non-existent headers
cannam@85 5089 # can be detected and how.
cannam@85 5090 cat >conftest.$ac_ext <<_ACEOF
cannam@85 5091 /* confdefs.h. */
cannam@85 5092 _ACEOF
cannam@85 5093 cat confdefs.h >>conftest.$ac_ext
cannam@85 5094 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 5095 /* end confdefs.h. */
cannam@85 5096 #include <ac_nonexistent.h>
cannam@85 5097 _ACEOF
cannam@85 5098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
cannam@85 5099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
cannam@85 5100 ac_status=$?
cannam@85 5101 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 5102 rm -f conftest.er1
cannam@85 5103 cat conftest.err >&5
cannam@85 5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5105 (exit $ac_status); } >/dev/null; then
cannam@85 5106 if test -s conftest.err; then
cannam@85 5107 ac_cpp_err=$ac_cxx_preproc_warn_flag
cannam@85 5108 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
cannam@85 5109 else
cannam@85 5110 ac_cpp_err=
cannam@85 5111 fi
cannam@85 5112 else
cannam@85 5113 ac_cpp_err=yes
cannam@85 5114 fi
cannam@85 5115 if test -z "$ac_cpp_err"; then
cannam@85 5116 # Broken: success on invalid input.
cannam@85 5117 continue
cannam@85 5118 else
cannam@85 5119 echo "$as_me: failed program was:" >&5
cannam@85 5120 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 5121
cannam@85 5122 # Passes both tests.
cannam@85 5123 ac_preproc_ok=:
cannam@85 5124 break
cannam@85 5125 fi
cannam@85 5126 rm -f conftest.err conftest.$ac_ext
cannam@85 5127
cannam@85 5128 done
cannam@85 5129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@85 5130 rm -f conftest.err conftest.$ac_ext
cannam@85 5131 if $ac_preproc_ok; then
cannam@85 5132 :
cannam@85 5133 else
cannam@85 5134 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
cannam@85 5135 See \`config.log' for more details." >&5
cannam@85 5136 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
cannam@85 5137 See \`config.log' for more details." >&2;}
cannam@85 5138 { (exit 1); exit 1; }; }
cannam@85 5139 fi
cannam@85 5140
cannam@85 5141 ac_ext=cc
cannam@85 5142 ac_cpp='$CXXCPP $CPPFLAGS'
cannam@85 5143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 5144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 5145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cannam@85 5146
cannam@85 5147
cannam@85 5148 ac_ext=f
cannam@85 5149 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
cannam@85 5150 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 5151 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cannam@85 5152 if test -n "$ac_tool_prefix"; then
cannam@85 5153 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
cannam@85 5154 do
cannam@85 5155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@85 5156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@85 5157 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 5158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 5159 if test "${ac_cv_prog_F77+set}" = set; then
cannam@85 5160 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5161 else
cannam@85 5162 if test -n "$F77"; then
cannam@85 5163 ac_cv_prog_F77="$F77" # Let the user override the test.
cannam@85 5164 else
cannam@85 5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 5166 for as_dir in $PATH
cannam@85 5167 do
cannam@85 5168 IFS=$as_save_IFS
cannam@85 5169 test -z "$as_dir" && as_dir=.
cannam@85 5170 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 5171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 5172 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
cannam@85 5173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 5174 break 2
cannam@85 5175 fi
cannam@85 5176 done
cannam@85 5177 done
cannam@85 5178
cannam@85 5179 fi
cannam@85 5180 fi
cannam@85 5181 F77=$ac_cv_prog_F77
cannam@85 5182 if test -n "$F77"; then
cannam@85 5183 echo "$as_me:$LINENO: result: $F77" >&5
cannam@85 5184 echo "${ECHO_T}$F77" >&6
cannam@85 5185 else
cannam@85 5186 echo "$as_me:$LINENO: result: no" >&5
cannam@85 5187 echo "${ECHO_T}no" >&6
cannam@85 5188 fi
cannam@85 5189
cannam@85 5190 test -n "$F77" && break
cannam@85 5191 done
cannam@85 5192 fi
cannam@85 5193 if test -z "$F77"; then
cannam@85 5194 ac_ct_F77=$F77
cannam@85 5195 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
cannam@85 5196 do
cannam@85 5197 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@85 5198 set dummy $ac_prog; ac_word=$2
cannam@85 5199 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 5200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 5201 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
cannam@85 5202 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5203 else
cannam@85 5204 if test -n "$ac_ct_F77"; then
cannam@85 5205 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
cannam@85 5206 else
cannam@85 5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 5208 for as_dir in $PATH
cannam@85 5209 do
cannam@85 5210 IFS=$as_save_IFS
cannam@85 5211 test -z "$as_dir" && as_dir=.
cannam@85 5212 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 5213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 5214 ac_cv_prog_ac_ct_F77="$ac_prog"
cannam@85 5215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 5216 break 2
cannam@85 5217 fi
cannam@85 5218 done
cannam@85 5219 done
cannam@85 5220
cannam@85 5221 fi
cannam@85 5222 fi
cannam@85 5223 ac_ct_F77=$ac_cv_prog_ac_ct_F77
cannam@85 5224 if test -n "$ac_ct_F77"; then
cannam@85 5225 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
cannam@85 5226 echo "${ECHO_T}$ac_ct_F77" >&6
cannam@85 5227 else
cannam@85 5228 echo "$as_me:$LINENO: result: no" >&5
cannam@85 5229 echo "${ECHO_T}no" >&6
cannam@85 5230 fi
cannam@85 5231
cannam@85 5232 test -n "$ac_ct_F77" && break
cannam@85 5233 done
cannam@85 5234
cannam@85 5235 F77=$ac_ct_F77
cannam@85 5236 fi
cannam@85 5237
cannam@85 5238
cannam@85 5239 # Provide some information about the compiler.
cannam@85 5240 echo "$as_me:5240:" \
cannam@85 5241 "checking for Fortran 77 compiler version" >&5
cannam@85 5242 ac_compiler=`set X $ac_compile; echo $2`
cannam@85 5243 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
cannam@85 5244 (eval $ac_compiler --version </dev/null >&5) 2>&5
cannam@85 5245 ac_status=$?
cannam@85 5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5247 (exit $ac_status); }
cannam@85 5248 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
cannam@85 5249 (eval $ac_compiler -v </dev/null >&5) 2>&5
cannam@85 5250 ac_status=$?
cannam@85 5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5252 (exit $ac_status); }
cannam@85 5253 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
cannam@85 5254 (eval $ac_compiler -V </dev/null >&5) 2>&5
cannam@85 5255 ac_status=$?
cannam@85 5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5257 (exit $ac_status); }
cannam@85 5258 rm -f a.out
cannam@85 5259
cannam@85 5260 # If we don't use `.F' as extension, the preprocessor is not run on the
cannam@85 5261 # input file. (Note that this only needs to work for GNU compilers.)
cannam@85 5262 ac_save_ext=$ac_ext
cannam@85 5263 ac_ext=F
cannam@85 5264 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
cannam@85 5265 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
cannam@85 5266 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
cannam@85 5267 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5268 else
cannam@85 5269 cat >conftest.$ac_ext <<_ACEOF
cannam@85 5270 program main
cannam@85 5271 #ifndef __GNUC__
cannam@85 5272 choke me
cannam@85 5273 #endif
cannam@85 5274
cannam@85 5275 end
cannam@85 5276 _ACEOF
cannam@85 5277 rm -f conftest.$ac_objext
cannam@85 5278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 5279 (eval $ac_compile) 2>conftest.er1
cannam@85 5280 ac_status=$?
cannam@85 5281 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 5282 rm -f conftest.er1
cannam@85 5283 cat conftest.err >&5
cannam@85 5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5285 (exit $ac_status); } &&
cannam@85 5286 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
cannam@85 5287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 5288 (eval $ac_try) 2>&5
cannam@85 5289 ac_status=$?
cannam@85 5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5291 (exit $ac_status); }; } &&
cannam@85 5292 { ac_try='test -s conftest.$ac_objext'
cannam@85 5293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 5294 (eval $ac_try) 2>&5
cannam@85 5295 ac_status=$?
cannam@85 5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5297 (exit $ac_status); }; }; then
cannam@85 5298 ac_compiler_gnu=yes
cannam@85 5299 else
cannam@85 5300 echo "$as_me: failed program was:" >&5
cannam@85 5301 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 5302
cannam@85 5303 ac_compiler_gnu=no
cannam@85 5304 fi
cannam@85 5305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 5306 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
cannam@85 5307
cannam@85 5308 fi
cannam@85 5309 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
cannam@85 5310 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
cannam@85 5311 ac_ext=$ac_save_ext
cannam@85 5312 ac_test_FFLAGS=${FFLAGS+set}
cannam@85 5313 ac_save_FFLAGS=$FFLAGS
cannam@85 5314 FFLAGS=
cannam@85 5315 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
cannam@85 5316 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
cannam@85 5317 if test "${ac_cv_prog_f77_g+set}" = set; then
cannam@85 5318 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5319 else
cannam@85 5320 FFLAGS=-g
cannam@85 5321 cat >conftest.$ac_ext <<_ACEOF
cannam@85 5322 program main
cannam@85 5323
cannam@85 5324 end
cannam@85 5325 _ACEOF
cannam@85 5326 rm -f conftest.$ac_objext
cannam@85 5327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 5328 (eval $ac_compile) 2>conftest.er1
cannam@85 5329 ac_status=$?
cannam@85 5330 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 5331 rm -f conftest.er1
cannam@85 5332 cat conftest.err >&5
cannam@85 5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5334 (exit $ac_status); } &&
cannam@85 5335 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
cannam@85 5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 5337 (eval $ac_try) 2>&5
cannam@85 5338 ac_status=$?
cannam@85 5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5340 (exit $ac_status); }; } &&
cannam@85 5341 { ac_try='test -s conftest.$ac_objext'
cannam@85 5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 5343 (eval $ac_try) 2>&5
cannam@85 5344 ac_status=$?
cannam@85 5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5346 (exit $ac_status); }; }; then
cannam@85 5347 ac_cv_prog_f77_g=yes
cannam@85 5348 else
cannam@85 5349 echo "$as_me: failed program was:" >&5
cannam@85 5350 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 5351
cannam@85 5352 ac_cv_prog_f77_g=no
cannam@85 5353 fi
cannam@85 5354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 5355
cannam@85 5356 fi
cannam@85 5357 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
cannam@85 5358 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
cannam@85 5359 if test "$ac_test_FFLAGS" = set; then
cannam@85 5360 FFLAGS=$ac_save_FFLAGS
cannam@85 5361 elif test $ac_cv_prog_f77_g = yes; then
cannam@85 5362 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
cannam@85 5363 FFLAGS="-g -O2"
cannam@85 5364 else
cannam@85 5365 FFLAGS="-g"
cannam@85 5366 fi
cannam@85 5367 else
cannam@85 5368 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
cannam@85 5369 FFLAGS="-O2"
cannam@85 5370 else
cannam@85 5371 FFLAGS=
cannam@85 5372 fi
cannam@85 5373 fi
cannam@85 5374
cannam@85 5375 G77=`test $ac_compiler_gnu = yes && echo yes`
cannam@85 5376 ac_ext=c
cannam@85 5377 ac_cpp='$CPP $CPPFLAGS'
cannam@85 5378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 5379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 5380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 5381
cannam@85 5382
cannam@85 5383
cannam@85 5384 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
cannam@85 5385
cannam@85 5386 # find the maximum length of command line arguments
cannam@85 5387 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
cannam@85 5388 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
cannam@85 5389 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
cannam@85 5390 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5391 else
cannam@85 5392 i=0
cannam@85 5393 testring="ABCD"
cannam@85 5394
cannam@85 5395 case $build_os in
cannam@85 5396 msdosdjgpp*)
cannam@85 5397 # On DJGPP, this test can blow up pretty badly due to problems in libc
cannam@85 5398 # (any single argument exceeding 2000 bytes causes a buffer overrun
cannam@85 5399 # during glob expansion). Even if it were fixed, the result of this
cannam@85 5400 # check would be larger than it should be.
cannam@85 5401 lt_cv_sys_max_cmd_len=12288; # 12K is about right
cannam@85 5402 ;;
cannam@85 5403
cannam@85 5404 gnu*)
cannam@85 5405 # Under GNU Hurd, this test is not required because there is
cannam@85 5406 # no limit to the length of command line arguments.
cannam@85 5407 # Libtool will interpret -1 as no limit whatsoever
cannam@85 5408 lt_cv_sys_max_cmd_len=-1;
cannam@85 5409 ;;
cannam@85 5410
cannam@85 5411 cygwin* | mingw*)
cannam@85 5412 # On Win9x/ME, this test blows up -- it succeeds, but takes
cannam@85 5413 # about 5 minutes as the teststring grows exponentially.
cannam@85 5414 # Worse, since 9x/ME are not pre-emptively multitasking,
cannam@85 5415 # you end up with a "frozen" computer, even though with patience
cannam@85 5416 # the test eventually succeeds (with a max line length of 256k).
cannam@85 5417 # Instead, let's just punt: use the minimum linelength reported by
cannam@85 5418 # all of the supported platforms: 8192 (on NT/2K/XP).
cannam@85 5419 lt_cv_sys_max_cmd_len=8192;
cannam@85 5420 ;;
cannam@85 5421
cannam@85 5422 amigaos*)
cannam@85 5423 # On AmigaOS with pdksh, this test takes hours, literally.
cannam@85 5424 # So we just punt and use a minimum line length of 8192.
cannam@85 5425 lt_cv_sys_max_cmd_len=8192;
cannam@85 5426 ;;
cannam@85 5427
cannam@85 5428 *)
cannam@85 5429 # If test is not a shell built-in, we'll probably end up computing a
cannam@85 5430 # maximum length that is only half of the actual maximum length, but
cannam@85 5431 # we can't tell.
cannam@85 5432 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
cannam@85 5433 = "XX$testring") >/dev/null 2>&1 &&
cannam@85 5434 new_result=`expr "X$testring" : ".*" 2>&1` &&
cannam@85 5435 lt_cv_sys_max_cmd_len=$new_result &&
cannam@85 5436 test $i != 17 # 1/2 MB should be enough
cannam@85 5437 do
cannam@85 5438 i=`expr $i + 1`
cannam@85 5439 testring=$testring$testring
cannam@85 5440 done
cannam@85 5441 testring=
cannam@85 5442 # Add a significant safety factor because C++ compilers can tack on massive
cannam@85 5443 # amounts of additional arguments before passing them to the linker.
cannam@85 5444 # It appears as though 1/2 is a usable value.
cannam@85 5445 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
cannam@85 5446 ;;
cannam@85 5447 esac
cannam@85 5448
cannam@85 5449 fi
cannam@85 5450
cannam@85 5451 if test -n $lt_cv_sys_max_cmd_len ; then
cannam@85 5452 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
cannam@85 5453 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
cannam@85 5454 else
cannam@85 5455 echo "$as_me:$LINENO: result: none" >&5
cannam@85 5456 echo "${ECHO_T}none" >&6
cannam@85 5457 fi
cannam@85 5458
cannam@85 5459
cannam@85 5460
cannam@85 5461
cannam@85 5462 # Check for command to grab the raw symbol name followed by C symbol from nm.
cannam@85 5463 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
cannam@85 5464 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
cannam@85 5465 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
cannam@85 5466 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5467 else
cannam@85 5468
cannam@85 5469 # These are sane defaults that work on at least a few old systems.
cannam@85 5470 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
cannam@85 5471
cannam@85 5472 # Character class describing NM global symbol codes.
cannam@85 5473 symcode='[BCDEGRST]'
cannam@85 5474
cannam@85 5475 # Regexp to match symbols that can be accessed directly from C.
cannam@85 5476 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
cannam@85 5477
cannam@85 5478 # Transform the above into a raw symbol and a C symbol.
cannam@85 5479 symxfrm='\1 \2\3 \3'
cannam@85 5480
cannam@85 5481 # Transform an extracted symbol line into a proper C declaration
cannam@85 5482 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
cannam@85 5483
cannam@85 5484 # Transform an extracted symbol line into symbol name and symbol address
cannam@85 5485 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
cannam@85 5486
cannam@85 5487 # Define system-specific variables.
cannam@85 5488 case $host_os in
cannam@85 5489 aix*)
cannam@85 5490 symcode='[BCDT]'
cannam@85 5491 ;;
cannam@85 5492 cygwin* | mingw* | pw32*)
cannam@85 5493 symcode='[ABCDGISTW]'
cannam@85 5494 ;;
cannam@85 5495 hpux*) # Its linker distinguishes data from code symbols
cannam@85 5496 if test "$host_cpu" = ia64; then
cannam@85 5497 symcode='[ABCDEGRST]'
cannam@85 5498 fi
cannam@85 5499 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
cannam@85 5500 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
cannam@85 5501 ;;
cannam@85 5502 irix* | nonstopux*)
cannam@85 5503 symcode='[BCDEGRST]'
cannam@85 5504 ;;
cannam@85 5505 osf*)
cannam@85 5506 symcode='[BCDEGQRST]'
cannam@85 5507 ;;
cannam@85 5508 solaris* | sysv5*)
cannam@85 5509 symcode='[BDRT]'
cannam@85 5510 ;;
cannam@85 5511 sysv4)
cannam@85 5512 symcode='[DFNSTU]'
cannam@85 5513 ;;
cannam@85 5514 esac
cannam@85 5515
cannam@85 5516 # Handle CRLF in mingw tool chain
cannam@85 5517 opt_cr=
cannam@85 5518 case $build_os in
cannam@85 5519 mingw*)
cannam@85 5520 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
cannam@85 5521 ;;
cannam@85 5522 esac
cannam@85 5523
cannam@85 5524 # If we're using GNU nm, then use its standard symbol codes.
cannam@85 5525 case `$NM -V 2>&1` in
cannam@85 5526 *GNU* | *'with BFD'*)
cannam@85 5527 symcode='[ABCDGIRSTW]' ;;
cannam@85 5528 esac
cannam@85 5529
cannam@85 5530 # Try without a prefix undercore, then with it.
cannam@85 5531 for ac_symprfx in "" "_"; do
cannam@85 5532
cannam@85 5533 # Write the raw and C identifiers.
cannam@85 5534 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
cannam@85 5535
cannam@85 5536 # Check to see that the pipe works correctly.
cannam@85 5537 pipe_works=no
cannam@85 5538
cannam@85 5539 rm -f conftest*
cannam@85 5540 cat > conftest.$ac_ext <<EOF
cannam@85 5541 #ifdef __cplusplus
cannam@85 5542 extern "C" {
cannam@85 5543 #endif
cannam@85 5544 char nm_test_var;
cannam@85 5545 void nm_test_func(){}
cannam@85 5546 #ifdef __cplusplus
cannam@85 5547 }
cannam@85 5548 #endif
cannam@85 5549 int main(){nm_test_var='a';nm_test_func();return(0);}
cannam@85 5550 EOF
cannam@85 5551
cannam@85 5552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 5553 (eval $ac_compile) 2>&5
cannam@85 5554 ac_status=$?
cannam@85 5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5556 (exit $ac_status); }; then
cannam@85 5557 # Now try to grab the symbols.
cannam@85 5558 nlist=conftest.nm
cannam@85 5559 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
cannam@85 5560 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cannam@85 5561 ac_status=$?
cannam@85 5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5563 (exit $ac_status); } && test -s "$nlist"; then
cannam@85 5564 # Try sorting and uniquifying the output.
cannam@85 5565 if sort "$nlist" | uniq > "$nlist"T; then
cannam@85 5566 mv -f "$nlist"T "$nlist"
cannam@85 5567 else
cannam@85 5568 rm -f "$nlist"T
cannam@85 5569 fi
cannam@85 5570
cannam@85 5571 # Make sure that we snagged all the symbols we need.
cannam@85 5572 if grep ' nm_test_var$' "$nlist" >/dev/null; then
cannam@85 5573 if grep ' nm_test_func$' "$nlist" >/dev/null; then
cannam@85 5574 cat <<EOF > conftest.$ac_ext
cannam@85 5575 #ifdef __cplusplus
cannam@85 5576 extern "C" {
cannam@85 5577 #endif
cannam@85 5578
cannam@85 5579 EOF
cannam@85 5580 # Now generate the symbol file.
cannam@85 5581 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
cannam@85 5582
cannam@85 5583 cat <<EOF >> conftest.$ac_ext
cannam@85 5584 #if defined (__STDC__) && __STDC__
cannam@85 5585 # define lt_ptr_t void *
cannam@85 5586 #else
cannam@85 5587 # define lt_ptr_t char *
cannam@85 5588 # define const
cannam@85 5589 #endif
cannam@85 5590
cannam@85 5591 /* The mapping between symbol names and symbols. */
cannam@85 5592 const struct {
cannam@85 5593 const char *name;
cannam@85 5594 lt_ptr_t address;
cannam@85 5595 }
cannam@85 5596 lt_preloaded_symbols[] =
cannam@85 5597 {
cannam@85 5598 EOF
cannam@85 5599 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
cannam@85 5600 cat <<\EOF >> conftest.$ac_ext
cannam@85 5601 {0, (lt_ptr_t) 0}
cannam@85 5602 };
cannam@85 5603
cannam@85 5604 #ifdef __cplusplus
cannam@85 5605 }
cannam@85 5606 #endif
cannam@85 5607 EOF
cannam@85 5608 # Now try linking the two files.
cannam@85 5609 mv conftest.$ac_objext conftstm.$ac_objext
cannam@85 5610 lt_save_LIBS="$LIBS"
cannam@85 5611 lt_save_CFLAGS="$CFLAGS"
cannam@85 5612 LIBS="conftstm.$ac_objext"
cannam@85 5613 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cannam@85 5614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 5615 (eval $ac_link) 2>&5
cannam@85 5616 ac_status=$?
cannam@85 5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5618 (exit $ac_status); } && test -s conftest${ac_exeext}; then
cannam@85 5619 pipe_works=yes
cannam@85 5620 fi
cannam@85 5621 LIBS="$lt_save_LIBS"
cannam@85 5622 CFLAGS="$lt_save_CFLAGS"
cannam@85 5623 else
cannam@85 5624 echo "cannot find nm_test_func in $nlist" >&5
cannam@85 5625 fi
cannam@85 5626 else
cannam@85 5627 echo "cannot find nm_test_var in $nlist" >&5
cannam@85 5628 fi
cannam@85 5629 else
cannam@85 5630 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
cannam@85 5631 fi
cannam@85 5632 else
cannam@85 5633 echo "$progname: failed program was:" >&5
cannam@85 5634 cat conftest.$ac_ext >&5
cannam@85 5635 fi
cannam@85 5636 rm -f conftest* conftst*
cannam@85 5637
cannam@85 5638 # Do not use the global_symbol_pipe unless it works.
cannam@85 5639 if test "$pipe_works" = yes; then
cannam@85 5640 break
cannam@85 5641 else
cannam@85 5642 lt_cv_sys_global_symbol_pipe=
cannam@85 5643 fi
cannam@85 5644 done
cannam@85 5645
cannam@85 5646 fi
cannam@85 5647
cannam@85 5648 if test -z "$lt_cv_sys_global_symbol_pipe"; then
cannam@85 5649 lt_cv_sys_global_symbol_to_cdecl=
cannam@85 5650 fi
cannam@85 5651 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cannam@85 5652 echo "$as_me:$LINENO: result: failed" >&5
cannam@85 5653 echo "${ECHO_T}failed" >&6
cannam@85 5654 else
cannam@85 5655 echo "$as_me:$LINENO: result: ok" >&5
cannam@85 5656 echo "${ECHO_T}ok" >&6
cannam@85 5657 fi
cannam@85 5658
cannam@85 5659 echo "$as_me:$LINENO: checking for objdir" >&5
cannam@85 5660 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
cannam@85 5661 if test "${lt_cv_objdir+set}" = set; then
cannam@85 5662 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5663 else
cannam@85 5664 rm -f .libs 2>/dev/null
cannam@85 5665 mkdir .libs 2>/dev/null
cannam@85 5666 if test -d .libs; then
cannam@85 5667 lt_cv_objdir=.libs
cannam@85 5668 else
cannam@85 5669 # MS-DOS does not allow filenames that begin with a dot.
cannam@85 5670 lt_cv_objdir=_libs
cannam@85 5671 fi
cannam@85 5672 rmdir .libs 2>/dev/null
cannam@85 5673 fi
cannam@85 5674 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
cannam@85 5675 echo "${ECHO_T}$lt_cv_objdir" >&6
cannam@85 5676 objdir=$lt_cv_objdir
cannam@85 5677
cannam@85 5678
cannam@85 5679
cannam@85 5680
cannam@85 5681
cannam@85 5682 case $host_os in
cannam@85 5683 aix3*)
cannam@85 5684 # AIX sometimes has problems with the GCC collect2 program. For some
cannam@85 5685 # reason, if we set the COLLECT_NAMES environment variable, the problems
cannam@85 5686 # vanish in a puff of smoke.
cannam@85 5687 if test "X${COLLECT_NAMES+set}" != Xset; then
cannam@85 5688 COLLECT_NAMES=
cannam@85 5689 export COLLECT_NAMES
cannam@85 5690 fi
cannam@85 5691 ;;
cannam@85 5692 esac
cannam@85 5693
cannam@85 5694 # Sed substitution that helps us do robust quoting. It backslashifies
cannam@85 5695 # metacharacters that are still active within double-quoted strings.
cannam@85 5696 Xsed='sed -e s/^X//'
cannam@85 5697 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
cannam@85 5698
cannam@85 5699 # Same as above, but do not quote variable references.
cannam@85 5700 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
cannam@85 5701
cannam@85 5702 # Sed substitution to delay expansion of an escaped shell variable in a
cannam@85 5703 # double_quote_subst'ed string.
cannam@85 5704 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
cannam@85 5705
cannam@85 5706 # Sed substitution to avoid accidental globbing in evaled expressions
cannam@85 5707 no_glob_subst='s/\*/\\\*/g'
cannam@85 5708
cannam@85 5709 # Constants:
cannam@85 5710 rm="rm -f"
cannam@85 5711
cannam@85 5712 # Global variables:
cannam@85 5713 default_ofile=libtool
cannam@85 5714 can_build_shared=yes
cannam@85 5715
cannam@85 5716 # All known linkers require a `.a' archive for static linking (except M$VC,
cannam@85 5717 # which needs '.lib').
cannam@85 5718 libext=a
cannam@85 5719 ltmain="$ac_aux_dir/ltmain.sh"
cannam@85 5720 ofile="$default_ofile"
cannam@85 5721 with_gnu_ld="$lt_cv_prog_gnu_ld"
cannam@85 5722
cannam@85 5723 if test -n "$ac_tool_prefix"; then
cannam@85 5724 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
cannam@85 5725 set dummy ${ac_tool_prefix}ar; ac_word=$2
cannam@85 5726 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 5727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 5728 if test "${ac_cv_prog_AR+set}" = set; then
cannam@85 5729 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5730 else
cannam@85 5731 if test -n "$AR"; then
cannam@85 5732 ac_cv_prog_AR="$AR" # Let the user override the test.
cannam@85 5733 else
cannam@85 5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 5735 for as_dir in $PATH
cannam@85 5736 do
cannam@85 5737 IFS=$as_save_IFS
cannam@85 5738 test -z "$as_dir" && as_dir=.
cannam@85 5739 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 5740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 5741 ac_cv_prog_AR="${ac_tool_prefix}ar"
cannam@85 5742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 5743 break 2
cannam@85 5744 fi
cannam@85 5745 done
cannam@85 5746 done
cannam@85 5747
cannam@85 5748 fi
cannam@85 5749 fi
cannam@85 5750 AR=$ac_cv_prog_AR
cannam@85 5751 if test -n "$AR"; then
cannam@85 5752 echo "$as_me:$LINENO: result: $AR" >&5
cannam@85 5753 echo "${ECHO_T}$AR" >&6
cannam@85 5754 else
cannam@85 5755 echo "$as_me:$LINENO: result: no" >&5
cannam@85 5756 echo "${ECHO_T}no" >&6
cannam@85 5757 fi
cannam@85 5758
cannam@85 5759 fi
cannam@85 5760 if test -z "$ac_cv_prog_AR"; then
cannam@85 5761 ac_ct_AR=$AR
cannam@85 5762 # Extract the first word of "ar", so it can be a program name with args.
cannam@85 5763 set dummy ar; ac_word=$2
cannam@85 5764 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 5765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 5766 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
cannam@85 5767 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5768 else
cannam@85 5769 if test -n "$ac_ct_AR"; then
cannam@85 5770 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
cannam@85 5771 else
cannam@85 5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 5773 for as_dir in $PATH
cannam@85 5774 do
cannam@85 5775 IFS=$as_save_IFS
cannam@85 5776 test -z "$as_dir" && as_dir=.
cannam@85 5777 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 5778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 5779 ac_cv_prog_ac_ct_AR="ar"
cannam@85 5780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 5781 break 2
cannam@85 5782 fi
cannam@85 5783 done
cannam@85 5784 done
cannam@85 5785
cannam@85 5786 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
cannam@85 5787 fi
cannam@85 5788 fi
cannam@85 5789 ac_ct_AR=$ac_cv_prog_ac_ct_AR
cannam@85 5790 if test -n "$ac_ct_AR"; then
cannam@85 5791 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
cannam@85 5792 echo "${ECHO_T}$ac_ct_AR" >&6
cannam@85 5793 else
cannam@85 5794 echo "$as_me:$LINENO: result: no" >&5
cannam@85 5795 echo "${ECHO_T}no" >&6
cannam@85 5796 fi
cannam@85 5797
cannam@85 5798 AR=$ac_ct_AR
cannam@85 5799 else
cannam@85 5800 AR="$ac_cv_prog_AR"
cannam@85 5801 fi
cannam@85 5802
cannam@85 5803 if test -n "$ac_tool_prefix"; then
cannam@85 5804 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
cannam@85 5805 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cannam@85 5806 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 5807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 5808 if test "${ac_cv_prog_RANLIB+set}" = set; then
cannam@85 5809 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5810 else
cannam@85 5811 if test -n "$RANLIB"; then
cannam@85 5812 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
cannam@85 5813 else
cannam@85 5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 5815 for as_dir in $PATH
cannam@85 5816 do
cannam@85 5817 IFS=$as_save_IFS
cannam@85 5818 test -z "$as_dir" && as_dir=.
cannam@85 5819 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 5820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 5821 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cannam@85 5822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 5823 break 2
cannam@85 5824 fi
cannam@85 5825 done
cannam@85 5826 done
cannam@85 5827
cannam@85 5828 fi
cannam@85 5829 fi
cannam@85 5830 RANLIB=$ac_cv_prog_RANLIB
cannam@85 5831 if test -n "$RANLIB"; then
cannam@85 5832 echo "$as_me:$LINENO: result: $RANLIB" >&5
cannam@85 5833 echo "${ECHO_T}$RANLIB" >&6
cannam@85 5834 else
cannam@85 5835 echo "$as_me:$LINENO: result: no" >&5
cannam@85 5836 echo "${ECHO_T}no" >&6
cannam@85 5837 fi
cannam@85 5838
cannam@85 5839 fi
cannam@85 5840 if test -z "$ac_cv_prog_RANLIB"; then
cannam@85 5841 ac_ct_RANLIB=$RANLIB
cannam@85 5842 # Extract the first word of "ranlib", so it can be a program name with args.
cannam@85 5843 set dummy ranlib; ac_word=$2
cannam@85 5844 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 5845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 5846 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
cannam@85 5847 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5848 else
cannam@85 5849 if test -n "$ac_ct_RANLIB"; then
cannam@85 5850 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
cannam@85 5851 else
cannam@85 5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 5853 for as_dir in $PATH
cannam@85 5854 do
cannam@85 5855 IFS=$as_save_IFS
cannam@85 5856 test -z "$as_dir" && as_dir=.
cannam@85 5857 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 5858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 5859 ac_cv_prog_ac_ct_RANLIB="ranlib"
cannam@85 5860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 5861 break 2
cannam@85 5862 fi
cannam@85 5863 done
cannam@85 5864 done
cannam@85 5865
cannam@85 5866 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
cannam@85 5867 fi
cannam@85 5868 fi
cannam@85 5869 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
cannam@85 5870 if test -n "$ac_ct_RANLIB"; then
cannam@85 5871 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
cannam@85 5872 echo "${ECHO_T}$ac_ct_RANLIB" >&6
cannam@85 5873 else
cannam@85 5874 echo "$as_me:$LINENO: result: no" >&5
cannam@85 5875 echo "${ECHO_T}no" >&6
cannam@85 5876 fi
cannam@85 5877
cannam@85 5878 RANLIB=$ac_ct_RANLIB
cannam@85 5879 else
cannam@85 5880 RANLIB="$ac_cv_prog_RANLIB"
cannam@85 5881 fi
cannam@85 5882
cannam@85 5883 if test -n "$ac_tool_prefix"; then
cannam@85 5884 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
cannam@85 5885 set dummy ${ac_tool_prefix}strip; ac_word=$2
cannam@85 5886 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 5887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 5888 if test "${ac_cv_prog_STRIP+set}" = set; then
cannam@85 5889 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5890 else
cannam@85 5891 if test -n "$STRIP"; then
cannam@85 5892 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
cannam@85 5893 else
cannam@85 5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 5895 for as_dir in $PATH
cannam@85 5896 do
cannam@85 5897 IFS=$as_save_IFS
cannam@85 5898 test -z "$as_dir" && as_dir=.
cannam@85 5899 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 5900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 5901 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cannam@85 5902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 5903 break 2
cannam@85 5904 fi
cannam@85 5905 done
cannam@85 5906 done
cannam@85 5907
cannam@85 5908 fi
cannam@85 5909 fi
cannam@85 5910 STRIP=$ac_cv_prog_STRIP
cannam@85 5911 if test -n "$STRIP"; then
cannam@85 5912 echo "$as_me:$LINENO: result: $STRIP" >&5
cannam@85 5913 echo "${ECHO_T}$STRIP" >&6
cannam@85 5914 else
cannam@85 5915 echo "$as_me:$LINENO: result: no" >&5
cannam@85 5916 echo "${ECHO_T}no" >&6
cannam@85 5917 fi
cannam@85 5918
cannam@85 5919 fi
cannam@85 5920 if test -z "$ac_cv_prog_STRIP"; then
cannam@85 5921 ac_ct_STRIP=$STRIP
cannam@85 5922 # Extract the first word of "strip", so it can be a program name with args.
cannam@85 5923 set dummy strip; ac_word=$2
cannam@85 5924 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 5926 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
cannam@85 5927 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5928 else
cannam@85 5929 if test -n "$ac_ct_STRIP"; then
cannam@85 5930 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
cannam@85 5931 else
cannam@85 5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 5933 for as_dir in $PATH
cannam@85 5934 do
cannam@85 5935 IFS=$as_save_IFS
cannam@85 5936 test -z "$as_dir" && as_dir=.
cannam@85 5937 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 5938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 5939 ac_cv_prog_ac_ct_STRIP="strip"
cannam@85 5940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 5941 break 2
cannam@85 5942 fi
cannam@85 5943 done
cannam@85 5944 done
cannam@85 5945
cannam@85 5946 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
cannam@85 5947 fi
cannam@85 5948 fi
cannam@85 5949 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
cannam@85 5950 if test -n "$ac_ct_STRIP"; then
cannam@85 5951 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
cannam@85 5952 echo "${ECHO_T}$ac_ct_STRIP" >&6
cannam@85 5953 else
cannam@85 5954 echo "$as_me:$LINENO: result: no" >&5
cannam@85 5955 echo "${ECHO_T}no" >&6
cannam@85 5956 fi
cannam@85 5957
cannam@85 5958 STRIP=$ac_ct_STRIP
cannam@85 5959 else
cannam@85 5960 STRIP="$ac_cv_prog_STRIP"
cannam@85 5961 fi
cannam@85 5962
cannam@85 5963
cannam@85 5964 old_CC="$CC"
cannam@85 5965 old_CFLAGS="$CFLAGS"
cannam@85 5966
cannam@85 5967 # Set sane defaults for various variables
cannam@85 5968 test -z "$AR" && AR=ar
cannam@85 5969 test -z "$AR_FLAGS" && AR_FLAGS=cru
cannam@85 5970 test -z "$AS" && AS=as
cannam@85 5971 test -z "$CC" && CC=cc
cannam@85 5972 test -z "$LTCC" && LTCC=$CC
cannam@85 5973 test -z "$DLLTOOL" && DLLTOOL=dlltool
cannam@85 5974 test -z "$LD" && LD=ld
cannam@85 5975 test -z "$LN_S" && LN_S="ln -s"
cannam@85 5976 test -z "$MAGIC_CMD" && MAGIC_CMD=file
cannam@85 5977 test -z "$NM" && NM=nm
cannam@85 5978 test -z "$SED" && SED=sed
cannam@85 5979 test -z "$OBJDUMP" && OBJDUMP=objdump
cannam@85 5980 test -z "$RANLIB" && RANLIB=:
cannam@85 5981 test -z "$STRIP" && STRIP=:
cannam@85 5982 test -z "$ac_objext" && ac_objext=o
cannam@85 5983
cannam@85 5984 # Determine commands to create old-style static archives.
cannam@85 5985 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
cannam@85 5986 old_postinstall_cmds='chmod 644 $oldlib'
cannam@85 5987 old_postuninstall_cmds=
cannam@85 5988
cannam@85 5989 if test -n "$RANLIB"; then
cannam@85 5990 case $host_os in
cannam@85 5991 openbsd*)
cannam@85 5992 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
cannam@85 5993 ;;
cannam@85 5994 *)
cannam@85 5995 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
cannam@85 5996 ;;
cannam@85 5997 esac
cannam@85 5998 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cannam@85 5999 fi
cannam@85 6000
cannam@85 6001 # Only perform the check for file, if the check method requires it
cannam@85 6002 case $deplibs_check_method in
cannam@85 6003 file_magic*)
cannam@85 6004 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cannam@85 6005 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
cannam@85 6006 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
cannam@85 6007 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
cannam@85 6008 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 6009 else
cannam@85 6010 case $MAGIC_CMD in
cannam@85 6011 [\\/*] | ?:[\\/]*)
cannam@85 6012 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
cannam@85 6013 ;;
cannam@85 6014 *)
cannam@85 6015 lt_save_MAGIC_CMD="$MAGIC_CMD"
cannam@85 6016 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@85 6017 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
cannam@85 6018 for ac_dir in $ac_dummy; do
cannam@85 6019 IFS="$lt_save_ifs"
cannam@85 6020 test -z "$ac_dir" && ac_dir=.
cannam@85 6021 if test -f $ac_dir/${ac_tool_prefix}file; then
cannam@85 6022 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
cannam@85 6023 if test -n "$file_magic_test_file"; then
cannam@85 6024 case $deplibs_check_method in
cannam@85 6025 "file_magic "*)
cannam@85 6026 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
cannam@85 6027 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@85 6028 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
cannam@85 6029 $EGREP "$file_magic_regex" > /dev/null; then
cannam@85 6030 :
cannam@85 6031 else
cannam@85 6032 cat <<EOF 1>&2
cannam@85 6033
cannam@85 6034 *** Warning: the command libtool uses to detect shared libraries,
cannam@85 6035 *** $file_magic_cmd, produces output that libtool cannot recognize.
cannam@85 6036 *** The result is that libtool may fail to recognize shared libraries
cannam@85 6037 *** as such. This will affect the creation of libtool libraries that
cannam@85 6038 *** depend on shared libraries, but programs linked with such libtool
cannam@85 6039 *** libraries will work regardless of this problem. Nevertheless, you
cannam@85 6040 *** may want to report the problem to your system manager and/or to
cannam@85 6041 *** bug-libtool@gnu.org
cannam@85 6042
cannam@85 6043 EOF
cannam@85 6044 fi ;;
cannam@85 6045 esac
cannam@85 6046 fi
cannam@85 6047 break
cannam@85 6048 fi
cannam@85 6049 done
cannam@85 6050 IFS="$lt_save_ifs"
cannam@85 6051 MAGIC_CMD="$lt_save_MAGIC_CMD"
cannam@85 6052 ;;
cannam@85 6053 esac
cannam@85 6054 fi
cannam@85 6055
cannam@85 6056 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@85 6057 if test -n "$MAGIC_CMD"; then
cannam@85 6058 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
cannam@85 6059 echo "${ECHO_T}$MAGIC_CMD" >&6
cannam@85 6060 else
cannam@85 6061 echo "$as_me:$LINENO: result: no" >&5
cannam@85 6062 echo "${ECHO_T}no" >&6
cannam@85 6063 fi
cannam@85 6064
cannam@85 6065 if test -z "$lt_cv_path_MAGIC_CMD"; then
cannam@85 6066 if test -n "$ac_tool_prefix"; then
cannam@85 6067 echo "$as_me:$LINENO: checking for file" >&5
cannam@85 6068 echo $ECHO_N "checking for file... $ECHO_C" >&6
cannam@85 6069 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
cannam@85 6070 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 6071 else
cannam@85 6072 case $MAGIC_CMD in
cannam@85 6073 [\\/*] | ?:[\\/]*)
cannam@85 6074 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
cannam@85 6075 ;;
cannam@85 6076 *)
cannam@85 6077 lt_save_MAGIC_CMD="$MAGIC_CMD"
cannam@85 6078 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@85 6079 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
cannam@85 6080 for ac_dir in $ac_dummy; do
cannam@85 6081 IFS="$lt_save_ifs"
cannam@85 6082 test -z "$ac_dir" && ac_dir=.
cannam@85 6083 if test -f $ac_dir/file; then
cannam@85 6084 lt_cv_path_MAGIC_CMD="$ac_dir/file"
cannam@85 6085 if test -n "$file_magic_test_file"; then
cannam@85 6086 case $deplibs_check_method in
cannam@85 6087 "file_magic "*)
cannam@85 6088 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
cannam@85 6089 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@85 6090 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
cannam@85 6091 $EGREP "$file_magic_regex" > /dev/null; then
cannam@85 6092 :
cannam@85 6093 else
cannam@85 6094 cat <<EOF 1>&2
cannam@85 6095
cannam@85 6096 *** Warning: the command libtool uses to detect shared libraries,
cannam@85 6097 *** $file_magic_cmd, produces output that libtool cannot recognize.
cannam@85 6098 *** The result is that libtool may fail to recognize shared libraries
cannam@85 6099 *** as such. This will affect the creation of libtool libraries that
cannam@85 6100 *** depend on shared libraries, but programs linked with such libtool
cannam@85 6101 *** libraries will work regardless of this problem. Nevertheless, you
cannam@85 6102 *** may want to report the problem to your system manager and/or to
cannam@85 6103 *** bug-libtool@gnu.org
cannam@85 6104
cannam@85 6105 EOF
cannam@85 6106 fi ;;
cannam@85 6107 esac
cannam@85 6108 fi
cannam@85 6109 break
cannam@85 6110 fi
cannam@85 6111 done
cannam@85 6112 IFS="$lt_save_ifs"
cannam@85 6113 MAGIC_CMD="$lt_save_MAGIC_CMD"
cannam@85 6114 ;;
cannam@85 6115 esac
cannam@85 6116 fi
cannam@85 6117
cannam@85 6118 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@85 6119 if test -n "$MAGIC_CMD"; then
cannam@85 6120 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
cannam@85 6121 echo "${ECHO_T}$MAGIC_CMD" >&6
cannam@85 6122 else
cannam@85 6123 echo "$as_me:$LINENO: result: no" >&5
cannam@85 6124 echo "${ECHO_T}no" >&6
cannam@85 6125 fi
cannam@85 6126
cannam@85 6127 else
cannam@85 6128 MAGIC_CMD=:
cannam@85 6129 fi
cannam@85 6130 fi
cannam@85 6131
cannam@85 6132 fi
cannam@85 6133 ;;
cannam@85 6134 esac
cannam@85 6135
cannam@85 6136 enable_dlopen=no
cannam@85 6137 enable_win32_dll=no
cannam@85 6138
cannam@85 6139 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
cannam@85 6140 if test "${enable_libtool_lock+set}" = set; then
cannam@85 6141 enableval="$enable_libtool_lock"
cannam@85 6142
cannam@85 6143 fi;
cannam@85 6144 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
cannam@85 6145
cannam@85 6146
cannam@85 6147 # Check whether --with-pic or --without-pic was given.
cannam@85 6148 if test "${with_pic+set}" = set; then
cannam@85 6149 withval="$with_pic"
cannam@85 6150 pic_mode="$withval"
cannam@85 6151 else
cannam@85 6152 pic_mode=default
cannam@85 6153 fi;
cannam@85 6154 test -z "$pic_mode" && pic_mode=default
cannam@85 6155
cannam@85 6156 # Use C for the default configuration in the libtool script
cannam@85 6157 tagname=
cannam@85 6158 lt_save_CC="$CC"
cannam@85 6159 ac_ext=c
cannam@85 6160 ac_cpp='$CPP $CPPFLAGS'
cannam@85 6161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 6162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 6163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 6164
cannam@85 6165
cannam@85 6166 # Source file extension for C test sources.
cannam@85 6167 ac_ext=c
cannam@85 6168
cannam@85 6169 # Object file extension for compiled C test sources.
cannam@85 6170 objext=o
cannam@85 6171 objext=$objext
cannam@85 6172
cannam@85 6173 # Code to be used in simple compile tests
cannam@85 6174 lt_simple_compile_test_code="int some_variable = 0;\n"
cannam@85 6175
cannam@85 6176 # Code to be used in simple link tests
cannam@85 6177 lt_simple_link_test_code='int main(){return(0);}\n'
cannam@85 6178
cannam@85 6179
cannam@85 6180 # If no C compiler was specified, use CC.
cannam@85 6181 LTCC=${LTCC-"$CC"}
cannam@85 6182
cannam@85 6183 # Allow CC to be a program name with arguments.
cannam@85 6184 compiler=$CC
cannam@85 6185
cannam@85 6186
cannam@85 6187 #
cannam@85 6188 # Check for any special shared library compilation flags.
cannam@85 6189 #
cannam@85 6190 lt_prog_cc_shlib=
cannam@85 6191 if test "$GCC" = no; then
cannam@85 6192 case $host_os in
cannam@85 6193 sco3.2v5*)
cannam@85 6194 lt_prog_cc_shlib='-belf'
cannam@85 6195 ;;
cannam@85 6196 esac
cannam@85 6197 fi
cannam@85 6198 if test -n "$lt_prog_cc_shlib"; then
cannam@85 6199 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
cannam@85 6200 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
cannam@85 6201 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
cannam@85 6202 else
cannam@85 6203 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
cannam@85 6204 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
cannam@85 6205 lt_cv_prog_cc_can_build_shared=no
cannam@85 6206 fi
cannam@85 6207 fi
cannam@85 6208
cannam@85 6209
cannam@85 6210 #
cannam@85 6211 # Check to make sure the static flag actually works.
cannam@85 6212 #
cannam@85 6213 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
cannam@85 6214 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
cannam@85 6215 if test "${lt_prog_compiler_static_works+set}" = set; then
cannam@85 6216 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 6217 else
cannam@85 6218 lt_prog_compiler_static_works=no
cannam@85 6219 save_LDFLAGS="$LDFLAGS"
cannam@85 6220 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
cannam@85 6221 printf "$lt_simple_link_test_code" > conftest.$ac_ext
cannam@85 6222 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cannam@85 6223 # The compiler can only warn and ignore the option if not recognized
cannam@85 6224 # So say no if there are warnings
cannam@85 6225 if test -s conftest.err; then
cannam@85 6226 # Append any errors to the config.log.
cannam@85 6227 cat conftest.err 1>&5
cannam@85 6228 else
cannam@85 6229 lt_prog_compiler_static_works=yes
cannam@85 6230 fi
cannam@85 6231 fi
cannam@85 6232 $rm conftest*
cannam@85 6233 LDFLAGS="$save_LDFLAGS"
cannam@85 6234
cannam@85 6235 fi
cannam@85 6236 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
cannam@85 6237 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
cannam@85 6238
cannam@85 6239 if test x"$lt_prog_compiler_static_works" = xyes; then
cannam@85 6240 :
cannam@85 6241 else
cannam@85 6242 lt_prog_compiler_static=
cannam@85 6243 fi
cannam@85 6244
cannam@85 6245
cannam@85 6246
cannam@85 6247
cannam@85 6248 lt_prog_compiler_no_builtin_flag=
cannam@85 6249
cannam@85 6250 if test "$GCC" = yes; then
cannam@85 6251 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cannam@85 6252
cannam@85 6253
cannam@85 6254 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cannam@85 6255 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
cannam@85 6256 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
cannam@85 6257 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 6258 else
cannam@85 6259 lt_cv_prog_compiler_rtti_exceptions=no
cannam@85 6260 ac_outfile=conftest.$ac_objext
cannam@85 6261 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 6262 lt_compiler_flag="-fno-rtti -fno-exceptions"
cannam@85 6263 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 6264 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 6265 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 6266 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 6267 # The option is referenced via a variable to avoid confusing sed.
cannam@85 6268 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 6269 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
cannam@85 6270 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 6271 -e 's:$: $lt_compiler_flag:'`
cannam@85 6272 (eval echo "\"\$as_me:6272: $lt_compile\"" >&5)
cannam@85 6273 (eval "$lt_compile" 2>conftest.err)
cannam@85 6274 ac_status=$?
cannam@85 6275 cat conftest.err >&5
cannam@85 6276 echo "$as_me:6276: \$? = $ac_status" >&5
cannam@85 6277 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@85 6278 # The compiler can only warn and ignore the option if not recognized
cannam@85 6279 # So say no if there are warnings
cannam@85 6280 if test ! -s conftest.err; then
cannam@85 6281 lt_cv_prog_compiler_rtti_exceptions=yes
cannam@85 6282 fi
cannam@85 6283 fi
cannam@85 6284 $rm conftest*
cannam@85 6285
cannam@85 6286 fi
cannam@85 6287 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cannam@85 6288 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
cannam@85 6289
cannam@85 6290 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
cannam@85 6291 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
cannam@85 6292 else
cannam@85 6293 :
cannam@85 6294 fi
cannam@85 6295
cannam@85 6296 fi
cannam@85 6297
cannam@85 6298 lt_prog_compiler_wl=
cannam@85 6299 lt_prog_compiler_pic=
cannam@85 6300 lt_prog_compiler_static=
cannam@85 6301
cannam@85 6302 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
cannam@85 6303 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
cannam@85 6304
cannam@85 6305 if test "$GCC" = yes; then
cannam@85 6306 lt_prog_compiler_wl='-Wl,'
cannam@85 6307 lt_prog_compiler_static='-static'
cannam@85 6308
cannam@85 6309 case $host_os in
cannam@85 6310 aix*)
cannam@85 6311 # All AIX code is PIC.
cannam@85 6312 if test "$host_cpu" = ia64; then
cannam@85 6313 # AIX 5 now supports IA64 processor
cannam@85 6314 lt_prog_compiler_static='-Bstatic'
cannam@85 6315 fi
cannam@85 6316 ;;
cannam@85 6317
cannam@85 6318 amigaos*)
cannam@85 6319 # FIXME: we need at least 68020 code to build shared libraries, but
cannam@85 6320 # adding the `-m68020' flag to GCC prevents building anything better,
cannam@85 6321 # like `-m68040'.
cannam@85 6322 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
cannam@85 6323 ;;
cannam@85 6324
cannam@85 6325 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cannam@85 6326 # PIC is the default for these OSes.
cannam@85 6327 ;;
cannam@85 6328
cannam@85 6329 mingw* | pw32* | os2*)
cannam@85 6330 # This hack is so that the source file can tell whether it is being
cannam@85 6331 # built for inclusion in a dll (and should export symbols for example).
cannam@85 6332 lt_prog_compiler_pic='-DDLL_EXPORT'
cannam@85 6333 ;;
cannam@85 6334
cannam@85 6335 darwin* | rhapsody*)
cannam@85 6336 # PIC is the default on this platform
cannam@85 6337 # Common symbols not allowed in MH_DYLIB files
cannam@85 6338 lt_prog_compiler_pic='-fno-common'
cannam@85 6339 ;;
cannam@85 6340
cannam@85 6341 msdosdjgpp*)
cannam@85 6342 # Just because we use GCC doesn't mean we suddenly get shared libraries
cannam@85 6343 # on systems that don't support them.
cannam@85 6344 lt_prog_compiler_can_build_shared=no
cannam@85 6345 enable_shared=no
cannam@85 6346 ;;
cannam@85 6347
cannam@85 6348 sysv4*MP*)
cannam@85 6349 if test -d /usr/nec; then
cannam@85 6350 lt_prog_compiler_pic=-Kconform_pic
cannam@85 6351 fi
cannam@85 6352 ;;
cannam@85 6353
cannam@85 6354 hpux*)
cannam@85 6355 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cannam@85 6356 # not for PA HP-UX.
cannam@85 6357 case "$host_cpu" in
cannam@85 6358 hppa*64*|ia64*)
cannam@85 6359 # +Z the default
cannam@85 6360 ;;
cannam@85 6361 *)
cannam@85 6362 lt_prog_compiler_pic='-fPIC'
cannam@85 6363 ;;
cannam@85 6364 esac
cannam@85 6365 ;;
cannam@85 6366
cannam@85 6367 *)
cannam@85 6368 lt_prog_compiler_pic='-fPIC'
cannam@85 6369 ;;
cannam@85 6370 esac
cannam@85 6371 else
cannam@85 6372 # PORTME Check for flag to pass linker flags through the system compiler.
cannam@85 6373 case $host_os in
cannam@85 6374 aix*)
cannam@85 6375 lt_prog_compiler_wl='-Wl,'
cannam@85 6376 if test "$host_cpu" = ia64; then
cannam@85 6377 # AIX 5 now supports IA64 processor
cannam@85 6378 lt_prog_compiler_static='-Bstatic'
cannam@85 6379 else
cannam@85 6380 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
cannam@85 6381 fi
cannam@85 6382 ;;
cannam@85 6383
cannam@85 6384 mingw* | pw32* | os2*)
cannam@85 6385 # This hack is so that the source file can tell whether it is being
cannam@85 6386 # built for inclusion in a dll (and should export symbols for example).
cannam@85 6387 lt_prog_compiler_pic='-DDLL_EXPORT'
cannam@85 6388 ;;
cannam@85 6389
cannam@85 6390 hpux9* | hpux10* | hpux11*)
cannam@85 6391 lt_prog_compiler_wl='-Wl,'
cannam@85 6392 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cannam@85 6393 # not for PA HP-UX.
cannam@85 6394 case "$host_cpu" in
cannam@85 6395 hppa*64*|ia64*)
cannam@85 6396 # +Z the default
cannam@85 6397 ;;
cannam@85 6398 *)
cannam@85 6399 lt_prog_compiler_pic='+Z'
cannam@85 6400 ;;
cannam@85 6401 esac
cannam@85 6402 # Is there a better lt_prog_compiler_static that works with the bundled CC?
cannam@85 6403 lt_prog_compiler_static='${wl}-a ${wl}archive'
cannam@85 6404 ;;
cannam@85 6405
cannam@85 6406 irix5* | irix6* | nonstopux*)
cannam@85 6407 lt_prog_compiler_wl='-Wl,'
cannam@85 6408 # PIC (with -KPIC) is the default.
cannam@85 6409 lt_prog_compiler_static='-non_shared'
cannam@85 6410 ;;
cannam@85 6411
cannam@85 6412 newsos6)
cannam@85 6413 lt_prog_compiler_pic='-KPIC'
cannam@85 6414 lt_prog_compiler_static='-Bstatic'
cannam@85 6415 ;;
cannam@85 6416
cannam@85 6417 linux*)
cannam@85 6418 case $CC in
cannam@85 6419 icc* | ecc*)
cannam@85 6420 lt_prog_compiler_wl='-Wl,'
cannam@85 6421 lt_prog_compiler_pic='-KPIC'
cannam@85 6422 lt_prog_compiler_static='-static'
cannam@85 6423 ;;
cannam@85 6424 ccc*)
cannam@85 6425 lt_prog_compiler_wl='-Wl,'
cannam@85 6426 # All Alpha code is PIC.
cannam@85 6427 lt_prog_compiler_static='-non_shared'
cannam@85 6428 ;;
cannam@85 6429 esac
cannam@85 6430 ;;
cannam@85 6431
cannam@85 6432 osf3* | osf4* | osf5*)
cannam@85 6433 lt_prog_compiler_wl='-Wl,'
cannam@85 6434 # All OSF/1 code is PIC.
cannam@85 6435 lt_prog_compiler_static='-non_shared'
cannam@85 6436 ;;
cannam@85 6437
cannam@85 6438 sco3.2v5*)
cannam@85 6439 lt_prog_compiler_pic='-Kpic'
cannam@85 6440 lt_prog_compiler_static='-dn'
cannam@85 6441 ;;
cannam@85 6442
cannam@85 6443 solaris*)
cannam@85 6444 lt_prog_compiler_wl='-Wl,'
cannam@85 6445 lt_prog_compiler_pic='-KPIC'
cannam@85 6446 lt_prog_compiler_static='-Bstatic'
cannam@85 6447 ;;
cannam@85 6448
cannam@85 6449 sunos4*)
cannam@85 6450 lt_prog_compiler_wl='-Qoption ld '
cannam@85 6451 lt_prog_compiler_pic='-PIC'
cannam@85 6452 lt_prog_compiler_static='-Bstatic'
cannam@85 6453 ;;
cannam@85 6454
cannam@85 6455 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@85 6456 lt_prog_compiler_wl='-Wl,'
cannam@85 6457 lt_prog_compiler_pic='-KPIC'
cannam@85 6458 lt_prog_compiler_static='-Bstatic'
cannam@85 6459 ;;
cannam@85 6460
cannam@85 6461 sysv4*MP*)
cannam@85 6462 if test -d /usr/nec ;then
cannam@85 6463 lt_prog_compiler_pic='-Kconform_pic'
cannam@85 6464 lt_prog_compiler_static='-Bstatic'
cannam@85 6465 fi
cannam@85 6466 ;;
cannam@85 6467
cannam@85 6468 uts4*)
cannam@85 6469 lt_prog_compiler_pic='-pic'
cannam@85 6470 lt_prog_compiler_static='-Bstatic'
cannam@85 6471 ;;
cannam@85 6472
cannam@85 6473 *)
cannam@85 6474 lt_prog_compiler_can_build_shared=no
cannam@85 6475 ;;
cannam@85 6476 esac
cannam@85 6477 fi
cannam@85 6478
cannam@85 6479 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
cannam@85 6480 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
cannam@85 6481
cannam@85 6482 #
cannam@85 6483 # Check to make sure the PIC flag actually works.
cannam@85 6484 #
cannam@85 6485 if test -n "$lt_prog_compiler_pic"; then
cannam@85 6486
cannam@85 6487 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cannam@85 6488 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
cannam@85 6489 if test "${lt_prog_compiler_pic_works+set}" = set; then
cannam@85 6490 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 6491 else
cannam@85 6492 lt_prog_compiler_pic_works=no
cannam@85 6493 ac_outfile=conftest.$ac_objext
cannam@85 6494 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 6495 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
cannam@85 6496 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 6497 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 6498 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 6499 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 6500 # The option is referenced via a variable to avoid confusing sed.
cannam@85 6501 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 6502 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
cannam@85 6503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 6504 -e 's:$: $lt_compiler_flag:'`
cannam@85 6505 (eval echo "\"\$as_me:6505: $lt_compile\"" >&5)
cannam@85 6506 (eval "$lt_compile" 2>conftest.err)
cannam@85 6507 ac_status=$?
cannam@85 6508 cat conftest.err >&5
cannam@85 6509 echo "$as_me:6509: \$? = $ac_status" >&5
cannam@85 6510 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@85 6511 # The compiler can only warn and ignore the option if not recognized
cannam@85 6512 # So say no if there are warnings
cannam@85 6513 if test ! -s conftest.err; then
cannam@85 6514 lt_prog_compiler_pic_works=yes
cannam@85 6515 fi
cannam@85 6516 fi
cannam@85 6517 $rm conftest*
cannam@85 6518
cannam@85 6519 fi
cannam@85 6520 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
cannam@85 6521 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
cannam@85 6522
cannam@85 6523 if test x"$lt_prog_compiler_pic_works" = xyes; then
cannam@85 6524 case $lt_prog_compiler_pic in
cannam@85 6525 "" | " "*) ;;
cannam@85 6526 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
cannam@85 6527 esac
cannam@85 6528 else
cannam@85 6529 lt_prog_compiler_pic=
cannam@85 6530 lt_prog_compiler_can_build_shared=no
cannam@85 6531 fi
cannam@85 6532
cannam@85 6533 fi
cannam@85 6534 case "$host_os" in
cannam@85 6535 # For platforms which do not support PIC, -DPIC is meaningless:
cannam@85 6536 *djgpp*)
cannam@85 6537 lt_prog_compiler_pic=
cannam@85 6538 ;;
cannam@85 6539 *)
cannam@85 6540 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
cannam@85 6541 ;;
cannam@85 6542 esac
cannam@85 6543
cannam@85 6544 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@85 6545 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
cannam@85 6546 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
cannam@85 6547 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 6548 else
cannam@85 6549 lt_cv_prog_compiler_c_o=no
cannam@85 6550 $rm -r conftest 2>/dev/null
cannam@85 6551 mkdir conftest
cannam@85 6552 cd conftest
cannam@85 6553 mkdir out
cannam@85 6554 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 6555
cannam@85 6556 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@85 6557 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 6558 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 6559 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 6560 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 6561 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 6562 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
cannam@85 6563 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 6564 -e 's:$: $lt_compiler_flag:'`
cannam@85 6565 (eval echo "\"\$as_me:6565: $lt_compile\"" >&5)
cannam@85 6566 (eval "$lt_compile" 2>out/conftest.err)
cannam@85 6567 ac_status=$?
cannam@85 6568 cat out/conftest.err >&5
cannam@85 6569 echo "$as_me:6569: \$? = $ac_status" >&5
cannam@85 6570 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@85 6571 then
cannam@85 6572 # The compiler can only warn and ignore the option if not recognized
cannam@85 6573 # So say no if there are warnings
cannam@85 6574 if test ! -s out/conftest.err; then
cannam@85 6575 lt_cv_prog_compiler_c_o=yes
cannam@85 6576 fi
cannam@85 6577 fi
cannam@85 6578 chmod u+w .
cannam@85 6579 $rm conftest*
cannam@85 6580 # SGI C++ compiler will create directory out/ii_files/ for
cannam@85 6581 # template instantiation
cannam@85 6582 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
cannam@85 6583 $rm out/* && rmdir out
cannam@85 6584 cd ..
cannam@85 6585 rmdir conftest
cannam@85 6586 $rm conftest*
cannam@85 6587
cannam@85 6588 fi
cannam@85 6589 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
cannam@85 6590 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
cannam@85 6591
cannam@85 6592
cannam@85 6593 hard_links="nottested"
cannam@85 6594 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
cannam@85 6595 # do not overwrite the value of need_locks provided by the user
cannam@85 6596 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
cannam@85 6597 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
cannam@85 6598 hard_links=yes
cannam@85 6599 $rm conftest*
cannam@85 6600 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@85 6601 touch conftest.a
cannam@85 6602 ln conftest.a conftest.b 2>&5 || hard_links=no
cannam@85 6603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@85 6604 echo "$as_me:$LINENO: result: $hard_links" >&5
cannam@85 6605 echo "${ECHO_T}$hard_links" >&6
cannam@85 6606 if test "$hard_links" = no; then
cannam@85 6607 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cannam@85 6608 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
cannam@85 6609 need_locks=warn
cannam@85 6610 fi
cannam@85 6611 else
cannam@85 6612 need_locks=no
cannam@85 6613 fi
cannam@85 6614
cannam@85 6615 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@85 6616 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
cannam@85 6617
cannam@85 6618 runpath_var=
cannam@85 6619 allow_undefined_flag=
cannam@85 6620 enable_shared_with_static_runtimes=no
cannam@85 6621 archive_cmds=
cannam@85 6622 archive_expsym_cmds=
cannam@85 6623 old_archive_From_new_cmds=
cannam@85 6624 old_archive_from_expsyms_cmds=
cannam@85 6625 export_dynamic_flag_spec=
cannam@85 6626 whole_archive_flag_spec=
cannam@85 6627 thread_safe_flag_spec=
cannam@85 6628 hardcode_libdir_flag_spec=
cannam@85 6629 hardcode_libdir_flag_spec_ld=
cannam@85 6630 hardcode_libdir_separator=
cannam@85 6631 hardcode_direct=no
cannam@85 6632 hardcode_minus_L=no
cannam@85 6633 hardcode_shlibpath_var=unsupported
cannam@85 6634 link_all_deplibs=unknown
cannam@85 6635 hardcode_automatic=no
cannam@85 6636 module_cmds=
cannam@85 6637 module_expsym_cmds=
cannam@85 6638 always_export_symbols=no
cannam@85 6639 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@85 6640 # include_expsyms should be a list of space-separated symbols to be *always*
cannam@85 6641 # included in the symbol list
cannam@85 6642 include_expsyms=
cannam@85 6643 # exclude_expsyms can be an extended regexp of symbols to exclude
cannam@85 6644 # it will be wrapped by ` (' and `)$', so one must not match beginning or
cannam@85 6645 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
cannam@85 6646 # as well as any symbol that contains `d'.
cannam@85 6647 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
cannam@85 6648 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
cannam@85 6649 # platforms (ab)use it in PIC code, but their linkers get confused if
cannam@85 6650 # the symbol is explicitly referenced. Since portable code cannot
cannam@85 6651 # rely on this symbol name, it's probably fine to never include it in
cannam@85 6652 # preloaded symbol tables.
cannam@85 6653 extract_expsyms_cmds=
cannam@85 6654
cannam@85 6655 case $host_os in
cannam@85 6656 cygwin* | mingw* | pw32*)
cannam@85 6657 # FIXME: the MSVC++ port hasn't been tested in a loooong time
cannam@85 6658 # When not using gcc, we currently assume that we are using
cannam@85 6659 # Microsoft Visual C++.
cannam@85 6660 if test "$GCC" != yes; then
cannam@85 6661 with_gnu_ld=no
cannam@85 6662 fi
cannam@85 6663 ;;
cannam@85 6664 openbsd*)
cannam@85 6665 with_gnu_ld=no
cannam@85 6666 ;;
cannam@85 6667 esac
cannam@85 6668
cannam@85 6669 ld_shlibs=yes
cannam@85 6670 if test "$with_gnu_ld" = yes; then
cannam@85 6671 # If archive_cmds runs LD, not CC, wlarc should be empty
cannam@85 6672 wlarc='${wl}'
cannam@85 6673
cannam@85 6674 # See if GNU ld supports shared libraries.
cannam@85 6675 case $host_os in
cannam@85 6676 aix3* | aix4* | aix5*)
cannam@85 6677 # On AIX/PPC, the GNU linker is very broken
cannam@85 6678 if test "$host_cpu" != ia64; then
cannam@85 6679 ld_shlibs=no
cannam@85 6680 cat <<EOF 1>&2
cannam@85 6681
cannam@85 6682 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
cannam@85 6683 *** to be unable to reliably create shared libraries on AIX.
cannam@85 6684 *** Therefore, libtool is disabling shared libraries support. If you
cannam@85 6685 *** really care for shared libraries, you may want to modify your PATH
cannam@85 6686 *** so that a non-GNU linker is found, and then restart.
cannam@85 6687
cannam@85 6688 EOF
cannam@85 6689 fi
cannam@85 6690 ;;
cannam@85 6691
cannam@85 6692 amigaos*)
cannam@85 6693 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@85 6694 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 6695 hardcode_minus_L=yes
cannam@85 6696
cannam@85 6697 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
cannam@85 6698 # that the semantics of dynamic libraries on AmigaOS, at least up
cannam@85 6699 # to version 4, is to share data among multiple programs linked
cannam@85 6700 # with the same dynamic library. Since this doesn't match the
cannam@85 6701 # behavior of shared libraries on other platforms, we can't use
cannam@85 6702 # them.
cannam@85 6703 ld_shlibs=no
cannam@85 6704 ;;
cannam@85 6705
cannam@85 6706 beos*)
cannam@85 6707 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cannam@85 6708 allow_undefined_flag=unsupported
cannam@85 6709 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
cannam@85 6710 # support --undefined. This deserves some investigation. FIXME
cannam@85 6711 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 6712 else
cannam@85 6713 ld_shlibs=no
cannam@85 6714 fi
cannam@85 6715 ;;
cannam@85 6716
cannam@85 6717 cygwin* | mingw* | pw32*)
cannam@85 6718 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
cannam@85 6719 # as there is no search path for DLLs.
cannam@85 6720 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 6721 allow_undefined_flag=unsupported
cannam@85 6722 always_export_symbols=no
cannam@85 6723 enable_shared_with_static_runtimes=yes
cannam@85 6724 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
cannam@85 6725
cannam@85 6726 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
cannam@85 6727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
cannam@85 6728 # If the export-symbols file already is a .def file (1st line
cannam@85 6729 # is EXPORTS), use it as is; otherwise, prepend...
cannam@85 6730 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@85 6731 cp $export_symbols $output_objdir/$soname.def;
cannam@85 6732 else
cannam@85 6733 echo EXPORTS > $output_objdir/$soname.def;
cannam@85 6734 cat $export_symbols >> $output_objdir/$soname.def;
cannam@85 6735 fi~
cannam@85 6736 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
cannam@85 6737 else
cannam@85 6738 ld_shlibs=no
cannam@85 6739 fi
cannam@85 6740 ;;
cannam@85 6741
cannam@85 6742 netbsd* | knetbsd*-gnu)
cannam@85 6743 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cannam@85 6744 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
cannam@85 6745 wlarc=
cannam@85 6746 else
cannam@85 6747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 6748 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@85 6749 fi
cannam@85 6750 ;;
cannam@85 6751
cannam@85 6752 solaris* | sysv5*)
cannam@85 6753 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
cannam@85 6754 ld_shlibs=no
cannam@85 6755 cat <<EOF 1>&2
cannam@85 6756
cannam@85 6757 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
cannam@85 6758 *** create shared libraries on Solaris systems. Therefore, libtool
cannam@85 6759 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@85 6760 *** binutils to release 2.9.1 or newer. Another option is to modify
cannam@85 6761 *** your PATH or compiler configuration so that the native linker is
cannam@85 6762 *** used, and then restart.
cannam@85 6763
cannam@85 6764 EOF
cannam@85 6765 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cannam@85 6766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 6767 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@85 6768 else
cannam@85 6769 ld_shlibs=no
cannam@85 6770 fi
cannam@85 6771 ;;
cannam@85 6772
cannam@85 6773 sunos4*)
cannam@85 6774 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@85 6775 wlarc=
cannam@85 6776 hardcode_direct=yes
cannam@85 6777 hardcode_shlibpath_var=no
cannam@85 6778 ;;
cannam@85 6779
cannam@85 6780 linux*)
cannam@85 6781 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
cannam@85 6782 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 6783 archive_cmds="$tmp_archive_cmds"
cannam@85 6784 supports_anon_versioning=no
cannam@85 6785 case `$LD -v 2>/dev/null` in
cannam@85 6786 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
cannam@85 6787 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
cannam@85 6788 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
cannam@85 6789 *\ 2.11.*) ;; # other 2.11 versions
cannam@85 6790 *) supports_anon_versioning=yes ;;
cannam@85 6791 esac
cannam@85 6792 if test $supports_anon_versioning = yes; then
cannam@85 6793 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
cannam@85 6794 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@85 6795 $echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@85 6796 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
cannam@85 6797 else
cannam@85 6798 archive_expsym_cmds="$tmp_archive_cmds"
cannam@85 6799 fi
cannam@85 6800 else
cannam@85 6801 ld_shlibs=no
cannam@85 6802 fi
cannam@85 6803 ;;
cannam@85 6804
cannam@85 6805 *)
cannam@85 6806 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cannam@85 6807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 6808 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@85 6809 else
cannam@85 6810 ld_shlibs=no
cannam@85 6811 fi
cannam@85 6812 ;;
cannam@85 6813 esac
cannam@85 6814
cannam@85 6815 if test "$ld_shlibs" = yes; then
cannam@85 6816 runpath_var=LD_RUN_PATH
cannam@85 6817 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
cannam@85 6818 export_dynamic_flag_spec='${wl}--export-dynamic'
cannam@85 6819 # ancient GNU ld didn't support --whole-archive et. al.
cannam@85 6820 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
cannam@85 6821 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cannam@85 6822 else
cannam@85 6823 whole_archive_flag_spec=
cannam@85 6824 fi
cannam@85 6825 fi
cannam@85 6826 else
cannam@85 6827 # PORTME fill in a description of your system's linker (not GNU ld)
cannam@85 6828 case $host_os in
cannam@85 6829 aix3*)
cannam@85 6830 allow_undefined_flag=unsupported
cannam@85 6831 always_export_symbols=yes
cannam@85 6832 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@85 6833 # Note: this linker hardcodes the directories in LIBPATH if there
cannam@85 6834 # are no directories specified by -L.
cannam@85 6835 hardcode_minus_L=yes
cannam@85 6836 if test "$GCC" = yes && test -z "$link_static_flag"; then
cannam@85 6837 # Neither direct hardcoding nor static linking is supported with a
cannam@85 6838 # broken collect2.
cannam@85 6839 hardcode_direct=unsupported
cannam@85 6840 fi
cannam@85 6841 ;;
cannam@85 6842
cannam@85 6843 aix4* | aix5*)
cannam@85 6844 if test "$host_cpu" = ia64; then
cannam@85 6845 # On IA64, the linker does run time linking by default, so we don't
cannam@85 6846 # have to do anything special.
cannam@85 6847 aix_use_runtimelinking=no
cannam@85 6848 exp_sym_flag='-Bexport'
cannam@85 6849 no_entry_flag=""
cannam@85 6850 else
cannam@85 6851 # If we're using GNU nm, then we don't want the "-C" option.
cannam@85 6852 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cannam@85 6853 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
cannam@85 6854 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
cannam@85 6855 else
cannam@85 6856 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@85 6857 fi
cannam@85 6858 aix_use_runtimelinking=no
cannam@85 6859
cannam@85 6860 # Test if we are trying to use run time linking or normal
cannam@85 6861 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cannam@85 6862 # need to do runtime linking.
cannam@85 6863 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
cannam@85 6864 for ld_flag in $LDFLAGS; do
cannam@85 6865 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
cannam@85 6866 aix_use_runtimelinking=yes
cannam@85 6867 break
cannam@85 6868 fi
cannam@85 6869 done
cannam@85 6870 esac
cannam@85 6871
cannam@85 6872 exp_sym_flag='-bexport'
cannam@85 6873 no_entry_flag='-bnoentry'
cannam@85 6874 fi
cannam@85 6875
cannam@85 6876 # When large executables or shared objects are built, AIX ld can
cannam@85 6877 # have problems creating the table of contents. If linking a library
cannam@85 6878 # or program results in "error TOC overflow" add -mminimal-toc to
cannam@85 6879 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cannam@85 6880 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cannam@85 6881
cannam@85 6882 archive_cmds=''
cannam@85 6883 hardcode_direct=yes
cannam@85 6884 hardcode_libdir_separator=':'
cannam@85 6885 link_all_deplibs=yes
cannam@85 6886
cannam@85 6887 if test "$GCC" = yes; then
cannam@85 6888 case $host_os in aix4.012|aix4.012.*)
cannam@85 6889 # We only want to do this on AIX 4.2 and lower, the check
cannam@85 6890 # below for broken collect2 doesn't work under 4.3+
cannam@85 6891 collect2name=`${CC} -print-prog-name=collect2`
cannam@85 6892 if test -f "$collect2name" && \
cannam@85 6893 strings "$collect2name" | grep resolve_lib_name >/dev/null
cannam@85 6894 then
cannam@85 6895 # We have reworked collect2
cannam@85 6896 hardcode_direct=yes
cannam@85 6897 else
cannam@85 6898 # We have old collect2
cannam@85 6899 hardcode_direct=unsupported
cannam@85 6900 # It fails to find uninstalled libraries when the uninstalled
cannam@85 6901 # path is not listed in the libpath. Setting hardcode_minus_L
cannam@85 6902 # to unsupported forces relinking
cannam@85 6903 hardcode_minus_L=yes
cannam@85 6904 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 6905 hardcode_libdir_separator=
cannam@85 6906 fi
cannam@85 6907 esac
cannam@85 6908 shared_flag='-shared'
cannam@85 6909 else
cannam@85 6910 # not using gcc
cannam@85 6911 if test "$host_cpu" = ia64; then
cannam@85 6912 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cannam@85 6913 # chokes on -Wl,-G. The following line is correct:
cannam@85 6914 shared_flag='-G'
cannam@85 6915 else
cannam@85 6916 if test "$aix_use_runtimelinking" = yes; then
cannam@85 6917 shared_flag='${wl}-G'
cannam@85 6918 else
cannam@85 6919 shared_flag='${wl}-bM:SRE'
cannam@85 6920 fi
cannam@85 6921 fi
cannam@85 6922 fi
cannam@85 6923
cannam@85 6924 # It seems that -bexpall does not export symbols beginning with
cannam@85 6925 # underscore (_), so it is better to generate a list of symbols to export.
cannam@85 6926 always_export_symbols=yes
cannam@85 6927 if test "$aix_use_runtimelinking" = yes; then
cannam@85 6928 # Warning - without using the other runtime loading flags (-brtl),
cannam@85 6929 # -berok will link without error, but may produce a broken library.
cannam@85 6930 allow_undefined_flag='-berok'
cannam@85 6931 # Determine the default libpath from the value encoded in an empty executable.
cannam@85 6932 cat >conftest.$ac_ext <<_ACEOF
cannam@85 6933 /* confdefs.h. */
cannam@85 6934 _ACEOF
cannam@85 6935 cat confdefs.h >>conftest.$ac_ext
cannam@85 6936 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 6937 /* end confdefs.h. */
cannam@85 6938
cannam@85 6939 int
cannam@85 6940 main ()
cannam@85 6941 {
cannam@85 6942
cannam@85 6943 ;
cannam@85 6944 return 0;
cannam@85 6945 }
cannam@85 6946 _ACEOF
cannam@85 6947 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 6948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 6949 (eval $ac_link) 2>conftest.er1
cannam@85 6950 ac_status=$?
cannam@85 6951 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 6952 rm -f conftest.er1
cannam@85 6953 cat conftest.err >&5
cannam@85 6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 6955 (exit $ac_status); } &&
cannam@85 6956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 6958 (eval $ac_try) 2>&5
cannam@85 6959 ac_status=$?
cannam@85 6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 6961 (exit $ac_status); }; } &&
cannam@85 6962 { ac_try='test -s conftest$ac_exeext'
cannam@85 6963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 6964 (eval $ac_try) 2>&5
cannam@85 6965 ac_status=$?
cannam@85 6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 6967 (exit $ac_status); }; }; then
cannam@85 6968
cannam@85 6969 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 6970 }'`
cannam@85 6971 # Check for a 64-bit object if we didn't find anything.
cannam@85 6972 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 6973 }'`; fi
cannam@85 6974 else
cannam@85 6975 echo "$as_me: failed program was:" >&5
cannam@85 6976 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 6977
cannam@85 6978 fi
cannam@85 6979 rm -f conftest.err conftest.$ac_objext \
cannam@85 6980 conftest$ac_exeext conftest.$ac_ext
cannam@85 6981 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
cannam@85 6982
cannam@85 6983 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@85 6984 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cannam@85 6985 else
cannam@85 6986 if test "$host_cpu" = ia64; then
cannam@85 6987 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
cannam@85 6988 allow_undefined_flag="-z nodefs"
cannam@85 6989 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
cannam@85 6990 else
cannam@85 6991 # Determine the default libpath from the value encoded in an empty executable.
cannam@85 6992 cat >conftest.$ac_ext <<_ACEOF
cannam@85 6993 /* confdefs.h. */
cannam@85 6994 _ACEOF
cannam@85 6995 cat confdefs.h >>conftest.$ac_ext
cannam@85 6996 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 6997 /* end confdefs.h. */
cannam@85 6998
cannam@85 6999 int
cannam@85 7000 main ()
cannam@85 7001 {
cannam@85 7002
cannam@85 7003 ;
cannam@85 7004 return 0;
cannam@85 7005 }
cannam@85 7006 _ACEOF
cannam@85 7007 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 7008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 7009 (eval $ac_link) 2>conftest.er1
cannam@85 7010 ac_status=$?
cannam@85 7011 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 7012 rm -f conftest.er1
cannam@85 7013 cat conftest.err >&5
cannam@85 7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 7015 (exit $ac_status); } &&
cannam@85 7016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 7018 (eval $ac_try) 2>&5
cannam@85 7019 ac_status=$?
cannam@85 7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 7021 (exit $ac_status); }; } &&
cannam@85 7022 { ac_try='test -s conftest$ac_exeext'
cannam@85 7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 7024 (eval $ac_try) 2>&5
cannam@85 7025 ac_status=$?
cannam@85 7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 7027 (exit $ac_status); }; }; then
cannam@85 7028
cannam@85 7029 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 7030 }'`
cannam@85 7031 # Check for a 64-bit object if we didn't find anything.
cannam@85 7032 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 7033 }'`; fi
cannam@85 7034 else
cannam@85 7035 echo "$as_me: failed program was:" >&5
cannam@85 7036 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 7037
cannam@85 7038 fi
cannam@85 7039 rm -f conftest.err conftest.$ac_objext \
cannam@85 7040 conftest$ac_exeext conftest.$ac_ext
cannam@85 7041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
cannam@85 7042
cannam@85 7043 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@85 7044 # Warning - without using the other run time loading flags,
cannam@85 7045 # -berok will link without error, but may produce a broken library.
cannam@85 7046 no_undefined_flag=' ${wl}-bernotok'
cannam@85 7047 allow_undefined_flag=' ${wl}-berok'
cannam@85 7048 # -bexpall does not export symbols beginning with underscore (_)
cannam@85 7049 always_export_symbols=yes
cannam@85 7050 # Exported symbols can be pulled into shared objects from archives
cannam@85 7051 whole_archive_flag_spec=' '
cannam@85 7052 archive_cmds_need_lc=yes
cannam@85 7053 # This is similar to how AIX traditionally builds it's shared libraries.
cannam@85 7054 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
cannam@85 7055 fi
cannam@85 7056 fi
cannam@85 7057 ;;
cannam@85 7058
cannam@85 7059 amigaos*)
cannam@85 7060 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@85 7061 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 7062 hardcode_minus_L=yes
cannam@85 7063 # see comment about different semantics on the GNU ld section
cannam@85 7064 ld_shlibs=no
cannam@85 7065 ;;
cannam@85 7066
cannam@85 7067 bsdi4*)
cannam@85 7068 export_dynamic_flag_spec=-rdynamic
cannam@85 7069 ;;
cannam@85 7070
cannam@85 7071 cygwin* | mingw* | pw32*)
cannam@85 7072 # When not using gcc, we currently assume that we are using
cannam@85 7073 # Microsoft Visual C++.
cannam@85 7074 # hardcode_libdir_flag_spec is actually meaningless, as there is
cannam@85 7075 # no search path for DLLs.
cannam@85 7076 hardcode_libdir_flag_spec=' '
cannam@85 7077 allow_undefined_flag=unsupported
cannam@85 7078 # Tell ltmain to make .lib files, not .a files.
cannam@85 7079 libext=lib
cannam@85 7080 # Tell ltmain to make .dll files, not .so files.
cannam@85 7081 shrext=".dll"
cannam@85 7082 # FIXME: Setting linknames here is a bad hack.
cannam@85 7083 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
cannam@85 7084 # The linker will automatically build a .lib file if we build a DLL.
cannam@85 7085 old_archive_From_new_cmds='true'
cannam@85 7086 # FIXME: Should let the user specify the lib program.
cannam@85 7087 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
cannam@85 7088 fix_srcfile_path='`cygpath -w "$srcfile"`'
cannam@85 7089 enable_shared_with_static_runtimes=yes
cannam@85 7090 ;;
cannam@85 7091
cannam@85 7092 darwin* | rhapsody*)
cannam@85 7093 if test "$GXX" = yes ; then
cannam@85 7094 archive_cmds_need_lc=no
cannam@85 7095 case "$host_os" in
cannam@85 7096 rhapsody* | darwin1.[012])
cannam@85 7097 allow_undefined_flag='-undefined suppress'
cannam@85 7098 ;;
cannam@85 7099 *) # Darwin 1.3 on
cannam@85 7100 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
cannam@85 7101 allow_undefined_flag='-flat_namespace -undefined suppress'
cannam@85 7102 else
cannam@85 7103 case ${MACOSX_DEPLOYMENT_TARGET} in
cannam@85 7104 10.[012])
cannam@85 7105 allow_undefined_flag='-flat_namespace -undefined suppress'
cannam@85 7106 ;;
cannam@85 7107 10.*)
cannam@85 7108 allow_undefined_flag='-undefined dynamic_lookup'
cannam@85 7109 ;;
cannam@85 7110 esac
cannam@85 7111 fi
cannam@85 7112 ;;
cannam@85 7113 esac
cannam@85 7114 lt_int_apple_cc_single_mod=no
cannam@85 7115 output_verbose_link_cmd='echo'
cannam@85 7116 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
cannam@85 7117 lt_int_apple_cc_single_mod=yes
cannam@85 7118 fi
cannam@85 7119 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
cannam@85 7120 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
cannam@85 7121 else
cannam@85 7122 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
cannam@85 7123 fi
cannam@85 7124 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
cannam@85 7125 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
cannam@85 7126 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
cannam@85 7127 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
cannam@85 7128 else
cannam@85 7129 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
cannam@85 7130 fi
cannam@85 7131 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
cannam@85 7132 hardcode_direct=no
cannam@85 7133 hardcode_automatic=yes
cannam@85 7134 hardcode_shlibpath_var=unsupported
cannam@85 7135 whole_archive_flag_spec='-all_load $convenience'
cannam@85 7136 link_all_deplibs=yes
cannam@85 7137 else
cannam@85 7138 ld_shlibs=no
cannam@85 7139 fi
cannam@85 7140 ;;
cannam@85 7141
cannam@85 7142 dgux*)
cannam@85 7143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7144 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 7145 hardcode_shlibpath_var=no
cannam@85 7146 ;;
cannam@85 7147
cannam@85 7148 freebsd1*)
cannam@85 7149 ld_shlibs=no
cannam@85 7150 ;;
cannam@85 7151
cannam@85 7152 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
cannam@85 7153 # support. Future versions do this automatically, but an explicit c++rt0.o
cannam@85 7154 # does not break anything, and helps significantly (at the cost of a little
cannam@85 7155 # extra space).
cannam@85 7156 freebsd2.2*)
cannam@85 7157 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
cannam@85 7158 hardcode_libdir_flag_spec='-R$libdir'
cannam@85 7159 hardcode_direct=yes
cannam@85 7160 hardcode_shlibpath_var=no
cannam@85 7161 ;;
cannam@85 7162
cannam@85 7163 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cannam@85 7164 freebsd2*)
cannam@85 7165 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7166 hardcode_direct=yes
cannam@85 7167 hardcode_minus_L=yes
cannam@85 7168 hardcode_shlibpath_var=no
cannam@85 7169 ;;
cannam@85 7170
cannam@85 7171 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
cannam@85 7172 freebsd* | kfreebsd*-gnu)
cannam@85 7173 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 7174 hardcode_libdir_flag_spec='-R$libdir'
cannam@85 7175 hardcode_direct=yes
cannam@85 7176 hardcode_shlibpath_var=no
cannam@85 7177 ;;
cannam@85 7178
cannam@85 7179 hpux9*)
cannam@85 7180 if test "$GCC" = yes; then
cannam@85 7181 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cannam@85 7182 else
cannam@85 7183 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@85 7184 fi
cannam@85 7185 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@85 7186 hardcode_libdir_separator=:
cannam@85 7187 hardcode_direct=yes
cannam@85 7188
cannam@85 7189 # hardcode_minus_L: Not really in the search PATH,
cannam@85 7190 # but as the default location of the library.
cannam@85 7191 hardcode_minus_L=yes
cannam@85 7192 export_dynamic_flag_spec='${wl}-E'
cannam@85 7193 ;;
cannam@85 7194
cannam@85 7195 hpux10* | hpux11*)
cannam@85 7196 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cannam@85 7197 case "$host_cpu" in
cannam@85 7198 hppa*64*|ia64*)
cannam@85 7199 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 7200 ;;
cannam@85 7201 *)
cannam@85 7202 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 7203 ;;
cannam@85 7204 esac
cannam@85 7205 else
cannam@85 7206 case "$host_cpu" in
cannam@85 7207 hppa*64*|ia64*)
cannam@85 7208 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7209 ;;
cannam@85 7210 *)
cannam@85 7211 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7212 ;;
cannam@85 7213 esac
cannam@85 7214 fi
cannam@85 7215 if test "$with_gnu_ld" = no; then
cannam@85 7216 case "$host_cpu" in
cannam@85 7217 hppa*64*)
cannam@85 7218 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@85 7219 hardcode_libdir_flag_spec_ld='+b $libdir'
cannam@85 7220 hardcode_libdir_separator=:
cannam@85 7221 hardcode_direct=no
cannam@85 7222 hardcode_shlibpath_var=no
cannam@85 7223 ;;
cannam@85 7224 ia64*)
cannam@85 7225 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 7226 hardcode_direct=no
cannam@85 7227 hardcode_shlibpath_var=no
cannam@85 7228
cannam@85 7229 # hardcode_minus_L: Not really in the search PATH,
cannam@85 7230 # but as the default location of the library.
cannam@85 7231 hardcode_minus_L=yes
cannam@85 7232 ;;
cannam@85 7233 *)
cannam@85 7234 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@85 7235 hardcode_libdir_separator=:
cannam@85 7236 hardcode_direct=yes
cannam@85 7237 export_dynamic_flag_spec='${wl}-E'
cannam@85 7238
cannam@85 7239 # hardcode_minus_L: Not really in the search PATH,
cannam@85 7240 # but as the default location of the library.
cannam@85 7241 hardcode_minus_L=yes
cannam@85 7242 ;;
cannam@85 7243 esac
cannam@85 7244 fi
cannam@85 7245 ;;
cannam@85 7246
cannam@85 7247 irix5* | irix6* | nonstopux*)
cannam@85 7248 if test "$GCC" = yes; then
cannam@85 7249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cannam@85 7250 else
cannam@85 7251 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
cannam@85 7252 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cannam@85 7253 fi
cannam@85 7254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@85 7255 hardcode_libdir_separator=:
cannam@85 7256 link_all_deplibs=yes
cannam@85 7257 ;;
cannam@85 7258
cannam@85 7259 netbsd* | knetbsd*-gnu)
cannam@85 7260 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cannam@85 7261 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
cannam@85 7262 else
cannam@85 7263 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
cannam@85 7264 fi
cannam@85 7265 hardcode_libdir_flag_spec='-R$libdir'
cannam@85 7266 hardcode_direct=yes
cannam@85 7267 hardcode_shlibpath_var=no
cannam@85 7268 ;;
cannam@85 7269
cannam@85 7270 newsos6)
cannam@85 7271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7272 hardcode_direct=yes
cannam@85 7273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@85 7274 hardcode_libdir_separator=:
cannam@85 7275 hardcode_shlibpath_var=no
cannam@85 7276 ;;
cannam@85 7277
cannam@85 7278 openbsd*)
cannam@85 7279 hardcode_direct=yes
cannam@85 7280 hardcode_shlibpath_var=no
cannam@85 7281 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@85 7282 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 7283 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cannam@85 7284 export_dynamic_flag_spec='${wl}-E'
cannam@85 7285 else
cannam@85 7286 case $host_os in
cannam@85 7287 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
cannam@85 7288 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7289 hardcode_libdir_flag_spec='-R$libdir'
cannam@85 7290 ;;
cannam@85 7291 *)
cannam@85 7292 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 7293 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cannam@85 7294 ;;
cannam@85 7295 esac
cannam@85 7296 fi
cannam@85 7297 ;;
cannam@85 7298
cannam@85 7299 os2*)
cannam@85 7300 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 7301 hardcode_minus_L=yes
cannam@85 7302 allow_undefined_flag=unsupported
cannam@85 7303 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@85 7304 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
cannam@85 7305 ;;
cannam@85 7306
cannam@85 7307 osf3*)
cannam@85 7308 if test "$GCC" = yes; then
cannam@85 7309 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cannam@85 7310 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cannam@85 7311 else
cannam@85 7312 allow_undefined_flag=' -expect_unresolved \*'
cannam@85 7313 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
cannam@85 7314 fi
cannam@85 7315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@85 7316 hardcode_libdir_separator=:
cannam@85 7317 ;;
cannam@85 7318
cannam@85 7319 osf4* | osf5*) # as osf3* with the addition of -msym flag
cannam@85 7320 if test "$GCC" = yes; then
cannam@85 7321 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cannam@85 7322 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cannam@85 7323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@85 7324 else
cannam@85 7325 allow_undefined_flag=' -expect_unresolved \*'
cannam@85 7326 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
cannam@85 7327 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
cannam@85 7328 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
cannam@85 7329
cannam@85 7330 # Both c and cxx compiler support -rpath directly
cannam@85 7331 hardcode_libdir_flag_spec='-rpath $libdir'
cannam@85 7332 fi
cannam@85 7333 hardcode_libdir_separator=:
cannam@85 7334 ;;
cannam@85 7335
cannam@85 7336 sco3.2v5*)
cannam@85 7337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7338 hardcode_shlibpath_var=no
cannam@85 7339 export_dynamic_flag_spec='${wl}-Bexport'
cannam@85 7340 runpath_var=LD_RUN_PATH
cannam@85 7341 hardcode_runpath_var=yes
cannam@85 7342 ;;
cannam@85 7343
cannam@85 7344 solaris*)
cannam@85 7345 no_undefined_flag=' -z text'
cannam@85 7346 if test "$GCC" = yes; then
cannam@85 7347 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 7348 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 7349 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
cannam@85 7350 else
cannam@85 7351 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7352 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 7353 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
cannam@85 7354 fi
cannam@85 7355 hardcode_libdir_flag_spec='-R$libdir'
cannam@85 7356 hardcode_shlibpath_var=no
cannam@85 7357 case $host_os in
cannam@85 7358 solaris2.[0-5] | solaris2.[0-5].*) ;;
cannam@85 7359 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
cannam@85 7360 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
cannam@85 7361 esac
cannam@85 7362 link_all_deplibs=yes
cannam@85 7363 ;;
cannam@85 7364
cannam@85 7365 sunos4*)
cannam@85 7366 if test "x$host_vendor" = xsequent; then
cannam@85 7367 # Use $CC to link under sequent, because it throws in some extra .o
cannam@85 7368 # files that make .init and .fini sections work.
cannam@85 7369 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 7370 else
cannam@85 7371 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7372 fi
cannam@85 7373 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 7374 hardcode_direct=yes
cannam@85 7375 hardcode_minus_L=yes
cannam@85 7376 hardcode_shlibpath_var=no
cannam@85 7377 ;;
cannam@85 7378
cannam@85 7379 sysv4)
cannam@85 7380 case $host_vendor in
cannam@85 7381 sni)
cannam@85 7382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7383 hardcode_direct=yes # is this really true???
cannam@85 7384 ;;
cannam@85 7385 siemens)
cannam@85 7386 ## LD is ld it makes a PLAMLIB
cannam@85 7387 ## CC just makes a GrossModule.
cannam@85 7388 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7389 reload_cmds='$CC -r -o $output$reload_objs'
cannam@85 7390 hardcode_direct=no
cannam@85 7391 ;;
cannam@85 7392 motorola)
cannam@85 7393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7394 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
cannam@85 7395 ;;
cannam@85 7396 esac
cannam@85 7397 runpath_var='LD_RUN_PATH'
cannam@85 7398 hardcode_shlibpath_var=no
cannam@85 7399 ;;
cannam@85 7400
cannam@85 7401 sysv4.3*)
cannam@85 7402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7403 hardcode_shlibpath_var=no
cannam@85 7404 export_dynamic_flag_spec='-Bexport'
cannam@85 7405 ;;
cannam@85 7406
cannam@85 7407 sysv4*MP*)
cannam@85 7408 if test -d /usr/nec; then
cannam@85 7409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7410 hardcode_shlibpath_var=no
cannam@85 7411 runpath_var=LD_RUN_PATH
cannam@85 7412 hardcode_runpath_var=yes
cannam@85 7413 ld_shlibs=yes
cannam@85 7414 fi
cannam@85 7415 ;;
cannam@85 7416
cannam@85 7417 sysv4.2uw2*)
cannam@85 7418 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7419 hardcode_direct=yes
cannam@85 7420 hardcode_minus_L=no
cannam@85 7421 hardcode_shlibpath_var=no
cannam@85 7422 hardcode_runpath_var=yes
cannam@85 7423 runpath_var=LD_RUN_PATH
cannam@85 7424 ;;
cannam@85 7425
cannam@85 7426 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
cannam@85 7427 no_undefined_flag='${wl}-z ${wl}text'
cannam@85 7428 if test "$GCC" = yes; then
cannam@85 7429 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 7430 else
cannam@85 7431 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 7432 fi
cannam@85 7433 runpath_var='LD_RUN_PATH'
cannam@85 7434 hardcode_shlibpath_var=no
cannam@85 7435 ;;
cannam@85 7436
cannam@85 7437 sysv5*)
cannam@85 7438 no_undefined_flag=' -z text'
cannam@85 7439 # $CC -shared without GNU ld will not create a library from C++
cannam@85 7440 # object files and a static libstdc++, better avoid it by now
cannam@85 7441 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7442 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 7443 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
cannam@85 7444 hardcode_libdir_flag_spec=
cannam@85 7445 hardcode_shlibpath_var=no
cannam@85 7446 runpath_var='LD_RUN_PATH'
cannam@85 7447 ;;
cannam@85 7448
cannam@85 7449 uts4*)
cannam@85 7450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7451 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 7452 hardcode_shlibpath_var=no
cannam@85 7453 ;;
cannam@85 7454
cannam@85 7455 *)
cannam@85 7456 ld_shlibs=no
cannam@85 7457 ;;
cannam@85 7458 esac
cannam@85 7459 fi
cannam@85 7460
cannam@85 7461 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
cannam@85 7462 echo "${ECHO_T}$ld_shlibs" >&6
cannam@85 7463 test "$ld_shlibs" = no && can_build_shared=no
cannam@85 7464
cannam@85 7465 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cannam@85 7466 if test "$GCC" = yes; then
cannam@85 7467 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
cannam@85 7468 fi
cannam@85 7469
cannam@85 7470 #
cannam@85 7471 # Do we need to explicitly link libc?
cannam@85 7472 #
cannam@85 7473 case "x$archive_cmds_need_lc" in
cannam@85 7474 x|xyes)
cannam@85 7475 # Assume -lc should be added
cannam@85 7476 archive_cmds_need_lc=yes
cannam@85 7477
cannam@85 7478 if test "$enable_shared" = yes && test "$GCC" = yes; then
cannam@85 7479 case $archive_cmds in
cannam@85 7480 *'~'*)
cannam@85 7481 # FIXME: we may have to deal with multi-command sequences.
cannam@85 7482 ;;
cannam@85 7483 '$CC '*)
cannam@85 7484 # Test whether the compiler implicitly links with -lc since on some
cannam@85 7485 # systems, -lgcc has to come before -lc. If gcc already passes -lc
cannam@85 7486 # to ld, don't add -lc before -lgcc.
cannam@85 7487 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
cannam@85 7488 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
cannam@85 7489 $rm conftest*
cannam@85 7490 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 7491
cannam@85 7492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 7493 (eval $ac_compile) 2>&5
cannam@85 7494 ac_status=$?
cannam@85 7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 7496 (exit $ac_status); } 2>conftest.err; then
cannam@85 7497 soname=conftest
cannam@85 7498 lib=conftest
cannam@85 7499 libobjs=conftest.$ac_objext
cannam@85 7500 deplibs=
cannam@85 7501 wl=$lt_prog_compiler_wl
cannam@85 7502 compiler_flags=-v
cannam@85 7503 linker_flags=-v
cannam@85 7504 verstring=
cannam@85 7505 output_objdir=.
cannam@85 7506 libname=conftest
cannam@85 7507 lt_save_allow_undefined_flag=$allow_undefined_flag
cannam@85 7508 allow_undefined_flag=
cannam@85 7509 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
cannam@85 7510 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
cannam@85 7511 ac_status=$?
cannam@85 7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 7513 (exit $ac_status); }
cannam@85 7514 then
cannam@85 7515 archive_cmds_need_lc=no
cannam@85 7516 else
cannam@85 7517 archive_cmds_need_lc=yes
cannam@85 7518 fi
cannam@85 7519 allow_undefined_flag=$lt_save_allow_undefined_flag
cannam@85 7520 else
cannam@85 7521 cat conftest.err 1>&5
cannam@85 7522 fi
cannam@85 7523 $rm conftest*
cannam@85 7524 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
cannam@85 7525 echo "${ECHO_T}$archive_cmds_need_lc" >&6
cannam@85 7526 ;;
cannam@85 7527 esac
cannam@85 7528 fi
cannam@85 7529 ;;
cannam@85 7530 esac
cannam@85 7531
cannam@85 7532 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
cannam@85 7533 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
cannam@85 7534 library_names_spec=
cannam@85 7535 libname_spec='lib$name'
cannam@85 7536 soname_spec=
cannam@85 7537 shrext=".so"
cannam@85 7538 postinstall_cmds=
cannam@85 7539 postuninstall_cmds=
cannam@85 7540 finish_cmds=
cannam@85 7541 finish_eval=
cannam@85 7542 shlibpath_var=
cannam@85 7543 shlibpath_overrides_runpath=unknown
cannam@85 7544 version_type=none
cannam@85 7545 dynamic_linker="$host_os ld.so"
cannam@85 7546 sys_lib_dlsearch_path_spec="/lib /usr/lib"
cannam@85 7547 if test "$GCC" = yes; then
cannam@85 7548 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
cannam@85 7549 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
cannam@85 7550 # if the path contains ";" then we assume it to be the separator
cannam@85 7551 # otherwise default to the standard path separator (i.e. ":") - it is
cannam@85 7552 # assumed that no part of a normal pathname contains ";" but that should
cannam@85 7553 # okay in the real world where ";" in dirpaths is itself problematic.
cannam@85 7554 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@85 7555 else
cannam@85 7556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@85 7557 fi
cannam@85 7558 else
cannam@85 7559 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
cannam@85 7560 fi
cannam@85 7561 need_lib_prefix=unknown
cannam@85 7562 hardcode_into_libs=no
cannam@85 7563
cannam@85 7564 # when you set need_version to no, make sure it does not cause -set_version
cannam@85 7565 # flags to be left without arguments
cannam@85 7566 need_version=unknown
cannam@85 7567
cannam@85 7568 case $host_os in
cannam@85 7569 aix3*)
cannam@85 7570 version_type=linux
cannam@85 7571 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
cannam@85 7572 shlibpath_var=LIBPATH
cannam@85 7573
cannam@85 7574 # AIX 3 has no versioning support, so we append a major version to the name.
cannam@85 7575 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7576 ;;
cannam@85 7577
cannam@85 7578 aix4* | aix5*)
cannam@85 7579 version_type=linux
cannam@85 7580 need_lib_prefix=no
cannam@85 7581 need_version=no
cannam@85 7582 hardcode_into_libs=yes
cannam@85 7583 if test "$host_cpu" = ia64; then
cannam@85 7584 # AIX 5 supports IA64
cannam@85 7585 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
cannam@85 7586 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7587 else
cannam@85 7588 # With GCC up to 2.95.x, collect2 would create an import file
cannam@85 7589 # for dependence libraries. The import file would start with
cannam@85 7590 # the line `#! .'. This would cause the generated library to
cannam@85 7591 # depend on `.', always an invalid library. This was fixed in
cannam@85 7592 # development snapshots of GCC prior to 3.0.
cannam@85 7593 case $host_os in
cannam@85 7594 aix4 | aix4.[01] | aix4.[01].*)
cannam@85 7595 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
cannam@85 7596 echo ' yes '
cannam@85 7597 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
cannam@85 7598 :
cannam@85 7599 else
cannam@85 7600 can_build_shared=no
cannam@85 7601 fi
cannam@85 7602 ;;
cannam@85 7603 esac
cannam@85 7604 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
cannam@85 7605 # soname into executable. Probably we can add versioning support to
cannam@85 7606 # collect2, so additional links can be useful in future.
cannam@85 7607 if test "$aix_use_runtimelinking" = yes; then
cannam@85 7608 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
cannam@85 7609 # instead of lib<name>.a to let people know that these are not
cannam@85 7610 # typical AIX shared libraries.
cannam@85 7611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 7612 else
cannam@85 7613 # We preserve .a as extension for shared libraries through AIX4.2
cannam@85 7614 # and later when we are not doing run time linking.
cannam@85 7615 library_names_spec='${libname}${release}.a $libname.a'
cannam@85 7616 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7617 fi
cannam@85 7618 shlibpath_var=LIBPATH
cannam@85 7619 fi
cannam@85 7620 ;;
cannam@85 7621
cannam@85 7622 amigaos*)
cannam@85 7623 library_names_spec='$libname.ixlibrary $libname.a'
cannam@85 7624 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cannam@85 7625 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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@85 7626 ;;
cannam@85 7627
cannam@85 7628 beos*)
cannam@85 7629 library_names_spec='${libname}${shared_ext}'
cannam@85 7630 dynamic_linker="$host_os ld.so"
cannam@85 7631 shlibpath_var=LIBRARY_PATH
cannam@85 7632 ;;
cannam@85 7633
cannam@85 7634 bsdi4*)
cannam@85 7635 version_type=linux
cannam@85 7636 need_version=no
cannam@85 7637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 7638 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7639 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
cannam@85 7640 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7641 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
cannam@85 7642 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
cannam@85 7643 # the default ld.so.conf also contains /usr/contrib/lib and
cannam@85 7644 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
cannam@85 7645 # libtool to hard-code these into programs
cannam@85 7646 ;;
cannam@85 7647
cannam@85 7648 cygwin* | mingw* | pw32*)
cannam@85 7649 version_type=windows
cannam@85 7650 shrext=".dll"
cannam@85 7651 need_version=no
cannam@85 7652 need_lib_prefix=no
cannam@85 7653
cannam@85 7654 case $GCC,$host_os in
cannam@85 7655 yes,cygwin* | yes,mingw* | yes,pw32*)
cannam@85 7656 library_names_spec='$libname.dll.a'
cannam@85 7657 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@85 7658 postinstall_cmds='base_file=`basename \${file}`~
cannam@85 7659 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
cannam@85 7660 dldir=$destdir/`dirname \$dlpath`~
cannam@85 7661 test -d \$dldir || mkdir -p \$dldir~
cannam@85 7662 $install_prog $dir/$dlname \$dldir/$dlname'
cannam@85 7663 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@85 7664 dlpath=$dir/\$dldll~
cannam@85 7665 $rm \$dlpath'
cannam@85 7666 shlibpath_overrides_runpath=yes
cannam@85 7667
cannam@85 7668 case $host_os in
cannam@85 7669 cygwin*)
cannam@85 7670 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cannam@85 7671 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 7672 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cannam@85 7673 ;;
cannam@85 7674 mingw*)
cannam@85 7675 # MinGW DLLs use traditional 'lib' prefix
cannam@85 7676 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 7677 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
cannam@85 7678 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
cannam@85 7679 # It is most probably a Windows format PATH printed by
cannam@85 7680 # mingw gcc, but we are running on Cygwin. Gcc prints its search
cannam@85 7681 # path with ; separators, and with drive letters. We can handle the
cannam@85 7682 # drive letters (cygwin fileutils understands them), so leave them,
cannam@85 7683 # especially as we might pass files found there to a mingw objdump,
cannam@85 7684 # which wouldn't understand a cygwinified path. Ahh.
cannam@85 7685 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@85 7686 else
cannam@85 7687 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@85 7688 fi
cannam@85 7689 ;;
cannam@85 7690 pw32*)
cannam@85 7691 # pw32 DLLs use 'pw' prefix rather than 'lib'
cannam@85 7692 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
cannam@85 7693 ;;
cannam@85 7694 esac
cannam@85 7695 ;;
cannam@85 7696
cannam@85 7697 *)
cannam@85 7698 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cannam@85 7699 ;;
cannam@85 7700 esac
cannam@85 7701 dynamic_linker='Win32 ld.exe'
cannam@85 7702 # FIXME: first we should search . and the directory the executable is in
cannam@85 7703 shlibpath_var=PATH
cannam@85 7704 ;;
cannam@85 7705
cannam@85 7706 darwin* | rhapsody*)
cannam@85 7707 dynamic_linker="$host_os dyld"
cannam@85 7708 version_type=darwin
cannam@85 7709 need_lib_prefix=no
cannam@85 7710 need_version=no
cannam@85 7711 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
cannam@85 7712 soname_spec='${libname}${release}${major}$shared_ext'
cannam@85 7713 shlibpath_overrides_runpath=yes
cannam@85 7714 shlibpath_var=DYLD_LIBRARY_PATH
cannam@85 7715 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
cannam@85 7716 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
cannam@85 7717 if test "$GCC" = yes; then
cannam@85 7718 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
cannam@85 7719 else
cannam@85 7720 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
cannam@85 7721 fi
cannam@85 7722 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
cannam@85 7723 ;;
cannam@85 7724
cannam@85 7725 dgux*)
cannam@85 7726 version_type=linux
cannam@85 7727 need_lib_prefix=no
cannam@85 7728 need_version=no
cannam@85 7729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
cannam@85 7730 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7731 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7732 ;;
cannam@85 7733
cannam@85 7734 freebsd1*)
cannam@85 7735 dynamic_linker=no
cannam@85 7736 ;;
cannam@85 7737
cannam@85 7738 kfreebsd*-gnu)
cannam@85 7739 version_type=linux
cannam@85 7740 need_lib_prefix=no
cannam@85 7741 need_version=no
cannam@85 7742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 7743 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7744 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7745 shlibpath_overrides_runpath=no
cannam@85 7746 hardcode_into_libs=yes
cannam@85 7747 dynamic_linker='GNU ld.so'
cannam@85 7748 ;;
cannam@85 7749
cannam@85 7750 freebsd*)
cannam@85 7751 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
cannam@85 7752 version_type=freebsd-$objformat
cannam@85 7753 case $version_type in
cannam@85 7754 freebsd-elf*)
cannam@85 7755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@85 7756 need_version=no
cannam@85 7757 need_lib_prefix=no
cannam@85 7758 ;;
cannam@85 7759 freebsd-*)
cannam@85 7760 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
cannam@85 7761 need_version=yes
cannam@85 7762 ;;
cannam@85 7763 esac
cannam@85 7764 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7765 case $host_os in
cannam@85 7766 freebsd2*)
cannam@85 7767 shlibpath_overrides_runpath=yes
cannam@85 7768 ;;
cannam@85 7769 freebsd3.01* | freebsdelf3.01*)
cannam@85 7770 shlibpath_overrides_runpath=yes
cannam@85 7771 hardcode_into_libs=yes
cannam@85 7772 ;;
cannam@85 7773 *) # from 3.2 on
cannam@85 7774 shlibpath_overrides_runpath=no
cannam@85 7775 hardcode_into_libs=yes
cannam@85 7776 ;;
cannam@85 7777 esac
cannam@85 7778 ;;
cannam@85 7779
cannam@85 7780 gnu*)
cannam@85 7781 version_type=linux
cannam@85 7782 need_lib_prefix=no
cannam@85 7783 need_version=no
cannam@85 7784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
cannam@85 7785 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7786 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7787 hardcode_into_libs=yes
cannam@85 7788 ;;
cannam@85 7789
cannam@85 7790 hpux9* | hpux10* | hpux11*)
cannam@85 7791 # Give a soname corresponding to the major version so that dld.sl refuses to
cannam@85 7792 # link against other versions.
cannam@85 7793 version_type=sunos
cannam@85 7794 need_lib_prefix=no
cannam@85 7795 need_version=no
cannam@85 7796 case "$host_cpu" in
cannam@85 7797 ia64*)
cannam@85 7798 shrext='.so'
cannam@85 7799 hardcode_into_libs=yes
cannam@85 7800 dynamic_linker="$host_os dld.so"
cannam@85 7801 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@85 7803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 7804 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7805 if test "X$HPUX_IA64_MODE" = X32; then
cannam@85 7806 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
cannam@85 7807 else
cannam@85 7808 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
cannam@85 7809 fi
cannam@85 7810 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@85 7811 ;;
cannam@85 7812 hppa*64*)
cannam@85 7813 shrext='.sl'
cannam@85 7814 hardcode_into_libs=yes
cannam@85 7815 dynamic_linker="$host_os dld.sl"
cannam@85 7816 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
cannam@85 7817 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@85 7818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 7819 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7820 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
cannam@85 7821 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@85 7822 ;;
cannam@85 7823 *)
cannam@85 7824 shrext='.sl'
cannam@85 7825 dynamic_linker="$host_os dld.sl"
cannam@85 7826 shlibpath_var=SHLIB_PATH
cannam@85 7827 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cannam@85 7828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 7829 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7830 ;;
cannam@85 7831 esac
cannam@85 7832 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cannam@85 7833 postinstall_cmds='chmod 555 $lib'
cannam@85 7834 ;;
cannam@85 7835
cannam@85 7836 irix5* | irix6* | nonstopux*)
cannam@85 7837 case $host_os in
cannam@85 7838 nonstopux*) version_type=nonstopux ;;
cannam@85 7839 *)
cannam@85 7840 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@85 7841 version_type=linux
cannam@85 7842 else
cannam@85 7843 version_type=irix
cannam@85 7844 fi ;;
cannam@85 7845 esac
cannam@85 7846 need_lib_prefix=no
cannam@85 7847 need_version=no
cannam@85 7848 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@85 7850 case $host_os in
cannam@85 7851 irix5* | nonstopux*)
cannam@85 7852 libsuff= shlibsuff=
cannam@85 7853 ;;
cannam@85 7854 *)
cannam@85 7855 case $LD in # libtool.m4 will add one of these switches to LD
cannam@85 7856 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
cannam@85 7857 libsuff= shlibsuff= libmagic=32-bit;;
cannam@85 7858 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
cannam@85 7859 libsuff=32 shlibsuff=N32 libmagic=N32;;
cannam@85 7860 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
cannam@85 7861 libsuff=64 shlibsuff=64 libmagic=64-bit;;
cannam@85 7862 *) libsuff= shlibsuff= libmagic=never-match;;
cannam@85 7863 esac
cannam@85 7864 ;;
cannam@85 7865 esac
cannam@85 7866 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
cannam@85 7867 shlibpath_overrides_runpath=no
cannam@85 7868 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
cannam@85 7869 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
cannam@85 7870 hardcode_into_libs=yes
cannam@85 7871 ;;
cannam@85 7872
cannam@85 7873 # No shared lib support for Linux oldld, aout, or coff.
cannam@85 7874 linux*oldld* | linux*aout* | linux*coff*)
cannam@85 7875 dynamic_linker=no
cannam@85 7876 ;;
cannam@85 7877
cannam@85 7878 # This must be Linux ELF.
cannam@85 7879 linux*)
cannam@85 7880 version_type=linux
cannam@85 7881 need_lib_prefix=no
cannam@85 7882 need_version=no
cannam@85 7883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 7884 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
cannam@85 7886 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7887 shlibpath_overrides_runpath=no
cannam@85 7888 # This implies no fast_install, which is unacceptable.
cannam@85 7889 # Some rework will be needed to allow for fast_install
cannam@85 7890 # before this can be enabled.
cannam@85 7891 hardcode_into_libs=yes
cannam@85 7892
cannam@85 7893 # Append ld.so.conf contents to the search path
cannam@85 7894 if test -f /etc/ld.so.conf; then
cannam@85 7895 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
cannam@85 7896 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
cannam@85 7897 fi
cannam@85 7898
cannam@85 7899 # We used to test for /lib/ld.so.1 and disable shared libraries on
cannam@85 7900 # powerpc, because MkLinux only supported shared libraries with the
cannam@85 7901 # GNU dynamic linker. Since this was broken with cross compilers,
cannam@85 7902 # most powerpc-linux boxes support dynamic linking these days and
cannam@85 7903 # people can always --disable-shared, the test was removed, and we
cannam@85 7904 # assume the GNU/Linux dynamic linker is in use.
cannam@85 7905 dynamic_linker='GNU/Linux ld.so'
cannam@85 7906 ;;
cannam@85 7907
cannam@85 7908 knetbsd*-gnu)
cannam@85 7909 version_type=linux
cannam@85 7910 need_lib_prefix=no
cannam@85 7911 need_version=no
cannam@85 7912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 7913 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7914 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7915 shlibpath_overrides_runpath=no
cannam@85 7916 hardcode_into_libs=yes
cannam@85 7917 dynamic_linker='GNU ld.so'
cannam@85 7918 ;;
cannam@85 7919
cannam@85 7920 netbsd*)
cannam@85 7921 version_type=sunos
cannam@85 7922 need_lib_prefix=no
cannam@85 7923 need_version=no
cannam@85 7924 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cannam@85 7925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 7926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@85 7927 dynamic_linker='NetBSD (a.out) ld.so'
cannam@85 7928 else
cannam@85 7929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 7930 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7931 dynamic_linker='NetBSD ld.elf_so'
cannam@85 7932 fi
cannam@85 7933 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7934 shlibpath_overrides_runpath=yes
cannam@85 7935 hardcode_into_libs=yes
cannam@85 7936 ;;
cannam@85 7937
cannam@85 7938 newsos6)
cannam@85 7939 version_type=linux
cannam@85 7940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 7941 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7942 shlibpath_overrides_runpath=yes
cannam@85 7943 ;;
cannam@85 7944
cannam@85 7945 nto-qnx*)
cannam@85 7946 version_type=linux
cannam@85 7947 need_lib_prefix=no
cannam@85 7948 need_version=no
cannam@85 7949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 7950 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7951 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7952 shlibpath_overrides_runpath=yes
cannam@85 7953 ;;
cannam@85 7954
cannam@85 7955 openbsd*)
cannam@85 7956 version_type=sunos
cannam@85 7957 need_lib_prefix=no
cannam@85 7958 need_version=yes
cannam@85 7959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 7960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@85 7961 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7962 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@85 7963 case $host_os in
cannam@85 7964 openbsd2.[89] | openbsd2.[89].*)
cannam@85 7965 shlibpath_overrides_runpath=no
cannam@85 7966 ;;
cannam@85 7967 *)
cannam@85 7968 shlibpath_overrides_runpath=yes
cannam@85 7969 ;;
cannam@85 7970 esac
cannam@85 7971 else
cannam@85 7972 shlibpath_overrides_runpath=yes
cannam@85 7973 fi
cannam@85 7974 ;;
cannam@85 7975
cannam@85 7976 os2*)
cannam@85 7977 libname_spec='$name'
cannam@85 7978 shrext=".dll"
cannam@85 7979 need_lib_prefix=no
cannam@85 7980 library_names_spec='$libname${shared_ext} $libname.a'
cannam@85 7981 dynamic_linker='OS/2 ld.exe'
cannam@85 7982 shlibpath_var=LIBPATH
cannam@85 7983 ;;
cannam@85 7984
cannam@85 7985 osf3* | osf4* | osf5*)
cannam@85 7986 version_type=osf
cannam@85 7987 need_lib_prefix=no
cannam@85 7988 need_version=no
cannam@85 7989 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 7991 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7992 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cannam@85 7993 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
cannam@85 7994 ;;
cannam@85 7995
cannam@85 7996 sco3.2v5*)
cannam@85 7997 version_type=osf
cannam@85 7998 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 8000 shlibpath_var=LD_LIBRARY_PATH
cannam@85 8001 ;;
cannam@85 8002
cannam@85 8003 solaris*)
cannam@85 8004 version_type=linux
cannam@85 8005 need_lib_prefix=no
cannam@85 8006 need_version=no
cannam@85 8007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 8008 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 8009 shlibpath_var=LD_LIBRARY_PATH
cannam@85 8010 shlibpath_overrides_runpath=yes
cannam@85 8011 hardcode_into_libs=yes
cannam@85 8012 # ldd complains unless libraries are executable
cannam@85 8013 postinstall_cmds='chmod +x $lib'
cannam@85 8014 ;;
cannam@85 8015
cannam@85 8016 sunos4*)
cannam@85 8017 version_type=sunos
cannam@85 8018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 8019 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
cannam@85 8020 shlibpath_var=LD_LIBRARY_PATH
cannam@85 8021 shlibpath_overrides_runpath=yes
cannam@85 8022 if test "$with_gnu_ld" = yes; then
cannam@85 8023 need_lib_prefix=no
cannam@85 8024 fi
cannam@85 8025 need_version=yes
cannam@85 8026 ;;
cannam@85 8027
cannam@85 8028 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@85 8029 version_type=linux
cannam@85 8030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 8031 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 8032 shlibpath_var=LD_LIBRARY_PATH
cannam@85 8033 case $host_vendor in
cannam@85 8034 sni)
cannam@85 8035 shlibpath_overrides_runpath=no
cannam@85 8036 need_lib_prefix=no
cannam@85 8037 export_dynamic_flag_spec='${wl}-Blargedynsym'
cannam@85 8038 runpath_var=LD_RUN_PATH
cannam@85 8039 ;;
cannam@85 8040 siemens)
cannam@85 8041 need_lib_prefix=no
cannam@85 8042 ;;
cannam@85 8043 motorola)
cannam@85 8044 need_lib_prefix=no
cannam@85 8045 need_version=no
cannam@85 8046 shlibpath_overrides_runpath=no
cannam@85 8047 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
cannam@85 8048 ;;
cannam@85 8049 esac
cannam@85 8050 ;;
cannam@85 8051
cannam@85 8052 sysv4*MP*)
cannam@85 8053 if test -d /usr/nec ;then
cannam@85 8054 version_type=linux
cannam@85 8055 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
cannam@85 8056 soname_spec='$libname${shared_ext}.$major'
cannam@85 8057 shlibpath_var=LD_LIBRARY_PATH
cannam@85 8058 fi
cannam@85 8059 ;;
cannam@85 8060
cannam@85 8061 uts4*)
cannam@85 8062 version_type=linux
cannam@85 8063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 8064 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 8065 shlibpath_var=LD_LIBRARY_PATH
cannam@85 8066 ;;
cannam@85 8067
cannam@85 8068 *)
cannam@85 8069 dynamic_linker=no
cannam@85 8070 ;;
cannam@85 8071 esac
cannam@85 8072 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
cannam@85 8073 echo "${ECHO_T}$dynamic_linker" >&6
cannam@85 8074 test "$dynamic_linker" = no && can_build_shared=no
cannam@85 8075
cannam@85 8076 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
cannam@85 8077 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
cannam@85 8078 hardcode_action=
cannam@85 8079 if test -n "$hardcode_libdir_flag_spec" || \
cannam@85 8080 test -n "$runpath_var " || \
cannam@85 8081 test "X$hardcode_automatic"="Xyes" ; then
cannam@85 8082
cannam@85 8083 # We can hardcode non-existant directories.
cannam@85 8084 if test "$hardcode_direct" != no &&
cannam@85 8085 # If the only mechanism to avoid hardcoding is shlibpath_var, we
cannam@85 8086 # have to relink, otherwise we might link with an installed library
cannam@85 8087 # when we should be linking with a yet-to-be-installed one
cannam@85 8088 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
cannam@85 8089 test "$hardcode_minus_L" != no; then
cannam@85 8090 # Linking always hardcodes the temporary library directory.
cannam@85 8091 hardcode_action=relink
cannam@85 8092 else
cannam@85 8093 # We can link without hardcoding, and we can hardcode nonexisting dirs.
cannam@85 8094 hardcode_action=immediate
cannam@85 8095 fi
cannam@85 8096 else
cannam@85 8097 # We cannot hardcode anything, or else we can only hardcode existing
cannam@85 8098 # directories.
cannam@85 8099 hardcode_action=unsupported
cannam@85 8100 fi
cannam@85 8101 echo "$as_me:$LINENO: result: $hardcode_action" >&5
cannam@85 8102 echo "${ECHO_T}$hardcode_action" >&6
cannam@85 8103
cannam@85 8104 if test "$hardcode_action" = relink; then
cannam@85 8105 # Fast installation is not supported
cannam@85 8106 enable_fast_install=no
cannam@85 8107 elif test "$shlibpath_overrides_runpath" = yes ||
cannam@85 8108 test "$enable_shared" = no; then
cannam@85 8109 # Fast installation is not necessary
cannam@85 8110 enable_fast_install=needless
cannam@85 8111 fi
cannam@85 8112
cannam@85 8113 striplib=
cannam@85 8114 old_striplib=
cannam@85 8115 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
cannam@85 8116 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
cannam@85 8117 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
cannam@85 8118 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
cannam@85 8119 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cannam@85 8120 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 8121 echo "${ECHO_T}yes" >&6
cannam@85 8122 else
cannam@85 8123 # FIXME - insert some real tests, host_os isn't really good enough
cannam@85 8124 case $host_os in
cannam@85 8125 darwin*)
cannam@85 8126 if test -n "$STRIP" ; then
cannam@85 8127 striplib="$STRIP -x"
cannam@85 8128 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 8129 echo "${ECHO_T}yes" >&6
cannam@85 8130 else
cannam@85 8131 echo "$as_me:$LINENO: result: no" >&5
cannam@85 8132 echo "${ECHO_T}no" >&6
cannam@85 8133 fi
cannam@85 8134 ;;
cannam@85 8135 *)
cannam@85 8136 echo "$as_me:$LINENO: result: no" >&5
cannam@85 8137 echo "${ECHO_T}no" >&6
cannam@85 8138 ;;
cannam@85 8139 esac
cannam@85 8140 fi
cannam@85 8141
cannam@85 8142 if test "x$enable_dlopen" != xyes; then
cannam@85 8143 enable_dlopen=unknown
cannam@85 8144 enable_dlopen_self=unknown
cannam@85 8145 enable_dlopen_self_static=unknown
cannam@85 8146 else
cannam@85 8147 lt_cv_dlopen=no
cannam@85 8148 lt_cv_dlopen_libs=
cannam@85 8149
cannam@85 8150 case $host_os in
cannam@85 8151 beos*)
cannam@85 8152 lt_cv_dlopen="load_add_on"
cannam@85 8153 lt_cv_dlopen_libs=
cannam@85 8154 lt_cv_dlopen_self=yes
cannam@85 8155 ;;
cannam@85 8156
cannam@85 8157 mingw* | pw32*)
cannam@85 8158 lt_cv_dlopen="LoadLibrary"
cannam@85 8159 lt_cv_dlopen_libs=
cannam@85 8160 ;;
cannam@85 8161
cannam@85 8162 cygwin*)
cannam@85 8163 lt_cv_dlopen="dlopen"
cannam@85 8164 lt_cv_dlopen_libs=
cannam@85 8165 ;;
cannam@85 8166
cannam@85 8167 darwin*)
cannam@85 8168 # if libdl is installed we need to link against it
cannam@85 8169 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
cannam@85 8170 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
cannam@85 8171 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
cannam@85 8172 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 8173 else
cannam@85 8174 ac_check_lib_save_LIBS=$LIBS
cannam@85 8175 LIBS="-ldl $LIBS"
cannam@85 8176 cat >conftest.$ac_ext <<_ACEOF
cannam@85 8177 /* confdefs.h. */
cannam@85 8178 _ACEOF
cannam@85 8179 cat confdefs.h >>conftest.$ac_ext
cannam@85 8180 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 8181 /* end confdefs.h. */
cannam@85 8182
cannam@85 8183 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 8184 #ifdef __cplusplus
cannam@85 8185 extern "C"
cannam@85 8186 #endif
cannam@85 8187 /* We use char because int might match the return type of a gcc2
cannam@85 8188 builtin and then its argument prototype would still apply. */
cannam@85 8189 char dlopen ();
cannam@85 8190 int
cannam@85 8191 main ()
cannam@85 8192 {
cannam@85 8193 dlopen ();
cannam@85 8194 ;
cannam@85 8195 return 0;
cannam@85 8196 }
cannam@85 8197 _ACEOF
cannam@85 8198 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 8199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 8200 (eval $ac_link) 2>conftest.er1
cannam@85 8201 ac_status=$?
cannam@85 8202 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 8203 rm -f conftest.er1
cannam@85 8204 cat conftest.err >&5
cannam@85 8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8206 (exit $ac_status); } &&
cannam@85 8207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 8208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8209 (eval $ac_try) 2>&5
cannam@85 8210 ac_status=$?
cannam@85 8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8212 (exit $ac_status); }; } &&
cannam@85 8213 { ac_try='test -s conftest$ac_exeext'
cannam@85 8214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8215 (eval $ac_try) 2>&5
cannam@85 8216 ac_status=$?
cannam@85 8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8218 (exit $ac_status); }; }; then
cannam@85 8219 ac_cv_lib_dl_dlopen=yes
cannam@85 8220 else
cannam@85 8221 echo "$as_me: failed program was:" >&5
cannam@85 8222 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 8223
cannam@85 8224 ac_cv_lib_dl_dlopen=no
cannam@85 8225 fi
cannam@85 8226 rm -f conftest.err conftest.$ac_objext \
cannam@85 8227 conftest$ac_exeext conftest.$ac_ext
cannam@85 8228 LIBS=$ac_check_lib_save_LIBS
cannam@85 8229 fi
cannam@85 8230 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
cannam@85 8231 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
cannam@85 8232 if test $ac_cv_lib_dl_dlopen = yes; then
cannam@85 8233 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@85 8234 else
cannam@85 8235
cannam@85 8236 lt_cv_dlopen="dyld"
cannam@85 8237 lt_cv_dlopen_libs=
cannam@85 8238 lt_cv_dlopen_self=yes
cannam@85 8239
cannam@85 8240 fi
cannam@85 8241
cannam@85 8242 ;;
cannam@85 8243
cannam@85 8244 *)
cannam@85 8245 echo "$as_me:$LINENO: checking for shl_load" >&5
cannam@85 8246 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
cannam@85 8247 if test "${ac_cv_func_shl_load+set}" = set; then
cannam@85 8248 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 8249 else
cannam@85 8250 cat >conftest.$ac_ext <<_ACEOF
cannam@85 8251 /* confdefs.h. */
cannam@85 8252 _ACEOF
cannam@85 8253 cat confdefs.h >>conftest.$ac_ext
cannam@85 8254 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 8255 /* end confdefs.h. */
cannam@85 8256 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
cannam@85 8257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
cannam@85 8258 #define shl_load innocuous_shl_load
cannam@85 8259
cannam@85 8260 /* System header to define __stub macros and hopefully few prototypes,
cannam@85 8261 which can conflict with char shl_load (); below.
cannam@85 8262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 8263 <limits.h> exists even on freestanding compilers. */
cannam@85 8264
cannam@85 8265 #ifdef __STDC__
cannam@85 8266 # include <limits.h>
cannam@85 8267 #else
cannam@85 8268 # include <assert.h>
cannam@85 8269 #endif
cannam@85 8270
cannam@85 8271 #undef shl_load
cannam@85 8272
cannam@85 8273 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 8274 #ifdef __cplusplus
cannam@85 8275 extern "C"
cannam@85 8276 {
cannam@85 8277 #endif
cannam@85 8278 /* We use char because int might match the return type of a gcc2
cannam@85 8279 builtin and then its argument prototype would still apply. */
cannam@85 8280 char shl_load ();
cannam@85 8281 /* The GNU C library defines this for functions which it implements
cannam@85 8282 to always fail with ENOSYS. Some functions are actually named
cannam@85 8283 something starting with __ and the normal name is an alias. */
cannam@85 8284 #if defined (__stub_shl_load) || defined (__stub___shl_load)
cannam@85 8285 choke me
cannam@85 8286 #else
cannam@85 8287 char (*f) () = shl_load;
cannam@85 8288 #endif
cannam@85 8289 #ifdef __cplusplus
cannam@85 8290 }
cannam@85 8291 #endif
cannam@85 8292
cannam@85 8293 int
cannam@85 8294 main ()
cannam@85 8295 {
cannam@85 8296 return f != shl_load;
cannam@85 8297 ;
cannam@85 8298 return 0;
cannam@85 8299 }
cannam@85 8300 _ACEOF
cannam@85 8301 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 8302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 8303 (eval $ac_link) 2>conftest.er1
cannam@85 8304 ac_status=$?
cannam@85 8305 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 8306 rm -f conftest.er1
cannam@85 8307 cat conftest.err >&5
cannam@85 8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8309 (exit $ac_status); } &&
cannam@85 8310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8312 (eval $ac_try) 2>&5
cannam@85 8313 ac_status=$?
cannam@85 8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8315 (exit $ac_status); }; } &&
cannam@85 8316 { ac_try='test -s conftest$ac_exeext'
cannam@85 8317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8318 (eval $ac_try) 2>&5
cannam@85 8319 ac_status=$?
cannam@85 8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8321 (exit $ac_status); }; }; then
cannam@85 8322 ac_cv_func_shl_load=yes
cannam@85 8323 else
cannam@85 8324 echo "$as_me: failed program was:" >&5
cannam@85 8325 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 8326
cannam@85 8327 ac_cv_func_shl_load=no
cannam@85 8328 fi
cannam@85 8329 rm -f conftest.err conftest.$ac_objext \
cannam@85 8330 conftest$ac_exeext conftest.$ac_ext
cannam@85 8331 fi
cannam@85 8332 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
cannam@85 8333 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
cannam@85 8334 if test $ac_cv_func_shl_load = yes; then
cannam@85 8335 lt_cv_dlopen="shl_load"
cannam@85 8336 else
cannam@85 8337 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
cannam@85 8338 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
cannam@85 8339 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
cannam@85 8340 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 8341 else
cannam@85 8342 ac_check_lib_save_LIBS=$LIBS
cannam@85 8343 LIBS="-ldld $LIBS"
cannam@85 8344 cat >conftest.$ac_ext <<_ACEOF
cannam@85 8345 /* confdefs.h. */
cannam@85 8346 _ACEOF
cannam@85 8347 cat confdefs.h >>conftest.$ac_ext
cannam@85 8348 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 8349 /* end confdefs.h. */
cannam@85 8350
cannam@85 8351 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 8352 #ifdef __cplusplus
cannam@85 8353 extern "C"
cannam@85 8354 #endif
cannam@85 8355 /* We use char because int might match the return type of a gcc2
cannam@85 8356 builtin and then its argument prototype would still apply. */
cannam@85 8357 char shl_load ();
cannam@85 8358 int
cannam@85 8359 main ()
cannam@85 8360 {
cannam@85 8361 shl_load ();
cannam@85 8362 ;
cannam@85 8363 return 0;
cannam@85 8364 }
cannam@85 8365 _ACEOF
cannam@85 8366 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 8367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 8368 (eval $ac_link) 2>conftest.er1
cannam@85 8369 ac_status=$?
cannam@85 8370 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 8371 rm -f conftest.er1
cannam@85 8372 cat conftest.err >&5
cannam@85 8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8374 (exit $ac_status); } &&
cannam@85 8375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8377 (eval $ac_try) 2>&5
cannam@85 8378 ac_status=$?
cannam@85 8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8380 (exit $ac_status); }; } &&
cannam@85 8381 { ac_try='test -s conftest$ac_exeext'
cannam@85 8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8383 (eval $ac_try) 2>&5
cannam@85 8384 ac_status=$?
cannam@85 8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8386 (exit $ac_status); }; }; then
cannam@85 8387 ac_cv_lib_dld_shl_load=yes
cannam@85 8388 else
cannam@85 8389 echo "$as_me: failed program was:" >&5
cannam@85 8390 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 8391
cannam@85 8392 ac_cv_lib_dld_shl_load=no
cannam@85 8393 fi
cannam@85 8394 rm -f conftest.err conftest.$ac_objext \
cannam@85 8395 conftest$ac_exeext conftest.$ac_ext
cannam@85 8396 LIBS=$ac_check_lib_save_LIBS
cannam@85 8397 fi
cannam@85 8398 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
cannam@85 8399 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
cannam@85 8400 if test $ac_cv_lib_dld_shl_load = yes; then
cannam@85 8401 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
cannam@85 8402 else
cannam@85 8403 echo "$as_me:$LINENO: checking for dlopen" >&5
cannam@85 8404 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
cannam@85 8405 if test "${ac_cv_func_dlopen+set}" = set; then
cannam@85 8406 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 8407 else
cannam@85 8408 cat >conftest.$ac_ext <<_ACEOF
cannam@85 8409 /* confdefs.h. */
cannam@85 8410 _ACEOF
cannam@85 8411 cat confdefs.h >>conftest.$ac_ext
cannam@85 8412 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 8413 /* end confdefs.h. */
cannam@85 8414 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
cannam@85 8415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
cannam@85 8416 #define dlopen innocuous_dlopen
cannam@85 8417
cannam@85 8418 /* System header to define __stub macros and hopefully few prototypes,
cannam@85 8419 which can conflict with char dlopen (); below.
cannam@85 8420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 8421 <limits.h> exists even on freestanding compilers. */
cannam@85 8422
cannam@85 8423 #ifdef __STDC__
cannam@85 8424 # include <limits.h>
cannam@85 8425 #else
cannam@85 8426 # include <assert.h>
cannam@85 8427 #endif
cannam@85 8428
cannam@85 8429 #undef dlopen
cannam@85 8430
cannam@85 8431 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 8432 #ifdef __cplusplus
cannam@85 8433 extern "C"
cannam@85 8434 {
cannam@85 8435 #endif
cannam@85 8436 /* We use char because int might match the return type of a gcc2
cannam@85 8437 builtin and then its argument prototype would still apply. */
cannam@85 8438 char dlopen ();
cannam@85 8439 /* The GNU C library defines this for functions which it implements
cannam@85 8440 to always fail with ENOSYS. Some functions are actually named
cannam@85 8441 something starting with __ and the normal name is an alias. */
cannam@85 8442 #if defined (__stub_dlopen) || defined (__stub___dlopen)
cannam@85 8443 choke me
cannam@85 8444 #else
cannam@85 8445 char (*f) () = dlopen;
cannam@85 8446 #endif
cannam@85 8447 #ifdef __cplusplus
cannam@85 8448 }
cannam@85 8449 #endif
cannam@85 8450
cannam@85 8451 int
cannam@85 8452 main ()
cannam@85 8453 {
cannam@85 8454 return f != dlopen;
cannam@85 8455 ;
cannam@85 8456 return 0;
cannam@85 8457 }
cannam@85 8458 _ACEOF
cannam@85 8459 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 8460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 8461 (eval $ac_link) 2>conftest.er1
cannam@85 8462 ac_status=$?
cannam@85 8463 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 8464 rm -f conftest.er1
cannam@85 8465 cat conftest.err >&5
cannam@85 8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8467 (exit $ac_status); } &&
cannam@85 8468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8470 (eval $ac_try) 2>&5
cannam@85 8471 ac_status=$?
cannam@85 8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8473 (exit $ac_status); }; } &&
cannam@85 8474 { ac_try='test -s conftest$ac_exeext'
cannam@85 8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8476 (eval $ac_try) 2>&5
cannam@85 8477 ac_status=$?
cannam@85 8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8479 (exit $ac_status); }; }; then
cannam@85 8480 ac_cv_func_dlopen=yes
cannam@85 8481 else
cannam@85 8482 echo "$as_me: failed program was:" >&5
cannam@85 8483 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 8484
cannam@85 8485 ac_cv_func_dlopen=no
cannam@85 8486 fi
cannam@85 8487 rm -f conftest.err conftest.$ac_objext \
cannam@85 8488 conftest$ac_exeext conftest.$ac_ext
cannam@85 8489 fi
cannam@85 8490 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
cannam@85 8491 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
cannam@85 8492 if test $ac_cv_func_dlopen = yes; then
cannam@85 8493 lt_cv_dlopen="dlopen"
cannam@85 8494 else
cannam@85 8495 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
cannam@85 8496 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
cannam@85 8497 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
cannam@85 8498 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 8499 else
cannam@85 8500 ac_check_lib_save_LIBS=$LIBS
cannam@85 8501 LIBS="-ldl $LIBS"
cannam@85 8502 cat >conftest.$ac_ext <<_ACEOF
cannam@85 8503 /* confdefs.h. */
cannam@85 8504 _ACEOF
cannam@85 8505 cat confdefs.h >>conftest.$ac_ext
cannam@85 8506 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 8507 /* end confdefs.h. */
cannam@85 8508
cannam@85 8509 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 8510 #ifdef __cplusplus
cannam@85 8511 extern "C"
cannam@85 8512 #endif
cannam@85 8513 /* We use char because int might match the return type of a gcc2
cannam@85 8514 builtin and then its argument prototype would still apply. */
cannam@85 8515 char dlopen ();
cannam@85 8516 int
cannam@85 8517 main ()
cannam@85 8518 {
cannam@85 8519 dlopen ();
cannam@85 8520 ;
cannam@85 8521 return 0;
cannam@85 8522 }
cannam@85 8523 _ACEOF
cannam@85 8524 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 8525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 8526 (eval $ac_link) 2>conftest.er1
cannam@85 8527 ac_status=$?
cannam@85 8528 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 8529 rm -f conftest.er1
cannam@85 8530 cat conftest.err >&5
cannam@85 8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8532 (exit $ac_status); } &&
cannam@85 8533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8535 (eval $ac_try) 2>&5
cannam@85 8536 ac_status=$?
cannam@85 8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8538 (exit $ac_status); }; } &&
cannam@85 8539 { ac_try='test -s conftest$ac_exeext'
cannam@85 8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8541 (eval $ac_try) 2>&5
cannam@85 8542 ac_status=$?
cannam@85 8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8544 (exit $ac_status); }; }; then
cannam@85 8545 ac_cv_lib_dl_dlopen=yes
cannam@85 8546 else
cannam@85 8547 echo "$as_me: failed program was:" >&5
cannam@85 8548 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 8549
cannam@85 8550 ac_cv_lib_dl_dlopen=no
cannam@85 8551 fi
cannam@85 8552 rm -f conftest.err conftest.$ac_objext \
cannam@85 8553 conftest$ac_exeext conftest.$ac_ext
cannam@85 8554 LIBS=$ac_check_lib_save_LIBS
cannam@85 8555 fi
cannam@85 8556 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
cannam@85 8557 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
cannam@85 8558 if test $ac_cv_lib_dl_dlopen = yes; then
cannam@85 8559 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@85 8560 else
cannam@85 8561 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
cannam@85 8562 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
cannam@85 8563 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
cannam@85 8564 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 8565 else
cannam@85 8566 ac_check_lib_save_LIBS=$LIBS
cannam@85 8567 LIBS="-lsvld $LIBS"
cannam@85 8568 cat >conftest.$ac_ext <<_ACEOF
cannam@85 8569 /* confdefs.h. */
cannam@85 8570 _ACEOF
cannam@85 8571 cat confdefs.h >>conftest.$ac_ext
cannam@85 8572 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 8573 /* end confdefs.h. */
cannam@85 8574
cannam@85 8575 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 8576 #ifdef __cplusplus
cannam@85 8577 extern "C"
cannam@85 8578 #endif
cannam@85 8579 /* We use char because int might match the return type of a gcc2
cannam@85 8580 builtin and then its argument prototype would still apply. */
cannam@85 8581 char dlopen ();
cannam@85 8582 int
cannam@85 8583 main ()
cannam@85 8584 {
cannam@85 8585 dlopen ();
cannam@85 8586 ;
cannam@85 8587 return 0;
cannam@85 8588 }
cannam@85 8589 _ACEOF
cannam@85 8590 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 8591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 8592 (eval $ac_link) 2>conftest.er1
cannam@85 8593 ac_status=$?
cannam@85 8594 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 8595 rm -f conftest.er1
cannam@85 8596 cat conftest.err >&5
cannam@85 8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8598 (exit $ac_status); } &&
cannam@85 8599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 8600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8601 (eval $ac_try) 2>&5
cannam@85 8602 ac_status=$?
cannam@85 8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8604 (exit $ac_status); }; } &&
cannam@85 8605 { ac_try='test -s conftest$ac_exeext'
cannam@85 8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8607 (eval $ac_try) 2>&5
cannam@85 8608 ac_status=$?
cannam@85 8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8610 (exit $ac_status); }; }; then
cannam@85 8611 ac_cv_lib_svld_dlopen=yes
cannam@85 8612 else
cannam@85 8613 echo "$as_me: failed program was:" >&5
cannam@85 8614 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 8615
cannam@85 8616 ac_cv_lib_svld_dlopen=no
cannam@85 8617 fi
cannam@85 8618 rm -f conftest.err conftest.$ac_objext \
cannam@85 8619 conftest$ac_exeext conftest.$ac_ext
cannam@85 8620 LIBS=$ac_check_lib_save_LIBS
cannam@85 8621 fi
cannam@85 8622 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
cannam@85 8623 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
cannam@85 8624 if test $ac_cv_lib_svld_dlopen = yes; then
cannam@85 8625 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
cannam@85 8626 else
cannam@85 8627 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
cannam@85 8628 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
cannam@85 8629 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
cannam@85 8630 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 8631 else
cannam@85 8632 ac_check_lib_save_LIBS=$LIBS
cannam@85 8633 LIBS="-ldld $LIBS"
cannam@85 8634 cat >conftest.$ac_ext <<_ACEOF
cannam@85 8635 /* confdefs.h. */
cannam@85 8636 _ACEOF
cannam@85 8637 cat confdefs.h >>conftest.$ac_ext
cannam@85 8638 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 8639 /* end confdefs.h. */
cannam@85 8640
cannam@85 8641 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 8642 #ifdef __cplusplus
cannam@85 8643 extern "C"
cannam@85 8644 #endif
cannam@85 8645 /* We use char because int might match the return type of a gcc2
cannam@85 8646 builtin and then its argument prototype would still apply. */
cannam@85 8647 char dld_link ();
cannam@85 8648 int
cannam@85 8649 main ()
cannam@85 8650 {
cannam@85 8651 dld_link ();
cannam@85 8652 ;
cannam@85 8653 return 0;
cannam@85 8654 }
cannam@85 8655 _ACEOF
cannam@85 8656 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 8657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 8658 (eval $ac_link) 2>conftest.er1
cannam@85 8659 ac_status=$?
cannam@85 8660 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 8661 rm -f conftest.er1
cannam@85 8662 cat conftest.err >&5
cannam@85 8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8664 (exit $ac_status); } &&
cannam@85 8665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8667 (eval $ac_try) 2>&5
cannam@85 8668 ac_status=$?
cannam@85 8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8670 (exit $ac_status); }; } &&
cannam@85 8671 { ac_try='test -s conftest$ac_exeext'
cannam@85 8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8673 (eval $ac_try) 2>&5
cannam@85 8674 ac_status=$?
cannam@85 8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8676 (exit $ac_status); }; }; then
cannam@85 8677 ac_cv_lib_dld_dld_link=yes
cannam@85 8678 else
cannam@85 8679 echo "$as_me: failed program was:" >&5
cannam@85 8680 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 8681
cannam@85 8682 ac_cv_lib_dld_dld_link=no
cannam@85 8683 fi
cannam@85 8684 rm -f conftest.err conftest.$ac_objext \
cannam@85 8685 conftest$ac_exeext conftest.$ac_ext
cannam@85 8686 LIBS=$ac_check_lib_save_LIBS
cannam@85 8687 fi
cannam@85 8688 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
cannam@85 8689 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
cannam@85 8690 if test $ac_cv_lib_dld_dld_link = yes; then
cannam@85 8691 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
cannam@85 8692 fi
cannam@85 8693
cannam@85 8694
cannam@85 8695 fi
cannam@85 8696
cannam@85 8697
cannam@85 8698 fi
cannam@85 8699
cannam@85 8700
cannam@85 8701 fi
cannam@85 8702
cannam@85 8703
cannam@85 8704 fi
cannam@85 8705
cannam@85 8706
cannam@85 8707 fi
cannam@85 8708
cannam@85 8709 ;;
cannam@85 8710 esac
cannam@85 8711
cannam@85 8712 if test "x$lt_cv_dlopen" != xno; then
cannam@85 8713 enable_dlopen=yes
cannam@85 8714 else
cannam@85 8715 enable_dlopen=no
cannam@85 8716 fi
cannam@85 8717
cannam@85 8718 case $lt_cv_dlopen in
cannam@85 8719 dlopen)
cannam@85 8720 save_CPPFLAGS="$CPPFLAGS"
cannam@85 8721 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
cannam@85 8722
cannam@85 8723 save_LDFLAGS="$LDFLAGS"
cannam@85 8724 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
cannam@85 8725
cannam@85 8726 save_LIBS="$LIBS"
cannam@85 8727 LIBS="$lt_cv_dlopen_libs $LIBS"
cannam@85 8728
cannam@85 8729 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
cannam@85 8730 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
cannam@85 8731 if test "${lt_cv_dlopen_self+set}" = set; then
cannam@85 8732 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 8733 else
cannam@85 8734 if test "$cross_compiling" = yes; then :
cannam@85 8735 lt_cv_dlopen_self=cross
cannam@85 8736 else
cannam@85 8737 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@85 8738 lt_status=$lt_dlunknown
cannam@85 8739 cat > conftest.$ac_ext <<EOF
cannam@85 8740 #line 8740 "configure"
cannam@85 8741 #include "confdefs.h"
cannam@85 8742
cannam@85 8743 #if HAVE_DLFCN_H
cannam@85 8744 #include <dlfcn.h>
cannam@85 8745 #endif
cannam@85 8746
cannam@85 8747 #include <stdio.h>
cannam@85 8748
cannam@85 8749 #ifdef RTLD_GLOBAL
cannam@85 8750 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@85 8751 #else
cannam@85 8752 # ifdef DL_GLOBAL
cannam@85 8753 # define LT_DLGLOBAL DL_GLOBAL
cannam@85 8754 # else
cannam@85 8755 # define LT_DLGLOBAL 0
cannam@85 8756 # endif
cannam@85 8757 #endif
cannam@85 8758
cannam@85 8759 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@85 8760 find out it does not work in some platform. */
cannam@85 8761 #ifndef LT_DLLAZY_OR_NOW
cannam@85 8762 # ifdef RTLD_LAZY
cannam@85 8763 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@85 8764 # else
cannam@85 8765 # ifdef DL_LAZY
cannam@85 8766 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@85 8767 # else
cannam@85 8768 # ifdef RTLD_NOW
cannam@85 8769 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@85 8770 # else
cannam@85 8771 # ifdef DL_NOW
cannam@85 8772 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@85 8773 # else
cannam@85 8774 # define LT_DLLAZY_OR_NOW 0
cannam@85 8775 # endif
cannam@85 8776 # endif
cannam@85 8777 # endif
cannam@85 8778 # endif
cannam@85 8779 #endif
cannam@85 8780
cannam@85 8781 #ifdef __cplusplus
cannam@85 8782 extern "C" void exit (int);
cannam@85 8783 #endif
cannam@85 8784
cannam@85 8785 void fnord() { int i=42;}
cannam@85 8786 int main ()
cannam@85 8787 {
cannam@85 8788 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@85 8789 int status = $lt_dlunknown;
cannam@85 8790
cannam@85 8791 if (self)
cannam@85 8792 {
cannam@85 8793 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@85 8794 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@85 8795 /* dlclose (self); */
cannam@85 8796 }
cannam@85 8797
cannam@85 8798 exit (status);
cannam@85 8799 }
cannam@85 8800 EOF
cannam@85 8801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 8802 (eval $ac_link) 2>&5
cannam@85 8803 ac_status=$?
cannam@85 8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8805 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@85 8806 (./conftest; exit; ) 2>/dev/null
cannam@85 8807 lt_status=$?
cannam@85 8808 case x$lt_status in
cannam@85 8809 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
cannam@85 8810 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
cannam@85 8811 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
cannam@85 8812 esac
cannam@85 8813 else :
cannam@85 8814 # compilation failed
cannam@85 8815 lt_cv_dlopen_self=no
cannam@85 8816 fi
cannam@85 8817 fi
cannam@85 8818 rm -fr conftest*
cannam@85 8819
cannam@85 8820
cannam@85 8821 fi
cannam@85 8822 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
cannam@85 8823 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
cannam@85 8824
cannam@85 8825 if test "x$lt_cv_dlopen_self" = xyes; then
cannam@85 8826 LDFLAGS="$LDFLAGS $link_static_flag"
cannam@85 8827 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
cannam@85 8828 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
cannam@85 8829 if test "${lt_cv_dlopen_self_static+set}" = set; then
cannam@85 8830 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 8831 else
cannam@85 8832 if test "$cross_compiling" = yes; then :
cannam@85 8833 lt_cv_dlopen_self_static=cross
cannam@85 8834 else
cannam@85 8835 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@85 8836 lt_status=$lt_dlunknown
cannam@85 8837 cat > conftest.$ac_ext <<EOF
cannam@85 8838 #line 8838 "configure"
cannam@85 8839 #include "confdefs.h"
cannam@85 8840
cannam@85 8841 #if HAVE_DLFCN_H
cannam@85 8842 #include <dlfcn.h>
cannam@85 8843 #endif
cannam@85 8844
cannam@85 8845 #include <stdio.h>
cannam@85 8846
cannam@85 8847 #ifdef RTLD_GLOBAL
cannam@85 8848 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@85 8849 #else
cannam@85 8850 # ifdef DL_GLOBAL
cannam@85 8851 # define LT_DLGLOBAL DL_GLOBAL
cannam@85 8852 # else
cannam@85 8853 # define LT_DLGLOBAL 0
cannam@85 8854 # endif
cannam@85 8855 #endif
cannam@85 8856
cannam@85 8857 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@85 8858 find out it does not work in some platform. */
cannam@85 8859 #ifndef LT_DLLAZY_OR_NOW
cannam@85 8860 # ifdef RTLD_LAZY
cannam@85 8861 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@85 8862 # else
cannam@85 8863 # ifdef DL_LAZY
cannam@85 8864 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@85 8865 # else
cannam@85 8866 # ifdef RTLD_NOW
cannam@85 8867 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@85 8868 # else
cannam@85 8869 # ifdef DL_NOW
cannam@85 8870 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@85 8871 # else
cannam@85 8872 # define LT_DLLAZY_OR_NOW 0
cannam@85 8873 # endif
cannam@85 8874 # endif
cannam@85 8875 # endif
cannam@85 8876 # endif
cannam@85 8877 #endif
cannam@85 8878
cannam@85 8879 #ifdef __cplusplus
cannam@85 8880 extern "C" void exit (int);
cannam@85 8881 #endif
cannam@85 8882
cannam@85 8883 void fnord() { int i=42;}
cannam@85 8884 int main ()
cannam@85 8885 {
cannam@85 8886 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@85 8887 int status = $lt_dlunknown;
cannam@85 8888
cannam@85 8889 if (self)
cannam@85 8890 {
cannam@85 8891 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@85 8892 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@85 8893 /* dlclose (self); */
cannam@85 8894 }
cannam@85 8895
cannam@85 8896 exit (status);
cannam@85 8897 }
cannam@85 8898 EOF
cannam@85 8899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 8900 (eval $ac_link) 2>&5
cannam@85 8901 ac_status=$?
cannam@85 8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8903 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@85 8904 (./conftest; exit; ) 2>/dev/null
cannam@85 8905 lt_status=$?
cannam@85 8906 case x$lt_status in
cannam@85 8907 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@85 8908 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@85 8909 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
cannam@85 8910 esac
cannam@85 8911 else :
cannam@85 8912 # compilation failed
cannam@85 8913 lt_cv_dlopen_self_static=no
cannam@85 8914 fi
cannam@85 8915 fi
cannam@85 8916 rm -fr conftest*
cannam@85 8917
cannam@85 8918
cannam@85 8919 fi
cannam@85 8920 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
cannam@85 8921 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
cannam@85 8922 fi
cannam@85 8923
cannam@85 8924 CPPFLAGS="$save_CPPFLAGS"
cannam@85 8925 LDFLAGS="$save_LDFLAGS"
cannam@85 8926 LIBS="$save_LIBS"
cannam@85 8927 ;;
cannam@85 8928 esac
cannam@85 8929
cannam@85 8930 case $lt_cv_dlopen_self in
cannam@85 8931 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
cannam@85 8932 *) enable_dlopen_self=unknown ;;
cannam@85 8933 esac
cannam@85 8934
cannam@85 8935 case $lt_cv_dlopen_self_static in
cannam@85 8936 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
cannam@85 8937 *) enable_dlopen_self_static=unknown ;;
cannam@85 8938 esac
cannam@85 8939 fi
cannam@85 8940
cannam@85 8941
cannam@85 8942 # Report which librarie types wil actually be built
cannam@85 8943 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
cannam@85 8944 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
cannam@85 8945 echo "$as_me:$LINENO: result: $can_build_shared" >&5
cannam@85 8946 echo "${ECHO_T}$can_build_shared" >&6
cannam@85 8947
cannam@85 8948 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
cannam@85 8949 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
cannam@85 8950 test "$can_build_shared" = "no" && enable_shared=no
cannam@85 8951
cannam@85 8952 # On AIX, shared libraries and static libraries use the same namespace, and
cannam@85 8953 # are all built from PIC.
cannam@85 8954 case "$host_os" in
cannam@85 8955 aix3*)
cannam@85 8956 test "$enable_shared" = yes && enable_static=no
cannam@85 8957 if test -n "$RANLIB"; then
cannam@85 8958 archive_cmds="$archive_cmds~\$RANLIB \$lib"
cannam@85 8959 postinstall_cmds='$RANLIB $lib'
cannam@85 8960 fi
cannam@85 8961 ;;
cannam@85 8962
cannam@85 8963 aix4*)
cannam@85 8964 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
cannam@85 8965 test "$enable_shared" = yes && enable_static=no
cannam@85 8966 fi
cannam@85 8967 ;;
cannam@85 8968 darwin* | rhapsody*)
cannam@85 8969 if test "$GCC" = yes; then
cannam@85 8970 archive_cmds_need_lc=no
cannam@85 8971 case "$host_os" in
cannam@85 8972 rhapsody* | darwin1.[012])
cannam@85 8973 allow_undefined_flag='-undefined suppress'
cannam@85 8974 ;;
cannam@85 8975 *) # Darwin 1.3 on
cannam@85 8976 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
cannam@85 8977 allow_undefined_flag='-flat_namespace -undefined suppress'
cannam@85 8978 else
cannam@85 8979 case ${MACOSX_DEPLOYMENT_TARGET} in
cannam@85 8980 10.[012])
cannam@85 8981 allow_undefined_flag='-flat_namespace -undefined suppress'
cannam@85 8982 ;;
cannam@85 8983 10.*)
cannam@85 8984 allow_undefined_flag='-undefined dynamic_lookup'
cannam@85 8985 ;;
cannam@85 8986 esac
cannam@85 8987 fi
cannam@85 8988 ;;
cannam@85 8989 esac
cannam@85 8990 output_verbose_link_cmd='echo'
cannam@85 8991 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
cannam@85 8992 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
cannam@85 8993 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
cannam@85 8994 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
cannam@85 8995 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
cannam@85 8996 hardcode_direct=no
cannam@85 8997 hardcode_automatic=yes
cannam@85 8998 hardcode_shlibpath_var=unsupported
cannam@85 8999 whole_archive_flag_spec='-all_load $convenience'
cannam@85 9000 link_all_deplibs=yes
cannam@85 9001 else
cannam@85 9002 ld_shlibs=no
cannam@85 9003 fi
cannam@85 9004 ;;
cannam@85 9005 esac
cannam@85 9006 echo "$as_me:$LINENO: result: $enable_shared" >&5
cannam@85 9007 echo "${ECHO_T}$enable_shared" >&6
cannam@85 9008
cannam@85 9009 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
cannam@85 9010 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
cannam@85 9011 # Make sure either enable_shared or enable_static is yes.
cannam@85 9012 test "$enable_shared" = yes || enable_static=yes
cannam@85 9013 echo "$as_me:$LINENO: result: $enable_static" >&5
cannam@85 9014 echo "${ECHO_T}$enable_static" >&6
cannam@85 9015
cannam@85 9016 # The else clause should only fire when bootstrapping the
cannam@85 9017 # libtool distribution, otherwise you forgot to ship ltmain.sh
cannam@85 9018 # with your package, and you will get complaints that there are
cannam@85 9019 # no rules to generate ltmain.sh.
cannam@85 9020 if test -f "$ltmain"; then
cannam@85 9021 # See if we are running on zsh, and set the options which allow our commands through
cannam@85 9022 # without removal of \ escapes.
cannam@85 9023 if test -n "${ZSH_VERSION+set}" ; then
cannam@85 9024 setopt NO_GLOB_SUBST
cannam@85 9025 fi
cannam@85 9026 # Now quote all the things that may contain metacharacters while being
cannam@85 9027 # careful not to overquote the AC_SUBSTed values. We take copies of the
cannam@85 9028 # variables and quote the copies for generation of the libtool script.
cannam@85 9029 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
cannam@85 9030 SED SHELL STRIP \
cannam@85 9031 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
cannam@85 9032 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
cannam@85 9033 deplibs_check_method reload_flag reload_cmds need_locks \
cannam@85 9034 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
cannam@85 9035 lt_cv_sys_global_symbol_to_c_name_address \
cannam@85 9036 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
cannam@85 9037 old_postinstall_cmds old_postuninstall_cmds \
cannam@85 9038 compiler \
cannam@85 9039 CC \
cannam@85 9040 LD \
cannam@85 9041 lt_prog_compiler_wl \
cannam@85 9042 lt_prog_compiler_pic \
cannam@85 9043 lt_prog_compiler_static \
cannam@85 9044 lt_prog_compiler_no_builtin_flag \
cannam@85 9045 export_dynamic_flag_spec \
cannam@85 9046 thread_safe_flag_spec \
cannam@85 9047 whole_archive_flag_spec \
cannam@85 9048 enable_shared_with_static_runtimes \
cannam@85 9049 old_archive_cmds \
cannam@85 9050 old_archive_from_new_cmds \
cannam@85 9051 predep_objects \
cannam@85 9052 postdep_objects \
cannam@85 9053 predeps \
cannam@85 9054 postdeps \
cannam@85 9055 compiler_lib_search_path \
cannam@85 9056 archive_cmds \
cannam@85 9057 archive_expsym_cmds \
cannam@85 9058 postinstall_cmds \
cannam@85 9059 postuninstall_cmds \
cannam@85 9060 old_archive_from_expsyms_cmds \
cannam@85 9061 allow_undefined_flag \
cannam@85 9062 no_undefined_flag \
cannam@85 9063 export_symbols_cmds \
cannam@85 9064 hardcode_libdir_flag_spec \
cannam@85 9065 hardcode_libdir_flag_spec_ld \
cannam@85 9066 hardcode_libdir_separator \
cannam@85 9067 hardcode_automatic \
cannam@85 9068 module_cmds \
cannam@85 9069 module_expsym_cmds \
cannam@85 9070 lt_cv_prog_compiler_c_o \
cannam@85 9071 exclude_expsyms \
cannam@85 9072 include_expsyms; do
cannam@85 9073
cannam@85 9074 case $var in
cannam@85 9075 old_archive_cmds | \
cannam@85 9076 old_archive_from_new_cmds | \
cannam@85 9077 archive_cmds | \
cannam@85 9078 archive_expsym_cmds | \
cannam@85 9079 module_cmds | \
cannam@85 9080 module_expsym_cmds | \
cannam@85 9081 old_archive_from_expsyms_cmds | \
cannam@85 9082 export_symbols_cmds | \
cannam@85 9083 extract_expsyms_cmds | reload_cmds | finish_cmds | \
cannam@85 9084 postinstall_cmds | postuninstall_cmds | \
cannam@85 9085 old_postinstall_cmds | old_postuninstall_cmds | \
cannam@85 9086 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
cannam@85 9087 # Double-quote double-evaled strings.
cannam@85 9088 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
cannam@85 9089 ;;
cannam@85 9090 *)
cannam@85 9091 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
cannam@85 9092 ;;
cannam@85 9093 esac
cannam@85 9094 done
cannam@85 9095
cannam@85 9096 case $lt_echo in
cannam@85 9097 *'\$0 --fallback-echo"')
cannam@85 9098 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
cannam@85 9099 ;;
cannam@85 9100 esac
cannam@85 9101
cannam@85 9102 cfgfile="${ofile}T"
cannam@85 9103 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
cannam@85 9104 $rm -f "$cfgfile"
cannam@85 9105 { echo "$as_me:$LINENO: creating $ofile" >&5
cannam@85 9106 echo "$as_me: creating $ofile" >&6;}
cannam@85 9107
cannam@85 9108 cat <<__EOF__ >> "$cfgfile"
cannam@85 9109 #! $SHELL
cannam@85 9110
cannam@85 9111 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
cannam@85 9112 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
cannam@85 9113 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
cannam@85 9114 #
cannam@85 9115 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
cannam@85 9116 # Free Software Foundation, Inc.
cannam@85 9117 #
cannam@85 9118 # This file is part of GNU Libtool:
cannam@85 9119 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
cannam@85 9120 #
cannam@85 9121 # This program is free software; you can redistribute it and/or modify
cannam@85 9122 # it under the terms of the GNU General Public License as published by
cannam@85 9123 # the Free Software Foundation; either version 2 of the License, or
cannam@85 9124 # (at your option) any later version.
cannam@85 9125 #
cannam@85 9126 # This program is distributed in the hope that it will be useful, but
cannam@85 9127 # WITHOUT ANY WARRANTY; without even the implied warranty of
cannam@85 9128 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
cannam@85 9129 # General Public License for more details.
cannam@85 9130 #
cannam@85 9131 # You should have received a copy of the GNU General Public License
cannam@85 9132 # along with this program; if not, write to the Free Software
cannam@85 9133 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
cannam@85 9134 #
cannam@85 9135 # As a special exception to the GNU General Public License, if you
cannam@85 9136 # distribute this file as part of a program that contains a
cannam@85 9137 # configuration script generated by Autoconf, you may include it under
cannam@85 9138 # the same distribution terms that you use for the rest of that program.
cannam@85 9139
cannam@85 9140 # A sed program that does not truncate output.
cannam@85 9141 SED=$lt_SED
cannam@85 9142
cannam@85 9143 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
cannam@85 9144 Xsed="$SED -e s/^X//"
cannam@85 9145
cannam@85 9146 # The HP-UX ksh and POSIX shell print the target directory to stdout
cannam@85 9147 # if CDPATH is set.
cannam@85 9148 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
cannam@85 9149
cannam@85 9150 # The names of the tagged configurations supported by this script.
cannam@85 9151 available_tags=
cannam@85 9152
cannam@85 9153 # ### BEGIN LIBTOOL CONFIG
cannam@85 9154
cannam@85 9155 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
cannam@85 9156
cannam@85 9157 # Shell to use when invoking shell scripts.
cannam@85 9158 SHELL=$lt_SHELL
cannam@85 9159
cannam@85 9160 # Whether or not to build shared libraries.
cannam@85 9161 build_libtool_libs=$enable_shared
cannam@85 9162
cannam@85 9163 # Whether or not to build static libraries.
cannam@85 9164 build_old_libs=$enable_static
cannam@85 9165
cannam@85 9166 # Whether or not to add -lc for building shared libraries.
cannam@85 9167 build_libtool_need_lc=$archive_cmds_need_lc
cannam@85 9168
cannam@85 9169 # Whether or not to disallow shared libs when runtime libs are static
cannam@85 9170 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
cannam@85 9171
cannam@85 9172 # Whether or not to optimize for fast installation.
cannam@85 9173 fast_install=$enable_fast_install
cannam@85 9174
cannam@85 9175 # The host system.
cannam@85 9176 host_alias=$host_alias
cannam@85 9177 host=$host
cannam@85 9178
cannam@85 9179 # An echo program that does not interpret backslashes.
cannam@85 9180 echo=$lt_echo
cannam@85 9181
cannam@85 9182 # The archiver.
cannam@85 9183 AR=$lt_AR
cannam@85 9184 AR_FLAGS=$lt_AR_FLAGS
cannam@85 9185
cannam@85 9186 # A C compiler.
cannam@85 9187 LTCC=$lt_LTCC
cannam@85 9188
cannam@85 9189 # A language-specific compiler.
cannam@85 9190 CC=$lt_compiler
cannam@85 9191
cannam@85 9192 # Is the compiler the GNU C compiler?
cannam@85 9193 with_gcc=$GCC
cannam@85 9194
cannam@85 9195 # An ERE matcher.
cannam@85 9196 EGREP=$lt_EGREP
cannam@85 9197
cannam@85 9198 # The linker used to build libraries.
cannam@85 9199 LD=$lt_LD
cannam@85 9200
cannam@85 9201 # Whether we need hard or soft links.
cannam@85 9202 LN_S=$lt_LN_S
cannam@85 9203
cannam@85 9204 # A BSD-compatible nm program.
cannam@85 9205 NM=$lt_NM
cannam@85 9206
cannam@85 9207 # A symbol stripping program
cannam@85 9208 STRIP=$lt_STRIP
cannam@85 9209
cannam@85 9210 # Used to examine libraries when file_magic_cmd begins "file"
cannam@85 9211 MAGIC_CMD=$MAGIC_CMD
cannam@85 9212
cannam@85 9213 # Used on cygwin: DLL creation program.
cannam@85 9214 DLLTOOL="$DLLTOOL"
cannam@85 9215
cannam@85 9216 # Used on cygwin: object dumper.
cannam@85 9217 OBJDUMP="$OBJDUMP"
cannam@85 9218
cannam@85 9219 # Used on cygwin: assembler.
cannam@85 9220 AS="$AS"
cannam@85 9221
cannam@85 9222 # The name of the directory that contains temporary libtool files.
cannam@85 9223 objdir=$objdir
cannam@85 9224
cannam@85 9225 # How to create reloadable object files.
cannam@85 9226 reload_flag=$lt_reload_flag
cannam@85 9227 reload_cmds=$lt_reload_cmds
cannam@85 9228
cannam@85 9229 # How to pass a linker flag through the compiler.
cannam@85 9230 wl=$lt_lt_prog_compiler_wl
cannam@85 9231
cannam@85 9232 # Object file suffix (normally "o").
cannam@85 9233 objext="$ac_objext"
cannam@85 9234
cannam@85 9235 # Old archive suffix (normally "a").
cannam@85 9236 libext="$libext"
cannam@85 9237
cannam@85 9238 # Shared library suffix (normally ".so").
cannam@85 9239 shrext='$shrext'
cannam@85 9240
cannam@85 9241 # Executable file suffix (normally "").
cannam@85 9242 exeext="$exeext"
cannam@85 9243
cannam@85 9244 # Additional compiler flags for building library objects.
cannam@85 9245 pic_flag=$lt_lt_prog_compiler_pic
cannam@85 9246 pic_mode=$pic_mode
cannam@85 9247
cannam@85 9248 # What is the maximum length of a command?
cannam@85 9249 max_cmd_len=$lt_cv_sys_max_cmd_len
cannam@85 9250
cannam@85 9251 # Does compiler simultaneously support -c and -o options?
cannam@85 9252 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
cannam@85 9253
cannam@85 9254 # Must we lock files when doing compilation ?
cannam@85 9255 need_locks=$lt_need_locks
cannam@85 9256
cannam@85 9257 # Do we need the lib prefix for modules?
cannam@85 9258 need_lib_prefix=$need_lib_prefix
cannam@85 9259
cannam@85 9260 # Do we need a version for libraries?
cannam@85 9261 need_version=$need_version
cannam@85 9262
cannam@85 9263 # Whether dlopen is supported.
cannam@85 9264 dlopen_support=$enable_dlopen
cannam@85 9265
cannam@85 9266 # Whether dlopen of programs is supported.
cannam@85 9267 dlopen_self=$enable_dlopen_self
cannam@85 9268
cannam@85 9269 # Whether dlopen of statically linked programs is supported.
cannam@85 9270 dlopen_self_static=$enable_dlopen_self_static
cannam@85 9271
cannam@85 9272 # Compiler flag to prevent dynamic linking.
cannam@85 9273 link_static_flag=$lt_lt_prog_compiler_static
cannam@85 9274
cannam@85 9275 # Compiler flag to turn off builtin functions.
cannam@85 9276 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
cannam@85 9277
cannam@85 9278 # Compiler flag to allow reflexive dlopens.
cannam@85 9279 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
cannam@85 9280
cannam@85 9281 # Compiler flag to generate shared objects directly from archives.
cannam@85 9282 whole_archive_flag_spec=$lt_whole_archive_flag_spec
cannam@85 9283
cannam@85 9284 # Compiler flag to generate thread-safe objects.
cannam@85 9285 thread_safe_flag_spec=$lt_thread_safe_flag_spec
cannam@85 9286
cannam@85 9287 # Library versioning type.
cannam@85 9288 version_type=$version_type
cannam@85 9289
cannam@85 9290 # Format of library name prefix.
cannam@85 9291 libname_spec=$lt_libname_spec
cannam@85 9292
cannam@85 9293 # List of archive names. First name is the real one, the rest are links.
cannam@85 9294 # The last name is the one that the linker finds with -lNAME.
cannam@85 9295 library_names_spec=$lt_library_names_spec
cannam@85 9296
cannam@85 9297 # The coded name of the library, if different from the real name.
cannam@85 9298 soname_spec=$lt_soname_spec
cannam@85 9299
cannam@85 9300 # Commands used to build and install an old-style archive.
cannam@85 9301 RANLIB=$lt_RANLIB
cannam@85 9302 old_archive_cmds=$lt_old_archive_cmds
cannam@85 9303 old_postinstall_cmds=$lt_old_postinstall_cmds
cannam@85 9304 old_postuninstall_cmds=$lt_old_postuninstall_cmds
cannam@85 9305
cannam@85 9306 # Create an old-style archive from a shared archive.
cannam@85 9307 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
cannam@85 9308
cannam@85 9309 # Create a temporary old-style archive to link instead of a shared archive.
cannam@85 9310 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
cannam@85 9311
cannam@85 9312 # Commands used to build and install a shared archive.
cannam@85 9313 archive_cmds=$lt_archive_cmds
cannam@85 9314 archive_expsym_cmds=$lt_archive_expsym_cmds
cannam@85 9315 postinstall_cmds=$lt_postinstall_cmds
cannam@85 9316 postuninstall_cmds=$lt_postuninstall_cmds
cannam@85 9317
cannam@85 9318 # Commands used to build a loadable module (assumed same as above if empty)
cannam@85 9319 module_cmds=$lt_module_cmds
cannam@85 9320 module_expsym_cmds=$lt_module_expsym_cmds
cannam@85 9321
cannam@85 9322 # Commands to strip libraries.
cannam@85 9323 old_striplib=$lt_old_striplib
cannam@85 9324 striplib=$lt_striplib
cannam@85 9325
cannam@85 9326 # Dependencies to place before the objects being linked to create a
cannam@85 9327 # shared library.
cannam@85 9328 predep_objects=$lt_predep_objects
cannam@85 9329
cannam@85 9330 # Dependencies to place after the objects being linked to create a
cannam@85 9331 # shared library.
cannam@85 9332 postdep_objects=$lt_postdep_objects
cannam@85 9333
cannam@85 9334 # Dependencies to place before the objects being linked to create a
cannam@85 9335 # shared library.
cannam@85 9336 predeps=$lt_predeps
cannam@85 9337
cannam@85 9338 # Dependencies to place after the objects being linked to create a
cannam@85 9339 # shared library.
cannam@85 9340 postdeps=$lt_postdeps
cannam@85 9341
cannam@85 9342 # The library search path used internally by the compiler when linking
cannam@85 9343 # a shared library.
cannam@85 9344 compiler_lib_search_path=$lt_compiler_lib_search_path
cannam@85 9345
cannam@85 9346 # Method to check whether dependent libraries are shared objects.
cannam@85 9347 deplibs_check_method=$lt_deplibs_check_method
cannam@85 9348
cannam@85 9349 # Command to use when deplibs_check_method == file_magic.
cannam@85 9350 file_magic_cmd=$lt_file_magic_cmd
cannam@85 9351
cannam@85 9352 # Flag that allows shared libraries with undefined symbols to be built.
cannam@85 9353 allow_undefined_flag=$lt_allow_undefined_flag
cannam@85 9354
cannam@85 9355 # Flag that forces no undefined symbols.
cannam@85 9356 no_undefined_flag=$lt_no_undefined_flag
cannam@85 9357
cannam@85 9358 # Commands used to finish a libtool library installation in a directory.
cannam@85 9359 finish_cmds=$lt_finish_cmds
cannam@85 9360
cannam@85 9361 # Same as above, but a single script fragment to be evaled but not shown.
cannam@85 9362 finish_eval=$lt_finish_eval
cannam@85 9363
cannam@85 9364 # Take the output of nm and produce a listing of raw symbols and C names.
cannam@85 9365 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
cannam@85 9366
cannam@85 9367 # Transform the output of nm in a proper C declaration
cannam@85 9368 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
cannam@85 9369
cannam@85 9370 # Transform the output of nm in a C name address pair
cannam@85 9371 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
cannam@85 9372
cannam@85 9373 # This is the shared library runtime path variable.
cannam@85 9374 runpath_var=$runpath_var
cannam@85 9375
cannam@85 9376 # This is the shared library path variable.
cannam@85 9377 shlibpath_var=$shlibpath_var
cannam@85 9378
cannam@85 9379 # Is shlibpath searched before the hard-coded library search path?
cannam@85 9380 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
cannam@85 9381
cannam@85 9382 # How to hardcode a shared library path into an executable.
cannam@85 9383 hardcode_action=$hardcode_action
cannam@85 9384
cannam@85 9385 # Whether we should hardcode library paths into libraries.
cannam@85 9386 hardcode_into_libs=$hardcode_into_libs
cannam@85 9387
cannam@85 9388 # Flag to hardcode \$libdir into a binary during linking.
cannam@85 9389 # This must work even if \$libdir does not exist.
cannam@85 9390 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
cannam@85 9391
cannam@85 9392 # If ld is used when linking, flag to hardcode \$libdir into
cannam@85 9393 # a binary during linking. This must work even if \$libdir does
cannam@85 9394 # not exist.
cannam@85 9395 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
cannam@85 9396
cannam@85 9397 # Whether we need a single -rpath flag with a separated argument.
cannam@85 9398 hardcode_libdir_separator=$lt_hardcode_libdir_separator
cannam@85 9399
cannam@85 9400 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
cannam@85 9401 # resulting binary.
cannam@85 9402 hardcode_direct=$hardcode_direct
cannam@85 9403
cannam@85 9404 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
cannam@85 9405 # resulting binary.
cannam@85 9406 hardcode_minus_L=$hardcode_minus_L
cannam@85 9407
cannam@85 9408 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
cannam@85 9409 # the resulting binary.
cannam@85 9410 hardcode_shlibpath_var=$hardcode_shlibpath_var
cannam@85 9411
cannam@85 9412 # Set to yes if building a shared library automatically hardcodes DIR into the library
cannam@85 9413 # and all subsequent libraries and executables linked against it.
cannam@85 9414 hardcode_automatic=$hardcode_automatic
cannam@85 9415
cannam@85 9416 # Variables whose values should be saved in libtool wrapper scripts and
cannam@85 9417 # restored at relink time.
cannam@85 9418 variables_saved_for_relink="$variables_saved_for_relink"
cannam@85 9419
cannam@85 9420 # Whether libtool must link a program against all its dependency libraries.
cannam@85 9421 link_all_deplibs=$link_all_deplibs
cannam@85 9422
cannam@85 9423 # Compile-time system search path for libraries
cannam@85 9424 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
cannam@85 9425
cannam@85 9426 # Run-time system search path for libraries
cannam@85 9427 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
cannam@85 9428
cannam@85 9429 # Fix the shell variable \$srcfile for the compiler.
cannam@85 9430 fix_srcfile_path="$fix_srcfile_path"
cannam@85 9431
cannam@85 9432 # Set to yes if exported symbols are required.
cannam@85 9433 always_export_symbols=$always_export_symbols
cannam@85 9434
cannam@85 9435 # The commands to list exported symbols.
cannam@85 9436 export_symbols_cmds=$lt_export_symbols_cmds
cannam@85 9437
cannam@85 9438 # The commands to extract the exported symbol list from a shared archive.
cannam@85 9439 extract_expsyms_cmds=$lt_extract_expsyms_cmds
cannam@85 9440
cannam@85 9441 # Symbols that should not be listed in the preloaded symbols.
cannam@85 9442 exclude_expsyms=$lt_exclude_expsyms
cannam@85 9443
cannam@85 9444 # Symbols that must always be exported.
cannam@85 9445 include_expsyms=$lt_include_expsyms
cannam@85 9446
cannam@85 9447 # ### END LIBTOOL CONFIG
cannam@85 9448
cannam@85 9449 __EOF__
cannam@85 9450
cannam@85 9451
cannam@85 9452 case $host_os in
cannam@85 9453 aix3*)
cannam@85 9454 cat <<\EOF >> "$cfgfile"
cannam@85 9455
cannam@85 9456 # AIX sometimes has problems with the GCC collect2 program. For some
cannam@85 9457 # reason, if we set the COLLECT_NAMES environment variable, the problems
cannam@85 9458 # vanish in a puff of smoke.
cannam@85 9459 if test "X${COLLECT_NAMES+set}" != Xset; then
cannam@85 9460 COLLECT_NAMES=
cannam@85 9461 export COLLECT_NAMES
cannam@85 9462 fi
cannam@85 9463 EOF
cannam@85 9464 ;;
cannam@85 9465 esac
cannam@85 9466
cannam@85 9467 # We use sed instead of cat because bash on DJGPP gets confused if
cannam@85 9468 # if finds mixed CR/LF and LF-only lines. Since sed operates in
cannam@85 9469 # text mode, it properly converts lines to CR/LF. This bash problem
cannam@85 9470 # is reportedly fixed, but why not run on old versions too?
cannam@85 9471 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
cannam@85 9472
cannam@85 9473 mv -f "$cfgfile" "$ofile" || \
cannam@85 9474 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
cannam@85 9475 chmod +x "$ofile"
cannam@85 9476
cannam@85 9477 else
cannam@85 9478 # If there is no Makefile yet, we rely on a make rule to execute
cannam@85 9479 # `config.status --recheck' to rerun these tests and create the
cannam@85 9480 # libtool script then.
cannam@85 9481 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
cannam@85 9482 if test -f "$ltmain_in"; then
cannam@85 9483 test -f Makefile && make "$ltmain"
cannam@85 9484 fi
cannam@85 9485 fi
cannam@85 9486
cannam@85 9487
cannam@85 9488 ac_ext=c
cannam@85 9489 ac_cpp='$CPP $CPPFLAGS'
cannam@85 9490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 9491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 9492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 9493
cannam@85 9494 CC="$lt_save_CC"
cannam@85 9495
cannam@85 9496
cannam@85 9497 # Check whether --with-tags or --without-tags was given.
cannam@85 9498 if test "${with_tags+set}" = set; then
cannam@85 9499 withval="$with_tags"
cannam@85 9500 tagnames="$withval"
cannam@85 9501 fi;
cannam@85 9502
cannam@85 9503 if test -f "$ltmain" && test -n "$tagnames"; then
cannam@85 9504 if test ! -f "${ofile}"; then
cannam@85 9505 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
cannam@85 9506 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
cannam@85 9507 fi
cannam@85 9508
cannam@85 9509 if test -z "$LTCC"; then
cannam@85 9510 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
cannam@85 9511 if test -z "$LTCC"; then
cannam@85 9512 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
cannam@85 9513 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
cannam@85 9514 else
cannam@85 9515 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
cannam@85 9516 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
cannam@85 9517 fi
cannam@85 9518 fi
cannam@85 9519
cannam@85 9520 # Extract list of available tagged configurations in $ofile.
cannam@85 9521 # Note that this assumes the entire list is on one line.
cannam@85 9522 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
cannam@85 9523
cannam@85 9524 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@85 9525 for tagname in $tagnames; do
cannam@85 9526 IFS="$lt_save_ifs"
cannam@85 9527 # Check whether tagname contains only valid characters
cannam@85 9528 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
cannam@85 9529 "") ;;
cannam@85 9530 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
cannam@85 9531 echo "$as_me: error: invalid tag name: $tagname" >&2;}
cannam@85 9532 { (exit 1); exit 1; }; }
cannam@85 9533 ;;
cannam@85 9534 esac
cannam@85 9535
cannam@85 9536 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
cannam@85 9537 then
cannam@85 9538 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
cannam@85 9539 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
cannam@85 9540 { (exit 1); exit 1; }; }
cannam@85 9541 fi
cannam@85 9542
cannam@85 9543 # Update the list of available tags.
cannam@85 9544 if test -n "$tagname"; then
cannam@85 9545 echo appending configuration tag \"$tagname\" to $ofile
cannam@85 9546
cannam@85 9547 case $tagname in
cannam@85 9548 CXX)
cannam@85 9549 if test -n "$CXX" && test "X$CXX" != "Xno"; then
cannam@85 9550 ac_ext=cc
cannam@85 9551 ac_cpp='$CXXCPP $CPPFLAGS'
cannam@85 9552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 9553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 9554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cannam@85 9555
cannam@85 9556
cannam@85 9557
cannam@85 9558
cannam@85 9559 archive_cmds_need_lc_CXX=no
cannam@85 9560 allow_undefined_flag_CXX=
cannam@85 9561 always_export_symbols_CXX=no
cannam@85 9562 archive_expsym_cmds_CXX=
cannam@85 9563 export_dynamic_flag_spec_CXX=
cannam@85 9564 hardcode_direct_CXX=no
cannam@85 9565 hardcode_libdir_flag_spec_CXX=
cannam@85 9566 hardcode_libdir_flag_spec_ld_CXX=
cannam@85 9567 hardcode_libdir_separator_CXX=
cannam@85 9568 hardcode_minus_L_CXX=no
cannam@85 9569 hardcode_automatic_CXX=no
cannam@85 9570 module_cmds_CXX=
cannam@85 9571 module_expsym_cmds_CXX=
cannam@85 9572 link_all_deplibs_CXX=unknown
cannam@85 9573 old_archive_cmds_CXX=$old_archive_cmds
cannam@85 9574 no_undefined_flag_CXX=
cannam@85 9575 whole_archive_flag_spec_CXX=
cannam@85 9576 enable_shared_with_static_runtimes_CXX=no
cannam@85 9577
cannam@85 9578 # Dependencies to place before and after the object being linked:
cannam@85 9579 predep_objects_CXX=
cannam@85 9580 postdep_objects_CXX=
cannam@85 9581 predeps_CXX=
cannam@85 9582 postdeps_CXX=
cannam@85 9583 compiler_lib_search_path_CXX=
cannam@85 9584
cannam@85 9585 # Source file extension for C++ test sources.
cannam@85 9586 ac_ext=cc
cannam@85 9587
cannam@85 9588 # Object file extension for compiled C++ test sources.
cannam@85 9589 objext=o
cannam@85 9590 objext_CXX=$objext
cannam@85 9591
cannam@85 9592 # Code to be used in simple compile tests
cannam@85 9593 lt_simple_compile_test_code="int some_variable = 0;\n"
cannam@85 9594
cannam@85 9595 # Code to be used in simple link tests
cannam@85 9596 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
cannam@85 9597
cannam@85 9598 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
cannam@85 9599
cannam@85 9600 # If no C compiler was specified, use CC.
cannam@85 9601 LTCC=${LTCC-"$CC"}
cannam@85 9602
cannam@85 9603 # Allow CC to be a program name with arguments.
cannam@85 9604 compiler=$CC
cannam@85 9605
cannam@85 9606
cannam@85 9607 # Allow CC to be a program name with arguments.
cannam@85 9608 lt_save_CC=$CC
cannam@85 9609 lt_save_LD=$LD
cannam@85 9610 lt_save_GCC=$GCC
cannam@85 9611 GCC=$GXX
cannam@85 9612 lt_save_with_gnu_ld=$with_gnu_ld
cannam@85 9613 lt_save_path_LD=$lt_cv_path_LD
cannam@85 9614 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
cannam@85 9615 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
cannam@85 9616 else
cannam@85 9617 unset lt_cv_prog_gnu_ld
cannam@85 9618 fi
cannam@85 9619 if test -n "${lt_cv_path_LDCXX+set}"; then
cannam@85 9620 lt_cv_path_LD=$lt_cv_path_LDCXX
cannam@85 9621 else
cannam@85 9622 unset lt_cv_path_LD
cannam@85 9623 fi
cannam@85 9624 test -z "${LDCXX+set}" || LD=$LDCXX
cannam@85 9625 CC=${CXX-"c++"}
cannam@85 9626 compiler=$CC
cannam@85 9627 compiler_CXX=$CC
cannam@85 9628 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
cannam@85 9629
cannam@85 9630 # We don't want -fno-exception wen compiling C++ code, so set the
cannam@85 9631 # no_builtin_flag separately
cannam@85 9632 if test "$GXX" = yes; then
cannam@85 9633 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
cannam@85 9634 else
cannam@85 9635 lt_prog_compiler_no_builtin_flag_CXX=
cannam@85 9636 fi
cannam@85 9637
cannam@85 9638 if test "$GXX" = yes; then
cannam@85 9639 # Set up default GNU C++ configuration
cannam@85 9640
cannam@85 9641
cannam@85 9642 # Check whether --with-gnu-ld or --without-gnu-ld was given.
cannam@85 9643 if test "${with_gnu_ld+set}" = set; then
cannam@85 9644 withval="$with_gnu_ld"
cannam@85 9645 test "$withval" = no || with_gnu_ld=yes
cannam@85 9646 else
cannam@85 9647 with_gnu_ld=no
cannam@85 9648 fi;
cannam@85 9649 ac_prog=ld
cannam@85 9650 if test "$GCC" = yes; then
cannam@85 9651 # Check if gcc -print-prog-name=ld gives a path.
cannam@85 9652 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
cannam@85 9653 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
cannam@85 9654 case $host in
cannam@85 9655 *-*-mingw*)
cannam@85 9656 # gcc leaves a trailing carriage return which upsets mingw
cannam@85 9657 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
cannam@85 9658 *)
cannam@85 9659 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
cannam@85 9660 esac
cannam@85 9661 case $ac_prog in
cannam@85 9662 # Accept absolute paths.
cannam@85 9663 [\\/]* | ?:[\\/]*)
cannam@85 9664 re_direlt='/[^/][^/]*/\.\./'
cannam@85 9665 # Canonicalize the pathname of ld
cannam@85 9666 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
cannam@85 9667 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
cannam@85 9668 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
cannam@85 9669 done
cannam@85 9670 test -z "$LD" && LD="$ac_prog"
cannam@85 9671 ;;
cannam@85 9672 "")
cannam@85 9673 # If it fails, then pretend we aren't using GCC.
cannam@85 9674 ac_prog=ld
cannam@85 9675 ;;
cannam@85 9676 *)
cannam@85 9677 # If it is relative, then search for the first ld in PATH.
cannam@85 9678 with_gnu_ld=unknown
cannam@85 9679 ;;
cannam@85 9680 esac
cannam@85 9681 elif test "$with_gnu_ld" = yes; then
cannam@85 9682 echo "$as_me:$LINENO: checking for GNU ld" >&5
cannam@85 9683 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
cannam@85 9684 else
cannam@85 9685 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
cannam@85 9686 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
cannam@85 9687 fi
cannam@85 9688 if test "${lt_cv_path_LD+set}" = set; then
cannam@85 9689 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 9690 else
cannam@85 9691 if test -z "$LD"; then
cannam@85 9692 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@85 9693 for ac_dir in $PATH; do
cannam@85 9694 IFS="$lt_save_ifs"
cannam@85 9695 test -z "$ac_dir" && ac_dir=.
cannam@85 9696 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
cannam@85 9697 lt_cv_path_LD="$ac_dir/$ac_prog"
cannam@85 9698 # Check to see if the program is GNU ld. I'd rather use --version,
cannam@85 9699 # but apparently some GNU ld's only accept -v.
cannam@85 9700 # Break only if it was the GNU/non-GNU ld that we prefer.
cannam@85 9701 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
cannam@85 9702 *GNU* | *'with BFD'*)
cannam@85 9703 test "$with_gnu_ld" != no && break
cannam@85 9704 ;;
cannam@85 9705 *)
cannam@85 9706 test "$with_gnu_ld" != yes && break
cannam@85 9707 ;;
cannam@85 9708 esac
cannam@85 9709 fi
cannam@85 9710 done
cannam@85 9711 IFS="$lt_save_ifs"
cannam@85 9712 else
cannam@85 9713 lt_cv_path_LD="$LD" # Let the user override the test with a path.
cannam@85 9714 fi
cannam@85 9715 fi
cannam@85 9716
cannam@85 9717 LD="$lt_cv_path_LD"
cannam@85 9718 if test -n "$LD"; then
cannam@85 9719 echo "$as_me:$LINENO: result: $LD" >&5
cannam@85 9720 echo "${ECHO_T}$LD" >&6
cannam@85 9721 else
cannam@85 9722 echo "$as_me:$LINENO: result: no" >&5
cannam@85 9723 echo "${ECHO_T}no" >&6
cannam@85 9724 fi
cannam@85 9725 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
cannam@85 9726 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
cannam@85 9727 { (exit 1); exit 1; }; }
cannam@85 9728 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
cannam@85 9729 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
cannam@85 9730 if test "${lt_cv_prog_gnu_ld+set}" = set; then
cannam@85 9731 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 9732 else
cannam@85 9733 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
cannam@85 9734 case `$LD -v 2>&1 </dev/null` in
cannam@85 9735 *GNU* | *'with BFD'*)
cannam@85 9736 lt_cv_prog_gnu_ld=yes
cannam@85 9737 ;;
cannam@85 9738 *)
cannam@85 9739 lt_cv_prog_gnu_ld=no
cannam@85 9740 ;;
cannam@85 9741 esac
cannam@85 9742 fi
cannam@85 9743 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
cannam@85 9744 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
cannam@85 9745 with_gnu_ld=$lt_cv_prog_gnu_ld
cannam@85 9746
cannam@85 9747
cannam@85 9748
cannam@85 9749 # Check if GNU C++ uses GNU ld as the underlying linker, since the
cannam@85 9750 # archiving commands below assume that GNU ld is being used.
cannam@85 9751 if test "$with_gnu_ld" = yes; then
cannam@85 9752 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 9753 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@85 9754
cannam@85 9755 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
cannam@85 9756 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cannam@85 9757
cannam@85 9758 # If archive_cmds runs LD, not CC, wlarc should be empty
cannam@85 9759 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
cannam@85 9760 # investigate it a little bit more. (MM)
cannam@85 9761 wlarc='${wl}'
cannam@85 9762
cannam@85 9763 # ancient GNU ld didn't support --whole-archive et. al.
cannam@85 9764 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
cannam@85 9765 grep 'no-whole-archive' > /dev/null; then
cannam@85 9766 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cannam@85 9767 else
cannam@85 9768 whole_archive_flag_spec_CXX=
cannam@85 9769 fi
cannam@85 9770 else
cannam@85 9771 with_gnu_ld=no
cannam@85 9772 wlarc=
cannam@85 9773
cannam@85 9774 # A generic and very simple default shared library creation
cannam@85 9775 # command for GNU C++ for the case where it uses the native
cannam@85 9776 # linker, instead of GNU ld. If possible, this setting should
cannam@85 9777 # overridden to take advantage of the native linker features on
cannam@85 9778 # the platform it is being used on.
cannam@85 9779 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
cannam@85 9780 fi
cannam@85 9781
cannam@85 9782 # Commands to make compiler produce verbose output that lists
cannam@85 9783 # what "hidden" libraries, object files and flags are used when
cannam@85 9784 # linking a shared library.
cannam@85 9785 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
cannam@85 9786
cannam@85 9787 else
cannam@85 9788 GXX=no
cannam@85 9789 with_gnu_ld=no
cannam@85 9790 wlarc=
cannam@85 9791 fi
cannam@85 9792
cannam@85 9793 # PORTME: fill in a description of your system's C++ link characteristics
cannam@85 9794 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@85 9795 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
cannam@85 9796 ld_shlibs_CXX=yes
cannam@85 9797 case $host_os in
cannam@85 9798 aix3*)
cannam@85 9799 # FIXME: insert proper C++ library support
cannam@85 9800 ld_shlibs_CXX=no
cannam@85 9801 ;;
cannam@85 9802 aix4* | aix5*)
cannam@85 9803 if test "$host_cpu" = ia64; then
cannam@85 9804 # On IA64, the linker does run time linking by default, so we don't
cannam@85 9805 # have to do anything special.
cannam@85 9806 aix_use_runtimelinking=no
cannam@85 9807 exp_sym_flag='-Bexport'
cannam@85 9808 no_entry_flag=""
cannam@85 9809 else
cannam@85 9810 aix_use_runtimelinking=no
cannam@85 9811
cannam@85 9812 # Test if we are trying to use run time linking or normal
cannam@85 9813 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cannam@85 9814 # need to do runtime linking.
cannam@85 9815 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
cannam@85 9816 for ld_flag in $LDFLAGS; do
cannam@85 9817 case $ld_flag in
cannam@85 9818 *-brtl*)
cannam@85 9819 aix_use_runtimelinking=yes
cannam@85 9820 break
cannam@85 9821 ;;
cannam@85 9822 esac
cannam@85 9823 done
cannam@85 9824 esac
cannam@85 9825
cannam@85 9826 exp_sym_flag='-bexport'
cannam@85 9827 no_entry_flag='-bnoentry'
cannam@85 9828 fi
cannam@85 9829
cannam@85 9830 # When large executables or shared objects are built, AIX ld can
cannam@85 9831 # have problems creating the table of contents. If linking a library
cannam@85 9832 # or program results in "error TOC overflow" add -mminimal-toc to
cannam@85 9833 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cannam@85 9834 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cannam@85 9835
cannam@85 9836 archive_cmds_CXX=''
cannam@85 9837 hardcode_direct_CXX=yes
cannam@85 9838 hardcode_libdir_separator_CXX=':'
cannam@85 9839 link_all_deplibs_CXX=yes
cannam@85 9840
cannam@85 9841 if test "$GXX" = yes; then
cannam@85 9842 case $host_os in aix4.012|aix4.012.*)
cannam@85 9843 # We only want to do this on AIX 4.2 and lower, the check
cannam@85 9844 # below for broken collect2 doesn't work under 4.3+
cannam@85 9845 collect2name=`${CC} -print-prog-name=collect2`
cannam@85 9846 if test -f "$collect2name" && \
cannam@85 9847 strings "$collect2name" | grep resolve_lib_name >/dev/null
cannam@85 9848 then
cannam@85 9849 # We have reworked collect2
cannam@85 9850 hardcode_direct_CXX=yes
cannam@85 9851 else
cannam@85 9852 # We have old collect2
cannam@85 9853 hardcode_direct_CXX=unsupported
cannam@85 9854 # It fails to find uninstalled libraries when the uninstalled
cannam@85 9855 # path is not listed in the libpath. Setting hardcode_minus_L
cannam@85 9856 # to unsupported forces relinking
cannam@85 9857 hardcode_minus_L_CXX=yes
cannam@85 9858 hardcode_libdir_flag_spec_CXX='-L$libdir'
cannam@85 9859 hardcode_libdir_separator_CXX=
cannam@85 9860 fi
cannam@85 9861 esac
cannam@85 9862 shared_flag='-shared'
cannam@85 9863 else
cannam@85 9864 # not using gcc
cannam@85 9865 if test "$host_cpu" = ia64; then
cannam@85 9866 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cannam@85 9867 # chokes on -Wl,-G. The following line is correct:
cannam@85 9868 shared_flag='-G'
cannam@85 9869 else
cannam@85 9870 if test "$aix_use_runtimelinking" = yes; then
cannam@85 9871 shared_flag='${wl}-G'
cannam@85 9872 else
cannam@85 9873 shared_flag='${wl}-bM:SRE'
cannam@85 9874 fi
cannam@85 9875 fi
cannam@85 9876 fi
cannam@85 9877
cannam@85 9878 # It seems that -bexpall does not export symbols beginning with
cannam@85 9879 # underscore (_), so it is better to generate a list of symbols to export.
cannam@85 9880 always_export_symbols_CXX=yes
cannam@85 9881 if test "$aix_use_runtimelinking" = yes; then
cannam@85 9882 # Warning - without using the other runtime loading flags (-brtl),
cannam@85 9883 # -berok will link without error, but may produce a broken library.
cannam@85 9884 allow_undefined_flag_CXX='-berok'
cannam@85 9885 # Determine the default libpath from the value encoded in an empty executable.
cannam@85 9886 cat >conftest.$ac_ext <<_ACEOF
cannam@85 9887 /* confdefs.h. */
cannam@85 9888 _ACEOF
cannam@85 9889 cat confdefs.h >>conftest.$ac_ext
cannam@85 9890 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 9891 /* end confdefs.h. */
cannam@85 9892
cannam@85 9893 int
cannam@85 9894 main ()
cannam@85 9895 {
cannam@85 9896
cannam@85 9897 ;
cannam@85 9898 return 0;
cannam@85 9899 }
cannam@85 9900 _ACEOF
cannam@85 9901 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 9902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 9903 (eval $ac_link) 2>conftest.er1
cannam@85 9904 ac_status=$?
cannam@85 9905 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 9906 rm -f conftest.er1
cannam@85 9907 cat conftest.err >&5
cannam@85 9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 9909 (exit $ac_status); } &&
cannam@85 9910 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 9912 (eval $ac_try) 2>&5
cannam@85 9913 ac_status=$?
cannam@85 9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 9915 (exit $ac_status); }; } &&
cannam@85 9916 { ac_try='test -s conftest$ac_exeext'
cannam@85 9917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 9918 (eval $ac_try) 2>&5
cannam@85 9919 ac_status=$?
cannam@85 9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 9921 (exit $ac_status); }; }; then
cannam@85 9922
cannam@85 9923 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 9924 }'`
cannam@85 9925 # Check for a 64-bit object if we didn't find anything.
cannam@85 9926 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 9927 }'`; fi
cannam@85 9928 else
cannam@85 9929 echo "$as_me: failed program was:" >&5
cannam@85 9930 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 9931
cannam@85 9932 fi
cannam@85 9933 rm -f conftest.err conftest.$ac_objext \
cannam@85 9934 conftest$ac_exeext conftest.$ac_ext
cannam@85 9935 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
cannam@85 9936
cannam@85 9937 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@85 9938
cannam@85 9939 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cannam@85 9940 else
cannam@85 9941 if test "$host_cpu" = ia64; then
cannam@85 9942 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
cannam@85 9943 allow_undefined_flag_CXX="-z nodefs"
cannam@85 9944 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
cannam@85 9945 else
cannam@85 9946 # Determine the default libpath from the value encoded in an empty executable.
cannam@85 9947 cat >conftest.$ac_ext <<_ACEOF
cannam@85 9948 /* confdefs.h. */
cannam@85 9949 _ACEOF
cannam@85 9950 cat confdefs.h >>conftest.$ac_ext
cannam@85 9951 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 9952 /* end confdefs.h. */
cannam@85 9953
cannam@85 9954 int
cannam@85 9955 main ()
cannam@85 9956 {
cannam@85 9957
cannam@85 9958 ;
cannam@85 9959 return 0;
cannam@85 9960 }
cannam@85 9961 _ACEOF
cannam@85 9962 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 9963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 9964 (eval $ac_link) 2>conftest.er1
cannam@85 9965 ac_status=$?
cannam@85 9966 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 9967 rm -f conftest.er1
cannam@85 9968 cat conftest.err >&5
cannam@85 9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 9970 (exit $ac_status); } &&
cannam@85 9971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 9972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 9973 (eval $ac_try) 2>&5
cannam@85 9974 ac_status=$?
cannam@85 9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 9976 (exit $ac_status); }; } &&
cannam@85 9977 { ac_try='test -s conftest$ac_exeext'
cannam@85 9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 9979 (eval $ac_try) 2>&5
cannam@85 9980 ac_status=$?
cannam@85 9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 9982 (exit $ac_status); }; }; then
cannam@85 9983
cannam@85 9984 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 9985 }'`
cannam@85 9986 # Check for a 64-bit object if we didn't find anything.
cannam@85 9987 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 9988 }'`; fi
cannam@85 9989 else
cannam@85 9990 echo "$as_me: failed program was:" >&5
cannam@85 9991 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 9992
cannam@85 9993 fi
cannam@85 9994 rm -f conftest.err conftest.$ac_objext \
cannam@85 9995 conftest$ac_exeext conftest.$ac_ext
cannam@85 9996 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
cannam@85 9997
cannam@85 9998 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@85 9999 # Warning - without using the other run time loading flags,
cannam@85 10000 # -berok will link without error, but may produce a broken library.
cannam@85 10001 no_undefined_flag_CXX=' ${wl}-bernotok'
cannam@85 10002 allow_undefined_flag_CXX=' ${wl}-berok'
cannam@85 10003 # -bexpall does not export symbols beginning with underscore (_)
cannam@85 10004 always_export_symbols_CXX=yes
cannam@85 10005 # Exported symbols can be pulled into shared objects from archives
cannam@85 10006 whole_archive_flag_spec_CXX=' '
cannam@85 10007 archive_cmds_need_lc_CXX=yes
cannam@85 10008 # This is similar to how AIX traditionally builds it's shared libraries.
cannam@85 10009 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
cannam@85 10010 fi
cannam@85 10011 fi
cannam@85 10012 ;;
cannam@85 10013 chorus*)
cannam@85 10014 case $cc_basename in
cannam@85 10015 *)
cannam@85 10016 # FIXME: insert proper C++ library support
cannam@85 10017 ld_shlibs_CXX=no
cannam@85 10018 ;;
cannam@85 10019 esac
cannam@85 10020 ;;
cannam@85 10021
cannam@85 10022 cygwin* | mingw* | pw32*)
cannam@85 10023 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
cannam@85 10024 # as there is no search path for DLLs.
cannam@85 10025 hardcode_libdir_flag_spec_CXX='-L$libdir'
cannam@85 10026 allow_undefined_flag_CXX=unsupported
cannam@85 10027 always_export_symbols_CXX=no
cannam@85 10028 enable_shared_with_static_runtimes_CXX=yes
cannam@85 10029
cannam@85 10030 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
cannam@85 10031 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
cannam@85 10032 # If the export-symbols file already is a .def file (1st line
cannam@85 10033 # is EXPORTS), use it as is; otherwise, prepend...
cannam@85 10034 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@85 10035 cp $export_symbols $output_objdir/$soname.def;
cannam@85 10036 else
cannam@85 10037 echo EXPORTS > $output_objdir/$soname.def;
cannam@85 10038 cat $export_symbols >> $output_objdir/$soname.def;
cannam@85 10039 fi~
cannam@85 10040 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
cannam@85 10041 else
cannam@85 10042 ld_shlibs_CXX=no
cannam@85 10043 fi
cannam@85 10044 ;;
cannam@85 10045
cannam@85 10046 darwin* | rhapsody*)
cannam@85 10047 if test "$GXX" = yes; then
cannam@85 10048 archive_cmds_need_lc_CXX=no
cannam@85 10049 case "$host_os" in
cannam@85 10050 rhapsody* | darwin1.[012])
cannam@85 10051 allow_undefined_flag_CXX='-undefined suppress'
cannam@85 10052 ;;
cannam@85 10053 *) # Darwin 1.3 on
cannam@85 10054 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
cannam@85 10055 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
cannam@85 10056 else
cannam@85 10057 case ${MACOSX_DEPLOYMENT_TARGET} in
cannam@85 10058 10.[012])
cannam@85 10059 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
cannam@85 10060 ;;
cannam@85 10061 10.*)
cannam@85 10062 allow_undefined_flag_CXX='-undefined dynamic_lookup'
cannam@85 10063 ;;
cannam@85 10064 esac
cannam@85 10065 fi
cannam@85 10066 ;;
cannam@85 10067 esac
cannam@85 10068 lt_int_apple_cc_single_mod=no
cannam@85 10069 output_verbose_link_cmd='echo'
cannam@85 10070 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
cannam@85 10071 lt_int_apple_cc_single_mod=yes
cannam@85 10072 fi
cannam@85 10073 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
cannam@85 10074 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
cannam@85 10075 else
cannam@85 10076 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
cannam@85 10077 fi
cannam@85 10078 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
cannam@85 10079
cannam@85 10080 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
cannam@85 10081 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
cannam@85 10082 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
cannam@85 10083 else
cannam@85 10084 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
cannam@85 10085 fi
cannam@85 10086 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
cannam@85 10087 hardcode_direct_CXX=no
cannam@85 10088 hardcode_automatic_CXX=yes
cannam@85 10089 hardcode_shlibpath_var_CXX=unsupported
cannam@85 10090 whole_archive_flag_spec_CXX='-all_load $convenience'
cannam@85 10091 link_all_deplibs_CXX=yes
cannam@85 10092 else
cannam@85 10093 ld_shlibs_CXX=no
cannam@85 10094 fi
cannam@85 10095 ;;
cannam@85 10096
cannam@85 10097 dgux*)
cannam@85 10098 case $cc_basename in
cannam@85 10099 ec++)
cannam@85 10100 # FIXME: insert proper C++ library support
cannam@85 10101 ld_shlibs_CXX=no
cannam@85 10102 ;;
cannam@85 10103 ghcx)
cannam@85 10104 # Green Hills C++ Compiler
cannam@85 10105 # FIXME: insert proper C++ library support
cannam@85 10106 ld_shlibs_CXX=no
cannam@85 10107 ;;
cannam@85 10108 *)
cannam@85 10109 # FIXME: insert proper C++ library support
cannam@85 10110 ld_shlibs_CXX=no
cannam@85 10111 ;;
cannam@85 10112 esac
cannam@85 10113 ;;
cannam@85 10114 freebsd12*)
cannam@85 10115 # C++ shared libraries reported to be fairly broken before switch to ELF
cannam@85 10116 ld_shlibs_CXX=no
cannam@85 10117 ;;
cannam@85 10118 freebsd-elf*)
cannam@85 10119 archive_cmds_need_lc_CXX=no
cannam@85 10120 ;;
cannam@85 10121 freebsd* | kfreebsd*-gnu)
cannam@85 10122 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
cannam@85 10123 # conventions
cannam@85 10124 ld_shlibs_CXX=yes
cannam@85 10125 ;;
cannam@85 10126 gnu*)
cannam@85 10127 ;;
cannam@85 10128 hpux9*)
cannam@85 10129 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
cannam@85 10130 hardcode_libdir_separator_CXX=:
cannam@85 10131 export_dynamic_flag_spec_CXX='${wl}-E'
cannam@85 10132 hardcode_direct_CXX=yes
cannam@85 10133 hardcode_minus_L_CXX=yes # Not in the search PATH,
cannam@85 10134 # but as the default
cannam@85 10135 # location of the library.
cannam@85 10136
cannam@85 10137 case $cc_basename in
cannam@85 10138 CC)
cannam@85 10139 # FIXME: insert proper C++ library support
cannam@85 10140 ld_shlibs_CXX=no
cannam@85 10141 ;;
cannam@85 10142 aCC)
cannam@85 10143 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cannam@85 10144 # Commands to make compiler produce verbose output that lists
cannam@85 10145 # what "hidden" libraries, object files and flags are used when
cannam@85 10146 # linking a shared library.
cannam@85 10147 #
cannam@85 10148 # There doesn't appear to be a way to prevent this compiler from
cannam@85 10149 # explicitly linking system object files so we need to strip them
cannam@85 10150 # from the output so that they don't get included in the library
cannam@85 10151 # dependencies.
cannam@85 10152 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
cannam@85 10153 ;;
cannam@85 10154 *)
cannam@85 10155 if test "$GXX" = yes; then
cannam@85 10156 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cannam@85 10157 else
cannam@85 10158 # FIXME: insert proper C++ library support
cannam@85 10159 ld_shlibs_CXX=no
cannam@85 10160 fi
cannam@85 10161 ;;
cannam@85 10162 esac
cannam@85 10163 ;;
cannam@85 10164 hpux10*|hpux11*)
cannam@85 10165 if test $with_gnu_ld = no; then
cannam@85 10166 case "$host_cpu" in
cannam@85 10167 hppa*64*)
cannam@85 10168 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
cannam@85 10169 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
cannam@85 10170 hardcode_libdir_separator_CXX=:
cannam@85 10171 ;;
cannam@85 10172 ia64*)
cannam@85 10173 hardcode_libdir_flag_spec_CXX='-L$libdir'
cannam@85 10174 ;;
cannam@85 10175 *)
cannam@85 10176 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
cannam@85 10177 hardcode_libdir_separator_CXX=:
cannam@85 10178 export_dynamic_flag_spec_CXX='${wl}-E'
cannam@85 10179 ;;
cannam@85 10180 esac
cannam@85 10181 fi
cannam@85 10182 case "$host_cpu" in
cannam@85 10183 hppa*64*)
cannam@85 10184 hardcode_direct_CXX=no
cannam@85 10185 hardcode_shlibpath_var_CXX=no
cannam@85 10186 ;;
cannam@85 10187 ia64*)
cannam@85 10188 hardcode_direct_CXX=no
cannam@85 10189 hardcode_shlibpath_var_CXX=no
cannam@85 10190 hardcode_minus_L_CXX=yes # Not in the search PATH,
cannam@85 10191 # but as the default
cannam@85 10192 # location of the library.
cannam@85 10193 ;;
cannam@85 10194 *)
cannam@85 10195 hardcode_direct_CXX=yes
cannam@85 10196 hardcode_minus_L_CXX=yes # Not in the search PATH,
cannam@85 10197 # but as the default
cannam@85 10198 # location of the library.
cannam@85 10199 ;;
cannam@85 10200 esac
cannam@85 10201
cannam@85 10202 case $cc_basename in
cannam@85 10203 CC)
cannam@85 10204 # FIXME: insert proper C++ library support
cannam@85 10205 ld_shlibs_CXX=no
cannam@85 10206 ;;
cannam@85 10207 aCC)
cannam@85 10208 case "$host_cpu" in
cannam@85 10209 hppa*64*|ia64*)
cannam@85 10210 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
cannam@85 10211 ;;
cannam@85 10212 *)
cannam@85 10213 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@85 10214 ;;
cannam@85 10215 esac
cannam@85 10216 # Commands to make compiler produce verbose output that lists
cannam@85 10217 # what "hidden" libraries, object files and flags are used when
cannam@85 10218 # linking a shared library.
cannam@85 10219 #
cannam@85 10220 # There doesn't appear to be a way to prevent this compiler from
cannam@85 10221 # explicitly linking system object files so we need to strip them
cannam@85 10222 # from the output so that they don't get included in the library
cannam@85 10223 # dependencies.
cannam@85 10224 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
cannam@85 10225 ;;
cannam@85 10226 *)
cannam@85 10227 if test "$GXX" = yes; then
cannam@85 10228 if test $with_gnu_ld = no; then
cannam@85 10229 case "$host_cpu" in
cannam@85 10230 ia64*|hppa*64*)
cannam@85 10231 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
cannam@85 10232 ;;
cannam@85 10233 *)
cannam@85 10234 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@85 10235 ;;
cannam@85 10236 esac
cannam@85 10237 fi
cannam@85 10238 else
cannam@85 10239 # FIXME: insert proper C++ library support
cannam@85 10240 ld_shlibs_CXX=no
cannam@85 10241 fi
cannam@85 10242 ;;
cannam@85 10243 esac
cannam@85 10244 ;;
cannam@85 10245 irix5* | irix6*)
cannam@85 10246 case $cc_basename in
cannam@85 10247 CC)
cannam@85 10248 # SGI C++
cannam@85 10249 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
cannam@85 10250
cannam@85 10251 # Archives containing C++ object files must be created using
cannam@85 10252 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
cannam@85 10253 # necessary to make sure instantiated templates are included
cannam@85 10254 # in the archive.
cannam@85 10255 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
cannam@85 10256 ;;
cannam@85 10257 *)
cannam@85 10258 if test "$GXX" = yes; then
cannam@85 10259 if test "$with_gnu_ld" = no; then
cannam@85 10260 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
cannam@85 10261 else
cannam@85 10262 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
cannam@85 10263 fi
cannam@85 10264 fi
cannam@85 10265 link_all_deplibs_CXX=yes
cannam@85 10266 ;;
cannam@85 10267 esac
cannam@85 10268 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
cannam@85 10269 hardcode_libdir_separator_CXX=:
cannam@85 10270 ;;
cannam@85 10271 linux*)
cannam@85 10272 case $cc_basename in
cannam@85 10273 KCC)
cannam@85 10274 # Kuck and Associates, Inc. (KAI) C++ Compiler
cannam@85 10275
cannam@85 10276 # KCC will only create a shared library if the output file
cannam@85 10277 # ends with ".so" (or ".sl" for HP-UX), so rename the library
cannam@85 10278 # to its proper name (with version) after linking.
cannam@85 10279 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
cannam@85 10280 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
cannam@85 10281 # Commands to make compiler produce verbose output that lists
cannam@85 10282 # what "hidden" libraries, object files and flags are used when
cannam@85 10283 # linking a shared library.
cannam@85 10284 #
cannam@85 10285 # There doesn't appear to be a way to prevent this compiler from
cannam@85 10286 # explicitly linking system object files so we need to strip them
cannam@85 10287 # from the output so that they don't get included in the library
cannam@85 10288 # dependencies.
cannam@85 10289 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
cannam@85 10290
cannam@85 10291 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
cannam@85 10292 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cannam@85 10293
cannam@85 10294 # Archives containing C++ object files must be created using
cannam@85 10295 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
cannam@85 10296 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
cannam@85 10297 ;;
cannam@85 10298 icpc)
cannam@85 10299 # Intel C++
cannam@85 10300 with_gnu_ld=yes
cannam@85 10301 archive_cmds_need_lc_CXX=no
cannam@85 10302 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 10303 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@85 10304 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
cannam@85 10305 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cannam@85 10306 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
cannam@85 10307 ;;
cannam@85 10308 cxx)
cannam@85 10309 # Compaq C++
cannam@85 10310 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 10311 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
cannam@85 10312
cannam@85 10313 runpath_var=LD_RUN_PATH
cannam@85 10314 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
cannam@85 10315 hardcode_libdir_separator_CXX=:
cannam@85 10316
cannam@85 10317 # Commands to make compiler produce verbose output that lists
cannam@85 10318 # what "hidden" libraries, object files and flags are used when
cannam@85 10319 # linking a shared library.
cannam@85 10320 #
cannam@85 10321 # There doesn't appear to be a way to prevent this compiler from
cannam@85 10322 # explicitly linking system object files so we need to strip them
cannam@85 10323 # from the output so that they don't get included in the library
cannam@85 10324 # dependencies.
cannam@85 10325 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
cannam@85 10326 ;;
cannam@85 10327 esac
cannam@85 10328 ;;
cannam@85 10329 lynxos*)
cannam@85 10330 # FIXME: insert proper C++ library support
cannam@85 10331 ld_shlibs_CXX=no
cannam@85 10332 ;;
cannam@85 10333 m88k*)
cannam@85 10334 # FIXME: insert proper C++ library support
cannam@85 10335 ld_shlibs_CXX=no
cannam@85 10336 ;;
cannam@85 10337 mvs*)
cannam@85 10338 case $cc_basename in
cannam@85 10339 cxx)
cannam@85 10340 # FIXME: insert proper C++ library support
cannam@85 10341 ld_shlibs_CXX=no
cannam@85 10342 ;;
cannam@85 10343 *)
cannam@85 10344 # FIXME: insert proper C++ library support
cannam@85 10345 ld_shlibs_CXX=no
cannam@85 10346 ;;
cannam@85 10347 esac
cannam@85 10348 ;;
cannam@85 10349 netbsd* | knetbsd*-gnu)
cannam@85 10350 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cannam@85 10351 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
cannam@85 10352 wlarc=
cannam@85 10353 hardcode_libdir_flag_spec_CXX='-R$libdir'
cannam@85 10354 hardcode_direct_CXX=yes
cannam@85 10355 hardcode_shlibpath_var_CXX=no
cannam@85 10356 fi
cannam@85 10357 # Workaround some broken pre-1.5 toolchains
cannam@85 10358 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
cannam@85 10359 ;;
cannam@85 10360 osf3*)
cannam@85 10361 case $cc_basename in
cannam@85 10362 KCC)
cannam@85 10363 # Kuck and Associates, Inc. (KAI) C++ Compiler
cannam@85 10364
cannam@85 10365 # KCC will only create a shared library if the output file
cannam@85 10366 # ends with ".so" (or ".sl" for HP-UX), so rename the library
cannam@85 10367 # to its proper name (with version) after linking.
cannam@85 10368 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
cannam@85 10369
cannam@85 10370 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
cannam@85 10371 hardcode_libdir_separator_CXX=:
cannam@85 10372
cannam@85 10373 # Archives containing C++ object files must be created using
cannam@85 10374 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
cannam@85 10375 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
cannam@85 10376
cannam@85 10377 ;;
cannam@85 10378 RCC)
cannam@85 10379 # Rational C++ 2.4.1
cannam@85 10380 # FIXME: insert proper C++ library support
cannam@85 10381 ld_shlibs_CXX=no
cannam@85 10382 ;;
cannam@85 10383 cxx)
cannam@85 10384 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cannam@85 10385 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
cannam@85 10386
cannam@85 10387 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
cannam@85 10388 hardcode_libdir_separator_CXX=:
cannam@85 10389
cannam@85 10390 # Commands to make compiler produce verbose output that lists
cannam@85 10391 # what "hidden" libraries, object files and flags are used when
cannam@85 10392 # linking a shared library.
cannam@85 10393 #
cannam@85 10394 # There doesn't appear to be a way to prevent this compiler from
cannam@85 10395 # explicitly linking system object files so we need to strip them
cannam@85 10396 # from the output so that they don't get included in the library
cannam@85 10397 # dependencies.
cannam@85 10398 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
cannam@85 10399 ;;
cannam@85 10400 *)
cannam@85 10401 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
cannam@85 10402 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cannam@85 10403 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
cannam@85 10404
cannam@85 10405 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
cannam@85 10406 hardcode_libdir_separator_CXX=:
cannam@85 10407
cannam@85 10408 # Commands to make compiler produce verbose output that lists
cannam@85 10409 # what "hidden" libraries, object files and flags are used when
cannam@85 10410 # linking a shared library.
cannam@85 10411 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
cannam@85 10412
cannam@85 10413 else
cannam@85 10414 # FIXME: insert proper C++ library support
cannam@85 10415 ld_shlibs_CXX=no
cannam@85 10416 fi
cannam@85 10417 ;;
cannam@85 10418 esac
cannam@85 10419 ;;
cannam@85 10420 osf4* | osf5*)
cannam@85 10421 case $cc_basename in
cannam@85 10422 KCC)
cannam@85 10423 # Kuck and Associates, Inc. (KAI) C++ Compiler
cannam@85 10424
cannam@85 10425 # KCC will only create a shared library if the output file
cannam@85 10426 # ends with ".so" (or ".sl" for HP-UX), so rename the library
cannam@85 10427 # to its proper name (with version) after linking.
cannam@85 10428 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
cannam@85 10429
cannam@85 10430 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
cannam@85 10431 hardcode_libdir_separator_CXX=:
cannam@85 10432
cannam@85 10433 # Archives containing C++ object files must be created using
cannam@85 10434 # the KAI C++ compiler.
cannam@85 10435 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
cannam@85 10436 ;;
cannam@85 10437 RCC)
cannam@85 10438 # Rational C++ 2.4.1
cannam@85 10439 # FIXME: insert proper C++ library support
cannam@85 10440 ld_shlibs_CXX=no
cannam@85 10441 ;;
cannam@85 10442 cxx)
cannam@85 10443 allow_undefined_flag_CXX=' -expect_unresolved \*'
cannam@85 10444 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
cannam@85 10445 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
cannam@85 10446 echo "-hidden">> $lib.exp~
cannam@85 10447 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
cannam@85 10448 $rm $lib.exp'
cannam@85 10449
cannam@85 10450 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
cannam@85 10451 hardcode_libdir_separator_CXX=:
cannam@85 10452
cannam@85 10453 # Commands to make compiler produce verbose output that lists
cannam@85 10454 # what "hidden" libraries, object files and flags are used when
cannam@85 10455 # linking a shared library.
cannam@85 10456 #
cannam@85 10457 # There doesn't appear to be a way to prevent this compiler from
cannam@85 10458 # explicitly linking system object files so we need to strip them
cannam@85 10459 # from the output so that they don't get included in the library
cannam@85 10460 # dependencies.
cannam@85 10461 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
cannam@85 10462 ;;
cannam@85 10463 *)
cannam@85 10464 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
cannam@85 10465 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cannam@85 10466 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
cannam@85 10467
cannam@85 10468 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
cannam@85 10469 hardcode_libdir_separator_CXX=:
cannam@85 10470
cannam@85 10471 # Commands to make compiler produce verbose output that lists
cannam@85 10472 # what "hidden" libraries, object files and flags are used when
cannam@85 10473 # linking a shared library.
cannam@85 10474 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
cannam@85 10475
cannam@85 10476 else
cannam@85 10477 # FIXME: insert proper C++ library support
cannam@85 10478 ld_shlibs_CXX=no
cannam@85 10479 fi
cannam@85 10480 ;;
cannam@85 10481 esac
cannam@85 10482 ;;
cannam@85 10483 psos*)
cannam@85 10484 # FIXME: insert proper C++ library support
cannam@85 10485 ld_shlibs_CXX=no
cannam@85 10486 ;;
cannam@85 10487 sco*)
cannam@85 10488 archive_cmds_need_lc_CXX=no
cannam@85 10489 case $cc_basename in
cannam@85 10490 CC)
cannam@85 10491 # FIXME: insert proper C++ library support
cannam@85 10492 ld_shlibs_CXX=no
cannam@85 10493 ;;
cannam@85 10494 *)
cannam@85 10495 # FIXME: insert proper C++ library support
cannam@85 10496 ld_shlibs_CXX=no
cannam@85 10497 ;;
cannam@85 10498 esac
cannam@85 10499 ;;
cannam@85 10500 sunos4*)
cannam@85 10501 case $cc_basename in
cannam@85 10502 CC)
cannam@85 10503 # Sun C++ 4.x
cannam@85 10504 # FIXME: insert proper C++ library support
cannam@85 10505 ld_shlibs_CXX=no
cannam@85 10506 ;;
cannam@85 10507 lcc)
cannam@85 10508 # Lucid
cannam@85 10509 # FIXME: insert proper C++ library support
cannam@85 10510 ld_shlibs_CXX=no
cannam@85 10511 ;;
cannam@85 10512 *)
cannam@85 10513 # FIXME: insert proper C++ library support
cannam@85 10514 ld_shlibs_CXX=no
cannam@85 10515 ;;
cannam@85 10516 esac
cannam@85 10517 ;;
cannam@85 10518 solaris*)
cannam@85 10519 case $cc_basename in
cannam@85 10520 CC)
cannam@85 10521 # Sun C++ 4.2, 5.x and Centerline C++
cannam@85 10522 no_undefined_flag_CXX=' -zdefs'
cannam@85 10523 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@85 10524 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 10525 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
cannam@85 10526
cannam@85 10527 hardcode_libdir_flag_spec_CXX='-R$libdir'
cannam@85 10528 hardcode_shlibpath_var_CXX=no
cannam@85 10529 case $host_os in
cannam@85 10530 solaris2.0-5 | solaris2.0-5.*) ;;
cannam@85 10531 *)
cannam@85 10532 # The C++ compiler is used as linker so we must use $wl
cannam@85 10533 # flag to pass the commands to the underlying system
cannam@85 10534 # linker.
cannam@85 10535 # Supported since Solaris 2.6 (maybe 2.5.1?)
cannam@85 10536 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
cannam@85 10537 ;;
cannam@85 10538 esac
cannam@85 10539 link_all_deplibs_CXX=yes
cannam@85 10540
cannam@85 10541 # Commands to make compiler produce verbose output that lists
cannam@85 10542 # what "hidden" libraries, object files and flags are used when
cannam@85 10543 # linking a shared library.
cannam@85 10544 #
cannam@85 10545 # There doesn't appear to be a way to prevent this compiler from
cannam@85 10546 # explicitly linking system object files so we need to strip them
cannam@85 10547 # from the output so that they don't get included in the library
cannam@85 10548 # dependencies.
cannam@85 10549 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
cannam@85 10550
cannam@85 10551 # Archives containing C++ object files must be created using
cannam@85 10552 # "CC -xar", where "CC" is the Sun C++ compiler. This is
cannam@85 10553 # necessary to make sure instantiated templates are included
cannam@85 10554 # in the archive.
cannam@85 10555 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
cannam@85 10556 ;;
cannam@85 10557 gcx)
cannam@85 10558 # Green Hills C++ Compiler
cannam@85 10559 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cannam@85 10560
cannam@85 10561 # The C++ compiler must be used to create the archive.
cannam@85 10562 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
cannam@85 10563 ;;
cannam@85 10564 *)
cannam@85 10565 # GNU C++ compiler with Solaris linker
cannam@85 10566 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
cannam@85 10567 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
cannam@85 10568 if $CC --version | grep -v '^2\.7' > /dev/null; then
cannam@85 10569 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cannam@85 10570 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 10571 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
cannam@85 10572
cannam@85 10573 # Commands to make compiler produce verbose output that lists
cannam@85 10574 # what "hidden" libraries, object files and flags are used when
cannam@85 10575 # linking a shared library.
cannam@85 10576 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
cannam@85 10577 else
cannam@85 10578 # g++ 2.7 appears to require `-G' NOT `-shared' on this
cannam@85 10579 # platform.
cannam@85 10580 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cannam@85 10581 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 10582 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
cannam@85 10583
cannam@85 10584 # Commands to make compiler produce verbose output that lists
cannam@85 10585 # what "hidden" libraries, object files and flags are used when
cannam@85 10586 # linking a shared library.
cannam@85 10587 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
cannam@85 10588 fi
cannam@85 10589
cannam@85 10590 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
cannam@85 10591 fi
cannam@85 10592 ;;
cannam@85 10593 esac
cannam@85 10594 ;;
cannam@85 10595 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
cannam@85 10596 archive_cmds_need_lc_CXX=no
cannam@85 10597 ;;
cannam@85 10598 tandem*)
cannam@85 10599 case $cc_basename in
cannam@85 10600 NCC)
cannam@85 10601 # NonStop-UX NCC 3.20
cannam@85 10602 # FIXME: insert proper C++ library support
cannam@85 10603 ld_shlibs_CXX=no
cannam@85 10604 ;;
cannam@85 10605 *)
cannam@85 10606 # FIXME: insert proper C++ library support
cannam@85 10607 ld_shlibs_CXX=no
cannam@85 10608 ;;
cannam@85 10609 esac
cannam@85 10610 ;;
cannam@85 10611 vxworks*)
cannam@85 10612 # FIXME: insert proper C++ library support
cannam@85 10613 ld_shlibs_CXX=no
cannam@85 10614 ;;
cannam@85 10615 *)
cannam@85 10616 # FIXME: insert proper C++ library support
cannam@85 10617 ld_shlibs_CXX=no
cannam@85 10618 ;;
cannam@85 10619 esac
cannam@85 10620 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
cannam@85 10621 echo "${ECHO_T}$ld_shlibs_CXX" >&6
cannam@85 10622 test "$ld_shlibs_CXX" = no && can_build_shared=no
cannam@85 10623
cannam@85 10624 GCC_CXX="$GXX"
cannam@85 10625 LD_CXX="$LD"
cannam@85 10626
cannam@85 10627
cannam@85 10628 cat > conftest.$ac_ext <<EOF
cannam@85 10629 class Foo
cannam@85 10630 {
cannam@85 10631 public:
cannam@85 10632 Foo (void) { a = 0; }
cannam@85 10633 private:
cannam@85 10634 int a;
cannam@85 10635 };
cannam@85 10636 EOF
cannam@85 10637
cannam@85 10638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 10639 (eval $ac_compile) 2>&5
cannam@85 10640 ac_status=$?
cannam@85 10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 10642 (exit $ac_status); }; then
cannam@85 10643 # Parse the compiler output and extract the necessary
cannam@85 10644 # objects, libraries and library flags.
cannam@85 10645
cannam@85 10646 # Sentinel used to keep track of whether or not we are before
cannam@85 10647 # the conftest object file.
cannam@85 10648 pre_test_object_deps_done=no
cannam@85 10649
cannam@85 10650 # The `*' in the case matches for architectures that use `case' in
cannam@85 10651 # $output_verbose_cmd can trigger glob expansion during the loop
cannam@85 10652 # eval without this substitution.
cannam@85 10653 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
cannam@85 10654
cannam@85 10655 for p in `eval $output_verbose_link_cmd`; do
cannam@85 10656 case $p in
cannam@85 10657
cannam@85 10658 -L* | -R* | -l*)
cannam@85 10659 # Some compilers place space between "-{L,R}" and the path.
cannam@85 10660 # Remove the space.
cannam@85 10661 if test $p = "-L" \
cannam@85 10662 || test $p = "-R"; then
cannam@85 10663 prev=$p
cannam@85 10664 continue
cannam@85 10665 else
cannam@85 10666 prev=
cannam@85 10667 fi
cannam@85 10668
cannam@85 10669 if test "$pre_test_object_deps_done" = no; then
cannam@85 10670 case $p in
cannam@85 10671 -L* | -R*)
cannam@85 10672 # Internal compiler library paths should come after those
cannam@85 10673 # provided the user. The postdeps already come after the
cannam@85 10674 # user supplied libs so there is no need to process them.
cannam@85 10675 if test -z "$compiler_lib_search_path_CXX"; then
cannam@85 10676 compiler_lib_search_path_CXX="${prev}${p}"
cannam@85 10677 else
cannam@85 10678 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
cannam@85 10679 fi
cannam@85 10680 ;;
cannam@85 10681 # The "-l" case would never come before the object being
cannam@85 10682 # linked, so don't bother handling this case.
cannam@85 10683 esac
cannam@85 10684 else
cannam@85 10685 if test -z "$postdeps_CXX"; then
cannam@85 10686 postdeps_CXX="${prev}${p}"
cannam@85 10687 else
cannam@85 10688 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
cannam@85 10689 fi
cannam@85 10690 fi
cannam@85 10691 ;;
cannam@85 10692
cannam@85 10693 *.$objext)
cannam@85 10694 # This assumes that the test object file only shows up
cannam@85 10695 # once in the compiler output.
cannam@85 10696 if test "$p" = "conftest.$objext"; then
cannam@85 10697 pre_test_object_deps_done=yes
cannam@85 10698 continue
cannam@85 10699 fi
cannam@85 10700
cannam@85 10701 if test "$pre_test_object_deps_done" = no; then
cannam@85 10702 if test -z "$predep_objects_CXX"; then
cannam@85 10703 predep_objects_CXX="$p"
cannam@85 10704 else
cannam@85 10705 predep_objects_CXX="$predep_objects_CXX $p"
cannam@85 10706 fi
cannam@85 10707 else
cannam@85 10708 if test -z "$postdep_objects_CXX"; then
cannam@85 10709 postdep_objects_CXX="$p"
cannam@85 10710 else
cannam@85 10711 postdep_objects_CXX="$postdep_objects_CXX $p"
cannam@85 10712 fi
cannam@85 10713 fi
cannam@85 10714 ;;
cannam@85 10715
cannam@85 10716 *) ;; # Ignore the rest.
cannam@85 10717
cannam@85 10718 esac
cannam@85 10719 done
cannam@85 10720
cannam@85 10721 # Clean up.
cannam@85 10722 rm -f a.out a.exe
cannam@85 10723 else
cannam@85 10724 echo "libtool.m4: error: problem compiling CXX test program"
cannam@85 10725 fi
cannam@85 10726
cannam@85 10727 $rm -f confest.$objext
cannam@85 10728
cannam@85 10729 case " $postdeps_CXX " in
cannam@85 10730 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
cannam@85 10731 esac
cannam@85 10732
cannam@85 10733 lt_prog_compiler_wl_CXX=
cannam@85 10734 lt_prog_compiler_pic_CXX=
cannam@85 10735 lt_prog_compiler_static_CXX=
cannam@85 10736
cannam@85 10737 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
cannam@85 10738 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
cannam@85 10739
cannam@85 10740 # C++ specific cases for pic, static, wl, etc.
cannam@85 10741 if test "$GXX" = yes; then
cannam@85 10742 lt_prog_compiler_wl_CXX='-Wl,'
cannam@85 10743 lt_prog_compiler_static_CXX='-static'
cannam@85 10744
cannam@85 10745 case $host_os in
cannam@85 10746 aix*)
cannam@85 10747 # All AIX code is PIC.
cannam@85 10748 if test "$host_cpu" = ia64; then
cannam@85 10749 # AIX 5 now supports IA64 processor
cannam@85 10750 lt_prog_compiler_static_CXX='-Bstatic'
cannam@85 10751 fi
cannam@85 10752 ;;
cannam@85 10753 amigaos*)
cannam@85 10754 # FIXME: we need at least 68020 code to build shared libraries, but
cannam@85 10755 # adding the `-m68020' flag to GCC prevents building anything better,
cannam@85 10756 # like `-m68040'.
cannam@85 10757 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
cannam@85 10758 ;;
cannam@85 10759 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cannam@85 10760 # PIC is the default for these OSes.
cannam@85 10761 ;;
cannam@85 10762 mingw* | os2* | pw32*)
cannam@85 10763 # This hack is so that the source file can tell whether it is being
cannam@85 10764 # built for inclusion in a dll (and should export symbols for example).
cannam@85 10765 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
cannam@85 10766 ;;
cannam@85 10767 darwin* | rhapsody*)
cannam@85 10768 # PIC is the default on this platform
cannam@85 10769 # Common symbols not allowed in MH_DYLIB files
cannam@85 10770 lt_prog_compiler_pic_CXX='-fno-common'
cannam@85 10771 ;;
cannam@85 10772 *djgpp*)
cannam@85 10773 # DJGPP does not support shared libraries at all
cannam@85 10774 lt_prog_compiler_pic_CXX=
cannam@85 10775 ;;
cannam@85 10776 sysv4*MP*)
cannam@85 10777 if test -d /usr/nec; then
cannam@85 10778 lt_prog_compiler_pic_CXX=-Kconform_pic
cannam@85 10779 fi
cannam@85 10780 ;;
cannam@85 10781 hpux*)
cannam@85 10782 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cannam@85 10783 # not for PA HP-UX.
cannam@85 10784 case "$host_cpu" in
cannam@85 10785 hppa*64*|ia64*)
cannam@85 10786 ;;
cannam@85 10787 *)
cannam@85 10788 lt_prog_compiler_pic_CXX='-fPIC'
cannam@85 10789 ;;
cannam@85 10790 esac
cannam@85 10791 ;;
cannam@85 10792 *)
cannam@85 10793 lt_prog_compiler_pic_CXX='-fPIC'
cannam@85 10794 ;;
cannam@85 10795 esac
cannam@85 10796 else
cannam@85 10797 case $host_os in
cannam@85 10798 aix4* | aix5*)
cannam@85 10799 # All AIX code is PIC.
cannam@85 10800 if test "$host_cpu" = ia64; then
cannam@85 10801 # AIX 5 now supports IA64 processor
cannam@85 10802 lt_prog_compiler_static_CXX='-Bstatic'
cannam@85 10803 else
cannam@85 10804 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
cannam@85 10805 fi
cannam@85 10806 ;;
cannam@85 10807 chorus*)
cannam@85 10808 case $cc_basename in
cannam@85 10809 cxch68)
cannam@85 10810 # Green Hills C++ Compiler
cannam@85 10811 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
cannam@85 10812 ;;
cannam@85 10813 esac
cannam@85 10814 ;;
cannam@85 10815 dgux*)
cannam@85 10816 case $cc_basename in
cannam@85 10817 ec++)
cannam@85 10818 lt_prog_compiler_pic_CXX='-KPIC'
cannam@85 10819 ;;
cannam@85 10820 ghcx)
cannam@85 10821 # Green Hills C++ Compiler
cannam@85 10822 lt_prog_compiler_pic_CXX='-pic'
cannam@85 10823 ;;
cannam@85 10824 *)
cannam@85 10825 ;;
cannam@85 10826 esac
cannam@85 10827 ;;
cannam@85 10828 freebsd* | kfreebsd*-gnu)
cannam@85 10829 # FreeBSD uses GNU C++
cannam@85 10830 ;;
cannam@85 10831 hpux9* | hpux10* | hpux11*)
cannam@85 10832 case $cc_basename in
cannam@85 10833 CC)
cannam@85 10834 lt_prog_compiler_wl_CXX='-Wl,'
cannam@85 10835 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
cannam@85 10836 if test "$host_cpu" != ia64; then
cannam@85 10837 lt_prog_compiler_pic_CXX='+Z'
cannam@85 10838 fi
cannam@85 10839 ;;
cannam@85 10840 aCC)
cannam@85 10841 lt_prog_compiler_wl_CXX='-Wl,'
cannam@85 10842 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
cannam@85 10843 case "$host_cpu" in
cannam@85 10844 hppa*64*|ia64*)
cannam@85 10845 # +Z the default
cannam@85 10846 ;;
cannam@85 10847 *)
cannam@85 10848 lt_prog_compiler_pic_CXX='+Z'
cannam@85 10849 ;;
cannam@85 10850 esac
cannam@85 10851 ;;
cannam@85 10852 *)
cannam@85 10853 ;;
cannam@85 10854 esac
cannam@85 10855 ;;
cannam@85 10856 irix5* | irix6* | nonstopux*)
cannam@85 10857 case $cc_basename in
cannam@85 10858 CC)
cannam@85 10859 lt_prog_compiler_wl_CXX='-Wl,'
cannam@85 10860 lt_prog_compiler_static_CXX='-non_shared'
cannam@85 10861 # CC pic flag -KPIC is the default.
cannam@85 10862 ;;
cannam@85 10863 *)
cannam@85 10864 ;;
cannam@85 10865 esac
cannam@85 10866 ;;
cannam@85 10867 linux*)
cannam@85 10868 case $cc_basename in
cannam@85 10869 KCC)
cannam@85 10870 # KAI C++ Compiler
cannam@85 10871 lt_prog_compiler_wl_CXX='--backend -Wl,'
cannam@85 10872 lt_prog_compiler_pic_CXX='-fPIC'
cannam@85 10873 ;;
cannam@85 10874 icpc)
cannam@85 10875 # Intel C++
cannam@85 10876 lt_prog_compiler_wl_CXX='-Wl,'
cannam@85 10877 lt_prog_compiler_pic_CXX='-KPIC'
cannam@85 10878 lt_prog_compiler_static_CXX='-static'
cannam@85 10879 ;;
cannam@85 10880 cxx)
cannam@85 10881 # Compaq C++
cannam@85 10882 # Make sure the PIC flag is empty. It appears that all Alpha
cannam@85 10883 # Linux and Compaq Tru64 Unix objects are PIC.
cannam@85 10884 lt_prog_compiler_pic_CXX=
cannam@85 10885 lt_prog_compiler_static_CXX='-non_shared'
cannam@85 10886 ;;
cannam@85 10887 *)
cannam@85 10888 ;;
cannam@85 10889 esac
cannam@85 10890 ;;
cannam@85 10891 lynxos*)
cannam@85 10892 ;;
cannam@85 10893 m88k*)
cannam@85 10894 ;;
cannam@85 10895 mvs*)
cannam@85 10896 case $cc_basename in
cannam@85 10897 cxx)
cannam@85 10898 lt_prog_compiler_pic_CXX='-W c,exportall'
cannam@85 10899 ;;
cannam@85 10900 *)
cannam@85 10901 ;;
cannam@85 10902 esac
cannam@85 10903 ;;
cannam@85 10904 netbsd* | knetbsd*-gnu)
cannam@85 10905 ;;
cannam@85 10906 osf3* | osf4* | osf5*)
cannam@85 10907 case $cc_basename in
cannam@85 10908 KCC)
cannam@85 10909 lt_prog_compiler_wl_CXX='--backend -Wl,'
cannam@85 10910 ;;
cannam@85 10911 RCC)
cannam@85 10912 # Rational C++ 2.4.1
cannam@85 10913 lt_prog_compiler_pic_CXX='-pic'
cannam@85 10914 ;;
cannam@85 10915 cxx)
cannam@85 10916 # Digital/Compaq C++
cannam@85 10917 lt_prog_compiler_wl_CXX='-Wl,'
cannam@85 10918 # Make sure the PIC flag is empty. It appears that all Alpha
cannam@85 10919 # Linux and Compaq Tru64 Unix objects are PIC.
cannam@85 10920 lt_prog_compiler_pic_CXX=
cannam@85 10921 lt_prog_compiler_static_CXX='-non_shared'
cannam@85 10922 ;;
cannam@85 10923 *)
cannam@85 10924 ;;
cannam@85 10925 esac
cannam@85 10926 ;;
cannam@85 10927 psos*)
cannam@85 10928 ;;
cannam@85 10929 sco*)
cannam@85 10930 case $cc_basename in
cannam@85 10931 CC)
cannam@85 10932 lt_prog_compiler_pic_CXX='-fPIC'
cannam@85 10933 ;;
cannam@85 10934 *)
cannam@85 10935 ;;
cannam@85 10936 esac
cannam@85 10937 ;;
cannam@85 10938 solaris*)
cannam@85 10939 case $cc_basename in
cannam@85 10940 CC)
cannam@85 10941 # Sun C++ 4.2, 5.x and Centerline C++
cannam@85 10942 lt_prog_compiler_pic_CXX='-KPIC'
cannam@85 10943 lt_prog_compiler_static_CXX='-Bstatic'
cannam@85 10944 lt_prog_compiler_wl_CXX='-Qoption ld '
cannam@85 10945 ;;
cannam@85 10946 gcx)
cannam@85 10947 # Green Hills C++ Compiler
cannam@85 10948 lt_prog_compiler_pic_CXX='-PIC'
cannam@85 10949 ;;
cannam@85 10950 *)
cannam@85 10951 ;;
cannam@85 10952 esac
cannam@85 10953 ;;
cannam@85 10954 sunos4*)
cannam@85 10955 case $cc_basename in
cannam@85 10956 CC)
cannam@85 10957 # Sun C++ 4.x
cannam@85 10958 lt_prog_compiler_pic_CXX='-pic'
cannam@85 10959 lt_prog_compiler_static_CXX='-Bstatic'
cannam@85 10960 ;;
cannam@85 10961 lcc)
cannam@85 10962 # Lucid
cannam@85 10963 lt_prog_compiler_pic_CXX='-pic'
cannam@85 10964 ;;
cannam@85 10965 *)
cannam@85 10966 ;;
cannam@85 10967 esac
cannam@85 10968 ;;
cannam@85 10969 tandem*)
cannam@85 10970 case $cc_basename in
cannam@85 10971 NCC)
cannam@85 10972 # NonStop-UX NCC 3.20
cannam@85 10973 lt_prog_compiler_pic_CXX='-KPIC'
cannam@85 10974 ;;
cannam@85 10975 *)
cannam@85 10976 ;;
cannam@85 10977 esac
cannam@85 10978 ;;
cannam@85 10979 unixware*)
cannam@85 10980 ;;
cannam@85 10981 vxworks*)
cannam@85 10982 ;;
cannam@85 10983 *)
cannam@85 10984 lt_prog_compiler_can_build_shared_CXX=no
cannam@85 10985 ;;
cannam@85 10986 esac
cannam@85 10987 fi
cannam@85 10988
cannam@85 10989 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
cannam@85 10990 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
cannam@85 10991
cannam@85 10992 #
cannam@85 10993 # Check to make sure the PIC flag actually works.
cannam@85 10994 #
cannam@85 10995 if test -n "$lt_prog_compiler_pic_CXX"; then
cannam@85 10996
cannam@85 10997 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
cannam@85 10998 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
cannam@85 10999 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
cannam@85 11000 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 11001 else
cannam@85 11002 lt_prog_compiler_pic_works_CXX=no
cannam@85 11003 ac_outfile=conftest.$ac_objext
cannam@85 11004 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 11005 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
cannam@85 11006 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 11007 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 11008 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 11009 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 11010 # The option is referenced via a variable to avoid confusing sed.
cannam@85 11011 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 11012 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
cannam@85 11013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 11014 -e 's:$: $lt_compiler_flag:'`
cannam@85 11015 (eval echo "\"\$as_me:11015: $lt_compile\"" >&5)
cannam@85 11016 (eval "$lt_compile" 2>conftest.err)
cannam@85 11017 ac_status=$?
cannam@85 11018 cat conftest.err >&5
cannam@85 11019 echo "$as_me:11019: \$? = $ac_status" >&5
cannam@85 11020 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@85 11021 # The compiler can only warn and ignore the option if not recognized
cannam@85 11022 # So say no if there are warnings
cannam@85 11023 if test ! -s conftest.err; then
cannam@85 11024 lt_prog_compiler_pic_works_CXX=yes
cannam@85 11025 fi
cannam@85 11026 fi
cannam@85 11027 $rm conftest*
cannam@85 11028
cannam@85 11029 fi
cannam@85 11030 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
cannam@85 11031 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
cannam@85 11032
cannam@85 11033 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
cannam@85 11034 case $lt_prog_compiler_pic_CXX in
cannam@85 11035 "" | " "*) ;;
cannam@85 11036 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
cannam@85 11037 esac
cannam@85 11038 else
cannam@85 11039 lt_prog_compiler_pic_CXX=
cannam@85 11040 lt_prog_compiler_can_build_shared_CXX=no
cannam@85 11041 fi
cannam@85 11042
cannam@85 11043 fi
cannam@85 11044 case "$host_os" in
cannam@85 11045 # For platforms which do not support PIC, -DPIC is meaningless:
cannam@85 11046 *djgpp*)
cannam@85 11047 lt_prog_compiler_pic_CXX=
cannam@85 11048 ;;
cannam@85 11049 *)
cannam@85 11050 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
cannam@85 11051 ;;
cannam@85 11052 esac
cannam@85 11053
cannam@85 11054 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@85 11055 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
cannam@85 11056 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
cannam@85 11057 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 11058 else
cannam@85 11059 lt_cv_prog_compiler_c_o_CXX=no
cannam@85 11060 $rm -r conftest 2>/dev/null
cannam@85 11061 mkdir conftest
cannam@85 11062 cd conftest
cannam@85 11063 mkdir out
cannam@85 11064 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 11065
cannam@85 11066 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@85 11067 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 11068 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 11069 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 11070 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 11071 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 11072 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
cannam@85 11073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 11074 -e 's:$: $lt_compiler_flag:'`
cannam@85 11075 (eval echo "\"\$as_me:11075: $lt_compile\"" >&5)
cannam@85 11076 (eval "$lt_compile" 2>out/conftest.err)
cannam@85 11077 ac_status=$?
cannam@85 11078 cat out/conftest.err >&5
cannam@85 11079 echo "$as_me:11079: \$? = $ac_status" >&5
cannam@85 11080 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@85 11081 then
cannam@85 11082 # The compiler can only warn and ignore the option if not recognized
cannam@85 11083 # So say no if there are warnings
cannam@85 11084 if test ! -s out/conftest.err; then
cannam@85 11085 lt_cv_prog_compiler_c_o_CXX=yes
cannam@85 11086 fi
cannam@85 11087 fi
cannam@85 11088 chmod u+w .
cannam@85 11089 $rm conftest*
cannam@85 11090 # SGI C++ compiler will create directory out/ii_files/ for
cannam@85 11091 # template instantiation
cannam@85 11092 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
cannam@85 11093 $rm out/* && rmdir out
cannam@85 11094 cd ..
cannam@85 11095 rmdir conftest
cannam@85 11096 $rm conftest*
cannam@85 11097
cannam@85 11098 fi
cannam@85 11099 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cannam@85 11100 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
cannam@85 11101
cannam@85 11102
cannam@85 11103 hard_links="nottested"
cannam@85 11104 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
cannam@85 11105 # do not overwrite the value of need_locks provided by the user
cannam@85 11106 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
cannam@85 11107 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
cannam@85 11108 hard_links=yes
cannam@85 11109 $rm conftest*
cannam@85 11110 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@85 11111 touch conftest.a
cannam@85 11112 ln conftest.a conftest.b 2>&5 || hard_links=no
cannam@85 11113 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@85 11114 echo "$as_me:$LINENO: result: $hard_links" >&5
cannam@85 11115 echo "${ECHO_T}$hard_links" >&6
cannam@85 11116 if test "$hard_links" = no; then
cannam@85 11117 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cannam@85 11118 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
cannam@85 11119 need_locks=warn
cannam@85 11120 fi
cannam@85 11121 else
cannam@85 11122 need_locks=no
cannam@85 11123 fi
cannam@85 11124
cannam@85 11125 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@85 11126 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
cannam@85 11127
cannam@85 11128 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@85 11129 case $host_os in
cannam@85 11130 aix4* | aix5*)
cannam@85 11131 # If we're using GNU nm, then we don't want the "-C" option.
cannam@85 11132 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cannam@85 11133 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
cannam@85 11134 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
cannam@85 11135 else
cannam@85 11136 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
cannam@85 11137 fi
cannam@85 11138 ;;
cannam@85 11139 pw32*)
cannam@85 11140 export_symbols_cmds_CXX="$ltdll_cmds"
cannam@85 11141 ;;
cannam@85 11142 cygwin* | mingw*)
cannam@85 11143 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
cannam@85 11144 ;;
cannam@85 11145 *)
cannam@85 11146 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@85 11147 ;;
cannam@85 11148 esac
cannam@85 11149
cannam@85 11150 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
cannam@85 11151 echo "${ECHO_T}$ld_shlibs_CXX" >&6
cannam@85 11152 test "$ld_shlibs_CXX" = no && can_build_shared=no
cannam@85 11153
cannam@85 11154 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cannam@85 11155 if test "$GCC" = yes; then
cannam@85 11156 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
cannam@85 11157 fi
cannam@85 11158
cannam@85 11159 #
cannam@85 11160 # Do we need to explicitly link libc?
cannam@85 11161 #
cannam@85 11162 case "x$archive_cmds_need_lc_CXX" in
cannam@85 11163 x|xyes)
cannam@85 11164 # Assume -lc should be added
cannam@85 11165 archive_cmds_need_lc_CXX=yes
cannam@85 11166
cannam@85 11167 if test "$enable_shared" = yes && test "$GCC" = yes; then
cannam@85 11168 case $archive_cmds_CXX in
cannam@85 11169 *'~'*)
cannam@85 11170 # FIXME: we may have to deal with multi-command sequences.
cannam@85 11171 ;;
cannam@85 11172 '$CC '*)
cannam@85 11173 # Test whether the compiler implicitly links with -lc since on some
cannam@85 11174 # systems, -lgcc has to come before -lc. If gcc already passes -lc
cannam@85 11175 # to ld, don't add -lc before -lgcc.
cannam@85 11176 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
cannam@85 11177 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
cannam@85 11178 $rm conftest*
cannam@85 11179 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 11180
cannam@85 11181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 11182 (eval $ac_compile) 2>&5
cannam@85 11183 ac_status=$?
cannam@85 11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 11185 (exit $ac_status); } 2>conftest.err; then
cannam@85 11186 soname=conftest
cannam@85 11187 lib=conftest
cannam@85 11188 libobjs=conftest.$ac_objext
cannam@85 11189 deplibs=
cannam@85 11190 wl=$lt_prog_compiler_wl_CXX
cannam@85 11191 compiler_flags=-v
cannam@85 11192 linker_flags=-v
cannam@85 11193 verstring=
cannam@85 11194 output_objdir=.
cannam@85 11195 libname=conftest
cannam@85 11196 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
cannam@85 11197 allow_undefined_flag_CXX=
cannam@85 11198 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
cannam@85 11199 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
cannam@85 11200 ac_status=$?
cannam@85 11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 11202 (exit $ac_status); }
cannam@85 11203 then
cannam@85 11204 archive_cmds_need_lc_CXX=no
cannam@85 11205 else
cannam@85 11206 archive_cmds_need_lc_CXX=yes
cannam@85 11207 fi
cannam@85 11208 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
cannam@85 11209 else
cannam@85 11210 cat conftest.err 1>&5
cannam@85 11211 fi
cannam@85 11212 $rm conftest*
cannam@85 11213 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
cannam@85 11214 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
cannam@85 11215 ;;
cannam@85 11216 esac
cannam@85 11217 fi
cannam@85 11218 ;;
cannam@85 11219 esac
cannam@85 11220
cannam@85 11221 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
cannam@85 11222 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
cannam@85 11223 library_names_spec=
cannam@85 11224 libname_spec='lib$name'
cannam@85 11225 soname_spec=
cannam@85 11226 shrext=".so"
cannam@85 11227 postinstall_cmds=
cannam@85 11228 postuninstall_cmds=
cannam@85 11229 finish_cmds=
cannam@85 11230 finish_eval=
cannam@85 11231 shlibpath_var=
cannam@85 11232 shlibpath_overrides_runpath=unknown
cannam@85 11233 version_type=none
cannam@85 11234 dynamic_linker="$host_os ld.so"
cannam@85 11235 sys_lib_dlsearch_path_spec="/lib /usr/lib"
cannam@85 11236 if test "$GCC" = yes; then
cannam@85 11237 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
cannam@85 11238 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
cannam@85 11239 # if the path contains ";" then we assume it to be the separator
cannam@85 11240 # otherwise default to the standard path separator (i.e. ":") - it is
cannam@85 11241 # assumed that no part of a normal pathname contains ";" but that should
cannam@85 11242 # okay in the real world where ";" in dirpaths is itself problematic.
cannam@85 11243 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@85 11244 else
cannam@85 11245 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@85 11246 fi
cannam@85 11247 else
cannam@85 11248 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
cannam@85 11249 fi
cannam@85 11250 need_lib_prefix=unknown
cannam@85 11251 hardcode_into_libs=no
cannam@85 11252
cannam@85 11253 # when you set need_version to no, make sure it does not cause -set_version
cannam@85 11254 # flags to be left without arguments
cannam@85 11255 need_version=unknown
cannam@85 11256
cannam@85 11257 case $host_os in
cannam@85 11258 aix3*)
cannam@85 11259 version_type=linux
cannam@85 11260 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
cannam@85 11261 shlibpath_var=LIBPATH
cannam@85 11262
cannam@85 11263 # AIX 3 has no versioning support, so we append a major version to the name.
cannam@85 11264 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11265 ;;
cannam@85 11266
cannam@85 11267 aix4* | aix5*)
cannam@85 11268 version_type=linux
cannam@85 11269 need_lib_prefix=no
cannam@85 11270 need_version=no
cannam@85 11271 hardcode_into_libs=yes
cannam@85 11272 if test "$host_cpu" = ia64; then
cannam@85 11273 # AIX 5 supports IA64
cannam@85 11274 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
cannam@85 11275 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11276 else
cannam@85 11277 # With GCC up to 2.95.x, collect2 would create an import file
cannam@85 11278 # for dependence libraries. The import file would start with
cannam@85 11279 # the line `#! .'. This would cause the generated library to
cannam@85 11280 # depend on `.', always an invalid library. This was fixed in
cannam@85 11281 # development snapshots of GCC prior to 3.0.
cannam@85 11282 case $host_os in
cannam@85 11283 aix4 | aix4.[01] | aix4.[01].*)
cannam@85 11284 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
cannam@85 11285 echo ' yes '
cannam@85 11286 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
cannam@85 11287 :
cannam@85 11288 else
cannam@85 11289 can_build_shared=no
cannam@85 11290 fi
cannam@85 11291 ;;
cannam@85 11292 esac
cannam@85 11293 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
cannam@85 11294 # soname into executable. Probably we can add versioning support to
cannam@85 11295 # collect2, so additional links can be useful in future.
cannam@85 11296 if test "$aix_use_runtimelinking" = yes; then
cannam@85 11297 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
cannam@85 11298 # instead of lib<name>.a to let people know that these are not
cannam@85 11299 # typical AIX shared libraries.
cannam@85 11300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11301 else
cannam@85 11302 # We preserve .a as extension for shared libraries through AIX4.2
cannam@85 11303 # and later when we are not doing run time linking.
cannam@85 11304 library_names_spec='${libname}${release}.a $libname.a'
cannam@85 11305 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11306 fi
cannam@85 11307 shlibpath_var=LIBPATH
cannam@85 11308 fi
cannam@85 11309 ;;
cannam@85 11310
cannam@85 11311 amigaos*)
cannam@85 11312 library_names_spec='$libname.ixlibrary $libname.a'
cannam@85 11313 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cannam@85 11314 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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@85 11315 ;;
cannam@85 11316
cannam@85 11317 beos*)
cannam@85 11318 library_names_spec='${libname}${shared_ext}'
cannam@85 11319 dynamic_linker="$host_os ld.so"
cannam@85 11320 shlibpath_var=LIBRARY_PATH
cannam@85 11321 ;;
cannam@85 11322
cannam@85 11323 bsdi4*)
cannam@85 11324 version_type=linux
cannam@85 11325 need_version=no
cannam@85 11326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11327 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11328 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
cannam@85 11329 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11330 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
cannam@85 11331 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
cannam@85 11332 # the default ld.so.conf also contains /usr/contrib/lib and
cannam@85 11333 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
cannam@85 11334 # libtool to hard-code these into programs
cannam@85 11335 ;;
cannam@85 11336
cannam@85 11337 cygwin* | mingw* | pw32*)
cannam@85 11338 version_type=windows
cannam@85 11339 shrext=".dll"
cannam@85 11340 need_version=no
cannam@85 11341 need_lib_prefix=no
cannam@85 11342
cannam@85 11343 case $GCC,$host_os in
cannam@85 11344 yes,cygwin* | yes,mingw* | yes,pw32*)
cannam@85 11345 library_names_spec='$libname.dll.a'
cannam@85 11346 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@85 11347 postinstall_cmds='base_file=`basename \${file}`~
cannam@85 11348 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
cannam@85 11349 dldir=$destdir/`dirname \$dlpath`~
cannam@85 11350 test -d \$dldir || mkdir -p \$dldir~
cannam@85 11351 $install_prog $dir/$dlname \$dldir/$dlname'
cannam@85 11352 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@85 11353 dlpath=$dir/\$dldll~
cannam@85 11354 $rm \$dlpath'
cannam@85 11355 shlibpath_overrides_runpath=yes
cannam@85 11356
cannam@85 11357 case $host_os in
cannam@85 11358 cygwin*)
cannam@85 11359 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cannam@85 11360 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 11361 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cannam@85 11362 ;;
cannam@85 11363 mingw*)
cannam@85 11364 # MinGW DLLs use traditional 'lib' prefix
cannam@85 11365 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 11366 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
cannam@85 11367 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
cannam@85 11368 # It is most probably a Windows format PATH printed by
cannam@85 11369 # mingw gcc, but we are running on Cygwin. Gcc prints its search
cannam@85 11370 # path with ; separators, and with drive letters. We can handle the
cannam@85 11371 # drive letters (cygwin fileutils understands them), so leave them,
cannam@85 11372 # especially as we might pass files found there to a mingw objdump,
cannam@85 11373 # which wouldn't understand a cygwinified path. Ahh.
cannam@85 11374 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@85 11375 else
cannam@85 11376 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@85 11377 fi
cannam@85 11378 ;;
cannam@85 11379 pw32*)
cannam@85 11380 # pw32 DLLs use 'pw' prefix rather than 'lib'
cannam@85 11381 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
cannam@85 11382 ;;
cannam@85 11383 esac
cannam@85 11384 ;;
cannam@85 11385
cannam@85 11386 *)
cannam@85 11387 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cannam@85 11388 ;;
cannam@85 11389 esac
cannam@85 11390 dynamic_linker='Win32 ld.exe'
cannam@85 11391 # FIXME: first we should search . and the directory the executable is in
cannam@85 11392 shlibpath_var=PATH
cannam@85 11393 ;;
cannam@85 11394
cannam@85 11395 darwin* | rhapsody*)
cannam@85 11396 dynamic_linker="$host_os dyld"
cannam@85 11397 version_type=darwin
cannam@85 11398 need_lib_prefix=no
cannam@85 11399 need_version=no
cannam@85 11400 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
cannam@85 11401 soname_spec='${libname}${release}${major}$shared_ext'
cannam@85 11402 shlibpath_overrides_runpath=yes
cannam@85 11403 shlibpath_var=DYLD_LIBRARY_PATH
cannam@85 11404 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
cannam@85 11405 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
cannam@85 11406 if test "$GCC" = yes; then
cannam@85 11407 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
cannam@85 11408 else
cannam@85 11409 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
cannam@85 11410 fi
cannam@85 11411 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
cannam@85 11412 ;;
cannam@85 11413
cannam@85 11414 dgux*)
cannam@85 11415 version_type=linux
cannam@85 11416 need_lib_prefix=no
cannam@85 11417 need_version=no
cannam@85 11418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
cannam@85 11419 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11420 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11421 ;;
cannam@85 11422
cannam@85 11423 freebsd1*)
cannam@85 11424 dynamic_linker=no
cannam@85 11425 ;;
cannam@85 11426
cannam@85 11427 kfreebsd*-gnu)
cannam@85 11428 version_type=linux
cannam@85 11429 need_lib_prefix=no
cannam@85 11430 need_version=no
cannam@85 11431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 11432 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11433 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11434 shlibpath_overrides_runpath=no
cannam@85 11435 hardcode_into_libs=yes
cannam@85 11436 dynamic_linker='GNU ld.so'
cannam@85 11437 ;;
cannam@85 11438
cannam@85 11439 freebsd*)
cannam@85 11440 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
cannam@85 11441 version_type=freebsd-$objformat
cannam@85 11442 case $version_type in
cannam@85 11443 freebsd-elf*)
cannam@85 11444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@85 11445 need_version=no
cannam@85 11446 need_lib_prefix=no
cannam@85 11447 ;;
cannam@85 11448 freebsd-*)
cannam@85 11449 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
cannam@85 11450 need_version=yes
cannam@85 11451 ;;
cannam@85 11452 esac
cannam@85 11453 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11454 case $host_os in
cannam@85 11455 freebsd2*)
cannam@85 11456 shlibpath_overrides_runpath=yes
cannam@85 11457 ;;
cannam@85 11458 freebsd3.01* | freebsdelf3.01*)
cannam@85 11459 shlibpath_overrides_runpath=yes
cannam@85 11460 hardcode_into_libs=yes
cannam@85 11461 ;;
cannam@85 11462 *) # from 3.2 on
cannam@85 11463 shlibpath_overrides_runpath=no
cannam@85 11464 hardcode_into_libs=yes
cannam@85 11465 ;;
cannam@85 11466 esac
cannam@85 11467 ;;
cannam@85 11468
cannam@85 11469 gnu*)
cannam@85 11470 version_type=linux
cannam@85 11471 need_lib_prefix=no
cannam@85 11472 need_version=no
cannam@85 11473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
cannam@85 11474 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11475 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11476 hardcode_into_libs=yes
cannam@85 11477 ;;
cannam@85 11478
cannam@85 11479 hpux9* | hpux10* | hpux11*)
cannam@85 11480 # Give a soname corresponding to the major version so that dld.sl refuses to
cannam@85 11481 # link against other versions.
cannam@85 11482 version_type=sunos
cannam@85 11483 need_lib_prefix=no
cannam@85 11484 need_version=no
cannam@85 11485 case "$host_cpu" in
cannam@85 11486 ia64*)
cannam@85 11487 shrext='.so'
cannam@85 11488 hardcode_into_libs=yes
cannam@85 11489 dynamic_linker="$host_os dld.so"
cannam@85 11490 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11491 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@85 11492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11493 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11494 if test "X$HPUX_IA64_MODE" = X32; then
cannam@85 11495 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
cannam@85 11496 else
cannam@85 11497 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
cannam@85 11498 fi
cannam@85 11499 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@85 11500 ;;
cannam@85 11501 hppa*64*)
cannam@85 11502 shrext='.sl'
cannam@85 11503 hardcode_into_libs=yes
cannam@85 11504 dynamic_linker="$host_os dld.sl"
cannam@85 11505 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
cannam@85 11506 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@85 11507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11508 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11509 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
cannam@85 11510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@85 11511 ;;
cannam@85 11512 *)
cannam@85 11513 shrext='.sl'
cannam@85 11514 dynamic_linker="$host_os dld.sl"
cannam@85 11515 shlibpath_var=SHLIB_PATH
cannam@85 11516 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cannam@85 11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11518 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11519 ;;
cannam@85 11520 esac
cannam@85 11521 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cannam@85 11522 postinstall_cmds='chmod 555 $lib'
cannam@85 11523 ;;
cannam@85 11524
cannam@85 11525 irix5* | irix6* | nonstopux*)
cannam@85 11526 case $host_os in
cannam@85 11527 nonstopux*) version_type=nonstopux ;;
cannam@85 11528 *)
cannam@85 11529 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@85 11530 version_type=linux
cannam@85 11531 else
cannam@85 11532 version_type=irix
cannam@85 11533 fi ;;
cannam@85 11534 esac
cannam@85 11535 need_lib_prefix=no
cannam@85 11536 need_version=no
cannam@85 11537 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@85 11539 case $host_os in
cannam@85 11540 irix5* | nonstopux*)
cannam@85 11541 libsuff= shlibsuff=
cannam@85 11542 ;;
cannam@85 11543 *)
cannam@85 11544 case $LD in # libtool.m4 will add one of these switches to LD
cannam@85 11545 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
cannam@85 11546 libsuff= shlibsuff= libmagic=32-bit;;
cannam@85 11547 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
cannam@85 11548 libsuff=32 shlibsuff=N32 libmagic=N32;;
cannam@85 11549 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
cannam@85 11550 libsuff=64 shlibsuff=64 libmagic=64-bit;;
cannam@85 11551 *) libsuff= shlibsuff= libmagic=never-match;;
cannam@85 11552 esac
cannam@85 11553 ;;
cannam@85 11554 esac
cannam@85 11555 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
cannam@85 11556 shlibpath_overrides_runpath=no
cannam@85 11557 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
cannam@85 11558 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
cannam@85 11559 hardcode_into_libs=yes
cannam@85 11560 ;;
cannam@85 11561
cannam@85 11562 # No shared lib support for Linux oldld, aout, or coff.
cannam@85 11563 linux*oldld* | linux*aout* | linux*coff*)
cannam@85 11564 dynamic_linker=no
cannam@85 11565 ;;
cannam@85 11566
cannam@85 11567 # This must be Linux ELF.
cannam@85 11568 linux*)
cannam@85 11569 version_type=linux
cannam@85 11570 need_lib_prefix=no
cannam@85 11571 need_version=no
cannam@85 11572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11573 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
cannam@85 11575 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11576 shlibpath_overrides_runpath=no
cannam@85 11577 # This implies no fast_install, which is unacceptable.
cannam@85 11578 # Some rework will be needed to allow for fast_install
cannam@85 11579 # before this can be enabled.
cannam@85 11580 hardcode_into_libs=yes
cannam@85 11581
cannam@85 11582 # Append ld.so.conf contents to the search path
cannam@85 11583 if test -f /etc/ld.so.conf; then
cannam@85 11584 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
cannam@85 11585 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
cannam@85 11586 fi
cannam@85 11587
cannam@85 11588 # We used to test for /lib/ld.so.1 and disable shared libraries on
cannam@85 11589 # powerpc, because MkLinux only supported shared libraries with the
cannam@85 11590 # GNU dynamic linker. Since this was broken with cross compilers,
cannam@85 11591 # most powerpc-linux boxes support dynamic linking these days and
cannam@85 11592 # people can always --disable-shared, the test was removed, and we
cannam@85 11593 # assume the GNU/Linux dynamic linker is in use.
cannam@85 11594 dynamic_linker='GNU/Linux ld.so'
cannam@85 11595 ;;
cannam@85 11596
cannam@85 11597 knetbsd*-gnu)
cannam@85 11598 version_type=linux
cannam@85 11599 need_lib_prefix=no
cannam@85 11600 need_version=no
cannam@85 11601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 11602 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11603 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11604 shlibpath_overrides_runpath=no
cannam@85 11605 hardcode_into_libs=yes
cannam@85 11606 dynamic_linker='GNU ld.so'
cannam@85 11607 ;;
cannam@85 11608
cannam@85 11609 netbsd*)
cannam@85 11610 version_type=sunos
cannam@85 11611 need_lib_prefix=no
cannam@85 11612 need_version=no
cannam@85 11613 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cannam@85 11614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 11615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@85 11616 dynamic_linker='NetBSD (a.out) ld.so'
cannam@85 11617 else
cannam@85 11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 11619 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11620 dynamic_linker='NetBSD ld.elf_so'
cannam@85 11621 fi
cannam@85 11622 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11623 shlibpath_overrides_runpath=yes
cannam@85 11624 hardcode_into_libs=yes
cannam@85 11625 ;;
cannam@85 11626
cannam@85 11627 newsos6)
cannam@85 11628 version_type=linux
cannam@85 11629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11630 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11631 shlibpath_overrides_runpath=yes
cannam@85 11632 ;;
cannam@85 11633
cannam@85 11634 nto-qnx*)
cannam@85 11635 version_type=linux
cannam@85 11636 need_lib_prefix=no
cannam@85 11637 need_version=no
cannam@85 11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11639 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11640 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11641 shlibpath_overrides_runpath=yes
cannam@85 11642 ;;
cannam@85 11643
cannam@85 11644 openbsd*)
cannam@85 11645 version_type=sunos
cannam@85 11646 need_lib_prefix=no
cannam@85 11647 need_version=yes
cannam@85 11648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 11649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@85 11650 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11651 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@85 11652 case $host_os in
cannam@85 11653 openbsd2.[89] | openbsd2.[89].*)
cannam@85 11654 shlibpath_overrides_runpath=no
cannam@85 11655 ;;
cannam@85 11656 *)
cannam@85 11657 shlibpath_overrides_runpath=yes
cannam@85 11658 ;;
cannam@85 11659 esac
cannam@85 11660 else
cannam@85 11661 shlibpath_overrides_runpath=yes
cannam@85 11662 fi
cannam@85 11663 ;;
cannam@85 11664
cannam@85 11665 os2*)
cannam@85 11666 libname_spec='$name'
cannam@85 11667 shrext=".dll"
cannam@85 11668 need_lib_prefix=no
cannam@85 11669 library_names_spec='$libname${shared_ext} $libname.a'
cannam@85 11670 dynamic_linker='OS/2 ld.exe'
cannam@85 11671 shlibpath_var=LIBPATH
cannam@85 11672 ;;
cannam@85 11673
cannam@85 11674 osf3* | osf4* | osf5*)
cannam@85 11675 version_type=osf
cannam@85 11676 need_lib_prefix=no
cannam@85 11677 need_version=no
cannam@85 11678 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11680 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11681 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cannam@85 11682 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
cannam@85 11683 ;;
cannam@85 11684
cannam@85 11685 sco3.2v5*)
cannam@85 11686 version_type=osf
cannam@85 11687 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11689 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11690 ;;
cannam@85 11691
cannam@85 11692 solaris*)
cannam@85 11693 version_type=linux
cannam@85 11694 need_lib_prefix=no
cannam@85 11695 need_version=no
cannam@85 11696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11697 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11698 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11699 shlibpath_overrides_runpath=yes
cannam@85 11700 hardcode_into_libs=yes
cannam@85 11701 # ldd complains unless libraries are executable
cannam@85 11702 postinstall_cmds='chmod +x $lib'
cannam@85 11703 ;;
cannam@85 11704
cannam@85 11705 sunos4*)
cannam@85 11706 version_type=sunos
cannam@85 11707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 11708 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
cannam@85 11709 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11710 shlibpath_overrides_runpath=yes
cannam@85 11711 if test "$with_gnu_ld" = yes; then
cannam@85 11712 need_lib_prefix=no
cannam@85 11713 fi
cannam@85 11714 need_version=yes
cannam@85 11715 ;;
cannam@85 11716
cannam@85 11717 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@85 11718 version_type=linux
cannam@85 11719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11720 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11721 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11722 case $host_vendor in
cannam@85 11723 sni)
cannam@85 11724 shlibpath_overrides_runpath=no
cannam@85 11725 need_lib_prefix=no
cannam@85 11726 export_dynamic_flag_spec='${wl}-Blargedynsym'
cannam@85 11727 runpath_var=LD_RUN_PATH
cannam@85 11728 ;;
cannam@85 11729 siemens)
cannam@85 11730 need_lib_prefix=no
cannam@85 11731 ;;
cannam@85 11732 motorola)
cannam@85 11733 need_lib_prefix=no
cannam@85 11734 need_version=no
cannam@85 11735 shlibpath_overrides_runpath=no
cannam@85 11736 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
cannam@85 11737 ;;
cannam@85 11738 esac
cannam@85 11739 ;;
cannam@85 11740
cannam@85 11741 sysv4*MP*)
cannam@85 11742 if test -d /usr/nec ;then
cannam@85 11743 version_type=linux
cannam@85 11744 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
cannam@85 11745 soname_spec='$libname${shared_ext}.$major'
cannam@85 11746 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11747 fi
cannam@85 11748 ;;
cannam@85 11749
cannam@85 11750 uts4*)
cannam@85 11751 version_type=linux
cannam@85 11752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11753 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11754 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11755 ;;
cannam@85 11756
cannam@85 11757 *)
cannam@85 11758 dynamic_linker=no
cannam@85 11759 ;;
cannam@85 11760 esac
cannam@85 11761 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
cannam@85 11762 echo "${ECHO_T}$dynamic_linker" >&6
cannam@85 11763 test "$dynamic_linker" = no && can_build_shared=no
cannam@85 11764
cannam@85 11765 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
cannam@85 11766 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
cannam@85 11767 hardcode_action_CXX=
cannam@85 11768 if test -n "$hardcode_libdir_flag_spec_CXX" || \
cannam@85 11769 test -n "$runpath_var CXX" || \
cannam@85 11770 test "X$hardcode_automatic_CXX"="Xyes" ; then
cannam@85 11771
cannam@85 11772 # We can hardcode non-existant directories.
cannam@85 11773 if test "$hardcode_direct_CXX" != no &&
cannam@85 11774 # If the only mechanism to avoid hardcoding is shlibpath_var, we
cannam@85 11775 # have to relink, otherwise we might link with an installed library
cannam@85 11776 # when we should be linking with a yet-to-be-installed one
cannam@85 11777 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
cannam@85 11778 test "$hardcode_minus_L_CXX" != no; then
cannam@85 11779 # Linking always hardcodes the temporary library directory.
cannam@85 11780 hardcode_action_CXX=relink
cannam@85 11781 else
cannam@85 11782 # We can link without hardcoding, and we can hardcode nonexisting dirs.
cannam@85 11783 hardcode_action_CXX=immediate
cannam@85 11784 fi
cannam@85 11785 else
cannam@85 11786 # We cannot hardcode anything, or else we can only hardcode existing
cannam@85 11787 # directories.
cannam@85 11788 hardcode_action_CXX=unsupported
cannam@85 11789 fi
cannam@85 11790 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
cannam@85 11791 echo "${ECHO_T}$hardcode_action_CXX" >&6
cannam@85 11792
cannam@85 11793 if test "$hardcode_action_CXX" = relink; then
cannam@85 11794 # Fast installation is not supported
cannam@85 11795 enable_fast_install=no
cannam@85 11796 elif test "$shlibpath_overrides_runpath" = yes ||
cannam@85 11797 test "$enable_shared" = no; then
cannam@85 11798 # Fast installation is not necessary
cannam@85 11799 enable_fast_install=needless
cannam@85 11800 fi
cannam@85 11801
cannam@85 11802 striplib=
cannam@85 11803 old_striplib=
cannam@85 11804 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
cannam@85 11805 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
cannam@85 11806 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
cannam@85 11807 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
cannam@85 11808 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cannam@85 11809 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 11810 echo "${ECHO_T}yes" >&6
cannam@85 11811 else
cannam@85 11812 # FIXME - insert some real tests, host_os isn't really good enough
cannam@85 11813 case $host_os in
cannam@85 11814 darwin*)
cannam@85 11815 if test -n "$STRIP" ; then
cannam@85 11816 striplib="$STRIP -x"
cannam@85 11817 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 11818 echo "${ECHO_T}yes" >&6
cannam@85 11819 else
cannam@85 11820 echo "$as_me:$LINENO: result: no" >&5
cannam@85 11821 echo "${ECHO_T}no" >&6
cannam@85 11822 fi
cannam@85 11823 ;;
cannam@85 11824 *)
cannam@85 11825 echo "$as_me:$LINENO: result: no" >&5
cannam@85 11826 echo "${ECHO_T}no" >&6
cannam@85 11827 ;;
cannam@85 11828 esac
cannam@85 11829 fi
cannam@85 11830
cannam@85 11831 if test "x$enable_dlopen" != xyes; then
cannam@85 11832 enable_dlopen=unknown
cannam@85 11833 enable_dlopen_self=unknown
cannam@85 11834 enable_dlopen_self_static=unknown
cannam@85 11835 else
cannam@85 11836 lt_cv_dlopen=no
cannam@85 11837 lt_cv_dlopen_libs=
cannam@85 11838
cannam@85 11839 case $host_os in
cannam@85 11840 beos*)
cannam@85 11841 lt_cv_dlopen="load_add_on"
cannam@85 11842 lt_cv_dlopen_libs=
cannam@85 11843 lt_cv_dlopen_self=yes
cannam@85 11844 ;;
cannam@85 11845
cannam@85 11846 mingw* | pw32*)
cannam@85 11847 lt_cv_dlopen="LoadLibrary"
cannam@85 11848 lt_cv_dlopen_libs=
cannam@85 11849 ;;
cannam@85 11850
cannam@85 11851 cygwin*)
cannam@85 11852 lt_cv_dlopen="dlopen"
cannam@85 11853 lt_cv_dlopen_libs=
cannam@85 11854 ;;
cannam@85 11855
cannam@85 11856 darwin*)
cannam@85 11857 # if libdl is installed we need to link against it
cannam@85 11858 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
cannam@85 11859 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
cannam@85 11860 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
cannam@85 11861 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 11862 else
cannam@85 11863 ac_check_lib_save_LIBS=$LIBS
cannam@85 11864 LIBS="-ldl $LIBS"
cannam@85 11865 cat >conftest.$ac_ext <<_ACEOF
cannam@85 11866 /* confdefs.h. */
cannam@85 11867 _ACEOF
cannam@85 11868 cat confdefs.h >>conftest.$ac_ext
cannam@85 11869 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 11870 /* end confdefs.h. */
cannam@85 11871
cannam@85 11872 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 11873 #ifdef __cplusplus
cannam@85 11874 extern "C"
cannam@85 11875 #endif
cannam@85 11876 /* We use char because int might match the return type of a gcc2
cannam@85 11877 builtin and then its argument prototype would still apply. */
cannam@85 11878 char dlopen ();
cannam@85 11879 int
cannam@85 11880 main ()
cannam@85 11881 {
cannam@85 11882 dlopen ();
cannam@85 11883 ;
cannam@85 11884 return 0;
cannam@85 11885 }
cannam@85 11886 _ACEOF
cannam@85 11887 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 11888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 11889 (eval $ac_link) 2>conftest.er1
cannam@85 11890 ac_status=$?
cannam@85 11891 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 11892 rm -f conftest.er1
cannam@85 11893 cat conftest.err >&5
cannam@85 11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 11895 (exit $ac_status); } &&
cannam@85 11896 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 11897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 11898 (eval $ac_try) 2>&5
cannam@85 11899 ac_status=$?
cannam@85 11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 11901 (exit $ac_status); }; } &&
cannam@85 11902 { ac_try='test -s conftest$ac_exeext'
cannam@85 11903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 11904 (eval $ac_try) 2>&5
cannam@85 11905 ac_status=$?
cannam@85 11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 11907 (exit $ac_status); }; }; then
cannam@85 11908 ac_cv_lib_dl_dlopen=yes
cannam@85 11909 else
cannam@85 11910 echo "$as_me: failed program was:" >&5
cannam@85 11911 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 11912
cannam@85 11913 ac_cv_lib_dl_dlopen=no
cannam@85 11914 fi
cannam@85 11915 rm -f conftest.err conftest.$ac_objext \
cannam@85 11916 conftest$ac_exeext conftest.$ac_ext
cannam@85 11917 LIBS=$ac_check_lib_save_LIBS
cannam@85 11918 fi
cannam@85 11919 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
cannam@85 11920 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
cannam@85 11921 if test $ac_cv_lib_dl_dlopen = yes; then
cannam@85 11922 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@85 11923 else
cannam@85 11924
cannam@85 11925 lt_cv_dlopen="dyld"
cannam@85 11926 lt_cv_dlopen_libs=
cannam@85 11927 lt_cv_dlopen_self=yes
cannam@85 11928
cannam@85 11929 fi
cannam@85 11930
cannam@85 11931 ;;
cannam@85 11932
cannam@85 11933 *)
cannam@85 11934 echo "$as_me:$LINENO: checking for shl_load" >&5
cannam@85 11935 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
cannam@85 11936 if test "${ac_cv_func_shl_load+set}" = set; then
cannam@85 11937 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 11938 else
cannam@85 11939 cat >conftest.$ac_ext <<_ACEOF
cannam@85 11940 /* confdefs.h. */
cannam@85 11941 _ACEOF
cannam@85 11942 cat confdefs.h >>conftest.$ac_ext
cannam@85 11943 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 11944 /* end confdefs.h. */
cannam@85 11945 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
cannam@85 11946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
cannam@85 11947 #define shl_load innocuous_shl_load
cannam@85 11948
cannam@85 11949 /* System header to define __stub macros and hopefully few prototypes,
cannam@85 11950 which can conflict with char shl_load (); below.
cannam@85 11951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 11952 <limits.h> exists even on freestanding compilers. */
cannam@85 11953
cannam@85 11954 #ifdef __STDC__
cannam@85 11955 # include <limits.h>
cannam@85 11956 #else
cannam@85 11957 # include <assert.h>
cannam@85 11958 #endif
cannam@85 11959
cannam@85 11960 #undef shl_load
cannam@85 11961
cannam@85 11962 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 11963 #ifdef __cplusplus
cannam@85 11964 extern "C"
cannam@85 11965 {
cannam@85 11966 #endif
cannam@85 11967 /* We use char because int might match the return type of a gcc2
cannam@85 11968 builtin and then its argument prototype would still apply. */
cannam@85 11969 char shl_load ();
cannam@85 11970 /* The GNU C library defines this for functions which it implements
cannam@85 11971 to always fail with ENOSYS. Some functions are actually named
cannam@85 11972 something starting with __ and the normal name is an alias. */
cannam@85 11973 #if defined (__stub_shl_load) || defined (__stub___shl_load)
cannam@85 11974 choke me
cannam@85 11975 #else
cannam@85 11976 char (*f) () = shl_load;
cannam@85 11977 #endif
cannam@85 11978 #ifdef __cplusplus
cannam@85 11979 }
cannam@85 11980 #endif
cannam@85 11981
cannam@85 11982 int
cannam@85 11983 main ()
cannam@85 11984 {
cannam@85 11985 return f != shl_load;
cannam@85 11986 ;
cannam@85 11987 return 0;
cannam@85 11988 }
cannam@85 11989 _ACEOF
cannam@85 11990 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 11991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 11992 (eval $ac_link) 2>conftest.er1
cannam@85 11993 ac_status=$?
cannam@85 11994 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 11995 rm -f conftest.er1
cannam@85 11996 cat conftest.err >&5
cannam@85 11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 11998 (exit $ac_status); } &&
cannam@85 11999 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 12001 (eval $ac_try) 2>&5
cannam@85 12002 ac_status=$?
cannam@85 12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12004 (exit $ac_status); }; } &&
cannam@85 12005 { ac_try='test -s conftest$ac_exeext'
cannam@85 12006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 12007 (eval $ac_try) 2>&5
cannam@85 12008 ac_status=$?
cannam@85 12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12010 (exit $ac_status); }; }; then
cannam@85 12011 ac_cv_func_shl_load=yes
cannam@85 12012 else
cannam@85 12013 echo "$as_me: failed program was:" >&5
cannam@85 12014 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 12015
cannam@85 12016 ac_cv_func_shl_load=no
cannam@85 12017 fi
cannam@85 12018 rm -f conftest.err conftest.$ac_objext \
cannam@85 12019 conftest$ac_exeext conftest.$ac_ext
cannam@85 12020 fi
cannam@85 12021 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
cannam@85 12022 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
cannam@85 12023 if test $ac_cv_func_shl_load = yes; then
cannam@85 12024 lt_cv_dlopen="shl_load"
cannam@85 12025 else
cannam@85 12026 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
cannam@85 12027 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
cannam@85 12028 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
cannam@85 12029 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 12030 else
cannam@85 12031 ac_check_lib_save_LIBS=$LIBS
cannam@85 12032 LIBS="-ldld $LIBS"
cannam@85 12033 cat >conftest.$ac_ext <<_ACEOF
cannam@85 12034 /* confdefs.h. */
cannam@85 12035 _ACEOF
cannam@85 12036 cat confdefs.h >>conftest.$ac_ext
cannam@85 12037 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 12038 /* end confdefs.h. */
cannam@85 12039
cannam@85 12040 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 12041 #ifdef __cplusplus
cannam@85 12042 extern "C"
cannam@85 12043 #endif
cannam@85 12044 /* We use char because int might match the return type of a gcc2
cannam@85 12045 builtin and then its argument prototype would still apply. */
cannam@85 12046 char shl_load ();
cannam@85 12047 int
cannam@85 12048 main ()
cannam@85 12049 {
cannam@85 12050 shl_load ();
cannam@85 12051 ;
cannam@85 12052 return 0;
cannam@85 12053 }
cannam@85 12054 _ACEOF
cannam@85 12055 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 12056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 12057 (eval $ac_link) 2>conftest.er1
cannam@85 12058 ac_status=$?
cannam@85 12059 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 12060 rm -f conftest.er1
cannam@85 12061 cat conftest.err >&5
cannam@85 12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12063 (exit $ac_status); } &&
cannam@85 12064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 12066 (eval $ac_try) 2>&5
cannam@85 12067 ac_status=$?
cannam@85 12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12069 (exit $ac_status); }; } &&
cannam@85 12070 { ac_try='test -s conftest$ac_exeext'
cannam@85 12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 12072 (eval $ac_try) 2>&5
cannam@85 12073 ac_status=$?
cannam@85 12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12075 (exit $ac_status); }; }; then
cannam@85 12076 ac_cv_lib_dld_shl_load=yes
cannam@85 12077 else
cannam@85 12078 echo "$as_me: failed program was:" >&5
cannam@85 12079 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 12080
cannam@85 12081 ac_cv_lib_dld_shl_load=no
cannam@85 12082 fi
cannam@85 12083 rm -f conftest.err conftest.$ac_objext \
cannam@85 12084 conftest$ac_exeext conftest.$ac_ext
cannam@85 12085 LIBS=$ac_check_lib_save_LIBS
cannam@85 12086 fi
cannam@85 12087 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
cannam@85 12088 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
cannam@85 12089 if test $ac_cv_lib_dld_shl_load = yes; then
cannam@85 12090 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
cannam@85 12091 else
cannam@85 12092 echo "$as_me:$LINENO: checking for dlopen" >&5
cannam@85 12093 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
cannam@85 12094 if test "${ac_cv_func_dlopen+set}" = set; then
cannam@85 12095 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 12096 else
cannam@85 12097 cat >conftest.$ac_ext <<_ACEOF
cannam@85 12098 /* confdefs.h. */
cannam@85 12099 _ACEOF
cannam@85 12100 cat confdefs.h >>conftest.$ac_ext
cannam@85 12101 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 12102 /* end confdefs.h. */
cannam@85 12103 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
cannam@85 12104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
cannam@85 12105 #define dlopen innocuous_dlopen
cannam@85 12106
cannam@85 12107 /* System header to define __stub macros and hopefully few prototypes,
cannam@85 12108 which can conflict with char dlopen (); below.
cannam@85 12109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 12110 <limits.h> exists even on freestanding compilers. */
cannam@85 12111
cannam@85 12112 #ifdef __STDC__
cannam@85 12113 # include <limits.h>
cannam@85 12114 #else
cannam@85 12115 # include <assert.h>
cannam@85 12116 #endif
cannam@85 12117
cannam@85 12118 #undef dlopen
cannam@85 12119
cannam@85 12120 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 12121 #ifdef __cplusplus
cannam@85 12122 extern "C"
cannam@85 12123 {
cannam@85 12124 #endif
cannam@85 12125 /* We use char because int might match the return type of a gcc2
cannam@85 12126 builtin and then its argument prototype would still apply. */
cannam@85 12127 char dlopen ();
cannam@85 12128 /* The GNU C library defines this for functions which it implements
cannam@85 12129 to always fail with ENOSYS. Some functions are actually named
cannam@85 12130 something starting with __ and the normal name is an alias. */
cannam@85 12131 #if defined (__stub_dlopen) || defined (__stub___dlopen)
cannam@85 12132 choke me
cannam@85 12133 #else
cannam@85 12134 char (*f) () = dlopen;
cannam@85 12135 #endif
cannam@85 12136 #ifdef __cplusplus
cannam@85 12137 }
cannam@85 12138 #endif
cannam@85 12139
cannam@85 12140 int
cannam@85 12141 main ()
cannam@85 12142 {
cannam@85 12143 return f != dlopen;
cannam@85 12144 ;
cannam@85 12145 return 0;
cannam@85 12146 }
cannam@85 12147 _ACEOF
cannam@85 12148 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 12149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 12150 (eval $ac_link) 2>conftest.er1
cannam@85 12151 ac_status=$?
cannam@85 12152 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 12153 rm -f conftest.er1
cannam@85 12154 cat conftest.err >&5
cannam@85 12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12156 (exit $ac_status); } &&
cannam@85 12157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 12158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 12159 (eval $ac_try) 2>&5
cannam@85 12160 ac_status=$?
cannam@85 12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12162 (exit $ac_status); }; } &&
cannam@85 12163 { ac_try='test -s conftest$ac_exeext'
cannam@85 12164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 12165 (eval $ac_try) 2>&5
cannam@85 12166 ac_status=$?
cannam@85 12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12168 (exit $ac_status); }; }; then
cannam@85 12169 ac_cv_func_dlopen=yes
cannam@85 12170 else
cannam@85 12171 echo "$as_me: failed program was:" >&5
cannam@85 12172 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 12173
cannam@85 12174 ac_cv_func_dlopen=no
cannam@85 12175 fi
cannam@85 12176 rm -f conftest.err conftest.$ac_objext \
cannam@85 12177 conftest$ac_exeext conftest.$ac_ext
cannam@85 12178 fi
cannam@85 12179 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
cannam@85 12180 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
cannam@85 12181 if test $ac_cv_func_dlopen = yes; then
cannam@85 12182 lt_cv_dlopen="dlopen"
cannam@85 12183 else
cannam@85 12184 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
cannam@85 12185 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
cannam@85 12186 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
cannam@85 12187 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 12188 else
cannam@85 12189 ac_check_lib_save_LIBS=$LIBS
cannam@85 12190 LIBS="-ldl $LIBS"
cannam@85 12191 cat >conftest.$ac_ext <<_ACEOF
cannam@85 12192 /* confdefs.h. */
cannam@85 12193 _ACEOF
cannam@85 12194 cat confdefs.h >>conftest.$ac_ext
cannam@85 12195 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 12196 /* end confdefs.h. */
cannam@85 12197
cannam@85 12198 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 12199 #ifdef __cplusplus
cannam@85 12200 extern "C"
cannam@85 12201 #endif
cannam@85 12202 /* We use char because int might match the return type of a gcc2
cannam@85 12203 builtin and then its argument prototype would still apply. */
cannam@85 12204 char dlopen ();
cannam@85 12205 int
cannam@85 12206 main ()
cannam@85 12207 {
cannam@85 12208 dlopen ();
cannam@85 12209 ;
cannam@85 12210 return 0;
cannam@85 12211 }
cannam@85 12212 _ACEOF
cannam@85 12213 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 12214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 12215 (eval $ac_link) 2>conftest.er1
cannam@85 12216 ac_status=$?
cannam@85 12217 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 12218 rm -f conftest.er1
cannam@85 12219 cat conftest.err >&5
cannam@85 12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12221 (exit $ac_status); } &&
cannam@85 12222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 12224 (eval $ac_try) 2>&5
cannam@85 12225 ac_status=$?
cannam@85 12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12227 (exit $ac_status); }; } &&
cannam@85 12228 { ac_try='test -s conftest$ac_exeext'
cannam@85 12229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 12230 (eval $ac_try) 2>&5
cannam@85 12231 ac_status=$?
cannam@85 12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12233 (exit $ac_status); }; }; then
cannam@85 12234 ac_cv_lib_dl_dlopen=yes
cannam@85 12235 else
cannam@85 12236 echo "$as_me: failed program was:" >&5
cannam@85 12237 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 12238
cannam@85 12239 ac_cv_lib_dl_dlopen=no
cannam@85 12240 fi
cannam@85 12241 rm -f conftest.err conftest.$ac_objext \
cannam@85 12242 conftest$ac_exeext conftest.$ac_ext
cannam@85 12243 LIBS=$ac_check_lib_save_LIBS
cannam@85 12244 fi
cannam@85 12245 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
cannam@85 12246 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
cannam@85 12247 if test $ac_cv_lib_dl_dlopen = yes; then
cannam@85 12248 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@85 12249 else
cannam@85 12250 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
cannam@85 12251 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
cannam@85 12252 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
cannam@85 12253 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 12254 else
cannam@85 12255 ac_check_lib_save_LIBS=$LIBS
cannam@85 12256 LIBS="-lsvld $LIBS"
cannam@85 12257 cat >conftest.$ac_ext <<_ACEOF
cannam@85 12258 /* confdefs.h. */
cannam@85 12259 _ACEOF
cannam@85 12260 cat confdefs.h >>conftest.$ac_ext
cannam@85 12261 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 12262 /* end confdefs.h. */
cannam@85 12263
cannam@85 12264 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 12265 #ifdef __cplusplus
cannam@85 12266 extern "C"
cannam@85 12267 #endif
cannam@85 12268 /* We use char because int might match the return type of a gcc2
cannam@85 12269 builtin and then its argument prototype would still apply. */
cannam@85 12270 char dlopen ();
cannam@85 12271 int
cannam@85 12272 main ()
cannam@85 12273 {
cannam@85 12274 dlopen ();
cannam@85 12275 ;
cannam@85 12276 return 0;
cannam@85 12277 }
cannam@85 12278 _ACEOF
cannam@85 12279 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 12280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 12281 (eval $ac_link) 2>conftest.er1
cannam@85 12282 ac_status=$?
cannam@85 12283 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 12284 rm -f conftest.er1
cannam@85 12285 cat conftest.err >&5
cannam@85 12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12287 (exit $ac_status); } &&
cannam@85 12288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 12290 (eval $ac_try) 2>&5
cannam@85 12291 ac_status=$?
cannam@85 12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12293 (exit $ac_status); }; } &&
cannam@85 12294 { ac_try='test -s conftest$ac_exeext'
cannam@85 12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 12296 (eval $ac_try) 2>&5
cannam@85 12297 ac_status=$?
cannam@85 12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12299 (exit $ac_status); }; }; then
cannam@85 12300 ac_cv_lib_svld_dlopen=yes
cannam@85 12301 else
cannam@85 12302 echo "$as_me: failed program was:" >&5
cannam@85 12303 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 12304
cannam@85 12305 ac_cv_lib_svld_dlopen=no
cannam@85 12306 fi
cannam@85 12307 rm -f conftest.err conftest.$ac_objext \
cannam@85 12308 conftest$ac_exeext conftest.$ac_ext
cannam@85 12309 LIBS=$ac_check_lib_save_LIBS
cannam@85 12310 fi
cannam@85 12311 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
cannam@85 12312 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
cannam@85 12313 if test $ac_cv_lib_svld_dlopen = yes; then
cannam@85 12314 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
cannam@85 12315 else
cannam@85 12316 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
cannam@85 12317 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
cannam@85 12318 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
cannam@85 12319 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 12320 else
cannam@85 12321 ac_check_lib_save_LIBS=$LIBS
cannam@85 12322 LIBS="-ldld $LIBS"
cannam@85 12323 cat >conftest.$ac_ext <<_ACEOF
cannam@85 12324 /* confdefs.h. */
cannam@85 12325 _ACEOF
cannam@85 12326 cat confdefs.h >>conftest.$ac_ext
cannam@85 12327 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 12328 /* end confdefs.h. */
cannam@85 12329
cannam@85 12330 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 12331 #ifdef __cplusplus
cannam@85 12332 extern "C"
cannam@85 12333 #endif
cannam@85 12334 /* We use char because int might match the return type of a gcc2
cannam@85 12335 builtin and then its argument prototype would still apply. */
cannam@85 12336 char dld_link ();
cannam@85 12337 int
cannam@85 12338 main ()
cannam@85 12339 {
cannam@85 12340 dld_link ();
cannam@85 12341 ;
cannam@85 12342 return 0;
cannam@85 12343 }
cannam@85 12344 _ACEOF
cannam@85 12345 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 12346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 12347 (eval $ac_link) 2>conftest.er1
cannam@85 12348 ac_status=$?
cannam@85 12349 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 12350 rm -f conftest.er1
cannam@85 12351 cat conftest.err >&5
cannam@85 12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12353 (exit $ac_status); } &&
cannam@85 12354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 12356 (eval $ac_try) 2>&5
cannam@85 12357 ac_status=$?
cannam@85 12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12359 (exit $ac_status); }; } &&
cannam@85 12360 { ac_try='test -s conftest$ac_exeext'
cannam@85 12361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 12362 (eval $ac_try) 2>&5
cannam@85 12363 ac_status=$?
cannam@85 12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12365 (exit $ac_status); }; }; then
cannam@85 12366 ac_cv_lib_dld_dld_link=yes
cannam@85 12367 else
cannam@85 12368 echo "$as_me: failed program was:" >&5
cannam@85 12369 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 12370
cannam@85 12371 ac_cv_lib_dld_dld_link=no
cannam@85 12372 fi
cannam@85 12373 rm -f conftest.err conftest.$ac_objext \
cannam@85 12374 conftest$ac_exeext conftest.$ac_ext
cannam@85 12375 LIBS=$ac_check_lib_save_LIBS
cannam@85 12376 fi
cannam@85 12377 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
cannam@85 12378 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
cannam@85 12379 if test $ac_cv_lib_dld_dld_link = yes; then
cannam@85 12380 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
cannam@85 12381 fi
cannam@85 12382
cannam@85 12383
cannam@85 12384 fi
cannam@85 12385
cannam@85 12386
cannam@85 12387 fi
cannam@85 12388
cannam@85 12389
cannam@85 12390 fi
cannam@85 12391
cannam@85 12392
cannam@85 12393 fi
cannam@85 12394
cannam@85 12395
cannam@85 12396 fi
cannam@85 12397
cannam@85 12398 ;;
cannam@85 12399 esac
cannam@85 12400
cannam@85 12401 if test "x$lt_cv_dlopen" != xno; then
cannam@85 12402 enable_dlopen=yes
cannam@85 12403 else
cannam@85 12404 enable_dlopen=no
cannam@85 12405 fi
cannam@85 12406
cannam@85 12407 case $lt_cv_dlopen in
cannam@85 12408 dlopen)
cannam@85 12409 save_CPPFLAGS="$CPPFLAGS"
cannam@85 12410 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
cannam@85 12411
cannam@85 12412 save_LDFLAGS="$LDFLAGS"
cannam@85 12413 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
cannam@85 12414
cannam@85 12415 save_LIBS="$LIBS"
cannam@85 12416 LIBS="$lt_cv_dlopen_libs $LIBS"
cannam@85 12417
cannam@85 12418 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
cannam@85 12419 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
cannam@85 12420 if test "${lt_cv_dlopen_self+set}" = set; then
cannam@85 12421 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 12422 else
cannam@85 12423 if test "$cross_compiling" = yes; then :
cannam@85 12424 lt_cv_dlopen_self=cross
cannam@85 12425 else
cannam@85 12426 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@85 12427 lt_status=$lt_dlunknown
cannam@85 12428 cat > conftest.$ac_ext <<EOF
cannam@85 12429 #line 12429 "configure"
cannam@85 12430 #include "confdefs.h"
cannam@85 12431
cannam@85 12432 #if HAVE_DLFCN_H
cannam@85 12433 #include <dlfcn.h>
cannam@85 12434 #endif
cannam@85 12435
cannam@85 12436 #include <stdio.h>
cannam@85 12437
cannam@85 12438 #ifdef RTLD_GLOBAL
cannam@85 12439 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@85 12440 #else
cannam@85 12441 # ifdef DL_GLOBAL
cannam@85 12442 # define LT_DLGLOBAL DL_GLOBAL
cannam@85 12443 # else
cannam@85 12444 # define LT_DLGLOBAL 0
cannam@85 12445 # endif
cannam@85 12446 #endif
cannam@85 12447
cannam@85 12448 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@85 12449 find out it does not work in some platform. */
cannam@85 12450 #ifndef LT_DLLAZY_OR_NOW
cannam@85 12451 # ifdef RTLD_LAZY
cannam@85 12452 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@85 12453 # else
cannam@85 12454 # ifdef DL_LAZY
cannam@85 12455 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@85 12456 # else
cannam@85 12457 # ifdef RTLD_NOW
cannam@85 12458 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@85 12459 # else
cannam@85 12460 # ifdef DL_NOW
cannam@85 12461 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@85 12462 # else
cannam@85 12463 # define LT_DLLAZY_OR_NOW 0
cannam@85 12464 # endif
cannam@85 12465 # endif
cannam@85 12466 # endif
cannam@85 12467 # endif
cannam@85 12468 #endif
cannam@85 12469
cannam@85 12470 #ifdef __cplusplus
cannam@85 12471 extern "C" void exit (int);
cannam@85 12472 #endif
cannam@85 12473
cannam@85 12474 void fnord() { int i=42;}
cannam@85 12475 int main ()
cannam@85 12476 {
cannam@85 12477 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@85 12478 int status = $lt_dlunknown;
cannam@85 12479
cannam@85 12480 if (self)
cannam@85 12481 {
cannam@85 12482 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@85 12483 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@85 12484 /* dlclose (self); */
cannam@85 12485 }
cannam@85 12486
cannam@85 12487 exit (status);
cannam@85 12488 }
cannam@85 12489 EOF
cannam@85 12490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 12491 (eval $ac_link) 2>&5
cannam@85 12492 ac_status=$?
cannam@85 12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12494 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@85 12495 (./conftest; exit; ) 2>/dev/null
cannam@85 12496 lt_status=$?
cannam@85 12497 case x$lt_status in
cannam@85 12498 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
cannam@85 12499 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
cannam@85 12500 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
cannam@85 12501 esac
cannam@85 12502 else :
cannam@85 12503 # compilation failed
cannam@85 12504 lt_cv_dlopen_self=no
cannam@85 12505 fi
cannam@85 12506 fi
cannam@85 12507 rm -fr conftest*
cannam@85 12508
cannam@85 12509
cannam@85 12510 fi
cannam@85 12511 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
cannam@85 12512 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
cannam@85 12513
cannam@85 12514 if test "x$lt_cv_dlopen_self" = xyes; then
cannam@85 12515 LDFLAGS="$LDFLAGS $link_static_flag"
cannam@85 12516 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
cannam@85 12517 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
cannam@85 12518 if test "${lt_cv_dlopen_self_static+set}" = set; then
cannam@85 12519 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 12520 else
cannam@85 12521 if test "$cross_compiling" = yes; then :
cannam@85 12522 lt_cv_dlopen_self_static=cross
cannam@85 12523 else
cannam@85 12524 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@85 12525 lt_status=$lt_dlunknown
cannam@85 12526 cat > conftest.$ac_ext <<EOF
cannam@85 12527 #line 12527 "configure"
cannam@85 12528 #include "confdefs.h"
cannam@85 12529
cannam@85 12530 #if HAVE_DLFCN_H
cannam@85 12531 #include <dlfcn.h>
cannam@85 12532 #endif
cannam@85 12533
cannam@85 12534 #include <stdio.h>
cannam@85 12535
cannam@85 12536 #ifdef RTLD_GLOBAL
cannam@85 12537 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@85 12538 #else
cannam@85 12539 # ifdef DL_GLOBAL
cannam@85 12540 # define LT_DLGLOBAL DL_GLOBAL
cannam@85 12541 # else
cannam@85 12542 # define LT_DLGLOBAL 0
cannam@85 12543 # endif
cannam@85 12544 #endif
cannam@85 12545
cannam@85 12546 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@85 12547 find out it does not work in some platform. */
cannam@85 12548 #ifndef LT_DLLAZY_OR_NOW
cannam@85 12549 # ifdef RTLD_LAZY
cannam@85 12550 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@85 12551 # else
cannam@85 12552 # ifdef DL_LAZY
cannam@85 12553 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@85 12554 # else
cannam@85 12555 # ifdef RTLD_NOW
cannam@85 12556 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@85 12557 # else
cannam@85 12558 # ifdef DL_NOW
cannam@85 12559 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@85 12560 # else
cannam@85 12561 # define LT_DLLAZY_OR_NOW 0
cannam@85 12562 # endif
cannam@85 12563 # endif
cannam@85 12564 # endif
cannam@85 12565 # endif
cannam@85 12566 #endif
cannam@85 12567
cannam@85 12568 #ifdef __cplusplus
cannam@85 12569 extern "C" void exit (int);
cannam@85 12570 #endif
cannam@85 12571
cannam@85 12572 void fnord() { int i=42;}
cannam@85 12573 int main ()
cannam@85 12574 {
cannam@85 12575 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@85 12576 int status = $lt_dlunknown;
cannam@85 12577
cannam@85 12578 if (self)
cannam@85 12579 {
cannam@85 12580 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@85 12581 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@85 12582 /* dlclose (self); */
cannam@85 12583 }
cannam@85 12584
cannam@85 12585 exit (status);
cannam@85 12586 }
cannam@85 12587 EOF
cannam@85 12588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 12589 (eval $ac_link) 2>&5
cannam@85 12590 ac_status=$?
cannam@85 12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12592 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@85 12593 (./conftest; exit; ) 2>/dev/null
cannam@85 12594 lt_status=$?
cannam@85 12595 case x$lt_status in
cannam@85 12596 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@85 12597 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@85 12598 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
cannam@85 12599 esac
cannam@85 12600 else :
cannam@85 12601 # compilation failed
cannam@85 12602 lt_cv_dlopen_self_static=no
cannam@85 12603 fi
cannam@85 12604 fi
cannam@85 12605 rm -fr conftest*
cannam@85 12606
cannam@85 12607
cannam@85 12608 fi
cannam@85 12609 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
cannam@85 12610 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
cannam@85 12611 fi
cannam@85 12612
cannam@85 12613 CPPFLAGS="$save_CPPFLAGS"
cannam@85 12614 LDFLAGS="$save_LDFLAGS"
cannam@85 12615 LIBS="$save_LIBS"
cannam@85 12616 ;;
cannam@85 12617 esac
cannam@85 12618
cannam@85 12619 case $lt_cv_dlopen_self in
cannam@85 12620 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
cannam@85 12621 *) enable_dlopen_self=unknown ;;
cannam@85 12622 esac
cannam@85 12623
cannam@85 12624 case $lt_cv_dlopen_self_static in
cannam@85 12625 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
cannam@85 12626 *) enable_dlopen_self_static=unknown ;;
cannam@85 12627 esac
cannam@85 12628 fi
cannam@85 12629
cannam@85 12630
cannam@85 12631 # The else clause should only fire when bootstrapping the
cannam@85 12632 # libtool distribution, otherwise you forgot to ship ltmain.sh
cannam@85 12633 # with your package, and you will get complaints that there are
cannam@85 12634 # no rules to generate ltmain.sh.
cannam@85 12635 if test -f "$ltmain"; then
cannam@85 12636 # See if we are running on zsh, and set the options which allow our commands through
cannam@85 12637 # without removal of \ escapes.
cannam@85 12638 if test -n "${ZSH_VERSION+set}" ; then
cannam@85 12639 setopt NO_GLOB_SUBST
cannam@85 12640 fi
cannam@85 12641 # Now quote all the things that may contain metacharacters while being
cannam@85 12642 # careful not to overquote the AC_SUBSTed values. We take copies of the
cannam@85 12643 # variables and quote the copies for generation of the libtool script.
cannam@85 12644 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
cannam@85 12645 SED SHELL STRIP \
cannam@85 12646 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
cannam@85 12647 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
cannam@85 12648 deplibs_check_method reload_flag reload_cmds need_locks \
cannam@85 12649 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
cannam@85 12650 lt_cv_sys_global_symbol_to_c_name_address \
cannam@85 12651 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
cannam@85 12652 old_postinstall_cmds old_postuninstall_cmds \
cannam@85 12653 compiler_CXX \
cannam@85 12654 CC_CXX \
cannam@85 12655 LD_CXX \
cannam@85 12656 lt_prog_compiler_wl_CXX \
cannam@85 12657 lt_prog_compiler_pic_CXX \
cannam@85 12658 lt_prog_compiler_static_CXX \
cannam@85 12659 lt_prog_compiler_no_builtin_flag_CXX \
cannam@85 12660 export_dynamic_flag_spec_CXX \
cannam@85 12661 thread_safe_flag_spec_CXX \
cannam@85 12662 whole_archive_flag_spec_CXX \
cannam@85 12663 enable_shared_with_static_runtimes_CXX \
cannam@85 12664 old_archive_cmds_CXX \
cannam@85 12665 old_archive_from_new_cmds_CXX \
cannam@85 12666 predep_objects_CXX \
cannam@85 12667 postdep_objects_CXX \
cannam@85 12668 predeps_CXX \
cannam@85 12669 postdeps_CXX \
cannam@85 12670 compiler_lib_search_path_CXX \
cannam@85 12671 archive_cmds_CXX \
cannam@85 12672 archive_expsym_cmds_CXX \
cannam@85 12673 postinstall_cmds_CXX \
cannam@85 12674 postuninstall_cmds_CXX \
cannam@85 12675 old_archive_from_expsyms_cmds_CXX \
cannam@85 12676 allow_undefined_flag_CXX \
cannam@85 12677 no_undefined_flag_CXX \
cannam@85 12678 export_symbols_cmds_CXX \
cannam@85 12679 hardcode_libdir_flag_spec_CXX \
cannam@85 12680 hardcode_libdir_flag_spec_ld_CXX \
cannam@85 12681 hardcode_libdir_separator_CXX \
cannam@85 12682 hardcode_automatic_CXX \
cannam@85 12683 module_cmds_CXX \
cannam@85 12684 module_expsym_cmds_CXX \
cannam@85 12685 lt_cv_prog_compiler_c_o_CXX \
cannam@85 12686 exclude_expsyms_CXX \
cannam@85 12687 include_expsyms_CXX; do
cannam@85 12688
cannam@85 12689 case $var in
cannam@85 12690 old_archive_cmds_CXX | \
cannam@85 12691 old_archive_from_new_cmds_CXX | \
cannam@85 12692 archive_cmds_CXX | \
cannam@85 12693 archive_expsym_cmds_CXX | \
cannam@85 12694 module_cmds_CXX | \
cannam@85 12695 module_expsym_cmds_CXX | \
cannam@85 12696 old_archive_from_expsyms_cmds_CXX | \
cannam@85 12697 export_symbols_cmds_CXX | \
cannam@85 12698 extract_expsyms_cmds | reload_cmds | finish_cmds | \
cannam@85 12699 postinstall_cmds | postuninstall_cmds | \
cannam@85 12700 old_postinstall_cmds | old_postuninstall_cmds | \
cannam@85 12701 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
cannam@85 12702 # Double-quote double-evaled strings.
cannam@85 12703 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
cannam@85 12704 ;;
cannam@85 12705 *)
cannam@85 12706 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
cannam@85 12707 ;;
cannam@85 12708 esac
cannam@85 12709 done
cannam@85 12710
cannam@85 12711 case $lt_echo in
cannam@85 12712 *'\$0 --fallback-echo"')
cannam@85 12713 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
cannam@85 12714 ;;
cannam@85 12715 esac
cannam@85 12716
cannam@85 12717 cfgfile="$ofile"
cannam@85 12718
cannam@85 12719 cat <<__EOF__ >> "$cfgfile"
cannam@85 12720 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
cannam@85 12721
cannam@85 12722 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
cannam@85 12723
cannam@85 12724 # Shell to use when invoking shell scripts.
cannam@85 12725 SHELL=$lt_SHELL
cannam@85 12726
cannam@85 12727 # Whether or not to build shared libraries.
cannam@85 12728 build_libtool_libs=$enable_shared
cannam@85 12729
cannam@85 12730 # Whether or not to build static libraries.
cannam@85 12731 build_old_libs=$enable_static
cannam@85 12732
cannam@85 12733 # Whether or not to add -lc for building shared libraries.
cannam@85 12734 build_libtool_need_lc=$archive_cmds_need_lc_CXX
cannam@85 12735
cannam@85 12736 # Whether or not to disallow shared libs when runtime libs are static
cannam@85 12737 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
cannam@85 12738
cannam@85 12739 # Whether or not to optimize for fast installation.
cannam@85 12740 fast_install=$enable_fast_install
cannam@85 12741
cannam@85 12742 # The host system.
cannam@85 12743 host_alias=$host_alias
cannam@85 12744 host=$host
cannam@85 12745
cannam@85 12746 # An echo program that does not interpret backslashes.
cannam@85 12747 echo=$lt_echo
cannam@85 12748
cannam@85 12749 # The archiver.
cannam@85 12750 AR=$lt_AR
cannam@85 12751 AR_FLAGS=$lt_AR_FLAGS
cannam@85 12752
cannam@85 12753 # A C compiler.
cannam@85 12754 LTCC=$lt_LTCC
cannam@85 12755
cannam@85 12756 # A language-specific compiler.
cannam@85 12757 CC=$lt_compiler_CXX
cannam@85 12758
cannam@85 12759 # Is the compiler the GNU C compiler?
cannam@85 12760 with_gcc=$GCC_CXX
cannam@85 12761
cannam@85 12762 # An ERE matcher.
cannam@85 12763 EGREP=$lt_EGREP
cannam@85 12764
cannam@85 12765 # The linker used to build libraries.
cannam@85 12766 LD=$lt_LD_CXX
cannam@85 12767
cannam@85 12768 # Whether we need hard or soft links.
cannam@85 12769 LN_S=$lt_LN_S
cannam@85 12770
cannam@85 12771 # A BSD-compatible nm program.
cannam@85 12772 NM=$lt_NM
cannam@85 12773
cannam@85 12774 # A symbol stripping program
cannam@85 12775 STRIP=$lt_STRIP
cannam@85 12776
cannam@85 12777 # Used to examine libraries when file_magic_cmd begins "file"
cannam@85 12778 MAGIC_CMD=$MAGIC_CMD
cannam@85 12779
cannam@85 12780 # Used on cygwin: DLL creation program.
cannam@85 12781 DLLTOOL="$DLLTOOL"
cannam@85 12782
cannam@85 12783 # Used on cygwin: object dumper.
cannam@85 12784 OBJDUMP="$OBJDUMP"
cannam@85 12785
cannam@85 12786 # Used on cygwin: assembler.
cannam@85 12787 AS="$AS"
cannam@85 12788
cannam@85 12789 # The name of the directory that contains temporary libtool files.
cannam@85 12790 objdir=$objdir
cannam@85 12791
cannam@85 12792 # How to create reloadable object files.
cannam@85 12793 reload_flag=$lt_reload_flag
cannam@85 12794 reload_cmds=$lt_reload_cmds
cannam@85 12795
cannam@85 12796 # How to pass a linker flag through the compiler.
cannam@85 12797 wl=$lt_lt_prog_compiler_wl_CXX
cannam@85 12798
cannam@85 12799 # Object file suffix (normally "o").
cannam@85 12800 objext="$ac_objext"
cannam@85 12801
cannam@85 12802 # Old archive suffix (normally "a").
cannam@85 12803 libext="$libext"
cannam@85 12804
cannam@85 12805 # Shared library suffix (normally ".so").
cannam@85 12806 shrext='$shrext'
cannam@85 12807
cannam@85 12808 # Executable file suffix (normally "").
cannam@85 12809 exeext="$exeext"
cannam@85 12810
cannam@85 12811 # Additional compiler flags for building library objects.
cannam@85 12812 pic_flag=$lt_lt_prog_compiler_pic_CXX
cannam@85 12813 pic_mode=$pic_mode
cannam@85 12814
cannam@85 12815 # What is the maximum length of a command?
cannam@85 12816 max_cmd_len=$lt_cv_sys_max_cmd_len
cannam@85 12817
cannam@85 12818 # Does compiler simultaneously support -c and -o options?
cannam@85 12819 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
cannam@85 12820
cannam@85 12821 # Must we lock files when doing compilation ?
cannam@85 12822 need_locks=$lt_need_locks
cannam@85 12823
cannam@85 12824 # Do we need the lib prefix for modules?
cannam@85 12825 need_lib_prefix=$need_lib_prefix
cannam@85 12826
cannam@85 12827 # Do we need a version for libraries?
cannam@85 12828 need_version=$need_version
cannam@85 12829
cannam@85 12830 # Whether dlopen is supported.
cannam@85 12831 dlopen_support=$enable_dlopen
cannam@85 12832
cannam@85 12833 # Whether dlopen of programs is supported.
cannam@85 12834 dlopen_self=$enable_dlopen_self
cannam@85 12835
cannam@85 12836 # Whether dlopen of statically linked programs is supported.
cannam@85 12837 dlopen_self_static=$enable_dlopen_self_static
cannam@85 12838
cannam@85 12839 # Compiler flag to prevent dynamic linking.
cannam@85 12840 link_static_flag=$lt_lt_prog_compiler_static_CXX
cannam@85 12841
cannam@85 12842 # Compiler flag to turn off builtin functions.
cannam@85 12843 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
cannam@85 12844
cannam@85 12845 # Compiler flag to allow reflexive dlopens.
cannam@85 12846 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
cannam@85 12847
cannam@85 12848 # Compiler flag to generate shared objects directly from archives.
cannam@85 12849 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
cannam@85 12850
cannam@85 12851 # Compiler flag to generate thread-safe objects.
cannam@85 12852 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
cannam@85 12853
cannam@85 12854 # Library versioning type.
cannam@85 12855 version_type=$version_type
cannam@85 12856
cannam@85 12857 # Format of library name prefix.
cannam@85 12858 libname_spec=$lt_libname_spec
cannam@85 12859
cannam@85 12860 # List of archive names. First name is the real one, the rest are links.
cannam@85 12861 # The last name is the one that the linker finds with -lNAME.
cannam@85 12862 library_names_spec=$lt_library_names_spec
cannam@85 12863
cannam@85 12864 # The coded name of the library, if different from the real name.
cannam@85 12865 soname_spec=$lt_soname_spec
cannam@85 12866
cannam@85 12867 # Commands used to build and install an old-style archive.
cannam@85 12868 RANLIB=$lt_RANLIB
cannam@85 12869 old_archive_cmds=$lt_old_archive_cmds_CXX
cannam@85 12870 old_postinstall_cmds=$lt_old_postinstall_cmds
cannam@85 12871 old_postuninstall_cmds=$lt_old_postuninstall_cmds
cannam@85 12872
cannam@85 12873 # Create an old-style archive from a shared archive.
cannam@85 12874 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
cannam@85 12875
cannam@85 12876 # Create a temporary old-style archive to link instead of a shared archive.
cannam@85 12877 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
cannam@85 12878
cannam@85 12879 # Commands used to build and install a shared archive.
cannam@85 12880 archive_cmds=$lt_archive_cmds_CXX
cannam@85 12881 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
cannam@85 12882 postinstall_cmds=$lt_postinstall_cmds
cannam@85 12883 postuninstall_cmds=$lt_postuninstall_cmds
cannam@85 12884
cannam@85 12885 # Commands used to build a loadable module (assumed same as above if empty)
cannam@85 12886 module_cmds=$lt_module_cmds_CXX
cannam@85 12887 module_expsym_cmds=$lt_module_expsym_cmds_CXX
cannam@85 12888
cannam@85 12889 # Commands to strip libraries.
cannam@85 12890 old_striplib=$lt_old_striplib
cannam@85 12891 striplib=$lt_striplib
cannam@85 12892
cannam@85 12893 # Dependencies to place before the objects being linked to create a
cannam@85 12894 # shared library.
cannam@85 12895 predep_objects=$lt_predep_objects_CXX
cannam@85 12896
cannam@85 12897 # Dependencies to place after the objects being linked to create a
cannam@85 12898 # shared library.
cannam@85 12899 postdep_objects=$lt_postdep_objects_CXX
cannam@85 12900
cannam@85 12901 # Dependencies to place before the objects being linked to create a
cannam@85 12902 # shared library.
cannam@85 12903 predeps=$lt_predeps_CXX
cannam@85 12904
cannam@85 12905 # Dependencies to place after the objects being linked to create a
cannam@85 12906 # shared library.
cannam@85 12907 postdeps=$lt_postdeps_CXX
cannam@85 12908
cannam@85 12909 # The library search path used internally by the compiler when linking
cannam@85 12910 # a shared library.
cannam@85 12911 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
cannam@85 12912
cannam@85 12913 # Method to check whether dependent libraries are shared objects.
cannam@85 12914 deplibs_check_method=$lt_deplibs_check_method
cannam@85 12915
cannam@85 12916 # Command to use when deplibs_check_method == file_magic.
cannam@85 12917 file_magic_cmd=$lt_file_magic_cmd
cannam@85 12918
cannam@85 12919 # Flag that allows shared libraries with undefined symbols to be built.
cannam@85 12920 allow_undefined_flag=$lt_allow_undefined_flag_CXX
cannam@85 12921
cannam@85 12922 # Flag that forces no undefined symbols.
cannam@85 12923 no_undefined_flag=$lt_no_undefined_flag_CXX
cannam@85 12924
cannam@85 12925 # Commands used to finish a libtool library installation in a directory.
cannam@85 12926 finish_cmds=$lt_finish_cmds
cannam@85 12927
cannam@85 12928 # Same as above, but a single script fragment to be evaled but not shown.
cannam@85 12929 finish_eval=$lt_finish_eval
cannam@85 12930
cannam@85 12931 # Take the output of nm and produce a listing of raw symbols and C names.
cannam@85 12932 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
cannam@85 12933
cannam@85 12934 # Transform the output of nm in a proper C declaration
cannam@85 12935 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
cannam@85 12936
cannam@85 12937 # Transform the output of nm in a C name address pair
cannam@85 12938 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
cannam@85 12939
cannam@85 12940 # This is the shared library runtime path variable.
cannam@85 12941 runpath_var=$runpath_var
cannam@85 12942
cannam@85 12943 # This is the shared library path variable.
cannam@85 12944 shlibpath_var=$shlibpath_var
cannam@85 12945
cannam@85 12946 # Is shlibpath searched before the hard-coded library search path?
cannam@85 12947 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
cannam@85 12948
cannam@85 12949 # How to hardcode a shared library path into an executable.
cannam@85 12950 hardcode_action=$hardcode_action_CXX
cannam@85 12951
cannam@85 12952 # Whether we should hardcode library paths into libraries.
cannam@85 12953 hardcode_into_libs=$hardcode_into_libs
cannam@85 12954
cannam@85 12955 # Flag to hardcode \$libdir into a binary during linking.
cannam@85 12956 # This must work even if \$libdir does not exist.
cannam@85 12957 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
cannam@85 12958
cannam@85 12959 # If ld is used when linking, flag to hardcode \$libdir into
cannam@85 12960 # a binary during linking. This must work even if \$libdir does
cannam@85 12961 # not exist.
cannam@85 12962 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
cannam@85 12963
cannam@85 12964 # Whether we need a single -rpath flag with a separated argument.
cannam@85 12965 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
cannam@85 12966
cannam@85 12967 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
cannam@85 12968 # resulting binary.
cannam@85 12969 hardcode_direct=$hardcode_direct_CXX
cannam@85 12970
cannam@85 12971 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
cannam@85 12972 # resulting binary.
cannam@85 12973 hardcode_minus_L=$hardcode_minus_L_CXX
cannam@85 12974
cannam@85 12975 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
cannam@85 12976 # the resulting binary.
cannam@85 12977 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
cannam@85 12978
cannam@85 12979 # Set to yes if building a shared library automatically hardcodes DIR into the library
cannam@85 12980 # and all subsequent libraries and executables linked against it.
cannam@85 12981 hardcode_automatic=$hardcode_automatic_CXX
cannam@85 12982
cannam@85 12983 # Variables whose values should be saved in libtool wrapper scripts and
cannam@85 12984 # restored at relink time.
cannam@85 12985 variables_saved_for_relink="$variables_saved_for_relink"
cannam@85 12986
cannam@85 12987 # Whether libtool must link a program against all its dependency libraries.
cannam@85 12988 link_all_deplibs=$link_all_deplibs_CXX
cannam@85 12989
cannam@85 12990 # Compile-time system search path for libraries
cannam@85 12991 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
cannam@85 12992
cannam@85 12993 # Run-time system search path for libraries
cannam@85 12994 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
cannam@85 12995
cannam@85 12996 # Fix the shell variable \$srcfile for the compiler.
cannam@85 12997 fix_srcfile_path="$fix_srcfile_path_CXX"
cannam@85 12998
cannam@85 12999 # Set to yes if exported symbols are required.
cannam@85 13000 always_export_symbols=$always_export_symbols_CXX
cannam@85 13001
cannam@85 13002 # The commands to list exported symbols.
cannam@85 13003 export_symbols_cmds=$lt_export_symbols_cmds_CXX
cannam@85 13004
cannam@85 13005 # The commands to extract the exported symbol list from a shared archive.
cannam@85 13006 extract_expsyms_cmds=$lt_extract_expsyms_cmds
cannam@85 13007
cannam@85 13008 # Symbols that should not be listed in the preloaded symbols.
cannam@85 13009 exclude_expsyms=$lt_exclude_expsyms_CXX
cannam@85 13010
cannam@85 13011 # Symbols that must always be exported.
cannam@85 13012 include_expsyms=$lt_include_expsyms_CXX
cannam@85 13013
cannam@85 13014 # ### END LIBTOOL TAG CONFIG: $tagname
cannam@85 13015
cannam@85 13016 __EOF__
cannam@85 13017
cannam@85 13018
cannam@85 13019 else
cannam@85 13020 # If there is no Makefile yet, we rely on a make rule to execute
cannam@85 13021 # `config.status --recheck' to rerun these tests and create the
cannam@85 13022 # libtool script then.
cannam@85 13023 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
cannam@85 13024 if test -f "$ltmain_in"; then
cannam@85 13025 test -f Makefile && make "$ltmain"
cannam@85 13026 fi
cannam@85 13027 fi
cannam@85 13028
cannam@85 13029
cannam@85 13030 ac_ext=c
cannam@85 13031 ac_cpp='$CPP $CPPFLAGS'
cannam@85 13032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 13033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 13034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 13035
cannam@85 13036 CC=$lt_save_CC
cannam@85 13037 LDCXX=$LD
cannam@85 13038 LD=$lt_save_LD
cannam@85 13039 GCC=$lt_save_GCC
cannam@85 13040 with_gnu_ldcxx=$with_gnu_ld
cannam@85 13041 with_gnu_ld=$lt_save_with_gnu_ld
cannam@85 13042 lt_cv_path_LDCXX=$lt_cv_path_LD
cannam@85 13043 lt_cv_path_LD=$lt_save_path_LD
cannam@85 13044 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
cannam@85 13045 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
cannam@85 13046
cannam@85 13047 else
cannam@85 13048 tagname=""
cannam@85 13049 fi
cannam@85 13050 ;;
cannam@85 13051
cannam@85 13052 F77)
cannam@85 13053 if test -n "$F77" && test "X$F77" != "Xno"; then
cannam@85 13054
cannam@85 13055 ac_ext=f
cannam@85 13056 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
cannam@85 13057 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 13058 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cannam@85 13059
cannam@85 13060
cannam@85 13061 archive_cmds_need_lc_F77=no
cannam@85 13062 allow_undefined_flag_F77=
cannam@85 13063 always_export_symbols_F77=no
cannam@85 13064 archive_expsym_cmds_F77=
cannam@85 13065 export_dynamic_flag_spec_F77=
cannam@85 13066 hardcode_direct_F77=no
cannam@85 13067 hardcode_libdir_flag_spec_F77=
cannam@85 13068 hardcode_libdir_flag_spec_ld_F77=
cannam@85 13069 hardcode_libdir_separator_F77=
cannam@85 13070 hardcode_minus_L_F77=no
cannam@85 13071 hardcode_automatic_F77=no
cannam@85 13072 module_cmds_F77=
cannam@85 13073 module_expsym_cmds_F77=
cannam@85 13074 link_all_deplibs_F77=unknown
cannam@85 13075 old_archive_cmds_F77=$old_archive_cmds
cannam@85 13076 no_undefined_flag_F77=
cannam@85 13077 whole_archive_flag_spec_F77=
cannam@85 13078 enable_shared_with_static_runtimes_F77=no
cannam@85 13079
cannam@85 13080 # Source file extension for f77 test sources.
cannam@85 13081 ac_ext=f
cannam@85 13082
cannam@85 13083 # Object file extension for compiled f77 test sources.
cannam@85 13084 objext=o
cannam@85 13085 objext_F77=$objext
cannam@85 13086
cannam@85 13087 # Code to be used in simple compile tests
cannam@85 13088 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
cannam@85 13089
cannam@85 13090 # Code to be used in simple link tests
cannam@85 13091 lt_simple_link_test_code=" program t\n end\n"
cannam@85 13092
cannam@85 13093 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
cannam@85 13094
cannam@85 13095 # If no C compiler was specified, use CC.
cannam@85 13096 LTCC=${LTCC-"$CC"}
cannam@85 13097
cannam@85 13098 # Allow CC to be a program name with arguments.
cannam@85 13099 compiler=$CC
cannam@85 13100
cannam@85 13101
cannam@85 13102 # Allow CC to be a program name with arguments.
cannam@85 13103 lt_save_CC="$CC"
cannam@85 13104 CC=${F77-"f77"}
cannam@85 13105 compiler=$CC
cannam@85 13106 compiler_F77=$CC
cannam@85 13107 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
cannam@85 13108
cannam@85 13109 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
cannam@85 13110 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
cannam@85 13111 echo "$as_me:$LINENO: result: $can_build_shared" >&5
cannam@85 13112 echo "${ECHO_T}$can_build_shared" >&6
cannam@85 13113
cannam@85 13114 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
cannam@85 13115 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
cannam@85 13116 test "$can_build_shared" = "no" && enable_shared=no
cannam@85 13117
cannam@85 13118 # On AIX, shared libraries and static libraries use the same namespace, and
cannam@85 13119 # are all built from PIC.
cannam@85 13120 case "$host_os" in
cannam@85 13121 aix3*)
cannam@85 13122 test "$enable_shared" = yes && enable_static=no
cannam@85 13123 if test -n "$RANLIB"; then
cannam@85 13124 archive_cmds="$archive_cmds~\$RANLIB \$lib"
cannam@85 13125 postinstall_cmds='$RANLIB $lib'
cannam@85 13126 fi
cannam@85 13127 ;;
cannam@85 13128 aix4*)
cannam@85 13129 test "$enable_shared" = yes && enable_static=no
cannam@85 13130 ;;
cannam@85 13131 esac
cannam@85 13132 echo "$as_me:$LINENO: result: $enable_shared" >&5
cannam@85 13133 echo "${ECHO_T}$enable_shared" >&6
cannam@85 13134
cannam@85 13135 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
cannam@85 13136 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
cannam@85 13137 # Make sure either enable_shared or enable_static is yes.
cannam@85 13138 test "$enable_shared" = yes || enable_static=yes
cannam@85 13139 echo "$as_me:$LINENO: result: $enable_static" >&5
cannam@85 13140 echo "${ECHO_T}$enable_static" >&6
cannam@85 13141
cannam@85 13142 test "$ld_shlibs_F77" = no && can_build_shared=no
cannam@85 13143
cannam@85 13144 GCC_F77="$G77"
cannam@85 13145 LD_F77="$LD"
cannam@85 13146
cannam@85 13147 lt_prog_compiler_wl_F77=
cannam@85 13148 lt_prog_compiler_pic_F77=
cannam@85 13149 lt_prog_compiler_static_F77=
cannam@85 13150
cannam@85 13151 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
cannam@85 13152 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
cannam@85 13153
cannam@85 13154 if test "$GCC" = yes; then
cannam@85 13155 lt_prog_compiler_wl_F77='-Wl,'
cannam@85 13156 lt_prog_compiler_static_F77='-static'
cannam@85 13157
cannam@85 13158 case $host_os in
cannam@85 13159 aix*)
cannam@85 13160 # All AIX code is PIC.
cannam@85 13161 if test "$host_cpu" = ia64; then
cannam@85 13162 # AIX 5 now supports IA64 processor
cannam@85 13163 lt_prog_compiler_static_F77='-Bstatic'
cannam@85 13164 fi
cannam@85 13165 ;;
cannam@85 13166
cannam@85 13167 amigaos*)
cannam@85 13168 # FIXME: we need at least 68020 code to build shared libraries, but
cannam@85 13169 # adding the `-m68020' flag to GCC prevents building anything better,
cannam@85 13170 # like `-m68040'.
cannam@85 13171 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
cannam@85 13172 ;;
cannam@85 13173
cannam@85 13174 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cannam@85 13175 # PIC is the default for these OSes.
cannam@85 13176 ;;
cannam@85 13177
cannam@85 13178 mingw* | pw32* | os2*)
cannam@85 13179 # This hack is so that the source file can tell whether it is being
cannam@85 13180 # built for inclusion in a dll (and should export symbols for example).
cannam@85 13181 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
cannam@85 13182 ;;
cannam@85 13183
cannam@85 13184 darwin* | rhapsody*)
cannam@85 13185 # PIC is the default on this platform
cannam@85 13186 # Common symbols not allowed in MH_DYLIB files
cannam@85 13187 lt_prog_compiler_pic_F77='-fno-common'
cannam@85 13188 ;;
cannam@85 13189
cannam@85 13190 msdosdjgpp*)
cannam@85 13191 # Just because we use GCC doesn't mean we suddenly get shared libraries
cannam@85 13192 # on systems that don't support them.
cannam@85 13193 lt_prog_compiler_can_build_shared_F77=no
cannam@85 13194 enable_shared=no
cannam@85 13195 ;;
cannam@85 13196
cannam@85 13197 sysv4*MP*)
cannam@85 13198 if test -d /usr/nec; then
cannam@85 13199 lt_prog_compiler_pic_F77=-Kconform_pic
cannam@85 13200 fi
cannam@85 13201 ;;
cannam@85 13202
cannam@85 13203 hpux*)
cannam@85 13204 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cannam@85 13205 # not for PA HP-UX.
cannam@85 13206 case "$host_cpu" in
cannam@85 13207 hppa*64*|ia64*)
cannam@85 13208 # +Z the default
cannam@85 13209 ;;
cannam@85 13210 *)
cannam@85 13211 lt_prog_compiler_pic_F77='-fPIC'
cannam@85 13212 ;;
cannam@85 13213 esac
cannam@85 13214 ;;
cannam@85 13215
cannam@85 13216 *)
cannam@85 13217 lt_prog_compiler_pic_F77='-fPIC'
cannam@85 13218 ;;
cannam@85 13219 esac
cannam@85 13220 else
cannam@85 13221 # PORTME Check for flag to pass linker flags through the system compiler.
cannam@85 13222 case $host_os in
cannam@85 13223 aix*)
cannam@85 13224 lt_prog_compiler_wl_F77='-Wl,'
cannam@85 13225 if test "$host_cpu" = ia64; then
cannam@85 13226 # AIX 5 now supports IA64 processor
cannam@85 13227 lt_prog_compiler_static_F77='-Bstatic'
cannam@85 13228 else
cannam@85 13229 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
cannam@85 13230 fi
cannam@85 13231 ;;
cannam@85 13232
cannam@85 13233 mingw* | pw32* | os2*)
cannam@85 13234 # This hack is so that the source file can tell whether it is being
cannam@85 13235 # built for inclusion in a dll (and should export symbols for example).
cannam@85 13236 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
cannam@85 13237 ;;
cannam@85 13238
cannam@85 13239 hpux9* | hpux10* | hpux11*)
cannam@85 13240 lt_prog_compiler_wl_F77='-Wl,'
cannam@85 13241 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cannam@85 13242 # not for PA HP-UX.
cannam@85 13243 case "$host_cpu" in
cannam@85 13244 hppa*64*|ia64*)
cannam@85 13245 # +Z the default
cannam@85 13246 ;;
cannam@85 13247 *)
cannam@85 13248 lt_prog_compiler_pic_F77='+Z'
cannam@85 13249 ;;
cannam@85 13250 esac
cannam@85 13251 # Is there a better lt_prog_compiler_static that works with the bundled CC?
cannam@85 13252 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
cannam@85 13253 ;;
cannam@85 13254
cannam@85 13255 irix5* | irix6* | nonstopux*)
cannam@85 13256 lt_prog_compiler_wl_F77='-Wl,'
cannam@85 13257 # PIC (with -KPIC) is the default.
cannam@85 13258 lt_prog_compiler_static_F77='-non_shared'
cannam@85 13259 ;;
cannam@85 13260
cannam@85 13261 newsos6)
cannam@85 13262 lt_prog_compiler_pic_F77='-KPIC'
cannam@85 13263 lt_prog_compiler_static_F77='-Bstatic'
cannam@85 13264 ;;
cannam@85 13265
cannam@85 13266 linux*)
cannam@85 13267 case $CC in
cannam@85 13268 icc* | ecc*)
cannam@85 13269 lt_prog_compiler_wl_F77='-Wl,'
cannam@85 13270 lt_prog_compiler_pic_F77='-KPIC'
cannam@85 13271 lt_prog_compiler_static_F77='-static'
cannam@85 13272 ;;
cannam@85 13273 ccc*)
cannam@85 13274 lt_prog_compiler_wl_F77='-Wl,'
cannam@85 13275 # All Alpha code is PIC.
cannam@85 13276 lt_prog_compiler_static_F77='-non_shared'
cannam@85 13277 ;;
cannam@85 13278 esac
cannam@85 13279 ;;
cannam@85 13280
cannam@85 13281 osf3* | osf4* | osf5*)
cannam@85 13282 lt_prog_compiler_wl_F77='-Wl,'
cannam@85 13283 # All OSF/1 code is PIC.
cannam@85 13284 lt_prog_compiler_static_F77='-non_shared'
cannam@85 13285 ;;
cannam@85 13286
cannam@85 13287 sco3.2v5*)
cannam@85 13288 lt_prog_compiler_pic_F77='-Kpic'
cannam@85 13289 lt_prog_compiler_static_F77='-dn'
cannam@85 13290 ;;
cannam@85 13291
cannam@85 13292 solaris*)
cannam@85 13293 lt_prog_compiler_wl_F77='-Wl,'
cannam@85 13294 lt_prog_compiler_pic_F77='-KPIC'
cannam@85 13295 lt_prog_compiler_static_F77='-Bstatic'
cannam@85 13296 ;;
cannam@85 13297
cannam@85 13298 sunos4*)
cannam@85 13299 lt_prog_compiler_wl_F77='-Qoption ld '
cannam@85 13300 lt_prog_compiler_pic_F77='-PIC'
cannam@85 13301 lt_prog_compiler_static_F77='-Bstatic'
cannam@85 13302 ;;
cannam@85 13303
cannam@85 13304 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@85 13305 lt_prog_compiler_wl_F77='-Wl,'
cannam@85 13306 lt_prog_compiler_pic_F77='-KPIC'
cannam@85 13307 lt_prog_compiler_static_F77='-Bstatic'
cannam@85 13308 ;;
cannam@85 13309
cannam@85 13310 sysv4*MP*)
cannam@85 13311 if test -d /usr/nec ;then
cannam@85 13312 lt_prog_compiler_pic_F77='-Kconform_pic'
cannam@85 13313 lt_prog_compiler_static_F77='-Bstatic'
cannam@85 13314 fi
cannam@85 13315 ;;
cannam@85 13316
cannam@85 13317 uts4*)
cannam@85 13318 lt_prog_compiler_pic_F77='-pic'
cannam@85 13319 lt_prog_compiler_static_F77='-Bstatic'
cannam@85 13320 ;;
cannam@85 13321
cannam@85 13322 *)
cannam@85 13323 lt_prog_compiler_can_build_shared_F77=no
cannam@85 13324 ;;
cannam@85 13325 esac
cannam@85 13326 fi
cannam@85 13327
cannam@85 13328 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
cannam@85 13329 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
cannam@85 13330
cannam@85 13331 #
cannam@85 13332 # Check to make sure the PIC flag actually works.
cannam@85 13333 #
cannam@85 13334 if test -n "$lt_prog_compiler_pic_F77"; then
cannam@85 13335
cannam@85 13336 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
cannam@85 13337 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
cannam@85 13338 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
cannam@85 13339 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 13340 else
cannam@85 13341 lt_prog_compiler_pic_works_F77=no
cannam@85 13342 ac_outfile=conftest.$ac_objext
cannam@85 13343 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 13344 lt_compiler_flag="$lt_prog_compiler_pic_F77"
cannam@85 13345 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 13346 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 13347 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 13348 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 13349 # The option is referenced via a variable to avoid confusing sed.
cannam@85 13350 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 13351 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
cannam@85 13352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 13353 -e 's:$: $lt_compiler_flag:'`
cannam@85 13354 (eval echo "\"\$as_me:13354: $lt_compile\"" >&5)
cannam@85 13355 (eval "$lt_compile" 2>conftest.err)
cannam@85 13356 ac_status=$?
cannam@85 13357 cat conftest.err >&5
cannam@85 13358 echo "$as_me:13358: \$? = $ac_status" >&5
cannam@85 13359 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@85 13360 # The compiler can only warn and ignore the option if not recognized
cannam@85 13361 # So say no if there are warnings
cannam@85 13362 if test ! -s conftest.err; then
cannam@85 13363 lt_prog_compiler_pic_works_F77=yes
cannam@85 13364 fi
cannam@85 13365 fi
cannam@85 13366 $rm conftest*
cannam@85 13367
cannam@85 13368 fi
cannam@85 13369 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
cannam@85 13370 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
cannam@85 13371
cannam@85 13372 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
cannam@85 13373 case $lt_prog_compiler_pic_F77 in
cannam@85 13374 "" | " "*) ;;
cannam@85 13375 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
cannam@85 13376 esac
cannam@85 13377 else
cannam@85 13378 lt_prog_compiler_pic_F77=
cannam@85 13379 lt_prog_compiler_can_build_shared_F77=no
cannam@85 13380 fi
cannam@85 13381
cannam@85 13382 fi
cannam@85 13383 case "$host_os" in
cannam@85 13384 # For platforms which do not support PIC, -DPIC is meaningless:
cannam@85 13385 *djgpp*)
cannam@85 13386 lt_prog_compiler_pic_F77=
cannam@85 13387 ;;
cannam@85 13388 *)
cannam@85 13389 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
cannam@85 13390 ;;
cannam@85 13391 esac
cannam@85 13392
cannam@85 13393 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@85 13394 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
cannam@85 13395 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
cannam@85 13396 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 13397 else
cannam@85 13398 lt_cv_prog_compiler_c_o_F77=no
cannam@85 13399 $rm -r conftest 2>/dev/null
cannam@85 13400 mkdir conftest
cannam@85 13401 cd conftest
cannam@85 13402 mkdir out
cannam@85 13403 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 13404
cannam@85 13405 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@85 13406 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 13407 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 13408 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 13409 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 13410 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 13411 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
cannam@85 13412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 13413 -e 's:$: $lt_compiler_flag:'`
cannam@85 13414 (eval echo "\"\$as_me:13414: $lt_compile\"" >&5)
cannam@85 13415 (eval "$lt_compile" 2>out/conftest.err)
cannam@85 13416 ac_status=$?
cannam@85 13417 cat out/conftest.err >&5
cannam@85 13418 echo "$as_me:13418: \$? = $ac_status" >&5
cannam@85 13419 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@85 13420 then
cannam@85 13421 # The compiler can only warn and ignore the option if not recognized
cannam@85 13422 # So say no if there are warnings
cannam@85 13423 if test ! -s out/conftest.err; then
cannam@85 13424 lt_cv_prog_compiler_c_o_F77=yes
cannam@85 13425 fi
cannam@85 13426 fi
cannam@85 13427 chmod u+w .
cannam@85 13428 $rm conftest*
cannam@85 13429 # SGI C++ compiler will create directory out/ii_files/ for
cannam@85 13430 # template instantiation
cannam@85 13431 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
cannam@85 13432 $rm out/* && rmdir out
cannam@85 13433 cd ..
cannam@85 13434 rmdir conftest
cannam@85 13435 $rm conftest*
cannam@85 13436
cannam@85 13437 fi
cannam@85 13438 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
cannam@85 13439 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
cannam@85 13440
cannam@85 13441
cannam@85 13442 hard_links="nottested"
cannam@85 13443 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
cannam@85 13444 # do not overwrite the value of need_locks provided by the user
cannam@85 13445 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
cannam@85 13446 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
cannam@85 13447 hard_links=yes
cannam@85 13448 $rm conftest*
cannam@85 13449 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@85 13450 touch conftest.a
cannam@85 13451 ln conftest.a conftest.b 2>&5 || hard_links=no
cannam@85 13452 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@85 13453 echo "$as_me:$LINENO: result: $hard_links" >&5
cannam@85 13454 echo "${ECHO_T}$hard_links" >&6
cannam@85 13455 if test "$hard_links" = no; then
cannam@85 13456 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cannam@85 13457 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
cannam@85 13458 need_locks=warn
cannam@85 13459 fi
cannam@85 13460 else
cannam@85 13461 need_locks=no
cannam@85 13462 fi
cannam@85 13463
cannam@85 13464 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@85 13465 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
cannam@85 13466
cannam@85 13467 runpath_var=
cannam@85 13468 allow_undefined_flag_F77=
cannam@85 13469 enable_shared_with_static_runtimes_F77=no
cannam@85 13470 archive_cmds_F77=
cannam@85 13471 archive_expsym_cmds_F77=
cannam@85 13472 old_archive_From_new_cmds_F77=
cannam@85 13473 old_archive_from_expsyms_cmds_F77=
cannam@85 13474 export_dynamic_flag_spec_F77=
cannam@85 13475 whole_archive_flag_spec_F77=
cannam@85 13476 thread_safe_flag_spec_F77=
cannam@85 13477 hardcode_libdir_flag_spec_F77=
cannam@85 13478 hardcode_libdir_flag_spec_ld_F77=
cannam@85 13479 hardcode_libdir_separator_F77=
cannam@85 13480 hardcode_direct_F77=no
cannam@85 13481 hardcode_minus_L_F77=no
cannam@85 13482 hardcode_shlibpath_var_F77=unsupported
cannam@85 13483 link_all_deplibs_F77=unknown
cannam@85 13484 hardcode_automatic_F77=no
cannam@85 13485 module_cmds_F77=
cannam@85 13486 module_expsym_cmds_F77=
cannam@85 13487 always_export_symbols_F77=no
cannam@85 13488 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@85 13489 # include_expsyms should be a list of space-separated symbols to be *always*
cannam@85 13490 # included in the symbol list
cannam@85 13491 include_expsyms_F77=
cannam@85 13492 # exclude_expsyms can be an extended regexp of symbols to exclude
cannam@85 13493 # it will be wrapped by ` (' and `)$', so one must not match beginning or
cannam@85 13494 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
cannam@85 13495 # as well as any symbol that contains `d'.
cannam@85 13496 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
cannam@85 13497 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
cannam@85 13498 # platforms (ab)use it in PIC code, but their linkers get confused if
cannam@85 13499 # the symbol is explicitly referenced. Since portable code cannot
cannam@85 13500 # rely on this symbol name, it's probably fine to never include it in
cannam@85 13501 # preloaded symbol tables.
cannam@85 13502 extract_expsyms_cmds=
cannam@85 13503
cannam@85 13504 case $host_os in
cannam@85 13505 cygwin* | mingw* | pw32*)
cannam@85 13506 # FIXME: the MSVC++ port hasn't been tested in a loooong time
cannam@85 13507 # When not using gcc, we currently assume that we are using
cannam@85 13508 # Microsoft Visual C++.
cannam@85 13509 if test "$GCC" != yes; then
cannam@85 13510 with_gnu_ld=no
cannam@85 13511 fi
cannam@85 13512 ;;
cannam@85 13513 openbsd*)
cannam@85 13514 with_gnu_ld=no
cannam@85 13515 ;;
cannam@85 13516 esac
cannam@85 13517
cannam@85 13518 ld_shlibs_F77=yes
cannam@85 13519 if test "$with_gnu_ld" = yes; then
cannam@85 13520 # If archive_cmds runs LD, not CC, wlarc should be empty
cannam@85 13521 wlarc='${wl}'
cannam@85 13522
cannam@85 13523 # See if GNU ld supports shared libraries.
cannam@85 13524 case $host_os in
cannam@85 13525 aix3* | aix4* | aix5*)
cannam@85 13526 # On AIX/PPC, the GNU linker is very broken
cannam@85 13527 if test "$host_cpu" != ia64; then
cannam@85 13528 ld_shlibs_F77=no
cannam@85 13529 cat <<EOF 1>&2
cannam@85 13530
cannam@85 13531 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
cannam@85 13532 *** to be unable to reliably create shared libraries on AIX.
cannam@85 13533 *** Therefore, libtool is disabling shared libraries support. If you
cannam@85 13534 *** really care for shared libraries, you may want to modify your PATH
cannam@85 13535 *** so that a non-GNU linker is found, and then restart.
cannam@85 13536
cannam@85 13537 EOF
cannam@85 13538 fi
cannam@85 13539 ;;
cannam@85 13540
cannam@85 13541 amigaos*)
cannam@85 13542 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@85 13543 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@85 13544 hardcode_minus_L_F77=yes
cannam@85 13545
cannam@85 13546 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
cannam@85 13547 # that the semantics of dynamic libraries on AmigaOS, at least up
cannam@85 13548 # to version 4, is to share data among multiple programs linked
cannam@85 13549 # with the same dynamic library. Since this doesn't match the
cannam@85 13550 # behavior of shared libraries on other platforms, we can't use
cannam@85 13551 # them.
cannam@85 13552 ld_shlibs_F77=no
cannam@85 13553 ;;
cannam@85 13554
cannam@85 13555 beos*)
cannam@85 13556 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cannam@85 13557 allow_undefined_flag_F77=unsupported
cannam@85 13558 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
cannam@85 13559 # support --undefined. This deserves some investigation. FIXME
cannam@85 13560 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 13561 else
cannam@85 13562 ld_shlibs_F77=no
cannam@85 13563 fi
cannam@85 13564 ;;
cannam@85 13565
cannam@85 13566 cygwin* | mingw* | pw32*)
cannam@85 13567 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
cannam@85 13568 # as there is no search path for DLLs.
cannam@85 13569 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@85 13570 allow_undefined_flag_F77=unsupported
cannam@85 13571 always_export_symbols_F77=no
cannam@85 13572 enable_shared_with_static_runtimes_F77=yes
cannam@85 13573 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
cannam@85 13574
cannam@85 13575 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
cannam@85 13576 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
cannam@85 13577 # If the export-symbols file already is a .def file (1st line
cannam@85 13578 # is EXPORTS), use it as is; otherwise, prepend...
cannam@85 13579 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@85 13580 cp $export_symbols $output_objdir/$soname.def;
cannam@85 13581 else
cannam@85 13582 echo EXPORTS > $output_objdir/$soname.def;
cannam@85 13583 cat $export_symbols >> $output_objdir/$soname.def;
cannam@85 13584 fi~
cannam@85 13585 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
cannam@85 13586 else
cannam@85 13587 ld_shlibs=no
cannam@85 13588 fi
cannam@85 13589 ;;
cannam@85 13590
cannam@85 13591 netbsd* | knetbsd*-gnu)
cannam@85 13592 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cannam@85 13593 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
cannam@85 13594 wlarc=
cannam@85 13595 else
cannam@85 13596 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 13597 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@85 13598 fi
cannam@85 13599 ;;
cannam@85 13600
cannam@85 13601 solaris* | sysv5*)
cannam@85 13602 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
cannam@85 13603 ld_shlibs_F77=no
cannam@85 13604 cat <<EOF 1>&2
cannam@85 13605
cannam@85 13606 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
cannam@85 13607 *** create shared libraries on Solaris systems. Therefore, libtool
cannam@85 13608 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@85 13609 *** binutils to release 2.9.1 or newer. Another option is to modify
cannam@85 13610 *** your PATH or compiler configuration so that the native linker is
cannam@85 13611 *** used, and then restart.
cannam@85 13612
cannam@85 13613 EOF
cannam@85 13614 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cannam@85 13615 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 13616 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@85 13617 else
cannam@85 13618 ld_shlibs_F77=no
cannam@85 13619 fi
cannam@85 13620 ;;
cannam@85 13621
cannam@85 13622 sunos4*)
cannam@85 13623 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@85 13624 wlarc=
cannam@85 13625 hardcode_direct_F77=yes
cannam@85 13626 hardcode_shlibpath_var_F77=no
cannam@85 13627 ;;
cannam@85 13628
cannam@85 13629 linux*)
cannam@85 13630 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
cannam@85 13631 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 13632 archive_cmds_F77="$tmp_archive_cmds"
cannam@85 13633 supports_anon_versioning=no
cannam@85 13634 case `$LD -v 2>/dev/null` in
cannam@85 13635 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
cannam@85 13636 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
cannam@85 13637 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
cannam@85 13638 *\ 2.11.*) ;; # other 2.11 versions
cannam@85 13639 *) supports_anon_versioning=yes ;;
cannam@85 13640 esac
cannam@85 13641 if test $supports_anon_versioning = yes; then
cannam@85 13642 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
cannam@85 13643 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@85 13644 $echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@85 13645 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
cannam@85 13646 else
cannam@85 13647 archive_expsym_cmds_F77="$tmp_archive_cmds"
cannam@85 13648 fi
cannam@85 13649 else
cannam@85 13650 ld_shlibs_F77=no
cannam@85 13651 fi
cannam@85 13652 ;;
cannam@85 13653
cannam@85 13654 *)
cannam@85 13655 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cannam@85 13656 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 13657 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@85 13658 else
cannam@85 13659 ld_shlibs_F77=no
cannam@85 13660 fi
cannam@85 13661 ;;
cannam@85 13662 esac
cannam@85 13663
cannam@85 13664 if test "$ld_shlibs_F77" = yes; then
cannam@85 13665 runpath_var=LD_RUN_PATH
cannam@85 13666 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
cannam@85 13667 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
cannam@85 13668 # ancient GNU ld didn't support --whole-archive et. al.
cannam@85 13669 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
cannam@85 13670 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cannam@85 13671 else
cannam@85 13672 whole_archive_flag_spec_F77=
cannam@85 13673 fi
cannam@85 13674 fi
cannam@85 13675 else
cannam@85 13676 # PORTME fill in a description of your system's linker (not GNU ld)
cannam@85 13677 case $host_os in
cannam@85 13678 aix3*)
cannam@85 13679 allow_undefined_flag_F77=unsupported
cannam@85 13680 always_export_symbols_F77=yes
cannam@85 13681 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@85 13682 # Note: this linker hardcodes the directories in LIBPATH if there
cannam@85 13683 # are no directories specified by -L.
cannam@85 13684 hardcode_minus_L_F77=yes
cannam@85 13685 if test "$GCC" = yes && test -z "$link_static_flag"; then
cannam@85 13686 # Neither direct hardcoding nor static linking is supported with a
cannam@85 13687 # broken collect2.
cannam@85 13688 hardcode_direct_F77=unsupported
cannam@85 13689 fi
cannam@85 13690 ;;
cannam@85 13691
cannam@85 13692 aix4* | aix5*)
cannam@85 13693 if test "$host_cpu" = ia64; then
cannam@85 13694 # On IA64, the linker does run time linking by default, so we don't
cannam@85 13695 # have to do anything special.
cannam@85 13696 aix_use_runtimelinking=no
cannam@85 13697 exp_sym_flag='-Bexport'
cannam@85 13698 no_entry_flag=""
cannam@85 13699 else
cannam@85 13700 # If we're using GNU nm, then we don't want the "-C" option.
cannam@85 13701 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cannam@85 13702 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
cannam@85 13703 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
cannam@85 13704 else
cannam@85 13705 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@85 13706 fi
cannam@85 13707 aix_use_runtimelinking=no
cannam@85 13708
cannam@85 13709 # Test if we are trying to use run time linking or normal
cannam@85 13710 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cannam@85 13711 # need to do runtime linking.
cannam@85 13712 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
cannam@85 13713 for ld_flag in $LDFLAGS; do
cannam@85 13714 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
cannam@85 13715 aix_use_runtimelinking=yes
cannam@85 13716 break
cannam@85 13717 fi
cannam@85 13718 done
cannam@85 13719 esac
cannam@85 13720
cannam@85 13721 exp_sym_flag='-bexport'
cannam@85 13722 no_entry_flag='-bnoentry'
cannam@85 13723 fi
cannam@85 13724
cannam@85 13725 # When large executables or shared objects are built, AIX ld can
cannam@85 13726 # have problems creating the table of contents. If linking a library
cannam@85 13727 # or program results in "error TOC overflow" add -mminimal-toc to
cannam@85 13728 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cannam@85 13729 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cannam@85 13730
cannam@85 13731 archive_cmds_F77=''
cannam@85 13732 hardcode_direct_F77=yes
cannam@85 13733 hardcode_libdir_separator_F77=':'
cannam@85 13734 link_all_deplibs_F77=yes
cannam@85 13735
cannam@85 13736 if test "$GCC" = yes; then
cannam@85 13737 case $host_os in aix4.012|aix4.012.*)
cannam@85 13738 # We only want to do this on AIX 4.2 and lower, the check
cannam@85 13739 # below for broken collect2 doesn't work under 4.3+
cannam@85 13740 collect2name=`${CC} -print-prog-name=collect2`
cannam@85 13741 if test -f "$collect2name" && \
cannam@85 13742 strings "$collect2name" | grep resolve_lib_name >/dev/null
cannam@85 13743 then
cannam@85 13744 # We have reworked collect2
cannam@85 13745 hardcode_direct_F77=yes
cannam@85 13746 else
cannam@85 13747 # We have old collect2
cannam@85 13748 hardcode_direct_F77=unsupported
cannam@85 13749 # It fails to find uninstalled libraries when the uninstalled
cannam@85 13750 # path is not listed in the libpath. Setting hardcode_minus_L
cannam@85 13751 # to unsupported forces relinking
cannam@85 13752 hardcode_minus_L_F77=yes
cannam@85 13753 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@85 13754 hardcode_libdir_separator_F77=
cannam@85 13755 fi
cannam@85 13756 esac
cannam@85 13757 shared_flag='-shared'
cannam@85 13758 else
cannam@85 13759 # not using gcc
cannam@85 13760 if test "$host_cpu" = ia64; then
cannam@85 13761 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cannam@85 13762 # chokes on -Wl,-G. The following line is correct:
cannam@85 13763 shared_flag='-G'
cannam@85 13764 else
cannam@85 13765 if test "$aix_use_runtimelinking" = yes; then
cannam@85 13766 shared_flag='${wl}-G'
cannam@85 13767 else
cannam@85 13768 shared_flag='${wl}-bM:SRE'
cannam@85 13769 fi
cannam@85 13770 fi
cannam@85 13771 fi
cannam@85 13772
cannam@85 13773 # It seems that -bexpall does not export symbols beginning with
cannam@85 13774 # underscore (_), so it is better to generate a list of symbols to export.
cannam@85 13775 always_export_symbols_F77=yes
cannam@85 13776 if test "$aix_use_runtimelinking" = yes; then
cannam@85 13777 # Warning - without using the other runtime loading flags (-brtl),
cannam@85 13778 # -berok will link without error, but may produce a broken library.
cannam@85 13779 allow_undefined_flag_F77='-berok'
cannam@85 13780 # Determine the default libpath from the value encoded in an empty executable.
cannam@85 13781 cat >conftest.$ac_ext <<_ACEOF
cannam@85 13782 program main
cannam@85 13783
cannam@85 13784 end
cannam@85 13785 _ACEOF
cannam@85 13786 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 13787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 13788 (eval $ac_link) 2>conftest.er1
cannam@85 13789 ac_status=$?
cannam@85 13790 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 13791 rm -f conftest.er1
cannam@85 13792 cat conftest.err >&5
cannam@85 13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 13794 (exit $ac_status); } &&
cannam@85 13795 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
cannam@85 13796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 13797 (eval $ac_try) 2>&5
cannam@85 13798 ac_status=$?
cannam@85 13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 13800 (exit $ac_status); }; } &&
cannam@85 13801 { ac_try='test -s conftest$ac_exeext'
cannam@85 13802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 13803 (eval $ac_try) 2>&5
cannam@85 13804 ac_status=$?
cannam@85 13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 13806 (exit $ac_status); }; }; then
cannam@85 13807
cannam@85 13808 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 13809 }'`
cannam@85 13810 # Check for a 64-bit object if we didn't find anything.
cannam@85 13811 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 13812 }'`; fi
cannam@85 13813 else
cannam@85 13814 echo "$as_me: failed program was:" >&5
cannam@85 13815 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 13816
cannam@85 13817 fi
cannam@85 13818 rm -f conftest.err conftest.$ac_objext \
cannam@85 13819 conftest$ac_exeext conftest.$ac_ext
cannam@85 13820 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
cannam@85 13821
cannam@85 13822 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@85 13823 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cannam@85 13824 else
cannam@85 13825 if test "$host_cpu" = ia64; then
cannam@85 13826 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
cannam@85 13827 allow_undefined_flag_F77="-z nodefs"
cannam@85 13828 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
cannam@85 13829 else
cannam@85 13830 # Determine the default libpath from the value encoded in an empty executable.
cannam@85 13831 cat >conftest.$ac_ext <<_ACEOF
cannam@85 13832 program main
cannam@85 13833
cannam@85 13834 end
cannam@85 13835 _ACEOF
cannam@85 13836 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 13837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 13838 (eval $ac_link) 2>conftest.er1
cannam@85 13839 ac_status=$?
cannam@85 13840 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 13841 rm -f conftest.er1
cannam@85 13842 cat conftest.err >&5
cannam@85 13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 13844 (exit $ac_status); } &&
cannam@85 13845 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
cannam@85 13846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 13847 (eval $ac_try) 2>&5
cannam@85 13848 ac_status=$?
cannam@85 13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 13850 (exit $ac_status); }; } &&
cannam@85 13851 { ac_try='test -s conftest$ac_exeext'
cannam@85 13852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 13853 (eval $ac_try) 2>&5
cannam@85 13854 ac_status=$?
cannam@85 13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 13856 (exit $ac_status); }; }; then
cannam@85 13857
cannam@85 13858 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 13859 }'`
cannam@85 13860 # Check for a 64-bit object if we didn't find anything.
cannam@85 13861 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 13862 }'`; fi
cannam@85 13863 else
cannam@85 13864 echo "$as_me: failed program was:" >&5
cannam@85 13865 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 13866
cannam@85 13867 fi
cannam@85 13868 rm -f conftest.err conftest.$ac_objext \
cannam@85 13869 conftest$ac_exeext conftest.$ac_ext
cannam@85 13870 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
cannam@85 13871
cannam@85 13872 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@85 13873 # Warning - without using the other run time loading flags,
cannam@85 13874 # -berok will link without error, but may produce a broken library.
cannam@85 13875 no_undefined_flag_F77=' ${wl}-bernotok'
cannam@85 13876 allow_undefined_flag_F77=' ${wl}-berok'
cannam@85 13877 # -bexpall does not export symbols beginning with underscore (_)
cannam@85 13878 always_export_symbols_F77=yes
cannam@85 13879 # Exported symbols can be pulled into shared objects from archives
cannam@85 13880 whole_archive_flag_spec_F77=' '
cannam@85 13881 archive_cmds_need_lc_F77=yes
cannam@85 13882 # This is similar to how AIX traditionally builds it's shared libraries.
cannam@85 13883 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
cannam@85 13884 fi
cannam@85 13885 fi
cannam@85 13886 ;;
cannam@85 13887
cannam@85 13888 amigaos*)
cannam@85 13889 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@85 13890 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@85 13891 hardcode_minus_L_F77=yes
cannam@85 13892 # see comment about different semantics on the GNU ld section
cannam@85 13893 ld_shlibs_F77=no
cannam@85 13894 ;;
cannam@85 13895
cannam@85 13896 bsdi4*)
cannam@85 13897 export_dynamic_flag_spec_F77=-rdynamic
cannam@85 13898 ;;
cannam@85 13899
cannam@85 13900 cygwin* | mingw* | pw32*)
cannam@85 13901 # When not using gcc, we currently assume that we are using
cannam@85 13902 # Microsoft Visual C++.
cannam@85 13903 # hardcode_libdir_flag_spec is actually meaningless, as there is
cannam@85 13904 # no search path for DLLs.
cannam@85 13905 hardcode_libdir_flag_spec_F77=' '
cannam@85 13906 allow_undefined_flag_F77=unsupported
cannam@85 13907 # Tell ltmain to make .lib files, not .a files.
cannam@85 13908 libext=lib
cannam@85 13909 # Tell ltmain to make .dll files, not .so files.
cannam@85 13910 shrext=".dll"
cannam@85 13911 # FIXME: Setting linknames here is a bad hack.
cannam@85 13912 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
cannam@85 13913 # The linker will automatically build a .lib file if we build a DLL.
cannam@85 13914 old_archive_From_new_cmds_F77='true'
cannam@85 13915 # FIXME: Should let the user specify the lib program.
cannam@85 13916 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
cannam@85 13917 fix_srcfile_path='`cygpath -w "$srcfile"`'
cannam@85 13918 enable_shared_with_static_runtimes_F77=yes
cannam@85 13919 ;;
cannam@85 13920
cannam@85 13921 darwin* | rhapsody*)
cannam@85 13922 if test "$GXX" = yes ; then
cannam@85 13923 archive_cmds_need_lc_F77=no
cannam@85 13924 case "$host_os" in
cannam@85 13925 rhapsody* | darwin1.[012])
cannam@85 13926 allow_undefined_flag_F77='-undefined suppress'
cannam@85 13927 ;;
cannam@85 13928 *) # Darwin 1.3 on
cannam@85 13929 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
cannam@85 13930 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
cannam@85 13931 else
cannam@85 13932 case ${MACOSX_DEPLOYMENT_TARGET} in
cannam@85 13933 10.[012])
cannam@85 13934 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
cannam@85 13935 ;;
cannam@85 13936 10.*)
cannam@85 13937 allow_undefined_flag_F77='-undefined dynamic_lookup'
cannam@85 13938 ;;
cannam@85 13939 esac
cannam@85 13940 fi
cannam@85 13941 ;;
cannam@85 13942 esac
cannam@85 13943 lt_int_apple_cc_single_mod=no
cannam@85 13944 output_verbose_link_cmd='echo'
cannam@85 13945 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
cannam@85 13946 lt_int_apple_cc_single_mod=yes
cannam@85 13947 fi
cannam@85 13948 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
cannam@85 13949 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
cannam@85 13950 else
cannam@85 13951 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
cannam@85 13952 fi
cannam@85 13953 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
cannam@85 13954 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
cannam@85 13955 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
cannam@85 13956 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
cannam@85 13957 else
cannam@85 13958 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
cannam@85 13959 fi
cannam@85 13960 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
cannam@85 13961 hardcode_direct_F77=no
cannam@85 13962 hardcode_automatic_F77=yes
cannam@85 13963 hardcode_shlibpath_var_F77=unsupported
cannam@85 13964 whole_archive_flag_spec_F77='-all_load $convenience'
cannam@85 13965 link_all_deplibs_F77=yes
cannam@85 13966 else
cannam@85 13967 ld_shlibs_F77=no
cannam@85 13968 fi
cannam@85 13969 ;;
cannam@85 13970
cannam@85 13971 dgux*)
cannam@85 13972 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 13973 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@85 13974 hardcode_shlibpath_var_F77=no
cannam@85 13975 ;;
cannam@85 13976
cannam@85 13977 freebsd1*)
cannam@85 13978 ld_shlibs_F77=no
cannam@85 13979 ;;
cannam@85 13980
cannam@85 13981 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
cannam@85 13982 # support. Future versions do this automatically, but an explicit c++rt0.o
cannam@85 13983 # does not break anything, and helps significantly (at the cost of a little
cannam@85 13984 # extra space).
cannam@85 13985 freebsd2.2*)
cannam@85 13986 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
cannam@85 13987 hardcode_libdir_flag_spec_F77='-R$libdir'
cannam@85 13988 hardcode_direct_F77=yes
cannam@85 13989 hardcode_shlibpath_var_F77=no
cannam@85 13990 ;;
cannam@85 13991
cannam@85 13992 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cannam@85 13993 freebsd2*)
cannam@85 13994 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@85 13995 hardcode_direct_F77=yes
cannam@85 13996 hardcode_minus_L_F77=yes
cannam@85 13997 hardcode_shlibpath_var_F77=no
cannam@85 13998 ;;
cannam@85 13999
cannam@85 14000 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
cannam@85 14001 freebsd* | kfreebsd*-gnu)
cannam@85 14002 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 14003 hardcode_libdir_flag_spec_F77='-R$libdir'
cannam@85 14004 hardcode_direct_F77=yes
cannam@85 14005 hardcode_shlibpath_var_F77=no
cannam@85 14006 ;;
cannam@85 14007
cannam@85 14008 hpux9*)
cannam@85 14009 if test "$GCC" = yes; then
cannam@85 14010 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cannam@85 14011 else
cannam@85 14012 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@85 14013 fi
cannam@85 14014 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
cannam@85 14015 hardcode_libdir_separator_F77=:
cannam@85 14016 hardcode_direct_F77=yes
cannam@85 14017
cannam@85 14018 # hardcode_minus_L: Not really in the search PATH,
cannam@85 14019 # but as the default location of the library.
cannam@85 14020 hardcode_minus_L_F77=yes
cannam@85 14021 export_dynamic_flag_spec_F77='${wl}-E'
cannam@85 14022 ;;
cannam@85 14023
cannam@85 14024 hpux10* | hpux11*)
cannam@85 14025 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cannam@85 14026 case "$host_cpu" in
cannam@85 14027 hppa*64*|ia64*)
cannam@85 14028 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 14029 ;;
cannam@85 14030 *)
cannam@85 14031 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 14032 ;;
cannam@85 14033 esac
cannam@85 14034 else
cannam@85 14035 case "$host_cpu" in
cannam@85 14036 hppa*64*|ia64*)
cannam@85 14037 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14038 ;;
cannam@85 14039 *)
cannam@85 14040 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14041 ;;
cannam@85 14042 esac
cannam@85 14043 fi
cannam@85 14044 if test "$with_gnu_ld" = no; then
cannam@85 14045 case "$host_cpu" in
cannam@85 14046 hppa*64*)
cannam@85 14047 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
cannam@85 14048 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
cannam@85 14049 hardcode_libdir_separator_F77=:
cannam@85 14050 hardcode_direct_F77=no
cannam@85 14051 hardcode_shlibpath_var_F77=no
cannam@85 14052 ;;
cannam@85 14053 ia64*)
cannam@85 14054 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@85 14055 hardcode_direct_F77=no
cannam@85 14056 hardcode_shlibpath_var_F77=no
cannam@85 14057
cannam@85 14058 # hardcode_minus_L: Not really in the search PATH,
cannam@85 14059 # but as the default location of the library.
cannam@85 14060 hardcode_minus_L_F77=yes
cannam@85 14061 ;;
cannam@85 14062 *)
cannam@85 14063 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
cannam@85 14064 hardcode_libdir_separator_F77=:
cannam@85 14065 hardcode_direct_F77=yes
cannam@85 14066 export_dynamic_flag_spec_F77='${wl}-E'
cannam@85 14067
cannam@85 14068 # hardcode_minus_L: Not really in the search PATH,
cannam@85 14069 # but as the default location of the library.
cannam@85 14070 hardcode_minus_L_F77=yes
cannam@85 14071 ;;
cannam@85 14072 esac
cannam@85 14073 fi
cannam@85 14074 ;;
cannam@85 14075
cannam@85 14076 irix5* | irix6* | nonstopux*)
cannam@85 14077 if test "$GCC" = yes; then
cannam@85 14078 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cannam@85 14079 else
cannam@85 14080 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
cannam@85 14081 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
cannam@85 14082 fi
cannam@85 14083 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
cannam@85 14084 hardcode_libdir_separator_F77=:
cannam@85 14085 link_all_deplibs_F77=yes
cannam@85 14086 ;;
cannam@85 14087
cannam@85 14088 netbsd* | knetbsd*-gnu)
cannam@85 14089 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cannam@85 14090 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
cannam@85 14091 else
cannam@85 14092 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
cannam@85 14093 fi
cannam@85 14094 hardcode_libdir_flag_spec_F77='-R$libdir'
cannam@85 14095 hardcode_direct_F77=yes
cannam@85 14096 hardcode_shlibpath_var_F77=no
cannam@85 14097 ;;
cannam@85 14098
cannam@85 14099 newsos6)
cannam@85 14100 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14101 hardcode_direct_F77=yes
cannam@85 14102 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
cannam@85 14103 hardcode_libdir_separator_F77=:
cannam@85 14104 hardcode_shlibpath_var_F77=no
cannam@85 14105 ;;
cannam@85 14106
cannam@85 14107 openbsd*)
cannam@85 14108 hardcode_direct_F77=yes
cannam@85 14109 hardcode_shlibpath_var_F77=no
cannam@85 14110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@85 14111 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 14112 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
cannam@85 14113 export_dynamic_flag_spec_F77='${wl}-E'
cannam@85 14114 else
cannam@85 14115 case $host_os in
cannam@85 14116 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
cannam@85 14117 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14118 hardcode_libdir_flag_spec_F77='-R$libdir'
cannam@85 14119 ;;
cannam@85 14120 *)
cannam@85 14121 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 14122 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
cannam@85 14123 ;;
cannam@85 14124 esac
cannam@85 14125 fi
cannam@85 14126 ;;
cannam@85 14127
cannam@85 14128 os2*)
cannam@85 14129 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@85 14130 hardcode_minus_L_F77=yes
cannam@85 14131 allow_undefined_flag_F77=unsupported
cannam@85 14132 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@85 14133 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
cannam@85 14134 ;;
cannam@85 14135
cannam@85 14136 osf3*)
cannam@85 14137 if test "$GCC" = yes; then
cannam@85 14138 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
cannam@85 14139 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cannam@85 14140 else
cannam@85 14141 allow_undefined_flag_F77=' -expect_unresolved \*'
cannam@85 14142 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
cannam@85 14143 fi
cannam@85 14144 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
cannam@85 14145 hardcode_libdir_separator_F77=:
cannam@85 14146 ;;
cannam@85 14147
cannam@85 14148 osf4* | osf5*) # as osf3* with the addition of -msym flag
cannam@85 14149 if test "$GCC" = yes; then
cannam@85 14150 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
cannam@85 14151 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cannam@85 14152 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
cannam@85 14153 else
cannam@85 14154 allow_undefined_flag_F77=' -expect_unresolved \*'
cannam@85 14155 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
cannam@85 14156 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
cannam@85 14157 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
cannam@85 14158
cannam@85 14159 # Both c and cxx compiler support -rpath directly
cannam@85 14160 hardcode_libdir_flag_spec_F77='-rpath $libdir'
cannam@85 14161 fi
cannam@85 14162 hardcode_libdir_separator_F77=:
cannam@85 14163 ;;
cannam@85 14164
cannam@85 14165 sco3.2v5*)
cannam@85 14166 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14167 hardcode_shlibpath_var_F77=no
cannam@85 14168 export_dynamic_flag_spec_F77='${wl}-Bexport'
cannam@85 14169 runpath_var=LD_RUN_PATH
cannam@85 14170 hardcode_runpath_var=yes
cannam@85 14171 ;;
cannam@85 14172
cannam@85 14173 solaris*)
cannam@85 14174 no_undefined_flag_F77=' -z text'
cannam@85 14175 if test "$GCC" = yes; then
cannam@85 14176 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 14177 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 14178 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
cannam@85 14179 else
cannam@85 14180 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14181 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 14182 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
cannam@85 14183 fi
cannam@85 14184 hardcode_libdir_flag_spec_F77='-R$libdir'
cannam@85 14185 hardcode_shlibpath_var_F77=no
cannam@85 14186 case $host_os in
cannam@85 14187 solaris2.[0-5] | solaris2.[0-5].*) ;;
cannam@85 14188 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
cannam@85 14189 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
cannam@85 14190 esac
cannam@85 14191 link_all_deplibs_F77=yes
cannam@85 14192 ;;
cannam@85 14193
cannam@85 14194 sunos4*)
cannam@85 14195 if test "x$host_vendor" = xsequent; then
cannam@85 14196 # Use $CC to link under sequent, because it throws in some extra .o
cannam@85 14197 # files that make .init and .fini sections work.
cannam@85 14198 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 14199 else
cannam@85 14200 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14201 fi
cannam@85 14202 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@85 14203 hardcode_direct_F77=yes
cannam@85 14204 hardcode_minus_L_F77=yes
cannam@85 14205 hardcode_shlibpath_var_F77=no
cannam@85 14206 ;;
cannam@85 14207
cannam@85 14208 sysv4)
cannam@85 14209 case $host_vendor in
cannam@85 14210 sni)
cannam@85 14211 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14212 hardcode_direct_F77=yes # is this really true???
cannam@85 14213 ;;
cannam@85 14214 siemens)
cannam@85 14215 ## LD is ld it makes a PLAMLIB
cannam@85 14216 ## CC just makes a GrossModule.
cannam@85 14217 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14218 reload_cmds_F77='$CC -r -o $output$reload_objs'
cannam@85 14219 hardcode_direct_F77=no
cannam@85 14220 ;;
cannam@85 14221 motorola)
cannam@85 14222 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14223 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
cannam@85 14224 ;;
cannam@85 14225 esac
cannam@85 14226 runpath_var='LD_RUN_PATH'
cannam@85 14227 hardcode_shlibpath_var_F77=no
cannam@85 14228 ;;
cannam@85 14229
cannam@85 14230 sysv4.3*)
cannam@85 14231 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14232 hardcode_shlibpath_var_F77=no
cannam@85 14233 export_dynamic_flag_spec_F77='-Bexport'
cannam@85 14234 ;;
cannam@85 14235
cannam@85 14236 sysv4*MP*)
cannam@85 14237 if test -d /usr/nec; then
cannam@85 14238 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14239 hardcode_shlibpath_var_F77=no
cannam@85 14240 runpath_var=LD_RUN_PATH
cannam@85 14241 hardcode_runpath_var=yes
cannam@85 14242 ld_shlibs_F77=yes
cannam@85 14243 fi
cannam@85 14244 ;;
cannam@85 14245
cannam@85 14246 sysv4.2uw2*)
cannam@85 14247 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14248 hardcode_direct_F77=yes
cannam@85 14249 hardcode_minus_L_F77=no
cannam@85 14250 hardcode_shlibpath_var_F77=no
cannam@85 14251 hardcode_runpath_var=yes
cannam@85 14252 runpath_var=LD_RUN_PATH
cannam@85 14253 ;;
cannam@85 14254
cannam@85 14255 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
cannam@85 14256 no_undefined_flag_F77='${wl}-z ${wl}text'
cannam@85 14257 if test "$GCC" = yes; then
cannam@85 14258 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 14259 else
cannam@85 14260 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 14261 fi
cannam@85 14262 runpath_var='LD_RUN_PATH'
cannam@85 14263 hardcode_shlibpath_var_F77=no
cannam@85 14264 ;;
cannam@85 14265
cannam@85 14266 sysv5*)
cannam@85 14267 no_undefined_flag_F77=' -z text'
cannam@85 14268 # $CC -shared without GNU ld will not create a library from C++
cannam@85 14269 # object files and a static libstdc++, better avoid it by now
cannam@85 14270 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14271 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 14272 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
cannam@85 14273 hardcode_libdir_flag_spec_F77=
cannam@85 14274 hardcode_shlibpath_var_F77=no
cannam@85 14275 runpath_var='LD_RUN_PATH'
cannam@85 14276 ;;
cannam@85 14277
cannam@85 14278 uts4*)
cannam@85 14279 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14280 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@85 14281 hardcode_shlibpath_var_F77=no
cannam@85 14282 ;;
cannam@85 14283
cannam@85 14284 *)
cannam@85 14285 ld_shlibs_F77=no
cannam@85 14286 ;;
cannam@85 14287 esac
cannam@85 14288 fi
cannam@85 14289
cannam@85 14290 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
cannam@85 14291 echo "${ECHO_T}$ld_shlibs_F77" >&6
cannam@85 14292 test "$ld_shlibs_F77" = no && can_build_shared=no
cannam@85 14293
cannam@85 14294 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cannam@85 14295 if test "$GCC" = yes; then
cannam@85 14296 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
cannam@85 14297 fi
cannam@85 14298
cannam@85 14299 #
cannam@85 14300 # Do we need to explicitly link libc?
cannam@85 14301 #
cannam@85 14302 case "x$archive_cmds_need_lc_F77" in
cannam@85 14303 x|xyes)
cannam@85 14304 # Assume -lc should be added
cannam@85 14305 archive_cmds_need_lc_F77=yes
cannam@85 14306
cannam@85 14307 if test "$enable_shared" = yes && test "$GCC" = yes; then
cannam@85 14308 case $archive_cmds_F77 in
cannam@85 14309 *'~'*)
cannam@85 14310 # FIXME: we may have to deal with multi-command sequences.
cannam@85 14311 ;;
cannam@85 14312 '$CC '*)
cannam@85 14313 # Test whether the compiler implicitly links with -lc since on some
cannam@85 14314 # systems, -lgcc has to come before -lc. If gcc already passes -lc
cannam@85 14315 # to ld, don't add -lc before -lgcc.
cannam@85 14316 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
cannam@85 14317 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
cannam@85 14318 $rm conftest*
cannam@85 14319 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 14320
cannam@85 14321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 14322 (eval $ac_compile) 2>&5
cannam@85 14323 ac_status=$?
cannam@85 14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 14325 (exit $ac_status); } 2>conftest.err; then
cannam@85 14326 soname=conftest
cannam@85 14327 lib=conftest
cannam@85 14328 libobjs=conftest.$ac_objext
cannam@85 14329 deplibs=
cannam@85 14330 wl=$lt_prog_compiler_wl_F77
cannam@85 14331 compiler_flags=-v
cannam@85 14332 linker_flags=-v
cannam@85 14333 verstring=
cannam@85 14334 output_objdir=.
cannam@85 14335 libname=conftest
cannam@85 14336 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
cannam@85 14337 allow_undefined_flag_F77=
cannam@85 14338 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
cannam@85 14339 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
cannam@85 14340 ac_status=$?
cannam@85 14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 14342 (exit $ac_status); }
cannam@85 14343 then
cannam@85 14344 archive_cmds_need_lc_F77=no
cannam@85 14345 else
cannam@85 14346 archive_cmds_need_lc_F77=yes
cannam@85 14347 fi
cannam@85 14348 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
cannam@85 14349 else
cannam@85 14350 cat conftest.err 1>&5
cannam@85 14351 fi
cannam@85 14352 $rm conftest*
cannam@85 14353 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
cannam@85 14354 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
cannam@85 14355 ;;
cannam@85 14356 esac
cannam@85 14357 fi
cannam@85 14358 ;;
cannam@85 14359 esac
cannam@85 14360
cannam@85 14361 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
cannam@85 14362 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
cannam@85 14363 library_names_spec=
cannam@85 14364 libname_spec='lib$name'
cannam@85 14365 soname_spec=
cannam@85 14366 shrext=".so"
cannam@85 14367 postinstall_cmds=
cannam@85 14368 postuninstall_cmds=
cannam@85 14369 finish_cmds=
cannam@85 14370 finish_eval=
cannam@85 14371 shlibpath_var=
cannam@85 14372 shlibpath_overrides_runpath=unknown
cannam@85 14373 version_type=none
cannam@85 14374 dynamic_linker="$host_os ld.so"
cannam@85 14375 sys_lib_dlsearch_path_spec="/lib /usr/lib"
cannam@85 14376 if test "$GCC" = yes; then
cannam@85 14377 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
cannam@85 14378 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
cannam@85 14379 # if the path contains ";" then we assume it to be the separator
cannam@85 14380 # otherwise default to the standard path separator (i.e. ":") - it is
cannam@85 14381 # assumed that no part of a normal pathname contains ";" but that should
cannam@85 14382 # okay in the real world where ";" in dirpaths is itself problematic.
cannam@85 14383 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@85 14384 else
cannam@85 14385 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@85 14386 fi
cannam@85 14387 else
cannam@85 14388 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
cannam@85 14389 fi
cannam@85 14390 need_lib_prefix=unknown
cannam@85 14391 hardcode_into_libs=no
cannam@85 14392
cannam@85 14393 # when you set need_version to no, make sure it does not cause -set_version
cannam@85 14394 # flags to be left without arguments
cannam@85 14395 need_version=unknown
cannam@85 14396
cannam@85 14397 case $host_os in
cannam@85 14398 aix3*)
cannam@85 14399 version_type=linux
cannam@85 14400 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
cannam@85 14401 shlibpath_var=LIBPATH
cannam@85 14402
cannam@85 14403 # AIX 3 has no versioning support, so we append a major version to the name.
cannam@85 14404 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14405 ;;
cannam@85 14406
cannam@85 14407 aix4* | aix5*)
cannam@85 14408 version_type=linux
cannam@85 14409 need_lib_prefix=no
cannam@85 14410 need_version=no
cannam@85 14411 hardcode_into_libs=yes
cannam@85 14412 if test "$host_cpu" = ia64; then
cannam@85 14413 # AIX 5 supports IA64
cannam@85 14414 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
cannam@85 14415 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14416 else
cannam@85 14417 # With GCC up to 2.95.x, collect2 would create an import file
cannam@85 14418 # for dependence libraries. The import file would start with
cannam@85 14419 # the line `#! .'. This would cause the generated library to
cannam@85 14420 # depend on `.', always an invalid library. This was fixed in
cannam@85 14421 # development snapshots of GCC prior to 3.0.
cannam@85 14422 case $host_os in
cannam@85 14423 aix4 | aix4.[01] | aix4.[01].*)
cannam@85 14424 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
cannam@85 14425 echo ' yes '
cannam@85 14426 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
cannam@85 14427 :
cannam@85 14428 else
cannam@85 14429 can_build_shared=no
cannam@85 14430 fi
cannam@85 14431 ;;
cannam@85 14432 esac
cannam@85 14433 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
cannam@85 14434 # soname into executable. Probably we can add versioning support to
cannam@85 14435 # collect2, so additional links can be useful in future.
cannam@85 14436 if test "$aix_use_runtimelinking" = yes; then
cannam@85 14437 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
cannam@85 14438 # instead of lib<name>.a to let people know that these are not
cannam@85 14439 # typical AIX shared libraries.
cannam@85 14440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14441 else
cannam@85 14442 # We preserve .a as extension for shared libraries through AIX4.2
cannam@85 14443 # and later when we are not doing run time linking.
cannam@85 14444 library_names_spec='${libname}${release}.a $libname.a'
cannam@85 14445 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14446 fi
cannam@85 14447 shlibpath_var=LIBPATH
cannam@85 14448 fi
cannam@85 14449 ;;
cannam@85 14450
cannam@85 14451 amigaos*)
cannam@85 14452 library_names_spec='$libname.ixlibrary $libname.a'
cannam@85 14453 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cannam@85 14454 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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@85 14455 ;;
cannam@85 14456
cannam@85 14457 beos*)
cannam@85 14458 library_names_spec='${libname}${shared_ext}'
cannam@85 14459 dynamic_linker="$host_os ld.so"
cannam@85 14460 shlibpath_var=LIBRARY_PATH
cannam@85 14461 ;;
cannam@85 14462
cannam@85 14463 bsdi4*)
cannam@85 14464 version_type=linux
cannam@85 14465 need_version=no
cannam@85 14466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14467 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14468 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
cannam@85 14469 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14470 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
cannam@85 14471 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
cannam@85 14472 # the default ld.so.conf also contains /usr/contrib/lib and
cannam@85 14473 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
cannam@85 14474 # libtool to hard-code these into programs
cannam@85 14475 ;;
cannam@85 14476
cannam@85 14477 cygwin* | mingw* | pw32*)
cannam@85 14478 version_type=windows
cannam@85 14479 shrext=".dll"
cannam@85 14480 need_version=no
cannam@85 14481 need_lib_prefix=no
cannam@85 14482
cannam@85 14483 case $GCC,$host_os in
cannam@85 14484 yes,cygwin* | yes,mingw* | yes,pw32*)
cannam@85 14485 library_names_spec='$libname.dll.a'
cannam@85 14486 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@85 14487 postinstall_cmds='base_file=`basename \${file}`~
cannam@85 14488 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
cannam@85 14489 dldir=$destdir/`dirname \$dlpath`~
cannam@85 14490 test -d \$dldir || mkdir -p \$dldir~
cannam@85 14491 $install_prog $dir/$dlname \$dldir/$dlname'
cannam@85 14492 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@85 14493 dlpath=$dir/\$dldll~
cannam@85 14494 $rm \$dlpath'
cannam@85 14495 shlibpath_overrides_runpath=yes
cannam@85 14496
cannam@85 14497 case $host_os in
cannam@85 14498 cygwin*)
cannam@85 14499 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cannam@85 14500 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 14501 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cannam@85 14502 ;;
cannam@85 14503 mingw*)
cannam@85 14504 # MinGW DLLs use traditional 'lib' prefix
cannam@85 14505 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 14506 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
cannam@85 14507 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
cannam@85 14508 # It is most probably a Windows format PATH printed by
cannam@85 14509 # mingw gcc, but we are running on Cygwin. Gcc prints its search
cannam@85 14510 # path with ; separators, and with drive letters. We can handle the
cannam@85 14511 # drive letters (cygwin fileutils understands them), so leave them,
cannam@85 14512 # especially as we might pass files found there to a mingw objdump,
cannam@85 14513 # which wouldn't understand a cygwinified path. Ahh.
cannam@85 14514 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@85 14515 else
cannam@85 14516 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@85 14517 fi
cannam@85 14518 ;;
cannam@85 14519 pw32*)
cannam@85 14520 # pw32 DLLs use 'pw' prefix rather than 'lib'
cannam@85 14521 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
cannam@85 14522 ;;
cannam@85 14523 esac
cannam@85 14524 ;;
cannam@85 14525
cannam@85 14526 *)
cannam@85 14527 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cannam@85 14528 ;;
cannam@85 14529 esac
cannam@85 14530 dynamic_linker='Win32 ld.exe'
cannam@85 14531 # FIXME: first we should search . and the directory the executable is in
cannam@85 14532 shlibpath_var=PATH
cannam@85 14533 ;;
cannam@85 14534
cannam@85 14535 darwin* | rhapsody*)
cannam@85 14536 dynamic_linker="$host_os dyld"
cannam@85 14537 version_type=darwin
cannam@85 14538 need_lib_prefix=no
cannam@85 14539 need_version=no
cannam@85 14540 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
cannam@85 14541 soname_spec='${libname}${release}${major}$shared_ext'
cannam@85 14542 shlibpath_overrides_runpath=yes
cannam@85 14543 shlibpath_var=DYLD_LIBRARY_PATH
cannam@85 14544 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
cannam@85 14545 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
cannam@85 14546 if test "$GCC" = yes; then
cannam@85 14547 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
cannam@85 14548 else
cannam@85 14549 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
cannam@85 14550 fi
cannam@85 14551 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
cannam@85 14552 ;;
cannam@85 14553
cannam@85 14554 dgux*)
cannam@85 14555 version_type=linux
cannam@85 14556 need_lib_prefix=no
cannam@85 14557 need_version=no
cannam@85 14558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
cannam@85 14559 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14560 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14561 ;;
cannam@85 14562
cannam@85 14563 freebsd1*)
cannam@85 14564 dynamic_linker=no
cannam@85 14565 ;;
cannam@85 14566
cannam@85 14567 kfreebsd*-gnu)
cannam@85 14568 version_type=linux
cannam@85 14569 need_lib_prefix=no
cannam@85 14570 need_version=no
cannam@85 14571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 14572 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14573 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14574 shlibpath_overrides_runpath=no
cannam@85 14575 hardcode_into_libs=yes
cannam@85 14576 dynamic_linker='GNU ld.so'
cannam@85 14577 ;;
cannam@85 14578
cannam@85 14579 freebsd*)
cannam@85 14580 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
cannam@85 14581 version_type=freebsd-$objformat
cannam@85 14582 case $version_type in
cannam@85 14583 freebsd-elf*)
cannam@85 14584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@85 14585 need_version=no
cannam@85 14586 need_lib_prefix=no
cannam@85 14587 ;;
cannam@85 14588 freebsd-*)
cannam@85 14589 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
cannam@85 14590 need_version=yes
cannam@85 14591 ;;
cannam@85 14592 esac
cannam@85 14593 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14594 case $host_os in
cannam@85 14595 freebsd2*)
cannam@85 14596 shlibpath_overrides_runpath=yes
cannam@85 14597 ;;
cannam@85 14598 freebsd3.01* | freebsdelf3.01*)
cannam@85 14599 shlibpath_overrides_runpath=yes
cannam@85 14600 hardcode_into_libs=yes
cannam@85 14601 ;;
cannam@85 14602 *) # from 3.2 on
cannam@85 14603 shlibpath_overrides_runpath=no
cannam@85 14604 hardcode_into_libs=yes
cannam@85 14605 ;;
cannam@85 14606 esac
cannam@85 14607 ;;
cannam@85 14608
cannam@85 14609 gnu*)
cannam@85 14610 version_type=linux
cannam@85 14611 need_lib_prefix=no
cannam@85 14612 need_version=no
cannam@85 14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
cannam@85 14614 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14615 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14616 hardcode_into_libs=yes
cannam@85 14617 ;;
cannam@85 14618
cannam@85 14619 hpux9* | hpux10* | hpux11*)
cannam@85 14620 # Give a soname corresponding to the major version so that dld.sl refuses to
cannam@85 14621 # link against other versions.
cannam@85 14622 version_type=sunos
cannam@85 14623 need_lib_prefix=no
cannam@85 14624 need_version=no
cannam@85 14625 case "$host_cpu" in
cannam@85 14626 ia64*)
cannam@85 14627 shrext='.so'
cannam@85 14628 hardcode_into_libs=yes
cannam@85 14629 dynamic_linker="$host_os dld.so"
cannam@85 14630 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14631 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@85 14632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14633 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14634 if test "X$HPUX_IA64_MODE" = X32; then
cannam@85 14635 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
cannam@85 14636 else
cannam@85 14637 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
cannam@85 14638 fi
cannam@85 14639 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@85 14640 ;;
cannam@85 14641 hppa*64*)
cannam@85 14642 shrext='.sl'
cannam@85 14643 hardcode_into_libs=yes
cannam@85 14644 dynamic_linker="$host_os dld.sl"
cannam@85 14645 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
cannam@85 14646 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@85 14647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14648 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14649 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
cannam@85 14650 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@85 14651 ;;
cannam@85 14652 *)
cannam@85 14653 shrext='.sl'
cannam@85 14654 dynamic_linker="$host_os dld.sl"
cannam@85 14655 shlibpath_var=SHLIB_PATH
cannam@85 14656 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cannam@85 14657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14658 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14659 ;;
cannam@85 14660 esac
cannam@85 14661 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cannam@85 14662 postinstall_cmds='chmod 555 $lib'
cannam@85 14663 ;;
cannam@85 14664
cannam@85 14665 irix5* | irix6* | nonstopux*)
cannam@85 14666 case $host_os in
cannam@85 14667 nonstopux*) version_type=nonstopux ;;
cannam@85 14668 *)
cannam@85 14669 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@85 14670 version_type=linux
cannam@85 14671 else
cannam@85 14672 version_type=irix
cannam@85 14673 fi ;;
cannam@85 14674 esac
cannam@85 14675 need_lib_prefix=no
cannam@85 14676 need_version=no
cannam@85 14677 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@85 14679 case $host_os in
cannam@85 14680 irix5* | nonstopux*)
cannam@85 14681 libsuff= shlibsuff=
cannam@85 14682 ;;
cannam@85 14683 *)
cannam@85 14684 case $LD in # libtool.m4 will add one of these switches to LD
cannam@85 14685 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
cannam@85 14686 libsuff= shlibsuff= libmagic=32-bit;;
cannam@85 14687 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
cannam@85 14688 libsuff=32 shlibsuff=N32 libmagic=N32;;
cannam@85 14689 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
cannam@85 14690 libsuff=64 shlibsuff=64 libmagic=64-bit;;
cannam@85 14691 *) libsuff= shlibsuff= libmagic=never-match;;
cannam@85 14692 esac
cannam@85 14693 ;;
cannam@85 14694 esac
cannam@85 14695 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
cannam@85 14696 shlibpath_overrides_runpath=no
cannam@85 14697 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
cannam@85 14698 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
cannam@85 14699 hardcode_into_libs=yes
cannam@85 14700 ;;
cannam@85 14701
cannam@85 14702 # No shared lib support for Linux oldld, aout, or coff.
cannam@85 14703 linux*oldld* | linux*aout* | linux*coff*)
cannam@85 14704 dynamic_linker=no
cannam@85 14705 ;;
cannam@85 14706
cannam@85 14707 # This must be Linux ELF.
cannam@85 14708 linux*)
cannam@85 14709 version_type=linux
cannam@85 14710 need_lib_prefix=no
cannam@85 14711 need_version=no
cannam@85 14712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14713 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
cannam@85 14715 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14716 shlibpath_overrides_runpath=no
cannam@85 14717 # This implies no fast_install, which is unacceptable.
cannam@85 14718 # Some rework will be needed to allow for fast_install
cannam@85 14719 # before this can be enabled.
cannam@85 14720 hardcode_into_libs=yes
cannam@85 14721
cannam@85 14722 # Append ld.so.conf contents to the search path
cannam@85 14723 if test -f /etc/ld.so.conf; then
cannam@85 14724 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
cannam@85 14725 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
cannam@85 14726 fi
cannam@85 14727
cannam@85 14728 # We used to test for /lib/ld.so.1 and disable shared libraries on
cannam@85 14729 # powerpc, because MkLinux only supported shared libraries with the
cannam@85 14730 # GNU dynamic linker. Since this was broken with cross compilers,
cannam@85 14731 # most powerpc-linux boxes support dynamic linking these days and
cannam@85 14732 # people can always --disable-shared, the test was removed, and we
cannam@85 14733 # assume the GNU/Linux dynamic linker is in use.
cannam@85 14734 dynamic_linker='GNU/Linux ld.so'
cannam@85 14735 ;;
cannam@85 14736
cannam@85 14737 knetbsd*-gnu)
cannam@85 14738 version_type=linux
cannam@85 14739 need_lib_prefix=no
cannam@85 14740 need_version=no
cannam@85 14741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 14742 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14743 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14744 shlibpath_overrides_runpath=no
cannam@85 14745 hardcode_into_libs=yes
cannam@85 14746 dynamic_linker='GNU ld.so'
cannam@85 14747 ;;
cannam@85 14748
cannam@85 14749 netbsd*)
cannam@85 14750 version_type=sunos
cannam@85 14751 need_lib_prefix=no
cannam@85 14752 need_version=no
cannam@85 14753 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cannam@85 14754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 14755 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@85 14756 dynamic_linker='NetBSD (a.out) ld.so'
cannam@85 14757 else
cannam@85 14758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 14759 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14760 dynamic_linker='NetBSD ld.elf_so'
cannam@85 14761 fi
cannam@85 14762 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14763 shlibpath_overrides_runpath=yes
cannam@85 14764 hardcode_into_libs=yes
cannam@85 14765 ;;
cannam@85 14766
cannam@85 14767 newsos6)
cannam@85 14768 version_type=linux
cannam@85 14769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14770 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14771 shlibpath_overrides_runpath=yes
cannam@85 14772 ;;
cannam@85 14773
cannam@85 14774 nto-qnx*)
cannam@85 14775 version_type=linux
cannam@85 14776 need_lib_prefix=no
cannam@85 14777 need_version=no
cannam@85 14778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14779 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14780 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14781 shlibpath_overrides_runpath=yes
cannam@85 14782 ;;
cannam@85 14783
cannam@85 14784 openbsd*)
cannam@85 14785 version_type=sunos
cannam@85 14786 need_lib_prefix=no
cannam@85 14787 need_version=yes
cannam@85 14788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 14789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@85 14790 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14791 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@85 14792 case $host_os in
cannam@85 14793 openbsd2.[89] | openbsd2.[89].*)
cannam@85 14794 shlibpath_overrides_runpath=no
cannam@85 14795 ;;
cannam@85 14796 *)
cannam@85 14797 shlibpath_overrides_runpath=yes
cannam@85 14798 ;;
cannam@85 14799 esac
cannam@85 14800 else
cannam@85 14801 shlibpath_overrides_runpath=yes
cannam@85 14802 fi
cannam@85 14803 ;;
cannam@85 14804
cannam@85 14805 os2*)
cannam@85 14806 libname_spec='$name'
cannam@85 14807 shrext=".dll"
cannam@85 14808 need_lib_prefix=no
cannam@85 14809 library_names_spec='$libname${shared_ext} $libname.a'
cannam@85 14810 dynamic_linker='OS/2 ld.exe'
cannam@85 14811 shlibpath_var=LIBPATH
cannam@85 14812 ;;
cannam@85 14813
cannam@85 14814 osf3* | osf4* | osf5*)
cannam@85 14815 version_type=osf
cannam@85 14816 need_lib_prefix=no
cannam@85 14817 need_version=no
cannam@85 14818 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14820 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14821 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cannam@85 14822 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
cannam@85 14823 ;;
cannam@85 14824
cannam@85 14825 sco3.2v5*)
cannam@85 14826 version_type=osf
cannam@85 14827 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14829 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14830 ;;
cannam@85 14831
cannam@85 14832 solaris*)
cannam@85 14833 version_type=linux
cannam@85 14834 need_lib_prefix=no
cannam@85 14835 need_version=no
cannam@85 14836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14837 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14838 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14839 shlibpath_overrides_runpath=yes
cannam@85 14840 hardcode_into_libs=yes
cannam@85 14841 # ldd complains unless libraries are executable
cannam@85 14842 postinstall_cmds='chmod +x $lib'
cannam@85 14843 ;;
cannam@85 14844
cannam@85 14845 sunos4*)
cannam@85 14846 version_type=sunos
cannam@85 14847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 14848 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
cannam@85 14849 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14850 shlibpath_overrides_runpath=yes
cannam@85 14851 if test "$with_gnu_ld" = yes; then
cannam@85 14852 need_lib_prefix=no
cannam@85 14853 fi
cannam@85 14854 need_version=yes
cannam@85 14855 ;;
cannam@85 14856
cannam@85 14857 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@85 14858 version_type=linux
cannam@85 14859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14860 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14861 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14862 case $host_vendor in
cannam@85 14863 sni)
cannam@85 14864 shlibpath_overrides_runpath=no
cannam@85 14865 need_lib_prefix=no
cannam@85 14866 export_dynamic_flag_spec='${wl}-Blargedynsym'
cannam@85 14867 runpath_var=LD_RUN_PATH
cannam@85 14868 ;;
cannam@85 14869 siemens)
cannam@85 14870 need_lib_prefix=no
cannam@85 14871 ;;
cannam@85 14872 motorola)
cannam@85 14873 need_lib_prefix=no
cannam@85 14874 need_version=no
cannam@85 14875 shlibpath_overrides_runpath=no
cannam@85 14876 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
cannam@85 14877 ;;
cannam@85 14878 esac
cannam@85 14879 ;;
cannam@85 14880
cannam@85 14881 sysv4*MP*)
cannam@85 14882 if test -d /usr/nec ;then
cannam@85 14883 version_type=linux
cannam@85 14884 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
cannam@85 14885 soname_spec='$libname${shared_ext}.$major'
cannam@85 14886 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14887 fi
cannam@85 14888 ;;
cannam@85 14889
cannam@85 14890 uts4*)
cannam@85 14891 version_type=linux
cannam@85 14892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14893 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14894 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14895 ;;
cannam@85 14896
cannam@85 14897 *)
cannam@85 14898 dynamic_linker=no
cannam@85 14899 ;;
cannam@85 14900 esac
cannam@85 14901 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
cannam@85 14902 echo "${ECHO_T}$dynamic_linker" >&6
cannam@85 14903 test "$dynamic_linker" = no && can_build_shared=no
cannam@85 14904
cannam@85 14905 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
cannam@85 14906 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
cannam@85 14907 hardcode_action_F77=
cannam@85 14908 if test -n "$hardcode_libdir_flag_spec_F77" || \
cannam@85 14909 test -n "$runpath_var F77" || \
cannam@85 14910 test "X$hardcode_automatic_F77"="Xyes" ; then
cannam@85 14911
cannam@85 14912 # We can hardcode non-existant directories.
cannam@85 14913 if test "$hardcode_direct_F77" != no &&
cannam@85 14914 # If the only mechanism to avoid hardcoding is shlibpath_var, we
cannam@85 14915 # have to relink, otherwise we might link with an installed library
cannam@85 14916 # when we should be linking with a yet-to-be-installed one
cannam@85 14917 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
cannam@85 14918 test "$hardcode_minus_L_F77" != no; then
cannam@85 14919 # Linking always hardcodes the temporary library directory.
cannam@85 14920 hardcode_action_F77=relink
cannam@85 14921 else
cannam@85 14922 # We can link without hardcoding, and we can hardcode nonexisting dirs.
cannam@85 14923 hardcode_action_F77=immediate
cannam@85 14924 fi
cannam@85 14925 else
cannam@85 14926 # We cannot hardcode anything, or else we can only hardcode existing
cannam@85 14927 # directories.
cannam@85 14928 hardcode_action_F77=unsupported
cannam@85 14929 fi
cannam@85 14930 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
cannam@85 14931 echo "${ECHO_T}$hardcode_action_F77" >&6
cannam@85 14932
cannam@85 14933 if test "$hardcode_action_F77" = relink; then
cannam@85 14934 # Fast installation is not supported
cannam@85 14935 enable_fast_install=no
cannam@85 14936 elif test "$shlibpath_overrides_runpath" = yes ||
cannam@85 14937 test "$enable_shared" = no; then
cannam@85 14938 # Fast installation is not necessary
cannam@85 14939 enable_fast_install=needless
cannam@85 14940 fi
cannam@85 14941
cannam@85 14942 striplib=
cannam@85 14943 old_striplib=
cannam@85 14944 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
cannam@85 14945 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
cannam@85 14946 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
cannam@85 14947 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
cannam@85 14948 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cannam@85 14949 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 14950 echo "${ECHO_T}yes" >&6
cannam@85 14951 else
cannam@85 14952 # FIXME - insert some real tests, host_os isn't really good enough
cannam@85 14953 case $host_os in
cannam@85 14954 darwin*)
cannam@85 14955 if test -n "$STRIP" ; then
cannam@85 14956 striplib="$STRIP -x"
cannam@85 14957 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 14958 echo "${ECHO_T}yes" >&6
cannam@85 14959 else
cannam@85 14960 echo "$as_me:$LINENO: result: no" >&5
cannam@85 14961 echo "${ECHO_T}no" >&6
cannam@85 14962 fi
cannam@85 14963 ;;
cannam@85 14964 *)
cannam@85 14965 echo "$as_me:$LINENO: result: no" >&5
cannam@85 14966 echo "${ECHO_T}no" >&6
cannam@85 14967 ;;
cannam@85 14968 esac
cannam@85 14969 fi
cannam@85 14970
cannam@85 14971
cannam@85 14972
cannam@85 14973 # The else clause should only fire when bootstrapping the
cannam@85 14974 # libtool distribution, otherwise you forgot to ship ltmain.sh
cannam@85 14975 # with your package, and you will get complaints that there are
cannam@85 14976 # no rules to generate ltmain.sh.
cannam@85 14977 if test -f "$ltmain"; then
cannam@85 14978 # See if we are running on zsh, and set the options which allow our commands through
cannam@85 14979 # without removal of \ escapes.
cannam@85 14980 if test -n "${ZSH_VERSION+set}" ; then
cannam@85 14981 setopt NO_GLOB_SUBST
cannam@85 14982 fi
cannam@85 14983 # Now quote all the things that may contain metacharacters while being
cannam@85 14984 # careful not to overquote the AC_SUBSTed values. We take copies of the
cannam@85 14985 # variables and quote the copies for generation of the libtool script.
cannam@85 14986 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
cannam@85 14987 SED SHELL STRIP \
cannam@85 14988 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
cannam@85 14989 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
cannam@85 14990 deplibs_check_method reload_flag reload_cmds need_locks \
cannam@85 14991 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
cannam@85 14992 lt_cv_sys_global_symbol_to_c_name_address \
cannam@85 14993 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
cannam@85 14994 old_postinstall_cmds old_postuninstall_cmds \
cannam@85 14995 compiler_F77 \
cannam@85 14996 CC_F77 \
cannam@85 14997 LD_F77 \
cannam@85 14998 lt_prog_compiler_wl_F77 \
cannam@85 14999 lt_prog_compiler_pic_F77 \
cannam@85 15000 lt_prog_compiler_static_F77 \
cannam@85 15001 lt_prog_compiler_no_builtin_flag_F77 \
cannam@85 15002 export_dynamic_flag_spec_F77 \
cannam@85 15003 thread_safe_flag_spec_F77 \
cannam@85 15004 whole_archive_flag_spec_F77 \
cannam@85 15005 enable_shared_with_static_runtimes_F77 \
cannam@85 15006 old_archive_cmds_F77 \
cannam@85 15007 old_archive_from_new_cmds_F77 \
cannam@85 15008 predep_objects_F77 \
cannam@85 15009 postdep_objects_F77 \
cannam@85 15010 predeps_F77 \
cannam@85 15011 postdeps_F77 \
cannam@85 15012 compiler_lib_search_path_F77 \
cannam@85 15013 archive_cmds_F77 \
cannam@85 15014 archive_expsym_cmds_F77 \
cannam@85 15015 postinstall_cmds_F77 \
cannam@85 15016 postuninstall_cmds_F77 \
cannam@85 15017 old_archive_from_expsyms_cmds_F77 \
cannam@85 15018 allow_undefined_flag_F77 \
cannam@85 15019 no_undefined_flag_F77 \
cannam@85 15020 export_symbols_cmds_F77 \
cannam@85 15021 hardcode_libdir_flag_spec_F77 \
cannam@85 15022 hardcode_libdir_flag_spec_ld_F77 \
cannam@85 15023 hardcode_libdir_separator_F77 \
cannam@85 15024 hardcode_automatic_F77 \
cannam@85 15025 module_cmds_F77 \
cannam@85 15026 module_expsym_cmds_F77 \
cannam@85 15027 lt_cv_prog_compiler_c_o_F77 \
cannam@85 15028 exclude_expsyms_F77 \
cannam@85 15029 include_expsyms_F77; do
cannam@85 15030
cannam@85 15031 case $var in
cannam@85 15032 old_archive_cmds_F77 | \
cannam@85 15033 old_archive_from_new_cmds_F77 | \
cannam@85 15034 archive_cmds_F77 | \
cannam@85 15035 archive_expsym_cmds_F77 | \
cannam@85 15036 module_cmds_F77 | \
cannam@85 15037 module_expsym_cmds_F77 | \
cannam@85 15038 old_archive_from_expsyms_cmds_F77 | \
cannam@85 15039 export_symbols_cmds_F77 | \
cannam@85 15040 extract_expsyms_cmds | reload_cmds | finish_cmds | \
cannam@85 15041 postinstall_cmds | postuninstall_cmds | \
cannam@85 15042 old_postinstall_cmds | old_postuninstall_cmds | \
cannam@85 15043 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
cannam@85 15044 # Double-quote double-evaled strings.
cannam@85 15045 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
cannam@85 15046 ;;
cannam@85 15047 *)
cannam@85 15048 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
cannam@85 15049 ;;
cannam@85 15050 esac
cannam@85 15051 done
cannam@85 15052
cannam@85 15053 case $lt_echo in
cannam@85 15054 *'\$0 --fallback-echo"')
cannam@85 15055 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
cannam@85 15056 ;;
cannam@85 15057 esac
cannam@85 15058
cannam@85 15059 cfgfile="$ofile"
cannam@85 15060
cannam@85 15061 cat <<__EOF__ >> "$cfgfile"
cannam@85 15062 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
cannam@85 15063
cannam@85 15064 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
cannam@85 15065
cannam@85 15066 # Shell to use when invoking shell scripts.
cannam@85 15067 SHELL=$lt_SHELL
cannam@85 15068
cannam@85 15069 # Whether or not to build shared libraries.
cannam@85 15070 build_libtool_libs=$enable_shared
cannam@85 15071
cannam@85 15072 # Whether or not to build static libraries.
cannam@85 15073 build_old_libs=$enable_static
cannam@85 15074
cannam@85 15075 # Whether or not to add -lc for building shared libraries.
cannam@85 15076 build_libtool_need_lc=$archive_cmds_need_lc_F77
cannam@85 15077
cannam@85 15078 # Whether or not to disallow shared libs when runtime libs are static
cannam@85 15079 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
cannam@85 15080
cannam@85 15081 # Whether or not to optimize for fast installation.
cannam@85 15082 fast_install=$enable_fast_install
cannam@85 15083
cannam@85 15084 # The host system.
cannam@85 15085 host_alias=$host_alias
cannam@85 15086 host=$host
cannam@85 15087
cannam@85 15088 # An echo program that does not interpret backslashes.
cannam@85 15089 echo=$lt_echo
cannam@85 15090
cannam@85 15091 # The archiver.
cannam@85 15092 AR=$lt_AR
cannam@85 15093 AR_FLAGS=$lt_AR_FLAGS
cannam@85 15094
cannam@85 15095 # A C compiler.
cannam@85 15096 LTCC=$lt_LTCC
cannam@85 15097
cannam@85 15098 # A language-specific compiler.
cannam@85 15099 CC=$lt_compiler_F77
cannam@85 15100
cannam@85 15101 # Is the compiler the GNU C compiler?
cannam@85 15102 with_gcc=$GCC_F77
cannam@85 15103
cannam@85 15104 # An ERE matcher.
cannam@85 15105 EGREP=$lt_EGREP
cannam@85 15106
cannam@85 15107 # The linker used to build libraries.
cannam@85 15108 LD=$lt_LD_F77
cannam@85 15109
cannam@85 15110 # Whether we need hard or soft links.
cannam@85 15111 LN_S=$lt_LN_S
cannam@85 15112
cannam@85 15113 # A BSD-compatible nm program.
cannam@85 15114 NM=$lt_NM
cannam@85 15115
cannam@85 15116 # A symbol stripping program
cannam@85 15117 STRIP=$lt_STRIP
cannam@85 15118
cannam@85 15119 # Used to examine libraries when file_magic_cmd begins "file"
cannam@85 15120 MAGIC_CMD=$MAGIC_CMD
cannam@85 15121
cannam@85 15122 # Used on cygwin: DLL creation program.
cannam@85 15123 DLLTOOL="$DLLTOOL"
cannam@85 15124
cannam@85 15125 # Used on cygwin: object dumper.
cannam@85 15126 OBJDUMP="$OBJDUMP"
cannam@85 15127
cannam@85 15128 # Used on cygwin: assembler.
cannam@85 15129 AS="$AS"
cannam@85 15130
cannam@85 15131 # The name of the directory that contains temporary libtool files.
cannam@85 15132 objdir=$objdir
cannam@85 15133
cannam@85 15134 # How to create reloadable object files.
cannam@85 15135 reload_flag=$lt_reload_flag
cannam@85 15136 reload_cmds=$lt_reload_cmds
cannam@85 15137
cannam@85 15138 # How to pass a linker flag through the compiler.
cannam@85 15139 wl=$lt_lt_prog_compiler_wl_F77
cannam@85 15140
cannam@85 15141 # Object file suffix (normally "o").
cannam@85 15142 objext="$ac_objext"
cannam@85 15143
cannam@85 15144 # Old archive suffix (normally "a").
cannam@85 15145 libext="$libext"
cannam@85 15146
cannam@85 15147 # Shared library suffix (normally ".so").
cannam@85 15148 shrext='$shrext'
cannam@85 15149
cannam@85 15150 # Executable file suffix (normally "").
cannam@85 15151 exeext="$exeext"
cannam@85 15152
cannam@85 15153 # Additional compiler flags for building library objects.
cannam@85 15154 pic_flag=$lt_lt_prog_compiler_pic_F77
cannam@85 15155 pic_mode=$pic_mode
cannam@85 15156
cannam@85 15157 # What is the maximum length of a command?
cannam@85 15158 max_cmd_len=$lt_cv_sys_max_cmd_len
cannam@85 15159
cannam@85 15160 # Does compiler simultaneously support -c and -o options?
cannam@85 15161 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
cannam@85 15162
cannam@85 15163 # Must we lock files when doing compilation ?
cannam@85 15164 need_locks=$lt_need_locks
cannam@85 15165
cannam@85 15166 # Do we need the lib prefix for modules?
cannam@85 15167 need_lib_prefix=$need_lib_prefix
cannam@85 15168
cannam@85 15169 # Do we need a version for libraries?
cannam@85 15170 need_version=$need_version
cannam@85 15171
cannam@85 15172 # Whether dlopen is supported.
cannam@85 15173 dlopen_support=$enable_dlopen
cannam@85 15174
cannam@85 15175 # Whether dlopen of programs is supported.
cannam@85 15176 dlopen_self=$enable_dlopen_self
cannam@85 15177
cannam@85 15178 # Whether dlopen of statically linked programs is supported.
cannam@85 15179 dlopen_self_static=$enable_dlopen_self_static
cannam@85 15180
cannam@85 15181 # Compiler flag to prevent dynamic linking.
cannam@85 15182 link_static_flag=$lt_lt_prog_compiler_static_F77
cannam@85 15183
cannam@85 15184 # Compiler flag to turn off builtin functions.
cannam@85 15185 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
cannam@85 15186
cannam@85 15187 # Compiler flag to allow reflexive dlopens.
cannam@85 15188 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
cannam@85 15189
cannam@85 15190 # Compiler flag to generate shared objects directly from archives.
cannam@85 15191 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
cannam@85 15192
cannam@85 15193 # Compiler flag to generate thread-safe objects.
cannam@85 15194 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
cannam@85 15195
cannam@85 15196 # Library versioning type.
cannam@85 15197 version_type=$version_type
cannam@85 15198
cannam@85 15199 # Format of library name prefix.
cannam@85 15200 libname_spec=$lt_libname_spec
cannam@85 15201
cannam@85 15202 # List of archive names. First name is the real one, the rest are links.
cannam@85 15203 # The last name is the one that the linker finds with -lNAME.
cannam@85 15204 library_names_spec=$lt_library_names_spec
cannam@85 15205
cannam@85 15206 # The coded name of the library, if different from the real name.
cannam@85 15207 soname_spec=$lt_soname_spec
cannam@85 15208
cannam@85 15209 # Commands used to build and install an old-style archive.
cannam@85 15210 RANLIB=$lt_RANLIB
cannam@85 15211 old_archive_cmds=$lt_old_archive_cmds_F77
cannam@85 15212 old_postinstall_cmds=$lt_old_postinstall_cmds
cannam@85 15213 old_postuninstall_cmds=$lt_old_postuninstall_cmds
cannam@85 15214
cannam@85 15215 # Create an old-style archive from a shared archive.
cannam@85 15216 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
cannam@85 15217
cannam@85 15218 # Create a temporary old-style archive to link instead of a shared archive.
cannam@85 15219 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
cannam@85 15220
cannam@85 15221 # Commands used to build and install a shared archive.
cannam@85 15222 archive_cmds=$lt_archive_cmds_F77
cannam@85 15223 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
cannam@85 15224 postinstall_cmds=$lt_postinstall_cmds
cannam@85 15225 postuninstall_cmds=$lt_postuninstall_cmds
cannam@85 15226
cannam@85 15227 # Commands used to build a loadable module (assumed same as above if empty)
cannam@85 15228 module_cmds=$lt_module_cmds_F77
cannam@85 15229 module_expsym_cmds=$lt_module_expsym_cmds_F77
cannam@85 15230
cannam@85 15231 # Commands to strip libraries.
cannam@85 15232 old_striplib=$lt_old_striplib
cannam@85 15233 striplib=$lt_striplib
cannam@85 15234
cannam@85 15235 # Dependencies to place before the objects being linked to create a
cannam@85 15236 # shared library.
cannam@85 15237 predep_objects=$lt_predep_objects_F77
cannam@85 15238
cannam@85 15239 # Dependencies to place after the objects being linked to create a
cannam@85 15240 # shared library.
cannam@85 15241 postdep_objects=$lt_postdep_objects_F77
cannam@85 15242
cannam@85 15243 # Dependencies to place before the objects being linked to create a
cannam@85 15244 # shared library.
cannam@85 15245 predeps=$lt_predeps_F77
cannam@85 15246
cannam@85 15247 # Dependencies to place after the objects being linked to create a
cannam@85 15248 # shared library.
cannam@85 15249 postdeps=$lt_postdeps_F77
cannam@85 15250
cannam@85 15251 # The library search path used internally by the compiler when linking
cannam@85 15252 # a shared library.
cannam@85 15253 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
cannam@85 15254
cannam@85 15255 # Method to check whether dependent libraries are shared objects.
cannam@85 15256 deplibs_check_method=$lt_deplibs_check_method
cannam@85 15257
cannam@85 15258 # Command to use when deplibs_check_method == file_magic.
cannam@85 15259 file_magic_cmd=$lt_file_magic_cmd
cannam@85 15260
cannam@85 15261 # Flag that allows shared libraries with undefined symbols to be built.
cannam@85 15262 allow_undefined_flag=$lt_allow_undefined_flag_F77
cannam@85 15263
cannam@85 15264 # Flag that forces no undefined symbols.
cannam@85 15265 no_undefined_flag=$lt_no_undefined_flag_F77
cannam@85 15266
cannam@85 15267 # Commands used to finish a libtool library installation in a directory.
cannam@85 15268 finish_cmds=$lt_finish_cmds
cannam@85 15269
cannam@85 15270 # Same as above, but a single script fragment to be evaled but not shown.
cannam@85 15271 finish_eval=$lt_finish_eval
cannam@85 15272
cannam@85 15273 # Take the output of nm and produce a listing of raw symbols and C names.
cannam@85 15274 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
cannam@85 15275
cannam@85 15276 # Transform the output of nm in a proper C declaration
cannam@85 15277 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
cannam@85 15278
cannam@85 15279 # Transform the output of nm in a C name address pair
cannam@85 15280 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
cannam@85 15281
cannam@85 15282 # This is the shared library runtime path variable.
cannam@85 15283 runpath_var=$runpath_var
cannam@85 15284
cannam@85 15285 # This is the shared library path variable.
cannam@85 15286 shlibpath_var=$shlibpath_var
cannam@85 15287
cannam@85 15288 # Is shlibpath searched before the hard-coded library search path?
cannam@85 15289 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
cannam@85 15290
cannam@85 15291 # How to hardcode a shared library path into an executable.
cannam@85 15292 hardcode_action=$hardcode_action_F77
cannam@85 15293
cannam@85 15294 # Whether we should hardcode library paths into libraries.
cannam@85 15295 hardcode_into_libs=$hardcode_into_libs
cannam@85 15296
cannam@85 15297 # Flag to hardcode \$libdir into a binary during linking.
cannam@85 15298 # This must work even if \$libdir does not exist.
cannam@85 15299 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
cannam@85 15300
cannam@85 15301 # If ld is used when linking, flag to hardcode \$libdir into
cannam@85 15302 # a binary during linking. This must work even if \$libdir does
cannam@85 15303 # not exist.
cannam@85 15304 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
cannam@85 15305
cannam@85 15306 # Whether we need a single -rpath flag with a separated argument.
cannam@85 15307 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
cannam@85 15308
cannam@85 15309 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
cannam@85 15310 # resulting binary.
cannam@85 15311 hardcode_direct=$hardcode_direct_F77
cannam@85 15312
cannam@85 15313 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
cannam@85 15314 # resulting binary.
cannam@85 15315 hardcode_minus_L=$hardcode_minus_L_F77
cannam@85 15316
cannam@85 15317 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
cannam@85 15318 # the resulting binary.
cannam@85 15319 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
cannam@85 15320
cannam@85 15321 # Set to yes if building a shared library automatically hardcodes DIR into the library
cannam@85 15322 # and all subsequent libraries and executables linked against it.
cannam@85 15323 hardcode_automatic=$hardcode_automatic_F77
cannam@85 15324
cannam@85 15325 # Variables whose values should be saved in libtool wrapper scripts and
cannam@85 15326 # restored at relink time.
cannam@85 15327 variables_saved_for_relink="$variables_saved_for_relink"
cannam@85 15328
cannam@85 15329 # Whether libtool must link a program against all its dependency libraries.
cannam@85 15330 link_all_deplibs=$link_all_deplibs_F77
cannam@85 15331
cannam@85 15332 # Compile-time system search path for libraries
cannam@85 15333 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
cannam@85 15334
cannam@85 15335 # Run-time system search path for libraries
cannam@85 15336 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
cannam@85 15337
cannam@85 15338 # Fix the shell variable \$srcfile for the compiler.
cannam@85 15339 fix_srcfile_path="$fix_srcfile_path_F77"
cannam@85 15340
cannam@85 15341 # Set to yes if exported symbols are required.
cannam@85 15342 always_export_symbols=$always_export_symbols_F77
cannam@85 15343
cannam@85 15344 # The commands to list exported symbols.
cannam@85 15345 export_symbols_cmds=$lt_export_symbols_cmds_F77
cannam@85 15346
cannam@85 15347 # The commands to extract the exported symbol list from a shared archive.
cannam@85 15348 extract_expsyms_cmds=$lt_extract_expsyms_cmds
cannam@85 15349
cannam@85 15350 # Symbols that should not be listed in the preloaded symbols.
cannam@85 15351 exclude_expsyms=$lt_exclude_expsyms_F77
cannam@85 15352
cannam@85 15353 # Symbols that must always be exported.
cannam@85 15354 include_expsyms=$lt_include_expsyms_F77
cannam@85 15355
cannam@85 15356 # ### END LIBTOOL TAG CONFIG: $tagname
cannam@85 15357
cannam@85 15358 __EOF__
cannam@85 15359
cannam@85 15360
cannam@85 15361 else
cannam@85 15362 # If there is no Makefile yet, we rely on a make rule to execute
cannam@85 15363 # `config.status --recheck' to rerun these tests and create the
cannam@85 15364 # libtool script then.
cannam@85 15365 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
cannam@85 15366 if test -f "$ltmain_in"; then
cannam@85 15367 test -f Makefile && make "$ltmain"
cannam@85 15368 fi
cannam@85 15369 fi
cannam@85 15370
cannam@85 15371
cannam@85 15372 ac_ext=c
cannam@85 15373 ac_cpp='$CPP $CPPFLAGS'
cannam@85 15374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 15375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 15376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 15377
cannam@85 15378 CC="$lt_save_CC"
cannam@85 15379
cannam@85 15380 else
cannam@85 15381 tagname=""
cannam@85 15382 fi
cannam@85 15383 ;;
cannam@85 15384
cannam@85 15385 GCJ)
cannam@85 15386 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
cannam@85 15387
cannam@85 15388
cannam@85 15389
cannam@85 15390 # Source file extension for Java test sources.
cannam@85 15391 ac_ext=java
cannam@85 15392
cannam@85 15393 # Object file extension for compiled Java test sources.
cannam@85 15394 objext=o
cannam@85 15395 objext_GCJ=$objext
cannam@85 15396
cannam@85 15397 # Code to be used in simple compile tests
cannam@85 15398 lt_simple_compile_test_code="class foo {}\n"
cannam@85 15399
cannam@85 15400 # Code to be used in simple link tests
cannam@85 15401 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
cannam@85 15402
cannam@85 15403 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
cannam@85 15404
cannam@85 15405 # If no C compiler was specified, use CC.
cannam@85 15406 LTCC=${LTCC-"$CC"}
cannam@85 15407
cannam@85 15408 # Allow CC to be a program name with arguments.
cannam@85 15409 compiler=$CC
cannam@85 15410
cannam@85 15411
cannam@85 15412 # Allow CC to be a program name with arguments.
cannam@85 15413 lt_save_CC="$CC"
cannam@85 15414 CC=${GCJ-"gcj"}
cannam@85 15415 compiler=$CC
cannam@85 15416 compiler_GCJ=$CC
cannam@85 15417
cannam@85 15418 # GCJ did not exist at the time GCC didn't implicitly link libc in.
cannam@85 15419 archive_cmds_need_lc_GCJ=no
cannam@85 15420
cannam@85 15421
cannam@85 15422 lt_prog_compiler_no_builtin_flag_GCJ=
cannam@85 15423
cannam@85 15424 if test "$GCC" = yes; then
cannam@85 15425 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
cannam@85 15426
cannam@85 15427
cannam@85 15428 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cannam@85 15429 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
cannam@85 15430 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
cannam@85 15431 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 15432 else
cannam@85 15433 lt_cv_prog_compiler_rtti_exceptions=no
cannam@85 15434 ac_outfile=conftest.$ac_objext
cannam@85 15435 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 15436 lt_compiler_flag="-fno-rtti -fno-exceptions"
cannam@85 15437 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 15438 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 15439 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 15440 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 15441 # The option is referenced via a variable to avoid confusing sed.
cannam@85 15442 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 15443 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
cannam@85 15444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 15445 -e 's:$: $lt_compiler_flag:'`
cannam@85 15446 (eval echo "\"\$as_me:15446: $lt_compile\"" >&5)
cannam@85 15447 (eval "$lt_compile" 2>conftest.err)
cannam@85 15448 ac_status=$?
cannam@85 15449 cat conftest.err >&5
cannam@85 15450 echo "$as_me:15450: \$? = $ac_status" >&5
cannam@85 15451 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@85 15452 # The compiler can only warn and ignore the option if not recognized
cannam@85 15453 # So say no if there are warnings
cannam@85 15454 if test ! -s conftest.err; then
cannam@85 15455 lt_cv_prog_compiler_rtti_exceptions=yes
cannam@85 15456 fi
cannam@85 15457 fi
cannam@85 15458 $rm conftest*
cannam@85 15459
cannam@85 15460 fi
cannam@85 15461 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cannam@85 15462 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
cannam@85 15463
cannam@85 15464 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
cannam@85 15465 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
cannam@85 15466 else
cannam@85 15467 :
cannam@85 15468 fi
cannam@85 15469
cannam@85 15470 fi
cannam@85 15471
cannam@85 15472 lt_prog_compiler_wl_GCJ=
cannam@85 15473 lt_prog_compiler_pic_GCJ=
cannam@85 15474 lt_prog_compiler_static_GCJ=
cannam@85 15475
cannam@85 15476 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
cannam@85 15477 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
cannam@85 15478
cannam@85 15479 if test "$GCC" = yes; then
cannam@85 15480 lt_prog_compiler_wl_GCJ='-Wl,'
cannam@85 15481 lt_prog_compiler_static_GCJ='-static'
cannam@85 15482
cannam@85 15483 case $host_os in
cannam@85 15484 aix*)
cannam@85 15485 # All AIX code is PIC.
cannam@85 15486 if test "$host_cpu" = ia64; then
cannam@85 15487 # AIX 5 now supports IA64 processor
cannam@85 15488 lt_prog_compiler_static_GCJ='-Bstatic'
cannam@85 15489 fi
cannam@85 15490 ;;
cannam@85 15491
cannam@85 15492 amigaos*)
cannam@85 15493 # FIXME: we need at least 68020 code to build shared libraries, but
cannam@85 15494 # adding the `-m68020' flag to GCC prevents building anything better,
cannam@85 15495 # like `-m68040'.
cannam@85 15496 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
cannam@85 15497 ;;
cannam@85 15498
cannam@85 15499 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cannam@85 15500 # PIC is the default for these OSes.
cannam@85 15501 ;;
cannam@85 15502
cannam@85 15503 mingw* | pw32* | os2*)
cannam@85 15504 # This hack is so that the source file can tell whether it is being
cannam@85 15505 # built for inclusion in a dll (and should export symbols for example).
cannam@85 15506 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
cannam@85 15507 ;;
cannam@85 15508
cannam@85 15509 darwin* | rhapsody*)
cannam@85 15510 # PIC is the default on this platform
cannam@85 15511 # Common symbols not allowed in MH_DYLIB files
cannam@85 15512 lt_prog_compiler_pic_GCJ='-fno-common'
cannam@85 15513 ;;
cannam@85 15514
cannam@85 15515 msdosdjgpp*)
cannam@85 15516 # Just because we use GCC doesn't mean we suddenly get shared libraries
cannam@85 15517 # on systems that don't support them.
cannam@85 15518 lt_prog_compiler_can_build_shared_GCJ=no
cannam@85 15519 enable_shared=no
cannam@85 15520 ;;
cannam@85 15521
cannam@85 15522 sysv4*MP*)
cannam@85 15523 if test -d /usr/nec; then
cannam@85 15524 lt_prog_compiler_pic_GCJ=-Kconform_pic
cannam@85 15525 fi
cannam@85 15526 ;;
cannam@85 15527
cannam@85 15528 hpux*)
cannam@85 15529 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cannam@85 15530 # not for PA HP-UX.
cannam@85 15531 case "$host_cpu" in
cannam@85 15532 hppa*64*|ia64*)
cannam@85 15533 # +Z the default
cannam@85 15534 ;;
cannam@85 15535 *)
cannam@85 15536 lt_prog_compiler_pic_GCJ='-fPIC'
cannam@85 15537 ;;
cannam@85 15538 esac
cannam@85 15539 ;;
cannam@85 15540
cannam@85 15541 *)
cannam@85 15542 lt_prog_compiler_pic_GCJ='-fPIC'
cannam@85 15543 ;;
cannam@85 15544 esac
cannam@85 15545 else
cannam@85 15546 # PORTME Check for flag to pass linker flags through the system compiler.
cannam@85 15547 case $host_os in
cannam@85 15548 aix*)
cannam@85 15549 lt_prog_compiler_wl_GCJ='-Wl,'
cannam@85 15550 if test "$host_cpu" = ia64; then
cannam@85 15551 # AIX 5 now supports IA64 processor
cannam@85 15552 lt_prog_compiler_static_GCJ='-Bstatic'
cannam@85 15553 else
cannam@85 15554 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
cannam@85 15555 fi
cannam@85 15556 ;;
cannam@85 15557
cannam@85 15558 mingw* | pw32* | os2*)
cannam@85 15559 # This hack is so that the source file can tell whether it is being
cannam@85 15560 # built for inclusion in a dll (and should export symbols for example).
cannam@85 15561 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
cannam@85 15562 ;;
cannam@85 15563
cannam@85 15564 hpux9* | hpux10* | hpux11*)
cannam@85 15565 lt_prog_compiler_wl_GCJ='-Wl,'
cannam@85 15566 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cannam@85 15567 # not for PA HP-UX.
cannam@85 15568 case "$host_cpu" in
cannam@85 15569 hppa*64*|ia64*)
cannam@85 15570 # +Z the default
cannam@85 15571 ;;
cannam@85 15572 *)
cannam@85 15573 lt_prog_compiler_pic_GCJ='+Z'
cannam@85 15574 ;;
cannam@85 15575 esac
cannam@85 15576 # Is there a better lt_prog_compiler_static that works with the bundled CC?
cannam@85 15577 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
cannam@85 15578 ;;
cannam@85 15579
cannam@85 15580 irix5* | irix6* | nonstopux*)
cannam@85 15581 lt_prog_compiler_wl_GCJ='-Wl,'
cannam@85 15582 # PIC (with -KPIC) is the default.
cannam@85 15583 lt_prog_compiler_static_GCJ='-non_shared'
cannam@85 15584 ;;
cannam@85 15585
cannam@85 15586 newsos6)
cannam@85 15587 lt_prog_compiler_pic_GCJ='-KPIC'
cannam@85 15588 lt_prog_compiler_static_GCJ='-Bstatic'
cannam@85 15589 ;;
cannam@85 15590
cannam@85 15591 linux*)
cannam@85 15592 case $CC in
cannam@85 15593 icc* | ecc*)
cannam@85 15594 lt_prog_compiler_wl_GCJ='-Wl,'
cannam@85 15595 lt_prog_compiler_pic_GCJ='-KPIC'
cannam@85 15596 lt_prog_compiler_static_GCJ='-static'
cannam@85 15597 ;;
cannam@85 15598 ccc*)
cannam@85 15599 lt_prog_compiler_wl_GCJ='-Wl,'
cannam@85 15600 # All Alpha code is PIC.
cannam@85 15601 lt_prog_compiler_static_GCJ='-non_shared'
cannam@85 15602 ;;
cannam@85 15603 esac
cannam@85 15604 ;;
cannam@85 15605
cannam@85 15606 osf3* | osf4* | osf5*)
cannam@85 15607 lt_prog_compiler_wl_GCJ='-Wl,'
cannam@85 15608 # All OSF/1 code is PIC.
cannam@85 15609 lt_prog_compiler_static_GCJ='-non_shared'
cannam@85 15610 ;;
cannam@85 15611
cannam@85 15612 sco3.2v5*)
cannam@85 15613 lt_prog_compiler_pic_GCJ='-Kpic'
cannam@85 15614 lt_prog_compiler_static_GCJ='-dn'
cannam@85 15615 ;;
cannam@85 15616
cannam@85 15617 solaris*)
cannam@85 15618 lt_prog_compiler_wl_GCJ='-Wl,'
cannam@85 15619 lt_prog_compiler_pic_GCJ='-KPIC'
cannam@85 15620 lt_prog_compiler_static_GCJ='-Bstatic'
cannam@85 15621 ;;
cannam@85 15622
cannam@85 15623 sunos4*)
cannam@85 15624 lt_prog_compiler_wl_GCJ='-Qoption ld '
cannam@85 15625 lt_prog_compiler_pic_GCJ='-PIC'
cannam@85 15626 lt_prog_compiler_static_GCJ='-Bstatic'
cannam@85 15627 ;;
cannam@85 15628
cannam@85 15629 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@85 15630 lt_prog_compiler_wl_GCJ='-Wl,'
cannam@85 15631 lt_prog_compiler_pic_GCJ='-KPIC'
cannam@85 15632 lt_prog_compiler_static_GCJ='-Bstatic'
cannam@85 15633 ;;
cannam@85 15634
cannam@85 15635 sysv4*MP*)
cannam@85 15636 if test -d /usr/nec ;then
cannam@85 15637 lt_prog_compiler_pic_GCJ='-Kconform_pic'
cannam@85 15638 lt_prog_compiler_static_GCJ='-Bstatic'
cannam@85 15639 fi
cannam@85 15640 ;;
cannam@85 15641
cannam@85 15642 uts4*)
cannam@85 15643 lt_prog_compiler_pic_GCJ='-pic'
cannam@85 15644 lt_prog_compiler_static_GCJ='-Bstatic'
cannam@85 15645 ;;
cannam@85 15646
cannam@85 15647 *)
cannam@85 15648 lt_prog_compiler_can_build_shared_GCJ=no
cannam@85 15649 ;;
cannam@85 15650 esac
cannam@85 15651 fi
cannam@85 15652
cannam@85 15653 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
cannam@85 15654 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
cannam@85 15655
cannam@85 15656 #
cannam@85 15657 # Check to make sure the PIC flag actually works.
cannam@85 15658 #
cannam@85 15659 if test -n "$lt_prog_compiler_pic_GCJ"; then
cannam@85 15660
cannam@85 15661 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
cannam@85 15662 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
cannam@85 15663 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
cannam@85 15664 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 15665 else
cannam@85 15666 lt_prog_compiler_pic_works_GCJ=no
cannam@85 15667 ac_outfile=conftest.$ac_objext
cannam@85 15668 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 15669 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
cannam@85 15670 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 15671 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 15672 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 15673 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 15674 # The option is referenced via a variable to avoid confusing sed.
cannam@85 15675 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 15676 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
cannam@85 15677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 15678 -e 's:$: $lt_compiler_flag:'`
cannam@85 15679 (eval echo "\"\$as_me:15679: $lt_compile\"" >&5)
cannam@85 15680 (eval "$lt_compile" 2>conftest.err)
cannam@85 15681 ac_status=$?
cannam@85 15682 cat conftest.err >&5
cannam@85 15683 echo "$as_me:15683: \$? = $ac_status" >&5
cannam@85 15684 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@85 15685 # The compiler can only warn and ignore the option if not recognized
cannam@85 15686 # So say no if there are warnings
cannam@85 15687 if test ! -s conftest.err; then
cannam@85 15688 lt_prog_compiler_pic_works_GCJ=yes
cannam@85 15689 fi
cannam@85 15690 fi
cannam@85 15691 $rm conftest*
cannam@85 15692
cannam@85 15693 fi
cannam@85 15694 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
cannam@85 15695 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
cannam@85 15696
cannam@85 15697 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
cannam@85 15698 case $lt_prog_compiler_pic_GCJ in
cannam@85 15699 "" | " "*) ;;
cannam@85 15700 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
cannam@85 15701 esac
cannam@85 15702 else
cannam@85 15703 lt_prog_compiler_pic_GCJ=
cannam@85 15704 lt_prog_compiler_can_build_shared_GCJ=no
cannam@85 15705 fi
cannam@85 15706
cannam@85 15707 fi
cannam@85 15708 case "$host_os" in
cannam@85 15709 # For platforms which do not support PIC, -DPIC is meaningless:
cannam@85 15710 *djgpp*)
cannam@85 15711 lt_prog_compiler_pic_GCJ=
cannam@85 15712 ;;
cannam@85 15713 *)
cannam@85 15714 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
cannam@85 15715 ;;
cannam@85 15716 esac
cannam@85 15717
cannam@85 15718 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@85 15719 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
cannam@85 15720 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
cannam@85 15721 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 15722 else
cannam@85 15723 lt_cv_prog_compiler_c_o_GCJ=no
cannam@85 15724 $rm -r conftest 2>/dev/null
cannam@85 15725 mkdir conftest
cannam@85 15726 cd conftest
cannam@85 15727 mkdir out
cannam@85 15728 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 15729
cannam@85 15730 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@85 15731 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 15732 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 15733 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 15734 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 15735 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 15736 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
cannam@85 15737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 15738 -e 's:$: $lt_compiler_flag:'`
cannam@85 15739 (eval echo "\"\$as_me:15739: $lt_compile\"" >&5)
cannam@85 15740 (eval "$lt_compile" 2>out/conftest.err)
cannam@85 15741 ac_status=$?
cannam@85 15742 cat out/conftest.err >&5
cannam@85 15743 echo "$as_me:15743: \$? = $ac_status" >&5
cannam@85 15744 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@85 15745 then
cannam@85 15746 # The compiler can only warn and ignore the option if not recognized
cannam@85 15747 # So say no if there are warnings
cannam@85 15748 if test ! -s out/conftest.err; then
cannam@85 15749 lt_cv_prog_compiler_c_o_GCJ=yes
cannam@85 15750 fi
cannam@85 15751 fi
cannam@85 15752 chmod u+w .
cannam@85 15753 $rm conftest*
cannam@85 15754 # SGI C++ compiler will create directory out/ii_files/ for
cannam@85 15755 # template instantiation
cannam@85 15756 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
cannam@85 15757 $rm out/* && rmdir out
cannam@85 15758 cd ..
cannam@85 15759 rmdir conftest
cannam@85 15760 $rm conftest*
cannam@85 15761
cannam@85 15762 fi
cannam@85 15763 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
cannam@85 15764 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
cannam@85 15765
cannam@85 15766
cannam@85 15767 hard_links="nottested"
cannam@85 15768 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
cannam@85 15769 # do not overwrite the value of need_locks provided by the user
cannam@85 15770 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
cannam@85 15771 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
cannam@85 15772 hard_links=yes
cannam@85 15773 $rm conftest*
cannam@85 15774 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@85 15775 touch conftest.a
cannam@85 15776 ln conftest.a conftest.b 2>&5 || hard_links=no
cannam@85 15777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@85 15778 echo "$as_me:$LINENO: result: $hard_links" >&5
cannam@85 15779 echo "${ECHO_T}$hard_links" >&6
cannam@85 15780 if test "$hard_links" = no; then
cannam@85 15781 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cannam@85 15782 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
cannam@85 15783 need_locks=warn
cannam@85 15784 fi
cannam@85 15785 else
cannam@85 15786 need_locks=no
cannam@85 15787 fi
cannam@85 15788
cannam@85 15789 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@85 15790 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
cannam@85 15791
cannam@85 15792 runpath_var=
cannam@85 15793 allow_undefined_flag_GCJ=
cannam@85 15794 enable_shared_with_static_runtimes_GCJ=no
cannam@85 15795 archive_cmds_GCJ=
cannam@85 15796 archive_expsym_cmds_GCJ=
cannam@85 15797 old_archive_From_new_cmds_GCJ=
cannam@85 15798 old_archive_from_expsyms_cmds_GCJ=
cannam@85 15799 export_dynamic_flag_spec_GCJ=
cannam@85 15800 whole_archive_flag_spec_GCJ=
cannam@85 15801 thread_safe_flag_spec_GCJ=
cannam@85 15802 hardcode_libdir_flag_spec_GCJ=
cannam@85 15803 hardcode_libdir_flag_spec_ld_GCJ=
cannam@85 15804 hardcode_libdir_separator_GCJ=
cannam@85 15805 hardcode_direct_GCJ=no
cannam@85 15806 hardcode_minus_L_GCJ=no
cannam@85 15807 hardcode_shlibpath_var_GCJ=unsupported
cannam@85 15808 link_all_deplibs_GCJ=unknown
cannam@85 15809 hardcode_automatic_GCJ=no
cannam@85 15810 module_cmds_GCJ=
cannam@85 15811 module_expsym_cmds_GCJ=
cannam@85 15812 always_export_symbols_GCJ=no
cannam@85 15813 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@85 15814 # include_expsyms should be a list of space-separated symbols to be *always*
cannam@85 15815 # included in the symbol list
cannam@85 15816 include_expsyms_GCJ=
cannam@85 15817 # exclude_expsyms can be an extended regexp of symbols to exclude
cannam@85 15818 # it will be wrapped by ` (' and `)$', so one must not match beginning or
cannam@85 15819 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
cannam@85 15820 # as well as any symbol that contains `d'.
cannam@85 15821 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
cannam@85 15822 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
cannam@85 15823 # platforms (ab)use it in PIC code, but their linkers get confused if
cannam@85 15824 # the symbol is explicitly referenced. Since portable code cannot
cannam@85 15825 # rely on this symbol name, it's probably fine to never include it in
cannam@85 15826 # preloaded symbol tables.
cannam@85 15827 extract_expsyms_cmds=
cannam@85 15828
cannam@85 15829 case $host_os in
cannam@85 15830 cygwin* | mingw* | pw32*)
cannam@85 15831 # FIXME: the MSVC++ port hasn't been tested in a loooong time
cannam@85 15832 # When not using gcc, we currently assume that we are using
cannam@85 15833 # Microsoft Visual C++.
cannam@85 15834 if test "$GCC" != yes; then
cannam@85 15835 with_gnu_ld=no
cannam@85 15836 fi
cannam@85 15837 ;;
cannam@85 15838 openbsd*)
cannam@85 15839 with_gnu_ld=no
cannam@85 15840 ;;
cannam@85 15841 esac
cannam@85 15842
cannam@85 15843 ld_shlibs_GCJ=yes
cannam@85 15844 if test "$with_gnu_ld" = yes; then
cannam@85 15845 # If archive_cmds runs LD, not CC, wlarc should be empty
cannam@85 15846 wlarc='${wl}'
cannam@85 15847
cannam@85 15848 # See if GNU ld supports shared libraries.
cannam@85 15849 case $host_os in
cannam@85 15850 aix3* | aix4* | aix5*)
cannam@85 15851 # On AIX/PPC, the GNU linker is very broken
cannam@85 15852 if test "$host_cpu" != ia64; then
cannam@85 15853 ld_shlibs_GCJ=no
cannam@85 15854 cat <<EOF 1>&2
cannam@85 15855
cannam@85 15856 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
cannam@85 15857 *** to be unable to reliably create shared libraries on AIX.
cannam@85 15858 *** Therefore, libtool is disabling shared libraries support. If you
cannam@85 15859 *** really care for shared libraries, you may want to modify your PATH
cannam@85 15860 *** so that a non-GNU linker is found, and then restart.
cannam@85 15861
cannam@85 15862 EOF
cannam@85 15863 fi
cannam@85 15864 ;;
cannam@85 15865
cannam@85 15866 amigaos*)
cannam@85 15867 archive_cmds_GCJ='$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@85 15868 hardcode_libdir_flag_spec_GCJ='-L$libdir'
cannam@85 15869 hardcode_minus_L_GCJ=yes
cannam@85 15870
cannam@85 15871 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
cannam@85 15872 # that the semantics of dynamic libraries on AmigaOS, at least up
cannam@85 15873 # to version 4, is to share data among multiple programs linked
cannam@85 15874 # with the same dynamic library. Since this doesn't match the
cannam@85 15875 # behavior of shared libraries on other platforms, we can't use
cannam@85 15876 # them.
cannam@85 15877 ld_shlibs_GCJ=no
cannam@85 15878 ;;
cannam@85 15879
cannam@85 15880 beos*)
cannam@85 15881 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cannam@85 15882 allow_undefined_flag_GCJ=unsupported
cannam@85 15883 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
cannam@85 15884 # support --undefined. This deserves some investigation. FIXME
cannam@85 15885 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 15886 else
cannam@85 15887 ld_shlibs_GCJ=no
cannam@85 15888 fi
cannam@85 15889 ;;
cannam@85 15890
cannam@85 15891 cygwin* | mingw* | pw32*)
cannam@85 15892 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
cannam@85 15893 # as there is no search path for DLLs.
cannam@85 15894 hardcode_libdir_flag_spec_GCJ='-L$libdir'
cannam@85 15895 allow_undefined_flag_GCJ=unsupported
cannam@85 15896 always_export_symbols_GCJ=no
cannam@85 15897 enable_shared_with_static_runtimes_GCJ=yes
cannam@85 15898 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
cannam@85 15899
cannam@85 15900 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
cannam@85 15901 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
cannam@85 15902 # If the export-symbols file already is a .def file (1st line
cannam@85 15903 # is EXPORTS), use it as is; otherwise, prepend...
cannam@85 15904 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@85 15905 cp $export_symbols $output_objdir/$soname.def;
cannam@85 15906 else
cannam@85 15907 echo EXPORTS > $output_objdir/$soname.def;
cannam@85 15908 cat $export_symbols >> $output_objdir/$soname.def;
cannam@85 15909 fi~
cannam@85 15910 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
cannam@85 15911 else
cannam@85 15912 ld_shlibs=no
cannam@85 15913 fi
cannam@85 15914 ;;
cannam@85 15915
cannam@85 15916 netbsd* | knetbsd*-gnu)
cannam@85 15917 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cannam@85 15918 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
cannam@85 15919 wlarc=
cannam@85 15920 else
cannam@85 15921 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 15922 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@85 15923 fi
cannam@85 15924 ;;
cannam@85 15925
cannam@85 15926 solaris* | sysv5*)
cannam@85 15927 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
cannam@85 15928 ld_shlibs_GCJ=no
cannam@85 15929 cat <<EOF 1>&2
cannam@85 15930
cannam@85 15931 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
cannam@85 15932 *** create shared libraries on Solaris systems. Therefore, libtool
cannam@85 15933 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@85 15934 *** binutils to release 2.9.1 or newer. Another option is to modify
cannam@85 15935 *** your PATH or compiler configuration so that the native linker is
cannam@85 15936 *** used, and then restart.
cannam@85 15937
cannam@85 15938 EOF
cannam@85 15939 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cannam@85 15940 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 15941 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@85 15942 else
cannam@85 15943 ld_shlibs_GCJ=no
cannam@85 15944 fi
cannam@85 15945 ;;
cannam@85 15946
cannam@85 15947 sunos4*)
cannam@85 15948 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@85 15949 wlarc=
cannam@85 15950 hardcode_direct_GCJ=yes
cannam@85 15951 hardcode_shlibpath_var_GCJ=no
cannam@85 15952 ;;
cannam@85 15953
cannam@85 15954 linux*)
cannam@85 15955 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
cannam@85 15956 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 15957 archive_cmds_GCJ="$tmp_archive_cmds"
cannam@85 15958 supports_anon_versioning=no
cannam@85 15959 case `$LD -v 2>/dev/null` in
cannam@85 15960 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
cannam@85 15961 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
cannam@85 15962 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
cannam@85 15963 *\ 2.11.*) ;; # other 2.11 versions
cannam@85 15964 *) supports_anon_versioning=yes ;;
cannam@85 15965 esac
cannam@85 15966 if test $supports_anon_versioning = yes; then
cannam@85 15967 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
cannam@85 15968 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@85 15969 $echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@85 15970 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
cannam@85 15971 else
cannam@85 15972 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
cannam@85 15973 fi
cannam@85 15974 else
cannam@85 15975 ld_shlibs_GCJ=no
cannam@85 15976 fi
cannam@85 15977 ;;
cannam@85 15978
cannam@85 15979 *)
cannam@85 15980 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cannam@85 15981 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 15982 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@85 15983 else
cannam@85 15984 ld_shlibs_GCJ=no
cannam@85 15985 fi
cannam@85 15986 ;;
cannam@85 15987 esac
cannam@85 15988
cannam@85 15989 if test "$ld_shlibs_GCJ" = yes; then
cannam@85 15990 runpath_var=LD_RUN_PATH
cannam@85 15991 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
cannam@85 15992 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
cannam@85 15993 # ancient GNU ld didn't support --whole-archive et. al.
cannam@85 15994 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
cannam@85 15995 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cannam@85 15996 else
cannam@85 15997 whole_archive_flag_spec_GCJ=
cannam@85 15998 fi
cannam@85 15999 fi
cannam@85 16000 else
cannam@85 16001 # PORTME fill in a description of your system's linker (not GNU ld)
cannam@85 16002 case $host_os in
cannam@85 16003 aix3*)
cannam@85 16004 allow_undefined_flag_GCJ=unsupported
cannam@85 16005 always_export_symbols_GCJ=yes
cannam@85 16006 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
cannam@85 16007 # Note: this linker hardcodes the directories in LIBPATH if there
cannam@85 16008 # are no directories specified by -L.
cannam@85 16009 hardcode_minus_L_GCJ=yes
cannam@85 16010 if test "$GCC" = yes && test -z "$link_static_flag"; then
cannam@85 16011 # Neither direct hardcoding nor static linking is supported with a
cannam@85 16012 # broken collect2.
cannam@85 16013 hardcode_direct_GCJ=unsupported
cannam@85 16014 fi
cannam@85 16015 ;;
cannam@85 16016
cannam@85 16017 aix4* | aix5*)
cannam@85 16018 if test "$host_cpu" = ia64; then
cannam@85 16019 # On IA64, the linker does run time linking by default, so we don't
cannam@85 16020 # have to do anything special.
cannam@85 16021 aix_use_runtimelinking=no
cannam@85 16022 exp_sym_flag='-Bexport'
cannam@85 16023 no_entry_flag=""
cannam@85 16024 else
cannam@85 16025 # If we're using GNU nm, then we don't want the "-C" option.
cannam@85 16026 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cannam@85 16027 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
cannam@85 16028 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
cannam@85 16029 else
cannam@85 16030 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
cannam@85 16031 fi
cannam@85 16032 aix_use_runtimelinking=no
cannam@85 16033
cannam@85 16034 # Test if we are trying to use run time linking or normal
cannam@85 16035 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cannam@85 16036 # need to do runtime linking.
cannam@85 16037 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
cannam@85 16038 for ld_flag in $LDFLAGS; do
cannam@85 16039 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
cannam@85 16040 aix_use_runtimelinking=yes
cannam@85 16041 break
cannam@85 16042 fi
cannam@85 16043 done
cannam@85 16044 esac
cannam@85 16045
cannam@85 16046 exp_sym_flag='-bexport'
cannam@85 16047 no_entry_flag='-bnoentry'
cannam@85 16048 fi
cannam@85 16049
cannam@85 16050 # When large executables or shared objects are built, AIX ld can
cannam@85 16051 # have problems creating the table of contents. If linking a library
cannam@85 16052 # or program results in "error TOC overflow" add -mminimal-toc to
cannam@85 16053 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cannam@85 16054 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cannam@85 16055
cannam@85 16056 archive_cmds_GCJ=''
cannam@85 16057 hardcode_direct_GCJ=yes
cannam@85 16058 hardcode_libdir_separator_GCJ=':'
cannam@85 16059 link_all_deplibs_GCJ=yes
cannam@85 16060
cannam@85 16061 if test "$GCC" = yes; then
cannam@85 16062 case $host_os in aix4.012|aix4.012.*)
cannam@85 16063 # We only want to do this on AIX 4.2 and lower, the check
cannam@85 16064 # below for broken collect2 doesn't work under 4.3+
cannam@85 16065 collect2name=`${CC} -print-prog-name=collect2`
cannam@85 16066 if test -f "$collect2name" && \
cannam@85 16067 strings "$collect2name" | grep resolve_lib_name >/dev/null
cannam@85 16068 then
cannam@85 16069 # We have reworked collect2
cannam@85 16070 hardcode_direct_GCJ=yes
cannam@85 16071 else
cannam@85 16072 # We have old collect2
cannam@85 16073 hardcode_direct_GCJ=unsupported
cannam@85 16074 # It fails to find uninstalled libraries when the uninstalled
cannam@85 16075 # path is not listed in the libpath. Setting hardcode_minus_L
cannam@85 16076 # to unsupported forces relinking
cannam@85 16077 hardcode_minus_L_GCJ=yes
cannam@85 16078 hardcode_libdir_flag_spec_GCJ='-L$libdir'
cannam@85 16079 hardcode_libdir_separator_GCJ=
cannam@85 16080 fi
cannam@85 16081 esac
cannam@85 16082 shared_flag='-shared'
cannam@85 16083 else
cannam@85 16084 # not using gcc
cannam@85 16085 if test "$host_cpu" = ia64; then
cannam@85 16086 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cannam@85 16087 # chokes on -Wl,-G. The following line is correct:
cannam@85 16088 shared_flag='-G'
cannam@85 16089 else
cannam@85 16090 if test "$aix_use_runtimelinking" = yes; then
cannam@85 16091 shared_flag='${wl}-G'
cannam@85 16092 else
cannam@85 16093 shared_flag='${wl}-bM:SRE'
cannam@85 16094 fi
cannam@85 16095 fi
cannam@85 16096 fi
cannam@85 16097
cannam@85 16098 # It seems that -bexpall does not export symbols beginning with
cannam@85 16099 # underscore (_), so it is better to generate a list of symbols to export.
cannam@85 16100 always_export_symbols_GCJ=yes
cannam@85 16101 if test "$aix_use_runtimelinking" = yes; then
cannam@85 16102 # Warning - without using the other runtime loading flags (-brtl),
cannam@85 16103 # -berok will link without error, but may produce a broken library.
cannam@85 16104 allow_undefined_flag_GCJ='-berok'
cannam@85 16105 # Determine the default libpath from the value encoded in an empty executable.
cannam@85 16106 cat >conftest.$ac_ext <<_ACEOF
cannam@85 16107 /* confdefs.h. */
cannam@85 16108 _ACEOF
cannam@85 16109 cat confdefs.h >>conftest.$ac_ext
cannam@85 16110 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 16111 /* end confdefs.h. */
cannam@85 16112
cannam@85 16113 int
cannam@85 16114 main ()
cannam@85 16115 {
cannam@85 16116
cannam@85 16117 ;
cannam@85 16118 return 0;
cannam@85 16119 }
cannam@85 16120 _ACEOF
cannam@85 16121 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 16122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 16123 (eval $ac_link) 2>conftest.er1
cannam@85 16124 ac_status=$?
cannam@85 16125 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 16126 rm -f conftest.er1
cannam@85 16127 cat conftest.err >&5
cannam@85 16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 16129 (exit $ac_status); } &&
cannam@85 16130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 16132 (eval $ac_try) 2>&5
cannam@85 16133 ac_status=$?
cannam@85 16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 16135 (exit $ac_status); }; } &&
cannam@85 16136 { ac_try='test -s conftest$ac_exeext'
cannam@85 16137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 16138 (eval $ac_try) 2>&5
cannam@85 16139 ac_status=$?
cannam@85 16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 16141 (exit $ac_status); }; }; then
cannam@85 16142
cannam@85 16143 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 16144 }'`
cannam@85 16145 # Check for a 64-bit object if we didn't find anything.
cannam@85 16146 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 16147 }'`; fi
cannam@85 16148 else
cannam@85 16149 echo "$as_me: failed program was:" >&5
cannam@85 16150 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 16151
cannam@85 16152 fi
cannam@85 16153 rm -f conftest.err conftest.$ac_objext \
cannam@85 16154 conftest$ac_exeext conftest.$ac_ext
cannam@85 16155 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
cannam@85 16156
cannam@85 16157 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@85 16158 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cannam@85 16159 else
cannam@85 16160 if test "$host_cpu" = ia64; then
cannam@85 16161 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
cannam@85 16162 allow_undefined_flag_GCJ="-z nodefs"
cannam@85 16163 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
cannam@85 16164 else
cannam@85 16165 # Determine the default libpath from the value encoded in an empty executable.
cannam@85 16166 cat >conftest.$ac_ext <<_ACEOF
cannam@85 16167 /* confdefs.h. */
cannam@85 16168 _ACEOF
cannam@85 16169 cat confdefs.h >>conftest.$ac_ext
cannam@85 16170 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 16171 /* end confdefs.h. */
cannam@85 16172
cannam@85 16173 int
cannam@85 16174 main ()
cannam@85 16175 {
cannam@85 16176
cannam@85 16177 ;
cannam@85 16178 return 0;
cannam@85 16179 }
cannam@85 16180 _ACEOF
cannam@85 16181 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 16182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 16183 (eval $ac_link) 2>conftest.er1
cannam@85 16184 ac_status=$?
cannam@85 16185 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 16186 rm -f conftest.er1
cannam@85 16187 cat conftest.err >&5
cannam@85 16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 16189 (exit $ac_status); } &&
cannam@85 16190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 16191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 16192 (eval $ac_try) 2>&5
cannam@85 16193 ac_status=$?
cannam@85 16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 16195 (exit $ac_status); }; } &&
cannam@85 16196 { ac_try='test -s conftest$ac_exeext'
cannam@85 16197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 16198 (eval $ac_try) 2>&5
cannam@85 16199 ac_status=$?
cannam@85 16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 16201 (exit $ac_status); }; }; then
cannam@85 16202
cannam@85 16203 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 16204 }'`
cannam@85 16205 # Check for a 64-bit object if we didn't find anything.
cannam@85 16206 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 16207 }'`; fi
cannam@85 16208 else
cannam@85 16209 echo "$as_me: failed program was:" >&5
cannam@85 16210 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 16211
cannam@85 16212 fi
cannam@85 16213 rm -f conftest.err conftest.$ac_objext \
cannam@85 16214 conftest$ac_exeext conftest.$ac_ext
cannam@85 16215 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
cannam@85 16216
cannam@85 16217 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@85 16218 # Warning - without using the other run time loading flags,
cannam@85 16219 # -berok will link without error, but may produce a broken library.
cannam@85 16220 no_undefined_flag_GCJ=' ${wl}-bernotok'
cannam@85 16221 allow_undefined_flag_GCJ=' ${wl}-berok'
cannam@85 16222 # -bexpall does not export symbols beginning with underscore (_)
cannam@85 16223 always_export_symbols_GCJ=yes
cannam@85 16224 # Exported symbols can be pulled into shared objects from archives
cannam@85 16225 whole_archive_flag_spec_GCJ=' '
cannam@85 16226 archive_cmds_need_lc_GCJ=yes
cannam@85 16227 # This is similar to how AIX traditionally builds it's shared libraries.
cannam@85 16228 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
cannam@85 16229 fi
cannam@85 16230 fi
cannam@85 16231 ;;
cannam@85 16232
cannam@85 16233 amigaos*)
cannam@85 16234 archive_cmds_GCJ='$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@85 16235 hardcode_libdir_flag_spec_GCJ='-L$libdir'
cannam@85 16236 hardcode_minus_L_GCJ=yes
cannam@85 16237 # see comment about different semantics on the GNU ld section
cannam@85 16238 ld_shlibs_GCJ=no
cannam@85 16239 ;;
cannam@85 16240
cannam@85 16241 bsdi4*)
cannam@85 16242 export_dynamic_flag_spec_GCJ=-rdynamic
cannam@85 16243 ;;
cannam@85 16244
cannam@85 16245 cygwin* | mingw* | pw32*)
cannam@85 16246 # When not using gcc, we currently assume that we are using
cannam@85 16247 # Microsoft Visual C++.
cannam@85 16248 # hardcode_libdir_flag_spec is actually meaningless, as there is
cannam@85 16249 # no search path for DLLs.
cannam@85 16250 hardcode_libdir_flag_spec_GCJ=' '
cannam@85 16251 allow_undefined_flag_GCJ=unsupported
cannam@85 16252 # Tell ltmain to make .lib files, not .a files.
cannam@85 16253 libext=lib
cannam@85 16254 # Tell ltmain to make .dll files, not .so files.
cannam@85 16255 shrext=".dll"
cannam@85 16256 # FIXME: Setting linknames here is a bad hack.
cannam@85 16257 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
cannam@85 16258 # The linker will automatically build a .lib file if we build a DLL.
cannam@85 16259 old_archive_From_new_cmds_GCJ='true'
cannam@85 16260 # FIXME: Should let the user specify the lib program.
cannam@85 16261 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
cannam@85 16262 fix_srcfile_path='`cygpath -w "$srcfile"`'
cannam@85 16263 enable_shared_with_static_runtimes_GCJ=yes
cannam@85 16264 ;;
cannam@85 16265
cannam@85 16266 darwin* | rhapsody*)
cannam@85 16267 if test "$GXX" = yes ; then
cannam@85 16268 archive_cmds_need_lc_GCJ=no
cannam@85 16269 case "$host_os" in
cannam@85 16270 rhapsody* | darwin1.[012])
cannam@85 16271 allow_undefined_flag_GCJ='-undefined suppress'
cannam@85 16272 ;;
cannam@85 16273 *) # Darwin 1.3 on
cannam@85 16274 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
cannam@85 16275 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
cannam@85 16276 else
cannam@85 16277 case ${MACOSX_DEPLOYMENT_TARGET} in
cannam@85 16278 10.[012])
cannam@85 16279 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
cannam@85 16280 ;;
cannam@85 16281 10.*)
cannam@85 16282 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
cannam@85 16283 ;;
cannam@85 16284 esac
cannam@85 16285 fi
cannam@85 16286 ;;
cannam@85 16287 esac
cannam@85 16288 lt_int_apple_cc_single_mod=no
cannam@85 16289 output_verbose_link_cmd='echo'
cannam@85 16290 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
cannam@85 16291 lt_int_apple_cc_single_mod=yes
cannam@85 16292 fi
cannam@85 16293 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
cannam@85 16294 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
cannam@85 16295 else
cannam@85 16296 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
cannam@85 16297 fi
cannam@85 16298 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
cannam@85 16299 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
cannam@85 16300 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
cannam@85 16301 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
cannam@85 16302 else
cannam@85 16303 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
cannam@85 16304 fi
cannam@85 16305 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
cannam@85 16306 hardcode_direct_GCJ=no
cannam@85 16307 hardcode_automatic_GCJ=yes
cannam@85 16308 hardcode_shlibpath_var_GCJ=unsupported
cannam@85 16309 whole_archive_flag_spec_GCJ='-all_load $convenience'
cannam@85 16310 link_all_deplibs_GCJ=yes
cannam@85 16311 else
cannam@85 16312 ld_shlibs_GCJ=no
cannam@85 16313 fi
cannam@85 16314 ;;
cannam@85 16315
cannam@85 16316 dgux*)
cannam@85 16317 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16318 hardcode_libdir_flag_spec_GCJ='-L$libdir'
cannam@85 16319 hardcode_shlibpath_var_GCJ=no
cannam@85 16320 ;;
cannam@85 16321
cannam@85 16322 freebsd1*)
cannam@85 16323 ld_shlibs_GCJ=no
cannam@85 16324 ;;
cannam@85 16325
cannam@85 16326 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
cannam@85 16327 # support. Future versions do this automatically, but an explicit c++rt0.o
cannam@85 16328 # does not break anything, and helps significantly (at the cost of a little
cannam@85 16329 # extra space).
cannam@85 16330 freebsd2.2*)
cannam@85 16331 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
cannam@85 16332 hardcode_libdir_flag_spec_GCJ='-R$libdir'
cannam@85 16333 hardcode_direct_GCJ=yes
cannam@85 16334 hardcode_shlibpath_var_GCJ=no
cannam@85 16335 ;;
cannam@85 16336
cannam@85 16337 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cannam@85 16338 freebsd2*)
cannam@85 16339 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16340 hardcode_direct_GCJ=yes
cannam@85 16341 hardcode_minus_L_GCJ=yes
cannam@85 16342 hardcode_shlibpath_var_GCJ=no
cannam@85 16343 ;;
cannam@85 16344
cannam@85 16345 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
cannam@85 16346 freebsd* | kfreebsd*-gnu)
cannam@85 16347 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 16348 hardcode_libdir_flag_spec_GCJ='-R$libdir'
cannam@85 16349 hardcode_direct_GCJ=yes
cannam@85 16350 hardcode_shlibpath_var_GCJ=no
cannam@85 16351 ;;
cannam@85 16352
cannam@85 16353 hpux9*)
cannam@85 16354 if test "$GCC" = yes; then
cannam@85 16355 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cannam@85 16356 else
cannam@85 16357 archive_cmds_GCJ='$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@85 16358 fi
cannam@85 16359 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
cannam@85 16360 hardcode_libdir_separator_GCJ=:
cannam@85 16361 hardcode_direct_GCJ=yes
cannam@85 16362
cannam@85 16363 # hardcode_minus_L: Not really in the search PATH,
cannam@85 16364 # but as the default location of the library.
cannam@85 16365 hardcode_minus_L_GCJ=yes
cannam@85 16366 export_dynamic_flag_spec_GCJ='${wl}-E'
cannam@85 16367 ;;
cannam@85 16368
cannam@85 16369 hpux10* | hpux11*)
cannam@85 16370 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cannam@85 16371 case "$host_cpu" in
cannam@85 16372 hppa*64*|ia64*)
cannam@85 16373 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 16374 ;;
cannam@85 16375 *)
cannam@85 16376 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 16377 ;;
cannam@85 16378 esac
cannam@85 16379 else
cannam@85 16380 case "$host_cpu" in
cannam@85 16381 hppa*64*|ia64*)
cannam@85 16382 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16383 ;;
cannam@85 16384 *)
cannam@85 16385 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16386 ;;
cannam@85 16387 esac
cannam@85 16388 fi
cannam@85 16389 if test "$with_gnu_ld" = no; then
cannam@85 16390 case "$host_cpu" in
cannam@85 16391 hppa*64*)
cannam@85 16392 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
cannam@85 16393 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
cannam@85 16394 hardcode_libdir_separator_GCJ=:
cannam@85 16395 hardcode_direct_GCJ=no
cannam@85 16396 hardcode_shlibpath_var_GCJ=no
cannam@85 16397 ;;
cannam@85 16398 ia64*)
cannam@85 16399 hardcode_libdir_flag_spec_GCJ='-L$libdir'
cannam@85 16400 hardcode_direct_GCJ=no
cannam@85 16401 hardcode_shlibpath_var_GCJ=no
cannam@85 16402
cannam@85 16403 # hardcode_minus_L: Not really in the search PATH,
cannam@85 16404 # but as the default location of the library.
cannam@85 16405 hardcode_minus_L_GCJ=yes
cannam@85 16406 ;;
cannam@85 16407 *)
cannam@85 16408 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
cannam@85 16409 hardcode_libdir_separator_GCJ=:
cannam@85 16410 hardcode_direct_GCJ=yes
cannam@85 16411 export_dynamic_flag_spec_GCJ='${wl}-E'
cannam@85 16412
cannam@85 16413 # hardcode_minus_L: Not really in the search PATH,
cannam@85 16414 # but as the default location of the library.
cannam@85 16415 hardcode_minus_L_GCJ=yes
cannam@85 16416 ;;
cannam@85 16417 esac
cannam@85 16418 fi
cannam@85 16419 ;;
cannam@85 16420
cannam@85 16421 irix5* | irix6* | nonstopux*)
cannam@85 16422 if test "$GCC" = yes; then
cannam@85 16423 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cannam@85 16424 else
cannam@85 16425 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
cannam@85 16426 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
cannam@85 16427 fi
cannam@85 16428 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
cannam@85 16429 hardcode_libdir_separator_GCJ=:
cannam@85 16430 link_all_deplibs_GCJ=yes
cannam@85 16431 ;;
cannam@85 16432
cannam@85 16433 netbsd* | knetbsd*-gnu)
cannam@85 16434 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cannam@85 16435 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
cannam@85 16436 else
cannam@85 16437 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
cannam@85 16438 fi
cannam@85 16439 hardcode_libdir_flag_spec_GCJ='-R$libdir'
cannam@85 16440 hardcode_direct_GCJ=yes
cannam@85 16441 hardcode_shlibpath_var_GCJ=no
cannam@85 16442 ;;
cannam@85 16443
cannam@85 16444 newsos6)
cannam@85 16445 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16446 hardcode_direct_GCJ=yes
cannam@85 16447 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
cannam@85 16448 hardcode_libdir_separator_GCJ=:
cannam@85 16449 hardcode_shlibpath_var_GCJ=no
cannam@85 16450 ;;
cannam@85 16451
cannam@85 16452 openbsd*)
cannam@85 16453 hardcode_direct_GCJ=yes
cannam@85 16454 hardcode_shlibpath_var_GCJ=no
cannam@85 16455 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@85 16456 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 16457 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
cannam@85 16458 export_dynamic_flag_spec_GCJ='${wl}-E'
cannam@85 16459 else
cannam@85 16460 case $host_os in
cannam@85 16461 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
cannam@85 16462 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16463 hardcode_libdir_flag_spec_GCJ='-R$libdir'
cannam@85 16464 ;;
cannam@85 16465 *)
cannam@85 16466 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 16467 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
cannam@85 16468 ;;
cannam@85 16469 esac
cannam@85 16470 fi
cannam@85 16471 ;;
cannam@85 16472
cannam@85 16473 os2*)
cannam@85 16474 hardcode_libdir_flag_spec_GCJ='-L$libdir'
cannam@85 16475 hardcode_minus_L_GCJ=yes
cannam@85 16476 allow_undefined_flag_GCJ=unsupported
cannam@85 16477 archive_cmds_GCJ='$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@85 16478 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
cannam@85 16479 ;;
cannam@85 16480
cannam@85 16481 osf3*)
cannam@85 16482 if test "$GCC" = yes; then
cannam@85 16483 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
cannam@85 16484 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cannam@85 16485 else
cannam@85 16486 allow_undefined_flag_GCJ=' -expect_unresolved \*'
cannam@85 16487 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
cannam@85 16488 fi
cannam@85 16489 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
cannam@85 16490 hardcode_libdir_separator_GCJ=:
cannam@85 16491 ;;
cannam@85 16492
cannam@85 16493 osf4* | osf5*) # as osf3* with the addition of -msym flag
cannam@85 16494 if test "$GCC" = yes; then
cannam@85 16495 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
cannam@85 16496 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cannam@85 16497 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
cannam@85 16498 else
cannam@85 16499 allow_undefined_flag_GCJ=' -expect_unresolved \*'
cannam@85 16500 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
cannam@85 16501 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
cannam@85 16502 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
cannam@85 16503
cannam@85 16504 # Both c and cxx compiler support -rpath directly
cannam@85 16505 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
cannam@85 16506 fi
cannam@85 16507 hardcode_libdir_separator_GCJ=:
cannam@85 16508 ;;
cannam@85 16509
cannam@85 16510 sco3.2v5*)
cannam@85 16511 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16512 hardcode_shlibpath_var_GCJ=no
cannam@85 16513 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
cannam@85 16514 runpath_var=LD_RUN_PATH
cannam@85 16515 hardcode_runpath_var=yes
cannam@85 16516 ;;
cannam@85 16517
cannam@85 16518 solaris*)
cannam@85 16519 no_undefined_flag_GCJ=' -z text'
cannam@85 16520 if test "$GCC" = yes; then
cannam@85 16521 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 16522 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 16523 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
cannam@85 16524 else
cannam@85 16525 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16526 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 16527 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
cannam@85 16528 fi
cannam@85 16529 hardcode_libdir_flag_spec_GCJ='-R$libdir'
cannam@85 16530 hardcode_shlibpath_var_GCJ=no
cannam@85 16531 case $host_os in
cannam@85 16532 solaris2.[0-5] | solaris2.[0-5].*) ;;
cannam@85 16533 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
cannam@85 16534 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
cannam@85 16535 esac
cannam@85 16536 link_all_deplibs_GCJ=yes
cannam@85 16537 ;;
cannam@85 16538
cannam@85 16539 sunos4*)
cannam@85 16540 if test "x$host_vendor" = xsequent; then
cannam@85 16541 # Use $CC to link under sequent, because it throws in some extra .o
cannam@85 16542 # files that make .init and .fini sections work.
cannam@85 16543 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 16544 else
cannam@85 16545 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16546 fi
cannam@85 16547 hardcode_libdir_flag_spec_GCJ='-L$libdir'
cannam@85 16548 hardcode_direct_GCJ=yes
cannam@85 16549 hardcode_minus_L_GCJ=yes
cannam@85 16550 hardcode_shlibpath_var_GCJ=no
cannam@85 16551 ;;
cannam@85 16552
cannam@85 16553 sysv4)
cannam@85 16554 case $host_vendor in
cannam@85 16555 sni)
cannam@85 16556 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16557 hardcode_direct_GCJ=yes # is this really true???
cannam@85 16558 ;;
cannam@85 16559 siemens)
cannam@85 16560 ## LD is ld it makes a PLAMLIB
cannam@85 16561 ## CC just makes a GrossModule.
cannam@85 16562 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16563 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
cannam@85 16564 hardcode_direct_GCJ=no
cannam@85 16565 ;;
cannam@85 16566 motorola)
cannam@85 16567 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16568 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
cannam@85 16569 ;;
cannam@85 16570 esac
cannam@85 16571 runpath_var='LD_RUN_PATH'
cannam@85 16572 hardcode_shlibpath_var_GCJ=no
cannam@85 16573 ;;
cannam@85 16574
cannam@85 16575 sysv4.3*)
cannam@85 16576 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16577 hardcode_shlibpath_var_GCJ=no
cannam@85 16578 export_dynamic_flag_spec_GCJ='-Bexport'
cannam@85 16579 ;;
cannam@85 16580
cannam@85 16581 sysv4*MP*)
cannam@85 16582 if test -d /usr/nec; then
cannam@85 16583 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16584 hardcode_shlibpath_var_GCJ=no
cannam@85 16585 runpath_var=LD_RUN_PATH
cannam@85 16586 hardcode_runpath_var=yes
cannam@85 16587 ld_shlibs_GCJ=yes
cannam@85 16588 fi
cannam@85 16589 ;;
cannam@85 16590
cannam@85 16591 sysv4.2uw2*)
cannam@85 16592 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16593 hardcode_direct_GCJ=yes
cannam@85 16594 hardcode_minus_L_GCJ=no
cannam@85 16595 hardcode_shlibpath_var_GCJ=no
cannam@85 16596 hardcode_runpath_var=yes
cannam@85 16597 runpath_var=LD_RUN_PATH
cannam@85 16598 ;;
cannam@85 16599
cannam@85 16600 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
cannam@85 16601 no_undefined_flag_GCJ='${wl}-z ${wl}text'
cannam@85 16602 if test "$GCC" = yes; then
cannam@85 16603 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 16604 else
cannam@85 16605 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 16606 fi
cannam@85 16607 runpath_var='LD_RUN_PATH'
cannam@85 16608 hardcode_shlibpath_var_GCJ=no
cannam@85 16609 ;;
cannam@85 16610
cannam@85 16611 sysv5*)
cannam@85 16612 no_undefined_flag_GCJ=' -z text'
cannam@85 16613 # $CC -shared without GNU ld will not create a library from C++
cannam@85 16614 # object files and a static libstdc++, better avoid it by now
cannam@85 16615 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16616 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 16617 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
cannam@85 16618 hardcode_libdir_flag_spec_GCJ=
cannam@85 16619 hardcode_shlibpath_var_GCJ=no
cannam@85 16620 runpath_var='LD_RUN_PATH'
cannam@85 16621 ;;
cannam@85 16622
cannam@85 16623 uts4*)
cannam@85 16624 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16625 hardcode_libdir_flag_spec_GCJ='-L$libdir'
cannam@85 16626 hardcode_shlibpath_var_GCJ=no
cannam@85 16627 ;;
cannam@85 16628
cannam@85 16629 *)
cannam@85 16630 ld_shlibs_GCJ=no
cannam@85 16631 ;;
cannam@85 16632 esac
cannam@85 16633 fi
cannam@85 16634
cannam@85 16635 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
cannam@85 16636 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
cannam@85 16637 test "$ld_shlibs_GCJ" = no && can_build_shared=no
cannam@85 16638
cannam@85 16639 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cannam@85 16640 if test "$GCC" = yes; then
cannam@85 16641 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
cannam@85 16642 fi
cannam@85 16643
cannam@85 16644 #
cannam@85 16645 # Do we need to explicitly link libc?
cannam@85 16646 #
cannam@85 16647 case "x$archive_cmds_need_lc_GCJ" in
cannam@85 16648 x|xyes)
cannam@85 16649 # Assume -lc should be added
cannam@85 16650 archive_cmds_need_lc_GCJ=yes
cannam@85 16651
cannam@85 16652 if test "$enable_shared" = yes && test "$GCC" = yes; then
cannam@85 16653 case $archive_cmds_GCJ in
cannam@85 16654 *'~'*)
cannam@85 16655 # FIXME: we may have to deal with multi-command sequences.
cannam@85 16656 ;;
cannam@85 16657 '$CC '*)
cannam@85 16658 # Test whether the compiler implicitly links with -lc since on some
cannam@85 16659 # systems, -lgcc has to come before -lc. If gcc already passes -lc
cannam@85 16660 # to ld, don't add -lc before -lgcc.
cannam@85 16661 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
cannam@85 16662 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
cannam@85 16663 $rm conftest*
cannam@85 16664 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 16665
cannam@85 16666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 16667 (eval $ac_compile) 2>&5
cannam@85 16668 ac_status=$?
cannam@85 16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 16670 (exit $ac_status); } 2>conftest.err; then
cannam@85 16671 soname=conftest
cannam@85 16672 lib=conftest
cannam@85 16673 libobjs=conftest.$ac_objext
cannam@85 16674 deplibs=
cannam@85 16675 wl=$lt_prog_compiler_wl_GCJ
cannam@85 16676 compiler_flags=-v
cannam@85 16677 linker_flags=-v
cannam@85 16678 verstring=
cannam@85 16679 output_objdir=.
cannam@85 16680 libname=conftest
cannam@85 16681 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
cannam@85 16682 allow_undefined_flag_GCJ=
cannam@85 16683 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
cannam@85 16684 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
cannam@85 16685 ac_status=$?
cannam@85 16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 16687 (exit $ac_status); }
cannam@85 16688 then
cannam@85 16689 archive_cmds_need_lc_GCJ=no
cannam@85 16690 else
cannam@85 16691 archive_cmds_need_lc_GCJ=yes
cannam@85 16692 fi
cannam@85 16693 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
cannam@85 16694 else
cannam@85 16695 cat conftest.err 1>&5
cannam@85 16696 fi
cannam@85 16697 $rm conftest*
cannam@85 16698 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
cannam@85 16699 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
cannam@85 16700 ;;
cannam@85 16701 esac
cannam@85 16702 fi
cannam@85 16703 ;;
cannam@85 16704 esac
cannam@85 16705
cannam@85 16706 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
cannam@85 16707 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
cannam@85 16708 library_names_spec=
cannam@85 16709 libname_spec='lib$name'
cannam@85 16710 soname_spec=
cannam@85 16711 shrext=".so"
cannam@85 16712 postinstall_cmds=
cannam@85 16713 postuninstall_cmds=
cannam@85 16714 finish_cmds=
cannam@85 16715 finish_eval=
cannam@85 16716 shlibpath_var=
cannam@85 16717 shlibpath_overrides_runpath=unknown
cannam@85 16718 version_type=none
cannam@85 16719 dynamic_linker="$host_os ld.so"
cannam@85 16720 sys_lib_dlsearch_path_spec="/lib /usr/lib"
cannam@85 16721 if test "$GCC" = yes; then
cannam@85 16722 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
cannam@85 16723 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
cannam@85 16724 # if the path contains ";" then we assume it to be the separator
cannam@85 16725 # otherwise default to the standard path separator (i.e. ":") - it is
cannam@85 16726 # assumed that no part of a normal pathname contains ";" but that should
cannam@85 16727 # okay in the real world where ";" in dirpaths is itself problematic.
cannam@85 16728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@85 16729 else
cannam@85 16730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@85 16731 fi
cannam@85 16732 else
cannam@85 16733 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
cannam@85 16734 fi
cannam@85 16735 need_lib_prefix=unknown
cannam@85 16736 hardcode_into_libs=no
cannam@85 16737
cannam@85 16738 # when you set need_version to no, make sure it does not cause -set_version
cannam@85 16739 # flags to be left without arguments
cannam@85 16740 need_version=unknown
cannam@85 16741
cannam@85 16742 case $host_os in
cannam@85 16743 aix3*)
cannam@85 16744 version_type=linux
cannam@85 16745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
cannam@85 16746 shlibpath_var=LIBPATH
cannam@85 16747
cannam@85 16748 # AIX 3 has no versioning support, so we append a major version to the name.
cannam@85 16749 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 16750 ;;
cannam@85 16751
cannam@85 16752 aix4* | aix5*)
cannam@85 16753 version_type=linux
cannam@85 16754 need_lib_prefix=no
cannam@85 16755 need_version=no
cannam@85 16756 hardcode_into_libs=yes
cannam@85 16757 if test "$host_cpu" = ia64; then
cannam@85 16758 # AIX 5 supports IA64
cannam@85 16759 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
cannam@85 16760 shlibpath_var=LD_LIBRARY_PATH
cannam@85 16761 else
cannam@85 16762 # With GCC up to 2.95.x, collect2 would create an import file
cannam@85 16763 # for dependence libraries. The import file would start with
cannam@85 16764 # the line `#! .'. This would cause the generated library to
cannam@85 16765 # depend on `.', always an invalid library. This was fixed in
cannam@85 16766 # development snapshots of GCC prior to 3.0.
cannam@85 16767 case $host_os in
cannam@85 16768 aix4 | aix4.[01] | aix4.[01].*)
cannam@85 16769 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
cannam@85 16770 echo ' yes '
cannam@85 16771 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
cannam@85 16772 :
cannam@85 16773 else
cannam@85 16774 can_build_shared=no
cannam@85 16775 fi
cannam@85 16776 ;;
cannam@85 16777 esac
cannam@85 16778 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
cannam@85 16779 # soname into executable. Probably we can add versioning support to
cannam@85 16780 # collect2, so additional links can be useful in future.
cannam@85 16781 if test "$aix_use_runtimelinking" = yes; then
cannam@85 16782 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
cannam@85 16783 # instead of lib<name>.a to let people know that these are not
cannam@85 16784 # typical AIX shared libraries.
cannam@85 16785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 16786 else
cannam@85 16787 # We preserve .a as extension for shared libraries through AIX4.2
cannam@85 16788 # and later when we are not doing run time linking.
cannam@85 16789 library_names_spec='${libname}${release}.a $libname.a'
cannam@85 16790 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 16791 fi
cannam@85 16792 shlibpath_var=LIBPATH
cannam@85 16793 fi
cannam@85 16794 ;;
cannam@85 16795
cannam@85 16796 amigaos*)
cannam@85 16797 library_names_spec='$libname.ixlibrary $libname.a'
cannam@85 16798 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cannam@85 16799 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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@85 16800 ;;
cannam@85 16801
cannam@85 16802 beos*)
cannam@85 16803 library_names_spec='${libname}${shared_ext}'
cannam@85 16804 dynamic_linker="$host_os ld.so"
cannam@85 16805 shlibpath_var=LIBRARY_PATH
cannam@85 16806 ;;
cannam@85 16807
cannam@85 16808 bsdi4*)
cannam@85 16809 version_type=linux
cannam@85 16810 need_version=no
cannam@85 16811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 16812 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 16813 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
cannam@85 16814 shlibpath_var=LD_LIBRARY_PATH
cannam@85 16815 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
cannam@85 16816 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
cannam@85 16817 # the default ld.so.conf also contains /usr/contrib/lib and
cannam@85 16818 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
cannam@85 16819 # libtool to hard-code these into programs
cannam@85 16820 ;;
cannam@85 16821
cannam@85 16822 cygwin* | mingw* | pw32*)
cannam@85 16823 version_type=windows
cannam@85 16824 shrext=".dll"
cannam@85 16825 need_version=no
cannam@85 16826 need_lib_prefix=no
cannam@85 16827
cannam@85 16828 case $GCC,$host_os in
cannam@85 16829 yes,cygwin* | yes,mingw* | yes,pw32*)
cannam@85 16830 library_names_spec='$libname.dll.a'
cannam@85 16831 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@85 16832 postinstall_cmds='base_file=`basename \${file}`~
cannam@85 16833 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
cannam@85 16834 dldir=$destdir/`dirname \$dlpath`~
cannam@85 16835 test -d \$dldir || mkdir -p \$dldir~
cannam@85 16836 $install_prog $dir/$dlname \$dldir/$dlname'
cannam@85 16837 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@85 16838 dlpath=$dir/\$dldll~
cannam@85 16839 $rm \$dlpath'
cannam@85 16840 shlibpath_overrides_runpath=yes
cannam@85 16841
cannam@85 16842 case $host_os in
cannam@85 16843 cygwin*)
cannam@85 16844 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cannam@85 16845 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 16846 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cannam@85 16847 ;;
cannam@85 16848 mingw*)
cannam@85 16849 # MinGW DLLs use traditional 'lib' prefix
cannam@85 16850 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 16851 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
cannam@85 16852 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
cannam@85 16853 # It is most probably a Windows format PATH printed by
cannam@85 16854 # mingw gcc, but we are running on Cygwin. Gcc prints its search
cannam@85 16855 # path with ; separators, and with drive letters. We can handle the
cannam@85 16856 # drive letters (cygwin fileutils understands them), so leave them,
cannam@85 16857 # especially as we might pass files found there to a mingw objdump,
cannam@85 16858 # which wouldn't understand a cygwinified path. Ahh.
cannam@85 16859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@85 16860 else
cannam@85 16861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@85 16862 fi
cannam@85 16863 ;;
cannam@85 16864 pw32*)
cannam@85 16865 # pw32 DLLs use 'pw' prefix rather than 'lib'
cannam@85 16866 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
cannam@85 16867 ;;
cannam@85 16868 esac
cannam@85 16869 ;;
cannam@85 16870
cannam@85 16871 *)
cannam@85 16872 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cannam@85 16873 ;;
cannam@85 16874 esac
cannam@85 16875 dynamic_linker='Win32 ld.exe'
cannam@85 16876 # FIXME: first we should search . and the directory the executable is in
cannam@85 16877 shlibpath_var=PATH
cannam@85 16878 ;;
cannam@85 16879
cannam@85 16880 darwin* | rhapsody*)
cannam@85 16881 dynamic_linker="$host_os dyld"
cannam@85 16882 version_type=darwin
cannam@85 16883 need_lib_prefix=no
cannam@85 16884 need_version=no
cannam@85 16885 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
cannam@85 16886 soname_spec='${libname}${release}${major}$shared_ext'
cannam@85 16887 shlibpath_overrides_runpath=yes
cannam@85 16888 shlibpath_var=DYLD_LIBRARY_PATH
cannam@85 16889 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
cannam@85 16890 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
cannam@85 16891 if test "$GCC" = yes; then
cannam@85 16892 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
cannam@85 16893 else
cannam@85 16894 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
cannam@85 16895 fi
cannam@85 16896 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
cannam@85 16897 ;;
cannam@85 16898
cannam@85 16899 dgux*)
cannam@85 16900 version_type=linux
cannam@85 16901 need_lib_prefix=no
cannam@85 16902 need_version=no
cannam@85 16903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
cannam@85 16904 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 16905 shlibpath_var=LD_LIBRARY_PATH
cannam@85 16906 ;;
cannam@85 16907
cannam@85 16908 freebsd1*)
cannam@85 16909 dynamic_linker=no
cannam@85 16910 ;;
cannam@85 16911
cannam@85 16912 kfreebsd*-gnu)
cannam@85 16913 version_type=linux
cannam@85 16914 need_lib_prefix=no
cannam@85 16915 need_version=no
cannam@85 16916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 16917 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 16918 shlibpath_var=LD_LIBRARY_PATH
cannam@85 16919 shlibpath_overrides_runpath=no
cannam@85 16920 hardcode_into_libs=yes
cannam@85 16921 dynamic_linker='GNU ld.so'
cannam@85 16922 ;;
cannam@85 16923
cannam@85 16924 freebsd*)
cannam@85 16925 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
cannam@85 16926 version_type=freebsd-$objformat
cannam@85 16927 case $version_type in
cannam@85 16928 freebsd-elf*)
cannam@85 16929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@85 16930 need_version=no
cannam@85 16931 need_lib_prefix=no
cannam@85 16932 ;;
cannam@85 16933 freebsd-*)
cannam@85 16934 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
cannam@85 16935 need_version=yes
cannam@85 16936 ;;
cannam@85 16937 esac
cannam@85 16938 shlibpath_var=LD_LIBRARY_PATH
cannam@85 16939 case $host_os in
cannam@85 16940 freebsd2*)
cannam@85 16941 shlibpath_overrides_runpath=yes
cannam@85 16942 ;;
cannam@85 16943 freebsd3.01* | freebsdelf3.01*)
cannam@85 16944 shlibpath_overrides_runpath=yes
cannam@85 16945 hardcode_into_libs=yes
cannam@85 16946 ;;
cannam@85 16947 *) # from 3.2 on
cannam@85 16948 shlibpath_overrides_runpath=no
cannam@85 16949 hardcode_into_libs=yes
cannam@85 16950 ;;
cannam@85 16951 esac
cannam@85 16952 ;;
cannam@85 16953
cannam@85 16954 gnu*)
cannam@85 16955 version_type=linux
cannam@85 16956 need_lib_prefix=no
cannam@85 16957 need_version=no
cannam@85 16958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
cannam@85 16959 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 16960 shlibpath_var=LD_LIBRARY_PATH
cannam@85 16961 hardcode_into_libs=yes
cannam@85 16962 ;;
cannam@85 16963
cannam@85 16964 hpux9* | hpux10* | hpux11*)
cannam@85 16965 # Give a soname corresponding to the major version so that dld.sl refuses to
cannam@85 16966 # link against other versions.
cannam@85 16967 version_type=sunos
cannam@85 16968 need_lib_prefix=no
cannam@85 16969 need_version=no
cannam@85 16970 case "$host_cpu" in
cannam@85 16971 ia64*)
cannam@85 16972 shrext='.so'
cannam@85 16973 hardcode_into_libs=yes
cannam@85 16974 dynamic_linker="$host_os dld.so"
cannam@85 16975 shlibpath_var=LD_LIBRARY_PATH
cannam@85 16976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@85 16977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 16978 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 16979 if test "X$HPUX_IA64_MODE" = X32; then
cannam@85 16980 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
cannam@85 16981 else
cannam@85 16982 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
cannam@85 16983 fi
cannam@85 16984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@85 16985 ;;
cannam@85 16986 hppa*64*)
cannam@85 16987 shrext='.sl'
cannam@85 16988 hardcode_into_libs=yes
cannam@85 16989 dynamic_linker="$host_os dld.sl"
cannam@85 16990 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
cannam@85 16991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@85 16992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 16993 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 16994 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
cannam@85 16995 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@85 16996 ;;
cannam@85 16997 *)
cannam@85 16998 shrext='.sl'
cannam@85 16999 dynamic_linker="$host_os dld.sl"
cannam@85 17000 shlibpath_var=SHLIB_PATH
cannam@85 17001 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cannam@85 17002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 17003 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 17004 ;;
cannam@85 17005 esac
cannam@85 17006 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cannam@85 17007 postinstall_cmds='chmod 555 $lib'
cannam@85 17008 ;;
cannam@85 17009
cannam@85 17010 irix5* | irix6* | nonstopux*)
cannam@85 17011 case $host_os in
cannam@85 17012 nonstopux*) version_type=nonstopux ;;
cannam@85 17013 *)
cannam@85 17014 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@85 17015 version_type=linux
cannam@85 17016 else
cannam@85 17017 version_type=irix
cannam@85 17018 fi ;;
cannam@85 17019 esac
cannam@85 17020 need_lib_prefix=no
cannam@85 17021 need_version=no
cannam@85 17022 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 17023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@85 17024 case $host_os in
cannam@85 17025 irix5* | nonstopux*)
cannam@85 17026 libsuff= shlibsuff=
cannam@85 17027 ;;
cannam@85 17028 *)
cannam@85 17029 case $LD in # libtool.m4 will add one of these switches to LD
cannam@85 17030 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
cannam@85 17031 libsuff= shlibsuff= libmagic=32-bit;;
cannam@85 17032 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
cannam@85 17033 libsuff=32 shlibsuff=N32 libmagic=N32;;
cannam@85 17034 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
cannam@85 17035 libsuff=64 shlibsuff=64 libmagic=64-bit;;
cannam@85 17036 *) libsuff= shlibsuff= libmagic=never-match;;
cannam@85 17037 esac
cannam@85 17038 ;;
cannam@85 17039 esac
cannam@85 17040 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
cannam@85 17041 shlibpath_overrides_runpath=no
cannam@85 17042 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
cannam@85 17043 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
cannam@85 17044 hardcode_into_libs=yes
cannam@85 17045 ;;
cannam@85 17046
cannam@85 17047 # No shared lib support for Linux oldld, aout, or coff.
cannam@85 17048 linux*oldld* | linux*aout* | linux*coff*)
cannam@85 17049 dynamic_linker=no
cannam@85 17050 ;;
cannam@85 17051
cannam@85 17052 # This must be Linux ELF.
cannam@85 17053 linux*)
cannam@85 17054 version_type=linux
cannam@85 17055 need_lib_prefix=no
cannam@85 17056 need_version=no
cannam@85 17057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 17058 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 17059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
cannam@85 17060 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17061 shlibpath_overrides_runpath=no
cannam@85 17062 # This implies no fast_install, which is unacceptable.
cannam@85 17063 # Some rework will be needed to allow for fast_install
cannam@85 17064 # before this can be enabled.
cannam@85 17065 hardcode_into_libs=yes
cannam@85 17066
cannam@85 17067 # Append ld.so.conf contents to the search path
cannam@85 17068 if test -f /etc/ld.so.conf; then
cannam@85 17069 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
cannam@85 17070 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
cannam@85 17071 fi
cannam@85 17072
cannam@85 17073 # We used to test for /lib/ld.so.1 and disable shared libraries on
cannam@85 17074 # powerpc, because MkLinux only supported shared libraries with the
cannam@85 17075 # GNU dynamic linker. Since this was broken with cross compilers,
cannam@85 17076 # most powerpc-linux boxes support dynamic linking these days and
cannam@85 17077 # people can always --disable-shared, the test was removed, and we
cannam@85 17078 # assume the GNU/Linux dynamic linker is in use.
cannam@85 17079 dynamic_linker='GNU/Linux ld.so'
cannam@85 17080 ;;
cannam@85 17081
cannam@85 17082 knetbsd*-gnu)
cannam@85 17083 version_type=linux
cannam@85 17084 need_lib_prefix=no
cannam@85 17085 need_version=no
cannam@85 17086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 17087 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 17088 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17089 shlibpath_overrides_runpath=no
cannam@85 17090 hardcode_into_libs=yes
cannam@85 17091 dynamic_linker='GNU ld.so'
cannam@85 17092 ;;
cannam@85 17093
cannam@85 17094 netbsd*)
cannam@85 17095 version_type=sunos
cannam@85 17096 need_lib_prefix=no
cannam@85 17097 need_version=no
cannam@85 17098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cannam@85 17099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 17100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@85 17101 dynamic_linker='NetBSD (a.out) ld.so'
cannam@85 17102 else
cannam@85 17103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 17104 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 17105 dynamic_linker='NetBSD ld.elf_so'
cannam@85 17106 fi
cannam@85 17107 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17108 shlibpath_overrides_runpath=yes
cannam@85 17109 hardcode_into_libs=yes
cannam@85 17110 ;;
cannam@85 17111
cannam@85 17112 newsos6)
cannam@85 17113 version_type=linux
cannam@85 17114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 17115 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17116 shlibpath_overrides_runpath=yes
cannam@85 17117 ;;
cannam@85 17118
cannam@85 17119 nto-qnx*)
cannam@85 17120 version_type=linux
cannam@85 17121 need_lib_prefix=no
cannam@85 17122 need_version=no
cannam@85 17123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 17124 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 17125 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17126 shlibpath_overrides_runpath=yes
cannam@85 17127 ;;
cannam@85 17128
cannam@85 17129 openbsd*)
cannam@85 17130 version_type=sunos
cannam@85 17131 need_lib_prefix=no
cannam@85 17132 need_version=yes
cannam@85 17133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 17134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@85 17135 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17136 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@85 17137 case $host_os in
cannam@85 17138 openbsd2.[89] | openbsd2.[89].*)
cannam@85 17139 shlibpath_overrides_runpath=no
cannam@85 17140 ;;
cannam@85 17141 *)
cannam@85 17142 shlibpath_overrides_runpath=yes
cannam@85 17143 ;;
cannam@85 17144 esac
cannam@85 17145 else
cannam@85 17146 shlibpath_overrides_runpath=yes
cannam@85 17147 fi
cannam@85 17148 ;;
cannam@85 17149
cannam@85 17150 os2*)
cannam@85 17151 libname_spec='$name'
cannam@85 17152 shrext=".dll"
cannam@85 17153 need_lib_prefix=no
cannam@85 17154 library_names_spec='$libname${shared_ext} $libname.a'
cannam@85 17155 dynamic_linker='OS/2 ld.exe'
cannam@85 17156 shlibpath_var=LIBPATH
cannam@85 17157 ;;
cannam@85 17158
cannam@85 17159 osf3* | osf4* | osf5*)
cannam@85 17160 version_type=osf
cannam@85 17161 need_lib_prefix=no
cannam@85 17162 need_version=no
cannam@85 17163 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 17164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 17165 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17166 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cannam@85 17167 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
cannam@85 17168 ;;
cannam@85 17169
cannam@85 17170 sco3.2v5*)
cannam@85 17171 version_type=osf
cannam@85 17172 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 17173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 17174 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17175 ;;
cannam@85 17176
cannam@85 17177 solaris*)
cannam@85 17178 version_type=linux
cannam@85 17179 need_lib_prefix=no
cannam@85 17180 need_version=no
cannam@85 17181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 17182 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 17183 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17184 shlibpath_overrides_runpath=yes
cannam@85 17185 hardcode_into_libs=yes
cannam@85 17186 # ldd complains unless libraries are executable
cannam@85 17187 postinstall_cmds='chmod +x $lib'
cannam@85 17188 ;;
cannam@85 17189
cannam@85 17190 sunos4*)
cannam@85 17191 version_type=sunos
cannam@85 17192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 17193 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
cannam@85 17194 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17195 shlibpath_overrides_runpath=yes
cannam@85 17196 if test "$with_gnu_ld" = yes; then
cannam@85 17197 need_lib_prefix=no
cannam@85 17198 fi
cannam@85 17199 need_version=yes
cannam@85 17200 ;;
cannam@85 17201
cannam@85 17202 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@85 17203 version_type=linux
cannam@85 17204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 17205 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 17206 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17207 case $host_vendor in
cannam@85 17208 sni)
cannam@85 17209 shlibpath_overrides_runpath=no
cannam@85 17210 need_lib_prefix=no
cannam@85 17211 export_dynamic_flag_spec='${wl}-Blargedynsym'
cannam@85 17212 runpath_var=LD_RUN_PATH
cannam@85 17213 ;;
cannam@85 17214 siemens)
cannam@85 17215 need_lib_prefix=no
cannam@85 17216 ;;
cannam@85 17217 motorola)
cannam@85 17218 need_lib_prefix=no
cannam@85 17219 need_version=no
cannam@85 17220 shlibpath_overrides_runpath=no
cannam@85 17221 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
cannam@85 17222 ;;
cannam@85 17223 esac
cannam@85 17224 ;;
cannam@85 17225
cannam@85 17226 sysv4*MP*)
cannam@85 17227 if test -d /usr/nec ;then
cannam@85 17228 version_type=linux
cannam@85 17229 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
cannam@85 17230 soname_spec='$libname${shared_ext}.$major'
cannam@85 17231 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17232 fi
cannam@85 17233 ;;
cannam@85 17234
cannam@85 17235 uts4*)
cannam@85 17236 version_type=linux
cannam@85 17237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 17238 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 17239 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17240 ;;
cannam@85 17241
cannam@85 17242 *)
cannam@85 17243 dynamic_linker=no
cannam@85 17244 ;;
cannam@85 17245 esac
cannam@85 17246 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
cannam@85 17247 echo "${ECHO_T}$dynamic_linker" >&6
cannam@85 17248 test "$dynamic_linker" = no && can_build_shared=no
cannam@85 17249
cannam@85 17250 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
cannam@85 17251 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
cannam@85 17252 hardcode_action_GCJ=
cannam@85 17253 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
cannam@85 17254 test -n "$runpath_var GCJ" || \
cannam@85 17255 test "X$hardcode_automatic_GCJ"="Xyes" ; then
cannam@85 17256
cannam@85 17257 # We can hardcode non-existant directories.
cannam@85 17258 if test "$hardcode_direct_GCJ" != no &&
cannam@85 17259 # If the only mechanism to avoid hardcoding is shlibpath_var, we
cannam@85 17260 # have to relink, otherwise we might link with an installed library
cannam@85 17261 # when we should be linking with a yet-to-be-installed one
cannam@85 17262 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
cannam@85 17263 test "$hardcode_minus_L_GCJ" != no; then
cannam@85 17264 # Linking always hardcodes the temporary library directory.
cannam@85 17265 hardcode_action_GCJ=relink
cannam@85 17266 else
cannam@85 17267 # We can link without hardcoding, and we can hardcode nonexisting dirs.
cannam@85 17268 hardcode_action_GCJ=immediate
cannam@85 17269 fi
cannam@85 17270 else
cannam@85 17271 # We cannot hardcode anything, or else we can only hardcode existing
cannam@85 17272 # directories.
cannam@85 17273 hardcode_action_GCJ=unsupported
cannam@85 17274 fi
cannam@85 17275 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
cannam@85 17276 echo "${ECHO_T}$hardcode_action_GCJ" >&6
cannam@85 17277
cannam@85 17278 if test "$hardcode_action_GCJ" = relink; then
cannam@85 17279 # Fast installation is not supported
cannam@85 17280 enable_fast_install=no
cannam@85 17281 elif test "$shlibpath_overrides_runpath" = yes ||
cannam@85 17282 test "$enable_shared" = no; then
cannam@85 17283 # Fast installation is not necessary
cannam@85 17284 enable_fast_install=needless
cannam@85 17285 fi
cannam@85 17286
cannam@85 17287 striplib=
cannam@85 17288 old_striplib=
cannam@85 17289 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
cannam@85 17290 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
cannam@85 17291 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
cannam@85 17292 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
cannam@85 17293 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cannam@85 17294 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 17295 echo "${ECHO_T}yes" >&6
cannam@85 17296 else
cannam@85 17297 # FIXME - insert some real tests, host_os isn't really good enough
cannam@85 17298 case $host_os in
cannam@85 17299 darwin*)
cannam@85 17300 if test -n "$STRIP" ; then
cannam@85 17301 striplib="$STRIP -x"
cannam@85 17302 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 17303 echo "${ECHO_T}yes" >&6
cannam@85 17304 else
cannam@85 17305 echo "$as_me:$LINENO: result: no" >&5
cannam@85 17306 echo "${ECHO_T}no" >&6
cannam@85 17307 fi
cannam@85 17308 ;;
cannam@85 17309 *)
cannam@85 17310 echo "$as_me:$LINENO: result: no" >&5
cannam@85 17311 echo "${ECHO_T}no" >&6
cannam@85 17312 ;;
cannam@85 17313 esac
cannam@85 17314 fi
cannam@85 17315
cannam@85 17316 if test "x$enable_dlopen" != xyes; then
cannam@85 17317 enable_dlopen=unknown
cannam@85 17318 enable_dlopen_self=unknown
cannam@85 17319 enable_dlopen_self_static=unknown
cannam@85 17320 else
cannam@85 17321 lt_cv_dlopen=no
cannam@85 17322 lt_cv_dlopen_libs=
cannam@85 17323
cannam@85 17324 case $host_os in
cannam@85 17325 beos*)
cannam@85 17326 lt_cv_dlopen="load_add_on"
cannam@85 17327 lt_cv_dlopen_libs=
cannam@85 17328 lt_cv_dlopen_self=yes
cannam@85 17329 ;;
cannam@85 17330
cannam@85 17331 mingw* | pw32*)
cannam@85 17332 lt_cv_dlopen="LoadLibrary"
cannam@85 17333 lt_cv_dlopen_libs=
cannam@85 17334 ;;
cannam@85 17335
cannam@85 17336 cygwin*)
cannam@85 17337 lt_cv_dlopen="dlopen"
cannam@85 17338 lt_cv_dlopen_libs=
cannam@85 17339 ;;
cannam@85 17340
cannam@85 17341 darwin*)
cannam@85 17342 # if libdl is installed we need to link against it
cannam@85 17343 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
cannam@85 17344 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
cannam@85 17345 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
cannam@85 17346 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 17347 else
cannam@85 17348 ac_check_lib_save_LIBS=$LIBS
cannam@85 17349 LIBS="-ldl $LIBS"
cannam@85 17350 cat >conftest.$ac_ext <<_ACEOF
cannam@85 17351 /* confdefs.h. */
cannam@85 17352 _ACEOF
cannam@85 17353 cat confdefs.h >>conftest.$ac_ext
cannam@85 17354 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 17355 /* end confdefs.h. */
cannam@85 17356
cannam@85 17357 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 17358 #ifdef __cplusplus
cannam@85 17359 extern "C"
cannam@85 17360 #endif
cannam@85 17361 /* We use char because int might match the return type of a gcc2
cannam@85 17362 builtin and then its argument prototype would still apply. */
cannam@85 17363 char dlopen ();
cannam@85 17364 int
cannam@85 17365 main ()
cannam@85 17366 {
cannam@85 17367 dlopen ();
cannam@85 17368 ;
cannam@85 17369 return 0;
cannam@85 17370 }
cannam@85 17371 _ACEOF
cannam@85 17372 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 17373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 17374 (eval $ac_link) 2>conftest.er1
cannam@85 17375 ac_status=$?
cannam@85 17376 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 17377 rm -f conftest.er1
cannam@85 17378 cat conftest.err >&5
cannam@85 17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17380 (exit $ac_status); } &&
cannam@85 17381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 17382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17383 (eval $ac_try) 2>&5
cannam@85 17384 ac_status=$?
cannam@85 17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17386 (exit $ac_status); }; } &&
cannam@85 17387 { ac_try='test -s conftest$ac_exeext'
cannam@85 17388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17389 (eval $ac_try) 2>&5
cannam@85 17390 ac_status=$?
cannam@85 17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17392 (exit $ac_status); }; }; then
cannam@85 17393 ac_cv_lib_dl_dlopen=yes
cannam@85 17394 else
cannam@85 17395 echo "$as_me: failed program was:" >&5
cannam@85 17396 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 17397
cannam@85 17398 ac_cv_lib_dl_dlopen=no
cannam@85 17399 fi
cannam@85 17400 rm -f conftest.err conftest.$ac_objext \
cannam@85 17401 conftest$ac_exeext conftest.$ac_ext
cannam@85 17402 LIBS=$ac_check_lib_save_LIBS
cannam@85 17403 fi
cannam@85 17404 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
cannam@85 17405 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
cannam@85 17406 if test $ac_cv_lib_dl_dlopen = yes; then
cannam@85 17407 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@85 17408 else
cannam@85 17409
cannam@85 17410 lt_cv_dlopen="dyld"
cannam@85 17411 lt_cv_dlopen_libs=
cannam@85 17412 lt_cv_dlopen_self=yes
cannam@85 17413
cannam@85 17414 fi
cannam@85 17415
cannam@85 17416 ;;
cannam@85 17417
cannam@85 17418 *)
cannam@85 17419 echo "$as_me:$LINENO: checking for shl_load" >&5
cannam@85 17420 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
cannam@85 17421 if test "${ac_cv_func_shl_load+set}" = set; then
cannam@85 17422 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 17423 else
cannam@85 17424 cat >conftest.$ac_ext <<_ACEOF
cannam@85 17425 /* confdefs.h. */
cannam@85 17426 _ACEOF
cannam@85 17427 cat confdefs.h >>conftest.$ac_ext
cannam@85 17428 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 17429 /* end confdefs.h. */
cannam@85 17430 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
cannam@85 17431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
cannam@85 17432 #define shl_load innocuous_shl_load
cannam@85 17433
cannam@85 17434 /* System header to define __stub macros and hopefully few prototypes,
cannam@85 17435 which can conflict with char shl_load (); below.
cannam@85 17436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 17437 <limits.h> exists even on freestanding compilers. */
cannam@85 17438
cannam@85 17439 #ifdef __STDC__
cannam@85 17440 # include <limits.h>
cannam@85 17441 #else
cannam@85 17442 # include <assert.h>
cannam@85 17443 #endif
cannam@85 17444
cannam@85 17445 #undef shl_load
cannam@85 17446
cannam@85 17447 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 17448 #ifdef __cplusplus
cannam@85 17449 extern "C"
cannam@85 17450 {
cannam@85 17451 #endif
cannam@85 17452 /* We use char because int might match the return type of a gcc2
cannam@85 17453 builtin and then its argument prototype would still apply. */
cannam@85 17454 char shl_load ();
cannam@85 17455 /* The GNU C library defines this for functions which it implements
cannam@85 17456 to always fail with ENOSYS. Some functions are actually named
cannam@85 17457 something starting with __ and the normal name is an alias. */
cannam@85 17458 #if defined (__stub_shl_load) || defined (__stub___shl_load)
cannam@85 17459 choke me
cannam@85 17460 #else
cannam@85 17461 char (*f) () = shl_load;
cannam@85 17462 #endif
cannam@85 17463 #ifdef __cplusplus
cannam@85 17464 }
cannam@85 17465 #endif
cannam@85 17466
cannam@85 17467 int
cannam@85 17468 main ()
cannam@85 17469 {
cannam@85 17470 return f != shl_load;
cannam@85 17471 ;
cannam@85 17472 return 0;
cannam@85 17473 }
cannam@85 17474 _ACEOF
cannam@85 17475 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 17476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 17477 (eval $ac_link) 2>conftest.er1
cannam@85 17478 ac_status=$?
cannam@85 17479 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 17480 rm -f conftest.er1
cannam@85 17481 cat conftest.err >&5
cannam@85 17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17483 (exit $ac_status); } &&
cannam@85 17484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 17485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17486 (eval $ac_try) 2>&5
cannam@85 17487 ac_status=$?
cannam@85 17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17489 (exit $ac_status); }; } &&
cannam@85 17490 { ac_try='test -s conftest$ac_exeext'
cannam@85 17491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17492 (eval $ac_try) 2>&5
cannam@85 17493 ac_status=$?
cannam@85 17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17495 (exit $ac_status); }; }; then
cannam@85 17496 ac_cv_func_shl_load=yes
cannam@85 17497 else
cannam@85 17498 echo "$as_me: failed program was:" >&5
cannam@85 17499 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 17500
cannam@85 17501 ac_cv_func_shl_load=no
cannam@85 17502 fi
cannam@85 17503 rm -f conftest.err conftest.$ac_objext \
cannam@85 17504 conftest$ac_exeext conftest.$ac_ext
cannam@85 17505 fi
cannam@85 17506 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
cannam@85 17507 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
cannam@85 17508 if test $ac_cv_func_shl_load = yes; then
cannam@85 17509 lt_cv_dlopen="shl_load"
cannam@85 17510 else
cannam@85 17511 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
cannam@85 17512 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
cannam@85 17513 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
cannam@85 17514 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 17515 else
cannam@85 17516 ac_check_lib_save_LIBS=$LIBS
cannam@85 17517 LIBS="-ldld $LIBS"
cannam@85 17518 cat >conftest.$ac_ext <<_ACEOF
cannam@85 17519 /* confdefs.h. */
cannam@85 17520 _ACEOF
cannam@85 17521 cat confdefs.h >>conftest.$ac_ext
cannam@85 17522 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 17523 /* end confdefs.h. */
cannam@85 17524
cannam@85 17525 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 17526 #ifdef __cplusplus
cannam@85 17527 extern "C"
cannam@85 17528 #endif
cannam@85 17529 /* We use char because int might match the return type of a gcc2
cannam@85 17530 builtin and then its argument prototype would still apply. */
cannam@85 17531 char shl_load ();
cannam@85 17532 int
cannam@85 17533 main ()
cannam@85 17534 {
cannam@85 17535 shl_load ();
cannam@85 17536 ;
cannam@85 17537 return 0;
cannam@85 17538 }
cannam@85 17539 _ACEOF
cannam@85 17540 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 17541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 17542 (eval $ac_link) 2>conftest.er1
cannam@85 17543 ac_status=$?
cannam@85 17544 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 17545 rm -f conftest.er1
cannam@85 17546 cat conftest.err >&5
cannam@85 17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17548 (exit $ac_status); } &&
cannam@85 17549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 17550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17551 (eval $ac_try) 2>&5
cannam@85 17552 ac_status=$?
cannam@85 17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17554 (exit $ac_status); }; } &&
cannam@85 17555 { ac_try='test -s conftest$ac_exeext'
cannam@85 17556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17557 (eval $ac_try) 2>&5
cannam@85 17558 ac_status=$?
cannam@85 17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17560 (exit $ac_status); }; }; then
cannam@85 17561 ac_cv_lib_dld_shl_load=yes
cannam@85 17562 else
cannam@85 17563 echo "$as_me: failed program was:" >&5
cannam@85 17564 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 17565
cannam@85 17566 ac_cv_lib_dld_shl_load=no
cannam@85 17567 fi
cannam@85 17568 rm -f conftest.err conftest.$ac_objext \
cannam@85 17569 conftest$ac_exeext conftest.$ac_ext
cannam@85 17570 LIBS=$ac_check_lib_save_LIBS
cannam@85 17571 fi
cannam@85 17572 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
cannam@85 17573 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
cannam@85 17574 if test $ac_cv_lib_dld_shl_load = yes; then
cannam@85 17575 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
cannam@85 17576 else
cannam@85 17577 echo "$as_me:$LINENO: checking for dlopen" >&5
cannam@85 17578 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
cannam@85 17579 if test "${ac_cv_func_dlopen+set}" = set; then
cannam@85 17580 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 17581 else
cannam@85 17582 cat >conftest.$ac_ext <<_ACEOF
cannam@85 17583 /* confdefs.h. */
cannam@85 17584 _ACEOF
cannam@85 17585 cat confdefs.h >>conftest.$ac_ext
cannam@85 17586 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 17587 /* end confdefs.h. */
cannam@85 17588 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
cannam@85 17589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
cannam@85 17590 #define dlopen innocuous_dlopen
cannam@85 17591
cannam@85 17592 /* System header to define __stub macros and hopefully few prototypes,
cannam@85 17593 which can conflict with char dlopen (); below.
cannam@85 17594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 17595 <limits.h> exists even on freestanding compilers. */
cannam@85 17596
cannam@85 17597 #ifdef __STDC__
cannam@85 17598 # include <limits.h>
cannam@85 17599 #else
cannam@85 17600 # include <assert.h>
cannam@85 17601 #endif
cannam@85 17602
cannam@85 17603 #undef dlopen
cannam@85 17604
cannam@85 17605 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 17606 #ifdef __cplusplus
cannam@85 17607 extern "C"
cannam@85 17608 {
cannam@85 17609 #endif
cannam@85 17610 /* We use char because int might match the return type of a gcc2
cannam@85 17611 builtin and then its argument prototype would still apply. */
cannam@85 17612 char dlopen ();
cannam@85 17613 /* The GNU C library defines this for functions which it implements
cannam@85 17614 to always fail with ENOSYS. Some functions are actually named
cannam@85 17615 something starting with __ and the normal name is an alias. */
cannam@85 17616 #if defined (__stub_dlopen) || defined (__stub___dlopen)
cannam@85 17617 choke me
cannam@85 17618 #else
cannam@85 17619 char (*f) () = dlopen;
cannam@85 17620 #endif
cannam@85 17621 #ifdef __cplusplus
cannam@85 17622 }
cannam@85 17623 #endif
cannam@85 17624
cannam@85 17625 int
cannam@85 17626 main ()
cannam@85 17627 {
cannam@85 17628 return f != dlopen;
cannam@85 17629 ;
cannam@85 17630 return 0;
cannam@85 17631 }
cannam@85 17632 _ACEOF
cannam@85 17633 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 17634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 17635 (eval $ac_link) 2>conftest.er1
cannam@85 17636 ac_status=$?
cannam@85 17637 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 17638 rm -f conftest.er1
cannam@85 17639 cat conftest.err >&5
cannam@85 17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17641 (exit $ac_status); } &&
cannam@85 17642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 17643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17644 (eval $ac_try) 2>&5
cannam@85 17645 ac_status=$?
cannam@85 17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17647 (exit $ac_status); }; } &&
cannam@85 17648 { ac_try='test -s conftest$ac_exeext'
cannam@85 17649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17650 (eval $ac_try) 2>&5
cannam@85 17651 ac_status=$?
cannam@85 17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17653 (exit $ac_status); }; }; then
cannam@85 17654 ac_cv_func_dlopen=yes
cannam@85 17655 else
cannam@85 17656 echo "$as_me: failed program was:" >&5
cannam@85 17657 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 17658
cannam@85 17659 ac_cv_func_dlopen=no
cannam@85 17660 fi
cannam@85 17661 rm -f conftest.err conftest.$ac_objext \
cannam@85 17662 conftest$ac_exeext conftest.$ac_ext
cannam@85 17663 fi
cannam@85 17664 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
cannam@85 17665 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
cannam@85 17666 if test $ac_cv_func_dlopen = yes; then
cannam@85 17667 lt_cv_dlopen="dlopen"
cannam@85 17668 else
cannam@85 17669 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
cannam@85 17670 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
cannam@85 17671 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
cannam@85 17672 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 17673 else
cannam@85 17674 ac_check_lib_save_LIBS=$LIBS
cannam@85 17675 LIBS="-ldl $LIBS"
cannam@85 17676 cat >conftest.$ac_ext <<_ACEOF
cannam@85 17677 /* confdefs.h. */
cannam@85 17678 _ACEOF
cannam@85 17679 cat confdefs.h >>conftest.$ac_ext
cannam@85 17680 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 17681 /* end confdefs.h. */
cannam@85 17682
cannam@85 17683 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 17684 #ifdef __cplusplus
cannam@85 17685 extern "C"
cannam@85 17686 #endif
cannam@85 17687 /* We use char because int might match the return type of a gcc2
cannam@85 17688 builtin and then its argument prototype would still apply. */
cannam@85 17689 char dlopen ();
cannam@85 17690 int
cannam@85 17691 main ()
cannam@85 17692 {
cannam@85 17693 dlopen ();
cannam@85 17694 ;
cannam@85 17695 return 0;
cannam@85 17696 }
cannam@85 17697 _ACEOF
cannam@85 17698 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 17699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 17700 (eval $ac_link) 2>conftest.er1
cannam@85 17701 ac_status=$?
cannam@85 17702 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 17703 rm -f conftest.er1
cannam@85 17704 cat conftest.err >&5
cannam@85 17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17706 (exit $ac_status); } &&
cannam@85 17707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 17708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17709 (eval $ac_try) 2>&5
cannam@85 17710 ac_status=$?
cannam@85 17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17712 (exit $ac_status); }; } &&
cannam@85 17713 { ac_try='test -s conftest$ac_exeext'
cannam@85 17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17715 (eval $ac_try) 2>&5
cannam@85 17716 ac_status=$?
cannam@85 17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17718 (exit $ac_status); }; }; then
cannam@85 17719 ac_cv_lib_dl_dlopen=yes
cannam@85 17720 else
cannam@85 17721 echo "$as_me: failed program was:" >&5
cannam@85 17722 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 17723
cannam@85 17724 ac_cv_lib_dl_dlopen=no
cannam@85 17725 fi
cannam@85 17726 rm -f conftest.err conftest.$ac_objext \
cannam@85 17727 conftest$ac_exeext conftest.$ac_ext
cannam@85 17728 LIBS=$ac_check_lib_save_LIBS
cannam@85 17729 fi
cannam@85 17730 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
cannam@85 17731 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
cannam@85 17732 if test $ac_cv_lib_dl_dlopen = yes; then
cannam@85 17733 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@85 17734 else
cannam@85 17735 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
cannam@85 17736 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
cannam@85 17737 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
cannam@85 17738 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 17739 else
cannam@85 17740 ac_check_lib_save_LIBS=$LIBS
cannam@85 17741 LIBS="-lsvld $LIBS"
cannam@85 17742 cat >conftest.$ac_ext <<_ACEOF
cannam@85 17743 /* confdefs.h. */
cannam@85 17744 _ACEOF
cannam@85 17745 cat confdefs.h >>conftest.$ac_ext
cannam@85 17746 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 17747 /* end confdefs.h. */
cannam@85 17748
cannam@85 17749 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 17750 #ifdef __cplusplus
cannam@85 17751 extern "C"
cannam@85 17752 #endif
cannam@85 17753 /* We use char because int might match the return type of a gcc2
cannam@85 17754 builtin and then its argument prototype would still apply. */
cannam@85 17755 char dlopen ();
cannam@85 17756 int
cannam@85 17757 main ()
cannam@85 17758 {
cannam@85 17759 dlopen ();
cannam@85 17760 ;
cannam@85 17761 return 0;
cannam@85 17762 }
cannam@85 17763 _ACEOF
cannam@85 17764 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 17765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 17766 (eval $ac_link) 2>conftest.er1
cannam@85 17767 ac_status=$?
cannam@85 17768 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 17769 rm -f conftest.er1
cannam@85 17770 cat conftest.err >&5
cannam@85 17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17772 (exit $ac_status); } &&
cannam@85 17773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 17774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17775 (eval $ac_try) 2>&5
cannam@85 17776 ac_status=$?
cannam@85 17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17778 (exit $ac_status); }; } &&
cannam@85 17779 { ac_try='test -s conftest$ac_exeext'
cannam@85 17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17781 (eval $ac_try) 2>&5
cannam@85 17782 ac_status=$?
cannam@85 17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17784 (exit $ac_status); }; }; then
cannam@85 17785 ac_cv_lib_svld_dlopen=yes
cannam@85 17786 else
cannam@85 17787 echo "$as_me: failed program was:" >&5
cannam@85 17788 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 17789
cannam@85 17790 ac_cv_lib_svld_dlopen=no
cannam@85 17791 fi
cannam@85 17792 rm -f conftest.err conftest.$ac_objext \
cannam@85 17793 conftest$ac_exeext conftest.$ac_ext
cannam@85 17794 LIBS=$ac_check_lib_save_LIBS
cannam@85 17795 fi
cannam@85 17796 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
cannam@85 17797 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
cannam@85 17798 if test $ac_cv_lib_svld_dlopen = yes; then
cannam@85 17799 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
cannam@85 17800 else
cannam@85 17801 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
cannam@85 17802 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
cannam@85 17803 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
cannam@85 17804 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 17805 else
cannam@85 17806 ac_check_lib_save_LIBS=$LIBS
cannam@85 17807 LIBS="-ldld $LIBS"
cannam@85 17808 cat >conftest.$ac_ext <<_ACEOF
cannam@85 17809 /* confdefs.h. */
cannam@85 17810 _ACEOF
cannam@85 17811 cat confdefs.h >>conftest.$ac_ext
cannam@85 17812 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 17813 /* end confdefs.h. */
cannam@85 17814
cannam@85 17815 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 17816 #ifdef __cplusplus
cannam@85 17817 extern "C"
cannam@85 17818 #endif
cannam@85 17819 /* We use char because int might match the return type of a gcc2
cannam@85 17820 builtin and then its argument prototype would still apply. */
cannam@85 17821 char dld_link ();
cannam@85 17822 int
cannam@85 17823 main ()
cannam@85 17824 {
cannam@85 17825 dld_link ();
cannam@85 17826 ;
cannam@85 17827 return 0;
cannam@85 17828 }
cannam@85 17829 _ACEOF
cannam@85 17830 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 17831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 17832 (eval $ac_link) 2>conftest.er1
cannam@85 17833 ac_status=$?
cannam@85 17834 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 17835 rm -f conftest.er1
cannam@85 17836 cat conftest.err >&5
cannam@85 17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17838 (exit $ac_status); } &&
cannam@85 17839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 17840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17841 (eval $ac_try) 2>&5
cannam@85 17842 ac_status=$?
cannam@85 17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17844 (exit $ac_status); }; } &&
cannam@85 17845 { ac_try='test -s conftest$ac_exeext'
cannam@85 17846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17847 (eval $ac_try) 2>&5
cannam@85 17848 ac_status=$?
cannam@85 17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17850 (exit $ac_status); }; }; then
cannam@85 17851 ac_cv_lib_dld_dld_link=yes
cannam@85 17852 else
cannam@85 17853 echo "$as_me: failed program was:" >&5
cannam@85 17854 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 17855
cannam@85 17856 ac_cv_lib_dld_dld_link=no
cannam@85 17857 fi
cannam@85 17858 rm -f conftest.err conftest.$ac_objext \
cannam@85 17859 conftest$ac_exeext conftest.$ac_ext
cannam@85 17860 LIBS=$ac_check_lib_save_LIBS
cannam@85 17861 fi
cannam@85 17862 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
cannam@85 17863 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
cannam@85 17864 if test $ac_cv_lib_dld_dld_link = yes; then
cannam@85 17865 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
cannam@85 17866 fi
cannam@85 17867
cannam@85 17868
cannam@85 17869 fi
cannam@85 17870
cannam@85 17871
cannam@85 17872 fi
cannam@85 17873
cannam@85 17874
cannam@85 17875 fi
cannam@85 17876
cannam@85 17877
cannam@85 17878 fi
cannam@85 17879
cannam@85 17880
cannam@85 17881 fi
cannam@85 17882
cannam@85 17883 ;;
cannam@85 17884 esac
cannam@85 17885
cannam@85 17886 if test "x$lt_cv_dlopen" != xno; then
cannam@85 17887 enable_dlopen=yes
cannam@85 17888 else
cannam@85 17889 enable_dlopen=no
cannam@85 17890 fi
cannam@85 17891
cannam@85 17892 case $lt_cv_dlopen in
cannam@85 17893 dlopen)
cannam@85 17894 save_CPPFLAGS="$CPPFLAGS"
cannam@85 17895 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
cannam@85 17896
cannam@85 17897 save_LDFLAGS="$LDFLAGS"
cannam@85 17898 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
cannam@85 17899
cannam@85 17900 save_LIBS="$LIBS"
cannam@85 17901 LIBS="$lt_cv_dlopen_libs $LIBS"
cannam@85 17902
cannam@85 17903 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
cannam@85 17904 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
cannam@85 17905 if test "${lt_cv_dlopen_self+set}" = set; then
cannam@85 17906 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 17907 else
cannam@85 17908 if test "$cross_compiling" = yes; then :
cannam@85 17909 lt_cv_dlopen_self=cross
cannam@85 17910 else
cannam@85 17911 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@85 17912 lt_status=$lt_dlunknown
cannam@85 17913 cat > conftest.$ac_ext <<EOF
cannam@85 17914 #line 17914 "configure"
cannam@85 17915 #include "confdefs.h"
cannam@85 17916
cannam@85 17917 #if HAVE_DLFCN_H
cannam@85 17918 #include <dlfcn.h>
cannam@85 17919 #endif
cannam@85 17920
cannam@85 17921 #include <stdio.h>
cannam@85 17922
cannam@85 17923 #ifdef RTLD_GLOBAL
cannam@85 17924 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@85 17925 #else
cannam@85 17926 # ifdef DL_GLOBAL
cannam@85 17927 # define LT_DLGLOBAL DL_GLOBAL
cannam@85 17928 # else
cannam@85 17929 # define LT_DLGLOBAL 0
cannam@85 17930 # endif
cannam@85 17931 #endif
cannam@85 17932
cannam@85 17933 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@85 17934 find out it does not work in some platform. */
cannam@85 17935 #ifndef LT_DLLAZY_OR_NOW
cannam@85 17936 # ifdef RTLD_LAZY
cannam@85 17937 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@85 17938 # else
cannam@85 17939 # ifdef DL_LAZY
cannam@85 17940 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@85 17941 # else
cannam@85 17942 # ifdef RTLD_NOW
cannam@85 17943 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@85 17944 # else
cannam@85 17945 # ifdef DL_NOW
cannam@85 17946 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@85 17947 # else
cannam@85 17948 # define LT_DLLAZY_OR_NOW 0
cannam@85 17949 # endif
cannam@85 17950 # endif
cannam@85 17951 # endif
cannam@85 17952 # endif
cannam@85 17953 #endif
cannam@85 17954
cannam@85 17955 #ifdef __cplusplus
cannam@85 17956 extern "C" void exit (int);
cannam@85 17957 #endif
cannam@85 17958
cannam@85 17959 void fnord() { int i=42;}
cannam@85 17960 int main ()
cannam@85 17961 {
cannam@85 17962 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@85 17963 int status = $lt_dlunknown;
cannam@85 17964
cannam@85 17965 if (self)
cannam@85 17966 {
cannam@85 17967 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@85 17968 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@85 17969 /* dlclose (self); */
cannam@85 17970 }
cannam@85 17971
cannam@85 17972 exit (status);
cannam@85 17973 }
cannam@85 17974 EOF
cannam@85 17975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 17976 (eval $ac_link) 2>&5
cannam@85 17977 ac_status=$?
cannam@85 17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17979 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@85 17980 (./conftest; exit; ) 2>/dev/null
cannam@85 17981 lt_status=$?
cannam@85 17982 case x$lt_status in
cannam@85 17983 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
cannam@85 17984 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
cannam@85 17985 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
cannam@85 17986 esac
cannam@85 17987 else :
cannam@85 17988 # compilation failed
cannam@85 17989 lt_cv_dlopen_self=no
cannam@85 17990 fi
cannam@85 17991 fi
cannam@85 17992 rm -fr conftest*
cannam@85 17993
cannam@85 17994
cannam@85 17995 fi
cannam@85 17996 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
cannam@85 17997 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
cannam@85 17998
cannam@85 17999 if test "x$lt_cv_dlopen_self" = xyes; then
cannam@85 18000 LDFLAGS="$LDFLAGS $link_static_flag"
cannam@85 18001 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
cannam@85 18002 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
cannam@85 18003 if test "${lt_cv_dlopen_self_static+set}" = set; then
cannam@85 18004 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 18005 else
cannam@85 18006 if test "$cross_compiling" = yes; then :
cannam@85 18007 lt_cv_dlopen_self_static=cross
cannam@85 18008 else
cannam@85 18009 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@85 18010 lt_status=$lt_dlunknown
cannam@85 18011 cat > conftest.$ac_ext <<EOF
cannam@85 18012 #line 18012 "configure"
cannam@85 18013 #include "confdefs.h"
cannam@85 18014
cannam@85 18015 #if HAVE_DLFCN_H
cannam@85 18016 #include <dlfcn.h>
cannam@85 18017 #endif
cannam@85 18018
cannam@85 18019 #include <stdio.h>
cannam@85 18020
cannam@85 18021 #ifdef RTLD_GLOBAL
cannam@85 18022 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@85 18023 #else
cannam@85 18024 # ifdef DL_GLOBAL
cannam@85 18025 # define LT_DLGLOBAL DL_GLOBAL
cannam@85 18026 # else
cannam@85 18027 # define LT_DLGLOBAL 0
cannam@85 18028 # endif
cannam@85 18029 #endif
cannam@85 18030
cannam@85 18031 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@85 18032 find out it does not work in some platform. */
cannam@85 18033 #ifndef LT_DLLAZY_OR_NOW
cannam@85 18034 # ifdef RTLD_LAZY
cannam@85 18035 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@85 18036 # else
cannam@85 18037 # ifdef DL_LAZY
cannam@85 18038 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@85 18039 # else
cannam@85 18040 # ifdef RTLD_NOW
cannam@85 18041 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@85 18042 # else
cannam@85 18043 # ifdef DL_NOW
cannam@85 18044 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@85 18045 # else
cannam@85 18046 # define LT_DLLAZY_OR_NOW 0
cannam@85 18047 # endif
cannam@85 18048 # endif
cannam@85 18049 # endif
cannam@85 18050 # endif
cannam@85 18051 #endif
cannam@85 18052
cannam@85 18053 #ifdef __cplusplus
cannam@85 18054 extern "C" void exit (int);
cannam@85 18055 #endif
cannam@85 18056
cannam@85 18057 void fnord() { int i=42;}
cannam@85 18058 int main ()
cannam@85 18059 {
cannam@85 18060 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@85 18061 int status = $lt_dlunknown;
cannam@85 18062
cannam@85 18063 if (self)
cannam@85 18064 {
cannam@85 18065 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@85 18066 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@85 18067 /* dlclose (self); */
cannam@85 18068 }
cannam@85 18069
cannam@85 18070 exit (status);
cannam@85 18071 }
cannam@85 18072 EOF
cannam@85 18073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 18074 (eval $ac_link) 2>&5
cannam@85 18075 ac_status=$?
cannam@85 18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 18077 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@85 18078 (./conftest; exit; ) 2>/dev/null
cannam@85 18079 lt_status=$?
cannam@85 18080 case x$lt_status in
cannam@85 18081 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@85 18082 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@85 18083 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
cannam@85 18084 esac
cannam@85 18085 else :
cannam@85 18086 # compilation failed
cannam@85 18087 lt_cv_dlopen_self_static=no
cannam@85 18088 fi
cannam@85 18089 fi
cannam@85 18090 rm -fr conftest*
cannam@85 18091
cannam@85 18092
cannam@85 18093 fi
cannam@85 18094 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
cannam@85 18095 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
cannam@85 18096 fi
cannam@85 18097
cannam@85 18098 CPPFLAGS="$save_CPPFLAGS"
cannam@85 18099 LDFLAGS="$save_LDFLAGS"
cannam@85 18100 LIBS="$save_LIBS"
cannam@85 18101 ;;
cannam@85 18102 esac
cannam@85 18103
cannam@85 18104 case $lt_cv_dlopen_self in
cannam@85 18105 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
cannam@85 18106 *) enable_dlopen_self=unknown ;;
cannam@85 18107 esac
cannam@85 18108
cannam@85 18109 case $lt_cv_dlopen_self_static in
cannam@85 18110 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
cannam@85 18111 *) enable_dlopen_self_static=unknown ;;
cannam@85 18112 esac
cannam@85 18113 fi
cannam@85 18114
cannam@85 18115
cannam@85 18116 # The else clause should only fire when bootstrapping the
cannam@85 18117 # libtool distribution, otherwise you forgot to ship ltmain.sh
cannam@85 18118 # with your package, and you will get complaints that there are
cannam@85 18119 # no rules to generate ltmain.sh.
cannam@85 18120 if test -f "$ltmain"; then
cannam@85 18121 # See if we are running on zsh, and set the options which allow our commands through
cannam@85 18122 # without removal of \ escapes.
cannam@85 18123 if test -n "${ZSH_VERSION+set}" ; then
cannam@85 18124 setopt NO_GLOB_SUBST
cannam@85 18125 fi
cannam@85 18126 # Now quote all the things that may contain metacharacters while being
cannam@85 18127 # careful not to overquote the AC_SUBSTed values. We take copies of the
cannam@85 18128 # variables and quote the copies for generation of the libtool script.
cannam@85 18129 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
cannam@85 18130 SED SHELL STRIP \
cannam@85 18131 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
cannam@85 18132 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
cannam@85 18133 deplibs_check_method reload_flag reload_cmds need_locks \
cannam@85 18134 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
cannam@85 18135 lt_cv_sys_global_symbol_to_c_name_address \
cannam@85 18136 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
cannam@85 18137 old_postinstall_cmds old_postuninstall_cmds \
cannam@85 18138 compiler_GCJ \
cannam@85 18139 CC_GCJ \
cannam@85 18140 LD_GCJ \
cannam@85 18141 lt_prog_compiler_wl_GCJ \
cannam@85 18142 lt_prog_compiler_pic_GCJ \
cannam@85 18143 lt_prog_compiler_static_GCJ \
cannam@85 18144 lt_prog_compiler_no_builtin_flag_GCJ \
cannam@85 18145 export_dynamic_flag_spec_GCJ \
cannam@85 18146 thread_safe_flag_spec_GCJ \
cannam@85 18147 whole_archive_flag_spec_GCJ \
cannam@85 18148 enable_shared_with_static_runtimes_GCJ \
cannam@85 18149 old_archive_cmds_GCJ \
cannam@85 18150 old_archive_from_new_cmds_GCJ \
cannam@85 18151 predep_objects_GCJ \
cannam@85 18152 postdep_objects_GCJ \
cannam@85 18153 predeps_GCJ \
cannam@85 18154 postdeps_GCJ \
cannam@85 18155 compiler_lib_search_path_GCJ \
cannam@85 18156 archive_cmds_GCJ \
cannam@85 18157 archive_expsym_cmds_GCJ \
cannam@85 18158 postinstall_cmds_GCJ \
cannam@85 18159 postuninstall_cmds_GCJ \
cannam@85 18160 old_archive_from_expsyms_cmds_GCJ \
cannam@85 18161 allow_undefined_flag_GCJ \
cannam@85 18162 no_undefined_flag_GCJ \
cannam@85 18163 export_symbols_cmds_GCJ \
cannam@85 18164 hardcode_libdir_flag_spec_GCJ \
cannam@85 18165 hardcode_libdir_flag_spec_ld_GCJ \
cannam@85 18166 hardcode_libdir_separator_GCJ \
cannam@85 18167 hardcode_automatic_GCJ \
cannam@85 18168 module_cmds_GCJ \
cannam@85 18169 module_expsym_cmds_GCJ \
cannam@85 18170 lt_cv_prog_compiler_c_o_GCJ \
cannam@85 18171 exclude_expsyms_GCJ \
cannam@85 18172 include_expsyms_GCJ; do
cannam@85 18173
cannam@85 18174 case $var in
cannam@85 18175 old_archive_cmds_GCJ | \
cannam@85 18176 old_archive_from_new_cmds_GCJ | \
cannam@85 18177 archive_cmds_GCJ | \
cannam@85 18178 archive_expsym_cmds_GCJ | \
cannam@85 18179 module_cmds_GCJ | \
cannam@85 18180 module_expsym_cmds_GCJ | \
cannam@85 18181 old_archive_from_expsyms_cmds_GCJ | \
cannam@85 18182 export_symbols_cmds_GCJ | \
cannam@85 18183 extract_expsyms_cmds | reload_cmds | finish_cmds | \
cannam@85 18184 postinstall_cmds | postuninstall_cmds | \
cannam@85 18185 old_postinstall_cmds | old_postuninstall_cmds | \
cannam@85 18186 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
cannam@85 18187 # Double-quote double-evaled strings.
cannam@85 18188 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
cannam@85 18189 ;;
cannam@85 18190 *)
cannam@85 18191 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
cannam@85 18192 ;;
cannam@85 18193 esac
cannam@85 18194 done
cannam@85 18195
cannam@85 18196 case $lt_echo in
cannam@85 18197 *'\$0 --fallback-echo"')
cannam@85 18198 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
cannam@85 18199 ;;
cannam@85 18200 esac
cannam@85 18201
cannam@85 18202 cfgfile="$ofile"
cannam@85 18203
cannam@85 18204 cat <<__EOF__ >> "$cfgfile"
cannam@85 18205 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
cannam@85 18206
cannam@85 18207 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
cannam@85 18208
cannam@85 18209 # Shell to use when invoking shell scripts.
cannam@85 18210 SHELL=$lt_SHELL
cannam@85 18211
cannam@85 18212 # Whether or not to build shared libraries.
cannam@85 18213 build_libtool_libs=$enable_shared
cannam@85 18214
cannam@85 18215 # Whether or not to build static libraries.
cannam@85 18216 build_old_libs=$enable_static
cannam@85 18217
cannam@85 18218 # Whether or not to add -lc for building shared libraries.
cannam@85 18219 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
cannam@85 18220
cannam@85 18221 # Whether or not to disallow shared libs when runtime libs are static
cannam@85 18222 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
cannam@85 18223
cannam@85 18224 # Whether or not to optimize for fast installation.
cannam@85 18225 fast_install=$enable_fast_install
cannam@85 18226
cannam@85 18227 # The host system.
cannam@85 18228 host_alias=$host_alias
cannam@85 18229 host=$host
cannam@85 18230
cannam@85 18231 # An echo program that does not interpret backslashes.
cannam@85 18232 echo=$lt_echo
cannam@85 18233
cannam@85 18234 # The archiver.
cannam@85 18235 AR=$lt_AR
cannam@85 18236 AR_FLAGS=$lt_AR_FLAGS
cannam@85 18237
cannam@85 18238 # A C compiler.
cannam@85 18239 LTCC=$lt_LTCC
cannam@85 18240
cannam@85 18241 # A language-specific compiler.
cannam@85 18242 CC=$lt_compiler_GCJ
cannam@85 18243
cannam@85 18244 # Is the compiler the GNU C compiler?
cannam@85 18245 with_gcc=$GCC_GCJ
cannam@85 18246
cannam@85 18247 # An ERE matcher.
cannam@85 18248 EGREP=$lt_EGREP
cannam@85 18249
cannam@85 18250 # The linker used to build libraries.
cannam@85 18251 LD=$lt_LD_GCJ
cannam@85 18252
cannam@85 18253 # Whether we need hard or soft links.
cannam@85 18254 LN_S=$lt_LN_S
cannam@85 18255
cannam@85 18256 # A BSD-compatible nm program.
cannam@85 18257 NM=$lt_NM
cannam@85 18258
cannam@85 18259 # A symbol stripping program
cannam@85 18260 STRIP=$lt_STRIP
cannam@85 18261
cannam@85 18262 # Used to examine libraries when file_magic_cmd begins "file"
cannam@85 18263 MAGIC_CMD=$MAGIC_CMD
cannam@85 18264
cannam@85 18265 # Used on cygwin: DLL creation program.
cannam@85 18266 DLLTOOL="$DLLTOOL"
cannam@85 18267
cannam@85 18268 # Used on cygwin: object dumper.
cannam@85 18269 OBJDUMP="$OBJDUMP"
cannam@85 18270
cannam@85 18271 # Used on cygwin: assembler.
cannam@85 18272 AS="$AS"
cannam@85 18273
cannam@85 18274 # The name of the directory that contains temporary libtool files.
cannam@85 18275 objdir=$objdir
cannam@85 18276
cannam@85 18277 # How to create reloadable object files.
cannam@85 18278 reload_flag=$lt_reload_flag
cannam@85 18279 reload_cmds=$lt_reload_cmds
cannam@85 18280
cannam@85 18281 # How to pass a linker flag through the compiler.
cannam@85 18282 wl=$lt_lt_prog_compiler_wl_GCJ
cannam@85 18283
cannam@85 18284 # Object file suffix (normally "o").
cannam@85 18285 objext="$ac_objext"
cannam@85 18286
cannam@85 18287 # Old archive suffix (normally "a").
cannam@85 18288 libext="$libext"
cannam@85 18289
cannam@85 18290 # Shared library suffix (normally ".so").
cannam@85 18291 shrext='$shrext'
cannam@85 18292
cannam@85 18293 # Executable file suffix (normally "").
cannam@85 18294 exeext="$exeext"
cannam@85 18295
cannam@85 18296 # Additional compiler flags for building library objects.
cannam@85 18297 pic_flag=$lt_lt_prog_compiler_pic_GCJ
cannam@85 18298 pic_mode=$pic_mode
cannam@85 18299
cannam@85 18300 # What is the maximum length of a command?
cannam@85 18301 max_cmd_len=$lt_cv_sys_max_cmd_len
cannam@85 18302
cannam@85 18303 # Does compiler simultaneously support -c and -o options?
cannam@85 18304 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
cannam@85 18305
cannam@85 18306 # Must we lock files when doing compilation ?
cannam@85 18307 need_locks=$lt_need_locks
cannam@85 18308
cannam@85 18309 # Do we need the lib prefix for modules?
cannam@85 18310 need_lib_prefix=$need_lib_prefix
cannam@85 18311
cannam@85 18312 # Do we need a version for libraries?
cannam@85 18313 need_version=$need_version
cannam@85 18314
cannam@85 18315 # Whether dlopen is supported.
cannam@85 18316 dlopen_support=$enable_dlopen
cannam@85 18317
cannam@85 18318 # Whether dlopen of programs is supported.
cannam@85 18319 dlopen_self=$enable_dlopen_self
cannam@85 18320
cannam@85 18321 # Whether dlopen of statically linked programs is supported.
cannam@85 18322 dlopen_self_static=$enable_dlopen_self_static
cannam@85 18323
cannam@85 18324 # Compiler flag to prevent dynamic linking.
cannam@85 18325 link_static_flag=$lt_lt_prog_compiler_static_GCJ
cannam@85 18326
cannam@85 18327 # Compiler flag to turn off builtin functions.
cannam@85 18328 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
cannam@85 18329
cannam@85 18330 # Compiler flag to allow reflexive dlopens.
cannam@85 18331 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
cannam@85 18332
cannam@85 18333 # Compiler flag to generate shared objects directly from archives.
cannam@85 18334 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
cannam@85 18335
cannam@85 18336 # Compiler flag to generate thread-safe objects.
cannam@85 18337 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
cannam@85 18338
cannam@85 18339 # Library versioning type.
cannam@85 18340 version_type=$version_type
cannam@85 18341
cannam@85 18342 # Format of library name prefix.
cannam@85 18343 libname_spec=$lt_libname_spec
cannam@85 18344
cannam@85 18345 # List of archive names. First name is the real one, the rest are links.
cannam@85 18346 # The last name is the one that the linker finds with -lNAME.
cannam@85 18347 library_names_spec=$lt_library_names_spec
cannam@85 18348
cannam@85 18349 # The coded name of the library, if different from the real name.
cannam@85 18350 soname_spec=$lt_soname_spec
cannam@85 18351
cannam@85 18352 # Commands used to build and install an old-style archive.
cannam@85 18353 RANLIB=$lt_RANLIB
cannam@85 18354 old_archive_cmds=$lt_old_archive_cmds_GCJ
cannam@85 18355 old_postinstall_cmds=$lt_old_postinstall_cmds
cannam@85 18356 old_postuninstall_cmds=$lt_old_postuninstall_cmds
cannam@85 18357
cannam@85 18358 # Create an old-style archive from a shared archive.
cannam@85 18359 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
cannam@85 18360
cannam@85 18361 # Create a temporary old-style archive to link instead of a shared archive.
cannam@85 18362 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
cannam@85 18363
cannam@85 18364 # Commands used to build and install a shared archive.
cannam@85 18365 archive_cmds=$lt_archive_cmds_GCJ
cannam@85 18366 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
cannam@85 18367 postinstall_cmds=$lt_postinstall_cmds
cannam@85 18368 postuninstall_cmds=$lt_postuninstall_cmds
cannam@85 18369
cannam@85 18370 # Commands used to build a loadable module (assumed same as above if empty)
cannam@85 18371 module_cmds=$lt_module_cmds_GCJ
cannam@85 18372 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
cannam@85 18373
cannam@85 18374 # Commands to strip libraries.
cannam@85 18375 old_striplib=$lt_old_striplib
cannam@85 18376 striplib=$lt_striplib
cannam@85 18377
cannam@85 18378 # Dependencies to place before the objects being linked to create a
cannam@85 18379 # shared library.
cannam@85 18380 predep_objects=$lt_predep_objects_GCJ
cannam@85 18381
cannam@85 18382 # Dependencies to place after the objects being linked to create a
cannam@85 18383 # shared library.
cannam@85 18384 postdep_objects=$lt_postdep_objects_GCJ
cannam@85 18385
cannam@85 18386 # Dependencies to place before the objects being linked to create a
cannam@85 18387 # shared library.
cannam@85 18388 predeps=$lt_predeps_GCJ
cannam@85 18389
cannam@85 18390 # Dependencies to place after the objects being linked to create a
cannam@85 18391 # shared library.
cannam@85 18392 postdeps=$lt_postdeps_GCJ
cannam@85 18393
cannam@85 18394 # The library search path used internally by the compiler when linking
cannam@85 18395 # a shared library.
cannam@85 18396 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
cannam@85 18397
cannam@85 18398 # Method to check whether dependent libraries are shared objects.
cannam@85 18399 deplibs_check_method=$lt_deplibs_check_method
cannam@85 18400
cannam@85 18401 # Command to use when deplibs_check_method == file_magic.
cannam@85 18402 file_magic_cmd=$lt_file_magic_cmd
cannam@85 18403
cannam@85 18404 # Flag that allows shared libraries with undefined symbols to be built.
cannam@85 18405 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
cannam@85 18406
cannam@85 18407 # Flag that forces no undefined symbols.
cannam@85 18408 no_undefined_flag=$lt_no_undefined_flag_GCJ
cannam@85 18409
cannam@85 18410 # Commands used to finish a libtool library installation in a directory.
cannam@85 18411 finish_cmds=$lt_finish_cmds
cannam@85 18412
cannam@85 18413 # Same as above, but a single script fragment to be evaled but not shown.
cannam@85 18414 finish_eval=$lt_finish_eval
cannam@85 18415
cannam@85 18416 # Take the output of nm and produce a listing of raw symbols and C names.
cannam@85 18417 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
cannam@85 18418
cannam@85 18419 # Transform the output of nm in a proper C declaration
cannam@85 18420 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
cannam@85 18421
cannam@85 18422 # Transform the output of nm in a C name address pair
cannam@85 18423 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
cannam@85 18424
cannam@85 18425 # This is the shared library runtime path variable.
cannam@85 18426 runpath_var=$runpath_var
cannam@85 18427
cannam@85 18428 # This is the shared library path variable.
cannam@85 18429 shlibpath_var=$shlibpath_var
cannam@85 18430
cannam@85 18431 # Is shlibpath searched before the hard-coded library search path?
cannam@85 18432 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
cannam@85 18433
cannam@85 18434 # How to hardcode a shared library path into an executable.
cannam@85 18435 hardcode_action=$hardcode_action_GCJ
cannam@85 18436
cannam@85 18437 # Whether we should hardcode library paths into libraries.
cannam@85 18438 hardcode_into_libs=$hardcode_into_libs
cannam@85 18439
cannam@85 18440 # Flag to hardcode \$libdir into a binary during linking.
cannam@85 18441 # This must work even if \$libdir does not exist.
cannam@85 18442 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
cannam@85 18443
cannam@85 18444 # If ld is used when linking, flag to hardcode \$libdir into
cannam@85 18445 # a binary during linking. This must work even if \$libdir does
cannam@85 18446 # not exist.
cannam@85 18447 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
cannam@85 18448
cannam@85 18449 # Whether we need a single -rpath flag with a separated argument.
cannam@85 18450 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
cannam@85 18451
cannam@85 18452 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
cannam@85 18453 # resulting binary.
cannam@85 18454 hardcode_direct=$hardcode_direct_GCJ
cannam@85 18455
cannam@85 18456 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
cannam@85 18457 # resulting binary.
cannam@85 18458 hardcode_minus_L=$hardcode_minus_L_GCJ
cannam@85 18459
cannam@85 18460 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
cannam@85 18461 # the resulting binary.
cannam@85 18462 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
cannam@85 18463
cannam@85 18464 # Set to yes if building a shared library automatically hardcodes DIR into the library
cannam@85 18465 # and all subsequent libraries and executables linked against it.
cannam@85 18466 hardcode_automatic=$hardcode_automatic_GCJ
cannam@85 18467
cannam@85 18468 # Variables whose values should be saved in libtool wrapper scripts and
cannam@85 18469 # restored at relink time.
cannam@85 18470 variables_saved_for_relink="$variables_saved_for_relink"
cannam@85 18471
cannam@85 18472 # Whether libtool must link a program against all its dependency libraries.
cannam@85 18473 link_all_deplibs=$link_all_deplibs_GCJ
cannam@85 18474
cannam@85 18475 # Compile-time system search path for libraries
cannam@85 18476 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
cannam@85 18477
cannam@85 18478 # Run-time system search path for libraries
cannam@85 18479 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
cannam@85 18480
cannam@85 18481 # Fix the shell variable \$srcfile for the compiler.
cannam@85 18482 fix_srcfile_path="$fix_srcfile_path_GCJ"
cannam@85 18483
cannam@85 18484 # Set to yes if exported symbols are required.
cannam@85 18485 always_export_symbols=$always_export_symbols_GCJ
cannam@85 18486
cannam@85 18487 # The commands to list exported symbols.
cannam@85 18488 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
cannam@85 18489
cannam@85 18490 # The commands to extract the exported symbol list from a shared archive.
cannam@85 18491 extract_expsyms_cmds=$lt_extract_expsyms_cmds
cannam@85 18492
cannam@85 18493 # Symbols that should not be listed in the preloaded symbols.
cannam@85 18494 exclude_expsyms=$lt_exclude_expsyms_GCJ
cannam@85 18495
cannam@85 18496 # Symbols that must always be exported.
cannam@85 18497 include_expsyms=$lt_include_expsyms_GCJ
cannam@85 18498
cannam@85 18499 # ### END LIBTOOL TAG CONFIG: $tagname
cannam@85 18500
cannam@85 18501 __EOF__
cannam@85 18502
cannam@85 18503
cannam@85 18504 else
cannam@85 18505 # If there is no Makefile yet, we rely on a make rule to execute
cannam@85 18506 # `config.status --recheck' to rerun these tests and create the
cannam@85 18507 # libtool script then.
cannam@85 18508 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
cannam@85 18509 if test -f "$ltmain_in"; then
cannam@85 18510 test -f Makefile && make "$ltmain"
cannam@85 18511 fi
cannam@85 18512 fi
cannam@85 18513
cannam@85 18514
cannam@85 18515 ac_ext=c
cannam@85 18516 ac_cpp='$CPP $CPPFLAGS'
cannam@85 18517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 18518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 18519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 18520
cannam@85 18521 CC="$lt_save_CC"
cannam@85 18522
cannam@85 18523 else
cannam@85 18524 tagname=""
cannam@85 18525 fi
cannam@85 18526 ;;
cannam@85 18527
cannam@85 18528 RC)
cannam@85 18529
cannam@85 18530
cannam@85 18531
cannam@85 18532 # Source file extension for RC test sources.
cannam@85 18533 ac_ext=rc
cannam@85 18534
cannam@85 18535 # Object file extension for compiled RC test sources.
cannam@85 18536 objext=o
cannam@85 18537 objext_RC=$objext
cannam@85 18538
cannam@85 18539 # Code to be used in simple compile tests
cannam@85 18540 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
cannam@85 18541
cannam@85 18542 # Code to be used in simple link tests
cannam@85 18543 lt_simple_link_test_code="$lt_simple_compile_test_code"
cannam@85 18544
cannam@85 18545 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
cannam@85 18546
cannam@85 18547 # If no C compiler was specified, use CC.
cannam@85 18548 LTCC=${LTCC-"$CC"}
cannam@85 18549
cannam@85 18550 # Allow CC to be a program name with arguments.
cannam@85 18551 compiler=$CC
cannam@85 18552
cannam@85 18553
cannam@85 18554 # Allow CC to be a program name with arguments.
cannam@85 18555 lt_save_CC="$CC"
cannam@85 18556 CC=${RC-"windres"}
cannam@85 18557 compiler=$CC
cannam@85 18558 compiler_RC=$CC
cannam@85 18559 lt_cv_prog_compiler_c_o_RC=yes
cannam@85 18560
cannam@85 18561 # The else clause should only fire when bootstrapping the
cannam@85 18562 # libtool distribution, otherwise you forgot to ship ltmain.sh
cannam@85 18563 # with your package, and you will get complaints that there are
cannam@85 18564 # no rules to generate ltmain.sh.
cannam@85 18565 if test -f "$ltmain"; then
cannam@85 18566 # See if we are running on zsh, and set the options which allow our commands through
cannam@85 18567 # without removal of \ escapes.
cannam@85 18568 if test -n "${ZSH_VERSION+set}" ; then
cannam@85 18569 setopt NO_GLOB_SUBST
cannam@85 18570 fi
cannam@85 18571 # Now quote all the things that may contain metacharacters while being
cannam@85 18572 # careful not to overquote the AC_SUBSTed values. We take copies of the
cannam@85 18573 # variables and quote the copies for generation of the libtool script.
cannam@85 18574 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
cannam@85 18575 SED SHELL STRIP \
cannam@85 18576 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
cannam@85 18577 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
cannam@85 18578 deplibs_check_method reload_flag reload_cmds need_locks \
cannam@85 18579 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
cannam@85 18580 lt_cv_sys_global_symbol_to_c_name_address \
cannam@85 18581 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
cannam@85 18582 old_postinstall_cmds old_postuninstall_cmds \
cannam@85 18583 compiler_RC \
cannam@85 18584 CC_RC \
cannam@85 18585 LD_RC \
cannam@85 18586 lt_prog_compiler_wl_RC \
cannam@85 18587 lt_prog_compiler_pic_RC \
cannam@85 18588 lt_prog_compiler_static_RC \
cannam@85 18589 lt_prog_compiler_no_builtin_flag_RC \
cannam@85 18590 export_dynamic_flag_spec_RC \
cannam@85 18591 thread_safe_flag_spec_RC \
cannam@85 18592 whole_archive_flag_spec_RC \
cannam@85 18593 enable_shared_with_static_runtimes_RC \
cannam@85 18594 old_archive_cmds_RC \
cannam@85 18595 old_archive_from_new_cmds_RC \
cannam@85 18596 predep_objects_RC \
cannam@85 18597 postdep_objects_RC \
cannam@85 18598 predeps_RC \
cannam@85 18599 postdeps_RC \
cannam@85 18600 compiler_lib_search_path_RC \
cannam@85 18601 archive_cmds_RC \
cannam@85 18602 archive_expsym_cmds_RC \
cannam@85 18603 postinstall_cmds_RC \
cannam@85 18604 postuninstall_cmds_RC \
cannam@85 18605 old_archive_from_expsyms_cmds_RC \
cannam@85 18606 allow_undefined_flag_RC \
cannam@85 18607 no_undefined_flag_RC \
cannam@85 18608 export_symbols_cmds_RC \
cannam@85 18609 hardcode_libdir_flag_spec_RC \
cannam@85 18610 hardcode_libdir_flag_spec_ld_RC \
cannam@85 18611 hardcode_libdir_separator_RC \
cannam@85 18612 hardcode_automatic_RC \
cannam@85 18613 module_cmds_RC \
cannam@85 18614 module_expsym_cmds_RC \
cannam@85 18615 lt_cv_prog_compiler_c_o_RC \
cannam@85 18616 exclude_expsyms_RC \
cannam@85 18617 include_expsyms_RC; do
cannam@85 18618
cannam@85 18619 case $var in
cannam@85 18620 old_archive_cmds_RC | \
cannam@85 18621 old_archive_from_new_cmds_RC | \
cannam@85 18622 archive_cmds_RC | \
cannam@85 18623 archive_expsym_cmds_RC | \
cannam@85 18624 module_cmds_RC | \
cannam@85 18625 module_expsym_cmds_RC | \
cannam@85 18626 old_archive_from_expsyms_cmds_RC | \
cannam@85 18627 export_symbols_cmds_RC | \
cannam@85 18628 extract_expsyms_cmds | reload_cmds | finish_cmds | \
cannam@85 18629 postinstall_cmds | postuninstall_cmds | \
cannam@85 18630 old_postinstall_cmds | old_postuninstall_cmds | \
cannam@85 18631 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
cannam@85 18632 # Double-quote double-evaled strings.
cannam@85 18633 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
cannam@85 18634 ;;
cannam@85 18635 *)
cannam@85 18636 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
cannam@85 18637 ;;
cannam@85 18638 esac
cannam@85 18639 done
cannam@85 18640
cannam@85 18641 case $lt_echo in
cannam@85 18642 *'\$0 --fallback-echo"')
cannam@85 18643 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
cannam@85 18644 ;;
cannam@85 18645 esac
cannam@85 18646
cannam@85 18647 cfgfile="$ofile"
cannam@85 18648
cannam@85 18649 cat <<__EOF__ >> "$cfgfile"
cannam@85 18650 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
cannam@85 18651
cannam@85 18652 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
cannam@85 18653
cannam@85 18654 # Shell to use when invoking shell scripts.
cannam@85 18655 SHELL=$lt_SHELL
cannam@85 18656
cannam@85 18657 # Whether or not to build shared libraries.
cannam@85 18658 build_libtool_libs=$enable_shared
cannam@85 18659
cannam@85 18660 # Whether or not to build static libraries.
cannam@85 18661 build_old_libs=$enable_static
cannam@85 18662
cannam@85 18663 # Whether or not to add -lc for building shared libraries.
cannam@85 18664 build_libtool_need_lc=$archive_cmds_need_lc_RC
cannam@85 18665
cannam@85 18666 # Whether or not to disallow shared libs when runtime libs are static
cannam@85 18667 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
cannam@85 18668
cannam@85 18669 # Whether or not to optimize for fast installation.
cannam@85 18670 fast_install=$enable_fast_install
cannam@85 18671
cannam@85 18672 # The host system.
cannam@85 18673 host_alias=$host_alias
cannam@85 18674 host=$host
cannam@85 18675
cannam@85 18676 # An echo program that does not interpret backslashes.
cannam@85 18677 echo=$lt_echo
cannam@85 18678
cannam@85 18679 # The archiver.
cannam@85 18680 AR=$lt_AR
cannam@85 18681 AR_FLAGS=$lt_AR_FLAGS
cannam@85 18682
cannam@85 18683 # A C compiler.
cannam@85 18684 LTCC=$lt_LTCC
cannam@85 18685
cannam@85 18686 # A language-specific compiler.
cannam@85 18687 CC=$lt_compiler_RC
cannam@85 18688
cannam@85 18689 # Is the compiler the GNU C compiler?
cannam@85 18690 with_gcc=$GCC_RC
cannam@85 18691
cannam@85 18692 # An ERE matcher.
cannam@85 18693 EGREP=$lt_EGREP
cannam@85 18694
cannam@85 18695 # The linker used to build libraries.
cannam@85 18696 LD=$lt_LD_RC
cannam@85 18697
cannam@85 18698 # Whether we need hard or soft links.
cannam@85 18699 LN_S=$lt_LN_S
cannam@85 18700
cannam@85 18701 # A BSD-compatible nm program.
cannam@85 18702 NM=$lt_NM
cannam@85 18703
cannam@85 18704 # A symbol stripping program
cannam@85 18705 STRIP=$lt_STRIP
cannam@85 18706
cannam@85 18707 # Used to examine libraries when file_magic_cmd begins "file"
cannam@85 18708 MAGIC_CMD=$MAGIC_CMD
cannam@85 18709
cannam@85 18710 # Used on cygwin: DLL creation program.
cannam@85 18711 DLLTOOL="$DLLTOOL"
cannam@85 18712
cannam@85 18713 # Used on cygwin: object dumper.
cannam@85 18714 OBJDUMP="$OBJDUMP"
cannam@85 18715
cannam@85 18716 # Used on cygwin: assembler.
cannam@85 18717 AS="$AS"
cannam@85 18718
cannam@85 18719 # The name of the directory that contains temporary libtool files.
cannam@85 18720 objdir=$objdir
cannam@85 18721
cannam@85 18722 # How to create reloadable object files.
cannam@85 18723 reload_flag=$lt_reload_flag
cannam@85 18724 reload_cmds=$lt_reload_cmds
cannam@85 18725
cannam@85 18726 # How to pass a linker flag through the compiler.
cannam@85 18727 wl=$lt_lt_prog_compiler_wl_RC
cannam@85 18728
cannam@85 18729 # Object file suffix (normally "o").
cannam@85 18730 objext="$ac_objext"
cannam@85 18731
cannam@85 18732 # Old archive suffix (normally "a").
cannam@85 18733 libext="$libext"
cannam@85 18734
cannam@85 18735 # Shared library suffix (normally ".so").
cannam@85 18736 shrext='$shrext'
cannam@85 18737
cannam@85 18738 # Executable file suffix (normally "").
cannam@85 18739 exeext="$exeext"
cannam@85 18740
cannam@85 18741 # Additional compiler flags for building library objects.
cannam@85 18742 pic_flag=$lt_lt_prog_compiler_pic_RC
cannam@85 18743 pic_mode=$pic_mode
cannam@85 18744
cannam@85 18745 # What is the maximum length of a command?
cannam@85 18746 max_cmd_len=$lt_cv_sys_max_cmd_len
cannam@85 18747
cannam@85 18748 # Does compiler simultaneously support -c and -o options?
cannam@85 18749 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
cannam@85 18750
cannam@85 18751 # Must we lock files when doing compilation ?
cannam@85 18752 need_locks=$lt_need_locks
cannam@85 18753
cannam@85 18754 # Do we need the lib prefix for modules?
cannam@85 18755 need_lib_prefix=$need_lib_prefix
cannam@85 18756
cannam@85 18757 # Do we need a version for libraries?
cannam@85 18758 need_version=$need_version
cannam@85 18759
cannam@85 18760 # Whether dlopen is supported.
cannam@85 18761 dlopen_support=$enable_dlopen
cannam@85 18762
cannam@85 18763 # Whether dlopen of programs is supported.
cannam@85 18764 dlopen_self=$enable_dlopen_self
cannam@85 18765
cannam@85 18766 # Whether dlopen of statically linked programs is supported.
cannam@85 18767 dlopen_self_static=$enable_dlopen_self_static
cannam@85 18768
cannam@85 18769 # Compiler flag to prevent dynamic linking.
cannam@85 18770 link_static_flag=$lt_lt_prog_compiler_static_RC
cannam@85 18771
cannam@85 18772 # Compiler flag to turn off builtin functions.
cannam@85 18773 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
cannam@85 18774
cannam@85 18775 # Compiler flag to allow reflexive dlopens.
cannam@85 18776 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
cannam@85 18777
cannam@85 18778 # Compiler flag to generate shared objects directly from archives.
cannam@85 18779 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
cannam@85 18780
cannam@85 18781 # Compiler flag to generate thread-safe objects.
cannam@85 18782 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
cannam@85 18783
cannam@85 18784 # Library versioning type.
cannam@85 18785 version_type=$version_type
cannam@85 18786
cannam@85 18787 # Format of library name prefix.
cannam@85 18788 libname_spec=$lt_libname_spec
cannam@85 18789
cannam@85 18790 # List of archive names. First name is the real one, the rest are links.
cannam@85 18791 # The last name is the one that the linker finds with -lNAME.
cannam@85 18792 library_names_spec=$lt_library_names_spec
cannam@85 18793
cannam@85 18794 # The coded name of the library, if different from the real name.
cannam@85 18795 soname_spec=$lt_soname_spec
cannam@85 18796
cannam@85 18797 # Commands used to build and install an old-style archive.
cannam@85 18798 RANLIB=$lt_RANLIB
cannam@85 18799 old_archive_cmds=$lt_old_archive_cmds_RC
cannam@85 18800 old_postinstall_cmds=$lt_old_postinstall_cmds
cannam@85 18801 old_postuninstall_cmds=$lt_old_postuninstall_cmds
cannam@85 18802
cannam@85 18803 # Create an old-style archive from a shared archive.
cannam@85 18804 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
cannam@85 18805
cannam@85 18806 # Create a temporary old-style archive to link instead of a shared archive.
cannam@85 18807 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
cannam@85 18808
cannam@85 18809 # Commands used to build and install a shared archive.
cannam@85 18810 archive_cmds=$lt_archive_cmds_RC
cannam@85 18811 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
cannam@85 18812 postinstall_cmds=$lt_postinstall_cmds
cannam@85 18813 postuninstall_cmds=$lt_postuninstall_cmds
cannam@85 18814
cannam@85 18815 # Commands used to build a loadable module (assumed same as above if empty)
cannam@85 18816 module_cmds=$lt_module_cmds_RC
cannam@85 18817 module_expsym_cmds=$lt_module_expsym_cmds_RC
cannam@85 18818
cannam@85 18819 # Commands to strip libraries.
cannam@85 18820 old_striplib=$lt_old_striplib
cannam@85 18821 striplib=$lt_striplib
cannam@85 18822
cannam@85 18823 # Dependencies to place before the objects being linked to create a
cannam@85 18824 # shared library.
cannam@85 18825 predep_objects=$lt_predep_objects_RC
cannam@85 18826
cannam@85 18827 # Dependencies to place after the objects being linked to create a
cannam@85 18828 # shared library.
cannam@85 18829 postdep_objects=$lt_postdep_objects_RC
cannam@85 18830
cannam@85 18831 # Dependencies to place before the objects being linked to create a
cannam@85 18832 # shared library.
cannam@85 18833 predeps=$lt_predeps_RC
cannam@85 18834
cannam@85 18835 # Dependencies to place after the objects being linked to create a
cannam@85 18836 # shared library.
cannam@85 18837 postdeps=$lt_postdeps_RC
cannam@85 18838
cannam@85 18839 # The library search path used internally by the compiler when linking
cannam@85 18840 # a shared library.
cannam@85 18841 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
cannam@85 18842
cannam@85 18843 # Method to check whether dependent libraries are shared objects.
cannam@85 18844 deplibs_check_method=$lt_deplibs_check_method
cannam@85 18845
cannam@85 18846 # Command to use when deplibs_check_method == file_magic.
cannam@85 18847 file_magic_cmd=$lt_file_magic_cmd
cannam@85 18848
cannam@85 18849 # Flag that allows shared libraries with undefined symbols to be built.
cannam@85 18850 allow_undefined_flag=$lt_allow_undefined_flag_RC
cannam@85 18851
cannam@85 18852 # Flag that forces no undefined symbols.
cannam@85 18853 no_undefined_flag=$lt_no_undefined_flag_RC
cannam@85 18854
cannam@85 18855 # Commands used to finish a libtool library installation in a directory.
cannam@85 18856 finish_cmds=$lt_finish_cmds
cannam@85 18857
cannam@85 18858 # Same as above, but a single script fragment to be evaled but not shown.
cannam@85 18859 finish_eval=$lt_finish_eval
cannam@85 18860
cannam@85 18861 # Take the output of nm and produce a listing of raw symbols and C names.
cannam@85 18862 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
cannam@85 18863
cannam@85 18864 # Transform the output of nm in a proper C declaration
cannam@85 18865 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
cannam@85 18866
cannam@85 18867 # Transform the output of nm in a C name address pair
cannam@85 18868 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
cannam@85 18869
cannam@85 18870 # This is the shared library runtime path variable.
cannam@85 18871 runpath_var=$runpath_var
cannam@85 18872
cannam@85 18873 # This is the shared library path variable.
cannam@85 18874 shlibpath_var=$shlibpath_var
cannam@85 18875
cannam@85 18876 # Is shlibpath searched before the hard-coded library search path?
cannam@85 18877 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
cannam@85 18878
cannam@85 18879 # How to hardcode a shared library path into an executable.
cannam@85 18880 hardcode_action=$hardcode_action_RC
cannam@85 18881
cannam@85 18882 # Whether we should hardcode library paths into libraries.
cannam@85 18883 hardcode_into_libs=$hardcode_into_libs
cannam@85 18884
cannam@85 18885 # Flag to hardcode \$libdir into a binary during linking.
cannam@85 18886 # This must work even if \$libdir does not exist.
cannam@85 18887 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
cannam@85 18888
cannam@85 18889 # If ld is used when linking, flag to hardcode \$libdir into
cannam@85 18890 # a binary during linking. This must work even if \$libdir does
cannam@85 18891 # not exist.
cannam@85 18892 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
cannam@85 18893
cannam@85 18894 # Whether we need a single -rpath flag with a separated argument.
cannam@85 18895 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
cannam@85 18896
cannam@85 18897 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
cannam@85 18898 # resulting binary.
cannam@85 18899 hardcode_direct=$hardcode_direct_RC
cannam@85 18900
cannam@85 18901 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
cannam@85 18902 # resulting binary.
cannam@85 18903 hardcode_minus_L=$hardcode_minus_L_RC
cannam@85 18904
cannam@85 18905 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
cannam@85 18906 # the resulting binary.
cannam@85 18907 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
cannam@85 18908
cannam@85 18909 # Set to yes if building a shared library automatically hardcodes DIR into the library
cannam@85 18910 # and all subsequent libraries and executables linked against it.
cannam@85 18911 hardcode_automatic=$hardcode_automatic_RC
cannam@85 18912
cannam@85 18913 # Variables whose values should be saved in libtool wrapper scripts and
cannam@85 18914 # restored at relink time.
cannam@85 18915 variables_saved_for_relink="$variables_saved_for_relink"
cannam@85 18916
cannam@85 18917 # Whether libtool must link a program against all its dependency libraries.
cannam@85 18918 link_all_deplibs=$link_all_deplibs_RC
cannam@85 18919
cannam@85 18920 # Compile-time system search path for libraries
cannam@85 18921 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
cannam@85 18922
cannam@85 18923 # Run-time system search path for libraries
cannam@85 18924 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
cannam@85 18925
cannam@85 18926 # Fix the shell variable \$srcfile for the compiler.
cannam@85 18927 fix_srcfile_path="$fix_srcfile_path_RC"
cannam@85 18928
cannam@85 18929 # Set to yes if exported symbols are required.
cannam@85 18930 always_export_symbols=$always_export_symbols_RC
cannam@85 18931
cannam@85 18932 # The commands to list exported symbols.
cannam@85 18933 export_symbols_cmds=$lt_export_symbols_cmds_RC
cannam@85 18934
cannam@85 18935 # The commands to extract the exported symbol list from a shared archive.
cannam@85 18936 extract_expsyms_cmds=$lt_extract_expsyms_cmds
cannam@85 18937
cannam@85 18938 # Symbols that should not be listed in the preloaded symbols.
cannam@85 18939 exclude_expsyms=$lt_exclude_expsyms_RC
cannam@85 18940
cannam@85 18941 # Symbols that must always be exported.
cannam@85 18942 include_expsyms=$lt_include_expsyms_RC
cannam@85 18943
cannam@85 18944 # ### END LIBTOOL TAG CONFIG: $tagname
cannam@85 18945
cannam@85 18946 __EOF__
cannam@85 18947
cannam@85 18948
cannam@85 18949 else
cannam@85 18950 # If there is no Makefile yet, we rely on a make rule to execute
cannam@85 18951 # `config.status --recheck' to rerun these tests and create the
cannam@85 18952 # libtool script then.
cannam@85 18953 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
cannam@85 18954 if test -f "$ltmain_in"; then
cannam@85 18955 test -f Makefile && make "$ltmain"
cannam@85 18956 fi
cannam@85 18957 fi
cannam@85 18958
cannam@85 18959
cannam@85 18960 ac_ext=c
cannam@85 18961 ac_cpp='$CPP $CPPFLAGS'
cannam@85 18962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 18963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 18964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 18965
cannam@85 18966 CC="$lt_save_CC"
cannam@85 18967
cannam@85 18968 ;;
cannam@85 18969
cannam@85 18970 *)
cannam@85 18971 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
cannam@85 18972 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
cannam@85 18973 { (exit 1); exit 1; }; }
cannam@85 18974 ;;
cannam@85 18975 esac
cannam@85 18976
cannam@85 18977 # Append the new tag name to the list of available tags.
cannam@85 18978 if test -n "$tagname" ; then
cannam@85 18979 available_tags="$available_tags $tagname"
cannam@85 18980 fi
cannam@85 18981 fi
cannam@85 18982 done
cannam@85 18983 IFS="$lt_save_ifs"
cannam@85 18984
cannam@85 18985 # Now substitute the updated list of available tags.
cannam@85 18986 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
cannam@85 18987 mv "${ofile}T" "$ofile"
cannam@85 18988 chmod +x "$ofile"
cannam@85 18989 else
cannam@85 18990 rm -f "${ofile}T"
cannam@85 18991 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
cannam@85 18992 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
cannam@85 18993 { (exit 1); exit 1; }; }
cannam@85 18994 fi
cannam@85 18995 fi
cannam@85 18996
cannam@85 18997
cannam@85 18998
cannam@85 18999 # This can be used to rebuild libtool when needed
cannam@85 19000 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
cannam@85 19001
cannam@85 19002 # Always use our own libtool.
cannam@85 19003 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
cannam@85 19004
cannam@85 19005 # Prevent multiple expansion
cannam@85 19006
cannam@85 19007
cannam@85 19008
cannam@85 19009
cannam@85 19010
cannam@85 19011
cannam@85 19012
cannam@85 19013
cannam@85 19014
cannam@85 19015
cannam@85 19016
cannam@85 19017
cannam@85 19018
cannam@85 19019
cannam@85 19020
cannam@85 19021
cannam@85 19022
cannam@85 19023
cannam@85 19024
cannam@85 19025
cannam@85 19026
cannam@85 19027
cannam@85 19028
cannam@85 19029
cannam@85 19030 arch=""
cannam@85 19031 debug=""
cannam@85 19032 optimize=""
cannam@85 19033 profile=""
cannam@85 19034
cannam@85 19035 set -- $CFLAGS
cannam@85 19036 CFLAGS=""
cannam@85 19037
cannam@85 19038 if test "$GCC" = yes
cannam@85 19039 then
cannam@85 19040 CFLAGS="-Wall"
cannam@85 19041 fi
cannam@85 19042
cannam@85 19043 while test $# -gt 0
cannam@85 19044 do
cannam@85 19045 case "$1" in
cannam@85 19046 -Wall)
cannam@85 19047 if test "$GCC" = yes
cannam@85 19048 then
cannam@85 19049 :
cannam@85 19050 else
cannam@85 19051 CFLAGS="$CFLAGS $1"
cannam@85 19052 fi
cannam@85 19053 shift
cannam@85 19054 ;;
cannam@85 19055 -g)
cannam@85 19056 debug="-g"
cannam@85 19057 shift
cannam@85 19058 ;;
cannam@85 19059 -mno-cygwin)
cannam@85 19060 shift
cannam@85 19061 ;;
cannam@85 19062 -m*)
cannam@85 19063 arch="$arch $1"
cannam@85 19064 shift
cannam@85 19065 ;;
cannam@85 19066 -O2)
cannam@85 19067 optimize="-O"
cannam@85 19068 shift
cannam@85 19069 ;;
cannam@85 19070 -fomit-frame-pointer)
cannam@85 19071 shift
cannam@85 19072 ;;
cannam@85 19073 -O*|-f*)
cannam@85 19074 optimize="$optimize $1"
cannam@85 19075 shift
cannam@85 19076 ;;
cannam@85 19077 *)
cannam@85 19078 CFLAGS="$CFLAGS $1"
cannam@85 19079 shift
cannam@85 19080 ;;
cannam@85 19081 esac
cannam@85 19082 done
cannam@85 19083
cannam@85 19084 if test "$GCC" = yes
cannam@85 19085 then
cannam@85 19086 if test -z "$arch"
cannam@85 19087 then
cannam@85 19088 case "$host" in
cannam@85 19089 i386-*) ;;
cannam@85 19090 i?86-*) arch="-march=i486" ;;
cannam@85 19091 arm*-empeg-*) arch="-march=armv4 -mtune=strongarm1100" ;;
cannam@85 19092 armv4*-*) arch="-march=armv4 -mtune=strongarm" ;;
cannam@85 19093 powerpc-*) ;;
cannam@85 19094 mips*-agenda-*) arch="-mcpu=vr4100" ;;
cannam@85 19095 mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;;
cannam@85 19096 esac
cannam@85 19097 fi
cannam@85 19098
cannam@85 19099 case "$optimize" in
cannam@85 19100 -O|"-O "*)
cannam@85 19101 optimize="-O"
cannam@85 19102 optimize="$optimize -fforce-mem"
cannam@85 19103 optimize="$optimize -fforce-addr"
cannam@85 19104 : #x optimize="$optimize -finline-functions"
cannam@85 19105 : #- optimize="$optimize -fstrength-reduce"
cannam@85 19106 optimize="$optimize -fthread-jumps"
cannam@85 19107 optimize="$optimize -fcse-follow-jumps"
cannam@85 19108 optimize="$optimize -fcse-skip-blocks"
cannam@85 19109 : #x optimize="$optimize -frerun-cse-after-loop"
cannam@85 19110 : #x optimize="$optimize -frerun-loop-opt"
cannam@85 19111 : #x optimize="$optimize -fgcse"
cannam@85 19112 optimize="$optimize -fexpensive-optimizations"
cannam@85 19113 optimize="$optimize -fregmove"
cannam@85 19114 : #* optimize="$optimize -fdelayed-branch"
cannam@85 19115 : #x optimize="$optimize -fschedule-insns"
cannam@85 19116 optimize="$optimize -fschedule-insns2"
cannam@85 19117 : #? optimize="$optimize -ffunction-sections"
cannam@85 19118 : #? optimize="$optimize -fcaller-saves"
cannam@85 19119 : #> optimize="$optimize -funroll-loops"
cannam@85 19120 : #> optimize="$optimize -funroll-all-loops"
cannam@85 19121 : #x optimize="$optimize -fmove-all-movables"
cannam@85 19122 : #x optimize="$optimize -freduce-all-givs"
cannam@85 19123 : #? optimize="$optimize -fstrict-aliasing"
cannam@85 19124 : #* optimize="$optimize -fstructure-noalias"
cannam@85 19125
cannam@85 19126 case "$host" in
cannam@85 19127 arm*-*)
cannam@85 19128 optimize="$optimize -fstrength-reduce"
cannam@85 19129 ;;
cannam@85 19130 mips*-*)
cannam@85 19131 optimize="$optimize -fstrength-reduce"
cannam@85 19132 optimize="$optimize -finline-functions"
cannam@85 19133 ;;
cannam@85 19134 i?86-*)
cannam@85 19135 optimize="$optimize -fstrength-reduce"
cannam@85 19136 ;;
cannam@85 19137 powerpc-apple-*)
cannam@85 19138 # this triggers an internal compiler error with gcc2
cannam@85 19139 : #optimize="$optimize -fstrength-reduce"
cannam@85 19140
cannam@85 19141 # this is really only beneficial with gcc3
cannam@85 19142 : #optimize="$optimize -finline-functions"
cannam@85 19143 ;;
cannam@85 19144 *)
cannam@85 19145 # this sometimes provokes bugs in gcc 2.95.2
cannam@85 19146 : #optimize="$optimize -fstrength-reduce"
cannam@85 19147 ;;
cannam@85 19148 esac
cannam@85 19149 ;;
cannam@85 19150 esac
cannam@85 19151 fi
cannam@85 19152
cannam@85 19153 case "$host" in
cannam@85 19154 mips*-agenda-*)
cannam@85 19155
cannam@85 19156 cat >>confdefs.h <<\_ACEOF
cannam@85 19157 #define HAVE_MADD16_ASM 1
cannam@85 19158 _ACEOF
cannam@85 19159
cannam@85 19160 ;;
cannam@85 19161 mips*-luxsonor-*)
cannam@85 19162
cannam@85 19163 cat >>confdefs.h <<\_ACEOF
cannam@85 19164 #define HAVE_MADD_ASM 1
cannam@85 19165 _ACEOF
cannam@85 19166
cannam@85 19167 ;;
cannam@85 19168 esac
cannam@85 19169
cannam@85 19170
cannam@85 19171 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
cannam@85 19172 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
cannam@85 19173 if test "${ac_cv_header_stdc+set}" = set; then
cannam@85 19174 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 19175 else
cannam@85 19176 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19177 /* confdefs.h. */
cannam@85 19178 _ACEOF
cannam@85 19179 cat confdefs.h >>conftest.$ac_ext
cannam@85 19180 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19181 /* end confdefs.h. */
cannam@85 19182 #include <stdlib.h>
cannam@85 19183 #include <stdarg.h>
cannam@85 19184 #include <string.h>
cannam@85 19185 #include <float.h>
cannam@85 19186
cannam@85 19187 int
cannam@85 19188 main ()
cannam@85 19189 {
cannam@85 19190
cannam@85 19191 ;
cannam@85 19192 return 0;
cannam@85 19193 }
cannam@85 19194 _ACEOF
cannam@85 19195 rm -f conftest.$ac_objext
cannam@85 19196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 19197 (eval $ac_compile) 2>conftest.er1
cannam@85 19198 ac_status=$?
cannam@85 19199 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 19200 rm -f conftest.er1
cannam@85 19201 cat conftest.err >&5
cannam@85 19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19203 (exit $ac_status); } &&
cannam@85 19204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 19205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19206 (eval $ac_try) 2>&5
cannam@85 19207 ac_status=$?
cannam@85 19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19209 (exit $ac_status); }; } &&
cannam@85 19210 { ac_try='test -s conftest.$ac_objext'
cannam@85 19211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19212 (eval $ac_try) 2>&5
cannam@85 19213 ac_status=$?
cannam@85 19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19215 (exit $ac_status); }; }; then
cannam@85 19216 ac_cv_header_stdc=yes
cannam@85 19217 else
cannam@85 19218 echo "$as_me: failed program was:" >&5
cannam@85 19219 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 19220
cannam@85 19221 ac_cv_header_stdc=no
cannam@85 19222 fi
cannam@85 19223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 19224
cannam@85 19225 if test $ac_cv_header_stdc = yes; then
cannam@85 19226 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cannam@85 19227 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19228 /* confdefs.h. */
cannam@85 19229 _ACEOF
cannam@85 19230 cat confdefs.h >>conftest.$ac_ext
cannam@85 19231 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19232 /* end confdefs.h. */
cannam@85 19233 #include <string.h>
cannam@85 19234
cannam@85 19235 _ACEOF
cannam@85 19236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@85 19237 $EGREP "memchr" >/dev/null 2>&1; then
cannam@85 19238 :
cannam@85 19239 else
cannam@85 19240 ac_cv_header_stdc=no
cannam@85 19241 fi
cannam@85 19242 rm -f conftest*
cannam@85 19243
cannam@85 19244 fi
cannam@85 19245
cannam@85 19246 if test $ac_cv_header_stdc = yes; then
cannam@85 19247 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cannam@85 19248 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19249 /* confdefs.h. */
cannam@85 19250 _ACEOF
cannam@85 19251 cat confdefs.h >>conftest.$ac_ext
cannam@85 19252 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19253 /* end confdefs.h. */
cannam@85 19254 #include <stdlib.h>
cannam@85 19255
cannam@85 19256 _ACEOF
cannam@85 19257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@85 19258 $EGREP "free" >/dev/null 2>&1; then
cannam@85 19259 :
cannam@85 19260 else
cannam@85 19261 ac_cv_header_stdc=no
cannam@85 19262 fi
cannam@85 19263 rm -f conftest*
cannam@85 19264
cannam@85 19265 fi
cannam@85 19266
cannam@85 19267 if test $ac_cv_header_stdc = yes; then
cannam@85 19268 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cannam@85 19269 if test "$cross_compiling" = yes; then
cannam@85 19270 :
cannam@85 19271 else
cannam@85 19272 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19273 /* confdefs.h. */
cannam@85 19274 _ACEOF
cannam@85 19275 cat confdefs.h >>conftest.$ac_ext
cannam@85 19276 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19277 /* end confdefs.h. */
cannam@85 19278 #include <ctype.h>
cannam@85 19279 #if ((' ' & 0x0FF) == 0x020)
cannam@85 19280 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
cannam@85 19281 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
cannam@85 19282 #else
cannam@85 19283 # define ISLOWER(c) \
cannam@85 19284 (('a' <= (c) && (c) <= 'i') \
cannam@85 19285 || ('j' <= (c) && (c) <= 'r') \
cannam@85 19286 || ('s' <= (c) && (c) <= 'z'))
cannam@85 19287 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
cannam@85 19288 #endif
cannam@85 19289
cannam@85 19290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
cannam@85 19291 int
cannam@85 19292 main ()
cannam@85 19293 {
cannam@85 19294 int i;
cannam@85 19295 for (i = 0; i < 256; i++)
cannam@85 19296 if (XOR (islower (i), ISLOWER (i))
cannam@85 19297 || toupper (i) != TOUPPER (i))
cannam@85 19298 exit(2);
cannam@85 19299 exit (0);
cannam@85 19300 }
cannam@85 19301 _ACEOF
cannam@85 19302 rm -f conftest$ac_exeext
cannam@85 19303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 19304 (eval $ac_link) 2>&5
cannam@85 19305 ac_status=$?
cannam@85 19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
cannam@85 19308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19309 (eval $ac_try) 2>&5
cannam@85 19310 ac_status=$?
cannam@85 19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19312 (exit $ac_status); }; }; then
cannam@85 19313 :
cannam@85 19314 else
cannam@85 19315 echo "$as_me: program exited with status $ac_status" >&5
cannam@85 19316 echo "$as_me: failed program was:" >&5
cannam@85 19317 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 19318
cannam@85 19319 ( exit $ac_status )
cannam@85 19320 ac_cv_header_stdc=no
cannam@85 19321 fi
cannam@85 19322 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
cannam@85 19323 fi
cannam@85 19324 fi
cannam@85 19325 fi
cannam@85 19326 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
cannam@85 19327 echo "${ECHO_T}$ac_cv_header_stdc" >&6
cannam@85 19328 if test $ac_cv_header_stdc = yes; then
cannam@85 19329
cannam@85 19330 cat >>confdefs.h <<\_ACEOF
cannam@85 19331 #define STDC_HEADERS 1
cannam@85 19332 _ACEOF
cannam@85 19333
cannam@85 19334 fi
cannam@85 19335
cannam@85 19336 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
cannam@85 19337 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
cannam@85 19338 if test "${ac_cv_header_sys_wait_h+set}" = set; then
cannam@85 19339 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 19340 else
cannam@85 19341 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19342 /* confdefs.h. */
cannam@85 19343 _ACEOF
cannam@85 19344 cat confdefs.h >>conftest.$ac_ext
cannam@85 19345 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19346 /* end confdefs.h. */
cannam@85 19347 #include <sys/types.h>
cannam@85 19348 #include <sys/wait.h>
cannam@85 19349 #ifndef WEXITSTATUS
cannam@85 19350 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
cannam@85 19351 #endif
cannam@85 19352 #ifndef WIFEXITED
cannam@85 19353 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
cannam@85 19354 #endif
cannam@85 19355
cannam@85 19356 int
cannam@85 19357 main ()
cannam@85 19358 {
cannam@85 19359 int s;
cannam@85 19360 wait (&s);
cannam@85 19361 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
cannam@85 19362 ;
cannam@85 19363 return 0;
cannam@85 19364 }
cannam@85 19365 _ACEOF
cannam@85 19366 rm -f conftest.$ac_objext
cannam@85 19367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 19368 (eval $ac_compile) 2>conftest.er1
cannam@85 19369 ac_status=$?
cannam@85 19370 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 19371 rm -f conftest.er1
cannam@85 19372 cat conftest.err >&5
cannam@85 19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19374 (exit $ac_status); } &&
cannam@85 19375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 19376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19377 (eval $ac_try) 2>&5
cannam@85 19378 ac_status=$?
cannam@85 19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19380 (exit $ac_status); }; } &&
cannam@85 19381 { ac_try='test -s conftest.$ac_objext'
cannam@85 19382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19383 (eval $ac_try) 2>&5
cannam@85 19384 ac_status=$?
cannam@85 19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19386 (exit $ac_status); }; }; then
cannam@85 19387 ac_cv_header_sys_wait_h=yes
cannam@85 19388 else
cannam@85 19389 echo "$as_me: failed program was:" >&5
cannam@85 19390 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 19391
cannam@85 19392 ac_cv_header_sys_wait_h=no
cannam@85 19393 fi
cannam@85 19394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 19395 fi
cannam@85 19396 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
cannam@85 19397 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
cannam@85 19398 if test $ac_cv_header_sys_wait_h = yes; then
cannam@85 19399
cannam@85 19400 cat >>confdefs.h <<\_ACEOF
cannam@85 19401 #define HAVE_SYS_WAIT_H 1
cannam@85 19402 _ACEOF
cannam@85 19403
cannam@85 19404 fi
cannam@85 19405
cannam@85 19406
cannam@85 19407
cannam@85 19408
cannam@85 19409
cannam@85 19410
cannam@85 19411
cannam@85 19412 for ac_header in assert.h limits.h unistd.h sys/types.h fcntl.h errno.h
cannam@85 19413 do
cannam@85 19414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
cannam@85 19415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
cannam@85 19416 echo "$as_me:$LINENO: checking for $ac_header" >&5
cannam@85 19417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
cannam@85 19418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
cannam@85 19419 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 19420 fi
cannam@85 19421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
cannam@85 19422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
cannam@85 19423 else
cannam@85 19424 # Is the header compilable?
cannam@85 19425 echo "$as_me:$LINENO: checking $ac_header usability" >&5
cannam@85 19426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cannam@85 19427 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19428 /* confdefs.h. */
cannam@85 19429 _ACEOF
cannam@85 19430 cat confdefs.h >>conftest.$ac_ext
cannam@85 19431 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19432 /* end confdefs.h. */
cannam@85 19433 $ac_includes_default
cannam@85 19434 #include <$ac_header>
cannam@85 19435 _ACEOF
cannam@85 19436 rm -f conftest.$ac_objext
cannam@85 19437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 19438 (eval $ac_compile) 2>conftest.er1
cannam@85 19439 ac_status=$?
cannam@85 19440 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 19441 rm -f conftest.er1
cannam@85 19442 cat conftest.err >&5
cannam@85 19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19444 (exit $ac_status); } &&
cannam@85 19445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 19446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19447 (eval $ac_try) 2>&5
cannam@85 19448 ac_status=$?
cannam@85 19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19450 (exit $ac_status); }; } &&
cannam@85 19451 { ac_try='test -s conftest.$ac_objext'
cannam@85 19452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19453 (eval $ac_try) 2>&5
cannam@85 19454 ac_status=$?
cannam@85 19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19456 (exit $ac_status); }; }; then
cannam@85 19457 ac_header_compiler=yes
cannam@85 19458 else
cannam@85 19459 echo "$as_me: failed program was:" >&5
cannam@85 19460 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 19461
cannam@85 19462 ac_header_compiler=no
cannam@85 19463 fi
cannam@85 19464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 19465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
cannam@85 19466 echo "${ECHO_T}$ac_header_compiler" >&6
cannam@85 19467
cannam@85 19468 # Is the header present?
cannam@85 19469 echo "$as_me:$LINENO: checking $ac_header presence" >&5
cannam@85 19470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cannam@85 19471 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19472 /* confdefs.h. */
cannam@85 19473 _ACEOF
cannam@85 19474 cat confdefs.h >>conftest.$ac_ext
cannam@85 19475 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19476 /* end confdefs.h. */
cannam@85 19477 #include <$ac_header>
cannam@85 19478 _ACEOF
cannam@85 19479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
cannam@85 19480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
cannam@85 19481 ac_status=$?
cannam@85 19482 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 19483 rm -f conftest.er1
cannam@85 19484 cat conftest.err >&5
cannam@85 19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19486 (exit $ac_status); } >/dev/null; then
cannam@85 19487 if test -s conftest.err; then
cannam@85 19488 ac_cpp_err=$ac_c_preproc_warn_flag
cannam@85 19489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
cannam@85 19490 else
cannam@85 19491 ac_cpp_err=
cannam@85 19492 fi
cannam@85 19493 else
cannam@85 19494 ac_cpp_err=yes
cannam@85 19495 fi
cannam@85 19496 if test -z "$ac_cpp_err"; then
cannam@85 19497 ac_header_preproc=yes
cannam@85 19498 else
cannam@85 19499 echo "$as_me: failed program was:" >&5
cannam@85 19500 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 19501
cannam@85 19502 ac_header_preproc=no
cannam@85 19503 fi
cannam@85 19504 rm -f conftest.err conftest.$ac_ext
cannam@85 19505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
cannam@85 19506 echo "${ECHO_T}$ac_header_preproc" >&6
cannam@85 19507
cannam@85 19508 # So? What about this header?
cannam@85 19509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
cannam@85 19510 yes:no: )
cannam@85 19511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
cannam@85 19512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
cannam@85 19513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
cannam@85 19514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
cannam@85 19515 ac_header_preproc=yes
cannam@85 19516 ;;
cannam@85 19517 no:yes:* )
cannam@85 19518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
cannam@85 19519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
cannam@85 19520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
cannam@85 19521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
cannam@85 19522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
cannam@85 19523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
cannam@85 19524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
cannam@85 19525 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
cannam@85 19526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
cannam@85 19527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
cannam@85 19528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
cannam@85 19529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
cannam@85 19530 (
cannam@85 19531 cat <<\_ASBOX
cannam@85 19532 ## ----------------------------------- ##
cannam@85 19533 ## Report this to support@underbit.com ##
cannam@85 19534 ## ----------------------------------- ##
cannam@85 19535 _ASBOX
cannam@85 19536 ) |
cannam@85 19537 sed "s/^/$as_me: WARNING: /" >&2
cannam@85 19538 ;;
cannam@85 19539 esac
cannam@85 19540 echo "$as_me:$LINENO: checking for $ac_header" >&5
cannam@85 19541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
cannam@85 19542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
cannam@85 19543 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 19544 else
cannam@85 19545 eval "$as_ac_Header=\$ac_header_preproc"
cannam@85 19546 fi
cannam@85 19547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
cannam@85 19548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
cannam@85 19549
cannam@85 19550 fi
cannam@85 19551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
cannam@85 19552 cat >>confdefs.h <<_ACEOF
cannam@85 19553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
cannam@85 19554 _ACEOF
cannam@85 19555
cannam@85 19556 fi
cannam@85 19557
cannam@85 19558 done
cannam@85 19559
cannam@85 19560
cannam@85 19561
cannam@85 19562 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
cannam@85 19563 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
cannam@85 19564 if test "${ac_cv_c_const+set}" = set; then
cannam@85 19565 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 19566 else
cannam@85 19567 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19568 /* confdefs.h. */
cannam@85 19569 _ACEOF
cannam@85 19570 cat confdefs.h >>conftest.$ac_ext
cannam@85 19571 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19572 /* end confdefs.h. */
cannam@85 19573
cannam@85 19574 int
cannam@85 19575 main ()
cannam@85 19576 {
cannam@85 19577 /* FIXME: Include the comments suggested by Paul. */
cannam@85 19578 #ifndef __cplusplus
cannam@85 19579 /* Ultrix mips cc rejects this. */
cannam@85 19580 typedef int charset[2];
cannam@85 19581 const charset x;
cannam@85 19582 /* SunOS 4.1.1 cc rejects this. */
cannam@85 19583 char const *const *ccp;
cannam@85 19584 char **p;
cannam@85 19585 /* NEC SVR4.0.2 mips cc rejects this. */
cannam@85 19586 struct point {int x, y;};
cannam@85 19587 static struct point const zero = {0,0};
cannam@85 19588 /* AIX XL C 1.02.0.0 rejects this.
cannam@85 19589 It does not let you subtract one const X* pointer from another in
cannam@85 19590 an arm of an if-expression whose if-part is not a constant
cannam@85 19591 expression */
cannam@85 19592 const char *g = "string";
cannam@85 19593 ccp = &g + (g ? g-g : 0);
cannam@85 19594 /* HPUX 7.0 cc rejects these. */
cannam@85 19595 ++ccp;
cannam@85 19596 p = (char**) ccp;
cannam@85 19597 ccp = (char const *const *) p;
cannam@85 19598 { /* SCO 3.2v4 cc rejects this. */
cannam@85 19599 char *t;
cannam@85 19600 char const *s = 0 ? (char *) 0 : (char const *) 0;
cannam@85 19601
cannam@85 19602 *t++ = 0;
cannam@85 19603 }
cannam@85 19604 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
cannam@85 19605 int x[] = {25, 17};
cannam@85 19606 const int *foo = &x[0];
cannam@85 19607 ++foo;
cannam@85 19608 }
cannam@85 19609 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
cannam@85 19610 typedef const int *iptr;
cannam@85 19611 iptr p = 0;
cannam@85 19612 ++p;
cannam@85 19613 }
cannam@85 19614 { /* AIX XL C 1.02.0.0 rejects this saying
cannam@85 19615 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
cannam@85 19616 struct s { int j; const int *ap[3]; };
cannam@85 19617 struct s *b; b->j = 5;
cannam@85 19618 }
cannam@85 19619 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
cannam@85 19620 const int foo = 10;
cannam@85 19621 }
cannam@85 19622 #endif
cannam@85 19623
cannam@85 19624 ;
cannam@85 19625 return 0;
cannam@85 19626 }
cannam@85 19627 _ACEOF
cannam@85 19628 rm -f conftest.$ac_objext
cannam@85 19629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 19630 (eval $ac_compile) 2>conftest.er1
cannam@85 19631 ac_status=$?
cannam@85 19632 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 19633 rm -f conftest.er1
cannam@85 19634 cat conftest.err >&5
cannam@85 19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19636 (exit $ac_status); } &&
cannam@85 19637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 19638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19639 (eval $ac_try) 2>&5
cannam@85 19640 ac_status=$?
cannam@85 19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19642 (exit $ac_status); }; } &&
cannam@85 19643 { ac_try='test -s conftest.$ac_objext'
cannam@85 19644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19645 (eval $ac_try) 2>&5
cannam@85 19646 ac_status=$?
cannam@85 19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19648 (exit $ac_status); }; }; then
cannam@85 19649 ac_cv_c_const=yes
cannam@85 19650 else
cannam@85 19651 echo "$as_me: failed program was:" >&5
cannam@85 19652 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 19653
cannam@85 19654 ac_cv_c_const=no
cannam@85 19655 fi
cannam@85 19656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 19657 fi
cannam@85 19658 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
cannam@85 19659 echo "${ECHO_T}$ac_cv_c_const" >&6
cannam@85 19660 if test $ac_cv_c_const = no; then
cannam@85 19661
cannam@85 19662 cat >>confdefs.h <<\_ACEOF
cannam@85 19663 #define const
cannam@85 19664 _ACEOF
cannam@85 19665
cannam@85 19666 fi
cannam@85 19667
cannam@85 19668 echo "$as_me:$LINENO: checking for inline" >&5
cannam@85 19669 echo $ECHO_N "checking for inline... $ECHO_C" >&6
cannam@85 19670 if test "${ac_cv_c_inline+set}" = set; then
cannam@85 19671 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 19672 else
cannam@85 19673 ac_cv_c_inline=no
cannam@85 19674 for ac_kw in inline __inline__ __inline; do
cannam@85 19675 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19676 /* confdefs.h. */
cannam@85 19677 _ACEOF
cannam@85 19678 cat confdefs.h >>conftest.$ac_ext
cannam@85 19679 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19680 /* end confdefs.h. */
cannam@85 19681 #ifndef __cplusplus
cannam@85 19682 typedef int foo_t;
cannam@85 19683 static $ac_kw foo_t static_foo () {return 0; }
cannam@85 19684 $ac_kw foo_t foo () {return 0; }
cannam@85 19685 #endif
cannam@85 19686
cannam@85 19687 _ACEOF
cannam@85 19688 rm -f conftest.$ac_objext
cannam@85 19689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 19690 (eval $ac_compile) 2>conftest.er1
cannam@85 19691 ac_status=$?
cannam@85 19692 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 19693 rm -f conftest.er1
cannam@85 19694 cat conftest.err >&5
cannam@85 19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19696 (exit $ac_status); } &&
cannam@85 19697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 19698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19699 (eval $ac_try) 2>&5
cannam@85 19700 ac_status=$?
cannam@85 19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19702 (exit $ac_status); }; } &&
cannam@85 19703 { ac_try='test -s conftest.$ac_objext'
cannam@85 19704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19705 (eval $ac_try) 2>&5
cannam@85 19706 ac_status=$?
cannam@85 19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19708 (exit $ac_status); }; }; then
cannam@85 19709 ac_cv_c_inline=$ac_kw; break
cannam@85 19710 else
cannam@85 19711 echo "$as_me: failed program was:" >&5
cannam@85 19712 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 19713
cannam@85 19714 fi
cannam@85 19715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 19716 done
cannam@85 19717
cannam@85 19718 fi
cannam@85 19719 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
cannam@85 19720 echo "${ECHO_T}$ac_cv_c_inline" >&6
cannam@85 19721
cannam@85 19722
cannam@85 19723 case $ac_cv_c_inline in
cannam@85 19724 inline | yes) ;;
cannam@85 19725 *)
cannam@85 19726 case $ac_cv_c_inline in
cannam@85 19727 no) ac_val=;;
cannam@85 19728 *) ac_val=$ac_cv_c_inline;;
cannam@85 19729 esac
cannam@85 19730 cat >>confdefs.h <<_ACEOF
cannam@85 19731 #ifndef __cplusplus
cannam@85 19732 #define inline $ac_val
cannam@85 19733 #endif
cannam@85 19734 _ACEOF
cannam@85 19735 ;;
cannam@85 19736 esac
cannam@85 19737
cannam@85 19738 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
cannam@85 19739 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
cannam@85 19740 if test "${ac_cv_c_bigendian+set}" = set; then
cannam@85 19741 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 19742 else
cannam@85 19743 # See if sys/param.h defines the BYTE_ORDER macro.
cannam@85 19744 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19745 /* confdefs.h. */
cannam@85 19746 _ACEOF
cannam@85 19747 cat confdefs.h >>conftest.$ac_ext
cannam@85 19748 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19749 /* end confdefs.h. */
cannam@85 19750 #include <sys/types.h>
cannam@85 19751 #include <sys/param.h>
cannam@85 19752
cannam@85 19753 int
cannam@85 19754 main ()
cannam@85 19755 {
cannam@85 19756 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
cannam@85 19757 bogus endian macros
cannam@85 19758 #endif
cannam@85 19759
cannam@85 19760 ;
cannam@85 19761 return 0;
cannam@85 19762 }
cannam@85 19763 _ACEOF
cannam@85 19764 rm -f conftest.$ac_objext
cannam@85 19765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 19766 (eval $ac_compile) 2>conftest.er1
cannam@85 19767 ac_status=$?
cannam@85 19768 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 19769 rm -f conftest.er1
cannam@85 19770 cat conftest.err >&5
cannam@85 19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19772 (exit $ac_status); } &&
cannam@85 19773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 19774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19775 (eval $ac_try) 2>&5
cannam@85 19776 ac_status=$?
cannam@85 19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19778 (exit $ac_status); }; } &&
cannam@85 19779 { ac_try='test -s conftest.$ac_objext'
cannam@85 19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19781 (eval $ac_try) 2>&5
cannam@85 19782 ac_status=$?
cannam@85 19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19784 (exit $ac_status); }; }; then
cannam@85 19785 # It does; now see whether it defined to BIG_ENDIAN or not.
cannam@85 19786 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19787 /* confdefs.h. */
cannam@85 19788 _ACEOF
cannam@85 19789 cat confdefs.h >>conftest.$ac_ext
cannam@85 19790 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19791 /* end confdefs.h. */
cannam@85 19792 #include <sys/types.h>
cannam@85 19793 #include <sys/param.h>
cannam@85 19794
cannam@85 19795 int
cannam@85 19796 main ()
cannam@85 19797 {
cannam@85 19798 #if BYTE_ORDER != BIG_ENDIAN
cannam@85 19799 not big endian
cannam@85 19800 #endif
cannam@85 19801
cannam@85 19802 ;
cannam@85 19803 return 0;
cannam@85 19804 }
cannam@85 19805 _ACEOF
cannam@85 19806 rm -f conftest.$ac_objext
cannam@85 19807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 19808 (eval $ac_compile) 2>conftest.er1
cannam@85 19809 ac_status=$?
cannam@85 19810 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 19811 rm -f conftest.er1
cannam@85 19812 cat conftest.err >&5
cannam@85 19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19814 (exit $ac_status); } &&
cannam@85 19815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 19816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19817 (eval $ac_try) 2>&5
cannam@85 19818 ac_status=$?
cannam@85 19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19820 (exit $ac_status); }; } &&
cannam@85 19821 { ac_try='test -s conftest.$ac_objext'
cannam@85 19822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19823 (eval $ac_try) 2>&5
cannam@85 19824 ac_status=$?
cannam@85 19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19826 (exit $ac_status); }; }; then
cannam@85 19827 ac_cv_c_bigendian=yes
cannam@85 19828 else
cannam@85 19829 echo "$as_me: failed program was:" >&5
cannam@85 19830 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 19831
cannam@85 19832 ac_cv_c_bigendian=no
cannam@85 19833 fi
cannam@85 19834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 19835 else
cannam@85 19836 echo "$as_me: failed program was:" >&5
cannam@85 19837 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 19838
cannam@85 19839 # It does not; compile a test program.
cannam@85 19840 if test "$cross_compiling" = yes; then
cannam@85 19841 # try to guess the endianness by grepping values into an object file
cannam@85 19842 ac_cv_c_bigendian=unknown
cannam@85 19843 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19844 /* confdefs.h. */
cannam@85 19845 _ACEOF
cannam@85 19846 cat confdefs.h >>conftest.$ac_ext
cannam@85 19847 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19848 /* end confdefs.h. */
cannam@85 19849 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
cannam@85 19850 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
cannam@85 19851 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
cannam@85 19852 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
cannam@85 19853 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
cannam@85 19854 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
cannam@85 19855 int
cannam@85 19856 main ()
cannam@85 19857 {
cannam@85 19858 _ascii (); _ebcdic ();
cannam@85 19859 ;
cannam@85 19860 return 0;
cannam@85 19861 }
cannam@85 19862 _ACEOF
cannam@85 19863 rm -f conftest.$ac_objext
cannam@85 19864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 19865 (eval $ac_compile) 2>conftest.er1
cannam@85 19866 ac_status=$?
cannam@85 19867 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 19868 rm -f conftest.er1
cannam@85 19869 cat conftest.err >&5
cannam@85 19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19871 (exit $ac_status); } &&
cannam@85 19872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19874 (eval $ac_try) 2>&5
cannam@85 19875 ac_status=$?
cannam@85 19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19877 (exit $ac_status); }; } &&
cannam@85 19878 { ac_try='test -s conftest.$ac_objext'
cannam@85 19879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19880 (eval $ac_try) 2>&5
cannam@85 19881 ac_status=$?
cannam@85 19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19883 (exit $ac_status); }; }; then
cannam@85 19884 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
cannam@85 19885 ac_cv_c_bigendian=yes
cannam@85 19886 fi
cannam@85 19887 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
cannam@85 19888 if test "$ac_cv_c_bigendian" = unknown; then
cannam@85 19889 ac_cv_c_bigendian=no
cannam@85 19890 else
cannam@85 19891 # finding both strings is unlikely to happen, but who knows?
cannam@85 19892 ac_cv_c_bigendian=unknown
cannam@85 19893 fi
cannam@85 19894 fi
cannam@85 19895 else
cannam@85 19896 echo "$as_me: failed program was:" >&5
cannam@85 19897 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 19898
cannam@85 19899 fi
cannam@85 19900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 19901 else
cannam@85 19902 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19903 /* confdefs.h. */
cannam@85 19904 _ACEOF
cannam@85 19905 cat confdefs.h >>conftest.$ac_ext
cannam@85 19906 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19907 /* end confdefs.h. */
cannam@85 19908 int
cannam@85 19909 main ()
cannam@85 19910 {
cannam@85 19911 /* Are we little or big endian? From Harbison&Steele. */
cannam@85 19912 union
cannam@85 19913 {
cannam@85 19914 long l;
cannam@85 19915 char c[sizeof (long)];
cannam@85 19916 } u;
cannam@85 19917 u.l = 1;
cannam@85 19918 exit (u.c[sizeof (long) - 1] == 1);
cannam@85 19919 }
cannam@85 19920 _ACEOF
cannam@85 19921 rm -f conftest$ac_exeext
cannam@85 19922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 19923 (eval $ac_link) 2>&5
cannam@85 19924 ac_status=$?
cannam@85 19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
cannam@85 19927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19928 (eval $ac_try) 2>&5
cannam@85 19929 ac_status=$?
cannam@85 19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19931 (exit $ac_status); }; }; then
cannam@85 19932 ac_cv_c_bigendian=no
cannam@85 19933 else
cannam@85 19934 echo "$as_me: program exited with status $ac_status" >&5
cannam@85 19935 echo "$as_me: failed program was:" >&5
cannam@85 19936 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 19937
cannam@85 19938 ( exit $ac_status )
cannam@85 19939 ac_cv_c_bigendian=yes
cannam@85 19940 fi
cannam@85 19941 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
cannam@85 19942 fi
cannam@85 19943 fi
cannam@85 19944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 19945 fi
cannam@85 19946 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
cannam@85 19947 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
cannam@85 19948 case $ac_cv_c_bigendian in
cannam@85 19949 yes)
cannam@85 19950
cannam@85 19951 cat >>confdefs.h <<\_ACEOF
cannam@85 19952 #define WORDS_BIGENDIAN 1
cannam@85 19953 _ACEOF
cannam@85 19954 ;;
cannam@85 19955 no)
cannam@85 19956 ;;
cannam@85 19957 *)
cannam@85 19958 { { echo "$as_me:$LINENO: error: unknown endianness
cannam@85 19959 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
cannam@85 19960 echo "$as_me: error: unknown endianness
cannam@85 19961 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
cannam@85 19962 { (exit 1); exit 1; }; } ;;
cannam@85 19963 esac
cannam@85 19964
cannam@85 19965 echo "$as_me:$LINENO: checking for pid_t" >&5
cannam@85 19966 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
cannam@85 19967 if test "${ac_cv_type_pid_t+set}" = set; then
cannam@85 19968 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 19969 else
cannam@85 19970 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19971 /* confdefs.h. */
cannam@85 19972 _ACEOF
cannam@85 19973 cat confdefs.h >>conftest.$ac_ext
cannam@85 19974 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19975 /* end confdefs.h. */
cannam@85 19976 $ac_includes_default
cannam@85 19977 int
cannam@85 19978 main ()
cannam@85 19979 {
cannam@85 19980 if ((pid_t *) 0)
cannam@85 19981 return 0;
cannam@85 19982 if (sizeof (pid_t))
cannam@85 19983 return 0;
cannam@85 19984 ;
cannam@85 19985 return 0;
cannam@85 19986 }
cannam@85 19987 _ACEOF
cannam@85 19988 rm -f conftest.$ac_objext
cannam@85 19989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 19990 (eval $ac_compile) 2>conftest.er1
cannam@85 19991 ac_status=$?
cannam@85 19992 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 19993 rm -f conftest.er1
cannam@85 19994 cat conftest.err >&5
cannam@85 19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19996 (exit $ac_status); } &&
cannam@85 19997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19999 (eval $ac_try) 2>&5
cannam@85 20000 ac_status=$?
cannam@85 20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20002 (exit $ac_status); }; } &&
cannam@85 20003 { ac_try='test -s conftest.$ac_objext'
cannam@85 20004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20005 (eval $ac_try) 2>&5
cannam@85 20006 ac_status=$?
cannam@85 20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20008 (exit $ac_status); }; }; then
cannam@85 20009 ac_cv_type_pid_t=yes
cannam@85 20010 else
cannam@85 20011 echo "$as_me: failed program was:" >&5
cannam@85 20012 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 20013
cannam@85 20014 ac_cv_type_pid_t=no
cannam@85 20015 fi
cannam@85 20016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 20017 fi
cannam@85 20018 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
cannam@85 20019 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
cannam@85 20020 if test $ac_cv_type_pid_t = yes; then
cannam@85 20021 :
cannam@85 20022 else
cannam@85 20023
cannam@85 20024 cat >>confdefs.h <<_ACEOF
cannam@85 20025 #define pid_t int
cannam@85 20026 _ACEOF
cannam@85 20027
cannam@85 20028 fi
cannam@85 20029
cannam@85 20030
cannam@85 20031 echo "$as_me:$LINENO: checking for int" >&5
cannam@85 20032 echo $ECHO_N "checking for int... $ECHO_C" >&6
cannam@85 20033 if test "${ac_cv_type_int+set}" = set; then
cannam@85 20034 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 20035 else
cannam@85 20036 cat >conftest.$ac_ext <<_ACEOF
cannam@85 20037 /* confdefs.h. */
cannam@85 20038 _ACEOF
cannam@85 20039 cat confdefs.h >>conftest.$ac_ext
cannam@85 20040 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 20041 /* end confdefs.h. */
cannam@85 20042 $ac_includes_default
cannam@85 20043 int
cannam@85 20044 main ()
cannam@85 20045 {
cannam@85 20046 if ((int *) 0)
cannam@85 20047 return 0;
cannam@85 20048 if (sizeof (int))
cannam@85 20049 return 0;
cannam@85 20050 ;
cannam@85 20051 return 0;
cannam@85 20052 }
cannam@85 20053 _ACEOF
cannam@85 20054 rm -f conftest.$ac_objext
cannam@85 20055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 20056 (eval $ac_compile) 2>conftest.er1
cannam@85 20057 ac_status=$?
cannam@85 20058 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 20059 rm -f conftest.er1
cannam@85 20060 cat conftest.err >&5
cannam@85 20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20062 (exit $ac_status); } &&
cannam@85 20063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 20064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20065 (eval $ac_try) 2>&5
cannam@85 20066 ac_status=$?
cannam@85 20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20068 (exit $ac_status); }; } &&
cannam@85 20069 { ac_try='test -s conftest.$ac_objext'
cannam@85 20070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20071 (eval $ac_try) 2>&5
cannam@85 20072 ac_status=$?
cannam@85 20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20074 (exit $ac_status); }; }; then
cannam@85 20075 ac_cv_type_int=yes
cannam@85 20076 else
cannam@85 20077 echo "$as_me: failed program was:" >&5
cannam@85 20078 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 20079
cannam@85 20080 ac_cv_type_int=no
cannam@85 20081 fi
cannam@85 20082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 20083 fi
cannam@85 20084 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
cannam@85 20085 echo "${ECHO_T}$ac_cv_type_int" >&6
cannam@85 20086
cannam@85 20087 echo "$as_me:$LINENO: checking size of int" >&5
cannam@85 20088 echo $ECHO_N "checking size of int... $ECHO_C" >&6
cannam@85 20089 if test "${ac_cv_sizeof_int+set}" = set; then
cannam@85 20090 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 20091 else
cannam@85 20092 if test "$ac_cv_type_int" = yes; then
cannam@85 20093 # The cast to unsigned long works around a bug in the HP C Compiler
cannam@85 20094 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@85 20095 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@85 20096 # This bug is HP SR number 8606223364.
cannam@85 20097 if test "$cross_compiling" = yes; then
cannam@85 20098 # Depending upon the size, compute the lo and hi bounds.
cannam@85 20099 cat >conftest.$ac_ext <<_ACEOF
cannam@85 20100 /* confdefs.h. */
cannam@85 20101 _ACEOF
cannam@85 20102 cat confdefs.h >>conftest.$ac_ext
cannam@85 20103 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 20104 /* end confdefs.h. */
cannam@85 20105 $ac_includes_default
cannam@85 20106 int
cannam@85 20107 main ()
cannam@85 20108 {
cannam@85 20109 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
cannam@85 20110 test_array [0] = 0
cannam@85 20111
cannam@85 20112 ;
cannam@85 20113 return 0;
cannam@85 20114 }
cannam@85 20115 _ACEOF
cannam@85 20116 rm -f conftest.$ac_objext
cannam@85 20117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 20118 (eval $ac_compile) 2>conftest.er1
cannam@85 20119 ac_status=$?
cannam@85 20120 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 20121 rm -f conftest.er1
cannam@85 20122 cat conftest.err >&5
cannam@85 20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20124 (exit $ac_status); } &&
cannam@85 20125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 20126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20127 (eval $ac_try) 2>&5
cannam@85 20128 ac_status=$?
cannam@85 20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20130 (exit $ac_status); }; } &&
cannam@85 20131 { ac_try='test -s conftest.$ac_objext'
cannam@85 20132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20133 (eval $ac_try) 2>&5
cannam@85 20134 ac_status=$?
cannam@85 20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20136 (exit $ac_status); }; }; then
cannam@85 20137 ac_lo=0 ac_mid=0
cannam@85 20138 while :; do
cannam@85 20139 cat >conftest.$ac_ext <<_ACEOF
cannam@85 20140 /* confdefs.h. */
cannam@85 20141 _ACEOF
cannam@85 20142 cat confdefs.h >>conftest.$ac_ext
cannam@85 20143 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 20144 /* end confdefs.h. */
cannam@85 20145 $ac_includes_default
cannam@85 20146 int
cannam@85 20147 main ()
cannam@85 20148 {
cannam@85 20149 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
cannam@85 20150 test_array [0] = 0
cannam@85 20151
cannam@85 20152 ;
cannam@85 20153 return 0;
cannam@85 20154 }
cannam@85 20155 _ACEOF
cannam@85 20156 rm -f conftest.$ac_objext
cannam@85 20157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 20158 (eval $ac_compile) 2>conftest.er1
cannam@85 20159 ac_status=$?
cannam@85 20160 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 20161 rm -f conftest.er1
cannam@85 20162 cat conftest.err >&5
cannam@85 20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20164 (exit $ac_status); } &&
cannam@85 20165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 20166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20167 (eval $ac_try) 2>&5
cannam@85 20168 ac_status=$?
cannam@85 20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20170 (exit $ac_status); }; } &&
cannam@85 20171 { ac_try='test -s conftest.$ac_objext'
cannam@85 20172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20173 (eval $ac_try) 2>&5
cannam@85 20174 ac_status=$?
cannam@85 20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20176 (exit $ac_status); }; }; then
cannam@85 20177 ac_hi=$ac_mid; break
cannam@85 20178 else
cannam@85 20179 echo "$as_me: failed program was:" >&5
cannam@85 20180 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 20181
cannam@85 20182 ac_lo=`expr $ac_mid + 1`
cannam@85 20183 if test $ac_lo -le $ac_mid; then
cannam@85 20184 ac_lo= ac_hi=
cannam@85 20185 break
cannam@85 20186 fi
cannam@85 20187 ac_mid=`expr 2 '*' $ac_mid + 1`
cannam@85 20188 fi
cannam@85 20189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 20190 done
cannam@85 20191 else
cannam@85 20192 echo "$as_me: failed program was:" >&5
cannam@85 20193 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 20194
cannam@85 20195 cat >conftest.$ac_ext <<_ACEOF
cannam@85 20196 /* confdefs.h. */
cannam@85 20197 _ACEOF
cannam@85 20198 cat confdefs.h >>conftest.$ac_ext
cannam@85 20199 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 20200 /* end confdefs.h. */
cannam@85 20201 $ac_includes_default
cannam@85 20202 int
cannam@85 20203 main ()
cannam@85 20204 {
cannam@85 20205 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
cannam@85 20206 test_array [0] = 0
cannam@85 20207
cannam@85 20208 ;
cannam@85 20209 return 0;
cannam@85 20210 }
cannam@85 20211 _ACEOF
cannam@85 20212 rm -f conftest.$ac_objext
cannam@85 20213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 20214 (eval $ac_compile) 2>conftest.er1
cannam@85 20215 ac_status=$?
cannam@85 20216 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 20217 rm -f conftest.er1
cannam@85 20218 cat conftest.err >&5
cannam@85 20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20220 (exit $ac_status); } &&
cannam@85 20221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 20222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20223 (eval $ac_try) 2>&5
cannam@85 20224 ac_status=$?
cannam@85 20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20226 (exit $ac_status); }; } &&
cannam@85 20227 { ac_try='test -s conftest.$ac_objext'
cannam@85 20228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20229 (eval $ac_try) 2>&5
cannam@85 20230 ac_status=$?
cannam@85 20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20232 (exit $ac_status); }; }; then
cannam@85 20233 ac_hi=-1 ac_mid=-1
cannam@85 20234 while :; do
cannam@85 20235 cat >conftest.$ac_ext <<_ACEOF
cannam@85 20236 /* confdefs.h. */
cannam@85 20237 _ACEOF
cannam@85 20238 cat confdefs.h >>conftest.$ac_ext
cannam@85 20239 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 20240 /* end confdefs.h. */
cannam@85 20241 $ac_includes_default
cannam@85 20242 int
cannam@85 20243 main ()
cannam@85 20244 {
cannam@85 20245 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
cannam@85 20246 test_array [0] = 0
cannam@85 20247
cannam@85 20248 ;
cannam@85 20249 return 0;
cannam@85 20250 }
cannam@85 20251 _ACEOF
cannam@85 20252 rm -f conftest.$ac_objext
cannam@85 20253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 20254 (eval $ac_compile) 2>conftest.er1
cannam@85 20255 ac_status=$?
cannam@85 20256 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 20257 rm -f conftest.er1
cannam@85 20258 cat conftest.err >&5
cannam@85 20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20260 (exit $ac_status); } &&
cannam@85 20261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 20262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20263 (eval $ac_try) 2>&5
cannam@85 20264 ac_status=$?
cannam@85 20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20266 (exit $ac_status); }; } &&
cannam@85 20267 { ac_try='test -s conftest.$ac_objext'
cannam@85 20268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20269 (eval $ac_try) 2>&5
cannam@85 20270 ac_status=$?
cannam@85 20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20272 (exit $ac_status); }; }; then
cannam@85 20273 ac_lo=$ac_mid; break
cannam@85 20274 else
cannam@85 20275 echo "$as_me: failed program was:" >&5
cannam@85 20276 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 20277
cannam@85 20278 ac_hi=`expr '(' $ac_mid ')' - 1`
cannam@85 20279 if test $ac_mid -le $ac_hi; then
cannam@85 20280 ac_lo= ac_hi=
cannam@85 20281 break
cannam@85 20282 fi
cannam@85 20283 ac_mid=`expr 2 '*' $ac_mid`
cannam@85 20284 fi
cannam@85 20285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 20286 done
cannam@85 20287 else
cannam@85 20288 echo "$as_me: failed program was:" >&5
cannam@85 20289 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 20290
cannam@85 20291 ac_lo= ac_hi=
cannam@85 20292 fi
cannam@85 20293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 20294 fi
cannam@85 20295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 20296 # Binary search between lo and hi bounds.
cannam@85 20297 while test "x$ac_lo" != "x$ac_hi"; do
cannam@85 20298 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cannam@85 20299 cat >conftest.$ac_ext <<_ACEOF
cannam@85 20300 /* confdefs.h. */
cannam@85 20301 _ACEOF
cannam@85 20302 cat confdefs.h >>conftest.$ac_ext
cannam@85 20303 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 20304 /* end confdefs.h. */
cannam@85 20305 $ac_includes_default
cannam@85 20306 int
cannam@85 20307 main ()
cannam@85 20308 {
cannam@85 20309 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
cannam@85 20310 test_array [0] = 0
cannam@85 20311
cannam@85 20312 ;
cannam@85 20313 return 0;
cannam@85 20314 }
cannam@85 20315 _ACEOF
cannam@85 20316 rm -f conftest.$ac_objext
cannam@85 20317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 20318 (eval $ac_compile) 2>conftest.er1
cannam@85 20319 ac_status=$?
cannam@85 20320 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 20321 rm -f conftest.er1
cannam@85 20322 cat conftest.err >&5
cannam@85 20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20324 (exit $ac_status); } &&
cannam@85 20325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 20326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20327 (eval $ac_try) 2>&5
cannam@85 20328 ac_status=$?
cannam@85 20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20330 (exit $ac_status); }; } &&
cannam@85 20331 { ac_try='test -s conftest.$ac_objext'
cannam@85 20332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20333 (eval $ac_try) 2>&5
cannam@85 20334 ac_status=$?
cannam@85 20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20336 (exit $ac_status); }; }; then
cannam@85 20337 ac_hi=$ac_mid
cannam@85 20338 else
cannam@85 20339 echo "$as_me: failed program was:" >&5
cannam@85 20340 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 20341
cannam@85 20342 ac_lo=`expr '(' $ac_mid ')' + 1`
cannam@85 20343 fi
cannam@85 20344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 20345 done
cannam@85 20346 case $ac_lo in
cannam@85 20347 ?*) ac_cv_sizeof_int=$ac_lo;;
cannam@85 20348 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
cannam@85 20349 See \`config.log' for more details." >&5
cannam@85 20350 echo "$as_me: error: cannot compute sizeof (int), 77
cannam@85 20351 See \`config.log' for more details." >&2;}
cannam@85 20352 { (exit 1); exit 1; }; } ;;
cannam@85 20353 esac
cannam@85 20354 else
cannam@85 20355 if test "$cross_compiling" = yes; then
cannam@85 20356 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
cannam@85 20357 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
cannam@85 20358 { (exit 1); exit 1; }; }
cannam@85 20359 else
cannam@85 20360 cat >conftest.$ac_ext <<_ACEOF
cannam@85 20361 /* confdefs.h. */
cannam@85 20362 _ACEOF
cannam@85 20363 cat confdefs.h >>conftest.$ac_ext
cannam@85 20364 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 20365 /* end confdefs.h. */
cannam@85 20366 $ac_includes_default
cannam@85 20367 long longval () { return (long) (sizeof (int)); }
cannam@85 20368 unsigned long ulongval () { return (long) (sizeof (int)); }
cannam@85 20369 #include <stdio.h>
cannam@85 20370 #include <stdlib.h>
cannam@85 20371 int
cannam@85 20372 main ()
cannam@85 20373 {
cannam@85 20374
cannam@85 20375 FILE *f = fopen ("conftest.val", "w");
cannam@85 20376 if (! f)
cannam@85 20377 exit (1);
cannam@85 20378 if (((long) (sizeof (int))) < 0)
cannam@85 20379 {
cannam@85 20380 long i = longval ();
cannam@85 20381 if (i != ((long) (sizeof (int))))
cannam@85 20382 exit (1);
cannam@85 20383 fprintf (f, "%ld\n", i);
cannam@85 20384 }
cannam@85 20385 else
cannam@85 20386 {
cannam@85 20387 unsigned long i = ulongval ();
cannam@85 20388 if (i != ((long) (sizeof (int))))
cannam@85 20389 exit (1);
cannam@85 20390 fprintf (f, "%lu\n", i);
cannam@85 20391 }
cannam@85 20392 exit (ferror (f) || fclose (f) != 0);
cannam@85 20393
cannam@85 20394 ;
cannam@85 20395 return 0;
cannam@85 20396 }
cannam@85 20397 _ACEOF
cannam@85 20398 rm -f conftest$ac_exeext
cannam@85 20399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 20400 (eval $ac_link) 2>&5
cannam@85 20401 ac_status=$?
cannam@85 20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
cannam@85 20404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20405 (eval $ac_try) 2>&5
cannam@85 20406 ac_status=$?
cannam@85 20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20408 (exit $ac_status); }; }; then
cannam@85 20409 ac_cv_sizeof_int=`cat conftest.val`
cannam@85 20410 else
cannam@85 20411 echo "$as_me: program exited with status $ac_status" >&5
cannam@85 20412 echo "$as_me: failed program was:" >&5
cannam@85 20413 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 20414
cannam@85 20415 ( exit $ac_status )
cannam@85 20416 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
cannam@85 20417 See \`config.log' for more details." >&5
cannam@85 20418 echo "$as_me: error: cannot compute sizeof (int), 77
cannam@85 20419 See \`config.log' for more details." >&2;}
cannam@85 20420 { (exit 1); exit 1; }; }
cannam@85 20421 fi
cannam@85 20422 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
cannam@85 20423 fi
cannam@85 20424 fi
cannam@85 20425 rm -f conftest.val
cannam@85 20426 else
cannam@85 20427 ac_cv_sizeof_int=0
cannam@85 20428 fi
cannam@85 20429 fi
cannam@85 20430 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
cannam@85 20431 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
cannam@85 20432 cat >>confdefs.h <<_ACEOF
cannam@85 20433 #define SIZEOF_INT $ac_cv_sizeof_int
cannam@85 20434 _ACEOF
cannam@85 20435
cannam@85 20436
cannam@85 20437 echo "$as_me:$LINENO: checking for long" >&5
cannam@85 20438 echo $ECHO_N "checking for long... $ECHO_C" >&6
cannam@85 20439 if test "${ac_cv_type_long+set}" = set; then
cannam@85 20440 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 20441 else
cannam@85 20442 cat >conftest.$ac_ext <<_ACEOF
cannam@85 20443 /* confdefs.h. */
cannam@85 20444 _ACEOF
cannam@85 20445 cat confdefs.h >>conftest.$ac_ext
cannam@85 20446 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 20447 /* end confdefs.h. */
cannam@85 20448 $ac_includes_default
cannam@85 20449 int
cannam@85 20450 main ()
cannam@85 20451 {
cannam@85 20452 if ((long *) 0)
cannam@85 20453 return 0;
cannam@85 20454 if (sizeof (long))
cannam@85 20455 return 0;
cannam@85 20456 ;
cannam@85 20457 return 0;
cannam@85 20458 }
cannam@85 20459 _ACEOF
cannam@85 20460 rm -f conftest.$ac_objext
cannam@85 20461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 20462 (eval $ac_compile) 2>conftest.er1
cannam@85 20463 ac_status=$?
cannam@85 20464 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 20465 rm -f conftest.er1
cannam@85 20466 cat conftest.err >&5
cannam@85 20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20468 (exit $ac_status); } &&
cannam@85 20469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 20470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20471 (eval $ac_try) 2>&5
cannam@85 20472 ac_status=$?
cannam@85 20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20474 (exit $ac_status); }; } &&
cannam@85 20475 { ac_try='test -s conftest.$ac_objext'
cannam@85 20476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20477 (eval $ac_try) 2>&5
cannam@85 20478 ac_status=$?
cannam@85 20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20480 (exit $ac_status); }; }; then
cannam@85 20481 ac_cv_type_long=yes
cannam@85 20482 else
cannam@85 20483 echo "$as_me: failed program was:" >&5
cannam@85 20484 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 20485
cannam@85 20486 ac_cv_type_long=no
cannam@85 20487 fi
cannam@85 20488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 20489 fi
cannam@85 20490 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
cannam@85 20491 echo "${ECHO_T}$ac_cv_type_long" >&6
cannam@85 20492
cannam@85 20493 echo "$as_me:$LINENO: checking size of long" >&5
cannam@85 20494 echo $ECHO_N "checking size of long... $ECHO_C" >&6
cannam@85 20495 if test "${ac_cv_sizeof_long+set}" = set; then
cannam@85 20496 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 20497 else
cannam@85 20498 if test "$ac_cv_type_long" = yes; then
cannam@85 20499 # The cast to unsigned long works around a bug in the HP C Compiler
cannam@85 20500 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@85 20501 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@85 20502 # This bug is HP SR number 8606223364.
cannam@85 20503 if test "$cross_compiling" = yes; then
cannam@85 20504 # Depending upon the size, compute the lo and hi bounds.
cannam@85 20505 cat >conftest.$ac_ext <<_ACEOF
cannam@85 20506 /* confdefs.h. */
cannam@85 20507 _ACEOF
cannam@85 20508 cat confdefs.h >>conftest.$ac_ext
cannam@85 20509 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 20510 /* end confdefs.h. */
cannam@85 20511 $ac_includes_default
cannam@85 20512 int
cannam@85 20513 main ()
cannam@85 20514 {
cannam@85 20515 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
cannam@85 20516 test_array [0] = 0
cannam@85 20517
cannam@85 20518 ;
cannam@85 20519 return 0;
cannam@85 20520 }
cannam@85 20521 _ACEOF
cannam@85 20522 rm -f conftest.$ac_objext
cannam@85 20523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 20524 (eval $ac_compile) 2>conftest.er1
cannam@85 20525 ac_status=$?
cannam@85 20526 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 20527 rm -f conftest.er1
cannam@85 20528 cat conftest.err >&5
cannam@85 20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20530 (exit $ac_status); } &&
cannam@85 20531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 20532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20533 (eval $ac_try) 2>&5
cannam@85 20534 ac_status=$?
cannam@85 20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20536 (exit $ac_status); }; } &&
cannam@85 20537 { ac_try='test -s conftest.$ac_objext'
cannam@85 20538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20539 (eval $ac_try) 2>&5
cannam@85 20540 ac_status=$?
cannam@85 20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20542 (exit $ac_status); }; }; then
cannam@85 20543 ac_lo=0 ac_mid=0
cannam@85 20544 while :; do
cannam@85 20545 cat >conftest.$ac_ext <<_ACEOF
cannam@85 20546 /* confdefs.h. */
cannam@85 20547 _ACEOF
cannam@85 20548 cat confdefs.h >>conftest.$ac_ext
cannam@85 20549 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 20550 /* end confdefs.h. */
cannam@85 20551 $ac_includes_default
cannam@85 20552 int
cannam@85 20553 main ()
cannam@85 20554 {
cannam@85 20555 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
cannam@85 20556 test_array [0] = 0
cannam@85 20557
cannam@85 20558 ;
cannam@85 20559 return 0;
cannam@85 20560 }
cannam@85 20561 _ACEOF
cannam@85 20562 rm -f conftest.$ac_objext
cannam@85 20563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 20564 (eval $ac_compile) 2>conftest.er1
cannam@85 20565 ac_status=$?
cannam@85 20566 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 20567 rm -f conftest.er1
cannam@85 20568 cat conftest.err >&5
cannam@85 20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20570 (exit $ac_status); } &&
cannam@85 20571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 20572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20573 (eval $ac_try) 2>&5
cannam@85 20574 ac_status=$?
cannam@85 20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20576 (exit $ac_status); }; } &&
cannam@85 20577 { ac_try='test -s conftest.$ac_objext'
cannam@85 20578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20579 (eval $ac_try) 2>&5
cannam@85 20580 ac_status=$?
cannam@85 20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20582 (exit $ac_status); }; }; then
cannam@85 20583 ac_hi=$ac_mid; break
cannam@85 20584 else
cannam@85 20585 echo "$as_me: failed program was:" >&5
cannam@85 20586 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 20587
cannam@85 20588 ac_lo=`expr $ac_mid + 1`
cannam@85 20589 if test $ac_lo -le $ac_mid; then
cannam@85 20590 ac_lo= ac_hi=
cannam@85 20591 break
cannam@85 20592 fi
cannam@85 20593 ac_mid=`expr 2 '*' $ac_mid + 1`
cannam@85 20594 fi
cannam@85 20595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 20596 done
cannam@85 20597 else
cannam@85 20598 echo "$as_me: failed program was:" >&5
cannam@85 20599 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 20600
cannam@85 20601 cat >conftest.$ac_ext <<_ACEOF
cannam@85 20602 /* confdefs.h. */
cannam@85 20603 _ACEOF
cannam@85 20604 cat confdefs.h >>conftest.$ac_ext
cannam@85 20605 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 20606 /* end confdefs.h. */
cannam@85 20607 $ac_includes_default
cannam@85 20608 int
cannam@85 20609 main ()
cannam@85 20610 {
cannam@85 20611 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
cannam@85 20612 test_array [0] = 0
cannam@85 20613
cannam@85 20614 ;
cannam@85 20615 return 0;
cannam@85 20616 }
cannam@85 20617 _ACEOF
cannam@85 20618 rm -f conftest.$ac_objext
cannam@85 20619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 20620 (eval $ac_compile) 2>conftest.er1
cannam@85 20621 ac_status=$?
cannam@85 20622 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 20623 rm -f conftest.er1
cannam@85 20624 cat conftest.err >&5
cannam@85 20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20626 (exit $ac_status); } &&
cannam@85 20627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 20628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20629 (eval $ac_try) 2>&5
cannam@85 20630 ac_status=$?
cannam@85 20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20632 (exit $ac_status); }; } &&
cannam@85 20633 { ac_try='test -s conftest.$ac_objext'
cannam@85 20634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20635 (eval $ac_try) 2>&5
cannam@85 20636 ac_status=$?
cannam@85 20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20638 (exit $ac_status); }; }; then
cannam@85 20639 ac_hi=-1 ac_mid=-1
cannam@85 20640 while :; do
cannam@85 20641 cat >conftest.$ac_ext <<_ACEOF
cannam@85 20642 /* confdefs.h. */
cannam@85 20643 _ACEOF
cannam@85 20644 cat confdefs.h >>conftest.$ac_ext
cannam@85 20645 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 20646 /* end confdefs.h. */
cannam@85 20647 $ac_includes_default
cannam@85 20648 int
cannam@85 20649 main ()
cannam@85 20650 {
cannam@85 20651 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
cannam@85 20652 test_array [0] = 0
cannam@85 20653
cannam@85 20654 ;
cannam@85 20655 return 0;
cannam@85 20656 }
cannam@85 20657 _ACEOF
cannam@85 20658 rm -f conftest.$ac_objext
cannam@85 20659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 20660 (eval $ac_compile) 2>conftest.er1
cannam@85 20661 ac_status=$?
cannam@85 20662 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 20663 rm -f conftest.er1
cannam@85 20664 cat conftest.err >&5
cannam@85 20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20666 (exit $ac_status); } &&
cannam@85 20667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 20668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20669 (eval $ac_try) 2>&5
cannam@85 20670 ac_status=$?
cannam@85 20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20672 (exit $ac_status); }; } &&
cannam@85 20673 { ac_try='test -s conftest.$ac_objext'
cannam@85 20674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20675 (eval $ac_try) 2>&5
cannam@85 20676 ac_status=$?
cannam@85 20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20678 (exit $ac_status); }; }; then
cannam@85 20679 ac_lo=$ac_mid; break
cannam@85 20680 else
cannam@85 20681 echo "$as_me: failed program was:" >&5
cannam@85 20682 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 20683
cannam@85 20684 ac_hi=`expr '(' $ac_mid ')' - 1`
cannam@85 20685 if test $ac_mid -le $ac_hi; then
cannam@85 20686 ac_lo= ac_hi=
cannam@85 20687 break
cannam@85 20688 fi
cannam@85 20689 ac_mid=`expr 2 '*' $ac_mid`
cannam@85 20690 fi
cannam@85 20691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 20692 done
cannam@85 20693 else
cannam@85 20694 echo "$as_me: failed program was:" >&5
cannam@85 20695 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 20696
cannam@85 20697 ac_lo= ac_hi=
cannam@85 20698 fi
cannam@85 20699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 20700 fi
cannam@85 20701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 20702 # Binary search between lo and hi bounds.
cannam@85 20703 while test "x$ac_lo" != "x$ac_hi"; do
cannam@85 20704 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cannam@85 20705 cat >conftest.$ac_ext <<_ACEOF
cannam@85 20706 /* confdefs.h. */
cannam@85 20707 _ACEOF
cannam@85 20708 cat confdefs.h >>conftest.$ac_ext
cannam@85 20709 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 20710 /* end confdefs.h. */
cannam@85 20711 $ac_includes_default
cannam@85 20712 int
cannam@85 20713 main ()
cannam@85 20714 {
cannam@85 20715 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
cannam@85 20716 test_array [0] = 0
cannam@85 20717
cannam@85 20718 ;
cannam@85 20719 return 0;
cannam@85 20720 }
cannam@85 20721 _ACEOF
cannam@85 20722 rm -f conftest.$ac_objext
cannam@85 20723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 20724 (eval $ac_compile) 2>conftest.er1
cannam@85 20725 ac_status=$?
cannam@85 20726 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 20727 rm -f conftest.er1
cannam@85 20728 cat conftest.err >&5
cannam@85 20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20730 (exit $ac_status); } &&
cannam@85 20731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 20732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20733 (eval $ac_try) 2>&5
cannam@85 20734 ac_status=$?
cannam@85 20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20736 (exit $ac_status); }; } &&
cannam@85 20737 { ac_try='test -s conftest.$ac_objext'
cannam@85 20738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20739 (eval $ac_try) 2>&5
cannam@85 20740 ac_status=$?
cannam@85 20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20742 (exit $ac_status); }; }; then
cannam@85 20743 ac_hi=$ac_mid
cannam@85 20744 else
cannam@85 20745 echo "$as_me: failed program was:" >&5
cannam@85 20746 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 20747
cannam@85 20748 ac_lo=`expr '(' $ac_mid ')' + 1`
cannam@85 20749 fi
cannam@85 20750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 20751 done
cannam@85 20752 case $ac_lo in
cannam@85 20753 ?*) ac_cv_sizeof_long=$ac_lo;;
cannam@85 20754 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
cannam@85 20755 See \`config.log' for more details." >&5
cannam@85 20756 echo "$as_me: error: cannot compute sizeof (long), 77
cannam@85 20757 See \`config.log' for more details." >&2;}
cannam@85 20758 { (exit 1); exit 1; }; } ;;
cannam@85 20759 esac
cannam@85 20760 else
cannam@85 20761 if test "$cross_compiling" = yes; then
cannam@85 20762 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
cannam@85 20763 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
cannam@85 20764 { (exit 1); exit 1; }; }
cannam@85 20765 else
cannam@85 20766 cat >conftest.$ac_ext <<_ACEOF
cannam@85 20767 /* confdefs.h. */
cannam@85 20768 _ACEOF
cannam@85 20769 cat confdefs.h >>conftest.$ac_ext
cannam@85 20770 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 20771 /* end confdefs.h. */
cannam@85 20772 $ac_includes_default
cannam@85 20773 long longval () { return (long) (sizeof (long)); }
cannam@85 20774 unsigned long ulongval () { return (long) (sizeof (long)); }
cannam@85 20775 #include <stdio.h>
cannam@85 20776 #include <stdlib.h>
cannam@85 20777 int
cannam@85 20778 main ()
cannam@85 20779 {
cannam@85 20780
cannam@85 20781 FILE *f = fopen ("conftest.val", "w");
cannam@85 20782 if (! f)
cannam@85 20783 exit (1);
cannam@85 20784 if (((long) (sizeof (long))) < 0)
cannam@85 20785 {
cannam@85 20786 long i = longval ();
cannam@85 20787 if (i != ((long) (sizeof (long))))
cannam@85 20788 exit (1);
cannam@85 20789 fprintf (f, "%ld\n", i);
cannam@85 20790 }
cannam@85 20791 else
cannam@85 20792 {
cannam@85 20793 unsigned long i = ulongval ();
cannam@85 20794 if (i != ((long) (sizeof (long))))
cannam@85 20795 exit (1);
cannam@85 20796 fprintf (f, "%lu\n", i);
cannam@85 20797 }
cannam@85 20798 exit (ferror (f) || fclose (f) != 0);
cannam@85 20799
cannam@85 20800 ;
cannam@85 20801 return 0;
cannam@85 20802 }
cannam@85 20803 _ACEOF
cannam@85 20804 rm -f conftest$ac_exeext
cannam@85 20805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 20806 (eval $ac_link) 2>&5
cannam@85 20807 ac_status=$?
cannam@85 20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
cannam@85 20810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20811 (eval $ac_try) 2>&5
cannam@85 20812 ac_status=$?
cannam@85 20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20814 (exit $ac_status); }; }; then
cannam@85 20815 ac_cv_sizeof_long=`cat conftest.val`
cannam@85 20816 else
cannam@85 20817 echo "$as_me: program exited with status $ac_status" >&5
cannam@85 20818 echo "$as_me: failed program was:" >&5
cannam@85 20819 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 20820
cannam@85 20821 ( exit $ac_status )
cannam@85 20822 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
cannam@85 20823 See \`config.log' for more details." >&5
cannam@85 20824 echo "$as_me: error: cannot compute sizeof (long), 77
cannam@85 20825 See \`config.log' for more details." >&2;}
cannam@85 20826 { (exit 1); exit 1; }; }
cannam@85 20827 fi
cannam@85 20828 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
cannam@85 20829 fi
cannam@85 20830 fi
cannam@85 20831 rm -f conftest.val
cannam@85 20832 else
cannam@85 20833 ac_cv_sizeof_long=0
cannam@85 20834 fi
cannam@85 20835 fi
cannam@85 20836 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
cannam@85 20837 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
cannam@85 20838 cat >>confdefs.h <<_ACEOF
cannam@85 20839 #define SIZEOF_LONG $ac_cv_sizeof_long
cannam@85 20840 _ACEOF
cannam@85 20841
cannam@85 20842
cannam@85 20843 echo "$as_me:$LINENO: checking for long long" >&5
cannam@85 20844 echo $ECHO_N "checking for long long... $ECHO_C" >&6
cannam@85 20845 if test "${ac_cv_type_long_long+set}" = set; then
cannam@85 20846 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 20847 else
cannam@85 20848 cat >conftest.$ac_ext <<_ACEOF
cannam@85 20849 /* confdefs.h. */
cannam@85 20850 _ACEOF
cannam@85 20851 cat confdefs.h >>conftest.$ac_ext
cannam@85 20852 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 20853 /* end confdefs.h. */
cannam@85 20854 $ac_includes_default
cannam@85 20855 int
cannam@85 20856 main ()
cannam@85 20857 {
cannam@85 20858 if ((long long *) 0)
cannam@85 20859 return 0;
cannam@85 20860 if (sizeof (long long))
cannam@85 20861 return 0;
cannam@85 20862 ;
cannam@85 20863 return 0;
cannam@85 20864 }
cannam@85 20865 _ACEOF
cannam@85 20866 rm -f conftest.$ac_objext
cannam@85 20867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 20868 (eval $ac_compile) 2>conftest.er1
cannam@85 20869 ac_status=$?
cannam@85 20870 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 20871 rm -f conftest.er1
cannam@85 20872 cat conftest.err >&5
cannam@85 20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20874 (exit $ac_status); } &&
cannam@85 20875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 20876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20877 (eval $ac_try) 2>&5
cannam@85 20878 ac_status=$?
cannam@85 20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20880 (exit $ac_status); }; } &&
cannam@85 20881 { ac_try='test -s conftest.$ac_objext'
cannam@85 20882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20883 (eval $ac_try) 2>&5
cannam@85 20884 ac_status=$?
cannam@85 20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20886 (exit $ac_status); }; }; then
cannam@85 20887 ac_cv_type_long_long=yes
cannam@85 20888 else
cannam@85 20889 echo "$as_me: failed program was:" >&5
cannam@85 20890 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 20891
cannam@85 20892 ac_cv_type_long_long=no
cannam@85 20893 fi
cannam@85 20894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 20895 fi
cannam@85 20896 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
cannam@85 20897 echo "${ECHO_T}$ac_cv_type_long_long" >&6
cannam@85 20898
cannam@85 20899 echo "$as_me:$LINENO: checking size of long long" >&5
cannam@85 20900 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
cannam@85 20901 if test "${ac_cv_sizeof_long_long+set}" = set; then
cannam@85 20902 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 20903 else
cannam@85 20904 if test "$ac_cv_type_long_long" = yes; then
cannam@85 20905 # The cast to unsigned long works around a bug in the HP C Compiler
cannam@85 20906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@85 20907 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@85 20908 # This bug is HP SR number 8606223364.
cannam@85 20909 if test "$cross_compiling" = yes; then
cannam@85 20910 # Depending upon the size, compute the lo and hi bounds.
cannam@85 20911 cat >conftest.$ac_ext <<_ACEOF
cannam@85 20912 /* confdefs.h. */
cannam@85 20913 _ACEOF
cannam@85 20914 cat confdefs.h >>conftest.$ac_ext
cannam@85 20915 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 20916 /* end confdefs.h. */
cannam@85 20917 $ac_includes_default
cannam@85 20918 int
cannam@85 20919 main ()
cannam@85 20920 {
cannam@85 20921 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
cannam@85 20922 test_array [0] = 0
cannam@85 20923
cannam@85 20924 ;
cannam@85 20925 return 0;
cannam@85 20926 }
cannam@85 20927 _ACEOF
cannam@85 20928 rm -f conftest.$ac_objext
cannam@85 20929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 20930 (eval $ac_compile) 2>conftest.er1
cannam@85 20931 ac_status=$?
cannam@85 20932 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 20933 rm -f conftest.er1
cannam@85 20934 cat conftest.err >&5
cannam@85 20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20936 (exit $ac_status); } &&
cannam@85 20937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 20938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20939 (eval $ac_try) 2>&5
cannam@85 20940 ac_status=$?
cannam@85 20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20942 (exit $ac_status); }; } &&
cannam@85 20943 { ac_try='test -s conftest.$ac_objext'
cannam@85 20944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20945 (eval $ac_try) 2>&5
cannam@85 20946 ac_status=$?
cannam@85 20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20948 (exit $ac_status); }; }; then
cannam@85 20949 ac_lo=0 ac_mid=0
cannam@85 20950 while :; do
cannam@85 20951 cat >conftest.$ac_ext <<_ACEOF
cannam@85 20952 /* confdefs.h. */
cannam@85 20953 _ACEOF
cannam@85 20954 cat confdefs.h >>conftest.$ac_ext
cannam@85 20955 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 20956 /* end confdefs.h. */
cannam@85 20957 $ac_includes_default
cannam@85 20958 int
cannam@85 20959 main ()
cannam@85 20960 {
cannam@85 20961 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
cannam@85 20962 test_array [0] = 0
cannam@85 20963
cannam@85 20964 ;
cannam@85 20965 return 0;
cannam@85 20966 }
cannam@85 20967 _ACEOF
cannam@85 20968 rm -f conftest.$ac_objext
cannam@85 20969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 20970 (eval $ac_compile) 2>conftest.er1
cannam@85 20971 ac_status=$?
cannam@85 20972 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 20973 rm -f conftest.er1
cannam@85 20974 cat conftest.err >&5
cannam@85 20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20976 (exit $ac_status); } &&
cannam@85 20977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 20978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20979 (eval $ac_try) 2>&5
cannam@85 20980 ac_status=$?
cannam@85 20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20982 (exit $ac_status); }; } &&
cannam@85 20983 { ac_try='test -s conftest.$ac_objext'
cannam@85 20984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 20985 (eval $ac_try) 2>&5
cannam@85 20986 ac_status=$?
cannam@85 20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 20988 (exit $ac_status); }; }; then
cannam@85 20989 ac_hi=$ac_mid; break
cannam@85 20990 else
cannam@85 20991 echo "$as_me: failed program was:" >&5
cannam@85 20992 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 20993
cannam@85 20994 ac_lo=`expr $ac_mid + 1`
cannam@85 20995 if test $ac_lo -le $ac_mid; then
cannam@85 20996 ac_lo= ac_hi=
cannam@85 20997 break
cannam@85 20998 fi
cannam@85 20999 ac_mid=`expr 2 '*' $ac_mid + 1`
cannam@85 21000 fi
cannam@85 21001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 21002 done
cannam@85 21003 else
cannam@85 21004 echo "$as_me: failed program was:" >&5
cannam@85 21005 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 21006
cannam@85 21007 cat >conftest.$ac_ext <<_ACEOF
cannam@85 21008 /* confdefs.h. */
cannam@85 21009 _ACEOF
cannam@85 21010 cat confdefs.h >>conftest.$ac_ext
cannam@85 21011 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 21012 /* end confdefs.h. */
cannam@85 21013 $ac_includes_default
cannam@85 21014 int
cannam@85 21015 main ()
cannam@85 21016 {
cannam@85 21017 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
cannam@85 21018 test_array [0] = 0
cannam@85 21019
cannam@85 21020 ;
cannam@85 21021 return 0;
cannam@85 21022 }
cannam@85 21023 _ACEOF
cannam@85 21024 rm -f conftest.$ac_objext
cannam@85 21025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 21026 (eval $ac_compile) 2>conftest.er1
cannam@85 21027 ac_status=$?
cannam@85 21028 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 21029 rm -f conftest.er1
cannam@85 21030 cat conftest.err >&5
cannam@85 21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 21032 (exit $ac_status); } &&
cannam@85 21033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 21034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 21035 (eval $ac_try) 2>&5
cannam@85 21036 ac_status=$?
cannam@85 21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 21038 (exit $ac_status); }; } &&
cannam@85 21039 { ac_try='test -s conftest.$ac_objext'
cannam@85 21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 21041 (eval $ac_try) 2>&5
cannam@85 21042 ac_status=$?
cannam@85 21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 21044 (exit $ac_status); }; }; then
cannam@85 21045 ac_hi=-1 ac_mid=-1
cannam@85 21046 while :; do
cannam@85 21047 cat >conftest.$ac_ext <<_ACEOF
cannam@85 21048 /* confdefs.h. */
cannam@85 21049 _ACEOF
cannam@85 21050 cat confdefs.h >>conftest.$ac_ext
cannam@85 21051 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 21052 /* end confdefs.h. */
cannam@85 21053 $ac_includes_default
cannam@85 21054 int
cannam@85 21055 main ()
cannam@85 21056 {
cannam@85 21057 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
cannam@85 21058 test_array [0] = 0
cannam@85 21059
cannam@85 21060 ;
cannam@85 21061 return 0;
cannam@85 21062 }
cannam@85 21063 _ACEOF
cannam@85 21064 rm -f conftest.$ac_objext
cannam@85 21065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 21066 (eval $ac_compile) 2>conftest.er1
cannam@85 21067 ac_status=$?
cannam@85 21068 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 21069 rm -f conftest.er1
cannam@85 21070 cat conftest.err >&5
cannam@85 21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 21072 (exit $ac_status); } &&
cannam@85 21073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 21074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 21075 (eval $ac_try) 2>&5
cannam@85 21076 ac_status=$?
cannam@85 21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 21078 (exit $ac_status); }; } &&
cannam@85 21079 { ac_try='test -s conftest.$ac_objext'
cannam@85 21080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 21081 (eval $ac_try) 2>&5
cannam@85 21082 ac_status=$?
cannam@85 21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 21084 (exit $ac_status); }; }; then
cannam@85 21085 ac_lo=$ac_mid; break
cannam@85 21086 else
cannam@85 21087 echo "$as_me: failed program was:" >&5
cannam@85 21088 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 21089
cannam@85 21090 ac_hi=`expr '(' $ac_mid ')' - 1`
cannam@85 21091 if test $ac_mid -le $ac_hi; then
cannam@85 21092 ac_lo= ac_hi=
cannam@85 21093 break
cannam@85 21094 fi
cannam@85 21095 ac_mid=`expr 2 '*' $ac_mid`
cannam@85 21096 fi
cannam@85 21097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 21098 done
cannam@85 21099 else
cannam@85 21100 echo "$as_me: failed program was:" >&5
cannam@85 21101 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 21102
cannam@85 21103 ac_lo= ac_hi=
cannam@85 21104 fi
cannam@85 21105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 21106 fi
cannam@85 21107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 21108 # Binary search between lo and hi bounds.
cannam@85 21109 while test "x$ac_lo" != "x$ac_hi"; do
cannam@85 21110 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cannam@85 21111 cat >conftest.$ac_ext <<_ACEOF
cannam@85 21112 /* confdefs.h. */
cannam@85 21113 _ACEOF
cannam@85 21114 cat confdefs.h >>conftest.$ac_ext
cannam@85 21115 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 21116 /* end confdefs.h. */
cannam@85 21117 $ac_includes_default
cannam@85 21118 int
cannam@85 21119 main ()
cannam@85 21120 {
cannam@85 21121 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
cannam@85 21122 test_array [0] = 0
cannam@85 21123
cannam@85 21124 ;
cannam@85 21125 return 0;
cannam@85 21126 }
cannam@85 21127 _ACEOF
cannam@85 21128 rm -f conftest.$ac_objext
cannam@85 21129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 21130 (eval $ac_compile) 2>conftest.er1
cannam@85 21131 ac_status=$?
cannam@85 21132 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 21133 rm -f conftest.er1
cannam@85 21134 cat conftest.err >&5
cannam@85 21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 21136 (exit $ac_status); } &&
cannam@85 21137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 21138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 21139 (eval $ac_try) 2>&5
cannam@85 21140 ac_status=$?
cannam@85 21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 21142 (exit $ac_status); }; } &&
cannam@85 21143 { ac_try='test -s conftest.$ac_objext'
cannam@85 21144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 21145 (eval $ac_try) 2>&5
cannam@85 21146 ac_status=$?
cannam@85 21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 21148 (exit $ac_status); }; }; then
cannam@85 21149 ac_hi=$ac_mid
cannam@85 21150 else
cannam@85 21151 echo "$as_me: failed program was:" >&5
cannam@85 21152 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 21153
cannam@85 21154 ac_lo=`expr '(' $ac_mid ')' + 1`
cannam@85 21155 fi
cannam@85 21156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 21157 done
cannam@85 21158 case $ac_lo in
cannam@85 21159 ?*) ac_cv_sizeof_long_long=$ac_lo;;
cannam@85 21160 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
cannam@85 21161 See \`config.log' for more details." >&5
cannam@85 21162 echo "$as_me: error: cannot compute sizeof (long long), 77
cannam@85 21163 See \`config.log' for more details." >&2;}
cannam@85 21164 { (exit 1); exit 1; }; } ;;
cannam@85 21165 esac
cannam@85 21166 else
cannam@85 21167 if test "$cross_compiling" = yes; then
cannam@85 21168 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
cannam@85 21169 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
cannam@85 21170 { (exit 1); exit 1; }; }
cannam@85 21171 else
cannam@85 21172 cat >conftest.$ac_ext <<_ACEOF
cannam@85 21173 /* confdefs.h. */
cannam@85 21174 _ACEOF
cannam@85 21175 cat confdefs.h >>conftest.$ac_ext
cannam@85 21176 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 21177 /* end confdefs.h. */
cannam@85 21178 $ac_includes_default
cannam@85 21179 long longval () { return (long) (sizeof (long long)); }
cannam@85 21180 unsigned long ulongval () { return (long) (sizeof (long long)); }
cannam@85 21181 #include <stdio.h>
cannam@85 21182 #include <stdlib.h>
cannam@85 21183 int
cannam@85 21184 main ()
cannam@85 21185 {
cannam@85 21186
cannam@85 21187 FILE *f = fopen ("conftest.val", "w");
cannam@85 21188 if (! f)
cannam@85 21189 exit (1);
cannam@85 21190 if (((long) (sizeof (long long))) < 0)
cannam@85 21191 {
cannam@85 21192 long i = longval ();
cannam@85 21193 if (i != ((long) (sizeof (long long))))
cannam@85 21194 exit (1);
cannam@85 21195 fprintf (f, "%ld\n", i);
cannam@85 21196 }
cannam@85 21197 else
cannam@85 21198 {
cannam@85 21199 unsigned long i = ulongval ();
cannam@85 21200 if (i != ((long) (sizeof (long long))))
cannam@85 21201 exit (1);
cannam@85 21202 fprintf (f, "%lu\n", i);
cannam@85 21203 }
cannam@85 21204 exit (ferror (f) || fclose (f) != 0);
cannam@85 21205
cannam@85 21206 ;
cannam@85 21207 return 0;
cannam@85 21208 }
cannam@85 21209 _ACEOF
cannam@85 21210 rm -f conftest$ac_exeext
cannam@85 21211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 21212 (eval $ac_link) 2>&5
cannam@85 21213 ac_status=$?
cannam@85 21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 21215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
cannam@85 21216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 21217 (eval $ac_try) 2>&5
cannam@85 21218 ac_status=$?
cannam@85 21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 21220 (exit $ac_status); }; }; then
cannam@85 21221 ac_cv_sizeof_long_long=`cat conftest.val`
cannam@85 21222 else
cannam@85 21223 echo "$as_me: program exited with status $ac_status" >&5
cannam@85 21224 echo "$as_me: failed program was:" >&5
cannam@85 21225 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 21226
cannam@85 21227 ( exit $ac_status )
cannam@85 21228 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
cannam@85 21229 See \`config.log' for more details." >&5
cannam@85 21230 echo "$as_me: error: cannot compute sizeof (long long), 77
cannam@85 21231 See \`config.log' for more details." >&2;}
cannam@85 21232 { (exit 1); exit 1; }; }
cannam@85 21233 fi
cannam@85 21234 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
cannam@85 21235 fi
cannam@85 21236 fi
cannam@85 21237 rm -f conftest.val
cannam@85 21238 else
cannam@85 21239 ac_cv_sizeof_long_long=0
cannam@85 21240 fi
cannam@85 21241 fi
cannam@85 21242 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
cannam@85 21243 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
cannam@85 21244 cat >>confdefs.h <<_ACEOF
cannam@85 21245 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
cannam@85 21246 _ACEOF
cannam@85 21247
cannam@85 21248
cannam@85 21249
cannam@85 21250
cannam@85 21251
cannam@85 21252
cannam@85 21253
cannam@85 21254
cannam@85 21255 for ac_func in waitpid fcntl pipe fork
cannam@85 21256 do
cannam@85 21257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
cannam@85 21258 echo "$as_me:$LINENO: checking for $ac_func" >&5
cannam@85 21259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
cannam@85 21260 if eval "test \"\${$as_ac_var+set}\" = set"; then
cannam@85 21261 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 21262 else
cannam@85 21263 cat >conftest.$ac_ext <<_ACEOF
cannam@85 21264 /* confdefs.h. */
cannam@85 21265 _ACEOF
cannam@85 21266 cat confdefs.h >>conftest.$ac_ext
cannam@85 21267 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 21268 /* end confdefs.h. */
cannam@85 21269 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
cannam@85 21270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
cannam@85 21271 #define $ac_func innocuous_$ac_func
cannam@85 21272
cannam@85 21273 /* System header to define __stub macros and hopefully few prototypes,
cannam@85 21274 which can conflict with char $ac_func (); below.
cannam@85 21275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 21276 <limits.h> exists even on freestanding compilers. */
cannam@85 21277
cannam@85 21278 #ifdef __STDC__
cannam@85 21279 # include <limits.h>
cannam@85 21280 #else
cannam@85 21281 # include <assert.h>
cannam@85 21282 #endif
cannam@85 21283
cannam@85 21284 #undef $ac_func
cannam@85 21285
cannam@85 21286 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 21287 #ifdef __cplusplus
cannam@85 21288 extern "C"
cannam@85 21289 {
cannam@85 21290 #endif
cannam@85 21291 /* We use char because int might match the return type of a gcc2
cannam@85 21292 builtin and then its argument prototype would still apply. */
cannam@85 21293 char $ac_func ();
cannam@85 21294 /* The GNU C library defines this for functions which it implements
cannam@85 21295 to always fail with ENOSYS. Some functions are actually named
cannam@85 21296 something starting with __ and the normal name is an alias. */
cannam@85 21297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
cannam@85 21298 choke me
cannam@85 21299 #else
cannam@85 21300 char (*f) () = $ac_func;
cannam@85 21301 #endif
cannam@85 21302 #ifdef __cplusplus
cannam@85 21303 }
cannam@85 21304 #endif
cannam@85 21305
cannam@85 21306 int
cannam@85 21307 main ()
cannam@85 21308 {
cannam@85 21309 return f != $ac_func;
cannam@85 21310 ;
cannam@85 21311 return 0;
cannam@85 21312 }
cannam@85 21313 _ACEOF
cannam@85 21314 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 21315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 21316 (eval $ac_link) 2>conftest.er1
cannam@85 21317 ac_status=$?
cannam@85 21318 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 21319 rm -f conftest.er1
cannam@85 21320 cat conftest.err >&5
cannam@85 21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 21322 (exit $ac_status); } &&
cannam@85 21323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 21324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 21325 (eval $ac_try) 2>&5
cannam@85 21326 ac_status=$?
cannam@85 21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 21328 (exit $ac_status); }; } &&
cannam@85 21329 { ac_try='test -s conftest$ac_exeext'
cannam@85 21330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 21331 (eval $ac_try) 2>&5
cannam@85 21332 ac_status=$?
cannam@85 21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 21334 (exit $ac_status); }; }; then
cannam@85 21335 eval "$as_ac_var=yes"
cannam@85 21336 else
cannam@85 21337 echo "$as_me: failed program was:" >&5
cannam@85 21338 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 21339
cannam@85 21340 eval "$as_ac_var=no"
cannam@85 21341 fi
cannam@85 21342 rm -f conftest.err conftest.$ac_objext \
cannam@85 21343 conftest$ac_exeext conftest.$ac_ext
cannam@85 21344 fi
cannam@85 21345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
cannam@85 21346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
cannam@85 21347 if test `eval echo '${'$as_ac_var'}'` = yes; then
cannam@85 21348 cat >>confdefs.h <<_ACEOF
cannam@85 21349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
cannam@85 21350 _ACEOF
cannam@85 21351
cannam@85 21352 fi
cannam@85 21353 done
cannam@85 21354
cannam@85 21355
cannam@85 21356
cannam@85 21357
cannam@85 21358
cannam@85 21359
cannam@85 21360
cannam@85 21361
cannam@85 21362 cat >confcache <<\_ACEOF
cannam@85 21363 # This file is a shell script that caches the results of configure
cannam@85 21364 # tests run on this system so they can be shared between configure
cannam@85 21365 # scripts and configure runs, see configure's option --config-cache.
cannam@85 21366 # It is not useful on other systems. If it contains results you don't
cannam@85 21367 # want to keep, you may remove or edit it.
cannam@85 21368 #
cannam@85 21369 # config.status only pays attention to the cache file if you give it
cannam@85 21370 # the --recheck option to rerun configure.
cannam@85 21371 #
cannam@85 21372 # `ac_cv_env_foo' variables (set or unset) will be overridden when
cannam@85 21373 # loading this file, other *unset* `ac_cv_foo' will be assigned the
cannam@85 21374 # following values.
cannam@85 21375
cannam@85 21376 _ACEOF
cannam@85 21377
cannam@85 21378 # The following way of writing the cache mishandles newlines in values,
cannam@85 21379 # but we know of no workaround that is simple, portable, and efficient.
cannam@85 21380 # So, don't put newlines in cache variables' values.
cannam@85 21381 # Ultrix sh set writes to stderr and can't be redirected directly,
cannam@85 21382 # and sets the high bit in the cache file unless we assign to the vars.
cannam@85 21383 {
cannam@85 21384 (set) 2>&1 |
cannam@85 21385 case `(ac_space=' '; set | grep ac_space) 2>&1` in
cannam@85 21386 *ac_space=\ *)
cannam@85 21387 # `set' does not quote correctly, so add quotes (double-quote
cannam@85 21388 # substitution turns \\\\ into \\, and sed turns \\ into \).
cannam@85 21389 sed -n \
cannam@85 21390 "s/'/'\\\\''/g;
cannam@85 21391 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cannam@85 21392 ;;
cannam@85 21393 *)
cannam@85 21394 # `set' quotes correctly as required by POSIX, so do not add quotes.
cannam@85 21395 sed -n \
cannam@85 21396 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
cannam@85 21397 ;;
cannam@85 21398 esac;
cannam@85 21399 } |
cannam@85 21400 sed '
cannam@85 21401 t clear
cannam@85 21402 : clear
cannam@85 21403 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
cannam@85 21404 t end
cannam@85 21405 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
cannam@85 21406 : end' >>confcache
cannam@85 21407 if diff $cache_file confcache >/dev/null 2>&1; then :; else
cannam@85 21408 if test -w $cache_file; then
cannam@85 21409 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
cannam@85 21410 cat confcache >$cache_file
cannam@85 21411 else
cannam@85 21412 echo "not updating unwritable cache $cache_file"
cannam@85 21413 fi
cannam@85 21414 fi
cannam@85 21415 rm -f confcache
cannam@85 21416
cannam@85 21417 echo "$as_me:$LINENO: checking whether to optimize for speed or for accuracy" >&5
cannam@85 21418 echo $ECHO_N "checking whether to optimize for speed or for accuracy... $ECHO_C" >&6
cannam@85 21419
cannam@85 21420 # Check whether --enable-speed or --disable-speed was given.
cannam@85 21421 if test "${enable_speed+set}" = set; then
cannam@85 21422 enableval="$enable_speed"
cannam@85 21423
cannam@85 21424 case "$enableval" in
cannam@85 21425 yes)
cannam@85 21426 optimize_for="speed"
cannam@85 21427
cannam@85 21428 cat >>confdefs.h <<\_ACEOF
cannam@85 21429 #define OPT_SPEED 1
cannam@85 21430 _ACEOF
cannam@85 21431
cannam@85 21432 ;;
cannam@85 21433 esac
cannam@85 21434
cannam@85 21435 fi;
cannam@85 21436
cannam@85 21437 # Check whether --enable-accuracy or --disable-accuracy was given.
cannam@85 21438 if test "${enable_accuracy+set}" = set; then
cannam@85 21439 enableval="$enable_accuracy"
cannam@85 21440
cannam@85 21441 case "$enableval" in
cannam@85 21442 yes)
cannam@85 21443 if test "$optimize_for" = "speed"
cannam@85 21444 then
cannam@85 21445 optimize_for="both"
cannam@85 21446 else
cannam@85 21447 optimize_for="accuracy"
cannam@85 21448 fi
cannam@85 21449
cannam@85 21450 cat >>confdefs.h <<\_ACEOF
cannam@85 21451 #define OPT_ACCURACY 1
cannam@85 21452 _ACEOF
cannam@85 21453
cannam@85 21454 ;;
cannam@85 21455 esac
cannam@85 21456
cannam@85 21457 fi;
cannam@85 21458
cannam@85 21459 echo "$as_me:$LINENO: result: ${optimize_for-default}" >&5
cannam@85 21460 echo "${ECHO_T}${optimize_for-default}" >&6
cannam@85 21461
cannam@85 21462 if test "$optimize_for" = "both"
cannam@85 21463 then
cannam@85 21464 { { echo "$as_me:$LINENO: error: cannot optimize for both speed and accuracy" >&5
cannam@85 21465 echo "$as_me: error: cannot optimize for both speed and accuracy" >&2;}
cannam@85 21466 { (exit 1); exit 1; }; }
cannam@85 21467 fi
cannam@85 21468
cannam@85 21469 echo "$as_me:$LINENO: checking for architecture-specific fixed-point math routines" >&5
cannam@85 21470 echo $ECHO_N "checking for architecture-specific fixed-point math routines... $ECHO_C" >&6
cannam@85 21471 # Check whether --enable-fpm or --disable-fpm was given.
cannam@85 21472 if test "${enable_fpm+set}" = set; then
cannam@85 21473 enableval="$enable_fpm"
cannam@85 21474
cannam@85 21475 case "$enableval" in
cannam@85 21476 yes) ;;
cannam@85 21477 no|default|approx) FPM="DEFAULT" ;;
cannam@85 21478 intel|i?86) FPM="INTEL" ;;
cannam@85 21479 arm) FPM="ARM" ;;
cannam@85 21480 mips) FPM="MIPS" ;;
cannam@85 21481 sparc) FPM="SPARC" ;;
cannam@85 21482 ppc|powerpc) FPM="PPC" ;;
cannam@85 21483 64bit) FPM="64BIT" ;;
cannam@85 21484 float) FPM="FLOAT" ;;
cannam@85 21485 *)
cannam@85 21486 echo "$as_me:$LINENO: result: failed" >&5
cannam@85 21487 echo "${ECHO_T}failed" >&6
cannam@85 21488 { { echo "$as_me:$LINENO: error: bad --enable-fpm option" >&5
cannam@85 21489 echo "$as_me: error: bad --enable-fpm option" >&2;}
cannam@85 21490 { (exit 1); exit 1; }; }
cannam@85 21491 ;;
cannam@85 21492 esac
cannam@85 21493
cannam@85 21494 fi;
cannam@85 21495
cannam@85 21496 if test -z "$FPM" && test "$GCC" = yes
cannam@85 21497 then
cannam@85 21498 case "$host" in
cannam@85 21499 i?86-*) FPM="INTEL" ;;
cannam@85 21500 arm*-*) FPM="ARM" ;;
cannam@85 21501 mips*-*) FPM="MIPS" ;;
cannam@85 21502 sparc*-*) FPM="SPARC" ;;
cannam@85 21503 powerpc*-*) FPM="PPC" ;;
cannam@85 21504 # FIXME: need to test for 64-bit long long...
cannam@85 21505 esac
cannam@85 21506 fi
cannam@85 21507
cannam@85 21508 echo "$as_me:$LINENO: result: ${FPM=DEFAULT}" >&5
cannam@85 21509 echo "${ECHO_T}${FPM=DEFAULT}" >&6
cannam@85 21510
cannam@85 21511 if test "$FPM" = "DEFAULT"
cannam@85 21512 then
cannam@85 21513 { echo "$as_me:$LINENO: WARNING: default fixed-point math will yield limited accuracy" >&5
cannam@85 21514 echo "$as_me: WARNING: default fixed-point math will yield limited accuracy" >&2;}
cannam@85 21515 fi
cannam@85 21516
cannam@85 21517 FPM="-DFPM_$FPM"
cannam@85 21518
cannam@85 21519 # Check whether --enable-sso or --disable-sso was given.
cannam@85 21520 if test "${enable_sso+set}" = set; then
cannam@85 21521 enableval="$enable_sso"
cannam@85 21522
cannam@85 21523 case "$enableval" in
cannam@85 21524 yes)
cannam@85 21525
cannam@85 21526 cat >>confdefs.h <<\_ACEOF
cannam@85 21527 #define OPT_SSO 1
cannam@85 21528 _ACEOF
cannam@85 21529
cannam@85 21530 ;;
cannam@85 21531 esac
cannam@85 21532
cannam@85 21533 fi;
cannam@85 21534
cannam@85 21535 # Check whether --enable-aso or --disable-aso was given.
cannam@85 21536 if test "${enable_aso+set}" = set; then
cannam@85 21537 enableval="$enable_aso"
cannam@85 21538
cannam@85 21539 else
cannam@85 21540 enable_aso=yes
cannam@85 21541 fi;
cannam@85 21542
cannam@85 21543 if test "$enable_aso" = yes
cannam@85 21544 then
cannam@85 21545 case "$host" in
cannam@85 21546 i?86-*)
cannam@85 21547 : #ASO="$ASO -DASO_INTERLEAVE1"
cannam@85 21548 ASO="$ASO -DASO_ZEROCHECK"
cannam@85 21549 : #not yet #ASO="$ASO -DASO_SYNTH"
cannam@85 21550 : #not yet #ASO_OBJS="synth_mmx.lo"
cannam@85 21551 ;;
cannam@85 21552 arm*-*)
cannam@85 21553 ASO="$ASO -DASO_INTERLEAVE1"
cannam@85 21554 ASO="$ASO -DASO_IMDCT"
cannam@85 21555 ASO_OBJS="imdct_l_arm.lo"
cannam@85 21556 ;;
cannam@85 21557 mips*-*)
cannam@85 21558 ASO="$ASO -DASO_INTERLEAVE2"
cannam@85 21559 ASO="$ASO -DASO_ZEROCHECK"
cannam@85 21560 ;;
cannam@85 21561 esac
cannam@85 21562 fi
cannam@85 21563
cannam@85 21564 echo "$as_me:$LINENO: checking for ISO/IEC interpretation" >&5
cannam@85 21565 echo $ECHO_N "checking for ISO/IEC interpretation... $ECHO_C" >&6
cannam@85 21566 # Check whether --enable-strict-iso or --disable-strict-iso was given.
cannam@85 21567 if test "${enable_strict_iso+set}" = set; then
cannam@85 21568 enableval="$enable_strict_iso"
cannam@85 21569
cannam@85 21570 case "$enableval" in
cannam@85 21571 yes)
cannam@85 21572
cannam@85 21573 cat >>confdefs.h <<\_ACEOF
cannam@85 21574 #define OPT_STRICT 1
cannam@85 21575 _ACEOF
cannam@85 21576
cannam@85 21577 interpretation="strict"
cannam@85 21578 ;;
cannam@85 21579 esac
cannam@85 21580
cannam@85 21581 fi;
cannam@85 21582 echo "$as_me:$LINENO: result: ${interpretation-best accepted practices}" >&5
cannam@85 21583 echo "${ECHO_T}${interpretation-best accepted practices}" >&6
cannam@85 21584
cannam@85 21585 echo "$as_me:$LINENO: checking whether to enable profiling" >&5
cannam@85 21586 echo $ECHO_N "checking whether to enable profiling... $ECHO_C" >&6
cannam@85 21587 # Check whether --enable-profiling or --disable-profiling was given.
cannam@85 21588 if test "${enable_profiling+set}" = set; then
cannam@85 21589 enableval="$enable_profiling"
cannam@85 21590
cannam@85 21591 case "$enableval" in
cannam@85 21592 yes) profile="-pg" ;;
cannam@85 21593 esac
cannam@85 21594
cannam@85 21595 fi;
cannam@85 21596 echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
cannam@85 21597 echo "${ECHO_T}${enable_profiling-no}" >&6
cannam@85 21598
cannam@85 21599 echo "$as_me:$LINENO: checking whether to enable debugging" >&5
cannam@85 21600 echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6
cannam@85 21601 # Check whether --enable-debugging or --disable-debugging was given.
cannam@85 21602 if test "${enable_debugging+set}" = set; then
cannam@85 21603 enableval="$enable_debugging"
cannam@85 21604
cannam@85 21605 case "$enableval" in
cannam@85 21606 yes)
cannam@85 21607
cannam@85 21608 cat >>confdefs.h <<\_ACEOF
cannam@85 21609 #define DEBUG 1
cannam@85 21610 _ACEOF
cannam@85 21611
cannam@85 21612 optimize=""
cannam@85 21613 ;;
cannam@85 21614 no)
cannam@85 21615 if test -n "$profile"
cannam@85 21616 then
cannam@85 21617 { { echo "$as_me:$LINENO: error: --enable-profiling and --disable-debugging are incompatible" >&5
cannam@85 21618 echo "$as_me: error: --enable-profiling and --disable-debugging are incompatible" >&2;}
cannam@85 21619 { (exit 1); exit 1; }; }
cannam@85 21620 fi
cannam@85 21621
cannam@85 21622
cannam@85 21623 cat >>confdefs.h <<\_ACEOF
cannam@85 21624 #define NDEBUG 1
cannam@85 21625 _ACEOF
cannam@85 21626
cannam@85 21627 debug=""
cannam@85 21628 if test "$GCC" = yes
cannam@85 21629 then
cannam@85 21630 optimize="$optimize -fomit-frame-pointer"
cannam@85 21631 fi
cannam@85 21632 ;;
cannam@85 21633 esac
cannam@85 21634
cannam@85 21635 fi;
cannam@85 21636 echo "$as_me:$LINENO: result: ${enable_debugging-default}" >&5
cannam@85 21637 echo "${ECHO_T}${enable_debugging-default}" >&6
cannam@85 21638
cannam@85 21639 echo "$as_me:$LINENO: checking whether to enable experimental code" >&5
cannam@85 21640 echo $ECHO_N "checking whether to enable experimental code... $ECHO_C" >&6
cannam@85 21641 # Check whether --enable-experimental or --disable-experimental was given.
cannam@85 21642 if test "${enable_experimental+set}" = set; then
cannam@85 21643 enableval="$enable_experimental"
cannam@85 21644
cannam@85 21645 case "$enableval" in
cannam@85 21646 yes)
cannam@85 21647
cannam@85 21648 cat >>confdefs.h <<\_ACEOF
cannam@85 21649 #define EXPERIMENTAL 1
cannam@85 21650 _ACEOF
cannam@85 21651
cannam@85 21652 ;;
cannam@85 21653 esac
cannam@85 21654
cannam@85 21655 fi;
cannam@85 21656 echo "$as_me:$LINENO: result: ${enable_experimental-no}" >&5
cannam@85 21657 echo "${ECHO_T}${enable_experimental-no}" >&6
cannam@85 21658
cannam@85 21659
cannam@85 21660 test -n "$arch" && CFLAGS="$CFLAGS $arch"
cannam@85 21661 test -n "$debug" && CFLAGS="$CFLAGS $debug"
cannam@85 21662 test -n "$optimize" && CFLAGS="$CFLAGS $optimize"
cannam@85 21663 test -n "$profile" && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
cannam@85 21664
cannam@85 21665
cannam@85 21666 ac_config_files="$ac_config_files Makefile msvc++/Makefile libmad.list"
cannam@85 21667
cannam@85 21668 cat >confcache <<\_ACEOF
cannam@85 21669 # This file is a shell script that caches the results of configure
cannam@85 21670 # tests run on this system so they can be shared between configure
cannam@85 21671 # scripts and configure runs, see configure's option --config-cache.
cannam@85 21672 # It is not useful on other systems. If it contains results you don't
cannam@85 21673 # want to keep, you may remove or edit it.
cannam@85 21674 #
cannam@85 21675 # config.status only pays attention to the cache file if you give it
cannam@85 21676 # the --recheck option to rerun configure.
cannam@85 21677 #
cannam@85 21678 # `ac_cv_env_foo' variables (set or unset) will be overridden when
cannam@85 21679 # loading this file, other *unset* `ac_cv_foo' will be assigned the
cannam@85 21680 # following values.
cannam@85 21681
cannam@85 21682 _ACEOF
cannam@85 21683
cannam@85 21684 # The following way of writing the cache mishandles newlines in values,
cannam@85 21685 # but we know of no workaround that is simple, portable, and efficient.
cannam@85 21686 # So, don't put newlines in cache variables' values.
cannam@85 21687 # Ultrix sh set writes to stderr and can't be redirected directly,
cannam@85 21688 # and sets the high bit in the cache file unless we assign to the vars.
cannam@85 21689 {
cannam@85 21690 (set) 2>&1 |
cannam@85 21691 case `(ac_space=' '; set | grep ac_space) 2>&1` in
cannam@85 21692 *ac_space=\ *)
cannam@85 21693 # `set' does not quote correctly, so add quotes (double-quote
cannam@85 21694 # substitution turns \\\\ into \\, and sed turns \\ into \).
cannam@85 21695 sed -n \
cannam@85 21696 "s/'/'\\\\''/g;
cannam@85 21697 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cannam@85 21698 ;;
cannam@85 21699 *)
cannam@85 21700 # `set' quotes correctly as required by POSIX, so do not add quotes.
cannam@85 21701 sed -n \
cannam@85 21702 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
cannam@85 21703 ;;
cannam@85 21704 esac;
cannam@85 21705 } |
cannam@85 21706 sed '
cannam@85 21707 t clear
cannam@85 21708 : clear
cannam@85 21709 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
cannam@85 21710 t end
cannam@85 21711 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
cannam@85 21712 : end' >>confcache
cannam@85 21713 if diff $cache_file confcache >/dev/null 2>&1; then :; else
cannam@85 21714 if test -w $cache_file; then
cannam@85 21715 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
cannam@85 21716 cat confcache >$cache_file
cannam@85 21717 else
cannam@85 21718 echo "not updating unwritable cache $cache_file"
cannam@85 21719 fi
cannam@85 21720 fi
cannam@85 21721 rm -f confcache
cannam@85 21722
cannam@85 21723 test "x$prefix" = xNONE && prefix=$ac_default_prefix
cannam@85 21724 # Let make expand exec_prefix.
cannam@85 21725 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
cannam@85 21726
cannam@85 21727 # VPATH may cause trouble with some makes, so we remove $(srcdir),
cannam@85 21728 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
cannam@85 21729 # trailing colons and then remove the whole line if VPATH becomes empty
cannam@85 21730 # (actually we leave an empty line to preserve line numbers).
cannam@85 21731 if test "x$srcdir" = x.; then
cannam@85 21732 ac_vpsub='/^[ ]*VPATH[ ]*=/{
cannam@85 21733 s/:*\$(srcdir):*/:/;
cannam@85 21734 s/:*\${srcdir}:*/:/;
cannam@85 21735 s/:*@srcdir@:*/:/;
cannam@85 21736 s/^\([^=]*=[ ]*\):*/\1/;
cannam@85 21737 s/:*$//;
cannam@85 21738 s/^[^=]*=[ ]*$//;
cannam@85 21739 }'
cannam@85 21740 fi
cannam@85 21741
cannam@85 21742 DEFS=-DHAVE_CONFIG_H
cannam@85 21743
cannam@85 21744 ac_libobjs=
cannam@85 21745 ac_ltlibobjs=
cannam@85 21746 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
cannam@85 21747 # 1. Remove the extension, and $U if already installed.
cannam@85 21748 ac_i=`echo "$ac_i" |
cannam@85 21749 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
cannam@85 21750 # 2. Add them.
cannam@85 21751 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
cannam@85 21752 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
cannam@85 21753 done
cannam@85 21754 LIBOBJS=$ac_libobjs
cannam@85 21755
cannam@85 21756 LTLIBOBJS=$ac_ltlibobjs
cannam@85 21757
cannam@85 21758
cannam@85 21759 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cannam@85 21760 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
cannam@85 21761 Usually this means the macro was only invoked conditionally." >&5
cannam@85 21762 echo "$as_me: error: conditional \"AMDEP\" was never defined.
cannam@85 21763 Usually this means the macro was only invoked conditionally." >&2;}
cannam@85 21764 { (exit 1); exit 1; }; }
cannam@85 21765 fi
cannam@85 21766 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cannam@85 21767 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
cannam@85 21768 Usually this means the macro was only invoked conditionally." >&5
cannam@85 21769 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
cannam@85 21770 Usually this means the macro was only invoked conditionally." >&2;}
cannam@85 21771 { (exit 1); exit 1; }; }
cannam@85 21772 fi
cannam@85 21773 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cannam@85 21774 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
cannam@85 21775 Usually this means the macro was only invoked conditionally." >&5
cannam@85 21776 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
cannam@85 21777 Usually this means the macro was only invoked conditionally." >&2;}
cannam@85 21778 { (exit 1); exit 1; }; }
cannam@85 21779 fi
cannam@85 21780
cannam@85 21781 : ${CONFIG_STATUS=./config.status}
cannam@85 21782 ac_clean_files_save=$ac_clean_files
cannam@85 21783 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cannam@85 21784 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
cannam@85 21785 echo "$as_me: creating $CONFIG_STATUS" >&6;}
cannam@85 21786 cat >$CONFIG_STATUS <<_ACEOF
cannam@85 21787 #! $SHELL
cannam@85 21788 # Generated by $as_me.
cannam@85 21789 # Run this file to recreate the current configuration.
cannam@85 21790 # Compiler output produced by configure, useful for debugging
cannam@85 21791 # configure, is in config.log if it exists.
cannam@85 21792
cannam@85 21793 debug=false
cannam@85 21794 ac_cs_recheck=false
cannam@85 21795 ac_cs_silent=false
cannam@85 21796 SHELL=\${CONFIG_SHELL-$SHELL}
cannam@85 21797 _ACEOF
cannam@85 21798
cannam@85 21799 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 21800 ## --------------------- ##
cannam@85 21801 ## M4sh Initialization. ##
cannam@85 21802 ## --------------------- ##
cannam@85 21803
cannam@85 21804 # Be Bourne compatible
cannam@85 21805 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
cannam@85 21806 emulate sh
cannam@85 21807 NULLCMD=:
cannam@85 21808 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
cannam@85 21809 # is contrary to our usage. Disable this feature.
cannam@85 21810 alias -g '${1+"$@"}'='"$@"'
cannam@85 21811 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
cannam@85 21812 set -o posix
cannam@85 21813 fi
cannam@85 21814 DUALCASE=1; export DUALCASE # for MKS sh
cannam@85 21815
cannam@85 21816 # Support unset when possible.
cannam@85 21817 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
cannam@85 21818 as_unset=unset
cannam@85 21819 else
cannam@85 21820 as_unset=false
cannam@85 21821 fi
cannam@85 21822
cannam@85 21823
cannam@85 21824 # Work around bugs in pre-3.0 UWIN ksh.
cannam@85 21825 $as_unset ENV MAIL MAILPATH
cannam@85 21826 PS1='$ '
cannam@85 21827 PS2='> '
cannam@85 21828 PS4='+ '
cannam@85 21829
cannam@85 21830 # NLS nuisances.
cannam@85 21831 for as_var in \
cannam@85 21832 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
cannam@85 21833 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
cannam@85 21834 LC_TELEPHONE LC_TIME
cannam@85 21835 do
cannam@85 21836 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
cannam@85 21837 eval $as_var=C; export $as_var
cannam@85 21838 else
cannam@85 21839 $as_unset $as_var
cannam@85 21840 fi
cannam@85 21841 done
cannam@85 21842
cannam@85 21843 # Required to use basename.
cannam@85 21844 if expr a : '\(a\)' >/dev/null 2>&1; then
cannam@85 21845 as_expr=expr
cannam@85 21846 else
cannam@85 21847 as_expr=false
cannam@85 21848 fi
cannam@85 21849
cannam@85 21850 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
cannam@85 21851 as_basename=basename
cannam@85 21852 else
cannam@85 21853 as_basename=false
cannam@85 21854 fi
cannam@85 21855
cannam@85 21856
cannam@85 21857 # Name of the executable.
cannam@85 21858 as_me=`$as_basename "$0" ||
cannam@85 21859 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
cannam@85 21860 X"$0" : 'X\(//\)$' \| \
cannam@85 21861 X"$0" : 'X\(/\)$' \| \
cannam@85 21862 . : '\(.\)' 2>/dev/null ||
cannam@85 21863 echo X/"$0" |
cannam@85 21864 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
cannam@85 21865 /^X\/\(\/\/\)$/{ s//\1/; q; }
cannam@85 21866 /^X\/\(\/\).*/{ s//\1/; q; }
cannam@85 21867 s/.*/./; q'`
cannam@85 21868
cannam@85 21869
cannam@85 21870 # PATH needs CR, and LINENO needs CR and PATH.
cannam@85 21871 # Avoid depending upon Character Ranges.
cannam@85 21872 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
cannam@85 21873 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
cannam@85 21874 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
cannam@85 21875 as_cr_digits='0123456789'
cannam@85 21876 as_cr_alnum=$as_cr_Letters$as_cr_digits
cannam@85 21877
cannam@85 21878 # The user is always right.
cannam@85 21879 if test "${PATH_SEPARATOR+set}" != set; then
cannam@85 21880 echo "#! /bin/sh" >conf$$.sh
cannam@85 21881 echo "exit 0" >>conf$$.sh
cannam@85 21882 chmod +x conf$$.sh
cannam@85 21883 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
cannam@85 21884 PATH_SEPARATOR=';'
cannam@85 21885 else
cannam@85 21886 PATH_SEPARATOR=:
cannam@85 21887 fi
cannam@85 21888 rm -f conf$$.sh
cannam@85 21889 fi
cannam@85 21890
cannam@85 21891
cannam@85 21892 as_lineno_1=$LINENO
cannam@85 21893 as_lineno_2=$LINENO
cannam@85 21894 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
cannam@85 21895 test "x$as_lineno_1" != "x$as_lineno_2" &&
cannam@85 21896 test "x$as_lineno_3" = "x$as_lineno_2" || {
cannam@85 21897 # Find who we are. Look in the path if we contain no path at all
cannam@85 21898 # relative or not.
cannam@85 21899 case $0 in
cannam@85 21900 *[\\/]* ) as_myself=$0 ;;
cannam@85 21901 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 21902 for as_dir in $PATH
cannam@85 21903 do
cannam@85 21904 IFS=$as_save_IFS
cannam@85 21905 test -z "$as_dir" && as_dir=.
cannam@85 21906 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
cannam@85 21907 done
cannam@85 21908
cannam@85 21909 ;;
cannam@85 21910 esac
cannam@85 21911 # We did not find ourselves, most probably we were run as `sh COMMAND'
cannam@85 21912 # in which case we are not to be found in the path.
cannam@85 21913 if test "x$as_myself" = x; then
cannam@85 21914 as_myself=$0
cannam@85 21915 fi
cannam@85 21916 if test ! -f "$as_myself"; then
cannam@85 21917 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
cannam@85 21918 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
cannam@85 21919 { (exit 1); exit 1; }; }
cannam@85 21920 fi
cannam@85 21921 case $CONFIG_SHELL in
cannam@85 21922 '')
cannam@85 21923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 21924 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
cannam@85 21925 do
cannam@85 21926 IFS=$as_save_IFS
cannam@85 21927 test -z "$as_dir" && as_dir=.
cannam@85 21928 for as_base in sh bash ksh sh5; do
cannam@85 21929 case $as_dir in
cannam@85 21930 /*)
cannam@85 21931 if ("$as_dir/$as_base" -c '
cannam@85 21932 as_lineno_1=$LINENO
cannam@85 21933 as_lineno_2=$LINENO
cannam@85 21934 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
cannam@85 21935 test "x$as_lineno_1" != "x$as_lineno_2" &&
cannam@85 21936 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
cannam@85 21937 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
cannam@85 21938 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
cannam@85 21939 CONFIG_SHELL=$as_dir/$as_base
cannam@85 21940 export CONFIG_SHELL
cannam@85 21941 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
cannam@85 21942 fi;;
cannam@85 21943 esac
cannam@85 21944 done
cannam@85 21945 done
cannam@85 21946 ;;
cannam@85 21947 esac
cannam@85 21948
cannam@85 21949 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
cannam@85 21950 # uniformly replaced by the line number. The first 'sed' inserts a
cannam@85 21951 # line-number line before each line; the second 'sed' does the real
cannam@85 21952 # work. The second script uses 'N' to pair each line-number line
cannam@85 21953 # with the numbered line, and appends trailing '-' during
cannam@85 21954 # substitution so that $LINENO is not a special case at line end.
cannam@85 21955 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
cannam@85 21956 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
cannam@85 21957 sed '=' <$as_myself |
cannam@85 21958 sed '
cannam@85 21959 N
cannam@85 21960 s,$,-,
cannam@85 21961 : loop
cannam@85 21962 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
cannam@85 21963 t loop
cannam@85 21964 s,-$,,
cannam@85 21965 s,^['$as_cr_digits']*\n,,
cannam@85 21966 ' >$as_me.lineno &&
cannam@85 21967 chmod +x $as_me.lineno ||
cannam@85 21968 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
cannam@85 21969 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
cannam@85 21970 { (exit 1); exit 1; }; }
cannam@85 21971
cannam@85 21972 # Don't try to exec as it changes $[0], causing all sort of problems
cannam@85 21973 # (the dirname of $[0] is not the place where we might find the
cannam@85 21974 # original and so on. Autoconf is especially sensible to this).
cannam@85 21975 . ./$as_me.lineno
cannam@85 21976 # Exit status is that of the last command.
cannam@85 21977 exit
cannam@85 21978 }
cannam@85 21979
cannam@85 21980
cannam@85 21981 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
cannam@85 21982 *c*,-n*) ECHO_N= ECHO_C='
cannam@85 21983 ' ECHO_T=' ' ;;
cannam@85 21984 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
cannam@85 21985 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
cannam@85 21986 esac
cannam@85 21987
cannam@85 21988 if expr a : '\(a\)' >/dev/null 2>&1; then
cannam@85 21989 as_expr=expr
cannam@85 21990 else
cannam@85 21991 as_expr=false
cannam@85 21992 fi
cannam@85 21993
cannam@85 21994 rm -f conf$$ conf$$.exe conf$$.file
cannam@85 21995 echo >conf$$.file
cannam@85 21996 if ln -s conf$$.file conf$$ 2>/dev/null; then
cannam@85 21997 # We could just check for DJGPP; but this test a) works b) is more generic
cannam@85 21998 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
cannam@85 21999 if test -f conf$$.exe; then
cannam@85 22000 # Don't use ln at all; we don't have any links
cannam@85 22001 as_ln_s='cp -p'
cannam@85 22002 else
cannam@85 22003 as_ln_s='ln -s'
cannam@85 22004 fi
cannam@85 22005 elif ln conf$$.file conf$$ 2>/dev/null; then
cannam@85 22006 as_ln_s=ln
cannam@85 22007 else
cannam@85 22008 as_ln_s='cp -p'
cannam@85 22009 fi
cannam@85 22010 rm -f conf$$ conf$$.exe conf$$.file
cannam@85 22011
cannam@85 22012 if mkdir -p . 2>/dev/null; then
cannam@85 22013 as_mkdir_p=:
cannam@85 22014 else
cannam@85 22015 test -d ./-p && rmdir ./-p
cannam@85 22016 as_mkdir_p=false
cannam@85 22017 fi
cannam@85 22018
cannam@85 22019 as_executable_p="test -f"
cannam@85 22020
cannam@85 22021 # Sed expression to map a string onto a valid CPP name.
cannam@85 22022 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
cannam@85 22023
cannam@85 22024 # Sed expression to map a string onto a valid variable name.
cannam@85 22025 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
cannam@85 22026
cannam@85 22027
cannam@85 22028 # IFS
cannam@85 22029 # We need space, tab and new line, in precisely that order.
cannam@85 22030 as_nl='
cannam@85 22031 '
cannam@85 22032 IFS=" $as_nl"
cannam@85 22033
cannam@85 22034 # CDPATH.
cannam@85 22035 $as_unset CDPATH
cannam@85 22036
cannam@85 22037 exec 6>&1
cannam@85 22038
cannam@85 22039 # Open the log real soon, to keep \$[0] and so on meaningful, and to
cannam@85 22040 # report actual input values of CONFIG_FILES etc. instead of their
cannam@85 22041 # values after options handling. Logging --version etc. is OK.
cannam@85 22042 exec 5>>config.log
cannam@85 22043 {
cannam@85 22044 echo
cannam@85 22045 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
cannam@85 22046 ## Running $as_me. ##
cannam@85 22047 _ASBOX
cannam@85 22048 } >&5
cannam@85 22049 cat >&5 <<_CSEOF
cannam@85 22050
cannam@85 22051 This file was extended by MPEG Audio Decoder $as_me 0.15.1b, which was
cannam@85 22052 generated by GNU Autoconf 2.59. Invocation command line was
cannam@85 22053
cannam@85 22054 CONFIG_FILES = $CONFIG_FILES
cannam@85 22055 CONFIG_HEADERS = $CONFIG_HEADERS
cannam@85 22056 CONFIG_LINKS = $CONFIG_LINKS
cannam@85 22057 CONFIG_COMMANDS = $CONFIG_COMMANDS
cannam@85 22058 $ $0 $@
cannam@85 22059
cannam@85 22060 _CSEOF
cannam@85 22061 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
cannam@85 22062 echo >&5
cannam@85 22063 _ACEOF
cannam@85 22064
cannam@85 22065 # Files that config.status was made for.
cannam@85 22066 if test -n "$ac_config_files"; then
cannam@85 22067 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
cannam@85 22068 fi
cannam@85 22069
cannam@85 22070 if test -n "$ac_config_headers"; then
cannam@85 22071 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
cannam@85 22072 fi
cannam@85 22073
cannam@85 22074 if test -n "$ac_config_links"; then
cannam@85 22075 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
cannam@85 22076 fi
cannam@85 22077
cannam@85 22078 if test -n "$ac_config_commands"; then
cannam@85 22079 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
cannam@85 22080 fi
cannam@85 22081
cannam@85 22082 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 22083
cannam@85 22084 ac_cs_usage="\
cannam@85 22085 \`$as_me' instantiates files from templates according to the
cannam@85 22086 current configuration.
cannam@85 22087
cannam@85 22088 Usage: $0 [OPTIONS] [FILE]...
cannam@85 22089
cannam@85 22090 -h, --help print this help, then exit
cannam@85 22091 -V, --version print version number, then exit
cannam@85 22092 -q, --quiet do not print progress messages
cannam@85 22093 -d, --debug don't remove temporary files
cannam@85 22094 --recheck update $as_me by reconfiguring in the same conditions
cannam@85 22095 --file=FILE[:TEMPLATE]
cannam@85 22096 instantiate the configuration file FILE
cannam@85 22097 --header=FILE[:TEMPLATE]
cannam@85 22098 instantiate the configuration header FILE
cannam@85 22099
cannam@85 22100 Configuration files:
cannam@85 22101 $config_files
cannam@85 22102
cannam@85 22103 Configuration headers:
cannam@85 22104 $config_headers
cannam@85 22105
cannam@85 22106 Configuration commands:
cannam@85 22107 $config_commands
cannam@85 22108
cannam@85 22109 Report bugs to <bug-autoconf@gnu.org>."
cannam@85 22110 _ACEOF
cannam@85 22111
cannam@85 22112 cat >>$CONFIG_STATUS <<_ACEOF
cannam@85 22113 ac_cs_version="\\
cannam@85 22114 MPEG Audio Decoder config.status 0.15.1b
cannam@85 22115 configured by $0, generated by GNU Autoconf 2.59,
cannam@85 22116 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
cannam@85 22117
cannam@85 22118 Copyright (C) 2003 Free Software Foundation, Inc.
cannam@85 22119 This config.status script is free software; the Free Software Foundation
cannam@85 22120 gives unlimited permission to copy, distribute and modify it."
cannam@85 22121 srcdir=$srcdir
cannam@85 22122 INSTALL="$INSTALL"
cannam@85 22123 _ACEOF
cannam@85 22124
cannam@85 22125 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 22126 # If no file are specified by the user, then we need to provide default
cannam@85 22127 # value. By we need to know if files were specified by the user.
cannam@85 22128 ac_need_defaults=:
cannam@85 22129 while test $# != 0
cannam@85 22130 do
cannam@85 22131 case $1 in
cannam@85 22132 --*=*)
cannam@85 22133 ac_option=`expr "x$1" : 'x\([^=]*\)='`
cannam@85 22134 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
cannam@85 22135 ac_shift=:
cannam@85 22136 ;;
cannam@85 22137 -*)
cannam@85 22138 ac_option=$1
cannam@85 22139 ac_optarg=$2
cannam@85 22140 ac_shift=shift
cannam@85 22141 ;;
cannam@85 22142 *) # This is not an option, so the user has probably given explicit
cannam@85 22143 # arguments.
cannam@85 22144 ac_option=$1
cannam@85 22145 ac_need_defaults=false;;
cannam@85 22146 esac
cannam@85 22147
cannam@85 22148 case $ac_option in
cannam@85 22149 # Handling of the options.
cannam@85 22150 _ACEOF
cannam@85 22151 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 22152 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
cannam@85 22153 ac_cs_recheck=: ;;
cannam@85 22154 --version | --vers* | -V )
cannam@85 22155 echo "$ac_cs_version"; exit 0 ;;
cannam@85 22156 --he | --h)
cannam@85 22157 # Conflict between --help and --header
cannam@85 22158 { { echo "$as_me:$LINENO: error: ambiguous option: $1
cannam@85 22159 Try \`$0 --help' for more information." >&5
cannam@85 22160 echo "$as_me: error: ambiguous option: $1
cannam@85 22161 Try \`$0 --help' for more information." >&2;}
cannam@85 22162 { (exit 1); exit 1; }; };;
cannam@85 22163 --help | --hel | -h )
cannam@85 22164 echo "$ac_cs_usage"; exit 0 ;;
cannam@85 22165 --debug | --d* | -d )
cannam@85 22166 debug=: ;;
cannam@85 22167 --file | --fil | --fi | --f )
cannam@85 22168 $ac_shift
cannam@85 22169 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
cannam@85 22170 ac_need_defaults=false;;
cannam@85 22171 --header | --heade | --head | --hea )
cannam@85 22172 $ac_shift
cannam@85 22173 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
cannam@85 22174 ac_need_defaults=false;;
cannam@85 22175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@85 22176 | -silent | --silent | --silen | --sile | --sil | --si | --s)
cannam@85 22177 ac_cs_silent=: ;;
cannam@85 22178
cannam@85 22179 # This is an error.
cannam@85 22180 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
cannam@85 22181 Try \`$0 --help' for more information." >&5
cannam@85 22182 echo "$as_me: error: unrecognized option: $1
cannam@85 22183 Try \`$0 --help' for more information." >&2;}
cannam@85 22184 { (exit 1); exit 1; }; } ;;
cannam@85 22185
cannam@85 22186 *) ac_config_targets="$ac_config_targets $1" ;;
cannam@85 22187
cannam@85 22188 esac
cannam@85 22189 shift
cannam@85 22190 done
cannam@85 22191
cannam@85 22192 ac_configure_extra_args=
cannam@85 22193
cannam@85 22194 if $ac_cs_silent; then
cannam@85 22195 exec 6>/dev/null
cannam@85 22196 ac_configure_extra_args="$ac_configure_extra_args --silent"
cannam@85 22197 fi
cannam@85 22198
cannam@85 22199 _ACEOF
cannam@85 22200 cat >>$CONFIG_STATUS <<_ACEOF
cannam@85 22201 if \$ac_cs_recheck; then
cannam@85 22202 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
cannam@85 22203 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cannam@85 22204 fi
cannam@85 22205
cannam@85 22206 _ACEOF
cannam@85 22207
cannam@85 22208 cat >>$CONFIG_STATUS <<_ACEOF
cannam@85 22209 #
cannam@85 22210 # INIT-COMMANDS section.
cannam@85 22211 #
cannam@85 22212
cannam@85 22213 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
cannam@85 22214
cannam@85 22215 _ACEOF
cannam@85 22216
cannam@85 22217
cannam@85 22218
cannam@85 22219 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 22220 for ac_config_target in $ac_config_targets
cannam@85 22221 do
cannam@85 22222 case "$ac_config_target" in
cannam@85 22223 # Handling of arguments.
cannam@85 22224 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
cannam@85 22225 "msvc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES msvc++/Makefile" ;;
cannam@85 22226 "libmad.list" ) CONFIG_FILES="$CONFIG_FILES libmad.list" ;;
cannam@85 22227 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
cannam@85 22228 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
cannam@85 22229 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
cannam@85 22230 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
cannam@85 22231 { (exit 1); exit 1; }; };;
cannam@85 22232 esac
cannam@85 22233 done
cannam@85 22234
cannam@85 22235 # If the user did not use the arguments to specify the items to instantiate,
cannam@85 22236 # then the envvar interface is used. Set only those that are not.
cannam@85 22237 # We use the long form for the default assignment because of an extremely
cannam@85 22238 # bizarre bug on SunOS 4.1.3.
cannam@85 22239 if $ac_need_defaults; then
cannam@85 22240 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
cannam@85 22241 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
cannam@85 22242 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
cannam@85 22243 fi
cannam@85 22244
cannam@85 22245 # Have a temporary directory for convenience. Make it in the build tree
cannam@85 22246 # simply because there is no reason to put it here, and in addition,
cannam@85 22247 # creating and moving files from /tmp can sometimes cause problems.
cannam@85 22248 # Create a temporary directory, and hook for its removal unless debugging.
cannam@85 22249 $debug ||
cannam@85 22250 {
cannam@85 22251 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
cannam@85 22252 trap '{ (exit 1); exit 1; }' 1 2 13 15
cannam@85 22253 }
cannam@85 22254
cannam@85 22255 # Create a (secure) tmp directory for tmp files.
cannam@85 22256
cannam@85 22257 {
cannam@85 22258 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
cannam@85 22259 test -n "$tmp" && test -d "$tmp"
cannam@85 22260 } ||
cannam@85 22261 {
cannam@85 22262 tmp=./confstat$$-$RANDOM
cannam@85 22263 (umask 077 && mkdir $tmp)
cannam@85 22264 } ||
cannam@85 22265 {
cannam@85 22266 echo "$me: cannot create a temporary directory in ." >&2
cannam@85 22267 { (exit 1); exit 1; }
cannam@85 22268 }
cannam@85 22269
cannam@85 22270 _ACEOF
cannam@85 22271
cannam@85 22272 cat >>$CONFIG_STATUS <<_ACEOF
cannam@85 22273
cannam@85 22274 #
cannam@85 22275 # CONFIG_FILES section.
cannam@85 22276 #
cannam@85 22277
cannam@85 22278 # No need to generate the scripts if there are no CONFIG_FILES.
cannam@85 22279 # This happens for instance when ./config.status config.h
cannam@85 22280 if test -n "\$CONFIG_FILES"; then
cannam@85 22281 # Protect against being on the right side of a sed subst in config.status.
cannam@85 22282 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
cannam@85 22283 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
cannam@85 22284 s,@SHELL@,$SHELL,;t t
cannam@85 22285 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
cannam@85 22286 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
cannam@85 22287 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
cannam@85 22288 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
cannam@85 22289 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
cannam@85 22290 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
cannam@85 22291 s,@exec_prefix@,$exec_prefix,;t t
cannam@85 22292 s,@prefix@,$prefix,;t t
cannam@85 22293 s,@program_transform_name@,$program_transform_name,;t t
cannam@85 22294 s,@bindir@,$bindir,;t t
cannam@85 22295 s,@sbindir@,$sbindir,;t t
cannam@85 22296 s,@libexecdir@,$libexecdir,;t t
cannam@85 22297 s,@datadir@,$datadir,;t t
cannam@85 22298 s,@sysconfdir@,$sysconfdir,;t t
cannam@85 22299 s,@sharedstatedir@,$sharedstatedir,;t t
cannam@85 22300 s,@localstatedir@,$localstatedir,;t t
cannam@85 22301 s,@libdir@,$libdir,;t t
cannam@85 22302 s,@includedir@,$includedir,;t t
cannam@85 22303 s,@oldincludedir@,$oldincludedir,;t t
cannam@85 22304 s,@infodir@,$infodir,;t t
cannam@85 22305 s,@mandir@,$mandir,;t t
cannam@85 22306 s,@build_alias@,$build_alias,;t t
cannam@85 22307 s,@host_alias@,$host_alias,;t t
cannam@85 22308 s,@target_alias@,$target_alias,;t t
cannam@85 22309 s,@DEFS@,$DEFS,;t t
cannam@85 22310 s,@ECHO_C@,$ECHO_C,;t t
cannam@85 22311 s,@ECHO_N@,$ECHO_N,;t t
cannam@85 22312 s,@ECHO_T@,$ECHO_T,;t t
cannam@85 22313 s,@LIBS@,$LIBS,;t t
cannam@85 22314 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
cannam@85 22315 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
cannam@85 22316 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
cannam@85 22317 s,@CYGPATH_W@,$CYGPATH_W,;t t
cannam@85 22318 s,@PACKAGE@,$PACKAGE,;t t
cannam@85 22319 s,@VERSION@,$VERSION,;t t
cannam@85 22320 s,@ACLOCAL@,$ACLOCAL,;t t
cannam@85 22321 s,@AUTOCONF@,$AUTOCONF,;t t
cannam@85 22322 s,@AUTOMAKE@,$AUTOMAKE,;t t
cannam@85 22323 s,@AUTOHEADER@,$AUTOHEADER,;t t
cannam@85 22324 s,@MAKEINFO@,$MAKEINFO,;t t
cannam@85 22325 s,@AMTAR@,$AMTAR,;t t
cannam@85 22326 s,@install_sh@,$install_sh,;t t
cannam@85 22327 s,@STRIP@,$STRIP,;t t
cannam@85 22328 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
cannam@85 22329 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
cannam@85 22330 s,@mkdir_p@,$mkdir_p,;t t
cannam@85 22331 s,@AWK@,$AWK,;t t
cannam@85 22332 s,@SET_MAKE@,$SET_MAKE,;t t
cannam@85 22333 s,@am__leading_dot@,$am__leading_dot,;t t
cannam@85 22334 s,@build@,$build,;t t
cannam@85 22335 s,@build_cpu@,$build_cpu,;t t
cannam@85 22336 s,@build_vendor@,$build_vendor,;t t
cannam@85 22337 s,@build_os@,$build_os,;t t
cannam@85 22338 s,@host@,$host,;t t
cannam@85 22339 s,@host_cpu@,$host_cpu,;t t
cannam@85 22340 s,@host_vendor@,$host_vendor,;t t
cannam@85 22341 s,@host_os@,$host_os,;t t
cannam@85 22342 s,@CC@,$CC,;t t
cannam@85 22343 s,@CFLAGS@,$CFLAGS,;t t
cannam@85 22344 s,@LDFLAGS@,$LDFLAGS,;t t
cannam@85 22345 s,@CPPFLAGS@,$CPPFLAGS,;t t
cannam@85 22346 s,@ac_ct_CC@,$ac_ct_CC,;t t
cannam@85 22347 s,@EXEEXT@,$EXEEXT,;t t
cannam@85 22348 s,@OBJEXT@,$OBJEXT,;t t
cannam@85 22349 s,@DEPDIR@,$DEPDIR,;t t
cannam@85 22350 s,@am__include@,$am__include,;t t
cannam@85 22351 s,@am__quote@,$am__quote,;t t
cannam@85 22352 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
cannam@85 22353 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
cannam@85 22354 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
cannam@85 22355 s,@CCDEPMODE@,$CCDEPMODE,;t t
cannam@85 22356 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
cannam@85 22357 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
cannam@85 22358 s,@CCAS@,$CCAS,;t t
cannam@85 22359 s,@CCASFLAGS@,$CCASFLAGS,;t t
cannam@85 22360 s,@EGREP@,$EGREP,;t t
cannam@85 22361 s,@LN_S@,$LN_S,;t t
cannam@85 22362 s,@ECHO@,$ECHO,;t t
cannam@85 22363 s,@AR@,$AR,;t t
cannam@85 22364 s,@ac_ct_AR@,$ac_ct_AR,;t t
cannam@85 22365 s,@RANLIB@,$RANLIB,;t t
cannam@85 22366 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
cannam@85 22367 s,@CPP@,$CPP,;t t
cannam@85 22368 s,@CXX@,$CXX,;t t
cannam@85 22369 s,@CXXFLAGS@,$CXXFLAGS,;t t
cannam@85 22370 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
cannam@85 22371 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
cannam@85 22372 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
cannam@85 22373 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
cannam@85 22374 s,@CXXCPP@,$CXXCPP,;t t
cannam@85 22375 s,@F77@,$F77,;t t
cannam@85 22376 s,@FFLAGS@,$FFLAGS,;t t
cannam@85 22377 s,@ac_ct_F77@,$ac_ct_F77,;t t
cannam@85 22378 s,@LIBTOOL@,$LIBTOOL,;t t
cannam@85 22379 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
cannam@85 22380 s,@FPM@,$FPM,;t t
cannam@85 22381 s,@ASO@,$ASO,;t t
cannam@85 22382 s,@ASO_OBJS@,$ASO_OBJS,;t t
cannam@85 22383 s,@LIBOBJS@,$LIBOBJS,;t t
cannam@85 22384 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
cannam@85 22385 CEOF
cannam@85 22386
cannam@85 22387 _ACEOF
cannam@85 22388
cannam@85 22389 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 22390 # Split the substitutions into bite-sized pieces for seds with
cannam@85 22391 # small command number limits, like on Digital OSF/1 and HP-UX.
cannam@85 22392 ac_max_sed_lines=48
cannam@85 22393 ac_sed_frag=1 # Number of current file.
cannam@85 22394 ac_beg=1 # First line for current file.
cannam@85 22395 ac_end=$ac_max_sed_lines # Line after last line for current file.
cannam@85 22396 ac_more_lines=:
cannam@85 22397 ac_sed_cmds=
cannam@85 22398 while $ac_more_lines; do
cannam@85 22399 if test $ac_beg -gt 1; then
cannam@85 22400 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
cannam@85 22401 else
cannam@85 22402 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
cannam@85 22403 fi
cannam@85 22404 if test ! -s $tmp/subs.frag; then
cannam@85 22405 ac_more_lines=false
cannam@85 22406 else
cannam@85 22407 # The purpose of the label and of the branching condition is to
cannam@85 22408 # speed up the sed processing (if there are no `@' at all, there
cannam@85 22409 # is no need to browse any of the substitutions).
cannam@85 22410 # These are the two extra sed commands mentioned above.
cannam@85 22411 (echo ':t
cannam@85 22412 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
cannam@85 22413 if test -z "$ac_sed_cmds"; then
cannam@85 22414 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
cannam@85 22415 else
cannam@85 22416 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
cannam@85 22417 fi
cannam@85 22418 ac_sed_frag=`expr $ac_sed_frag + 1`
cannam@85 22419 ac_beg=$ac_end
cannam@85 22420 ac_end=`expr $ac_end + $ac_max_sed_lines`
cannam@85 22421 fi
cannam@85 22422 done
cannam@85 22423 if test -z "$ac_sed_cmds"; then
cannam@85 22424 ac_sed_cmds=cat
cannam@85 22425 fi
cannam@85 22426 fi # test -n "$CONFIG_FILES"
cannam@85 22427
cannam@85 22428 _ACEOF
cannam@85 22429 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 22430 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
cannam@85 22431 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
cannam@85 22432 case $ac_file in
cannam@85 22433 - | *:- | *:-:* ) # input from stdin
cannam@85 22434 cat >$tmp/stdin
cannam@85 22435 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
cannam@85 22436 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
cannam@85 22437 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
cannam@85 22438 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
cannam@85 22439 * ) ac_file_in=$ac_file.in ;;
cannam@85 22440 esac
cannam@85 22441
cannam@85 22442 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
cannam@85 22443 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
cannam@85 22444 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 22445 X"$ac_file" : 'X\(//\)[^/]' \| \
cannam@85 22446 X"$ac_file" : 'X\(//\)$' \| \
cannam@85 22447 X"$ac_file" : 'X\(/\)' \| \
cannam@85 22448 . : '\(.\)' 2>/dev/null ||
cannam@85 22449 echo X"$ac_file" |
cannam@85 22450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
cannam@85 22451 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
cannam@85 22452 /^X\(\/\/\)$/{ s//\1/; q; }
cannam@85 22453 /^X\(\/\).*/{ s//\1/; q; }
cannam@85 22454 s/.*/./; q'`
cannam@85 22455 { if $as_mkdir_p; then
cannam@85 22456 mkdir -p "$ac_dir"
cannam@85 22457 else
cannam@85 22458 as_dir="$ac_dir"
cannam@85 22459 as_dirs=
cannam@85 22460 while test ! -d "$as_dir"; do
cannam@85 22461 as_dirs="$as_dir $as_dirs"
cannam@85 22462 as_dir=`(dirname "$as_dir") 2>/dev/null ||
cannam@85 22463 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 22464 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@85 22465 X"$as_dir" : 'X\(//\)$' \| \
cannam@85 22466 X"$as_dir" : 'X\(/\)' \| \
cannam@85 22467 . : '\(.\)' 2>/dev/null ||
cannam@85 22468 echo X"$as_dir" |
cannam@85 22469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
cannam@85 22470 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
cannam@85 22471 /^X\(\/\/\)$/{ s//\1/; q; }
cannam@85 22472 /^X\(\/\).*/{ s//\1/; q; }
cannam@85 22473 s/.*/./; q'`
cannam@85 22474 done
cannam@85 22475 test ! -n "$as_dirs" || mkdir $as_dirs
cannam@85 22476 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
cannam@85 22477 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
cannam@85 22478 { (exit 1); exit 1; }; }; }
cannam@85 22479
cannam@85 22480 ac_builddir=.
cannam@85 22481
cannam@85 22482 if test "$ac_dir" != .; then
cannam@85 22483 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
cannam@85 22484 # A "../" for each directory in $ac_dir_suffix.
cannam@85 22485 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
cannam@85 22486 else
cannam@85 22487 ac_dir_suffix= ac_top_builddir=
cannam@85 22488 fi
cannam@85 22489
cannam@85 22490 case $srcdir in
cannam@85 22491 .) # No --srcdir option. We are building in place.
cannam@85 22492 ac_srcdir=.
cannam@85 22493 if test -z "$ac_top_builddir"; then
cannam@85 22494 ac_top_srcdir=.
cannam@85 22495 else
cannam@85 22496 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
cannam@85 22497 fi ;;
cannam@85 22498 [\\/]* | ?:[\\/]* ) # Absolute path.
cannam@85 22499 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@85 22500 ac_top_srcdir=$srcdir ;;
cannam@85 22501 *) # Relative path.
cannam@85 22502 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
cannam@85 22503 ac_top_srcdir=$ac_top_builddir$srcdir ;;
cannam@85 22504 esac
cannam@85 22505
cannam@85 22506 # Do not use `cd foo && pwd` to compute absolute paths, because
cannam@85 22507 # the directories may not exist.
cannam@85 22508 case `pwd` in
cannam@85 22509 .) ac_abs_builddir="$ac_dir";;
cannam@85 22510 *)
cannam@85 22511 case "$ac_dir" in
cannam@85 22512 .) ac_abs_builddir=`pwd`;;
cannam@85 22513 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
cannam@85 22514 *) ac_abs_builddir=`pwd`/"$ac_dir";;
cannam@85 22515 esac;;
cannam@85 22516 esac
cannam@85 22517 case $ac_abs_builddir in
cannam@85 22518 .) ac_abs_top_builddir=${ac_top_builddir}.;;
cannam@85 22519 *)
cannam@85 22520 case ${ac_top_builddir}. in
cannam@85 22521 .) ac_abs_top_builddir=$ac_abs_builddir;;
cannam@85 22522 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
cannam@85 22523 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
cannam@85 22524 esac;;
cannam@85 22525 esac
cannam@85 22526 case $ac_abs_builddir in
cannam@85 22527 .) ac_abs_srcdir=$ac_srcdir;;
cannam@85 22528 *)
cannam@85 22529 case $ac_srcdir in
cannam@85 22530 .) ac_abs_srcdir=$ac_abs_builddir;;
cannam@85 22531 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
cannam@85 22532 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
cannam@85 22533 esac;;
cannam@85 22534 esac
cannam@85 22535 case $ac_abs_builddir in
cannam@85 22536 .) ac_abs_top_srcdir=$ac_top_srcdir;;
cannam@85 22537 *)
cannam@85 22538 case $ac_top_srcdir in
cannam@85 22539 .) ac_abs_top_srcdir=$ac_abs_builddir;;
cannam@85 22540 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
cannam@85 22541 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
cannam@85 22542 esac;;
cannam@85 22543 esac
cannam@85 22544
cannam@85 22545
cannam@85 22546 case $INSTALL in
cannam@85 22547 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cannam@85 22548 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
cannam@85 22549 esac
cannam@85 22550
cannam@85 22551 # Let's still pretend it is `configure' which instantiates (i.e., don't
cannam@85 22552 # use $as_me), people would be surprised to read:
cannam@85 22553 # /* config.h. Generated by config.status. */
cannam@85 22554 if test x"$ac_file" = x-; then
cannam@85 22555 configure_input=
cannam@85 22556 else
cannam@85 22557 configure_input="$ac_file. "
cannam@85 22558 fi
cannam@85 22559 configure_input=$configure_input"Generated from `echo $ac_file_in |
cannam@85 22560 sed 's,.*/,,'` by configure."
cannam@85 22561
cannam@85 22562 # First look for the input files in the build tree, otherwise in the
cannam@85 22563 # src tree.
cannam@85 22564 ac_file_inputs=`IFS=:
cannam@85 22565 for f in $ac_file_in; do
cannam@85 22566 case $f in
cannam@85 22567 -) echo $tmp/stdin ;;
cannam@85 22568 [\\/$]*)
cannam@85 22569 # Absolute (can't be DOS-style, as IFS=:)
cannam@85 22570 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
cannam@85 22571 echo "$as_me: error: cannot find input file: $f" >&2;}
cannam@85 22572 { (exit 1); exit 1; }; }
cannam@85 22573 echo "$f";;
cannam@85 22574 *) # Relative
cannam@85 22575 if test -f "$f"; then
cannam@85 22576 # Build tree
cannam@85 22577 echo "$f"
cannam@85 22578 elif test -f "$srcdir/$f"; then
cannam@85 22579 # Source tree
cannam@85 22580 echo "$srcdir/$f"
cannam@85 22581 else
cannam@85 22582 # /dev/null tree
cannam@85 22583 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
cannam@85 22584 echo "$as_me: error: cannot find input file: $f" >&2;}
cannam@85 22585 { (exit 1); exit 1; }; }
cannam@85 22586 fi;;
cannam@85 22587 esac
cannam@85 22588 done` || { (exit 1); exit 1; }
cannam@85 22589
cannam@85 22590 if test x"$ac_file" != x-; then
cannam@85 22591 { echo "$as_me:$LINENO: creating $ac_file" >&5
cannam@85 22592 echo "$as_me: creating $ac_file" >&6;}
cannam@85 22593 rm -f "$ac_file"
cannam@85 22594 fi
cannam@85 22595 _ACEOF
cannam@85 22596 cat >>$CONFIG_STATUS <<_ACEOF
cannam@85 22597 sed "$ac_vpsub
cannam@85 22598 $extrasub
cannam@85 22599 _ACEOF
cannam@85 22600 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 22601 :t
cannam@85 22602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cannam@85 22603 s,@configure_input@,$configure_input,;t t
cannam@85 22604 s,@srcdir@,$ac_srcdir,;t t
cannam@85 22605 s,@abs_srcdir@,$ac_abs_srcdir,;t t
cannam@85 22606 s,@top_srcdir@,$ac_top_srcdir,;t t
cannam@85 22607 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
cannam@85 22608 s,@builddir@,$ac_builddir,;t t
cannam@85 22609 s,@abs_builddir@,$ac_abs_builddir,;t t
cannam@85 22610 s,@top_builddir@,$ac_top_builddir,;t t
cannam@85 22611 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
cannam@85 22612 s,@INSTALL@,$ac_INSTALL,;t t
cannam@85 22613 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
cannam@85 22614 rm -f $tmp/stdin
cannam@85 22615 if test x"$ac_file" != x-; then
cannam@85 22616 mv $tmp/out $ac_file
cannam@85 22617 else
cannam@85 22618 cat $tmp/out
cannam@85 22619 rm -f $tmp/out
cannam@85 22620 fi
cannam@85 22621
cannam@85 22622 done
cannam@85 22623 _ACEOF
cannam@85 22624 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 22625
cannam@85 22626 #
cannam@85 22627 # CONFIG_HEADER section.
cannam@85 22628 #
cannam@85 22629
cannam@85 22630 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
cannam@85 22631 # NAME is the cpp macro being defined and VALUE is the value it is being given.
cannam@85 22632 #
cannam@85 22633 # ac_d sets the value in "#define NAME VALUE" lines.
cannam@85 22634 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
cannam@85 22635 ac_dB='[ ].*$,\1#\2'
cannam@85 22636 ac_dC=' '
cannam@85 22637 ac_dD=',;t'
cannam@85 22638 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
cannam@85 22639 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
cannam@85 22640 ac_uB='$,\1#\2define\3'
cannam@85 22641 ac_uC=' '
cannam@85 22642 ac_uD=',;t'
cannam@85 22643
cannam@85 22644 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
cannam@85 22645 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
cannam@85 22646 case $ac_file in
cannam@85 22647 - | *:- | *:-:* ) # input from stdin
cannam@85 22648 cat >$tmp/stdin
cannam@85 22649 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
cannam@85 22650 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
cannam@85 22651 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
cannam@85 22652 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
cannam@85 22653 * ) ac_file_in=$ac_file.in ;;
cannam@85 22654 esac
cannam@85 22655
cannam@85 22656 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
cannam@85 22657 echo "$as_me: creating $ac_file" >&6;}
cannam@85 22658
cannam@85 22659 # First look for the input files in the build tree, otherwise in the
cannam@85 22660 # src tree.
cannam@85 22661 ac_file_inputs=`IFS=:
cannam@85 22662 for f in $ac_file_in; do
cannam@85 22663 case $f in
cannam@85 22664 -) echo $tmp/stdin ;;
cannam@85 22665 [\\/$]*)
cannam@85 22666 # Absolute (can't be DOS-style, as IFS=:)
cannam@85 22667 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
cannam@85 22668 echo "$as_me: error: cannot find input file: $f" >&2;}
cannam@85 22669 { (exit 1); exit 1; }; }
cannam@85 22670 # Do quote $f, to prevent DOS paths from being IFS'd.
cannam@85 22671 echo "$f";;
cannam@85 22672 *) # Relative
cannam@85 22673 if test -f "$f"; then
cannam@85 22674 # Build tree
cannam@85 22675 echo "$f"
cannam@85 22676 elif test -f "$srcdir/$f"; then
cannam@85 22677 # Source tree
cannam@85 22678 echo "$srcdir/$f"
cannam@85 22679 else
cannam@85 22680 # /dev/null tree
cannam@85 22681 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
cannam@85 22682 echo "$as_me: error: cannot find input file: $f" >&2;}
cannam@85 22683 { (exit 1); exit 1; }; }
cannam@85 22684 fi;;
cannam@85 22685 esac
cannam@85 22686 done` || { (exit 1); exit 1; }
cannam@85 22687 # Remove the trailing spaces.
cannam@85 22688 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
cannam@85 22689
cannam@85 22690 _ACEOF
cannam@85 22691
cannam@85 22692 # Transform confdefs.h into two sed scripts, `conftest.defines' and
cannam@85 22693 # `conftest.undefs', that substitutes the proper values into
cannam@85 22694 # config.h.in to produce config.h. The first handles `#define'
cannam@85 22695 # templates, and the second `#undef' templates.
cannam@85 22696 # And first: Protect against being on the right side of a sed subst in
cannam@85 22697 # config.status. Protect against being in an unquoted here document
cannam@85 22698 # in config.status.
cannam@85 22699 rm -f conftest.defines conftest.undefs
cannam@85 22700 # Using a here document instead of a string reduces the quoting nightmare.
cannam@85 22701 # Putting comments in sed scripts is not portable.
cannam@85 22702 #
cannam@85 22703 # `end' is used to avoid that the second main sed command (meant for
cannam@85 22704 # 0-ary CPP macros) applies to n-ary macro definitions.
cannam@85 22705 # See the Autoconf documentation for `clear'.
cannam@85 22706 cat >confdef2sed.sed <<\_ACEOF
cannam@85 22707 s/[\\&,]/\\&/g
cannam@85 22708 s,[\\$`],\\&,g
cannam@85 22709 t clear
cannam@85 22710 : clear
cannam@85 22711 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
cannam@85 22712 t end
cannam@85 22713 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
cannam@85 22714 : end
cannam@85 22715 _ACEOF
cannam@85 22716 # If some macros were called several times there might be several times
cannam@85 22717 # the same #defines, which is useless. Nevertheless, we may not want to
cannam@85 22718 # sort them, since we want the *last* AC-DEFINE to be honored.
cannam@85 22719 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
cannam@85 22720 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
cannam@85 22721 rm -f confdef2sed.sed
cannam@85 22722
cannam@85 22723 # This sed command replaces #undef with comments. This is necessary, for
cannam@85 22724 # example, in the case of _POSIX_SOURCE, which is predefined and required
cannam@85 22725 # on some systems where configure will not decide to define it.
cannam@85 22726 cat >>conftest.undefs <<\_ACEOF
cannam@85 22727 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
cannam@85 22728 _ACEOF
cannam@85 22729
cannam@85 22730 # Break up conftest.defines because some shells have a limit on the size
cannam@85 22731 # of here documents, and old seds have small limits too (100 cmds).
cannam@85 22732 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
cannam@85 22733 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
cannam@85 22734 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
cannam@85 22735 echo ' :' >>$CONFIG_STATUS
cannam@85 22736 rm -f conftest.tail
cannam@85 22737 while grep . conftest.defines >/dev/null
cannam@85 22738 do
cannam@85 22739 # Write a limited-size here document to $tmp/defines.sed.
cannam@85 22740 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
cannam@85 22741 # Speed up: don't consider the non `#define' lines.
cannam@85 22742 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
cannam@85 22743 # Work around the forget-to-reset-the-flag bug.
cannam@85 22744 echo 't clr' >>$CONFIG_STATUS
cannam@85 22745 echo ': clr' >>$CONFIG_STATUS
cannam@85 22746 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
cannam@85 22747 echo 'CEOF
cannam@85 22748 sed -f $tmp/defines.sed $tmp/in >$tmp/out
cannam@85 22749 rm -f $tmp/in
cannam@85 22750 mv $tmp/out $tmp/in
cannam@85 22751 ' >>$CONFIG_STATUS
cannam@85 22752 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
cannam@85 22753 rm -f conftest.defines
cannam@85 22754 mv conftest.tail conftest.defines
cannam@85 22755 done
cannam@85 22756 rm -f conftest.defines
cannam@85 22757 echo ' fi # grep' >>$CONFIG_STATUS
cannam@85 22758 echo >>$CONFIG_STATUS
cannam@85 22759
cannam@85 22760 # Break up conftest.undefs because some shells have a limit on the size
cannam@85 22761 # of here documents, and old seds have small limits too (100 cmds).
cannam@85 22762 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
cannam@85 22763 rm -f conftest.tail
cannam@85 22764 while grep . conftest.undefs >/dev/null
cannam@85 22765 do
cannam@85 22766 # Write a limited-size here document to $tmp/undefs.sed.
cannam@85 22767 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
cannam@85 22768 # Speed up: don't consider the non `#undef'
cannam@85 22769 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
cannam@85 22770 # Work around the forget-to-reset-the-flag bug.
cannam@85 22771 echo 't clr' >>$CONFIG_STATUS
cannam@85 22772 echo ': clr' >>$CONFIG_STATUS
cannam@85 22773 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
cannam@85 22774 echo 'CEOF
cannam@85 22775 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
cannam@85 22776 rm -f $tmp/in
cannam@85 22777 mv $tmp/out $tmp/in
cannam@85 22778 ' >>$CONFIG_STATUS
cannam@85 22779 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
cannam@85 22780 rm -f conftest.undefs
cannam@85 22781 mv conftest.tail conftest.undefs
cannam@85 22782 done
cannam@85 22783 rm -f conftest.undefs
cannam@85 22784
cannam@85 22785 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 22786 # Let's still pretend it is `configure' which instantiates (i.e., don't
cannam@85 22787 # use $as_me), people would be surprised to read:
cannam@85 22788 # /* config.h. Generated by config.status. */
cannam@85 22789 if test x"$ac_file" = x-; then
cannam@85 22790 echo "/* Generated by configure. */" >$tmp/config.h
cannam@85 22791 else
cannam@85 22792 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
cannam@85 22793 fi
cannam@85 22794 cat $tmp/in >>$tmp/config.h
cannam@85 22795 rm -f $tmp/in
cannam@85 22796 if test x"$ac_file" != x-; then
cannam@85 22797 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
cannam@85 22798 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
cannam@85 22799 echo "$as_me: $ac_file is unchanged" >&6;}
cannam@85 22800 else
cannam@85 22801 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
cannam@85 22802 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 22803 X"$ac_file" : 'X\(//\)[^/]' \| \
cannam@85 22804 X"$ac_file" : 'X\(//\)$' \| \
cannam@85 22805 X"$ac_file" : 'X\(/\)' \| \
cannam@85 22806 . : '\(.\)' 2>/dev/null ||
cannam@85 22807 echo X"$ac_file" |
cannam@85 22808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
cannam@85 22809 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
cannam@85 22810 /^X\(\/\/\)$/{ s//\1/; q; }
cannam@85 22811 /^X\(\/\).*/{ s//\1/; q; }
cannam@85 22812 s/.*/./; q'`
cannam@85 22813 { if $as_mkdir_p; then
cannam@85 22814 mkdir -p "$ac_dir"
cannam@85 22815 else
cannam@85 22816 as_dir="$ac_dir"
cannam@85 22817 as_dirs=
cannam@85 22818 while test ! -d "$as_dir"; do
cannam@85 22819 as_dirs="$as_dir $as_dirs"
cannam@85 22820 as_dir=`(dirname "$as_dir") 2>/dev/null ||
cannam@85 22821 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 22822 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@85 22823 X"$as_dir" : 'X\(//\)$' \| \
cannam@85 22824 X"$as_dir" : 'X\(/\)' \| \
cannam@85 22825 . : '\(.\)' 2>/dev/null ||
cannam@85 22826 echo X"$as_dir" |
cannam@85 22827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
cannam@85 22828 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
cannam@85 22829 /^X\(\/\/\)$/{ s//\1/; q; }
cannam@85 22830 /^X\(\/\).*/{ s//\1/; q; }
cannam@85 22831 s/.*/./; q'`
cannam@85 22832 done
cannam@85 22833 test ! -n "$as_dirs" || mkdir $as_dirs
cannam@85 22834 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
cannam@85 22835 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
cannam@85 22836 { (exit 1); exit 1; }; }; }
cannam@85 22837
cannam@85 22838 rm -f $ac_file
cannam@85 22839 mv $tmp/config.h $ac_file
cannam@85 22840 fi
cannam@85 22841 else
cannam@85 22842 cat $tmp/config.h
cannam@85 22843 rm -f $tmp/config.h
cannam@85 22844 fi
cannam@85 22845 # Compute $ac_file's index in $config_headers.
cannam@85 22846 _am_stamp_count=1
cannam@85 22847 for _am_header in $config_headers :; do
cannam@85 22848 case $_am_header in
cannam@85 22849 $ac_file | $ac_file:* )
cannam@85 22850 break ;;
cannam@85 22851 * )
cannam@85 22852 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
cannam@85 22853 esac
cannam@85 22854 done
cannam@85 22855 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
cannam@85 22856 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 22857 X$ac_file : 'X\(//\)[^/]' \| \
cannam@85 22858 X$ac_file : 'X\(//\)$' \| \
cannam@85 22859 X$ac_file : 'X\(/\)' \| \
cannam@85 22860 . : '\(.\)' 2>/dev/null ||
cannam@85 22861 echo X$ac_file |
cannam@85 22862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
cannam@85 22863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
cannam@85 22864 /^X\(\/\/\)$/{ s//\1/; q; }
cannam@85 22865 /^X\(\/\).*/{ s//\1/; q; }
cannam@85 22866 s/.*/./; q'`/stamp-h$_am_stamp_count
cannam@85 22867 done
cannam@85 22868 _ACEOF
cannam@85 22869 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 22870
cannam@85 22871 #
cannam@85 22872 # CONFIG_COMMANDS section.
cannam@85 22873 #
cannam@85 22874 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
cannam@85 22875 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
cannam@85 22876 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
cannam@85 22877 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
cannam@85 22878 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 22879 X"$ac_dest" : 'X\(//\)[^/]' \| \
cannam@85 22880 X"$ac_dest" : 'X\(//\)$' \| \
cannam@85 22881 X"$ac_dest" : 'X\(/\)' \| \
cannam@85 22882 . : '\(.\)' 2>/dev/null ||
cannam@85 22883 echo X"$ac_dest" |
cannam@85 22884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
cannam@85 22885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
cannam@85 22886 /^X\(\/\/\)$/{ s//\1/; q; }
cannam@85 22887 /^X\(\/\).*/{ s//\1/; q; }
cannam@85 22888 s/.*/./; q'`
cannam@85 22889 { if $as_mkdir_p; then
cannam@85 22890 mkdir -p "$ac_dir"
cannam@85 22891 else
cannam@85 22892 as_dir="$ac_dir"
cannam@85 22893 as_dirs=
cannam@85 22894 while test ! -d "$as_dir"; do
cannam@85 22895 as_dirs="$as_dir $as_dirs"
cannam@85 22896 as_dir=`(dirname "$as_dir") 2>/dev/null ||
cannam@85 22897 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 22898 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@85 22899 X"$as_dir" : 'X\(//\)$' \| \
cannam@85 22900 X"$as_dir" : 'X\(/\)' \| \
cannam@85 22901 . : '\(.\)' 2>/dev/null ||
cannam@85 22902 echo X"$as_dir" |
cannam@85 22903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
cannam@85 22904 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
cannam@85 22905 /^X\(\/\/\)$/{ s//\1/; q; }
cannam@85 22906 /^X\(\/\).*/{ s//\1/; q; }
cannam@85 22907 s/.*/./; q'`
cannam@85 22908 done
cannam@85 22909 test ! -n "$as_dirs" || mkdir $as_dirs
cannam@85 22910 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
cannam@85 22911 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
cannam@85 22912 { (exit 1); exit 1; }; }; }
cannam@85 22913
cannam@85 22914 ac_builddir=.
cannam@85 22915
cannam@85 22916 if test "$ac_dir" != .; then
cannam@85 22917 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
cannam@85 22918 # A "../" for each directory in $ac_dir_suffix.
cannam@85 22919 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
cannam@85 22920 else
cannam@85 22921 ac_dir_suffix= ac_top_builddir=
cannam@85 22922 fi
cannam@85 22923
cannam@85 22924 case $srcdir in
cannam@85 22925 .) # No --srcdir option. We are building in place.
cannam@85 22926 ac_srcdir=.
cannam@85 22927 if test -z "$ac_top_builddir"; then
cannam@85 22928 ac_top_srcdir=.
cannam@85 22929 else
cannam@85 22930 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
cannam@85 22931 fi ;;
cannam@85 22932 [\\/]* | ?:[\\/]* ) # Absolute path.
cannam@85 22933 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@85 22934 ac_top_srcdir=$srcdir ;;
cannam@85 22935 *) # Relative path.
cannam@85 22936 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
cannam@85 22937 ac_top_srcdir=$ac_top_builddir$srcdir ;;
cannam@85 22938 esac
cannam@85 22939
cannam@85 22940 # Do not use `cd foo && pwd` to compute absolute paths, because
cannam@85 22941 # the directories may not exist.
cannam@85 22942 case `pwd` in
cannam@85 22943 .) ac_abs_builddir="$ac_dir";;
cannam@85 22944 *)
cannam@85 22945 case "$ac_dir" in
cannam@85 22946 .) ac_abs_builddir=`pwd`;;
cannam@85 22947 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
cannam@85 22948 *) ac_abs_builddir=`pwd`/"$ac_dir";;
cannam@85 22949 esac;;
cannam@85 22950 esac
cannam@85 22951 case $ac_abs_builddir in
cannam@85 22952 .) ac_abs_top_builddir=${ac_top_builddir}.;;
cannam@85 22953 *)
cannam@85 22954 case ${ac_top_builddir}. in
cannam@85 22955 .) ac_abs_top_builddir=$ac_abs_builddir;;
cannam@85 22956 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
cannam@85 22957 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
cannam@85 22958 esac;;
cannam@85 22959 esac
cannam@85 22960 case $ac_abs_builddir in
cannam@85 22961 .) ac_abs_srcdir=$ac_srcdir;;
cannam@85 22962 *)
cannam@85 22963 case $ac_srcdir in
cannam@85 22964 .) ac_abs_srcdir=$ac_abs_builddir;;
cannam@85 22965 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
cannam@85 22966 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
cannam@85 22967 esac;;
cannam@85 22968 esac
cannam@85 22969 case $ac_abs_builddir in
cannam@85 22970 .) ac_abs_top_srcdir=$ac_top_srcdir;;
cannam@85 22971 *)
cannam@85 22972 case $ac_top_srcdir in
cannam@85 22973 .) ac_abs_top_srcdir=$ac_abs_builddir;;
cannam@85 22974 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
cannam@85 22975 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
cannam@85 22976 esac;;
cannam@85 22977 esac
cannam@85 22978
cannam@85 22979
cannam@85 22980 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
cannam@85 22981 echo "$as_me: executing $ac_dest commands" >&6;}
cannam@85 22982 case $ac_dest in
cannam@85 22983 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
cannam@85 22984 # Strip MF so we end up with the name of the file.
cannam@85 22985 mf=`echo "$mf" | sed -e 's/:.*$//'`
cannam@85 22986 # Check whether this is an Automake generated Makefile or not.
cannam@85 22987 # We used to match only the files named `Makefile.in', but
cannam@85 22988 # some people rename them; so instead we look at the file content.
cannam@85 22989 # Grep'ing the first line is not enough: some people post-process
cannam@85 22990 # each Makefile.in and add a new line on top of each file to say so.
cannam@85 22991 # So let's grep whole file.
cannam@85 22992 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
cannam@85 22993 dirpart=`(dirname "$mf") 2>/dev/null ||
cannam@85 22994 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 22995 X"$mf" : 'X\(//\)[^/]' \| \
cannam@85 22996 X"$mf" : 'X\(//\)$' \| \
cannam@85 22997 X"$mf" : 'X\(/\)' \| \
cannam@85 22998 . : '\(.\)' 2>/dev/null ||
cannam@85 22999 echo X"$mf" |
cannam@85 23000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
cannam@85 23001 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
cannam@85 23002 /^X\(\/\/\)$/{ s//\1/; q; }
cannam@85 23003 /^X\(\/\).*/{ s//\1/; q; }
cannam@85 23004 s/.*/./; q'`
cannam@85 23005 else
cannam@85 23006 continue
cannam@85 23007 fi
cannam@85 23008 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
cannam@85 23009 # Extract the definition of DEP_FILES from the Makefile without
cannam@85 23010 # running `make'.
cannam@85 23011 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
cannam@85 23012 test -z "$DEPDIR" && continue
cannam@85 23013 # When using ansi2knr, U may be empty or an underscore; expand it
cannam@85 23014 U=`sed -n -e '/^U = / s///p' < "$mf"`
cannam@85 23015 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
cannam@85 23016 # We invoke sed twice because it is the simplest approach to
cannam@85 23017 # changing $(DEPDIR) to its actual value in the expansion.
cannam@85 23018 for file in `sed -n -e '
cannam@85 23019 /^DEP_FILES = .*\\\\$/ {
cannam@85 23020 s/^DEP_FILES = //
cannam@85 23021 :loop
cannam@85 23022 s/\\\\$//
cannam@85 23023 p
cannam@85 23024 n
cannam@85 23025 /\\\\$/ b loop
cannam@85 23026 p
cannam@85 23027 }
cannam@85 23028 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
cannam@85 23029 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
cannam@85 23030 # Make sure the directory exists.
cannam@85 23031 test -f "$dirpart/$file" && continue
cannam@85 23032 fdir=`(dirname "$file") 2>/dev/null ||
cannam@85 23033 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 23034 X"$file" : 'X\(//\)[^/]' \| \
cannam@85 23035 X"$file" : 'X\(//\)$' \| \
cannam@85 23036 X"$file" : 'X\(/\)' \| \
cannam@85 23037 . : '\(.\)' 2>/dev/null ||
cannam@85 23038 echo X"$file" |
cannam@85 23039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
cannam@85 23040 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
cannam@85 23041 /^X\(\/\/\)$/{ s//\1/; q; }
cannam@85 23042 /^X\(\/\).*/{ s//\1/; q; }
cannam@85 23043 s/.*/./; q'`
cannam@85 23044 { if $as_mkdir_p; then
cannam@85 23045 mkdir -p $dirpart/$fdir
cannam@85 23046 else
cannam@85 23047 as_dir=$dirpart/$fdir
cannam@85 23048 as_dirs=
cannam@85 23049 while test ! -d "$as_dir"; do
cannam@85 23050 as_dirs="$as_dir $as_dirs"
cannam@85 23051 as_dir=`(dirname "$as_dir") 2>/dev/null ||
cannam@85 23052 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 23053 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@85 23054 X"$as_dir" : 'X\(//\)$' \| \
cannam@85 23055 X"$as_dir" : 'X\(/\)' \| \
cannam@85 23056 . : '\(.\)' 2>/dev/null ||
cannam@85 23057 echo X"$as_dir" |
cannam@85 23058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
cannam@85 23059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
cannam@85 23060 /^X\(\/\/\)$/{ s//\1/; q; }
cannam@85 23061 /^X\(\/\).*/{ s//\1/; q; }
cannam@85 23062 s/.*/./; q'`
cannam@85 23063 done
cannam@85 23064 test ! -n "$as_dirs" || mkdir $as_dirs
cannam@85 23065 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
cannam@85 23066 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
cannam@85 23067 { (exit 1); exit 1; }; }; }
cannam@85 23068
cannam@85 23069 # echo "creating $dirpart/$file"
cannam@85 23070 echo '# dummy' > "$dirpart/$file"
cannam@85 23071 done
cannam@85 23072 done
cannam@85 23073 ;;
cannam@85 23074 esac
cannam@85 23075 done
cannam@85 23076 _ACEOF
cannam@85 23077
cannam@85 23078 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 23079
cannam@85 23080 { (exit 0); exit 0; }
cannam@85 23081 _ACEOF
cannam@85 23082 chmod +x $CONFIG_STATUS
cannam@85 23083 ac_clean_files=$ac_clean_files_save
cannam@85 23084
cannam@85 23085
cannam@85 23086 # configure is writing to config.log, and then calls config.status.
cannam@85 23087 # config.status does its own redirection, appending to config.log.
cannam@85 23088 # Unfortunately, on DOS this fails, as config.log is still kept open
cannam@85 23089 # by configure, so config.status won't be able to write to it; its
cannam@85 23090 # output is simply discarded. So we exec the FD to /dev/null,
cannam@85 23091 # effectively closing config.log, so it can be properly (re)opened and
cannam@85 23092 # appended to by config.status. When coming back to configure, we
cannam@85 23093 # need to make the FD available again.
cannam@85 23094 if test "$no_create" != yes; then
cannam@85 23095 ac_cs_success=:
cannam@85 23096 ac_config_status_args=
cannam@85 23097 test "$silent" = yes &&
cannam@85 23098 ac_config_status_args="$ac_config_status_args --quiet"
cannam@85 23099 exec 5>/dev/null
cannam@85 23100 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
cannam@85 23101 exec 5>>config.log
cannam@85 23102 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
cannam@85 23103 # would make configure fail if this is the last instruction.
cannam@85 23104 $ac_cs_success || { (exit 1); exit 1; }
cannam@85 23105 fi
cannam@85 23106