John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.57 for [LLVM] [1.1]. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 6 | # |
| 7 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 8 | # Free Software Foundation, Inc. |
| 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11 | ## --------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## --------------------- ## |
| 14 | |
| 15 | # Be Bourne compatible |
| 16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17 | emulate sh |
| 18 | NULLCMD=: |
| 19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20 | # is contrary to our usage. Disable this feature. |
| 21 | alias -g '${1+"$@"}'='"$@"' |
| 22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 23 | set -o posix |
| 24 | fi |
| 25 | |
| 26 | # Support unset when possible. |
| 27 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 28 | as_unset=unset |
| 29 | else |
| 30 | as_unset=false |
| 31 | fi |
| 32 | |
| 33 | |
| 34 | # Work around bugs in pre-3.0 UWIN ksh. |
| 35 | $as_unset ENV MAIL MAILPATH |
| 36 | PS1='$ ' |
| 37 | PS2='> ' |
| 38 | PS4='+ ' |
| 39 | |
| 40 | # NLS nuisances. |
| 41 | for as_var in \ |
| 42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 44 | LC_TELEPHONE LC_TIME |
| 45 | do |
| 46 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 47 | eval $as_var=C; export $as_var |
| 48 | else |
| 49 | $as_unset $as_var |
| 50 | fi |
| 51 | done |
| 52 | |
| 53 | # Required to use basename. |
| 54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 55 | as_expr=expr |
| 56 | else |
| 57 | as_expr=false |
| 58 | fi |
| 59 | |
| 60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 61 | as_basename=basename |
| 62 | else |
| 63 | as_basename=false |
| 64 | fi |
| 65 | |
| 66 | |
| 67 | # Name of the executable. |
| 68 | as_me=`$as_basename "$0" || |
| 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 70 | X"$0" : 'X\(//\)$' \| \ |
| 71 | X"$0" : 'X\(/\)$' \| \ |
| 72 | . : '\(.\)' 2>/dev/null || |
| 73 | echo X/"$0" | |
| 74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 76 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 77 | s/.*/./; q'` |
| 78 | |
| 79 | |
| 80 | # PATH needs CR, and LINENO needs CR and PATH. |
| 81 | # Avoid depending upon Character Ranges. |
| 82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 85 | as_cr_digits='0123456789' |
| 86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 87 | |
| 88 | # The user is always right. |
| 89 | if test "${PATH_SEPARATOR+set}" != set; then |
| 90 | echo "#! /bin/sh" >conf$$.sh |
| 91 | echo "exit 0" >>conf$$.sh |
| 92 | chmod +x conf$$.sh |
| 93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 94 | PATH_SEPARATOR=';' |
| 95 | else |
| 96 | PATH_SEPARATOR=: |
| 97 | fi |
| 98 | rm -f conf$$.sh |
| 99 | fi |
| 100 | |
| 101 | |
| 102 | as_lineno_1=$LINENO |
| 103 | as_lineno_2=$LINENO |
| 104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 107 | # Find who we are. Look in the path if we contain no path at all |
| 108 | # relative or not. |
| 109 | case $0 in |
| 110 | *[\\/]* ) as_myself=$0 ;; |
| 111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 112 | for as_dir in $PATH |
| 113 | do |
| 114 | IFS=$as_save_IFS |
| 115 | test -z "$as_dir" && as_dir=. |
| 116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 117 | done |
| 118 | |
| 119 | ;; |
| 120 | esac |
| 121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 122 | # in which case we are not to be found in the path. |
| 123 | if test "x$as_myself" = x; then |
| 124 | as_myself=$0 |
| 125 | fi |
| 126 | if test ! -f "$as_myself"; then |
| 127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 128 | { (exit 1); exit 1; }; } |
| 129 | fi |
| 130 | case $CONFIG_SHELL in |
| 131 | '') |
| 132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 134 | do |
| 135 | IFS=$as_save_IFS |
| 136 | test -z "$as_dir" && as_dir=. |
| 137 | for as_base in sh bash ksh sh5; do |
| 138 | case $as_dir in |
| 139 | /*) |
| 140 | if ("$as_dir/$as_base" -c ' |
| 141 | as_lineno_1=$LINENO |
| 142 | as_lineno_2=$LINENO |
| 143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 148 | CONFIG_SHELL=$as_dir/$as_base |
| 149 | export CONFIG_SHELL |
| 150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 151 | fi;; |
| 152 | esac |
| 153 | done |
| 154 | done |
| 155 | ;; |
| 156 | esac |
| 157 | |
| 158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 159 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 160 | # line-number line before each line; the second 'sed' does the real |
| 161 | # work. The second script uses 'N' to pair each line-number line |
| 162 | # with the numbered line, and appends trailing '-' during |
| 163 | # substitution so that $LINENO is not a special case at line end. |
| 164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 166 | sed '=' <$as_myself | |
| 167 | sed ' |
| 168 | N |
| 169 | s,$,-, |
| 170 | : loop |
| 171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 172 | t loop |
| 173 | s,-$,, |
| 174 | s,^['$as_cr_digits']*\n,, |
| 175 | ' >$as_me.lineno && |
| 176 | chmod +x $as_me.lineno || |
| 177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 178 | { (exit 1); exit 1; }; } |
| 179 | |
| 180 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 181 | # (the dirname of $[0] is not the place where we might find the |
| 182 | # original and so on. Autoconf is especially sensible to this). |
| 183 | . ./$as_me.lineno |
| 184 | # Exit status is that of the last command. |
| 185 | exit |
| 186 | } |
| 187 | |
| 188 | |
| 189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 190 | *c*,-n*) ECHO_N= ECHO_C=' |
| 191 | ' ECHO_T=' ' ;; |
| 192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 194 | esac |
| 195 | |
| 196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 197 | as_expr=expr |
| 198 | else |
| 199 | as_expr=false |
| 200 | fi |
| 201 | |
| 202 | rm -f conf$$ conf$$.exe conf$$.file |
| 203 | echo >conf$$.file |
| 204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 205 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 207 | if test -f conf$$.exe; then |
| 208 | # Don't use ln at all; we don't have any links |
| 209 | as_ln_s='cp -p' |
| 210 | else |
| 211 | as_ln_s='ln -s' |
| 212 | fi |
| 213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 214 | as_ln_s=ln |
| 215 | else |
| 216 | as_ln_s='cp -p' |
| 217 | fi |
| 218 | rm -f conf$$ conf$$.exe conf$$.file |
| 219 | |
| 220 | if mkdir -p . 2>/dev/null; then |
| 221 | as_mkdir_p=: |
| 222 | else |
| 223 | as_mkdir_p=false |
| 224 | fi |
| 225 | |
| 226 | as_executable_p="test -f" |
| 227 | |
| 228 | # Sed expression to map a string onto a valid CPP name. |
| 229 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 230 | |
| 231 | # Sed expression to map a string onto a valid variable name. |
| 232 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 233 | |
| 234 | |
| 235 | # IFS |
| 236 | # We need space, tab and new line, in precisely that order. |
| 237 | as_nl=' |
| 238 | ' |
| 239 | IFS=" $as_nl" |
| 240 | |
| 241 | # CDPATH. |
| 242 | $as_unset CDPATH |
| 243 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 244 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 245 | |
| 246 | # Check that we are running under the correct shell. |
| 247 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 248 | |
| 249 | case X$ECHO in |
| 250 | X*--fallback-echo) |
| 251 | # Remove one level of quotation (which was required for Make). |
| 252 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 253 | ;; |
| 254 | esac |
| 255 | |
| 256 | echo=${ECHO-echo} |
| 257 | if test "X$1" = X--no-reexec; then |
| 258 | # Discard the --no-reexec flag, and continue. |
| 259 | shift |
| 260 | elif test "X$1" = X--fallback-echo; then |
| 261 | # Avoid inline document here, it may be left over |
| 262 | : |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 263 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 264 | # Yippee, $echo works! |
| 265 | : |
| 266 | else |
| 267 | # Restart under the correct shell. |
| 268 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 269 | fi |
| 270 | |
| 271 | if test "X$1" = X--fallback-echo; then |
| 272 | # used as fallback echo |
| 273 | shift |
| 274 | cat <<EOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 275 | $* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 276 | EOF |
| 277 | exit 0 |
| 278 | fi |
| 279 | |
| 280 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 281 | # if CDPATH is set. |
| 282 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 283 | |
| 284 | if test -z "$ECHO"; then |
| 285 | if test "X${echo_test_string+set}" != Xset; then |
| 286 | # find a string as large as possible, as long as the shell can cope with it |
| 287 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 288 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 289 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 290 | echo_test_string="`eval $cmd`" && |
| 291 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 292 | then |
| 293 | break |
| 294 | fi |
| 295 | done |
| 296 | fi |
| 297 | |
| 298 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 299 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 300 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 301 | : |
| 302 | else |
| 303 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 304 | # backslashes. This makes it impossible to quote backslashes using |
| 305 | # echo "$something" | sed 's/\\/\\\\/g' |
| 306 | # |
| 307 | # So, first we look for a working echo in the user's PATH. |
| 308 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 309 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 310 | for dir in $PATH /usr/ucb; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 311 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 312 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 313 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 314 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 315 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 316 | echo="$dir/echo" |
| 317 | break |
| 318 | fi |
| 319 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 320 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 321 | |
| 322 | if test "X$echo" = Xecho; then |
| 323 | # We didn't find a better echo, so look for alternatives. |
| 324 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 325 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 326 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 327 | # This shell has a builtin print -r that does the trick. |
| 328 | echo='print -r' |
| 329 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 330 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 331 | # If we have ksh, try running configure again with it. |
| 332 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 333 | export ORIGINAL_CONFIG_SHELL |
| 334 | CONFIG_SHELL=/bin/ksh |
| 335 | export CONFIG_SHELL |
| 336 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 337 | else |
| 338 | # Try using printf. |
| 339 | echo='printf %s\n' |
| 340 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 341 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 342 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 343 | # Cool, printf works |
| 344 | : |
| 345 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 346 | test "X$echo_testing_string" = 'X\t' && |
| 347 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 348 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 349 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 350 | export CONFIG_SHELL |
| 351 | SHELL="$CONFIG_SHELL" |
| 352 | export SHELL |
| 353 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 354 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 355 | test "X$echo_testing_string" = 'X\t' && |
| 356 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 357 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 358 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 359 | else |
| 360 | # maybe with a smaller string... |
| 361 | prev=: |
| 362 | |
| 363 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 364 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 365 | then |
| 366 | break |
| 367 | fi |
| 368 | prev="$cmd" |
| 369 | done |
| 370 | |
| 371 | if test "$prev" != 'sed 50q "$0"'; then |
| 372 | echo_test_string=`eval $prev` |
| 373 | export echo_test_string |
| 374 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 375 | else |
| 376 | # Oops. We lost completely, so just stick with echo. |
| 377 | echo=echo |
| 378 | fi |
| 379 | fi |
| 380 | fi |
| 381 | fi |
| 382 | fi |
| 383 | fi |
| 384 | |
| 385 | # Copy echo and quote the copy suitably for passing to libtool from |
| 386 | # the Makefile, instead of quoting the original, which is used later. |
| 387 | ECHO=$echo |
| 388 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 389 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 390 | fi |
| 391 | |
| 392 | |
| 393 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 394 | |
| 395 | tagnames=`echo "$tagnames,CXX" | sed 's/^,//'` |
| 396 | |
| 397 | tagnames=`echo "$tagnames,F77" | sed 's/^,//'` |
| 398 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 399 | # Name of the host. |
| 400 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 401 | # so uname gets run too. |
| 402 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 403 | |
| 404 | exec 6>&1 |
| 405 | |
| 406 | # |
| 407 | # Initializations. |
| 408 | # |
| 409 | ac_default_prefix=/usr/local |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 410 | ac_config_libobj_dir=. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 411 | cross_compiling=no |
| 412 | subdirs= |
| 413 | MFLAGS= |
| 414 | MAKEFLAGS= |
| 415 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 416 | |
| 417 | # Maximum number of lines to put in a shell here document. |
| 418 | # This variable seems obsolete. It should probably be removed, and |
| 419 | # only ac_max_sed_lines should be used. |
| 420 | : ${ac_max_here_lines=38} |
| 421 | |
| 422 | # Identity of this package. |
| 423 | PACKAGE_NAME='[LLVM]' |
| 424 | PACKAGE_TARNAME='--llvm--' |
John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 425 | PACKAGE_VERSION='[1.1]' |
| 426 | PACKAGE_STRING='[LLVM] [1.1]' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 427 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' |
| 428 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 429 | ac_subdirs_all="$ac_subdirs_all projects/${i}" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 430 | # Factoring default headers for most tests. |
| 431 | ac_includes_default="\ |
| 432 | #include <stdio.h> |
| 433 | #if HAVE_SYS_TYPES_H |
| 434 | # include <sys/types.h> |
| 435 | #endif |
| 436 | #if HAVE_SYS_STAT_H |
| 437 | # include <sys/stat.h> |
| 438 | #endif |
| 439 | #if STDC_HEADERS |
| 440 | # include <stdlib.h> |
| 441 | # include <stddef.h> |
| 442 | #else |
| 443 | # if HAVE_STDLIB_H |
| 444 | # include <stdlib.h> |
| 445 | # endif |
| 446 | #endif |
| 447 | #if HAVE_STRING_H |
| 448 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 449 | # include <memory.h> |
| 450 | # endif |
| 451 | # include <string.h> |
| 452 | #endif |
| 453 | #if HAVE_STRINGS_H |
| 454 | # include <strings.h> |
| 455 | #endif |
| 456 | #if HAVE_INTTYPES_H |
| 457 | # include <inttypes.h> |
| 458 | #else |
| 459 | # if HAVE_STDINT_H |
| 460 | # include <stdint.h> |
| 461 | # endif |
| 462 | #endif |
| 463 | #if HAVE_UNISTD_H |
| 464 | # include <unistd.h> |
| 465 | #endif" |
| 466 | |
| 467 | ac_unique_file=""Makefile.config.in"" |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 468 | 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 subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST ENDIAN ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC SPEC95_ROOT USE_SPEC95 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LIBOBJS LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 469 | ac_subst_files='' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 470 | |
| 471 | # Initialize some variables set by options. |
| 472 | ac_init_help= |
| 473 | ac_init_version=false |
| 474 | # The variables have the same names as the options, with |
| 475 | # dashes changed to underlines. |
| 476 | cache_file=/dev/null |
| 477 | exec_prefix=NONE |
| 478 | no_create= |
| 479 | no_recursion= |
| 480 | prefix=NONE |
| 481 | program_prefix=NONE |
| 482 | program_suffix=NONE |
| 483 | program_transform_name=s,x,x, |
| 484 | silent= |
| 485 | site= |
| 486 | srcdir= |
| 487 | verbose= |
| 488 | x_includes=NONE |
| 489 | x_libraries=NONE |
| 490 | |
| 491 | # Installation directory options. |
| 492 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 493 | # and all the variables that are supposed to be based on exec_prefix |
| 494 | # by default will actually change. |
| 495 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 496 | bindir='${exec_prefix}/bin' |
| 497 | sbindir='${exec_prefix}/sbin' |
| 498 | libexecdir='${exec_prefix}/libexec' |
| 499 | datadir='${prefix}/share' |
| 500 | sysconfdir='${prefix}/etc' |
| 501 | sharedstatedir='${prefix}/com' |
| 502 | localstatedir='${prefix}/var' |
| 503 | libdir='${exec_prefix}/lib' |
| 504 | includedir='${prefix}/include' |
| 505 | oldincludedir='/usr/include' |
| 506 | infodir='${prefix}/info' |
| 507 | mandir='${prefix}/man' |
| 508 | |
| 509 | ac_prev= |
| 510 | for ac_option |
| 511 | do |
| 512 | # If the previous option needs an argument, assign it. |
| 513 | if test -n "$ac_prev"; then |
| 514 | eval "$ac_prev=\$ac_option" |
| 515 | ac_prev= |
| 516 | continue |
| 517 | fi |
| 518 | |
| 519 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 520 | |
| 521 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 522 | |
| 523 | case $ac_option in |
| 524 | |
| 525 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 526 | ac_prev=bindir ;; |
| 527 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 528 | bindir=$ac_optarg ;; |
| 529 | |
| 530 | -build | --build | --buil | --bui | --bu) |
| 531 | ac_prev=build_alias ;; |
| 532 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 533 | build_alias=$ac_optarg ;; |
| 534 | |
| 535 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 536 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 537 | ac_prev=cache_file ;; |
| 538 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 539 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 540 | cache_file=$ac_optarg ;; |
| 541 | |
| 542 | --config-cache | -C) |
| 543 | cache_file=config.cache ;; |
| 544 | |
| 545 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 546 | ac_prev=datadir ;; |
| 547 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 548 | | --da=*) |
| 549 | datadir=$ac_optarg ;; |
| 550 | |
| 551 | -disable-* | --disable-*) |
| 552 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 553 | # Reject names that are not valid shell variable names. |
| 554 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 555 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 556 | { (exit 1); exit 1; }; } |
| 557 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 558 | eval "enable_$ac_feature=no" ;; |
| 559 | |
| 560 | -enable-* | --enable-*) |
| 561 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 562 | # Reject names that are not valid shell variable names. |
| 563 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 564 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 565 | { (exit 1); exit 1; }; } |
| 566 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 567 | case $ac_option in |
| 568 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 569 | *) ac_optarg=yes ;; |
| 570 | esac |
| 571 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 572 | |
| 573 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 574 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 575 | | --exec | --exe | --ex) |
| 576 | ac_prev=exec_prefix ;; |
| 577 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 578 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 579 | | --exec=* | --exe=* | --ex=*) |
| 580 | exec_prefix=$ac_optarg ;; |
| 581 | |
| 582 | -gas | --gas | --ga | --g) |
| 583 | # Obsolete; use --with-gas. |
| 584 | with_gas=yes ;; |
| 585 | |
| 586 | -help | --help | --hel | --he | -h) |
| 587 | ac_init_help=long ;; |
| 588 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 589 | ac_init_help=recursive ;; |
| 590 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 591 | ac_init_help=short ;; |
| 592 | |
| 593 | -host | --host | --hos | --ho) |
| 594 | ac_prev=host_alias ;; |
| 595 | -host=* | --host=* | --hos=* | --ho=*) |
| 596 | host_alias=$ac_optarg ;; |
| 597 | |
| 598 | -includedir | --includedir | --includedi | --included | --include \ |
| 599 | | --includ | --inclu | --incl | --inc) |
| 600 | ac_prev=includedir ;; |
| 601 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 602 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 603 | includedir=$ac_optarg ;; |
| 604 | |
| 605 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 606 | ac_prev=infodir ;; |
| 607 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 608 | infodir=$ac_optarg ;; |
| 609 | |
| 610 | -libdir | --libdir | --libdi | --libd) |
| 611 | ac_prev=libdir ;; |
| 612 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 613 | libdir=$ac_optarg ;; |
| 614 | |
| 615 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 616 | | --libexe | --libex | --libe) |
| 617 | ac_prev=libexecdir ;; |
| 618 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 619 | | --libexe=* | --libex=* | --libe=*) |
| 620 | libexecdir=$ac_optarg ;; |
| 621 | |
| 622 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 623 | | --localstate | --localstat | --localsta | --localst \ |
| 624 | | --locals | --local | --loca | --loc | --lo) |
| 625 | ac_prev=localstatedir ;; |
| 626 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 627 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 628 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 629 | localstatedir=$ac_optarg ;; |
| 630 | |
| 631 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 632 | ac_prev=mandir ;; |
| 633 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 634 | mandir=$ac_optarg ;; |
| 635 | |
| 636 | -nfp | --nfp | --nf) |
| 637 | # Obsolete; use --without-fp. |
| 638 | with_fp=no ;; |
| 639 | |
| 640 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 641 | | --no-cr | --no-c | -n) |
| 642 | no_create=yes ;; |
| 643 | |
| 644 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 645 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 646 | no_recursion=yes ;; |
| 647 | |
| 648 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 649 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 650 | | --oldin | --oldi | --old | --ol | --o) |
| 651 | ac_prev=oldincludedir ;; |
| 652 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 653 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 654 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 655 | oldincludedir=$ac_optarg ;; |
| 656 | |
| 657 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 658 | ac_prev=prefix ;; |
| 659 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 660 | prefix=$ac_optarg ;; |
| 661 | |
| 662 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 663 | | --program-pre | --program-pr | --program-p) |
| 664 | ac_prev=program_prefix ;; |
| 665 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 666 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 667 | program_prefix=$ac_optarg ;; |
| 668 | |
| 669 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 670 | | --program-suf | --program-su | --program-s) |
| 671 | ac_prev=program_suffix ;; |
| 672 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 673 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 674 | program_suffix=$ac_optarg ;; |
| 675 | |
| 676 | -program-transform-name | --program-transform-name \ |
| 677 | | --program-transform-nam | --program-transform-na \ |
| 678 | | --program-transform-n | --program-transform- \ |
| 679 | | --program-transform | --program-transfor \ |
| 680 | | --program-transfo | --program-transf \ |
| 681 | | --program-trans | --program-tran \ |
| 682 | | --progr-tra | --program-tr | --program-t) |
| 683 | ac_prev=program_transform_name ;; |
| 684 | -program-transform-name=* | --program-transform-name=* \ |
| 685 | | --program-transform-nam=* | --program-transform-na=* \ |
| 686 | | --program-transform-n=* | --program-transform-=* \ |
| 687 | | --program-transform=* | --program-transfor=* \ |
| 688 | | --program-transfo=* | --program-transf=* \ |
| 689 | | --program-trans=* | --program-tran=* \ |
| 690 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 691 | program_transform_name=$ac_optarg ;; |
| 692 | |
| 693 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 694 | | -silent | --silent | --silen | --sile | --sil) |
| 695 | silent=yes ;; |
| 696 | |
| 697 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 698 | ac_prev=sbindir ;; |
| 699 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 700 | | --sbi=* | --sb=*) |
| 701 | sbindir=$ac_optarg ;; |
| 702 | |
| 703 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 704 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 705 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 706 | | --sha | --sh) |
| 707 | ac_prev=sharedstatedir ;; |
| 708 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 709 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 710 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 711 | | --sha=* | --sh=*) |
| 712 | sharedstatedir=$ac_optarg ;; |
| 713 | |
| 714 | -site | --site | --sit) |
| 715 | ac_prev=site ;; |
| 716 | -site=* | --site=* | --sit=*) |
| 717 | site=$ac_optarg ;; |
| 718 | |
| 719 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 720 | ac_prev=srcdir ;; |
| 721 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 722 | srcdir=$ac_optarg ;; |
| 723 | |
| 724 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 725 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 726 | ac_prev=sysconfdir ;; |
| 727 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 728 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 729 | sysconfdir=$ac_optarg ;; |
| 730 | |
| 731 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 732 | ac_prev=target_alias ;; |
| 733 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 734 | target_alias=$ac_optarg ;; |
| 735 | |
| 736 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 737 | verbose=yes ;; |
| 738 | |
| 739 | -version | --version | --versio | --versi | --vers | -V) |
| 740 | ac_init_version=: ;; |
| 741 | |
| 742 | -with-* | --with-*) |
| 743 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 744 | # Reject names that are not valid shell variable names. |
| 745 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 746 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 747 | { (exit 1); exit 1; }; } |
| 748 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 749 | case $ac_option in |
| 750 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 751 | *) ac_optarg=yes ;; |
| 752 | esac |
| 753 | eval "with_$ac_package='$ac_optarg'" ;; |
| 754 | |
| 755 | -without-* | --without-*) |
| 756 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 757 | # Reject names that are not valid shell variable names. |
| 758 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 759 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 760 | { (exit 1); exit 1; }; } |
| 761 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 762 | eval "with_$ac_package=no" ;; |
| 763 | |
| 764 | --x) |
| 765 | # Obsolete; use --with-x. |
| 766 | with_x=yes ;; |
| 767 | |
| 768 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 769 | | --x-incl | --x-inc | --x-in | --x-i) |
| 770 | ac_prev=x_includes ;; |
| 771 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 772 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 773 | x_includes=$ac_optarg ;; |
| 774 | |
| 775 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 776 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 777 | ac_prev=x_libraries ;; |
| 778 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 779 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 780 | x_libraries=$ac_optarg ;; |
| 781 | |
| 782 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 783 | Try \`$0 --help' for more information." >&2 |
| 784 | { (exit 1); exit 1; }; } |
| 785 | ;; |
| 786 | |
| 787 | *=*) |
| 788 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 789 | # Reject names that are not valid shell variable names. |
| 790 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 791 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 792 | { (exit 1); exit 1; }; } |
| 793 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 794 | eval "$ac_envvar='$ac_optarg'" |
| 795 | export $ac_envvar ;; |
| 796 | |
| 797 | *) |
| 798 | # FIXME: should be removed in autoconf 3.0. |
| 799 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 800 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 801 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 802 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 803 | ;; |
| 804 | |
| 805 | esac |
| 806 | done |
| 807 | |
| 808 | if test -n "$ac_prev"; then |
| 809 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 810 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 811 | { (exit 1); exit 1; }; } |
| 812 | fi |
| 813 | |
| 814 | # Be sure to have absolute paths. |
| 815 | for ac_var in exec_prefix prefix |
| 816 | do |
| 817 | eval ac_val=$`echo $ac_var` |
| 818 | case $ac_val in |
| 819 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 820 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 821 | { (exit 1); exit 1; }; };; |
| 822 | esac |
| 823 | done |
| 824 | |
| 825 | # Be sure to have absolute paths. |
| 826 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 827 | localstatedir libdir includedir oldincludedir infodir mandir |
| 828 | do |
| 829 | eval ac_val=$`echo $ac_var` |
| 830 | case $ac_val in |
| 831 | [\\/$]* | ?:[\\/]* ) ;; |
| 832 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 833 | { (exit 1); exit 1; }; };; |
| 834 | esac |
| 835 | done |
| 836 | |
| 837 | # There might be people who depend on the old broken behavior: `$host' |
| 838 | # used to hold the argument of --host etc. |
| 839 | # FIXME: To remove some day. |
| 840 | build=$build_alias |
| 841 | host=$host_alias |
| 842 | target=$target_alias |
| 843 | |
| 844 | # FIXME: To remove some day. |
| 845 | if test "x$host_alias" != x; then |
| 846 | if test "x$build_alias" = x; then |
| 847 | cross_compiling=maybe |
| 848 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 849 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 850 | elif test "x$build_alias" != "x$host_alias"; then |
| 851 | cross_compiling=yes |
| 852 | fi |
| 853 | fi |
| 854 | |
| 855 | ac_tool_prefix= |
| 856 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 857 | |
| 858 | test "$silent" = yes && exec 6>/dev/null |
| 859 | |
| 860 | |
| 861 | # Find the source files, if location was not specified. |
| 862 | if test -z "$srcdir"; then |
| 863 | ac_srcdir_defaulted=yes |
| 864 | # Try the directory containing this script, then its parent. |
| 865 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 866 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 867 | X"$0" : 'X\(//\)[^/]' \| \ |
| 868 | X"$0" : 'X\(//\)$' \| \ |
| 869 | X"$0" : 'X\(/\)' \| \ |
| 870 | . : '\(.\)' 2>/dev/null || |
| 871 | echo X"$0" | |
| 872 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 873 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 874 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 875 | /^X\(\/\).*/{ s//\1/; q; } |
| 876 | s/.*/./; q'` |
| 877 | srcdir=$ac_confdir |
| 878 | if test ! -r $srcdir/$ac_unique_file; then |
| 879 | srcdir=.. |
| 880 | fi |
| 881 | else |
| 882 | ac_srcdir_defaulted=no |
| 883 | fi |
| 884 | if test ! -r $srcdir/$ac_unique_file; then |
| 885 | if test "$ac_srcdir_defaulted" = yes; then |
| 886 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 887 | { (exit 1); exit 1; }; } |
| 888 | else |
| 889 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 890 | { (exit 1); exit 1; }; } |
| 891 | fi |
| 892 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 893 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 894 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 895 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 896 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 897 | ac_env_build_alias_set=${build_alias+set} |
| 898 | ac_env_build_alias_value=$build_alias |
| 899 | ac_cv_env_build_alias_set=${build_alias+set} |
| 900 | ac_cv_env_build_alias_value=$build_alias |
| 901 | ac_env_host_alias_set=${host_alias+set} |
| 902 | ac_env_host_alias_value=$host_alias |
| 903 | ac_cv_env_host_alias_set=${host_alias+set} |
| 904 | ac_cv_env_host_alias_value=$host_alias |
| 905 | ac_env_target_alias_set=${target_alias+set} |
| 906 | ac_env_target_alias_value=$target_alias |
| 907 | ac_cv_env_target_alias_set=${target_alias+set} |
| 908 | ac_cv_env_target_alias_value=$target_alias |
| 909 | ac_env_CXX_set=${CXX+set} |
| 910 | ac_env_CXX_value=$CXX |
| 911 | ac_cv_env_CXX_set=${CXX+set} |
| 912 | ac_cv_env_CXX_value=$CXX |
| 913 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 914 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 915 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 916 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
| 917 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 918 | ac_env_LDFLAGS_value=$LDFLAGS |
| 919 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 920 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 921 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 922 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 923 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 924 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 925 | ac_env_CC_set=${CC+set} |
| 926 | ac_env_CC_value=$CC |
| 927 | ac_cv_env_CC_set=${CC+set} |
| 928 | ac_cv_env_CC_value=$CC |
| 929 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 930 | ac_env_CFLAGS_value=$CFLAGS |
| 931 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 932 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 933 | ac_env_CPP_set=${CPP+set} |
| 934 | ac_env_CPP_value=$CPP |
| 935 | ac_cv_env_CPP_set=${CPP+set} |
| 936 | ac_cv_env_CPP_value=$CPP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 937 | ac_env_CXXCPP_set=${CXXCPP+set} |
| 938 | ac_env_CXXCPP_value=$CXXCPP |
| 939 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
| 940 | ac_cv_env_CXXCPP_value=$CXXCPP |
| 941 | ac_env_F77_set=${F77+set} |
| 942 | ac_env_F77_value=$F77 |
| 943 | ac_cv_env_F77_set=${F77+set} |
| 944 | ac_cv_env_F77_value=$F77 |
| 945 | ac_env_FFLAGS_set=${FFLAGS+set} |
| 946 | ac_env_FFLAGS_value=$FFLAGS |
| 947 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
| 948 | ac_cv_env_FFLAGS_value=$FFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 949 | |
| 950 | # |
| 951 | # Report the --help message. |
| 952 | # |
| 953 | if test "$ac_init_help" = "long"; then |
| 954 | # Omit some internal or obsolete options to make the list less imposing. |
| 955 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 956 | cat <<_ACEOF |
John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 957 | \`configure' configures [LLVM] [1.1] to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 958 | |
| 959 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 960 | |
| 961 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 962 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 963 | |
| 964 | Defaults for the options are specified in brackets. |
| 965 | |
| 966 | Configuration: |
| 967 | -h, --help display this help and exit |
| 968 | --help=short display options specific to this package |
| 969 | --help=recursive display the short help of all the included packages |
| 970 | -V, --version display version information and exit |
| 971 | -q, --quiet, --silent do not print \`checking...' messages |
| 972 | --cache-file=FILE cache test results in FILE [disabled] |
| 973 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 974 | -n, --no-create do not create output files |
| 975 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 976 | |
| 977 | _ACEOF |
| 978 | |
| 979 | cat <<_ACEOF |
| 980 | Installation directories: |
| 981 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 982 | [$ac_default_prefix] |
| 983 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 984 | [PREFIX] |
| 985 | |
| 986 | By default, \`make install' will install all the files in |
| 987 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 988 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 989 | for instance \`--prefix=\$HOME'. |
| 990 | |
| 991 | For better control, use the options below. |
| 992 | |
| 993 | Fine tuning of the installation directories: |
| 994 | --bindir=DIR user executables [EPREFIX/bin] |
| 995 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 996 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 997 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 998 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 999 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1000 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1001 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1002 | --includedir=DIR C header files [PREFIX/include] |
| 1003 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1004 | --infodir=DIR info documentation [PREFIX/info] |
| 1005 | --mandir=DIR man documentation [PREFIX/man] |
| 1006 | _ACEOF |
| 1007 | |
| 1008 | cat <<\_ACEOF |
| 1009 | |
| 1010 | System types: |
| 1011 | --build=BUILD configure for building on BUILD [guessed] |
| 1012 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1013 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1014 | _ACEOF |
| 1015 | fi |
| 1016 | |
| 1017 | if test -n "$ac_init_help"; then |
| 1018 | case $ac_init_help in |
John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 1019 | short | recursive ) echo "Configuration of [LLVM] [1.1]:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1020 | esac |
| 1021 | cat <<\_ACEOF |
| 1022 | |
| 1023 | Optional Features: |
| 1024 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1025 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1026 | --enable-shared[=PKGS] |
| 1027 | build shared libraries [default=yes] |
| 1028 | --enable-static[=PKGS] |
| 1029 | build static libraries [default=yes] |
| 1030 | --enable-fast-install[=PKGS] |
| 1031 | optimize for fast installation [default=yes] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1032 | --disable-libtool-lock avoid locking (might break parallel builds) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1033 | --enable-optimized Compile with optimizations enabled (default is NO) |
Alkis Evlogimenos | 3e58e48 | 2003-12-20 21:35:15 +0000 | [diff] [blame] | 1034 | --enable-spec2000 Compile SPEC 2000 benchmarks (default is NO) |
John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 1035 | --enable-spec95 Compile SPEC 95 benchmarks (default is NO) |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 1036 | --enable-povray Compile Povray benchmark (default is NO) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1037 | --enable-precompiled_bytecode |
| 1038 | Use pre-compiled bytecode (default is NO) |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 1039 | --enable-llc_diffs Enable LLC Diffs when testing (default is YES) |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 1040 | --enable-jit Enable Just In Time Compiling (default is YES) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1041 | |
| 1042 | Optional Packages: |
| 1043 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1044 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1045 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1046 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1047 | both] |
| 1048 | --with-tags[=TAGS] |
| 1049 | include additional configurations [automatic] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1050 | --with-llvmgccdir Location of LLVM GCC front-end |
| 1051 | --with-bcrepos Location of Bytecode Repository |
| 1052 | --with-papi Location of PAPI |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1053 | |
| 1054 | Some influential environment variables: |
| 1055 | CXX C++ compiler command |
| 1056 | CXXFLAGS C++ compiler flags |
| 1057 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1058 | nonstandard directory <lib dir> |
| 1059 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1060 | headers in a nonstandard directory <include dir> |
| 1061 | CC C compiler command |
| 1062 | CFLAGS C compiler flags |
| 1063 | CPP C preprocessor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1064 | CXXCPP C++ preprocessor |
| 1065 | F77 Fortran 77 compiler command |
| 1066 | FFLAGS Fortran 77 compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1067 | |
| 1068 | Use these variables to override the choices made by `configure' or to help |
| 1069 | it to find libraries and programs with nonstandard names/locations. |
| 1070 | |
| 1071 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1072 | _ACEOF |
| 1073 | fi |
| 1074 | |
| 1075 | if test "$ac_init_help" = "recursive"; then |
| 1076 | # If there are subdirs, report their specific --help. |
| 1077 | ac_popdir=`pwd` |
| 1078 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1079 | test -d $ac_dir || continue |
| 1080 | ac_builddir=. |
| 1081 | |
| 1082 | if test "$ac_dir" != .; then |
| 1083 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1084 | # A "../" for each directory in $ac_dir_suffix. |
| 1085 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1086 | else |
| 1087 | ac_dir_suffix= ac_top_builddir= |
| 1088 | fi |
| 1089 | |
| 1090 | case $srcdir in |
| 1091 | .) # No --srcdir option. We are building in place. |
| 1092 | ac_srcdir=. |
| 1093 | if test -z "$ac_top_builddir"; then |
| 1094 | ac_top_srcdir=. |
| 1095 | else |
| 1096 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1097 | fi ;; |
| 1098 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1099 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1100 | ac_top_srcdir=$srcdir ;; |
| 1101 | *) # Relative path. |
| 1102 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1103 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1104 | esac |
| 1105 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 1106 | # absolute. |
| 1107 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1108 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1109 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 1110 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 1111 | |
| 1112 | cd $ac_dir |
| 1113 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1114 | if test -f $ac_srcdir/configure.gnu; then |
| 1115 | echo |
| 1116 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1117 | elif test -f $ac_srcdir/configure; then |
| 1118 | echo |
| 1119 | $SHELL $ac_srcdir/configure --help=recursive |
| 1120 | elif test -f $ac_srcdir/configure.ac || |
| 1121 | test -f $ac_srcdir/configure.in; then |
| 1122 | echo |
| 1123 | $ac_configure --help |
| 1124 | else |
| 1125 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1126 | fi |
| 1127 | cd $ac_popdir |
| 1128 | done |
| 1129 | fi |
| 1130 | |
| 1131 | test -n "$ac_init_help" && exit 0 |
| 1132 | if $ac_init_version; then |
| 1133 | cat <<\_ACEOF |
John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 1134 | [LLVM] configure [1.1] |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1135 | generated by GNU Autoconf 2.57 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1136 | |
| 1137 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 1138 | Free Software Foundation, Inc. |
| 1139 | This configure script is free software; the Free Software Foundation |
| 1140 | gives unlimited permission to copy, distribute and modify it. |
| 1141 | _ACEOF |
| 1142 | exit 0 |
| 1143 | fi |
| 1144 | exec 5>config.log |
| 1145 | cat >&5 <<_ACEOF |
| 1146 | This file contains any messages produced by compilers while |
| 1147 | running configure, to aid debugging if configure makes a mistake. |
| 1148 | |
John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 1149 | It was created by [LLVM] $as_me [1.1], which was |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1150 | generated by GNU Autoconf 2.57. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1151 | |
| 1152 | $ $0 $@ |
| 1153 | |
| 1154 | _ACEOF |
| 1155 | { |
| 1156 | cat <<_ASUNAME |
| 1157 | ## --------- ## |
| 1158 | ## Platform. ## |
| 1159 | ## --------- ## |
| 1160 | |
| 1161 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1162 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1163 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1164 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1165 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1166 | |
| 1167 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1168 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1169 | |
| 1170 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1171 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1172 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1173 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1174 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1175 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1176 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1177 | |
| 1178 | _ASUNAME |
| 1179 | |
| 1180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1181 | for as_dir in $PATH |
| 1182 | do |
| 1183 | IFS=$as_save_IFS |
| 1184 | test -z "$as_dir" && as_dir=. |
| 1185 | echo "PATH: $as_dir" |
| 1186 | done |
| 1187 | |
| 1188 | } >&5 |
| 1189 | |
| 1190 | cat >&5 <<_ACEOF |
| 1191 | |
| 1192 | |
| 1193 | ## ----------- ## |
| 1194 | ## Core tests. ## |
| 1195 | ## ----------- ## |
| 1196 | |
| 1197 | _ACEOF |
| 1198 | |
| 1199 | |
| 1200 | # Keep a trace of the command line. |
| 1201 | # Strip out --no-create and --no-recursion so they do not pile up. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1202 | # Strip out --silent because we don't want to record it for future runs. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1203 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1204 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1205 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1206 | ac_configure_args0= |
| 1207 | ac_configure_args1= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1208 | ac_sep= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1209 | ac_must_keep_next=false |
| 1210 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1211 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1212 | for ac_arg |
| 1213 | do |
| 1214 | case $ac_arg in |
| 1215 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1216 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1217 | | -silent | --silent | --silen | --sile | --sil) |
| 1218 | continue ;; |
| 1219 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1220 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1221 | esac |
| 1222 | case $ac_pass in |
| 1223 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1224 | 2) |
| 1225 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1226 | if test $ac_must_keep_next = true; then |
| 1227 | ac_must_keep_next=false # Got value, back to normal. |
| 1228 | else |
| 1229 | case $ac_arg in |
| 1230 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1231 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1232 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1233 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1234 | case "$ac_configure_args0 " in |
| 1235 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1236 | esac |
| 1237 | ;; |
| 1238 | -* ) ac_must_keep_next=true ;; |
| 1239 | esac |
| 1240 | fi |
| 1241 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1242 | # Get rid of the leading space. |
| 1243 | ac_sep=" " |
| 1244 | ;; |
| 1245 | esac |
| 1246 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1247 | done |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1248 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1249 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1250 | |
| 1251 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1252 | # config.log. We remove comments because anyway the quotes in there |
| 1253 | # would cause problems or look ugly. |
| 1254 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1255 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1256 | trap 'exit_status=$? |
| 1257 | # Save into config.log some information that might help in debugging. |
| 1258 | { |
| 1259 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1260 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1261 | cat <<\_ASBOX |
| 1262 | ## ---------------- ## |
| 1263 | ## Cache variables. ## |
| 1264 | ## ---------------- ## |
| 1265 | _ASBOX |
| 1266 | echo |
| 1267 | # The following way of writing the cache mishandles newlines in values, |
| 1268 | { |
| 1269 | (set) 2>&1 | |
| 1270 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1271 | *ac_space=\ *) |
| 1272 | sed -n \ |
| 1273 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1274 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1275 | ;; |
| 1276 | *) |
| 1277 | sed -n \ |
| 1278 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1279 | ;; |
| 1280 | esac; |
| 1281 | } |
| 1282 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1283 | |
| 1284 | cat <<\_ASBOX |
| 1285 | ## ----------------- ## |
| 1286 | ## Output variables. ## |
| 1287 | ## ----------------- ## |
| 1288 | _ASBOX |
| 1289 | echo |
| 1290 | for ac_var in $ac_subst_vars |
| 1291 | do |
| 1292 | eval ac_val=$`echo $ac_var` |
| 1293 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1294 | done | sort |
| 1295 | echo |
| 1296 | |
| 1297 | if test -n "$ac_subst_files"; then |
| 1298 | cat <<\_ASBOX |
| 1299 | ## ------------- ## |
| 1300 | ## Output files. ## |
| 1301 | ## ------------- ## |
| 1302 | _ASBOX |
| 1303 | echo |
| 1304 | for ac_var in $ac_subst_files |
| 1305 | do |
| 1306 | eval ac_val=$`echo $ac_var` |
| 1307 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1308 | done | sort |
| 1309 | echo |
| 1310 | fi |
| 1311 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1312 | if test -s confdefs.h; then |
| 1313 | cat <<\_ASBOX |
| 1314 | ## ----------- ## |
| 1315 | ## confdefs.h. ## |
| 1316 | ## ----------- ## |
| 1317 | _ASBOX |
| 1318 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1319 | sed "/^$/d" confdefs.h | sort |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1320 | echo |
| 1321 | fi |
| 1322 | test "$ac_signal" != 0 && |
| 1323 | echo "$as_me: caught signal $ac_signal" |
| 1324 | echo "$as_me: exit $exit_status" |
| 1325 | } >&5 |
| 1326 | rm -f core core.* *.core && |
| 1327 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1328 | exit $exit_status |
| 1329 | ' 0 |
| 1330 | for ac_signal in 1 2 13 15; do |
| 1331 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1332 | done |
| 1333 | ac_signal=0 |
| 1334 | |
| 1335 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1336 | rm -rf conftest* confdefs.h |
| 1337 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1338 | echo >confdefs.h |
| 1339 | |
| 1340 | # Predefined preprocessor variables. |
| 1341 | |
| 1342 | cat >>confdefs.h <<_ACEOF |
| 1343 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1344 | _ACEOF |
| 1345 | |
| 1346 | |
| 1347 | cat >>confdefs.h <<_ACEOF |
| 1348 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1349 | _ACEOF |
| 1350 | |
| 1351 | |
| 1352 | cat >>confdefs.h <<_ACEOF |
| 1353 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1354 | _ACEOF |
| 1355 | |
| 1356 | |
| 1357 | cat >>confdefs.h <<_ACEOF |
| 1358 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1359 | _ACEOF |
| 1360 | |
| 1361 | |
| 1362 | cat >>confdefs.h <<_ACEOF |
| 1363 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1364 | _ACEOF |
| 1365 | |
| 1366 | |
| 1367 | # Let the site file select an alternate cache file if it wants to. |
| 1368 | # Prefer explicitly selected file to automatically selected ones. |
| 1369 | if test -z "$CONFIG_SITE"; then |
| 1370 | if test "x$prefix" != xNONE; then |
| 1371 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1372 | else |
| 1373 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1374 | fi |
| 1375 | fi |
| 1376 | for ac_site_file in $CONFIG_SITE; do |
| 1377 | if test -r "$ac_site_file"; then |
| 1378 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1379 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1380 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1381 | . "$ac_site_file" |
| 1382 | fi |
| 1383 | done |
| 1384 | |
| 1385 | if test -r "$cache_file"; then |
| 1386 | # Some versions of bash will fail to source /dev/null (special |
| 1387 | # files actually), so we avoid doing that. |
| 1388 | if test -f "$cache_file"; then |
| 1389 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1390 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1391 | case $cache_file in |
| 1392 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1393 | *) . ./$cache_file;; |
| 1394 | esac |
| 1395 | fi |
| 1396 | else |
| 1397 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1398 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1399 | >$cache_file |
| 1400 | fi |
| 1401 | |
| 1402 | # Check that the precious variables saved in the cache have kept the same |
| 1403 | # value. |
| 1404 | ac_cache_corrupted=false |
| 1405 | for ac_var in `(set) 2>&1 | |
| 1406 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1407 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1408 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1409 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1410 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1411 | case $ac_old_set,$ac_new_set in |
| 1412 | set,) |
| 1413 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1414 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1415 | ac_cache_corrupted=: ;; |
| 1416 | ,set) |
| 1417 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1418 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1419 | ac_cache_corrupted=: ;; |
| 1420 | ,);; |
| 1421 | *) |
| 1422 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1423 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1424 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1425 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1426 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1427 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1428 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1429 | ac_cache_corrupted=: |
| 1430 | fi;; |
| 1431 | esac |
| 1432 | # Pass precious variables to config.status. |
| 1433 | if test "$ac_new_set" = set; then |
| 1434 | case $ac_new_val in |
| 1435 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1436 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1437 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1438 | esac |
| 1439 | case " $ac_configure_args " in |
| 1440 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1441 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1442 | esac |
| 1443 | fi |
| 1444 | done |
| 1445 | if $ac_cache_corrupted; then |
| 1446 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1447 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1448 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1449 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1450 | { (exit 1); exit 1; }; } |
| 1451 | fi |
| 1452 | |
| 1453 | ac_ext=c |
| 1454 | ac_cpp='$CPP $CPPFLAGS' |
| 1455 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1456 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1457 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1458 | |
| 1459 | |
| 1460 | |
| 1461 | |
| 1462 | |
| 1463 | |
| 1464 | |
| 1465 | |
| 1466 | |
| 1467 | |
| 1468 | |
| 1469 | |
| 1470 | |
| 1471 | |
| 1472 | |
| 1473 | |
| 1474 | |
| 1475 | |
| 1476 | |
| 1477 | |
| 1478 | |
| 1479 | |
| 1480 | |
| 1481 | |
| 1482 | |
| 1483 | |
| 1484 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1485 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1486 | ac_aux_dir= |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1487 | for ac_dir in autoconf $srcdir/autoconf; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1488 | if test -f $ac_dir/install-sh; then |
| 1489 | ac_aux_dir=$ac_dir |
| 1490 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1491 | break |
| 1492 | elif test -f $ac_dir/install.sh; then |
| 1493 | ac_aux_dir=$ac_dir |
| 1494 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1495 | break |
| 1496 | elif test -f $ac_dir/shtool; then |
| 1497 | ac_aux_dir=$ac_dir |
| 1498 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1499 | break |
| 1500 | fi |
| 1501 | done |
| 1502 | if test -z "$ac_aux_dir"; then |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1503 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
| 1504 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1505 | { (exit 1); exit 1; }; } |
| 1506 | fi |
| 1507 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1508 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1509 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1510 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1511 | |
John Criswell | 1b82432 | 2003-09-15 17:19:42 +0000 | [diff] [blame] | 1512 | if test ${srcdir} != "." |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1513 | then |
John Criswell | 1b82432 | 2003-09-15 17:19:42 +0000 | [diff] [blame] | 1514 | if test -f ${srcdir}/include/Config/config.h |
| 1515 | then |
| 1516 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1517 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1518 | { (exit 1); exit 1; }; } |
John Criswell | 1b82432 | 2003-09-15 17:19:42 +0000 | [diff] [blame] | 1519 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1520 | fi |
| 1521 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1522 | for i in `ls ${srcdir}/projects` |
| 1523 | do |
| 1524 | if test ${i} != "CVS" |
| 1525 | then |
John Criswell | 2f2741b | 2003-12-12 20:15:23 +0000 | [diff] [blame] | 1526 | if test -f ${srcdir}/projects/${i}/configure |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1527 | then |
John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1528 | |
| 1529 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1530 | subdirs="$subdirs projects/${i}" |
John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1531 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1532 | fi |
| 1533 | fi |
| 1534 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 1535 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1536 | ac_config_headers="$ac_config_headers include/Config/config.h" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1537 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1538 | ac_config_commands="$ac_config_commands Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1539 | |
| 1540 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1541 | ac_config_commands="$ac_config_commands Makefile.common" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1542 | |
| 1543 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1544 | ac_config_commands="$ac_config_commands lib/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1545 | |
| 1546 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1547 | ac_config_commands="$ac_config_commands runtime/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1548 | |
| 1549 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1550 | ac_config_commands="$ac_config_commands test/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1551 | |
| 1552 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1553 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1554 | |
| 1555 | |
John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 1556 | ac_config_commands="$ac_config_commands test/QMTest/llvm.py" |
| 1557 | |
| 1558 | |
| 1559 | ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py" |
John Criswell | 08acb9b | 2003-09-16 02:12:45 +0000 | [diff] [blame] | 1560 | |
| 1561 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1562 | ac_config_commands="$ac_config_commands test/Programs/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1563 | |
| 1564 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1565 | ac_config_commands="$ac_config_commands test/Programs/Makefile.programs" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1566 | |
| 1567 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1568 | ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1569 | |
| 1570 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1571 | ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1572 | |
| 1573 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1574 | ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1575 | |
| 1576 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1577 | ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1578 | |
| 1579 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1580 | ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1581 | |
| 1582 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1583 | ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1584 | |
| 1585 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1586 | ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1587 | |
| 1588 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1589 | ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1590 | |
| 1591 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1592 | ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1593 | |
| 1594 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1595 | ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1596 | |
| 1597 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1598 | ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1599 | |
| 1600 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1601 | ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1602 | |
| 1603 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1604 | ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1605 | |
| 1606 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1607 | ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1608 | |
| 1609 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1610 | ac_config_commands="$ac_config_commands test/Programs/External/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1611 | |
| 1612 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1613 | ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1614 | |
| 1615 | |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 1616 | ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec" |
| 1617 | |
| 1618 | |
John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 1619 | ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95" |
| 1620 | |
| 1621 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1622 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1623 | |
| 1624 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1625 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1626 | |
| 1627 | |
Misha Brukman | 811ce9f | 2003-11-12 22:16:51 +0000 | [diff] [blame] | 1628 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" |
| 1629 | |
| 1630 | |
| 1631 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" |
| 1632 | |
| 1633 | |
| 1634 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" |
| 1635 | |
| 1636 | |
| 1637 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" |
| 1638 | |
| 1639 | |
| 1640 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" |
| 1641 | |
| 1642 | |
| 1643 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" |
| 1644 | |
| 1645 | |
| 1646 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" |
| 1647 | |
| 1648 | |
| 1649 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" |
| 1650 | |
| 1651 | |
| 1652 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" |
| 1653 | |
| 1654 | |
| 1655 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" |
| 1656 | |
| 1657 | |
| 1658 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" |
| 1659 | |
| 1660 | |
| 1661 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" |
| 1662 | |
| 1663 | |
| 1664 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" |
| 1665 | |
| 1666 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1667 | ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1668 | |
| 1669 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1670 | ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1671 | |
| 1672 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1673 | ac_config_commands="$ac_config_commands tools/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1674 | |
| 1675 | |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 1676 | ac_config_commands="$ac_config_commands utils/Makefile" |
| 1677 | |
| 1678 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1679 | ac_config_commands="$ac_config_commands projects/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1680 | |
| 1681 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1682 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1683 | # Find a good install program. We prefer a C program (faster), |
| 1684 | # so one script is as good as another. But avoid the broken or |
| 1685 | # incompatible versions: |
| 1686 | # SysV /etc/install, /usr/sbin/install |
| 1687 | # SunOS /usr/etc/install |
| 1688 | # IRIX /sbin/install |
| 1689 | # AIX /bin/install |
| 1690 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1691 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1692 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1693 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1694 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1695 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1696 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 1697 | if test -z "$INSTALL"; then |
| 1698 | if test "${ac_cv_path_install+set}" = set; then |
| 1699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1700 | else |
| 1701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1702 | for as_dir in $PATH |
| 1703 | do |
| 1704 | IFS=$as_save_IFS |
| 1705 | test -z "$as_dir" && as_dir=. |
| 1706 | # Account for people who put trailing slashes in PATH elements. |
| 1707 | case $as_dir/ in |
| 1708 | ./ | .// | /cC/* | \ |
| 1709 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 1710 | /usr/ucb/* ) ;; |
| 1711 | *) |
| 1712 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1713 | # Don't use installbsd from OSF since it installs stuff as root |
| 1714 | # by default. |
| 1715 | for ac_prog in ginstall scoinst install; do |
| 1716 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1717 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 1718 | if test $ac_prog = install && |
| 1719 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1720 | # AIX install. It has an incompatible calling convention. |
| 1721 | : |
| 1722 | elif test $ac_prog = install && |
| 1723 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1724 | # program-specific install script used by HP pwplus--don't use. |
| 1725 | : |
| 1726 | else |
| 1727 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1728 | break 3 |
| 1729 | fi |
| 1730 | fi |
| 1731 | done |
| 1732 | done |
| 1733 | ;; |
| 1734 | esac |
| 1735 | done |
| 1736 | |
| 1737 | |
| 1738 | fi |
| 1739 | if test "${ac_cv_path_install+set}" = set; then |
| 1740 | INSTALL=$ac_cv_path_install |
| 1741 | else |
| 1742 | # As a last resort, use the slow shell script. We don't cache a |
| 1743 | # path for INSTALL within a source directory, because that will |
| 1744 | # break other packages using the cache if that directory is |
| 1745 | # removed, or if the path is relative. |
| 1746 | INSTALL=$ac_install_sh |
| 1747 | fi |
| 1748 | fi |
| 1749 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 1750 | echo "${ECHO_T}$INSTALL" >&6 |
| 1751 | |
| 1752 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1753 | # It thinks the first close brace ends the variable substitution. |
| 1754 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1755 | |
| 1756 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 1757 | |
| 1758 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1759 | |
| 1760 | |
| 1761 | # Make sure we can run config.sub. |
| 1762 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1763 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1764 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1765 | { (exit 1); exit 1; }; } |
| 1766 | |
| 1767 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1768 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1769 | if test "${ac_cv_build+set}" = set; then |
| 1770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1771 | else |
| 1772 | ac_cv_build_alias=$build_alias |
| 1773 | test -z "$ac_cv_build_alias" && |
| 1774 | ac_cv_build_alias=`$ac_config_guess` |
| 1775 | test -z "$ac_cv_build_alias" && |
| 1776 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1777 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1778 | { (exit 1); exit 1; }; } |
| 1779 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1780 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1781 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1782 | { (exit 1); exit 1; }; } |
| 1783 | |
| 1784 | fi |
| 1785 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1786 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1787 | build=$ac_cv_build |
| 1788 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1789 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1790 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1791 | |
| 1792 | |
| 1793 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1794 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1795 | if test "${ac_cv_host+set}" = set; then |
| 1796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1797 | else |
| 1798 | ac_cv_host_alias=$host_alias |
| 1799 | test -z "$ac_cv_host_alias" && |
| 1800 | ac_cv_host_alias=$ac_cv_build_alias |
| 1801 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1802 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1803 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1804 | { (exit 1); exit 1; }; } |
| 1805 | |
| 1806 | fi |
| 1807 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1808 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1809 | host=$ac_cv_host |
| 1810 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1811 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1812 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1813 | |
| 1814 | |
| 1815 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 1816 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 1817 | if test "${ac_cv_target+set}" = set; then |
| 1818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1819 | else |
| 1820 | ac_cv_target_alias=$target_alias |
| 1821 | test "x$ac_cv_target_alias" = "x" && |
| 1822 | ac_cv_target_alias=$ac_cv_host_alias |
| 1823 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 1824 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 1825 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 1826 | { (exit 1); exit 1; }; } |
| 1827 | |
| 1828 | fi |
| 1829 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1830 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 1831 | target=$ac_cv_target |
| 1832 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1833 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1834 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1835 | |
| 1836 | |
| 1837 | # The aliases save the names the user supplied, while $host etc. |
| 1838 | # will get canonicalized. |
| 1839 | test -n "$target_alias" && |
| 1840 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1841 | NONENONEs,x,x, && |
| 1842 | program_prefix=${target_alias}- |
| 1843 | |
| 1844 | case $build in |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1845 | *-*-linux*) |
| 1846 | OS=Linux |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1847 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 1848 | if test -d /home/vadve/lattner/local/x86/llvm-gcc |
| 1849 | then |
| 1850 | LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1851 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 1852 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1853 | ;; |
| 1854 | |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1855 | *-*-solaris*) |
| 1856 | OS=SunOS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1857 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 1858 | if test -d /home/vadve/lattner/local/sparc/llvm-gcc |
| 1859 | then |
| 1860 | LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1861 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 1862 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1863 | ;; |
| 1864 | |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1865 | *-*-darwin*) |
| 1866 | OS=Darwin |
| 1867 | |
| 1868 | ;; |
| 1869 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1870 | *) OS=Unknown |
| 1871 | |
| 1872 | ;; |
| 1873 | esac |
| 1874 | |
| 1875 | case $target in |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1876 | sparc*-*-solaris*) target=sparcv9-sun-solaris2.8 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1877 | |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1878 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1879 | esac |
| 1880 | |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1881 | case $target in |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1882 | i*86-*) ARCH=x86 |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1883 | |
| 1884 | ;; |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1885 | sparc*-*) ARCH=Sparc |
| 1886 | |
| 1887 | ;; |
| 1888 | powerpc*-*) ARCH=PowerPC |
| 1889 | |
| 1890 | ;; |
| 1891 | *) ARCH=Unknown |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1892 | |
| 1893 | ;; |
| 1894 | esac |
| 1895 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1896 | ac_ext=cc |
| 1897 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 1898 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1899 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1900 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1901 | if test -n "$ac_tool_prefix"; then |
| 1902 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 1903 | do |
| 1904 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1905 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1906 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1907 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1908 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1910 | else |
| 1911 | if test -n "$CXX"; then |
| 1912 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1913 | else |
| 1914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1915 | for as_dir in $PATH |
| 1916 | do |
| 1917 | IFS=$as_save_IFS |
| 1918 | test -z "$as_dir" && as_dir=. |
| 1919 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1920 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1921 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 1922 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1923 | break 2 |
| 1924 | fi |
| 1925 | done |
| 1926 | done |
| 1927 | |
| 1928 | fi |
| 1929 | fi |
| 1930 | CXX=$ac_cv_prog_CXX |
| 1931 | if test -n "$CXX"; then |
| 1932 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1933 | echo "${ECHO_T}$CXX" >&6 |
| 1934 | else |
| 1935 | echo "$as_me:$LINENO: result: no" >&5 |
| 1936 | echo "${ECHO_T}no" >&6 |
| 1937 | fi |
| 1938 | |
| 1939 | test -n "$CXX" && break |
| 1940 | done |
| 1941 | fi |
| 1942 | if test -z "$CXX"; then |
| 1943 | ac_ct_CXX=$CXX |
| 1944 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 1945 | do |
| 1946 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1947 | set dummy $ac_prog; ac_word=$2 |
| 1948 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1949 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1950 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 1951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1952 | else |
| 1953 | if test -n "$ac_ct_CXX"; then |
| 1954 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 1955 | else |
| 1956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1957 | for as_dir in $PATH |
| 1958 | do |
| 1959 | IFS=$as_save_IFS |
| 1960 | test -z "$as_dir" && as_dir=. |
| 1961 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1962 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1963 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 1964 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1965 | break 2 |
| 1966 | fi |
| 1967 | done |
| 1968 | done |
| 1969 | |
| 1970 | fi |
| 1971 | fi |
| 1972 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 1973 | if test -n "$ac_ct_CXX"; then |
| 1974 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 1975 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 1976 | else |
| 1977 | echo "$as_me:$LINENO: result: no" >&5 |
| 1978 | echo "${ECHO_T}no" >&6 |
| 1979 | fi |
| 1980 | |
| 1981 | test -n "$ac_ct_CXX" && break |
| 1982 | done |
| 1983 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 1984 | |
| 1985 | CXX=$ac_ct_CXX |
| 1986 | fi |
| 1987 | |
| 1988 | |
| 1989 | # Provide some information about the compiler. |
| 1990 | echo "$as_me:$LINENO:" \ |
| 1991 | "checking for C++ compiler version" >&5 |
| 1992 | ac_compiler=`set X $ac_compile; echo $2` |
| 1993 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1994 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1995 | ac_status=$? |
| 1996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1997 | (exit $ac_status); } |
| 1998 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1999 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2000 | ac_status=$? |
| 2001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2002 | (exit $ac_status); } |
| 2003 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2004 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2005 | ac_status=$? |
| 2006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2007 | (exit $ac_status); } |
| 2008 | |
| 2009 | cat >conftest.$ac_ext <<_ACEOF |
| 2010 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2011 | /* confdefs.h. */ |
| 2012 | _ACEOF |
| 2013 | cat confdefs.h >>conftest.$ac_ext |
| 2014 | cat >>conftest.$ac_ext <<_ACEOF |
| 2015 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2016 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2017 | int |
| 2018 | main () |
| 2019 | { |
| 2020 | |
| 2021 | ; |
| 2022 | return 0; |
| 2023 | } |
| 2024 | _ACEOF |
| 2025 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2026 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2027 | # Try to create an executable without -o first, disregard a.out. |
| 2028 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2029 | # of exeext. |
| 2030 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 2031 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 2032 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2033 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2034 | (eval $ac_link_default) 2>&5 |
| 2035 | ac_status=$? |
| 2036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2037 | (exit $ac_status); }; then |
| 2038 | # Find the output, starting from the most likely. This scheme is |
| 2039 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2040 | # resort. |
| 2041 | |
| 2042 | # Be careful to initialize this variable, since it used to be cached. |
| 2043 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2044 | ac_cv_exeext= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2045 | # b.out is created by i960 compilers. |
| 2046 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2047 | do |
| 2048 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2049 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2050 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 2051 | ;; |
| 2052 | conftest.$ac_ext ) |
| 2053 | # This is the source file. |
| 2054 | ;; |
| 2055 | [ab].out ) |
| 2056 | # We found the default executable, but exeext='' is most |
| 2057 | # certainly right. |
| 2058 | break;; |
| 2059 | *.* ) |
| 2060 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2061 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2062 | # but it would be cool to find out if it's true. Does anybody |
| 2063 | # maintain Libtool? --akim. |
| 2064 | export ac_cv_exeext |
| 2065 | break;; |
| 2066 | * ) |
| 2067 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2068 | esac |
| 2069 | done |
| 2070 | else |
| 2071 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2073 | |
| 2074 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
| 2075 | See \`config.log' for more details." >&5 |
| 2076 | echo "$as_me: error: C++ compiler cannot create executables |
| 2077 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2078 | { (exit 77); exit 77; }; } |
| 2079 | fi |
| 2080 | |
| 2081 | ac_exeext=$ac_cv_exeext |
| 2082 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2083 | echo "${ECHO_T}$ac_file" >&6 |
| 2084 | |
| 2085 | # Check the compiler produces executables we can run. If not, either |
| 2086 | # the compiler is broken, or we cross compile. |
| 2087 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 2088 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 2089 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2090 | # If not cross compiling, check that we can run a simple program. |
| 2091 | if test "$cross_compiling" != yes; then |
| 2092 | if { ac_try='./$ac_file' |
| 2093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2094 | (eval $ac_try) 2>&5 |
| 2095 | ac_status=$? |
| 2096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2097 | (exit $ac_status); }; }; then |
| 2098 | cross_compiling=no |
| 2099 | else |
| 2100 | if test "$cross_compiling" = maybe; then |
| 2101 | cross_compiling=yes |
| 2102 | else |
| 2103 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2104 | If you meant to cross compile, use \`--host'. |
| 2105 | See \`config.log' for more details." >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2106 | echo "$as_me: error: cannot run C++ compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2107 | If you meant to cross compile, use \`--host'. |
| 2108 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2109 | { (exit 1); exit 1; }; } |
| 2110 | fi |
| 2111 | fi |
| 2112 | fi |
| 2113 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2114 | echo "${ECHO_T}yes" >&6 |
| 2115 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2116 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2117 | ac_clean_files=$ac_clean_files_save |
| 2118 | # Check the compiler produces executables we can run. If not, either |
| 2119 | # the compiler is broken, or we cross compile. |
| 2120 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2121 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2122 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2123 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2124 | |
| 2125 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2126 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2128 | (eval $ac_link) 2>&5 |
| 2129 | ac_status=$? |
| 2130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2131 | (exit $ac_status); }; then |
| 2132 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2133 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2134 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2135 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2136 | for ac_file in conftest.exe conftest conftest.*; do |
| 2137 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2138 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2139 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2140 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2141 | export ac_cv_exeext |
| 2142 | break;; |
| 2143 | * ) break;; |
| 2144 | esac |
| 2145 | done |
| 2146 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2147 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2148 | See \`config.log' for more details." >&5 |
| 2149 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2150 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2151 | { (exit 1); exit 1; }; } |
| 2152 | fi |
| 2153 | |
| 2154 | rm -f conftest$ac_cv_exeext |
| 2155 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2156 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2157 | |
| 2158 | rm -f conftest.$ac_ext |
| 2159 | EXEEXT=$ac_cv_exeext |
| 2160 | ac_exeext=$EXEEXT |
| 2161 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2162 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2163 | if test "${ac_cv_objext+set}" = set; then |
| 2164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2165 | else |
| 2166 | cat >conftest.$ac_ext <<_ACEOF |
| 2167 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2168 | /* confdefs.h. */ |
| 2169 | _ACEOF |
| 2170 | cat confdefs.h >>conftest.$ac_ext |
| 2171 | cat >>conftest.$ac_ext <<_ACEOF |
| 2172 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2173 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2174 | int |
| 2175 | main () |
| 2176 | { |
| 2177 | |
| 2178 | ; |
| 2179 | return 0; |
| 2180 | } |
| 2181 | _ACEOF |
| 2182 | rm -f conftest.o conftest.obj |
| 2183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2184 | (eval $ac_compile) 2>&5 |
| 2185 | ac_status=$? |
| 2186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2187 | (exit $ac_status); }; then |
| 2188 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2189 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2190 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2191 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2192 | break;; |
| 2193 | esac |
| 2194 | done |
| 2195 | else |
| 2196 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2198 | |
| 2199 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2200 | See \`config.log' for more details." >&5 |
| 2201 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2202 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2203 | { (exit 1); exit 1; }; } |
| 2204 | fi |
| 2205 | |
| 2206 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2207 | fi |
| 2208 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2209 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2210 | OBJEXT=$ac_cv_objext |
| 2211 | ac_objext=$OBJEXT |
| 2212 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2213 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 2214 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2216 | else |
| 2217 | cat >conftest.$ac_ext <<_ACEOF |
| 2218 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2219 | /* confdefs.h. */ |
| 2220 | _ACEOF |
| 2221 | cat confdefs.h >>conftest.$ac_ext |
| 2222 | cat >>conftest.$ac_ext <<_ACEOF |
| 2223 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2224 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2225 | int |
| 2226 | main () |
| 2227 | { |
| 2228 | #ifndef __GNUC__ |
| 2229 | choke me |
| 2230 | #endif |
| 2231 | |
| 2232 | ; |
| 2233 | return 0; |
| 2234 | } |
| 2235 | _ACEOF |
| 2236 | rm -f conftest.$ac_objext |
| 2237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2238 | (eval $ac_compile) 2>&5 |
| 2239 | ac_status=$? |
| 2240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2241 | (exit $ac_status); } && |
| 2242 | { ac_try='test -s conftest.$ac_objext' |
| 2243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2244 | (eval $ac_try) 2>&5 |
| 2245 | ac_status=$? |
| 2246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2247 | (exit $ac_status); }; }; then |
| 2248 | ac_compiler_gnu=yes |
| 2249 | else |
| 2250 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2252 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2253 | ac_compiler_gnu=no |
| 2254 | fi |
| 2255 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2256 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2257 | |
| 2258 | fi |
| 2259 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2260 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 2261 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2262 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2263 | ac_save_CXXFLAGS=$CXXFLAGS |
| 2264 | CXXFLAGS="-g" |
| 2265 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 2266 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 2267 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2269 | else |
| 2270 | cat >conftest.$ac_ext <<_ACEOF |
| 2271 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2272 | /* confdefs.h. */ |
| 2273 | _ACEOF |
| 2274 | cat confdefs.h >>conftest.$ac_ext |
| 2275 | cat >>conftest.$ac_ext <<_ACEOF |
| 2276 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2277 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2278 | int |
| 2279 | main () |
| 2280 | { |
| 2281 | |
| 2282 | ; |
| 2283 | return 0; |
| 2284 | } |
| 2285 | _ACEOF |
| 2286 | rm -f conftest.$ac_objext |
| 2287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2288 | (eval $ac_compile) 2>&5 |
| 2289 | ac_status=$? |
| 2290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2291 | (exit $ac_status); } && |
| 2292 | { ac_try='test -s conftest.$ac_objext' |
| 2293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2294 | (eval $ac_try) 2>&5 |
| 2295 | ac_status=$? |
| 2296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2297 | (exit $ac_status); }; }; then |
| 2298 | ac_cv_prog_cxx_g=yes |
| 2299 | else |
| 2300 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2302 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2303 | ac_cv_prog_cxx_g=no |
| 2304 | fi |
| 2305 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2306 | fi |
| 2307 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 2308 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 2309 | if test "$ac_test_CXXFLAGS" = set; then |
| 2310 | CXXFLAGS=$ac_save_CXXFLAGS |
| 2311 | elif test $ac_cv_prog_cxx_g = yes; then |
| 2312 | if test "$GXX" = yes; then |
| 2313 | CXXFLAGS="-g -O2" |
| 2314 | else |
| 2315 | CXXFLAGS="-g" |
| 2316 | fi |
| 2317 | else |
| 2318 | if test "$GXX" = yes; then |
| 2319 | CXXFLAGS="-O2" |
| 2320 | else |
| 2321 | CXXFLAGS= |
| 2322 | fi |
| 2323 | fi |
| 2324 | for ac_declaration in \ |
| 2325 | ''\ |
| 2326 | '#include <stdlib.h>' \ |
| 2327 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2328 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2329 | 'extern "C" void exit (int) throw ();' \ |
| 2330 | 'extern "C" void exit (int);' \ |
| 2331 | 'void exit (int);' |
| 2332 | do |
| 2333 | cat >conftest.$ac_ext <<_ACEOF |
| 2334 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2335 | /* confdefs.h. */ |
| 2336 | _ACEOF |
| 2337 | cat confdefs.h >>conftest.$ac_ext |
| 2338 | cat >>conftest.$ac_ext <<_ACEOF |
| 2339 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2340 | #include <stdlib.h> |
| 2341 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2342 | int |
| 2343 | main () |
| 2344 | { |
| 2345 | exit (42); |
| 2346 | ; |
| 2347 | return 0; |
| 2348 | } |
| 2349 | _ACEOF |
| 2350 | rm -f conftest.$ac_objext |
| 2351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2352 | (eval $ac_compile) 2>&5 |
| 2353 | ac_status=$? |
| 2354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2355 | (exit $ac_status); } && |
| 2356 | { ac_try='test -s conftest.$ac_objext' |
| 2357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2358 | (eval $ac_try) 2>&5 |
| 2359 | ac_status=$? |
| 2360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2361 | (exit $ac_status); }; }; then |
| 2362 | : |
| 2363 | else |
| 2364 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2366 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2367 | continue |
| 2368 | fi |
| 2369 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2370 | cat >conftest.$ac_ext <<_ACEOF |
| 2371 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2372 | /* confdefs.h. */ |
| 2373 | _ACEOF |
| 2374 | cat confdefs.h >>conftest.$ac_ext |
| 2375 | cat >>conftest.$ac_ext <<_ACEOF |
| 2376 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2377 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2378 | int |
| 2379 | main () |
| 2380 | { |
| 2381 | exit (42); |
| 2382 | ; |
| 2383 | return 0; |
| 2384 | } |
| 2385 | _ACEOF |
| 2386 | rm -f conftest.$ac_objext |
| 2387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2388 | (eval $ac_compile) 2>&5 |
| 2389 | ac_status=$? |
| 2390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2391 | (exit $ac_status); } && |
| 2392 | { ac_try='test -s conftest.$ac_objext' |
| 2393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2394 | (eval $ac_try) 2>&5 |
| 2395 | ac_status=$? |
| 2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2397 | (exit $ac_status); }; }; then |
| 2398 | break |
| 2399 | else |
| 2400 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2402 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2403 | fi |
| 2404 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2405 | done |
| 2406 | rm -f conftest* |
| 2407 | if test -n "$ac_declaration"; then |
| 2408 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2409 | echo $ac_declaration >>confdefs.h |
| 2410 | echo '#endif' >>confdefs.h |
| 2411 | fi |
| 2412 | |
| 2413 | ac_ext=c |
| 2414 | ac_cpp='$CPP $CPPFLAGS' |
| 2415 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2416 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2417 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2418 | |
| 2419 | ac_ext=c |
| 2420 | ac_cpp='$CPP $CPPFLAGS' |
| 2421 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2422 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2423 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2424 | if test -n "$ac_tool_prefix"; then |
| 2425 | for ac_prog in gcc |
| 2426 | do |
| 2427 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2428 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2429 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2430 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2431 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2433 | else |
| 2434 | if test -n "$CC"; then |
| 2435 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2436 | else |
| 2437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2438 | for as_dir in $PATH |
| 2439 | do |
| 2440 | IFS=$as_save_IFS |
| 2441 | test -z "$as_dir" && as_dir=. |
| 2442 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2443 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2444 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2445 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2446 | break 2 |
| 2447 | fi |
| 2448 | done |
| 2449 | done |
| 2450 | |
| 2451 | fi |
| 2452 | fi |
| 2453 | CC=$ac_cv_prog_CC |
| 2454 | if test -n "$CC"; then |
| 2455 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2456 | echo "${ECHO_T}$CC" >&6 |
| 2457 | else |
| 2458 | echo "$as_me:$LINENO: result: no" >&5 |
| 2459 | echo "${ECHO_T}no" >&6 |
| 2460 | fi |
| 2461 | |
| 2462 | test -n "$CC" && break |
| 2463 | done |
| 2464 | fi |
| 2465 | if test -z "$CC"; then |
| 2466 | ac_ct_CC=$CC |
| 2467 | for ac_prog in gcc |
| 2468 | do |
| 2469 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2470 | set dummy $ac_prog; ac_word=$2 |
| 2471 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2472 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2473 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2475 | else |
| 2476 | if test -n "$ac_ct_CC"; then |
| 2477 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2478 | else |
| 2479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2480 | for as_dir in $PATH |
| 2481 | do |
| 2482 | IFS=$as_save_IFS |
| 2483 | test -z "$as_dir" && as_dir=. |
| 2484 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2485 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2486 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2487 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2488 | break 2 |
| 2489 | fi |
| 2490 | done |
| 2491 | done |
| 2492 | |
| 2493 | fi |
| 2494 | fi |
| 2495 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2496 | if test -n "$ac_ct_CC"; then |
| 2497 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2498 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2499 | else |
| 2500 | echo "$as_me:$LINENO: result: no" >&5 |
| 2501 | echo "${ECHO_T}no" >&6 |
| 2502 | fi |
| 2503 | |
| 2504 | test -n "$ac_ct_CC" && break |
| 2505 | done |
| 2506 | |
| 2507 | CC=$ac_ct_CC |
| 2508 | fi |
| 2509 | |
| 2510 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2511 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2512 | See \`config.log' for more details." >&5 |
| 2513 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2514 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2515 | { (exit 1); exit 1; }; } |
| 2516 | |
| 2517 | # Provide some information about the compiler. |
| 2518 | echo "$as_me:$LINENO:" \ |
| 2519 | "checking for C compiler version" >&5 |
| 2520 | ac_compiler=`set X $ac_compile; echo $2` |
| 2521 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2522 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2523 | ac_status=$? |
| 2524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2525 | (exit $ac_status); } |
| 2526 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2527 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2528 | ac_status=$? |
| 2529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2530 | (exit $ac_status); } |
| 2531 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2532 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2533 | ac_status=$? |
| 2534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2535 | (exit $ac_status); } |
| 2536 | |
| 2537 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2538 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2539 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2541 | else |
| 2542 | cat >conftest.$ac_ext <<_ACEOF |
| 2543 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2544 | /* confdefs.h. */ |
| 2545 | _ACEOF |
| 2546 | cat confdefs.h >>conftest.$ac_ext |
| 2547 | cat >>conftest.$ac_ext <<_ACEOF |
| 2548 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2549 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2550 | int |
| 2551 | main () |
| 2552 | { |
| 2553 | #ifndef __GNUC__ |
| 2554 | choke me |
| 2555 | #endif |
| 2556 | |
| 2557 | ; |
| 2558 | return 0; |
| 2559 | } |
| 2560 | _ACEOF |
| 2561 | rm -f conftest.$ac_objext |
| 2562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2563 | (eval $ac_compile) 2>&5 |
| 2564 | ac_status=$? |
| 2565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2566 | (exit $ac_status); } && |
| 2567 | { ac_try='test -s conftest.$ac_objext' |
| 2568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2569 | (eval $ac_try) 2>&5 |
| 2570 | ac_status=$? |
| 2571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2572 | (exit $ac_status); }; }; then |
| 2573 | ac_compiler_gnu=yes |
| 2574 | else |
| 2575 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2577 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2578 | ac_compiler_gnu=no |
| 2579 | fi |
| 2580 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2581 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2582 | |
| 2583 | fi |
| 2584 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2585 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2586 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2587 | ac_test_CFLAGS=${CFLAGS+set} |
| 2588 | ac_save_CFLAGS=$CFLAGS |
| 2589 | CFLAGS="-g" |
| 2590 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2591 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2592 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2594 | else |
| 2595 | cat >conftest.$ac_ext <<_ACEOF |
| 2596 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2597 | /* confdefs.h. */ |
| 2598 | _ACEOF |
| 2599 | cat confdefs.h >>conftest.$ac_ext |
| 2600 | cat >>conftest.$ac_ext <<_ACEOF |
| 2601 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2602 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2603 | int |
| 2604 | main () |
| 2605 | { |
| 2606 | |
| 2607 | ; |
| 2608 | return 0; |
| 2609 | } |
| 2610 | _ACEOF |
| 2611 | rm -f conftest.$ac_objext |
| 2612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2613 | (eval $ac_compile) 2>&5 |
| 2614 | ac_status=$? |
| 2615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2616 | (exit $ac_status); } && |
| 2617 | { ac_try='test -s conftest.$ac_objext' |
| 2618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2619 | (eval $ac_try) 2>&5 |
| 2620 | ac_status=$? |
| 2621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2622 | (exit $ac_status); }; }; then |
| 2623 | ac_cv_prog_cc_g=yes |
| 2624 | else |
| 2625 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2626 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2627 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2628 | ac_cv_prog_cc_g=no |
| 2629 | fi |
| 2630 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2631 | fi |
| 2632 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2633 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2634 | if test "$ac_test_CFLAGS" = set; then |
| 2635 | CFLAGS=$ac_save_CFLAGS |
| 2636 | elif test $ac_cv_prog_cc_g = yes; then |
| 2637 | if test "$GCC" = yes; then |
| 2638 | CFLAGS="-g -O2" |
| 2639 | else |
| 2640 | CFLAGS="-g" |
| 2641 | fi |
| 2642 | else |
| 2643 | if test "$GCC" = yes; then |
| 2644 | CFLAGS="-O2" |
| 2645 | else |
| 2646 | CFLAGS= |
| 2647 | fi |
| 2648 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2649 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2650 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2651 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2653 | else |
| 2654 | ac_cv_prog_cc_stdc=no |
| 2655 | ac_save_CC=$CC |
| 2656 | cat >conftest.$ac_ext <<_ACEOF |
| 2657 | #line $LINENO "configure" |
| 2658 | /* confdefs.h. */ |
| 2659 | _ACEOF |
| 2660 | cat confdefs.h >>conftest.$ac_ext |
| 2661 | cat >>conftest.$ac_ext <<_ACEOF |
| 2662 | /* end confdefs.h. */ |
| 2663 | #include <stdarg.h> |
| 2664 | #include <stdio.h> |
| 2665 | #include <sys/types.h> |
| 2666 | #include <sys/stat.h> |
| 2667 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2668 | struct buf { int x; }; |
| 2669 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2670 | static char *e (p, i) |
| 2671 | char **p; |
| 2672 | int i; |
| 2673 | { |
| 2674 | return p[i]; |
| 2675 | } |
| 2676 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2677 | { |
| 2678 | char *s; |
| 2679 | va_list v; |
| 2680 | va_start (v,p); |
| 2681 | s = g (p, va_arg (v,int)); |
| 2682 | va_end (v); |
| 2683 | return s; |
| 2684 | } |
| 2685 | int test (int i, double x); |
| 2686 | struct s1 {int (*f) (int a);}; |
| 2687 | struct s2 {int (*f) (double a);}; |
| 2688 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2689 | int argc; |
| 2690 | char **argv; |
| 2691 | int |
| 2692 | main () |
| 2693 | { |
| 2694 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2695 | ; |
| 2696 | return 0; |
| 2697 | } |
| 2698 | _ACEOF |
| 2699 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2700 | # breaks some systems' header files. |
| 2701 | # AIX -qlanglvl=ansi |
| 2702 | # Ultrix and OSF/1 -std1 |
| 2703 | # HP-UX 10.20 and later -Ae |
| 2704 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2705 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2706 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2707 | do |
| 2708 | CC="$ac_save_CC $ac_arg" |
| 2709 | rm -f conftest.$ac_objext |
| 2710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2711 | (eval $ac_compile) 2>&5 |
| 2712 | ac_status=$? |
| 2713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2714 | (exit $ac_status); } && |
| 2715 | { ac_try='test -s conftest.$ac_objext' |
| 2716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2717 | (eval $ac_try) 2>&5 |
| 2718 | ac_status=$? |
| 2719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2720 | (exit $ac_status); }; }; then |
| 2721 | ac_cv_prog_cc_stdc=$ac_arg |
| 2722 | break |
| 2723 | else |
| 2724 | echo "$as_me: failed program was:" >&5 |
| 2725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2726 | |
| 2727 | fi |
| 2728 | rm -f conftest.$ac_objext |
| 2729 | done |
| 2730 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2731 | CC=$ac_save_CC |
| 2732 | |
| 2733 | fi |
| 2734 | |
| 2735 | case "x$ac_cv_prog_cc_stdc" in |
| 2736 | x|xno) |
| 2737 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2738 | echo "${ECHO_T}none needed" >&6 ;; |
| 2739 | *) |
| 2740 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2741 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2742 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2743 | esac |
| 2744 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2745 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2746 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2747 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2748 | # the declaration of exit, since it's the most demanding environment. |
| 2749 | cat >conftest.$ac_ext <<_ACEOF |
| 2750 | #ifndef __cplusplus |
| 2751 | choke me |
| 2752 | #endif |
| 2753 | _ACEOF |
| 2754 | rm -f conftest.$ac_objext |
| 2755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2756 | (eval $ac_compile) 2>&5 |
| 2757 | ac_status=$? |
| 2758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2759 | (exit $ac_status); } && |
| 2760 | { ac_try='test -s conftest.$ac_objext' |
| 2761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2762 | (eval $ac_try) 2>&5 |
| 2763 | ac_status=$? |
| 2764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2765 | (exit $ac_status); }; }; then |
| 2766 | for ac_declaration in \ |
| 2767 | ''\ |
| 2768 | '#include <stdlib.h>' \ |
| 2769 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2770 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2771 | 'extern "C" void exit (int) throw ();' \ |
| 2772 | 'extern "C" void exit (int);' \ |
| 2773 | 'void exit (int);' |
| 2774 | do |
| 2775 | cat >conftest.$ac_ext <<_ACEOF |
| 2776 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2777 | /* confdefs.h. */ |
| 2778 | _ACEOF |
| 2779 | cat confdefs.h >>conftest.$ac_ext |
| 2780 | cat >>conftest.$ac_ext <<_ACEOF |
| 2781 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2782 | #include <stdlib.h> |
| 2783 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2784 | int |
| 2785 | main () |
| 2786 | { |
| 2787 | exit (42); |
| 2788 | ; |
| 2789 | return 0; |
| 2790 | } |
| 2791 | _ACEOF |
| 2792 | rm -f conftest.$ac_objext |
| 2793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2794 | (eval $ac_compile) 2>&5 |
| 2795 | ac_status=$? |
| 2796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2797 | (exit $ac_status); } && |
| 2798 | { ac_try='test -s conftest.$ac_objext' |
| 2799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2800 | (eval $ac_try) 2>&5 |
| 2801 | ac_status=$? |
| 2802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2803 | (exit $ac_status); }; }; then |
| 2804 | : |
| 2805 | else |
| 2806 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2808 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2809 | continue |
| 2810 | fi |
| 2811 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2812 | cat >conftest.$ac_ext <<_ACEOF |
| 2813 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2814 | /* confdefs.h. */ |
| 2815 | _ACEOF |
| 2816 | cat confdefs.h >>conftest.$ac_ext |
| 2817 | cat >>conftest.$ac_ext <<_ACEOF |
| 2818 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2819 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2820 | int |
| 2821 | main () |
| 2822 | { |
| 2823 | exit (42); |
| 2824 | ; |
| 2825 | return 0; |
| 2826 | } |
| 2827 | _ACEOF |
| 2828 | rm -f conftest.$ac_objext |
| 2829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2830 | (eval $ac_compile) 2>&5 |
| 2831 | ac_status=$? |
| 2832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2833 | (exit $ac_status); } && |
| 2834 | { ac_try='test -s conftest.$ac_objext' |
| 2835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2836 | (eval $ac_try) 2>&5 |
| 2837 | ac_status=$? |
| 2838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2839 | (exit $ac_status); }; }; then |
| 2840 | break |
| 2841 | else |
| 2842 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2844 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2845 | fi |
| 2846 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2847 | done |
| 2848 | rm -f conftest* |
| 2849 | if test -n "$ac_declaration"; then |
| 2850 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2851 | echo $ac_declaration >>confdefs.h |
| 2852 | echo '#endif' >>confdefs.h |
| 2853 | fi |
| 2854 | |
| 2855 | else |
| 2856 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2857 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2858 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2859 | fi |
| 2860 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2861 | ac_ext=c |
| 2862 | ac_cpp='$CPP $CPPFLAGS' |
| 2863 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2864 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2865 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2866 | |
| 2867 | ac_ext=c |
| 2868 | ac_cpp='$CPP $CPPFLAGS' |
| 2869 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2870 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2871 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2872 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2873 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 2874 | # On Suns, sometimes $CPP names a directory. |
| 2875 | if test -n "$CPP" && test -d "$CPP"; then |
| 2876 | CPP= |
| 2877 | fi |
| 2878 | if test -z "$CPP"; then |
| 2879 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2881 | else |
| 2882 | # Double quotes because CPP needs to be expanded |
| 2883 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2884 | do |
| 2885 | ac_preproc_ok=false |
| 2886 | for ac_c_preproc_warn_flag in '' yes |
| 2887 | do |
| 2888 | # Use a header file that comes with gcc, so configuring glibc |
| 2889 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2890 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2891 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2892 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2893 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2894 | cat >conftest.$ac_ext <<_ACEOF |
| 2895 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2896 | /* confdefs.h. */ |
| 2897 | _ACEOF |
| 2898 | cat confdefs.h >>conftest.$ac_ext |
| 2899 | cat >>conftest.$ac_ext <<_ACEOF |
| 2900 | /* end confdefs.h. */ |
| 2901 | #ifdef __STDC__ |
| 2902 | # include <limits.h> |
| 2903 | #else |
| 2904 | # include <assert.h> |
| 2905 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2906 | Syntax error |
| 2907 | _ACEOF |
| 2908 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2909 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2910 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2911 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2912 | rm -f conftest.er1 |
| 2913 | cat conftest.err >&5 |
| 2914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2915 | (exit $ac_status); } >/dev/null; then |
| 2916 | if test -s conftest.err; then |
| 2917 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2918 | else |
| 2919 | ac_cpp_err= |
| 2920 | fi |
| 2921 | else |
| 2922 | ac_cpp_err=yes |
| 2923 | fi |
| 2924 | if test -z "$ac_cpp_err"; then |
| 2925 | : |
| 2926 | else |
| 2927 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2929 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2930 | # Broken: fails on valid input. |
| 2931 | continue |
| 2932 | fi |
| 2933 | rm -f conftest.err conftest.$ac_ext |
| 2934 | |
| 2935 | # OK, works on sane cases. Now check whether non-existent headers |
| 2936 | # can be detected and how. |
| 2937 | cat >conftest.$ac_ext <<_ACEOF |
| 2938 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2939 | /* confdefs.h. */ |
| 2940 | _ACEOF |
| 2941 | cat confdefs.h >>conftest.$ac_ext |
| 2942 | cat >>conftest.$ac_ext <<_ACEOF |
| 2943 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2944 | #include <ac_nonexistent.h> |
| 2945 | _ACEOF |
| 2946 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2947 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2948 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2949 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2950 | rm -f conftest.er1 |
| 2951 | cat conftest.err >&5 |
| 2952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2953 | (exit $ac_status); } >/dev/null; then |
| 2954 | if test -s conftest.err; then |
| 2955 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2956 | else |
| 2957 | ac_cpp_err= |
| 2958 | fi |
| 2959 | else |
| 2960 | ac_cpp_err=yes |
| 2961 | fi |
| 2962 | if test -z "$ac_cpp_err"; then |
| 2963 | # Broken: success on invalid input. |
| 2964 | continue |
| 2965 | else |
| 2966 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2968 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2969 | # Passes both tests. |
| 2970 | ac_preproc_ok=: |
| 2971 | break |
| 2972 | fi |
| 2973 | rm -f conftest.err conftest.$ac_ext |
| 2974 | |
| 2975 | done |
| 2976 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2977 | rm -f conftest.err conftest.$ac_ext |
| 2978 | if $ac_preproc_ok; then |
| 2979 | break |
| 2980 | fi |
| 2981 | |
| 2982 | done |
| 2983 | ac_cv_prog_CPP=$CPP |
| 2984 | |
| 2985 | fi |
| 2986 | CPP=$ac_cv_prog_CPP |
| 2987 | else |
| 2988 | ac_cv_prog_CPP=$CPP |
| 2989 | fi |
| 2990 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2991 | echo "${ECHO_T}$CPP" >&6 |
| 2992 | ac_preproc_ok=false |
| 2993 | for ac_c_preproc_warn_flag in '' yes |
| 2994 | do |
| 2995 | # Use a header file that comes with gcc, so configuring glibc |
| 2996 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2997 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2998 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2999 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3000 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3001 | cat >conftest.$ac_ext <<_ACEOF |
| 3002 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3003 | /* confdefs.h. */ |
| 3004 | _ACEOF |
| 3005 | cat confdefs.h >>conftest.$ac_ext |
| 3006 | cat >>conftest.$ac_ext <<_ACEOF |
| 3007 | /* end confdefs.h. */ |
| 3008 | #ifdef __STDC__ |
| 3009 | # include <limits.h> |
| 3010 | #else |
| 3011 | # include <assert.h> |
| 3012 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3013 | Syntax error |
| 3014 | _ACEOF |
| 3015 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3016 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3017 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3018 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3019 | rm -f conftest.er1 |
| 3020 | cat conftest.err >&5 |
| 3021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3022 | (exit $ac_status); } >/dev/null; then |
| 3023 | if test -s conftest.err; then |
| 3024 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3025 | else |
| 3026 | ac_cpp_err= |
| 3027 | fi |
| 3028 | else |
| 3029 | ac_cpp_err=yes |
| 3030 | fi |
| 3031 | if test -z "$ac_cpp_err"; then |
| 3032 | : |
| 3033 | else |
| 3034 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3036 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3037 | # Broken: fails on valid input. |
| 3038 | continue |
| 3039 | fi |
| 3040 | rm -f conftest.err conftest.$ac_ext |
| 3041 | |
| 3042 | # OK, works on sane cases. Now check whether non-existent headers |
| 3043 | # can be detected and how. |
| 3044 | cat >conftest.$ac_ext <<_ACEOF |
| 3045 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3046 | /* confdefs.h. */ |
| 3047 | _ACEOF |
| 3048 | cat confdefs.h >>conftest.$ac_ext |
| 3049 | cat >>conftest.$ac_ext <<_ACEOF |
| 3050 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3051 | #include <ac_nonexistent.h> |
| 3052 | _ACEOF |
| 3053 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3054 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3055 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3056 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3057 | rm -f conftest.er1 |
| 3058 | cat conftest.err >&5 |
| 3059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3060 | (exit $ac_status); } >/dev/null; then |
| 3061 | if test -s conftest.err; then |
| 3062 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3063 | else |
| 3064 | ac_cpp_err= |
| 3065 | fi |
| 3066 | else |
| 3067 | ac_cpp_err=yes |
| 3068 | fi |
| 3069 | if test -z "$ac_cpp_err"; then |
| 3070 | # Broken: success on invalid input. |
| 3071 | continue |
| 3072 | else |
| 3073 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3075 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3076 | # Passes both tests. |
| 3077 | ac_preproc_ok=: |
| 3078 | break |
| 3079 | fi |
| 3080 | rm -f conftest.err conftest.$ac_ext |
| 3081 | |
| 3082 | done |
| 3083 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3084 | rm -f conftest.err conftest.$ac_ext |
| 3085 | if $ac_preproc_ok; then |
| 3086 | : |
| 3087 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3088 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3089 | See \`config.log' for more details." >&5 |
| 3090 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3091 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3092 | { (exit 1); exit 1; }; } |
| 3093 | fi |
| 3094 | |
| 3095 | ac_ext=c |
| 3096 | ac_cpp='$CPP $CPPFLAGS' |
| 3097 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3098 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3099 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3100 | |
| 3101 | |
| 3102 | if test "$GCC" != "yes" |
| 3103 | then |
| 3104 | { { echo "$as_me:$LINENO: error: gcc required but not found" >&5 |
| 3105 | echo "$as_me: error: gcc required but not found" >&2;} |
| 3106 | { (exit 1); exit 1; }; } |
| 3107 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3108 | if test "$GXX" != "yes" |
| 3109 | then |
| 3110 | { { echo "$as_me:$LINENO: error: g++ required but not found" >&5 |
| 3111 | echo "$as_me: error: g++ required but not found" >&2;} |
| 3112 | { (exit 1); exit 1; }; } |
| 3113 | fi |
| 3114 | |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 3115 | gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1` |
| 3116 | if test "$gccmajor" -lt "3" |
| 3117 | then |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 3118 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 3119 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 3120 | { (exit 1); exit 1; }; } |
| 3121 | fi |
| 3122 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3123 | echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 3124 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6 |
| 3125 | if test "${_cv_gnu_make_command+set}" = set; then |
| 3126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3127 | else |
| 3128 | _cv_gnu_make_command='' ; |
| 3129 | for a in "$MAKE" make gmake gnumake ; do |
| 3130 | if test -z "$a" ; then continue ; fi ; |
| 3131 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then |
| 3132 | _cv_gnu_make_command=$a ; |
| 3133 | break; |
| 3134 | fi |
| 3135 | done ; |
| 3136 | |
| 3137 | fi |
| 3138 | echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5 |
| 3139 | echo "${ECHO_T}$_cv_gnu_make_command" >&6 ; |
| 3140 | if test "x$_cv_gnu_make_command" != "x" ; then |
| 3141 | ifGNUmake='' ; |
| 3142 | else |
| 3143 | ifGNUmake='#' ; |
| 3144 | echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 3145 | echo "${ECHO_T}\"Not found\"" >&6; |
| 3146 | fi |
| 3147 | |
| 3148 | |
| 3149 | if test -z "$_cv_gnu_make_command" |
| 3150 | then |
| 3151 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 3152 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 3153 | { (exit 1); exit 1; }; } |
| 3154 | fi |
| 3155 | |
| 3156 | |
| 3157 | echo "$as_me:$LINENO: checking " >&5 |
| 3158 | echo $ECHO_N "checking ... $ECHO_C" >&6 |
| 3159 | if test "${ac_cv_has_flex+set}" = set; then |
| 3160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3161 | else |
| 3162 | for ac_prog in flex lex |
| 3163 | do |
| 3164 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3165 | set dummy $ac_prog; ac_word=$2 |
| 3166 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3167 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3168 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 3169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3170 | else |
| 3171 | if test -n "$LEX"; then |
| 3172 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 3173 | else |
| 3174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3175 | for as_dir in $PATH |
| 3176 | do |
| 3177 | IFS=$as_save_IFS |
| 3178 | test -z "$as_dir" && as_dir=. |
| 3179 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3180 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3181 | ac_cv_prog_LEX="$ac_prog" |
| 3182 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3183 | break 2 |
| 3184 | fi |
| 3185 | done |
| 3186 | done |
| 3187 | |
| 3188 | fi |
| 3189 | fi |
| 3190 | LEX=$ac_cv_prog_LEX |
| 3191 | if test -n "$LEX"; then |
| 3192 | echo "$as_me:$LINENO: result: $LEX" >&5 |
| 3193 | echo "${ECHO_T}$LEX" >&6 |
| 3194 | else |
| 3195 | echo "$as_me:$LINENO: result: no" >&5 |
| 3196 | echo "${ECHO_T}no" >&6 |
| 3197 | fi |
| 3198 | |
| 3199 | test -n "$LEX" && break |
| 3200 | done |
| 3201 | test -n "$LEX" || LEX=":" |
| 3202 | |
| 3203 | if test -z "$LEXLIB" |
| 3204 | then |
| 3205 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 3206 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 3207 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 3208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3209 | else |
| 3210 | ac_check_lib_save_LIBS=$LIBS |
| 3211 | LIBS="-lfl $LIBS" |
| 3212 | cat >conftest.$ac_ext <<_ACEOF |
| 3213 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3214 | /* confdefs.h. */ |
| 3215 | _ACEOF |
| 3216 | cat confdefs.h >>conftest.$ac_ext |
| 3217 | cat >>conftest.$ac_ext <<_ACEOF |
| 3218 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3219 | |
| 3220 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3221 | #ifdef __cplusplus |
| 3222 | extern "C" |
| 3223 | #endif |
| 3224 | /* We use char because int might match the return type of a gcc2 |
| 3225 | builtin and then its argument prototype would still apply. */ |
| 3226 | char yywrap (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3227 | int |
| 3228 | main () |
| 3229 | { |
| 3230 | yywrap (); |
| 3231 | ; |
| 3232 | return 0; |
| 3233 | } |
| 3234 | _ACEOF |
| 3235 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3236 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3237 | (eval $ac_link) 2>&5 |
| 3238 | ac_status=$? |
| 3239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3240 | (exit $ac_status); } && |
| 3241 | { ac_try='test -s conftest$ac_exeext' |
| 3242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3243 | (eval $ac_try) 2>&5 |
| 3244 | ac_status=$? |
| 3245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3246 | (exit $ac_status); }; }; then |
| 3247 | ac_cv_lib_fl_yywrap=yes |
| 3248 | else |
| 3249 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3251 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3252 | ac_cv_lib_fl_yywrap=no |
| 3253 | fi |
| 3254 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3255 | LIBS=$ac_check_lib_save_LIBS |
| 3256 | fi |
| 3257 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 3258 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 3259 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 3260 | LEXLIB="-lfl" |
| 3261 | else |
| 3262 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 3263 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 3264 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 3265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3266 | else |
| 3267 | ac_check_lib_save_LIBS=$LIBS |
| 3268 | LIBS="-ll $LIBS" |
| 3269 | cat >conftest.$ac_ext <<_ACEOF |
| 3270 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3271 | /* confdefs.h. */ |
| 3272 | _ACEOF |
| 3273 | cat confdefs.h >>conftest.$ac_ext |
| 3274 | cat >>conftest.$ac_ext <<_ACEOF |
| 3275 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3276 | |
| 3277 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3278 | #ifdef __cplusplus |
| 3279 | extern "C" |
| 3280 | #endif |
| 3281 | /* We use char because int might match the return type of a gcc2 |
| 3282 | builtin and then its argument prototype would still apply. */ |
| 3283 | char yywrap (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3284 | int |
| 3285 | main () |
| 3286 | { |
| 3287 | yywrap (); |
| 3288 | ; |
| 3289 | return 0; |
| 3290 | } |
| 3291 | _ACEOF |
| 3292 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3293 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3294 | (eval $ac_link) 2>&5 |
| 3295 | ac_status=$? |
| 3296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3297 | (exit $ac_status); } && |
| 3298 | { ac_try='test -s conftest$ac_exeext' |
| 3299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3300 | (eval $ac_try) 2>&5 |
| 3301 | ac_status=$? |
| 3302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3303 | (exit $ac_status); }; }; then |
| 3304 | ac_cv_lib_l_yywrap=yes |
| 3305 | else |
| 3306 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3308 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3309 | ac_cv_lib_l_yywrap=no |
| 3310 | fi |
| 3311 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3312 | LIBS=$ac_check_lib_save_LIBS |
| 3313 | fi |
| 3314 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 3315 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 3316 | if test $ac_cv_lib_l_yywrap = yes; then |
| 3317 | LEXLIB="-ll" |
| 3318 | fi |
| 3319 | |
| 3320 | fi |
| 3321 | |
| 3322 | fi |
| 3323 | |
| 3324 | if test "x$LEX" != "x:"; then |
| 3325 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 3326 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 3327 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 3328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3329 | else |
| 3330 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 3331 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 3332 | cat >conftest.l <<_ACEOF |
| 3333 | %% |
| 3334 | %% |
| 3335 | _ACEOF |
| 3336 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 3337 | (eval $LEX conftest.l) 2>&5 |
| 3338 | ac_status=$? |
| 3339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3340 | (exit $ac_status); } |
| 3341 | if test -f lex.yy.c; then |
| 3342 | ac_cv_prog_lex_root=lex.yy |
| 3343 | elif test -f lexyy.c; then |
| 3344 | ac_cv_prog_lex_root=lexyy |
| 3345 | else |
| 3346 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 3347 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 3348 | { (exit 1); exit 1; }; } |
| 3349 | fi |
| 3350 | fi |
| 3351 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 3352 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
| 3353 | rm -f conftest.l |
| 3354 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 3355 | |
| 3356 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 3357 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 3358 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 3359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3360 | else |
| 3361 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 3362 | # default is implementation-dependent. Figure out which it is, since |
| 3363 | # not all implementations provide the %pointer and %array declarations. |
| 3364 | ac_cv_prog_lex_yytext_pointer=no |
| 3365 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 3366 | ac_save_LIBS=$LIBS |
| 3367 | LIBS="$LIBS $LEXLIB" |
| 3368 | cat >conftest.$ac_ext <<_ACEOF |
| 3369 | `cat $LEX_OUTPUT_ROOT.c` |
| 3370 | _ACEOF |
| 3371 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3373 | (eval $ac_link) 2>&5 |
| 3374 | ac_status=$? |
| 3375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3376 | (exit $ac_status); } && |
| 3377 | { ac_try='test -s conftest$ac_exeext' |
| 3378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3379 | (eval $ac_try) 2>&5 |
| 3380 | ac_status=$? |
| 3381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3382 | (exit $ac_status); }; }; then |
| 3383 | ac_cv_prog_lex_yytext_pointer=yes |
| 3384 | else |
| 3385 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3387 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3388 | fi |
| 3389 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3390 | LIBS=$ac_save_LIBS |
| 3391 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 3392 | |
| 3393 | fi |
| 3394 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 3395 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 3396 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 3397 | |
| 3398 | cat >>confdefs.h <<\_ACEOF |
| 3399 | #define YYTEXT_POINTER 1 |
| 3400 | _ACEOF |
| 3401 | |
| 3402 | fi |
| 3403 | |
| 3404 | fi |
| 3405 | |
| 3406 | fi |
| 3407 | echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 |
| 3408 | echo "${ECHO_T}$ac_cv_has_flex" >&6 |
| 3409 | if test "$LEX" != "flex"; then |
| 3410 | { { echo "$as_me:$LINENO: error: flex not found but required" >&5 |
| 3411 | echo "$as_me: error: flex not found but required" >&2;} |
| 3412 | { (exit 1); exit 1; }; } |
| 3413 | fi |
| 3414 | |
| 3415 | echo "$as_me:$LINENO: checking " >&5 |
| 3416 | echo $ECHO_N "checking ... $ECHO_C" >&6 |
| 3417 | if test "${ac_cv_has_bison+set}" = set; then |
| 3418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3419 | else |
| 3420 | for ac_prog in 'bison -y' byacc |
| 3421 | do |
| 3422 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3423 | set dummy $ac_prog; ac_word=$2 |
| 3424 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3425 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3426 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 3427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3428 | else |
| 3429 | if test -n "$YACC"; then |
| 3430 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 3431 | else |
| 3432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3433 | for as_dir in $PATH |
| 3434 | do |
| 3435 | IFS=$as_save_IFS |
| 3436 | test -z "$as_dir" && as_dir=. |
| 3437 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3438 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3439 | ac_cv_prog_YACC="$ac_prog" |
| 3440 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3441 | break 2 |
| 3442 | fi |
| 3443 | done |
| 3444 | done |
| 3445 | |
| 3446 | fi |
| 3447 | fi |
| 3448 | YACC=$ac_cv_prog_YACC |
| 3449 | if test -n "$YACC"; then |
| 3450 | echo "$as_me:$LINENO: result: $YACC" >&5 |
| 3451 | echo "${ECHO_T}$YACC" >&6 |
| 3452 | else |
| 3453 | echo "$as_me:$LINENO: result: no" >&5 |
| 3454 | echo "${ECHO_T}no" >&6 |
| 3455 | fi |
| 3456 | |
| 3457 | test -n "$YACC" && break |
| 3458 | done |
| 3459 | test -n "$YACC" || YACC="yacc" |
| 3460 | |
| 3461 | |
| 3462 | fi |
| 3463 | echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5 |
| 3464 | echo "${ECHO_T}$ac_cv_has_bison" >&6 |
| 3465 | if test "$YACC" != "bison -y"; then |
| 3466 | { { echo "$as_me:$LINENO: error: bison not found but required" >&5 |
| 3467 | echo "$as_me: error: bison not found but required" >&2;} |
| 3468 | { (exit 1); exit 1; }; } |
| 3469 | else |
Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 3470 | BISON=bison |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3471 | |
| 3472 | fi |
| 3473 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3474 | # Check whether --enable-shared or --disable-shared was given. |
| 3475 | if test "${enable_shared+set}" = set; then |
| 3476 | enableval="$enable_shared" |
| 3477 | p=${PACKAGE-default} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3478 | case $enableval in |
| 3479 | yes) enable_shared=yes ;; |
| 3480 | no) enable_shared=no ;; |
| 3481 | *) |
| 3482 | enable_shared=no |
| 3483 | # Look at the argument we got. We use all the common list separators. |
| 3484 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3485 | for pkg in $enableval; do |
| 3486 | IFS="$lt_save_ifs" |
| 3487 | if test "X$pkg" = "X$p"; then |
| 3488 | enable_shared=yes |
| 3489 | fi |
| 3490 | done |
| 3491 | IFS="$lt_save_ifs" |
| 3492 | ;; |
| 3493 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3494 | else |
| 3495 | enable_shared=yes |
| 3496 | fi; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3497 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3498 | # Check whether --enable-static or --disable-static was given. |
| 3499 | if test "${enable_static+set}" = set; then |
| 3500 | enableval="$enable_static" |
| 3501 | p=${PACKAGE-default} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3502 | case $enableval in |
| 3503 | yes) enable_static=yes ;; |
| 3504 | no) enable_static=no ;; |
| 3505 | *) |
| 3506 | enable_static=no |
| 3507 | # Look at the argument we got. We use all the common list separators. |
| 3508 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3509 | for pkg in $enableval; do |
| 3510 | IFS="$lt_save_ifs" |
| 3511 | if test "X$pkg" = "X$p"; then |
| 3512 | enable_static=yes |
| 3513 | fi |
| 3514 | done |
| 3515 | IFS="$lt_save_ifs" |
| 3516 | ;; |
| 3517 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3518 | else |
| 3519 | enable_static=yes |
| 3520 | fi; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3521 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3522 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 3523 | if test "${enable_fast_install+set}" = set; then |
| 3524 | enableval="$enable_fast_install" |
| 3525 | p=${PACKAGE-default} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3526 | case $enableval in |
| 3527 | yes) enable_fast_install=yes ;; |
| 3528 | no) enable_fast_install=no ;; |
| 3529 | *) |
| 3530 | enable_fast_install=no |
| 3531 | # Look at the argument we got. We use all the common list separators. |
| 3532 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3533 | for pkg in $enableval; do |
| 3534 | IFS="$lt_save_ifs" |
| 3535 | if test "X$pkg" = "X$p"; then |
| 3536 | enable_fast_install=yes |
| 3537 | fi |
| 3538 | done |
| 3539 | IFS="$lt_save_ifs" |
| 3540 | ;; |
| 3541 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3542 | else |
| 3543 | enable_fast_install=yes |
| 3544 | fi; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3545 | |
| 3546 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 3547 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 3548 | if test "${lt_cv_path_SED+set}" = set; then |
| 3549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3550 | else |
| 3551 | # Loop through the user's path and test for sed and gsed. |
| 3552 | # Then use that list of sed's as ones to test for truncation. |
| 3553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3554 | for as_dir in $PATH |
| 3555 | do |
| 3556 | IFS=$as_save_IFS |
| 3557 | test -z "$as_dir" && as_dir=. |
| 3558 | for lt_ac_prog in sed gsed; do |
| 3559 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3560 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 3561 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 3562 | fi |
| 3563 | done |
| 3564 | done |
| 3565 | done |
| 3566 | lt_ac_max=0 |
| 3567 | lt_ac_count=0 |
| 3568 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 3569 | # along with /bin/sed that truncates output. |
| 3570 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 3571 | test ! -f $lt_ac_sed && break |
| 3572 | cat /dev/null > conftest.in |
| 3573 | lt_ac_count=0 |
| 3574 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 3575 | # Check for GNU sed and select it if it is found. |
| 3576 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 3577 | lt_cv_path_SED=$lt_ac_sed |
| 3578 | break |
| 3579 | fi |
| 3580 | while true; do |
| 3581 | cat conftest.in conftest.in >conftest.tmp |
| 3582 | mv conftest.tmp conftest.in |
| 3583 | cp conftest.in conftest.nl |
| 3584 | echo >>conftest.nl |
| 3585 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 3586 | cmp -s conftest.out conftest.nl || break |
| 3587 | # 10000 chars as input seems more than enough |
| 3588 | test $lt_ac_count -gt 10 && break |
| 3589 | lt_ac_count=`expr $lt_ac_count + 1` |
| 3590 | if test $lt_ac_count -gt $lt_ac_max; then |
| 3591 | lt_ac_max=$lt_ac_count |
| 3592 | lt_cv_path_SED=$lt_ac_sed |
| 3593 | fi |
| 3594 | done |
| 3595 | done |
| 3596 | SED=$lt_cv_path_SED |
| 3597 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3598 | fi |
| 3599 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3600 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 3601 | echo "${ECHO_T}$SED" >&6 |
| 3602 | |
| 3603 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3604 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3605 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3607 | else |
| 3608 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3609 | then ac_cv_prog_egrep='grep -E' |
| 3610 | else ac_cv_prog_egrep='egrep' |
| 3611 | fi |
| 3612 | fi |
| 3613 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3614 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3615 | EGREP=$ac_cv_prog_egrep |
| 3616 | |
| 3617 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3618 | |
| 3619 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 3620 | if test "${with_gnu_ld+set}" = set; then |
| 3621 | withval="$with_gnu_ld" |
| 3622 | test "$withval" = no || with_gnu_ld=yes |
| 3623 | else |
| 3624 | with_gnu_ld=no |
| 3625 | fi; |
| 3626 | ac_prog=ld |
| 3627 | if test "$GCC" = yes; then |
| 3628 | # Check if gcc -print-prog-name=ld gives a path. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3629 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 3630 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3631 | case $host in |
| 3632 | *-*-mingw*) |
| 3633 | # gcc leaves a trailing carriage return which upsets mingw |
| 3634 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 3635 | *) |
| 3636 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 3637 | esac |
| 3638 | case $ac_prog in |
| 3639 | # Accept absolute paths. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3640 | [\\/]* | ?:[\\/]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3641 | re_direlt='/[^/][^/]*/\.\./' |
| 3642 | # Canonicalize the path of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3643 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3644 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3645 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3646 | done |
| 3647 | test -z "$LD" && LD="$ac_prog" |
| 3648 | ;; |
| 3649 | "") |
| 3650 | # If it fails, then pretend we aren't using GCC. |
| 3651 | ac_prog=ld |
| 3652 | ;; |
| 3653 | *) |
| 3654 | # If it is relative, then search for the first ld in PATH. |
| 3655 | with_gnu_ld=unknown |
| 3656 | ;; |
| 3657 | esac |
| 3658 | elif test "$with_gnu_ld" = yes; then |
| 3659 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 3660 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 3661 | else |
| 3662 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 3663 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 3664 | fi |
| 3665 | if test "${lt_cv_path_LD+set}" = set; then |
| 3666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3667 | else |
| 3668 | if test -z "$LD"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3669 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3670 | for ac_dir in $PATH; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3671 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3672 | test -z "$ac_dir" && ac_dir=. |
| 3673 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 3674 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 3675 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 3676 | # but apparently some GNU ld's only accept -v. |
| 3677 | # Break only if it was the GNU/non-GNU ld that we prefer. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3678 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 3679 | *GNU* | *'with BFD'*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3680 | test "$with_gnu_ld" != no && break |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3681 | ;; |
| 3682 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3683 | test "$with_gnu_ld" != yes && break |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3684 | ;; |
| 3685 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3686 | fi |
| 3687 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3688 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3689 | else |
| 3690 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 3691 | fi |
| 3692 | fi |
| 3693 | |
| 3694 | LD="$lt_cv_path_LD" |
| 3695 | if test -n "$LD"; then |
| 3696 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 3697 | echo "${ECHO_T}$LD" >&6 |
| 3698 | else |
| 3699 | echo "$as_me:$LINENO: result: no" >&5 |
| 3700 | echo "${ECHO_T}no" >&6 |
| 3701 | fi |
| 3702 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 3703 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 3704 | { (exit 1); exit 1; }; } |
| 3705 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 3706 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 3707 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 3708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3709 | else |
| 3710 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3711 | case `"$LD" -v 2>&1 </dev/null` in |
| 3712 | *GNU* | *'with BFD'*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3713 | lt_cv_prog_gnu_ld=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3714 | ;; |
| 3715 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3716 | lt_cv_prog_gnu_ld=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3717 | ;; |
| 3718 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3719 | fi |
| 3720 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 3721 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 3722 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 3723 | |
| 3724 | |
| 3725 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 3726 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 3727 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 3728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3729 | else |
| 3730 | lt_cv_ld_reload_flag='-r' |
| 3731 | fi |
| 3732 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 3733 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 3734 | reload_flag=$lt_cv_ld_reload_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3735 | case $reload_flag in |
| 3736 | "" | " "*) ;; |
| 3737 | *) reload_flag=" $reload_flag" ;; |
| 3738 | esac |
| 3739 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3740 | |
| 3741 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 3742 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 3743 | if test "${lt_cv_path_NM+set}" = set; then |
| 3744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3745 | else |
| 3746 | if test -n "$NM"; then |
| 3747 | # Let the user override the test. |
| 3748 | lt_cv_path_NM="$NM" |
| 3749 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3750 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3751 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3752 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3753 | test -z "$ac_dir" && ac_dir=. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3754 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
| 3755 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3756 | # Check to see if the nm accepts a BSD-compat flag. |
| 3757 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 3758 | # nm: unknown option "B" ignored |
| 3759 | # Tru64's nm complains that /dev/null is an invalid object file |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3760 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 3761 | */dev/null* | *'Invalid file or object type'*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3762 | lt_cv_path_NM="$tmp_nm -B" |
| 3763 | break |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3764 | ;; |
| 3765 | *) |
| 3766 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 3767 | */dev/null*) |
| 3768 | lt_cv_path_NM="$tmp_nm -p" |
| 3769 | break |
| 3770 | ;; |
| 3771 | *) |
| 3772 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 3773 | continue # so that we can try to find one that supports BSD flags |
| 3774 | ;; |
| 3775 | esac |
| 3776 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3777 | fi |
| 3778 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3779 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3780 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 3781 | fi |
| 3782 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3783 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 3784 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3785 | NM="$lt_cv_path_NM" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3786 | |
| 3787 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 3788 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 3789 | LN_S=$as_ln_s |
| 3790 | if test "$LN_S" = "ln -s"; then |
| 3791 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3792 | echo "${ECHO_T}yes" >&6 |
| 3793 | else |
| 3794 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 3795 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 3796 | fi |
| 3797 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3798 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 3799 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3800 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 3801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3802 | else |
| 3803 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 3804 | lt_cv_file_magic_test_file= |
| 3805 | lt_cv_deplibs_check_method='unknown' |
| 3806 | # Need to set the preceding variable on all platforms that support |
| 3807 | # interlibrary dependencies. |
| 3808 | # 'none' -- dependencies not supported. |
| 3809 | # `unknown' -- same as none, but documents that we really don't know. |
| 3810 | # 'pass_all' -- all dependencies passed with no checks. |
| 3811 | # 'test_compile' -- check by making test program. |
| 3812 | # 'file_magic [[regex]]' -- check by looking for files in library path |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3813 | # which responds to the $file_magic_cmd with a given extended regex. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3814 | # If you have `file' or equivalent on your system and you're not sure |
| 3815 | # whether `pass_all' will *always* work, you probably want this one. |
| 3816 | |
| 3817 | case $host_os in |
| 3818 | aix4* | aix5*) |
| 3819 | lt_cv_deplibs_check_method=pass_all |
| 3820 | ;; |
| 3821 | |
| 3822 | beos*) |
| 3823 | lt_cv_deplibs_check_method=pass_all |
| 3824 | ;; |
| 3825 | |
| 3826 | bsdi4*) |
| 3827 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 3828 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3829 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3830 | ;; |
| 3831 | |
| 3832 | cygwin* | mingw* | pw32*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3833 | # win32_libid is a shell function defined in ltmain.sh |
| 3834 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 3835 | lt_cv_file_magic_cmd='win32_libid' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3836 | ;; |
| 3837 | |
| 3838 | darwin* | rhapsody*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3839 | # this will be overwritten by pass_all, but leave it in just in case |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3840 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 3841 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3842 | case "$host_os" in |
| 3843 | rhapsody* | darwin1.[012]) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3844 | lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3845 | ;; |
| 3846 | *) # Darwin 1.3 on |
| 3847 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 3848 | ;; |
| 3849 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3850 | lt_cv_deplibs_check_method=pass_all |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3851 | ;; |
| 3852 | |
| 3853 | freebsd*) |
| 3854 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3855 | case $host_cpu in |
| 3856 | i*86 ) |
| 3857 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 3858 | # Let's accept both of them until this is cleared up. |
| 3859 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 3860 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3861 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3862 | ;; |
| 3863 | esac |
| 3864 | else |
| 3865 | lt_cv_deplibs_check_method=pass_all |
| 3866 | fi |
| 3867 | ;; |
| 3868 | |
| 3869 | gnu*) |
| 3870 | lt_cv_deplibs_check_method=pass_all |
| 3871 | ;; |
| 3872 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3873 | hpux10.20* | hpux11*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3874 | lt_cv_file_magic_cmd=/usr/bin/file |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3875 | case "$host_cpu" in |
| 3876 | ia64*) |
| 3877 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 3878 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 3879 | ;; |
| 3880 | hppa*64*) |
| 3881 | 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]' |
| 3882 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 3883 | ;; |
| 3884 | *) |
| 3885 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 3886 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 3887 | ;; |
| 3888 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3889 | ;; |
| 3890 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3891 | irix5* | irix6* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3892 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3893 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3894 | # this will be overridden with pass_all, but let us keep it just in case |
| 3895 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| 3896 | ;; |
| 3897 | *) |
| 3898 | case $LD in |
| 3899 | *-32|*"-32 ") libmagic=32-bit;; |
| 3900 | *-n32|*"-n32 ") libmagic=N32;; |
| 3901 | *-64|*"-64 ") libmagic=64-bit;; |
| 3902 | *) libmagic=never-match;; |
| 3903 | esac |
| 3904 | # this will be overridden with pass_all, but let us keep it just in case |
| 3905 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
| 3906 | ;; |
| 3907 | esac |
| 3908 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
| 3909 | lt_cv_deplibs_check_method=pass_all |
| 3910 | ;; |
| 3911 | |
| 3912 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3913 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3914 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3915 | alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3916 | lt_cv_deplibs_check_method=pass_all ;; |
| 3917 | *) |
| 3918 | # glibc up to 2.1.1 does not perform some relocations on ARM |
| 3919 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
| 3920 | esac |
| 3921 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 3922 | ;; |
| 3923 | |
| 3924 | netbsd*) |
| 3925 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3926 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3927 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3928 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3929 | fi |
| 3930 | ;; |
| 3931 | |
| 3932 | newos6*) |
| 3933 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 3934 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3935 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 3936 | ;; |
| 3937 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3938 | nto-qnx) |
| 3939 | lt_cv_deplibs_check_method=unknown |
| 3940 | ;; |
| 3941 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3942 | openbsd*) |
| 3943 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3944 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3945 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 3946 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
| 3947 | else |
| 3948 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| 3949 | fi |
| 3950 | ;; |
| 3951 | |
| 3952 | osf3* | osf4* | osf5*) |
| 3953 | # this will be overridden with pass_all, but let us keep it just in case |
| 3954 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 3955 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3956 | lt_cv_deplibs_check_method=pass_all |
| 3957 | ;; |
| 3958 | |
| 3959 | sco3.2v5*) |
| 3960 | lt_cv_deplibs_check_method=pass_all |
| 3961 | ;; |
| 3962 | |
| 3963 | solaris*) |
| 3964 | lt_cv_deplibs_check_method=pass_all |
| 3965 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3966 | ;; |
| 3967 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3968 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 3969 | case $host_vendor in |
| 3970 | motorola) |
| 3971 | 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]' |
| 3972 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 3973 | ;; |
| 3974 | ncr) |
| 3975 | lt_cv_deplibs_check_method=pass_all |
| 3976 | ;; |
| 3977 | sequent) |
| 3978 | lt_cv_file_magic_cmd='/bin/file' |
| 3979 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 3980 | ;; |
| 3981 | sni) |
| 3982 | lt_cv_file_magic_cmd='/bin/file' |
| 3983 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 3984 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3985 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3986 | siemens) |
| 3987 | lt_cv_deplibs_check_method=pass_all |
| 3988 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3989 | esac |
| 3990 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3991 | |
| 3992 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
| 3993 | lt_cv_deplibs_check_method=pass_all |
| 3994 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3995 | esac |
| 3996 | |
| 3997 | fi |
| 3998 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 3999 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 4000 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 4001 | deplibs_check_method=$lt_cv_deplibs_check_method |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4002 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4003 | |
| 4004 | |
| 4005 | |
| 4006 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4007 | # If no C compiler was specified, use CC. |
| 4008 | LTCC=${LTCC-"$CC"} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4009 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4010 | # Allow CC to be a program name with arguments. |
| 4011 | compiler=$CC |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4012 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4013 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 4014 | if test "${enable_libtool_lock+set}" = set; then |
| 4015 | enableval="$enable_libtool_lock" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4016 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4017 | fi; |
| 4018 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4019 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4020 | # Some flags need to be propagated to the compiler or linker for good |
| 4021 | # libtool support. |
| 4022 | case $host in |
| 4023 | ia64-*-hpux*) |
| 4024 | # Find out which ABI we are using. |
| 4025 | echo 'int i;' > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4026 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4027 | (eval $ac_compile) 2>&5 |
| 4028 | ac_status=$? |
| 4029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4030 | (exit $ac_status); }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4031 | case `/usr/bin/file conftest.$ac_objext` in |
| 4032 | *ELF-32*) |
| 4033 | HPUX_IA64_MODE="32" |
| 4034 | ;; |
| 4035 | *ELF-64*) |
| 4036 | HPUX_IA64_MODE="64" |
| 4037 | ;; |
| 4038 | esac |
| 4039 | fi |
| 4040 | rm -rf conftest* |
| 4041 | ;; |
| 4042 | *-*-irix6*) |
| 4043 | # Find out which ABI we are using. |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 4044 | echo '#line 4044 "configure"' > conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4046 | (eval $ac_compile) 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4047 | ac_status=$? |
| 4048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4049 | (exit $ac_status); }; then |
| 4050 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 4051 | case `/usr/bin/file conftest.$ac_objext` in |
| 4052 | *32-bit*) |
| 4053 | LD="${LD-ld} -melf32bsmip" |
| 4054 | ;; |
| 4055 | *N32*) |
| 4056 | LD="${LD-ld} -melf32bmipn32" |
| 4057 | ;; |
| 4058 | *64-bit*) |
| 4059 | LD="${LD-ld} -melf64bmip" |
| 4060 | ;; |
| 4061 | esac |
| 4062 | else |
| 4063 | case `/usr/bin/file conftest.$ac_objext` in |
| 4064 | *32-bit*) |
| 4065 | LD="${LD-ld} -32" |
| 4066 | ;; |
| 4067 | *N32*) |
| 4068 | LD="${LD-ld} -n32" |
| 4069 | ;; |
| 4070 | *64-bit*) |
| 4071 | LD="${LD-ld} -64" |
| 4072 | ;; |
| 4073 | esac |
| 4074 | fi |
| 4075 | fi |
| 4076 | rm -rf conftest* |
| 4077 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4078 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4079 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 4080 | # Find out which ABI we are using. |
| 4081 | echo 'int i;' > conftest.$ac_ext |
| 4082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4083 | (eval $ac_compile) 2>&5 |
| 4084 | ac_status=$? |
| 4085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4086 | (exit $ac_status); }; then |
| 4087 | case "`/usr/bin/file conftest.o`" in |
| 4088 | *32-bit*) |
| 4089 | case $host in |
| 4090 | x86_64-*linux*) |
| 4091 | LD="${LD-ld} -m elf_i386" |
| 4092 | ;; |
| 4093 | ppc64-*linux*) |
| 4094 | LD="${LD-ld} -m elf32ppclinux" |
| 4095 | ;; |
| 4096 | s390x-*linux*) |
| 4097 | LD="${LD-ld} -m elf_s390" |
| 4098 | ;; |
| 4099 | sparc64-*linux*) |
| 4100 | LD="${LD-ld} -m elf32_sparc" |
| 4101 | ;; |
| 4102 | esac |
| 4103 | ;; |
| 4104 | *64-bit*) |
| 4105 | case $host in |
| 4106 | x86_64-*linux*) |
| 4107 | LD="${LD-ld} -m elf_x86_64" |
| 4108 | ;; |
| 4109 | ppc*-*linux*|powerpc*-*linux*) |
| 4110 | LD="${LD-ld} -m elf64ppc" |
| 4111 | ;; |
| 4112 | s390*-*linux*) |
| 4113 | LD="${LD-ld} -m elf64_s390" |
| 4114 | ;; |
| 4115 | sparc*-*linux*) |
| 4116 | LD="${LD-ld} -m elf64_sparc" |
| 4117 | ;; |
| 4118 | esac |
| 4119 | ;; |
| 4120 | esac |
| 4121 | fi |
| 4122 | rm -rf conftest* |
| 4123 | ;; |
| 4124 | |
| 4125 | *-*-sco3.2v5*) |
| 4126 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 4127 | SAVE_CFLAGS="$CFLAGS" |
| 4128 | CFLAGS="$CFLAGS -belf" |
| 4129 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 4130 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 4131 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 4132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4133 | else |
| 4134 | ac_ext=c |
| 4135 | ac_cpp='$CPP $CPPFLAGS' |
| 4136 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4137 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4138 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4139 | |
| 4140 | cat >conftest.$ac_ext <<_ACEOF |
| 4141 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4142 | /* confdefs.h. */ |
| 4143 | _ACEOF |
| 4144 | cat confdefs.h >>conftest.$ac_ext |
| 4145 | cat >>conftest.$ac_ext <<_ACEOF |
| 4146 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4147 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4148 | int |
| 4149 | main () |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4150 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4151 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4152 | ; |
| 4153 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4154 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4155 | _ACEOF |
| 4156 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4158 | (eval $ac_link) 2>&5 |
| 4159 | ac_status=$? |
| 4160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4161 | (exit $ac_status); } && |
| 4162 | { ac_try='test -s conftest$ac_exeext' |
| 4163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4164 | (eval $ac_try) 2>&5 |
| 4165 | ac_status=$? |
| 4166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4167 | (exit $ac_status); }; }; then |
| 4168 | lt_cv_cc_needs_belf=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4169 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4170 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4172 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4173 | lt_cv_cc_needs_belf=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4174 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4175 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4176 | ac_ext=c |
| 4177 | ac_cpp='$CPP $CPPFLAGS' |
| 4178 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4179 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4180 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4181 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4182 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4183 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 4184 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 4185 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 4186 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 4187 | CFLAGS="$SAVE_CFLAGS" |
| 4188 | fi |
| 4189 | ;; |
| 4190 | |
| 4191 | esac |
| 4192 | |
| 4193 | need_locks="$enable_libtool_lock" |
| 4194 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4195 | |
| 4196 | |
| 4197 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4198 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4199 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4201 | else |
| 4202 | cat >conftest.$ac_ext <<_ACEOF |
| 4203 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4204 | /* confdefs.h. */ |
| 4205 | _ACEOF |
| 4206 | cat confdefs.h >>conftest.$ac_ext |
| 4207 | cat >>conftest.$ac_ext <<_ACEOF |
| 4208 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4209 | #include <stdlib.h> |
| 4210 | #include <stdarg.h> |
| 4211 | #include <string.h> |
| 4212 | #include <float.h> |
| 4213 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4214 | int |
| 4215 | main () |
| 4216 | { |
| 4217 | |
| 4218 | ; |
| 4219 | return 0; |
| 4220 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4221 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4222 | rm -f conftest.$ac_objext |
| 4223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4224 | (eval $ac_compile) 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4225 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4227 | (exit $ac_status); } && |
| 4228 | { ac_try='test -s conftest.$ac_objext' |
| 4229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4230 | (eval $ac_try) 2>&5 |
| 4231 | ac_status=$? |
| 4232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4233 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4234 | ac_cv_header_stdc=yes |
| 4235 | else |
| 4236 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4238 | |
| 4239 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4240 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4241 | rm -f conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4242 | |
| 4243 | if test $ac_cv_header_stdc = yes; then |
| 4244 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4245 | cat >conftest.$ac_ext <<_ACEOF |
| 4246 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4247 | /* confdefs.h. */ |
| 4248 | _ACEOF |
| 4249 | cat confdefs.h >>conftest.$ac_ext |
| 4250 | cat >>conftest.$ac_ext <<_ACEOF |
| 4251 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4252 | #include <string.h> |
| 4253 | |
| 4254 | _ACEOF |
| 4255 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4256 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4257 | : |
| 4258 | else |
| 4259 | ac_cv_header_stdc=no |
| 4260 | fi |
| 4261 | rm -f conftest* |
| 4262 | |
| 4263 | fi |
| 4264 | |
| 4265 | if test $ac_cv_header_stdc = yes; then |
| 4266 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4267 | cat >conftest.$ac_ext <<_ACEOF |
| 4268 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4269 | /* confdefs.h. */ |
| 4270 | _ACEOF |
| 4271 | cat confdefs.h >>conftest.$ac_ext |
| 4272 | cat >>conftest.$ac_ext <<_ACEOF |
| 4273 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4274 | #include <stdlib.h> |
| 4275 | |
| 4276 | _ACEOF |
| 4277 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4278 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4279 | : |
| 4280 | else |
| 4281 | ac_cv_header_stdc=no |
| 4282 | fi |
| 4283 | rm -f conftest* |
| 4284 | |
| 4285 | fi |
| 4286 | |
| 4287 | if test $ac_cv_header_stdc = yes; then |
| 4288 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4289 | if test "$cross_compiling" = yes; then |
| 4290 | : |
| 4291 | else |
| 4292 | cat >conftest.$ac_ext <<_ACEOF |
| 4293 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4294 | /* confdefs.h. */ |
| 4295 | _ACEOF |
| 4296 | cat confdefs.h >>conftest.$ac_ext |
| 4297 | cat >>conftest.$ac_ext <<_ACEOF |
| 4298 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4299 | #include <ctype.h> |
| 4300 | #if ((' ' & 0x0FF) == 0x020) |
| 4301 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4302 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4303 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4304 | # define ISLOWER(c) \ |
| 4305 | (('a' <= (c) && (c) <= 'i') \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4306 | || ('j' <= (c) && (c) <= 'r') \ |
| 4307 | || ('s' <= (c) && (c) <= 'z')) |
| 4308 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4309 | #endif |
| 4310 | |
| 4311 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4312 | int |
| 4313 | main () |
| 4314 | { |
| 4315 | int i; |
| 4316 | for (i = 0; i < 256; i++) |
| 4317 | if (XOR (islower (i), ISLOWER (i)) |
| 4318 | || toupper (i) != TOUPPER (i)) |
| 4319 | exit(2); |
| 4320 | exit (0); |
| 4321 | } |
| 4322 | _ACEOF |
| 4323 | rm -f conftest$ac_exeext |
| 4324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4325 | (eval $ac_link) 2>&5 |
| 4326 | ac_status=$? |
| 4327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4328 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4330 | (eval $ac_try) 2>&5 |
| 4331 | ac_status=$? |
| 4332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4333 | (exit $ac_status); }; }; then |
| 4334 | : |
| 4335 | else |
| 4336 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4337 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4339 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4340 | ( exit $ac_status ) |
| 4341 | ac_cv_header_stdc=no |
| 4342 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4343 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4344 | fi |
| 4345 | fi |
| 4346 | fi |
| 4347 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4348 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 4349 | if test $ac_cv_header_stdc = yes; then |
| 4350 | |
| 4351 | cat >>confdefs.h <<\_ACEOF |
| 4352 | #define STDC_HEADERS 1 |
| 4353 | _ACEOF |
| 4354 | |
| 4355 | fi |
| 4356 | |
| 4357 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4358 | |
| 4359 | |
| 4360 | |
| 4361 | |
| 4362 | |
| 4363 | |
| 4364 | |
| 4365 | |
| 4366 | |
| 4367 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4368 | inttypes.h stdint.h unistd.h |
| 4369 | do |
| 4370 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4371 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4372 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4373 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4375 | else |
| 4376 | cat >conftest.$ac_ext <<_ACEOF |
| 4377 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4378 | /* confdefs.h. */ |
| 4379 | _ACEOF |
| 4380 | cat confdefs.h >>conftest.$ac_ext |
| 4381 | cat >>conftest.$ac_ext <<_ACEOF |
| 4382 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4383 | $ac_includes_default |
| 4384 | |
| 4385 | #include <$ac_header> |
| 4386 | _ACEOF |
| 4387 | rm -f conftest.$ac_objext |
| 4388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4389 | (eval $ac_compile) 2>&5 |
| 4390 | ac_status=$? |
| 4391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4392 | (exit $ac_status); } && |
| 4393 | { ac_try='test -s conftest.$ac_objext' |
| 4394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4395 | (eval $ac_try) 2>&5 |
| 4396 | ac_status=$? |
| 4397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4398 | (exit $ac_status); }; }; then |
| 4399 | eval "$as_ac_Header=yes" |
| 4400 | else |
| 4401 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4402 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4403 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4404 | eval "$as_ac_Header=no" |
| 4405 | fi |
| 4406 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4407 | fi |
| 4408 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4409 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4410 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4411 | cat >>confdefs.h <<_ACEOF |
| 4412 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4413 | _ACEOF |
| 4414 | |
| 4415 | fi |
| 4416 | |
| 4417 | done |
| 4418 | |
| 4419 | |
| 4420 | |
| 4421 | for ac_header in dlfcn.h |
| 4422 | do |
| 4423 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4424 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4425 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4426 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4427 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4429 | fi |
| 4430 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4431 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4432 | else |
| 4433 | # Is the header compilable? |
| 4434 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4435 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4436 | cat >conftest.$ac_ext <<_ACEOF |
| 4437 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4438 | /* confdefs.h. */ |
| 4439 | _ACEOF |
| 4440 | cat confdefs.h >>conftest.$ac_ext |
| 4441 | cat >>conftest.$ac_ext <<_ACEOF |
| 4442 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4443 | $ac_includes_default |
| 4444 | #include <$ac_header> |
| 4445 | _ACEOF |
| 4446 | rm -f conftest.$ac_objext |
| 4447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4448 | (eval $ac_compile) 2>&5 |
| 4449 | ac_status=$? |
| 4450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4451 | (exit $ac_status); } && |
| 4452 | { ac_try='test -s conftest.$ac_objext' |
| 4453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4454 | (eval $ac_try) 2>&5 |
| 4455 | ac_status=$? |
| 4456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4457 | (exit $ac_status); }; }; then |
| 4458 | ac_header_compiler=yes |
| 4459 | else |
| 4460 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4461 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4462 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4463 | ac_header_compiler=no |
| 4464 | fi |
| 4465 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4466 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4467 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4468 | |
| 4469 | # Is the header present? |
| 4470 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4471 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4472 | cat >conftest.$ac_ext <<_ACEOF |
| 4473 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4474 | /* confdefs.h. */ |
| 4475 | _ACEOF |
| 4476 | cat confdefs.h >>conftest.$ac_ext |
| 4477 | cat >>conftest.$ac_ext <<_ACEOF |
| 4478 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4479 | #include <$ac_header> |
| 4480 | _ACEOF |
| 4481 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4482 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4483 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4484 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4485 | rm -f conftest.er1 |
| 4486 | cat conftest.err >&5 |
| 4487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4488 | (exit $ac_status); } >/dev/null; then |
| 4489 | if test -s conftest.err; then |
| 4490 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4491 | else |
| 4492 | ac_cpp_err= |
| 4493 | fi |
| 4494 | else |
| 4495 | ac_cpp_err=yes |
| 4496 | fi |
| 4497 | if test -z "$ac_cpp_err"; then |
| 4498 | ac_header_preproc=yes |
| 4499 | else |
| 4500 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4502 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4503 | ac_header_preproc=no |
| 4504 | fi |
| 4505 | rm -f conftest.err conftest.$ac_ext |
| 4506 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4507 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4508 | |
| 4509 | # So? What about this header? |
| 4510 | case $ac_header_compiler:$ac_header_preproc in |
| 4511 | yes:no ) |
| 4512 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4513 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4514 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4515 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4516 | ( |
| 4517 | cat <<\_ASBOX |
| 4518 | ## ------------------------------------ ## |
| 4519 | ## Report this to bug-autoconf@gnu.org. ## |
| 4520 | ## ------------------------------------ ## |
| 4521 | _ASBOX |
| 4522 | ) | |
| 4523 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4524 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4525 | no:yes ) |
| 4526 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4527 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4528 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4529 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4530 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4531 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4532 | ( |
| 4533 | cat <<\_ASBOX |
| 4534 | ## ------------------------------------ ## |
| 4535 | ## Report this to bug-autoconf@gnu.org. ## |
| 4536 | ## ------------------------------------ ## |
| 4537 | _ASBOX |
| 4538 | ) | |
| 4539 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4540 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4541 | esac |
| 4542 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4543 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4544 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4546 | else |
| 4547 | eval "$as_ac_Header=$ac_header_preproc" |
| 4548 | fi |
| 4549 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4550 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4551 | |
| 4552 | fi |
| 4553 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4554 | cat >>confdefs.h <<_ACEOF |
| 4555 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4556 | _ACEOF |
| 4557 | |
| 4558 | fi |
| 4559 | |
| 4560 | done |
| 4561 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4562 | ac_ext=cc |
| 4563 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4564 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4565 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4566 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4567 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 4568 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 4569 | if test -z "$CXXCPP"; then |
| 4570 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4572 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4573 | # Double quotes because CXXCPP needs to be expanded |
| 4574 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 4575 | do |
| 4576 | ac_preproc_ok=false |
| 4577 | for ac_cxx_preproc_warn_flag in '' yes |
| 4578 | do |
| 4579 | # Use a header file that comes with gcc, so configuring glibc |
| 4580 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4581 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4582 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4583 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4584 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4585 | cat >conftest.$ac_ext <<_ACEOF |
| 4586 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4587 | /* confdefs.h. */ |
| 4588 | _ACEOF |
| 4589 | cat confdefs.h >>conftest.$ac_ext |
| 4590 | cat >>conftest.$ac_ext <<_ACEOF |
| 4591 | /* end confdefs.h. */ |
| 4592 | #ifdef __STDC__ |
| 4593 | # include <limits.h> |
| 4594 | #else |
| 4595 | # include <assert.h> |
| 4596 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4597 | Syntax error |
| 4598 | _ACEOF |
| 4599 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4600 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4601 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4602 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4603 | rm -f conftest.er1 |
| 4604 | cat conftest.err >&5 |
| 4605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4606 | (exit $ac_status); } >/dev/null; then |
| 4607 | if test -s conftest.err; then |
| 4608 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4609 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4610 | ac_cpp_err= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4611 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4612 | else |
| 4613 | ac_cpp_err=yes |
| 4614 | fi |
| 4615 | if test -z "$ac_cpp_err"; then |
| 4616 | : |
| 4617 | else |
| 4618 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4620 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4621 | # Broken: fails on valid input. |
| 4622 | continue |
| 4623 | fi |
| 4624 | rm -f conftest.err conftest.$ac_ext |
| 4625 | |
| 4626 | # OK, works on sane cases. Now check whether non-existent headers |
| 4627 | # can be detected and how. |
| 4628 | cat >conftest.$ac_ext <<_ACEOF |
| 4629 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4630 | /* confdefs.h. */ |
| 4631 | _ACEOF |
| 4632 | cat confdefs.h >>conftest.$ac_ext |
| 4633 | cat >>conftest.$ac_ext <<_ACEOF |
| 4634 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4635 | #include <ac_nonexistent.h> |
| 4636 | _ACEOF |
| 4637 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4638 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4639 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4640 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4641 | rm -f conftest.er1 |
| 4642 | cat conftest.err >&5 |
| 4643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4644 | (exit $ac_status); } >/dev/null; then |
| 4645 | if test -s conftest.err; then |
| 4646 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4647 | else |
| 4648 | ac_cpp_err= |
| 4649 | fi |
| 4650 | else |
| 4651 | ac_cpp_err=yes |
| 4652 | fi |
| 4653 | if test -z "$ac_cpp_err"; then |
| 4654 | # Broken: success on invalid input. |
| 4655 | continue |
| 4656 | else |
| 4657 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4658 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4659 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4660 | # Passes both tests. |
| 4661 | ac_preproc_ok=: |
| 4662 | break |
| 4663 | fi |
| 4664 | rm -f conftest.err conftest.$ac_ext |
| 4665 | |
| 4666 | done |
| 4667 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4668 | rm -f conftest.err conftest.$ac_ext |
| 4669 | if $ac_preproc_ok; then |
| 4670 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4671 | fi |
| 4672 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4673 | done |
| 4674 | ac_cv_prog_CXXCPP=$CXXCPP |
| 4675 | |
| 4676 | fi |
| 4677 | CXXCPP=$ac_cv_prog_CXXCPP |
| 4678 | else |
| 4679 | ac_cv_prog_CXXCPP=$CXXCPP |
| 4680 | fi |
| 4681 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 4682 | echo "${ECHO_T}$CXXCPP" >&6 |
| 4683 | ac_preproc_ok=false |
| 4684 | for ac_cxx_preproc_warn_flag in '' yes |
| 4685 | do |
| 4686 | # Use a header file that comes with gcc, so configuring glibc |
| 4687 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4688 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4689 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4690 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4691 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4692 | cat >conftest.$ac_ext <<_ACEOF |
| 4693 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4694 | /* confdefs.h. */ |
| 4695 | _ACEOF |
| 4696 | cat confdefs.h >>conftest.$ac_ext |
| 4697 | cat >>conftest.$ac_ext <<_ACEOF |
| 4698 | /* end confdefs.h. */ |
| 4699 | #ifdef __STDC__ |
| 4700 | # include <limits.h> |
| 4701 | #else |
| 4702 | # include <assert.h> |
| 4703 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4704 | Syntax error |
| 4705 | _ACEOF |
| 4706 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4707 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4708 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4709 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4710 | rm -f conftest.er1 |
| 4711 | cat conftest.err >&5 |
| 4712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4713 | (exit $ac_status); } >/dev/null; then |
| 4714 | if test -s conftest.err; then |
| 4715 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4716 | else |
| 4717 | ac_cpp_err= |
| 4718 | fi |
| 4719 | else |
| 4720 | ac_cpp_err=yes |
| 4721 | fi |
| 4722 | if test -z "$ac_cpp_err"; then |
| 4723 | : |
| 4724 | else |
| 4725 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4726 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4727 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4728 | # Broken: fails on valid input. |
| 4729 | continue |
| 4730 | fi |
| 4731 | rm -f conftest.err conftest.$ac_ext |
| 4732 | |
| 4733 | # OK, works on sane cases. Now check whether non-existent headers |
| 4734 | # can be detected and how. |
| 4735 | cat >conftest.$ac_ext <<_ACEOF |
| 4736 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4737 | /* confdefs.h. */ |
| 4738 | _ACEOF |
| 4739 | cat confdefs.h >>conftest.$ac_ext |
| 4740 | cat >>conftest.$ac_ext <<_ACEOF |
| 4741 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4742 | #include <ac_nonexistent.h> |
| 4743 | _ACEOF |
| 4744 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4745 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4746 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4747 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4748 | rm -f conftest.er1 |
| 4749 | cat conftest.err >&5 |
| 4750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4751 | (exit $ac_status); } >/dev/null; then |
| 4752 | if test -s conftest.err; then |
| 4753 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4754 | else |
| 4755 | ac_cpp_err= |
| 4756 | fi |
| 4757 | else |
| 4758 | ac_cpp_err=yes |
| 4759 | fi |
| 4760 | if test -z "$ac_cpp_err"; then |
| 4761 | # Broken: success on invalid input. |
| 4762 | continue |
| 4763 | else |
| 4764 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4766 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4767 | # Passes both tests. |
| 4768 | ac_preproc_ok=: |
| 4769 | break |
| 4770 | fi |
| 4771 | rm -f conftest.err conftest.$ac_ext |
| 4772 | |
| 4773 | done |
| 4774 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4775 | rm -f conftest.err conftest.$ac_ext |
| 4776 | if $ac_preproc_ok; then |
| 4777 | : |
| 4778 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4779 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 4780 | See \`config.log' for more details." >&5 |
| 4781 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 4782 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4783 | { (exit 1); exit 1; }; } |
| 4784 | fi |
| 4785 | |
| 4786 | ac_ext=cc |
| 4787 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4788 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4789 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4790 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4791 | |
| 4792 | |
| 4793 | ac_ext=f |
| 4794 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 4795 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4796 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 4797 | if test -n "$ac_tool_prefix"; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4798 | for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4799 | do |
| 4800 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4801 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4802 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4803 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4804 | if test "${ac_cv_prog_F77+set}" = set; then |
| 4805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4806 | else |
| 4807 | if test -n "$F77"; then |
| 4808 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 4809 | else |
| 4810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4811 | for as_dir in $PATH |
| 4812 | do |
| 4813 | IFS=$as_save_IFS |
| 4814 | test -z "$as_dir" && as_dir=. |
| 4815 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4816 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4817 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 4818 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4819 | break 2 |
| 4820 | fi |
| 4821 | done |
| 4822 | done |
| 4823 | |
| 4824 | fi |
| 4825 | fi |
| 4826 | F77=$ac_cv_prog_F77 |
| 4827 | if test -n "$F77"; then |
| 4828 | echo "$as_me:$LINENO: result: $F77" >&5 |
| 4829 | echo "${ECHO_T}$F77" >&6 |
| 4830 | else |
| 4831 | echo "$as_me:$LINENO: result: no" >&5 |
| 4832 | echo "${ECHO_T}no" >&6 |
| 4833 | fi |
| 4834 | |
| 4835 | test -n "$F77" && break |
| 4836 | done |
| 4837 | fi |
| 4838 | if test -z "$F77"; then |
| 4839 | ac_ct_F77=$F77 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4840 | for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4841 | do |
| 4842 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4843 | set dummy $ac_prog; ac_word=$2 |
| 4844 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4845 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4846 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 4847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4848 | else |
| 4849 | if test -n "$ac_ct_F77"; then |
| 4850 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 4851 | else |
| 4852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4853 | for as_dir in $PATH |
| 4854 | do |
| 4855 | IFS=$as_save_IFS |
| 4856 | test -z "$as_dir" && as_dir=. |
| 4857 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4858 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4859 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 4860 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4861 | break 2 |
| 4862 | fi |
| 4863 | done |
| 4864 | done |
| 4865 | |
| 4866 | fi |
| 4867 | fi |
| 4868 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 4869 | if test -n "$ac_ct_F77"; then |
| 4870 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 4871 | echo "${ECHO_T}$ac_ct_F77" >&6 |
| 4872 | else |
| 4873 | echo "$as_me:$LINENO: result: no" >&5 |
| 4874 | echo "${ECHO_T}no" >&6 |
| 4875 | fi |
| 4876 | |
| 4877 | test -n "$ac_ct_F77" && break |
| 4878 | done |
| 4879 | |
| 4880 | F77=$ac_ct_F77 |
| 4881 | fi |
| 4882 | |
| 4883 | |
| 4884 | # Provide some information about the compiler. |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 4885 | echo "$as_me:4885:" \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4886 | "checking for Fortran 77 compiler version" >&5 |
| 4887 | ac_compiler=`set X $ac_compile; echo $2` |
| 4888 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 4889 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 4890 | ac_status=$? |
| 4891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4892 | (exit $ac_status); } |
| 4893 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 4894 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 4895 | ac_status=$? |
| 4896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4897 | (exit $ac_status); } |
| 4898 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 4899 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 4900 | ac_status=$? |
| 4901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4902 | (exit $ac_status); } |
| 4903 | |
| 4904 | # If we don't use `.F' as extension, the preprocessor is not run on the |
| 4905 | # input file. |
| 4906 | ac_save_ext=$ac_ext |
| 4907 | ac_ext=F |
| 4908 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 4909 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
| 4910 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 4911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4912 | else |
| 4913 | cat >conftest.$ac_ext <<_ACEOF |
| 4914 | program main |
| 4915 | #ifndef __GNUC__ |
| 4916 | choke me |
| 4917 | #endif |
| 4918 | |
| 4919 | end |
| 4920 | _ACEOF |
| 4921 | rm -f conftest.$ac_objext |
| 4922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4923 | (eval $ac_compile) 2>&5 |
| 4924 | ac_status=$? |
| 4925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4926 | (exit $ac_status); } && |
| 4927 | { ac_try='test -s conftest.$ac_objext' |
| 4928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4929 | (eval $ac_try) 2>&5 |
| 4930 | ac_status=$? |
| 4931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4932 | (exit $ac_status); }; }; then |
| 4933 | ac_compiler_gnu=yes |
| 4934 | else |
| 4935 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4937 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4938 | ac_compiler_gnu=no |
| 4939 | fi |
| 4940 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4941 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 4942 | |
| 4943 | fi |
| 4944 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 4945 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
| 4946 | ac_ext=$ac_save_ext |
| 4947 | G77=`test $ac_compiler_gnu = yes && echo yes` |
| 4948 | ac_test_FFLAGS=${FFLAGS+set} |
| 4949 | ac_save_FFLAGS=$FFLAGS |
| 4950 | FFLAGS= |
| 4951 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 4952 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
| 4953 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 4954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4955 | else |
| 4956 | FFLAGS=-g |
| 4957 | cat >conftest.$ac_ext <<_ACEOF |
| 4958 | program main |
| 4959 | |
| 4960 | end |
| 4961 | _ACEOF |
| 4962 | rm -f conftest.$ac_objext |
| 4963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4964 | (eval $ac_compile) 2>&5 |
| 4965 | ac_status=$? |
| 4966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4967 | (exit $ac_status); } && |
| 4968 | { ac_try='test -s conftest.$ac_objext' |
| 4969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4970 | (eval $ac_try) 2>&5 |
| 4971 | ac_status=$? |
| 4972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4973 | (exit $ac_status); }; }; then |
| 4974 | ac_cv_prog_f77_g=yes |
| 4975 | else |
| 4976 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4978 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4979 | ac_cv_prog_f77_g=no |
| 4980 | fi |
| 4981 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4982 | |
| 4983 | fi |
| 4984 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 4985 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
| 4986 | if test "$ac_test_FFLAGS" = set; then |
| 4987 | FFLAGS=$ac_save_FFLAGS |
| 4988 | elif test $ac_cv_prog_f77_g = yes; then |
| 4989 | if test "$G77" = yes; then |
| 4990 | FFLAGS="-g -O2" |
| 4991 | else |
| 4992 | FFLAGS="-g" |
| 4993 | fi |
| 4994 | else |
| 4995 | if test "$G77" = yes; then |
| 4996 | FFLAGS="-O2" |
| 4997 | else |
| 4998 | FFLAGS= |
| 4999 | fi |
| 5000 | fi |
| 5001 | ac_ext=c |
| 5002 | ac_cpp='$CPP $CPPFLAGS' |
| 5003 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5004 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5005 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5006 | |
| 5007 | |
| 5008 | |
| 5009 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 5010 | |
| 5011 | # find the maximum length of command line arguments |
| 5012 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 5013 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| 5014 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 5015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5016 | else |
| 5017 | i=0 |
| 5018 | testring="ABCD" |
| 5019 | |
| 5020 | case $build_os in |
| 5021 | msdosdjgpp*) |
| 5022 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 5023 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 5024 | # during glob expansion). Even if it were fixed, the result of this |
| 5025 | # check would be larger than it should be. |
| 5026 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 5027 | ;; |
| 5028 | |
| 5029 | gnu*) |
| 5030 | # Under GNU Hurd, this test is not required because there is |
| 5031 | # no limit to the length of command line arguments. |
| 5032 | # Libtool will interpret -1 as no limit whatsoever |
| 5033 | lt_cv_sys_max_cmd_len=-1; |
| 5034 | ;; |
| 5035 | |
| 5036 | cygwin* | mingw*) |
| 5037 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 5038 | # about 5 minutes as the teststring grows exponentially. |
| 5039 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 5040 | # you end up with a "frozen" computer, even though with patience |
| 5041 | # the test eventually succeeds (with a max line length of 256k). |
| 5042 | # Instead, let's just punt: use the minimum linelength reported by |
| 5043 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 5044 | lt_cv_sys_max_cmd_len=8192; |
| 5045 | ;; |
| 5046 | |
| 5047 | *) |
| 5048 | # If test is not a shell built-in, we'll probably end up computing a |
| 5049 | # maximum length that is only half of the actual maximum length, but |
| 5050 | # we can't tell. |
| 5051 | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ |
| 5052 | = "XX$testring") >/dev/null 2>&1 && |
| 5053 | new_result=`expr "X$testring" : ".*" 2>&1` && |
| 5054 | lt_cv_sys_max_cmd_len=$new_result && |
| 5055 | test $i != 17 # 1/2 MB should be enough |
| 5056 | do |
| 5057 | i=`expr $i + 1` |
| 5058 | testring=$testring$testring |
| 5059 | done |
| 5060 | testring= |
| 5061 | # Add a significant safety factor because C++ compilers can tack on massive |
| 5062 | # amounts of additional arguments before passing them to the linker. |
| 5063 | # It appears as though 1/2 is a usable value. |
| 5064 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 5065 | ;; |
| 5066 | esac |
| 5067 | |
| 5068 | fi |
| 5069 | |
| 5070 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 5071 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5072 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| 5073 | else |
| 5074 | echo "$as_me:$LINENO: result: none" >&5 |
| 5075 | echo "${ECHO_T}none" >&6 |
| 5076 | fi |
| 5077 | |
| 5078 | |
| 5079 | |
| 5080 | |
| 5081 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 5082 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 5083 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 5084 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 5085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5086 | else |
| 5087 | |
| 5088 | # These are sane defaults that work on at least a few old systems. |
| 5089 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 5090 | |
| 5091 | # Character class describing NM global symbol codes. |
| 5092 | symcode='[BCDEGRST]' |
| 5093 | |
| 5094 | # Regexp to match symbols that can be accessed directly from C. |
| 5095 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 5096 | |
| 5097 | # Transform the above into a raw symbol and a C symbol. |
| 5098 | symxfrm='\1 \2\3 \3' |
| 5099 | |
| 5100 | # Transform an extracted symbol line into a proper C declaration |
| 5101 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 5102 | |
| 5103 | # Transform an extracted symbol line into symbol name and symbol address |
| 5104 | 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'" |
| 5105 | |
| 5106 | # Define system-specific variables. |
| 5107 | case $host_os in |
| 5108 | aix*) |
| 5109 | symcode='[BCDT]' |
| 5110 | ;; |
| 5111 | cygwin* | mingw* | pw32*) |
| 5112 | symcode='[ABCDGISTW]' |
| 5113 | ;; |
| 5114 | hpux*) # Its linker distinguishes data from code symbols |
| 5115 | if test "$host_cpu" = ia64; then |
| 5116 | symcode='[ABCDEGRST]' |
| 5117 | fi |
| 5118 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 5119 | 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'" |
| 5120 | ;; |
| 5121 | irix* | nonstopux*) |
| 5122 | symcode='[BCDEGRST]' |
| 5123 | ;; |
| 5124 | osf*) |
| 5125 | symcode='[BCDEGQRST]' |
| 5126 | ;; |
| 5127 | solaris* | sysv5*) |
| 5128 | symcode='[BDT]' |
| 5129 | ;; |
| 5130 | sysv4) |
| 5131 | symcode='[DFNSTU]' |
| 5132 | ;; |
| 5133 | esac |
| 5134 | |
| 5135 | # Handle CRLF in mingw tool chain |
| 5136 | opt_cr= |
| 5137 | case $build_os in |
| 5138 | mingw*) |
| 5139 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 5140 | ;; |
| 5141 | esac |
| 5142 | |
| 5143 | # If we're using GNU nm, then use its standard symbol codes. |
| 5144 | case `$NM -V 2>&1` in |
| 5145 | *GNU* | *'with BFD'*) |
| 5146 | symcode='[ABCDGISTW]' ;; |
| 5147 | esac |
| 5148 | |
| 5149 | # Try without a prefix undercore, then with it. |
| 5150 | for ac_symprfx in "" "_"; do |
| 5151 | |
| 5152 | # Write the raw and C identifiers. |
| 5153 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 5154 | |
| 5155 | # Check to see that the pipe works correctly. |
| 5156 | pipe_works=no |
| 5157 | |
| 5158 | rm -f conftest* |
| 5159 | cat > conftest.$ac_ext <<EOF |
| 5160 | #ifdef __cplusplus |
| 5161 | extern "C" { |
| 5162 | #endif |
| 5163 | char nm_test_var; |
| 5164 | void nm_test_func(){} |
| 5165 | #ifdef __cplusplus |
| 5166 | } |
| 5167 | #endif |
| 5168 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 5169 | EOF |
| 5170 | |
| 5171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5172 | (eval $ac_compile) 2>&5 |
| 5173 | ac_status=$? |
| 5174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5175 | (exit $ac_status); }; then |
| 5176 | # Now try to grab the symbols. |
| 5177 | nlist=conftest.nm |
| 5178 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 5179 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 5180 | ac_status=$? |
| 5181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5182 | (exit $ac_status); } && test -s "$nlist"; then |
| 5183 | # Try sorting and uniquifying the output. |
| 5184 | if sort "$nlist" | uniq > "$nlist"T; then |
| 5185 | mv -f "$nlist"T "$nlist" |
| 5186 | else |
| 5187 | rm -f "$nlist"T |
| 5188 | fi |
| 5189 | |
| 5190 | # Make sure that we snagged all the symbols we need. |
| 5191 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 5192 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 5193 | cat <<EOF > conftest.$ac_ext |
| 5194 | #ifdef __cplusplus |
| 5195 | extern "C" { |
| 5196 | #endif |
| 5197 | |
| 5198 | EOF |
| 5199 | # Now generate the symbol file. |
| 5200 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 5201 | |
| 5202 | cat <<EOF >> conftest.$ac_ext |
| 5203 | #if defined (__STDC__) && __STDC__ |
| 5204 | # define lt_ptr_t void * |
| 5205 | #else |
| 5206 | # define lt_ptr_t char * |
| 5207 | # define const |
| 5208 | #endif |
| 5209 | |
| 5210 | /* The mapping between symbol names and symbols. */ |
| 5211 | const struct { |
| 5212 | const char *name; |
| 5213 | lt_ptr_t address; |
| 5214 | } |
| 5215 | lt_preloaded_symbols[] = |
| 5216 | { |
| 5217 | EOF |
| 5218 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 5219 | cat <<\EOF >> conftest.$ac_ext |
| 5220 | {0, (lt_ptr_t) 0} |
| 5221 | }; |
| 5222 | |
| 5223 | #ifdef __cplusplus |
| 5224 | } |
| 5225 | #endif |
| 5226 | EOF |
| 5227 | # Now try linking the two files. |
| 5228 | mv conftest.$ac_objext conftstm.$ac_objext |
| 5229 | lt_save_LIBS="$LIBS" |
| 5230 | lt_save_CFLAGS="$CFLAGS" |
| 5231 | LIBS="conftstm.$ac_objext" |
| 5232 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 5233 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5234 | (eval $ac_link) 2>&5 |
| 5235 | ac_status=$? |
| 5236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5237 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 5238 | pipe_works=yes |
| 5239 | fi |
| 5240 | LIBS="$lt_save_LIBS" |
| 5241 | CFLAGS="$lt_save_CFLAGS" |
| 5242 | else |
| 5243 | echo "cannot find nm_test_func in $nlist" >&5 |
| 5244 | fi |
| 5245 | else |
| 5246 | echo "cannot find nm_test_var in $nlist" >&5 |
| 5247 | fi |
| 5248 | else |
| 5249 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 5250 | fi |
| 5251 | else |
| 5252 | echo "$progname: failed program was:" >&5 |
| 5253 | cat conftest.$ac_ext >&5 |
| 5254 | fi |
| 5255 | rm -f conftest* conftst* |
| 5256 | |
| 5257 | # Do not use the global_symbol_pipe unless it works. |
| 5258 | if test "$pipe_works" = yes; then |
| 5259 | break |
| 5260 | else |
| 5261 | lt_cv_sys_global_symbol_pipe= |
| 5262 | fi |
| 5263 | done |
| 5264 | |
| 5265 | fi |
| 5266 | |
| 5267 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 5268 | lt_cv_sys_global_symbol_to_cdecl= |
| 5269 | fi |
| 5270 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 5271 | echo "$as_me:$LINENO: result: failed" >&5 |
| 5272 | echo "${ECHO_T}failed" >&6 |
| 5273 | else |
| 5274 | echo "$as_me:$LINENO: result: ok" >&5 |
| 5275 | echo "${ECHO_T}ok" >&6 |
| 5276 | fi |
| 5277 | |
| 5278 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 5279 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 5280 | if test "${lt_cv_objdir+set}" = set; then |
| 5281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5282 | else |
| 5283 | rm -f .libs 2>/dev/null |
| 5284 | mkdir .libs 2>/dev/null |
| 5285 | if test -d .libs; then |
| 5286 | lt_cv_objdir=.libs |
| 5287 | else |
| 5288 | # MS-DOS does not allow filenames that begin with a dot. |
| 5289 | lt_cv_objdir=_libs |
| 5290 | fi |
| 5291 | rmdir .libs 2>/dev/null |
| 5292 | fi |
| 5293 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 5294 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
| 5295 | objdir=$lt_cv_objdir |
| 5296 | |
| 5297 | |
| 5298 | |
| 5299 | |
| 5300 | |
| 5301 | case $host_os in |
| 5302 | aix3*) |
| 5303 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 5304 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 5305 | # vanish in a puff of smoke. |
| 5306 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 5307 | COLLECT_NAMES= |
| 5308 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5309 | fi |
| 5310 | ;; |
| 5311 | esac |
| 5312 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5313 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 5314 | # metacharacters that are still active within double-quoted strings. |
| 5315 | Xsed='sed -e s/^X//' |
| 5316 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 5317 | |
| 5318 | # Same as above, but do not quote variable references. |
| 5319 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 5320 | |
| 5321 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 5322 | # double_quote_subst'ed string. |
| 5323 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 5324 | |
| 5325 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 5326 | no_glob_subst='s/\*/\\\*/g' |
| 5327 | |
| 5328 | # Constants: |
| 5329 | rm="rm -f" |
| 5330 | |
| 5331 | # Global variables: |
John Criswell | 8d4221e | 2003-07-23 16:52:50 +0000 | [diff] [blame] | 5332 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5333 | can_build_shared=yes |
| 5334 | |
| 5335 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 5336 | # which needs '.lib'). |
| 5337 | libext=a |
| 5338 | ltmain="$ac_aux_dir/ltmain.sh" |
| 5339 | ofile="$default_ofile" |
| 5340 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 5341 | |
| 5342 | if test -n "$ac_tool_prefix"; then |
| 5343 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5344 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5345 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5346 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5347 | if test "${ac_cv_prog_AR+set}" = set; then |
| 5348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5349 | else |
| 5350 | if test -n "$AR"; then |
| 5351 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5352 | else |
| 5353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5354 | for as_dir in $PATH |
| 5355 | do |
| 5356 | IFS=$as_save_IFS |
| 5357 | test -z "$as_dir" && as_dir=. |
| 5358 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5359 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5360 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5361 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5362 | break 2 |
| 5363 | fi |
| 5364 | done |
| 5365 | done |
| 5366 | |
| 5367 | fi |
| 5368 | fi |
| 5369 | AR=$ac_cv_prog_AR |
| 5370 | if test -n "$AR"; then |
| 5371 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 5372 | echo "${ECHO_T}$AR" >&6 |
| 5373 | else |
| 5374 | echo "$as_me:$LINENO: result: no" >&5 |
| 5375 | echo "${ECHO_T}no" >&6 |
| 5376 | fi |
| 5377 | |
| 5378 | fi |
| 5379 | if test -z "$ac_cv_prog_AR"; then |
| 5380 | ac_ct_AR=$AR |
| 5381 | # Extract the first word of "ar", so it can be a program name with args. |
| 5382 | set dummy ar; ac_word=$2 |
| 5383 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5384 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5385 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 5386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5387 | else |
| 5388 | if test -n "$ac_ct_AR"; then |
| 5389 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5390 | else |
| 5391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5392 | for as_dir in $PATH |
| 5393 | do |
| 5394 | IFS=$as_save_IFS |
| 5395 | test -z "$as_dir" && as_dir=. |
| 5396 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5397 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5398 | ac_cv_prog_ac_ct_AR="ar" |
| 5399 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5400 | break 2 |
| 5401 | fi |
| 5402 | done |
| 5403 | done |
| 5404 | |
| 5405 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
| 5406 | fi |
| 5407 | fi |
| 5408 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5409 | if test -n "$ac_ct_AR"; then |
| 5410 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 5411 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 5412 | else |
| 5413 | echo "$as_me:$LINENO: result: no" >&5 |
| 5414 | echo "${ECHO_T}no" >&6 |
| 5415 | fi |
| 5416 | |
| 5417 | AR=$ac_ct_AR |
| 5418 | else |
| 5419 | AR="$ac_cv_prog_AR" |
| 5420 | fi |
| 5421 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5422 | if test -n "$ac_tool_prefix"; then |
| 5423 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5424 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5425 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5426 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5427 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 5428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5429 | else |
| 5430 | if test -n "$RANLIB"; then |
| 5431 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5432 | else |
| 5433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5434 | for as_dir in $PATH |
| 5435 | do |
| 5436 | IFS=$as_save_IFS |
| 5437 | test -z "$as_dir" && as_dir=. |
| 5438 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5439 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5440 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5441 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5442 | break 2 |
| 5443 | fi |
| 5444 | done |
| 5445 | done |
| 5446 | |
| 5447 | fi |
| 5448 | fi |
| 5449 | RANLIB=$ac_cv_prog_RANLIB |
| 5450 | if test -n "$RANLIB"; then |
| 5451 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 5452 | echo "${ECHO_T}$RANLIB" >&6 |
| 5453 | else |
| 5454 | echo "$as_me:$LINENO: result: no" >&5 |
| 5455 | echo "${ECHO_T}no" >&6 |
| 5456 | fi |
| 5457 | |
| 5458 | fi |
| 5459 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5460 | ac_ct_RANLIB=$RANLIB |
| 5461 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5462 | set dummy ranlib; ac_word=$2 |
| 5463 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5464 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5465 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 5466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5467 | else |
| 5468 | if test -n "$ac_ct_RANLIB"; then |
| 5469 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5470 | else |
| 5471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5472 | for as_dir in $PATH |
| 5473 | do |
| 5474 | IFS=$as_save_IFS |
| 5475 | test -z "$as_dir" && as_dir=. |
| 5476 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5477 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5478 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5479 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5480 | break 2 |
| 5481 | fi |
| 5482 | done |
| 5483 | done |
| 5484 | |
| 5485 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 5486 | fi |
| 5487 | fi |
| 5488 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5489 | if test -n "$ac_ct_RANLIB"; then |
| 5490 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 5491 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 5492 | else |
| 5493 | echo "$as_me:$LINENO: result: no" >&5 |
| 5494 | echo "${ECHO_T}no" >&6 |
| 5495 | fi |
| 5496 | |
| 5497 | RANLIB=$ac_ct_RANLIB |
| 5498 | else |
| 5499 | RANLIB="$ac_cv_prog_RANLIB" |
| 5500 | fi |
| 5501 | |
| 5502 | if test -n "$ac_tool_prefix"; then |
| 5503 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5504 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5505 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5506 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5507 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 5508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5509 | else |
| 5510 | if test -n "$STRIP"; then |
| 5511 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5512 | else |
| 5513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5514 | for as_dir in $PATH |
| 5515 | do |
| 5516 | IFS=$as_save_IFS |
| 5517 | test -z "$as_dir" && as_dir=. |
| 5518 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5519 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5520 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5521 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5522 | break 2 |
| 5523 | fi |
| 5524 | done |
| 5525 | done |
| 5526 | |
| 5527 | fi |
| 5528 | fi |
| 5529 | STRIP=$ac_cv_prog_STRIP |
| 5530 | if test -n "$STRIP"; then |
| 5531 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 5532 | echo "${ECHO_T}$STRIP" >&6 |
| 5533 | else |
| 5534 | echo "$as_me:$LINENO: result: no" >&5 |
| 5535 | echo "${ECHO_T}no" >&6 |
| 5536 | fi |
| 5537 | |
| 5538 | fi |
| 5539 | if test -z "$ac_cv_prog_STRIP"; then |
| 5540 | ac_ct_STRIP=$STRIP |
| 5541 | # Extract the first word of "strip", so it can be a program name with args. |
| 5542 | set dummy strip; ac_word=$2 |
| 5543 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5544 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5545 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 5546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5547 | else |
| 5548 | if test -n "$ac_ct_STRIP"; then |
| 5549 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5550 | else |
| 5551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5552 | for as_dir in $PATH |
| 5553 | do |
| 5554 | IFS=$as_save_IFS |
| 5555 | test -z "$as_dir" && as_dir=. |
| 5556 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5557 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5558 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5559 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5560 | break 2 |
| 5561 | fi |
| 5562 | done |
| 5563 | done |
| 5564 | |
| 5565 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 5566 | fi |
| 5567 | fi |
| 5568 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5569 | if test -n "$ac_ct_STRIP"; then |
| 5570 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 5571 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 5572 | else |
| 5573 | echo "$as_me:$LINENO: result: no" >&5 |
| 5574 | echo "${ECHO_T}no" >&6 |
| 5575 | fi |
| 5576 | |
| 5577 | STRIP=$ac_ct_STRIP |
| 5578 | else |
| 5579 | STRIP="$ac_cv_prog_STRIP" |
| 5580 | fi |
| 5581 | |
| 5582 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5583 | old_CC="$CC" |
| 5584 | old_CFLAGS="$CFLAGS" |
| 5585 | |
| 5586 | # Set sane defaults for various variables |
| 5587 | test -z "$AR" && AR=ar |
| 5588 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 5589 | test -z "$AS" && AS=as |
| 5590 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5591 | test -z "$LTCC" && LTCC=$CC |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5592 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 5593 | test -z "$LD" && LD=ld |
| 5594 | test -z "$LN_S" && LN_S="ln -s" |
| 5595 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 5596 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5597 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5598 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5599 | test -z "$RANLIB" && RANLIB=: |
| 5600 | test -z "$STRIP" && STRIP=: |
| 5601 | test -z "$ac_objext" && ac_objext=o |
| 5602 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5603 | # Determine commands to create old-style static archives. |
| 5604 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 5605 | old_postinstall_cmds='chmod 644 $oldlib' |
| 5606 | old_postuninstall_cmds= |
| 5607 | |
| 5608 | if test -n "$RANLIB"; then |
| 5609 | case $host_os in |
| 5610 | openbsd*) |
| 5611 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
| 5612 | ;; |
| 5613 | *) |
| 5614 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| 5615 | ;; |
| 5616 | esac |
| 5617 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 5618 | fi |
| 5619 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5620 | # Only perform the check for file, if the check method requires it |
| 5621 | case $deplibs_check_method in |
| 5622 | file_magic*) |
| 5623 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 5624 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 5625 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 5626 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 5627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5628 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5629 | case $MAGIC_CMD in |
| 5630 | [\\/*] | ?:[\\/]*) |
| 5631 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 5632 | ;; |
| 5633 | *) |
| 5634 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 5635 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5636 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 5637 | for ac_dir in $ac_dummy; do |
| 5638 | IFS="$lt_save_ifs" |
| 5639 | test -z "$ac_dir" && ac_dir=. |
| 5640 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 5641 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 5642 | if test -n "$file_magic_test_file"; then |
| 5643 | case $deplibs_check_method in |
| 5644 | "file_magic "*) |
| 5645 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 5646 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5647 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 5648 | $EGREP "$file_magic_regex" > /dev/null; then |
| 5649 | : |
| 5650 | else |
| 5651 | cat <<EOF 1>&2 |
| 5652 | |
| 5653 | *** Warning: the command libtool uses to detect shared libraries, |
| 5654 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 5655 | *** The result is that libtool may fail to recognize shared libraries |
| 5656 | *** as such. This will affect the creation of libtool libraries that |
| 5657 | *** depend on shared libraries, but programs linked with such libtool |
| 5658 | *** libraries will work regardless of this problem. Nevertheless, you |
| 5659 | *** may want to report the problem to your system manager and/or to |
| 5660 | *** bug-libtool@gnu.org |
| 5661 | |
| 5662 | EOF |
| 5663 | fi ;; |
| 5664 | esac |
| 5665 | fi |
| 5666 | break |
| 5667 | fi |
| 5668 | done |
| 5669 | IFS="$lt_save_ifs" |
| 5670 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 5671 | ;; |
| 5672 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5673 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5674 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5675 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5676 | if test -n "$MAGIC_CMD"; then |
| 5677 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 5678 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 5679 | else |
| 5680 | echo "$as_me:$LINENO: result: no" >&5 |
| 5681 | echo "${ECHO_T}no" >&6 |
| 5682 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5683 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5684 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 5685 | if test -n "$ac_tool_prefix"; then |
| 5686 | echo "$as_me:$LINENO: checking for file" >&5 |
| 5687 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 5688 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 5689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5690 | else |
| 5691 | case $MAGIC_CMD in |
| 5692 | [\\/*] | ?:[\\/]*) |
| 5693 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 5694 | ;; |
| 5695 | *) |
| 5696 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 5697 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5698 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 5699 | for ac_dir in $ac_dummy; do |
| 5700 | IFS="$lt_save_ifs" |
| 5701 | test -z "$ac_dir" && ac_dir=. |
| 5702 | if test -f $ac_dir/file; then |
| 5703 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 5704 | if test -n "$file_magic_test_file"; then |
| 5705 | case $deplibs_check_method in |
| 5706 | "file_magic "*) |
| 5707 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 5708 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5709 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 5710 | $EGREP "$file_magic_regex" > /dev/null; then |
| 5711 | : |
| 5712 | else |
| 5713 | cat <<EOF 1>&2 |
| 5714 | |
| 5715 | *** Warning: the command libtool uses to detect shared libraries, |
| 5716 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 5717 | *** The result is that libtool may fail to recognize shared libraries |
| 5718 | *** as such. This will affect the creation of libtool libraries that |
| 5719 | *** depend on shared libraries, but programs linked with such libtool |
| 5720 | *** libraries will work regardless of this problem. Nevertheless, you |
| 5721 | *** may want to report the problem to your system manager and/or to |
| 5722 | *** bug-libtool@gnu.org |
| 5723 | |
| 5724 | EOF |
| 5725 | fi ;; |
| 5726 | esac |
| 5727 | fi |
| 5728 | break |
| 5729 | fi |
| 5730 | done |
| 5731 | IFS="$lt_save_ifs" |
| 5732 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 5733 | ;; |
| 5734 | esac |
| 5735 | fi |
| 5736 | |
| 5737 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5738 | if test -n "$MAGIC_CMD"; then |
| 5739 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 5740 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 5741 | else |
| 5742 | echo "$as_me:$LINENO: result: no" >&5 |
| 5743 | echo "${ECHO_T}no" >&6 |
| 5744 | fi |
| 5745 | |
| 5746 | else |
| 5747 | MAGIC_CMD=: |
| 5748 | fi |
| 5749 | fi |
| 5750 | |
| 5751 | fi |
| 5752 | ;; |
| 5753 | esac |
| 5754 | |
| 5755 | enable_dlopen=no |
| 5756 | enable_win32_dll=no |
| 5757 | |
| 5758 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 5759 | if test "${enable_libtool_lock+set}" = set; then |
| 5760 | enableval="$enable_libtool_lock" |
| 5761 | |
| 5762 | fi; |
| 5763 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 5764 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5765 | |
| 5766 | # Check whether --with-pic or --without-pic was given. |
| 5767 | if test "${with_pic+set}" = set; then |
| 5768 | withval="$with_pic" |
| 5769 | pic_mode="$withval" |
| 5770 | else |
| 5771 | pic_mode=default |
| 5772 | fi; |
| 5773 | test -z "$pic_mode" && pic_mode=default |
| 5774 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5775 | # Use C for the default configuration in the libtool script |
| 5776 | tagname= |
| 5777 | lt_save_CC="$CC" |
| 5778 | ac_ext=c |
| 5779 | ac_cpp='$CPP $CPPFLAGS' |
| 5780 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5781 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5782 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5783 | |
| 5784 | |
| 5785 | # Source file extension for C test sources. |
| 5786 | ac_ext=c |
| 5787 | |
| 5788 | # Object file extension for compiled C test sources. |
| 5789 | objext=o |
| 5790 | objext=$objext |
| 5791 | |
| 5792 | # Code to be used in simple compile tests |
| 5793 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 5794 | |
| 5795 | # Code to be used in simple link tests |
| 5796 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 5797 | |
| 5798 | |
| 5799 | # If no C compiler was specified, use CC. |
| 5800 | LTCC=${LTCC-"$CC"} |
| 5801 | |
| 5802 | # Allow CC to be a program name with arguments. |
| 5803 | compiler=$CC |
| 5804 | |
| 5805 | |
| 5806 | # |
| 5807 | # Check for any special shared library compilation flags. |
| 5808 | # |
| 5809 | lt_prog_cc_shlib= |
| 5810 | if test "$GCC" = no; then |
| 5811 | case $host_os in |
| 5812 | sco3.2v5*) |
| 5813 | lt_prog_cc_shlib='-belf' |
| 5814 | ;; |
| 5815 | esac |
| 5816 | fi |
| 5817 | if test -n "$lt_prog_cc_shlib"; then |
| 5818 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
| 5819 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
| 5820 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
| 5821 | else |
| 5822 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 5823 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 5824 | lt_cv_prog_cc_can_build_shared=no |
| 5825 | fi |
| 5826 | fi |
| 5827 | |
| 5828 | |
| 5829 | # |
| 5830 | # Check to make sure the static flag actually works. |
| 5831 | # |
| 5832 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
| 5833 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
| 5834 | if test "${lt_prog_compiler_static_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5836 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5837 | lt_prog_compiler_static_works=no |
| 5838 | save_LDFLAGS="$LDFLAGS" |
| 5839 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
| 5840 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 5841 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 5842 | # The compiler can only warn and ignore the option if not recognized |
| 5843 | # So say no if there are warnings |
| 5844 | if test -s conftest.err; then |
| 5845 | # Append any errors to the config.log. |
| 5846 | cat conftest.err 1>&5 |
| 5847 | else |
| 5848 | lt_prog_compiler_static_works=yes |
| 5849 | fi |
| 5850 | fi |
| 5851 | $rm conftest* |
| 5852 | LDFLAGS="$save_LDFLAGS" |
| 5853 | |
| 5854 | fi |
| 5855 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 5856 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
| 5857 | |
| 5858 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 5859 | : |
| 5860 | else |
| 5861 | lt_prog_compiler_static= |
| 5862 | fi |
| 5863 | |
| 5864 | |
| 5865 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5866 | |
| 5867 | lt_prog_compiler_no_builtin_flag= |
| 5868 | |
| 5869 | if test "$GCC" = yes; then |
| 5870 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 5871 | |
| 5872 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 5873 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 5874 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 5875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5876 | else |
| 5877 | lt_cv_prog_compiler_rtti_exceptions=no |
| 5878 | ac_outfile=conftest.$ac_objext |
| 5879 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 5880 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 5881 | # Insert the option either (1) after the last *FLAGS variable, or |
| 5882 | # (2) before a word containing "conftest.", or (3) at the end. |
| 5883 | # Note that $ac_compile itself does not contain backslashes and begins |
| 5884 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 5885 | # The option is referenced via a variable to avoid confusing sed. |
| 5886 | lt_compile=`echo "$ac_compile" | $SED \ |
| 5887 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 5888 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 5889 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 5890 | (eval echo "\"\$as_me:5890: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5891 | (eval "$lt_compile" 2>conftest.err) |
| 5892 | ac_status=$? |
| 5893 | cat conftest.err >&5 |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 5894 | echo "$as_me:5894: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5895 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 5896 | # The compiler can only warn and ignore the option if not recognized |
| 5897 | # So say no if there are warnings |
| 5898 | if test ! -s conftest.err; then |
| 5899 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 5900 | fi |
| 5901 | fi |
| 5902 | $rm conftest* |
| 5903 | |
| 5904 | fi |
| 5905 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 5906 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 5907 | |
| 5908 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 5909 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 5910 | else |
| 5911 | : |
| 5912 | fi |
| 5913 | |
| 5914 | fi |
| 5915 | |
| 5916 | lt_prog_compiler_wl= |
| 5917 | lt_prog_compiler_pic= |
| 5918 | lt_prog_compiler_static= |
| 5919 | |
| 5920 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 5921 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5922 | |
| 5923 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5924 | lt_prog_compiler_wl='-Wl,' |
| 5925 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5926 | |
| 5927 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5928 | aix*) |
| 5929 | # All AIX code is PIC. |
| 5930 | if test "$host_cpu" = ia64; then |
| 5931 | # AIX 5 now supports IA64 processor |
| 5932 | lt_prog_compiler_static='-Bstatic' |
| 5933 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5934 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5935 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5936 | amigaos*) |
| 5937 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 5938 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 5939 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5940 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5941 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5942 | |
| 5943 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5944 | # PIC is the default for these OSes. |
| 5945 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5946 | |
| 5947 | mingw* | pw32* | os2*) |
| 5948 | # This hack is so that the source file can tell whether it is being |
| 5949 | # built for inclusion in a dll (and should export symbols for example). |
| 5950 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 5951 | ;; |
| 5952 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5953 | darwin* | rhapsody*) |
| 5954 | # PIC is the default on this platform |
| 5955 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5956 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5957 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5958 | |
| 5959 | msdosdjgpp*) |
| 5960 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 5961 | # on systems that don't support them. |
| 5962 | lt_prog_compiler_can_build_shared=no |
| 5963 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5964 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5965 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5966 | sysv4*MP*) |
| 5967 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5968 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5969 | fi |
| 5970 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5971 | |
| 5972 | hpux*) |
| 5973 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 5974 | # not for PA HP-UX. |
| 5975 | case "$host_cpu" in |
| 5976 | hppa*64*|ia64*) |
| 5977 | # +Z the default |
| 5978 | ;; |
| 5979 | *) |
| 5980 | lt_prog_compiler_pic='-fPIC' |
| 5981 | ;; |
| 5982 | esac |
| 5983 | ;; |
| 5984 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5985 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5986 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5987 | ;; |
| 5988 | esac |
| 5989 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5990 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5991 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5992 | aix*) |
| 5993 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5994 | if test "$host_cpu" = ia64; then |
| 5995 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5996 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5997 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5998 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5999 | fi |
| 6000 | ;; |
| 6001 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6002 | mingw* | pw32* | os2*) |
| 6003 | # This hack is so that the source file can tell whether it is being |
| 6004 | # built for inclusion in a dll (and should export symbols for example). |
| 6005 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6006 | ;; |
| 6007 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6008 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6009 | lt_prog_compiler_wl='-Wl,' |
| 6010 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 6011 | # not for PA HP-UX. |
| 6012 | case "$host_cpu" in |
| 6013 | hppa*64*|ia64*) |
| 6014 | # +Z the default |
| 6015 | ;; |
| 6016 | *) |
| 6017 | lt_prog_compiler_pic='+Z' |
| 6018 | ;; |
| 6019 | esac |
| 6020 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 6021 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6022 | ;; |
| 6023 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6024 | irix5* | irix6* | nonstopux*) |
| 6025 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6026 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6027 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6028 | ;; |
| 6029 | |
| 6030 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6031 | lt_prog_compiler_pic='-KPIC' |
| 6032 | lt_prog_compiler_static='-Bstatic' |
| 6033 | ;; |
| 6034 | |
| 6035 | linux*) |
| 6036 | case $CC in |
| 6037 | icc|ecc) |
| 6038 | lt_prog_compiler_wl='-Wl,' |
| 6039 | lt_prog_compiler_pic='-KPIC' |
| 6040 | lt_prog_compiler_static='-static' |
| 6041 | ;; |
| 6042 | ccc) |
| 6043 | lt_prog_compiler_wl='-Wl,' |
| 6044 | # All Alpha code is PIC. |
| 6045 | lt_prog_compiler_static='-non_shared' |
| 6046 | ;; |
| 6047 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6048 | ;; |
| 6049 | |
| 6050 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6051 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6052 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6053 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6054 | ;; |
| 6055 | |
| 6056 | sco3.2v5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6057 | lt_prog_compiler_pic='-Kpic' |
| 6058 | lt_prog_compiler_static='-dn' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6059 | ;; |
| 6060 | |
| 6061 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6062 | lt_prog_compiler_wl='-Wl,' |
| 6063 | lt_prog_compiler_pic='-KPIC' |
| 6064 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6065 | ;; |
| 6066 | |
| 6067 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6068 | lt_prog_compiler_wl='-Qoption ld ' |
| 6069 | lt_prog_compiler_pic='-PIC' |
| 6070 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6071 | ;; |
| 6072 | |
| 6073 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6074 | lt_prog_compiler_wl='-Wl,' |
| 6075 | lt_prog_compiler_pic='-KPIC' |
| 6076 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6077 | ;; |
| 6078 | |
| 6079 | sysv4*MP*) |
| 6080 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6081 | lt_prog_compiler_pic='-Kconform_pic' |
| 6082 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6083 | fi |
| 6084 | ;; |
| 6085 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6086 | uts4*) |
| 6087 | lt_prog_compiler_pic='-pic' |
| 6088 | lt_prog_compiler_static='-Bstatic' |
| 6089 | ;; |
| 6090 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6091 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6092 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6093 | ;; |
| 6094 | esac |
| 6095 | fi |
| 6096 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6097 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 6098 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6099 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6100 | # |
| 6101 | # Check to make sure the PIC flag actually works. |
| 6102 | # |
| 6103 | if test -n "$lt_prog_compiler_pic"; then |
| 6104 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 6105 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
| 6106 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6108 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6109 | lt_prog_compiler_pic_works=no |
| 6110 | ac_outfile=conftest.$ac_objext |
| 6111 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6112 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 6113 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6114 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6115 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6116 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6117 | # The option is referenced via a variable to avoid confusing sed. |
| 6118 | lt_compile=`echo "$ac_compile" | $SED \ |
| 6119 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 6120 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6121 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 6122 | (eval echo "\"\$as_me:6122: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6123 | (eval "$lt_compile" 2>conftest.err) |
| 6124 | ac_status=$? |
| 6125 | cat conftest.err >&5 |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 6126 | echo "$as_me:6126: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6127 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6128 | # The compiler can only warn and ignore the option if not recognized |
| 6129 | # So say no if there are warnings |
| 6130 | if test ! -s conftest.err; then |
| 6131 | lt_prog_compiler_pic_works=yes |
| 6132 | fi |
| 6133 | fi |
| 6134 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6135 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6136 | fi |
| 6137 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 6138 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6139 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6140 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 6141 | case $lt_prog_compiler_pic in |
| 6142 | "" | " "*) ;; |
| 6143 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 6144 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6145 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6146 | lt_prog_compiler_pic= |
| 6147 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6148 | fi |
| 6149 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6150 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6151 | case "$host_os" in |
| 6152 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 6153 | *djgpp*) |
| 6154 | lt_prog_compiler_pic= |
| 6155 | ;; |
| 6156 | *) |
| 6157 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 6158 | ;; |
| 6159 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6160 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6161 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 6162 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6163 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6165 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6166 | lt_cv_prog_compiler_c_o=no |
| 6167 | $rm -r conftest 2>/dev/null |
| 6168 | mkdir conftest |
| 6169 | cd conftest |
| 6170 | mkdir out |
| 6171 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6172 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6173 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 6174 | # that will create temporary files in the current directory regardless of |
| 6175 | # the output directory. Thus, making CWD read-only will cause this test |
| 6176 | # to fail, enabling locking or at least warning the user not to do parallel |
| 6177 | # builds. |
| 6178 | chmod -w . |
| 6179 | |
| 6180 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 6181 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6182 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6183 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6184 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6185 | lt_compile=`echo "$ac_compile" | $SED \ |
| 6186 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 6187 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6188 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 6189 | (eval echo "\"\$as_me:6189: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6190 | (eval "$lt_compile" 2>out/conftest.err) |
| 6191 | ac_status=$? |
| 6192 | cat out/conftest.err >&5 |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 6193 | echo "$as_me:6193: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6194 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 6195 | then |
| 6196 | # The compiler can only warn and ignore the option if not recognized |
| 6197 | # So say no if there are warnings |
| 6198 | if test ! -s out/conftest.err; then |
| 6199 | lt_cv_prog_compiler_c_o=yes |
| 6200 | fi |
| 6201 | fi |
| 6202 | chmod u+w . |
| 6203 | $rm conftest* out/* |
| 6204 | rmdir out |
| 6205 | cd .. |
| 6206 | rmdir conftest |
| 6207 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6208 | |
| 6209 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6210 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 6211 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6212 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6213 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6214 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6215 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6216 | # do not overwrite the value of need_locks provided by the user |
| 6217 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 6218 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 6219 | hard_links=yes |
| 6220 | $rm conftest* |
| 6221 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 6222 | touch conftest.a |
| 6223 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 6224 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 6225 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 6226 | echo "${ECHO_T}$hard_links" >&6 |
| 6227 | if test "$hard_links" = no; then |
| 6228 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 6229 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 6230 | need_locks=warn |
| 6231 | fi |
| 6232 | else |
| 6233 | need_locks=no |
| 6234 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6235 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6236 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 6237 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 6238 | |
| 6239 | runpath_var= |
| 6240 | allow_undefined_flag= |
| 6241 | enable_shared_with_static_runtimes=no |
| 6242 | archive_cmds= |
| 6243 | archive_expsym_cmds= |
| 6244 | old_archive_From_new_cmds= |
| 6245 | old_archive_from_expsyms_cmds= |
| 6246 | export_dynamic_flag_spec= |
| 6247 | whole_archive_flag_spec= |
| 6248 | thread_safe_flag_spec= |
| 6249 | hardcode_libdir_flag_spec= |
| 6250 | hardcode_libdir_flag_spec_ld= |
| 6251 | hardcode_libdir_separator= |
| 6252 | hardcode_direct=no |
| 6253 | hardcode_minus_L=no |
| 6254 | hardcode_shlibpath_var=unsupported |
| 6255 | link_all_deplibs=unknown |
| 6256 | hardcode_automatic=no |
| 6257 | module_cmds= |
| 6258 | module_expsym_cmds= |
| 6259 | always_export_symbols=no |
| 6260 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 6261 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 6262 | # included in the symbol list |
| 6263 | include_expsyms= |
| 6264 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 6265 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 6266 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 6267 | # as well as any symbol that contains `d'. |
| 6268 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 6269 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 6270 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 6271 | # the symbol is explicitly referenced. Since portable code cannot |
| 6272 | # rely on this symbol name, it's probably fine to never include it in |
| 6273 | # preloaded symbol tables. |
| 6274 | extract_expsyms_cmds= |
| 6275 | |
| 6276 | case $host_os in |
| 6277 | cygwin* | mingw* | pw32*) |
| 6278 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 6279 | # When not using gcc, we currently assume that we are using |
| 6280 | # Microsoft Visual C++. |
| 6281 | if test "$GCC" != yes; then |
| 6282 | with_gnu_ld=no |
| 6283 | fi |
| 6284 | ;; |
| 6285 | openbsd*) |
| 6286 | with_gnu_ld=no |
| 6287 | ;; |
| 6288 | esac |
| 6289 | |
| 6290 | ld_shlibs=yes |
| 6291 | if test "$with_gnu_ld" = yes; then |
| 6292 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 6293 | wlarc='${wl}' |
| 6294 | |
| 6295 | # See if GNU ld supports shared libraries. |
| 6296 | case $host_os in |
| 6297 | aix3* | aix4* | aix5*) |
| 6298 | # On AIX/PPC, the GNU linker is very broken |
| 6299 | if test "$host_cpu" != ia64; then |
| 6300 | ld_shlibs=no |
| 6301 | cat <<EOF 1>&2 |
| 6302 | |
| 6303 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 6304 | *** to be unable to reliably create shared libraries on AIX. |
| 6305 | *** Therefore, libtool is disabling shared libraries support. If you |
| 6306 | *** really care for shared libraries, you may want to modify your PATH |
| 6307 | *** so that a non-GNU linker is found, and then restart. |
| 6308 | |
| 6309 | EOF |
| 6310 | fi |
| 6311 | ;; |
| 6312 | |
| 6313 | amigaos*) |
| 6314 | 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)' |
| 6315 | hardcode_libdir_flag_spec='-L$libdir' |
| 6316 | hardcode_minus_L=yes |
| 6317 | |
| 6318 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 6319 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 6320 | # to version 4, is to share data among multiple programs linked |
| 6321 | # with the same dynamic library. Since this doesn't match the |
| 6322 | # behavior of shared libraries on other platforms, we can't use |
| 6323 | # them. |
| 6324 | ld_shlibs=no |
| 6325 | ;; |
| 6326 | |
| 6327 | beos*) |
| 6328 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6329 | allow_undefined_flag=unsupported |
| 6330 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 6331 | # support --undefined. This deserves some investigation. FIXME |
| 6332 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6333 | else |
| 6334 | ld_shlibs=no |
| 6335 | fi |
| 6336 | ;; |
| 6337 | |
| 6338 | cygwin* | mingw* | pw32*) |
| 6339 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 6340 | # as there is no search path for DLLs. |
| 6341 | hardcode_libdir_flag_spec='-L$libdir' |
| 6342 | allow_undefined_flag=unsupported |
| 6343 | always_export_symbols=no |
| 6344 | enable_shared_with_static_runtimes=yes |
| 6345 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 6346 | |
| 6347 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 6348 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 6349 | # If the export-symbols file already is a .def file (1st line |
| 6350 | # is EXPORTS), use it as is; otherwise, prepend... |
| 6351 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 6352 | cp $export_symbols $output_objdir/$soname.def; |
| 6353 | else |
| 6354 | echo EXPORTS > $output_objdir/$soname.def; |
| 6355 | cat $export_symbols >> $output_objdir/$soname.def; |
| 6356 | fi~ |
| 6357 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 6358 | else |
| 6359 | ld_shlibs=no |
| 6360 | fi |
| 6361 | ;; |
| 6362 | |
| 6363 | netbsd*) |
| 6364 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 6365 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 6366 | wlarc= |
| 6367 | else |
| 6368 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6369 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6370 | fi |
| 6371 | ;; |
| 6372 | |
| 6373 | solaris* | sysv5*) |
| 6374 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 6375 | ld_shlibs=no |
| 6376 | cat <<EOF 1>&2 |
| 6377 | |
| 6378 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 6379 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 6380 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 6381 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 6382 | *** your PATH or compiler configuration so that the native linker is |
| 6383 | *** used, and then restart. |
| 6384 | |
| 6385 | EOF |
| 6386 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6387 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6388 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6389 | else |
| 6390 | ld_shlibs=no |
| 6391 | fi |
| 6392 | ;; |
| 6393 | |
| 6394 | sunos4*) |
| 6395 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6396 | wlarc= |
| 6397 | hardcode_direct=yes |
| 6398 | hardcode_shlibpath_var=no |
| 6399 | ;; |
| 6400 | |
| 6401 | *) |
| 6402 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6403 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6404 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6405 | else |
| 6406 | ld_shlibs=no |
| 6407 | fi |
| 6408 | ;; |
| 6409 | esac |
| 6410 | |
| 6411 | if test "$ld_shlibs" = yes; then |
| 6412 | runpath_var=LD_RUN_PATH |
| 6413 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 6414 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 6415 | # ancient GNU ld didn't support --whole-archive et. al. |
| 6416 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 6417 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 6418 | else |
| 6419 | whole_archive_flag_spec= |
| 6420 | fi |
| 6421 | fi |
| 6422 | else |
| 6423 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 6424 | case $host_os in |
| 6425 | aix3*) |
| 6426 | allow_undefined_flag=unsupported |
| 6427 | always_export_symbols=yes |
| 6428 | 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' |
| 6429 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 6430 | # are no directories specified by -L. |
| 6431 | hardcode_minus_L=yes |
| 6432 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 6433 | # Neither direct hardcoding nor static linking is supported with a |
| 6434 | # broken collect2. |
| 6435 | hardcode_direct=unsupported |
| 6436 | fi |
| 6437 | ;; |
| 6438 | |
| 6439 | aix4* | aix5*) |
| 6440 | if test "$host_cpu" = ia64; then |
| 6441 | # On IA64, the linker does run time linking by default, so we don't |
| 6442 | # have to do anything special. |
| 6443 | aix_use_runtimelinking=no |
| 6444 | exp_sym_flag='-Bexport' |
| 6445 | no_entry_flag="" |
| 6446 | else |
| 6447 | # If we're using GNU nm, then we don't want the "-C" option. |
| 6448 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 6449 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 6450 | 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' |
| 6451 | else |
| 6452 | 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' |
| 6453 | fi |
| 6454 | aix_use_runtimelinking=no |
| 6455 | |
| 6456 | # Test if we are trying to use run time linking or normal |
| 6457 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 6458 | # need to do runtime linking. |
| 6459 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 6460 | for ld_flag in $LDFLAGS; do |
| 6461 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 6462 | aix_use_runtimelinking=yes |
| 6463 | break |
| 6464 | fi |
| 6465 | done |
| 6466 | esac |
| 6467 | |
| 6468 | exp_sym_flag='-bexport' |
| 6469 | no_entry_flag='-bnoentry' |
| 6470 | fi |
| 6471 | |
| 6472 | # When large executables or shared objects are built, AIX ld can |
| 6473 | # have problems creating the table of contents. If linking a library |
| 6474 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 6475 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 6476 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 6477 | |
| 6478 | archive_cmds='' |
| 6479 | hardcode_direct=yes |
| 6480 | hardcode_libdir_separator=':' |
| 6481 | link_all_deplibs=yes |
| 6482 | |
| 6483 | if test "$GCC" = yes; then |
| 6484 | case $host_os in aix4.012|aix4.012.*) |
| 6485 | # We only want to do this on AIX 4.2 and lower, the check |
| 6486 | # below for broken collect2 doesn't work under 4.3+ |
| 6487 | collect2name=`${CC} -print-prog-name=collect2` |
| 6488 | if test -f "$collect2name" && \ |
| 6489 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 6490 | then |
| 6491 | # We have reworked collect2 |
| 6492 | hardcode_direct=yes |
| 6493 | else |
| 6494 | # We have old collect2 |
| 6495 | hardcode_direct=unsupported |
| 6496 | # It fails to find uninstalled libraries when the uninstalled |
| 6497 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 6498 | # to unsupported forces relinking |
| 6499 | hardcode_minus_L=yes |
| 6500 | hardcode_libdir_flag_spec='-L$libdir' |
| 6501 | hardcode_libdir_separator= |
| 6502 | fi |
| 6503 | esac |
| 6504 | shared_flag='-shared' |
| 6505 | else |
| 6506 | # not using gcc |
| 6507 | if test "$host_cpu" = ia64; then |
| 6508 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 6509 | # chokes on -Wl,-G. The following line is correct: |
| 6510 | shared_flag='-G' |
| 6511 | else |
| 6512 | if test "$aix_use_runtimelinking" = yes; then |
| 6513 | shared_flag='${wl}-G' |
| 6514 | else |
| 6515 | shared_flag='${wl}-bM:SRE' |
| 6516 | fi |
| 6517 | fi |
| 6518 | fi |
| 6519 | |
| 6520 | # It seems that -bexpall does not export symbols beginning with |
| 6521 | # underscore (_), so it is better to generate a list of symbols to export. |
| 6522 | always_export_symbols=yes |
| 6523 | if test "$aix_use_runtimelinking" = yes; then |
| 6524 | # Warning - without using the other runtime loading flags (-brtl), |
| 6525 | # -berok will link without error, but may produce a broken library. |
| 6526 | allow_undefined_flag='-berok' |
| 6527 | # Determine the default libpath from the value encoded in an empty executable. |
| 6528 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6529 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6530 | /* confdefs.h. */ |
| 6531 | _ACEOF |
| 6532 | cat confdefs.h >>conftest.$ac_ext |
| 6533 | cat >>conftest.$ac_ext <<_ACEOF |
| 6534 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6535 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6536 | int |
| 6537 | main () |
| 6538 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6539 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6540 | ; |
| 6541 | return 0; |
| 6542 | } |
| 6543 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6544 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6545 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6546 | (eval $ac_link) 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6547 | ac_status=$? |
| 6548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6549 | (exit $ac_status); } && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6550 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6552 | (eval $ac_try) 2>&5 |
| 6553 | ac_status=$? |
| 6554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6555 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6556 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6557 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 6558 | }'` |
| 6559 | # Check for a 64-bit object if we didn't find anything. |
| 6560 | 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; } |
| 6561 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6562 | else |
| 6563 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6565 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6566 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6567 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6568 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6569 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6570 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 6571 | 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" |
| 6572 | else |
| 6573 | if test "$host_cpu" = ia64; then |
| 6574 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 6575 | allow_undefined_flag="-z nodefs" |
| 6576 | 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" |
| 6577 | else |
| 6578 | # Determine the default libpath from the value encoded in an empty executable. |
| 6579 | cat >conftest.$ac_ext <<_ACEOF |
| 6580 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6581 | /* confdefs.h. */ |
| 6582 | _ACEOF |
| 6583 | cat confdefs.h >>conftest.$ac_ext |
| 6584 | cat >>conftest.$ac_ext <<_ACEOF |
| 6585 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6586 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6587 | int |
| 6588 | main () |
| 6589 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6590 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6591 | ; |
| 6592 | return 0; |
| 6593 | } |
| 6594 | _ACEOF |
| 6595 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6597 | (eval $ac_link) 2>&5 |
| 6598 | ac_status=$? |
| 6599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6600 | (exit $ac_status); } && |
| 6601 | { ac_try='test -s conftest$ac_exeext' |
| 6602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6603 | (eval $ac_try) 2>&5 |
| 6604 | ac_status=$? |
| 6605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6606 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6607 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6608 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 6609 | }'` |
| 6610 | # Check for a 64-bit object if we didn't find anything. |
| 6611 | 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; } |
| 6612 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6613 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6614 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6616 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6617 | fi |
| 6618 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6619 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6620 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6621 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 6622 | # Warning - without using the other run time loading flags, |
| 6623 | # -berok will link without error, but may produce a broken library. |
| 6624 | no_undefined_flag=' ${wl}-bernotok' |
| 6625 | allow_undefined_flag=' ${wl}-berok' |
| 6626 | # -bexpall does not export symbols beginning with underscore (_) |
| 6627 | always_export_symbols=yes |
| 6628 | # Exported symbols can be pulled into shared objects from archives |
| 6629 | whole_archive_flag_spec=' ' |
| 6630 | archive_cmds_need_lc=yes |
| 6631 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 6632 | 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' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6633 | fi |
| 6634 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6635 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6636 | |
| 6637 | amigaos*) |
| 6638 | 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)' |
| 6639 | hardcode_libdir_flag_spec='-L$libdir' |
| 6640 | hardcode_minus_L=yes |
| 6641 | # see comment about different semantics on the GNU ld section |
| 6642 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6643 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6644 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6645 | bsdi4*) |
| 6646 | export_dynamic_flag_spec=-rdynamic |
| 6647 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6648 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6649 | cygwin* | mingw* | pw32*) |
| 6650 | # When not using gcc, we currently assume that we are using |
| 6651 | # Microsoft Visual C++. |
| 6652 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 6653 | # no search path for DLLs. |
| 6654 | hardcode_libdir_flag_spec=' ' |
| 6655 | allow_undefined_flag=unsupported |
| 6656 | # Tell ltmain to make .lib files, not .a files. |
| 6657 | libext=lib |
| 6658 | # Tell ltmain to make .dll files, not .so files. |
| 6659 | shrext=".dll" |
| 6660 | # FIXME: Setting linknames here is a bad hack. |
| 6661 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 6662 | # The linker will automatically build a .lib file if we build a DLL. |
| 6663 | old_archive_From_new_cmds='true' |
| 6664 | # FIXME: Should let the user specify the lib program. |
| 6665 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 6666 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 6667 | enable_shared_with_static_runtimes=yes |
| 6668 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6669 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6670 | darwin* | rhapsody*) |
| 6671 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 6672 | archive_cmds_need_lc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6673 | case "$host_os" in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6674 | rhapsody* | darwin1.[012]) |
| 6675 | allow_undefined_flag='-undefined suppress' |
| 6676 | ;; |
| 6677 | *) # Darwin 1.3 on |
| 6678 | test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6679 | ;; |
| 6680 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6681 | # FIXME: Relying on posixy $() will cause problems for |
| 6682 | # cross-compilation, but unfortunately the echo tests do not |
| 6683 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| 6684 | # `"' quotes if we put them in here... so don't! |
| 6685 | lt_int_apple_cc_single_mod=no |
| 6686 | output_verbose_link_cmd='echo' |
| 6687 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 6688 | lt_int_apple_cc_single_mod=yes |
| 6689 | fi |
| 6690 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 6691 | archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 6692 | else |
| 6693 | 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' |
| 6694 | fi |
| 6695 | module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
| 6696 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 6697 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 6698 | 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}' |
| 6699 | else |
| 6700 | 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}' |
| 6701 | fi |
| 6702 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 6703 | hardcode_direct=no |
| 6704 | hardcode_automatic=yes |
| 6705 | hardcode_shlibpath_var=unsupported |
| 6706 | whole_archive_flag_spec='-all_load $convenience' |
| 6707 | link_all_deplibs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6708 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6709 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6710 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6711 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6712 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6713 | hardcode_libdir_flag_spec='-L$libdir' |
| 6714 | hardcode_shlibpath_var=no |
| 6715 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6716 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6717 | freebsd1*) |
| 6718 | ld_shlibs=no |
| 6719 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6720 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6721 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 6722 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 6723 | # does not break anything, and helps significantly (at the cost of a little |
| 6724 | # extra space). |
| 6725 | freebsd2.2*) |
| 6726 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 6727 | hardcode_libdir_flag_spec='-R$libdir' |
| 6728 | hardcode_direct=yes |
| 6729 | hardcode_shlibpath_var=no |
| 6730 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6731 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6732 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 6733 | freebsd2*) |
| 6734 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6735 | hardcode_direct=yes |
| 6736 | hardcode_minus_L=yes |
| 6737 | hardcode_shlibpath_var=no |
| 6738 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6739 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6740 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 6741 | freebsd*) |
| 6742 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 6743 | hardcode_libdir_flag_spec='-R$libdir' |
| 6744 | hardcode_direct=yes |
| 6745 | hardcode_shlibpath_var=no |
| 6746 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6747 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6748 | hpux9*) |
| 6749 | if test "$GCC" = yes; then |
| 6750 | 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' |
| 6751 | else |
| 6752 | 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' |
| 6753 | fi |
| 6754 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 6755 | hardcode_libdir_separator=: |
| 6756 | hardcode_direct=yes |
| 6757 | |
| 6758 | # hardcode_minus_L: Not really in the search PATH, |
| 6759 | # but as the default location of the library. |
| 6760 | hardcode_minus_L=yes |
| 6761 | export_dynamic_flag_spec='${wl}-E' |
| 6762 | ;; |
| 6763 | |
| 6764 | hpux10* | hpux11*) |
| 6765 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 6766 | case "$host_cpu" in |
| 6767 | hppa*64*|ia64*) |
| 6768 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6769 | ;; |
| 6770 | *) |
| 6771 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 6772 | ;; |
| 6773 | esac |
| 6774 | else |
| 6775 | case "$host_cpu" in |
| 6776 | hppa*64*|ia64*) |
| 6777 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6778 | ;; |
| 6779 | *) |
| 6780 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 6781 | ;; |
| 6782 | esac |
| 6783 | fi |
| 6784 | if test "$with_gnu_ld" = no; then |
| 6785 | case "$host_cpu" in |
| 6786 | hppa*64*) |
| 6787 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 6788 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 6789 | hardcode_libdir_separator=: |
| 6790 | hardcode_direct=no |
| 6791 | hardcode_shlibpath_var=no |
| 6792 | ;; |
| 6793 | ia64*) |
| 6794 | hardcode_libdir_flag_spec='-L$libdir' |
| 6795 | hardcode_direct=no |
| 6796 | hardcode_shlibpath_var=no |
| 6797 | |
| 6798 | # hardcode_minus_L: Not really in the search PATH, |
| 6799 | # but as the default location of the library. |
| 6800 | hardcode_minus_L=yes |
| 6801 | ;; |
| 6802 | *) |
| 6803 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 6804 | hardcode_libdir_separator=: |
| 6805 | hardcode_direct=yes |
| 6806 | export_dynamic_flag_spec='${wl}-E' |
| 6807 | |
| 6808 | # hardcode_minus_L: Not really in the search PATH, |
| 6809 | # but as the default location of the library. |
| 6810 | hardcode_minus_L=yes |
| 6811 | ;; |
| 6812 | esac |
| 6813 | fi |
| 6814 | ;; |
| 6815 | |
| 6816 | irix5* | irix6* | nonstopux*) |
| 6817 | if test "$GCC" = yes; then |
| 6818 | 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' |
| 6819 | else |
| 6820 | 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' |
| 6821 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 6822 | fi |
| 6823 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6824 | hardcode_libdir_separator=: |
| 6825 | link_all_deplibs=yes |
| 6826 | ;; |
| 6827 | |
| 6828 | netbsd*) |
| 6829 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 6830 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 6831 | else |
| 6832 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 6833 | fi |
| 6834 | hardcode_libdir_flag_spec='-R$libdir' |
| 6835 | hardcode_direct=yes |
| 6836 | hardcode_shlibpath_var=no |
| 6837 | ;; |
| 6838 | |
| 6839 | newsos6) |
| 6840 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6841 | hardcode_direct=yes |
| 6842 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6843 | hardcode_libdir_separator=: |
| 6844 | hardcode_shlibpath_var=no |
| 6845 | ;; |
| 6846 | |
| 6847 | openbsd*) |
| 6848 | hardcode_direct=yes |
| 6849 | hardcode_shlibpath_var=no |
| 6850 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 6851 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 6852 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 6853 | export_dynamic_flag_spec='${wl}-E' |
| 6854 | else |
| 6855 | case $host_os in |
| 6856 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 6857 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6858 | hardcode_libdir_flag_spec='-R$libdir' |
| 6859 | ;; |
| 6860 | *) |
| 6861 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 6862 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 6863 | ;; |
| 6864 | esac |
| 6865 | fi |
| 6866 | ;; |
| 6867 | |
| 6868 | os2*) |
| 6869 | hardcode_libdir_flag_spec='-L$libdir' |
| 6870 | hardcode_minus_L=yes |
| 6871 | allow_undefined_flag=unsupported |
| 6872 | 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' |
| 6873 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 6874 | ;; |
| 6875 | |
| 6876 | osf3*) |
| 6877 | if test "$GCC" = yes; then |
| 6878 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 6879 | 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' |
| 6880 | else |
| 6881 | allow_undefined_flag=' -expect_unresolved \*' |
| 6882 | 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' |
| 6883 | fi |
| 6884 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6885 | hardcode_libdir_separator=: |
| 6886 | ;; |
| 6887 | |
| 6888 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 6889 | if test "$GCC" = yes; then |
| 6890 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 6891 | 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' |
| 6892 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6893 | else |
| 6894 | allow_undefined_flag=' -expect_unresolved \*' |
| 6895 | 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' |
| 6896 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 6897 | $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' |
| 6898 | |
| 6899 | # Both c and cxx compiler support -rpath directly |
| 6900 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 6901 | fi |
| 6902 | hardcode_libdir_separator=: |
| 6903 | ;; |
| 6904 | |
| 6905 | sco3.2v5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6906 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6907 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6908 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6909 | runpath_var=LD_RUN_PATH |
| 6910 | hardcode_runpath_var=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6911 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6912 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6913 | solaris*) |
| 6914 | no_undefined_flag=' -z text' |
| 6915 | if test "$GCC" = yes; then |
| 6916 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6917 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 6918 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 6919 | else |
| 6920 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6921 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 6922 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 6923 | fi |
| 6924 | hardcode_libdir_flag_spec='-R$libdir' |
| 6925 | hardcode_shlibpath_var=no |
| 6926 | case $host_os in |
| 6927 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 6928 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 6929 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 6930 | esac |
| 6931 | link_all_deplibs=yes |
| 6932 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6933 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6934 | sunos4*) |
| 6935 | if test "x$host_vendor" = xsequent; then |
| 6936 | # Use $CC to link under sequent, because it throws in some extra .o |
| 6937 | # files that make .init and .fini sections work. |
| 6938 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6939 | else |
| 6940 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 6941 | fi |
| 6942 | hardcode_libdir_flag_spec='-L$libdir' |
| 6943 | hardcode_direct=yes |
| 6944 | hardcode_minus_L=yes |
| 6945 | hardcode_shlibpath_var=no |
| 6946 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6947 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6948 | sysv4) |
| 6949 | case $host_vendor in |
| 6950 | sni) |
| 6951 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6952 | hardcode_direct=yes # is this really true??? |
| 6953 | ;; |
| 6954 | siemens) |
| 6955 | ## LD is ld it makes a PLAMLIB |
| 6956 | ## CC just makes a GrossModule. |
| 6957 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 6958 | reload_cmds='$CC -r -o $output$reload_objs' |
| 6959 | hardcode_direct=no |
| 6960 | ;; |
| 6961 | motorola) |
| 6962 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6963 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 6964 | ;; |
| 6965 | esac |
| 6966 | runpath_var='LD_RUN_PATH' |
| 6967 | hardcode_shlibpath_var=no |
| 6968 | ;; |
| 6969 | |
| 6970 | sysv4.3*) |
| 6971 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6972 | hardcode_shlibpath_var=no |
| 6973 | export_dynamic_flag_spec='-Bexport' |
| 6974 | ;; |
| 6975 | |
| 6976 | sysv4*MP*) |
| 6977 | if test -d /usr/nec; then |
| 6978 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6979 | hardcode_shlibpath_var=no |
| 6980 | runpath_var=LD_RUN_PATH |
| 6981 | hardcode_runpath_var=yes |
| 6982 | ld_shlibs=yes |
| 6983 | fi |
| 6984 | ;; |
| 6985 | |
| 6986 | sysv4.2uw2*) |
| 6987 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 6988 | hardcode_direct=yes |
| 6989 | hardcode_minus_L=no |
| 6990 | hardcode_shlibpath_var=no |
| 6991 | hardcode_runpath_var=yes |
| 6992 | runpath_var=LD_RUN_PATH |
| 6993 | ;; |
| 6994 | |
| 6995 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 6996 | no_undefined_flag='${wl}-z ${wl}text' |
| 6997 | if test "$GCC" = yes; then |
| 6998 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6999 | else |
| 7000 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7001 | fi |
| 7002 | runpath_var='LD_RUN_PATH' |
| 7003 | hardcode_shlibpath_var=no |
| 7004 | ;; |
| 7005 | |
| 7006 | sysv5*) |
| 7007 | no_undefined_flag=' -z text' |
| 7008 | # $CC -shared without GNU ld will not create a library from C++ |
| 7009 | # object files and a static libstdc++, better avoid it by now |
| 7010 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7011 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 7012 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 7013 | hardcode_libdir_flag_spec= |
| 7014 | hardcode_shlibpath_var=no |
| 7015 | runpath_var='LD_RUN_PATH' |
| 7016 | ;; |
| 7017 | |
| 7018 | uts4*) |
| 7019 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7020 | hardcode_libdir_flag_spec='-L$libdir' |
| 7021 | hardcode_shlibpath_var=no |
| 7022 | ;; |
| 7023 | |
| 7024 | *) |
| 7025 | ld_shlibs=no |
| 7026 | ;; |
| 7027 | esac |
| 7028 | fi |
| 7029 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7030 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 7031 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 7032 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7033 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7034 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 7035 | if test "$GCC" = yes; then |
| 7036 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 7037 | fi |
| 7038 | |
| 7039 | # |
| 7040 | # Do we need to explicitly link libc? |
| 7041 | # |
| 7042 | case "x$archive_cmds_need_lc" in |
| 7043 | x|xyes) |
| 7044 | # Assume -lc should be added |
| 7045 | archive_cmds_need_lc=yes |
| 7046 | |
| 7047 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 7048 | case $archive_cmds in |
| 7049 | *'~'*) |
| 7050 | # FIXME: we may have to deal with multi-command sequences. |
| 7051 | ;; |
| 7052 | '$CC '*) |
| 7053 | # Test whether the compiler implicitly links with -lc since on some |
| 7054 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 7055 | # to ld, don't add -lc before -lgcc. |
| 7056 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 7057 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 7058 | $rm conftest* |
| 7059 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7060 | |
| 7061 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7062 | (eval $ac_compile) 2>&5 |
| 7063 | ac_status=$? |
| 7064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7065 | (exit $ac_status); } 2>conftest.err; then |
| 7066 | soname=conftest |
| 7067 | lib=conftest |
| 7068 | libobjs=conftest.$ac_objext |
| 7069 | deplibs= |
| 7070 | wl=$lt_prog_compiler_wl |
| 7071 | compiler_flags=-v |
| 7072 | linker_flags=-v |
| 7073 | verstring= |
| 7074 | output_objdir=. |
| 7075 | libname=conftest |
| 7076 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 7077 | allow_undefined_flag= |
| 7078 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 7079 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 7080 | ac_status=$? |
| 7081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7082 | (exit $ac_status); } |
| 7083 | then |
| 7084 | archive_cmds_need_lc=no |
| 7085 | else |
| 7086 | archive_cmds_need_lc=yes |
| 7087 | fi |
| 7088 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 7089 | else |
| 7090 | cat conftest.err 1>&5 |
| 7091 | fi |
| 7092 | $rm conftest* |
| 7093 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 7094 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
| 7095 | ;; |
| 7096 | esac |
| 7097 | fi |
| 7098 | ;; |
| 7099 | esac |
| 7100 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7101 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 7102 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 7103 | hardcode_action= |
| 7104 | if test -n "$hardcode_libdir_flag_spec" || \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7105 | test -n "$runpath_var " || \ |
| 7106 | test "X$hardcode_automatic"="Xyes" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7107 | |
| 7108 | # We can hardcode non-existant directories. |
| 7109 | if test "$hardcode_direct" != no && |
| 7110 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 7111 | # have to relink, otherwise we might link with an installed library |
| 7112 | # when we should be linking with a yet-to-be-installed one |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7113 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7114 | test "$hardcode_minus_L" != no; then |
| 7115 | # Linking always hardcodes the temporary library directory. |
| 7116 | hardcode_action=relink |
| 7117 | else |
| 7118 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 7119 | hardcode_action=immediate |
| 7120 | fi |
| 7121 | else |
| 7122 | # We cannot hardcode anything, or else we can only hardcode existing |
| 7123 | # directories. |
| 7124 | hardcode_action=unsupported |
| 7125 | fi |
| 7126 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 7127 | echo "${ECHO_T}$hardcode_action" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7128 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7129 | if test "$hardcode_action" = relink; then |
| 7130 | # Fast installation is not supported |
| 7131 | enable_fast_install=no |
| 7132 | elif test "$shlibpath_overrides_runpath" = yes || |
| 7133 | test "$enable_shared" = no; then |
| 7134 | # Fast installation is not necessary |
| 7135 | enable_fast_install=needless |
| 7136 | fi |
| 7137 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7138 | striplib= |
| 7139 | old_striplib= |
| 7140 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 7141 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 7142 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 7143 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 7144 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 7145 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7146 | echo "${ECHO_T}yes" >&6 |
| 7147 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7148 | # FIXME - insert some real tests, host_os isn't really good enough |
| 7149 | case $host_os in |
| 7150 | darwin*) |
| 7151 | if test -n "$STRIP" ; then |
| 7152 | striplib="$STRIP -x" |
| 7153 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7154 | echo "${ECHO_T}yes" >&6 |
| 7155 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7156 | echo "$as_me:$LINENO: result: no" >&5 |
| 7157 | echo "${ECHO_T}no" >&6 |
| 7158 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7159 | ;; |
| 7160 | *) |
| 7161 | echo "$as_me:$LINENO: result: no" >&5 |
| 7162 | echo "${ECHO_T}no" >&6 |
| 7163 | ;; |
| 7164 | esac |
| 7165 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7166 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7167 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 7168 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 7169 | library_names_spec= |
| 7170 | libname_spec='lib$name' |
| 7171 | soname_spec= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7172 | shrext=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7173 | postinstall_cmds= |
| 7174 | postuninstall_cmds= |
| 7175 | finish_cmds= |
| 7176 | finish_eval= |
| 7177 | shlibpath_var= |
| 7178 | shlibpath_overrides_runpath=unknown |
| 7179 | version_type=none |
| 7180 | dynamic_linker="$host_os ld.so" |
| 7181 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7182 | if test "$GCC" = yes; then |
| 7183 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 7184 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 7185 | # if the path contains ";" then we assume it to be the separator |
| 7186 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 7187 | # assumed that no part of a normal pathname contains ";" but that should |
| 7188 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 7189 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 7190 | else |
| 7191 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 7192 | fi |
| 7193 | else |
| 7194 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 7195 | fi |
| 7196 | need_lib_prefix=unknown |
| 7197 | hardcode_into_libs=no |
| 7198 | |
| 7199 | # when you set need_version to no, make sure it does not cause -set_version |
| 7200 | # flags to be left without arguments |
| 7201 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7202 | |
| 7203 | case $host_os in |
| 7204 | aix3*) |
| 7205 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7206 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7207 | shlibpath_var=LIBPATH |
| 7208 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7209 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 7210 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7211 | ;; |
| 7212 | |
| 7213 | aix4* | aix5*) |
| 7214 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7215 | need_lib_prefix=no |
| 7216 | need_version=no |
| 7217 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7218 | if test "$host_cpu" = ia64; then |
| 7219 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7220 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7221 | shlibpath_var=LD_LIBRARY_PATH |
| 7222 | else |
| 7223 | # With GCC up to 2.95.x, collect2 would create an import file |
| 7224 | # for dependence libraries. The import file would start with |
| 7225 | # the line `#! .'. This would cause the generated library to |
| 7226 | # depend on `.', always an invalid library. This was fixed in |
| 7227 | # development snapshots of GCC prior to 3.0. |
| 7228 | case $host_os in |
| 7229 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7230 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 7231 | echo ' yes ' |
| 7232 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 7233 | : |
| 7234 | else |
| 7235 | can_build_shared=no |
| 7236 | fi |
| 7237 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7238 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7239 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 7240 | # soname into executable. Probably we can add versioning support to |
| 7241 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7242 | if test "$aix_use_runtimelinking" = yes; then |
| 7243 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 7244 | # instead of lib<name>.a to let people know that these are not |
| 7245 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7246 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7247 | else |
| 7248 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 7249 | # and later when we are not doing run time linking. |
| 7250 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7251 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7252 | fi |
| 7253 | shlibpath_var=LIBPATH |
| 7254 | fi |
| 7255 | ;; |
| 7256 | |
| 7257 | amigaos*) |
| 7258 | library_names_spec='$libname.ixlibrary $libname.a' |
| 7259 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 7260 | 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' |
| 7261 | ;; |
| 7262 | |
| 7263 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7264 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7265 | dynamic_linker="$host_os ld.so" |
| 7266 | shlibpath_var=LIBRARY_PATH |
| 7267 | ;; |
| 7268 | |
| 7269 | bsdi4*) |
| 7270 | version_type=linux |
| 7271 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7272 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7273 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7274 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 7275 | shlibpath_var=LD_LIBRARY_PATH |
| 7276 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 7277 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7278 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 7279 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 7280 | # libtool to hard-code these into programs |
| 7281 | ;; |
| 7282 | |
| 7283 | cygwin* | mingw* | pw32*) |
| 7284 | version_type=windows |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7285 | shrext=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7286 | need_version=no |
| 7287 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7288 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7289 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7290 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7291 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7292 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 7293 | postinstall_cmds='base_file=`basename \${file}`~ |
| 7294 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7295 | dldir=$destdir/`dirname \$dlpath`~ |
| 7296 | test -d \$dldir || mkdir -p \$dldir~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7297 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 7298 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7299 | dlpath=$dir/\$dldll~ |
| 7300 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7301 | shlibpath_overrides_runpath=yes |
| 7302 | |
| 7303 | case $host_os in |
| 7304 | cygwin*) |
| 7305 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 7306 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 7307 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" |
| 7308 | ;; |
| 7309 | mingw*) |
| 7310 | # MinGW DLLs use traditional 'lib' prefix |
| 7311 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 7312 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 7313 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 7314 | # It is most probably a Windows format PATH printed by |
| 7315 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 7316 | # path with ; separators, and with drive letters. We can handle the |
| 7317 | # drive letters (cygwin fileutils understands them), so leave them, |
| 7318 | # especially as we might pass files found there to a mingw objdump, |
| 7319 | # which wouldn't understand a cygwinified path. Ahh. |
| 7320 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 7321 | else |
| 7322 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 7323 | fi |
| 7324 | ;; |
| 7325 | pw32*) |
| 7326 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 7327 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 7328 | ;; |
| 7329 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7330 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7331 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7332 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7333 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7334 | ;; |
| 7335 | esac |
| 7336 | dynamic_linker='Win32 ld.exe' |
| 7337 | # FIXME: first we should search . and the directory the executable is in |
| 7338 | shlibpath_var=PATH |
| 7339 | ;; |
| 7340 | |
| 7341 | darwin* | rhapsody*) |
| 7342 | dynamic_linker="$host_os dyld" |
| 7343 | version_type=darwin |
| 7344 | need_lib_prefix=no |
| 7345 | need_version=no |
| 7346 | # FIXME: Relying on posixy $() will cause problems for |
| 7347 | # cross-compilation, but unfortunately the echo tests do not |
| 7348 | # yet detect zsh echo's removal of \ escapes. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7349 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 7350 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7351 | shlibpath_overrides_runpath=yes |
| 7352 | shlibpath_var=DYLD_LIBRARY_PATH |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7353 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 7354 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 7355 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 7356 | 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"` |
| 7357 | fi |
| 7358 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 7359 | ;; |
| 7360 | |
| 7361 | dgux*) |
| 7362 | version_type=linux |
| 7363 | need_lib_prefix=no |
| 7364 | need_version=no |
| 7365 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 7366 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7367 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7368 | ;; |
| 7369 | |
| 7370 | freebsd1*) |
| 7371 | dynamic_linker=no |
| 7372 | ;; |
| 7373 | |
| 7374 | freebsd*) |
| 7375 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 7376 | version_type=freebsd-$objformat |
| 7377 | case $version_type in |
| 7378 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7379 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7380 | need_version=no |
| 7381 | need_lib_prefix=no |
| 7382 | ;; |
| 7383 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7384 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7385 | need_version=yes |
| 7386 | ;; |
| 7387 | esac |
| 7388 | shlibpath_var=LD_LIBRARY_PATH |
| 7389 | case $host_os in |
| 7390 | freebsd2*) |
| 7391 | shlibpath_overrides_runpath=yes |
| 7392 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7393 | freebsd3.01* | freebsdelf3.01*) |
| 7394 | shlibpath_overrides_runpath=yes |
| 7395 | hardcode_into_libs=yes |
| 7396 | ;; |
| 7397 | *) # from 3.2 on |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7398 | shlibpath_overrides_runpath=no |
| 7399 | hardcode_into_libs=yes |
| 7400 | ;; |
| 7401 | esac |
| 7402 | ;; |
| 7403 | |
| 7404 | gnu*) |
| 7405 | version_type=linux |
| 7406 | need_lib_prefix=no |
| 7407 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7408 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 7409 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7410 | shlibpath_var=LD_LIBRARY_PATH |
| 7411 | hardcode_into_libs=yes |
| 7412 | ;; |
| 7413 | |
| 7414 | hpux9* | hpux10* | hpux11*) |
| 7415 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 7416 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7417 | version_type=sunos |
| 7418 | need_lib_prefix=no |
| 7419 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7420 | case "$host_cpu" in |
| 7421 | ia64*) |
| 7422 | shrext='.so' |
| 7423 | hardcode_into_libs=yes |
| 7424 | dynamic_linker="$host_os dld.so" |
| 7425 | shlibpath_var=LD_LIBRARY_PATH |
| 7426 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7427 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7428 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7429 | if test "X$HPUX_IA64_MODE" = X32; then |
| 7430 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 7431 | else |
| 7432 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 7433 | fi |
| 7434 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7435 | ;; |
| 7436 | hppa*64*) |
| 7437 | shrext='.sl' |
| 7438 | hardcode_into_libs=yes |
| 7439 | dynamic_linker="$host_os dld.sl" |
| 7440 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 7441 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7442 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7443 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7444 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 7445 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7446 | ;; |
| 7447 | *) |
| 7448 | shrext='.sl' |
| 7449 | dynamic_linker="$host_os dld.sl" |
| 7450 | shlibpath_var=SHLIB_PATH |
| 7451 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 7452 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7453 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7454 | ;; |
| 7455 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7456 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 7457 | postinstall_cmds='chmod 555 $lib' |
| 7458 | ;; |
| 7459 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7460 | irix5* | irix6* | nonstopux*) |
| 7461 | case $host_os in |
| 7462 | nonstopux*) version_type=nonstopux ;; |
| 7463 | *) |
| 7464 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 7465 | version_type=linux |
| 7466 | else |
| 7467 | version_type=irix |
| 7468 | fi ;; |
| 7469 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7470 | need_lib_prefix=no |
| 7471 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7472 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7473 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7474 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7475 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7476 | libsuff= shlibsuff= |
| 7477 | ;; |
| 7478 | *) |
| 7479 | case $LD in # libtool.m4 will add one of these switches to LD |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7480 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 7481 | libsuff= shlibsuff= libmagic=32-bit;; |
| 7482 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 7483 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 7484 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 7485 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7486 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 7487 | esac |
| 7488 | ;; |
| 7489 | esac |
| 7490 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 7491 | shlibpath_overrides_runpath=no |
| 7492 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 7493 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7494 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7495 | ;; |
| 7496 | |
| 7497 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7498 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7499 | dynamic_linker=no |
| 7500 | ;; |
| 7501 | |
| 7502 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7503 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7504 | version_type=linux |
| 7505 | need_lib_prefix=no |
| 7506 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7507 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7508 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7509 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 7510 | shlibpath_var=LD_LIBRARY_PATH |
| 7511 | shlibpath_overrides_runpath=no |
| 7512 | # This implies no fast_install, which is unacceptable. |
| 7513 | # Some rework will be needed to allow for fast_install |
| 7514 | # before this can be enabled. |
| 7515 | hardcode_into_libs=yes |
| 7516 | |
| 7517 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 7518 | # powerpc, because MkLinux only supported shared libraries with the |
| 7519 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 7520 | # most powerpc-linux boxes support dynamic linking these days and |
| 7521 | # people can always --disable-shared, the test was removed, and we |
| 7522 | # assume the GNU/Linux dynamic linker is in use. |
| 7523 | dynamic_linker='GNU/Linux ld.so' |
| 7524 | ;; |
| 7525 | |
| 7526 | netbsd*) |
| 7527 | version_type=sunos |
| 7528 | need_lib_prefix=no |
| 7529 | need_version=no |
| 7530 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7532 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7533 | dynamic_linker='NetBSD (a.out) ld.so' |
| 7534 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7535 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
| 7536 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7537 | dynamic_linker='NetBSD ld.elf_so' |
| 7538 | fi |
| 7539 | shlibpath_var=LD_LIBRARY_PATH |
| 7540 | shlibpath_overrides_runpath=yes |
| 7541 | hardcode_into_libs=yes |
| 7542 | ;; |
| 7543 | |
| 7544 | newsos6) |
| 7545 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7546 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7547 | shlibpath_var=LD_LIBRARY_PATH |
| 7548 | shlibpath_overrides_runpath=yes |
| 7549 | ;; |
| 7550 | |
| 7551 | nto-qnx) |
| 7552 | version_type=linux |
| 7553 | need_lib_prefix=no |
| 7554 | need_version=no |
| 7555 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7556 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7557 | shlibpath_var=LD_LIBRARY_PATH |
| 7558 | shlibpath_overrides_runpath=yes |
| 7559 | ;; |
| 7560 | |
| 7561 | openbsd*) |
| 7562 | version_type=sunos |
| 7563 | need_lib_prefix=no |
| 7564 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 7566 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7567 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7568 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7569 | case $host_os in |
| 7570 | openbsd2.[89] | openbsd2.[89].*) |
| 7571 | shlibpath_overrides_runpath=no |
| 7572 | ;; |
| 7573 | *) |
| 7574 | shlibpath_overrides_runpath=yes |
| 7575 | ;; |
| 7576 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7577 | else |
| 7578 | shlibpath_overrides_runpath=yes |
| 7579 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7580 | ;; |
| 7581 | |
| 7582 | os2*) |
| 7583 | libname_spec='$name' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7584 | shrext=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7585 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7586 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7587 | dynamic_linker='OS/2 ld.exe' |
| 7588 | shlibpath_var=LIBPATH |
| 7589 | ;; |
| 7590 | |
| 7591 | osf3* | osf4* | osf5*) |
| 7592 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7593 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7594 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7595 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7596 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7597 | shlibpath_var=LD_LIBRARY_PATH |
| 7598 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 7599 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 7600 | ;; |
| 7601 | |
| 7602 | sco3.2v5*) |
| 7603 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7604 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7605 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7606 | shlibpath_var=LD_LIBRARY_PATH |
| 7607 | ;; |
| 7608 | |
| 7609 | solaris*) |
| 7610 | version_type=linux |
| 7611 | need_lib_prefix=no |
| 7612 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7613 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7614 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7615 | shlibpath_var=LD_LIBRARY_PATH |
| 7616 | shlibpath_overrides_runpath=yes |
| 7617 | hardcode_into_libs=yes |
| 7618 | # ldd complains unless libraries are executable |
| 7619 | postinstall_cmds='chmod +x $lib' |
| 7620 | ;; |
| 7621 | |
| 7622 | sunos4*) |
| 7623 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7624 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7625 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 7626 | shlibpath_var=LD_LIBRARY_PATH |
| 7627 | shlibpath_overrides_runpath=yes |
| 7628 | if test "$with_gnu_ld" = yes; then |
| 7629 | need_lib_prefix=no |
| 7630 | fi |
| 7631 | need_version=yes |
| 7632 | ;; |
| 7633 | |
| 7634 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 7635 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7636 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7637 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7638 | shlibpath_var=LD_LIBRARY_PATH |
| 7639 | case $host_vendor in |
| 7640 | sni) |
| 7641 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7642 | need_lib_prefix=no |
| 7643 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 7644 | runpath_var=LD_RUN_PATH |
| 7645 | ;; |
| 7646 | siemens) |
| 7647 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7648 | ;; |
| 7649 | motorola) |
| 7650 | need_lib_prefix=no |
| 7651 | need_version=no |
| 7652 | shlibpath_overrides_runpath=no |
| 7653 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 7654 | ;; |
| 7655 | esac |
| 7656 | ;; |
| 7657 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7658 | sysv4*MP*) |
| 7659 | if test -d /usr/nec ;then |
| 7660 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7661 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 7662 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7663 | shlibpath_var=LD_LIBRARY_PATH |
| 7664 | fi |
| 7665 | ;; |
| 7666 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7667 | uts4*) |
| 7668 | version_type=linux |
| 7669 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7670 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7671 | shlibpath_var=LD_LIBRARY_PATH |
| 7672 | ;; |
| 7673 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7674 | *) |
| 7675 | dynamic_linker=no |
| 7676 | ;; |
| 7677 | esac |
| 7678 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 7679 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 7680 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7681 | |
| 7682 | if test "x$enable_dlopen" != xyes; then |
| 7683 | enable_dlopen=unknown |
| 7684 | enable_dlopen_self=unknown |
| 7685 | enable_dlopen_self_static=unknown |
| 7686 | else |
| 7687 | lt_cv_dlopen=no |
| 7688 | lt_cv_dlopen_libs= |
| 7689 | |
| 7690 | case $host_os in |
| 7691 | beos*) |
| 7692 | lt_cv_dlopen="load_add_on" |
| 7693 | lt_cv_dlopen_libs= |
| 7694 | lt_cv_dlopen_self=yes |
| 7695 | ;; |
| 7696 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7697 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7698 | lt_cv_dlopen="LoadLibrary" |
| 7699 | lt_cv_dlopen_libs= |
| 7700 | ;; |
| 7701 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7702 | cygwin*) |
| 7703 | lt_cv_dlopen="dlopen" |
| 7704 | lt_cv_dlopen_libs= |
| 7705 | ;; |
| 7706 | |
| 7707 | darwin*) |
| 7708 | # if libdl is installed we need to link against it |
| 7709 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 7710 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 7711 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 7712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7713 | else |
| 7714 | ac_check_lib_save_LIBS=$LIBS |
| 7715 | LIBS="-ldl $LIBS" |
| 7716 | cat >conftest.$ac_ext <<_ACEOF |
| 7717 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7718 | /* confdefs.h. */ |
| 7719 | _ACEOF |
| 7720 | cat confdefs.h >>conftest.$ac_ext |
| 7721 | cat >>conftest.$ac_ext <<_ACEOF |
| 7722 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7723 | |
| 7724 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7725 | #ifdef __cplusplus |
| 7726 | extern "C" |
| 7727 | #endif |
| 7728 | /* We use char because int might match the return type of a gcc2 |
| 7729 | builtin and then its argument prototype would still apply. */ |
| 7730 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7731 | int |
| 7732 | main () |
| 7733 | { |
| 7734 | dlopen (); |
| 7735 | ; |
| 7736 | return 0; |
| 7737 | } |
| 7738 | _ACEOF |
| 7739 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7740 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7741 | (eval $ac_link) 2>&5 |
| 7742 | ac_status=$? |
| 7743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7744 | (exit $ac_status); } && |
| 7745 | { ac_try='test -s conftest$ac_exeext' |
| 7746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7747 | (eval $ac_try) 2>&5 |
| 7748 | ac_status=$? |
| 7749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7750 | (exit $ac_status); }; }; then |
| 7751 | ac_cv_lib_dl_dlopen=yes |
| 7752 | else |
| 7753 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7755 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7756 | ac_cv_lib_dl_dlopen=no |
| 7757 | fi |
| 7758 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7759 | LIBS=$ac_check_lib_save_LIBS |
| 7760 | fi |
| 7761 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 7762 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 7763 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 7764 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 7765 | else |
| 7766 | |
| 7767 | lt_cv_dlopen="dyld" |
| 7768 | lt_cv_dlopen_libs= |
| 7769 | lt_cv_dlopen_self=yes |
| 7770 | |
| 7771 | fi |
| 7772 | |
| 7773 | ;; |
| 7774 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7775 | *) |
| 7776 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 7777 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 7778 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 7779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7780 | else |
| 7781 | cat >conftest.$ac_ext <<_ACEOF |
| 7782 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7783 | /* confdefs.h. */ |
| 7784 | _ACEOF |
| 7785 | cat confdefs.h >>conftest.$ac_ext |
| 7786 | cat >>conftest.$ac_ext <<_ACEOF |
| 7787 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7788 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7789 | which can conflict with char shl_load (); below. |
| 7790 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7791 | <limits.h> exists even on freestanding compilers. */ |
| 7792 | #ifdef __STDC__ |
| 7793 | # include <limits.h> |
| 7794 | #else |
| 7795 | # include <assert.h> |
| 7796 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7797 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7798 | #ifdef __cplusplus |
| 7799 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7800 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7801 | #endif |
| 7802 | /* We use char because int might match the return type of a gcc2 |
| 7803 | builtin and then its argument prototype would still apply. */ |
| 7804 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7805 | /* The GNU C library defines this for functions which it implements |
| 7806 | to always fail with ENOSYS. Some functions are actually named |
| 7807 | something starting with __ and the normal name is an alias. */ |
| 7808 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 7809 | choke me |
| 7810 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7811 | char (*f) () = shl_load; |
| 7812 | #endif |
| 7813 | #ifdef __cplusplus |
| 7814 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7815 | #endif |
| 7816 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7817 | int |
| 7818 | main () |
| 7819 | { |
| 7820 | return f != shl_load; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7821 | ; |
| 7822 | return 0; |
| 7823 | } |
| 7824 | _ACEOF |
| 7825 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7826 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7827 | (eval $ac_link) 2>&5 |
| 7828 | ac_status=$? |
| 7829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7830 | (exit $ac_status); } && |
| 7831 | { ac_try='test -s conftest$ac_exeext' |
| 7832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7833 | (eval $ac_try) 2>&5 |
| 7834 | ac_status=$? |
| 7835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7836 | (exit $ac_status); }; }; then |
| 7837 | ac_cv_func_shl_load=yes |
| 7838 | else |
| 7839 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7841 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7842 | ac_cv_func_shl_load=no |
| 7843 | fi |
| 7844 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7845 | fi |
| 7846 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 7847 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 7848 | if test $ac_cv_func_shl_load = yes; then |
| 7849 | lt_cv_dlopen="shl_load" |
| 7850 | else |
| 7851 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 7852 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 7853 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 7854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7855 | else |
| 7856 | ac_check_lib_save_LIBS=$LIBS |
| 7857 | LIBS="-ldld $LIBS" |
| 7858 | cat >conftest.$ac_ext <<_ACEOF |
| 7859 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7860 | /* confdefs.h. */ |
| 7861 | _ACEOF |
| 7862 | cat confdefs.h >>conftest.$ac_ext |
| 7863 | cat >>conftest.$ac_ext <<_ACEOF |
| 7864 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7865 | |
| 7866 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7867 | #ifdef __cplusplus |
| 7868 | extern "C" |
| 7869 | #endif |
| 7870 | /* We use char because int might match the return type of a gcc2 |
| 7871 | builtin and then its argument prototype would still apply. */ |
| 7872 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7873 | int |
| 7874 | main () |
| 7875 | { |
| 7876 | shl_load (); |
| 7877 | ; |
| 7878 | return 0; |
| 7879 | } |
| 7880 | _ACEOF |
| 7881 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7882 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7883 | (eval $ac_link) 2>&5 |
| 7884 | ac_status=$? |
| 7885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7886 | (exit $ac_status); } && |
| 7887 | { ac_try='test -s conftest$ac_exeext' |
| 7888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7889 | (eval $ac_try) 2>&5 |
| 7890 | ac_status=$? |
| 7891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7892 | (exit $ac_status); }; }; then |
| 7893 | ac_cv_lib_dld_shl_load=yes |
| 7894 | else |
| 7895 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7897 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7898 | ac_cv_lib_dld_shl_load=no |
| 7899 | fi |
| 7900 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7901 | LIBS=$ac_check_lib_save_LIBS |
| 7902 | fi |
| 7903 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 7904 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 7905 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 7906 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 7907 | else |
| 7908 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 7909 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 7910 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 7911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7912 | else |
| 7913 | cat >conftest.$ac_ext <<_ACEOF |
| 7914 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7915 | /* confdefs.h. */ |
| 7916 | _ACEOF |
| 7917 | cat confdefs.h >>conftest.$ac_ext |
| 7918 | cat >>conftest.$ac_ext <<_ACEOF |
| 7919 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7920 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7921 | which can conflict with char dlopen (); below. |
| 7922 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7923 | <limits.h> exists even on freestanding compilers. */ |
| 7924 | #ifdef __STDC__ |
| 7925 | # include <limits.h> |
| 7926 | #else |
| 7927 | # include <assert.h> |
| 7928 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7929 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7930 | #ifdef __cplusplus |
| 7931 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7932 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7933 | #endif |
| 7934 | /* We use char because int might match the return type of a gcc2 |
| 7935 | builtin and then its argument prototype would still apply. */ |
| 7936 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7937 | /* The GNU C library defines this for functions which it implements |
| 7938 | to always fail with ENOSYS. Some functions are actually named |
| 7939 | something starting with __ and the normal name is an alias. */ |
| 7940 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 7941 | choke me |
| 7942 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7943 | char (*f) () = dlopen; |
| 7944 | #endif |
| 7945 | #ifdef __cplusplus |
| 7946 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7947 | #endif |
| 7948 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7949 | int |
| 7950 | main () |
| 7951 | { |
| 7952 | return f != dlopen; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7953 | ; |
| 7954 | return 0; |
| 7955 | } |
| 7956 | _ACEOF |
| 7957 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7959 | (eval $ac_link) 2>&5 |
| 7960 | ac_status=$? |
| 7961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7962 | (exit $ac_status); } && |
| 7963 | { ac_try='test -s conftest$ac_exeext' |
| 7964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7965 | (eval $ac_try) 2>&5 |
| 7966 | ac_status=$? |
| 7967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7968 | (exit $ac_status); }; }; then |
| 7969 | ac_cv_func_dlopen=yes |
| 7970 | else |
| 7971 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7973 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7974 | ac_cv_func_dlopen=no |
| 7975 | fi |
| 7976 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7977 | fi |
| 7978 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 7979 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 7980 | if test $ac_cv_func_dlopen = yes; then |
| 7981 | lt_cv_dlopen="dlopen" |
| 7982 | else |
| 7983 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 7984 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 7985 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 7986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7987 | else |
| 7988 | ac_check_lib_save_LIBS=$LIBS |
| 7989 | LIBS="-ldl $LIBS" |
| 7990 | cat >conftest.$ac_ext <<_ACEOF |
| 7991 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7992 | /* confdefs.h. */ |
| 7993 | _ACEOF |
| 7994 | cat confdefs.h >>conftest.$ac_ext |
| 7995 | cat >>conftest.$ac_ext <<_ACEOF |
| 7996 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7997 | |
| 7998 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7999 | #ifdef __cplusplus |
| 8000 | extern "C" |
| 8001 | #endif |
| 8002 | /* We use char because int might match the return type of a gcc2 |
| 8003 | builtin and then its argument prototype would still apply. */ |
| 8004 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8005 | int |
| 8006 | main () |
| 8007 | { |
| 8008 | dlopen (); |
| 8009 | ; |
| 8010 | return 0; |
| 8011 | } |
| 8012 | _ACEOF |
| 8013 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8015 | (eval $ac_link) 2>&5 |
| 8016 | ac_status=$? |
| 8017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8018 | (exit $ac_status); } && |
| 8019 | { ac_try='test -s conftest$ac_exeext' |
| 8020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8021 | (eval $ac_try) 2>&5 |
| 8022 | ac_status=$? |
| 8023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8024 | (exit $ac_status); }; }; then |
| 8025 | ac_cv_lib_dl_dlopen=yes |
| 8026 | else |
| 8027 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8029 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8030 | ac_cv_lib_dl_dlopen=no |
| 8031 | fi |
| 8032 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8033 | LIBS=$ac_check_lib_save_LIBS |
| 8034 | fi |
| 8035 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8036 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 8037 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8038 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 8039 | else |
| 8040 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 8041 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 8042 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 8043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8044 | else |
| 8045 | ac_check_lib_save_LIBS=$LIBS |
| 8046 | LIBS="-lsvld $LIBS" |
| 8047 | cat >conftest.$ac_ext <<_ACEOF |
| 8048 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8049 | /* confdefs.h. */ |
| 8050 | _ACEOF |
| 8051 | cat confdefs.h >>conftest.$ac_ext |
| 8052 | cat >>conftest.$ac_ext <<_ACEOF |
| 8053 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8054 | |
| 8055 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8056 | #ifdef __cplusplus |
| 8057 | extern "C" |
| 8058 | #endif |
| 8059 | /* We use char because int might match the return type of a gcc2 |
| 8060 | builtin and then its argument prototype would still apply. */ |
| 8061 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8062 | int |
| 8063 | main () |
| 8064 | { |
| 8065 | dlopen (); |
| 8066 | ; |
| 8067 | return 0; |
| 8068 | } |
| 8069 | _ACEOF |
| 8070 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8071 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8072 | (eval $ac_link) 2>&5 |
| 8073 | ac_status=$? |
| 8074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8075 | (exit $ac_status); } && |
| 8076 | { ac_try='test -s conftest$ac_exeext' |
| 8077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8078 | (eval $ac_try) 2>&5 |
| 8079 | ac_status=$? |
| 8080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8081 | (exit $ac_status); }; }; then |
| 8082 | ac_cv_lib_svld_dlopen=yes |
| 8083 | else |
| 8084 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8086 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8087 | ac_cv_lib_svld_dlopen=no |
| 8088 | fi |
| 8089 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8090 | LIBS=$ac_check_lib_save_LIBS |
| 8091 | fi |
| 8092 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 8093 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 8094 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 8095 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 8096 | else |
| 8097 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 8098 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 8099 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 8100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8101 | else |
| 8102 | ac_check_lib_save_LIBS=$LIBS |
| 8103 | LIBS="-ldld $LIBS" |
| 8104 | cat >conftest.$ac_ext <<_ACEOF |
| 8105 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8106 | /* confdefs.h. */ |
| 8107 | _ACEOF |
| 8108 | cat confdefs.h >>conftest.$ac_ext |
| 8109 | cat >>conftest.$ac_ext <<_ACEOF |
| 8110 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8111 | |
| 8112 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8113 | #ifdef __cplusplus |
| 8114 | extern "C" |
| 8115 | #endif |
| 8116 | /* We use char because int might match the return type of a gcc2 |
| 8117 | builtin and then its argument prototype would still apply. */ |
| 8118 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8119 | int |
| 8120 | main () |
| 8121 | { |
| 8122 | dld_link (); |
| 8123 | ; |
| 8124 | return 0; |
| 8125 | } |
| 8126 | _ACEOF |
| 8127 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8128 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8129 | (eval $ac_link) 2>&5 |
| 8130 | ac_status=$? |
| 8131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8132 | (exit $ac_status); } && |
| 8133 | { ac_try='test -s conftest$ac_exeext' |
| 8134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8135 | (eval $ac_try) 2>&5 |
| 8136 | ac_status=$? |
| 8137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8138 | (exit $ac_status); }; }; then |
| 8139 | ac_cv_lib_dld_dld_link=yes |
| 8140 | else |
| 8141 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8143 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8144 | ac_cv_lib_dld_dld_link=no |
| 8145 | fi |
| 8146 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8147 | LIBS=$ac_check_lib_save_LIBS |
| 8148 | fi |
| 8149 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 8150 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 8151 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 8152 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 8153 | fi |
| 8154 | |
| 8155 | |
| 8156 | fi |
| 8157 | |
| 8158 | |
| 8159 | fi |
| 8160 | |
| 8161 | |
| 8162 | fi |
| 8163 | |
| 8164 | |
| 8165 | fi |
| 8166 | |
| 8167 | |
| 8168 | fi |
| 8169 | |
| 8170 | ;; |
| 8171 | esac |
| 8172 | |
| 8173 | if test "x$lt_cv_dlopen" != xno; then |
| 8174 | enable_dlopen=yes |
| 8175 | else |
| 8176 | enable_dlopen=no |
| 8177 | fi |
| 8178 | |
| 8179 | case $lt_cv_dlopen in |
| 8180 | dlopen) |
| 8181 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8182 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8183 | |
| 8184 | save_LDFLAGS="$LDFLAGS" |
| 8185 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 8186 | |
| 8187 | save_LIBS="$LIBS" |
| 8188 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 8189 | |
| 8190 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 8191 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 8192 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 8193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8194 | else |
| 8195 | if test "$cross_compiling" = yes; then : |
| 8196 | lt_cv_dlopen_self=cross |
| 8197 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8198 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8199 | lt_status=$lt_dlunknown |
| 8200 | cat > conftest.$ac_ext <<EOF |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 8201 | #line 8201 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8202 | #include "confdefs.h" |
| 8203 | |
| 8204 | #if HAVE_DLFCN_H |
| 8205 | #include <dlfcn.h> |
| 8206 | #endif |
| 8207 | |
| 8208 | #include <stdio.h> |
| 8209 | |
| 8210 | #ifdef RTLD_GLOBAL |
| 8211 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 8212 | #else |
| 8213 | # ifdef DL_GLOBAL |
| 8214 | # define LT_DLGLOBAL DL_GLOBAL |
| 8215 | # else |
| 8216 | # define LT_DLGLOBAL 0 |
| 8217 | # endif |
| 8218 | #endif |
| 8219 | |
| 8220 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 8221 | find out it does not work in some platform. */ |
| 8222 | #ifndef LT_DLLAZY_OR_NOW |
| 8223 | # ifdef RTLD_LAZY |
| 8224 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 8225 | # else |
| 8226 | # ifdef DL_LAZY |
| 8227 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 8228 | # else |
| 8229 | # ifdef RTLD_NOW |
| 8230 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 8231 | # else |
| 8232 | # ifdef DL_NOW |
| 8233 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 8234 | # else |
| 8235 | # define LT_DLLAZY_OR_NOW 0 |
| 8236 | # endif |
| 8237 | # endif |
| 8238 | # endif |
| 8239 | # endif |
| 8240 | #endif |
| 8241 | |
| 8242 | #ifdef __cplusplus |
| 8243 | extern "C" void exit (int); |
| 8244 | #endif |
| 8245 | |
| 8246 | void fnord() { int i=42;} |
| 8247 | int main () |
| 8248 | { |
| 8249 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 8250 | int status = $lt_dlunknown; |
| 8251 | |
| 8252 | if (self) |
| 8253 | { |
| 8254 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 8255 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8256 | /* dlclose (self); */ |
| 8257 | } |
| 8258 | |
| 8259 | exit (status); |
| 8260 | } |
| 8261 | EOF |
| 8262 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8263 | (eval $ac_link) 2>&5 |
| 8264 | ac_status=$? |
| 8265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8266 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8267 | (./conftest; exit; ) 2>/dev/null |
| 8268 | lt_status=$? |
| 8269 | case x$lt_status in |
| 8270 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 8271 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 8272 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 8273 | esac |
| 8274 | else : |
| 8275 | # compilation failed |
| 8276 | lt_cv_dlopen_self=no |
| 8277 | fi |
| 8278 | fi |
| 8279 | rm -fr conftest* |
| 8280 | |
| 8281 | |
| 8282 | fi |
| 8283 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 8284 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 8285 | |
| 8286 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 8287 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 8288 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 8289 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 8290 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 8291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8292 | else |
| 8293 | if test "$cross_compiling" = yes; then : |
| 8294 | lt_cv_dlopen_self_static=cross |
| 8295 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8296 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8297 | lt_status=$lt_dlunknown |
| 8298 | cat > conftest.$ac_ext <<EOF |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 8299 | #line 8299 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8300 | #include "confdefs.h" |
| 8301 | |
| 8302 | #if HAVE_DLFCN_H |
| 8303 | #include <dlfcn.h> |
| 8304 | #endif |
| 8305 | |
| 8306 | #include <stdio.h> |
| 8307 | |
| 8308 | #ifdef RTLD_GLOBAL |
| 8309 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 8310 | #else |
| 8311 | # ifdef DL_GLOBAL |
| 8312 | # define LT_DLGLOBAL DL_GLOBAL |
| 8313 | # else |
| 8314 | # define LT_DLGLOBAL 0 |
| 8315 | # endif |
| 8316 | #endif |
| 8317 | |
| 8318 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 8319 | find out it does not work in some platform. */ |
| 8320 | #ifndef LT_DLLAZY_OR_NOW |
| 8321 | # ifdef RTLD_LAZY |
| 8322 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 8323 | # else |
| 8324 | # ifdef DL_LAZY |
| 8325 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 8326 | # else |
| 8327 | # ifdef RTLD_NOW |
| 8328 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 8329 | # else |
| 8330 | # ifdef DL_NOW |
| 8331 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 8332 | # else |
| 8333 | # define LT_DLLAZY_OR_NOW 0 |
| 8334 | # endif |
| 8335 | # endif |
| 8336 | # endif |
| 8337 | # endif |
| 8338 | #endif |
| 8339 | |
| 8340 | #ifdef __cplusplus |
| 8341 | extern "C" void exit (int); |
| 8342 | #endif |
| 8343 | |
| 8344 | void fnord() { int i=42;} |
| 8345 | int main () |
| 8346 | { |
| 8347 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 8348 | int status = $lt_dlunknown; |
| 8349 | |
| 8350 | if (self) |
| 8351 | { |
| 8352 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 8353 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8354 | /* dlclose (self); */ |
| 8355 | } |
| 8356 | |
| 8357 | exit (status); |
| 8358 | } |
| 8359 | EOF |
| 8360 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8361 | (eval $ac_link) 2>&5 |
| 8362 | ac_status=$? |
| 8363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8364 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8365 | (./conftest; exit; ) 2>/dev/null |
| 8366 | lt_status=$? |
| 8367 | case x$lt_status in |
| 8368 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 8369 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 8370 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 8371 | esac |
| 8372 | else : |
| 8373 | # compilation failed |
| 8374 | lt_cv_dlopen_self_static=no |
| 8375 | fi |
| 8376 | fi |
| 8377 | rm -fr conftest* |
| 8378 | |
| 8379 | |
| 8380 | fi |
| 8381 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 8382 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 8383 | fi |
| 8384 | |
| 8385 | CPPFLAGS="$save_CPPFLAGS" |
| 8386 | LDFLAGS="$save_LDFLAGS" |
| 8387 | LIBS="$save_LIBS" |
| 8388 | ;; |
| 8389 | esac |
| 8390 | |
| 8391 | case $lt_cv_dlopen_self in |
| 8392 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 8393 | *) enable_dlopen_self=unknown ;; |
| 8394 | esac |
| 8395 | |
| 8396 | case $lt_cv_dlopen_self_static in |
| 8397 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 8398 | *) enable_dlopen_self_static=unknown ;; |
| 8399 | esac |
| 8400 | fi |
| 8401 | |
| 8402 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8403 | # Report which librarie types wil actually be built |
| 8404 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 8405 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 8406 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 8407 | echo "${ECHO_T}$can_build_shared" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8408 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8409 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 8410 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 8411 | test "$can_build_shared" = "no" && enable_shared=no |
| 8412 | |
| 8413 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 8414 | # are all built from PIC. |
| 8415 | case "$host_os" in |
| 8416 | aix3*) |
| 8417 | test "$enable_shared" = yes && enable_static=no |
| 8418 | if test -n "$RANLIB"; then |
| 8419 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 8420 | postinstall_cmds='$RANLIB $lib' |
| 8421 | fi |
| 8422 | ;; |
| 8423 | |
| 8424 | aix4*) |
| 8425 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 8426 | test "$enable_shared" = yes && enable_static=no |
| 8427 | fi |
| 8428 | ;; |
| 8429 | darwin* | rhapsody*) |
| 8430 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 8431 | archive_cmds_need_lc=no |
| 8432 | case "$host_os" in |
| 8433 | rhapsody* | darwin1.[012]) |
| 8434 | allow_undefined_flag='-undefined suppress' |
| 8435 | ;; |
| 8436 | *) # Darwin 1.3 on |
| 8437 | test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' |
| 8438 | ;; |
| 8439 | esac |
| 8440 | # FIXME: Relying on posixy $() will cause problems for |
| 8441 | # cross-compilation, but unfortunately the echo tests do not |
| 8442 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| 8443 | # `"' quotes if we put them in here... so don't! |
| 8444 | output_verbose_link_cmd='echo' |
| 8445 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
| 8446 | module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
| 8447 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 8448 | 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}' |
| 8449 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 8450 | hardcode_direct=no |
| 8451 | hardcode_automatic=yes |
| 8452 | hardcode_shlibpath_var=unsupported |
| 8453 | whole_archive_flag_spec='-all_load $convenience' |
| 8454 | link_all_deplibs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8455 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8456 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8457 | esac |
| 8458 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 8459 | echo "${ECHO_T}$enable_shared" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8460 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8461 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 8462 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 8463 | # Make sure either enable_shared or enable_static is yes. |
| 8464 | test "$enable_shared" = yes || enable_static=yes |
| 8465 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 8466 | echo "${ECHO_T}$enable_static" >&6 |
| 8467 | |
| 8468 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8469 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 8470 | # with your package, and you will get complaints that there are |
| 8471 | # no rules to generate ltmain.sh. |
| 8472 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8473 | # See if we are running on zsh, and set the options which allow our commands through |
| 8474 | # without removal of \ escapes. |
| 8475 | if test -n "${ZSH_VERSION+set}" ; then |
| 8476 | setopt NO_GLOB_SUBST |
| 8477 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8478 | # Now quote all the things that may contain metacharacters while being |
| 8479 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 8480 | # variables and quote the copies for generation of the libtool script. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8481 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
| 8482 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 8483 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 8484 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 8485 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 8486 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8487 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8488 | old_postinstall_cmds old_postuninstall_cmds \ |
| 8489 | compiler \ |
| 8490 | CC \ |
| 8491 | LD \ |
| 8492 | lt_prog_compiler_wl \ |
| 8493 | lt_prog_compiler_pic \ |
| 8494 | lt_prog_compiler_static \ |
| 8495 | lt_prog_compiler_no_builtin_flag \ |
| 8496 | export_dynamic_flag_spec \ |
| 8497 | thread_safe_flag_spec \ |
| 8498 | whole_archive_flag_spec \ |
| 8499 | enable_shared_with_static_runtimes \ |
| 8500 | old_archive_cmds \ |
| 8501 | old_archive_from_new_cmds \ |
| 8502 | predep_objects \ |
| 8503 | postdep_objects \ |
| 8504 | predeps \ |
| 8505 | postdeps \ |
| 8506 | compiler_lib_search_path \ |
| 8507 | archive_cmds \ |
| 8508 | archive_expsym_cmds \ |
| 8509 | postinstall_cmds \ |
| 8510 | postuninstall_cmds \ |
| 8511 | old_archive_from_expsyms_cmds \ |
| 8512 | allow_undefined_flag \ |
| 8513 | no_undefined_flag \ |
| 8514 | export_symbols_cmds \ |
| 8515 | hardcode_libdir_flag_spec \ |
| 8516 | hardcode_libdir_flag_spec_ld \ |
| 8517 | hardcode_libdir_separator \ |
| 8518 | hardcode_automatic \ |
| 8519 | module_cmds \ |
| 8520 | module_expsym_cmds \ |
| 8521 | lt_cv_prog_compiler_c_o \ |
| 8522 | exclude_expsyms \ |
| 8523 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8524 | |
| 8525 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8526 | old_archive_cmds | \ |
| 8527 | old_archive_from_new_cmds | \ |
| 8528 | archive_cmds | \ |
| 8529 | archive_expsym_cmds | \ |
| 8530 | module_cmds | \ |
| 8531 | module_expsym_cmds | \ |
| 8532 | old_archive_from_expsyms_cmds | \ |
| 8533 | export_symbols_cmds | \ |
| 8534 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8535 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8536 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 8537 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8538 | # Double-quote double-evaled strings. |
| 8539 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 8540 | ;; |
| 8541 | *) |
| 8542 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 8543 | ;; |
| 8544 | esac |
| 8545 | done |
| 8546 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8547 | case $lt_echo in |
| 8548 | *'\$0 --fallback-echo"') |
| 8549 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 8550 | ;; |
| 8551 | esac |
| 8552 | |
| 8553 | cfgfile="${ofile}T" |
| 8554 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 8555 | $rm -f "$cfgfile" |
| 8556 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 8557 | echo "$as_me: creating $ofile" >&6;} |
| 8558 | |
| 8559 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8560 | #! $SHELL |
| 8561 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8562 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8563 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 8564 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 8565 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8566 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 8567 | # Free Software Foundation, Inc. |
| 8568 | # |
| 8569 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8570 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 8571 | # |
| 8572 | # This program is free software; you can redistribute it and/or modify |
| 8573 | # it under the terms of the GNU General Public License as published by |
| 8574 | # the Free Software Foundation; either version 2 of the License, or |
| 8575 | # (at your option) any later version. |
| 8576 | # |
| 8577 | # This program is distributed in the hope that it will be useful, but |
| 8578 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 8579 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 8580 | # General Public License for more details. |
| 8581 | # |
| 8582 | # You should have received a copy of the GNU General Public License |
| 8583 | # along with this program; if not, write to the Free Software |
| 8584 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 8585 | # |
| 8586 | # As a special exception to the GNU General Public License, if you |
| 8587 | # distribute this file as part of a program that contains a |
| 8588 | # configuration script generated by Autoconf, you may include it under |
| 8589 | # the same distribution terms that you use for the rest of that program. |
| 8590 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8591 | # A sed program that does not truncate output. |
| 8592 | SED=$lt_SED |
| 8593 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8594 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8595 | Xsed="$SED -e s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8596 | |
| 8597 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 8598 | # if CDPATH is set. |
| 8599 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 8600 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8601 | # The names of the tagged configurations supported by this script. |
| 8602 | available_tags= |
| 8603 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8604 | # ### BEGIN LIBTOOL CONFIG |
| 8605 | |
| 8606 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 8607 | |
| 8608 | # Shell to use when invoking shell scripts. |
| 8609 | SHELL=$lt_SHELL |
| 8610 | |
| 8611 | # Whether or not to build shared libraries. |
| 8612 | build_libtool_libs=$enable_shared |
| 8613 | |
| 8614 | # Whether or not to build static libraries. |
| 8615 | build_old_libs=$enable_static |
| 8616 | |
| 8617 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8618 | build_libtool_need_lc=$archive_cmds_need_lc |
| 8619 | |
| 8620 | # Whether or not to disallow shared libs when runtime libs are static |
| 8621 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8622 | |
| 8623 | # Whether or not to optimize for fast installation. |
| 8624 | fast_install=$enable_fast_install |
| 8625 | |
| 8626 | # The host system. |
| 8627 | host_alias=$host_alias |
| 8628 | host=$host |
| 8629 | |
| 8630 | # An echo program that does not interpret backslashes. |
| 8631 | echo=$lt_echo |
| 8632 | |
| 8633 | # The archiver. |
| 8634 | AR=$lt_AR |
| 8635 | AR_FLAGS=$lt_AR_FLAGS |
| 8636 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8637 | # A C compiler. |
| 8638 | LTCC=$lt_LTCC |
| 8639 | |
| 8640 | # A language-specific compiler. |
| 8641 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8642 | |
| 8643 | # Is the compiler the GNU C compiler? |
| 8644 | with_gcc=$GCC |
| 8645 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8646 | # An ERE matcher. |
| 8647 | EGREP=$lt_EGREP |
| 8648 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8649 | # The linker used to build libraries. |
| 8650 | LD=$lt_LD |
| 8651 | |
| 8652 | # Whether we need hard or soft links. |
| 8653 | LN_S=$lt_LN_S |
| 8654 | |
| 8655 | # A BSD-compatible nm program. |
| 8656 | NM=$lt_NM |
| 8657 | |
| 8658 | # A symbol stripping program |
| 8659 | STRIP=$STRIP |
| 8660 | |
| 8661 | # Used to examine libraries when file_magic_cmd begins "file" |
| 8662 | MAGIC_CMD=$MAGIC_CMD |
| 8663 | |
| 8664 | # Used on cygwin: DLL creation program. |
| 8665 | DLLTOOL="$DLLTOOL" |
| 8666 | |
| 8667 | # Used on cygwin: object dumper. |
| 8668 | OBJDUMP="$OBJDUMP" |
| 8669 | |
| 8670 | # Used on cygwin: assembler. |
| 8671 | AS="$AS" |
| 8672 | |
| 8673 | # The name of the directory that contains temporary libtool files. |
| 8674 | objdir=$objdir |
| 8675 | |
| 8676 | # How to create reloadable object files. |
| 8677 | reload_flag=$lt_reload_flag |
| 8678 | reload_cmds=$lt_reload_cmds |
| 8679 | |
| 8680 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8681 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8682 | |
| 8683 | # Object file suffix (normally "o"). |
| 8684 | objext="$ac_objext" |
| 8685 | |
| 8686 | # Old archive suffix (normally "a"). |
| 8687 | libext="$libext" |
| 8688 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8689 | # Shared library suffix (normally ".so"). |
| 8690 | shrext='$shrext' |
| 8691 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8692 | # Executable file suffix (normally ""). |
| 8693 | exeext="$exeext" |
| 8694 | |
| 8695 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8696 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8697 | pic_mode=$pic_mode |
| 8698 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8699 | # What is the maximum length of a command? |
| 8700 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8701 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8702 | # Does compiler simultaneously support -c and -o options? |
| 8703 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8704 | |
| 8705 | # Must we lock files when doing compilation ? |
| 8706 | need_locks=$lt_need_locks |
| 8707 | |
| 8708 | # Do we need the lib prefix for modules? |
| 8709 | need_lib_prefix=$need_lib_prefix |
| 8710 | |
| 8711 | # Do we need a version for libraries? |
| 8712 | need_version=$need_version |
| 8713 | |
| 8714 | # Whether dlopen is supported. |
| 8715 | dlopen_support=$enable_dlopen |
| 8716 | |
| 8717 | # Whether dlopen of programs is supported. |
| 8718 | dlopen_self=$enable_dlopen_self |
| 8719 | |
| 8720 | # Whether dlopen of statically linked programs is supported. |
| 8721 | dlopen_self_static=$enable_dlopen_self_static |
| 8722 | |
| 8723 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8724 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8725 | |
| 8726 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8727 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8728 | |
| 8729 | # Compiler flag to allow reflexive dlopens. |
| 8730 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 8731 | |
| 8732 | # Compiler flag to generate shared objects directly from archives. |
| 8733 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 8734 | |
| 8735 | # Compiler flag to generate thread-safe objects. |
| 8736 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 8737 | |
| 8738 | # Library versioning type. |
| 8739 | version_type=$version_type |
| 8740 | |
| 8741 | # Format of library name prefix. |
| 8742 | libname_spec=$lt_libname_spec |
| 8743 | |
| 8744 | # List of archive names. First name is the real one, the rest are links. |
| 8745 | # The last name is the one that the linker finds with -lNAME. |
| 8746 | library_names_spec=$lt_library_names_spec |
| 8747 | |
| 8748 | # The coded name of the library, if different from the real name. |
| 8749 | soname_spec=$lt_soname_spec |
| 8750 | |
| 8751 | # Commands used to build and install an old-style archive. |
| 8752 | RANLIB=$lt_RANLIB |
| 8753 | old_archive_cmds=$lt_old_archive_cmds |
| 8754 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 8755 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 8756 | |
| 8757 | # Create an old-style archive from a shared archive. |
| 8758 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 8759 | |
| 8760 | # Create a temporary old-style archive to link instead of a shared archive. |
| 8761 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 8762 | |
| 8763 | # Commands used to build and install a shared archive. |
| 8764 | archive_cmds=$lt_archive_cmds |
| 8765 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 8766 | postinstall_cmds=$lt_postinstall_cmds |
| 8767 | postuninstall_cmds=$lt_postuninstall_cmds |
| 8768 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8769 | # Commands used to build a loadable module (assumed same as above if empty) |
| 8770 | module_cmds=$lt_module_cmds |
| 8771 | module_expsym_cmds=$lt_module_expsym_cmds |
| 8772 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8773 | # Commands to strip libraries. |
| 8774 | old_striplib=$lt_old_striplib |
| 8775 | striplib=$lt_striplib |
| 8776 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8777 | # Dependencies to place before the objects being linked to create a |
| 8778 | # shared library. |
| 8779 | predep_objects=$lt_predep_objects |
| 8780 | |
| 8781 | # Dependencies to place after the objects being linked to create a |
| 8782 | # shared library. |
| 8783 | postdep_objects=$lt_postdep_objects |
| 8784 | |
| 8785 | # Dependencies to place before the objects being linked to create a |
| 8786 | # shared library. |
| 8787 | predeps=$lt_predeps |
| 8788 | |
| 8789 | # Dependencies to place after the objects being linked to create a |
| 8790 | # shared library. |
| 8791 | postdeps=$lt_postdeps |
| 8792 | |
| 8793 | # The library search path used internally by the compiler when linking |
| 8794 | # a shared library. |
| 8795 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 8796 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8797 | # Method to check whether dependent libraries are shared objects. |
| 8798 | deplibs_check_method=$lt_deplibs_check_method |
| 8799 | |
| 8800 | # Command to use when deplibs_check_method == file_magic. |
| 8801 | file_magic_cmd=$lt_file_magic_cmd |
| 8802 | |
| 8803 | # Flag that allows shared libraries with undefined symbols to be built. |
| 8804 | allow_undefined_flag=$lt_allow_undefined_flag |
| 8805 | |
| 8806 | # Flag that forces no undefined symbols. |
| 8807 | no_undefined_flag=$lt_no_undefined_flag |
| 8808 | |
| 8809 | # Commands used to finish a libtool library installation in a directory. |
| 8810 | finish_cmds=$lt_finish_cmds |
| 8811 | |
| 8812 | # Same as above, but a single script fragment to be evaled but not shown. |
| 8813 | finish_eval=$lt_finish_eval |
| 8814 | |
| 8815 | # Take the output of nm and produce a listing of raw symbols and C names. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8816 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8817 | |
| 8818 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8819 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8820 | |
| 8821 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8822 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8823 | |
| 8824 | # This is the shared library runtime path variable. |
| 8825 | runpath_var=$runpath_var |
| 8826 | |
| 8827 | # This is the shared library path variable. |
| 8828 | shlibpath_var=$shlibpath_var |
| 8829 | |
| 8830 | # Is shlibpath searched before the hard-coded library search path? |
| 8831 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 8832 | |
| 8833 | # How to hardcode a shared library path into an executable. |
| 8834 | hardcode_action=$hardcode_action |
| 8835 | |
| 8836 | # Whether we should hardcode library paths into libraries. |
| 8837 | hardcode_into_libs=$hardcode_into_libs |
| 8838 | |
| 8839 | # Flag to hardcode \$libdir into a binary during linking. |
| 8840 | # This must work even if \$libdir does not exist. |
| 8841 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 8842 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8843 | # If ld is used when linking, flag to hardcode \$libdir into |
| 8844 | # a binary during linking. This must work even if \$libdir does |
| 8845 | # not exist. |
| 8846 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 8847 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8848 | # Whether we need a single -rpath flag with a separated argument. |
| 8849 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 8850 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8851 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8852 | # resulting binary. |
| 8853 | hardcode_direct=$hardcode_direct |
| 8854 | |
| 8855 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 8856 | # resulting binary. |
| 8857 | hardcode_minus_L=$hardcode_minus_L |
| 8858 | |
| 8859 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 8860 | # the resulting binary. |
| 8861 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 8862 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8863 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 8864 | # and all subsequent libraries and executables linked against it. |
| 8865 | hardcode_automatic=$hardcode_automatic |
| 8866 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8867 | # Variables whose values should be saved in libtool wrapper scripts and |
| 8868 | # restored at relink time. |
| 8869 | variables_saved_for_relink="$variables_saved_for_relink" |
| 8870 | |
| 8871 | # Whether libtool must link a program against all its dependency libraries. |
| 8872 | link_all_deplibs=$link_all_deplibs |
| 8873 | |
| 8874 | # Compile-time system search path for libraries |
| 8875 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 8876 | |
| 8877 | # Run-time system search path for libraries |
| 8878 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 8879 | |
| 8880 | # Fix the shell variable \$srcfile for the compiler. |
| 8881 | fix_srcfile_path="$fix_srcfile_path" |
| 8882 | |
| 8883 | # Set to yes if exported symbols are required. |
| 8884 | always_export_symbols=$always_export_symbols |
| 8885 | |
| 8886 | # The commands to list exported symbols. |
| 8887 | export_symbols_cmds=$lt_export_symbols_cmds |
| 8888 | |
| 8889 | # The commands to extract the exported symbol list from a shared archive. |
| 8890 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 8891 | |
| 8892 | # Symbols that should not be listed in the preloaded symbols. |
| 8893 | exclude_expsyms=$lt_exclude_expsyms |
| 8894 | |
| 8895 | # Symbols that must always be exported. |
| 8896 | include_expsyms=$lt_include_expsyms |
| 8897 | |
| 8898 | # ### END LIBTOOL CONFIG |
| 8899 | |
| 8900 | __EOF__ |
| 8901 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8902 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8903 | case $host_os in |
| 8904 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8905 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8906 | |
| 8907 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 8908 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 8909 | # vanish in a puff of smoke. |
| 8910 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 8911 | COLLECT_NAMES= |
| 8912 | export COLLECT_NAMES |
| 8913 | fi |
| 8914 | EOF |
| 8915 | ;; |
| 8916 | esac |
| 8917 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8918 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 8919 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 8920 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 8921 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8922 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8923 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8924 | mv -f "$cfgfile" "$ofile" || \ |
| 8925 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8926 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8927 | |
| 8928 | else |
| 8929 | # If there is no Makefile yet, we rely on a make rule to execute |
| 8930 | # `config.status --recheck' to rerun these tests and create the |
| 8931 | # libtool script then. |
| 8932 | test -f Makefile && make "$ltmain" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8933 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8934 | |
| 8935 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8936 | ac_ext=c |
| 8937 | ac_cpp='$CPP $CPPFLAGS' |
| 8938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8941 | |
| 8942 | CC="$lt_save_CC" |
| 8943 | |
| 8944 | |
| 8945 | # Check whether --with-tags or --without-tags was given. |
| 8946 | if test "${with_tags+set}" = set; then |
| 8947 | withval="$with_tags" |
| 8948 | tagnames="$withval" |
| 8949 | fi; |
| 8950 | |
| 8951 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 8952 | if test ! -f "${ofile}"; then |
| 8953 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 8954 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 8955 | fi |
| 8956 | |
| 8957 | if test -z "$LTCC"; then |
| 8958 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 8959 | if test -z "$LTCC"; then |
| 8960 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 8961 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 8962 | else |
| 8963 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 8964 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 8965 | fi |
| 8966 | fi |
| 8967 | |
| 8968 | # Extract list of available tagged configurations in $ofile. |
| 8969 | # Note that this assumes the entire list is on one line. |
| 8970 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 8971 | |
| 8972 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8973 | for tagname in $tagnames; do |
| 8974 | IFS="$lt_save_ifs" |
| 8975 | # Check whether tagname contains only valid characters |
| 8976 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 8977 | "") ;; |
| 8978 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 8979 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 8980 | { (exit 1); exit 1; }; } |
| 8981 | ;; |
| 8982 | esac |
| 8983 | |
| 8984 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 8985 | then |
| 8986 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 8987 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 8988 | { (exit 1); exit 1; }; } |
| 8989 | fi |
| 8990 | |
| 8991 | # Update the list of available tags. |
| 8992 | if test -n "$tagname"; then |
| 8993 | echo appending configuration tag \"$tagname\" to $ofile |
| 8994 | |
| 8995 | case $tagname in |
| 8996 | CXX) |
| 8997 | if test -n "$CXX" && test "X$CXX" != "Xno"; then |
| 8998 | ac_ext=cc |
| 8999 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 9000 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9001 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9002 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 9003 | |
| 9004 | |
| 9005 | |
| 9006 | |
| 9007 | archive_cmds_need_lc_CXX=no |
| 9008 | allow_undefined_flag_CXX= |
| 9009 | always_export_symbols_CXX=no |
| 9010 | archive_expsym_cmds_CXX= |
| 9011 | export_dynamic_flag_spec_CXX= |
| 9012 | hardcode_direct_CXX=no |
| 9013 | hardcode_libdir_flag_spec_CXX= |
| 9014 | hardcode_libdir_flag_spec_ld_CXX= |
| 9015 | hardcode_libdir_separator_CXX= |
| 9016 | hardcode_minus_L_CXX=no |
| 9017 | hardcode_automatic_CXX=no |
| 9018 | module_cmds_CXX= |
| 9019 | module_expsym_cmds_CXX= |
| 9020 | link_all_deplibs_CXX=unknown |
| 9021 | old_archive_cmds_CXX=$old_archive_cmds |
| 9022 | no_undefined_flag_CXX= |
| 9023 | whole_archive_flag_spec_CXX= |
| 9024 | enable_shared_with_static_runtimes_CXX=no |
| 9025 | |
| 9026 | # Dependencies to place before and after the object being linked: |
| 9027 | predep_objects_CXX= |
| 9028 | postdep_objects_CXX= |
| 9029 | predeps_CXX= |
| 9030 | postdeps_CXX= |
| 9031 | compiler_lib_search_path_CXX= |
| 9032 | |
| 9033 | # Source file extension for C++ test sources. |
| 9034 | ac_ext=cc |
| 9035 | |
| 9036 | # Object file extension for compiled C++ test sources. |
| 9037 | objext=o |
| 9038 | objext_CXX=$objext |
| 9039 | |
| 9040 | # Code to be used in simple compile tests |
| 9041 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 9042 | |
| 9043 | # Code to be used in simple link tests |
| 9044 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
| 9045 | |
| 9046 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 9047 | |
| 9048 | # If no C compiler was specified, use CC. |
| 9049 | LTCC=${LTCC-"$CC"} |
| 9050 | |
| 9051 | # Allow CC to be a program name with arguments. |
| 9052 | compiler=$CC |
| 9053 | |
| 9054 | |
| 9055 | # Allow CC to be a program name with arguments. |
| 9056 | lt_save_CC=$CC |
| 9057 | lt_save_LD=$LD |
| 9058 | lt_save_GCC=$GCC |
| 9059 | GCC=$GXX |
| 9060 | lt_save_with_gnu_ld=$with_gnu_ld |
| 9061 | lt_save_path_LD=$lt_cv_path_LD |
| 9062 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 9063 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 9064 | else |
| 9065 | unset lt_cv_prog_gnu_ld |
| 9066 | fi |
| 9067 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 9068 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 9069 | else |
| 9070 | unset lt_cv_path_LD |
| 9071 | fi |
| 9072 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 9073 | CC=${CXX-"c++"} |
| 9074 | compiler=$CC |
| 9075 | compiler_CXX=$CC |
| 9076 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 9077 | |
| 9078 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 9079 | # no_builtin_flag separately |
| 9080 | if test "$GXX" = yes; then |
| 9081 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 9082 | else |
| 9083 | lt_prog_compiler_no_builtin_flag_CXX= |
| 9084 | fi |
| 9085 | |
| 9086 | if test "$GXX" = yes; then |
| 9087 | # Set up default GNU C++ configuration |
| 9088 | |
| 9089 | |
| 9090 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 9091 | if test "${with_gnu_ld+set}" = set; then |
| 9092 | withval="$with_gnu_ld" |
| 9093 | test "$withval" = no || with_gnu_ld=yes |
| 9094 | else |
| 9095 | with_gnu_ld=no |
| 9096 | fi; |
| 9097 | ac_prog=ld |
| 9098 | if test "$GCC" = yes; then |
| 9099 | # Check if gcc -print-prog-name=ld gives a path. |
| 9100 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 9101 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 9102 | case $host in |
| 9103 | *-*-mingw*) |
| 9104 | # gcc leaves a trailing carriage return which upsets mingw |
| 9105 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 9106 | *) |
| 9107 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 9108 | esac |
| 9109 | case $ac_prog in |
| 9110 | # Accept absolute paths. |
| 9111 | [\\/]* | ?:[\\/]*) |
| 9112 | re_direlt='/[^/][^/]*/\.\./' |
| 9113 | # Canonicalize the path of ld |
| 9114 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 9115 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 9116 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 9117 | done |
| 9118 | test -z "$LD" && LD="$ac_prog" |
| 9119 | ;; |
| 9120 | "") |
| 9121 | # If it fails, then pretend we aren't using GCC. |
| 9122 | ac_prog=ld |
| 9123 | ;; |
| 9124 | *) |
| 9125 | # If it is relative, then search for the first ld in PATH. |
| 9126 | with_gnu_ld=unknown |
| 9127 | ;; |
| 9128 | esac |
| 9129 | elif test "$with_gnu_ld" = yes; then |
| 9130 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 9131 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 9132 | else |
| 9133 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 9134 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 9135 | fi |
| 9136 | if test "${lt_cv_path_LD+set}" = set; then |
| 9137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9138 | else |
| 9139 | if test -z "$LD"; then |
| 9140 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 9141 | for ac_dir in $PATH; do |
| 9142 | IFS="$lt_save_ifs" |
| 9143 | test -z "$ac_dir" && ac_dir=. |
| 9144 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 9145 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 9146 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 9147 | # but apparently some GNU ld's only accept -v. |
| 9148 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 9149 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 9150 | *GNU* | *'with BFD'*) |
| 9151 | test "$with_gnu_ld" != no && break |
| 9152 | ;; |
| 9153 | *) |
| 9154 | test "$with_gnu_ld" != yes && break |
| 9155 | ;; |
| 9156 | esac |
| 9157 | fi |
| 9158 | done |
| 9159 | IFS="$lt_save_ifs" |
| 9160 | else |
| 9161 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 9162 | fi |
| 9163 | fi |
| 9164 | |
| 9165 | LD="$lt_cv_path_LD" |
| 9166 | if test -n "$LD"; then |
| 9167 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 9168 | echo "${ECHO_T}$LD" >&6 |
| 9169 | else |
| 9170 | echo "$as_me:$LINENO: result: no" >&5 |
| 9171 | echo "${ECHO_T}no" >&6 |
| 9172 | fi |
| 9173 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 9174 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 9175 | { (exit 1); exit 1; }; } |
| 9176 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 9177 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 9178 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 9179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9180 | else |
| 9181 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 9182 | case `"$LD" -v 2>&1 </dev/null` in |
| 9183 | *GNU* | *'with BFD'*) |
| 9184 | lt_cv_prog_gnu_ld=yes |
| 9185 | ;; |
| 9186 | *) |
| 9187 | lt_cv_prog_gnu_ld=no |
| 9188 | ;; |
| 9189 | esac |
| 9190 | fi |
| 9191 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 9192 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 9193 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 9194 | |
| 9195 | |
| 9196 | |
| 9197 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 9198 | # archiving commands below assume that GNU ld is being used. |
| 9199 | if test "$with_gnu_ld" = yes; then |
| 9200 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9201 | 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' |
| 9202 | |
| 9203 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 9204 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 9205 | |
| 9206 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 9207 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 9208 | # investigate it a little bit more. (MM) |
| 9209 | wlarc='${wl}' |
| 9210 | |
| 9211 | # ancient GNU ld didn't support --whole-archive et. al. |
| 9212 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 9213 | grep 'no-whole-archive' > /dev/null; then |
| 9214 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 9215 | else |
| 9216 | whole_archive_flag_spec_CXX= |
| 9217 | fi |
| 9218 | else |
| 9219 | with_gnu_ld=no |
| 9220 | wlarc= |
| 9221 | |
| 9222 | # A generic and very simple default shared library creation |
| 9223 | # command for GNU C++ for the case where it uses the native |
| 9224 | # linker, instead of GNU ld. If possible, this setting should |
| 9225 | # overridden to take advantage of the native linker features on |
| 9226 | # the platform it is being used on. |
| 9227 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 9228 | fi |
| 9229 | |
| 9230 | # Commands to make compiler produce verbose output that lists |
| 9231 | # what "hidden" libraries, object files and flags are used when |
| 9232 | # linking a shared library. |
| 9233 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 9234 | |
| 9235 | else |
| 9236 | GXX=no |
| 9237 | with_gnu_ld=no |
| 9238 | wlarc= |
| 9239 | fi |
| 9240 | |
| 9241 | # PORTME: fill in a description of your system's C++ link characteristics |
| 9242 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 9243 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 9244 | ld_shlibs_CXX=yes |
| 9245 | case $host_os in |
| 9246 | aix3*) |
| 9247 | # FIXME: insert proper C++ library support |
| 9248 | ld_shlibs_CXX=no |
| 9249 | ;; |
| 9250 | aix4* | aix5*) |
| 9251 | if test "$host_cpu" = ia64; then |
| 9252 | # On IA64, the linker does run time linking by default, so we don't |
| 9253 | # have to do anything special. |
| 9254 | aix_use_runtimelinking=no |
| 9255 | exp_sym_flag='-Bexport' |
| 9256 | no_entry_flag="" |
| 9257 | else |
| 9258 | aix_use_runtimelinking=no |
| 9259 | |
| 9260 | # Test if we are trying to use run time linking or normal |
| 9261 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9262 | # need to do runtime linking. |
| 9263 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 9264 | for ld_flag in $LDFLAGS; do |
| 9265 | case $ld_flag in |
| 9266 | *-brtl*) |
| 9267 | aix_use_runtimelinking=yes |
| 9268 | break |
| 9269 | ;; |
| 9270 | esac |
| 9271 | done |
| 9272 | esac |
| 9273 | |
| 9274 | exp_sym_flag='-bexport' |
| 9275 | no_entry_flag='-bnoentry' |
| 9276 | fi |
| 9277 | |
| 9278 | # When large executables or shared objects are built, AIX ld can |
| 9279 | # have problems creating the table of contents. If linking a library |
| 9280 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 9281 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9282 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9283 | |
| 9284 | archive_cmds_CXX='' |
| 9285 | hardcode_direct_CXX=yes |
| 9286 | hardcode_libdir_separator_CXX=':' |
| 9287 | link_all_deplibs_CXX=yes |
| 9288 | |
| 9289 | if test "$GXX" = yes; then |
| 9290 | case $host_os in aix4.012|aix4.012.*) |
| 9291 | # We only want to do this on AIX 4.2 and lower, the check |
| 9292 | # below for broken collect2 doesn't work under 4.3+ |
| 9293 | collect2name=`${CC} -print-prog-name=collect2` |
| 9294 | if test -f "$collect2name" && \ |
| 9295 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 9296 | then |
| 9297 | # We have reworked collect2 |
| 9298 | hardcode_direct_CXX=yes |
| 9299 | else |
| 9300 | # We have old collect2 |
| 9301 | hardcode_direct_CXX=unsupported |
| 9302 | # It fails to find uninstalled libraries when the uninstalled |
| 9303 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 9304 | # to unsupported forces relinking |
| 9305 | hardcode_minus_L_CXX=yes |
| 9306 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 9307 | hardcode_libdir_separator_CXX= |
| 9308 | fi |
| 9309 | esac |
| 9310 | shared_flag='-shared' |
| 9311 | else |
| 9312 | # not using gcc |
| 9313 | if test "$host_cpu" = ia64; then |
| 9314 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9315 | # chokes on -Wl,-G. The following line is correct: |
| 9316 | shared_flag='-G' |
| 9317 | else |
| 9318 | if test "$aix_use_runtimelinking" = yes; then |
| 9319 | shared_flag='${wl}-G' |
| 9320 | else |
| 9321 | shared_flag='${wl}-bM:SRE' |
| 9322 | fi |
| 9323 | fi |
| 9324 | fi |
| 9325 | |
| 9326 | # It seems that -bexpall does not export symbols beginning with |
| 9327 | # underscore (_), so it is better to generate a list of symbols to export. |
| 9328 | always_export_symbols_CXX=yes |
| 9329 | if test "$aix_use_runtimelinking" = yes; then |
| 9330 | # Warning - without using the other runtime loading flags (-brtl), |
| 9331 | # -berok will link without error, but may produce a broken library. |
| 9332 | allow_undefined_flag_CXX='-berok' |
| 9333 | # Determine the default libpath from the value encoded in an empty executable. |
| 9334 | cat >conftest.$ac_ext <<_ACEOF |
| 9335 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9336 | /* confdefs.h. */ |
| 9337 | _ACEOF |
| 9338 | cat confdefs.h >>conftest.$ac_ext |
| 9339 | cat >>conftest.$ac_ext <<_ACEOF |
| 9340 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9341 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9342 | int |
| 9343 | main () |
| 9344 | { |
| 9345 | |
| 9346 | ; |
| 9347 | return 0; |
| 9348 | } |
| 9349 | _ACEOF |
| 9350 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9352 | (eval $ac_link) 2>&5 |
| 9353 | ac_status=$? |
| 9354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9355 | (exit $ac_status); } && |
| 9356 | { ac_try='test -s conftest$ac_exeext' |
| 9357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9358 | (eval $ac_try) 2>&5 |
| 9359 | ac_status=$? |
| 9360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9361 | (exit $ac_status); }; }; then |
| 9362 | |
| 9363 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 9364 | }'` |
| 9365 | # Check for a 64-bit object if we didn't find anything. |
| 9366 | 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; } |
| 9367 | }'`; fi |
| 9368 | else |
| 9369 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9370 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9371 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9372 | fi |
| 9373 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9374 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9375 | |
| 9376 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9377 | |
| 9378 | 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" |
| 9379 | else |
| 9380 | if test "$host_cpu" = ia64; then |
| 9381 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 9382 | allow_undefined_flag_CXX="-z nodefs" |
| 9383 | 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" |
| 9384 | else |
| 9385 | # Determine the default libpath from the value encoded in an empty executable. |
| 9386 | cat >conftest.$ac_ext <<_ACEOF |
| 9387 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9388 | /* confdefs.h. */ |
| 9389 | _ACEOF |
| 9390 | cat confdefs.h >>conftest.$ac_ext |
| 9391 | cat >>conftest.$ac_ext <<_ACEOF |
| 9392 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9393 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9394 | int |
| 9395 | main () |
| 9396 | { |
| 9397 | |
| 9398 | ; |
| 9399 | return 0; |
| 9400 | } |
| 9401 | _ACEOF |
| 9402 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9403 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9404 | (eval $ac_link) 2>&5 |
| 9405 | ac_status=$? |
| 9406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9407 | (exit $ac_status); } && |
| 9408 | { ac_try='test -s conftest$ac_exeext' |
| 9409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9410 | (eval $ac_try) 2>&5 |
| 9411 | ac_status=$? |
| 9412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9413 | (exit $ac_status); }; }; then |
| 9414 | |
| 9415 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 9416 | }'` |
| 9417 | # Check for a 64-bit object if we didn't find anything. |
| 9418 | 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; } |
| 9419 | }'`; fi |
| 9420 | else |
| 9421 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9423 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9424 | fi |
| 9425 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9426 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9427 | |
| 9428 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9429 | # Warning - without using the other run time loading flags, |
| 9430 | # -berok will link without error, but may produce a broken library. |
| 9431 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 9432 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 9433 | # -bexpall does not export symbols beginning with underscore (_) |
| 9434 | always_export_symbols_CXX=yes |
| 9435 | # Exported symbols can be pulled into shared objects from archives |
| 9436 | whole_archive_flag_spec_CXX=' ' |
| 9437 | archive_cmds_need_lc_CXX=yes |
| 9438 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 9439 | 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' |
| 9440 | fi |
| 9441 | fi |
| 9442 | ;; |
| 9443 | chorus*) |
| 9444 | case $cc_basename in |
| 9445 | *) |
| 9446 | # FIXME: insert proper C++ library support |
| 9447 | ld_shlibs_CXX=no |
| 9448 | ;; |
| 9449 | esac |
| 9450 | ;; |
| 9451 | |
| 9452 | cygwin* | mingw* | pw32*) |
| 9453 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 9454 | # as there is no search path for DLLs. |
| 9455 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 9456 | allow_undefined_flag_CXX=unsupported |
| 9457 | always_export_symbols_CXX=no |
| 9458 | enable_shared_with_static_runtimes_CXX=yes |
| 9459 | |
| 9460 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 9461 | 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' |
| 9462 | # If the export-symbols file already is a .def file (1st line |
| 9463 | # is EXPORTS), use it as is; otherwise, prepend... |
| 9464 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9465 | cp $export_symbols $output_objdir/$soname.def; |
| 9466 | else |
| 9467 | echo EXPORTS > $output_objdir/$soname.def; |
| 9468 | cat $export_symbols >> $output_objdir/$soname.def; |
| 9469 | fi~ |
| 9470 | $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' |
| 9471 | else |
| 9472 | ld_shlibs_CXX=no |
| 9473 | fi |
| 9474 | ;; |
| 9475 | |
| 9476 | darwin* | rhapsody*) |
| 9477 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 9478 | archive_cmds_need_lc_CXX=no |
| 9479 | case "$host_os" in |
| 9480 | rhapsody* | darwin1.[012]) |
| 9481 | allow_undefined_flag_CXX='-undefined suppress' |
| 9482 | ;; |
| 9483 | *) # Darwin 1.3 on |
| 9484 | test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
| 9485 | ;; |
| 9486 | esac |
| 9487 | lt_int_apple_cc_single_mod=no |
| 9488 | output_verbose_link_cmd='echo' |
| 9489 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 9490 | lt_int_apple_cc_single_mod=yes |
| 9491 | fi |
| 9492 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 9493 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 9494 | else |
| 9495 | 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' |
| 9496 | fi |
| 9497 | module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
| 9498 | |
| 9499 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 9500 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 9501 | 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}' |
| 9502 | else |
| 9503 | 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}' |
| 9504 | fi |
| 9505 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 9506 | hardcode_direct_CXX=no |
| 9507 | hardcode_automatic_CXX=yes |
| 9508 | hardcode_shlibpath_var_CXX=unsupported |
| 9509 | whole_archive_flag_spec_CXX='-all_load $convenience' |
| 9510 | link_all_deplibs_CXX=yes |
| 9511 | fi |
| 9512 | ;; |
| 9513 | |
| 9514 | dgux*) |
| 9515 | case $cc_basename in |
| 9516 | ec++) |
| 9517 | # FIXME: insert proper C++ library support |
| 9518 | ld_shlibs_CXX=no |
| 9519 | ;; |
| 9520 | ghcx) |
| 9521 | # Green Hills C++ Compiler |
| 9522 | # FIXME: insert proper C++ library support |
| 9523 | ld_shlibs_CXX=no |
| 9524 | ;; |
| 9525 | *) |
| 9526 | # FIXME: insert proper C++ library support |
| 9527 | ld_shlibs_CXX=no |
| 9528 | ;; |
| 9529 | esac |
| 9530 | ;; |
| 9531 | freebsd12*) |
| 9532 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 9533 | ld_shlibs_CXX=no |
| 9534 | ;; |
| 9535 | freebsd-elf*) |
| 9536 | archive_cmds_need_lc_CXX=no |
| 9537 | ;; |
| 9538 | freebsd*) |
| 9539 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 9540 | # conventions |
| 9541 | ld_shlibs_CXX=yes |
| 9542 | ;; |
| 9543 | gnu*) |
| 9544 | ;; |
| 9545 | hpux9*) |
| 9546 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 9547 | hardcode_libdir_separator_CXX=: |
| 9548 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 9549 | hardcode_direct_CXX=yes |
| 9550 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 9551 | # but as the default |
| 9552 | # location of the library. |
| 9553 | |
| 9554 | case $cc_basename in |
| 9555 | CC) |
| 9556 | # FIXME: insert proper C++ library support |
| 9557 | ld_shlibs_CXX=no |
| 9558 | ;; |
| 9559 | aCC) |
| 9560 | 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' |
| 9561 | # Commands to make compiler produce verbose output that lists |
| 9562 | # what "hidden" libraries, object files and flags are used when |
| 9563 | # linking a shared library. |
| 9564 | # |
| 9565 | # There doesn't appear to be a way to prevent this compiler from |
| 9566 | # explicitly linking system object files so we need to strip them |
| 9567 | # from the output so that they don't get included in the library |
| 9568 | # dependencies. |
| 9569 | 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' |
| 9570 | ;; |
| 9571 | *) |
| 9572 | if test "$GXX" = yes; then |
| 9573 | 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' |
| 9574 | else |
| 9575 | # FIXME: insert proper C++ library support |
| 9576 | ld_shlibs_CXX=no |
| 9577 | fi |
| 9578 | ;; |
| 9579 | esac |
| 9580 | ;; |
| 9581 | hpux10*|hpux11*) |
| 9582 | if test $with_gnu_ld = no; then |
| 9583 | case "$host_cpu" in |
| 9584 | hppa*64*) |
| 9585 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 9586 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
| 9587 | hardcode_libdir_separator_CXX=: |
| 9588 | ;; |
| 9589 | ia64*) |
| 9590 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 9591 | ;; |
| 9592 | *) |
| 9593 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 9594 | hardcode_libdir_separator_CXX=: |
| 9595 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 9596 | ;; |
| 9597 | esac |
| 9598 | fi |
| 9599 | case "$host_cpu" in |
| 9600 | hppa*64*) |
| 9601 | hardcode_direct_CXX=no |
| 9602 | hardcode_shlibpath_var_CXX=no |
| 9603 | ;; |
| 9604 | ia64*) |
| 9605 | hardcode_direct_CXX=no |
| 9606 | hardcode_shlibpath_var_CXX=no |
| 9607 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 9608 | # but as the default |
| 9609 | # location of the library. |
| 9610 | ;; |
| 9611 | *) |
| 9612 | hardcode_direct_CXX=yes |
| 9613 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 9614 | # but as the default |
| 9615 | # location of the library. |
| 9616 | ;; |
| 9617 | esac |
| 9618 | |
| 9619 | case $cc_basename in |
| 9620 | CC) |
| 9621 | # FIXME: insert proper C++ library support |
| 9622 | ld_shlibs_CXX=no |
| 9623 | ;; |
| 9624 | aCC) |
| 9625 | case "$host_cpu" in |
| 9626 | hppa*64*|ia64*) |
| 9627 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 9628 | ;; |
| 9629 | *) |
| 9630 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 9631 | ;; |
| 9632 | esac |
| 9633 | # Commands to make compiler produce verbose output that lists |
| 9634 | # what "hidden" libraries, object files and flags are used when |
| 9635 | # linking a shared library. |
| 9636 | # |
| 9637 | # There doesn't appear to be a way to prevent this compiler from |
| 9638 | # explicitly linking system object files so we need to strip them |
| 9639 | # from the output so that they don't get included in the library |
| 9640 | # dependencies. |
| 9641 | 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' |
| 9642 | ;; |
| 9643 | *) |
| 9644 | if test "$GXX" = yes; then |
| 9645 | if test $with_gnu_ld = no; then |
| 9646 | case "$host_cpu" in |
| 9647 | ia64*|hppa*64*) |
| 9648 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 9649 | ;; |
| 9650 | *) |
| 9651 | 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' |
| 9652 | ;; |
| 9653 | esac |
| 9654 | fi |
| 9655 | else |
| 9656 | # FIXME: insert proper C++ library support |
| 9657 | ld_shlibs_CXX=no |
| 9658 | fi |
| 9659 | ;; |
| 9660 | esac |
| 9661 | ;; |
| 9662 | irix5* | irix6*) |
| 9663 | case $cc_basename in |
| 9664 | CC) |
| 9665 | # SGI C++ |
| 9666 | 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' |
| 9667 | |
| 9668 | # Archives containing C++ object files must be created using |
| 9669 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 9670 | # necessary to make sure instantiated templates are included |
| 9671 | # in the archive. |
| 9672 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 9673 | ;; |
| 9674 | *) |
| 9675 | if test "$GXX" = yes; then |
| 9676 | if test "$with_gnu_ld" = no; then |
| 9677 | 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' |
| 9678 | else |
| 9679 | 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' |
| 9680 | fi |
| 9681 | fi |
| 9682 | link_all_deplibs_CXX=yes |
| 9683 | ;; |
| 9684 | esac |
| 9685 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 9686 | hardcode_libdir_separator_CXX=: |
| 9687 | ;; |
| 9688 | linux*) |
| 9689 | case $cc_basename in |
| 9690 | KCC) |
| 9691 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 9692 | |
| 9693 | # KCC will only create a shared library if the output file |
| 9694 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 9695 | # to its proper name (with version) after linking. |
| 9696 | 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' |
| 9697 | 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' |
| 9698 | # Commands to make compiler produce verbose output that lists |
| 9699 | # what "hidden" libraries, object files and flags are used when |
| 9700 | # linking a shared library. |
| 9701 | # |
| 9702 | # There doesn't appear to be a way to prevent this compiler from |
| 9703 | # explicitly linking system object files so we need to strip them |
| 9704 | # from the output so that they don't get included in the library |
| 9705 | # dependencies. |
| 9706 | 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' |
| 9707 | |
| 9708 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 9709 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 9710 | |
| 9711 | # Archives containing C++ object files must be created using |
| 9712 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 9713 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 9714 | ;; |
| 9715 | icpc) |
| 9716 | # Intel C++ |
| 9717 | with_gnu_ld=yes |
| 9718 | archive_cmds_need_lc_CXX=no |
| 9719 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9720 | 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' |
| 9721 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 9722 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 9723 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 9724 | ;; |
| 9725 | cxx) |
| 9726 | # Compaq C++ |
| 9727 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9728 | 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' |
| 9729 | |
| 9730 | runpath_var=LD_RUN_PATH |
| 9731 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 9732 | hardcode_libdir_separator_CXX=: |
| 9733 | |
| 9734 | # Commands to make compiler produce verbose output that lists |
| 9735 | # what "hidden" libraries, object files and flags are used when |
| 9736 | # linking a shared library. |
| 9737 | # |
| 9738 | # There doesn't appear to be a way to prevent this compiler from |
| 9739 | # explicitly linking system object files so we need to strip them |
| 9740 | # from the output so that they don't get included in the library |
| 9741 | # dependencies. |
| 9742 | 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' |
| 9743 | ;; |
| 9744 | esac |
| 9745 | ;; |
| 9746 | lynxos*) |
| 9747 | # FIXME: insert proper C++ library support |
| 9748 | ld_shlibs_CXX=no |
| 9749 | ;; |
| 9750 | m88k*) |
| 9751 | # FIXME: insert proper C++ library support |
| 9752 | ld_shlibs_CXX=no |
| 9753 | ;; |
| 9754 | mvs*) |
| 9755 | case $cc_basename in |
| 9756 | cxx) |
| 9757 | # FIXME: insert proper C++ library support |
| 9758 | ld_shlibs_CXX=no |
| 9759 | ;; |
| 9760 | *) |
| 9761 | # FIXME: insert proper C++ library support |
| 9762 | ld_shlibs_CXX=no |
| 9763 | ;; |
| 9764 | esac |
| 9765 | ;; |
| 9766 | netbsd*) |
| 9767 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9768 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 9769 | wlarc= |
| 9770 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 9771 | hardcode_direct_CXX=yes |
| 9772 | hardcode_shlibpath_var_CXX=no |
| 9773 | fi |
| 9774 | # Workaround some broken pre-1.5 toolchains |
| 9775 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 9776 | ;; |
| 9777 | osf3*) |
| 9778 | case $cc_basename in |
| 9779 | KCC) |
| 9780 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 9781 | |
| 9782 | # KCC will only create a shared library if the output file |
| 9783 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 9784 | # to its proper name (with version) after linking. |
| 9785 | 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' |
| 9786 | |
| 9787 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 9788 | hardcode_libdir_separator_CXX=: |
| 9789 | |
| 9790 | # Archives containing C++ object files must be created using |
| 9791 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 9792 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 9793 | |
| 9794 | ;; |
| 9795 | RCC) |
| 9796 | # Rational C++ 2.4.1 |
| 9797 | # FIXME: insert proper C++ library support |
| 9798 | ld_shlibs_CXX=no |
| 9799 | ;; |
| 9800 | cxx) |
| 9801 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 9802 | 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' |
| 9803 | |
| 9804 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 9805 | hardcode_libdir_separator_CXX=: |
| 9806 | |
| 9807 | # Commands to make compiler produce verbose output that lists |
| 9808 | # what "hidden" libraries, object files and flags are used when |
| 9809 | # linking a shared library. |
| 9810 | # |
| 9811 | # There doesn't appear to be a way to prevent this compiler from |
| 9812 | # explicitly linking system object files so we need to strip them |
| 9813 | # from the output so that they don't get included in the library |
| 9814 | # dependencies. |
| 9815 | 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' |
| 9816 | ;; |
| 9817 | *) |
| 9818 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 9819 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 9820 | 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' |
| 9821 | |
| 9822 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 9823 | hardcode_libdir_separator_CXX=: |
| 9824 | |
| 9825 | # Commands to make compiler produce verbose output that lists |
| 9826 | # what "hidden" libraries, object files and flags are used when |
| 9827 | # linking a shared library. |
| 9828 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 9829 | |
| 9830 | else |
| 9831 | # FIXME: insert proper C++ library support |
| 9832 | ld_shlibs_CXX=no |
| 9833 | fi |
| 9834 | ;; |
| 9835 | esac |
| 9836 | ;; |
| 9837 | osf4* | osf5*) |
| 9838 | case $cc_basename in |
| 9839 | KCC) |
| 9840 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 9841 | |
| 9842 | # KCC will only create a shared library if the output file |
| 9843 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 9844 | # to its proper name (with version) after linking. |
| 9845 | 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' |
| 9846 | |
| 9847 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 9848 | hardcode_libdir_separator_CXX=: |
| 9849 | |
| 9850 | # Archives containing C++ object files must be created using |
| 9851 | # the KAI C++ compiler. |
| 9852 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 9853 | ;; |
| 9854 | RCC) |
| 9855 | # Rational C++ 2.4.1 |
| 9856 | # FIXME: insert proper C++ library support |
| 9857 | ld_shlibs_CXX=no |
| 9858 | ;; |
| 9859 | cxx) |
| 9860 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 9861 | 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' |
| 9862 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 9863 | echo "-hidden">> $lib.exp~ |
| 9864 | $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~ |
| 9865 | $rm $lib.exp' |
| 9866 | |
| 9867 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 9868 | hardcode_libdir_separator_CXX=: |
| 9869 | |
| 9870 | # Commands to make compiler produce verbose output that lists |
| 9871 | # what "hidden" libraries, object files and flags are used when |
| 9872 | # linking a shared library. |
| 9873 | # |
| 9874 | # There doesn't appear to be a way to prevent this compiler from |
| 9875 | # explicitly linking system object files so we need to strip them |
| 9876 | # from the output so that they don't get included in the library |
| 9877 | # dependencies. |
| 9878 | 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' |
| 9879 | ;; |
| 9880 | *) |
| 9881 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 9882 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 9883 | 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' |
| 9884 | |
| 9885 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 9886 | hardcode_libdir_separator_CXX=: |
| 9887 | |
| 9888 | # Commands to make compiler produce verbose output that lists |
| 9889 | # what "hidden" libraries, object files and flags are used when |
| 9890 | # linking a shared library. |
| 9891 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 9892 | |
| 9893 | else |
| 9894 | # FIXME: insert proper C++ library support |
| 9895 | ld_shlibs_CXX=no |
| 9896 | fi |
| 9897 | ;; |
| 9898 | esac |
| 9899 | ;; |
| 9900 | psos*) |
| 9901 | # FIXME: insert proper C++ library support |
| 9902 | ld_shlibs_CXX=no |
| 9903 | ;; |
| 9904 | sco*) |
| 9905 | archive_cmds_need_lc_CXX=no |
| 9906 | case $cc_basename in |
| 9907 | CC) |
| 9908 | # FIXME: insert proper C++ library support |
| 9909 | ld_shlibs_CXX=no |
| 9910 | ;; |
| 9911 | *) |
| 9912 | # FIXME: insert proper C++ library support |
| 9913 | ld_shlibs_CXX=no |
| 9914 | ;; |
| 9915 | esac |
| 9916 | ;; |
| 9917 | sunos4*) |
| 9918 | case $cc_basename in |
| 9919 | CC) |
| 9920 | # Sun C++ 4.x |
| 9921 | # FIXME: insert proper C++ library support |
| 9922 | ld_shlibs_CXX=no |
| 9923 | ;; |
| 9924 | lcc) |
| 9925 | # Lucid |
| 9926 | # FIXME: insert proper C++ library support |
| 9927 | ld_shlibs_CXX=no |
| 9928 | ;; |
| 9929 | *) |
| 9930 | # FIXME: insert proper C++ library support |
| 9931 | ld_shlibs_CXX=no |
| 9932 | ;; |
| 9933 | esac |
| 9934 | ;; |
| 9935 | solaris*) |
| 9936 | case $cc_basename in |
| 9937 | CC) |
| 9938 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 9939 | no_undefined_flag_CXX=' -zdefs' |
| 9940 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 9941 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 9942 | $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' |
| 9943 | |
| 9944 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 9945 | hardcode_shlibpath_var_CXX=no |
| 9946 | case $host_os in |
| 9947 | solaris2.0-5 | solaris2.0-5.*) ;; |
| 9948 | *) |
| 9949 | # The C++ compiler is used as linker so we must use $wl |
| 9950 | # flag to pass the commands to the underlying system |
| 9951 | # linker. |
| 9952 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 9953 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 9954 | ;; |
| 9955 | esac |
| 9956 | link_all_deplibs_CXX=yes |
| 9957 | |
| 9958 | # Commands to make compiler produce verbose output that lists |
| 9959 | # what "hidden" libraries, object files and flags are used when |
| 9960 | # linking a shared library. |
| 9961 | # |
| 9962 | # There doesn't appear to be a way to prevent this compiler from |
| 9963 | # explicitly linking system object files so we need to strip them |
| 9964 | # from the output so that they don't get included in the library |
| 9965 | # dependencies. |
| 9966 | 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' |
| 9967 | |
| 9968 | # Archives containing C++ object files must be created using |
| 9969 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 9970 | # necessary to make sure instantiated templates are included |
| 9971 | # in the archive. |
| 9972 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 9973 | ;; |
| 9974 | gcx) |
| 9975 | # Green Hills C++ Compiler |
| 9976 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 9977 | |
| 9978 | # The C++ compiler must be used to create the archive. |
| 9979 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 9980 | ;; |
| 9981 | *) |
| 9982 | # GNU C++ compiler with Solaris linker |
| 9983 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 9984 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 9985 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
| 9986 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 9987 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 9988 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 9989 | |
| 9990 | # Commands to make compiler produce verbose output that lists |
| 9991 | # what "hidden" libraries, object files and flags are used when |
| 9992 | # linking a shared library. |
| 9993 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 9994 | else |
| 9995 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 9996 | # platform. |
| 9997 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 9998 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 9999 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 10000 | |
| 10001 | # Commands to make compiler produce verbose output that lists |
| 10002 | # what "hidden" libraries, object files and flags are used when |
| 10003 | # linking a shared library. |
| 10004 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 10005 | fi |
| 10006 | |
| 10007 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 10008 | fi |
| 10009 | ;; |
| 10010 | esac |
| 10011 | ;; |
| 10012 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 10013 | archive_cmds_need_lc_CXX=no |
| 10014 | ;; |
| 10015 | tandem*) |
| 10016 | case $cc_basename in |
| 10017 | NCC) |
| 10018 | # NonStop-UX NCC 3.20 |
| 10019 | # FIXME: insert proper C++ library support |
| 10020 | ld_shlibs_CXX=no |
| 10021 | ;; |
| 10022 | *) |
| 10023 | # FIXME: insert proper C++ library support |
| 10024 | ld_shlibs_CXX=no |
| 10025 | ;; |
| 10026 | esac |
| 10027 | ;; |
| 10028 | vxworks*) |
| 10029 | # FIXME: insert proper C++ library support |
| 10030 | ld_shlibs_CXX=no |
| 10031 | ;; |
| 10032 | *) |
| 10033 | # FIXME: insert proper C++ library support |
| 10034 | ld_shlibs_CXX=no |
| 10035 | ;; |
| 10036 | esac |
| 10037 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 10038 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 10039 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 10040 | |
| 10041 | GCC_CXX="$GXX" |
| 10042 | LD_CXX="$LD" |
| 10043 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10044 | |
| 10045 | cat > conftest.$ac_ext <<EOF |
| 10046 | class Foo |
| 10047 | { |
| 10048 | public: |
| 10049 | Foo (void) { a = 0; } |
| 10050 | private: |
| 10051 | int a; |
| 10052 | }; |
| 10053 | EOF |
| 10054 | |
| 10055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10056 | (eval $ac_compile) 2>&5 |
| 10057 | ac_status=$? |
| 10058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10059 | (exit $ac_status); }; then |
| 10060 | # Parse the compiler output and extract the necessary |
| 10061 | # objects, libraries and library flags. |
| 10062 | |
| 10063 | # Sentinel used to keep track of whether or not we are before |
| 10064 | # the conftest object file. |
| 10065 | pre_test_object_deps_done=no |
| 10066 | |
| 10067 | # The `*' in the case matches for architectures that use `case' in |
| 10068 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 10069 | # eval without this substitution. |
| 10070 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
| 10071 | |
| 10072 | for p in `eval $output_verbose_link_cmd`; do |
| 10073 | case $p in |
| 10074 | |
| 10075 | -L* | -R* | -l*) |
| 10076 | # Some compilers place space between "-{L,R}" and the path. |
| 10077 | # Remove the space. |
| 10078 | if test $p = "-L" \ |
| 10079 | || test $p = "-R"; then |
| 10080 | prev=$p |
| 10081 | continue |
| 10082 | else |
| 10083 | prev= |
| 10084 | fi |
| 10085 | |
| 10086 | if test "$pre_test_object_deps_done" = no; then |
| 10087 | case $p in |
| 10088 | -L* | -R*) |
| 10089 | # Internal compiler library paths should come after those |
| 10090 | # provided the user. The postdeps already come after the |
| 10091 | # user supplied libs so there is no need to process them. |
| 10092 | if test -z "$compiler_lib_search_path_CXX"; then |
| 10093 | compiler_lib_search_path_CXX="${prev}${p}" |
| 10094 | else |
| 10095 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 10096 | fi |
| 10097 | ;; |
| 10098 | # The "-l" case would never come before the object being |
| 10099 | # linked, so don't bother handling this case. |
| 10100 | esac |
| 10101 | else |
| 10102 | if test -z "$postdeps_CXX"; then |
| 10103 | postdeps_CXX="${prev}${p}" |
| 10104 | else |
| 10105 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 10106 | fi |
| 10107 | fi |
| 10108 | ;; |
| 10109 | |
| 10110 | *.$objext) |
| 10111 | # This assumes that the test object file only shows up |
| 10112 | # once in the compiler output. |
| 10113 | if test "$p" = "conftest.$objext"; then |
| 10114 | pre_test_object_deps_done=yes |
| 10115 | continue |
| 10116 | fi |
| 10117 | |
| 10118 | if test "$pre_test_object_deps_done" = no; then |
| 10119 | if test -z "$predep_objects_CXX"; then |
| 10120 | predep_objects_CXX="$p" |
| 10121 | else |
| 10122 | predep_objects_CXX="$predep_objects_CXX $p" |
| 10123 | fi |
| 10124 | else |
| 10125 | if test -z "$postdep_objects_CXX"; then |
| 10126 | postdep_objects_CXX="$p" |
| 10127 | else |
| 10128 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 10129 | fi |
| 10130 | fi |
| 10131 | ;; |
| 10132 | |
| 10133 | *) ;; # Ignore the rest. |
| 10134 | |
| 10135 | esac |
| 10136 | done |
| 10137 | |
| 10138 | # Clean up. |
| 10139 | rm -f a.out a.exe |
| 10140 | else |
| 10141 | echo "libtool.m4: error: problem compiling CXX test program" |
| 10142 | fi |
| 10143 | |
| 10144 | $rm -f confest.$objext |
| 10145 | |
| 10146 | case " $postdeps_CXX " in |
| 10147 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 10148 | esac |
| 10149 | |
| 10150 | lt_prog_compiler_wl_CXX= |
| 10151 | lt_prog_compiler_pic_CXX= |
| 10152 | lt_prog_compiler_static_CXX= |
| 10153 | |
| 10154 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 10155 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 10156 | |
| 10157 | # C++ specific cases for pic, static, wl, etc. |
| 10158 | if test "$GXX" = yes; then |
| 10159 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10160 | lt_prog_compiler_static_CXX='-static' |
| 10161 | |
| 10162 | case $host_os in |
| 10163 | aix*) |
| 10164 | # All AIX code is PIC. |
| 10165 | if test "$host_cpu" = ia64; then |
| 10166 | # AIX 5 now supports IA64 processor |
| 10167 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10168 | fi |
| 10169 | ;; |
| 10170 | amigaos*) |
| 10171 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 10172 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 10173 | # like `-m68040'. |
| 10174 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 10175 | ;; |
| 10176 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 10177 | # PIC is the default for these OSes. |
| 10178 | ;; |
| 10179 | mingw* | os2* | pw32*) |
| 10180 | # This hack is so that the source file can tell whether it is being |
| 10181 | # built for inclusion in a dll (and should export symbols for example). |
| 10182 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 10183 | ;; |
| 10184 | darwin* | rhapsody*) |
| 10185 | # PIC is the default on this platform |
| 10186 | # Common symbols not allowed in MH_DYLIB files |
| 10187 | lt_prog_compiler_pic_CXX='-fno-common' |
| 10188 | ;; |
| 10189 | *djgpp*) |
| 10190 | # DJGPP does not support shared libraries at all |
| 10191 | lt_prog_compiler_pic_CXX= |
| 10192 | ;; |
| 10193 | sysv4*MP*) |
| 10194 | if test -d /usr/nec; then |
| 10195 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 10196 | fi |
| 10197 | ;; |
| 10198 | hpux*) |
| 10199 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 10200 | # not for PA HP-UX. |
| 10201 | case "$host_cpu" in |
| 10202 | hppa*64*|ia64*) |
| 10203 | ;; |
| 10204 | *) |
| 10205 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10206 | ;; |
| 10207 | esac |
| 10208 | ;; |
| 10209 | *) |
| 10210 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10211 | ;; |
| 10212 | esac |
| 10213 | else |
| 10214 | case $host_os in |
| 10215 | aix4* | aix5*) |
| 10216 | # All AIX code is PIC. |
| 10217 | if test "$host_cpu" = ia64; then |
| 10218 | # AIX 5 now supports IA64 processor |
| 10219 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10220 | else |
| 10221 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 10222 | fi |
| 10223 | ;; |
| 10224 | chorus*) |
| 10225 | case $cc_basename in |
| 10226 | cxch68) |
| 10227 | # Green Hills C++ Compiler |
| 10228 | # _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" |
| 10229 | ;; |
| 10230 | esac |
| 10231 | ;; |
| 10232 | dgux*) |
| 10233 | case $cc_basename in |
| 10234 | ec++) |
| 10235 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10236 | ;; |
| 10237 | ghcx) |
| 10238 | # Green Hills C++ Compiler |
| 10239 | lt_prog_compiler_pic_CXX='-pic' |
| 10240 | ;; |
| 10241 | *) |
| 10242 | ;; |
| 10243 | esac |
| 10244 | ;; |
| 10245 | freebsd*) |
| 10246 | # FreeBSD uses GNU C++ |
| 10247 | ;; |
| 10248 | hpux9* | hpux10* | hpux11*) |
| 10249 | case $cc_basename in |
| 10250 | CC) |
| 10251 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10252 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 10253 | if test "$host_cpu" != ia64; then |
| 10254 | lt_prog_compiler_pic_CXX='+Z' |
| 10255 | fi |
| 10256 | ;; |
| 10257 | aCC) |
| 10258 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10259 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 10260 | case "$host_cpu" in |
| 10261 | hppa*64*|ia64*) |
| 10262 | # +Z the default |
| 10263 | ;; |
| 10264 | *) |
| 10265 | lt_prog_compiler_pic_CXX='+Z' |
| 10266 | ;; |
| 10267 | esac |
| 10268 | ;; |
| 10269 | *) |
| 10270 | ;; |
| 10271 | esac |
| 10272 | ;; |
| 10273 | irix5* | irix6* | nonstopux*) |
| 10274 | case $cc_basename in |
| 10275 | CC) |
| 10276 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10277 | lt_prog_compiler_static_CXX='-non_shared' |
| 10278 | # CC pic flag -KPIC is the default. |
| 10279 | ;; |
| 10280 | *) |
| 10281 | ;; |
| 10282 | esac |
| 10283 | ;; |
| 10284 | linux*) |
| 10285 | case $cc_basename in |
| 10286 | KCC) |
| 10287 | # KAI C++ Compiler |
| 10288 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 10289 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10290 | ;; |
| 10291 | icpc) |
| 10292 | # Intel C++ |
| 10293 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10294 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10295 | lt_prog_compiler_static_CXX='-static' |
| 10296 | ;; |
| 10297 | cxx) |
| 10298 | # Compaq C++ |
| 10299 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 10300 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 10301 | lt_prog_compiler_pic_CXX= |
| 10302 | lt_prog_compiler_static_CXX='-non_shared' |
| 10303 | ;; |
| 10304 | *) |
| 10305 | ;; |
| 10306 | esac |
| 10307 | ;; |
| 10308 | lynxos*) |
| 10309 | ;; |
| 10310 | m88k*) |
| 10311 | ;; |
| 10312 | mvs*) |
| 10313 | case $cc_basename in |
| 10314 | cxx) |
| 10315 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 10316 | ;; |
| 10317 | *) |
| 10318 | ;; |
| 10319 | esac |
| 10320 | ;; |
| 10321 | netbsd*) |
| 10322 | ;; |
| 10323 | osf3* | osf4* | osf5*) |
| 10324 | case $cc_basename in |
| 10325 | KCC) |
| 10326 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 10327 | ;; |
| 10328 | RCC) |
| 10329 | # Rational C++ 2.4.1 |
| 10330 | lt_prog_compiler_pic_CXX='-pic' |
| 10331 | ;; |
| 10332 | cxx) |
| 10333 | # Digital/Compaq C++ |
| 10334 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10335 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 10336 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 10337 | lt_prog_compiler_pic_CXX= |
| 10338 | lt_prog_compiler_static_CXX='-non_shared' |
| 10339 | ;; |
| 10340 | *) |
| 10341 | ;; |
| 10342 | esac |
| 10343 | ;; |
| 10344 | psos*) |
| 10345 | ;; |
| 10346 | sco*) |
| 10347 | case $cc_basename in |
| 10348 | CC) |
| 10349 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10350 | ;; |
| 10351 | *) |
| 10352 | ;; |
| 10353 | esac |
| 10354 | ;; |
| 10355 | solaris*) |
| 10356 | case $cc_basename in |
| 10357 | CC) |
| 10358 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 10359 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10360 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10361 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 10362 | ;; |
| 10363 | gcx) |
| 10364 | # Green Hills C++ Compiler |
| 10365 | lt_prog_compiler_pic_CXX='-PIC' |
| 10366 | ;; |
| 10367 | *) |
| 10368 | ;; |
| 10369 | esac |
| 10370 | ;; |
| 10371 | sunos4*) |
| 10372 | case $cc_basename in |
| 10373 | CC) |
| 10374 | # Sun C++ 4.x |
| 10375 | lt_prog_compiler_pic_CXX='-pic' |
| 10376 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10377 | ;; |
| 10378 | lcc) |
| 10379 | # Lucid |
| 10380 | lt_prog_compiler_pic_CXX='-pic' |
| 10381 | ;; |
| 10382 | *) |
| 10383 | ;; |
| 10384 | esac |
| 10385 | ;; |
| 10386 | tandem*) |
| 10387 | case $cc_basename in |
| 10388 | NCC) |
| 10389 | # NonStop-UX NCC 3.20 |
| 10390 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10391 | ;; |
| 10392 | *) |
| 10393 | ;; |
| 10394 | esac |
| 10395 | ;; |
| 10396 | unixware*) |
| 10397 | ;; |
| 10398 | vxworks*) |
| 10399 | ;; |
| 10400 | *) |
| 10401 | lt_prog_compiler_can_build_shared_CXX=no |
| 10402 | ;; |
| 10403 | esac |
| 10404 | fi |
| 10405 | |
| 10406 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 10407 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
| 10408 | |
| 10409 | # |
| 10410 | # Check to make sure the PIC flag actually works. |
| 10411 | # |
| 10412 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 10413 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 10414 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
| 10415 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 10416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10417 | else |
| 10418 | lt_prog_compiler_pic_works_CXX=no |
| 10419 | ac_outfile=conftest.$ac_objext |
| 10420 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10421 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 10422 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10423 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10424 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10425 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10426 | # The option is referenced via a variable to avoid confusing sed. |
| 10427 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10428 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 10429 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10430 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 10431 | (eval echo "\"\$as_me:10431: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10432 | (eval "$lt_compile" 2>conftest.err) |
| 10433 | ac_status=$? |
| 10434 | cat conftest.err >&5 |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 10435 | echo "$as_me:10435: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10436 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 10437 | # The compiler can only warn and ignore the option if not recognized |
| 10438 | # So say no if there are warnings |
| 10439 | if test ! -s conftest.err; then |
| 10440 | lt_prog_compiler_pic_works_CXX=yes |
| 10441 | fi |
| 10442 | fi |
| 10443 | $rm conftest* |
| 10444 | |
| 10445 | fi |
| 10446 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 10447 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
| 10448 | |
| 10449 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 10450 | case $lt_prog_compiler_pic_CXX in |
| 10451 | "" | " "*) ;; |
| 10452 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 10453 | esac |
| 10454 | else |
| 10455 | lt_prog_compiler_pic_CXX= |
| 10456 | lt_prog_compiler_can_build_shared_CXX=no |
| 10457 | fi |
| 10458 | |
| 10459 | fi |
| 10460 | case "$host_os" in |
| 10461 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 10462 | *djgpp*) |
| 10463 | lt_prog_compiler_pic_CXX= |
| 10464 | ;; |
| 10465 | *) |
| 10466 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 10467 | ;; |
| 10468 | esac |
| 10469 | |
| 10470 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 10471 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 10472 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 10473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10474 | else |
| 10475 | lt_cv_prog_compiler_c_o_CXX=no |
| 10476 | $rm -r conftest 2>/dev/null |
| 10477 | mkdir conftest |
| 10478 | cd conftest |
| 10479 | mkdir out |
| 10480 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10481 | |
| 10482 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 10483 | # that will create temporary files in the current directory regardless of |
| 10484 | # the output directory. Thus, making CWD read-only will cause this test |
| 10485 | # to fail, enabling locking or at least warning the user not to do parallel |
| 10486 | # builds. |
| 10487 | chmod -w . |
| 10488 | |
| 10489 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 10490 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10491 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10492 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10493 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10494 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10495 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 10496 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10497 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 10498 | (eval echo "\"\$as_me:10498: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10499 | (eval "$lt_compile" 2>out/conftest.err) |
| 10500 | ac_status=$? |
| 10501 | cat out/conftest.err >&5 |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 10502 | echo "$as_me:10502: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10503 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 10504 | then |
| 10505 | # The compiler can only warn and ignore the option if not recognized |
| 10506 | # So say no if there are warnings |
| 10507 | if test ! -s out/conftest.err; then |
| 10508 | lt_cv_prog_compiler_c_o_CXX=yes |
| 10509 | fi |
| 10510 | fi |
| 10511 | chmod u+w . |
| 10512 | $rm conftest* out/* |
| 10513 | rmdir out |
| 10514 | cd .. |
| 10515 | rmdir conftest |
| 10516 | $rm conftest* |
| 10517 | |
| 10518 | fi |
| 10519 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 10520 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
| 10521 | |
| 10522 | |
| 10523 | hard_links="nottested" |
| 10524 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 10525 | # do not overwrite the value of need_locks provided by the user |
| 10526 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 10527 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 10528 | hard_links=yes |
| 10529 | $rm conftest* |
| 10530 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 10531 | touch conftest.a |
| 10532 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 10533 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 10534 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 10535 | echo "${ECHO_T}$hard_links" >&6 |
| 10536 | if test "$hard_links" = no; then |
| 10537 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 10538 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 10539 | need_locks=warn |
| 10540 | fi |
| 10541 | else |
| 10542 | need_locks=no |
| 10543 | fi |
| 10544 | |
| 10545 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 10546 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 10547 | |
| 10548 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 10549 | case $host_os in |
| 10550 | aix4* | aix5*) |
| 10551 | # If we're using GNU nm, then we don't want the "-C" option. |
| 10552 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 10553 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 10554 | 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' |
| 10555 | else |
| 10556 | 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' |
| 10557 | fi |
| 10558 | ;; |
| 10559 | pw32*) |
| 10560 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 10561 | ;; |
| 10562 | cygwin* | mingw*) |
| 10563 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 10564 | ;; |
| 10565 | *) |
| 10566 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 10567 | ;; |
| 10568 | esac |
| 10569 | |
| 10570 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 10571 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 10572 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 10573 | |
| 10574 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10575 | if test "$GCC" = yes; then |
| 10576 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10577 | fi |
| 10578 | |
| 10579 | # |
| 10580 | # Do we need to explicitly link libc? |
| 10581 | # |
| 10582 | case "x$archive_cmds_need_lc_CXX" in |
| 10583 | x|xyes) |
| 10584 | # Assume -lc should be added |
| 10585 | archive_cmds_need_lc_CXX=yes |
| 10586 | |
| 10587 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 10588 | case $archive_cmds_CXX in |
| 10589 | *'~'*) |
| 10590 | # FIXME: we may have to deal with multi-command sequences. |
| 10591 | ;; |
| 10592 | '$CC '*) |
| 10593 | # Test whether the compiler implicitly links with -lc since on some |
| 10594 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 10595 | # to ld, don't add -lc before -lgcc. |
| 10596 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 10597 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 10598 | $rm conftest* |
| 10599 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10600 | |
| 10601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10602 | (eval $ac_compile) 2>&5 |
| 10603 | ac_status=$? |
| 10604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10605 | (exit $ac_status); } 2>conftest.err; then |
| 10606 | soname=conftest |
| 10607 | lib=conftest |
| 10608 | libobjs=conftest.$ac_objext |
| 10609 | deplibs= |
| 10610 | wl=$lt_prog_compiler_wl_CXX |
| 10611 | compiler_flags=-v |
| 10612 | linker_flags=-v |
| 10613 | verstring= |
| 10614 | output_objdir=. |
| 10615 | libname=conftest |
| 10616 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 10617 | allow_undefined_flag_CXX= |
| 10618 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 10619 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 10620 | ac_status=$? |
| 10621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10622 | (exit $ac_status); } |
| 10623 | then |
| 10624 | archive_cmds_need_lc_CXX=no |
| 10625 | else |
| 10626 | archive_cmds_need_lc_CXX=yes |
| 10627 | fi |
| 10628 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 10629 | else |
| 10630 | cat conftest.err 1>&5 |
| 10631 | fi |
| 10632 | $rm conftest* |
| 10633 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 10634 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
| 10635 | ;; |
| 10636 | esac |
| 10637 | fi |
| 10638 | ;; |
| 10639 | esac |
| 10640 | |
| 10641 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 10642 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 10643 | hardcode_action_CXX= |
| 10644 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 10645 | test -n "$runpath_var CXX" || \ |
| 10646 | test "X$hardcode_automatic_CXX"="Xyes" ; then |
| 10647 | |
| 10648 | # We can hardcode non-existant directories. |
| 10649 | if test "$hardcode_direct_CXX" != no && |
| 10650 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 10651 | # have to relink, otherwise we might link with an installed library |
| 10652 | # when we should be linking with a yet-to-be-installed one |
| 10653 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 10654 | test "$hardcode_minus_L_CXX" != no; then |
| 10655 | # Linking always hardcodes the temporary library directory. |
| 10656 | hardcode_action_CXX=relink |
| 10657 | else |
| 10658 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 10659 | hardcode_action_CXX=immediate |
| 10660 | fi |
| 10661 | else |
| 10662 | # We cannot hardcode anything, or else we can only hardcode existing |
| 10663 | # directories. |
| 10664 | hardcode_action_CXX=unsupported |
| 10665 | fi |
| 10666 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 10667 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
| 10668 | |
| 10669 | if test "$hardcode_action_CXX" = relink; then |
| 10670 | # Fast installation is not supported |
| 10671 | enable_fast_install=no |
| 10672 | elif test "$shlibpath_overrides_runpath" = yes || |
| 10673 | test "$enable_shared" = no; then |
| 10674 | # Fast installation is not necessary |
| 10675 | enable_fast_install=needless |
| 10676 | fi |
| 10677 | |
| 10678 | striplib= |
| 10679 | old_striplib= |
| 10680 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 10681 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 10682 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 10683 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 10684 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 10685 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10686 | echo "${ECHO_T}yes" >&6 |
| 10687 | else |
| 10688 | # FIXME - insert some real tests, host_os isn't really good enough |
| 10689 | case $host_os in |
| 10690 | darwin*) |
| 10691 | if test -n "$STRIP" ; then |
| 10692 | striplib="$STRIP -x" |
| 10693 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10694 | echo "${ECHO_T}yes" >&6 |
| 10695 | else |
| 10696 | echo "$as_me:$LINENO: result: no" >&5 |
| 10697 | echo "${ECHO_T}no" >&6 |
| 10698 | fi |
| 10699 | ;; |
| 10700 | *) |
| 10701 | echo "$as_me:$LINENO: result: no" >&5 |
| 10702 | echo "${ECHO_T}no" >&6 |
| 10703 | ;; |
| 10704 | esac |
| 10705 | fi |
| 10706 | |
| 10707 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 10708 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 10709 | library_names_spec= |
| 10710 | libname_spec='lib$name' |
| 10711 | soname_spec= |
| 10712 | shrext=".so" |
| 10713 | postinstall_cmds= |
| 10714 | postuninstall_cmds= |
| 10715 | finish_cmds= |
| 10716 | finish_eval= |
| 10717 | shlibpath_var= |
| 10718 | shlibpath_overrides_runpath=unknown |
| 10719 | version_type=none |
| 10720 | dynamic_linker="$host_os ld.so" |
| 10721 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 10722 | if test "$GCC" = yes; then |
| 10723 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 10724 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 10725 | # if the path contains ";" then we assume it to be the separator |
| 10726 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 10727 | # assumed that no part of a normal pathname contains ";" but that should |
| 10728 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 10729 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 10730 | else |
| 10731 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10732 | fi |
| 10733 | else |
| 10734 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 10735 | fi |
| 10736 | need_lib_prefix=unknown |
| 10737 | hardcode_into_libs=no |
| 10738 | |
| 10739 | # when you set need_version to no, make sure it does not cause -set_version |
| 10740 | # flags to be left without arguments |
| 10741 | need_version=unknown |
| 10742 | |
| 10743 | case $host_os in |
| 10744 | aix3*) |
| 10745 | version_type=linux |
| 10746 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 10747 | shlibpath_var=LIBPATH |
| 10748 | |
| 10749 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 10750 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10751 | ;; |
| 10752 | |
| 10753 | aix4* | aix5*) |
| 10754 | version_type=linux |
| 10755 | need_lib_prefix=no |
| 10756 | need_version=no |
| 10757 | hardcode_into_libs=yes |
| 10758 | if test "$host_cpu" = ia64; then |
| 10759 | # AIX 5 supports IA64 |
| 10760 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 10761 | shlibpath_var=LD_LIBRARY_PATH |
| 10762 | else |
| 10763 | # With GCC up to 2.95.x, collect2 would create an import file |
| 10764 | # for dependence libraries. The import file would start with |
| 10765 | # the line `#! .'. This would cause the generated library to |
| 10766 | # depend on `.', always an invalid library. This was fixed in |
| 10767 | # development snapshots of GCC prior to 3.0. |
| 10768 | case $host_os in |
| 10769 | aix4 | aix4.[01] | aix4.[01].*) |
| 10770 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 10771 | echo ' yes ' |
| 10772 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 10773 | : |
| 10774 | else |
| 10775 | can_build_shared=no |
| 10776 | fi |
| 10777 | ;; |
| 10778 | esac |
| 10779 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 10780 | # soname into executable. Probably we can add versioning support to |
| 10781 | # collect2, so additional links can be useful in future. |
| 10782 | if test "$aix_use_runtimelinking" = yes; then |
| 10783 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 10784 | # instead of lib<name>.a to let people know that these are not |
| 10785 | # typical AIX shared libraries. |
| 10786 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10787 | else |
| 10788 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 10789 | # and later when we are not doing run time linking. |
| 10790 | library_names_spec='${libname}${release}.a $libname.a' |
| 10791 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10792 | fi |
| 10793 | shlibpath_var=LIBPATH |
| 10794 | fi |
| 10795 | ;; |
| 10796 | |
| 10797 | amigaos*) |
| 10798 | library_names_spec='$libname.ixlibrary $libname.a' |
| 10799 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 10800 | 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' |
| 10801 | ;; |
| 10802 | |
| 10803 | beos*) |
| 10804 | library_names_spec='${libname}${shared_ext}' |
| 10805 | dynamic_linker="$host_os ld.so" |
| 10806 | shlibpath_var=LIBRARY_PATH |
| 10807 | ;; |
| 10808 | |
| 10809 | bsdi4*) |
| 10810 | version_type=linux |
| 10811 | need_version=no |
| 10812 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10813 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10814 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 10815 | shlibpath_var=LD_LIBRARY_PATH |
| 10816 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 10817 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 10818 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 10819 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 10820 | # libtool to hard-code these into programs |
| 10821 | ;; |
| 10822 | |
| 10823 | cygwin* | mingw* | pw32*) |
| 10824 | version_type=windows |
| 10825 | shrext=".dll" |
| 10826 | need_version=no |
| 10827 | need_lib_prefix=no |
| 10828 | |
| 10829 | case $GCC,$host_os in |
| 10830 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 10831 | library_names_spec='$libname.dll.a' |
| 10832 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10833 | postinstall_cmds='base_file=`basename \${file}`~ |
| 10834 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 10835 | dldir=$destdir/`dirname \$dlpath`~ |
| 10836 | test -d \$dldir || mkdir -p \$dldir~ |
| 10837 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 10838 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10839 | dlpath=$dir/\$dldll~ |
| 10840 | $rm \$dlpath' |
| 10841 | shlibpath_overrides_runpath=yes |
| 10842 | |
| 10843 | case $host_os in |
| 10844 | cygwin*) |
| 10845 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 10846 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10847 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" |
| 10848 | ;; |
| 10849 | mingw*) |
| 10850 | # MinGW DLLs use traditional 'lib' prefix |
| 10851 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10852 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 10853 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 10854 | # It is most probably a Windows format PATH printed by |
| 10855 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 10856 | # path with ; separators, and with drive letters. We can handle the |
| 10857 | # drive letters (cygwin fileutils understands them), so leave them, |
| 10858 | # especially as we might pass files found there to a mingw objdump, |
| 10859 | # which wouldn't understand a cygwinified path. Ahh. |
| 10860 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 10861 | else |
| 10862 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10863 | fi |
| 10864 | ;; |
| 10865 | pw32*) |
| 10866 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 10867 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 10868 | ;; |
| 10869 | esac |
| 10870 | ;; |
| 10871 | |
| 10872 | *) |
| 10873 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 10874 | ;; |
| 10875 | esac |
| 10876 | dynamic_linker='Win32 ld.exe' |
| 10877 | # FIXME: first we should search . and the directory the executable is in |
| 10878 | shlibpath_var=PATH |
| 10879 | ;; |
| 10880 | |
| 10881 | darwin* | rhapsody*) |
| 10882 | dynamic_linker="$host_os dyld" |
| 10883 | version_type=darwin |
| 10884 | need_lib_prefix=no |
| 10885 | need_version=no |
| 10886 | # FIXME: Relying on posixy $() will cause problems for |
| 10887 | # cross-compilation, but unfortunately the echo tests do not |
| 10888 | # yet detect zsh echo's removal of \ escapes. |
| 10889 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 10890 | soname_spec='${libname}${release}${major}$shared_ext' |
| 10891 | shlibpath_overrides_runpath=yes |
| 10892 | shlibpath_var=DYLD_LIBRARY_PATH |
| 10893 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 10894 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 10895 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 10896 | 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"` |
| 10897 | fi |
| 10898 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 10899 | ;; |
| 10900 | |
| 10901 | dgux*) |
| 10902 | version_type=linux |
| 10903 | need_lib_prefix=no |
| 10904 | need_version=no |
| 10905 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 10906 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10907 | shlibpath_var=LD_LIBRARY_PATH |
| 10908 | ;; |
| 10909 | |
| 10910 | freebsd1*) |
| 10911 | dynamic_linker=no |
| 10912 | ;; |
| 10913 | |
| 10914 | freebsd*) |
| 10915 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 10916 | version_type=freebsd-$objformat |
| 10917 | case $version_type in |
| 10918 | freebsd-elf*) |
| 10919 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10920 | need_version=no |
| 10921 | need_lib_prefix=no |
| 10922 | ;; |
| 10923 | freebsd-*) |
| 10924 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 10925 | need_version=yes |
| 10926 | ;; |
| 10927 | esac |
| 10928 | shlibpath_var=LD_LIBRARY_PATH |
| 10929 | case $host_os in |
| 10930 | freebsd2*) |
| 10931 | shlibpath_overrides_runpath=yes |
| 10932 | ;; |
| 10933 | freebsd3.01* | freebsdelf3.01*) |
| 10934 | shlibpath_overrides_runpath=yes |
| 10935 | hardcode_into_libs=yes |
| 10936 | ;; |
| 10937 | *) # from 3.2 on |
| 10938 | shlibpath_overrides_runpath=no |
| 10939 | hardcode_into_libs=yes |
| 10940 | ;; |
| 10941 | esac |
| 10942 | ;; |
| 10943 | |
| 10944 | gnu*) |
| 10945 | version_type=linux |
| 10946 | need_lib_prefix=no |
| 10947 | need_version=no |
| 10948 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10949 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10950 | shlibpath_var=LD_LIBRARY_PATH |
| 10951 | hardcode_into_libs=yes |
| 10952 | ;; |
| 10953 | |
| 10954 | hpux9* | hpux10* | hpux11*) |
| 10955 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10956 | # link against other versions. |
| 10957 | version_type=sunos |
| 10958 | need_lib_prefix=no |
| 10959 | need_version=no |
| 10960 | case "$host_cpu" in |
| 10961 | ia64*) |
| 10962 | shrext='.so' |
| 10963 | hardcode_into_libs=yes |
| 10964 | dynamic_linker="$host_os dld.so" |
| 10965 | shlibpath_var=LD_LIBRARY_PATH |
| 10966 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10967 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10968 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10969 | if test "X$HPUX_IA64_MODE" = X32; then |
| 10970 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10971 | else |
| 10972 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10973 | fi |
| 10974 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10975 | ;; |
| 10976 | hppa*64*) |
| 10977 | shrext='.sl' |
| 10978 | hardcode_into_libs=yes |
| 10979 | dynamic_linker="$host_os dld.sl" |
| 10980 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10981 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10982 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10983 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10984 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10985 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10986 | ;; |
| 10987 | *) |
| 10988 | shrext='.sl' |
| 10989 | dynamic_linker="$host_os dld.sl" |
| 10990 | shlibpath_var=SHLIB_PATH |
| 10991 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10992 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10993 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10994 | ;; |
| 10995 | esac |
| 10996 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 10997 | postinstall_cmds='chmod 555 $lib' |
| 10998 | ;; |
| 10999 | |
| 11000 | irix5* | irix6* | nonstopux*) |
| 11001 | case $host_os in |
| 11002 | nonstopux*) version_type=nonstopux ;; |
| 11003 | *) |
| 11004 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 11005 | version_type=linux |
| 11006 | else |
| 11007 | version_type=irix |
| 11008 | fi ;; |
| 11009 | esac |
| 11010 | need_lib_prefix=no |
| 11011 | need_version=no |
| 11012 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11013 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11014 | case $host_os in |
| 11015 | irix5* | nonstopux*) |
| 11016 | libsuff= shlibsuff= |
| 11017 | ;; |
| 11018 | *) |
| 11019 | case $LD in # libtool.m4 will add one of these switches to LD |
| 11020 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 11021 | libsuff= shlibsuff= libmagic=32-bit;; |
| 11022 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 11023 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 11024 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 11025 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 11026 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 11027 | esac |
| 11028 | ;; |
| 11029 | esac |
| 11030 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 11031 | shlibpath_overrides_runpath=no |
| 11032 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 11033 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 11034 | hardcode_into_libs=yes |
| 11035 | ;; |
| 11036 | |
| 11037 | # No shared lib support for Linux oldld, aout, or coff. |
| 11038 | linux*oldld* | linux*aout* | linux*coff*) |
| 11039 | dynamic_linker=no |
| 11040 | ;; |
| 11041 | |
| 11042 | # This must be Linux ELF. |
| 11043 | linux*) |
| 11044 | version_type=linux |
| 11045 | need_lib_prefix=no |
| 11046 | need_version=no |
| 11047 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11048 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11049 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 11050 | shlibpath_var=LD_LIBRARY_PATH |
| 11051 | shlibpath_overrides_runpath=no |
| 11052 | # This implies no fast_install, which is unacceptable. |
| 11053 | # Some rework will be needed to allow for fast_install |
| 11054 | # before this can be enabled. |
| 11055 | hardcode_into_libs=yes |
| 11056 | |
| 11057 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 11058 | # powerpc, because MkLinux only supported shared libraries with the |
| 11059 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 11060 | # most powerpc-linux boxes support dynamic linking these days and |
| 11061 | # people can always --disable-shared, the test was removed, and we |
| 11062 | # assume the GNU/Linux dynamic linker is in use. |
| 11063 | dynamic_linker='GNU/Linux ld.so' |
| 11064 | ;; |
| 11065 | |
| 11066 | netbsd*) |
| 11067 | version_type=sunos |
| 11068 | need_lib_prefix=no |
| 11069 | need_version=no |
| 11070 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 11071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11072 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11073 | dynamic_linker='NetBSD (a.out) ld.so' |
| 11074 | else |
| 11075 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
| 11076 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11077 | dynamic_linker='NetBSD ld.elf_so' |
| 11078 | fi |
| 11079 | shlibpath_var=LD_LIBRARY_PATH |
| 11080 | shlibpath_overrides_runpath=yes |
| 11081 | hardcode_into_libs=yes |
| 11082 | ;; |
| 11083 | |
| 11084 | newsos6) |
| 11085 | version_type=linux |
| 11086 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11087 | shlibpath_var=LD_LIBRARY_PATH |
| 11088 | shlibpath_overrides_runpath=yes |
| 11089 | ;; |
| 11090 | |
| 11091 | nto-qnx) |
| 11092 | version_type=linux |
| 11093 | need_lib_prefix=no |
| 11094 | need_version=no |
| 11095 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11096 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11097 | shlibpath_var=LD_LIBRARY_PATH |
| 11098 | shlibpath_overrides_runpath=yes |
| 11099 | ;; |
| 11100 | |
| 11101 | openbsd*) |
| 11102 | version_type=sunos |
| 11103 | need_lib_prefix=no |
| 11104 | need_version=no |
| 11105 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11106 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11107 | shlibpath_var=LD_LIBRARY_PATH |
| 11108 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 11109 | case $host_os in |
| 11110 | openbsd2.[89] | openbsd2.[89].*) |
| 11111 | shlibpath_overrides_runpath=no |
| 11112 | ;; |
| 11113 | *) |
| 11114 | shlibpath_overrides_runpath=yes |
| 11115 | ;; |
| 11116 | esac |
| 11117 | else |
| 11118 | shlibpath_overrides_runpath=yes |
| 11119 | fi |
| 11120 | ;; |
| 11121 | |
| 11122 | os2*) |
| 11123 | libname_spec='$name' |
| 11124 | shrext=".dll" |
| 11125 | need_lib_prefix=no |
| 11126 | library_names_spec='$libname${shared_ext} $libname.a' |
| 11127 | dynamic_linker='OS/2 ld.exe' |
| 11128 | shlibpath_var=LIBPATH |
| 11129 | ;; |
| 11130 | |
| 11131 | osf3* | osf4* | osf5*) |
| 11132 | version_type=osf |
| 11133 | need_lib_prefix=no |
| 11134 | need_version=no |
| 11135 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11136 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11137 | shlibpath_var=LD_LIBRARY_PATH |
| 11138 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 11139 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 11140 | ;; |
| 11141 | |
| 11142 | sco3.2v5*) |
| 11143 | version_type=osf |
| 11144 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11145 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11146 | shlibpath_var=LD_LIBRARY_PATH |
| 11147 | ;; |
| 11148 | |
| 11149 | solaris*) |
| 11150 | version_type=linux |
| 11151 | need_lib_prefix=no |
| 11152 | need_version=no |
| 11153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11154 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11155 | shlibpath_var=LD_LIBRARY_PATH |
| 11156 | shlibpath_overrides_runpath=yes |
| 11157 | hardcode_into_libs=yes |
| 11158 | # ldd complains unless libraries are executable |
| 11159 | postinstall_cmds='chmod +x $lib' |
| 11160 | ;; |
| 11161 | |
| 11162 | sunos4*) |
| 11163 | version_type=sunos |
| 11164 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11165 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 11166 | shlibpath_var=LD_LIBRARY_PATH |
| 11167 | shlibpath_overrides_runpath=yes |
| 11168 | if test "$with_gnu_ld" = yes; then |
| 11169 | need_lib_prefix=no |
| 11170 | fi |
| 11171 | need_version=yes |
| 11172 | ;; |
| 11173 | |
| 11174 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 11175 | version_type=linux |
| 11176 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11177 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11178 | shlibpath_var=LD_LIBRARY_PATH |
| 11179 | case $host_vendor in |
| 11180 | sni) |
| 11181 | shlibpath_overrides_runpath=no |
| 11182 | need_lib_prefix=no |
| 11183 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 11184 | runpath_var=LD_RUN_PATH |
| 11185 | ;; |
| 11186 | siemens) |
| 11187 | need_lib_prefix=no |
| 11188 | ;; |
| 11189 | motorola) |
| 11190 | need_lib_prefix=no |
| 11191 | need_version=no |
| 11192 | shlibpath_overrides_runpath=no |
| 11193 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 11194 | ;; |
| 11195 | esac |
| 11196 | ;; |
| 11197 | |
| 11198 | sysv4*MP*) |
| 11199 | if test -d /usr/nec ;then |
| 11200 | version_type=linux |
| 11201 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 11202 | soname_spec='$libname${shared_ext}.$major' |
| 11203 | shlibpath_var=LD_LIBRARY_PATH |
| 11204 | fi |
| 11205 | ;; |
| 11206 | |
| 11207 | uts4*) |
| 11208 | version_type=linux |
| 11209 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11210 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11211 | shlibpath_var=LD_LIBRARY_PATH |
| 11212 | ;; |
| 11213 | |
| 11214 | *) |
| 11215 | dynamic_linker=no |
| 11216 | ;; |
| 11217 | esac |
| 11218 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 11219 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 11220 | test "$dynamic_linker" = no && can_build_shared=no |
| 11221 | |
| 11222 | if test "x$enable_dlopen" != xyes; then |
| 11223 | enable_dlopen=unknown |
| 11224 | enable_dlopen_self=unknown |
| 11225 | enable_dlopen_self_static=unknown |
| 11226 | else |
| 11227 | lt_cv_dlopen=no |
| 11228 | lt_cv_dlopen_libs= |
| 11229 | |
| 11230 | case $host_os in |
| 11231 | beos*) |
| 11232 | lt_cv_dlopen="load_add_on" |
| 11233 | lt_cv_dlopen_libs= |
| 11234 | lt_cv_dlopen_self=yes |
| 11235 | ;; |
| 11236 | |
| 11237 | mingw* | pw32*) |
| 11238 | lt_cv_dlopen="LoadLibrary" |
| 11239 | lt_cv_dlopen_libs= |
| 11240 | ;; |
| 11241 | |
| 11242 | cygwin*) |
| 11243 | lt_cv_dlopen="dlopen" |
| 11244 | lt_cv_dlopen_libs= |
| 11245 | ;; |
| 11246 | |
| 11247 | darwin*) |
| 11248 | # if libdl is installed we need to link against it |
| 11249 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 11250 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 11251 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 11252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11253 | else |
| 11254 | ac_check_lib_save_LIBS=$LIBS |
| 11255 | LIBS="-ldl $LIBS" |
| 11256 | cat >conftest.$ac_ext <<_ACEOF |
| 11257 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11258 | /* confdefs.h. */ |
| 11259 | _ACEOF |
| 11260 | cat confdefs.h >>conftest.$ac_ext |
| 11261 | cat >>conftest.$ac_ext <<_ACEOF |
| 11262 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11263 | |
| 11264 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11265 | #ifdef __cplusplus |
| 11266 | extern "C" |
| 11267 | #endif |
| 11268 | /* We use char because int might match the return type of a gcc2 |
| 11269 | builtin and then its argument prototype would still apply. */ |
| 11270 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11271 | int |
| 11272 | main () |
| 11273 | { |
| 11274 | dlopen (); |
| 11275 | ; |
| 11276 | return 0; |
| 11277 | } |
| 11278 | _ACEOF |
| 11279 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11280 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11281 | (eval $ac_link) 2>&5 |
| 11282 | ac_status=$? |
| 11283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11284 | (exit $ac_status); } && |
| 11285 | { ac_try='test -s conftest$ac_exeext' |
| 11286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11287 | (eval $ac_try) 2>&5 |
| 11288 | ac_status=$? |
| 11289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11290 | (exit $ac_status); }; }; then |
| 11291 | ac_cv_lib_dl_dlopen=yes |
| 11292 | else |
| 11293 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11295 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11296 | ac_cv_lib_dl_dlopen=no |
| 11297 | fi |
| 11298 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11299 | LIBS=$ac_check_lib_save_LIBS |
| 11300 | fi |
| 11301 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11302 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 11303 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 11304 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11305 | else |
| 11306 | |
| 11307 | lt_cv_dlopen="dyld" |
| 11308 | lt_cv_dlopen_libs= |
| 11309 | lt_cv_dlopen_self=yes |
| 11310 | |
| 11311 | fi |
| 11312 | |
| 11313 | ;; |
| 11314 | |
| 11315 | *) |
| 11316 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 11317 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 11318 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 11319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11320 | else |
| 11321 | cat >conftest.$ac_ext <<_ACEOF |
| 11322 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11323 | /* confdefs.h. */ |
| 11324 | _ACEOF |
| 11325 | cat confdefs.h >>conftest.$ac_ext |
| 11326 | cat >>conftest.$ac_ext <<_ACEOF |
| 11327 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11328 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11329 | which can conflict with char shl_load (); below. |
| 11330 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11331 | <limits.h> exists even on freestanding compilers. */ |
| 11332 | #ifdef __STDC__ |
| 11333 | # include <limits.h> |
| 11334 | #else |
| 11335 | # include <assert.h> |
| 11336 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11337 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11338 | #ifdef __cplusplus |
| 11339 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11340 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11341 | #endif |
| 11342 | /* We use char because int might match the return type of a gcc2 |
| 11343 | builtin and then its argument prototype would still apply. */ |
| 11344 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11345 | /* The GNU C library defines this for functions which it implements |
| 11346 | to always fail with ENOSYS. Some functions are actually named |
| 11347 | something starting with __ and the normal name is an alias. */ |
| 11348 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 11349 | choke me |
| 11350 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11351 | char (*f) () = shl_load; |
| 11352 | #endif |
| 11353 | #ifdef __cplusplus |
| 11354 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11355 | #endif |
| 11356 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11357 | int |
| 11358 | main () |
| 11359 | { |
| 11360 | return f != shl_load; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11361 | ; |
| 11362 | return 0; |
| 11363 | } |
| 11364 | _ACEOF |
| 11365 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11366 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11367 | (eval $ac_link) 2>&5 |
| 11368 | ac_status=$? |
| 11369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11370 | (exit $ac_status); } && |
| 11371 | { ac_try='test -s conftest$ac_exeext' |
| 11372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11373 | (eval $ac_try) 2>&5 |
| 11374 | ac_status=$? |
| 11375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11376 | (exit $ac_status); }; }; then |
| 11377 | ac_cv_func_shl_load=yes |
| 11378 | else |
| 11379 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11381 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11382 | ac_cv_func_shl_load=no |
| 11383 | fi |
| 11384 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11385 | fi |
| 11386 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 11387 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 11388 | if test $ac_cv_func_shl_load = yes; then |
| 11389 | lt_cv_dlopen="shl_load" |
| 11390 | else |
| 11391 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 11392 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 11393 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 11394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11395 | else |
| 11396 | ac_check_lib_save_LIBS=$LIBS |
| 11397 | LIBS="-ldld $LIBS" |
| 11398 | cat >conftest.$ac_ext <<_ACEOF |
| 11399 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11400 | /* confdefs.h. */ |
| 11401 | _ACEOF |
| 11402 | cat confdefs.h >>conftest.$ac_ext |
| 11403 | cat >>conftest.$ac_ext <<_ACEOF |
| 11404 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11405 | |
| 11406 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11407 | #ifdef __cplusplus |
| 11408 | extern "C" |
| 11409 | #endif |
| 11410 | /* We use char because int might match the return type of a gcc2 |
| 11411 | builtin and then its argument prototype would still apply. */ |
| 11412 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11413 | int |
| 11414 | main () |
| 11415 | { |
| 11416 | shl_load (); |
| 11417 | ; |
| 11418 | return 0; |
| 11419 | } |
| 11420 | _ACEOF |
| 11421 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11422 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11423 | (eval $ac_link) 2>&5 |
| 11424 | ac_status=$? |
| 11425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11426 | (exit $ac_status); } && |
| 11427 | { ac_try='test -s conftest$ac_exeext' |
| 11428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11429 | (eval $ac_try) 2>&5 |
| 11430 | ac_status=$? |
| 11431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11432 | (exit $ac_status); }; }; then |
| 11433 | ac_cv_lib_dld_shl_load=yes |
| 11434 | else |
| 11435 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11436 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11437 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11438 | ac_cv_lib_dld_shl_load=no |
| 11439 | fi |
| 11440 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11441 | LIBS=$ac_check_lib_save_LIBS |
| 11442 | fi |
| 11443 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 11444 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 11445 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 11446 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 11447 | else |
| 11448 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 11449 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 11450 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 11451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11452 | else |
| 11453 | cat >conftest.$ac_ext <<_ACEOF |
| 11454 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11455 | /* confdefs.h. */ |
| 11456 | _ACEOF |
| 11457 | cat confdefs.h >>conftest.$ac_ext |
| 11458 | cat >>conftest.$ac_ext <<_ACEOF |
| 11459 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11460 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11461 | which can conflict with char dlopen (); below. |
| 11462 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11463 | <limits.h> exists even on freestanding compilers. */ |
| 11464 | #ifdef __STDC__ |
| 11465 | # include <limits.h> |
| 11466 | #else |
| 11467 | # include <assert.h> |
| 11468 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11469 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11470 | #ifdef __cplusplus |
| 11471 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11472 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11473 | #endif |
| 11474 | /* We use char because int might match the return type of a gcc2 |
| 11475 | builtin and then its argument prototype would still apply. */ |
| 11476 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11477 | /* The GNU C library defines this for functions which it implements |
| 11478 | to always fail with ENOSYS. Some functions are actually named |
| 11479 | something starting with __ and the normal name is an alias. */ |
| 11480 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 11481 | choke me |
| 11482 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11483 | char (*f) () = dlopen; |
| 11484 | #endif |
| 11485 | #ifdef __cplusplus |
| 11486 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11487 | #endif |
| 11488 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11489 | int |
| 11490 | main () |
| 11491 | { |
| 11492 | return f != dlopen; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11493 | ; |
| 11494 | return 0; |
| 11495 | } |
| 11496 | _ACEOF |
| 11497 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11498 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11499 | (eval $ac_link) 2>&5 |
| 11500 | ac_status=$? |
| 11501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11502 | (exit $ac_status); } && |
| 11503 | { ac_try='test -s conftest$ac_exeext' |
| 11504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11505 | (eval $ac_try) 2>&5 |
| 11506 | ac_status=$? |
| 11507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11508 | (exit $ac_status); }; }; then |
| 11509 | ac_cv_func_dlopen=yes |
| 11510 | else |
| 11511 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11513 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11514 | ac_cv_func_dlopen=no |
| 11515 | fi |
| 11516 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11517 | fi |
| 11518 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 11519 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 11520 | if test $ac_cv_func_dlopen = yes; then |
| 11521 | lt_cv_dlopen="dlopen" |
| 11522 | else |
| 11523 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 11524 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 11525 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 11526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11527 | else |
| 11528 | ac_check_lib_save_LIBS=$LIBS |
| 11529 | LIBS="-ldl $LIBS" |
| 11530 | cat >conftest.$ac_ext <<_ACEOF |
| 11531 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11532 | /* confdefs.h. */ |
| 11533 | _ACEOF |
| 11534 | cat confdefs.h >>conftest.$ac_ext |
| 11535 | cat >>conftest.$ac_ext <<_ACEOF |
| 11536 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11537 | |
| 11538 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11539 | #ifdef __cplusplus |
| 11540 | extern "C" |
| 11541 | #endif |
| 11542 | /* We use char because int might match the return type of a gcc2 |
| 11543 | builtin and then its argument prototype would still apply. */ |
| 11544 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11545 | int |
| 11546 | main () |
| 11547 | { |
| 11548 | dlopen (); |
| 11549 | ; |
| 11550 | return 0; |
| 11551 | } |
| 11552 | _ACEOF |
| 11553 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11555 | (eval $ac_link) 2>&5 |
| 11556 | ac_status=$? |
| 11557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11558 | (exit $ac_status); } && |
| 11559 | { ac_try='test -s conftest$ac_exeext' |
| 11560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11561 | (eval $ac_try) 2>&5 |
| 11562 | ac_status=$? |
| 11563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11564 | (exit $ac_status); }; }; then |
| 11565 | ac_cv_lib_dl_dlopen=yes |
| 11566 | else |
| 11567 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11569 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11570 | ac_cv_lib_dl_dlopen=no |
| 11571 | fi |
| 11572 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11573 | LIBS=$ac_check_lib_save_LIBS |
| 11574 | fi |
| 11575 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11576 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 11577 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 11578 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11579 | else |
| 11580 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 11581 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 11582 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 11583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11584 | else |
| 11585 | ac_check_lib_save_LIBS=$LIBS |
| 11586 | LIBS="-lsvld $LIBS" |
| 11587 | cat >conftest.$ac_ext <<_ACEOF |
| 11588 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11589 | /* confdefs.h. */ |
| 11590 | _ACEOF |
| 11591 | cat confdefs.h >>conftest.$ac_ext |
| 11592 | cat >>conftest.$ac_ext <<_ACEOF |
| 11593 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11594 | |
| 11595 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11596 | #ifdef __cplusplus |
| 11597 | extern "C" |
| 11598 | #endif |
| 11599 | /* We use char because int might match the return type of a gcc2 |
| 11600 | builtin and then its argument prototype would still apply. */ |
| 11601 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11602 | int |
| 11603 | main () |
| 11604 | { |
| 11605 | dlopen (); |
| 11606 | ; |
| 11607 | return 0; |
| 11608 | } |
| 11609 | _ACEOF |
| 11610 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11611 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11612 | (eval $ac_link) 2>&5 |
| 11613 | ac_status=$? |
| 11614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11615 | (exit $ac_status); } && |
| 11616 | { ac_try='test -s conftest$ac_exeext' |
| 11617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11618 | (eval $ac_try) 2>&5 |
| 11619 | ac_status=$? |
| 11620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11621 | (exit $ac_status); }; }; then |
| 11622 | ac_cv_lib_svld_dlopen=yes |
| 11623 | else |
| 11624 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11626 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11627 | ac_cv_lib_svld_dlopen=no |
| 11628 | fi |
| 11629 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11630 | LIBS=$ac_check_lib_save_LIBS |
| 11631 | fi |
| 11632 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 11633 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 11634 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 11635 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 11636 | else |
| 11637 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 11638 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 11639 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 11640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11641 | else |
| 11642 | ac_check_lib_save_LIBS=$LIBS |
| 11643 | LIBS="-ldld $LIBS" |
| 11644 | cat >conftest.$ac_ext <<_ACEOF |
| 11645 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11646 | /* confdefs.h. */ |
| 11647 | _ACEOF |
| 11648 | cat confdefs.h >>conftest.$ac_ext |
| 11649 | cat >>conftest.$ac_ext <<_ACEOF |
| 11650 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11651 | |
| 11652 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11653 | #ifdef __cplusplus |
| 11654 | extern "C" |
| 11655 | #endif |
| 11656 | /* We use char because int might match the return type of a gcc2 |
| 11657 | builtin and then its argument prototype would still apply. */ |
| 11658 | char dld_link (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11659 | int |
| 11660 | main () |
| 11661 | { |
| 11662 | dld_link (); |
| 11663 | ; |
| 11664 | return 0; |
| 11665 | } |
| 11666 | _ACEOF |
| 11667 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11668 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11669 | (eval $ac_link) 2>&5 |
| 11670 | ac_status=$? |
| 11671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11672 | (exit $ac_status); } && |
| 11673 | { ac_try='test -s conftest$ac_exeext' |
| 11674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11675 | (eval $ac_try) 2>&5 |
| 11676 | ac_status=$? |
| 11677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11678 | (exit $ac_status); }; }; then |
| 11679 | ac_cv_lib_dld_dld_link=yes |
| 11680 | else |
| 11681 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11683 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11684 | ac_cv_lib_dld_dld_link=no |
| 11685 | fi |
| 11686 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11687 | LIBS=$ac_check_lib_save_LIBS |
| 11688 | fi |
| 11689 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11690 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 11691 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 11692 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 11693 | fi |
| 11694 | |
| 11695 | |
| 11696 | fi |
| 11697 | |
| 11698 | |
| 11699 | fi |
| 11700 | |
| 11701 | |
| 11702 | fi |
| 11703 | |
| 11704 | |
| 11705 | fi |
| 11706 | |
| 11707 | |
| 11708 | fi |
| 11709 | |
| 11710 | ;; |
| 11711 | esac |
| 11712 | |
| 11713 | if test "x$lt_cv_dlopen" != xno; then |
| 11714 | enable_dlopen=yes |
| 11715 | else |
| 11716 | enable_dlopen=no |
| 11717 | fi |
| 11718 | |
| 11719 | case $lt_cv_dlopen in |
| 11720 | dlopen) |
| 11721 | save_CPPFLAGS="$CPPFLAGS" |
| 11722 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 11723 | |
| 11724 | save_LDFLAGS="$LDFLAGS" |
| 11725 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 11726 | |
| 11727 | save_LIBS="$LIBS" |
| 11728 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 11729 | |
| 11730 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 11731 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 11732 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 11733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11734 | else |
| 11735 | if test "$cross_compiling" = yes; then : |
| 11736 | lt_cv_dlopen_self=cross |
| 11737 | else |
| 11738 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11739 | lt_status=$lt_dlunknown |
| 11740 | cat > conftest.$ac_ext <<EOF |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 11741 | #line 11741 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11742 | #include "confdefs.h" |
| 11743 | |
| 11744 | #if HAVE_DLFCN_H |
| 11745 | #include <dlfcn.h> |
| 11746 | #endif |
| 11747 | |
| 11748 | #include <stdio.h> |
| 11749 | |
| 11750 | #ifdef RTLD_GLOBAL |
| 11751 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11752 | #else |
| 11753 | # ifdef DL_GLOBAL |
| 11754 | # define LT_DLGLOBAL DL_GLOBAL |
| 11755 | # else |
| 11756 | # define LT_DLGLOBAL 0 |
| 11757 | # endif |
| 11758 | #endif |
| 11759 | |
| 11760 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11761 | find out it does not work in some platform. */ |
| 11762 | #ifndef LT_DLLAZY_OR_NOW |
| 11763 | # ifdef RTLD_LAZY |
| 11764 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11765 | # else |
| 11766 | # ifdef DL_LAZY |
| 11767 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11768 | # else |
| 11769 | # ifdef RTLD_NOW |
| 11770 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11771 | # else |
| 11772 | # ifdef DL_NOW |
| 11773 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11774 | # else |
| 11775 | # define LT_DLLAZY_OR_NOW 0 |
| 11776 | # endif |
| 11777 | # endif |
| 11778 | # endif |
| 11779 | # endif |
| 11780 | #endif |
| 11781 | |
| 11782 | #ifdef __cplusplus |
| 11783 | extern "C" void exit (int); |
| 11784 | #endif |
| 11785 | |
| 11786 | void fnord() { int i=42;} |
| 11787 | int main () |
| 11788 | { |
| 11789 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11790 | int status = $lt_dlunknown; |
| 11791 | |
| 11792 | if (self) |
| 11793 | { |
| 11794 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11795 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11796 | /* dlclose (self); */ |
| 11797 | } |
| 11798 | |
| 11799 | exit (status); |
| 11800 | } |
| 11801 | EOF |
| 11802 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11803 | (eval $ac_link) 2>&5 |
| 11804 | ac_status=$? |
| 11805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11806 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11807 | (./conftest; exit; ) 2>/dev/null |
| 11808 | lt_status=$? |
| 11809 | case x$lt_status in |
| 11810 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11811 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 11812 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 11813 | esac |
| 11814 | else : |
| 11815 | # compilation failed |
| 11816 | lt_cv_dlopen_self=no |
| 11817 | fi |
| 11818 | fi |
| 11819 | rm -fr conftest* |
| 11820 | |
| 11821 | |
| 11822 | fi |
| 11823 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 11824 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 11825 | |
| 11826 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 11827 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 11828 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 11829 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 11830 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 11831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11832 | else |
| 11833 | if test "$cross_compiling" = yes; then : |
| 11834 | lt_cv_dlopen_self_static=cross |
| 11835 | else |
| 11836 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11837 | lt_status=$lt_dlunknown |
| 11838 | cat > conftest.$ac_ext <<EOF |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 11839 | #line 11839 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11840 | #include "confdefs.h" |
| 11841 | |
| 11842 | #if HAVE_DLFCN_H |
| 11843 | #include <dlfcn.h> |
| 11844 | #endif |
| 11845 | |
| 11846 | #include <stdio.h> |
| 11847 | |
| 11848 | #ifdef RTLD_GLOBAL |
| 11849 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11850 | #else |
| 11851 | # ifdef DL_GLOBAL |
| 11852 | # define LT_DLGLOBAL DL_GLOBAL |
| 11853 | # else |
| 11854 | # define LT_DLGLOBAL 0 |
| 11855 | # endif |
| 11856 | #endif |
| 11857 | |
| 11858 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11859 | find out it does not work in some platform. */ |
| 11860 | #ifndef LT_DLLAZY_OR_NOW |
| 11861 | # ifdef RTLD_LAZY |
| 11862 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11863 | # else |
| 11864 | # ifdef DL_LAZY |
| 11865 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11866 | # else |
| 11867 | # ifdef RTLD_NOW |
| 11868 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11869 | # else |
| 11870 | # ifdef DL_NOW |
| 11871 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11872 | # else |
| 11873 | # define LT_DLLAZY_OR_NOW 0 |
| 11874 | # endif |
| 11875 | # endif |
| 11876 | # endif |
| 11877 | # endif |
| 11878 | #endif |
| 11879 | |
| 11880 | #ifdef __cplusplus |
| 11881 | extern "C" void exit (int); |
| 11882 | #endif |
| 11883 | |
| 11884 | void fnord() { int i=42;} |
| 11885 | int main () |
| 11886 | { |
| 11887 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11888 | int status = $lt_dlunknown; |
| 11889 | |
| 11890 | if (self) |
| 11891 | { |
| 11892 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11893 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11894 | /* dlclose (self); */ |
| 11895 | } |
| 11896 | |
| 11897 | exit (status); |
| 11898 | } |
| 11899 | EOF |
| 11900 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11901 | (eval $ac_link) 2>&5 |
| 11902 | ac_status=$? |
| 11903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11904 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11905 | (./conftest; exit; ) 2>/dev/null |
| 11906 | lt_status=$? |
| 11907 | case x$lt_status in |
| 11908 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11909 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11910 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 11911 | esac |
| 11912 | else : |
| 11913 | # compilation failed |
| 11914 | lt_cv_dlopen_self_static=no |
| 11915 | fi |
| 11916 | fi |
| 11917 | rm -fr conftest* |
| 11918 | |
| 11919 | |
| 11920 | fi |
| 11921 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 11922 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 11923 | fi |
| 11924 | |
| 11925 | CPPFLAGS="$save_CPPFLAGS" |
| 11926 | LDFLAGS="$save_LDFLAGS" |
| 11927 | LIBS="$save_LIBS" |
| 11928 | ;; |
| 11929 | esac |
| 11930 | |
| 11931 | case $lt_cv_dlopen_self in |
| 11932 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 11933 | *) enable_dlopen_self=unknown ;; |
| 11934 | esac |
| 11935 | |
| 11936 | case $lt_cv_dlopen_self_static in |
| 11937 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 11938 | *) enable_dlopen_self_static=unknown ;; |
| 11939 | esac |
| 11940 | fi |
| 11941 | |
| 11942 | |
| 11943 | # The else clause should only fire when bootstrapping the |
| 11944 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 11945 | # with your package, and you will get complaints that there are |
| 11946 | # no rules to generate ltmain.sh. |
| 11947 | if test -f "$ltmain"; then |
| 11948 | # See if we are running on zsh, and set the options which allow our commands through |
| 11949 | # without removal of \ escapes. |
| 11950 | if test -n "${ZSH_VERSION+set}" ; then |
| 11951 | setopt NO_GLOB_SUBST |
| 11952 | fi |
| 11953 | # Now quote all the things that may contain metacharacters while being |
| 11954 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 11955 | # variables and quote the copies for generation of the libtool script. |
| 11956 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
| 11957 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 11958 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 11959 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 11960 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 11961 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 11962 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 11963 | old_postinstall_cmds old_postuninstall_cmds \ |
| 11964 | compiler_CXX \ |
| 11965 | CC_CXX \ |
| 11966 | LD_CXX \ |
| 11967 | lt_prog_compiler_wl_CXX \ |
| 11968 | lt_prog_compiler_pic_CXX \ |
| 11969 | lt_prog_compiler_static_CXX \ |
| 11970 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 11971 | export_dynamic_flag_spec_CXX \ |
| 11972 | thread_safe_flag_spec_CXX \ |
| 11973 | whole_archive_flag_spec_CXX \ |
| 11974 | enable_shared_with_static_runtimes_CXX \ |
| 11975 | old_archive_cmds_CXX \ |
| 11976 | old_archive_from_new_cmds_CXX \ |
| 11977 | predep_objects_CXX \ |
| 11978 | postdep_objects_CXX \ |
| 11979 | predeps_CXX \ |
| 11980 | postdeps_CXX \ |
| 11981 | compiler_lib_search_path_CXX \ |
| 11982 | archive_cmds_CXX \ |
| 11983 | archive_expsym_cmds_CXX \ |
| 11984 | postinstall_cmds_CXX \ |
| 11985 | postuninstall_cmds_CXX \ |
| 11986 | old_archive_from_expsyms_cmds_CXX \ |
| 11987 | allow_undefined_flag_CXX \ |
| 11988 | no_undefined_flag_CXX \ |
| 11989 | export_symbols_cmds_CXX \ |
| 11990 | hardcode_libdir_flag_spec_CXX \ |
| 11991 | hardcode_libdir_flag_spec_ld_CXX \ |
| 11992 | hardcode_libdir_separator_CXX \ |
| 11993 | hardcode_automatic_CXX \ |
| 11994 | module_cmds_CXX \ |
| 11995 | module_expsym_cmds_CXX \ |
| 11996 | lt_cv_prog_compiler_c_o_CXX \ |
| 11997 | exclude_expsyms_CXX \ |
| 11998 | include_expsyms_CXX; do |
| 11999 | |
| 12000 | case $var in |
| 12001 | old_archive_cmds_CXX | \ |
| 12002 | old_archive_from_new_cmds_CXX | \ |
| 12003 | archive_cmds_CXX | \ |
| 12004 | archive_expsym_cmds_CXX | \ |
| 12005 | module_cmds_CXX | \ |
| 12006 | module_expsym_cmds_CXX | \ |
| 12007 | old_archive_from_expsyms_cmds_CXX | \ |
| 12008 | export_symbols_cmds_CXX | \ |
| 12009 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 12010 | postinstall_cmds | postuninstall_cmds | \ |
| 12011 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 12012 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 12013 | # Double-quote double-evaled strings. |
| 12014 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 12015 | ;; |
| 12016 | *) |
| 12017 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 12018 | ;; |
| 12019 | esac |
| 12020 | done |
| 12021 | |
| 12022 | case $lt_echo in |
| 12023 | *'\$0 --fallback-echo"') |
| 12024 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 12025 | ;; |
| 12026 | esac |
| 12027 | |
| 12028 | cfgfile="$ofile" |
| 12029 | |
| 12030 | cat <<__EOF__ >> "$cfgfile" |
| 12031 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 12032 | |
| 12033 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 12034 | |
| 12035 | # Shell to use when invoking shell scripts. |
| 12036 | SHELL=$lt_SHELL |
| 12037 | |
| 12038 | # Whether or not to build shared libraries. |
| 12039 | build_libtool_libs=$enable_shared |
| 12040 | |
| 12041 | # Whether or not to build static libraries. |
| 12042 | build_old_libs=$enable_static |
| 12043 | |
| 12044 | # Whether or not to add -lc for building shared libraries. |
| 12045 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 12046 | |
| 12047 | # Whether or not to disallow shared libs when runtime libs are static |
| 12048 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 12049 | |
| 12050 | # Whether or not to optimize for fast installation. |
| 12051 | fast_install=$enable_fast_install |
| 12052 | |
| 12053 | # The host system. |
| 12054 | host_alias=$host_alias |
| 12055 | host=$host |
| 12056 | |
| 12057 | # An echo program that does not interpret backslashes. |
| 12058 | echo=$lt_echo |
| 12059 | |
| 12060 | # The archiver. |
| 12061 | AR=$lt_AR |
| 12062 | AR_FLAGS=$lt_AR_FLAGS |
| 12063 | |
| 12064 | # A C compiler. |
| 12065 | LTCC=$lt_LTCC |
| 12066 | |
| 12067 | # A language-specific compiler. |
| 12068 | CC=$lt_compiler_CXX |
| 12069 | |
| 12070 | # Is the compiler the GNU C compiler? |
| 12071 | with_gcc=$GCC_CXX |
| 12072 | |
| 12073 | # An ERE matcher. |
| 12074 | EGREP=$lt_EGREP |
| 12075 | |
| 12076 | # The linker used to build libraries. |
| 12077 | LD=$lt_LD_CXX |
| 12078 | |
| 12079 | # Whether we need hard or soft links. |
| 12080 | LN_S=$lt_LN_S |
| 12081 | |
| 12082 | # A BSD-compatible nm program. |
| 12083 | NM=$lt_NM |
| 12084 | |
| 12085 | # A symbol stripping program |
| 12086 | STRIP=$STRIP |
| 12087 | |
| 12088 | # Used to examine libraries when file_magic_cmd begins "file" |
| 12089 | MAGIC_CMD=$MAGIC_CMD |
| 12090 | |
| 12091 | # Used on cygwin: DLL creation program. |
| 12092 | DLLTOOL="$DLLTOOL" |
| 12093 | |
| 12094 | # Used on cygwin: object dumper. |
| 12095 | OBJDUMP="$OBJDUMP" |
| 12096 | |
| 12097 | # Used on cygwin: assembler. |
| 12098 | AS="$AS" |
| 12099 | |
| 12100 | # The name of the directory that contains temporary libtool files. |
| 12101 | objdir=$objdir |
| 12102 | |
| 12103 | # How to create reloadable object files. |
| 12104 | reload_flag=$lt_reload_flag |
| 12105 | reload_cmds=$lt_reload_cmds |
| 12106 | |
| 12107 | # How to pass a linker flag through the compiler. |
| 12108 | wl=$lt_lt_prog_compiler_wl_CXX |
| 12109 | |
| 12110 | # Object file suffix (normally "o"). |
| 12111 | objext="$ac_objext" |
| 12112 | |
| 12113 | # Old archive suffix (normally "a"). |
| 12114 | libext="$libext" |
| 12115 | |
| 12116 | # Shared library suffix (normally ".so"). |
| 12117 | shrext='$shrext' |
| 12118 | |
| 12119 | # Executable file suffix (normally ""). |
| 12120 | exeext="$exeext" |
| 12121 | |
| 12122 | # Additional compiler flags for building library objects. |
| 12123 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 12124 | pic_mode=$pic_mode |
| 12125 | |
| 12126 | # What is the maximum length of a command? |
| 12127 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 12128 | |
| 12129 | # Does compiler simultaneously support -c and -o options? |
| 12130 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 12131 | |
| 12132 | # Must we lock files when doing compilation ? |
| 12133 | need_locks=$lt_need_locks |
| 12134 | |
| 12135 | # Do we need the lib prefix for modules? |
| 12136 | need_lib_prefix=$need_lib_prefix |
| 12137 | |
| 12138 | # Do we need a version for libraries? |
| 12139 | need_version=$need_version |
| 12140 | |
| 12141 | # Whether dlopen is supported. |
| 12142 | dlopen_support=$enable_dlopen |
| 12143 | |
| 12144 | # Whether dlopen of programs is supported. |
| 12145 | dlopen_self=$enable_dlopen_self |
| 12146 | |
| 12147 | # Whether dlopen of statically linked programs is supported. |
| 12148 | dlopen_self_static=$enable_dlopen_self_static |
| 12149 | |
| 12150 | # Compiler flag to prevent dynamic linking. |
| 12151 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 12152 | |
| 12153 | # Compiler flag to turn off builtin functions. |
| 12154 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 12155 | |
| 12156 | # Compiler flag to allow reflexive dlopens. |
| 12157 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 12158 | |
| 12159 | # Compiler flag to generate shared objects directly from archives. |
| 12160 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 12161 | |
| 12162 | # Compiler flag to generate thread-safe objects. |
| 12163 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 12164 | |
| 12165 | # Library versioning type. |
| 12166 | version_type=$version_type |
| 12167 | |
| 12168 | # Format of library name prefix. |
| 12169 | libname_spec=$lt_libname_spec |
| 12170 | |
| 12171 | # List of archive names. First name is the real one, the rest are links. |
| 12172 | # The last name is the one that the linker finds with -lNAME. |
| 12173 | library_names_spec=$lt_library_names_spec |
| 12174 | |
| 12175 | # The coded name of the library, if different from the real name. |
| 12176 | soname_spec=$lt_soname_spec |
| 12177 | |
| 12178 | # Commands used to build and install an old-style archive. |
| 12179 | RANLIB=$lt_RANLIB |
| 12180 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 12181 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 12182 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 12183 | |
| 12184 | # Create an old-style archive from a shared archive. |
| 12185 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 12186 | |
| 12187 | # Create a temporary old-style archive to link instead of a shared archive. |
| 12188 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 12189 | |
| 12190 | # Commands used to build and install a shared archive. |
| 12191 | archive_cmds=$lt_archive_cmds_CXX |
| 12192 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 12193 | postinstall_cmds=$lt_postinstall_cmds |
| 12194 | postuninstall_cmds=$lt_postuninstall_cmds |
| 12195 | |
| 12196 | # Commands used to build a loadable module (assumed same as above if empty) |
| 12197 | module_cmds=$lt_module_cmds_CXX |
| 12198 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 12199 | |
| 12200 | # Commands to strip libraries. |
| 12201 | old_striplib=$lt_old_striplib |
| 12202 | striplib=$lt_striplib |
| 12203 | |
| 12204 | # Dependencies to place before the objects being linked to create a |
| 12205 | # shared library. |
| 12206 | predep_objects=$lt_predep_objects_CXX |
| 12207 | |
| 12208 | # Dependencies to place after the objects being linked to create a |
| 12209 | # shared library. |
| 12210 | postdep_objects=$lt_postdep_objects_CXX |
| 12211 | |
| 12212 | # Dependencies to place before the objects being linked to create a |
| 12213 | # shared library. |
| 12214 | predeps=$lt_predeps_CXX |
| 12215 | |
| 12216 | # Dependencies to place after the objects being linked to create a |
| 12217 | # shared library. |
| 12218 | postdeps=$lt_postdeps_CXX |
| 12219 | |
| 12220 | # The library search path used internally by the compiler when linking |
| 12221 | # a shared library. |
| 12222 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 12223 | |
| 12224 | # Method to check whether dependent libraries are shared objects. |
| 12225 | deplibs_check_method=$lt_deplibs_check_method |
| 12226 | |
| 12227 | # Command to use when deplibs_check_method == file_magic. |
| 12228 | file_magic_cmd=$lt_file_magic_cmd |
| 12229 | |
| 12230 | # Flag that allows shared libraries with undefined symbols to be built. |
| 12231 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 12232 | |
| 12233 | # Flag that forces no undefined symbols. |
| 12234 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 12235 | |
| 12236 | # Commands used to finish a libtool library installation in a directory. |
| 12237 | finish_cmds=$lt_finish_cmds |
| 12238 | |
| 12239 | # Same as above, but a single script fragment to be evaled but not shown. |
| 12240 | finish_eval=$lt_finish_eval |
| 12241 | |
| 12242 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 12243 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 12244 | |
| 12245 | # Transform the output of nm in a proper C declaration |
| 12246 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 12247 | |
| 12248 | # Transform the output of nm in a C name address pair |
| 12249 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 12250 | |
| 12251 | # This is the shared library runtime path variable. |
| 12252 | runpath_var=$runpath_var |
| 12253 | |
| 12254 | # This is the shared library path variable. |
| 12255 | shlibpath_var=$shlibpath_var |
| 12256 | |
| 12257 | # Is shlibpath searched before the hard-coded library search path? |
| 12258 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 12259 | |
| 12260 | # How to hardcode a shared library path into an executable. |
| 12261 | hardcode_action=$hardcode_action_CXX |
| 12262 | |
| 12263 | # Whether we should hardcode library paths into libraries. |
| 12264 | hardcode_into_libs=$hardcode_into_libs |
| 12265 | |
| 12266 | # Flag to hardcode \$libdir into a binary during linking. |
| 12267 | # This must work even if \$libdir does not exist. |
| 12268 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 12269 | |
| 12270 | # If ld is used when linking, flag to hardcode \$libdir into |
| 12271 | # a binary during linking. This must work even if \$libdir does |
| 12272 | # not exist. |
| 12273 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 12274 | |
| 12275 | # Whether we need a single -rpath flag with a separated argument. |
| 12276 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 12277 | |
| 12278 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 12279 | # resulting binary. |
| 12280 | hardcode_direct=$hardcode_direct_CXX |
| 12281 | |
| 12282 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 12283 | # resulting binary. |
| 12284 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 12285 | |
| 12286 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 12287 | # the resulting binary. |
| 12288 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 12289 | |
| 12290 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 12291 | # and all subsequent libraries and executables linked against it. |
| 12292 | hardcode_automatic=$hardcode_automatic_CXX |
| 12293 | |
| 12294 | # Variables whose values should be saved in libtool wrapper scripts and |
| 12295 | # restored at relink time. |
| 12296 | variables_saved_for_relink="$variables_saved_for_relink" |
| 12297 | |
| 12298 | # Whether libtool must link a program against all its dependency libraries. |
| 12299 | link_all_deplibs=$link_all_deplibs_CXX |
| 12300 | |
| 12301 | # Compile-time system search path for libraries |
| 12302 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 12303 | |
| 12304 | # Run-time system search path for libraries |
| 12305 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 12306 | |
| 12307 | # Fix the shell variable \$srcfile for the compiler. |
| 12308 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 12309 | |
| 12310 | # Set to yes if exported symbols are required. |
| 12311 | always_export_symbols=$always_export_symbols_CXX |
| 12312 | |
| 12313 | # The commands to list exported symbols. |
| 12314 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 12315 | |
| 12316 | # The commands to extract the exported symbol list from a shared archive. |
| 12317 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 12318 | |
| 12319 | # Symbols that should not be listed in the preloaded symbols. |
| 12320 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 12321 | |
| 12322 | # Symbols that must always be exported. |
| 12323 | include_expsyms=$lt_include_expsyms_CXX |
| 12324 | |
| 12325 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 12326 | |
| 12327 | __EOF__ |
| 12328 | |
| 12329 | |
| 12330 | else |
| 12331 | # If there is no Makefile yet, we rely on a make rule to execute |
| 12332 | # `config.status --recheck' to rerun these tests and create the |
| 12333 | # libtool script then. |
| 12334 | test -f Makefile && make "$ltmain" |
| 12335 | fi |
| 12336 | |
| 12337 | |
| 12338 | ac_ext=c |
| 12339 | ac_cpp='$CPP $CPPFLAGS' |
| 12340 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12341 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12342 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12343 | |
| 12344 | CC=$lt_save_CC |
| 12345 | LDCXX=$LD |
| 12346 | LD=$lt_save_LD |
| 12347 | GCC=$lt_save_GCC |
| 12348 | with_gnu_ldcxx=$with_gnu_ld |
| 12349 | with_gnu_ld=$lt_save_with_gnu_ld |
| 12350 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 12351 | lt_cv_path_LD=$lt_save_path_LD |
| 12352 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 12353 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 12354 | |
| 12355 | else |
| 12356 | tagname="" |
| 12357 | fi |
| 12358 | ;; |
| 12359 | |
| 12360 | F77) |
| 12361 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 12362 | |
| 12363 | ac_ext=f |
| 12364 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 12365 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12366 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 12367 | |
| 12368 | |
| 12369 | archive_cmds_need_lc_F77=no |
| 12370 | allow_undefined_flag_F77= |
| 12371 | always_export_symbols_F77=no |
| 12372 | archive_expsym_cmds_F77= |
| 12373 | export_dynamic_flag_spec_F77= |
| 12374 | hardcode_direct_F77=no |
| 12375 | hardcode_libdir_flag_spec_F77= |
| 12376 | hardcode_libdir_flag_spec_ld_F77= |
| 12377 | hardcode_libdir_separator_F77= |
| 12378 | hardcode_minus_L_F77=no |
| 12379 | hardcode_automatic_F77=no |
| 12380 | module_cmds_F77= |
| 12381 | module_expsym_cmds_F77= |
| 12382 | link_all_deplibs_F77=unknown |
| 12383 | old_archive_cmds_F77=$old_archive_cmds |
| 12384 | no_undefined_flag_F77= |
| 12385 | whole_archive_flag_spec_F77= |
| 12386 | enable_shared_with_static_runtimes_F77=no |
| 12387 | |
| 12388 | # Source file extension for f77 test sources. |
| 12389 | ac_ext=f |
| 12390 | |
| 12391 | # Object file extension for compiled f77 test sources. |
| 12392 | objext=o |
| 12393 | objext_F77=$objext |
| 12394 | |
| 12395 | # Code to be used in simple compile tests |
| 12396 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 12397 | |
| 12398 | # Code to be used in simple link tests |
| 12399 | lt_simple_link_test_code=" program t\n end\n" |
| 12400 | |
| 12401 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 12402 | |
| 12403 | # If no C compiler was specified, use CC. |
| 12404 | LTCC=${LTCC-"$CC"} |
| 12405 | |
| 12406 | # Allow CC to be a program name with arguments. |
| 12407 | compiler=$CC |
| 12408 | |
| 12409 | |
| 12410 | # Allow CC to be a program name with arguments. |
| 12411 | lt_save_CC="$CC" |
| 12412 | CC=${F77-"f77"} |
| 12413 | compiler=$CC |
| 12414 | compiler_F77=$CC |
| 12415 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 12416 | |
| 12417 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 12418 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 12419 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 12420 | echo "${ECHO_T}$can_build_shared" >&6 |
| 12421 | |
| 12422 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 12423 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 12424 | test "$can_build_shared" = "no" && enable_shared=no |
| 12425 | |
| 12426 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 12427 | # are all built from PIC. |
| 12428 | case "$host_os" in |
| 12429 | aix3*) |
| 12430 | test "$enable_shared" = yes && enable_static=no |
| 12431 | if test -n "$RANLIB"; then |
| 12432 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 12433 | postinstall_cmds='$RANLIB $lib' |
| 12434 | fi |
| 12435 | ;; |
| 12436 | aix4*) |
| 12437 | test "$enable_shared" = yes && enable_static=no |
| 12438 | ;; |
| 12439 | esac |
| 12440 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 12441 | echo "${ECHO_T}$enable_shared" >&6 |
| 12442 | |
| 12443 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 12444 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 12445 | # Make sure either enable_shared or enable_static is yes. |
| 12446 | test "$enable_shared" = yes || enable_static=yes |
| 12447 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 12448 | echo "${ECHO_T}$enable_static" >&6 |
| 12449 | |
| 12450 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 12451 | |
| 12452 | GCC_F77="$G77" |
| 12453 | LD_F77="$LD" |
| 12454 | |
| 12455 | lt_prog_compiler_wl_F77= |
| 12456 | lt_prog_compiler_pic_F77= |
| 12457 | lt_prog_compiler_static_F77= |
| 12458 | |
| 12459 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 12460 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 12461 | |
| 12462 | if test "$GCC" = yes; then |
| 12463 | lt_prog_compiler_wl_F77='-Wl,' |
| 12464 | lt_prog_compiler_static_F77='-static' |
| 12465 | |
| 12466 | case $host_os in |
| 12467 | aix*) |
| 12468 | # All AIX code is PIC. |
| 12469 | if test "$host_cpu" = ia64; then |
| 12470 | # AIX 5 now supports IA64 processor |
| 12471 | lt_prog_compiler_static_F77='-Bstatic' |
| 12472 | fi |
| 12473 | ;; |
| 12474 | |
| 12475 | amigaos*) |
| 12476 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 12477 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 12478 | # like `-m68040'. |
| 12479 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 12480 | ;; |
| 12481 | |
| 12482 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 12483 | # PIC is the default for these OSes. |
| 12484 | ;; |
| 12485 | |
| 12486 | mingw* | pw32* | os2*) |
| 12487 | # This hack is so that the source file can tell whether it is being |
| 12488 | # built for inclusion in a dll (and should export symbols for example). |
| 12489 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 12490 | ;; |
| 12491 | |
| 12492 | darwin* | rhapsody*) |
| 12493 | # PIC is the default on this platform |
| 12494 | # Common symbols not allowed in MH_DYLIB files |
| 12495 | lt_prog_compiler_pic_F77='-fno-common' |
| 12496 | ;; |
| 12497 | |
| 12498 | msdosdjgpp*) |
| 12499 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 12500 | # on systems that don't support them. |
| 12501 | lt_prog_compiler_can_build_shared_F77=no |
| 12502 | enable_shared=no |
| 12503 | ;; |
| 12504 | |
| 12505 | sysv4*MP*) |
| 12506 | if test -d /usr/nec; then |
| 12507 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 12508 | fi |
| 12509 | ;; |
| 12510 | |
| 12511 | hpux*) |
| 12512 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 12513 | # not for PA HP-UX. |
| 12514 | case "$host_cpu" in |
| 12515 | hppa*64*|ia64*) |
| 12516 | # +Z the default |
| 12517 | ;; |
| 12518 | *) |
| 12519 | lt_prog_compiler_pic_F77='-fPIC' |
| 12520 | ;; |
| 12521 | esac |
| 12522 | ;; |
| 12523 | |
| 12524 | *) |
| 12525 | lt_prog_compiler_pic_F77='-fPIC' |
| 12526 | ;; |
| 12527 | esac |
| 12528 | else |
| 12529 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 12530 | case $host_os in |
| 12531 | aix*) |
| 12532 | lt_prog_compiler_wl_F77='-Wl,' |
| 12533 | if test "$host_cpu" = ia64; then |
| 12534 | # AIX 5 now supports IA64 processor |
| 12535 | lt_prog_compiler_static_F77='-Bstatic' |
| 12536 | else |
| 12537 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 12538 | fi |
| 12539 | ;; |
| 12540 | |
| 12541 | mingw* | pw32* | os2*) |
| 12542 | # This hack is so that the source file can tell whether it is being |
| 12543 | # built for inclusion in a dll (and should export symbols for example). |
| 12544 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 12545 | ;; |
| 12546 | |
| 12547 | hpux9* | hpux10* | hpux11*) |
| 12548 | lt_prog_compiler_wl_F77='-Wl,' |
| 12549 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 12550 | # not for PA HP-UX. |
| 12551 | case "$host_cpu" in |
| 12552 | hppa*64*|ia64*) |
| 12553 | # +Z the default |
| 12554 | ;; |
| 12555 | *) |
| 12556 | lt_prog_compiler_pic_F77='+Z' |
| 12557 | ;; |
| 12558 | esac |
| 12559 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 12560 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 12561 | ;; |
| 12562 | |
| 12563 | irix5* | irix6* | nonstopux*) |
| 12564 | lt_prog_compiler_wl_F77='-Wl,' |
| 12565 | # PIC (with -KPIC) is the default. |
| 12566 | lt_prog_compiler_static_F77='-non_shared' |
| 12567 | ;; |
| 12568 | |
| 12569 | newsos6) |
| 12570 | lt_prog_compiler_pic_F77='-KPIC' |
| 12571 | lt_prog_compiler_static_F77='-Bstatic' |
| 12572 | ;; |
| 12573 | |
| 12574 | linux*) |
| 12575 | case $CC in |
| 12576 | icc|ecc) |
| 12577 | lt_prog_compiler_wl_F77='-Wl,' |
| 12578 | lt_prog_compiler_pic_F77='-KPIC' |
| 12579 | lt_prog_compiler_static_F77='-static' |
| 12580 | ;; |
| 12581 | ccc) |
| 12582 | lt_prog_compiler_wl_F77='-Wl,' |
| 12583 | # All Alpha code is PIC. |
| 12584 | lt_prog_compiler_static_F77='-non_shared' |
| 12585 | ;; |
| 12586 | esac |
| 12587 | ;; |
| 12588 | |
| 12589 | osf3* | osf4* | osf5*) |
| 12590 | lt_prog_compiler_wl_F77='-Wl,' |
| 12591 | # All OSF/1 code is PIC. |
| 12592 | lt_prog_compiler_static_F77='-non_shared' |
| 12593 | ;; |
| 12594 | |
| 12595 | sco3.2v5*) |
| 12596 | lt_prog_compiler_pic_F77='-Kpic' |
| 12597 | lt_prog_compiler_static_F77='-dn' |
| 12598 | ;; |
| 12599 | |
| 12600 | solaris*) |
| 12601 | lt_prog_compiler_wl_F77='-Wl,' |
| 12602 | lt_prog_compiler_pic_F77='-KPIC' |
| 12603 | lt_prog_compiler_static_F77='-Bstatic' |
| 12604 | ;; |
| 12605 | |
| 12606 | sunos4*) |
| 12607 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 12608 | lt_prog_compiler_pic_F77='-PIC' |
| 12609 | lt_prog_compiler_static_F77='-Bstatic' |
| 12610 | ;; |
| 12611 | |
| 12612 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 12613 | lt_prog_compiler_wl_F77='-Wl,' |
| 12614 | lt_prog_compiler_pic_F77='-KPIC' |
| 12615 | lt_prog_compiler_static_F77='-Bstatic' |
| 12616 | ;; |
| 12617 | |
| 12618 | sysv4*MP*) |
| 12619 | if test -d /usr/nec ;then |
| 12620 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 12621 | lt_prog_compiler_static_F77='-Bstatic' |
| 12622 | fi |
| 12623 | ;; |
| 12624 | |
| 12625 | uts4*) |
| 12626 | lt_prog_compiler_pic_F77='-pic' |
| 12627 | lt_prog_compiler_static_F77='-Bstatic' |
| 12628 | ;; |
| 12629 | |
| 12630 | *) |
| 12631 | lt_prog_compiler_can_build_shared_F77=no |
| 12632 | ;; |
| 12633 | esac |
| 12634 | fi |
| 12635 | |
| 12636 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 12637 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
| 12638 | |
| 12639 | # |
| 12640 | # Check to make sure the PIC flag actually works. |
| 12641 | # |
| 12642 | if test -n "$lt_prog_compiler_pic_F77"; then |
| 12643 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 12644 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
| 12645 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 12646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12647 | else |
| 12648 | lt_prog_compiler_pic_works_F77=no |
| 12649 | ac_outfile=conftest.$ac_objext |
| 12650 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12651 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 12652 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12653 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12654 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12655 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12656 | # The option is referenced via a variable to avoid confusing sed. |
| 12657 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12658 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 12659 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12660 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 12661 | (eval echo "\"\$as_me:12661: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12662 | (eval "$lt_compile" 2>conftest.err) |
| 12663 | ac_status=$? |
| 12664 | cat conftest.err >&5 |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 12665 | echo "$as_me:12665: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12666 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 12667 | # The compiler can only warn and ignore the option if not recognized |
| 12668 | # So say no if there are warnings |
| 12669 | if test ! -s conftest.err; then |
| 12670 | lt_prog_compiler_pic_works_F77=yes |
| 12671 | fi |
| 12672 | fi |
| 12673 | $rm conftest* |
| 12674 | |
| 12675 | fi |
| 12676 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 12677 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
| 12678 | |
| 12679 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 12680 | case $lt_prog_compiler_pic_F77 in |
| 12681 | "" | " "*) ;; |
| 12682 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 12683 | esac |
| 12684 | else |
| 12685 | lt_prog_compiler_pic_F77= |
| 12686 | lt_prog_compiler_can_build_shared_F77=no |
| 12687 | fi |
| 12688 | |
| 12689 | fi |
| 12690 | case "$host_os" in |
| 12691 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 12692 | *djgpp*) |
| 12693 | lt_prog_compiler_pic_F77= |
| 12694 | ;; |
| 12695 | *) |
| 12696 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 12697 | ;; |
| 12698 | esac |
| 12699 | |
| 12700 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 12701 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 12702 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 12703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12704 | else |
| 12705 | lt_cv_prog_compiler_c_o_F77=no |
| 12706 | $rm -r conftest 2>/dev/null |
| 12707 | mkdir conftest |
| 12708 | cd conftest |
| 12709 | mkdir out |
| 12710 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12711 | |
| 12712 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 12713 | # that will create temporary files in the current directory regardless of |
| 12714 | # the output directory. Thus, making CWD read-only will cause this test |
| 12715 | # to fail, enabling locking or at least warning the user not to do parallel |
| 12716 | # builds. |
| 12717 | chmod -w . |
| 12718 | |
| 12719 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 12720 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12721 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12722 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12723 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12724 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12725 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 12726 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12727 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 12728 | (eval echo "\"\$as_me:12728: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12729 | (eval "$lt_compile" 2>out/conftest.err) |
| 12730 | ac_status=$? |
| 12731 | cat out/conftest.err >&5 |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 12732 | echo "$as_me:12732: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12733 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 12734 | then |
| 12735 | # The compiler can only warn and ignore the option if not recognized |
| 12736 | # So say no if there are warnings |
| 12737 | if test ! -s out/conftest.err; then |
| 12738 | lt_cv_prog_compiler_c_o_F77=yes |
| 12739 | fi |
| 12740 | fi |
| 12741 | chmod u+w . |
| 12742 | $rm conftest* out/* |
| 12743 | rmdir out |
| 12744 | cd .. |
| 12745 | rmdir conftest |
| 12746 | $rm conftest* |
| 12747 | |
| 12748 | fi |
| 12749 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 12750 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
| 12751 | |
| 12752 | |
| 12753 | hard_links="nottested" |
| 12754 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 12755 | # do not overwrite the value of need_locks provided by the user |
| 12756 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 12757 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 12758 | hard_links=yes |
| 12759 | $rm conftest* |
| 12760 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12761 | touch conftest.a |
| 12762 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 12763 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12764 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 12765 | echo "${ECHO_T}$hard_links" >&6 |
| 12766 | if test "$hard_links" = no; then |
| 12767 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 12768 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 12769 | need_locks=warn |
| 12770 | fi |
| 12771 | else |
| 12772 | need_locks=no |
| 12773 | fi |
| 12774 | |
| 12775 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 12776 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 12777 | |
| 12778 | runpath_var= |
| 12779 | allow_undefined_flag_F77= |
| 12780 | enable_shared_with_static_runtimes_F77=no |
| 12781 | archive_cmds_F77= |
| 12782 | archive_expsym_cmds_F77= |
| 12783 | old_archive_From_new_cmds_F77= |
| 12784 | old_archive_from_expsyms_cmds_F77= |
| 12785 | export_dynamic_flag_spec_F77= |
| 12786 | whole_archive_flag_spec_F77= |
| 12787 | thread_safe_flag_spec_F77= |
| 12788 | hardcode_libdir_flag_spec_F77= |
| 12789 | hardcode_libdir_flag_spec_ld_F77= |
| 12790 | hardcode_libdir_separator_F77= |
| 12791 | hardcode_direct_F77=no |
| 12792 | hardcode_minus_L_F77=no |
| 12793 | hardcode_shlibpath_var_F77=unsupported |
| 12794 | link_all_deplibs_F77=unknown |
| 12795 | hardcode_automatic_F77=no |
| 12796 | module_cmds_F77= |
| 12797 | module_expsym_cmds_F77= |
| 12798 | always_export_symbols_F77=no |
| 12799 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12800 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 12801 | # included in the symbol list |
| 12802 | include_expsyms_F77= |
| 12803 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 12804 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 12805 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 12806 | # as well as any symbol that contains `d'. |
| 12807 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 12808 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 12809 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 12810 | # the symbol is explicitly referenced. Since portable code cannot |
| 12811 | # rely on this symbol name, it's probably fine to never include it in |
| 12812 | # preloaded symbol tables. |
| 12813 | extract_expsyms_cmds= |
| 12814 | |
| 12815 | case $host_os in |
| 12816 | cygwin* | mingw* | pw32*) |
| 12817 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 12818 | # When not using gcc, we currently assume that we are using |
| 12819 | # Microsoft Visual C++. |
| 12820 | if test "$GCC" != yes; then |
| 12821 | with_gnu_ld=no |
| 12822 | fi |
| 12823 | ;; |
| 12824 | openbsd*) |
| 12825 | with_gnu_ld=no |
| 12826 | ;; |
| 12827 | esac |
| 12828 | |
| 12829 | ld_shlibs_F77=yes |
| 12830 | if test "$with_gnu_ld" = yes; then |
| 12831 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 12832 | wlarc='${wl}' |
| 12833 | |
| 12834 | # See if GNU ld supports shared libraries. |
| 12835 | case $host_os in |
| 12836 | aix3* | aix4* | aix5*) |
| 12837 | # On AIX/PPC, the GNU linker is very broken |
| 12838 | if test "$host_cpu" != ia64; then |
| 12839 | ld_shlibs_F77=no |
| 12840 | cat <<EOF 1>&2 |
| 12841 | |
| 12842 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 12843 | *** to be unable to reliably create shared libraries on AIX. |
| 12844 | *** Therefore, libtool is disabling shared libraries support. If you |
| 12845 | *** really care for shared libraries, you may want to modify your PATH |
| 12846 | *** so that a non-GNU linker is found, and then restart. |
| 12847 | |
| 12848 | EOF |
| 12849 | fi |
| 12850 | ;; |
| 12851 | |
| 12852 | amigaos*) |
| 12853 | 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)' |
| 12854 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 12855 | hardcode_minus_L_F77=yes |
| 12856 | |
| 12857 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 12858 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 12859 | # to version 4, is to share data among multiple programs linked |
| 12860 | # with the same dynamic library. Since this doesn't match the |
| 12861 | # behavior of shared libraries on other platforms, we can't use |
| 12862 | # them. |
| 12863 | ld_shlibs_F77=no |
| 12864 | ;; |
| 12865 | |
| 12866 | beos*) |
| 12867 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12868 | allow_undefined_flag_F77=unsupported |
| 12869 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 12870 | # support --undefined. This deserves some investigation. FIXME |
| 12871 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12872 | else |
| 12873 | ld_shlibs_F77=no |
| 12874 | fi |
| 12875 | ;; |
| 12876 | |
| 12877 | cygwin* | mingw* | pw32*) |
| 12878 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 12879 | # as there is no search path for DLLs. |
| 12880 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 12881 | allow_undefined_flag_F77=unsupported |
| 12882 | always_export_symbols_F77=no |
| 12883 | enable_shared_with_static_runtimes_F77=yes |
| 12884 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 12885 | |
| 12886 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 12887 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 12888 | # If the export-symbols file already is a .def file (1st line |
| 12889 | # is EXPORTS), use it as is; otherwise, prepend... |
| 12890 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 12891 | cp $export_symbols $output_objdir/$soname.def; |
| 12892 | else |
| 12893 | echo EXPORTS > $output_objdir/$soname.def; |
| 12894 | cat $export_symbols >> $output_objdir/$soname.def; |
| 12895 | fi~ |
| 12896 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 12897 | else |
| 12898 | ld_shlibs=no |
| 12899 | fi |
| 12900 | ;; |
| 12901 | |
| 12902 | netbsd*) |
| 12903 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 12904 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 12905 | wlarc= |
| 12906 | else |
| 12907 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12908 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12909 | fi |
| 12910 | ;; |
| 12911 | |
| 12912 | solaris* | sysv5*) |
| 12913 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 12914 | ld_shlibs_F77=no |
| 12915 | cat <<EOF 1>&2 |
| 12916 | |
| 12917 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 12918 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 12919 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 12920 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 12921 | *** your PATH or compiler configuration so that the native linker is |
| 12922 | *** used, and then restart. |
| 12923 | |
| 12924 | EOF |
| 12925 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12926 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12927 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12928 | else |
| 12929 | ld_shlibs_F77=no |
| 12930 | fi |
| 12931 | ;; |
| 12932 | |
| 12933 | sunos4*) |
| 12934 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12935 | wlarc= |
| 12936 | hardcode_direct_F77=yes |
| 12937 | hardcode_shlibpath_var_F77=no |
| 12938 | ;; |
| 12939 | |
| 12940 | *) |
| 12941 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12942 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12943 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12944 | else |
| 12945 | ld_shlibs_F77=no |
| 12946 | fi |
| 12947 | ;; |
| 12948 | esac |
| 12949 | |
| 12950 | if test "$ld_shlibs_F77" = yes; then |
| 12951 | runpath_var=LD_RUN_PATH |
| 12952 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 12953 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 12954 | # ancient GNU ld didn't support --whole-archive et. al. |
| 12955 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 12956 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 12957 | else |
| 12958 | whole_archive_flag_spec_F77= |
| 12959 | fi |
| 12960 | fi |
| 12961 | else |
| 12962 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 12963 | case $host_os in |
| 12964 | aix3*) |
| 12965 | allow_undefined_flag_F77=unsupported |
| 12966 | always_export_symbols_F77=yes |
| 12967 | 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' |
| 12968 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 12969 | # are no directories specified by -L. |
| 12970 | hardcode_minus_L_F77=yes |
| 12971 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 12972 | # Neither direct hardcoding nor static linking is supported with a |
| 12973 | # broken collect2. |
| 12974 | hardcode_direct_F77=unsupported |
| 12975 | fi |
| 12976 | ;; |
| 12977 | |
| 12978 | aix4* | aix5*) |
| 12979 | if test "$host_cpu" = ia64; then |
| 12980 | # On IA64, the linker does run time linking by default, so we don't |
| 12981 | # have to do anything special. |
| 12982 | aix_use_runtimelinking=no |
| 12983 | exp_sym_flag='-Bexport' |
| 12984 | no_entry_flag="" |
| 12985 | else |
| 12986 | # If we're using GNU nm, then we don't want the "-C" option. |
| 12987 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 12988 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 12989 | 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' |
| 12990 | else |
| 12991 | 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' |
| 12992 | fi |
| 12993 | aix_use_runtimelinking=no |
| 12994 | |
| 12995 | # Test if we are trying to use run time linking or normal |
| 12996 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 12997 | # need to do runtime linking. |
| 12998 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 12999 | for ld_flag in $LDFLAGS; do |
| 13000 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 13001 | aix_use_runtimelinking=yes |
| 13002 | break |
| 13003 | fi |
| 13004 | done |
| 13005 | esac |
| 13006 | |
| 13007 | exp_sym_flag='-bexport' |
| 13008 | no_entry_flag='-bnoentry' |
| 13009 | fi |
| 13010 | |
| 13011 | # When large executables or shared objects are built, AIX ld can |
| 13012 | # have problems creating the table of contents. If linking a library |
| 13013 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 13014 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 13015 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 13016 | |
| 13017 | archive_cmds_F77='' |
| 13018 | hardcode_direct_F77=yes |
| 13019 | hardcode_libdir_separator_F77=':' |
| 13020 | link_all_deplibs_F77=yes |
| 13021 | |
| 13022 | if test "$GCC" = yes; then |
| 13023 | case $host_os in aix4.012|aix4.012.*) |
| 13024 | # We only want to do this on AIX 4.2 and lower, the check |
| 13025 | # below for broken collect2 doesn't work under 4.3+ |
| 13026 | collect2name=`${CC} -print-prog-name=collect2` |
| 13027 | if test -f "$collect2name" && \ |
| 13028 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 13029 | then |
| 13030 | # We have reworked collect2 |
| 13031 | hardcode_direct_F77=yes |
| 13032 | else |
| 13033 | # We have old collect2 |
| 13034 | hardcode_direct_F77=unsupported |
| 13035 | # It fails to find uninstalled libraries when the uninstalled |
| 13036 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 13037 | # to unsupported forces relinking |
| 13038 | hardcode_minus_L_F77=yes |
| 13039 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13040 | hardcode_libdir_separator_F77= |
| 13041 | fi |
| 13042 | esac |
| 13043 | shared_flag='-shared' |
| 13044 | else |
| 13045 | # not using gcc |
| 13046 | if test "$host_cpu" = ia64; then |
| 13047 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 13048 | # chokes on -Wl,-G. The following line is correct: |
| 13049 | shared_flag='-G' |
| 13050 | else |
| 13051 | if test "$aix_use_runtimelinking" = yes; then |
| 13052 | shared_flag='${wl}-G' |
| 13053 | else |
| 13054 | shared_flag='${wl}-bM:SRE' |
| 13055 | fi |
| 13056 | fi |
| 13057 | fi |
| 13058 | |
| 13059 | # It seems that -bexpall does not export symbols beginning with |
| 13060 | # underscore (_), so it is better to generate a list of symbols to export. |
| 13061 | always_export_symbols_F77=yes |
| 13062 | if test "$aix_use_runtimelinking" = yes; then |
| 13063 | # Warning - without using the other runtime loading flags (-brtl), |
| 13064 | # -berok will link without error, but may produce a broken library. |
| 13065 | allow_undefined_flag_F77='-berok' |
| 13066 | # Determine the default libpath from the value encoded in an empty executable. |
| 13067 | cat >conftest.$ac_ext <<_ACEOF |
| 13068 | program main |
| 13069 | |
| 13070 | end |
| 13071 | _ACEOF |
| 13072 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13073 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13074 | (eval $ac_link) 2>&5 |
| 13075 | ac_status=$? |
| 13076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13077 | (exit $ac_status); } && |
| 13078 | { ac_try='test -s conftest$ac_exeext' |
| 13079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13080 | (eval $ac_try) 2>&5 |
| 13081 | ac_status=$? |
| 13082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13083 | (exit $ac_status); }; }; then |
| 13084 | |
| 13085 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13086 | }'` |
| 13087 | # Check for a 64-bit object if we didn't find anything. |
| 13088 | 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; } |
| 13089 | }'`; fi |
| 13090 | else |
| 13091 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13093 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13094 | fi |
| 13095 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13096 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 13097 | |
| 13098 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13099 | 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" |
| 13100 | else |
| 13101 | if test "$host_cpu" = ia64; then |
| 13102 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 13103 | allow_undefined_flag_F77="-z nodefs" |
| 13104 | 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" |
| 13105 | else |
| 13106 | # Determine the default libpath from the value encoded in an empty executable. |
| 13107 | cat >conftest.$ac_ext <<_ACEOF |
| 13108 | program main |
| 13109 | |
| 13110 | end |
| 13111 | _ACEOF |
| 13112 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13113 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13114 | (eval $ac_link) 2>&5 |
| 13115 | ac_status=$? |
| 13116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13117 | (exit $ac_status); } && |
| 13118 | { ac_try='test -s conftest$ac_exeext' |
| 13119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13120 | (eval $ac_try) 2>&5 |
| 13121 | ac_status=$? |
| 13122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13123 | (exit $ac_status); }; }; then |
| 13124 | |
| 13125 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13126 | }'` |
| 13127 | # Check for a 64-bit object if we didn't find anything. |
| 13128 | 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; } |
| 13129 | }'`; fi |
| 13130 | else |
| 13131 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13132 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13133 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13134 | fi |
| 13135 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13136 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 13137 | |
| 13138 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13139 | # Warning - without using the other run time loading flags, |
| 13140 | # -berok will link without error, but may produce a broken library. |
| 13141 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 13142 | allow_undefined_flag_F77=' ${wl}-berok' |
| 13143 | # -bexpall does not export symbols beginning with underscore (_) |
| 13144 | always_export_symbols_F77=yes |
| 13145 | # Exported symbols can be pulled into shared objects from archives |
| 13146 | whole_archive_flag_spec_F77=' ' |
| 13147 | archive_cmds_need_lc_F77=yes |
| 13148 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 13149 | 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' |
| 13150 | fi |
| 13151 | fi |
| 13152 | ;; |
| 13153 | |
| 13154 | amigaos*) |
| 13155 | 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)' |
| 13156 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13157 | hardcode_minus_L_F77=yes |
| 13158 | # see comment about different semantics on the GNU ld section |
| 13159 | ld_shlibs_F77=no |
| 13160 | ;; |
| 13161 | |
| 13162 | bsdi4*) |
| 13163 | export_dynamic_flag_spec_F77=-rdynamic |
| 13164 | ;; |
| 13165 | |
| 13166 | cygwin* | mingw* | pw32*) |
| 13167 | # When not using gcc, we currently assume that we are using |
| 13168 | # Microsoft Visual C++. |
| 13169 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 13170 | # no search path for DLLs. |
| 13171 | hardcode_libdir_flag_spec_F77=' ' |
| 13172 | allow_undefined_flag_F77=unsupported |
| 13173 | # Tell ltmain to make .lib files, not .a files. |
| 13174 | libext=lib |
| 13175 | # Tell ltmain to make .dll files, not .so files. |
| 13176 | shrext=".dll" |
| 13177 | # FIXME: Setting linknames here is a bad hack. |
| 13178 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 13179 | # The linker will automatically build a .lib file if we build a DLL. |
| 13180 | old_archive_From_new_cmds_F77='true' |
| 13181 | # FIXME: Should let the user specify the lib program. |
| 13182 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 13183 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 13184 | enable_shared_with_static_runtimes_F77=yes |
| 13185 | ;; |
| 13186 | |
| 13187 | darwin* | rhapsody*) |
| 13188 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 13189 | archive_cmds_need_lc_F77=no |
| 13190 | case "$host_os" in |
| 13191 | rhapsody* | darwin1.[012]) |
| 13192 | allow_undefined_flag_F77='-undefined suppress' |
| 13193 | ;; |
| 13194 | *) # Darwin 1.3 on |
| 13195 | test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
| 13196 | ;; |
| 13197 | esac |
| 13198 | # FIXME: Relying on posixy $() will cause problems for |
| 13199 | # cross-compilation, but unfortunately the echo tests do not |
| 13200 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| 13201 | # `"' quotes if we put them in here... so don't! |
| 13202 | lt_int_apple_cc_single_mod=no |
| 13203 | output_verbose_link_cmd='echo' |
| 13204 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 13205 | lt_int_apple_cc_single_mod=yes |
| 13206 | fi |
| 13207 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 13208 | archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 13209 | else |
| 13210 | 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' |
| 13211 | fi |
| 13212 | module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
| 13213 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 13214 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 13215 | 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}' |
| 13216 | else |
| 13217 | 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}' |
| 13218 | fi |
| 13219 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 13220 | hardcode_direct_F77=no |
| 13221 | hardcode_automatic_F77=yes |
| 13222 | hardcode_shlibpath_var_F77=unsupported |
| 13223 | whole_archive_flag_spec_F77='-all_load $convenience' |
| 13224 | link_all_deplibs_F77=yes |
| 13225 | fi |
| 13226 | ;; |
| 13227 | |
| 13228 | dgux*) |
| 13229 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13230 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13231 | hardcode_shlibpath_var_F77=no |
| 13232 | ;; |
| 13233 | |
| 13234 | freebsd1*) |
| 13235 | ld_shlibs_F77=no |
| 13236 | ;; |
| 13237 | |
| 13238 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 13239 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 13240 | # does not break anything, and helps significantly (at the cost of a little |
| 13241 | # extra space). |
| 13242 | freebsd2.2*) |
| 13243 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 13244 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13245 | hardcode_direct_F77=yes |
| 13246 | hardcode_shlibpath_var_F77=no |
| 13247 | ;; |
| 13248 | |
| 13249 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 13250 | freebsd2*) |
| 13251 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13252 | hardcode_direct_F77=yes |
| 13253 | hardcode_minus_L_F77=yes |
| 13254 | hardcode_shlibpath_var_F77=no |
| 13255 | ;; |
| 13256 | |
| 13257 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 13258 | freebsd*) |
| 13259 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 13260 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13261 | hardcode_direct_F77=yes |
| 13262 | hardcode_shlibpath_var_F77=no |
| 13263 | ;; |
| 13264 | |
| 13265 | hpux9*) |
| 13266 | if test "$GCC" = yes; then |
| 13267 | 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' |
| 13268 | else |
| 13269 | 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' |
| 13270 | fi |
| 13271 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 13272 | hardcode_libdir_separator_F77=: |
| 13273 | hardcode_direct_F77=yes |
| 13274 | |
| 13275 | # hardcode_minus_L: Not really in the search PATH, |
| 13276 | # but as the default location of the library. |
| 13277 | hardcode_minus_L_F77=yes |
| 13278 | export_dynamic_flag_spec_F77='${wl}-E' |
| 13279 | ;; |
| 13280 | |
| 13281 | hpux10* | hpux11*) |
| 13282 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 13283 | case "$host_cpu" in |
| 13284 | hppa*64*|ia64*) |
| 13285 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13286 | ;; |
| 13287 | *) |
| 13288 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 13289 | ;; |
| 13290 | esac |
| 13291 | else |
| 13292 | case "$host_cpu" in |
| 13293 | hppa*64*|ia64*) |
| 13294 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13295 | ;; |
| 13296 | *) |
| 13297 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 13298 | ;; |
| 13299 | esac |
| 13300 | fi |
| 13301 | if test "$with_gnu_ld" = no; then |
| 13302 | case "$host_cpu" in |
| 13303 | hppa*64*) |
| 13304 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 13305 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 13306 | hardcode_libdir_separator_F77=: |
| 13307 | hardcode_direct_F77=no |
| 13308 | hardcode_shlibpath_var_F77=no |
| 13309 | ;; |
| 13310 | ia64*) |
| 13311 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13312 | hardcode_direct_F77=no |
| 13313 | hardcode_shlibpath_var_F77=no |
| 13314 | |
| 13315 | # hardcode_minus_L: Not really in the search PATH, |
| 13316 | # but as the default location of the library. |
| 13317 | hardcode_minus_L_F77=yes |
| 13318 | ;; |
| 13319 | *) |
| 13320 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 13321 | hardcode_libdir_separator_F77=: |
| 13322 | hardcode_direct_F77=yes |
| 13323 | export_dynamic_flag_spec_F77='${wl}-E' |
| 13324 | |
| 13325 | # hardcode_minus_L: Not really in the search PATH, |
| 13326 | # but as the default location of the library. |
| 13327 | hardcode_minus_L_F77=yes |
| 13328 | ;; |
| 13329 | esac |
| 13330 | fi |
| 13331 | ;; |
| 13332 | |
| 13333 | irix5* | irix6* | nonstopux*) |
| 13334 | if test "$GCC" = yes; then |
| 13335 | 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' |
| 13336 | else |
| 13337 | 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' |
| 13338 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 13339 | fi |
| 13340 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 13341 | hardcode_libdir_separator_F77=: |
| 13342 | link_all_deplibs_F77=yes |
| 13343 | ;; |
| 13344 | |
| 13345 | netbsd*) |
| 13346 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 13347 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 13348 | else |
| 13349 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 13350 | fi |
| 13351 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13352 | hardcode_direct_F77=yes |
| 13353 | hardcode_shlibpath_var_F77=no |
| 13354 | ;; |
| 13355 | |
| 13356 | newsos6) |
| 13357 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13358 | hardcode_direct_F77=yes |
| 13359 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 13360 | hardcode_libdir_separator_F77=: |
| 13361 | hardcode_shlibpath_var_F77=no |
| 13362 | ;; |
| 13363 | |
| 13364 | openbsd*) |
| 13365 | hardcode_direct_F77=yes |
| 13366 | hardcode_shlibpath_var_F77=no |
| 13367 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13368 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 13369 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 13370 | export_dynamic_flag_spec_F77='${wl}-E' |
| 13371 | else |
| 13372 | case $host_os in |
| 13373 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 13374 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13375 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13376 | ;; |
| 13377 | *) |
| 13378 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 13379 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 13380 | ;; |
| 13381 | esac |
| 13382 | fi |
| 13383 | ;; |
| 13384 | |
| 13385 | os2*) |
| 13386 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13387 | hardcode_minus_L_F77=yes |
| 13388 | allow_undefined_flag_F77=unsupported |
| 13389 | 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' |
| 13390 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 13391 | ;; |
| 13392 | |
| 13393 | osf3*) |
| 13394 | if test "$GCC" = yes; then |
| 13395 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 13396 | 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' |
| 13397 | else |
| 13398 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 13399 | 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' |
| 13400 | fi |
| 13401 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 13402 | hardcode_libdir_separator_F77=: |
| 13403 | ;; |
| 13404 | |
| 13405 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 13406 | if test "$GCC" = yes; then |
| 13407 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 13408 | 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' |
| 13409 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 13410 | else |
| 13411 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 13412 | 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' |
| 13413 | 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~ |
| 13414 | $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' |
| 13415 | |
| 13416 | # Both c and cxx compiler support -rpath directly |
| 13417 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 13418 | fi |
| 13419 | hardcode_libdir_separator_F77=: |
| 13420 | ;; |
| 13421 | |
| 13422 | sco3.2v5*) |
| 13423 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13424 | hardcode_shlibpath_var_F77=no |
| 13425 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
| 13426 | runpath_var=LD_RUN_PATH |
| 13427 | hardcode_runpath_var=yes |
| 13428 | ;; |
| 13429 | |
| 13430 | solaris*) |
| 13431 | no_undefined_flag_F77=' -z text' |
| 13432 | if test "$GCC" = yes; then |
| 13433 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13434 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 13435 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 13436 | else |
| 13437 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13438 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 13439 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 13440 | fi |
| 13441 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13442 | hardcode_shlibpath_var_F77=no |
| 13443 | case $host_os in |
| 13444 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 13445 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 13446 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 13447 | esac |
| 13448 | link_all_deplibs_F77=yes |
| 13449 | ;; |
| 13450 | |
| 13451 | sunos4*) |
| 13452 | if test "x$host_vendor" = xsequent; then |
| 13453 | # Use $CC to link under sequent, because it throws in some extra .o |
| 13454 | # files that make .init and .fini sections work. |
| 13455 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13456 | else |
| 13457 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 13458 | fi |
| 13459 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13460 | hardcode_direct_F77=yes |
| 13461 | hardcode_minus_L_F77=yes |
| 13462 | hardcode_shlibpath_var_F77=no |
| 13463 | ;; |
| 13464 | |
| 13465 | sysv4) |
| 13466 | case $host_vendor in |
| 13467 | sni) |
| 13468 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13469 | hardcode_direct_F77=yes # is this really true??? |
| 13470 | ;; |
| 13471 | siemens) |
| 13472 | ## LD is ld it makes a PLAMLIB |
| 13473 | ## CC just makes a GrossModule. |
| 13474 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 13475 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 13476 | hardcode_direct_F77=no |
| 13477 | ;; |
| 13478 | motorola) |
| 13479 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13480 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 13481 | ;; |
| 13482 | esac |
| 13483 | runpath_var='LD_RUN_PATH' |
| 13484 | hardcode_shlibpath_var_F77=no |
| 13485 | ;; |
| 13486 | |
| 13487 | sysv4.3*) |
| 13488 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13489 | hardcode_shlibpath_var_F77=no |
| 13490 | export_dynamic_flag_spec_F77='-Bexport' |
| 13491 | ;; |
| 13492 | |
| 13493 | sysv4*MP*) |
| 13494 | if test -d /usr/nec; then |
| 13495 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13496 | hardcode_shlibpath_var_F77=no |
| 13497 | runpath_var=LD_RUN_PATH |
| 13498 | hardcode_runpath_var=yes |
| 13499 | ld_shlibs_F77=yes |
| 13500 | fi |
| 13501 | ;; |
| 13502 | |
| 13503 | sysv4.2uw2*) |
| 13504 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 13505 | hardcode_direct_F77=yes |
| 13506 | hardcode_minus_L_F77=no |
| 13507 | hardcode_shlibpath_var_F77=no |
| 13508 | hardcode_runpath_var=yes |
| 13509 | runpath_var=LD_RUN_PATH |
| 13510 | ;; |
| 13511 | |
| 13512 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 13513 | no_undefined_flag_F77='${wl}-z ${wl}text' |
| 13514 | if test "$GCC" = yes; then |
| 13515 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13516 | else |
| 13517 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13518 | fi |
| 13519 | runpath_var='LD_RUN_PATH' |
| 13520 | hardcode_shlibpath_var_F77=no |
| 13521 | ;; |
| 13522 | |
| 13523 | sysv5*) |
| 13524 | no_undefined_flag_F77=' -z text' |
| 13525 | # $CC -shared without GNU ld will not create a library from C++ |
| 13526 | # object files and a static libstdc++, better avoid it by now |
| 13527 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13528 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 13529 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 13530 | hardcode_libdir_flag_spec_F77= |
| 13531 | hardcode_shlibpath_var_F77=no |
| 13532 | runpath_var='LD_RUN_PATH' |
| 13533 | ;; |
| 13534 | |
| 13535 | uts4*) |
| 13536 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13537 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13538 | hardcode_shlibpath_var_F77=no |
| 13539 | ;; |
| 13540 | |
| 13541 | *) |
| 13542 | ld_shlibs_F77=no |
| 13543 | ;; |
| 13544 | esac |
| 13545 | fi |
| 13546 | |
| 13547 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 13548 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
| 13549 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 13550 | |
| 13551 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 13552 | if test "$GCC" = yes; then |
| 13553 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 13554 | fi |
| 13555 | |
| 13556 | # |
| 13557 | # Do we need to explicitly link libc? |
| 13558 | # |
| 13559 | case "x$archive_cmds_need_lc_F77" in |
| 13560 | x|xyes) |
| 13561 | # Assume -lc should be added |
| 13562 | archive_cmds_need_lc_F77=yes |
| 13563 | |
| 13564 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 13565 | case $archive_cmds_F77 in |
| 13566 | *'~'*) |
| 13567 | # FIXME: we may have to deal with multi-command sequences. |
| 13568 | ;; |
| 13569 | '$CC '*) |
| 13570 | # Test whether the compiler implicitly links with -lc since on some |
| 13571 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 13572 | # to ld, don't add -lc before -lgcc. |
| 13573 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 13574 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 13575 | $rm conftest* |
| 13576 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13577 | |
| 13578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13579 | (eval $ac_compile) 2>&5 |
| 13580 | ac_status=$? |
| 13581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13582 | (exit $ac_status); } 2>conftest.err; then |
| 13583 | soname=conftest |
| 13584 | lib=conftest |
| 13585 | libobjs=conftest.$ac_objext |
| 13586 | deplibs= |
| 13587 | wl=$lt_prog_compiler_wl_F77 |
| 13588 | compiler_flags=-v |
| 13589 | linker_flags=-v |
| 13590 | verstring= |
| 13591 | output_objdir=. |
| 13592 | libname=conftest |
| 13593 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 13594 | allow_undefined_flag_F77= |
| 13595 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 13596 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 13597 | ac_status=$? |
| 13598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13599 | (exit $ac_status); } |
| 13600 | then |
| 13601 | archive_cmds_need_lc_F77=no |
| 13602 | else |
| 13603 | archive_cmds_need_lc_F77=yes |
| 13604 | fi |
| 13605 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 13606 | else |
| 13607 | cat conftest.err 1>&5 |
| 13608 | fi |
| 13609 | $rm conftest* |
| 13610 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 13611 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
| 13612 | ;; |
| 13613 | esac |
| 13614 | fi |
| 13615 | ;; |
| 13616 | esac |
| 13617 | |
| 13618 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 13619 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 13620 | hardcode_action_F77= |
| 13621 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 13622 | test -n "$runpath_var F77" || \ |
| 13623 | test "X$hardcode_automatic_F77"="Xyes" ; then |
| 13624 | |
| 13625 | # We can hardcode non-existant directories. |
| 13626 | if test "$hardcode_direct_F77" != no && |
| 13627 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 13628 | # have to relink, otherwise we might link with an installed library |
| 13629 | # when we should be linking with a yet-to-be-installed one |
| 13630 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 13631 | test "$hardcode_minus_L_F77" != no; then |
| 13632 | # Linking always hardcodes the temporary library directory. |
| 13633 | hardcode_action_F77=relink |
| 13634 | else |
| 13635 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 13636 | hardcode_action_F77=immediate |
| 13637 | fi |
| 13638 | else |
| 13639 | # We cannot hardcode anything, or else we can only hardcode existing |
| 13640 | # directories. |
| 13641 | hardcode_action_F77=unsupported |
| 13642 | fi |
| 13643 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 13644 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
| 13645 | |
| 13646 | if test "$hardcode_action_F77" = relink; then |
| 13647 | # Fast installation is not supported |
| 13648 | enable_fast_install=no |
| 13649 | elif test "$shlibpath_overrides_runpath" = yes || |
| 13650 | test "$enable_shared" = no; then |
| 13651 | # Fast installation is not necessary |
| 13652 | enable_fast_install=needless |
| 13653 | fi |
| 13654 | |
| 13655 | striplib= |
| 13656 | old_striplib= |
| 13657 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 13658 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 13659 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 13660 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 13661 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 13662 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13663 | echo "${ECHO_T}yes" >&6 |
| 13664 | else |
| 13665 | # FIXME - insert some real tests, host_os isn't really good enough |
| 13666 | case $host_os in |
| 13667 | darwin*) |
| 13668 | if test -n "$STRIP" ; then |
| 13669 | striplib="$STRIP -x" |
| 13670 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13671 | echo "${ECHO_T}yes" >&6 |
| 13672 | else |
| 13673 | echo "$as_me:$LINENO: result: no" >&5 |
| 13674 | echo "${ECHO_T}no" >&6 |
| 13675 | fi |
| 13676 | ;; |
| 13677 | *) |
| 13678 | echo "$as_me:$LINENO: result: no" >&5 |
| 13679 | echo "${ECHO_T}no" >&6 |
| 13680 | ;; |
| 13681 | esac |
| 13682 | fi |
| 13683 | |
| 13684 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 13685 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 13686 | library_names_spec= |
| 13687 | libname_spec='lib$name' |
| 13688 | soname_spec= |
| 13689 | shrext=".so" |
| 13690 | postinstall_cmds= |
| 13691 | postuninstall_cmds= |
| 13692 | finish_cmds= |
| 13693 | finish_eval= |
| 13694 | shlibpath_var= |
| 13695 | shlibpath_overrides_runpath=unknown |
| 13696 | version_type=none |
| 13697 | dynamic_linker="$host_os ld.so" |
| 13698 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 13699 | if test "$GCC" = yes; then |
| 13700 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13701 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 13702 | # if the path contains ";" then we assume it to be the separator |
| 13703 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 13704 | # assumed that no part of a normal pathname contains ";" but that should |
| 13705 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 13706 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13707 | else |
| 13708 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13709 | fi |
| 13710 | else |
| 13711 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 13712 | fi |
| 13713 | need_lib_prefix=unknown |
| 13714 | hardcode_into_libs=no |
| 13715 | |
| 13716 | # when you set need_version to no, make sure it does not cause -set_version |
| 13717 | # flags to be left without arguments |
| 13718 | need_version=unknown |
| 13719 | |
| 13720 | case $host_os in |
| 13721 | aix3*) |
| 13722 | version_type=linux |
| 13723 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 13724 | shlibpath_var=LIBPATH |
| 13725 | |
| 13726 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 13727 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13728 | ;; |
| 13729 | |
| 13730 | aix4* | aix5*) |
| 13731 | version_type=linux |
| 13732 | need_lib_prefix=no |
| 13733 | need_version=no |
| 13734 | hardcode_into_libs=yes |
| 13735 | if test "$host_cpu" = ia64; then |
| 13736 | # AIX 5 supports IA64 |
| 13737 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 13738 | shlibpath_var=LD_LIBRARY_PATH |
| 13739 | else |
| 13740 | # With GCC up to 2.95.x, collect2 would create an import file |
| 13741 | # for dependence libraries. The import file would start with |
| 13742 | # the line `#! .'. This would cause the generated library to |
| 13743 | # depend on `.', always an invalid library. This was fixed in |
| 13744 | # development snapshots of GCC prior to 3.0. |
| 13745 | case $host_os in |
| 13746 | aix4 | aix4.[01] | aix4.[01].*) |
| 13747 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 13748 | echo ' yes ' |
| 13749 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 13750 | : |
| 13751 | else |
| 13752 | can_build_shared=no |
| 13753 | fi |
| 13754 | ;; |
| 13755 | esac |
| 13756 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 13757 | # soname into executable. Probably we can add versioning support to |
| 13758 | # collect2, so additional links can be useful in future. |
| 13759 | if test "$aix_use_runtimelinking" = yes; then |
| 13760 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 13761 | # instead of lib<name>.a to let people know that these are not |
| 13762 | # typical AIX shared libraries. |
| 13763 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13764 | else |
| 13765 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 13766 | # and later when we are not doing run time linking. |
| 13767 | library_names_spec='${libname}${release}.a $libname.a' |
| 13768 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13769 | fi |
| 13770 | shlibpath_var=LIBPATH |
| 13771 | fi |
| 13772 | ;; |
| 13773 | |
| 13774 | amigaos*) |
| 13775 | library_names_spec='$libname.ixlibrary $libname.a' |
| 13776 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 13777 | 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' |
| 13778 | ;; |
| 13779 | |
| 13780 | beos*) |
| 13781 | library_names_spec='${libname}${shared_ext}' |
| 13782 | dynamic_linker="$host_os ld.so" |
| 13783 | shlibpath_var=LIBRARY_PATH |
| 13784 | ;; |
| 13785 | |
| 13786 | bsdi4*) |
| 13787 | version_type=linux |
| 13788 | need_version=no |
| 13789 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13790 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13791 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 13792 | shlibpath_var=LD_LIBRARY_PATH |
| 13793 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 13794 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 13795 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 13796 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 13797 | # libtool to hard-code these into programs |
| 13798 | ;; |
| 13799 | |
| 13800 | cygwin* | mingw* | pw32*) |
| 13801 | version_type=windows |
| 13802 | shrext=".dll" |
| 13803 | need_version=no |
| 13804 | need_lib_prefix=no |
| 13805 | |
| 13806 | case $GCC,$host_os in |
| 13807 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 13808 | library_names_spec='$libname.dll.a' |
| 13809 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 13810 | postinstall_cmds='base_file=`basename \${file}`~ |
| 13811 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 13812 | dldir=$destdir/`dirname \$dlpath`~ |
| 13813 | test -d \$dldir || mkdir -p \$dldir~ |
| 13814 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 13815 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 13816 | dlpath=$dir/\$dldll~ |
| 13817 | $rm \$dlpath' |
| 13818 | shlibpath_overrides_runpath=yes |
| 13819 | |
| 13820 | case $host_os in |
| 13821 | cygwin*) |
| 13822 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 13823 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13824 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" |
| 13825 | ;; |
| 13826 | mingw*) |
| 13827 | # MinGW DLLs use traditional 'lib' prefix |
| 13828 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13829 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13830 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 13831 | # It is most probably a Windows format PATH printed by |
| 13832 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 13833 | # path with ; separators, and with drive letters. We can handle the |
| 13834 | # drive letters (cygwin fileutils understands them), so leave them, |
| 13835 | # especially as we might pass files found there to a mingw objdump, |
| 13836 | # which wouldn't understand a cygwinified path. Ahh. |
| 13837 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13838 | else |
| 13839 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13840 | fi |
| 13841 | ;; |
| 13842 | pw32*) |
| 13843 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 13844 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 13845 | ;; |
| 13846 | esac |
| 13847 | ;; |
| 13848 | |
| 13849 | *) |
| 13850 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 13851 | ;; |
| 13852 | esac |
| 13853 | dynamic_linker='Win32 ld.exe' |
| 13854 | # FIXME: first we should search . and the directory the executable is in |
| 13855 | shlibpath_var=PATH |
| 13856 | ;; |
| 13857 | |
| 13858 | darwin* | rhapsody*) |
| 13859 | dynamic_linker="$host_os dyld" |
| 13860 | version_type=darwin |
| 13861 | need_lib_prefix=no |
| 13862 | need_version=no |
| 13863 | # FIXME: Relying on posixy $() will cause problems for |
| 13864 | # cross-compilation, but unfortunately the echo tests do not |
| 13865 | # yet detect zsh echo's removal of \ escapes. |
| 13866 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 13867 | soname_spec='${libname}${release}${major}$shared_ext' |
| 13868 | shlibpath_overrides_runpath=yes |
| 13869 | shlibpath_var=DYLD_LIBRARY_PATH |
| 13870 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 13871 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 13872 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 13873 | 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"` |
| 13874 | fi |
| 13875 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 13876 | ;; |
| 13877 | |
| 13878 | dgux*) |
| 13879 | version_type=linux |
| 13880 | need_lib_prefix=no |
| 13881 | need_version=no |
| 13882 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 13883 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13884 | shlibpath_var=LD_LIBRARY_PATH |
| 13885 | ;; |
| 13886 | |
| 13887 | freebsd1*) |
| 13888 | dynamic_linker=no |
| 13889 | ;; |
| 13890 | |
| 13891 | freebsd*) |
| 13892 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 13893 | version_type=freebsd-$objformat |
| 13894 | case $version_type in |
| 13895 | freebsd-elf*) |
| 13896 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13897 | need_version=no |
| 13898 | need_lib_prefix=no |
| 13899 | ;; |
| 13900 | freebsd-*) |
| 13901 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 13902 | need_version=yes |
| 13903 | ;; |
| 13904 | esac |
| 13905 | shlibpath_var=LD_LIBRARY_PATH |
| 13906 | case $host_os in |
| 13907 | freebsd2*) |
| 13908 | shlibpath_overrides_runpath=yes |
| 13909 | ;; |
| 13910 | freebsd3.01* | freebsdelf3.01*) |
| 13911 | shlibpath_overrides_runpath=yes |
| 13912 | hardcode_into_libs=yes |
| 13913 | ;; |
| 13914 | *) # from 3.2 on |
| 13915 | shlibpath_overrides_runpath=no |
| 13916 | hardcode_into_libs=yes |
| 13917 | ;; |
| 13918 | esac |
| 13919 | ;; |
| 13920 | |
| 13921 | gnu*) |
| 13922 | version_type=linux |
| 13923 | need_lib_prefix=no |
| 13924 | need_version=no |
| 13925 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 13926 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13927 | shlibpath_var=LD_LIBRARY_PATH |
| 13928 | hardcode_into_libs=yes |
| 13929 | ;; |
| 13930 | |
| 13931 | hpux9* | hpux10* | hpux11*) |
| 13932 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13933 | # link against other versions. |
| 13934 | version_type=sunos |
| 13935 | need_lib_prefix=no |
| 13936 | need_version=no |
| 13937 | case "$host_cpu" in |
| 13938 | ia64*) |
| 13939 | shrext='.so' |
| 13940 | hardcode_into_libs=yes |
| 13941 | dynamic_linker="$host_os dld.so" |
| 13942 | shlibpath_var=LD_LIBRARY_PATH |
| 13943 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13944 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13945 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13946 | if test "X$HPUX_IA64_MODE" = X32; then |
| 13947 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 13948 | else |
| 13949 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13950 | fi |
| 13951 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13952 | ;; |
| 13953 | hppa*64*) |
| 13954 | shrext='.sl' |
| 13955 | hardcode_into_libs=yes |
| 13956 | dynamic_linker="$host_os dld.sl" |
| 13957 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13958 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13959 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13960 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13961 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13962 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13963 | ;; |
| 13964 | *) |
| 13965 | shrext='.sl' |
| 13966 | dynamic_linker="$host_os dld.sl" |
| 13967 | shlibpath_var=SHLIB_PATH |
| 13968 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13969 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13970 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13971 | ;; |
| 13972 | esac |
| 13973 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 13974 | postinstall_cmds='chmod 555 $lib' |
| 13975 | ;; |
| 13976 | |
| 13977 | irix5* | irix6* | nonstopux*) |
| 13978 | case $host_os in |
| 13979 | nonstopux*) version_type=nonstopux ;; |
| 13980 | *) |
| 13981 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13982 | version_type=linux |
| 13983 | else |
| 13984 | version_type=irix |
| 13985 | fi ;; |
| 13986 | esac |
| 13987 | need_lib_prefix=no |
| 13988 | need_version=no |
| 13989 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13990 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13991 | case $host_os in |
| 13992 | irix5* | nonstopux*) |
| 13993 | libsuff= shlibsuff= |
| 13994 | ;; |
| 13995 | *) |
| 13996 | case $LD in # libtool.m4 will add one of these switches to LD |
| 13997 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13998 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13999 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 14000 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 14001 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 14002 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 14003 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 14004 | esac |
| 14005 | ;; |
| 14006 | esac |
| 14007 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 14008 | shlibpath_overrides_runpath=no |
| 14009 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 14010 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 14011 | hardcode_into_libs=yes |
| 14012 | ;; |
| 14013 | |
| 14014 | # No shared lib support for Linux oldld, aout, or coff. |
| 14015 | linux*oldld* | linux*aout* | linux*coff*) |
| 14016 | dynamic_linker=no |
| 14017 | ;; |
| 14018 | |
| 14019 | # This must be Linux ELF. |
| 14020 | linux*) |
| 14021 | version_type=linux |
| 14022 | need_lib_prefix=no |
| 14023 | need_version=no |
| 14024 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14025 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14026 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 14027 | shlibpath_var=LD_LIBRARY_PATH |
| 14028 | shlibpath_overrides_runpath=no |
| 14029 | # This implies no fast_install, which is unacceptable. |
| 14030 | # Some rework will be needed to allow for fast_install |
| 14031 | # before this can be enabled. |
| 14032 | hardcode_into_libs=yes |
| 14033 | |
| 14034 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 14035 | # powerpc, because MkLinux only supported shared libraries with the |
| 14036 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 14037 | # most powerpc-linux boxes support dynamic linking these days and |
| 14038 | # people can always --disable-shared, the test was removed, and we |
| 14039 | # assume the GNU/Linux dynamic linker is in use. |
| 14040 | dynamic_linker='GNU/Linux ld.so' |
| 14041 | ;; |
| 14042 | |
| 14043 | netbsd*) |
| 14044 | version_type=sunos |
| 14045 | need_lib_prefix=no |
| 14046 | need_version=no |
| 14047 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14048 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14049 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14050 | dynamic_linker='NetBSD (a.out) ld.so' |
| 14051 | else |
| 14052 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
| 14053 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14054 | dynamic_linker='NetBSD ld.elf_so' |
| 14055 | fi |
| 14056 | shlibpath_var=LD_LIBRARY_PATH |
| 14057 | shlibpath_overrides_runpath=yes |
| 14058 | hardcode_into_libs=yes |
| 14059 | ;; |
| 14060 | |
| 14061 | newsos6) |
| 14062 | version_type=linux |
| 14063 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14064 | shlibpath_var=LD_LIBRARY_PATH |
| 14065 | shlibpath_overrides_runpath=yes |
| 14066 | ;; |
| 14067 | |
| 14068 | nto-qnx) |
| 14069 | version_type=linux |
| 14070 | need_lib_prefix=no |
| 14071 | need_version=no |
| 14072 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14073 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14074 | shlibpath_var=LD_LIBRARY_PATH |
| 14075 | shlibpath_overrides_runpath=yes |
| 14076 | ;; |
| 14077 | |
| 14078 | openbsd*) |
| 14079 | version_type=sunos |
| 14080 | need_lib_prefix=no |
| 14081 | need_version=no |
| 14082 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14083 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14084 | shlibpath_var=LD_LIBRARY_PATH |
| 14085 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 14086 | case $host_os in |
| 14087 | openbsd2.[89] | openbsd2.[89].*) |
| 14088 | shlibpath_overrides_runpath=no |
| 14089 | ;; |
| 14090 | *) |
| 14091 | shlibpath_overrides_runpath=yes |
| 14092 | ;; |
| 14093 | esac |
| 14094 | else |
| 14095 | shlibpath_overrides_runpath=yes |
| 14096 | fi |
| 14097 | ;; |
| 14098 | |
| 14099 | os2*) |
| 14100 | libname_spec='$name' |
| 14101 | shrext=".dll" |
| 14102 | need_lib_prefix=no |
| 14103 | library_names_spec='$libname${shared_ext} $libname.a' |
| 14104 | dynamic_linker='OS/2 ld.exe' |
| 14105 | shlibpath_var=LIBPATH |
| 14106 | ;; |
| 14107 | |
| 14108 | osf3* | osf4* | osf5*) |
| 14109 | version_type=osf |
| 14110 | need_lib_prefix=no |
| 14111 | need_version=no |
| 14112 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14113 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14114 | shlibpath_var=LD_LIBRARY_PATH |
| 14115 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 14116 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 14117 | ;; |
| 14118 | |
| 14119 | sco3.2v5*) |
| 14120 | version_type=osf |
| 14121 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14122 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14123 | shlibpath_var=LD_LIBRARY_PATH |
| 14124 | ;; |
| 14125 | |
| 14126 | solaris*) |
| 14127 | version_type=linux |
| 14128 | need_lib_prefix=no |
| 14129 | need_version=no |
| 14130 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14131 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14132 | shlibpath_var=LD_LIBRARY_PATH |
| 14133 | shlibpath_overrides_runpath=yes |
| 14134 | hardcode_into_libs=yes |
| 14135 | # ldd complains unless libraries are executable |
| 14136 | postinstall_cmds='chmod +x $lib' |
| 14137 | ;; |
| 14138 | |
| 14139 | sunos4*) |
| 14140 | version_type=sunos |
| 14141 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14142 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 14143 | shlibpath_var=LD_LIBRARY_PATH |
| 14144 | shlibpath_overrides_runpath=yes |
| 14145 | if test "$with_gnu_ld" = yes; then |
| 14146 | need_lib_prefix=no |
| 14147 | fi |
| 14148 | need_version=yes |
| 14149 | ;; |
| 14150 | |
| 14151 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 14152 | version_type=linux |
| 14153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14154 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14155 | shlibpath_var=LD_LIBRARY_PATH |
| 14156 | case $host_vendor in |
| 14157 | sni) |
| 14158 | shlibpath_overrides_runpath=no |
| 14159 | need_lib_prefix=no |
| 14160 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 14161 | runpath_var=LD_RUN_PATH |
| 14162 | ;; |
| 14163 | siemens) |
| 14164 | need_lib_prefix=no |
| 14165 | ;; |
| 14166 | motorola) |
| 14167 | need_lib_prefix=no |
| 14168 | need_version=no |
| 14169 | shlibpath_overrides_runpath=no |
| 14170 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 14171 | ;; |
| 14172 | esac |
| 14173 | ;; |
| 14174 | |
| 14175 | sysv4*MP*) |
| 14176 | if test -d /usr/nec ;then |
| 14177 | version_type=linux |
| 14178 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 14179 | soname_spec='$libname${shared_ext}.$major' |
| 14180 | shlibpath_var=LD_LIBRARY_PATH |
| 14181 | fi |
| 14182 | ;; |
| 14183 | |
| 14184 | uts4*) |
| 14185 | version_type=linux |
| 14186 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14187 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14188 | shlibpath_var=LD_LIBRARY_PATH |
| 14189 | ;; |
| 14190 | |
| 14191 | *) |
| 14192 | dynamic_linker=no |
| 14193 | ;; |
| 14194 | esac |
| 14195 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 14196 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 14197 | test "$dynamic_linker" = no && can_build_shared=no |
| 14198 | |
| 14199 | |
| 14200 | # The else clause should only fire when bootstrapping the |
| 14201 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 14202 | # with your package, and you will get complaints that there are |
| 14203 | # no rules to generate ltmain.sh. |
| 14204 | if test -f "$ltmain"; then |
| 14205 | # See if we are running on zsh, and set the options which allow our commands through |
| 14206 | # without removal of \ escapes. |
| 14207 | if test -n "${ZSH_VERSION+set}" ; then |
| 14208 | setopt NO_GLOB_SUBST |
| 14209 | fi |
| 14210 | # Now quote all the things that may contain metacharacters while being |
| 14211 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 14212 | # variables and quote the copies for generation of the libtool script. |
| 14213 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
| 14214 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 14215 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 14216 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 14217 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 14218 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 14219 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 14220 | old_postinstall_cmds old_postuninstall_cmds \ |
| 14221 | compiler_F77 \ |
| 14222 | CC_F77 \ |
| 14223 | LD_F77 \ |
| 14224 | lt_prog_compiler_wl_F77 \ |
| 14225 | lt_prog_compiler_pic_F77 \ |
| 14226 | lt_prog_compiler_static_F77 \ |
| 14227 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 14228 | export_dynamic_flag_spec_F77 \ |
| 14229 | thread_safe_flag_spec_F77 \ |
| 14230 | whole_archive_flag_spec_F77 \ |
| 14231 | enable_shared_with_static_runtimes_F77 \ |
| 14232 | old_archive_cmds_F77 \ |
| 14233 | old_archive_from_new_cmds_F77 \ |
| 14234 | predep_objects_F77 \ |
| 14235 | postdep_objects_F77 \ |
| 14236 | predeps_F77 \ |
| 14237 | postdeps_F77 \ |
| 14238 | compiler_lib_search_path_F77 \ |
| 14239 | archive_cmds_F77 \ |
| 14240 | archive_expsym_cmds_F77 \ |
| 14241 | postinstall_cmds_F77 \ |
| 14242 | postuninstall_cmds_F77 \ |
| 14243 | old_archive_from_expsyms_cmds_F77 \ |
| 14244 | allow_undefined_flag_F77 \ |
| 14245 | no_undefined_flag_F77 \ |
| 14246 | export_symbols_cmds_F77 \ |
| 14247 | hardcode_libdir_flag_spec_F77 \ |
| 14248 | hardcode_libdir_flag_spec_ld_F77 \ |
| 14249 | hardcode_libdir_separator_F77 \ |
| 14250 | hardcode_automatic_F77 \ |
| 14251 | module_cmds_F77 \ |
| 14252 | module_expsym_cmds_F77 \ |
| 14253 | lt_cv_prog_compiler_c_o_F77 \ |
| 14254 | exclude_expsyms_F77 \ |
| 14255 | include_expsyms_F77; do |
| 14256 | |
| 14257 | case $var in |
| 14258 | old_archive_cmds_F77 | \ |
| 14259 | old_archive_from_new_cmds_F77 | \ |
| 14260 | archive_cmds_F77 | \ |
| 14261 | archive_expsym_cmds_F77 | \ |
| 14262 | module_cmds_F77 | \ |
| 14263 | module_expsym_cmds_F77 | \ |
| 14264 | old_archive_from_expsyms_cmds_F77 | \ |
| 14265 | export_symbols_cmds_F77 | \ |
| 14266 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 14267 | postinstall_cmds | postuninstall_cmds | \ |
| 14268 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 14269 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 14270 | # Double-quote double-evaled strings. |
| 14271 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 14272 | ;; |
| 14273 | *) |
| 14274 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 14275 | ;; |
| 14276 | esac |
| 14277 | done |
| 14278 | |
| 14279 | case $lt_echo in |
| 14280 | *'\$0 --fallback-echo"') |
| 14281 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 14282 | ;; |
| 14283 | esac |
| 14284 | |
| 14285 | cfgfile="$ofile" |
| 14286 | |
| 14287 | cat <<__EOF__ >> "$cfgfile" |
| 14288 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 14289 | |
| 14290 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 14291 | |
| 14292 | # Shell to use when invoking shell scripts. |
| 14293 | SHELL=$lt_SHELL |
| 14294 | |
| 14295 | # Whether or not to build shared libraries. |
| 14296 | build_libtool_libs=$enable_shared |
| 14297 | |
| 14298 | # Whether or not to build static libraries. |
| 14299 | build_old_libs=$enable_static |
| 14300 | |
| 14301 | # Whether or not to add -lc for building shared libraries. |
| 14302 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 14303 | |
| 14304 | # Whether or not to disallow shared libs when runtime libs are static |
| 14305 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 14306 | |
| 14307 | # Whether or not to optimize for fast installation. |
| 14308 | fast_install=$enable_fast_install |
| 14309 | |
| 14310 | # The host system. |
| 14311 | host_alias=$host_alias |
| 14312 | host=$host |
| 14313 | |
| 14314 | # An echo program that does not interpret backslashes. |
| 14315 | echo=$lt_echo |
| 14316 | |
| 14317 | # The archiver. |
| 14318 | AR=$lt_AR |
| 14319 | AR_FLAGS=$lt_AR_FLAGS |
| 14320 | |
| 14321 | # A C compiler. |
| 14322 | LTCC=$lt_LTCC |
| 14323 | |
| 14324 | # A language-specific compiler. |
| 14325 | CC=$lt_compiler_F77 |
| 14326 | |
| 14327 | # Is the compiler the GNU C compiler? |
| 14328 | with_gcc=$GCC_F77 |
| 14329 | |
| 14330 | # An ERE matcher. |
| 14331 | EGREP=$lt_EGREP |
| 14332 | |
| 14333 | # The linker used to build libraries. |
| 14334 | LD=$lt_LD_F77 |
| 14335 | |
| 14336 | # Whether we need hard or soft links. |
| 14337 | LN_S=$lt_LN_S |
| 14338 | |
| 14339 | # A BSD-compatible nm program. |
| 14340 | NM=$lt_NM |
| 14341 | |
| 14342 | # A symbol stripping program |
| 14343 | STRIP=$STRIP |
| 14344 | |
| 14345 | # Used to examine libraries when file_magic_cmd begins "file" |
| 14346 | MAGIC_CMD=$MAGIC_CMD |
| 14347 | |
| 14348 | # Used on cygwin: DLL creation program. |
| 14349 | DLLTOOL="$DLLTOOL" |
| 14350 | |
| 14351 | # Used on cygwin: object dumper. |
| 14352 | OBJDUMP="$OBJDUMP" |
| 14353 | |
| 14354 | # Used on cygwin: assembler. |
| 14355 | AS="$AS" |
| 14356 | |
| 14357 | # The name of the directory that contains temporary libtool files. |
| 14358 | objdir=$objdir |
| 14359 | |
| 14360 | # How to create reloadable object files. |
| 14361 | reload_flag=$lt_reload_flag |
| 14362 | reload_cmds=$lt_reload_cmds |
| 14363 | |
| 14364 | # How to pass a linker flag through the compiler. |
| 14365 | wl=$lt_lt_prog_compiler_wl_F77 |
| 14366 | |
| 14367 | # Object file suffix (normally "o"). |
| 14368 | objext="$ac_objext" |
| 14369 | |
| 14370 | # Old archive suffix (normally "a"). |
| 14371 | libext="$libext" |
| 14372 | |
| 14373 | # Shared library suffix (normally ".so"). |
| 14374 | shrext='$shrext' |
| 14375 | |
| 14376 | # Executable file suffix (normally ""). |
| 14377 | exeext="$exeext" |
| 14378 | |
| 14379 | # Additional compiler flags for building library objects. |
| 14380 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 14381 | pic_mode=$pic_mode |
| 14382 | |
| 14383 | # What is the maximum length of a command? |
| 14384 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 14385 | |
| 14386 | # Does compiler simultaneously support -c and -o options? |
| 14387 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 14388 | |
| 14389 | # Must we lock files when doing compilation ? |
| 14390 | need_locks=$lt_need_locks |
| 14391 | |
| 14392 | # Do we need the lib prefix for modules? |
| 14393 | need_lib_prefix=$need_lib_prefix |
| 14394 | |
| 14395 | # Do we need a version for libraries? |
| 14396 | need_version=$need_version |
| 14397 | |
| 14398 | # Whether dlopen is supported. |
| 14399 | dlopen_support=$enable_dlopen |
| 14400 | |
| 14401 | # Whether dlopen of programs is supported. |
| 14402 | dlopen_self=$enable_dlopen_self |
| 14403 | |
| 14404 | # Whether dlopen of statically linked programs is supported. |
| 14405 | dlopen_self_static=$enable_dlopen_self_static |
| 14406 | |
| 14407 | # Compiler flag to prevent dynamic linking. |
| 14408 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 14409 | |
| 14410 | # Compiler flag to turn off builtin functions. |
| 14411 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 14412 | |
| 14413 | # Compiler flag to allow reflexive dlopens. |
| 14414 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 14415 | |
| 14416 | # Compiler flag to generate shared objects directly from archives. |
| 14417 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 14418 | |
| 14419 | # Compiler flag to generate thread-safe objects. |
| 14420 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 14421 | |
| 14422 | # Library versioning type. |
| 14423 | version_type=$version_type |
| 14424 | |
| 14425 | # Format of library name prefix. |
| 14426 | libname_spec=$lt_libname_spec |
| 14427 | |
| 14428 | # List of archive names. First name is the real one, the rest are links. |
| 14429 | # The last name is the one that the linker finds with -lNAME. |
| 14430 | library_names_spec=$lt_library_names_spec |
| 14431 | |
| 14432 | # The coded name of the library, if different from the real name. |
| 14433 | soname_spec=$lt_soname_spec |
| 14434 | |
| 14435 | # Commands used to build and install an old-style archive. |
| 14436 | RANLIB=$lt_RANLIB |
| 14437 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 14438 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 14439 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 14440 | |
| 14441 | # Create an old-style archive from a shared archive. |
| 14442 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 14443 | |
| 14444 | # Create a temporary old-style archive to link instead of a shared archive. |
| 14445 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 14446 | |
| 14447 | # Commands used to build and install a shared archive. |
| 14448 | archive_cmds=$lt_archive_cmds_F77 |
| 14449 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 14450 | postinstall_cmds=$lt_postinstall_cmds |
| 14451 | postuninstall_cmds=$lt_postuninstall_cmds |
| 14452 | |
| 14453 | # Commands used to build a loadable module (assumed same as above if empty) |
| 14454 | module_cmds=$lt_module_cmds_F77 |
| 14455 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 14456 | |
| 14457 | # Commands to strip libraries. |
| 14458 | old_striplib=$lt_old_striplib |
| 14459 | striplib=$lt_striplib |
| 14460 | |
| 14461 | # Dependencies to place before the objects being linked to create a |
| 14462 | # shared library. |
| 14463 | predep_objects=$lt_predep_objects_F77 |
| 14464 | |
| 14465 | # Dependencies to place after the objects being linked to create a |
| 14466 | # shared library. |
| 14467 | postdep_objects=$lt_postdep_objects_F77 |
| 14468 | |
| 14469 | # Dependencies to place before the objects being linked to create a |
| 14470 | # shared library. |
| 14471 | predeps=$lt_predeps_F77 |
| 14472 | |
| 14473 | # Dependencies to place after the objects being linked to create a |
| 14474 | # shared library. |
| 14475 | postdeps=$lt_postdeps_F77 |
| 14476 | |
| 14477 | # The library search path used internally by the compiler when linking |
| 14478 | # a shared library. |
| 14479 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 14480 | |
| 14481 | # Method to check whether dependent libraries are shared objects. |
| 14482 | deplibs_check_method=$lt_deplibs_check_method |
| 14483 | |
| 14484 | # Command to use when deplibs_check_method == file_magic. |
| 14485 | file_magic_cmd=$lt_file_magic_cmd |
| 14486 | |
| 14487 | # Flag that allows shared libraries with undefined symbols to be built. |
| 14488 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 14489 | |
| 14490 | # Flag that forces no undefined symbols. |
| 14491 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 14492 | |
| 14493 | # Commands used to finish a libtool library installation in a directory. |
| 14494 | finish_cmds=$lt_finish_cmds |
| 14495 | |
| 14496 | # Same as above, but a single script fragment to be evaled but not shown. |
| 14497 | finish_eval=$lt_finish_eval |
| 14498 | |
| 14499 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 14500 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 14501 | |
| 14502 | # Transform the output of nm in a proper C declaration |
| 14503 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 14504 | |
| 14505 | # Transform the output of nm in a C name address pair |
| 14506 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 14507 | |
| 14508 | # This is the shared library runtime path variable. |
| 14509 | runpath_var=$runpath_var |
| 14510 | |
| 14511 | # This is the shared library path variable. |
| 14512 | shlibpath_var=$shlibpath_var |
| 14513 | |
| 14514 | # Is shlibpath searched before the hard-coded library search path? |
| 14515 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 14516 | |
| 14517 | # How to hardcode a shared library path into an executable. |
| 14518 | hardcode_action=$hardcode_action_F77 |
| 14519 | |
| 14520 | # Whether we should hardcode library paths into libraries. |
| 14521 | hardcode_into_libs=$hardcode_into_libs |
| 14522 | |
| 14523 | # Flag to hardcode \$libdir into a binary during linking. |
| 14524 | # This must work even if \$libdir does not exist. |
| 14525 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 14526 | |
| 14527 | # If ld is used when linking, flag to hardcode \$libdir into |
| 14528 | # a binary during linking. This must work even if \$libdir does |
| 14529 | # not exist. |
| 14530 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 14531 | |
| 14532 | # Whether we need a single -rpath flag with a separated argument. |
| 14533 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 14534 | |
| 14535 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 14536 | # resulting binary. |
| 14537 | hardcode_direct=$hardcode_direct_F77 |
| 14538 | |
| 14539 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 14540 | # resulting binary. |
| 14541 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 14542 | |
| 14543 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 14544 | # the resulting binary. |
| 14545 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 14546 | |
| 14547 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 14548 | # and all subsequent libraries and executables linked against it. |
| 14549 | hardcode_automatic=$hardcode_automatic_F77 |
| 14550 | |
| 14551 | # Variables whose values should be saved in libtool wrapper scripts and |
| 14552 | # restored at relink time. |
| 14553 | variables_saved_for_relink="$variables_saved_for_relink" |
| 14554 | |
| 14555 | # Whether libtool must link a program against all its dependency libraries. |
| 14556 | link_all_deplibs=$link_all_deplibs_F77 |
| 14557 | |
| 14558 | # Compile-time system search path for libraries |
| 14559 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 14560 | |
| 14561 | # Run-time system search path for libraries |
| 14562 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 14563 | |
| 14564 | # Fix the shell variable \$srcfile for the compiler. |
| 14565 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 14566 | |
| 14567 | # Set to yes if exported symbols are required. |
| 14568 | always_export_symbols=$always_export_symbols_F77 |
| 14569 | |
| 14570 | # The commands to list exported symbols. |
| 14571 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 14572 | |
| 14573 | # The commands to extract the exported symbol list from a shared archive. |
| 14574 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 14575 | |
| 14576 | # Symbols that should not be listed in the preloaded symbols. |
| 14577 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 14578 | |
| 14579 | # Symbols that must always be exported. |
| 14580 | include_expsyms=$lt_include_expsyms_F77 |
| 14581 | |
| 14582 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 14583 | |
| 14584 | __EOF__ |
| 14585 | |
| 14586 | |
| 14587 | else |
| 14588 | # If there is no Makefile yet, we rely on a make rule to execute |
| 14589 | # `config.status --recheck' to rerun these tests and create the |
| 14590 | # libtool script then. |
| 14591 | test -f Makefile && make "$ltmain" |
| 14592 | fi |
| 14593 | |
| 14594 | |
| 14595 | ac_ext=c |
| 14596 | ac_cpp='$CPP $CPPFLAGS' |
| 14597 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14598 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14599 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14600 | |
| 14601 | CC="$lt_save_CC" |
| 14602 | |
| 14603 | else |
| 14604 | tagname="" |
| 14605 | fi |
| 14606 | ;; |
| 14607 | |
| 14608 | GCJ) |
| 14609 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
| 14610 | |
| 14611 | |
| 14612 | |
| 14613 | # Source file extension for Java test sources. |
| 14614 | ac_ext=java |
| 14615 | |
| 14616 | # Object file extension for compiled Java test sources. |
| 14617 | objext=o |
| 14618 | objext_GCJ=$objext |
| 14619 | |
| 14620 | # Code to be used in simple compile tests |
| 14621 | lt_simple_compile_test_code="class foo {}\n" |
| 14622 | |
| 14623 | # Code to be used in simple link tests |
| 14624 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' |
| 14625 | |
| 14626 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 14627 | |
| 14628 | # If no C compiler was specified, use CC. |
| 14629 | LTCC=${LTCC-"$CC"} |
| 14630 | |
| 14631 | # Allow CC to be a program name with arguments. |
| 14632 | compiler=$CC |
| 14633 | |
| 14634 | |
| 14635 | # Allow CC to be a program name with arguments. |
| 14636 | lt_save_CC="$CC" |
| 14637 | CC=${GCJ-"gcj"} |
| 14638 | compiler=$CC |
| 14639 | compiler_GCJ=$CC |
| 14640 | |
| 14641 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 14642 | archive_cmds_need_lc_GCJ=no |
| 14643 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14644 | |
| 14645 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 14646 | |
| 14647 | if test "$GCC" = yes; then |
| 14648 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 14649 | |
| 14650 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 14651 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 14652 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 14653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14654 | else |
| 14655 | lt_cv_prog_compiler_rtti_exceptions=no |
| 14656 | ac_outfile=conftest.$ac_objext |
| 14657 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14658 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 14659 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14660 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14661 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14662 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14663 | # The option is referenced via a variable to avoid confusing sed. |
| 14664 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14665 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 14666 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14667 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 14668 | (eval echo "\"\$as_me:14668: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14669 | (eval "$lt_compile" 2>conftest.err) |
| 14670 | ac_status=$? |
| 14671 | cat conftest.err >&5 |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 14672 | echo "$as_me:14672: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14673 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14674 | # The compiler can only warn and ignore the option if not recognized |
| 14675 | # So say no if there are warnings |
| 14676 | if test ! -s conftest.err; then |
| 14677 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 14678 | fi |
| 14679 | fi |
| 14680 | $rm conftest* |
| 14681 | |
| 14682 | fi |
| 14683 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 14684 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 14685 | |
| 14686 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 14687 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 14688 | else |
| 14689 | : |
| 14690 | fi |
| 14691 | |
| 14692 | fi |
| 14693 | |
| 14694 | lt_prog_compiler_wl_GCJ= |
| 14695 | lt_prog_compiler_pic_GCJ= |
| 14696 | lt_prog_compiler_static_GCJ= |
| 14697 | |
| 14698 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14699 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 14700 | |
| 14701 | if test "$GCC" = yes; then |
| 14702 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14703 | lt_prog_compiler_static_GCJ='-static' |
| 14704 | |
| 14705 | case $host_os in |
| 14706 | aix*) |
| 14707 | # All AIX code is PIC. |
| 14708 | if test "$host_cpu" = ia64; then |
| 14709 | # AIX 5 now supports IA64 processor |
| 14710 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14711 | fi |
| 14712 | ;; |
| 14713 | |
| 14714 | amigaos*) |
| 14715 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14716 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14717 | # like `-m68040'. |
| 14718 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 14719 | ;; |
| 14720 | |
| 14721 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 14722 | # PIC is the default for these OSes. |
| 14723 | ;; |
| 14724 | |
| 14725 | mingw* | pw32* | os2*) |
| 14726 | # This hack is so that the source file can tell whether it is being |
| 14727 | # built for inclusion in a dll (and should export symbols for example). |
| 14728 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 14729 | ;; |
| 14730 | |
| 14731 | darwin* | rhapsody*) |
| 14732 | # PIC is the default on this platform |
| 14733 | # Common symbols not allowed in MH_DYLIB files |
| 14734 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 14735 | ;; |
| 14736 | |
| 14737 | msdosdjgpp*) |
| 14738 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14739 | # on systems that don't support them. |
| 14740 | lt_prog_compiler_can_build_shared_GCJ=no |
| 14741 | enable_shared=no |
| 14742 | ;; |
| 14743 | |
| 14744 | sysv4*MP*) |
| 14745 | if test -d /usr/nec; then |
| 14746 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 14747 | fi |
| 14748 | ;; |
| 14749 | |
| 14750 | hpux*) |
| 14751 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14752 | # not for PA HP-UX. |
| 14753 | case "$host_cpu" in |
| 14754 | hppa*64*|ia64*) |
| 14755 | # +Z the default |
| 14756 | ;; |
| 14757 | *) |
| 14758 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 14759 | ;; |
| 14760 | esac |
| 14761 | ;; |
| 14762 | |
| 14763 | *) |
| 14764 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 14765 | ;; |
| 14766 | esac |
| 14767 | else |
| 14768 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 14769 | case $host_os in |
| 14770 | aix*) |
| 14771 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14772 | if test "$host_cpu" = ia64; then |
| 14773 | # AIX 5 now supports IA64 processor |
| 14774 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14775 | else |
| 14776 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 14777 | fi |
| 14778 | ;; |
| 14779 | |
| 14780 | mingw* | pw32* | os2*) |
| 14781 | # This hack is so that the source file can tell whether it is being |
| 14782 | # built for inclusion in a dll (and should export symbols for example). |
| 14783 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 14784 | ;; |
| 14785 | |
| 14786 | hpux9* | hpux10* | hpux11*) |
| 14787 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14788 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14789 | # not for PA HP-UX. |
| 14790 | case "$host_cpu" in |
| 14791 | hppa*64*|ia64*) |
| 14792 | # +Z the default |
| 14793 | ;; |
| 14794 | *) |
| 14795 | lt_prog_compiler_pic_GCJ='+Z' |
| 14796 | ;; |
| 14797 | esac |
| 14798 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14799 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 14800 | ;; |
| 14801 | |
| 14802 | irix5* | irix6* | nonstopux*) |
| 14803 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14804 | # PIC (with -KPIC) is the default. |
| 14805 | lt_prog_compiler_static_GCJ='-non_shared' |
| 14806 | ;; |
| 14807 | |
| 14808 | newsos6) |
| 14809 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 14810 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14811 | ;; |
| 14812 | |
| 14813 | linux*) |
| 14814 | case $CC in |
| 14815 | icc|ecc) |
| 14816 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14817 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 14818 | lt_prog_compiler_static_GCJ='-static' |
| 14819 | ;; |
| 14820 | ccc) |
| 14821 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14822 | # All Alpha code is PIC. |
| 14823 | lt_prog_compiler_static_GCJ='-non_shared' |
| 14824 | ;; |
| 14825 | esac |
| 14826 | ;; |
| 14827 | |
| 14828 | osf3* | osf4* | osf5*) |
| 14829 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14830 | # All OSF/1 code is PIC. |
| 14831 | lt_prog_compiler_static_GCJ='-non_shared' |
| 14832 | ;; |
| 14833 | |
| 14834 | sco3.2v5*) |
| 14835 | lt_prog_compiler_pic_GCJ='-Kpic' |
| 14836 | lt_prog_compiler_static_GCJ='-dn' |
| 14837 | ;; |
| 14838 | |
| 14839 | solaris*) |
| 14840 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14841 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 14842 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14843 | ;; |
| 14844 | |
| 14845 | sunos4*) |
| 14846 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 14847 | lt_prog_compiler_pic_GCJ='-PIC' |
| 14848 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14849 | ;; |
| 14850 | |
| 14851 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 14852 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14853 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 14854 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14855 | ;; |
| 14856 | |
| 14857 | sysv4*MP*) |
| 14858 | if test -d /usr/nec ;then |
| 14859 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 14860 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14861 | fi |
| 14862 | ;; |
| 14863 | |
| 14864 | uts4*) |
| 14865 | lt_prog_compiler_pic_GCJ='-pic' |
| 14866 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14867 | ;; |
| 14868 | |
| 14869 | *) |
| 14870 | lt_prog_compiler_can_build_shared_GCJ=no |
| 14871 | ;; |
| 14872 | esac |
| 14873 | fi |
| 14874 | |
| 14875 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 14876 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
| 14877 | |
| 14878 | # |
| 14879 | # Check to make sure the PIC flag actually works. |
| 14880 | # |
| 14881 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
| 14882 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 14883 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
| 14884 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 14885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14886 | else |
| 14887 | lt_prog_compiler_pic_works_GCJ=no |
| 14888 | ac_outfile=conftest.$ac_objext |
| 14889 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14890 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 14891 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14892 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14893 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14894 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14895 | # The option is referenced via a variable to avoid confusing sed. |
| 14896 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14897 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 14898 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14899 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 14900 | (eval echo "\"\$as_me:14900: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14901 | (eval "$lt_compile" 2>conftest.err) |
| 14902 | ac_status=$? |
| 14903 | cat conftest.err >&5 |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 14904 | echo "$as_me:14904: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14905 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14906 | # The compiler can only warn and ignore the option if not recognized |
| 14907 | # So say no if there are warnings |
| 14908 | if test ! -s conftest.err; then |
| 14909 | lt_prog_compiler_pic_works_GCJ=yes |
| 14910 | fi |
| 14911 | fi |
| 14912 | $rm conftest* |
| 14913 | |
| 14914 | fi |
| 14915 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 14916 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
| 14917 | |
| 14918 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 14919 | case $lt_prog_compiler_pic_GCJ in |
| 14920 | "" | " "*) ;; |
| 14921 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 14922 | esac |
| 14923 | else |
| 14924 | lt_prog_compiler_pic_GCJ= |
| 14925 | lt_prog_compiler_can_build_shared_GCJ=no |
| 14926 | fi |
| 14927 | |
| 14928 | fi |
| 14929 | case "$host_os" in |
| 14930 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14931 | *djgpp*) |
| 14932 | lt_prog_compiler_pic_GCJ= |
| 14933 | ;; |
| 14934 | *) |
| 14935 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 14936 | ;; |
| 14937 | esac |
| 14938 | |
| 14939 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14940 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 14941 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 14942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14943 | else |
| 14944 | lt_cv_prog_compiler_c_o_GCJ=no |
| 14945 | $rm -r conftest 2>/dev/null |
| 14946 | mkdir conftest |
| 14947 | cd conftest |
| 14948 | mkdir out |
| 14949 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14950 | |
| 14951 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 14952 | # that will create temporary files in the current directory regardless of |
| 14953 | # the output directory. Thus, making CWD read-only will cause this test |
| 14954 | # to fail, enabling locking or at least warning the user not to do parallel |
| 14955 | # builds. |
| 14956 | chmod -w . |
| 14957 | |
| 14958 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14959 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14960 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14961 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14962 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14963 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14964 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 14965 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14966 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 14967 | (eval echo "\"\$as_me:14967: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14968 | (eval "$lt_compile" 2>out/conftest.err) |
| 14969 | ac_status=$? |
| 14970 | cat out/conftest.err >&5 |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 14971 | echo "$as_me:14971: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14972 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14973 | then |
| 14974 | # The compiler can only warn and ignore the option if not recognized |
| 14975 | # So say no if there are warnings |
| 14976 | if test ! -s out/conftest.err; then |
| 14977 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 14978 | fi |
| 14979 | fi |
| 14980 | chmod u+w . |
| 14981 | $rm conftest* out/* |
| 14982 | rmdir out |
| 14983 | cd .. |
| 14984 | rmdir conftest |
| 14985 | $rm conftest* |
| 14986 | |
| 14987 | fi |
| 14988 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 14989 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
| 14990 | |
| 14991 | |
| 14992 | hard_links="nottested" |
| 14993 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 14994 | # do not overwrite the value of need_locks provided by the user |
| 14995 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 14996 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 14997 | hard_links=yes |
| 14998 | $rm conftest* |
| 14999 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15000 | touch conftest.a |
| 15001 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 15002 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15003 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 15004 | echo "${ECHO_T}$hard_links" >&6 |
| 15005 | if test "$hard_links" = no; then |
| 15006 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 15007 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 15008 | need_locks=warn |
| 15009 | fi |
| 15010 | else |
| 15011 | need_locks=no |
| 15012 | fi |
| 15013 | |
| 15014 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 15015 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 15016 | |
| 15017 | runpath_var= |
| 15018 | allow_undefined_flag_GCJ= |
| 15019 | enable_shared_with_static_runtimes_GCJ=no |
| 15020 | archive_cmds_GCJ= |
| 15021 | archive_expsym_cmds_GCJ= |
| 15022 | old_archive_From_new_cmds_GCJ= |
| 15023 | old_archive_from_expsyms_cmds_GCJ= |
| 15024 | export_dynamic_flag_spec_GCJ= |
| 15025 | whole_archive_flag_spec_GCJ= |
| 15026 | thread_safe_flag_spec_GCJ= |
| 15027 | hardcode_libdir_flag_spec_GCJ= |
| 15028 | hardcode_libdir_flag_spec_ld_GCJ= |
| 15029 | hardcode_libdir_separator_GCJ= |
| 15030 | hardcode_direct_GCJ=no |
| 15031 | hardcode_minus_L_GCJ=no |
| 15032 | hardcode_shlibpath_var_GCJ=unsupported |
| 15033 | link_all_deplibs_GCJ=unknown |
| 15034 | hardcode_automatic_GCJ=no |
| 15035 | module_cmds_GCJ= |
| 15036 | module_expsym_cmds_GCJ= |
| 15037 | always_export_symbols_GCJ=no |
| 15038 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 15039 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 15040 | # included in the symbol list |
| 15041 | include_expsyms_GCJ= |
| 15042 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 15043 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 15044 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 15045 | # as well as any symbol that contains `d'. |
| 15046 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 15047 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 15048 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 15049 | # the symbol is explicitly referenced. Since portable code cannot |
| 15050 | # rely on this symbol name, it's probably fine to never include it in |
| 15051 | # preloaded symbol tables. |
| 15052 | extract_expsyms_cmds= |
| 15053 | |
| 15054 | case $host_os in |
| 15055 | cygwin* | mingw* | pw32*) |
| 15056 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 15057 | # When not using gcc, we currently assume that we are using |
| 15058 | # Microsoft Visual C++. |
| 15059 | if test "$GCC" != yes; then |
| 15060 | with_gnu_ld=no |
| 15061 | fi |
| 15062 | ;; |
| 15063 | openbsd*) |
| 15064 | with_gnu_ld=no |
| 15065 | ;; |
| 15066 | esac |
| 15067 | |
| 15068 | ld_shlibs_GCJ=yes |
| 15069 | if test "$with_gnu_ld" = yes; then |
| 15070 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 15071 | wlarc='${wl}' |
| 15072 | |
| 15073 | # See if GNU ld supports shared libraries. |
| 15074 | case $host_os in |
| 15075 | aix3* | aix4* | aix5*) |
| 15076 | # On AIX/PPC, the GNU linker is very broken |
| 15077 | if test "$host_cpu" != ia64; then |
| 15078 | ld_shlibs_GCJ=no |
| 15079 | cat <<EOF 1>&2 |
| 15080 | |
| 15081 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 15082 | *** to be unable to reliably create shared libraries on AIX. |
| 15083 | *** Therefore, libtool is disabling shared libraries support. If you |
| 15084 | *** really care for shared libraries, you may want to modify your PATH |
| 15085 | *** so that a non-GNU linker is found, and then restart. |
| 15086 | |
| 15087 | EOF |
| 15088 | fi |
| 15089 | ;; |
| 15090 | |
| 15091 | amigaos*) |
| 15092 | 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)' |
| 15093 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15094 | hardcode_minus_L_GCJ=yes |
| 15095 | |
| 15096 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 15097 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 15098 | # to version 4, is to share data among multiple programs linked |
| 15099 | # with the same dynamic library. Since this doesn't match the |
| 15100 | # behavior of shared libraries on other platforms, we can't use |
| 15101 | # them. |
| 15102 | ld_shlibs_GCJ=no |
| 15103 | ;; |
| 15104 | |
| 15105 | beos*) |
| 15106 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15107 | allow_undefined_flag_GCJ=unsupported |
| 15108 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 15109 | # support --undefined. This deserves some investigation. FIXME |
| 15110 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15111 | else |
| 15112 | ld_shlibs_GCJ=no |
| 15113 | fi |
| 15114 | ;; |
| 15115 | |
| 15116 | cygwin* | mingw* | pw32*) |
| 15117 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 15118 | # as there is no search path for DLLs. |
| 15119 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15120 | allow_undefined_flag_GCJ=unsupported |
| 15121 | always_export_symbols_GCJ=no |
| 15122 | enable_shared_with_static_runtimes_GCJ=yes |
| 15123 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 15124 | |
| 15125 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 15126 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 15127 | # If the export-symbols file already is a .def file (1st line |
| 15128 | # is EXPORTS), use it as is; otherwise, prepend... |
| 15129 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15130 | cp $export_symbols $output_objdir/$soname.def; |
| 15131 | else |
| 15132 | echo EXPORTS > $output_objdir/$soname.def; |
| 15133 | cat $export_symbols >> $output_objdir/$soname.def; |
| 15134 | fi~ |
| 15135 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 15136 | else |
| 15137 | ld_shlibs=no |
| 15138 | fi |
| 15139 | ;; |
| 15140 | |
| 15141 | netbsd*) |
| 15142 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15143 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 15144 | wlarc= |
| 15145 | else |
| 15146 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15147 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15148 | fi |
| 15149 | ;; |
| 15150 | |
| 15151 | solaris* | sysv5*) |
| 15152 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 15153 | ld_shlibs_GCJ=no |
| 15154 | cat <<EOF 1>&2 |
| 15155 | |
| 15156 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 15157 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 15158 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15159 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 15160 | *** your PATH or compiler configuration so that the native linker is |
| 15161 | *** used, and then restart. |
| 15162 | |
| 15163 | EOF |
| 15164 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15165 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15166 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15167 | else |
| 15168 | ld_shlibs_GCJ=no |
| 15169 | fi |
| 15170 | ;; |
| 15171 | |
| 15172 | sunos4*) |
| 15173 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15174 | wlarc= |
| 15175 | hardcode_direct_GCJ=yes |
| 15176 | hardcode_shlibpath_var_GCJ=no |
| 15177 | ;; |
| 15178 | |
| 15179 | *) |
| 15180 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15181 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15182 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15183 | else |
| 15184 | ld_shlibs_GCJ=no |
| 15185 | fi |
| 15186 | ;; |
| 15187 | esac |
| 15188 | |
| 15189 | if test "$ld_shlibs_GCJ" = yes; then |
| 15190 | runpath_var=LD_RUN_PATH |
| 15191 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 15192 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 15193 | # ancient GNU ld didn't support --whole-archive et. al. |
| 15194 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 15195 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15196 | else |
| 15197 | whole_archive_flag_spec_GCJ= |
| 15198 | fi |
| 15199 | fi |
| 15200 | else |
| 15201 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 15202 | case $host_os in |
| 15203 | aix3*) |
| 15204 | allow_undefined_flag_GCJ=unsupported |
| 15205 | always_export_symbols_GCJ=yes |
| 15206 | 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' |
| 15207 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 15208 | # are no directories specified by -L. |
| 15209 | hardcode_minus_L_GCJ=yes |
| 15210 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 15211 | # Neither direct hardcoding nor static linking is supported with a |
| 15212 | # broken collect2. |
| 15213 | hardcode_direct_GCJ=unsupported |
| 15214 | fi |
| 15215 | ;; |
| 15216 | |
| 15217 | aix4* | aix5*) |
| 15218 | if test "$host_cpu" = ia64; then |
| 15219 | # On IA64, the linker does run time linking by default, so we don't |
| 15220 | # have to do anything special. |
| 15221 | aix_use_runtimelinking=no |
| 15222 | exp_sym_flag='-Bexport' |
| 15223 | no_entry_flag="" |
| 15224 | else |
| 15225 | # If we're using GNU nm, then we don't want the "-C" option. |
| 15226 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 15227 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 15228 | 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' |
| 15229 | else |
| 15230 | 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' |
| 15231 | fi |
| 15232 | aix_use_runtimelinking=no |
| 15233 | |
| 15234 | # Test if we are trying to use run time linking or normal |
| 15235 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15236 | # need to do runtime linking. |
| 15237 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 15238 | for ld_flag in $LDFLAGS; do |
| 15239 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 15240 | aix_use_runtimelinking=yes |
| 15241 | break |
| 15242 | fi |
| 15243 | done |
| 15244 | esac |
| 15245 | |
| 15246 | exp_sym_flag='-bexport' |
| 15247 | no_entry_flag='-bnoentry' |
| 15248 | fi |
| 15249 | |
| 15250 | # When large executables or shared objects are built, AIX ld can |
| 15251 | # have problems creating the table of contents. If linking a library |
| 15252 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15253 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15254 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15255 | |
| 15256 | archive_cmds_GCJ='' |
| 15257 | hardcode_direct_GCJ=yes |
| 15258 | hardcode_libdir_separator_GCJ=':' |
| 15259 | link_all_deplibs_GCJ=yes |
| 15260 | |
| 15261 | if test "$GCC" = yes; then |
| 15262 | case $host_os in aix4.012|aix4.012.*) |
| 15263 | # We only want to do this on AIX 4.2 and lower, the check |
| 15264 | # below for broken collect2 doesn't work under 4.3+ |
| 15265 | collect2name=`${CC} -print-prog-name=collect2` |
| 15266 | if test -f "$collect2name" && \ |
| 15267 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 15268 | then |
| 15269 | # We have reworked collect2 |
| 15270 | hardcode_direct_GCJ=yes |
| 15271 | else |
| 15272 | # We have old collect2 |
| 15273 | hardcode_direct_GCJ=unsupported |
| 15274 | # It fails to find uninstalled libraries when the uninstalled |
| 15275 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15276 | # to unsupported forces relinking |
| 15277 | hardcode_minus_L_GCJ=yes |
| 15278 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15279 | hardcode_libdir_separator_GCJ= |
| 15280 | fi |
| 15281 | esac |
| 15282 | shared_flag='-shared' |
| 15283 | else |
| 15284 | # not using gcc |
| 15285 | if test "$host_cpu" = ia64; then |
| 15286 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15287 | # chokes on -Wl,-G. The following line is correct: |
| 15288 | shared_flag='-G' |
| 15289 | else |
| 15290 | if test "$aix_use_runtimelinking" = yes; then |
| 15291 | shared_flag='${wl}-G' |
| 15292 | else |
| 15293 | shared_flag='${wl}-bM:SRE' |
| 15294 | fi |
| 15295 | fi |
| 15296 | fi |
| 15297 | |
| 15298 | # It seems that -bexpall does not export symbols beginning with |
| 15299 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15300 | always_export_symbols_GCJ=yes |
| 15301 | if test "$aix_use_runtimelinking" = yes; then |
| 15302 | # Warning - without using the other runtime loading flags (-brtl), |
| 15303 | # -berok will link without error, but may produce a broken library. |
| 15304 | allow_undefined_flag_GCJ='-berok' |
| 15305 | # Determine the default libpath from the value encoded in an empty executable. |
| 15306 | cat >conftest.$ac_ext <<_ACEOF |
| 15307 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15308 | /* confdefs.h. */ |
| 15309 | _ACEOF |
| 15310 | cat confdefs.h >>conftest.$ac_ext |
| 15311 | cat >>conftest.$ac_ext <<_ACEOF |
| 15312 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15313 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15314 | int |
| 15315 | main () |
| 15316 | { |
| 15317 | |
| 15318 | ; |
| 15319 | return 0; |
| 15320 | } |
| 15321 | _ACEOF |
| 15322 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15324 | (eval $ac_link) 2>&5 |
| 15325 | ac_status=$? |
| 15326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15327 | (exit $ac_status); } && |
| 15328 | { ac_try='test -s conftest$ac_exeext' |
| 15329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15330 | (eval $ac_try) 2>&5 |
| 15331 | ac_status=$? |
| 15332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15333 | (exit $ac_status); }; }; then |
| 15334 | |
| 15335 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15336 | }'` |
| 15337 | # Check for a 64-bit object if we didn't find anything. |
| 15338 | 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; } |
| 15339 | }'`; fi |
| 15340 | else |
| 15341 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15343 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15344 | fi |
| 15345 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15346 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15347 | |
| 15348 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15349 | 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" |
| 15350 | else |
| 15351 | if test "$host_cpu" = ia64; then |
| 15352 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 15353 | allow_undefined_flag_GCJ="-z nodefs" |
| 15354 | 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" |
| 15355 | else |
| 15356 | # Determine the default libpath from the value encoded in an empty executable. |
| 15357 | cat >conftest.$ac_ext <<_ACEOF |
| 15358 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15359 | /* confdefs.h. */ |
| 15360 | _ACEOF |
| 15361 | cat confdefs.h >>conftest.$ac_ext |
| 15362 | cat >>conftest.$ac_ext <<_ACEOF |
| 15363 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15364 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15365 | int |
| 15366 | main () |
| 15367 | { |
| 15368 | |
| 15369 | ; |
| 15370 | return 0; |
| 15371 | } |
| 15372 | _ACEOF |
| 15373 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15375 | (eval $ac_link) 2>&5 |
| 15376 | ac_status=$? |
| 15377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15378 | (exit $ac_status); } && |
| 15379 | { ac_try='test -s conftest$ac_exeext' |
| 15380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15381 | (eval $ac_try) 2>&5 |
| 15382 | ac_status=$? |
| 15383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15384 | (exit $ac_status); }; }; then |
| 15385 | |
| 15386 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15387 | }'` |
| 15388 | # Check for a 64-bit object if we didn't find anything. |
| 15389 | 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; } |
| 15390 | }'`; fi |
| 15391 | else |
| 15392 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15394 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15395 | fi |
| 15396 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15397 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15398 | |
| 15399 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15400 | # Warning - without using the other run time loading flags, |
| 15401 | # -berok will link without error, but may produce a broken library. |
| 15402 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 15403 | allow_undefined_flag_GCJ=' ${wl}-berok' |
| 15404 | # -bexpall does not export symbols beginning with underscore (_) |
| 15405 | always_export_symbols_GCJ=yes |
| 15406 | # Exported symbols can be pulled into shared objects from archives |
| 15407 | whole_archive_flag_spec_GCJ=' ' |
| 15408 | archive_cmds_need_lc_GCJ=yes |
| 15409 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 15410 | 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' |
| 15411 | fi |
| 15412 | fi |
| 15413 | ;; |
| 15414 | |
| 15415 | amigaos*) |
| 15416 | 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)' |
| 15417 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15418 | hardcode_minus_L_GCJ=yes |
| 15419 | # see comment about different semantics on the GNU ld section |
| 15420 | ld_shlibs_GCJ=no |
| 15421 | ;; |
| 15422 | |
| 15423 | bsdi4*) |
| 15424 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 15425 | ;; |
| 15426 | |
| 15427 | cygwin* | mingw* | pw32*) |
| 15428 | # When not using gcc, we currently assume that we are using |
| 15429 | # Microsoft Visual C++. |
| 15430 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15431 | # no search path for DLLs. |
| 15432 | hardcode_libdir_flag_spec_GCJ=' ' |
| 15433 | allow_undefined_flag_GCJ=unsupported |
| 15434 | # Tell ltmain to make .lib files, not .a files. |
| 15435 | libext=lib |
| 15436 | # Tell ltmain to make .dll files, not .so files. |
| 15437 | shrext=".dll" |
| 15438 | # FIXME: Setting linknames here is a bad hack. |
| 15439 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 15440 | # The linker will automatically build a .lib file if we build a DLL. |
| 15441 | old_archive_From_new_cmds_GCJ='true' |
| 15442 | # FIXME: Should let the user specify the lib program. |
| 15443 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 15444 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 15445 | enable_shared_with_static_runtimes_GCJ=yes |
| 15446 | ;; |
| 15447 | |
| 15448 | darwin* | rhapsody*) |
| 15449 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 15450 | archive_cmds_need_lc_GCJ=no |
| 15451 | case "$host_os" in |
| 15452 | rhapsody* | darwin1.[012]) |
| 15453 | allow_undefined_flag_GCJ='-undefined suppress' |
| 15454 | ;; |
| 15455 | *) # Darwin 1.3 on |
| 15456 | test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
| 15457 | ;; |
| 15458 | esac |
| 15459 | # FIXME: Relying on posixy $() will cause problems for |
| 15460 | # cross-compilation, but unfortunately the echo tests do not |
| 15461 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| 15462 | # `"' quotes if we put them in here... so don't! |
| 15463 | lt_int_apple_cc_single_mod=no |
| 15464 | output_verbose_link_cmd='echo' |
| 15465 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 15466 | lt_int_apple_cc_single_mod=yes |
| 15467 | fi |
| 15468 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 15469 | archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15470 | else |
| 15471 | 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' |
| 15472 | fi |
| 15473 | module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
| 15474 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 15475 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 15476 | 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}' |
| 15477 | else |
| 15478 | 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}' |
| 15479 | fi |
| 15480 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 15481 | hardcode_direct_GCJ=no |
| 15482 | hardcode_automatic_GCJ=yes |
| 15483 | hardcode_shlibpath_var_GCJ=unsupported |
| 15484 | whole_archive_flag_spec_GCJ='-all_load $convenience' |
| 15485 | link_all_deplibs_GCJ=yes |
| 15486 | fi |
| 15487 | ;; |
| 15488 | |
| 15489 | dgux*) |
| 15490 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15491 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15492 | hardcode_shlibpath_var_GCJ=no |
| 15493 | ;; |
| 15494 | |
| 15495 | freebsd1*) |
| 15496 | ld_shlibs_GCJ=no |
| 15497 | ;; |
| 15498 | |
| 15499 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15500 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15501 | # does not break anything, and helps significantly (at the cost of a little |
| 15502 | # extra space). |
| 15503 | freebsd2.2*) |
| 15504 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15505 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15506 | hardcode_direct_GCJ=yes |
| 15507 | hardcode_shlibpath_var_GCJ=no |
| 15508 | ;; |
| 15509 | |
| 15510 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15511 | freebsd2*) |
| 15512 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15513 | hardcode_direct_GCJ=yes |
| 15514 | hardcode_minus_L_GCJ=yes |
| 15515 | hardcode_shlibpath_var_GCJ=no |
| 15516 | ;; |
| 15517 | |
| 15518 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 15519 | freebsd*) |
| 15520 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15521 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15522 | hardcode_direct_GCJ=yes |
| 15523 | hardcode_shlibpath_var_GCJ=no |
| 15524 | ;; |
| 15525 | |
| 15526 | hpux9*) |
| 15527 | if test "$GCC" = yes; then |
| 15528 | 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' |
| 15529 | else |
| 15530 | 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' |
| 15531 | fi |
| 15532 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 15533 | hardcode_libdir_separator_GCJ=: |
| 15534 | hardcode_direct_GCJ=yes |
| 15535 | |
| 15536 | # hardcode_minus_L: Not really in the search PATH, |
| 15537 | # but as the default location of the library. |
| 15538 | hardcode_minus_L_GCJ=yes |
| 15539 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 15540 | ;; |
| 15541 | |
| 15542 | hpux10* | hpux11*) |
| 15543 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15544 | case "$host_cpu" in |
| 15545 | hppa*64*|ia64*) |
| 15546 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15547 | ;; |
| 15548 | *) |
| 15549 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15550 | ;; |
| 15551 | esac |
| 15552 | else |
| 15553 | case "$host_cpu" in |
| 15554 | hppa*64*|ia64*) |
| 15555 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15556 | ;; |
| 15557 | *) |
| 15558 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15559 | ;; |
| 15560 | esac |
| 15561 | fi |
| 15562 | if test "$with_gnu_ld" = no; then |
| 15563 | case "$host_cpu" in |
| 15564 | hppa*64*) |
| 15565 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 15566 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 15567 | hardcode_libdir_separator_GCJ=: |
| 15568 | hardcode_direct_GCJ=no |
| 15569 | hardcode_shlibpath_var_GCJ=no |
| 15570 | ;; |
| 15571 | ia64*) |
| 15572 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15573 | hardcode_direct_GCJ=no |
| 15574 | hardcode_shlibpath_var_GCJ=no |
| 15575 | |
| 15576 | # hardcode_minus_L: Not really in the search PATH, |
| 15577 | # but as the default location of the library. |
| 15578 | hardcode_minus_L_GCJ=yes |
| 15579 | ;; |
| 15580 | *) |
| 15581 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 15582 | hardcode_libdir_separator_GCJ=: |
| 15583 | hardcode_direct_GCJ=yes |
| 15584 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 15585 | |
| 15586 | # hardcode_minus_L: Not really in the search PATH, |
| 15587 | # but as the default location of the library. |
| 15588 | hardcode_minus_L_GCJ=yes |
| 15589 | ;; |
| 15590 | esac |
| 15591 | fi |
| 15592 | ;; |
| 15593 | |
| 15594 | irix5* | irix6* | nonstopux*) |
| 15595 | if test "$GCC" = yes; then |
| 15596 | 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' |
| 15597 | else |
| 15598 | 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' |
| 15599 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 15600 | fi |
| 15601 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 15602 | hardcode_libdir_separator_GCJ=: |
| 15603 | link_all_deplibs_GCJ=yes |
| 15604 | ;; |
| 15605 | |
| 15606 | netbsd*) |
| 15607 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15608 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15609 | else |
| 15610 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15611 | fi |
| 15612 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15613 | hardcode_direct_GCJ=yes |
| 15614 | hardcode_shlibpath_var_GCJ=no |
| 15615 | ;; |
| 15616 | |
| 15617 | newsos6) |
| 15618 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15619 | hardcode_direct_GCJ=yes |
| 15620 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 15621 | hardcode_libdir_separator_GCJ=: |
| 15622 | hardcode_shlibpath_var_GCJ=no |
| 15623 | ;; |
| 15624 | |
| 15625 | openbsd*) |
| 15626 | hardcode_direct_GCJ=yes |
| 15627 | hardcode_shlibpath_var_GCJ=no |
| 15628 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15629 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15630 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 15631 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 15632 | else |
| 15633 | case $host_os in |
| 15634 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15635 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15636 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15637 | ;; |
| 15638 | *) |
| 15639 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15640 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 15641 | ;; |
| 15642 | esac |
| 15643 | fi |
| 15644 | ;; |
| 15645 | |
| 15646 | os2*) |
| 15647 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15648 | hardcode_minus_L_GCJ=yes |
| 15649 | allow_undefined_flag_GCJ=unsupported |
| 15650 | 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' |
| 15651 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 15652 | ;; |
| 15653 | |
| 15654 | osf3*) |
| 15655 | if test "$GCC" = yes; then |
| 15656 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 15657 | 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' |
| 15658 | else |
| 15659 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 15660 | 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' |
| 15661 | fi |
| 15662 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 15663 | hardcode_libdir_separator_GCJ=: |
| 15664 | ;; |
| 15665 | |
| 15666 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 15667 | if test "$GCC" = yes; then |
| 15668 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 15669 | 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' |
| 15670 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 15671 | else |
| 15672 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 15673 | 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' |
| 15674 | 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~ |
| 15675 | $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' |
| 15676 | |
| 15677 | # Both c and cxx compiler support -rpath directly |
| 15678 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 15679 | fi |
| 15680 | hardcode_libdir_separator_GCJ=: |
| 15681 | ;; |
| 15682 | |
| 15683 | sco3.2v5*) |
| 15684 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15685 | hardcode_shlibpath_var_GCJ=no |
| 15686 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
| 15687 | runpath_var=LD_RUN_PATH |
| 15688 | hardcode_runpath_var=yes |
| 15689 | ;; |
| 15690 | |
| 15691 | solaris*) |
| 15692 | no_undefined_flag_GCJ=' -z text' |
| 15693 | if test "$GCC" = yes; then |
| 15694 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15695 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15696 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 15697 | else |
| 15698 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15699 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15700 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 15701 | fi |
| 15702 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15703 | hardcode_shlibpath_var_GCJ=no |
| 15704 | case $host_os in |
| 15705 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 15706 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15707 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 15708 | esac |
| 15709 | link_all_deplibs_GCJ=yes |
| 15710 | ;; |
| 15711 | |
| 15712 | sunos4*) |
| 15713 | if test "x$host_vendor" = xsequent; then |
| 15714 | # Use $CC to link under sequent, because it throws in some extra .o |
| 15715 | # files that make .init and .fini sections work. |
| 15716 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15717 | else |
| 15718 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 15719 | fi |
| 15720 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15721 | hardcode_direct_GCJ=yes |
| 15722 | hardcode_minus_L_GCJ=yes |
| 15723 | hardcode_shlibpath_var_GCJ=no |
| 15724 | ;; |
| 15725 | |
| 15726 | sysv4) |
| 15727 | case $host_vendor in |
| 15728 | sni) |
| 15729 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15730 | hardcode_direct_GCJ=yes # is this really true??? |
| 15731 | ;; |
| 15732 | siemens) |
| 15733 | ## LD is ld it makes a PLAMLIB |
| 15734 | ## CC just makes a GrossModule. |
| 15735 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15736 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 15737 | hardcode_direct_GCJ=no |
| 15738 | ;; |
| 15739 | motorola) |
| 15740 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15741 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 15742 | ;; |
| 15743 | esac |
| 15744 | runpath_var='LD_RUN_PATH' |
| 15745 | hardcode_shlibpath_var_GCJ=no |
| 15746 | ;; |
| 15747 | |
| 15748 | sysv4.3*) |
| 15749 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15750 | hardcode_shlibpath_var_GCJ=no |
| 15751 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 15752 | ;; |
| 15753 | |
| 15754 | sysv4*MP*) |
| 15755 | if test -d /usr/nec; then |
| 15756 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15757 | hardcode_shlibpath_var_GCJ=no |
| 15758 | runpath_var=LD_RUN_PATH |
| 15759 | hardcode_runpath_var=yes |
| 15760 | ld_shlibs_GCJ=yes |
| 15761 | fi |
| 15762 | ;; |
| 15763 | |
| 15764 | sysv4.2uw2*) |
| 15765 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15766 | hardcode_direct_GCJ=yes |
| 15767 | hardcode_minus_L_GCJ=no |
| 15768 | hardcode_shlibpath_var_GCJ=no |
| 15769 | hardcode_runpath_var=yes |
| 15770 | runpath_var=LD_RUN_PATH |
| 15771 | ;; |
| 15772 | |
| 15773 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 15774 | no_undefined_flag_GCJ='${wl}-z ${wl}text' |
| 15775 | if test "$GCC" = yes; then |
| 15776 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15777 | else |
| 15778 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15779 | fi |
| 15780 | runpath_var='LD_RUN_PATH' |
| 15781 | hardcode_shlibpath_var_GCJ=no |
| 15782 | ;; |
| 15783 | |
| 15784 | sysv5*) |
| 15785 | no_undefined_flag_GCJ=' -z text' |
| 15786 | # $CC -shared without GNU ld will not create a library from C++ |
| 15787 | # object files and a static libstdc++, better avoid it by now |
| 15788 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15789 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15790 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 15791 | hardcode_libdir_flag_spec_GCJ= |
| 15792 | hardcode_shlibpath_var_GCJ=no |
| 15793 | runpath_var='LD_RUN_PATH' |
| 15794 | ;; |
| 15795 | |
| 15796 | uts4*) |
| 15797 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15798 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15799 | hardcode_shlibpath_var_GCJ=no |
| 15800 | ;; |
| 15801 | |
| 15802 | *) |
| 15803 | ld_shlibs_GCJ=no |
| 15804 | ;; |
| 15805 | esac |
| 15806 | fi |
| 15807 | |
| 15808 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 15809 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
| 15810 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 15811 | |
| 15812 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 15813 | if test "$GCC" = yes; then |
| 15814 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 15815 | fi |
| 15816 | |
| 15817 | # |
| 15818 | # Do we need to explicitly link libc? |
| 15819 | # |
| 15820 | case "x$archive_cmds_need_lc_GCJ" in |
| 15821 | x|xyes) |
| 15822 | # Assume -lc should be added |
| 15823 | archive_cmds_need_lc_GCJ=yes |
| 15824 | |
| 15825 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15826 | case $archive_cmds_GCJ in |
| 15827 | *'~'*) |
| 15828 | # FIXME: we may have to deal with multi-command sequences. |
| 15829 | ;; |
| 15830 | '$CC '*) |
| 15831 | # Test whether the compiler implicitly links with -lc since on some |
| 15832 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15833 | # to ld, don't add -lc before -lgcc. |
| 15834 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 15835 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 15836 | $rm conftest* |
| 15837 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15838 | |
| 15839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15840 | (eval $ac_compile) 2>&5 |
| 15841 | ac_status=$? |
| 15842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15843 | (exit $ac_status); } 2>conftest.err; then |
| 15844 | soname=conftest |
| 15845 | lib=conftest |
| 15846 | libobjs=conftest.$ac_objext |
| 15847 | deplibs= |
| 15848 | wl=$lt_prog_compiler_wl_GCJ |
| 15849 | compiler_flags=-v |
| 15850 | linker_flags=-v |
| 15851 | verstring= |
| 15852 | output_objdir=. |
| 15853 | libname=conftest |
| 15854 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 15855 | allow_undefined_flag_GCJ= |
| 15856 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 15857 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15858 | ac_status=$? |
| 15859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15860 | (exit $ac_status); } |
| 15861 | then |
| 15862 | archive_cmds_need_lc_GCJ=no |
| 15863 | else |
| 15864 | archive_cmds_need_lc_GCJ=yes |
| 15865 | fi |
| 15866 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 15867 | else |
| 15868 | cat conftest.err 1>&5 |
| 15869 | fi |
| 15870 | $rm conftest* |
| 15871 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 15872 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
| 15873 | ;; |
| 15874 | esac |
| 15875 | fi |
| 15876 | ;; |
| 15877 | esac |
| 15878 | |
| 15879 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 15880 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 15881 | hardcode_action_GCJ= |
| 15882 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 15883 | test -n "$runpath_var GCJ" || \ |
| 15884 | test "X$hardcode_automatic_GCJ"="Xyes" ; then |
| 15885 | |
| 15886 | # We can hardcode non-existant directories. |
| 15887 | if test "$hardcode_direct_GCJ" != no && |
| 15888 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 15889 | # have to relink, otherwise we might link with an installed library |
| 15890 | # when we should be linking with a yet-to-be-installed one |
| 15891 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 15892 | test "$hardcode_minus_L_GCJ" != no; then |
| 15893 | # Linking always hardcodes the temporary library directory. |
| 15894 | hardcode_action_GCJ=relink |
| 15895 | else |
| 15896 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 15897 | hardcode_action_GCJ=immediate |
| 15898 | fi |
| 15899 | else |
| 15900 | # We cannot hardcode anything, or else we can only hardcode existing |
| 15901 | # directories. |
| 15902 | hardcode_action_GCJ=unsupported |
| 15903 | fi |
| 15904 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 15905 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
| 15906 | |
| 15907 | if test "$hardcode_action_GCJ" = relink; then |
| 15908 | # Fast installation is not supported |
| 15909 | enable_fast_install=no |
| 15910 | elif test "$shlibpath_overrides_runpath" = yes || |
| 15911 | test "$enable_shared" = no; then |
| 15912 | # Fast installation is not necessary |
| 15913 | enable_fast_install=needless |
| 15914 | fi |
| 15915 | |
| 15916 | striplib= |
| 15917 | old_striplib= |
| 15918 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 15919 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 15920 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 15921 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 15922 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 15923 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15924 | echo "${ECHO_T}yes" >&6 |
| 15925 | else |
| 15926 | # FIXME - insert some real tests, host_os isn't really good enough |
| 15927 | case $host_os in |
| 15928 | darwin*) |
| 15929 | if test -n "$STRIP" ; then |
| 15930 | striplib="$STRIP -x" |
| 15931 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15932 | echo "${ECHO_T}yes" >&6 |
| 15933 | else |
| 15934 | echo "$as_me:$LINENO: result: no" >&5 |
| 15935 | echo "${ECHO_T}no" >&6 |
| 15936 | fi |
| 15937 | ;; |
| 15938 | *) |
| 15939 | echo "$as_me:$LINENO: result: no" >&5 |
| 15940 | echo "${ECHO_T}no" >&6 |
| 15941 | ;; |
| 15942 | esac |
| 15943 | fi |
| 15944 | |
| 15945 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 15946 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 15947 | library_names_spec= |
| 15948 | libname_spec='lib$name' |
| 15949 | soname_spec= |
| 15950 | shrext=".so" |
| 15951 | postinstall_cmds= |
| 15952 | postuninstall_cmds= |
| 15953 | finish_cmds= |
| 15954 | finish_eval= |
| 15955 | shlibpath_var= |
| 15956 | shlibpath_overrides_runpath=unknown |
| 15957 | version_type=none |
| 15958 | dynamic_linker="$host_os ld.so" |
| 15959 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 15960 | if test "$GCC" = yes; then |
| 15961 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15962 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 15963 | # if the path contains ";" then we assume it to be the separator |
| 15964 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 15965 | # assumed that no part of a normal pathname contains ";" but that should |
| 15966 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 15967 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15968 | else |
| 15969 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15970 | fi |
| 15971 | else |
| 15972 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 15973 | fi |
| 15974 | need_lib_prefix=unknown |
| 15975 | hardcode_into_libs=no |
| 15976 | |
| 15977 | # when you set need_version to no, make sure it does not cause -set_version |
| 15978 | # flags to be left without arguments |
| 15979 | need_version=unknown |
| 15980 | |
| 15981 | case $host_os in |
| 15982 | aix3*) |
| 15983 | version_type=linux |
| 15984 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 15985 | shlibpath_var=LIBPATH |
| 15986 | |
| 15987 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 15988 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15989 | ;; |
| 15990 | |
| 15991 | aix4* | aix5*) |
| 15992 | version_type=linux |
| 15993 | need_lib_prefix=no |
| 15994 | need_version=no |
| 15995 | hardcode_into_libs=yes |
| 15996 | if test "$host_cpu" = ia64; then |
| 15997 | # AIX 5 supports IA64 |
| 15998 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 15999 | shlibpath_var=LD_LIBRARY_PATH |
| 16000 | else |
| 16001 | # With GCC up to 2.95.x, collect2 would create an import file |
| 16002 | # for dependence libraries. The import file would start with |
| 16003 | # the line `#! .'. This would cause the generated library to |
| 16004 | # depend on `.', always an invalid library. This was fixed in |
| 16005 | # development snapshots of GCC prior to 3.0. |
| 16006 | case $host_os in |
| 16007 | aix4 | aix4.[01] | aix4.[01].*) |
| 16008 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16009 | echo ' yes ' |
| 16010 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 16011 | : |
| 16012 | else |
| 16013 | can_build_shared=no |
| 16014 | fi |
| 16015 | ;; |
| 16016 | esac |
| 16017 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 16018 | # soname into executable. Probably we can add versioning support to |
| 16019 | # collect2, so additional links can be useful in future. |
| 16020 | if test "$aix_use_runtimelinking" = yes; then |
| 16021 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16022 | # instead of lib<name>.a to let people know that these are not |
| 16023 | # typical AIX shared libraries. |
| 16024 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16025 | else |
| 16026 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 16027 | # and later when we are not doing run time linking. |
| 16028 | library_names_spec='${libname}${release}.a $libname.a' |
| 16029 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16030 | fi |
| 16031 | shlibpath_var=LIBPATH |
| 16032 | fi |
| 16033 | ;; |
| 16034 | |
| 16035 | amigaos*) |
| 16036 | library_names_spec='$libname.ixlibrary $libname.a' |
| 16037 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 16038 | 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' |
| 16039 | ;; |
| 16040 | |
| 16041 | beos*) |
| 16042 | library_names_spec='${libname}${shared_ext}' |
| 16043 | dynamic_linker="$host_os ld.so" |
| 16044 | shlibpath_var=LIBRARY_PATH |
| 16045 | ;; |
| 16046 | |
| 16047 | bsdi4*) |
| 16048 | version_type=linux |
| 16049 | need_version=no |
| 16050 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16051 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16052 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16053 | shlibpath_var=LD_LIBRARY_PATH |
| 16054 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16055 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 16056 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 16057 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16058 | # libtool to hard-code these into programs |
| 16059 | ;; |
| 16060 | |
| 16061 | cygwin* | mingw* | pw32*) |
| 16062 | version_type=windows |
| 16063 | shrext=".dll" |
| 16064 | need_version=no |
| 16065 | need_lib_prefix=no |
| 16066 | |
| 16067 | case $GCC,$host_os in |
| 16068 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 16069 | library_names_spec='$libname.dll.a' |
| 16070 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 16071 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16072 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 16073 | dldir=$destdir/`dirname \$dlpath`~ |
| 16074 | test -d \$dldir || mkdir -p \$dldir~ |
| 16075 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 16076 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16077 | dlpath=$dir/\$dldll~ |
| 16078 | $rm \$dlpath' |
| 16079 | shlibpath_overrides_runpath=yes |
| 16080 | |
| 16081 | case $host_os in |
| 16082 | cygwin*) |
| 16083 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16084 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16085 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" |
| 16086 | ;; |
| 16087 | mingw*) |
| 16088 | # MinGW DLLs use traditional 'lib' prefix |
| 16089 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16090 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16091 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 16092 | # It is most probably a Windows format PATH printed by |
| 16093 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 16094 | # path with ; separators, and with drive letters. We can handle the |
| 16095 | # drive letters (cygwin fileutils understands them), so leave them, |
| 16096 | # especially as we might pass files found there to a mingw objdump, |
| 16097 | # which wouldn't understand a cygwinified path. Ahh. |
| 16098 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16099 | else |
| 16100 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16101 | fi |
| 16102 | ;; |
| 16103 | pw32*) |
| 16104 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 16105 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 16106 | ;; |
| 16107 | esac |
| 16108 | ;; |
| 16109 | |
| 16110 | *) |
| 16111 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 16112 | ;; |
| 16113 | esac |
| 16114 | dynamic_linker='Win32 ld.exe' |
| 16115 | # FIXME: first we should search . and the directory the executable is in |
| 16116 | shlibpath_var=PATH |
| 16117 | ;; |
| 16118 | |
| 16119 | darwin* | rhapsody*) |
| 16120 | dynamic_linker="$host_os dyld" |
| 16121 | version_type=darwin |
| 16122 | need_lib_prefix=no |
| 16123 | need_version=no |
| 16124 | # FIXME: Relying on posixy $() will cause problems for |
| 16125 | # cross-compilation, but unfortunately the echo tests do not |
| 16126 | # yet detect zsh echo's removal of \ escapes. |
| 16127 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 16128 | soname_spec='${libname}${release}${major}$shared_ext' |
| 16129 | shlibpath_overrides_runpath=yes |
| 16130 | shlibpath_var=DYLD_LIBRARY_PATH |
| 16131 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 16132 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 16133 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 16134 | 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"` |
| 16135 | fi |
| 16136 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16137 | ;; |
| 16138 | |
| 16139 | dgux*) |
| 16140 | version_type=linux |
| 16141 | need_lib_prefix=no |
| 16142 | need_version=no |
| 16143 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16144 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16145 | shlibpath_var=LD_LIBRARY_PATH |
| 16146 | ;; |
| 16147 | |
| 16148 | freebsd1*) |
| 16149 | dynamic_linker=no |
| 16150 | ;; |
| 16151 | |
| 16152 | freebsd*) |
| 16153 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 16154 | version_type=freebsd-$objformat |
| 16155 | case $version_type in |
| 16156 | freebsd-elf*) |
| 16157 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16158 | need_version=no |
| 16159 | need_lib_prefix=no |
| 16160 | ;; |
| 16161 | freebsd-*) |
| 16162 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 16163 | need_version=yes |
| 16164 | ;; |
| 16165 | esac |
| 16166 | shlibpath_var=LD_LIBRARY_PATH |
| 16167 | case $host_os in |
| 16168 | freebsd2*) |
| 16169 | shlibpath_overrides_runpath=yes |
| 16170 | ;; |
| 16171 | freebsd3.01* | freebsdelf3.01*) |
| 16172 | shlibpath_overrides_runpath=yes |
| 16173 | hardcode_into_libs=yes |
| 16174 | ;; |
| 16175 | *) # from 3.2 on |
| 16176 | shlibpath_overrides_runpath=no |
| 16177 | hardcode_into_libs=yes |
| 16178 | ;; |
| 16179 | esac |
| 16180 | ;; |
| 16181 | |
| 16182 | gnu*) |
| 16183 | version_type=linux |
| 16184 | need_lib_prefix=no |
| 16185 | need_version=no |
| 16186 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 16187 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16188 | shlibpath_var=LD_LIBRARY_PATH |
| 16189 | hardcode_into_libs=yes |
| 16190 | ;; |
| 16191 | |
| 16192 | hpux9* | hpux10* | hpux11*) |
| 16193 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 16194 | # link against other versions. |
| 16195 | version_type=sunos |
| 16196 | need_lib_prefix=no |
| 16197 | need_version=no |
| 16198 | case "$host_cpu" in |
| 16199 | ia64*) |
| 16200 | shrext='.so' |
| 16201 | hardcode_into_libs=yes |
| 16202 | dynamic_linker="$host_os dld.so" |
| 16203 | shlibpath_var=LD_LIBRARY_PATH |
| 16204 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16205 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16206 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16207 | if test "X$HPUX_IA64_MODE" = X32; then |
| 16208 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 16209 | else |
| 16210 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 16211 | fi |
| 16212 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16213 | ;; |
| 16214 | hppa*64*) |
| 16215 | shrext='.sl' |
| 16216 | hardcode_into_libs=yes |
| 16217 | dynamic_linker="$host_os dld.sl" |
| 16218 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 16219 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16220 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16221 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16222 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 16223 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16224 | ;; |
| 16225 | *) |
| 16226 | shrext='.sl' |
| 16227 | dynamic_linker="$host_os dld.sl" |
| 16228 | shlibpath_var=SHLIB_PATH |
| 16229 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 16230 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16231 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16232 | ;; |
| 16233 | esac |
| 16234 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 16235 | postinstall_cmds='chmod 555 $lib' |
| 16236 | ;; |
| 16237 | |
| 16238 | irix5* | irix6* | nonstopux*) |
| 16239 | case $host_os in |
| 16240 | nonstopux*) version_type=nonstopux ;; |
| 16241 | *) |
| 16242 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 16243 | version_type=linux |
| 16244 | else |
| 16245 | version_type=irix |
| 16246 | fi ;; |
| 16247 | esac |
| 16248 | need_lib_prefix=no |
| 16249 | need_version=no |
| 16250 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16251 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16252 | case $host_os in |
| 16253 | irix5* | nonstopux*) |
| 16254 | libsuff= shlibsuff= |
| 16255 | ;; |
| 16256 | *) |
| 16257 | case $LD in # libtool.m4 will add one of these switches to LD |
| 16258 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 16259 | libsuff= shlibsuff= libmagic=32-bit;; |
| 16260 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 16261 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16262 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16263 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 16264 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 16265 | esac |
| 16266 | ;; |
| 16267 | esac |
| 16268 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16269 | shlibpath_overrides_runpath=no |
| 16270 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16271 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 16272 | hardcode_into_libs=yes |
| 16273 | ;; |
| 16274 | |
| 16275 | # No shared lib support for Linux oldld, aout, or coff. |
| 16276 | linux*oldld* | linux*aout* | linux*coff*) |
| 16277 | dynamic_linker=no |
| 16278 | ;; |
| 16279 | |
| 16280 | # This must be Linux ELF. |
| 16281 | linux*) |
| 16282 | version_type=linux |
| 16283 | need_lib_prefix=no |
| 16284 | need_version=no |
| 16285 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16286 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16287 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16288 | shlibpath_var=LD_LIBRARY_PATH |
| 16289 | shlibpath_overrides_runpath=no |
| 16290 | # This implies no fast_install, which is unacceptable. |
| 16291 | # Some rework will be needed to allow for fast_install |
| 16292 | # before this can be enabled. |
| 16293 | hardcode_into_libs=yes |
| 16294 | |
| 16295 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16296 | # powerpc, because MkLinux only supported shared libraries with the |
| 16297 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16298 | # most powerpc-linux boxes support dynamic linking these days and |
| 16299 | # people can always --disable-shared, the test was removed, and we |
| 16300 | # assume the GNU/Linux dynamic linker is in use. |
| 16301 | dynamic_linker='GNU/Linux ld.so' |
| 16302 | ;; |
| 16303 | |
| 16304 | netbsd*) |
| 16305 | version_type=sunos |
| 16306 | need_lib_prefix=no |
| 16307 | need_version=no |
| 16308 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 16309 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16310 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16311 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16312 | else |
| 16313 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
| 16314 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16315 | dynamic_linker='NetBSD ld.elf_so' |
| 16316 | fi |
| 16317 | shlibpath_var=LD_LIBRARY_PATH |
| 16318 | shlibpath_overrides_runpath=yes |
| 16319 | hardcode_into_libs=yes |
| 16320 | ;; |
| 16321 | |
| 16322 | newsos6) |
| 16323 | version_type=linux |
| 16324 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16325 | shlibpath_var=LD_LIBRARY_PATH |
| 16326 | shlibpath_overrides_runpath=yes |
| 16327 | ;; |
| 16328 | |
| 16329 | nto-qnx) |
| 16330 | version_type=linux |
| 16331 | need_lib_prefix=no |
| 16332 | need_version=no |
| 16333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16334 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16335 | shlibpath_var=LD_LIBRARY_PATH |
| 16336 | shlibpath_overrides_runpath=yes |
| 16337 | ;; |
| 16338 | |
| 16339 | openbsd*) |
| 16340 | version_type=sunos |
| 16341 | need_lib_prefix=no |
| 16342 | need_version=no |
| 16343 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16344 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16345 | shlibpath_var=LD_LIBRARY_PATH |
| 16346 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16347 | case $host_os in |
| 16348 | openbsd2.[89] | openbsd2.[89].*) |
| 16349 | shlibpath_overrides_runpath=no |
| 16350 | ;; |
| 16351 | *) |
| 16352 | shlibpath_overrides_runpath=yes |
| 16353 | ;; |
| 16354 | esac |
| 16355 | else |
| 16356 | shlibpath_overrides_runpath=yes |
| 16357 | fi |
| 16358 | ;; |
| 16359 | |
| 16360 | os2*) |
| 16361 | libname_spec='$name' |
| 16362 | shrext=".dll" |
| 16363 | need_lib_prefix=no |
| 16364 | library_names_spec='$libname${shared_ext} $libname.a' |
| 16365 | dynamic_linker='OS/2 ld.exe' |
| 16366 | shlibpath_var=LIBPATH |
| 16367 | ;; |
| 16368 | |
| 16369 | osf3* | osf4* | osf5*) |
| 16370 | version_type=osf |
| 16371 | need_lib_prefix=no |
| 16372 | need_version=no |
| 16373 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16374 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16375 | shlibpath_var=LD_LIBRARY_PATH |
| 16376 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16377 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16378 | ;; |
| 16379 | |
| 16380 | sco3.2v5*) |
| 16381 | version_type=osf |
| 16382 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16383 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16384 | shlibpath_var=LD_LIBRARY_PATH |
| 16385 | ;; |
| 16386 | |
| 16387 | solaris*) |
| 16388 | version_type=linux |
| 16389 | need_lib_prefix=no |
| 16390 | need_version=no |
| 16391 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16392 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16393 | shlibpath_var=LD_LIBRARY_PATH |
| 16394 | shlibpath_overrides_runpath=yes |
| 16395 | hardcode_into_libs=yes |
| 16396 | # ldd complains unless libraries are executable |
| 16397 | postinstall_cmds='chmod +x $lib' |
| 16398 | ;; |
| 16399 | |
| 16400 | sunos4*) |
| 16401 | version_type=sunos |
| 16402 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16403 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16404 | shlibpath_var=LD_LIBRARY_PATH |
| 16405 | shlibpath_overrides_runpath=yes |
| 16406 | if test "$with_gnu_ld" = yes; then |
| 16407 | need_lib_prefix=no |
| 16408 | fi |
| 16409 | need_version=yes |
| 16410 | ;; |
| 16411 | |
| 16412 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 16413 | version_type=linux |
| 16414 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16415 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16416 | shlibpath_var=LD_LIBRARY_PATH |
| 16417 | case $host_vendor in |
| 16418 | sni) |
| 16419 | shlibpath_overrides_runpath=no |
| 16420 | need_lib_prefix=no |
| 16421 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16422 | runpath_var=LD_RUN_PATH |
| 16423 | ;; |
| 16424 | siemens) |
| 16425 | need_lib_prefix=no |
| 16426 | ;; |
| 16427 | motorola) |
| 16428 | need_lib_prefix=no |
| 16429 | need_version=no |
| 16430 | shlibpath_overrides_runpath=no |
| 16431 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16432 | ;; |
| 16433 | esac |
| 16434 | ;; |
| 16435 | |
| 16436 | sysv4*MP*) |
| 16437 | if test -d /usr/nec ;then |
| 16438 | version_type=linux |
| 16439 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16440 | soname_spec='$libname${shared_ext}.$major' |
| 16441 | shlibpath_var=LD_LIBRARY_PATH |
| 16442 | fi |
| 16443 | ;; |
| 16444 | |
| 16445 | uts4*) |
| 16446 | version_type=linux |
| 16447 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16448 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16449 | shlibpath_var=LD_LIBRARY_PATH |
| 16450 | ;; |
| 16451 | |
| 16452 | *) |
| 16453 | dynamic_linker=no |
| 16454 | ;; |
| 16455 | esac |
| 16456 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16457 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 16458 | test "$dynamic_linker" = no && can_build_shared=no |
| 16459 | |
| 16460 | if test "x$enable_dlopen" != xyes; then |
| 16461 | enable_dlopen=unknown |
| 16462 | enable_dlopen_self=unknown |
| 16463 | enable_dlopen_self_static=unknown |
| 16464 | else |
| 16465 | lt_cv_dlopen=no |
| 16466 | lt_cv_dlopen_libs= |
| 16467 | |
| 16468 | case $host_os in |
| 16469 | beos*) |
| 16470 | lt_cv_dlopen="load_add_on" |
| 16471 | lt_cv_dlopen_libs= |
| 16472 | lt_cv_dlopen_self=yes |
| 16473 | ;; |
| 16474 | |
| 16475 | mingw* | pw32*) |
| 16476 | lt_cv_dlopen="LoadLibrary" |
| 16477 | lt_cv_dlopen_libs= |
| 16478 | ;; |
| 16479 | |
| 16480 | cygwin*) |
| 16481 | lt_cv_dlopen="dlopen" |
| 16482 | lt_cv_dlopen_libs= |
| 16483 | ;; |
| 16484 | |
| 16485 | darwin*) |
| 16486 | # if libdl is installed we need to link against it |
| 16487 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16488 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 16489 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16491 | else |
| 16492 | ac_check_lib_save_LIBS=$LIBS |
| 16493 | LIBS="-ldl $LIBS" |
| 16494 | cat >conftest.$ac_ext <<_ACEOF |
| 16495 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16496 | /* confdefs.h. */ |
| 16497 | _ACEOF |
| 16498 | cat confdefs.h >>conftest.$ac_ext |
| 16499 | cat >>conftest.$ac_ext <<_ACEOF |
| 16500 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16501 | |
| 16502 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16503 | #ifdef __cplusplus |
| 16504 | extern "C" |
| 16505 | #endif |
| 16506 | /* We use char because int might match the return type of a gcc2 |
| 16507 | builtin and then its argument prototype would still apply. */ |
| 16508 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16509 | int |
| 16510 | main () |
| 16511 | { |
| 16512 | dlopen (); |
| 16513 | ; |
| 16514 | return 0; |
| 16515 | } |
| 16516 | _ACEOF |
| 16517 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16518 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16519 | (eval $ac_link) 2>&5 |
| 16520 | ac_status=$? |
| 16521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16522 | (exit $ac_status); } && |
| 16523 | { ac_try='test -s conftest$ac_exeext' |
| 16524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16525 | (eval $ac_try) 2>&5 |
| 16526 | ac_status=$? |
| 16527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16528 | (exit $ac_status); }; }; then |
| 16529 | ac_cv_lib_dl_dlopen=yes |
| 16530 | else |
| 16531 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16533 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16534 | ac_cv_lib_dl_dlopen=no |
| 16535 | fi |
| 16536 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16537 | LIBS=$ac_check_lib_save_LIBS |
| 16538 | fi |
| 16539 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16540 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 16541 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16542 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16543 | else |
| 16544 | |
| 16545 | lt_cv_dlopen="dyld" |
| 16546 | lt_cv_dlopen_libs= |
| 16547 | lt_cv_dlopen_self=yes |
| 16548 | |
| 16549 | fi |
| 16550 | |
| 16551 | ;; |
| 16552 | |
| 16553 | *) |
| 16554 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 16555 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 16556 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 16557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16558 | else |
| 16559 | cat >conftest.$ac_ext <<_ACEOF |
| 16560 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16561 | /* confdefs.h. */ |
| 16562 | _ACEOF |
| 16563 | cat confdefs.h >>conftest.$ac_ext |
| 16564 | cat >>conftest.$ac_ext <<_ACEOF |
| 16565 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16566 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16567 | which can conflict with char shl_load (); below. |
| 16568 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16569 | <limits.h> exists even on freestanding compilers. */ |
| 16570 | #ifdef __STDC__ |
| 16571 | # include <limits.h> |
| 16572 | #else |
| 16573 | # include <assert.h> |
| 16574 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16575 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16576 | #ifdef __cplusplus |
| 16577 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16578 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16579 | #endif |
| 16580 | /* We use char because int might match the return type of a gcc2 |
| 16581 | builtin and then its argument prototype would still apply. */ |
| 16582 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16583 | /* The GNU C library defines this for functions which it implements |
| 16584 | to always fail with ENOSYS. Some functions are actually named |
| 16585 | something starting with __ and the normal name is an alias. */ |
| 16586 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 16587 | choke me |
| 16588 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16589 | char (*f) () = shl_load; |
| 16590 | #endif |
| 16591 | #ifdef __cplusplus |
| 16592 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16593 | #endif |
| 16594 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16595 | int |
| 16596 | main () |
| 16597 | { |
| 16598 | return f != shl_load; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16599 | ; |
| 16600 | return 0; |
| 16601 | } |
| 16602 | _ACEOF |
| 16603 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16605 | (eval $ac_link) 2>&5 |
| 16606 | ac_status=$? |
| 16607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16608 | (exit $ac_status); } && |
| 16609 | { ac_try='test -s conftest$ac_exeext' |
| 16610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16611 | (eval $ac_try) 2>&5 |
| 16612 | ac_status=$? |
| 16613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16614 | (exit $ac_status); }; }; then |
| 16615 | ac_cv_func_shl_load=yes |
| 16616 | else |
| 16617 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16619 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16620 | ac_cv_func_shl_load=no |
| 16621 | fi |
| 16622 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16623 | fi |
| 16624 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 16625 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 16626 | if test $ac_cv_func_shl_load = yes; then |
| 16627 | lt_cv_dlopen="shl_load" |
| 16628 | else |
| 16629 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 16630 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 16631 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 16632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16633 | else |
| 16634 | ac_check_lib_save_LIBS=$LIBS |
| 16635 | LIBS="-ldld $LIBS" |
| 16636 | cat >conftest.$ac_ext <<_ACEOF |
| 16637 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16638 | /* confdefs.h. */ |
| 16639 | _ACEOF |
| 16640 | cat confdefs.h >>conftest.$ac_ext |
| 16641 | cat >>conftest.$ac_ext <<_ACEOF |
| 16642 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16643 | |
| 16644 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16645 | #ifdef __cplusplus |
| 16646 | extern "C" |
| 16647 | #endif |
| 16648 | /* We use char because int might match the return type of a gcc2 |
| 16649 | builtin and then its argument prototype would still apply. */ |
| 16650 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16651 | int |
| 16652 | main () |
| 16653 | { |
| 16654 | shl_load (); |
| 16655 | ; |
| 16656 | return 0; |
| 16657 | } |
| 16658 | _ACEOF |
| 16659 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16661 | (eval $ac_link) 2>&5 |
| 16662 | ac_status=$? |
| 16663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16664 | (exit $ac_status); } && |
| 16665 | { ac_try='test -s conftest$ac_exeext' |
| 16666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16667 | (eval $ac_try) 2>&5 |
| 16668 | ac_status=$? |
| 16669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16670 | (exit $ac_status); }; }; then |
| 16671 | ac_cv_lib_dld_shl_load=yes |
| 16672 | else |
| 16673 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16674 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16675 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16676 | ac_cv_lib_dld_shl_load=no |
| 16677 | fi |
| 16678 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16679 | LIBS=$ac_check_lib_save_LIBS |
| 16680 | fi |
| 16681 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 16682 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 16683 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 16684 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 16685 | else |
| 16686 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 16687 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 16688 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 16689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16690 | else |
| 16691 | cat >conftest.$ac_ext <<_ACEOF |
| 16692 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16693 | /* confdefs.h. */ |
| 16694 | _ACEOF |
| 16695 | cat confdefs.h >>conftest.$ac_ext |
| 16696 | cat >>conftest.$ac_ext <<_ACEOF |
| 16697 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16698 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16699 | which can conflict with char dlopen (); below. |
| 16700 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16701 | <limits.h> exists even on freestanding compilers. */ |
| 16702 | #ifdef __STDC__ |
| 16703 | # include <limits.h> |
| 16704 | #else |
| 16705 | # include <assert.h> |
| 16706 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16707 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16708 | #ifdef __cplusplus |
| 16709 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16710 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16711 | #endif |
| 16712 | /* We use char because int might match the return type of a gcc2 |
| 16713 | builtin and then its argument prototype would still apply. */ |
| 16714 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16715 | /* The GNU C library defines this for functions which it implements |
| 16716 | to always fail with ENOSYS. Some functions are actually named |
| 16717 | something starting with __ and the normal name is an alias. */ |
| 16718 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 16719 | choke me |
| 16720 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16721 | char (*f) () = dlopen; |
| 16722 | #endif |
| 16723 | #ifdef __cplusplus |
| 16724 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16725 | #endif |
| 16726 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16727 | int |
| 16728 | main () |
| 16729 | { |
| 16730 | return f != dlopen; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16731 | ; |
| 16732 | return 0; |
| 16733 | } |
| 16734 | _ACEOF |
| 16735 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16736 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16737 | (eval $ac_link) 2>&5 |
| 16738 | ac_status=$? |
| 16739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16740 | (exit $ac_status); } && |
| 16741 | { ac_try='test -s conftest$ac_exeext' |
| 16742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16743 | (eval $ac_try) 2>&5 |
| 16744 | ac_status=$? |
| 16745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16746 | (exit $ac_status); }; }; then |
| 16747 | ac_cv_func_dlopen=yes |
| 16748 | else |
| 16749 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16751 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16752 | ac_cv_func_dlopen=no |
| 16753 | fi |
| 16754 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16755 | fi |
| 16756 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 16757 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 16758 | if test $ac_cv_func_dlopen = yes; then |
| 16759 | lt_cv_dlopen="dlopen" |
| 16760 | else |
| 16761 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16762 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 16763 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16765 | else |
| 16766 | ac_check_lib_save_LIBS=$LIBS |
| 16767 | LIBS="-ldl $LIBS" |
| 16768 | cat >conftest.$ac_ext <<_ACEOF |
| 16769 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16770 | /* confdefs.h. */ |
| 16771 | _ACEOF |
| 16772 | cat confdefs.h >>conftest.$ac_ext |
| 16773 | cat >>conftest.$ac_ext <<_ACEOF |
| 16774 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16775 | |
| 16776 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16777 | #ifdef __cplusplus |
| 16778 | extern "C" |
| 16779 | #endif |
| 16780 | /* We use char because int might match the return type of a gcc2 |
| 16781 | builtin and then its argument prototype would still apply. */ |
| 16782 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16783 | int |
| 16784 | main () |
| 16785 | { |
| 16786 | dlopen (); |
| 16787 | ; |
| 16788 | return 0; |
| 16789 | } |
| 16790 | _ACEOF |
| 16791 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16792 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16793 | (eval $ac_link) 2>&5 |
| 16794 | ac_status=$? |
| 16795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16796 | (exit $ac_status); } && |
| 16797 | { ac_try='test -s conftest$ac_exeext' |
| 16798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16799 | (eval $ac_try) 2>&5 |
| 16800 | ac_status=$? |
| 16801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16802 | (exit $ac_status); }; }; then |
| 16803 | ac_cv_lib_dl_dlopen=yes |
| 16804 | else |
| 16805 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16807 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16808 | ac_cv_lib_dl_dlopen=no |
| 16809 | fi |
| 16810 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16811 | LIBS=$ac_check_lib_save_LIBS |
| 16812 | fi |
| 16813 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16814 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 16815 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16816 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16817 | else |
| 16818 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 16819 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 16820 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 16821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16822 | else |
| 16823 | ac_check_lib_save_LIBS=$LIBS |
| 16824 | LIBS="-lsvld $LIBS" |
| 16825 | cat >conftest.$ac_ext <<_ACEOF |
| 16826 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16827 | /* confdefs.h. */ |
| 16828 | _ACEOF |
| 16829 | cat confdefs.h >>conftest.$ac_ext |
| 16830 | cat >>conftest.$ac_ext <<_ACEOF |
| 16831 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16832 | |
| 16833 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16834 | #ifdef __cplusplus |
| 16835 | extern "C" |
| 16836 | #endif |
| 16837 | /* We use char because int might match the return type of a gcc2 |
| 16838 | builtin and then its argument prototype would still apply. */ |
| 16839 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16840 | int |
| 16841 | main () |
| 16842 | { |
| 16843 | dlopen (); |
| 16844 | ; |
| 16845 | return 0; |
| 16846 | } |
| 16847 | _ACEOF |
| 16848 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16849 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16850 | (eval $ac_link) 2>&5 |
| 16851 | ac_status=$? |
| 16852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16853 | (exit $ac_status); } && |
| 16854 | { ac_try='test -s conftest$ac_exeext' |
| 16855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16856 | (eval $ac_try) 2>&5 |
| 16857 | ac_status=$? |
| 16858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16859 | (exit $ac_status); }; }; then |
| 16860 | ac_cv_lib_svld_dlopen=yes |
| 16861 | else |
| 16862 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16864 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16865 | ac_cv_lib_svld_dlopen=no |
| 16866 | fi |
| 16867 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16868 | LIBS=$ac_check_lib_save_LIBS |
| 16869 | fi |
| 16870 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 16871 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 16872 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 16873 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 16874 | else |
| 16875 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 16876 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 16877 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 16878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16879 | else |
| 16880 | ac_check_lib_save_LIBS=$LIBS |
| 16881 | LIBS="-ldld $LIBS" |
| 16882 | cat >conftest.$ac_ext <<_ACEOF |
| 16883 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16884 | /* confdefs.h. */ |
| 16885 | _ACEOF |
| 16886 | cat confdefs.h >>conftest.$ac_ext |
| 16887 | cat >>conftest.$ac_ext <<_ACEOF |
| 16888 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16889 | |
| 16890 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16891 | #ifdef __cplusplus |
| 16892 | extern "C" |
| 16893 | #endif |
| 16894 | /* We use char because int might match the return type of a gcc2 |
| 16895 | builtin and then its argument prototype would still apply. */ |
| 16896 | char dld_link (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16897 | int |
| 16898 | main () |
| 16899 | { |
| 16900 | dld_link (); |
| 16901 | ; |
| 16902 | return 0; |
| 16903 | } |
| 16904 | _ACEOF |
| 16905 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16906 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16907 | (eval $ac_link) 2>&5 |
| 16908 | ac_status=$? |
| 16909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16910 | (exit $ac_status); } && |
| 16911 | { ac_try='test -s conftest$ac_exeext' |
| 16912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16913 | (eval $ac_try) 2>&5 |
| 16914 | ac_status=$? |
| 16915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16916 | (exit $ac_status); }; }; then |
| 16917 | ac_cv_lib_dld_dld_link=yes |
| 16918 | else |
| 16919 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16921 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16922 | ac_cv_lib_dld_dld_link=no |
| 16923 | fi |
| 16924 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16925 | LIBS=$ac_check_lib_save_LIBS |
| 16926 | fi |
| 16927 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 16928 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 16929 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 16930 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 16931 | fi |
| 16932 | |
| 16933 | |
| 16934 | fi |
| 16935 | |
| 16936 | |
| 16937 | fi |
| 16938 | |
| 16939 | |
| 16940 | fi |
| 16941 | |
| 16942 | |
| 16943 | fi |
| 16944 | |
| 16945 | |
| 16946 | fi |
| 16947 | |
| 16948 | ;; |
| 16949 | esac |
| 16950 | |
| 16951 | if test "x$lt_cv_dlopen" != xno; then |
| 16952 | enable_dlopen=yes |
| 16953 | else |
| 16954 | enable_dlopen=no |
| 16955 | fi |
| 16956 | |
| 16957 | case $lt_cv_dlopen in |
| 16958 | dlopen) |
| 16959 | save_CPPFLAGS="$CPPFLAGS" |
| 16960 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 16961 | |
| 16962 | save_LDFLAGS="$LDFLAGS" |
| 16963 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 16964 | |
| 16965 | save_LIBS="$LIBS" |
| 16966 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 16967 | |
| 16968 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 16969 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 16970 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 16971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16972 | else |
| 16973 | if test "$cross_compiling" = yes; then : |
| 16974 | lt_cv_dlopen_self=cross |
| 16975 | else |
| 16976 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 16977 | lt_status=$lt_dlunknown |
| 16978 | cat > conftest.$ac_ext <<EOF |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 16979 | #line 16979 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16980 | #include "confdefs.h" |
| 16981 | |
| 16982 | #if HAVE_DLFCN_H |
| 16983 | #include <dlfcn.h> |
| 16984 | #endif |
| 16985 | |
| 16986 | #include <stdio.h> |
| 16987 | |
| 16988 | #ifdef RTLD_GLOBAL |
| 16989 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 16990 | #else |
| 16991 | # ifdef DL_GLOBAL |
| 16992 | # define LT_DLGLOBAL DL_GLOBAL |
| 16993 | # else |
| 16994 | # define LT_DLGLOBAL 0 |
| 16995 | # endif |
| 16996 | #endif |
| 16997 | |
| 16998 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 16999 | find out it does not work in some platform. */ |
| 17000 | #ifndef LT_DLLAZY_OR_NOW |
| 17001 | # ifdef RTLD_LAZY |
| 17002 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17003 | # else |
| 17004 | # ifdef DL_LAZY |
| 17005 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17006 | # else |
| 17007 | # ifdef RTLD_NOW |
| 17008 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17009 | # else |
| 17010 | # ifdef DL_NOW |
| 17011 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17012 | # else |
| 17013 | # define LT_DLLAZY_OR_NOW 0 |
| 17014 | # endif |
| 17015 | # endif |
| 17016 | # endif |
| 17017 | # endif |
| 17018 | #endif |
| 17019 | |
| 17020 | #ifdef __cplusplus |
| 17021 | extern "C" void exit (int); |
| 17022 | #endif |
| 17023 | |
| 17024 | void fnord() { int i=42;} |
| 17025 | int main () |
| 17026 | { |
| 17027 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17028 | int status = $lt_dlunknown; |
| 17029 | |
| 17030 | if (self) |
| 17031 | { |
| 17032 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17033 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17034 | /* dlclose (self); */ |
| 17035 | } |
| 17036 | |
| 17037 | exit (status); |
| 17038 | } |
| 17039 | EOF |
| 17040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17041 | (eval $ac_link) 2>&5 |
| 17042 | ac_status=$? |
| 17043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17044 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 17045 | (./conftest; exit; ) 2>/dev/null |
| 17046 | lt_status=$? |
| 17047 | case x$lt_status in |
| 17048 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 17049 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 17050 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 17051 | esac |
| 17052 | else : |
| 17053 | # compilation failed |
| 17054 | lt_cv_dlopen_self=no |
| 17055 | fi |
| 17056 | fi |
| 17057 | rm -fr conftest* |
| 17058 | |
| 17059 | |
| 17060 | fi |
| 17061 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 17062 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 17063 | |
| 17064 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 17065 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 17066 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 17067 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 17068 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 17069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17070 | else |
| 17071 | if test "$cross_compiling" = yes; then : |
| 17072 | lt_cv_dlopen_self_static=cross |
| 17073 | else |
| 17074 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 17075 | lt_status=$lt_dlunknown |
| 17076 | cat > conftest.$ac_ext <<EOF |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 17077 | #line 17077 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17078 | #include "confdefs.h" |
| 17079 | |
| 17080 | #if HAVE_DLFCN_H |
| 17081 | #include <dlfcn.h> |
| 17082 | #endif |
| 17083 | |
| 17084 | #include <stdio.h> |
| 17085 | |
| 17086 | #ifdef RTLD_GLOBAL |
| 17087 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17088 | #else |
| 17089 | # ifdef DL_GLOBAL |
| 17090 | # define LT_DLGLOBAL DL_GLOBAL |
| 17091 | # else |
| 17092 | # define LT_DLGLOBAL 0 |
| 17093 | # endif |
| 17094 | #endif |
| 17095 | |
| 17096 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17097 | find out it does not work in some platform. */ |
| 17098 | #ifndef LT_DLLAZY_OR_NOW |
| 17099 | # ifdef RTLD_LAZY |
| 17100 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17101 | # else |
| 17102 | # ifdef DL_LAZY |
| 17103 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17104 | # else |
| 17105 | # ifdef RTLD_NOW |
| 17106 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17107 | # else |
| 17108 | # ifdef DL_NOW |
| 17109 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17110 | # else |
| 17111 | # define LT_DLLAZY_OR_NOW 0 |
| 17112 | # endif |
| 17113 | # endif |
| 17114 | # endif |
| 17115 | # endif |
| 17116 | #endif |
| 17117 | |
| 17118 | #ifdef __cplusplus |
| 17119 | extern "C" void exit (int); |
| 17120 | #endif |
| 17121 | |
| 17122 | void fnord() { int i=42;} |
| 17123 | int main () |
| 17124 | { |
| 17125 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17126 | int status = $lt_dlunknown; |
| 17127 | |
| 17128 | if (self) |
| 17129 | { |
| 17130 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17131 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17132 | /* dlclose (self); */ |
| 17133 | } |
| 17134 | |
| 17135 | exit (status); |
| 17136 | } |
| 17137 | EOF |
| 17138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17139 | (eval $ac_link) 2>&5 |
| 17140 | ac_status=$? |
| 17141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17142 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 17143 | (./conftest; exit; ) 2>/dev/null |
| 17144 | lt_status=$? |
| 17145 | case x$lt_status in |
| 17146 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17147 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17148 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 17149 | esac |
| 17150 | else : |
| 17151 | # compilation failed |
| 17152 | lt_cv_dlopen_self_static=no |
| 17153 | fi |
| 17154 | fi |
| 17155 | rm -fr conftest* |
| 17156 | |
| 17157 | |
| 17158 | fi |
| 17159 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 17160 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 17161 | fi |
| 17162 | |
| 17163 | CPPFLAGS="$save_CPPFLAGS" |
| 17164 | LDFLAGS="$save_LDFLAGS" |
| 17165 | LIBS="$save_LIBS" |
| 17166 | ;; |
| 17167 | esac |
| 17168 | |
| 17169 | case $lt_cv_dlopen_self in |
| 17170 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 17171 | *) enable_dlopen_self=unknown ;; |
| 17172 | esac |
| 17173 | |
| 17174 | case $lt_cv_dlopen_self_static in |
| 17175 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 17176 | *) enable_dlopen_self_static=unknown ;; |
| 17177 | esac |
| 17178 | fi |
| 17179 | |
| 17180 | |
| 17181 | # The else clause should only fire when bootstrapping the |
| 17182 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17183 | # with your package, and you will get complaints that there are |
| 17184 | # no rules to generate ltmain.sh. |
| 17185 | if test -f "$ltmain"; then |
| 17186 | # See if we are running on zsh, and set the options which allow our commands through |
| 17187 | # without removal of \ escapes. |
| 17188 | if test -n "${ZSH_VERSION+set}" ; then |
| 17189 | setopt NO_GLOB_SUBST |
| 17190 | fi |
| 17191 | # Now quote all the things that may contain metacharacters while being |
| 17192 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17193 | # variables and quote the copies for generation of the libtool script. |
| 17194 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
| 17195 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17196 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17197 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17198 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17199 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 17200 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 17201 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17202 | compiler_GCJ \ |
| 17203 | CC_GCJ \ |
| 17204 | LD_GCJ \ |
| 17205 | lt_prog_compiler_wl_GCJ \ |
| 17206 | lt_prog_compiler_pic_GCJ \ |
| 17207 | lt_prog_compiler_static_GCJ \ |
| 17208 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 17209 | export_dynamic_flag_spec_GCJ \ |
| 17210 | thread_safe_flag_spec_GCJ \ |
| 17211 | whole_archive_flag_spec_GCJ \ |
| 17212 | enable_shared_with_static_runtimes_GCJ \ |
| 17213 | old_archive_cmds_GCJ \ |
| 17214 | old_archive_from_new_cmds_GCJ \ |
| 17215 | predep_objects_GCJ \ |
| 17216 | postdep_objects_GCJ \ |
| 17217 | predeps_GCJ \ |
| 17218 | postdeps_GCJ \ |
| 17219 | compiler_lib_search_path_GCJ \ |
| 17220 | archive_cmds_GCJ \ |
| 17221 | archive_expsym_cmds_GCJ \ |
| 17222 | postinstall_cmds_GCJ \ |
| 17223 | postuninstall_cmds_GCJ \ |
| 17224 | old_archive_from_expsyms_cmds_GCJ \ |
| 17225 | allow_undefined_flag_GCJ \ |
| 17226 | no_undefined_flag_GCJ \ |
| 17227 | export_symbols_cmds_GCJ \ |
| 17228 | hardcode_libdir_flag_spec_GCJ \ |
| 17229 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 17230 | hardcode_libdir_separator_GCJ \ |
| 17231 | hardcode_automatic_GCJ \ |
| 17232 | module_cmds_GCJ \ |
| 17233 | module_expsym_cmds_GCJ \ |
| 17234 | lt_cv_prog_compiler_c_o_GCJ \ |
| 17235 | exclude_expsyms_GCJ \ |
| 17236 | include_expsyms_GCJ; do |
| 17237 | |
| 17238 | case $var in |
| 17239 | old_archive_cmds_GCJ | \ |
| 17240 | old_archive_from_new_cmds_GCJ | \ |
| 17241 | archive_cmds_GCJ | \ |
| 17242 | archive_expsym_cmds_GCJ | \ |
| 17243 | module_cmds_GCJ | \ |
| 17244 | module_expsym_cmds_GCJ | \ |
| 17245 | old_archive_from_expsyms_cmds_GCJ | \ |
| 17246 | export_symbols_cmds_GCJ | \ |
| 17247 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 17248 | postinstall_cmds | postuninstall_cmds | \ |
| 17249 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17250 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 17251 | # Double-quote double-evaled strings. |
| 17252 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 17253 | ;; |
| 17254 | *) |
| 17255 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17256 | ;; |
| 17257 | esac |
| 17258 | done |
| 17259 | |
| 17260 | case $lt_echo in |
| 17261 | *'\$0 --fallback-echo"') |
| 17262 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17263 | ;; |
| 17264 | esac |
| 17265 | |
| 17266 | cfgfile="$ofile" |
| 17267 | |
| 17268 | cat <<__EOF__ >> "$cfgfile" |
| 17269 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 17270 | |
| 17271 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17272 | |
| 17273 | # Shell to use when invoking shell scripts. |
| 17274 | SHELL=$lt_SHELL |
| 17275 | |
| 17276 | # Whether or not to build shared libraries. |
| 17277 | build_libtool_libs=$enable_shared |
| 17278 | |
| 17279 | # Whether or not to build static libraries. |
| 17280 | build_old_libs=$enable_static |
| 17281 | |
| 17282 | # Whether or not to add -lc for building shared libraries. |
| 17283 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 17284 | |
| 17285 | # Whether or not to disallow shared libs when runtime libs are static |
| 17286 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 17287 | |
| 17288 | # Whether or not to optimize for fast installation. |
| 17289 | fast_install=$enable_fast_install |
| 17290 | |
| 17291 | # The host system. |
| 17292 | host_alias=$host_alias |
| 17293 | host=$host |
| 17294 | |
| 17295 | # An echo program that does not interpret backslashes. |
| 17296 | echo=$lt_echo |
| 17297 | |
| 17298 | # The archiver. |
| 17299 | AR=$lt_AR |
| 17300 | AR_FLAGS=$lt_AR_FLAGS |
| 17301 | |
| 17302 | # A C compiler. |
| 17303 | LTCC=$lt_LTCC |
| 17304 | |
| 17305 | # A language-specific compiler. |
| 17306 | CC=$lt_compiler_GCJ |
| 17307 | |
| 17308 | # Is the compiler the GNU C compiler? |
| 17309 | with_gcc=$GCC_GCJ |
| 17310 | |
| 17311 | # An ERE matcher. |
| 17312 | EGREP=$lt_EGREP |
| 17313 | |
| 17314 | # The linker used to build libraries. |
| 17315 | LD=$lt_LD_GCJ |
| 17316 | |
| 17317 | # Whether we need hard or soft links. |
| 17318 | LN_S=$lt_LN_S |
| 17319 | |
| 17320 | # A BSD-compatible nm program. |
| 17321 | NM=$lt_NM |
| 17322 | |
| 17323 | # A symbol stripping program |
| 17324 | STRIP=$STRIP |
| 17325 | |
| 17326 | # Used to examine libraries when file_magic_cmd begins "file" |
| 17327 | MAGIC_CMD=$MAGIC_CMD |
| 17328 | |
| 17329 | # Used on cygwin: DLL creation program. |
| 17330 | DLLTOOL="$DLLTOOL" |
| 17331 | |
| 17332 | # Used on cygwin: object dumper. |
| 17333 | OBJDUMP="$OBJDUMP" |
| 17334 | |
| 17335 | # Used on cygwin: assembler. |
| 17336 | AS="$AS" |
| 17337 | |
| 17338 | # The name of the directory that contains temporary libtool files. |
| 17339 | objdir=$objdir |
| 17340 | |
| 17341 | # How to create reloadable object files. |
| 17342 | reload_flag=$lt_reload_flag |
| 17343 | reload_cmds=$lt_reload_cmds |
| 17344 | |
| 17345 | # How to pass a linker flag through the compiler. |
| 17346 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 17347 | |
| 17348 | # Object file suffix (normally "o"). |
| 17349 | objext="$ac_objext" |
| 17350 | |
| 17351 | # Old archive suffix (normally "a"). |
| 17352 | libext="$libext" |
| 17353 | |
| 17354 | # Shared library suffix (normally ".so"). |
| 17355 | shrext='$shrext' |
| 17356 | |
| 17357 | # Executable file suffix (normally ""). |
| 17358 | exeext="$exeext" |
| 17359 | |
| 17360 | # Additional compiler flags for building library objects. |
| 17361 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 17362 | pic_mode=$pic_mode |
| 17363 | |
| 17364 | # What is the maximum length of a command? |
| 17365 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 17366 | |
| 17367 | # Does compiler simultaneously support -c and -o options? |
| 17368 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 17369 | |
| 17370 | # Must we lock files when doing compilation ? |
| 17371 | need_locks=$lt_need_locks |
| 17372 | |
| 17373 | # Do we need the lib prefix for modules? |
| 17374 | need_lib_prefix=$need_lib_prefix |
| 17375 | |
| 17376 | # Do we need a version for libraries? |
| 17377 | need_version=$need_version |
| 17378 | |
| 17379 | # Whether dlopen is supported. |
| 17380 | dlopen_support=$enable_dlopen |
| 17381 | |
| 17382 | # Whether dlopen of programs is supported. |
| 17383 | dlopen_self=$enable_dlopen_self |
| 17384 | |
| 17385 | # Whether dlopen of statically linked programs is supported. |
| 17386 | dlopen_self_static=$enable_dlopen_self_static |
| 17387 | |
| 17388 | # Compiler flag to prevent dynamic linking. |
| 17389 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 17390 | |
| 17391 | # Compiler flag to turn off builtin functions. |
| 17392 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 17393 | |
| 17394 | # Compiler flag to allow reflexive dlopens. |
| 17395 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 17396 | |
| 17397 | # Compiler flag to generate shared objects directly from archives. |
| 17398 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 17399 | |
| 17400 | # Compiler flag to generate thread-safe objects. |
| 17401 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 17402 | |
| 17403 | # Library versioning type. |
| 17404 | version_type=$version_type |
| 17405 | |
| 17406 | # Format of library name prefix. |
| 17407 | libname_spec=$lt_libname_spec |
| 17408 | |
| 17409 | # List of archive names. First name is the real one, the rest are links. |
| 17410 | # The last name is the one that the linker finds with -lNAME. |
| 17411 | library_names_spec=$lt_library_names_spec |
| 17412 | |
| 17413 | # The coded name of the library, if different from the real name. |
| 17414 | soname_spec=$lt_soname_spec |
| 17415 | |
| 17416 | # Commands used to build and install an old-style archive. |
| 17417 | RANLIB=$lt_RANLIB |
| 17418 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 17419 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 17420 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 17421 | |
| 17422 | # Create an old-style archive from a shared archive. |
| 17423 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 17424 | |
| 17425 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17426 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 17427 | |
| 17428 | # Commands used to build and install a shared archive. |
| 17429 | archive_cmds=$lt_archive_cmds_GCJ |
| 17430 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 17431 | postinstall_cmds=$lt_postinstall_cmds |
| 17432 | postuninstall_cmds=$lt_postuninstall_cmds |
| 17433 | |
| 17434 | # Commands used to build a loadable module (assumed same as above if empty) |
| 17435 | module_cmds=$lt_module_cmds_GCJ |
| 17436 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 17437 | |
| 17438 | # Commands to strip libraries. |
| 17439 | old_striplib=$lt_old_striplib |
| 17440 | striplib=$lt_striplib |
| 17441 | |
| 17442 | # Dependencies to place before the objects being linked to create a |
| 17443 | # shared library. |
| 17444 | predep_objects=$lt_predep_objects_GCJ |
| 17445 | |
| 17446 | # Dependencies to place after the objects being linked to create a |
| 17447 | # shared library. |
| 17448 | postdep_objects=$lt_postdep_objects_GCJ |
| 17449 | |
| 17450 | # Dependencies to place before the objects being linked to create a |
| 17451 | # shared library. |
| 17452 | predeps=$lt_predeps_GCJ |
| 17453 | |
| 17454 | # Dependencies to place after the objects being linked to create a |
| 17455 | # shared library. |
| 17456 | postdeps=$lt_postdeps_GCJ |
| 17457 | |
| 17458 | # The library search path used internally by the compiler when linking |
| 17459 | # a shared library. |
| 17460 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 17461 | |
| 17462 | # Method to check whether dependent libraries are shared objects. |
| 17463 | deplibs_check_method=$lt_deplibs_check_method |
| 17464 | |
| 17465 | # Command to use when deplibs_check_method == file_magic. |
| 17466 | file_magic_cmd=$lt_file_magic_cmd |
| 17467 | |
| 17468 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17469 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 17470 | |
| 17471 | # Flag that forces no undefined symbols. |
| 17472 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 17473 | |
| 17474 | # Commands used to finish a libtool library installation in a directory. |
| 17475 | finish_cmds=$lt_finish_cmds |
| 17476 | |
| 17477 | # Same as above, but a single script fragment to be evaled but not shown. |
| 17478 | finish_eval=$lt_finish_eval |
| 17479 | |
| 17480 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 17481 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 17482 | |
| 17483 | # Transform the output of nm in a proper C declaration |
| 17484 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 17485 | |
| 17486 | # Transform the output of nm in a C name address pair |
| 17487 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 17488 | |
| 17489 | # This is the shared library runtime path variable. |
| 17490 | runpath_var=$runpath_var |
| 17491 | |
| 17492 | # This is the shared library path variable. |
| 17493 | shlibpath_var=$shlibpath_var |
| 17494 | |
| 17495 | # Is shlibpath searched before the hard-coded library search path? |
| 17496 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 17497 | |
| 17498 | # How to hardcode a shared library path into an executable. |
| 17499 | hardcode_action=$hardcode_action_GCJ |
| 17500 | |
| 17501 | # Whether we should hardcode library paths into libraries. |
| 17502 | hardcode_into_libs=$hardcode_into_libs |
| 17503 | |
| 17504 | # Flag to hardcode \$libdir into a binary during linking. |
| 17505 | # This must work even if \$libdir does not exist. |
| 17506 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 17507 | |
| 17508 | # If ld is used when linking, flag to hardcode \$libdir into |
| 17509 | # a binary during linking. This must work even if \$libdir does |
| 17510 | # not exist. |
| 17511 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 17512 | |
| 17513 | # Whether we need a single -rpath flag with a separated argument. |
| 17514 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 17515 | |
| 17516 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 17517 | # resulting binary. |
| 17518 | hardcode_direct=$hardcode_direct_GCJ |
| 17519 | |
| 17520 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 17521 | # resulting binary. |
| 17522 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 17523 | |
| 17524 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 17525 | # the resulting binary. |
| 17526 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 17527 | |
| 17528 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 17529 | # and all subsequent libraries and executables linked against it. |
| 17530 | hardcode_automatic=$hardcode_automatic_GCJ |
| 17531 | |
| 17532 | # Variables whose values should be saved in libtool wrapper scripts and |
| 17533 | # restored at relink time. |
| 17534 | variables_saved_for_relink="$variables_saved_for_relink" |
| 17535 | |
| 17536 | # Whether libtool must link a program against all its dependency libraries. |
| 17537 | link_all_deplibs=$link_all_deplibs_GCJ |
| 17538 | |
| 17539 | # Compile-time system search path for libraries |
| 17540 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 17541 | |
| 17542 | # Run-time system search path for libraries |
| 17543 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 17544 | |
| 17545 | # Fix the shell variable \$srcfile for the compiler. |
| 17546 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 17547 | |
| 17548 | # Set to yes if exported symbols are required. |
| 17549 | always_export_symbols=$always_export_symbols_GCJ |
| 17550 | |
| 17551 | # The commands to list exported symbols. |
| 17552 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 17553 | |
| 17554 | # The commands to extract the exported symbol list from a shared archive. |
| 17555 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 17556 | |
| 17557 | # Symbols that should not be listed in the preloaded symbols. |
| 17558 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 17559 | |
| 17560 | # Symbols that must always be exported. |
| 17561 | include_expsyms=$lt_include_expsyms_GCJ |
| 17562 | |
| 17563 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 17564 | |
| 17565 | __EOF__ |
| 17566 | |
| 17567 | |
| 17568 | else |
| 17569 | # If there is no Makefile yet, we rely on a make rule to execute |
| 17570 | # `config.status --recheck' to rerun these tests and create the |
| 17571 | # libtool script then. |
| 17572 | test -f Makefile && make "$ltmain" |
| 17573 | fi |
| 17574 | |
| 17575 | |
| 17576 | ac_ext=c |
| 17577 | ac_cpp='$CPP $CPPFLAGS' |
| 17578 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17579 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17580 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17581 | |
| 17582 | CC="$lt_save_CC" |
| 17583 | |
| 17584 | else |
| 17585 | tagname="" |
| 17586 | fi |
| 17587 | ;; |
| 17588 | |
| 17589 | RC) |
| 17590 | |
| 17591 | |
| 17592 | |
| 17593 | # Source file extension for RC test sources. |
| 17594 | ac_ext=rc |
| 17595 | |
| 17596 | # Object file extension for compiled RC test sources. |
| 17597 | objext=o |
| 17598 | objext_RC=$objext |
| 17599 | |
| 17600 | # Code to be used in simple compile tests |
| 17601 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 17602 | |
| 17603 | # Code to be used in simple link tests |
| 17604 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 17605 | |
| 17606 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 17607 | |
| 17608 | # If no C compiler was specified, use CC. |
| 17609 | LTCC=${LTCC-"$CC"} |
| 17610 | |
| 17611 | # Allow CC to be a program name with arguments. |
| 17612 | compiler=$CC |
| 17613 | |
| 17614 | |
| 17615 | # Allow CC to be a program name with arguments. |
| 17616 | lt_save_CC="$CC" |
| 17617 | CC=${RC-"windres"} |
| 17618 | compiler=$CC |
| 17619 | compiler_RC=$CC |
| 17620 | lt_cv_prog_compiler_c_o_RC=yes |
| 17621 | |
| 17622 | # The else clause should only fire when bootstrapping the |
| 17623 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17624 | # with your package, and you will get complaints that there are |
| 17625 | # no rules to generate ltmain.sh. |
| 17626 | if test -f "$ltmain"; then |
| 17627 | # See if we are running on zsh, and set the options which allow our commands through |
| 17628 | # without removal of \ escapes. |
| 17629 | if test -n "${ZSH_VERSION+set}" ; then |
| 17630 | setopt NO_GLOB_SUBST |
| 17631 | fi |
| 17632 | # Now quote all the things that may contain metacharacters while being |
| 17633 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17634 | # variables and quote the copies for generation of the libtool script. |
| 17635 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
| 17636 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17637 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17638 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17639 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17640 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 17641 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 17642 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17643 | compiler_RC \ |
| 17644 | CC_RC \ |
| 17645 | LD_RC \ |
| 17646 | lt_prog_compiler_wl_RC \ |
| 17647 | lt_prog_compiler_pic_RC \ |
| 17648 | lt_prog_compiler_static_RC \ |
| 17649 | lt_prog_compiler_no_builtin_flag_RC \ |
| 17650 | export_dynamic_flag_spec_RC \ |
| 17651 | thread_safe_flag_spec_RC \ |
| 17652 | whole_archive_flag_spec_RC \ |
| 17653 | enable_shared_with_static_runtimes_RC \ |
| 17654 | old_archive_cmds_RC \ |
| 17655 | old_archive_from_new_cmds_RC \ |
| 17656 | predep_objects_RC \ |
| 17657 | postdep_objects_RC \ |
| 17658 | predeps_RC \ |
| 17659 | postdeps_RC \ |
| 17660 | compiler_lib_search_path_RC \ |
| 17661 | archive_cmds_RC \ |
| 17662 | archive_expsym_cmds_RC \ |
| 17663 | postinstall_cmds_RC \ |
| 17664 | postuninstall_cmds_RC \ |
| 17665 | old_archive_from_expsyms_cmds_RC \ |
| 17666 | allow_undefined_flag_RC \ |
| 17667 | no_undefined_flag_RC \ |
| 17668 | export_symbols_cmds_RC \ |
| 17669 | hardcode_libdir_flag_spec_RC \ |
| 17670 | hardcode_libdir_flag_spec_ld_RC \ |
| 17671 | hardcode_libdir_separator_RC \ |
| 17672 | hardcode_automatic_RC \ |
| 17673 | module_cmds_RC \ |
| 17674 | module_expsym_cmds_RC \ |
| 17675 | lt_cv_prog_compiler_c_o_RC \ |
| 17676 | exclude_expsyms_RC \ |
| 17677 | include_expsyms_RC; do |
| 17678 | |
| 17679 | case $var in |
| 17680 | old_archive_cmds_RC | \ |
| 17681 | old_archive_from_new_cmds_RC | \ |
| 17682 | archive_cmds_RC | \ |
| 17683 | archive_expsym_cmds_RC | \ |
| 17684 | module_cmds_RC | \ |
| 17685 | module_expsym_cmds_RC | \ |
| 17686 | old_archive_from_expsyms_cmds_RC | \ |
| 17687 | export_symbols_cmds_RC | \ |
| 17688 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 17689 | postinstall_cmds | postuninstall_cmds | \ |
| 17690 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17691 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 17692 | # Double-quote double-evaled strings. |
| 17693 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 17694 | ;; |
| 17695 | *) |
| 17696 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17697 | ;; |
| 17698 | esac |
| 17699 | done |
| 17700 | |
| 17701 | case $lt_echo in |
| 17702 | *'\$0 --fallback-echo"') |
| 17703 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17704 | ;; |
| 17705 | esac |
| 17706 | |
| 17707 | cfgfile="$ofile" |
| 17708 | |
| 17709 | cat <<__EOF__ >> "$cfgfile" |
| 17710 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 17711 | |
| 17712 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17713 | |
| 17714 | # Shell to use when invoking shell scripts. |
| 17715 | SHELL=$lt_SHELL |
| 17716 | |
| 17717 | # Whether or not to build shared libraries. |
| 17718 | build_libtool_libs=$enable_shared |
| 17719 | |
| 17720 | # Whether or not to build static libraries. |
| 17721 | build_old_libs=$enable_static |
| 17722 | |
| 17723 | # Whether or not to add -lc for building shared libraries. |
| 17724 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 17725 | |
| 17726 | # Whether or not to disallow shared libs when runtime libs are static |
| 17727 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 17728 | |
| 17729 | # Whether or not to optimize for fast installation. |
| 17730 | fast_install=$enable_fast_install |
| 17731 | |
| 17732 | # The host system. |
| 17733 | host_alias=$host_alias |
| 17734 | host=$host |
| 17735 | |
| 17736 | # An echo program that does not interpret backslashes. |
| 17737 | echo=$lt_echo |
| 17738 | |
| 17739 | # The archiver. |
| 17740 | AR=$lt_AR |
| 17741 | AR_FLAGS=$lt_AR_FLAGS |
| 17742 | |
| 17743 | # A C compiler. |
| 17744 | LTCC=$lt_LTCC |
| 17745 | |
| 17746 | # A language-specific compiler. |
| 17747 | CC=$lt_compiler_RC |
| 17748 | |
| 17749 | # Is the compiler the GNU C compiler? |
| 17750 | with_gcc=$GCC_RC |
| 17751 | |
| 17752 | # An ERE matcher. |
| 17753 | EGREP=$lt_EGREP |
| 17754 | |
| 17755 | # The linker used to build libraries. |
| 17756 | LD=$lt_LD_RC |
| 17757 | |
| 17758 | # Whether we need hard or soft links. |
| 17759 | LN_S=$lt_LN_S |
| 17760 | |
| 17761 | # A BSD-compatible nm program. |
| 17762 | NM=$lt_NM |
| 17763 | |
| 17764 | # A symbol stripping program |
| 17765 | STRIP=$STRIP |
| 17766 | |
| 17767 | # Used to examine libraries when file_magic_cmd begins "file" |
| 17768 | MAGIC_CMD=$MAGIC_CMD |
| 17769 | |
| 17770 | # Used on cygwin: DLL creation program. |
| 17771 | DLLTOOL="$DLLTOOL" |
| 17772 | |
| 17773 | # Used on cygwin: object dumper. |
| 17774 | OBJDUMP="$OBJDUMP" |
| 17775 | |
| 17776 | # Used on cygwin: assembler. |
| 17777 | AS="$AS" |
| 17778 | |
| 17779 | # The name of the directory that contains temporary libtool files. |
| 17780 | objdir=$objdir |
| 17781 | |
| 17782 | # How to create reloadable object files. |
| 17783 | reload_flag=$lt_reload_flag |
| 17784 | reload_cmds=$lt_reload_cmds |
| 17785 | |
| 17786 | # How to pass a linker flag through the compiler. |
| 17787 | wl=$lt_lt_prog_compiler_wl_RC |
| 17788 | |
| 17789 | # Object file suffix (normally "o"). |
| 17790 | objext="$ac_objext" |
| 17791 | |
| 17792 | # Old archive suffix (normally "a"). |
| 17793 | libext="$libext" |
| 17794 | |
| 17795 | # Shared library suffix (normally ".so"). |
| 17796 | shrext='$shrext' |
| 17797 | |
| 17798 | # Executable file suffix (normally ""). |
| 17799 | exeext="$exeext" |
| 17800 | |
| 17801 | # Additional compiler flags for building library objects. |
| 17802 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 17803 | pic_mode=$pic_mode |
| 17804 | |
| 17805 | # What is the maximum length of a command? |
| 17806 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 17807 | |
| 17808 | # Does compiler simultaneously support -c and -o options? |
| 17809 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 17810 | |
| 17811 | # Must we lock files when doing compilation ? |
| 17812 | need_locks=$lt_need_locks |
| 17813 | |
| 17814 | # Do we need the lib prefix for modules? |
| 17815 | need_lib_prefix=$need_lib_prefix |
| 17816 | |
| 17817 | # Do we need a version for libraries? |
| 17818 | need_version=$need_version |
| 17819 | |
| 17820 | # Whether dlopen is supported. |
| 17821 | dlopen_support=$enable_dlopen |
| 17822 | |
| 17823 | # Whether dlopen of programs is supported. |
| 17824 | dlopen_self=$enable_dlopen_self |
| 17825 | |
| 17826 | # Whether dlopen of statically linked programs is supported. |
| 17827 | dlopen_self_static=$enable_dlopen_self_static |
| 17828 | |
| 17829 | # Compiler flag to prevent dynamic linking. |
| 17830 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 17831 | |
| 17832 | # Compiler flag to turn off builtin functions. |
| 17833 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 17834 | |
| 17835 | # Compiler flag to allow reflexive dlopens. |
| 17836 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 17837 | |
| 17838 | # Compiler flag to generate shared objects directly from archives. |
| 17839 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 17840 | |
| 17841 | # Compiler flag to generate thread-safe objects. |
| 17842 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 17843 | |
| 17844 | # Library versioning type. |
| 17845 | version_type=$version_type |
| 17846 | |
| 17847 | # Format of library name prefix. |
| 17848 | libname_spec=$lt_libname_spec |
| 17849 | |
| 17850 | # List of archive names. First name is the real one, the rest are links. |
| 17851 | # The last name is the one that the linker finds with -lNAME. |
| 17852 | library_names_spec=$lt_library_names_spec |
| 17853 | |
| 17854 | # The coded name of the library, if different from the real name. |
| 17855 | soname_spec=$lt_soname_spec |
| 17856 | |
| 17857 | # Commands used to build and install an old-style archive. |
| 17858 | RANLIB=$lt_RANLIB |
| 17859 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 17860 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 17861 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 17862 | |
| 17863 | # Create an old-style archive from a shared archive. |
| 17864 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 17865 | |
| 17866 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17867 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 17868 | |
| 17869 | # Commands used to build and install a shared archive. |
| 17870 | archive_cmds=$lt_archive_cmds_RC |
| 17871 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 17872 | postinstall_cmds=$lt_postinstall_cmds |
| 17873 | postuninstall_cmds=$lt_postuninstall_cmds |
| 17874 | |
| 17875 | # Commands used to build a loadable module (assumed same as above if empty) |
| 17876 | module_cmds=$lt_module_cmds_RC |
| 17877 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 17878 | |
| 17879 | # Commands to strip libraries. |
| 17880 | old_striplib=$lt_old_striplib |
| 17881 | striplib=$lt_striplib |
| 17882 | |
| 17883 | # Dependencies to place before the objects being linked to create a |
| 17884 | # shared library. |
| 17885 | predep_objects=$lt_predep_objects_RC |
| 17886 | |
| 17887 | # Dependencies to place after the objects being linked to create a |
| 17888 | # shared library. |
| 17889 | postdep_objects=$lt_postdep_objects_RC |
| 17890 | |
| 17891 | # Dependencies to place before the objects being linked to create a |
| 17892 | # shared library. |
| 17893 | predeps=$lt_predeps_RC |
| 17894 | |
| 17895 | # Dependencies to place after the objects being linked to create a |
| 17896 | # shared library. |
| 17897 | postdeps=$lt_postdeps_RC |
| 17898 | |
| 17899 | # The library search path used internally by the compiler when linking |
| 17900 | # a shared library. |
| 17901 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 17902 | |
| 17903 | # Method to check whether dependent libraries are shared objects. |
| 17904 | deplibs_check_method=$lt_deplibs_check_method |
| 17905 | |
| 17906 | # Command to use when deplibs_check_method == file_magic. |
| 17907 | file_magic_cmd=$lt_file_magic_cmd |
| 17908 | |
| 17909 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17910 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 17911 | |
| 17912 | # Flag that forces no undefined symbols. |
| 17913 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 17914 | |
| 17915 | # Commands used to finish a libtool library installation in a directory. |
| 17916 | finish_cmds=$lt_finish_cmds |
| 17917 | |
| 17918 | # Same as above, but a single script fragment to be evaled but not shown. |
| 17919 | finish_eval=$lt_finish_eval |
| 17920 | |
| 17921 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 17922 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 17923 | |
| 17924 | # Transform the output of nm in a proper C declaration |
| 17925 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 17926 | |
| 17927 | # Transform the output of nm in a C name address pair |
| 17928 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 17929 | |
| 17930 | # This is the shared library runtime path variable. |
| 17931 | runpath_var=$runpath_var |
| 17932 | |
| 17933 | # This is the shared library path variable. |
| 17934 | shlibpath_var=$shlibpath_var |
| 17935 | |
| 17936 | # Is shlibpath searched before the hard-coded library search path? |
| 17937 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 17938 | |
| 17939 | # How to hardcode a shared library path into an executable. |
| 17940 | hardcode_action=$hardcode_action_RC |
| 17941 | |
| 17942 | # Whether we should hardcode library paths into libraries. |
| 17943 | hardcode_into_libs=$hardcode_into_libs |
| 17944 | |
| 17945 | # Flag to hardcode \$libdir into a binary during linking. |
| 17946 | # This must work even if \$libdir does not exist. |
| 17947 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 17948 | |
| 17949 | # If ld is used when linking, flag to hardcode \$libdir into |
| 17950 | # a binary during linking. This must work even if \$libdir does |
| 17951 | # not exist. |
| 17952 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 17953 | |
| 17954 | # Whether we need a single -rpath flag with a separated argument. |
| 17955 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 17956 | |
| 17957 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 17958 | # resulting binary. |
| 17959 | hardcode_direct=$hardcode_direct_RC |
| 17960 | |
| 17961 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 17962 | # resulting binary. |
| 17963 | hardcode_minus_L=$hardcode_minus_L_RC |
| 17964 | |
| 17965 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 17966 | # the resulting binary. |
| 17967 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 17968 | |
| 17969 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 17970 | # and all subsequent libraries and executables linked against it. |
| 17971 | hardcode_automatic=$hardcode_automatic_RC |
| 17972 | |
| 17973 | # Variables whose values should be saved in libtool wrapper scripts and |
| 17974 | # restored at relink time. |
| 17975 | variables_saved_for_relink="$variables_saved_for_relink" |
| 17976 | |
| 17977 | # Whether libtool must link a program against all its dependency libraries. |
| 17978 | link_all_deplibs=$link_all_deplibs_RC |
| 17979 | |
| 17980 | # Compile-time system search path for libraries |
| 17981 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 17982 | |
| 17983 | # Run-time system search path for libraries |
| 17984 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 17985 | |
| 17986 | # Fix the shell variable \$srcfile for the compiler. |
| 17987 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 17988 | |
| 17989 | # Set to yes if exported symbols are required. |
| 17990 | always_export_symbols=$always_export_symbols_RC |
| 17991 | |
| 17992 | # The commands to list exported symbols. |
| 17993 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 17994 | |
| 17995 | # The commands to extract the exported symbol list from a shared archive. |
| 17996 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 17997 | |
| 17998 | # Symbols that should not be listed in the preloaded symbols. |
| 17999 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 18000 | |
| 18001 | # Symbols that must always be exported. |
| 18002 | include_expsyms=$lt_include_expsyms_RC |
| 18003 | |
| 18004 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 18005 | |
| 18006 | __EOF__ |
| 18007 | |
| 18008 | |
| 18009 | else |
| 18010 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18011 | # `config.status --recheck' to rerun these tests and create the |
| 18012 | # libtool script then. |
| 18013 | test -f Makefile && make "$ltmain" |
| 18014 | fi |
| 18015 | |
| 18016 | |
| 18017 | ac_ext=c |
| 18018 | ac_cpp='$CPP $CPPFLAGS' |
| 18019 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18020 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18021 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18022 | |
| 18023 | CC="$lt_save_CC" |
| 18024 | |
| 18025 | ;; |
| 18026 | |
| 18027 | *) |
| 18028 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 18029 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 18030 | { (exit 1); exit 1; }; } |
| 18031 | ;; |
| 18032 | esac |
| 18033 | |
| 18034 | # Append the new tag name to the list of available tags. |
| 18035 | if test -n "$tagname" ; then |
| 18036 | available_tags="$available_tags $tagname" |
| 18037 | fi |
| 18038 | fi |
| 18039 | done |
| 18040 | IFS="$lt_save_ifs" |
| 18041 | |
| 18042 | # Now substitute the updated list of available tags. |
| 18043 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 18044 | mv "${ofile}T" "$ofile" |
| 18045 | chmod +x "$ofile" |
| 18046 | else |
| 18047 | rm -f "${ofile}T" |
| 18048 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 18049 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 18050 | { (exit 1); exit 1; }; } |
| 18051 | fi |
| 18052 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18053 | |
| 18054 | |
| 18055 | |
| 18056 | # This can be used to rebuild libtool when needed |
| 18057 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 18058 | |
| 18059 | # Always use our own libtool. |
John Criswell | 8d4221e | 2003-07-23 16:52:50 +0000 | [diff] [blame] | 18060 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18061 | |
| 18062 | # Prevent multiple expansion |
| 18063 | |
| 18064 | |
| 18065 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18066 | |
| 18067 | |
| 18068 | |
| 18069 | |
| 18070 | |
| 18071 | |
| 18072 | |
| 18073 | |
| 18074 | |
| 18075 | |
| 18076 | |
| 18077 | |
| 18078 | |
| 18079 | |
| 18080 | |
| 18081 | |
| 18082 | |
| 18083 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18084 | # Extract the first word of "dot", so it can be a program name with args. |
| 18085 | set dummy dot; ac_word=$2 |
| 18086 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18087 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18088 | if test "${ac_cv_path_DOT+set}" = set; then |
| 18089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18090 | else |
| 18091 | case $DOT in |
| 18092 | [\\/]* | ?:[\\/]*) |
| 18093 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 18094 | ;; |
| 18095 | *) |
| 18096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18097 | for as_dir in $PATH |
| 18098 | do |
| 18099 | IFS=$as_save_IFS |
| 18100 | test -z "$as_dir" && as_dir=. |
| 18101 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18102 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18103 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 18104 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18105 | break 2 |
| 18106 | fi |
| 18107 | done |
| 18108 | done |
| 18109 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18110 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18111 | ;; |
| 18112 | esac |
| 18113 | fi |
| 18114 | DOT=$ac_cv_path_DOT |
| 18115 | |
| 18116 | if test -n "$DOT"; then |
| 18117 | echo "$as_me:$LINENO: result: $DOT" >&5 |
| 18118 | echo "${ECHO_T}$DOT" >&6 |
| 18119 | else |
| 18120 | echo "$as_me:$LINENO: result: no" >&5 |
| 18121 | echo "${ECHO_T}no" >&6 |
| 18122 | fi |
| 18123 | |
| 18124 | # Extract the first word of "etags", so it can be a program name with args. |
| 18125 | set dummy etags; ac_word=$2 |
| 18126 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18127 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18128 | if test "${ac_cv_path_ETAGS+set}" = set; then |
| 18129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18130 | else |
| 18131 | case $ETAGS in |
| 18132 | [\\/]* | ?:[\\/]*) |
| 18133 | ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. |
| 18134 | ;; |
| 18135 | *) |
| 18136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18137 | for as_dir in $PATH |
| 18138 | do |
| 18139 | IFS=$as_save_IFS |
| 18140 | test -z "$as_dir" && as_dir=. |
| 18141 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18142 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18143 | ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" |
| 18144 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18145 | break 2 |
| 18146 | fi |
| 18147 | done |
| 18148 | done |
| 18149 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18150 | test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18151 | ;; |
| 18152 | esac |
| 18153 | fi |
| 18154 | ETAGS=$ac_cv_path_ETAGS |
| 18155 | |
| 18156 | if test -n "$ETAGS"; then |
| 18157 | echo "$as_me:$LINENO: result: $ETAGS" >&5 |
| 18158 | echo "${ECHO_T}$ETAGS" >&6 |
| 18159 | else |
| 18160 | echo "$as_me:$LINENO: result: no" >&5 |
| 18161 | echo "${ECHO_T}no" >&6 |
| 18162 | fi |
| 18163 | |
Brian Gaeke | afa3fbf | 2004-01-22 21:55:02 +0000 | [diff] [blame] | 18164 | etags_version=`$ETAGS --version 2>&1` |
| 18165 | case "$etags_version" in |
| 18166 | *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;; |
| 18167 | *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;; |
| 18168 | *) ETAGSFLAGS="" ;; |
| 18169 | esac |
| 18170 | ETAGSFLAGS=$ETAGSFLAGS |
| 18171 | |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 18172 | # Extract the first word of "python", so it can be a program name with args. |
| 18173 | set dummy python; ac_word=$2 |
| 18174 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18175 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18176 | if test "${ac_cv_path_PYTHON+set}" = set; then |
| 18177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18178 | else |
| 18179 | case $PYTHON in |
| 18180 | [\\/]* | ?:[\\/]*) |
| 18181 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. |
| 18182 | ;; |
| 18183 | *) |
| 18184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18185 | for as_dir in $PATH |
| 18186 | do |
| 18187 | IFS=$as_save_IFS |
| 18188 | test -z "$as_dir" && as_dir=. |
| 18189 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18190 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18191 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" |
| 18192 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18193 | break 2 |
| 18194 | fi |
| 18195 | done |
| 18196 | done |
| 18197 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18198 | test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python" |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 18199 | ;; |
| 18200 | esac |
| 18201 | fi |
| 18202 | PYTHON=$ac_cv_path_PYTHON |
| 18203 | |
| 18204 | if test -n "$PYTHON"; then |
| 18205 | echo "$as_me:$LINENO: result: $PYTHON" >&5 |
| 18206 | echo "${ECHO_T}$PYTHON" >&6 |
| 18207 | else |
| 18208 | echo "$as_me:$LINENO: result: no" >&5 |
| 18209 | echo "${ECHO_T}no" >&6 |
| 18210 | fi |
| 18211 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18212 | if test "$PYTHON" = "false" |
John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 18213 | then |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18214 | { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5 |
| 18215 | echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;} |
John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 18216 | fi |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 18217 | # Extract the first word of "qmtest", so it can be a program name with args. |
| 18218 | set dummy qmtest; ac_word=$2 |
| 18219 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18220 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18221 | if test "${ac_cv_path_QMTEST+set}" = set; then |
| 18222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18223 | else |
| 18224 | case $QMTEST in |
| 18225 | [\\/]* | ?:[\\/]*) |
| 18226 | ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path. |
| 18227 | ;; |
| 18228 | *) |
| 18229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18230 | for as_dir in $PATH |
| 18231 | do |
| 18232 | IFS=$as_save_IFS |
| 18233 | test -z "$as_dir" && as_dir=. |
| 18234 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18235 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18236 | ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext" |
| 18237 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18238 | break 2 |
| 18239 | fi |
| 18240 | done |
| 18241 | done |
| 18242 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18243 | test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest" |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 18244 | ;; |
| 18245 | esac |
| 18246 | fi |
| 18247 | QMTEST=$ac_cv_path_QMTEST |
| 18248 | |
| 18249 | if test -n "$QMTEST"; then |
| 18250 | echo "$as_me:$LINENO: result: $QMTEST" >&5 |
| 18251 | echo "${ECHO_T}$QMTEST" >&6 |
| 18252 | else |
| 18253 | echo "$as_me:$LINENO: result: no" >&5 |
| 18254 | echo "${ECHO_T}no" >&6 |
| 18255 | fi |
| 18256 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18257 | if test "$QMTEST" = "false" |
John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 18258 | then |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18259 | { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5 |
| 18260 | echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;} |
John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 18261 | fi |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 18262 | |
| 18263 | pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2` |
| 18264 | pymajor=`echo $pyversion | cut -d. -f1` |
| 18265 | pyminor=`echo $pyversion | cut -d. -f2` |
| 18266 | |
| 18267 | if test "$pymajor" -ge "2" |
| 18268 | then |
| 18269 | if test "$pymajor" -eq "2" |
| 18270 | then |
| 18271 | if test "$pyminor" -lt "2" |
| 18272 | then |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18273 | { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 |
| 18274 | echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 18275 | fi |
| 18276 | fi |
| 18277 | else |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18278 | { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 |
| 18279 | echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 18280 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18281 | |
| 18282 | |
| 18283 | |
| 18284 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18285 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
| 18286 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
| 18287 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
| 18288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18289 | else |
| 18290 | ac_check_lib_save_LIBS=$LIBS |
| 18291 | LIBS="-lelf $LIBS" |
| 18292 | cat >conftest.$ac_ext <<_ACEOF |
| 18293 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18294 | /* confdefs.h. */ |
| 18295 | _ACEOF |
| 18296 | cat confdefs.h >>conftest.$ac_ext |
| 18297 | cat >>conftest.$ac_ext <<_ACEOF |
| 18298 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18299 | |
| 18300 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18301 | #ifdef __cplusplus |
| 18302 | extern "C" |
| 18303 | #endif |
| 18304 | /* We use char because int might match the return type of a gcc2 |
| 18305 | builtin and then its argument prototype would still apply. */ |
| 18306 | char elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18307 | int |
| 18308 | main () |
| 18309 | { |
| 18310 | elf_begin (); |
| 18311 | ; |
| 18312 | return 0; |
| 18313 | } |
| 18314 | _ACEOF |
| 18315 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18316 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18317 | (eval $ac_link) 2>&5 |
| 18318 | ac_status=$? |
| 18319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18320 | (exit $ac_status); } && |
| 18321 | { ac_try='test -s conftest$ac_exeext' |
| 18322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18323 | (eval $ac_try) 2>&5 |
| 18324 | ac_status=$? |
| 18325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18326 | (exit $ac_status); }; }; then |
| 18327 | ac_cv_lib_elf_elf_begin=yes |
| 18328 | else |
| 18329 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18331 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18332 | ac_cv_lib_elf_elf_begin=no |
| 18333 | fi |
| 18334 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 18335 | LIBS=$ac_check_lib_save_LIBS |
| 18336 | fi |
| 18337 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 18338 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
| 18339 | if test $ac_cv_lib_elf_elf_begin = yes; then |
| 18340 | cat >>confdefs.h <<_ACEOF |
| 18341 | #define HAVE_LIBELF 1 |
| 18342 | _ACEOF |
| 18343 | |
| 18344 | LIBS="-lelf $LIBS" |
| 18345 | |
| 18346 | fi |
| 18347 | |
| 18348 | |
| 18349 | echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 18350 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 |
| 18351 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 18352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18353 | else |
| 18354 | ac_func_search_save_LIBS=$LIBS |
| 18355 | ac_cv_search_dlopen=no |
| 18356 | cat >conftest.$ac_ext <<_ACEOF |
| 18357 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18358 | /* confdefs.h. */ |
| 18359 | _ACEOF |
| 18360 | cat confdefs.h >>conftest.$ac_ext |
| 18361 | cat >>conftest.$ac_ext <<_ACEOF |
| 18362 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18363 | |
| 18364 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18365 | #ifdef __cplusplus |
| 18366 | extern "C" |
| 18367 | #endif |
| 18368 | /* We use char because int might match the return type of a gcc2 |
| 18369 | builtin and then its argument prototype would still apply. */ |
| 18370 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18371 | int |
| 18372 | main () |
| 18373 | { |
| 18374 | dlopen (); |
| 18375 | ; |
| 18376 | return 0; |
| 18377 | } |
| 18378 | _ACEOF |
| 18379 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18381 | (eval $ac_link) 2>&5 |
| 18382 | ac_status=$? |
| 18383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18384 | (exit $ac_status); } && |
| 18385 | { ac_try='test -s conftest$ac_exeext' |
| 18386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18387 | (eval $ac_try) 2>&5 |
| 18388 | ac_status=$? |
| 18389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18390 | (exit $ac_status); }; }; then |
| 18391 | ac_cv_search_dlopen="none required" |
| 18392 | else |
| 18393 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18395 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18396 | fi |
| 18397 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 18398 | if test "$ac_cv_search_dlopen" = no; then |
| 18399 | for ac_lib in dl; do |
| 18400 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 18401 | cat >conftest.$ac_ext <<_ACEOF |
| 18402 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18403 | /* confdefs.h. */ |
| 18404 | _ACEOF |
| 18405 | cat confdefs.h >>conftest.$ac_ext |
| 18406 | cat >>conftest.$ac_ext <<_ACEOF |
| 18407 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18408 | |
| 18409 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18410 | #ifdef __cplusplus |
| 18411 | extern "C" |
| 18412 | #endif |
| 18413 | /* We use char because int might match the return type of a gcc2 |
| 18414 | builtin and then its argument prototype would still apply. */ |
| 18415 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18416 | int |
| 18417 | main () |
| 18418 | { |
| 18419 | dlopen (); |
| 18420 | ; |
| 18421 | return 0; |
| 18422 | } |
| 18423 | _ACEOF |
| 18424 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18425 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18426 | (eval $ac_link) 2>&5 |
| 18427 | ac_status=$? |
| 18428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18429 | (exit $ac_status); } && |
| 18430 | { ac_try='test -s conftest$ac_exeext' |
| 18431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18432 | (eval $ac_try) 2>&5 |
| 18433 | ac_status=$? |
| 18434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18435 | (exit $ac_status); }; }; then |
| 18436 | ac_cv_search_dlopen="-l$ac_lib" |
| 18437 | break |
| 18438 | else |
| 18439 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18441 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18442 | fi |
| 18443 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 18444 | done |
| 18445 | fi |
| 18446 | LIBS=$ac_func_search_save_LIBS |
| 18447 | fi |
| 18448 | echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 18449 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6 |
| 18450 | if test "$ac_cv_search_dlopen" != no; then |
| 18451 | test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 18452 | |
| 18453 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 18454 | #define HAVE_DLOPEN 1 |
| 18455 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18456 | |
| 18457 | else |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 18458 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 18459 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18460 | fi |
| 18461 | |
| 18462 | |
| 18463 | echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 18464 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6 |
| 18465 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 18466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18467 | else |
| 18468 | ac_func_search_save_LIBS=$LIBS |
| 18469 | ac_cv_search_mallinfo=no |
| 18470 | cat >conftest.$ac_ext <<_ACEOF |
| 18471 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18472 | /* confdefs.h. */ |
| 18473 | _ACEOF |
| 18474 | cat confdefs.h >>conftest.$ac_ext |
| 18475 | cat >>conftest.$ac_ext <<_ACEOF |
| 18476 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18477 | |
| 18478 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18479 | #ifdef __cplusplus |
| 18480 | extern "C" |
| 18481 | #endif |
| 18482 | /* We use char because int might match the return type of a gcc2 |
| 18483 | builtin and then its argument prototype would still apply. */ |
| 18484 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18485 | int |
| 18486 | main () |
| 18487 | { |
| 18488 | mallinfo (); |
| 18489 | ; |
| 18490 | return 0; |
| 18491 | } |
| 18492 | _ACEOF |
| 18493 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18494 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18495 | (eval $ac_link) 2>&5 |
| 18496 | ac_status=$? |
| 18497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18498 | (exit $ac_status); } && |
| 18499 | { ac_try='test -s conftest$ac_exeext' |
| 18500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18501 | (eval $ac_try) 2>&5 |
| 18502 | ac_status=$? |
| 18503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18504 | (exit $ac_status); }; }; then |
| 18505 | ac_cv_search_mallinfo="none required" |
| 18506 | else |
| 18507 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18509 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18510 | fi |
| 18511 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 18512 | if test "$ac_cv_search_mallinfo" = no; then |
| 18513 | for ac_lib in malloc; do |
| 18514 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 18515 | cat >conftest.$ac_ext <<_ACEOF |
| 18516 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18517 | /* confdefs.h. */ |
| 18518 | _ACEOF |
| 18519 | cat confdefs.h >>conftest.$ac_ext |
| 18520 | cat >>conftest.$ac_ext <<_ACEOF |
| 18521 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18522 | |
| 18523 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18524 | #ifdef __cplusplus |
| 18525 | extern "C" |
| 18526 | #endif |
| 18527 | /* We use char because int might match the return type of a gcc2 |
| 18528 | builtin and then its argument prototype would still apply. */ |
| 18529 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18530 | int |
| 18531 | main () |
| 18532 | { |
| 18533 | mallinfo (); |
| 18534 | ; |
| 18535 | return 0; |
| 18536 | } |
| 18537 | _ACEOF |
| 18538 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18539 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18540 | (eval $ac_link) 2>&5 |
| 18541 | ac_status=$? |
| 18542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18543 | (exit $ac_status); } && |
| 18544 | { ac_try='test -s conftest$ac_exeext' |
| 18545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18546 | (eval $ac_try) 2>&5 |
| 18547 | ac_status=$? |
| 18548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18549 | (exit $ac_status); }; }; then |
| 18550 | ac_cv_search_mallinfo="-l$ac_lib" |
| 18551 | break |
| 18552 | else |
| 18553 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18555 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18556 | fi |
| 18557 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 18558 | done |
| 18559 | fi |
| 18560 | LIBS=$ac_func_search_save_LIBS |
| 18561 | fi |
| 18562 | echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 18563 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6 |
| 18564 | if test "$ac_cv_search_mallinfo" != no; then |
| 18565 | test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 18566 | |
| 18567 | cat >>confdefs.h <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18568 | #define HAVE_MALLINFO 1 |
| 18569 | _ACEOF |
| 18570 | |
| 18571 | fi |
| 18572 | |
| 18573 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 18574 | echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 18575 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6 |
| 18576 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 18577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18578 | else |
| 18579 | ac_func_search_save_LIBS=$LIBS |
| 18580 | ac_cv_search_pthread_mutex_lock=no |
| 18581 | cat >conftest.$ac_ext <<_ACEOF |
| 18582 | #line $LINENO "configure" |
| 18583 | /* confdefs.h. */ |
| 18584 | _ACEOF |
| 18585 | cat confdefs.h >>conftest.$ac_ext |
| 18586 | cat >>conftest.$ac_ext <<_ACEOF |
| 18587 | /* end confdefs.h. */ |
| 18588 | |
| 18589 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18590 | #ifdef __cplusplus |
| 18591 | extern "C" |
| 18592 | #endif |
| 18593 | /* We use char because int might match the return type of a gcc2 |
| 18594 | builtin and then its argument prototype would still apply. */ |
| 18595 | char pthread_mutex_lock (); |
| 18596 | int |
| 18597 | main () |
| 18598 | { |
| 18599 | pthread_mutex_lock (); |
| 18600 | ; |
| 18601 | return 0; |
| 18602 | } |
| 18603 | _ACEOF |
| 18604 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18606 | (eval $ac_link) 2>&5 |
| 18607 | ac_status=$? |
| 18608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18609 | (exit $ac_status); } && |
| 18610 | { ac_try='test -s conftest$ac_exeext' |
| 18611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18612 | (eval $ac_try) 2>&5 |
| 18613 | ac_status=$? |
| 18614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18615 | (exit $ac_status); }; }; then |
| 18616 | ac_cv_search_pthread_mutex_lock="none required" |
| 18617 | else |
| 18618 | echo "$as_me: failed program was:" >&5 |
| 18619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18620 | |
| 18621 | fi |
| 18622 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 18623 | if test "$ac_cv_search_pthread_mutex_lock" = no; then |
| 18624 | for ac_lib in pthread; do |
| 18625 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 18626 | cat >conftest.$ac_ext <<_ACEOF |
| 18627 | #line $LINENO "configure" |
| 18628 | /* confdefs.h. */ |
| 18629 | _ACEOF |
| 18630 | cat confdefs.h >>conftest.$ac_ext |
| 18631 | cat >>conftest.$ac_ext <<_ACEOF |
| 18632 | /* end confdefs.h. */ |
| 18633 | |
| 18634 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18635 | #ifdef __cplusplus |
| 18636 | extern "C" |
| 18637 | #endif |
| 18638 | /* We use char because int might match the return type of a gcc2 |
| 18639 | builtin and then its argument prototype would still apply. */ |
| 18640 | char pthread_mutex_lock (); |
| 18641 | int |
| 18642 | main () |
| 18643 | { |
| 18644 | pthread_mutex_lock (); |
| 18645 | ; |
| 18646 | return 0; |
| 18647 | } |
| 18648 | _ACEOF |
| 18649 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18651 | (eval $ac_link) 2>&5 |
| 18652 | ac_status=$? |
| 18653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18654 | (exit $ac_status); } && |
| 18655 | { ac_try='test -s conftest$ac_exeext' |
| 18656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18657 | (eval $ac_try) 2>&5 |
| 18658 | ac_status=$? |
| 18659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18660 | (exit $ac_status); }; }; then |
| 18661 | ac_cv_search_pthread_mutex_lock="-l$ac_lib" |
| 18662 | break |
| 18663 | else |
| 18664 | echo "$as_me: failed program was:" >&5 |
| 18665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18666 | |
| 18667 | fi |
| 18668 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 18669 | done |
| 18670 | fi |
| 18671 | LIBS=$ac_func_search_save_LIBS |
| 18672 | fi |
| 18673 | echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 18674 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6 |
| 18675 | if test "$ac_cv_search_pthread_mutex_lock" != no; then |
| 18676 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS" |
| 18677 | |
| 18678 | cat >>confdefs.h <<\_ACEOF |
| 18679 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 18680 | _ACEOF |
| 18681 | |
| 18682 | fi |
| 18683 | |
| 18684 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18685 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 18686 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 18687 | if test "${ac_cv_header_stdc+set}" = set; then |
| 18688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18689 | else |
| 18690 | cat >conftest.$ac_ext <<_ACEOF |
| 18691 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18692 | /* confdefs.h. */ |
| 18693 | _ACEOF |
| 18694 | cat confdefs.h >>conftest.$ac_ext |
| 18695 | cat >>conftest.$ac_ext <<_ACEOF |
| 18696 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18697 | #include <stdlib.h> |
| 18698 | #include <stdarg.h> |
| 18699 | #include <string.h> |
| 18700 | #include <float.h> |
| 18701 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18702 | int |
| 18703 | main () |
| 18704 | { |
| 18705 | |
| 18706 | ; |
| 18707 | return 0; |
| 18708 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18709 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18710 | rm -f conftest.$ac_objext |
| 18711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18712 | (eval $ac_compile) 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18713 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18715 | (exit $ac_status); } && |
| 18716 | { ac_try='test -s conftest.$ac_objext' |
| 18717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18718 | (eval $ac_try) 2>&5 |
| 18719 | ac_status=$? |
| 18720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18721 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18722 | ac_cv_header_stdc=yes |
| 18723 | else |
| 18724 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18726 | |
| 18727 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18728 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18729 | rm -f conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18730 | |
| 18731 | if test $ac_cv_header_stdc = yes; then |
| 18732 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 18733 | cat >conftest.$ac_ext <<_ACEOF |
| 18734 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18735 | /* confdefs.h. */ |
| 18736 | _ACEOF |
| 18737 | cat confdefs.h >>conftest.$ac_ext |
| 18738 | cat >>conftest.$ac_ext <<_ACEOF |
| 18739 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18740 | #include <string.h> |
| 18741 | |
| 18742 | _ACEOF |
| 18743 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18744 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18745 | : |
| 18746 | else |
| 18747 | ac_cv_header_stdc=no |
| 18748 | fi |
| 18749 | rm -f conftest* |
| 18750 | |
| 18751 | fi |
| 18752 | |
| 18753 | if test $ac_cv_header_stdc = yes; then |
| 18754 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 18755 | cat >conftest.$ac_ext <<_ACEOF |
| 18756 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18757 | /* confdefs.h. */ |
| 18758 | _ACEOF |
| 18759 | cat confdefs.h >>conftest.$ac_ext |
| 18760 | cat >>conftest.$ac_ext <<_ACEOF |
| 18761 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18762 | #include <stdlib.h> |
| 18763 | |
| 18764 | _ACEOF |
| 18765 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18766 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18767 | : |
| 18768 | else |
| 18769 | ac_cv_header_stdc=no |
| 18770 | fi |
| 18771 | rm -f conftest* |
| 18772 | |
| 18773 | fi |
| 18774 | |
| 18775 | if test $ac_cv_header_stdc = yes; then |
| 18776 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 18777 | if test "$cross_compiling" = yes; then |
| 18778 | : |
| 18779 | else |
| 18780 | cat >conftest.$ac_ext <<_ACEOF |
| 18781 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18782 | /* confdefs.h. */ |
| 18783 | _ACEOF |
| 18784 | cat confdefs.h >>conftest.$ac_ext |
| 18785 | cat >>conftest.$ac_ext <<_ACEOF |
| 18786 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18787 | #include <ctype.h> |
| 18788 | #if ((' ' & 0x0FF) == 0x020) |
| 18789 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 18790 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 18791 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18792 | # define ISLOWER(c) \ |
| 18793 | (('a' <= (c) && (c) <= 'i') \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18794 | || ('j' <= (c) && (c) <= 'r') \ |
| 18795 | || ('s' <= (c) && (c) <= 'z')) |
| 18796 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 18797 | #endif |
| 18798 | |
| 18799 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 18800 | int |
| 18801 | main () |
| 18802 | { |
| 18803 | int i; |
| 18804 | for (i = 0; i < 256; i++) |
| 18805 | if (XOR (islower (i), ISLOWER (i)) |
| 18806 | || toupper (i) != TOUPPER (i)) |
| 18807 | exit(2); |
| 18808 | exit (0); |
| 18809 | } |
| 18810 | _ACEOF |
| 18811 | rm -f conftest$ac_exeext |
| 18812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18813 | (eval $ac_link) 2>&5 |
| 18814 | ac_status=$? |
| 18815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18816 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18818 | (eval $ac_try) 2>&5 |
| 18819 | ac_status=$? |
| 18820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18821 | (exit $ac_status); }; }; then |
| 18822 | : |
| 18823 | else |
| 18824 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18825 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18827 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18828 | ( exit $ac_status ) |
| 18829 | ac_cv_header_stdc=no |
| 18830 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18831 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18832 | fi |
| 18833 | fi |
| 18834 | fi |
| 18835 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 18836 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 18837 | if test $ac_cv_header_stdc = yes; then |
| 18838 | |
| 18839 | cat >>confdefs.h <<\_ACEOF |
| 18840 | #define STDC_HEADERS 1 |
| 18841 | _ACEOF |
| 18842 | |
| 18843 | fi |
| 18844 | |
| 18845 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 18846 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
| 18847 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 18848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18849 | else |
| 18850 | cat >conftest.$ac_ext <<_ACEOF |
| 18851 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18852 | /* confdefs.h. */ |
| 18853 | _ACEOF |
| 18854 | cat confdefs.h >>conftest.$ac_ext |
| 18855 | cat >>conftest.$ac_ext <<_ACEOF |
| 18856 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18857 | #include <sys/types.h> |
| 18858 | #include <sys/wait.h> |
| 18859 | #ifndef WEXITSTATUS |
| 18860 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
| 18861 | #endif |
| 18862 | #ifndef WIFEXITED |
| 18863 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 18864 | #endif |
| 18865 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18866 | int |
| 18867 | main () |
| 18868 | { |
| 18869 | int s; |
| 18870 | wait (&s); |
| 18871 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 18872 | ; |
| 18873 | return 0; |
| 18874 | } |
| 18875 | _ACEOF |
| 18876 | rm -f conftest.$ac_objext |
| 18877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18878 | (eval $ac_compile) 2>&5 |
| 18879 | ac_status=$? |
| 18880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18881 | (exit $ac_status); } && |
| 18882 | { ac_try='test -s conftest.$ac_objext' |
| 18883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18884 | (eval $ac_try) 2>&5 |
| 18885 | ac_status=$? |
| 18886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18887 | (exit $ac_status); }; }; then |
| 18888 | ac_cv_header_sys_wait_h=yes |
| 18889 | else |
| 18890 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18892 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18893 | ac_cv_header_sys_wait_h=no |
| 18894 | fi |
| 18895 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 18896 | fi |
| 18897 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 18898 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
| 18899 | if test $ac_cv_header_sys_wait_h = yes; then |
| 18900 | |
| 18901 | cat >>confdefs.h <<\_ACEOF |
| 18902 | #define HAVE_SYS_WAIT_H 1 |
| 18903 | _ACEOF |
| 18904 | |
| 18905 | fi |
| 18906 | |
| 18907 | |
| 18908 | |
| 18909 | |
| 18910 | |
| 18911 | |
| 18912 | |
| 18913 | |
| 18914 | |
| 18915 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18916 | |
Brian Gaeke | f526147 | 2004-02-20 06:40:57 +0000 | [diff] [blame] | 18917 | |
| 18918 | for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18919 | do |
| 18920 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 18921 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 18922 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 18923 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 18924 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 18925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18926 | fi |
| 18927 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 18928 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 18929 | else |
| 18930 | # Is the header compilable? |
| 18931 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 18932 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 18933 | cat >conftest.$ac_ext <<_ACEOF |
| 18934 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18935 | /* confdefs.h. */ |
| 18936 | _ACEOF |
| 18937 | cat confdefs.h >>conftest.$ac_ext |
| 18938 | cat >>conftest.$ac_ext <<_ACEOF |
| 18939 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18940 | $ac_includes_default |
| 18941 | #include <$ac_header> |
| 18942 | _ACEOF |
| 18943 | rm -f conftest.$ac_objext |
| 18944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18945 | (eval $ac_compile) 2>&5 |
| 18946 | ac_status=$? |
| 18947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18948 | (exit $ac_status); } && |
| 18949 | { ac_try='test -s conftest.$ac_objext' |
| 18950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18951 | (eval $ac_try) 2>&5 |
| 18952 | ac_status=$? |
| 18953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18954 | (exit $ac_status); }; }; then |
| 18955 | ac_header_compiler=yes |
| 18956 | else |
| 18957 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18959 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18960 | ac_header_compiler=no |
| 18961 | fi |
| 18962 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 18963 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 18964 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 18965 | |
| 18966 | # Is the header present? |
| 18967 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 18968 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 18969 | cat >conftest.$ac_ext <<_ACEOF |
| 18970 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18971 | /* confdefs.h. */ |
| 18972 | _ACEOF |
| 18973 | cat confdefs.h >>conftest.$ac_ext |
| 18974 | cat >>conftest.$ac_ext <<_ACEOF |
| 18975 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18976 | #include <$ac_header> |
| 18977 | _ACEOF |
| 18978 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 18979 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 18980 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18981 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18982 | rm -f conftest.er1 |
| 18983 | cat conftest.err >&5 |
| 18984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18985 | (exit $ac_status); } >/dev/null; then |
| 18986 | if test -s conftest.err; then |
| 18987 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 18988 | else |
| 18989 | ac_cpp_err= |
| 18990 | fi |
| 18991 | else |
| 18992 | ac_cpp_err=yes |
| 18993 | fi |
| 18994 | if test -z "$ac_cpp_err"; then |
| 18995 | ac_header_preproc=yes |
| 18996 | else |
| 18997 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18998 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18999 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19000 | ac_header_preproc=no |
| 19001 | fi |
| 19002 | rm -f conftest.err conftest.$ac_ext |
| 19003 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19004 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 19005 | |
| 19006 | # So? What about this header? |
| 19007 | case $ac_header_compiler:$ac_header_preproc in |
| 19008 | yes:no ) |
| 19009 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19010 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 19011 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19012 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19013 | ( |
| 19014 | cat <<\_ASBOX |
| 19015 | ## ------------------------------------ ## |
| 19016 | ## Report this to bug-autoconf@gnu.org. ## |
| 19017 | ## ------------------------------------ ## |
| 19018 | _ASBOX |
| 19019 | ) | |
| 19020 | sed "s/^/$as_me: WARNING: /" >&2 |
| 19021 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19022 | no:yes ) |
| 19023 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 19024 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 19025 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 19026 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 19027 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19028 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19029 | ( |
| 19030 | cat <<\_ASBOX |
| 19031 | ## ------------------------------------ ## |
| 19032 | ## Report this to bug-autoconf@gnu.org. ## |
| 19033 | ## ------------------------------------ ## |
| 19034 | _ASBOX |
| 19035 | ) | |
| 19036 | sed "s/^/$as_me: WARNING: /" >&2 |
| 19037 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19038 | esac |
| 19039 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19040 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 19041 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19043 | else |
| 19044 | eval "$as_ac_Header=$ac_header_preproc" |
| 19045 | fi |
| 19046 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 19047 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 19048 | |
| 19049 | fi |
| 19050 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 19051 | cat >>confdefs.h <<_ACEOF |
| 19052 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 19053 | _ACEOF |
| 19054 | |
| 19055 | fi |
| 19056 | |
| 19057 | done |
| 19058 | |
| 19059 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19060 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 19061 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 19062 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 19063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19064 | else |
| 19065 | cat >conftest.$ac_ext <<_ACEOF |
| 19066 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19067 | /* confdefs.h. */ |
| 19068 | _ACEOF |
| 19069 | cat confdefs.h >>conftest.$ac_ext |
| 19070 | cat >>conftest.$ac_ext <<_ACEOF |
| 19071 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19072 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19073 | int |
| 19074 | main () |
| 19075 | { |
| 19076 | if ((pid_t *) 0) |
| 19077 | return 0; |
| 19078 | if (sizeof (pid_t)) |
| 19079 | return 0; |
| 19080 | ; |
| 19081 | return 0; |
| 19082 | } |
| 19083 | _ACEOF |
| 19084 | rm -f conftest.$ac_objext |
| 19085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19086 | (eval $ac_compile) 2>&5 |
| 19087 | ac_status=$? |
| 19088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19089 | (exit $ac_status); } && |
| 19090 | { ac_try='test -s conftest.$ac_objext' |
| 19091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19092 | (eval $ac_try) 2>&5 |
| 19093 | ac_status=$? |
| 19094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19095 | (exit $ac_status); }; }; then |
| 19096 | ac_cv_type_pid_t=yes |
| 19097 | else |
| 19098 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19100 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19101 | ac_cv_type_pid_t=no |
| 19102 | fi |
| 19103 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19104 | fi |
| 19105 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 19106 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 19107 | if test $ac_cv_type_pid_t = yes; then |
| 19108 | : |
| 19109 | else |
| 19110 | |
| 19111 | cat >>confdefs.h <<_ACEOF |
| 19112 | #define pid_t int |
| 19113 | _ACEOF |
| 19114 | |
| 19115 | fi |
| 19116 | |
| 19117 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 19118 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 19119 | if test "${ac_cv_type_size_t+set}" = set; then |
| 19120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19121 | else |
| 19122 | cat >conftest.$ac_ext <<_ACEOF |
| 19123 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19124 | /* confdefs.h. */ |
| 19125 | _ACEOF |
| 19126 | cat confdefs.h >>conftest.$ac_ext |
| 19127 | cat >>conftest.$ac_ext <<_ACEOF |
| 19128 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19129 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19130 | int |
| 19131 | main () |
| 19132 | { |
| 19133 | if ((size_t *) 0) |
| 19134 | return 0; |
| 19135 | if (sizeof (size_t)) |
| 19136 | return 0; |
| 19137 | ; |
| 19138 | return 0; |
| 19139 | } |
| 19140 | _ACEOF |
| 19141 | rm -f conftest.$ac_objext |
| 19142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19143 | (eval $ac_compile) 2>&5 |
| 19144 | ac_status=$? |
| 19145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19146 | (exit $ac_status); } && |
| 19147 | { ac_try='test -s conftest.$ac_objext' |
| 19148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19149 | (eval $ac_try) 2>&5 |
| 19150 | ac_status=$? |
| 19151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19152 | (exit $ac_status); }; }; then |
| 19153 | ac_cv_type_size_t=yes |
| 19154 | else |
| 19155 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19157 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19158 | ac_cv_type_size_t=no |
| 19159 | fi |
| 19160 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19161 | fi |
| 19162 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 19163 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 19164 | if test $ac_cv_type_size_t = yes; then |
| 19165 | : |
| 19166 | else |
| 19167 | |
| 19168 | cat >>confdefs.h <<_ACEOF |
| 19169 | #define size_t unsigned |
| 19170 | _ACEOF |
| 19171 | |
| 19172 | fi |
| 19173 | |
| 19174 | echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 19175 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 |
| 19176 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 19177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19178 | else |
| 19179 | cat >conftest.$ac_ext <<_ACEOF |
| 19180 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19181 | /* confdefs.h. */ |
| 19182 | _ACEOF |
| 19183 | cat confdefs.h >>conftest.$ac_ext |
| 19184 | cat >>conftest.$ac_ext <<_ACEOF |
| 19185 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19186 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19187 | int |
| 19188 | main () |
| 19189 | { |
| 19190 | if ((int64_t *) 0) |
| 19191 | return 0; |
| 19192 | if (sizeof (int64_t)) |
| 19193 | return 0; |
| 19194 | ; |
| 19195 | return 0; |
| 19196 | } |
| 19197 | _ACEOF |
| 19198 | rm -f conftest.$ac_objext |
| 19199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19200 | (eval $ac_compile) 2>&5 |
| 19201 | ac_status=$? |
| 19202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19203 | (exit $ac_status); } && |
| 19204 | { ac_try='test -s conftest.$ac_objext' |
| 19205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19206 | (eval $ac_try) 2>&5 |
| 19207 | ac_status=$? |
| 19208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19209 | (exit $ac_status); }; }; then |
| 19210 | ac_cv_type_int64_t=yes |
| 19211 | else |
| 19212 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19214 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19215 | ac_cv_type_int64_t=no |
| 19216 | fi |
| 19217 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19218 | fi |
| 19219 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 19220 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 |
| 19221 | if test $ac_cv_type_int64_t = yes; then |
| 19222 | |
| 19223 | cat >>confdefs.h <<_ACEOF |
| 19224 | #define HAVE_INT64_T 1 |
| 19225 | _ACEOF |
| 19226 | |
| 19227 | |
| 19228 | else |
| 19229 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 19230 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 19231 | { (exit 1); exit 1; }; } |
| 19232 | fi |
| 19233 | |
| 19234 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 19235 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 |
| 19236 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 19237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19238 | else |
| 19239 | cat >conftest.$ac_ext <<_ACEOF |
| 19240 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19241 | /* confdefs.h. */ |
| 19242 | _ACEOF |
| 19243 | cat confdefs.h >>conftest.$ac_ext |
| 19244 | cat >>conftest.$ac_ext <<_ACEOF |
| 19245 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19246 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19247 | int |
| 19248 | main () |
| 19249 | { |
| 19250 | if ((uint64_t *) 0) |
| 19251 | return 0; |
| 19252 | if (sizeof (uint64_t)) |
| 19253 | return 0; |
| 19254 | ; |
| 19255 | return 0; |
| 19256 | } |
| 19257 | _ACEOF |
| 19258 | rm -f conftest.$ac_objext |
| 19259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19260 | (eval $ac_compile) 2>&5 |
| 19261 | ac_status=$? |
| 19262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19263 | (exit $ac_status); } && |
| 19264 | { ac_try='test -s conftest.$ac_objext' |
| 19265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19266 | (eval $ac_try) 2>&5 |
| 19267 | ac_status=$? |
| 19268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19269 | (exit $ac_status); }; }; then |
| 19270 | ac_cv_type_uint64_t=yes |
| 19271 | else |
| 19272 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19273 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19274 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19275 | ac_cv_type_uint64_t=no |
| 19276 | fi |
| 19277 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19278 | fi |
| 19279 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 19280 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 |
| 19281 | if test $ac_cv_type_uint64_t = yes; then |
| 19282 | |
| 19283 | cat >>confdefs.h <<_ACEOF |
| 19284 | #define HAVE_UINT64_T 1 |
| 19285 | _ACEOF |
| 19286 | |
| 19287 | |
| 19288 | else |
| 19289 | { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5 |
| 19290 | echo "$as_me: error: Type uint64_t required but not found" >&2;} |
| 19291 | { (exit 1); exit 1; }; } |
| 19292 | fi |
| 19293 | |
| 19294 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 19295 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 19296 | if test "${ac_cv_header_time+set}" = set; then |
| 19297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19298 | else |
| 19299 | cat >conftest.$ac_ext <<_ACEOF |
| 19300 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19301 | /* confdefs.h. */ |
| 19302 | _ACEOF |
| 19303 | cat confdefs.h >>conftest.$ac_ext |
| 19304 | cat >>conftest.$ac_ext <<_ACEOF |
| 19305 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19306 | #include <sys/types.h> |
| 19307 | #include <sys/time.h> |
| 19308 | #include <time.h> |
| 19309 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19310 | int |
| 19311 | main () |
| 19312 | { |
| 19313 | if ((struct tm *) 0) |
| 19314 | return 0; |
| 19315 | ; |
| 19316 | return 0; |
| 19317 | } |
| 19318 | _ACEOF |
| 19319 | rm -f conftest.$ac_objext |
| 19320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19321 | (eval $ac_compile) 2>&5 |
| 19322 | ac_status=$? |
| 19323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19324 | (exit $ac_status); } && |
| 19325 | { ac_try='test -s conftest.$ac_objext' |
| 19326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19327 | (eval $ac_try) 2>&5 |
| 19328 | ac_status=$? |
| 19329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19330 | (exit $ac_status); }; }; then |
| 19331 | ac_cv_header_time=yes |
| 19332 | else |
| 19333 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19334 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19335 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19336 | ac_cv_header_time=no |
| 19337 | fi |
| 19338 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19339 | fi |
| 19340 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 19341 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
| 19342 | if test $ac_cv_header_time = yes; then |
| 19343 | |
| 19344 | cat >>confdefs.h <<\_ACEOF |
| 19345 | #define TIME_WITH_SYS_TIME 1 |
| 19346 | _ACEOF |
| 19347 | |
| 19348 | fi |
| 19349 | |
| 19350 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 19351 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 19352 | if test "${ac_cv_struct_tm+set}" = set; then |
| 19353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19354 | else |
| 19355 | cat >conftest.$ac_ext <<_ACEOF |
| 19356 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19357 | /* confdefs.h. */ |
| 19358 | _ACEOF |
| 19359 | cat confdefs.h >>conftest.$ac_ext |
| 19360 | cat >>conftest.$ac_ext <<_ACEOF |
| 19361 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19362 | #include <sys/types.h> |
| 19363 | #include <time.h> |
| 19364 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19365 | int |
| 19366 | main () |
| 19367 | { |
| 19368 | struct tm *tp; tp->tm_sec; |
| 19369 | ; |
| 19370 | return 0; |
| 19371 | } |
| 19372 | _ACEOF |
| 19373 | rm -f conftest.$ac_objext |
| 19374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19375 | (eval $ac_compile) 2>&5 |
| 19376 | ac_status=$? |
| 19377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19378 | (exit $ac_status); } && |
| 19379 | { ac_try='test -s conftest.$ac_objext' |
| 19380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19381 | (eval $ac_try) 2>&5 |
| 19382 | ac_status=$? |
| 19383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19384 | (exit $ac_status); }; }; then |
| 19385 | ac_cv_struct_tm=time.h |
| 19386 | else |
| 19387 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19388 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19389 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19390 | ac_cv_struct_tm=sys/time.h |
| 19391 | fi |
| 19392 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19393 | fi |
| 19394 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 19395 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
| 19396 | if test $ac_cv_struct_tm = sys/time.h; then |
| 19397 | |
| 19398 | cat >>confdefs.h <<\_ACEOF |
| 19399 | #define TM_IN_SYS_TIME 1 |
| 19400 | _ACEOF |
| 19401 | |
| 19402 | fi |
| 19403 | |
| 19404 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19405 | |
| 19406 | |
| 19407 | |
| 19408 | ac_ext=c |
| 19409 | ac_cpp='$CPP $CPPFLAGS' |
| 19410 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19411 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19412 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19413 | |
| 19414 | if test "$cross_compiling" = yes; then |
| 19415 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 19416 | See \`config.log' for more details." >&5 |
| 19417 | echo "$as_me: error: cannot run test program while cross compiling |
| 19418 | See \`config.log' for more details." >&2;} |
| 19419 | { (exit 1); exit 1; }; } |
| 19420 | else |
| 19421 | cat >conftest.$ac_ext <<_ACEOF |
| 19422 | #line $LINENO "configure" |
| 19423 | /* confdefs.h. */ |
| 19424 | _ACEOF |
| 19425 | cat confdefs.h >>conftest.$ac_ext |
| 19426 | cat >>conftest.$ac_ext <<_ACEOF |
| 19427 | /* end confdefs.h. */ |
| 19428 | #include <stdio.h> |
| 19429 | #include <stdlib.h> |
| 19430 | int |
| 19431 | main () |
| 19432 | { |
| 19433 | |
| 19434 | volatile double A, B; |
| 19435 | char Buffer[100]; |
| 19436 | A = 1; |
| 19437 | A /= 10.0; |
| 19438 | sprintf(Buffer, "%a", A); |
| 19439 | B = atof(Buffer); |
| 19440 | if (A != B) |
| 19441 | return (1); |
| 19442 | if (A != 0x1.999999999999ap-4) |
| 19443 | return (1); |
| 19444 | return (0); |
| 19445 | ; |
| 19446 | return 0; |
| 19447 | } |
| 19448 | _ACEOF |
| 19449 | rm -f conftest$ac_exeext |
| 19450 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19451 | (eval $ac_link) 2>&5 |
| 19452 | ac_status=$? |
| 19453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19454 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19456 | (eval $ac_try) 2>&5 |
| 19457 | ac_status=$? |
| 19458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19459 | (exit $ac_status); }; }; then |
| 19460 | ac_c_printf_a=yes |
| 19461 | else |
| 19462 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19463 | echo "$as_me: failed program was:" >&5 |
| 19464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19465 | |
| 19466 | ( exit $ac_status ) |
| 19467 | ac_c_printf_a=no |
| 19468 | fi |
| 19469 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 19470 | fi |
| 19471 | ac_ext=c |
| 19472 | ac_cpp='$CPP $CPPFLAGS' |
| 19473 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19474 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19475 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19476 | |
| 19477 | if test "$ac_c_printf_a" = "yes"; then |
| 19478 | |
| 19479 | cat >>confdefs.h <<\_ACEOF |
| 19480 | #define HAVE_PRINTF_A 1 |
| 19481 | _ACEOF |
| 19482 | |
| 19483 | fi |
| 19484 | |
| 19485 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 19486 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 19487 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 19488 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 19489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19490 | else |
| 19491 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 19492 | cat >conftest.$ac_ext <<_ACEOF |
| 19493 | #line $LINENO "configure" |
| 19494 | /* confdefs.h. */ |
| 19495 | _ACEOF |
| 19496 | cat confdefs.h >>conftest.$ac_ext |
| 19497 | cat >>conftest.$ac_ext <<_ACEOF |
| 19498 | /* end confdefs.h. */ |
| 19499 | #include <sys/types.h> |
| 19500 | #include <sys/param.h> |
| 19501 | |
| 19502 | int |
| 19503 | main () |
| 19504 | { |
| 19505 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 19506 | bogus endian macros |
| 19507 | #endif |
| 19508 | |
| 19509 | ; |
| 19510 | return 0; |
| 19511 | } |
| 19512 | _ACEOF |
| 19513 | rm -f conftest.$ac_objext |
| 19514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19515 | (eval $ac_compile) 2>&5 |
| 19516 | ac_status=$? |
| 19517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19518 | (exit $ac_status); } && |
| 19519 | { ac_try='test -s conftest.$ac_objext' |
| 19520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19521 | (eval $ac_try) 2>&5 |
| 19522 | ac_status=$? |
| 19523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19524 | (exit $ac_status); }; }; then |
| 19525 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 19526 | cat >conftest.$ac_ext <<_ACEOF |
| 19527 | #line $LINENO "configure" |
| 19528 | /* confdefs.h. */ |
| 19529 | _ACEOF |
| 19530 | cat confdefs.h >>conftest.$ac_ext |
| 19531 | cat >>conftest.$ac_ext <<_ACEOF |
| 19532 | /* end confdefs.h. */ |
| 19533 | #include <sys/types.h> |
| 19534 | #include <sys/param.h> |
| 19535 | |
| 19536 | int |
| 19537 | main () |
| 19538 | { |
| 19539 | #if BYTE_ORDER != BIG_ENDIAN |
| 19540 | not big endian |
| 19541 | #endif |
| 19542 | |
| 19543 | ; |
| 19544 | return 0; |
| 19545 | } |
| 19546 | _ACEOF |
| 19547 | rm -f conftest.$ac_objext |
| 19548 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19549 | (eval $ac_compile) 2>&5 |
| 19550 | ac_status=$? |
| 19551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19552 | (exit $ac_status); } && |
| 19553 | { ac_try='test -s conftest.$ac_objext' |
| 19554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19555 | (eval $ac_try) 2>&5 |
| 19556 | ac_status=$? |
| 19557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19558 | (exit $ac_status); }; }; then |
| 19559 | ac_cv_c_bigendian=yes |
| 19560 | else |
| 19561 | echo "$as_me: failed program was:" >&5 |
| 19562 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19563 | |
| 19564 | ac_cv_c_bigendian=no |
| 19565 | fi |
| 19566 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19567 | else |
| 19568 | echo "$as_me: failed program was:" >&5 |
| 19569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19570 | |
| 19571 | # It does not; compile a test program. |
| 19572 | if test "$cross_compiling" = yes; then |
| 19573 | # try to guess the endianness by grepping values into an object file |
| 19574 | ac_cv_c_bigendian=unknown |
| 19575 | cat >conftest.$ac_ext <<_ACEOF |
| 19576 | #line $LINENO "configure" |
| 19577 | /* confdefs.h. */ |
| 19578 | _ACEOF |
| 19579 | cat confdefs.h >>conftest.$ac_ext |
| 19580 | cat >>conftest.$ac_ext <<_ACEOF |
| 19581 | /* end confdefs.h. */ |
| 19582 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 19583 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 19584 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 19585 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 19586 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 19587 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 19588 | int |
| 19589 | main () |
| 19590 | { |
| 19591 | _ascii (); _ebcdic (); |
| 19592 | ; |
| 19593 | return 0; |
| 19594 | } |
| 19595 | _ACEOF |
| 19596 | rm -f conftest.$ac_objext |
| 19597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19598 | (eval $ac_compile) 2>&5 |
| 19599 | ac_status=$? |
| 19600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19601 | (exit $ac_status); } && |
| 19602 | { ac_try='test -s conftest.$ac_objext' |
| 19603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19604 | (eval $ac_try) 2>&5 |
| 19605 | ac_status=$? |
| 19606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19607 | (exit $ac_status); }; }; then |
| 19608 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 19609 | ac_cv_c_bigendian=yes |
| 19610 | fi |
| 19611 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 19612 | if test "$ac_cv_c_bigendian" = unknown; then |
| 19613 | ac_cv_c_bigendian=no |
| 19614 | else |
| 19615 | # finding both strings is unlikely to happen, but who knows? |
| 19616 | ac_cv_c_bigendian=unknown |
| 19617 | fi |
| 19618 | fi |
| 19619 | else |
| 19620 | echo "$as_me: failed program was:" >&5 |
| 19621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19622 | |
| 19623 | fi |
| 19624 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19625 | else |
| 19626 | cat >conftest.$ac_ext <<_ACEOF |
| 19627 | #line $LINENO "configure" |
| 19628 | /* confdefs.h. */ |
| 19629 | _ACEOF |
| 19630 | cat confdefs.h >>conftest.$ac_ext |
| 19631 | cat >>conftest.$ac_ext <<_ACEOF |
| 19632 | /* end confdefs.h. */ |
| 19633 | int |
| 19634 | main () |
| 19635 | { |
| 19636 | /* Are we little or big endian? From Harbison&Steele. */ |
| 19637 | union |
| 19638 | { |
| 19639 | long l; |
| 19640 | char c[sizeof (long)]; |
| 19641 | } u; |
| 19642 | u.l = 1; |
| 19643 | exit (u.c[sizeof (long) - 1] == 1); |
| 19644 | } |
| 19645 | _ACEOF |
| 19646 | rm -f conftest$ac_exeext |
| 19647 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19648 | (eval $ac_link) 2>&5 |
| 19649 | ac_status=$? |
| 19650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19651 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19653 | (eval $ac_try) 2>&5 |
| 19654 | ac_status=$? |
| 19655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19656 | (exit $ac_status); }; }; then |
| 19657 | ac_cv_c_bigendian=no |
| 19658 | else |
| 19659 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19660 | echo "$as_me: failed program was:" >&5 |
| 19661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19662 | |
| 19663 | ( exit $ac_status ) |
| 19664 | ac_cv_c_bigendian=yes |
| 19665 | fi |
| 19666 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 19667 | fi |
| 19668 | fi |
| 19669 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19670 | fi |
| 19671 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 19672 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 19673 | case $ac_cv_c_bigendian in |
| 19674 | yes) |
| 19675 | ENDIAN=big |
| 19676 | ;; |
| 19677 | no) |
| 19678 | ENDIAN=little |
| 19679 | ;; |
| 19680 | *) |
| 19681 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 19682 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 19683 | echo "$as_me: error: unknown endianness |
| 19684 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 19685 | { (exit 1); exit 1; }; } ;; |
| 19686 | esac |
| 19687 | |
| 19688 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19689 | echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 19690 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 |
| 19691 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 19692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19693 | else |
| 19694 | |
| 19695 | |
| 19696 | ac_ext=cc |
| 19697 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19698 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19699 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19700 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19701 | |
| 19702 | cat >conftest.$ac_ext <<_ACEOF |
| 19703 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19704 | /* confdefs.h. */ |
| 19705 | _ACEOF |
| 19706 | cat confdefs.h >>conftest.$ac_ext |
| 19707 | cat >>conftest.$ac_ext <<_ACEOF |
| 19708 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19709 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19710 | int |
| 19711 | main () |
| 19712 | { |
| 19713 | using namespace Outer::Inner; return i; |
| 19714 | ; |
| 19715 | return 0; |
| 19716 | } |
| 19717 | _ACEOF |
| 19718 | rm -f conftest.$ac_objext |
| 19719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19720 | (eval $ac_compile) 2>&5 |
| 19721 | ac_status=$? |
| 19722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19723 | (exit $ac_status); } && |
| 19724 | { ac_try='test -s conftest.$ac_objext' |
| 19725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19726 | (eval $ac_try) 2>&5 |
| 19727 | ac_status=$? |
| 19728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19729 | (exit $ac_status); }; }; then |
| 19730 | ac_cv_cxx_namespaces=yes |
| 19731 | else |
| 19732 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19734 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19735 | ac_cv_cxx_namespaces=no |
| 19736 | fi |
| 19737 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19738 | ac_ext=c |
| 19739 | ac_cpp='$CPP $CPPFLAGS' |
| 19740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19743 | |
| 19744 | |
| 19745 | fi |
| 19746 | echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 19747 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 |
| 19748 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 19749 | |
| 19750 | cat >>confdefs.h <<\_ACEOF |
| 19751 | #define HAVE_NAMESPACES |
| 19752 | _ACEOF |
| 19753 | |
| 19754 | fi |
| 19755 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19756 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 |
| 19757 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6 |
| 19758 | if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19760 | else |
| 19761 | |
| 19762 | |
| 19763 | |
| 19764 | ac_ext=cc |
| 19765 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19766 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19767 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19768 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19769 | |
| 19770 | cat >conftest.$ac_ext <<_ACEOF |
| 19771 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19772 | /* confdefs.h. */ |
| 19773 | _ACEOF |
| 19774 | cat confdefs.h >>conftest.$ac_ext |
| 19775 | cat >>conftest.$ac_ext <<_ACEOF |
| 19776 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19777 | #include <ext/hash_map> |
| 19778 | #ifdef HAVE_NAMESPACES |
| 19779 | using namespace std; |
| 19780 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19781 | int |
| 19782 | main () |
| 19783 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19784 | hash_map<int, int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19785 | ; |
| 19786 | return 0; |
| 19787 | } |
| 19788 | _ACEOF |
| 19789 | rm -f conftest.$ac_objext |
| 19790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19791 | (eval $ac_compile) 2>&5 |
| 19792 | ac_status=$? |
| 19793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19794 | (exit $ac_status); } && |
| 19795 | { ac_try='test -s conftest.$ac_objext' |
| 19796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19797 | (eval $ac_try) 2>&5 |
| 19798 | ac_status=$? |
| 19799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19800 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19801 | ac_cv_cxx_have_std_ext_hash_map=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19802 | else |
| 19803 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19804 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19805 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19806 | ac_cv_cxx_have_std_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19807 | fi |
| 19808 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19809 | ac_ext=c |
| 19810 | ac_cpp='$CPP $CPPFLAGS' |
| 19811 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19812 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19813 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19814 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19815 | fi |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19816 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 |
| 19817 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6 |
| 19818 | if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19819 | |
| 19820 | cat >>confdefs.h <<\_ACEOF |
| 19821 | #define HAVE_STD_EXT_HASH_MAP |
| 19822 | _ACEOF |
| 19823 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19824 | fi |
| 19825 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 |
| 19826 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6 |
| 19827 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then |
| 19828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19829 | else |
| 19830 | |
| 19831 | |
| 19832 | |
| 19833 | ac_ext=cc |
| 19834 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19835 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19836 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19837 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19838 | |
| 19839 | cat >conftest.$ac_ext <<_ACEOF |
| 19840 | #line $LINENO "configure" |
| 19841 | /* confdefs.h. */ |
| 19842 | _ACEOF |
| 19843 | cat confdefs.h >>conftest.$ac_ext |
| 19844 | cat >>conftest.$ac_ext <<_ACEOF |
| 19845 | /* end confdefs.h. */ |
| 19846 | #include <ext/hash_map> |
| 19847 | #ifdef HAVE_NAMESPACES |
| 19848 | using namespace __gnu_cxx; |
| 19849 | #endif |
| 19850 | int |
| 19851 | main () |
| 19852 | { |
| 19853 | hash_map<int,int> t; |
| 19854 | ; |
| 19855 | return 0; |
| 19856 | } |
| 19857 | _ACEOF |
| 19858 | rm -f conftest.$ac_objext |
| 19859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19860 | (eval $ac_compile) 2>&5 |
| 19861 | ac_status=$? |
| 19862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19863 | (exit $ac_status); } && |
| 19864 | { ac_try='test -s conftest.$ac_objext' |
| 19865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19866 | (eval $ac_try) 2>&5 |
| 19867 | ac_status=$? |
| 19868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19869 | (exit $ac_status); }; }; then |
| 19870 | ac_cv_cxx_have_gnu_ext_hash_map=yes |
| 19871 | else |
| 19872 | echo "$as_me: failed program was:" >&5 |
| 19873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19874 | |
| 19875 | ac_cv_cxx_have_gnu_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19876 | fi |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19877 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19878 | ac_ext=c |
| 19879 | ac_cpp='$CPP $CPPFLAGS' |
| 19880 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19881 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19882 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19883 | |
| 19884 | fi |
| 19885 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 |
| 19886 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6 |
| 19887 | if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19888 | |
| 19889 | cat >>confdefs.h <<\_ACEOF |
| 19890 | #define HAVE_GNU_EXT_HASH_MAP |
| 19891 | _ACEOF |
| 19892 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19893 | fi |
| 19894 | echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 |
| 19895 | echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6 |
| 19896 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then |
| 19897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19898 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19899 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19900 | |
| 19901 | |
| 19902 | ac_ext=cc |
| 19903 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19904 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19905 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19906 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19907 | |
| 19908 | cat >conftest.$ac_ext <<_ACEOF |
| 19909 | #line $LINENO "configure" |
| 19910 | /* confdefs.h. */ |
| 19911 | _ACEOF |
| 19912 | cat confdefs.h >>conftest.$ac_ext |
| 19913 | cat >>conftest.$ac_ext <<_ACEOF |
| 19914 | /* end confdefs.h. */ |
| 19915 | #include <hash_map> |
| 19916 | int |
| 19917 | main () |
| 19918 | { |
| 19919 | hash_map<int,int> t; |
| 19920 | ; |
| 19921 | return 0; |
| 19922 | } |
| 19923 | _ACEOF |
| 19924 | rm -f conftest.$ac_objext |
| 19925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19926 | (eval $ac_compile) 2>&5 |
| 19927 | ac_status=$? |
| 19928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19929 | (exit $ac_status); } && |
| 19930 | { ac_try='test -s conftest.$ac_objext' |
| 19931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19932 | (eval $ac_try) 2>&5 |
| 19933 | ac_status=$? |
| 19934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19935 | (exit $ac_status); }; }; then |
| 19936 | ac_cv_cxx_have_global_hash_map=yes |
| 19937 | else |
| 19938 | echo "$as_me: failed program was:" >&5 |
| 19939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19940 | |
| 19941 | ac_cv_cxx_have_global_hash_map=no |
| 19942 | fi |
| 19943 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19944 | ac_ext=c |
| 19945 | ac_cpp='$CPP $CPPFLAGS' |
| 19946 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19947 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19948 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19949 | |
| 19950 | fi |
| 19951 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 |
| 19952 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6 |
| 19953 | if test "$ac_cv_cxx_have_global_hash_map" = yes; then |
| 19954 | |
| 19955 | cat >>confdefs.h <<\_ACEOF |
| 19956 | #define HAVE_GLOBAL_HASH_MAP |
| 19957 | _ACEOF |
| 19958 | |
| 19959 | fi |
| 19960 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 |
| 19961 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6 |
| 19962 | if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19964 | else |
| 19965 | |
| 19966 | |
| 19967 | |
| 19968 | ac_ext=cc |
| 19969 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19970 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19971 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19972 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19973 | |
| 19974 | cat >conftest.$ac_ext <<_ACEOF |
| 19975 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19976 | /* confdefs.h. */ |
| 19977 | _ACEOF |
| 19978 | cat confdefs.h >>conftest.$ac_ext |
| 19979 | cat >>conftest.$ac_ext <<_ACEOF |
| 19980 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19981 | #include <ext/hash_set> |
| 19982 | #ifdef HAVE_NAMESPACES |
| 19983 | using namespace std; |
| 19984 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19985 | int |
| 19986 | main () |
| 19987 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19988 | hash_set<int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19989 | ; |
| 19990 | return 0; |
| 19991 | } |
| 19992 | _ACEOF |
| 19993 | rm -f conftest.$ac_objext |
| 19994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19995 | (eval $ac_compile) 2>&5 |
| 19996 | ac_status=$? |
| 19997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19998 | (exit $ac_status); } && |
| 19999 | { ac_try='test -s conftest.$ac_objext' |
| 20000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20001 | (eval $ac_try) 2>&5 |
| 20002 | ac_status=$? |
| 20003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20004 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 20005 | ac_cv_cxx_have_std_ext_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20006 | else |
| 20007 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20009 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 20010 | ac_cv_cxx_have_std_ext_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20011 | fi |
| 20012 | rm -f conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 20013 | ac_ext=c |
| 20014 | ac_cpp='$CPP $CPPFLAGS' |
| 20015 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20016 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20017 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20018 | |
| 20019 | fi |
| 20020 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 |
| 20021 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6 |
| 20022 | if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then |
| 20023 | |
| 20024 | cat >>confdefs.h <<\_ACEOF |
| 20025 | #define HAVE_STD_EXT_HASH_SET |
| 20026 | _ACEOF |
| 20027 | |
| 20028 | fi |
| 20029 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 |
| 20030 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6 |
| 20031 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then |
| 20032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20033 | else |
| 20034 | |
| 20035 | |
| 20036 | |
| 20037 | ac_ext=cc |
| 20038 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20039 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20040 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20041 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20042 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20043 | cat >conftest.$ac_ext <<_ACEOF |
| 20044 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20045 | /* confdefs.h. */ |
| 20046 | _ACEOF |
| 20047 | cat confdefs.h >>conftest.$ac_ext |
| 20048 | cat >>conftest.$ac_ext <<_ACEOF |
| 20049 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20050 | #include <ext/hash_set> |
| 20051 | #ifdef HAVE_NAMESPACES |
| 20052 | using namespace __gnu_cxx; |
| 20053 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20054 | int |
| 20055 | main () |
| 20056 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 20057 | hash_set<int> t; |
| 20058 | ; |
| 20059 | return 0; |
| 20060 | } |
| 20061 | _ACEOF |
| 20062 | rm -f conftest.$ac_objext |
| 20063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20064 | (eval $ac_compile) 2>&5 |
| 20065 | ac_status=$? |
| 20066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20067 | (exit $ac_status); } && |
| 20068 | { ac_try='test -s conftest.$ac_objext' |
| 20069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20070 | (eval $ac_try) 2>&5 |
| 20071 | ac_status=$? |
| 20072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20073 | (exit $ac_status); }; }; then |
| 20074 | ac_cv_cxx_have_gnu_ext_hash_set=yes |
| 20075 | else |
| 20076 | echo "$as_me: failed program was:" >&5 |
| 20077 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20078 | |
| 20079 | ac_cv_cxx_have_gnu_ext_hash_set=no |
| 20080 | fi |
| 20081 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20082 | ac_ext=c |
| 20083 | ac_cpp='$CPP $CPPFLAGS' |
| 20084 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20085 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20086 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20087 | |
| 20088 | fi |
| 20089 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 |
| 20090 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6 |
| 20091 | if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then |
| 20092 | |
| 20093 | cat >>confdefs.h <<\_ACEOF |
| 20094 | #define HAVE_GNU_EXT_HASH_SET |
| 20095 | _ACEOF |
| 20096 | |
| 20097 | fi |
| 20098 | echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 |
| 20099 | echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6 |
| 20100 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then |
| 20101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20102 | else |
| 20103 | |
| 20104 | |
| 20105 | |
| 20106 | ac_ext=cc |
| 20107 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20108 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20109 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20110 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20111 | |
| 20112 | cat >conftest.$ac_ext <<_ACEOF |
| 20113 | #line $LINENO "configure" |
| 20114 | /* confdefs.h. */ |
| 20115 | _ACEOF |
| 20116 | cat confdefs.h >>conftest.$ac_ext |
| 20117 | cat >>conftest.$ac_ext <<_ACEOF |
| 20118 | /* end confdefs.h. */ |
| 20119 | #include <hash_set> |
| 20120 | int |
| 20121 | main () |
| 20122 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20123 | hash_set<int> t; return 0; |
| 20124 | ; |
| 20125 | return 0; |
| 20126 | } |
| 20127 | _ACEOF |
| 20128 | rm -f conftest.$ac_objext |
| 20129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20130 | (eval $ac_compile) 2>&5 |
| 20131 | ac_status=$? |
| 20132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20133 | (exit $ac_status); } && |
| 20134 | { ac_try='test -s conftest.$ac_objext' |
| 20135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20136 | (eval $ac_try) 2>&5 |
| 20137 | ac_status=$? |
| 20138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20139 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 20140 | ac_cv_cxx_have_global_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20141 | else |
| 20142 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20144 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 20145 | ac_cv_cxx_have_global_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20146 | fi |
| 20147 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20148 | ac_ext=c |
| 20149 | ac_cpp='$CPP $CPPFLAGS' |
| 20150 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20151 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20152 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20153 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20154 | fi |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 20155 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 |
| 20156 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6 |
| 20157 | if test "$ac_cv_cxx_have_global_hash_set" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20158 | |
| 20159 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 20160 | #define HAVE_GLOBAL_HASH_SET |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20161 | _ACEOF |
| 20162 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 20163 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20164 | echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5 |
| 20165 | echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6 |
| 20166 | if test "${ac_cv_cxx_have_ext_slist+set}" = set; then |
| 20167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20168 | else |
| 20169 | |
| 20170 | |
| 20171 | |
| 20172 | ac_ext=cc |
| 20173 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20174 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20175 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20176 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20177 | |
| 20178 | cat >conftest.$ac_ext <<_ACEOF |
| 20179 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20180 | /* confdefs.h. */ |
| 20181 | _ACEOF |
| 20182 | cat confdefs.h >>conftest.$ac_ext |
| 20183 | cat >>conftest.$ac_ext <<_ACEOF |
| 20184 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20185 | #include <ext/slist> |
| 20186 | #ifdef HAVE_NAMESPACES |
| 20187 | using namespace std; |
| 20188 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20189 | int |
| 20190 | main () |
| 20191 | { |
| 20192 | slist<int> s; return 0; |
| 20193 | ; |
| 20194 | return 0; |
| 20195 | } |
| 20196 | _ACEOF |
| 20197 | rm -f conftest.$ac_objext |
| 20198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20199 | (eval $ac_compile) 2>&5 |
| 20200 | ac_status=$? |
| 20201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20202 | (exit $ac_status); } && |
| 20203 | { ac_try='test -s conftest.$ac_objext' |
| 20204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20205 | (eval $ac_try) 2>&5 |
| 20206 | ac_status=$? |
| 20207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20208 | (exit $ac_status); }; }; then |
| 20209 | ac_cv_cxx_have_ext_slist=std |
| 20210 | else |
| 20211 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20212 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20213 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20214 | ac_cv_cxx_have_ext_slist=no |
| 20215 | fi |
| 20216 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20217 | cat >conftest.$ac_ext <<_ACEOF |
| 20218 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20219 | /* confdefs.h. */ |
| 20220 | _ACEOF |
| 20221 | cat confdefs.h >>conftest.$ac_ext |
| 20222 | cat >>conftest.$ac_ext <<_ACEOF |
| 20223 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20224 | #include <ext/slist> |
| 20225 | #ifdef HAVE_NAMESPACES |
| 20226 | using namespace __gnu_cxx; |
| 20227 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20228 | int |
| 20229 | main () |
| 20230 | { |
| 20231 | slist<int> s; return 0; |
| 20232 | ; |
| 20233 | return 0; |
| 20234 | } |
| 20235 | _ACEOF |
| 20236 | rm -f conftest.$ac_objext |
| 20237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20238 | (eval $ac_compile) 2>&5 |
| 20239 | ac_status=$? |
| 20240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20241 | (exit $ac_status); } && |
| 20242 | { ac_try='test -s conftest.$ac_objext' |
| 20243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20244 | (eval $ac_try) 2>&5 |
| 20245 | ac_status=$? |
| 20246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20247 | (exit $ac_status); }; }; then |
| 20248 | ac_cv_cxx_have_ext_slist=gnu |
| 20249 | else |
| 20250 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20252 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20253 | ac_cv_cxx_have_ext_slist=no |
| 20254 | fi |
| 20255 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20256 | |
| 20257 | ac_ext=c |
| 20258 | ac_cpp='$CPP $CPPFLAGS' |
| 20259 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20260 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20261 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20262 | |
| 20263 | |
| 20264 | fi |
| 20265 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5 |
| 20266 | echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6 |
| 20267 | if test "$ac_cv_cxx_have_ext_slist" = std; then |
| 20268 | |
| 20269 | cat >>confdefs.h <<\_ACEOF |
| 20270 | #define HAVE_EXT_SLIST std |
| 20271 | _ACEOF |
| 20272 | |
| 20273 | fi |
| 20274 | if test "$ac_cv_cxx_have_ext_slist" = gnu; then |
| 20275 | |
| 20276 | cat >>confdefs.h <<\_ACEOF |
| 20277 | #define HAVE_EXT_SLIST gnu |
| 20278 | _ACEOF |
| 20279 | |
| 20280 | fi |
| 20281 | |
| 20282 | echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 20283 | echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6 |
| 20284 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 20285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20286 | else |
| 20287 | |
| 20288 | |
| 20289 | |
| 20290 | ac_ext=cc |
| 20291 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20292 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20293 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20294 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20295 | |
| 20296 | cat >conftest.$ac_ext <<_ACEOF |
| 20297 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20298 | /* confdefs.h. */ |
| 20299 | _ACEOF |
| 20300 | cat confdefs.h >>conftest.$ac_ext |
| 20301 | cat >>conftest.$ac_ext <<_ACEOF |
| 20302 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20303 | #include <iterator> |
| 20304 | #ifdef HAVE_NAMESPACES |
| 20305 | using namespace std; |
| 20306 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20307 | int |
| 20308 | main () |
| 20309 | { |
| 20310 | iterator<int,int,int> t; return 0; |
| 20311 | ; |
| 20312 | return 0; |
| 20313 | } |
| 20314 | _ACEOF |
| 20315 | rm -f conftest.$ac_objext |
| 20316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20317 | (eval $ac_compile) 2>&5 |
| 20318 | ac_status=$? |
| 20319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20320 | (exit $ac_status); } && |
| 20321 | { ac_try='test -s conftest.$ac_objext' |
| 20322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20323 | (eval $ac_try) 2>&5 |
| 20324 | ac_status=$? |
| 20325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20326 | (exit $ac_status); }; }; then |
| 20327 | ac_cv_cxx_have_std_iterator=yes |
| 20328 | else |
| 20329 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20331 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20332 | ac_cv_cxx_have_std_iterator=no |
| 20333 | fi |
| 20334 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20335 | ac_ext=c |
| 20336 | ac_cpp='$CPP $CPPFLAGS' |
| 20337 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20338 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20339 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20340 | |
| 20341 | |
| 20342 | fi |
| 20343 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 20344 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6 |
| 20345 | if test "$ac_cv_cxx_have_std_iterator" = yes; then |
| 20346 | |
| 20347 | cat >>confdefs.h <<\_ACEOF |
| 20348 | #define HAVE_STD_ITERATOR |
| 20349 | _ACEOF |
| 20350 | |
| 20351 | fi |
| 20352 | |
| 20353 | echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 20354 | echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6 |
| 20355 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 20356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20357 | else |
| 20358 | |
| 20359 | |
| 20360 | |
| 20361 | ac_ext=cc |
| 20362 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20363 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20364 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20365 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20366 | |
| 20367 | cat >conftest.$ac_ext <<_ACEOF |
| 20368 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20369 | /* confdefs.h. */ |
| 20370 | _ACEOF |
| 20371 | cat confdefs.h >>conftest.$ac_ext |
| 20372 | cat >>conftest.$ac_ext <<_ACEOF |
| 20373 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20374 | #include <iterator> |
| 20375 | #ifdef HAVE_NAMESPACES |
| 20376 | using namespace std; |
| 20377 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20378 | int |
| 20379 | main () |
| 20380 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 20381 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20382 | ; |
| 20383 | return 0; |
| 20384 | } |
| 20385 | _ACEOF |
| 20386 | rm -f conftest.$ac_objext |
| 20387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20388 | (eval $ac_compile) 2>&5 |
| 20389 | ac_status=$? |
| 20390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20391 | (exit $ac_status); } && |
| 20392 | { ac_try='test -s conftest.$ac_objext' |
| 20393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20394 | (eval $ac_try) 2>&5 |
| 20395 | ac_status=$? |
| 20396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20397 | (exit $ac_status); }; }; then |
| 20398 | ac_cv_cxx_have_bi_iterator=yes |
| 20399 | else |
| 20400 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20402 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20403 | ac_cv_cxx_have_bi_iterator=no |
| 20404 | fi |
| 20405 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20406 | ac_ext=c |
| 20407 | ac_cpp='$CPP $CPPFLAGS' |
| 20408 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20409 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20410 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20411 | |
| 20412 | |
| 20413 | fi |
| 20414 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 20415 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6 |
| 20416 | if test "$ac_cv_cxx_have_bi_iterator" = yes; then |
| 20417 | |
| 20418 | cat >>confdefs.h <<\_ACEOF |
| 20419 | #define HAVE_BI_ITERATOR |
| 20420 | _ACEOF |
| 20421 | |
| 20422 | fi |
| 20423 | |
| 20424 | echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 20425 | echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6 |
| 20426 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 20427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20428 | else |
| 20429 | |
| 20430 | |
| 20431 | |
| 20432 | ac_ext=cc |
| 20433 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20434 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20435 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20436 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20437 | |
| 20438 | cat >conftest.$ac_ext <<_ACEOF |
| 20439 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20440 | /* confdefs.h. */ |
| 20441 | _ACEOF |
| 20442 | cat confdefs.h >>conftest.$ac_ext |
| 20443 | cat >>conftest.$ac_ext <<_ACEOF |
| 20444 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20445 | #include <iterator> |
| 20446 | #ifdef HAVE_NAMESPACES |
| 20447 | using namespace std; |
| 20448 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20449 | int |
| 20450 | main () |
| 20451 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 20452 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20453 | ; |
| 20454 | return 0; |
| 20455 | } |
| 20456 | _ACEOF |
| 20457 | rm -f conftest.$ac_objext |
| 20458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20459 | (eval $ac_compile) 2>&5 |
| 20460 | ac_status=$? |
| 20461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20462 | (exit $ac_status); } && |
| 20463 | { ac_try='test -s conftest.$ac_objext' |
| 20464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20465 | (eval $ac_try) 2>&5 |
| 20466 | ac_status=$? |
| 20467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20468 | (exit $ac_status); }; }; then |
| 20469 | ac_cv_cxx_have_fwd_iterator=yes |
| 20470 | else |
| 20471 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20473 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20474 | ac_cv_cxx_have_fwd_iterator=no |
| 20475 | fi |
| 20476 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20477 | ac_ext=c |
| 20478 | ac_cpp='$CPP $CPPFLAGS' |
| 20479 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20480 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20481 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20482 | |
| 20483 | |
| 20484 | fi |
| 20485 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 20486 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6 |
| 20487 | if test "$ac_cv_cxx_have_fwd_iterator" = yes; then |
| 20488 | |
| 20489 | cat >>confdefs.h <<\_ACEOF |
| 20490 | #define HAVE_FWD_ITERATOR |
| 20491 | _ACEOF |
| 20492 | |
| 20493 | fi |
| 20494 | |
| 20495 | |
| 20496 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 20497 | # for constant arguments. Useless! |
| 20498 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 20499 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 20500 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 20501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20502 | else |
| 20503 | cat >conftest.$ac_ext <<_ACEOF |
| 20504 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20505 | /* confdefs.h. */ |
| 20506 | _ACEOF |
| 20507 | cat confdefs.h >>conftest.$ac_ext |
| 20508 | cat >>conftest.$ac_ext <<_ACEOF |
| 20509 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20510 | #include <alloca.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20511 | int |
| 20512 | main () |
| 20513 | { |
| 20514 | char *p = (char *) alloca (2 * sizeof (int)); |
| 20515 | ; |
| 20516 | return 0; |
| 20517 | } |
| 20518 | _ACEOF |
| 20519 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20520 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20521 | (eval $ac_link) 2>&5 |
| 20522 | ac_status=$? |
| 20523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20524 | (exit $ac_status); } && |
| 20525 | { ac_try='test -s conftest$ac_exeext' |
| 20526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20527 | (eval $ac_try) 2>&5 |
| 20528 | ac_status=$? |
| 20529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20530 | (exit $ac_status); }; }; then |
| 20531 | ac_cv_working_alloca_h=yes |
| 20532 | else |
| 20533 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20535 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20536 | ac_cv_working_alloca_h=no |
| 20537 | fi |
| 20538 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 20539 | fi |
| 20540 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 20541 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 20542 | if test $ac_cv_working_alloca_h = yes; then |
| 20543 | |
| 20544 | cat >>confdefs.h <<\_ACEOF |
| 20545 | #define HAVE_ALLOCA_H 1 |
| 20546 | _ACEOF |
| 20547 | |
| 20548 | fi |
| 20549 | |
| 20550 | echo "$as_me:$LINENO: checking for alloca" >&5 |
| 20551 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 20552 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 20553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20554 | else |
| 20555 | cat >conftest.$ac_ext <<_ACEOF |
| 20556 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20557 | /* confdefs.h. */ |
| 20558 | _ACEOF |
| 20559 | cat confdefs.h >>conftest.$ac_ext |
| 20560 | cat >>conftest.$ac_ext <<_ACEOF |
| 20561 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20562 | #ifdef __GNUC__ |
| 20563 | # define alloca __builtin_alloca |
| 20564 | #else |
| 20565 | # ifdef _MSC_VER |
| 20566 | # include <malloc.h> |
| 20567 | # define alloca _alloca |
| 20568 | # else |
| 20569 | # if HAVE_ALLOCA_H |
| 20570 | # include <alloca.h> |
| 20571 | # else |
| 20572 | # ifdef _AIX |
| 20573 | #pragma alloca |
| 20574 | # else |
| 20575 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 20576 | char *alloca (); |
| 20577 | # endif |
| 20578 | # endif |
| 20579 | # endif |
| 20580 | # endif |
| 20581 | #endif |
| 20582 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20583 | int |
| 20584 | main () |
| 20585 | { |
| 20586 | char *p = (char *) alloca (1); |
| 20587 | ; |
| 20588 | return 0; |
| 20589 | } |
| 20590 | _ACEOF |
| 20591 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20593 | (eval $ac_link) 2>&5 |
| 20594 | ac_status=$? |
| 20595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20596 | (exit $ac_status); } && |
| 20597 | { ac_try='test -s conftest$ac_exeext' |
| 20598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20599 | (eval $ac_try) 2>&5 |
| 20600 | ac_status=$? |
| 20601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20602 | (exit $ac_status); }; }; then |
| 20603 | ac_cv_func_alloca_works=yes |
| 20604 | else |
| 20605 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20607 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20608 | ac_cv_func_alloca_works=no |
| 20609 | fi |
| 20610 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 20611 | fi |
| 20612 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 20613 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
| 20614 | |
| 20615 | if test $ac_cv_func_alloca_works = yes; then |
| 20616 | |
| 20617 | cat >>confdefs.h <<\_ACEOF |
| 20618 | #define HAVE_ALLOCA 1 |
| 20619 | _ACEOF |
| 20620 | |
| 20621 | else |
| 20622 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 20623 | # that cause trouble. Some versions do not even contain alloca or |
| 20624 | # contain a buggy version. If you still want to use their alloca, |
| 20625 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 20626 | |
| 20627 | ALLOCA=alloca.$ac_objext |
| 20628 | |
| 20629 | cat >>confdefs.h <<\_ACEOF |
| 20630 | #define C_ALLOCA 1 |
| 20631 | _ACEOF |
| 20632 | |
| 20633 | |
| 20634 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 20635 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 20636 | if test "${ac_cv_os_cray+set}" = set; then |
| 20637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20638 | else |
| 20639 | cat >conftest.$ac_ext <<_ACEOF |
| 20640 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20641 | /* confdefs.h. */ |
| 20642 | _ACEOF |
| 20643 | cat confdefs.h >>conftest.$ac_ext |
| 20644 | cat >>conftest.$ac_ext <<_ACEOF |
| 20645 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20646 | #if defined(CRAY) && ! defined(CRAY2) |
| 20647 | webecray |
| 20648 | #else |
| 20649 | wenotbecray |
| 20650 | #endif |
| 20651 | |
| 20652 | _ACEOF |
| 20653 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20654 | $EGREP "webecray" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20655 | ac_cv_os_cray=yes |
| 20656 | else |
| 20657 | ac_cv_os_cray=no |
| 20658 | fi |
| 20659 | rm -f conftest* |
| 20660 | |
| 20661 | fi |
| 20662 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 20663 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
| 20664 | if test $ac_cv_os_cray = yes; then |
| 20665 | for ac_func in _getb67 GETB67 getb67; do |
| 20666 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20667 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20668 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 20669 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 20670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20671 | else |
| 20672 | cat >conftest.$ac_ext <<_ACEOF |
| 20673 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20674 | /* confdefs.h. */ |
| 20675 | _ACEOF |
| 20676 | cat confdefs.h >>conftest.$ac_ext |
| 20677 | cat >>conftest.$ac_ext <<_ACEOF |
| 20678 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20679 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20680 | which can conflict with char $ac_func (); below. |
| 20681 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20682 | <limits.h> exists even on freestanding compilers. */ |
| 20683 | #ifdef __STDC__ |
| 20684 | # include <limits.h> |
| 20685 | #else |
| 20686 | # include <assert.h> |
| 20687 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20688 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 20689 | #ifdef __cplusplus |
| 20690 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20691 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20692 | #endif |
| 20693 | /* We use char because int might match the return type of a gcc2 |
| 20694 | builtin and then its argument prototype would still apply. */ |
| 20695 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20696 | /* The GNU C library defines this for functions which it implements |
| 20697 | to always fail with ENOSYS. Some functions are actually named |
| 20698 | something starting with __ and the normal name is an alias. */ |
| 20699 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 20700 | choke me |
| 20701 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20702 | char (*f) () = $ac_func; |
| 20703 | #endif |
| 20704 | #ifdef __cplusplus |
| 20705 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20706 | #endif |
| 20707 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20708 | int |
| 20709 | main () |
| 20710 | { |
| 20711 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20712 | ; |
| 20713 | return 0; |
| 20714 | } |
| 20715 | _ACEOF |
| 20716 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20717 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20718 | (eval $ac_link) 2>&5 |
| 20719 | ac_status=$? |
| 20720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20721 | (exit $ac_status); } && |
| 20722 | { ac_try='test -s conftest$ac_exeext' |
| 20723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20724 | (eval $ac_try) 2>&5 |
| 20725 | ac_status=$? |
| 20726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20727 | (exit $ac_status); }; }; then |
| 20728 | eval "$as_ac_var=yes" |
| 20729 | else |
| 20730 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20732 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20733 | eval "$as_ac_var=no" |
| 20734 | fi |
| 20735 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 20736 | fi |
| 20737 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 20738 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 20739 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 20740 | |
| 20741 | cat >>confdefs.h <<_ACEOF |
| 20742 | #define CRAY_STACKSEG_END $ac_func |
| 20743 | _ACEOF |
| 20744 | |
| 20745 | break |
| 20746 | fi |
| 20747 | |
| 20748 | done |
| 20749 | fi |
| 20750 | |
| 20751 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 20752 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 20753 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 20754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20755 | else |
| 20756 | if test "$cross_compiling" = yes; then |
| 20757 | ac_cv_c_stack_direction=0 |
| 20758 | else |
| 20759 | cat >conftest.$ac_ext <<_ACEOF |
| 20760 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20761 | /* confdefs.h. */ |
| 20762 | _ACEOF |
| 20763 | cat confdefs.h >>conftest.$ac_ext |
| 20764 | cat >>conftest.$ac_ext <<_ACEOF |
| 20765 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20766 | int |
| 20767 | find_stack_direction () |
| 20768 | { |
| 20769 | static char *addr = 0; |
| 20770 | auto char dummy; |
| 20771 | if (addr == 0) |
| 20772 | { |
| 20773 | addr = &dummy; |
| 20774 | return find_stack_direction (); |
| 20775 | } |
| 20776 | else |
| 20777 | return (&dummy > addr) ? 1 : -1; |
| 20778 | } |
| 20779 | |
| 20780 | int |
| 20781 | main () |
| 20782 | { |
| 20783 | exit (find_stack_direction () < 0); |
| 20784 | } |
| 20785 | _ACEOF |
| 20786 | rm -f conftest$ac_exeext |
| 20787 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20788 | (eval $ac_link) 2>&5 |
| 20789 | ac_status=$? |
| 20790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20791 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20793 | (eval $ac_try) 2>&5 |
| 20794 | ac_status=$? |
| 20795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20796 | (exit $ac_status); }; }; then |
| 20797 | ac_cv_c_stack_direction=1 |
| 20798 | else |
| 20799 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20800 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20801 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20802 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20803 | ( exit $ac_status ) |
| 20804 | ac_cv_c_stack_direction=-1 |
| 20805 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20806 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20807 | fi |
| 20808 | fi |
| 20809 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 20810 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
| 20811 | |
| 20812 | cat >>confdefs.h <<_ACEOF |
| 20813 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 20814 | _ACEOF |
| 20815 | |
| 20816 | |
| 20817 | fi |
| 20818 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20819 | |
| 20820 | |
| 20821 | for ac_header in stdlib.h unistd.h |
| 20822 | do |
| 20823 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 20824 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 20825 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20826 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 20827 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 20828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20829 | fi |
| 20830 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 20831 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 20832 | else |
| 20833 | # Is the header compilable? |
| 20834 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 20835 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 20836 | cat >conftest.$ac_ext <<_ACEOF |
| 20837 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20838 | /* confdefs.h. */ |
| 20839 | _ACEOF |
| 20840 | cat confdefs.h >>conftest.$ac_ext |
| 20841 | cat >>conftest.$ac_ext <<_ACEOF |
| 20842 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20843 | $ac_includes_default |
| 20844 | #include <$ac_header> |
| 20845 | _ACEOF |
| 20846 | rm -f conftest.$ac_objext |
| 20847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20848 | (eval $ac_compile) 2>&5 |
| 20849 | ac_status=$? |
| 20850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20851 | (exit $ac_status); } && |
| 20852 | { ac_try='test -s conftest.$ac_objext' |
| 20853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20854 | (eval $ac_try) 2>&5 |
| 20855 | ac_status=$? |
| 20856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20857 | (exit $ac_status); }; }; then |
| 20858 | ac_header_compiler=yes |
| 20859 | else |
| 20860 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20862 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20863 | ac_header_compiler=no |
| 20864 | fi |
| 20865 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20866 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 20867 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 20868 | |
| 20869 | # Is the header present? |
| 20870 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 20871 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 20872 | cat >conftest.$ac_ext <<_ACEOF |
| 20873 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20874 | /* confdefs.h. */ |
| 20875 | _ACEOF |
| 20876 | cat confdefs.h >>conftest.$ac_ext |
| 20877 | cat >>conftest.$ac_ext <<_ACEOF |
| 20878 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20879 | #include <$ac_header> |
| 20880 | _ACEOF |
| 20881 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20882 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20883 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20884 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20885 | rm -f conftest.er1 |
| 20886 | cat conftest.err >&5 |
| 20887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20888 | (exit $ac_status); } >/dev/null; then |
| 20889 | if test -s conftest.err; then |
| 20890 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 20891 | else |
| 20892 | ac_cpp_err= |
| 20893 | fi |
| 20894 | else |
| 20895 | ac_cpp_err=yes |
| 20896 | fi |
| 20897 | if test -z "$ac_cpp_err"; then |
| 20898 | ac_header_preproc=yes |
| 20899 | else |
| 20900 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20902 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20903 | ac_header_preproc=no |
| 20904 | fi |
| 20905 | rm -f conftest.err conftest.$ac_ext |
| 20906 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20907 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 20908 | |
| 20909 | # So? What about this header? |
| 20910 | case $ac_header_compiler:$ac_header_preproc in |
| 20911 | yes:no ) |
| 20912 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20913 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 20914 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20915 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 20916 | ( |
| 20917 | cat <<\_ASBOX |
| 20918 | ## ------------------------------------ ## |
| 20919 | ## Report this to bug-autoconf@gnu.org. ## |
| 20920 | ## ------------------------------------ ## |
| 20921 | _ASBOX |
| 20922 | ) | |
| 20923 | sed "s/^/$as_me: WARNING: /" >&2 |
| 20924 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20925 | no:yes ) |
| 20926 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 20927 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 20928 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 20929 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 20930 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20931 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 20932 | ( |
| 20933 | cat <<\_ASBOX |
| 20934 | ## ------------------------------------ ## |
| 20935 | ## Report this to bug-autoconf@gnu.org. ## |
| 20936 | ## ------------------------------------ ## |
| 20937 | _ASBOX |
| 20938 | ) | |
| 20939 | sed "s/^/$as_me: WARNING: /" >&2 |
| 20940 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20941 | esac |
| 20942 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20943 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 20944 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 20945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20946 | else |
| 20947 | eval "$as_ac_Header=$ac_header_preproc" |
| 20948 | fi |
| 20949 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 20950 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 20951 | |
| 20952 | fi |
| 20953 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 20954 | cat >>confdefs.h <<_ACEOF |
| 20955 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 20956 | _ACEOF |
| 20957 | |
| 20958 | fi |
| 20959 | |
| 20960 | done |
| 20961 | |
| 20962 | |
| 20963 | for ac_func in getpagesize |
| 20964 | do |
| 20965 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20966 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20967 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 20968 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 20969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20970 | else |
| 20971 | cat >conftest.$ac_ext <<_ACEOF |
| 20972 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20973 | /* confdefs.h. */ |
| 20974 | _ACEOF |
| 20975 | cat confdefs.h >>conftest.$ac_ext |
| 20976 | cat >>conftest.$ac_ext <<_ACEOF |
| 20977 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20978 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20979 | which can conflict with char $ac_func (); below. |
| 20980 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20981 | <limits.h> exists even on freestanding compilers. */ |
| 20982 | #ifdef __STDC__ |
| 20983 | # include <limits.h> |
| 20984 | #else |
| 20985 | # include <assert.h> |
| 20986 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20987 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 20988 | #ifdef __cplusplus |
| 20989 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20990 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20991 | #endif |
| 20992 | /* We use char because int might match the return type of a gcc2 |
| 20993 | builtin and then its argument prototype would still apply. */ |
| 20994 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20995 | /* The GNU C library defines this for functions which it implements |
| 20996 | to always fail with ENOSYS. Some functions are actually named |
| 20997 | something starting with __ and the normal name is an alias. */ |
| 20998 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 20999 | choke me |
| 21000 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21001 | char (*f) () = $ac_func; |
| 21002 | #endif |
| 21003 | #ifdef __cplusplus |
| 21004 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21005 | #endif |
| 21006 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21007 | int |
| 21008 | main () |
| 21009 | { |
| 21010 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21011 | ; |
| 21012 | return 0; |
| 21013 | } |
| 21014 | _ACEOF |
| 21015 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21016 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21017 | (eval $ac_link) 2>&5 |
| 21018 | ac_status=$? |
| 21019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21020 | (exit $ac_status); } && |
| 21021 | { ac_try='test -s conftest$ac_exeext' |
| 21022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21023 | (eval $ac_try) 2>&5 |
| 21024 | ac_status=$? |
| 21025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21026 | (exit $ac_status); }; }; then |
| 21027 | eval "$as_ac_var=yes" |
| 21028 | else |
| 21029 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21031 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21032 | eval "$as_ac_var=no" |
| 21033 | fi |
| 21034 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 21035 | fi |
| 21036 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 21037 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 21038 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 21039 | cat >>confdefs.h <<_ACEOF |
| 21040 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 21041 | _ACEOF |
| 21042 | |
| 21043 | fi |
| 21044 | done |
| 21045 | |
| 21046 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 21047 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
| 21048 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 21049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21050 | else |
| 21051 | if test "$cross_compiling" = yes; then |
| 21052 | ac_cv_func_mmap_fixed_mapped=no |
| 21053 | else |
| 21054 | cat >conftest.$ac_ext <<_ACEOF |
| 21055 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21056 | /* confdefs.h. */ |
| 21057 | _ACEOF |
| 21058 | cat confdefs.h >>conftest.$ac_ext |
| 21059 | cat >>conftest.$ac_ext <<_ACEOF |
| 21060 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21061 | $ac_includes_default |
| 21062 | /* malloc might have been renamed as rpl_malloc. */ |
| 21063 | #undef malloc |
| 21064 | |
| 21065 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 21066 | Here is a matrix of mmap possibilities: |
| 21067 | mmap private not fixed |
| 21068 | mmap private fixed at somewhere currently unmapped |
| 21069 | mmap private fixed at somewhere already mapped |
| 21070 | mmap shared not fixed |
| 21071 | mmap shared fixed at somewhere currently unmapped |
| 21072 | mmap shared fixed at somewhere already mapped |
| 21073 | For private mappings, we should verify that changes cannot be read() |
| 21074 | back from the file, nor mmap's back from the file at a different |
| 21075 | address. (There have been systems where private was not correctly |
| 21076 | implemented like the infamous i386 svr4.0, and systems where the |
| 21077 | VM page cache was not coherent with the file system buffer cache |
| 21078 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 21079 | For shared mappings, we should conversely verify that changes get |
| 21080 | propagated back to all the places they're supposed to be. |
| 21081 | |
| 21082 | Grep wants private fixed already mapped. |
| 21083 | The main things grep needs to know about mmap are: |
| 21084 | * does it exist and is it safe to write into the mmap'd area |
| 21085 | * how to use it (BSD variants) */ |
| 21086 | |
| 21087 | #include <fcntl.h> |
| 21088 | #include <sys/mman.h> |
| 21089 | |
| 21090 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 21091 | char *malloc (); |
| 21092 | #endif |
| 21093 | |
| 21094 | /* This mess was copied from the GNU getpagesize.h. */ |
| 21095 | #if !HAVE_GETPAGESIZE |
| 21096 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 21097 | # if !HAVE_SYS_PARAM_H |
| 21098 | # define HAVE_SYS_PARAM_H 1 |
| 21099 | # endif |
| 21100 | |
| 21101 | # ifdef _SC_PAGESIZE |
| 21102 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 21103 | # else /* no _SC_PAGESIZE */ |
| 21104 | # if HAVE_SYS_PARAM_H |
| 21105 | # include <sys/param.h> |
| 21106 | # ifdef EXEC_PAGESIZE |
| 21107 | # define getpagesize() EXEC_PAGESIZE |
| 21108 | # else /* no EXEC_PAGESIZE */ |
| 21109 | # ifdef NBPG |
| 21110 | # define getpagesize() NBPG * CLSIZE |
| 21111 | # ifndef CLSIZE |
| 21112 | # define CLSIZE 1 |
| 21113 | # endif /* no CLSIZE */ |
| 21114 | # else /* no NBPG */ |
| 21115 | # ifdef NBPC |
| 21116 | # define getpagesize() NBPC |
| 21117 | # else /* no NBPC */ |
| 21118 | # ifdef PAGESIZE |
| 21119 | # define getpagesize() PAGESIZE |
| 21120 | # endif /* PAGESIZE */ |
| 21121 | # endif /* no NBPC */ |
| 21122 | # endif /* no NBPG */ |
| 21123 | # endif /* no EXEC_PAGESIZE */ |
| 21124 | # else /* no HAVE_SYS_PARAM_H */ |
| 21125 | # define getpagesize() 8192 /* punt totally */ |
| 21126 | # endif /* no HAVE_SYS_PARAM_H */ |
| 21127 | # endif /* no _SC_PAGESIZE */ |
| 21128 | |
| 21129 | #endif /* no HAVE_GETPAGESIZE */ |
| 21130 | |
| 21131 | int |
| 21132 | main () |
| 21133 | { |
| 21134 | char *data, *data2, *data3; |
| 21135 | int i, pagesize; |
| 21136 | int fd; |
| 21137 | |
| 21138 | pagesize = getpagesize (); |
| 21139 | |
| 21140 | /* First, make a file with some known garbage in it. */ |
| 21141 | data = (char *) malloc (pagesize); |
| 21142 | if (!data) |
| 21143 | exit (1); |
| 21144 | for (i = 0; i < pagesize; ++i) |
| 21145 | *(data + i) = rand (); |
| 21146 | umask (0); |
| 21147 | fd = creat ("conftest.mmap", 0600); |
| 21148 | if (fd < 0) |
| 21149 | exit (1); |
| 21150 | if (write (fd, data, pagesize) != pagesize) |
| 21151 | exit (1); |
| 21152 | close (fd); |
| 21153 | |
| 21154 | /* Next, try to mmap the file at a fixed address which already has |
| 21155 | something else allocated at it. If we can, also make sure that |
| 21156 | we see the same garbage. */ |
| 21157 | fd = open ("conftest.mmap", O_RDWR); |
| 21158 | if (fd < 0) |
| 21159 | exit (1); |
| 21160 | data2 = (char *) malloc (2 * pagesize); |
| 21161 | if (!data2) |
| 21162 | exit (1); |
| 21163 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
| 21164 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 21165 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 21166 | exit (1); |
| 21167 | for (i = 0; i < pagesize; ++i) |
| 21168 | if (*(data + i) != *(data2 + i)) |
| 21169 | exit (1); |
| 21170 | |
| 21171 | /* Finally, make sure that changes to the mapped area do not |
| 21172 | percolate back to the file as seen by read(). (This is a bug on |
| 21173 | some variants of i386 svr4.0.) */ |
| 21174 | for (i = 0; i < pagesize; ++i) |
| 21175 | *(data2 + i) = *(data2 + i) + 1; |
| 21176 | data3 = (char *) malloc (pagesize); |
| 21177 | if (!data3) |
| 21178 | exit (1); |
| 21179 | if (read (fd, data3, pagesize) != pagesize) |
| 21180 | exit (1); |
| 21181 | for (i = 0; i < pagesize; ++i) |
| 21182 | if (*(data + i) != *(data3 + i)) |
| 21183 | exit (1); |
| 21184 | close (fd); |
| 21185 | exit (0); |
| 21186 | } |
| 21187 | _ACEOF |
| 21188 | rm -f conftest$ac_exeext |
| 21189 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21190 | (eval $ac_link) 2>&5 |
| 21191 | ac_status=$? |
| 21192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21193 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21195 | (eval $ac_try) 2>&5 |
| 21196 | ac_status=$? |
| 21197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21198 | (exit $ac_status); }; }; then |
| 21199 | ac_cv_func_mmap_fixed_mapped=yes |
| 21200 | else |
| 21201 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21202 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21204 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21205 | ( exit $ac_status ) |
| 21206 | ac_cv_func_mmap_fixed_mapped=no |
| 21207 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21208 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21209 | fi |
| 21210 | fi |
| 21211 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 21212 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
| 21213 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 21214 | |
| 21215 | cat >>confdefs.h <<\_ACEOF |
| 21216 | #define HAVE_MMAP 1 |
| 21217 | _ACEOF |
| 21218 | |
| 21219 | fi |
| 21220 | rm -f conftest.mmap |
| 21221 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 21222 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 21223 | then |
| 21224 | { { echo "$as_me:$LINENO: error: mmap() required but not found" >&5 |
| 21225 | echo "$as_me: error: mmap() required but not found" >&2;} |
| 21226 | { (exit 1); exit 1; }; } |
| 21227 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21228 | echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 21229 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6 |
| 21230 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 21231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21232 | else |
| 21233 | |
| 21234 | |
| 21235 | ac_ext=c |
| 21236 | ac_cpp='$CPP $CPPFLAGS' |
| 21237 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21238 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21239 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21240 | |
| 21241 | if test "$cross_compiling" = yes; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21242 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 21243 | See \`config.log' for more details." >&5 |
| 21244 | echo "$as_me: error: cannot run test program while cross compiling |
| 21245 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21246 | { (exit 1); exit 1; }; } |
| 21247 | else |
| 21248 | cat >conftest.$ac_ext <<_ACEOF |
| 21249 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21250 | /* confdefs.h. */ |
| 21251 | _ACEOF |
| 21252 | cat confdefs.h >>conftest.$ac_ext |
| 21253 | cat >>conftest.$ac_ext <<_ACEOF |
| 21254 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21255 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21256 | #ifdef HAVE_SYS_TYPES_H |
| 21257 | #include <sys/types.h> |
| 21258 | #endif |
| 21259 | |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 21260 | #ifdef HAVE_SYS_MMAN_H |
| 21261 | #include <sys/mman.h> |
| 21262 | #endif |
| 21263 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21264 | #ifdef HAVE_FCNTL_H |
| 21265 | #include <fcntl.h> |
| 21266 | #endif |
| 21267 | |
| 21268 | int fd; |
| 21269 | int main () { |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 21270 | fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21271 | _ACEOF |
| 21272 | rm -f conftest$ac_exeext |
| 21273 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21274 | (eval $ac_link) 2>&5 |
| 21275 | ac_status=$? |
| 21276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21277 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21279 | (eval $ac_try) 2>&5 |
| 21280 | ac_status=$? |
| 21281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21282 | (exit $ac_status); }; }; then |
| 21283 | ac_cv_func_mmap_file=yes |
| 21284 | else |
| 21285 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21286 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21288 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21289 | ( exit $ac_status ) |
| 21290 | ac_cv_func_mmap_file=no |
| 21291 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21292 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21293 | fi |
| 21294 | ac_ext=c |
| 21295 | ac_cpp='$CPP $CPPFLAGS' |
| 21296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21299 | |
| 21300 | |
| 21301 | fi |
| 21302 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 21303 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6 |
| 21304 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 21305 | |
| 21306 | cat >>confdefs.h <<\_ACEOF |
| 21307 | #define HAVE_MMAP_FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21308 | _ACEOF |
| 21309 | |
| 21310 | MMAP_FILE=yes |
| 21311 | |
| 21312 | fi |
| 21313 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 21314 | if test "$ac_cv_func_mmap_file" = "no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21315 | then |
| 21316 | { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5 |
| 21317 | echo "$as_me: error: mmap() of files required but not found" >&2;} |
| 21318 | { (exit 1); exit 1; }; } |
| 21319 | fi |
| 21320 | echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 21321 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6 |
| 21322 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 21323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21324 | else |
| 21325 | |
| 21326 | |
| 21327 | ac_ext=c |
| 21328 | ac_cpp='$CPP $CPPFLAGS' |
| 21329 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21330 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21331 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21332 | |
| 21333 | cat >conftest.$ac_ext <<_ACEOF |
| 21334 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21335 | /* confdefs.h. */ |
| 21336 | _ACEOF |
| 21337 | cat confdefs.h >>conftest.$ac_ext |
| 21338 | cat >>conftest.$ac_ext <<_ACEOF |
| 21339 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21340 | #include <sys/mman.h> |
| 21341 | #include <unistd.h> |
| 21342 | #include <fcntl.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21343 | int |
| 21344 | main () |
| 21345 | { |
| 21346 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 21347 | ; |
| 21348 | return 0; |
| 21349 | } |
| 21350 | _ACEOF |
| 21351 | rm -f conftest.$ac_objext |
| 21352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21353 | (eval $ac_compile) 2>&5 |
| 21354 | ac_status=$? |
| 21355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21356 | (exit $ac_status); } && |
| 21357 | { ac_try='test -s conftest.$ac_objext' |
| 21358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21359 | (eval $ac_try) 2>&5 |
| 21360 | ac_status=$? |
| 21361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21362 | (exit $ac_status); }; }; then |
| 21363 | ac_cv_header_mmap_anon=yes |
| 21364 | else |
| 21365 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21367 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21368 | ac_cv_header_mmap_anon=no |
| 21369 | fi |
| 21370 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 21371 | ac_ext=c |
| 21372 | ac_cpp='$CPP $CPPFLAGS' |
| 21373 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21374 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21375 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21376 | |
| 21377 | |
| 21378 | fi |
| 21379 | echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 21380 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6 |
| 21381 | if test "$ac_cv_header_mmap_anon" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 21382 | |
| 21383 | cat >>confdefs.h <<\_ACEOF |
| 21384 | #define HAVE_MMAP_ANONYMOUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21385 | _ACEOF |
| 21386 | |
| 21387 | fi |
| 21388 | |
| 21389 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 21390 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 21391 | if test "${ac_cv_type_signal+set}" = set; then |
| 21392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21393 | else |
| 21394 | cat >conftest.$ac_ext <<_ACEOF |
| 21395 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21396 | /* confdefs.h. */ |
| 21397 | _ACEOF |
| 21398 | cat confdefs.h >>conftest.$ac_ext |
| 21399 | cat >>conftest.$ac_ext <<_ACEOF |
| 21400 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21401 | #include <sys/types.h> |
| 21402 | #include <signal.h> |
| 21403 | #ifdef signal |
| 21404 | # undef signal |
| 21405 | #endif |
| 21406 | #ifdef __cplusplus |
| 21407 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 21408 | #else |
| 21409 | void (*signal ()) (); |
| 21410 | #endif |
| 21411 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21412 | int |
| 21413 | main () |
| 21414 | { |
| 21415 | int i; |
| 21416 | ; |
| 21417 | return 0; |
| 21418 | } |
| 21419 | _ACEOF |
| 21420 | rm -f conftest.$ac_objext |
| 21421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21422 | (eval $ac_compile) 2>&5 |
| 21423 | ac_status=$? |
| 21424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21425 | (exit $ac_status); } && |
| 21426 | { ac_try='test -s conftest.$ac_objext' |
| 21427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21428 | (eval $ac_try) 2>&5 |
| 21429 | ac_status=$? |
| 21430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21431 | (exit $ac_status); }; }; then |
| 21432 | ac_cv_type_signal=void |
| 21433 | else |
| 21434 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21436 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21437 | ac_cv_type_signal=int |
| 21438 | fi |
| 21439 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 21440 | fi |
| 21441 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 21442 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 21443 | |
| 21444 | cat >>confdefs.h <<_ACEOF |
| 21445 | #define RETSIGTYPE $ac_cv_type_signal |
| 21446 | _ACEOF |
| 21447 | |
| 21448 | |
| 21449 | |
| 21450 | |
| 21451 | |
| 21452 | |
| 21453 | |
Brian Gaeke | f526147 | 2004-02-20 06:40:57 +0000 | [diff] [blame] | 21454 | |
| 21455 | for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21456 | do |
| 21457 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21458 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21459 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 21460 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 21461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21462 | else |
| 21463 | cat >conftest.$ac_ext <<_ACEOF |
| 21464 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21465 | /* confdefs.h. */ |
| 21466 | _ACEOF |
| 21467 | cat confdefs.h >>conftest.$ac_ext |
| 21468 | cat >>conftest.$ac_ext <<_ACEOF |
| 21469 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21470 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21471 | which can conflict with char $ac_func (); below. |
| 21472 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 21473 | <limits.h> exists even on freestanding compilers. */ |
| 21474 | #ifdef __STDC__ |
| 21475 | # include <limits.h> |
| 21476 | #else |
| 21477 | # include <assert.h> |
| 21478 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21479 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 21480 | #ifdef __cplusplus |
| 21481 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21482 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21483 | #endif |
| 21484 | /* We use char because int might match the return type of a gcc2 |
| 21485 | builtin and then its argument prototype would still apply. */ |
| 21486 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21487 | /* The GNU C library defines this for functions which it implements |
| 21488 | to always fail with ENOSYS. Some functions are actually named |
| 21489 | something starting with __ and the normal name is an alias. */ |
| 21490 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 21491 | choke me |
| 21492 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21493 | char (*f) () = $ac_func; |
| 21494 | #endif |
| 21495 | #ifdef __cplusplus |
| 21496 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21497 | #endif |
| 21498 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21499 | int |
| 21500 | main () |
| 21501 | { |
| 21502 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21503 | ; |
| 21504 | return 0; |
| 21505 | } |
| 21506 | _ACEOF |
| 21507 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21509 | (eval $ac_link) 2>&5 |
| 21510 | ac_status=$? |
| 21511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21512 | (exit $ac_status); } && |
| 21513 | { ac_try='test -s conftest$ac_exeext' |
| 21514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21515 | (eval $ac_try) 2>&5 |
| 21516 | ac_status=$? |
| 21517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21518 | (exit $ac_status); }; }; then |
| 21519 | eval "$as_ac_var=yes" |
| 21520 | else |
| 21521 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21523 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21524 | eval "$as_ac_var=no" |
| 21525 | fi |
| 21526 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 21527 | fi |
| 21528 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 21529 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 21530 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 21531 | cat >>confdefs.h <<_ACEOF |
| 21532 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 21533 | _ACEOF |
| 21534 | |
| 21535 | fi |
| 21536 | done |
| 21537 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21538 | echo "$as_me:$LINENO: checking for mprotect" >&5 |
| 21539 | echo $ECHO_N "checking for mprotect... $ECHO_C" >&6 |
| 21540 | if test "${ac_cv_func_mprotect+set}" = set; then |
| 21541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21542 | else |
| 21543 | cat >conftest.$ac_ext <<_ACEOF |
| 21544 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21545 | /* confdefs.h. */ |
| 21546 | _ACEOF |
| 21547 | cat confdefs.h >>conftest.$ac_ext |
| 21548 | cat >>conftest.$ac_ext <<_ACEOF |
| 21549 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21550 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21551 | which can conflict with char mprotect (); below. |
| 21552 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 21553 | <limits.h> exists even on freestanding compilers. */ |
| 21554 | #ifdef __STDC__ |
| 21555 | # include <limits.h> |
| 21556 | #else |
| 21557 | # include <assert.h> |
| 21558 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21559 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 21560 | #ifdef __cplusplus |
| 21561 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21562 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21563 | #endif |
| 21564 | /* We use char because int might match the return type of a gcc2 |
| 21565 | builtin and then its argument prototype would still apply. */ |
| 21566 | char mprotect (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21567 | /* The GNU C library defines this for functions which it implements |
| 21568 | to always fail with ENOSYS. Some functions are actually named |
| 21569 | something starting with __ and the normal name is an alias. */ |
| 21570 | #if defined (__stub_mprotect) || defined (__stub___mprotect) |
| 21571 | choke me |
| 21572 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21573 | char (*f) () = mprotect; |
| 21574 | #endif |
| 21575 | #ifdef __cplusplus |
| 21576 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21577 | #endif |
| 21578 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21579 | int |
| 21580 | main () |
| 21581 | { |
| 21582 | return f != mprotect; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21583 | ; |
| 21584 | return 0; |
| 21585 | } |
| 21586 | _ACEOF |
| 21587 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21588 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21589 | (eval $ac_link) 2>&5 |
| 21590 | ac_status=$? |
| 21591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21592 | (exit $ac_status); } && |
| 21593 | { ac_try='test -s conftest$ac_exeext' |
| 21594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21595 | (eval $ac_try) 2>&5 |
| 21596 | ac_status=$? |
| 21597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21598 | (exit $ac_status); }; }; then |
| 21599 | ac_cv_func_mprotect=yes |
| 21600 | else |
| 21601 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21603 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21604 | ac_cv_func_mprotect=no |
| 21605 | fi |
| 21606 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 21607 | fi |
| 21608 | echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 |
| 21609 | echo "${ECHO_T}$ac_cv_func_mprotect" >&6 |
| 21610 | if test $ac_cv_func_mprotect = yes; then |
| 21611 | : |
| 21612 | else |
| 21613 | { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 |
| 21614 | echo "$as_me: error: Function mprotect() required but not found" >&2;} |
| 21615 | { (exit 1); exit 1; }; } |
| 21616 | fi |
| 21617 | |
| 21618 | |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21619 | |
John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 21620 | |
| 21621 | |
| 21622 | ac_ext=c |
| 21623 | ac_cpp='$CPP $CPPFLAGS' |
| 21624 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21625 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21626 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21627 | |
Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 21628 | oldcflags="$CFLAGS" |
| 21629 | CFLAGS="$CFLAGS -Wl,-R." |
John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 21630 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 21631 | int main() { return 0; } |
John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 21632 | _ACEOF |
| 21633 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21634 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21635 | (eval $ac_link) 2>&5 |
| 21636 | ac_status=$? |
| 21637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21638 | (exit $ac_status); } && |
| 21639 | { ac_try='test -s conftest$ac_exeext' |
| 21640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21641 | (eval $ac_try) 2>&5 |
| 21642 | ac_status=$? |
| 21643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21644 | (exit $ac_status); }; }; then |
| 21645 | ac_cv_link_use_r=yes |
| 21646 | else |
| 21647 | echo "$as_me: failed program was:" >&5 |
| 21648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21649 | |
Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 21650 | ac_cv_link_use_r=no |
John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 21651 | fi |
| 21652 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 21653 | CFLAGS="$oldcflags" |
John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 21654 | ac_ext=c |
| 21655 | ac_cpp='$CPP $CPPFLAGS' |
| 21656 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21657 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21658 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21659 | |
Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 21660 | if test "$ac_cv_link_use_r" = yes |
John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 21661 | then |
Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 21662 | |
| 21663 | cat >>confdefs.h <<\_ACEOF |
John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 21664 | #define HAVE_LINK_R 1 |
| 21665 | _ACEOF |
| 21666 | |
| 21667 | fi |
| 21668 | |
| 21669 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21670 | # Check whether --enable-optimized or --disable-optimized was given. |
| 21671 | if test "${enable_optimized+set}" = set; then |
| 21672 | enableval="$enable_optimized" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21673 | |
| 21674 | else |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21675 | enableval=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21676 | fi; |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21677 | if test ${enableval} = "no" |
| 21678 | then |
| 21679 | ENABLE_OPTIMIZED= |
| 21680 | |
| 21681 | else |
| 21682 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 21683 | |
| 21684 | fi |
| 21685 | |
John Criswell | 5512659 | 2003-10-07 21:57:39 +0000 | [diff] [blame] | 21686 | # Check whether --enable-spec2000 or --disable-spec2000 was given. |
| 21687 | if test "${enable_spec2000+set}" = set; then |
| 21688 | enableval="$enable_spec2000" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21689 | |
| 21690 | else |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21691 | enableval=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21692 | fi; |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21693 | if test ${enableval} = "no" |
| 21694 | then |
John Criswell | 5512659 | 2003-10-07 21:57:39 +0000 | [diff] [blame] | 21695 | if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec |
| 21696 | then |
| 21697 | SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21698 | |
John Criswell | 5512659 | 2003-10-07 21:57:39 +0000 | [diff] [blame] | 21699 | USE_SPEC=USE_SPEC=1 |
| 21700 | |
| 21701 | else |
| 21702 | USE_SPEC= |
| 21703 | |
| 21704 | |
| 21705 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21706 | else |
John Criswell | 5512659 | 2003-10-07 21:57:39 +0000 | [diff] [blame] | 21707 | if test ${enableval} = "" |
| 21708 | then |
| 21709 | SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec |
| 21710 | |
| 21711 | else |
| 21712 | SPEC_ROOT=${enableval} |
| 21713 | |
| 21714 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21715 | USE_SPEC=USE_SPEC=1 |
| 21716 | |
| 21717 | fi |
| 21718 | |
John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 21719 | # Check whether --enable-spec95 or --disable-spec95 was given. |
| 21720 | if test "${enable_spec95+set}" = set; then |
| 21721 | enableval="$enable_spec95" |
| 21722 | |
| 21723 | else |
| 21724 | enableval=no |
| 21725 | fi; |
| 21726 | if test ${enableval} = "no" |
| 21727 | then |
John Criswell | 542af5f | 2004-02-16 14:55:18 +0000 | [diff] [blame] | 21728 | if test -d /home/vadve/shared/benchmarks/spec95/benchspec |
John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 21729 | then |
John Criswell | 542af5f | 2004-02-16 14:55:18 +0000 | [diff] [blame] | 21730 | SPEC95_ROOT=/home/vadve/shared/benchmarks/spec95/benchspec |
John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 21731 | |
| 21732 | USE_SPEC95=USE_SPEC95=1 |
| 21733 | |
| 21734 | else |
| 21735 | USE_SPEC95= |
| 21736 | |
| 21737 | |
| 21738 | fi |
| 21739 | else |
| 21740 | if test ${enableval} = "" |
| 21741 | then |
John Criswell | 542af5f | 2004-02-16 14:55:18 +0000 | [diff] [blame] | 21742 | SPEC95_ROOT=/home/vadve/shared/benchmarks/spec95/benchspec |
John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 21743 | |
| 21744 | else |
| 21745 | SPEC95_ROOT=${enableval} |
| 21746 | |
| 21747 | fi |
| 21748 | USE_SPEC95=USE_SPEC95=1 |
| 21749 | |
| 21750 | fi |
| 21751 | |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 21752 | # Check whether --enable-povray or --disable-povray was given. |
| 21753 | if test "${enable_povray+set}" = set; then |
| 21754 | enableval="$enable_povray" |
| 21755 | |
| 21756 | else |
| 21757 | enableval=no |
| 21758 | fi; |
| 21759 | if test ${enableval} = "no" |
| 21760 | then |
| 21761 | if test -d /home/vadve/criswell/Downloads/povray-3.50c |
| 21762 | then |
| 21763 | POVRAY_ROOT=/home/vadve/criswell/Downloads/povray-3.50c |
| 21764 | |
| 21765 | USE_POVRAY=USE_POVRAY=1 |
| 21766 | |
| 21767 | else |
| 21768 | USE_POVRAY= |
| 21769 | |
| 21770 | |
| 21771 | fi |
| 21772 | else |
| 21773 | if test ${enableval} = "" |
| 21774 | then |
| 21775 | POVRAY_ROOT=/home/vadve/criswell/Downloads/povray-3.50c |
| 21776 | |
| 21777 | else |
| 21778 | POVRAY_ROOT=${enableval} |
| 21779 | |
| 21780 | fi |
| 21781 | USE_POVRAY=USE_POVRAY=1 |
| 21782 | |
| 21783 | fi |
| 21784 | |
| 21785 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21786 | # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given. |
| 21787 | if test "${enable_precompiled_bytecode+set}" = set; then |
| 21788 | enableval="$enable_precompiled_bytecode" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21789 | |
| 21790 | else |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21791 | enableval=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21792 | fi; |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21793 | if test ${enableval} = "no" |
| 21794 | then |
| 21795 | UPB= |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 21796 | |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21797 | else |
| 21798 | UPB=USE_PRECOMPILED_BYTECODE=1 |
| 21799 | |
| 21800 | fi |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 21801 | |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 21802 | # Check whether --enable-llc_diffs or --disable-llc_diffs was given. |
| 21803 | if test "${enable_llc_diffs+set}" = set; then |
| 21804 | enableval="$enable_llc_diffs" |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 21805 | |
| 21806 | else |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21807 | enableval=yes |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 21808 | fi; |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21809 | if test ${enableval} = "no" |
| 21810 | then |
| 21811 | DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1 |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 21812 | |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21813 | else |
| 21814 | DISABLE_LLC_DIFFS= |
| 21815 | |
| 21816 | fi |
| 21817 | |
| 21818 | # Check whether --enable-jit or --disable-jit was given. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21819 | if test "${enable_jit+set}" = set; then |
| 21820 | enableval="$enable_jit" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21821 | |
| 21822 | else |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 21823 | enableval=default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21824 | fi; |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21825 | if test ${enableval} = "no" |
| 21826 | then |
| 21827 | JIT= |
| 21828 | |
| 21829 | else |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 21830 | case $target in |
| 21831 | *i*86*) |
| 21832 | JIT=TARGET_HAS_JIT=1 |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21833 | |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 21834 | ;; |
| 21835 | *sparc*) |
| 21836 | JIT=TARGET_HAS_JIT=1 |
| 21837 | |
| 21838 | ;; |
| 21839 | *) |
| 21840 | JIT= |
| 21841 | |
| 21842 | ;; |
| 21843 | esac |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21844 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21845 | |
| 21846 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21847 | # Check whether --with-llvmgccdir or --without-llvmgccdir was given. |
| 21848 | if test "${with_llvmgccdir+set}" = set; then |
| 21849 | withval="$with_llvmgccdir" |
| 21850 | LLVMGCCDIR=$withval |
| 21851 | |
| 21852 | fi; |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 21853 | echo "$as_me:$LINENO: checking for llvm-gcc" >&5 |
| 21854 | echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6 |
| 21855 | LLVM_GCC_CHECK=no |
| 21856 | if test -d "$LLVMGCCDIR" |
| 21857 | then |
| 21858 | if test -x "$LLVMGCCDIR/bin/gcc" |
| 21859 | then |
| 21860 | LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc" |
| 21861 | fi |
| 21862 | fi |
| 21863 | llvmgccwarn=no |
| 21864 | echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5 |
| 21865 | echo "${ECHO_T}$LLVM_GCC_CHECK" >&6 |
| 21866 | if test "$LLVM_GCC_CHECK" = "no" |
| 21867 | then |
| 21868 | llvmgccwarn=yes |
| 21869 | fi |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 21870 | echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 21871 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6 |
| 21872 | LLVM_GCC_SANE=no |
| 21873 | if test -x "$LLVM_GCC_CHECK" |
| 21874 | then |
| 21875 | cp /dev/null conftest.c |
| 21876 | "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1 |
| 21877 | if test $? -eq 0 |
| 21878 | then |
| 21879 | LLVM_GCC_SANE=yes |
| 21880 | fi |
| 21881 | rm conftest.c |
Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 21882 | llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1` |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 21883 | LLVMCC1=$llvmcc1path |
Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 21884 | |
| 21885 | llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus` |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 21886 | LLVMCC1PLUS=$llvmcc1pluspath |
Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 21887 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 21888 | fi |
| 21889 | echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5 |
| 21890 | echo "${ECHO_T}$LLVM_GCC_SANE" >&6 |
| 21891 | if test "$LLVM_GCC_SANE" = "no" |
| 21892 | then |
| 21893 | llvmgccwarn=yes |
| 21894 | fi |
| 21895 | |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 21896 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21897 | # Check whether --with-bcrepos or --without-bcrepos was given. |
| 21898 | if test "${with_bcrepos+set}" = set; then |
| 21899 | withval="$with_bcrepos" |
| 21900 | BCR=$withval |
| 21901 | |
| 21902 | else |
| 21903 | BCR=/home/vadve/lattner/LLVMPrograms |
| 21904 | |
| 21905 | fi; |
| 21906 | |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 21907 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21908 | # Check whether --with-papi or --without-papi was given. |
| 21909 | if test "${with_papi+set}" = set; then |
| 21910 | withval="$with_papi" |
| 21911 | PAPIDIR=$withval |
| 21912 | |
| 21913 | else |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 21914 | PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21915 | |
| 21916 | fi; |
| 21917 | |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 21918 | echo "$as_me:$LINENO: checking for shared library suffix" >&5 |
| 21919 | echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6 |
| 21920 | eval "SHLIBEXT=$shrext" |
| 21921 | echo "$as_me:$LINENO: result: $SHLIBEXT" >&5 |
| 21922 | echo "${ECHO_T}$SHLIBEXT" >&6 |
| 21923 | SHLIBEXT=$SHLIBEXT |
| 21924 | |
| 21925 | |
| 21926 | cat >>confdefs.h <<_ACEOF |
| 21927 | #define SHLIBEXT "$SHLIBEXT" |
| 21928 | _ACEOF |
| 21929 | |
| 21930 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21931 | ac_config_files="$ac_config_files Makefile.config" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21932 | cat >confcache <<\_ACEOF |
| 21933 | # This file is a shell script that caches the results of configure |
| 21934 | # tests run on this system so they can be shared between configure |
| 21935 | # scripts and configure runs, see configure's option --config-cache. |
| 21936 | # It is not useful on other systems. If it contains results you don't |
| 21937 | # want to keep, you may remove or edit it. |
| 21938 | # |
| 21939 | # config.status only pays attention to the cache file if you give it |
| 21940 | # the --recheck option to rerun configure. |
| 21941 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21942 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21943 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 21944 | # following values. |
| 21945 | |
| 21946 | _ACEOF |
| 21947 | |
| 21948 | # The following way of writing the cache mishandles newlines in values, |
| 21949 | # but we know of no workaround that is simple, portable, and efficient. |
| 21950 | # So, don't put newlines in cache variables' values. |
| 21951 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 21952 | # and sets the high bit in the cache file unless we assign to the vars. |
| 21953 | { |
| 21954 | (set) 2>&1 | |
| 21955 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 21956 | *ac_space=\ *) |
| 21957 | # `set' does not quote correctly, so add quotes (double-quote |
| 21958 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 21959 | sed -n \ |
| 21960 | "s/'/'\\\\''/g; |
| 21961 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 21962 | ;; |
| 21963 | *) |
| 21964 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 21965 | sed -n \ |
| 21966 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 21967 | ;; |
| 21968 | esac; |
| 21969 | } | |
| 21970 | sed ' |
| 21971 | t clear |
| 21972 | : clear |
| 21973 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 21974 | t end |
| 21975 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 21976 | : end' >>confcache |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21977 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21978 | if test -w $cache_file; then |
| 21979 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 21980 | cat confcache >$cache_file |
| 21981 | else |
| 21982 | echo "not updating unwritable cache $cache_file" |
| 21983 | fi |
| 21984 | fi |
| 21985 | rm -f confcache |
| 21986 | |
| 21987 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 21988 | # Let make expand exec_prefix. |
| 21989 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 21990 | |
| 21991 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 21992 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 21993 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 21994 | # (actually we leave an empty line to preserve line numbers). |
| 21995 | if test "x$srcdir" = x.; then |
| 21996 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 21997 | s/:*\$(srcdir):*/:/; |
| 21998 | s/:*\${srcdir}:*/:/; |
| 21999 | s/:*@srcdir@:*/:/; |
| 22000 | s/^\([^=]*=[ ]*\):*/\1/; |
| 22001 | s/:*$//; |
| 22002 | s/^[^=]*=[ ]*$//; |
| 22003 | }' |
| 22004 | fi |
| 22005 | |
| 22006 | DEFS=-DHAVE_CONFIG_H |
| 22007 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22008 | ac_libobjs= |
| 22009 | ac_ltlibobjs= |
| 22010 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 22011 | # 1. Remove the extension, and $U if already installed. |
| 22012 | ac_i=`echo "$ac_i" | |
| 22013 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 22014 | # 2. Add them. |
| 22015 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 22016 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 22017 | done |
| 22018 | LIBOBJS=$ac_libobjs |
| 22019 | |
| 22020 | LTLIBOBJS=$ac_ltlibobjs |
| 22021 | |
| 22022 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22023 | |
| 22024 | : ${CONFIG_STATUS=./config.status} |
| 22025 | ac_clean_files_save=$ac_clean_files |
| 22026 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 22027 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 22028 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 22029 | cat >$CONFIG_STATUS <<_ACEOF |
| 22030 | #! $SHELL |
| 22031 | # Generated by $as_me. |
| 22032 | # Run this file to recreate the current configuration. |
| 22033 | # Compiler output produced by configure, useful for debugging |
| 22034 | # configure, is in config.log if it exists. |
| 22035 | |
| 22036 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22037 | ac_cs_recheck=false |
| 22038 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22039 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 22040 | _ACEOF |
| 22041 | |
| 22042 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22043 | ## --------------------- ## |
| 22044 | ## M4sh Initialization. ## |
| 22045 | ## --------------------- ## |
| 22046 | |
| 22047 | # Be Bourne compatible |
| 22048 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 22049 | emulate sh |
| 22050 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22051 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 22052 | # is contrary to our usage. Disable this feature. |
| 22053 | alias -g '${1+"$@"}'='"$@"' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22054 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 22055 | set -o posix |
| 22056 | fi |
| 22057 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22058 | # Support unset when possible. |
| 22059 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 22060 | as_unset=unset |
| 22061 | else |
| 22062 | as_unset=false |
| 22063 | fi |
| 22064 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22065 | |
| 22066 | # Work around bugs in pre-3.0 UWIN ksh. |
| 22067 | $as_unset ENV MAIL MAILPATH |
| 22068 | PS1='$ ' |
| 22069 | PS2='> ' |
| 22070 | PS4='+ ' |
| 22071 | |
| 22072 | # NLS nuisances. |
| 22073 | for as_var in \ |
| 22074 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 22075 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 22076 | LC_TELEPHONE LC_TIME |
| 22077 | do |
| 22078 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 22079 | eval $as_var=C; export $as_var |
| 22080 | else |
| 22081 | $as_unset $as_var |
| 22082 | fi |
| 22083 | done |
| 22084 | |
| 22085 | # Required to use basename. |
| 22086 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 22087 | as_expr=expr |
| 22088 | else |
| 22089 | as_expr=false |
| 22090 | fi |
| 22091 | |
| 22092 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 22093 | as_basename=basename |
| 22094 | else |
| 22095 | as_basename=false |
| 22096 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22097 | |
| 22098 | |
| 22099 | # Name of the executable. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22100 | as_me=`$as_basename "$0" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22101 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 22102 | X"$0" : 'X\(//\)$' \| \ |
| 22103 | X"$0" : 'X\(/\)$' \| \ |
| 22104 | . : '\(.\)' 2>/dev/null || |
| 22105 | echo X/"$0" | |
| 22106 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 22107 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 22108 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 22109 | s/.*/./; q'` |
| 22110 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22111 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22112 | # PATH needs CR, and LINENO needs CR and PATH. |
| 22113 | # Avoid depending upon Character Ranges. |
| 22114 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 22115 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 22116 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 22117 | as_cr_digits='0123456789' |
| 22118 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 22119 | |
| 22120 | # The user is always right. |
| 22121 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22122 | echo "#! /bin/sh" >conf$$.sh |
| 22123 | echo "exit 0" >>conf$$.sh |
| 22124 | chmod +x conf$$.sh |
| 22125 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22126 | PATH_SEPARATOR=';' |
| 22127 | else |
| 22128 | PATH_SEPARATOR=: |
| 22129 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22130 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22131 | fi |
| 22132 | |
| 22133 | |
| 22134 | as_lineno_1=$LINENO |
| 22135 | as_lineno_2=$LINENO |
| 22136 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 22137 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 22138 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 22139 | # Find who we are. Look in the path if we contain no path at all |
| 22140 | # relative or not. |
| 22141 | case $0 in |
| 22142 | *[\\/]* ) as_myself=$0 ;; |
| 22143 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22144 | for as_dir in $PATH |
| 22145 | do |
| 22146 | IFS=$as_save_IFS |
| 22147 | test -z "$as_dir" && as_dir=. |
| 22148 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 22149 | done |
| 22150 | |
| 22151 | ;; |
| 22152 | esac |
| 22153 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 22154 | # in which case we are not to be found in the path. |
| 22155 | if test "x$as_myself" = x; then |
| 22156 | as_myself=$0 |
| 22157 | fi |
| 22158 | if test ! -f "$as_myself"; then |
| 22159 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 22160 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 22161 | { (exit 1); exit 1; }; } |
| 22162 | fi |
| 22163 | case $CONFIG_SHELL in |
| 22164 | '') |
| 22165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22166 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 22167 | do |
| 22168 | IFS=$as_save_IFS |
| 22169 | test -z "$as_dir" && as_dir=. |
| 22170 | for as_base in sh bash ksh sh5; do |
| 22171 | case $as_dir in |
| 22172 | /*) |
| 22173 | if ("$as_dir/$as_base" -c ' |
| 22174 | as_lineno_1=$LINENO |
| 22175 | as_lineno_2=$LINENO |
| 22176 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 22177 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 22178 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22179 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 22180 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22181 | CONFIG_SHELL=$as_dir/$as_base |
| 22182 | export CONFIG_SHELL |
| 22183 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 22184 | fi;; |
| 22185 | esac |
| 22186 | done |
| 22187 | done |
| 22188 | ;; |
| 22189 | esac |
| 22190 | |
| 22191 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 22192 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 22193 | # line-number line before each line; the second 'sed' does the real |
| 22194 | # work. The second script uses 'N' to pair each line-number line |
| 22195 | # with the numbered line, and appends trailing '-' during |
| 22196 | # substitution so that $LINENO is not a special case at line end. |
| 22197 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 22198 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 22199 | sed '=' <$as_myself | |
| 22200 | sed ' |
| 22201 | N |
| 22202 | s,$,-, |
| 22203 | : loop |
| 22204 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 22205 | t loop |
| 22206 | s,-$,, |
| 22207 | s,^['$as_cr_digits']*\n,, |
| 22208 | ' >$as_me.lineno && |
| 22209 | chmod +x $as_me.lineno || |
| 22210 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 22211 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 22212 | { (exit 1); exit 1; }; } |
| 22213 | |
| 22214 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 22215 | # (the dirname of $[0] is not the place where we might find the |
| 22216 | # original and so on. Autoconf is especially sensible to this). |
| 22217 | . ./$as_me.lineno |
| 22218 | # Exit status is that of the last command. |
| 22219 | exit |
| 22220 | } |
| 22221 | |
| 22222 | |
| 22223 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 22224 | *c*,-n*) ECHO_N= ECHO_C=' |
| 22225 | ' ECHO_T=' ' ;; |
| 22226 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 22227 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 22228 | esac |
| 22229 | |
| 22230 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 22231 | as_expr=expr |
| 22232 | else |
| 22233 | as_expr=false |
| 22234 | fi |
| 22235 | |
| 22236 | rm -f conf$$ conf$$.exe conf$$.file |
| 22237 | echo >conf$$.file |
| 22238 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 22239 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 22240 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 22241 | if test -f conf$$.exe; then |
| 22242 | # Don't use ln at all; we don't have any links |
| 22243 | as_ln_s='cp -p' |
| 22244 | else |
| 22245 | as_ln_s='ln -s' |
| 22246 | fi |
| 22247 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 22248 | as_ln_s=ln |
| 22249 | else |
| 22250 | as_ln_s='cp -p' |
| 22251 | fi |
| 22252 | rm -f conf$$ conf$$.exe conf$$.file |
| 22253 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22254 | if mkdir -p . 2>/dev/null; then |
| 22255 | as_mkdir_p=: |
| 22256 | else |
| 22257 | as_mkdir_p=false |
| 22258 | fi |
| 22259 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22260 | as_executable_p="test -f" |
| 22261 | |
| 22262 | # Sed expression to map a string onto a valid CPP name. |
| 22263 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 22264 | |
| 22265 | # Sed expression to map a string onto a valid variable name. |
| 22266 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 22267 | |
| 22268 | |
| 22269 | # IFS |
| 22270 | # We need space, tab and new line, in precisely that order. |
| 22271 | as_nl=' |
| 22272 | ' |
| 22273 | IFS=" $as_nl" |
| 22274 | |
| 22275 | # CDPATH. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22276 | $as_unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22277 | |
| 22278 | exec 6>&1 |
| 22279 | |
| 22280 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 22281 | # report actual input values of CONFIG_FILES etc. instead of their |
| 22282 | # values after options handling. Logging --version etc. is OK. |
| 22283 | exec 5>>config.log |
| 22284 | { |
| 22285 | echo |
| 22286 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 22287 | ## Running $as_me. ## |
| 22288 | _ASBOX |
| 22289 | } >&5 |
| 22290 | cat >&5 <<_CSEOF |
| 22291 | |
John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 22292 | This file was extended by [LLVM] $as_me [1.1], which was |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22293 | generated by GNU Autoconf 2.57. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22294 | |
| 22295 | CONFIG_FILES = $CONFIG_FILES |
| 22296 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 22297 | CONFIG_LINKS = $CONFIG_LINKS |
| 22298 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 22299 | $ $0 $@ |
| 22300 | |
| 22301 | _CSEOF |
| 22302 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 22303 | echo >&5 |
| 22304 | _ACEOF |
| 22305 | |
| 22306 | # Files that config.status was made for. |
| 22307 | if test -n "$ac_config_files"; then |
| 22308 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 22309 | fi |
| 22310 | |
| 22311 | if test -n "$ac_config_headers"; then |
| 22312 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 22313 | fi |
| 22314 | |
| 22315 | if test -n "$ac_config_links"; then |
| 22316 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 22317 | fi |
| 22318 | |
| 22319 | if test -n "$ac_config_commands"; then |
| 22320 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 22321 | fi |
| 22322 | |
| 22323 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22324 | |
| 22325 | ac_cs_usage="\ |
| 22326 | \`$as_me' instantiates files from templates according to the |
| 22327 | current configuration. |
| 22328 | |
| 22329 | Usage: $0 [OPTIONS] [FILE]... |
| 22330 | |
| 22331 | -h, --help print this help, then exit |
| 22332 | -V, --version print version number, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22333 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22334 | -d, --debug don't remove temporary files |
| 22335 | --recheck update $as_me by reconfiguring in the same conditions |
| 22336 | --file=FILE[:TEMPLATE] |
| 22337 | instantiate the configuration file FILE |
| 22338 | --header=FILE[:TEMPLATE] |
| 22339 | instantiate the configuration header FILE |
| 22340 | |
| 22341 | Configuration files: |
| 22342 | $config_files |
| 22343 | |
| 22344 | Configuration headers: |
| 22345 | $config_headers |
| 22346 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22347 | Configuration commands: |
| 22348 | $config_commands |
| 22349 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22350 | Report bugs to <bug-autoconf@gnu.org>." |
| 22351 | _ACEOF |
| 22352 | |
| 22353 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22354 | ac_cs_version="\\ |
John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 22355 | [LLVM] config.status [1.1] |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22356 | configured by $0, generated by GNU Autoconf 2.57, |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22357 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 22358 | |
| 22359 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 22360 | Free Software Foundation, Inc. |
| 22361 | This config.status script is free software; the Free Software Foundation |
| 22362 | gives unlimited permission to copy, distribute and modify it." |
| 22363 | srcdir=$srcdir |
| 22364 | INSTALL="$INSTALL" |
| 22365 | _ACEOF |
| 22366 | |
| 22367 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22368 | # If no file are specified by the user, then we need to provide default |
| 22369 | # value. By we need to know if files were specified by the user. |
| 22370 | ac_need_defaults=: |
| 22371 | while test $# != 0 |
| 22372 | do |
| 22373 | case $1 in |
| 22374 | --*=*) |
| 22375 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 22376 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22377 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22378 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22379 | -*) |
| 22380 | ac_option=$1 |
| 22381 | ac_optarg=$2 |
| 22382 | ac_shift=shift |
| 22383 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22384 | *) # This is not an option, so the user has probably given explicit |
| 22385 | # arguments. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22386 | ac_option=$1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22387 | ac_need_defaults=false;; |
| 22388 | esac |
| 22389 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22390 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22391 | # Handling of the options. |
| 22392 | _ACEOF |
John Criswell | d9cd144 | 2003-09-09 20:52:17 +0000 | [diff] [blame] | 22393 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22394 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 22395 | ac_cs_recheck=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22396 | --version | --vers* | -V ) |
| 22397 | echo "$ac_cs_version"; exit 0 ;; |
| 22398 | --he | --h) |
| 22399 | # Conflict between --help and --header |
| 22400 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 22401 | Try \`$0 --help' for more information." >&5 |
| 22402 | echo "$as_me: error: ambiguous option: $1 |
| 22403 | Try \`$0 --help' for more information." >&2;} |
| 22404 | { (exit 1); exit 1; }; };; |
| 22405 | --help | --hel | -h ) |
| 22406 | echo "$ac_cs_usage"; exit 0 ;; |
| 22407 | --debug | --d* | -d ) |
| 22408 | debug=: ;; |
| 22409 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22410 | $ac_shift |
| 22411 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22412 | ac_need_defaults=false;; |
| 22413 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22414 | $ac_shift |
| 22415 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22416 | ac_need_defaults=false;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22417 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 22418 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 22419 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22420 | |
| 22421 | # This is an error. |
| 22422 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 22423 | Try \`$0 --help' for more information." >&5 |
| 22424 | echo "$as_me: error: unrecognized option: $1 |
| 22425 | Try \`$0 --help' for more information." >&2;} |
| 22426 | { (exit 1); exit 1; }; } ;; |
| 22427 | |
| 22428 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 22429 | |
| 22430 | esac |
| 22431 | shift |
| 22432 | done |
| 22433 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22434 | ac_configure_extra_args= |
| 22435 | |
| 22436 | if $ac_cs_silent; then |
| 22437 | exec 6>/dev/null |
| 22438 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 22439 | fi |
| 22440 | |
| 22441 | _ACEOF |
| 22442 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22443 | if \$ac_cs_recheck; then |
| 22444 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 22445 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 22446 | fi |
| 22447 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22448 | _ACEOF |
| 22449 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22450 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22451 | # |
| 22452 | # INIT-COMMANDS section. |
| 22453 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22454 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22455 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile` |
| 22456 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22457 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22458 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22459 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile` |
| 22460 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 22461 | ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py` |
| 22462 | ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22463 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile` |
| 22464 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs` |
| 22465 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile` |
| 22466 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report` |
| 22467 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report` |
| 22468 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report` |
| 22469 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile` |
| 22470 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile` |
| 22471 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile` |
| 22472 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile` |
| 22473 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report` |
| 22474 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile` |
| 22475 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report` |
| 22476 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile` |
| 22477 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot` |
| 22478 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile` |
| 22479 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile` |
| 22480 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile` |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 22481 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec` |
John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 22482 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22483 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile` |
| 22484 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc` |
Misha Brukman | 811ce9f | 2003-11-12 22:16:51 +0000 | [diff] [blame] | 22485 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in` |
| 22486 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile` |
| 22487 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in` |
| 22488 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile` |
| 22489 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in` |
| 22490 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile` |
| 22491 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in` |
| 22492 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile` |
| 22493 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in` |
| 22494 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile` |
| 22495 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in` |
| 22496 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile` |
| 22497 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22498 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile` |
| 22499 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22500 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 22501 | ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22502 | ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22503 | |
| 22504 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22505 | |
| 22506 | |
| 22507 | |
| 22508 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22509 | for ac_config_target in $ac_config_targets |
| 22510 | do |
| 22511 | case "$ac_config_target" in |
| 22512 | # Handling of arguments. |
| 22513 | "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22514 | "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 22515 | "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22516 | "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22517 | "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22518 | "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 22519 | "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 22520 | "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;; |
| 22521 | "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22522 | "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;; |
| 22523 | "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;; |
| 22524 | "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;; |
| 22525 | "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;; |
| 22526 | "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;; |
| 22527 | "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;; |
| 22528 | "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;; |
| 22529 | "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;; |
| 22530 | "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;; |
| 22531 | "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;; |
| 22532 | "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;; |
| 22533 | "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;; |
| 22534 | "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;; |
| 22535 | "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;; |
| 22536 | "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;; |
| 22537 | "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;; |
| 22538 | "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;; |
| 22539 | "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;; |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 22540 | "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;; |
John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 22541 | "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22542 | "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;; |
| 22543 | "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;; |
Misha Brukman | 811ce9f | 2003-11-12 22:16:51 +0000 | [diff] [blame] | 22544 | "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;; |
| 22545 | "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;; |
| 22546 | "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;; |
| 22547 | "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;; |
| 22548 | "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;; |
| 22549 | "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;; |
| 22550 | "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;; |
| 22551 | "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;; |
| 22552 | "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;; |
| 22553 | "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;; |
| 22554 | "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;; |
| 22555 | "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;; |
| 22556 | "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22557 | "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;; |
| 22558 | "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22559 | "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 22560 | "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22561 | "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22562 | "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;; |
| 22563 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 22564 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 22565 | { (exit 1); exit 1; }; };; |
| 22566 | esac |
| 22567 | done |
| 22568 | |
| 22569 | # If the user did not use the arguments to specify the items to instantiate, |
| 22570 | # then the envvar interface is used. Set only those that are not. |
| 22571 | # We use the long form for the default assignment because of an extremely |
| 22572 | # bizarre bug on SunOS 4.1.3. |
| 22573 | if $ac_need_defaults; then |
| 22574 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 22575 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22576 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22577 | fi |
| 22578 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22579 | # Have a temporary directory for convenience. Make it in the build tree |
| 22580 | # simply because there is no reason to put it here, and in addition, |
| 22581 | # creating and moving files from /tmp can sometimes cause problems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22582 | # Create a temporary directory, and hook for its removal unless debugging. |
| 22583 | $debug || |
| 22584 | { |
| 22585 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 22586 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 22587 | } |
| 22588 | |
| 22589 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22590 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22591 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22592 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22593 | test -n "$tmp" && test -d "$tmp" |
| 22594 | } || |
| 22595 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22596 | tmp=./confstat$$-$RANDOM |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22597 | (umask 077 && mkdir $tmp) |
| 22598 | } || |
| 22599 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22600 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22601 | { (exit 1); exit 1; } |
| 22602 | } |
| 22603 | |
| 22604 | _ACEOF |
| 22605 | |
| 22606 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22607 | |
| 22608 | # |
| 22609 | # CONFIG_FILES section. |
| 22610 | # |
| 22611 | |
| 22612 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 22613 | # This happens for instance when ./config.status config.h |
| 22614 | if test -n "\$CONFIG_FILES"; then |
| 22615 | # Protect against being on the right side of a sed subst in config.status. |
| 22616 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 22617 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 22618 | s,@SHELL@,$SHELL,;t t |
| 22619 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 22620 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 22621 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 22622 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 22623 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 22624 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 22625 | s,@exec_prefix@,$exec_prefix,;t t |
| 22626 | s,@prefix@,$prefix,;t t |
| 22627 | s,@program_transform_name@,$program_transform_name,;t t |
| 22628 | s,@bindir@,$bindir,;t t |
| 22629 | s,@sbindir@,$sbindir,;t t |
| 22630 | s,@libexecdir@,$libexecdir,;t t |
| 22631 | s,@datadir@,$datadir,;t t |
| 22632 | s,@sysconfdir@,$sysconfdir,;t t |
| 22633 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 22634 | s,@localstatedir@,$localstatedir,;t t |
| 22635 | s,@libdir@,$libdir,;t t |
| 22636 | s,@includedir@,$includedir,;t t |
| 22637 | s,@oldincludedir@,$oldincludedir,;t t |
| 22638 | s,@infodir@,$infodir,;t t |
| 22639 | s,@mandir@,$mandir,;t t |
| 22640 | s,@build_alias@,$build_alias,;t t |
| 22641 | s,@host_alias@,$host_alias,;t t |
| 22642 | s,@target_alias@,$target_alias,;t t |
| 22643 | s,@DEFS@,$DEFS,;t t |
| 22644 | s,@ECHO_C@,$ECHO_C,;t t |
| 22645 | s,@ECHO_N@,$ECHO_N,;t t |
| 22646 | s,@ECHO_T@,$ECHO_T,;t t |
| 22647 | s,@LIBS@,$LIBS,;t t |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22648 | s,@subdirs@,$subdirs,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22649 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 22650 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 22651 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 22652 | s,@build@,$build,;t t |
| 22653 | s,@build_cpu@,$build_cpu,;t t |
| 22654 | s,@build_vendor@,$build_vendor,;t t |
| 22655 | s,@build_os@,$build_os,;t t |
| 22656 | s,@host@,$host,;t t |
| 22657 | s,@host_cpu@,$host_cpu,;t t |
| 22658 | s,@host_vendor@,$host_vendor,;t t |
| 22659 | s,@host_os@,$host_os,;t t |
| 22660 | s,@target@,$target,;t t |
| 22661 | s,@target_cpu@,$target_cpu,;t t |
| 22662 | s,@target_vendor@,$target_vendor,;t t |
| 22663 | s,@target_os@,$target_os,;t t |
| 22664 | s,@OS@,$OS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22665 | s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 22666 | s,@ARCH@,$ARCH,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22667 | s,@CXX@,$CXX,;t t |
| 22668 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 22669 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 22670 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 22671 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 22672 | s,@EXEEXT@,$EXEEXT,;t t |
| 22673 | s,@OBJEXT@,$OBJEXT,;t t |
| 22674 | s,@CC@,$CC,;t t |
| 22675 | s,@CFLAGS@,$CFLAGS,;t t |
| 22676 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 22677 | s,@CPP@,$CPP,;t t |
| 22678 | s,@ifGNUmake@,$ifGNUmake,;t t |
| 22679 | s,@LEX@,$LEX,;t t |
| 22680 | s,@LEXLIB@,$LEXLIB,;t t |
| 22681 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
| 22682 | s,@YACC@,$YACC,;t t |
Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 22683 | s,@BISON@,$BISON,;t t |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22684 | s,@EGREP@,$EGREP,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22685 | s,@LN_S@,$LN_S,;t t |
| 22686 | s,@ECHO@,$ECHO,;t t |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22687 | s,@AR@,$AR,;t t |
| 22688 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22689 | s,@RANLIB@,$RANLIB,;t t |
| 22690 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 22691 | s,@STRIP@,$STRIP,;t t |
| 22692 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22693 | s,@CXXCPP@,$CXXCPP,;t t |
| 22694 | s,@F77@,$F77,;t t |
| 22695 | s,@FFLAGS@,$FFLAGS,;t t |
| 22696 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22697 | s,@LIBTOOL@,$LIBTOOL,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22698 | s,@DOT@,$DOT,;t t |
| 22699 | s,@ETAGS@,$ETAGS,;t t |
Brian Gaeke | afa3fbf | 2004-01-22 21:55:02 +0000 | [diff] [blame] | 22700 | s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 22701 | s,@PYTHON@,$PYTHON,;t t |
| 22702 | s,@QMTEST@,$QMTEST,;t t |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 22703 | s,@ENDIAN@,$ENDIAN,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22704 | s,@ALLOCA@,$ALLOCA,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22705 | s,@MMAP_FILE@,$MMAP_FILE,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22706 | s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t |
John Criswell | 5512659 | 2003-10-07 21:57:39 +0000 | [diff] [blame] | 22707 | s,@SPEC_ROOT@,$SPEC_ROOT,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22708 | s,@USE_SPEC@,$USE_SPEC,;t t |
John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 22709 | s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t |
| 22710 | s,@USE_SPEC95@,$USE_SPEC95,;t t |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 22711 | s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t |
| 22712 | s,@USE_POVRAY@,$USE_POVRAY,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22713 | s,@UPB@,$UPB,;t t |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 22714 | s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22715 | s,@JIT@,$JIT,;t t |
Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 22716 | s,@LLVMCC1@,$LLVMCC1,;t t |
| 22717 | s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22718 | s,@BCR@,$BCR,;t t |
| 22719 | s,@PAPIDIR@,$PAPIDIR,;t t |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 22720 | s,@SHLIBEXT@,$SHLIBEXT,;t t |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 22721 | s,@LIBOBJS@,$LIBOBJS,;t t |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22722 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22723 | CEOF |
| 22724 | |
| 22725 | _ACEOF |
| 22726 | |
| 22727 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22728 | # Split the substitutions into bite-sized pieces for seds with |
| 22729 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 22730 | ac_max_sed_lines=48 |
| 22731 | ac_sed_frag=1 # Number of current file. |
| 22732 | ac_beg=1 # First line for current file. |
| 22733 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 22734 | ac_more_lines=: |
| 22735 | ac_sed_cmds= |
| 22736 | while $ac_more_lines; do |
| 22737 | if test $ac_beg -gt 1; then |
| 22738 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 22739 | else |
| 22740 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 22741 | fi |
| 22742 | if test ! -s $tmp/subs.frag; then |
| 22743 | ac_more_lines=false |
| 22744 | else |
| 22745 | # The purpose of the label and of the branching condition is to |
| 22746 | # speed up the sed processing (if there are no `@' at all, there |
| 22747 | # is no need to browse any of the substitutions). |
| 22748 | # These are the two extra sed commands mentioned above. |
| 22749 | (echo ':t |
| 22750 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 22751 | if test -z "$ac_sed_cmds"; then |
| 22752 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 22753 | else |
| 22754 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 22755 | fi |
| 22756 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 22757 | ac_beg=$ac_end |
| 22758 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 22759 | fi |
| 22760 | done |
| 22761 | if test -z "$ac_sed_cmds"; then |
| 22762 | ac_sed_cmds=cat |
| 22763 | fi |
| 22764 | fi # test -n "$CONFIG_FILES" |
| 22765 | |
| 22766 | _ACEOF |
| 22767 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22768 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 22769 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 22770 | case $ac_file in |
| 22771 | - | *:- | *:-:* ) # input from stdin |
| 22772 | cat >$tmp/stdin |
| 22773 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 22774 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 22775 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 22776 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 22777 | * ) ac_file_in=$ac_file.in ;; |
| 22778 | esac |
| 22779 | |
| 22780 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 22781 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 22782 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22783 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 22784 | X"$ac_file" : 'X\(//\)$' \| \ |
| 22785 | X"$ac_file" : 'X\(/\)' \| \ |
| 22786 | . : '\(.\)' 2>/dev/null || |
| 22787 | echo X"$ac_file" | |
| 22788 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22789 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22790 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22791 | /^X\(\/\).*/{ s//\1/; q; } |
| 22792 | s/.*/./; q'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22793 | { if $as_mkdir_p; then |
| 22794 | mkdir -p "$ac_dir" |
| 22795 | else |
| 22796 | as_dir="$ac_dir" |
| 22797 | as_dirs= |
| 22798 | while test ! -d "$as_dir"; do |
| 22799 | as_dirs="$as_dir $as_dirs" |
| 22800 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 22801 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22802 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22803 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22804 | X"$as_dir" : 'X\(/\)' \| \ |
| 22805 | . : '\(.\)' 2>/dev/null || |
| 22806 | echo X"$as_dir" | |
| 22807 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22808 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22809 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22810 | /^X\(\/\).*/{ s//\1/; q; } |
| 22811 | s/.*/./; q'` |
| 22812 | done |
| 22813 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 22814 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 22815 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 22816 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22817 | |
| 22818 | ac_builddir=. |
| 22819 | |
| 22820 | if test "$ac_dir" != .; then |
| 22821 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 22822 | # A "../" for each directory in $ac_dir_suffix. |
| 22823 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 22824 | else |
| 22825 | ac_dir_suffix= ac_top_builddir= |
| 22826 | fi |
| 22827 | |
| 22828 | case $srcdir in |
| 22829 | .) # No --srcdir option. We are building in place. |
| 22830 | ac_srcdir=. |
| 22831 | if test -z "$ac_top_builddir"; then |
| 22832 | ac_top_srcdir=. |
| 22833 | else |
| 22834 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 22835 | fi ;; |
| 22836 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 22837 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 22838 | ac_top_srcdir=$srcdir ;; |
| 22839 | *) # Relative path. |
| 22840 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 22841 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 22842 | esac |
| 22843 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 22844 | # absolute. |
| 22845 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22846 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22847 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 22848 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 22849 | |
| 22850 | |
| 22851 | case $INSTALL in |
| 22852 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 22853 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 22854 | esac |
| 22855 | |
| 22856 | if test x"$ac_file" != x-; then |
| 22857 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 22858 | echo "$as_me: creating $ac_file" >&6;} |
| 22859 | rm -f "$ac_file" |
| 22860 | fi |
| 22861 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 22862 | # use $as_me), people would be surprised to read: |
| 22863 | # /* config.h. Generated by config.status. */ |
| 22864 | if test x"$ac_file" = x-; then |
| 22865 | configure_input= |
| 22866 | else |
| 22867 | configure_input="$ac_file. " |
| 22868 | fi |
| 22869 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 22870 | sed 's,.*/,,'` by configure." |
| 22871 | |
| 22872 | # First look for the input files in the build tree, otherwise in the |
| 22873 | # src tree. |
| 22874 | ac_file_inputs=`IFS=: |
| 22875 | for f in $ac_file_in; do |
| 22876 | case $f in |
| 22877 | -) echo $tmp/stdin ;; |
| 22878 | [\\/$]*) |
| 22879 | # Absolute (can't be DOS-style, as IFS=:) |
| 22880 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 22881 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 22882 | { (exit 1); exit 1; }; } |
| 22883 | echo $f;; |
| 22884 | *) # Relative |
| 22885 | if test -f "$f"; then |
| 22886 | # Build tree |
| 22887 | echo $f |
| 22888 | elif test -f "$srcdir/$f"; then |
| 22889 | # Source tree |
| 22890 | echo $srcdir/$f |
| 22891 | else |
| 22892 | # /dev/null tree |
| 22893 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 22894 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 22895 | { (exit 1); exit 1; }; } |
| 22896 | fi;; |
| 22897 | esac |
| 22898 | done` || { (exit 1); exit 1; } |
| 22899 | _ACEOF |
| 22900 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22901 | sed "$ac_vpsub |
| 22902 | $extrasub |
| 22903 | _ACEOF |
| 22904 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22905 | :t |
| 22906 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 22907 | s,@configure_input@,$configure_input,;t t |
| 22908 | s,@srcdir@,$ac_srcdir,;t t |
| 22909 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 22910 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 22911 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 22912 | s,@builddir@,$ac_builddir,;t t |
| 22913 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 22914 | s,@top_builddir@,$ac_top_builddir,;t t |
| 22915 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 22916 | s,@INSTALL@,$ac_INSTALL,;t t |
| 22917 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 22918 | rm -f $tmp/stdin |
| 22919 | if test x"$ac_file" != x-; then |
| 22920 | mv $tmp/out $ac_file |
| 22921 | else |
| 22922 | cat $tmp/out |
| 22923 | rm -f $tmp/out |
| 22924 | fi |
| 22925 | |
| 22926 | done |
| 22927 | _ACEOF |
| 22928 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22929 | |
| 22930 | # |
| 22931 | # CONFIG_HEADER section. |
| 22932 | # |
| 22933 | |
| 22934 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 22935 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 22936 | # |
| 22937 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 22938 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 22939 | ac_dB='[ ].*$,\1#\2' |
| 22940 | ac_dC=' ' |
| 22941 | ac_dD=',;t' |
| 22942 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 22943 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 22944 | ac_uB='$,\1#\2define\3' |
| 22945 | ac_uC=' ' |
| 22946 | ac_uD=',;t' |
| 22947 | |
| 22948 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 22949 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 22950 | case $ac_file in |
| 22951 | - | *:- | *:-:* ) # input from stdin |
| 22952 | cat >$tmp/stdin |
| 22953 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 22954 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 22955 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 22956 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 22957 | * ) ac_file_in=$ac_file.in ;; |
| 22958 | esac |
| 22959 | |
| 22960 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 22961 | echo "$as_me: creating $ac_file" >&6;} |
| 22962 | |
| 22963 | # First look for the input files in the build tree, otherwise in the |
| 22964 | # src tree. |
| 22965 | ac_file_inputs=`IFS=: |
| 22966 | for f in $ac_file_in; do |
| 22967 | case $f in |
| 22968 | -) echo $tmp/stdin ;; |
| 22969 | [\\/$]*) |
| 22970 | # Absolute (can't be DOS-style, as IFS=:) |
| 22971 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 22972 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 22973 | { (exit 1); exit 1; }; } |
| 22974 | echo $f;; |
| 22975 | *) # Relative |
| 22976 | if test -f "$f"; then |
| 22977 | # Build tree |
| 22978 | echo $f |
| 22979 | elif test -f "$srcdir/$f"; then |
| 22980 | # Source tree |
| 22981 | echo $srcdir/$f |
| 22982 | else |
| 22983 | # /dev/null tree |
| 22984 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 22985 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 22986 | { (exit 1); exit 1; }; } |
| 22987 | fi;; |
| 22988 | esac |
| 22989 | done` || { (exit 1); exit 1; } |
| 22990 | # Remove the trailing spaces. |
| 22991 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 22992 | |
| 22993 | _ACEOF |
| 22994 | |
| 22995 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 22996 | # `conftest.undefs', that substitutes the proper values into |
| 22997 | # config.h.in to produce config.h. The first handles `#define' |
| 22998 | # templates, and the second `#undef' templates. |
| 22999 | # And first: Protect against being on the right side of a sed subst in |
| 23000 | # config.status. Protect against being in an unquoted here document |
| 23001 | # in config.status. |
| 23002 | rm -f conftest.defines conftest.undefs |
| 23003 | # Using a here document instead of a string reduces the quoting nightmare. |
| 23004 | # Putting comments in sed scripts is not portable. |
| 23005 | # |
| 23006 | # `end' is used to avoid that the second main sed command (meant for |
| 23007 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 23008 | # See the Autoconf documentation for `clear'. |
| 23009 | cat >confdef2sed.sed <<\_ACEOF |
| 23010 | s/[\\&,]/\\&/g |
| 23011 | s,[\\$`],\\&,g |
| 23012 | t clear |
| 23013 | : clear |
| 23014 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 23015 | t end |
| 23016 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 23017 | : end |
| 23018 | _ACEOF |
| 23019 | # If some macros were called several times there might be several times |
| 23020 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 23021 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 23022 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 23023 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 23024 | rm -f confdef2sed.sed |
| 23025 | |
| 23026 | # This sed command replaces #undef with comments. This is necessary, for |
| 23027 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 23028 | # on some systems where configure will not decide to define it. |
| 23029 | cat >>conftest.undefs <<\_ACEOF |
| 23030 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 23031 | _ACEOF |
| 23032 | |
| 23033 | # Break up conftest.defines because some shells have a limit on the size |
| 23034 | # of here documents, and old seds have small limits too (100 cmds). |
| 23035 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23036 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23037 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 23038 | echo ' :' >>$CONFIG_STATUS |
| 23039 | rm -f conftest.tail |
| 23040 | while grep . conftest.defines >/dev/null |
| 23041 | do |
| 23042 | # Write a limited-size here document to $tmp/defines.sed. |
| 23043 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 23044 | # Speed up: don't consider the non `#define' lines. |
| 23045 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 23046 | # Work around the forget-to-reset-the-flag bug. |
| 23047 | echo 't clr' >>$CONFIG_STATUS |
| 23048 | echo ': clr' >>$CONFIG_STATUS |
| 23049 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 23050 | echo 'CEOF |
| 23051 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 23052 | rm -f $tmp/in |
| 23053 | mv $tmp/out $tmp/in |
| 23054 | ' >>$CONFIG_STATUS |
| 23055 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 23056 | rm -f conftest.defines |
| 23057 | mv conftest.tail conftest.defines |
| 23058 | done |
| 23059 | rm -f conftest.defines |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23060 | echo ' fi # grep' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23061 | echo >>$CONFIG_STATUS |
| 23062 | |
| 23063 | # Break up conftest.undefs because some shells have a limit on the size |
| 23064 | # of here documents, and old seds have small limits too (100 cmds). |
| 23065 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 23066 | rm -f conftest.tail |
| 23067 | while grep . conftest.undefs >/dev/null |
| 23068 | do |
| 23069 | # Write a limited-size here document to $tmp/undefs.sed. |
| 23070 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 23071 | # Speed up: don't consider the non `#undef' |
| 23072 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 23073 | # Work around the forget-to-reset-the-flag bug. |
| 23074 | echo 't clr' >>$CONFIG_STATUS |
| 23075 | echo ': clr' >>$CONFIG_STATUS |
| 23076 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 23077 | echo 'CEOF |
| 23078 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 23079 | rm -f $tmp/in |
| 23080 | mv $tmp/out $tmp/in |
| 23081 | ' >>$CONFIG_STATUS |
| 23082 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 23083 | rm -f conftest.undefs |
| 23084 | mv conftest.tail conftest.undefs |
| 23085 | done |
| 23086 | rm -f conftest.undefs |
| 23087 | |
| 23088 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23089 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 23090 | # use $as_me), people would be surprised to read: |
| 23091 | # /* config.h. Generated by config.status. */ |
| 23092 | if test x"$ac_file" = x-; then |
| 23093 | echo "/* Generated by configure. */" >$tmp/config.h |
| 23094 | else |
| 23095 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 23096 | fi |
| 23097 | cat $tmp/in >>$tmp/config.h |
| 23098 | rm -f $tmp/in |
| 23099 | if test x"$ac_file" != x-; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23100 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23101 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 23102 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 23103 | else |
| 23104 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 23105 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23106 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 23107 | X"$ac_file" : 'X\(//\)$' \| \ |
| 23108 | X"$ac_file" : 'X\(/\)' \| \ |
| 23109 | . : '\(.\)' 2>/dev/null || |
| 23110 | echo X"$ac_file" | |
| 23111 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23112 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23113 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23114 | /^X\(\/\).*/{ s//\1/; q; } |
| 23115 | s/.*/./; q'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23116 | { if $as_mkdir_p; then |
| 23117 | mkdir -p "$ac_dir" |
| 23118 | else |
| 23119 | as_dir="$ac_dir" |
| 23120 | as_dirs= |
| 23121 | while test ! -d "$as_dir"; do |
| 23122 | as_dirs="$as_dir $as_dirs" |
| 23123 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 23124 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23125 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23126 | X"$as_dir" : 'X\(//\)$' \| \ |
| 23127 | X"$as_dir" : 'X\(/\)' \| \ |
| 23128 | . : '\(.\)' 2>/dev/null || |
| 23129 | echo X"$as_dir" | |
| 23130 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23131 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23132 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23133 | /^X\(\/\).*/{ s//\1/; q; } |
| 23134 | s/.*/./; q'` |
| 23135 | done |
| 23136 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 23137 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 23138 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 23139 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23140 | |
| 23141 | rm -f $ac_file |
| 23142 | mv $tmp/config.h $ac_file |
| 23143 | fi |
| 23144 | else |
| 23145 | cat $tmp/config.h |
| 23146 | rm -f $tmp/config.h |
| 23147 | fi |
| 23148 | done |
| 23149 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23150 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23151 | |
| 23152 | # |
| 23153 | # CONFIG_COMMANDS section. |
| 23154 | # |
| 23155 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 23156 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 23157 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 23158 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 23159 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23160 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 23161 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 23162 | X"$ac_dest" : 'X\(/\)' \| \ |
| 23163 | . : '\(.\)' 2>/dev/null || |
| 23164 | echo X"$ac_dest" | |
| 23165 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23166 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23167 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23168 | /^X\(\/\).*/{ s//\1/; q; } |
| 23169 | s/.*/./; q'` |
| 23170 | ac_builddir=. |
| 23171 | |
| 23172 | if test "$ac_dir" != .; then |
| 23173 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 23174 | # A "../" for each directory in $ac_dir_suffix. |
| 23175 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 23176 | else |
| 23177 | ac_dir_suffix= ac_top_builddir= |
| 23178 | fi |
| 23179 | |
| 23180 | case $srcdir in |
| 23181 | .) # No --srcdir option. We are building in place. |
| 23182 | ac_srcdir=. |
| 23183 | if test -z "$ac_top_builddir"; then |
| 23184 | ac_top_srcdir=. |
| 23185 | else |
| 23186 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 23187 | fi ;; |
| 23188 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 23189 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 23190 | ac_top_srcdir=$srcdir ;; |
| 23191 | *) # Relative path. |
| 23192 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 23193 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 23194 | esac |
| 23195 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 23196 | # absolute. |
| 23197 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23198 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23199 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 23200 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 23201 | |
| 23202 | |
| 23203 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 23204 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 23205 | case $ac_dest in |
| 23206 | Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; |
| 23207 | Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23208 | lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23209 | runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23210 | test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; |
| 23211 | test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; |
John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 23212 | test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;; |
| 23213 | test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23214 | test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;; |
| 23215 | test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;; |
| 23216 | test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;; |
| 23217 | test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;; |
| 23218 | test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;; |
| 23219 | test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;; |
| 23220 | test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;; |
| 23221 | test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;; |
| 23222 | test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;; |
| 23223 | test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;; |
| 23224 | test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;; |
| 23225 | test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;; |
| 23226 | test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;; |
| 23227 | test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;; |
| 23228 | test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;; |
| 23229 | test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;; |
| 23230 | test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;; |
| 23231 | test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;; |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 23232 | test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;; |
John Criswell | cf2e9f7 | 2004-02-10 22:36:35 +0000 | [diff] [blame] | 23233 | test/Programs/External/SPEC/Makefile.spec95 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec95 test/Programs/External/SPEC/Makefile.spec95 ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23234 | test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;; |
| 23235 | test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;; |
Misha Brukman | 811ce9f | 2003-11-12 22:16:51 +0000 | [diff] [blame] | 23236 | test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;; |
| 23237 | test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;; |
| 23238 | test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;; |
| 23239 | test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;; |
| 23240 | test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;; |
| 23241 | test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;; |
| 23242 | test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;; |
| 23243 | test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;; |
| 23244 | test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;; |
| 23245 | test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;; |
| 23246 | test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;; |
| 23247 | test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;; |
| 23248 | test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23249 | test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;; |
| 23250 | test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23251 | tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 23252 | utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23253 | projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23254 | esac |
| 23255 | done |
| 23256 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23257 | |
| 23258 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23259 | |
| 23260 | { (exit 0); exit 0; } |
| 23261 | _ACEOF |
| 23262 | chmod +x $CONFIG_STATUS |
| 23263 | ac_clean_files=$ac_clean_files_save |
| 23264 | |
| 23265 | |
| 23266 | # configure is writing to config.log, and then calls config.status. |
| 23267 | # config.status does its own redirection, appending to config.log. |
| 23268 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 23269 | # by configure, so config.status won't be able to write to it; its |
| 23270 | # output is simply discarded. So we exec the FD to /dev/null, |
| 23271 | # effectively closing config.log, so it can be properly (re)opened and |
| 23272 | # appended to by config.status. When coming back to configure, we |
| 23273 | # need to make the FD available again. |
| 23274 | if test "$no_create" != yes; then |
| 23275 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23276 | ac_config_status_args= |
| 23277 | test "$silent" = yes && |
| 23278 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23279 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23280 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23281 | exec 5>>config.log |
| 23282 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 23283 | # would make configure fail if this is the last instruction. |
| 23284 | $ac_cs_success || { (exit 1); exit 1; } |
| 23285 | fi |
| 23286 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 23287 | # |
| 23288 | # CONFIG_SUBDIRS section. |
| 23289 | # |
| 23290 | if test "$no_recursion" != yes; then |
| 23291 | |
| 23292 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 23293 | ac_sub_configure_args= |
| 23294 | ac_prev= |
| 23295 | for ac_arg in $ac_configure_args; do |
| 23296 | if test -n "$ac_prev"; then |
| 23297 | ac_prev= |
| 23298 | continue |
| 23299 | fi |
| 23300 | case $ac_arg in |
| 23301 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 23302 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 23303 | ac_prev=cache_file ;; |
| 23304 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 23305 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 23306 | | --c=*) |
| 23307 | ;; |
| 23308 | --config-cache | -C) |
| 23309 | ;; |
| 23310 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 23311 | ac_prev=srcdir ;; |
| 23312 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 23313 | ;; |
| 23314 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 23315 | ac_prev=prefix ;; |
| 23316 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 23317 | ;; |
| 23318 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
| 23319 | esac |
| 23320 | done |
| 23321 | |
| 23322 | # Always prepend --prefix to ensure using the same prefix |
| 23323 | # in subdir configurations. |
| 23324 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" |
| 23325 | |
| 23326 | ac_popdir=`pwd` |
| 23327 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 23328 | |
| 23329 | # Do not complain, so a configure script can configure whichever |
| 23330 | # parts of a large source tree are present. |
| 23331 | test -d $srcdir/$ac_dir || continue |
| 23332 | |
| 23333 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
| 23334 | echo "$as_me: configuring in $ac_dir" >&6;} |
| 23335 | { if $as_mkdir_p; then |
| 23336 | mkdir -p "$ac_dir" |
| 23337 | else |
| 23338 | as_dir="$ac_dir" |
| 23339 | as_dirs= |
| 23340 | while test ! -d "$as_dir"; do |
| 23341 | as_dirs="$as_dir $as_dirs" |
| 23342 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 23343 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23344 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23345 | X"$as_dir" : 'X\(//\)$' \| \ |
| 23346 | X"$as_dir" : 'X\(/\)' \| \ |
| 23347 | . : '\(.\)' 2>/dev/null || |
| 23348 | echo X"$as_dir" | |
| 23349 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23350 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23351 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23352 | /^X\(\/\).*/{ s//\1/; q; } |
| 23353 | s/.*/./; q'` |
| 23354 | done |
| 23355 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 23356 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 23357 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 23358 | { (exit 1); exit 1; }; }; } |
| 23359 | |
| 23360 | ac_builddir=. |
| 23361 | |
| 23362 | if test "$ac_dir" != .; then |
| 23363 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 23364 | # A "../" for each directory in $ac_dir_suffix. |
| 23365 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 23366 | else |
| 23367 | ac_dir_suffix= ac_top_builddir= |
| 23368 | fi |
| 23369 | |
| 23370 | case $srcdir in |
| 23371 | .) # No --srcdir option. We are building in place. |
| 23372 | ac_srcdir=. |
| 23373 | if test -z "$ac_top_builddir"; then |
| 23374 | ac_top_srcdir=. |
| 23375 | else |
| 23376 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 23377 | fi ;; |
| 23378 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 23379 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 23380 | ac_top_srcdir=$srcdir ;; |
| 23381 | *) # Relative path. |
| 23382 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 23383 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 23384 | esac |
| 23385 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 23386 | # absolute. |
| 23387 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 23388 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
| 23389 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 23390 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 23391 | |
| 23392 | |
| 23393 | cd $ac_dir |
| 23394 | |
| 23395 | # Check for guested configure; otherwise get Cygnus style configure. |
| 23396 | if test -f $ac_srcdir/configure.gnu; then |
| 23397 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" |
| 23398 | elif test -f $ac_srcdir/configure; then |
| 23399 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" |
| 23400 | elif test -f $ac_srcdir/configure.in; then |
| 23401 | ac_sub_configure=$ac_configure |
| 23402 | else |
| 23403 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 23404 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 23405 | ac_sub_configure= |
| 23406 | fi |
| 23407 | |
| 23408 | # The recursion is here. |
| 23409 | if test -n "$ac_sub_configure"; then |
| 23410 | # Make the cache file name correct relative to the subdirectory. |
| 23411 | case $cache_file in |
| 23412 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
| 23413 | *) # Relative path. |
| 23414 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
| 23415 | esac |
| 23416 | |
| 23417 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 23418 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
| 23419 | # The eval makes quoting arguments work. |
| 23420 | eval $ac_sub_configure $ac_sub_configure_args \ |
| 23421 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
| 23422 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 23423 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 23424 | { (exit 1); exit 1; }; } |
| 23425 | fi |
| 23426 | |
| 23427 | cd $ac_popdir |
| 23428 | done |
| 23429 | fi |
| 23430 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 23431 | |
| 23432 | if test $llvmgccwarn = yes |
| 23433 | then |
| 23434 | { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5 |
| 23435 | echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;} |
| 23436 | { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5 |
| 23437 | echo "$as_me: WARNING: ***** appear to be working." >&2;} |
| 23438 | { echo "$as_me:$LINENO: WARNING: ***** " >&5 |
| 23439 | echo "$as_me: WARNING: ***** " >&2;} |
| 23440 | { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5 |
| 23441 | echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;} |
| 23442 | { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5 |
| 23443 | echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;} |
| 23444 | { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5 |
| 23445 | echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;} |
| 23446 | fi |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 23447 | |