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. |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59 for llvm 1.4. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 6 | # |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8 | # This configure script is free software; the Free Software Foundation |
| 9 | # gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 10 | # |
| 11 | # $LLVM_COPYRIGHT |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12 | ## --------------------- ## |
| 13 | ## M4sh Initialization. ## |
| 14 | ## --------------------- ## |
| 15 | |
| 16 | # Be Bourne compatible |
| 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 18 | emulate sh |
| 19 | NULLCMD=: |
| 20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
| 23 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 24 | set -o posix |
| 25 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27 | |
| 28 | # Support unset when possible. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30 | as_unset=unset |
| 31 | else |
| 32 | as_unset=false |
| 33 | fi |
| 34 | |
| 35 | |
| 36 | # Work around bugs in pre-3.0 UWIN ksh. |
| 37 | $as_unset ENV MAIL MAILPATH |
| 38 | PS1='$ ' |
| 39 | PS2='> ' |
| 40 | PS4='+ ' |
| 41 | |
| 42 | # NLS nuisances. |
| 43 | for as_var in \ |
| 44 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 45 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 46 | LC_TELEPHONE LC_TIME |
| 47 | do |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 48 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 49 | eval $as_var=C; export $as_var |
| 50 | else |
| 51 | $as_unset $as_var |
| 52 | fi |
| 53 | done |
| 54 | |
| 55 | # Required to use basename. |
| 56 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 57 | as_expr=expr |
| 58 | else |
| 59 | as_expr=false |
| 60 | fi |
| 61 | |
| 62 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 63 | as_basename=basename |
| 64 | else |
| 65 | as_basename=false |
| 66 | fi |
| 67 | |
| 68 | |
| 69 | # Name of the executable. |
| 70 | as_me=`$as_basename "$0" || |
| 71 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 72 | X"$0" : 'X\(//\)$' \| \ |
| 73 | X"$0" : 'X\(/\)$' \| \ |
| 74 | . : '\(.\)' 2>/dev/null || |
| 75 | echo X/"$0" | |
| 76 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 77 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 78 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 79 | s/.*/./; q'` |
| 80 | |
| 81 | |
| 82 | # PATH needs CR, and LINENO needs CR and PATH. |
| 83 | # Avoid depending upon Character Ranges. |
| 84 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 85 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 86 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 87 | as_cr_digits='0123456789' |
| 88 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 89 | |
| 90 | # The user is always right. |
| 91 | if test "${PATH_SEPARATOR+set}" != set; then |
| 92 | echo "#! /bin/sh" >conf$$.sh |
| 93 | echo "exit 0" >>conf$$.sh |
| 94 | chmod +x conf$$.sh |
| 95 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 96 | PATH_SEPARATOR=';' |
| 97 | else |
| 98 | PATH_SEPARATOR=: |
| 99 | fi |
| 100 | rm -f conf$$.sh |
| 101 | fi |
| 102 | |
| 103 | |
| 104 | as_lineno_1=$LINENO |
| 105 | as_lineno_2=$LINENO |
| 106 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 107 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 108 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 109 | # Find who we are. Look in the path if we contain no path at all |
| 110 | # relative or not. |
| 111 | case $0 in |
| 112 | *[\\/]* ) as_myself=$0 ;; |
| 113 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 114 | for as_dir in $PATH |
| 115 | do |
| 116 | IFS=$as_save_IFS |
| 117 | test -z "$as_dir" && as_dir=. |
| 118 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 119 | done |
| 120 | |
| 121 | ;; |
| 122 | esac |
| 123 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 124 | # in which case we are not to be found in the path. |
| 125 | if test "x$as_myself" = x; then |
| 126 | as_myself=$0 |
| 127 | fi |
| 128 | if test ! -f "$as_myself"; then |
| 129 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 130 | { (exit 1); exit 1; }; } |
| 131 | fi |
| 132 | case $CONFIG_SHELL in |
| 133 | '') |
| 134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 135 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 136 | do |
| 137 | IFS=$as_save_IFS |
| 138 | test -z "$as_dir" && as_dir=. |
| 139 | for as_base in sh bash ksh sh5; do |
| 140 | case $as_dir in |
| 141 | /*) |
| 142 | if ("$as_dir/$as_base" -c ' |
| 143 | as_lineno_1=$LINENO |
| 144 | as_lineno_2=$LINENO |
| 145 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 146 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 147 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 148 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 149 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 150 | CONFIG_SHELL=$as_dir/$as_base |
| 151 | export CONFIG_SHELL |
| 152 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 153 | fi;; |
| 154 | esac |
| 155 | done |
| 156 | done |
| 157 | ;; |
| 158 | esac |
| 159 | |
| 160 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 161 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 162 | # line-number line before each line; the second 'sed' does the real |
| 163 | # work. The second script uses 'N' to pair each line-number line |
| 164 | # with the numbered line, and appends trailing '-' during |
| 165 | # substitution so that $LINENO is not a special case at line end. |
| 166 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 167 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 168 | sed '=' <$as_myself | |
| 169 | sed ' |
| 170 | N |
| 171 | s,$,-, |
| 172 | : loop |
| 173 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 174 | t loop |
| 175 | s,-$,, |
| 176 | s,^['$as_cr_digits']*\n,, |
| 177 | ' >$as_me.lineno && |
| 178 | chmod +x $as_me.lineno || |
| 179 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 180 | { (exit 1); exit 1; }; } |
| 181 | |
| 182 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 183 | # (the dirname of $[0] is not the place where we might find the |
| 184 | # original and so on. Autoconf is especially sensible to this). |
| 185 | . ./$as_me.lineno |
| 186 | # Exit status is that of the last command. |
| 187 | exit |
| 188 | } |
| 189 | |
| 190 | |
| 191 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 192 | *c*,-n*) ECHO_N= ECHO_C=' |
| 193 | ' ECHO_T=' ' ;; |
| 194 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 195 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 196 | esac |
| 197 | |
| 198 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 199 | as_expr=expr |
| 200 | else |
| 201 | as_expr=false |
| 202 | fi |
| 203 | |
| 204 | rm -f conf$$ conf$$.exe conf$$.file |
| 205 | echo >conf$$.file |
| 206 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 207 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 208 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 209 | if test -f conf$$.exe; then |
| 210 | # Don't use ln at all; we don't have any links |
| 211 | as_ln_s='cp -p' |
| 212 | else |
| 213 | as_ln_s='ln -s' |
| 214 | fi |
| 215 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 216 | as_ln_s=ln |
| 217 | else |
| 218 | as_ln_s='cp -p' |
| 219 | fi |
| 220 | rm -f conf$$ conf$$.exe conf$$.file |
| 221 | |
| 222 | if mkdir -p . 2>/dev/null; then |
| 223 | as_mkdir_p=: |
| 224 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 225 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 226 | as_mkdir_p=false |
| 227 | fi |
| 228 | |
| 229 | as_executable_p="test -f" |
| 230 | |
| 231 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 232 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 233 | |
| 234 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 235 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 236 | |
| 237 | |
| 238 | # IFS |
| 239 | # We need space, tab and new line, in precisely that order. |
| 240 | as_nl=' |
| 241 | ' |
| 242 | IFS=" $as_nl" |
| 243 | |
| 244 | # CDPATH. |
| 245 | $as_unset CDPATH |
| 246 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 247 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 248 | |
| 249 | # Check that we are running under the correct shell. |
| 250 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 251 | |
| 252 | case X$ECHO in |
| 253 | X*--fallback-echo) |
| 254 | # Remove one level of quotation (which was required for Make). |
| 255 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 256 | ;; |
| 257 | esac |
| 258 | |
| 259 | echo=${ECHO-echo} |
| 260 | if test "X$1" = X--no-reexec; then |
| 261 | # Discard the --no-reexec flag, and continue. |
| 262 | shift |
| 263 | elif test "X$1" = X--fallback-echo; then |
| 264 | # Avoid inline document here, it may be left over |
| 265 | : |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 266 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 267 | # Yippee, $echo works! |
| 268 | : |
| 269 | else |
| 270 | # Restart under the correct shell. |
| 271 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 272 | fi |
| 273 | |
| 274 | if test "X$1" = X--fallback-echo; then |
| 275 | # used as fallback echo |
| 276 | shift |
| 277 | cat <<EOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 278 | $* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 279 | EOF |
| 280 | exit 0 |
| 281 | fi |
| 282 | |
| 283 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 284 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 285 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 286 | |
| 287 | if test -z "$ECHO"; then |
| 288 | if test "X${echo_test_string+set}" != Xset; then |
| 289 | # find a string as large as possible, as long as the shell can cope with it |
| 290 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 291 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 292 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 293 | echo_test_string="`eval $cmd`" && |
| 294 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 295 | then |
| 296 | break |
| 297 | fi |
| 298 | done |
| 299 | fi |
| 300 | |
| 301 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 302 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 303 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 304 | : |
| 305 | else |
| 306 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 307 | # backslashes. This makes it impossible to quote backslashes using |
| 308 | # echo "$something" | sed 's/\\/\\\\/g' |
| 309 | # |
| 310 | # So, first we look for a working echo in the user's PATH. |
| 311 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 312 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 313 | for dir in $PATH /usr/ucb; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 314 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 315 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 316 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 317 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 318 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 319 | echo="$dir/echo" |
| 320 | break |
| 321 | fi |
| 322 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 323 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 324 | |
| 325 | if test "X$echo" = Xecho; then |
| 326 | # We didn't find a better echo, so look for alternatives. |
| 327 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 328 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 329 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 330 | # This shell has a builtin print -r that does the trick. |
| 331 | echo='print -r' |
| 332 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 333 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 334 | # If we have ksh, try running configure again with it. |
| 335 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 336 | export ORIGINAL_CONFIG_SHELL |
| 337 | CONFIG_SHELL=/bin/ksh |
| 338 | export CONFIG_SHELL |
| 339 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 340 | else |
| 341 | # Try using printf. |
| 342 | echo='printf %s\n' |
| 343 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 344 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 345 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 346 | # Cool, printf works |
| 347 | : |
| 348 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 349 | test "X$echo_testing_string" = 'X\t' && |
| 350 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 351 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 352 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 353 | export CONFIG_SHELL |
| 354 | SHELL="$CONFIG_SHELL" |
| 355 | export SHELL |
| 356 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 357 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 358 | test "X$echo_testing_string" = 'X\t' && |
| 359 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 360 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 361 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 362 | else |
| 363 | # maybe with a smaller string... |
| 364 | prev=: |
| 365 | |
| 366 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 367 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 368 | then |
| 369 | break |
| 370 | fi |
| 371 | prev="$cmd" |
| 372 | done |
| 373 | |
| 374 | if test "$prev" != 'sed 50q "$0"'; then |
| 375 | echo_test_string=`eval $prev` |
| 376 | export echo_test_string |
| 377 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 378 | else |
| 379 | # Oops. We lost completely, so just stick with echo. |
| 380 | echo=echo |
| 381 | fi |
| 382 | fi |
| 383 | fi |
| 384 | fi |
| 385 | fi |
| 386 | fi |
| 387 | |
| 388 | # Copy echo and quote the copy suitably for passing to libtool from |
| 389 | # the Makefile, instead of quoting the original, which is used later. |
| 390 | ECHO=$echo |
| 391 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 392 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 393 | fi |
| 394 | |
| 395 | |
| 396 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 397 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 398 | tagnames=${tagnames+${tagnames},}CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 399 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 400 | tagnames=${tagnames+${tagnames},}F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 401 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 402 | # Name of the host. |
| 403 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 404 | # so uname gets run too. |
| 405 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 406 | |
| 407 | exec 6>&1 |
| 408 | |
| 409 | # |
| 410 | # Initializations. |
| 411 | # |
| 412 | ac_default_prefix=/usr/local |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 413 | ac_config_libobj_dir=. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 414 | cross_compiling=no |
| 415 | subdirs= |
| 416 | MFLAGS= |
| 417 | MAKEFLAGS= |
| 418 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 419 | |
| 420 | # Maximum number of lines to put in a shell here document. |
| 421 | # This variable seems obsolete. It should probably be removed, and |
| 422 | # only ac_max_sed_lines should be used. |
| 423 | : ${ac_max_here_lines=38} |
| 424 | |
| 425 | # Identity of this package. |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 426 | PACKAGE_NAME='llvm' |
Reid Spencer | 2b51a08 | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 427 | PACKAGE_TARNAME='-llvm-' |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 428 | PACKAGE_VERSION='1.4' |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 429 | PACKAGE_STRING='llvm 1.4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 430 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' |
| 431 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 432 | ac_unique_file="lib/VMCore/Module.cpp" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 433 | ac_subdirs_all="$ac_subdirs_all projects/sample" |
| 434 | ac_subdirs_all="$ac_subdirs_all projects/Stacker" |
| 435 | ac_subdirs_all="$ac_subdirs_all projects/llvm-test" |
| 436 | ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt" |
| 437 | ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc" |
Reid Spencer | 641f7ef | 2004-09-20 22:14:56 +0000 | [diff] [blame] | 438 | ac_subdirs_all="$ac_subdirs_all projects/Java" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 439 | ac_subdirs_all="$ac_subdirs_all projects/llvm-tv" |
| 440 | ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw" |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 441 | ac_subdirs_all="$ac_subdirs_all projects/poolalloc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 442 | # Factoring default headers for most tests. |
| 443 | ac_includes_default="\ |
| 444 | #include <stdio.h> |
| 445 | #if HAVE_SYS_TYPES_H |
| 446 | # include <sys/types.h> |
| 447 | #endif |
| 448 | #if HAVE_SYS_STAT_H |
| 449 | # include <sys/stat.h> |
| 450 | #endif |
| 451 | #if STDC_HEADERS |
| 452 | # include <stdlib.h> |
| 453 | # include <stddef.h> |
| 454 | #else |
| 455 | # if HAVE_STDLIB_H |
| 456 | # include <stdlib.h> |
| 457 | # endif |
| 458 | #endif |
| 459 | #if HAVE_STRING_H |
| 460 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 461 | # include <memory.h> |
| 462 | # endif |
| 463 | # include <string.h> |
| 464 | #endif |
| 465 | #if HAVE_STRINGS_H |
| 466 | # include <strings.h> |
| 467 | #endif |
| 468 | #if HAVE_INTTYPES_H |
| 469 | # include <inttypes.h> |
| 470 | #else |
| 471 | # if HAVE_STDINT_H |
| 472 | # include <stdint.h> |
| 473 | # endif |
| 474 | #endif |
| 475 | #if HAVE_UNISTD_H |
| 476 | # include <unistd.h> |
| 477 | #endif" |
| 478 | |
Reid Spencer | 4a41586 | 2004-11-25 20:21:53 +0000 | [diff] [blame] | 479 | 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 LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT LLVMGCCDIR CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX 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 ifGNUmake FIND GREP MKDIR MV RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA DOT ETAGS PYTHON QMTEST RUNTEST ETAGSFLAGS ALLOCA MMAP_FILE LLVMGCC LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 480 | ac_subst_files='' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 481 | |
| 482 | # Initialize some variables set by options. |
| 483 | ac_init_help= |
| 484 | ac_init_version=false |
| 485 | # The variables have the same names as the options, with |
| 486 | # dashes changed to underlines. |
| 487 | cache_file=/dev/null |
| 488 | exec_prefix=NONE |
| 489 | no_create= |
| 490 | no_recursion= |
| 491 | prefix=NONE |
| 492 | program_prefix=NONE |
| 493 | program_suffix=NONE |
| 494 | program_transform_name=s,x,x, |
| 495 | silent= |
| 496 | site= |
| 497 | srcdir= |
| 498 | verbose= |
| 499 | x_includes=NONE |
| 500 | x_libraries=NONE |
| 501 | |
| 502 | # Installation directory options. |
| 503 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 504 | # and all the variables that are supposed to be based on exec_prefix |
| 505 | # by default will actually change. |
| 506 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 507 | bindir='${exec_prefix}/bin' |
| 508 | sbindir='${exec_prefix}/sbin' |
| 509 | libexecdir='${exec_prefix}/libexec' |
| 510 | datadir='${prefix}/share' |
| 511 | sysconfdir='${prefix}/etc' |
| 512 | sharedstatedir='${prefix}/com' |
| 513 | localstatedir='${prefix}/var' |
| 514 | libdir='${exec_prefix}/lib' |
| 515 | includedir='${prefix}/include' |
| 516 | oldincludedir='/usr/include' |
| 517 | infodir='${prefix}/info' |
| 518 | mandir='${prefix}/man' |
| 519 | |
| 520 | ac_prev= |
| 521 | for ac_option |
| 522 | do |
| 523 | # If the previous option needs an argument, assign it. |
| 524 | if test -n "$ac_prev"; then |
| 525 | eval "$ac_prev=\$ac_option" |
| 526 | ac_prev= |
| 527 | continue |
| 528 | fi |
| 529 | |
| 530 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 531 | |
| 532 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 533 | |
| 534 | case $ac_option in |
| 535 | |
| 536 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 537 | ac_prev=bindir ;; |
| 538 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 539 | bindir=$ac_optarg ;; |
| 540 | |
| 541 | -build | --build | --buil | --bui | --bu) |
| 542 | ac_prev=build_alias ;; |
| 543 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 544 | build_alias=$ac_optarg ;; |
| 545 | |
| 546 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 547 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 548 | ac_prev=cache_file ;; |
| 549 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 550 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 551 | cache_file=$ac_optarg ;; |
| 552 | |
| 553 | --config-cache | -C) |
| 554 | cache_file=config.cache ;; |
| 555 | |
| 556 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 557 | ac_prev=datadir ;; |
| 558 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 559 | | --da=*) |
| 560 | datadir=$ac_optarg ;; |
| 561 | |
| 562 | -disable-* | --disable-*) |
| 563 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 564 | # Reject names that are not valid shell variable names. |
| 565 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 566 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 567 | { (exit 1); exit 1; }; } |
| 568 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 569 | eval "enable_$ac_feature=no" ;; |
| 570 | |
| 571 | -enable-* | --enable-*) |
| 572 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 573 | # Reject names that are not valid shell variable names. |
| 574 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 575 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 576 | { (exit 1); exit 1; }; } |
| 577 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 578 | case $ac_option in |
| 579 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 580 | *) ac_optarg=yes ;; |
| 581 | esac |
| 582 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 583 | |
| 584 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 585 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 586 | | --exec | --exe | --ex) |
| 587 | ac_prev=exec_prefix ;; |
| 588 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 589 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 590 | | --exec=* | --exe=* | --ex=*) |
| 591 | exec_prefix=$ac_optarg ;; |
| 592 | |
| 593 | -gas | --gas | --ga | --g) |
| 594 | # Obsolete; use --with-gas. |
| 595 | with_gas=yes ;; |
| 596 | |
| 597 | -help | --help | --hel | --he | -h) |
| 598 | ac_init_help=long ;; |
| 599 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 600 | ac_init_help=recursive ;; |
| 601 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 602 | ac_init_help=short ;; |
| 603 | |
| 604 | -host | --host | --hos | --ho) |
| 605 | ac_prev=host_alias ;; |
| 606 | -host=* | --host=* | --hos=* | --ho=*) |
| 607 | host_alias=$ac_optarg ;; |
| 608 | |
| 609 | -includedir | --includedir | --includedi | --included | --include \ |
| 610 | | --includ | --inclu | --incl | --inc) |
| 611 | ac_prev=includedir ;; |
| 612 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 613 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 614 | includedir=$ac_optarg ;; |
| 615 | |
| 616 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 617 | ac_prev=infodir ;; |
| 618 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 619 | infodir=$ac_optarg ;; |
| 620 | |
| 621 | -libdir | --libdir | --libdi | --libd) |
| 622 | ac_prev=libdir ;; |
| 623 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 624 | libdir=$ac_optarg ;; |
| 625 | |
| 626 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 627 | | --libexe | --libex | --libe) |
| 628 | ac_prev=libexecdir ;; |
| 629 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 630 | | --libexe=* | --libex=* | --libe=*) |
| 631 | libexecdir=$ac_optarg ;; |
| 632 | |
| 633 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 634 | | --localstate | --localstat | --localsta | --localst \ |
| 635 | | --locals | --local | --loca | --loc | --lo) |
| 636 | ac_prev=localstatedir ;; |
| 637 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 638 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 639 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 640 | localstatedir=$ac_optarg ;; |
| 641 | |
| 642 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 643 | ac_prev=mandir ;; |
| 644 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 645 | mandir=$ac_optarg ;; |
| 646 | |
| 647 | -nfp | --nfp | --nf) |
| 648 | # Obsolete; use --without-fp. |
| 649 | with_fp=no ;; |
| 650 | |
| 651 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 652 | | --no-cr | --no-c | -n) |
| 653 | no_create=yes ;; |
| 654 | |
| 655 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 656 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 657 | no_recursion=yes ;; |
| 658 | |
| 659 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 660 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 661 | | --oldin | --oldi | --old | --ol | --o) |
| 662 | ac_prev=oldincludedir ;; |
| 663 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 664 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 665 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 666 | oldincludedir=$ac_optarg ;; |
| 667 | |
| 668 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 669 | ac_prev=prefix ;; |
| 670 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 671 | prefix=$ac_optarg ;; |
| 672 | |
| 673 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 674 | | --program-pre | --program-pr | --program-p) |
| 675 | ac_prev=program_prefix ;; |
| 676 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 677 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 678 | program_prefix=$ac_optarg ;; |
| 679 | |
| 680 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 681 | | --program-suf | --program-su | --program-s) |
| 682 | ac_prev=program_suffix ;; |
| 683 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 684 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 685 | program_suffix=$ac_optarg ;; |
| 686 | |
| 687 | -program-transform-name | --program-transform-name \ |
| 688 | | --program-transform-nam | --program-transform-na \ |
| 689 | | --program-transform-n | --program-transform- \ |
| 690 | | --program-transform | --program-transfor \ |
| 691 | | --program-transfo | --program-transf \ |
| 692 | | --program-trans | --program-tran \ |
| 693 | | --progr-tra | --program-tr | --program-t) |
| 694 | ac_prev=program_transform_name ;; |
| 695 | -program-transform-name=* | --program-transform-name=* \ |
| 696 | | --program-transform-nam=* | --program-transform-na=* \ |
| 697 | | --program-transform-n=* | --program-transform-=* \ |
| 698 | | --program-transform=* | --program-transfor=* \ |
| 699 | | --program-transfo=* | --program-transf=* \ |
| 700 | | --program-trans=* | --program-tran=* \ |
| 701 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 702 | program_transform_name=$ac_optarg ;; |
| 703 | |
| 704 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 705 | | -silent | --silent | --silen | --sile | --sil) |
| 706 | silent=yes ;; |
| 707 | |
| 708 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 709 | ac_prev=sbindir ;; |
| 710 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 711 | | --sbi=* | --sb=*) |
| 712 | sbindir=$ac_optarg ;; |
| 713 | |
| 714 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 715 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 716 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 717 | | --sha | --sh) |
| 718 | ac_prev=sharedstatedir ;; |
| 719 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 720 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 721 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 722 | | --sha=* | --sh=*) |
| 723 | sharedstatedir=$ac_optarg ;; |
| 724 | |
| 725 | -site | --site | --sit) |
| 726 | ac_prev=site ;; |
| 727 | -site=* | --site=* | --sit=*) |
| 728 | site=$ac_optarg ;; |
| 729 | |
| 730 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 731 | ac_prev=srcdir ;; |
| 732 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 733 | srcdir=$ac_optarg ;; |
| 734 | |
| 735 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 736 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 737 | ac_prev=sysconfdir ;; |
| 738 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 739 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 740 | sysconfdir=$ac_optarg ;; |
| 741 | |
| 742 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 743 | ac_prev=target_alias ;; |
| 744 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 745 | target_alias=$ac_optarg ;; |
| 746 | |
| 747 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 748 | verbose=yes ;; |
| 749 | |
| 750 | -version | --version | --versio | --versi | --vers | -V) |
| 751 | ac_init_version=: ;; |
| 752 | |
| 753 | -with-* | --with-*) |
| 754 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 755 | # Reject names that are not valid shell variable names. |
| 756 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 757 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 758 | { (exit 1); exit 1; }; } |
| 759 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 760 | case $ac_option in |
| 761 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 762 | *) ac_optarg=yes ;; |
| 763 | esac |
| 764 | eval "with_$ac_package='$ac_optarg'" ;; |
| 765 | |
| 766 | -without-* | --without-*) |
| 767 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 768 | # Reject names that are not valid shell variable names. |
| 769 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 770 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 771 | { (exit 1); exit 1; }; } |
| 772 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 773 | eval "with_$ac_package=no" ;; |
| 774 | |
| 775 | --x) |
| 776 | # Obsolete; use --with-x. |
| 777 | with_x=yes ;; |
| 778 | |
| 779 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 780 | | --x-incl | --x-inc | --x-in | --x-i) |
| 781 | ac_prev=x_includes ;; |
| 782 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 783 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 784 | x_includes=$ac_optarg ;; |
| 785 | |
| 786 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 787 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 788 | ac_prev=x_libraries ;; |
| 789 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 790 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 791 | x_libraries=$ac_optarg ;; |
| 792 | |
| 793 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 794 | Try \`$0 --help' for more information." >&2 |
| 795 | { (exit 1); exit 1; }; } |
| 796 | ;; |
| 797 | |
| 798 | *=*) |
| 799 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 800 | # Reject names that are not valid shell variable names. |
| 801 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 802 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 803 | { (exit 1); exit 1; }; } |
| 804 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 805 | eval "$ac_envvar='$ac_optarg'" |
| 806 | export $ac_envvar ;; |
| 807 | |
| 808 | *) |
| 809 | # FIXME: should be removed in autoconf 3.0. |
| 810 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 811 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 812 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 813 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 814 | ;; |
| 815 | |
| 816 | esac |
| 817 | done |
| 818 | |
| 819 | if test -n "$ac_prev"; then |
| 820 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 821 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 822 | { (exit 1); exit 1; }; } |
| 823 | fi |
| 824 | |
| 825 | # Be sure to have absolute paths. |
| 826 | for ac_var in exec_prefix prefix |
| 827 | do |
| 828 | eval ac_val=$`echo $ac_var` |
| 829 | case $ac_val in |
| 830 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 831 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 832 | { (exit 1); exit 1; }; };; |
| 833 | esac |
| 834 | done |
| 835 | |
| 836 | # Be sure to have absolute paths. |
| 837 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 838 | localstatedir libdir includedir oldincludedir infodir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 839 | do |
| 840 | eval ac_val=$`echo $ac_var` |
| 841 | case $ac_val in |
| 842 | [\\/$]* | ?:[\\/]* ) ;; |
| 843 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 844 | { (exit 1); exit 1; }; };; |
| 845 | esac |
| 846 | done |
| 847 | |
| 848 | # There might be people who depend on the old broken behavior: `$host' |
| 849 | # used to hold the argument of --host etc. |
| 850 | # FIXME: To remove some day. |
| 851 | build=$build_alias |
| 852 | host=$host_alias |
| 853 | target=$target_alias |
| 854 | |
| 855 | # FIXME: To remove some day. |
| 856 | if test "x$host_alias" != x; then |
| 857 | if test "x$build_alias" = x; then |
| 858 | cross_compiling=maybe |
| 859 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 860 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 861 | elif test "x$build_alias" != "x$host_alias"; then |
| 862 | cross_compiling=yes |
| 863 | fi |
| 864 | fi |
| 865 | |
| 866 | ac_tool_prefix= |
| 867 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 868 | |
| 869 | test "$silent" = yes && exec 6>/dev/null |
| 870 | |
| 871 | |
| 872 | # Find the source files, if location was not specified. |
| 873 | if test -z "$srcdir"; then |
| 874 | ac_srcdir_defaulted=yes |
| 875 | # Try the directory containing this script, then its parent. |
| 876 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 877 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 878 | X"$0" : 'X\(//\)[^/]' \| \ |
| 879 | X"$0" : 'X\(//\)$' \| \ |
| 880 | X"$0" : 'X\(/\)' \| \ |
| 881 | . : '\(.\)' 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 882 | echo X"$0" | |
| 883 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 884 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 885 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 886 | /^X\(\/\).*/{ s//\1/; q; } |
| 887 | s/.*/./; q'` |
| 888 | srcdir=$ac_confdir |
| 889 | if test ! -r $srcdir/$ac_unique_file; then |
| 890 | srcdir=.. |
| 891 | fi |
| 892 | else |
| 893 | ac_srcdir_defaulted=no |
| 894 | fi |
| 895 | if test ! -r $srcdir/$ac_unique_file; then |
| 896 | if test "$ac_srcdir_defaulted" = yes; then |
| 897 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 898 | { (exit 1); exit 1; }; } |
| 899 | else |
| 900 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 901 | { (exit 1); exit 1; }; } |
| 902 | fi |
| 903 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 904 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 905 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 906 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 907 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 908 | ac_env_build_alias_set=${build_alias+set} |
| 909 | ac_env_build_alias_value=$build_alias |
| 910 | ac_cv_env_build_alias_set=${build_alias+set} |
| 911 | ac_cv_env_build_alias_value=$build_alias |
| 912 | ac_env_host_alias_set=${host_alias+set} |
| 913 | ac_env_host_alias_value=$host_alias |
| 914 | ac_cv_env_host_alias_set=${host_alias+set} |
| 915 | ac_cv_env_host_alias_value=$host_alias |
| 916 | ac_env_target_alias_set=${target_alias+set} |
| 917 | ac_env_target_alias_value=$target_alias |
| 918 | ac_cv_env_target_alias_set=${target_alias+set} |
| 919 | ac_cv_env_target_alias_value=$target_alias |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 920 | ac_env_CC_set=${CC+set} |
| 921 | ac_env_CC_value=$CC |
| 922 | ac_cv_env_CC_set=${CC+set} |
| 923 | ac_cv_env_CC_value=$CC |
| 924 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 925 | ac_env_CFLAGS_value=$CFLAGS |
| 926 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 927 | ac_cv_env_CFLAGS_value=$CFLAGS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 928 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 929 | ac_env_LDFLAGS_value=$LDFLAGS |
| 930 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 931 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 932 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 933 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 934 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 935 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 936 | ac_env_CPP_set=${CPP+set} |
| 937 | ac_env_CPP_value=$CPP |
| 938 | ac_cv_env_CPP_set=${CPP+set} |
| 939 | ac_cv_env_CPP_value=$CPP |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 940 | ac_env_CXX_set=${CXX+set} |
| 941 | ac_env_CXX_value=$CXX |
| 942 | ac_cv_env_CXX_set=${CXX+set} |
| 943 | ac_cv_env_CXX_value=$CXX |
| 944 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 945 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 946 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 947 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 948 | ac_env_CXXCPP_set=${CXXCPP+set} |
| 949 | ac_env_CXXCPP_value=$CXXCPP |
| 950 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
| 951 | ac_cv_env_CXXCPP_value=$CXXCPP |
| 952 | ac_env_F77_set=${F77+set} |
| 953 | ac_env_F77_value=$F77 |
| 954 | ac_cv_env_F77_set=${F77+set} |
| 955 | ac_cv_env_F77_value=$F77 |
| 956 | ac_env_FFLAGS_set=${FFLAGS+set} |
| 957 | ac_env_FFLAGS_value=$FFLAGS |
| 958 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
| 959 | ac_cv_env_FFLAGS_value=$FFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 960 | |
| 961 | # |
| 962 | # Report the --help message. |
| 963 | # |
| 964 | if test "$ac_init_help" = "long"; then |
| 965 | # Omit some internal or obsolete options to make the list less imposing. |
| 966 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 967 | cat <<_ACEOF |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 968 | \`configure' configures llvm 1.4 to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 969 | |
| 970 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 971 | |
| 972 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 973 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 974 | |
| 975 | Defaults for the options are specified in brackets. |
| 976 | |
| 977 | Configuration: |
| 978 | -h, --help display this help and exit |
| 979 | --help=short display options specific to this package |
| 980 | --help=recursive display the short help of all the included packages |
| 981 | -V, --version display version information and exit |
| 982 | -q, --quiet, --silent do not print \`checking...' messages |
| 983 | --cache-file=FILE cache test results in FILE [disabled] |
| 984 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 985 | -n, --no-create do not create output files |
| 986 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 987 | |
| 988 | _ACEOF |
| 989 | |
| 990 | cat <<_ACEOF |
| 991 | Installation directories: |
| 992 | --prefix=PREFIX install architecture-independent files in PREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 993 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 994 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 995 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 996 | |
| 997 | By default, \`make install' will install all the files in |
| 998 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 999 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1000 | for instance \`--prefix=\$HOME'. |
| 1001 | |
| 1002 | For better control, use the options below. |
| 1003 | |
| 1004 | Fine tuning of the installation directories: |
| 1005 | --bindir=DIR user executables [EPREFIX/bin] |
| 1006 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1007 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1008 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 1009 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1010 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1011 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1012 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1013 | --includedir=DIR C header files [PREFIX/include] |
| 1014 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1015 | --infodir=DIR info documentation [PREFIX/info] |
| 1016 | --mandir=DIR man documentation [PREFIX/man] |
| 1017 | _ACEOF |
| 1018 | |
| 1019 | cat <<\_ACEOF |
| 1020 | |
| 1021 | System types: |
| 1022 | --build=BUILD configure for building on BUILD [guessed] |
| 1023 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1024 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1025 | _ACEOF |
| 1026 | fi |
| 1027 | |
| 1028 | if test -n "$ac_init_help"; then |
| 1029 | case $ac_init_help in |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 1030 | short | recursive ) echo "Configuration of llvm 1.4:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1031 | esac |
| 1032 | cat <<\_ACEOF |
| 1033 | |
| 1034 | Optional Features: |
| 1035 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1036 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1037 | --enable-optimized |
| 1038 | --enable-jit Enable Just In Time Compiling (default is YES) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1039 | --enable-shared[=PKGS] |
| 1040 | build shared libraries [default=yes] |
| 1041 | --enable-static[=PKGS] |
| 1042 | build static libraries [default=yes] |
| 1043 | --enable-fast-install[=PKGS] |
| 1044 | optimize for fast installation [default=yes] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1045 | --disable-libtool-lock avoid locking (might break parallel builds) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1046 | |
| 1047 | Optional Packages: |
| 1048 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1049 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1050 | --with-llvmgccdir Location of LLVM GCC front-end |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1051 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1052 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1053 | both] |
| 1054 | --with-tags[=TAGS] |
| 1055 | include additional configurations [automatic] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1056 | |
| 1057 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1058 | CC C compiler command |
| 1059 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1060 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1061 | nonstandard directory <lib dir> |
| 1062 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1063 | headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1064 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1065 | CXX C++ compiler command |
| 1066 | CXXFLAGS C++ compiler flags |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1067 | CXXCPP C++ preprocessor |
| 1068 | F77 Fortran 77 compiler command |
| 1069 | FFLAGS Fortran 77 compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1070 | |
| 1071 | Use these variables to override the choices made by `configure' or to help |
| 1072 | it to find libraries and programs with nonstandard names/locations. |
| 1073 | |
| 1074 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1075 | _ACEOF |
| 1076 | fi |
| 1077 | |
| 1078 | if test "$ac_init_help" = "recursive"; then |
| 1079 | # If there are subdirs, report their specific --help. |
| 1080 | ac_popdir=`pwd` |
| 1081 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1082 | test -d $ac_dir || continue |
| 1083 | ac_builddir=. |
| 1084 | |
| 1085 | if test "$ac_dir" != .; then |
| 1086 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1087 | # A "../" for each directory in $ac_dir_suffix. |
| 1088 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1089 | else |
| 1090 | ac_dir_suffix= ac_top_builddir= |
| 1091 | fi |
| 1092 | |
| 1093 | case $srcdir in |
| 1094 | .) # No --srcdir option. We are building in place. |
| 1095 | ac_srcdir=. |
| 1096 | if test -z "$ac_top_builddir"; then |
| 1097 | ac_top_srcdir=. |
| 1098 | else |
| 1099 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1100 | fi ;; |
| 1101 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1102 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1103 | ac_top_srcdir=$srcdir ;; |
| 1104 | *) # Relative path. |
| 1105 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1106 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1107 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1108 | |
| 1109 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 1110 | # the directories may not exist. |
| 1111 | case `pwd` in |
| 1112 | .) ac_abs_builddir="$ac_dir";; |
| 1113 | *) |
| 1114 | case "$ac_dir" in |
| 1115 | .) ac_abs_builddir=`pwd`;; |
| 1116 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 1117 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 1118 | esac;; |
| 1119 | esac |
| 1120 | case $ac_abs_builddir in |
| 1121 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1122 | *) |
| 1123 | case ${ac_top_builddir}. in |
| 1124 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 1125 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1126 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 1127 | esac;; |
| 1128 | esac |
| 1129 | case $ac_abs_builddir in |
| 1130 | .) ac_abs_srcdir=$ac_srcdir;; |
| 1131 | *) |
| 1132 | case $ac_srcdir in |
| 1133 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 1134 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 1135 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 1136 | esac;; |
| 1137 | esac |
| 1138 | case $ac_abs_builddir in |
| 1139 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1140 | *) |
| 1141 | case $ac_top_srcdir in |
| 1142 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 1143 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1144 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 1145 | esac;; |
| 1146 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1147 | |
| 1148 | cd $ac_dir |
| 1149 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1150 | if test -f $ac_srcdir/configure.gnu; then |
| 1151 | echo |
| 1152 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1153 | elif test -f $ac_srcdir/configure; then |
| 1154 | echo |
| 1155 | $SHELL $ac_srcdir/configure --help=recursive |
| 1156 | elif test -f $ac_srcdir/configure.ac || |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1157 | test -f $ac_srcdir/configure.in; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1158 | echo |
| 1159 | $ac_configure --help |
| 1160 | else |
| 1161 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1162 | fi |
| 1163 | cd $ac_popdir |
| 1164 | done |
| 1165 | fi |
| 1166 | |
| 1167 | test -n "$ac_init_help" && exit 0 |
| 1168 | if $ac_init_version; then |
| 1169 | cat <<\_ACEOF |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 1170 | llvm configure 1.4 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1171 | generated by GNU Autoconf 2.59 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1172 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1173 | Copyright (C) 2003 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1174 | This configure script is free software; the Free Software Foundation |
| 1175 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1176 | |
| 1177 | $LLVM_COPYRIGHT |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1178 | _ACEOF |
| 1179 | exit 0 |
| 1180 | fi |
| 1181 | exec 5>config.log |
| 1182 | cat >&5 <<_ACEOF |
| 1183 | This file contains any messages produced by compilers while |
| 1184 | running configure, to aid debugging if configure makes a mistake. |
| 1185 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 1186 | It was created by llvm $as_me 1.4, which was |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1187 | generated by GNU Autoconf 2.59. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1188 | |
| 1189 | $ $0 $@ |
| 1190 | |
| 1191 | _ACEOF |
| 1192 | { |
| 1193 | cat <<_ASUNAME |
| 1194 | ## --------- ## |
| 1195 | ## Platform. ## |
| 1196 | ## --------- ## |
| 1197 | |
| 1198 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1199 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1200 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1201 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1202 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1203 | |
| 1204 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1205 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1206 | |
| 1207 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1208 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1209 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1210 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1211 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1212 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1213 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1214 | |
| 1215 | _ASUNAME |
| 1216 | |
| 1217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1218 | for as_dir in $PATH |
| 1219 | do |
| 1220 | IFS=$as_save_IFS |
| 1221 | test -z "$as_dir" && as_dir=. |
| 1222 | echo "PATH: $as_dir" |
| 1223 | done |
| 1224 | |
| 1225 | } >&5 |
| 1226 | |
| 1227 | cat >&5 <<_ACEOF |
| 1228 | |
| 1229 | |
| 1230 | ## ----------- ## |
| 1231 | ## Core tests. ## |
| 1232 | ## ----------- ## |
| 1233 | |
| 1234 | _ACEOF |
| 1235 | |
| 1236 | |
| 1237 | # Keep a trace of the command line. |
| 1238 | # 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] | 1239 | # 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] | 1240 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1241 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1242 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1243 | ac_configure_args0= |
| 1244 | ac_configure_args1= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1245 | ac_sep= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1246 | ac_must_keep_next=false |
| 1247 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1248 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1249 | for ac_arg |
| 1250 | do |
| 1251 | case $ac_arg in |
| 1252 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1253 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1254 | | -silent | --silent | --silen | --sile | --sil) |
| 1255 | continue ;; |
| 1256 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1257 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1258 | esac |
| 1259 | case $ac_pass in |
| 1260 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1261 | 2) |
| 1262 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1263 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1264 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1265 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1266 | case $ac_arg in |
| 1267 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1268 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1269 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1270 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1271 | case "$ac_configure_args0 " in |
| 1272 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1273 | esac |
| 1274 | ;; |
| 1275 | -* ) ac_must_keep_next=true ;; |
| 1276 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1277 | fi |
| 1278 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1279 | # Get rid of the leading space. |
| 1280 | ac_sep=" " |
| 1281 | ;; |
| 1282 | esac |
| 1283 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1284 | done |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1285 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1286 | $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] | 1287 | |
| 1288 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1289 | # config.log. We remove comments because anyway the quotes in there |
| 1290 | # would cause problems or look ugly. |
| 1291 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1292 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1293 | trap 'exit_status=$? |
| 1294 | # Save into config.log some information that might help in debugging. |
| 1295 | { |
| 1296 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1297 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1298 | cat <<\_ASBOX |
| 1299 | ## ---------------- ## |
| 1300 | ## Cache variables. ## |
| 1301 | ## ---------------- ## |
| 1302 | _ASBOX |
| 1303 | echo |
| 1304 | # The following way of writing the cache mishandles newlines in values, |
| 1305 | { |
| 1306 | (set) 2>&1 | |
| 1307 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1308 | *ac_space=\ *) |
| 1309 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1310 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1311 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1312 | ;; |
| 1313 | *) |
| 1314 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1315 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1316 | ;; |
| 1317 | esac; |
| 1318 | } |
| 1319 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1320 | |
| 1321 | cat <<\_ASBOX |
| 1322 | ## ----------------- ## |
| 1323 | ## Output variables. ## |
| 1324 | ## ----------------- ## |
| 1325 | _ASBOX |
| 1326 | echo |
| 1327 | for ac_var in $ac_subst_vars |
| 1328 | do |
| 1329 | eval ac_val=$`echo $ac_var` |
| 1330 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1331 | done | sort |
| 1332 | echo |
| 1333 | |
| 1334 | if test -n "$ac_subst_files"; then |
| 1335 | cat <<\_ASBOX |
| 1336 | ## ------------- ## |
| 1337 | ## Output files. ## |
| 1338 | ## ------------- ## |
| 1339 | _ASBOX |
| 1340 | echo |
| 1341 | for ac_var in $ac_subst_files |
| 1342 | do |
| 1343 | eval ac_val=$`echo $ac_var` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1344 | echo "$ac_var='"'"'$ac_val'"'"'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1345 | done | sort |
| 1346 | echo |
| 1347 | fi |
| 1348 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1349 | if test -s confdefs.h; then |
| 1350 | cat <<\_ASBOX |
| 1351 | ## ----------- ## |
| 1352 | ## confdefs.h. ## |
| 1353 | ## ----------- ## |
| 1354 | _ASBOX |
| 1355 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1356 | sed "/^$/d" confdefs.h | sort |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1357 | echo |
| 1358 | fi |
| 1359 | test "$ac_signal" != 0 && |
| 1360 | echo "$as_me: caught signal $ac_signal" |
| 1361 | echo "$as_me: exit $exit_status" |
| 1362 | } >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1363 | rm -f core *.core && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1364 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1365 | exit $exit_status |
| 1366 | ' 0 |
| 1367 | for ac_signal in 1 2 13 15; do |
| 1368 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1369 | done |
| 1370 | ac_signal=0 |
| 1371 | |
| 1372 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1373 | rm -rf conftest* confdefs.h |
| 1374 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1375 | echo >confdefs.h |
| 1376 | |
| 1377 | # Predefined preprocessor variables. |
| 1378 | |
| 1379 | cat >>confdefs.h <<_ACEOF |
| 1380 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1381 | _ACEOF |
| 1382 | |
| 1383 | |
| 1384 | cat >>confdefs.h <<_ACEOF |
| 1385 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1386 | _ACEOF |
| 1387 | |
| 1388 | |
| 1389 | cat >>confdefs.h <<_ACEOF |
| 1390 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1391 | _ACEOF |
| 1392 | |
| 1393 | |
| 1394 | cat >>confdefs.h <<_ACEOF |
| 1395 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1396 | _ACEOF |
| 1397 | |
| 1398 | |
| 1399 | cat >>confdefs.h <<_ACEOF |
| 1400 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1401 | _ACEOF |
| 1402 | |
| 1403 | |
| 1404 | # Let the site file select an alternate cache file if it wants to. |
| 1405 | # Prefer explicitly selected file to automatically selected ones. |
| 1406 | if test -z "$CONFIG_SITE"; then |
| 1407 | if test "x$prefix" != xNONE; then |
| 1408 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1409 | else |
| 1410 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1411 | fi |
| 1412 | fi |
| 1413 | for ac_site_file in $CONFIG_SITE; do |
| 1414 | if test -r "$ac_site_file"; then |
| 1415 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1416 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1417 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1418 | . "$ac_site_file" |
| 1419 | fi |
| 1420 | done |
| 1421 | |
| 1422 | if test -r "$cache_file"; then |
| 1423 | # Some versions of bash will fail to source /dev/null (special |
| 1424 | # files actually), so we avoid doing that. |
| 1425 | if test -f "$cache_file"; then |
| 1426 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1427 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1428 | case $cache_file in |
| 1429 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1430 | *) . ./$cache_file;; |
| 1431 | esac |
| 1432 | fi |
| 1433 | else |
| 1434 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1435 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1436 | >$cache_file |
| 1437 | fi |
| 1438 | |
| 1439 | # Check that the precious variables saved in the cache have kept the same |
| 1440 | # value. |
| 1441 | ac_cache_corrupted=false |
| 1442 | for ac_var in `(set) 2>&1 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1443 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1444 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1445 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1446 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1447 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1448 | case $ac_old_set,$ac_new_set in |
| 1449 | set,) |
| 1450 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1451 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1452 | ac_cache_corrupted=: ;; |
| 1453 | ,set) |
| 1454 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1455 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1456 | ac_cache_corrupted=: ;; |
| 1457 | ,);; |
| 1458 | *) |
| 1459 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1460 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1461 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1462 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1463 | echo "$as_me: former value: $ac_old_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1464 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1465 | echo "$as_me: current value: $ac_new_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1466 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1467 | fi;; |
| 1468 | esac |
| 1469 | # Pass precious variables to config.status. |
| 1470 | if test "$ac_new_set" = set; then |
| 1471 | case $ac_new_val in |
| 1472 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1473 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1474 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1475 | esac |
| 1476 | case " $ac_configure_args " in |
| 1477 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1478 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1479 | esac |
| 1480 | fi |
| 1481 | done |
| 1482 | if $ac_cache_corrupted; then |
| 1483 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1484 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1485 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1486 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1487 | { (exit 1); exit 1; }; } |
| 1488 | fi |
| 1489 | |
| 1490 | ac_ext=c |
| 1491 | ac_cpp='$CPP $CPPFLAGS' |
| 1492 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1493 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1494 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1495 | |
| 1496 | |
| 1497 | |
| 1498 | |
| 1499 | |
| 1500 | |
| 1501 | |
| 1502 | |
| 1503 | |
| 1504 | |
| 1505 | |
| 1506 | |
| 1507 | |
| 1508 | |
| 1509 | |
| 1510 | |
| 1511 | |
| 1512 | |
| 1513 | |
| 1514 | |
| 1515 | |
| 1516 | |
| 1517 | |
| 1518 | |
| 1519 | |
| 1520 | |
| 1521 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1522 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1523 | LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign." |
| 1524 | |
| 1525 | |
| 1526 | |
| 1527 | |
| 1528 | |
| 1529 | |
| 1530 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1531 | ac_aux_dir= |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1532 | for ac_dir in autoconf $srcdir/autoconf; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1533 | if test -f $ac_dir/install-sh; then |
| 1534 | ac_aux_dir=$ac_dir |
| 1535 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1536 | break |
| 1537 | elif test -f $ac_dir/install.sh; then |
| 1538 | ac_aux_dir=$ac_dir |
| 1539 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1540 | break |
| 1541 | elif test -f $ac_dir/shtool; then |
| 1542 | ac_aux_dir=$ac_dir |
| 1543 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1544 | break |
| 1545 | fi |
| 1546 | done |
| 1547 | if test -z "$ac_aux_dir"; then |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1548 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
| 1549 | 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] | 1550 | { (exit 1); exit 1; }; } |
| 1551 | fi |
| 1552 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1553 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1554 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1555 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1556 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1557 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1558 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
| 1559 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1560 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1561 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1562 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1563 | fi |
| 1564 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1565 | for i in `ls ${srcdir}/projects` |
| 1566 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1567 | if test -d ${srcdir}/projects/${i} ; then |
| 1568 | case ${i} in |
| 1569 | "CVS") ;; |
| 1570 | "sample") |
John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1571 | |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1572 | subdirs="$subdirs projects/sample" |
| 1573 | ;; |
| 1574 | "Stacker") |
John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1575 | |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1576 | subdirs="$subdirs projects/Stacker" |
| 1577 | ;; |
| 1578 | "llvm-test") |
John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1579 | |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1580 | subdirs="$subdirs projects/llvm-test" |
| 1581 | ;; |
| 1582 | "llvm-reopt") |
| 1583 | |
| 1584 | subdirs="$subdirs projects/llvm-reopt" |
| 1585 | ;; |
| 1586 | "llvm-gcc") |
| 1587 | |
| 1588 | subdirs="$subdirs projects/llvm-gcc" |
| 1589 | ;; |
Reid Spencer | 641f7ef | 2004-09-20 22:14:56 +0000 | [diff] [blame] | 1590 | "Java") |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1591 | |
Reid Spencer | 641f7ef | 2004-09-20 22:14:56 +0000 | [diff] [blame] | 1592 | subdirs="$subdirs projects/Java" |
| 1593 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1594 | "llvm-tv") |
| 1595 | |
| 1596 | subdirs="$subdirs projects/llvm-tv" |
| 1597 | ;; |
| 1598 | "llvm-fefw") |
| 1599 | |
| 1600 | subdirs="$subdirs projects/llvm-fefw" |
| 1601 | ;; |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 1602 | "poolalloc") |
| 1603 | |
| 1604 | subdirs="$subdirs projects/poolalloc" |
| 1605 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1606 | *) |
Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 1607 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 1608 | echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 1609 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1610 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1611 | fi |
| 1612 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 1613 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1614 | |
| 1615 | # Make sure we can run config.sub. |
| 1616 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1617 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1618 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1619 | { (exit 1); exit 1; }; } |
| 1620 | |
| 1621 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1622 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1623 | if test "${ac_cv_build+set}" = set; then |
| 1624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1625 | else |
| 1626 | ac_cv_build_alias=$build_alias |
| 1627 | test -z "$ac_cv_build_alias" && |
| 1628 | ac_cv_build_alias=`$ac_config_guess` |
| 1629 | test -z "$ac_cv_build_alias" && |
| 1630 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1631 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1632 | { (exit 1); exit 1; }; } |
| 1633 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1634 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1635 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1636 | { (exit 1); exit 1; }; } |
| 1637 | |
| 1638 | fi |
| 1639 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1640 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1641 | build=$ac_cv_build |
| 1642 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1643 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1644 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1645 | |
| 1646 | |
| 1647 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1648 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1649 | if test "${ac_cv_host+set}" = set; then |
| 1650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1651 | else |
| 1652 | ac_cv_host_alias=$host_alias |
| 1653 | test -z "$ac_cv_host_alias" && |
| 1654 | ac_cv_host_alias=$ac_cv_build_alias |
| 1655 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1656 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1657 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1658 | { (exit 1); exit 1; }; } |
| 1659 | |
| 1660 | fi |
| 1661 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1662 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1663 | host=$ac_cv_host |
| 1664 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1665 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1666 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1667 | |
| 1668 | |
| 1669 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 1670 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 1671 | if test "${ac_cv_target+set}" = set; then |
| 1672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1673 | else |
| 1674 | ac_cv_target_alias=$target_alias |
| 1675 | test "x$ac_cv_target_alias" = "x" && |
| 1676 | ac_cv_target_alias=$ac_cv_host_alias |
| 1677 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 1678 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 1679 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 1680 | { (exit 1); exit 1; }; } |
| 1681 | |
| 1682 | fi |
| 1683 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1684 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 1685 | target=$ac_cv_target |
| 1686 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1687 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1688 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1689 | |
| 1690 | |
| 1691 | # The aliases save the names the user supplied, while $host etc. |
| 1692 | # will get canonicalized. |
| 1693 | test -n "$target_alias" && |
| 1694 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1695 | NONENONEs,x,x, && |
| 1696 | program_prefix=${target_alias}- |
| 1697 | |
Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1698 | echo "$as_me:$LINENO: checking support for generic build operating system" >&5 |
| 1699 | echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1700 | if test "${llvm_cv_platform_type+set}" = set; then |
| 1701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1702 | else |
| 1703 | case $build in |
| 1704 | *-*-aix*) llvm_cv_platform_type="AIX" ;; |
| 1705 | *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;; |
| 1706 | *-*-darwin*) llvm_cv_platform_type="Darwin" ;; |
| 1707 | *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;; |
| 1708 | *-*-interix*) llvm_cv_platform_type="Interix" ;; |
| 1709 | *-*-linux*) llvm_cv_platform_type="Linux" ;; |
| 1710 | *-*-solaris*) llvm_cv_platform_type="SunOS" ;; |
| 1711 | *-*-win32*) llvm_cv_platform_type="Win32" ;; |
| 1712 | *-*-mingw*) llvm_cv_platform_type="Win32" ;; |
| 1713 | *) llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1714 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1715 | fi |
| 1716 | echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5 |
| 1717 | echo "${ECHO_T}$llvm_cv_platform_type" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1718 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1719 | if test "$llvm_cv_platform_type" = "Unknown" ; then |
| 1720 | { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5 |
| 1721 | echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;} |
Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 1722 | { (exit 1); exit 1; }; } |
| 1723 | fi |
| 1724 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1725 | OS=$llvm_cv_platform_type |
| 1726 | |
| 1727 | |
Reid Spencer | edd01b9 | 2004-11-25 06:03:14 +0000 | [diff] [blame] | 1728 | ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type" |
Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1729 | |
| 1730 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1731 | case $target in |
| 1732 | sparc*-*-solaris*) target=sparcv9-sun-solaris2.8 |
| 1733 | |
| 1734 | ;; |
| 1735 | esac |
Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1736 | |
| 1737 | echo "$as_me:$LINENO: checking target architecture" >&5 |
| 1738 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1739 | if test "${llvm_cv_target_arch+set}" = set; then |
| 1740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1741 | else |
| 1742 | case $target in |
| 1743 | i*86-*) llvm_cv_target_arch="x86" ;; |
| 1744 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 1745 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
| 1746 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1747 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1748 | fi |
| 1749 | echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 1750 | echo "${ECHO_T}$llvm_cv_target_arch" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1751 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1752 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 1753 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 1754 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 1755 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1756 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1757 | ARCH=$llvm_cv_target_arch |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1758 | |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1759 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1760 | ac_ext=c |
| 1761 | ac_cpp='$CPP $CPPFLAGS' |
| 1762 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1763 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1764 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1765 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1766 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1767 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1768 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1769 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1770 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1772 | else |
| 1773 | if test -n "$CC"; then |
| 1774 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1775 | else |
| 1776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1777 | for as_dir in $PATH |
| 1778 | do |
| 1779 | IFS=$as_save_IFS |
| 1780 | test -z "$as_dir" && as_dir=. |
| 1781 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1782 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1783 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1784 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1785 | break 2 |
| 1786 | fi |
| 1787 | done |
| 1788 | done |
| 1789 | |
| 1790 | fi |
| 1791 | fi |
| 1792 | CC=$ac_cv_prog_CC |
| 1793 | if test -n "$CC"; then |
| 1794 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1795 | echo "${ECHO_T}$CC" >&6 |
| 1796 | else |
| 1797 | echo "$as_me:$LINENO: result: no" >&5 |
| 1798 | echo "${ECHO_T}no" >&6 |
| 1799 | fi |
| 1800 | |
| 1801 | fi |
| 1802 | if test -z "$ac_cv_prog_CC"; then |
| 1803 | ac_ct_CC=$CC |
| 1804 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1805 | set dummy gcc; ac_word=$2 |
| 1806 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1807 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1808 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1810 | else |
| 1811 | if test -n "$ac_ct_CC"; then |
| 1812 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1813 | else |
| 1814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1815 | for as_dir in $PATH |
| 1816 | do |
| 1817 | IFS=$as_save_IFS |
| 1818 | test -z "$as_dir" && as_dir=. |
| 1819 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1820 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1821 | ac_cv_prog_ac_ct_CC="gcc" |
| 1822 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1823 | break 2 |
| 1824 | fi |
| 1825 | done |
| 1826 | done |
| 1827 | |
| 1828 | fi |
| 1829 | fi |
| 1830 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1831 | if test -n "$ac_ct_CC"; then |
| 1832 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1833 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1834 | else |
| 1835 | echo "$as_me:$LINENO: result: no" >&5 |
| 1836 | echo "${ECHO_T}no" >&6 |
| 1837 | fi |
| 1838 | |
| 1839 | CC=$ac_ct_CC |
| 1840 | else |
| 1841 | CC="$ac_cv_prog_CC" |
| 1842 | fi |
| 1843 | |
| 1844 | if test -z "$CC"; then |
| 1845 | if test -n "$ac_tool_prefix"; then |
| 1846 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1847 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1848 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1849 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1850 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1852 | else |
| 1853 | if test -n "$CC"; then |
| 1854 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1855 | else |
| 1856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1857 | for as_dir in $PATH |
| 1858 | do |
| 1859 | IFS=$as_save_IFS |
| 1860 | test -z "$as_dir" && as_dir=. |
| 1861 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1862 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1863 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1864 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1865 | break 2 |
| 1866 | fi |
| 1867 | done |
| 1868 | done |
| 1869 | |
| 1870 | fi |
| 1871 | fi |
| 1872 | CC=$ac_cv_prog_CC |
| 1873 | if test -n "$CC"; then |
| 1874 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1875 | echo "${ECHO_T}$CC" >&6 |
| 1876 | else |
| 1877 | echo "$as_me:$LINENO: result: no" >&5 |
| 1878 | echo "${ECHO_T}no" >&6 |
| 1879 | fi |
| 1880 | |
| 1881 | fi |
| 1882 | if test -z "$ac_cv_prog_CC"; then |
| 1883 | ac_ct_CC=$CC |
| 1884 | # Extract the first word of "cc", so it can be a program name with args. |
| 1885 | set dummy cc; ac_word=$2 |
| 1886 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1887 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1888 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1890 | else |
| 1891 | if test -n "$ac_ct_CC"; then |
| 1892 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1893 | else |
| 1894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1895 | for as_dir in $PATH |
| 1896 | do |
| 1897 | IFS=$as_save_IFS |
| 1898 | test -z "$as_dir" && as_dir=. |
| 1899 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1900 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1901 | ac_cv_prog_ac_ct_CC="cc" |
| 1902 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1903 | break 2 |
| 1904 | fi |
| 1905 | done |
| 1906 | done |
| 1907 | |
| 1908 | fi |
| 1909 | fi |
| 1910 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1911 | if test -n "$ac_ct_CC"; then |
| 1912 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1913 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1914 | else |
| 1915 | echo "$as_me:$LINENO: result: no" >&5 |
| 1916 | echo "${ECHO_T}no" >&6 |
| 1917 | fi |
| 1918 | |
| 1919 | CC=$ac_ct_CC |
| 1920 | else |
| 1921 | CC="$ac_cv_prog_CC" |
| 1922 | fi |
| 1923 | |
| 1924 | fi |
| 1925 | if test -z "$CC"; then |
| 1926 | # Extract the first word of "cc", so it can be a program name with args. |
| 1927 | set dummy cc; ac_word=$2 |
| 1928 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1929 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1930 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1932 | else |
| 1933 | if test -n "$CC"; then |
| 1934 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1935 | else |
| 1936 | ac_prog_rejected=no |
| 1937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1938 | for as_dir in $PATH |
| 1939 | do |
| 1940 | IFS=$as_save_IFS |
| 1941 | test -z "$as_dir" && as_dir=. |
| 1942 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1943 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1944 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1945 | ac_prog_rejected=yes |
| 1946 | continue |
| 1947 | fi |
| 1948 | ac_cv_prog_CC="cc" |
| 1949 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1950 | break 2 |
| 1951 | fi |
| 1952 | done |
| 1953 | done |
| 1954 | |
| 1955 | if test $ac_prog_rejected = yes; then |
| 1956 | # We found a bogon in the path, so make sure we never use it. |
| 1957 | set dummy $ac_cv_prog_CC |
| 1958 | shift |
| 1959 | if test $# != 0; then |
| 1960 | # We chose a different compiler from the bogus one. |
| 1961 | # However, it has the same basename, so the bogon will be chosen |
| 1962 | # first if we set CC to just the basename; use the full file name. |
| 1963 | shift |
| 1964 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 1965 | fi |
| 1966 | fi |
| 1967 | fi |
| 1968 | fi |
| 1969 | CC=$ac_cv_prog_CC |
| 1970 | if test -n "$CC"; then |
| 1971 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1972 | echo "${ECHO_T}$CC" >&6 |
| 1973 | else |
| 1974 | echo "$as_me:$LINENO: result: no" >&5 |
| 1975 | echo "${ECHO_T}no" >&6 |
| 1976 | fi |
| 1977 | |
| 1978 | fi |
| 1979 | if test -z "$CC"; then |
| 1980 | if test -n "$ac_tool_prefix"; then |
| 1981 | for ac_prog in cl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1982 | do |
| 1983 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1984 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1985 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1986 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1987 | if test "${ac_cv_prog_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1989 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1990 | if test -n "$CC"; then |
| 1991 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1992 | else |
| 1993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1994 | for as_dir in $PATH |
| 1995 | do |
| 1996 | IFS=$as_save_IFS |
| 1997 | test -z "$as_dir" && as_dir=. |
| 1998 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1999 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2000 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2001 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2002 | break 2 |
| 2003 | fi |
| 2004 | done |
| 2005 | done |
| 2006 | |
| 2007 | fi |
| 2008 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2009 | CC=$ac_cv_prog_CC |
| 2010 | if test -n "$CC"; then |
| 2011 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2012 | echo "${ECHO_T}$CC" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2013 | else |
| 2014 | echo "$as_me:$LINENO: result: no" >&5 |
| 2015 | echo "${ECHO_T}no" >&6 |
| 2016 | fi |
| 2017 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2018 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2019 | done |
| 2020 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2021 | if test -z "$CC"; then |
| 2022 | ac_ct_CC=$CC |
| 2023 | for ac_prog in cl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2024 | do |
| 2025 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2026 | set dummy $ac_prog; ac_word=$2 |
| 2027 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2028 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2029 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2031 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2032 | if test -n "$ac_ct_CC"; then |
| 2033 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2034 | else |
| 2035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2036 | for as_dir in $PATH |
| 2037 | do |
| 2038 | IFS=$as_save_IFS |
| 2039 | test -z "$as_dir" && as_dir=. |
| 2040 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2041 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2042 | ac_cv_prog_ac_ct_CC="$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2043 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2044 | break 2 |
| 2045 | fi |
| 2046 | done |
| 2047 | done |
| 2048 | |
| 2049 | fi |
| 2050 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2051 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2052 | if test -n "$ac_ct_CC"; then |
| 2053 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2054 | echo "${ECHO_T}$ac_ct_CC" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2055 | else |
| 2056 | echo "$as_me:$LINENO: result: no" >&5 |
| 2057 | echo "${ECHO_T}no" >&6 |
| 2058 | fi |
| 2059 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2060 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2061 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2062 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2063 | CC=$ac_ct_CC |
| 2064 | fi |
| 2065 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2066 | fi |
| 2067 | |
| 2068 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2069 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2070 | See \`config.log' for more details." >&5 |
| 2071 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2072 | See \`config.log' for more details." >&2;} |
| 2073 | { (exit 1); exit 1; }; } |
| 2074 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2075 | # Provide some information about the compiler. |
| 2076 | echo "$as_me:$LINENO:" \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2077 | "checking for C compiler version" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2078 | ac_compiler=`set X $ac_compile; echo $2` |
| 2079 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2080 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2081 | ac_status=$? |
| 2082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2083 | (exit $ac_status); } |
| 2084 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2085 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2086 | ac_status=$? |
| 2087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2088 | (exit $ac_status); } |
| 2089 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2090 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2091 | ac_status=$? |
| 2092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2093 | (exit $ac_status); } |
| 2094 | |
| 2095 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2096 | /* confdefs.h. */ |
| 2097 | _ACEOF |
| 2098 | cat confdefs.h >>conftest.$ac_ext |
| 2099 | cat >>conftest.$ac_ext <<_ACEOF |
| 2100 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2101 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2102 | int |
| 2103 | main () |
| 2104 | { |
| 2105 | |
| 2106 | ; |
| 2107 | return 0; |
| 2108 | } |
| 2109 | _ACEOF |
| 2110 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2111 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2112 | # Try to create an executable without -o first, disregard a.out. |
| 2113 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2114 | # of exeext. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2115 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2116 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2117 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2118 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2119 | (eval $ac_link_default) 2>&5 |
| 2120 | ac_status=$? |
| 2121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2122 | (exit $ac_status); }; then |
| 2123 | # Find the output, starting from the most likely. This scheme is |
| 2124 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2125 | # resort. |
| 2126 | |
| 2127 | # Be careful to initialize this variable, since it used to be cached. |
| 2128 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2129 | ac_cv_exeext= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2130 | # b.out is created by i960 compilers. |
| 2131 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2132 | do |
| 2133 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2134 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2135 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2136 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2137 | conftest.$ac_ext ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2138 | # This is the source file. |
| 2139 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2140 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2141 | # We found the default executable, but exeext='' is most |
| 2142 | # certainly right. |
| 2143 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2144 | *.* ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2145 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2146 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2147 | # but it would be cool to find out if it's true. Does anybody |
| 2148 | # maintain Libtool? --akim. |
| 2149 | export ac_cv_exeext |
| 2150 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2151 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2152 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2153 | esac |
| 2154 | done |
| 2155 | else |
| 2156 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2158 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2159 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2160 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2161 | echo "$as_me: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2162 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2163 | { (exit 77); exit 77; }; } |
| 2164 | fi |
| 2165 | |
| 2166 | ac_exeext=$ac_cv_exeext |
| 2167 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2168 | echo "${ECHO_T}$ac_file" >&6 |
| 2169 | |
| 2170 | # Check the compiler produces executables we can run. If not, either |
| 2171 | # the compiler is broken, or we cross compile. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2172 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2173 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2174 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2175 | # If not cross compiling, check that we can run a simple program. |
| 2176 | if test "$cross_compiling" != yes; then |
| 2177 | if { ac_try='./$ac_file' |
| 2178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2179 | (eval $ac_try) 2>&5 |
| 2180 | ac_status=$? |
| 2181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2182 | (exit $ac_status); }; }; then |
| 2183 | cross_compiling=no |
| 2184 | else |
| 2185 | if test "$cross_compiling" = maybe; then |
| 2186 | cross_compiling=yes |
| 2187 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2188 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2189 | If you meant to cross compile, use \`--host'. |
| 2190 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2191 | echo "$as_me: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2192 | If you meant to cross compile, use \`--host'. |
| 2193 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2194 | { (exit 1); exit 1; }; } |
| 2195 | fi |
| 2196 | fi |
| 2197 | fi |
| 2198 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2199 | echo "${ECHO_T}yes" >&6 |
| 2200 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2201 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2202 | ac_clean_files=$ac_clean_files_save |
| 2203 | # Check the compiler produces executables we can run. If not, either |
| 2204 | # the compiler is broken, or we cross compile. |
| 2205 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2206 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2207 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2208 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2209 | |
| 2210 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2211 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2212 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2213 | (eval $ac_link) 2>&5 |
| 2214 | ac_status=$? |
| 2215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2216 | (exit $ac_status); }; then |
| 2217 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2218 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2219 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2220 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2221 | for ac_file in conftest.exe conftest conftest.*; do |
| 2222 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2223 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2224 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2225 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2226 | export ac_cv_exeext |
| 2227 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2228 | * ) break;; |
| 2229 | esac |
| 2230 | done |
| 2231 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2232 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2233 | See \`config.log' for more details." >&5 |
| 2234 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2235 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2236 | { (exit 1); exit 1; }; } |
| 2237 | fi |
| 2238 | |
| 2239 | rm -f conftest$ac_cv_exeext |
| 2240 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2241 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2242 | |
| 2243 | rm -f conftest.$ac_ext |
| 2244 | EXEEXT=$ac_cv_exeext |
| 2245 | ac_exeext=$EXEEXT |
| 2246 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2247 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2248 | if test "${ac_cv_objext+set}" = set; then |
| 2249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2250 | else |
| 2251 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2252 | /* confdefs.h. */ |
| 2253 | _ACEOF |
| 2254 | cat confdefs.h >>conftest.$ac_ext |
| 2255 | cat >>conftest.$ac_ext <<_ACEOF |
| 2256 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2257 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2258 | int |
| 2259 | main () |
| 2260 | { |
| 2261 | |
| 2262 | ; |
| 2263 | return 0; |
| 2264 | } |
| 2265 | _ACEOF |
| 2266 | rm -f conftest.o conftest.obj |
| 2267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2268 | (eval $ac_compile) 2>&5 |
| 2269 | ac_status=$? |
| 2270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2271 | (exit $ac_status); }; then |
| 2272 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2273 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2274 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2275 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2276 | break;; |
| 2277 | esac |
| 2278 | done |
| 2279 | else |
| 2280 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2282 | |
| 2283 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2284 | See \`config.log' for more details." >&5 |
| 2285 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2286 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2287 | { (exit 1); exit 1; }; } |
| 2288 | fi |
| 2289 | |
| 2290 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2291 | fi |
| 2292 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2293 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2294 | OBJEXT=$ac_cv_objext |
| 2295 | ac_objext=$OBJEXT |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2296 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2297 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2298 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2300 | else |
| 2301 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2302 | /* confdefs.h. */ |
| 2303 | _ACEOF |
| 2304 | cat confdefs.h >>conftest.$ac_ext |
| 2305 | cat >>conftest.$ac_ext <<_ACEOF |
| 2306 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2307 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2308 | int |
| 2309 | main () |
| 2310 | { |
| 2311 | #ifndef __GNUC__ |
| 2312 | choke me |
| 2313 | #endif |
| 2314 | |
| 2315 | ; |
| 2316 | return 0; |
| 2317 | } |
| 2318 | _ACEOF |
| 2319 | rm -f conftest.$ac_objext |
| 2320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2321 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2322 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2323 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2324 | rm -f conftest.er1 |
| 2325 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2327 | (exit $ac_status); } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2328 | { ac_try='test -z "$ac_c_werror_flag" |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2329 | || test ! -s conftest.err' |
| 2330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2331 | (eval $ac_try) 2>&5 |
| 2332 | ac_status=$? |
| 2333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2334 | (exit $ac_status); }; } && |
| 2335 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2337 | (eval $ac_try) 2>&5 |
| 2338 | ac_status=$? |
| 2339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2340 | (exit $ac_status); }; }; then |
| 2341 | ac_compiler_gnu=yes |
| 2342 | else |
| 2343 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2345 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2346 | ac_compiler_gnu=no |
| 2347 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2349 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2350 | |
| 2351 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2352 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2353 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2354 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2355 | ac_test_CFLAGS=${CFLAGS+set} |
| 2356 | ac_save_CFLAGS=$CFLAGS |
| 2357 | CFLAGS="-g" |
| 2358 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2359 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2360 | if test "${ac_cv_prog_cc_g+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2362 | else |
| 2363 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2364 | /* confdefs.h. */ |
| 2365 | _ACEOF |
| 2366 | cat confdefs.h >>conftest.$ac_ext |
| 2367 | cat >>conftest.$ac_ext <<_ACEOF |
| 2368 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2369 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2370 | int |
| 2371 | main () |
| 2372 | { |
| 2373 | |
| 2374 | ; |
| 2375 | return 0; |
| 2376 | } |
| 2377 | _ACEOF |
| 2378 | rm -f conftest.$ac_objext |
| 2379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2380 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2381 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2383 | rm -f conftest.er1 |
| 2384 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2386 | (exit $ac_status); } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2387 | { ac_try='test -z "$ac_c_werror_flag" |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2388 | || test ! -s conftest.err' |
| 2389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2390 | (eval $ac_try) 2>&5 |
| 2391 | ac_status=$? |
| 2392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2393 | (exit $ac_status); }; } && |
| 2394 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2396 | (eval $ac_try) 2>&5 |
| 2397 | ac_status=$? |
| 2398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2399 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2400 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2401 | else |
| 2402 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2404 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2405 | ac_cv_prog_cc_g=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2406 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2407 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2408 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2409 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2410 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2411 | if test "$ac_test_CFLAGS" = set; then |
| 2412 | CFLAGS=$ac_save_CFLAGS |
| 2413 | elif test $ac_cv_prog_cc_g = yes; then |
| 2414 | if test "$GCC" = yes; then |
| 2415 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2416 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2417 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2418 | fi |
| 2419 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2420 | if test "$GCC" = yes; then |
| 2421 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2422 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2423 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2424 | fi |
| 2425 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2426 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2427 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2428 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2430 | else |
| 2431 | ac_cv_prog_cc_stdc=no |
| 2432 | ac_save_CC=$CC |
| 2433 | cat >conftest.$ac_ext <<_ACEOF |
| 2434 | /* confdefs.h. */ |
| 2435 | _ACEOF |
| 2436 | cat confdefs.h >>conftest.$ac_ext |
| 2437 | cat >>conftest.$ac_ext <<_ACEOF |
| 2438 | /* end confdefs.h. */ |
| 2439 | #include <stdarg.h> |
| 2440 | #include <stdio.h> |
| 2441 | #include <sys/types.h> |
| 2442 | #include <sys/stat.h> |
| 2443 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2444 | struct buf { int x; }; |
| 2445 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2446 | static char *e (p, i) |
| 2447 | char **p; |
| 2448 | int i; |
| 2449 | { |
| 2450 | return p[i]; |
| 2451 | } |
| 2452 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2453 | { |
| 2454 | char *s; |
| 2455 | va_list v; |
| 2456 | va_start (v,p); |
| 2457 | s = g (p, va_arg (v,int)); |
| 2458 | va_end (v); |
| 2459 | return s; |
| 2460 | } |
| 2461 | |
| 2462 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2463 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2464 | These don't provoke an error unfortunately, instead are silently treated |
| 2465 | as 'x'. The following induces an error, until -std1 is added to get |
| 2466 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2467 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2468 | that's true only with -std1. */ |
| 2469 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2470 | |
| 2471 | int test (int i, double x); |
| 2472 | struct s1 {int (*f) (int a);}; |
| 2473 | struct s2 {int (*f) (double a);}; |
| 2474 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2475 | int argc; |
| 2476 | char **argv; |
| 2477 | int |
| 2478 | main () |
| 2479 | { |
| 2480 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2481 | ; |
| 2482 | return 0; |
| 2483 | } |
| 2484 | _ACEOF |
| 2485 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2486 | # breaks some systems' header files. |
| 2487 | # AIX -qlanglvl=ansi |
| 2488 | # Ultrix and OSF/1 -std1 |
| 2489 | # HP-UX 10.20 and later -Ae |
| 2490 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2491 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2492 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2493 | do |
| 2494 | CC="$ac_save_CC $ac_arg" |
| 2495 | rm -f conftest.$ac_objext |
| 2496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2497 | (eval $ac_compile) 2>conftest.er1 |
| 2498 | ac_status=$? |
| 2499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2500 | rm -f conftest.er1 |
| 2501 | cat conftest.err >&5 |
| 2502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2503 | (exit $ac_status); } && |
| 2504 | { ac_try='test -z "$ac_c_werror_flag" |
| 2505 | || test ! -s conftest.err' |
| 2506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2507 | (eval $ac_try) 2>&5 |
| 2508 | ac_status=$? |
| 2509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2510 | (exit $ac_status); }; } && |
| 2511 | { ac_try='test -s conftest.$ac_objext' |
| 2512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2513 | (eval $ac_try) 2>&5 |
| 2514 | ac_status=$? |
| 2515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2516 | (exit $ac_status); }; }; then |
| 2517 | ac_cv_prog_cc_stdc=$ac_arg |
| 2518 | break |
| 2519 | else |
| 2520 | echo "$as_me: failed program was:" >&5 |
| 2521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2522 | |
| 2523 | fi |
| 2524 | rm -f conftest.err conftest.$ac_objext |
| 2525 | done |
| 2526 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2527 | CC=$ac_save_CC |
| 2528 | |
| 2529 | fi |
| 2530 | |
| 2531 | case "x$ac_cv_prog_cc_stdc" in |
| 2532 | x|xno) |
| 2533 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2534 | echo "${ECHO_T}none needed" >&6 ;; |
| 2535 | *) |
| 2536 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2537 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2538 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2539 | esac |
| 2540 | |
| 2541 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2542 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2543 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2544 | # the declaration of exit, since it's the most demanding environment. |
| 2545 | cat >conftest.$ac_ext <<_ACEOF |
| 2546 | #ifndef __cplusplus |
| 2547 | choke me |
| 2548 | #endif |
| 2549 | _ACEOF |
| 2550 | rm -f conftest.$ac_objext |
| 2551 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2552 | (eval $ac_compile) 2>conftest.er1 |
| 2553 | ac_status=$? |
| 2554 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2555 | rm -f conftest.er1 |
| 2556 | cat conftest.err >&5 |
| 2557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2558 | (exit $ac_status); } && |
| 2559 | { ac_try='test -z "$ac_c_werror_flag" |
| 2560 | || test ! -s conftest.err' |
| 2561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2562 | (eval $ac_try) 2>&5 |
| 2563 | ac_status=$? |
| 2564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2565 | (exit $ac_status); }; } && |
| 2566 | { ac_try='test -s conftest.$ac_objext' |
| 2567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2568 | (eval $ac_try) 2>&5 |
| 2569 | ac_status=$? |
| 2570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2571 | (exit $ac_status); }; }; then |
| 2572 | for ac_declaration in \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2573 | '' \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2574 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2575 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2576 | 'extern "C" void exit (int) throw ();' \ |
| 2577 | 'extern "C" void exit (int);' \ |
| 2578 | 'void exit (int);' |
| 2579 | do |
| 2580 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2581 | /* confdefs.h. */ |
| 2582 | _ACEOF |
| 2583 | cat confdefs.h >>conftest.$ac_ext |
| 2584 | cat >>conftest.$ac_ext <<_ACEOF |
| 2585 | /* end confdefs.h. */ |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 2586 | $ac_declaration |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2587 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2588 | int |
| 2589 | main () |
| 2590 | { |
| 2591 | exit (42); |
| 2592 | ; |
| 2593 | return 0; |
| 2594 | } |
| 2595 | _ACEOF |
| 2596 | rm -f conftest.$ac_objext |
| 2597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2598 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2599 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2601 | rm -f conftest.er1 |
| 2602 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2604 | (exit $ac_status); } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2605 | { ac_try='test -z "$ac_c_werror_flag" |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2606 | || test ! -s conftest.err' |
| 2607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2608 | (eval $ac_try) 2>&5 |
| 2609 | ac_status=$? |
| 2610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2611 | (exit $ac_status); }; } && |
| 2612 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2614 | (eval $ac_try) 2>&5 |
| 2615 | ac_status=$? |
| 2616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2617 | (exit $ac_status); }; }; then |
| 2618 | : |
| 2619 | else |
| 2620 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2622 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2623 | continue |
| 2624 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2625 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2626 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2627 | /* confdefs.h. */ |
| 2628 | _ACEOF |
| 2629 | cat confdefs.h >>conftest.$ac_ext |
| 2630 | cat >>conftest.$ac_ext <<_ACEOF |
| 2631 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2632 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2633 | int |
| 2634 | main () |
| 2635 | { |
| 2636 | exit (42); |
| 2637 | ; |
| 2638 | return 0; |
| 2639 | } |
| 2640 | _ACEOF |
| 2641 | rm -f conftest.$ac_objext |
| 2642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2643 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2644 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2646 | rm -f conftest.er1 |
| 2647 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2649 | (exit $ac_status); } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2650 | { ac_try='test -z "$ac_c_werror_flag" |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2651 | || test ! -s conftest.err' |
| 2652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2653 | (eval $ac_try) 2>&5 |
| 2654 | ac_status=$? |
| 2655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2656 | (exit $ac_status); }; } && |
| 2657 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2659 | (eval $ac_try) 2>&5 |
| 2660 | ac_status=$? |
| 2661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2662 | (exit $ac_status); }; }; then |
| 2663 | break |
| 2664 | else |
| 2665 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2667 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2668 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2670 | done |
| 2671 | rm -f conftest* |
| 2672 | if test -n "$ac_declaration"; then |
| 2673 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2674 | echo $ac_declaration >>confdefs.h |
| 2675 | echo '#endif' >>confdefs.h |
| 2676 | fi |
| 2677 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2678 | else |
| 2679 | echo "$as_me: failed program was:" >&5 |
| 2680 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2681 | |
| 2682 | fi |
| 2683 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2684 | ac_ext=c |
| 2685 | ac_cpp='$CPP $CPPFLAGS' |
| 2686 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2687 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2688 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2689 | |
| 2690 | |
| 2691 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 2692 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 2693 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 2694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2695 | else |
| 2696 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 2697 | cat >conftest.$ac_ext <<_ACEOF |
| 2698 | /* confdefs.h. */ |
| 2699 | _ACEOF |
| 2700 | cat confdefs.h >>conftest.$ac_ext |
| 2701 | cat >>conftest.$ac_ext <<_ACEOF |
| 2702 | /* end confdefs.h. */ |
| 2703 | #include <sys/types.h> |
| 2704 | #include <sys/param.h> |
| 2705 | |
| 2706 | int |
| 2707 | main () |
| 2708 | { |
| 2709 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 2710 | bogus endian macros |
| 2711 | #endif |
| 2712 | |
| 2713 | ; |
| 2714 | return 0; |
| 2715 | } |
| 2716 | _ACEOF |
| 2717 | rm -f conftest.$ac_objext |
| 2718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2719 | (eval $ac_compile) 2>conftest.er1 |
| 2720 | ac_status=$? |
| 2721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2722 | rm -f conftest.er1 |
| 2723 | cat conftest.err >&5 |
| 2724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2725 | (exit $ac_status); } && |
| 2726 | { ac_try='test -z "$ac_c_werror_flag" |
| 2727 | || test ! -s conftest.err' |
| 2728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2729 | (eval $ac_try) 2>&5 |
| 2730 | ac_status=$? |
| 2731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2732 | (exit $ac_status); }; } && |
| 2733 | { ac_try='test -s conftest.$ac_objext' |
| 2734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2735 | (eval $ac_try) 2>&5 |
| 2736 | ac_status=$? |
| 2737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2738 | (exit $ac_status); }; }; then |
| 2739 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 2740 | cat >conftest.$ac_ext <<_ACEOF |
| 2741 | /* confdefs.h. */ |
| 2742 | _ACEOF |
| 2743 | cat confdefs.h >>conftest.$ac_ext |
| 2744 | cat >>conftest.$ac_ext <<_ACEOF |
| 2745 | /* end confdefs.h. */ |
| 2746 | #include <sys/types.h> |
| 2747 | #include <sys/param.h> |
| 2748 | |
| 2749 | int |
| 2750 | main () |
| 2751 | { |
| 2752 | #if BYTE_ORDER != BIG_ENDIAN |
| 2753 | not big endian |
| 2754 | #endif |
| 2755 | |
| 2756 | ; |
| 2757 | return 0; |
| 2758 | } |
| 2759 | _ACEOF |
| 2760 | rm -f conftest.$ac_objext |
| 2761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2762 | (eval $ac_compile) 2>conftest.er1 |
| 2763 | ac_status=$? |
| 2764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2765 | rm -f conftest.er1 |
| 2766 | cat conftest.err >&5 |
| 2767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2768 | (exit $ac_status); } && |
| 2769 | { ac_try='test -z "$ac_c_werror_flag" |
| 2770 | || test ! -s conftest.err' |
| 2771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2772 | (eval $ac_try) 2>&5 |
| 2773 | ac_status=$? |
| 2774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2775 | (exit $ac_status); }; } && |
| 2776 | { ac_try='test -s conftest.$ac_objext' |
| 2777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2778 | (eval $ac_try) 2>&5 |
| 2779 | ac_status=$? |
| 2780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2781 | (exit $ac_status); }; }; then |
| 2782 | ac_cv_c_bigendian=yes |
| 2783 | else |
| 2784 | echo "$as_me: failed program was:" >&5 |
| 2785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2786 | |
| 2787 | ac_cv_c_bigendian=no |
| 2788 | fi |
| 2789 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2790 | else |
| 2791 | echo "$as_me: failed program was:" >&5 |
| 2792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2793 | |
| 2794 | # It does not; compile a test program. |
| 2795 | if test "$cross_compiling" = yes; then |
| 2796 | # try to guess the endianness by grepping values into an object file |
| 2797 | ac_cv_c_bigendian=unknown |
| 2798 | cat >conftest.$ac_ext <<_ACEOF |
| 2799 | /* confdefs.h. */ |
| 2800 | _ACEOF |
| 2801 | cat confdefs.h >>conftest.$ac_ext |
| 2802 | cat >>conftest.$ac_ext <<_ACEOF |
| 2803 | /* end confdefs.h. */ |
| 2804 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 2805 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 2806 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 2807 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 2808 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 2809 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 2810 | int |
| 2811 | main () |
| 2812 | { |
| 2813 | _ascii (); _ebcdic (); |
| 2814 | ; |
| 2815 | return 0; |
| 2816 | } |
| 2817 | _ACEOF |
| 2818 | rm -f conftest.$ac_objext |
| 2819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2820 | (eval $ac_compile) 2>conftest.er1 |
| 2821 | ac_status=$? |
| 2822 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2823 | rm -f conftest.er1 |
| 2824 | cat conftest.err >&5 |
| 2825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2826 | (exit $ac_status); } && |
| 2827 | { ac_try='test -z "$ac_c_werror_flag" |
| 2828 | || test ! -s conftest.err' |
| 2829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2830 | (eval $ac_try) 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 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 2841 | ac_cv_c_bigendian=yes |
| 2842 | fi |
| 2843 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 2844 | if test "$ac_cv_c_bigendian" = unknown; then |
| 2845 | ac_cv_c_bigendian=no |
| 2846 | else |
| 2847 | # finding both strings is unlikely to happen, but who knows? |
| 2848 | ac_cv_c_bigendian=unknown |
| 2849 | fi |
| 2850 | fi |
| 2851 | else |
| 2852 | echo "$as_me: failed program was:" >&5 |
| 2853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2854 | |
| 2855 | fi |
| 2856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2857 | else |
| 2858 | cat >conftest.$ac_ext <<_ACEOF |
| 2859 | /* confdefs.h. */ |
| 2860 | _ACEOF |
| 2861 | cat confdefs.h >>conftest.$ac_ext |
| 2862 | cat >>conftest.$ac_ext <<_ACEOF |
| 2863 | /* end confdefs.h. */ |
| 2864 | int |
| 2865 | main () |
| 2866 | { |
| 2867 | /* Are we little or big endian? From Harbison&Steele. */ |
| 2868 | union |
| 2869 | { |
| 2870 | long l; |
| 2871 | char c[sizeof (long)]; |
| 2872 | } u; |
| 2873 | u.l = 1; |
| 2874 | exit (u.c[sizeof (long) - 1] == 1); |
| 2875 | } |
| 2876 | _ACEOF |
| 2877 | rm -f conftest$ac_exeext |
| 2878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2879 | (eval $ac_link) 2>&5 |
| 2880 | ac_status=$? |
| 2881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2882 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2884 | (eval $ac_try) 2>&5 |
| 2885 | ac_status=$? |
| 2886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2887 | (exit $ac_status); }; }; then |
| 2888 | ac_cv_c_bigendian=no |
| 2889 | else |
| 2890 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2891 | echo "$as_me: failed program was:" >&5 |
| 2892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2893 | |
| 2894 | ( exit $ac_status ) |
| 2895 | ac_cv_c_bigendian=yes |
| 2896 | fi |
| 2897 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 2898 | fi |
| 2899 | fi |
| 2900 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2901 | fi |
| 2902 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 2903 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 2904 | case $ac_cv_c_bigendian in |
| 2905 | yes) |
| 2906 | ENDIAN=big |
| 2907 | ;; |
| 2908 | no) |
| 2909 | ENDIAN=little |
| 2910 | ;; |
| 2911 | *) |
| 2912 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 2913 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 2914 | echo "$as_me: error: unknown endianness |
| 2915 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 2916 | { (exit 1); exit 1; }; } ;; |
| 2917 | esac |
| 2918 | |
| 2919 | |
| 2920 | |
| 2921 | # Check whether --enable-optimized or --disable-optimized was given. |
| 2922 | if test "${enable_optimized+set}" = set; then |
| 2923 | enableval="$enable_optimized" |
| 2924 | |
| 2925 | else |
| 2926 | enableval=no |
| 2927 | fi; |
| 2928 | if test ${enableval} = "no" ; then |
| 2929 | ENABLE_OPTIMIZED= |
| 2930 | |
| 2931 | else |
| 2932 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 2933 | |
| 2934 | fi |
| 2935 | |
| 2936 | # Check whether --enable-jit or --disable-jit was given. |
| 2937 | if test "${enable_jit+set}" = set; then |
| 2938 | enableval="$enable_jit" |
| 2939 | |
| 2940 | else |
| 2941 | enableval=default |
| 2942 | fi; |
| 2943 | if test ${enableval} = "no" |
| 2944 | then |
| 2945 | JIT= |
| 2946 | |
| 2947 | else |
Reid Spencer | efbe40a | 2004-11-25 07:28:19 +0000 | [diff] [blame] | 2948 | case "$llvm_cv_target_arch" in |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2949 | x86) JIT=TARGET_HAS_JIT=1 |
| 2950 | ;; |
| 2951 | Sparc) JIT=TARGET_HAS_JIT=1 |
| 2952 | ;; |
| 2953 | PowerPC) JIT=TARGET_HAS_JIT=1 |
| 2954 | ;; |
| 2955 | *) JIT= |
| 2956 | ;; |
| 2957 | esac |
| 2958 | fi |
| 2959 | |
| 2960 | |
| 2961 | # Check whether --with-llvmgccdir or --without-llvmgccdir was given. |
| 2962 | if test "${with_llvmgccdir+set}" = set; then |
| 2963 | withval="$with_llvmgccdir" |
| 2964 | LLVMGCCDIR=$withval |
| 2965 | |
| 2966 | fi; |
| 2967 | |
| 2968 | if test "x$LLVMGCCDIR" = x ; then |
| 2969 | case "$llvm_cv_platform_type" in |
| 2970 | Linux) |
| 2971 | if test -d /home/vadve/lattner/local/x86/llvm-gcc ; then |
| 2972 | LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/ |
| 2973 | |
| 2974 | fi |
| 2975 | ;; |
| 2976 | SunOS) |
| 2977 | if test -d /home/vadve/lattner/local/sparc/llvm-gcc ; then |
| 2978 | LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/ |
| 2979 | |
| 2980 | fi |
| 2981 | ;; |
| 2982 | esac |
| 2983 | fi |
| 2984 | |
| 2985 | |
| 2986 | ac_ext=c |
| 2987 | ac_cpp='$CPP $CPPFLAGS' |
| 2988 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2989 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2990 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2991 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2992 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 2993 | # On Suns, sometimes $CPP names a directory. |
| 2994 | if test -n "$CPP" && test -d "$CPP"; then |
| 2995 | CPP= |
| 2996 | fi |
| 2997 | if test -z "$CPP"; then |
| 2998 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3000 | else |
| 3001 | # Double quotes because CPP needs to be expanded |
| 3002 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3003 | do |
| 3004 | ac_preproc_ok=false |
| 3005 | for ac_c_preproc_warn_flag in '' yes |
| 3006 | do |
| 3007 | # Use a header file that comes with gcc, so configuring glibc |
| 3008 | # with a fresh cross-compiler works. |
| 3009 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3010 | # <limits.h> exists even on freestanding compilers. |
| 3011 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3012 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3013 | cat >conftest.$ac_ext <<_ACEOF |
| 3014 | /* confdefs.h. */ |
| 3015 | _ACEOF |
| 3016 | cat confdefs.h >>conftest.$ac_ext |
| 3017 | cat >>conftest.$ac_ext <<_ACEOF |
| 3018 | /* end confdefs.h. */ |
| 3019 | #ifdef __STDC__ |
| 3020 | # include <limits.h> |
| 3021 | #else |
| 3022 | # include <assert.h> |
| 3023 | #endif |
| 3024 | Syntax error |
| 3025 | _ACEOF |
| 3026 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3027 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3028 | ac_status=$? |
| 3029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3030 | rm -f conftest.er1 |
| 3031 | cat conftest.err >&5 |
| 3032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3033 | (exit $ac_status); } >/dev/null; then |
| 3034 | if test -s conftest.err; then |
| 3035 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3036 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3037 | else |
| 3038 | ac_cpp_err= |
| 3039 | fi |
| 3040 | else |
| 3041 | ac_cpp_err=yes |
| 3042 | fi |
| 3043 | if test -z "$ac_cpp_err"; then |
| 3044 | : |
| 3045 | else |
| 3046 | echo "$as_me: failed program was:" >&5 |
| 3047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3048 | |
| 3049 | # Broken: fails on valid input. |
| 3050 | continue |
| 3051 | fi |
| 3052 | rm -f conftest.err conftest.$ac_ext |
| 3053 | |
| 3054 | # OK, works on sane cases. Now check whether non-existent headers |
| 3055 | # can be detected and how. |
| 3056 | cat >conftest.$ac_ext <<_ACEOF |
| 3057 | /* confdefs.h. */ |
| 3058 | _ACEOF |
| 3059 | cat confdefs.h >>conftest.$ac_ext |
| 3060 | cat >>conftest.$ac_ext <<_ACEOF |
| 3061 | /* end confdefs.h. */ |
| 3062 | #include <ac_nonexistent.h> |
| 3063 | _ACEOF |
| 3064 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3065 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3066 | ac_status=$? |
| 3067 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3068 | rm -f conftest.er1 |
| 3069 | cat conftest.err >&5 |
| 3070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3071 | (exit $ac_status); } >/dev/null; then |
| 3072 | if test -s conftest.err; then |
| 3073 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3074 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3075 | else |
| 3076 | ac_cpp_err= |
| 3077 | fi |
| 3078 | else |
| 3079 | ac_cpp_err=yes |
| 3080 | fi |
| 3081 | if test -z "$ac_cpp_err"; then |
| 3082 | # Broken: success on invalid input. |
| 3083 | continue |
| 3084 | else |
| 3085 | echo "$as_me: failed program was:" >&5 |
| 3086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3087 | |
| 3088 | # Passes both tests. |
| 3089 | ac_preproc_ok=: |
| 3090 | break |
| 3091 | fi |
| 3092 | rm -f conftest.err conftest.$ac_ext |
| 3093 | |
| 3094 | done |
| 3095 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3096 | rm -f conftest.err conftest.$ac_ext |
| 3097 | if $ac_preproc_ok; then |
| 3098 | break |
| 3099 | fi |
| 3100 | |
| 3101 | done |
| 3102 | ac_cv_prog_CPP=$CPP |
| 3103 | |
| 3104 | fi |
| 3105 | CPP=$ac_cv_prog_CPP |
| 3106 | else |
| 3107 | ac_cv_prog_CPP=$CPP |
| 3108 | fi |
| 3109 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3110 | echo "${ECHO_T}$CPP" >&6 |
| 3111 | ac_preproc_ok=false |
| 3112 | for ac_c_preproc_warn_flag in '' yes |
| 3113 | do |
| 3114 | # Use a header file that comes with gcc, so configuring glibc |
| 3115 | # with a fresh cross-compiler works. |
| 3116 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3117 | # <limits.h> exists even on freestanding compilers. |
| 3118 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3119 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3120 | cat >conftest.$ac_ext <<_ACEOF |
| 3121 | /* confdefs.h. */ |
| 3122 | _ACEOF |
| 3123 | cat confdefs.h >>conftest.$ac_ext |
| 3124 | cat >>conftest.$ac_ext <<_ACEOF |
| 3125 | /* end confdefs.h. */ |
| 3126 | #ifdef __STDC__ |
| 3127 | # include <limits.h> |
| 3128 | #else |
| 3129 | # include <assert.h> |
| 3130 | #endif |
| 3131 | Syntax error |
| 3132 | _ACEOF |
| 3133 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3134 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3135 | ac_status=$? |
| 3136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3137 | rm -f conftest.er1 |
| 3138 | cat conftest.err >&5 |
| 3139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3140 | (exit $ac_status); } >/dev/null; then |
| 3141 | if test -s conftest.err; then |
| 3142 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3143 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3144 | else |
| 3145 | ac_cpp_err= |
| 3146 | fi |
| 3147 | else |
| 3148 | ac_cpp_err=yes |
| 3149 | fi |
| 3150 | if test -z "$ac_cpp_err"; then |
| 3151 | : |
| 3152 | else |
| 3153 | echo "$as_me: failed program was:" >&5 |
| 3154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3155 | |
| 3156 | # Broken: fails on valid input. |
| 3157 | continue |
| 3158 | fi |
| 3159 | rm -f conftest.err conftest.$ac_ext |
| 3160 | |
| 3161 | # OK, works on sane cases. Now check whether non-existent headers |
| 3162 | # can be detected and how. |
| 3163 | cat >conftest.$ac_ext <<_ACEOF |
| 3164 | /* confdefs.h. */ |
| 3165 | _ACEOF |
| 3166 | cat confdefs.h >>conftest.$ac_ext |
| 3167 | cat >>conftest.$ac_ext <<_ACEOF |
| 3168 | /* end confdefs.h. */ |
| 3169 | #include <ac_nonexistent.h> |
| 3170 | _ACEOF |
| 3171 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3172 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3173 | ac_status=$? |
| 3174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3175 | rm -f conftest.er1 |
| 3176 | cat conftest.err >&5 |
| 3177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3178 | (exit $ac_status); } >/dev/null; then |
| 3179 | if test -s conftest.err; then |
| 3180 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3181 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3182 | else |
| 3183 | ac_cpp_err= |
| 3184 | fi |
| 3185 | else |
| 3186 | ac_cpp_err=yes |
| 3187 | fi |
| 3188 | if test -z "$ac_cpp_err"; then |
| 3189 | # Broken: success on invalid input. |
| 3190 | continue |
| 3191 | else |
| 3192 | echo "$as_me: failed program was:" >&5 |
| 3193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3194 | |
| 3195 | # Passes both tests. |
| 3196 | ac_preproc_ok=: |
| 3197 | break |
| 3198 | fi |
| 3199 | rm -f conftest.err conftest.$ac_ext |
| 3200 | |
| 3201 | done |
| 3202 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3203 | rm -f conftest.err conftest.$ac_ext |
| 3204 | if $ac_preproc_ok; then |
| 3205 | : |
| 3206 | else |
| 3207 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3208 | See \`config.log' for more details." >&5 |
| 3209 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3210 | See \`config.log' for more details." >&2;} |
| 3211 | { (exit 1); exit 1; }; } |
| 3212 | fi |
| 3213 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3214 | ac_ext=c |
| 3215 | ac_cpp='$CPP $CPPFLAGS' |
| 3216 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3217 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3218 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3219 | |
| 3220 | ac_ext=c |
| 3221 | ac_cpp='$CPP $CPPFLAGS' |
| 3222 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3223 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3224 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3225 | if test -n "$ac_tool_prefix"; then |
| 3226 | for ac_prog in gcc |
| 3227 | do |
| 3228 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3229 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3230 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3231 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3232 | if test "${ac_cv_prog_CC+set}" = set; then |
| 3233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3234 | else |
| 3235 | if test -n "$CC"; then |
| 3236 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3237 | else |
| 3238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3239 | for as_dir in $PATH |
| 3240 | do |
| 3241 | IFS=$as_save_IFS |
| 3242 | test -z "$as_dir" && as_dir=. |
| 3243 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3244 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3245 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3246 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3247 | break 2 |
| 3248 | fi |
| 3249 | done |
| 3250 | done |
| 3251 | |
| 3252 | fi |
| 3253 | fi |
| 3254 | CC=$ac_cv_prog_CC |
| 3255 | if test -n "$CC"; then |
| 3256 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 3257 | echo "${ECHO_T}$CC" >&6 |
| 3258 | else |
| 3259 | echo "$as_me:$LINENO: result: no" >&5 |
| 3260 | echo "${ECHO_T}no" >&6 |
| 3261 | fi |
| 3262 | |
| 3263 | test -n "$CC" && break |
| 3264 | done |
| 3265 | fi |
| 3266 | if test -z "$CC"; then |
| 3267 | ac_ct_CC=$CC |
| 3268 | for ac_prog in gcc |
| 3269 | do |
| 3270 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3271 | set dummy $ac_prog; ac_word=$2 |
| 3272 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3273 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3274 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 3275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3276 | else |
| 3277 | if test -n "$ac_ct_CC"; then |
| 3278 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3279 | else |
| 3280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3281 | for as_dir in $PATH |
| 3282 | do |
| 3283 | IFS=$as_save_IFS |
| 3284 | test -z "$as_dir" && as_dir=. |
| 3285 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3286 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3287 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3288 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3289 | break 2 |
| 3290 | fi |
| 3291 | done |
| 3292 | done |
| 3293 | |
| 3294 | fi |
| 3295 | fi |
| 3296 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3297 | if test -n "$ac_ct_CC"; then |
| 3298 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 3299 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 3300 | else |
| 3301 | echo "$as_me:$LINENO: result: no" >&5 |
| 3302 | echo "${ECHO_T}no" >&6 |
| 3303 | fi |
| 3304 | |
| 3305 | test -n "$ac_ct_CC" && break |
| 3306 | done |
| 3307 | |
| 3308 | CC=$ac_ct_CC |
| 3309 | fi |
| 3310 | |
| 3311 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3312 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 3313 | See \`config.log' for more details." >&5 |
| 3314 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 3315 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3316 | { (exit 1); exit 1; }; } |
| 3317 | |
| 3318 | # Provide some information about the compiler. |
| 3319 | echo "$as_me:$LINENO:" \ |
| 3320 | "checking for C compiler version" >&5 |
| 3321 | ac_compiler=`set X $ac_compile; echo $2` |
| 3322 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 3323 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 3324 | ac_status=$? |
| 3325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3326 | (exit $ac_status); } |
| 3327 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 3328 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 3329 | ac_status=$? |
| 3330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3331 | (exit $ac_status); } |
| 3332 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 3333 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 3334 | ac_status=$? |
| 3335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3336 | (exit $ac_status); } |
| 3337 | |
| 3338 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3339 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 3340 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 3341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3342 | else |
| 3343 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3344 | /* confdefs.h. */ |
| 3345 | _ACEOF |
| 3346 | cat confdefs.h >>conftest.$ac_ext |
| 3347 | cat >>conftest.$ac_ext <<_ACEOF |
| 3348 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3349 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3350 | int |
| 3351 | main () |
| 3352 | { |
| 3353 | #ifndef __GNUC__ |
| 3354 | choke me |
| 3355 | #endif |
| 3356 | |
| 3357 | ; |
| 3358 | return 0; |
| 3359 | } |
| 3360 | _ACEOF |
| 3361 | rm -f conftest.$ac_objext |
| 3362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3363 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3364 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3366 | rm -f conftest.er1 |
| 3367 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3369 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3370 | { ac_try='test -z "$ac_c_werror_flag" |
| 3371 | || test ! -s conftest.err' |
| 3372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3373 | (eval $ac_try) 2>&5 |
| 3374 | ac_status=$? |
| 3375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3376 | (exit $ac_status); }; } && |
| 3377 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 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_compiler_gnu=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 | ac_compiler_gnu=no |
| 3389 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3391 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3392 | |
| 3393 | fi |
| 3394 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3395 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 3396 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3397 | ac_test_CFLAGS=${CFLAGS+set} |
| 3398 | ac_save_CFLAGS=$CFLAGS |
| 3399 | CFLAGS="-g" |
| 3400 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3401 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 3402 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3404 | else |
| 3405 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3406 | /* confdefs.h. */ |
| 3407 | _ACEOF |
| 3408 | cat confdefs.h >>conftest.$ac_ext |
| 3409 | cat >>conftest.$ac_ext <<_ACEOF |
| 3410 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3411 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3412 | int |
| 3413 | main () |
| 3414 | { |
| 3415 | |
| 3416 | ; |
| 3417 | return 0; |
| 3418 | } |
| 3419 | _ACEOF |
| 3420 | rm -f conftest.$ac_objext |
| 3421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3422 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3423 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3424 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3425 | rm -f conftest.er1 |
| 3426 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3428 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3429 | { ac_try='test -z "$ac_c_werror_flag" |
| 3430 | || test ! -s conftest.err' |
| 3431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3432 | (eval $ac_try) 2>&5 |
| 3433 | ac_status=$? |
| 3434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3435 | (exit $ac_status); }; } && |
| 3436 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3438 | (eval $ac_try) 2>&5 |
| 3439 | ac_status=$? |
| 3440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3441 | (exit $ac_status); }; }; then |
| 3442 | ac_cv_prog_cc_g=yes |
| 3443 | else |
| 3444 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3446 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3447 | ac_cv_prog_cc_g=no |
| 3448 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3449 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3450 | fi |
| 3451 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3452 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 3453 | if test "$ac_test_CFLAGS" = set; then |
| 3454 | CFLAGS=$ac_save_CFLAGS |
| 3455 | elif test $ac_cv_prog_cc_g = yes; then |
| 3456 | if test "$GCC" = yes; then |
| 3457 | CFLAGS="-g -O2" |
| 3458 | else |
| 3459 | CFLAGS="-g" |
| 3460 | fi |
| 3461 | else |
| 3462 | if test "$GCC" = yes; then |
| 3463 | CFLAGS="-O2" |
| 3464 | else |
| 3465 | CFLAGS= |
| 3466 | fi |
| 3467 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3468 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 3469 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 3470 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 3471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3472 | else |
| 3473 | ac_cv_prog_cc_stdc=no |
| 3474 | ac_save_CC=$CC |
| 3475 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3476 | /* confdefs.h. */ |
| 3477 | _ACEOF |
| 3478 | cat confdefs.h >>conftest.$ac_ext |
| 3479 | cat >>conftest.$ac_ext <<_ACEOF |
| 3480 | /* end confdefs.h. */ |
| 3481 | #include <stdarg.h> |
| 3482 | #include <stdio.h> |
| 3483 | #include <sys/types.h> |
| 3484 | #include <sys/stat.h> |
| 3485 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3486 | struct buf { int x; }; |
| 3487 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3488 | static char *e (p, i) |
| 3489 | char **p; |
| 3490 | int i; |
| 3491 | { |
| 3492 | return p[i]; |
| 3493 | } |
| 3494 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3495 | { |
| 3496 | char *s; |
| 3497 | va_list v; |
| 3498 | va_start (v,p); |
| 3499 | s = g (p, va_arg (v,int)); |
| 3500 | va_end (v); |
| 3501 | return s; |
| 3502 | } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3503 | |
| 3504 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3505 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3506 | These don't provoke an error unfortunately, instead are silently treated |
| 3507 | as 'x'. The following induces an error, until -std1 is added to get |
| 3508 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3509 | array size at least. It's necessary to write '\x00'==0 to get something |
| 3510 | that's true only with -std1. */ |
| 3511 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3512 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3513 | int test (int i, double x); |
| 3514 | struct s1 {int (*f) (int a);}; |
| 3515 | struct s2 {int (*f) (double a);}; |
| 3516 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3517 | int argc; |
| 3518 | char **argv; |
| 3519 | int |
| 3520 | main () |
| 3521 | { |
| 3522 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3523 | ; |
| 3524 | return 0; |
| 3525 | } |
| 3526 | _ACEOF |
| 3527 | # Don't try gcc -ansi; that turns off useful extensions and |
| 3528 | # breaks some systems' header files. |
| 3529 | # AIX -qlanglvl=ansi |
| 3530 | # Ultrix and OSF/1 -std1 |
| 3531 | # HP-UX 10.20 and later -Ae |
| 3532 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 3533 | # SVR4 -Xc -D__EXTENSIONS__ |
| 3534 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3535 | do |
| 3536 | CC="$ac_save_CC $ac_arg" |
| 3537 | rm -f conftest.$ac_objext |
| 3538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3539 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3540 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3542 | rm -f conftest.er1 |
| 3543 | cat conftest.err >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3545 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3546 | { ac_try='test -z "$ac_c_werror_flag" |
| 3547 | || test ! -s conftest.err' |
| 3548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3549 | (eval $ac_try) 2>&5 |
| 3550 | ac_status=$? |
| 3551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3552 | (exit $ac_status); }; } && |
| 3553 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3555 | (eval $ac_try) 2>&5 |
| 3556 | ac_status=$? |
| 3557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3558 | (exit $ac_status); }; }; then |
| 3559 | ac_cv_prog_cc_stdc=$ac_arg |
| 3560 | break |
| 3561 | else |
| 3562 | echo "$as_me: failed program was:" >&5 |
| 3563 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3564 | |
| 3565 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3566 | rm -f conftest.err conftest.$ac_objext |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3567 | done |
| 3568 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 3569 | CC=$ac_save_CC |
| 3570 | |
| 3571 | fi |
| 3572 | |
| 3573 | case "x$ac_cv_prog_cc_stdc" in |
| 3574 | x|xno) |
| 3575 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 3576 | echo "${ECHO_T}none needed" >&6 ;; |
| 3577 | *) |
| 3578 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 3579 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 3580 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 3581 | esac |
| 3582 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3583 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 3584 | # in C++ we need to declare it. In case someone uses the same compiler |
| 3585 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 3586 | # the declaration of exit, since it's the most demanding environment. |
| 3587 | cat >conftest.$ac_ext <<_ACEOF |
| 3588 | #ifndef __cplusplus |
| 3589 | choke me |
| 3590 | #endif |
| 3591 | _ACEOF |
| 3592 | rm -f conftest.$ac_objext |
| 3593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3594 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3595 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3596 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3597 | rm -f conftest.er1 |
| 3598 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3600 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3601 | { ac_try='test -z "$ac_c_werror_flag" |
| 3602 | || test ! -s conftest.err' |
| 3603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3604 | (eval $ac_try) 2>&5 |
| 3605 | ac_status=$? |
| 3606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3607 | (exit $ac_status); }; } && |
| 3608 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3610 | (eval $ac_try) 2>&5 |
| 3611 | ac_status=$? |
| 3612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3613 | (exit $ac_status); }; }; then |
| 3614 | for ac_declaration in \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3615 | '' \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3616 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 3617 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 3618 | 'extern "C" void exit (int) throw ();' \ |
| 3619 | 'extern "C" void exit (int);' \ |
| 3620 | 'void exit (int);' |
| 3621 | do |
| 3622 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3623 | /* confdefs.h. */ |
| 3624 | _ACEOF |
| 3625 | cat confdefs.h >>conftest.$ac_ext |
| 3626 | cat >>conftest.$ac_ext <<_ACEOF |
| 3627 | /* end confdefs.h. */ |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 3628 | $ac_declaration |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3629 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3630 | int |
| 3631 | main () |
| 3632 | { |
| 3633 | exit (42); |
| 3634 | ; |
| 3635 | return 0; |
| 3636 | } |
| 3637 | _ACEOF |
| 3638 | rm -f conftest.$ac_objext |
| 3639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3640 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3641 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3642 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3643 | rm -f conftest.er1 |
| 3644 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3646 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3647 | { ac_try='test -z "$ac_c_werror_flag" |
| 3648 | || test ! -s conftest.err' |
| 3649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3650 | (eval $ac_try) 2>&5 |
| 3651 | ac_status=$? |
| 3652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3653 | (exit $ac_status); }; } && |
| 3654 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3656 | (eval $ac_try) 2>&5 |
| 3657 | ac_status=$? |
| 3658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3659 | (exit $ac_status); }; }; then |
| 3660 | : |
| 3661 | else |
| 3662 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3663 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3664 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3665 | continue |
| 3666 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3667 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3668 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3669 | /* confdefs.h. */ |
| 3670 | _ACEOF |
| 3671 | cat confdefs.h >>conftest.$ac_ext |
| 3672 | cat >>conftest.$ac_ext <<_ACEOF |
| 3673 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3674 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3675 | int |
| 3676 | main () |
| 3677 | { |
| 3678 | exit (42); |
| 3679 | ; |
| 3680 | return 0; |
| 3681 | } |
| 3682 | _ACEOF |
| 3683 | rm -f conftest.$ac_objext |
| 3684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3685 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3686 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3688 | rm -f conftest.er1 |
| 3689 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3691 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3692 | { ac_try='test -z "$ac_c_werror_flag" |
| 3693 | || test ! -s conftest.err' |
| 3694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3695 | (eval $ac_try) 2>&5 |
| 3696 | ac_status=$? |
| 3697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3698 | (exit $ac_status); }; } && |
| 3699 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3701 | (eval $ac_try) 2>&5 |
| 3702 | ac_status=$? |
| 3703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3704 | (exit $ac_status); }; }; then |
| 3705 | break |
| 3706 | else |
| 3707 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3708 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3709 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3710 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3711 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3712 | done |
| 3713 | rm -f conftest* |
| 3714 | if test -n "$ac_declaration"; then |
| 3715 | echo '#ifdef __cplusplus' >>confdefs.h |
| 3716 | echo $ac_declaration >>confdefs.h |
| 3717 | echo '#endif' >>confdefs.h |
| 3718 | fi |
| 3719 | |
| 3720 | else |
| 3721 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3722 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3723 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3724 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3725 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3726 | ac_ext=c |
| 3727 | ac_cpp='$CPP $CPPFLAGS' |
| 3728 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3729 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3730 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3731 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3732 | ac_ext=cc |
| 3733 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3734 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3735 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3736 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3737 | if test -n "$ac_tool_prefix"; then |
| 3738 | for ac_prog in $CCC g++ |
| 3739 | do |
| 3740 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3741 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3742 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3744 | if test "${ac_cv_prog_CXX+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3746 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3747 | if test -n "$CXX"; then |
| 3748 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3749 | else |
| 3750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3751 | for as_dir in $PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3752 | do |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3753 | IFS=$as_save_IFS |
| 3754 | test -z "$as_dir" && as_dir=. |
| 3755 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3756 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3757 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 3758 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3759 | break 2 |
| 3760 | fi |
| 3761 | done |
| 3762 | done |
| 3763 | |
| 3764 | fi |
| 3765 | fi |
| 3766 | CXX=$ac_cv_prog_CXX |
| 3767 | if test -n "$CXX"; then |
| 3768 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3769 | echo "${ECHO_T}$CXX" >&6 |
| 3770 | else |
| 3771 | echo "$as_me:$LINENO: result: no" >&5 |
| 3772 | echo "${ECHO_T}no" >&6 |
| 3773 | fi |
| 3774 | |
| 3775 | test -n "$CXX" && break |
| 3776 | done |
| 3777 | fi |
| 3778 | if test -z "$CXX"; then |
| 3779 | ac_ct_CXX=$CXX |
| 3780 | for ac_prog in $CCC g++ |
| 3781 | do |
| 3782 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3783 | set dummy $ac_prog; ac_word=$2 |
| 3784 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3785 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3786 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 3787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3788 | else |
| 3789 | if test -n "$ac_ct_CXX"; then |
| 3790 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3791 | else |
| 3792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3793 | for as_dir in $PATH |
| 3794 | do |
| 3795 | IFS=$as_save_IFS |
| 3796 | test -z "$as_dir" && as_dir=. |
| 3797 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3798 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3799 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 3800 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3801 | break 2 |
| 3802 | fi |
| 3803 | done |
| 3804 | done |
| 3805 | |
| 3806 | fi |
| 3807 | fi |
| 3808 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3809 | if test -n "$ac_ct_CXX"; then |
| 3810 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 3811 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 3812 | else |
| 3813 | echo "$as_me:$LINENO: result: no" >&5 |
| 3814 | echo "${ECHO_T}no" >&6 |
| 3815 | fi |
| 3816 | |
| 3817 | test -n "$ac_ct_CXX" && break |
| 3818 | done |
| 3819 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 3820 | |
| 3821 | CXX=$ac_ct_CXX |
| 3822 | fi |
| 3823 | |
| 3824 | |
| 3825 | # Provide some information about the compiler. |
| 3826 | echo "$as_me:$LINENO:" \ |
| 3827 | "checking for C++ compiler version" >&5 |
| 3828 | ac_compiler=`set X $ac_compile; echo $2` |
| 3829 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 3830 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 3831 | ac_status=$? |
| 3832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3833 | (exit $ac_status); } |
| 3834 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 3835 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 3836 | ac_status=$? |
| 3837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3838 | (exit $ac_status); } |
| 3839 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 3840 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 3841 | ac_status=$? |
| 3842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3843 | (exit $ac_status); } |
| 3844 | |
| 3845 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 3846 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 3847 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 3848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3849 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3850 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3851 | /* confdefs.h. */ |
| 3852 | _ACEOF |
| 3853 | cat confdefs.h >>conftest.$ac_ext |
| 3854 | cat >>conftest.$ac_ext <<_ACEOF |
| 3855 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3856 | |
| 3857 | int |
| 3858 | main () |
| 3859 | { |
| 3860 | #ifndef __GNUC__ |
| 3861 | choke me |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3862 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3863 | |
| 3864 | ; |
| 3865 | return 0; |
| 3866 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3867 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3868 | rm -f conftest.$ac_objext |
| 3869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3870 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3871 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3872 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3873 | rm -f conftest.er1 |
| 3874 | cat conftest.err >&5 |
| 3875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3876 | (exit $ac_status); } && |
| 3877 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3878 | || test ! -s conftest.err' |
| 3879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3880 | (eval $ac_try) 2>&5 |
| 3881 | ac_status=$? |
| 3882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3883 | (exit $ac_status); }; } && |
| 3884 | { ac_try='test -s conftest.$ac_objext' |
| 3885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3886 | (eval $ac_try) 2>&5 |
| 3887 | ac_status=$? |
| 3888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3889 | (exit $ac_status); }; }; then |
| 3890 | ac_compiler_gnu=yes |
| 3891 | else |
| 3892 | echo "$as_me: failed program was:" >&5 |
| 3893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3894 | |
| 3895 | ac_compiler_gnu=no |
| 3896 | fi |
| 3897 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3898 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3899 | |
| 3900 | fi |
| 3901 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3902 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 3903 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 3904 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3905 | ac_save_CXXFLAGS=$CXXFLAGS |
| 3906 | CXXFLAGS="-g" |
| 3907 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 3908 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 3909 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 3910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3911 | else |
| 3912 | cat >conftest.$ac_ext <<_ACEOF |
| 3913 | /* confdefs.h. */ |
| 3914 | _ACEOF |
| 3915 | cat confdefs.h >>conftest.$ac_ext |
| 3916 | cat >>conftest.$ac_ext <<_ACEOF |
| 3917 | /* end confdefs.h. */ |
| 3918 | |
| 3919 | int |
| 3920 | main () |
| 3921 | { |
| 3922 | |
| 3923 | ; |
| 3924 | return 0; |
| 3925 | } |
| 3926 | _ACEOF |
| 3927 | rm -f conftest.$ac_objext |
| 3928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3929 | (eval $ac_compile) 2>conftest.er1 |
| 3930 | ac_status=$? |
| 3931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3932 | rm -f conftest.er1 |
| 3933 | cat conftest.err >&5 |
| 3934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3935 | (exit $ac_status); } && |
| 3936 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3937 | || test ! -s conftest.err' |
| 3938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3939 | (eval $ac_try) 2>&5 |
| 3940 | ac_status=$? |
| 3941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3942 | (exit $ac_status); }; } && |
| 3943 | { ac_try='test -s conftest.$ac_objext' |
| 3944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3945 | (eval $ac_try) 2>&5 |
| 3946 | ac_status=$? |
| 3947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3948 | (exit $ac_status); }; }; then |
| 3949 | ac_cv_prog_cxx_g=yes |
| 3950 | else |
| 3951 | echo "$as_me: failed program was:" >&5 |
| 3952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3953 | |
| 3954 | ac_cv_prog_cxx_g=no |
| 3955 | fi |
| 3956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3957 | fi |
| 3958 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3959 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 3960 | if test "$ac_test_CXXFLAGS" = set; then |
| 3961 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3962 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3963 | if test "$GXX" = yes; then |
| 3964 | CXXFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3965 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3966 | CXXFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3967 | fi |
| 3968 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3969 | if test "$GXX" = yes; then |
| 3970 | CXXFLAGS="-O2" |
| 3971 | else |
| 3972 | CXXFLAGS= |
| 3973 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3974 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3975 | for ac_declaration in \ |
| 3976 | '' \ |
| 3977 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 3978 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 3979 | 'extern "C" void exit (int) throw ();' \ |
| 3980 | 'extern "C" void exit (int);' \ |
| 3981 | 'void exit (int);' |
| 3982 | do |
| 3983 | cat >conftest.$ac_ext <<_ACEOF |
| 3984 | /* confdefs.h. */ |
| 3985 | _ACEOF |
| 3986 | cat confdefs.h >>conftest.$ac_ext |
| 3987 | cat >>conftest.$ac_ext <<_ACEOF |
| 3988 | /* end confdefs.h. */ |
| 3989 | $ac_declaration |
| 3990 | #include <stdlib.h> |
| 3991 | int |
| 3992 | main () |
| 3993 | { |
| 3994 | exit (42); |
| 3995 | ; |
| 3996 | return 0; |
| 3997 | } |
| 3998 | _ACEOF |
| 3999 | rm -f conftest.$ac_objext |
| 4000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4001 | (eval $ac_compile) 2>conftest.er1 |
| 4002 | ac_status=$? |
| 4003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4004 | rm -f conftest.er1 |
| 4005 | cat conftest.err >&5 |
| 4006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4007 | (exit $ac_status); } && |
| 4008 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4009 | || test ! -s conftest.err' |
| 4010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4011 | (eval $ac_try) 2>&5 |
| 4012 | ac_status=$? |
| 4013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4014 | (exit $ac_status); }; } && |
| 4015 | { ac_try='test -s conftest.$ac_objext' |
| 4016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4017 | (eval $ac_try) 2>&5 |
| 4018 | ac_status=$? |
| 4019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4020 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4021 | : |
| 4022 | else |
| 4023 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4025 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4026 | continue |
| 4027 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4029 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4030 | /* confdefs.h. */ |
| 4031 | _ACEOF |
| 4032 | cat confdefs.h >>conftest.$ac_ext |
| 4033 | cat >>conftest.$ac_ext <<_ACEOF |
| 4034 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4035 | $ac_declaration |
| 4036 | int |
| 4037 | main () |
| 4038 | { |
| 4039 | exit (42); |
| 4040 | ; |
| 4041 | return 0; |
| 4042 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4043 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4044 | rm -f conftest.$ac_objext |
| 4045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4046 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4047 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4048 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4049 | rm -f conftest.er1 |
| 4050 | cat conftest.err >&5 |
| 4051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4052 | (exit $ac_status); } && |
| 4053 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4054 | || test ! -s conftest.err' |
| 4055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4056 | (eval $ac_try) 2>&5 |
| 4057 | ac_status=$? |
| 4058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4059 | (exit $ac_status); }; } && |
| 4060 | { ac_try='test -s conftest.$ac_objext' |
| 4061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4062 | (eval $ac_try) 2>&5 |
| 4063 | ac_status=$? |
| 4064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4065 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4066 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4067 | else |
| 4068 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4070 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4071 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4072 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4073 | done |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4074 | rm -f conftest* |
| 4075 | if test -n "$ac_declaration"; then |
| 4076 | echo '#ifdef __cplusplus' >>confdefs.h |
| 4077 | echo $ac_declaration >>confdefs.h |
| 4078 | echo '#endif' >>confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4079 | fi |
| 4080 | |
| 4081 | ac_ext=c |
| 4082 | ac_cpp='$CPP $CPPFLAGS' |
| 4083 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4084 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4085 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4086 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4087 | echo "$as_me:$LINENO: checking " >&5 |
| 4088 | echo $ECHO_N "checking ... $ECHO_C" >&6 |
| 4089 | if test "${ac_cv_has_flex+set}" = set; then |
| 4090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4091 | else |
| 4092 | for ac_prog in flex lex |
| 4093 | do |
| 4094 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4095 | set dummy $ac_prog; ac_word=$2 |
| 4096 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4097 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4098 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 4099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4100 | else |
| 4101 | if test -n "$LEX"; then |
| 4102 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 4103 | else |
| 4104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4105 | for as_dir in $PATH |
| 4106 | do |
| 4107 | IFS=$as_save_IFS |
| 4108 | test -z "$as_dir" && as_dir=. |
| 4109 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4110 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4111 | ac_cv_prog_LEX="$ac_prog" |
| 4112 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4113 | break 2 |
| 4114 | fi |
| 4115 | done |
| 4116 | done |
| 4117 | |
| 4118 | fi |
| 4119 | fi |
| 4120 | LEX=$ac_cv_prog_LEX |
| 4121 | if test -n "$LEX"; then |
| 4122 | echo "$as_me:$LINENO: result: $LEX" >&5 |
| 4123 | echo "${ECHO_T}$LEX" >&6 |
| 4124 | else |
| 4125 | echo "$as_me:$LINENO: result: no" >&5 |
| 4126 | echo "${ECHO_T}no" >&6 |
| 4127 | fi |
| 4128 | |
| 4129 | test -n "$LEX" && break |
| 4130 | done |
| 4131 | test -n "$LEX" || LEX=":" |
| 4132 | |
| 4133 | if test -z "$LEXLIB" |
| 4134 | then |
| 4135 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 4136 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 4137 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 4138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4139 | else |
| 4140 | ac_check_lib_save_LIBS=$LIBS |
| 4141 | LIBS="-lfl $LIBS" |
| 4142 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4143 | /* confdefs.h. */ |
| 4144 | _ACEOF |
| 4145 | cat confdefs.h >>conftest.$ac_ext |
| 4146 | cat >>conftest.$ac_ext <<_ACEOF |
| 4147 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4148 | |
| 4149 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4150 | #ifdef __cplusplus |
| 4151 | extern "C" |
| 4152 | #endif |
| 4153 | /* We use char because int might match the return type of a gcc2 |
| 4154 | builtin and then its argument prototype would still apply. */ |
| 4155 | char yywrap (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4156 | int |
| 4157 | main () |
| 4158 | { |
| 4159 | yywrap (); |
| 4160 | ; |
| 4161 | return 0; |
| 4162 | } |
| 4163 | _ACEOF |
| 4164 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4166 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4167 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4168 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4169 | rm -f conftest.er1 |
| 4170 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4172 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4173 | { ac_try='test -z "$ac_c_werror_flag" |
| 4174 | || test ! -s conftest.err' |
| 4175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4176 | (eval $ac_try) 2>&5 |
| 4177 | ac_status=$? |
| 4178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4179 | (exit $ac_status); }; } && |
| 4180 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4182 | (eval $ac_try) 2>&5 |
| 4183 | ac_status=$? |
| 4184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4185 | (exit $ac_status); }; }; then |
| 4186 | ac_cv_lib_fl_yywrap=yes |
| 4187 | else |
| 4188 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4190 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4191 | ac_cv_lib_fl_yywrap=no |
| 4192 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4193 | rm -f conftest.err conftest.$ac_objext \ |
| 4194 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4195 | LIBS=$ac_check_lib_save_LIBS |
| 4196 | fi |
| 4197 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 4198 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 4199 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 4200 | LEXLIB="-lfl" |
| 4201 | else |
| 4202 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 4203 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 4204 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 4205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4206 | else |
| 4207 | ac_check_lib_save_LIBS=$LIBS |
| 4208 | LIBS="-ll $LIBS" |
| 4209 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4210 | /* confdefs.h. */ |
| 4211 | _ACEOF |
| 4212 | cat confdefs.h >>conftest.$ac_ext |
| 4213 | cat >>conftest.$ac_ext <<_ACEOF |
| 4214 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4215 | |
| 4216 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4217 | #ifdef __cplusplus |
| 4218 | extern "C" |
| 4219 | #endif |
| 4220 | /* We use char because int might match the return type of a gcc2 |
| 4221 | builtin and then its argument prototype would still apply. */ |
| 4222 | char yywrap (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4223 | int |
| 4224 | main () |
| 4225 | { |
| 4226 | yywrap (); |
| 4227 | ; |
| 4228 | return 0; |
| 4229 | } |
| 4230 | _ACEOF |
| 4231 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4232 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4233 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4234 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4235 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4236 | rm -f conftest.er1 |
| 4237 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4239 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4240 | { ac_try='test -z "$ac_c_werror_flag" |
| 4241 | || test ! -s conftest.err' |
| 4242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4243 | (eval $ac_try) 2>&5 |
| 4244 | ac_status=$? |
| 4245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4246 | (exit $ac_status); }; } && |
| 4247 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4249 | (eval $ac_try) 2>&5 |
| 4250 | ac_status=$? |
| 4251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4252 | (exit $ac_status); }; }; then |
| 4253 | ac_cv_lib_l_yywrap=yes |
| 4254 | else |
| 4255 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4257 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4258 | ac_cv_lib_l_yywrap=no |
| 4259 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4260 | rm -f conftest.err conftest.$ac_objext \ |
| 4261 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4262 | LIBS=$ac_check_lib_save_LIBS |
| 4263 | fi |
| 4264 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 4265 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 4266 | if test $ac_cv_lib_l_yywrap = yes; then |
| 4267 | LEXLIB="-ll" |
| 4268 | fi |
| 4269 | |
| 4270 | fi |
| 4271 | |
| 4272 | fi |
| 4273 | |
| 4274 | if test "x$LEX" != "x:"; then |
| 4275 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 4276 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 4277 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 4278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4279 | else |
| 4280 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 4281 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 4282 | cat >conftest.l <<_ACEOF |
| 4283 | %% |
| 4284 | %% |
| 4285 | _ACEOF |
| 4286 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 4287 | (eval $LEX conftest.l) 2>&5 |
| 4288 | ac_status=$? |
| 4289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4290 | (exit $ac_status); } |
| 4291 | if test -f lex.yy.c; then |
| 4292 | ac_cv_prog_lex_root=lex.yy |
| 4293 | elif test -f lexyy.c; then |
| 4294 | ac_cv_prog_lex_root=lexyy |
| 4295 | else |
| 4296 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 4297 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 4298 | { (exit 1); exit 1; }; } |
| 4299 | fi |
| 4300 | fi |
| 4301 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 4302 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
| 4303 | rm -f conftest.l |
| 4304 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 4305 | |
| 4306 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 4307 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 4308 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 4309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4310 | else |
| 4311 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 4312 | # default is implementation-dependent. Figure out which it is, since |
| 4313 | # not all implementations provide the %pointer and %array declarations. |
| 4314 | ac_cv_prog_lex_yytext_pointer=no |
| 4315 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 4316 | ac_save_LIBS=$LIBS |
| 4317 | LIBS="$LIBS $LEXLIB" |
| 4318 | cat >conftest.$ac_ext <<_ACEOF |
| 4319 | `cat $LEX_OUTPUT_ROOT.c` |
| 4320 | _ACEOF |
| 4321 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4322 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4323 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4324 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4325 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4326 | rm -f conftest.er1 |
| 4327 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4329 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4330 | { ac_try='test -z "$ac_c_werror_flag" |
| 4331 | || test ! -s conftest.err' |
| 4332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4333 | (eval $ac_try) 2>&5 |
| 4334 | ac_status=$? |
| 4335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4336 | (exit $ac_status); }; } && |
| 4337 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4339 | (eval $ac_try) 2>&5 |
| 4340 | ac_status=$? |
| 4341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4342 | (exit $ac_status); }; }; then |
| 4343 | ac_cv_prog_lex_yytext_pointer=yes |
| 4344 | else |
| 4345 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4347 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4348 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4349 | rm -f conftest.err conftest.$ac_objext \ |
| 4350 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4351 | LIBS=$ac_save_LIBS |
| 4352 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 4353 | |
| 4354 | fi |
| 4355 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 4356 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 4357 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 4358 | |
| 4359 | cat >>confdefs.h <<\_ACEOF |
| 4360 | #define YYTEXT_POINTER 1 |
| 4361 | _ACEOF |
| 4362 | |
| 4363 | fi |
| 4364 | |
| 4365 | fi |
| 4366 | |
| 4367 | fi |
| 4368 | echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 |
| 4369 | echo "${ECHO_T}$ac_cv_has_flex" >&6 |
| 4370 | if test "$LEX" != "flex"; then |
| 4371 | { { echo "$as_me:$LINENO: error: flex not found but required" >&5 |
| 4372 | echo "$as_me: error: flex not found but required" >&2;} |
| 4373 | { (exit 1); exit 1; }; } |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 4374 | else |
| 4375 | FLEX=flex |
| 4376 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4377 | fi |
| 4378 | |
| 4379 | echo "$as_me:$LINENO: checking " >&5 |
| 4380 | echo $ECHO_N "checking ... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4381 | if test "${llvm_cv_has_bison+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4383 | else |
| 4384 | for ac_prog in 'bison -y' byacc |
| 4385 | do |
| 4386 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4387 | set dummy $ac_prog; ac_word=$2 |
| 4388 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4389 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4390 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 4391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4392 | else |
| 4393 | if test -n "$YACC"; then |
| 4394 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 4395 | else |
| 4396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4397 | for as_dir in $PATH |
| 4398 | do |
| 4399 | IFS=$as_save_IFS |
| 4400 | test -z "$as_dir" && as_dir=. |
| 4401 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4402 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4403 | ac_cv_prog_YACC="$ac_prog" |
| 4404 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4405 | break 2 |
| 4406 | fi |
| 4407 | done |
| 4408 | done |
| 4409 | |
| 4410 | fi |
| 4411 | fi |
| 4412 | YACC=$ac_cv_prog_YACC |
| 4413 | if test -n "$YACC"; then |
| 4414 | echo "$as_me:$LINENO: result: $YACC" >&5 |
| 4415 | echo "${ECHO_T}$YACC" >&6 |
| 4416 | else |
| 4417 | echo "$as_me:$LINENO: result: no" >&5 |
| 4418 | echo "${ECHO_T}no" >&6 |
| 4419 | fi |
| 4420 | |
| 4421 | test -n "$YACC" && break |
| 4422 | done |
| 4423 | test -n "$YACC" || YACC="yacc" |
| 4424 | |
| 4425 | |
| 4426 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4427 | echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5 |
| 4428 | echo "${ECHO_T}$llvm_cv_has_bison" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4429 | if test "$YACC" != "bison -y"; then |
| 4430 | { { echo "$as_me:$LINENO: error: bison not found but required" >&5 |
| 4431 | echo "$as_me: error: bison not found but required" >&2;} |
| 4432 | { (exit 1); exit 1; }; } |
| 4433 | else |
Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 4434 | BISON=bison |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4435 | |
| 4436 | fi |
| 4437 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 4438 | |
| 4439 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4440 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4441 | # Check whether --enable-shared or --disable-shared was given. |
| 4442 | if test "${enable_shared+set}" = set; then |
| 4443 | enableval="$enable_shared" |
| 4444 | p=${PACKAGE-default} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4445 | case $enableval in |
| 4446 | yes) enable_shared=yes ;; |
| 4447 | no) enable_shared=no ;; |
| 4448 | *) |
| 4449 | enable_shared=no |
| 4450 | # Look at the argument we got. We use all the common list separators. |
| 4451 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4452 | for pkg in $enableval; do |
| 4453 | IFS="$lt_save_ifs" |
| 4454 | if test "X$pkg" = "X$p"; then |
| 4455 | enable_shared=yes |
| 4456 | fi |
| 4457 | done |
| 4458 | IFS="$lt_save_ifs" |
| 4459 | ;; |
| 4460 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4461 | else |
| 4462 | enable_shared=yes |
| 4463 | fi; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4464 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4465 | # Check whether --enable-static or --disable-static was given. |
| 4466 | if test "${enable_static+set}" = set; then |
| 4467 | enableval="$enable_static" |
| 4468 | p=${PACKAGE-default} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4469 | case $enableval in |
| 4470 | yes) enable_static=yes ;; |
| 4471 | no) enable_static=no ;; |
| 4472 | *) |
| 4473 | enable_static=no |
| 4474 | # Look at the argument we got. We use all the common list separators. |
| 4475 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4476 | for pkg in $enableval; do |
| 4477 | IFS="$lt_save_ifs" |
| 4478 | if test "X$pkg" = "X$p"; then |
| 4479 | enable_static=yes |
| 4480 | fi |
| 4481 | done |
| 4482 | IFS="$lt_save_ifs" |
| 4483 | ;; |
| 4484 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4485 | else |
| 4486 | enable_static=yes |
| 4487 | fi; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4488 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4489 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 4490 | if test "${enable_fast_install+set}" = set; then |
| 4491 | enableval="$enable_fast_install" |
| 4492 | p=${PACKAGE-default} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4493 | case $enableval in |
| 4494 | yes) enable_fast_install=yes ;; |
| 4495 | no) enable_fast_install=no ;; |
| 4496 | *) |
| 4497 | enable_fast_install=no |
| 4498 | # Look at the argument we got. We use all the common list separators. |
| 4499 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4500 | for pkg in $enableval; do |
| 4501 | IFS="$lt_save_ifs" |
| 4502 | if test "X$pkg" = "X$p"; then |
| 4503 | enable_fast_install=yes |
| 4504 | fi |
| 4505 | done |
| 4506 | IFS="$lt_save_ifs" |
| 4507 | ;; |
| 4508 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4509 | else |
| 4510 | enable_fast_install=yes |
| 4511 | fi; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4512 | |
| 4513 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 4514 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 4515 | if test "${lt_cv_path_SED+set}" = set; then |
| 4516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4517 | else |
| 4518 | # Loop through the user's path and test for sed and gsed. |
| 4519 | # Then use that list of sed's as ones to test for truncation. |
| 4520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4521 | for as_dir in $PATH |
| 4522 | do |
| 4523 | IFS=$as_save_IFS |
| 4524 | test -z "$as_dir" && as_dir=. |
| 4525 | for lt_ac_prog in sed gsed; do |
| 4526 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4527 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 4528 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 4529 | fi |
| 4530 | done |
| 4531 | done |
| 4532 | done |
| 4533 | lt_ac_max=0 |
| 4534 | lt_ac_count=0 |
| 4535 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 4536 | # along with /bin/sed that truncates output. |
| 4537 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 4538 | test ! -f $lt_ac_sed && break |
| 4539 | cat /dev/null > conftest.in |
| 4540 | lt_ac_count=0 |
| 4541 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 4542 | # Check for GNU sed and select it if it is found. |
| 4543 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 4544 | lt_cv_path_SED=$lt_ac_sed |
| 4545 | break |
| 4546 | fi |
| 4547 | while true; do |
| 4548 | cat conftest.in conftest.in >conftest.tmp |
| 4549 | mv conftest.tmp conftest.in |
| 4550 | cp conftest.in conftest.nl |
| 4551 | echo >>conftest.nl |
| 4552 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 4553 | cmp -s conftest.out conftest.nl || break |
| 4554 | # 10000 chars as input seems more than enough |
| 4555 | test $lt_ac_count -gt 10 && break |
| 4556 | lt_ac_count=`expr $lt_ac_count + 1` |
| 4557 | if test $lt_ac_count -gt $lt_ac_max; then |
| 4558 | lt_ac_max=$lt_ac_count |
| 4559 | lt_cv_path_SED=$lt_ac_sed |
| 4560 | fi |
| 4561 | done |
| 4562 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4563 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4564 | fi |
| 4565 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4566 | SED=$lt_cv_path_SED |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4567 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 4568 | echo "${ECHO_T}$SED" >&6 |
| 4569 | |
| 4570 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4571 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 4572 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 4573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4574 | else |
| 4575 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 4576 | then ac_cv_prog_egrep='grep -E' |
| 4577 | else ac_cv_prog_egrep='egrep' |
| 4578 | fi |
| 4579 | fi |
| 4580 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 4581 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 4582 | EGREP=$ac_cv_prog_egrep |
| 4583 | |
| 4584 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4585 | |
| 4586 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 4587 | if test "${with_gnu_ld+set}" = set; then |
| 4588 | withval="$with_gnu_ld" |
| 4589 | test "$withval" = no || with_gnu_ld=yes |
| 4590 | else |
| 4591 | with_gnu_ld=no |
| 4592 | fi; |
| 4593 | ac_prog=ld |
| 4594 | if test "$GCC" = yes; then |
| 4595 | # Check if gcc -print-prog-name=ld gives a path. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4596 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 4597 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4598 | case $host in |
| 4599 | *-*-mingw*) |
| 4600 | # gcc leaves a trailing carriage return which upsets mingw |
| 4601 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4602 | *) |
| 4603 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4604 | esac |
| 4605 | case $ac_prog in |
| 4606 | # Accept absolute paths. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4607 | [\\/]* | ?:[\\/]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4608 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4609 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4610 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4611 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4612 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4613 | done |
| 4614 | test -z "$LD" && LD="$ac_prog" |
| 4615 | ;; |
| 4616 | "") |
| 4617 | # If it fails, then pretend we aren't using GCC. |
| 4618 | ac_prog=ld |
| 4619 | ;; |
| 4620 | *) |
| 4621 | # If it is relative, then search for the first ld in PATH. |
| 4622 | with_gnu_ld=unknown |
| 4623 | ;; |
| 4624 | esac |
| 4625 | elif test "$with_gnu_ld" = yes; then |
| 4626 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4627 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 4628 | else |
| 4629 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 4630 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 4631 | fi |
| 4632 | if test "${lt_cv_path_LD+set}" = set; then |
| 4633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4634 | else |
| 4635 | if test -z "$LD"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4636 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4637 | for ac_dir in $PATH; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4638 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4639 | test -z "$ac_dir" && ac_dir=. |
| 4640 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4641 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4642 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 4643 | # but apparently some GNU ld's only accept -v. |
| 4644 | # 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] | 4645 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4646 | *GNU* | *'with BFD'*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4647 | test "$with_gnu_ld" != no && break |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4648 | ;; |
| 4649 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4650 | test "$with_gnu_ld" != yes && break |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4651 | ;; |
| 4652 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4653 | fi |
| 4654 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4655 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4656 | else |
| 4657 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 4658 | fi |
| 4659 | fi |
| 4660 | |
| 4661 | LD="$lt_cv_path_LD" |
| 4662 | if test -n "$LD"; then |
| 4663 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 4664 | echo "${ECHO_T}$LD" >&6 |
| 4665 | else |
| 4666 | echo "$as_me:$LINENO: result: no" >&5 |
| 4667 | echo "${ECHO_T}no" >&6 |
| 4668 | fi |
| 4669 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 4670 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 4671 | { (exit 1); exit 1; }; } |
| 4672 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 4673 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 4674 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 4675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4676 | else |
| 4677 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4678 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4679 | *GNU* | *'with BFD'*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4680 | lt_cv_prog_gnu_ld=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4681 | ;; |
| 4682 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4683 | lt_cv_prog_gnu_ld=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4684 | ;; |
| 4685 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4686 | fi |
| 4687 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 4688 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 4689 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 4690 | |
| 4691 | |
| 4692 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 4693 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 4694 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 4695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4696 | else |
| 4697 | lt_cv_ld_reload_flag='-r' |
| 4698 | fi |
| 4699 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 4700 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 4701 | reload_flag=$lt_cv_ld_reload_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4702 | case $reload_flag in |
| 4703 | "" | " "*) ;; |
| 4704 | *) reload_flag=" $reload_flag" ;; |
| 4705 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4706 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4707 | case $host_os in |
| 4708 | darwin*) |
| 4709 | if test "$GCC" = yes; then |
| 4710 | reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' |
| 4711 | else |
| 4712 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4713 | fi |
| 4714 | ;; |
| 4715 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4716 | |
| 4717 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 4718 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 4719 | if test "${lt_cv_path_NM+set}" = set; then |
| 4720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4721 | else |
| 4722 | if test -n "$NM"; then |
| 4723 | # Let the user override the test. |
| 4724 | lt_cv_path_NM="$NM" |
| 4725 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4726 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4727 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4728 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4729 | test -z "$ac_dir" && ac_dir=. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4730 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
| 4731 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4732 | # Check to see if the nm accepts a BSD-compat flag. |
| 4733 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4734 | # nm: unknown option "B" ignored |
| 4735 | # Tru64's nm complains that /dev/null is an invalid object file |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4736 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4737 | */dev/null* | *'Invalid file or object type'*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4738 | lt_cv_path_NM="$tmp_nm -B" |
| 4739 | break |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4740 | ;; |
| 4741 | *) |
| 4742 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4743 | */dev/null*) |
| 4744 | lt_cv_path_NM="$tmp_nm -p" |
| 4745 | break |
| 4746 | ;; |
| 4747 | *) |
| 4748 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4749 | continue # so that we can try to find one that supports BSD flags |
| 4750 | ;; |
| 4751 | esac |
| 4752 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4753 | fi |
| 4754 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4755 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4756 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 4757 | fi |
| 4758 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4759 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 4760 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4761 | NM="$lt_cv_path_NM" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4762 | |
| 4763 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 4764 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 4765 | LN_S=$as_ln_s |
| 4766 | if test "$LN_S" = "ln -s"; then |
| 4767 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4768 | echo "${ECHO_T}yes" >&6 |
| 4769 | else |
| 4770 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 4771 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 4772 | fi |
| 4773 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4774 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 4775 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4776 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 4777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4778 | else |
| 4779 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 4780 | lt_cv_file_magic_test_file= |
| 4781 | lt_cv_deplibs_check_method='unknown' |
| 4782 | # Need to set the preceding variable on all platforms that support |
| 4783 | # interlibrary dependencies. |
| 4784 | # 'none' -- dependencies not supported. |
| 4785 | # `unknown' -- same as none, but documents that we really don't know. |
| 4786 | # 'pass_all' -- all dependencies passed with no checks. |
| 4787 | # 'test_compile' -- check by making test program. |
| 4788 | # 'file_magic [[regex]]' -- check by looking for files in library path |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4789 | # which responds to the $file_magic_cmd with a given extended regex. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4790 | # If you have `file' or equivalent on your system and you're not sure |
| 4791 | # whether `pass_all' will *always* work, you probably want this one. |
| 4792 | |
| 4793 | case $host_os in |
| 4794 | aix4* | aix5*) |
| 4795 | lt_cv_deplibs_check_method=pass_all |
| 4796 | ;; |
| 4797 | |
| 4798 | beos*) |
| 4799 | lt_cv_deplibs_check_method=pass_all |
| 4800 | ;; |
| 4801 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4802 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4803 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 4804 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 4805 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 4806 | ;; |
| 4807 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4808 | cygwin*) |
| 4809 | # func_win32_libid is a shell function defined in ltmain.sh |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4810 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4811 | lt_cv_file_magic_cmd='func_win32_libid' |
| 4812 | ;; |
| 4813 | |
| 4814 | mingw* | pw32*) |
| 4815 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 4816 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 4817 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 4818 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4819 | ;; |
| 4820 | |
| 4821 | darwin* | rhapsody*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4822 | lt_cv_deplibs_check_method=pass_all |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4823 | ;; |
| 4824 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4825 | freebsd* | kfreebsd*-gnu) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4826 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 4827 | case $host_cpu in |
| 4828 | i*86 ) |
| 4829 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 4830 | # Let's accept both of them until this is cleared up. |
| 4831 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 4832 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4833 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4834 | ;; |
| 4835 | esac |
| 4836 | else |
| 4837 | lt_cv_deplibs_check_method=pass_all |
| 4838 | fi |
| 4839 | ;; |
| 4840 | |
| 4841 | gnu*) |
| 4842 | lt_cv_deplibs_check_method=pass_all |
| 4843 | ;; |
| 4844 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4845 | hpux10.20* | hpux11*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4846 | lt_cv_file_magic_cmd=/usr/bin/file |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4847 | case "$host_cpu" in |
| 4848 | ia64*) |
| 4849 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 4850 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 4851 | ;; |
| 4852 | hppa*64*) |
| 4853 | 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]' |
| 4854 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 4855 | ;; |
| 4856 | *) |
| 4857 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 4858 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 4859 | ;; |
| 4860 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4861 | ;; |
| 4862 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4863 | irix5* | irix6* | nonstopux*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4864 | case $LD in |
| 4865 | *-32|*"-32 ") libmagic=32-bit;; |
| 4866 | *-n32|*"-n32 ") libmagic=N32;; |
| 4867 | *-64|*"-64 ") libmagic=64-bit;; |
| 4868 | *) libmagic=never-match;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4869 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4870 | lt_cv_deplibs_check_method=pass_all |
| 4871 | ;; |
| 4872 | |
| 4873 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4874 | linux*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4875 | lt_cv_deplibs_check_method=pass_all |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4876 | ;; |
| 4877 | |
| 4878 | netbsd*) |
| 4879 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4880 | 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] | 4881 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4882 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4883 | fi |
| 4884 | ;; |
| 4885 | |
| 4886 | newos6*) |
| 4887 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 4888 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4889 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 4890 | ;; |
| 4891 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4892 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4893 | lt_cv_deplibs_check_method=unknown |
| 4894 | ;; |
| 4895 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4896 | openbsd*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4897 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4898 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4899 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4900 | 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] | 4901 | fi |
| 4902 | ;; |
| 4903 | |
| 4904 | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4905 | lt_cv_deplibs_check_method=pass_all |
| 4906 | ;; |
| 4907 | |
| 4908 | sco3.2v5*) |
| 4909 | lt_cv_deplibs_check_method=pass_all |
| 4910 | ;; |
| 4911 | |
| 4912 | solaris*) |
| 4913 | lt_cv_deplibs_check_method=pass_all |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4914 | ;; |
| 4915 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4916 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 4917 | case $host_vendor in |
| 4918 | motorola) |
| 4919 | 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]' |
| 4920 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 4921 | ;; |
| 4922 | ncr) |
| 4923 | lt_cv_deplibs_check_method=pass_all |
| 4924 | ;; |
| 4925 | sequent) |
| 4926 | lt_cv_file_magic_cmd='/bin/file' |
| 4927 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 4928 | ;; |
| 4929 | sni) |
| 4930 | lt_cv_file_magic_cmd='/bin/file' |
| 4931 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 4932 | lt_cv_file_magic_test_file=/lib/libc.so |
| 4933 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4934 | siemens) |
| 4935 | lt_cv_deplibs_check_method=pass_all |
| 4936 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4937 | esac |
| 4938 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4939 | |
| 4940 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
| 4941 | lt_cv_deplibs_check_method=pass_all |
| 4942 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4943 | esac |
| 4944 | |
| 4945 | fi |
| 4946 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 4947 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 4948 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 4949 | deplibs_check_method=$lt_cv_deplibs_check_method |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4950 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4951 | |
| 4952 | |
| 4953 | |
| 4954 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4955 | # If no C compiler was specified, use CC. |
| 4956 | LTCC=${LTCC-"$CC"} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4957 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4958 | # Allow CC to be a program name with arguments. |
| 4959 | compiler=$CC |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4960 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4961 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 4962 | if test "${enable_libtool_lock+set}" = set; then |
| 4963 | enableval="$enable_libtool_lock" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4964 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4965 | fi; |
| 4966 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4967 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4968 | # Some flags need to be propagated to the compiler or linker for good |
| 4969 | # libtool support. |
| 4970 | case $host in |
| 4971 | ia64-*-hpux*) |
| 4972 | # Find out which ABI we are using. |
| 4973 | echo 'int i;' > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4975 | (eval $ac_compile) 2>&5 |
| 4976 | ac_status=$? |
| 4977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4978 | (exit $ac_status); }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4979 | case `/usr/bin/file conftest.$ac_objext` in |
| 4980 | *ELF-32*) |
| 4981 | HPUX_IA64_MODE="32" |
| 4982 | ;; |
| 4983 | *ELF-64*) |
| 4984 | HPUX_IA64_MODE="64" |
| 4985 | ;; |
| 4986 | esac |
| 4987 | fi |
| 4988 | rm -rf conftest* |
| 4989 | ;; |
| 4990 | *-*-irix6*) |
| 4991 | # Find out which ABI we are using. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4992 | echo '#line 4992 "configure"' > conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4994 | (eval $ac_compile) 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4995 | ac_status=$? |
| 4996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4997 | (exit $ac_status); }; then |
| 4998 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 4999 | case `/usr/bin/file conftest.$ac_objext` in |
| 5000 | *32-bit*) |
| 5001 | LD="${LD-ld} -melf32bsmip" |
| 5002 | ;; |
| 5003 | *N32*) |
| 5004 | LD="${LD-ld} -melf32bmipn32" |
| 5005 | ;; |
| 5006 | *64-bit*) |
| 5007 | LD="${LD-ld} -melf64bmip" |
| 5008 | ;; |
| 5009 | esac |
| 5010 | else |
| 5011 | case `/usr/bin/file conftest.$ac_objext` in |
| 5012 | *32-bit*) |
| 5013 | LD="${LD-ld} -32" |
| 5014 | ;; |
| 5015 | *N32*) |
| 5016 | LD="${LD-ld} -n32" |
| 5017 | ;; |
| 5018 | *64-bit*) |
| 5019 | LD="${LD-ld} -64" |
| 5020 | ;; |
| 5021 | esac |
| 5022 | fi |
| 5023 | fi |
| 5024 | rm -rf conftest* |
| 5025 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5026 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5027 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 5028 | # Find out which ABI we are using. |
| 5029 | echo 'int i;' > conftest.$ac_ext |
| 5030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5031 | (eval $ac_compile) 2>&5 |
| 5032 | ac_status=$? |
| 5033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5034 | (exit $ac_status); }; then |
| 5035 | case "`/usr/bin/file conftest.o`" in |
| 5036 | *32-bit*) |
| 5037 | case $host in |
| 5038 | x86_64-*linux*) |
| 5039 | LD="${LD-ld} -m elf_i386" |
| 5040 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5041 | ppc64-*linux*|powerpc64-*linux*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5042 | LD="${LD-ld} -m elf32ppclinux" |
| 5043 | ;; |
| 5044 | s390x-*linux*) |
| 5045 | LD="${LD-ld} -m elf_s390" |
| 5046 | ;; |
| 5047 | sparc64-*linux*) |
| 5048 | LD="${LD-ld} -m elf32_sparc" |
| 5049 | ;; |
| 5050 | esac |
| 5051 | ;; |
| 5052 | *64-bit*) |
| 5053 | case $host in |
| 5054 | x86_64-*linux*) |
| 5055 | LD="${LD-ld} -m elf_x86_64" |
| 5056 | ;; |
| 5057 | ppc*-*linux*|powerpc*-*linux*) |
| 5058 | LD="${LD-ld} -m elf64ppc" |
| 5059 | ;; |
| 5060 | s390*-*linux*) |
| 5061 | LD="${LD-ld} -m elf64_s390" |
| 5062 | ;; |
| 5063 | sparc*-*linux*) |
| 5064 | LD="${LD-ld} -m elf64_sparc" |
| 5065 | ;; |
| 5066 | esac |
| 5067 | ;; |
| 5068 | esac |
| 5069 | fi |
| 5070 | rm -rf conftest* |
| 5071 | ;; |
| 5072 | |
| 5073 | *-*-sco3.2v5*) |
| 5074 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 5075 | SAVE_CFLAGS="$CFLAGS" |
| 5076 | CFLAGS="$CFLAGS -belf" |
| 5077 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 5078 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 5079 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 5080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5081 | else |
| 5082 | ac_ext=c |
| 5083 | ac_cpp='$CPP $CPPFLAGS' |
| 5084 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5085 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5086 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5087 | |
| 5088 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5089 | /* confdefs.h. */ |
| 5090 | _ACEOF |
| 5091 | cat confdefs.h >>conftest.$ac_ext |
| 5092 | cat >>conftest.$ac_ext <<_ACEOF |
| 5093 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5094 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5095 | _ACEOF |
| 5096 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5098 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5099 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5100 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5101 | rm -f conftest.er1 |
| 5102 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5104 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5105 | { ac_try='test -z "$ac_c_werror_flag" |
| 5106 | || test ! -s conftest.err' |
| 5107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5108 | (eval $ac_try) 2>&5 |
| 5109 | ac_status=$? |
| 5110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5111 | (exit $ac_status); }; } && |
| 5112 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5114 | (eval $ac_try) 2>&5 |
| 5115 | ac_status=$? |
| 5116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5117 | (exit $ac_status); }; }; then |
| 5118 | lt_cv_cc_needs_belf=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5119 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5120 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5122 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5123 | lt_cv_cc_needs_belf=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5124 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5125 | rm -f conftest.err conftest.$ac_objext \ |
| 5126 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5127 | ac_ext=c |
| 5128 | ac_cpp='$CPP $CPPFLAGS' |
| 5129 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5130 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5131 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5132 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5133 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5134 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 5135 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 5136 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 5137 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 5138 | CFLAGS="$SAVE_CFLAGS" |
| 5139 | fi |
| 5140 | ;; |
| 5141 | |
| 5142 | esac |
| 5143 | |
| 5144 | need_locks="$enable_libtool_lock" |
| 5145 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5146 | |
| 5147 | |
| 5148 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5149 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 5150 | if test "${ac_cv_header_stdc+set}" = set; then |
| 5151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5152 | else |
| 5153 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5154 | /* confdefs.h. */ |
| 5155 | _ACEOF |
| 5156 | cat confdefs.h >>conftest.$ac_ext |
| 5157 | cat >>conftest.$ac_ext <<_ACEOF |
| 5158 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5159 | #include <stdlib.h> |
| 5160 | #include <stdarg.h> |
| 5161 | #include <string.h> |
| 5162 | #include <float.h> |
| 5163 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5164 | int |
| 5165 | main () |
| 5166 | { |
| 5167 | |
| 5168 | ; |
| 5169 | return 0; |
| 5170 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5171 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5172 | rm -f conftest.$ac_objext |
| 5173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5174 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5175 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5176 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5177 | rm -f conftest.er1 |
| 5178 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5180 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5181 | { ac_try='test -z "$ac_c_werror_flag" |
| 5182 | || test ! -s conftest.err' |
| 5183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5184 | (eval $ac_try) 2>&5 |
| 5185 | ac_status=$? |
| 5186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5187 | (exit $ac_status); }; } && |
| 5188 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5190 | (eval $ac_try) 2>&5 |
| 5191 | ac_status=$? |
| 5192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5193 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5194 | ac_cv_header_stdc=yes |
| 5195 | else |
| 5196 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5198 | |
| 5199 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5200 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5202 | |
| 5203 | if test $ac_cv_header_stdc = yes; then |
| 5204 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5205 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5206 | /* confdefs.h. */ |
| 5207 | _ACEOF |
| 5208 | cat confdefs.h >>conftest.$ac_ext |
| 5209 | cat >>conftest.$ac_ext <<_ACEOF |
| 5210 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5211 | #include <string.h> |
| 5212 | |
| 5213 | _ACEOF |
| 5214 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5215 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5216 | : |
| 5217 | else |
| 5218 | ac_cv_header_stdc=no |
| 5219 | fi |
| 5220 | rm -f conftest* |
| 5221 | |
| 5222 | fi |
| 5223 | |
| 5224 | if test $ac_cv_header_stdc = yes; then |
| 5225 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5226 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5227 | /* confdefs.h. */ |
| 5228 | _ACEOF |
| 5229 | cat confdefs.h >>conftest.$ac_ext |
| 5230 | cat >>conftest.$ac_ext <<_ACEOF |
| 5231 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5232 | #include <stdlib.h> |
| 5233 | |
| 5234 | _ACEOF |
| 5235 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5236 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5237 | : |
| 5238 | else |
| 5239 | ac_cv_header_stdc=no |
| 5240 | fi |
| 5241 | rm -f conftest* |
| 5242 | |
| 5243 | fi |
| 5244 | |
| 5245 | if test $ac_cv_header_stdc = yes; then |
| 5246 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5247 | if test "$cross_compiling" = yes; then |
| 5248 | : |
| 5249 | else |
| 5250 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5251 | /* confdefs.h. */ |
| 5252 | _ACEOF |
| 5253 | cat confdefs.h >>conftest.$ac_ext |
| 5254 | cat >>conftest.$ac_ext <<_ACEOF |
| 5255 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5256 | #include <ctype.h> |
| 5257 | #if ((' ' & 0x0FF) == 0x020) |
| 5258 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5259 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5260 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5261 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5262 | (('a' <= (c) && (c) <= 'i') \ |
| 5263 | || ('j' <= (c) && (c) <= 'r') \ |
| 5264 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5265 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5266 | #endif |
| 5267 | |
| 5268 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5269 | int |
| 5270 | main () |
| 5271 | { |
| 5272 | int i; |
| 5273 | for (i = 0; i < 256; i++) |
| 5274 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5275 | || toupper (i) != TOUPPER (i)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5276 | exit(2); |
| 5277 | exit (0); |
| 5278 | } |
| 5279 | _ACEOF |
| 5280 | rm -f conftest$ac_exeext |
| 5281 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5282 | (eval $ac_link) 2>&5 |
| 5283 | ac_status=$? |
| 5284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5285 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5287 | (eval $ac_try) 2>&5 |
| 5288 | ac_status=$? |
| 5289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5290 | (exit $ac_status); }; }; then |
| 5291 | : |
| 5292 | else |
| 5293 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5294 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5296 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5297 | ( exit $ac_status ) |
| 5298 | ac_cv_header_stdc=no |
| 5299 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5300 | rm -f 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] | 5301 | fi |
| 5302 | fi |
| 5303 | fi |
| 5304 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5305 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 5306 | if test $ac_cv_header_stdc = yes; then |
| 5307 | |
| 5308 | cat >>confdefs.h <<\_ACEOF |
| 5309 | #define STDC_HEADERS 1 |
| 5310 | _ACEOF |
| 5311 | |
| 5312 | fi |
| 5313 | |
| 5314 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5315 | |
| 5316 | |
| 5317 | |
| 5318 | |
| 5319 | |
| 5320 | |
| 5321 | |
| 5322 | |
| 5323 | |
| 5324 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5325 | inttypes.h stdint.h unistd.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5326 | do |
| 5327 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5328 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5329 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5330 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5332 | else |
| 5333 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5334 | /* confdefs.h. */ |
| 5335 | _ACEOF |
| 5336 | cat confdefs.h >>conftest.$ac_ext |
| 5337 | cat >>conftest.$ac_ext <<_ACEOF |
| 5338 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5339 | $ac_includes_default |
| 5340 | |
| 5341 | #include <$ac_header> |
| 5342 | _ACEOF |
| 5343 | rm -f conftest.$ac_objext |
| 5344 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5345 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5346 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5348 | rm -f conftest.er1 |
| 5349 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5351 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5352 | { ac_try='test -z "$ac_c_werror_flag" |
| 5353 | || test ! -s conftest.err' |
| 5354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5355 | (eval $ac_try) 2>&5 |
| 5356 | ac_status=$? |
| 5357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5358 | (exit $ac_status); }; } && |
| 5359 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5361 | (eval $ac_try) 2>&5 |
| 5362 | ac_status=$? |
| 5363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5364 | (exit $ac_status); }; }; then |
| 5365 | eval "$as_ac_Header=yes" |
| 5366 | else |
| 5367 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5368 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5369 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5370 | eval "$as_ac_Header=no" |
| 5371 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5373 | fi |
| 5374 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5375 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5376 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5377 | cat >>confdefs.h <<_ACEOF |
| 5378 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5379 | _ACEOF |
| 5380 | |
| 5381 | fi |
| 5382 | |
| 5383 | done |
| 5384 | |
| 5385 | |
| 5386 | |
| 5387 | for ac_header in dlfcn.h |
| 5388 | do |
| 5389 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5390 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5391 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5392 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5393 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5395 | fi |
| 5396 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5397 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5398 | else |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5399 | # Is the header compilable? |
| 5400 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5401 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 5402 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5403 | /* confdefs.h. */ |
| 5404 | _ACEOF |
| 5405 | cat confdefs.h >>conftest.$ac_ext |
| 5406 | cat >>conftest.$ac_ext <<_ACEOF |
| 5407 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5408 | $ac_includes_default |
| 5409 | #include <$ac_header> |
| 5410 | _ACEOF |
| 5411 | rm -f conftest.$ac_objext |
| 5412 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5413 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5414 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5415 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5416 | rm -f conftest.er1 |
| 5417 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5419 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5420 | { ac_try='test -z "$ac_c_werror_flag" |
| 5421 | || test ! -s conftest.err' |
| 5422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5423 | (eval $ac_try) 2>&5 |
| 5424 | ac_status=$? |
| 5425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5426 | (exit $ac_status); }; } && |
| 5427 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5429 | (eval $ac_try) 2>&5 |
| 5430 | ac_status=$? |
| 5431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5432 | (exit $ac_status); }; }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5433 | ac_header_compiler=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5434 | else |
| 5435 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5436 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5437 | |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5438 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5439 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5440 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5441 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5442 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5443 | |
| 5444 | # Is the header present? |
| 5445 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5446 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 5447 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5448 | /* confdefs.h. */ |
| 5449 | _ACEOF |
| 5450 | cat confdefs.h >>conftest.$ac_ext |
| 5451 | cat >>conftest.$ac_ext <<_ACEOF |
| 5452 | /* end confdefs.h. */ |
| 5453 | #include <$ac_header> |
| 5454 | _ACEOF |
| 5455 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5456 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5457 | ac_status=$? |
| 5458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5459 | rm -f conftest.er1 |
| 5460 | cat conftest.err >&5 |
| 5461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5462 | (exit $ac_status); } >/dev/null; then |
| 5463 | if test -s conftest.err; then |
| 5464 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5465 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5466 | else |
| 5467 | ac_cpp_err= |
| 5468 | fi |
| 5469 | else |
| 5470 | ac_cpp_err=yes |
| 5471 | fi |
| 5472 | if test -z "$ac_cpp_err"; then |
| 5473 | ac_header_preproc=yes |
| 5474 | else |
| 5475 | echo "$as_me: failed program was:" >&5 |
| 5476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5477 | |
| 5478 | ac_header_preproc=no |
| 5479 | fi |
| 5480 | rm -f conftest.err conftest.$ac_ext |
| 5481 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5482 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5483 | |
| 5484 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5485 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5486 | yes:no: ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5487 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5488 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5489 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5490 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5491 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5492 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5493 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5494 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5495 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5496 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5497 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5498 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5499 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5500 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5501 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5502 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5503 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5504 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5505 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5506 | ( |
| 5507 | cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5508 | ## ----------------------------------- ## |
| 5509 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 5510 | ## ----------------------------------- ## |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5511 | _ASBOX |
| 5512 | ) | |
| 5513 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5514 | ;; |
| 5515 | esac |
| 5516 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5517 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5518 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5520 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5521 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5522 | fi |
| 5523 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5524 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5525 | |
| 5526 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5527 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5528 | cat >>confdefs.h <<_ACEOF |
| 5529 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5530 | _ACEOF |
| 5531 | |
| 5532 | fi |
| 5533 | |
| 5534 | done |
| 5535 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5536 | |
| 5537 | |
| 5538 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 5539 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 5540 | (test "X$CXX" != "Xg++"))) ; then |
| 5541 | ac_ext=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5542 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5543 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5544 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5545 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5546 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 5547 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 5548 | if test -z "$CXXCPP"; then |
| 5549 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5551 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5552 | # Double quotes because CXXCPP needs to be expanded |
| 5553 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 5554 | do |
| 5555 | ac_preproc_ok=false |
| 5556 | for ac_cxx_preproc_warn_flag in '' yes |
| 5557 | do |
| 5558 | # Use a header file that comes with gcc, so configuring glibc |
| 5559 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5560 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5561 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5562 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5563 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5564 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5565 | /* confdefs.h. */ |
| 5566 | _ACEOF |
| 5567 | cat confdefs.h >>conftest.$ac_ext |
| 5568 | cat >>conftest.$ac_ext <<_ACEOF |
| 5569 | /* end confdefs.h. */ |
| 5570 | #ifdef __STDC__ |
| 5571 | # include <limits.h> |
| 5572 | #else |
| 5573 | # include <assert.h> |
| 5574 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5575 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5576 | _ACEOF |
| 5577 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5578 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5579 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5580 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5581 | rm -f conftest.er1 |
| 5582 | cat conftest.err >&5 |
| 5583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5584 | (exit $ac_status); } >/dev/null; then |
| 5585 | if test -s conftest.err; then |
| 5586 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5587 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5588 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5589 | ac_cpp_err= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5590 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5591 | else |
| 5592 | ac_cpp_err=yes |
| 5593 | fi |
| 5594 | if test -z "$ac_cpp_err"; then |
| 5595 | : |
| 5596 | else |
| 5597 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5598 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5599 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5600 | # Broken: fails on valid input. |
| 5601 | continue |
| 5602 | fi |
| 5603 | rm -f conftest.err conftest.$ac_ext |
| 5604 | |
| 5605 | # OK, works on sane cases. Now check whether non-existent headers |
| 5606 | # can be detected and how. |
| 5607 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5608 | /* confdefs.h. */ |
| 5609 | _ACEOF |
| 5610 | cat confdefs.h >>conftest.$ac_ext |
| 5611 | cat >>conftest.$ac_ext <<_ACEOF |
| 5612 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5613 | #include <ac_nonexistent.h> |
| 5614 | _ACEOF |
| 5615 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5616 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5617 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5618 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5619 | rm -f conftest.er1 |
| 5620 | cat conftest.err >&5 |
| 5621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5622 | (exit $ac_status); } >/dev/null; then |
| 5623 | if test -s conftest.err; then |
| 5624 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5625 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5626 | else |
| 5627 | ac_cpp_err= |
| 5628 | fi |
| 5629 | else |
| 5630 | ac_cpp_err=yes |
| 5631 | fi |
| 5632 | if test -z "$ac_cpp_err"; then |
| 5633 | # Broken: success on invalid input. |
| 5634 | continue |
| 5635 | else |
| 5636 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5638 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5639 | # Passes both tests. |
| 5640 | ac_preproc_ok=: |
| 5641 | break |
| 5642 | fi |
| 5643 | rm -f conftest.err conftest.$ac_ext |
| 5644 | |
| 5645 | done |
| 5646 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5647 | rm -f conftest.err conftest.$ac_ext |
| 5648 | if $ac_preproc_ok; then |
| 5649 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5650 | fi |
| 5651 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5652 | done |
| 5653 | ac_cv_prog_CXXCPP=$CXXCPP |
| 5654 | |
| 5655 | fi |
| 5656 | CXXCPP=$ac_cv_prog_CXXCPP |
| 5657 | else |
| 5658 | ac_cv_prog_CXXCPP=$CXXCPP |
| 5659 | fi |
| 5660 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 5661 | echo "${ECHO_T}$CXXCPP" >&6 |
| 5662 | ac_preproc_ok=false |
| 5663 | for ac_cxx_preproc_warn_flag in '' yes |
| 5664 | do |
| 5665 | # Use a header file that comes with gcc, so configuring glibc |
| 5666 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5667 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5668 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5669 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5670 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5671 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5672 | /* confdefs.h. */ |
| 5673 | _ACEOF |
| 5674 | cat confdefs.h >>conftest.$ac_ext |
| 5675 | cat >>conftest.$ac_ext <<_ACEOF |
| 5676 | /* end confdefs.h. */ |
| 5677 | #ifdef __STDC__ |
| 5678 | # include <limits.h> |
| 5679 | #else |
| 5680 | # include <assert.h> |
| 5681 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5682 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5683 | _ACEOF |
| 5684 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5685 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5686 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5687 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5688 | rm -f conftest.er1 |
| 5689 | cat conftest.err >&5 |
| 5690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5691 | (exit $ac_status); } >/dev/null; then |
| 5692 | if test -s conftest.err; then |
| 5693 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5694 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5695 | else |
| 5696 | ac_cpp_err= |
| 5697 | fi |
| 5698 | else |
| 5699 | ac_cpp_err=yes |
| 5700 | fi |
| 5701 | if test -z "$ac_cpp_err"; then |
| 5702 | : |
| 5703 | else |
| 5704 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5706 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5707 | # Broken: fails on valid input. |
| 5708 | continue |
| 5709 | fi |
| 5710 | rm -f conftest.err conftest.$ac_ext |
| 5711 | |
| 5712 | # OK, works on sane cases. Now check whether non-existent headers |
| 5713 | # can be detected and how. |
| 5714 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5715 | /* confdefs.h. */ |
| 5716 | _ACEOF |
| 5717 | cat confdefs.h >>conftest.$ac_ext |
| 5718 | cat >>conftest.$ac_ext <<_ACEOF |
| 5719 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5720 | #include <ac_nonexistent.h> |
| 5721 | _ACEOF |
| 5722 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5723 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5724 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5725 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5726 | rm -f conftest.er1 |
| 5727 | cat conftest.err >&5 |
| 5728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5729 | (exit $ac_status); } >/dev/null; then |
| 5730 | if test -s conftest.err; then |
| 5731 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5732 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5733 | else |
| 5734 | ac_cpp_err= |
| 5735 | fi |
| 5736 | else |
| 5737 | ac_cpp_err=yes |
| 5738 | fi |
| 5739 | if test -z "$ac_cpp_err"; then |
| 5740 | # Broken: success on invalid input. |
| 5741 | continue |
| 5742 | else |
| 5743 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5745 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5746 | # Passes both tests. |
| 5747 | ac_preproc_ok=: |
| 5748 | break |
| 5749 | fi |
| 5750 | rm -f conftest.err conftest.$ac_ext |
| 5751 | |
| 5752 | done |
| 5753 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5754 | rm -f conftest.err conftest.$ac_ext |
| 5755 | if $ac_preproc_ok; then |
| 5756 | : |
| 5757 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5758 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 5759 | See \`config.log' for more details." >&5 |
| 5760 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 5761 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5762 | { (exit 1); exit 1; }; } |
| 5763 | fi |
| 5764 | |
| 5765 | ac_ext=cc |
| 5766 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5767 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5768 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5769 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5770 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5771 | fi |
| 5772 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5773 | |
| 5774 | ac_ext=f |
| 5775 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 5776 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5777 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 5778 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5779 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5780 | do |
| 5781 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5782 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5783 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5784 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5785 | if test "${ac_cv_prog_F77+set}" = set; then |
| 5786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5787 | else |
| 5788 | if test -n "$F77"; then |
| 5789 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 5790 | else |
| 5791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5792 | for as_dir in $PATH |
| 5793 | do |
| 5794 | IFS=$as_save_IFS |
| 5795 | test -z "$as_dir" && as_dir=. |
| 5796 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5797 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5798 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 5799 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5800 | break 2 |
| 5801 | fi |
| 5802 | done |
| 5803 | done |
| 5804 | |
| 5805 | fi |
| 5806 | fi |
| 5807 | F77=$ac_cv_prog_F77 |
| 5808 | if test -n "$F77"; then |
| 5809 | echo "$as_me:$LINENO: result: $F77" >&5 |
| 5810 | echo "${ECHO_T}$F77" >&6 |
| 5811 | else |
| 5812 | echo "$as_me:$LINENO: result: no" >&5 |
| 5813 | echo "${ECHO_T}no" >&6 |
| 5814 | fi |
| 5815 | |
| 5816 | test -n "$F77" && break |
| 5817 | done |
| 5818 | fi |
| 5819 | if test -z "$F77"; then |
| 5820 | ac_ct_F77=$F77 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5821 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5822 | do |
| 5823 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5824 | set dummy $ac_prog; ac_word=$2 |
| 5825 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5826 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5827 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 5828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5829 | else |
| 5830 | if test -n "$ac_ct_F77"; then |
| 5831 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 5832 | else |
| 5833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5834 | for as_dir in $PATH |
| 5835 | do |
| 5836 | IFS=$as_save_IFS |
| 5837 | test -z "$as_dir" && as_dir=. |
| 5838 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5839 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5840 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 5841 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5842 | break 2 |
| 5843 | fi |
| 5844 | done |
| 5845 | done |
| 5846 | |
| 5847 | fi |
| 5848 | fi |
| 5849 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 5850 | if test -n "$ac_ct_F77"; then |
| 5851 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 5852 | echo "${ECHO_T}$ac_ct_F77" >&6 |
| 5853 | else |
| 5854 | echo "$as_me:$LINENO: result: no" >&5 |
| 5855 | echo "${ECHO_T}no" >&6 |
| 5856 | fi |
| 5857 | |
| 5858 | test -n "$ac_ct_F77" && break |
| 5859 | done |
| 5860 | |
| 5861 | F77=$ac_ct_F77 |
| 5862 | fi |
| 5863 | |
| 5864 | |
| 5865 | # Provide some information about the compiler. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 5866 | echo "$as_me:5866:" \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5867 | "checking for Fortran 77 compiler version" >&5 |
| 5868 | ac_compiler=`set X $ac_compile; echo $2` |
| 5869 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 5870 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 5871 | ac_status=$? |
| 5872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5873 | (exit $ac_status); } |
| 5874 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 5875 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 5876 | ac_status=$? |
| 5877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5878 | (exit $ac_status); } |
| 5879 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 5880 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 5881 | ac_status=$? |
| 5882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5883 | (exit $ac_status); } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5884 | rm -f a.out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5885 | |
| 5886 | # If we don't use `.F' as extension, the preprocessor is not run on the |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5887 | # input file. (Note that this only needs to work for GNU compilers.) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5888 | ac_save_ext=$ac_ext |
| 5889 | ac_ext=F |
| 5890 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 5891 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
| 5892 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 5893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5894 | else |
| 5895 | cat >conftest.$ac_ext <<_ACEOF |
| 5896 | program main |
| 5897 | #ifndef __GNUC__ |
| 5898 | choke me |
| 5899 | #endif |
| 5900 | |
| 5901 | end |
| 5902 | _ACEOF |
| 5903 | rm -f conftest.$ac_objext |
| 5904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5905 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5906 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5908 | rm -f conftest.er1 |
| 5909 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5911 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5912 | { ac_try='test -z "$ac_f77_werror_flag" |
| 5913 | || test ! -s conftest.err' |
| 5914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5915 | (eval $ac_try) 2>&5 |
| 5916 | ac_status=$? |
| 5917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5918 | (exit $ac_status); }; } && |
| 5919 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5921 | (eval $ac_try) 2>&5 |
| 5922 | ac_status=$? |
| 5923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5924 | (exit $ac_status); }; }; then |
| 5925 | ac_compiler_gnu=yes |
| 5926 | else |
| 5927 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5929 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5930 | ac_compiler_gnu=no |
| 5931 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5932 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5933 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 5934 | |
| 5935 | fi |
| 5936 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 5937 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
| 5938 | ac_ext=$ac_save_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5939 | ac_test_FFLAGS=${FFLAGS+set} |
| 5940 | ac_save_FFLAGS=$FFLAGS |
| 5941 | FFLAGS= |
| 5942 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 5943 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
| 5944 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 5945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5946 | else |
| 5947 | FFLAGS=-g |
| 5948 | cat >conftest.$ac_ext <<_ACEOF |
| 5949 | program main |
| 5950 | |
| 5951 | end |
| 5952 | _ACEOF |
| 5953 | rm -f conftest.$ac_objext |
| 5954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5955 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5956 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5958 | rm -f conftest.er1 |
| 5959 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5961 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5962 | { ac_try='test -z "$ac_f77_werror_flag" |
| 5963 | || test ! -s conftest.err' |
| 5964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5965 | (eval $ac_try) 2>&5 |
| 5966 | ac_status=$? |
| 5967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5968 | (exit $ac_status); }; } && |
| 5969 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5971 | (eval $ac_try) 2>&5 |
| 5972 | ac_status=$? |
| 5973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5974 | (exit $ac_status); }; }; then |
| 5975 | ac_cv_prog_f77_g=yes |
| 5976 | else |
| 5977 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5979 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5980 | ac_cv_prog_f77_g=no |
| 5981 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5983 | |
| 5984 | fi |
| 5985 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 5986 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
| 5987 | if test "$ac_test_FFLAGS" = set; then |
| 5988 | FFLAGS=$ac_save_FFLAGS |
| 5989 | elif test $ac_cv_prog_f77_g = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5990 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5991 | FFLAGS="-g -O2" |
| 5992 | else |
| 5993 | FFLAGS="-g" |
| 5994 | fi |
| 5995 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5996 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5997 | FFLAGS="-O2" |
| 5998 | else |
| 5999 | FFLAGS= |
| 6000 | fi |
| 6001 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6002 | |
| 6003 | G77=`test $ac_compiler_gnu = yes && echo yes` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6004 | ac_ext=c |
| 6005 | ac_cpp='$CPP $CPPFLAGS' |
| 6006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6009 | |
| 6010 | |
| 6011 | |
| 6012 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 6013 | |
| 6014 | # find the maximum length of command line arguments |
| 6015 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 6016 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| 6017 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 6018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6019 | else |
| 6020 | i=0 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6021 | teststring="ABCD" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6022 | |
| 6023 | case $build_os in |
| 6024 | msdosdjgpp*) |
| 6025 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 6026 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 6027 | # during glob expansion). Even if it were fixed, the result of this |
| 6028 | # check would be larger than it should be. |
| 6029 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 6030 | ;; |
| 6031 | |
| 6032 | gnu*) |
| 6033 | # Under GNU Hurd, this test is not required because there is |
| 6034 | # no limit to the length of command line arguments. |
| 6035 | # Libtool will interpret -1 as no limit whatsoever |
| 6036 | lt_cv_sys_max_cmd_len=-1; |
| 6037 | ;; |
| 6038 | |
| 6039 | cygwin* | mingw*) |
| 6040 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 6041 | # about 5 minutes as the teststring grows exponentially. |
| 6042 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 6043 | # you end up with a "frozen" computer, even though with patience |
| 6044 | # the test eventually succeeds (with a max line length of 256k). |
| 6045 | # Instead, let's just punt: use the minimum linelength reported by |
| 6046 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 6047 | lt_cv_sys_max_cmd_len=8192; |
| 6048 | ;; |
| 6049 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6050 | amigaos*) |
| 6051 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 6052 | # So we just punt and use a minimum line length of 8192. |
| 6053 | lt_cv_sys_max_cmd_len=8192; |
| 6054 | ;; |
| 6055 | |
| 6056 | netbsd* | freebsd* | openbsd* | darwin* ) |
| 6057 | # This has been around since 386BSD, at least. Likely further. |
| 6058 | if test -x /sbin/sysctl; then |
| 6059 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 6060 | elif test -x /usr/sbin/sysctl; then |
| 6061 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 6062 | else |
| 6063 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD |
| 6064 | fi |
| 6065 | # And add a safety zone |
| 6066 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6067 | ;; |
| 6068 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6069 | *) |
| 6070 | # If test is not a shell built-in, we'll probably end up computing a |
| 6071 | # maximum length that is only half of the actual maximum length, but |
| 6072 | # we can't tell. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6073 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 6074 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 6075 | = "XX$teststring") >/dev/null 2>&1 && |
| 6076 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6077 | lt_cv_sys_max_cmd_len=$new_result && |
| 6078 | test $i != 17 # 1/2 MB should be enough |
| 6079 | do |
| 6080 | i=`expr $i + 1` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6081 | teststring=$teststring$teststring |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6082 | done |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6083 | teststring= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6084 | # Add a significant safety factor because C++ compilers can tack on massive |
| 6085 | # amounts of additional arguments before passing them to the linker. |
| 6086 | # It appears as though 1/2 is a usable value. |
| 6087 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 6088 | ;; |
| 6089 | esac |
| 6090 | |
| 6091 | fi |
| 6092 | |
| 6093 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 6094 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 6095 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| 6096 | else |
| 6097 | echo "$as_me:$LINENO: result: none" >&5 |
| 6098 | echo "${ECHO_T}none" >&6 |
| 6099 | fi |
| 6100 | |
| 6101 | |
| 6102 | |
| 6103 | |
| 6104 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 6105 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 6106 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 6107 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 6108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6109 | else |
| 6110 | |
| 6111 | # These are sane defaults that work on at least a few old systems. |
| 6112 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6113 | |
| 6114 | # Character class describing NM global symbol codes. |
| 6115 | symcode='[BCDEGRST]' |
| 6116 | |
| 6117 | # Regexp to match symbols that can be accessed directly from C. |
| 6118 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6119 | |
| 6120 | # Transform the above into a raw symbol and a C symbol. |
| 6121 | symxfrm='\1 \2\3 \3' |
| 6122 | |
| 6123 | # Transform an extracted symbol line into a proper C declaration |
| 6124 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 6125 | |
| 6126 | # Transform an extracted symbol line into symbol name and symbol address |
| 6127 | 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'" |
| 6128 | |
| 6129 | # Define system-specific variables. |
| 6130 | case $host_os in |
| 6131 | aix*) |
| 6132 | symcode='[BCDT]' |
| 6133 | ;; |
| 6134 | cygwin* | mingw* | pw32*) |
| 6135 | symcode='[ABCDGISTW]' |
| 6136 | ;; |
| 6137 | hpux*) # Its linker distinguishes data from code symbols |
| 6138 | if test "$host_cpu" = ia64; then |
| 6139 | symcode='[ABCDEGRST]' |
| 6140 | fi |
| 6141 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6142 | 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'" |
| 6143 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6144 | linux*) |
| 6145 | if test "$host_cpu" = ia64; then |
| 6146 | symcode='[ABCDGIRSTW]' |
| 6147 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6148 | 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'" |
| 6149 | fi |
| 6150 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6151 | irix* | nonstopux*) |
| 6152 | symcode='[BCDEGRST]' |
| 6153 | ;; |
| 6154 | osf*) |
| 6155 | symcode='[BCDEGQRST]' |
| 6156 | ;; |
| 6157 | solaris* | sysv5*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6158 | symcode='[BDRT]' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6159 | ;; |
| 6160 | sysv4) |
| 6161 | symcode='[DFNSTU]' |
| 6162 | ;; |
| 6163 | esac |
| 6164 | |
| 6165 | # Handle CRLF in mingw tool chain |
| 6166 | opt_cr= |
| 6167 | case $build_os in |
| 6168 | mingw*) |
| 6169 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6170 | ;; |
| 6171 | esac |
| 6172 | |
| 6173 | # If we're using GNU nm, then use its standard symbol codes. |
| 6174 | case `$NM -V 2>&1` in |
| 6175 | *GNU* | *'with BFD'*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6176 | symcode='[ABCDGIRSTW]' ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6177 | esac |
| 6178 | |
| 6179 | # Try without a prefix undercore, then with it. |
| 6180 | for ac_symprfx in "" "_"; do |
| 6181 | |
| 6182 | # Write the raw and C identifiers. |
| 6183 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 6184 | |
| 6185 | # Check to see that the pipe works correctly. |
| 6186 | pipe_works=no |
| 6187 | |
| 6188 | rm -f conftest* |
| 6189 | cat > conftest.$ac_ext <<EOF |
| 6190 | #ifdef __cplusplus |
| 6191 | extern "C" { |
| 6192 | #endif |
| 6193 | char nm_test_var; |
| 6194 | void nm_test_func(){} |
| 6195 | #ifdef __cplusplus |
| 6196 | } |
| 6197 | #endif |
| 6198 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 6199 | EOF |
| 6200 | |
| 6201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6202 | (eval $ac_compile) 2>&5 |
| 6203 | ac_status=$? |
| 6204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6205 | (exit $ac_status); }; then |
| 6206 | # Now try to grab the symbols. |
| 6207 | nlist=conftest.nm |
| 6208 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 6209 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 6210 | ac_status=$? |
| 6211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6212 | (exit $ac_status); } && test -s "$nlist"; then |
| 6213 | # Try sorting and uniquifying the output. |
| 6214 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6215 | mv -f "$nlist"T "$nlist" |
| 6216 | else |
| 6217 | rm -f "$nlist"T |
| 6218 | fi |
| 6219 | |
| 6220 | # Make sure that we snagged all the symbols we need. |
| 6221 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 6222 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 6223 | cat <<EOF > conftest.$ac_ext |
| 6224 | #ifdef __cplusplus |
| 6225 | extern "C" { |
| 6226 | #endif |
| 6227 | |
| 6228 | EOF |
| 6229 | # Now generate the symbol file. |
| 6230 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 6231 | |
| 6232 | cat <<EOF >> conftest.$ac_ext |
| 6233 | #if defined (__STDC__) && __STDC__ |
| 6234 | # define lt_ptr_t void * |
| 6235 | #else |
| 6236 | # define lt_ptr_t char * |
| 6237 | # define const |
| 6238 | #endif |
| 6239 | |
| 6240 | /* The mapping between symbol names and symbols. */ |
| 6241 | const struct { |
| 6242 | const char *name; |
| 6243 | lt_ptr_t address; |
| 6244 | } |
| 6245 | lt_preloaded_symbols[] = |
| 6246 | { |
| 6247 | EOF |
| 6248 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 6249 | cat <<\EOF >> conftest.$ac_ext |
| 6250 | {0, (lt_ptr_t) 0} |
| 6251 | }; |
| 6252 | |
| 6253 | #ifdef __cplusplus |
| 6254 | } |
| 6255 | #endif |
| 6256 | EOF |
| 6257 | # Now try linking the two files. |
| 6258 | mv conftest.$ac_objext conftstm.$ac_objext |
| 6259 | lt_save_LIBS="$LIBS" |
| 6260 | lt_save_CFLAGS="$CFLAGS" |
| 6261 | LIBS="conftstm.$ac_objext" |
| 6262 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 6263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6264 | (eval $ac_link) 2>&5 |
| 6265 | ac_status=$? |
| 6266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6267 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 6268 | pipe_works=yes |
| 6269 | fi |
| 6270 | LIBS="$lt_save_LIBS" |
| 6271 | CFLAGS="$lt_save_CFLAGS" |
| 6272 | else |
| 6273 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6274 | fi |
| 6275 | else |
| 6276 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6277 | fi |
| 6278 | else |
| 6279 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6280 | fi |
| 6281 | else |
| 6282 | echo "$progname: failed program was:" >&5 |
| 6283 | cat conftest.$ac_ext >&5 |
| 6284 | fi |
| 6285 | rm -f conftest* conftst* |
| 6286 | |
| 6287 | # Do not use the global_symbol_pipe unless it works. |
| 6288 | if test "$pipe_works" = yes; then |
| 6289 | break |
| 6290 | else |
| 6291 | lt_cv_sys_global_symbol_pipe= |
| 6292 | fi |
| 6293 | done |
| 6294 | |
| 6295 | fi |
| 6296 | |
| 6297 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6298 | lt_cv_sys_global_symbol_to_cdecl= |
| 6299 | fi |
| 6300 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 6301 | echo "$as_me:$LINENO: result: failed" >&5 |
| 6302 | echo "${ECHO_T}failed" >&6 |
| 6303 | else |
| 6304 | echo "$as_me:$LINENO: result: ok" >&5 |
| 6305 | echo "${ECHO_T}ok" >&6 |
| 6306 | fi |
| 6307 | |
| 6308 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 6309 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 6310 | if test "${lt_cv_objdir+set}" = set; then |
| 6311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6312 | else |
| 6313 | rm -f .libs 2>/dev/null |
| 6314 | mkdir .libs 2>/dev/null |
| 6315 | if test -d .libs; then |
| 6316 | lt_cv_objdir=.libs |
| 6317 | else |
| 6318 | # MS-DOS does not allow filenames that begin with a dot. |
| 6319 | lt_cv_objdir=_libs |
| 6320 | fi |
| 6321 | rmdir .libs 2>/dev/null |
| 6322 | fi |
| 6323 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 6324 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
| 6325 | objdir=$lt_cv_objdir |
| 6326 | |
| 6327 | |
| 6328 | |
| 6329 | |
| 6330 | |
| 6331 | case $host_os in |
| 6332 | aix3*) |
| 6333 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 6334 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 6335 | # vanish in a puff of smoke. |
| 6336 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 6337 | COLLECT_NAMES= |
| 6338 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6339 | fi |
| 6340 | ;; |
| 6341 | esac |
| 6342 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6343 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 6344 | # metacharacters that are still active within double-quoted strings. |
| 6345 | Xsed='sed -e s/^X//' |
| 6346 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 6347 | |
| 6348 | # Same as above, but do not quote variable references. |
| 6349 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 6350 | |
| 6351 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 6352 | # double_quote_subst'ed string. |
| 6353 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 6354 | |
| 6355 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 6356 | no_glob_subst='s/\*/\\\*/g' |
| 6357 | |
| 6358 | # Constants: |
| 6359 | rm="rm -f" |
| 6360 | |
| 6361 | # Global variables: |
Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 6362 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6363 | can_build_shared=yes |
| 6364 | |
| 6365 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 6366 | # which needs '.lib'). |
| 6367 | libext=a |
| 6368 | ltmain="$ac_aux_dir/ltmain.sh" |
| 6369 | ofile="$default_ofile" |
| 6370 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 6371 | |
| 6372 | if test -n "$ac_tool_prefix"; then |
| 6373 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6374 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 6375 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6376 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6377 | if test "${ac_cv_prog_AR+set}" = set; then |
| 6378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6379 | else |
| 6380 | if test -n "$AR"; then |
| 6381 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6382 | else |
| 6383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6384 | for as_dir in $PATH |
| 6385 | do |
| 6386 | IFS=$as_save_IFS |
| 6387 | test -z "$as_dir" && as_dir=. |
| 6388 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6389 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6390 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 6391 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6392 | break 2 |
| 6393 | fi |
| 6394 | done |
| 6395 | done |
| 6396 | |
| 6397 | fi |
| 6398 | fi |
| 6399 | AR=$ac_cv_prog_AR |
| 6400 | if test -n "$AR"; then |
| 6401 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 6402 | echo "${ECHO_T}$AR" >&6 |
| 6403 | else |
| 6404 | echo "$as_me:$LINENO: result: no" >&5 |
| 6405 | echo "${ECHO_T}no" >&6 |
| 6406 | fi |
| 6407 | |
| 6408 | fi |
| 6409 | if test -z "$ac_cv_prog_AR"; then |
| 6410 | ac_ct_AR=$AR |
| 6411 | # Extract the first word of "ar", so it can be a program name with args. |
| 6412 | set dummy ar; ac_word=$2 |
| 6413 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6414 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6415 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 6416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6417 | else |
| 6418 | if test -n "$ac_ct_AR"; then |
| 6419 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6420 | else |
| 6421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6422 | for as_dir in $PATH |
| 6423 | do |
| 6424 | IFS=$as_save_IFS |
| 6425 | test -z "$as_dir" && as_dir=. |
| 6426 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6427 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6428 | ac_cv_prog_ac_ct_AR="ar" |
| 6429 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6430 | break 2 |
| 6431 | fi |
| 6432 | done |
| 6433 | done |
| 6434 | |
| 6435 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
| 6436 | fi |
| 6437 | fi |
| 6438 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6439 | if test -n "$ac_ct_AR"; then |
| 6440 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 6441 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 6442 | else |
| 6443 | echo "$as_me:$LINENO: result: no" >&5 |
| 6444 | echo "${ECHO_T}no" >&6 |
| 6445 | fi |
| 6446 | |
| 6447 | AR=$ac_ct_AR |
| 6448 | else |
| 6449 | AR="$ac_cv_prog_AR" |
| 6450 | fi |
| 6451 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6452 | if test -n "$ac_tool_prefix"; then |
| 6453 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6454 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6455 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6456 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6457 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6459 | else |
| 6460 | if test -n "$RANLIB"; then |
| 6461 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6462 | else |
| 6463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6464 | for as_dir in $PATH |
| 6465 | do |
| 6466 | IFS=$as_save_IFS |
| 6467 | test -z "$as_dir" && as_dir=. |
| 6468 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6469 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6470 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6471 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6472 | break 2 |
| 6473 | fi |
| 6474 | done |
| 6475 | done |
| 6476 | |
| 6477 | fi |
| 6478 | fi |
| 6479 | RANLIB=$ac_cv_prog_RANLIB |
| 6480 | if test -n "$RANLIB"; then |
| 6481 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6482 | echo "${ECHO_T}$RANLIB" >&6 |
| 6483 | else |
| 6484 | echo "$as_me:$LINENO: result: no" >&5 |
| 6485 | echo "${ECHO_T}no" >&6 |
| 6486 | fi |
| 6487 | |
| 6488 | fi |
| 6489 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6490 | ac_ct_RANLIB=$RANLIB |
| 6491 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6492 | set dummy ranlib; ac_word=$2 |
| 6493 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6494 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6495 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6497 | else |
| 6498 | if test -n "$ac_ct_RANLIB"; then |
| 6499 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6500 | else |
| 6501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6502 | for as_dir in $PATH |
| 6503 | do |
| 6504 | IFS=$as_save_IFS |
| 6505 | test -z "$as_dir" && as_dir=. |
| 6506 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6507 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6508 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6509 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6510 | break 2 |
| 6511 | fi |
| 6512 | done |
| 6513 | done |
| 6514 | |
| 6515 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 6516 | fi |
| 6517 | fi |
| 6518 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6519 | if test -n "$ac_ct_RANLIB"; then |
| 6520 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6521 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 6522 | else |
| 6523 | echo "$as_me:$LINENO: result: no" >&5 |
| 6524 | echo "${ECHO_T}no" >&6 |
| 6525 | fi |
| 6526 | |
| 6527 | RANLIB=$ac_ct_RANLIB |
| 6528 | else |
| 6529 | RANLIB="$ac_cv_prog_RANLIB" |
| 6530 | fi |
| 6531 | |
| 6532 | if test -n "$ac_tool_prefix"; then |
| 6533 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 6534 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 6535 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6536 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6537 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 6538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6539 | else |
| 6540 | if test -n "$STRIP"; then |
| 6541 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 6542 | else |
| 6543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6544 | for as_dir in $PATH |
| 6545 | do |
| 6546 | IFS=$as_save_IFS |
| 6547 | test -z "$as_dir" && as_dir=. |
| 6548 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6549 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6550 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 6551 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6552 | break 2 |
| 6553 | fi |
| 6554 | done |
| 6555 | done |
| 6556 | |
| 6557 | fi |
| 6558 | fi |
| 6559 | STRIP=$ac_cv_prog_STRIP |
| 6560 | if test -n "$STRIP"; then |
| 6561 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 6562 | echo "${ECHO_T}$STRIP" >&6 |
| 6563 | else |
| 6564 | echo "$as_me:$LINENO: result: no" >&5 |
| 6565 | echo "${ECHO_T}no" >&6 |
| 6566 | fi |
| 6567 | |
| 6568 | fi |
| 6569 | if test -z "$ac_cv_prog_STRIP"; then |
| 6570 | ac_ct_STRIP=$STRIP |
| 6571 | # Extract the first word of "strip", so it can be a program name with args. |
| 6572 | set dummy strip; ac_word=$2 |
| 6573 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6574 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6575 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 6576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6577 | else |
| 6578 | if test -n "$ac_ct_STRIP"; then |
| 6579 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 6580 | else |
| 6581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6582 | for as_dir in $PATH |
| 6583 | do |
| 6584 | IFS=$as_save_IFS |
| 6585 | test -z "$as_dir" && as_dir=. |
| 6586 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6587 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6588 | ac_cv_prog_ac_ct_STRIP="strip" |
| 6589 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6590 | break 2 |
| 6591 | fi |
| 6592 | done |
| 6593 | done |
| 6594 | |
| 6595 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 6596 | fi |
| 6597 | fi |
| 6598 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 6599 | if test -n "$ac_ct_STRIP"; then |
| 6600 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 6601 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 6602 | else |
| 6603 | echo "$as_me:$LINENO: result: no" >&5 |
| 6604 | echo "${ECHO_T}no" >&6 |
| 6605 | fi |
| 6606 | |
| 6607 | STRIP=$ac_ct_STRIP |
| 6608 | else |
| 6609 | STRIP="$ac_cv_prog_STRIP" |
| 6610 | fi |
| 6611 | |
| 6612 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6613 | old_CC="$CC" |
| 6614 | old_CFLAGS="$CFLAGS" |
| 6615 | |
| 6616 | # Set sane defaults for various variables |
| 6617 | test -z "$AR" && AR=ar |
| 6618 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 6619 | test -z "$AS" && AS=as |
| 6620 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6621 | test -z "$LTCC" && LTCC=$CC |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6622 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 6623 | test -z "$LD" && LD=ld |
| 6624 | test -z "$LN_S" && LN_S="ln -s" |
| 6625 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 6626 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6627 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6628 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 6629 | test -z "$RANLIB" && RANLIB=: |
| 6630 | test -z "$STRIP" && STRIP=: |
| 6631 | test -z "$ac_objext" && ac_objext=o |
| 6632 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6633 | # Determine commands to create old-style static archives. |
| 6634 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 6635 | old_postinstall_cmds='chmod 644 $oldlib' |
| 6636 | old_postuninstall_cmds= |
| 6637 | |
| 6638 | if test -n "$RANLIB"; then |
| 6639 | case $host_os in |
| 6640 | openbsd*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 6641 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6642 | ;; |
| 6643 | *) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 6644 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6645 | ;; |
| 6646 | esac |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 6647 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6648 | fi |
| 6649 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6650 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 6651 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6652 | # Only perform the check for file, if the check method requires it |
| 6653 | case $deplibs_check_method in |
| 6654 | file_magic*) |
| 6655 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 6656 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 6657 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 6658 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 6659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6660 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6661 | case $MAGIC_CMD in |
| 6662 | [\\/*] | ?:[\\/]*) |
| 6663 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 6664 | ;; |
| 6665 | *) |
| 6666 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 6667 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6668 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 6669 | for ac_dir in $ac_dummy; do |
| 6670 | IFS="$lt_save_ifs" |
| 6671 | test -z "$ac_dir" && ac_dir=. |
| 6672 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 6673 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 6674 | if test -n "$file_magic_test_file"; then |
| 6675 | case $deplibs_check_method in |
| 6676 | "file_magic "*) |
| 6677 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 6678 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6679 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 6680 | $EGREP "$file_magic_regex" > /dev/null; then |
| 6681 | : |
| 6682 | else |
| 6683 | cat <<EOF 1>&2 |
| 6684 | |
| 6685 | *** Warning: the command libtool uses to detect shared libraries, |
| 6686 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 6687 | *** The result is that libtool may fail to recognize shared libraries |
| 6688 | *** as such. This will affect the creation of libtool libraries that |
| 6689 | *** depend on shared libraries, but programs linked with such libtool |
| 6690 | *** libraries will work regardless of this problem. Nevertheless, you |
| 6691 | *** may want to report the problem to your system manager and/or to |
| 6692 | *** bug-libtool@gnu.org |
| 6693 | |
| 6694 | EOF |
| 6695 | fi ;; |
| 6696 | esac |
| 6697 | fi |
| 6698 | break |
| 6699 | fi |
| 6700 | done |
| 6701 | IFS="$lt_save_ifs" |
| 6702 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 6703 | ;; |
| 6704 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6705 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6706 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6707 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6708 | if test -n "$MAGIC_CMD"; then |
| 6709 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 6710 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 6711 | else |
| 6712 | echo "$as_me:$LINENO: result: no" >&5 |
| 6713 | echo "${ECHO_T}no" >&6 |
| 6714 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6715 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6716 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 6717 | if test -n "$ac_tool_prefix"; then |
| 6718 | echo "$as_me:$LINENO: checking for file" >&5 |
| 6719 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 6720 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 6721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6722 | else |
| 6723 | case $MAGIC_CMD in |
| 6724 | [\\/*] | ?:[\\/]*) |
| 6725 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 6726 | ;; |
| 6727 | *) |
| 6728 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 6729 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6730 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 6731 | for ac_dir in $ac_dummy; do |
| 6732 | IFS="$lt_save_ifs" |
| 6733 | test -z "$ac_dir" && ac_dir=. |
| 6734 | if test -f $ac_dir/file; then |
| 6735 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 6736 | if test -n "$file_magic_test_file"; then |
| 6737 | case $deplibs_check_method in |
| 6738 | "file_magic "*) |
| 6739 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 6740 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6741 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 6742 | $EGREP "$file_magic_regex" > /dev/null; then |
| 6743 | : |
| 6744 | else |
| 6745 | cat <<EOF 1>&2 |
| 6746 | |
| 6747 | *** Warning: the command libtool uses to detect shared libraries, |
| 6748 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 6749 | *** The result is that libtool may fail to recognize shared libraries |
| 6750 | *** as such. This will affect the creation of libtool libraries that |
| 6751 | *** depend on shared libraries, but programs linked with such libtool |
| 6752 | *** libraries will work regardless of this problem. Nevertheless, you |
| 6753 | *** may want to report the problem to your system manager and/or to |
| 6754 | *** bug-libtool@gnu.org |
| 6755 | |
| 6756 | EOF |
| 6757 | fi ;; |
| 6758 | esac |
| 6759 | fi |
| 6760 | break |
| 6761 | fi |
| 6762 | done |
| 6763 | IFS="$lt_save_ifs" |
| 6764 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 6765 | ;; |
| 6766 | esac |
| 6767 | fi |
| 6768 | |
| 6769 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6770 | if test -n "$MAGIC_CMD"; then |
| 6771 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 6772 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 6773 | else |
| 6774 | echo "$as_me:$LINENO: result: no" >&5 |
| 6775 | echo "${ECHO_T}no" >&6 |
| 6776 | fi |
| 6777 | |
| 6778 | else |
| 6779 | MAGIC_CMD=: |
| 6780 | fi |
| 6781 | fi |
| 6782 | |
| 6783 | fi |
| 6784 | ;; |
| 6785 | esac |
| 6786 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 6787 | enable_dlopen=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6788 | enable_win32_dll=no |
| 6789 | |
| 6790 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 6791 | if test "${enable_libtool_lock+set}" = set; then |
| 6792 | enableval="$enable_libtool_lock" |
| 6793 | |
| 6794 | fi; |
| 6795 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 6796 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6797 | |
| 6798 | # Check whether --with-pic or --without-pic was given. |
| 6799 | if test "${with_pic+set}" = set; then |
| 6800 | withval="$with_pic" |
| 6801 | pic_mode="$withval" |
| 6802 | else |
| 6803 | pic_mode=default |
| 6804 | fi; |
| 6805 | test -z "$pic_mode" && pic_mode=default |
| 6806 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6807 | # Use C for the default configuration in the libtool script |
| 6808 | tagname= |
| 6809 | lt_save_CC="$CC" |
| 6810 | ac_ext=c |
| 6811 | ac_cpp='$CPP $CPPFLAGS' |
| 6812 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6813 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6814 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6815 | |
| 6816 | |
| 6817 | # Source file extension for C test sources. |
| 6818 | ac_ext=c |
| 6819 | |
| 6820 | # Object file extension for compiled C test sources. |
| 6821 | objext=o |
| 6822 | objext=$objext |
| 6823 | |
| 6824 | # Code to be used in simple compile tests |
| 6825 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 6826 | |
| 6827 | # Code to be used in simple link tests |
| 6828 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 6829 | |
| 6830 | |
| 6831 | # If no C compiler was specified, use CC. |
| 6832 | LTCC=${LTCC-"$CC"} |
| 6833 | |
| 6834 | # Allow CC to be a program name with arguments. |
| 6835 | compiler=$CC |
| 6836 | |
| 6837 | |
| 6838 | # |
| 6839 | # Check for any special shared library compilation flags. |
| 6840 | # |
| 6841 | lt_prog_cc_shlib= |
| 6842 | if test "$GCC" = no; then |
| 6843 | case $host_os in |
| 6844 | sco3.2v5*) |
| 6845 | lt_prog_cc_shlib='-belf' |
| 6846 | ;; |
| 6847 | esac |
| 6848 | fi |
| 6849 | if test -n "$lt_prog_cc_shlib"; then |
| 6850 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
| 6851 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
| 6852 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
| 6853 | else |
| 6854 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 6855 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 6856 | lt_cv_prog_cc_can_build_shared=no |
| 6857 | fi |
| 6858 | fi |
| 6859 | |
| 6860 | |
| 6861 | # |
| 6862 | # Check to make sure the static flag actually works. |
| 6863 | # |
| 6864 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
| 6865 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
| 6866 | if test "${lt_prog_compiler_static_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6868 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6869 | lt_prog_compiler_static_works=no |
| 6870 | save_LDFLAGS="$LDFLAGS" |
| 6871 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
| 6872 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 6873 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 6874 | # The compiler can only warn and ignore the option if not recognized |
| 6875 | # So say no if there are warnings |
| 6876 | if test -s conftest.err; then |
| 6877 | # Append any errors to the config.log. |
| 6878 | cat conftest.err 1>&5 |
| 6879 | else |
| 6880 | lt_prog_compiler_static_works=yes |
| 6881 | fi |
| 6882 | fi |
| 6883 | $rm conftest* |
| 6884 | LDFLAGS="$save_LDFLAGS" |
| 6885 | |
| 6886 | fi |
| 6887 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 6888 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
| 6889 | |
| 6890 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 6891 | : |
| 6892 | else |
| 6893 | lt_prog_compiler_static= |
| 6894 | fi |
| 6895 | |
| 6896 | |
| 6897 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6898 | |
| 6899 | lt_prog_compiler_no_builtin_flag= |
| 6900 | |
| 6901 | if test "$GCC" = yes; then |
| 6902 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 6903 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6904 | |
| 6905 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6906 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 6907 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 6908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6909 | else |
| 6910 | lt_cv_prog_compiler_rtti_exceptions=no |
| 6911 | ac_outfile=conftest.$ac_objext |
| 6912 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6913 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 6914 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6915 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6916 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6917 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6918 | # The option is referenced via a variable to avoid confusing sed. |
| 6919 | lt_compile=`echo "$ac_compile" | $SED \ |
| 6920 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 6921 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6922 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 6923 | (eval echo "\"\$as_me:6923: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6924 | (eval "$lt_compile" 2>conftest.err) |
| 6925 | ac_status=$? |
| 6926 | cat conftest.err >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 6927 | echo "$as_me:6927: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6928 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6929 | # The compiler can only warn and ignore the option if not recognized |
| 6930 | # So say no if there are warnings |
| 6931 | if test ! -s conftest.err; then |
| 6932 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 6933 | fi |
| 6934 | fi |
| 6935 | $rm conftest* |
| 6936 | |
| 6937 | fi |
| 6938 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 6939 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 6940 | |
| 6941 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 6942 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 6943 | else |
| 6944 | : |
| 6945 | fi |
| 6946 | |
| 6947 | fi |
| 6948 | |
| 6949 | lt_prog_compiler_wl= |
| 6950 | lt_prog_compiler_pic= |
| 6951 | lt_prog_compiler_static= |
| 6952 | |
| 6953 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 6954 | 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] | 6955 | |
| 6956 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6957 | lt_prog_compiler_wl='-Wl,' |
| 6958 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6959 | |
| 6960 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6961 | aix*) |
| 6962 | # All AIX code is PIC. |
| 6963 | if test "$host_cpu" = ia64; then |
| 6964 | # AIX 5 now supports IA64 processor |
| 6965 | lt_prog_compiler_static='-Bstatic' |
| 6966 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6967 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6968 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6969 | amigaos*) |
| 6970 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 6971 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 6972 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6973 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6974 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6975 | |
| 6976 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6977 | # PIC is the default for these OSes. |
| 6978 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6979 | |
| 6980 | mingw* | pw32* | os2*) |
| 6981 | # This hack is so that the source file can tell whether it is being |
| 6982 | # built for inclusion in a dll (and should export symbols for example). |
| 6983 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6984 | ;; |
| 6985 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6986 | darwin* | rhapsody*) |
| 6987 | # PIC is the default on this platform |
| 6988 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6989 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6990 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6991 | |
| 6992 | msdosdjgpp*) |
| 6993 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 6994 | # on systems that don't support them. |
| 6995 | lt_prog_compiler_can_build_shared=no |
| 6996 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6997 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6998 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6999 | sysv4*MP*) |
| 7000 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7001 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7002 | fi |
| 7003 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7004 | |
| 7005 | hpux*) |
| 7006 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7007 | # not for PA HP-UX. |
| 7008 | case "$host_cpu" in |
| 7009 | hppa*64*|ia64*) |
| 7010 | # +Z the default |
| 7011 | ;; |
| 7012 | *) |
| 7013 | lt_prog_compiler_pic='-fPIC' |
| 7014 | ;; |
| 7015 | esac |
| 7016 | ;; |
| 7017 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7018 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7019 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7020 | ;; |
| 7021 | esac |
| 7022 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7023 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7024 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7025 | aix*) |
| 7026 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7027 | if test "$host_cpu" = ia64; then |
| 7028 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7029 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7030 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7031 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7032 | fi |
| 7033 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7034 | darwin*) |
| 7035 | # PIC is the default on this platform |
| 7036 | # Common symbols not allowed in MH_DYLIB files |
| 7037 | case "$cc_basename" in |
| 7038 | xlc*) |
| 7039 | lt_prog_compiler_pic='-qnocommon' |
| 7040 | lt_prog_compiler_wl='-Wl,' |
| 7041 | ;; |
| 7042 | esac |
| 7043 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7044 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7045 | mingw* | pw32* | os2*) |
| 7046 | # This hack is so that the source file can tell whether it is being |
| 7047 | # built for inclusion in a dll (and should export symbols for example). |
| 7048 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7049 | ;; |
| 7050 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7051 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7052 | lt_prog_compiler_wl='-Wl,' |
| 7053 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7054 | # not for PA HP-UX. |
| 7055 | case "$host_cpu" in |
| 7056 | hppa*64*|ia64*) |
| 7057 | # +Z the default |
| 7058 | ;; |
| 7059 | *) |
| 7060 | lt_prog_compiler_pic='+Z' |
| 7061 | ;; |
| 7062 | esac |
| 7063 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 7064 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7065 | ;; |
| 7066 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7067 | irix5* | irix6* | nonstopux*) |
| 7068 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7069 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7070 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7071 | ;; |
| 7072 | |
| 7073 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7074 | lt_prog_compiler_pic='-KPIC' |
| 7075 | lt_prog_compiler_static='-Bstatic' |
| 7076 | ;; |
| 7077 | |
| 7078 | linux*) |
| 7079 | case $CC in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7080 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7081 | lt_prog_compiler_wl='-Wl,' |
| 7082 | lt_prog_compiler_pic='-KPIC' |
| 7083 | lt_prog_compiler_static='-static' |
| 7084 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7085 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7086 | lt_prog_compiler_wl='-Wl,' |
| 7087 | # All Alpha code is PIC. |
| 7088 | lt_prog_compiler_static='-non_shared' |
| 7089 | ;; |
| 7090 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7091 | ;; |
| 7092 | |
| 7093 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7094 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7095 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7096 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7097 | ;; |
| 7098 | |
| 7099 | sco3.2v5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7100 | lt_prog_compiler_pic='-Kpic' |
| 7101 | lt_prog_compiler_static='-dn' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7102 | ;; |
| 7103 | |
| 7104 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7105 | lt_prog_compiler_wl='-Wl,' |
| 7106 | lt_prog_compiler_pic='-KPIC' |
| 7107 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7108 | ;; |
| 7109 | |
| 7110 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7111 | lt_prog_compiler_wl='-Qoption ld ' |
| 7112 | lt_prog_compiler_pic='-PIC' |
| 7113 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7114 | ;; |
| 7115 | |
| 7116 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7117 | lt_prog_compiler_wl='-Wl,' |
| 7118 | lt_prog_compiler_pic='-KPIC' |
| 7119 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7120 | ;; |
| 7121 | |
| 7122 | sysv4*MP*) |
| 7123 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7124 | lt_prog_compiler_pic='-Kconform_pic' |
| 7125 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7126 | fi |
| 7127 | ;; |
| 7128 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7129 | uts4*) |
| 7130 | lt_prog_compiler_pic='-pic' |
| 7131 | lt_prog_compiler_static='-Bstatic' |
| 7132 | ;; |
| 7133 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7134 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7135 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7136 | ;; |
| 7137 | esac |
| 7138 | fi |
| 7139 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7140 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 7141 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7142 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7143 | # |
| 7144 | # Check to make sure the PIC flag actually works. |
| 7145 | # |
| 7146 | if test -n "$lt_prog_compiler_pic"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7147 | |
| 7148 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7149 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
| 7150 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7152 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7153 | lt_prog_compiler_pic_works=no |
| 7154 | ac_outfile=conftest.$ac_objext |
| 7155 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7156 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 7157 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7158 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7159 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7160 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7161 | # The option is referenced via a variable to avoid confusing sed. |
| 7162 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7163 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 7164 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7165 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 7166 | (eval echo "\"\$as_me:7166: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7167 | (eval "$lt_compile" 2>conftest.err) |
| 7168 | ac_status=$? |
| 7169 | cat conftest.err >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 7170 | echo "$as_me:7170: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7171 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7172 | # The compiler can only warn and ignore the option if not recognized |
| 7173 | # So say no if there are warnings |
| 7174 | if test ! -s conftest.err; then |
| 7175 | lt_prog_compiler_pic_works=yes |
| 7176 | fi |
| 7177 | fi |
| 7178 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7179 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7180 | fi |
| 7181 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 7182 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7183 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7184 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 7185 | case $lt_prog_compiler_pic in |
| 7186 | "" | " "*) ;; |
| 7187 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 7188 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7189 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7190 | lt_prog_compiler_pic= |
| 7191 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7192 | fi |
| 7193 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7194 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7195 | case "$host_os" in |
| 7196 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 7197 | *djgpp*) |
| 7198 | lt_prog_compiler_pic= |
| 7199 | ;; |
| 7200 | *) |
| 7201 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 7202 | ;; |
| 7203 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7204 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7205 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 7206 | 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] | 7207 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7209 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7210 | lt_cv_prog_compiler_c_o=no |
| 7211 | $rm -r conftest 2>/dev/null |
| 7212 | mkdir conftest |
| 7213 | cd conftest |
| 7214 | mkdir out |
| 7215 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7216 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7217 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 7218 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7219 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7220 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7221 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7222 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7223 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 7224 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7225 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 7226 | (eval echo "\"\$as_me:7226: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7227 | (eval "$lt_compile" 2>out/conftest.err) |
| 7228 | ac_status=$? |
| 7229 | cat out/conftest.err >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 7230 | echo "$as_me:7230: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7231 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 7232 | then |
| 7233 | # The compiler can only warn and ignore the option if not recognized |
| 7234 | # So say no if there are warnings |
| 7235 | if test ! -s out/conftest.err; then |
| 7236 | lt_cv_prog_compiler_c_o=yes |
| 7237 | fi |
| 7238 | fi |
| 7239 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7240 | $rm conftest* |
| 7241 | # SGI C++ compiler will create directory out/ii_files/ for |
| 7242 | # template instantiation |
| 7243 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 7244 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7245 | cd .. |
| 7246 | rmdir conftest |
| 7247 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7248 | |
| 7249 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7250 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 7251 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7252 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7253 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7254 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7255 | 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] | 7256 | # do not overwrite the value of need_locks provided by the user |
| 7257 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 7258 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 7259 | hard_links=yes |
| 7260 | $rm conftest* |
| 7261 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 7262 | touch conftest.a |
| 7263 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 7264 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 7265 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 7266 | echo "${ECHO_T}$hard_links" >&6 |
| 7267 | if test "$hard_links" = no; then |
| 7268 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 7269 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 7270 | need_locks=warn |
| 7271 | fi |
| 7272 | else |
| 7273 | need_locks=no |
| 7274 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7275 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7276 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 7277 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 7278 | |
| 7279 | runpath_var= |
| 7280 | allow_undefined_flag= |
| 7281 | enable_shared_with_static_runtimes=no |
| 7282 | archive_cmds= |
| 7283 | archive_expsym_cmds= |
| 7284 | old_archive_From_new_cmds= |
| 7285 | old_archive_from_expsyms_cmds= |
| 7286 | export_dynamic_flag_spec= |
| 7287 | whole_archive_flag_spec= |
| 7288 | thread_safe_flag_spec= |
| 7289 | hardcode_libdir_flag_spec= |
| 7290 | hardcode_libdir_flag_spec_ld= |
| 7291 | hardcode_libdir_separator= |
| 7292 | hardcode_direct=no |
| 7293 | hardcode_minus_L=no |
| 7294 | hardcode_shlibpath_var=unsupported |
| 7295 | link_all_deplibs=unknown |
| 7296 | hardcode_automatic=no |
| 7297 | module_cmds= |
| 7298 | module_expsym_cmds= |
| 7299 | always_export_symbols=no |
| 7300 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 7301 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 7302 | # included in the symbol list |
| 7303 | include_expsyms= |
| 7304 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 7305 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 7306 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 7307 | # as well as any symbol that contains `d'. |
| 7308 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 7309 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 7310 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 7311 | # the symbol is explicitly referenced. Since portable code cannot |
| 7312 | # rely on this symbol name, it's probably fine to never include it in |
| 7313 | # preloaded symbol tables. |
| 7314 | extract_expsyms_cmds= |
| 7315 | |
| 7316 | case $host_os in |
| 7317 | cygwin* | mingw* | pw32*) |
| 7318 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 7319 | # When not using gcc, we currently assume that we are using |
| 7320 | # Microsoft Visual C++. |
| 7321 | if test "$GCC" != yes; then |
| 7322 | with_gnu_ld=no |
| 7323 | fi |
| 7324 | ;; |
| 7325 | openbsd*) |
| 7326 | with_gnu_ld=no |
| 7327 | ;; |
| 7328 | esac |
| 7329 | |
| 7330 | ld_shlibs=yes |
| 7331 | if test "$with_gnu_ld" = yes; then |
| 7332 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 7333 | wlarc='${wl}' |
| 7334 | |
| 7335 | # See if GNU ld supports shared libraries. |
| 7336 | case $host_os in |
| 7337 | aix3* | aix4* | aix5*) |
| 7338 | # On AIX/PPC, the GNU linker is very broken |
| 7339 | if test "$host_cpu" != ia64; then |
| 7340 | ld_shlibs=no |
| 7341 | cat <<EOF 1>&2 |
| 7342 | |
| 7343 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 7344 | *** to be unable to reliably create shared libraries on AIX. |
| 7345 | *** Therefore, libtool is disabling shared libraries support. If you |
| 7346 | *** really care for shared libraries, you may want to modify your PATH |
| 7347 | *** so that a non-GNU linker is found, and then restart. |
| 7348 | |
| 7349 | EOF |
| 7350 | fi |
| 7351 | ;; |
| 7352 | |
| 7353 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7354 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7355 | hardcode_libdir_flag_spec='-L$libdir' |
| 7356 | hardcode_minus_L=yes |
| 7357 | |
| 7358 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 7359 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 7360 | # to version 4, is to share data among multiple programs linked |
| 7361 | # with the same dynamic library. Since this doesn't match the |
| 7362 | # behavior of shared libraries on other platforms, we can't use |
| 7363 | # them. |
| 7364 | ld_shlibs=no |
| 7365 | ;; |
| 7366 | |
| 7367 | beos*) |
| 7368 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7369 | allow_undefined_flag=unsupported |
| 7370 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 7371 | # support --undefined. This deserves some investigation. FIXME |
| 7372 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7373 | else |
| 7374 | ld_shlibs=no |
| 7375 | fi |
| 7376 | ;; |
| 7377 | |
| 7378 | cygwin* | mingw* | pw32*) |
| 7379 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 7380 | # as there is no search path for DLLs. |
| 7381 | hardcode_libdir_flag_spec='-L$libdir' |
| 7382 | allow_undefined_flag=unsupported |
| 7383 | always_export_symbols=no |
| 7384 | enable_shared_with_static_runtimes=yes |
| 7385 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 7386 | |
| 7387 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 7388 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 7389 | # If the export-symbols file already is a .def file (1st line |
| 7390 | # is EXPORTS), use it as is; otherwise, prepend... |
| 7391 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 7392 | cp $export_symbols $output_objdir/$soname.def; |
| 7393 | else |
| 7394 | echo EXPORTS > $output_objdir/$soname.def; |
| 7395 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7396 | fi~ |
| 7397 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7398 | else |
| 7399 | ld_shlibs=no |
| 7400 | fi |
| 7401 | ;; |
| 7402 | |
| 7403 | netbsd*) |
| 7404 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 7405 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 7406 | wlarc= |
| 7407 | else |
| 7408 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7409 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7410 | fi |
| 7411 | ;; |
| 7412 | |
| 7413 | solaris* | sysv5*) |
| 7414 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 7415 | ld_shlibs=no |
| 7416 | cat <<EOF 1>&2 |
| 7417 | |
| 7418 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 7419 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 7420 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 7421 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 7422 | *** your PATH or compiler configuration so that the native linker is |
| 7423 | *** used, and then restart. |
| 7424 | |
| 7425 | EOF |
| 7426 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7427 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7428 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7429 | else |
| 7430 | ld_shlibs=no |
| 7431 | fi |
| 7432 | ;; |
| 7433 | |
| 7434 | sunos4*) |
| 7435 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7436 | wlarc= |
| 7437 | hardcode_direct=yes |
| 7438 | hardcode_shlibpath_var=no |
| 7439 | ;; |
| 7440 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7441 | linux*) |
| 7442 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7443 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7444 | archive_cmds="$tmp_archive_cmds" |
| 7445 | supports_anon_versioning=no |
| 7446 | case `$LD -v 2>/dev/null` in |
| 7447 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 7448 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 7449 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 7450 | *\ 2.11.*) ;; # other 2.11 versions |
| 7451 | *) supports_anon_versioning=yes ;; |
| 7452 | esac |
| 7453 | if test $supports_anon_versioning = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7454 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 7455 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 7456 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7457 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 7458 | else |
| 7459 | archive_expsym_cmds="$tmp_archive_cmds" |
| 7460 | fi |
| 7461 | else |
| 7462 | ld_shlibs=no |
| 7463 | fi |
| 7464 | ;; |
| 7465 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7466 | *) |
| 7467 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7468 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7469 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7470 | else |
| 7471 | ld_shlibs=no |
| 7472 | fi |
| 7473 | ;; |
| 7474 | esac |
| 7475 | |
| 7476 | if test "$ld_shlibs" = yes; then |
| 7477 | runpath_var=LD_RUN_PATH |
| 7478 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 7479 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 7480 | # ancient GNU ld didn't support --whole-archive et. al. |
| 7481 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 7482 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 7483 | else |
| 7484 | whole_archive_flag_spec= |
| 7485 | fi |
| 7486 | fi |
| 7487 | else |
| 7488 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 7489 | case $host_os in |
| 7490 | aix3*) |
| 7491 | allow_undefined_flag=unsupported |
| 7492 | always_export_symbols=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7493 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7494 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 7495 | # are no directories specified by -L. |
| 7496 | hardcode_minus_L=yes |
| 7497 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 7498 | # Neither direct hardcoding nor static linking is supported with a |
| 7499 | # broken collect2. |
| 7500 | hardcode_direct=unsupported |
| 7501 | fi |
| 7502 | ;; |
| 7503 | |
| 7504 | aix4* | aix5*) |
| 7505 | if test "$host_cpu" = ia64; then |
| 7506 | # On IA64, the linker does run time linking by default, so we don't |
| 7507 | # have to do anything special. |
| 7508 | aix_use_runtimelinking=no |
| 7509 | exp_sym_flag='-Bexport' |
| 7510 | no_entry_flag="" |
| 7511 | else |
| 7512 | # If we're using GNU nm, then we don't want the "-C" option. |
| 7513 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 7514 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 7515 | 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' |
| 7516 | else |
| 7517 | 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' |
| 7518 | fi |
| 7519 | aix_use_runtimelinking=no |
| 7520 | |
| 7521 | # Test if we are trying to use run time linking or normal |
| 7522 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 7523 | # need to do runtime linking. |
| 7524 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 7525 | for ld_flag in $LDFLAGS; do |
| 7526 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 7527 | aix_use_runtimelinking=yes |
| 7528 | break |
| 7529 | fi |
| 7530 | done |
| 7531 | esac |
| 7532 | |
| 7533 | exp_sym_flag='-bexport' |
| 7534 | no_entry_flag='-bnoentry' |
| 7535 | fi |
| 7536 | |
| 7537 | # When large executables or shared objects are built, AIX ld can |
| 7538 | # have problems creating the table of contents. If linking a library |
| 7539 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 7540 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 7541 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 7542 | |
| 7543 | archive_cmds='' |
| 7544 | hardcode_direct=yes |
| 7545 | hardcode_libdir_separator=':' |
| 7546 | link_all_deplibs=yes |
| 7547 | |
| 7548 | if test "$GCC" = yes; then |
| 7549 | case $host_os in aix4.012|aix4.012.*) |
| 7550 | # We only want to do this on AIX 4.2 and lower, the check |
| 7551 | # below for broken collect2 doesn't work under 4.3+ |
| 7552 | collect2name=`${CC} -print-prog-name=collect2` |
| 7553 | if test -f "$collect2name" && \ |
| 7554 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 7555 | then |
| 7556 | # We have reworked collect2 |
| 7557 | hardcode_direct=yes |
| 7558 | else |
| 7559 | # We have old collect2 |
| 7560 | hardcode_direct=unsupported |
| 7561 | # It fails to find uninstalled libraries when the uninstalled |
| 7562 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 7563 | # to unsupported forces relinking |
| 7564 | hardcode_minus_L=yes |
| 7565 | hardcode_libdir_flag_spec='-L$libdir' |
| 7566 | hardcode_libdir_separator= |
| 7567 | fi |
| 7568 | esac |
| 7569 | shared_flag='-shared' |
| 7570 | else |
| 7571 | # not using gcc |
| 7572 | if test "$host_cpu" = ia64; then |
| 7573 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 7574 | # chokes on -Wl,-G. The following line is correct: |
| 7575 | shared_flag='-G' |
| 7576 | else |
| 7577 | if test "$aix_use_runtimelinking" = yes; then |
| 7578 | shared_flag='${wl}-G' |
| 7579 | else |
| 7580 | shared_flag='${wl}-bM:SRE' |
| 7581 | fi |
| 7582 | fi |
| 7583 | fi |
| 7584 | |
| 7585 | # It seems that -bexpall does not export symbols beginning with |
| 7586 | # underscore (_), so it is better to generate a list of symbols to export. |
| 7587 | always_export_symbols=yes |
| 7588 | if test "$aix_use_runtimelinking" = yes; then |
| 7589 | # Warning - without using the other runtime loading flags (-brtl), |
| 7590 | # -berok will link without error, but may produce a broken library. |
| 7591 | allow_undefined_flag='-berok' |
| 7592 | # Determine the default libpath from the value encoded in an empty executable. |
| 7593 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7594 | /* confdefs.h. */ |
| 7595 | _ACEOF |
| 7596 | cat confdefs.h >>conftest.$ac_ext |
| 7597 | cat >>conftest.$ac_ext <<_ACEOF |
| 7598 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7599 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7600 | int |
| 7601 | main () |
| 7602 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7603 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7604 | ; |
| 7605 | return 0; |
| 7606 | } |
| 7607 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7608 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7610 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7611 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7612 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7613 | rm -f conftest.er1 |
| 7614 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7616 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7617 | { ac_try='test -z "$ac_c_werror_flag" |
| 7618 | || test ! -s conftest.err' |
| 7619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7620 | (eval $ac_try) 2>&5 |
| 7621 | ac_status=$? |
| 7622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7623 | (exit $ac_status); }; } && |
| 7624 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7626 | (eval $ac_try) 2>&5 |
| 7627 | ac_status=$? |
| 7628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7629 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7630 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7631 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 7632 | }'` |
| 7633 | # Check for a 64-bit object if we didn't find anything. |
| 7634 | 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; } |
| 7635 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7636 | else |
| 7637 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7639 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7640 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7641 | rm -f conftest.err conftest.$ac_objext \ |
| 7642 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7643 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7644 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7645 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 7646 | 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" |
| 7647 | else |
| 7648 | if test "$host_cpu" = ia64; then |
| 7649 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 7650 | allow_undefined_flag="-z nodefs" |
| 7651 | 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" |
| 7652 | else |
| 7653 | # Determine the default libpath from the value encoded in an empty executable. |
| 7654 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7655 | /* confdefs.h. */ |
| 7656 | _ACEOF |
| 7657 | cat confdefs.h >>conftest.$ac_ext |
| 7658 | cat >>conftest.$ac_ext <<_ACEOF |
| 7659 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7660 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7661 | int |
| 7662 | main () |
| 7663 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7664 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7665 | ; |
| 7666 | return 0; |
| 7667 | } |
| 7668 | _ACEOF |
| 7669 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7670 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7671 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7672 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7673 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7674 | rm -f conftest.er1 |
| 7675 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7677 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7678 | { ac_try='test -z "$ac_c_werror_flag" |
| 7679 | || test ! -s conftest.err' |
| 7680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7681 | (eval $ac_try) 2>&5 |
| 7682 | ac_status=$? |
| 7683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7684 | (exit $ac_status); }; } && |
| 7685 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7687 | (eval $ac_try) 2>&5 |
| 7688 | ac_status=$? |
| 7689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7690 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7691 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7692 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 7693 | }'` |
| 7694 | # Check for a 64-bit object if we didn't find anything. |
| 7695 | 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; } |
| 7696 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7697 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7698 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7700 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7701 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7702 | rm -f conftest.err conftest.$ac_objext \ |
| 7703 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7704 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7705 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7706 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 7707 | # Warning - without using the other run time loading flags, |
| 7708 | # -berok will link without error, but may produce a broken library. |
| 7709 | no_undefined_flag=' ${wl}-bernotok' |
| 7710 | allow_undefined_flag=' ${wl}-berok' |
| 7711 | # -bexpall does not export symbols beginning with underscore (_) |
| 7712 | always_export_symbols=yes |
| 7713 | # Exported symbols can be pulled into shared objects from archives |
| 7714 | whole_archive_flag_spec=' ' |
| 7715 | archive_cmds_need_lc=yes |
| 7716 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7717 | 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] | 7718 | fi |
| 7719 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7720 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7721 | |
| 7722 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7723 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7724 | hardcode_libdir_flag_spec='-L$libdir' |
| 7725 | hardcode_minus_L=yes |
| 7726 | # see comment about different semantics on the GNU ld section |
| 7727 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7728 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7729 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7730 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7731 | export_dynamic_flag_spec=-rdynamic |
| 7732 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7733 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7734 | cygwin* | mingw* | pw32*) |
| 7735 | # When not using gcc, we currently assume that we are using |
| 7736 | # Microsoft Visual C++. |
| 7737 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 7738 | # no search path for DLLs. |
| 7739 | hardcode_libdir_flag_spec=' ' |
| 7740 | allow_undefined_flag=unsupported |
| 7741 | # Tell ltmain to make .lib files, not .a files. |
| 7742 | libext=lib |
| 7743 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7744 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7745 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7746 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7747 | # The linker will automatically build a .lib file if we build a DLL. |
| 7748 | old_archive_From_new_cmds='true' |
| 7749 | # FIXME: Should let the user specify the lib program. |
| 7750 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 7751 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 7752 | enable_shared_with_static_runtimes=yes |
| 7753 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7754 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7755 | darwin* | rhapsody*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7756 | case "$host_os" in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7757 | rhapsody* | darwin1.[012]) |
| 7758 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 7759 | ;; |
| 7760 | *) # Darwin 1.3 on |
| 7761 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 7762 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 7763 | else |
| 7764 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 7765 | 10.[012]) |
| 7766 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 7767 | ;; |
| 7768 | 10.*) |
| 7769 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 7770 | ;; |
| 7771 | esac |
| 7772 | fi |
| 7773 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7774 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7775 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7776 | hardcode_direct=no |
| 7777 | hardcode_automatic=yes |
| 7778 | hardcode_shlibpath_var=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7779 | whole_archive_flag_spec='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7780 | link_all_deplibs=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7781 | if test "$GCC" = yes ; then |
| 7782 | output_verbose_link_cmd='echo' |
| 7783 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 7784 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 7785 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7786 | 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}' |
| 7787 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7788 | else |
| 7789 | case "$cc_basename" in |
| 7790 | xlc*) |
| 7791 | output_verbose_link_cmd='echo' |
| 7792 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 7793 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 7794 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7795 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7796 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7797 | ;; |
| 7798 | *) |
| 7799 | ld_shlibs=no |
| 7800 | ;; |
| 7801 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7802 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7803 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7804 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7805 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7806 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7807 | hardcode_libdir_flag_spec='-L$libdir' |
| 7808 | hardcode_shlibpath_var=no |
| 7809 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7810 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7811 | freebsd1*) |
| 7812 | ld_shlibs=no |
| 7813 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7814 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7815 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 7816 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 7817 | # does not break anything, and helps significantly (at the cost of a little |
| 7818 | # extra space). |
| 7819 | freebsd2.2*) |
| 7820 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 7821 | hardcode_libdir_flag_spec='-R$libdir' |
| 7822 | hardcode_direct=yes |
| 7823 | hardcode_shlibpath_var=no |
| 7824 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7825 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7826 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 7827 | freebsd2*) |
| 7828 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7829 | hardcode_direct=yes |
| 7830 | hardcode_minus_L=yes |
| 7831 | hardcode_shlibpath_var=no |
| 7832 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7833 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7834 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7835 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7836 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 7837 | hardcode_libdir_flag_spec='-R$libdir' |
| 7838 | hardcode_direct=yes |
| 7839 | hardcode_shlibpath_var=no |
| 7840 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7841 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7842 | hpux9*) |
| 7843 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7844 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7845 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7846 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7847 | fi |
| 7848 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7849 | hardcode_libdir_separator=: |
| 7850 | hardcode_direct=yes |
| 7851 | |
| 7852 | # hardcode_minus_L: Not really in the search PATH, |
| 7853 | # but as the default location of the library. |
| 7854 | hardcode_minus_L=yes |
| 7855 | export_dynamic_flag_spec='${wl}-E' |
| 7856 | ;; |
| 7857 | |
| 7858 | hpux10* | hpux11*) |
| 7859 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 7860 | case "$host_cpu" in |
| 7861 | hppa*64*|ia64*) |
| 7862 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7863 | ;; |
| 7864 | *) |
| 7865 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7866 | ;; |
| 7867 | esac |
| 7868 | else |
| 7869 | case "$host_cpu" in |
| 7870 | hppa*64*|ia64*) |
| 7871 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7872 | ;; |
| 7873 | *) |
| 7874 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 7875 | ;; |
| 7876 | esac |
| 7877 | fi |
| 7878 | if test "$with_gnu_ld" = no; then |
| 7879 | case "$host_cpu" in |
| 7880 | hppa*64*) |
| 7881 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7882 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 7883 | hardcode_libdir_separator=: |
| 7884 | hardcode_direct=no |
| 7885 | hardcode_shlibpath_var=no |
| 7886 | ;; |
| 7887 | ia64*) |
| 7888 | hardcode_libdir_flag_spec='-L$libdir' |
| 7889 | hardcode_direct=no |
| 7890 | hardcode_shlibpath_var=no |
| 7891 | |
| 7892 | # hardcode_minus_L: Not really in the search PATH, |
| 7893 | # but as the default location of the library. |
| 7894 | hardcode_minus_L=yes |
| 7895 | ;; |
| 7896 | *) |
| 7897 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7898 | hardcode_libdir_separator=: |
| 7899 | hardcode_direct=yes |
| 7900 | export_dynamic_flag_spec='${wl}-E' |
| 7901 | |
| 7902 | # hardcode_minus_L: Not really in the search PATH, |
| 7903 | # but as the default location of the library. |
| 7904 | hardcode_minus_L=yes |
| 7905 | ;; |
| 7906 | esac |
| 7907 | fi |
| 7908 | ;; |
| 7909 | |
| 7910 | irix5* | irix6* | nonstopux*) |
| 7911 | if test "$GCC" = yes; then |
| 7912 | 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' |
| 7913 | else |
| 7914 | 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' |
| 7915 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 7916 | fi |
| 7917 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7918 | hardcode_libdir_separator=: |
| 7919 | link_all_deplibs=yes |
| 7920 | ;; |
| 7921 | |
| 7922 | netbsd*) |
| 7923 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 7924 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 7925 | else |
| 7926 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 7927 | fi |
| 7928 | hardcode_libdir_flag_spec='-R$libdir' |
| 7929 | hardcode_direct=yes |
| 7930 | hardcode_shlibpath_var=no |
| 7931 | ;; |
| 7932 | |
| 7933 | newsos6) |
| 7934 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7935 | hardcode_direct=yes |
| 7936 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7937 | hardcode_libdir_separator=: |
| 7938 | hardcode_shlibpath_var=no |
| 7939 | ;; |
| 7940 | |
| 7941 | openbsd*) |
| 7942 | hardcode_direct=yes |
| 7943 | hardcode_shlibpath_var=no |
| 7944 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 7945 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7946 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7947 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7948 | export_dynamic_flag_spec='${wl}-E' |
| 7949 | else |
| 7950 | case $host_os in |
| 7951 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 7952 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7953 | hardcode_libdir_flag_spec='-R$libdir' |
| 7954 | ;; |
| 7955 | *) |
| 7956 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 7957 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7958 | ;; |
| 7959 | esac |
| 7960 | fi |
| 7961 | ;; |
| 7962 | |
| 7963 | os2*) |
| 7964 | hardcode_libdir_flag_spec='-L$libdir' |
| 7965 | hardcode_minus_L=yes |
| 7966 | allow_undefined_flag=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7967 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7968 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 7969 | ;; |
| 7970 | |
| 7971 | osf3*) |
| 7972 | if test "$GCC" = yes; then |
| 7973 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 7974 | 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' |
| 7975 | else |
| 7976 | allow_undefined_flag=' -expect_unresolved \*' |
| 7977 | 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' |
| 7978 | fi |
| 7979 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7980 | hardcode_libdir_separator=: |
| 7981 | ;; |
| 7982 | |
| 7983 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 7984 | if test "$GCC" = yes; then |
| 7985 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 7986 | 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' |
| 7987 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7988 | else |
| 7989 | allow_undefined_flag=' -expect_unresolved \*' |
| 7990 | 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' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7991 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 7992 | $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' |
| 7993 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7994 | # Both c and cxx compiler support -rpath directly |
| 7995 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 7996 | fi |
| 7997 | hardcode_libdir_separator=: |
| 7998 | ;; |
| 7999 | |
| 8000 | sco3.2v5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8001 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8002 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8003 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8004 | runpath_var=LD_RUN_PATH |
| 8005 | hardcode_runpath_var=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8006 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8007 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8008 | solaris*) |
| 8009 | no_undefined_flag=' -z text' |
| 8010 | if test "$GCC" = yes; then |
| 8011 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 8012 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 8013 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8014 | else |
| 8015 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 8016 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 8017 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8018 | fi |
| 8019 | hardcode_libdir_flag_spec='-R$libdir' |
| 8020 | hardcode_shlibpath_var=no |
| 8021 | case $host_os in |
| 8022 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 8023 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 8024 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 8025 | esac |
| 8026 | link_all_deplibs=yes |
| 8027 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8028 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8029 | sunos4*) |
| 8030 | if test "x$host_vendor" = xsequent; then |
| 8031 | # Use $CC to link under sequent, because it throws in some extra .o |
| 8032 | # files that make .init and .fini sections work. |
| 8033 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8034 | else |
| 8035 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 8036 | fi |
| 8037 | hardcode_libdir_flag_spec='-L$libdir' |
| 8038 | hardcode_direct=yes |
| 8039 | hardcode_minus_L=yes |
| 8040 | hardcode_shlibpath_var=no |
| 8041 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8042 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8043 | sysv4) |
| 8044 | case $host_vendor in |
| 8045 | sni) |
| 8046 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8047 | hardcode_direct=yes # is this really true??? |
| 8048 | ;; |
| 8049 | siemens) |
| 8050 | ## LD is ld it makes a PLAMLIB |
| 8051 | ## CC just makes a GrossModule. |
| 8052 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 8053 | reload_cmds='$CC -r -o $output$reload_objs' |
| 8054 | hardcode_direct=no |
| 8055 | ;; |
| 8056 | motorola) |
| 8057 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8058 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 8059 | ;; |
| 8060 | esac |
| 8061 | runpath_var='LD_RUN_PATH' |
| 8062 | hardcode_shlibpath_var=no |
| 8063 | ;; |
| 8064 | |
| 8065 | sysv4.3*) |
| 8066 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8067 | hardcode_shlibpath_var=no |
| 8068 | export_dynamic_flag_spec='-Bexport' |
| 8069 | ;; |
| 8070 | |
| 8071 | sysv4*MP*) |
| 8072 | if test -d /usr/nec; then |
| 8073 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8074 | hardcode_shlibpath_var=no |
| 8075 | runpath_var=LD_RUN_PATH |
| 8076 | hardcode_runpath_var=yes |
| 8077 | ld_shlibs=yes |
| 8078 | fi |
| 8079 | ;; |
| 8080 | |
| 8081 | sysv4.2uw2*) |
| 8082 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 8083 | hardcode_direct=yes |
| 8084 | hardcode_minus_L=no |
| 8085 | hardcode_shlibpath_var=no |
| 8086 | hardcode_runpath_var=yes |
| 8087 | runpath_var=LD_RUN_PATH |
| 8088 | ;; |
| 8089 | |
| 8090 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 8091 | no_undefined_flag='${wl}-z ${wl}text' |
| 8092 | if test "$GCC" = yes; then |
| 8093 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8094 | else |
| 8095 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8096 | fi |
| 8097 | runpath_var='LD_RUN_PATH' |
| 8098 | hardcode_shlibpath_var=no |
| 8099 | ;; |
| 8100 | |
| 8101 | sysv5*) |
| 8102 | no_undefined_flag=' -z text' |
| 8103 | # $CC -shared without GNU ld will not create a library from C++ |
| 8104 | # object files and a static libstdc++, better avoid it by now |
| 8105 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 8106 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 8107 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8108 | hardcode_libdir_flag_spec= |
| 8109 | hardcode_shlibpath_var=no |
| 8110 | runpath_var='LD_RUN_PATH' |
| 8111 | ;; |
| 8112 | |
| 8113 | uts4*) |
| 8114 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8115 | hardcode_libdir_flag_spec='-L$libdir' |
| 8116 | hardcode_shlibpath_var=no |
| 8117 | ;; |
| 8118 | |
| 8119 | *) |
| 8120 | ld_shlibs=no |
| 8121 | ;; |
| 8122 | esac |
| 8123 | fi |
| 8124 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8125 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 8126 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 8127 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8128 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8129 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 8130 | if test "$GCC" = yes; then |
| 8131 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 8132 | fi |
| 8133 | |
| 8134 | # |
| 8135 | # Do we need to explicitly link libc? |
| 8136 | # |
| 8137 | case "x$archive_cmds_need_lc" in |
| 8138 | x|xyes) |
| 8139 | # Assume -lc should be added |
| 8140 | archive_cmds_need_lc=yes |
| 8141 | |
| 8142 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 8143 | case $archive_cmds in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8144 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8145 | # FIXME: we may have to deal with multi-command sequences. |
| 8146 | ;; |
| 8147 | '$CC '*) |
| 8148 | # Test whether the compiler implicitly links with -lc since on some |
| 8149 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 8150 | # to ld, don't add -lc before -lgcc. |
| 8151 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 8152 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 8153 | $rm conftest* |
| 8154 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8155 | |
| 8156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8157 | (eval $ac_compile) 2>&5 |
| 8158 | ac_status=$? |
| 8159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8160 | (exit $ac_status); } 2>conftest.err; then |
| 8161 | soname=conftest |
| 8162 | lib=conftest |
| 8163 | libobjs=conftest.$ac_objext |
| 8164 | deplibs= |
| 8165 | wl=$lt_prog_compiler_wl |
| 8166 | compiler_flags=-v |
| 8167 | linker_flags=-v |
| 8168 | verstring= |
| 8169 | output_objdir=. |
| 8170 | libname=conftest |
| 8171 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 8172 | allow_undefined_flag= |
| 8173 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 8174 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 8175 | ac_status=$? |
| 8176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8177 | (exit $ac_status); } |
| 8178 | then |
| 8179 | archive_cmds_need_lc=no |
| 8180 | else |
| 8181 | archive_cmds_need_lc=yes |
| 8182 | fi |
| 8183 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 8184 | else |
| 8185 | cat conftest.err 1>&5 |
| 8186 | fi |
| 8187 | $rm conftest* |
| 8188 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 8189 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
| 8190 | ;; |
| 8191 | esac |
| 8192 | fi |
| 8193 | ;; |
| 8194 | esac |
| 8195 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8196 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8197 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 8198 | library_names_spec= |
| 8199 | libname_spec='lib$name' |
| 8200 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8201 | shrext_cmds=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8202 | postinstall_cmds= |
| 8203 | postuninstall_cmds= |
| 8204 | finish_cmds= |
| 8205 | finish_eval= |
| 8206 | shlibpath_var= |
| 8207 | shlibpath_overrides_runpath=unknown |
| 8208 | version_type=none |
| 8209 | dynamic_linker="$host_os ld.so" |
| 8210 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8211 | if test "$GCC" = yes; then |
| 8212 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8213 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8214 | # if the path contains ";" then we assume it to be the separator |
| 8215 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8216 | # assumed that no part of a normal pathname contains ";" but that should |
| 8217 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8218 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8219 | else |
| 8220 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8221 | fi |
| 8222 | else |
| 8223 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8224 | fi |
| 8225 | need_lib_prefix=unknown |
| 8226 | hardcode_into_libs=no |
| 8227 | |
| 8228 | # when you set need_version to no, make sure it does not cause -set_version |
| 8229 | # flags to be left without arguments |
| 8230 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8231 | |
| 8232 | case $host_os in |
| 8233 | aix3*) |
| 8234 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8235 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8236 | shlibpath_var=LIBPATH |
| 8237 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8238 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8239 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8240 | ;; |
| 8241 | |
| 8242 | aix4* | aix5*) |
| 8243 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8244 | need_lib_prefix=no |
| 8245 | need_version=no |
| 8246 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8247 | if test "$host_cpu" = ia64; then |
| 8248 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8249 | 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] | 8250 | shlibpath_var=LD_LIBRARY_PATH |
| 8251 | else |
| 8252 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8253 | # for dependence libraries. The import file would start with |
| 8254 | # the line `#! .'. This would cause the generated library to |
| 8255 | # depend on `.', always an invalid library. This was fixed in |
| 8256 | # development snapshots of GCC prior to 3.0. |
| 8257 | case $host_os in |
| 8258 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8259 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8260 | echo ' yes ' |
| 8261 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8262 | : |
| 8263 | else |
| 8264 | can_build_shared=no |
| 8265 | fi |
| 8266 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8267 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8268 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8269 | # soname into executable. Probably we can add versioning support to |
| 8270 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8271 | if test "$aix_use_runtimelinking" = yes; then |
| 8272 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8273 | # instead of lib<name>.a to let people know that these are not |
| 8274 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8275 | 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] | 8276 | else |
| 8277 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8278 | # and later when we are not doing run time linking. |
| 8279 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8280 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8281 | fi |
| 8282 | shlibpath_var=LIBPATH |
| 8283 | fi |
| 8284 | ;; |
| 8285 | |
| 8286 | amigaos*) |
| 8287 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8288 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8289 | 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' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8290 | ;; |
| 8291 | |
| 8292 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8293 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8294 | dynamic_linker="$host_os ld.so" |
| 8295 | shlibpath_var=LIBRARY_PATH |
| 8296 | ;; |
| 8297 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8298 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8299 | version_type=linux |
| 8300 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8301 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8302 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8303 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8304 | shlibpath_var=LD_LIBRARY_PATH |
| 8305 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8306 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8307 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8308 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8309 | # libtool to hard-code these into programs |
| 8310 | ;; |
| 8311 | |
| 8312 | cygwin* | mingw* | pw32*) |
| 8313 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8314 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8315 | need_version=no |
| 8316 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8317 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8318 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8319 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8320 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8321 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 8322 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8323 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8324 | dldir=$destdir/`dirname \$dlpath`~ |
| 8325 | test -d \$dldir || mkdir -p \$dldir~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8326 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 8327 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8328 | dlpath=$dir/\$dldll~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8329 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8330 | shlibpath_overrides_runpath=yes |
| 8331 | |
| 8332 | case $host_os in |
| 8333 | cygwin*) |
| 8334 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8335 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8336 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8337 | ;; |
| 8338 | mingw*) |
| 8339 | # MinGW DLLs use traditional 'lib' prefix |
| 8340 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8341 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8342 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 8343 | # It is most probably a Windows format PATH printed by |
| 8344 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8345 | # path with ; separators, and with drive letters. We can handle the |
| 8346 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8347 | # especially as we might pass files found there to a mingw objdump, |
| 8348 | # which wouldn't understand a cygwinified path. Ahh. |
| 8349 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8350 | else |
| 8351 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8352 | fi |
| 8353 | ;; |
| 8354 | pw32*) |
| 8355 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 8356 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 8357 | ;; |
| 8358 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8359 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8360 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8361 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8362 | 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] | 8363 | ;; |
| 8364 | esac |
| 8365 | dynamic_linker='Win32 ld.exe' |
| 8366 | # FIXME: first we should search . and the directory the executable is in |
| 8367 | shlibpath_var=PATH |
| 8368 | ;; |
| 8369 | |
| 8370 | darwin* | rhapsody*) |
| 8371 | dynamic_linker="$host_os dyld" |
| 8372 | version_type=darwin |
| 8373 | need_lib_prefix=no |
| 8374 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8375 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8376 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8377 | shlibpath_overrides_runpath=yes |
| 8378 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8379 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8380 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8381 | if test "$GCC" = yes; then |
| 8382 | 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"` |
| 8383 | else |
| 8384 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8385 | fi |
| 8386 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8387 | ;; |
| 8388 | |
| 8389 | dgux*) |
| 8390 | version_type=linux |
| 8391 | need_lib_prefix=no |
| 8392 | need_version=no |
| 8393 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8394 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8395 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8396 | ;; |
| 8397 | |
| 8398 | freebsd1*) |
| 8399 | dynamic_linker=no |
| 8400 | ;; |
| 8401 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8402 | kfreebsd*-gnu) |
| 8403 | version_type=linux |
| 8404 | need_lib_prefix=no |
| 8405 | need_version=no |
| 8406 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8407 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8408 | shlibpath_var=LD_LIBRARY_PATH |
| 8409 | shlibpath_overrides_runpath=no |
| 8410 | hardcode_into_libs=yes |
| 8411 | dynamic_linker='GNU ld.so' |
| 8412 | ;; |
| 8413 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8414 | freebsd*) |
| 8415 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 8416 | version_type=freebsd-$objformat |
| 8417 | case $version_type in |
| 8418 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8419 | 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] | 8420 | need_version=no |
| 8421 | need_lib_prefix=no |
| 8422 | ;; |
| 8423 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8424 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8425 | need_version=yes |
| 8426 | ;; |
| 8427 | esac |
| 8428 | shlibpath_var=LD_LIBRARY_PATH |
| 8429 | case $host_os in |
| 8430 | freebsd2*) |
| 8431 | shlibpath_overrides_runpath=yes |
| 8432 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8433 | freebsd3.01* | freebsdelf3.01*) |
| 8434 | shlibpath_overrides_runpath=yes |
| 8435 | hardcode_into_libs=yes |
| 8436 | ;; |
| 8437 | *) # from 3.2 on |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8438 | shlibpath_overrides_runpath=no |
| 8439 | hardcode_into_libs=yes |
| 8440 | ;; |
| 8441 | esac |
| 8442 | ;; |
| 8443 | |
| 8444 | gnu*) |
| 8445 | version_type=linux |
| 8446 | need_lib_prefix=no |
| 8447 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8448 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 8449 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8450 | shlibpath_var=LD_LIBRARY_PATH |
| 8451 | hardcode_into_libs=yes |
| 8452 | ;; |
| 8453 | |
| 8454 | hpux9* | hpux10* | hpux11*) |
| 8455 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 8456 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8457 | version_type=sunos |
| 8458 | need_lib_prefix=no |
| 8459 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8460 | case "$host_cpu" in |
| 8461 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8462 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8463 | hardcode_into_libs=yes |
| 8464 | dynamic_linker="$host_os dld.so" |
| 8465 | shlibpath_var=LD_LIBRARY_PATH |
| 8466 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8467 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8468 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8469 | if test "X$HPUX_IA64_MODE" = X32; then |
| 8470 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 8471 | else |
| 8472 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 8473 | fi |
| 8474 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8475 | ;; |
| 8476 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8477 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8478 | hardcode_into_libs=yes |
| 8479 | dynamic_linker="$host_os dld.sl" |
| 8480 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 8481 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8483 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8484 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 8485 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8486 | ;; |
| 8487 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8488 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8489 | dynamic_linker="$host_os dld.sl" |
| 8490 | shlibpath_var=SHLIB_PATH |
| 8491 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 8492 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8493 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8494 | ;; |
| 8495 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8496 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 8497 | postinstall_cmds='chmod 555 $lib' |
| 8498 | ;; |
| 8499 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8500 | irix5* | irix6* | nonstopux*) |
| 8501 | case $host_os in |
| 8502 | nonstopux*) version_type=nonstopux ;; |
| 8503 | *) |
| 8504 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 8505 | version_type=linux |
| 8506 | else |
| 8507 | version_type=irix |
| 8508 | fi ;; |
| 8509 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8510 | need_lib_prefix=no |
| 8511 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8512 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8513 | 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] | 8514 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8515 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8516 | libsuff= shlibsuff= |
| 8517 | ;; |
| 8518 | *) |
| 8519 | 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] | 8520 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 8521 | libsuff= shlibsuff= libmagic=32-bit;; |
| 8522 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 8523 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 8524 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 8525 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8526 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 8527 | esac |
| 8528 | ;; |
| 8529 | esac |
| 8530 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 8531 | shlibpath_overrides_runpath=no |
| 8532 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 8533 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8534 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8535 | ;; |
| 8536 | |
| 8537 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8538 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8539 | dynamic_linker=no |
| 8540 | ;; |
| 8541 | |
| 8542 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8543 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8544 | version_type=linux |
| 8545 | need_lib_prefix=no |
| 8546 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8547 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8548 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8549 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 8550 | shlibpath_var=LD_LIBRARY_PATH |
| 8551 | shlibpath_overrides_runpath=no |
| 8552 | # This implies no fast_install, which is unacceptable. |
| 8553 | # Some rework will be needed to allow for fast_install |
| 8554 | # before this can be enabled. |
| 8555 | hardcode_into_libs=yes |
| 8556 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8557 | # Append ld.so.conf contents to the search path |
| 8558 | if test -f /etc/ld.so.conf; then |
| 8559 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 8560 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 8561 | fi |
| 8562 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8563 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 8564 | # powerpc, because MkLinux only supported shared libraries with the |
| 8565 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 8566 | # most powerpc-linux boxes support dynamic linking these days and |
| 8567 | # people can always --disable-shared, the test was removed, and we |
| 8568 | # assume the GNU/Linux dynamic linker is in use. |
| 8569 | dynamic_linker='GNU/Linux ld.so' |
| 8570 | ;; |
| 8571 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8572 | knetbsd*-gnu) |
| 8573 | version_type=linux |
| 8574 | need_lib_prefix=no |
| 8575 | need_version=no |
| 8576 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8577 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8578 | shlibpath_var=LD_LIBRARY_PATH |
| 8579 | shlibpath_overrides_runpath=no |
| 8580 | hardcode_into_libs=yes |
| 8581 | dynamic_linker='GNU ld.so' |
| 8582 | ;; |
| 8583 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8584 | netbsd*) |
| 8585 | version_type=sunos |
| 8586 | need_lib_prefix=no |
| 8587 | need_version=no |
| 8588 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8589 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8590 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8591 | dynamic_linker='NetBSD (a.out) ld.so' |
| 8592 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8593 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8594 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8595 | dynamic_linker='NetBSD ld.elf_so' |
| 8596 | fi |
| 8597 | shlibpath_var=LD_LIBRARY_PATH |
| 8598 | shlibpath_overrides_runpath=yes |
| 8599 | hardcode_into_libs=yes |
| 8600 | ;; |
| 8601 | |
| 8602 | newsos6) |
| 8603 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8604 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8605 | shlibpath_var=LD_LIBRARY_PATH |
| 8606 | shlibpath_overrides_runpath=yes |
| 8607 | ;; |
| 8608 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8609 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8610 | version_type=linux |
| 8611 | need_lib_prefix=no |
| 8612 | need_version=no |
| 8613 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8614 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8615 | shlibpath_var=LD_LIBRARY_PATH |
| 8616 | shlibpath_overrides_runpath=yes |
| 8617 | ;; |
| 8618 | |
| 8619 | openbsd*) |
| 8620 | version_type=sunos |
| 8621 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8622 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8623 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 8624 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8625 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8626 | 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] | 8627 | case $host_os in |
| 8628 | openbsd2.[89] | openbsd2.[89].*) |
| 8629 | shlibpath_overrides_runpath=no |
| 8630 | ;; |
| 8631 | *) |
| 8632 | shlibpath_overrides_runpath=yes |
| 8633 | ;; |
| 8634 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8635 | else |
| 8636 | shlibpath_overrides_runpath=yes |
| 8637 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8638 | ;; |
| 8639 | |
| 8640 | os2*) |
| 8641 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8642 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8643 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8644 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8645 | dynamic_linker='OS/2 ld.exe' |
| 8646 | shlibpath_var=LIBPATH |
| 8647 | ;; |
| 8648 | |
| 8649 | osf3* | osf4* | osf5*) |
| 8650 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8651 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8652 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8653 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8654 | 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] | 8655 | shlibpath_var=LD_LIBRARY_PATH |
| 8656 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 8657 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 8658 | ;; |
| 8659 | |
| 8660 | sco3.2v5*) |
| 8661 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8662 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8663 | 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] | 8664 | shlibpath_var=LD_LIBRARY_PATH |
| 8665 | ;; |
| 8666 | |
| 8667 | solaris*) |
| 8668 | version_type=linux |
| 8669 | need_lib_prefix=no |
| 8670 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8671 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8672 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8673 | shlibpath_var=LD_LIBRARY_PATH |
| 8674 | shlibpath_overrides_runpath=yes |
| 8675 | hardcode_into_libs=yes |
| 8676 | # ldd complains unless libraries are executable |
| 8677 | postinstall_cmds='chmod +x $lib' |
| 8678 | ;; |
| 8679 | |
| 8680 | sunos4*) |
| 8681 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8682 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8683 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 8684 | shlibpath_var=LD_LIBRARY_PATH |
| 8685 | shlibpath_overrides_runpath=yes |
| 8686 | if test "$with_gnu_ld" = yes; then |
| 8687 | need_lib_prefix=no |
| 8688 | fi |
| 8689 | need_version=yes |
| 8690 | ;; |
| 8691 | |
| 8692 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 8693 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8694 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8695 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8696 | shlibpath_var=LD_LIBRARY_PATH |
| 8697 | case $host_vendor in |
| 8698 | sni) |
| 8699 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8700 | need_lib_prefix=no |
| 8701 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 8702 | runpath_var=LD_RUN_PATH |
| 8703 | ;; |
| 8704 | siemens) |
| 8705 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8706 | ;; |
| 8707 | motorola) |
| 8708 | need_lib_prefix=no |
| 8709 | need_version=no |
| 8710 | shlibpath_overrides_runpath=no |
| 8711 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 8712 | ;; |
| 8713 | esac |
| 8714 | ;; |
| 8715 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8716 | sysv4*MP*) |
| 8717 | if test -d /usr/nec ;then |
| 8718 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8719 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 8720 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8721 | shlibpath_var=LD_LIBRARY_PATH |
| 8722 | fi |
| 8723 | ;; |
| 8724 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8725 | uts4*) |
| 8726 | version_type=linux |
| 8727 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8728 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8729 | shlibpath_var=LD_LIBRARY_PATH |
| 8730 | ;; |
| 8731 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8732 | *) |
| 8733 | dynamic_linker=no |
| 8734 | ;; |
| 8735 | esac |
| 8736 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 8737 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 8738 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8739 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8740 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 8741 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 8742 | hardcode_action= |
| 8743 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 8744 | test -n "$runpath_var" || \ |
| 8745 | test "X$hardcode_automatic" = "Xyes" ; then |
| 8746 | |
| 8747 | # We can hardcode non-existant directories. |
| 8748 | if test "$hardcode_direct" != no && |
| 8749 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 8750 | # have to relink, otherwise we might link with an installed library |
| 8751 | # when we should be linking with a yet-to-be-installed one |
| 8752 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 8753 | test "$hardcode_minus_L" != no; then |
| 8754 | # Linking always hardcodes the temporary library directory. |
| 8755 | hardcode_action=relink |
| 8756 | else |
| 8757 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 8758 | hardcode_action=immediate |
| 8759 | fi |
| 8760 | else |
| 8761 | # We cannot hardcode anything, or else we can only hardcode existing |
| 8762 | # directories. |
| 8763 | hardcode_action=unsupported |
| 8764 | fi |
| 8765 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 8766 | echo "${ECHO_T}$hardcode_action" >&6 |
| 8767 | |
| 8768 | if test "$hardcode_action" = relink; then |
| 8769 | # Fast installation is not supported |
| 8770 | enable_fast_install=no |
| 8771 | elif test "$shlibpath_overrides_runpath" = yes || |
| 8772 | test "$enable_shared" = no; then |
| 8773 | # Fast installation is not necessary |
| 8774 | enable_fast_install=needless |
| 8775 | fi |
| 8776 | |
| 8777 | striplib= |
| 8778 | old_striplib= |
| 8779 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 8780 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 8781 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 8782 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 8783 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 8784 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8785 | echo "${ECHO_T}yes" >&6 |
| 8786 | else |
| 8787 | # FIXME - insert some real tests, host_os isn't really good enough |
| 8788 | case $host_os in |
| 8789 | darwin*) |
| 8790 | if test -n "$STRIP" ; then |
| 8791 | striplib="$STRIP -x" |
| 8792 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8793 | echo "${ECHO_T}yes" >&6 |
| 8794 | else |
| 8795 | echo "$as_me:$LINENO: result: no" >&5 |
| 8796 | echo "${ECHO_T}no" >&6 |
| 8797 | fi |
| 8798 | ;; |
| 8799 | *) |
| 8800 | echo "$as_me:$LINENO: result: no" >&5 |
| 8801 | echo "${ECHO_T}no" >&6 |
| 8802 | ;; |
| 8803 | esac |
| 8804 | fi |
| 8805 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8806 | if test "x$enable_dlopen" != xyes; then |
| 8807 | enable_dlopen=unknown |
| 8808 | enable_dlopen_self=unknown |
| 8809 | enable_dlopen_self_static=unknown |
| 8810 | else |
| 8811 | lt_cv_dlopen=no |
| 8812 | lt_cv_dlopen_libs= |
| 8813 | |
| 8814 | case $host_os in |
| 8815 | beos*) |
| 8816 | lt_cv_dlopen="load_add_on" |
| 8817 | lt_cv_dlopen_libs= |
| 8818 | lt_cv_dlopen_self=yes |
| 8819 | ;; |
| 8820 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8821 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8822 | lt_cv_dlopen="LoadLibrary" |
| 8823 | lt_cv_dlopen_libs= |
| 8824 | ;; |
| 8825 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8826 | cygwin*) |
| 8827 | lt_cv_dlopen="dlopen" |
| 8828 | lt_cv_dlopen_libs= |
| 8829 | ;; |
| 8830 | |
| 8831 | darwin*) |
| 8832 | # if libdl is installed we need to link against it |
| 8833 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 8834 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 8835 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 8836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8837 | else |
| 8838 | ac_check_lib_save_LIBS=$LIBS |
| 8839 | LIBS="-ldl $LIBS" |
| 8840 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8841 | /* confdefs.h. */ |
| 8842 | _ACEOF |
| 8843 | cat confdefs.h >>conftest.$ac_ext |
| 8844 | cat >>conftest.$ac_ext <<_ACEOF |
| 8845 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8846 | |
| 8847 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8848 | #ifdef __cplusplus |
| 8849 | extern "C" |
| 8850 | #endif |
| 8851 | /* We use char because int might match the return type of a gcc2 |
| 8852 | builtin and then its argument prototype would still apply. */ |
| 8853 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8854 | int |
| 8855 | main () |
| 8856 | { |
| 8857 | dlopen (); |
| 8858 | ; |
| 8859 | return 0; |
| 8860 | } |
| 8861 | _ACEOF |
| 8862 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8863 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8864 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8865 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8866 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8867 | rm -f conftest.er1 |
| 8868 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8870 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8871 | { ac_try='test -z "$ac_c_werror_flag" |
| 8872 | || test ! -s conftest.err' |
| 8873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8874 | (eval $ac_try) 2>&5 |
| 8875 | ac_status=$? |
| 8876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8877 | (exit $ac_status); }; } && |
| 8878 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8880 | (eval $ac_try) 2>&5 |
| 8881 | ac_status=$? |
| 8882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8883 | (exit $ac_status); }; }; then |
| 8884 | ac_cv_lib_dl_dlopen=yes |
| 8885 | else |
| 8886 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8888 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8889 | ac_cv_lib_dl_dlopen=no |
| 8890 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8891 | rm -f conftest.err conftest.$ac_objext \ |
| 8892 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8893 | LIBS=$ac_check_lib_save_LIBS |
| 8894 | fi |
| 8895 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8896 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 8897 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8898 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 8899 | else |
| 8900 | |
| 8901 | lt_cv_dlopen="dyld" |
| 8902 | lt_cv_dlopen_libs= |
| 8903 | lt_cv_dlopen_self=yes |
| 8904 | |
| 8905 | fi |
| 8906 | |
| 8907 | ;; |
| 8908 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8909 | *) |
| 8910 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 8911 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 8912 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 8913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8914 | else |
| 8915 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8916 | /* confdefs.h. */ |
| 8917 | _ACEOF |
| 8918 | cat confdefs.h >>conftest.$ac_ext |
| 8919 | cat >>conftest.$ac_ext <<_ACEOF |
| 8920 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8921 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 8922 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8923 | #define shl_load innocuous_shl_load |
| 8924 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8925 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8926 | which can conflict with char shl_load (); below. |
| 8927 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8928 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8929 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8930 | #ifdef __STDC__ |
| 8931 | # include <limits.h> |
| 8932 | #else |
| 8933 | # include <assert.h> |
| 8934 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8935 | |
| 8936 | #undef shl_load |
| 8937 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8938 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8939 | #ifdef __cplusplus |
| 8940 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8941 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8942 | #endif |
| 8943 | /* We use char because int might match the return type of a gcc2 |
| 8944 | builtin and then its argument prototype would still apply. */ |
| 8945 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8946 | /* The GNU C library defines this for functions which it implements |
| 8947 | to always fail with ENOSYS. Some functions are actually named |
| 8948 | something starting with __ and the normal name is an alias. */ |
| 8949 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 8950 | choke me |
| 8951 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8952 | char (*f) () = shl_load; |
| 8953 | #endif |
| 8954 | #ifdef __cplusplus |
| 8955 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8956 | #endif |
| 8957 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8958 | int |
| 8959 | main () |
| 8960 | { |
| 8961 | return f != shl_load; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8962 | ; |
| 8963 | return 0; |
| 8964 | } |
| 8965 | _ACEOF |
| 8966 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8967 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8968 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8969 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8970 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8971 | rm -f conftest.er1 |
| 8972 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8974 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8975 | { ac_try='test -z "$ac_c_werror_flag" |
| 8976 | || test ! -s conftest.err' |
| 8977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8978 | (eval $ac_try) 2>&5 |
| 8979 | ac_status=$? |
| 8980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8981 | (exit $ac_status); }; } && |
| 8982 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8984 | (eval $ac_try) 2>&5 |
| 8985 | ac_status=$? |
| 8986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8987 | (exit $ac_status); }; }; then |
| 8988 | ac_cv_func_shl_load=yes |
| 8989 | else |
| 8990 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8992 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8993 | ac_cv_func_shl_load=no |
| 8994 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8995 | rm -f conftest.err conftest.$ac_objext \ |
| 8996 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8997 | fi |
| 8998 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 8999 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 9000 | if test $ac_cv_func_shl_load = yes; then |
| 9001 | lt_cv_dlopen="shl_load" |
| 9002 | else |
| 9003 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9004 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 9005 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9007 | else |
| 9008 | ac_check_lib_save_LIBS=$LIBS |
| 9009 | LIBS="-ldld $LIBS" |
| 9010 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9011 | /* confdefs.h. */ |
| 9012 | _ACEOF |
| 9013 | cat confdefs.h >>conftest.$ac_ext |
| 9014 | cat >>conftest.$ac_ext <<_ACEOF |
| 9015 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9016 | |
| 9017 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9018 | #ifdef __cplusplus |
| 9019 | extern "C" |
| 9020 | #endif |
| 9021 | /* We use char because int might match the return type of a gcc2 |
| 9022 | builtin and then its argument prototype would still apply. */ |
| 9023 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9024 | int |
| 9025 | main () |
| 9026 | { |
| 9027 | shl_load (); |
| 9028 | ; |
| 9029 | return 0; |
| 9030 | } |
| 9031 | _ACEOF |
| 9032 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9034 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9035 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9036 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9037 | rm -f conftest.er1 |
| 9038 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9040 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9041 | { ac_try='test -z "$ac_c_werror_flag" |
| 9042 | || test ! -s conftest.err' |
| 9043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9044 | (eval $ac_try) 2>&5 |
| 9045 | ac_status=$? |
| 9046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9047 | (exit $ac_status); }; } && |
| 9048 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9050 | (eval $ac_try) 2>&5 |
| 9051 | ac_status=$? |
| 9052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9053 | (exit $ac_status); }; }; then |
| 9054 | ac_cv_lib_dld_shl_load=yes |
| 9055 | else |
| 9056 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9058 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9059 | ac_cv_lib_dld_shl_load=no |
| 9060 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9061 | rm -f conftest.err conftest.$ac_objext \ |
| 9062 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9063 | LIBS=$ac_check_lib_save_LIBS |
| 9064 | fi |
| 9065 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9066 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9067 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9068 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 9069 | else |
| 9070 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 9071 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 9072 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 9073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9074 | else |
| 9075 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9076 | /* confdefs.h. */ |
| 9077 | _ACEOF |
| 9078 | cat confdefs.h >>conftest.$ac_ext |
| 9079 | cat >>conftest.$ac_ext <<_ACEOF |
| 9080 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9081 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 9082 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9083 | #define dlopen innocuous_dlopen |
| 9084 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9085 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9086 | which can conflict with char dlopen (); below. |
| 9087 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9088 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9089 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9090 | #ifdef __STDC__ |
| 9091 | # include <limits.h> |
| 9092 | #else |
| 9093 | # include <assert.h> |
| 9094 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9095 | |
| 9096 | #undef dlopen |
| 9097 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9098 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9099 | #ifdef __cplusplus |
| 9100 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9101 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9102 | #endif |
| 9103 | /* We use char because int might match the return type of a gcc2 |
| 9104 | builtin and then its argument prototype would still apply. */ |
| 9105 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9106 | /* The GNU C library defines this for functions which it implements |
| 9107 | to always fail with ENOSYS. Some functions are actually named |
| 9108 | something starting with __ and the normal name is an alias. */ |
| 9109 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 9110 | choke me |
| 9111 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9112 | char (*f) () = dlopen; |
| 9113 | #endif |
| 9114 | #ifdef __cplusplus |
| 9115 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9116 | #endif |
| 9117 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9118 | int |
| 9119 | main () |
| 9120 | { |
| 9121 | return f != dlopen; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9122 | ; |
| 9123 | return 0; |
| 9124 | } |
| 9125 | _ACEOF |
| 9126 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9128 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9129 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9131 | rm -f conftest.er1 |
| 9132 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9134 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9135 | { ac_try='test -z "$ac_c_werror_flag" |
| 9136 | || test ! -s conftest.err' |
| 9137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9138 | (eval $ac_try) 2>&5 |
| 9139 | ac_status=$? |
| 9140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9141 | (exit $ac_status); }; } && |
| 9142 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9144 | (eval $ac_try) 2>&5 |
| 9145 | ac_status=$? |
| 9146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9147 | (exit $ac_status); }; }; then |
| 9148 | ac_cv_func_dlopen=yes |
| 9149 | else |
| 9150 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9152 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9153 | ac_cv_func_dlopen=no |
| 9154 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9155 | rm -f conftest.err conftest.$ac_objext \ |
| 9156 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9157 | fi |
| 9158 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 9159 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 9160 | if test $ac_cv_func_dlopen = yes; then |
| 9161 | lt_cv_dlopen="dlopen" |
| 9162 | else |
| 9163 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9164 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 9165 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9167 | else |
| 9168 | ac_check_lib_save_LIBS=$LIBS |
| 9169 | LIBS="-ldl $LIBS" |
| 9170 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9171 | /* confdefs.h. */ |
| 9172 | _ACEOF |
| 9173 | cat confdefs.h >>conftest.$ac_ext |
| 9174 | cat >>conftest.$ac_ext <<_ACEOF |
| 9175 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9176 | |
| 9177 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9178 | #ifdef __cplusplus |
| 9179 | extern "C" |
| 9180 | #endif |
| 9181 | /* We use char because int might match the return type of a gcc2 |
| 9182 | builtin and then its argument prototype would still apply. */ |
| 9183 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9184 | int |
| 9185 | main () |
| 9186 | { |
| 9187 | dlopen (); |
| 9188 | ; |
| 9189 | return 0; |
| 9190 | } |
| 9191 | _ACEOF |
| 9192 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9194 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9195 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9197 | rm -f conftest.er1 |
| 9198 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9200 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9201 | { ac_try='test -z "$ac_c_werror_flag" |
| 9202 | || test ! -s conftest.err' |
| 9203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9204 | (eval $ac_try) 2>&5 |
| 9205 | ac_status=$? |
| 9206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9207 | (exit $ac_status); }; } && |
| 9208 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9210 | (eval $ac_try) 2>&5 |
| 9211 | ac_status=$? |
| 9212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9213 | (exit $ac_status); }; }; then |
| 9214 | ac_cv_lib_dl_dlopen=yes |
| 9215 | else |
| 9216 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9218 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9219 | ac_cv_lib_dl_dlopen=no |
| 9220 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9221 | rm -f conftest.err conftest.$ac_objext \ |
| 9222 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9223 | LIBS=$ac_check_lib_save_LIBS |
| 9224 | fi |
| 9225 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9226 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 9227 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9228 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 9229 | else |
| 9230 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 9231 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 9232 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 9233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9234 | else |
| 9235 | ac_check_lib_save_LIBS=$LIBS |
| 9236 | LIBS="-lsvld $LIBS" |
| 9237 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9238 | /* confdefs.h. */ |
| 9239 | _ACEOF |
| 9240 | cat confdefs.h >>conftest.$ac_ext |
| 9241 | cat >>conftest.$ac_ext <<_ACEOF |
| 9242 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9243 | |
| 9244 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9245 | #ifdef __cplusplus |
| 9246 | extern "C" |
| 9247 | #endif |
| 9248 | /* We use char because int might match the return type of a gcc2 |
| 9249 | builtin and then its argument prototype would still apply. */ |
| 9250 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9251 | int |
| 9252 | main () |
| 9253 | { |
| 9254 | dlopen (); |
| 9255 | ; |
| 9256 | return 0; |
| 9257 | } |
| 9258 | _ACEOF |
| 9259 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9261 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9262 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9264 | rm -f conftest.er1 |
| 9265 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9267 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9268 | { ac_try='test -z "$ac_c_werror_flag" |
| 9269 | || test ! -s conftest.err' |
| 9270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9271 | (eval $ac_try) 2>&5 |
| 9272 | ac_status=$? |
| 9273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9274 | (exit $ac_status); }; } && |
| 9275 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9277 | (eval $ac_try) 2>&5 |
| 9278 | ac_status=$? |
| 9279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9280 | (exit $ac_status); }; }; then |
| 9281 | ac_cv_lib_svld_dlopen=yes |
| 9282 | else |
| 9283 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9285 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9286 | ac_cv_lib_svld_dlopen=no |
| 9287 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9288 | rm -f conftest.err conftest.$ac_objext \ |
| 9289 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9290 | LIBS=$ac_check_lib_save_LIBS |
| 9291 | fi |
| 9292 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 9293 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 9294 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 9295 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 9296 | else |
| 9297 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 9298 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 9299 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 9300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9301 | else |
| 9302 | ac_check_lib_save_LIBS=$LIBS |
| 9303 | LIBS="-ldld $LIBS" |
| 9304 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9305 | /* confdefs.h. */ |
| 9306 | _ACEOF |
| 9307 | cat confdefs.h >>conftest.$ac_ext |
| 9308 | cat >>conftest.$ac_ext <<_ACEOF |
| 9309 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9310 | |
| 9311 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9312 | #ifdef __cplusplus |
| 9313 | extern "C" |
| 9314 | #endif |
| 9315 | /* We use char because int might match the return type of a gcc2 |
| 9316 | builtin and then its argument prototype would still apply. */ |
| 9317 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9318 | int |
| 9319 | main () |
| 9320 | { |
| 9321 | dld_link (); |
| 9322 | ; |
| 9323 | return 0; |
| 9324 | } |
| 9325 | _ACEOF |
| 9326 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9328 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9329 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9330 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9331 | rm -f conftest.er1 |
| 9332 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9334 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9335 | { ac_try='test -z "$ac_c_werror_flag" |
| 9336 | || test ! -s conftest.err' |
| 9337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9338 | (eval $ac_try) 2>&5 |
| 9339 | ac_status=$? |
| 9340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9341 | (exit $ac_status); }; } && |
| 9342 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9344 | (eval $ac_try) 2>&5 |
| 9345 | ac_status=$? |
| 9346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9347 | (exit $ac_status); }; }; then |
| 9348 | ac_cv_lib_dld_dld_link=yes |
| 9349 | else |
| 9350 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9352 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9353 | ac_cv_lib_dld_dld_link=no |
| 9354 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9355 | rm -f conftest.err conftest.$ac_objext \ |
| 9356 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9357 | LIBS=$ac_check_lib_save_LIBS |
| 9358 | fi |
| 9359 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 9360 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 9361 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 9362 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 9363 | fi |
| 9364 | |
| 9365 | |
| 9366 | fi |
| 9367 | |
| 9368 | |
| 9369 | fi |
| 9370 | |
| 9371 | |
| 9372 | fi |
| 9373 | |
| 9374 | |
| 9375 | fi |
| 9376 | |
| 9377 | |
| 9378 | fi |
| 9379 | |
| 9380 | ;; |
| 9381 | esac |
| 9382 | |
| 9383 | if test "x$lt_cv_dlopen" != xno; then |
| 9384 | enable_dlopen=yes |
| 9385 | else |
| 9386 | enable_dlopen=no |
| 9387 | fi |
| 9388 | |
| 9389 | case $lt_cv_dlopen in |
| 9390 | dlopen) |
| 9391 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9392 | 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] | 9393 | |
| 9394 | save_LDFLAGS="$LDFLAGS" |
| 9395 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 9396 | |
| 9397 | save_LIBS="$LIBS" |
| 9398 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 9399 | |
| 9400 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 9401 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 9402 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 9403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9404 | else |
| 9405 | if test "$cross_compiling" = yes; then : |
| 9406 | lt_cv_dlopen_self=cross |
| 9407 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9408 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9409 | lt_status=$lt_dlunknown |
| 9410 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 9411 | #line 9411 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9412 | #include "confdefs.h" |
| 9413 | |
| 9414 | #if HAVE_DLFCN_H |
| 9415 | #include <dlfcn.h> |
| 9416 | #endif |
| 9417 | |
| 9418 | #include <stdio.h> |
| 9419 | |
| 9420 | #ifdef RTLD_GLOBAL |
| 9421 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 9422 | #else |
| 9423 | # ifdef DL_GLOBAL |
| 9424 | # define LT_DLGLOBAL DL_GLOBAL |
| 9425 | # else |
| 9426 | # define LT_DLGLOBAL 0 |
| 9427 | # endif |
| 9428 | #endif |
| 9429 | |
| 9430 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 9431 | find out it does not work in some platform. */ |
| 9432 | #ifndef LT_DLLAZY_OR_NOW |
| 9433 | # ifdef RTLD_LAZY |
| 9434 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 9435 | # else |
| 9436 | # ifdef DL_LAZY |
| 9437 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 9438 | # else |
| 9439 | # ifdef RTLD_NOW |
| 9440 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 9441 | # else |
| 9442 | # ifdef DL_NOW |
| 9443 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 9444 | # else |
| 9445 | # define LT_DLLAZY_OR_NOW 0 |
| 9446 | # endif |
| 9447 | # endif |
| 9448 | # endif |
| 9449 | # endif |
| 9450 | #endif |
| 9451 | |
| 9452 | #ifdef __cplusplus |
| 9453 | extern "C" void exit (int); |
| 9454 | #endif |
| 9455 | |
| 9456 | void fnord() { int i=42;} |
| 9457 | int main () |
| 9458 | { |
| 9459 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 9460 | int status = $lt_dlunknown; |
| 9461 | |
| 9462 | if (self) |
| 9463 | { |
| 9464 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 9465 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 9466 | /* dlclose (self); */ |
| 9467 | } |
| 9468 | |
| 9469 | exit (status); |
| 9470 | } |
| 9471 | EOF |
| 9472 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9473 | (eval $ac_link) 2>&5 |
| 9474 | ac_status=$? |
| 9475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9476 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 9477 | (./conftest; exit; ) 2>/dev/null |
| 9478 | lt_status=$? |
| 9479 | case x$lt_status in |
| 9480 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 9481 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 9482 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 9483 | esac |
| 9484 | else : |
| 9485 | # compilation failed |
| 9486 | lt_cv_dlopen_self=no |
| 9487 | fi |
| 9488 | fi |
| 9489 | rm -fr conftest* |
| 9490 | |
| 9491 | |
| 9492 | fi |
| 9493 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 9494 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 9495 | |
| 9496 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 9497 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 9498 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 9499 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 9500 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 9501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9502 | else |
| 9503 | if test "$cross_compiling" = yes; then : |
| 9504 | lt_cv_dlopen_self_static=cross |
| 9505 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9506 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9507 | lt_status=$lt_dlunknown |
| 9508 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 9509 | #line 9509 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9510 | #include "confdefs.h" |
| 9511 | |
| 9512 | #if HAVE_DLFCN_H |
| 9513 | #include <dlfcn.h> |
| 9514 | #endif |
| 9515 | |
| 9516 | #include <stdio.h> |
| 9517 | |
| 9518 | #ifdef RTLD_GLOBAL |
| 9519 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 9520 | #else |
| 9521 | # ifdef DL_GLOBAL |
| 9522 | # define LT_DLGLOBAL DL_GLOBAL |
| 9523 | # else |
| 9524 | # define LT_DLGLOBAL 0 |
| 9525 | # endif |
| 9526 | #endif |
| 9527 | |
| 9528 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 9529 | find out it does not work in some platform. */ |
| 9530 | #ifndef LT_DLLAZY_OR_NOW |
| 9531 | # ifdef RTLD_LAZY |
| 9532 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 9533 | # else |
| 9534 | # ifdef DL_LAZY |
| 9535 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 9536 | # else |
| 9537 | # ifdef RTLD_NOW |
| 9538 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 9539 | # else |
| 9540 | # ifdef DL_NOW |
| 9541 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 9542 | # else |
| 9543 | # define LT_DLLAZY_OR_NOW 0 |
| 9544 | # endif |
| 9545 | # endif |
| 9546 | # endif |
| 9547 | # endif |
| 9548 | #endif |
| 9549 | |
| 9550 | #ifdef __cplusplus |
| 9551 | extern "C" void exit (int); |
| 9552 | #endif |
| 9553 | |
| 9554 | void fnord() { int i=42;} |
| 9555 | int main () |
| 9556 | { |
| 9557 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 9558 | int status = $lt_dlunknown; |
| 9559 | |
| 9560 | if (self) |
| 9561 | { |
| 9562 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 9563 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 9564 | /* dlclose (self); */ |
| 9565 | } |
| 9566 | |
| 9567 | exit (status); |
| 9568 | } |
| 9569 | EOF |
| 9570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9571 | (eval $ac_link) 2>&5 |
| 9572 | ac_status=$? |
| 9573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9574 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 9575 | (./conftest; exit; ) 2>/dev/null |
| 9576 | lt_status=$? |
| 9577 | case x$lt_status in |
| 9578 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 9579 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 9580 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 9581 | esac |
| 9582 | else : |
| 9583 | # compilation failed |
| 9584 | lt_cv_dlopen_self_static=no |
| 9585 | fi |
| 9586 | fi |
| 9587 | rm -fr conftest* |
| 9588 | |
| 9589 | |
| 9590 | fi |
| 9591 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 9592 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 9593 | fi |
| 9594 | |
| 9595 | CPPFLAGS="$save_CPPFLAGS" |
| 9596 | LDFLAGS="$save_LDFLAGS" |
| 9597 | LIBS="$save_LIBS" |
| 9598 | ;; |
| 9599 | esac |
| 9600 | |
| 9601 | case $lt_cv_dlopen_self in |
| 9602 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 9603 | *) enable_dlopen_self=unknown ;; |
| 9604 | esac |
| 9605 | |
| 9606 | case $lt_cv_dlopen_self_static in |
| 9607 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 9608 | *) enable_dlopen_self_static=unknown ;; |
| 9609 | esac |
| 9610 | fi |
| 9611 | |
| 9612 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9613 | # Report which librarie types wil actually be built |
| 9614 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 9615 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 9616 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 9617 | echo "${ECHO_T}$can_build_shared" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9618 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9619 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 9620 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 9621 | test "$can_build_shared" = "no" && enable_shared=no |
| 9622 | |
| 9623 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 9624 | # are all built from PIC. |
| 9625 | case "$host_os" in |
| 9626 | aix3*) |
| 9627 | test "$enable_shared" = yes && enable_static=no |
| 9628 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 9629 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9630 | postinstall_cmds='$RANLIB $lib' |
| 9631 | fi |
| 9632 | ;; |
| 9633 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9634 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9635 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 9636 | test "$enable_shared" = yes && enable_static=no |
| 9637 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9638 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9639 | esac |
| 9640 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 9641 | echo "${ECHO_T}$enable_shared" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9642 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9643 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 9644 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 9645 | # Make sure either enable_shared or enable_static is yes. |
| 9646 | test "$enable_shared" = yes || enable_static=yes |
| 9647 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 9648 | echo "${ECHO_T}$enable_static" >&6 |
| 9649 | |
| 9650 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9651 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 9652 | # with your package, and you will get complaints that there are |
| 9653 | # no rules to generate ltmain.sh. |
| 9654 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9655 | # See if we are running on zsh, and set the options which allow our commands through |
| 9656 | # without removal of \ escapes. |
| 9657 | if test -n "${ZSH_VERSION+set}" ; then |
| 9658 | setopt NO_GLOB_SUBST |
| 9659 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9660 | # Now quote all the things that may contain metacharacters while being |
| 9661 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 9662 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9663 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 9664 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9665 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 9666 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 9667 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 9668 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 9669 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9670 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9671 | old_postinstall_cmds old_postuninstall_cmds \ |
| 9672 | compiler \ |
| 9673 | CC \ |
| 9674 | LD \ |
| 9675 | lt_prog_compiler_wl \ |
| 9676 | lt_prog_compiler_pic \ |
| 9677 | lt_prog_compiler_static \ |
| 9678 | lt_prog_compiler_no_builtin_flag \ |
| 9679 | export_dynamic_flag_spec \ |
| 9680 | thread_safe_flag_spec \ |
| 9681 | whole_archive_flag_spec \ |
| 9682 | enable_shared_with_static_runtimes \ |
| 9683 | old_archive_cmds \ |
| 9684 | old_archive_from_new_cmds \ |
| 9685 | predep_objects \ |
| 9686 | postdep_objects \ |
| 9687 | predeps \ |
| 9688 | postdeps \ |
| 9689 | compiler_lib_search_path \ |
| 9690 | archive_cmds \ |
| 9691 | archive_expsym_cmds \ |
| 9692 | postinstall_cmds \ |
| 9693 | postuninstall_cmds \ |
| 9694 | old_archive_from_expsyms_cmds \ |
| 9695 | allow_undefined_flag \ |
| 9696 | no_undefined_flag \ |
| 9697 | export_symbols_cmds \ |
| 9698 | hardcode_libdir_flag_spec \ |
| 9699 | hardcode_libdir_flag_spec_ld \ |
| 9700 | hardcode_libdir_separator \ |
| 9701 | hardcode_automatic \ |
| 9702 | module_cmds \ |
| 9703 | module_expsym_cmds \ |
| 9704 | lt_cv_prog_compiler_c_o \ |
| 9705 | exclude_expsyms \ |
| 9706 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9707 | |
| 9708 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9709 | old_archive_cmds | \ |
| 9710 | old_archive_from_new_cmds | \ |
| 9711 | archive_cmds | \ |
| 9712 | archive_expsym_cmds | \ |
| 9713 | module_cmds | \ |
| 9714 | module_expsym_cmds | \ |
| 9715 | old_archive_from_expsyms_cmds | \ |
| 9716 | export_symbols_cmds | \ |
| 9717 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9718 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9719 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 9720 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9721 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9722 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9723 | ;; |
| 9724 | *) |
| 9725 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 9726 | ;; |
| 9727 | esac |
| 9728 | done |
| 9729 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9730 | case $lt_echo in |
| 9731 | *'\$0 --fallback-echo"') |
| 9732 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 9733 | ;; |
| 9734 | esac |
| 9735 | |
| 9736 | cfgfile="${ofile}T" |
| 9737 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 9738 | $rm -f "$cfgfile" |
| 9739 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 9740 | echo "$as_me: creating $ofile" >&6;} |
| 9741 | |
| 9742 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9743 | #! $SHELL |
| 9744 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9745 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9746 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 9747 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 9748 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9749 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 9750 | # Free Software Foundation, Inc. |
| 9751 | # |
| 9752 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9753 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 9754 | # |
| 9755 | # This program is free software; you can redistribute it and/or modify |
| 9756 | # it under the terms of the GNU General Public License as published by |
| 9757 | # the Free Software Foundation; either version 2 of the License, or |
| 9758 | # (at your option) any later version. |
| 9759 | # |
| 9760 | # This program is distributed in the hope that it will be useful, but |
| 9761 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9762 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 9763 | # General Public License for more details. |
| 9764 | # |
| 9765 | # You should have received a copy of the GNU General Public License |
| 9766 | # along with this program; if not, write to the Free Software |
| 9767 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 9768 | # |
| 9769 | # As a special exception to the GNU General Public License, if you |
| 9770 | # distribute this file as part of a program that contains a |
| 9771 | # configuration script generated by Autoconf, you may include it under |
| 9772 | # the same distribution terms that you use for the rest of that program. |
| 9773 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9774 | # A sed program that does not truncate output. |
| 9775 | SED=$lt_SED |
| 9776 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9777 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9778 | Xsed="$SED -e s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9779 | |
| 9780 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 9781 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9782 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9783 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9784 | # The names of the tagged configurations supported by this script. |
| 9785 | available_tags= |
| 9786 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9787 | # ### BEGIN LIBTOOL CONFIG |
| 9788 | |
| 9789 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 9790 | |
| 9791 | # Shell to use when invoking shell scripts. |
| 9792 | SHELL=$lt_SHELL |
| 9793 | |
| 9794 | # Whether or not to build shared libraries. |
| 9795 | build_libtool_libs=$enable_shared |
| 9796 | |
| 9797 | # Whether or not to build static libraries. |
| 9798 | build_old_libs=$enable_static |
| 9799 | |
| 9800 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9801 | build_libtool_need_lc=$archive_cmds_need_lc |
| 9802 | |
| 9803 | # Whether or not to disallow shared libs when runtime libs are static |
| 9804 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9805 | |
| 9806 | # Whether or not to optimize for fast installation. |
| 9807 | fast_install=$enable_fast_install |
| 9808 | |
| 9809 | # The host system. |
| 9810 | host_alias=$host_alias |
| 9811 | host=$host |
| 9812 | |
| 9813 | # An echo program that does not interpret backslashes. |
| 9814 | echo=$lt_echo |
| 9815 | |
| 9816 | # The archiver. |
| 9817 | AR=$lt_AR |
| 9818 | AR_FLAGS=$lt_AR_FLAGS |
| 9819 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9820 | # A C compiler. |
| 9821 | LTCC=$lt_LTCC |
| 9822 | |
| 9823 | # A language-specific compiler. |
| 9824 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9825 | |
| 9826 | # Is the compiler the GNU C compiler? |
| 9827 | with_gcc=$GCC |
| 9828 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9829 | # An ERE matcher. |
| 9830 | EGREP=$lt_EGREP |
| 9831 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9832 | # The linker used to build libraries. |
| 9833 | LD=$lt_LD |
| 9834 | |
| 9835 | # Whether we need hard or soft links. |
| 9836 | LN_S=$lt_LN_S |
| 9837 | |
| 9838 | # A BSD-compatible nm program. |
| 9839 | NM=$lt_NM |
| 9840 | |
| 9841 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9842 | STRIP=$lt_STRIP |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9843 | |
| 9844 | # Used to examine libraries when file_magic_cmd begins "file" |
| 9845 | MAGIC_CMD=$MAGIC_CMD |
| 9846 | |
| 9847 | # Used on cygwin: DLL creation program. |
| 9848 | DLLTOOL="$DLLTOOL" |
| 9849 | |
| 9850 | # Used on cygwin: object dumper. |
| 9851 | OBJDUMP="$OBJDUMP" |
| 9852 | |
| 9853 | # Used on cygwin: assembler. |
| 9854 | AS="$AS" |
| 9855 | |
| 9856 | # The name of the directory that contains temporary libtool files. |
| 9857 | objdir=$objdir |
| 9858 | |
| 9859 | # How to create reloadable object files. |
| 9860 | reload_flag=$lt_reload_flag |
| 9861 | reload_cmds=$lt_reload_cmds |
| 9862 | |
| 9863 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9864 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9865 | |
| 9866 | # Object file suffix (normally "o"). |
| 9867 | objext="$ac_objext" |
| 9868 | |
| 9869 | # Old archive suffix (normally "a"). |
| 9870 | libext="$libext" |
| 9871 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9872 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9873 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9874 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9875 | # Executable file suffix (normally ""). |
| 9876 | exeext="$exeext" |
| 9877 | |
| 9878 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9879 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9880 | pic_mode=$pic_mode |
| 9881 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9882 | # What is the maximum length of a command? |
| 9883 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9884 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9885 | # Does compiler simultaneously support -c and -o options? |
| 9886 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9887 | |
| 9888 | # Must we lock files when doing compilation ? |
| 9889 | need_locks=$lt_need_locks |
| 9890 | |
| 9891 | # Do we need the lib prefix for modules? |
| 9892 | need_lib_prefix=$need_lib_prefix |
| 9893 | |
| 9894 | # Do we need a version for libraries? |
| 9895 | need_version=$need_version |
| 9896 | |
| 9897 | # Whether dlopen is supported. |
| 9898 | dlopen_support=$enable_dlopen |
| 9899 | |
| 9900 | # Whether dlopen of programs is supported. |
| 9901 | dlopen_self=$enable_dlopen_self |
| 9902 | |
| 9903 | # Whether dlopen of statically linked programs is supported. |
| 9904 | dlopen_self_static=$enable_dlopen_self_static |
| 9905 | |
| 9906 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9907 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9908 | |
| 9909 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9910 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9911 | |
| 9912 | # Compiler flag to allow reflexive dlopens. |
| 9913 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 9914 | |
| 9915 | # Compiler flag to generate shared objects directly from archives. |
| 9916 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 9917 | |
| 9918 | # Compiler flag to generate thread-safe objects. |
| 9919 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 9920 | |
| 9921 | # Library versioning type. |
| 9922 | version_type=$version_type |
| 9923 | |
| 9924 | # Format of library name prefix. |
| 9925 | libname_spec=$lt_libname_spec |
| 9926 | |
| 9927 | # List of archive names. First name is the real one, the rest are links. |
| 9928 | # The last name is the one that the linker finds with -lNAME. |
| 9929 | library_names_spec=$lt_library_names_spec |
| 9930 | |
| 9931 | # The coded name of the library, if different from the real name. |
| 9932 | soname_spec=$lt_soname_spec |
| 9933 | |
| 9934 | # Commands used to build and install an old-style archive. |
| 9935 | RANLIB=$lt_RANLIB |
| 9936 | old_archive_cmds=$lt_old_archive_cmds |
| 9937 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 9938 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 9939 | |
| 9940 | # Create an old-style archive from a shared archive. |
| 9941 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 9942 | |
| 9943 | # Create a temporary old-style archive to link instead of a shared archive. |
| 9944 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 9945 | |
| 9946 | # Commands used to build and install a shared archive. |
| 9947 | archive_cmds=$lt_archive_cmds |
| 9948 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 9949 | postinstall_cmds=$lt_postinstall_cmds |
| 9950 | postuninstall_cmds=$lt_postuninstall_cmds |
| 9951 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9952 | # Commands used to build a loadable module (assumed same as above if empty) |
| 9953 | module_cmds=$lt_module_cmds |
| 9954 | module_expsym_cmds=$lt_module_expsym_cmds |
| 9955 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9956 | # Commands to strip libraries. |
| 9957 | old_striplib=$lt_old_striplib |
| 9958 | striplib=$lt_striplib |
| 9959 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9960 | # Dependencies to place before the objects being linked to create a |
| 9961 | # shared library. |
| 9962 | predep_objects=$lt_predep_objects |
| 9963 | |
| 9964 | # Dependencies to place after the objects being linked to create a |
| 9965 | # shared library. |
| 9966 | postdep_objects=$lt_postdep_objects |
| 9967 | |
| 9968 | # Dependencies to place before the objects being linked to create a |
| 9969 | # shared library. |
| 9970 | predeps=$lt_predeps |
| 9971 | |
| 9972 | # Dependencies to place after the objects being linked to create a |
| 9973 | # shared library. |
| 9974 | postdeps=$lt_postdeps |
| 9975 | |
| 9976 | # The library search path used internally by the compiler when linking |
| 9977 | # a shared library. |
| 9978 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 9979 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9980 | # Method to check whether dependent libraries are shared objects. |
| 9981 | deplibs_check_method=$lt_deplibs_check_method |
| 9982 | |
| 9983 | # Command to use when deplibs_check_method == file_magic. |
| 9984 | file_magic_cmd=$lt_file_magic_cmd |
| 9985 | |
| 9986 | # Flag that allows shared libraries with undefined symbols to be built. |
| 9987 | allow_undefined_flag=$lt_allow_undefined_flag |
| 9988 | |
| 9989 | # Flag that forces no undefined symbols. |
| 9990 | no_undefined_flag=$lt_no_undefined_flag |
| 9991 | |
| 9992 | # Commands used to finish a libtool library installation in a directory. |
| 9993 | finish_cmds=$lt_finish_cmds |
| 9994 | |
| 9995 | # Same as above, but a single script fragment to be evaled but not shown. |
| 9996 | finish_eval=$lt_finish_eval |
| 9997 | |
| 9998 | # 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] | 9999 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10000 | |
| 10001 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10002 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10003 | |
| 10004 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10005 | 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] | 10006 | |
| 10007 | # This is the shared library runtime path variable. |
| 10008 | runpath_var=$runpath_var |
| 10009 | |
| 10010 | # This is the shared library path variable. |
| 10011 | shlibpath_var=$shlibpath_var |
| 10012 | |
| 10013 | # Is shlibpath searched before the hard-coded library search path? |
| 10014 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 10015 | |
| 10016 | # How to hardcode a shared library path into an executable. |
| 10017 | hardcode_action=$hardcode_action |
| 10018 | |
| 10019 | # Whether we should hardcode library paths into libraries. |
| 10020 | hardcode_into_libs=$hardcode_into_libs |
| 10021 | |
| 10022 | # Flag to hardcode \$libdir into a binary during linking. |
| 10023 | # This must work even if \$libdir does not exist. |
| 10024 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 10025 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10026 | # If ld is used when linking, flag to hardcode \$libdir into |
| 10027 | # a binary during linking. This must work even if \$libdir does |
| 10028 | # not exist. |
| 10029 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 10030 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10031 | # Whether we need a single -rpath flag with a separated argument. |
| 10032 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 10033 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10034 | # 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] | 10035 | # resulting binary. |
| 10036 | hardcode_direct=$hardcode_direct |
| 10037 | |
| 10038 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 10039 | # resulting binary. |
| 10040 | hardcode_minus_L=$hardcode_minus_L |
| 10041 | |
| 10042 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 10043 | # the resulting binary. |
| 10044 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 10045 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10046 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 10047 | # and all subsequent libraries and executables linked against it. |
| 10048 | hardcode_automatic=$hardcode_automatic |
| 10049 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10050 | # Variables whose values should be saved in libtool wrapper scripts and |
| 10051 | # restored at relink time. |
| 10052 | variables_saved_for_relink="$variables_saved_for_relink" |
| 10053 | |
| 10054 | # Whether libtool must link a program against all its dependency libraries. |
| 10055 | link_all_deplibs=$link_all_deplibs |
| 10056 | |
| 10057 | # Compile-time system search path for libraries |
| 10058 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 10059 | |
| 10060 | # Run-time system search path for libraries |
| 10061 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 10062 | |
| 10063 | # Fix the shell variable \$srcfile for the compiler. |
| 10064 | fix_srcfile_path="$fix_srcfile_path" |
| 10065 | |
| 10066 | # Set to yes if exported symbols are required. |
| 10067 | always_export_symbols=$always_export_symbols |
| 10068 | |
| 10069 | # The commands to list exported symbols. |
| 10070 | export_symbols_cmds=$lt_export_symbols_cmds |
| 10071 | |
| 10072 | # The commands to extract the exported symbol list from a shared archive. |
| 10073 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 10074 | |
| 10075 | # Symbols that should not be listed in the preloaded symbols. |
| 10076 | exclude_expsyms=$lt_exclude_expsyms |
| 10077 | |
| 10078 | # Symbols that must always be exported. |
| 10079 | include_expsyms=$lt_include_expsyms |
| 10080 | |
| 10081 | # ### END LIBTOOL CONFIG |
| 10082 | |
| 10083 | __EOF__ |
| 10084 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10085 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10086 | case $host_os in |
| 10087 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10088 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10089 | |
| 10090 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 10091 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 10092 | # vanish in a puff of smoke. |
| 10093 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 10094 | COLLECT_NAMES= |
| 10095 | export COLLECT_NAMES |
| 10096 | fi |
| 10097 | EOF |
| 10098 | ;; |
| 10099 | esac |
| 10100 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10101 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 10102 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 10103 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 10104 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10105 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10106 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10107 | mv -f "$cfgfile" "$ofile" || \ |
| 10108 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10109 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10110 | |
| 10111 | else |
| 10112 | # If there is no Makefile yet, we rely on a make rule to execute |
| 10113 | # `config.status --recheck' to rerun these tests and create the |
| 10114 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10115 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 10116 | if test -f "$ltmain_in"; then |
| 10117 | test -f Makefile && make "$ltmain" |
| 10118 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10119 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10120 | |
| 10121 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10122 | ac_ext=c |
| 10123 | ac_cpp='$CPP $CPPFLAGS' |
| 10124 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10125 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10126 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10127 | |
| 10128 | CC="$lt_save_CC" |
| 10129 | |
| 10130 | |
| 10131 | # Check whether --with-tags or --without-tags was given. |
| 10132 | if test "${with_tags+set}" = set; then |
| 10133 | withval="$with_tags" |
| 10134 | tagnames="$withval" |
| 10135 | fi; |
| 10136 | |
| 10137 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 10138 | if test ! -f "${ofile}"; then |
| 10139 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 10140 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 10141 | fi |
| 10142 | |
| 10143 | if test -z "$LTCC"; then |
| 10144 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 10145 | if test -z "$LTCC"; then |
| 10146 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 10147 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 10148 | else |
| 10149 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 10150 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 10151 | fi |
| 10152 | fi |
| 10153 | |
| 10154 | # Extract list of available tagged configurations in $ofile. |
| 10155 | # Note that this assumes the entire list is on one line. |
| 10156 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 10157 | |
| 10158 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 10159 | for tagname in $tagnames; do |
| 10160 | IFS="$lt_save_ifs" |
| 10161 | # Check whether tagname contains only valid characters |
| 10162 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 10163 | "") ;; |
| 10164 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 10165 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 10166 | { (exit 1); exit 1; }; } |
| 10167 | ;; |
| 10168 | esac |
| 10169 | |
| 10170 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 10171 | then |
| 10172 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 10173 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 10174 | { (exit 1); exit 1; }; } |
| 10175 | fi |
| 10176 | |
| 10177 | # Update the list of available tags. |
| 10178 | if test -n "$tagname"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10179 | echo appending configuration tag "$tagname" to $ofile |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10180 | |
| 10181 | case $tagname in |
| 10182 | CXX) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10183 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 10184 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 10185 | (test "X$CXX" != "Xg++"))) ; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10186 | ac_ext=cc |
| 10187 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 10188 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10189 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10190 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 10191 | |
| 10192 | |
| 10193 | |
| 10194 | |
| 10195 | archive_cmds_need_lc_CXX=no |
| 10196 | allow_undefined_flag_CXX= |
| 10197 | always_export_symbols_CXX=no |
| 10198 | archive_expsym_cmds_CXX= |
| 10199 | export_dynamic_flag_spec_CXX= |
| 10200 | hardcode_direct_CXX=no |
| 10201 | hardcode_libdir_flag_spec_CXX= |
| 10202 | hardcode_libdir_flag_spec_ld_CXX= |
| 10203 | hardcode_libdir_separator_CXX= |
| 10204 | hardcode_minus_L_CXX=no |
| 10205 | hardcode_automatic_CXX=no |
| 10206 | module_cmds_CXX= |
| 10207 | module_expsym_cmds_CXX= |
| 10208 | link_all_deplibs_CXX=unknown |
| 10209 | old_archive_cmds_CXX=$old_archive_cmds |
| 10210 | no_undefined_flag_CXX= |
| 10211 | whole_archive_flag_spec_CXX= |
| 10212 | enable_shared_with_static_runtimes_CXX=no |
| 10213 | |
| 10214 | # Dependencies to place before and after the object being linked: |
| 10215 | predep_objects_CXX= |
| 10216 | postdep_objects_CXX= |
| 10217 | predeps_CXX= |
| 10218 | postdeps_CXX= |
| 10219 | compiler_lib_search_path_CXX= |
| 10220 | |
| 10221 | # Source file extension for C++ test sources. |
| 10222 | ac_ext=cc |
| 10223 | |
| 10224 | # Object file extension for compiled C++ test sources. |
| 10225 | objext=o |
| 10226 | objext_CXX=$objext |
| 10227 | |
| 10228 | # Code to be used in simple compile tests |
| 10229 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 10230 | |
| 10231 | # Code to be used in simple link tests |
| 10232 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
| 10233 | |
| 10234 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 10235 | |
| 10236 | # If no C compiler was specified, use CC. |
| 10237 | LTCC=${LTCC-"$CC"} |
| 10238 | |
| 10239 | # Allow CC to be a program name with arguments. |
| 10240 | compiler=$CC |
| 10241 | |
| 10242 | |
| 10243 | # Allow CC to be a program name with arguments. |
| 10244 | lt_save_CC=$CC |
| 10245 | lt_save_LD=$LD |
| 10246 | lt_save_GCC=$GCC |
| 10247 | GCC=$GXX |
| 10248 | lt_save_with_gnu_ld=$with_gnu_ld |
| 10249 | lt_save_path_LD=$lt_cv_path_LD |
| 10250 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 10251 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 10252 | else |
| 10253 | unset lt_cv_prog_gnu_ld |
| 10254 | fi |
| 10255 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 10256 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 10257 | else |
| 10258 | unset lt_cv_path_LD |
| 10259 | fi |
| 10260 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 10261 | CC=${CXX-"c++"} |
| 10262 | compiler=$CC |
| 10263 | compiler_CXX=$CC |
| 10264 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 10265 | |
| 10266 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 10267 | # no_builtin_flag separately |
| 10268 | if test "$GXX" = yes; then |
| 10269 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 10270 | else |
| 10271 | lt_prog_compiler_no_builtin_flag_CXX= |
| 10272 | fi |
| 10273 | |
| 10274 | if test "$GXX" = yes; then |
| 10275 | # Set up default GNU C++ configuration |
| 10276 | |
| 10277 | |
| 10278 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 10279 | if test "${with_gnu_ld+set}" = set; then |
| 10280 | withval="$with_gnu_ld" |
| 10281 | test "$withval" = no || with_gnu_ld=yes |
| 10282 | else |
| 10283 | with_gnu_ld=no |
| 10284 | fi; |
| 10285 | ac_prog=ld |
| 10286 | if test "$GCC" = yes; then |
| 10287 | # Check if gcc -print-prog-name=ld gives a path. |
| 10288 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 10289 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 10290 | case $host in |
| 10291 | *-*-mingw*) |
| 10292 | # gcc leaves a trailing carriage return which upsets mingw |
| 10293 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 10294 | *) |
| 10295 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 10296 | esac |
| 10297 | case $ac_prog in |
| 10298 | # Accept absolute paths. |
| 10299 | [\\/]* | ?:[\\/]*) |
| 10300 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10301 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10302 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 10303 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 10304 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 10305 | done |
| 10306 | test -z "$LD" && LD="$ac_prog" |
| 10307 | ;; |
| 10308 | "") |
| 10309 | # If it fails, then pretend we aren't using GCC. |
| 10310 | ac_prog=ld |
| 10311 | ;; |
| 10312 | *) |
| 10313 | # If it is relative, then search for the first ld in PATH. |
| 10314 | with_gnu_ld=unknown |
| 10315 | ;; |
| 10316 | esac |
| 10317 | elif test "$with_gnu_ld" = yes; then |
| 10318 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 10319 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 10320 | else |
| 10321 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 10322 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 10323 | fi |
| 10324 | if test "${lt_cv_path_LD+set}" = set; then |
| 10325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10326 | else |
| 10327 | if test -z "$LD"; then |
| 10328 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 10329 | for ac_dir in $PATH; do |
| 10330 | IFS="$lt_save_ifs" |
| 10331 | test -z "$ac_dir" && ac_dir=. |
| 10332 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 10333 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 10334 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 10335 | # but apparently some GNU ld's only accept -v. |
| 10336 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 10337 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 10338 | *GNU* | *'with BFD'*) |
| 10339 | test "$with_gnu_ld" != no && break |
| 10340 | ;; |
| 10341 | *) |
| 10342 | test "$with_gnu_ld" != yes && break |
| 10343 | ;; |
| 10344 | esac |
| 10345 | fi |
| 10346 | done |
| 10347 | IFS="$lt_save_ifs" |
| 10348 | else |
| 10349 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 10350 | fi |
| 10351 | fi |
| 10352 | |
| 10353 | LD="$lt_cv_path_LD" |
| 10354 | if test -n "$LD"; then |
| 10355 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 10356 | echo "${ECHO_T}$LD" >&6 |
| 10357 | else |
| 10358 | echo "$as_me:$LINENO: result: no" >&5 |
| 10359 | echo "${ECHO_T}no" >&6 |
| 10360 | fi |
| 10361 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 10362 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 10363 | { (exit 1); exit 1; }; } |
| 10364 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 10365 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 10366 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 10367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10368 | else |
| 10369 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10370 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10371 | *GNU* | *'with BFD'*) |
| 10372 | lt_cv_prog_gnu_ld=yes |
| 10373 | ;; |
| 10374 | *) |
| 10375 | lt_cv_prog_gnu_ld=no |
| 10376 | ;; |
| 10377 | esac |
| 10378 | fi |
| 10379 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 10380 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 10381 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 10382 | |
| 10383 | |
| 10384 | |
| 10385 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 10386 | # archiving commands below assume that GNU ld is being used. |
| 10387 | if test "$with_gnu_ld" = yes; then |
| 10388 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10389 | 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' |
| 10390 | |
| 10391 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 10392 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 10393 | |
| 10394 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 10395 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 10396 | # investigate it a little bit more. (MM) |
| 10397 | wlarc='${wl}' |
| 10398 | |
| 10399 | # ancient GNU ld didn't support --whole-archive et. al. |
| 10400 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 10401 | grep 'no-whole-archive' > /dev/null; then |
| 10402 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 10403 | else |
| 10404 | whole_archive_flag_spec_CXX= |
| 10405 | fi |
| 10406 | else |
| 10407 | with_gnu_ld=no |
| 10408 | wlarc= |
| 10409 | |
| 10410 | # A generic and very simple default shared library creation |
| 10411 | # command for GNU C++ for the case where it uses the native |
| 10412 | # linker, instead of GNU ld. If possible, this setting should |
| 10413 | # overridden to take advantage of the native linker features on |
| 10414 | # the platform it is being used on. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10415 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10416 | fi |
| 10417 | |
| 10418 | # Commands to make compiler produce verbose output that lists |
| 10419 | # what "hidden" libraries, object files and flags are used when |
| 10420 | # linking a shared library. |
| 10421 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 10422 | |
| 10423 | else |
| 10424 | GXX=no |
| 10425 | with_gnu_ld=no |
| 10426 | wlarc= |
| 10427 | fi |
| 10428 | |
| 10429 | # PORTME: fill in a description of your system's C++ link characteristics |
| 10430 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 10431 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 10432 | ld_shlibs_CXX=yes |
| 10433 | case $host_os in |
| 10434 | aix3*) |
| 10435 | # FIXME: insert proper C++ library support |
| 10436 | ld_shlibs_CXX=no |
| 10437 | ;; |
| 10438 | aix4* | aix5*) |
| 10439 | if test "$host_cpu" = ia64; then |
| 10440 | # On IA64, the linker does run time linking by default, so we don't |
| 10441 | # have to do anything special. |
| 10442 | aix_use_runtimelinking=no |
| 10443 | exp_sym_flag='-Bexport' |
| 10444 | no_entry_flag="" |
| 10445 | else |
| 10446 | aix_use_runtimelinking=no |
| 10447 | |
| 10448 | # Test if we are trying to use run time linking or normal |
| 10449 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 10450 | # need to do runtime linking. |
| 10451 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 10452 | for ld_flag in $LDFLAGS; do |
| 10453 | case $ld_flag in |
| 10454 | *-brtl*) |
| 10455 | aix_use_runtimelinking=yes |
| 10456 | break |
| 10457 | ;; |
| 10458 | esac |
| 10459 | done |
| 10460 | esac |
| 10461 | |
| 10462 | exp_sym_flag='-bexport' |
| 10463 | no_entry_flag='-bnoentry' |
| 10464 | fi |
| 10465 | |
| 10466 | # When large executables or shared objects are built, AIX ld can |
| 10467 | # have problems creating the table of contents. If linking a library |
| 10468 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 10469 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 10470 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 10471 | |
| 10472 | archive_cmds_CXX='' |
| 10473 | hardcode_direct_CXX=yes |
| 10474 | hardcode_libdir_separator_CXX=':' |
| 10475 | link_all_deplibs_CXX=yes |
| 10476 | |
| 10477 | if test "$GXX" = yes; then |
| 10478 | case $host_os in aix4.012|aix4.012.*) |
| 10479 | # We only want to do this on AIX 4.2 and lower, the check |
| 10480 | # below for broken collect2 doesn't work under 4.3+ |
| 10481 | collect2name=`${CC} -print-prog-name=collect2` |
| 10482 | if test -f "$collect2name" && \ |
| 10483 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 10484 | then |
| 10485 | # We have reworked collect2 |
| 10486 | hardcode_direct_CXX=yes |
| 10487 | else |
| 10488 | # We have old collect2 |
| 10489 | hardcode_direct_CXX=unsupported |
| 10490 | # It fails to find uninstalled libraries when the uninstalled |
| 10491 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 10492 | # to unsupported forces relinking |
| 10493 | hardcode_minus_L_CXX=yes |
| 10494 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 10495 | hardcode_libdir_separator_CXX= |
| 10496 | fi |
| 10497 | esac |
| 10498 | shared_flag='-shared' |
| 10499 | else |
| 10500 | # not using gcc |
| 10501 | if test "$host_cpu" = ia64; then |
| 10502 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 10503 | # chokes on -Wl,-G. The following line is correct: |
| 10504 | shared_flag='-G' |
| 10505 | else |
| 10506 | if test "$aix_use_runtimelinking" = yes; then |
| 10507 | shared_flag='${wl}-G' |
| 10508 | else |
| 10509 | shared_flag='${wl}-bM:SRE' |
| 10510 | fi |
| 10511 | fi |
| 10512 | fi |
| 10513 | |
| 10514 | # It seems that -bexpall does not export symbols beginning with |
| 10515 | # underscore (_), so it is better to generate a list of symbols to export. |
| 10516 | always_export_symbols_CXX=yes |
| 10517 | if test "$aix_use_runtimelinking" = yes; then |
| 10518 | # Warning - without using the other runtime loading flags (-brtl), |
| 10519 | # -berok will link without error, but may produce a broken library. |
| 10520 | allow_undefined_flag_CXX='-berok' |
| 10521 | # Determine the default libpath from the value encoded in an empty executable. |
| 10522 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10523 | /* confdefs.h. */ |
| 10524 | _ACEOF |
| 10525 | cat confdefs.h >>conftest.$ac_ext |
| 10526 | cat >>conftest.$ac_ext <<_ACEOF |
| 10527 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10528 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10529 | int |
| 10530 | main () |
| 10531 | { |
| 10532 | |
| 10533 | ; |
| 10534 | return 0; |
| 10535 | } |
| 10536 | _ACEOF |
| 10537 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10539 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10540 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10542 | rm -f conftest.er1 |
| 10543 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10545 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10546 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 10547 | || test ! -s conftest.err' |
| 10548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10549 | (eval $ac_try) 2>&5 |
| 10550 | ac_status=$? |
| 10551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10552 | (exit $ac_status); }; } && |
| 10553 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10555 | (eval $ac_try) 2>&5 |
| 10556 | ac_status=$? |
| 10557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10558 | (exit $ac_status); }; }; then |
| 10559 | |
| 10560 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 10561 | }'` |
| 10562 | # Check for a 64-bit object if we didn't find anything. |
| 10563 | 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; } |
| 10564 | }'`; fi |
| 10565 | else |
| 10566 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10568 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10569 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10570 | rm -f conftest.err conftest.$ac_objext \ |
| 10571 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10572 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 10573 | |
| 10574 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 10575 | |
| 10576 | 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" |
| 10577 | else |
| 10578 | if test "$host_cpu" = ia64; then |
| 10579 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 10580 | allow_undefined_flag_CXX="-z nodefs" |
| 10581 | 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" |
| 10582 | else |
| 10583 | # Determine the default libpath from the value encoded in an empty executable. |
| 10584 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10585 | /* confdefs.h. */ |
| 10586 | _ACEOF |
| 10587 | cat confdefs.h >>conftest.$ac_ext |
| 10588 | cat >>conftest.$ac_ext <<_ACEOF |
| 10589 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10590 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10591 | int |
| 10592 | main () |
| 10593 | { |
| 10594 | |
| 10595 | ; |
| 10596 | return 0; |
| 10597 | } |
| 10598 | _ACEOF |
| 10599 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10601 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10602 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10603 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10604 | rm -f conftest.er1 |
| 10605 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10607 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10608 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 10609 | || test ! -s conftest.err' |
| 10610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10611 | (eval $ac_try) 2>&5 |
| 10612 | ac_status=$? |
| 10613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10614 | (exit $ac_status); }; } && |
| 10615 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10617 | (eval $ac_try) 2>&5 |
| 10618 | ac_status=$? |
| 10619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10620 | (exit $ac_status); }; }; then |
| 10621 | |
| 10622 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 10623 | }'` |
| 10624 | # Check for a 64-bit object if we didn't find anything. |
| 10625 | 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; } |
| 10626 | }'`; fi |
| 10627 | else |
| 10628 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10630 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10631 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10632 | rm -f conftest.err conftest.$ac_objext \ |
| 10633 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10634 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 10635 | |
| 10636 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 10637 | # Warning - without using the other run time loading flags, |
| 10638 | # -berok will link without error, but may produce a broken library. |
| 10639 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 10640 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 10641 | # -bexpall does not export symbols beginning with underscore (_) |
| 10642 | always_export_symbols_CXX=yes |
| 10643 | # Exported symbols can be pulled into shared objects from archives |
| 10644 | whole_archive_flag_spec_CXX=' ' |
| 10645 | archive_cmds_need_lc_CXX=yes |
| 10646 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10647 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10648 | fi |
| 10649 | fi |
| 10650 | ;; |
| 10651 | chorus*) |
| 10652 | case $cc_basename in |
| 10653 | *) |
| 10654 | # FIXME: insert proper C++ library support |
| 10655 | ld_shlibs_CXX=no |
| 10656 | ;; |
| 10657 | esac |
| 10658 | ;; |
| 10659 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10660 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10661 | cygwin* | mingw* | pw32*) |
| 10662 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 10663 | # as there is no search path for DLLs. |
| 10664 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 10665 | allow_undefined_flag_CXX=unsupported |
| 10666 | always_export_symbols_CXX=no |
| 10667 | enable_shared_with_static_runtimes_CXX=yes |
| 10668 | |
| 10669 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 10670 | 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' |
| 10671 | # If the export-symbols file already is a .def file (1st line |
| 10672 | # is EXPORTS), use it as is; otherwise, prepend... |
| 10673 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 10674 | cp $export_symbols $output_objdir/$soname.def; |
| 10675 | else |
| 10676 | echo EXPORTS > $output_objdir/$soname.def; |
| 10677 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10678 | fi~ |
| 10679 | $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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10680 | else |
| 10681 | ld_shlibs_CXX=no |
| 10682 | fi |
| 10683 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10684 | darwin* | rhapsody*) |
| 10685 | case "$host_os" in |
| 10686 | rhapsody* | darwin1.[012]) |
| 10687 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 10688 | ;; |
| 10689 | *) # Darwin 1.3 on |
| 10690 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 10691 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 10692 | else |
| 10693 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 10694 | 10.[012]) |
| 10695 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 10696 | ;; |
| 10697 | 10.*) |
| 10698 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 10699 | ;; |
| 10700 | esac |
| 10701 | fi |
| 10702 | ;; |
| 10703 | esac |
| 10704 | archive_cmds_need_lc_CXX=no |
| 10705 | hardcode_direct_CXX=no |
| 10706 | hardcode_automatic_CXX=yes |
| 10707 | hardcode_shlibpath_var_CXX=unsupported |
| 10708 | whole_archive_flag_spec_CXX='' |
| 10709 | link_all_deplibs_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10710 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10711 | if test "$GXX" = yes ; then |
| 10712 | lt_int_apple_cc_single_mod=no |
| 10713 | output_verbose_link_cmd='echo' |
| 10714 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 10715 | lt_int_apple_cc_single_mod=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 10716 | fi |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 10717 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10718 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 10719 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10720 | archive_cmds_CXX='$CC -r -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' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10721 | fi |
| 10722 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 10723 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 10724 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10725 | 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}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10726 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10727 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10728 | fi |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10729 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10730 | else |
| 10731 | case "$cc_basename" in |
| 10732 | xlc*) |
| 10733 | output_verbose_link_cmd='echo' |
| 10734 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 10735 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 10736 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10737 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 10738 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10739 | ;; |
| 10740 | *) |
| 10741 | ld_shlibs_CXX=no |
| 10742 | ;; |
| 10743 | esac |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 10744 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10745 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10746 | |
| 10747 | dgux*) |
| 10748 | case $cc_basename in |
| 10749 | ec++) |
| 10750 | # FIXME: insert proper C++ library support |
| 10751 | ld_shlibs_CXX=no |
| 10752 | ;; |
| 10753 | ghcx) |
| 10754 | # Green Hills C++ Compiler |
| 10755 | # FIXME: insert proper C++ library support |
| 10756 | ld_shlibs_CXX=no |
| 10757 | ;; |
| 10758 | *) |
| 10759 | # FIXME: insert proper C++ library support |
| 10760 | ld_shlibs_CXX=no |
| 10761 | ;; |
| 10762 | esac |
| 10763 | ;; |
| 10764 | freebsd12*) |
| 10765 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 10766 | ld_shlibs_CXX=no |
| 10767 | ;; |
| 10768 | freebsd-elf*) |
| 10769 | archive_cmds_need_lc_CXX=no |
| 10770 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10771 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10772 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 10773 | # conventions |
| 10774 | ld_shlibs_CXX=yes |
| 10775 | ;; |
| 10776 | gnu*) |
| 10777 | ;; |
| 10778 | hpux9*) |
| 10779 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 10780 | hardcode_libdir_separator_CXX=: |
| 10781 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 10782 | hardcode_direct_CXX=yes |
| 10783 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 10784 | # but as the default |
| 10785 | # location of the library. |
| 10786 | |
| 10787 | case $cc_basename in |
| 10788 | CC) |
| 10789 | # FIXME: insert proper C++ library support |
| 10790 | ld_shlibs_CXX=no |
| 10791 | ;; |
| 10792 | aCC) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10793 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10794 | # Commands to make compiler produce verbose output that lists |
| 10795 | # what "hidden" libraries, object files and flags are used when |
| 10796 | # linking a shared library. |
| 10797 | # |
| 10798 | # There doesn't appear to be a way to prevent this compiler from |
| 10799 | # explicitly linking system object files so we need to strip them |
| 10800 | # from the output so that they don't get included in the library |
| 10801 | # dependencies. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10802 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10803 | ;; |
| 10804 | *) |
| 10805 | if test "$GXX" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10806 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10807 | else |
| 10808 | # FIXME: insert proper C++ library support |
| 10809 | ld_shlibs_CXX=no |
| 10810 | fi |
| 10811 | ;; |
| 10812 | esac |
| 10813 | ;; |
| 10814 | hpux10*|hpux11*) |
| 10815 | if test $with_gnu_ld = no; then |
| 10816 | case "$host_cpu" in |
| 10817 | hppa*64*) |
| 10818 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 10819 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
| 10820 | hardcode_libdir_separator_CXX=: |
| 10821 | ;; |
| 10822 | ia64*) |
| 10823 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 10824 | ;; |
| 10825 | *) |
| 10826 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 10827 | hardcode_libdir_separator_CXX=: |
| 10828 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 10829 | ;; |
| 10830 | esac |
| 10831 | fi |
| 10832 | case "$host_cpu" in |
| 10833 | hppa*64*) |
| 10834 | hardcode_direct_CXX=no |
| 10835 | hardcode_shlibpath_var_CXX=no |
| 10836 | ;; |
| 10837 | ia64*) |
| 10838 | hardcode_direct_CXX=no |
| 10839 | hardcode_shlibpath_var_CXX=no |
| 10840 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 10841 | # but as the default |
| 10842 | # location of the library. |
| 10843 | ;; |
| 10844 | *) |
| 10845 | hardcode_direct_CXX=yes |
| 10846 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 10847 | # but as the default |
| 10848 | # location of the library. |
| 10849 | ;; |
| 10850 | esac |
| 10851 | |
| 10852 | case $cc_basename in |
| 10853 | CC) |
| 10854 | # FIXME: insert proper C++ library support |
| 10855 | ld_shlibs_CXX=no |
| 10856 | ;; |
| 10857 | aCC) |
| 10858 | case "$host_cpu" in |
| 10859 | hppa*64*|ia64*) |
| 10860 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 10861 | ;; |
| 10862 | *) |
| 10863 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10864 | ;; |
| 10865 | esac |
| 10866 | # Commands to make compiler produce verbose output that lists |
| 10867 | # what "hidden" libraries, object files and flags are used when |
| 10868 | # linking a shared library. |
| 10869 | # |
| 10870 | # There doesn't appear to be a way to prevent this compiler from |
| 10871 | # explicitly linking system object files so we need to strip them |
| 10872 | # from the output so that they don't get included in the library |
| 10873 | # dependencies. |
| 10874 | 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' |
| 10875 | ;; |
| 10876 | *) |
| 10877 | if test "$GXX" = yes; then |
| 10878 | if test $with_gnu_ld = no; then |
| 10879 | case "$host_cpu" in |
| 10880 | ia64*|hppa*64*) |
| 10881 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 10882 | ;; |
| 10883 | *) |
| 10884 | 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' |
| 10885 | ;; |
| 10886 | esac |
| 10887 | fi |
| 10888 | else |
| 10889 | # FIXME: insert proper C++ library support |
| 10890 | ld_shlibs_CXX=no |
| 10891 | fi |
| 10892 | ;; |
| 10893 | esac |
| 10894 | ;; |
| 10895 | irix5* | irix6*) |
| 10896 | case $cc_basename in |
| 10897 | CC) |
| 10898 | # SGI C++ |
| 10899 | 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' |
| 10900 | |
| 10901 | # Archives containing C++ object files must be created using |
| 10902 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 10903 | # necessary to make sure instantiated templates are included |
| 10904 | # in the archive. |
| 10905 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 10906 | ;; |
| 10907 | *) |
| 10908 | if test "$GXX" = yes; then |
| 10909 | if test "$with_gnu_ld" = no; then |
| 10910 | 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' |
| 10911 | else |
| 10912 | 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' |
| 10913 | fi |
| 10914 | fi |
| 10915 | link_all_deplibs_CXX=yes |
| 10916 | ;; |
| 10917 | esac |
| 10918 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10919 | hardcode_libdir_separator_CXX=: |
| 10920 | ;; |
| 10921 | linux*) |
| 10922 | case $cc_basename in |
| 10923 | KCC) |
| 10924 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 10925 | |
| 10926 | # KCC will only create a shared library if the output file |
| 10927 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 10928 | # to its proper name (with version) after linking. |
| 10929 | 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' |
| 10930 | 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' |
| 10931 | # Commands to make compiler produce verbose output that lists |
| 10932 | # what "hidden" libraries, object files and flags are used when |
| 10933 | # linking a shared library. |
| 10934 | # |
| 10935 | # There doesn't appear to be a way to prevent this compiler from |
| 10936 | # explicitly linking system object files so we need to strip them |
| 10937 | # from the output so that they don't get included in the library |
| 10938 | # dependencies. |
| 10939 | 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' |
| 10940 | |
| 10941 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 10942 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 10943 | |
| 10944 | # Archives containing C++ object files must be created using |
| 10945 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 10946 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 10947 | ;; |
| 10948 | icpc) |
| 10949 | # Intel C++ |
| 10950 | with_gnu_ld=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10951 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 10952 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 10953 | # earlier do not add the objects themselves. |
| 10954 | case `$CC -V 2>&1` in |
| 10955 | *"Version 7."*) |
| 10956 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10957 | 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' |
| 10958 | ;; |
| 10959 | *) # Version 8.0 or newer |
| 10960 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10961 | archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 10962 | ;; |
| 10963 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10964 | archive_cmds_need_lc_CXX=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10965 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 10966 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 10967 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 10968 | ;; |
| 10969 | cxx) |
| 10970 | # Compaq C++ |
| 10971 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10972 | 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' |
| 10973 | |
| 10974 | runpath_var=LD_RUN_PATH |
| 10975 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 10976 | hardcode_libdir_separator_CXX=: |
| 10977 | |
| 10978 | # Commands to make compiler produce verbose output that lists |
| 10979 | # what "hidden" libraries, object files and flags are used when |
| 10980 | # linking a shared library. |
| 10981 | # |
| 10982 | # There doesn't appear to be a way to prevent this compiler from |
| 10983 | # explicitly linking system object files so we need to strip them |
| 10984 | # from the output so that they don't get included in the library |
| 10985 | # dependencies. |
| 10986 | 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' |
| 10987 | ;; |
| 10988 | esac |
| 10989 | ;; |
| 10990 | lynxos*) |
| 10991 | # FIXME: insert proper C++ library support |
| 10992 | ld_shlibs_CXX=no |
| 10993 | ;; |
| 10994 | m88k*) |
| 10995 | # FIXME: insert proper C++ library support |
| 10996 | ld_shlibs_CXX=no |
| 10997 | ;; |
| 10998 | mvs*) |
| 10999 | case $cc_basename in |
| 11000 | cxx) |
| 11001 | # FIXME: insert proper C++ library support |
| 11002 | ld_shlibs_CXX=no |
| 11003 | ;; |
| 11004 | *) |
| 11005 | # FIXME: insert proper C++ library support |
| 11006 | ld_shlibs_CXX=no |
| 11007 | ;; |
| 11008 | esac |
| 11009 | ;; |
| 11010 | netbsd*) |
| 11011 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 11012 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 11013 | wlarc= |
| 11014 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 11015 | hardcode_direct_CXX=yes |
| 11016 | hardcode_shlibpath_var_CXX=no |
| 11017 | fi |
| 11018 | # Workaround some broken pre-1.5 toolchains |
| 11019 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 11020 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11021 | openbsd2*) |
| 11022 | # C++ shared libraries are fairly broken |
| 11023 | ld_shlibs_CXX=no |
| 11024 | ;; |
| 11025 | openbsd*) |
| 11026 | hardcode_direct_CXX=yes |
| 11027 | hardcode_shlibpath_var_CXX=no |
| 11028 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 11029 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11030 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 11031 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 11032 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11033 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 11034 | fi |
| 11035 | output_verbose_link_cmd='echo' |
| 11036 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11037 | osf3*) |
| 11038 | case $cc_basename in |
| 11039 | KCC) |
| 11040 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 11041 | |
| 11042 | # KCC will only create a shared library if the output file |
| 11043 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 11044 | # to its proper name (with version) after linking. |
| 11045 | 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' |
| 11046 | |
| 11047 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11048 | hardcode_libdir_separator_CXX=: |
| 11049 | |
| 11050 | # Archives containing C++ object files must be created using |
| 11051 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 11052 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 11053 | |
| 11054 | ;; |
| 11055 | RCC) |
| 11056 | # Rational C++ 2.4.1 |
| 11057 | # FIXME: insert proper C++ library support |
| 11058 | ld_shlibs_CXX=no |
| 11059 | ;; |
| 11060 | cxx) |
| 11061 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 11062 | 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' |
| 11063 | |
| 11064 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11065 | hardcode_libdir_separator_CXX=: |
| 11066 | |
| 11067 | # Commands to make compiler produce verbose output that lists |
| 11068 | # what "hidden" libraries, object files and flags are used when |
| 11069 | # linking a shared library. |
| 11070 | # |
| 11071 | # There doesn't appear to be a way to prevent this compiler from |
| 11072 | # explicitly linking system object files so we need to strip them |
| 11073 | # from the output so that they don't get included in the library |
| 11074 | # dependencies. |
| 11075 | 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' |
| 11076 | ;; |
| 11077 | *) |
| 11078 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 11079 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 11080 | 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' |
| 11081 | |
| 11082 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11083 | hardcode_libdir_separator_CXX=: |
| 11084 | |
| 11085 | # Commands to make compiler produce verbose output that lists |
| 11086 | # what "hidden" libraries, object files and flags are used when |
| 11087 | # linking a shared library. |
| 11088 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 11089 | |
| 11090 | else |
| 11091 | # FIXME: insert proper C++ library support |
| 11092 | ld_shlibs_CXX=no |
| 11093 | fi |
| 11094 | ;; |
| 11095 | esac |
| 11096 | ;; |
| 11097 | osf4* | osf5*) |
| 11098 | case $cc_basename in |
| 11099 | KCC) |
| 11100 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 11101 | |
| 11102 | # KCC will only create a shared library if the output file |
| 11103 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 11104 | # to its proper name (with version) after linking. |
| 11105 | 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' |
| 11106 | |
| 11107 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11108 | hardcode_libdir_separator_CXX=: |
| 11109 | |
| 11110 | # Archives containing C++ object files must be created using |
| 11111 | # the KAI C++ compiler. |
| 11112 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 11113 | ;; |
| 11114 | RCC) |
| 11115 | # Rational C++ 2.4.1 |
| 11116 | # FIXME: insert proper C++ library support |
| 11117 | ld_shlibs_CXX=no |
| 11118 | ;; |
| 11119 | cxx) |
| 11120 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 11121 | 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' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11122 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 11123 | echo "-hidden">> $lib.exp~ |
| 11124 | $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~ |
| 11125 | $rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11126 | |
| 11127 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 11128 | hardcode_libdir_separator_CXX=: |
| 11129 | |
| 11130 | # Commands to make compiler produce verbose output that lists |
| 11131 | # what "hidden" libraries, object files and flags are used when |
| 11132 | # linking a shared library. |
| 11133 | # |
| 11134 | # There doesn't appear to be a way to prevent this compiler from |
| 11135 | # explicitly linking system object files so we need to strip them |
| 11136 | # from the output so that they don't get included in the library |
| 11137 | # dependencies. |
| 11138 | 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' |
| 11139 | ;; |
| 11140 | *) |
| 11141 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 11142 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 11143 | 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' |
| 11144 | |
| 11145 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11146 | hardcode_libdir_separator_CXX=: |
| 11147 | |
| 11148 | # Commands to make compiler produce verbose output that lists |
| 11149 | # what "hidden" libraries, object files and flags are used when |
| 11150 | # linking a shared library. |
| 11151 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 11152 | |
| 11153 | else |
| 11154 | # FIXME: insert proper C++ library support |
| 11155 | ld_shlibs_CXX=no |
| 11156 | fi |
| 11157 | ;; |
| 11158 | esac |
| 11159 | ;; |
| 11160 | psos*) |
| 11161 | # FIXME: insert proper C++ library support |
| 11162 | ld_shlibs_CXX=no |
| 11163 | ;; |
| 11164 | sco*) |
| 11165 | archive_cmds_need_lc_CXX=no |
| 11166 | case $cc_basename in |
| 11167 | CC) |
| 11168 | # FIXME: insert proper C++ library support |
| 11169 | ld_shlibs_CXX=no |
| 11170 | ;; |
| 11171 | *) |
| 11172 | # FIXME: insert proper C++ library support |
| 11173 | ld_shlibs_CXX=no |
| 11174 | ;; |
| 11175 | esac |
| 11176 | ;; |
| 11177 | sunos4*) |
| 11178 | case $cc_basename in |
| 11179 | CC) |
| 11180 | # Sun C++ 4.x |
| 11181 | # FIXME: insert proper C++ library support |
| 11182 | ld_shlibs_CXX=no |
| 11183 | ;; |
| 11184 | lcc) |
| 11185 | # Lucid |
| 11186 | # FIXME: insert proper C++ library support |
| 11187 | ld_shlibs_CXX=no |
| 11188 | ;; |
| 11189 | *) |
| 11190 | # FIXME: insert proper C++ library support |
| 11191 | ld_shlibs_CXX=no |
| 11192 | ;; |
| 11193 | esac |
| 11194 | ;; |
| 11195 | solaris*) |
| 11196 | case $cc_basename in |
| 11197 | CC) |
| 11198 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 11199 | no_undefined_flag_CXX=' -zdefs' |
| 11200 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11201 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 11202 | $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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11203 | |
| 11204 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 11205 | hardcode_shlibpath_var_CXX=no |
| 11206 | case $host_os in |
| 11207 | solaris2.0-5 | solaris2.0-5.*) ;; |
| 11208 | *) |
| 11209 | # The C++ compiler is used as linker so we must use $wl |
| 11210 | # flag to pass the commands to the underlying system |
| 11211 | # linker. |
| 11212 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 11213 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 11214 | ;; |
| 11215 | esac |
| 11216 | link_all_deplibs_CXX=yes |
| 11217 | |
| 11218 | # Commands to make compiler produce verbose output that lists |
| 11219 | # what "hidden" libraries, object files and flags are used when |
| 11220 | # linking a shared library. |
| 11221 | # |
| 11222 | # There doesn't appear to be a way to prevent this compiler from |
| 11223 | # explicitly linking system object files so we need to strip them |
| 11224 | # from the output so that they don't get included in the library |
| 11225 | # dependencies. |
| 11226 | 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' |
| 11227 | |
| 11228 | # Archives containing C++ object files must be created using |
| 11229 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 11230 | # necessary to make sure instantiated templates are included |
| 11231 | # in the archive. |
| 11232 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 11233 | ;; |
| 11234 | gcx) |
| 11235 | # Green Hills C++ Compiler |
| 11236 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 11237 | |
| 11238 | # The C++ compiler must be used to create the archive. |
| 11239 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 11240 | ;; |
| 11241 | *) |
| 11242 | # GNU C++ compiler with Solaris linker |
| 11243 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 11244 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 11245 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 11246 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11247 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 11248 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 11249 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11250 | # Commands to make compiler produce verbose output that lists |
| 11251 | # what "hidden" libraries, object files and flags are used when |
| 11252 | # linking a shared library. |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 11253 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11254 | else |
| 11255 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 11256 | # platform. |
| 11257 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11258 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 11259 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11260 | |
| 11261 | # Commands to make compiler produce verbose output that lists |
| 11262 | # what "hidden" libraries, object files and flags are used when |
| 11263 | # linking a shared library. |
| 11264 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 11265 | fi |
| 11266 | |
| 11267 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 11268 | fi |
| 11269 | ;; |
| 11270 | esac |
| 11271 | ;; |
| 11272 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 11273 | archive_cmds_need_lc_CXX=no |
| 11274 | ;; |
| 11275 | tandem*) |
| 11276 | case $cc_basename in |
| 11277 | NCC) |
| 11278 | # NonStop-UX NCC 3.20 |
| 11279 | # FIXME: insert proper C++ library support |
| 11280 | ld_shlibs_CXX=no |
| 11281 | ;; |
| 11282 | *) |
| 11283 | # FIXME: insert proper C++ library support |
| 11284 | ld_shlibs_CXX=no |
| 11285 | ;; |
| 11286 | esac |
| 11287 | ;; |
| 11288 | vxworks*) |
| 11289 | # FIXME: insert proper C++ library support |
| 11290 | ld_shlibs_CXX=no |
| 11291 | ;; |
| 11292 | *) |
| 11293 | # FIXME: insert proper C++ library support |
| 11294 | ld_shlibs_CXX=no |
| 11295 | ;; |
| 11296 | esac |
| 11297 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 11298 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 11299 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 11300 | |
| 11301 | GCC_CXX="$GXX" |
| 11302 | LD_CXX="$LD" |
| 11303 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11304 | |
| 11305 | cat > conftest.$ac_ext <<EOF |
| 11306 | class Foo |
| 11307 | { |
| 11308 | public: |
| 11309 | Foo (void) { a = 0; } |
| 11310 | private: |
| 11311 | int a; |
| 11312 | }; |
| 11313 | EOF |
| 11314 | |
| 11315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11316 | (eval $ac_compile) 2>&5 |
| 11317 | ac_status=$? |
| 11318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11319 | (exit $ac_status); }; then |
| 11320 | # Parse the compiler output and extract the necessary |
| 11321 | # objects, libraries and library flags. |
| 11322 | |
| 11323 | # Sentinel used to keep track of whether or not we are before |
| 11324 | # the conftest object file. |
| 11325 | pre_test_object_deps_done=no |
| 11326 | |
| 11327 | # The `*' in the case matches for architectures that use `case' in |
| 11328 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 11329 | # eval without this substitution. |
| 11330 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
| 11331 | |
| 11332 | for p in `eval $output_verbose_link_cmd`; do |
| 11333 | case $p in |
| 11334 | |
| 11335 | -L* | -R* | -l*) |
| 11336 | # Some compilers place space between "-{L,R}" and the path. |
| 11337 | # Remove the space. |
| 11338 | if test $p = "-L" \ |
| 11339 | || test $p = "-R"; then |
| 11340 | prev=$p |
| 11341 | continue |
| 11342 | else |
| 11343 | prev= |
| 11344 | fi |
| 11345 | |
| 11346 | if test "$pre_test_object_deps_done" = no; then |
| 11347 | case $p in |
| 11348 | -L* | -R*) |
| 11349 | # Internal compiler library paths should come after those |
| 11350 | # provided the user. The postdeps already come after the |
| 11351 | # user supplied libs so there is no need to process them. |
| 11352 | if test -z "$compiler_lib_search_path_CXX"; then |
| 11353 | compiler_lib_search_path_CXX="${prev}${p}" |
| 11354 | else |
| 11355 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 11356 | fi |
| 11357 | ;; |
| 11358 | # The "-l" case would never come before the object being |
| 11359 | # linked, so don't bother handling this case. |
| 11360 | esac |
| 11361 | else |
| 11362 | if test -z "$postdeps_CXX"; then |
| 11363 | postdeps_CXX="${prev}${p}" |
| 11364 | else |
| 11365 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 11366 | fi |
| 11367 | fi |
| 11368 | ;; |
| 11369 | |
| 11370 | *.$objext) |
| 11371 | # This assumes that the test object file only shows up |
| 11372 | # once in the compiler output. |
| 11373 | if test "$p" = "conftest.$objext"; then |
| 11374 | pre_test_object_deps_done=yes |
| 11375 | continue |
| 11376 | fi |
| 11377 | |
| 11378 | if test "$pre_test_object_deps_done" = no; then |
| 11379 | if test -z "$predep_objects_CXX"; then |
| 11380 | predep_objects_CXX="$p" |
| 11381 | else |
| 11382 | predep_objects_CXX="$predep_objects_CXX $p" |
| 11383 | fi |
| 11384 | else |
| 11385 | if test -z "$postdep_objects_CXX"; then |
| 11386 | postdep_objects_CXX="$p" |
| 11387 | else |
| 11388 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 11389 | fi |
| 11390 | fi |
| 11391 | ;; |
| 11392 | |
| 11393 | *) ;; # Ignore the rest. |
| 11394 | |
| 11395 | esac |
| 11396 | done |
| 11397 | |
| 11398 | # Clean up. |
| 11399 | rm -f a.out a.exe |
| 11400 | else |
| 11401 | echo "libtool.m4: error: problem compiling CXX test program" |
| 11402 | fi |
| 11403 | |
| 11404 | $rm -f confest.$objext |
| 11405 | |
| 11406 | case " $postdeps_CXX " in |
| 11407 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 11408 | esac |
| 11409 | |
| 11410 | lt_prog_compiler_wl_CXX= |
| 11411 | lt_prog_compiler_pic_CXX= |
| 11412 | lt_prog_compiler_static_CXX= |
| 11413 | |
| 11414 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 11415 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 11416 | |
| 11417 | # C++ specific cases for pic, static, wl, etc. |
| 11418 | if test "$GXX" = yes; then |
| 11419 | lt_prog_compiler_wl_CXX='-Wl,' |
| 11420 | lt_prog_compiler_static_CXX='-static' |
| 11421 | |
| 11422 | case $host_os in |
| 11423 | aix*) |
| 11424 | # All AIX code is PIC. |
| 11425 | if test "$host_cpu" = ia64; then |
| 11426 | # AIX 5 now supports IA64 processor |
| 11427 | lt_prog_compiler_static_CXX='-Bstatic' |
| 11428 | fi |
| 11429 | ;; |
| 11430 | amigaos*) |
| 11431 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 11432 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 11433 | # like `-m68040'. |
| 11434 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 11435 | ;; |
| 11436 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 11437 | # PIC is the default for these OSes. |
| 11438 | ;; |
| 11439 | mingw* | os2* | pw32*) |
| 11440 | # This hack is so that the source file can tell whether it is being |
| 11441 | # built for inclusion in a dll (and should export symbols for example). |
| 11442 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 11443 | ;; |
| 11444 | darwin* | rhapsody*) |
| 11445 | # PIC is the default on this platform |
| 11446 | # Common symbols not allowed in MH_DYLIB files |
| 11447 | lt_prog_compiler_pic_CXX='-fno-common' |
| 11448 | ;; |
| 11449 | *djgpp*) |
| 11450 | # DJGPP does not support shared libraries at all |
| 11451 | lt_prog_compiler_pic_CXX= |
| 11452 | ;; |
| 11453 | sysv4*MP*) |
| 11454 | if test -d /usr/nec; then |
| 11455 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 11456 | fi |
| 11457 | ;; |
| 11458 | hpux*) |
| 11459 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 11460 | # not for PA HP-UX. |
| 11461 | case "$host_cpu" in |
| 11462 | hppa*64*|ia64*) |
| 11463 | ;; |
| 11464 | *) |
| 11465 | lt_prog_compiler_pic_CXX='-fPIC' |
| 11466 | ;; |
| 11467 | esac |
| 11468 | ;; |
| 11469 | *) |
| 11470 | lt_prog_compiler_pic_CXX='-fPIC' |
| 11471 | ;; |
| 11472 | esac |
| 11473 | else |
| 11474 | case $host_os in |
| 11475 | aix4* | aix5*) |
| 11476 | # All AIX code is PIC. |
| 11477 | if test "$host_cpu" = ia64; then |
| 11478 | # AIX 5 now supports IA64 processor |
| 11479 | lt_prog_compiler_static_CXX='-Bstatic' |
| 11480 | else |
| 11481 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 11482 | fi |
| 11483 | ;; |
| 11484 | chorus*) |
| 11485 | case $cc_basename in |
| 11486 | cxch68) |
| 11487 | # Green Hills C++ Compiler |
| 11488 | # _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" |
| 11489 | ;; |
| 11490 | esac |
| 11491 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11492 | darwin*) |
| 11493 | # PIC is the default on this platform |
| 11494 | # Common symbols not allowed in MH_DYLIB files |
| 11495 | case "$cc_basename" in |
| 11496 | xlc*) |
| 11497 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 11498 | lt_prog_compiler_wl_CXX='-Wl,' |
| 11499 | ;; |
| 11500 | esac |
| 11501 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11502 | dgux*) |
| 11503 | case $cc_basename in |
| 11504 | ec++) |
| 11505 | lt_prog_compiler_pic_CXX='-KPIC' |
| 11506 | ;; |
| 11507 | ghcx) |
| 11508 | # Green Hills C++ Compiler |
| 11509 | lt_prog_compiler_pic_CXX='-pic' |
| 11510 | ;; |
| 11511 | *) |
| 11512 | ;; |
| 11513 | esac |
| 11514 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11515 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11516 | # FreeBSD uses GNU C++ |
| 11517 | ;; |
| 11518 | hpux9* | hpux10* | hpux11*) |
| 11519 | case $cc_basename in |
| 11520 | CC) |
| 11521 | lt_prog_compiler_wl_CXX='-Wl,' |
| 11522 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 11523 | if test "$host_cpu" != ia64; then |
| 11524 | lt_prog_compiler_pic_CXX='+Z' |
| 11525 | fi |
| 11526 | ;; |
| 11527 | aCC) |
| 11528 | lt_prog_compiler_wl_CXX='-Wl,' |
| 11529 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 11530 | case "$host_cpu" in |
| 11531 | hppa*64*|ia64*) |
| 11532 | # +Z the default |
| 11533 | ;; |
| 11534 | *) |
| 11535 | lt_prog_compiler_pic_CXX='+Z' |
| 11536 | ;; |
| 11537 | esac |
| 11538 | ;; |
| 11539 | *) |
| 11540 | ;; |
| 11541 | esac |
| 11542 | ;; |
| 11543 | irix5* | irix6* | nonstopux*) |
| 11544 | case $cc_basename in |
| 11545 | CC) |
| 11546 | lt_prog_compiler_wl_CXX='-Wl,' |
| 11547 | lt_prog_compiler_static_CXX='-non_shared' |
| 11548 | # CC pic flag -KPIC is the default. |
| 11549 | ;; |
| 11550 | *) |
| 11551 | ;; |
| 11552 | esac |
| 11553 | ;; |
| 11554 | linux*) |
| 11555 | case $cc_basename in |
| 11556 | KCC) |
| 11557 | # KAI C++ Compiler |
| 11558 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 11559 | lt_prog_compiler_pic_CXX='-fPIC' |
| 11560 | ;; |
| 11561 | icpc) |
| 11562 | # Intel C++ |
| 11563 | lt_prog_compiler_wl_CXX='-Wl,' |
| 11564 | lt_prog_compiler_pic_CXX='-KPIC' |
| 11565 | lt_prog_compiler_static_CXX='-static' |
| 11566 | ;; |
| 11567 | cxx) |
| 11568 | # Compaq C++ |
| 11569 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 11570 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 11571 | lt_prog_compiler_pic_CXX= |
| 11572 | lt_prog_compiler_static_CXX='-non_shared' |
| 11573 | ;; |
| 11574 | *) |
| 11575 | ;; |
| 11576 | esac |
| 11577 | ;; |
| 11578 | lynxos*) |
| 11579 | ;; |
| 11580 | m88k*) |
| 11581 | ;; |
| 11582 | mvs*) |
| 11583 | case $cc_basename in |
| 11584 | cxx) |
| 11585 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 11586 | ;; |
| 11587 | *) |
| 11588 | ;; |
| 11589 | esac |
| 11590 | ;; |
| 11591 | netbsd*) |
| 11592 | ;; |
| 11593 | osf3* | osf4* | osf5*) |
| 11594 | case $cc_basename in |
| 11595 | KCC) |
| 11596 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 11597 | ;; |
| 11598 | RCC) |
| 11599 | # Rational C++ 2.4.1 |
| 11600 | lt_prog_compiler_pic_CXX='-pic' |
| 11601 | ;; |
| 11602 | cxx) |
| 11603 | # Digital/Compaq C++ |
| 11604 | lt_prog_compiler_wl_CXX='-Wl,' |
| 11605 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 11606 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 11607 | lt_prog_compiler_pic_CXX= |
| 11608 | lt_prog_compiler_static_CXX='-non_shared' |
| 11609 | ;; |
| 11610 | *) |
| 11611 | ;; |
| 11612 | esac |
| 11613 | ;; |
| 11614 | psos*) |
| 11615 | ;; |
| 11616 | sco*) |
| 11617 | case $cc_basename in |
| 11618 | CC) |
| 11619 | lt_prog_compiler_pic_CXX='-fPIC' |
| 11620 | ;; |
| 11621 | *) |
| 11622 | ;; |
| 11623 | esac |
| 11624 | ;; |
| 11625 | solaris*) |
| 11626 | case $cc_basename in |
| 11627 | CC) |
| 11628 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 11629 | lt_prog_compiler_pic_CXX='-KPIC' |
| 11630 | lt_prog_compiler_static_CXX='-Bstatic' |
| 11631 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 11632 | ;; |
| 11633 | gcx) |
| 11634 | # Green Hills C++ Compiler |
| 11635 | lt_prog_compiler_pic_CXX='-PIC' |
| 11636 | ;; |
| 11637 | *) |
| 11638 | ;; |
| 11639 | esac |
| 11640 | ;; |
| 11641 | sunos4*) |
| 11642 | case $cc_basename in |
| 11643 | CC) |
| 11644 | # Sun C++ 4.x |
| 11645 | lt_prog_compiler_pic_CXX='-pic' |
| 11646 | lt_prog_compiler_static_CXX='-Bstatic' |
| 11647 | ;; |
| 11648 | lcc) |
| 11649 | # Lucid |
| 11650 | lt_prog_compiler_pic_CXX='-pic' |
| 11651 | ;; |
| 11652 | *) |
| 11653 | ;; |
| 11654 | esac |
| 11655 | ;; |
| 11656 | tandem*) |
| 11657 | case $cc_basename in |
| 11658 | NCC) |
| 11659 | # NonStop-UX NCC 3.20 |
| 11660 | lt_prog_compiler_pic_CXX='-KPIC' |
| 11661 | ;; |
| 11662 | *) |
| 11663 | ;; |
| 11664 | esac |
| 11665 | ;; |
| 11666 | unixware*) |
| 11667 | ;; |
| 11668 | vxworks*) |
| 11669 | ;; |
| 11670 | *) |
| 11671 | lt_prog_compiler_can_build_shared_CXX=no |
| 11672 | ;; |
| 11673 | esac |
| 11674 | fi |
| 11675 | |
| 11676 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 11677 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
| 11678 | |
| 11679 | # |
| 11680 | # Check to make sure the PIC flag actually works. |
| 11681 | # |
| 11682 | if test -n "$lt_prog_compiler_pic_CXX"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11683 | |
| 11684 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11685 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
| 11686 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 11687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11688 | else |
| 11689 | lt_prog_compiler_pic_works_CXX=no |
| 11690 | ac_outfile=conftest.$ac_objext |
| 11691 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11692 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 11693 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11694 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11695 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11696 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11697 | # The option is referenced via a variable to avoid confusing sed. |
| 11698 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11699 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 11700 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11701 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11702 | (eval echo "\"\$as_me:11702: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11703 | (eval "$lt_compile" 2>conftest.err) |
| 11704 | ac_status=$? |
| 11705 | cat conftest.err >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11706 | echo "$as_me:11706: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11707 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 11708 | # The compiler can only warn and ignore the option if not recognized |
| 11709 | # So say no if there are warnings |
| 11710 | if test ! -s conftest.err; then |
| 11711 | lt_prog_compiler_pic_works_CXX=yes |
| 11712 | fi |
| 11713 | fi |
| 11714 | $rm conftest* |
| 11715 | |
| 11716 | fi |
| 11717 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 11718 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
| 11719 | |
| 11720 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 11721 | case $lt_prog_compiler_pic_CXX in |
| 11722 | "" | " "*) ;; |
| 11723 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 11724 | esac |
| 11725 | else |
| 11726 | lt_prog_compiler_pic_CXX= |
| 11727 | lt_prog_compiler_can_build_shared_CXX=no |
| 11728 | fi |
| 11729 | |
| 11730 | fi |
| 11731 | case "$host_os" in |
| 11732 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 11733 | *djgpp*) |
| 11734 | lt_prog_compiler_pic_CXX= |
| 11735 | ;; |
| 11736 | *) |
| 11737 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 11738 | ;; |
| 11739 | esac |
| 11740 | |
| 11741 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 11742 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 11743 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 11744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11745 | else |
| 11746 | lt_cv_prog_compiler_c_o_CXX=no |
| 11747 | $rm -r conftest 2>/dev/null |
| 11748 | mkdir conftest |
| 11749 | cd conftest |
| 11750 | mkdir out |
| 11751 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11752 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11753 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 11754 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11755 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11756 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11757 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11758 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11759 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 11760 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11761 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11762 | (eval echo "\"\$as_me:11762: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11763 | (eval "$lt_compile" 2>out/conftest.err) |
| 11764 | ac_status=$? |
| 11765 | cat out/conftest.err >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11766 | echo "$as_me:11766: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11767 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 11768 | then |
| 11769 | # The compiler can only warn and ignore the option if not recognized |
| 11770 | # So say no if there are warnings |
| 11771 | if test ! -s out/conftest.err; then |
| 11772 | lt_cv_prog_compiler_c_o_CXX=yes |
| 11773 | fi |
| 11774 | fi |
| 11775 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11776 | $rm conftest* |
| 11777 | # SGI C++ compiler will create directory out/ii_files/ for |
| 11778 | # template instantiation |
| 11779 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 11780 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11781 | cd .. |
| 11782 | rmdir conftest |
| 11783 | $rm conftest* |
| 11784 | |
| 11785 | fi |
| 11786 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 11787 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
| 11788 | |
| 11789 | |
| 11790 | hard_links="nottested" |
| 11791 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 11792 | # do not overwrite the value of need_locks provided by the user |
| 11793 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 11794 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 11795 | hard_links=yes |
| 11796 | $rm conftest* |
| 11797 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 11798 | touch conftest.a |
| 11799 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 11800 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 11801 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 11802 | echo "${ECHO_T}$hard_links" >&6 |
| 11803 | if test "$hard_links" = no; then |
| 11804 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 11805 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 11806 | need_locks=warn |
| 11807 | fi |
| 11808 | else |
| 11809 | need_locks=no |
| 11810 | fi |
| 11811 | |
| 11812 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 11813 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 11814 | |
| 11815 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 11816 | case $host_os in |
| 11817 | aix4* | aix5*) |
| 11818 | # If we're using GNU nm, then we don't want the "-C" option. |
| 11819 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 11820 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 11821 | 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' |
| 11822 | else |
| 11823 | 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' |
| 11824 | fi |
| 11825 | ;; |
| 11826 | pw32*) |
| 11827 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 11828 | ;; |
| 11829 | cygwin* | mingw*) |
| 11830 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 11831 | ;; |
| 11832 | *) |
| 11833 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 11834 | ;; |
| 11835 | esac |
| 11836 | |
| 11837 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 11838 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 11839 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 11840 | |
| 11841 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 11842 | if test "$GCC" = yes; then |
| 11843 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 11844 | fi |
| 11845 | |
| 11846 | # |
| 11847 | # Do we need to explicitly link libc? |
| 11848 | # |
| 11849 | case "x$archive_cmds_need_lc_CXX" in |
| 11850 | x|xyes) |
| 11851 | # Assume -lc should be added |
| 11852 | archive_cmds_need_lc_CXX=yes |
| 11853 | |
| 11854 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 11855 | case $archive_cmds_CXX in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11856 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11857 | # FIXME: we may have to deal with multi-command sequences. |
| 11858 | ;; |
| 11859 | '$CC '*) |
| 11860 | # Test whether the compiler implicitly links with -lc since on some |
| 11861 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 11862 | # to ld, don't add -lc before -lgcc. |
| 11863 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 11864 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 11865 | $rm conftest* |
| 11866 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11867 | |
| 11868 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11869 | (eval $ac_compile) 2>&5 |
| 11870 | ac_status=$? |
| 11871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11872 | (exit $ac_status); } 2>conftest.err; then |
| 11873 | soname=conftest |
| 11874 | lib=conftest |
| 11875 | libobjs=conftest.$ac_objext |
| 11876 | deplibs= |
| 11877 | wl=$lt_prog_compiler_wl_CXX |
| 11878 | compiler_flags=-v |
| 11879 | linker_flags=-v |
| 11880 | verstring= |
| 11881 | output_objdir=. |
| 11882 | libname=conftest |
| 11883 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 11884 | allow_undefined_flag_CXX= |
| 11885 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 11886 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 11887 | ac_status=$? |
| 11888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11889 | (exit $ac_status); } |
| 11890 | then |
| 11891 | archive_cmds_need_lc_CXX=no |
| 11892 | else |
| 11893 | archive_cmds_need_lc_CXX=yes |
| 11894 | fi |
| 11895 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 11896 | else |
| 11897 | cat conftest.err 1>&5 |
| 11898 | fi |
| 11899 | $rm conftest* |
| 11900 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 11901 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
| 11902 | ;; |
| 11903 | esac |
| 11904 | fi |
| 11905 | ;; |
| 11906 | esac |
| 11907 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11908 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 11909 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 11910 | library_names_spec= |
| 11911 | libname_spec='lib$name' |
| 11912 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11913 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11914 | postinstall_cmds= |
| 11915 | postuninstall_cmds= |
| 11916 | finish_cmds= |
| 11917 | finish_eval= |
| 11918 | shlibpath_var= |
| 11919 | shlibpath_overrides_runpath=unknown |
| 11920 | version_type=none |
| 11921 | dynamic_linker="$host_os ld.so" |
| 11922 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 11923 | if test "$GCC" = yes; then |
| 11924 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 11925 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 11926 | # if the path contains ";" then we assume it to be the separator |
| 11927 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 11928 | # assumed that no part of a normal pathname contains ";" but that should |
| 11929 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 11930 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 11931 | else |
| 11932 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 11933 | fi |
| 11934 | else |
| 11935 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 11936 | fi |
| 11937 | need_lib_prefix=unknown |
| 11938 | hardcode_into_libs=no |
| 11939 | |
| 11940 | # when you set need_version to no, make sure it does not cause -set_version |
| 11941 | # flags to be left without arguments |
| 11942 | need_version=unknown |
| 11943 | |
| 11944 | case $host_os in |
| 11945 | aix3*) |
| 11946 | version_type=linux |
| 11947 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 11948 | shlibpath_var=LIBPATH |
| 11949 | |
| 11950 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 11951 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11952 | ;; |
| 11953 | |
| 11954 | aix4* | aix5*) |
| 11955 | version_type=linux |
| 11956 | need_lib_prefix=no |
| 11957 | need_version=no |
| 11958 | hardcode_into_libs=yes |
| 11959 | if test "$host_cpu" = ia64; then |
| 11960 | # AIX 5 supports IA64 |
| 11961 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 11962 | shlibpath_var=LD_LIBRARY_PATH |
| 11963 | else |
| 11964 | # With GCC up to 2.95.x, collect2 would create an import file |
| 11965 | # for dependence libraries. The import file would start with |
| 11966 | # the line `#! .'. This would cause the generated library to |
| 11967 | # depend on `.', always an invalid library. This was fixed in |
| 11968 | # development snapshots of GCC prior to 3.0. |
| 11969 | case $host_os in |
| 11970 | aix4 | aix4.[01] | aix4.[01].*) |
| 11971 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 11972 | echo ' yes ' |
| 11973 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 11974 | : |
| 11975 | else |
| 11976 | can_build_shared=no |
| 11977 | fi |
| 11978 | ;; |
| 11979 | esac |
| 11980 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 11981 | # soname into executable. Probably we can add versioning support to |
| 11982 | # collect2, so additional links can be useful in future. |
| 11983 | if test "$aix_use_runtimelinking" = yes; then |
| 11984 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 11985 | # instead of lib<name>.a to let people know that these are not |
| 11986 | # typical AIX shared libraries. |
| 11987 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11988 | else |
| 11989 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 11990 | # and later when we are not doing run time linking. |
| 11991 | library_names_spec='${libname}${release}.a $libname.a' |
| 11992 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11993 | fi |
| 11994 | shlibpath_var=LIBPATH |
| 11995 | fi |
| 11996 | ;; |
| 11997 | |
| 11998 | amigaos*) |
| 11999 | library_names_spec='$libname.ixlibrary $libname.a' |
| 12000 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12001 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12002 | ;; |
| 12003 | |
| 12004 | beos*) |
| 12005 | library_names_spec='${libname}${shared_ext}' |
| 12006 | dynamic_linker="$host_os ld.so" |
| 12007 | shlibpath_var=LIBRARY_PATH |
| 12008 | ;; |
| 12009 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12010 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12011 | version_type=linux |
| 12012 | need_version=no |
| 12013 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12014 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12015 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 12016 | shlibpath_var=LD_LIBRARY_PATH |
| 12017 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 12018 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 12019 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 12020 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 12021 | # libtool to hard-code these into programs |
| 12022 | ;; |
| 12023 | |
| 12024 | cygwin* | mingw* | pw32*) |
| 12025 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12026 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12027 | need_version=no |
| 12028 | need_lib_prefix=no |
| 12029 | |
| 12030 | case $GCC,$host_os in |
| 12031 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 12032 | library_names_spec='$libname.dll.a' |
| 12033 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12034 | postinstall_cmds='base_file=`basename \${file}`~ |
| 12035 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 12036 | dldir=$destdir/`dirname \$dlpath`~ |
| 12037 | test -d \$dldir || mkdir -p \$dldir~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12038 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12039 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 12040 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12041 | $rm \$dlpath' |
| 12042 | shlibpath_overrides_runpath=yes |
| 12043 | |
| 12044 | case $host_os in |
| 12045 | cygwin*) |
| 12046 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 12047 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12048 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12049 | ;; |
| 12050 | mingw*) |
| 12051 | # MinGW DLLs use traditional 'lib' prefix |
| 12052 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 12053 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 12054 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 12055 | # It is most probably a Windows format PATH printed by |
| 12056 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 12057 | # path with ; separators, and with drive letters. We can handle the |
| 12058 | # drive letters (cygwin fileutils understands them), so leave them, |
| 12059 | # especially as we might pass files found there to a mingw objdump, |
| 12060 | # which wouldn't understand a cygwinified path. Ahh. |
| 12061 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 12062 | else |
| 12063 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 12064 | fi |
| 12065 | ;; |
| 12066 | pw32*) |
| 12067 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 12068 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 12069 | ;; |
| 12070 | esac |
| 12071 | ;; |
| 12072 | |
| 12073 | *) |
| 12074 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 12075 | ;; |
| 12076 | esac |
| 12077 | dynamic_linker='Win32 ld.exe' |
| 12078 | # FIXME: first we should search . and the directory the executable is in |
| 12079 | shlibpath_var=PATH |
| 12080 | ;; |
| 12081 | |
| 12082 | darwin* | rhapsody*) |
| 12083 | dynamic_linker="$host_os dyld" |
| 12084 | version_type=darwin |
| 12085 | need_lib_prefix=no |
| 12086 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12087 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12088 | soname_spec='${libname}${release}${major}$shared_ext' |
| 12089 | shlibpath_overrides_runpath=yes |
| 12090 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12091 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12092 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12093 | if test "$GCC" = yes; then |
| 12094 | 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"` |
| 12095 | else |
| 12096 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12097 | fi |
| 12098 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 12099 | ;; |
| 12100 | |
| 12101 | dgux*) |
| 12102 | version_type=linux |
| 12103 | need_lib_prefix=no |
| 12104 | need_version=no |
| 12105 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 12106 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12107 | shlibpath_var=LD_LIBRARY_PATH |
| 12108 | ;; |
| 12109 | |
| 12110 | freebsd1*) |
| 12111 | dynamic_linker=no |
| 12112 | ;; |
| 12113 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12114 | kfreebsd*-gnu) |
| 12115 | version_type=linux |
| 12116 | need_lib_prefix=no |
| 12117 | need_version=no |
| 12118 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 12119 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12120 | shlibpath_var=LD_LIBRARY_PATH |
| 12121 | shlibpath_overrides_runpath=no |
| 12122 | hardcode_into_libs=yes |
| 12123 | dynamic_linker='GNU ld.so' |
| 12124 | ;; |
| 12125 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12126 | freebsd*) |
| 12127 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 12128 | version_type=freebsd-$objformat |
| 12129 | case $version_type in |
| 12130 | freebsd-elf*) |
| 12131 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 12132 | need_version=no |
| 12133 | need_lib_prefix=no |
| 12134 | ;; |
| 12135 | freebsd-*) |
| 12136 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 12137 | need_version=yes |
| 12138 | ;; |
| 12139 | esac |
| 12140 | shlibpath_var=LD_LIBRARY_PATH |
| 12141 | case $host_os in |
| 12142 | freebsd2*) |
| 12143 | shlibpath_overrides_runpath=yes |
| 12144 | ;; |
| 12145 | freebsd3.01* | freebsdelf3.01*) |
| 12146 | shlibpath_overrides_runpath=yes |
| 12147 | hardcode_into_libs=yes |
| 12148 | ;; |
| 12149 | *) # from 3.2 on |
| 12150 | shlibpath_overrides_runpath=no |
| 12151 | hardcode_into_libs=yes |
| 12152 | ;; |
| 12153 | esac |
| 12154 | ;; |
| 12155 | |
| 12156 | gnu*) |
| 12157 | version_type=linux |
| 12158 | need_lib_prefix=no |
| 12159 | need_version=no |
| 12160 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 12161 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12162 | shlibpath_var=LD_LIBRARY_PATH |
| 12163 | hardcode_into_libs=yes |
| 12164 | ;; |
| 12165 | |
| 12166 | hpux9* | hpux10* | hpux11*) |
| 12167 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 12168 | # link against other versions. |
| 12169 | version_type=sunos |
| 12170 | need_lib_prefix=no |
| 12171 | need_version=no |
| 12172 | case "$host_cpu" in |
| 12173 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12174 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12175 | hardcode_into_libs=yes |
| 12176 | dynamic_linker="$host_os dld.so" |
| 12177 | shlibpath_var=LD_LIBRARY_PATH |
| 12178 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 12179 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12180 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12181 | if test "X$HPUX_IA64_MODE" = X32; then |
| 12182 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 12183 | else |
| 12184 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 12185 | fi |
| 12186 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 12187 | ;; |
| 12188 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12189 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12190 | hardcode_into_libs=yes |
| 12191 | dynamic_linker="$host_os dld.sl" |
| 12192 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 12193 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 12194 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12195 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12196 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 12197 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 12198 | ;; |
| 12199 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12200 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12201 | dynamic_linker="$host_os dld.sl" |
| 12202 | shlibpath_var=SHLIB_PATH |
| 12203 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 12204 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12205 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12206 | ;; |
| 12207 | esac |
| 12208 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 12209 | postinstall_cmds='chmod 555 $lib' |
| 12210 | ;; |
| 12211 | |
| 12212 | irix5* | irix6* | nonstopux*) |
| 12213 | case $host_os in |
| 12214 | nonstopux*) version_type=nonstopux ;; |
| 12215 | *) |
| 12216 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 12217 | version_type=linux |
| 12218 | else |
| 12219 | version_type=irix |
| 12220 | fi ;; |
| 12221 | esac |
| 12222 | need_lib_prefix=no |
| 12223 | need_version=no |
| 12224 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12225 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 12226 | case $host_os in |
| 12227 | irix5* | nonstopux*) |
| 12228 | libsuff= shlibsuff= |
| 12229 | ;; |
| 12230 | *) |
| 12231 | case $LD in # libtool.m4 will add one of these switches to LD |
| 12232 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 12233 | libsuff= shlibsuff= libmagic=32-bit;; |
| 12234 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 12235 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 12236 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 12237 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 12238 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 12239 | esac |
| 12240 | ;; |
| 12241 | esac |
| 12242 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 12243 | shlibpath_overrides_runpath=no |
| 12244 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 12245 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 12246 | hardcode_into_libs=yes |
| 12247 | ;; |
| 12248 | |
| 12249 | # No shared lib support for Linux oldld, aout, or coff. |
| 12250 | linux*oldld* | linux*aout* | linux*coff*) |
| 12251 | dynamic_linker=no |
| 12252 | ;; |
| 12253 | |
| 12254 | # This must be Linux ELF. |
| 12255 | linux*) |
| 12256 | version_type=linux |
| 12257 | need_lib_prefix=no |
| 12258 | need_version=no |
| 12259 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12260 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12261 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 12262 | shlibpath_var=LD_LIBRARY_PATH |
| 12263 | shlibpath_overrides_runpath=no |
| 12264 | # This implies no fast_install, which is unacceptable. |
| 12265 | # Some rework will be needed to allow for fast_install |
| 12266 | # before this can be enabled. |
| 12267 | hardcode_into_libs=yes |
| 12268 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12269 | # Append ld.so.conf contents to the search path |
| 12270 | if test -f /etc/ld.so.conf; then |
| 12271 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 12272 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 12273 | fi |
| 12274 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12275 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 12276 | # powerpc, because MkLinux only supported shared libraries with the |
| 12277 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 12278 | # most powerpc-linux boxes support dynamic linking these days and |
| 12279 | # people can always --disable-shared, the test was removed, and we |
| 12280 | # assume the GNU/Linux dynamic linker is in use. |
| 12281 | dynamic_linker='GNU/Linux ld.so' |
| 12282 | ;; |
| 12283 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12284 | knetbsd*-gnu) |
| 12285 | version_type=linux |
| 12286 | need_lib_prefix=no |
| 12287 | need_version=no |
| 12288 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 12289 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12290 | shlibpath_var=LD_LIBRARY_PATH |
| 12291 | shlibpath_overrides_runpath=no |
| 12292 | hardcode_into_libs=yes |
| 12293 | dynamic_linker='GNU ld.so' |
| 12294 | ;; |
| 12295 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12296 | netbsd*) |
| 12297 | version_type=sunos |
| 12298 | need_lib_prefix=no |
| 12299 | need_version=no |
| 12300 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 12301 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 12302 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 12303 | dynamic_linker='NetBSD (a.out) ld.so' |
| 12304 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12305 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12306 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12307 | dynamic_linker='NetBSD ld.elf_so' |
| 12308 | fi |
| 12309 | shlibpath_var=LD_LIBRARY_PATH |
| 12310 | shlibpath_overrides_runpath=yes |
| 12311 | hardcode_into_libs=yes |
| 12312 | ;; |
| 12313 | |
| 12314 | newsos6) |
| 12315 | version_type=linux |
| 12316 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12317 | shlibpath_var=LD_LIBRARY_PATH |
| 12318 | shlibpath_overrides_runpath=yes |
| 12319 | ;; |
| 12320 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12321 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12322 | version_type=linux |
| 12323 | need_lib_prefix=no |
| 12324 | need_version=no |
| 12325 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12326 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12327 | shlibpath_var=LD_LIBRARY_PATH |
| 12328 | shlibpath_overrides_runpath=yes |
| 12329 | ;; |
| 12330 | |
| 12331 | openbsd*) |
| 12332 | version_type=sunos |
| 12333 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 12334 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12335 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 12336 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 12337 | shlibpath_var=LD_LIBRARY_PATH |
| 12338 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12339 | case $host_os in |
| 12340 | openbsd2.[89] | openbsd2.[89].*) |
| 12341 | shlibpath_overrides_runpath=no |
| 12342 | ;; |
| 12343 | *) |
| 12344 | shlibpath_overrides_runpath=yes |
| 12345 | ;; |
| 12346 | esac |
| 12347 | else |
| 12348 | shlibpath_overrides_runpath=yes |
| 12349 | fi |
| 12350 | ;; |
| 12351 | |
| 12352 | os2*) |
| 12353 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12354 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12355 | need_lib_prefix=no |
| 12356 | library_names_spec='$libname${shared_ext} $libname.a' |
| 12357 | dynamic_linker='OS/2 ld.exe' |
| 12358 | shlibpath_var=LIBPATH |
| 12359 | ;; |
| 12360 | |
| 12361 | osf3* | osf4* | osf5*) |
| 12362 | version_type=osf |
| 12363 | need_lib_prefix=no |
| 12364 | need_version=no |
| 12365 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12366 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12367 | shlibpath_var=LD_LIBRARY_PATH |
| 12368 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 12369 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 12370 | ;; |
| 12371 | |
| 12372 | sco3.2v5*) |
| 12373 | version_type=osf |
| 12374 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12375 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12376 | shlibpath_var=LD_LIBRARY_PATH |
| 12377 | ;; |
| 12378 | |
| 12379 | solaris*) |
| 12380 | version_type=linux |
| 12381 | need_lib_prefix=no |
| 12382 | need_version=no |
| 12383 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12384 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12385 | shlibpath_var=LD_LIBRARY_PATH |
| 12386 | shlibpath_overrides_runpath=yes |
| 12387 | hardcode_into_libs=yes |
| 12388 | # ldd complains unless libraries are executable |
| 12389 | postinstall_cmds='chmod +x $lib' |
| 12390 | ;; |
| 12391 | |
| 12392 | sunos4*) |
| 12393 | version_type=sunos |
| 12394 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 12395 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 12396 | shlibpath_var=LD_LIBRARY_PATH |
| 12397 | shlibpath_overrides_runpath=yes |
| 12398 | if test "$with_gnu_ld" = yes; then |
| 12399 | need_lib_prefix=no |
| 12400 | fi |
| 12401 | need_version=yes |
| 12402 | ;; |
| 12403 | |
| 12404 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 12405 | version_type=linux |
| 12406 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12407 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12408 | shlibpath_var=LD_LIBRARY_PATH |
| 12409 | case $host_vendor in |
| 12410 | sni) |
| 12411 | shlibpath_overrides_runpath=no |
| 12412 | need_lib_prefix=no |
| 12413 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 12414 | runpath_var=LD_RUN_PATH |
| 12415 | ;; |
| 12416 | siemens) |
| 12417 | need_lib_prefix=no |
| 12418 | ;; |
| 12419 | motorola) |
| 12420 | need_lib_prefix=no |
| 12421 | need_version=no |
| 12422 | shlibpath_overrides_runpath=no |
| 12423 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 12424 | ;; |
| 12425 | esac |
| 12426 | ;; |
| 12427 | |
| 12428 | sysv4*MP*) |
| 12429 | if test -d /usr/nec ;then |
| 12430 | version_type=linux |
| 12431 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 12432 | soname_spec='$libname${shared_ext}.$major' |
| 12433 | shlibpath_var=LD_LIBRARY_PATH |
| 12434 | fi |
| 12435 | ;; |
| 12436 | |
| 12437 | uts4*) |
| 12438 | version_type=linux |
| 12439 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12440 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12441 | shlibpath_var=LD_LIBRARY_PATH |
| 12442 | ;; |
| 12443 | |
| 12444 | *) |
| 12445 | dynamic_linker=no |
| 12446 | ;; |
| 12447 | esac |
| 12448 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 12449 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 12450 | test "$dynamic_linker" = no && can_build_shared=no |
| 12451 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12452 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 12453 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 12454 | hardcode_action_CXX= |
| 12455 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 12456 | test -n "$runpath_var_CXX" || \ |
| 12457 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 12458 | |
| 12459 | # We can hardcode non-existant directories. |
| 12460 | if test "$hardcode_direct_CXX" != no && |
| 12461 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 12462 | # have to relink, otherwise we might link with an installed library |
| 12463 | # when we should be linking with a yet-to-be-installed one |
| 12464 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 12465 | test "$hardcode_minus_L_CXX" != no; then |
| 12466 | # Linking always hardcodes the temporary library directory. |
| 12467 | hardcode_action_CXX=relink |
| 12468 | else |
| 12469 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 12470 | hardcode_action_CXX=immediate |
| 12471 | fi |
| 12472 | else |
| 12473 | # We cannot hardcode anything, or else we can only hardcode existing |
| 12474 | # directories. |
| 12475 | hardcode_action_CXX=unsupported |
| 12476 | fi |
| 12477 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 12478 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
| 12479 | |
| 12480 | if test "$hardcode_action_CXX" = relink; then |
| 12481 | # Fast installation is not supported |
| 12482 | enable_fast_install=no |
| 12483 | elif test "$shlibpath_overrides_runpath" = yes || |
| 12484 | test "$enable_shared" = no; then |
| 12485 | # Fast installation is not necessary |
| 12486 | enable_fast_install=needless |
| 12487 | fi |
| 12488 | |
| 12489 | striplib= |
| 12490 | old_striplib= |
| 12491 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 12492 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 12493 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 12494 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 12495 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 12496 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12497 | echo "${ECHO_T}yes" >&6 |
| 12498 | else |
| 12499 | # FIXME - insert some real tests, host_os isn't really good enough |
| 12500 | case $host_os in |
| 12501 | darwin*) |
| 12502 | if test -n "$STRIP" ; then |
| 12503 | striplib="$STRIP -x" |
| 12504 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12505 | echo "${ECHO_T}yes" >&6 |
| 12506 | else |
| 12507 | echo "$as_me:$LINENO: result: no" >&5 |
| 12508 | echo "${ECHO_T}no" >&6 |
| 12509 | fi |
| 12510 | ;; |
| 12511 | *) |
| 12512 | echo "$as_me:$LINENO: result: no" >&5 |
| 12513 | echo "${ECHO_T}no" >&6 |
| 12514 | ;; |
| 12515 | esac |
| 12516 | fi |
| 12517 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12518 | if test "x$enable_dlopen" != xyes; then |
| 12519 | enable_dlopen=unknown |
| 12520 | enable_dlopen_self=unknown |
| 12521 | enable_dlopen_self_static=unknown |
| 12522 | else |
| 12523 | lt_cv_dlopen=no |
| 12524 | lt_cv_dlopen_libs= |
| 12525 | |
| 12526 | case $host_os in |
| 12527 | beos*) |
| 12528 | lt_cv_dlopen="load_add_on" |
| 12529 | lt_cv_dlopen_libs= |
| 12530 | lt_cv_dlopen_self=yes |
| 12531 | ;; |
| 12532 | |
| 12533 | mingw* | pw32*) |
| 12534 | lt_cv_dlopen="LoadLibrary" |
| 12535 | lt_cv_dlopen_libs= |
| 12536 | ;; |
| 12537 | |
| 12538 | cygwin*) |
| 12539 | lt_cv_dlopen="dlopen" |
| 12540 | lt_cv_dlopen_libs= |
| 12541 | ;; |
| 12542 | |
| 12543 | darwin*) |
| 12544 | # if libdl is installed we need to link against it |
| 12545 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 12546 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 12547 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 12548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12549 | else |
| 12550 | ac_check_lib_save_LIBS=$LIBS |
| 12551 | LIBS="-ldl $LIBS" |
| 12552 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12553 | /* confdefs.h. */ |
| 12554 | _ACEOF |
| 12555 | cat confdefs.h >>conftest.$ac_ext |
| 12556 | cat >>conftest.$ac_ext <<_ACEOF |
| 12557 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12558 | |
| 12559 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12560 | #ifdef __cplusplus |
| 12561 | extern "C" |
| 12562 | #endif |
| 12563 | /* We use char because int might match the return type of a gcc2 |
| 12564 | builtin and then its argument prototype would still apply. */ |
| 12565 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12566 | int |
| 12567 | main () |
| 12568 | { |
| 12569 | dlopen (); |
| 12570 | ; |
| 12571 | return 0; |
| 12572 | } |
| 12573 | _ACEOF |
| 12574 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12576 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12577 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12579 | rm -f conftest.er1 |
| 12580 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12582 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12583 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 12584 | || test ! -s conftest.err' |
| 12585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12586 | (eval $ac_try) 2>&5 |
| 12587 | ac_status=$? |
| 12588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12589 | (exit $ac_status); }; } && |
| 12590 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12592 | (eval $ac_try) 2>&5 |
| 12593 | ac_status=$? |
| 12594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12595 | (exit $ac_status); }; }; then |
| 12596 | ac_cv_lib_dl_dlopen=yes |
| 12597 | else |
| 12598 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12600 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12601 | ac_cv_lib_dl_dlopen=no |
| 12602 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12603 | rm -f conftest.err conftest.$ac_objext \ |
| 12604 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12605 | LIBS=$ac_check_lib_save_LIBS |
| 12606 | fi |
| 12607 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 12608 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 12609 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 12610 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 12611 | else |
| 12612 | |
| 12613 | lt_cv_dlopen="dyld" |
| 12614 | lt_cv_dlopen_libs= |
| 12615 | lt_cv_dlopen_self=yes |
| 12616 | |
| 12617 | fi |
| 12618 | |
| 12619 | ;; |
| 12620 | |
| 12621 | *) |
| 12622 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 12623 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 12624 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 12625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12626 | else |
| 12627 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12628 | /* confdefs.h. */ |
| 12629 | _ACEOF |
| 12630 | cat confdefs.h >>conftest.$ac_ext |
| 12631 | cat >>conftest.$ac_ext <<_ACEOF |
| 12632 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12633 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 12634 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12635 | #define shl_load innocuous_shl_load |
| 12636 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12637 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12638 | which can conflict with char shl_load (); below. |
| 12639 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12640 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12641 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12642 | #ifdef __STDC__ |
| 12643 | # include <limits.h> |
| 12644 | #else |
| 12645 | # include <assert.h> |
| 12646 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12647 | |
| 12648 | #undef shl_load |
| 12649 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12650 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12651 | #ifdef __cplusplus |
| 12652 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12653 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12654 | #endif |
| 12655 | /* We use char because int might match the return type of a gcc2 |
| 12656 | builtin and then its argument prototype would still apply. */ |
| 12657 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12658 | /* The GNU C library defines this for functions which it implements |
| 12659 | to always fail with ENOSYS. Some functions are actually named |
| 12660 | something starting with __ and the normal name is an alias. */ |
| 12661 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 12662 | choke me |
| 12663 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12664 | char (*f) () = shl_load; |
| 12665 | #endif |
| 12666 | #ifdef __cplusplus |
| 12667 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12668 | #endif |
| 12669 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12670 | int |
| 12671 | main () |
| 12672 | { |
| 12673 | return f != shl_load; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12674 | ; |
| 12675 | return 0; |
| 12676 | } |
| 12677 | _ACEOF |
| 12678 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12680 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12681 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12683 | rm -f conftest.er1 |
| 12684 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12686 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12687 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 12688 | || test ! -s conftest.err' |
| 12689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12690 | (eval $ac_try) 2>&5 |
| 12691 | ac_status=$? |
| 12692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12693 | (exit $ac_status); }; } && |
| 12694 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12696 | (eval $ac_try) 2>&5 |
| 12697 | ac_status=$? |
| 12698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12699 | (exit $ac_status); }; }; then |
| 12700 | ac_cv_func_shl_load=yes |
| 12701 | else |
| 12702 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12704 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12705 | ac_cv_func_shl_load=no |
| 12706 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12707 | rm -f conftest.err conftest.$ac_objext \ |
| 12708 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12709 | fi |
| 12710 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 12711 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 12712 | if test $ac_cv_func_shl_load = yes; then |
| 12713 | lt_cv_dlopen="shl_load" |
| 12714 | else |
| 12715 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 12716 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 12717 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 12718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12719 | else |
| 12720 | ac_check_lib_save_LIBS=$LIBS |
| 12721 | LIBS="-ldld $LIBS" |
| 12722 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12723 | /* confdefs.h. */ |
| 12724 | _ACEOF |
| 12725 | cat confdefs.h >>conftest.$ac_ext |
| 12726 | cat >>conftest.$ac_ext <<_ACEOF |
| 12727 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12728 | |
| 12729 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12730 | #ifdef __cplusplus |
| 12731 | extern "C" |
| 12732 | #endif |
| 12733 | /* We use char because int might match the return type of a gcc2 |
| 12734 | builtin and then its argument prototype would still apply. */ |
| 12735 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12736 | int |
| 12737 | main () |
| 12738 | { |
| 12739 | shl_load (); |
| 12740 | ; |
| 12741 | return 0; |
| 12742 | } |
| 12743 | _ACEOF |
| 12744 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12745 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12746 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12747 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12749 | rm -f conftest.er1 |
| 12750 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12752 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12753 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 12754 | || test ! -s conftest.err' |
| 12755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12756 | (eval $ac_try) 2>&5 |
| 12757 | ac_status=$? |
| 12758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12759 | (exit $ac_status); }; } && |
| 12760 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12762 | (eval $ac_try) 2>&5 |
| 12763 | ac_status=$? |
| 12764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12765 | (exit $ac_status); }; }; then |
| 12766 | ac_cv_lib_dld_shl_load=yes |
| 12767 | else |
| 12768 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12770 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12771 | ac_cv_lib_dld_shl_load=no |
| 12772 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12773 | rm -f conftest.err conftest.$ac_objext \ |
| 12774 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12775 | LIBS=$ac_check_lib_save_LIBS |
| 12776 | fi |
| 12777 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 12778 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 12779 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 12780 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 12781 | else |
| 12782 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 12783 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 12784 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 12785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12786 | else |
| 12787 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12788 | /* confdefs.h. */ |
| 12789 | _ACEOF |
| 12790 | cat confdefs.h >>conftest.$ac_ext |
| 12791 | cat >>conftest.$ac_ext <<_ACEOF |
| 12792 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12793 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 12794 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12795 | #define dlopen innocuous_dlopen |
| 12796 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12797 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12798 | which can conflict with char dlopen (); below. |
| 12799 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12800 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12801 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12802 | #ifdef __STDC__ |
| 12803 | # include <limits.h> |
| 12804 | #else |
| 12805 | # include <assert.h> |
| 12806 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12807 | |
| 12808 | #undef dlopen |
| 12809 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12810 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12811 | #ifdef __cplusplus |
| 12812 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12813 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12814 | #endif |
| 12815 | /* We use char because int might match the return type of a gcc2 |
| 12816 | builtin and then its argument prototype would still apply. */ |
| 12817 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12818 | /* The GNU C library defines this for functions which it implements |
| 12819 | to always fail with ENOSYS. Some functions are actually named |
| 12820 | something starting with __ and the normal name is an alias. */ |
| 12821 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 12822 | choke me |
| 12823 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12824 | char (*f) () = dlopen; |
| 12825 | #endif |
| 12826 | #ifdef __cplusplus |
| 12827 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12828 | #endif |
| 12829 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12830 | int |
| 12831 | main () |
| 12832 | { |
| 12833 | return f != dlopen; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12834 | ; |
| 12835 | return 0; |
| 12836 | } |
| 12837 | _ACEOF |
| 12838 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12840 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12841 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12842 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12843 | rm -f conftest.er1 |
| 12844 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12846 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12847 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 12848 | || test ! -s conftest.err' |
| 12849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12850 | (eval $ac_try) 2>&5 |
| 12851 | ac_status=$? |
| 12852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12853 | (exit $ac_status); }; } && |
| 12854 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12856 | (eval $ac_try) 2>&5 |
| 12857 | ac_status=$? |
| 12858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12859 | (exit $ac_status); }; }; then |
| 12860 | ac_cv_func_dlopen=yes |
| 12861 | else |
| 12862 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12864 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12865 | ac_cv_func_dlopen=no |
| 12866 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12867 | rm -f conftest.err conftest.$ac_objext \ |
| 12868 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12869 | fi |
| 12870 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 12871 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 12872 | if test $ac_cv_func_dlopen = yes; then |
| 12873 | lt_cv_dlopen="dlopen" |
| 12874 | else |
| 12875 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 12876 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 12877 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 12878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12879 | else |
| 12880 | ac_check_lib_save_LIBS=$LIBS |
| 12881 | LIBS="-ldl $LIBS" |
| 12882 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12883 | /* confdefs.h. */ |
| 12884 | _ACEOF |
| 12885 | cat confdefs.h >>conftest.$ac_ext |
| 12886 | cat >>conftest.$ac_ext <<_ACEOF |
| 12887 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12888 | |
| 12889 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12890 | #ifdef __cplusplus |
| 12891 | extern "C" |
| 12892 | #endif |
| 12893 | /* We use char because int might match the return type of a gcc2 |
| 12894 | builtin and then its argument prototype would still apply. */ |
| 12895 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12896 | int |
| 12897 | main () |
| 12898 | { |
| 12899 | dlopen (); |
| 12900 | ; |
| 12901 | return 0; |
| 12902 | } |
| 12903 | _ACEOF |
| 12904 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12905 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12906 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12907 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12909 | rm -f conftest.er1 |
| 12910 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12912 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12913 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 12914 | || test ! -s conftest.err' |
| 12915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12916 | (eval $ac_try) 2>&5 |
| 12917 | ac_status=$? |
| 12918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12919 | (exit $ac_status); }; } && |
| 12920 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12922 | (eval $ac_try) 2>&5 |
| 12923 | ac_status=$? |
| 12924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12925 | (exit $ac_status); }; }; then |
| 12926 | ac_cv_lib_dl_dlopen=yes |
| 12927 | else |
| 12928 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12930 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12931 | ac_cv_lib_dl_dlopen=no |
| 12932 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12933 | rm -f conftest.err conftest.$ac_objext \ |
| 12934 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12935 | LIBS=$ac_check_lib_save_LIBS |
| 12936 | fi |
| 12937 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 12938 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 12939 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 12940 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 12941 | else |
| 12942 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 12943 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 12944 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 12945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12946 | else |
| 12947 | ac_check_lib_save_LIBS=$LIBS |
| 12948 | LIBS="-lsvld $LIBS" |
| 12949 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12950 | /* confdefs.h. */ |
| 12951 | _ACEOF |
| 12952 | cat confdefs.h >>conftest.$ac_ext |
| 12953 | cat >>conftest.$ac_ext <<_ACEOF |
| 12954 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12955 | |
| 12956 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12957 | #ifdef __cplusplus |
| 12958 | extern "C" |
| 12959 | #endif |
| 12960 | /* We use char because int might match the return type of a gcc2 |
| 12961 | builtin and then its argument prototype would still apply. */ |
| 12962 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12963 | int |
| 12964 | main () |
| 12965 | { |
| 12966 | dlopen (); |
| 12967 | ; |
| 12968 | return 0; |
| 12969 | } |
| 12970 | _ACEOF |
| 12971 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12972 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12973 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12974 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12975 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12976 | rm -f conftest.er1 |
| 12977 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12979 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12980 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 12981 | || test ! -s conftest.err' |
| 12982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12983 | (eval $ac_try) 2>&5 |
| 12984 | ac_status=$? |
| 12985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12986 | (exit $ac_status); }; } && |
| 12987 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12989 | (eval $ac_try) 2>&5 |
| 12990 | ac_status=$? |
| 12991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12992 | (exit $ac_status); }; }; then |
| 12993 | ac_cv_lib_svld_dlopen=yes |
| 12994 | else |
| 12995 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12997 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12998 | ac_cv_lib_svld_dlopen=no |
| 12999 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13000 | rm -f conftest.err conftest.$ac_objext \ |
| 13001 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13002 | LIBS=$ac_check_lib_save_LIBS |
| 13003 | fi |
| 13004 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 13005 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 13006 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 13007 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 13008 | else |
| 13009 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 13010 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 13011 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 13012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13013 | else |
| 13014 | ac_check_lib_save_LIBS=$LIBS |
| 13015 | LIBS="-ldld $LIBS" |
| 13016 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13017 | /* confdefs.h. */ |
| 13018 | _ACEOF |
| 13019 | cat confdefs.h >>conftest.$ac_ext |
| 13020 | cat >>conftest.$ac_ext <<_ACEOF |
| 13021 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13022 | |
| 13023 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13024 | #ifdef __cplusplus |
| 13025 | extern "C" |
| 13026 | #endif |
| 13027 | /* We use char because int might match the return type of a gcc2 |
| 13028 | builtin and then its argument prototype would still apply. */ |
| 13029 | char dld_link (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13030 | int |
| 13031 | main () |
| 13032 | { |
| 13033 | dld_link (); |
| 13034 | ; |
| 13035 | return 0; |
| 13036 | } |
| 13037 | _ACEOF |
| 13038 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13039 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13040 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13041 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13043 | rm -f conftest.er1 |
| 13044 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13046 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13047 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 13048 | || test ! -s conftest.err' |
| 13049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13050 | (eval $ac_try) 2>&5 |
| 13051 | ac_status=$? |
| 13052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13053 | (exit $ac_status); }; } && |
| 13054 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13056 | (eval $ac_try) 2>&5 |
| 13057 | ac_status=$? |
| 13058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13059 | (exit $ac_status); }; }; then |
| 13060 | ac_cv_lib_dld_dld_link=yes |
| 13061 | else |
| 13062 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13064 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13065 | ac_cv_lib_dld_dld_link=no |
| 13066 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13067 | rm -f conftest.err conftest.$ac_objext \ |
| 13068 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13069 | LIBS=$ac_check_lib_save_LIBS |
| 13070 | fi |
| 13071 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 13072 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 13073 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 13074 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 13075 | fi |
| 13076 | |
| 13077 | |
| 13078 | fi |
| 13079 | |
| 13080 | |
| 13081 | fi |
| 13082 | |
| 13083 | |
| 13084 | fi |
| 13085 | |
| 13086 | |
| 13087 | fi |
| 13088 | |
| 13089 | |
| 13090 | fi |
| 13091 | |
| 13092 | ;; |
| 13093 | esac |
| 13094 | |
| 13095 | if test "x$lt_cv_dlopen" != xno; then |
| 13096 | enable_dlopen=yes |
| 13097 | else |
| 13098 | enable_dlopen=no |
| 13099 | fi |
| 13100 | |
| 13101 | case $lt_cv_dlopen in |
| 13102 | dlopen) |
| 13103 | save_CPPFLAGS="$CPPFLAGS" |
| 13104 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 13105 | |
| 13106 | save_LDFLAGS="$LDFLAGS" |
| 13107 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 13108 | |
| 13109 | save_LIBS="$LIBS" |
| 13110 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 13111 | |
| 13112 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 13113 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 13114 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 13115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13116 | else |
| 13117 | if test "$cross_compiling" = yes; then : |
| 13118 | lt_cv_dlopen_self=cross |
| 13119 | else |
| 13120 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 13121 | lt_status=$lt_dlunknown |
| 13122 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13123 | #line 13123 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13124 | #include "confdefs.h" |
| 13125 | |
| 13126 | #if HAVE_DLFCN_H |
| 13127 | #include <dlfcn.h> |
| 13128 | #endif |
| 13129 | |
| 13130 | #include <stdio.h> |
| 13131 | |
| 13132 | #ifdef RTLD_GLOBAL |
| 13133 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 13134 | #else |
| 13135 | # ifdef DL_GLOBAL |
| 13136 | # define LT_DLGLOBAL DL_GLOBAL |
| 13137 | # else |
| 13138 | # define LT_DLGLOBAL 0 |
| 13139 | # endif |
| 13140 | #endif |
| 13141 | |
| 13142 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 13143 | find out it does not work in some platform. */ |
| 13144 | #ifndef LT_DLLAZY_OR_NOW |
| 13145 | # ifdef RTLD_LAZY |
| 13146 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 13147 | # else |
| 13148 | # ifdef DL_LAZY |
| 13149 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 13150 | # else |
| 13151 | # ifdef RTLD_NOW |
| 13152 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 13153 | # else |
| 13154 | # ifdef DL_NOW |
| 13155 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 13156 | # else |
| 13157 | # define LT_DLLAZY_OR_NOW 0 |
| 13158 | # endif |
| 13159 | # endif |
| 13160 | # endif |
| 13161 | # endif |
| 13162 | #endif |
| 13163 | |
| 13164 | #ifdef __cplusplus |
| 13165 | extern "C" void exit (int); |
| 13166 | #endif |
| 13167 | |
| 13168 | void fnord() { int i=42;} |
| 13169 | int main () |
| 13170 | { |
| 13171 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 13172 | int status = $lt_dlunknown; |
| 13173 | |
| 13174 | if (self) |
| 13175 | { |
| 13176 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 13177 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 13178 | /* dlclose (self); */ |
| 13179 | } |
| 13180 | |
| 13181 | exit (status); |
| 13182 | } |
| 13183 | EOF |
| 13184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13185 | (eval $ac_link) 2>&5 |
| 13186 | ac_status=$? |
| 13187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13188 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 13189 | (./conftest; exit; ) 2>/dev/null |
| 13190 | lt_status=$? |
| 13191 | case x$lt_status in |
| 13192 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 13193 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 13194 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 13195 | esac |
| 13196 | else : |
| 13197 | # compilation failed |
| 13198 | lt_cv_dlopen_self=no |
| 13199 | fi |
| 13200 | fi |
| 13201 | rm -fr conftest* |
| 13202 | |
| 13203 | |
| 13204 | fi |
| 13205 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 13206 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 13207 | |
| 13208 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 13209 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 13210 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 13211 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 13212 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 13213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13214 | else |
| 13215 | if test "$cross_compiling" = yes; then : |
| 13216 | lt_cv_dlopen_self_static=cross |
| 13217 | else |
| 13218 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 13219 | lt_status=$lt_dlunknown |
| 13220 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13221 | #line 13221 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13222 | #include "confdefs.h" |
| 13223 | |
| 13224 | #if HAVE_DLFCN_H |
| 13225 | #include <dlfcn.h> |
| 13226 | #endif |
| 13227 | |
| 13228 | #include <stdio.h> |
| 13229 | |
| 13230 | #ifdef RTLD_GLOBAL |
| 13231 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 13232 | #else |
| 13233 | # ifdef DL_GLOBAL |
| 13234 | # define LT_DLGLOBAL DL_GLOBAL |
| 13235 | # else |
| 13236 | # define LT_DLGLOBAL 0 |
| 13237 | # endif |
| 13238 | #endif |
| 13239 | |
| 13240 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 13241 | find out it does not work in some platform. */ |
| 13242 | #ifndef LT_DLLAZY_OR_NOW |
| 13243 | # ifdef RTLD_LAZY |
| 13244 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 13245 | # else |
| 13246 | # ifdef DL_LAZY |
| 13247 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 13248 | # else |
| 13249 | # ifdef RTLD_NOW |
| 13250 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 13251 | # else |
| 13252 | # ifdef DL_NOW |
| 13253 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 13254 | # else |
| 13255 | # define LT_DLLAZY_OR_NOW 0 |
| 13256 | # endif |
| 13257 | # endif |
| 13258 | # endif |
| 13259 | # endif |
| 13260 | #endif |
| 13261 | |
| 13262 | #ifdef __cplusplus |
| 13263 | extern "C" void exit (int); |
| 13264 | #endif |
| 13265 | |
| 13266 | void fnord() { int i=42;} |
| 13267 | int main () |
| 13268 | { |
| 13269 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 13270 | int status = $lt_dlunknown; |
| 13271 | |
| 13272 | if (self) |
| 13273 | { |
| 13274 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 13275 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 13276 | /* dlclose (self); */ |
| 13277 | } |
| 13278 | |
| 13279 | exit (status); |
| 13280 | } |
| 13281 | EOF |
| 13282 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13283 | (eval $ac_link) 2>&5 |
| 13284 | ac_status=$? |
| 13285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13286 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 13287 | (./conftest; exit; ) 2>/dev/null |
| 13288 | lt_status=$? |
| 13289 | case x$lt_status in |
| 13290 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 13291 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 13292 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 13293 | esac |
| 13294 | else : |
| 13295 | # compilation failed |
| 13296 | lt_cv_dlopen_self_static=no |
| 13297 | fi |
| 13298 | fi |
| 13299 | rm -fr conftest* |
| 13300 | |
| 13301 | |
| 13302 | fi |
| 13303 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 13304 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 13305 | fi |
| 13306 | |
| 13307 | CPPFLAGS="$save_CPPFLAGS" |
| 13308 | LDFLAGS="$save_LDFLAGS" |
| 13309 | LIBS="$save_LIBS" |
| 13310 | ;; |
| 13311 | esac |
| 13312 | |
| 13313 | case $lt_cv_dlopen_self in |
| 13314 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 13315 | *) enable_dlopen_self=unknown ;; |
| 13316 | esac |
| 13317 | |
| 13318 | case $lt_cv_dlopen_self_static in |
| 13319 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 13320 | *) enable_dlopen_self_static=unknown ;; |
| 13321 | esac |
| 13322 | fi |
| 13323 | |
| 13324 | |
| 13325 | # The else clause should only fire when bootstrapping the |
| 13326 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 13327 | # with your package, and you will get complaints that there are |
| 13328 | # no rules to generate ltmain.sh. |
| 13329 | if test -f "$ltmain"; then |
| 13330 | # See if we are running on zsh, and set the options which allow our commands through |
| 13331 | # without removal of \ escapes. |
| 13332 | if test -n "${ZSH_VERSION+set}" ; then |
| 13333 | setopt NO_GLOB_SUBST |
| 13334 | fi |
| 13335 | # Now quote all the things that may contain metacharacters while being |
| 13336 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 13337 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13338 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 13339 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13340 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 13341 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 13342 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 13343 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 13344 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 13345 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 13346 | old_postinstall_cmds old_postuninstall_cmds \ |
| 13347 | compiler_CXX \ |
| 13348 | CC_CXX \ |
| 13349 | LD_CXX \ |
| 13350 | lt_prog_compiler_wl_CXX \ |
| 13351 | lt_prog_compiler_pic_CXX \ |
| 13352 | lt_prog_compiler_static_CXX \ |
| 13353 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 13354 | export_dynamic_flag_spec_CXX \ |
| 13355 | thread_safe_flag_spec_CXX \ |
| 13356 | whole_archive_flag_spec_CXX \ |
| 13357 | enable_shared_with_static_runtimes_CXX \ |
| 13358 | old_archive_cmds_CXX \ |
| 13359 | old_archive_from_new_cmds_CXX \ |
| 13360 | predep_objects_CXX \ |
| 13361 | postdep_objects_CXX \ |
| 13362 | predeps_CXX \ |
| 13363 | postdeps_CXX \ |
| 13364 | compiler_lib_search_path_CXX \ |
| 13365 | archive_cmds_CXX \ |
| 13366 | archive_expsym_cmds_CXX \ |
| 13367 | postinstall_cmds_CXX \ |
| 13368 | postuninstall_cmds_CXX \ |
| 13369 | old_archive_from_expsyms_cmds_CXX \ |
| 13370 | allow_undefined_flag_CXX \ |
| 13371 | no_undefined_flag_CXX \ |
| 13372 | export_symbols_cmds_CXX \ |
| 13373 | hardcode_libdir_flag_spec_CXX \ |
| 13374 | hardcode_libdir_flag_spec_ld_CXX \ |
| 13375 | hardcode_libdir_separator_CXX \ |
| 13376 | hardcode_automatic_CXX \ |
| 13377 | module_cmds_CXX \ |
| 13378 | module_expsym_cmds_CXX \ |
| 13379 | lt_cv_prog_compiler_c_o_CXX \ |
| 13380 | exclude_expsyms_CXX \ |
| 13381 | include_expsyms_CXX; do |
| 13382 | |
| 13383 | case $var in |
| 13384 | old_archive_cmds_CXX | \ |
| 13385 | old_archive_from_new_cmds_CXX | \ |
| 13386 | archive_cmds_CXX | \ |
| 13387 | archive_expsym_cmds_CXX | \ |
| 13388 | module_cmds_CXX | \ |
| 13389 | module_expsym_cmds_CXX | \ |
| 13390 | old_archive_from_expsyms_cmds_CXX | \ |
| 13391 | export_symbols_cmds_CXX | \ |
| 13392 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 13393 | postinstall_cmds | postuninstall_cmds | \ |
| 13394 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 13395 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 13396 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13397 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13398 | ;; |
| 13399 | *) |
| 13400 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 13401 | ;; |
| 13402 | esac |
| 13403 | done |
| 13404 | |
| 13405 | case $lt_echo in |
| 13406 | *'\$0 --fallback-echo"') |
| 13407 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 13408 | ;; |
| 13409 | esac |
| 13410 | |
| 13411 | cfgfile="$ofile" |
| 13412 | |
| 13413 | cat <<__EOF__ >> "$cfgfile" |
| 13414 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 13415 | |
| 13416 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 13417 | |
| 13418 | # Shell to use when invoking shell scripts. |
| 13419 | SHELL=$lt_SHELL |
| 13420 | |
| 13421 | # Whether or not to build shared libraries. |
| 13422 | build_libtool_libs=$enable_shared |
| 13423 | |
| 13424 | # Whether or not to build static libraries. |
| 13425 | build_old_libs=$enable_static |
| 13426 | |
| 13427 | # Whether or not to add -lc for building shared libraries. |
| 13428 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 13429 | |
| 13430 | # Whether or not to disallow shared libs when runtime libs are static |
| 13431 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 13432 | |
| 13433 | # Whether or not to optimize for fast installation. |
| 13434 | fast_install=$enable_fast_install |
| 13435 | |
| 13436 | # The host system. |
| 13437 | host_alias=$host_alias |
| 13438 | host=$host |
| 13439 | |
| 13440 | # An echo program that does not interpret backslashes. |
| 13441 | echo=$lt_echo |
| 13442 | |
| 13443 | # The archiver. |
| 13444 | AR=$lt_AR |
| 13445 | AR_FLAGS=$lt_AR_FLAGS |
| 13446 | |
| 13447 | # A C compiler. |
| 13448 | LTCC=$lt_LTCC |
| 13449 | |
| 13450 | # A language-specific compiler. |
| 13451 | CC=$lt_compiler_CXX |
| 13452 | |
| 13453 | # Is the compiler the GNU C compiler? |
| 13454 | with_gcc=$GCC_CXX |
| 13455 | |
| 13456 | # An ERE matcher. |
| 13457 | EGREP=$lt_EGREP |
| 13458 | |
| 13459 | # The linker used to build libraries. |
| 13460 | LD=$lt_LD_CXX |
| 13461 | |
| 13462 | # Whether we need hard or soft links. |
| 13463 | LN_S=$lt_LN_S |
| 13464 | |
| 13465 | # A BSD-compatible nm program. |
| 13466 | NM=$lt_NM |
| 13467 | |
| 13468 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13469 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13470 | |
| 13471 | # Used to examine libraries when file_magic_cmd begins "file" |
| 13472 | MAGIC_CMD=$MAGIC_CMD |
| 13473 | |
| 13474 | # Used on cygwin: DLL creation program. |
| 13475 | DLLTOOL="$DLLTOOL" |
| 13476 | |
| 13477 | # Used on cygwin: object dumper. |
| 13478 | OBJDUMP="$OBJDUMP" |
| 13479 | |
| 13480 | # Used on cygwin: assembler. |
| 13481 | AS="$AS" |
| 13482 | |
| 13483 | # The name of the directory that contains temporary libtool files. |
| 13484 | objdir=$objdir |
| 13485 | |
| 13486 | # How to create reloadable object files. |
| 13487 | reload_flag=$lt_reload_flag |
| 13488 | reload_cmds=$lt_reload_cmds |
| 13489 | |
| 13490 | # How to pass a linker flag through the compiler. |
| 13491 | wl=$lt_lt_prog_compiler_wl_CXX |
| 13492 | |
| 13493 | # Object file suffix (normally "o"). |
| 13494 | objext="$ac_objext" |
| 13495 | |
| 13496 | # Old archive suffix (normally "a"). |
| 13497 | libext="$libext" |
| 13498 | |
| 13499 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13500 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13501 | |
| 13502 | # Executable file suffix (normally ""). |
| 13503 | exeext="$exeext" |
| 13504 | |
| 13505 | # Additional compiler flags for building library objects. |
| 13506 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 13507 | pic_mode=$pic_mode |
| 13508 | |
| 13509 | # What is the maximum length of a command? |
| 13510 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 13511 | |
| 13512 | # Does compiler simultaneously support -c and -o options? |
| 13513 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 13514 | |
| 13515 | # Must we lock files when doing compilation ? |
| 13516 | need_locks=$lt_need_locks |
| 13517 | |
| 13518 | # Do we need the lib prefix for modules? |
| 13519 | need_lib_prefix=$need_lib_prefix |
| 13520 | |
| 13521 | # Do we need a version for libraries? |
| 13522 | need_version=$need_version |
| 13523 | |
| 13524 | # Whether dlopen is supported. |
| 13525 | dlopen_support=$enable_dlopen |
| 13526 | |
| 13527 | # Whether dlopen of programs is supported. |
| 13528 | dlopen_self=$enable_dlopen_self |
| 13529 | |
| 13530 | # Whether dlopen of statically linked programs is supported. |
| 13531 | dlopen_self_static=$enable_dlopen_self_static |
| 13532 | |
| 13533 | # Compiler flag to prevent dynamic linking. |
| 13534 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 13535 | |
| 13536 | # Compiler flag to turn off builtin functions. |
| 13537 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 13538 | |
| 13539 | # Compiler flag to allow reflexive dlopens. |
| 13540 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 13541 | |
| 13542 | # Compiler flag to generate shared objects directly from archives. |
| 13543 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 13544 | |
| 13545 | # Compiler flag to generate thread-safe objects. |
| 13546 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 13547 | |
| 13548 | # Library versioning type. |
| 13549 | version_type=$version_type |
| 13550 | |
| 13551 | # Format of library name prefix. |
| 13552 | libname_spec=$lt_libname_spec |
| 13553 | |
| 13554 | # List of archive names. First name is the real one, the rest are links. |
| 13555 | # The last name is the one that the linker finds with -lNAME. |
| 13556 | library_names_spec=$lt_library_names_spec |
| 13557 | |
| 13558 | # The coded name of the library, if different from the real name. |
| 13559 | soname_spec=$lt_soname_spec |
| 13560 | |
| 13561 | # Commands used to build and install an old-style archive. |
| 13562 | RANLIB=$lt_RANLIB |
| 13563 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 13564 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 13565 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 13566 | |
| 13567 | # Create an old-style archive from a shared archive. |
| 13568 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 13569 | |
| 13570 | # Create a temporary old-style archive to link instead of a shared archive. |
| 13571 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 13572 | |
| 13573 | # Commands used to build and install a shared archive. |
| 13574 | archive_cmds=$lt_archive_cmds_CXX |
| 13575 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 13576 | postinstall_cmds=$lt_postinstall_cmds |
| 13577 | postuninstall_cmds=$lt_postuninstall_cmds |
| 13578 | |
| 13579 | # Commands used to build a loadable module (assumed same as above if empty) |
| 13580 | module_cmds=$lt_module_cmds_CXX |
| 13581 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 13582 | |
| 13583 | # Commands to strip libraries. |
| 13584 | old_striplib=$lt_old_striplib |
| 13585 | striplib=$lt_striplib |
| 13586 | |
| 13587 | # Dependencies to place before the objects being linked to create a |
| 13588 | # shared library. |
| 13589 | predep_objects=$lt_predep_objects_CXX |
| 13590 | |
| 13591 | # Dependencies to place after the objects being linked to create a |
| 13592 | # shared library. |
| 13593 | postdep_objects=$lt_postdep_objects_CXX |
| 13594 | |
| 13595 | # Dependencies to place before the objects being linked to create a |
| 13596 | # shared library. |
| 13597 | predeps=$lt_predeps_CXX |
| 13598 | |
| 13599 | # Dependencies to place after the objects being linked to create a |
| 13600 | # shared library. |
| 13601 | postdeps=$lt_postdeps_CXX |
| 13602 | |
| 13603 | # The library search path used internally by the compiler when linking |
| 13604 | # a shared library. |
| 13605 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 13606 | |
| 13607 | # Method to check whether dependent libraries are shared objects. |
| 13608 | deplibs_check_method=$lt_deplibs_check_method |
| 13609 | |
| 13610 | # Command to use when deplibs_check_method == file_magic. |
| 13611 | file_magic_cmd=$lt_file_magic_cmd |
| 13612 | |
| 13613 | # Flag that allows shared libraries with undefined symbols to be built. |
| 13614 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 13615 | |
| 13616 | # Flag that forces no undefined symbols. |
| 13617 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 13618 | |
| 13619 | # Commands used to finish a libtool library installation in a directory. |
| 13620 | finish_cmds=$lt_finish_cmds |
| 13621 | |
| 13622 | # Same as above, but a single script fragment to be evaled but not shown. |
| 13623 | finish_eval=$lt_finish_eval |
| 13624 | |
| 13625 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 13626 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 13627 | |
| 13628 | # Transform the output of nm in a proper C declaration |
| 13629 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 13630 | |
| 13631 | # Transform the output of nm in a C name address pair |
| 13632 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 13633 | |
| 13634 | # This is the shared library runtime path variable. |
| 13635 | runpath_var=$runpath_var |
| 13636 | |
| 13637 | # This is the shared library path variable. |
| 13638 | shlibpath_var=$shlibpath_var |
| 13639 | |
| 13640 | # Is shlibpath searched before the hard-coded library search path? |
| 13641 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 13642 | |
| 13643 | # How to hardcode a shared library path into an executable. |
| 13644 | hardcode_action=$hardcode_action_CXX |
| 13645 | |
| 13646 | # Whether we should hardcode library paths into libraries. |
| 13647 | hardcode_into_libs=$hardcode_into_libs |
| 13648 | |
| 13649 | # Flag to hardcode \$libdir into a binary during linking. |
| 13650 | # This must work even if \$libdir does not exist. |
| 13651 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 13652 | |
| 13653 | # If ld is used when linking, flag to hardcode \$libdir into |
| 13654 | # a binary during linking. This must work even if \$libdir does |
| 13655 | # not exist. |
| 13656 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 13657 | |
| 13658 | # Whether we need a single -rpath flag with a separated argument. |
| 13659 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 13660 | |
| 13661 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 13662 | # resulting binary. |
| 13663 | hardcode_direct=$hardcode_direct_CXX |
| 13664 | |
| 13665 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 13666 | # resulting binary. |
| 13667 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 13668 | |
| 13669 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 13670 | # the resulting binary. |
| 13671 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 13672 | |
| 13673 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 13674 | # and all subsequent libraries and executables linked against it. |
| 13675 | hardcode_automatic=$hardcode_automatic_CXX |
| 13676 | |
| 13677 | # Variables whose values should be saved in libtool wrapper scripts and |
| 13678 | # restored at relink time. |
| 13679 | variables_saved_for_relink="$variables_saved_for_relink" |
| 13680 | |
| 13681 | # Whether libtool must link a program against all its dependency libraries. |
| 13682 | link_all_deplibs=$link_all_deplibs_CXX |
| 13683 | |
| 13684 | # Compile-time system search path for libraries |
| 13685 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 13686 | |
| 13687 | # Run-time system search path for libraries |
| 13688 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 13689 | |
| 13690 | # Fix the shell variable \$srcfile for the compiler. |
| 13691 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 13692 | |
| 13693 | # Set to yes if exported symbols are required. |
| 13694 | always_export_symbols=$always_export_symbols_CXX |
| 13695 | |
| 13696 | # The commands to list exported symbols. |
| 13697 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 13698 | |
| 13699 | # The commands to extract the exported symbol list from a shared archive. |
| 13700 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 13701 | |
| 13702 | # Symbols that should not be listed in the preloaded symbols. |
| 13703 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 13704 | |
| 13705 | # Symbols that must always be exported. |
| 13706 | include_expsyms=$lt_include_expsyms_CXX |
| 13707 | |
| 13708 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 13709 | |
| 13710 | __EOF__ |
| 13711 | |
| 13712 | |
| 13713 | else |
| 13714 | # If there is no Makefile yet, we rely on a make rule to execute |
| 13715 | # `config.status --recheck' to rerun these tests and create the |
| 13716 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13717 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 13718 | if test -f "$ltmain_in"; then |
| 13719 | test -f Makefile && make "$ltmain" |
| 13720 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13721 | fi |
| 13722 | |
| 13723 | |
| 13724 | ac_ext=c |
| 13725 | ac_cpp='$CPP $CPPFLAGS' |
| 13726 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13727 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13728 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13729 | |
| 13730 | CC=$lt_save_CC |
| 13731 | LDCXX=$LD |
| 13732 | LD=$lt_save_LD |
| 13733 | GCC=$lt_save_GCC |
| 13734 | with_gnu_ldcxx=$with_gnu_ld |
| 13735 | with_gnu_ld=$lt_save_with_gnu_ld |
| 13736 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 13737 | lt_cv_path_LD=$lt_save_path_LD |
| 13738 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 13739 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 13740 | |
| 13741 | else |
| 13742 | tagname="" |
| 13743 | fi |
| 13744 | ;; |
| 13745 | |
| 13746 | F77) |
| 13747 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 13748 | |
| 13749 | ac_ext=f |
| 13750 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 13751 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13752 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 13753 | |
| 13754 | |
| 13755 | archive_cmds_need_lc_F77=no |
| 13756 | allow_undefined_flag_F77= |
| 13757 | always_export_symbols_F77=no |
| 13758 | archive_expsym_cmds_F77= |
| 13759 | export_dynamic_flag_spec_F77= |
| 13760 | hardcode_direct_F77=no |
| 13761 | hardcode_libdir_flag_spec_F77= |
| 13762 | hardcode_libdir_flag_spec_ld_F77= |
| 13763 | hardcode_libdir_separator_F77= |
| 13764 | hardcode_minus_L_F77=no |
| 13765 | hardcode_automatic_F77=no |
| 13766 | module_cmds_F77= |
| 13767 | module_expsym_cmds_F77= |
| 13768 | link_all_deplibs_F77=unknown |
| 13769 | old_archive_cmds_F77=$old_archive_cmds |
| 13770 | no_undefined_flag_F77= |
| 13771 | whole_archive_flag_spec_F77= |
| 13772 | enable_shared_with_static_runtimes_F77=no |
| 13773 | |
| 13774 | # Source file extension for f77 test sources. |
| 13775 | ac_ext=f |
| 13776 | |
| 13777 | # Object file extension for compiled f77 test sources. |
| 13778 | objext=o |
| 13779 | objext_F77=$objext |
| 13780 | |
| 13781 | # Code to be used in simple compile tests |
| 13782 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 13783 | |
| 13784 | # Code to be used in simple link tests |
| 13785 | lt_simple_link_test_code=" program t\n end\n" |
| 13786 | |
| 13787 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 13788 | |
| 13789 | # If no C compiler was specified, use CC. |
| 13790 | LTCC=${LTCC-"$CC"} |
| 13791 | |
| 13792 | # Allow CC to be a program name with arguments. |
| 13793 | compiler=$CC |
| 13794 | |
| 13795 | |
| 13796 | # Allow CC to be a program name with arguments. |
| 13797 | lt_save_CC="$CC" |
| 13798 | CC=${F77-"f77"} |
| 13799 | compiler=$CC |
| 13800 | compiler_F77=$CC |
| 13801 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 13802 | |
| 13803 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 13804 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 13805 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 13806 | echo "${ECHO_T}$can_build_shared" >&6 |
| 13807 | |
| 13808 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 13809 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 13810 | test "$can_build_shared" = "no" && enable_shared=no |
| 13811 | |
| 13812 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 13813 | # are all built from PIC. |
| 13814 | case "$host_os" in |
| 13815 | aix3*) |
| 13816 | test "$enable_shared" = yes && enable_static=no |
| 13817 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13818 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13819 | postinstall_cmds='$RANLIB $lib' |
| 13820 | fi |
| 13821 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13822 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13823 | test "$enable_shared" = yes && enable_static=no |
| 13824 | ;; |
| 13825 | esac |
| 13826 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 13827 | echo "${ECHO_T}$enable_shared" >&6 |
| 13828 | |
| 13829 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 13830 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 13831 | # Make sure either enable_shared or enable_static is yes. |
| 13832 | test "$enable_shared" = yes || enable_static=yes |
| 13833 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 13834 | echo "${ECHO_T}$enable_static" >&6 |
| 13835 | |
| 13836 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 13837 | |
| 13838 | GCC_F77="$G77" |
| 13839 | LD_F77="$LD" |
| 13840 | |
| 13841 | lt_prog_compiler_wl_F77= |
| 13842 | lt_prog_compiler_pic_F77= |
| 13843 | lt_prog_compiler_static_F77= |
| 13844 | |
| 13845 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 13846 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 13847 | |
| 13848 | if test "$GCC" = yes; then |
| 13849 | lt_prog_compiler_wl_F77='-Wl,' |
| 13850 | lt_prog_compiler_static_F77='-static' |
| 13851 | |
| 13852 | case $host_os in |
| 13853 | aix*) |
| 13854 | # All AIX code is PIC. |
| 13855 | if test "$host_cpu" = ia64; then |
| 13856 | # AIX 5 now supports IA64 processor |
| 13857 | lt_prog_compiler_static_F77='-Bstatic' |
| 13858 | fi |
| 13859 | ;; |
| 13860 | |
| 13861 | amigaos*) |
| 13862 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 13863 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 13864 | # like `-m68040'. |
| 13865 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 13866 | ;; |
| 13867 | |
| 13868 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 13869 | # PIC is the default for these OSes. |
| 13870 | ;; |
| 13871 | |
| 13872 | mingw* | pw32* | os2*) |
| 13873 | # This hack is so that the source file can tell whether it is being |
| 13874 | # built for inclusion in a dll (and should export symbols for example). |
| 13875 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 13876 | ;; |
| 13877 | |
| 13878 | darwin* | rhapsody*) |
| 13879 | # PIC is the default on this platform |
| 13880 | # Common symbols not allowed in MH_DYLIB files |
| 13881 | lt_prog_compiler_pic_F77='-fno-common' |
| 13882 | ;; |
| 13883 | |
| 13884 | msdosdjgpp*) |
| 13885 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 13886 | # on systems that don't support them. |
| 13887 | lt_prog_compiler_can_build_shared_F77=no |
| 13888 | enable_shared=no |
| 13889 | ;; |
| 13890 | |
| 13891 | sysv4*MP*) |
| 13892 | if test -d /usr/nec; then |
| 13893 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 13894 | fi |
| 13895 | ;; |
| 13896 | |
| 13897 | hpux*) |
| 13898 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 13899 | # not for PA HP-UX. |
| 13900 | case "$host_cpu" in |
| 13901 | hppa*64*|ia64*) |
| 13902 | # +Z the default |
| 13903 | ;; |
| 13904 | *) |
| 13905 | lt_prog_compiler_pic_F77='-fPIC' |
| 13906 | ;; |
| 13907 | esac |
| 13908 | ;; |
| 13909 | |
| 13910 | *) |
| 13911 | lt_prog_compiler_pic_F77='-fPIC' |
| 13912 | ;; |
| 13913 | esac |
| 13914 | else |
| 13915 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 13916 | case $host_os in |
| 13917 | aix*) |
| 13918 | lt_prog_compiler_wl_F77='-Wl,' |
| 13919 | if test "$host_cpu" = ia64; then |
| 13920 | # AIX 5 now supports IA64 processor |
| 13921 | lt_prog_compiler_static_F77='-Bstatic' |
| 13922 | else |
| 13923 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 13924 | fi |
| 13925 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13926 | darwin*) |
| 13927 | # PIC is the default on this platform |
| 13928 | # Common symbols not allowed in MH_DYLIB files |
| 13929 | case "$cc_basename" in |
| 13930 | xlc*) |
| 13931 | lt_prog_compiler_pic_F77='-qnocommon' |
| 13932 | lt_prog_compiler_wl_F77='-Wl,' |
| 13933 | ;; |
| 13934 | esac |
| 13935 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13936 | |
| 13937 | mingw* | pw32* | os2*) |
| 13938 | # This hack is so that the source file can tell whether it is being |
| 13939 | # built for inclusion in a dll (and should export symbols for example). |
| 13940 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 13941 | ;; |
| 13942 | |
| 13943 | hpux9* | hpux10* | hpux11*) |
| 13944 | lt_prog_compiler_wl_F77='-Wl,' |
| 13945 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 13946 | # not for PA HP-UX. |
| 13947 | case "$host_cpu" in |
| 13948 | hppa*64*|ia64*) |
| 13949 | # +Z the default |
| 13950 | ;; |
| 13951 | *) |
| 13952 | lt_prog_compiler_pic_F77='+Z' |
| 13953 | ;; |
| 13954 | esac |
| 13955 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 13956 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 13957 | ;; |
| 13958 | |
| 13959 | irix5* | irix6* | nonstopux*) |
| 13960 | lt_prog_compiler_wl_F77='-Wl,' |
| 13961 | # PIC (with -KPIC) is the default. |
| 13962 | lt_prog_compiler_static_F77='-non_shared' |
| 13963 | ;; |
| 13964 | |
| 13965 | newsos6) |
| 13966 | lt_prog_compiler_pic_F77='-KPIC' |
| 13967 | lt_prog_compiler_static_F77='-Bstatic' |
| 13968 | ;; |
| 13969 | |
| 13970 | linux*) |
| 13971 | case $CC in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13972 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13973 | lt_prog_compiler_wl_F77='-Wl,' |
| 13974 | lt_prog_compiler_pic_F77='-KPIC' |
| 13975 | lt_prog_compiler_static_F77='-static' |
| 13976 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13977 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13978 | lt_prog_compiler_wl_F77='-Wl,' |
| 13979 | # All Alpha code is PIC. |
| 13980 | lt_prog_compiler_static_F77='-non_shared' |
| 13981 | ;; |
| 13982 | esac |
| 13983 | ;; |
| 13984 | |
| 13985 | osf3* | osf4* | osf5*) |
| 13986 | lt_prog_compiler_wl_F77='-Wl,' |
| 13987 | # All OSF/1 code is PIC. |
| 13988 | lt_prog_compiler_static_F77='-non_shared' |
| 13989 | ;; |
| 13990 | |
| 13991 | sco3.2v5*) |
| 13992 | lt_prog_compiler_pic_F77='-Kpic' |
| 13993 | lt_prog_compiler_static_F77='-dn' |
| 13994 | ;; |
| 13995 | |
| 13996 | solaris*) |
| 13997 | lt_prog_compiler_wl_F77='-Wl,' |
| 13998 | lt_prog_compiler_pic_F77='-KPIC' |
| 13999 | lt_prog_compiler_static_F77='-Bstatic' |
| 14000 | ;; |
| 14001 | |
| 14002 | sunos4*) |
| 14003 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 14004 | lt_prog_compiler_pic_F77='-PIC' |
| 14005 | lt_prog_compiler_static_F77='-Bstatic' |
| 14006 | ;; |
| 14007 | |
| 14008 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 14009 | lt_prog_compiler_wl_F77='-Wl,' |
| 14010 | lt_prog_compiler_pic_F77='-KPIC' |
| 14011 | lt_prog_compiler_static_F77='-Bstatic' |
| 14012 | ;; |
| 14013 | |
| 14014 | sysv4*MP*) |
| 14015 | if test -d /usr/nec ;then |
| 14016 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 14017 | lt_prog_compiler_static_F77='-Bstatic' |
| 14018 | fi |
| 14019 | ;; |
| 14020 | |
| 14021 | uts4*) |
| 14022 | lt_prog_compiler_pic_F77='-pic' |
| 14023 | lt_prog_compiler_static_F77='-Bstatic' |
| 14024 | ;; |
| 14025 | |
| 14026 | *) |
| 14027 | lt_prog_compiler_can_build_shared_F77=no |
| 14028 | ;; |
| 14029 | esac |
| 14030 | fi |
| 14031 | |
| 14032 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 14033 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
| 14034 | |
| 14035 | # |
| 14036 | # Check to make sure the PIC flag actually works. |
| 14037 | # |
| 14038 | if test -n "$lt_prog_compiler_pic_F77"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14039 | |
| 14040 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14041 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
| 14042 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 14043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14044 | else |
| 14045 | lt_prog_compiler_pic_works_F77=no |
| 14046 | ac_outfile=conftest.$ac_objext |
| 14047 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14048 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 14049 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14050 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14051 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14052 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14053 | # The option is referenced via a variable to avoid confusing sed. |
| 14054 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14055 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 14056 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14057 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14058 | (eval echo "\"\$as_me:14058: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14059 | (eval "$lt_compile" 2>conftest.err) |
| 14060 | ac_status=$? |
| 14061 | cat conftest.err >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14062 | echo "$as_me:14062: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14063 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14064 | # The compiler can only warn and ignore the option if not recognized |
| 14065 | # So say no if there are warnings |
| 14066 | if test ! -s conftest.err; then |
| 14067 | lt_prog_compiler_pic_works_F77=yes |
| 14068 | fi |
| 14069 | fi |
| 14070 | $rm conftest* |
| 14071 | |
| 14072 | fi |
| 14073 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 14074 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
| 14075 | |
| 14076 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 14077 | case $lt_prog_compiler_pic_F77 in |
| 14078 | "" | " "*) ;; |
| 14079 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 14080 | esac |
| 14081 | else |
| 14082 | lt_prog_compiler_pic_F77= |
| 14083 | lt_prog_compiler_can_build_shared_F77=no |
| 14084 | fi |
| 14085 | |
| 14086 | fi |
| 14087 | case "$host_os" in |
| 14088 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14089 | *djgpp*) |
| 14090 | lt_prog_compiler_pic_F77= |
| 14091 | ;; |
| 14092 | *) |
| 14093 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 14094 | ;; |
| 14095 | esac |
| 14096 | |
| 14097 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14098 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 14099 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 14100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14101 | else |
| 14102 | lt_cv_prog_compiler_c_o_F77=no |
| 14103 | $rm -r conftest 2>/dev/null |
| 14104 | mkdir conftest |
| 14105 | cd conftest |
| 14106 | mkdir out |
| 14107 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14108 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14109 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14110 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14111 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14112 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14113 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14114 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14115 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 14116 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14117 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14118 | (eval echo "\"\$as_me:14118: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14119 | (eval "$lt_compile" 2>out/conftest.err) |
| 14120 | ac_status=$? |
| 14121 | cat out/conftest.err >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14122 | echo "$as_me:14122: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14123 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14124 | then |
| 14125 | # The compiler can only warn and ignore the option if not recognized |
| 14126 | # So say no if there are warnings |
| 14127 | if test ! -s out/conftest.err; then |
| 14128 | lt_cv_prog_compiler_c_o_F77=yes |
| 14129 | fi |
| 14130 | fi |
| 14131 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14132 | $rm conftest* |
| 14133 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14134 | # template instantiation |
| 14135 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 14136 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14137 | cd .. |
| 14138 | rmdir conftest |
| 14139 | $rm conftest* |
| 14140 | |
| 14141 | fi |
| 14142 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 14143 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
| 14144 | |
| 14145 | |
| 14146 | hard_links="nottested" |
| 14147 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 14148 | # do not overwrite the value of need_locks provided by the user |
| 14149 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 14150 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 14151 | hard_links=yes |
| 14152 | $rm conftest* |
| 14153 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14154 | touch conftest.a |
| 14155 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14156 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14157 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 14158 | echo "${ECHO_T}$hard_links" >&6 |
| 14159 | if test "$hard_links" = no; then |
| 14160 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14161 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14162 | need_locks=warn |
| 14163 | fi |
| 14164 | else |
| 14165 | need_locks=no |
| 14166 | fi |
| 14167 | |
| 14168 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14169 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 14170 | |
| 14171 | runpath_var= |
| 14172 | allow_undefined_flag_F77= |
| 14173 | enable_shared_with_static_runtimes_F77=no |
| 14174 | archive_cmds_F77= |
| 14175 | archive_expsym_cmds_F77= |
| 14176 | old_archive_From_new_cmds_F77= |
| 14177 | old_archive_from_expsyms_cmds_F77= |
| 14178 | export_dynamic_flag_spec_F77= |
| 14179 | whole_archive_flag_spec_F77= |
| 14180 | thread_safe_flag_spec_F77= |
| 14181 | hardcode_libdir_flag_spec_F77= |
| 14182 | hardcode_libdir_flag_spec_ld_F77= |
| 14183 | hardcode_libdir_separator_F77= |
| 14184 | hardcode_direct_F77=no |
| 14185 | hardcode_minus_L_F77=no |
| 14186 | hardcode_shlibpath_var_F77=unsupported |
| 14187 | link_all_deplibs_F77=unknown |
| 14188 | hardcode_automatic_F77=no |
| 14189 | module_cmds_F77= |
| 14190 | module_expsym_cmds_F77= |
| 14191 | always_export_symbols_F77=no |
| 14192 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14193 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 14194 | # included in the symbol list |
| 14195 | include_expsyms_F77= |
| 14196 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 14197 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 14198 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 14199 | # as well as any symbol that contains `d'. |
| 14200 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 14201 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 14202 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 14203 | # the symbol is explicitly referenced. Since portable code cannot |
| 14204 | # rely on this symbol name, it's probably fine to never include it in |
| 14205 | # preloaded symbol tables. |
| 14206 | extract_expsyms_cmds= |
| 14207 | |
| 14208 | case $host_os in |
| 14209 | cygwin* | mingw* | pw32*) |
| 14210 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 14211 | # When not using gcc, we currently assume that we are using |
| 14212 | # Microsoft Visual C++. |
| 14213 | if test "$GCC" != yes; then |
| 14214 | with_gnu_ld=no |
| 14215 | fi |
| 14216 | ;; |
| 14217 | openbsd*) |
| 14218 | with_gnu_ld=no |
| 14219 | ;; |
| 14220 | esac |
| 14221 | |
| 14222 | ld_shlibs_F77=yes |
| 14223 | if test "$with_gnu_ld" = yes; then |
| 14224 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 14225 | wlarc='${wl}' |
| 14226 | |
| 14227 | # See if GNU ld supports shared libraries. |
| 14228 | case $host_os in |
| 14229 | aix3* | aix4* | aix5*) |
| 14230 | # On AIX/PPC, the GNU linker is very broken |
| 14231 | if test "$host_cpu" != ia64; then |
| 14232 | ld_shlibs_F77=no |
| 14233 | cat <<EOF 1>&2 |
| 14234 | |
| 14235 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 14236 | *** to be unable to reliably create shared libraries on AIX. |
| 14237 | *** Therefore, libtool is disabling shared libraries support. If you |
| 14238 | *** really care for shared libraries, you may want to modify your PATH |
| 14239 | *** so that a non-GNU linker is found, and then restart. |
| 14240 | |
| 14241 | EOF |
| 14242 | fi |
| 14243 | ;; |
| 14244 | |
| 14245 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14246 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14247 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14248 | hardcode_minus_L_F77=yes |
| 14249 | |
| 14250 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 14251 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 14252 | # to version 4, is to share data among multiple programs linked |
| 14253 | # with the same dynamic library. Since this doesn't match the |
| 14254 | # behavior of shared libraries on other platforms, we can't use |
| 14255 | # them. |
| 14256 | ld_shlibs_F77=no |
| 14257 | ;; |
| 14258 | |
| 14259 | beos*) |
| 14260 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14261 | allow_undefined_flag_F77=unsupported |
| 14262 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 14263 | # support --undefined. This deserves some investigation. FIXME |
| 14264 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14265 | else |
| 14266 | ld_shlibs_F77=no |
| 14267 | fi |
| 14268 | ;; |
| 14269 | |
| 14270 | cygwin* | mingw* | pw32*) |
| 14271 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 14272 | # as there is no search path for DLLs. |
| 14273 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14274 | allow_undefined_flag_F77=unsupported |
| 14275 | always_export_symbols_F77=no |
| 14276 | enable_shared_with_static_runtimes_F77=yes |
| 14277 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 14278 | |
| 14279 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 14280 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 14281 | # If the export-symbols file already is a .def file (1st line |
| 14282 | # is EXPORTS), use it as is; otherwise, prepend... |
| 14283 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 14284 | cp $export_symbols $output_objdir/$soname.def; |
| 14285 | else |
| 14286 | echo EXPORTS > $output_objdir/$soname.def; |
| 14287 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14288 | fi~ |
| 14289 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14290 | else |
| 14291 | ld_shlibs=no |
| 14292 | fi |
| 14293 | ;; |
| 14294 | |
| 14295 | netbsd*) |
| 14296 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14297 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 14298 | wlarc= |
| 14299 | else |
| 14300 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14301 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14302 | fi |
| 14303 | ;; |
| 14304 | |
| 14305 | solaris* | sysv5*) |
| 14306 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 14307 | ld_shlibs_F77=no |
| 14308 | cat <<EOF 1>&2 |
| 14309 | |
| 14310 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 14311 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 14312 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14313 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 14314 | *** your PATH or compiler configuration so that the native linker is |
| 14315 | *** used, and then restart. |
| 14316 | |
| 14317 | EOF |
| 14318 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14319 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14320 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14321 | else |
| 14322 | ld_shlibs_F77=no |
| 14323 | fi |
| 14324 | ;; |
| 14325 | |
| 14326 | sunos4*) |
| 14327 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14328 | wlarc= |
| 14329 | hardcode_direct_F77=yes |
| 14330 | hardcode_shlibpath_var_F77=no |
| 14331 | ;; |
| 14332 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14333 | linux*) |
| 14334 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14335 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14336 | archive_cmds_F77="$tmp_archive_cmds" |
| 14337 | supports_anon_versioning=no |
| 14338 | case `$LD -v 2>/dev/null` in |
| 14339 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 14340 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 14341 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 14342 | *\ 2.11.*) ;; # other 2.11 versions |
| 14343 | *) supports_anon_versioning=yes ;; |
| 14344 | esac |
| 14345 | if test $supports_anon_versioning = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14346 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 14347 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 14348 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14349 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 14350 | else |
| 14351 | archive_expsym_cmds_F77="$tmp_archive_cmds" |
| 14352 | fi |
| 14353 | else |
| 14354 | ld_shlibs_F77=no |
| 14355 | fi |
| 14356 | ;; |
| 14357 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14358 | *) |
| 14359 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14360 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14361 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14362 | else |
| 14363 | ld_shlibs_F77=no |
| 14364 | fi |
| 14365 | ;; |
| 14366 | esac |
| 14367 | |
| 14368 | if test "$ld_shlibs_F77" = yes; then |
| 14369 | runpath_var=LD_RUN_PATH |
| 14370 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 14371 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 14372 | # ancient GNU ld didn't support --whole-archive et. al. |
| 14373 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 14374 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 14375 | else |
| 14376 | whole_archive_flag_spec_F77= |
| 14377 | fi |
| 14378 | fi |
| 14379 | else |
| 14380 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 14381 | case $host_os in |
| 14382 | aix3*) |
| 14383 | allow_undefined_flag_F77=unsupported |
| 14384 | always_export_symbols_F77=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14385 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14386 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 14387 | # are no directories specified by -L. |
| 14388 | hardcode_minus_L_F77=yes |
| 14389 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 14390 | # Neither direct hardcoding nor static linking is supported with a |
| 14391 | # broken collect2. |
| 14392 | hardcode_direct_F77=unsupported |
| 14393 | fi |
| 14394 | ;; |
| 14395 | |
| 14396 | aix4* | aix5*) |
| 14397 | if test "$host_cpu" = ia64; then |
| 14398 | # On IA64, the linker does run time linking by default, so we don't |
| 14399 | # have to do anything special. |
| 14400 | aix_use_runtimelinking=no |
| 14401 | exp_sym_flag='-Bexport' |
| 14402 | no_entry_flag="" |
| 14403 | else |
| 14404 | # If we're using GNU nm, then we don't want the "-C" option. |
| 14405 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 14406 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 14407 | 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' |
| 14408 | else |
| 14409 | 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' |
| 14410 | fi |
| 14411 | aix_use_runtimelinking=no |
| 14412 | |
| 14413 | # Test if we are trying to use run time linking or normal |
| 14414 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 14415 | # need to do runtime linking. |
| 14416 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 14417 | for ld_flag in $LDFLAGS; do |
| 14418 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 14419 | aix_use_runtimelinking=yes |
| 14420 | break |
| 14421 | fi |
| 14422 | done |
| 14423 | esac |
| 14424 | |
| 14425 | exp_sym_flag='-bexport' |
| 14426 | no_entry_flag='-bnoentry' |
| 14427 | fi |
| 14428 | |
| 14429 | # When large executables or shared objects are built, AIX ld can |
| 14430 | # have problems creating the table of contents. If linking a library |
| 14431 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 14432 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 14433 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 14434 | |
| 14435 | archive_cmds_F77='' |
| 14436 | hardcode_direct_F77=yes |
| 14437 | hardcode_libdir_separator_F77=':' |
| 14438 | link_all_deplibs_F77=yes |
| 14439 | |
| 14440 | if test "$GCC" = yes; then |
| 14441 | case $host_os in aix4.012|aix4.012.*) |
| 14442 | # We only want to do this on AIX 4.2 and lower, the check |
| 14443 | # below for broken collect2 doesn't work under 4.3+ |
| 14444 | collect2name=`${CC} -print-prog-name=collect2` |
| 14445 | if test -f "$collect2name" && \ |
| 14446 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 14447 | then |
| 14448 | # We have reworked collect2 |
| 14449 | hardcode_direct_F77=yes |
| 14450 | else |
| 14451 | # We have old collect2 |
| 14452 | hardcode_direct_F77=unsupported |
| 14453 | # It fails to find uninstalled libraries when the uninstalled |
| 14454 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 14455 | # to unsupported forces relinking |
| 14456 | hardcode_minus_L_F77=yes |
| 14457 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14458 | hardcode_libdir_separator_F77= |
| 14459 | fi |
| 14460 | esac |
| 14461 | shared_flag='-shared' |
| 14462 | else |
| 14463 | # not using gcc |
| 14464 | if test "$host_cpu" = ia64; then |
| 14465 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 14466 | # chokes on -Wl,-G. The following line is correct: |
| 14467 | shared_flag='-G' |
| 14468 | else |
| 14469 | if test "$aix_use_runtimelinking" = yes; then |
| 14470 | shared_flag='${wl}-G' |
| 14471 | else |
| 14472 | shared_flag='${wl}-bM:SRE' |
| 14473 | fi |
| 14474 | fi |
| 14475 | fi |
| 14476 | |
| 14477 | # It seems that -bexpall does not export symbols beginning with |
| 14478 | # underscore (_), so it is better to generate a list of symbols to export. |
| 14479 | always_export_symbols_F77=yes |
| 14480 | if test "$aix_use_runtimelinking" = yes; then |
| 14481 | # Warning - without using the other runtime loading flags (-brtl), |
| 14482 | # -berok will link without error, but may produce a broken library. |
| 14483 | allow_undefined_flag_F77='-berok' |
| 14484 | # Determine the default libpath from the value encoded in an empty executable. |
| 14485 | cat >conftest.$ac_ext <<_ACEOF |
| 14486 | program main |
| 14487 | |
| 14488 | end |
| 14489 | _ACEOF |
| 14490 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14491 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14492 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14493 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14494 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14495 | rm -f conftest.er1 |
| 14496 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14498 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14499 | { ac_try='test -z "$ac_f77_werror_flag" |
| 14500 | || test ! -s conftest.err' |
| 14501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14502 | (eval $ac_try) 2>&5 |
| 14503 | ac_status=$? |
| 14504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14505 | (exit $ac_status); }; } && |
| 14506 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14508 | (eval $ac_try) 2>&5 |
| 14509 | ac_status=$? |
| 14510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14511 | (exit $ac_status); }; }; then |
| 14512 | |
| 14513 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 14514 | }'` |
| 14515 | # Check for a 64-bit object if we didn't find anything. |
| 14516 | 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; } |
| 14517 | }'`; fi |
| 14518 | else |
| 14519 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14521 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14522 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14523 | rm -f conftest.err conftest.$ac_objext \ |
| 14524 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14525 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 14526 | |
| 14527 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 14528 | 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" |
| 14529 | else |
| 14530 | if test "$host_cpu" = ia64; then |
| 14531 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 14532 | allow_undefined_flag_F77="-z nodefs" |
| 14533 | 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" |
| 14534 | else |
| 14535 | # Determine the default libpath from the value encoded in an empty executable. |
| 14536 | cat >conftest.$ac_ext <<_ACEOF |
| 14537 | program main |
| 14538 | |
| 14539 | end |
| 14540 | _ACEOF |
| 14541 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14542 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14543 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14544 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14545 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14546 | rm -f conftest.er1 |
| 14547 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14549 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14550 | { ac_try='test -z "$ac_f77_werror_flag" |
| 14551 | || test ! -s conftest.err' |
| 14552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14553 | (eval $ac_try) 2>&5 |
| 14554 | ac_status=$? |
| 14555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14556 | (exit $ac_status); }; } && |
| 14557 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14559 | (eval $ac_try) 2>&5 |
| 14560 | ac_status=$? |
| 14561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14562 | (exit $ac_status); }; }; then |
| 14563 | |
| 14564 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 14565 | }'` |
| 14566 | # Check for a 64-bit object if we didn't find anything. |
| 14567 | 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; } |
| 14568 | }'`; fi |
| 14569 | else |
| 14570 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14572 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14573 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14574 | rm -f conftest.err conftest.$ac_objext \ |
| 14575 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14576 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 14577 | |
| 14578 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 14579 | # Warning - without using the other run time loading flags, |
| 14580 | # -berok will link without error, but may produce a broken library. |
| 14581 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 14582 | allow_undefined_flag_F77=' ${wl}-berok' |
| 14583 | # -bexpall does not export symbols beginning with underscore (_) |
| 14584 | always_export_symbols_F77=yes |
| 14585 | # Exported symbols can be pulled into shared objects from archives |
| 14586 | whole_archive_flag_spec_F77=' ' |
| 14587 | archive_cmds_need_lc_F77=yes |
| 14588 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14589 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14590 | fi |
| 14591 | fi |
| 14592 | ;; |
| 14593 | |
| 14594 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14595 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14596 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14597 | hardcode_minus_L_F77=yes |
| 14598 | # see comment about different semantics on the GNU ld section |
| 14599 | ld_shlibs_F77=no |
| 14600 | ;; |
| 14601 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14602 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14603 | export_dynamic_flag_spec_F77=-rdynamic |
| 14604 | ;; |
| 14605 | |
| 14606 | cygwin* | mingw* | pw32*) |
| 14607 | # When not using gcc, we currently assume that we are using |
| 14608 | # Microsoft Visual C++. |
| 14609 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 14610 | # no search path for DLLs. |
| 14611 | hardcode_libdir_flag_spec_F77=' ' |
| 14612 | allow_undefined_flag_F77=unsupported |
| 14613 | # Tell ltmain to make .lib files, not .a files. |
| 14614 | libext=lib |
| 14615 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14616 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14617 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14618 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14619 | # The linker will automatically build a .lib file if we build a DLL. |
| 14620 | old_archive_From_new_cmds_F77='true' |
| 14621 | # FIXME: Should let the user specify the lib program. |
| 14622 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 14623 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 14624 | enable_shared_with_static_runtimes_F77=yes |
| 14625 | ;; |
| 14626 | |
| 14627 | darwin* | rhapsody*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14628 | case "$host_os" in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14629 | rhapsody* | darwin1.[012]) |
| 14630 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 14631 | ;; |
| 14632 | *) # Darwin 1.3 on |
| 14633 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 14634 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 14635 | else |
| 14636 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 14637 | 10.[012]) |
| 14638 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 14639 | ;; |
| 14640 | 10.*) |
| 14641 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 14642 | ;; |
| 14643 | esac |
| 14644 | fi |
| 14645 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14646 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14647 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14648 | hardcode_direct_F77=no |
| 14649 | hardcode_automatic_F77=yes |
| 14650 | hardcode_shlibpath_var_F77=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14651 | whole_archive_flag_spec_F77='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14652 | link_all_deplibs_F77=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14653 | if test "$GCC" = yes ; then |
| 14654 | output_verbose_link_cmd='echo' |
| 14655 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 14656 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 14657 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14658 | archive_expsym_cmds_F77='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}' |
| 14659 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14660 | else |
| 14661 | case "$cc_basename" in |
| 14662 | xlc*) |
| 14663 | output_verbose_link_cmd='echo' |
| 14664 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 14665 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 14666 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14667 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 14668 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14669 | ;; |
| 14670 | *) |
| 14671 | ld_shlibs_F77=no |
| 14672 | ;; |
| 14673 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14674 | fi |
| 14675 | ;; |
| 14676 | |
| 14677 | dgux*) |
| 14678 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14679 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14680 | hardcode_shlibpath_var_F77=no |
| 14681 | ;; |
| 14682 | |
| 14683 | freebsd1*) |
| 14684 | ld_shlibs_F77=no |
| 14685 | ;; |
| 14686 | |
| 14687 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 14688 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 14689 | # does not break anything, and helps significantly (at the cost of a little |
| 14690 | # extra space). |
| 14691 | freebsd2.2*) |
| 14692 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 14693 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14694 | hardcode_direct_F77=yes |
| 14695 | hardcode_shlibpath_var_F77=no |
| 14696 | ;; |
| 14697 | |
| 14698 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 14699 | freebsd2*) |
| 14700 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14701 | hardcode_direct_F77=yes |
| 14702 | hardcode_minus_L_F77=yes |
| 14703 | hardcode_shlibpath_var_F77=no |
| 14704 | ;; |
| 14705 | |
| 14706 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14707 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14708 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 14709 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14710 | hardcode_direct_F77=yes |
| 14711 | hardcode_shlibpath_var_F77=no |
| 14712 | ;; |
| 14713 | |
| 14714 | hpux9*) |
| 14715 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14716 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14717 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14718 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14719 | fi |
| 14720 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 14721 | hardcode_libdir_separator_F77=: |
| 14722 | hardcode_direct_F77=yes |
| 14723 | |
| 14724 | # hardcode_minus_L: Not really in the search PATH, |
| 14725 | # but as the default location of the library. |
| 14726 | hardcode_minus_L_F77=yes |
| 14727 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14728 | ;; |
| 14729 | |
| 14730 | hpux10* | hpux11*) |
| 14731 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 14732 | case "$host_cpu" in |
| 14733 | hppa*64*|ia64*) |
| 14734 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14735 | ;; |
| 14736 | *) |
| 14737 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 14738 | ;; |
| 14739 | esac |
| 14740 | else |
| 14741 | case "$host_cpu" in |
| 14742 | hppa*64*|ia64*) |
| 14743 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14744 | ;; |
| 14745 | *) |
| 14746 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 14747 | ;; |
| 14748 | esac |
| 14749 | fi |
| 14750 | if test "$with_gnu_ld" = no; then |
| 14751 | case "$host_cpu" in |
| 14752 | hppa*64*) |
| 14753 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 14754 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 14755 | hardcode_libdir_separator_F77=: |
| 14756 | hardcode_direct_F77=no |
| 14757 | hardcode_shlibpath_var_F77=no |
| 14758 | ;; |
| 14759 | ia64*) |
| 14760 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14761 | hardcode_direct_F77=no |
| 14762 | hardcode_shlibpath_var_F77=no |
| 14763 | |
| 14764 | # hardcode_minus_L: Not really in the search PATH, |
| 14765 | # but as the default location of the library. |
| 14766 | hardcode_minus_L_F77=yes |
| 14767 | ;; |
| 14768 | *) |
| 14769 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 14770 | hardcode_libdir_separator_F77=: |
| 14771 | hardcode_direct_F77=yes |
| 14772 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14773 | |
| 14774 | # hardcode_minus_L: Not really in the search PATH, |
| 14775 | # but as the default location of the library. |
| 14776 | hardcode_minus_L_F77=yes |
| 14777 | ;; |
| 14778 | esac |
| 14779 | fi |
| 14780 | ;; |
| 14781 | |
| 14782 | irix5* | irix6* | nonstopux*) |
| 14783 | if test "$GCC" = yes; then |
| 14784 | 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' |
| 14785 | else |
| 14786 | 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' |
| 14787 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 14788 | fi |
| 14789 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 14790 | hardcode_libdir_separator_F77=: |
| 14791 | link_all_deplibs_F77=yes |
| 14792 | ;; |
| 14793 | |
| 14794 | netbsd*) |
| 14795 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14796 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 14797 | else |
| 14798 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 14799 | fi |
| 14800 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14801 | hardcode_direct_F77=yes |
| 14802 | hardcode_shlibpath_var_F77=no |
| 14803 | ;; |
| 14804 | |
| 14805 | newsos6) |
| 14806 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14807 | hardcode_direct_F77=yes |
| 14808 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 14809 | hardcode_libdir_separator_F77=: |
| 14810 | hardcode_shlibpath_var_F77=no |
| 14811 | ;; |
| 14812 | |
| 14813 | openbsd*) |
| 14814 | hardcode_direct_F77=yes |
| 14815 | hardcode_shlibpath_var_F77=no |
| 14816 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 14817 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14818 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14819 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 14820 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14821 | else |
| 14822 | case $host_os in |
| 14823 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 14824 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14825 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14826 | ;; |
| 14827 | *) |
| 14828 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 14829 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 14830 | ;; |
| 14831 | esac |
| 14832 | fi |
| 14833 | ;; |
| 14834 | |
| 14835 | os2*) |
| 14836 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14837 | hardcode_minus_L_F77=yes |
| 14838 | allow_undefined_flag_F77=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14839 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14840 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 14841 | ;; |
| 14842 | |
| 14843 | osf3*) |
| 14844 | if test "$GCC" = yes; then |
| 14845 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 14846 | 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' |
| 14847 | else |
| 14848 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 14849 | 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' |
| 14850 | fi |
| 14851 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 14852 | hardcode_libdir_separator_F77=: |
| 14853 | ;; |
| 14854 | |
| 14855 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 14856 | if test "$GCC" = yes; then |
| 14857 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 14858 | 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' |
| 14859 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 14860 | else |
| 14861 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 14862 | 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' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14863 | 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~ |
| 14864 | $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' |
| 14865 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14866 | # Both c and cxx compiler support -rpath directly |
| 14867 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 14868 | fi |
| 14869 | hardcode_libdir_separator_F77=: |
| 14870 | ;; |
| 14871 | |
| 14872 | sco3.2v5*) |
| 14873 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14874 | hardcode_shlibpath_var_F77=no |
| 14875 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
| 14876 | runpath_var=LD_RUN_PATH |
| 14877 | hardcode_runpath_var=yes |
| 14878 | ;; |
| 14879 | |
| 14880 | solaris*) |
| 14881 | no_undefined_flag_F77=' -z text' |
| 14882 | if test "$GCC" = yes; then |
| 14883 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14884 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 14885 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14886 | else |
| 14887 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14888 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 14889 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14890 | fi |
| 14891 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14892 | hardcode_shlibpath_var_F77=no |
| 14893 | case $host_os in |
| 14894 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 14895 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 14896 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 14897 | esac |
| 14898 | link_all_deplibs_F77=yes |
| 14899 | ;; |
| 14900 | |
| 14901 | sunos4*) |
| 14902 | if test "x$host_vendor" = xsequent; then |
| 14903 | # Use $CC to link under sequent, because it throws in some extra .o |
| 14904 | # files that make .init and .fini sections work. |
| 14905 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14906 | else |
| 14907 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 14908 | fi |
| 14909 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14910 | hardcode_direct_F77=yes |
| 14911 | hardcode_minus_L_F77=yes |
| 14912 | hardcode_shlibpath_var_F77=no |
| 14913 | ;; |
| 14914 | |
| 14915 | sysv4) |
| 14916 | case $host_vendor in |
| 14917 | sni) |
| 14918 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14919 | hardcode_direct_F77=yes # is this really true??? |
| 14920 | ;; |
| 14921 | siemens) |
| 14922 | ## LD is ld it makes a PLAMLIB |
| 14923 | ## CC just makes a GrossModule. |
| 14924 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 14925 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 14926 | hardcode_direct_F77=no |
| 14927 | ;; |
| 14928 | motorola) |
| 14929 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14930 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 14931 | ;; |
| 14932 | esac |
| 14933 | runpath_var='LD_RUN_PATH' |
| 14934 | hardcode_shlibpath_var_F77=no |
| 14935 | ;; |
| 14936 | |
| 14937 | sysv4.3*) |
| 14938 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14939 | hardcode_shlibpath_var_F77=no |
| 14940 | export_dynamic_flag_spec_F77='-Bexport' |
| 14941 | ;; |
| 14942 | |
| 14943 | sysv4*MP*) |
| 14944 | if test -d /usr/nec; then |
| 14945 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14946 | hardcode_shlibpath_var_F77=no |
| 14947 | runpath_var=LD_RUN_PATH |
| 14948 | hardcode_runpath_var=yes |
| 14949 | ld_shlibs_F77=yes |
| 14950 | fi |
| 14951 | ;; |
| 14952 | |
| 14953 | sysv4.2uw2*) |
| 14954 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 14955 | hardcode_direct_F77=yes |
| 14956 | hardcode_minus_L_F77=no |
| 14957 | hardcode_shlibpath_var_F77=no |
| 14958 | hardcode_runpath_var=yes |
| 14959 | runpath_var=LD_RUN_PATH |
| 14960 | ;; |
| 14961 | |
| 14962 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 14963 | no_undefined_flag_F77='${wl}-z ${wl}text' |
| 14964 | if test "$GCC" = yes; then |
| 14965 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14966 | else |
| 14967 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14968 | fi |
| 14969 | runpath_var='LD_RUN_PATH' |
| 14970 | hardcode_shlibpath_var_F77=no |
| 14971 | ;; |
| 14972 | |
| 14973 | sysv5*) |
| 14974 | no_undefined_flag_F77=' -z text' |
| 14975 | # $CC -shared without GNU ld will not create a library from C++ |
| 14976 | # object files and a static libstdc++, better avoid it by now |
| 14977 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14978 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 14979 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14980 | hardcode_libdir_flag_spec_F77= |
| 14981 | hardcode_shlibpath_var_F77=no |
| 14982 | runpath_var='LD_RUN_PATH' |
| 14983 | ;; |
| 14984 | |
| 14985 | uts4*) |
| 14986 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14987 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14988 | hardcode_shlibpath_var_F77=no |
| 14989 | ;; |
| 14990 | |
| 14991 | *) |
| 14992 | ld_shlibs_F77=no |
| 14993 | ;; |
| 14994 | esac |
| 14995 | fi |
| 14996 | |
| 14997 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 14998 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
| 14999 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 15000 | |
| 15001 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 15002 | if test "$GCC" = yes; then |
| 15003 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 15004 | fi |
| 15005 | |
| 15006 | # |
| 15007 | # Do we need to explicitly link libc? |
| 15008 | # |
| 15009 | case "x$archive_cmds_need_lc_F77" in |
| 15010 | x|xyes) |
| 15011 | # Assume -lc should be added |
| 15012 | archive_cmds_need_lc_F77=yes |
| 15013 | |
| 15014 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15015 | case $archive_cmds_F77 in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15016 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15017 | # FIXME: we may have to deal with multi-command sequences. |
| 15018 | ;; |
| 15019 | '$CC '*) |
| 15020 | # Test whether the compiler implicitly links with -lc since on some |
| 15021 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15022 | # to ld, don't add -lc before -lgcc. |
| 15023 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 15024 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 15025 | $rm conftest* |
| 15026 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15027 | |
| 15028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15029 | (eval $ac_compile) 2>&5 |
| 15030 | ac_status=$? |
| 15031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15032 | (exit $ac_status); } 2>conftest.err; then |
| 15033 | soname=conftest |
| 15034 | lib=conftest |
| 15035 | libobjs=conftest.$ac_objext |
| 15036 | deplibs= |
| 15037 | wl=$lt_prog_compiler_wl_F77 |
| 15038 | compiler_flags=-v |
| 15039 | linker_flags=-v |
| 15040 | verstring= |
| 15041 | output_objdir=. |
| 15042 | libname=conftest |
| 15043 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 15044 | allow_undefined_flag_F77= |
| 15045 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 15046 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15047 | ac_status=$? |
| 15048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15049 | (exit $ac_status); } |
| 15050 | then |
| 15051 | archive_cmds_need_lc_F77=no |
| 15052 | else |
| 15053 | archive_cmds_need_lc_F77=yes |
| 15054 | fi |
| 15055 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 15056 | else |
| 15057 | cat conftest.err 1>&5 |
| 15058 | fi |
| 15059 | $rm conftest* |
| 15060 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 15061 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
| 15062 | ;; |
| 15063 | esac |
| 15064 | fi |
| 15065 | ;; |
| 15066 | esac |
| 15067 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15068 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 15069 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 15070 | library_names_spec= |
| 15071 | libname_spec='lib$name' |
| 15072 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15073 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15074 | postinstall_cmds= |
| 15075 | postuninstall_cmds= |
| 15076 | finish_cmds= |
| 15077 | finish_eval= |
| 15078 | shlibpath_var= |
| 15079 | shlibpath_overrides_runpath=unknown |
| 15080 | version_type=none |
| 15081 | dynamic_linker="$host_os ld.so" |
| 15082 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 15083 | if test "$GCC" = yes; then |
| 15084 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15085 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 15086 | # if the path contains ";" then we assume it to be the separator |
| 15087 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 15088 | # assumed that no part of a normal pathname contains ";" but that should |
| 15089 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 15090 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15091 | else |
| 15092 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15093 | fi |
| 15094 | else |
| 15095 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 15096 | fi |
| 15097 | need_lib_prefix=unknown |
| 15098 | hardcode_into_libs=no |
| 15099 | |
| 15100 | # when you set need_version to no, make sure it does not cause -set_version |
| 15101 | # flags to be left without arguments |
| 15102 | need_version=unknown |
| 15103 | |
| 15104 | case $host_os in |
| 15105 | aix3*) |
| 15106 | version_type=linux |
| 15107 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 15108 | shlibpath_var=LIBPATH |
| 15109 | |
| 15110 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 15111 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15112 | ;; |
| 15113 | |
| 15114 | aix4* | aix5*) |
| 15115 | version_type=linux |
| 15116 | need_lib_prefix=no |
| 15117 | need_version=no |
| 15118 | hardcode_into_libs=yes |
| 15119 | if test "$host_cpu" = ia64; then |
| 15120 | # AIX 5 supports IA64 |
| 15121 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 15122 | shlibpath_var=LD_LIBRARY_PATH |
| 15123 | else |
| 15124 | # With GCC up to 2.95.x, collect2 would create an import file |
| 15125 | # for dependence libraries. The import file would start with |
| 15126 | # the line `#! .'. This would cause the generated library to |
| 15127 | # depend on `.', always an invalid library. This was fixed in |
| 15128 | # development snapshots of GCC prior to 3.0. |
| 15129 | case $host_os in |
| 15130 | aix4 | aix4.[01] | aix4.[01].*) |
| 15131 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 15132 | echo ' yes ' |
| 15133 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 15134 | : |
| 15135 | else |
| 15136 | can_build_shared=no |
| 15137 | fi |
| 15138 | ;; |
| 15139 | esac |
| 15140 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 15141 | # soname into executable. Probably we can add versioning support to |
| 15142 | # collect2, so additional links can be useful in future. |
| 15143 | if test "$aix_use_runtimelinking" = yes; then |
| 15144 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 15145 | # instead of lib<name>.a to let people know that these are not |
| 15146 | # typical AIX shared libraries. |
| 15147 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15148 | else |
| 15149 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 15150 | # and later when we are not doing run time linking. |
| 15151 | library_names_spec='${libname}${release}.a $libname.a' |
| 15152 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15153 | fi |
| 15154 | shlibpath_var=LIBPATH |
| 15155 | fi |
| 15156 | ;; |
| 15157 | |
| 15158 | amigaos*) |
| 15159 | library_names_spec='$libname.ixlibrary $libname.a' |
| 15160 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15161 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15162 | ;; |
| 15163 | |
| 15164 | beos*) |
| 15165 | library_names_spec='${libname}${shared_ext}' |
| 15166 | dynamic_linker="$host_os ld.so" |
| 15167 | shlibpath_var=LIBRARY_PATH |
| 15168 | ;; |
| 15169 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15170 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15171 | version_type=linux |
| 15172 | need_version=no |
| 15173 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15174 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15175 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 15176 | shlibpath_var=LD_LIBRARY_PATH |
| 15177 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 15178 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 15179 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 15180 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 15181 | # libtool to hard-code these into programs |
| 15182 | ;; |
| 15183 | |
| 15184 | cygwin* | mingw* | pw32*) |
| 15185 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15186 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15187 | need_version=no |
| 15188 | need_lib_prefix=no |
| 15189 | |
| 15190 | case $GCC,$host_os in |
| 15191 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 15192 | library_names_spec='$libname.dll.a' |
| 15193 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15194 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15195 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 15196 | dldir=$destdir/`dirname \$dlpath`~ |
| 15197 | test -d \$dldir || mkdir -p \$dldir~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15198 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15199 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15200 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15201 | $rm \$dlpath' |
| 15202 | shlibpath_overrides_runpath=yes |
| 15203 | |
| 15204 | case $host_os in |
| 15205 | cygwin*) |
| 15206 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 15207 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15208 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15209 | ;; |
| 15210 | mingw*) |
| 15211 | # MinGW DLLs use traditional 'lib' prefix |
| 15212 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15213 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15214 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 15215 | # It is most probably a Windows format PATH printed by |
| 15216 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 15217 | # path with ; separators, and with drive letters. We can handle the |
| 15218 | # drive letters (cygwin fileutils understands them), so leave them, |
| 15219 | # especially as we might pass files found there to a mingw objdump, |
| 15220 | # which wouldn't understand a cygwinified path. Ahh. |
| 15221 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15222 | else |
| 15223 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15224 | fi |
| 15225 | ;; |
| 15226 | pw32*) |
| 15227 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 15228 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 15229 | ;; |
| 15230 | esac |
| 15231 | ;; |
| 15232 | |
| 15233 | *) |
| 15234 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 15235 | ;; |
| 15236 | esac |
| 15237 | dynamic_linker='Win32 ld.exe' |
| 15238 | # FIXME: first we should search . and the directory the executable is in |
| 15239 | shlibpath_var=PATH |
| 15240 | ;; |
| 15241 | |
| 15242 | darwin* | rhapsody*) |
| 15243 | dynamic_linker="$host_os dyld" |
| 15244 | version_type=darwin |
| 15245 | need_lib_prefix=no |
| 15246 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15247 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15248 | soname_spec='${libname}${release}${major}$shared_ext' |
| 15249 | shlibpath_overrides_runpath=yes |
| 15250 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15251 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15252 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15253 | if test "$GCC" = yes; then |
| 15254 | 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"` |
| 15255 | else |
| 15256 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15257 | fi |
| 15258 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 15259 | ;; |
| 15260 | |
| 15261 | dgux*) |
| 15262 | version_type=linux |
| 15263 | need_lib_prefix=no |
| 15264 | need_version=no |
| 15265 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 15266 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15267 | shlibpath_var=LD_LIBRARY_PATH |
| 15268 | ;; |
| 15269 | |
| 15270 | freebsd1*) |
| 15271 | dynamic_linker=no |
| 15272 | ;; |
| 15273 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15274 | kfreebsd*-gnu) |
| 15275 | version_type=linux |
| 15276 | need_lib_prefix=no |
| 15277 | need_version=no |
| 15278 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15279 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15280 | shlibpath_var=LD_LIBRARY_PATH |
| 15281 | shlibpath_overrides_runpath=no |
| 15282 | hardcode_into_libs=yes |
| 15283 | dynamic_linker='GNU ld.so' |
| 15284 | ;; |
| 15285 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15286 | freebsd*) |
| 15287 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 15288 | version_type=freebsd-$objformat |
| 15289 | case $version_type in |
| 15290 | freebsd-elf*) |
| 15291 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15292 | need_version=no |
| 15293 | need_lib_prefix=no |
| 15294 | ;; |
| 15295 | freebsd-*) |
| 15296 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 15297 | need_version=yes |
| 15298 | ;; |
| 15299 | esac |
| 15300 | shlibpath_var=LD_LIBRARY_PATH |
| 15301 | case $host_os in |
| 15302 | freebsd2*) |
| 15303 | shlibpath_overrides_runpath=yes |
| 15304 | ;; |
| 15305 | freebsd3.01* | freebsdelf3.01*) |
| 15306 | shlibpath_overrides_runpath=yes |
| 15307 | hardcode_into_libs=yes |
| 15308 | ;; |
| 15309 | *) # from 3.2 on |
| 15310 | shlibpath_overrides_runpath=no |
| 15311 | hardcode_into_libs=yes |
| 15312 | ;; |
| 15313 | esac |
| 15314 | ;; |
| 15315 | |
| 15316 | gnu*) |
| 15317 | version_type=linux |
| 15318 | need_lib_prefix=no |
| 15319 | need_version=no |
| 15320 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15321 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15322 | shlibpath_var=LD_LIBRARY_PATH |
| 15323 | hardcode_into_libs=yes |
| 15324 | ;; |
| 15325 | |
| 15326 | hpux9* | hpux10* | hpux11*) |
| 15327 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 15328 | # link against other versions. |
| 15329 | version_type=sunos |
| 15330 | need_lib_prefix=no |
| 15331 | need_version=no |
| 15332 | case "$host_cpu" in |
| 15333 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15334 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15335 | hardcode_into_libs=yes |
| 15336 | dynamic_linker="$host_os dld.so" |
| 15337 | shlibpath_var=LD_LIBRARY_PATH |
| 15338 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15339 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15340 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15341 | if test "X$HPUX_IA64_MODE" = X32; then |
| 15342 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 15343 | else |
| 15344 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 15345 | fi |
| 15346 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15347 | ;; |
| 15348 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15349 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15350 | hardcode_into_libs=yes |
| 15351 | dynamic_linker="$host_os dld.sl" |
| 15352 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 15353 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15354 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15355 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15356 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 15357 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15358 | ;; |
| 15359 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15360 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15361 | dynamic_linker="$host_os dld.sl" |
| 15362 | shlibpath_var=SHLIB_PATH |
| 15363 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 15364 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15365 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15366 | ;; |
| 15367 | esac |
| 15368 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 15369 | postinstall_cmds='chmod 555 $lib' |
| 15370 | ;; |
| 15371 | |
| 15372 | irix5* | irix6* | nonstopux*) |
| 15373 | case $host_os in |
| 15374 | nonstopux*) version_type=nonstopux ;; |
| 15375 | *) |
| 15376 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 15377 | version_type=linux |
| 15378 | else |
| 15379 | version_type=irix |
| 15380 | fi ;; |
| 15381 | esac |
| 15382 | need_lib_prefix=no |
| 15383 | need_version=no |
| 15384 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15386 | case $host_os in |
| 15387 | irix5* | nonstopux*) |
| 15388 | libsuff= shlibsuff= |
| 15389 | ;; |
| 15390 | *) |
| 15391 | case $LD in # libtool.m4 will add one of these switches to LD |
| 15392 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 15393 | libsuff= shlibsuff= libmagic=32-bit;; |
| 15394 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 15395 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 15396 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 15397 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 15398 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 15399 | esac |
| 15400 | ;; |
| 15401 | esac |
| 15402 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 15403 | shlibpath_overrides_runpath=no |
| 15404 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 15405 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 15406 | hardcode_into_libs=yes |
| 15407 | ;; |
| 15408 | |
| 15409 | # No shared lib support for Linux oldld, aout, or coff. |
| 15410 | linux*oldld* | linux*aout* | linux*coff*) |
| 15411 | dynamic_linker=no |
| 15412 | ;; |
| 15413 | |
| 15414 | # This must be Linux ELF. |
| 15415 | linux*) |
| 15416 | version_type=linux |
| 15417 | need_lib_prefix=no |
| 15418 | need_version=no |
| 15419 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15420 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15421 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 15422 | shlibpath_var=LD_LIBRARY_PATH |
| 15423 | shlibpath_overrides_runpath=no |
| 15424 | # This implies no fast_install, which is unacceptable. |
| 15425 | # Some rework will be needed to allow for fast_install |
| 15426 | # before this can be enabled. |
| 15427 | hardcode_into_libs=yes |
| 15428 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15429 | # Append ld.so.conf contents to the search path |
| 15430 | if test -f /etc/ld.so.conf; then |
| 15431 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 15432 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 15433 | fi |
| 15434 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15435 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 15436 | # powerpc, because MkLinux only supported shared libraries with the |
| 15437 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 15438 | # most powerpc-linux boxes support dynamic linking these days and |
| 15439 | # people can always --disable-shared, the test was removed, and we |
| 15440 | # assume the GNU/Linux dynamic linker is in use. |
| 15441 | dynamic_linker='GNU/Linux ld.so' |
| 15442 | ;; |
| 15443 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15444 | knetbsd*-gnu) |
| 15445 | version_type=linux |
| 15446 | need_lib_prefix=no |
| 15447 | need_version=no |
| 15448 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15449 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15450 | shlibpath_var=LD_LIBRARY_PATH |
| 15451 | shlibpath_overrides_runpath=no |
| 15452 | hardcode_into_libs=yes |
| 15453 | dynamic_linker='GNU ld.so' |
| 15454 | ;; |
| 15455 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15456 | netbsd*) |
| 15457 | version_type=sunos |
| 15458 | need_lib_prefix=no |
| 15459 | need_version=no |
| 15460 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15461 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15462 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15463 | dynamic_linker='NetBSD (a.out) ld.so' |
| 15464 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15465 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15466 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15467 | dynamic_linker='NetBSD ld.elf_so' |
| 15468 | fi |
| 15469 | shlibpath_var=LD_LIBRARY_PATH |
| 15470 | shlibpath_overrides_runpath=yes |
| 15471 | hardcode_into_libs=yes |
| 15472 | ;; |
| 15473 | |
| 15474 | newsos6) |
| 15475 | version_type=linux |
| 15476 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15477 | shlibpath_var=LD_LIBRARY_PATH |
| 15478 | shlibpath_overrides_runpath=yes |
| 15479 | ;; |
| 15480 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15481 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15482 | version_type=linux |
| 15483 | need_lib_prefix=no |
| 15484 | need_version=no |
| 15485 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15486 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15487 | shlibpath_var=LD_LIBRARY_PATH |
| 15488 | shlibpath_overrides_runpath=yes |
| 15489 | ;; |
| 15490 | |
| 15491 | openbsd*) |
| 15492 | version_type=sunos |
| 15493 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 15494 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15495 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15496 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15497 | shlibpath_var=LD_LIBRARY_PATH |
| 15498 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15499 | case $host_os in |
| 15500 | openbsd2.[89] | openbsd2.[89].*) |
| 15501 | shlibpath_overrides_runpath=no |
| 15502 | ;; |
| 15503 | *) |
| 15504 | shlibpath_overrides_runpath=yes |
| 15505 | ;; |
| 15506 | esac |
| 15507 | else |
| 15508 | shlibpath_overrides_runpath=yes |
| 15509 | fi |
| 15510 | ;; |
| 15511 | |
| 15512 | os2*) |
| 15513 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15514 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15515 | need_lib_prefix=no |
| 15516 | library_names_spec='$libname${shared_ext} $libname.a' |
| 15517 | dynamic_linker='OS/2 ld.exe' |
| 15518 | shlibpath_var=LIBPATH |
| 15519 | ;; |
| 15520 | |
| 15521 | osf3* | osf4* | osf5*) |
| 15522 | version_type=osf |
| 15523 | need_lib_prefix=no |
| 15524 | need_version=no |
| 15525 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15526 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15527 | shlibpath_var=LD_LIBRARY_PATH |
| 15528 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 15529 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 15530 | ;; |
| 15531 | |
| 15532 | sco3.2v5*) |
| 15533 | version_type=osf |
| 15534 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15535 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15536 | shlibpath_var=LD_LIBRARY_PATH |
| 15537 | ;; |
| 15538 | |
| 15539 | solaris*) |
| 15540 | version_type=linux |
| 15541 | need_lib_prefix=no |
| 15542 | need_version=no |
| 15543 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15544 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15545 | shlibpath_var=LD_LIBRARY_PATH |
| 15546 | shlibpath_overrides_runpath=yes |
| 15547 | hardcode_into_libs=yes |
| 15548 | # ldd complains unless libraries are executable |
| 15549 | postinstall_cmds='chmod +x $lib' |
| 15550 | ;; |
| 15551 | |
| 15552 | sunos4*) |
| 15553 | version_type=sunos |
| 15554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15555 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 15556 | shlibpath_var=LD_LIBRARY_PATH |
| 15557 | shlibpath_overrides_runpath=yes |
| 15558 | if test "$with_gnu_ld" = yes; then |
| 15559 | need_lib_prefix=no |
| 15560 | fi |
| 15561 | need_version=yes |
| 15562 | ;; |
| 15563 | |
| 15564 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 15565 | version_type=linux |
| 15566 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15567 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15568 | shlibpath_var=LD_LIBRARY_PATH |
| 15569 | case $host_vendor in |
| 15570 | sni) |
| 15571 | shlibpath_overrides_runpath=no |
| 15572 | need_lib_prefix=no |
| 15573 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 15574 | runpath_var=LD_RUN_PATH |
| 15575 | ;; |
| 15576 | siemens) |
| 15577 | need_lib_prefix=no |
| 15578 | ;; |
| 15579 | motorola) |
| 15580 | need_lib_prefix=no |
| 15581 | need_version=no |
| 15582 | shlibpath_overrides_runpath=no |
| 15583 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 15584 | ;; |
| 15585 | esac |
| 15586 | ;; |
| 15587 | |
| 15588 | sysv4*MP*) |
| 15589 | if test -d /usr/nec ;then |
| 15590 | version_type=linux |
| 15591 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 15592 | soname_spec='$libname${shared_ext}.$major' |
| 15593 | shlibpath_var=LD_LIBRARY_PATH |
| 15594 | fi |
| 15595 | ;; |
| 15596 | |
| 15597 | uts4*) |
| 15598 | version_type=linux |
| 15599 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15600 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15601 | shlibpath_var=LD_LIBRARY_PATH |
| 15602 | ;; |
| 15603 | |
| 15604 | *) |
| 15605 | dynamic_linker=no |
| 15606 | ;; |
| 15607 | esac |
| 15608 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 15609 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 15610 | test "$dynamic_linker" = no && can_build_shared=no |
| 15611 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15612 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 15613 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 15614 | hardcode_action_F77= |
| 15615 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 15616 | test -n "$runpath_var_F77" || \ |
| 15617 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 15618 | |
| 15619 | # We can hardcode non-existant directories. |
| 15620 | if test "$hardcode_direct_F77" != no && |
| 15621 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 15622 | # have to relink, otherwise we might link with an installed library |
| 15623 | # when we should be linking with a yet-to-be-installed one |
| 15624 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 15625 | test "$hardcode_minus_L_F77" != no; then |
| 15626 | # Linking always hardcodes the temporary library directory. |
| 15627 | hardcode_action_F77=relink |
| 15628 | else |
| 15629 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 15630 | hardcode_action_F77=immediate |
| 15631 | fi |
| 15632 | else |
| 15633 | # We cannot hardcode anything, or else we can only hardcode existing |
| 15634 | # directories. |
| 15635 | hardcode_action_F77=unsupported |
| 15636 | fi |
| 15637 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 15638 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
| 15639 | |
| 15640 | if test "$hardcode_action_F77" = relink; then |
| 15641 | # Fast installation is not supported |
| 15642 | enable_fast_install=no |
| 15643 | elif test "$shlibpath_overrides_runpath" = yes || |
| 15644 | test "$enable_shared" = no; then |
| 15645 | # Fast installation is not necessary |
| 15646 | enable_fast_install=needless |
| 15647 | fi |
| 15648 | |
| 15649 | striplib= |
| 15650 | old_striplib= |
| 15651 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 15652 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 15653 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 15654 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 15655 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 15656 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15657 | echo "${ECHO_T}yes" >&6 |
| 15658 | else |
| 15659 | # FIXME - insert some real tests, host_os isn't really good enough |
| 15660 | case $host_os in |
| 15661 | darwin*) |
| 15662 | if test -n "$STRIP" ; then |
| 15663 | striplib="$STRIP -x" |
| 15664 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15665 | echo "${ECHO_T}yes" >&6 |
| 15666 | else |
| 15667 | echo "$as_me:$LINENO: result: no" >&5 |
| 15668 | echo "${ECHO_T}no" >&6 |
| 15669 | fi |
| 15670 | ;; |
| 15671 | *) |
| 15672 | echo "$as_me:$LINENO: result: no" >&5 |
| 15673 | echo "${ECHO_T}no" >&6 |
| 15674 | ;; |
| 15675 | esac |
| 15676 | fi |
| 15677 | |
| 15678 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15679 | |
| 15680 | # The else clause should only fire when bootstrapping the |
| 15681 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 15682 | # with your package, and you will get complaints that there are |
| 15683 | # no rules to generate ltmain.sh. |
| 15684 | if test -f "$ltmain"; then |
| 15685 | # See if we are running on zsh, and set the options which allow our commands through |
| 15686 | # without removal of \ escapes. |
| 15687 | if test -n "${ZSH_VERSION+set}" ; then |
| 15688 | setopt NO_GLOB_SUBST |
| 15689 | fi |
| 15690 | # Now quote all the things that may contain metacharacters while being |
| 15691 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 15692 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15693 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 15694 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15695 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 15696 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 15697 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 15698 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 15699 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 15700 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 15701 | old_postinstall_cmds old_postuninstall_cmds \ |
| 15702 | compiler_F77 \ |
| 15703 | CC_F77 \ |
| 15704 | LD_F77 \ |
| 15705 | lt_prog_compiler_wl_F77 \ |
| 15706 | lt_prog_compiler_pic_F77 \ |
| 15707 | lt_prog_compiler_static_F77 \ |
| 15708 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 15709 | export_dynamic_flag_spec_F77 \ |
| 15710 | thread_safe_flag_spec_F77 \ |
| 15711 | whole_archive_flag_spec_F77 \ |
| 15712 | enable_shared_with_static_runtimes_F77 \ |
| 15713 | old_archive_cmds_F77 \ |
| 15714 | old_archive_from_new_cmds_F77 \ |
| 15715 | predep_objects_F77 \ |
| 15716 | postdep_objects_F77 \ |
| 15717 | predeps_F77 \ |
| 15718 | postdeps_F77 \ |
| 15719 | compiler_lib_search_path_F77 \ |
| 15720 | archive_cmds_F77 \ |
| 15721 | archive_expsym_cmds_F77 \ |
| 15722 | postinstall_cmds_F77 \ |
| 15723 | postuninstall_cmds_F77 \ |
| 15724 | old_archive_from_expsyms_cmds_F77 \ |
| 15725 | allow_undefined_flag_F77 \ |
| 15726 | no_undefined_flag_F77 \ |
| 15727 | export_symbols_cmds_F77 \ |
| 15728 | hardcode_libdir_flag_spec_F77 \ |
| 15729 | hardcode_libdir_flag_spec_ld_F77 \ |
| 15730 | hardcode_libdir_separator_F77 \ |
| 15731 | hardcode_automatic_F77 \ |
| 15732 | module_cmds_F77 \ |
| 15733 | module_expsym_cmds_F77 \ |
| 15734 | lt_cv_prog_compiler_c_o_F77 \ |
| 15735 | exclude_expsyms_F77 \ |
| 15736 | include_expsyms_F77; do |
| 15737 | |
| 15738 | case $var in |
| 15739 | old_archive_cmds_F77 | \ |
| 15740 | old_archive_from_new_cmds_F77 | \ |
| 15741 | archive_cmds_F77 | \ |
| 15742 | archive_expsym_cmds_F77 | \ |
| 15743 | module_cmds_F77 | \ |
| 15744 | module_expsym_cmds_F77 | \ |
| 15745 | old_archive_from_expsyms_cmds_F77 | \ |
| 15746 | export_symbols_cmds_F77 | \ |
| 15747 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 15748 | postinstall_cmds | postuninstall_cmds | \ |
| 15749 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 15750 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 15751 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15752 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15753 | ;; |
| 15754 | *) |
| 15755 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 15756 | ;; |
| 15757 | esac |
| 15758 | done |
| 15759 | |
| 15760 | case $lt_echo in |
| 15761 | *'\$0 --fallback-echo"') |
| 15762 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 15763 | ;; |
| 15764 | esac |
| 15765 | |
| 15766 | cfgfile="$ofile" |
| 15767 | |
| 15768 | cat <<__EOF__ >> "$cfgfile" |
| 15769 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 15770 | |
| 15771 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 15772 | |
| 15773 | # Shell to use when invoking shell scripts. |
| 15774 | SHELL=$lt_SHELL |
| 15775 | |
| 15776 | # Whether or not to build shared libraries. |
| 15777 | build_libtool_libs=$enable_shared |
| 15778 | |
| 15779 | # Whether or not to build static libraries. |
| 15780 | build_old_libs=$enable_static |
| 15781 | |
| 15782 | # Whether or not to add -lc for building shared libraries. |
| 15783 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 15784 | |
| 15785 | # Whether or not to disallow shared libs when runtime libs are static |
| 15786 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 15787 | |
| 15788 | # Whether or not to optimize for fast installation. |
| 15789 | fast_install=$enable_fast_install |
| 15790 | |
| 15791 | # The host system. |
| 15792 | host_alias=$host_alias |
| 15793 | host=$host |
| 15794 | |
| 15795 | # An echo program that does not interpret backslashes. |
| 15796 | echo=$lt_echo |
| 15797 | |
| 15798 | # The archiver. |
| 15799 | AR=$lt_AR |
| 15800 | AR_FLAGS=$lt_AR_FLAGS |
| 15801 | |
| 15802 | # A C compiler. |
| 15803 | LTCC=$lt_LTCC |
| 15804 | |
| 15805 | # A language-specific compiler. |
| 15806 | CC=$lt_compiler_F77 |
| 15807 | |
| 15808 | # Is the compiler the GNU C compiler? |
| 15809 | with_gcc=$GCC_F77 |
| 15810 | |
| 15811 | # An ERE matcher. |
| 15812 | EGREP=$lt_EGREP |
| 15813 | |
| 15814 | # The linker used to build libraries. |
| 15815 | LD=$lt_LD_F77 |
| 15816 | |
| 15817 | # Whether we need hard or soft links. |
| 15818 | LN_S=$lt_LN_S |
| 15819 | |
| 15820 | # A BSD-compatible nm program. |
| 15821 | NM=$lt_NM |
| 15822 | |
| 15823 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15824 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15825 | |
| 15826 | # Used to examine libraries when file_magic_cmd begins "file" |
| 15827 | MAGIC_CMD=$MAGIC_CMD |
| 15828 | |
| 15829 | # Used on cygwin: DLL creation program. |
| 15830 | DLLTOOL="$DLLTOOL" |
| 15831 | |
| 15832 | # Used on cygwin: object dumper. |
| 15833 | OBJDUMP="$OBJDUMP" |
| 15834 | |
| 15835 | # Used on cygwin: assembler. |
| 15836 | AS="$AS" |
| 15837 | |
| 15838 | # The name of the directory that contains temporary libtool files. |
| 15839 | objdir=$objdir |
| 15840 | |
| 15841 | # How to create reloadable object files. |
| 15842 | reload_flag=$lt_reload_flag |
| 15843 | reload_cmds=$lt_reload_cmds |
| 15844 | |
| 15845 | # How to pass a linker flag through the compiler. |
| 15846 | wl=$lt_lt_prog_compiler_wl_F77 |
| 15847 | |
| 15848 | # Object file suffix (normally "o"). |
| 15849 | objext="$ac_objext" |
| 15850 | |
| 15851 | # Old archive suffix (normally "a"). |
| 15852 | libext="$libext" |
| 15853 | |
| 15854 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15855 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15856 | |
| 15857 | # Executable file suffix (normally ""). |
| 15858 | exeext="$exeext" |
| 15859 | |
| 15860 | # Additional compiler flags for building library objects. |
| 15861 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 15862 | pic_mode=$pic_mode |
| 15863 | |
| 15864 | # What is the maximum length of a command? |
| 15865 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 15866 | |
| 15867 | # Does compiler simultaneously support -c and -o options? |
| 15868 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 15869 | |
| 15870 | # Must we lock files when doing compilation ? |
| 15871 | need_locks=$lt_need_locks |
| 15872 | |
| 15873 | # Do we need the lib prefix for modules? |
| 15874 | need_lib_prefix=$need_lib_prefix |
| 15875 | |
| 15876 | # Do we need a version for libraries? |
| 15877 | need_version=$need_version |
| 15878 | |
| 15879 | # Whether dlopen is supported. |
| 15880 | dlopen_support=$enable_dlopen |
| 15881 | |
| 15882 | # Whether dlopen of programs is supported. |
| 15883 | dlopen_self=$enable_dlopen_self |
| 15884 | |
| 15885 | # Whether dlopen of statically linked programs is supported. |
| 15886 | dlopen_self_static=$enable_dlopen_self_static |
| 15887 | |
| 15888 | # Compiler flag to prevent dynamic linking. |
| 15889 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 15890 | |
| 15891 | # Compiler flag to turn off builtin functions. |
| 15892 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 15893 | |
| 15894 | # Compiler flag to allow reflexive dlopens. |
| 15895 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 15896 | |
| 15897 | # Compiler flag to generate shared objects directly from archives. |
| 15898 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 15899 | |
| 15900 | # Compiler flag to generate thread-safe objects. |
| 15901 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 15902 | |
| 15903 | # Library versioning type. |
| 15904 | version_type=$version_type |
| 15905 | |
| 15906 | # Format of library name prefix. |
| 15907 | libname_spec=$lt_libname_spec |
| 15908 | |
| 15909 | # List of archive names. First name is the real one, the rest are links. |
| 15910 | # The last name is the one that the linker finds with -lNAME. |
| 15911 | library_names_spec=$lt_library_names_spec |
| 15912 | |
| 15913 | # The coded name of the library, if different from the real name. |
| 15914 | soname_spec=$lt_soname_spec |
| 15915 | |
| 15916 | # Commands used to build and install an old-style archive. |
| 15917 | RANLIB=$lt_RANLIB |
| 15918 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 15919 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 15920 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 15921 | |
| 15922 | # Create an old-style archive from a shared archive. |
| 15923 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 15924 | |
| 15925 | # Create a temporary old-style archive to link instead of a shared archive. |
| 15926 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 15927 | |
| 15928 | # Commands used to build and install a shared archive. |
| 15929 | archive_cmds=$lt_archive_cmds_F77 |
| 15930 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 15931 | postinstall_cmds=$lt_postinstall_cmds |
| 15932 | postuninstall_cmds=$lt_postuninstall_cmds |
| 15933 | |
| 15934 | # Commands used to build a loadable module (assumed same as above if empty) |
| 15935 | module_cmds=$lt_module_cmds_F77 |
| 15936 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 15937 | |
| 15938 | # Commands to strip libraries. |
| 15939 | old_striplib=$lt_old_striplib |
| 15940 | striplib=$lt_striplib |
| 15941 | |
| 15942 | # Dependencies to place before the objects being linked to create a |
| 15943 | # shared library. |
| 15944 | predep_objects=$lt_predep_objects_F77 |
| 15945 | |
| 15946 | # Dependencies to place after the objects being linked to create a |
| 15947 | # shared library. |
| 15948 | postdep_objects=$lt_postdep_objects_F77 |
| 15949 | |
| 15950 | # Dependencies to place before the objects being linked to create a |
| 15951 | # shared library. |
| 15952 | predeps=$lt_predeps_F77 |
| 15953 | |
| 15954 | # Dependencies to place after the objects being linked to create a |
| 15955 | # shared library. |
| 15956 | postdeps=$lt_postdeps_F77 |
| 15957 | |
| 15958 | # The library search path used internally by the compiler when linking |
| 15959 | # a shared library. |
| 15960 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 15961 | |
| 15962 | # Method to check whether dependent libraries are shared objects. |
| 15963 | deplibs_check_method=$lt_deplibs_check_method |
| 15964 | |
| 15965 | # Command to use when deplibs_check_method == file_magic. |
| 15966 | file_magic_cmd=$lt_file_magic_cmd |
| 15967 | |
| 15968 | # Flag that allows shared libraries with undefined symbols to be built. |
| 15969 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 15970 | |
| 15971 | # Flag that forces no undefined symbols. |
| 15972 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 15973 | |
| 15974 | # Commands used to finish a libtool library installation in a directory. |
| 15975 | finish_cmds=$lt_finish_cmds |
| 15976 | |
| 15977 | # Same as above, but a single script fragment to be evaled but not shown. |
| 15978 | finish_eval=$lt_finish_eval |
| 15979 | |
| 15980 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 15981 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 15982 | |
| 15983 | # Transform the output of nm in a proper C declaration |
| 15984 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 15985 | |
| 15986 | # Transform the output of nm in a C name address pair |
| 15987 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 15988 | |
| 15989 | # This is the shared library runtime path variable. |
| 15990 | runpath_var=$runpath_var |
| 15991 | |
| 15992 | # This is the shared library path variable. |
| 15993 | shlibpath_var=$shlibpath_var |
| 15994 | |
| 15995 | # Is shlibpath searched before the hard-coded library search path? |
| 15996 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 15997 | |
| 15998 | # How to hardcode a shared library path into an executable. |
| 15999 | hardcode_action=$hardcode_action_F77 |
| 16000 | |
| 16001 | # Whether we should hardcode library paths into libraries. |
| 16002 | hardcode_into_libs=$hardcode_into_libs |
| 16003 | |
| 16004 | # Flag to hardcode \$libdir into a binary during linking. |
| 16005 | # This must work even if \$libdir does not exist. |
| 16006 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 16007 | |
| 16008 | # If ld is used when linking, flag to hardcode \$libdir into |
| 16009 | # a binary during linking. This must work even if \$libdir does |
| 16010 | # not exist. |
| 16011 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 16012 | |
| 16013 | # Whether we need a single -rpath flag with a separated argument. |
| 16014 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 16015 | |
| 16016 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 16017 | # resulting binary. |
| 16018 | hardcode_direct=$hardcode_direct_F77 |
| 16019 | |
| 16020 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 16021 | # resulting binary. |
| 16022 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 16023 | |
| 16024 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 16025 | # the resulting binary. |
| 16026 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 16027 | |
| 16028 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 16029 | # and all subsequent libraries and executables linked against it. |
| 16030 | hardcode_automatic=$hardcode_automatic_F77 |
| 16031 | |
| 16032 | # Variables whose values should be saved in libtool wrapper scripts and |
| 16033 | # restored at relink time. |
| 16034 | variables_saved_for_relink="$variables_saved_for_relink" |
| 16035 | |
| 16036 | # Whether libtool must link a program against all its dependency libraries. |
| 16037 | link_all_deplibs=$link_all_deplibs_F77 |
| 16038 | |
| 16039 | # Compile-time system search path for libraries |
| 16040 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 16041 | |
| 16042 | # Run-time system search path for libraries |
| 16043 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 16044 | |
| 16045 | # Fix the shell variable \$srcfile for the compiler. |
| 16046 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 16047 | |
| 16048 | # Set to yes if exported symbols are required. |
| 16049 | always_export_symbols=$always_export_symbols_F77 |
| 16050 | |
| 16051 | # The commands to list exported symbols. |
| 16052 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 16053 | |
| 16054 | # The commands to extract the exported symbol list from a shared archive. |
| 16055 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 16056 | |
| 16057 | # Symbols that should not be listed in the preloaded symbols. |
| 16058 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 16059 | |
| 16060 | # Symbols that must always be exported. |
| 16061 | include_expsyms=$lt_include_expsyms_F77 |
| 16062 | |
| 16063 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 16064 | |
| 16065 | __EOF__ |
| 16066 | |
| 16067 | |
| 16068 | else |
| 16069 | # If there is no Makefile yet, we rely on a make rule to execute |
| 16070 | # `config.status --recheck' to rerun these tests and create the |
| 16071 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16072 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 16073 | if test -f "$ltmain_in"; then |
| 16074 | test -f Makefile && make "$ltmain" |
| 16075 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16076 | fi |
| 16077 | |
| 16078 | |
| 16079 | ac_ext=c |
| 16080 | ac_cpp='$CPP $CPPFLAGS' |
| 16081 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16082 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16083 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16084 | |
| 16085 | CC="$lt_save_CC" |
| 16086 | |
| 16087 | else |
| 16088 | tagname="" |
| 16089 | fi |
| 16090 | ;; |
| 16091 | |
| 16092 | GCJ) |
| 16093 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16094 | ac_ext=c |
| 16095 | ac_cpp='$CPP $CPPFLAGS' |
| 16096 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16097 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16098 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16099 | |
| 16100 | |
| 16101 | # Source file extension for Java test sources. |
| 16102 | ac_ext=java |
| 16103 | |
| 16104 | # Object file extension for compiled Java test sources. |
| 16105 | objext=o |
| 16106 | objext_GCJ=$objext |
| 16107 | |
| 16108 | # Code to be used in simple compile tests |
| 16109 | lt_simple_compile_test_code="class foo {}\n" |
| 16110 | |
| 16111 | # Code to be used in simple link tests |
| 16112 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' |
| 16113 | |
| 16114 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 16115 | |
| 16116 | # If no C compiler was specified, use CC. |
| 16117 | LTCC=${LTCC-"$CC"} |
| 16118 | |
| 16119 | # Allow CC to be a program name with arguments. |
| 16120 | compiler=$CC |
| 16121 | |
| 16122 | |
| 16123 | # Allow CC to be a program name with arguments. |
| 16124 | lt_save_CC="$CC" |
| 16125 | CC=${GCJ-"gcj"} |
| 16126 | compiler=$CC |
| 16127 | compiler_GCJ=$CC |
| 16128 | |
| 16129 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 16130 | archive_cmds_need_lc_GCJ=no |
| 16131 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16132 | |
| 16133 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 16134 | |
| 16135 | if test "$GCC" = yes; then |
| 16136 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 16137 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16138 | |
| 16139 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16140 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 16141 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 16142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16143 | else |
| 16144 | lt_cv_prog_compiler_rtti_exceptions=no |
| 16145 | ac_outfile=conftest.$ac_objext |
| 16146 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16147 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 16148 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16149 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16150 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16151 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16152 | # The option is referenced via a variable to avoid confusing sed. |
| 16153 | lt_compile=`echo "$ac_compile" | $SED \ |
| 16154 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 16155 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16156 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16157 | (eval echo "\"\$as_me:16157: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16158 | (eval "$lt_compile" 2>conftest.err) |
| 16159 | ac_status=$? |
| 16160 | cat conftest.err >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16161 | echo "$as_me:16161: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16162 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 16163 | # The compiler can only warn and ignore the option if not recognized |
| 16164 | # So say no if there are warnings |
| 16165 | if test ! -s conftest.err; then |
| 16166 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 16167 | fi |
| 16168 | fi |
| 16169 | $rm conftest* |
| 16170 | |
| 16171 | fi |
| 16172 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 16173 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 16174 | |
| 16175 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 16176 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 16177 | else |
| 16178 | : |
| 16179 | fi |
| 16180 | |
| 16181 | fi |
| 16182 | |
| 16183 | lt_prog_compiler_wl_GCJ= |
| 16184 | lt_prog_compiler_pic_GCJ= |
| 16185 | lt_prog_compiler_static_GCJ= |
| 16186 | |
| 16187 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 16188 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 16189 | |
| 16190 | if test "$GCC" = yes; then |
| 16191 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16192 | lt_prog_compiler_static_GCJ='-static' |
| 16193 | |
| 16194 | case $host_os in |
| 16195 | aix*) |
| 16196 | # All AIX code is PIC. |
| 16197 | if test "$host_cpu" = ia64; then |
| 16198 | # AIX 5 now supports IA64 processor |
| 16199 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16200 | fi |
| 16201 | ;; |
| 16202 | |
| 16203 | amigaos*) |
| 16204 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 16205 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 16206 | # like `-m68040'. |
| 16207 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 16208 | ;; |
| 16209 | |
| 16210 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 16211 | # PIC is the default for these OSes. |
| 16212 | ;; |
| 16213 | |
| 16214 | mingw* | pw32* | os2*) |
| 16215 | # This hack is so that the source file can tell whether it is being |
| 16216 | # built for inclusion in a dll (and should export symbols for example). |
| 16217 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 16218 | ;; |
| 16219 | |
| 16220 | darwin* | rhapsody*) |
| 16221 | # PIC is the default on this platform |
| 16222 | # Common symbols not allowed in MH_DYLIB files |
| 16223 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 16224 | ;; |
| 16225 | |
| 16226 | msdosdjgpp*) |
| 16227 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 16228 | # on systems that don't support them. |
| 16229 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16230 | enable_shared=no |
| 16231 | ;; |
| 16232 | |
| 16233 | sysv4*MP*) |
| 16234 | if test -d /usr/nec; then |
| 16235 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 16236 | fi |
| 16237 | ;; |
| 16238 | |
| 16239 | hpux*) |
| 16240 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 16241 | # not for PA HP-UX. |
| 16242 | case "$host_cpu" in |
| 16243 | hppa*64*|ia64*) |
| 16244 | # +Z the default |
| 16245 | ;; |
| 16246 | *) |
| 16247 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 16248 | ;; |
| 16249 | esac |
| 16250 | ;; |
| 16251 | |
| 16252 | *) |
| 16253 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 16254 | ;; |
| 16255 | esac |
| 16256 | else |
| 16257 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 16258 | case $host_os in |
| 16259 | aix*) |
| 16260 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16261 | if test "$host_cpu" = ia64; then |
| 16262 | # AIX 5 now supports IA64 processor |
| 16263 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16264 | else |
| 16265 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 16266 | fi |
| 16267 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16268 | darwin*) |
| 16269 | # PIC is the default on this platform |
| 16270 | # Common symbols not allowed in MH_DYLIB files |
| 16271 | case "$cc_basename" in |
| 16272 | xlc*) |
| 16273 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 16274 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16275 | ;; |
| 16276 | esac |
| 16277 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16278 | |
| 16279 | mingw* | pw32* | os2*) |
| 16280 | # This hack is so that the source file can tell whether it is being |
| 16281 | # built for inclusion in a dll (and should export symbols for example). |
| 16282 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 16283 | ;; |
| 16284 | |
| 16285 | hpux9* | hpux10* | hpux11*) |
| 16286 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16287 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 16288 | # not for PA HP-UX. |
| 16289 | case "$host_cpu" in |
| 16290 | hppa*64*|ia64*) |
| 16291 | # +Z the default |
| 16292 | ;; |
| 16293 | *) |
| 16294 | lt_prog_compiler_pic_GCJ='+Z' |
| 16295 | ;; |
| 16296 | esac |
| 16297 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 16298 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 16299 | ;; |
| 16300 | |
| 16301 | irix5* | irix6* | nonstopux*) |
| 16302 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16303 | # PIC (with -KPIC) is the default. |
| 16304 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16305 | ;; |
| 16306 | |
| 16307 | newsos6) |
| 16308 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16309 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16310 | ;; |
| 16311 | |
| 16312 | linux*) |
| 16313 | case $CC in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16314 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16315 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16316 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16317 | lt_prog_compiler_static_GCJ='-static' |
| 16318 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16319 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16320 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16321 | # All Alpha code is PIC. |
| 16322 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16323 | ;; |
| 16324 | esac |
| 16325 | ;; |
| 16326 | |
| 16327 | osf3* | osf4* | osf5*) |
| 16328 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16329 | # All OSF/1 code is PIC. |
| 16330 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16331 | ;; |
| 16332 | |
| 16333 | sco3.2v5*) |
| 16334 | lt_prog_compiler_pic_GCJ='-Kpic' |
| 16335 | lt_prog_compiler_static_GCJ='-dn' |
| 16336 | ;; |
| 16337 | |
| 16338 | solaris*) |
| 16339 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16340 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16341 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16342 | ;; |
| 16343 | |
| 16344 | sunos4*) |
| 16345 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 16346 | lt_prog_compiler_pic_GCJ='-PIC' |
| 16347 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16348 | ;; |
| 16349 | |
| 16350 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 16351 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16352 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16353 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16354 | ;; |
| 16355 | |
| 16356 | sysv4*MP*) |
| 16357 | if test -d /usr/nec ;then |
| 16358 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 16359 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16360 | fi |
| 16361 | ;; |
| 16362 | |
| 16363 | uts4*) |
| 16364 | lt_prog_compiler_pic_GCJ='-pic' |
| 16365 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16366 | ;; |
| 16367 | |
| 16368 | *) |
| 16369 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16370 | ;; |
| 16371 | esac |
| 16372 | fi |
| 16373 | |
| 16374 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 16375 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
| 16376 | |
| 16377 | # |
| 16378 | # Check to make sure the PIC flag actually works. |
| 16379 | # |
| 16380 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16381 | |
| 16382 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16383 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
| 16384 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 16385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16386 | else |
| 16387 | lt_prog_compiler_pic_works_GCJ=no |
| 16388 | ac_outfile=conftest.$ac_objext |
| 16389 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16390 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 16391 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16392 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16393 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16394 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16395 | # The option is referenced via a variable to avoid confusing sed. |
| 16396 | lt_compile=`echo "$ac_compile" | $SED \ |
| 16397 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 16398 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16399 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16400 | (eval echo "\"\$as_me:16400: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16401 | (eval "$lt_compile" 2>conftest.err) |
| 16402 | ac_status=$? |
| 16403 | cat conftest.err >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16404 | echo "$as_me:16404: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16405 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 16406 | # The compiler can only warn and ignore the option if not recognized |
| 16407 | # So say no if there are warnings |
| 16408 | if test ! -s conftest.err; then |
| 16409 | lt_prog_compiler_pic_works_GCJ=yes |
| 16410 | fi |
| 16411 | fi |
| 16412 | $rm conftest* |
| 16413 | |
| 16414 | fi |
| 16415 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 16416 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
| 16417 | |
| 16418 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 16419 | case $lt_prog_compiler_pic_GCJ in |
| 16420 | "" | " "*) ;; |
| 16421 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 16422 | esac |
| 16423 | else |
| 16424 | lt_prog_compiler_pic_GCJ= |
| 16425 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16426 | fi |
| 16427 | |
| 16428 | fi |
| 16429 | case "$host_os" in |
| 16430 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 16431 | *djgpp*) |
| 16432 | lt_prog_compiler_pic_GCJ= |
| 16433 | ;; |
| 16434 | *) |
| 16435 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 16436 | ;; |
| 16437 | esac |
| 16438 | |
| 16439 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 16440 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 16441 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 16442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16443 | else |
| 16444 | lt_cv_prog_compiler_c_o_GCJ=no |
| 16445 | $rm -r conftest 2>/dev/null |
| 16446 | mkdir conftest |
| 16447 | cd conftest |
| 16448 | mkdir out |
| 16449 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16450 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16451 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 16452 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16453 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16454 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16455 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16456 | lt_compile=`echo "$ac_compile" | $SED \ |
| 16457 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 16458 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16459 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16460 | (eval echo "\"\$as_me:16460: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16461 | (eval "$lt_compile" 2>out/conftest.err) |
| 16462 | ac_status=$? |
| 16463 | cat out/conftest.err >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16464 | echo "$as_me:16464: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16465 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 16466 | then |
| 16467 | # The compiler can only warn and ignore the option if not recognized |
| 16468 | # So say no if there are warnings |
| 16469 | if test ! -s out/conftest.err; then |
| 16470 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 16471 | fi |
| 16472 | fi |
| 16473 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16474 | $rm conftest* |
| 16475 | # SGI C++ compiler will create directory out/ii_files/ for |
| 16476 | # template instantiation |
| 16477 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 16478 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16479 | cd .. |
| 16480 | rmdir conftest |
| 16481 | $rm conftest* |
| 16482 | |
| 16483 | fi |
| 16484 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 16485 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
| 16486 | |
| 16487 | |
| 16488 | hard_links="nottested" |
| 16489 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 16490 | # do not overwrite the value of need_locks provided by the user |
| 16491 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 16492 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 16493 | hard_links=yes |
| 16494 | $rm conftest* |
| 16495 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 16496 | touch conftest.a |
| 16497 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 16498 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 16499 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 16500 | echo "${ECHO_T}$hard_links" >&6 |
| 16501 | if test "$hard_links" = no; then |
| 16502 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 16503 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 16504 | need_locks=warn |
| 16505 | fi |
| 16506 | else |
| 16507 | need_locks=no |
| 16508 | fi |
| 16509 | |
| 16510 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 16511 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 16512 | |
| 16513 | runpath_var= |
| 16514 | allow_undefined_flag_GCJ= |
| 16515 | enable_shared_with_static_runtimes_GCJ=no |
| 16516 | archive_cmds_GCJ= |
| 16517 | archive_expsym_cmds_GCJ= |
| 16518 | old_archive_From_new_cmds_GCJ= |
| 16519 | old_archive_from_expsyms_cmds_GCJ= |
| 16520 | export_dynamic_flag_spec_GCJ= |
| 16521 | whole_archive_flag_spec_GCJ= |
| 16522 | thread_safe_flag_spec_GCJ= |
| 16523 | hardcode_libdir_flag_spec_GCJ= |
| 16524 | hardcode_libdir_flag_spec_ld_GCJ= |
| 16525 | hardcode_libdir_separator_GCJ= |
| 16526 | hardcode_direct_GCJ=no |
| 16527 | hardcode_minus_L_GCJ=no |
| 16528 | hardcode_shlibpath_var_GCJ=unsupported |
| 16529 | link_all_deplibs_GCJ=unknown |
| 16530 | hardcode_automatic_GCJ=no |
| 16531 | module_cmds_GCJ= |
| 16532 | module_expsym_cmds_GCJ= |
| 16533 | always_export_symbols_GCJ=no |
| 16534 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 16535 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 16536 | # included in the symbol list |
| 16537 | include_expsyms_GCJ= |
| 16538 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 16539 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 16540 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 16541 | # as well as any symbol that contains `d'. |
| 16542 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 16543 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 16544 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 16545 | # the symbol is explicitly referenced. Since portable code cannot |
| 16546 | # rely on this symbol name, it's probably fine to never include it in |
| 16547 | # preloaded symbol tables. |
| 16548 | extract_expsyms_cmds= |
| 16549 | |
| 16550 | case $host_os in |
| 16551 | cygwin* | mingw* | pw32*) |
| 16552 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 16553 | # When not using gcc, we currently assume that we are using |
| 16554 | # Microsoft Visual C++. |
| 16555 | if test "$GCC" != yes; then |
| 16556 | with_gnu_ld=no |
| 16557 | fi |
| 16558 | ;; |
| 16559 | openbsd*) |
| 16560 | with_gnu_ld=no |
| 16561 | ;; |
| 16562 | esac |
| 16563 | |
| 16564 | ld_shlibs_GCJ=yes |
| 16565 | if test "$with_gnu_ld" = yes; then |
| 16566 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 16567 | wlarc='${wl}' |
| 16568 | |
| 16569 | # See if GNU ld supports shared libraries. |
| 16570 | case $host_os in |
| 16571 | aix3* | aix4* | aix5*) |
| 16572 | # On AIX/PPC, the GNU linker is very broken |
| 16573 | if test "$host_cpu" != ia64; then |
| 16574 | ld_shlibs_GCJ=no |
| 16575 | cat <<EOF 1>&2 |
| 16576 | |
| 16577 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 16578 | *** to be unable to reliably create shared libraries on AIX. |
| 16579 | *** Therefore, libtool is disabling shared libraries support. If you |
| 16580 | *** really care for shared libraries, you may want to modify your PATH |
| 16581 | *** so that a non-GNU linker is found, and then restart. |
| 16582 | |
| 16583 | EOF |
| 16584 | fi |
| 16585 | ;; |
| 16586 | |
| 16587 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16588 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16589 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16590 | hardcode_minus_L_GCJ=yes |
| 16591 | |
| 16592 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 16593 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 16594 | # to version 4, is to share data among multiple programs linked |
| 16595 | # with the same dynamic library. Since this doesn't match the |
| 16596 | # behavior of shared libraries on other platforms, we can't use |
| 16597 | # them. |
| 16598 | ld_shlibs_GCJ=no |
| 16599 | ;; |
| 16600 | |
| 16601 | beos*) |
| 16602 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 16603 | allow_undefined_flag_GCJ=unsupported |
| 16604 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 16605 | # support --undefined. This deserves some investigation. FIXME |
| 16606 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16607 | else |
| 16608 | ld_shlibs_GCJ=no |
| 16609 | fi |
| 16610 | ;; |
| 16611 | |
| 16612 | cygwin* | mingw* | pw32*) |
| 16613 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 16614 | # as there is no search path for DLLs. |
| 16615 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16616 | allow_undefined_flag_GCJ=unsupported |
| 16617 | always_export_symbols_GCJ=no |
| 16618 | enable_shared_with_static_runtimes_GCJ=yes |
| 16619 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 16620 | |
| 16621 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 16622 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 16623 | # If the export-symbols file already is a .def file (1st line |
| 16624 | # is EXPORTS), use it as is; otherwise, prepend... |
| 16625 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 16626 | cp $export_symbols $output_objdir/$soname.def; |
| 16627 | else |
| 16628 | echo EXPORTS > $output_objdir/$soname.def; |
| 16629 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16630 | fi~ |
| 16631 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16632 | else |
| 16633 | ld_shlibs=no |
| 16634 | fi |
| 16635 | ;; |
| 16636 | |
| 16637 | netbsd*) |
| 16638 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 16639 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 16640 | wlarc= |
| 16641 | else |
| 16642 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16643 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 16644 | fi |
| 16645 | ;; |
| 16646 | |
| 16647 | solaris* | sysv5*) |
| 16648 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 16649 | ld_shlibs_GCJ=no |
| 16650 | cat <<EOF 1>&2 |
| 16651 | |
| 16652 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 16653 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 16654 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 16655 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 16656 | *** your PATH or compiler configuration so that the native linker is |
| 16657 | *** used, and then restart. |
| 16658 | |
| 16659 | EOF |
| 16660 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 16661 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16662 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 16663 | else |
| 16664 | ld_shlibs_GCJ=no |
| 16665 | fi |
| 16666 | ;; |
| 16667 | |
| 16668 | sunos4*) |
| 16669 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 16670 | wlarc= |
| 16671 | hardcode_direct_GCJ=yes |
| 16672 | hardcode_shlibpath_var_GCJ=no |
| 16673 | ;; |
| 16674 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16675 | linux*) |
| 16676 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 16677 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16678 | archive_cmds_GCJ="$tmp_archive_cmds" |
| 16679 | supports_anon_versioning=no |
| 16680 | case `$LD -v 2>/dev/null` in |
| 16681 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 16682 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 16683 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 16684 | *\ 2.11.*) ;; # other 2.11 versions |
| 16685 | *) supports_anon_versioning=yes ;; |
| 16686 | esac |
| 16687 | if test $supports_anon_versioning = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16688 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 16689 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 16690 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16691 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 16692 | else |
| 16693 | archive_expsym_cmds_GCJ="$tmp_archive_cmds" |
| 16694 | fi |
| 16695 | else |
| 16696 | ld_shlibs_GCJ=no |
| 16697 | fi |
| 16698 | ;; |
| 16699 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16700 | *) |
| 16701 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 16702 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16703 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 16704 | else |
| 16705 | ld_shlibs_GCJ=no |
| 16706 | fi |
| 16707 | ;; |
| 16708 | esac |
| 16709 | |
| 16710 | if test "$ld_shlibs_GCJ" = yes; then |
| 16711 | runpath_var=LD_RUN_PATH |
| 16712 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 16713 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 16714 | # ancient GNU ld didn't support --whole-archive et. al. |
| 16715 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 16716 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 16717 | else |
| 16718 | whole_archive_flag_spec_GCJ= |
| 16719 | fi |
| 16720 | fi |
| 16721 | else |
| 16722 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 16723 | case $host_os in |
| 16724 | aix3*) |
| 16725 | allow_undefined_flag_GCJ=unsupported |
| 16726 | always_export_symbols_GCJ=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16727 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16728 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 16729 | # are no directories specified by -L. |
| 16730 | hardcode_minus_L_GCJ=yes |
| 16731 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 16732 | # Neither direct hardcoding nor static linking is supported with a |
| 16733 | # broken collect2. |
| 16734 | hardcode_direct_GCJ=unsupported |
| 16735 | fi |
| 16736 | ;; |
| 16737 | |
| 16738 | aix4* | aix5*) |
| 16739 | if test "$host_cpu" = ia64; then |
| 16740 | # On IA64, the linker does run time linking by default, so we don't |
| 16741 | # have to do anything special. |
| 16742 | aix_use_runtimelinking=no |
| 16743 | exp_sym_flag='-Bexport' |
| 16744 | no_entry_flag="" |
| 16745 | else |
| 16746 | # If we're using GNU nm, then we don't want the "-C" option. |
| 16747 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 16748 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 16749 | 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' |
| 16750 | else |
| 16751 | 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' |
| 16752 | fi |
| 16753 | aix_use_runtimelinking=no |
| 16754 | |
| 16755 | # Test if we are trying to use run time linking or normal |
| 16756 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 16757 | # need to do runtime linking. |
| 16758 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 16759 | for ld_flag in $LDFLAGS; do |
| 16760 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 16761 | aix_use_runtimelinking=yes |
| 16762 | break |
| 16763 | fi |
| 16764 | done |
| 16765 | esac |
| 16766 | |
| 16767 | exp_sym_flag='-bexport' |
| 16768 | no_entry_flag='-bnoentry' |
| 16769 | fi |
| 16770 | |
| 16771 | # When large executables or shared objects are built, AIX ld can |
| 16772 | # have problems creating the table of contents. If linking a library |
| 16773 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 16774 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 16775 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 16776 | |
| 16777 | archive_cmds_GCJ='' |
| 16778 | hardcode_direct_GCJ=yes |
| 16779 | hardcode_libdir_separator_GCJ=':' |
| 16780 | link_all_deplibs_GCJ=yes |
| 16781 | |
| 16782 | if test "$GCC" = yes; then |
| 16783 | case $host_os in aix4.012|aix4.012.*) |
| 16784 | # We only want to do this on AIX 4.2 and lower, the check |
| 16785 | # below for broken collect2 doesn't work under 4.3+ |
| 16786 | collect2name=`${CC} -print-prog-name=collect2` |
| 16787 | if test -f "$collect2name" && \ |
| 16788 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 16789 | then |
| 16790 | # We have reworked collect2 |
| 16791 | hardcode_direct_GCJ=yes |
| 16792 | else |
| 16793 | # We have old collect2 |
| 16794 | hardcode_direct_GCJ=unsupported |
| 16795 | # It fails to find uninstalled libraries when the uninstalled |
| 16796 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 16797 | # to unsupported forces relinking |
| 16798 | hardcode_minus_L_GCJ=yes |
| 16799 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16800 | hardcode_libdir_separator_GCJ= |
| 16801 | fi |
| 16802 | esac |
| 16803 | shared_flag='-shared' |
| 16804 | else |
| 16805 | # not using gcc |
| 16806 | if test "$host_cpu" = ia64; then |
| 16807 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 16808 | # chokes on -Wl,-G. The following line is correct: |
| 16809 | shared_flag='-G' |
| 16810 | else |
| 16811 | if test "$aix_use_runtimelinking" = yes; then |
| 16812 | shared_flag='${wl}-G' |
| 16813 | else |
| 16814 | shared_flag='${wl}-bM:SRE' |
| 16815 | fi |
| 16816 | fi |
| 16817 | fi |
| 16818 | |
| 16819 | # It seems that -bexpall does not export symbols beginning with |
| 16820 | # underscore (_), so it is better to generate a list of symbols to export. |
| 16821 | always_export_symbols_GCJ=yes |
| 16822 | if test "$aix_use_runtimelinking" = yes; then |
| 16823 | # Warning - without using the other runtime loading flags (-brtl), |
| 16824 | # -berok will link without error, but may produce a broken library. |
| 16825 | allow_undefined_flag_GCJ='-berok' |
| 16826 | # Determine the default libpath from the value encoded in an empty executable. |
| 16827 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16828 | /* confdefs.h. */ |
| 16829 | _ACEOF |
| 16830 | cat confdefs.h >>conftest.$ac_ext |
| 16831 | cat >>conftest.$ac_ext <<_ACEOF |
| 16832 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16833 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16834 | int |
| 16835 | main () |
| 16836 | { |
| 16837 | |
| 16838 | ; |
| 16839 | return 0; |
| 16840 | } |
| 16841 | _ACEOF |
| 16842 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16844 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16845 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16846 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16847 | rm -f conftest.er1 |
| 16848 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16850 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16851 | { ac_try='test -z "$ac_c_werror_flag" |
| 16852 | || test ! -s conftest.err' |
| 16853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16854 | (eval $ac_try) 2>&5 |
| 16855 | ac_status=$? |
| 16856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16857 | (exit $ac_status); }; } && |
| 16858 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16860 | (eval $ac_try) 2>&5 |
| 16861 | ac_status=$? |
| 16862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16863 | (exit $ac_status); }; }; then |
| 16864 | |
| 16865 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 16866 | }'` |
| 16867 | # Check for a 64-bit object if we didn't find anything. |
| 16868 | 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; } |
| 16869 | }'`; fi |
| 16870 | else |
| 16871 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16873 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16874 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16875 | rm -f conftest.err conftest.$ac_objext \ |
| 16876 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16877 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 16878 | |
| 16879 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 16880 | 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" |
| 16881 | else |
| 16882 | if test "$host_cpu" = ia64; then |
| 16883 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 16884 | allow_undefined_flag_GCJ="-z nodefs" |
| 16885 | 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" |
| 16886 | else |
| 16887 | # Determine the default libpath from the value encoded in an empty executable. |
| 16888 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16889 | /* confdefs.h. */ |
| 16890 | _ACEOF |
| 16891 | cat confdefs.h >>conftest.$ac_ext |
| 16892 | cat >>conftest.$ac_ext <<_ACEOF |
| 16893 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16894 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16895 | int |
| 16896 | main () |
| 16897 | { |
| 16898 | |
| 16899 | ; |
| 16900 | return 0; |
| 16901 | } |
| 16902 | _ACEOF |
| 16903 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16905 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16906 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16908 | rm -f conftest.er1 |
| 16909 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16911 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16912 | { ac_try='test -z "$ac_c_werror_flag" |
| 16913 | || test ! -s conftest.err' |
| 16914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16915 | (eval $ac_try) 2>&5 |
| 16916 | ac_status=$? |
| 16917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16918 | (exit $ac_status); }; } && |
| 16919 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16921 | (eval $ac_try) 2>&5 |
| 16922 | ac_status=$? |
| 16923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16924 | (exit $ac_status); }; }; then |
| 16925 | |
| 16926 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 16927 | }'` |
| 16928 | # Check for a 64-bit object if we didn't find anything. |
| 16929 | 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; } |
| 16930 | }'`; fi |
| 16931 | else |
| 16932 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16933 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16934 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16935 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16936 | rm -f conftest.err conftest.$ac_objext \ |
| 16937 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16938 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 16939 | |
| 16940 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 16941 | # Warning - without using the other run time loading flags, |
| 16942 | # -berok will link without error, but may produce a broken library. |
| 16943 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 16944 | allow_undefined_flag_GCJ=' ${wl}-berok' |
| 16945 | # -bexpall does not export symbols beginning with underscore (_) |
| 16946 | always_export_symbols_GCJ=yes |
| 16947 | # Exported symbols can be pulled into shared objects from archives |
| 16948 | whole_archive_flag_spec_GCJ=' ' |
| 16949 | archive_cmds_need_lc_GCJ=yes |
| 16950 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16951 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16952 | fi |
| 16953 | fi |
| 16954 | ;; |
| 16955 | |
| 16956 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16957 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16958 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16959 | hardcode_minus_L_GCJ=yes |
| 16960 | # see comment about different semantics on the GNU ld section |
| 16961 | ld_shlibs_GCJ=no |
| 16962 | ;; |
| 16963 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16964 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16965 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 16966 | ;; |
| 16967 | |
| 16968 | cygwin* | mingw* | pw32*) |
| 16969 | # When not using gcc, we currently assume that we are using |
| 16970 | # Microsoft Visual C++. |
| 16971 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 16972 | # no search path for DLLs. |
| 16973 | hardcode_libdir_flag_spec_GCJ=' ' |
| 16974 | allow_undefined_flag_GCJ=unsupported |
| 16975 | # Tell ltmain to make .lib files, not .a files. |
| 16976 | libext=lib |
| 16977 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16978 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16979 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16980 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16981 | # The linker will automatically build a .lib file if we build a DLL. |
| 16982 | old_archive_From_new_cmds_GCJ='true' |
| 16983 | # FIXME: Should let the user specify the lib program. |
| 16984 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 16985 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 16986 | enable_shared_with_static_runtimes_GCJ=yes |
| 16987 | ;; |
| 16988 | |
| 16989 | darwin* | rhapsody*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16990 | case "$host_os" in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16991 | rhapsody* | darwin1.[012]) |
| 16992 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 16993 | ;; |
| 16994 | *) # Darwin 1.3 on |
| 16995 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 16996 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 16997 | else |
| 16998 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 16999 | 10.[012]) |
| 17000 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 17001 | ;; |
| 17002 | 10.*) |
| 17003 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 17004 | ;; |
| 17005 | esac |
| 17006 | fi |
| 17007 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17008 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17009 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17010 | hardcode_direct_GCJ=no |
| 17011 | hardcode_automatic_GCJ=yes |
| 17012 | hardcode_shlibpath_var_GCJ=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17013 | whole_archive_flag_spec_GCJ='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17014 | link_all_deplibs_GCJ=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17015 | if test "$GCC" = yes ; then |
| 17016 | output_verbose_link_cmd='echo' |
| 17017 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 17018 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 17019 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17020 | archive_expsym_cmds_GCJ='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}' |
| 17021 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17022 | else |
| 17023 | case "$cc_basename" in |
| 17024 | xlc*) |
| 17025 | output_verbose_link_cmd='echo' |
| 17026 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 17027 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 17028 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17029 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 17030 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17031 | ;; |
| 17032 | *) |
| 17033 | ld_shlibs_GCJ=no |
| 17034 | ;; |
| 17035 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17036 | fi |
| 17037 | ;; |
| 17038 | |
| 17039 | dgux*) |
| 17040 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17041 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17042 | hardcode_shlibpath_var_GCJ=no |
| 17043 | ;; |
| 17044 | |
| 17045 | freebsd1*) |
| 17046 | ld_shlibs_GCJ=no |
| 17047 | ;; |
| 17048 | |
| 17049 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 17050 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 17051 | # does not break anything, and helps significantly (at the cost of a little |
| 17052 | # extra space). |
| 17053 | freebsd2.2*) |
| 17054 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 17055 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17056 | hardcode_direct_GCJ=yes |
| 17057 | hardcode_shlibpath_var_GCJ=no |
| 17058 | ;; |
| 17059 | |
| 17060 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 17061 | freebsd2*) |
| 17062 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 17063 | hardcode_direct_GCJ=yes |
| 17064 | hardcode_minus_L_GCJ=yes |
| 17065 | hardcode_shlibpath_var_GCJ=no |
| 17066 | ;; |
| 17067 | |
| 17068 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17069 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17070 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 17071 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17072 | hardcode_direct_GCJ=yes |
| 17073 | hardcode_shlibpath_var_GCJ=no |
| 17074 | ;; |
| 17075 | |
| 17076 | hpux9*) |
| 17077 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17078 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17079 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17080 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17081 | fi |
| 17082 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17083 | hardcode_libdir_separator_GCJ=: |
| 17084 | hardcode_direct_GCJ=yes |
| 17085 | |
| 17086 | # hardcode_minus_L: Not really in the search PATH, |
| 17087 | # but as the default location of the library. |
| 17088 | hardcode_minus_L_GCJ=yes |
| 17089 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17090 | ;; |
| 17091 | |
| 17092 | hpux10* | hpux11*) |
| 17093 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 17094 | case "$host_cpu" in |
| 17095 | hppa*64*|ia64*) |
| 17096 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17097 | ;; |
| 17098 | *) |
| 17099 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 17100 | ;; |
| 17101 | esac |
| 17102 | else |
| 17103 | case "$host_cpu" in |
| 17104 | hppa*64*|ia64*) |
| 17105 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17106 | ;; |
| 17107 | *) |
| 17108 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 17109 | ;; |
| 17110 | esac |
| 17111 | fi |
| 17112 | if test "$with_gnu_ld" = no; then |
| 17113 | case "$host_cpu" in |
| 17114 | hppa*64*) |
| 17115 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17116 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 17117 | hardcode_libdir_separator_GCJ=: |
| 17118 | hardcode_direct_GCJ=no |
| 17119 | hardcode_shlibpath_var_GCJ=no |
| 17120 | ;; |
| 17121 | ia64*) |
| 17122 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17123 | hardcode_direct_GCJ=no |
| 17124 | hardcode_shlibpath_var_GCJ=no |
| 17125 | |
| 17126 | # hardcode_minus_L: Not really in the search PATH, |
| 17127 | # but as the default location of the library. |
| 17128 | hardcode_minus_L_GCJ=yes |
| 17129 | ;; |
| 17130 | *) |
| 17131 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17132 | hardcode_libdir_separator_GCJ=: |
| 17133 | hardcode_direct_GCJ=yes |
| 17134 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17135 | |
| 17136 | # hardcode_minus_L: Not really in the search PATH, |
| 17137 | # but as the default location of the library. |
| 17138 | hardcode_minus_L_GCJ=yes |
| 17139 | ;; |
| 17140 | esac |
| 17141 | fi |
| 17142 | ;; |
| 17143 | |
| 17144 | irix5* | irix6* | nonstopux*) |
| 17145 | if test "$GCC" = yes; then |
| 17146 | 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' |
| 17147 | else |
| 17148 | 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' |
| 17149 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 17150 | fi |
| 17151 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17152 | hardcode_libdir_separator_GCJ=: |
| 17153 | link_all_deplibs_GCJ=yes |
| 17154 | ;; |
| 17155 | |
| 17156 | netbsd*) |
| 17157 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 17158 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 17159 | else |
| 17160 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 17161 | fi |
| 17162 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17163 | hardcode_direct_GCJ=yes |
| 17164 | hardcode_shlibpath_var_GCJ=no |
| 17165 | ;; |
| 17166 | |
| 17167 | newsos6) |
| 17168 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17169 | hardcode_direct_GCJ=yes |
| 17170 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17171 | hardcode_libdir_separator_GCJ=: |
| 17172 | hardcode_shlibpath_var_GCJ=no |
| 17173 | ;; |
| 17174 | |
| 17175 | openbsd*) |
| 17176 | hardcode_direct_GCJ=yes |
| 17177 | hardcode_shlibpath_var_GCJ=no |
| 17178 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17179 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17180 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17181 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 17182 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17183 | else |
| 17184 | case $host_os in |
| 17185 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 17186 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 17187 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17188 | ;; |
| 17189 | *) |
| 17190 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 17191 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 17192 | ;; |
| 17193 | esac |
| 17194 | fi |
| 17195 | ;; |
| 17196 | |
| 17197 | os2*) |
| 17198 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17199 | hardcode_minus_L_GCJ=yes |
| 17200 | allow_undefined_flag_GCJ=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17201 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17202 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 17203 | ;; |
| 17204 | |
| 17205 | osf3*) |
| 17206 | if test "$GCC" = yes; then |
| 17207 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 17208 | 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' |
| 17209 | else |
| 17210 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 17211 | 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' |
| 17212 | fi |
| 17213 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17214 | hardcode_libdir_separator_GCJ=: |
| 17215 | ;; |
| 17216 | |
| 17217 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 17218 | if test "$GCC" = yes; then |
| 17219 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 17220 | 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' |
| 17221 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17222 | else |
| 17223 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 17224 | 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' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17225 | 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~ |
| 17226 | $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' |
| 17227 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17228 | # Both c and cxx compiler support -rpath directly |
| 17229 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 17230 | fi |
| 17231 | hardcode_libdir_separator_GCJ=: |
| 17232 | ;; |
| 17233 | |
| 17234 | sco3.2v5*) |
| 17235 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17236 | hardcode_shlibpath_var_GCJ=no |
| 17237 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
| 17238 | runpath_var=LD_RUN_PATH |
| 17239 | hardcode_runpath_var=yes |
| 17240 | ;; |
| 17241 | |
| 17242 | solaris*) |
| 17243 | no_undefined_flag_GCJ=' -z text' |
| 17244 | if test "$GCC" = yes; then |
| 17245 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17246 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 17247 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17248 | else |
| 17249 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17250 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 17251 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17252 | fi |
| 17253 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17254 | hardcode_shlibpath_var_GCJ=no |
| 17255 | case $host_os in |
| 17256 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 17257 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 17258 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 17259 | esac |
| 17260 | link_all_deplibs_GCJ=yes |
| 17261 | ;; |
| 17262 | |
| 17263 | sunos4*) |
| 17264 | if test "x$host_vendor" = xsequent; then |
| 17265 | # Use $CC to link under sequent, because it throws in some extra .o |
| 17266 | # files that make .init and .fini sections work. |
| 17267 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17268 | else |
| 17269 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 17270 | fi |
| 17271 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17272 | hardcode_direct_GCJ=yes |
| 17273 | hardcode_minus_L_GCJ=yes |
| 17274 | hardcode_shlibpath_var_GCJ=no |
| 17275 | ;; |
| 17276 | |
| 17277 | sysv4) |
| 17278 | case $host_vendor in |
| 17279 | sni) |
| 17280 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17281 | hardcode_direct_GCJ=yes # is this really true??? |
| 17282 | ;; |
| 17283 | siemens) |
| 17284 | ## LD is ld it makes a PLAMLIB |
| 17285 | ## CC just makes a GrossModule. |
| 17286 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 17287 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 17288 | hardcode_direct_GCJ=no |
| 17289 | ;; |
| 17290 | motorola) |
| 17291 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17292 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 17293 | ;; |
| 17294 | esac |
| 17295 | runpath_var='LD_RUN_PATH' |
| 17296 | hardcode_shlibpath_var_GCJ=no |
| 17297 | ;; |
| 17298 | |
| 17299 | sysv4.3*) |
| 17300 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17301 | hardcode_shlibpath_var_GCJ=no |
| 17302 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 17303 | ;; |
| 17304 | |
| 17305 | sysv4*MP*) |
| 17306 | if test -d /usr/nec; then |
| 17307 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17308 | hardcode_shlibpath_var_GCJ=no |
| 17309 | runpath_var=LD_RUN_PATH |
| 17310 | hardcode_runpath_var=yes |
| 17311 | ld_shlibs_GCJ=yes |
| 17312 | fi |
| 17313 | ;; |
| 17314 | |
| 17315 | sysv4.2uw2*) |
| 17316 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 17317 | hardcode_direct_GCJ=yes |
| 17318 | hardcode_minus_L_GCJ=no |
| 17319 | hardcode_shlibpath_var_GCJ=no |
| 17320 | hardcode_runpath_var=yes |
| 17321 | runpath_var=LD_RUN_PATH |
| 17322 | ;; |
| 17323 | |
| 17324 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 17325 | no_undefined_flag_GCJ='${wl}-z ${wl}text' |
| 17326 | if test "$GCC" = yes; then |
| 17327 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17328 | else |
| 17329 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17330 | fi |
| 17331 | runpath_var='LD_RUN_PATH' |
| 17332 | hardcode_shlibpath_var_GCJ=no |
| 17333 | ;; |
| 17334 | |
| 17335 | sysv5*) |
| 17336 | no_undefined_flag_GCJ=' -z text' |
| 17337 | # $CC -shared without GNU ld will not create a library from C++ |
| 17338 | # object files and a static libstdc++, better avoid it by now |
| 17339 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17340 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 17341 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17342 | hardcode_libdir_flag_spec_GCJ= |
| 17343 | hardcode_shlibpath_var_GCJ=no |
| 17344 | runpath_var='LD_RUN_PATH' |
| 17345 | ;; |
| 17346 | |
| 17347 | uts4*) |
| 17348 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17349 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17350 | hardcode_shlibpath_var_GCJ=no |
| 17351 | ;; |
| 17352 | |
| 17353 | *) |
| 17354 | ld_shlibs_GCJ=no |
| 17355 | ;; |
| 17356 | esac |
| 17357 | fi |
| 17358 | |
| 17359 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 17360 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
| 17361 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 17362 | |
| 17363 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 17364 | if test "$GCC" = yes; then |
| 17365 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 17366 | fi |
| 17367 | |
| 17368 | # |
| 17369 | # Do we need to explicitly link libc? |
| 17370 | # |
| 17371 | case "x$archive_cmds_need_lc_GCJ" in |
| 17372 | x|xyes) |
| 17373 | # Assume -lc should be added |
| 17374 | archive_cmds_need_lc_GCJ=yes |
| 17375 | |
| 17376 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 17377 | case $archive_cmds_GCJ in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17378 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17379 | # FIXME: we may have to deal with multi-command sequences. |
| 17380 | ;; |
| 17381 | '$CC '*) |
| 17382 | # Test whether the compiler implicitly links with -lc since on some |
| 17383 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 17384 | # to ld, don't add -lc before -lgcc. |
| 17385 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 17386 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 17387 | $rm conftest* |
| 17388 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 17389 | |
| 17390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17391 | (eval $ac_compile) 2>&5 |
| 17392 | ac_status=$? |
| 17393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17394 | (exit $ac_status); } 2>conftest.err; then |
| 17395 | soname=conftest |
| 17396 | lib=conftest |
| 17397 | libobjs=conftest.$ac_objext |
| 17398 | deplibs= |
| 17399 | wl=$lt_prog_compiler_wl_GCJ |
| 17400 | compiler_flags=-v |
| 17401 | linker_flags=-v |
| 17402 | verstring= |
| 17403 | output_objdir=. |
| 17404 | libname=conftest |
| 17405 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 17406 | allow_undefined_flag_GCJ= |
| 17407 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 17408 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 17409 | ac_status=$? |
| 17410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17411 | (exit $ac_status); } |
| 17412 | then |
| 17413 | archive_cmds_need_lc_GCJ=no |
| 17414 | else |
| 17415 | archive_cmds_need_lc_GCJ=yes |
| 17416 | fi |
| 17417 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 17418 | else |
| 17419 | cat conftest.err 1>&5 |
| 17420 | fi |
| 17421 | $rm conftest* |
| 17422 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 17423 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
| 17424 | ;; |
| 17425 | esac |
| 17426 | fi |
| 17427 | ;; |
| 17428 | esac |
| 17429 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17430 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 17431 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 17432 | library_names_spec= |
| 17433 | libname_spec='lib$name' |
| 17434 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17435 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17436 | postinstall_cmds= |
| 17437 | postuninstall_cmds= |
| 17438 | finish_cmds= |
| 17439 | finish_eval= |
| 17440 | shlibpath_var= |
| 17441 | shlibpath_overrides_runpath=unknown |
| 17442 | version_type=none |
| 17443 | dynamic_linker="$host_os ld.so" |
| 17444 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 17445 | if test "$GCC" = yes; then |
| 17446 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 17447 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 17448 | # if the path contains ";" then we assume it to be the separator |
| 17449 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 17450 | # assumed that no part of a normal pathname contains ";" but that should |
| 17451 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 17452 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 17453 | else |
| 17454 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 17455 | fi |
| 17456 | else |
| 17457 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 17458 | fi |
| 17459 | need_lib_prefix=unknown |
| 17460 | hardcode_into_libs=no |
| 17461 | |
| 17462 | # when you set need_version to no, make sure it does not cause -set_version |
| 17463 | # flags to be left without arguments |
| 17464 | need_version=unknown |
| 17465 | |
| 17466 | case $host_os in |
| 17467 | aix3*) |
| 17468 | version_type=linux |
| 17469 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 17470 | shlibpath_var=LIBPATH |
| 17471 | |
| 17472 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 17473 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17474 | ;; |
| 17475 | |
| 17476 | aix4* | aix5*) |
| 17477 | version_type=linux |
| 17478 | need_lib_prefix=no |
| 17479 | need_version=no |
| 17480 | hardcode_into_libs=yes |
| 17481 | if test "$host_cpu" = ia64; then |
| 17482 | # AIX 5 supports IA64 |
| 17483 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 17484 | shlibpath_var=LD_LIBRARY_PATH |
| 17485 | else |
| 17486 | # With GCC up to 2.95.x, collect2 would create an import file |
| 17487 | # for dependence libraries. The import file would start with |
| 17488 | # the line `#! .'. This would cause the generated library to |
| 17489 | # depend on `.', always an invalid library. This was fixed in |
| 17490 | # development snapshots of GCC prior to 3.0. |
| 17491 | case $host_os in |
| 17492 | aix4 | aix4.[01] | aix4.[01].*) |
| 17493 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 17494 | echo ' yes ' |
| 17495 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 17496 | : |
| 17497 | else |
| 17498 | can_build_shared=no |
| 17499 | fi |
| 17500 | ;; |
| 17501 | esac |
| 17502 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 17503 | # soname into executable. Probably we can add versioning support to |
| 17504 | # collect2, so additional links can be useful in future. |
| 17505 | if test "$aix_use_runtimelinking" = yes; then |
| 17506 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 17507 | # instead of lib<name>.a to let people know that these are not |
| 17508 | # typical AIX shared libraries. |
| 17509 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17510 | else |
| 17511 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 17512 | # and later when we are not doing run time linking. |
| 17513 | library_names_spec='${libname}${release}.a $libname.a' |
| 17514 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17515 | fi |
| 17516 | shlibpath_var=LIBPATH |
| 17517 | fi |
| 17518 | ;; |
| 17519 | |
| 17520 | amigaos*) |
| 17521 | library_names_spec='$libname.ixlibrary $libname.a' |
| 17522 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17523 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17524 | ;; |
| 17525 | |
| 17526 | beos*) |
| 17527 | library_names_spec='${libname}${shared_ext}' |
| 17528 | dynamic_linker="$host_os ld.so" |
| 17529 | shlibpath_var=LIBRARY_PATH |
| 17530 | ;; |
| 17531 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17532 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17533 | version_type=linux |
| 17534 | need_version=no |
| 17535 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17536 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17537 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 17538 | shlibpath_var=LD_LIBRARY_PATH |
| 17539 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 17540 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 17541 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 17542 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 17543 | # libtool to hard-code these into programs |
| 17544 | ;; |
| 17545 | |
| 17546 | cygwin* | mingw* | pw32*) |
| 17547 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17548 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17549 | need_version=no |
| 17550 | need_lib_prefix=no |
| 17551 | |
| 17552 | case $GCC,$host_os in |
| 17553 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 17554 | library_names_spec='$libname.dll.a' |
| 17555 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17556 | postinstall_cmds='base_file=`basename \${file}`~ |
| 17557 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 17558 | dldir=$destdir/`dirname \$dlpath`~ |
| 17559 | test -d \$dldir || mkdir -p \$dldir~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17560 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17561 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 17562 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17563 | $rm \$dlpath' |
| 17564 | shlibpath_overrides_runpath=yes |
| 17565 | |
| 17566 | case $host_os in |
| 17567 | cygwin*) |
| 17568 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 17569 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17570 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17571 | ;; |
| 17572 | mingw*) |
| 17573 | # MinGW DLLs use traditional 'lib' prefix |
| 17574 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 17575 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 17576 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 17577 | # It is most probably a Windows format PATH printed by |
| 17578 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 17579 | # path with ; separators, and with drive letters. We can handle the |
| 17580 | # drive letters (cygwin fileutils understands them), so leave them, |
| 17581 | # especially as we might pass files found there to a mingw objdump, |
| 17582 | # which wouldn't understand a cygwinified path. Ahh. |
| 17583 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 17584 | else |
| 17585 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 17586 | fi |
| 17587 | ;; |
| 17588 | pw32*) |
| 17589 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 17590 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 17591 | ;; |
| 17592 | esac |
| 17593 | ;; |
| 17594 | |
| 17595 | *) |
| 17596 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 17597 | ;; |
| 17598 | esac |
| 17599 | dynamic_linker='Win32 ld.exe' |
| 17600 | # FIXME: first we should search . and the directory the executable is in |
| 17601 | shlibpath_var=PATH |
| 17602 | ;; |
| 17603 | |
| 17604 | darwin* | rhapsody*) |
| 17605 | dynamic_linker="$host_os dyld" |
| 17606 | version_type=darwin |
| 17607 | need_lib_prefix=no |
| 17608 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17609 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17610 | soname_spec='${libname}${release}${major}$shared_ext' |
| 17611 | shlibpath_overrides_runpath=yes |
| 17612 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17613 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17614 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17615 | if test "$GCC" = yes; then |
| 17616 | 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"` |
| 17617 | else |
| 17618 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17619 | fi |
| 17620 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 17621 | ;; |
| 17622 | |
| 17623 | dgux*) |
| 17624 | version_type=linux |
| 17625 | need_lib_prefix=no |
| 17626 | need_version=no |
| 17627 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 17628 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17629 | shlibpath_var=LD_LIBRARY_PATH |
| 17630 | ;; |
| 17631 | |
| 17632 | freebsd1*) |
| 17633 | dynamic_linker=no |
| 17634 | ;; |
| 17635 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17636 | kfreebsd*-gnu) |
| 17637 | version_type=linux |
| 17638 | need_lib_prefix=no |
| 17639 | need_version=no |
| 17640 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17641 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17642 | shlibpath_var=LD_LIBRARY_PATH |
| 17643 | shlibpath_overrides_runpath=no |
| 17644 | hardcode_into_libs=yes |
| 17645 | dynamic_linker='GNU ld.so' |
| 17646 | ;; |
| 17647 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17648 | freebsd*) |
| 17649 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 17650 | version_type=freebsd-$objformat |
| 17651 | case $version_type in |
| 17652 | freebsd-elf*) |
| 17653 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 17654 | need_version=no |
| 17655 | need_lib_prefix=no |
| 17656 | ;; |
| 17657 | freebsd-*) |
| 17658 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 17659 | need_version=yes |
| 17660 | ;; |
| 17661 | esac |
| 17662 | shlibpath_var=LD_LIBRARY_PATH |
| 17663 | case $host_os in |
| 17664 | freebsd2*) |
| 17665 | shlibpath_overrides_runpath=yes |
| 17666 | ;; |
| 17667 | freebsd3.01* | freebsdelf3.01*) |
| 17668 | shlibpath_overrides_runpath=yes |
| 17669 | hardcode_into_libs=yes |
| 17670 | ;; |
| 17671 | *) # from 3.2 on |
| 17672 | shlibpath_overrides_runpath=no |
| 17673 | hardcode_into_libs=yes |
| 17674 | ;; |
| 17675 | esac |
| 17676 | ;; |
| 17677 | |
| 17678 | gnu*) |
| 17679 | version_type=linux |
| 17680 | need_lib_prefix=no |
| 17681 | need_version=no |
| 17682 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 17683 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17684 | shlibpath_var=LD_LIBRARY_PATH |
| 17685 | hardcode_into_libs=yes |
| 17686 | ;; |
| 17687 | |
| 17688 | hpux9* | hpux10* | hpux11*) |
| 17689 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 17690 | # link against other versions. |
| 17691 | version_type=sunos |
| 17692 | need_lib_prefix=no |
| 17693 | need_version=no |
| 17694 | case "$host_cpu" in |
| 17695 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17696 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17697 | hardcode_into_libs=yes |
| 17698 | dynamic_linker="$host_os dld.so" |
| 17699 | shlibpath_var=LD_LIBRARY_PATH |
| 17700 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17701 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17702 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17703 | if test "X$HPUX_IA64_MODE" = X32; then |
| 17704 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 17705 | else |
| 17706 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 17707 | fi |
| 17708 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17709 | ;; |
| 17710 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17711 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17712 | hardcode_into_libs=yes |
| 17713 | dynamic_linker="$host_os dld.sl" |
| 17714 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 17715 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17716 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17717 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17718 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 17719 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17720 | ;; |
| 17721 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17722 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17723 | dynamic_linker="$host_os dld.sl" |
| 17724 | shlibpath_var=SHLIB_PATH |
| 17725 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 17726 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17727 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17728 | ;; |
| 17729 | esac |
| 17730 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 17731 | postinstall_cmds='chmod 555 $lib' |
| 17732 | ;; |
| 17733 | |
| 17734 | irix5* | irix6* | nonstopux*) |
| 17735 | case $host_os in |
| 17736 | nonstopux*) version_type=nonstopux ;; |
| 17737 | *) |
| 17738 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 17739 | version_type=linux |
| 17740 | else |
| 17741 | version_type=irix |
| 17742 | fi ;; |
| 17743 | esac |
| 17744 | need_lib_prefix=no |
| 17745 | need_version=no |
| 17746 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17747 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 17748 | case $host_os in |
| 17749 | irix5* | nonstopux*) |
| 17750 | libsuff= shlibsuff= |
| 17751 | ;; |
| 17752 | *) |
| 17753 | case $LD in # libtool.m4 will add one of these switches to LD |
| 17754 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 17755 | libsuff= shlibsuff= libmagic=32-bit;; |
| 17756 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 17757 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 17758 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 17759 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 17760 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 17761 | esac |
| 17762 | ;; |
| 17763 | esac |
| 17764 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 17765 | shlibpath_overrides_runpath=no |
| 17766 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 17767 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 17768 | hardcode_into_libs=yes |
| 17769 | ;; |
| 17770 | |
| 17771 | # No shared lib support for Linux oldld, aout, or coff. |
| 17772 | linux*oldld* | linux*aout* | linux*coff*) |
| 17773 | dynamic_linker=no |
| 17774 | ;; |
| 17775 | |
| 17776 | # This must be Linux ELF. |
| 17777 | linux*) |
| 17778 | version_type=linux |
| 17779 | need_lib_prefix=no |
| 17780 | need_version=no |
| 17781 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17782 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17783 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 17784 | shlibpath_var=LD_LIBRARY_PATH |
| 17785 | shlibpath_overrides_runpath=no |
| 17786 | # This implies no fast_install, which is unacceptable. |
| 17787 | # Some rework will be needed to allow for fast_install |
| 17788 | # before this can be enabled. |
| 17789 | hardcode_into_libs=yes |
| 17790 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17791 | # Append ld.so.conf contents to the search path |
| 17792 | if test -f /etc/ld.so.conf; then |
| 17793 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 17794 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 17795 | fi |
| 17796 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17797 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 17798 | # powerpc, because MkLinux only supported shared libraries with the |
| 17799 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 17800 | # most powerpc-linux boxes support dynamic linking these days and |
| 17801 | # people can always --disable-shared, the test was removed, and we |
| 17802 | # assume the GNU/Linux dynamic linker is in use. |
| 17803 | dynamic_linker='GNU/Linux ld.so' |
| 17804 | ;; |
| 17805 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17806 | knetbsd*-gnu) |
| 17807 | version_type=linux |
| 17808 | need_lib_prefix=no |
| 17809 | need_version=no |
| 17810 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17811 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17812 | shlibpath_var=LD_LIBRARY_PATH |
| 17813 | shlibpath_overrides_runpath=no |
| 17814 | hardcode_into_libs=yes |
| 17815 | dynamic_linker='GNU ld.so' |
| 17816 | ;; |
| 17817 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17818 | netbsd*) |
| 17819 | version_type=sunos |
| 17820 | need_lib_prefix=no |
| 17821 | need_version=no |
| 17822 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 17823 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17824 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17825 | dynamic_linker='NetBSD (a.out) ld.so' |
| 17826 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17827 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17828 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17829 | dynamic_linker='NetBSD ld.elf_so' |
| 17830 | fi |
| 17831 | shlibpath_var=LD_LIBRARY_PATH |
| 17832 | shlibpath_overrides_runpath=yes |
| 17833 | hardcode_into_libs=yes |
| 17834 | ;; |
| 17835 | |
| 17836 | newsos6) |
| 17837 | version_type=linux |
| 17838 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17839 | shlibpath_var=LD_LIBRARY_PATH |
| 17840 | shlibpath_overrides_runpath=yes |
| 17841 | ;; |
| 17842 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17843 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17844 | version_type=linux |
| 17845 | need_lib_prefix=no |
| 17846 | need_version=no |
| 17847 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17848 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17849 | shlibpath_var=LD_LIBRARY_PATH |
| 17850 | shlibpath_overrides_runpath=yes |
| 17851 | ;; |
| 17852 | |
| 17853 | openbsd*) |
| 17854 | version_type=sunos |
| 17855 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 17856 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17857 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17858 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17859 | shlibpath_var=LD_LIBRARY_PATH |
| 17860 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17861 | case $host_os in |
| 17862 | openbsd2.[89] | openbsd2.[89].*) |
| 17863 | shlibpath_overrides_runpath=no |
| 17864 | ;; |
| 17865 | *) |
| 17866 | shlibpath_overrides_runpath=yes |
| 17867 | ;; |
| 17868 | esac |
| 17869 | else |
| 17870 | shlibpath_overrides_runpath=yes |
| 17871 | fi |
| 17872 | ;; |
| 17873 | |
| 17874 | os2*) |
| 17875 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17876 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17877 | need_lib_prefix=no |
| 17878 | library_names_spec='$libname${shared_ext} $libname.a' |
| 17879 | dynamic_linker='OS/2 ld.exe' |
| 17880 | shlibpath_var=LIBPATH |
| 17881 | ;; |
| 17882 | |
| 17883 | osf3* | osf4* | osf5*) |
| 17884 | version_type=osf |
| 17885 | need_lib_prefix=no |
| 17886 | need_version=no |
| 17887 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17888 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17889 | shlibpath_var=LD_LIBRARY_PATH |
| 17890 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 17891 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 17892 | ;; |
| 17893 | |
| 17894 | sco3.2v5*) |
| 17895 | version_type=osf |
| 17896 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17897 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17898 | shlibpath_var=LD_LIBRARY_PATH |
| 17899 | ;; |
| 17900 | |
| 17901 | solaris*) |
| 17902 | version_type=linux |
| 17903 | need_lib_prefix=no |
| 17904 | need_version=no |
| 17905 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17906 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17907 | shlibpath_var=LD_LIBRARY_PATH |
| 17908 | shlibpath_overrides_runpath=yes |
| 17909 | hardcode_into_libs=yes |
| 17910 | # ldd complains unless libraries are executable |
| 17911 | postinstall_cmds='chmod +x $lib' |
| 17912 | ;; |
| 17913 | |
| 17914 | sunos4*) |
| 17915 | version_type=sunos |
| 17916 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17917 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 17918 | shlibpath_var=LD_LIBRARY_PATH |
| 17919 | shlibpath_overrides_runpath=yes |
| 17920 | if test "$with_gnu_ld" = yes; then |
| 17921 | need_lib_prefix=no |
| 17922 | fi |
| 17923 | need_version=yes |
| 17924 | ;; |
| 17925 | |
| 17926 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 17927 | version_type=linux |
| 17928 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17929 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17930 | shlibpath_var=LD_LIBRARY_PATH |
| 17931 | case $host_vendor in |
| 17932 | sni) |
| 17933 | shlibpath_overrides_runpath=no |
| 17934 | need_lib_prefix=no |
| 17935 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 17936 | runpath_var=LD_RUN_PATH |
| 17937 | ;; |
| 17938 | siemens) |
| 17939 | need_lib_prefix=no |
| 17940 | ;; |
| 17941 | motorola) |
| 17942 | need_lib_prefix=no |
| 17943 | need_version=no |
| 17944 | shlibpath_overrides_runpath=no |
| 17945 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 17946 | ;; |
| 17947 | esac |
| 17948 | ;; |
| 17949 | |
| 17950 | sysv4*MP*) |
| 17951 | if test -d /usr/nec ;then |
| 17952 | version_type=linux |
| 17953 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 17954 | soname_spec='$libname${shared_ext}.$major' |
| 17955 | shlibpath_var=LD_LIBRARY_PATH |
| 17956 | fi |
| 17957 | ;; |
| 17958 | |
| 17959 | uts4*) |
| 17960 | version_type=linux |
| 17961 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17962 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17963 | shlibpath_var=LD_LIBRARY_PATH |
| 17964 | ;; |
| 17965 | |
| 17966 | *) |
| 17967 | dynamic_linker=no |
| 17968 | ;; |
| 17969 | esac |
| 17970 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 17971 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 17972 | test "$dynamic_linker" = no && can_build_shared=no |
| 17973 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17974 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 17975 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 17976 | hardcode_action_GCJ= |
| 17977 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 17978 | test -n "$runpath_var_GCJ" || \ |
| 17979 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 17980 | |
| 17981 | # We can hardcode non-existant directories. |
| 17982 | if test "$hardcode_direct_GCJ" != no && |
| 17983 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 17984 | # have to relink, otherwise we might link with an installed library |
| 17985 | # when we should be linking with a yet-to-be-installed one |
| 17986 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 17987 | test "$hardcode_minus_L_GCJ" != no; then |
| 17988 | # Linking always hardcodes the temporary library directory. |
| 17989 | hardcode_action_GCJ=relink |
| 17990 | else |
| 17991 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 17992 | hardcode_action_GCJ=immediate |
| 17993 | fi |
| 17994 | else |
| 17995 | # We cannot hardcode anything, or else we can only hardcode existing |
| 17996 | # directories. |
| 17997 | hardcode_action_GCJ=unsupported |
| 17998 | fi |
| 17999 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 18000 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
| 18001 | |
| 18002 | if test "$hardcode_action_GCJ" = relink; then |
| 18003 | # Fast installation is not supported |
| 18004 | enable_fast_install=no |
| 18005 | elif test "$shlibpath_overrides_runpath" = yes || |
| 18006 | test "$enable_shared" = no; then |
| 18007 | # Fast installation is not necessary |
| 18008 | enable_fast_install=needless |
| 18009 | fi |
| 18010 | |
| 18011 | striplib= |
| 18012 | old_striplib= |
| 18013 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 18014 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 18015 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 18016 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 18017 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 18018 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18019 | echo "${ECHO_T}yes" >&6 |
| 18020 | else |
| 18021 | # FIXME - insert some real tests, host_os isn't really good enough |
| 18022 | case $host_os in |
| 18023 | darwin*) |
| 18024 | if test -n "$STRIP" ; then |
| 18025 | striplib="$STRIP -x" |
| 18026 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18027 | echo "${ECHO_T}yes" >&6 |
| 18028 | else |
| 18029 | echo "$as_me:$LINENO: result: no" >&5 |
| 18030 | echo "${ECHO_T}no" >&6 |
| 18031 | fi |
| 18032 | ;; |
| 18033 | *) |
| 18034 | echo "$as_me:$LINENO: result: no" >&5 |
| 18035 | echo "${ECHO_T}no" >&6 |
| 18036 | ;; |
| 18037 | esac |
| 18038 | fi |
| 18039 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18040 | if test "x$enable_dlopen" != xyes; then |
| 18041 | enable_dlopen=unknown |
| 18042 | enable_dlopen_self=unknown |
| 18043 | enable_dlopen_self_static=unknown |
| 18044 | else |
| 18045 | lt_cv_dlopen=no |
| 18046 | lt_cv_dlopen_libs= |
| 18047 | |
| 18048 | case $host_os in |
| 18049 | beos*) |
| 18050 | lt_cv_dlopen="load_add_on" |
| 18051 | lt_cv_dlopen_libs= |
| 18052 | lt_cv_dlopen_self=yes |
| 18053 | ;; |
| 18054 | |
| 18055 | mingw* | pw32*) |
| 18056 | lt_cv_dlopen="LoadLibrary" |
| 18057 | lt_cv_dlopen_libs= |
| 18058 | ;; |
| 18059 | |
| 18060 | cygwin*) |
| 18061 | lt_cv_dlopen="dlopen" |
| 18062 | lt_cv_dlopen_libs= |
| 18063 | ;; |
| 18064 | |
| 18065 | darwin*) |
| 18066 | # if libdl is installed we need to link against it |
| 18067 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 18068 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 18069 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 18070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18071 | else |
| 18072 | ac_check_lib_save_LIBS=$LIBS |
| 18073 | LIBS="-ldl $LIBS" |
| 18074 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18075 | /* confdefs.h. */ |
| 18076 | _ACEOF |
| 18077 | cat confdefs.h >>conftest.$ac_ext |
| 18078 | cat >>conftest.$ac_ext <<_ACEOF |
| 18079 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18080 | |
| 18081 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18082 | #ifdef __cplusplus |
| 18083 | extern "C" |
| 18084 | #endif |
| 18085 | /* We use char because int might match the return type of a gcc2 |
| 18086 | builtin and then its argument prototype would still apply. */ |
| 18087 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18088 | int |
| 18089 | main () |
| 18090 | { |
| 18091 | dlopen (); |
| 18092 | ; |
| 18093 | return 0; |
| 18094 | } |
| 18095 | _ACEOF |
| 18096 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18098 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18099 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18100 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18101 | rm -f conftest.er1 |
| 18102 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18104 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18105 | { ac_try='test -z "$ac_c_werror_flag" |
| 18106 | || test ! -s conftest.err' |
| 18107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18108 | (eval $ac_try) 2>&5 |
| 18109 | ac_status=$? |
| 18110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18111 | (exit $ac_status); }; } && |
| 18112 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18114 | (eval $ac_try) 2>&5 |
| 18115 | ac_status=$? |
| 18116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18117 | (exit $ac_status); }; }; then |
| 18118 | ac_cv_lib_dl_dlopen=yes |
| 18119 | else |
| 18120 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18122 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18123 | ac_cv_lib_dl_dlopen=no |
| 18124 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18125 | rm -f conftest.err conftest.$ac_objext \ |
| 18126 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18127 | LIBS=$ac_check_lib_save_LIBS |
| 18128 | fi |
| 18129 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 18130 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 18131 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 18132 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 18133 | else |
| 18134 | |
| 18135 | lt_cv_dlopen="dyld" |
| 18136 | lt_cv_dlopen_libs= |
| 18137 | lt_cv_dlopen_self=yes |
| 18138 | |
| 18139 | fi |
| 18140 | |
| 18141 | ;; |
| 18142 | |
| 18143 | *) |
| 18144 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 18145 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 18146 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 18147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18148 | else |
| 18149 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18150 | /* confdefs.h. */ |
| 18151 | _ACEOF |
| 18152 | cat confdefs.h >>conftest.$ac_ext |
| 18153 | cat >>conftest.$ac_ext <<_ACEOF |
| 18154 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18155 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 18156 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18157 | #define shl_load innocuous_shl_load |
| 18158 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18159 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18160 | which can conflict with char shl_load (); below. |
| 18161 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18162 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18163 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18164 | #ifdef __STDC__ |
| 18165 | # include <limits.h> |
| 18166 | #else |
| 18167 | # include <assert.h> |
| 18168 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18169 | |
| 18170 | #undef shl_load |
| 18171 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18172 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18173 | #ifdef __cplusplus |
| 18174 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18175 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18176 | #endif |
| 18177 | /* We use char because int might match the return type of a gcc2 |
| 18178 | builtin and then its argument prototype would still apply. */ |
| 18179 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18180 | /* The GNU C library defines this for functions which it implements |
| 18181 | to always fail with ENOSYS. Some functions are actually named |
| 18182 | something starting with __ and the normal name is an alias. */ |
| 18183 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 18184 | choke me |
| 18185 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18186 | char (*f) () = shl_load; |
| 18187 | #endif |
| 18188 | #ifdef __cplusplus |
| 18189 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18190 | #endif |
| 18191 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18192 | int |
| 18193 | main () |
| 18194 | { |
| 18195 | return f != shl_load; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18196 | ; |
| 18197 | return 0; |
| 18198 | } |
| 18199 | _ACEOF |
| 18200 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18202 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18203 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18204 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18205 | rm -f conftest.er1 |
| 18206 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18208 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18209 | { ac_try='test -z "$ac_c_werror_flag" |
| 18210 | || test ! -s conftest.err' |
| 18211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18212 | (eval $ac_try) 2>&5 |
| 18213 | ac_status=$? |
| 18214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18215 | (exit $ac_status); }; } && |
| 18216 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18218 | (eval $ac_try) 2>&5 |
| 18219 | ac_status=$? |
| 18220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18221 | (exit $ac_status); }; }; then |
| 18222 | ac_cv_func_shl_load=yes |
| 18223 | else |
| 18224 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18226 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18227 | ac_cv_func_shl_load=no |
| 18228 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18229 | rm -f conftest.err conftest.$ac_objext \ |
| 18230 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18231 | fi |
| 18232 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 18233 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 18234 | if test $ac_cv_func_shl_load = yes; then |
| 18235 | lt_cv_dlopen="shl_load" |
| 18236 | else |
| 18237 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 18238 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 18239 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 18240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18241 | else |
| 18242 | ac_check_lib_save_LIBS=$LIBS |
| 18243 | LIBS="-ldld $LIBS" |
| 18244 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18245 | /* confdefs.h. */ |
| 18246 | _ACEOF |
| 18247 | cat confdefs.h >>conftest.$ac_ext |
| 18248 | cat >>conftest.$ac_ext <<_ACEOF |
| 18249 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18250 | |
| 18251 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18252 | #ifdef __cplusplus |
| 18253 | extern "C" |
| 18254 | #endif |
| 18255 | /* We use char because int might match the return type of a gcc2 |
| 18256 | builtin and then its argument prototype would still apply. */ |
| 18257 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18258 | int |
| 18259 | main () |
| 18260 | { |
| 18261 | shl_load (); |
| 18262 | ; |
| 18263 | return 0; |
| 18264 | } |
| 18265 | _ACEOF |
| 18266 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18268 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18269 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18270 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18271 | rm -f conftest.er1 |
| 18272 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18274 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18275 | { ac_try='test -z "$ac_c_werror_flag" |
| 18276 | || test ! -s conftest.err' |
| 18277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18278 | (eval $ac_try) 2>&5 |
| 18279 | ac_status=$? |
| 18280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18281 | (exit $ac_status); }; } && |
| 18282 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18284 | (eval $ac_try) 2>&5 |
| 18285 | ac_status=$? |
| 18286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18287 | (exit $ac_status); }; }; then |
| 18288 | ac_cv_lib_dld_shl_load=yes |
| 18289 | else |
| 18290 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18292 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18293 | ac_cv_lib_dld_shl_load=no |
| 18294 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18295 | rm -f conftest.err conftest.$ac_objext \ |
| 18296 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18297 | LIBS=$ac_check_lib_save_LIBS |
| 18298 | fi |
| 18299 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 18300 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 18301 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 18302 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 18303 | else |
| 18304 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 18305 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 18306 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 18307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18308 | else |
| 18309 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18310 | /* confdefs.h. */ |
| 18311 | _ACEOF |
| 18312 | cat confdefs.h >>conftest.$ac_ext |
| 18313 | cat >>conftest.$ac_ext <<_ACEOF |
| 18314 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18315 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 18316 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18317 | #define dlopen innocuous_dlopen |
| 18318 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18319 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18320 | which can conflict with char dlopen (); below. |
| 18321 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18322 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18323 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18324 | #ifdef __STDC__ |
| 18325 | # include <limits.h> |
| 18326 | #else |
| 18327 | # include <assert.h> |
| 18328 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18329 | |
| 18330 | #undef dlopen |
| 18331 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18332 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18333 | #ifdef __cplusplus |
| 18334 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18335 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18336 | #endif |
| 18337 | /* We use char because int might match the return type of a gcc2 |
| 18338 | builtin and then its argument prototype would still apply. */ |
| 18339 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18340 | /* The GNU C library defines this for functions which it implements |
| 18341 | to always fail with ENOSYS. Some functions are actually named |
| 18342 | something starting with __ and the normal name is an alias. */ |
| 18343 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 18344 | choke me |
| 18345 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18346 | char (*f) () = dlopen; |
| 18347 | #endif |
| 18348 | #ifdef __cplusplus |
| 18349 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18350 | #endif |
| 18351 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18352 | int |
| 18353 | main () |
| 18354 | { |
| 18355 | return f != dlopen; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18356 | ; |
| 18357 | return 0; |
| 18358 | } |
| 18359 | _ACEOF |
| 18360 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18362 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18363 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18364 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18365 | rm -f conftest.er1 |
| 18366 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18368 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18369 | { ac_try='test -z "$ac_c_werror_flag" |
| 18370 | || test ! -s conftest.err' |
| 18371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18372 | (eval $ac_try) 2>&5 |
| 18373 | ac_status=$? |
| 18374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18375 | (exit $ac_status); }; } && |
| 18376 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18378 | (eval $ac_try) 2>&5 |
| 18379 | ac_status=$? |
| 18380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18381 | (exit $ac_status); }; }; then |
| 18382 | ac_cv_func_dlopen=yes |
| 18383 | else |
| 18384 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18386 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18387 | ac_cv_func_dlopen=no |
| 18388 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18389 | rm -f conftest.err conftest.$ac_objext \ |
| 18390 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18391 | fi |
| 18392 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 18393 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 18394 | if test $ac_cv_func_dlopen = yes; then |
| 18395 | lt_cv_dlopen="dlopen" |
| 18396 | else |
| 18397 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 18398 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 18399 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 18400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18401 | else |
| 18402 | ac_check_lib_save_LIBS=$LIBS |
| 18403 | LIBS="-ldl $LIBS" |
| 18404 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18405 | /* confdefs.h. */ |
| 18406 | _ACEOF |
| 18407 | cat confdefs.h >>conftest.$ac_ext |
| 18408 | cat >>conftest.$ac_ext <<_ACEOF |
| 18409 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18410 | |
| 18411 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18412 | #ifdef __cplusplus |
| 18413 | extern "C" |
| 18414 | #endif |
| 18415 | /* We use char because int might match the return type of a gcc2 |
| 18416 | builtin and then its argument prototype would still apply. */ |
| 18417 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18418 | int |
| 18419 | main () |
| 18420 | { |
| 18421 | dlopen (); |
| 18422 | ; |
| 18423 | return 0; |
| 18424 | } |
| 18425 | _ACEOF |
| 18426 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18428 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18429 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18430 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18431 | rm -f conftest.er1 |
| 18432 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18434 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18435 | { ac_try='test -z "$ac_c_werror_flag" |
| 18436 | || test ! -s conftest.err' |
| 18437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18438 | (eval $ac_try) 2>&5 |
| 18439 | ac_status=$? |
| 18440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18441 | (exit $ac_status); }; } && |
| 18442 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18444 | (eval $ac_try) 2>&5 |
| 18445 | ac_status=$? |
| 18446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18447 | (exit $ac_status); }; }; then |
| 18448 | ac_cv_lib_dl_dlopen=yes |
| 18449 | else |
| 18450 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18452 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18453 | ac_cv_lib_dl_dlopen=no |
| 18454 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18455 | rm -f conftest.err conftest.$ac_objext \ |
| 18456 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18457 | LIBS=$ac_check_lib_save_LIBS |
| 18458 | fi |
| 18459 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 18460 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 18461 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 18462 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 18463 | else |
| 18464 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 18465 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 18466 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 18467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18468 | else |
| 18469 | ac_check_lib_save_LIBS=$LIBS |
| 18470 | LIBS="-lsvld $LIBS" |
| 18471 | cat >conftest.$ac_ext <<_ACEOF |
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 | 47fdd83 | 2003-07-14 16:52: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 dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18485 | int |
| 18486 | main () |
| 18487 | { |
| 18488 | dlopen (); |
| 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 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18495 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18496 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18497 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18498 | rm -f conftest.er1 |
| 18499 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18501 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18502 | { ac_try='test -z "$ac_c_werror_flag" |
| 18503 | || test ! -s conftest.err' |
| 18504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18505 | (eval $ac_try) 2>&5 |
| 18506 | ac_status=$? |
| 18507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18508 | (exit $ac_status); }; } && |
| 18509 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18511 | (eval $ac_try) 2>&5 |
| 18512 | ac_status=$? |
| 18513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18514 | (exit $ac_status); }; }; then |
| 18515 | ac_cv_lib_svld_dlopen=yes |
| 18516 | else |
| 18517 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18519 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18520 | ac_cv_lib_svld_dlopen=no |
| 18521 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18522 | rm -f conftest.err conftest.$ac_objext \ |
| 18523 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18524 | LIBS=$ac_check_lib_save_LIBS |
| 18525 | fi |
| 18526 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 18527 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 18528 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 18529 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 18530 | else |
| 18531 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 18532 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 18533 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 18534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18535 | else |
| 18536 | ac_check_lib_save_LIBS=$LIBS |
| 18537 | LIBS="-ldld $LIBS" |
| 18538 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18539 | /* confdefs.h. */ |
| 18540 | _ACEOF |
| 18541 | cat confdefs.h >>conftest.$ac_ext |
| 18542 | cat >>conftest.$ac_ext <<_ACEOF |
| 18543 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18544 | |
| 18545 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18546 | #ifdef __cplusplus |
| 18547 | extern "C" |
| 18548 | #endif |
| 18549 | /* We use char because int might match the return type of a gcc2 |
| 18550 | builtin and then its argument prototype would still apply. */ |
| 18551 | char dld_link (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18552 | int |
| 18553 | main () |
| 18554 | { |
| 18555 | dld_link (); |
| 18556 | ; |
| 18557 | return 0; |
| 18558 | } |
| 18559 | _ACEOF |
| 18560 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18562 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18563 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18564 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18565 | rm -f conftest.er1 |
| 18566 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18568 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18569 | { ac_try='test -z "$ac_c_werror_flag" |
| 18570 | || test ! -s conftest.err' |
| 18571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18572 | (eval $ac_try) 2>&5 |
| 18573 | ac_status=$? |
| 18574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18575 | (exit $ac_status); }; } && |
| 18576 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18578 | (eval $ac_try) 2>&5 |
| 18579 | ac_status=$? |
| 18580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18581 | (exit $ac_status); }; }; then |
| 18582 | ac_cv_lib_dld_dld_link=yes |
| 18583 | else |
| 18584 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18586 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18587 | ac_cv_lib_dld_dld_link=no |
| 18588 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18589 | rm -f conftest.err conftest.$ac_objext \ |
| 18590 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18591 | LIBS=$ac_check_lib_save_LIBS |
| 18592 | fi |
| 18593 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 18594 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 18595 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 18596 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 18597 | fi |
| 18598 | |
| 18599 | |
| 18600 | fi |
| 18601 | |
| 18602 | |
| 18603 | fi |
| 18604 | |
| 18605 | |
| 18606 | fi |
| 18607 | |
| 18608 | |
| 18609 | fi |
| 18610 | |
| 18611 | |
| 18612 | fi |
| 18613 | |
| 18614 | ;; |
| 18615 | esac |
| 18616 | |
| 18617 | if test "x$lt_cv_dlopen" != xno; then |
| 18618 | enable_dlopen=yes |
| 18619 | else |
| 18620 | enable_dlopen=no |
| 18621 | fi |
| 18622 | |
| 18623 | case $lt_cv_dlopen in |
| 18624 | dlopen) |
| 18625 | save_CPPFLAGS="$CPPFLAGS" |
| 18626 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 18627 | |
| 18628 | save_LDFLAGS="$LDFLAGS" |
| 18629 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 18630 | |
| 18631 | save_LIBS="$LIBS" |
| 18632 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 18633 | |
| 18634 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 18635 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 18636 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 18637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18638 | else |
| 18639 | if test "$cross_compiling" = yes; then : |
| 18640 | lt_cv_dlopen_self=cross |
| 18641 | else |
| 18642 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 18643 | lt_status=$lt_dlunknown |
| 18644 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18645 | #line 18645 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18646 | #include "confdefs.h" |
| 18647 | |
| 18648 | #if HAVE_DLFCN_H |
| 18649 | #include <dlfcn.h> |
| 18650 | #endif |
| 18651 | |
| 18652 | #include <stdio.h> |
| 18653 | |
| 18654 | #ifdef RTLD_GLOBAL |
| 18655 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 18656 | #else |
| 18657 | # ifdef DL_GLOBAL |
| 18658 | # define LT_DLGLOBAL DL_GLOBAL |
| 18659 | # else |
| 18660 | # define LT_DLGLOBAL 0 |
| 18661 | # endif |
| 18662 | #endif |
| 18663 | |
| 18664 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 18665 | find out it does not work in some platform. */ |
| 18666 | #ifndef LT_DLLAZY_OR_NOW |
| 18667 | # ifdef RTLD_LAZY |
| 18668 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 18669 | # else |
| 18670 | # ifdef DL_LAZY |
| 18671 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 18672 | # else |
| 18673 | # ifdef RTLD_NOW |
| 18674 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 18675 | # else |
| 18676 | # ifdef DL_NOW |
| 18677 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 18678 | # else |
| 18679 | # define LT_DLLAZY_OR_NOW 0 |
| 18680 | # endif |
| 18681 | # endif |
| 18682 | # endif |
| 18683 | # endif |
| 18684 | #endif |
| 18685 | |
| 18686 | #ifdef __cplusplus |
| 18687 | extern "C" void exit (int); |
| 18688 | #endif |
| 18689 | |
| 18690 | void fnord() { int i=42;} |
| 18691 | int main () |
| 18692 | { |
| 18693 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 18694 | int status = $lt_dlunknown; |
| 18695 | |
| 18696 | if (self) |
| 18697 | { |
| 18698 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 18699 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 18700 | /* dlclose (self); */ |
| 18701 | } |
| 18702 | |
| 18703 | exit (status); |
| 18704 | } |
| 18705 | EOF |
| 18706 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18707 | (eval $ac_link) 2>&5 |
| 18708 | ac_status=$? |
| 18709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18710 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 18711 | (./conftest; exit; ) 2>/dev/null |
| 18712 | lt_status=$? |
| 18713 | case x$lt_status in |
| 18714 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 18715 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 18716 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 18717 | esac |
| 18718 | else : |
| 18719 | # compilation failed |
| 18720 | lt_cv_dlopen_self=no |
| 18721 | fi |
| 18722 | fi |
| 18723 | rm -fr conftest* |
| 18724 | |
| 18725 | |
| 18726 | fi |
| 18727 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 18728 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 18729 | |
| 18730 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 18731 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 18732 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 18733 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 18734 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 18735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18736 | else |
| 18737 | if test "$cross_compiling" = yes; then : |
| 18738 | lt_cv_dlopen_self_static=cross |
| 18739 | else |
| 18740 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 18741 | lt_status=$lt_dlunknown |
| 18742 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18743 | #line 18743 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18744 | #include "confdefs.h" |
| 18745 | |
| 18746 | #if HAVE_DLFCN_H |
| 18747 | #include <dlfcn.h> |
| 18748 | #endif |
| 18749 | |
| 18750 | #include <stdio.h> |
| 18751 | |
| 18752 | #ifdef RTLD_GLOBAL |
| 18753 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 18754 | #else |
| 18755 | # ifdef DL_GLOBAL |
| 18756 | # define LT_DLGLOBAL DL_GLOBAL |
| 18757 | # else |
| 18758 | # define LT_DLGLOBAL 0 |
| 18759 | # endif |
| 18760 | #endif |
| 18761 | |
| 18762 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 18763 | find out it does not work in some platform. */ |
| 18764 | #ifndef LT_DLLAZY_OR_NOW |
| 18765 | # ifdef RTLD_LAZY |
| 18766 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 18767 | # else |
| 18768 | # ifdef DL_LAZY |
| 18769 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 18770 | # else |
| 18771 | # ifdef RTLD_NOW |
| 18772 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 18773 | # else |
| 18774 | # ifdef DL_NOW |
| 18775 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 18776 | # else |
| 18777 | # define LT_DLLAZY_OR_NOW 0 |
| 18778 | # endif |
| 18779 | # endif |
| 18780 | # endif |
| 18781 | # endif |
| 18782 | #endif |
| 18783 | |
| 18784 | #ifdef __cplusplus |
| 18785 | extern "C" void exit (int); |
| 18786 | #endif |
| 18787 | |
| 18788 | void fnord() { int i=42;} |
| 18789 | int main () |
| 18790 | { |
| 18791 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 18792 | int status = $lt_dlunknown; |
| 18793 | |
| 18794 | if (self) |
| 18795 | { |
| 18796 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 18797 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 18798 | /* dlclose (self); */ |
| 18799 | } |
| 18800 | |
| 18801 | exit (status); |
| 18802 | } |
| 18803 | EOF |
| 18804 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18805 | (eval $ac_link) 2>&5 |
| 18806 | ac_status=$? |
| 18807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18808 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 18809 | (./conftest; exit; ) 2>/dev/null |
| 18810 | lt_status=$? |
| 18811 | case x$lt_status in |
| 18812 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 18813 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 18814 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 18815 | esac |
| 18816 | else : |
| 18817 | # compilation failed |
| 18818 | lt_cv_dlopen_self_static=no |
| 18819 | fi |
| 18820 | fi |
| 18821 | rm -fr conftest* |
| 18822 | |
| 18823 | |
| 18824 | fi |
| 18825 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 18826 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 18827 | fi |
| 18828 | |
| 18829 | CPPFLAGS="$save_CPPFLAGS" |
| 18830 | LDFLAGS="$save_LDFLAGS" |
| 18831 | LIBS="$save_LIBS" |
| 18832 | ;; |
| 18833 | esac |
| 18834 | |
| 18835 | case $lt_cv_dlopen_self in |
| 18836 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 18837 | *) enable_dlopen_self=unknown ;; |
| 18838 | esac |
| 18839 | |
| 18840 | case $lt_cv_dlopen_self_static in |
| 18841 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 18842 | *) enable_dlopen_self_static=unknown ;; |
| 18843 | esac |
| 18844 | fi |
| 18845 | |
| 18846 | |
| 18847 | # The else clause should only fire when bootstrapping the |
| 18848 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 18849 | # with your package, and you will get complaints that there are |
| 18850 | # no rules to generate ltmain.sh. |
| 18851 | if test -f "$ltmain"; then |
| 18852 | # See if we are running on zsh, and set the options which allow our commands through |
| 18853 | # without removal of \ escapes. |
| 18854 | if test -n "${ZSH_VERSION+set}" ; then |
| 18855 | setopt NO_GLOB_SUBST |
| 18856 | fi |
| 18857 | # Now quote all the things that may contain metacharacters while being |
| 18858 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 18859 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18860 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 18861 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18862 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 18863 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 18864 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 18865 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 18866 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 18867 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 18868 | old_postinstall_cmds old_postuninstall_cmds \ |
| 18869 | compiler_GCJ \ |
| 18870 | CC_GCJ \ |
| 18871 | LD_GCJ \ |
| 18872 | lt_prog_compiler_wl_GCJ \ |
| 18873 | lt_prog_compiler_pic_GCJ \ |
| 18874 | lt_prog_compiler_static_GCJ \ |
| 18875 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 18876 | export_dynamic_flag_spec_GCJ \ |
| 18877 | thread_safe_flag_spec_GCJ \ |
| 18878 | whole_archive_flag_spec_GCJ \ |
| 18879 | enable_shared_with_static_runtimes_GCJ \ |
| 18880 | old_archive_cmds_GCJ \ |
| 18881 | old_archive_from_new_cmds_GCJ \ |
| 18882 | predep_objects_GCJ \ |
| 18883 | postdep_objects_GCJ \ |
| 18884 | predeps_GCJ \ |
| 18885 | postdeps_GCJ \ |
| 18886 | compiler_lib_search_path_GCJ \ |
| 18887 | archive_cmds_GCJ \ |
| 18888 | archive_expsym_cmds_GCJ \ |
| 18889 | postinstall_cmds_GCJ \ |
| 18890 | postuninstall_cmds_GCJ \ |
| 18891 | old_archive_from_expsyms_cmds_GCJ \ |
| 18892 | allow_undefined_flag_GCJ \ |
| 18893 | no_undefined_flag_GCJ \ |
| 18894 | export_symbols_cmds_GCJ \ |
| 18895 | hardcode_libdir_flag_spec_GCJ \ |
| 18896 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 18897 | hardcode_libdir_separator_GCJ \ |
| 18898 | hardcode_automatic_GCJ \ |
| 18899 | module_cmds_GCJ \ |
| 18900 | module_expsym_cmds_GCJ \ |
| 18901 | lt_cv_prog_compiler_c_o_GCJ \ |
| 18902 | exclude_expsyms_GCJ \ |
| 18903 | include_expsyms_GCJ; do |
| 18904 | |
| 18905 | case $var in |
| 18906 | old_archive_cmds_GCJ | \ |
| 18907 | old_archive_from_new_cmds_GCJ | \ |
| 18908 | archive_cmds_GCJ | \ |
| 18909 | archive_expsym_cmds_GCJ | \ |
| 18910 | module_cmds_GCJ | \ |
| 18911 | module_expsym_cmds_GCJ | \ |
| 18912 | old_archive_from_expsyms_cmds_GCJ | \ |
| 18913 | export_symbols_cmds_GCJ | \ |
| 18914 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 18915 | postinstall_cmds | postuninstall_cmds | \ |
| 18916 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 18917 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 18918 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18919 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18920 | ;; |
| 18921 | *) |
| 18922 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 18923 | ;; |
| 18924 | esac |
| 18925 | done |
| 18926 | |
| 18927 | case $lt_echo in |
| 18928 | *'\$0 --fallback-echo"') |
| 18929 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 18930 | ;; |
| 18931 | esac |
| 18932 | |
| 18933 | cfgfile="$ofile" |
| 18934 | |
| 18935 | cat <<__EOF__ >> "$cfgfile" |
| 18936 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 18937 | |
| 18938 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18939 | |
| 18940 | # Shell to use when invoking shell scripts. |
| 18941 | SHELL=$lt_SHELL |
| 18942 | |
| 18943 | # Whether or not to build shared libraries. |
| 18944 | build_libtool_libs=$enable_shared |
| 18945 | |
| 18946 | # Whether or not to build static libraries. |
| 18947 | build_old_libs=$enable_static |
| 18948 | |
| 18949 | # Whether or not to add -lc for building shared libraries. |
| 18950 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 18951 | |
| 18952 | # Whether or not to disallow shared libs when runtime libs are static |
| 18953 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 18954 | |
| 18955 | # Whether or not to optimize for fast installation. |
| 18956 | fast_install=$enable_fast_install |
| 18957 | |
| 18958 | # The host system. |
| 18959 | host_alias=$host_alias |
| 18960 | host=$host |
| 18961 | |
| 18962 | # An echo program that does not interpret backslashes. |
| 18963 | echo=$lt_echo |
| 18964 | |
| 18965 | # The archiver. |
| 18966 | AR=$lt_AR |
| 18967 | AR_FLAGS=$lt_AR_FLAGS |
| 18968 | |
| 18969 | # A C compiler. |
| 18970 | LTCC=$lt_LTCC |
| 18971 | |
| 18972 | # A language-specific compiler. |
| 18973 | CC=$lt_compiler_GCJ |
| 18974 | |
| 18975 | # Is the compiler the GNU C compiler? |
| 18976 | with_gcc=$GCC_GCJ |
| 18977 | |
| 18978 | # An ERE matcher. |
| 18979 | EGREP=$lt_EGREP |
| 18980 | |
| 18981 | # The linker used to build libraries. |
| 18982 | LD=$lt_LD_GCJ |
| 18983 | |
| 18984 | # Whether we need hard or soft links. |
| 18985 | LN_S=$lt_LN_S |
| 18986 | |
| 18987 | # A BSD-compatible nm program. |
| 18988 | NM=$lt_NM |
| 18989 | |
| 18990 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18991 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18992 | |
| 18993 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18994 | MAGIC_CMD=$MAGIC_CMD |
| 18995 | |
| 18996 | # Used on cygwin: DLL creation program. |
| 18997 | DLLTOOL="$DLLTOOL" |
| 18998 | |
| 18999 | # Used on cygwin: object dumper. |
| 19000 | OBJDUMP="$OBJDUMP" |
| 19001 | |
| 19002 | # Used on cygwin: assembler. |
| 19003 | AS="$AS" |
| 19004 | |
| 19005 | # The name of the directory that contains temporary libtool files. |
| 19006 | objdir=$objdir |
| 19007 | |
| 19008 | # How to create reloadable object files. |
| 19009 | reload_flag=$lt_reload_flag |
| 19010 | reload_cmds=$lt_reload_cmds |
| 19011 | |
| 19012 | # How to pass a linker flag through the compiler. |
| 19013 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 19014 | |
| 19015 | # Object file suffix (normally "o"). |
| 19016 | objext="$ac_objext" |
| 19017 | |
| 19018 | # Old archive suffix (normally "a"). |
| 19019 | libext="$libext" |
| 19020 | |
| 19021 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19022 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19023 | |
| 19024 | # Executable file suffix (normally ""). |
| 19025 | exeext="$exeext" |
| 19026 | |
| 19027 | # Additional compiler flags for building library objects. |
| 19028 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 19029 | pic_mode=$pic_mode |
| 19030 | |
| 19031 | # What is the maximum length of a command? |
| 19032 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 19033 | |
| 19034 | # Does compiler simultaneously support -c and -o options? |
| 19035 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 19036 | |
| 19037 | # Must we lock files when doing compilation ? |
| 19038 | need_locks=$lt_need_locks |
| 19039 | |
| 19040 | # Do we need the lib prefix for modules? |
| 19041 | need_lib_prefix=$need_lib_prefix |
| 19042 | |
| 19043 | # Do we need a version for libraries? |
| 19044 | need_version=$need_version |
| 19045 | |
| 19046 | # Whether dlopen is supported. |
| 19047 | dlopen_support=$enable_dlopen |
| 19048 | |
| 19049 | # Whether dlopen of programs is supported. |
| 19050 | dlopen_self=$enable_dlopen_self |
| 19051 | |
| 19052 | # Whether dlopen of statically linked programs is supported. |
| 19053 | dlopen_self_static=$enable_dlopen_self_static |
| 19054 | |
| 19055 | # Compiler flag to prevent dynamic linking. |
| 19056 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 19057 | |
| 19058 | # Compiler flag to turn off builtin functions. |
| 19059 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 19060 | |
| 19061 | # Compiler flag to allow reflexive dlopens. |
| 19062 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 19063 | |
| 19064 | # Compiler flag to generate shared objects directly from archives. |
| 19065 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 19066 | |
| 19067 | # Compiler flag to generate thread-safe objects. |
| 19068 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 19069 | |
| 19070 | # Library versioning type. |
| 19071 | version_type=$version_type |
| 19072 | |
| 19073 | # Format of library name prefix. |
| 19074 | libname_spec=$lt_libname_spec |
| 19075 | |
| 19076 | # List of archive names. First name is the real one, the rest are links. |
| 19077 | # The last name is the one that the linker finds with -lNAME. |
| 19078 | library_names_spec=$lt_library_names_spec |
| 19079 | |
| 19080 | # The coded name of the library, if different from the real name. |
| 19081 | soname_spec=$lt_soname_spec |
| 19082 | |
| 19083 | # Commands used to build and install an old-style archive. |
| 19084 | RANLIB=$lt_RANLIB |
| 19085 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 19086 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 19087 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 19088 | |
| 19089 | # Create an old-style archive from a shared archive. |
| 19090 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 19091 | |
| 19092 | # Create a temporary old-style archive to link instead of a shared archive. |
| 19093 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 19094 | |
| 19095 | # Commands used to build and install a shared archive. |
| 19096 | archive_cmds=$lt_archive_cmds_GCJ |
| 19097 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 19098 | postinstall_cmds=$lt_postinstall_cmds |
| 19099 | postuninstall_cmds=$lt_postuninstall_cmds |
| 19100 | |
| 19101 | # Commands used to build a loadable module (assumed same as above if empty) |
| 19102 | module_cmds=$lt_module_cmds_GCJ |
| 19103 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 19104 | |
| 19105 | # Commands to strip libraries. |
| 19106 | old_striplib=$lt_old_striplib |
| 19107 | striplib=$lt_striplib |
| 19108 | |
| 19109 | # Dependencies to place before the objects being linked to create a |
| 19110 | # shared library. |
| 19111 | predep_objects=$lt_predep_objects_GCJ |
| 19112 | |
| 19113 | # Dependencies to place after the objects being linked to create a |
| 19114 | # shared library. |
| 19115 | postdep_objects=$lt_postdep_objects_GCJ |
| 19116 | |
| 19117 | # Dependencies to place before the objects being linked to create a |
| 19118 | # shared library. |
| 19119 | predeps=$lt_predeps_GCJ |
| 19120 | |
| 19121 | # Dependencies to place after the objects being linked to create a |
| 19122 | # shared library. |
| 19123 | postdeps=$lt_postdeps_GCJ |
| 19124 | |
| 19125 | # The library search path used internally by the compiler when linking |
| 19126 | # a shared library. |
| 19127 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 19128 | |
| 19129 | # Method to check whether dependent libraries are shared objects. |
| 19130 | deplibs_check_method=$lt_deplibs_check_method |
| 19131 | |
| 19132 | # Command to use when deplibs_check_method == file_magic. |
| 19133 | file_magic_cmd=$lt_file_magic_cmd |
| 19134 | |
| 19135 | # Flag that allows shared libraries with undefined symbols to be built. |
| 19136 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 19137 | |
| 19138 | # Flag that forces no undefined symbols. |
| 19139 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 19140 | |
| 19141 | # Commands used to finish a libtool library installation in a directory. |
| 19142 | finish_cmds=$lt_finish_cmds |
| 19143 | |
| 19144 | # Same as above, but a single script fragment to be evaled but not shown. |
| 19145 | finish_eval=$lt_finish_eval |
| 19146 | |
| 19147 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 19148 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 19149 | |
| 19150 | # Transform the output of nm in a proper C declaration |
| 19151 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 19152 | |
| 19153 | # Transform the output of nm in a C name address pair |
| 19154 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 19155 | |
| 19156 | # This is the shared library runtime path variable. |
| 19157 | runpath_var=$runpath_var |
| 19158 | |
| 19159 | # This is the shared library path variable. |
| 19160 | shlibpath_var=$shlibpath_var |
| 19161 | |
| 19162 | # Is shlibpath searched before the hard-coded library search path? |
| 19163 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 19164 | |
| 19165 | # How to hardcode a shared library path into an executable. |
| 19166 | hardcode_action=$hardcode_action_GCJ |
| 19167 | |
| 19168 | # Whether we should hardcode library paths into libraries. |
| 19169 | hardcode_into_libs=$hardcode_into_libs |
| 19170 | |
| 19171 | # Flag to hardcode \$libdir into a binary during linking. |
| 19172 | # This must work even if \$libdir does not exist. |
| 19173 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 19174 | |
| 19175 | # If ld is used when linking, flag to hardcode \$libdir into |
| 19176 | # a binary during linking. This must work even if \$libdir does |
| 19177 | # not exist. |
| 19178 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 19179 | |
| 19180 | # Whether we need a single -rpath flag with a separated argument. |
| 19181 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 19182 | |
| 19183 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 19184 | # resulting binary. |
| 19185 | hardcode_direct=$hardcode_direct_GCJ |
| 19186 | |
| 19187 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 19188 | # resulting binary. |
| 19189 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 19190 | |
| 19191 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 19192 | # the resulting binary. |
| 19193 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 19194 | |
| 19195 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 19196 | # and all subsequent libraries and executables linked against it. |
| 19197 | hardcode_automatic=$hardcode_automatic_GCJ |
| 19198 | |
| 19199 | # Variables whose values should be saved in libtool wrapper scripts and |
| 19200 | # restored at relink time. |
| 19201 | variables_saved_for_relink="$variables_saved_for_relink" |
| 19202 | |
| 19203 | # Whether libtool must link a program against all its dependency libraries. |
| 19204 | link_all_deplibs=$link_all_deplibs_GCJ |
| 19205 | |
| 19206 | # Compile-time system search path for libraries |
| 19207 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 19208 | |
| 19209 | # Run-time system search path for libraries |
| 19210 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 19211 | |
| 19212 | # Fix the shell variable \$srcfile for the compiler. |
| 19213 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 19214 | |
| 19215 | # Set to yes if exported symbols are required. |
| 19216 | always_export_symbols=$always_export_symbols_GCJ |
| 19217 | |
| 19218 | # The commands to list exported symbols. |
| 19219 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 19220 | |
| 19221 | # The commands to extract the exported symbol list from a shared archive. |
| 19222 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 19223 | |
| 19224 | # Symbols that should not be listed in the preloaded symbols. |
| 19225 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 19226 | |
| 19227 | # Symbols that must always be exported. |
| 19228 | include_expsyms=$lt_include_expsyms_GCJ |
| 19229 | |
| 19230 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 19231 | |
| 19232 | __EOF__ |
| 19233 | |
| 19234 | |
| 19235 | else |
| 19236 | # If there is no Makefile yet, we rely on a make rule to execute |
| 19237 | # `config.status --recheck' to rerun these tests and create the |
| 19238 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19239 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 19240 | if test -f "$ltmain_in"; then |
| 19241 | test -f Makefile && make "$ltmain" |
| 19242 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19243 | fi |
| 19244 | |
| 19245 | |
| 19246 | ac_ext=c |
| 19247 | ac_cpp='$CPP $CPPFLAGS' |
| 19248 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19249 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19250 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19251 | |
| 19252 | CC="$lt_save_CC" |
| 19253 | |
| 19254 | else |
| 19255 | tagname="" |
| 19256 | fi |
| 19257 | ;; |
| 19258 | |
| 19259 | RC) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19260 | ac_ext=c |
| 19261 | ac_cpp='$CPP $CPPFLAGS' |
| 19262 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19263 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19264 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19265 | |
| 19266 | |
| 19267 | # Source file extension for RC test sources. |
| 19268 | ac_ext=rc |
| 19269 | |
| 19270 | # Object file extension for compiled RC test sources. |
| 19271 | objext=o |
| 19272 | objext_RC=$objext |
| 19273 | |
| 19274 | # Code to be used in simple compile tests |
| 19275 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 19276 | |
| 19277 | # Code to be used in simple link tests |
| 19278 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 19279 | |
| 19280 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 19281 | |
| 19282 | # If no C compiler was specified, use CC. |
| 19283 | LTCC=${LTCC-"$CC"} |
| 19284 | |
| 19285 | # Allow CC to be a program name with arguments. |
| 19286 | compiler=$CC |
| 19287 | |
| 19288 | |
| 19289 | # Allow CC to be a program name with arguments. |
| 19290 | lt_save_CC="$CC" |
| 19291 | CC=${RC-"windres"} |
| 19292 | compiler=$CC |
| 19293 | compiler_RC=$CC |
| 19294 | lt_cv_prog_compiler_c_o_RC=yes |
| 19295 | |
| 19296 | # The else clause should only fire when bootstrapping the |
| 19297 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 19298 | # with your package, and you will get complaints that there are |
| 19299 | # no rules to generate ltmain.sh. |
| 19300 | if test -f "$ltmain"; then |
| 19301 | # See if we are running on zsh, and set the options which allow our commands through |
| 19302 | # without removal of \ escapes. |
| 19303 | if test -n "${ZSH_VERSION+set}" ; then |
| 19304 | setopt NO_GLOB_SUBST |
| 19305 | fi |
| 19306 | # Now quote all the things that may contain metacharacters while being |
| 19307 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 19308 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19309 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 19310 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19311 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 19312 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 19313 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 19314 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 19315 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 19316 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 19317 | old_postinstall_cmds old_postuninstall_cmds \ |
| 19318 | compiler_RC \ |
| 19319 | CC_RC \ |
| 19320 | LD_RC \ |
| 19321 | lt_prog_compiler_wl_RC \ |
| 19322 | lt_prog_compiler_pic_RC \ |
| 19323 | lt_prog_compiler_static_RC \ |
| 19324 | lt_prog_compiler_no_builtin_flag_RC \ |
| 19325 | export_dynamic_flag_spec_RC \ |
| 19326 | thread_safe_flag_spec_RC \ |
| 19327 | whole_archive_flag_spec_RC \ |
| 19328 | enable_shared_with_static_runtimes_RC \ |
| 19329 | old_archive_cmds_RC \ |
| 19330 | old_archive_from_new_cmds_RC \ |
| 19331 | predep_objects_RC \ |
| 19332 | postdep_objects_RC \ |
| 19333 | predeps_RC \ |
| 19334 | postdeps_RC \ |
| 19335 | compiler_lib_search_path_RC \ |
| 19336 | archive_cmds_RC \ |
| 19337 | archive_expsym_cmds_RC \ |
| 19338 | postinstall_cmds_RC \ |
| 19339 | postuninstall_cmds_RC \ |
| 19340 | old_archive_from_expsyms_cmds_RC \ |
| 19341 | allow_undefined_flag_RC \ |
| 19342 | no_undefined_flag_RC \ |
| 19343 | export_symbols_cmds_RC \ |
| 19344 | hardcode_libdir_flag_spec_RC \ |
| 19345 | hardcode_libdir_flag_spec_ld_RC \ |
| 19346 | hardcode_libdir_separator_RC \ |
| 19347 | hardcode_automatic_RC \ |
| 19348 | module_cmds_RC \ |
| 19349 | module_expsym_cmds_RC \ |
| 19350 | lt_cv_prog_compiler_c_o_RC \ |
| 19351 | exclude_expsyms_RC \ |
| 19352 | include_expsyms_RC; do |
| 19353 | |
| 19354 | case $var in |
| 19355 | old_archive_cmds_RC | \ |
| 19356 | old_archive_from_new_cmds_RC | \ |
| 19357 | archive_cmds_RC | \ |
| 19358 | archive_expsym_cmds_RC | \ |
| 19359 | module_cmds_RC | \ |
| 19360 | module_expsym_cmds_RC | \ |
| 19361 | old_archive_from_expsyms_cmds_RC | \ |
| 19362 | export_symbols_cmds_RC | \ |
| 19363 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 19364 | postinstall_cmds | postuninstall_cmds | \ |
| 19365 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 19366 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 19367 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19368 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19369 | ;; |
| 19370 | *) |
| 19371 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 19372 | ;; |
| 19373 | esac |
| 19374 | done |
| 19375 | |
| 19376 | case $lt_echo in |
| 19377 | *'\$0 --fallback-echo"') |
| 19378 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 19379 | ;; |
| 19380 | esac |
| 19381 | |
| 19382 | cfgfile="$ofile" |
| 19383 | |
| 19384 | cat <<__EOF__ >> "$cfgfile" |
| 19385 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 19386 | |
| 19387 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 19388 | |
| 19389 | # Shell to use when invoking shell scripts. |
| 19390 | SHELL=$lt_SHELL |
| 19391 | |
| 19392 | # Whether or not to build shared libraries. |
| 19393 | build_libtool_libs=$enable_shared |
| 19394 | |
| 19395 | # Whether or not to build static libraries. |
| 19396 | build_old_libs=$enable_static |
| 19397 | |
| 19398 | # Whether or not to add -lc for building shared libraries. |
| 19399 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 19400 | |
| 19401 | # Whether or not to disallow shared libs when runtime libs are static |
| 19402 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 19403 | |
| 19404 | # Whether or not to optimize for fast installation. |
| 19405 | fast_install=$enable_fast_install |
| 19406 | |
| 19407 | # The host system. |
| 19408 | host_alias=$host_alias |
| 19409 | host=$host |
| 19410 | |
| 19411 | # An echo program that does not interpret backslashes. |
| 19412 | echo=$lt_echo |
| 19413 | |
| 19414 | # The archiver. |
| 19415 | AR=$lt_AR |
| 19416 | AR_FLAGS=$lt_AR_FLAGS |
| 19417 | |
| 19418 | # A C compiler. |
| 19419 | LTCC=$lt_LTCC |
| 19420 | |
| 19421 | # A language-specific compiler. |
| 19422 | CC=$lt_compiler_RC |
| 19423 | |
| 19424 | # Is the compiler the GNU C compiler? |
| 19425 | with_gcc=$GCC_RC |
| 19426 | |
| 19427 | # An ERE matcher. |
| 19428 | EGREP=$lt_EGREP |
| 19429 | |
| 19430 | # The linker used to build libraries. |
| 19431 | LD=$lt_LD_RC |
| 19432 | |
| 19433 | # Whether we need hard or soft links. |
| 19434 | LN_S=$lt_LN_S |
| 19435 | |
| 19436 | # A BSD-compatible nm program. |
| 19437 | NM=$lt_NM |
| 19438 | |
| 19439 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19440 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19441 | |
| 19442 | # Used to examine libraries when file_magic_cmd begins "file" |
| 19443 | MAGIC_CMD=$MAGIC_CMD |
| 19444 | |
| 19445 | # Used on cygwin: DLL creation program. |
| 19446 | DLLTOOL="$DLLTOOL" |
| 19447 | |
| 19448 | # Used on cygwin: object dumper. |
| 19449 | OBJDUMP="$OBJDUMP" |
| 19450 | |
| 19451 | # Used on cygwin: assembler. |
| 19452 | AS="$AS" |
| 19453 | |
| 19454 | # The name of the directory that contains temporary libtool files. |
| 19455 | objdir=$objdir |
| 19456 | |
| 19457 | # How to create reloadable object files. |
| 19458 | reload_flag=$lt_reload_flag |
| 19459 | reload_cmds=$lt_reload_cmds |
| 19460 | |
| 19461 | # How to pass a linker flag through the compiler. |
| 19462 | wl=$lt_lt_prog_compiler_wl_RC |
| 19463 | |
| 19464 | # Object file suffix (normally "o"). |
| 19465 | objext="$ac_objext" |
| 19466 | |
| 19467 | # Old archive suffix (normally "a"). |
| 19468 | libext="$libext" |
| 19469 | |
| 19470 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19471 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19472 | |
| 19473 | # Executable file suffix (normally ""). |
| 19474 | exeext="$exeext" |
| 19475 | |
| 19476 | # Additional compiler flags for building library objects. |
| 19477 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 19478 | pic_mode=$pic_mode |
| 19479 | |
| 19480 | # What is the maximum length of a command? |
| 19481 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 19482 | |
| 19483 | # Does compiler simultaneously support -c and -o options? |
| 19484 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 19485 | |
| 19486 | # Must we lock files when doing compilation ? |
| 19487 | need_locks=$lt_need_locks |
| 19488 | |
| 19489 | # Do we need the lib prefix for modules? |
| 19490 | need_lib_prefix=$need_lib_prefix |
| 19491 | |
| 19492 | # Do we need a version for libraries? |
| 19493 | need_version=$need_version |
| 19494 | |
| 19495 | # Whether dlopen is supported. |
| 19496 | dlopen_support=$enable_dlopen |
| 19497 | |
| 19498 | # Whether dlopen of programs is supported. |
| 19499 | dlopen_self=$enable_dlopen_self |
| 19500 | |
| 19501 | # Whether dlopen of statically linked programs is supported. |
| 19502 | dlopen_self_static=$enable_dlopen_self_static |
| 19503 | |
| 19504 | # Compiler flag to prevent dynamic linking. |
| 19505 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 19506 | |
| 19507 | # Compiler flag to turn off builtin functions. |
| 19508 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 19509 | |
| 19510 | # Compiler flag to allow reflexive dlopens. |
| 19511 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 19512 | |
| 19513 | # Compiler flag to generate shared objects directly from archives. |
| 19514 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 19515 | |
| 19516 | # Compiler flag to generate thread-safe objects. |
| 19517 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 19518 | |
| 19519 | # Library versioning type. |
| 19520 | version_type=$version_type |
| 19521 | |
| 19522 | # Format of library name prefix. |
| 19523 | libname_spec=$lt_libname_spec |
| 19524 | |
| 19525 | # List of archive names. First name is the real one, the rest are links. |
| 19526 | # The last name is the one that the linker finds with -lNAME. |
| 19527 | library_names_spec=$lt_library_names_spec |
| 19528 | |
| 19529 | # The coded name of the library, if different from the real name. |
| 19530 | soname_spec=$lt_soname_spec |
| 19531 | |
| 19532 | # Commands used to build and install an old-style archive. |
| 19533 | RANLIB=$lt_RANLIB |
| 19534 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 19535 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 19536 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 19537 | |
| 19538 | # Create an old-style archive from a shared archive. |
| 19539 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 19540 | |
| 19541 | # Create a temporary old-style archive to link instead of a shared archive. |
| 19542 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 19543 | |
| 19544 | # Commands used to build and install a shared archive. |
| 19545 | archive_cmds=$lt_archive_cmds_RC |
| 19546 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 19547 | postinstall_cmds=$lt_postinstall_cmds |
| 19548 | postuninstall_cmds=$lt_postuninstall_cmds |
| 19549 | |
| 19550 | # Commands used to build a loadable module (assumed same as above if empty) |
| 19551 | module_cmds=$lt_module_cmds_RC |
| 19552 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 19553 | |
| 19554 | # Commands to strip libraries. |
| 19555 | old_striplib=$lt_old_striplib |
| 19556 | striplib=$lt_striplib |
| 19557 | |
| 19558 | # Dependencies to place before the objects being linked to create a |
| 19559 | # shared library. |
| 19560 | predep_objects=$lt_predep_objects_RC |
| 19561 | |
| 19562 | # Dependencies to place after the objects being linked to create a |
| 19563 | # shared library. |
| 19564 | postdep_objects=$lt_postdep_objects_RC |
| 19565 | |
| 19566 | # Dependencies to place before the objects being linked to create a |
| 19567 | # shared library. |
| 19568 | predeps=$lt_predeps_RC |
| 19569 | |
| 19570 | # Dependencies to place after the objects being linked to create a |
| 19571 | # shared library. |
| 19572 | postdeps=$lt_postdeps_RC |
| 19573 | |
| 19574 | # The library search path used internally by the compiler when linking |
| 19575 | # a shared library. |
| 19576 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 19577 | |
| 19578 | # Method to check whether dependent libraries are shared objects. |
| 19579 | deplibs_check_method=$lt_deplibs_check_method |
| 19580 | |
| 19581 | # Command to use when deplibs_check_method == file_magic. |
| 19582 | file_magic_cmd=$lt_file_magic_cmd |
| 19583 | |
| 19584 | # Flag that allows shared libraries with undefined symbols to be built. |
| 19585 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 19586 | |
| 19587 | # Flag that forces no undefined symbols. |
| 19588 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 19589 | |
| 19590 | # Commands used to finish a libtool library installation in a directory. |
| 19591 | finish_cmds=$lt_finish_cmds |
| 19592 | |
| 19593 | # Same as above, but a single script fragment to be evaled but not shown. |
| 19594 | finish_eval=$lt_finish_eval |
| 19595 | |
| 19596 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 19597 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 19598 | |
| 19599 | # Transform the output of nm in a proper C declaration |
| 19600 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 19601 | |
| 19602 | # Transform the output of nm in a C name address pair |
| 19603 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 19604 | |
| 19605 | # This is the shared library runtime path variable. |
| 19606 | runpath_var=$runpath_var |
| 19607 | |
| 19608 | # This is the shared library path variable. |
| 19609 | shlibpath_var=$shlibpath_var |
| 19610 | |
| 19611 | # Is shlibpath searched before the hard-coded library search path? |
| 19612 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 19613 | |
| 19614 | # How to hardcode a shared library path into an executable. |
| 19615 | hardcode_action=$hardcode_action_RC |
| 19616 | |
| 19617 | # Whether we should hardcode library paths into libraries. |
| 19618 | hardcode_into_libs=$hardcode_into_libs |
| 19619 | |
| 19620 | # Flag to hardcode \$libdir into a binary during linking. |
| 19621 | # This must work even if \$libdir does not exist. |
| 19622 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 19623 | |
| 19624 | # If ld is used when linking, flag to hardcode \$libdir into |
| 19625 | # a binary during linking. This must work even if \$libdir does |
| 19626 | # not exist. |
| 19627 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 19628 | |
| 19629 | # Whether we need a single -rpath flag with a separated argument. |
| 19630 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 19631 | |
| 19632 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 19633 | # resulting binary. |
| 19634 | hardcode_direct=$hardcode_direct_RC |
| 19635 | |
| 19636 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 19637 | # resulting binary. |
| 19638 | hardcode_minus_L=$hardcode_minus_L_RC |
| 19639 | |
| 19640 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 19641 | # the resulting binary. |
| 19642 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 19643 | |
| 19644 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 19645 | # and all subsequent libraries and executables linked against it. |
| 19646 | hardcode_automatic=$hardcode_automatic_RC |
| 19647 | |
| 19648 | # Variables whose values should be saved in libtool wrapper scripts and |
| 19649 | # restored at relink time. |
| 19650 | variables_saved_for_relink="$variables_saved_for_relink" |
| 19651 | |
| 19652 | # Whether libtool must link a program against all its dependency libraries. |
| 19653 | link_all_deplibs=$link_all_deplibs_RC |
| 19654 | |
| 19655 | # Compile-time system search path for libraries |
| 19656 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 19657 | |
| 19658 | # Run-time system search path for libraries |
| 19659 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 19660 | |
| 19661 | # Fix the shell variable \$srcfile for the compiler. |
| 19662 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 19663 | |
| 19664 | # Set to yes if exported symbols are required. |
| 19665 | always_export_symbols=$always_export_symbols_RC |
| 19666 | |
| 19667 | # The commands to list exported symbols. |
| 19668 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 19669 | |
| 19670 | # The commands to extract the exported symbol list from a shared archive. |
| 19671 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 19672 | |
| 19673 | # Symbols that should not be listed in the preloaded symbols. |
| 19674 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 19675 | |
| 19676 | # Symbols that must always be exported. |
| 19677 | include_expsyms=$lt_include_expsyms_RC |
| 19678 | |
| 19679 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 19680 | |
| 19681 | __EOF__ |
| 19682 | |
| 19683 | |
| 19684 | else |
| 19685 | # If there is no Makefile yet, we rely on a make rule to execute |
| 19686 | # `config.status --recheck' to rerun these tests and create the |
| 19687 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19688 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 19689 | if test -f "$ltmain_in"; then |
| 19690 | test -f Makefile && make "$ltmain" |
| 19691 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19692 | fi |
| 19693 | |
| 19694 | |
| 19695 | ac_ext=c |
| 19696 | ac_cpp='$CPP $CPPFLAGS' |
| 19697 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19698 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19699 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19700 | |
| 19701 | CC="$lt_save_CC" |
| 19702 | |
| 19703 | ;; |
| 19704 | |
| 19705 | *) |
| 19706 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 19707 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 19708 | { (exit 1); exit 1; }; } |
| 19709 | ;; |
| 19710 | esac |
| 19711 | |
| 19712 | # Append the new tag name to the list of available tags. |
| 19713 | if test -n "$tagname" ; then |
| 19714 | available_tags="$available_tags $tagname" |
| 19715 | fi |
| 19716 | fi |
| 19717 | done |
| 19718 | IFS="$lt_save_ifs" |
| 19719 | |
| 19720 | # Now substitute the updated list of available tags. |
| 19721 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 19722 | mv "${ofile}T" "$ofile" |
| 19723 | chmod +x "$ofile" |
| 19724 | else |
| 19725 | rm -f "${ofile}T" |
| 19726 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 19727 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 19728 | { (exit 1); exit 1; }; } |
| 19729 | fi |
| 19730 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19731 | |
| 19732 | |
| 19733 | |
| 19734 | # This can be used to rebuild libtool when needed |
| 19735 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 19736 | |
| 19737 | # Always use our own libtool. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19738 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19739 | |
| 19740 | # Prevent multiple expansion |
| 19741 | |
| 19742 | |
| 19743 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19744 | |
| 19745 | |
| 19746 | |
| 19747 | |
| 19748 | |
| 19749 | |
| 19750 | |
| 19751 | |
| 19752 | |
| 19753 | |
| 19754 | |
| 19755 | |
| 19756 | |
| 19757 | |
| 19758 | |
| 19759 | |
| 19760 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19761 | |
| 19762 | echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 19763 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6 |
| 19764 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 19765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19766 | else |
| 19767 | llvm_cv_gnu_make_command='' |
| 19768 | for a in "$MAKE" make gmake gnumake ; do |
| 19769 | if test -z "$a" ; then continue ; fi ; |
| 19770 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 19771 | then |
| 19772 | llvm_cv_gnu_make_command=$a ; |
| 19773 | break; |
| 19774 | fi |
| 19775 | done |
| 19776 | fi |
| 19777 | echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 19778 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6 |
| 19779 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 19780 | ifGNUmake='' ; |
| 19781 | else |
| 19782 | ifGNUmake='#' ; |
| 19783 | echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 19784 | echo "${ECHO_T}\"Not found\"" >&6; |
| 19785 | fi |
| 19786 | |
| 19787 | |
| 19788 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 19789 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 19790 | LN_S=$as_ln_s |
| 19791 | if test "$LN_S" = "ln -s"; then |
| 19792 | echo "$as_me:$LINENO: result: yes" >&5 |
| 19793 | echo "${ECHO_T}yes" >&6 |
| 19794 | else |
| 19795 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 19796 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 19797 | fi |
| 19798 | |
| 19799 | # Extract the first word of "find", so it can be a program name with args. |
| 19800 | set dummy find; ac_word=$2 |
| 19801 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19802 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 19803 | if test "${ac_cv_path_FIND+set}" = set; then |
| 19804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19805 | else |
| 19806 | case $FIND in |
| 19807 | [\\/]* | ?:[\\/]*) |
| 19808 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 19809 | ;; |
| 19810 | *) |
| 19811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19812 | for as_dir in $PATH |
| 19813 | do |
| 19814 | IFS=$as_save_IFS |
| 19815 | test -z "$as_dir" && as_dir=. |
| 19816 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19817 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 19818 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
| 19819 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19820 | break 2 |
| 19821 | fi |
| 19822 | done |
| 19823 | done |
| 19824 | |
| 19825 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 19826 | ;; |
| 19827 | esac |
| 19828 | fi |
| 19829 | FIND=$ac_cv_path_FIND |
| 19830 | |
| 19831 | if test -n "$FIND"; then |
| 19832 | echo "$as_me:$LINENO: result: $FIND" >&5 |
| 19833 | echo "${ECHO_T}$FIND" >&6 |
| 19834 | else |
| 19835 | echo "$as_me:$LINENO: result: no" >&5 |
| 19836 | echo "${ECHO_T}no" >&6 |
| 19837 | fi |
| 19838 | |
| 19839 | # Extract the first word of "grep", so it can be a program name with args. |
| 19840 | set dummy grep; ac_word=$2 |
| 19841 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19842 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 19843 | if test "${ac_cv_path_GREP+set}" = set; then |
| 19844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19845 | else |
| 19846 | case $GREP in |
| 19847 | [\\/]* | ?:[\\/]*) |
| 19848 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 19849 | ;; |
| 19850 | *) |
| 19851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19852 | for as_dir in $PATH |
| 19853 | do |
| 19854 | IFS=$as_save_IFS |
| 19855 | test -z "$as_dir" && as_dir=. |
| 19856 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19857 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 19858 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
| 19859 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19860 | break 2 |
| 19861 | fi |
| 19862 | done |
| 19863 | done |
| 19864 | |
| 19865 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 19866 | ;; |
| 19867 | esac |
| 19868 | fi |
| 19869 | GREP=$ac_cv_path_GREP |
| 19870 | |
| 19871 | if test -n "$GREP"; then |
| 19872 | echo "$as_me:$LINENO: result: $GREP" >&5 |
| 19873 | echo "${ECHO_T}$GREP" >&6 |
| 19874 | else |
| 19875 | echo "$as_me:$LINENO: result: no" >&5 |
| 19876 | echo "${ECHO_T}no" >&6 |
| 19877 | fi |
| 19878 | |
| 19879 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 19880 | set dummy mkdir; ac_word=$2 |
| 19881 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19882 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 19883 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 19884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19885 | else |
| 19886 | case $MKDIR in |
| 19887 | [\\/]* | ?:[\\/]*) |
| 19888 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 19889 | ;; |
| 19890 | *) |
| 19891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19892 | for as_dir in $PATH |
| 19893 | do |
| 19894 | IFS=$as_save_IFS |
| 19895 | test -z "$as_dir" && as_dir=. |
| 19896 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19897 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 19898 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 19899 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19900 | break 2 |
| 19901 | fi |
| 19902 | done |
| 19903 | done |
| 19904 | |
| 19905 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 19906 | ;; |
| 19907 | esac |
| 19908 | fi |
| 19909 | MKDIR=$ac_cv_path_MKDIR |
| 19910 | |
| 19911 | if test -n "$MKDIR"; then |
| 19912 | echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 19913 | echo "${ECHO_T}$MKDIR" >&6 |
| 19914 | else |
| 19915 | echo "$as_me:$LINENO: result: no" >&5 |
| 19916 | echo "${ECHO_T}no" >&6 |
| 19917 | fi |
| 19918 | |
| 19919 | # Extract the first word of "mv", so it can be a program name with args. |
| 19920 | set dummy mv; ac_word=$2 |
| 19921 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19922 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 19923 | if test "${ac_cv_path_MV+set}" = set; then |
| 19924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19925 | else |
| 19926 | case $MV in |
| 19927 | [\\/]* | ?:[\\/]*) |
| 19928 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 19929 | ;; |
| 19930 | *) |
| 19931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19932 | for as_dir in $PATH |
| 19933 | do |
| 19934 | IFS=$as_save_IFS |
| 19935 | test -z "$as_dir" && as_dir=. |
| 19936 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19937 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 19938 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 19939 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19940 | break 2 |
| 19941 | fi |
| 19942 | done |
| 19943 | done |
| 19944 | |
| 19945 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 19946 | ;; |
| 19947 | esac |
| 19948 | fi |
| 19949 | MV=$ac_cv_path_MV |
| 19950 | |
| 19951 | if test -n "$MV"; then |
| 19952 | echo "$as_me:$LINENO: result: $MV" >&5 |
| 19953 | echo "${ECHO_T}$MV" >&6 |
| 19954 | else |
| 19955 | echo "$as_me:$LINENO: result: no" >&5 |
| 19956 | echo "${ECHO_T}no" >&6 |
| 19957 | fi |
| 19958 | |
| 19959 | if test -n "$ac_tool_prefix"; then |
| 19960 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 19961 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 19962 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19963 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 19964 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 19965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19966 | else |
| 19967 | if test -n "$RANLIB"; then |
| 19968 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 19969 | else |
| 19970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19971 | for as_dir in $PATH |
| 19972 | do |
| 19973 | IFS=$as_save_IFS |
| 19974 | test -z "$as_dir" && as_dir=. |
| 19975 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19976 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 19977 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 19978 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19979 | break 2 |
| 19980 | fi |
| 19981 | done |
| 19982 | done |
| 19983 | |
| 19984 | fi |
| 19985 | fi |
| 19986 | RANLIB=$ac_cv_prog_RANLIB |
| 19987 | if test -n "$RANLIB"; then |
| 19988 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 19989 | echo "${ECHO_T}$RANLIB" >&6 |
| 19990 | else |
| 19991 | echo "$as_me:$LINENO: result: no" >&5 |
| 19992 | echo "${ECHO_T}no" >&6 |
| 19993 | fi |
| 19994 | |
| 19995 | fi |
| 19996 | if test -z "$ac_cv_prog_RANLIB"; then |
| 19997 | ac_ct_RANLIB=$RANLIB |
| 19998 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 19999 | set dummy ranlib; ac_word=$2 |
| 20000 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20001 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 20002 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 20003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20004 | else |
| 20005 | if test -n "$ac_ct_RANLIB"; then |
| 20006 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 20007 | else |
| 20008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20009 | for as_dir in $PATH |
| 20010 | do |
| 20011 | IFS=$as_save_IFS |
| 20012 | test -z "$as_dir" && as_dir=. |
| 20013 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 20014 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 20015 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 20016 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20017 | break 2 |
| 20018 | fi |
| 20019 | done |
| 20020 | done |
| 20021 | |
| 20022 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 20023 | fi |
| 20024 | fi |
| 20025 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 20026 | if test -n "$ac_ct_RANLIB"; then |
| 20027 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 20028 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 20029 | else |
| 20030 | echo "$as_me:$LINENO: result: no" >&5 |
| 20031 | echo "${ECHO_T}no" >&6 |
| 20032 | fi |
| 20033 | |
| 20034 | RANLIB=$ac_ct_RANLIB |
| 20035 | else |
| 20036 | RANLIB="$ac_cv_prog_RANLIB" |
| 20037 | fi |
| 20038 | |
| 20039 | # Extract the first word of "rm", so it can be a program name with args. |
| 20040 | set dummy rm; ac_word=$2 |
| 20041 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20042 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 20043 | if test "${ac_cv_path_RM+set}" = set; then |
| 20044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20045 | else |
| 20046 | case $RM in |
| 20047 | [\\/]* | ?:[\\/]*) |
| 20048 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 20049 | ;; |
| 20050 | *) |
| 20051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20052 | for as_dir in $PATH |
| 20053 | do |
| 20054 | IFS=$as_save_IFS |
| 20055 | test -z "$as_dir" && as_dir=. |
| 20056 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 20057 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 20058 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 20059 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20060 | break 2 |
| 20061 | fi |
| 20062 | done |
| 20063 | done |
| 20064 | |
| 20065 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 20066 | ;; |
| 20067 | esac |
| 20068 | fi |
| 20069 | RM=$ac_cv_path_RM |
| 20070 | |
| 20071 | if test -n "$RM"; then |
| 20072 | echo "$as_me:$LINENO: result: $RM" >&5 |
| 20073 | echo "${ECHO_T}$RM" >&6 |
| 20074 | else |
| 20075 | echo "$as_me:$LINENO: result: no" >&5 |
| 20076 | echo "${ECHO_T}no" >&6 |
| 20077 | fi |
| 20078 | |
| 20079 | # Extract the first word of "sed", so it can be a program name with args. |
| 20080 | set dummy sed; ac_word=$2 |
| 20081 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20082 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 20083 | if test "${ac_cv_path_SED+set}" = set; then |
| 20084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20085 | else |
| 20086 | case $SED in |
| 20087 | [\\/]* | ?:[\\/]*) |
| 20088 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 20089 | ;; |
| 20090 | *) |
| 20091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20092 | for as_dir in $PATH |
| 20093 | do |
| 20094 | IFS=$as_save_IFS |
| 20095 | test -z "$as_dir" && as_dir=. |
| 20096 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 20097 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 20098 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 20099 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20100 | break 2 |
| 20101 | fi |
| 20102 | done |
| 20103 | done |
| 20104 | |
| 20105 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 20106 | ;; |
| 20107 | esac |
| 20108 | fi |
| 20109 | SED=$ac_cv_path_SED |
| 20110 | |
| 20111 | if test -n "$SED"; then |
| 20112 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 20113 | echo "${ECHO_T}$SED" >&6 |
| 20114 | else |
| 20115 | echo "$as_me:$LINENO: result: no" >&5 |
| 20116 | echo "${ECHO_T}no" >&6 |
| 20117 | fi |
| 20118 | |
Reid Spencer | ad354c9 | 2004-10-25 08:18:47 +0000 | [diff] [blame] | 20119 | # Extract the first word of "tar", so it can be a program name with args. |
| 20120 | set dummy tar; ac_word=$2 |
| 20121 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20122 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 20123 | if test "${ac_cv_path_TAR+set}" = set; then |
| 20124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20125 | else |
| 20126 | case $TAR in |
| 20127 | [\\/]* | ?:[\\/]*) |
| 20128 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 20129 | ;; |
| 20130 | *) |
| 20131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20132 | for as_dir in $PATH |
| 20133 | do |
| 20134 | IFS=$as_save_IFS |
| 20135 | test -z "$as_dir" && as_dir=. |
| 20136 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 20137 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 20138 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
| 20139 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20140 | break 2 |
| 20141 | fi |
| 20142 | done |
| 20143 | done |
| 20144 | |
| 20145 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 20146 | ;; |
| 20147 | esac |
| 20148 | fi |
| 20149 | TAR=$ac_cv_path_TAR |
| 20150 | |
| 20151 | if test -n "$TAR"; then |
| 20152 | echo "$as_me:$LINENO: result: $TAR" >&5 |
| 20153 | echo "${ECHO_T}$TAR" >&6 |
| 20154 | else |
| 20155 | echo "$as_me:$LINENO: result: no" >&5 |
| 20156 | echo "${ECHO_T}no" >&6 |
| 20157 | fi |
| 20158 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20159 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20160 | # Find a good install program. We prefer a C program (faster), |
| 20161 | # so one script is as good as another. But avoid the broken or |
| 20162 | # incompatible versions: |
| 20163 | # SysV /etc/install, /usr/sbin/install |
| 20164 | # SunOS /usr/etc/install |
| 20165 | # IRIX /sbin/install |
| 20166 | # AIX /bin/install |
| 20167 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 20168 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 20169 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 20170 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 20171 | # OS/2's system install, which has a completely different semantic |
| 20172 | # ./install, which can be erroneously created by make from ./install.sh. |
| 20173 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 20174 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 20175 | if test -z "$INSTALL"; then |
| 20176 | if test "${ac_cv_path_install+set}" = set; then |
| 20177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20178 | else |
| 20179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20180 | for as_dir in $PATH |
| 20181 | do |
| 20182 | IFS=$as_save_IFS |
| 20183 | test -z "$as_dir" && as_dir=. |
| 20184 | # Account for people who put trailing slashes in PATH elements. |
| 20185 | case $as_dir/ in |
| 20186 | ./ | .// | /cC/* | \ |
| 20187 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 20188 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 20189 | /usr/ucb/* ) ;; |
| 20190 | *) |
| 20191 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 20192 | # Don't use installbsd from OSF since it installs stuff as root |
| 20193 | # by default. |
| 20194 | for ac_prog in ginstall scoinst install; do |
| 20195 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 20196 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 20197 | if test $ac_prog = install && |
| 20198 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 20199 | # AIX install. It has an incompatible calling convention. |
| 20200 | : |
| 20201 | elif test $ac_prog = install && |
| 20202 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 20203 | # program-specific install script used by HP pwplus--don't use. |
| 20204 | : |
| 20205 | else |
| 20206 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 20207 | break 3 |
| 20208 | fi |
| 20209 | fi |
| 20210 | done |
| 20211 | done |
| 20212 | ;; |
| 20213 | esac |
| 20214 | done |
| 20215 | |
| 20216 | |
| 20217 | fi |
| 20218 | if test "${ac_cv_path_install+set}" = set; then |
| 20219 | INSTALL=$ac_cv_path_install |
| 20220 | else |
| 20221 | # As a last resort, use the slow shell script. We don't cache a |
| 20222 | # path for INSTALL within a source directory, because that will |
| 20223 | # break other packages using the cache if that directory is |
| 20224 | # removed, or if the path is relative. |
| 20225 | INSTALL=$ac_install_sh |
| 20226 | fi |
| 20227 | fi |
| 20228 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 20229 | echo "${ECHO_T}$INSTALL" >&6 |
| 20230 | |
| 20231 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 20232 | # It thinks the first close brace ends the variable substitution. |
| 20233 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 20234 | |
| 20235 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 20236 | |
| 20237 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 20238 | |
| 20239 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20240 | # Extract the first word of "dot", so it can be a program name with args. |
| 20241 | set dummy dot; ac_word=$2 |
| 20242 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20243 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 20244 | if test "${ac_cv_path_DOT+set}" = set; then |
| 20245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20246 | else |
| 20247 | case $DOT in |
| 20248 | [\\/]* | ?:[\\/]*) |
| 20249 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 20250 | ;; |
| 20251 | *) |
| 20252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20253 | for as_dir in $PATH |
| 20254 | do |
| 20255 | IFS=$as_save_IFS |
| 20256 | test -z "$as_dir" && as_dir=. |
| 20257 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 20258 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 20259 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 20260 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20261 | break 2 |
| 20262 | fi |
| 20263 | done |
| 20264 | done |
| 20265 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 20266 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20267 | ;; |
| 20268 | esac |
| 20269 | fi |
| 20270 | DOT=$ac_cv_path_DOT |
| 20271 | |
| 20272 | if test -n "$DOT"; then |
| 20273 | echo "$as_me:$LINENO: result: $DOT" >&5 |
| 20274 | echo "${ECHO_T}$DOT" >&6 |
| 20275 | else |
| 20276 | echo "$as_me:$LINENO: result: no" >&5 |
| 20277 | echo "${ECHO_T}no" >&6 |
| 20278 | fi |
| 20279 | |
| 20280 | # Extract the first word of "etags", so it can be a program name with args. |
| 20281 | set dummy etags; ac_word=$2 |
| 20282 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20283 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 20284 | if test "${ac_cv_path_ETAGS+set}" = set; then |
| 20285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20286 | else |
| 20287 | case $ETAGS in |
| 20288 | [\\/]* | ?:[\\/]*) |
| 20289 | ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. |
| 20290 | ;; |
| 20291 | *) |
| 20292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20293 | for as_dir in $PATH |
| 20294 | do |
| 20295 | IFS=$as_save_IFS |
| 20296 | test -z "$as_dir" && as_dir=. |
| 20297 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 20298 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 20299 | ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" |
| 20300 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20301 | break 2 |
| 20302 | fi |
| 20303 | done |
| 20304 | done |
| 20305 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 20306 | test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20307 | ;; |
| 20308 | esac |
| 20309 | fi |
| 20310 | ETAGS=$ac_cv_path_ETAGS |
| 20311 | |
| 20312 | if test -n "$ETAGS"; then |
| 20313 | echo "$as_me:$LINENO: result: $ETAGS" >&5 |
| 20314 | echo "${ECHO_T}$ETAGS" >&6 |
| 20315 | else |
| 20316 | echo "$as_me:$LINENO: result: no" >&5 |
| 20317 | echo "${ECHO_T}no" >&6 |
| 20318 | fi |
| 20319 | |
Brian Gaeke | afa3fbf | 2004-01-22 21:55:02 +0000 | [diff] [blame] | 20320 | |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 20321 | # Extract the first word of "python", so it can be a program name with args. |
| 20322 | set dummy python; ac_word=$2 |
| 20323 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20324 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 20325 | if test "${ac_cv_path_PYTHON+set}" = set; then |
| 20326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20327 | else |
| 20328 | case $PYTHON in |
| 20329 | [\\/]* | ?:[\\/]*) |
| 20330 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. |
| 20331 | ;; |
| 20332 | *) |
| 20333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20334 | for as_dir in $PATH |
| 20335 | do |
| 20336 | IFS=$as_save_IFS |
| 20337 | test -z "$as_dir" && as_dir=. |
| 20338 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 20339 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 20340 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" |
| 20341 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20342 | break 2 |
| 20343 | fi |
| 20344 | done |
| 20345 | done |
| 20346 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 20347 | test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python" |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 20348 | ;; |
| 20349 | esac |
| 20350 | fi |
| 20351 | PYTHON=$ac_cv_path_PYTHON |
| 20352 | |
| 20353 | if test -n "$PYTHON"; then |
| 20354 | echo "$as_me:$LINENO: result: $PYTHON" >&5 |
| 20355 | echo "${ECHO_T}$PYTHON" >&6 |
| 20356 | else |
| 20357 | echo "$as_me:$LINENO: result: no" >&5 |
| 20358 | echo "${ECHO_T}no" >&6 |
| 20359 | fi |
| 20360 | |
| 20361 | # Extract the first word of "qmtest", so it can be a program name with args. |
| 20362 | set dummy qmtest; ac_word=$2 |
| 20363 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20364 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 20365 | if test "${ac_cv_path_QMTEST+set}" = set; then |
| 20366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20367 | else |
| 20368 | case $QMTEST in |
| 20369 | [\\/]* | ?:[\\/]*) |
| 20370 | ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path. |
| 20371 | ;; |
| 20372 | *) |
| 20373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20374 | for as_dir in $PATH |
| 20375 | do |
| 20376 | IFS=$as_save_IFS |
| 20377 | test -z "$as_dir" && as_dir=. |
| 20378 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 20379 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 20380 | ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext" |
| 20381 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20382 | break 2 |
| 20383 | fi |
| 20384 | done |
| 20385 | done |
| 20386 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 20387 | test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest" |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 20388 | ;; |
| 20389 | esac |
| 20390 | fi |
| 20391 | QMTEST=$ac_cv_path_QMTEST |
| 20392 | |
| 20393 | if test -n "$QMTEST"; then |
| 20394 | echo "$as_me:$LINENO: result: $QMTEST" >&5 |
| 20395 | echo "${ECHO_T}$QMTEST" >&6 |
| 20396 | else |
| 20397 | echo "$as_me:$LINENO: result: no" >&5 |
| 20398 | echo "${ECHO_T}no" >&6 |
| 20399 | fi |
| 20400 | |
Reid Spencer | 4b8f82f | 2004-11-07 23:29:39 +0000 | [diff] [blame] | 20401 | # Extract the first word of "runtest", so it can be a program name with args. |
| 20402 | set dummy runtest; ac_word=$2 |
| 20403 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20404 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 20405 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 20406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20407 | else |
| 20408 | case $RUNTEST in |
| 20409 | [\\/]* | ?:[\\/]*) |
| 20410 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 20411 | ;; |
| 20412 | *) |
| 20413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20414 | for as_dir in $PATH |
| 20415 | do |
| 20416 | IFS=$as_save_IFS |
| 20417 | test -z "$as_dir" && as_dir=. |
| 20418 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 20419 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 20420 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
| 20421 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20422 | break 2 |
| 20423 | fi |
| 20424 | done |
| 20425 | done |
| 20426 | |
| 20427 | test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest" |
| 20428 | ;; |
| 20429 | esac |
| 20430 | fi |
| 20431 | RUNTEST=$ac_cv_path_RUNTEST |
| 20432 | |
| 20433 | if test -n "$RUNTEST"; then |
| 20434 | echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 20435 | echo "${ECHO_T}$RUNTEST" >&6 |
| 20436 | else |
| 20437 | echo "$as_me:$LINENO: result: no" >&5 |
| 20438 | echo "${ECHO_T}no" >&6 |
| 20439 | fi |
| 20440 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20441 | |
| 20442 | echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 20443 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6 |
| 20444 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 20445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20446 | else |
| 20447 | ac_ext=c |
| 20448 | ac_cpp='$CPP $CPPFLAGS' |
| 20449 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20450 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20451 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20452 | |
| 20453 | oldcflags="$CFLAGS" |
| 20454 | CFLAGS="$CFLAGS -Wl,-R." |
| 20455 | cat >conftest.$ac_ext <<_ACEOF |
| 20456 | /* confdefs.h. */ |
| 20457 | _ACEOF |
| 20458 | cat confdefs.h >>conftest.$ac_ext |
| 20459 | cat >>conftest.$ac_ext <<_ACEOF |
| 20460 | /* end confdefs.h. */ |
| 20461 | |
| 20462 | int |
| 20463 | main () |
| 20464 | { |
| 20465 | int main() { return 0; } |
| 20466 | ; |
| 20467 | return 0; |
| 20468 | } |
| 20469 | _ACEOF |
| 20470 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20472 | (eval $ac_link) 2>conftest.er1 |
| 20473 | ac_status=$? |
| 20474 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20475 | rm -f conftest.er1 |
| 20476 | cat conftest.err >&5 |
| 20477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20478 | (exit $ac_status); } && |
| 20479 | { ac_try='test -z "$ac_c_werror_flag" |
| 20480 | || test ! -s conftest.err' |
| 20481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20482 | (eval $ac_try) 2>&5 |
| 20483 | ac_status=$? |
| 20484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20485 | (exit $ac_status); }; } && |
| 20486 | { ac_try='test -s conftest$ac_exeext' |
| 20487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20488 | (eval $ac_try) 2>&5 |
| 20489 | ac_status=$? |
| 20490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20491 | (exit $ac_status); }; }; then |
| 20492 | llvm_cv_link_use_r=yes |
| 20493 | else |
| 20494 | echo "$as_me: failed program was:" >&5 |
| 20495 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20496 | |
| 20497 | llvm_cv_link_use_r=no |
| 20498 | fi |
| 20499 | rm -f conftest.err conftest.$ac_objext \ |
| 20500 | conftest$ac_exeext conftest.$ac_ext |
| 20501 | CFLAGS="$oldcflags" |
| 20502 | ac_ext=c |
| 20503 | ac_cpp='$CPP $CPPFLAGS' |
| 20504 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20505 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20506 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20507 | |
| 20508 | |
| 20509 | fi |
| 20510 | echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 20511 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6 |
| 20512 | if test "$llvm_cv_link_use_r" = yes ; then |
| 20513 | |
| 20514 | cat >>confdefs.h <<\_ACEOF |
| 20515 | #define HAVE_LINK_R 1 |
| 20516 | _ACEOF |
| 20517 | |
| 20518 | fi |
| 20519 | |
| 20520 | |
| 20521 | etags_version=`$ETAGS --version 2>&1` |
| 20522 | case "$etags_version" in |
| 20523 | *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;; |
| 20524 | *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;; |
| 20525 | *) ETAGSFLAGS="" ;; |
| 20526 | esac |
| 20527 | ETAGSFLAGS=$ETAGSFLAGS |
| 20528 | |
| 20529 | |
| 20530 | echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 20531 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6 |
| 20532 | |
| 20533 | if test "$GCC" != "yes" |
| 20534 | then |
| 20535 | { { echo "$as_me:$LINENO: error: gcc required but not found" >&5 |
| 20536 | echo "$as_me: error: gcc required but not found" >&2;} |
| 20537 | { (exit 1); exit 1; }; } |
| 20538 | fi |
| 20539 | if test "$GXX" != "yes" |
| 20540 | then |
| 20541 | { { echo "$as_me:$LINENO: error: g++ required but not found" >&5 |
| 20542 | echo "$as_me: error: g++ required but not found" >&2;} |
| 20543 | { (exit 1); exit 1; }; } |
| 20544 | fi |
| 20545 | |
| 20546 | gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1` |
| 20547 | if test "$gccmajor" -lt "3" |
| 20548 | then |
| 20549 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 20550 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 20551 | { (exit 1); exit 1; }; } |
| 20552 | fi |
| 20553 | |
| 20554 | if test -z "$llvm_cv_gnu_make_command" |
| 20555 | then |
| 20556 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 20557 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 20558 | { (exit 1); exit 1; }; } |
| 20559 | fi |
| 20560 | |
| 20561 | echo "$as_me:$LINENO: result: ok" >&5 |
| 20562 | echo "${ECHO_T}ok" >&6 |
| 20563 | |
| 20564 | if test "$PYTHON" = "false" ; then |
| 20565 | { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5 |
| 20566 | echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;} |
| 20567 | fi |
| 20568 | if test "$QMTEST" = "false" ; then |
| 20569 | { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5 |
| 20570 | echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;} |
| 20571 | fi |
Reid Spencer | 4b8f82f | 2004-11-07 23:29:39 +0000 | [diff] [blame] | 20572 | if test "$RUNTEST" = "false" ; then |
| 20573 | { echo "$as_me:$LINENO: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&5 |
| 20574 | echo "$as_me: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&2;} |
| 20575 | fi |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 20576 | pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2` |
| 20577 | pymajor=`echo $pyversion | cut -d. -f1` |
| 20578 | pyminor=`echo $pyversion | cut -d. -f2` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20579 | if test "$pymajor" -ge "2" ; then |
| 20580 | if test "$pymajor" -eq "2" ; then |
| 20581 | if test "$pyminor" -lt "2" ; then |
| 20582 | { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 20583 | echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20584 | fi |
| 20585 | fi |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 20586 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20587 | { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 20588 | echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 20589 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20590 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20591 | echo "$as_me:$LINENO: result: " >&5 |
| 20592 | echo "${ECHO_T}" >&6 |
| 20593 | |
| 20594 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20595 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20596 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
| 20597 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
| 20598 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
| 20599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20600 | else |
| 20601 | ac_check_lib_save_LIBS=$LIBS |
| 20602 | LIBS="-lelf $LIBS" |
| 20603 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20604 | /* confdefs.h. */ |
| 20605 | _ACEOF |
| 20606 | cat confdefs.h >>conftest.$ac_ext |
| 20607 | cat >>conftest.$ac_ext <<_ACEOF |
| 20608 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20609 | |
| 20610 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 20611 | #ifdef __cplusplus |
| 20612 | extern "C" |
| 20613 | #endif |
| 20614 | /* We use char because int might match the return type of a gcc2 |
| 20615 | builtin and then its argument prototype would still apply. */ |
| 20616 | char elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20617 | int |
| 20618 | main () |
| 20619 | { |
| 20620 | elf_begin (); |
| 20621 | ; |
| 20622 | return 0; |
| 20623 | } |
| 20624 | _ACEOF |
| 20625 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20626 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20627 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20628 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20630 | rm -f conftest.er1 |
| 20631 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20633 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20634 | { ac_try='test -z "$ac_c_werror_flag" |
| 20635 | || test ! -s conftest.err' |
| 20636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20637 | (eval $ac_try) 2>&5 |
| 20638 | ac_status=$? |
| 20639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20640 | (exit $ac_status); }; } && |
| 20641 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20643 | (eval $ac_try) 2>&5 |
| 20644 | ac_status=$? |
| 20645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20646 | (exit $ac_status); }; }; then |
| 20647 | ac_cv_lib_elf_elf_begin=yes |
| 20648 | else |
| 20649 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20651 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20652 | ac_cv_lib_elf_elf_begin=no |
| 20653 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20654 | rm -f conftest.err conftest.$ac_objext \ |
| 20655 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20656 | LIBS=$ac_check_lib_save_LIBS |
| 20657 | fi |
| 20658 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 20659 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
| 20660 | if test $ac_cv_lib_elf_elf_begin = yes; then |
| 20661 | cat >>confdefs.h <<_ACEOF |
| 20662 | #define HAVE_LIBELF 1 |
| 20663 | _ACEOF |
| 20664 | |
| 20665 | LIBS="-lelf $LIBS" |
| 20666 | |
| 20667 | fi |
| 20668 | |
| 20669 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 20670 | echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5 |
| 20671 | echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6 |
| 20672 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 20673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20674 | else |
| 20675 | ac_func_search_save_LIBS=$LIBS |
| 20676 | ac_cv_search_lt_dlopen=no |
| 20677 | cat >conftest.$ac_ext <<_ACEOF |
| 20678 | /* confdefs.h. */ |
| 20679 | _ACEOF |
| 20680 | cat confdefs.h >>conftest.$ac_ext |
| 20681 | cat >>conftest.$ac_ext <<_ACEOF |
| 20682 | /* end confdefs.h. */ |
| 20683 | |
| 20684 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 20685 | #ifdef __cplusplus |
| 20686 | extern "C" |
| 20687 | #endif |
| 20688 | /* We use char because int might match the return type of a gcc2 |
| 20689 | builtin and then its argument prototype would still apply. */ |
| 20690 | char lt_dlopen (); |
| 20691 | int |
| 20692 | main () |
| 20693 | { |
| 20694 | lt_dlopen (); |
| 20695 | ; |
| 20696 | return 0; |
| 20697 | } |
| 20698 | _ACEOF |
| 20699 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20700 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20701 | (eval $ac_link) 2>conftest.er1 |
| 20702 | ac_status=$? |
| 20703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20704 | rm -f conftest.er1 |
| 20705 | cat conftest.err >&5 |
| 20706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20707 | (exit $ac_status); } && |
| 20708 | { ac_try='test -z "$ac_c_werror_flag" |
| 20709 | || test ! -s conftest.err' |
| 20710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20711 | (eval $ac_try) 2>&5 |
| 20712 | ac_status=$? |
| 20713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20714 | (exit $ac_status); }; } && |
| 20715 | { ac_try='test -s conftest$ac_exeext' |
| 20716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20717 | (eval $ac_try) 2>&5 |
| 20718 | ac_status=$? |
| 20719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20720 | (exit $ac_status); }; }; then |
| 20721 | ac_cv_search_lt_dlopen="none required" |
| 20722 | else |
| 20723 | echo "$as_me: failed program was:" >&5 |
| 20724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20725 | |
| 20726 | fi |
| 20727 | rm -f conftest.err conftest.$ac_objext \ |
| 20728 | conftest$ac_exeext conftest.$ac_ext |
| 20729 | if test "$ac_cv_search_lt_dlopen" = no; then |
| 20730 | for ac_lib in ltdl; do |
| 20731 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 20732 | cat >conftest.$ac_ext <<_ACEOF |
| 20733 | /* confdefs.h. */ |
| 20734 | _ACEOF |
| 20735 | cat confdefs.h >>conftest.$ac_ext |
| 20736 | cat >>conftest.$ac_ext <<_ACEOF |
| 20737 | /* end confdefs.h. */ |
| 20738 | |
| 20739 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 20740 | #ifdef __cplusplus |
| 20741 | extern "C" |
| 20742 | #endif |
| 20743 | /* We use char because int might match the return type of a gcc2 |
| 20744 | builtin and then its argument prototype would still apply. */ |
| 20745 | char lt_dlopen (); |
| 20746 | int |
| 20747 | main () |
| 20748 | { |
| 20749 | lt_dlopen (); |
| 20750 | ; |
| 20751 | return 0; |
| 20752 | } |
| 20753 | _ACEOF |
| 20754 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20755 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20756 | (eval $ac_link) 2>conftest.er1 |
| 20757 | ac_status=$? |
| 20758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20759 | rm -f conftest.er1 |
| 20760 | cat conftest.err >&5 |
| 20761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20762 | (exit $ac_status); } && |
| 20763 | { ac_try='test -z "$ac_c_werror_flag" |
| 20764 | || test ! -s conftest.err' |
| 20765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20766 | (eval $ac_try) 2>&5 |
| 20767 | ac_status=$? |
| 20768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20769 | (exit $ac_status); }; } && |
| 20770 | { ac_try='test -s conftest$ac_exeext' |
| 20771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20772 | (eval $ac_try) 2>&5 |
| 20773 | ac_status=$? |
| 20774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20775 | (exit $ac_status); }; }; then |
| 20776 | ac_cv_search_lt_dlopen="-l$ac_lib" |
| 20777 | break |
| 20778 | else |
| 20779 | echo "$as_me: failed program was:" >&5 |
| 20780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20781 | |
| 20782 | fi |
| 20783 | rm -f conftest.err conftest.$ac_objext \ |
| 20784 | conftest$ac_exeext conftest.$ac_ext |
| 20785 | done |
| 20786 | fi |
| 20787 | LIBS=$ac_func_search_save_LIBS |
| 20788 | fi |
| 20789 | echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5 |
| 20790 | echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6 |
| 20791 | if test "$ac_cv_search_lt_dlopen" != no; then |
| 20792 | test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS" |
| 20793 | |
| 20794 | cat >>confdefs.h <<\_ACEOF |
| 20795 | #define HAVE_LT_DLOPEN 1 |
| 20796 | _ACEOF |
| 20797 | |
| 20798 | else |
| 20799 | { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might |
| 20800 | not be available" >&5 |
| 20801 | echo "$as_me: WARNING: lt_dlopen() not found - plugin support might |
| 20802 | not be available" >&2;} |
| 20803 | fi |
| 20804 | |
| 20805 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20806 | echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 20807 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 |
| 20808 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 20809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20810 | else |
| 20811 | ac_func_search_save_LIBS=$LIBS |
| 20812 | ac_cv_search_dlopen=no |
| 20813 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20814 | /* confdefs.h. */ |
| 20815 | _ACEOF |
| 20816 | cat confdefs.h >>conftest.$ac_ext |
| 20817 | cat >>conftest.$ac_ext <<_ACEOF |
| 20818 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20819 | |
| 20820 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 20821 | #ifdef __cplusplus |
| 20822 | extern "C" |
| 20823 | #endif |
| 20824 | /* We use char because int might match the return type of a gcc2 |
| 20825 | builtin and then its argument prototype would still apply. */ |
| 20826 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20827 | int |
| 20828 | main () |
| 20829 | { |
| 20830 | dlopen (); |
| 20831 | ; |
| 20832 | return 0; |
| 20833 | } |
| 20834 | _ACEOF |
| 20835 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20837 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20838 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20840 | rm -f conftest.er1 |
| 20841 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20843 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20844 | { ac_try='test -z "$ac_c_werror_flag" |
| 20845 | || test ! -s conftest.err' |
| 20846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20847 | (eval $ac_try) 2>&5 |
| 20848 | ac_status=$? |
| 20849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20850 | (exit $ac_status); }; } && |
| 20851 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20853 | (eval $ac_try) 2>&5 |
| 20854 | ac_status=$? |
| 20855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20856 | (exit $ac_status); }; }; then |
| 20857 | ac_cv_search_dlopen="none required" |
| 20858 | else |
| 20859 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20861 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20862 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20863 | rm -f conftest.err conftest.$ac_objext \ |
| 20864 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20865 | if test "$ac_cv_search_dlopen" = no; then |
| 20866 | for ac_lib in dl; do |
| 20867 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 20868 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20869 | /* confdefs.h. */ |
| 20870 | _ACEOF |
| 20871 | cat confdefs.h >>conftest.$ac_ext |
| 20872 | cat >>conftest.$ac_ext <<_ACEOF |
| 20873 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20874 | |
| 20875 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 20876 | #ifdef __cplusplus |
| 20877 | extern "C" |
| 20878 | #endif |
| 20879 | /* We use char because int might match the return type of a gcc2 |
| 20880 | builtin and then its argument prototype would still apply. */ |
| 20881 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20882 | int |
| 20883 | main () |
| 20884 | { |
| 20885 | dlopen (); |
| 20886 | ; |
| 20887 | return 0; |
| 20888 | } |
| 20889 | _ACEOF |
| 20890 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20891 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20892 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20893 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20894 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20895 | rm -f conftest.er1 |
| 20896 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20898 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20899 | { ac_try='test -z "$ac_c_werror_flag" |
| 20900 | || test ! -s conftest.err' |
| 20901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20902 | (eval $ac_try) 2>&5 |
| 20903 | ac_status=$? |
| 20904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20905 | (exit $ac_status); }; } && |
| 20906 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20908 | (eval $ac_try) 2>&5 |
| 20909 | ac_status=$? |
| 20910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20911 | (exit $ac_status); }; }; then |
| 20912 | ac_cv_search_dlopen="-l$ac_lib" |
| 20913 | break |
| 20914 | else |
| 20915 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20917 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20918 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20919 | rm -f conftest.err conftest.$ac_objext \ |
| 20920 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20921 | done |
| 20922 | fi |
| 20923 | LIBS=$ac_func_search_save_LIBS |
| 20924 | fi |
| 20925 | echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 20926 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6 |
| 20927 | if test "$ac_cv_search_dlopen" != no; then |
| 20928 | 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] | 20929 | |
| 20930 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 20931 | #define HAVE_DLOPEN 1 |
| 20932 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20933 | |
| 20934 | else |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 20935 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 20936 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20937 | fi |
| 20938 | |
| 20939 | |
| 20940 | echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 20941 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6 |
| 20942 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 20943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20944 | else |
| 20945 | ac_func_search_save_LIBS=$LIBS |
| 20946 | ac_cv_search_mallinfo=no |
| 20947 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20948 | /* confdefs.h. */ |
| 20949 | _ACEOF |
| 20950 | cat confdefs.h >>conftest.$ac_ext |
| 20951 | cat >>conftest.$ac_ext <<_ACEOF |
| 20952 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20953 | |
| 20954 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 20955 | #ifdef __cplusplus |
| 20956 | extern "C" |
| 20957 | #endif |
| 20958 | /* We use char because int might match the return type of a gcc2 |
| 20959 | builtin and then its argument prototype would still apply. */ |
| 20960 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20961 | int |
| 20962 | main () |
| 20963 | { |
| 20964 | mallinfo (); |
| 20965 | ; |
| 20966 | return 0; |
| 20967 | } |
| 20968 | _ACEOF |
| 20969 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20970 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20971 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20972 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20974 | rm -f conftest.er1 |
| 20975 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20977 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20978 | { ac_try='test -z "$ac_c_werror_flag" |
| 20979 | || test ! -s conftest.err' |
| 20980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20981 | (eval $ac_try) 2>&5 |
| 20982 | ac_status=$? |
| 20983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20984 | (exit $ac_status); }; } && |
| 20985 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20987 | (eval $ac_try) 2>&5 |
| 20988 | ac_status=$? |
| 20989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20990 | (exit $ac_status); }; }; then |
| 20991 | ac_cv_search_mallinfo="none required" |
| 20992 | else |
| 20993 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20995 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20996 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20997 | rm -f conftest.err conftest.$ac_objext \ |
| 20998 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20999 | if test "$ac_cv_search_mallinfo" = no; then |
| 21000 | for ac_lib in malloc; do |
| 21001 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 21002 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21003 | /* confdefs.h. */ |
| 21004 | _ACEOF |
| 21005 | cat confdefs.h >>conftest.$ac_ext |
| 21006 | cat >>conftest.$ac_ext <<_ACEOF |
| 21007 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21008 | |
| 21009 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 21010 | #ifdef __cplusplus |
| 21011 | extern "C" |
| 21012 | #endif |
| 21013 | /* We use char because int might match the return type of a gcc2 |
| 21014 | builtin and then its argument prototype would still apply. */ |
| 21015 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21016 | int |
| 21017 | main () |
| 21018 | { |
| 21019 | mallinfo (); |
| 21020 | ; |
| 21021 | return 0; |
| 21022 | } |
| 21023 | _ACEOF |
| 21024 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21026 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21027 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21028 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21029 | rm -f conftest.er1 |
| 21030 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21032 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21033 | { ac_try='test -z "$ac_c_werror_flag" |
| 21034 | || test ! -s conftest.err' |
| 21035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21036 | (eval $ac_try) 2>&5 |
| 21037 | ac_status=$? |
| 21038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21039 | (exit $ac_status); }; } && |
| 21040 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21042 | (eval $ac_try) 2>&5 |
| 21043 | ac_status=$? |
| 21044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21045 | (exit $ac_status); }; }; then |
| 21046 | ac_cv_search_mallinfo="-l$ac_lib" |
| 21047 | break |
| 21048 | else |
| 21049 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21051 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21052 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21053 | rm -f conftest.err conftest.$ac_objext \ |
| 21054 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21055 | done |
| 21056 | fi |
| 21057 | LIBS=$ac_func_search_save_LIBS |
| 21058 | fi |
| 21059 | echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 21060 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6 |
| 21061 | if test "$ac_cv_search_mallinfo" != no; then |
| 21062 | 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] | 21063 | |
| 21064 | cat >>confdefs.h <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21065 | #define HAVE_MALLINFO 1 |
| 21066 | _ACEOF |
| 21067 | |
| 21068 | fi |
| 21069 | |
| 21070 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21071 | echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 21072 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6 |
| 21073 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 21074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21075 | else |
| 21076 | ac_func_search_save_LIBS=$LIBS |
| 21077 | ac_cv_search_pthread_mutex_lock=no |
| 21078 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21079 | /* confdefs.h. */ |
| 21080 | _ACEOF |
| 21081 | cat confdefs.h >>conftest.$ac_ext |
| 21082 | cat >>conftest.$ac_ext <<_ACEOF |
| 21083 | /* end confdefs.h. */ |
| 21084 | |
| 21085 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 21086 | #ifdef __cplusplus |
| 21087 | extern "C" |
| 21088 | #endif |
| 21089 | /* We use char because int might match the return type of a gcc2 |
| 21090 | builtin and then its argument prototype would still apply. */ |
| 21091 | char pthread_mutex_lock (); |
| 21092 | int |
| 21093 | main () |
| 21094 | { |
| 21095 | pthread_mutex_lock (); |
| 21096 | ; |
| 21097 | return 0; |
| 21098 | } |
| 21099 | _ACEOF |
| 21100 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21102 | (eval $ac_link) 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21103 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21104 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21105 | rm -f conftest.er1 |
| 21106 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21108 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21109 | { ac_try='test -z "$ac_c_werror_flag" |
| 21110 | || test ! -s conftest.err' |
| 21111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21112 | (eval $ac_try) 2>&5 |
| 21113 | ac_status=$? |
| 21114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21115 | (exit $ac_status); }; } && |
| 21116 | { ac_try='test -s conftest$ac_exeext' |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21118 | (eval $ac_try) 2>&5 |
| 21119 | ac_status=$? |
| 21120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21121 | (exit $ac_status); }; }; then |
| 21122 | ac_cv_search_pthread_mutex_lock="none required" |
| 21123 | else |
| 21124 | echo "$as_me: failed program was:" >&5 |
| 21125 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21126 | |
| 21127 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21128 | rm -f conftest.err conftest.$ac_objext \ |
| 21129 | conftest$ac_exeext conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21130 | if test "$ac_cv_search_pthread_mutex_lock" = no; then |
| 21131 | for ac_lib in pthread; do |
| 21132 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 21133 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21134 | /* confdefs.h. */ |
| 21135 | _ACEOF |
| 21136 | cat confdefs.h >>conftest.$ac_ext |
| 21137 | cat >>conftest.$ac_ext <<_ACEOF |
| 21138 | /* end confdefs.h. */ |
| 21139 | |
| 21140 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 21141 | #ifdef __cplusplus |
| 21142 | extern "C" |
| 21143 | #endif |
| 21144 | /* We use char because int might match the return type of a gcc2 |
| 21145 | builtin and then its argument prototype would still apply. */ |
| 21146 | char pthread_mutex_lock (); |
| 21147 | int |
| 21148 | main () |
| 21149 | { |
| 21150 | pthread_mutex_lock (); |
| 21151 | ; |
| 21152 | return 0; |
| 21153 | } |
| 21154 | _ACEOF |
| 21155 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21156 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21157 | (eval $ac_link) 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21158 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21159 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21160 | rm -f conftest.er1 |
| 21161 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21163 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21164 | { ac_try='test -z "$ac_c_werror_flag" |
| 21165 | || test ! -s conftest.err' |
| 21166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21167 | (eval $ac_try) 2>&5 |
| 21168 | ac_status=$? |
| 21169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21170 | (exit $ac_status); }; } && |
| 21171 | { ac_try='test -s conftest$ac_exeext' |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21173 | (eval $ac_try) 2>&5 |
| 21174 | ac_status=$? |
| 21175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21176 | (exit $ac_status); }; }; then |
| 21177 | ac_cv_search_pthread_mutex_lock="-l$ac_lib" |
| 21178 | break |
| 21179 | else |
| 21180 | echo "$as_me: failed program was:" >&5 |
| 21181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21182 | |
| 21183 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21184 | rm -f conftest.err conftest.$ac_objext \ |
| 21185 | conftest$ac_exeext conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21186 | done |
| 21187 | fi |
| 21188 | LIBS=$ac_func_search_save_LIBS |
| 21189 | fi |
| 21190 | echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 21191 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6 |
| 21192 | if test "$ac_cv_search_pthread_mutex_lock" != no; then |
| 21193 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21194 | |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 21195 | cat >>confdefs.h <<\_ACEOF |
| 21196 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 21197 | _ACEOF |
| 21198 | |
| 21199 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21200 | |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 21201 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21202 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21203 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 21204 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 21205 | if test "${ac_cv_header_stdc+set}" = set; then |
| 21206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21207 | else |
| 21208 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21209 | /* confdefs.h. */ |
| 21210 | _ACEOF |
| 21211 | cat confdefs.h >>conftest.$ac_ext |
| 21212 | cat >>conftest.$ac_ext <<_ACEOF |
| 21213 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21214 | #include <stdlib.h> |
| 21215 | #include <stdarg.h> |
| 21216 | #include <string.h> |
| 21217 | #include <float.h> |
| 21218 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21219 | int |
| 21220 | main () |
| 21221 | { |
| 21222 | |
| 21223 | ; |
| 21224 | return 0; |
| 21225 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21226 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21227 | rm -f conftest.$ac_objext |
| 21228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21229 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21230 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21232 | rm -f conftest.er1 |
| 21233 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21235 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21236 | { ac_try='test -z "$ac_c_werror_flag" |
| 21237 | || test ! -s conftest.err' |
| 21238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21239 | (eval $ac_try) 2>&5 |
| 21240 | ac_status=$? |
| 21241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21242 | (exit $ac_status); }; } && |
| 21243 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21245 | (eval $ac_try) 2>&5 |
| 21246 | ac_status=$? |
| 21247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21248 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21249 | ac_cv_header_stdc=yes |
| 21250 | else |
| 21251 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21253 | |
| 21254 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21255 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21256 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21257 | |
| 21258 | if test $ac_cv_header_stdc = yes; then |
| 21259 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 21260 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21261 | /* confdefs.h. */ |
| 21262 | _ACEOF |
| 21263 | cat confdefs.h >>conftest.$ac_ext |
| 21264 | cat >>conftest.$ac_ext <<_ACEOF |
| 21265 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21266 | #include <string.h> |
| 21267 | |
| 21268 | _ACEOF |
| 21269 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21270 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21271 | : |
| 21272 | else |
| 21273 | ac_cv_header_stdc=no |
| 21274 | fi |
| 21275 | rm -f conftest* |
| 21276 | |
| 21277 | fi |
| 21278 | |
| 21279 | if test $ac_cv_header_stdc = yes; then |
| 21280 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 21281 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21282 | /* confdefs.h. */ |
| 21283 | _ACEOF |
| 21284 | cat confdefs.h >>conftest.$ac_ext |
| 21285 | cat >>conftest.$ac_ext <<_ACEOF |
| 21286 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21287 | #include <stdlib.h> |
| 21288 | |
| 21289 | _ACEOF |
| 21290 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21291 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21292 | : |
| 21293 | else |
| 21294 | ac_cv_header_stdc=no |
| 21295 | fi |
| 21296 | rm -f conftest* |
| 21297 | |
| 21298 | fi |
| 21299 | |
| 21300 | if test $ac_cv_header_stdc = yes; then |
| 21301 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 21302 | if test "$cross_compiling" = yes; then |
| 21303 | : |
| 21304 | else |
| 21305 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21306 | /* confdefs.h. */ |
| 21307 | _ACEOF |
| 21308 | cat confdefs.h >>conftest.$ac_ext |
| 21309 | cat >>conftest.$ac_ext <<_ACEOF |
| 21310 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21311 | #include <ctype.h> |
| 21312 | #if ((' ' & 0x0FF) == 0x020) |
| 21313 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 21314 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 21315 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21316 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21317 | (('a' <= (c) && (c) <= 'i') \ |
| 21318 | || ('j' <= (c) && (c) <= 'r') \ |
| 21319 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21320 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 21321 | #endif |
| 21322 | |
| 21323 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 21324 | int |
| 21325 | main () |
| 21326 | { |
| 21327 | int i; |
| 21328 | for (i = 0; i < 256; i++) |
| 21329 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21330 | || toupper (i) != TOUPPER (i)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21331 | exit(2); |
| 21332 | exit (0); |
| 21333 | } |
| 21334 | _ACEOF |
| 21335 | rm -f conftest$ac_exeext |
| 21336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21337 | (eval $ac_link) 2>&5 |
| 21338 | ac_status=$? |
| 21339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21340 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21342 | (eval $ac_try) 2>&5 |
| 21343 | ac_status=$? |
| 21344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21345 | (exit $ac_status); }; }; then |
| 21346 | : |
| 21347 | else |
| 21348 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21349 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21351 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21352 | ( exit $ac_status ) |
| 21353 | ac_cv_header_stdc=no |
| 21354 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21355 | rm -f 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] | 21356 | fi |
| 21357 | fi |
| 21358 | fi |
| 21359 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 21360 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 21361 | if test $ac_cv_header_stdc = yes; then |
| 21362 | |
| 21363 | cat >>confdefs.h <<\_ACEOF |
| 21364 | #define STDC_HEADERS 1 |
| 21365 | _ACEOF |
| 21366 | |
| 21367 | fi |
| 21368 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21369 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21370 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 21371 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
| 21372 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 21373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21374 | else |
| 21375 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21376 | /* confdefs.h. */ |
| 21377 | _ACEOF |
| 21378 | cat confdefs.h >>conftest.$ac_ext |
| 21379 | cat >>conftest.$ac_ext <<_ACEOF |
| 21380 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21381 | #include <sys/types.h> |
| 21382 | #include <sys/wait.h> |
| 21383 | #ifndef WEXITSTATUS |
| 21384 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
| 21385 | #endif |
| 21386 | #ifndef WIFEXITED |
| 21387 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 21388 | #endif |
| 21389 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21390 | int |
| 21391 | main () |
| 21392 | { |
| 21393 | int s; |
| 21394 | wait (&s); |
| 21395 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 21396 | ; |
| 21397 | return 0; |
| 21398 | } |
| 21399 | _ACEOF |
| 21400 | rm -f conftest.$ac_objext |
| 21401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21402 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21403 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21404 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21405 | rm -f conftest.er1 |
| 21406 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21408 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21409 | { ac_try='test -z "$ac_c_werror_flag" |
| 21410 | || test ! -s conftest.err' |
| 21411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21412 | (eval $ac_try) 2>&5 |
| 21413 | ac_status=$? |
| 21414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21415 | (exit $ac_status); }; } && |
| 21416 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21418 | (eval $ac_try) 2>&5 |
| 21419 | ac_status=$? |
| 21420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21421 | (exit $ac_status); }; }; then |
| 21422 | ac_cv_header_sys_wait_h=yes |
| 21423 | else |
| 21424 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21426 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21427 | ac_cv_header_sys_wait_h=no |
| 21428 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21430 | fi |
| 21431 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 21432 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
| 21433 | if test $ac_cv_header_sys_wait_h = yes; then |
| 21434 | |
| 21435 | cat >>confdefs.h <<\_ACEOF |
| 21436 | #define HAVE_SYS_WAIT_H 1 |
| 21437 | _ACEOF |
| 21438 | |
| 21439 | fi |
| 21440 | |
| 21441 | |
| 21442 | |
| 21443 | |
| 21444 | |
| 21445 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21446 | for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21447 | do |
| 21448 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21449 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21450 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21451 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 21452 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21454 | fi |
| 21455 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 21456 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 21457 | else |
| 21458 | # Is the header compilable? |
| 21459 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 21460 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 21461 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21462 | /* confdefs.h. */ |
| 21463 | _ACEOF |
| 21464 | cat confdefs.h >>conftest.$ac_ext |
| 21465 | cat >>conftest.$ac_ext <<_ACEOF |
| 21466 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21467 | $ac_includes_default |
| 21468 | #include <$ac_header> |
| 21469 | _ACEOF |
| 21470 | rm -f conftest.$ac_objext |
| 21471 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21472 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21473 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21474 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21475 | rm -f conftest.er1 |
| 21476 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21478 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21479 | { ac_try='test -z "$ac_c_werror_flag" |
| 21480 | || test ! -s conftest.err' |
| 21481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21482 | (eval $ac_try) 2>&5 |
| 21483 | ac_status=$? |
| 21484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21485 | (exit $ac_status); }; } && |
| 21486 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21488 | (eval $ac_try) 2>&5 |
| 21489 | ac_status=$? |
| 21490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21491 | (exit $ac_status); }; }; then |
| 21492 | ac_header_compiler=yes |
| 21493 | else |
| 21494 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21495 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21496 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21497 | ac_header_compiler=no |
| 21498 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21499 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21500 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 21501 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 21502 | |
| 21503 | # Is the header present? |
| 21504 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 21505 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 21506 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21507 | /* confdefs.h. */ |
| 21508 | _ACEOF |
| 21509 | cat confdefs.h >>conftest.$ac_ext |
| 21510 | cat >>conftest.$ac_ext <<_ACEOF |
| 21511 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21512 | #include <$ac_header> |
| 21513 | _ACEOF |
| 21514 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 21515 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 21516 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21517 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21518 | rm -f conftest.er1 |
| 21519 | cat conftest.err >&5 |
| 21520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21521 | (exit $ac_status); } >/dev/null; then |
| 21522 | if test -s conftest.err; then |
| 21523 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21524 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21525 | else |
| 21526 | ac_cpp_err= |
| 21527 | fi |
| 21528 | else |
| 21529 | ac_cpp_err=yes |
| 21530 | fi |
| 21531 | if test -z "$ac_cpp_err"; then |
| 21532 | ac_header_preproc=yes |
| 21533 | else |
| 21534 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21536 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21537 | ac_header_preproc=no |
| 21538 | fi |
| 21539 | rm -f conftest.err conftest.$ac_ext |
| 21540 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 21541 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 21542 | |
| 21543 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21544 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 21545 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21546 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 21547 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21548 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 21549 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 21550 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 21551 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21552 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 21553 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 21554 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21555 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 21556 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 21557 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 21558 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 21559 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 21560 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 21561 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 21562 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21563 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 21564 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 21565 | ( |
| 21566 | cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21567 | ## ----------------------------------- ## |
| 21568 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 21569 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21570 | _ASBOX |
| 21571 | ) | |
| 21572 | sed "s/^/$as_me: WARNING: /" >&2 |
| 21573 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21574 | esac |
| 21575 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21576 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 21577 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21579 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21580 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21581 | fi |
| 21582 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 21583 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 21584 | |
| 21585 | fi |
| 21586 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 21587 | cat >>confdefs.h <<_ACEOF |
| 21588 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21589 | _ACEOF |
| 21590 | |
| 21591 | fi |
| 21592 | |
| 21593 | done |
| 21594 | |
| 21595 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21596 | |
| 21597 | |
| 21598 | |
| 21599 | |
| 21600 | |
| 21601 | |
| 21602 | for ac_header in bzlib.h dlfcn.h execinfo.h fcntl.h limits.h link.h ltdl.h |
| 21603 | do |
| 21604 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21605 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21606 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21607 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 21608 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21610 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21611 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 21612 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21613 | else |
| 21614 | # Is the header compilable? |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21615 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 21616 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21617 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21618 | /* confdefs.h. */ |
| 21619 | _ACEOF |
| 21620 | cat confdefs.h >>conftest.$ac_ext |
| 21621 | cat >>conftest.$ac_ext <<_ACEOF |
| 21622 | /* end confdefs.h. */ |
| 21623 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21624 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21625 | _ACEOF |
| 21626 | rm -f conftest.$ac_objext |
| 21627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21628 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21629 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21631 | rm -f conftest.er1 |
| 21632 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21634 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21635 | { ac_try='test -z "$ac_c_werror_flag" |
| 21636 | || test ! -s conftest.err' |
| 21637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21638 | (eval $ac_try) 2>&5 |
| 21639 | ac_status=$? |
| 21640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21641 | (exit $ac_status); }; } && |
| 21642 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21644 | (eval $ac_try) 2>&5 |
| 21645 | ac_status=$? |
| 21646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21647 | (exit $ac_status); }; }; then |
| 21648 | ac_header_compiler=yes |
| 21649 | else |
| 21650 | echo "$as_me: failed program was:" >&5 |
| 21651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21652 | |
| 21653 | ac_header_compiler=no |
| 21654 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21655 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21656 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 21657 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 21658 | |
| 21659 | # Is the header present? |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21660 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 21661 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21662 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21663 | /* confdefs.h. */ |
| 21664 | _ACEOF |
| 21665 | cat confdefs.h >>conftest.$ac_ext |
| 21666 | cat >>conftest.$ac_ext <<_ACEOF |
| 21667 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21668 | #include <$ac_header> |
| 21669 | _ACEOF |
| 21670 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 21671 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 21672 | ac_status=$? |
| 21673 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21674 | rm -f conftest.er1 |
| 21675 | cat conftest.err >&5 |
| 21676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21677 | (exit $ac_status); } >/dev/null; then |
| 21678 | if test -s conftest.err; then |
| 21679 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 21680 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 21681 | else |
| 21682 | ac_cpp_err= |
| 21683 | fi |
| 21684 | else |
| 21685 | ac_cpp_err=yes |
| 21686 | fi |
| 21687 | if test -z "$ac_cpp_err"; then |
| 21688 | ac_header_preproc=yes |
| 21689 | else |
| 21690 | echo "$as_me: failed program was:" >&5 |
| 21691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21692 | |
| 21693 | ac_header_preproc=no |
| 21694 | fi |
| 21695 | rm -f conftest.err conftest.$ac_ext |
| 21696 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 21697 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 21698 | |
| 21699 | # So? What about this header? |
| 21700 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 21701 | yes:no: ) |
| 21702 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 21703 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 21704 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 21705 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 21706 | ac_header_preproc=yes |
| 21707 | ;; |
| 21708 | no:yes:* ) |
| 21709 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 21710 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 21711 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 21712 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 21713 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 21714 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 21715 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 21716 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 21717 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 21718 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 21719 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 21720 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 21721 | ( |
| 21722 | cat <<\_ASBOX |
| 21723 | ## ----------------------------------- ## |
| 21724 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 21725 | ## ----------------------------------- ## |
| 21726 | _ASBOX |
| 21727 | ) | |
| 21728 | sed "s/^/$as_me: WARNING: /" >&2 |
| 21729 | ;; |
| 21730 | esac |
| 21731 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21732 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 21733 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21735 | else |
| 21736 | eval "$as_ac_Header=\$ac_header_preproc" |
| 21737 | fi |
| 21738 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 21739 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 21740 | |
| 21741 | fi |
| 21742 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 21743 | cat >>confdefs.h <<_ACEOF |
| 21744 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21745 | _ACEOF |
| 21746 | |
| 21747 | fi |
| 21748 | |
| 21749 | done |
| 21750 | |
| 21751 | |
| 21752 | |
| 21753 | |
| 21754 | |
| 21755 | for ac_header in malloc.h unistd.h windows.h zlib.h |
| 21756 | do |
| 21757 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21758 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21759 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21760 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 21761 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21763 | fi |
| 21764 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 21765 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 21766 | else |
| 21767 | # Is the header compilable? |
| 21768 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 21769 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 21770 | cat >conftest.$ac_ext <<_ACEOF |
| 21771 | /* confdefs.h. */ |
| 21772 | _ACEOF |
| 21773 | cat confdefs.h >>conftest.$ac_ext |
| 21774 | cat >>conftest.$ac_ext <<_ACEOF |
| 21775 | /* end confdefs.h. */ |
| 21776 | $ac_includes_default |
| 21777 | #include <$ac_header> |
| 21778 | _ACEOF |
| 21779 | rm -f conftest.$ac_objext |
| 21780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21781 | (eval $ac_compile) 2>conftest.er1 |
| 21782 | ac_status=$? |
| 21783 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21784 | rm -f conftest.er1 |
| 21785 | cat conftest.err >&5 |
| 21786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21787 | (exit $ac_status); } && |
| 21788 | { ac_try='test -z "$ac_c_werror_flag" |
| 21789 | || test ! -s conftest.err' |
| 21790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21791 | (eval $ac_try) 2>&5 |
| 21792 | ac_status=$? |
| 21793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21794 | (exit $ac_status); }; } && |
| 21795 | { ac_try='test -s conftest.$ac_objext' |
| 21796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21797 | (eval $ac_try) 2>&5 |
| 21798 | ac_status=$? |
| 21799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21800 | (exit $ac_status); }; }; then |
| 21801 | ac_header_compiler=yes |
| 21802 | else |
| 21803 | echo "$as_me: failed program was:" >&5 |
| 21804 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21805 | |
| 21806 | ac_header_compiler=no |
| 21807 | fi |
| 21808 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21809 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 21810 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 21811 | |
| 21812 | # Is the header present? |
| 21813 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 21814 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 21815 | cat >conftest.$ac_ext <<_ACEOF |
| 21816 | /* confdefs.h. */ |
| 21817 | _ACEOF |
| 21818 | cat confdefs.h >>conftest.$ac_ext |
| 21819 | cat >>conftest.$ac_ext <<_ACEOF |
| 21820 | /* end confdefs.h. */ |
| 21821 | #include <$ac_header> |
| 21822 | _ACEOF |
| 21823 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 21824 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 21825 | ac_status=$? |
| 21826 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21827 | rm -f conftest.er1 |
| 21828 | cat conftest.err >&5 |
| 21829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21830 | (exit $ac_status); } >/dev/null; then |
| 21831 | if test -s conftest.err; then |
| 21832 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 21833 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 21834 | else |
| 21835 | ac_cpp_err= |
| 21836 | fi |
| 21837 | else |
| 21838 | ac_cpp_err=yes |
| 21839 | fi |
| 21840 | if test -z "$ac_cpp_err"; then |
| 21841 | ac_header_preproc=yes |
| 21842 | else |
| 21843 | echo "$as_me: failed program was:" >&5 |
| 21844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21845 | |
| 21846 | ac_header_preproc=no |
| 21847 | fi |
| 21848 | rm -f conftest.err conftest.$ac_ext |
| 21849 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 21850 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 21851 | |
| 21852 | # So? What about this header? |
| 21853 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 21854 | yes:no: ) |
| 21855 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 21856 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 21857 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 21858 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 21859 | ac_header_preproc=yes |
| 21860 | ;; |
| 21861 | no:yes:* ) |
| 21862 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 21863 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 21864 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 21865 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 21866 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 21867 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 21868 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 21869 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 21870 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 21871 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 21872 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 21873 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 21874 | ( |
| 21875 | cat <<\_ASBOX |
| 21876 | ## ----------------------------------- ## |
| 21877 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 21878 | ## ----------------------------------- ## |
| 21879 | _ASBOX |
| 21880 | ) | |
| 21881 | sed "s/^/$as_me: WARNING: /" >&2 |
| 21882 | ;; |
| 21883 | esac |
| 21884 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21885 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 21886 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21888 | else |
| 21889 | eval "$as_ac_Header=\$ac_header_preproc" |
| 21890 | fi |
| 21891 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 21892 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 21893 | |
| 21894 | fi |
| 21895 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 21896 | cat >>confdefs.h <<_ACEOF |
| 21897 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21898 | _ACEOF |
| 21899 | |
| 21900 | fi |
| 21901 | |
| 21902 | done |
| 21903 | |
| 21904 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 21905 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 21906 | if test "${ac_cv_header_time+set}" = set; then |
| 21907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21908 | else |
| 21909 | cat >conftest.$ac_ext <<_ACEOF |
| 21910 | /* confdefs.h. */ |
| 21911 | _ACEOF |
| 21912 | cat confdefs.h >>conftest.$ac_ext |
| 21913 | cat >>conftest.$ac_ext <<_ACEOF |
| 21914 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21915 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21916 | #include <sys/time.h> |
| 21917 | #include <time.h> |
| 21918 | |
| 21919 | int |
| 21920 | main () |
| 21921 | { |
| 21922 | if ((struct tm *) 0) |
| 21923 | return 0; |
| 21924 | ; |
| 21925 | return 0; |
| 21926 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21927 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21928 | rm -f conftest.$ac_objext |
| 21929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21930 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21931 | ac_status=$? |
| 21932 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21933 | rm -f conftest.er1 |
| 21934 | cat conftest.err >&5 |
| 21935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21936 | (exit $ac_status); } && |
| 21937 | { ac_try='test -z "$ac_c_werror_flag" |
| 21938 | || test ! -s conftest.err' |
| 21939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21940 | (eval $ac_try) 2>&5 |
| 21941 | ac_status=$? |
| 21942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21943 | (exit $ac_status); }; } && |
| 21944 | { ac_try='test -s conftest.$ac_objext' |
| 21945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21946 | (eval $ac_try) 2>&5 |
| 21947 | ac_status=$? |
| 21948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21949 | (exit $ac_status); }; }; then |
| 21950 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21951 | else |
| 21952 | echo "$as_me: failed program was:" >&5 |
| 21953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21954 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21955 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21956 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21957 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21958 | fi |
| 21959 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 21960 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
| 21961 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21962 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21963 | cat >>confdefs.h <<\_ACEOF |
| 21964 | #define TIME_WITH_SYS_TIME 1 |
| 21965 | _ACEOF |
| 21966 | |
| 21967 | fi |
| 21968 | |
| 21969 | echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 21970 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6 |
| 21971 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21973 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21974 | ac_ext=c |
| 21975 | ac_cpp='$CPP $CPPFLAGS' |
| 21976 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21977 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21978 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21979 | |
| 21980 | cat >conftest.$ac_ext <<_ACEOF |
| 21981 | /* confdefs.h. */ |
| 21982 | _ACEOF |
| 21983 | cat confdefs.h >>conftest.$ac_ext |
| 21984 | cat >>conftest.$ac_ext <<_ACEOF |
| 21985 | /* end confdefs.h. */ |
| 21986 | #include <sys/mman.h> |
| 21987 | #include <unistd.h> |
| 21988 | #include <fcntl.h> |
| 21989 | int |
| 21990 | main () |
| 21991 | { |
| 21992 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 21993 | ; |
| 21994 | return 0; |
| 21995 | } |
| 21996 | _ACEOF |
| 21997 | rm -f conftest.$ac_objext |
| 21998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21999 | (eval $ac_compile) 2>conftest.er1 |
| 22000 | ac_status=$? |
| 22001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22002 | rm -f conftest.er1 |
| 22003 | cat conftest.err >&5 |
| 22004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22005 | (exit $ac_status); } && |
| 22006 | { ac_try='test -z "$ac_c_werror_flag" |
| 22007 | || test ! -s conftest.err' |
| 22008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22009 | (eval $ac_try) 2>&5 |
| 22010 | ac_status=$? |
| 22011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22012 | (exit $ac_status); }; } && |
| 22013 | { ac_try='test -s conftest.$ac_objext' |
| 22014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22015 | (eval $ac_try) 2>&5 |
| 22016 | ac_status=$? |
| 22017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22018 | (exit $ac_status); }; }; then |
| 22019 | ac_cv_header_mmap_anon=yes |
| 22020 | else |
| 22021 | echo "$as_me: failed program was:" >&5 |
| 22022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22023 | |
| 22024 | ac_cv_header_mmap_anon=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22025 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22026 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22027 | ac_ext=c |
| 22028 | ac_cpp='$CPP $CPPFLAGS' |
| 22029 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22030 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22031 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22032 | |
| 22033 | |
| 22034 | fi |
| 22035 | echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 22036 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6 |
| 22037 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 22038 | |
| 22039 | cat >>confdefs.h <<\_ACEOF |
| 22040 | #define HAVE_MMAP_ANONYMOUS |
| 22041 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22042 | |
| 22043 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22044 | |
| 22045 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22046 | |
| 22047 | |
| 22048 | for ac_header in inttypes.h stdint.h |
| 22049 | do |
| 22050 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 22051 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 22052 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 22053 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 22054 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22056 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22057 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 22058 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22059 | else |
| 22060 | # Is the header compilable? |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22061 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 22062 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22063 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22064 | /* confdefs.h. */ |
| 22065 | _ACEOF |
| 22066 | cat confdefs.h >>conftest.$ac_ext |
| 22067 | cat >>conftest.$ac_ext <<_ACEOF |
| 22068 | /* end confdefs.h. */ |
| 22069 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22070 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22071 | _ACEOF |
| 22072 | rm -f conftest.$ac_objext |
| 22073 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22074 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22075 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22077 | rm -f conftest.er1 |
| 22078 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22080 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22081 | { ac_try='test -z "$ac_c_werror_flag" |
| 22082 | || test ! -s conftest.err' |
| 22083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22084 | (eval $ac_try) 2>&5 |
| 22085 | ac_status=$? |
| 22086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22087 | (exit $ac_status); }; } && |
| 22088 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22090 | (eval $ac_try) 2>&5 |
| 22091 | ac_status=$? |
| 22092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22093 | (exit $ac_status); }; }; then |
| 22094 | ac_header_compiler=yes |
| 22095 | else |
| 22096 | echo "$as_me: failed program was:" >&5 |
| 22097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22098 | |
| 22099 | ac_header_compiler=no |
| 22100 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22102 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 22103 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 22104 | |
| 22105 | # Is the header present? |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22106 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 22107 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22108 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22109 | /* confdefs.h. */ |
| 22110 | _ACEOF |
| 22111 | cat confdefs.h >>conftest.$ac_ext |
| 22112 | cat >>conftest.$ac_ext <<_ACEOF |
| 22113 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22114 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22115 | _ACEOF |
| 22116 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 22117 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 22118 | ac_status=$? |
| 22119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22120 | rm -f conftest.er1 |
| 22121 | cat conftest.err >&5 |
| 22122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22123 | (exit $ac_status); } >/dev/null; then |
| 22124 | if test -s conftest.err; then |
| 22125 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22126 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22127 | else |
| 22128 | ac_cpp_err= |
| 22129 | fi |
| 22130 | else |
| 22131 | ac_cpp_err=yes |
| 22132 | fi |
| 22133 | if test -z "$ac_cpp_err"; then |
| 22134 | ac_header_preproc=yes |
| 22135 | else |
| 22136 | echo "$as_me: failed program was:" >&5 |
| 22137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22138 | |
| 22139 | ac_header_preproc=no |
| 22140 | fi |
| 22141 | rm -f conftest.err conftest.$ac_ext |
| 22142 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 22143 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 22144 | |
| 22145 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22146 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 22147 | yes:no: ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22148 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 22149 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 22150 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 22151 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22152 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 22153 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22154 | no:yes:* ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22155 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 22156 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 22157 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 22158 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 22159 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 22160 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 22161 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 22162 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 22163 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 22164 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 22165 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 22166 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 22167 | ( |
| 22168 | cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22169 | ## ----------------------------------- ## |
| 22170 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 22171 | ## ----------------------------------- ## |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22172 | _ASBOX |
| 22173 | ) | |
| 22174 | sed "s/^/$as_me: WARNING: /" >&2 |
| 22175 | ;; |
| 22176 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22177 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 22178 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 22179 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22181 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22182 | eval "$as_ac_Header=\$ac_header_preproc" |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22183 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22184 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 22185 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22186 | |
| 22187 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22188 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 22189 | cat >>confdefs.h <<_ACEOF |
| 22190 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 22191 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 22192 | |
| 22193 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 22194 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22195 | done |
| 22196 | |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 22197 | |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22198 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22199 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 22200 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 22201 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 22202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22203 | else |
| 22204 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22205 | /* confdefs.h. */ |
| 22206 | _ACEOF |
| 22207 | cat confdefs.h >>conftest.$ac_ext |
| 22208 | cat >>conftest.$ac_ext <<_ACEOF |
| 22209 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22210 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22211 | int |
| 22212 | main () |
| 22213 | { |
| 22214 | if ((pid_t *) 0) |
| 22215 | return 0; |
| 22216 | if (sizeof (pid_t)) |
| 22217 | return 0; |
| 22218 | ; |
| 22219 | return 0; |
| 22220 | } |
| 22221 | _ACEOF |
| 22222 | rm -f conftest.$ac_objext |
| 22223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22224 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22225 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22227 | rm -f conftest.er1 |
| 22228 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22230 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22231 | { ac_try='test -z "$ac_c_werror_flag" |
| 22232 | || test ! -s conftest.err' |
| 22233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22234 | (eval $ac_try) 2>&5 |
| 22235 | ac_status=$? |
| 22236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22237 | (exit $ac_status); }; } && |
| 22238 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22240 | (eval $ac_try) 2>&5 |
| 22241 | ac_status=$? |
| 22242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22243 | (exit $ac_status); }; }; then |
| 22244 | ac_cv_type_pid_t=yes |
| 22245 | else |
| 22246 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22248 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22249 | ac_cv_type_pid_t=no |
| 22250 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22252 | fi |
| 22253 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 22254 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 22255 | if test $ac_cv_type_pid_t = yes; then |
| 22256 | : |
| 22257 | else |
| 22258 | |
| 22259 | cat >>confdefs.h <<_ACEOF |
| 22260 | #define pid_t int |
| 22261 | _ACEOF |
| 22262 | |
| 22263 | fi |
| 22264 | |
| 22265 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 22266 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 22267 | if test "${ac_cv_type_size_t+set}" = set; then |
| 22268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22269 | else |
| 22270 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22271 | /* confdefs.h. */ |
| 22272 | _ACEOF |
| 22273 | cat confdefs.h >>conftest.$ac_ext |
| 22274 | cat >>conftest.$ac_ext <<_ACEOF |
| 22275 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22276 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22277 | int |
| 22278 | main () |
| 22279 | { |
| 22280 | if ((size_t *) 0) |
| 22281 | return 0; |
| 22282 | if (sizeof (size_t)) |
| 22283 | return 0; |
| 22284 | ; |
| 22285 | return 0; |
| 22286 | } |
| 22287 | _ACEOF |
| 22288 | rm -f conftest.$ac_objext |
| 22289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22290 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22291 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22292 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22293 | rm -f conftest.er1 |
| 22294 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22296 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22297 | { ac_try='test -z "$ac_c_werror_flag" |
| 22298 | || test ! -s conftest.err' |
| 22299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22300 | (eval $ac_try) 2>&5 |
| 22301 | ac_status=$? |
| 22302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22303 | (exit $ac_status); }; } && |
| 22304 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22306 | (eval $ac_try) 2>&5 |
| 22307 | ac_status=$? |
| 22308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22309 | (exit $ac_status); }; }; then |
| 22310 | ac_cv_type_size_t=yes |
| 22311 | else |
| 22312 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22313 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22314 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22315 | ac_cv_type_size_t=no |
| 22316 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22317 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22318 | fi |
| 22319 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 22320 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 22321 | if test $ac_cv_type_size_t = yes; then |
| 22322 | : |
| 22323 | else |
| 22324 | |
| 22325 | cat >>confdefs.h <<_ACEOF |
| 22326 | #define size_t unsigned |
| 22327 | _ACEOF |
| 22328 | |
| 22329 | fi |
| 22330 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22331 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 22332 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 22333 | if test "${ac_cv_type_signal+set}" = set; then |
| 22334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22335 | else |
| 22336 | cat >conftest.$ac_ext <<_ACEOF |
| 22337 | /* confdefs.h. */ |
| 22338 | _ACEOF |
| 22339 | cat confdefs.h >>conftest.$ac_ext |
| 22340 | cat >>conftest.$ac_ext <<_ACEOF |
| 22341 | /* end confdefs.h. */ |
| 22342 | #include <sys/types.h> |
| 22343 | #include <signal.h> |
| 22344 | #ifdef signal |
| 22345 | # undef signal |
| 22346 | #endif |
| 22347 | #ifdef __cplusplus |
| 22348 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 22349 | #else |
| 22350 | void (*signal ()) (); |
| 22351 | #endif |
| 22352 | |
| 22353 | int |
| 22354 | main () |
| 22355 | { |
| 22356 | int i; |
| 22357 | ; |
| 22358 | return 0; |
| 22359 | } |
| 22360 | _ACEOF |
| 22361 | rm -f conftest.$ac_objext |
| 22362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22363 | (eval $ac_compile) 2>conftest.er1 |
| 22364 | ac_status=$? |
| 22365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22366 | rm -f conftest.er1 |
| 22367 | cat conftest.err >&5 |
| 22368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22369 | (exit $ac_status); } && |
| 22370 | { ac_try='test -z "$ac_c_werror_flag" |
| 22371 | || test ! -s conftest.err' |
| 22372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22373 | (eval $ac_try) 2>&5 |
| 22374 | ac_status=$? |
| 22375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22376 | (exit $ac_status); }; } && |
| 22377 | { ac_try='test -s conftest.$ac_objext' |
| 22378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22379 | (eval $ac_try) 2>&5 |
| 22380 | ac_status=$? |
| 22381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22382 | (exit $ac_status); }; }; then |
| 22383 | ac_cv_type_signal=void |
| 22384 | else |
| 22385 | echo "$as_me: failed program was:" >&5 |
| 22386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22387 | |
| 22388 | ac_cv_type_signal=int |
| 22389 | fi |
| 22390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22391 | fi |
| 22392 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 22393 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 22394 | |
| 22395 | cat >>confdefs.h <<_ACEOF |
| 22396 | #define RETSIGTYPE $ac_cv_type_signal |
| 22397 | _ACEOF |
| 22398 | |
| 22399 | |
| 22400 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 22401 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 22402 | if test "${ac_cv_struct_tm+set}" = set; then |
| 22403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22404 | else |
| 22405 | cat >conftest.$ac_ext <<_ACEOF |
| 22406 | /* confdefs.h. */ |
| 22407 | _ACEOF |
| 22408 | cat confdefs.h >>conftest.$ac_ext |
| 22409 | cat >>conftest.$ac_ext <<_ACEOF |
| 22410 | /* end confdefs.h. */ |
| 22411 | #include <sys/types.h> |
| 22412 | #include <time.h> |
| 22413 | |
| 22414 | int |
| 22415 | main () |
| 22416 | { |
| 22417 | struct tm *tp; tp->tm_sec; |
| 22418 | ; |
| 22419 | return 0; |
| 22420 | } |
| 22421 | _ACEOF |
| 22422 | rm -f conftest.$ac_objext |
| 22423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22424 | (eval $ac_compile) 2>conftest.er1 |
| 22425 | ac_status=$? |
| 22426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22427 | rm -f conftest.er1 |
| 22428 | cat conftest.err >&5 |
| 22429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22430 | (exit $ac_status); } && |
| 22431 | { ac_try='test -z "$ac_c_werror_flag" |
| 22432 | || test ! -s conftest.err' |
| 22433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22434 | (eval $ac_try) 2>&5 |
| 22435 | ac_status=$? |
| 22436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22437 | (exit $ac_status); }; } && |
| 22438 | { ac_try='test -s conftest.$ac_objext' |
| 22439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22440 | (eval $ac_try) 2>&5 |
| 22441 | ac_status=$? |
| 22442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22443 | (exit $ac_status); }; }; then |
| 22444 | ac_cv_struct_tm=time.h |
| 22445 | else |
| 22446 | echo "$as_me: failed program was:" >&5 |
| 22447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22448 | |
| 22449 | ac_cv_struct_tm=sys/time.h |
| 22450 | fi |
| 22451 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22452 | fi |
| 22453 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 22454 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
| 22455 | if test $ac_cv_struct_tm = sys/time.h; then |
| 22456 | |
| 22457 | cat >>confdefs.h <<\_ACEOF |
| 22458 | #define TM_IN_SYS_TIME 1 |
| 22459 | _ACEOF |
| 22460 | |
| 22461 | fi |
| 22462 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22463 | echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 22464 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 |
| 22465 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 22466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22467 | else |
| 22468 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22469 | /* confdefs.h. */ |
| 22470 | _ACEOF |
| 22471 | cat confdefs.h >>conftest.$ac_ext |
| 22472 | cat >>conftest.$ac_ext <<_ACEOF |
| 22473 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22474 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22475 | int |
| 22476 | main () |
| 22477 | { |
| 22478 | if ((int64_t *) 0) |
| 22479 | return 0; |
| 22480 | if (sizeof (int64_t)) |
| 22481 | return 0; |
| 22482 | ; |
| 22483 | return 0; |
| 22484 | } |
| 22485 | _ACEOF |
| 22486 | rm -f conftest.$ac_objext |
| 22487 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22488 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22489 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22491 | rm -f conftest.er1 |
| 22492 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22494 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22495 | { ac_try='test -z "$ac_c_werror_flag" |
| 22496 | || test ! -s conftest.err' |
| 22497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22498 | (eval $ac_try) 2>&5 |
| 22499 | ac_status=$? |
| 22500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22501 | (exit $ac_status); }; } && |
| 22502 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22504 | (eval $ac_try) 2>&5 |
| 22505 | ac_status=$? |
| 22506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22507 | (exit $ac_status); }; }; then |
| 22508 | ac_cv_type_int64_t=yes |
| 22509 | else |
| 22510 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22511 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22512 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22513 | ac_cv_type_int64_t=no |
| 22514 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22515 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22516 | fi |
| 22517 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 22518 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 |
| 22519 | if test $ac_cv_type_int64_t = yes; then |
| 22520 | |
| 22521 | cat >>confdefs.h <<_ACEOF |
| 22522 | #define HAVE_INT64_T 1 |
| 22523 | _ACEOF |
| 22524 | |
| 22525 | |
| 22526 | else |
| 22527 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 22528 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 22529 | { (exit 1); exit 1; }; } |
| 22530 | fi |
| 22531 | |
| 22532 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 22533 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 |
| 22534 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 22535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22536 | else |
| 22537 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22538 | /* confdefs.h. */ |
| 22539 | _ACEOF |
| 22540 | cat confdefs.h >>conftest.$ac_ext |
| 22541 | cat >>conftest.$ac_ext <<_ACEOF |
| 22542 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22543 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22544 | int |
| 22545 | main () |
| 22546 | { |
| 22547 | if ((uint64_t *) 0) |
| 22548 | return 0; |
| 22549 | if (sizeof (uint64_t)) |
| 22550 | return 0; |
| 22551 | ; |
| 22552 | return 0; |
| 22553 | } |
| 22554 | _ACEOF |
| 22555 | rm -f conftest.$ac_objext |
| 22556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22557 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22558 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22560 | rm -f conftest.er1 |
| 22561 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22563 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22564 | { ac_try='test -z "$ac_c_werror_flag" |
| 22565 | || test ! -s conftest.err' |
| 22566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22567 | (eval $ac_try) 2>&5 |
| 22568 | ac_status=$? |
| 22569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22570 | (exit $ac_status); }; } && |
| 22571 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22573 | (eval $ac_try) 2>&5 |
| 22574 | ac_status=$? |
| 22575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22576 | (exit $ac_status); }; }; then |
| 22577 | ac_cv_type_uint64_t=yes |
| 22578 | else |
| 22579 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22580 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22581 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22582 | ac_cv_type_uint64_t=no |
| 22583 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22584 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22585 | fi |
| 22586 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 22587 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 |
| 22588 | if test $ac_cv_type_uint64_t = yes; then |
| 22589 | |
| 22590 | cat >>confdefs.h <<_ACEOF |
| 22591 | #define HAVE_UINT64_T 1 |
| 22592 | _ACEOF |
| 22593 | |
| 22594 | |
| 22595 | else |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 22596 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 22597 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 |
| 22598 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 22599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22600 | else |
| 22601 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 22602 | /* confdefs.h. */ |
| 22603 | _ACEOF |
| 22604 | cat confdefs.h >>conftest.$ac_ext |
| 22605 | cat >>conftest.$ac_ext <<_ACEOF |
| 22606 | /* end confdefs.h. */ |
| 22607 | $ac_includes_default |
| 22608 | int |
| 22609 | main () |
| 22610 | { |
| 22611 | if ((u_int64_t *) 0) |
| 22612 | return 0; |
| 22613 | if (sizeof (u_int64_t)) |
| 22614 | return 0; |
| 22615 | ; |
| 22616 | return 0; |
| 22617 | } |
| 22618 | _ACEOF |
| 22619 | rm -f conftest.$ac_objext |
| 22620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22621 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 22622 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22623 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22624 | rm -f conftest.er1 |
| 22625 | cat conftest.err >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 22626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22627 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22628 | { ac_try='test -z "$ac_c_werror_flag" |
| 22629 | || test ! -s conftest.err' |
| 22630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22631 | (eval $ac_try) 2>&5 |
| 22632 | ac_status=$? |
| 22633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22634 | (exit $ac_status); }; } && |
| 22635 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 22636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22637 | (eval $ac_try) 2>&5 |
| 22638 | ac_status=$? |
| 22639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22640 | (exit $ac_status); }; }; then |
| 22641 | ac_cv_type_u_int64_t=yes |
| 22642 | else |
| 22643 | echo "$as_me: failed program was:" >&5 |
| 22644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22645 | |
| 22646 | ac_cv_type_u_int64_t=no |
| 22647 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22648 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 22649 | fi |
| 22650 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 22651 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 |
| 22652 | if test $ac_cv_type_u_int64_t = yes; then |
| 22653 | |
| 22654 | cat >>confdefs.h <<_ACEOF |
| 22655 | #define HAVE_U_INT64_T 1 |
| 22656 | _ACEOF |
| 22657 | |
| 22658 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 22659 | else |
| 22660 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 22661 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 22662 | { (exit 1); exit 1; }; } |
| 22663 | fi |
| 22664 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 22665 | fi |
| 22666 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22667 | |
| 22668 | |
| 22669 | |
| 22670 | |
| 22671 | |
| 22672 | |
| 22673 | |
| 22674 | |
| 22675 | for ac_func in backtrace getcwd gettimeofday isatty getrusage mkstemp |
| 22676 | do |
| 22677 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22678 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22679 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 22680 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22682 | else |
| 22683 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22684 | /* confdefs.h. */ |
| 22685 | _ACEOF |
| 22686 | cat confdefs.h >>conftest.$ac_ext |
| 22687 | cat >>conftest.$ac_ext <<_ACEOF |
| 22688 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22689 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22690 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22691 | #define $ac_func innocuous_$ac_func |
| 22692 | |
| 22693 | /* System header to define __stub macros and hopefully few prototypes, |
| 22694 | which can conflict with char $ac_func (); below. |
| 22695 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22696 | <limits.h> exists even on freestanding compilers. */ |
| 22697 | |
| 22698 | #ifdef __STDC__ |
| 22699 | # include <limits.h> |
| 22700 | #else |
| 22701 | # include <assert.h> |
| 22702 | #endif |
| 22703 | |
| 22704 | #undef $ac_func |
| 22705 | |
| 22706 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 22707 | #ifdef __cplusplus |
| 22708 | extern "C" |
| 22709 | { |
| 22710 | #endif |
| 22711 | /* We use char because int might match the return type of a gcc2 |
| 22712 | builtin and then its argument prototype would still apply. */ |
| 22713 | char $ac_func (); |
| 22714 | /* The GNU C library defines this for functions which it implements |
| 22715 | to always fail with ENOSYS. Some functions are actually named |
| 22716 | something starting with __ and the normal name is an alias. */ |
| 22717 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 22718 | choke me |
| 22719 | #else |
| 22720 | char (*f) () = $ac_func; |
| 22721 | #endif |
| 22722 | #ifdef __cplusplus |
| 22723 | } |
| 22724 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22725 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22726 | int |
| 22727 | main () |
| 22728 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22729 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22730 | ; |
| 22731 | return 0; |
| 22732 | } |
| 22733 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22734 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22735 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22736 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22737 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22738 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22739 | rm -f conftest.er1 |
| 22740 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22742 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22743 | { ac_try='test -z "$ac_c_werror_flag" |
| 22744 | || test ! -s conftest.err' |
| 22745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22746 | (eval $ac_try) 2>&5 |
| 22747 | ac_status=$? |
| 22748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22749 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22750 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22752 | (eval $ac_try) 2>&5 |
| 22753 | ac_status=$? |
| 22754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22755 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22756 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22757 | else |
| 22758 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22760 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22761 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22762 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22763 | rm -f conftest.err conftest.$ac_objext \ |
| 22764 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22765 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22766 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 22767 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 22768 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 22769 | cat >>confdefs.h <<_ACEOF |
| 22770 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22771 | _ACEOF |
| 22772 | |
| 22773 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22774 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22775 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22776 | |
| 22777 | |
| 22778 | |
| 22779 | for ac_func in strdup strtoq strtoll |
| 22780 | do |
| 22781 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22782 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22783 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 22784 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22786 | else |
| 22787 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22788 | /* confdefs.h. */ |
| 22789 | _ACEOF |
| 22790 | cat confdefs.h >>conftest.$ac_ext |
| 22791 | cat >>conftest.$ac_ext <<_ACEOF |
| 22792 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22793 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22794 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22795 | #define $ac_func innocuous_$ac_func |
| 22796 | |
| 22797 | /* System header to define __stub macros and hopefully few prototypes, |
| 22798 | which can conflict with char $ac_func (); below. |
| 22799 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22800 | <limits.h> exists even on freestanding compilers. */ |
| 22801 | |
| 22802 | #ifdef __STDC__ |
| 22803 | # include <limits.h> |
| 22804 | #else |
| 22805 | # include <assert.h> |
| 22806 | #endif |
| 22807 | |
| 22808 | #undef $ac_func |
| 22809 | |
| 22810 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 22811 | #ifdef __cplusplus |
| 22812 | extern "C" |
| 22813 | { |
| 22814 | #endif |
| 22815 | /* We use char because int might match the return type of a gcc2 |
| 22816 | builtin and then its argument prototype would still apply. */ |
| 22817 | char $ac_func (); |
| 22818 | /* The GNU C library defines this for functions which it implements |
| 22819 | to always fail with ENOSYS. Some functions are actually named |
| 22820 | something starting with __ and the normal name is an alias. */ |
| 22821 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 22822 | choke me |
| 22823 | #else |
| 22824 | char (*f) () = $ac_func; |
| 22825 | #endif |
| 22826 | #ifdef __cplusplus |
| 22827 | } |
| 22828 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22829 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22830 | int |
| 22831 | main () |
| 22832 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22833 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22834 | ; |
| 22835 | return 0; |
| 22836 | } |
| 22837 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22838 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22840 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22841 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22842 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22843 | rm -f conftest.er1 |
| 22844 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22846 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22847 | { ac_try='test -z "$ac_c_werror_flag" |
| 22848 | || test ! -s conftest.err' |
| 22849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22850 | (eval $ac_try) 2>&5 |
| 22851 | ac_status=$? |
| 22852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22853 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22854 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22856 | (eval $ac_try) 2>&5 |
| 22857 | ac_status=$? |
| 22858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22859 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22860 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22861 | else |
| 22862 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22864 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22865 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22866 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22867 | rm -f conftest.err conftest.$ac_objext \ |
| 22868 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22869 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22870 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 22871 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 22872 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 22873 | cat >>confdefs.h <<_ACEOF |
| 22874 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22875 | _ACEOF |
| 22876 | |
| 22877 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22878 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22879 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22880 | echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 22881 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6 |
| 22882 | if test "${ac_cv_printf_a+set}" = set; then |
| 22883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22884 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22885 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 22886 | ac_cpp='$CPP $CPPFLAGS' |
| 22887 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22888 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22889 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22890 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22891 | if test "$cross_compiling" = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22892 | ac_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 22893 | else |
| 22894 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22895 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22896 | /* confdefs.h. */ |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 22897 | _ACEOF |
| 22898 | cat confdefs.h >>conftest.$ac_ext |
| 22899 | cat >>conftest.$ac_ext <<_ACEOF |
| 22900 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22901 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 22902 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22903 | #include <stdlib.h> |
| 22904 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 22905 | int |
| 22906 | main () |
| 22907 | { |
| 22908 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22909 | volatile double A, B; |
| 22910 | char Buffer[100]; |
| 22911 | A = 1; |
| 22912 | A /= 10.0; |
| 22913 | sprintf(Buffer, "%a", A); |
| 22914 | B = atof(Buffer); |
| 22915 | if (A != B) |
| 22916 | return (1); |
| 22917 | if (A != 0x1.999999999999ap-4) |
| 22918 | return (1); |
| 22919 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 22920 | ; |
| 22921 | return 0; |
| 22922 | } |
| 22923 | _ACEOF |
| 22924 | rm -f conftest$ac_exeext |
| 22925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22926 | (eval $ac_link) 2>&5 |
| 22927 | ac_status=$? |
| 22928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22929 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22931 | (eval $ac_try) 2>&5 |
| 22932 | ac_status=$? |
| 22933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22934 | (exit $ac_status); }; }; then |
| 22935 | ac_c_printf_a=yes |
| 22936 | else |
| 22937 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22938 | echo "$as_me: failed program was:" >&5 |
| 22939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22940 | |
| 22941 | ( exit $ac_status ) |
| 22942 | ac_c_printf_a=no |
| 22943 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22944 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 22945 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22946 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 22947 | ac_cpp='$CPP $CPPFLAGS' |
| 22948 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22949 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22950 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22951 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22952 | fi |
| 22953 | echo "$as_me:$LINENO: result: $ac_cv_printf_a" >&5 |
| 22954 | echo "${ECHO_T}$ac_cv_printf_a" >&6 |
| 22955 | if test "$ac_cv_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 22956 | |
| 22957 | cat >>confdefs.h <<\_ACEOF |
| 22958 | #define HAVE_PRINTF_A 1 |
| 22959 | _ACEOF |
| 22960 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22961 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 22962 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22963 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 22964 | # for constant arguments. Useless! |
| 22965 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 22966 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 22967 | if test "${ac_cv_working_alloca_h+set}" = set; then |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 22968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22969 | else |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 22970 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 22971 | /* confdefs.h. */ |
| 22972 | _ACEOF |
| 22973 | cat confdefs.h >>conftest.$ac_ext |
| 22974 | cat >>conftest.$ac_ext <<_ACEOF |
| 22975 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22976 | #include <alloca.h> |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 22977 | int |
| 22978 | main () |
| 22979 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22980 | char *p = (char *) alloca (2 * sizeof (int)); |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 22981 | ; |
| 22982 | return 0; |
| 22983 | } |
| 22984 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22985 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22987 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 22988 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22989 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22990 | rm -f conftest.er1 |
| 22991 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 22992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22993 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22994 | { ac_try='test -z "$ac_c_werror_flag" |
| 22995 | || test ! -s conftest.err' |
| 22996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22997 | (eval $ac_try) 2>&5 |
| 22998 | ac_status=$? |
| 22999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23000 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23001 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23003 | (eval $ac_try) 2>&5 |
| 23004 | ac_status=$? |
| 23005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23006 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23007 | ac_cv_working_alloca_h=yes |
| 23008 | else |
| 23009 | echo "$as_me: failed program was:" >&5 |
| 23010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23011 | |
| 23012 | ac_cv_working_alloca_h=no |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23013 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23014 | rm -f conftest.err conftest.$ac_objext \ |
| 23015 | conftest$ac_exeext conftest.$ac_ext |
| 23016 | fi |
| 23017 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 23018 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 23019 | if test $ac_cv_working_alloca_h = yes; then |
| 23020 | |
| 23021 | cat >>confdefs.h <<\_ACEOF |
| 23022 | #define HAVE_ALLOCA_H 1 |
| 23023 | _ACEOF |
| 23024 | |
| 23025 | fi |
| 23026 | |
| 23027 | echo "$as_me:$LINENO: checking for alloca" >&5 |
| 23028 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 23029 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 23030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23031 | else |
| 23032 | cat >conftest.$ac_ext <<_ACEOF |
| 23033 | /* confdefs.h. */ |
| 23034 | _ACEOF |
| 23035 | cat confdefs.h >>conftest.$ac_ext |
| 23036 | cat >>conftest.$ac_ext <<_ACEOF |
| 23037 | /* end confdefs.h. */ |
| 23038 | #ifdef __GNUC__ |
| 23039 | # define alloca __builtin_alloca |
| 23040 | #else |
| 23041 | # ifdef _MSC_VER |
| 23042 | # include <malloc.h> |
| 23043 | # define alloca _alloca |
| 23044 | # else |
| 23045 | # if HAVE_ALLOCA_H |
| 23046 | # include <alloca.h> |
| 23047 | # else |
| 23048 | # ifdef _AIX |
| 23049 | #pragma alloca |
| 23050 | # else |
| 23051 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 23052 | char *alloca (); |
| 23053 | # endif |
| 23054 | # endif |
| 23055 | # endif |
| 23056 | # endif |
| 23057 | #endif |
| 23058 | |
| 23059 | int |
| 23060 | main () |
| 23061 | { |
| 23062 | char *p = (char *) alloca (1); |
| 23063 | ; |
| 23064 | return 0; |
| 23065 | } |
| 23066 | _ACEOF |
| 23067 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 23069 | (eval $ac_link) 2>conftest.er1 |
| 23070 | ac_status=$? |
| 23071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23072 | rm -f conftest.er1 |
| 23073 | cat conftest.err >&5 |
| 23074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23075 | (exit $ac_status); } && |
| 23076 | { ac_try='test -z "$ac_c_werror_flag" |
| 23077 | || test ! -s conftest.err' |
| 23078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23079 | (eval $ac_try) 2>&5 |
| 23080 | ac_status=$? |
| 23081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23082 | (exit $ac_status); }; } && |
| 23083 | { ac_try='test -s conftest$ac_exeext' |
| 23084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23085 | (eval $ac_try) 2>&5 |
| 23086 | ac_status=$? |
| 23087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23088 | (exit $ac_status); }; }; then |
| 23089 | ac_cv_func_alloca_works=yes |
| 23090 | else |
| 23091 | echo "$as_me: failed program was:" >&5 |
| 23092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23093 | |
| 23094 | ac_cv_func_alloca_works=no |
| 23095 | fi |
| 23096 | rm -f conftest.err conftest.$ac_objext \ |
| 23097 | conftest$ac_exeext conftest.$ac_ext |
| 23098 | fi |
| 23099 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 23100 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
| 23101 | |
| 23102 | if test $ac_cv_func_alloca_works = yes; then |
| 23103 | |
| 23104 | cat >>confdefs.h <<\_ACEOF |
| 23105 | #define HAVE_ALLOCA 1 |
| 23106 | _ACEOF |
| 23107 | |
| 23108 | else |
| 23109 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 23110 | # that cause trouble. Some versions do not even contain alloca or |
| 23111 | # contain a buggy version. If you still want to use their alloca, |
| 23112 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 23113 | |
| 23114 | ALLOCA=alloca.$ac_objext |
| 23115 | |
| 23116 | cat >>confdefs.h <<\_ACEOF |
| 23117 | #define C_ALLOCA 1 |
| 23118 | _ACEOF |
| 23119 | |
| 23120 | |
| 23121 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 23122 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 23123 | if test "${ac_cv_os_cray+set}" = set; then |
| 23124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23125 | else |
| 23126 | cat >conftest.$ac_ext <<_ACEOF |
| 23127 | /* confdefs.h. */ |
| 23128 | _ACEOF |
| 23129 | cat confdefs.h >>conftest.$ac_ext |
| 23130 | cat >>conftest.$ac_ext <<_ACEOF |
| 23131 | /* end confdefs.h. */ |
| 23132 | #if defined(CRAY) && ! defined(CRAY2) |
| 23133 | webecray |
| 23134 | #else |
| 23135 | wenotbecray |
| 23136 | #endif |
| 23137 | |
| 23138 | _ACEOF |
| 23139 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 23140 | $EGREP "webecray" >/dev/null 2>&1; then |
| 23141 | ac_cv_os_cray=yes |
| 23142 | else |
| 23143 | ac_cv_os_cray=no |
| 23144 | fi |
| 23145 | rm -f conftest* |
| 23146 | |
| 23147 | fi |
| 23148 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 23149 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
| 23150 | if test $ac_cv_os_cray = yes; then |
| 23151 | for ac_func in _getb67 GETB67 getb67; do |
| 23152 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23153 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23154 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 23155 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 23156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23157 | else |
| 23158 | cat >conftest.$ac_ext <<_ACEOF |
| 23159 | /* confdefs.h. */ |
| 23160 | _ACEOF |
| 23161 | cat confdefs.h >>conftest.$ac_ext |
| 23162 | cat >>conftest.$ac_ext <<_ACEOF |
| 23163 | /* end confdefs.h. */ |
| 23164 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23165 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23166 | #define $ac_func innocuous_$ac_func |
| 23167 | |
| 23168 | /* System header to define __stub macros and hopefully few prototypes, |
| 23169 | which can conflict with char $ac_func (); below. |
| 23170 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23171 | <limits.h> exists even on freestanding compilers. */ |
| 23172 | |
| 23173 | #ifdef __STDC__ |
| 23174 | # include <limits.h> |
| 23175 | #else |
| 23176 | # include <assert.h> |
| 23177 | #endif |
| 23178 | |
| 23179 | #undef $ac_func |
| 23180 | |
| 23181 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23182 | #ifdef __cplusplus |
| 23183 | extern "C" |
| 23184 | { |
| 23185 | #endif |
| 23186 | /* We use char because int might match the return type of a gcc2 |
| 23187 | builtin and then its argument prototype would still apply. */ |
| 23188 | char $ac_func (); |
| 23189 | /* The GNU C library defines this for functions which it implements |
| 23190 | to always fail with ENOSYS. Some functions are actually named |
| 23191 | something starting with __ and the normal name is an alias. */ |
| 23192 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 23193 | choke me |
| 23194 | #else |
| 23195 | char (*f) () = $ac_func; |
| 23196 | #endif |
| 23197 | #ifdef __cplusplus |
| 23198 | } |
| 23199 | #endif |
| 23200 | |
| 23201 | int |
| 23202 | main () |
| 23203 | { |
| 23204 | return f != $ac_func; |
| 23205 | ; |
| 23206 | return 0; |
| 23207 | } |
| 23208 | _ACEOF |
| 23209 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 23211 | (eval $ac_link) 2>conftest.er1 |
| 23212 | ac_status=$? |
| 23213 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23214 | rm -f conftest.er1 |
| 23215 | cat conftest.err >&5 |
| 23216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23217 | (exit $ac_status); } && |
| 23218 | { ac_try='test -z "$ac_c_werror_flag" |
| 23219 | || test ! -s conftest.err' |
| 23220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23221 | (eval $ac_try) 2>&5 |
| 23222 | ac_status=$? |
| 23223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23224 | (exit $ac_status); }; } && |
| 23225 | { ac_try='test -s conftest$ac_exeext' |
| 23226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23227 | (eval $ac_try) 2>&5 |
| 23228 | ac_status=$? |
| 23229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23230 | (exit $ac_status); }; }; then |
| 23231 | eval "$as_ac_var=yes" |
| 23232 | else |
| 23233 | echo "$as_me: failed program was:" >&5 |
| 23234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23235 | |
| 23236 | eval "$as_ac_var=no" |
| 23237 | fi |
| 23238 | rm -f conftest.err conftest.$ac_objext \ |
| 23239 | conftest$ac_exeext conftest.$ac_ext |
| 23240 | fi |
| 23241 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 23242 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 23243 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 23244 | |
| 23245 | cat >>confdefs.h <<_ACEOF |
| 23246 | #define CRAY_STACKSEG_END $ac_func |
| 23247 | _ACEOF |
| 23248 | |
| 23249 | break |
| 23250 | fi |
| 23251 | |
| 23252 | done |
| 23253 | fi |
| 23254 | |
| 23255 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 23256 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 23257 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 23258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23259 | else |
| 23260 | if test "$cross_compiling" = yes; then |
| 23261 | ac_cv_c_stack_direction=0 |
| 23262 | else |
| 23263 | cat >conftest.$ac_ext <<_ACEOF |
| 23264 | /* confdefs.h. */ |
| 23265 | _ACEOF |
| 23266 | cat confdefs.h >>conftest.$ac_ext |
| 23267 | cat >>conftest.$ac_ext <<_ACEOF |
| 23268 | /* end confdefs.h. */ |
| 23269 | int |
| 23270 | find_stack_direction () |
| 23271 | { |
| 23272 | static char *addr = 0; |
| 23273 | auto char dummy; |
| 23274 | if (addr == 0) |
| 23275 | { |
| 23276 | addr = &dummy; |
| 23277 | return find_stack_direction (); |
| 23278 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23279 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23280 | return (&dummy > addr) ? 1 : -1; |
| 23281 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23282 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23283 | int |
| 23284 | main () |
| 23285 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23286 | exit (find_stack_direction () < 0); |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23287 | } |
| 23288 | _ACEOF |
| 23289 | rm -f conftest$ac_exeext |
| 23290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 23291 | (eval $ac_link) 2>&5 |
| 23292 | ac_status=$? |
| 23293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23294 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23296 | (eval $ac_try) 2>&5 |
| 23297 | ac_status=$? |
| 23298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23299 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23300 | ac_cv_c_stack_direction=1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23301 | else |
| 23302 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23303 | echo "$as_me: failed program was:" >&5 |
| 23304 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23305 | |
| 23306 | ( exit $ac_status ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23307 | ac_cv_c_stack_direction=-1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23308 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23309 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23310 | fi |
| 23311 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23312 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 23313 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
| 23314 | |
| 23315 | cat >>confdefs.h <<_ACEOF |
| 23316 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 23317 | _ACEOF |
| 23318 | |
| 23319 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23320 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23321 | |
| 23322 | |
| 23323 | echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 23324 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6 |
| 23325 | if test "${ac_cv_func_rand48+set}" = set; then |
| 23326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23327 | else |
| 23328 | ac_ext=cc |
| 23329 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 23330 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23331 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23332 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 23333 | |
| 23334 | cat >conftest.$ac_ext <<_ACEOF |
| 23335 | /* confdefs.h. */ |
| 23336 | _ACEOF |
| 23337 | cat confdefs.h >>conftest.$ac_ext |
| 23338 | cat >>conftest.$ac_ext <<_ACEOF |
| 23339 | /* end confdefs.h. */ |
| 23340 | #include <stdlib.h> |
| 23341 | int |
| 23342 | main () |
| 23343 | { |
| 23344 | srand48(0);lrand48();drand48(); |
| 23345 | ; |
| 23346 | return 0; |
| 23347 | } |
| 23348 | _ACEOF |
| 23349 | rm -f conftest.$ac_objext |
| 23350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 23351 | (eval $ac_compile) 2>conftest.er1 |
| 23352 | ac_status=$? |
| 23353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23354 | rm -f conftest.er1 |
| 23355 | cat conftest.err >&5 |
| 23356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23357 | (exit $ac_status); } && |
| 23358 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 23359 | || test ! -s conftest.err' |
| 23360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23361 | (eval $ac_try) 2>&5 |
| 23362 | ac_status=$? |
| 23363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23364 | (exit $ac_status); }; } && |
| 23365 | { ac_try='test -s conftest.$ac_objext' |
| 23366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23367 | (eval $ac_try) 2>&5 |
| 23368 | ac_status=$? |
| 23369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23370 | (exit $ac_status); }; }; then |
| 23371 | ac_cv_func_rand48=yes |
| 23372 | else |
| 23373 | echo "$as_me: failed program was:" >&5 |
| 23374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23375 | |
| 23376 | ac_cv_func_rand48=no |
| 23377 | fi |
| 23378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23379 | ac_ext=c |
| 23380 | ac_cpp='$CPP $CPPFLAGS' |
| 23381 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23382 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23383 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23384 | |
| 23385 | fi |
| 23386 | echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 23387 | echo "${ECHO_T}$ac_cv_func_rand48" >&6 |
| 23388 | |
| 23389 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 23390 | |
| 23391 | cat >>confdefs.h <<\_ACEOF |
| 23392 | #define HAVE_RAND48 1 |
| 23393 | _ACEOF |
| 23394 | |
| 23395 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23396 | |
| 23397 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23398 | echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 23399 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 |
| 23400 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 23401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23402 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23403 | ac_ext=cc |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23404 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 23405 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23406 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23407 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 23408 | |
| 23409 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23410 | /* confdefs.h. */ |
| 23411 | _ACEOF |
| 23412 | cat confdefs.h >>conftest.$ac_ext |
| 23413 | cat >>conftest.$ac_ext <<_ACEOF |
| 23414 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23415 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23416 | int |
| 23417 | main () |
| 23418 | { |
| 23419 | using namespace Outer::Inner; return i; |
| 23420 | ; |
| 23421 | return 0; |
| 23422 | } |
| 23423 | _ACEOF |
| 23424 | rm -f conftest.$ac_objext |
| 23425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23426 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23427 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23428 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23429 | rm -f conftest.er1 |
| 23430 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23432 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23433 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 23434 | || test ! -s conftest.err' |
| 23435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23436 | (eval $ac_try) 2>&5 |
| 23437 | ac_status=$? |
| 23438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23439 | (exit $ac_status); }; } && |
| 23440 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23442 | (eval $ac_try) 2>&5 |
| 23443 | ac_status=$? |
| 23444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23445 | (exit $ac_status); }; }; then |
| 23446 | ac_cv_cxx_namespaces=yes |
| 23447 | else |
| 23448 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23450 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23451 | ac_cv_cxx_namespaces=no |
| 23452 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23453 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23454 | ac_ext=c |
| 23455 | ac_cpp='$CPP $CPPFLAGS' |
| 23456 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23457 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23458 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23459 | |
| 23460 | |
| 23461 | fi |
| 23462 | echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 23463 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 |
| 23464 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 23465 | |
| 23466 | cat >>confdefs.h <<\_ACEOF |
| 23467 | #define HAVE_NAMESPACES |
| 23468 | _ACEOF |
| 23469 | |
| 23470 | fi |
| 23471 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23472 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 |
| 23473 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6 |
| 23474 | 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] | 23475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23476 | else |
| 23477 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23478 | ac_ext=cc |
| 23479 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 23480 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23481 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23482 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 23483 | |
| 23484 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23485 | /* confdefs.h. */ |
| 23486 | _ACEOF |
| 23487 | cat confdefs.h >>conftest.$ac_ext |
| 23488 | cat >>conftest.$ac_ext <<_ACEOF |
| 23489 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23490 | #include <ext/hash_map> |
| 23491 | #ifdef HAVE_NAMESPACES |
| 23492 | using namespace std; |
| 23493 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23494 | int |
| 23495 | main () |
| 23496 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23497 | hash_map<int, int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23498 | ; |
| 23499 | return 0; |
| 23500 | } |
| 23501 | _ACEOF |
| 23502 | rm -f conftest.$ac_objext |
| 23503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23504 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23505 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23507 | rm -f conftest.er1 |
| 23508 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23510 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23511 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 23512 | || test ! -s conftest.err' |
| 23513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23514 | (eval $ac_try) 2>&5 |
| 23515 | ac_status=$? |
| 23516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23517 | (exit $ac_status); }; } && |
| 23518 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23520 | (eval $ac_try) 2>&5 |
| 23521 | ac_status=$? |
| 23522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23523 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23524 | ac_cv_cxx_have_std_ext_hash_map=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23525 | else |
| 23526 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23528 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23529 | ac_cv_cxx_have_std_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23530 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23531 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23532 | ac_ext=c |
| 23533 | ac_cpp='$CPP $CPPFLAGS' |
| 23534 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23535 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23536 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23537 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23538 | fi |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23539 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 |
| 23540 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 23541 | if test "$ac_cv_cxx_have_std_ext_hash_map" = yes |
| 23542 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 23543 | |
| 23544 | cat >>confdefs.h <<\_ACEOF |
| 23545 | #define HAVE_STD_EXT_HASH_MAP 1 |
| 23546 | _ACEOF |
| 23547 | |
| 23548 | else |
| 23549 | |
| 23550 | cat >>confdefs.h <<\_ACEOF |
| 23551 | #define HAVE_STD_EXT_HASH_MAP 0 |
| 23552 | _ACEOF |
| 23553 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23554 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 23555 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23556 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 |
| 23557 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6 |
| 23558 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then |
| 23559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23560 | else |
| 23561 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23562 | ac_ext=cc |
| 23563 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 23564 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23565 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23566 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 23567 | |
| 23568 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23569 | /* confdefs.h. */ |
| 23570 | _ACEOF |
| 23571 | cat confdefs.h >>conftest.$ac_ext |
| 23572 | cat >>conftest.$ac_ext <<_ACEOF |
| 23573 | /* end confdefs.h. */ |
| 23574 | #include <ext/hash_map> |
| 23575 | #ifdef HAVE_NAMESPACES |
| 23576 | using namespace __gnu_cxx; |
| 23577 | #endif |
| 23578 | int |
| 23579 | main () |
| 23580 | { |
| 23581 | hash_map<int,int> t; |
| 23582 | ; |
| 23583 | return 0; |
| 23584 | } |
| 23585 | _ACEOF |
| 23586 | rm -f conftest.$ac_objext |
| 23587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23588 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23589 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23591 | rm -f conftest.er1 |
| 23592 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23594 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23595 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 23596 | || test ! -s conftest.err' |
| 23597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23598 | (eval $ac_try) 2>&5 |
| 23599 | ac_status=$? |
| 23600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23601 | (exit $ac_status); }; } && |
| 23602 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23604 | (eval $ac_try) 2>&5 |
| 23605 | ac_status=$? |
| 23606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23607 | (exit $ac_status); }; }; then |
| 23608 | ac_cv_cxx_have_gnu_ext_hash_map=yes |
| 23609 | else |
| 23610 | echo "$as_me: failed program was:" >&5 |
| 23611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23612 | |
| 23613 | ac_cv_cxx_have_gnu_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23614 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23615 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23616 | ac_ext=c |
| 23617 | ac_cpp='$CPP $CPPFLAGS' |
| 23618 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23619 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23620 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23621 | |
| 23622 | fi |
| 23623 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 |
| 23624 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 23625 | if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes |
| 23626 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 23627 | |
| 23628 | cat >>confdefs.h <<\_ACEOF |
| 23629 | #define HAVE_GNU_EXT_HASH_MAP 1 |
| 23630 | _ACEOF |
| 23631 | |
| 23632 | else |
| 23633 | |
| 23634 | cat >>confdefs.h <<\_ACEOF |
| 23635 | #define HAVE_GNU_EXT_HASH_MAP 0 |
| 23636 | _ACEOF |
| 23637 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23638 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 23639 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23640 | echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 |
| 23641 | echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6 |
| 23642 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then |
| 23643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23644 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23645 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23646 | ac_ext=cc |
| 23647 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 23648 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23649 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23650 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 23651 | |
| 23652 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23653 | /* confdefs.h. */ |
| 23654 | _ACEOF |
| 23655 | cat confdefs.h >>conftest.$ac_ext |
| 23656 | cat >>conftest.$ac_ext <<_ACEOF |
| 23657 | /* end confdefs.h. */ |
| 23658 | #include <hash_map> |
| 23659 | int |
| 23660 | main () |
| 23661 | { |
| 23662 | hash_map<int,int> t; |
| 23663 | ; |
| 23664 | return 0; |
| 23665 | } |
| 23666 | _ACEOF |
| 23667 | rm -f conftest.$ac_objext |
| 23668 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23669 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23670 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23672 | rm -f conftest.er1 |
| 23673 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23675 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23676 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 23677 | || test ! -s conftest.err' |
| 23678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23679 | (eval $ac_try) 2>&5 |
| 23680 | ac_status=$? |
| 23681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23682 | (exit $ac_status); }; } && |
| 23683 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23685 | (eval $ac_try) 2>&5 |
| 23686 | ac_status=$? |
| 23687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23688 | (exit $ac_status); }; }; then |
| 23689 | ac_cv_cxx_have_global_hash_map=yes |
| 23690 | else |
| 23691 | echo "$as_me: failed program was:" >&5 |
| 23692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23693 | |
| 23694 | ac_cv_cxx_have_global_hash_map=no |
| 23695 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23696 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23697 | ac_ext=c |
| 23698 | ac_cpp='$CPP $CPPFLAGS' |
| 23699 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23700 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23701 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23702 | |
| 23703 | fi |
| 23704 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 |
| 23705 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 23706 | if test "$ac_cv_cxx_have_global_hash_map" = yes |
| 23707 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 23708 | |
| 23709 | cat >>confdefs.h <<\_ACEOF |
| 23710 | #define HAVE_GLOBAL_HASH_MAP 1 |
| 23711 | _ACEOF |
| 23712 | |
| 23713 | else |
| 23714 | |
| 23715 | cat >>confdefs.h <<\_ACEOF |
| 23716 | #define HAVE_GLOBAL_HASH_MAP 0 |
| 23717 | _ACEOF |
| 23718 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23719 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 23720 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23721 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 |
| 23722 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6 |
| 23723 | 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] | 23724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23725 | else |
| 23726 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23727 | ac_ext=cc |
| 23728 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 23729 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23730 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23731 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 23732 | |
| 23733 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23734 | /* confdefs.h. */ |
| 23735 | _ACEOF |
| 23736 | cat confdefs.h >>conftest.$ac_ext |
| 23737 | cat >>conftest.$ac_ext <<_ACEOF |
| 23738 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23739 | #include <ext/hash_set> |
| 23740 | #ifdef HAVE_NAMESPACES |
| 23741 | using namespace std; |
| 23742 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23743 | int |
| 23744 | main () |
| 23745 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23746 | hash_set<int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23747 | ; |
| 23748 | return 0; |
| 23749 | } |
| 23750 | _ACEOF |
| 23751 | rm -f conftest.$ac_objext |
| 23752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23753 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23754 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23755 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23756 | rm -f conftest.er1 |
| 23757 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23759 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23760 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 23761 | || test ! -s conftest.err' |
| 23762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23763 | (eval $ac_try) 2>&5 |
| 23764 | ac_status=$? |
| 23765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23766 | (exit $ac_status); }; } && |
| 23767 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23769 | (eval $ac_try) 2>&5 |
| 23770 | ac_status=$? |
| 23771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23772 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23773 | ac_cv_cxx_have_std_ext_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23774 | else |
| 23775 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23776 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23777 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23778 | ac_cv_cxx_have_std_ext_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23779 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23781 | ac_ext=c |
| 23782 | ac_cpp='$CPP $CPPFLAGS' |
| 23783 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23784 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23785 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23786 | |
| 23787 | fi |
| 23788 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 |
| 23789 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 23790 | if test "$ac_cv_cxx_have_std_ext_hash_set" = yes |
| 23791 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 23792 | |
| 23793 | cat >>confdefs.h <<\_ACEOF |
| 23794 | #define HAVE_STD_EXT_HASH_SET 1 |
| 23795 | _ACEOF |
| 23796 | |
| 23797 | else |
| 23798 | |
| 23799 | cat >>confdefs.h <<\_ACEOF |
| 23800 | #define HAVE_STD_EXT_HASH_SET 0 |
| 23801 | _ACEOF |
| 23802 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23803 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 23804 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23805 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 |
| 23806 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6 |
| 23807 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then |
| 23808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23809 | else |
| 23810 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23811 | ac_ext=cc |
| 23812 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 23813 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23814 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23815 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 23816 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23817 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23818 | /* confdefs.h. */ |
| 23819 | _ACEOF |
| 23820 | cat confdefs.h >>conftest.$ac_ext |
| 23821 | cat >>conftest.$ac_ext <<_ACEOF |
| 23822 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23823 | #include <ext/hash_set> |
| 23824 | #ifdef HAVE_NAMESPACES |
| 23825 | using namespace __gnu_cxx; |
| 23826 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23827 | int |
| 23828 | main () |
| 23829 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23830 | hash_set<int> t; |
| 23831 | ; |
| 23832 | return 0; |
| 23833 | } |
| 23834 | _ACEOF |
| 23835 | rm -f conftest.$ac_objext |
| 23836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23837 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23838 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23840 | rm -f conftest.er1 |
| 23841 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23843 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23844 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 23845 | || test ! -s conftest.err' |
| 23846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23847 | (eval $ac_try) 2>&5 |
| 23848 | ac_status=$? |
| 23849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23850 | (exit $ac_status); }; } && |
| 23851 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23853 | (eval $ac_try) 2>&5 |
| 23854 | ac_status=$? |
| 23855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23856 | (exit $ac_status); }; }; then |
| 23857 | ac_cv_cxx_have_gnu_ext_hash_set=yes |
| 23858 | else |
| 23859 | echo "$as_me: failed program was:" >&5 |
| 23860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23861 | |
| 23862 | ac_cv_cxx_have_gnu_ext_hash_set=no |
| 23863 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23865 | ac_ext=c |
| 23866 | ac_cpp='$CPP $CPPFLAGS' |
| 23867 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23868 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23869 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23870 | |
| 23871 | fi |
| 23872 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 |
| 23873 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 23874 | if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes |
| 23875 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 23876 | |
| 23877 | cat >>confdefs.h <<\_ACEOF |
| 23878 | #define HAVE_GNU_EXT_HASH_SET 1 |
| 23879 | _ACEOF |
| 23880 | |
| 23881 | else |
| 23882 | |
| 23883 | cat >>confdefs.h <<\_ACEOF |
| 23884 | #define HAVE_GNU_EXT_HASH_SET 0 |
| 23885 | _ACEOF |
| 23886 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23887 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 23888 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23889 | echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 |
| 23890 | echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6 |
| 23891 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then |
| 23892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23893 | else |
| 23894 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23895 | ac_ext=cc |
| 23896 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 23897 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23898 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23899 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 23900 | |
| 23901 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23902 | /* confdefs.h. */ |
| 23903 | _ACEOF |
| 23904 | cat confdefs.h >>conftest.$ac_ext |
| 23905 | cat >>conftest.$ac_ext <<_ACEOF |
| 23906 | /* end confdefs.h. */ |
| 23907 | #include <hash_set> |
| 23908 | int |
| 23909 | main () |
| 23910 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23911 | hash_set<int> t; return 0; |
| 23912 | ; |
| 23913 | return 0; |
| 23914 | } |
| 23915 | _ACEOF |
| 23916 | rm -f conftest.$ac_objext |
| 23917 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23918 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23919 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23921 | rm -f conftest.er1 |
| 23922 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23924 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23925 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 23926 | || test ! -s conftest.err' |
| 23927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23928 | (eval $ac_try) 2>&5 |
| 23929 | ac_status=$? |
| 23930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23931 | (exit $ac_status); }; } && |
| 23932 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23934 | (eval $ac_try) 2>&5 |
| 23935 | ac_status=$? |
| 23936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23937 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23938 | ac_cv_cxx_have_global_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23939 | else |
| 23940 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23942 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23943 | ac_cv_cxx_have_global_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23944 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23946 | ac_ext=c |
| 23947 | ac_cpp='$CPP $CPPFLAGS' |
| 23948 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23949 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23950 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23951 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23952 | fi |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23953 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 |
| 23954 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 23955 | if test "$ac_cv_cxx_have_global_hash_set" = yes |
| 23956 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 23957 | |
| 23958 | cat >>confdefs.h <<\_ACEOF |
| 23959 | #define HAVE_GLOBAL_HASH_SET 1 |
| 23960 | _ACEOF |
| 23961 | |
| 23962 | else |
| 23963 | |
| 23964 | cat >>confdefs.h <<\_ACEOF |
| 23965 | #define HAVE_GLOBAL_HASH_SET 0 |
| 23966 | _ACEOF |
| 23967 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23968 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 23969 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23970 | echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 23971 | echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6 |
| 23972 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 23973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23974 | else |
| 23975 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23976 | ac_ext=cc |
| 23977 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 23978 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23979 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23980 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 23981 | |
| 23982 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23983 | /* confdefs.h. */ |
| 23984 | _ACEOF |
| 23985 | cat confdefs.h >>conftest.$ac_ext |
| 23986 | cat >>conftest.$ac_ext <<_ACEOF |
| 23987 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23988 | #include <iterator> |
| 23989 | #ifdef HAVE_NAMESPACES |
| 23990 | using namespace std; |
| 23991 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23992 | int |
| 23993 | main () |
| 23994 | { |
| 23995 | iterator<int,int,int> t; return 0; |
| 23996 | ; |
| 23997 | return 0; |
| 23998 | } |
| 23999 | _ACEOF |
| 24000 | rm -f conftest.$ac_objext |
| 24001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24002 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24003 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24005 | rm -f conftest.er1 |
| 24006 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24008 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24009 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 24010 | || test ! -s conftest.err' |
| 24011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24012 | (eval $ac_try) 2>&5 |
| 24013 | ac_status=$? |
| 24014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24015 | (exit $ac_status); }; } && |
| 24016 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24018 | (eval $ac_try) 2>&5 |
| 24019 | ac_status=$? |
| 24020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24021 | (exit $ac_status); }; }; then |
| 24022 | ac_cv_cxx_have_std_iterator=yes |
| 24023 | else |
| 24024 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24026 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24027 | ac_cv_cxx_have_std_iterator=no |
| 24028 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24029 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24030 | ac_ext=c |
| 24031 | ac_cpp='$CPP $CPPFLAGS' |
| 24032 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24033 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24034 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24035 | |
| 24036 | |
| 24037 | fi |
| 24038 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 24039 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6 |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 24040 | if test "$ac_cv_cxx_have_std_iterator" = yes |
| 24041 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 24042 | |
| 24043 | cat >>confdefs.h <<\_ACEOF |
| 24044 | #define HAVE_STD_ITERATOR 1 |
| 24045 | _ACEOF |
| 24046 | |
| 24047 | else |
| 24048 | |
| 24049 | cat >>confdefs.h <<\_ACEOF |
| 24050 | #define HAVE_STD_ITERATOR 0 |
| 24051 | _ACEOF |
| 24052 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24053 | fi |
| 24054 | |
| 24055 | echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 24056 | echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6 |
| 24057 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 24058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24059 | else |
| 24060 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24061 | ac_ext=cc |
| 24062 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 24063 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24064 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24065 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 24066 | |
| 24067 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24068 | /* confdefs.h. */ |
| 24069 | _ACEOF |
| 24070 | cat confdefs.h >>conftest.$ac_ext |
| 24071 | cat >>conftest.$ac_ext <<_ACEOF |
| 24072 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24073 | #include <iterator> |
| 24074 | #ifdef HAVE_NAMESPACES |
| 24075 | using namespace std; |
| 24076 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24077 | int |
| 24078 | main () |
| 24079 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 24080 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24081 | ; |
| 24082 | return 0; |
| 24083 | } |
| 24084 | _ACEOF |
| 24085 | rm -f conftest.$ac_objext |
| 24086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24087 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24088 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24089 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24090 | rm -f conftest.er1 |
| 24091 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24093 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24094 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 24095 | || test ! -s conftest.err' |
| 24096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24097 | (eval $ac_try) 2>&5 |
| 24098 | ac_status=$? |
| 24099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24100 | (exit $ac_status); }; } && |
| 24101 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24103 | (eval $ac_try) 2>&5 |
| 24104 | ac_status=$? |
| 24105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24106 | (exit $ac_status); }; }; then |
| 24107 | ac_cv_cxx_have_bi_iterator=yes |
| 24108 | else |
| 24109 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24111 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24112 | ac_cv_cxx_have_bi_iterator=no |
| 24113 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24115 | ac_ext=c |
| 24116 | ac_cpp='$CPP $CPPFLAGS' |
| 24117 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24118 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24119 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24120 | |
| 24121 | |
| 24122 | fi |
| 24123 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 24124 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6 |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 24125 | if test "$ac_cv_cxx_have_bi_iterator" = yes |
| 24126 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 24127 | |
| 24128 | cat >>confdefs.h <<\_ACEOF |
| 24129 | #define HAVE_BI_ITERATOR 1 |
| 24130 | _ACEOF |
| 24131 | |
| 24132 | else |
| 24133 | |
| 24134 | cat >>confdefs.h <<\_ACEOF |
| 24135 | #define HAVE_BI_ITERATOR 0 |
| 24136 | _ACEOF |
| 24137 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24138 | fi |
| 24139 | |
| 24140 | echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 24141 | echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6 |
| 24142 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 24143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24144 | else |
| 24145 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24146 | ac_ext=cc |
| 24147 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 24148 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24149 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24150 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 24151 | |
| 24152 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24153 | /* confdefs.h. */ |
| 24154 | _ACEOF |
| 24155 | cat confdefs.h >>conftest.$ac_ext |
| 24156 | cat >>conftest.$ac_ext <<_ACEOF |
| 24157 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24158 | #include <iterator> |
| 24159 | #ifdef HAVE_NAMESPACES |
| 24160 | using namespace std; |
| 24161 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24162 | int |
| 24163 | main () |
| 24164 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 24165 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24166 | ; |
| 24167 | return 0; |
| 24168 | } |
| 24169 | _ACEOF |
| 24170 | rm -f conftest.$ac_objext |
| 24171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24172 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24173 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24175 | rm -f conftest.er1 |
| 24176 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24178 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24179 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 24180 | || test ! -s conftest.err' |
| 24181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24182 | (eval $ac_try) 2>&5 |
| 24183 | ac_status=$? |
| 24184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24185 | (exit $ac_status); }; } && |
| 24186 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24188 | (eval $ac_try) 2>&5 |
| 24189 | ac_status=$? |
| 24190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24191 | (exit $ac_status); }; }; then |
| 24192 | ac_cv_cxx_have_fwd_iterator=yes |
| 24193 | else |
| 24194 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24196 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24197 | ac_cv_cxx_have_fwd_iterator=no |
| 24198 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24200 | ac_ext=c |
| 24201 | ac_cpp='$CPP $CPPFLAGS' |
| 24202 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24203 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24204 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24205 | |
| 24206 | |
| 24207 | fi |
| 24208 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 24209 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6 |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 24210 | if test "$ac_cv_cxx_have_fwd_iterator" = yes |
| 24211 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 24212 | |
| 24213 | cat >>confdefs.h <<\_ACEOF |
| 24214 | #define HAVE_FWD_ITERATOR 1 |
| 24215 | _ACEOF |
| 24216 | |
| 24217 | else |
| 24218 | |
| 24219 | cat >>confdefs.h <<\_ACEOF |
| 24220 | #define HAVE_FWD_ITERATOR 0 |
| 24221 | _ACEOF |
| 24222 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24223 | fi |
| 24224 | |
| 24225 | |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24226 | echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 24227 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6 |
| 24228 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 24229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24230 | else |
| 24231 | ac_ext=cc |
| 24232 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 24233 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24234 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24235 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 24236 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24237 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24238 | /* confdefs.h. */ |
| 24239 | _ACEOF |
| 24240 | cat confdefs.h >>conftest.$ac_ext |
| 24241 | cat >>conftest.$ac_ext <<_ACEOF |
| 24242 | /* end confdefs.h. */ |
| 24243 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24244 | int |
| 24245 | main () |
| 24246 | { |
| 24247 | float f; isnan(f); |
| 24248 | ; |
| 24249 | return 0; |
| 24250 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24251 | _ACEOF |
| 24252 | rm -f conftest.$ac_objext |
| 24253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24254 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24255 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24257 | rm -f conftest.er1 |
| 24258 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24260 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24261 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 24262 | || test ! -s conftest.err' |
| 24263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24264 | (eval $ac_try) 2>&5 |
| 24265 | ac_status=$? |
| 24266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24267 | (exit $ac_status); }; } && |
| 24268 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24270 | (eval $ac_try) 2>&5 |
| 24271 | ac_status=$? |
| 24272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24273 | (exit $ac_status); }; }; then |
| 24274 | ac_cv_func_isnan_in_math_h=yes |
| 24275 | else |
| 24276 | echo "$as_me: failed program was:" >&5 |
| 24277 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24278 | |
| 24279 | ac_cv_func_isnan_in_math_h=no |
| 24280 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24281 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24282 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24283 | ac_cpp='$CPP $CPPFLAGS' |
| 24284 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24285 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24286 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24287 | |
| 24288 | fi |
| 24289 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 24290 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24291 | |
| 24292 | |
| 24293 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24294 | |
| 24295 | cat >>confdefs.h <<\_ACEOF |
| 24296 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 24297 | _ACEOF |
| 24298 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24299 | fi |
| 24300 | |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24301 | echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 24302 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6 |
| 24303 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 24304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24305 | else |
| 24306 | ac_ext=cc |
| 24307 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 24308 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24309 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24310 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 24311 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24312 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24313 | /* confdefs.h. */ |
| 24314 | _ACEOF |
| 24315 | cat confdefs.h >>conftest.$ac_ext |
| 24316 | cat >>conftest.$ac_ext <<_ACEOF |
| 24317 | /* end confdefs.h. */ |
| 24318 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24319 | int |
| 24320 | main () |
| 24321 | { |
| 24322 | float f; isnan(f); |
| 24323 | ; |
| 24324 | return 0; |
| 24325 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24326 | _ACEOF |
| 24327 | rm -f conftest.$ac_objext |
| 24328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24329 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24330 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24332 | rm -f conftest.er1 |
| 24333 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24335 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24336 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 24337 | || test ! -s conftest.err' |
| 24338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24339 | (eval $ac_try) 2>&5 |
| 24340 | ac_status=$? |
| 24341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24342 | (exit $ac_status); }; } && |
| 24343 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24345 | (eval $ac_try) 2>&5 |
| 24346 | ac_status=$? |
| 24347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24348 | (exit $ac_status); }; }; then |
| 24349 | ac_cv_func_isnan_in_cmath=yes |
| 24350 | else |
| 24351 | echo "$as_me: failed program was:" >&5 |
| 24352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24353 | |
| 24354 | ac_cv_func_isnan_in_cmath=no |
| 24355 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24356 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24357 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24358 | ac_cpp='$CPP $CPPFLAGS' |
| 24359 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24360 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24361 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24362 | |
| 24363 | fi |
| 24364 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 24365 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24366 | |
| 24367 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24368 | |
| 24369 | cat >>confdefs.h <<\_ACEOF |
| 24370 | #define HAVE_ISNAN_IN_CMATH 1 |
| 24371 | _ACEOF |
| 24372 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24373 | fi |
| 24374 | |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24375 | echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 24376 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6 |
| 24377 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 24378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24379 | else |
| 24380 | ac_ext=cc |
| 24381 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 24382 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24383 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24384 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 24385 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24386 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24387 | /* confdefs.h. */ |
| 24388 | _ACEOF |
| 24389 | cat confdefs.h >>conftest.$ac_ext |
| 24390 | cat >>conftest.$ac_ext <<_ACEOF |
| 24391 | /* end confdefs.h. */ |
| 24392 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24393 | int |
| 24394 | main () |
| 24395 | { |
| 24396 | float f; std::isnan(f); |
| 24397 | ; |
| 24398 | return 0; |
| 24399 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24400 | _ACEOF |
| 24401 | rm -f conftest.$ac_objext |
| 24402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24403 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24404 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24405 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24406 | rm -f conftest.er1 |
| 24407 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24409 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24410 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 24411 | || test ! -s conftest.err' |
| 24412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24413 | (eval $ac_try) 2>&5 |
| 24414 | ac_status=$? |
| 24415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24416 | (exit $ac_status); }; } && |
| 24417 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24419 | (eval $ac_try) 2>&5 |
| 24420 | ac_status=$? |
| 24421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24422 | (exit $ac_status); }; }; then |
| 24423 | ac_cv_func_std_isnan_in_cmath=yes |
| 24424 | else |
| 24425 | echo "$as_me: failed program was:" >&5 |
| 24426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24427 | |
| 24428 | ac_cv_func_std_isnan_in_cmath=no |
| 24429 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24431 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24432 | ac_cpp='$CPP $CPPFLAGS' |
| 24433 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24434 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24435 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24436 | |
| 24437 | fi |
| 24438 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 24439 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24440 | |
| 24441 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24442 | |
| 24443 | cat >>confdefs.h <<\_ACEOF |
| 24444 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 24445 | _ACEOF |
| 24446 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24447 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24448 | |
| 24449 | |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24450 | echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 24451 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6 |
| 24452 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 24453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24454 | else |
| 24455 | ac_ext=cc |
| 24456 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 24457 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24458 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24459 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 24460 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24461 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24462 | /* confdefs.h. */ |
| 24463 | _ACEOF |
| 24464 | cat confdefs.h >>conftest.$ac_ext |
| 24465 | cat >>conftest.$ac_ext <<_ACEOF |
| 24466 | /* end confdefs.h. */ |
| 24467 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24468 | int |
| 24469 | main () |
| 24470 | { |
| 24471 | float f; isinf(f); |
| 24472 | ; |
| 24473 | return 0; |
| 24474 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24475 | _ACEOF |
| 24476 | rm -f conftest.$ac_objext |
| 24477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24478 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24479 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24481 | rm -f conftest.er1 |
| 24482 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24484 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24485 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 24486 | || test ! -s conftest.err' |
| 24487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24488 | (eval $ac_try) 2>&5 |
| 24489 | ac_status=$? |
| 24490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24491 | (exit $ac_status); }; } && |
| 24492 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24494 | (eval $ac_try) 2>&5 |
| 24495 | ac_status=$? |
| 24496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24497 | (exit $ac_status); }; }; then |
| 24498 | ac_cv_func_isinf_in_math_h=yes |
| 24499 | else |
| 24500 | echo "$as_me: failed program was:" >&5 |
| 24501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24502 | |
| 24503 | ac_cv_func_isinf_in_math_h=no |
| 24504 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24505 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24506 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24507 | ac_cpp='$CPP $CPPFLAGS' |
| 24508 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24509 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24510 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24511 | |
| 24512 | fi |
| 24513 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 24514 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24515 | |
| 24516 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24517 | |
| 24518 | cat >>confdefs.h <<\_ACEOF |
| 24519 | #define HAVE_ISINF_IN_MATH_H 1 |
| 24520 | _ACEOF |
| 24521 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24522 | fi |
| 24523 | |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24524 | echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 24525 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6 |
| 24526 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 24527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24528 | else |
| 24529 | ac_ext=cc |
| 24530 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 24531 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24532 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24533 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 24534 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24535 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24536 | /* confdefs.h. */ |
| 24537 | _ACEOF |
| 24538 | cat confdefs.h >>conftest.$ac_ext |
| 24539 | cat >>conftest.$ac_ext <<_ACEOF |
| 24540 | /* end confdefs.h. */ |
| 24541 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24542 | int |
| 24543 | main () |
| 24544 | { |
| 24545 | float f; isinf(f); |
| 24546 | ; |
| 24547 | return 0; |
| 24548 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24549 | _ACEOF |
| 24550 | rm -f conftest.$ac_objext |
| 24551 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24552 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24553 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24554 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24555 | rm -f conftest.er1 |
| 24556 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24558 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24559 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 24560 | || test ! -s conftest.err' |
| 24561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24562 | (eval $ac_try) 2>&5 |
| 24563 | ac_status=$? |
| 24564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24565 | (exit $ac_status); }; } && |
| 24566 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24568 | (eval $ac_try) 2>&5 |
| 24569 | ac_status=$? |
| 24570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24571 | (exit $ac_status); }; }; then |
| 24572 | ac_cv_func_isinf_in_cmath=yes |
| 24573 | else |
| 24574 | echo "$as_me: failed program was:" >&5 |
| 24575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24576 | |
| 24577 | ac_cv_func_isinf_in_cmath=no |
| 24578 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24579 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24580 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24581 | ac_cpp='$CPP $CPPFLAGS' |
| 24582 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24583 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24584 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24585 | |
| 24586 | fi |
| 24587 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 24588 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24589 | |
| 24590 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24591 | |
| 24592 | cat >>confdefs.h <<\_ACEOF |
| 24593 | #define HAVE_ISINF_IN_CMATH 1 |
| 24594 | _ACEOF |
| 24595 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24596 | fi |
| 24597 | |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24598 | echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 24599 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6 |
| 24600 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 24601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24602 | else |
| 24603 | ac_ext=cc |
| 24604 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 24605 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24606 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24607 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 24608 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24609 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24610 | /* confdefs.h. */ |
| 24611 | _ACEOF |
| 24612 | cat confdefs.h >>conftest.$ac_ext |
| 24613 | cat >>conftest.$ac_ext <<_ACEOF |
| 24614 | /* end confdefs.h. */ |
| 24615 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24616 | int |
| 24617 | main () |
| 24618 | { |
| 24619 | float f; std::isinf(f)} |
| 24620 | ; |
| 24621 | return 0; |
| 24622 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24623 | _ACEOF |
| 24624 | rm -f conftest.$ac_objext |
| 24625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24626 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24627 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24628 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24629 | rm -f conftest.er1 |
| 24630 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24632 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24633 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 24634 | || test ! -s conftest.err' |
| 24635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24636 | (eval $ac_try) 2>&5 |
| 24637 | ac_status=$? |
| 24638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24639 | (exit $ac_status); }; } && |
| 24640 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24642 | (eval $ac_try) 2>&5 |
| 24643 | ac_status=$? |
| 24644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24645 | (exit $ac_status); }; }; then |
| 24646 | ac_cv_func_std_isinf_in_cmath=yes |
| 24647 | else |
| 24648 | echo "$as_me: failed program was:" >&5 |
| 24649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24650 | |
| 24651 | ac_cv_func_std_isinf_in_cmath=no |
| 24652 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24653 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24654 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24655 | ac_cpp='$CPP $CPPFLAGS' |
| 24656 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24657 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24658 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24659 | |
| 24660 | fi |
| 24661 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 24662 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24663 | |
| 24664 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24665 | |
| 24666 | cat >>confdefs.h <<\_ACEOF |
| 24667 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 24668 | _ACEOF |
| 24669 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24670 | fi |
| 24671 | |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 24672 | echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 24673 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6 |
| 24674 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 24675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24676 | else |
| 24677 | ac_ext=cc |
| 24678 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 24679 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24680 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24681 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 24682 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24683 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 24684 | /* confdefs.h. */ |
| 24685 | _ACEOF |
| 24686 | cat confdefs.h >>conftest.$ac_ext |
| 24687 | cat >>conftest.$ac_ext <<_ACEOF |
| 24688 | /* end confdefs.h. */ |
| 24689 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24690 | int |
| 24691 | main () |
| 24692 | { |
| 24693 | float f; finite(f); |
| 24694 | ; |
| 24695 | return 0; |
| 24696 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 24697 | _ACEOF |
| 24698 | rm -f conftest.$ac_objext |
| 24699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24700 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 24701 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24703 | rm -f conftest.er1 |
| 24704 | cat conftest.err >&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 24705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24706 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24707 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 24708 | || test ! -s conftest.err' |
| 24709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24710 | (eval $ac_try) 2>&5 |
| 24711 | ac_status=$? |
| 24712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24713 | (exit $ac_status); }; } && |
| 24714 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 24715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24716 | (eval $ac_try) 2>&5 |
| 24717 | ac_status=$? |
| 24718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24719 | (exit $ac_status); }; }; then |
| 24720 | ac_cv_func_finite_in_ieeefp_h=yes |
| 24721 | else |
| 24722 | echo "$as_me: failed program was:" >&5 |
| 24723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24724 | |
| 24725 | ac_cv_func_finite_in_ieeefp_h=no |
| 24726 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24728 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 24729 | ac_cpp='$CPP $CPPFLAGS' |
| 24730 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24731 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24732 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24733 | |
| 24734 | fi |
| 24735 | echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 24736 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24737 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 24738 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 24739 | |
| 24740 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 24741 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 24742 | _ACEOF |
| 24743 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24744 | fi |
| 24745 | |
| 24746 | |
| 24747 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24748 | |
| 24749 | |
| 24750 | for ac_header in stdlib.h unistd.h |
| 24751 | do |
| 24752 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 24753 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 24754 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 24755 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 24756 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 24757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24758 | fi |
| 24759 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 24760 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 24761 | else |
| 24762 | # Is the header compilable? |
| 24763 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 24764 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 24765 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24766 | /* confdefs.h. */ |
| 24767 | _ACEOF |
| 24768 | cat confdefs.h >>conftest.$ac_ext |
| 24769 | cat >>conftest.$ac_ext <<_ACEOF |
| 24770 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24771 | $ac_includes_default |
| 24772 | #include <$ac_header> |
| 24773 | _ACEOF |
| 24774 | rm -f conftest.$ac_objext |
| 24775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24776 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24777 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24778 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24779 | rm -f conftest.er1 |
| 24780 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24782 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24783 | { ac_try='test -z "$ac_c_werror_flag" |
| 24784 | || test ! -s conftest.err' |
| 24785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24786 | (eval $ac_try) 2>&5 |
| 24787 | ac_status=$? |
| 24788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24789 | (exit $ac_status); }; } && |
| 24790 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24792 | (eval $ac_try) 2>&5 |
| 24793 | ac_status=$? |
| 24794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24795 | (exit $ac_status); }; }; then |
| 24796 | ac_header_compiler=yes |
| 24797 | else |
| 24798 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24800 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24801 | ac_header_compiler=no |
| 24802 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24803 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24804 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 24805 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 24806 | |
| 24807 | # Is the header present? |
| 24808 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 24809 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 24810 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24811 | /* confdefs.h. */ |
| 24812 | _ACEOF |
| 24813 | cat confdefs.h >>conftest.$ac_ext |
| 24814 | cat >>conftest.$ac_ext <<_ACEOF |
| 24815 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24816 | #include <$ac_header> |
| 24817 | _ACEOF |
| 24818 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 24819 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 24820 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24821 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24822 | rm -f conftest.er1 |
| 24823 | cat conftest.err >&5 |
| 24824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24825 | (exit $ac_status); } >/dev/null; then |
| 24826 | if test -s conftest.err; then |
| 24827 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24828 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24829 | else |
| 24830 | ac_cpp_err= |
| 24831 | fi |
| 24832 | else |
| 24833 | ac_cpp_err=yes |
| 24834 | fi |
| 24835 | if test -z "$ac_cpp_err"; then |
| 24836 | ac_header_preproc=yes |
| 24837 | else |
| 24838 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24840 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24841 | ac_header_preproc=no |
| 24842 | fi |
| 24843 | rm -f conftest.err conftest.$ac_ext |
| 24844 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 24845 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 24846 | |
| 24847 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24848 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 24849 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24850 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 24851 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24852 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 24853 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 24854 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 24855 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24856 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 24857 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 24858 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24859 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 24860 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 24861 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 24862 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 24863 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 24864 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 24865 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 24866 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24867 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 24868 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 24869 | ( |
| 24870 | cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24871 | ## ----------------------------------- ## |
| 24872 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 24873 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24874 | _ASBOX |
| 24875 | ) | |
| 24876 | sed "s/^/$as_me: WARNING: /" >&2 |
| 24877 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24878 | esac |
| 24879 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 24880 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 24881 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 24882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24883 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24884 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24885 | fi |
| 24886 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 24887 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 24888 | |
| 24889 | fi |
| 24890 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 24891 | cat >>confdefs.h <<_ACEOF |
| 24892 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 24893 | _ACEOF |
| 24894 | |
| 24895 | fi |
| 24896 | |
| 24897 | done |
| 24898 | |
| 24899 | |
| 24900 | for ac_func in getpagesize |
| 24901 | do |
| 24902 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24903 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 24904 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 24905 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 24906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24907 | else |
| 24908 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24909 | /* confdefs.h. */ |
| 24910 | _ACEOF |
| 24911 | cat confdefs.h >>conftest.$ac_ext |
| 24912 | cat >>conftest.$ac_ext <<_ACEOF |
| 24913 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24914 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 24915 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 24916 | #define $ac_func innocuous_$ac_func |
| 24917 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24918 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24919 | which can conflict with char $ac_func (); below. |
| 24920 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 24921 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24922 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24923 | #ifdef __STDC__ |
| 24924 | # include <limits.h> |
| 24925 | #else |
| 24926 | # include <assert.h> |
| 24927 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24928 | |
| 24929 | #undef $ac_func |
| 24930 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24931 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 24932 | #ifdef __cplusplus |
| 24933 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24934 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24935 | #endif |
| 24936 | /* We use char because int might match the return type of a gcc2 |
| 24937 | builtin and then its argument prototype would still apply. */ |
| 24938 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24939 | /* The GNU C library defines this for functions which it implements |
| 24940 | to always fail with ENOSYS. Some functions are actually named |
| 24941 | something starting with __ and the normal name is an alias. */ |
| 24942 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 24943 | choke me |
| 24944 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24945 | char (*f) () = $ac_func; |
| 24946 | #endif |
| 24947 | #ifdef __cplusplus |
| 24948 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24949 | #endif |
| 24950 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24951 | int |
| 24952 | main () |
| 24953 | { |
| 24954 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24955 | ; |
| 24956 | return 0; |
| 24957 | } |
| 24958 | _ACEOF |
| 24959 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24961 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24962 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24964 | rm -f conftest.er1 |
| 24965 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24967 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24968 | { ac_try='test -z "$ac_c_werror_flag" |
| 24969 | || test ! -s conftest.err' |
| 24970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24971 | (eval $ac_try) 2>&5 |
| 24972 | ac_status=$? |
| 24973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24974 | (exit $ac_status); }; } && |
| 24975 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24977 | (eval $ac_try) 2>&5 |
| 24978 | ac_status=$? |
| 24979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24980 | (exit $ac_status); }; }; then |
| 24981 | eval "$as_ac_var=yes" |
| 24982 | else |
| 24983 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24985 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24986 | eval "$as_ac_var=no" |
| 24987 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24988 | rm -f conftest.err conftest.$ac_objext \ |
| 24989 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24990 | fi |
| 24991 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 24992 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 24993 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 24994 | cat >>confdefs.h <<_ACEOF |
| 24995 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 24996 | _ACEOF |
| 24997 | |
| 24998 | fi |
| 24999 | done |
| 25000 | |
| 25001 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 25002 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
| 25003 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 25004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25005 | else |
| 25006 | if test "$cross_compiling" = yes; then |
| 25007 | ac_cv_func_mmap_fixed_mapped=no |
| 25008 | else |
| 25009 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25010 | /* confdefs.h. */ |
| 25011 | _ACEOF |
| 25012 | cat confdefs.h >>conftest.$ac_ext |
| 25013 | cat >>conftest.$ac_ext <<_ACEOF |
| 25014 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25015 | $ac_includes_default |
| 25016 | /* malloc might have been renamed as rpl_malloc. */ |
| 25017 | #undef malloc |
| 25018 | |
| 25019 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 25020 | Here is a matrix of mmap possibilities: |
| 25021 | mmap private not fixed |
| 25022 | mmap private fixed at somewhere currently unmapped |
| 25023 | mmap private fixed at somewhere already mapped |
| 25024 | mmap shared not fixed |
| 25025 | mmap shared fixed at somewhere currently unmapped |
| 25026 | mmap shared fixed at somewhere already mapped |
| 25027 | For private mappings, we should verify that changes cannot be read() |
| 25028 | back from the file, nor mmap's back from the file at a different |
| 25029 | address. (There have been systems where private was not correctly |
| 25030 | implemented like the infamous i386 svr4.0, and systems where the |
| 25031 | VM page cache was not coherent with the file system buffer cache |
| 25032 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 25033 | For shared mappings, we should conversely verify that changes get |
| 25034 | propagated back to all the places they're supposed to be. |
| 25035 | |
| 25036 | Grep wants private fixed already mapped. |
| 25037 | The main things grep needs to know about mmap are: |
| 25038 | * does it exist and is it safe to write into the mmap'd area |
| 25039 | * how to use it (BSD variants) */ |
| 25040 | |
| 25041 | #include <fcntl.h> |
| 25042 | #include <sys/mman.h> |
| 25043 | |
| 25044 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 25045 | char *malloc (); |
| 25046 | #endif |
| 25047 | |
| 25048 | /* This mess was copied from the GNU getpagesize.h. */ |
| 25049 | #if !HAVE_GETPAGESIZE |
| 25050 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 25051 | # if !HAVE_SYS_PARAM_H |
| 25052 | # define HAVE_SYS_PARAM_H 1 |
| 25053 | # endif |
| 25054 | |
| 25055 | # ifdef _SC_PAGESIZE |
| 25056 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 25057 | # else /* no _SC_PAGESIZE */ |
| 25058 | # if HAVE_SYS_PARAM_H |
| 25059 | # include <sys/param.h> |
| 25060 | # ifdef EXEC_PAGESIZE |
| 25061 | # define getpagesize() EXEC_PAGESIZE |
| 25062 | # else /* no EXEC_PAGESIZE */ |
| 25063 | # ifdef NBPG |
| 25064 | # define getpagesize() NBPG * CLSIZE |
| 25065 | # ifndef CLSIZE |
| 25066 | # define CLSIZE 1 |
| 25067 | # endif /* no CLSIZE */ |
| 25068 | # else /* no NBPG */ |
| 25069 | # ifdef NBPC |
| 25070 | # define getpagesize() NBPC |
| 25071 | # else /* no NBPC */ |
| 25072 | # ifdef PAGESIZE |
| 25073 | # define getpagesize() PAGESIZE |
| 25074 | # endif /* PAGESIZE */ |
| 25075 | # endif /* no NBPC */ |
| 25076 | # endif /* no NBPG */ |
| 25077 | # endif /* no EXEC_PAGESIZE */ |
| 25078 | # else /* no HAVE_SYS_PARAM_H */ |
| 25079 | # define getpagesize() 8192 /* punt totally */ |
| 25080 | # endif /* no HAVE_SYS_PARAM_H */ |
| 25081 | # endif /* no _SC_PAGESIZE */ |
| 25082 | |
| 25083 | #endif /* no HAVE_GETPAGESIZE */ |
| 25084 | |
| 25085 | int |
| 25086 | main () |
| 25087 | { |
| 25088 | char *data, *data2, *data3; |
| 25089 | int i, pagesize; |
| 25090 | int fd; |
| 25091 | |
| 25092 | pagesize = getpagesize (); |
| 25093 | |
| 25094 | /* First, make a file with some known garbage in it. */ |
| 25095 | data = (char *) malloc (pagesize); |
| 25096 | if (!data) |
| 25097 | exit (1); |
| 25098 | for (i = 0; i < pagesize; ++i) |
| 25099 | *(data + i) = rand (); |
| 25100 | umask (0); |
| 25101 | fd = creat ("conftest.mmap", 0600); |
| 25102 | if (fd < 0) |
| 25103 | exit (1); |
| 25104 | if (write (fd, data, pagesize) != pagesize) |
| 25105 | exit (1); |
| 25106 | close (fd); |
| 25107 | |
| 25108 | /* Next, try to mmap the file at a fixed address which already has |
| 25109 | something else allocated at it. If we can, also make sure that |
| 25110 | we see the same garbage. */ |
| 25111 | fd = open ("conftest.mmap", O_RDWR); |
| 25112 | if (fd < 0) |
| 25113 | exit (1); |
| 25114 | data2 = (char *) malloc (2 * pagesize); |
| 25115 | if (!data2) |
| 25116 | exit (1); |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25117 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25118 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25119 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25120 | exit (1); |
| 25121 | for (i = 0; i < pagesize; ++i) |
| 25122 | if (*(data + i) != *(data2 + i)) |
| 25123 | exit (1); |
| 25124 | |
| 25125 | /* Finally, make sure that changes to the mapped area do not |
| 25126 | percolate back to the file as seen by read(). (This is a bug on |
| 25127 | some variants of i386 svr4.0.) */ |
| 25128 | for (i = 0; i < pagesize; ++i) |
| 25129 | *(data2 + i) = *(data2 + i) + 1; |
| 25130 | data3 = (char *) malloc (pagesize); |
| 25131 | if (!data3) |
| 25132 | exit (1); |
| 25133 | if (read (fd, data3, pagesize) != pagesize) |
| 25134 | exit (1); |
| 25135 | for (i = 0; i < pagesize; ++i) |
| 25136 | if (*(data + i) != *(data3 + i)) |
| 25137 | exit (1); |
| 25138 | close (fd); |
| 25139 | exit (0); |
| 25140 | } |
| 25141 | _ACEOF |
| 25142 | rm -f conftest$ac_exeext |
| 25143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25144 | (eval $ac_link) 2>&5 |
| 25145 | ac_status=$? |
| 25146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25147 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 25148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25149 | (eval $ac_try) 2>&5 |
| 25150 | ac_status=$? |
| 25151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25152 | (exit $ac_status); }; }; then |
| 25153 | ac_cv_func_mmap_fixed_mapped=yes |
| 25154 | else |
| 25155 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25156 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25158 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25159 | ( exit $ac_status ) |
| 25160 | ac_cv_func_mmap_fixed_mapped=no |
| 25161 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25162 | rm -f 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] | 25163 | fi |
| 25164 | fi |
| 25165 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 25166 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
| 25167 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 25168 | |
| 25169 | cat >>confdefs.h <<\_ACEOF |
| 25170 | #define HAVE_MMAP 1 |
| 25171 | _ACEOF |
| 25172 | |
| 25173 | fi |
| 25174 | rm -f conftest.mmap |
| 25175 | |
| 25176 | echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 25177 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6 |
| 25178 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 25179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25180 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25181 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25182 | ac_cpp='$CPP $CPPFLAGS' |
| 25183 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25184 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25185 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 25186 | |
| 25187 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 25188 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25189 | else |
| 25190 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25191 | |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 25192 | /* confdefs.h. */ |
| 25193 | _ACEOF |
| 25194 | cat confdefs.h >>conftest.$ac_ext |
| 25195 | cat >>conftest.$ac_ext <<_ACEOF |
| 25196 | /* end confdefs.h. */ |
| 25197 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25198 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 25199 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25200 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 25201 | |
| 25202 | int |
| 25203 | main () |
| 25204 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25205 | |
| 25206 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 25207 | fd = creat ("foo",0777); |
| 25208 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 25209 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 25210 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 25211 | ; |
| 25212 | return 0; |
| 25213 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25214 | _ACEOF |
| 25215 | rm -f conftest$ac_exeext |
| 25216 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25217 | (eval $ac_link) 2>&5 |
| 25218 | ac_status=$? |
| 25219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25220 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 25221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25222 | (eval $ac_try) 2>&5 |
| 25223 | ac_status=$? |
| 25224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25225 | (exit $ac_status); }; }; then |
| 25226 | ac_cv_func_mmap_file=yes |
| 25227 | else |
| 25228 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25229 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25231 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25232 | ( exit $ac_status ) |
| 25233 | ac_cv_func_mmap_file=no |
| 25234 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25235 | rm -f 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] | 25236 | fi |
| 25237 | ac_ext=c |
| 25238 | ac_cpp='$CPP $CPPFLAGS' |
| 25239 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25240 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25241 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 25242 | |
| 25243 | |
| 25244 | fi |
| 25245 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 25246 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6 |
| 25247 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 25248 | |
| 25249 | cat >>confdefs.h <<\_ACEOF |
| 25250 | #define HAVE_MMAP_FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25251 | _ACEOF |
| 25252 | |
| 25253 | MMAP_FILE=yes |
| 25254 | |
| 25255 | fi |
| 25256 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25257 | echo "$as_me:$LINENO: checking for mprotect" >&5 |
| 25258 | echo $ECHO_N "checking for mprotect... $ECHO_C" >&6 |
| 25259 | if test "${ac_cv_func_mprotect+set}" = set; then |
| 25260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25261 | else |
| 25262 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25263 | /* confdefs.h. */ |
| 25264 | _ACEOF |
| 25265 | cat confdefs.h >>conftest.$ac_ext |
| 25266 | cat >>conftest.$ac_ext <<_ACEOF |
| 25267 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25268 | /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect. |
| 25269 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 25270 | #define mprotect innocuous_mprotect |
| 25271 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25272 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25273 | which can conflict with char mprotect (); below. |
| 25274 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 25275 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25276 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25277 | #ifdef __STDC__ |
| 25278 | # include <limits.h> |
| 25279 | #else |
| 25280 | # include <assert.h> |
| 25281 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25282 | |
| 25283 | #undef mprotect |
| 25284 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25285 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25286 | #ifdef __cplusplus |
| 25287 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25288 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25289 | #endif |
| 25290 | /* We use char because int might match the return type of a gcc2 |
| 25291 | builtin and then its argument prototype would still apply. */ |
| 25292 | char mprotect (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25293 | /* The GNU C library defines this for functions which it implements |
| 25294 | to always fail with ENOSYS. Some functions are actually named |
| 25295 | something starting with __ and the normal name is an alias. */ |
| 25296 | #if defined (__stub_mprotect) || defined (__stub___mprotect) |
| 25297 | choke me |
| 25298 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25299 | char (*f) () = mprotect; |
| 25300 | #endif |
| 25301 | #ifdef __cplusplus |
| 25302 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25303 | #endif |
| 25304 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25305 | int |
| 25306 | main () |
| 25307 | { |
| 25308 | return f != mprotect; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25309 | ; |
| 25310 | return 0; |
| 25311 | } |
| 25312 | _ACEOF |
| 25313 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25315 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25316 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25317 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25318 | rm -f conftest.er1 |
| 25319 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25321 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25322 | { ac_try='test -z "$ac_c_werror_flag" |
| 25323 | || test ! -s conftest.err' |
| 25324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25325 | (eval $ac_try) 2>&5 |
| 25326 | ac_status=$? |
| 25327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25328 | (exit $ac_status); }; } && |
| 25329 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25331 | (eval $ac_try) 2>&5 |
| 25332 | ac_status=$? |
| 25333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25334 | (exit $ac_status); }; }; then |
| 25335 | ac_cv_func_mprotect=yes |
| 25336 | else |
| 25337 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25339 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25340 | ac_cv_func_mprotect=no |
| 25341 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25342 | rm -f conftest.err conftest.$ac_objext \ |
| 25343 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25344 | fi |
| 25345 | echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 |
| 25346 | echo "${ECHO_T}$ac_cv_func_mprotect" >&6 |
| 25347 | if test $ac_cv_func_mprotect = yes; then |
| 25348 | : |
| 25349 | else |
| 25350 | { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 |
| 25351 | echo "$as_me: error: Function mprotect() required but not found" >&2;} |
| 25352 | { (exit 1); exit 1; }; } |
| 25353 | fi |
| 25354 | |
| 25355 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25356 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 25357 | then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25358 | { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5 |
| 25359 | echo "$as_me: WARNING: mmap() required but not found" >&2;} |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 25360 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25361 | if test "$ac_cv_func_mmap_file" = "no" |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 25362 | then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25363 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 25364 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 25365 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25366 | |
| 25367 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 25368 | echo "$as_me:$LINENO: checking for llvm-gcc" >&5 |
| 25369 | echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25370 | if test "${llvm_cv_llvmgcc+set}" = set; then |
| 25371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25372 | else |
| 25373 | llvm_cv_llvmgcc='llvmgcc_not_found' |
| 25374 | if test -d "$LLVMGCCDIR" ; then |
| 25375 | if test -x "$LLVMGCCDIR/bin/gcc" ; then |
| 25376 | llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc" |
| 25377 | fi |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 25378 | fi |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 25379 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25380 | echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5 |
| 25381 | echo "${ECHO_T}$llvm_cv_llvmgcc" >&6 |
| 25382 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 25383 | echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 25384 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25385 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 25386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25387 | else |
| 25388 | llvm_cv_llvmgcc_sanity="no" |
| 25389 | if test -x "$llvm_cv_llvmgcc" ; then |
| 25390 | cp /dev/null conftest.c |
| 25391 | "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1 |
| 25392 | if test $? -eq 0 ; then |
| 25393 | llvm_cv_llvmgcc_sanity="yes" |
| 25394 | fi |
| 25395 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 25396 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25397 | fi |
| 25398 | echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 25399 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6 |
| 25400 | |
| 25401 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
| 25402 | LLVMGCC="$llvm_cv_llvmgcc" |
| 25403 | |
| 25404 | llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1` |
| 25405 | LLVMCC1=$llvmcc1path |
| 25406 | |
| 25407 | llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus` |
| 25408 | LLVMCC1PLUS=$llvmcc1pluspath |
| 25409 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 25410 | fi |
| 25411 | |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 25412 | echo "$as_me:$LINENO: checking for shared library suffix" >&5 |
| 25413 | echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6 |
Reid Spencer | 2e89ae2 | 2004-09-20 03:06:28 +0000 | [diff] [blame] | 25414 | eval "SHLIBEXT=$shrext_cmds" |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 25415 | echo "$as_me:$LINENO: result: $SHLIBEXT" >&5 |
| 25416 | echo "${ECHO_T}$SHLIBEXT" >&6 |
| 25417 | SHLIBEXT=$SHLIBEXT |
| 25418 | |
| 25419 | |
| 25420 | cat >>confdefs.h <<_ACEOF |
| 25421 | #define SHLIBEXT "$SHLIBEXT" |
| 25422 | _ACEOF |
| 25423 | |
| 25424 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 25425 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25426 | # information into substitutions that will end up in Makefile.config.in |
| 25427 | # that these configured values can be used by the makefiles |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 25428 | eval LLVM_PREFIX="${prefix}"; |
| 25429 | eval LLVM_BINDIR="${prefix}/bin"; |
| 25430 | eval LLVM_LIBDIR="${prefix}/lib"; |
| 25431 | eval LLVM_DATADIR="${prefix}/data"; |
| 25432 | eval LLVM_DOCSDIR="${prefix}/docs"; |
| 25433 | eval LLVM_ETCDIR="${prefix}/etc"; |
| 25434 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 25435 | eval LLVM_INFODIR="${prefix}/info"; |
| 25436 | eval LLVM_MANDIR="${prefix}/man"; |
| 25437 | LLVM_CONFIGTIME=`date` |
| 25438 | |
| 25439 | |
| 25440 | |
| 25441 | |
| 25442 | |
| 25443 | |
| 25444 | |
| 25445 | |
| 25446 | |
| 25447 | |
| 25448 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25449 | # Place the various directores into the config.h file as #defines so that we |
| 25450 | # can know about the installation paths within LLVM. |
| 25451 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 25452 | cat >>confdefs.h <<_ACEOF |
| 25453 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 25454 | _ACEOF |
| 25455 | |
| 25456 | |
| 25457 | cat >>confdefs.h <<_ACEOF |
| 25458 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 25459 | _ACEOF |
| 25460 | |
| 25461 | |
| 25462 | cat >>confdefs.h <<_ACEOF |
| 25463 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 25464 | _ACEOF |
| 25465 | |
| 25466 | |
| 25467 | cat >>confdefs.h <<_ACEOF |
| 25468 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 25469 | _ACEOF |
| 25470 | |
| 25471 | |
| 25472 | cat >>confdefs.h <<_ACEOF |
| 25473 | #define LLVM_DATADIR "$LLVM_DOCSDIR" |
| 25474 | _ACEOF |
| 25475 | |
| 25476 | |
| 25477 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 25478 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 25479 | _ACEOF |
| 25480 | |
| 25481 | |
| 25482 | cat >>confdefs.h <<_ACEOF |
| 25483 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 25484 | _ACEOF |
| 25485 | |
| 25486 | |
| 25487 | cat >>confdefs.h <<_ACEOF |
| 25488 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 25489 | _ACEOF |
| 25490 | |
| 25491 | |
| 25492 | cat >>confdefs.h <<_ACEOF |
| 25493 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 25494 | _ACEOF |
| 25495 | |
| 25496 | |
| 25497 | cat >>confdefs.h <<_ACEOF |
| 25498 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 25499 | _ACEOF |
| 25500 | |
| 25501 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25502 | |
| 25503 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
| 25504 | |
| 25505 | |
| 25506 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
| 25507 | |
| 25508 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map" |
| 25509 | |
| 25510 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set" |
| 25511 | |
| 25512 | ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h" |
| 25513 | |
| 25514 | ac_config_headers="$ac_config_headers include/llvm/ADT/iterator" |
| 25515 | |
| 25516 | |
| 25517 | ac_config_files="$ac_config_files Makefile.config" |
| 25518 | |
| 25519 | |
| 25520 | ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c" |
| 25521 | |
| 25522 | |
| 25523 | ac_config_commands="$ac_config_commands Makefile" |
| 25524 | |
| 25525 | |
| 25526 | ac_config_commands="$ac_config_commands Makefile.common" |
| 25527 | |
| 25528 | |
| 25529 | ac_config_commands="$ac_config_commands examples/Makefile" |
| 25530 | |
| 25531 | |
| 25532 | ac_config_commands="$ac_config_commands lib/Makefile" |
| 25533 | |
| 25534 | |
| 25535 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 25536 | |
| 25537 | |
| 25538 | ac_config_commands="$ac_config_commands test/Makefile" |
| 25539 | |
| 25540 | |
| 25541 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
| 25542 | |
| 25543 | |
| 25544 | ac_config_commands="$ac_config_commands test/QMTest/llvm.py" |
| 25545 | |
| 25546 | |
| 25547 | ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py" |
| 25548 | |
| 25549 | |
| 25550 | ac_config_commands="$ac_config_commands tools/Makefile" |
| 25551 | |
| 25552 | |
| 25553 | ac_config_commands="$ac_config_commands tools/Makefile.JIT" |
| 25554 | |
| 25555 | |
| 25556 | ac_config_commands="$ac_config_commands utils/Makefile" |
| 25557 | |
| 25558 | |
| 25559 | ac_config_commands="$ac_config_commands projects/Makefile" |
| 25560 | |
| 25561 | |
| 25562 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25563 | cat >confcache <<\_ACEOF |
| 25564 | # This file is a shell script that caches the results of configure |
| 25565 | # tests run on this system so they can be shared between configure |
| 25566 | # scripts and configure runs, see configure's option --config-cache. |
| 25567 | # It is not useful on other systems. If it contains results you don't |
| 25568 | # want to keep, you may remove or edit it. |
| 25569 | # |
| 25570 | # config.status only pays attention to the cache file if you give it |
| 25571 | # the --recheck option to rerun configure. |
| 25572 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25573 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25574 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 25575 | # following values. |
| 25576 | |
| 25577 | _ACEOF |
| 25578 | |
| 25579 | # The following way of writing the cache mishandles newlines in values, |
| 25580 | # but we know of no workaround that is simple, portable, and efficient. |
| 25581 | # So, don't put newlines in cache variables' values. |
| 25582 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 25583 | # and sets the high bit in the cache file unless we assign to the vars. |
| 25584 | { |
| 25585 | (set) 2>&1 | |
| 25586 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 25587 | *ac_space=\ *) |
| 25588 | # `set' does not quote correctly, so add quotes (double-quote |
| 25589 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 25590 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25591 | "s/'/'\\\\''/g; |
| 25592 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25593 | ;; |
| 25594 | *) |
| 25595 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 25596 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25597 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25598 | ;; |
| 25599 | esac; |
| 25600 | } | |
| 25601 | sed ' |
| 25602 | t clear |
| 25603 | : clear |
| 25604 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 25605 | t end |
| 25606 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 25607 | : end' >>confcache |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25608 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25609 | if test -w $cache_file; then |
| 25610 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 25611 | cat confcache >$cache_file |
| 25612 | else |
| 25613 | echo "not updating unwritable cache $cache_file" |
| 25614 | fi |
| 25615 | fi |
| 25616 | rm -f confcache |
| 25617 | |
| 25618 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 25619 | # Let make expand exec_prefix. |
| 25620 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 25621 | |
| 25622 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 25623 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 25624 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 25625 | # (actually we leave an empty line to preserve line numbers). |
| 25626 | if test "x$srcdir" = x.; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25627 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25628 | s/:*\$(srcdir):*/:/; |
| 25629 | s/:*\${srcdir}:*/:/; |
| 25630 | s/:*@srcdir@:*/:/; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25631 | s/^\([^=]*=[ ]*\):*/\1/; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25632 | s/:*$//; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25633 | s/^[^=]*=[ ]*$//; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25634 | }' |
| 25635 | fi |
| 25636 | |
| 25637 | DEFS=-DHAVE_CONFIG_H |
| 25638 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25639 | ac_libobjs= |
| 25640 | ac_ltlibobjs= |
| 25641 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 25642 | # 1. Remove the extension, and $U if already installed. |
| 25643 | ac_i=`echo "$ac_i" | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25644 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25645 | # 2. Add them. |
| 25646 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 25647 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 25648 | done |
| 25649 | LIBOBJS=$ac_libobjs |
| 25650 | |
| 25651 | LTLIBOBJS=$ac_ltlibobjs |
| 25652 | |
| 25653 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25654 | |
| 25655 | : ${CONFIG_STATUS=./config.status} |
| 25656 | ac_clean_files_save=$ac_clean_files |
| 25657 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 25658 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 25659 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 25660 | cat >$CONFIG_STATUS <<_ACEOF |
| 25661 | #! $SHELL |
| 25662 | # Generated by $as_me. |
| 25663 | # Run this file to recreate the current configuration. |
| 25664 | # Compiler output produced by configure, useful for debugging |
| 25665 | # configure, is in config.log if it exists. |
| 25666 | |
| 25667 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25668 | ac_cs_recheck=false |
| 25669 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25670 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 25671 | _ACEOF |
| 25672 | |
| 25673 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25674 | ## --------------------- ## |
| 25675 | ## M4sh Initialization. ## |
| 25676 | ## --------------------- ## |
| 25677 | |
| 25678 | # Be Bourne compatible |
| 25679 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 25680 | emulate sh |
| 25681 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25682 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 25683 | # is contrary to our usage. Disable this feature. |
| 25684 | alias -g '${1+"$@"}'='"$@"' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25685 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 25686 | set -o posix |
| 25687 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25688 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25689 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25690 | # Support unset when possible. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25691 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25692 | as_unset=unset |
| 25693 | else |
| 25694 | as_unset=false |
| 25695 | fi |
| 25696 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25697 | |
| 25698 | # Work around bugs in pre-3.0 UWIN ksh. |
| 25699 | $as_unset ENV MAIL MAILPATH |
| 25700 | PS1='$ ' |
| 25701 | PS2='> ' |
| 25702 | PS4='+ ' |
| 25703 | |
| 25704 | # NLS nuisances. |
| 25705 | for as_var in \ |
| 25706 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 25707 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 25708 | LC_TELEPHONE LC_TIME |
| 25709 | do |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25710 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25711 | eval $as_var=C; export $as_var |
| 25712 | else |
| 25713 | $as_unset $as_var |
| 25714 | fi |
| 25715 | done |
| 25716 | |
| 25717 | # Required to use basename. |
| 25718 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 25719 | as_expr=expr |
| 25720 | else |
| 25721 | as_expr=false |
| 25722 | fi |
| 25723 | |
| 25724 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 25725 | as_basename=basename |
| 25726 | else |
| 25727 | as_basename=false |
| 25728 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25729 | |
| 25730 | |
| 25731 | # Name of the executable. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25732 | as_me=`$as_basename "$0" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25733 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 25734 | X"$0" : 'X\(//\)$' \| \ |
| 25735 | X"$0" : 'X\(/\)$' \| \ |
| 25736 | . : '\(.\)' 2>/dev/null || |
| 25737 | echo X/"$0" | |
| 25738 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 25739 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 25740 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 25741 | s/.*/./; q'` |
| 25742 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25743 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25744 | # PATH needs CR, and LINENO needs CR and PATH. |
| 25745 | # Avoid depending upon Character Ranges. |
| 25746 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 25747 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 25748 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 25749 | as_cr_digits='0123456789' |
| 25750 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 25751 | |
| 25752 | # The user is always right. |
| 25753 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25754 | echo "#! /bin/sh" >conf$$.sh |
| 25755 | echo "exit 0" >>conf$$.sh |
| 25756 | chmod +x conf$$.sh |
| 25757 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25758 | PATH_SEPARATOR=';' |
| 25759 | else |
| 25760 | PATH_SEPARATOR=: |
| 25761 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25762 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25763 | fi |
| 25764 | |
| 25765 | |
| 25766 | as_lineno_1=$LINENO |
| 25767 | as_lineno_2=$LINENO |
| 25768 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 25769 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 25770 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 25771 | # Find who we are. Look in the path if we contain no path at all |
| 25772 | # relative or not. |
| 25773 | case $0 in |
| 25774 | *[\\/]* ) as_myself=$0 ;; |
| 25775 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25776 | for as_dir in $PATH |
| 25777 | do |
| 25778 | IFS=$as_save_IFS |
| 25779 | test -z "$as_dir" && as_dir=. |
| 25780 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 25781 | done |
| 25782 | |
| 25783 | ;; |
| 25784 | esac |
| 25785 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 25786 | # in which case we are not to be found in the path. |
| 25787 | if test "x$as_myself" = x; then |
| 25788 | as_myself=$0 |
| 25789 | fi |
| 25790 | if test ! -f "$as_myself"; then |
| 25791 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 25792 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 25793 | { (exit 1); exit 1; }; } |
| 25794 | fi |
| 25795 | case $CONFIG_SHELL in |
| 25796 | '') |
| 25797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25798 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 25799 | do |
| 25800 | IFS=$as_save_IFS |
| 25801 | test -z "$as_dir" && as_dir=. |
| 25802 | for as_base in sh bash ksh sh5; do |
| 25803 | case $as_dir in |
| 25804 | /*) |
| 25805 | if ("$as_dir/$as_base" -c ' |
| 25806 | as_lineno_1=$LINENO |
| 25807 | as_lineno_2=$LINENO |
| 25808 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 25809 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 25810 | 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] | 25811 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 25812 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25813 | CONFIG_SHELL=$as_dir/$as_base |
| 25814 | export CONFIG_SHELL |
| 25815 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 25816 | fi;; |
| 25817 | esac |
| 25818 | done |
| 25819 | done |
| 25820 | ;; |
| 25821 | esac |
| 25822 | |
| 25823 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 25824 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 25825 | # line-number line before each line; the second 'sed' does the real |
| 25826 | # work. The second script uses 'N' to pair each line-number line |
| 25827 | # with the numbered line, and appends trailing '-' during |
| 25828 | # substitution so that $LINENO is not a special case at line end. |
| 25829 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 25830 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 25831 | sed '=' <$as_myself | |
| 25832 | sed ' |
| 25833 | N |
| 25834 | s,$,-, |
| 25835 | : loop |
| 25836 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 25837 | t loop |
| 25838 | s,-$,, |
| 25839 | s,^['$as_cr_digits']*\n,, |
| 25840 | ' >$as_me.lineno && |
| 25841 | chmod +x $as_me.lineno || |
| 25842 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 25843 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 25844 | { (exit 1); exit 1; }; } |
| 25845 | |
| 25846 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 25847 | # (the dirname of $[0] is not the place where we might find the |
| 25848 | # original and so on. Autoconf is especially sensible to this). |
| 25849 | . ./$as_me.lineno |
| 25850 | # Exit status is that of the last command. |
| 25851 | exit |
| 25852 | } |
| 25853 | |
| 25854 | |
| 25855 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 25856 | *c*,-n*) ECHO_N= ECHO_C=' |
| 25857 | ' ECHO_T=' ' ;; |
| 25858 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 25859 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 25860 | esac |
| 25861 | |
| 25862 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 25863 | as_expr=expr |
| 25864 | else |
| 25865 | as_expr=false |
| 25866 | fi |
| 25867 | |
| 25868 | rm -f conf$$ conf$$.exe conf$$.file |
| 25869 | echo >conf$$.file |
| 25870 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 25871 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 25872 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 25873 | if test -f conf$$.exe; then |
| 25874 | # Don't use ln at all; we don't have any links |
| 25875 | as_ln_s='cp -p' |
| 25876 | else |
| 25877 | as_ln_s='ln -s' |
| 25878 | fi |
| 25879 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 25880 | as_ln_s=ln |
| 25881 | else |
| 25882 | as_ln_s='cp -p' |
| 25883 | fi |
| 25884 | rm -f conf$$ conf$$.exe conf$$.file |
| 25885 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25886 | if mkdir -p . 2>/dev/null; then |
| 25887 | as_mkdir_p=: |
| 25888 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25889 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25890 | as_mkdir_p=false |
| 25891 | fi |
| 25892 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25893 | as_executable_p="test -f" |
| 25894 | |
| 25895 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25896 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25897 | |
| 25898 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25899 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25900 | |
| 25901 | |
| 25902 | # IFS |
| 25903 | # We need space, tab and new line, in precisely that order. |
| 25904 | as_nl=' |
| 25905 | ' |
| 25906 | IFS=" $as_nl" |
| 25907 | |
| 25908 | # CDPATH. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25909 | $as_unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25910 | |
| 25911 | exec 6>&1 |
| 25912 | |
| 25913 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 25914 | # report actual input values of CONFIG_FILES etc. instead of their |
| 25915 | # values after options handling. Logging --version etc. is OK. |
| 25916 | exec 5>>config.log |
| 25917 | { |
| 25918 | echo |
| 25919 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 25920 | ## Running $as_me. ## |
| 25921 | _ASBOX |
| 25922 | } >&5 |
| 25923 | cat >&5 <<_CSEOF |
| 25924 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 25925 | This file was extended by llvm $as_me 1.4, which was |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25926 | generated by GNU Autoconf 2.59. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25927 | |
| 25928 | CONFIG_FILES = $CONFIG_FILES |
| 25929 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 25930 | CONFIG_LINKS = $CONFIG_LINKS |
| 25931 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 25932 | $ $0 $@ |
| 25933 | |
| 25934 | _CSEOF |
| 25935 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 25936 | echo >&5 |
| 25937 | _ACEOF |
| 25938 | |
| 25939 | # Files that config.status was made for. |
| 25940 | if test -n "$ac_config_files"; then |
| 25941 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 25942 | fi |
| 25943 | |
| 25944 | if test -n "$ac_config_headers"; then |
| 25945 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 25946 | fi |
| 25947 | |
| 25948 | if test -n "$ac_config_links"; then |
| 25949 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 25950 | fi |
| 25951 | |
| 25952 | if test -n "$ac_config_commands"; then |
| 25953 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 25954 | fi |
| 25955 | |
| 25956 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25957 | |
| 25958 | ac_cs_usage="\ |
| 25959 | \`$as_me' instantiates files from templates according to the |
| 25960 | current configuration. |
| 25961 | |
| 25962 | Usage: $0 [OPTIONS] [FILE]... |
| 25963 | |
| 25964 | -h, --help print this help, then exit |
| 25965 | -V, --version print version number, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25966 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25967 | -d, --debug don't remove temporary files |
| 25968 | --recheck update $as_me by reconfiguring in the same conditions |
| 25969 | --file=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25970 | instantiate the configuration file FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25971 | --header=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25972 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25973 | |
| 25974 | Configuration files: |
| 25975 | $config_files |
| 25976 | |
| 25977 | Configuration headers: |
| 25978 | $config_headers |
| 25979 | |
Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 25980 | Configuration links: |
| 25981 | $config_links |
| 25982 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25983 | Configuration commands: |
| 25984 | $config_commands |
| 25985 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25986 | Report bugs to <bug-autoconf@gnu.org>." |
| 25987 | _ACEOF |
| 25988 | |
| 25989 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25990 | ac_cs_version="\\ |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 25991 | llvm config.status 1.4 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25992 | configured by $0, generated by GNU Autoconf 2.59, |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25993 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 25994 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25995 | Copyright (C) 2003 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25996 | This config.status script is free software; the Free Software Foundation |
| 25997 | gives unlimited permission to copy, distribute and modify it." |
| 25998 | srcdir=$srcdir |
| 25999 | INSTALL="$INSTALL" |
| 26000 | _ACEOF |
| 26001 | |
| 26002 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 26003 | # If no file are specified by the user, then we need to provide default |
| 26004 | # value. By we need to know if files were specified by the user. |
| 26005 | ac_need_defaults=: |
| 26006 | while test $# != 0 |
| 26007 | do |
| 26008 | case $1 in |
| 26009 | --*=*) |
| 26010 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 26011 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26012 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26013 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26014 | -*) |
| 26015 | ac_option=$1 |
| 26016 | ac_optarg=$2 |
| 26017 | ac_shift=shift |
| 26018 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26019 | *) # This is not an option, so the user has probably given explicit |
| 26020 | # arguments. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26021 | ac_option=$1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26022 | ac_need_defaults=false;; |
| 26023 | esac |
| 26024 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26025 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26026 | # Handling of the options. |
| 26027 | _ACEOF |
John Criswell | d9cd144 | 2003-09-09 20:52:17 +0000 | [diff] [blame] | 26028 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26029 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 26030 | ac_cs_recheck=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26031 | --version | --vers* | -V ) |
| 26032 | echo "$ac_cs_version"; exit 0 ;; |
| 26033 | --he | --h) |
| 26034 | # Conflict between --help and --header |
| 26035 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 26036 | Try \`$0 --help' for more information." >&5 |
| 26037 | echo "$as_me: error: ambiguous option: $1 |
| 26038 | Try \`$0 --help' for more information." >&2;} |
| 26039 | { (exit 1); exit 1; }; };; |
| 26040 | --help | --hel | -h ) |
| 26041 | echo "$ac_cs_usage"; exit 0 ;; |
| 26042 | --debug | --d* | -d ) |
| 26043 | debug=: ;; |
| 26044 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26045 | $ac_shift |
| 26046 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26047 | ac_need_defaults=false;; |
| 26048 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26049 | $ac_shift |
| 26050 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26051 | ac_need_defaults=false;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26052 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 26053 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 26054 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26055 | |
| 26056 | # This is an error. |
| 26057 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 26058 | Try \`$0 --help' for more information." >&5 |
| 26059 | echo "$as_me: error: unrecognized option: $1 |
| 26060 | Try \`$0 --help' for more information." >&2;} |
| 26061 | { (exit 1); exit 1; }; } ;; |
| 26062 | |
| 26063 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 26064 | |
| 26065 | esac |
| 26066 | shift |
| 26067 | done |
| 26068 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26069 | ac_configure_extra_args= |
| 26070 | |
| 26071 | if $ac_cs_silent; then |
| 26072 | exec 6>/dev/null |
| 26073 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 26074 | fi |
| 26075 | |
| 26076 | _ACEOF |
| 26077 | cat >>$CONFIG_STATUS <<_ACEOF |
| 26078 | if \$ac_cs_recheck; then |
| 26079 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 26080 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 26081 | fi |
| 26082 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26083 | _ACEOF |
| 26084 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26085 | cat >>$CONFIG_STATUS <<_ACEOF |
| 26086 | # |
| 26087 | # INIT-COMMANDS section. |
| 26088 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26089 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26090 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile` |
| 26091 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common` |
Reid Spencer | 5f28539 | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 26092 | ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26093 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26094 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26095 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile` |
| 26096 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 26097 | ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py` |
| 26098 | ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26099 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Misha Brukman | 591edc6 | 2004-10-14 18:59:42 +0000 | [diff] [blame] | 26100 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile.JIT` |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 26101 | ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26102 | ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26103 | |
| 26104 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26105 | |
| 26106 | |
| 26107 | |
| 26108 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 26109 | for ac_config_target in $ac_config_targets |
| 26110 | do |
| 26111 | case "$ac_config_target" in |
| 26112 | # Handling of arguments. |
| 26113 | "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | 0acd65f | 2004-11-23 23:48:45 +0000 | [diff] [blame] | 26114 | "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;; |
| 26115 | "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;; |
| 26116 | "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;; |
| 26117 | "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;; |
Reid Spencer | edd01b9 | 2004-11-25 06:03:14 +0000 | [diff] [blame] | 26118 | "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26119 | "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 26120 | "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
Reid Spencer | 5f28539 | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 26121 | "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26122 | "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26123 | "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26124 | "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 26125 | "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 26126 | "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;; |
| 26127 | "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26128 | "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
Misha Brukman | 591edc6 | 2004-10-14 18:59:42 +0000 | [diff] [blame] | 26129 | "tools/Makefile.JIT" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile.JIT" ;; |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 26130 | "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26131 | "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Reid Spencer | 551ccae | 2004-09-01 22:55:40 +0000 | [diff] [blame] | 26132 | "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
John Criswell | 5fbb1f8 | 2004-09-24 13:28:51 +0000 | [diff] [blame] | 26133 | "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 26134 | "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;; |
| 26135 | "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;; |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 26136 | "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;; |
| 26137 | "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26138 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 26139 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 26140 | { (exit 1); exit 1; }; };; |
| 26141 | esac |
| 26142 | done |
| 26143 | |
| 26144 | # If the user did not use the arguments to specify the items to instantiate, |
| 26145 | # then the envvar interface is used. Set only those that are not. |
| 26146 | # We use the long form for the default assignment because of an extremely |
| 26147 | # bizarre bug on SunOS 4.1.3. |
| 26148 | if $ac_need_defaults; then |
| 26149 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 26150 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 26151 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26152 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26153 | fi |
| 26154 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26155 | # Have a temporary directory for convenience. Make it in the build tree |
| 26156 | # simply because there is no reason to put it here, and in addition, |
| 26157 | # creating and moving files from /tmp can sometimes cause problems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26158 | # Create a temporary directory, and hook for its removal unless debugging. |
| 26159 | $debug || |
| 26160 | { |
| 26161 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 26162 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 26163 | } |
| 26164 | |
| 26165 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26166 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26167 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26168 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26169 | test -n "$tmp" && test -d "$tmp" |
| 26170 | } || |
| 26171 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26172 | tmp=./confstat$$-$RANDOM |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26173 | (umask 077 && mkdir $tmp) |
| 26174 | } || |
| 26175 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26176 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26177 | { (exit 1); exit 1; } |
| 26178 | } |
| 26179 | |
| 26180 | _ACEOF |
| 26181 | |
| 26182 | cat >>$CONFIG_STATUS <<_ACEOF |
| 26183 | |
| 26184 | # |
| 26185 | # CONFIG_FILES section. |
| 26186 | # |
| 26187 | |
| 26188 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 26189 | # This happens for instance when ./config.status config.h |
| 26190 | if test -n "\$CONFIG_FILES"; then |
| 26191 | # Protect against being on the right side of a sed subst in config.status. |
| 26192 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 26193 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 26194 | s,@SHELL@,$SHELL,;t t |
| 26195 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 26196 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 26197 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 26198 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 26199 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 26200 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 26201 | s,@exec_prefix@,$exec_prefix,;t t |
| 26202 | s,@prefix@,$prefix,;t t |
| 26203 | s,@program_transform_name@,$program_transform_name,;t t |
| 26204 | s,@bindir@,$bindir,;t t |
| 26205 | s,@sbindir@,$sbindir,;t t |
| 26206 | s,@libexecdir@,$libexecdir,;t t |
| 26207 | s,@datadir@,$datadir,;t t |
| 26208 | s,@sysconfdir@,$sysconfdir,;t t |
| 26209 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 26210 | s,@localstatedir@,$localstatedir,;t t |
| 26211 | s,@libdir@,$libdir,;t t |
| 26212 | s,@includedir@,$includedir,;t t |
| 26213 | s,@oldincludedir@,$oldincludedir,;t t |
| 26214 | s,@infodir@,$infodir,;t t |
| 26215 | s,@mandir@,$mandir,;t t |
| 26216 | s,@build_alias@,$build_alias,;t t |
| 26217 | s,@host_alias@,$host_alias,;t t |
| 26218 | s,@target_alias@,$target_alias,;t t |
| 26219 | s,@DEFS@,$DEFS,;t t |
| 26220 | s,@ECHO_C@,$ECHO_C,;t t |
| 26221 | s,@ECHO_N@,$ECHO_N,;t t |
| 26222 | s,@ECHO_T@,$ECHO_T,;t t |
| 26223 | s,@LIBS@,$LIBS,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26224 | s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 26225 | s,@subdirs@,$subdirs,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26226 | s,@build@,$build,;t t |
| 26227 | s,@build_cpu@,$build_cpu,;t t |
| 26228 | s,@build_vendor@,$build_vendor,;t t |
| 26229 | s,@build_os@,$build_os,;t t |
| 26230 | s,@host@,$host,;t t |
| 26231 | s,@host_cpu@,$host_cpu,;t t |
| 26232 | s,@host_vendor@,$host_vendor,;t t |
| 26233 | s,@host_os@,$host_os,;t t |
| 26234 | s,@target@,$target,;t t |
| 26235 | s,@target_cpu@,$target_cpu,;t t |
| 26236 | s,@target_vendor@,$target_vendor,;t t |
| 26237 | s,@target_os@,$target_os,;t t |
| 26238 | s,@OS@,$OS,;t t |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 26239 | s,@ARCH@,$ARCH,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26240 | s,@ENDIAN@,$ENDIAN,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26241 | s,@CC@,$CC,;t t |
| 26242 | s,@CFLAGS@,$CFLAGS,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26243 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 26244 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26245 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26246 | s,@EXEEXT@,$EXEEXT,;t t |
| 26247 | s,@OBJEXT@,$OBJEXT,;t t |
| 26248 | s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t |
| 26249 | s,@JIT@,$JIT,;t t |
| 26250 | s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26251 | s,@CPP@,$CPP,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26252 | s,@CXX@,$CXX,;t t |
| 26253 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 26254 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26255 | s,@LEX@,$LEX,;t t |
| 26256 | s,@LEXLIB@,$LEXLIB,;t t |
| 26257 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 26258 | s,@FLEX@,$FLEX,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26259 | s,@YACC@,$YACC,;t t |
Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 26260 | s,@BISON@,$BISON,;t t |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26261 | s,@EGREP@,$EGREP,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26262 | s,@LN_S@,$LN_S,;t t |
| 26263 | s,@ECHO@,$ECHO,;t t |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26264 | s,@AR@,$AR,;t t |
| 26265 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26266 | s,@RANLIB@,$RANLIB,;t t |
| 26267 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 26268 | s,@STRIP@,$STRIP,;t t |
| 26269 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26270 | s,@CXXCPP@,$CXXCPP,;t t |
| 26271 | s,@F77@,$F77,;t t |
| 26272 | s,@FFLAGS@,$FFLAGS,;t t |
| 26273 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26274 | s,@LIBTOOL@,$LIBTOOL,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26275 | s,@ifGNUmake@,$ifGNUmake,;t t |
| 26276 | s,@FIND@,$FIND,;t t |
| 26277 | s,@GREP@,$GREP,;t t |
| 26278 | s,@MKDIR@,$MKDIR,;t t |
| 26279 | s,@MV@,$MV,;t t |
| 26280 | s,@RM@,$RM,;t t |
| 26281 | s,@SED@,$SED,;t t |
Reid Spencer | ad354c9 | 2004-10-25 08:18:47 +0000 | [diff] [blame] | 26282 | s,@TAR@,$TAR,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26283 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 26284 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 26285 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26286 | s,@DOT@,$DOT,;t t |
| 26287 | s,@ETAGS@,$ETAGS,;t t |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 26288 | s,@PYTHON@,$PYTHON,;t t |
| 26289 | s,@QMTEST@,$QMTEST,;t t |
Reid Spencer | 4b8f82f | 2004-11-07 23:29:39 +0000 | [diff] [blame] | 26290 | s,@RUNTEST@,$RUNTEST,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26291 | s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26292 | s,@ALLOCA@,$ALLOCA,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26293 | s,@MMAP_FILE@,$MMAP_FILE,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26294 | s,@LLVMGCC@,$LLVMGCC,;t t |
Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 26295 | s,@LLVMCC1@,$LLVMCC1,;t t |
| 26296 | s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 26297 | s,@SHLIBEXT@,$SHLIBEXT,;t t |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 26298 | s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t |
| 26299 | s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t |
| 26300 | s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t |
| 26301 | s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t |
| 26302 | s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t |
| 26303 | s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t |
| 26304 | s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t |
| 26305 | s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t |
| 26306 | s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t |
| 26307 | s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 26308 | s,@LIBOBJS@,$LIBOBJS,;t t |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26309 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26310 | CEOF |
| 26311 | |
| 26312 | _ACEOF |
| 26313 | |
| 26314 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 26315 | # Split the substitutions into bite-sized pieces for seds with |
| 26316 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 26317 | ac_max_sed_lines=48 |
| 26318 | ac_sed_frag=1 # Number of current file. |
| 26319 | ac_beg=1 # First line for current file. |
| 26320 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 26321 | ac_more_lines=: |
| 26322 | ac_sed_cmds= |
| 26323 | while $ac_more_lines; do |
| 26324 | if test $ac_beg -gt 1; then |
| 26325 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 26326 | else |
| 26327 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 26328 | fi |
| 26329 | if test ! -s $tmp/subs.frag; then |
| 26330 | ac_more_lines=false |
| 26331 | else |
| 26332 | # The purpose of the label and of the branching condition is to |
| 26333 | # speed up the sed processing (if there are no `@' at all, there |
| 26334 | # is no need to browse any of the substitutions). |
| 26335 | # These are the two extra sed commands mentioned above. |
| 26336 | (echo ':t |
| 26337 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 26338 | if test -z "$ac_sed_cmds"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26339 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26340 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26341 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26342 | fi |
| 26343 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 26344 | ac_beg=$ac_end |
| 26345 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 26346 | fi |
| 26347 | done |
| 26348 | if test -z "$ac_sed_cmds"; then |
| 26349 | ac_sed_cmds=cat |
| 26350 | fi |
| 26351 | fi # test -n "$CONFIG_FILES" |
| 26352 | |
| 26353 | _ACEOF |
| 26354 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 26355 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 26356 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 26357 | case $ac_file in |
| 26358 | - | *:- | *:-:* ) # input from stdin |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26359 | cat >$tmp/stdin |
| 26360 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 26361 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26362 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26363 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26364 | * ) ac_file_in=$ac_file.in ;; |
| 26365 | esac |
| 26366 | |
| 26367 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 26368 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 26369 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26370 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 26371 | X"$ac_file" : 'X\(//\)$' \| \ |
| 26372 | X"$ac_file" : 'X\(/\)' \| \ |
| 26373 | . : '\(.\)' 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26374 | echo X"$ac_file" | |
| 26375 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 26376 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 26377 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 26378 | /^X\(\/\).*/{ s//\1/; q; } |
| 26379 | s/.*/./; q'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26380 | { if $as_mkdir_p; then |
| 26381 | mkdir -p "$ac_dir" |
| 26382 | else |
| 26383 | as_dir="$ac_dir" |
| 26384 | as_dirs= |
| 26385 | while test ! -d "$as_dir"; do |
| 26386 | as_dirs="$as_dir $as_dirs" |
| 26387 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 26388 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26389 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 26390 | X"$as_dir" : 'X\(//\)$' \| \ |
| 26391 | X"$as_dir" : 'X\(/\)' \| \ |
| 26392 | . : '\(.\)' 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26393 | echo X"$as_dir" | |
| 26394 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 26395 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 26396 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 26397 | /^X\(\/\).*/{ s//\1/; q; } |
| 26398 | s/.*/./; q'` |
| 26399 | done |
| 26400 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 26401 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 26402 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 26403 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26404 | |
| 26405 | ac_builddir=. |
| 26406 | |
| 26407 | if test "$ac_dir" != .; then |
| 26408 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 26409 | # A "../" for each directory in $ac_dir_suffix. |
| 26410 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 26411 | else |
| 26412 | ac_dir_suffix= ac_top_builddir= |
| 26413 | fi |
| 26414 | |
| 26415 | case $srcdir in |
| 26416 | .) # No --srcdir option. We are building in place. |
| 26417 | ac_srcdir=. |
| 26418 | if test -z "$ac_top_builddir"; then |
| 26419 | ac_top_srcdir=. |
| 26420 | else |
| 26421 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 26422 | fi ;; |
| 26423 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 26424 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 26425 | ac_top_srcdir=$srcdir ;; |
| 26426 | *) # Relative path. |
| 26427 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 26428 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 26429 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26430 | |
| 26431 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 26432 | # the directories may not exist. |
| 26433 | case `pwd` in |
| 26434 | .) ac_abs_builddir="$ac_dir";; |
| 26435 | *) |
| 26436 | case "$ac_dir" in |
| 26437 | .) ac_abs_builddir=`pwd`;; |
| 26438 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 26439 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 26440 | esac;; |
| 26441 | esac |
| 26442 | case $ac_abs_builddir in |
| 26443 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 26444 | *) |
| 26445 | case ${ac_top_builddir}. in |
| 26446 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 26447 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 26448 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 26449 | esac;; |
| 26450 | esac |
| 26451 | case $ac_abs_builddir in |
| 26452 | .) ac_abs_srcdir=$ac_srcdir;; |
| 26453 | *) |
| 26454 | case $ac_srcdir in |
| 26455 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 26456 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 26457 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 26458 | esac;; |
| 26459 | esac |
| 26460 | case $ac_abs_builddir in |
| 26461 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 26462 | *) |
| 26463 | case $ac_top_srcdir in |
| 26464 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 26465 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 26466 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 26467 | esac;; |
| 26468 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26469 | |
| 26470 | |
| 26471 | case $INSTALL in |
| 26472 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 26473 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 26474 | esac |
| 26475 | |
| 26476 | if test x"$ac_file" != x-; then |
| 26477 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 26478 | echo "$as_me: creating $ac_file" >&6;} |
| 26479 | rm -f "$ac_file" |
| 26480 | fi |
| 26481 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 26482 | # use $as_me), people would be surprised to read: |
| 26483 | # /* config.h. Generated by config.status. */ |
| 26484 | if test x"$ac_file" = x-; then |
| 26485 | configure_input= |
| 26486 | else |
| 26487 | configure_input="$ac_file. " |
| 26488 | fi |
| 26489 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26490 | sed 's,.*/,,'` by configure." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26491 | |
| 26492 | # First look for the input files in the build tree, otherwise in the |
| 26493 | # src tree. |
| 26494 | ac_file_inputs=`IFS=: |
| 26495 | for f in $ac_file_in; do |
| 26496 | case $f in |
| 26497 | -) echo $tmp/stdin ;; |
| 26498 | [\\/$]*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26499 | # Absolute (can't be DOS-style, as IFS=:) |
| 26500 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26501 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 26502 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26503 | echo "$f";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26504 | *) # Relative |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26505 | if test -f "$f"; then |
| 26506 | # Build tree |
| 26507 | echo "$f" |
| 26508 | elif test -f "$srcdir/$f"; then |
| 26509 | # Source tree |
| 26510 | echo "$srcdir/$f" |
| 26511 | else |
| 26512 | # /dev/null tree |
| 26513 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26514 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 26515 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26516 | fi;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26517 | esac |
| 26518 | done` || { (exit 1); exit 1; } |
| 26519 | _ACEOF |
| 26520 | cat >>$CONFIG_STATUS <<_ACEOF |
| 26521 | sed "$ac_vpsub |
| 26522 | $extrasub |
| 26523 | _ACEOF |
| 26524 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 26525 | :t |
| 26526 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 26527 | s,@configure_input@,$configure_input,;t t |
| 26528 | s,@srcdir@,$ac_srcdir,;t t |
| 26529 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 26530 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 26531 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 26532 | s,@builddir@,$ac_builddir,;t t |
| 26533 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 26534 | s,@top_builddir@,$ac_top_builddir,;t t |
| 26535 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 26536 | s,@INSTALL@,$ac_INSTALL,;t t |
| 26537 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 26538 | rm -f $tmp/stdin |
| 26539 | if test x"$ac_file" != x-; then |
| 26540 | mv $tmp/out $ac_file |
| 26541 | else |
| 26542 | cat $tmp/out |
| 26543 | rm -f $tmp/out |
| 26544 | fi |
| 26545 | |
| 26546 | done |
| 26547 | _ACEOF |
| 26548 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 26549 | |
| 26550 | # |
| 26551 | # CONFIG_HEADER section. |
| 26552 | # |
| 26553 | |
| 26554 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 26555 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 26556 | # |
| 26557 | # ac_d sets the value in "#define NAME VALUE" lines. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26558 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 26559 | ac_dB='[ ].*$,\1#\2' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26560 | ac_dC=' ' |
| 26561 | ac_dD=',;t' |
| 26562 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26563 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26564 | ac_uB='$,\1#\2define\3' |
| 26565 | ac_uC=' ' |
| 26566 | ac_uD=',;t' |
| 26567 | |
| 26568 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 26569 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 26570 | case $ac_file in |
| 26571 | - | *:- | *:-:* ) # input from stdin |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26572 | cat >$tmp/stdin |
| 26573 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 26574 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26575 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26576 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26577 | * ) ac_file_in=$ac_file.in ;; |
| 26578 | esac |
| 26579 | |
| 26580 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 26581 | echo "$as_me: creating $ac_file" >&6;} |
| 26582 | |
| 26583 | # First look for the input files in the build tree, otherwise in the |
| 26584 | # src tree. |
| 26585 | ac_file_inputs=`IFS=: |
| 26586 | for f in $ac_file_in; do |
| 26587 | case $f in |
| 26588 | -) echo $tmp/stdin ;; |
| 26589 | [\\/$]*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26590 | # Absolute (can't be DOS-style, as IFS=:) |
| 26591 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26592 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 26593 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26594 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 26595 | echo "$f";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26596 | *) # Relative |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26597 | if test -f "$f"; then |
| 26598 | # Build tree |
| 26599 | echo "$f" |
| 26600 | elif test -f "$srcdir/$f"; then |
| 26601 | # Source tree |
| 26602 | echo "$srcdir/$f" |
| 26603 | else |
| 26604 | # /dev/null tree |
| 26605 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26606 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 26607 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26608 | fi;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26609 | esac |
| 26610 | done` || { (exit 1); exit 1; } |
| 26611 | # Remove the trailing spaces. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26612 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26613 | |
| 26614 | _ACEOF |
| 26615 | |
| 26616 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 26617 | # `conftest.undefs', that substitutes the proper values into |
| 26618 | # config.h.in to produce config.h. The first handles `#define' |
| 26619 | # templates, and the second `#undef' templates. |
| 26620 | # And first: Protect against being on the right side of a sed subst in |
| 26621 | # config.status. Protect against being in an unquoted here document |
| 26622 | # in config.status. |
| 26623 | rm -f conftest.defines conftest.undefs |
| 26624 | # Using a here document instead of a string reduces the quoting nightmare. |
| 26625 | # Putting comments in sed scripts is not portable. |
| 26626 | # |
| 26627 | # `end' is used to avoid that the second main sed command (meant for |
| 26628 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 26629 | # See the Autoconf documentation for `clear'. |
| 26630 | cat >confdef2sed.sed <<\_ACEOF |
| 26631 | s/[\\&,]/\\&/g |
| 26632 | s,[\\$`],\\&,g |
| 26633 | t clear |
| 26634 | : clear |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26635 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26636 | t end |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26637 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26638 | : end |
| 26639 | _ACEOF |
| 26640 | # If some macros were called several times there might be several times |
| 26641 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 26642 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 26643 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 26644 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 26645 | rm -f confdef2sed.sed |
| 26646 | |
| 26647 | # This sed command replaces #undef with comments. This is necessary, for |
| 26648 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 26649 | # on some systems where configure will not decide to define it. |
| 26650 | cat >>conftest.undefs <<\_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26651 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26652 | _ACEOF |
| 26653 | |
| 26654 | # Break up conftest.defines because some shells have a limit on the size |
| 26655 | # of here documents, and old seds have small limits too (100 cmds). |
| 26656 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26657 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26658 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 26659 | echo ' :' >>$CONFIG_STATUS |
| 26660 | rm -f conftest.tail |
| 26661 | while grep . conftest.defines >/dev/null |
| 26662 | do |
| 26663 | # Write a limited-size here document to $tmp/defines.sed. |
| 26664 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 26665 | # Speed up: don't consider the non `#define' lines. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26666 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26667 | # Work around the forget-to-reset-the-flag bug. |
| 26668 | echo 't clr' >>$CONFIG_STATUS |
| 26669 | echo ': clr' >>$CONFIG_STATUS |
| 26670 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 26671 | echo 'CEOF |
| 26672 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 26673 | rm -f $tmp/in |
| 26674 | mv $tmp/out $tmp/in |
| 26675 | ' >>$CONFIG_STATUS |
| 26676 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 26677 | rm -f conftest.defines |
| 26678 | mv conftest.tail conftest.defines |
| 26679 | done |
| 26680 | rm -f conftest.defines |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26681 | echo ' fi # grep' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26682 | echo >>$CONFIG_STATUS |
| 26683 | |
| 26684 | # Break up conftest.undefs because some shells have a limit on the size |
| 26685 | # of here documents, and old seds have small limits too (100 cmds). |
| 26686 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 26687 | rm -f conftest.tail |
| 26688 | while grep . conftest.undefs >/dev/null |
| 26689 | do |
| 26690 | # Write a limited-size here document to $tmp/undefs.sed. |
| 26691 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 26692 | # Speed up: don't consider the non `#undef' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26693 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26694 | # Work around the forget-to-reset-the-flag bug. |
| 26695 | echo 't clr' >>$CONFIG_STATUS |
| 26696 | echo ': clr' >>$CONFIG_STATUS |
| 26697 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 26698 | echo 'CEOF |
| 26699 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 26700 | rm -f $tmp/in |
| 26701 | mv $tmp/out $tmp/in |
| 26702 | ' >>$CONFIG_STATUS |
| 26703 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 26704 | rm -f conftest.undefs |
| 26705 | mv conftest.tail conftest.undefs |
| 26706 | done |
| 26707 | rm -f conftest.undefs |
| 26708 | |
| 26709 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 26710 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 26711 | # use $as_me), people would be surprised to read: |
| 26712 | # /* config.h. Generated by config.status. */ |
| 26713 | if test x"$ac_file" = x-; then |
| 26714 | echo "/* Generated by configure. */" >$tmp/config.h |
| 26715 | else |
| 26716 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 26717 | fi |
| 26718 | cat $tmp/in >>$tmp/config.h |
| 26719 | rm -f $tmp/in |
| 26720 | if test x"$ac_file" != x-; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26721 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26722 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 26723 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 26724 | else |
| 26725 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 26726 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26727 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 26728 | X"$ac_file" : 'X\(//\)$' \| \ |
| 26729 | X"$ac_file" : 'X\(/\)' \| \ |
| 26730 | . : '\(.\)' 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26731 | echo X"$ac_file" | |
| 26732 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 26733 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 26734 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 26735 | /^X\(\/\).*/{ s//\1/; q; } |
| 26736 | s/.*/./; q'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26737 | { if $as_mkdir_p; then |
| 26738 | mkdir -p "$ac_dir" |
| 26739 | else |
| 26740 | as_dir="$ac_dir" |
| 26741 | as_dirs= |
| 26742 | while test ! -d "$as_dir"; do |
| 26743 | as_dirs="$as_dir $as_dirs" |
| 26744 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 26745 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26746 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 26747 | X"$as_dir" : 'X\(//\)$' \| \ |
| 26748 | X"$as_dir" : 'X\(/\)' \| \ |
| 26749 | . : '\(.\)' 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26750 | echo X"$as_dir" | |
| 26751 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 26752 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 26753 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 26754 | /^X\(\/\).*/{ s//\1/; q; } |
| 26755 | s/.*/./; q'` |
| 26756 | done |
| 26757 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 26758 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 26759 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 26760 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26761 | |
| 26762 | rm -f $ac_file |
| 26763 | mv $tmp/config.h $ac_file |
| 26764 | fi |
| 26765 | else |
| 26766 | cat $tmp/config.h |
| 26767 | rm -f $tmp/config.h |
| 26768 | fi |
| 26769 | done |
| 26770 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26771 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 26772 | |
| 26773 | # |
Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 26774 | # CONFIG_LINKS section. |
| 26775 | # |
| 26776 | |
| 26777 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
| 26778 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 26779 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 26780 | |
| 26781 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
| 26782 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} |
| 26783 | |
| 26784 | if test ! -r $srcdir/$ac_source; then |
| 26785 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
| 26786 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} |
| 26787 | { (exit 1); exit 1; }; } |
| 26788 | fi |
| 26789 | rm -f $ac_dest |
| 26790 | |
| 26791 | # Make relative symlinks. |
| 26792 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 26793 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26794 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 26795 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 26796 | X"$ac_dest" : 'X\(/\)' \| \ |
| 26797 | . : '\(.\)' 2>/dev/null || |
Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 26798 | echo X"$ac_dest" | |
| 26799 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 26800 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 26801 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 26802 | /^X\(\/\).*/{ s//\1/; q; } |
| 26803 | s/.*/./; q'` |
| 26804 | { if $as_mkdir_p; then |
| 26805 | mkdir -p "$ac_dest_dir" |
| 26806 | else |
| 26807 | as_dir="$ac_dest_dir" |
| 26808 | as_dirs= |
| 26809 | while test ! -d "$as_dir"; do |
| 26810 | as_dirs="$as_dir $as_dirs" |
| 26811 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 26812 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26813 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 26814 | X"$as_dir" : 'X\(//\)$' \| \ |
| 26815 | X"$as_dir" : 'X\(/\)' \| \ |
| 26816 | . : '\(.\)' 2>/dev/null || |
Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 26817 | echo X"$as_dir" | |
| 26818 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 26819 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 26820 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 26821 | /^X\(\/\).*/{ s//\1/; q; } |
| 26822 | s/.*/./; q'` |
| 26823 | done |
| 26824 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 26825 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 |
| 26826 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} |
| 26827 | { (exit 1); exit 1; }; }; } |
| 26828 | |
| 26829 | ac_builddir=. |
| 26830 | |
| 26831 | if test "$ac_dest_dir" != .; then |
| 26832 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` |
| 26833 | # A "../" for each directory in $ac_dir_suffix. |
| 26834 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 26835 | else |
| 26836 | ac_dir_suffix= ac_top_builddir= |
| 26837 | fi |
| 26838 | |
| 26839 | case $srcdir in |
| 26840 | .) # No --srcdir option. We are building in place. |
| 26841 | ac_srcdir=. |
| 26842 | if test -z "$ac_top_builddir"; then |
| 26843 | ac_top_srcdir=. |
| 26844 | else |
| 26845 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 26846 | fi ;; |
| 26847 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 26848 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 26849 | ac_top_srcdir=$srcdir ;; |
| 26850 | *) # Relative path. |
| 26851 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 26852 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 26853 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26854 | |
| 26855 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 26856 | # the directories may not exist. |
| 26857 | case `pwd` in |
| 26858 | .) ac_abs_builddir="$ac_dest_dir";; |
| 26859 | *) |
| 26860 | case "$ac_dest_dir" in |
| 26861 | .) ac_abs_builddir=`pwd`;; |
| 26862 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; |
| 26863 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; |
| 26864 | esac;; |
| 26865 | esac |
| 26866 | case $ac_abs_builddir in |
| 26867 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 26868 | *) |
| 26869 | case ${ac_top_builddir}. in |
| 26870 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 26871 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 26872 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 26873 | esac;; |
| 26874 | esac |
| 26875 | case $ac_abs_builddir in |
| 26876 | .) ac_abs_srcdir=$ac_srcdir;; |
| 26877 | *) |
| 26878 | case $ac_srcdir in |
| 26879 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 26880 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 26881 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 26882 | esac;; |
| 26883 | esac |
| 26884 | case $ac_abs_builddir in |
| 26885 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 26886 | *) |
| 26887 | case $ac_top_srcdir in |
| 26888 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 26889 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 26890 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 26891 | esac;; |
| 26892 | esac |
Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 26893 | |
| 26894 | |
| 26895 | case $srcdir in |
| 26896 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; |
| 26897 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
| 26898 | esac |
| 26899 | |
| 26900 | # Try a symlink, then a hard link, then a copy. |
| 26901 | ln -s $ac_rel_source $ac_dest 2>/dev/null || |
| 26902 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || |
| 26903 | cp -p $srcdir/$ac_source $ac_dest || |
| 26904 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 |
| 26905 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} |
| 26906 | { (exit 1); exit 1; }; } |
| 26907 | done |
| 26908 | _ACEOF |
| 26909 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 26910 | |
| 26911 | # |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26912 | # CONFIG_COMMANDS section. |
| 26913 | # |
| 26914 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 26915 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 26916 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 26917 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 26918 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26919 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 26920 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 26921 | X"$ac_dest" : 'X\(/\)' \| \ |
| 26922 | . : '\(.\)' 2>/dev/null || |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26923 | echo X"$ac_dest" | |
| 26924 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 26925 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 26926 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 26927 | /^X\(\/\).*/{ s//\1/; q; } |
| 26928 | s/.*/./; q'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26929 | { if $as_mkdir_p; then |
| 26930 | mkdir -p "$ac_dir" |
| 26931 | else |
| 26932 | as_dir="$ac_dir" |
| 26933 | as_dirs= |
| 26934 | while test ! -d "$as_dir"; do |
| 26935 | as_dirs="$as_dir $as_dirs" |
| 26936 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 26937 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 26938 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 26939 | X"$as_dir" : 'X\(//\)$' \| \ |
| 26940 | X"$as_dir" : 'X\(/\)' \| \ |
| 26941 | . : '\(.\)' 2>/dev/null || |
| 26942 | echo X"$as_dir" | |
| 26943 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 26944 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 26945 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 26946 | /^X\(\/\).*/{ s//\1/; q; } |
| 26947 | s/.*/./; q'` |
| 26948 | done |
| 26949 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 26950 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 26951 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 26952 | { (exit 1); exit 1; }; }; } |
| 26953 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26954 | ac_builddir=. |
| 26955 | |
| 26956 | if test "$ac_dir" != .; then |
| 26957 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 26958 | # A "../" for each directory in $ac_dir_suffix. |
| 26959 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 26960 | else |
| 26961 | ac_dir_suffix= ac_top_builddir= |
| 26962 | fi |
| 26963 | |
| 26964 | case $srcdir in |
| 26965 | .) # No --srcdir option. We are building in place. |
| 26966 | ac_srcdir=. |
| 26967 | if test -z "$ac_top_builddir"; then |
| 26968 | ac_top_srcdir=. |
| 26969 | else |
| 26970 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 26971 | fi ;; |
| 26972 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 26973 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 26974 | ac_top_srcdir=$srcdir ;; |
| 26975 | *) # Relative path. |
| 26976 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 26977 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 26978 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26979 | |
| 26980 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 26981 | # the directories may not exist. |
| 26982 | case `pwd` in |
| 26983 | .) ac_abs_builddir="$ac_dir";; |
| 26984 | *) |
| 26985 | case "$ac_dir" in |
| 26986 | .) ac_abs_builddir=`pwd`;; |
| 26987 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 26988 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 26989 | esac;; |
| 26990 | esac |
| 26991 | case $ac_abs_builddir in |
| 26992 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 26993 | *) |
| 26994 | case ${ac_top_builddir}. in |
| 26995 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 26996 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 26997 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 26998 | esac;; |
| 26999 | esac |
| 27000 | case $ac_abs_builddir in |
| 27001 | .) ac_abs_srcdir=$ac_srcdir;; |
| 27002 | *) |
| 27003 | case $ac_srcdir in |
| 27004 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 27005 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 27006 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 27007 | esac;; |
| 27008 | esac |
| 27009 | case $ac_abs_builddir in |
| 27010 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 27011 | *) |
| 27012 | case $ac_top_srcdir in |
| 27013 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 27014 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 27015 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 27016 | esac;; |
| 27017 | esac |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 27018 | |
| 27019 | |
| 27020 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 27021 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 27022 | case $ac_dest in |
| 27023 | Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; |
| 27024 | Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; |
Reid Spencer | 5f28539 | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 27025 | examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 27026 | 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] | 27027 | 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] | 27028 | test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; |
| 27029 | 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] | 27030 | test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;; |
| 27031 | 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] | 27032 | tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; |
Misha Brukman | 591edc6 | 2004-10-14 18:59:42 +0000 | [diff] [blame] | 27033 | tools/Makefile.JIT ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile.JIT tools/Makefile.JIT ;; |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27034 | 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] | 27035 | 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] | 27036 | esac |
| 27037 | done |
| 27038 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27039 | |
| 27040 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 27041 | |
| 27042 | { (exit 0); exit 0; } |
| 27043 | _ACEOF |
| 27044 | chmod +x $CONFIG_STATUS |
| 27045 | ac_clean_files=$ac_clean_files_save |
| 27046 | |
| 27047 | |
| 27048 | # configure is writing to config.log, and then calls config.status. |
| 27049 | # config.status does its own redirection, appending to config.log. |
| 27050 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 27051 | # by configure, so config.status won't be able to write to it; its |
| 27052 | # output is simply discarded. So we exec the FD to /dev/null, |
| 27053 | # effectively closing config.log, so it can be properly (re)opened and |
| 27054 | # appended to by config.status. When coming back to configure, we |
| 27055 | # need to make the FD available again. |
| 27056 | if test "$no_create" != yes; then |
| 27057 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27058 | ac_config_status_args= |
| 27059 | test "$silent" = yes && |
| 27060 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27061 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27062 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27063 | exec 5>>config.log |
| 27064 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 27065 | # would make configure fail if this is the last instruction. |
| 27066 | $ac_cs_success || { (exit 1); exit 1; } |
| 27067 | fi |
| 27068 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 27069 | # |
| 27070 | # CONFIG_SUBDIRS section. |
| 27071 | # |
| 27072 | if test "$no_recursion" != yes; then |
| 27073 | |
| 27074 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 27075 | ac_sub_configure_args= |
| 27076 | ac_prev= |
| 27077 | for ac_arg in $ac_configure_args; do |
| 27078 | if test -n "$ac_prev"; then |
| 27079 | ac_prev= |
| 27080 | continue |
| 27081 | fi |
| 27082 | case $ac_arg in |
| 27083 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 27084 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 27085 | ac_prev=cache_file ;; |
| 27086 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 27087 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 27088 | | --c=*) |
| 27089 | ;; |
| 27090 | --config-cache | -C) |
| 27091 | ;; |
| 27092 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 27093 | ac_prev=srcdir ;; |
| 27094 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 27095 | ;; |
| 27096 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 27097 | ac_prev=prefix ;; |
| 27098 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 27099 | ;; |
| 27100 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
| 27101 | esac |
| 27102 | done |
| 27103 | |
| 27104 | # Always prepend --prefix to ensure using the same prefix |
| 27105 | # in subdir configurations. |
| 27106 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" |
| 27107 | |
| 27108 | ac_popdir=`pwd` |
| 27109 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 27110 | |
| 27111 | # Do not complain, so a configure script can configure whichever |
| 27112 | # parts of a large source tree are present. |
| 27113 | test -d $srcdir/$ac_dir || continue |
| 27114 | |
| 27115 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
| 27116 | echo "$as_me: configuring in $ac_dir" >&6;} |
| 27117 | { if $as_mkdir_p; then |
| 27118 | mkdir -p "$ac_dir" |
| 27119 | else |
| 27120 | as_dir="$ac_dir" |
| 27121 | as_dirs= |
| 27122 | while test ! -d "$as_dir"; do |
| 27123 | as_dirs="$as_dir $as_dirs" |
| 27124 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 27125 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27126 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 27127 | X"$as_dir" : 'X\(//\)$' \| \ |
| 27128 | X"$as_dir" : 'X\(/\)' \| \ |
| 27129 | . : '\(.\)' 2>/dev/null || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 27130 | echo X"$as_dir" | |
| 27131 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 27132 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 27133 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 27134 | /^X\(\/\).*/{ s//\1/; q; } |
| 27135 | s/.*/./; q'` |
| 27136 | done |
| 27137 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 27138 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 27139 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 27140 | { (exit 1); exit 1; }; }; } |
| 27141 | |
| 27142 | ac_builddir=. |
| 27143 | |
| 27144 | if test "$ac_dir" != .; then |
| 27145 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 27146 | # A "../" for each directory in $ac_dir_suffix. |
| 27147 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 27148 | else |
| 27149 | ac_dir_suffix= ac_top_builddir= |
| 27150 | fi |
| 27151 | |
| 27152 | case $srcdir in |
| 27153 | .) # No --srcdir option. We are building in place. |
| 27154 | ac_srcdir=. |
| 27155 | if test -z "$ac_top_builddir"; then |
| 27156 | ac_top_srcdir=. |
| 27157 | else |
| 27158 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 27159 | fi ;; |
| 27160 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 27161 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 27162 | ac_top_srcdir=$srcdir ;; |
| 27163 | *) # Relative path. |
| 27164 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 27165 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 27166 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27167 | |
| 27168 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 27169 | # the directories may not exist. |
| 27170 | case `pwd` in |
| 27171 | .) ac_abs_builddir="$ac_dir";; |
| 27172 | *) |
| 27173 | case "$ac_dir" in |
| 27174 | .) ac_abs_builddir=`pwd`;; |
| 27175 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 27176 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 27177 | esac;; |
| 27178 | esac |
| 27179 | case $ac_abs_builddir in |
| 27180 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 27181 | *) |
| 27182 | case ${ac_top_builddir}. in |
| 27183 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 27184 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 27185 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 27186 | esac;; |
| 27187 | esac |
| 27188 | case $ac_abs_builddir in |
| 27189 | .) ac_abs_srcdir=$ac_srcdir;; |
| 27190 | *) |
| 27191 | case $ac_srcdir in |
| 27192 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 27193 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 27194 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 27195 | esac;; |
| 27196 | esac |
| 27197 | case $ac_abs_builddir in |
| 27198 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 27199 | *) |
| 27200 | case $ac_top_srcdir in |
| 27201 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 27202 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 27203 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 27204 | esac;; |
| 27205 | esac |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 27206 | |
| 27207 | |
| 27208 | cd $ac_dir |
| 27209 | |
| 27210 | # Check for guested configure; otherwise get Cygnus style configure. |
| 27211 | if test -f $ac_srcdir/configure.gnu; then |
| 27212 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" |
| 27213 | elif test -f $ac_srcdir/configure; then |
| 27214 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" |
| 27215 | elif test -f $ac_srcdir/configure.in; then |
| 27216 | ac_sub_configure=$ac_configure |
| 27217 | else |
| 27218 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 27219 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 27220 | ac_sub_configure= |
| 27221 | fi |
| 27222 | |
| 27223 | # The recursion is here. |
| 27224 | if test -n "$ac_sub_configure"; then |
| 27225 | # Make the cache file name correct relative to the subdirectory. |
| 27226 | case $cache_file in |
| 27227 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
| 27228 | *) # Relative path. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27229 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 27230 | esac |
| 27231 | |
| 27232 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 27233 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
| 27234 | # The eval makes quoting arguments work. |
| 27235 | eval $ac_sub_configure $ac_sub_configure_args \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27236 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
| 27237 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 27238 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 27239 | { (exit 1); exit 1; }; } |
| 27240 | fi |
| 27241 | |
| 27242 | cd $ac_popdir |
| 27243 | done |
| 27244 | fi |
| 27245 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 27246 | |
Reid Spencer | 0d98aed | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 27247 | if test $bzip2_found -ne 1 ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27248 | if test $zlib_found -ne 1 ; then |
| 27249 | { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5 |
Reid Spencer | 0d98aed | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 27250 | echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27251 | { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5 |
Reid Spencer | 0d98aed | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 27252 | echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27253 | { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and and re-run configure." >&5 |
Reid Spencer | 0d98aed | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 27254 | echo "$as_me: WARNING: *** To correct, install the libraries and and re-run configure." >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27255 | fi |
Reid Spencer | 0d98aed | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 27256 | fi |
| 27257 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27258 | if test "$llvm_cv_llvmgcc_sanity" = "no" ; then |
| 27259 | { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5 |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 27260 | echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27261 | { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5 |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 27262 | echo "$as_me: WARNING: ***** appear to be working." >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27263 | { echo "$as_me:$LINENO: WARNING: ***** " >&5 |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 27264 | echo "$as_me: WARNING: ***** " >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27265 | { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5 |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 27266 | echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27267 | { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5 |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 27268 | echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27269 | { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5 |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 27270 | echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;} |
| 27271 | fi |